configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20121002.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS=" $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="charproc.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
144
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
164
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datarootdir='${prefix}/share'
174 datadir='${datarootdir}'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${datarootdir}/info'
182 mandir='${datarootdir}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
234 | --dataroo | --dataro | --datar)
235 ac_prev=datarootdir ;;
236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
238 datarootdir=$ac_optarg ;;
239
240 -disable-* | --disable-*)
241 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
242 # Reject names that are not valid shell variable names.
243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
245 { (exit 1); exit 1; }; }
246 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
247 eval "enable_$ac_feature=no" ;;
248
249 -enable-* | --enable-*)
250 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
251 # Reject names that are not valid shell variable names.
252 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
253 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
254 { (exit 1); exit 1; }; }
255 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
256 case $ac_option in
257 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
258 *) ac_optarg=yes ;;
259 esac
260 eval "enable_$ac_feature='$ac_optarg'" ;;
261
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix=$ac_optarg ;;
270
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
273 with_gas=yes ;;
274
275 -help | --help | --hel | --he | -h)
276 ac_init_help=long ;;
277 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
278 ac_init_help=recursive ;;
279 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
280 ac_init_help=short ;;
281
282 -host | --host | --hos | --ho)
283 ac_prev=host_alias ;;
284 -host=* | --host=* | --hos=* | --ho=*)
285 host_alias=$ac_optarg ;;
286
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir=$ac_optarg ;;
293
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
295 ac_prev=infodir ;;
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir=$ac_optarg ;;
298
299 -libdir | --libdir | --libdi | --libd)
300 ac_prev=libdir ;;
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 libdir=$ac_optarg ;;
303
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir=$ac_optarg ;;
310
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir=$ac_optarg ;;
319
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
321 ac_prev=mandir ;;
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 mandir=$ac_optarg ;;
324
325 -nfp | --nfp | --nf)
326 # Obsolete; use --without-fp.
327 with_fp=no ;;
328
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
330 | --no-cr | --no-c)
331 no_create=yes ;;
332
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
335 no_recursion=yes ;;
336
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir=$ac_optarg ;;
345
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
347 ac_prev=prefix ;;
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 prefix=$ac_optarg ;;
350
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix=$ac_optarg ;;
357
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix=$ac_optarg ;;
364
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name=$ac_optarg ;;
381
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
384 silent=yes ;;
385
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
387 ac_prev=sbindir ;;
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
389 | --sbi=* | --sb=*)
390 sbindir=$ac_optarg ;;
391
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
395 | --sha | --sh)
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
400 | --sha=* | --sh=*)
401 sharedstatedir=$ac_optarg ;;
402
403 -site | --site | --sit)
404 ac_prev=site ;;
405 -site=* | --site=* | --sit=*)
406 site=$ac_optarg ;;
407
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
409 ac_prev=srcdir ;;
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 srcdir=$ac_optarg ;;
412
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir=$ac_optarg ;;
419
420 -target | --target | --targe | --targ | --tar | --ta | --t)
421 ac_prev=target_alias ;;
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target_alias=$ac_optarg ;;
424
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
426 verbose=yes ;;
427
428 -version | --version | --versio | --versi | --vers | -V)
429 ac_init_version=: ;;
430
431 -with-* | --with-*)
432 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
433 # Reject names that are not valid shell variable names.
434 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
435 { echo "$as_me: error: invalid package name: $ac_package" >&2
436 { (exit 1); exit 1; }; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 case $ac_option in
439 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
440 *) ac_optarg=yes ;;
441 esac
442 eval "with_$ac_package='$ac_optarg'" ;;
443
444 -without-* | --without-*)
445 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo $ac_package | sed 's/-/_/g'`
451 eval "with_$ac_package=no" ;;
452
453 --x)
454 # Obsolete; use --with-x.
455 with_x=yes ;;
456
457 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
458 | --x-incl | --x-inc | --x-in | --x-i)
459 ac_prev=x_includes ;;
460 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
461 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
462 x_includes=$ac_optarg ;;
463
464 -x-libraries | --x-libraries | --x-librarie | --x-librari \
465 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
466 ac_prev=x_libraries ;;
467 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
468 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
469 x_libraries=$ac_optarg ;;
470
471 -*) { echo "$as_me: error: unrecognized option: $ac_option
472 Try \`$0 --help' for more information." >&2
473 { (exit 1); exit 1; }; }
474 ;;
475
476 *=*)
477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
478 # Reject names that are not valid shell variable names.
479 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
480 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
481 { (exit 1); exit 1; }; }
482 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
483 eval "$ac_envvar='$ac_optarg'"
484 export $ac_envvar ;;
485
486 *)
487 # FIXME: should be removed in autoconf 3.0.
488 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
492 ;;
493
494 esac
495 done
496
497 if test -n "$ac_prev"; then
498 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
499 { echo "$as_me: error: missing argument to $ac_option" >&2
500 { (exit 1); exit 1; }; }
501 fi
502
503 # Be sure to have absolute paths.
504 for ac_var in exec_prefix prefix
505 do
506 eval ac_val=$`echo $ac_var`
507 case $ac_val in
508 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
509 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
510 { (exit 1); exit 1; }; };;
511 esac
512 done
513
514 # Be sure to have absolute paths.
515 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
516 localstatedir libdir includedir oldincludedir infodir mandir
517 do
518 eval ac_val=$`echo $ac_var`
519 case $ac_val in
520 [\\/$]* | ?:[\\/]* ) ;;
521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
522 { (exit 1); exit 1; }; };;
523 esac
524 done
525
526 # There might be people who depend on the old broken behavior: `$host'
527 # used to hold the argument of --host etc.
528 build=$build_alias
529 host=$host_alias
530 target=$target_alias
531
532 # FIXME: should be removed in autoconf 3.0.
533 if test "x$host_alias" != x; then
534 if test "x$build_alias" = x; then
535 cross_compiling=maybe
536 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
537 If a cross compiler is detected then cross compile mode will be used." >&2
538 elif test "x$build_alias" != "x$host_alias"; then
539 cross_compiling=yes
540 fi
541 fi
542
543 ac_tool_prefix=
544 test -n "$host_alias" && ac_tool_prefix=$host_alias-
545
546 test "$silent" = yes && exec 6>/dev/null
547
548 # Find the source files, if location was not specified.
549 if test -z "$srcdir"; then
550 ac_srcdir_defaulted=yes
551 # Try the directory containing this script, then its parent.
552 ac_prog=$0
553 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
554 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
555 srcdir=$ac_confdir
556 if test ! -r $srcdir/$ac_unique_file; then
557 srcdir=..
558 fi
559 else
560 ac_srcdir_defaulted=no
561 fi
562 if test ! -r $srcdir/$ac_unique_file; then
563 if test "$ac_srcdir_defaulted" = yes; then
564 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
565 { (exit 1); exit 1; }; }
566 else
567 { echo "$as_me: error: cannot find sources in $srcdir" >&2
568 { (exit 1); exit 1; }; }
569 fi
570 fi
571 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
572 ac_env_build_alias_set=${build_alias+set}
573 ac_env_build_alias_value=$build_alias
574 ac_cv_env_build_alias_set=${build_alias+set}
575 ac_cv_env_build_alias_value=$build_alias
576 ac_env_host_alias_set=${host_alias+set}
577 ac_env_host_alias_value=$host_alias
578 ac_cv_env_host_alias_set=${host_alias+set}
579 ac_cv_env_host_alias_value=$host_alias
580 ac_env_target_alias_set=${target_alias+set}
581 ac_env_target_alias_value=$target_alias
582 ac_cv_env_target_alias_set=${target_alias+set}
583 ac_cv_env_target_alias_value=$target_alias
584 ac_env_CC_set=${CC+set}
585 ac_env_CC_value=$CC
586 ac_cv_env_CC_set=${CC+set}
587 ac_cv_env_CC_value=$CC
588 ac_env_CFLAGS_set=${CFLAGS+set}
589 ac_env_CFLAGS_value=$CFLAGS
590 ac_cv_env_CFLAGS_set=${CFLAGS+set}
591 ac_cv_env_CFLAGS_value=$CFLAGS
592 ac_env_LDFLAGS_set=${LDFLAGS+set}
593 ac_env_LDFLAGS_value=$LDFLAGS
594 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
595 ac_cv_env_LDFLAGS_value=$LDFLAGS
596 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
597 ac_env_CPPFLAGS_value=$CPPFLAGS
598 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
599 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
600 ac_env_CPP_set=${CPP+set}
601 ac_env_CPP_value=$CPP
602 ac_cv_env_CPP_set=${CPP+set}
603 ac_cv_env_CPP_value=$CPP
604
605 #
606 # Report the --help message.
607 #
608 if test "$ac_init_help" = "long"; then
609 # Omit some internal or obsolete options to make the list less imposing.
610 # This message is too long to be a string in the A/UX 3.1 sh.
611 cat <<EOF
612 \`configure' configures this package to adapt to many kinds of systems.
613
614 Usage: $0 [OPTION]... [VAR=VALUE]...
615
616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
617 VAR=VALUE. See below for descriptions of some of the useful variables.
618
619 Defaults for the options are specified in brackets.
620
621 Configuration:
622 -h, --help display this help and exit
623 --help=short display options specific to this package
624 --help=recursive display the short help of all the included packages
625 -V, --version display version information and exit
626 -q, --quiet, --silent do not print \`checking...' messages
627 --cache-file=FILE cache test results in FILE [disabled]
628 -C, --config-cache alias for \`--cache-file=config.cache'
629 -n, --no-create do not create output files
630 --srcdir=DIR find the sources in DIR [configure dir or \`..']
631
632 EOF
633
634 cat <<EOF
635 Installation directories:
636 --prefix=PREFIX install architecture-independent files in PREFIX
637 [$ac_default_prefix]
638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
639 [PREFIX]
640
641 By default, \`make install' will install all the files in
642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
644 for instance \`--prefix=\$HOME'.
645
646 For better control, use the options below.
647
648 Fine tuning of the installation directories:
649 --bindir=DIR user executables [EPREFIX/bin]
650 --sbindir=DIR system admin executables [EPREFIX/sbin]
651 --libexecdir=DIR program executables [EPREFIX/libexec]
652 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
656 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
657 --libdir=DIR object code libraries [EPREFIX/lib]
658 --includedir=DIR C header files [PREFIX/include]
659 --oldincludedir=DIR C header files for non-gcc [/usr/include]
660 --infodir=DIR info documentation [DATAROOTDIR/info]
661 --mandir=DIR man documentation [DATAROOTDIR/man]
662 EOF
663
664 cat <<\EOF
665
666 Program names:
667 --program-prefix=PREFIX prepend PREFIX to installed program names
668 --program-suffix=SUFFIX append SUFFIX to installed program names
669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
670
671 X features:
672 --x-includes=DIR X include files are in DIR
673 --x-libraries=DIR X library files are in DIR
674
675 System types:
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 EOF
679 fi
680
681 if test -n "$ac_init_help"; then
682
683 cat <<\EOF
684
685 Optional Features:
686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
688
689 Optional Packages:
690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
692
693 Compile/Install Options:
694 --disable-full-tgetent disable check for full tgetent function
695 --with-app-class=XXX override X applications class (default XTerm)
696 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults)
697 --with-icon-name=XXXX override icon name (default: xterm-color)
698 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm)
699 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps)
700 --with-icondir=DIR directory in which to install icons for desktop
701 --with-icon-theme=XXX install icons into desktop theme (hicolor)
702 --disable-desktop disable install of xterm desktop files
703 --with-desktop-category=XXX one or more desktop catgories or auto
704 --with-reference=XXX program to use as permissions-reference
705 --with-xterm-symlink=XXX make symbolic link to installed xterm
706 --disable-openpty disable openpty, prefer other interfaces
707 --disable-setuid disable setuid in xterm, do not install setuid/setgid
708 --disable-setgid disable setgid in xterm, do not install setuid/setgid
709 --with-setuid=XXX use the given setuid user
710 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file
711 --with-utempter use utempter library for access to utmp
712 --with-tty-group=XXX use XXX for the tty-group
713 --with-x use the X Window System
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-xpm=DIR use Xpm library for colored icon, may specify path
716 --with-Xaw3d link with Xaw 3d library
717 --with-neXtaw link with neXT Athena library
718 --with-XawPlus link with Athena-Plus library
719 --enable-narrowproto enable narrow prototypes for X libraries
720 --disable-imake disable use of imake for definitions
721 Terminal Configuration:
722 --with-terminal-id=V set default decTerminalID (default: vt420)
723 --with-terminal-type=T set default $TERM (default: xterm)
724 --enable-backarrow-key set default backarrowKey resource (default: true)
725 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
726 --enable-delete-is-del set default deleteIsDEL resource (default: maybe)
727 --enable-alt-sends-esc set default altSendsEscape resource (default: no)
728 --enable-meta-sends-esc set default metaSendsEscape resource (default: no)
729 --with-own-terminfo=P set default $TERMINFO (default: from environment)
730 Optional Features:
731 --disable-active-icon disable X11R6.3 active-icon feature
732 --disable-ansi-color disable ANSI color
733 --disable-16-color disable 16-color support
734 --enable-256-color enable 256-color support
735 --enable-88-color enable 88-color support
736 --disable-blink-cursor disable support for blinking cursor
737 --enable-broken-osc allow broken Linux OSC-strings
738 --disable-broken-st disallow broken string-terminators
739 --disable-c1-print disallow -k8 option for printable 128-159
740 --disable-bold-color disable PC-style mapping of bold colors
741 --disable-color-class disable separate color class resources
742 --disable-color-mode disable default colorMode resource
743 --disable-highlighting disable support for color highlighting
744 --disable-doublechars disable support for double-size chars
745 --disable-boxchars disable fallback-support for box chars
746 --enable-exec-xterm enable "spawn-new-terminal" action
747 --enable-double-buffer enable double-buffering
748 --disable-freetype disable freetype library-support
749 --with-freetype-config configure script to use for FreeType
750 --with-freetype-cflags -D/-I options for compiling with FreeType
751 --with-freetype-libs -L/-l options to link FreeType
752 --enable-hp-fkeys enable support for HP-style function keys
753 --enable-sco-fkeys enable support for SCO-style function keys
754 --disable-sun-fkeys disable support for Sun-style function keys
755 --disable-fifo-lines disable FIFO-storage for saved-lines
756 --disable-i18n disable internationalization
757 --disable-initial-erase disable setup for stty erase
758 --disable-input-method disable input-method
759 --enable-load-vt-fonts enable load-vt-fonts() action
760 --enable-logging enable logging
761 --enable-logfile-exec enable exec'd logfile filter
762 --disable-maximize disable actions for iconify/deiconify/maximize/restore
763 --disable-num-lock disable NumLock keypad support
764 --disable-paste64 disable get/set base64 selection data
765 --disable-pty-handshake disable pty-handshake support
766 --enable-readline-mouse enable support for mouse in readline applications
767 --disable-regex disable regular-expression selections
768 --with-pcre use PCRE for regular-expressions
769 --disable-rightbar disable right-scrollbar support
770 --disable-samename disable check for redundant name-change
771 --disable-selection-ops disable selection-action operations
772 --disable-session-mgt disable support for session management
773 --disable-tcap-fkeys disable termcap function-keys support
774 --disable-tcap-query disable compiled-in termcap-query support
775 --disable-tek4014 disable tek4014 emulation
776 --enable-toolbar compile-in toolbar for pulldown menus
777 --disable-vt52 disable VT52 emulation
778 --disable-wide-chars disable wide-character support
779 --enable-16bit-chars enable 16-bit character support
780 --enable-mini-luit enable mini-luit (built-in Latin9 support)
781 --disable-luit enable luit filter (Unicode translation)
782 --enable-dabbrev enable dynamic-abbreviation support
783 --enable-dec-locator enable DECterm Locator support
784 --enable-sixel-graphics enable sixel graphics support
785 --disable-rectangles disable VT420 rectangle support
786 --disable-ziconbeep disable -ziconbeep option
787 Testing/development Options:
788 --enable-trace test: set to enable debugging traces
789 --with-dmalloc test: use Gray Watson's dmalloc library
790 --with-dbmalloc test: use Conor Cahill's dbmalloc library
791 --with-valgrind test: use valgrind
792 --disable-leaks test: free permanent memory, analyze leaks
793 --disable-echo do not display "compiling" commands
794 --enable-xmc-glitch test: enable xmc magic-cookie emulation
795 --enable-warnings test: turn on GCC compiler warnings
796 --disable-rpath-hack don't add rpath options for additional libraries
797
798 Some influential environment variables:
799 CC C compiler command
800 CFLAGS C compiler flags
801 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
802 nonstandard directory <lib dir>
803 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
804 headers in a nonstandard directory <include dir>
805 CPP C preprocessor
806
807 Use these variables to override the choices made by `configure' or to help
808 it to find libraries and programs with nonstandard names/locations.
809
810 EOF
811 fi
812
813 if test "$ac_init_help" = "recursive"; then
814 # If there are subdirs, report their specific --help.
815 ac_popdir=`pwd`
816 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
817 cd $ac_subdir
818 # A "../" for each directory in /$ac_subdir.
819 ac_dots=`echo $ac_subdir |
820 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
821
822 case $srcdir in
823 .) # No --srcdir option. We are building in place.
824 ac_sub_srcdir=$srcdir ;;
825 [\\/]* | ?:[\\/]* ) # Absolute path.
826 ac_sub_srcdir=$srcdir/$ac_subdir ;;
827 *) # Relative path.
828 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
829 esac
830
831 # Check for guested configure; otherwise get Cygnus style configure.
832 if test -f $ac_sub_srcdir/configure.gnu; then
833 echo
834 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
835 elif test -f $ac_sub_srcdir/configure; then
836 echo
837 $SHELL $ac_sub_srcdir/configure --help=recursive
838 elif test -f $ac_sub_srcdir/configure.ac ||
839 test -f $ac_sub_srcdir/configure.in; then
840 echo
841 $ac_configure --help
842 else
843 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
844 fi
845 cd $ac_popdir
846 done
847 fi
848
849 test -n "$ac_init_help" && exit 0
850 if $ac_init_version; then
851 cat <<\EOF
852
853 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
854 Free Software Foundation, Inc.
855 This configure script is free software; the Free Software Foundation
856 gives unlimited permission to copy, distribute and modify it.
857 EOF
858 exit 0
859 fi
860 exec 5>config.log
861 cat >&5 <<EOF
862 This file contains any messages produced by compilers while
863 running configure, to aid debugging if configure makes a mistake.
864
865 It was created by $as_me, which was
866 generated by GNU Autoconf 2.52.20121002. Invocation command line was
867
868 $ $0 $@
869
870 EOF
871 {
872 cat <<_ASUNAME
873 ## ---------- ##
874 ## Platform. ##
875 ## ---------- ##
876
877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
882
883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
885
886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
889 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
893
894 PATH = $PATH
895
896 _ASUNAME
897 } >&5
898
899 cat >&5 <<EOF
900 ## ------------ ##
901 ## Core tests. ##
902 ## ------------ ##
903
904 EOF
905
906 # Keep a trace of the command line.
907 # Strip out --no-create and --no-recursion so they do not pile up.
908 # Also quote any args containing shell meta-characters.
909 ac_configure_args=
910 ac_sep=
911 for ac_arg
912 do
913 case $ac_arg in
914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915 | --no-cr | --no-c) ;;
916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
918 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
919 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
920 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
921 ac_sep=" " ;;
922 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
923 ac_sep=" " ;;
924 esac
925 # Get rid of the leading space.
926 done
927
928 # When interrupted or exit'd, cleanup temporary files, and complete
929 # config.log. We remove comments because anyway the quotes in there
930 # would cause problems or look ugly.
931 trap 'exit_status=$?
932 # Save into config.log some information that might help in debugging.
933 echo >&5
934 echo "## ----------------- ##" >&5
935 echo "## Cache variables. ##" >&5
936 echo "## ----------------- ##" >&5
937 echo >&5
938 # The following way of writing the cache mishandles newlines in values,
939 {
940 (set) 2>&1 |
941 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
942 *ac_space=\ *)
943 sed -n \
944 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
946 ;;
947 *)
948 sed -n \
949 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
950 ;;
951 esac;
952 } >&5
953 sed "/^$/d" confdefs.h >conftest.log
954 if test -s conftest.log; then
955 echo >&5
956 echo "## ------------ ##" >&5
957 echo "## confdefs.h. ##" >&5
958 echo "## ------------ ##" >&5
959 echo >&5
960 cat conftest.log >&5
961 fi
962 (echo; echo) >&5
963 test "$ac_signal" != 0 &&
964 echo "$as_me: caught signal $ac_signal" >&5
965 echo "$as_me: exit $exit_status" >&5
966 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
967 exit $exit_status
968 ' 0
969 for ac_signal in 1 2 13 15; do
970 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
971 done
972 ac_signal=0
973
974 # confdefs.h avoids OS command line length limits that DEFS can exceed.
975 rm -rf conftest* confdefs.h
976 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
977 echo >confdefs.h
978
979 # Let the site file select an alternate cache file if it wants to.
980 # Prefer explicitly selected file to automatically selected ones.
981 if test -z "$CONFIG_SITE"; then
982 if test "x$prefix" != xNONE; then
983 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
984 else
985 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
986 fi
987 fi
988 for ac_site_file in $CONFIG_SITE; do
989 if test -r "$ac_site_file"; then
990 { echo "$as_me:990: loading site script $ac_site_file" >&5
991 echo "$as_me: loading site script $ac_site_file" >&6;}
992 cat "$ac_site_file" >&5
993 . "$ac_site_file"
994 fi
995 done
996
997 if test -r "$cache_file"; then
998 # Some versions of bash will fail to source /dev/null (special
999 # files actually), so we avoid doing that.
1000 if test -f "$cache_file"; then
1001 { echo "$as_me:1001: loading cache $cache_file" >&5
1002 echo "$as_me: loading cache $cache_file" >&6;}
1003 case $cache_file in
1004 [\\/]* | ?:[\\/]* ) . $cache_file;;
1005 *) . ./$cache_file;;
1006 esac
1007 fi
1008 else
1009 { echo "$as_me:1009: creating cache $cache_file" >&5
1010 echo "$as_me: creating cache $cache_file" >&6;}
1011 >$cache_file
1012 fi
1013
1014 # Check that the precious variables saved in the cache have kept the same
1015 # value.
1016 ac_cache_corrupted=false
1017 for ac_var in `(set) 2>&1 |
1018 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1019 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1020 eval ac_new_set=\$ac_env_${ac_var}_set
1021 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1022 eval ac_new_val="\$ac_env_${ac_var}_value"
1023 case $ac_old_set,$ac_new_set in
1024 set,)
1025 { echo "$as_me:1025: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1026 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1027 ac_cache_corrupted=: ;;
1028 ,set)
1029 { echo "$as_me:1029: error: \`$ac_var' was not set in the previous run" >&5
1030 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1031 ac_cache_corrupted=: ;;
1032 ,);;
1033 *)
1034 if test "x$ac_old_val" != "x$ac_new_val"; then
1035 { echo "$as_me:1035: error: \`$ac_var' has changed since the previous run:" >&5
1036 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1037 { echo "$as_me:1037: former value: $ac_old_val" >&5
1038 echo "$as_me: former value: $ac_old_val" >&2;}
1039 { echo "$as_me:1039: current value: $ac_new_val" >&5
1040 echo "$as_me: current value: $ac_new_val" >&2;}
1041 ac_cache_corrupted=:
1042 fi;;
1043 esac
1044 # Pass precious variables to config.status. It doesn't matter if
1045 # we pass some twice (in addition to the command line arguments).
1046 if test "$ac_new_set" = set; then
1047 case $ac_new_val in
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1050 ac_configure_args="$ac_configure_args '$ac_arg'"
1051 ;;
1052 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1053 ;;
1054 esac
1055 fi
1056 done
1057 if $ac_cache_corrupted; then
1058 { echo "$as_me:1058: error: changes in the environment can compromise the build" >&5
1059 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1060 { { echo "$as_me:1060: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1061 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1062 { (exit 1); exit 1; }; }
1063 fi
1064
1065 ac_ext=c
1066 ac_cpp='$CPP $CPPFLAGS'
1067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1070 ac_main_return=return
1071
1072 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1073 *c*,-n*) ECHO_N= ECHO_C='
1074 ' ECHO_T=' ' ;;
1075 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1076 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1077 esac
1078 echo "#! $SHELL" >conftest.sh
1079 echo "exit 0" >>conftest.sh
1080 chmod +x conftest.sh
1081 if { (echo "$as_me:1081: PATH=\".;.\"; conftest.sh") >&5
1082 (PATH=".;."; conftest.sh) 2>&5
1083 ac_status=$?
1084 echo "$as_me:1084: \$? = $ac_status" >&5
1085 (exit $ac_status); }; then
1086 ac_path_separator=';'
1087 else
1088 ac_path_separator=:
1089 fi
1090 PATH_SEPARATOR="$ac_path_separator"
1091 rm -f conftest.sh
1092
1093 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
1094
1095 ac_aux_dir=
1096 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1097 if test -f $ac_dir/install-sh; then
1098 ac_aux_dir=$ac_dir
1099 ac_install_sh="$ac_aux_dir/install-sh -c"
1100 break
1101 elif test -f $ac_dir/install.sh; then
1102 ac_aux_dir=$ac_dir
1103 ac_install_sh="$ac_aux_dir/install.sh -c"
1104 break
1105 elif test -f $ac_dir/shtool; then
1106 ac_aux_dir=$ac_dir
1107 ac_install_sh="$ac_aux_dir/shtool install -c"
1108 break
1109 fi
1110 done
1111 if test -z "$ac_aux_dir"; then
1112 { { echo "$as_me:1112: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1113 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1114 { (exit 1); exit 1; }; }
1115 fi
1116 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1117 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1118 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1119
1120 # Make sure we can run config.sub.
1121 $ac_config_sub sun4 >/dev/null 2>&1 ||
1122 { { echo "$as_me:1122: error: cannot run $ac_config_sub" >&5
1123 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1124 { (exit 1); exit 1; }; }
1125
1126 echo "$as_me:1126: checking build system type" >&5
1127 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1128 if test "${ac_cv_build+set}" = set; then
1129 echo $ECHO_N "(cached) $ECHO_C" >&6
1130 else
1131 ac_cv_build_alias=$build_alias
1132 test -z "$ac_cv_build_alias" &&
1133 ac_cv_build_alias=`$ac_config_guess`
1134 test -z "$ac_cv_build_alias" &&
1135 { { echo "$as_me:1135: error: cannot guess build type; you must specify one" >&5
1136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1137 { (exit 1); exit 1; }; }
1138 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1139 { { echo "$as_me:1139: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1140 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1141 { (exit 1); exit 1; }; }
1142
1143 fi
1144 echo "$as_me:1144: result: $ac_cv_build" >&5
1145 echo "${ECHO_T}$ac_cv_build" >&6
1146 build=$ac_cv_build
1147 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1148 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1149 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1150
1151 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1152 echo "$as_me:1152: checking host system type" >&5
1153 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1154 if test "${ac_cv_host+set}" = set; then
1155 echo $ECHO_N "(cached) $ECHO_C" >&6
1156 else
1157 ac_cv_host_alias=$host_alias
1158 test -z "$ac_cv_host_alias" &&
1159 ac_cv_host_alias=$ac_cv_build_alias
1160 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1161 { { echo "$as_me:1161: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1162 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1163 { (exit 1); exit 1; }; }
1164
1165 fi
1166 echo "$as_me:1166: result: $ac_cv_host" >&5
1167 echo "${ECHO_T}$ac_cv_host" >&6
1168 host=$ac_cv_host
1169 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1170 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1171 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1172
1173 system_name="$host_os"
1174 else
1175 system_name="`(uname -s -r) 2>/dev/null`"
1176 if test -z "$system_name" ; then
1177 system_name="`(hostname) 2>/dev/null`"
1178 fi
1179 fi
1180 test -n "$system_name" &&
1181 cat >>confdefs.h <<EOF
1182 #define SYSTEM_NAME "$system_name"
1183 EOF
1184
1185 if test "${cf_cv_system_name+set}" = set; then
1186 echo $ECHO_N "(cached) $ECHO_C" >&6
1187 else
1188 cf_cv_system_name="$system_name"
1189 fi
1190
1191 test -z "$system_name" && system_name="$cf_cv_system_name"
1192 test -n "$cf_cv_system_name" && echo "$as_me:1192: result: Configuring for $cf_cv_system_name" >&5
1193 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1194
1195 if test ".$system_name" != ".$cf_cv_system_name" ; then
1196 echo "$as_me:1196: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1197 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1198 { { echo "$as_me:1198: error: \"Please remove config.cache and try again.\"" >&5
1199 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1200 { (exit 1); exit 1; }; }
1201 fi
1202
1203 ### checks for alternative programs
1204
1205 case "$host_os" in
1206 openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
1207 : ${CPPFLAGS="-D_ALL_SOURCE"}
1208 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
1209 : ${CC=c89};;
1210 darwin*)
1211 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
1212 esac
1213
1214 ac_ext=c
1215 ac_cpp='$CPP $CPPFLAGS'
1216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1219 ac_main_return=return
1220 if test -n "$ac_tool_prefix"; then
1221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1222 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1223 echo "$as_me:1223: checking for $ac_word" >&5
1224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1225 if test "${ac_cv_prog_CC+set}" = set; then
1226 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 else
1228 if test -n "$CC"; then
1229 ac_cv_prog_CC="$CC" # Let the user override the test.
1230 else
1231 ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 ac_dummy="$PATH"
1233 for ac_dir in $ac_dummy; do
1234 IFS=$ac_save_IFS
1235 test -z "$ac_dir" && ac_dir=.
1236 $as_executable_p "$ac_dir/$ac_word" || continue
1237 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1238 echo "$as_me:1238: found $ac_dir/$ac_word" >&5
1239 break
1240 done
1241
1242 fi
1243 fi
1244 CC=$ac_cv_prog_CC
1245 if test -n "$CC"; then
1246 echo "$as_me:1246: result: $CC" >&5
1247 echo "${ECHO_T}$CC" >&6
1248 else
1249 echo "$as_me:1249: result: no" >&5
1250 echo "${ECHO_T}no" >&6
1251 fi
1252
1253 fi
1254 if test -z "$ac_cv_prog_CC"; then
1255 ac_ct_CC=$CC
1256 # Extract the first word of "gcc", so it can be a program name with args.
1257 set dummy gcc; ac_word=$2
1258 echo "$as_me:1258: checking for $ac_word" >&5
1259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1261 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 else
1263 if test -n "$ac_ct_CC"; then
1264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1265 else
1266 ac_save_IFS=$IFS; IFS=$ac_path_separator
1267 ac_dummy="$PATH"
1268 for ac_dir in $ac_dummy; do
1269 IFS=$ac_save_IFS
1270 test -z "$ac_dir" && ac_dir=.
1271 $as_executable_p "$ac_dir/$ac_word" || continue
1272 ac_cv_prog_ac_ct_CC="gcc"
1273 echo "$as_me:1273: found $ac_dir/$ac_word" >&5
1274 break
1275 done
1276
1277 fi
1278 fi
1279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1280 if test -n "$ac_ct_CC"; then
1281 echo "$as_me:1281: result: $ac_ct_CC" >&5
1282 echo "${ECHO_T}$ac_ct_CC" >&6
1283 else
1284 echo "$as_me:1284: result: no" >&5
1285 echo "${ECHO_T}no" >&6
1286 fi
1287
1288 CC=$ac_ct_CC
1289 else
1290 CC="$ac_cv_prog_CC"
1291 fi
1292
1293 if test -z "$CC"; then
1294 if test -n "$ac_tool_prefix"; then
1295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1296 set dummy ${ac_tool_prefix}cc; ac_word=$2
1297 echo "$as_me:1297: checking for $ac_word" >&5
1298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1299 if test "${ac_cv_prog_CC+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 else
1302 if test -n "$CC"; then
1303 ac_cv_prog_CC="$CC" # Let the user override the test.
1304 else
1305 ac_save_IFS=$IFS; IFS=$ac_path_separator
1306 ac_dummy="$PATH"
1307 for ac_dir in $ac_dummy; do
1308 IFS=$ac_save_IFS
1309 test -z "$ac_dir" && ac_dir=.
1310 $as_executable_p "$ac_dir/$ac_word" || continue
1311 ac_cv_prog_CC="${ac_tool_prefix}cc"
1312 echo "$as_me:1312: found $ac_dir/$ac_word" >&5
1313 break
1314 done
1315
1316 fi
1317 fi
1318 CC=$ac_cv_prog_CC
1319 if test -n "$CC"; then
1320 echo "$as_me:1320: result: $CC" >&5
1321 echo "${ECHO_T}$CC" >&6
1322 else
1323 echo "$as_me:1323: result: no" >&5
1324 echo "${ECHO_T}no" >&6
1325 fi
1326
1327 fi
1328 if test -z "$ac_cv_prog_CC"; then
1329 ac_ct_CC=$CC
1330 # Extract the first word of "cc", so it can be a program name with args.
1331 set dummy cc; ac_word=$2
1332 echo "$as_me:1332: checking for $ac_word" >&5
1333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1335 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 else
1337 if test -n "$ac_ct_CC"; then
1338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1339 else
1340 ac_save_IFS=$IFS; IFS=$ac_path_separator
1341 ac_dummy="$PATH"
1342 for ac_dir in $ac_dummy; do
1343 IFS=$ac_save_IFS
1344 test -z "$ac_dir" && ac_dir=.
1345 $as_executable_p "$ac_dir/$ac_word" || continue
1346 ac_cv_prog_ac_ct_CC="cc"
1347 echo "$as_me:1347: found $ac_dir/$ac_word" >&5
1348 break
1349 done
1350
1351 fi
1352 fi
1353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1354 if test -n "$ac_ct_CC"; then
1355 echo "$as_me:1355: result: $ac_ct_CC" >&5
1356 echo "${ECHO_T}$ac_ct_CC" >&6
1357 else
1358 echo "$as_me:1358: result: no" >&5
1359 echo "${ECHO_T}no" >&6
1360 fi
1361
1362 CC=$ac_ct_CC
1363 else
1364 CC="$ac_cv_prog_CC"
1365 fi
1366
1367 fi
1368 if test -z "$CC"; then
1369 # Extract the first word of "cc", so it can be a program name with args.
1370 set dummy cc; ac_word=$2
1371 echo "$as_me:1371: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_prog_CC+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376 if test -n "$CC"; then
1377 ac_cv_prog_CC="$CC" # Let the user override the test.
1378 else
1379 ac_prog_rejected=no
1380 ac_save_IFS=$IFS; IFS=$ac_path_separator
1381 ac_dummy="$PATH"
1382 for ac_dir in $ac_dummy; do
1383 IFS=$ac_save_IFS
1384 test -z "$ac_dir" && ac_dir=.
1385 $as_executable_p "$ac_dir/$ac_word" || continue
1386 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1387 ac_prog_rejected=yes
1388 continue
1389 fi
1390 ac_cv_prog_CC="cc"
1391 echo "$as_me:1391: found $ac_dir/$ac_word" >&5
1392 break
1393 done
1394
1395 if test $ac_prog_rejected = yes; then
1396 # We found a bogon in the path, so make sure we never use it.
1397 set dummy $ac_cv_prog_CC
1398 shift
1399 if test $# != 0; then
1400 # We chose a different compiler from the bogus one.
1401 # However, it has the same basename, so the bogon will be chosen
1402 # first if we set CC to just the basename; use the full file name.
1403 shift
1404 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1405 shift
1406 ac_cv_prog_CC="$@"
1407 fi
1408 fi
1409 fi
1410 fi
1411 CC=$ac_cv_prog_CC
1412 if test -n "$CC"; then
1413 echo "$as_me:1413: result: $CC" >&5
1414 echo "${ECHO_T}$CC" >&6
1415 else
1416 echo "$as_me:1416: result: no" >&5
1417 echo "${ECHO_T}no" >&6
1418 fi
1419
1420 fi
1421 if test -z "$CC"; then
1422 if test -n "$ac_tool_prefix"; then
1423 for ac_prog in cl
1424 do
1425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1427 echo "$as_me:1427: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_prog_CC+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432 if test -n "$CC"; then
1433 ac_cv_prog_CC="$CC" # Let the user override the test.
1434 else
1435 ac_save_IFS=$IFS; IFS=$ac_path_separator
1436 ac_dummy="$PATH"
1437 for ac_dir in $ac_dummy; do
1438 IFS=$ac_save_IFS
1439 test -z "$ac_dir" && ac_dir=.
1440 $as_executable_p "$ac_dir/$ac_word" || continue
1441 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1442 echo "$as_me:1442: found $ac_dir/$ac_word" >&5
1443 break
1444 done
1445
1446 fi
1447 fi
1448 CC=$ac_cv_prog_CC
1449 if test -n "$CC"; then
1450 echo "$as_me:1450: result: $CC" >&5
1451 echo "${ECHO_T}$CC" >&6
1452 else
1453 echo "$as_me:1453: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1455 fi
1456
1457 test -n "$CC" && break
1458 done
1459 fi
1460 if test -z "$CC"; then
1461 ac_ct_CC=$CC
1462 for ac_prog in cl
1463 do
1464 # Extract the first word of "$ac_prog", so it can be a program name with args.
1465 set dummy $ac_prog; ac_word=$2
1466 echo "$as_me:1466: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471 if test -n "$ac_ct_CC"; then
1472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1473 else
1474 ac_save_IFS=$IFS; IFS=$ac_path_separator
1475 ac_dummy="$PATH"
1476 for ac_dir in $ac_dummy; do
1477 IFS=$ac_save_IFS
1478 test -z "$ac_dir" && ac_dir=.
1479 $as_executable_p "$ac_dir/$ac_word" || continue
1480 ac_cv_prog_ac_ct_CC="$ac_prog"
1481 echo "$as_me:1481: found $ac_dir/$ac_word" >&5
1482 break
1483 done
1484
1485 fi
1486 fi
1487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1488 if test -n "$ac_ct_CC"; then
1489 echo "$as_me:1489: result: $ac_ct_CC" >&5
1490 echo "${ECHO_T}$ac_ct_CC" >&6
1491 else
1492 echo "$as_me:1492: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1494 fi
1495
1496 test -n "$ac_ct_CC" && break
1497 done
1498
1499 CC=$ac_ct_CC
1500 fi
1501
1502 fi
1503
1504 test -z "$CC" && { { echo "$as_me:1504: error: no acceptable cc found in \$PATH" >&5
1505 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1506 { (exit 1); exit 1; }; }
1507
1508 # Provide some information about the compiler.
1509 echo "$as_me:1509:" \
1510 "checking for C compiler version" >&5
1511 ac_compiler=`set X $ac_compile; echo $2`
1512 { (eval echo "$as_me:1512: \"$ac_compiler --version </dev/null >&5\"") >&5
1513 (eval $ac_compiler --version </dev/null >&5) 2>&5
1514 ac_status=$?
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }
1517 { (eval echo "$as_me:1517: \"$ac_compiler -v </dev/null >&5\"") >&5
1518 (eval $ac_compiler -v </dev/null >&5) 2>&5
1519 ac_status=$?
1520 echo "$as_me:1520: \$? = $ac_status" >&5
1521 (exit $ac_status); }
1522 { (eval echo "$as_me:1522: \"$ac_compiler -V </dev/null >&5\"") >&5
1523 (eval $ac_compiler -V </dev/null >&5) 2>&5
1524 ac_status=$?
1525 echo "$as_me:1525: \$? = $ac_status" >&5
1526 (exit $ac_status); }
1527
1528 cat >conftest.$ac_ext <<_ACEOF
1529 #line 1529 "configure"
1530 #include "confdefs.h"
1531
1532 int
1533 main ()
1534 {
1535
1536 ;
1537 return 0;
1538 }
1539 _ACEOF
1540 ac_clean_files_save=$ac_clean_files
1541 ac_clean_files="$ac_clean_files a.out a.exe"
1542 # Try to create an executable without -o first, disregard a.out.
1543 # It will help us diagnose broken compilers, and finding out an intuition
1544 # of exeext.
1545 echo "$as_me:1545: checking for C compiler default output" >&5
1546 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1547 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1548 if { (eval echo "$as_me:1548: \"$ac_link_default\"") >&5
1549 (eval $ac_link_default) 2>&5
1550 ac_status=$?
1551 echo "$as_me:1551: \$? = $ac_status" >&5
1552 (exit $ac_status); }; then
1553 # Find the output, starting from the most likely. This scheme is
1554 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1555 # resort.
1556 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1557 ls a.out conftest 2>/dev/null;
1558 ls a.* conftest.* 2>/dev/null`; do
1559 case $ac_file in
1560 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1561 a.out ) # We found the default executable, but exeext='' is most
1562 # certainly right.
1563 break;;
1564 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1565 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1566 export ac_cv_exeext
1567 break;;
1568 * ) break;;
1569 esac
1570 done
1571 else
1572 echo "$as_me: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 { { echo "$as_me:1574: error: C compiler cannot create executables" >&5
1575 echo "$as_me: error: C compiler cannot create executables" >&2;}
1576 { (exit 77); exit 77; }; }
1577 fi
1578
1579 ac_exeext=$ac_cv_exeext
1580 echo "$as_me:1580: result: $ac_file" >&5
1581 echo "${ECHO_T}$ac_file" >&6
1582
1583 # Check the compiler produces executables we can run. If not, either
1584 # the compiler is broken, or we cross compile.
1585 echo "$as_me:1585: checking whether the C compiler works" >&5
1586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1588 # If not cross compiling, check that we can run a simple program.
1589 if test "$cross_compiling" != yes; then
1590 if { ac_try='./$ac_file'
1591 { (eval echo "$as_me:1591: \"$ac_try\"") >&5
1592 (eval $ac_try) 2>&5
1593 ac_status=$?
1594 echo "$as_me:1594: \$? = $ac_status" >&5
1595 (exit $ac_status); }; }; then
1596 cross_compiling=no
1597 else
1598 if test "$cross_compiling" = maybe; then
1599 cross_compiling=yes
1600 else
1601 { { echo "$as_me:1601: error: cannot run C compiled programs.
1602 If you meant to cross compile, use \`--host'." >&5
1603 echo "$as_me: error: cannot run C compiled programs.
1604 If you meant to cross compile, use \`--host'." >&2;}
1605 { (exit 1); exit 1; }; }
1606 fi
1607 fi
1608 fi
1609 echo "$as_me:1609: result: yes" >&5
1610 echo "${ECHO_T}yes" >&6
1611
1612 rm -f a.out a.exe conftest$ac_cv_exeext
1613 ac_clean_files=$ac_clean_files_save
1614 # Check the compiler produces executables we can run. If not, either
1615 # the compiler is broken, or we cross compile.
1616 echo "$as_me:1616: checking whether we are cross compiling" >&5
1617 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1618 echo "$as_me:1618: result: $cross_compiling" >&5
1619 echo "${ECHO_T}$cross_compiling" >&6
1620
1621 echo "$as_me:1621: checking for executable suffix" >&5
1622 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1623 if { (eval echo "$as_me:1623: \"$ac_link\"") >&5
1624 (eval $ac_link) 2>&5
1625 ac_status=$?
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit $ac_status); }; then
1628 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1629 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1630 # work properly (i.e., refer to `conftest.exe'), while it won't with
1631 # `rm'.
1632 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1633 case $ac_file in
1634 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1636 export ac_cv_exeext
1637 break;;
1638 * ) break;;
1639 esac
1640 done
1641 else
1642 { { echo "$as_me:1642: error: cannot compute EXEEXT: cannot compile and link" >&5
1643 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1644 { (exit 1); exit 1; }; }
1645 fi
1646
1647 rm -f conftest$ac_cv_exeext
1648 echo "$as_me:1648: result: $ac_cv_exeext" >&5
1649 echo "${ECHO_T}$ac_cv_exeext" >&6
1650
1651 rm -f conftest.$ac_ext
1652 EXEEXT=$ac_cv_exeext
1653 ac_exeext=$EXEEXT
1654 echo "$as_me:1654: checking for object suffix" >&5
1655 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1656 if test "${ac_cv_objext+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 cat >conftest.$ac_ext <<_ACEOF
1660 #line 1660 "configure"
1661 #include "confdefs.h"
1662
1663 int
1664 main ()
1665 {
1666
1667 ;
1668 return 0;
1669 }
1670 _ACEOF
1671 rm -f conftest.o conftest.obj
1672 if { (eval echo "$as_me:1672: \"$ac_compile\"") >&5
1673 (eval $ac_compile) 2>&5
1674 ac_status=$?
1675 echo "$as_me:1675: \$? = $ac_status" >&5
1676 (exit $ac_status); }; then
1677 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1678 case $ac_file in
1679 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1681 break;;
1682 esac
1683 done
1684 else
1685 echo "$as_me: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1687 { { echo "$as_me:1687: error: cannot compute OBJEXT: cannot compile" >&5
1688 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1689 { (exit 1); exit 1; }; }
1690 fi
1691
1692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1693 fi
1694 echo "$as_me:1694: result: $ac_cv_objext" >&5
1695 echo "${ECHO_T}$ac_cv_objext" >&6
1696 OBJEXT=$ac_cv_objext
1697 ac_objext=$OBJEXT
1698 echo "$as_me:1698: checking whether we are using the GNU C compiler" >&5
1699 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1700 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 cat >conftest.$ac_ext <<_ACEOF
1704 #line 1704 "configure"
1705 #include "confdefs.h"
1706
1707 int
1708 main ()
1709 {
1710 #ifndef __GNUC__
1711 choke me
1712 #endif
1713
1714 ;
1715 return 0;
1716 }
1717 _ACEOF
1718 rm -f conftest.$ac_objext
1719 if { (eval echo "$as_me:1719: \"$ac_compile\"") >&5
1720 (eval $ac_compile) 2>&5
1721 ac_status=$?
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); } &&
1724 { ac_try='test -s conftest.$ac_objext'
1725 { (eval echo "$as_me:1725: \"$ac_try\"") >&5
1726 (eval $ac_try) 2>&5
1727 ac_status=$?
1728 echo "$as_me:1728: \$? = $ac_status" >&5
1729 (exit $ac_status); }; }; then
1730 ac_compiler_gnu=yes
1731 else
1732 echo "$as_me: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1734 ac_compiler_gnu=no
1735 fi
1736 rm -f conftest.$ac_objext conftest.$ac_ext
1737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1738
1739 fi
1740 echo "$as_me:1740: result: $ac_cv_c_compiler_gnu" >&5
1741 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1742 GCC=`test $ac_compiler_gnu = yes && echo yes`
1743 ac_test_CFLAGS=${CFLAGS+set}
1744 ac_save_CFLAGS=$CFLAGS
1745 CFLAGS="-g"
1746 echo "$as_me:1746: checking whether $CC accepts -g" >&5
1747 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1748 if test "${ac_cv_prog_cc_g+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line 1752 "configure"
1753 #include "confdefs.h"
1754
1755 int
1756 main ()
1757 {
1758
1759 ;
1760 return 0;
1761 }
1762 _ACEOF
1763 rm -f conftest.$ac_objext
1764 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765 (eval $ac_compile) 2>&5
1766 ac_status=$?
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } &&
1769 { ac_try='test -s conftest.$ac_objext'
1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1771 (eval $ac_try) 2>&5
1772 ac_status=$?
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); }; }; then
1775 ac_cv_prog_cc_g=yes
1776 else
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 ac_cv_prog_cc_g=no
1780 fi
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 echo "$as_me:1783: result: $ac_cv_prog_cc_g" >&5
1784 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1785 if test "$ac_test_CFLAGS" = set; then
1786 CFLAGS=$ac_save_CFLAGS
1787 elif test $ac_cv_prog_cc_g = yes; then
1788 if test "$GCC" = yes; then
1789 CFLAGS="-g -O2"
1790 else
1791 CFLAGS="-g"
1792 fi
1793 else
1794 if test "$GCC" = yes; then
1795 CFLAGS="-O2"
1796 else
1797 CFLAGS=
1798 fi
1799 fi
1800 # Some people use a C++ compiler to compile C. Since we use `exit',
1801 # in C++ we need to declare it. In case someone uses the same compiler
1802 # for both compiling C and C++ we need to have the C++ compiler decide
1803 # the declaration of exit, since it's the most demanding environment.
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #ifndef __cplusplus
1806 choke me
1807 #endif
1808 _ACEOF
1809 rm -f conftest.$ac_objext
1810 if { (eval echo "$as_me:1810: \"$ac_compile\"") >&5
1811 (eval $ac_compile) 2>&5
1812 ac_status=$?
1813 echo "$as_me:1813: \$? = $ac_status" >&5
1814 (exit $ac_status); } &&
1815 { ac_try='test -s conftest.$ac_objext'
1816 { (eval echo "$as_me:1816: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:1819: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 for ac_declaration in \
1822 ''\
1823 '#include <stdlib.h>' \
1824 'extern "C" void std::exit (int) throw (); using std::exit;' \
1825 'extern "C" void std::exit (int); using std::exit;' \
1826 'extern "C" void exit (int) throw ();' \
1827 'extern "C" void exit (int);' \
1828 'void exit (int);'
1829 do
1830 cat >conftest.$ac_ext <<_ACEOF
1831 #line 1831 "configure"
1832 #include "confdefs.h"
1833 #include <stdlib.h>
1834 $ac_declaration
1835 int
1836 main ()
1837 {
1838 exit (42);
1839 ;
1840 return 0;
1841 }
1842 _ACEOF
1843 rm -f conftest.$ac_objext
1844 if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 (eval $ac_compile) 2>&5
1846 ac_status=$?
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit $ac_status); } &&
1849 { ac_try='test -s conftest.$ac_objext'
1850 { (eval echo "$as_me:1850: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 :
1856 else
1857 echo "$as_me: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 continue
1860 fi
1861 rm -f conftest.$ac_objext conftest.$ac_ext
1862 cat >conftest.$ac_ext <<_ACEOF
1863 #line 1863 "configure"
1864 #include "confdefs.h"
1865 $ac_declaration
1866 int
1867 main ()
1868 {
1869 exit (42);
1870 ;
1871 return 0;
1872 }
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:1875: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1877 ac_status=$?
1878 echo "$as_me:1878: \$? = $ac_status" >&5
1879 (exit $ac_status); } &&
1880 { ac_try='test -s conftest.$ac_objext'
1881 { (eval echo "$as_me:1881: \"$ac_try\"") >&5
1882 (eval $ac_try) 2>&5
1883 ac_status=$?
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); }; }; then
1886 break
1887 else
1888 echo "$as_me: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1890 fi
1891 rm -f conftest.$ac_objext conftest.$ac_ext
1892 done
1893 rm -rf conftest*
1894 if test -n "$ac_declaration"; then
1895 echo '#ifdef __cplusplus' >>confdefs.h
1896 echo $ac_declaration >>confdefs.h
1897 echo '#endif' >>confdefs.h
1898 fi
1899
1900 else
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 fi
1904 rm -f conftest.$ac_objext conftest.$ac_ext
1905 ac_ext=c
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 ac_main_return=return
1911
1912 GCC_VERSION=none
1913 if test "$GCC" = yes ; then
1914 echo "$as_me:1914: checking version of $CC" >&5
1915 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1916 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1917 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1918 echo "$as_me:1918: result: $GCC_VERSION" >&5
1919 echo "${ECHO_T}$GCC_VERSION" >&6
1920 fi
1921
1922 echo "$as_me:1922: checking for $CC option to accept ANSI C" >&5
1923 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1924 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 ac_cv_prog_cc_stdc=no
1928 ac_save_CC=$CC
1929 cat >conftest.$ac_ext <<_ACEOF
1930 #line 1930 "configure"
1931 #include "confdefs.h"
1932 #include <stdarg.h>
1933 #include <stdio.h>
1934 #include <sys/types.h>
1935 #include <sys/stat.h>
1936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1937 struct buf { int x; };
1938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1939 static char *e (p, i)
1940 char **p;
1941 int i;
1942 {
1943 return p[i];
1944 }
1945 static char *f (char * (*g) (char **, int), char **p, ...)
1946 {
1947 char *s;
1948 va_list v;
1949 va_start (v,p);
1950 s = g (p, va_arg (v,int));
1951 va_end (v);
1952 return s;
1953 }
1954 int test (int i, double x);
1955 struct s1 {int (*f) (int a);};
1956 struct s2 {int (*f) (double a);};
1957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1958 int argc;
1959 char **argv;
1960 int
1961 main ()
1962 {
1963 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 # Don't try gcc -ansi; that turns off useful extensions and
1969 # breaks some systems' header files.
1970 # AIX -qlanglvl=ansi
1971 # Ultrix and OSF/1 -std1
1972 # HP-UX 10.20 and later -Ae
1973 # HP-UX older versions -Aa -D_HPUX_SOURCE
1974 # SVR4 -Xc -D__EXTENSIONS__
1975 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1976 do
1977 CC="$ac_save_CC $ac_arg"
1978 rm -f conftest.$ac_objext
1979 if { (eval echo "$as_me:1979: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1981 ac_status=$?
1982 echo "$as_me:1982: \$? = $ac_status" >&5
1983 (exit $ac_status); } &&
1984 { ac_try='test -s conftest.$ac_objext'
1985 { (eval echo "$as_me:1985: \"$ac_try\"") >&5
1986 (eval $ac_try) 2>&5
1987 ac_status=$?
1988 echo "$as_me:1988: \$? = $ac_status" >&5
1989 (exit $ac_status); }; }; then
1990 ac_cv_prog_cc_stdc=$ac_arg
1991 break
1992 else
1993 echo "$as_me: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 fi
1996 rm -f conftest.$ac_objext
1997 done
1998 rm -f conftest.$ac_ext conftest.$ac_objext
1999 CC=$ac_save_CC
2000
2001 fi
2002
2003 case "x$ac_cv_prog_cc_stdc" in
2004 x|xno)
2005 echo "$as_me:2005: result: none needed" >&5
2006 echo "${ECHO_T}none needed" >&6 ;;
2007 *)
2008 echo "$as_me:2008: result: $ac_cv_prog_cc_stdc" >&5
2009 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2010 CC="$CC $ac_cv_prog_cc_stdc" ;;
2011 esac
2012
2013 # This should have been defined by AC_PROG_CC
2014 : ${CC:=cc}
2015
2016 echo "$as_me:2016: checking \$CC variable" >&5
2017 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2018 case "$CC" in #(vi
2019 *[\ \ ]-[IUD]*)
2020 echo "$as_me:2020: result: broken" >&5
2021 echo "${ECHO_T}broken" >&6
2022 { echo "$as_me:2022: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2023 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2024 # humor him...
2025 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2026 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2027
2028 cf_fix_cppflags=no
2029 cf_new_cflags=
2030 cf_new_cppflags=
2031 cf_new_extra_cppflags=
2032
2033 for cf_add_cflags in $cf_flags
2034 do
2035 case $cf_fix_cppflags in
2036 no)
2037 case $cf_add_cflags in #(vi
2038 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2039 case $cf_add_cflags in
2040 -D*)
2041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2042
2043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2044 && test -z "${cf_tst_cflags}" \
2045 && cf_fix_cppflags=yes
2046
2047 if test $cf_fix_cppflags = yes ; then
2048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2049 continue
2050 elif test "${cf_tst_cflags}" = "\"'" ; then
2051 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2052 continue
2053 fi
2054 ;;
2055 esac
2056 case "$CPPFLAGS" in
2057 *$cf_add_cflags) #(vi
2058 ;;
2059 *) #(vi
2060 case $cf_add_cflags in #(vi
2061 -D*)
2062 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2063
2064 CPPFLAGS=`echo "$CPPFLAGS" | \
2065 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2066 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2067
2068 ;;
2069 esac
2070 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2071 ;;
2072 esac
2073 ;;
2074 *)
2075 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2076 ;;
2077 esac
2078 ;;
2079 yes)
2080 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2081
2082 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2083
2084 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2085 && test -z "${cf_tst_cflags}" \
2086 && cf_fix_cppflags=no
2087 ;;
2088 esac
2089 done
2090
2091 if test -n "$cf_new_cflags" ; then
2092
2093 CFLAGS="$CFLAGS $cf_new_cflags"
2094 fi
2095
2096 if test -n "$cf_new_cppflags" ; then
2097
2098 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2099 fi
2100
2101 if test -n "$cf_new_extra_cppflags" ; then
2102
2103 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2104 fi
2105
2106 ;;
2107 *)
2108 echo "$as_me:2108: result: ok" >&5
2109 echo "${ECHO_T}ok" >&6
2110 ;;
2111 esac
2112
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 ac_main_return=return
2119 echo "$as_me:2119: checking how to run the C preprocessor" >&5
2120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2121 # On Suns, sometimes $CPP names a directory.
2122 if test -n "$CPP" && test -d "$CPP"; then
2123 CPP=
2124 fi
2125 if test -z "$CPP"; then
2126 if test "${ac_cv_prog_CPP+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 # Double quotes because CPP needs to be expanded
2130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2131 do
2132 ac_preproc_ok=false
2133 for ac_c_preproc_warn_flag in '' yes
2134 do
2135 # Use a header file that comes with gcc, so configuring glibc
2136 # with a fresh cross-compiler works.
2137 # On the NeXT, cc -E runs the code through the compiler's parser,
2138 # not just through cpp. "Syntax error" is here to catch this case.
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line 2140 "configure"
2141 #include "confdefs.h"
2142 #include <assert.h>
2143 Syntax error
2144 _ACEOF
2145 if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5
2146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2147 ac_status=$?
2148 egrep -v '^ *\+' conftest.er1 >conftest.err
2149 rm -f conftest.er1
2150 cat conftest.err >&5
2151 echo "$as_me:2151: \$? = $ac_status" >&5
2152 (exit $ac_status); } >/dev/null; then
2153 if test -s conftest.err; then
2154 ac_cpp_err=$ac_c_preproc_warn_flag
2155 else
2156 ac_cpp_err=
2157 fi
2158 else
2159 ac_cpp_err=yes
2160 fi
2161 if test -z "$ac_cpp_err"; then
2162 :
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 # Broken: fails on valid input.
2167 continue
2168 fi
2169 rm -f conftest.err conftest.$ac_ext
2170
2171 # OK, works on sane cases. Now check whether non-existent headers
2172 # can be detected and how.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2176 #include <ac_nonexistent.h>
2177 _ACEOF
2178 if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5
2179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2180 ac_status=$?
2181 egrep -v '^ *\+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
2184 echo "$as_me:2184: \$? = $ac_status" >&5
2185 (exit $ac_status); } >/dev/null; then
2186 if test -s conftest.err; then
2187 ac_cpp_err=$ac_c_preproc_warn_flag
2188 else
2189 ac_cpp_err=
2190 fi
2191 else
2192 ac_cpp_err=yes
2193 fi
2194 if test -z "$ac_cpp_err"; then
2195 # Broken: success on invalid input.
2196 continue
2197 else
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 # Passes both tests.
2201 ac_preproc_ok=:
2202 break
2203 fi
2204 rm -f conftest.err conftest.$ac_ext
2205
2206 done
2207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2208 rm -f conftest.err conftest.$ac_ext
2209 if $ac_preproc_ok; then
2210 break
2211 fi
2212
2213 done
2214 ac_cv_prog_CPP=$CPP
2215
2216 fi
2217 CPP=$ac_cv_prog_CPP
2218 else
2219 ac_cv_prog_CPP=$CPP
2220 fi
2221 echo "$as_me:2221: result: $CPP" >&5
2222 echo "${ECHO_T}$CPP" >&6
2223 ac_preproc_ok=false
2224 for ac_c_preproc_warn_flag in '' yes
2225 do
2226 # Use a header file that comes with gcc, so configuring glibc
2227 # with a fresh cross-compiler works.
2228 # On the NeXT, cc -E runs the code through the compiler's parser,
2229 # not just through cpp. "Syntax error" is here to catch this case.
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line 2231 "configure"
2232 #include "confdefs.h"
2233 #include <assert.h>
2234 Syntax error
2235 _ACEOF
2236 if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5
2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2238 ac_status=$?
2239 egrep -v '^ *\+' conftest.er1 >conftest.err
2240 rm -f conftest.er1
2241 cat conftest.err >&5
2242 echo "$as_me:2242: \$? = $ac_status" >&5
2243 (exit $ac_status); } >/dev/null; then
2244 if test -s conftest.err; then
2245 ac_cpp_err=$ac_c_preproc_warn_flag
2246 else
2247 ac_cpp_err=
2248 fi
2249 else
2250 ac_cpp_err=yes
2251 fi
2252 if test -z "$ac_cpp_err"; then
2253 :
2254 else
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 # Broken: fails on valid input.
2258 continue
2259 fi
2260 rm -f conftest.err conftest.$ac_ext
2261
2262 # OK, works on sane cases. Now check whether non-existent headers
2263 # can be detected and how.
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line 2265 "configure"
2266 #include "confdefs.h"
2267 #include <ac_nonexistent.h>
2268 _ACEOF
2269 if { (eval echo "$as_me:2269: \"$ac_cpp conftest.$ac_ext\"") >&5
2270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2271 ac_status=$?
2272 egrep -v '^ *\+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:2275: \$? = $ac_status" >&5
2276 (exit $ac_status); } >/dev/null; then
2277 if test -s conftest.err; then
2278 ac_cpp_err=$ac_c_preproc_warn_flag
2279 else
2280 ac_cpp_err=
2281 fi
2282 else
2283 ac_cpp_err=yes
2284 fi
2285 if test -z "$ac_cpp_err"; then
2286 # Broken: success on invalid input.
2287 continue
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 # Passes both tests.
2292 ac_preproc_ok=:
2293 break
2294 fi
2295 rm -f conftest.err conftest.$ac_ext
2296
2297 done
2298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2299 rm -f conftest.err conftest.$ac_ext
2300 if $ac_preproc_ok; then
2301 :
2302 else
2303 { { echo "$as_me:2303: error: C preprocessor \"$CPP\" fails sanity check" >&5
2304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2305 { (exit 1); exit 1; }; }
2306 fi
2307
2308 ac_ext=c
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 ac_main_return=return
2314
2315 for ac_prog in mawk gawk nawk awk
2316 do
2317 # Extract the first word of "$ac_prog", so it can be a program name with args.
2318 set dummy $ac_prog; ac_word=$2
2319 echo "$as_me:2319: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_AWK+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 if test -n "$AWK"; then
2325 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2326 else
2327 ac_save_IFS=$IFS; IFS=$ac_path_separator
2328 ac_dummy="$PATH"
2329 for ac_dir in $ac_dummy; do
2330 IFS=$ac_save_IFS
2331 test -z "$ac_dir" && ac_dir=.
2332 $as_executable_p "$ac_dir/$ac_word" || continue
2333 ac_cv_prog_AWK="$ac_prog"
2334 echo "$as_me:2334: found $ac_dir/$ac_word" >&5
2335 break
2336 done
2337
2338 fi
2339 fi
2340 AWK=$ac_cv_prog_AWK
2341 if test -n "$AWK"; then
2342 echo "$as_me:2342: result: $AWK" >&5
2343 echo "${ECHO_T}$AWK" >&6
2344 else
2345 echo "$as_me:2345: result: no" >&5
2346 echo "${ECHO_T}no" >&6
2347 fi
2348
2349 test -n "$AWK" && break
2350 done
2351
2352 # Extract the first word of "groff", so it can be a program name with args.
2353 set dummy groff; ac_word=$2
2354 echo "$as_me:2354: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 case $GROFF_PATH in
2360 [\\/]* | ?:[\\/]*)
2361 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
2362 ;;
2363 *)
2364 ac_save_IFS=$IFS; IFS=$ac_path_separator
2365 ac_dummy="$PATH"
2366 for ac_dir in $ac_dummy; do
2367 IFS=$ac_save_IFS
2368 test -z "$ac_dir" && ac_dir=.
2369 if $as_executable_p "$ac_dir/$ac_word"; then
2370 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
2371 echo "$as_me:2371: found $ac_dir/$ac_word" >&5
2372 break
2373 fi
2374 done
2375
2376 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
2377 ;;
2378 esac
2379 fi
2380 GROFF_PATH=$ac_cv_path_GROFF_PATH
2381
2382 if test -n "$GROFF_PATH"; then
2383 echo "$as_me:2383: result: $GROFF_PATH" >&5
2384 echo "${ECHO_T}$GROFF_PATH" >&6
2385 else
2386 echo "$as_me:2386: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 fi
2389
2390 if test "x$GROFF_PATH" = xno
2391 then
2392 NROFF_NOTE=
2393 GROFF_NOTE="#"
2394 else
2395 NROFF_NOTE="#"
2396 GROFF_NOTE=
2397 fi
2398
2399 # Find a good install program. We prefer a C program (faster),
2400 # so one script is as good as another. But avoid the broken or
2401 # incompatible versions:
2402 # SysV /etc/install, /usr/sbin/install
2403 # SunOS /usr/etc/install
2404 # IRIX /sbin/install
2405 # AIX /bin/install
2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2410 # ./install, which can be erroneously created by make from ./install.sh.
2411 echo "$as_me:2411: checking for a BSD compatible install" >&5
2412 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2413 if test -z "$INSTALL"; then
2414 if test "${ac_cv_path_install+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 ac_save_IFS=$IFS; IFS=$ac_path_separator
2418 for ac_dir in $PATH; do
2419 IFS=$ac_save_IFS
2420 # Account for people who put trailing slashes in PATH elements.
2421 case $ac_dir/ in
2422 / | ./ | .// | /cC/* \
2423 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2424 | /usr/ucb/* ) ;;
2425 *)
2426 # OSF1 and SCO ODT 3.0 have their own names for install.
2427 # Don't use installbsd from OSF since it installs stuff as root
2428 # by default.
2429 for ac_prog in ginstall scoinst install; do
2430 if $as_executable_p "$ac_dir/$ac_prog"; then
2431 if test $ac_prog = install &&
2432 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2433 # AIX install. It has an incompatible calling convention.
2434 :
2435 elif test $ac_prog = install &&
2436 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2437 # program-specific install script used by HP pwplus--don't use.
2438 :
2439 else
2440 ac_cv_path_install="$ac_dir/$ac_prog -c"
2441 break 2
2442 fi
2443 fi
2444 done
2445 ;;
2446 esac
2447 done
2448
2449 fi
2450 if test "${ac_cv_path_install+set}" = set; then
2451 INSTALL=$ac_cv_path_install
2452 else
2453 # As a last resort, use the slow shell script. We don't cache a
2454 # path for INSTALL within a source directory, because that will
2455 # break other packages using the cache if that directory is
2456 # removed, or if the path is relative.
2457 INSTALL=$ac_install_sh
2458 fi
2459 fi
2460 echo "$as_me:2460: result: $INSTALL" >&5
2461 echo "${ECHO_T}$INSTALL" >&6
2462
2463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464 # It thinks the first close brace ends the variable substitution.
2465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466
2467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468
2469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470
2471 echo "$as_me:2471: checking whether ln -s works" >&5
2472 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2473 LN_S=$as_ln_s
2474 if test "$LN_S" = "ln -s"; then
2475 echo "$as_me:2475: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6
2477 else
2478 echo "$as_me:2478: result: no, using $LN_S" >&5
2479 echo "${ECHO_T}no, using $LN_S" >&6
2480 fi
2481
2482 test "$program_prefix" != NONE &&
2483 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2484 # Use a double $ so make ignores it.
2485 test "$program_suffix" != NONE &&
2486 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2487 # Double any \ or $. echo might interpret backslashes.
2488 # By default was `s,x,x', remove it if useless.
2489 cat <<\_ACEOF >conftest.sed
2490 s/[\\$]/&&/g;s/;s,x,x,$//
2491 _ACEOF
2492 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2493 rm conftest.sed
2494
2495 for ac_prog in tdlint lint alint
2496 do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 echo "$as_me:2499: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_LINT+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 if test -n "$LINT"; then
2505 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2506 else
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2508 ac_dummy="$PATH"
2509 for ac_dir in $ac_dummy; do
2510 IFS=$ac_save_IFS
2511 test -z "$ac_dir" && ac_dir=.
2512 $as_executable_p "$ac_dir/$ac_word" || continue
2513 ac_cv_prog_LINT="$ac_prog"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2515 break
2516 done
2517
2518 fi
2519 fi
2520 LINT=$ac_cv_prog_LINT
2521 if test -n "$LINT"; then
2522 echo "$as_me:2522: result: $LINT" >&5
2523 echo "${ECHO_T}$LINT" >&6
2524 else
2525 echo "$as_me:2525: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2527 fi
2528
2529 test -n "$LINT" && break
2530 done
2531
2532 ### checks for compiler characteristics
2533
2534 cf_XOPEN_SOURCE=500
2535 cf_POSIX_C_SOURCE=199506L
2536 cf_xopen_source=
2537
2538 case $host_os in #(vi
2539 aix[4-7]*) #(vi
2540 cf_xopen_source="-D_ALL_SOURCE"
2541 ;;
2542 cygwin|msys) #(vi
2543 cf_XOPEN_SOURCE=600
2544 ;;
2545 darwin[0-8].*) #(vi
2546 cf_xopen_source="-D_APPLE_C_SOURCE"
2547 ;;
2548 darwin*) #(vi
2549 cf_xopen_source="-D_DARWIN_C_SOURCE"
2550 cf_XOPEN_SOURCE=
2551 ;;
2552 freebsd*|dragonfly*) #(vi
2553 # 5.x headers associate
2554 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2555 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2556 cf_POSIX_C_SOURCE=200112L
2557 cf_XOPEN_SOURCE=600
2558 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2559 ;;
2560 hpux11*) #(vi
2561 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2562 ;;
2563 hpux*) #(vi
2564 cf_xopen_source="-D_HPUX_SOURCE"
2565 ;;
2566 irix[56].*) #(vi
2567 cf_xopen_source="-D_SGI_SOURCE"
2568 cf_XOPEN_SOURCE=
2569 ;;
2570 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2571
2572 echo "$as_me:2572: checking if we must define _GNU_SOURCE" >&5
2573 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2574 if test "${cf_cv_gnu_source+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577
2578 cat >conftest.$ac_ext <<_ACEOF
2579 #line 2579 "configure"
2580 #include "confdefs.h"
2581 #include <sys/types.h>
2582 int
2583 main ()
2584 {
2585
2586 #ifndef _XOPEN_SOURCE
2587 make an error
2588 #endif
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:2594: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:2600: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:2603: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 cf_cv_gnu_source=no
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 cf_save="$CPPFLAGS"
2610 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line 2612 "configure"
2613 #include "confdefs.h"
2614 #include <sys/types.h>
2615 int
2616 main ()
2617 {
2618
2619 #ifdef _XOPEN_SOURCE
2620 make an error
2621 #endif
2622 ;
2623 return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:2627: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2629 ac_status=$?
2630 echo "$as_me:2630: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:2633: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 cf_cv_gnu_source=no
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 cf_cv_gnu_source=yes
2643 fi
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645 CPPFLAGS="$cf_save"
2646
2647 fi
2648 rm -f conftest.$ac_objext conftest.$ac_ext
2649
2650 fi
2651 echo "$as_me:2651: result: $cf_cv_gnu_source" >&5
2652 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2653 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2654
2655 ;;
2656 mirbsd*) #(vi
2657 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2658 cf_XOPEN_SOURCE=
2659
2660 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2661
2662 cf_save_CFLAGS="$CFLAGS"
2663 cf_save_CPPFLAGS="$CPPFLAGS"
2664
2665 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2666 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2667 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2668
2669 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2670 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2671 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2672
2673 echo "$as_me:2673: checking if we should define _POSIX_C_SOURCE" >&5
2674 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2675 if test "${cf_cv_posix_c_source+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678
2679 echo "${as_me:-configure}:2679: testing if the symbol is already defined go no further ..." 1>&5
2680
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #line 2682 "configure"
2683 #include "confdefs.h"
2684 #include <sys/types.h>
2685 int
2686 main ()
2687 {
2688
2689 #ifndef _POSIX_C_SOURCE
2690 make an error
2691 #endif
2692 ;
2693 return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:2697: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>&5
2699 ac_status=$?
2700 echo "$as_me:2700: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:2703: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 cf_cv_posix_c_source=no
2709 else
2710 echo "$as_me: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 cf_want_posix_source=no
2713 case .$cf_POSIX_C_SOURCE in #(vi
2714 .[12]??*) #(vi
2715 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2716 ;;
2717 .2) #(vi
2718 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2719 cf_want_posix_source=yes
2720 ;;
2721 .*)
2722 cf_want_posix_source=yes
2723 ;;
2724 esac
2725 if test "$cf_want_posix_source" = yes ; then
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line 2727 "configure"
2728 #include "confdefs.h"
2729 #include <sys/types.h>
2730 int
2731 main ()
2732 {
2733
2734 #ifdef _POSIX_SOURCE
2735 make an error
2736 #endif
2737 ;
2738 return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:2742: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2744 ac_status=$?
2745 echo "$as_me:2745: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:2748: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:2751: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 :
2754 else
2755 echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2757 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2758 fi
2759 rm -f conftest.$ac_objext conftest.$ac_ext
2760 fi
2761
2762 echo "${as_me:-configure}:2762: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2763
2764 CFLAGS="$cf_trim_CFLAGS"
2765 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2766
2767 echo "${as_me:-configure}:2767: testing if the second compile does not leave our definition intact error ..." 1>&5
2768
2769 cat >conftest.$ac_ext <<_ACEOF
2770 #line 2770 "configure"
2771 #include "confdefs.h"
2772 #include <sys/types.h>
2773 int
2774 main ()
2775 {
2776
2777 #ifndef _POSIX_C_SOURCE
2778 make an error
2779 #endif
2780 ;
2781 return 0;
2782 }
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:2785: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>&5
2787 ac_status=$?
2788 echo "$as_me:2788: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:2791: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:2794: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2796 :
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2800 cf_cv_posix_c_source=no
2801 fi
2802 rm -f conftest.$ac_objext conftest.$ac_ext
2803 CFLAGS="$cf_save_CFLAGS"
2804 CPPFLAGS="$cf_save_CPPFLAGS"
2805
2806 fi
2807 rm -f conftest.$ac_objext conftest.$ac_ext
2808
2809 fi
2810 echo "$as_me:2810: result: $cf_cv_posix_c_source" >&5
2811 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2812
2813 if test "$cf_cv_posix_c_source" != no ; then
2814 CFLAGS="$cf_trim_CFLAGS"
2815 CPPFLAGS="$cf_trim_CPPFLAGS"
2816
2817 cf_fix_cppflags=no
2818 cf_new_cflags=
2819 cf_new_cppflags=
2820 cf_new_extra_cppflags=
2821
2822 for cf_add_cflags in $cf_cv_posix_c_source
2823 do
2824 case $cf_fix_cppflags in
2825 no)
2826 case $cf_add_cflags in #(vi
2827 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2828 case $cf_add_cflags in
2829 -D*)
2830 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2831
2832 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2833 && test -z "${cf_tst_cflags}" \
2834 && cf_fix_cppflags=yes
2835
2836 if test $cf_fix_cppflags = yes ; then
2837 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2838 continue
2839 elif test "${cf_tst_cflags}" = "\"'" ; then
2840 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2841 continue
2842 fi
2843 ;;
2844 esac
2845 case "$CPPFLAGS" in
2846 *$cf_add_cflags) #(vi
2847 ;;
2848 *) #(vi
2849 case $cf_add_cflags in #(vi
2850 -D*)
2851 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2852
2853 CPPFLAGS=`echo "$CPPFLAGS" | \
2854 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2855 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2856
2857 ;;
2858 esac
2859 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2860 ;;
2861 esac
2862 ;;
2863 *)
2864 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2865 ;;
2866 esac
2867 ;;
2868 yes)
2869 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2870
2871 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2872
2873 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2874 && test -z "${cf_tst_cflags}" \
2875 && cf_fix_cppflags=no
2876 ;;
2877 esac
2878 done
2879
2880 if test -n "$cf_new_cflags" ; then
2881
2882 CFLAGS="$CFLAGS $cf_new_cflags"
2883 fi
2884
2885 if test -n "$cf_new_cppflags" ; then
2886
2887 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2888 fi
2889
2890 if test -n "$cf_new_extra_cppflags" ; then
2891
2892 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2893 fi
2894
2895 fi
2896
2897 ;;
2898 netbsd*) #(vi
2899 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2900 ;;
2901 openbsd[4-9]*) #(vi
2902 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2903 cf_xopen_source="-D_BSD_SOURCE"
2904 cf_XOPEN_SOURCE=600
2905 ;;
2906 openbsd*) #(vi
2907 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2908 ;;
2909 osf[45]*) #(vi
2910 cf_xopen_source="-D_OSF_SOURCE"
2911 ;;
2912 nto-qnx*) #(vi
2913 cf_xopen_source="-D_QNX_SOURCE"
2914 ;;
2915 sco*) #(vi
2916 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2917 ;;
2918 solaris2.*) #(vi
2919 cf_xopen_source="-D__EXTENSIONS__"
2920 ;;
2921 *)
2922
2923 echo "$as_me:2923: checking if we should define _XOPEN_SOURCE" >&5
2924 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2925 if test "${cf_cv_xopen_source+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #line 2930 "configure"
2931 #include "confdefs.h"
2932
2933 #include <stdlib.h>
2934 #include <string.h>
2935 #include <sys/types.h>
2936
2937 int
2938 main ()
2939 {
2940
2941 #ifndef _XOPEN_SOURCE
2942 make an error
2943 #endif
2944 ;
2945 return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:2949: \"$ac_compile\"") >&5
2950 (eval $ac_compile) 2>&5
2951 ac_status=$?
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:2955: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:2958: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 cf_cv_xopen_source=no
2961 else
2962 echo "$as_me: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2964 cf_save="$CPPFLAGS"
2965 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #line 2967 "configure"
2968 #include "confdefs.h"
2969
2970 #include <stdlib.h>
2971 #include <string.h>
2972 #include <sys/types.h>
2973
2974 int
2975 main ()
2976 {
2977
2978 #ifdef _XOPEN_SOURCE
2979 make an error
2980 #endif
2981 ;
2982 return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (eval echo "$as_me:2986: \"$ac_compile\"") >&5
2987 (eval $ac_compile) 2>&5
2988 ac_status=$?
2989 echo "$as_me:2989: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:2992: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 cf_cv_xopen_source=no
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3002 fi
3003 rm -f conftest.$ac_objext conftest.$ac_ext
3004 CPPFLAGS="$cf_save"
3005
3006 fi
3007 rm -f conftest.$ac_objext conftest.$ac_ext
3008
3009 fi
3010 echo "$as_me:3010: result: $cf_cv_xopen_source" >&5
3011 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3012
3013 if test "$cf_cv_xopen_source" != no ; then
3014
3015 CFLAGS=`echo "$CFLAGS" | \
3016 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3017 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3018
3019 CPPFLAGS=`echo "$CPPFLAGS" | \
3020 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3021 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3022
3023 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3024
3025 cf_fix_cppflags=no
3026 cf_new_cflags=
3027 cf_new_cppflags=
3028 cf_new_extra_cppflags=
3029
3030 for cf_add_cflags in $cf_temp_xopen_source
3031 do
3032 case $cf_fix_cppflags in
3033 no)
3034 case $cf_add_cflags in #(vi
3035 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3036 case $cf_add_cflags in
3037 -D*)
3038 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3039
3040 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3041 && test -z "${cf_tst_cflags}" \
3042 && cf_fix_cppflags=yes
3043
3044 if test $cf_fix_cppflags = yes ; then
3045 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3046 continue
3047 elif test "${cf_tst_cflags}" = "\"'" ; then
3048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3049 continue
3050 fi
3051 ;;
3052 esac
3053 case "$CPPFLAGS" in
3054 *$cf_add_cflags) #(vi
3055 ;;
3056 *) #(vi
3057 case $cf_add_cflags in #(vi
3058 -D*)
3059 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3060
3061 CPPFLAGS=`echo "$CPPFLAGS" | \
3062 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3063 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3064
3065 ;;
3066 esac
3067 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3068 ;;
3069 esac
3070 ;;
3071 *)
3072 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3073 ;;
3074 esac
3075 ;;
3076 yes)
3077 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3078
3079 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3080
3081 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3082 && test -z "${cf_tst_cflags}" \
3083 && cf_fix_cppflags=no
3084 ;;
3085 esac
3086 done
3087
3088 if test -n "$cf_new_cflags" ; then
3089
3090 CFLAGS="$CFLAGS $cf_new_cflags"
3091 fi
3092
3093 if test -n "$cf_new_cppflags" ; then
3094
3095 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3096 fi
3097
3098 if test -n "$cf_new_extra_cppflags" ; then
3099
3100 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3101 fi
3102
3103 fi
3104
3105 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3106
3107 cf_save_CFLAGS="$CFLAGS"
3108 cf_save_CPPFLAGS="$CPPFLAGS"
3109
3110 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3111 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3112 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3113
3114 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3115 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3116 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3117
3118 echo "$as_me:3118: checking if we should define _POSIX_C_SOURCE" >&5
3119 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3120 if test "${cf_cv_posix_c_source+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123
3124 echo "${as_me:-configure}:3124: testing if the symbol is already defined go no further ..." 1>&5
3125
3126 cat >conftest.$ac_ext <<_ACEOF
3127 #line 3127 "configure"
3128 #include "confdefs.h"
3129 #include <sys/types.h>
3130 int
3131 main ()
3132 {
3133
3134 #ifndef _POSIX_C_SOURCE
3135 make an error
3136 #endif
3137 ;
3138 return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>&5
3144 ac_status=$?
3145 echo "$as_me:3145: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:3148: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:3151: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 cf_cv_posix_c_source=no
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3157 cf_want_posix_source=no
3158 case .$cf_POSIX_C_SOURCE in #(vi
3159 .[12]??*) #(vi
3160 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3161 ;;
3162 .2) #(vi
3163 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3164 cf_want_posix_source=yes
3165 ;;
3166 .*)
3167 cf_want_posix_source=yes
3168 ;;
3169 esac
3170 if test "$cf_want_posix_source" = yes ; then
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line 3172 "configure"
3173 #include "confdefs.h"
3174 #include <sys/types.h>
3175 int
3176 main ()
3177 {
3178
3179 #ifdef _POSIX_SOURCE
3180 make an error
3181 #endif
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (eval echo "$as_me:3187: \"$ac_compile\"") >&5
3188 (eval $ac_compile) 2>&5
3189 ac_status=$?
3190 echo "$as_me:3190: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:3193: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:3196: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 :
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3202 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3203 fi
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 echo "${as_me:-configure}:3207: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3208
3209 CFLAGS="$cf_trim_CFLAGS"
3210 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3211
3212 echo "${as_me:-configure}:3212: testing if the second compile does not leave our definition intact error ..." 1>&5
3213
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line 3215 "configure"
3216 #include "confdefs.h"
3217 #include <sys/types.h>
3218 int
3219 main ()
3220 {
3221
3222 #ifndef _POSIX_C_SOURCE
3223 make an error
3224 #endif
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:3230: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3232 ac_status=$?
3233 echo "$as_me:3233: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:3236: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:3239: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 :
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 cf_cv_posix_c_source=no
3246 fi
3247 rm -f conftest.$ac_objext conftest.$ac_ext
3248 CFLAGS="$cf_save_CFLAGS"
3249 CPPFLAGS="$cf_save_CPPFLAGS"
3250
3251 fi
3252 rm -f conftest.$ac_objext conftest.$ac_ext
3253
3254 fi
3255 echo "$as_me:3255: result: $cf_cv_posix_c_source" >&5
3256 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3257
3258 if test "$cf_cv_posix_c_source" != no ; then
3259 CFLAGS="$cf_trim_CFLAGS"
3260 CPPFLAGS="$cf_trim_CPPFLAGS"
3261
3262 cf_fix_cppflags=no
3263 cf_new_cflags=
3264 cf_new_cppflags=
3265 cf_new_extra_cppflags=
3266
3267 for cf_add_cflags in $cf_cv_posix_c_source
3268 do
3269 case $cf_fix_cppflags in
3270 no)
3271 case $cf_add_cflags in #(vi
3272 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3273 case $cf_add_cflags in
3274 -D*)
3275 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3276
3277 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3278 && test -z "${cf_tst_cflags}" \
3279 && cf_fix_cppflags=yes
3280
3281 if test $cf_fix_cppflags = yes ; then
3282 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3283 continue
3284 elif test "${cf_tst_cflags}" = "\"'" ; then
3285 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3286 continue
3287 fi
3288 ;;
3289 esac
3290 case "$CPPFLAGS" in
3291 *$cf_add_cflags) #(vi
3292 ;;
3293 *) #(vi
3294 case $cf_add_cflags in #(vi
3295 -D*)
3296 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3297
3298 CPPFLAGS=`echo "$CPPFLAGS" | \
3299 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3300 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3301
3302 ;;
3303 esac
3304 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3305 ;;
3306 esac
3307 ;;
3308 *)
3309 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3310 ;;
3311 esac
3312 ;;
3313 yes)
3314 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3315
3316 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3317
3318 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3319 && test -z "${cf_tst_cflags}" \
3320 && cf_fix_cppflags=no
3321 ;;
3322 esac
3323 done
3324
3325 if test -n "$cf_new_cflags" ; then
3326
3327 CFLAGS="$CFLAGS $cf_new_cflags"
3328 fi
3329
3330 if test -n "$cf_new_cppflags" ; then
3331
3332 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3333 fi
3334
3335 if test -n "$cf_new_extra_cppflags" ; then
3336
3337 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3338 fi
3339
3340 fi
3341
3342 ;;
3343 esac
3344
3345 if test -n "$cf_xopen_source" ; then
3346
3347 cf_fix_cppflags=no
3348 cf_new_cflags=
3349 cf_new_cppflags=
3350 cf_new_extra_cppflags=
3351
3352 for cf_add_cflags in $cf_xopen_source
3353 do
3354 case $cf_fix_cppflags in
3355 no)
3356 case $cf_add_cflags in #(vi
3357 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3358 case $cf_add_cflags in
3359 -D*)
3360 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3361
3362 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3363 && test -z "${cf_tst_cflags}" \
3364 && cf_fix_cppflags=yes
3365
3366 if test $cf_fix_cppflags = yes ; then
3367 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3368 continue
3369 elif test "${cf_tst_cflags}" = "\"'" ; then
3370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3371 continue
3372 fi
3373 ;;
3374 esac
3375 case "$CPPFLAGS" in
3376 *$cf_add_cflags) #(vi
3377 ;;
3378 *) #(vi
3379 case $cf_add_cflags in #(vi
3380 -D*)
3381 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3382
3383 CPPFLAGS=`echo "$CPPFLAGS" | \
3384 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3385 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3386
3387 ;;
3388 esac
3389 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3390 ;;
3391 esac
3392 ;;
3393 *)
3394 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3395 ;;
3396 esac
3397 ;;
3398 yes)
3399 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3400
3401 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3402
3403 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3404 && test -z "${cf_tst_cflags}" \
3405 && cf_fix_cppflags=no
3406 ;;
3407 esac
3408 done
3409
3410 if test -n "$cf_new_cflags" ; then
3411
3412 CFLAGS="$CFLAGS $cf_new_cflags"
3413 fi
3414
3415 if test -n "$cf_new_cppflags" ; then
3416
3417 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3418 fi
3419
3420 if test -n "$cf_new_extra_cppflags" ; then
3421
3422 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3423 fi
3424
3425 fi
3426
3427 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3428 echo "$as_me:3428: checking if _XOPEN_SOURCE really is set" >&5
3429 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3430 cat >conftest.$ac_ext <<_ACEOF
3431 #line 3431 "configure"
3432 #include "confdefs.h"
3433 #include <stdlib.h>
3434 int
3435 main ()
3436 {
3437
3438 #ifndef _XOPEN_SOURCE
3439 make an error
3440 #endif
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:3446: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3448 ac_status=$?
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:3452: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:3455: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 cf_XOPEN_SOURCE_set=yes
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 cf_XOPEN_SOURCE_set=no
3462 fi
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3464 echo "$as_me:3464: result: $cf_XOPEN_SOURCE_set" >&5
3465 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3466 if test $cf_XOPEN_SOURCE_set = yes
3467 then
3468 cat >conftest.$ac_ext <<_ACEOF
3469 #line 3469 "configure"
3470 #include "confdefs.h"
3471 #include <stdlib.h>
3472 int
3473 main ()
3474 {
3475
3476 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3477 make an error
3478 #endif
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3486 ac_status=$?
3487 echo "$as_me:3487: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:3490: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:3493: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 cf_XOPEN_SOURCE_set_ok=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 cf_XOPEN_SOURCE_set_ok=no
3500 fi
3501 rm -f conftest.$ac_objext conftest.$ac_ext
3502 if test $cf_XOPEN_SOURCE_set_ok = no
3503 then
3504 { echo "$as_me:3504: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3505 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3506 fi
3507 else
3508
3509 echo "$as_me:3509: checking if we should define _XOPEN_SOURCE" >&5
3510 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3511 if test "${cf_cv_xopen_source+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514
3515 cat >conftest.$ac_ext <<_ACEOF
3516 #line 3516 "configure"
3517 #include "confdefs.h"
3518
3519 #include <stdlib.h>
3520 #include <string.h>
3521 #include <sys/types.h>
3522
3523 int
3524 main ()
3525 {
3526
3527 #ifndef _XOPEN_SOURCE
3528 make an error
3529 #endif
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (eval echo "$as_me:3535: \"$ac_compile\"") >&5
3536 (eval $ac_compile) 2>&5
3537 ac_status=$?
3538 echo "$as_me:3538: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -s conftest.$ac_objext'
3541 { (eval echo "$as_me:3541: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:3544: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3546 cf_cv_xopen_source=no
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 cf_save="$CPPFLAGS"
3551 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line 3553 "configure"
3554 #include "confdefs.h"
3555
3556 #include <stdlib.h>
3557 #include <string.h>
3558 #include <sys/types.h>
3559
3560 int
3561 main ()
3562 {
3563
3564 #ifdef _XOPEN_SOURCE
3565 make an error
3566 #endif
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>&5
3574 ac_status=$?
3575 echo "$as_me:3575: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:3578: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 cf_cv_xopen_source=no
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3588 fi
3589 rm -f conftest.$ac_objext conftest.$ac_ext
3590 CPPFLAGS="$cf_save"
3591
3592 fi
3593 rm -f conftest.$ac_objext conftest.$ac_ext
3594
3595 fi
3596 echo "$as_me:3596: result: $cf_cv_xopen_source" >&5
3597 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3598
3599 if test "$cf_cv_xopen_source" != no ; then
3600
3601 CFLAGS=`echo "$CFLAGS" | \
3602 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3603 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3604
3605 CPPFLAGS=`echo "$CPPFLAGS" | \
3606 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3607 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3608
3609 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3610
3611 cf_fix_cppflags=no
3612 cf_new_cflags=
3613 cf_new_cppflags=
3614 cf_new_extra_cppflags=
3615
3616 for cf_add_cflags in $cf_temp_xopen_source
3617 do
3618 case $cf_fix_cppflags in
3619 no)
3620 case $cf_add_cflags in #(vi
3621 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3622 case $cf_add_cflags in
3623 -D*)
3624 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3625
3626 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3627 && test -z "${cf_tst_cflags}" \
3628 && cf_fix_cppflags=yes
3629
3630 if test $cf_fix_cppflags = yes ; then
3631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3632 continue
3633 elif test "${cf_tst_cflags}" = "\"'" ; then
3634 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3635 continue
3636 fi
3637 ;;
3638 esac
3639 case "$CPPFLAGS" in
3640 *$cf_add_cflags) #(vi
3641 ;;
3642 *) #(vi
3643 case $cf_add_cflags in #(vi
3644 -D*)
3645 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3646
3647 CPPFLAGS=`echo "$CPPFLAGS" | \
3648 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3649 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3650
3651 ;;
3652 esac
3653 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3654 ;;
3655 esac
3656 ;;
3657 *)
3658 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3659 ;;
3660 esac
3661 ;;
3662 yes)
3663 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3664
3665 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3666
3667 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3668 && test -z "${cf_tst_cflags}" \
3669 && cf_fix_cppflags=no
3670 ;;
3671 esac
3672 done
3673
3674 if test -n "$cf_new_cflags" ; then
3675
3676 CFLAGS="$CFLAGS $cf_new_cflags"
3677 fi
3678
3679 if test -n "$cf_new_cppflags" ; then
3680
3681 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3682 fi
3683
3684 if test -n "$cf_new_extra_cppflags" ; then
3685
3686 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3687 fi
3688
3689 fi
3690
3691 fi
3692 fi
3693
3694 echo "$as_me:3694: checking if SIGWINCH is defined" >&5
3695 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
3696 if test "${cf_cv_define_sigwinch+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699
3700 cat >conftest.$ac_ext <<_ACEOF
3701 #line 3701 "configure"
3702 #include "confdefs.h"
3703
3704 #include <sys/types.h>
3705 #include <sys/signal.h>
3706
3707 int
3708 main ()
3709 {
3710 int x = SIGWINCH
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:3716: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>&5
3718 ac_status=$?
3719 echo "$as_me:3719: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:3722: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:3725: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 cf_cv_define_sigwinch=yes
3728 else
3729 echo "$as_me: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3731 cat >conftest.$ac_ext <<_ACEOF
3732 #line 3732 "configure"
3733 #include "confdefs.h"
3734
3735 #undef _XOPEN_SOURCE
3736 #undef _POSIX_SOURCE
3737 #undef _POSIX_C_SOURCE
3738 #include <sys/types.h>
3739 #include <sys/signal.h>
3740
3741 int
3742 main ()
3743 {
3744 int x = SIGWINCH
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:3750: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>&5
3752 ac_status=$?
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:3756: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:3759: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 cf_cv_define_sigwinch=maybe
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 cf_cv_define_sigwinch=no
3766 fi
3767 rm -f conftest.$ac_objext conftest.$ac_ext
3768
3769 fi
3770 rm -f conftest.$ac_objext conftest.$ac_ext
3771
3772 fi
3773 echo "$as_me:3773: result: $cf_cv_define_sigwinch" >&5
3774 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
3775
3776 if test "$cf_cv_define_sigwinch" = maybe ; then
3777 echo "$as_me:3777: checking for actual SIGWINCH definition" >&5
3778 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
3779 if test "${cf_cv_fixup_sigwinch+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782
3783 cf_cv_fixup_sigwinch=unknown
3784 cf_sigwinch=32
3785 while test $cf_sigwinch != 1
3786 do
3787 cat >conftest.$ac_ext <<_ACEOF
3788 #line 3788 "configure"
3789 #include "confdefs.h"
3790
3791 #undef _XOPEN_SOURCE
3792 #undef _POSIX_SOURCE
3793 #undef _POSIX_C_SOURCE
3794 #include <sys/types.h>
3795 #include <sys/signal.h>
3796
3797 int
3798 main ()
3799 {
3800
3801 #if SIGWINCH != $cf_sigwinch
3802 make an error
3803 #endif
3804 int x = SIGWINCH
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 rm -f conftest.$ac_objext
3810 if { (eval echo "$as_me:3810: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>&5
3812 ac_status=$?
3813 echo "$as_me:3813: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:3816: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 cf_cv_fixup_sigwinch=$cf_sigwinch
3822 break
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 fi
3827 rm -f conftest.$ac_objext conftest.$ac_ext
3828
3829 cf_sigwinch=`expr $cf_sigwinch - 1`
3830 done
3831
3832 fi
3833 echo "$as_me:3833: result: $cf_cv_fixup_sigwinch" >&5
3834 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
3835
3836 if test "$cf_cv_fixup_sigwinch" != unknown ; then
3837 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
3838 fi
3839 fi
3840
3841 ### checks for header files
3842
3843 for ac_header in \
3844 ncurses/curses.h \
3845 ncurses/term.h \
3846 stdlib.h \
3847 sys/ptem.h sys/ttydefaults.h \
3848 term.h \
3849 termios.h \
3850 unistd.h \
3851 wchar.h \
3852
3853 do
3854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3855 echo "$as_me:3855: checking for $ac_header" >&5
3856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 cat >conftest.$ac_ext <<_ACEOF
3861 #line 3861 "configure"
3862 #include "confdefs.h"
3863 #include <$ac_header>
3864 _ACEOF
3865 if { (eval echo "$as_me:3865: \"$ac_cpp conftest.$ac_ext\"") >&5
3866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3867 ac_status=$?
3868 egrep -v '^ *\+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:3871: \$? = $ac_status" >&5
3872 (exit $ac_status); } >/dev/null; then
3873 if test -s conftest.err; then
3874 ac_cpp_err=$ac_c_preproc_warn_flag
3875 else
3876 ac_cpp_err=
3877 fi
3878 else
3879 ac_cpp_err=yes
3880 fi
3881 if test -z "$ac_cpp_err"; then
3882 eval "$as_ac_Header=yes"
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 eval "$as_ac_Header=no"
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3889 fi
3890 echo "$as_me:3890: result: `eval echo '${'$as_ac_Header'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3893 cat >>confdefs.h <<EOF
3894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3895 EOF
3896
3897 fi
3898 done
3899
3900 echo "$as_me:3900: checking whether time.h and sys/time.h may both be included" >&5
3901 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3902 if test "${ac_cv_header_time+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 cat >conftest.$ac_ext <<_ACEOF
3906 #line 3906 "configure"
3907 #include "confdefs.h"
3908 #include <sys/types.h>
3909 #include <sys/time.h>
3910 #include <time.h>
3911
3912 int
3913 main ()
3914 {
3915 if ((struct tm *) 0)
3916 return 0;
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:3922: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>&5
3924 ac_status=$?
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:3928: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 ac_cv_header_time=yes
3934 else
3935 echo "$as_me: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3937 ac_cv_header_time=no
3938 fi
3939 rm -f conftest.$ac_objext conftest.$ac_ext
3940 fi
3941 echo "$as_me:3941: result: $ac_cv_header_time" >&5
3942 echo "${ECHO_T}$ac_cv_header_time" >&6
3943 if test $ac_cv_header_time = yes; then
3944
3945 cat >>confdefs.h <<\EOF
3946 #define TIME_WITH_SYS_TIME 1
3947 EOF
3948
3949 fi
3950
3951 echo "$as_me:3951: checking for nl_langinfo and CODESET" >&5
3952 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3953 if test "${am_cv_langinfo_codeset+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line 3957 "configure"
3958 #include "confdefs.h"
3959 #include <langinfo.h>
3960 int
3961 main ()
3962 {
3963 char* cs = nl_langinfo(CODESET);
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 rm -f conftest.$ac_objext conftest$ac_exeext
3969 if { (eval echo "$as_me:3969: \"$ac_link\"") >&5
3970 (eval $ac_link) 2>&5
3971 ac_status=$?
3972 echo "$as_me:3972: \$? = $ac_status" >&5
3973 (exit $ac_status); } &&
3974 { ac_try='test -s conftest$ac_exeext'
3975 { (eval echo "$as_me:3975: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:3978: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 am_cv_langinfo_codeset=yes
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3984 am_cv_langinfo_codeset=no
3985 fi
3986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3987
3988 fi
3989 echo "$as_me:3989: result: $am_cv_langinfo_codeset" >&5
3990 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3991 if test $am_cv_langinfo_codeset = yes; then
3992
3993 cat >>confdefs.h <<\EOF
3994 #define HAVE_LANGINFO_CODESET 1
3995 EOF
3996
3997 fi
3998
3999 ### checks for typedefs
4000
4001 echo "$as_me:4001: checking for signal global datatype" >&5
4002 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4003 if test "${cf_cv_sig_atomic_t+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006
4007 for cf_type in \
4008 "volatile sig_atomic_t" \
4009 "sig_atomic_t" \
4010 "int"
4011 do
4012 cat >conftest.$ac_ext <<_ACEOF
4013 #line 4013 "configure"
4014 #include "confdefs.h"
4015
4016 #include <sys/types.h>
4017 #include <signal.h>
4018 #include <stdio.h>
4019
4020 extern $cf_type x;
4021 $cf_type x;
4022 static void handler(int sig)
4023 {
4024 x = 5;
4025 }
4026 int
4027 main ()
4028 {
4029 signal(SIGINT, handler);
4030 x = 1
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:4039: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:4042: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:4045: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 cf_cv_sig_atomic_t=$cf_type
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 cf_cv_sig_atomic_t=no
4052 fi
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4054 test "$cf_cv_sig_atomic_t" != no && break
4055 done
4056
4057 fi
4058
4059 echo "$as_me:4059: result: $cf_cv_sig_atomic_t" >&5
4060 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4061 test "$cf_cv_sig_atomic_t" != no &&
4062 cat >>confdefs.h <<EOF
4063 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4064 EOF
4065
4066 echo "$as_me:4066: checking for ANSI C header files" >&5
4067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4068 if test "${ac_cv_header_stdc+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line 4072 "configure"
4073 #include "confdefs.h"
4074 #include <stdlib.h>
4075 #include <stdarg.h>
4076 #include <string.h>
4077 #include <float.h>
4078
4079 _ACEOF
4080 if { (eval echo "$as_me:4080: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
4083 egrep -v '^ *\+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:4086: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 else
4091 ac_cpp_err=
4092 fi
4093 else
4094 ac_cpp_err=yes
4095 fi
4096 if test -z "$ac_cpp_err"; then
4097 ac_cv_header_stdc=yes
4098 else
4099 echo "$as_me: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4101 ac_cv_header_stdc=no
4102 fi
4103 rm -f conftest.err conftest.$ac_ext
4104
4105 if test $ac_cv_header_stdc = yes; then
4106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4108 #line 4108 "configure"
4109 #include "confdefs.h"
4110 #include <string.h>
4111
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 egrep "memchr" >/dev/null 2>&1; then
4115 :
4116 else
4117 ac_cv_header_stdc=no
4118 fi
4119 rm -rf conftest*
4120
4121 fi
4122
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126 #line 4126 "configure"
4127 #include "confdefs.h"
4128 #include <stdlib.h>
4129
4130 _ACEOF
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 egrep "free" >/dev/null 2>&1; then
4133 :
4134 else
4135 ac_cv_header_stdc=no
4136 fi
4137 rm -rf conftest*
4138
4139 fi
4140
4141 if test $ac_cv_header_stdc = yes; then
4142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4143 if test "$cross_compiling" = yes; then
4144 :
4145 else
4146 cat >conftest.$ac_ext <<_ACEOF
4147 #line 4147 "configure"
4148 #include "confdefs.h"
4149 #include <ctype.h>
4150 #if ((' ' & 0x0FF) == 0x020)
4151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153 #else
4154 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4155 || ('j' <= (c) && (c) <= 'r') \
4156 || ('s' <= (c) && (c) <= 'z'))
4157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4158 #endif
4159
4160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4161 int
4162 main ()
4163 {
4164 int i;
4165 for (i = 0; i < 256; i++)
4166 if (XOR (islower (i), ISLOWER (i))
4167 || toupper (i) != TOUPPER (i))
4168 $ac_main_return(2);
4169 $ac_main_return (0);
4170 }
4171 _ACEOF
4172 rm -f conftest$ac_exeext
4173 if { (eval echo "$as_me:4173: \"$ac_link\"") >&5
4174 (eval $ac_link) 2>&5
4175 ac_status=$?
4176 echo "$as_me:4176: \$? = $ac_status" >&5
4177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4178 { (eval echo "$as_me:4178: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:4181: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 :
4184 else
4185 echo "$as_me: program exited with status $ac_status" >&5
4186 echo "$as_me: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4188 ac_cv_header_stdc=no
4189 fi
4190 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4191 fi
4192 fi
4193 fi
4194 echo "$as_me:4194: result: $ac_cv_header_stdc" >&5
4195 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4196 if test $ac_cv_header_stdc = yes; then
4197
4198 cat >>confdefs.h <<\EOF
4199 #define STDC_HEADERS 1
4200 EOF
4201
4202 fi
4203
4204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4205
4206 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4207 inttypes.h stdint.h unistd.h
4208 do
4209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4210 echo "$as_me:4210: checking for $ac_header" >&5
4211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 cat >conftest.$ac_ext <<_ACEOF
4216 #line 4216 "configure"
4217 #include "confdefs.h"
4218 $ac_includes_default
4219 #include <$ac_header>
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:4222: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4224 ac_status=$?
4225 echo "$as_me:4225: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (eval echo "$as_me:4228: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:4231: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 eval "$as_ac_Header=yes"
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4237 eval "$as_ac_Header=no"
4238 fi
4239 rm -f conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 echo "$as_me:4241: result: `eval echo '${'$as_ac_Header'}'`" >&5
4242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4244 cat >>confdefs.h <<EOF
4245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4246 EOF
4247
4248 fi
4249 done
4250
4251 echo "$as_me:4251: checking for time_t" >&5
4252 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
4253 if test "${ac_cv_type_time_t+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 cat >conftest.$ac_ext <<_ACEOF
4257 #line 4257 "configure"
4258 #include "confdefs.h"
4259 $ac_includes_default
4260 int
4261 main ()
4262 {
4263 if ((time_t *) 0)
4264 return 0;
4265 if (sizeof (time_t))
4266 return 0;
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:4272: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>&5
4274 ac_status=$?
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest.$ac_objext'
4278 { (eval echo "$as_me:4278: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_type_time_t=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 ac_cv_type_time_t=no
4288 fi
4289 rm -f conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 echo "$as_me:4291: result: $ac_cv_type_time_t" >&5
4292 echo "${ECHO_T}$ac_cv_type_time_t" >&6
4293 if test $ac_cv_type_time_t = yes; then
4294 :
4295 else
4296
4297 cat >>confdefs.h <<EOF
4298 #define time_t long
4299 EOF
4300
4301 fi
4302
4303 echo "$as_me:4303: checking for cc_t in <termios.h> or <termio.h>" >&5
4304 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
4305 if test "${cf_cv_type_cc_t+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308
4309 cat >conftest.$ac_ext <<_ACEOF
4310 #line 4310 "configure"
4311 #include "confdefs.h"
4312
4313 #include <sys/types.h>
4314 #if defined(HAVE_TERMIOS_H)
4315 #include <termios.h>
4316 #else
4317 #include <termio.h>
4318 #include <sys/ioctl.h>
4319 #endif
4320
4321 int
4322 main ()
4323 {
4324 cc_t x
4325 ;
4326 return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (eval echo "$as_me:4330: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>&5
4332 ac_status=$?
4333 echo "$as_me:4333: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:4336: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:4339: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 cf_cv_type_cc_t=yes
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4345 cf_cv_type_cc_t=no
4346 fi
4347 rm -f conftest.$ac_objext conftest.$ac_ext
4348
4349 fi
4350
4351 echo "$as_me:4351: result: $cf_cv_type_cc_t" >&5
4352 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
4353 test $cf_cv_type_cc_t = no &&
4354 cat >>confdefs.h <<\EOF
4355 #define cc_t unsigned char
4356 EOF
4357
4358 echo "$as_me:4358: checking for mode_t" >&5
4359 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4360 if test "${ac_cv_type_mode_t+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 cat >conftest.$ac_ext <<_ACEOF
4364 #line 4364 "configure"
4365 #include "confdefs.h"
4366 $ac_includes_default
4367 int
4368 main ()
4369 {
4370 if ((mode_t *) 0)
4371 return 0;
4372 if (sizeof (mode_t))
4373 return 0;
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:4379: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>&5
4381 ac_status=$?
4382 echo "$as_me:4382: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -s conftest.$ac_objext'
4385 { (eval echo "$as_me:4385: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:4388: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_type_mode_t=yes
4391 else
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 ac_cv_type_mode_t=no
4395 fi
4396 rm -f conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 echo "$as_me:4398: result: $ac_cv_type_mode_t" >&5
4399 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4400 if test $ac_cv_type_mode_t = yes; then
4401 :
4402 else
4403
4404 cat >>confdefs.h <<EOF
4405 #define mode_t int
4406 EOF
4407
4408 fi
4409
4410 echo "$as_me:4410: checking for pid_t" >&5
4411 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4412 if test "${ac_cv_type_pid_t+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 cat >conftest.$ac_ext <<_ACEOF
4416 #line 4416 "configure"
4417 #include "confdefs.h"
4418 $ac_includes_default
4419 int
4420 main ()
4421 {
4422 if ((pid_t *) 0)
4423 return 0;
4424 if (sizeof (pid_t))
4425 return 0;
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:4431: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4433 ac_status=$?
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:4437: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_type_pid_t=yes
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 ac_cv_type_pid_t=no
4447 fi
4448 rm -f conftest.$ac_objext conftest.$ac_ext
4449 fi
4450 echo "$as_me:4450: result: $ac_cv_type_pid_t" >&5
4451 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4452 if test $ac_cv_type_pid_t = yes; then
4453 :
4454 else
4455
4456 cat >>confdefs.h <<EOF
4457 #define pid_t int
4458 EOF
4459
4460 fi
4461
4462 echo "$as_me:4462: checking for uid_t in sys/types.h" >&5
4463 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4464 if test "${ac_cv_type_uid_t+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line 4468 "configure"
4469 #include "confdefs.h"
4470 #include <sys/types.h>
4471
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 egrep "uid_t" >/dev/null 2>&1; then
4475 ac_cv_type_uid_t=yes
4476 else
4477 ac_cv_type_uid_t=no
4478 fi
4479 rm -rf conftest*
4480
4481 fi
4482 echo "$as_me:4482: result: $ac_cv_type_uid_t" >&5
4483 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4484 if test $ac_cv_type_uid_t = no; then
4485
4486 cat >>confdefs.h <<\EOF
4487 #define uid_t int
4488 EOF
4489
4490 cat >>confdefs.h <<\EOF
4491 #define gid_t int
4492 EOF
4493
4494 fi
4495
4496 echo "$as_me:4496: checking for off_t" >&5
4497 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4498 if test "${ac_cv_type_off_t+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line 4502 "configure"
4503 #include "confdefs.h"
4504 $ac_includes_default
4505 int
4506 main ()
4507 {
4508 if ((off_t *) 0)
4509 return 0;
4510 if (sizeof (off_t))
4511 return 0;
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:4517: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>&5
4519 ac_status=$?
4520 echo "$as_me:4520: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:4523: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:4526: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_type_off_t=yes
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 ac_cv_type_off_t=no
4533 fi
4534 rm -f conftest.$ac_objext conftest.$ac_ext
4535 fi
4536 echo "$as_me:4536: result: $ac_cv_type_off_t" >&5
4537 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4538 if test $ac_cv_type_off_t = yes; then
4539 :
4540 else
4541
4542 cat >>confdefs.h <<EOF
4543 #define off_t long
4544 EOF
4545
4546 fi
4547
4548 ### checks for library functions
4549
4550 for ac_func in \
4551 gethostname \
4552 getlogin \
4553 initgroups \
4554 mkdtemp \
4555 putenv \
4556 unsetenv \
4557 sched_yield \
4558 setpgid \
4559 strftime \
4560 tcgetattr \
4561 waitpid \
4562 wcswidth \
4563 wcwidth
4564 do
4565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4566 echo "$as_me:4566: checking for $ac_func" >&5
4567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4568 if eval "test \"\${$as_ac_var+set}\" = set"; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line 4572 "configure"
4573 #include "confdefs.h"
4574 /* System header to define __stub macros and hopefully few prototypes,
4575 which can conflict with char $ac_func (); below. */
4576 #include <assert.h>
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 #ifdef __cplusplus
4579 extern "C"
4580 #endif
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4583 char $ac_func ();
4584 char (*f) ();
4585
4586 int
4587 main ()
4588 {
4589 /* The GNU C library defines this for functions which it implements
4590 to always fail with ENOSYS. Some functions are actually named
4591 something starting with __ and the normal name is an alias. */
4592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4593 choke me
4594 #else
4595 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4596 #endif
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext conftest$ac_exeext
4603 if { (eval echo "$as_me:4603: \"$ac_link\"") >&5
4604 (eval $ac_link) 2>&5
4605 ac_status=$?
4606 echo "$as_me:4606: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -s conftest$ac_exeext'
4609 { (eval echo "$as_me:4609: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:4612: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 eval "$as_ac_var=yes"
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4618 eval "$as_ac_var=no"
4619 fi
4620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4621 fi
4622 echo "$as_me:4622: result: `eval echo '${'$as_ac_var'}'`" >&5
4623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4624 if test `eval echo '${'$as_ac_var'}'` = yes; then
4625 cat >>confdefs.h <<EOF
4626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4627 EOF
4628
4629 fi
4630 done
4631
4632 for ac_header in lastlog.h paths.h
4633 do
4634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4635 echo "$as_me:4635: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #line 4641 "configure"
4642 #include "confdefs.h"
4643 #include <$ac_header>
4644 _ACEOF
4645 if { (eval echo "$as_me:4645: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647 ac_status=$?
4648 egrep -v '^ *\+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:4651: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_c_preproc_warn_flag
4655 else
4656 ac_cpp_err=
4657 fi
4658 else
4659 ac_cpp_err=yes
4660 fi
4661 if test -z "$ac_cpp_err"; then
4662 eval "$as_ac_Header=yes"
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 eval "$as_ac_Header=no"
4667 fi
4668 rm -f conftest.err conftest.$ac_ext
4669 fi
4670 echo "$as_me:4670: result: `eval echo '${'$as_ac_Header'}'`" >&5
4671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4673 cat >>confdefs.h <<EOF
4674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4675 EOF
4676
4677 fi
4678 done
4679
4680 echo "$as_me:4680: checking for lastlog path" >&5
4681 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
4682 if test "${cf_cv_path_lastlog+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #line 4687 "configure"
4688 #include "confdefs.h"
4689
4690 #include <sys/types.h>
4691 #ifdef HAVE_LASTLOG_H
4692 #include <lastlog.h>
4693 #else
4694 #ifdef HAVE_PATHS_H
4695 #include <paths.h>
4696 #endif
4697 #endif
4698 int
4699 main ()
4700 {
4701 char *path = _PATH_LASTLOG
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:4707: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
4709 ac_status=$?
4710 echo "$as_me:4710: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:4713: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:4716: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 cf_cv_path_lastlog="_PATH_LASTLOG"
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 if test -f /usr/adm/lastlog ; then
4723 cf_cv_path_lastlog=/usr/adm/lastlog
4724 else
4725 cf_cv_path_lastlog=no
4726 fi
4727 fi
4728 rm -f conftest.$ac_objext conftest.$ac_ext
4729
4730 fi
4731 echo "$as_me:4731: result: $cf_cv_path_lastlog" >&5
4732 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
4733 test $cf_cv_path_lastlog != no &&
4734 cat >>confdefs.h <<\EOF
4735 #define USE_LASTLOG 1
4736 EOF
4737
4738 echo "$as_me:4738: checking for utmp implementation" >&5
4739 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
4740 if test "${cf_cv_have_utmp+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743
4744 cf_cv_have_utmp=no
4745 for cf_header in utmpx utmp ; do
4746 cf_utmp_includes="
4747 #include <sys/types.h>
4748 #include <${cf_header}.h>
4749 #define getutent getutxent
4750 #ifdef USE_LASTLOG
4751 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4752 #endif
4753 "
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4757 $cf_utmp_includes
4758 int
4759 main ()
4760 {
4761 struct $cf_header x;
4762 char *name = x.ut_name; /* utmp.h and compatible definitions */
4763
4764 ;
4765 return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:4769: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:4772: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:4775: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:4778: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 cf_cv_have_utmp=$cf_header
4781 break
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785
4786 cat >conftest.$ac_ext <<_ACEOF
4787 #line 4787 "configure"
4788 #include "confdefs.h"
4789 $cf_utmp_includes
4790 int
4791 main ()
4792 {
4793 struct $cf_header x;
4794 char *name = x.ut_user; /* utmpx.h must declare this */
4795
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:4801: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>&5
4803 ac_status=$?
4804 echo "$as_me:4804: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:4807: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:4810: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 cf_cv_have_utmp=$cf_header
4813 break
4814
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4818 fi
4819 rm -f conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 rm -f conftest.$ac_objext conftest.$ac_ext
4822 done
4823
4824 fi
4825 echo "$as_me:4825: result: $cf_cv_have_utmp" >&5
4826 echo "${ECHO_T}$cf_cv_have_utmp" >&6
4827
4828 if test $cf_cv_have_utmp != no ; then
4829
4830 cat >>confdefs.h <<\EOF
4831 #define HAVE_UTMP 1
4832 EOF
4833
4834 test $cf_cv_have_utmp = utmpx &&
4835 cat >>confdefs.h <<\EOF
4836 #define UTMPX_FOR_UTMP 1
4837 EOF
4838
4839 if test $cf_cv_have_utmp != no ; then
4840 echo "$as_me:4840: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
4841 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
4842 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845
4846 cat >conftest.$ac_ext <<_ACEOF
4847 #line 4847 "configure"
4848 #include "confdefs.h"
4849
4850 #include <sys/types.h>
4851 #include <${cf_cv_have_utmp}.h>
4852 int
4853 main ()
4854 {
4855 struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:4861: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>&5
4863 ac_status=$?
4864 echo "$as_me:4864: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:4867: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:4870: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 cf_cv_have_utmp_ut_host=yes
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 cf_cv_have_utmp_ut_host=no
4877 fi
4878 rm -f conftest.$ac_objext conftest.$ac_ext
4879
4880 fi
4881
4882 echo "$as_me:4882: result: $cf_cv_have_utmp_ut_host" >&5
4883 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
4884 test $cf_cv_have_utmp_ut_host != no &&
4885 cat >>confdefs.h <<\EOF
4886 #define HAVE_UTMP_UT_HOST 1
4887 EOF
4888
4889 fi
4890
4891 if test $cf_cv_have_utmp != no ; then
4892 echo "$as_me:4892: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
4893 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
4894 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897
4898 cat >conftest.$ac_ext <<_ACEOF
4899 #line 4899 "configure"
4900 #include "confdefs.h"
4901
4902 #include <sys/types.h>
4903 #include <${cf_cv_have_utmp}.h>
4904 int
4905 main ()
4906 {
4907 struct $cf_cv_have_utmp x; int y = x.ut_syslen
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:4913: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4915 ac_status=$?
4916 echo "$as_me:4916: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:4919: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:4922: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 cf_cv_have_utmp_ut_syslen=yes
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4928 cf_cv_have_utmp_ut_syslen=no
4929 fi
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4931
4932 fi
4933
4934 echo "$as_me:4934: result: $cf_cv_have_utmp_ut_syslen" >&5
4935 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
4936 test $cf_cv_have_utmp_ut_syslen != no &&
4937 cat >>confdefs.h <<\EOF
4938 #define HAVE_UTMP_UT_SYSLEN 1
4939 EOF
4940
4941 fi
4942
4943 if test $cf_cv_have_utmp != no ; then
4944 echo "$as_me:4944: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
4945 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
4946 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949
4950 cf_cv_have_utmp_ut_name=no
4951 cf_utmp_includes="
4952 #include <sys/types.h>
4953 #include <${cf_cv_have_utmp}.h>
4954 #define getutent getutxent
4955 #ifdef USE_LASTLOG
4956 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4957 #endif
4958 "
4959 for cf_header in ut_name ut_user ; do
4960 cat >conftest.$ac_ext <<_ACEOF
4961 #line 4961 "configure"
4962 #include "confdefs.h"
4963 $cf_utmp_includes
4964 int
4965 main ()
4966 {
4967 struct $cf_cv_have_utmp x;
4968 char *name = x.$cf_header;
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:4975: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>&5
4977 ac_status=$?
4978 echo "$as_me:4978: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:4981: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:4984: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 cf_cv_have_utmp_ut_name=$cf_header
4987 break
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 fi
4992 rm -f conftest.$ac_objext conftest.$ac_ext
4993 done
4994
4995 fi
4996 echo "$as_me:4996: result: $cf_cv_have_utmp_ut_name" >&5
4997 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
4998
4999 case $cf_cv_have_utmp_ut_name in #(vi
5000 no) #(vi
5001 { { echo "$as_me:5001: error: Cannot find declaration for ut.ut_name" >&5
5002 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
5003 { (exit 1); exit 1; }; }
5004 ;;
5005 ut_user)
5006
5007 cat >>confdefs.h <<\EOF
5008 #define ut_name ut_user
5009 EOF
5010
5011 ;;
5012 esac
5013 fi
5014
5015 if test $cf_cv_have_utmp != no ; then
5016 echo "$as_me:5016: checking for exit-status in $cf_cv_have_utmp" >&5
5017 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
5018 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021
5022 for cf_result in \
5023 ut_exit.__e_exit \
5024 ut_exit.e_exit \
5025 ut_exit.ut_e_exit \
5026 ut_exit.ut_exit
5027 do
5028 cat >conftest.$ac_ext <<_ACEOF
5029 #line 5029 "configure"
5030 #include "confdefs.h"
5031
5032 #include <sys/types.h>
5033 #include <${cf_cv_have_utmp}.h>
5034 int
5035 main ()
5036 {
5037 struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
5038 ;
5039 return 0;
5040 }
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:5043: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5045 ac_status=$?
5046 echo "$as_me:5046: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:5049: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:5052: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 cf_cv_have_utmp_ut_xstatus=$cf_result
5055 break
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059 cf_cv_have_utmp_ut_xstatus=no
5060 fi
5061 rm -f conftest.$ac_objext conftest.$ac_ext
5062 done
5063
5064 fi
5065 echo "$as_me:5065: result: $cf_cv_have_utmp_ut_xstatus" >&5
5066 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
5067 if test $cf_cv_have_utmp_ut_xstatus != no ; then
5068
5069 cat >>confdefs.h <<\EOF
5070 #define HAVE_UTMP_UT_XSTATUS 1
5071 EOF
5072
5073 cat >>confdefs.h <<EOF
5074 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
5075 EOF
5076
5077 fi
5078 fi
5079
5080 if test $cf_cv_have_utmp != no ; then
5081 echo "$as_me:5081: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
5082 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
5083 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line 5088 "configure"
5089 #include "confdefs.h"
5090
5091 #include <sys/types.h>
5092 #include <${cf_cv_have_utmp}.h>
5093 int
5094 main ()
5095 {
5096 struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:5102: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>&5
5104 ac_status=$?
5105 echo "$as_me:5105: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:5108: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:5111: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 cf_cv_have_utmp_ut_xtime=yes
5114 else
5115 echo "$as_me: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line 5118 "configure"
5119 #include "confdefs.h"
5120
5121 #include <sys/types.h>
5122 #include <${cf_cv_have_utmp}.h>
5123 int
5124 main ()
5125 {
5126 struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
5127 ;
5128 return 0;
5129 }
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:5132: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5134 ac_status=$?
5135 echo "$as_me:5135: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest.$ac_objext'
5138 { (eval echo "$as_me:5138: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:5141: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 cf_cv_have_utmp_ut_xtime=define
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 cf_cv_have_utmp_ut_xtime=no
5148 fi
5149 rm -f conftest.$ac_objext conftest.$ac_ext
5150
5151 fi
5152 rm -f conftest.$ac_objext conftest.$ac_ext
5153
5154 fi
5155 echo "$as_me:5155: result: $cf_cv_have_utmp_ut_xtime" >&5
5156 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
5157 if test $cf_cv_have_utmp_ut_xtime != no ; then
5158
5159 cat >>confdefs.h <<\EOF
5160 #define HAVE_UTMP_UT_XTIME 1
5161 EOF
5162
5163 if test $cf_cv_have_utmp_ut_xtime = define ; then
5164
5165 cat >>confdefs.h <<\EOF
5166 #define ut_xtime ut_tv.tv_sec
5167 EOF
5168
5169 fi
5170 fi
5171 fi
5172
5173 if test $cf_cv_have_utmp != no ; then
5174 echo "$as_me:5174: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
5175 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
5176 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line 5181 "configure"
5182 #include "confdefs.h"
5183
5184 #include <sys/types.h>
5185 #include <${cf_cv_have_utmp}.h>
5186 int
5187 main ()
5188 {
5189 struct $cf_cv_have_utmp x; long y = x.ut_session
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.$ac_objext
5195 if { (eval echo "$as_me:5195: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>&5
5197 ac_status=$?
5198 echo "$as_me:5198: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:5201: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:5204: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 cf_cv_have_utmp_ut_session=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5210 cf_cv_have_utmp_ut_session=no
5211 fi
5212 rm -f conftest.$ac_objext conftest.$ac_ext
5213
5214 fi
5215 echo "$as_me:5215: result: $cf_cv_have_utmp_ut_session" >&5
5216 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
5217 if test $cf_cv_have_utmp_ut_session != no ; then
5218
5219 cat >>confdefs.h <<\EOF
5220 #define HAVE_UTMP_UT_SESSION 1
5221 EOF
5222
5223 fi
5224 fi
5225
5226 echo "$as_me:5226: checking if $cf_cv_have_utmp is SYSV flavor" >&5
5227 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
5228 if test "${cf_cv_sysv_utmp+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231
5232 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
5233 cat >conftest.$ac_ext <<_ACEOF
5234 #line 5234 "configure"
5235 #include "confdefs.h"
5236
5237 #include <sys/types.h>
5238 #include <${cf_cv_have_utmp}.h>
5239 int
5240 main ()
5241 {
5242
5243 struct $cf_cv_have_utmp x;
5244 set${cf_prefix}ent ();
5245 get${cf_prefix}id(&x);
5246 put${cf_prefix}line(&x);
5247 end${cf_prefix}ent();
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:5253: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>&5
5255 ac_status=$?
5256 echo "$as_me:5256: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest$ac_exeext'
5259 { (eval echo "$as_me:5259: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:5262: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 cf_cv_sysv_utmp=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 cf_cv_sysv_utmp=no
5269 fi
5270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5271
5272 fi
5273 echo "$as_me:5273: result: $cf_cv_sysv_utmp" >&5
5274 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
5275 test $cf_cv_sysv_utmp = yes &&
5276 cat >>confdefs.h <<\EOF
5277 #define USE_SYSV_UTMP 1
5278 EOF
5279
5280 fi
5281
5282 for ac_header in lastlog.h
5283 do
5284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5285 echo "$as_me:5285: checking for $ac_header" >&5
5286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line 5291 "configure"
5292 #include "confdefs.h"
5293 #include <$ac_header>
5294 _ACEOF
5295 if { (eval echo "$as_me:5295: \"$ac_cpp conftest.$ac_ext\"") >&5
5296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5297 ac_status=$?
5298 egrep -v '^ *\+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:5301: \$? = $ac_status" >&5
5302 (exit $ac_status); } >/dev/null; then
5303 if test -s conftest.err; then
5304 ac_cpp_err=$ac_c_preproc_warn_flag
5305 else
5306 ac_cpp_err=
5307 fi
5308 else
5309 ac_cpp_err=yes
5310 fi
5311 if test -z "$ac_cpp_err"; then
5312 eval "$as_ac_Header=yes"
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5316 eval "$as_ac_Header=no"
5317 fi
5318 rm -f conftest.err conftest.$ac_ext
5319 fi
5320 echo "$as_me:5320: result: `eval echo '${'$as_ac_Header'}'`" >&5
5321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5323 cat >>confdefs.h <<EOF
5324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5325 EOF
5326
5327 fi
5328 done
5329
5330 echo "$as_me:5330: checking for struct lastlog" >&5
5331 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
5332 if test "${cf_cv_struct_lastlog+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335
5336 if test "$cross_compiling" = yes; then
5337
5338 cf_cv_struct_lastlog=unknown
5339 else
5340 cat >conftest.$ac_ext <<_ACEOF
5341 #line 5341 "configure"
5342 #include "confdefs.h"
5343
5344 #include <sys/types.h>
5345 #include <time.h>
5346 #include <lastlog.h>
5347
5348 int main()
5349 {
5350 struct lastlog data;
5351 return (sizeof(data.ll_time) != sizeof(time_t));
5352 }
5353 _ACEOF
5354 rm -f conftest$ac_exeext
5355 if { (eval echo "$as_me:5355: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5357 ac_status=$?
5358 echo "$as_me:5358: \$? = $ac_status" >&5
5359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5360 { (eval echo "$as_me:5360: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:5363: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365
5366 cf_cv_struct_lastlog=yes
5367 else
5368 echo "$as_me: program exited with status $ac_status" >&5
5369 echo "$as_me: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371
5372 cf_cv_struct_lastlog=no
5373 fi
5374 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5375 fi
5376 fi
5377 echo "$as_me:5377: result: $cf_cv_struct_lastlog" >&5
5378 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
5379
5380 test $cf_cv_struct_lastlog != no &&
5381 cat >>confdefs.h <<\EOF
5382 #define USE_STRUCT_LASTLOG 1
5383 EOF
5384
5385 for ac_header in \
5386 sys/param.h \
5387
5388 do
5389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5390 echo "$as_me:5390: checking for $ac_header" >&5
5391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 cat >conftest.$ac_ext <<_ACEOF
5396 #line 5396 "configure"
5397 #include "confdefs.h"
5398 #include <$ac_header>
5399 _ACEOF
5400 if { (eval echo "$as_me:5400: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 egrep -v '^ *\+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:5406: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 else
5411 ac_cpp_err=
5412 fi
5413 else
5414 ac_cpp_err=yes
5415 fi
5416 if test -z "$ac_cpp_err"; then
5417 eval "$as_ac_Header=yes"
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 eval "$as_ac_Header=no"
5422 fi
5423 rm -f conftest.err conftest.$ac_ext
5424 fi
5425 echo "$as_me:5425: result: `eval echo '${'$as_ac_Header'}'`" >&5
5426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5428 cat >>confdefs.h <<EOF
5429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5430 EOF
5431
5432 fi
5433 done
5434
5435 echo "$as_me:5435: checking if POSIX saved-ids are supported" >&5
5436 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
5437 if test "${cf_cv_posix_saved_ids+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440
5441 cat >conftest.$ac_ext <<_ACEOF
5442 #line 5442 "configure"
5443 #include "confdefs.h"
5444
5445 #include <unistd.h>
5446 #ifdef HAVE_SYS_PARAM_H
5447 #include <sys/param.h> /* this may define "BSD" */
5448 #endif
5449
5450 int
5451 main ()
5452 {
5453
5454 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
5455 void *p = (void *) seteuid;
5456 int x = seteuid(geteuid());
5457 #elif defined(BSD) && (BSD >= 199103)
5458 /* The BSD's may implement the runtime check - and it fails.
5459 * However, saved-ids work almost like POSIX (close enough for most uses).
5460 */
5461 #else
5462 make an error
5463 #endif
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest.$ac_objext conftest$ac_exeext
5470 if { (eval echo "$as_me:5470: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>&5
5472 ac_status=$?
5473 echo "$as_me:5473: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -s conftest$ac_exeext'
5476 { (eval echo "$as_me:5476: \"$ac_try\"") >&5
5477 (eval $ac_try) 2>&5
5478 ac_status=$?
5479 echo "$as_me:5479: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5481 cf_cv_posix_saved_ids=yes
5482
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5486
5487 if test "$cross_compiling" = yes; then
5488 cf_cv_posix_saved_ids=unknown
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 #line 5491 "configure"
5492 #include "confdefs.h"
5493
5494 #ifdef HAVE_STDLIB_H
5495 #include <stdlib.h>
5496 #endif
5497 #include <unistd.h>
5498 int main()
5499 {
5500 void *p = (void *) seteuid;
5501 long code = sysconf(_SC_SAVED_IDS);
5502 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
5503 }
5504 _ACEOF
5505 rm -f conftest$ac_exeext
5506 if { (eval echo "$as_me:5506: \"$ac_link\"") >&5
5507 (eval $ac_link) 2>&5
5508 ac_status=$?
5509 echo "$as_me:5509: \$? = $ac_status" >&5
5510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5511 { (eval echo "$as_me:5511: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:5514: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 cf_cv_posix_saved_ids=yes
5517 else
5518 echo "$as_me: program exited with status $ac_status" >&5
5519 echo "$as_me: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 cf_cv_posix_saved_ids=no
5522 fi
5523 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5524 fi
5525
5526 fi
5527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5528
5529 fi
5530 echo "$as_me:5530: result: $cf_cv_posix_saved_ids" >&5
5531 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
5532
5533 test "$cf_cv_posix_saved_ids" = yes &&
5534 cat >>confdefs.h <<\EOF
5535 #define HAVE_POSIX_SAVED_IDS 1
5536 EOF
5537
5538 # compute a reasonable value for $TERM to give tgetent(), since we may be
5539 # running in 'screen', which sets $TERMCAP to a specific entry that is not
5540 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
5541 # discard $TERMCAP.
5542 cf_TERMVAR=vt100
5543 if test -n "$TERMCAP"
5544 then
5545 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'`
5546 case "$cf_TERMCAP" in #(vi
5547 screen*.*) #(vi
5548 ;;
5549 *)
5550 cf_TERMVAR="$cf_TERMCAP"
5551 ;;
5552 esac
5553 fi
5554 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
5555
5556 echo "$as_me:5556: checking if we want full tgetent function" >&5
5557 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
5558
5559 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
5560 if test "${enable_full_tgetent+set}" = set; then
5561 enableval="$enable_full_tgetent"
5562 test "$enableval" != no && enableval=yes
5563 if test "$enableval" != "yes" ; then
5564 cf_full_tgetent=no
5565 else
5566 cf_full_tgetent=yes
5567 fi
5568 else
5569 enableval=yes
5570 cf_full_tgetent=yes
5571
5572 fi;
5573 echo "$as_me:5573: result: $cf_full_tgetent" >&5
5574 echo "${ECHO_T}$cf_full_tgetent" >&6
5575
5576 if test "$cf_full_tgetent" = yes ; then
5577 cf_test_message="full tgetent"
5578 else
5579 cf_test_message="tgetent"
5580 fi
5581
5582 echo "$as_me:5582: checking for $cf_test_message function" >&5
5583 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
5584 if test "${cf_cv_lib_tgetent+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587
5588 cf_save_LIBS="$LIBS"
5589 cf_cv_lib_tgetent=no
5590 if test "$cf_full_tgetent" = yes ; then
5591 cf_TERMLIB="otermcap termcap termlib ncurses curses"
5592 cf_TERMTST="buffer[0] == 0"
5593 else
5594 cf_TERMLIB="termlib ncurses curses"
5595 cf_TERMTST="0"
5596 fi
5597 for cf_termlib in '' $cf_TERMLIB ; do
5598 LIBS="$cf_save_LIBS"
5599 test -n "$cf_termlib" && LIBS="-l$cf_termlib $LIBS"
5600 if test "$cross_compiling" = yes; then
5601 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
5602 else
5603 cat >conftest.$ac_ext <<_ACEOF
5604 #line 5604 "configure"
5605 #include "confdefs.h"
5606
5607 /* terminfo implementations ignore the buffer argument, making it useless for
5608 * the xterm application, which uses this information to make a new TERMCAP
5609 * environment variable.
5610 */
5611 int main()
5612 {
5613 char buffer[1024];
5614 buffer[0] = 0;
5615 tgetent(buffer, "$cf_TERMVAR");
5616 ${cf_cv_main_return:-return} ($cf_TERMTST); }
5617 _ACEOF
5618 rm -f conftest$ac_exeext
5619 if { (eval echo "$as_me:5619: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5621 ac_status=$?
5622 echo "$as_me:5622: \$? = $ac_status" >&5
5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624 { (eval echo "$as_me:5624: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:5627: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
5630 if test -n "$cf_termlib" ; then
5631 cf_cv_lib_tgetent="-l$cf_termlib"
5632 else
5633 cf_cv_lib_tgetent=yes
5634 fi
5635 break
5636 else
5637 echo "$as_me: program exited with status $ac_status" >&5
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
5641 fi
5642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 done
5645 LIBS="$cf_save_LIBS"
5646
5647 fi
5648 echo "$as_me:5648: result: $cf_cv_lib_tgetent" >&5
5649 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
5650
5651 # If we found a working tgetent(), set LIBS and check for termcap.h.
5652 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
5653 # not have side effects other than setting the cache variable, because
5654 # they are not executed when a cached value exists.)
5655 if test "x$cf_cv_lib_tgetent" != xno ; then
5656 test "x$cf_cv_lib_tgetent" != xyes && LIBS="$cf_cv_lib_tgetent $LIBS"
5657
5658 cat >>confdefs.h <<\EOF
5659 #define USE_TERMCAP 1
5660 EOF
5661
5662 if test "$cf_full_tgetent" = no ; then
5663 cat >conftest.$ac_ext <<_ACEOF
5664 #line 5664 "configure"
5665 #include "confdefs.h"
5666
5667 #include <termcap.h>
5668 int
5669 main ()
5670 {
5671
5672 #ifdef NCURSES_VERSION
5673 make an error
5674 #endif
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (eval echo "$as_me:5680: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5682 ac_status=$?
5683 echo "$as_me:5683: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (eval echo "$as_me:5686: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:5689: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 cat >>confdefs.h <<\EOF
5692 #define HAVE_TERMCAP_H 1
5693 EOF
5694
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5698 fi
5699 rm -f conftest.$ac_objext conftest.$ac_ext
5700 else
5701
5702 for ac_header in termcap.h
5703 do
5704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705 echo "$as_me:5705: checking for $ac_header" >&5
5706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 cat >conftest.$ac_ext <<_ACEOF
5711 #line 5711 "configure"
5712 #include "confdefs.h"
5713 #include <$ac_header>
5714 _ACEOF
5715 if { (eval echo "$as_me:5715: \"$ac_cpp conftest.$ac_ext\"") >&5
5716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5717 ac_status=$?
5718 egrep -v '^ *\+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:5721: \$? = $ac_status" >&5
5722 (exit $ac_status); } >/dev/null; then
5723 if test -s conftest.err; then
5724 ac_cpp_err=$ac_c_preproc_warn_flag
5725 else
5726 ac_cpp_err=
5727 fi
5728 else
5729 ac_cpp_err=yes
5730 fi
5731 if test -z "$ac_cpp_err"; then
5732 eval "$as_ac_Header=yes"
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5736 eval "$as_ac_Header=no"
5737 fi
5738 rm -f conftest.err conftest.$ac_ext
5739 fi
5740 echo "$as_me:5740: result: `eval echo '${'$as_ac_Header'}'`" >&5
5741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5743 cat >>confdefs.h <<EOF
5744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745 EOF
5746
5747 fi
5748 done
5749
5750 fi
5751 else
5752 # If we didn't find a tgetent() that supports the buffer
5753 # argument, look again to see whether we can find even
5754 # a crippled one. A crippled tgetent() is still useful to
5755 # validate values for the TERM environment variable given to
5756 # child processes.
5757 echo "$as_me:5757: checking for partial tgetent function" >&5
5758 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
5759 if test "${cf_cv_lib_part_tgetent+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762
5763 cf_cv_lib_part_tgetent=no
5764 for cf_termlib in $cf_TERMLIB ; do
5765 LIBS="$cf_save_LIBS -l$cf_termlib"
5766 cat >conftest.$ac_ext <<_ACEOF
5767 #line 5767 "configure"
5768 #include "confdefs.h"
5769
5770 int
5771 main ()
5772 {
5773 tgetent(0, "$cf_TERMVAR")
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 rm -f conftest.$ac_objext conftest$ac_exeext
5779 if { (eval echo "$as_me:5779: \"$ac_link\"") >&5
5780 (eval $ac_link) 2>&5
5781 ac_status=$?
5782 echo "$as_me:5782: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -s conftest$ac_exeext'
5785 { (eval echo "$as_me:5785: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:5788: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
5791 cf_cv_lib_part_tgetent="-l$cf_termlib"
5792 break
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 fi
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 done
5799 LIBS="$cf_save_LIBS"
5800
5801 fi
5802 echo "$as_me:5802: result: $cf_cv_lib_part_tgetent" >&5
5803 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
5804
5805 if test "$cf_cv_lib_part_tgetent" != no ; then
5806 LIBS="$cf_cv_lib_part_tgetent $LIBS"
5807
5808 for ac_header in termcap.h
5809 do
5810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5811 echo "$as_me:5811: checking for $ac_header" >&5
5812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 cat >conftest.$ac_ext <<_ACEOF
5817 #line 5817 "configure"
5818 #include "confdefs.h"
5819 #include <$ac_header>
5820 _ACEOF
5821 if { (eval echo "$as_me:5821: \"$ac_cpp conftest.$ac_ext\"") >&5
5822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5823 ac_status=$?
5824 egrep -v '^ *\+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:5827: \$? = $ac_status" >&5
5828 (exit $ac_status); } >/dev/null; then
5829 if test -s conftest.err; then
5830 ac_cpp_err=$ac_c_preproc_warn_flag
5831 else
5832 ac_cpp_err=
5833 fi
5834 else
5835 ac_cpp_err=yes
5836 fi
5837 if test -z "$ac_cpp_err"; then
5838 eval "$as_ac_Header=yes"
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 eval "$as_ac_Header=no"
5843 fi
5844 rm -f conftest.err conftest.$ac_ext
5845 fi
5846 echo "$as_me:5846: result: `eval echo '${'$as_ac_Header'}'`" >&5
5847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5849 cat >>confdefs.h <<EOF
5850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5851 EOF
5852
5853 fi
5854 done
5855
5856 # If this is linking against ncurses, we'll trigger the
5857 # ifdef in resize.c that turns the termcap stuff back off.
5858
5859 cat >>confdefs.h <<\EOF
5860 #define USE_TERMINFO 1
5861 EOF
5862
5863 fi
5864 fi
5865
5866 echo "$as_me:5866: checking for X applications class" >&5
5867 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
5868
5869 # Check whether --with-app-class or --without-app-class was given.
5870 if test "${with_app_class+set}" = set; then
5871 withval="$with_app_class"
5872 APP_CLASS=$withval
5873 else
5874 APP_CLASS=XTerm
5875 fi;
5876
5877 case x$APP_CLASS in #(vi
5878 *[/@,%]*) #(vi
5879 { echo "$as_me:5879: WARNING: X applications class cannot contain punctuation" >&5
5880 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
5881 APP_CLASS=XTerm
5882 ;;
5883 x[A-Z]*) #(vi
5884 ;;
5885 *)
5886 { echo "$as_me:5886: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5
5887 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;}
5888 APP_CLASS=XTerm
5889 ;;
5890 esac
5891
5892 echo "$as_me:5892: result: $APP_CLASS" >&5
5893 echo "${ECHO_T}$APP_CLASS" >&6
5894
5895 echo "$as_me:5895: checking for directory to install resource files" >&5
5896 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
5897
5898 # Check whether --with-app-defaults or --without-app-defaults was given.
5899 if test "${with_app_defaults+set}" = set; then
5900 withval="$with_app_defaults"
5901 APPSDIR=$withval
5902 else
5903 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
5904 fi;
5905
5906 if test "x$APPSDIR" = xauto
5907 then
5908 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
5909 for cf_path in \
5910 /usr/share/X11/app-defaults \
5911 /usr/X11/share/X11/app-defaults \
5912 /usr/X11/lib/X11/app-defaults \
5913 /usr/lib/X11/app-defaults \
5914 /etc/X11/app-defaults \
5915 /usr/pkg/lib/X11/app-defaults \
5916 /usr/X11R7/lib/X11/app-defaults \
5917 /usr/X11R6/lib/X11/app-defaults \
5918 /usr/X11R5/lib/X11/app-defaults \
5919 /usr/X11R4/lib/X11/app-defaults \
5920 /usr/local/lib/X11/app-defaults \
5921 /usr/local/share/X11/app-defaults \
5922 /usr/lib64/X11/app-defaults
5923 do
5924 if test -d "$cf_path" ; then
5925 APPSDIR="$cf_path"
5926 break
5927 fi
5928 done
5929 else
5930 cf_path=$APPSDIR
5931
5932 if test "x$prefix" != xNONE; then
5933 cf_path_syntax="$prefix"
5934 else
5935 cf_path_syntax="$ac_default_prefix"
5936 fi
5937
5938 case ".$cf_path" in #(vi
5939 .\$\(*\)*|.\'*\'*) #(vi
5940 ;;
5941 ..|./*|.\\*) #(vi
5942 ;;
5943 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5944 ;;
5945 .\${*prefix}*|.\${*dir}*) #(vi
5946 eval cf_path="$cf_path"
5947 case ".$cf_path" in #(vi
5948 .NONE/*)
5949 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
5950 ;;
5951 esac
5952 ;; #(vi
5953 .no|.NONE/*)
5954 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
5955 ;;
5956 *)
5957 { { echo "$as_me:5957: error: expected a pathname, not \"$cf_path\"" >&5
5958 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
5959 { (exit 1); exit 1; }; }
5960 ;;
5961 esac
5962
5963 fi
5964
5965 echo "$as_me:5965: result: $APPSDIR" >&5
5966 echo "${ECHO_T}$APPSDIR" >&6
5967
5968 no_appsdir=
5969 if test "$APPSDIR" = no
5970 then
5971 no_appsdir="#"
5972 else
5973 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
5974 fi
5975
5976 echo "$as_me:5976: checking for the icon name" >&5
5977 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
5978
5979 # Check whether --with-icon-name or --without-icon-name was given.
5980 if test "${with_icon_name+set}" = set; then
5981 withval="$with_icon_name"
5982 ICON_NAME="$withval"
5983 else
5984 ICON_NAME=xterm-color
5985 fi;
5986 case "x$ICON_NAME" in
5987 xyes|xno|x)
5988 ICON_NAME=xterm-color
5989 ;;
5990 esac
5991
5992 echo "$as_me:5992: result: $ICON_NAME" >&5
5993 echo "${ECHO_T}$ICON_NAME" >&6
5994
5995 echo "$as_me:5995: checking for icon symlink to use" >&5
5996 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
5997
5998 # Check whether --with-icon-symlink or --without-icon-symlink was given.
5999 if test "${with_icon_symlink+set}" = set; then
6000 withval="$with_icon_symlink"
6001 ICON_SYMLINK="$withval"
6002 else
6003 ICON_SYMLINK=NONE
6004 fi;
6005 case "x$ICON_SYMLINK" in
6006 xyes)
6007 ICON_SYMLINK=xterm
6008 ;;
6009 xno|x)
6010 ICON_SYMLINK=NONE
6011 ;;
6012 esac
6013
6014 echo "$as_me:6014: result: $ICON_SYMLINK" >&5
6015 echo "${ECHO_T}$ICON_SYMLINK" >&6
6016
6017 echo "$as_me:6017: checking for directory to install pixmaps" >&5
6018 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
6019
6020 # Check whether --with-pixmapdir or --without-pixmapdir was given.
6021 if test "${with_pixmapdir+set}" = set; then
6022 withval="$with_pixmapdir"
6023 PIXMAPDIR=$withval
6024 else
6025 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
6026 fi;
6027
6028 if test "x$PIXMAPDIR" = xauto
6029 then
6030 PIXMAPDIR='${datadir}/pixmaps'
6031 for cf_path in \
6032 /usr/share/pixmaps \
6033 /usr/X11R6/share/pixmaps
6034 do
6035 if test -d "$cf_path" ; then
6036 PIXMAPDIR="$cf_path"
6037 break
6038 fi
6039 done
6040 else
6041 cf_path=$PIXMAPDIR
6042
6043 if test "x$prefix" != xNONE; then
6044 cf_path_syntax="$prefix"
6045 else
6046 cf_path_syntax="$ac_default_prefix"
6047 fi
6048
6049 case ".$cf_path" in #(vi
6050 .\$\(*\)*|.\'*\'*) #(vi
6051 ;;
6052 ..|./*|.\\*) #(vi
6053 ;;
6054 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6055 ;;
6056 .\${*prefix}*|.\${*dir}*) #(vi
6057 eval cf_path="$cf_path"
6058 case ".$cf_path" in #(vi
6059 .NONE/*)
6060 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6061 ;;
6062 esac
6063 ;; #(vi
6064 .no|.NONE/*)
6065 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6066 ;;
6067 *)
6068 { { echo "$as_me:6068: error: expected a pathname, not \"$cf_path\"" >&5
6069 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
6070 { (exit 1); exit 1; }; }
6071 ;;
6072 esac
6073
6074 fi
6075 echo "$as_me:6075: result: $PIXMAPDIR" >&5
6076 echo "${ECHO_T}$PIXMAPDIR" >&6
6077
6078 no_pixmapdir=
6079 if test "$PIXMAPDIR" = no
6080 then
6081 no_pixmapdir="#"
6082 else
6083 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
6084 fi
6085
6086 echo "$as_me:6086: checking for directory to install icons" >&5
6087 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
6088
6089 # Check whether --with-icondir or --without-icondir was given.
6090 if test "${with_icondir+set}" = set; then
6091 withval="$with_icondir"
6092 ICONDIR=$withval
6093 else
6094 test -z "$ICONDIR" && ICONDIR=no
6095 fi;
6096
6097 if test "x$ICONDIR" = xauto
6098 then
6099 ICONDIR='${datadir}/icons'
6100 for cf_path in \
6101 /usr/share/icons \
6102 /usr/X11R6/share/icons
6103 do
6104 if test -d "$cf_path" ; then
6105 ICONDIR="$cf_path"
6106 break
6107 fi
6108 done
6109 else
6110 cf_path=$ICONDIR
6111
6112 if test "x$prefix" != xNONE; then
6113 cf_path_syntax="$prefix"
6114 else
6115 cf_path_syntax="$ac_default_prefix"
6116 fi
6117
6118 case ".$cf_path" in #(vi
6119 .\$\(*\)*|.\'*\'*) #(vi
6120 ;;
6121 ..|./*|.\\*) #(vi
6122 ;;
6123 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6124 ;;
6125 .\${*prefix}*|.\${*dir}*) #(vi
6126 eval cf_path="$cf_path"
6127 case ".$cf_path" in #(vi
6128 .NONE/*)
6129 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6130 ;;
6131 esac
6132 ;; #(vi
6133 .no|.NONE/*)
6134 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6135 ;;
6136 *)
6137 { { echo "$as_me:6137: error: expected a pathname, not \"$cf_path\"" >&5
6138 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
6139 { (exit 1); exit 1; }; }
6140 ;;
6141 esac
6142
6143 fi
6144 echo "$as_me:6144: result: $ICONDIR" >&5
6145 echo "${ECHO_T}$ICONDIR" >&6
6146
6147 no_icondir=
6148 if test "$ICONDIR" = no
6149 then
6150 no_icondir="#"
6151 else
6152 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
6153 fi
6154
6155 echo "$as_me:6155: checking if icon theme should be used" >&5
6156 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
6157
6158 # Check whether --with-icon-theme or --without-icon-theme was given.
6159 if test "${with_icon_theme+set}" = set; then
6160 withval="$with_icon_theme"
6161 ICON_THEME=$withval
6162 else
6163 ICON_THEME=no
6164 fi;
6165
6166 case "x$ICON_THEME" in #(vi
6167 xno) #(vi
6168 ;;
6169 x|xyes)
6170 ICON_THEME=hicolor
6171 ;;
6172 esac
6173 echo "$as_me:6173: result: $ICON_THEME" >&5
6174 echo "${ECHO_T}$ICON_THEME" >&6
6175
6176 if test "x$ICON_THEME" = xno
6177 then
6178 if test "x$ICONDIR" != xno
6179 then
6180 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6
6181
6182 echo "${as_me:-configure}:6182: testing ignoring icondir without theme ..." 1>&5
6183
6184 no_icondir="#"
6185 fi
6186 else
6187 if test "x$ICONDIR" = xno
6188 then
6189 { { echo "$as_me:6189: error: icondir must be set for icon theme" >&5
6190 echo "$as_me: error: icondir must be set for icon theme" >&2;}
6191 { (exit 1); exit 1; }; }
6192 fi
6193 fi
6194
6195 : ${ICON_FORMAT:=".svg .png .xpm"}
6196
6197 # ICON_NAME=
6198 ICON_LIST=
6199
6200 if test "x$ICON_THEME" != xno
6201 then
6202 cf_icon_list="icons/$ICON_NAME icons/${ICON_NAME}_48x48"
6203 else
6204 cf_icon_list="icons/${ICON_NAME}_48x48"
6205 fi
6206
6207 echo "$as_me:6207: checking for icon(s) to install" >&5
6208 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
6209 for cf_name in $cf_icon_list
6210 do
6211 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6
6212
6213 echo "${as_me:-configure}:6213: testing using $ICON_FORMAT ..." 1>&5
6214
6215 for cf_suffix in $ICON_FORMAT
6216 do
6217 cf_icon="${cf_name}${cf_suffix}"
6218 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
6219 if test ! -f "${cf_left}"
6220 then
6221 if test "x$srcdir" != "x."
6222 then
6223 cf_icon="${srcdir}/${cf_left}"
6224 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
6225 if test ! -f "${cf_left}"
6226 then
6227 continue
6228 fi
6229 else
6230 continue
6231 fi
6232 fi
6233 if test "x$ICON_THEME" != xno
6234 then
6235 cf_base=`basename $cf_left`
6236 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'`
6237 case "x${cf_base}" in #(vi
6238 *:*) #(vi
6239 cf_next=$cf_base
6240 # user-defined mapping
6241 ;;
6242 *.png) #(vi
6243 cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'`
6244 if test -z "$cf_size"
6245 then
6246 { echo "$as_me:6246: WARNING: cannot determine size of $cf_left" >&5
6247 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
6248 continue
6249 fi
6250 cf_next="$cf_size/apps/$cf_trim"
6251 ;;
6252 *.svg) #(vi
6253 cf_next="scalable/apps/$cf_trim"
6254 ;;
6255 *.xpm)
6256 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6
6257
6258 echo "${as_me:-configure}:6258: testing ignored XPM file in icon theme ..." 1>&5
6259
6260 continue
6261 ;;
6262 *_[0-9][0-9]*x[0-9][0-9]*.*) #(vi
6263 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'`
6264 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
6265 cf_next="$cf_size/apps/$cf_base"
6266 ;;
6267 esac
6268 test -n "$verbose" && echo " adding $cf_next" 1>&6
6269
6270 echo "${as_me:-configure}:6270: testing adding $cf_next ..." 1>&5
6271
6272 cf_icon="${cf_icon}:${cf_next}"
6273 fi
6274 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
6275 ICON_LIST="$ICON_LIST${cf_icon}"
6276 if test -z "$ICON_NAME"
6277 then
6278 ICON_NAME=`basename $cf_icon | sed -e 's/[.:].*//'`
6279 fi
6280 done
6281 done
6282
6283 if test -n "$verbose"
6284 then
6285 echo "$as_me:6285: checking result" >&5
6286 echo $ECHO_N "checking result... $ECHO_C" >&6
6287 fi
6288 echo "$as_me:6288: result: $ICON_LIST" >&5
6289 echo "${ECHO_T}$ICON_LIST" >&6
6290
6291 if test -z "$ICON_LIST"
6292 then
6293 { { echo "$as_me:6293: error: no icons found" >&5
6294 echo "$as_me: error: no icons found" >&2;}
6295 { (exit 1); exit 1; }; }
6296 fi
6297
6298 echo "$as_me:6298: checking for icon name" >&5
6299 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
6300 echo "$as_me:6300: result: $ICON_NAME" >&5
6301 echo "${ECHO_T}$ICON_NAME" >&6
6302
6303 # Comment-out the install-desktop rule if the desktop-utils are not found.
6304 echo "$as_me:6304: checking if you want to install desktop files" >&5
6305 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
6306
6307 # Check whether --enable-desktop or --disable-desktop was given.
6308 if test "${enable_desktop+set}" = set; then
6309 enableval="$enable_desktop"
6310 test "$enableval" != no && enableval=yes
6311 if test "$enableval" != "yes" ; then
6312 enable_desktop=$enableval
6313 else
6314 enable_desktop=$enableval
6315 fi
6316 else
6317 enableval=yes
6318 enable_desktop=$enableval
6319
6320 fi;
6321 echo "$as_me:6321: result: $enable_desktop" >&5
6322 echo "${ECHO_T}$enable_desktop" >&6
6323
6324 desktop_utils=
6325 if test "$enable_desktop" = yes ; then
6326 # Extract the first word of "desktop-file-install", so it can be a program name with args.
6327 set dummy desktop-file-install; ac_word=$2
6328 echo "$as_me:6328: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6330 if test "${ac_cv_prog_desktop_utils+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333 if test -n "$desktop_utils"; then
6334 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
6335 else
6336 ac_save_IFS=$IFS; IFS=$ac_path_separator
6337 ac_dummy="$PATH"
6338 for ac_dir in $ac_dummy; do
6339 IFS=$ac_save_IFS
6340 test -z "$ac_dir" && ac_dir=.
6341 $as_executable_p "$ac_dir/$ac_word" || continue
6342 ac_cv_prog_desktop_utils="yes"
6343 echo "$as_me:6343: found $ac_dir/$ac_word" >&5
6344 break
6345 done
6346
6347 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
6348 fi
6349 fi
6350 desktop_utils=$ac_cv_prog_desktop_utils
6351 if test -n "$desktop_utils"; then
6352 echo "$as_me:6352: result: $desktop_utils" >&5
6353 echo "${ECHO_T}$desktop_utils" >&6
6354 else
6355 echo "$as_me:6355: result: no" >&5
6356 echo "${ECHO_T}no" >&6
6357 fi
6358
6359 fi
6360
6361 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
6362
6363 if test -z "$desktop_utils"
6364 then
6365 echo "$as_me:6365: checking for requested desktop-category" >&5
6366 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
6367
6368 # Check whether --with-desktop-category or --without-desktop-category was given.
6369 if test "${with_desktop_category+set}" = set; then
6370 withval="$with_desktop_category"
6371 cf_desktop_want=$withval
6372 else
6373 cf_desktop_want=auto
6374 fi;
6375 echo "$as_me:6375: result: $cf_desktop_want" >&5
6376 echo "${ECHO_T}$cf_desktop_want" >&6
6377
6378 if test "$cf_desktop_want" = auto
6379 then
6380 rm -rf conftest*
6381 cf_desktop_also=
6382 for cf_desktop_dir in \
6383 /usr/share/app-install \
6384 /usr/share/applications
6385 do
6386 if test -d $cf_desktop_dir
6387 then
6388 find $cf_desktop_dir -name '*.desktop' | \
6389 while true
6390 do
6391 read cf_desktop_path
6392 test -z "$cf_desktop_path" && break
6393 cf_desktop_name=`basename $cf_desktop_path .desktop`
6394 case $cf_desktop_name in #(vi
6395 xterm|*-xterm|*rxvt*|konsole|*-terminal)
6396 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6
6397
6398 echo "${as_me:-configure}:6398: testing inspect $cf_desktop_path ..." 1>&5
6399
6400 egrep '^Categories=' $cf_desktop_path | \
6401 tr ';' '\n' | \
6402 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1
6403 ;;
6404 esac
6405 done
6406 fi
6407 done
6408 if test -s conftest.1
6409 then
6410 cf_desktop_last=
6411 sort conftest.1 | \
6412 while true
6413 do
6414 read cf_desktop_this
6415 test -z "$cf_desktop_this" && break
6416 case $cf_desktop_this in #(vi
6417 Qt*|GTK*|KDE*|GNOME*|*XFCE*|*Xfce*) #(vi
6418 ;;
6419 System|TerminalEmulator|Utility|*)
6420 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo $cf_desktop_this >>conftest.2
6421 ;;
6422 esac
6423 cf_desktop_last=$cf_desktop_this
6424 done
6425 cf_desktop_want=`cat conftest.2 | tr '\n' ';'`
6426 fi
6427 if test -n "$cf_desktop_want"
6428 then
6429 if test "$cf_desktop_want" = auto
6430 then
6431 cf_desktop_want=
6432 else
6433 # do a sanity check on the semicolon-separated list, ignore on failure
6434 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'`
6435 test -z "$cf_desktop_test" && cf_desktop_want=
6436 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
6437 test -z "$cf_desktop_test" && cf_desktop_want=
6438 fi
6439 fi
6440 if test -z "$cf_desktop_want"
6441 then
6442 cf_desktop_want="`echo "System|TerminalEmulator|Utility|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
6443 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6
6444
6445 echo "${as_me:-configure}:6445: testing no usable value found for desktop category ..." 1>&5
6446
6447 fi
6448 fi
6449 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
6450 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6
6451
6452 echo "${as_me:-configure}:6452: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5
6453
6454 fi
6455
6456 echo "$as_me:6456: checking for install-permissions reference" >&5
6457 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
6458
6459 # Check whether --with-reference or --without-reference was given.
6460 if test "${with_reference+set}" = set; then
6461 withval="$with_reference"
6462 with_reference=$withval
6463 else
6464 with_reference=xterm
6465 fi;
6466 echo "$as_me:6466: result: $with_reference" >&5
6467 echo "${ECHO_T}$with_reference" >&6
6468
6469 with_full_paths=yes
6470
6471 echo "$as_me:6471: checking for PATH separator" >&5
6472 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
6473 case $cf_cv_system_name in
6474 os2*) PATH_SEPARATOR=';' ;;
6475 *) ${PATH_SEPARATOR:=':'} ;;
6476 esac
6477
6478 echo "$as_me:6478: result: $PATH_SEPARATOR" >&5
6479 echo "${ECHO_T}$PATH_SEPARATOR" >&6
6480
6481 test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
6482 for ac_prog in $XTERM_PATH $with_reference
6483 do
6484 # Extract the first word of "$ac_prog", so it can be a program name with args.
6485 set dummy $ac_prog; ac_word=$2
6486 echo "$as_me:6486: checking for $ac_word" >&5
6487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6488 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 case $XTERM_PATH in
6492 [\\/]* | ?:[\\/]*)
6493 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
6494 ;;
6495 *)
6496 ac_save_IFS=$IFS; IFS=$ac_path_separator
6497 ac_dummy="$PATH"
6498 for ac_dir in $ac_dummy; do
6499 IFS=$ac_save_IFS
6500 test -z "$ac_dir" && ac_dir=.
6501 if $as_executable_p "$ac_dir/$ac_word"; then
6502 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
6503 echo "$as_me:6503: found $ac_dir/$ac_word" >&5
6504 break
6505 fi
6506 done
6507
6508 ;;
6509 esac
6510 fi
6511 XTERM_PATH=$ac_cv_path_XTERM_PATH
6512
6513 if test -n "$XTERM_PATH"; then
6514 echo "$as_me:6514: result: $XTERM_PATH" >&5
6515 echo "${ECHO_T}$XTERM_PATH" >&6
6516 else
6517 echo "$as_me:6517: result: no" >&5
6518 echo "${ECHO_T}no" >&6
6519 fi
6520
6521 test -n "$XTERM_PATH" && break
6522 done
6523 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
6524
6525 cf_path_prog=""
6526 cf_path_args=""
6527 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
6528 for cf_temp in $ac_cv_path_XTERM_PATH
6529 do
6530 if test -z "$cf_path_prog" ; then
6531 if test "$with_full_paths" = yes ; then
6532
6533 if test "x$prefix" != xNONE; then
6534 cf_path_syntax="$prefix"
6535 else
6536 cf_path_syntax="$ac_default_prefix"
6537 fi
6538
6539 case ".$cf_temp" in #(vi
6540 .\$\(*\)*|.\'*\'*) #(vi
6541 ;;
6542 ..|./*|.\\*) #(vi
6543 ;;
6544 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6545 ;;
6546 .\${*prefix}*|.\${*dir}*) #(vi
6547 eval cf_temp="$cf_temp"
6548 case ".$cf_temp" in #(vi
6549 .NONE/*)
6550 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
6551 ;;
6552 esac
6553 ;; #(vi
6554 .no|.NONE/*)
6555 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
6556 ;;
6557 *)
6558 break
6559 ;;
6560 esac
6561
6562 cf_path_prog="$cf_temp"
6563 else
6564 cf_path_prog="`basename $cf_temp`"
6565 fi
6566 elif test -z "$cf_path_args" ; then
6567 cf_path_args="$cf_temp"
6568 else
6569 cf_path_args="$cf_path_args $cf_temp"
6570 fi
6571 done
6572 IFS="$cf_save_ifs"
6573
6574 if test -n "$cf_path_prog" ; then
6575
6576 echo "${as_me:-configure}:6576: testing defining path for ${cf_path_prog} ..." 1>&5
6577
6578 cat >>confdefs.h <<EOF
6579 #define XTERM_PATH_PATH "$cf_path_prog"
6580 EOF
6581
6582 test -n "$cf_path_args" &&
6583 cat >>confdefs.h <<EOF
6584 #define XTERM_PATH_ARGS "$cf_path_args"
6585 EOF
6586
6587 fi
6588
6589 # If any of --program-prefix, --program-suffix or --program-transform-name is
6590 # given, accept an option tell the makefile to create a symbolic link, e.g.,
6591 # to "xterm" on install.
6592 XTERM_SYMLINK=NONE
6593
6594 if test "$program_transform_name" != "'s,,,'" ; then
6595 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
6596 cf_name=`echo xterm |sed -e "$cf_name"`
6597 echo "$as_me:6597: checking for symbolic link to create to $cf_name" >&5
6598 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
6599
6600 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
6601 if test "${with_xterm_symlink+set}" = set; then
6602 withval="$with_xterm_symlink"
6603 with_symlink=$withval
6604 else
6605 with_symlink=xterm
6606 fi;
6607 echo "$as_me:6607: result: $with_symlink" >&5
6608 echo "${ECHO_T}$with_symlink" >&6
6609 test "$with_symlink" = yes && with_symlink=xterm
6610 test -n "$with_symlink" && \
6611 test "$with_symlink" != no && \
6612 test "$with_symlink" != $cf_name && \
6613 XTERM_SYMLINK="$with_symlink"
6614 fi
6615
6616 echo "$as_me:6616: checking if you want to disable openpty" >&5
6617 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
6618
6619 # Check whether --enable-openpty or --disable-openpty was given.
6620 if test "${enable_openpty+set}" = set; then
6621 enableval="$enable_openpty"
6622 test "$enableval" != no && enableval=yes
6623 if test "$enableval" != "yes" ; then
6624 disable_openpty=yes
6625 else
6626 disable_openpty=no
6627 fi
6628 else
6629 enableval=yes
6630 disable_openpty=no
6631
6632 fi;
6633 echo "$as_me:6633: result: $disable_openpty" >&5
6634 echo "${ECHO_T}$disable_openpty" >&6
6635
6636 echo "$as_me:6636: checking if you want to disable setuid" >&5
6637 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
6638
6639 # Check whether --enable-setuid or --disable-setuid was given.
6640 if test "${enable_setuid+set}" = set; then
6641 enableval="$enable_setuid"
6642 test "$enableval" != no && enableval=yes
6643 if test "$enableval" != "yes" ; then
6644 disable_setuid=yes
6645 else
6646 disable_setuid=no
6647 fi
6648 else
6649 enableval=yes
6650 disable_setuid=no
6651
6652 fi;
6653 echo "$as_me:6653: result: $disable_setuid" >&5
6654 echo "${ECHO_T}$disable_setuid" >&6
6655
6656 echo "$as_me:6656: checking if you want to disable setgid" >&5
6657 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
6658
6659 # Check whether --enable-setgid or --disable-setgid was given.
6660 if test "${enable_setgid+set}" = set; then
6661 enableval="$enable_setgid"
6662 test "$enableval" != no && enableval=yes
6663 if test "$enableval" != "yes" ; then
6664 disable_setgid=yes
6665 else
6666 disable_setgid=no
6667 fi
6668 else
6669 enableval=yes
6670 disable_setgid=no
6671
6672 fi;
6673 echo "$as_me:6673: result: $disable_setgid" >&5
6674 echo "${ECHO_T}$disable_setgid" >&6
6675
6676 echo "$as_me:6676: checking if you want to run xterm setuid to a given user" >&5
6677 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
6678
6679 # Check whether --with-setuid or --without-setuid was given.
6680 if test "${with_setuid+set}" = set; then
6681 withval="$with_setuid"
6682 use_given_setuid=$withval
6683 else
6684 use_given_setuid=no
6685 fi;
6686 echo "$as_me:6686: result: $use_given_setuid" >&5
6687 echo "${ECHO_T}$use_given_setuid" >&6
6688
6689 if test "$use_given_setuid" != no ; then
6690 if test "$use_given_setuid" = yes ; then
6691 cf_cv_given_setuid=root
6692 else
6693 cf_cv_given_setuid=$use_given_setuid
6694 fi
6695 # inherit SINSTALL_OPTS from environment to allow packager to customize it.
6696 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
6697 fi
6698
6699 echo "$as_me:6699: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
6700 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
6701
6702 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
6703 if test "${with_utmp_setgid+set}" = set; then
6704 withval="$with_utmp_setgid"
6705 use_utmp_setgid=$withval
6706 else
6707 use_utmp_setgid=no
6708 fi;
6709 echo "$as_me:6709: result: $use_utmp_setgid" >&5
6710 echo "${ECHO_T}$use_utmp_setgid" >&6
6711
6712 if test "$use_utmp_setgid" != no ; then
6713 if test "$use_utmp_setgid" = yes ; then
6714
6715 if test $cf_cv_have_utmp != no ; then
6716 echo "$as_me:6716: checking for utmp/utmpx group" >&5
6717 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
6718 if test "${cf_cv_utmp_group+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721
6722 for cf_utmp_path in /var/adm /var/run
6723 do
6724 for cf_utmp_file in utmpx utmp
6725 do
6726 if test -f $cf_utmp_path/$cf_utmp_file
6727 then
6728 cf_cv_utmp_group=root
6729
6730 cf_option="-l -L"
6731
6732 # Expect listing to have fields like this:
6733 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname
6734 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
6735 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
6736 if test -z "$cf_rest" ; then
6737 cf_option="$cf_option -g"
6738 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
6739 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
6740 fi
6741 rm -f conftest
6742
6743 # If we have a pathname, and the date fields look right, assume we've
6744 # captured the group as well.
6745 if test -n "$cf_rest" ; then
6746 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
6747 if test -z "$cf_test" ; then
6748 cf_cv_utmp_group=$cf_grp;
6749 fi
6750 fi
6751 break
6752 fi
6753 done
6754 test -n "$cf_cv_utmp_group" && break
6755 done
6756
6757 fi
6758 echo "$as_me:6758: result: $cf_cv_utmp_group" >&5
6759 echo "${ECHO_T}$cf_cv_utmp_group" >&6
6760 else
6761 { { echo "$as_me:6761: error: cannot find utmp group" >&5
6762 echo "$as_me: error: cannot find utmp group" >&2;}
6763 { (exit 1); exit 1; }; }
6764 fi
6765
6766 else
6767 cf_cv_utmp_group=$use_utmp_setgid
6768 fi
6769 if test "$cf_cv_posix_saved_ids" != yes ; then
6770 { { echo "$as_me:6770: error: Your system does not support POSIX saved-ids" >&5
6771 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
6772 { (exit 1); exit 1; }; }
6773 fi
6774
6775 cat >>confdefs.h <<\EOF
6776 #define USE_UTMP_SETGID 1
6777 EOF
6778
6779 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
6780 fi
6781
6782 echo "$as_me:6782: checking if you want to link with utempter" >&5
6783 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
6784
6785 # Check whether --with-utempter or --without-utempter was given.
6786 if test "${with_utempter+set}" = set; then
6787 withval="$with_utempter"
6788 use_utempter=$withval
6789 else
6790 use_utempter=no
6791 fi;
6792 echo "$as_me:6792: result: $use_utempter" >&5
6793 echo "${ECHO_T}$use_utempter" >&6
6794
6795 if test "$use_utempter" = yes ; then
6796
6797 echo "$as_me:6797: checking if we can link with utempter library" >&5
6798 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
6799 if test "${cf_cv_have_utempter+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802
6803 cf_save_LIBS="$LIBS"
6804 LIBS="-lutempter $LIBS"
6805 cat >conftest.$ac_ext <<_ACEOF
6806 #line 6806 "configure"
6807 #include "confdefs.h"
6808
6809 #include <utempter.h>
6810
6811 int
6812 main ()
6813 {
6814
6815 addToUtmp("/dev/tty", 0, 1);
6816 removeFromUtmp();
6817
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (eval echo "$as_me:6823: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>&5
6825 ac_status=$?
6826 echo "$as_me:6826: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -s conftest$ac_exeext'
6829 { (eval echo "$as_me:6829: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:6832: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834
6835 cf_cv_have_utempter=yes
6836 else
6837 echo "$as_me: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839
6840 cf_cv_have_utempter=no
6841 fi
6842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6843 LIBS="$cf_save_LIBS"
6844
6845 fi
6846 echo "$as_me:6846: result: $cf_cv_have_utempter" >&5
6847 echo "${ECHO_T}$cf_cv_have_utempter" >&6
6848 if test "$cf_cv_have_utempter" = yes ; then
6849
6850 cat >>confdefs.h <<\EOF
6851 #define USE_UTEMPTER 1
6852 EOF
6853
6854 LIBS="-lutempter $LIBS"
6855 fi
6856
6857 test "$cf_cv_have_utempter" != yes && use_utempter=no
6858 else
6859 use_utempter=no
6860 fi
6861
6862 # Some configurations permit (or require) either setuid or setgid mode.
6863 # Let the user decide.
6864 if test "$use_utempter" = yes ; then
6865 if test "${enable_setuid+set}" != set ; then
6866 disable_setuid=yes
6867 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
6868
6869 echo "${as_me:-configure}:6869: testing No --disable-setuid option given, force to yes ..." 1>&5
6870
6871 fi
6872 fi
6873
6874 ### checks for external data
6875
6876 echo "$as_me:6876: checking if external errno is declared" >&5
6877 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
6878 if test "${cf_cv_dcl_errno+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881
6882 cat >conftest.$ac_ext <<_ACEOF
6883 #line 6883 "configure"
6884 #include "confdefs.h"
6885
6886 #ifdef HAVE_STDLIB_H
6887 #include <stdlib.h>
6888 #endif
6889 #include <stdio.h>
6890 #include <sys/types.h>
6891 #include <errno.h>
6892 int
6893 main ()
6894 {
6895 int x = (int) errno
6896 ;
6897 return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:6901: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>&5
6903 ac_status=$?
6904 echo "$as_me:6904: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:6907: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:6910: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 cf_cv_dcl_errno=yes
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 cf_cv_dcl_errno=no
6917 fi
6918 rm -f conftest.$ac_objext conftest.$ac_ext
6919
6920 fi
6921 echo "$as_me:6921: result: $cf_cv_dcl_errno" >&5
6922 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
6923
6924 if test "$cf_cv_dcl_errno" = no ; then
6925
6926 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6927
6928 cat >>confdefs.h <<EOF
6929 #define $cf_result 1
6930 EOF
6931
6932 fi
6933
6934 # It's possible (for near-UNIX clones) that the data doesn't exist
6935
6936 echo "$as_me:6936: checking if external errno exists" >&5
6937 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
6938 if test "${cf_cv_have_errno+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941
6942 cat >conftest.$ac_ext <<_ACEOF
6943 #line 6943 "configure"
6944 #include "confdefs.h"
6945
6946 #undef errno
6947 extern int errno;
6948
6949 int
6950 main ()
6951 {
6952 errno = 2
6953 ;
6954 return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:6958: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6960 ac_status=$?
6961 echo "$as_me:6961: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:6964: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 cf_cv_have_errno=yes
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 cf_cv_have_errno=no
6974 fi
6975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6976
6977 fi
6978 echo "$as_me:6978: result: $cf_cv_have_errno" >&5
6979 echo "${ECHO_T}$cf_cv_have_errno" >&6
6980
6981 if test "$cf_cv_have_errno" = yes ; then
6982
6983 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6984
6985 cat >>confdefs.h <<EOF
6986 #define $cf_result 1
6987 EOF
6988
6989 fi
6990
6991 echo "$as_me:6991: checking for explicit tty group name" >&5
6992 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
6993
6994 # Check whether --with-tty-group or --without-tty-group was given.
6995 if test "${with_tty_group+set}" = set; then
6996 withval="$with_tty_group"
6997 cf_tty_group=$withval
6998 else
6999 cf_tty_group=auto...
7000 fi;
7001 test -z "$cf_tty_group" && cf_tty_group=auto...
7002 test "$cf_tty_group" = yes && cf_tty_group=auto...
7003 echo "$as_me:7003: result: $cf_tty_group" >&5
7004 echo "${ECHO_T}$cf_tty_group" >&6
7005
7006 if test "$cf_tty_group" = "auto..." ; then
7007 echo "$as_me:7007: checking for tty group name" >&5
7008 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
7009 if test "${cf_cv_tty_group_name+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012
7013 # If we are configuring as root, it is hard to get a clue about the tty group.
7014 # But we'll guess based on how our connection is set up - assuming it is done
7015 # properly.
7016
7017 cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
7018 # )vi
7019 if test "$cf_uid" != 0 ; then
7020 cf_cv_tty_group_name=
7021 cf_tty_name=`tty`
7022 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
7023 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
7024 if test -c "$cf_tty_name"
7025 then
7026 cf_option="-l -L"
7027
7028 # Expect listing to have fields like this:
7029 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname
7030 ls $cf_option $cf_tty_name >conftest.out
7031 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
7032 if test -z "$cf_rest" ; then
7033 cf_option="$cf_option -g"
7034 ls $cf_option $cf_tty_name >conftest.out
7035 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
7036 fi
7037 rm -f conftest.out
7038 cf_cv_tty_group_name=$cf_grp
7039 fi
7040 fi
7041
7042 # If we cannot deduce the tty group, fall back on hardcoded cases
7043
7044 if test -z "$cf_cv_tty_group_name"
7045 then
7046 case $host_os in #(vi
7047 osf*) #(vi
7048 cf_cv_tty_group_name="terminal"
7049 ;;
7050 *)
7051 cf_cv_tty_group_name="unknown"
7052 if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
7053 cf_cv_tty_group_name="tty"
7054 fi
7055 ;;
7056 esac
7057 fi
7058
7059 fi
7060 echo "$as_me:7060: result: $cf_cv_tty_group_name" >&5
7061 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
7062 cf_tty_group="$cf_cv_tty_group_name"
7063 else
7064 # if configure option, always do this
7065
7066 cat >>confdefs.h <<\EOF
7067 #define USE_TTY_GROUP 1
7068 EOF
7069
7070 fi
7071
7072 cat >>confdefs.h <<EOF
7073 #define TTY_GROUP_NAME "$cf_tty_group"
7074 EOF
7075
7076 # This is only a double-check that the group-name we obtained above really
7077 # does apply to the device. We cannot perform this test if we are in batch
7078 # mode, or if we are cross-compiling.
7079
7080 echo "$as_me:7080: checking if we may use the $cf_tty_group group" >&5
7081 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
7082 if test "${cf_cv_tty_group+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085
7086 cf_tty_name=`tty`
7087 if test "$cf_tty_name" != "not a tty"
7088 then
7089 if test "$cross_compiling" = yes; then
7090 cf_cv_tty_group=unknown
7091 else
7092 cat >conftest.$ac_ext <<_ACEOF
7093 #line 7093 "configure"
7094 #include "confdefs.h"
7095
7096 #include <unistd.h>
7097 #include <sys/types.h>
7098 #include <sys/stat.h>
7099 #include <grp.h>
7100 int main()
7101 {
7102 struct stat sb;
7103 struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
7104 char *name = ttyname(0);
7105
7106 endgrent();
7107 if (ttygrp != 0
7108 && name != 0
7109 && stat(name, &sb) == 0
7110 && sb.st_gid != getgid()
7111 && sb.st_gid == ttygrp->gr_gid) {
7112 ${cf_cv_main_return:-return} (0);
7113 }
7114 ${cf_cv_main_return:-return} (1);
7115 }
7116
7117 _ACEOF
7118 rm -f conftest$ac_exeext
7119 if { (eval echo "$as_me:7119: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>&5
7121 ac_status=$?
7122 echo "$as_me:7122: \$? = $ac_status" >&5
7123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7124 { (eval echo "$as_me:7124: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:7127: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 cf_cv_tty_group=yes
7130 else
7131 echo "$as_me: program exited with status $ac_status" >&5
7132 echo "$as_me: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 cf_cv_tty_group=no
7135 fi
7136 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 elif test "$cross_compiling" = yes; then
7139 cf_cv_tty_group=unknown
7140 else
7141 cf_cv_tty_group=yes
7142 fi
7143
7144 fi
7145 echo "$as_me:7145: result: $cf_cv_tty_group" >&5
7146 echo "${ECHO_T}$cf_cv_tty_group" >&6
7147
7148 if test $cf_cv_tty_group = no ; then
7149 { echo "$as_me:7149: WARNING: Cannot use $cf_tty_group group" >&5
7150 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
7151 else
7152 cat >>confdefs.h <<\EOF
7153 #define USE_TTY_GROUP 1
7154 EOF
7155
7156 fi
7157
7158 ### checks for system services and user specified options
7159
7160 echo "$as_me:7160: checking for sys/wait.h that is POSIX.1 compatible" >&5
7161 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7162 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 #line 7166 "configure"
7167 #include "confdefs.h"
7168 #include <sys/types.h>
7169 #include <sys/wait.h>
7170 #ifndef WEXITSTATUS
7171 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7172 #endif
7173 #ifndef WIFEXITED
7174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7175 #endif
7176
7177 int
7178 main ()
7179 {
7180 int s;
7181 wait (&s);
7182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7183 ;
7184 return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (eval echo "$as_me:7188: \"$ac_compile\"") >&5
7189 (eval $ac_compile) 2>&5
7190 ac_status=$?
7191 echo "$as_me:7191: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:7194: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:7197: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 ac_cv_header_sys_wait_h=yes
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 ac_cv_header_sys_wait_h=no
7204 fi
7205 rm -f conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 echo "$as_me:7207: result: $ac_cv_header_sys_wait_h" >&5
7208 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7209 if test $ac_cv_header_sys_wait_h = yes; then
7210
7211 cat >>confdefs.h <<\EOF
7212 #define HAVE_SYS_WAIT_H 1
7213 EOF
7214
7215 fi
7216
7217 echo "$as_me:7217: checking for POSIX wait functions" >&5
7218 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
7219 if test "${cf_cv_posix_wait+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222
7223 cat >conftest.$ac_ext <<_ACEOF
7224 #line 7224 "configure"
7225 #include "confdefs.h"
7226
7227 #include <stdlib.h>
7228 #include <stdio.h>
7229 #include <sys/types.h>
7230 #ifdef HAVE_SYS_WAIT_H
7231 #include <sys/wait.h>
7232 #endif
7233
7234 int
7235 main ()
7236 {
7237
7238 int stat_loc;
7239 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
7240 pid_t pid2 = wait(&stat_loc);
7241
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (eval echo "$as_me:7247: \"$ac_link\"") >&5
7248 (eval $ac_link) 2>&5
7249 ac_status=$?
7250 echo "$as_me:7250: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:7253: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:7256: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 cf_cv_posix_wait=yes
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7262 cf_cv_posix_wait=no
7263 fi
7264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7265
7266 fi
7267 echo "$as_me:7267: result: $cf_cv_posix_wait" >&5
7268 echo "${ECHO_T}$cf_cv_posix_wait" >&6
7269 test "$cf_cv_posix_wait" = yes &&
7270 cat >>confdefs.h <<\EOF
7271 #define USE_POSIX_WAIT 1
7272 EOF
7273
7274 echo "$as_me:7274: checking if external sys_nerr is declared" >&5
7275 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
7276 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279
7280 cat >conftest.$ac_ext <<_ACEOF
7281 #line 7281 "configure"
7282 #include "confdefs.h"
7283
7284 #ifdef HAVE_STDLIB_H
7285 #include <stdlib.h>
7286 #endif
7287 #include <stdio.h>
7288 #include <sys/types.h>
7289 #include <errno.h>
7290 int
7291 main ()
7292 {
7293 int x = (int) sys_nerr
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:7299: \"$ac_compile\"") >&5
7300 (eval $ac_compile) 2>&5
7301 ac_status=$?
7302 echo "$as_me:7302: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -s conftest.$ac_objext'
7305 { (eval echo "$as_me:7305: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:7308: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 cf_cv_dcl_sys_nerr=yes
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7314 cf_cv_dcl_sys_nerr=no
7315 fi
7316 rm -f conftest.$ac_objext conftest.$ac_ext
7317
7318 fi
7319 echo "$as_me:7319: result: $cf_cv_dcl_sys_nerr" >&5
7320 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
7321
7322 if test "$cf_cv_dcl_sys_nerr" = no ; then
7323
7324 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7325
7326 cat >>confdefs.h <<EOF
7327 #define $cf_result 1
7328 EOF
7329
7330 fi
7331
7332 # It's possible (for near-UNIX clones) that the data doesn't exist
7333
7334 echo "$as_me:7334: checking if external sys_nerr exists" >&5
7335 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
7336 if test "${cf_cv_have_sys_nerr+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line 7341 "configure"
7342 #include "confdefs.h"
7343
7344 #undef sys_nerr
7345 extern int sys_nerr;
7346
7347 int
7348 main ()
7349 {
7350 sys_nerr = 2
7351 ;
7352 return 0;
7353 }
7354 _ACEOF
7355 rm -f conftest.$ac_objext conftest$ac_exeext
7356 if { (eval echo "$as_me:7356: \"$ac_link\"") >&5
7357 (eval $ac_link) 2>&5
7358 ac_status=$?
7359 echo "$as_me:7359: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try='test -s conftest$ac_exeext'
7362 { (eval echo "$as_me:7362: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:7365: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 cf_cv_have_sys_nerr=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7371 cf_cv_have_sys_nerr=no
7372 fi
7373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7374
7375 fi
7376 echo "$as_me:7376: result: $cf_cv_have_sys_nerr" >&5
7377 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
7378
7379 if test "$cf_cv_have_sys_nerr" = yes ; then
7380
7381 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7382
7383 cat >>confdefs.h <<EOF
7384 #define $cf_result 1
7385 EOF
7386
7387 fi
7388
7389 echo "$as_me:7389: checking if external sys_errlist is declared" >&5
7390 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
7391 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394
7395 cat >conftest.$ac_ext <<_ACEOF
7396 #line 7396 "configure"
7397 #include "confdefs.h"
7398
7399 #ifdef HAVE_STDLIB_H
7400 #include <stdlib.h>
7401 #endif
7402 #include <stdio.h>
7403 #include <sys/types.h>
7404 #include <errno.h>
7405 int
7406 main ()
7407 {
7408 int x = (int) sys_errlist
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:7414: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>&5
7416 ac_status=$?
7417 echo "$as_me:7417: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:7420: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 cf_cv_dcl_sys_errlist=yes
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7429 cf_cv_dcl_sys_errlist=no
7430 fi
7431 rm -f conftest.$ac_objext conftest.$ac_ext
7432
7433 fi
7434 echo "$as_me:7434: result: $cf_cv_dcl_sys_errlist" >&5
7435 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
7436
7437 if test "$cf_cv_dcl_sys_errlist" = no ; then
7438
7439 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7440
7441 cat >>confdefs.h <<EOF
7442 #define $cf_result 1
7443 EOF
7444
7445 fi
7446
7447 # It's possible (for near-UNIX clones) that the data doesn't exist
7448
7449 echo "$as_me:7449: checking if external sys_errlist exists" >&5
7450 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
7451 if test "${cf_cv_have_sys_errlist+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454
7455 cat >conftest.$ac_ext <<_ACEOF
7456 #line 7456 "configure"
7457 #include "confdefs.h"
7458
7459 #undef sys_errlist
7460 extern int sys_errlist;
7461
7462 int
7463 main ()
7464 {
7465 sys_errlist = 2
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (eval echo "$as_me:7471: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:7474: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -s conftest$ac_exeext'
7477 { (eval echo "$as_me:7477: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:7480: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 cf_cv_have_sys_errlist=yes
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 cf_cv_have_sys_errlist=no
7487 fi
7488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7489
7490 fi
7491 echo "$as_me:7491: result: $cf_cv_have_sys_errlist" >&5
7492 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
7493
7494 if test "$cf_cv_have_sys_errlist" = yes ; then
7495
7496 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7497
7498 cat >>confdefs.h <<EOF
7499 #define $cf_result 1
7500 EOF
7501
7502 fi
7503
7504 for ac_header in \
7505 termios.h \
7506 stdlib.h \
7507 X11/Intrinsic.h \
7508
7509 do
7510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7511 echo "$as_me:7511: checking for $ac_header" >&5
7512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 cat >conftest.$ac_ext <<_ACEOF
7517 #line 7517 "configure"
7518 #include "confdefs.h"
7519 #include <$ac_header>
7520 _ACEOF
7521 if { (eval echo "$as_me:7521: \"$ac_cpp conftest.$ac_ext\"") >&5
7522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7523 ac_status=$?
7524 egrep -v '^ *\+' conftest.er1 >conftest.err
7525 rm -f conftest.er1
7526 cat conftest.err >&5
7527 echo "$as_me:7527: \$? = $ac_status" >&5
7528 (exit $ac_status); } >/dev/null; then
7529 if test -s conftest.err; then
7530 ac_cpp_err=$ac_c_preproc_warn_flag
7531 else
7532 ac_cpp_err=
7533 fi
7534 else
7535 ac_cpp_err=yes
7536 fi
7537 if test -z "$ac_cpp_err"; then
7538 eval "$as_ac_Header=yes"
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7542 eval "$as_ac_Header=no"
7543 fi
7544 rm -f conftest.err conftest.$ac_ext
7545 fi
7546 echo "$as_me:7546: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7549 cat >>confdefs.h <<EOF
7550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 EOF
7552
7553 fi
7554 done
7555
7556 echo "$as_me:7556: checking if we should define SYSV" >&5
7557 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
7558 if test "${cf_cv_sysv+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561
7562 cat >conftest.$ac_ext <<_ACEOF
7563 #line 7563 "configure"
7564 #include "confdefs.h"
7565
7566 #undef SYSV
7567 #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
7568 #ifdef HAVE_STDLIB_H
7569 #include <stdlib.h> /* look for wchar_t */
7570 #endif
7571 #ifdef HAVE_X11_INTRINSIC_H
7572 #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
7573 #endif
7574 #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */
7575 #include <termios.h>
7576 #define STRUCT_TERMIOS struct termios
7577 #else
7578 #define STRUCT_TERMIOS struct termio
7579 #endif
7580 #include <curses.h>
7581 #include <term.h> /* eliminate most BSD hacks */
7582 #include <errno.h> /* declare sys_errlist on older systems */
7583 #include <sys/termio.h> /* eliminate most of the remaining ones */
7584
7585 int
7586 main ()
7587 {
7588
7589 static STRUCT_TERMIOS d_tio;
7590 d_tio.c_cc[VINTR] = 0;
7591 d_tio.c_cc[VQUIT] = 0;
7592 d_tio.c_cc[VERASE] = 0;
7593 d_tio.c_cc[VKILL] = 0;
7594 d_tio.c_cc[VEOF] = 0;
7595 d_tio.c_cc[VEOL] = 0;
7596 d_tio.c_cc[VMIN] = 0;
7597 d_tio.c_cc[VTIME] = 0;
7598 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
7599 sys_errlist[0] = ""; /* Cygwin mis-declares this */
7600 #endif
7601
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:7607: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>&5
7609 ac_status=$?
7610 echo "$as_me:7610: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:7613: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 cf_cv_sysv=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 cf_cv_sysv=no
7623 fi
7624 rm -f conftest.$ac_objext conftest.$ac_ext
7625
7626 fi
7627 echo "$as_me:7627: result: $cf_cv_sysv" >&5
7628 echo "${ECHO_T}$cf_cv_sysv" >&6
7629 test "$cf_cv_sysv" = yes &&
7630 cat >>confdefs.h <<\EOF
7631 #define SYSV 1
7632 EOF
7633
7634 echo "$as_me:7634: checking for elf_begin in -lelf" >&5
7635 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7636 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 ac_check_lib_save_LIBS=$LIBS
7640 LIBS="-lelf $LIBS"
7641 cat >conftest.$ac_ext <<_ACEOF
7642 #line 7642 "configure"
7643 #include "confdefs.h"
7644
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char elf_begin ();
7652 int
7653 main ()
7654 {
7655 elf_begin ();
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:7661: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>&5
7663 ac_status=$?
7664 echo "$as_me:7664: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:7667: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:7670: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_cv_lib_elf_elf_begin=yes
7673 else
7674 echo "$as_me: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 ac_cv_lib_elf_elf_begin=no
7677 fi
7678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 LIBS=$ac_check_lib_save_LIBS
7680 fi
7681 echo "$as_me:7681: result: $ac_cv_lib_elf_elf_begin" >&5
7682 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7683 if test $ac_cv_lib_elf_elf_begin = yes; then
7684
7685 echo "$as_me:7685: checking if this is an SVR4 system" >&5
7686 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
7687 if test "${cf_cv_svr4+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690
7691 cat >conftest.$ac_ext <<_ACEOF
7692 #line 7692 "configure"
7693 #include "confdefs.h"
7694
7695 #if defined(__CYGWIN__)
7696 make an error
7697 #endif
7698 #include <elf.h>
7699 #include <sys/termio.h>
7700
7701 int
7702 main ()
7703 {
7704
7705 static struct termio d_tio;
7706 d_tio.c_cc[VINTR] = 0;
7707 d_tio.c_cc[VQUIT] = 0;
7708 d_tio.c_cc[VERASE] = 0;
7709 d_tio.c_cc[VKILL] = 0;
7710 d_tio.c_cc[VEOF] = 0;
7711 d_tio.c_cc[VEOL] = 0;
7712 d_tio.c_cc[VMIN] = 0;
7713 d_tio.c_cc[VTIME] = 0;
7714 d_tio.c_cc[VLNEXT] = 0;
7715
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext
7721 if { (eval echo "$as_me:7721: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>&5
7723 ac_status=$?
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -s conftest.$ac_objext'
7727 { (eval echo "$as_me:7727: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:7730: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 cf_cv_svr4=yes
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 cat conftest.$ac_ext >&5
7736 cf_cv_svr4=no
7737 fi
7738 rm -f conftest.$ac_objext conftest.$ac_ext
7739
7740 fi
7741 echo "$as_me:7741: result: $cf_cv_svr4" >&5
7742 echo "${ECHO_T}$cf_cv_svr4" >&6
7743
7744 fi
7745
7746 test "$cf_cv_svr4" = yes &&
7747 cat >>confdefs.h <<\EOF
7748 #define SVR4 1
7749 EOF
7750
7751 echo "$as_me:7751: checking for X" >&5
7752 echo $ECHO_N "checking for X... $ECHO_C" >&6
7753
7754 # Check whether --with-x or --without-x was given.
7755 if test "${with_x+set}" = set; then
7756 withval="$with_x"
7757
7758 fi;
7759 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7760 if test "x$with_x" = xno; then
7761 # The user explicitly disabled X.
7762 have_x=disabled
7763 else
7764 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7765 # Both variables are already set.
7766 have_x=yes
7767 else
7768 if test "${ac_cv_have_x+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771 # One or both of the vars are not set, and there is no cached value.
7772 ac_x_includes=no ac_x_libraries=no
7773 rm -fr conftest.dir
7774 if mkdir conftest.dir; then
7775 cd conftest.dir
7776 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7777 cat >Imakefile <<'EOF'
7778 acfindx:
7779 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7780 EOF
7781 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7783 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7784 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7785 for ac_extension in a so sl dylib dll; do
7786 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7787 test -f $ac_im_libdir/libX11.$ac_extension; then
7788 ac_im_usrlibdir=$ac_im_libdir; break
7789 fi
7790 done
7791 # Screen out bogus values from the imake configuration. They are
7792 # bogus both because they are the default anyway, and because
7793 # using them would break gcc on systems where it needs fixed includes.
7794 case $ac_im_incroot in
7795 /usr/include) ;;
7796 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7797 esac
7798 case $ac_im_usrlibdir in
7799 /usr/lib | /lib) ;;
7800 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7801 esac
7802 fi
7803 cd ..
7804 rm -fr conftest.dir
7805 fi
7806
7807 # Standard set of common directories for X headers.
7808 # Check X11 before X11Rn because it is often a symlink to the current release.
7809 ac_x_header_dirs='
7810 /usr/X11/include
7811 /usr/X11R6/include
7812 /usr/X11R5/include
7813 /usr/X11R4/include
7814
7815 /usr/include/X11
7816 /usr/include/X11R6
7817 /usr/include/X11R5
7818 /usr/include/X11R4
7819
7820 /usr/local/X11/include
7821 /usr/local/X11R6/include
7822 /usr/local/X11R5/include
7823 /usr/local/X11R4/include
7824
7825 /usr/local/include/X11
7826 /usr/local/include/X11R6
7827 /usr/local/include/X11R5
7828 /usr/local/include/X11R4
7829
7830 /usr/X386/include
7831 /usr/x386/include
7832 /usr/XFree86/include/X11
7833
7834 /usr/include
7835 /usr/local/include
7836 /usr/unsupported/include
7837 /usr/athena/include
7838 /usr/local/x11r5/include
7839 /usr/lpp/Xamples/include
7840
7841 /usr/openwin/include
7842 /usr/openwin/share/include'
7843
7844 if test "$ac_x_includes" = no; then
7845 # Guess where to find include files, by looking for Intrinsic.h.
7846 # First, try using that file with no special directory specified.
7847 cat >conftest.$ac_ext <<_ACEOF
7848 #line 7848 "configure"
7849 #include "confdefs.h"
7850 #include <X11/Intrinsic.h>
7851 _ACEOF
7852 if { (eval echo "$as_me:7852: \"$ac_cpp conftest.$ac_ext\"") >&5
7853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7854 ac_status=$?
7855 egrep -v '^ *\+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:7858: \$? = $ac_status" >&5
7859 (exit $ac_status); } >/dev/null; then
7860 if test -s conftest.err; then
7861 ac_cpp_err=$ac_c_preproc_warn_flag
7862 else
7863 ac_cpp_err=
7864 fi
7865 else
7866 ac_cpp_err=yes
7867 fi
7868 if test -z "$ac_cpp_err"; then
7869 # We can compile using X headers with no special include directory.
7870 ac_x_includes=
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7874 for ac_dir in $ac_x_header_dirs; do
7875 if test -r "$ac_dir/X11/Intrinsic.h"; then
7876 ac_x_includes=$ac_dir
7877 break
7878 fi
7879 done
7880 fi
7881 rm -f conftest.err conftest.$ac_ext
7882 fi # $ac_x_includes = no
7883
7884 if test "$ac_x_libraries" = no; then
7885 # Check for the libraries.
7886 # See if we find them without any special options.
7887 # Don't add to $LIBS permanently.
7888 ac_save_LIBS=$LIBS
7889 LIBS="-lXt $LIBS"
7890 cat >conftest.$ac_ext <<_ACEOF
7891 #line 7891 "configure"
7892 #include "confdefs.h"
7893 #include <X11/Intrinsic.h>
7894 int
7895 main ()
7896 {
7897 XtMalloc (0)
7898 ;
7899 return 0;
7900 }
7901 _ACEOF
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (eval echo "$as_me:7903: \"$ac_link\"") >&5
7904 (eval $ac_link) 2>&5
7905 ac_status=$?
7906 echo "$as_me:7906: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:7909: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:7912: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 LIBS=$ac_save_LIBS
7915 # We can link X programs with no special library path.
7916 ac_x_libraries=
7917 else
7918 echo "$as_me: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 LIBS=$ac_save_LIBS
7921 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7922 do
7923 # Don't even attempt the hair of trying to link an X program!
7924 for ac_extension in a so sl dylib dll; do
7925 if test -r $ac_dir/libXt.$ac_extension; then
7926 ac_x_libraries=$ac_dir
7927 break 2
7928 fi
7929 done
7930 done
7931 fi
7932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7933 fi # $ac_x_libraries = no
7934
7935 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7936 # Didn't find X anywhere. Cache the known absence of X.
7937 ac_cv_have_x="have_x=no"
7938 else
7939 # Record where we found X for the cache.
7940 ac_cv_have_x="have_x=yes \
7941 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7942 fi
7943 fi
7944
7945 fi
7946 eval "$ac_cv_have_x"
7947 fi # $with_x != no
7948
7949 if test "$have_x" != yes; then
7950 echo "$as_me:7950: result: $have_x" >&5
7951 echo "${ECHO_T}$have_x" >&6
7952 no_x=yes
7953 else
7954 # If each of the values was on the command line, it overrides each guess.
7955 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7956 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7957 # Update the cache value to reflect the command line values.
7958 ac_cv_have_x="have_x=yes \
7959 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7960 echo "$as_me:7960: result: libraries $x_libraries, headers $x_includes" >&5
7961 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7962 fi
7963
7964 if test "$no_x" = yes; then
7965 # Not all programs may use this symbol, but it does not hurt to define it.
7966
7967 cat >>confdefs.h <<\EOF
7968 #define X_DISPLAY_MISSING 1
7969 EOF
7970
7971 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7972 else
7973 if test -n "$x_includes"; then
7974 X_CFLAGS="$X_CFLAGS -I$x_includes"
7975 fi
7976
7977 # It would also be nice to do this for all -L options, not just this one.
7978 if test -n "$x_libraries"; then
7979 X_LIBS="$X_LIBS -L$x_libraries"
7980 # For Solaris; some versions of Sun CC require a space after -R and
7981 # others require no space. Words are not sufficient . . . .
7982 case `(uname -sr) 2>/dev/null` in
7983 "SunOS 5"*)
7984 echo "$as_me:7984: checking whether -R must be followed by a space" >&5
7985 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7986 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7987 cat >conftest.$ac_ext <<_ACEOF
7988 #line 7988 "configure"
7989 #include "confdefs.h"
7990
7991 int
7992 main ()
7993 {
7994
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:8000: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>&5
8002 ac_status=$?
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 ac_R_nospace=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8015 ac_R_nospace=no
8016 fi
8017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8018 if test $ac_R_nospace = yes; then
8019 echo "$as_me:8019: result: no" >&5
8020 echo "${ECHO_T}no" >&6
8021 X_LIBS="$X_LIBS -R$x_libraries"
8022 else
8023 LIBS="$ac_xsave_LIBS -R $x_libraries"
8024 cat >conftest.$ac_ext <<_ACEOF
8025 #line 8025 "configure"
8026 #include "confdefs.h"
8027
8028 int
8029 main ()
8030 {
8031
8032 ;
8033 return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:8037: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>&5
8039 ac_status=$?
8040 echo "$as_me:8040: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:8043: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:8046: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_R_space=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 ac_R_space=no
8053 fi
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 if test $ac_R_space = yes; then
8056 echo "$as_me:8056: result: yes" >&5
8057 echo "${ECHO_T}yes" >&6
8058 X_LIBS="$X_LIBS -R $x_libraries"
8059 else
8060 echo "$as_me:8060: result: neither works" >&5
8061 echo "${ECHO_T}neither works" >&6
8062 fi
8063 fi
8064 LIBS=$ac_xsave_LIBS
8065 esac
8066 fi
8067
8068 # Check for system-dependent libraries X programs must link with.
8069 # Do this before checking for the system-independent R6 libraries
8070 # (-lICE), since we may need -lsocket or whatever for X linking.
8071
8072 if test "$ISC" = yes; then
8073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8074 else
8075 # Martyn Johnson says this is needed for Ultrix, if the X
8076 # libraries were built with DECnet support. And Karl Berry says
8077 # the Alpha needs dnet_stub (dnet does not exist).
8078 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8079 cat >conftest.$ac_ext <<_ACEOF
8080 #line 8080 "configure"
8081 #include "confdefs.h"
8082
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8089 char XOpenDisplay ();
8090 int
8091 main ()
8092 {
8093 XOpenDisplay ();
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:8099: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8101 ac_status=$?
8102 echo "$as_me:8102: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:8105: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:8108: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 :
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8114 echo "$as_me:8114: checking for dnet_ntoa in -ldnet" >&5
8115 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8116 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 ac_check_lib_save_LIBS=$LIBS
8120 LIBS="-ldnet $LIBS"
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line 8122 "configure"
8123 #include "confdefs.h"
8124
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 #ifdef __cplusplus
8127 extern "C"
8128 #endif
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131 char dnet_ntoa ();
8132 int
8133 main ()
8134 {
8135 dnet_ntoa ();
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (eval echo "$as_me:8141: \"$ac_link\"") >&5
8142 (eval $ac_link) 2>&5
8143 ac_status=$?
8144 echo "$as_me:8144: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -s conftest$ac_exeext'
8147 { (eval echo "$as_me:8147: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:8150: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_lib_dnet_dnet_ntoa=yes
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 ac_cv_lib_dnet_dnet_ntoa=no
8157 fi
8158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8159 LIBS=$ac_check_lib_save_LIBS
8160 fi
8161 echo "$as_me:8161: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8162 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8163 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8164 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8165 fi
8166
8167 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8168 echo "$as_me:8168: checking for dnet_ntoa in -ldnet_stub" >&5
8169 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8170 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173 ac_check_lib_save_LIBS=$LIBS
8174 LIBS="-ldnet_stub $LIBS"
8175 cat >conftest.$ac_ext <<_ACEOF
8176 #line 8176 "configure"
8177 #include "confdefs.h"
8178
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 #ifdef __cplusplus
8181 extern "C"
8182 #endif
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8185 char dnet_ntoa ();
8186 int
8187 main ()
8188 {
8189 dnet_ntoa ();
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:8195: \"$ac_link\"") >&5
8196 (eval $ac_link) 2>&5
8197 ac_status=$?
8198 echo "$as_me:8198: \$? = $ac_status" >&5
8199 (exit $ac_status); } &&
8200 { ac_try='test -s conftest$ac_exeext'
8201 { (eval echo "$as_me:8201: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:8204: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8210 ac_cv_lib_dnet_stub_dnet_ntoa=no
8211 fi
8212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8213 LIBS=$ac_check_lib_save_LIBS
8214 fi
8215 echo "$as_me:8215: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8216 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8217 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8218 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8219 fi
8220
8221 fi
8222 fi
8223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8224 LIBS="$ac_xsave_LIBS"
8225
8226 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8227 # to get the SysV transport functions.
8228 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8229 # needs -lnsl.
8230 # The nsl library prevents programs from opening the X display
8231 # on Irix 5.2, according to T.E. Dickey.
8232 # The functions gethostbyname, getservbyname, and inet_addr are
8233 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8234 echo "$as_me:8234: checking for gethostbyname" >&5
8235 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8236 if test "${ac_cv_func_gethostbyname+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 cat >conftest.$ac_ext <<_ACEOF
8240 #line 8240 "configure"
8241 #include "confdefs.h"
8242 /* System header to define __stub macros and hopefully few prototypes,
8243 which can conflict with char gethostbyname (); below. */
8244 #include <assert.h>
8245 /* Override any gcc2 internal prototype to avoid an error. */
8246 #ifdef __cplusplus
8247 extern "C"
8248 #endif
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8251 char gethostbyname ();
8252 char (*f) ();
8253
8254 int
8255 main ()
8256 {
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8261 choke me
8262 #else
8263 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8264 #endif
8265
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271 if { (eval echo "$as_me:8271: \"$ac_link\"") >&5
8272 (eval $ac_link) 2>&5
8273 ac_status=$?
8274 echo "$as_me:8274: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (eval echo "$as_me:8277: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_func_gethostbyname=yes
8283 else
8284 echo "$as_me: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8286 ac_cv_func_gethostbyname=no
8287 fi
8288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8289 fi
8290 echo "$as_me:8290: result: $ac_cv_func_gethostbyname" >&5
8291 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8292
8293 if test $ac_cv_func_gethostbyname = no; then
8294 echo "$as_me:8294: checking for gethostbyname in -lnsl" >&5
8295 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8296 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 ac_check_lib_save_LIBS=$LIBS
8300 LIBS="-lnsl $LIBS"
8301 cat >conftest.$ac_ext <<_ACEOF
8302 #line 8302 "configure"
8303 #include "confdefs.h"
8304
8305 /* Override any gcc2 internal prototype to avoid an error. */
8306 #ifdef __cplusplus
8307 extern "C"
8308 #endif
8309 /* We use char because int might match the return type of a gcc2
8310 builtin and then its argument prototype would still apply. */
8311 char gethostbyname ();
8312 int
8313 main ()
8314 {
8315 gethostbyname ();
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext conftest$ac_exeext
8321 if { (eval echo "$as_me:8321: \"$ac_link\"") >&5
8322 (eval $ac_link) 2>&5
8323 ac_status=$?
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -s conftest$ac_exeext'
8327 { (eval echo "$as_me:8327: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:8330: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_lib_nsl_gethostbyname=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 ac_cv_lib_nsl_gethostbyname=no
8337 fi
8338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8340 fi
8341 echo "$as_me:8341: result: $ac_cv_lib_nsl_gethostbyname" >&5
8342 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8343 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8345 fi
8346
8347 if test $ac_cv_lib_nsl_gethostbyname = no; then
8348 echo "$as_me:8348: checking for gethostbyname in -lbsd" >&5
8349 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8350 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 ac_check_lib_save_LIBS=$LIBS
8354 LIBS="-lbsd $LIBS"
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line 8356 "configure"
8357 #include "confdefs.h"
8358
8359 /* Override any gcc2 internal prototype to avoid an error. */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 /* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8365 char gethostbyname ();
8366 int
8367 main ()
8368 {
8369 gethostbyname ();
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:8375: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>&5
8377 ac_status=$?
8378 echo "$as_me:8378: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -s conftest$ac_exeext'
8381 { (eval echo "$as_me:8381: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:8384: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_lib_bsd_gethostbyname=yes
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 ac_cv_lib_bsd_gethostbyname=no
8391 fi
8392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8393 LIBS=$ac_check_lib_save_LIBS
8394 fi
8395 echo "$as_me:8395: result: $ac_cv_lib_bsd_gethostbyname" >&5
8396 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8397 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8399 fi
8400
8401 fi
8402 fi
8403
8404 # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
8405 # socket/setsockopt and other routines are undefined under SCO ODT
8406 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8407 # on later versions), says Simon Leinen: it contains gethostby*
8408 # variants that don't use the nameserver (or something). -lsocket
8409 # must be given before -lnsl if both are needed. We assume that
8410 # if connect needs -lnsl, so does gethostbyname.
8411 echo "$as_me:8411: checking for connect" >&5
8412 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8413 if test "${ac_cv_func_connect+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416 cat >conftest.$ac_ext <<_ACEOF
8417 #line 8417 "configure"
8418 #include "confdefs.h"
8419 /* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char connect (); below. */
8421 #include <assert.h>
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char connect ();
8429 char (*f) ();
8430
8431 int
8432 main ()
8433 {
8434 /* The GNU C library defines this for functions which it implements
8435 to always fail with ENOSYS. Some functions are actually named
8436 something starting with __ and the normal name is an alias. */
8437 #if defined (__stub_connect) || defined (__stub___connect)
8438 choke me
8439 #else
8440 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8441 #endif
8442
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:8448: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>&5
8450 ac_status=$?
8451 echo "$as_me:8451: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:8454: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:8457: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_func_connect=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8463 ac_cv_func_connect=no
8464 fi
8465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8466 fi
8467 echo "$as_me:8467: result: $ac_cv_func_connect" >&5
8468 echo "${ECHO_T}$ac_cv_func_connect" >&6
8469
8470 if test $ac_cv_func_connect = no; then
8471 echo "$as_me:8471: checking for connect in -lsocket" >&5
8472 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8473 if test "${ac_cv_lib_socket_connect+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476 ac_check_lib_save_LIBS=$LIBS
8477 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8478 cat >conftest.$ac_ext <<_ACEOF
8479 #line 8479 "configure"
8480 #include "confdefs.h"
8481
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8488 char connect ();
8489 int
8490 main ()
8491 {
8492 connect ();
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:8498: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>&5
8500 ac_status=$?
8501 echo "$as_me:8501: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:8504: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:8507: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_lib_socket_connect=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8513 ac_cv_lib_socket_connect=no
8514 fi
8515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8516 LIBS=$ac_check_lib_save_LIBS
8517 fi
8518 echo "$as_me:8518: result: $ac_cv_lib_socket_connect" >&5
8519 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8520 if test $ac_cv_lib_socket_connect = yes; then
8521 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8522 fi
8523
8524 fi
8525
8526 # Guillermo Gomez says -lposix is necessary on A/UX.
8527 echo "$as_me:8527: checking for remove" >&5
8528 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8529 if test "${ac_cv_func_remove+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line 8533 "configure"
8534 #include "confdefs.h"
8535 /* System header to define __stub macros and hopefully few prototypes,
8536 which can conflict with char remove (); below. */
8537 #include <assert.h>
8538 /* Override any gcc2 internal prototype to avoid an error. */
8539 #ifdef __cplusplus
8540 extern "C"
8541 #endif
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8544 char remove ();
8545 char (*f) ();
8546
8547 int
8548 main ()
8549 {
8550 /* The GNU C library defines this for functions which it implements
8551 to always fail with ENOSYS. Some functions are actually named
8552 something starting with __ and the normal name is an alias. */
8553 #if defined (__stub_remove) || defined (__stub___remove)
8554 choke me
8555 #else
8556 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8557 #endif
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext conftest$ac_exeext
8564 if { (eval echo "$as_me:8564: \"$ac_link\"") >&5
8565 (eval $ac_link) 2>&5
8566 ac_status=$?
8567 echo "$as_me:8567: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:8570: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:8573: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_cv_func_remove=yes
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8579 ac_cv_func_remove=no
8580 fi
8581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8582 fi
8583 echo "$as_me:8583: result: $ac_cv_func_remove" >&5
8584 echo "${ECHO_T}$ac_cv_func_remove" >&6
8585
8586 if test $ac_cv_func_remove = no; then
8587 echo "$as_me:8587: checking for remove in -lposix" >&5
8588 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8589 if test "${ac_cv_lib_posix_remove+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 ac_check_lib_save_LIBS=$LIBS
8593 LIBS="-lposix $LIBS"
8594 cat >conftest.$ac_ext <<_ACEOF
8595 #line 8595 "configure"
8596 #include "confdefs.h"
8597
8598 /* Override any gcc2 internal prototype to avoid an error. */
8599 #ifdef __cplusplus
8600 extern "C"
8601 #endif
8602 /* We use char because int might match the return type of a gcc2
8603 builtin and then its argument prototype would still apply. */
8604 char remove ();
8605 int
8606 main ()
8607 {
8608 remove ();
8609 ;
8610 return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:8614: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8616 ac_status=$?
8617 echo "$as_me:8617: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:8620: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_lib_posix_remove=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8629 ac_cv_lib_posix_remove=no
8630 fi
8631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ac_check_lib_save_LIBS
8633 fi
8634 echo "$as_me:8634: result: $ac_cv_lib_posix_remove" >&5
8635 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8636 if test $ac_cv_lib_posix_remove = yes; then
8637 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8638 fi
8639
8640 fi
8641
8642 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8643 echo "$as_me:8643: checking for shmat" >&5
8644 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8645 if test "${ac_cv_func_shmat+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 #line 8649 "configure"
8650 #include "confdefs.h"
8651 /* System header to define __stub macros and hopefully few prototypes,
8652 which can conflict with char shmat (); below. */
8653 #include <assert.h>
8654 /* Override any gcc2 internal prototype to avoid an error. */
8655 #ifdef __cplusplus
8656 extern "C"
8657 #endif
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660 char shmat ();
8661 char (*f) ();
8662
8663 int
8664 main ()
8665 {
8666 /* The GNU C library defines this for functions which it implements
8667 to always fail with ENOSYS. Some functions are actually named
8668 something starting with __ and the normal name is an alias. */
8669 #if defined (__stub_shmat) || defined (__stub___shmat)
8670 choke me
8671 #else
8672 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8673 #endif
8674
8675 ;
8676 return 0;
8677 }
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:8680: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>&5
8682 ac_status=$?
8683 echo "$as_me:8683: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -s conftest$ac_exeext'
8686 { (eval echo "$as_me:8686: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:8689: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 ac_cv_func_shmat=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8695 ac_cv_func_shmat=no
8696 fi
8697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8698 fi
8699 echo "$as_me:8699: result: $ac_cv_func_shmat" >&5
8700 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8701
8702 if test $ac_cv_func_shmat = no; then
8703 echo "$as_me:8703: checking for shmat in -lipc" >&5
8704 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8705 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708 ac_check_lib_save_LIBS=$LIBS
8709 LIBS="-lipc $LIBS"
8710 cat >conftest.$ac_ext <<_ACEOF
8711 #line 8711 "configure"
8712 #include "confdefs.h"
8713
8714 /* Override any gcc2 internal prototype to avoid an error. */
8715 #ifdef __cplusplus
8716 extern "C"
8717 #endif
8718 /* We use char because int might match the return type of a gcc2
8719 builtin and then its argument prototype would still apply. */
8720 char shmat ();
8721 int
8722 main ()
8723 {
8724 shmat ();
8725 ;
8726 return 0;
8727 }
8728 _ACEOF
8729 rm -f conftest.$ac_objext conftest$ac_exeext
8730 if { (eval echo "$as_me:8730: \"$ac_link\"") >&5
8731 (eval $ac_link) 2>&5
8732 ac_status=$?
8733 echo "$as_me:8733: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -s conftest$ac_exeext'
8736 { (eval echo "$as_me:8736: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:8739: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_lib_ipc_shmat=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8745 ac_cv_lib_ipc_shmat=no
8746 fi
8747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8748 LIBS=$ac_check_lib_save_LIBS
8749 fi
8750 echo "$as_me:8750: result: $ac_cv_lib_ipc_shmat" >&5
8751 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8752 if test $ac_cv_lib_ipc_shmat = yes; then
8753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8754 fi
8755
8756 fi
8757 fi
8758
8759 # Check for libraries that X11R6 Xt/Xaw programs need.
8760 ac_save_LDFLAGS=$LDFLAGS
8761 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8762 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8763 # check for ICE first), but we must link in the order -lSM -lICE or
8764 # we get undefined symbols. So assume we have SM if we have ICE.
8765 # These have to be linked with before -lX11, unlike the other
8766 # libraries we check for below, so use a different variable.
8767 # John Interrante, Karl Berry
8768 echo "$as_me:8768: checking for IceConnectionNumber in -lICE" >&5
8769 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8770 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773 ac_check_lib_save_LIBS=$LIBS
8774 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8775 cat >conftest.$ac_ext <<_ACEOF
8776 #line 8776 "configure"
8777 #include "confdefs.h"
8778
8779 /* Override any gcc2 internal prototype to avoid an error. */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8785 char IceConnectionNumber ();
8786 int
8787 main ()
8788 {
8789 IceConnectionNumber ();
8790 ;
8791 return 0;
8792 }
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:8795: \"$ac_link\"") >&5
8796 (eval $ac_link) 2>&5
8797 ac_status=$?
8798 echo "$as_me:8798: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -s conftest$ac_exeext'
8801 { (eval echo "$as_me:8801: \"$ac_try\"") >&5
8802 (eval $ac_try) 2>&5
8803 ac_status=$?
8804 echo "$as_me:8804: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_lib_ICE_IceConnectionNumber=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8810 ac_cv_lib_ICE_IceConnectionNumber=no
8811 fi
8812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8813 LIBS=$ac_check_lib_save_LIBS
8814 fi
8815 echo "$as_me:8815: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8816 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8817 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8818 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8819 fi
8820
8821 LDFLAGS=$ac_save_LDFLAGS
8822
8823 fi
8824
8825 echo "$as_me:8825: checking if you want to use pkg-config" >&5
8826 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
8827
8828 # Check whether --with-pkg-config or --without-pkg-config was given.
8829 if test "${with_pkg_config+set}" = set; then
8830 withval="$with_pkg_config"
8831 cf_pkg_config=$withval
8832 else
8833 cf_pkg_config=yes
8834 fi;
8835 echo "$as_me:8835: result: $cf_pkg_config" >&5
8836 echo "${ECHO_T}$cf_pkg_config" >&6
8837
8838 case $cf_pkg_config in #(vi
8839 no) #(vi
8840 PKG_CONFIG=none
8841 ;;
8842 yes) #(vi
8843
8844 if test -n "$ac_tool_prefix"; then
8845 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8846 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8847 echo "$as_me:8847: checking for $ac_word" >&5
8848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 case $PKG_CONFIG in
8853 [\\/]* | ?:[\\/]*)
8854 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8855 ;;
8856 *)
8857 ac_save_IFS=$IFS; IFS=$ac_path_separator
8858 ac_dummy="$PATH"
8859 for ac_dir in $ac_dummy; do
8860 IFS=$ac_save_IFS
8861 test -z "$ac_dir" && ac_dir=.
8862 if $as_executable_p "$ac_dir/$ac_word"; then
8863 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8864 echo "$as_me:8864: found $ac_dir/$ac_word" >&5
8865 break
8866 fi
8867 done
8868
8869 ;;
8870 esac
8871 fi
8872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8873
8874 if test -n "$PKG_CONFIG"; then
8875 echo "$as_me:8875: result: $PKG_CONFIG" >&5
8876 echo "${ECHO_T}$PKG_CONFIG" >&6
8877 else
8878 echo "$as_me:8878: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8880 fi
8881
8882 fi
8883 if test -z "$ac_cv_path_PKG_CONFIG"; then
8884 ac_pt_PKG_CONFIG=$PKG_CONFIG
8885 # Extract the first word of "pkg-config", so it can be a program name with args.
8886 set dummy pkg-config; ac_word=$2
8887 echo "$as_me:8887: checking for $ac_word" >&5
8888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8889 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892 case $ac_pt_PKG_CONFIG in
8893 [\\/]* | ?:[\\/]*)
8894 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8895 ;;
8896 *)
8897 ac_save_IFS=$IFS; IFS=$ac_path_separator
8898 ac_dummy="$PATH"
8899 for ac_dir in $ac_dummy; do
8900 IFS=$ac_save_IFS
8901 test -z "$ac_dir" && ac_dir=.
8902 if $as_executable_p "$ac_dir/$ac_word"; then
8903 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
8904 echo "$as_me:8904: found $ac_dir/$ac_word" >&5
8905 break
8906 fi
8907 done
8908
8909 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
8910 ;;
8911 esac
8912 fi
8913 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8914
8915 if test -n "$ac_pt_PKG_CONFIG"; then
8916 echo "$as_me:8916: result: $ac_pt_PKG_CONFIG" >&5
8917 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8918 else
8919 echo "$as_me:8919: result: no" >&5
8920 echo "${ECHO_T}no" >&6
8921 fi
8922
8923 PKG_CONFIG=$ac_pt_PKG_CONFIG
8924 else
8925 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8926 fi
8927
8928 ;;
8929 *)
8930 PKG_CONFIG=$withval
8931 ;;
8932 esac
8933
8934 test -z "$PKG_CONFIG" && PKG_CONFIG=none
8935 if test "$PKG_CONFIG" != none ; then
8936
8937 if test "x$prefix" != xNONE; then
8938 cf_path_syntax="$prefix"
8939 else
8940 cf_path_syntax="$ac_default_prefix"
8941 fi
8942
8943 case ".$PKG_CONFIG" in #(vi
8944 .\$\(*\)*|.\'*\'*) #(vi
8945 ;;
8946 ..|./*|.\\*) #(vi
8947 ;;
8948 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
8949 ;;
8950 .\${*prefix}*|.\${*dir}*) #(vi
8951 eval PKG_CONFIG="$PKG_CONFIG"
8952 case ".$PKG_CONFIG" in #(vi
8953 .NONE/*)
8954 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
8955 ;;
8956 esac
8957 ;; #(vi
8958 .no|.NONE/*)
8959 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
8960 ;;
8961 *)
8962 { { echo "$as_me:8962: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
8963 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
8964 { (exit 1); exit 1; }; }
8965 ;;
8966 esac
8967
8968 fi
8969
8970 cf_have_X_LIBS=no
8971
8972 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
8973 test -n "$verbose" && echo " found package xt" 1>&6
8974
8975 echo "${as_me:-configure}:8975: testing found package xt ..." 1>&5
8976
8977 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
8978 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
8979 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
8980
8981 echo "${as_me:-configure}:8981: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8982
8983 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
8984
8985 echo "${as_me:-configure}:8985: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
8986
8987 cf_fix_cppflags=no
8988 cf_new_cflags=
8989 cf_new_cppflags=
8990 cf_new_extra_cppflags=
8991
8992 for cf_add_cflags in $cf_pkgconfig_incs
8993 do
8994 case $cf_fix_cppflags in
8995 no)
8996 case $cf_add_cflags in #(vi
8997 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8998 case $cf_add_cflags in
8999 -D*)
9000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9001
9002 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9003 && test -z "${cf_tst_cflags}" \
9004 && cf_fix_cppflags=yes
9005
9006 if test $cf_fix_cppflags = yes ; then
9007 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9008 continue
9009 elif test "${cf_tst_cflags}" = "\"'" ; then
9010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9011 continue
9012 fi
9013 ;;
9014 esac
9015 case "$CPPFLAGS" in
9016 *$cf_add_cflags) #(vi
9017 ;;
9018 *) #(vi
9019 case $cf_add_cflags in #(vi
9020 -D*)
9021 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9022
9023 CPPFLAGS=`echo "$CPPFLAGS" | \
9024 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9025 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9026
9027 ;;
9028 esac
9029 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9030 ;;
9031 esac
9032 ;;
9033 *)
9034 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9035 ;;
9036 esac
9037 ;;
9038 yes)
9039 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9040
9041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9042
9043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9044 && test -z "${cf_tst_cflags}" \
9045 && cf_fix_cppflags=no
9046 ;;
9047 esac
9048 done
9049
9050 if test -n "$cf_new_cflags" ; then
9051
9052 CFLAGS="$CFLAGS $cf_new_cflags"
9053 fi
9054
9055 if test -n "$cf_new_cppflags" ; then
9056
9057 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9058 fi
9059
9060 if test -n "$cf_new_extra_cppflags" ; then
9061
9062 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9063 fi
9064
9065 LIBS="$cf_pkgconfig_libs $LIBS"
9066
9067 case "x$LIBS" in #(vi
9068 *-lX11*) #(vi
9069 ;;
9070 *)
9071 # we have an "xt" package, but it may omit Xt's dependency on X11
9072 echo "$as_me:9072: checking for usable X dependency" >&5
9073 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
9074 if test "${cf_cv_xt_x11_compat+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 else
9077
9078 cat >conftest.$ac_ext <<_ACEOF
9079 #line 9079 "configure"
9080 #include "confdefs.h"
9081
9082 #include <X11/Xlib.h>
9083
9084 int
9085 main ()
9086 {
9087
9088 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
9089 int rc2 = XClearWindow((Display*) 0, (Window) 0);
9090 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
9091 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
9092
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:9098: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>&5
9100 ac_status=$?
9101 echo "$as_me:9101: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:9104: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:9107: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 cf_cv_xt_x11_compat=yes
9110 else
9111 echo "$as_me: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 cf_cv_xt_x11_compat=no
9114 fi
9115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9116 fi
9117 echo "$as_me:9117: result: $cf_cv_xt_x11_compat" >&5
9118 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
9119 if test "$cf_cv_xt_x11_compat" = no
9120 then
9121 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
9122
9123 echo "${as_me:-configure}:9123: testing work around broken X11 dependency ..." 1>&5
9124
9125 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
9126
9127 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
9128 test -n "$verbose" && echo " found package x11" 1>&6
9129
9130 echo "${as_me:-configure}:9130: testing found package x11 ..." 1>&5
9131
9132 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
9133 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
9134 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
9135
9136 echo "${as_me:-configure}:9136: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9137
9138 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
9139
9140 echo "${as_me:-configure}:9140: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
9141
9142 cf_fix_cppflags=no
9143 cf_new_cflags=
9144 cf_new_cppflags=
9145 cf_new_extra_cppflags=
9146
9147 for cf_add_cflags in $cf_pkgconfig_incs
9148 do
9149 case $cf_fix_cppflags in
9150 no)
9151 case $cf_add_cflags in #(vi
9152 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9153 case $cf_add_cflags in
9154 -D*)
9155 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9156
9157 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9158 && test -z "${cf_tst_cflags}" \
9159 && cf_fix_cppflags=yes
9160
9161 if test $cf_fix_cppflags = yes ; then
9162 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9163 continue
9164 elif test "${cf_tst_cflags}" = "\"'" ; then
9165 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9166 continue
9167 fi
9168 ;;
9169 esac
9170 case "$CPPFLAGS" in
9171 *$cf_add_cflags) #(vi
9172 ;;
9173 *) #(vi
9174 case $cf_add_cflags in #(vi
9175 -D*)
9176 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9177
9178 CPPFLAGS=`echo "$CPPFLAGS" | \
9179 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9180 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9181
9182 ;;
9183 esac
9184 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9185 ;;
9186 esac
9187 ;;
9188 *)
9189 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9190 ;;
9191 esac
9192 ;;
9193 yes)
9194 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9195
9196 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9197
9198 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9199 && test -z "${cf_tst_cflags}" \
9200 && cf_fix_cppflags=no
9201 ;;
9202 esac
9203 done
9204
9205 if test -n "$cf_new_cflags" ; then
9206
9207 CFLAGS="$CFLAGS $cf_new_cflags"
9208 fi
9209
9210 if test -n "$cf_new_cppflags" ; then
9211
9212 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9213 fi
9214
9215 if test -n "$cf_new_extra_cppflags" ; then
9216
9217 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9218 fi
9219
9220 LIBS="$cf_pkgconfig_libs $LIBS"
9221 :
9222 else
9223 cf_pkgconfig_incs=
9224 cf_pkgconfig_libs=
9225
9226 test -n "$verbose" && echo " ...before $LIBS" 1>&6
9227
9228 echo "${as_me:-configure}:9228: testing ...before $LIBS ..." 1>&5
9229
9230 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
9231 test -n "$verbose" && echo " ...after $LIBS" 1>&6
9232
9233 echo "${as_me:-configure}:9233: testing ...after $LIBS ..." 1>&5
9234
9235 fi
9236
9237 fi
9238 ;;
9239 esac
9240
9241 echo "$as_me:9241: checking for usable X Toolkit package" >&5
9242 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
9243 if test "${cf_cv_xt_ice_compat+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line 9248 "configure"
9249 #include "confdefs.h"
9250
9251 #include <X11/Shell.h>
9252
9253 int
9254 main ()
9255 {
9256 int num = IceConnectionNumber(0)
9257
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:9263: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>&5
9265 ac_status=$?
9266 echo "$as_me:9266: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (eval echo "$as_me:9269: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:9272: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 cf_cv_xt_ice_compat=yes
9275 else
9276 echo "$as_me: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9278 cf_cv_xt_ice_compat=no
9279 fi
9280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9281 fi
9282 echo "$as_me:9282: result: $cf_cv_xt_ice_compat" >&5
9283 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
9284
9285 if test "$cf_cv_xt_ice_compat" = no
9286 then
9287 # workaround for broken ".pc" files used for X Toolkit.
9288 case "x$X_PRE_LIBS" in #(vi
9289 *-lICE*)
9290 case "x$LIBS" in #(vi
9291 *-lICE*) #(vi
9292 ;;
9293 *)
9294 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
9295
9296 echo "${as_me:-configure}:9296: testing work around broken ICE dependency ..." 1>&5
9297
9298 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
9299 test -n "$verbose" && echo " found package ice" 1>&6
9300
9301 echo "${as_me:-configure}:9301: testing found package ice ..." 1>&5
9302
9303 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
9304 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
9305 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
9306
9307 echo "${as_me:-configure}:9307: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9308
9309 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
9310
9311 echo "${as_me:-configure}:9311: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
9312
9313 cf_fix_cppflags=no
9314 cf_new_cflags=
9315 cf_new_cppflags=
9316 cf_new_extra_cppflags=
9317
9318 for cf_add_cflags in $cf_pkgconfig_incs
9319 do
9320 case $cf_fix_cppflags in
9321 no)
9322 case $cf_add_cflags in #(vi
9323 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9324 case $cf_add_cflags in
9325 -D*)
9326 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9327
9328 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9329 && test -z "${cf_tst_cflags}" \
9330 && cf_fix_cppflags=yes
9331
9332 if test $cf_fix_cppflags = yes ; then
9333 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9334 continue
9335 elif test "${cf_tst_cflags}" = "\"'" ; then
9336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9337 continue
9338 fi
9339 ;;
9340 esac
9341 case "$CPPFLAGS" in
9342 *$cf_add_cflags) #(vi
9343 ;;
9344 *) #(vi
9345 case $cf_add_cflags in #(vi
9346 -D*)
9347 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9348
9349 CPPFLAGS=`echo "$CPPFLAGS" | \
9350 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9351 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9352
9353 ;;
9354 esac
9355 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9356 ;;
9357 esac
9358 ;;
9359 *)
9360 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9361 ;;
9362 esac
9363 ;;
9364 yes)
9365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9366
9367 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9368
9369 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9370 && test -z "${cf_tst_cflags}" \
9371 && cf_fix_cppflags=no
9372 ;;
9373 esac
9374 done
9375
9376 if test -n "$cf_new_cflags" ; then
9377
9378 CFLAGS="$CFLAGS $cf_new_cflags"
9379 fi
9380
9381 if test -n "$cf_new_cppflags" ; then
9382
9383 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9384 fi
9385
9386 if test -n "$cf_new_extra_cppflags" ; then
9387
9388 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9389 fi
9390
9391 LIBS="$cf_pkgconfig_libs $LIBS"
9392
9393 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
9394 test -n "$verbose" && echo " found package sm" 1>&6
9395
9396 echo "${as_me:-configure}:9396: testing found package sm ..." 1>&5
9397
9398 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
9399 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
9400 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
9401
9402 echo "${as_me:-configure}:9402: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9403
9404 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
9405
9406 echo "${as_me:-configure}:9406: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
9407
9408 cf_fix_cppflags=no
9409 cf_new_cflags=
9410 cf_new_cppflags=
9411 cf_new_extra_cppflags=
9412
9413 for cf_add_cflags in $cf_pkgconfig_incs
9414 do
9415 case $cf_fix_cppflags in
9416 no)
9417 case $cf_add_cflags in #(vi
9418 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9419 case $cf_add_cflags in
9420 -D*)
9421 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9422
9423 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9424 && test -z "${cf_tst_cflags}" \
9425 && cf_fix_cppflags=yes
9426
9427 if test $cf_fix_cppflags = yes ; then
9428 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9429 continue
9430 elif test "${cf_tst_cflags}" = "\"'" ; then
9431 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9432 continue
9433 fi
9434 ;;
9435 esac
9436 case "$CPPFLAGS" in
9437 *$cf_add_cflags) #(vi
9438 ;;
9439 *) #(vi
9440 case $cf_add_cflags in #(vi
9441 -D*)
9442 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9443
9444 CPPFLAGS=`echo "$CPPFLAGS" | \
9445 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9446 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9447
9448 ;;
9449 esac
9450 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9451 ;;
9452 esac
9453 ;;
9454 *)
9455 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9456 ;;
9457 esac
9458 ;;
9459 yes)
9460 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9461
9462 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9463
9464 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9465 && test -z "${cf_tst_cflags}" \
9466 && cf_fix_cppflags=no
9467 ;;
9468 esac
9469 done
9470
9471 if test -n "$cf_new_cflags" ; then
9472
9473 CFLAGS="$CFLAGS $cf_new_cflags"
9474 fi
9475
9476 if test -n "$cf_new_cppflags" ; then
9477
9478 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9479 fi
9480
9481 if test -n "$cf_new_extra_cppflags" ; then
9482
9483 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9484 fi
9485
9486 LIBS="$cf_pkgconfig_libs $LIBS"
9487 :
9488 else
9489 cf_pkgconfig_incs=
9490 cf_pkgconfig_libs=
9491 :
9492 fi
9493
9494 else
9495 cf_pkgconfig_incs=
9496 cf_pkgconfig_libs=
9497
9498 test -n "$verbose" && echo " ...before $LIBS" 1>&6
9499
9500 echo "${as_me:-configure}:9500: testing ...before $LIBS ..." 1>&5
9501
9502 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
9503 test -n "$verbose" && echo " ...after $LIBS" 1>&6
9504
9505 echo "${as_me:-configure}:9505: testing ...after $LIBS ..." 1>&5
9506
9507 fi
9508
9509 ;;
9510 esac
9511 ;;
9512 esac
9513 fi
9514
9515 cf_have_X_LIBS=yes
9516
9517 else
9518 cf_pkgconfig_incs=
9519 cf_pkgconfig_libs=
9520
9521 LDFLAGS="$X_LIBS $LDFLAGS"
9522
9523 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
9524
9525 echo "${as_me:-configure}:9525: testing checking additions to CFLAGS ..." 1>&5
9526
9527 cf_check_cflags="$CFLAGS"
9528 cf_check_cppflags="$CPPFLAGS"
9529
9530 cf_fix_cppflags=no
9531 cf_new_cflags=
9532 cf_new_cppflags=
9533 cf_new_extra_cppflags=
9534
9535 for cf_add_cflags in $X_CFLAGS
9536 do
9537 case $cf_fix_cppflags in
9538 no)
9539 case $cf_add_cflags in #(vi
9540 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9541 case $cf_add_cflags in
9542 -D*)
9543 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9544
9545 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9546 && test -z "${cf_tst_cflags}" \
9547 && cf_fix_cppflags=yes
9548
9549 if test $cf_fix_cppflags = yes ; then
9550 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9551 continue
9552 elif test "${cf_tst_cflags}" = "\"'" ; then
9553 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9554 continue
9555 fi
9556 ;;
9557 esac
9558 case "$CPPFLAGS" in
9559 *$cf_add_cflags) #(vi
9560 ;;
9561 *) #(vi
9562 case $cf_add_cflags in #(vi
9563 -D*)
9564 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9565
9566 CPPFLAGS=`echo "$CPPFLAGS" | \
9567 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9568 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9569
9570 ;;
9571 esac
9572 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9573 ;;
9574 esac
9575 ;;
9576 *)
9577 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9578 ;;
9579 esac
9580 ;;
9581 yes)
9582 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9583
9584 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9585
9586 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9587 && test -z "${cf_tst_cflags}" \
9588 && cf_fix_cppflags=no
9589 ;;
9590 esac
9591 done
9592
9593 if test -n "$cf_new_cflags" ; then
9594 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
9595
9596 echo "${as_me:-configure}:9596: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
9597
9598 CFLAGS="$CFLAGS $cf_new_cflags"
9599 fi
9600
9601 if test -n "$cf_new_cppflags" ; then
9602 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
9603
9604 echo "${as_me:-configure}:9604: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
9605
9606 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9607 fi
9608
9609 if test -n "$cf_new_extra_cppflags" ; then
9610 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
9611
9612 echo "${as_me:-configure}:9612: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
9613
9614 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9615 fi
9616
9617 if test "$cf_check_cflags" != "$CFLAGS" ; then
9618 cat >conftest.$ac_ext <<_ACEOF
9619 #line 9619 "configure"
9620 #include "confdefs.h"
9621 #include <stdio.h>
9622 int
9623 main ()
9624 {
9625 printf("Hello world");
9626 ;
9627 return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (eval echo "$as_me:9631: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>&5
9633 ac_status=$?
9634 echo "$as_me:9634: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -s conftest$ac_exeext'
9637 { (eval echo "$as_me:9637: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:9640: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9642 :
9643 else
9644 echo "$as_me: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
9647
9648 echo "${as_me:-configure}:9648: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
9649
9650 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
9651 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
9652
9653 echo "${as_me:-configure}:9653: testing but keeping change to \$CPPFLAGS ..." 1>&5
9654
9655 fi
9656 CFLAGS="$cf_check_flags"
9657 fi
9658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9659 fi
9660
9661 echo "$as_me:9661: checking for XOpenDisplay" >&5
9662 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
9663 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 cat >conftest.$ac_ext <<_ACEOF
9667 #line 9667 "configure"
9668 #include "confdefs.h"
9669 /* System header to define __stub macros and hopefully few prototypes,
9670 which can conflict with char XOpenDisplay (); below. */
9671 #include <assert.h>
9672 /* Override any gcc2 internal prototype to avoid an error. */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678 char XOpenDisplay ();
9679 char (*f) ();
9680
9681 int
9682 main ()
9683 {
9684 /* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
9688 choke me
9689 #else
9690 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9691 #endif
9692
9693 ;
9694 return 0;
9695 }
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:9698: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>&5
9700 ac_status=$?
9701 echo "$as_me:9701: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:9704: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:9707: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_func_XOpenDisplay=yes
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9713 ac_cv_func_XOpenDisplay=no
9714 fi
9715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9716 fi
9717 echo "$as_me:9717: result: $ac_cv_func_XOpenDisplay" >&5
9718 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
9719 if test $ac_cv_func_XOpenDisplay = yes; then
9720 :
9721 else
9722
9723 echo "$as_me:9723: checking for XOpenDisplay in -lX11" >&5
9724 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
9725 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line 9731 "configure"
9732 #include "confdefs.h"
9733
9734 /* Override any gcc2 internal prototype to avoid an error. */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 /* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9740 char XOpenDisplay ();
9741 int
9742 main ()
9743 {
9744 XOpenDisplay ();
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (eval echo "$as_me:9750: \"$ac_link\"") >&5
9751 (eval $ac_link) 2>&5
9752 ac_status=$?
9753 echo "$as_me:9753: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -s conftest$ac_exeext'
9756 { (eval echo "$as_me:9756: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:9759: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_lib_X11_XOpenDisplay=yes
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 ac_cv_lib_X11_XOpenDisplay=no
9766 fi
9767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9768 LIBS=$ac_check_lib_save_LIBS
9769 fi
9770 echo "$as_me:9770: result: $ac_cv_lib_X11_XOpenDisplay" >&5
9771 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
9772 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
9773 LIBS="-lX11 $LIBS"
9774 fi
9775
9776 fi
9777
9778 echo "$as_me:9778: checking for XtAppInitialize" >&5
9779 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
9780 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 cat >conftest.$ac_ext <<_ACEOF
9784 #line 9784 "configure"
9785 #include "confdefs.h"
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char XtAppInitialize (); below. */
9788 #include <assert.h>
9789 /* Override any gcc2 internal prototype to avoid an error. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9795 char XtAppInitialize ();
9796 char (*f) ();
9797
9798 int
9799 main ()
9800 {
9801 /* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
9805 choke me
9806 #else
9807 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9808 #endif
9809
9810 ;
9811 return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:9815: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>&5
9817 ac_status=$?
9818 echo "$as_me:9818: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (eval echo "$as_me:9821: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:9824: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_func_XtAppInitialize=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9830 ac_cv_func_XtAppInitialize=no
9831 fi
9832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9833 fi
9834 echo "$as_me:9834: result: $ac_cv_func_XtAppInitialize" >&5
9835 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
9836 if test $ac_cv_func_XtAppInitialize = yes; then
9837 :
9838 else
9839
9840 echo "$as_me:9840: checking for XtAppInitialize in -lXt" >&5
9841 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
9842 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 ac_check_lib_save_LIBS=$LIBS
9846 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
9847 cat >conftest.$ac_ext <<_ACEOF
9848 #line 9848 "configure"
9849 #include "confdefs.h"
9850
9851 /* Override any gcc2 internal prototype to avoid an error. */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 /* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9857 char XtAppInitialize ();
9858 int
9859 main ()
9860 {
9861 XtAppInitialize ();
9862 ;
9863 return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:9867: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>&5
9869 ac_status=$?
9870 echo "$as_me:9870: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:9873: \"$ac_try\"") >&5
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
9876 echo "$as_me:9876: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_lib_Xt_XtAppInitialize=yes
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 ac_cv_lib_Xt_XtAppInitialize=no
9883 fi
9884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9886 fi
9887 echo "$as_me:9887: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
9888 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
9889 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
9890
9891 cat >>confdefs.h <<\EOF
9892 #define HAVE_LIBXT 1
9893 EOF
9894
9895 cf_have_X_LIBS=Xt
9896 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
9897 fi
9898
9899 fi
9900
9901 fi
9902
9903 if test $cf_have_X_LIBS = no ; then
9904 { echo "$as_me:9904: WARNING: Unable to successfully link X Toolkit library (-lXt) with
9905 test program. You will have to check and add the proper libraries by hand
9906 to makefile." >&5
9907 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
9908 test program. You will have to check and add the proper libraries by hand
9909 to makefile." >&2;}
9910 fi
9911
9912 for ac_header in \
9913 X11/DECkeysym.h \
9914 X11/Sunkeysym.h \
9915 X11/XF86keysym.h \
9916 X11/XKBlib.h \
9917 X11/Xpoll.h \
9918 X11/extensions/XKB.h \
9919
9920 do
9921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9922 echo "$as_me:9922: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927 cat >conftest.$ac_ext <<_ACEOF
9928 #line 9928 "configure"
9929 #include "confdefs.h"
9930 #include <$ac_header>
9931 _ACEOF
9932 if { (eval echo "$as_me:9932: \"$ac_cpp conftest.$ac_ext\"") >&5
9933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9934 ac_status=$?
9935 egrep -v '^ *\+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:9938: \$? = $ac_status" >&5
9939 (exit $ac_status); } >/dev/null; then
9940 if test -s conftest.err; then
9941 ac_cpp_err=$ac_c_preproc_warn_flag
9942 else
9943 ac_cpp_err=
9944 fi
9945 else
9946 ac_cpp_err=yes
9947 fi
9948 if test -z "$ac_cpp_err"; then
9949 eval "$as_ac_Header=yes"
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 eval "$as_ac_Header=no"
9954 fi
9955 rm -f conftest.err conftest.$ac_ext
9956 fi
9957 echo "$as_me:9957: result: `eval echo '${'$as_ac_Header'}'`" >&5
9958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9960 cat >>confdefs.h <<EOF
9961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9962 EOF
9963
9964 fi
9965 done
9966
9967 ICON_SUFFIX=.xbm
9968
9969 cf_save_cppflags="${CPPFLAGS}"
9970 cf_save_ldflags="${LDFLAGS}"
9971
9972 echo "$as_me:9972: checking if you want to use the Xpm library for colored icon" >&5
9973 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6
9974
9975 # Check whether --with-xpm or --without-xpm was given.
9976 if test "${with_xpm+set}" = set; then
9977 withval="$with_xpm"
9978 cf_Xpm_library="$withval"
9979 else
9980 cf_Xpm_library=yes
9981 fi;
9982 echo "$as_me:9982: result: $cf_Xpm_library" >&5
9983 echo "${ECHO_T}$cf_Xpm_library" >&6
9984
9985 if test "$cf_Xpm_library" != no ; then
9986 if test "$cf_Xpm_library" != yes ; then
9987 CPPFLAGS="$CPPFLAGS -I$withval/include"
9988 LDFLAGS="$LDFLAGS -L$withval/lib"
9989 fi
9990 echo "$as_me:9990: checking for X11/xpm.h" >&5
9991 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9992 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 cat >conftest.$ac_ext <<_ACEOF
9996 #line 9996 "configure"
9997 #include "confdefs.h"
9998 #include <X11/xpm.h>
9999 _ACEOF
10000 if { (eval echo "$as_me:10000: \"$ac_cpp conftest.$ac_ext\"") >&5
10001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10002 ac_status=$?
10003 egrep -v '^ *\+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:10006: \$? = $ac_status" >&5
10007 (exit $ac_status); } >/dev/null; then
10008 if test -s conftest.err; then
10009 ac_cpp_err=$ac_c_preproc_warn_flag
10010 else
10011 ac_cpp_err=
10012 fi
10013 else
10014 ac_cpp_err=yes
10015 fi
10016 if test -z "$ac_cpp_err"; then
10017 ac_cv_header_X11_xpm_h=yes
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 ac_cv_header_X11_xpm_h=no
10022 fi
10023 rm -f conftest.err conftest.$ac_ext
10024 fi
10025 echo "$as_me:10025: result: $ac_cv_header_X11_xpm_h" >&5
10026 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10027 if test $ac_cv_header_X11_xpm_h = yes; then
10028
10029 echo "$as_me:10029: checking for XpmCreatePixmapFromData in -lXpm" >&5
10030 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
10031 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-lXpm -lX11 $X_LIBS $LIBS"
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line 10037 "configure"
10038 #include "confdefs.h"
10039
10040 /* Override any gcc2 internal prototype to avoid an error. */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046 char XpmCreatePixmapFromData ();
10047 int
10048 main ()
10049 {
10050 XpmCreatePixmapFromData ();
10051 ;
10052 return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:10056: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>&5
10058 ac_status=$?
10059 echo "$as_me:10059: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (eval echo "$as_me:10062: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:10065: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10071 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
10072 fi
10073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10074 LIBS=$ac_check_lib_save_LIBS
10075 fi
10076 echo "$as_me:10076: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
10077 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
10078 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
10079
10080 cat >>confdefs.h <<\EOF
10081 #define HAVE_LIBXPM 1
10082 EOF
10083
10084 ICON_SUFFIX=.xpm
10085 LIBS="-lXpm $LIBS"
10086 else
10087 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
10088 fi
10089
10090 else
10091 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
10092 fi
10093
10094 fi
10095
10096 cf_x_athena=${cf_x_athena:-Xaw}
10097
10098 echo "$as_me:10098: checking if you want to link with Xaw 3d library" >&5
10099 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10100 withval=
10101
10102 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10103 if test "${with_Xaw3d+set}" = set; then
10104 withval="$with_Xaw3d"
10105
10106 fi;
10107 if test "$withval" = yes ; then
10108 cf_x_athena=Xaw3d
10109 echo "$as_me:10109: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10111 else
10112 echo "$as_me:10112: result: no" >&5
10113 echo "${ECHO_T}no" >&6
10114 fi
10115
10116 echo "$as_me:10116: checking if you want to link with neXT Athena library" >&5
10117 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10118 withval=
10119
10120 # Check whether --with-neXtaw or --without-neXtaw was given.
10121 if test "${with_neXtaw+set}" = set; then
10122 withval="$with_neXtaw"
10123
10124 fi;
10125 if test "$withval" = yes ; then
10126 cf_x_athena=neXtaw
10127 echo "$as_me:10127: result: yes" >&5
10128 echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:10130: result: no" >&5
10131 echo "${ECHO_T}no" >&6
10132 fi
10133
10134 echo "$as_me:10134: checking if you want to link with Athena-Plus library" >&5
10135 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10136 withval=
10137
10138 # Check whether --with-XawPlus or --without-XawPlus was given.
10139 if test "${with_XawPlus+set}" = set; then
10140 withval="$with_XawPlus"
10141
10142 fi;
10143 if test "$withval" = yes ; then
10144 cf_x_athena=XawPlus
10145 echo "$as_me:10145: result: yes" >&5
10146 echo "${ECHO_T}yes" >&6
10147 else
10148 echo "$as_me:10148: result: no" >&5
10149 echo "${ECHO_T}no" >&6
10150 fi
10151
10152 cf_x_athena_lib=""
10153
10154 if test "$PKG_CONFIG" != none ; then
10155 cf_athena_list=
10156 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10157 for cf_athena_pkg in \
10158 $cf_athena_list \
10159 ${cf_x_athena} \
10160 ${cf_x_athena}-devel \
10161 lib${cf_x_athena} \
10162 lib${cf_x_athena}-devel
10163 do
10164
10165 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10166 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10167
10168 echo "${as_me:-configure}:10168: testing found package $cf_athena_pkg ..." 1>&5
10169
10170 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10171 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10172 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10173
10174 echo "${as_me:-configure}:10174: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10175
10176 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10177
10178 echo "${as_me:-configure}:10178: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10179
10180 cf_fix_cppflags=no
10181 cf_new_cflags=
10182 cf_new_cppflags=
10183 cf_new_extra_cppflags=
10184
10185 for cf_add_cflags in $cf_pkgconfig_incs
10186 do
10187 case $cf_fix_cppflags in
10188 no)
10189 case $cf_add_cflags in #(vi
10190 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10191 case $cf_add_cflags in
10192 -D*)
10193 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10194
10195 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10196 && test -z "${cf_tst_cflags}" \
10197 && cf_fix_cppflags=yes
10198
10199 if test $cf_fix_cppflags = yes ; then
10200 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10201 continue
10202 elif test "${cf_tst_cflags}" = "\"'" ; then
10203 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10204 continue
10205 fi
10206 ;;
10207 esac
10208 case "$CPPFLAGS" in
10209 *$cf_add_cflags) #(vi
10210 ;;
10211 *) #(vi
10212 case $cf_add_cflags in #(vi
10213 -D*)
10214 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10215
10216 CPPFLAGS=`echo "$CPPFLAGS" | \
10217 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10218 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10219
10220 ;;
10221 esac
10222 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10223 ;;
10224 esac
10225 ;;
10226 *)
10227 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10228 ;;
10229 esac
10230 ;;
10231 yes)
10232 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10233
10234 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10235
10236 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10237 && test -z "${cf_tst_cflags}" \
10238 && cf_fix_cppflags=no
10239 ;;
10240 esac
10241 done
10242
10243 if test -n "$cf_new_cflags" ; then
10244
10245 CFLAGS="$CFLAGS $cf_new_cflags"
10246 fi
10247
10248 if test -n "$cf_new_cppflags" ; then
10249
10250 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10251 fi
10252
10253 if test -n "$cf_new_extra_cppflags" ; then
10254
10255 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10256 fi
10257
10258 LIBS="$cf_pkgconfig_libs $LIBS"
10259
10260 cf_x_athena_lib="$cf_pkgconfig_libs"
10261
10262 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10263
10264 cat >>confdefs.h <<EOF
10265 #define $cf_x_athena_LIBS 1
10266 EOF
10267
10268 for cf_trim_lib in Xmu Xt X11
10269 do
10270 case "$LIBS" in
10271 *-l$cf_trim_lib\ *-l$cf_trim_lib*)
10272 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10273 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10274
10275 echo "${as_me:-configure}:10275: testing ..trimmed $LIBS ..." 1>&5
10276
10277 ;;
10278 esac
10279 done
10280
10281 echo "$as_me:10281: checking for usable $cf_x_athena/Xmu package" >&5
10282 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10283 if test "${cf_cv_xaw_compat+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10290
10291 #include <X11/Xmu/CharSet.h>
10292
10293 int
10294 main ()
10295 {
10296
10297 int check = XmuCompareISOLatin1("big", "small")
10298
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:10304: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>&5
10306 ac_status=$?
10307 echo "$as_me:10307: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10312 ac_status=$?
10313 echo "$as_me:10313: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 cf_cv_xaw_compat=yes
10316 else
10317 echo "$as_me: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10319 cf_cv_xaw_compat=no
10320 fi
10321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10322 fi
10323 echo "$as_me:10323: result: $cf_cv_xaw_compat" >&5
10324 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10325
10326 if test "$cf_cv_xaw_compat" = no
10327 then
10328 # workaround for broken ".pc" files...
10329 case "$cf_x_athena_lib" in #(vi
10330 *-lXmu*) #(vi
10331 ;;
10332 *)
10333 test -n "$verbose" && echo " work around broken package" 1>&6
10334
10335 echo "${as_me:-configure}:10335: testing work around broken package ..." 1>&5
10336
10337 cf_save_xmu="$LIBS"
10338 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
10339
10340 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10341 test -n "$verbose" && echo " found package xmu" 1>&6
10342
10343 echo "${as_me:-configure}:10343: testing found package xmu ..." 1>&5
10344
10345 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10346 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10347 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10348
10349 echo "${as_me:-configure}:10349: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10350
10351 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10352
10353 echo "${as_me:-configure}:10353: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10354
10355 cf_fix_cppflags=no
10356 cf_new_cflags=
10357 cf_new_cppflags=
10358 cf_new_extra_cppflags=
10359
10360 for cf_add_cflags in $cf_pkgconfig_incs
10361 do
10362 case $cf_fix_cppflags in
10363 no)
10364 case $cf_add_cflags in #(vi
10365 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10366 case $cf_add_cflags in
10367 -D*)
10368 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10369
10370 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10371 && test -z "${cf_tst_cflags}" \
10372 && cf_fix_cppflags=yes
10373
10374 if test $cf_fix_cppflags = yes ; then
10375 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10376 continue
10377 elif test "${cf_tst_cflags}" = "\"'" ; then
10378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10379 continue
10380 fi
10381 ;;
10382 esac
10383 case "$CPPFLAGS" in
10384 *$cf_add_cflags) #(vi
10385 ;;
10386 *) #(vi
10387 case $cf_add_cflags in #(vi
10388 -D*)
10389 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10390
10391 CPPFLAGS=`echo "$CPPFLAGS" | \
10392 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10393 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10394
10395 ;;
10396 esac
10397 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10398 ;;
10399 esac
10400 ;;
10401 *)
10402 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10403 ;;
10404 esac
10405 ;;
10406 yes)
10407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10408
10409 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10410
10411 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10412 && test -z "${cf_tst_cflags}" \
10413 && cf_fix_cppflags=no
10414 ;;
10415 esac
10416 done
10417
10418 if test -n "$cf_new_cflags" ; then
10419
10420 CFLAGS="$CFLAGS $cf_new_cflags"
10421 fi
10422
10423 if test -n "$cf_new_cppflags" ; then
10424
10425 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10426 fi
10427
10428 if test -n "$cf_new_extra_cppflags" ; then
10429
10430 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10431 fi
10432
10433 LIBS="$cf_pkgconfig_libs $LIBS"
10434
10435 LIBS="$cf_save_xmu"
10436
10437 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10438
10439 echo "${as_me:-configure}:10439: testing ...before $LIBS ..." 1>&5
10440
10441 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
10442 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10443
10444 echo "${as_me:-configure}:10444: testing ...after $LIBS ..." 1>&5
10445
10446 else
10447 cf_pkgconfig_incs=
10448 cf_pkgconfig_libs=
10449
10450 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10451
10452 echo "${as_me:-configure}:10452: testing ...before $LIBS ..." 1>&5
10453
10454 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
10455 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10456
10457 echo "${as_me:-configure}:10457: testing ...after $LIBS ..." 1>&5
10458
10459 fi
10460
10461 for cf_trim_lib in Xmu Xt X11
10462 do
10463 case "$LIBS" in
10464 *-l$cf_trim_lib\ *-l$cf_trim_lib*)
10465 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10466 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10467
10468 echo "${as_me:-configure}:10468: testing ..trimmed $LIBS ..." 1>&5
10469
10470 ;;
10471 esac
10472 done
10473
10474 ;;
10475 esac
10476 fi
10477
10478 break
10479 else
10480 cf_pkgconfig_incs=
10481 cf_pkgconfig_libs=
10482 :
10483 fi
10484
10485 done
10486 fi
10487
10488 if test -z "$cf_x_athena_lib" ; then
10489
10490 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10491 test -n "$verbose" && echo " found package Xext" 1>&6
10492
10493 echo "${as_me:-configure}:10493: testing found package Xext ..." 1>&5
10494
10495 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10496 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10497 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10498
10499 echo "${as_me:-configure}:10499: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10500
10501 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10502
10503 echo "${as_me:-configure}:10503: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10504
10505 cf_fix_cppflags=no
10506 cf_new_cflags=
10507 cf_new_cppflags=
10508 cf_new_extra_cppflags=
10509
10510 for cf_add_cflags in $cf_pkgconfig_incs
10511 do
10512 case $cf_fix_cppflags in
10513 no)
10514 case $cf_add_cflags in #(vi
10515 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10516 case $cf_add_cflags in
10517 -D*)
10518 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10519
10520 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10521 && test -z "${cf_tst_cflags}" \
10522 && cf_fix_cppflags=yes
10523
10524 if test $cf_fix_cppflags = yes ; then
10525 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10526 continue
10527 elif test "${cf_tst_cflags}" = "\"'" ; then
10528 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10529 continue
10530 fi
10531 ;;
10532 esac
10533 case "$CPPFLAGS" in
10534 *$cf_add_cflags) #(vi
10535 ;;
10536 *) #(vi
10537 case $cf_add_cflags in #(vi
10538 -D*)
10539 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10540
10541 CPPFLAGS=`echo "$CPPFLAGS" | \
10542 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10543 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10544
10545 ;;
10546 esac
10547 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10548 ;;
10549 esac
10550 ;;
10551 *)
10552 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10553 ;;
10554 esac
10555 ;;
10556 yes)
10557 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10558
10559 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10560
10561 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10562 && test -z "${cf_tst_cflags}" \
10563 && cf_fix_cppflags=no
10564 ;;
10565 esac
10566 done
10567
10568 if test -n "$cf_new_cflags" ; then
10569
10570 CFLAGS="$CFLAGS $cf_new_cflags"
10571 fi
10572
10573 if test -n "$cf_new_cppflags" ; then
10574
10575 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10576 fi
10577
10578 if test -n "$cf_new_extra_cppflags" ; then
10579
10580 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10581 fi
10582
10583 LIBS="$cf_pkgconfig_libs $LIBS"
10584 :
10585 else
10586 cf_pkgconfig_incs=
10587 cf_pkgconfig_libs=
10588
10589 echo "$as_me:10589: checking for XextCreateExtension in -lXext" >&5
10590 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10591 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594 ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lXext $LIBS"
10596 cat >conftest.$ac_ext <<_ACEOF
10597 #line 10597 "configure"
10598 #include "confdefs.h"
10599
10600 /* Override any gcc2 internal prototype to avoid an error. */
10601 #ifdef __cplusplus
10602 extern "C"
10603 #endif
10604 /* We use char because int might match the return type of a gcc2
10605 builtin and then its argument prototype would still apply. */
10606 char XextCreateExtension ();
10607 int
10608 main ()
10609 {
10610 XextCreateExtension ();
10611 ;
10612 return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (eval echo "$as_me:10616: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>&5
10618 ac_status=$?
10619 echo "$as_me:10619: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
10621 { ac_try='test -s conftest$ac_exeext'
10622 { (eval echo "$as_me:10622: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:10625: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_lib_Xext_XextCreateExtension=yes
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 cat conftest.$ac_ext >&5
10631 ac_cv_lib_Xext_XextCreateExtension=no
10632 fi
10633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10635 fi
10636 echo "$as_me:10636: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10637 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10638 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10639 LIBS="-lXext $LIBS"
10640 fi
10641
10642 fi
10643
10644 cf_have_X_LIBS=no
10645
10646 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
10647 test -n "$verbose" && echo " found package xt" 1>&6
10648
10649 echo "${as_me:-configure}:10649: testing found package xt ..." 1>&5
10650
10651 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
10652 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
10653 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10654
10655 echo "${as_me:-configure}:10655: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10656
10657 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10658
10659 echo "${as_me:-configure}:10659: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10660
10661 cf_fix_cppflags=no
10662 cf_new_cflags=
10663 cf_new_cppflags=
10664 cf_new_extra_cppflags=
10665
10666 for cf_add_cflags in $cf_pkgconfig_incs
10667 do
10668 case $cf_fix_cppflags in
10669 no)
10670 case $cf_add_cflags in #(vi
10671 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10672 case $cf_add_cflags in
10673 -D*)
10674 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10675
10676 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10677 && test -z "${cf_tst_cflags}" \
10678 && cf_fix_cppflags=yes
10679
10680 if test $cf_fix_cppflags = yes ; then
10681 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10682 continue
10683 elif test "${cf_tst_cflags}" = "\"'" ; then
10684 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10685 continue
10686 fi
10687 ;;
10688 esac
10689 case "$CPPFLAGS" in
10690 *$cf_add_cflags) #(vi
10691 ;;
10692 *) #(vi
10693 case $cf_add_cflags in #(vi
10694 -D*)
10695 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10696
10697 CPPFLAGS=`echo "$CPPFLAGS" | \
10698 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10699 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10700
10701 ;;
10702 esac
10703 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10704 ;;
10705 esac
10706 ;;
10707 *)
10708 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10709 ;;
10710 esac
10711 ;;
10712 yes)
10713 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10714
10715 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10716
10717 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10718 && test -z "${cf_tst_cflags}" \
10719 && cf_fix_cppflags=no
10720 ;;
10721 esac
10722 done
10723
10724 if test -n "$cf_new_cflags" ; then
10725
10726 CFLAGS="$CFLAGS $cf_new_cflags"
10727 fi
10728
10729 if test -n "$cf_new_cppflags" ; then
10730
10731 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10732 fi
10733
10734 if test -n "$cf_new_extra_cppflags" ; then
10735
10736 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10737 fi
10738
10739 LIBS="$cf_pkgconfig_libs $LIBS"
10740
10741 case "x$LIBS" in #(vi
10742 *-lX11*) #(vi
10743 ;;
10744 *)
10745 # we have an "xt" package, but it may omit Xt's dependency on X11
10746 echo "$as_me:10746: checking for usable X dependency" >&5
10747 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
10748 if test "${cf_cv_xt_x11_compat+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751
10752 cat >conftest.$ac_ext <<_ACEOF
10753 #line 10753 "configure"
10754 #include "confdefs.h"
10755
10756 #include <X11/Xlib.h>
10757
10758 int
10759 main ()
10760 {
10761
10762 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
10763 int rc2 = XClearWindow((Display*) 0, (Window) 0);
10764 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
10765 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
10766
10767 ;
10768 return 0;
10769 }
10770 _ACEOF
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (eval echo "$as_me:10772: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>&5
10774 ac_status=$?
10775 echo "$as_me:10775: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:10778: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:10781: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 cf_cv_xt_x11_compat=yes
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10787 cf_cv_xt_x11_compat=no
10788 fi
10789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10790 fi
10791 echo "$as_me:10791: result: $cf_cv_xt_x11_compat" >&5
10792 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
10793 if test "$cf_cv_xt_x11_compat" = no
10794 then
10795 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
10796
10797 echo "${as_me:-configure}:10797: testing work around broken X11 dependency ..." 1>&5
10798
10799 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
10800
10801 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10802 test -n "$verbose" && echo " found package x11" 1>&6
10803
10804 echo "${as_me:-configure}:10804: testing found package x11 ..." 1>&5
10805
10806 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10807 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10808 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10809
10810 echo "${as_me:-configure}:10810: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10811
10812 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10813
10814 echo "${as_me:-configure}:10814: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10815
10816 cf_fix_cppflags=no
10817 cf_new_cflags=
10818 cf_new_cppflags=
10819 cf_new_extra_cppflags=
10820
10821 for cf_add_cflags in $cf_pkgconfig_incs
10822 do
10823 case $cf_fix_cppflags in
10824 no)
10825 case $cf_add_cflags in #(vi
10826 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10827 case $cf_add_cflags in
10828 -D*)
10829 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10830
10831 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10832 && test -z "${cf_tst_cflags}" \
10833 && cf_fix_cppflags=yes
10834
10835 if test $cf_fix_cppflags = yes ; then
10836 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10837 continue
10838 elif test "${cf_tst_cflags}" = "\"'" ; then
10839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10840 continue
10841 fi
10842 ;;
10843 esac
10844 case "$CPPFLAGS" in
10845 *$cf_add_cflags) #(vi
10846 ;;
10847 *) #(vi
10848 case $cf_add_cflags in #(vi
10849 -D*)
10850 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10851
10852 CPPFLAGS=`echo "$CPPFLAGS" | \
10853 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10854 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10855
10856 ;;
10857 esac
10858 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10859 ;;
10860 esac
10861 ;;
10862 *)
10863 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10864 ;;
10865 esac
10866 ;;
10867 yes)
10868 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10869
10870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10871
10872 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10873 && test -z "${cf_tst_cflags}" \
10874 && cf_fix_cppflags=no
10875 ;;
10876 esac
10877 done
10878
10879 if test -n "$cf_new_cflags" ; then
10880
10881 CFLAGS="$CFLAGS $cf_new_cflags"
10882 fi
10883
10884 if test -n "$cf_new_cppflags" ; then
10885
10886 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10887 fi
10888
10889 if test -n "$cf_new_extra_cppflags" ; then
10890
10891 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10892 fi
10893
10894 LIBS="$cf_pkgconfig_libs $LIBS"
10895 :
10896 else
10897 cf_pkgconfig_incs=
10898 cf_pkgconfig_libs=
10899
10900 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10901
10902 echo "${as_me:-configure}:10902: testing ...before $LIBS ..." 1>&5
10903
10904 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
10905 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10906
10907 echo "${as_me:-configure}:10907: testing ...after $LIBS ..." 1>&5
10908
10909 fi
10910
10911 fi
10912 ;;
10913 esac
10914
10915 echo "$as_me:10915: checking for usable X Toolkit package" >&5
10916 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
10917 if test "${cf_cv_xt_ice_compat+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920
10921 cat >conftest.$ac_ext <<_ACEOF
10922 #line 10922 "configure"
10923 #include "confdefs.h"
10924
10925 #include <X11/Shell.h>
10926
10927 int
10928 main ()
10929 {
10930 int num = IceConnectionNumber(0)
10931
10932 ;
10933 return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (eval echo "$as_me:10937: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>&5
10939 ac_status=$?
10940 echo "$as_me:10940: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -s conftest$ac_exeext'
10943 { (eval echo "$as_me:10943: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:10946: \$? = $ac_status" >&5
10947 (exit $ac_status); }; }; then
10948 cf_cv_xt_ice_compat=yes
10949 else
10950 echo "$as_me: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10952 cf_cv_xt_ice_compat=no
10953 fi
10954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10955 fi
10956 echo "$as_me:10956: result: $cf_cv_xt_ice_compat" >&5
10957 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
10958
10959 if test "$cf_cv_xt_ice_compat" = no
10960 then
10961 # workaround for broken ".pc" files used for X Toolkit.
10962 case "x$X_PRE_LIBS" in #(vi
10963 *-lICE*)
10964 case "x$LIBS" in #(vi
10965 *-lICE*) #(vi
10966 ;;
10967 *)
10968 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
10969
10970 echo "${as_me:-configure}:10970: testing work around broken ICE dependency ..." 1>&5
10971
10972 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
10973 test -n "$verbose" && echo " found package ice" 1>&6
10974
10975 echo "${as_me:-configure}:10975: testing found package ice ..." 1>&5
10976
10977 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10978 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
10979 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10980
10981 echo "${as_me:-configure}:10981: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10982
10983 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10984
10985 echo "${as_me:-configure}:10985: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10986
10987 cf_fix_cppflags=no
10988 cf_new_cflags=
10989 cf_new_cppflags=
10990 cf_new_extra_cppflags=
10991
10992 for cf_add_cflags in $cf_pkgconfig_incs
10993 do
10994 case $cf_fix_cppflags in
10995 no)
10996 case $cf_add_cflags in #(vi
10997 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10998 case $cf_add_cflags in
10999 -D*)
11000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11001
11002 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11003 && test -z "${cf_tst_cflags}" \
11004 && cf_fix_cppflags=yes
11005
11006 if test $cf_fix_cppflags = yes ; then
11007 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11008 continue
11009 elif test "${cf_tst_cflags}" = "\"'" ; then
11010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11011 continue
11012 fi
11013 ;;
11014 esac
11015 case "$CPPFLAGS" in
11016 *$cf_add_cflags) #(vi
11017 ;;
11018 *) #(vi
11019 case $cf_add_cflags in #(vi
11020 -D*)
11021 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11022
11023 CPPFLAGS=`echo "$CPPFLAGS" | \
11024 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11025 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11026
11027 ;;
11028 esac
11029 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11030 ;;
11031 esac
11032 ;;
11033 *)
11034 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11035 ;;
11036 esac
11037 ;;
11038 yes)
11039 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11040
11041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11042
11043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11044 && test -z "${cf_tst_cflags}" \
11045 && cf_fix_cppflags=no
11046 ;;
11047 esac
11048 done
11049
11050 if test -n "$cf_new_cflags" ; then
11051
11052 CFLAGS="$CFLAGS $cf_new_cflags"
11053 fi
11054
11055 if test -n "$cf_new_cppflags" ; then
11056
11057 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11058 fi
11059
11060 if test -n "$cf_new_extra_cppflags" ; then
11061
11062 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11063 fi
11064
11065 LIBS="$cf_pkgconfig_libs $LIBS"
11066
11067 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11068 test -n "$verbose" && echo " found package sm" 1>&6
11069
11070 echo "${as_me:-configure}:11070: testing found package sm ..." 1>&5
11071
11072 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11073 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11074 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11075
11076 echo "${as_me:-configure}:11076: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11077
11078 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11079
11080 echo "${as_me:-configure}:11080: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11081
11082 cf_fix_cppflags=no
11083 cf_new_cflags=
11084 cf_new_cppflags=
11085 cf_new_extra_cppflags=
11086
11087 for cf_add_cflags in $cf_pkgconfig_incs
11088 do
11089 case $cf_fix_cppflags in
11090 no)
11091 case $cf_add_cflags in #(vi
11092 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11093 case $cf_add_cflags in
11094 -D*)
11095 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11096
11097 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11098 && test -z "${cf_tst_cflags}" \
11099 && cf_fix_cppflags=yes
11100
11101 if test $cf_fix_cppflags = yes ; then
11102 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11103 continue
11104 elif test "${cf_tst_cflags}" = "\"'" ; then
11105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11106 continue
11107 fi
11108 ;;
11109 esac
11110 case "$CPPFLAGS" in
11111 *$cf_add_cflags) #(vi
11112 ;;
11113 *) #(vi
11114 case $cf_add_cflags in #(vi
11115 -D*)
11116 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11117
11118 CPPFLAGS=`echo "$CPPFLAGS" | \
11119 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11120 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11121
11122 ;;
11123 esac
11124 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11125 ;;
11126 esac
11127 ;;
11128 *)
11129 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11130 ;;
11131 esac
11132 ;;
11133 yes)
11134 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11135
11136 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11137
11138 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11139 && test -z "${cf_tst_cflags}" \
11140 && cf_fix_cppflags=no
11141 ;;
11142 esac
11143 done
11144
11145 if test -n "$cf_new_cflags" ; then
11146
11147 CFLAGS="$CFLAGS $cf_new_cflags"
11148 fi
11149
11150 if test -n "$cf_new_cppflags" ; then
11151
11152 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11153 fi
11154
11155 if test -n "$cf_new_extra_cppflags" ; then
11156
11157 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11158 fi
11159
11160 LIBS="$cf_pkgconfig_libs $LIBS"
11161 :
11162 else
11163 cf_pkgconfig_incs=
11164 cf_pkgconfig_libs=
11165 :
11166 fi
11167
11168 else
11169 cf_pkgconfig_incs=
11170 cf_pkgconfig_libs=
11171
11172 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11173
11174 echo "${as_me:-configure}:11174: testing ...before $LIBS ..." 1>&5
11175
11176 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11177 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11178
11179 echo "${as_me:-configure}:11179: testing ...after $LIBS ..." 1>&5
11180
11181 fi
11182
11183 ;;
11184 esac
11185 ;;
11186 esac
11187 fi
11188
11189 cf_have_X_LIBS=yes
11190
11191 else
11192 cf_pkgconfig_incs=
11193 cf_pkgconfig_libs=
11194
11195 LDFLAGS="$X_LIBS $LDFLAGS"
11196
11197 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11198
11199 echo "${as_me:-configure}:11199: testing checking additions to CFLAGS ..." 1>&5
11200
11201 cf_check_cflags="$CFLAGS"
11202 cf_check_cppflags="$CPPFLAGS"
11203
11204 cf_fix_cppflags=no
11205 cf_new_cflags=
11206 cf_new_cppflags=
11207 cf_new_extra_cppflags=
11208
11209 for cf_add_cflags in $X_CFLAGS
11210 do
11211 case $cf_fix_cppflags in
11212 no)
11213 case $cf_add_cflags in #(vi
11214 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11215 case $cf_add_cflags in
11216 -D*)
11217 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11218
11219 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11220 && test -z "${cf_tst_cflags}" \
11221 && cf_fix_cppflags=yes
11222
11223 if test $cf_fix_cppflags = yes ; then
11224 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11225 continue
11226 elif test "${cf_tst_cflags}" = "\"'" ; then
11227 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11228 continue
11229 fi
11230 ;;
11231 esac
11232 case "$CPPFLAGS" in
11233 *$cf_add_cflags) #(vi
11234 ;;
11235 *) #(vi
11236 case $cf_add_cflags in #(vi
11237 -D*)
11238 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11239
11240 CPPFLAGS=`echo "$CPPFLAGS" | \
11241 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11242 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11243
11244 ;;
11245 esac
11246 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11247 ;;
11248 esac
11249 ;;
11250 *)
11251 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11252 ;;
11253 esac
11254 ;;
11255 yes)
11256 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11257
11258 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11259
11260 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11261 && test -z "${cf_tst_cflags}" \
11262 && cf_fix_cppflags=no
11263 ;;
11264 esac
11265 done
11266
11267 if test -n "$cf_new_cflags" ; then
11268 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11269
11270 echo "${as_me:-configure}:11270: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11271
11272 CFLAGS="$CFLAGS $cf_new_cflags"
11273 fi
11274
11275 if test -n "$cf_new_cppflags" ; then
11276 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11277
11278 echo "${as_me:-configure}:11278: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11279
11280 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11281 fi
11282
11283 if test -n "$cf_new_extra_cppflags" ; then
11284 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11285
11286 echo "${as_me:-configure}:11286: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11287
11288 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11289 fi
11290
11291 if test "$cf_check_cflags" != "$CFLAGS" ; then
11292 cat >conftest.$ac_ext <<_ACEOF
11293 #line 11293 "configure"
11294 #include "confdefs.h"
11295 #include <stdio.h>
11296 int
11297 main ()
11298 {
11299 printf("Hello world");
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:11305: \"$ac_link\"") >&5
11306 (eval $ac_link) 2>&5
11307 ac_status=$?
11308 echo "$as_me:11308: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try='test -s conftest$ac_exeext'
11311 { (eval echo "$as_me:11311: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:11314: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 :
11317 else
11318 echo "$as_me: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11321
11322 echo "${as_me:-configure}:11322: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11323
11324 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11325 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11326
11327 echo "${as_me:-configure}:11327: testing but keeping change to \$CPPFLAGS ..." 1>&5
11328
11329 fi
11330 CFLAGS="$cf_check_flags"
11331 fi
11332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11333 fi
11334
11335 echo "$as_me:11335: checking for XOpenDisplay" >&5
11336 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11337 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line 11341 "configure"
11342 #include "confdefs.h"
11343 /* System header to define __stub macros and hopefully few prototypes,
11344 which can conflict with char XOpenDisplay (); below. */
11345 #include <assert.h>
11346 /* Override any gcc2 internal prototype to avoid an error. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 /* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11352 char XOpenDisplay ();
11353 char (*f) ();
11354
11355 int
11356 main ()
11357 {
11358 /* The GNU C library defines this for functions which it implements
11359 to always fail with ENOSYS. Some functions are actually named
11360 something starting with __ and the normal name is an alias. */
11361 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11362 choke me
11363 #else
11364 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11365 #endif
11366
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (eval echo "$as_me:11372: \"$ac_link\"") >&5
11373 (eval $ac_link) 2>&5
11374 ac_status=$?
11375 echo "$as_me:11375: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -s conftest$ac_exeext'
11378 { (eval echo "$as_me:11378: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:11381: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_cv_func_XOpenDisplay=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11387 ac_cv_func_XOpenDisplay=no
11388 fi
11389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11390 fi
11391 echo "$as_me:11391: result: $ac_cv_func_XOpenDisplay" >&5
11392 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11393 if test $ac_cv_func_XOpenDisplay = yes; then
11394 :
11395 else
11396
11397 echo "$as_me:11397: checking for XOpenDisplay in -lX11" >&5
11398 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11399 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402 ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11404 cat >conftest.$ac_ext <<_ACEOF
11405 #line 11405 "configure"
11406 #include "confdefs.h"
11407
11408 /* Override any gcc2 internal prototype to avoid an error. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11414 char XOpenDisplay ();
11415 int
11416 main ()
11417 {
11418 XOpenDisplay ();
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (eval echo "$as_me:11424: \"$ac_link\"") >&5
11425 (eval $ac_link) 2>&5
11426 ac_status=$?
11427 echo "$as_me:11427: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -s conftest$ac_exeext'
11430 { (eval echo "$as_me:11430: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:11433: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_lib_X11_XOpenDisplay=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11439 ac_cv_lib_X11_XOpenDisplay=no
11440 fi
11441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11443 fi
11444 echo "$as_me:11444: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11445 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11446 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11447 LIBS="-lX11 $LIBS"
11448 fi
11449
11450 fi
11451
11452 echo "$as_me:11452: checking for XtAppInitialize" >&5
11453 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11454 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457 cat >conftest.$ac_ext <<_ACEOF
11458 #line 11458 "configure"
11459 #include "confdefs.h"
11460 /* System header to define __stub macros and hopefully few prototypes,
11461 which can conflict with char XtAppInitialize (); below. */
11462 #include <assert.h>
11463 /* Override any gcc2 internal prototype to avoid an error. */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 /* We use char because int might match the return type of a gcc2
11468 builtin and then its argument prototype would still apply. */
11469 char XtAppInitialize ();
11470 char (*f) ();
11471
11472 int
11473 main ()
11474 {
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11479 choke me
11480 #else
11481 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11482 #endif
11483
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:11489: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>&5
11491 ac_status=$?
11492 echo "$as_me:11492: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (eval echo "$as_me:11495: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:11498: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 ac_cv_func_XtAppInitialize=yes
11501 else
11502 echo "$as_me: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 ac_cv_func_XtAppInitialize=no
11505 fi
11506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11507 fi
11508 echo "$as_me:11508: result: $ac_cv_func_XtAppInitialize" >&5
11509 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11510 if test $ac_cv_func_XtAppInitialize = yes; then
11511 :
11512 else
11513
11514 echo "$as_me:11514: checking for XtAppInitialize in -lXt" >&5
11515 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11516 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11521 cat >conftest.$ac_ext <<_ACEOF
11522 #line 11522 "configure"
11523 #include "confdefs.h"
11524
11525 /* Override any gcc2 internal prototype to avoid an error. */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531 char XtAppInitialize ();
11532 int
11533 main ()
11534 {
11535 XtAppInitialize ();
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (eval echo "$as_me:11541: \"$ac_link\"") >&5
11542 (eval $ac_link) 2>&5
11543 ac_status=$?
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -s conftest$ac_exeext'
11547 { (eval echo "$as_me:11547: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:11550: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_cv_lib_Xt_XtAppInitialize=yes
11553 else
11554 echo "$as_me: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 ac_cv_lib_Xt_XtAppInitialize=no
11557 fi
11558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11560 fi
11561 echo "$as_me:11561: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11562 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11563 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
11564
11565 cat >>confdefs.h <<\EOF
11566 #define HAVE_LIBXT 1
11567 EOF
11568
11569 cf_have_X_LIBS=Xt
11570 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
11571 fi
11572
11573 fi
11574
11575 fi
11576
11577 if test $cf_have_X_LIBS = no ; then
11578 { echo "$as_me:11578: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11579 test program. You will have to check and add the proper libraries by hand
11580 to makefile." >&5
11581 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11582 test program. You will have to check and add the proper libraries by hand
11583 to makefile." >&2;}
11584 fi
11585
11586 cf_x_athena_root=$cf_x_athena
11587 cf_x_athena_inc=""
11588
11589 for cf_path in default \
11590 /usr/contrib/X11R6 \
11591 /usr/contrib/X11R5 \
11592 /usr/lib/X11R5 \
11593 /usr/local
11594 do
11595 if test -z "$cf_x_athena_inc" ; then
11596 cf_save="$CPPFLAGS"
11597 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
11598 if test $cf_path != default ; then
11599 CPPFLAGS="$cf_save -I$cf_path/include"
11600 echo "$as_me:11600: checking for $cf_test in $cf_path" >&5
11601 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
11602 else
11603 echo "$as_me:11603: checking for $cf_test" >&5
11604 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
11605 fi
11606 cat >conftest.$ac_ext <<_ACEOF
11607 #line 11607 "configure"
11608 #include "confdefs.h"
11609
11610 #include <X11/Intrinsic.h>
11611 #include <$cf_test>
11612 int
11613 main ()
11614 {
11615
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext
11621 if { (eval echo "$as_me:11621: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>&5
11623 ac_status=$?
11624 echo "$as_me:11624: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:11627: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:11630: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 cf_result=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11636 cf_result=no
11637 fi
11638 rm -f conftest.$ac_objext conftest.$ac_ext
11639 echo "$as_me:11639: result: $cf_result" >&5
11640 echo "${ECHO_T}$cf_result" >&6
11641 if test "$cf_result" = yes ; then
11642 cf_x_athena_inc=$cf_path
11643 break
11644 else
11645 CPPFLAGS="$cf_save"
11646 fi
11647 fi
11648 done
11649
11650 if test -z "$cf_x_athena_inc" ; then
11651 { echo "$as_me:11651: WARNING: Unable to successfully find Athena header files with test program" >&5
11652 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
11653 elif test "$cf_x_athena_inc" != default ; then
11654 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
11655 fi
11656
11657 cf_x_athena_root=$cf_x_athena
11658 cf_x_athena_lib=""
11659
11660 for cf_path in default \
11661 /usr/contrib/X11R6 \
11662 /usr/contrib/X11R5 \
11663 /usr/lib/X11R5 \
11664 /usr/local
11665 do
11666 for cf_lib in \
11667 ${cf_x_athena_root} \
11668 ${cf_x_athena_root}7 \
11669 ${cf_x_athena_root}6
11670 do
11671 for cf_libs in \
11672 "-l$cf_lib -lXmu" \
11673 "-l$cf_lib -lXpm -lXmu" \
11674 "-l${cf_lib}_s -lXmu_s"
11675 do
11676 if test -z "$cf_x_athena_lib" ; then
11677 cf_save="$LIBS"
11678 cf_test=XawSimpleMenuAddGlobalActions
11679 if test $cf_path != default ; then
11680 LIBS="-L$cf_path/lib $cf_libs $LIBS"
11681 echo "$as_me:11681: checking for $cf_libs in $cf_path" >&5
11682 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
11683 else
11684 LIBS="$cf_libs $LIBS"
11685 echo "$as_me:11685: checking for $cf_test in $cf_libs" >&5
11686 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
11687 fi
11688 cat >conftest.$ac_ext <<_ACEOF
11689 #line 11689 "configure"
11690 #include "confdefs.h"
11691
11692 #include <X11/Intrinsic.h>
11693 #include <X11/$cf_x_athena_root/SimpleMenu.h>
11694
11695 int
11696 main ()
11697 {
11698
11699 $cf_test((XtAppContext) 0)
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:11705: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>&5
11707 ac_status=$?
11708 echo "$as_me:11708: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (eval echo "$as_me:11711: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:11714: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 cf_result=yes
11717 else
11718 echo "$as_me: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11720 cf_result=no
11721 fi
11722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11723 echo "$as_me:11723: result: $cf_result" >&5
11724 echo "${ECHO_T}$cf_result" >&6
11725 if test "$cf_result" = yes ; then
11726 cf_x_athena_lib="$cf_libs"
11727 break
11728 fi
11729 LIBS="$cf_save"
11730 fi
11731 done # cf_libs
11732 test -n "$cf_x_athena_lib" && break
11733 done # cf_lib
11734 done
11735
11736 if test -z "$cf_x_athena_lib" ; then
11737 { { echo "$as_me:11737: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
11738 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
11739 { (exit 1); exit 1; }; }
11740 fi
11741
11742 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11743
11744 cat >>confdefs.h <<EOF
11745 #define $cf_x_athena_LIBS 1
11746 EOF
11747
11748 fi
11749
11750 for ac_header in X11/Xpoll.h
11751 do
11752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11753 echo "$as_me:11753: checking for $ac_header" >&5
11754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758 cat >conftest.$ac_ext <<_ACEOF
11759 #line 11759 "configure"
11760 #include "confdefs.h"
11761 #include <$ac_header>
11762 _ACEOF
11763 if { (eval echo "$as_me:11763: \"$ac_cpp conftest.$ac_ext\"") >&5
11764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11765 ac_status=$?
11766 egrep -v '^ *\+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:11769: \$? = $ac_status" >&5
11770 (exit $ac_status); } >/dev/null; then
11771 if test -s conftest.err; then
11772 ac_cpp_err=$ac_c_preproc_warn_flag
11773 else
11774 ac_cpp_err=
11775 fi
11776 else
11777 ac_cpp_err=yes
11778 fi
11779 if test -z "$ac_cpp_err"; then
11780 eval "$as_ac_Header=yes"
11781 else
11782 echo "$as_me: failed program was:" >&5
11783 cat conftest.$ac_ext >&5
11784 eval "$as_ac_Header=no"
11785 fi
11786 rm -f conftest.err conftest.$ac_ext
11787 fi
11788 echo "$as_me:11788: result: `eval echo '${'$as_ac_Header'}'`" >&5
11789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11791 cat >>confdefs.h <<EOF
11792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11793 EOF
11794
11795 fi
11796 done
11797
11798 echo "$as_me:11798: checking for declaration of fd_set" >&5
11799 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
11800 if test "${cf_cv_type_fd_set+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803
11804 echo "${as_me:-configure}:11804: testing sys/types alone ..." 1>&5
11805
11806 cat >conftest.$ac_ext <<_ACEOF
11807 #line 11807 "configure"
11808 #include "confdefs.h"
11809
11810 #include <sys/types.h>
11811 int
11812 main ()
11813 {
11814 fd_set x
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (eval echo "$as_me:11820: \"$ac_compile\"") >&5
11821 (eval $ac_compile) 2>&5
11822 ac_status=$?
11823 echo "$as_me:11823: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (eval echo "$as_me:11826: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:11829: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 cf_cv_type_fd_set=sys/types.h
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 cat conftest.$ac_ext >&5
11835
11836 echo "${as_me:-configure}:11836: testing X11/Xpoll.h ..." 1>&5
11837
11838 cat >conftest.$ac_ext <<_ACEOF
11839 #line 11839 "configure"
11840 #include "confdefs.h"
11841
11842 #ifdef HAVE_X11_XPOLL_H
11843 #include <X11/Xpoll.h>
11844 #endif
11845 int
11846 main ()
11847 {
11848 fd_set x
11849 ;
11850 return 0;
11851 }
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (eval echo "$as_me:11854: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>&5
11856 ac_status=$?
11857 echo "$as_me:11857: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:11860: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:11863: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 cf_cv_type_fd_set=X11/Xpoll.h
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11869
11870 echo "${as_me:-configure}:11870: testing sys/select.h ..." 1>&5
11871
11872 cat >conftest.$ac_ext <<_ACEOF
11873 #line 11873 "configure"
11874 #include "confdefs.h"
11875
11876 #include <sys/types.h>
11877 #include <sys/select.h>
11878 int
11879 main ()
11880 {
11881 fd_set x
11882 ;
11883 return 0;
11884 }
11885 _ACEOF
11886 rm -f conftest.$ac_objext
11887 if { (eval echo "$as_me:11887: \"$ac_compile\"") >&5
11888 (eval $ac_compile) 2>&5
11889 ac_status=$?
11890 echo "$as_me:11890: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -s conftest.$ac_objext'
11893 { (eval echo "$as_me:11893: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:11896: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 cf_cv_type_fd_set=sys/select.h
11899 else
11900 echo "$as_me: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 cf_cv_type_fd_set=unknown
11903 fi
11904 rm -f conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 rm -f conftest.$ac_objext conftest.$ac_ext
11907 fi
11908 rm -f conftest.$ac_objext conftest.$ac_ext
11909 fi
11910 echo "$as_me:11910: result: $cf_cv_type_fd_set" >&5
11911 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
11912 if test $cf_cv_type_fd_set = sys/select.h ; then
11913
11914 cat >>confdefs.h <<\EOF
11915 #define USE_SYS_SELECT_H 1
11916 EOF
11917
11918 fi
11919
11920 echo "$as_me:11920: checking for declaration of fd_mask" >&5
11921 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
11922 if test "${cf_cv_type_fd_mask+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925
11926 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
11927 cat >conftest.$ac_ext <<_ACEOF
11928 #line 11928 "configure"
11929 #include "confdefs.h"
11930
11931 #include <X11/Xpoll.h>
11932 int
11933 main ()
11934 {
11935 fd_mask x
11936 ;
11937 return 0;
11938 }
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (eval echo "$as_me:11941: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>&5
11943 ac_status=$?
11944 echo "$as_me:11944: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:11947: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:11950: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 :
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11956
11957 echo "${as_me:-configure}:11957: testing if we must define CSRG_BASED ..." 1>&5
11958
11959 # Xosdefs.h on Mac OS X may not define this (but it should).
11960 cat >conftest.$ac_ext <<_ACEOF
11961 #line 11961 "configure"
11962 #include "confdefs.h"
11963
11964 #define CSRG_BASED
11965 #include <X11/Xpoll.h>
11966 int
11967 main ()
11968 {
11969 fd_mask x
11970 ;
11971 return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext
11975 if { (eval echo "$as_me:11975: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>&5
11977 ac_status=$?
11978 echo "$as_me:11978: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:11981: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 cf_cv_type_fd_mask=CSRG_BASED
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 fi
11991 rm -f conftest.$ac_objext conftest.$ac_ext
11992 fi
11993 rm -f conftest.$ac_objext conftest.$ac_ext
11994 else
11995 cf_cv_type_fd_mask=$cf_cv_type_fd_set
11996 fi
11997
11998 fi
11999 echo "$as_me:11999: result: $cf_cv_type_fd_mask" >&5
12000 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
12001 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
12002
12003 cat >>confdefs.h <<\EOF
12004 #define CSRG_BASED 1
12005 EOF
12006
12007 fi
12008
12009 echo "$as_me:12009: checking for IRIX 6.5 baud-rate redefinitions" >&5
12010 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
12011 if test "${cf_cv_termio_c_ispeed+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line 12016 "configure"
12017 #include "confdefs.h"
12018
12019 #include <sys/types.h>
12020 #include <sys/termio.h>
12021 int
12022 main ()
12023 {
12024
12025 struct termio foo;
12026 foo.c_ispeed = B38400;
12027 foo.c_ospeed = B9600;
12028
12029 ;
12030 return 0;
12031 }
12032 _ACEOF
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:12034: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12036 ac_status=$?
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:12040: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:12043: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 cf_cv_termio_c_ispeed=yes
12046
12047 else
12048 echo "$as_me: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12050 cf_cv_termio_c_ispeed=no
12051 fi
12052 rm -f conftest.$ac_objext conftest.$ac_ext
12053
12054 fi
12055 echo "$as_me:12055: result: $cf_cv_termio_c_ispeed" >&5
12056 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
12057 test "$cf_cv_termio_c_ispeed" = yes &&
12058 cat >>confdefs.h <<\EOF
12059 #define HAVE_TERMIO_C_ISPEED 1
12060 EOF
12061
12062 # If we notice Xcursor, there is a workaround needed.
12063 echo "$as_me:12063: checking for XcursorGetTheme in -lXcursor" >&5
12064 echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6
12065 if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068 ac_check_lib_save_LIBS=$LIBS
12069 LIBS="-lXcursor $LIBS"
12070 cat >conftest.$ac_ext <<_ACEOF
12071 #line 12071 "configure"
12072 #include "confdefs.h"
12073
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 /* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12080 char XcursorGetTheme ();
12081 int
12082 main ()
12083 {
12084 XcursorGetTheme ();
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:12090: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>&5
12092 ac_status=$?
12093 echo "$as_me:12093: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:12096: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12098 ac_status=$?
12099 echo "$as_me:12099: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_lib_Xcursor_XcursorGetTheme=yes
12102 else
12103 echo "$as_me: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 ac_cv_lib_Xcursor_XcursorGetTheme=no
12106 fi
12107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 echo "$as_me:12110: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5
12111 echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6
12112 if test $ac_cv_lib_Xcursor_XcursorGetTheme = yes; then
12113 cat >>confdefs.h <<\EOF
12114 #define HAVE_LIB_XCURSOR 1
12115 EOF
12116
12117 fi
12118
12119 LIBS="$LIBS $X_EXTRA_LIBS"
12120
12121 for ac_header in \
12122 stropts.h \
12123
12124 do
12125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126 echo "$as_me:12126: checking for $ac_header" >&5
12127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131 cat >conftest.$ac_ext <<_ACEOF
12132 #line 12132 "configure"
12133 #include "confdefs.h"
12134 #include <$ac_header>
12135 _ACEOF
12136 if { (eval echo "$as_me:12136: \"$ac_cpp conftest.$ac_ext\"") >&5
12137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12138 ac_status=$?
12139 egrep -v '^ *\+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:12142: \$? = $ac_status" >&5
12143 (exit $ac_status); } >/dev/null; then
12144 if test -s conftest.err; then
12145 ac_cpp_err=$ac_c_preproc_warn_flag
12146 else
12147 ac_cpp_err=
12148 fi
12149 else
12150 ac_cpp_err=yes
12151 fi
12152 if test -z "$ac_cpp_err"; then
12153 eval "$as_ac_Header=yes"
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 eval "$as_ac_Header=no"
12158 fi
12159 rm -f conftest.err conftest.$ac_ext
12160 fi
12161 echo "$as_me:12161: result: `eval echo '${'$as_ac_Header'}'`" >&5
12162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164 cat >>confdefs.h <<EOF
12165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12166 EOF
12167
12168 fi
12169 done
12170
12171 cf_func_grantpt="grantpt ptsname"
12172 case $host_os in #(vi
12173 darwin[0-9].*) #(vi
12174 ;;
12175 *)
12176 cf_func_grantpt="$cf_func_grantpt posix_openpt"
12177 ;;
12178 esac
12179
12180 for ac_func in $cf_func_grantpt
12181 do
12182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 echo "$as_me:12183: checking for $ac_func" >&5
12184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12185 if eval "test \"\${$as_ac_var+set}\" = set"; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 cat >conftest.$ac_ext <<_ACEOF
12189 #line 12189 "configure"
12190 #include "confdefs.h"
12191 /* System header to define __stub macros and hopefully few prototypes,
12192 which can conflict with char $ac_func (); below. */
12193 #include <assert.h>
12194 /* Override any gcc2 internal prototype to avoid an error. */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12200 char $ac_func ();
12201 char (*f) ();
12202
12203 int
12204 main ()
12205 {
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12210 choke me
12211 #else
12212 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12213 #endif
12214
12215 ;
12216 return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:12220: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>&5
12222 ac_status=$?
12223 echo "$as_me:12223: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (eval echo "$as_me:12226: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:12229: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 eval "$as_ac_var=yes"
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12235 eval "$as_ac_var=no"
12236 fi
12237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 echo "$as_me:12239: result: `eval echo '${'$as_ac_var'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12241 if test `eval echo '${'$as_ac_var'}'` = yes; then
12242 cat >>confdefs.h <<EOF
12243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 EOF
12245
12246 fi
12247 done
12248
12249 cf_grantpt_opts=
12250 if test "x$ac_cv_func_grantpt" = "xyes" ; then
12251 echo "$as_me:12251: checking if grantpt really works" >&5
12252 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12254 #line 12254 "configure"
12255 #include "confdefs.h"
12256
12257 #include <stdlib.h>
12258 #include <termios.h>
12259 #include <unistd.h>
12260 #include <signal.h>
12261 #include <fcntl.h>
12262 #include <errno.h>
12263
12264 #ifndef HAVE_POSIX_OPENPT
12265 #undef posix_openpt
12266 #define posix_openpt(mode) open("/dev/ptmx", mode)
12267 #endif
12268
12269 #ifdef HAVE_STROPTS_H
12270 #include <stropts.h>
12271 #endif
12272
12273 static void failed(int code)
12274 {
12275 perror("conftest");
12276 exit(code);
12277 }
12278
12279 static void my_timeout(int sig)
12280 {
12281 exit(99);
12282 }
12283
12284 int
12285 main ()
12286 {
12287
12288 int code = 0;
12289 int rc;
12290 int pty;
12291 int tty;
12292 char *slave;
12293 struct termios tio;
12294
12295 signal(SIGALRM, my_timeout);
12296
12297 if (alarm(2) == 9)
12298 failed(9);
12299 else if ((pty = posix_openpt(O_RDWR)) < 0)
12300 failed(1);
12301 else if ((rc = grantpt(pty)) < 0)
12302 failed(2);
12303 else if ((rc = unlockpt(pty)) < 0)
12304 failed(3);
12305 else if ((slave = ptsname(pty)) == 0)
12306 failed(4);
12307 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
12308 else if (!isatty(pty))
12309 failed(4);
12310 #endif
12311 #if CONFTEST >= 4
12312 else if ((rc = tcgetattr(pty, &tio)) < 0)
12313 failed(20);
12314 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
12315 failed(21);
12316 #endif
12317 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
12318 * Linux does treat it that way.
12319 */
12320 else if ((tty = open(slave, O_RDWR)) < 0)
12321 failed(5);
12322 #ifdef CONFTEST
12323 #ifdef I_PUSH
12324 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
12325 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
12326 failed(10);
12327 #endif
12328 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
12329 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
12330 failed(11);
12331 #endif
12332 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
12333 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
12334 failed(12);
12335 #endif
12336 #endif /* I_PUSH */
12337 #if CONFTEST >= 5
12338 else if ((rc = tcgetattr(tty, &tio)) < 0)
12339 failed(30);
12340 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
12341 failed(31);
12342 #endif
12343 #endif /* CONFTEST */
12344
12345 ${cf_cv_main_return:-return}(code);
12346
12347 ;
12348 return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (eval echo "$as_me:12352: \"$ac_link\"") >&5
12353 (eval $ac_link) 2>&5
12354 ac_status=$?
12355 echo "$as_me:12355: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (eval echo "$as_me:12358: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:12361: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363
12364 if test "$cross_compiling" = yes; then
12365 ac_cv_func_grantpt=maybe
12366 else
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #line 12368 "configure"
12369 #include "confdefs.h"
12370
12371 #include <stdlib.h>
12372 #include <termios.h>
12373 #include <unistd.h>
12374 #include <signal.h>
12375 #include <fcntl.h>
12376 #include <errno.h>
12377
12378 #ifndef HAVE_POSIX_OPENPT
12379 #undef posix_openpt
12380 #define posix_openpt(mode) open("/dev/ptmx", mode)
12381 #endif
12382
12383 #ifdef HAVE_STROPTS_H
12384 #include <stropts.h>
12385 #endif
12386
12387 static void failed(int code)
12388 {
12389 perror("conftest");
12390 exit(code);
12391 }
12392
12393 static void my_timeout(int sig)
12394 {
12395 exit(99);
12396 }
12397
12398 int main(void)
12399 {
12400
12401 int code = 0;
12402 int rc;
12403 int pty;
12404 int tty;
12405 char *slave;
12406 struct termios tio;
12407
12408 signal(SIGALRM, my_timeout);
12409
12410 if (alarm(2) == 9)
12411 failed(9);
12412 else if ((pty = posix_openpt(O_RDWR)) < 0)
12413 failed(1);
12414 else if ((rc = grantpt(pty)) < 0)
12415 failed(2);
12416 else if ((rc = unlockpt(pty)) < 0)
12417 failed(3);
12418 else if ((slave = ptsname(pty)) == 0)
12419 failed(4);
12420 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
12421 else if (!isatty(pty))
12422 failed(4);
12423 #endif
12424 #if CONFTEST >= 4
12425 else if ((rc = tcgetattr(pty, &tio)) < 0)
12426 failed(20);
12427 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
12428 failed(21);
12429 #endif
12430 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
12431 * Linux does treat it that way.
12432 */
12433 else if ((tty = open(slave, O_RDWR)) < 0)
12434 failed(5);
12435 #ifdef CONFTEST
12436 #ifdef I_PUSH
12437 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
12438 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
12439 failed(10);
12440 #endif
12441 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
12442 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
12443 failed(11);
12444 #endif
12445 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
12446 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
12447 failed(12);
12448 #endif
12449 #endif /* I_PUSH */
12450 #if CONFTEST >= 5
12451 else if ((rc = tcgetattr(tty, &tio)) < 0)
12452 failed(30);
12453 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
12454 failed(31);
12455 #endif
12456 #endif /* CONFTEST */
12457
12458 ${cf_cv_main_return:-return}(code);
12459
12460 }
12461
12462 _ACEOF
12463 rm -f conftest$ac_exeext
12464 if { (eval echo "$as_me:12464: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12466 ac_status=$?
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12469 { (eval echo "$as_me:12469: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:12472: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 :
12475 else
12476 echo "$as_me: program exited with status $ac_status" >&5
12477 echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 ac_cv_func_grantpt=no
12480
12481 fi
12482 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12483 fi
12484
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 cat conftest.$ac_ext >&5
12488 ac_cv_func_grantpt=no
12489 fi
12490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12491 echo "$as_me:12491: result: $ac_cv_func_grantpt" >&5
12492 echo "${ECHO_T}$ac_cv_func_grantpt" >&6
12493
12494 if test "x$ac_cv_func_grantpt" != "xno" ; then
12495
12496 if test "x$ac_cv_func_grantpt" = "xyes" ; then
12497 echo "$as_me:12497: checking for pty features" >&5
12498 echo $ECHO_N "checking for pty features... $ECHO_C" >&6
12499 if test "x$ac_cv_header_stropts_h" = xyes
12500 then
12501 cf_pty_this=0
12502 else
12503 cf_pty_this=3
12504 fi
12505
12506 cf_pty_defines=
12507 while test $cf_pty_this != 6
12508 do
12509
12510 cf_pty_feature=
12511 cf_pty_next=`expr $cf_pty_this + 1`
12512
12513 echo "${as_me:-configure}:12513: testing pty feature test $cf_pty_next:5 ..." 1>&5
12514
12515 if test "$cross_compiling" = yes; then
12516 { { echo "$as_me:12516: error: cannot run test program while cross compiling" >&5
12517 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12518 { (exit 1); exit 1; }; }
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #line 12521 "configure"
12522 #include "confdefs.h"
12523 #define CONFTEST $cf_pty_this
12524 $cf_pty_defines
12525
12526 #include <stdlib.h>
12527 #include <termios.h>
12528 #include <unistd.h>
12529 #include <signal.h>
12530 #include <fcntl.h>
12531 #include <errno.h>
12532
12533 #ifndef HAVE_POSIX_OPENPT
12534 #undef posix_openpt
12535 #define posix_openpt(mode) open("/dev/ptmx", mode)
12536 #endif
12537
12538 #ifdef HAVE_STROPTS_H
12539 #include <stropts.h>
12540 #endif
12541
12542 static void failed(int code)
12543 {
12544 perror("conftest");
12545 exit(code);
12546 }
12547
12548 static void my_timeout(int sig)
12549 {
12550 exit(99);
12551 }
12552
12553 int main(void)
12554 {
12555
12556 int code = 0;
12557 int rc;
12558 int pty;
12559 int tty;
12560 char *slave;
12561 struct termios tio;
12562
12563 signal(SIGALRM, my_timeout);
12564
12565 if (alarm(2) == 9)
12566 failed(9);
12567 else if ((pty = posix_openpt(O_RDWR)) < 0)
12568 failed(1);
12569 else if ((rc = grantpt(pty)) < 0)
12570 failed(2);
12571 else if ((rc = unlockpt(pty)) < 0)
12572 failed(3);
12573 else if ((slave = ptsname(pty)) == 0)
12574 failed(4);
12575 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
12576 else if (!isatty(pty))
12577 failed(4);
12578 #endif
12579 #if CONFTEST >= 4
12580 else if ((rc = tcgetattr(pty, &tio)) < 0)
12581 failed(20);
12582 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
12583 failed(21);
12584 #endif
12585 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
12586 * Linux does treat it that way.
12587 */
12588 else if ((tty = open(slave, O_RDWR)) < 0)
12589 failed(5);
12590 #ifdef CONFTEST
12591 #ifdef I_PUSH
12592 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
12593 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
12594 failed(10);
12595 #endif
12596 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
12597 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
12598 failed(11);
12599 #endif
12600 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
12601 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
12602 failed(12);
12603 #endif
12604 #endif /* I_PUSH */
12605 #if CONFTEST >= 5
12606 else if ((rc = tcgetattr(tty, &tio)) < 0)
12607 failed(30);
12608 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
12609 failed(31);
12610 #endif
12611 #endif /* CONFTEST */
12612
12613 ${cf_cv_main_return:-return}(code);
12614
12615 }
12616
12617 _ACEOF
12618 rm -f conftest$ac_exeext
12619 if { (eval echo "$as_me:12619: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>&5
12621 ac_status=$?
12622 echo "$as_me:12622: \$? = $ac_status" >&5
12623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12624 { (eval echo "$as_me:12624: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:12627: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629
12630 case $cf_pty_next in #(vi
12631 1) #(vi - streams
12632 cf_pty_feature=ptem
12633 ;;
12634 2) #(vi - streams
12635 cf_pty_feature=ldterm
12636 ;;
12637 3) #(vi - streams
12638 cf_pty_feature=ttcompat
12639 ;;
12640 4) #(vi
12641 cf_pty_feature=pty_isatty
12642 ;;
12643 5) #(vi
12644 cf_pty_feature=pty_tcsetattr
12645 ;;
12646 6) #(vi
12647 cf_pty_feature=tty_tcsetattr
12648 ;;
12649 esac
12650
12651 else
12652 echo "$as_me: program exited with status $ac_status" >&5
12653 echo "$as_me: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12655
12656 case $cf_pty_next in #(vi
12657 1|2|3)
12658
12659 echo "${as_me:-configure}:12659: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5
12660
12661 cf_pty_next=3
12662 ;;
12663 esac
12664
12665 fi
12666 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 if test -n "$cf_pty_feature"
12669 then
12670 cf_pty_defines="$cf_pty_defines
12671 #define CONFTEST_$cf_pty_feature 1
12672 "
12673 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature"
12674 fi
12675
12676 cf_pty_this=$cf_pty_next
12677 done
12678 echo "$as_me:12678: result: $cf_grantpt_opts" >&5
12679 echo "${ECHO_T}$cf_grantpt_opts" >&6
12680 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'`
12681 fi
12682 fi
12683 fi
12684
12685 if test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then
12686 echo "$as_me:12686: checking for openpty in -lutil" >&5
12687 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12688 if test "${ac_cv_lib_util_openpty+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691 ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lutil $LIBS"
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line 12694 "configure"
12695 #include "confdefs.h"
12696
12697 /* Override any gcc2 internal prototype to avoid an error. */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 /* We use char because int might match the return type of a gcc2
12702 builtin and then its argument prototype would still apply. */
12703 char openpty ();
12704 int
12705 main ()
12706 {
12707 openpty ();
12708 ;
12709 return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:12713: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>&5
12715 ac_status=$?
12716 echo "$as_me:12716: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -s conftest$ac_exeext'
12719 { (eval echo "$as_me:12719: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:12722: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 ac_cv_lib_util_openpty=yes
12725 else
12726 echo "$as_me: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 ac_cv_lib_util_openpty=no
12729 fi
12730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12732 fi
12733 echo "$as_me:12733: result: $ac_cv_lib_util_openpty" >&5
12734 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12735 if test $ac_cv_lib_util_openpty = yes; then
12736 cf_have_openpty=yes
12737 else
12738 cf_have_openpty=no
12739 fi
12740
12741 if test "$cf_have_openpty" = yes ; then
12742 ac_cv_func_grantpt=no
12743 LIBS="-lutil $LIBS"
12744
12745 cat >>confdefs.h <<\EOF
12746 #define HAVE_OPENPTY 1
12747 EOF
12748
12749 for ac_header in \
12750 util.h \
12751 libutil.h \
12752 pty.h \
12753
12754 do
12755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12756 echo "$as_me:12756: checking for $ac_header" >&5
12757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761 cat >conftest.$ac_ext <<_ACEOF
12762 #line 12762 "configure"
12763 #include "confdefs.h"
12764 #include <$ac_header>
12765 _ACEOF
12766 if { (eval echo "$as_me:12766: \"$ac_cpp conftest.$ac_ext\"") >&5
12767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12768 ac_status=$?
12769 egrep -v '^ *\+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:12772: \$? = $ac_status" >&5
12773 (exit $ac_status); } >/dev/null; then
12774 if test -s conftest.err; then
12775 ac_cpp_err=$ac_c_preproc_warn_flag
12776 else
12777 ac_cpp_err=
12778 fi
12779 else
12780 ac_cpp_err=yes
12781 fi
12782 if test -z "$ac_cpp_err"; then
12783 eval "$as_ac_Header=yes"
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 eval "$as_ac_Header=no"
12788 fi
12789 rm -f conftest.err conftest.$ac_ext
12790 fi
12791 echo "$as_me:12791: result: `eval echo '${'$as_ac_Header'}'`" >&5
12792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12794 cat >>confdefs.h <<EOF
12795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12796 EOF
12797
12798 fi
12799 done
12800
12801 fi
12802 fi
12803
12804 if test "x$ac_cv_func_grantpt" != xno
12805 then
12806 test -n "$verbose" && echo " will rely upon grantpt" 1>&6
12807
12808 echo "${as_me:-configure}:12808: testing will rely upon grantpt ..." 1>&5
12809
12810 cat >>confdefs.h <<\EOF
12811 #define HAVE_WORKING_GRANTPT 1
12812 EOF
12813
12814 for cf_feature in $cf_grantpt_opts
12815 do
12816 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'`
12817
12818 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12819
12820 cat >>confdefs.h <<EOF
12821 #define HAVE_GRANTPT_$cf_FEATURE 1
12822 EOF
12823
12824 done
12825 elif test "x$cf_have_openpty" = xno
12826 then
12827 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6
12828
12829 echo "${as_me:-configure}:12829: testing will rely upon BSD-pseudoterminals ..." 1>&5
12830
12831 else
12832 test -n "$verbose" && echo " will rely upon openpty" 1>&6
12833
12834 echo "${as_me:-configure}:12834: testing will rely upon openpty ..." 1>&5
12835
12836 fi
12837
12838 echo "$as_me:12838: checking if we can use XkbQueryExtension" >&5
12839 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6
12840 if test "${cf_cv_xkb_query_extension+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843
12844 cat >conftest.$ac_ext <<_ACEOF
12845 #line 12845 "configure"
12846 #include "confdefs.h"
12847
12848 #include <X11/Xlib.h>
12849 #include <X11/extensions/XKB.h>
12850 #include <X11/XKBlib.h>
12851
12852 int
12853 main ()
12854 {
12855
12856 int xkbmajor = XkbMajorVersion;
12857 int xkbminor = XkbMinorVersion;
12858 int xkbopcode, xkbevent, xkberror;
12859
12860 if (XkbLibraryVersion(&xkbmajor, &xkbminor)
12861 && XkbQueryExtension((Display *)0,
12862 &xkbopcode,
12863 &xkbevent,
12864 &xkberror,
12865 &xkbmajor,
12866 &xkbminor))
12867 return 0;
12868
12869 ;
12870 return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:12874: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>&5
12876 ac_status=$?
12877 echo "$as_me:12877: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -s conftest.$ac_objext'
12880 { (eval echo "$as_me:12880: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:12883: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885
12886 cf_cv_xkb_query_extension=yes
12887
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 cat conftest.$ac_ext >&5
12891
12892 cf_cv_xkb_query_extension=no
12893
12894 fi
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12896
12897 fi
12898 echo "$as_me:12898: result: $cf_cv_xkb_query_extension" >&5
12899 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6
12900
12901 if test $cf_cv_xkb_query_extension = yes
12902 then
12903
12904 for ac_func in XkbQueryExtension
12905 do
12906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12907 echo "$as_me:12907: checking for $ac_func" >&5
12908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12909 if eval "test \"\${$as_ac_var+set}\" = set"; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912 cat >conftest.$ac_ext <<_ACEOF
12913 #line 12913 "configure"
12914 #include "confdefs.h"
12915 /* System header to define __stub macros and hopefully few prototypes,
12916 which can conflict with char $ac_func (); below. */
12917 #include <assert.h>
12918 /* Override any gcc2 internal prototype to avoid an error. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 /* We use char because int might match the return type of a gcc2
12923 builtin and then its argument prototype would still apply. */
12924 char $ac_func ();
12925 char (*f) ();
12926
12927 int
12928 main ()
12929 {
12930 /* The GNU C library defines this for functions which it implements
12931 to always fail with ENOSYS. Some functions are actually named
12932 something starting with __ and the normal name is an alias. */
12933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12934 choke me
12935 #else
12936 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12937 #endif
12938
12939 ;
12940 return 0;
12941 }
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (eval echo "$as_me:12944: \"$ac_link\"") >&5
12945 (eval $ac_link) 2>&5
12946 ac_status=$?
12947 echo "$as_me:12947: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (eval echo "$as_me:12950: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:12953: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 eval "$as_ac_var=yes"
12956 else
12957 echo "$as_me: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 eval "$as_ac_var=no"
12960 fi
12961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12962 fi
12963 echo "$as_me:12963: result: `eval echo '${'$as_ac_var'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12965 if test `eval echo '${'$as_ac_var'}'` = yes; then
12966 cat >>confdefs.h <<EOF
12967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12968 EOF
12969
12970 fi
12971 done
12972
12973 fi
12974
12975 echo "$as_me:12975: checking if we can use XkbKeycodeToKeysym" >&5
12976 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6
12977 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line 12982 "configure"
12983 #include "confdefs.h"
12984
12985 #include <X11/Xlib.h>
12986 #include <X11/XKBlib.h>
12987
12988 int
12989 main ()
12990 {
12991
12992 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0);
12993
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (eval echo "$as_me:12999: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>&5
13001 ac_status=$?
13002 echo "$as_me:13002: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest.$ac_objext'
13005 { (eval echo "$as_me:13005: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:13008: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010
13011 cf_cv_xkb_keycode_to_keysym=yes
13012
13013 else
13014 echo "$as_me: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13016
13017 cf_cv_xkb_keycode_to_keysym=no
13018
13019 fi
13020 rm -f conftest.$ac_objext conftest.$ac_ext
13021
13022 fi
13023 echo "$as_me:13023: result: $cf_cv_xkb_keycode_to_keysym" >&5
13024 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6
13025
13026 if test $cf_cv_xkb_keycode_to_keysym = yes
13027 then
13028
13029 for ac_func in XkbKeycodeToKeysym
13030 do
13031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13032 echo "$as_me:13032: checking for $ac_func" >&5
13033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13034 if eval "test \"\${$as_ac_var+set}\" = set"; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line 13038 "configure"
13039 #include "confdefs.h"
13040 /* System header to define __stub macros and hopefully few prototypes,
13041 which can conflict with char $ac_func (); below. */
13042 #include <assert.h>
13043 /* Override any gcc2 internal prototype to avoid an error. */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 /* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13049 char $ac_func ();
13050 char (*f) ();
13051
13052 int
13053 main ()
13054 {
13055 /* The GNU C library defines this for functions which it implements
13056 to always fail with ENOSYS. Some functions are actually named
13057 something starting with __ and the normal name is an alias. */
13058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13059 choke me
13060 #else
13061 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13062 #endif
13063
13064 ;
13065 return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (eval echo "$as_me:13069: \"$ac_link\"") >&5
13070 (eval $ac_link) 2>&5
13071 ac_status=$?
13072 echo "$as_me:13072: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:13075: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:13078: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 eval "$as_ac_var=yes"
13081 else
13082 echo "$as_me: failed program was:" >&5
13083 cat conftest.$ac_ext >&5
13084 eval "$as_ac_var=no"
13085 fi
13086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13087 fi
13088 echo "$as_me:13088: result: `eval echo '${'$as_ac_var'}'`" >&5
13089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13090 if test `eval echo '${'$as_ac_var'}'` = yes; then
13091 cat >>confdefs.h <<EOF
13092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13093 EOF
13094
13095 fi
13096 done
13097
13098 fi
13099
13100 echo "$as_me:13100: checking for XKB Bell extension" >&5
13101 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
13102 if test "${cf_cv_xkb_bell_ext+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105
13106 cat >conftest.$ac_ext <<_ACEOF
13107 #line 13107 "configure"
13108 #include "confdefs.h"
13109
13110 #include <X11/Intrinsic.h>
13111 #include <X11/XKBlib.h> /* has the prototype */
13112 #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */
13113
13114 int
13115 main ()
13116 {
13117
13118 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
13119 Atom y;
13120 XkbBell((Display *)0, (Widget)0, 0, y);
13121
13122 ;
13123 return 0;
13124 }
13125 _ACEOF
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (eval echo "$as_me:13127: \"$ac_link\"") >&5
13128 (eval $ac_link) 2>&5
13129 ac_status=$?
13130 echo "$as_me:13130: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -s conftest$ac_exeext'
13133 { (eval echo "$as_me:13133: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:13136: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 cf_cv_xkb_bell_ext=yes
13139 else
13140 echo "$as_me: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13142 cf_cv_xkb_bell_ext=no
13143 fi
13144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13145
13146 fi
13147 echo "$as_me:13147: result: $cf_cv_xkb_bell_ext" >&5
13148 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
13149 test "$cf_cv_xkb_bell_ext" = yes &&
13150 cat >>confdefs.h <<\EOF
13151 #define HAVE_XKB_BELL_EXT 1
13152 EOF
13153
13154 for ac_func in Xutf8LookupString
13155 do
13156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13157 echo "$as_me:13157: checking for $ac_func" >&5
13158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13159 if eval "test \"\${$as_ac_var+set}\" = set"; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 cat >conftest.$ac_ext <<_ACEOF
13163 #line 13163 "configure"
13164 #include "confdefs.h"
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char $ac_func (); below. */
13167 #include <assert.h>
13168 /* Override any gcc2 internal prototype to avoid an error. */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 /* We use char because int might match the return type of a gcc2
13173 builtin and then its argument prototype would still apply. */
13174 char $ac_func ();
13175 char (*f) ();
13176
13177 int
13178 main ()
13179 {
13180 /* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13184 choke me
13185 #else
13186 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13187 #endif
13188
13189 ;
13190 return 0;
13191 }
13192 _ACEOF
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (eval echo "$as_me:13194: \"$ac_link\"") >&5
13195 (eval $ac_link) 2>&5
13196 ac_status=$?
13197 echo "$as_me:13197: \$? = $ac_status" >&5
13198 (exit $ac_status); } &&
13199 { ac_try='test -s conftest$ac_exeext'
13200 { (eval echo "$as_me:13200: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:13203: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 eval "$as_ac_var=yes"
13206 else
13207 echo "$as_me: failed program was:" >&5
13208 cat conftest.$ac_ext >&5
13209 eval "$as_ac_var=no"
13210 fi
13211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13212 fi
13213 echo "$as_me:13213: result: `eval echo '${'$as_ac_var'}'`" >&5
13214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13215 if test `eval echo '${'$as_ac_var'}'` = yes; then
13216 cat >>confdefs.h <<EOF
13217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13218 EOF
13219
13220 else
13221
13222 EXTRAHDRS="$EXTRAHDRS xutf8.h"
13223 EXTRASRCS="$EXTRASRCS xutf8.c"
13224 EXTRAOBJS="$EXTRAOBJS xutf8.o"
13225
13226 fi
13227 done
13228
13229 echo "$as_me:13229: checking if you want narrow prototypes for X libraries" >&5
13230 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
13231
13232 case `$ac_config_guess` in #(vi
13233 *cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi
13234 cf_default_narrowproto=yes
13235 ;;
13236 *)
13237 cf_default_narrowproto=no
13238 ;;
13239 esac
13240
13241 # Check whether --enable-narrowproto or --disable-narrowproto was given.
13242 if test "${enable_narrowproto+set}" = set; then
13243 enableval="$enable_narrowproto"
13244 test "$enableval" != no && enableval=yes
13245 if test "$enableval" != "$cf_default_narrowproto" ; then
13246 enable_narrowproto=$enableval
13247 else
13248 enable_narrowproto=$cf_default_narrowproto
13249 fi
13250 else
13251 enableval=$cf_default_narrowproto
13252 enable_narrowproto=$cf_default_narrowproto
13253
13254 fi;
13255 echo "$as_me:13255: result: $enable_narrowproto" >&5
13256 echo "${ECHO_T}$enable_narrowproto" >&6
13257
13258 echo "$as_me:13258: checking if we should use imake to help" >&5
13259 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
13260
13261 # Check whether --enable-imake or --disable-imake was given.
13262 if test "${enable_imake+set}" = set; then
13263 enableval="$enable_imake"
13264 test "$enableval" != no && enableval=yes
13265 if test "$enableval" != "yes" ; then
13266 enable_imake=no
13267 else
13268 enable_imake=yes
13269 fi
13270 else
13271 enableval=yes
13272 enable_imake=yes
13273
13274 fi;
13275 echo "$as_me:13275: result: $enable_imake" >&5
13276 echo "${ECHO_T}$enable_imake" >&6
13277
13278 if test "$enable_imake" = yes ; then
13279
13280 for ac_prog in xmkmf imake
13281 do
13282 # Extract the first word of "$ac_prog", so it can be a program name with args.
13283 set dummy $ac_prog; ac_word=$2
13284 echo "$as_me:13284: checking for $ac_word" >&5
13285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13286 if test "${ac_cv_path_IMAKE+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 case $IMAKE in
13290 [\\/]* | ?:[\\/]*)
13291 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
13292 ;;
13293 *)
13294 ac_save_IFS=$IFS; IFS=$ac_path_separator
13295 ac_dummy="$PATH"
13296 for ac_dir in $ac_dummy; do
13297 IFS=$ac_save_IFS
13298 test -z "$ac_dir" && ac_dir=.
13299 if $as_executable_p "$ac_dir/$ac_word"; then
13300 ac_cv_path_IMAKE="$ac_dir/$ac_word"
13301 echo "$as_me:13301: found $ac_dir/$ac_word" >&5
13302 break
13303 fi
13304 done
13305
13306 ;;
13307 esac
13308 fi
13309 IMAKE=$ac_cv_path_IMAKE
13310
13311 if test -n "$IMAKE"; then
13312 echo "$as_me:13312: result: $IMAKE" >&5
13313 echo "${ECHO_T}$IMAKE" >&6
13314 else
13315 echo "$as_me:13315: result: no" >&5
13316 echo "${ECHO_T}no" >&6
13317 fi
13318
13319 test -n "$IMAKE" && break
13320 done
13321
13322 if test -n "$IMAKE" ; then
13323
13324 case $IMAKE in # (vi
13325 */imake)
13326 cf_imake_opts="-DUseInstalled=YES" # (vi
13327 ;;
13328 */util/xmkmf)
13329 # A single parameter tells xmkmf where the config-files are:
13330 cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi
13331 ;;
13332 *)
13333 cf_imake_opts=
13334 ;;
13335 esac
13336
13337 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
13338 # config directory.
13339 if mkdir conftestdir; then
13340 CDPATH=; export CDPATH
13341 cf_makefile=`cd $srcdir;pwd`/Imakefile
13342 cd conftestdir
13343
13344 cat >fix_cflags.sed <<'CF_EOF'
13345 s/\\//g
13346 s/[ ][ ]*/ /g
13347 s/"//g
13348 :pack
13349 s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g
13350 t pack
13351 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
13352 s/^IMAKE[ ]/IMAKE_CFLAGS="/
13353 s/ / /g
13354 s/$/"/
13355 CF_EOF
13356
13357 cat >fix_lflags.sed <<'CF_EOF'
13358 s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/
13359 s/$/"/
13360 CF_EOF
13361
13362 echo >./Imakefile
13363 test -f $cf_makefile && cat $cf_makefile >>./Imakefile
13364
13365 cat >> ./Imakefile <<'CF_EOF'
13366 findstddefs:
13367 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed
13368 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
13369 CF_EOF
13370
13371 if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
13372 then
13373 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6
13374
13375 echo "${as_me:-configure}:13375: testing Using $IMAKE $cf_imake_opts ..." 1>&5
13376
13377 else
13378 # sometimes imake doesn't have the config path compiled in. Find it.
13379 cf_config=
13380 for cf_libpath in $X_LIBS $LIBS ; do
13381 case $cf_libpath in # (vi
13382 -L*)
13383 cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
13384 cf_libpath=$cf_libpath/X11/config
13385 if test -d $cf_libpath ; then
13386 cf_config=$cf_libpath
13387 break
13388 fi
13389 ;;
13390 esac
13391 done
13392 if test -z "$cf_config" ; then
13393 { echo "$as_me:13393: WARNING: Could not find imake config-directory" >&5
13394 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
13395 else
13396 cf_imake_opts="$cf_imake_opts -I$cf_config"
13397 if ( $IMAKE -v $cf_imake_opts 2>&5)
13398 then
13399 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6
13400
13401 echo "${as_me:-configure}:13401: testing Using $IMAKE $cf_config ..." 1>&5
13402
13403 else
13404 { echo "$as_me:13404: WARNING: Cannot run $IMAKE" >&5
13405 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
13406 fi
13407 fi
13408 fi
13409
13410 # GNU make sometimes prints "make[1]: Entering...", which
13411 # would confuse us.
13412 eval `make findstddefs 2>/dev/null | grep -v make`
13413
13414 cd ..
13415 rm -rf conftestdir
13416
13417 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
13418 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have
13419 # modified it to support site.cf, adding a kludge for the /usr/include
13420 # directory. Try to filter that out, otherwise gcc won't find its
13421 # headers.
13422 if test -n "$GCC" ; then
13423 if test -n "$IMAKE_CFLAGS" ; then
13424 cf_nostdinc=""
13425 cf_std_incl=""
13426 cf_cpp_opts=""
13427 for cf_opt in $IMAKE_CFLAGS
13428 do
13429 case "$cf_opt" in
13430 -nostdinc) #(vi
13431 cf_nostdinc="$cf_opt"
13432 ;;
13433 -I/usr/include) #(vi
13434 cf_std_incl="$cf_opt"
13435 ;;
13436 *) #(vi
13437 cf_cpp_opts="$cf_cpp_opts $cf_opt"
13438 ;;
13439 esac
13440 done
13441 if test -z "$cf_nostdinc" ; then
13442 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
13443 elif test -z "$cf_std_incl" ; then
13444 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
13445 else
13446 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
13447
13448 echo "${as_me:-configure}:13448: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
13449
13450 IMAKE_CFLAGS="$cf_cpp_opts"
13451 fi
13452 fi
13453 fi
13454 fi
13455
13456 # Some imake configurations define PROJECTROOT with an empty value. Remove
13457 # the empty definition.
13458 case $IMAKE_CFLAGS in
13459 *-DPROJECTROOT=/*)
13460 ;;
13461 *)
13462 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"`
13463 ;;
13464 esac
13465
13466 fi
13467
13468 test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
13469
13470 echo "${as_me:-configure}:13470: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
13471
13472 test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
13473
13474 echo "${as_me:-configure}:13474: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
13475
13476 fi
13477
13478 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
13479
13480 cf_fix_cppflags=no
13481 cf_new_cflags=
13482 cf_new_cppflags=
13483 cf_new_extra_cppflags=
13484
13485 for cf_add_cflags in $IMAKE_CFLAGS
13486 do
13487 case $cf_fix_cppflags in
13488 no)
13489 case $cf_add_cflags in #(vi
13490 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13491 case $cf_add_cflags in
13492 -D*)
13493 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13494
13495 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13496 && test -z "${cf_tst_cflags}" \
13497 && cf_fix_cppflags=yes
13498
13499 if test $cf_fix_cppflags = yes ; then
13500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13501 continue
13502 elif test "${cf_tst_cflags}" = "\"'" ; then
13503 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13504 continue
13505 fi
13506 ;;
13507 esac
13508 case "$CPPFLAGS" in
13509 *$cf_add_cflags) #(vi
13510 ;;
13511 *) #(vi
13512 case $cf_add_cflags in #(vi
13513 -D*)
13514 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13515
13516 CPPFLAGS=`echo "$CPPFLAGS" | \
13517 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13518 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13519
13520 ;;
13521 esac
13522 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13523 ;;
13524 esac
13525 ;;
13526 *)
13527 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13528 ;;
13529 esac
13530 ;;
13531 yes)
13532 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13533
13534 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13535
13536 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13537 && test -z "${cf_tst_cflags}" \
13538 && cf_fix_cppflags=no
13539 ;;
13540 esac
13541 done
13542
13543 if test -n "$cf_new_cflags" ; then
13544
13545 CFLAGS="$CFLAGS $cf_new_cflags"
13546 fi
13547
13548 if test -n "$cf_new_cppflags" ; then
13549
13550 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13551 fi
13552
13553 if test -n "$cf_new_extra_cppflags" ; then
13554
13555 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13556 fi
13557
13558 else
13559 IMAKE_CFLAGS=
13560 IMAKE_LOADFLAGS=
13561 test -n "$verbose" && echo " make fallback definitions" 1>&6
13562
13563 echo "${as_me:-configure}:13563: testing make fallback definitions ..." 1>&5
13564
13565 # We prefer config.guess' values when we can get them, to avoid
13566 # inconsistent results with uname (AIX for instance). However,
13567 # config.guess is not always consistent either.
13568 case $host_os in
13569 *[0-9].[0-9]*)
13570 UNAME_RELEASE="$host_os"
13571 ;;
13572 *)
13573 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
13574 ;;
13575 esac
13576
13577 case .$UNAME_RELEASE in
13578 *[0-9].[0-9]*)
13579 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
13580 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
13581 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
13582 test -z "$OSMINORVERSION" && OSMINORVERSION=0
13583 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
13584 ;;
13585 esac
13586
13587 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
13588 # fallback/fragments for NeedPrototypes, etc.
13589 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
13590
13591 # If this is not set properly, Xaw's scrollbars will not work
13592 if test "$enable_narrowproto" = yes ; then
13593 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
13594 fi
13595
13596 # Other special definitions:
13597 case $host_os in
13598 aix*)
13599 # imake on AIX 5.1 defines AIXV3. really.
13600 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
13601 ;;
13602 irix[56].*) #(vi
13603 # these are needed to make SIGWINCH work in xterm
13604 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
13605 ;;
13606 esac
13607
13608 cf_fix_cppflags=no
13609 cf_new_cflags=
13610 cf_new_cppflags=
13611 cf_new_extra_cppflags=
13612
13613 for cf_add_cflags in $IMAKE_CFLAGS
13614 do
13615 case $cf_fix_cppflags in
13616 no)
13617 case $cf_add_cflags in #(vi
13618 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13619 case $cf_add_cflags in
13620 -D*)
13621 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13622
13623 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13624 && test -z "${cf_tst_cflags}" \
13625 && cf_fix_cppflags=yes
13626
13627 if test $cf_fix_cppflags = yes ; then
13628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13629 continue
13630 elif test "${cf_tst_cflags}" = "\"'" ; then
13631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13632 continue
13633 fi
13634 ;;
13635 esac
13636 case "$CPPFLAGS" in
13637 *$cf_add_cflags) #(vi
13638 ;;
13639 *) #(vi
13640 case $cf_add_cflags in #(vi
13641 -D*)
13642 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13643
13644 CPPFLAGS=`echo "$CPPFLAGS" | \
13645 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13646 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13647
13648 ;;
13649 esac
13650 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13651 ;;
13652 esac
13653 ;;
13654 *)
13655 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13656 ;;
13657 esac
13658 ;;
13659 yes)
13660 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13661
13662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13663
13664 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13665 && test -z "${cf_tst_cflags}" \
13666 && cf_fix_cppflags=no
13667 ;;
13668 esac
13669 done
13670
13671 if test -n "$cf_new_cflags" ; then
13672
13673 CFLAGS="$CFLAGS $cf_new_cflags"
13674 fi
13675
13676 if test -n "$cf_new_cppflags" ; then
13677
13678 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13679 fi
13680
13681 if test -n "$cf_new_extra_cppflags" ; then
13682
13683 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13684 fi
13685
13686 fi
13687
13688 # If we have already established that there is a full termcap implementation,
13689 # suppress the definitions for terminfo that we make have imported from the
13690 # imake-file.
13691 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
13692 case "$IMAKE_CFLAGS" in
13693 *-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
13694
13695 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6
13696
13697 echo "${as_me:-configure}:13697: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5
13698
13699 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
13700 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6
13701
13702 echo "${as_me:-configure}:13702: testing ...result $IMAKE_CFLAGS ..." 1>&5
13703
13704 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6
13705
13706 echo "${as_me:-configure}:13706: testing removing terminfo flags from CPPFLAGS ..." 1>&5
13707
13708 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
13709 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6
13710
13711 echo "${as_me:-configure}:13711: testing ...result $CPPFLAGS ..." 1>&5
13712
13713 ;;
13714 esac
13715 fi
13716
13717 echo "$as_me:13717: checking for default terminal-id" >&5
13718 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
13719
13720 # Check whether --with-terminal-id or --without-terminal-id was given.
13721 if test "${with_terminal_id+set}" = set; then
13722 withval="$with_terminal_id"
13723 default_termid=$withval
13724 else
13725 default_termid=vt420
13726 fi;
13727 echo "$as_me:13727: result: $default_termid" >&5
13728 echo "${ECHO_T}$default_termid" >&6
13729 case $default_termid in
13730 vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
13731 ;;
13732 esac
13733
13734 cat >>confdefs.h <<EOF
13735 #define DFT_DECID "$default_termid"
13736 EOF
13737
13738 echo "$as_me:13738: checking for default terminal-type" >&5
13739 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
13740
13741 # Check whether --with-terminal-type or --without-terminal-type was given.
13742 if test "${with_terminal_type+set}" = set; then
13743 withval="$with_terminal_type"
13744 default_TERM=$withval
13745 else
13746 default_TERM=xterm
13747 fi;
13748 echo "$as_me:13748: result: $default_TERM" >&5
13749 echo "${ECHO_T}$default_TERM" >&6
13750
13751 cat >>confdefs.h <<EOF
13752 #define DFT_TERMTYPE "$default_TERM"
13753 EOF
13754
13755 ###############################################################################
13756 echo "$as_me:13756: checking if backarrow-key should be BS" >&5
13757 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6
13758
13759 # Check whether --enable-backarrow-key or --disable-backarrow-key was given.
13760 if test "${enable_backarrow_key+set}" = set; then
13761 enableval="$enable_backarrow_key"
13762 test "$enableval" != no && enableval=yes
13763 if test "$enableval" != "yes" ; then
13764 backarrow_is_bs=$enableval
13765 else
13766 backarrow_is_bs=yes
13767 fi
13768 else
13769 enableval=yes
13770 backarrow_is_bs=yes
13771
13772 fi;
13773
13774 echo "$as_me:13774: result: $backarrow_is_bs" >&5
13775 echo "${ECHO_T}$backarrow_is_bs" >&6
13776 case $backarrow_is_bs in #(vi
13777 yes) #(vi
13778 backarrow_is_bs=true
13779 ;;
13780 no) #(vi
13781 backarrow_is_bs=false
13782 ;;
13783 esac
13784 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'`
13785
13786 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13787
13788 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'`
13789 backarrow_is_bs=${cf_xbool1}${cf_xbool2}
13790
13791 cat >>confdefs.h <<EOF
13792 #define DEF_BACKARO_BS $backarrow_is_bs
13793 EOF
13794
13795 echo "$as_me:13795: checking if backarrow-key should be treated as erase" >&5
13796 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6
13797
13798 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given.
13799 if test "${enable_backarrow_is_erase+set}" = set; then
13800 enableval="$enable_backarrow_is_erase"
13801 test "$enableval" != yes && enableval=no
13802 if test "$enableval" != "no" ; then
13803 backarrow_is_erase=$enableval
13804 else
13805 backarrow_is_erase=no
13806 fi
13807 else
13808 enableval=no
13809 backarrow_is_erase=no
13810
13811 fi;
13812
13813 echo "$as_me:13813: result: $backarrow_is_erase" >&5
13814 echo "${ECHO_T}$backarrow_is_erase" >&6
13815 case $backarrow_is_erase in #(vi
13816 yes) #(vi
13817 backarrow_is_erase=true
13818 ;;
13819 no) #(vi
13820 backarrow_is_erase=false
13821 ;;
13822 esac
13823 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'`
13824
13825 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13826
13827 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'`
13828 backarrow_is_erase=${cf_xbool1}${cf_xbool2}
13829
13830 cat >>confdefs.h <<EOF
13831 #define DEF_BACKARO_ERASE $backarrow_is_erase
13832 EOF
13833
13834 echo "$as_me:13834: checking for default backspace/DEL setting" >&5
13835 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6
13836
13837 # Check whether --enable-delete-is-del or --disable-delete-is-del was given.
13838 if test "${enable_delete_is_del+set}" = set; then
13839 enableval="$enable_delete_is_del"
13840 delete_is_del=$enableval
13841 else
13842 delete_is_del=maybe
13843 fi;
13844
13845 echo "$as_me:13845: result: $delete_is_del" >&5
13846 echo "${ECHO_T}$delete_is_del" >&6
13847 case $delete_is_del in #(vi
13848 yes) #(vi
13849 delete_is_del=true
13850 ;;
13851 no) #(vi
13852 delete_is_del=false
13853 ;;
13854 esac
13855 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'`
13856
13857 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13858
13859 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'`
13860 delete_is_del=${cf_xbool1}${cf_xbool2}
13861
13862 cat >>confdefs.h <<EOF
13863 #define DEFDELETE_DEL $delete_is_del
13864 EOF
13865
13866 echo "$as_me:13866: checking if alt should send ESC" >&5
13867 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6
13868
13869 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given.
13870 if test "${enable_alt_sends_esc+set}" = set; then
13871 enableval="$enable_alt_sends_esc"
13872 test "$enableval" != yes && enableval=no
13873 if test "$enableval" != "no" ; then
13874 alt_sends_esc=$enableval
13875 else
13876 alt_sends_esc=no
13877 fi
13878 else
13879 enableval=no
13880 alt_sends_esc=no
13881
13882 fi;
13883
13884 echo "$as_me:13884: result: $alt_sends_esc" >&5
13885 echo "${ECHO_T}$alt_sends_esc" >&6
13886 case $alt_sends_esc in #(vi
13887 yes) #(vi
13888 alt_sends_esc=true
13889 ;;
13890 no) #(vi
13891 alt_sends_esc=false
13892 ;;
13893 esac
13894 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'`
13895
13896 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13897
13898 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'`
13899 alt_sends_esc=${cf_xbool1}${cf_xbool2}
13900
13901 cat >>confdefs.h <<EOF
13902 #define DEF_ALT_SENDS_ESC $alt_sends_esc
13903 EOF
13904
13905 echo "$as_me:13905: checking if meta should send ESC" >&5
13906 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6
13907
13908 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given.
13909 if test "${enable_meta_sends_esc+set}" = set; then
13910 enableval="$enable_meta_sends_esc"
13911 test "$enableval" != yes && enableval=no
13912 if test "$enableval" != "no" ; then
13913 meta_sends_esc=$enableval
13914 else
13915 meta_sends_esc=no
13916 fi
13917 else
13918 enableval=no
13919 meta_sends_esc=no
13920
13921 fi;
13922
13923 echo "$as_me:13923: result: $meta_sends_esc" >&5
13924 echo "${ECHO_T}$meta_sends_esc" >&6
13925 case $meta_sends_esc in #(vi
13926 yes) #(vi
13927 meta_sends_esc=true
13928 ;;
13929 no) #(vi
13930 meta_sends_esc=false
13931 ;;
13932 esac
13933 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'`
13934
13935 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13936
13937 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'`
13938 meta_sends_esc=${cf_xbool1}${cf_xbool2}
13939
13940 cat >>confdefs.h <<EOF
13941 #define DEF_META_SENDS_ESC $meta_sends_esc
13942 EOF
13943
13944 ###############################################################################
13945 # Extract the first word of "tic", so it can be a program name with args.
13946 set dummy tic; ac_word=$2
13947 echo "$as_me:13947: checking for $ac_word" >&5
13948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13949 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952 if test -n "$cf_tic_prog"; then
13953 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
13954 else
13955 ac_save_IFS=$IFS; IFS=$ac_path_separator
13956 ac_dummy="$PATH"
13957 for ac_dir in $ac_dummy; do
13958 IFS=$ac_save_IFS
13959 test -z "$ac_dir" && ac_dir=.
13960 $as_executable_p "$ac_dir/$ac_word" || continue
13961 ac_cv_prog_cf_tic_prog="yes"
13962 echo "$as_me:13962: found $ac_dir/$ac_word" >&5
13963 break
13964 done
13965
13966 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
13967 fi
13968 fi
13969 cf_tic_prog=$ac_cv_prog_cf_tic_prog
13970 if test -n "$cf_tic_prog"; then
13971 echo "$as_me:13971: result: $cf_tic_prog" >&5
13972 echo "${ECHO_T}$cf_tic_prog" >&6
13973 else
13974 echo "$as_me:13974: result: no" >&5
13975 echo "${ECHO_T}no" >&6
13976 fi
13977
13978 if test "$cf_tic_prog" = yes ; then
13979 echo "$as_me:13979: checking for private terminfo-directory" >&5
13980 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
13981
13982 # Check whether --with-own-terminfo or --without-own-terminfo was given.
13983 if test "${with_own_terminfo+set}" = set; then
13984 withval="$with_own_terminfo"
13985 TERMINFO_DIR=$withval
13986 else
13987 TERMINFO_DIR=${TERMINFO-none}
13988 fi;
13989 echo "$as_me:13989: result: $TERMINFO_DIR" >&5
13990 echo "${ECHO_T}$TERMINFO_DIR" >&6
13991 if test "$TERMINFO_DIR" = yes ; then
13992 { echo "$as_me:13992: WARNING: no value given" >&5
13993 echo "$as_me: WARNING: no value given" >&2;}
13994 elif test "$TERMINFO_DIR" != none ; then
13995 if test -d $TERMINFO_DIR ; then
13996
13997 cat >>confdefs.h <<EOF
13998 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
13999 EOF
14000
14001 else
14002 { echo "$as_me:14002: WARNING: not a directory" >&5
14003 echo "$as_me: WARNING: not a directory" >&2;}
14004 fi
14005 elif test "$prefix" != NONE ; then
14006 TERMINFO_DIR='${prefix}/lib/terminfo'
14007 elif test -d /usr/lib/terminfo ; then
14008 TERMINFO_DIR=/usr/lib/terminfo
14009 else
14010 TERMINFO_DIR=
14011 fi
14012 SET_TERMINFO=
14013 if test -n "$TERMINFO_DIR" ; then
14014 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
14015 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
14016 fi
14017 no_ticprog=
14018 else
14019 no_ticprog="#"
14020 TERMINFO_DIR=
14021 SET_TERMINFO=
14022 fi
14023
14024 ###############################################################################
14025
14026 echo "$as_me:14026: checking if you want active-icons" >&5
14027 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
14028
14029 # Check whether --enable-active-icon or --disable-active-icon was given.
14030 if test "${enable_active_icon+set}" = set; then
14031 enableval="$enable_active_icon"
14032 test "$enableval" != no && enableval=yes
14033 if test "$enableval" != "yes" ; then
14034 enable_active_icon=no
14035 else
14036 enable_active_icon=yes
14037 fi
14038 else
14039 enableval=yes
14040 enable_active_icon=yes
14041
14042 fi;
14043 echo "$as_me:14043: result: $enable_active_icon" >&5
14044 echo "${ECHO_T}$enable_active_icon" >&6
14045 if test "$enable_active_icon" = no ; then
14046
14047 cat >>confdefs.h <<\EOF
14048 #define NO_ACTIVE_ICON 1
14049 EOF
14050
14051 fi
14052
14053 echo "$as_me:14053: checking if you want ANSI color" >&5
14054 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
14055
14056 # Check whether --enable-ansi-color or --disable-ansi-color was given.
14057 if test "${enable_ansi_color+set}" = set; then
14058 enableval="$enable_ansi_color"
14059 test "$enableval" != no && enableval=yes
14060 if test "$enableval" != "yes" ; then
14061 enable_ansi_color=no
14062 else
14063 enable_ansi_color=yes
14064 fi
14065 else
14066 enableval=yes
14067 enable_ansi_color=yes
14068
14069 fi;
14070 echo "$as_me:14070: result: $enable_ansi_color" >&5
14071 echo "${ECHO_T}$enable_ansi_color" >&6
14072 test "$enable_ansi_color" = no &&
14073 cat >>confdefs.h <<\EOF
14074 #define OPT_ISO_COLORS 0
14075 EOF
14076
14077 if test "$enable_ansi_color" = yes ; then
14078
14079 echo "$as_me:14079: checking if you want 16 colors like aixterm" >&5
14080 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
14081
14082 # Check whether --enable-16-color or --disable-16-color was given.
14083 if test "${enable_16_color+set}" = set; then
14084 enableval="$enable_16_color"
14085 test "$enableval" != no && enableval=yes
14086 if test "$enableval" != "yes" ; then
14087 enable_16_color=no
14088 else
14089 enable_16_color=yes
14090 fi
14091 else
14092 enableval=yes
14093 enable_16_color=yes
14094
14095 fi;
14096 echo "$as_me:14096: result: $enable_16_color" >&5
14097 echo "${ECHO_T}$enable_16_color" >&6
14098 test "$enable_16_color" = no &&
14099 cat >>confdefs.h <<\EOF
14100 #define OPT_AIX_COLORS 0
14101 EOF
14102
14103 echo "$as_me:14103: checking if you want 256 colors" >&5
14104 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
14105
14106 # Check whether --enable-256-color or --disable-256-color was given.
14107 if test "${enable_256_color+set}" = set; then
14108 enableval="$enable_256_color"
14109 test "$enableval" != yes && enableval=no
14110 if test "$enableval" != "no" ; then
14111 enable_256_color=yes
14112 else
14113 enable_256_color=no
14114 fi
14115 else
14116 enableval=no
14117 enable_256_color=no
14118
14119 fi;
14120 echo "$as_me:14120: result: $enable_256_color" >&5
14121 echo "${ECHO_T}$enable_256_color" >&6
14122 if test "$enable_256_color" = yes ; then
14123 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
14124 EXTRAHDRS="$EXTRAHDRS 256colres.h"
14125
14126 cat >>confdefs.h <<\EOF
14127 #define OPT_256_COLORS 1
14128 EOF
14129
14130 else
14131 echo "$as_me:14131: checking if you want 88 colors" >&5
14132 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
14133
14134 # Check whether --enable-88-color or --disable-88-color was given.
14135 if test "${enable_88_color+set}" = set; then
14136 enableval="$enable_88_color"
14137 test "$enableval" != yes && enableval=no
14138 if test "$enableval" != "no" ; then
14139 enable_88_color=yes
14140 else
14141 enable_88_color=no
14142 fi
14143 else
14144 enableval=no
14145 enable_88_color=no
14146
14147 fi;
14148 echo "$as_me:14148: result: $enable_88_color" >&5
14149 echo "${ECHO_T}$enable_88_color" >&6
14150 if test "$enable_88_color" = yes ; then
14151 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
14152 EXTRAHDRS="$EXTRAHDRS 88colres.h"
14153
14154 cat >>confdefs.h <<\EOF
14155 #define OPT_88_COLORS 1
14156 EOF
14157
14158 fi
14159 fi
14160
14161 fi
14162
14163 echo "$as_me:14163: checking if you want blinking cursor" >&5
14164 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
14165
14166 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
14167 if test "${enable_blink_cursor+set}" = set; then
14168 enableval="$enable_blink_cursor"
14169 test "$enableval" != no && enableval=yes
14170 if test "$enableval" != "yes" ; then
14171 enable_blink_curs=no
14172 else
14173 enable_blink_curs=yes
14174 fi
14175 else
14176 enableval=yes
14177 enable_blink_curs=yes
14178
14179 fi;
14180 echo "$as_me:14180: result: $enable_blink_curs" >&5
14181 echo "${ECHO_T}$enable_blink_curs" >&6
14182 test "$enable_blink_curs" = no &&
14183 cat >>confdefs.h <<\EOF
14184 #define OPT_BLINK_CURS 0
14185 EOF
14186
14187 echo "$as_me:14187: checking if you want to ignore Linux's broken palette-strings" >&5
14188 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
14189
14190 case $host_os in #(vi
14191 linux*)
14192 assume_broken_osc=yes ;; #(vi
14193 *)
14194 assume_broken_osc=no ;;
14195 esac
14196
14197 # Check whether --enable-broken-osc or --disable-broken-osc was given.
14198 if test "${enable_broken_osc+set}" = set; then
14199 enableval="$enable_broken_osc"
14200 test "$enableval" != no && enableval=yes
14201 if test "$enableval" != "$assume_broken_osc" ; then
14202 enable_broken_osc=$enableval
14203 else
14204 enable_broken_osc=$enableval
14205 fi
14206 else
14207 enableval=$assume_broken_osc
14208 enable_broken_osc=$enableval
14209
14210 fi;
14211 echo "$as_me:14211: result: $enable_broken_osc" >&5
14212 echo "${ECHO_T}$enable_broken_osc" >&6
14213 if test "$enable_broken_osc" = yes ; then
14214
14215 cat >>confdefs.h <<\EOF
14216 #define OPT_BROKEN_OSC 1
14217 EOF
14218
14219 else
14220
14221 cat >>confdefs.h <<\EOF
14222 #define OPT_BROKEN_OSC 0
14223 EOF
14224
14225 fi
14226
14227 echo "$as_me:14227: checking if you want to allow broken string-terminators" >&5
14228 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
14229
14230 # Check whether --enable-broken-st or --disable-broken-st was given.
14231 if test "${enable_broken_st+set}" = set; then
14232 enableval="$enable_broken_st"
14233 test "$enableval" != yes && enableval=no
14234 if test "$enableval" != "no" ; then
14235 enable_broken_st=no
14236 else
14237 enable_broken_st=yes
14238 fi
14239 else
14240 enableval=no
14241 enable_broken_st=yes
14242
14243 fi;
14244 echo "$as_me:14244: result: $enable_broken_st" >&5
14245 echo "${ECHO_T}$enable_broken_st" >&6
14246 test "$enable_broken_st" = no &&
14247 cat >>confdefs.h <<\EOF
14248 #define OPT_BROKEN_ST 0
14249 EOF
14250
14251 echo "$as_me:14251: checking if you want printable 128-159" >&5
14252 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
14253
14254 # Check whether --enable-c1-print or --disable-c1-print was given.
14255 if test "${enable_c1_print+set}" = set; then
14256 enableval="$enable_c1_print"
14257 test "$enableval" != no && enableval=yes
14258 if test "$enableval" != "yes" ; then
14259 enable_c1_print=no
14260 else
14261 enable_c1_print=yes
14262 fi
14263 else
14264 enableval=yes
14265 enable_c1_print=yes
14266
14267 fi;
14268 echo "$as_me:14268: result: $enable_c1_print" >&5
14269 echo "${ECHO_T}$enable_c1_print" >&6
14270 test "$enable_c1_print" = no &&
14271 cat >>confdefs.h <<\EOF
14272 #define OPT_C1_PRINT 0
14273 EOF
14274
14275 if test "$enable_ansi_color" = yes ; then
14276
14277 echo "$as_me:14277: checking if you want bold colors mapped like IBM PC" >&5
14278 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
14279
14280 # Check whether --enable-bold-color or --disable-bold-color was given.
14281 if test "${enable_bold_color+set}" = set; then
14282 enableval="$enable_bold_color"
14283 test "$enableval" != no && enableval=yes
14284 if test "$enableval" != "yes" ; then
14285 enable_pc_color=no
14286 else
14287 enable_pc_color=yes
14288 fi
14289 else
14290 enableval=yes
14291 enable_pc_color=yes
14292
14293 fi;
14294 echo "$as_me:14294: result: $enable_pc_color" >&5
14295 echo "${ECHO_T}$enable_pc_color" >&6
14296 test "$enable_pc_color" = no &&
14297 cat >>confdefs.h <<\EOF
14298 #define OPT_PC_COLORS 0
14299 EOF
14300
14301 echo "$as_me:14301: checking if you want separate color-classes" >&5
14302 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
14303
14304 # Check whether --enable-color-class or --disable-color-class was given.
14305 if test "${enable_color_class+set}" = set; then
14306 enableval="$enable_color_class"
14307 test "$enableval" != no && enableval=yes
14308 if test "$enableval" != "yes" ; then
14309 enable_color_class=no
14310 else
14311 enable_color_class=yes
14312 fi
14313 else
14314 enableval=yes
14315 enable_color_class=yes
14316
14317 fi;
14318 echo "$as_me:14318: result: $enable_color_class" >&5
14319 echo "${ECHO_T}$enable_color_class" >&6
14320 test "$enable_color_class" = no &&
14321 cat >>confdefs.h <<\EOF
14322 #define OPT_COLOR_CLASS 0
14323 EOF
14324
14325 echo "$as_me:14325: checking if you want color-mode enabled by default" >&5
14326 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
14327
14328 # Check whether --enable-color-mode or --disable-color-mode was given.
14329 if test "${enable_color_mode+set}" = set; then
14330 enableval="$enable_color_mode"
14331 test "$enableval" != no && enableval=yes
14332 if test "$enableval" != "yes" ; then
14333 default_colormode=no
14334 else
14335 default_colormode=yes
14336 fi
14337 else
14338 enableval=yes
14339 default_colormode=yes
14340
14341 fi;
14342 echo "$as_me:14342: result: $default_colormode" >&5
14343 echo "${ECHO_T}$default_colormode" >&6
14344 test "$default_colormode" = no &&
14345 cat >>confdefs.h <<\EOF
14346 #define DFT_COLORMODE 0
14347 EOF
14348
14349 fi
14350
14351 echo "$as_me:14351: checking if you want support for color highlighting" >&5
14352 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
14353
14354 # Check whether --enable-highlighting or --disable-highlighting was given.
14355 if test "${enable_highlighting+set}" = set; then
14356 enableval="$enable_highlighting"
14357 test "$enableval" != no && enableval=yes
14358 if test "$enableval" != "yes" ; then
14359 default_highlight=no
14360 else
14361 default_highlight=yes
14362 fi
14363 else
14364 enableval=yes
14365 default_highlight=yes
14366
14367 fi;
14368 echo "$as_me:14368: result: $default_highlight" >&5
14369 echo "${ECHO_T}$default_highlight" >&6
14370 test "$default_highlight" = no &&
14371 cat >>confdefs.h <<\EOF
14372 #define OPT_HIGHLIGHT_COLOR 0
14373 EOF
14374
14375 echo "$as_me:14375: checking if you want support for doublesize characters" >&5
14376 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
14377
14378 # Check whether --enable-doublechars or --disable-doublechars was given.
14379 if test "${enable_doublechars+set}" = set; then
14380 enableval="$enable_doublechars"
14381 test "$enableval" != no && enableval=yes
14382 if test "$enableval" != "yes" ; then
14383 enable_doublechars=no
14384 else
14385 enable_doublechars=yes
14386 fi
14387 else
14388 enableval=yes
14389 enable_doublechars=yes
14390
14391 fi;
14392 echo "$as_me:14392: result: $enable_doublechars" >&5
14393 echo "${ECHO_T}$enable_doublechars" >&6
14394 test "$enable_doublechars" = no &&
14395 cat >>confdefs.h <<\EOF
14396 #define OPT_DEC_CHRSET 0
14397 EOF
14398
14399 echo "$as_me:14399: checking if you want fallback-support for box characters" >&5
14400 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
14401
14402 # Check whether --enable-boxchars or --disable-boxchars was given.
14403 if test "${enable_boxchars+set}" = set; then
14404 enableval="$enable_boxchars"
14405 test "$enableval" != no && enableval=yes
14406 if test "$enableval" != "yes" ; then
14407 enable_boxchars=no
14408 else
14409 enable_boxchars=yes
14410 fi
14411 else
14412 enableval=yes
14413 enable_boxchars=yes
14414
14415 fi;
14416 echo "$as_me:14416: result: $enable_boxchars" >&5
14417 echo "${ECHO_T}$enable_boxchars" >&6
14418 test "$enable_boxchars" = no &&
14419 cat >>confdefs.h <<\EOF
14420 #define OPT_BOX_CHARS 0
14421 EOF
14422
14423 echo "$as_me:14423: checking if you want to allow spawning new xterms" >&5
14424 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
14425
14426 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
14427 if test "${enable_exec_xterm+set}" = set; then
14428 enableval="$enable_exec_xterm"
14429 test "$enableval" != yes && enableval=no
14430 if test "$enableval" != "no" ; then
14431 enable_exec_xterm=yes
14432 else
14433 enable_exec_xterm=no
14434 fi
14435 else
14436 enableval=no
14437 enable_exec_xterm=no
14438
14439 fi;
14440 echo "$as_me:14440: result: $enable_exec_xterm" >&5
14441 echo "${ECHO_T}$enable_exec_xterm" >&6
14442 if test "$enable_exec_xterm" = yes ; then
14443
14444 echo "$as_me:14444: checking for proc tree with cwd-support" >&5
14445 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
14446 if test "${cf_cv_procfs_cwd+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449
14450 cf_cv_procfs_cwd=no
14451 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
14452 do
14453 if test -d $cf_path && \
14454 test -d $cf_path/$$ && \
14455 ( test -d $cf_path/$$/cwd || \
14456 test -L $cf_path/$$/cwd ); then
14457 cf_cv_procfs_cwd=$cf_path
14458 break
14459 fi
14460 done
14461
14462 fi
14463 echo "$as_me:14463: result: $cf_cv_procfs_cwd" >&5
14464 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
14465
14466 if test "$cf_cv_procfs_cwd" = no ; then
14467 { echo "$as_me:14467: WARNING: no suitable proc filesystem found" >&5
14468 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
14469 else
14470
14471 cat >>confdefs.h <<EOF
14472 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
14473 EOF
14474
14475 cat >>confdefs.h <<\EOF
14476 #define OPT_EXEC_XTERM 1
14477 EOF
14478
14479 fi
14480 fi
14481
14482 echo "$as_me:14482: checking if you want to use double-buffering" >&5
14483 echo $ECHO_N "checking if you want to use double-buffering... $ECHO_C" >&6
14484
14485 # Check whether --enable-double-buffer or --disable-double-buffer was given.
14486 if test "${enable_double_buffer+set}" = set; then
14487 enableval="$enable_double_buffer"
14488 test "$enableval" != yes && enableval=no
14489 if test "$enableval" != "no" ; then
14490 enable_double_bfr=yes
14491 else
14492 enable_double_bfr=no
14493 fi
14494 else
14495 enableval=no
14496 enable_double_bfr=no
14497
14498 fi;
14499 echo "$as_me:14499: result: $enable_double_bfr" >&5
14500 echo "${ECHO_T}$enable_double_bfr" >&6
14501 if test "$enable_double_bfr" = yes ; then
14502 case "x$LIBS" in
14503 *Xext*)
14504 ;;
14505 *)
14506
14507 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
14508 test -n "$verbose" && echo " found package Xext" 1>&6
14509
14510 echo "${as_me:-configure}:14510: testing found package Xext ..." 1>&5
14511
14512 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
14513 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
14514 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
14515
14516 echo "${as_me:-configure}:14516: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14517
14518 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
14519
14520 echo "${as_me:-configure}:14520: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
14521
14522 cf_fix_cppflags=no
14523 cf_new_cflags=
14524 cf_new_cppflags=
14525 cf_new_extra_cppflags=
14526
14527 for cf_add_cflags in $cf_pkgconfig_incs
14528 do
14529 case $cf_fix_cppflags in
14530 no)
14531 case $cf_add_cflags in #(vi
14532 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14533 case $cf_add_cflags in
14534 -D*)
14535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14536
14537 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14538 && test -z "${cf_tst_cflags}" \
14539 && cf_fix_cppflags=yes
14540
14541 if test $cf_fix_cppflags = yes ; then
14542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14543 continue
14544 elif test "${cf_tst_cflags}" = "\"'" ; then
14545 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14546 continue
14547 fi
14548 ;;
14549 esac
14550 case "$CPPFLAGS" in
14551 *$cf_add_cflags) #(vi
14552 ;;
14553 *) #(vi
14554 case $cf_add_cflags in #(vi
14555 -D*)
14556 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14557
14558 CPPFLAGS=`echo "$CPPFLAGS" | \
14559 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14560 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14561
14562 ;;
14563 esac
14564 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14565 ;;
14566 esac
14567 ;;
14568 *)
14569 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14570 ;;
14571 esac
14572 ;;
14573 yes)
14574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14575
14576 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14577
14578 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14579 && test -z "${cf_tst_cflags}" \
14580 && cf_fix_cppflags=no
14581 ;;
14582 esac
14583 done
14584
14585 if test -n "$cf_new_cflags" ; then
14586
14587 CFLAGS="$CFLAGS $cf_new_cflags"
14588 fi
14589
14590 if test -n "$cf_new_cppflags" ; then
14591
14592 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14593 fi
14594
14595 if test -n "$cf_new_extra_cppflags" ; then
14596
14597 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14598 fi
14599
14600 LIBS="$cf_pkgconfig_libs $LIBS"
14601 :
14602 else
14603 cf_pkgconfig_incs=
14604 cf_pkgconfig_libs=
14605
14606 echo "$as_me:14606: checking for XextCreateExtension in -lXext" >&5
14607 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
14608 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-lXext $LIBS"
14613 cat >conftest.$ac_ext <<_ACEOF
14614 #line 14614 "configure"
14615 #include "confdefs.h"
14616
14617 /* Override any gcc2 internal prototype to avoid an error. */
14618 #ifdef __cplusplus
14619 extern "C"
14620 #endif
14621 /* We use char because int might match the return type of a gcc2
14622 builtin and then its argument prototype would still apply. */
14623 char XextCreateExtension ();
14624 int
14625 main ()
14626 {
14627 XextCreateExtension ();
14628 ;
14629 return 0;
14630 }
14631 _ACEOF
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (eval echo "$as_me:14633: \"$ac_link\"") >&5
14634 (eval $ac_link) 2>&5
14635 ac_status=$?
14636 echo "$as_me:14636: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:14639: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:14642: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_lib_Xext_XextCreateExtension=yes
14645 else
14646 echo "$as_me: failed program was:" >&5
14647 cat conftest.$ac_ext >&5
14648 ac_cv_lib_Xext_XextCreateExtension=no
14649 fi
14650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14651 LIBS=$ac_check_lib_save_LIBS
14652 fi
14653 echo "$as_me:14653: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
14654 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
14655 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
14656 LIBS="-lXext $LIBS"
14657 fi
14658
14659 fi
14660
14661 ;;
14662 esac
14663
14664 cat >>confdefs.h <<\EOF
14665 #define OPT_DOUBLE_BUFFER 1
14666 EOF
14667
14668 fi
14669
14670 echo "$as_me:14670: checking if you want to use FreeType library" >&5
14671 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
14672
14673 # Check whether --enable-freetype or --disable-freetype was given.
14674 if test "${enable_freetype+set}" = set; then
14675 enableval="$enable_freetype"
14676 test "$enableval" != no && enableval=yes
14677 if test "$enableval" != "yes" ; then
14678 enable_freetype=no
14679 else
14680 enable_freetype=yes
14681 fi
14682 else
14683 enableval=yes
14684 enable_freetype=yes
14685
14686 fi;
14687 echo "$as_me:14687: result: $enable_freetype" >&5
14688 echo "${ECHO_T}$enable_freetype" >&6
14689 if test "$enable_freetype" = yes ; then
14690
14691 cf_cv_x_freetype_incs=no
14692 cf_cv_x_freetype_libs=no
14693 cf_extra_freetype_libs=
14694 FREETYPE_CONFIG=none
14695 FREETYPE_PARAMS=
14696
14697 echo "$as_me:14697: checking for FreeType configuration script" >&5
14698 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6
14699
14700 # Check whether --with-freetype-config or --without-freetype-config was given.
14701 if test "${with_freetype_config+set}" = set; then
14702 withval="$with_freetype_config"
14703 cf_cv_x_freetype_cfgs="$withval"
14704 else
14705 cf_cv_x_freetype_cfgs=auto
14706 fi;
14707 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto
14708 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none
14709 echo "$as_me:14709: result: $cf_cv_x_freetype_cfgs" >&5
14710 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6
14711
14712 case $cf_cv_x_freetype_cfgs in
14713 none) #(vi
14714 echo "$as_me:14714: checking if you specified -D/-I options for FreeType" >&5
14715 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
14716
14717 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
14718 if test "${with_freetype_cflags+set}" = set; then
14719 withval="$with_freetype_cflags"
14720 cf_cv_x_freetype_incs="$with_freetype_cflags"
14721 else
14722 cf_cv_x_freetype_incs=no
14723 fi;
14724 echo "$as_me:14724: result: $cf_cv_x_freetype_incs" >&5
14725 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
14726
14727 echo "$as_me:14727: checking if you specified -L/-l options for FreeType" >&5
14728 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
14729
14730 # Check whether --with-freetype-libs or --without-freetype-libs was given.
14731 if test "${with_freetype_libs+set}" = set; then
14732 withval="$with_freetype_libs"
14733 cf_cv_x_freetype_libs="$with_freetype_libs"
14734 else
14735 cf_cv_x_freetype_libs=no
14736 fi;
14737 echo "$as_me:14737: result: $cf_cv_x_freetype_libs" >&5
14738 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
14739 ;;
14740 auto) #(vi
14741 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
14742 FREETYPE_CONFIG=$PKG_CONFIG
14743 FREETYPE_PARAMS=xft
14744 else
14745 # Extract the first word of "freetype-config", so it can be a program name with args.
14746 set dummy freetype-config; ac_word=$2
14747 echo "$as_me:14747: checking for $ac_word" >&5
14748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14749 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752 case $FREETYPE_CONFIG in
14753 [\\/]* | ?:[\\/]*)
14754 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
14755 ;;
14756 *)
14757 ac_save_IFS=$IFS; IFS=$ac_path_separator
14758 ac_dummy="$PATH"
14759 for ac_dir in $ac_dummy; do
14760 IFS=$ac_save_IFS
14761 test -z "$ac_dir" && ac_dir=.
14762 if $as_executable_p "$ac_dir/$ac_word"; then
14763 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word"
14764 echo "$as_me:14764: found $ac_dir/$ac_word" >&5
14765 break
14766 fi
14767 done
14768
14769 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none"
14770 ;;
14771 esac
14772 fi
14773 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
14774
14775 if test -n "$FREETYPE_CONFIG"; then
14776 echo "$as_me:14776: result: $FREETYPE_CONFIG" >&5
14777 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
14778 else
14779 echo "$as_me:14779: result: no" >&5
14780 echo "${ECHO_T}no" >&6
14781 fi
14782
14783 if test "$FREETYPE_CONFIG" != none; then
14784 FREETYPE_CONFIG=$FREETYPE_CONFIG
14785 cf_extra_freetype_libs="-lXft"
14786 else
14787 # Extract the first word of "xft-config", so it can be a program name with args.
14788 set dummy xft-config; ac_word=$2
14789 echo "$as_me:14789: checking for $ac_word" >&5
14790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14791 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 case $FREETYPE_OLD_CONFIG in
14795 [\\/]* | ?:[\\/]*)
14796 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
14797 ;;
14798 *)
14799 ac_save_IFS=$IFS; IFS=$ac_path_separator
14800 ac_dummy="$PATH"
14801 for ac_dir in $ac_dummy; do
14802 IFS=$ac_save_IFS
14803 test -z "$ac_dir" && ac_dir=.
14804 if $as_executable_p "$ac_dir/$ac_word"; then
14805 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
14806 echo "$as_me:14806: found $ac_dir/$ac_word" >&5
14807 break
14808 fi
14809 done
14810
14811 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
14812 ;;
14813 esac
14814 fi
14815 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
14816
14817 if test -n "$FREETYPE_OLD_CONFIG"; then
14818 echo "$as_me:14818: result: $FREETYPE_OLD_CONFIG" >&5
14819 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
14820 else
14821 echo "$as_me:14821: result: no" >&5
14822 echo "${ECHO_T}no" >&6
14823 fi
14824
14825 if test "$FREETYPE_OLD_CONFIG" != none; then
14826 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
14827 fi
14828 fi
14829 fi
14830 ;;
14831 pkg*) #(vi
14832 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
14833 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs
14834 FREETYPE_PARAMS=xft
14835 else
14836 { echo "$as_me:14836: WARNING: cannot find pkg-config for Xft" >&5
14837 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;}
14838 fi
14839 ;;
14840 *) #(vi
14841 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args.
14842 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2
14843 echo "$as_me:14843: checking for $ac_word" >&5
14844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14845 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848 case $FREETYPE_XFT_CONFIG in
14849 [\\/]* | ?:[\\/]*)
14850 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
14851 ;;
14852 *)
14853 ac_save_IFS=$IFS; IFS=$ac_path_separator
14854 ac_dummy="$PATH"
14855 for ac_dir in $ac_dummy; do
14856 IFS=$ac_save_IFS
14857 test -z "$ac_dir" && ac_dir=.
14858 if $as_executable_p "$ac_dir/$ac_word"; then
14859 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
14860 echo "$as_me:14860: found $ac_dir/$ac_word" >&5
14861 break
14862 fi
14863 done
14864
14865 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
14866 ;;
14867 esac
14868 fi
14869 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
14870
14871 if test -n "$FREETYPE_XFT_CONFIG"; then
14872 echo "$as_me:14872: result: $FREETYPE_XFT_CONFIG" >&5
14873 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
14874 else
14875 echo "$as_me:14875: result: no" >&5
14876 echo "${ECHO_T}no" >&6
14877 fi
14878
14879 if test "$FREETYPE_XFT_CONFIG" != none; then
14880 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
14881 else
14882 { echo "$as_me:14882: WARNING: cannot find config script for Xft" >&5
14883 echo "$as_me: WARNING: cannot find config script for Xft" >&2;}
14884 fi
14885 ;;
14886 esac
14887
14888 if test "$FREETYPE_CONFIG" != none ; then
14889 echo "$as_me:14889: checking for FreeType config" >&5
14890 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
14891 echo "$as_me:14891: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
14892 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
14893
14894 if test "$cf_cv_x_freetype_incs" = no ; then
14895 echo "$as_me:14895: checking for $FREETYPE_CONFIG cflags" >&5
14896 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
14897 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
14898 echo "$as_me:14898: result: $cf_cv_x_freetype_incs" >&5
14899 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
14900 fi
14901
14902 if test "$cf_cv_x_freetype_libs" = no ; then
14903 echo "$as_me:14903: checking for $FREETYPE_CONFIG libs" >&5
14904 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
14905 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
14906 echo "$as_me:14906: result: $cf_cv_x_freetype_libs" >&5
14907 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
14908 fi
14909 fi
14910
14911 if test "$cf_cv_x_freetype_incs" = no ; then
14912 cf_cv_x_freetype_incs=
14913 fi
14914
14915 if test "$cf_cv_x_freetype_libs" = no ; then
14916 cf_cv_x_freetype_libs=-lXft
14917 fi
14918
14919 echo "$as_me:14919: checking if we can link with FreeType libraries" >&5
14920 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
14921
14922 cf_save_LIBS="$LIBS"
14923 cf_save_INCS="$CPPFLAGS"
14924
14925 LIBS="$cf_cv_x_freetype_libs $LIBS"
14926 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
14927
14928 cat >conftest.$ac_ext <<_ACEOF
14929 #line 14929 "configure"
14930 #include "confdefs.h"
14931
14932 #include <X11/Xlib.h>
14933 #include <X11/extensions/Xrender.h>
14934 #include <X11/Xft/Xft.h>
14935 int
14936 main ()
14937 {
14938
14939 XftPattern *pat = XftNameParse ("name");
14940 ;
14941 return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (eval echo "$as_me:14945: \"$ac_link\"") >&5
14946 (eval $ac_link) 2>&5
14947 ac_status=$?
14948 echo "$as_me:14948: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:14951: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:14954: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 cf_cv_found_freetype=yes
14957 else
14958 echo "$as_me: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 cf_cv_found_freetype=no
14961 fi
14962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14963 echo "$as_me:14963: result: $cf_cv_found_freetype" >&5
14964 echo "${ECHO_T}$cf_cv_found_freetype" >&6
14965
14966 LIBS="$cf_save_LIBS"
14967 CPPFLAGS="$cf_save_INCS"
14968
14969 if test "$cf_cv_found_freetype" = yes ; then
14970 LIBS="$cf_cv_x_freetype_libs $LIBS"
14971
14972 cf_fix_cppflags=no
14973 cf_new_cflags=
14974 cf_new_cppflags=
14975 cf_new_extra_cppflags=
14976
14977 for cf_add_cflags in $cf_cv_x_freetype_incs
14978 do
14979 case $cf_fix_cppflags in
14980 no)
14981 case $cf_add_cflags in #(vi
14982 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14983 case $cf_add_cflags in
14984 -D*)
14985 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14986
14987 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14988 && test -z "${cf_tst_cflags}" \
14989 && cf_fix_cppflags=yes
14990
14991 if test $cf_fix_cppflags = yes ; then
14992 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14993 continue
14994 elif test "${cf_tst_cflags}" = "\"'" ; then
14995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14996 continue
14997 fi
14998 ;;
14999 esac
15000 case "$CPPFLAGS" in
15001 *$cf_add_cflags) #(vi
15002 ;;
15003 *) #(vi
15004 case $cf_add_cflags in #(vi
15005 -D*)
15006 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15007
15008 CPPFLAGS=`echo "$CPPFLAGS" | \
15009 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15010 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15011
15012 ;;
15013 esac
15014 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15015 ;;
15016 esac
15017 ;;
15018 *)
15019 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15020 ;;
15021 esac
15022 ;;
15023 yes)
15024 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15025
15026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15027
15028 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15029 && test -z "${cf_tst_cflags}" \
15030 && cf_fix_cppflags=no
15031 ;;
15032 esac
15033 done
15034
15035 if test -n "$cf_new_cflags" ; then
15036
15037 CFLAGS="$CFLAGS $cf_new_cflags"
15038 fi
15039
15040 if test -n "$cf_new_cppflags" ; then
15041
15042 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15043 fi
15044
15045 if test -n "$cf_new_extra_cppflags" ; then
15046
15047 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15048 fi
15049
15050 cat >>confdefs.h <<\EOF
15051 #define XRENDERFONT 1
15052 EOF
15053
15054 for ac_func in \
15055 XftDrawCharSpec \
15056 XftDrawSetClip \
15057 XftDrawSetClipRectangles \
15058
15059 do
15060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15061 echo "$as_me:15061: checking for $ac_func" >&5
15062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15063 if eval "test \"\${$as_ac_var+set}\" = set"; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066 cat >conftest.$ac_ext <<_ACEOF
15067 #line 15067 "configure"
15068 #include "confdefs.h"
15069 /* System header to define __stub macros and hopefully few prototypes,
15070 which can conflict with char $ac_func (); below. */
15071 #include <assert.h>
15072 /* Override any gcc2 internal prototype to avoid an error. */
15073 #ifdef __cplusplus
15074 extern "C"
15075 #endif
15076 /* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15078 char $ac_func ();
15079 char (*f) ();
15080
15081 int
15082 main ()
15083 {
15084 /* The GNU C library defines this for functions which it implements
15085 to always fail with ENOSYS. Some functions are actually named
15086 something starting with __ and the normal name is an alias. */
15087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15088 choke me
15089 #else
15090 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15091 #endif
15092
15093 ;
15094 return 0;
15095 }
15096 _ACEOF
15097 rm -f conftest.$ac_objext conftest$ac_exeext
15098 if { (eval echo "$as_me:15098: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15100 ac_status=$?
15101 echo "$as_me:15101: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:15104: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:15107: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 eval "$as_ac_var=yes"
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 cat conftest.$ac_ext >&5
15113 eval "$as_ac_var=no"
15114 fi
15115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15116 fi
15117 echo "$as_me:15117: result: `eval echo '${'$as_ac_var'}'`" >&5
15118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15119 if test `eval echo '${'$as_ac_var'}'` = yes; then
15120 cat >>confdefs.h <<EOF
15121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15122 EOF
15123
15124 fi
15125 done
15126
15127 else
15128 { echo "$as_me:15128: WARNING: No libraries found for FreeType" >&5
15129 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
15130 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
15131 fi
15132
15133 # FIXME: revisit this if needed
15134
15135 if test "$cf_cv_found_freetype" = yes ; then
15136 echo "$as_me:15136: checking for usable Xft/fontconfig package" >&5
15137 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
15138 if test "${cf_cv_xft_compat+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141
15142 cat >conftest.$ac_ext <<_ACEOF
15143 #line 15143 "configure"
15144 #include "confdefs.h"
15145
15146 #include <X11/Xft/Xft.h>
15147
15148 int
15149 main ()
15150 {
15151
15152 XftPattern *pat;
15153 XftPatternBuild(pat,
15154 XFT_FAMILY, XftTypeString, "mono",
15155 (void *) 0);
15156
15157 ;
15158 return 0;
15159 }
15160 _ACEOF
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (eval echo "$as_me:15162: \"$ac_link\"") >&5
15163 (eval $ac_link) 2>&5
15164 ac_status=$?
15165 echo "$as_me:15165: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:15168: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:15171: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 cf_cv_xft_compat=yes
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 cat conftest.$ac_ext >&5
15177 cf_cv_xft_compat=no
15178 fi
15179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15180
15181 fi
15182 echo "$as_me:15182: result: $cf_cv_xft_compat" >&5
15183 echo "${ECHO_T}$cf_cv_xft_compat" >&6
15184
15185 if test "$cf_cv_xft_compat" = no
15186 then
15187 # workaround for broken ".pc" files used for Xft.
15188 case "$cf_cv_x_freetype_libs" in #(vi
15189 *-lfontconfig*) #(vi
15190 ;;
15191 *)
15192 test -n "$verbose" && echo " work around broken package" 1>&6
15193
15194 echo "${as_me:-configure}:15194: testing work around broken package ..." 1>&5
15195
15196 cf_save_fontconfig="$LIBS"
15197
15198 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then
15199 test -n "$verbose" && echo " found package fontconfig" 1>&6
15200
15201 echo "${as_me:-configure}:15201: testing found package fontconfig ..." 1>&5
15202
15203 cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`"
15204 cf_pkgconfig_libs="`$PKG_CONFIG --libs fontconfig 2>/dev/null`"
15205 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
15206
15207 echo "${as_me:-configure}:15207: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15208
15209 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
15210
15211 echo "${as_me:-configure}:15211: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
15212
15213 cf_fix_cppflags=no
15214 cf_new_cflags=
15215 cf_new_cppflags=
15216 cf_new_extra_cppflags=
15217
15218 for cf_add_cflags in $cf_pkgconfig_incs
15219 do
15220 case $cf_fix_cppflags in
15221 no)
15222 case $cf_add_cflags in #(vi
15223 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15224 case $cf_add_cflags in
15225 -D*)
15226 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15227
15228 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15229 && test -z "${cf_tst_cflags}" \
15230 && cf_fix_cppflags=yes
15231
15232 if test $cf_fix_cppflags = yes ; then
15233 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15234 continue
15235 elif test "${cf_tst_cflags}" = "\"'" ; then
15236 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15237 continue
15238 fi
15239 ;;
15240 esac
15241 case "$CPPFLAGS" in
15242 *$cf_add_cflags) #(vi
15243 ;;
15244 *) #(vi
15245 case $cf_add_cflags in #(vi
15246 -D*)
15247 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15248
15249 CPPFLAGS=`echo "$CPPFLAGS" | \
15250 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15251 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15252
15253 ;;
15254 esac
15255 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15256 ;;
15257 esac
15258 ;;
15259 *)
15260 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15261 ;;
15262 esac
15263 ;;
15264 yes)
15265 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15266
15267 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15268
15269 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15270 && test -z "${cf_tst_cflags}" \
15271 && cf_fix_cppflags=no
15272 ;;
15273 esac
15274 done
15275
15276 if test -n "$cf_new_cflags" ; then
15277
15278 CFLAGS="$CFLAGS $cf_new_cflags"
15279 fi
15280
15281 if test -n "$cf_new_cppflags" ; then
15282
15283 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15284 fi
15285
15286 if test -n "$cf_new_extra_cppflags" ; then
15287
15288 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15289 fi
15290
15291 LIBS="$cf_pkgconfig_libs $LIBS"
15292
15293 cf_fix_cppflags=no
15294 cf_new_cflags=
15295 cf_new_cppflags=
15296 cf_new_extra_cppflags=
15297
15298 for cf_add_cflags in $cf_pkgconfig_incs
15299 do
15300 case $cf_fix_cppflags in
15301 no)
15302 case $cf_add_cflags in #(vi
15303 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15304 case $cf_add_cflags in
15305 -D*)
15306 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15307
15308 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15309 && test -z "${cf_tst_cflags}" \
15310 && cf_fix_cppflags=yes
15311
15312 if test $cf_fix_cppflags = yes ; then
15313 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15314 continue
15315 elif test "${cf_tst_cflags}" = "\"'" ; then
15316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15317 continue
15318 fi
15319 ;;
15320 esac
15321 case "$CPPFLAGS" in
15322 *$cf_add_cflags) #(vi
15323 ;;
15324 *) #(vi
15325 case $cf_add_cflags in #(vi
15326 -D*)
15327 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15328
15329 CPPFLAGS=`echo "$CPPFLAGS" | \
15330 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15331 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15332
15333 ;;
15334 esac
15335 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15336 ;;
15337 esac
15338 ;;
15339 *)
15340 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15341 ;;
15342 esac
15343 ;;
15344 yes)
15345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15346
15347 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15348
15349 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15350 && test -z "${cf_tst_cflags}" \
15351 && cf_fix_cppflags=no
15352 ;;
15353 esac
15354 done
15355
15356 if test -n "$cf_new_cflags" ; then
15357
15358 CFLAGS="$CFLAGS $cf_new_cflags"
15359 fi
15360
15361 if test -n "$cf_new_cppflags" ; then
15362
15363 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15364 fi
15365
15366 if test -n "$cf_new_extra_cppflags" ; then
15367
15368 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15369 fi
15370
15371 LIBS="$cf_save_fontconfig"
15372
15373 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15374
15375 echo "${as_me:-configure}:15375: testing ...before $LIBS ..." 1>&5
15376
15377 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'`
15378 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15379
15380 echo "${as_me:-configure}:15380: testing ...after $LIBS ..." 1>&5
15381
15382 else
15383 cf_pkgconfig_incs=
15384 cf_pkgconfig_libs=
15385
15386 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15387
15388 echo "${as_me:-configure}:15388: testing ...before $LIBS ..." 1>&5
15389
15390 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'`
15391 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15392
15393 echo "${as_me:-configure}:15393: testing ...after $LIBS ..." 1>&5
15394
15395 fi
15396
15397 ;;
15398 esac
15399 fi
15400 fi
15401
15402 else
15403 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
15404 fi
15405
15406 echo "$as_me:15406: checking if you want support for HP-style function keys" >&5
15407 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
15408
15409 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
15410 if test "${enable_hp_fkeys+set}" = set; then
15411 enableval="$enable_hp_fkeys"
15412 test "$enableval" != yes && enableval=no
15413 if test "$enableval" != "no" ; then
15414 enable_hp_fkeys=yes
15415 else
15416 enable_hp_fkeys=no
15417 fi
15418 else
15419 enableval=no
15420 enable_hp_fkeys=no
15421
15422 fi;
15423 echo "$as_me:15423: result: $enable_hp_fkeys" >&5
15424 echo "${ECHO_T}$enable_hp_fkeys" >&6
15425 if test "$enable_hp_fkeys" = yes ; then
15426
15427 cat >>confdefs.h <<\EOF
15428 #define OPT_HP_FUNC_KEYS 1
15429 EOF
15430
15431 fi
15432
15433 echo "$as_me:15433: checking if you want support for SCO-style function keys" >&5
15434 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
15435
15436 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
15437 if test "${enable_sco_fkeys+set}" = set; then
15438 enableval="$enable_sco_fkeys"
15439 test "$enableval" != yes && enableval=no
15440 if test "$enableval" != "no" ; then
15441 enable_sco_fkeys=yes
15442 else
15443 enable_sco_fkeys=no
15444 fi
15445 else
15446 enableval=no
15447 enable_sco_fkeys=no
15448
15449 fi;
15450 echo "$as_me:15450: result: $enable_sco_fkeys" >&5
15451 echo "${ECHO_T}$enable_sco_fkeys" >&6
15452 if test "$enable_sco_fkeys" = yes ; then
15453
15454 cat >>confdefs.h <<\EOF
15455 #define OPT_SCO_FUNC_KEYS 1
15456 EOF
15457
15458 fi
15459
15460 echo "$as_me:15460: checking if you want support for Sun-style function keys" >&5
15461 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
15462
15463 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
15464 if test "${enable_sun_fkeys+set}" = set; then
15465 enableval="$enable_sun_fkeys"
15466 test "$enableval" != no && enableval=yes
15467 if test "$enableval" != "yes" ; then
15468 enable_sun_fkeys=no
15469 else
15470 enable_sun_fkeys=yes
15471 fi
15472 else
15473 enableval=yes
15474 enable_sun_fkeys=yes
15475
15476 fi;
15477 echo "$as_me:15477: result: $enable_sun_fkeys" >&5
15478 echo "${ECHO_T}$enable_sun_fkeys" >&6
15479 if test "$enable_sun_fkeys" = no ; then
15480
15481 cat >>confdefs.h <<\EOF
15482 #define OPT_SUN_FUNC_KEYS 0
15483 EOF
15484
15485 fi
15486
15487 echo "$as_me:15487: checking if you want saved-lines stored as a FIFO" >&5
15488 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
15489
15490 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
15491 if test "${enable_fifo_lines+set}" = set; then
15492 enableval="$enable_fifo_lines"
15493 test "$enableval" != no && enableval=yes
15494 if test "$enableval" != "yes" ; then
15495 enable_fifo_lines=no
15496 else
15497 enable_fifo_lines=yes
15498 fi
15499 else
15500 enableval=yes
15501 enable_fifo_lines=yes
15502
15503 fi;
15504 echo "$as_me:15504: result: $enable_fifo_lines" >&5
15505 echo "${ECHO_T}$enable_fifo_lines" >&6
15506 if test "$enable_fifo_lines" = yes ; then
15507
15508 cat >>confdefs.h <<\EOF
15509 #define OPT_FIFO_LINES 1
15510 EOF
15511
15512 fi
15513
15514 echo "$as_me:15514: checking if you want support for internationalization" >&5
15515 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
15516
15517 # Check whether --enable-i18n or --disable-i18n was given.
15518 if test "${enable_i18n+set}" = set; then
15519 enableval="$enable_i18n"
15520 test "$enableval" != no && enableval=yes
15521 if test "$enableval" != "yes" ; then
15522 enable_i18n=no
15523 else
15524 enable_i18n=yes
15525 fi
15526 else
15527 enableval=yes
15528 enable_i18n=yes
15529
15530 fi;
15531 echo "$as_me:15531: result: $enable_i18n" >&5
15532 echo "${ECHO_T}$enable_i18n" >&6
15533 if test "$enable_i18n" = no ; then
15534
15535 cat >>confdefs.h <<\EOF
15536 #define OPT_I18N_SUPPORT 0
15537 EOF
15538
15539 fi
15540
15541 echo "$as_me:15541: checking if you want support for initial-erase setup" >&5
15542 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
15543
15544 # Check whether --enable-initial-erase or --disable-initial-erase was given.
15545 if test "${enable_initial_erase+set}" = set; then
15546 enableval="$enable_initial_erase"
15547 test "$enableval" != no && enableval=yes
15548 if test "$enableval" != "yes" ; then
15549 enable_ie=no
15550 else
15551 enable_ie=yes
15552 fi
15553 else
15554 enableval=yes
15555 enable_ie=yes
15556
15557 fi;
15558 echo "$as_me:15558: result: $enable_ie" >&5
15559 echo "${ECHO_T}$enable_ie" >&6
15560 if test "$enable_ie" = no ; then
15561
15562 cat >>confdefs.h <<\EOF
15563 #define OPT_INITIAL_ERASE 0
15564 EOF
15565
15566 fi
15567
15568 echo "$as_me:15568: checking if you want support for input-method" >&5
15569 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
15570
15571 # Check whether --enable-input-method or --disable-input-method was given.
15572 if test "${enable_input_method+set}" = set; then
15573 enableval="$enable_input_method"
15574 test "$enableval" != no && enableval=yes
15575 if test "$enableval" != "yes" ; then
15576 enable_ximp=no
15577 else
15578 enable_ximp=yes
15579 fi
15580 else
15581 enableval=yes
15582 enable_ximp=yes
15583
15584 fi;
15585 echo "$as_me:15585: result: $enable_ximp" >&5
15586 echo "${ECHO_T}$enable_ximp" >&6
15587
15588 echo "$as_me:15588: checking if X libraries support input-method" >&5
15589 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
15590 if test "${cf_cv_input_method+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593
15594 cat >conftest.$ac_ext <<_ACEOF
15595 #line 15595 "configure"
15596 #include "confdefs.h"
15597
15598 #include <X11/IntrinsicP.h>
15599 #include <X11/Xatom.h>
15600 #include <X11/Xutil.h>
15601 #include <X11/Xmu/Atoms.h>
15602 #include <X11/Xmu/Converters.h>
15603 #include <X11/Xaw/XawImP.h>
15604
15605 int
15606 main ()
15607 {
15608
15609 {
15610 XIM xim;
15611 XIMStyles *xim_styles = 0;
15612 XIMStyle input_style;
15613 Widget w = 0;
15614
15615 XSetLocaleModifiers("@im=none");
15616 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
15617 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
15618 XCloseIM(xim);
15619 input_style = (XIMPreeditNothing | XIMStatusNothing);
15620 }
15621
15622 ;
15623 return 0;
15624 }
15625 _ACEOF
15626 rm -f conftest.$ac_objext conftest$ac_exeext
15627 if { (eval echo "$as_me:15627: \"$ac_link\"") >&5
15628 (eval $ac_link) 2>&5
15629 ac_status=$?
15630 echo "$as_me:15630: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
15632 { ac_try='test -s conftest$ac_exeext'
15633 { (eval echo "$as_me:15633: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:15636: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 cf_cv_input_method=yes
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 cat conftest.$ac_ext >&5
15642 cf_cv_input_method=no
15643 fi
15644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15645 fi
15646 echo "$as_me:15646: result: $cf_cv_input_method" >&5
15647 echo "${ECHO_T}$cf_cv_input_method" >&6
15648
15649 test "$cf_cv_input_method" = no && enable_ximp=no
15650 if test "$enable_ximp" = no ; then
15651
15652 cat >>confdefs.h <<\EOF
15653 #define OPT_INPUT_METHOD 0
15654 EOF
15655
15656 fi
15657
15658 echo "$as_me:15658: checking if you want support for load-vt-fonts" >&5
15659 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
15660
15661 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
15662 if test "${enable_load_vt_fonts+set}" = set; then
15663 enableval="$enable_load_vt_fonts"
15664 test "$enableval" != yes && enableval=no
15665 if test "$enableval" != "no" ; then
15666 enable_load_vt_fonts=yes
15667 else
15668 enable_load_vt_fonts=no
15669 fi
15670 else
15671 enableval=no
15672 enable_load_vt_fonts=no
15673
15674 fi;
15675 echo "$as_me:15675: result: $enable_load_vt_fonts" >&5
15676 echo "${ECHO_T}$enable_load_vt_fonts" >&6
15677 if test "$enable_load_vt_fonts" = yes ; then
15678
15679 cat >>confdefs.h <<\EOF
15680 #define OPT_LOAD_VTFONTS 1
15681 EOF
15682
15683 fi
15684
15685 echo "$as_me:15685: checking if you want support for logging" >&5
15686 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
15687
15688 # Check whether --enable-logging or --disable-logging was given.
15689 if test "${enable_logging+set}" = set; then
15690 enableval="$enable_logging"
15691 test "$enableval" != yes && enableval=no
15692 if test "$enableval" != "no" ; then
15693 enable_logging=yes
15694 else
15695 enable_logging=no
15696 fi
15697 else
15698 enableval=no
15699 enable_logging=no
15700
15701 fi;
15702 echo "$as_me:15702: result: $enable_logging" >&5
15703 echo "${ECHO_T}$enable_logging" >&6
15704 if test "$enable_logging" = yes ; then
15705
15706 cat >>confdefs.h <<\EOF
15707 #define ALLOWLOGGING 1
15708 EOF
15709
15710 echo "$as_me:15710: checking if you want to allow logging via a pipe" >&5
15711 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
15712
15713 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
15714 if test "${enable_logfile_exec+set}" = set; then
15715 enableval="$enable_logfile_exec"
15716 test "$enableval" != yes && enableval=no
15717 if test "$enableval" != "no" ; then
15718 enable_log_exec=yes
15719 else
15720 enable_log_exec=no
15721 fi
15722 else
15723 enableval=no
15724 enable_log_exec=no
15725
15726 fi;
15727 echo "$as_me:15727: result: $enable_log_exec" >&5
15728 echo "${ECHO_T}$enable_log_exec" >&6
15729 if test "$enable_log_exec" = yes ; then
15730
15731 cat >>confdefs.h <<\EOF
15732 #define ALLOWLOGFILEEXEC 1
15733 EOF
15734
15735 fi
15736 fi
15737
15738 echo "$as_me:15738: checking if you want support for iconify/maximize translations" >&5
15739 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
15740
15741 # Check whether --enable-maximize or --disable-maximize was given.
15742 if test "${enable_maximize+set}" = set; then
15743 enableval="$enable_maximize"
15744 test "$enableval" != no && enableval=yes
15745 if test "$enableval" != "yes" ; then
15746 enable_maximize=no
15747 else
15748 enable_maximize=yes
15749 fi
15750 else
15751 enableval=yes
15752 enable_maximize=yes
15753
15754 fi;
15755 echo "$as_me:15755: result: $enable_maximize" >&5
15756 echo "${ECHO_T}$enable_maximize" >&6
15757 test "$enable_maximize" = no &&
15758 cat >>confdefs.h <<\EOF
15759 #define OPT_MAXIMIZE 0
15760 EOF
15761
15762 echo "$as_me:15762: checking if you want NumLock to override keyboard tables" >&5
15763 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
15764
15765 # Check whether --enable-num-lock or --disable-num-lock was given.
15766 if test "${enable_num_lock+set}" = set; then
15767 enableval="$enable_num_lock"
15768 test "$enableval" != no && enableval=yes
15769 if test "$enableval" != "yes" ; then
15770 enable_numlock=no
15771 else
15772 enable_numlock=yes
15773 fi
15774 else
15775 enableval=yes
15776 enable_numlock=yes
15777
15778 fi;
15779 echo "$as_me:15779: result: $enable_numlock" >&5
15780 echo "${ECHO_T}$enable_numlock" >&6
15781 test "$enable_numlock" = no &&
15782 cat >>confdefs.h <<\EOF
15783 #define OPT_NUM_LOCK 0
15784 EOF
15785
15786 echo "$as_me:15786: checking if you want support for get/set of base64 selection data" >&5
15787 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
15788
15789 # Check whether --enable-paste64 or --disable-paste64 was given.
15790 if test "${enable_paste64+set}" = set; then
15791 enableval="$enable_paste64"
15792 test "$enableval" != no && enableval=yes
15793 if test "$enableval" != "yes" ; then
15794 enable_paste64=no
15795 else
15796 enable_paste64=yes
15797 fi
15798 else
15799 enableval=yes
15800 enable_paste64=yes
15801
15802 fi;
15803 echo "$as_me:15803: result: $enable_paste64" >&5
15804 echo "${ECHO_T}$enable_paste64" >&6
15805 if test "$enable_paste64" = yes ; then
15806
15807 cat >>confdefs.h <<\EOF
15808 #define OPT_PASTE64 1
15809 EOF
15810
15811 else
15812
15813 cat >>confdefs.h <<\EOF
15814 #define OPT_PASTE64 0
15815 EOF
15816
15817 fi
15818
15819 echo "$as_me:15819: checking if you want support for pty-handshaking" >&5
15820 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
15821
15822 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
15823 if test "${enable_pty_handshake+set}" = set; then
15824 enableval="$enable_pty_handshake"
15825 test "$enableval" != no && enableval=yes
15826 if test "$enableval" != "yes" ; then
15827 enable_pty_handshake=no
15828 else
15829 enable_pty_handshake=yes
15830 fi
15831 else
15832 enableval=yes
15833 enable_pty_handshake=yes
15834
15835 fi;
15836 echo "$as_me:15836: result: $enable_pty_handshake" >&5
15837 echo "${ECHO_T}$enable_pty_handshake" >&6
15838 if test "$enable_pty_handshake" = yes ; then
15839
15840 cat >>confdefs.h <<\EOF
15841 #define OPT_PTY_HANDSHAKE 1
15842 EOF
15843
15844 else
15845
15846 cat >>confdefs.h <<\EOF
15847 #define OPT_PTY_HANDSHAKE 0
15848 EOF
15849
15850 fi
15851
15852 echo "$as_me:15852: checking if you want support for mouse in readline applications" >&5
15853 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
15854
15855 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
15856 if test "${enable_readline_mouse+set}" = set; then
15857 enableval="$enable_readline_mouse"
15858 test "$enableval" != yes && enableval=no
15859 if test "$enableval" != "no" ; then
15860 enable_readline_mouse=yes
15861 else
15862 enable_readline_mouse=no
15863 fi
15864 else
15865 enableval=no
15866 enable_readline_mouse=no
15867
15868 fi;
15869 echo "$as_me:15869: result: $enable_readline_mouse" >&5
15870 echo "${ECHO_T}$enable_readline_mouse" >&6
15871 if test "$enable_readline_mouse" = yes ; then
15872
15873 cat >>confdefs.h <<\EOF
15874 #define OPT_READLINE 1
15875 EOF
15876
15877 fi
15878
15879 echo "$as_me:15879: checking if you want support for regular-expression selections" >&5
15880 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
15881
15882 # Check whether --enable-regex or --disable-regex was given.
15883 if test "${enable_regex+set}" = set; then
15884 enableval="$enable_regex"
15885 test "$enableval" != no && enableval=yes
15886 if test "$enableval" != "yes" ; then
15887 enable_regex=no
15888 else
15889 enable_regex=yes
15890 fi
15891 else
15892 enableval=yes
15893 enable_regex=yes
15894
15895 fi;
15896 echo "$as_me:15896: result: $enable_regex" >&5
15897 echo "${ECHO_T}$enable_regex" >&6
15898 if test "$enable_regex" = yes ; then
15899
15900 echo "$as_me:15900: checking if you want to use PCRE for regular-expressions" >&5
15901 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
15902
15903 # Check whether --with-pcre or --without-pcre was given.
15904 if test "${with_pcre+set}" = set; then
15905 withval="$with_pcre"
15906
15907 fi;
15908 test -z "$with_pcre" && with_pcre=no
15909 echo "$as_me:15909: result: $with_pcre" >&5
15910 echo "${ECHO_T}$with_pcre" >&6
15911
15912 if test "$with_pcre" != no ; then
15913
15914 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
15915 test -n "$verbose" && echo " found package libpcre" 1>&6
15916
15917 echo "${as_me:-configure}:15917: testing found package libpcre ..." 1>&5
15918
15919 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
15920 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
15921 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
15922
15923 echo "${as_me:-configure}:15923: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15924
15925 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
15926
15927 echo "${as_me:-configure}:15927: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
15928
15929 cf_fix_cppflags=no
15930 cf_new_cflags=
15931 cf_new_cppflags=
15932 cf_new_extra_cppflags=
15933
15934 for cf_add_cflags in $cf_pkgconfig_incs
15935 do
15936 case $cf_fix_cppflags in
15937 no)
15938 case $cf_add_cflags in #(vi
15939 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15940 case $cf_add_cflags in
15941 -D*)
15942 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15943
15944 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15945 && test -z "${cf_tst_cflags}" \
15946 && cf_fix_cppflags=yes
15947
15948 if test $cf_fix_cppflags = yes ; then
15949 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15950 continue
15951 elif test "${cf_tst_cflags}" = "\"'" ; then
15952 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15953 continue
15954 fi
15955 ;;
15956 esac
15957 case "$CPPFLAGS" in
15958 *$cf_add_cflags) #(vi
15959 ;;
15960 *) #(vi
15961 case $cf_add_cflags in #(vi
15962 -D*)
15963 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15964
15965 CPPFLAGS=`echo "$CPPFLAGS" | \
15966 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15967 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15968
15969 ;;
15970 esac
15971 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15972 ;;
15973 esac
15974 ;;
15975 *)
15976 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15977 ;;
15978 esac
15979 ;;
15980 yes)
15981 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15982
15983 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15984
15985 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15986 && test -z "${cf_tst_cflags}" \
15987 && cf_fix_cppflags=no
15988 ;;
15989 esac
15990 done
15991
15992 if test -n "$cf_new_cflags" ; then
15993
15994 CFLAGS="$CFLAGS $cf_new_cflags"
15995 fi
15996
15997 if test -n "$cf_new_cppflags" ; then
15998
15999 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16000 fi
16001
16002 if test -n "$cf_new_extra_cppflags" ; then
16003
16004 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16005 fi
16006
16007 LIBS="$cf_pkgconfig_libs $LIBS"
16008 :
16009 else
16010 cf_pkgconfig_incs=
16011 cf_pkgconfig_libs=
16012
16013 echo "$as_me:16013: checking for pcre_compile in -lpcre" >&5
16014 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
16015 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018 ac_check_lib_save_LIBS=$LIBS
16019 LIBS="-lpcre $LIBS"
16020 cat >conftest.$ac_ext <<_ACEOF
16021 #line 16021 "configure"
16022 #include "confdefs.h"
16023
16024 /* Override any gcc2 internal prototype to avoid an error. */
16025 #ifdef __cplusplus
16026 extern "C"
16027 #endif
16028 /* We use char because int might match the return type of a gcc2
16029 builtin and then its argument prototype would still apply. */
16030 char pcre_compile ();
16031 int
16032 main ()
16033 {
16034 pcre_compile ();
16035 ;
16036 return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (eval echo "$as_me:16040: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>&5
16042 ac_status=$?
16043 echo "$as_me:16043: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -s conftest$ac_exeext'
16046 { (eval echo "$as_me:16046: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:16049: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_cv_lib_pcre_pcre_compile=yes
16052 else
16053 echo "$as_me: failed program was:" >&5
16054 cat conftest.$ac_ext >&5
16055 ac_cv_lib_pcre_pcre_compile=no
16056 fi
16057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16058 LIBS=$ac_check_lib_save_LIBS
16059 fi
16060 echo "$as_me:16060: result: $ac_cv_lib_pcre_pcre_compile" >&5
16061 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
16062 if test $ac_cv_lib_pcre_pcre_compile = yes; then
16063 cat >>confdefs.h <<EOF
16064 #define HAVE_LIBPCRE 1
16065 EOF
16066
16067 LIBS="-lpcre $LIBS"
16068
16069 else
16070 { { echo "$as_me:16070: error: Cannot find PCRE library" >&5
16071 echo "$as_me: error: Cannot find PCRE library" >&2;}
16072 { (exit 1); exit 1; }; }
16073 fi
16074
16075 fi
16076
16077 cat >>confdefs.h <<\EOF
16078 #define HAVE_LIB_PCRE 1
16079 EOF
16080
16081 case $LIBS in #(vi
16082 *pcreposix*) #(vi
16083 ;;
16084 *)
16085 echo "$as_me:16085: checking for pcreposix_regcomp in -lpcreposix" >&5
16086 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
16087 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090 ac_check_lib_save_LIBS=$LIBS
16091 LIBS="-lpcreposix $LIBS"
16092 cat >conftest.$ac_ext <<_ACEOF
16093 #line 16093 "configure"
16094 #include "confdefs.h"
16095
16096 /* Override any gcc2 internal prototype to avoid an error. */
16097 #ifdef __cplusplus
16098 extern "C"
16099 #endif
16100 /* We use char because int might match the return type of a gcc2
16101 builtin and then its argument prototype would still apply. */
16102 char pcreposix_regcomp ();
16103 int
16104 main ()
16105 {
16106 pcreposix_regcomp ();
16107 ;
16108 return 0;
16109 }
16110 _ACEOF
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (eval echo "$as_me:16112: \"$ac_link\"") >&5
16113 (eval $ac_link) 2>&5
16114 ac_status=$?
16115 echo "$as_me:16115: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -s conftest$ac_exeext'
16118 { (eval echo "$as_me:16118: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:16121: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
16123 ac_cv_lib_pcreposix_pcreposix_regcomp=yes
16124 else
16125 echo "$as_me: failed program was:" >&5
16126 cat conftest.$ac_ext >&5
16127 ac_cv_lib_pcreposix_pcreposix_regcomp=no
16128 fi
16129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16131 fi
16132 echo "$as_me:16132: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
16133 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
16134 if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
16135
16136 cat >>confdefs.h <<\EOF
16137 #define HAVE_PCREPOSIX_H 1
16138 EOF
16139
16140 LIBS="-lpcreposix $LIBS"
16141 else
16142 echo "$as_me:16142: checking for regcomp in -lpcreposix" >&5
16143 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
16144 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147 ac_check_lib_save_LIBS=$LIBS
16148 LIBS="-lpcreposix $LIBS"
16149 cat >conftest.$ac_ext <<_ACEOF
16150 #line 16150 "configure"
16151 #include "confdefs.h"
16152
16153 /* Override any gcc2 internal prototype to avoid an error. */
16154 #ifdef __cplusplus
16155 extern "C"
16156 #endif
16157 /* We use char because int might match the return type of a gcc2
16158 builtin and then its argument prototype would still apply. */
16159 char regcomp ();
16160 int
16161 main ()
16162 {
16163 regcomp ();
16164 ;
16165 return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (eval echo "$as_me:16169: \"$ac_link\"") >&5
16170 (eval $ac_link) 2>&5
16171 ac_status=$?
16172 echo "$as_me:16172: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -s conftest$ac_exeext'
16175 { (eval echo "$as_me:16175: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:16178: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 ac_cv_lib_pcreposix_regcomp=yes
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 cat conftest.$ac_ext >&5
16184 ac_cv_lib_pcreposix_regcomp=no
16185 fi
16186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16187 LIBS=$ac_check_lib_save_LIBS
16188 fi
16189 echo "$as_me:16189: result: $ac_cv_lib_pcreposix_regcomp" >&5
16190 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
16191 if test $ac_cv_lib_pcreposix_regcomp = yes; then
16192
16193 cat >>confdefs.h <<\EOF
16194 #define HAVE_PCREPOSIX_H 1
16195 EOF
16196
16197 LIBS="-lpcreposix $LIBS"
16198 else
16199 { { echo "$as_me:16199: error: Cannot find PCRE POSIX library" >&5
16200 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
16201 { (exit 1); exit 1; }; }
16202 fi
16203
16204 fi
16205
16206 ;;
16207 esac
16208 fi
16209
16210 if test "$with_pcre" = no ; then
16211
16212 cf_regex_func=no
16213
16214 cf_regex_libs="regex re"
16215 case $host_os in #(vi
16216 mingw*)
16217 cf_regex_libs="gnurx $cf_regex_libs"
16218 ;;
16219 esac
16220
16221 echo "$as_me:16221: checking for regcomp" >&5
16222 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
16223 if test "${ac_cv_func_regcomp+set}" = set; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226 cat >conftest.$ac_ext <<_ACEOF
16227 #line 16227 "configure"
16228 #include "confdefs.h"
16229 /* System header to define __stub macros and hopefully few prototypes,
16230 which can conflict with char regcomp (); below. */
16231 #include <assert.h>
16232 /* Override any gcc2 internal prototype to avoid an error. */
16233 #ifdef __cplusplus
16234 extern "C"
16235 #endif
16236 /* We use char because int might match the return type of a gcc2
16237 builtin and then its argument prototype would still apply. */
16238 char regcomp ();
16239 char (*f) ();
16240
16241 int
16242 main ()
16243 {
16244 /* The GNU C library defines this for functions which it implements
16245 to always fail with ENOSYS. Some functions are actually named
16246 something starting with __ and the normal name is an alias. */
16247 #if defined (__stub_regcomp) || defined (__stub___regcomp)
16248 choke me
16249 #else
16250 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16251 #endif
16252
16253 ;
16254 return 0;
16255 }
16256 _ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (eval echo "$as_me:16258: \"$ac_link\"") >&5
16259 (eval $ac_link) 2>&5
16260 ac_status=$?
16261 echo "$as_me:16261: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:16264: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:16267: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 ac_cv_func_regcomp=yes
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16273 ac_cv_func_regcomp=no
16274 fi
16275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16276 fi
16277 echo "$as_me:16277: result: $ac_cv_func_regcomp" >&5
16278 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
16279 if test $ac_cv_func_regcomp = yes; then
16280 cf_regex_func=regcomp
16281 else
16282
16283 for cf_regex_lib in $cf_regex_libs
16284 do
16285 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
16286 echo "$as_me:16286: checking for regcomp in -l$cf_regex_lib" >&5
16287 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
16288 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291 ac_check_lib_save_LIBS=$LIBS
16292 LIBS="-l$cf_regex_lib $LIBS"
16293 cat >conftest.$ac_ext <<_ACEOF
16294 #line 16294 "configure"
16295 #include "confdefs.h"
16296
16297 /* Override any gcc2 internal prototype to avoid an error. */
16298 #ifdef __cplusplus
16299 extern "C"
16300 #endif
16301 /* We use char because int might match the return type of a gcc2
16302 builtin and then its argument prototype would still apply. */
16303 char regcomp ();
16304 int
16305 main ()
16306 {
16307 regcomp ();
16308 ;
16309 return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (eval echo "$as_me:16313: \"$ac_link\"") >&5
16314 (eval $ac_link) 2>&5
16315 ac_status=$?
16316 echo "$as_me:16316: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try='test -s conftest$ac_exeext'
16319 { (eval echo "$as_me:16319: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:16322: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 eval "$as_ac_Lib=yes"
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16328 eval "$as_ac_Lib=no"
16329 fi
16330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16331 LIBS=$ac_check_lib_save_LIBS
16332 fi
16333 echo "$as_me:16333: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16334 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16335 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16336
16337 LIBS="-l$cf_regex_lib $LIBS"
16338 cf_regex_func=regcomp
16339 break
16340 fi
16341
16342 done
16343
16344 fi
16345
16346 if test "$cf_regex_func" = no ; then
16347 echo "$as_me:16347: checking for compile" >&5
16348 echo $ECHO_N "checking for compile... $ECHO_C" >&6
16349 if test "${ac_cv_func_compile+set}" = set; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 else
16352 cat >conftest.$ac_ext <<_ACEOF
16353 #line 16353 "configure"
16354 #include "confdefs.h"
16355 /* System header to define __stub macros and hopefully few prototypes,
16356 which can conflict with char compile (); below. */
16357 #include <assert.h>
16358 /* Override any gcc2 internal prototype to avoid an error. */
16359 #ifdef __cplusplus
16360 extern "C"
16361 #endif
16362 /* We use char because int might match the return type of a gcc2
16363 builtin and then its argument prototype would still apply. */
16364 char compile ();
16365 char (*f) ();
16366
16367 int
16368 main ()
16369 {
16370 /* The GNU C library defines this for functions which it implements
16371 to always fail with ENOSYS. Some functions are actually named
16372 something starting with __ and the normal name is an alias. */
16373 #if defined (__stub_compile) || defined (__stub___compile)
16374 choke me
16375 #else
16376 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16377 #endif
16378
16379 ;
16380 return 0;
16381 }
16382 _ACEOF
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (eval echo "$as_me:16384: \"$ac_link\"") >&5
16385 (eval $ac_link) 2>&5
16386 ac_status=$?
16387 echo "$as_me:16387: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -s conftest$ac_exeext'
16390 { (eval echo "$as_me:16390: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:16393: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_cv_func_compile=yes
16396 else
16397 echo "$as_me: failed program was:" >&5
16398 cat conftest.$ac_ext >&5
16399 ac_cv_func_compile=no
16400 fi
16401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16402 fi
16403 echo "$as_me:16403: result: $ac_cv_func_compile" >&5
16404 echo "${ECHO_T}$ac_cv_func_compile" >&6
16405 if test $ac_cv_func_compile = yes; then
16406 cf_regex_func=compile
16407 else
16408
16409 echo "$as_me:16409: checking for compile in -lgen" >&5
16410 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
16411 if test "${ac_cv_lib_gen_compile+set}" = set; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16413 else
16414 ac_check_lib_save_LIBS=$LIBS
16415 LIBS="-lgen $LIBS"
16416 cat >conftest.$ac_ext <<_ACEOF
16417 #line 16417 "configure"
16418 #include "confdefs.h"
16419
16420 /* Override any gcc2 internal prototype to avoid an error. */
16421 #ifdef __cplusplus
16422 extern "C"
16423 #endif
16424 /* We use char because int might match the return type of a gcc2
16425 builtin and then its argument prototype would still apply. */
16426 char compile ();
16427 int
16428 main ()
16429 {
16430 compile ();
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:16436: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>&5
16438 ac_status=$?
16439 echo "$as_me:16439: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -s conftest$ac_exeext'
16442 { (eval echo "$as_me:16442: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:16445: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_lib_gen_compile=yes
16448 else
16449 echo "$as_me: failed program was:" >&5
16450 cat conftest.$ac_ext >&5
16451 ac_cv_lib_gen_compile=no
16452 fi
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16455 fi
16456 echo "$as_me:16456: result: $ac_cv_lib_gen_compile" >&5
16457 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
16458 if test $ac_cv_lib_gen_compile = yes; then
16459
16460 LIBS="-lgen $LIBS"
16461 cf_regex_func=compile
16462 fi
16463
16464 fi
16465
16466 fi
16467
16468 if test "$cf_regex_func" = no ; then
16469 { echo "$as_me:16469: WARNING: cannot find regular expression library" >&5
16470 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
16471 fi
16472
16473 echo "$as_me:16473: checking for regular-expression headers" >&5
16474 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
16475 if test "${cf_cv_regex_hdrs+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478
16479 cf_cv_regex_hdrs=no
16480 case $cf_regex_func in #(vi
16481 compile) #(vi
16482 for cf_regex_hdr in regexp.h regexpr.h
16483 do
16484 cat >conftest.$ac_ext <<_ACEOF
16485 #line 16485 "configure"
16486 #include "confdefs.h"
16487 #include <$cf_regex_hdr>
16488 int
16489 main ()
16490 {
16491
16492 char *p = compile("", "", "", 0);
16493 int x = step("", "");
16494
16495 ;
16496 return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext conftest$ac_exeext
16500 if { (eval echo "$as_me:16500: \"$ac_link\"") >&5
16501 (eval $ac_link) 2>&5
16502 ac_status=$?
16503 echo "$as_me:16503: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:16506: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:16509: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511
16512 cf_cv_regex_hdrs=$cf_regex_hdr
16513 break
16514
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 cat conftest.$ac_ext >&5
16518 fi
16519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16520 done
16521 ;;
16522 *)
16523 for cf_regex_hdr in regex.h
16524 do
16525 cat >conftest.$ac_ext <<_ACEOF
16526 #line 16526 "configure"
16527 #include "confdefs.h"
16528 #include <sys/types.h>
16529 #include <$cf_regex_hdr>
16530 int
16531 main ()
16532 {
16533
16534 regex_t *p;
16535 int x = regcomp(p, "", 0);
16536 int y = regexec(p, "", 0, 0, 0);
16537 regfree(p);
16538
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (eval echo "$as_me:16544: \"$ac_link\"") >&5
16545 (eval $ac_link) 2>&5
16546 ac_status=$?
16547 echo "$as_me:16547: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -s conftest$ac_exeext'
16550 { (eval echo "$as_me:16550: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:16553: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555
16556 cf_cv_regex_hdrs=$cf_regex_hdr
16557 break
16558
16559 else
16560 echo "$as_me: failed program was:" >&5
16561 cat conftest.$ac_ext >&5
16562 fi
16563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16564 done
16565 ;;
16566 esac
16567
16568 fi
16569 echo "$as_me:16569: result: $cf_cv_regex_hdrs" >&5
16570 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
16571
16572 case $cf_cv_regex_hdrs in #(vi
16573 no) { echo "$as_me:16573: WARNING: no regular expression header found" >&5
16574 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
16575 regex.h)
16576 cat >>confdefs.h <<\EOF
16577 #define HAVE_REGEX_H_FUNCS 1
16578 EOF
16579 ;; #(vi
16580 regexp.h)
16581 cat >>confdefs.h <<\EOF
16582 #define HAVE_REGEXP_H_FUNCS 1
16583 EOF
16584 ;; #(vi
16585 regexpr.h)
16586 cat >>confdefs.h <<\EOF
16587 #define HAVE_REGEXPR_H_FUNCS 1
16588 EOF
16589 ;;
16590 esac
16591
16592 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
16593 { { echo "$as_me:16593: error: Only POSIX or PCRE regular expressions are supported" >&5
16594 echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
16595 { (exit 1); exit 1; }; }
16596 fi
16597 fi
16598
16599 cat >>confdefs.h <<\EOF
16600 #define OPT_SELECT_REGEX 1
16601 EOF
16602
16603 fi
16604
16605 echo "$as_me:16605: checking if you want support for right-scrollbar" >&5
16606 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
16607
16608 # Check whether --enable-rightbar or --disable-rightbar was given.
16609 if test "${enable_rightbar+set}" = set; then
16610 enableval="$enable_rightbar"
16611 test "$enableval" != no && enableval=yes
16612 if test "$enableval" != "yes" ; then
16613 enable_rightbar=no
16614 else
16615 enable_rightbar=yes
16616 fi
16617 else
16618 enableval=yes
16619 enable_rightbar=yes
16620
16621 fi;
16622 echo "$as_me:16622: result: $enable_rightbar" >&5
16623 echo "${ECHO_T}$enable_rightbar" >&6
16624 if test "$enable_rightbar" = yes ; then
16625
16626 cat >>confdefs.h <<\EOF
16627 #define SCROLLBAR_RIGHT 1
16628 EOF
16629
16630 fi
16631
16632 echo "$as_me:16632: checking if you want check for redundant name-change" >&5
16633 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
16634
16635 # Check whether --enable-samename or --disable-samename was given.
16636 if test "${enable_samename+set}" = set; then
16637 enableval="$enable_samename"
16638 test "$enableval" != no && enableval=yes
16639 if test "$enableval" != "yes" ; then
16640 enable_samename=no
16641 else
16642 enable_samename=yes
16643 fi
16644 else
16645 enableval=yes
16646 enable_samename=yes
16647
16648 fi;
16649 echo "$as_me:16649: result: $enable_samename" >&5
16650 echo "${ECHO_T}$enable_samename" >&6
16651 test "$enable_samename" = no &&
16652 cat >>confdefs.h <<\EOF
16653 #define OPT_SAME_NAME 0
16654 EOF
16655
16656 echo "$as_me:16656: checking if you want support for selection-actions" >&5
16657 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6
16658
16659 # Check whether --enable-selection-ops or --disable-selection-ops was given.
16660 if test "${enable_selection_ops+set}" = set; then
16661 enableval="$enable_selection_ops"
16662 test "$enableval" != no && enableval=yes
16663 if test "$enableval" != "yes" ; then
16664 enable_selection_ops=no
16665 else
16666 enable_selection_ops=yes
16667 fi
16668 else
16669 enableval=yes
16670 enable_selection_ops=yes
16671
16672 fi;
16673 echo "$as_me:16673: result: $enable_selection_ops" >&5
16674 echo "${ECHO_T}$enable_selection_ops" >&6
16675 test "$enable_selection_ops" = no &&
16676 cat >>confdefs.h <<\EOF
16677 #define OPT_SELECTION_OPS 0
16678 EOF
16679
16680 echo "$as_me:16680: checking if you want support for session management" >&5
16681 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
16682
16683 # Check whether --enable-session-mgt or --disable-session-mgt was given.
16684 if test "${enable_session_mgt+set}" = set; then
16685 enableval="$enable_session_mgt"
16686 test "$enableval" != no && enableval=yes
16687 if test "$enableval" != "yes" ; then
16688 enable_session_mgt=no
16689 else
16690 enable_session_mgt=yes
16691 fi
16692 else
16693 enableval=yes
16694 enable_session_mgt=yes
16695
16696 fi;
16697 echo "$as_me:16697: result: $enable_session_mgt" >&5
16698 echo "${ECHO_T}$enable_session_mgt" >&6
16699 test "$enable_session_mgt" = no &&
16700 cat >>confdefs.h <<\EOF
16701 #define OPT_SESSION_MGT 0
16702 EOF
16703
16704 echo "$as_me:16704: checking if you want to use termcap function-keys" >&5
16705 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
16706
16707 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
16708 if test "${enable_tcap_fkeys+set}" = set; then
16709 enableval="$enable_tcap_fkeys"
16710 test "$enableval" != no && enableval=yes
16711 if test "$enableval" != "yes" ; then
16712 enable_tcap_fkeys=no
16713 else
16714 enable_tcap_fkeys=yes
16715 fi
16716 else
16717 enableval=yes
16718 enable_tcap_fkeys=yes
16719
16720 fi;
16721 echo "$as_me:16721: result: $enable_tcap_fkeys" >&5
16722 echo "${ECHO_T}$enable_tcap_fkeys" >&6
16723 test "$enable_tcap_fkeys" = yes &&
16724 cat >>confdefs.h <<\EOF
16725 #define OPT_TCAP_FKEYS 1
16726 EOF
16727
16728 echo "$as_me:16728: checking if you want to use termcap-query/report" >&5
16729 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
16730
16731 # Check whether --enable-tcap-query or --disable-tcap-query was given.
16732 if test "${enable_tcap_query+set}" = set; then
16733 enableval="$enable_tcap_query"
16734 test "$enableval" != no && enableval=yes
16735 if test "$enableval" != "yes" ; then
16736 enable_tcap_query=no
16737 else
16738 enable_tcap_query=yes
16739 fi
16740 else
16741 enableval=yes
16742 enable_tcap_query=yes
16743
16744 fi;
16745 echo "$as_me:16745: result: $enable_tcap_query" >&5
16746 echo "${ECHO_T}$enable_tcap_query" >&6
16747 test "$enable_tcap_query" = yes &&
16748 cat >>confdefs.h <<\EOF
16749 #define OPT_TCAP_QUERY 1
16750 EOF
16751
16752 echo "$as_me:16752: checking if you want support for tek4014" >&5
16753 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
16754
16755 # Check whether --enable-tek4014 or --disable-tek4014 was given.
16756 if test "${enable_tek4014+set}" = set; then
16757 enableval="$enable_tek4014"
16758 test "$enableval" != no && enableval=yes
16759 if test "$enableval" != "yes" ; then
16760 enable_tek4014=no
16761 else
16762 enable_tek4014=yes
16763 fi
16764 else
16765 enableval=yes
16766 enable_tek4014=yes
16767
16768 fi;
16769 echo "$as_me:16769: result: $enable_tek4014" >&5
16770 echo "${ECHO_T}$enable_tek4014" >&6
16771 if test "$enable_tek4014" = no ; then
16772
16773 cat >>confdefs.h <<\EOF
16774 #define OPT_TEK4014 0
16775 EOF
16776
16777 else
16778 EXTRAHDRS="$EXTRAHDRS Tekparse.h"
16779 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
16780 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
16781 fi
16782
16783 echo "$as_me:16783: checking if you want pulldown menus with a toolbar" >&5
16784 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
16785
16786 # Check whether --enable-toolbar or --disable-toolbar was given.
16787 if test "${enable_toolbar+set}" = set; then
16788 enableval="$enable_toolbar"
16789 test "$enableval" != yes && enableval=no
16790 if test "$enableval" != "no" ; then
16791 enable_toolbar=yes
16792 else
16793 enable_toolbar=no
16794 fi
16795 else
16796 enableval=no
16797 enable_toolbar=no
16798
16799 fi;
16800 echo "$as_me:16800: result: $enable_toolbar" >&5
16801 echo "${ECHO_T}$enable_toolbar" >&6
16802 if test "$enable_toolbar" = yes ; then
16803
16804 cat >>confdefs.h <<\EOF
16805 #define OPT_TOOLBAR 1
16806 EOF
16807
16808 fi
16809
16810 echo "$as_me:16810: checking if you want VT52 emulation" >&5
16811 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
16812
16813 # Check whether --enable-vt52 or --disable-vt52 was given.
16814 if test "${enable_vt52+set}" = set; then
16815 enableval="$enable_vt52"
16816 test "$enableval" != no && enableval=yes
16817 if test "$enableval" != "yes" ; then
16818 enable_vt52=no
16819 else
16820 enable_vt52=yes
16821 fi
16822 else
16823 enableval=yes
16824 enable_vt52=yes
16825
16826 fi;
16827 echo "$as_me:16827: result: $enable_vt52" >&5
16828 echo "${ECHO_T}$enable_vt52" >&6
16829 test "$enable_vt52" = no &&
16830 cat >>confdefs.h <<\EOF
16831 #define OPT_VT52_MODE 0
16832 EOF
16833
16834 echo "$as_me:16834: checking if you want wide-character support" >&5
16835 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
16836
16837 # Check whether --enable-wide-chars or --disable-wide-chars was given.
16838 if test "${enable_wide_chars+set}" = set; then
16839 enableval="$enable_wide_chars"
16840 test "$enableval" != no && enableval=yes
16841 if test "$enableval" != "yes" ; then
16842 enable_wchar=no
16843 else
16844 enable_wchar=yes
16845 fi
16846 else
16847 enableval=yes
16848 enable_wchar=yes
16849
16850 fi;
16851 echo "$as_me:16851: result: $enable_wchar" >&5
16852 echo "${ECHO_T}$enable_wchar" >&6
16853
16854 echo "$as_me:16854: checking if you want only 16-bit character support" >&5
16855 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
16856
16857 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
16858 if test "${enable_16bit_chars+set}" = set; then
16859 enableval="$enable_16bit_chars"
16860 test "$enableval" != yes && enableval=no
16861 if test "$enableval" != "no" ; then
16862 enable_16bit_chars=yes
16863 else
16864 enable_16bit_chars=no
16865 fi
16866 else
16867 enableval=no
16868 enable_16bit_chars=no
16869
16870 fi;
16871 echo "$as_me:16871: result: $enable_16bit_chars" >&5
16872 echo "${ECHO_T}$enable_16bit_chars" >&6
16873
16874 if test "$enable_16bit_chars" = yes ; then
16875
16876 cat >>confdefs.h <<\EOF
16877 #define OPT_WIDER_ICHAR 0
16878 EOF
16879
16880 enable_wchar=yes
16881 fi
16882
16883 if test "$enable_wchar" = yes ; then
16884
16885 echo "$as_me:16885: checking if you want to use mini-luit/Latin9 built-in support" >&5
16886 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
16887
16888 # Check whether --enable-mini-luit or --disable-mini-luit was given.
16889 if test "${enable_mini_luit+set}" = set; then
16890 enableval="$enable_mini_luit"
16891 test "$enableval" != yes && enableval=no
16892 if test "$enableval" != "no" ; then
16893 enable_mini_luit=yes
16894 else
16895 enable_mini_luit=no
16896 fi
16897 else
16898 enableval=no
16899 enable_mini_luit=no
16900
16901 fi;
16902 echo "$as_me:16902: result: $enable_mini_luit" >&5
16903 echo "${ECHO_T}$enable_mini_luit" >&6
16904 if test "$enable_mini_luit" = yes ; then
16905
16906 cat >>confdefs.h <<\EOF
16907 #define OPT_MINI_LUIT 1
16908 EOF
16909
16910 fi
16911
16912 echo "$as_me:16912: checking if you want to use luit" >&5
16913 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
16914
16915 # Check whether --enable-luit or --disable-luit was given.
16916 if test "${enable_luit+set}" = set; then
16917 enableval="$enable_luit"
16918 test "$enableval" != no && enableval=yes
16919 if test "$enableval" != "yes" ; then
16920 enable_luit=no
16921 else
16922 enable_luit=yes
16923 fi
16924 else
16925 enableval=yes
16926 enable_luit=yes
16927
16928 fi;
16929 echo "$as_me:16929: result: $enable_luit" >&5
16930 echo "${ECHO_T}$enable_luit" >&6
16931 if test "$enable_luit" = yes ; then
16932
16933 cat >>confdefs.h <<\EOF
16934 #define OPT_LUIT_PROG 1
16935 EOF
16936
16937 test -z "$LUIT" && LUIT=xterm-filter
16938 for ac_prog in $LUIT xterm-filter bluit luit
16939 do
16940 # Extract the first word of "$ac_prog", so it can be a program name with args.
16941 set dummy $ac_prog; ac_word=$2
16942 echo "$as_me:16942: checking for $ac_word" >&5
16943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16944 if test "${ac_cv_path_LUIT+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947 case $LUIT in
16948 [\\/]* | ?:[\\/]*)
16949 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
16950 ;;
16951 *)
16952 ac_save_IFS=$IFS; IFS=$ac_path_separator
16953 ac_dummy="$PATH"
16954 for ac_dir in $ac_dummy; do
16955 IFS=$ac_save_IFS
16956 test -z "$ac_dir" && ac_dir=.
16957 if $as_executable_p "$ac_dir/$ac_word"; then
16958 ac_cv_path_LUIT="$ac_dir/$ac_word"
16959 echo "$as_me:16959: found $ac_dir/$ac_word" >&5
16960 break
16961 fi
16962 done
16963
16964 ;;
16965 esac
16966 fi
16967 LUIT=$ac_cv_path_LUIT
16968
16969 if test -n "$LUIT"; then
16970 echo "$as_me:16970: result: $LUIT" >&5
16971 echo "${ECHO_T}$LUIT" >&6
16972 else
16973 echo "$as_me:16973: result: no" >&5
16974 echo "${ECHO_T}no" >&6
16975 fi
16976
16977 test -n "$LUIT" && break
16978 done
16979 test -n "$LUIT" || LUIT="$LUIT"
16980
16981 cf_path_prog=""
16982 cf_path_args=""
16983 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
16984 for cf_temp in $ac_cv_path_LUIT
16985 do
16986 if test -z "$cf_path_prog" ; then
16987 if test "$with_full_paths" = yes ; then
16988
16989 if test "x$prefix" != xNONE; then
16990 cf_path_syntax="$prefix"
16991 else
16992 cf_path_syntax="$ac_default_prefix"
16993 fi
16994
16995 case ".$cf_temp" in #(vi
16996 .\$\(*\)*|.\'*\'*) #(vi
16997 ;;
16998 ..|./*|.\\*) #(vi
16999 ;;
17000 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
17001 ;;
17002 .\${*prefix}*|.\${*dir}*) #(vi
17003 eval cf_temp="$cf_temp"
17004 case ".$cf_temp" in #(vi
17005 .NONE/*)
17006 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
17007 ;;
17008 esac
17009 ;; #(vi
17010 .no|.NONE/*)
17011 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
17012 ;;
17013 *)
17014 break
17015 ;;
17016 esac
17017
17018 cf_path_prog="$cf_temp"
17019 else
17020 cf_path_prog="`basename $cf_temp`"
17021 fi
17022 elif test -z "$cf_path_args" ; then
17023 cf_path_args="$cf_temp"
17024 else
17025 cf_path_args="$cf_path_args $cf_temp"
17026 fi
17027 done
17028 IFS="$cf_save_ifs"
17029
17030 if test -n "$cf_path_prog" ; then
17031
17032 echo "${as_me:-configure}:17032: testing defining path for ${cf_path_prog} ..." 1>&5
17033
17034 cat >>confdefs.h <<EOF
17035 #define LUIT_PATH "$cf_path_prog"
17036 EOF
17037
17038 test -n "$cf_path_args" &&
17039 cat >>confdefs.h <<EOF
17040 #define LUIT_ARGS "$cf_path_args"
17041 EOF
17042
17043 fi
17044
17045 fi
17046
17047 cat >>confdefs.h <<\EOF
17048 #define OPT_WIDE_CHARS 1
17049 EOF
17050
17051 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
17052 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
17053 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
17054 fi
17055
17056 echo "$as_me:17056: checking if you want dynamic-abbreviation support" >&5
17057 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
17058
17059 # Check whether --enable-dabbrev or --disable-dabbrev was given.
17060 if test "${enable_dabbrev+set}" = set; then
17061 enableval="$enable_dabbrev"
17062 test "$enableval" != yes && enableval=no
17063 if test "$enableval" != "no" ; then
17064 enable_dabbrev=yes
17065 else
17066 enable_dabbrev=no
17067 fi
17068 else
17069 enableval=no
17070 enable_dabbrev=no
17071
17072 fi;
17073 echo "$as_me:17073: result: $enable_dabbrev" >&5
17074 echo "${ECHO_T}$enable_dabbrev" >&6
17075 if test "$enable_dabbrev" = yes ; then
17076
17077 cat >>confdefs.h <<\EOF
17078 #define OPT_DABBREV 1
17079 EOF
17080
17081 fi
17082
17083 echo "$as_me:17083: checking if you want DECterm Locator support" >&5
17084 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
17085
17086 # Check whether --enable-dec-locator or --disable-dec-locator was given.
17087 if test "${enable_dec_locator+set}" = set; then
17088 enableval="$enable_dec_locator"
17089 test "$enableval" != yes && enableval=no
17090 if test "$enableval" != "no" ; then
17091 enable_dec_locator=yes
17092 else
17093 enable_dec_locator=no
17094 fi
17095 else
17096 enableval=no
17097 enable_dec_locator=no
17098
17099 fi;
17100 echo "$as_me:17100: result: $enable_dec_locator" >&5
17101 echo "${ECHO_T}$enable_dec_locator" >&6
17102 if test "$enable_dec_locator" = yes ; then
17103
17104 cat >>confdefs.h <<\EOF
17105 #define OPT_DEC_LOCATOR 1
17106 EOF
17107
17108 fi
17109
17110 echo "$as_me:17110: checking if you want sixel graphics support" >&5
17111 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6
17112
17113 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given.
17114 if test "${enable_sixel_graphics+set}" = set; then
17115 enableval="$enable_sixel_graphics"
17116 test "$enableval" != yes && enableval=no
17117 if test "$enableval" != "no" ; then
17118 enable_sixel_graphics=yes
17119 else
17120 enable_sixel_graphics=no
17121 fi
17122 else
17123 enableval=no
17124 enable_sixel_graphics=no
17125
17126 fi;
17127 echo "$as_me:17127: result: $enable_sixel_graphics" >&5
17128 echo "${ECHO_T}$enable_sixel_graphics" >&6
17129 if test "$enable_sixel_graphics" = yes ; then
17130
17131 cat >>confdefs.h <<\EOF
17132 #define OPT_SIXEL_GRAPHICS 1
17133 EOF
17134
17135 EXTRAHDRS="$EXTRAHDRS graphics.h"
17136 EXTRASRCS="$EXTRASRCS graphics.c"
17137 EXTRAOBJS="$EXTRAOBJS graphics.o"
17138 fi
17139
17140 echo "$as_me:17140: checking if you want VT420 rectangle support" >&5
17141 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
17142
17143 # Check whether --enable-rectangles or --disable-rectangles was given.
17144 if test "${enable_rectangles+set}" = set; then
17145 enableval="$enable_rectangles"
17146 test "$enableval" != no && enableval=yes
17147 if test "$enableval" != "yes" ; then
17148 enable_rectangles=no
17149 else
17150 enable_rectangles=yes
17151 fi
17152 else
17153 enableval=yes
17154 enable_rectangles=yes
17155
17156 fi;
17157 echo "$as_me:17157: result: $enable_rectangles" >&5
17158 echo "${ECHO_T}$enable_rectangles" >&6
17159 if test "$enable_rectangles" = yes ; then
17160
17161 cat >>confdefs.h <<\EOF
17162 #define OPT_DEC_RECTOPS 1
17163 EOF
17164
17165 fi
17166
17167 echo "$as_me:17167: checking if you want -ziconbeep option" >&5
17168 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
17169
17170 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
17171 if test "${enable_ziconbeep+set}" = set; then
17172 enableval="$enable_ziconbeep"
17173 test "$enableval" != no && enableval=yes
17174 if test "$enableval" != "yes" ; then
17175 enable_ziconbeep=no
17176 else
17177 enable_ziconbeep=yes
17178 fi
17179 else
17180 enableval=yes
17181 enable_ziconbeep=yes
17182
17183 fi;
17184 echo "$as_me:17184: result: $enable_ziconbeep" >&5
17185 echo "${ECHO_T}$enable_ziconbeep" >&6
17186 test "$enable_ziconbeep" = no &&
17187 cat >>confdefs.h <<\EOF
17188 #define OPT_ZICONBEEP 0
17189 EOF
17190
17191 ###############################################################################
17192
17193 echo "$as_me:17193: checking if you want debugging traces" >&5
17194 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
17195
17196 # Check whether --enable-trace or --disable-trace was given.
17197 if test "${enable_trace+set}" = set; then
17198 enableval="$enable_trace"
17199 test "$enableval" != yes && enableval=no
17200 if test "$enableval" != "no" ; then
17201 enable_trace=yes
17202 else
17203 enable_trace=no
17204 fi
17205 else
17206 enableval=no
17207 enable_trace=no
17208
17209 fi;
17210 echo "$as_me:17210: result: $enable_trace" >&5
17211 echo "${ECHO_T}$enable_trace" >&6
17212 if test "$enable_trace" = yes ; then
17213
17214 cat >>confdefs.h <<\EOF
17215 #define OPT_TRACE 1
17216 EOF
17217
17218 EXTRASRCS="$EXTRASRCS trace.c"
17219 EXTRAOBJS="$EXTRAOBJS trace.o"
17220 fi
17221
17222 echo "$as_me:17222: checking if you want to use dmalloc for testing" >&5
17223 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17224
17225 # Check whether --with-dmalloc or --without-dmalloc was given.
17226 if test "${with_dmalloc+set}" = set; then
17227 withval="$with_dmalloc"
17228
17229 cat >>confdefs.h <<EOF
17230 #define USE_DMALLOC 1
17231 EOF
17232
17233 : ${with_cflags:=-g}
17234 : ${with_no_leaks:=yes}
17235 with_dmalloc=yes
17236 else
17237 with_dmalloc=
17238 fi;
17239 echo "$as_me:17239: result: ${with_dmalloc:-no}" >&5
17240 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17241
17242 case .$with_cflags in #(vi
17243 .*-g*)
17244 case .$CFLAGS in #(vi
17245 .*-g*) #(vi
17246 ;;
17247 *)
17248
17249 cf_fix_cppflags=no
17250 cf_new_cflags=
17251 cf_new_cppflags=
17252 cf_new_extra_cppflags=
17253
17254 for cf_add_cflags in -g
17255 do
17256 case $cf_fix_cppflags in
17257 no)
17258 case $cf_add_cflags in #(vi
17259 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17260 case $cf_add_cflags in
17261 -D*)
17262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17263
17264 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17265 && test -z "${cf_tst_cflags}" \
17266 && cf_fix_cppflags=yes
17267
17268 if test $cf_fix_cppflags = yes ; then
17269 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17270 continue
17271 elif test "${cf_tst_cflags}" = "\"'" ; then
17272 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17273 continue
17274 fi
17275 ;;
17276 esac
17277 case "$CPPFLAGS" in
17278 *$cf_add_cflags) #(vi
17279 ;;
17280 *) #(vi
17281 case $cf_add_cflags in #(vi
17282 -D*)
17283 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17284
17285 CPPFLAGS=`echo "$CPPFLAGS" | \
17286 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17287 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17288
17289 ;;
17290 esac
17291 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17292 ;;
17293 esac
17294 ;;
17295 *)
17296 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17297 ;;
17298 esac
17299 ;;
17300 yes)
17301 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17302
17303 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17304
17305 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17306 && test -z "${cf_tst_cflags}" \
17307 && cf_fix_cppflags=no
17308 ;;
17309 esac
17310 done
17311
17312 if test -n "$cf_new_cflags" ; then
17313
17314 CFLAGS="$CFLAGS $cf_new_cflags"
17315 fi
17316
17317 if test -n "$cf_new_cppflags" ; then
17318
17319 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17320 fi
17321
17322 if test -n "$cf_new_extra_cppflags" ; then
17323
17324 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17325 fi
17326
17327 ;;
17328 esac
17329 ;;
17330 esac
17331
17332 if test "$with_dmalloc" = yes ; then
17333 echo "$as_me:17333: checking for dmalloc.h" >&5
17334 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17335 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338 cat >conftest.$ac_ext <<_ACEOF
17339 #line 17339 "configure"
17340 #include "confdefs.h"
17341 #include <dmalloc.h>
17342 _ACEOF
17343 if { (eval echo "$as_me:17343: \"$ac_cpp conftest.$ac_ext\"") >&5
17344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17345 ac_status=$?
17346 egrep -v '^ *\+' conftest.er1 >conftest.err
17347 rm -f conftest.er1
17348 cat conftest.err >&5
17349 echo "$as_me:17349: \$? = $ac_status" >&5
17350 (exit $ac_status); } >/dev/null; then
17351 if test -s conftest.err; then
17352 ac_cpp_err=$ac_c_preproc_warn_flag
17353 else
17354 ac_cpp_err=
17355 fi
17356 else
17357 ac_cpp_err=yes
17358 fi
17359 if test -z "$ac_cpp_err"; then
17360 ac_cv_header_dmalloc_h=yes
17361 else
17362 echo "$as_me: failed program was:" >&5
17363 cat conftest.$ac_ext >&5
17364 ac_cv_header_dmalloc_h=no
17365 fi
17366 rm -f conftest.err conftest.$ac_ext
17367 fi
17368 echo "$as_me:17368: result: $ac_cv_header_dmalloc_h" >&5
17369 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17370 if test $ac_cv_header_dmalloc_h = yes; then
17371
17372 echo "$as_me:17372: checking for dmalloc_debug in -ldmalloc" >&5
17373 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17374 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377 ac_check_lib_save_LIBS=$LIBS
17378 LIBS="-ldmalloc $LIBS"
17379 cat >conftest.$ac_ext <<_ACEOF
17380 #line 17380 "configure"
17381 #include "confdefs.h"
17382
17383 /* Override any gcc2 internal prototype to avoid an error. */
17384 #ifdef __cplusplus
17385 extern "C"
17386 #endif
17387 /* We use char because int might match the return type of a gcc2
17388 builtin and then its argument prototype would still apply. */
17389 char dmalloc_debug ();
17390 int
17391 main ()
17392 {
17393 dmalloc_debug ();
17394 ;
17395 return 0;
17396 }
17397 _ACEOF
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (eval echo "$as_me:17399: \"$ac_link\"") >&5
17400 (eval $ac_link) 2>&5
17401 ac_status=$?
17402 echo "$as_me:17402: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (eval echo "$as_me:17405: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:17408: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_lib_dmalloc_dmalloc_debug=yes
17411 else
17412 echo "$as_me: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17414 ac_cv_lib_dmalloc_dmalloc_debug=no
17415 fi
17416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17417 LIBS=$ac_check_lib_save_LIBS
17418 fi
17419 echo "$as_me:17419: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17420 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17421 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17422 cat >>confdefs.h <<EOF
17423 #define HAVE_LIBDMALLOC 1
17424 EOF
17425
17426 LIBS="-ldmalloc $LIBS"
17427
17428 fi
17429
17430 fi
17431
17432 fi
17433
17434 echo "$as_me:17434: checking if you want to use dbmalloc for testing" >&5
17435 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17436
17437 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17438 if test "${with_dbmalloc+set}" = set; then
17439 withval="$with_dbmalloc"
17440
17441 cat >>confdefs.h <<EOF
17442 #define USE_DBMALLOC 1
17443 EOF
17444
17445 : ${with_cflags:=-g}
17446 : ${with_no_leaks:=yes}
17447 with_dbmalloc=yes
17448 else
17449 with_dbmalloc=
17450 fi;
17451 echo "$as_me:17451: result: ${with_dbmalloc:-no}" >&5
17452 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17453
17454 case .$with_cflags in #(vi
17455 .*-g*)
17456 case .$CFLAGS in #(vi
17457 .*-g*) #(vi
17458 ;;
17459 *)
17460
17461 cf_fix_cppflags=no
17462 cf_new_cflags=
17463 cf_new_cppflags=
17464 cf_new_extra_cppflags=
17465
17466 for cf_add_cflags in -g
17467 do
17468 case $cf_fix_cppflags in
17469 no)
17470 case $cf_add_cflags in #(vi
17471 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17472 case $cf_add_cflags in
17473 -D*)
17474 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17475
17476 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17477 && test -z "${cf_tst_cflags}" \
17478 && cf_fix_cppflags=yes
17479
17480 if test $cf_fix_cppflags = yes ; then
17481 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17482 continue
17483 elif test "${cf_tst_cflags}" = "\"'" ; then
17484 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17485 continue
17486 fi
17487 ;;
17488 esac
17489 case "$CPPFLAGS" in
17490 *$cf_add_cflags) #(vi
17491 ;;
17492 *) #(vi
17493 case $cf_add_cflags in #(vi
17494 -D*)
17495 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17496
17497 CPPFLAGS=`echo "$CPPFLAGS" | \
17498 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17499 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17500
17501 ;;
17502 esac
17503 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17504 ;;
17505 esac
17506 ;;
17507 *)
17508 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17509 ;;
17510 esac
17511 ;;
17512 yes)
17513 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17514
17515 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17516
17517 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17518 && test -z "${cf_tst_cflags}" \
17519 && cf_fix_cppflags=no
17520 ;;
17521 esac
17522 done
17523
17524 if test -n "$cf_new_cflags" ; then
17525
17526 CFLAGS="$CFLAGS $cf_new_cflags"
17527 fi
17528
17529 if test -n "$cf_new_cppflags" ; then
17530
17531 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17532 fi
17533
17534 if test -n "$cf_new_extra_cppflags" ; then
17535
17536 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17537 fi
17538
17539 ;;
17540 esac
17541 ;;
17542 esac
17543
17544 if test "$with_dbmalloc" = yes ; then
17545 echo "$as_me:17545: checking for dbmalloc.h" >&5
17546 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17547 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550 cat >conftest.$ac_ext <<_ACEOF
17551 #line 17551 "configure"
17552 #include "confdefs.h"
17553 #include <dbmalloc.h>
17554 _ACEOF
17555 if { (eval echo "$as_me:17555: \"$ac_cpp conftest.$ac_ext\"") >&5
17556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17557 ac_status=$?
17558 egrep -v '^ *\+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
17561 echo "$as_me:17561: \$? = $ac_status" >&5
17562 (exit $ac_status); } >/dev/null; then
17563 if test -s conftest.err; then
17564 ac_cpp_err=$ac_c_preproc_warn_flag
17565 else
17566 ac_cpp_err=
17567 fi
17568 else
17569 ac_cpp_err=yes
17570 fi
17571 if test -z "$ac_cpp_err"; then
17572 ac_cv_header_dbmalloc_h=yes
17573 else
17574 echo "$as_me: failed program was:" >&5
17575 cat conftest.$ac_ext >&5
17576 ac_cv_header_dbmalloc_h=no
17577 fi
17578 rm -f conftest.err conftest.$ac_ext
17579 fi
17580 echo "$as_me:17580: result: $ac_cv_header_dbmalloc_h" >&5
17581 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17582 if test $ac_cv_header_dbmalloc_h = yes; then
17583
17584 echo "$as_me:17584: checking for debug_malloc in -ldbmalloc" >&5
17585 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17586 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589 ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-ldbmalloc $LIBS"
17591 cat >conftest.$ac_ext <<_ACEOF
17592 #line 17592 "configure"
17593 #include "confdefs.h"
17594
17595 /* Override any gcc2 internal prototype to avoid an error. */
17596 #ifdef __cplusplus
17597 extern "C"
17598 #endif
17599 /* We use char because int might match the return type of a gcc2
17600 builtin and then its argument prototype would still apply. */
17601 char debug_malloc ();
17602 int
17603 main ()
17604 {
17605 debug_malloc ();
17606 ;
17607 return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (eval echo "$as_me:17611: \"$ac_link\"") >&5
17612 (eval $ac_link) 2>&5
17613 ac_status=$?
17614 echo "$as_me:17614: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:17617: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:17620: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_lib_dbmalloc_debug_malloc=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 cat conftest.$ac_ext >&5
17626 ac_cv_lib_dbmalloc_debug_malloc=no
17627 fi
17628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17629 LIBS=$ac_check_lib_save_LIBS
17630 fi
17631 echo "$as_me:17631: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17632 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17633 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17634 cat >>confdefs.h <<EOF
17635 #define HAVE_LIBDBMALLOC 1
17636 EOF
17637
17638 LIBS="-ldbmalloc $LIBS"
17639
17640 fi
17641
17642 fi
17643
17644 fi
17645
17646 echo "$as_me:17646: checking if you want to use valgrind for testing" >&5
17647 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17648
17649 # Check whether --with-valgrind or --without-valgrind was given.
17650 if test "${with_valgrind+set}" = set; then
17651 withval="$with_valgrind"
17652
17653 cat >>confdefs.h <<EOF
17654 #define USE_VALGRIND 1
17655 EOF
17656
17657 : ${with_cflags:=-g}
17658 : ${with_no_leaks:=yes}
17659 with_valgrind=yes
17660 else
17661 with_valgrind=
17662 fi;
17663 echo "$as_me:17663: result: ${with_valgrind:-no}" >&5
17664 echo "${ECHO_T}${with_valgrind:-no}" >&6
17665
17666 case .$with_cflags in #(vi
17667 .*-g*)
17668 case .$CFLAGS in #(vi
17669 .*-g*) #(vi
17670 ;;
17671 *)
17672
17673 cf_fix_cppflags=no
17674 cf_new_cflags=
17675 cf_new_cppflags=
17676 cf_new_extra_cppflags=
17677
17678 for cf_add_cflags in -g
17679 do
17680 case $cf_fix_cppflags in
17681 no)
17682 case $cf_add_cflags in #(vi
17683 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17684 case $cf_add_cflags in
17685 -D*)
17686 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17687
17688 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17689 && test -z "${cf_tst_cflags}" \
17690 && cf_fix_cppflags=yes
17691
17692 if test $cf_fix_cppflags = yes ; then
17693 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17694 continue
17695 elif test "${cf_tst_cflags}" = "\"'" ; then
17696 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17697 continue
17698 fi
17699 ;;
17700 esac
17701 case "$CPPFLAGS" in
17702 *$cf_add_cflags) #(vi
17703 ;;
17704 *) #(vi
17705 case $cf_add_cflags in #(vi
17706 -D*)
17707 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17708
17709 CPPFLAGS=`echo "$CPPFLAGS" | \
17710 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17711 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17712
17713 ;;
17714 esac
17715 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17716 ;;
17717 esac
17718 ;;
17719 *)
17720 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17721 ;;
17722 esac
17723 ;;
17724 yes)
17725 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17726
17727 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17728
17729 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17730 && test -z "${cf_tst_cflags}" \
17731 && cf_fix_cppflags=no
17732 ;;
17733 esac
17734 done
17735
17736 if test -n "$cf_new_cflags" ; then
17737
17738 CFLAGS="$CFLAGS $cf_new_cflags"
17739 fi
17740
17741 if test -n "$cf_new_cppflags" ; then
17742
17743 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17744 fi
17745
17746 if test -n "$cf_new_extra_cppflags" ; then
17747
17748 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17749 fi
17750
17751 ;;
17752 esac
17753 ;;
17754 esac
17755
17756 echo "$as_me:17756: checking if you want to perform memory-leak testing" >&5
17757 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17758
17759 # Check whether --enable-leaks or --disable-leaks was given.
17760 if test "${enable_leaks+set}" = set; then
17761 enableval="$enable_leaks"
17762 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17763 else
17764 : ${with_no_leaks:=no}
17765 fi;
17766 echo "$as_me:17766: result: $with_no_leaks" >&5
17767 echo "${ECHO_T}$with_no_leaks" >&6
17768
17769 if test "$with_no_leaks" = yes ; then
17770
17771 cat >>confdefs.h <<\EOF
17772 #define NO_LEAKS 1
17773 EOF
17774
17775 cat >>confdefs.h <<\EOF
17776 #define YY_NO_LEAKS 1
17777 EOF
17778
17779 fi
17780
17781 echo "$as_me:17781: checking if you want to see long compiling messages" >&5
17782 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
17783
17784 # Check whether --enable-echo or --disable-echo was given.
17785 if test "${enable_echo+set}" = set; then
17786 enableval="$enable_echo"
17787 test "$enableval" != no && enableval=yes
17788 if test "$enableval" != "yes" ; then
17789
17790 ECHO_LT='--silent'
17791 ECHO_LD='@echo linking $@;'
17792 RULE_CC='@echo compiling $<'
17793 SHOW_CC='@echo compiling $@'
17794 ECHO_CC='@'
17795
17796 else
17797
17798 ECHO_LT=''
17799 ECHO_LD=''
17800 RULE_CC=''
17801 SHOW_CC=''
17802 ECHO_CC=''
17803
17804 fi
17805 else
17806 enableval=yes
17807
17808 ECHO_LT=''
17809 ECHO_LD=''
17810 RULE_CC=''
17811 SHOW_CC=''
17812 ECHO_CC=''
17813
17814 fi;
17815 echo "$as_me:17815: result: $enableval" >&5
17816 echo "${ECHO_T}$enableval" >&6
17817
17818 echo "$as_me:17818: checking if you want magic cookie emulation" >&5
17819 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
17820
17821 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
17822 if test "${enable_xmc_glitch+set}" = set; then
17823 enableval="$enable_xmc_glitch"
17824 test "$enableval" != yes && enableval=no
17825 if test "$enableval" != "no" ; then
17826 enable_xmc=yes
17827 else
17828 enable_xmc=no
17829 fi
17830 else
17831 enableval=no
17832 enable_xmc=no
17833
17834 fi;
17835 echo "$as_me:17835: result: $enable_xmc" >&5
17836 echo "${ECHO_T}$enable_xmc" >&6
17837 if test "$enable_xmc" = yes ; then
17838
17839 cat >>confdefs.h <<\EOF
17840 #define OPT_XMC_GLITCH 1
17841 EOF
17842
17843 EXTRASRCS="$EXTRASRCS testxmc.c"
17844 EXTRAOBJS="$EXTRAOBJS testxmc.o"
17845 fi
17846
17847 for ac_func in tigetstr
17848 do
17849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17850 echo "$as_me:17850: checking for $ac_func" >&5
17851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17852 if eval "test \"\${$as_ac_var+set}\" = set"; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 else
17855 cat >conftest.$ac_ext <<_ACEOF
17856 #line 17856 "configure"
17857 #include "confdefs.h"
17858 /* System header to define __stub macros and hopefully few prototypes,
17859 which can conflict with char $ac_func (); below. */
17860 #include <assert.h>
17861 /* Override any gcc2 internal prototype to avoid an error. */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 /* We use char because int might match the return type of a gcc2
17866 builtin and then its argument prototype would still apply. */
17867 char $ac_func ();
17868 char (*f) ();
17869
17870 int
17871 main ()
17872 {
17873 /* The GNU C library defines this for functions which it implements
17874 to always fail with ENOSYS. Some functions are actually named
17875 something starting with __ and the normal name is an alias. */
17876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17877 choke me
17878 #else
17879 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17880 #endif
17881
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:17887: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17889 ac_status=$?
17890 echo "$as_me:17890: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:17893: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:17896: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 eval "$as_ac_var=yes"
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 cat conftest.$ac_ext >&5
17902 eval "$as_ac_var=no"
17903 fi
17904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17905 fi
17906 echo "$as_me:17906: result: `eval echo '${'$as_ac_var'}'`" >&5
17907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17908 if test `eval echo '${'$as_ac_var'}'` = yes; then
17909 cat >>confdefs.h <<EOF
17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17911 EOF
17912
17913 fi
17914 done
17915
17916 if test -n "$cf_cv_lib_part_tgetent"; then
17917
17918 for ac_func in use_extended_names
17919 do
17920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 echo "$as_me:17921: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_var+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 else
17926 cat >conftest.$ac_ext <<_ACEOF
17927 #line 17927 "configure"
17928 #include "confdefs.h"
17929 /* System header to define __stub macros and hopefully few prototypes,
17930 which can conflict with char $ac_func (); below. */
17931 #include <assert.h>
17932 /* Override any gcc2 internal prototype to avoid an error. */
17933 #ifdef __cplusplus
17934 extern "C"
17935 #endif
17936 /* We use char because int might match the return type of a gcc2
17937 builtin and then its argument prototype would still apply. */
17938 char $ac_func ();
17939 char (*f) ();
17940
17941 int
17942 main ()
17943 {
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17948 choke me
17949 #else
17950 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17951 #endif
17952
17953 ;
17954 return 0;
17955 }
17956 _ACEOF
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (eval echo "$as_me:17958: \"$ac_link\"") >&5
17959 (eval $ac_link) 2>&5
17960 ac_status=$?
17961 echo "$as_me:17961: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -s conftest$ac_exeext'
17964 { (eval echo "$as_me:17964: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:17967: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 eval "$as_ac_var=yes"
17970 else
17971 echo "$as_me: failed program was:" >&5
17972 cat conftest.$ac_ext >&5
17973 eval "$as_ac_var=no"
17974 fi
17975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17976 fi
17977 echo "$as_me:17977: result: `eval echo '${'$as_ac_var'}'`" >&5
17978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17979 if test `eval echo '${'$as_ac_var'}'` = yes; then
17980 cat >>confdefs.h <<EOF
17981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17982 EOF
17983
17984 fi
17985 done
17986
17987 fi
17988
17989 if test -n "$GCC" ; then
17990 echo "$as_me:17990: checking if you want to turn on gcc warnings" >&5
17991 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17992
17993 # Check whether --enable-warnings or --disable-warnings was given.
17994 if test "${enable_warnings+set}" = set; then
17995 enableval="$enable_warnings"
17996 test "$enableval" != yes && enableval=no
17997 if test "$enableval" != "no" ; then
17998 with_warnings=yes
17999 else
18000 with_warnings=no
18001 fi
18002 else
18003 enableval=no
18004 with_warnings=no
18005
18006 fi;
18007 echo "$as_me:18007: result: $with_warnings" >&5
18008 echo "${ECHO_T}$with_warnings" >&6
18009 if test "$with_warnings" = yes
18010 then
18011
18012 if test "$GCC" = yes
18013 then
18014 cat > conftest.i <<EOF
18015 #ifndef GCC_PRINTF
18016 #define GCC_PRINTF 0
18017 #endif
18018 #ifndef GCC_SCANF
18019 #define GCC_SCANF 0
18020 #endif
18021 #ifndef GCC_NORETURN
18022 #define GCC_NORETURN /* nothing */
18023 #endif
18024 #ifndef GCC_UNUSED
18025 #define GCC_UNUSED /* nothing */
18026 #endif
18027 EOF
18028 if test "$GCC" = yes
18029 then
18030 { echo "$as_me:18030: checking for $CC __attribute__ directives..." >&5
18031 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
18032 cat > conftest.$ac_ext <<EOF
18033 #line 18033 "${as_me:-configure}"
18034 #include "confdefs.h"
18035 #include "conftest.h"
18036 #include "conftest.i"
18037 #if GCC_PRINTF
18038 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
18039 #else
18040 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
18041 #endif
18042 #if GCC_SCANF
18043 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
18044 #else
18045 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
18046 #endif
18047 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
18048 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
18049 extern void foo(void) GCC_NORETURN;
18050 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
18051 EOF
18052 cf_printf_attribute=no
18053 cf_scanf_attribute=no
18054 for cf_attribute in scanf printf unused noreturn
18055 do
18056
18057 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18058
18059 cf_directive="__attribute__(($cf_attribute))"
18060 echo "checking for $CC $cf_directive" 1>&5
18061
18062 case $cf_attribute in #(vi
18063 printf) #(vi
18064 cf_printf_attribute=yes
18065 cat >conftest.h <<EOF
18066 #define GCC_$cf_ATTRIBUTE 1
18067 EOF
18068 ;;
18069 scanf) #(vi
18070 cf_scanf_attribute=yes
18071 cat >conftest.h <<EOF
18072 #define GCC_$cf_ATTRIBUTE 1
18073 EOF
18074 ;;
18075 *) #(vi
18076 cat >conftest.h <<EOF
18077 #define GCC_$cf_ATTRIBUTE $cf_directive
18078 EOF
18079 ;;
18080 esac
18081
18082 if { (eval echo "$as_me:18082: \"$ac_compile\"") >&5
18083 (eval $ac_compile) 2>&5
18084 ac_status=$?
18085 echo "$as_me:18085: \$? = $ac_status" >&5
18086 (exit $ac_status); }; then
18087 test -n "$verbose" && echo "$as_me:18087: result: ... $cf_attribute" >&5
18088 echo "${ECHO_T}... $cf_attribute" >&6
18089 cat conftest.h >>confdefs.h
18090 case $cf_attribute in #(vi
18091 noreturn) #(vi
18092
18093 cat >>confdefs.h <<EOF
18094 #define GCC_NORETURN $cf_directive
18095 EOF
18096
18097 ;;
18098 printf) #(vi
18099 cf_value='/* nothing */'
18100 if test "$cf_printf_attribute" != no ; then
18101 cf_value='__attribute__((format(printf,fmt,var)))'
18102
18103 cat >>confdefs.h <<\EOF
18104 #define GCC_PRINTF 1
18105 EOF
18106
18107 fi
18108
18109 cat >>confdefs.h <<EOF
18110 #define GCC_PRINTFLIKE(fmt,var) $cf_value
18111 EOF
18112
18113 ;;
18114 scanf) #(vi
18115 cf_value='/* nothing */'
18116 if test "$cf_scanf_attribute" != no ; then
18117 cf_value='__attribute__((format(scanf,fmt,var)))'
18118
18119 cat >>confdefs.h <<\EOF
18120 #define GCC_SCANF 1
18121 EOF
18122
18123 fi
18124
18125 cat >>confdefs.h <<EOF
18126 #define GCC_SCANFLIKE(fmt,var) $cf_value
18127 EOF
18128
18129 ;;
18130 unused) #(vi
18131
18132 cat >>confdefs.h <<EOF
18133 #define GCC_UNUSED $cf_directive
18134 EOF
18135
18136 ;;
18137 esac
18138 fi
18139 done
18140 else
18141 fgrep define conftest.i >>confdefs.h
18142 fi
18143 rm -rf conftest*
18144 fi
18145
18146 INTEL_COMPILER=no
18147
18148 if test "$GCC" = yes ; then
18149 case $host_os in
18150 linux*|gnu*)
18151 echo "$as_me:18151: checking if this is really Intel C compiler" >&5
18152 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
18153 cf_save_CFLAGS="$CFLAGS"
18154 CFLAGS="$CFLAGS -no-gcc"
18155 cat >conftest.$ac_ext <<_ACEOF
18156 #line 18156 "configure"
18157 #include "confdefs.h"
18158
18159 int
18160 main ()
18161 {
18162
18163 #ifdef __INTEL_COMPILER
18164 #else
18165 make an error
18166 #endif
18167
18168 ;
18169 return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext
18173 if { (eval echo "$as_me:18173: \"$ac_compile\"") >&5
18174 (eval $ac_compile) 2>&5
18175 ac_status=$?
18176 echo "$as_me:18176: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (eval echo "$as_me:18179: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:18182: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 INTEL_COMPILER=yes
18185 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
18186
18187 else
18188 echo "$as_me: failed program was:" >&5
18189 cat conftest.$ac_ext >&5
18190 fi
18191 rm -f conftest.$ac_objext conftest.$ac_ext
18192 CFLAGS="$cf_save_CFLAGS"
18193 echo "$as_me:18193: result: $INTEL_COMPILER" >&5
18194 echo "${ECHO_T}$INTEL_COMPILER" >&6
18195 ;;
18196 esac
18197 fi
18198
18199 CLANG_COMPILER=no
18200
18201 if test "$GCC" = yes ; then
18202 echo "$as_me:18202: checking if this is really Clang C compiler" >&5
18203 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
18204 cf_save_CFLAGS="$CFLAGS"
18205 CFLAGS="$CFLAGS -Qunused-arguments"
18206 cat >conftest.$ac_ext <<_ACEOF
18207 #line 18207 "configure"
18208 #include "confdefs.h"
18209
18210 int
18211 main ()
18212 {
18213
18214 #ifdef __clang__
18215 #else
18216 make an error
18217 #endif
18218
18219 ;
18220 return 0;
18221 }
18222 _ACEOF
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:18224: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>&5
18226 ac_status=$?
18227 echo "$as_me:18227: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:18230: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:18233: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 CLANG_COMPILER=yes
18236 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
18237
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 cat conftest.$ac_ext >&5
18241 fi
18242 rm -f conftest.$ac_objext conftest.$ac_ext
18243 CFLAGS="$cf_save_CFLAGS"
18244 echo "$as_me:18244: result: $CLANG_COMPILER" >&5
18245 echo "${ECHO_T}$CLANG_COMPILER" >&6
18246 fi
18247
18248 cat > conftest.$ac_ext <<EOF
18249 #line 18249 "${as_me:-configure}"
18250 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
18251 EOF
18252
18253 if test "$INTEL_COMPILER" = yes
18254 then
18255 # The "-wdXXX" options suppress warnings:
18256 # remark #1419: external declaration in primary source file
18257 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
18258 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
18259 # remark #193: zero used for undefined preprocessing identifier
18260 # remark #593: variable "curs_sb_left_arrow" was set but never used
18261 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
18262 # remark #869: parameter "tw" was never referenced
18263 # remark #981: operands are evaluated in unspecified order
18264 # warning #279: controlling expression is constant
18265
18266 { echo "$as_me:18266: checking for $CC warning options..." >&5
18267 echo "$as_me: checking for $CC warning options..." >&6;}
18268 cf_save_CFLAGS="$CFLAGS"
18269 EXTRA_CFLAGS="-Wall"
18270 for cf_opt in \
18271 wd1419 \
18272 wd1683 \
18273 wd1684 \
18274 wd193 \
18275 wd593 \
18276 wd279 \
18277 wd810 \
18278 wd869 \
18279 wd981
18280 do
18281 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18282 if { (eval echo "$as_me:18282: \"$ac_compile\"") >&5
18283 (eval $ac_compile) 2>&5
18284 ac_status=$?
18285 echo "$as_me:18285: \$? = $ac_status" >&5
18286 (exit $ac_status); }; then
18287 test -n "$verbose" && echo "$as_me:18287: result: ... -$cf_opt" >&5
18288 echo "${ECHO_T}... -$cf_opt" >&6
18289 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18290 fi
18291 done
18292 CFLAGS="$cf_save_CFLAGS"
18293
18294 elif test "$GCC" = yes
18295 then
18296 { echo "$as_me:18296: checking for $CC warning options..." >&5
18297 echo "$as_me: checking for $CC warning options..." >&6;}
18298 cf_save_CFLAGS="$CFLAGS"
18299 EXTRA_CFLAGS=
18300 cf_warn_CONST=""
18301 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
18302 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
18303 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
18304 for cf_opt in W Wall \
18305 Wbad-function-cast \
18306 Wcast-align \
18307 Wcast-qual \
18308 Wdeclaration-after-statement \
18309 Wextra \
18310 Winline \
18311 Wmissing-declarations \
18312 Wmissing-prototypes \
18313 Wnested-externs \
18314 Wpointer-arith \
18315 Wshadow \
18316 Wstrict-prototypes \
18317 Wundef $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
18318 do
18319 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18320 if { (eval echo "$as_me:18320: \"$ac_compile\"") >&5
18321 (eval $ac_compile) 2>&5
18322 ac_status=$?
18323 echo "$as_me:18323: \$? = $ac_status" >&5
18324 (exit $ac_status); }; then
18325 test -n "$verbose" && echo "$as_me:18325: result: ... -$cf_opt" >&5
18326 echo "${ECHO_T}... -$cf_opt" >&6
18327 case $cf_opt in #(vi
18328 Wcast-qual) #(vi
18329 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
18330 ;;
18331 Winline) #(vi
18332 case $GCC_VERSION in
18333 [34].*)
18334 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18335
18336 echo "${as_me:-configure}:18336: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18337
18338 continue;;
18339 esac
18340 ;;
18341 Wpointer-arith) #(vi
18342 case $GCC_VERSION in
18343 [12].*)
18344 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18345
18346 echo "${as_me:-configure}:18346: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18347
18348 continue;;
18349 esac
18350 ;;
18351 esac
18352 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18353 fi
18354 done
18355 CFLAGS="$cf_save_CFLAGS"
18356 fi
18357 rm -rf conftest*
18358
18359 fi
18360 fi
18361
18362 test "$disable_setuid" = yes &&
18363 cat >>confdefs.h <<\EOF
18364 #define DISABLE_SETUID 1
18365 EOF
18366
18367 test "$disable_setgid" = yes &&
18368 cat >>confdefs.h <<\EOF
18369 #define DISABLE_SETGID 1
18370 EOF
18371
18372 if test $disable_setuid = yes ; then
18373 MAY_SETUID="#"
18374 NOT_SETUID=
18375 elif test $disable_setgid = yes ; then
18376 MAY_SETUID="#"
18377 NOT_SETUID=
18378 else
18379 MAY_SETUID=
18380 NOT_SETUID="#"
18381 fi
18382
18383 ### remove from CPPFLAGS the optional features we define in xtermcfg.h
18384 ### or other conflicting symbols that may be defined via imake:
18385 for cf_def in \
18386 __STDC__ \
18387 ALLOWLOGGING \
18388 ALLOWLOGFILEEXEC \
18389 OPT_LUIT_PROG \
18390 OPT_WIDE_CHARS \
18391 SCROLLBAR_RIGHT \
18392 USE_TTY_GROUP \
18393 USE_UTEMPTER \
18394 XRENDERFONT
18395 do
18396 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
18397 done
18398
18399 echo "$as_me:18399: checking if filesystem supports mixed-case filenames" >&5
18400 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
18401 if test "${cf_cv_mixedcase+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404
18405 if test "$cross_compiling" = yes ; then
18406 case $target_alias in #(vi
18407 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
18408 cf_cv_mixedcase=no
18409 ;;
18410 *)
18411 cf_cv_mixedcase=yes
18412 ;;
18413 esac
18414 else
18415 rm -f conftest CONFTEST
18416 echo test >conftest
18417 if test -f CONFTEST ; then
18418 cf_cv_mixedcase=no
18419 else
18420 cf_cv_mixedcase=yes
18421 fi
18422 rm -f conftest CONFTEST
18423 fi
18424
18425 fi
18426 echo "$as_me:18426: result: $cf_cv_mixedcase" >&5
18427 echo "${ECHO_T}$cf_cv_mixedcase" >&6
18428 test "$cf_cv_mixedcase" = yes &&
18429 cat >>confdefs.h <<\EOF
18430 #define MIXEDCASE_FILENAMES 1
18431 EOF
18432
18433 for ac_prog in exctags ctags
18434 do
18435 # Extract the first word of "$ac_prog", so it can be a program name with args.
18436 set dummy $ac_prog; ac_word=$2
18437 echo "$as_me:18437: checking for $ac_word" >&5
18438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18439 if test "${ac_cv_prog_CTAGS+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442 if test -n "$CTAGS"; then
18443 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
18444 else
18445 ac_save_IFS=$IFS; IFS=$ac_path_separator
18446 ac_dummy="$PATH"
18447 for ac_dir in $ac_dummy; do
18448 IFS=$ac_save_IFS
18449 test -z "$ac_dir" && ac_dir=.
18450 $as_executable_p "$ac_dir/$ac_word" || continue
18451 ac_cv_prog_CTAGS="$ac_prog"
18452 echo "$as_me:18452: found $ac_dir/$ac_word" >&5
18453 break
18454 done
18455
18456 fi
18457 fi
18458 CTAGS=$ac_cv_prog_CTAGS
18459 if test -n "$CTAGS"; then
18460 echo "$as_me:18460: result: $CTAGS" >&5
18461 echo "${ECHO_T}$CTAGS" >&6
18462 else
18463 echo "$as_me:18463: result: no" >&5
18464 echo "${ECHO_T}no" >&6
18465 fi
18466
18467 test -n "$CTAGS" && break
18468 done
18469
18470 for ac_prog in exetags etags
18471 do
18472 # Extract the first word of "$ac_prog", so it can be a program name with args.
18473 set dummy $ac_prog; ac_word=$2
18474 echo "$as_me:18474: checking for $ac_word" >&5
18475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18476 if test "${ac_cv_prog_ETAGS+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479 if test -n "$ETAGS"; then
18480 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
18481 else
18482 ac_save_IFS=$IFS; IFS=$ac_path_separator
18483 ac_dummy="$PATH"
18484 for ac_dir in $ac_dummy; do
18485 IFS=$ac_save_IFS
18486 test -z "$ac_dir" && ac_dir=.
18487 $as_executable_p "$ac_dir/$ac_word" || continue
18488 ac_cv_prog_ETAGS="$ac_prog"
18489 echo "$as_me:18489: found $ac_dir/$ac_word" >&5
18490 break
18491 done
18492
18493 fi
18494 fi
18495 ETAGS=$ac_cv_prog_ETAGS
18496 if test -n "$ETAGS"; then
18497 echo "$as_me:18497: result: $ETAGS" >&5
18498 echo "${ECHO_T}$ETAGS" >&6
18499 else
18500 echo "$as_me:18500: result: no" >&5
18501 echo "${ECHO_T}no" >&6
18502 fi
18503
18504 test -n "$ETAGS" && break
18505 done
18506
18507 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
18508 set dummy ${CTAGS:-ctags}; ac_word=$2
18509 echo "$as_me:18509: checking for $ac_word" >&5
18510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18511 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 if test -n "$MAKE_LOWER_TAGS"; then
18515 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
18516 else
18517 ac_save_IFS=$IFS; IFS=$ac_path_separator
18518 ac_dummy="$PATH"
18519 for ac_dir in $ac_dummy; do
18520 IFS=$ac_save_IFS
18521 test -z "$ac_dir" && ac_dir=.
18522 $as_executable_p "$ac_dir/$ac_word" || continue
18523 ac_cv_prog_MAKE_LOWER_TAGS="yes"
18524 echo "$as_me:18524: found $ac_dir/$ac_word" >&5
18525 break
18526 done
18527
18528 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
18529 fi
18530 fi
18531 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
18532 if test -n "$MAKE_LOWER_TAGS"; then
18533 echo "$as_me:18533: result: $MAKE_LOWER_TAGS" >&5
18534 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
18535 else
18536 echo "$as_me:18536: result: no" >&5
18537 echo "${ECHO_T}no" >&6
18538 fi
18539
18540 if test "$cf_cv_mixedcase" = yes ; then
18541 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
18542 set dummy ${ETAGS:-etags}; ac_word=$2
18543 echo "$as_me:18543: checking for $ac_word" >&5
18544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18545 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548 if test -n "$MAKE_UPPER_TAGS"; then
18549 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
18550 else
18551 ac_save_IFS=$IFS; IFS=$ac_path_separator
18552 ac_dummy="$PATH"
18553 for ac_dir in $ac_dummy; do
18554 IFS=$ac_save_IFS
18555 test -z "$ac_dir" && ac_dir=.
18556 $as_executable_p "$ac_dir/$ac_word" || continue
18557 ac_cv_prog_MAKE_UPPER_TAGS="yes"
18558 echo "$as_me:18558: found $ac_dir/$ac_word" >&5
18559 break
18560 done
18561
18562 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
18563 fi
18564 fi
18565 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
18566 if test -n "$MAKE_UPPER_TAGS"; then
18567 echo "$as_me:18567: result: $MAKE_UPPER_TAGS" >&5
18568 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
18569 else
18570 echo "$as_me:18570: result: no" >&5
18571 echo "${ECHO_T}no" >&6
18572 fi
18573
18574 else
18575 MAKE_UPPER_TAGS=no
18576 fi
18577
18578 if test "$MAKE_UPPER_TAGS" = yes ; then
18579 MAKE_UPPER_TAGS=
18580 else
18581 MAKE_UPPER_TAGS="#"
18582 fi
18583
18584 if test "$MAKE_LOWER_TAGS" = yes ; then
18585 MAKE_LOWER_TAGS=
18586 else
18587 MAKE_LOWER_TAGS="#"
18588 fi
18589
18590 LD_RPATH_OPT=
18591 echo "$as_me:18591: checking for an rpath option" >&5
18592 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18593 case $cf_cv_system_name in #(vi
18594 irix*) #(vi
18595 if test "$GCC" = yes; then
18596 LD_RPATH_OPT="-Wl,-rpath,"
18597 else
18598 LD_RPATH_OPT="-rpath "
18599 fi
18600 ;;
18601 linux*|gnu*|k*bsd*-gnu) #(vi
18602 LD_RPATH_OPT="-Wl,-rpath,"
18603 ;;
18604 openbsd[2-9].*|mirbsd*) #(vi
18605 LD_RPATH_OPT="-Wl,-rpath,"
18606 ;;
18607 dragonfly*|freebsd*) #(vi
18608 LD_RPATH_OPT="-rpath "
18609 ;;
18610 netbsd*) #(vi
18611 LD_RPATH_OPT="-Wl,-rpath,"
18612 ;;
18613 osf*|mls+*) #(vi
18614 LD_RPATH_OPT="-rpath "
18615 ;;
18616 solaris2*) #(vi
18617 LD_RPATH_OPT="-R"
18618 ;;
18619 *)
18620 ;;
18621 esac
18622 echo "$as_me:18622: result: $LD_RPATH_OPT" >&5
18623 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18624
18625 case "x$LD_RPATH_OPT" in #(vi
18626 x-R*)
18627 echo "$as_me:18627: checking if we need a space after rpath option" >&5
18628 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18629 cf_save_LIBS="$LIBS"
18630 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
18631 cat >conftest.$ac_ext <<_ACEOF
18632 #line 18632 "configure"
18633 #include "confdefs.h"
18634
18635 int
18636 main ()
18637 {
18638
18639 ;
18640 return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:18644: \"$ac_link\"") >&5
18645 (eval $ac_link) 2>&5
18646 ac_status=$?
18647 echo "$as_me:18647: \$? = $ac_status" >&5
18648 (exit $ac_status); } &&
18649 { ac_try='test -s conftest$ac_exeext'
18650 { (eval echo "$as_me:18650: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18652 ac_status=$?
18653 echo "$as_me:18653: \$? = $ac_status" >&5
18654 (exit $ac_status); }; }; then
18655 cf_rpath_space=no
18656 else
18657 echo "$as_me: failed program was:" >&5
18658 cat conftest.$ac_ext >&5
18659 cf_rpath_space=yes
18660 fi
18661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18662 LIBS="$cf_save_LIBS"
18663 echo "$as_me:18663: result: $cf_rpath_space" >&5
18664 echo "${ECHO_T}$cf_rpath_space" >&6
18665 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18666 ;;
18667 esac
18668
18669 echo "$as_me:18669: checking if rpath-hack should be disabled" >&5
18670 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18671
18672 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18673 if test "${enable_rpath_hack+set}" = set; then
18674 enableval="$enable_rpath_hack"
18675 test "$enableval" != no && enableval=yes
18676 if test "$enableval" != "yes" ; then
18677 cf_disable_rpath_hack=yes
18678 else
18679 cf_disable_rpath_hack=no
18680 fi
18681 else
18682 enableval=yes
18683 cf_disable_rpath_hack=no
18684
18685 fi;
18686 echo "$as_me:18686: result: $cf_disable_rpath_hack" >&5
18687 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18688 if test "$cf_disable_rpath_hack" = no ; then
18689
18690 echo "$as_me:18690: checking for updated LDFLAGS" >&5
18691 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18692 if test -n "$LD_RPATH_OPT" ; then
18693 echo "$as_me:18693: result: maybe" >&5
18694 echo "${ECHO_T}maybe" >&6
18695
18696 for ac_prog in ldd
18697 do
18698 # Extract the first word of "$ac_prog", so it can be a program name with args.
18699 set dummy $ac_prog; ac_word=$2
18700 echo "$as_me:18700: checking for $ac_word" >&5
18701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18702 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705 if test -n "$cf_ldd_prog"; then
18706 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18707 else
18708 ac_save_IFS=$IFS; IFS=$ac_path_separator
18709 ac_dummy="$PATH"
18710 for ac_dir in $ac_dummy; do
18711 IFS=$ac_save_IFS
18712 test -z "$ac_dir" && ac_dir=.
18713 $as_executable_p "$ac_dir/$ac_word" || continue
18714 ac_cv_prog_cf_ldd_prog="$ac_prog"
18715 echo "$as_me:18715: found $ac_dir/$ac_word" >&5
18716 break
18717 done
18718
18719 fi
18720 fi
18721 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18722 if test -n "$cf_ldd_prog"; then
18723 echo "$as_me:18723: result: $cf_ldd_prog" >&5
18724 echo "${ECHO_T}$cf_ldd_prog" >&6
18725 else
18726 echo "$as_me:18726: result: no" >&5
18727 echo "${ECHO_T}no" >&6
18728 fi
18729
18730 test -n "$cf_ldd_prog" && break
18731 done
18732 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18733
18734 cf_rpath_list="/usr/lib /lib"
18735 if test "$cf_ldd_prog" != no
18736 then
18737 cf_rpath_oops=
18738
18739 cat >conftest.$ac_ext <<_ACEOF
18740 #line 18740 "configure"
18741 #include "confdefs.h"
18742 #include <stdio.h>
18743 int
18744 main ()
18745 {
18746 printf("Hello");
18747 ;
18748 return 0;
18749 }
18750 _ACEOF
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (eval echo "$as_me:18752: \"$ac_link\"") >&5
18753 (eval $ac_link) 2>&5
18754 ac_status=$?
18755 echo "$as_me:18755: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
18757 { ac_try='test -s conftest$ac_exeext'
18758 { (eval echo "$as_me:18758: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:18761: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18763 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18764 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18765 else
18766 echo "$as_me: failed program was:" >&5
18767 cat conftest.$ac_ext >&5
18768 fi
18769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18770
18771 # If we passed the link-test, but get a "not found" on a given library,
18772 # this could be due to inept reconfiguration of gcc to make it only
18773 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18774 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18775 # /usr/local libraries.
18776 if test -n "$cf_rpath_oops"
18777 then
18778 for cf_rpath_src in $cf_rpath_oops
18779 do
18780 for cf_rpath_dir in \
18781 /usr/local \
18782 /usr/pkg \
18783 /opt/sfw
18784 do
18785 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18786 then
18787 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18788
18789 echo "${as_me:-configure}:18789: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18790
18791 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
18792 break
18793 fi
18794 done
18795 done
18796 fi
18797 fi
18798
18799 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18800
18801 echo "${as_me:-configure}:18801: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18802
18803 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
18804
18805 echo "${as_me:-configure}:18805: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
18806
18807 cf_rpath_dst=
18808 for cf_rpath_src in $LDFLAGS
18809 do
18810 case $cf_rpath_src in #(vi
18811 -L*) #(vi
18812
18813 # check if this refers to a directory which we will ignore
18814 cf_rpath_skip=no
18815 if test -n "$cf_rpath_list"
18816 then
18817 for cf_rpath_item in $cf_rpath_list
18818 do
18819 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18820 then
18821 cf_rpath_skip=yes
18822 break
18823 fi
18824 done
18825 fi
18826
18827 if test "$cf_rpath_skip" = no
18828 then
18829 # transform the option
18830 if test "$LD_RPATH_OPT" = "-R " ; then
18831 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18832 else
18833 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18834 fi
18835
18836 # if we have not already added this, add it now
18837 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18838 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18839 then
18840 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18841
18842 echo "${as_me:-configure}:18842: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18843
18844 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18845 fi
18846 fi
18847 ;;
18848 esac
18849 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18850 done
18851 LDFLAGS=$cf_rpath_dst
18852
18853 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
18854
18855 echo "${as_me:-configure}:18855: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
18856
18857 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
18858
18859 echo "${as_me:-configure}:18859: testing ...checking LIBS $LIBS ..." 1>&5
18860
18861 cf_rpath_dst=
18862 for cf_rpath_src in $LIBS
18863 do
18864 case $cf_rpath_src in #(vi
18865 -L*) #(vi
18866
18867 # check if this refers to a directory which we will ignore
18868 cf_rpath_skip=no
18869 if test -n "$cf_rpath_list"
18870 then
18871 for cf_rpath_item in $cf_rpath_list
18872 do
18873 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18874 then
18875 cf_rpath_skip=yes
18876 break
18877 fi
18878 done
18879 fi
18880
18881 if test "$cf_rpath_skip" = no
18882 then
18883 # transform the option
18884 if test "$LD_RPATH_OPT" = "-R " ; then
18885 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18886 else
18887 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18888 fi
18889
18890 # if we have not already added this, add it now
18891 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18892 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18893 then
18894 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18895
18896 echo "${as_me:-configure}:18896: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18897
18898 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18899 fi
18900 fi
18901 ;;
18902 esac
18903 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18904 done
18905 LIBS=$cf_rpath_dst
18906
18907 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
18908
18909 echo "${as_me:-configure}:18909: testing ...checked LIBS $LIBS ..." 1>&5
18910
18911 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18912
18913 echo "${as_me:-configure}:18913: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18914
18915 else
18916 echo "$as_me:18916: result: no" >&5
18917 echo "${ECHO_T}no" >&6
18918 fi
18919
18920 fi
18921
18922 # Force plink.sh to not trim pcre's libraries, which have the same symbol
18923 # names as the system regexp.
18924 if test "$with_pcre" != no
18925 then
18926 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
18927 fi
18928
18929 ### output xtermcfg.h, etc
18930 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in"
18931 cat >confcache <<\_ACEOF
18932 # This file is a shell script that caches the results of configure
18933 # tests run on this system so they can be shared between configure
18934 # scripts and configure runs, see configure's option --config-cache.
18935 # It is not useful on other systems. If it contains results you don't
18936 # want to keep, you may remove or edit it.
18937 #
18938 # config.status only pays attention to the cache file if you give it
18939 # the --recheck option to rerun configure.
18940 #
18941 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18942 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18943 # following values.
18944
18945 _ACEOF
18946
18947 # The following way of writing the cache mishandles newlines in values,
18948 # but we know of no workaround that is simple, portable, and efficient.
18949 # So, don't put newlines in cache variables' values.
18950 # Ultrix sh set writes to stderr and can't be redirected directly,
18951 # and sets the high bit in the cache file unless we assign to the vars.
18952 {
18953 (set) 2>&1 |
18954 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18955 *ac_space=\ *)
18956 # `set' does not quote correctly, so add quotes (double-quote
18957 # substitution turns \\\\ into \\, and sed turns \\ into \).
18958 sed -n \
18959 "s/'/'\\\\''/g;
18960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18961 ;;
18962 *)
18963 # `set' quotes correctly as required by POSIX, so do not add quotes.
18964 sed -n \
18965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18966 ;;
18967 esac;
18968 } |
18969 sed '
18970 t clear
18971 : clear
18972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18973 t end
18974 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18975 : end' >>confcache
18976 if cmp -s $cache_file confcache; then :; else
18977 if test -w $cache_file; then
18978 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18979 cat confcache >$cache_file
18980 else
18981 echo "not updating unwritable cache $cache_file"
18982 fi
18983 fi
18984 rm -f confcache
18985
18986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18987 # Let make expand exec_prefix.
18988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18989
18990 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18991 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18992 # trailing colons and then remove the whole line if VPATH becomes empty
18993 # (actually we leave an empty line to preserve line numbers).
18994 if test "x$srcdir" = x.; then
18995 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18996 s/:*\$(srcdir):*/:/;
18997 s/:*\${srcdir}:*/:/;
18998 s/:*@srcdir@:*/:/;
18999 s/^\([^=]*=[ ]*\):*/\1/;
19000 s/:*$//;
19001 s/^[^=]*=[ ]*$//;
19002 }'
19003 fi
19004
19005 DEFS=-DHAVE_CONFIG_H
19006
19007 : ${CONFIG_STATUS=./config.status}
19008 ac_clean_files_save=$ac_clean_files
19009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19010 { echo "$as_me:19010: creating $CONFIG_STATUS" >&5
19011 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19012 cat >$CONFIG_STATUS <<_ACEOF
19013 #! $SHELL
19014 # Generated automatically by configure.
19015 # Run this file to recreate the current configuration.
19016 # Compiler output produced by configure, useful for debugging
19017 # configure, is in config.log if it exists.
19018
19019 debug=false
19020 SHELL=\${CONFIG_SHELL-$SHELL}
19021 ac_cs_invocation="\$0 \$@"
19022
19023 _ACEOF
19024
19025 cat >>$CONFIG_STATUS <<\_ACEOF
19026 # Be Bourne compatible
19027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19028 emulate sh
19029 NULLCMD=:
19030 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19031 set -o posix
19032 fi
19033
19034 # Name of the executable.
19035 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19036
19037 if expr a : '\(a\)' >/dev/null 2>&1; then
19038 as_expr=expr
19039 else
19040 as_expr=false
19041 fi
19042
19043 rm -f conf$$ conf$$.exe conf$$.file
19044 echo >conf$$.file
19045 if ln -s conf$$.file conf$$ 2>/dev/null; then
19046 # We could just check for DJGPP; but this test a) works b) is more generic
19047 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19048 if test -f conf$$.exe; then
19049 # Don't use ln at all; we don't have any links
19050 as_ln_s='cp -p'
19051 else
19052 as_ln_s='ln -s'
19053 fi
19054 elif ln conf$$.file conf$$ 2>/dev/null; then
19055 as_ln_s=ln
19056 else
19057 as_ln_s='cp -p'
19058 fi
19059 rm -f conf$$ conf$$.exe conf$$.file
19060
19061 as_executable_p="test -f"
19062
19063 # Support unset when possible.
19064 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19065 as_unset=unset
19066 else
19067 as_unset=false
19068 fi
19069
19070 # NLS nuisances.
19071 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19072 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19073 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19074 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19075 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19076 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19077 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19078 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19079
19080 # IFS
19081 # We need space, tab and new line, in precisely that order.
19082 as_nl='
19083 '
19084 IFS=" $as_nl"
19085
19086 # CDPATH.
19087 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19088
19089 exec 6>&1
19090
19091 _ACEOF
19092
19093 # Files that config.status was made for.
19094 if test -n "$ac_config_files"; then
19095 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19096 fi
19097
19098 if test -n "$ac_config_headers"; then
19099 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19100 fi
19101
19102 if test -n "$ac_config_links"; then
19103 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19104 fi
19105
19106 if test -n "$ac_config_commands"; then
19107 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19108 fi
19109
19110 cat >>$CONFIG_STATUS <<\EOF
19111
19112 ac_cs_usage="\
19113 \`$as_me' instantiates files from templates according to the
19114 current configuration.
19115
19116 Usage: $0 [OPTIONS] [FILE]...
19117
19118 -h, --help print this help, then exit
19119 -V, --version print version number, then exit
19120 -d, --debug don't remove temporary files
19121 --recheck update $as_me by reconfiguring in the same conditions
19122 --file=FILE[:TEMPLATE]
19123 instantiate the configuration file FILE
19124 --header=FILE[:TEMPLATE]
19125 instantiate the configuration header FILE
19126
19127 Configuration files:
19128 $config_files
19129
19130 Configuration headers:
19131 $config_headers
19132
19133 Report bugs to <dickey@invisible-island.net>."
19134 EOF
19135
19136 cat >>$CONFIG_STATUS <<EOF
19137 ac_cs_version="\\
19138 config.status
19139 configured by $0, generated by GNU Autoconf 2.52.20121002,
19140 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19141
19142 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19143 Free Software Foundation, Inc.
19144 This config.status script is free software; the Free Software Foundation
19145 gives unlimited permission to copy, distribute and modify it."
19146 srcdir=$srcdir
19147 INSTALL="$INSTALL"
19148 EOF
19149
19150 cat >>$CONFIG_STATUS <<\EOF
19151 # If no file are specified by the user, then we need to provide default
19152 # value. By we need to know if files were specified by the user.
19153 ac_need_defaults=:
19154 while test $# != 0
19155 do
19156 case $1 in
19157 --*=*)
19158 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19159 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19160 shift
19161 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19162 shift
19163 ;;
19164 -*);;
19165 *) # This is not an option, so the user has probably given explicit
19166 # arguments.
19167 ac_need_defaults=false;;
19168 esac
19169
19170 case $1 in
19171 # Handling of the options.
19172 EOF
19173 cat >>$CONFIG_STATUS <<EOF
19174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19175 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19176 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19177 EOF
19178 cat >>$CONFIG_STATUS <<\EOF
19179 --version | --vers* | -V )
19180 echo "$ac_cs_version"; exit 0 ;;
19181 --he | --h)
19182 # Conflict between --help and --header
19183 { { echo "$as_me:19183: error: ambiguous option: $1
19184 Try \`$0 --help' for more information." >&5
19185 echo "$as_me: error: ambiguous option: $1
19186 Try \`$0 --help' for more information." >&2;}
19187 { (exit 1); exit 1; }; };;
19188 --help | --hel | -h )
19189 echo "$ac_cs_usage"; exit 0 ;;
19190 --debug | --d* | -d )
19191 debug=: ;;
19192 --file | --fil | --fi | --f )
19193 shift
19194 CONFIG_FILES="$CONFIG_FILES $1"
19195 ac_need_defaults=false;;
19196 --header | --heade | --head | --hea )
19197 shift
19198 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19199 ac_need_defaults=false;;
19200
19201 # This is an error.
19202 -*) { { echo "$as_me:19202: error: unrecognized option: $1
19203 Try \`$0 --help' for more information." >&5
19204 echo "$as_me: error: unrecognized option: $1
19205 Try \`$0 --help' for more information." >&2;}
19206 { (exit 1); exit 1; }; } ;;
19207
19208 *) ac_config_targets="$ac_config_targets $1" ;;
19209
19210 esac
19211 shift
19212 done
19213
19214 exec 5>>config.log
19215 cat >&5 << _ACEOF
19216
19217 ## ----------------------- ##
19218 ## Running config.status. ##
19219 ## ----------------------- ##
19220
19221 This file was extended by $as_me 2.52.20121002, executed with
19222 CONFIG_FILES = $CONFIG_FILES
19223 CONFIG_HEADERS = $CONFIG_HEADERS
19224 CONFIG_LINKS = $CONFIG_LINKS
19225 CONFIG_COMMANDS = $CONFIG_COMMANDS
19226 > $ac_cs_invocation
19227 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19228
19229 _ACEOF
19230 EOF
19231
19232 cat >>$CONFIG_STATUS <<\EOF
19233 for ac_config_target in $ac_config_targets
19234 do
19235 case "$ac_config_target" in
19236 # Handling of arguments.
19237 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19238 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;;
19239 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;;
19240 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
19241 *) { { echo "$as_me:19241: error: invalid argument: $ac_config_target" >&5
19242 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19243 { (exit 1); exit 1; }; };;
19244 esac
19245 done
19246
19247 # If the user did not use the arguments to specify the items to instantiate,
19248 # then the envvar interface is used. Set only those that are not.
19249 # We use the long form for the default assignment because of an extremely
19250 # bizarre bug on SunOS 4.1.3.
19251 if $ac_need_defaults; then
19252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19254 fi
19255
19256 # Create a temporary directory, and hook for its removal unless debugging.
19257 $debug ||
19258 {
19259 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19260 trap '{ (exit 1); exit 1; }' 1 2 13 15
19261 }
19262
19263 # Create a (secure) tmp directory for tmp files.
19264 : ${TMPDIR=/tmp}
19265 {
19266 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19267 test -n "$tmp" && test -d "$tmp"
19268 } ||
19269 {
19270 tmp=$TMPDIR/cs$$-$RANDOM
19271 (umask 077 && mkdir $tmp)
19272 } ||
19273 {
19274 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19275 { (exit 1); exit 1; }
19276 }
19277
19278 EOF
19279
19280 cat >>$CONFIG_STATUS <<EOF
19281
19282 #
19283 # CONFIG_FILES section.
19284 #
19285
19286 # No need to generate the scripts if there are no CONFIG_FILES.
19287 # This happens for instance when ./config.status config.h
19288 if test -n "\$CONFIG_FILES"; then
19289 # Protect against being on the right side of a sed subst in config.status.
19290 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19291 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19292 s,@SHELL@,$SHELL,;t t
19293 s,@exec_prefix@,$exec_prefix,;t t
19294 s,@prefix@,$prefix,;t t
19295 s,@program_transform_name@,$program_transform_name,;t t
19296 s,@bindir@,$bindir,;t t
19297 s,@sbindir@,$sbindir,;t t
19298 s,@libexecdir@,$libexecdir,;t t
19299 s,@datarootdir@,$datarootdir,;t t
19300 s,@datadir@,$datadir,;t t
19301 s,@sysconfdir@,$sysconfdir,;t t
19302 s,@sharedstatedir@,$sharedstatedir,;t t
19303 s,@localstatedir@,$localstatedir,;t t
19304 s,@libdir@,$libdir,;t t
19305 s,@includedir@,$includedir,;t t
19306 s,@oldincludedir@,$oldincludedir,;t t
19307 s,@infodir@,$infodir,;t t
19308 s,@mandir@,$mandir,;t t
19309 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19310 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19311 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19312 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19313 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19314 s,@build_alias@,$build_alias,;t t
19315 s,@host_alias@,$host_alias,;t t
19316 s,@target_alias@,$target_alias,;t t
19317 s,@ECHO_C@,$ECHO_C,;t t
19318 s,@ECHO_N@,$ECHO_N,;t t
19319 s,@ECHO_T@,$ECHO_T,;t t
19320 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19321 s,@DEFS@,$DEFS,;t t
19322 s,@LIBS@,$LIBS,;t t
19323 s,@build@,$build,;t t
19324 s,@build_cpu@,$build_cpu,;t t
19325 s,@build_vendor@,$build_vendor,;t t
19326 s,@build_os@,$build_os,;t t
19327 s,@host@,$host,;t t
19328 s,@host_cpu@,$host_cpu,;t t
19329 s,@host_vendor@,$host_vendor,;t t
19330 s,@host_os@,$host_os,;t t
19331 s,@CC@,$CC,;t t
19332 s,@CFLAGS@,$CFLAGS,;t t
19333 s,@LDFLAGS@,$LDFLAGS,;t t
19334 s,@CPPFLAGS@,$CPPFLAGS,;t t
19335 s,@ac_ct_CC@,$ac_ct_CC,;t t
19336 s,@EXEEXT@,$EXEEXT,;t t
19337 s,@OBJEXT@,$OBJEXT,;t t
19338 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19339 s,@CPP@,$CPP,;t t
19340 s,@AWK@,$AWK,;t t
19341 s,@GROFF_PATH@,$GROFF_PATH,;t t
19342 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
19343 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
19344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19347 s,@LN_S@,$LN_S,;t t
19348 s,@LINT@,$LINT,;t t
19349 s,@APP_CLASS@,$APP_CLASS,;t t
19350 s,@APPSDIR@,$APPSDIR,;t t
19351 s,@no_appsdir@,$no_appsdir,;t t
19352 s,@ICON_NAME@,$ICON_NAME,;t t
19353 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t
19354 s,@PIXMAPDIR@,$PIXMAPDIR,;t t
19355 s,@no_pixmapdir@,$no_pixmapdir,;t t
19356 s,@ICONDIR@,$ICONDIR,;t t
19357 s,@no_icondir@,$no_icondir,;t t
19358 s,@ICON_FORMAT@,$ICON_FORMAT,;t t
19359 s,@ICON_THEME@,$ICON_THEME,;t t
19360 s,@ICON_LIST@,$ICON_LIST,;t t
19361 s,@desktop_utils@,$desktop_utils,;t t
19362 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
19363 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t
19364 s,@XTERM_PATH@,$XTERM_PATH,;t t
19365 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
19366 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
19367 s,@X_CFLAGS@,$X_CFLAGS,;t t
19368 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19369 s,@X_LIBS@,$X_LIBS,;t t
19370 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19371 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19372 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19373 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t
19374 s,@IMAKE@,$IMAKE,;t t
19375 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
19376 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
19377 s,@default_termid@,$default_termid,;t t
19378 s,@default_TERM@,$default_TERM,;t t
19379 s,@backarrow_is_bs@,$backarrow_is_bs,;t t
19380 s,@backarrow_is_erase@,$backarrow_is_erase,;t t
19381 s,@delete_is_del@,$delete_is_del,;t t
19382 s,@alt_sends_esc@,$alt_sends_esc,;t t
19383 s,@meta_sends_esc@,$meta_sends_esc,;t t
19384 s,@cf_tic_prog@,$cf_tic_prog,;t t
19385 s,@no_ticprog@,$no_ticprog,;t t
19386 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
19387 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
19388 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
19389 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
19390 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
19391 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
19392 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
19393 s,@LUIT@,$LUIT,;t t
19394 s,@ECHO_LT@,$ECHO_LT,;t t
19395 s,@ECHO_LD@,$ECHO_LD,;t t
19396 s,@RULE_CC@,$RULE_CC,;t t
19397 s,@SHOW_CC@,$SHOW_CC,;t t
19398 s,@ECHO_CC@,$ECHO_CC,;t t
19399 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19400 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
19401 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
19402 s,@EXTRASRCS@,$EXTRASRCS,;t t
19403 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
19404 s,@MAY_SETUID@,$MAY_SETUID,;t t
19405 s,@NOT_SETUID@,$NOT_SETUID,;t t
19406 s,@CTAGS@,$CTAGS,;t t
19407 s,@ETAGS@,$ETAGS,;t t
19408 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19409 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19410 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19411 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19412 CEOF
19413
19414 EOF
19415
19416 cat >>$CONFIG_STATUS <<\EOF
19417 # Split the substitutions into bite-sized pieces for seds with
19418 # small command number limits, like on Digital OSF/1 and HP-UX.
19419 ac_max_sed_lines=48
19420 ac_sed_frag=1 # Number of current file.
19421 ac_beg=1 # First line for current file.
19422 ac_end=$ac_max_sed_lines # Line after last line for current file.
19423 ac_more_lines=:
19424 ac_sed_cmds=
19425 while $ac_more_lines; do
19426 if test $ac_beg -gt 1; then
19427 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19428 else
19429 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19430 fi
19431 if test ! -s $tmp/subs.frag; then
19432 ac_more_lines=false
19433 else
19434 # The purpose of the label and of the branching condition is to
19435 # speed up the sed processing (if there are no `@' at all, there
19436 # is no need to browse any of the substitutions).
19437 # These are the two extra sed commands mentioned above.
19438 (echo ':t
19439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19440 if test -z "$ac_sed_cmds"; then
19441 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19442 else
19443 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19444 fi
19445 ac_sed_frag=`expr $ac_sed_frag + 1`
19446 ac_beg=$ac_end
19447 ac_end=`expr $ac_end + $ac_max_sed_lines`
19448 fi
19449 done
19450 if test -z "$ac_sed_cmds"; then
19451 ac_sed_cmds=cat
19452 fi
19453 fi # test -n "$CONFIG_FILES"
19454
19455 EOF
19456 cat >>$CONFIG_STATUS <<\EOF
19457 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19459 case $ac_file in
19460 - | *:- | *:-:* ) # input from stdin
19461 cat >$tmp/stdin
19462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19466 * ) ac_file_in=$ac_file.in ;;
19467 esac
19468
19469 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19470 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19471 X"$ac_file" : 'X\(//\)[^/]' \| \
19472 X"$ac_file" : 'X\(//\)$' \| \
19473 X"$ac_file" : 'X\(/\)' \| \
19474 . : '\(.\)' 2>/dev/null ||
19475 echo X"$ac_file" |
19476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19478 /^X\(\/\/\)$/{ s//\1/; q; }
19479 /^X\(\/\).*/{ s//\1/; q; }
19480 s/.*/./; q'`
19481 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19482 { case "$ac_dir" in
19483 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19484 *) as_incr_dir=.;;
19485 esac
19486 as_dummy="$ac_dir"
19487 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19488 case $as_mkdir_dir in
19489 # Skip DOS drivespec
19490 ?:) as_incr_dir=$as_mkdir_dir ;;
19491 *)
19492 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19493 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19494 ;;
19495 esac
19496 done; }
19497
19498 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19499 # A "../" for each directory in $ac_dir_suffix.
19500 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19501 else
19502 ac_dir_suffix= ac_dots=
19503 fi
19504
19505 case $srcdir in
19506 .) ac_srcdir=.
19507 if test -z "$ac_dots"; then
19508 ac_top_srcdir=.
19509 else
19510 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19511 fi ;;
19512 [\\/]* | ?:[\\/]* )
19513 ac_srcdir=$srcdir$ac_dir_suffix;
19514 ac_top_srcdir=$srcdir ;;
19515 *) # Relative path.
19516 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19517 ac_top_srcdir=$ac_dots$srcdir ;;
19518 esac
19519
19520 case $INSTALL in
19521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19522 *) ac_INSTALL=$ac_dots$INSTALL ;;
19523 esac
19524
19525 if test x"$ac_file" != x-; then
19526 { echo "$as_me:19526: creating $ac_file" >&5
19527 echo "$as_me: creating $ac_file" >&6;}
19528 rm -f "$ac_file"
19529 fi
19530 # Let's still pretend it is `configure' which instantiates (i.e., don't
19531 # use $as_me), people would be surprised to read:
19532 # /* config.h. Generated automatically by config.status. */
19533 configure_input="Generated automatically from `echo $ac_file_in |
19534 sed 's,.*/,,'` by configure."
19535
19536 # First look for the input files in the build tree, otherwise in the
19537 # src tree.
19538 ac_file_inputs=`IFS=:
19539 for f in $ac_file_in; do
19540 case $f in
19541 -) echo $tmp/stdin ;;
19542 [\\/$]*)
19543 # Absolute (can't be DOS-style, as IFS=:)
19544 test -f "$f" || { { echo "$as_me:19544: error: cannot find input file: $f" >&5
19545 echo "$as_me: error: cannot find input file: $f" >&2;}
19546 { (exit 1); exit 1; }; }
19547 echo $f;;
19548 *) # Relative
19549 if test -f "$f"; then
19550 # Build tree
19551 echo $f
19552 elif test -f "$srcdir/$f"; then
19553 # Source tree
19554 echo $srcdir/$f
19555 else
19556 # /dev/null tree
19557 { { echo "$as_me:19557: error: cannot find input file: $f" >&5
19558 echo "$as_me: error: cannot find input file: $f" >&2;}
19559 { (exit 1); exit 1; }; }
19560 fi;;
19561 esac
19562 done` || { (exit 1); exit 1; }
19563 EOF
19564 cat >>$CONFIG_STATUS <<\EOF
19565 ac_warn_datarootdir=no
19566 if test x"$ac_file" != x-; then
19567 for ac_item in $ac_file_inputs
19568 do
19569 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19570 if test -n "$ac_seen"; then
19571 ac_used=`grep '@datarootdir@' $ac_item`
19572 if test -z "$ac_used"; then
19573 { echo "$as_me:19573: WARNING: datarootdir was used implicitly but not set:
19574 $ac_seen" >&5
19575 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19576 $ac_seen" >&2;}
19577 ac_warn_datarootdir=yes
19578 fi
19579 fi
19580 ac_seen=`grep '${datarootdir}' $ac_item`
19581 if test -n "$ac_seen"; then
19582 { echo "$as_me:19582: WARNING: datarootdir was used explicitly but not set:
19583 $ac_seen" >&5
19584 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19585 $ac_seen" >&2;}
19586 ac_warn_datarootdir=yes
19587 fi
19588 done
19589 fi
19590
19591 if test "x$ac_warn_datarootdir" = xyes; then
19592 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19593 fi
19594
19595 EOF
19596 cat >>$CONFIG_STATUS <<EOF
19597 sed "$ac_vpsub
19598 $extrasub
19599 EOF
19600 cat >>$CONFIG_STATUS <<\EOF
19601 :t
19602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19603 s,@configure_input@,$configure_input,;t t
19604 s,@srcdir@,$ac_srcdir,;t t
19605 s,@top_srcdir@,$ac_top_srcdir,;t t
19606 s,@INSTALL@,$ac_INSTALL,;t t
19607 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19608 rm -f $tmp/stdin
19609 if test x"$ac_file" != x-; then
19610 cp $tmp/out $ac_file
19611
19612 for ac_name in prefix exec_prefix datarootdir
19613 do
19614 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19615 if test -n "$ac_seen"; then
19616 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19617 if test -z "$ac_init"; then
19618 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19619 { echo "$as_me:19619: WARNING: Variable $ac_name is used but was not set:
19620 $ac_seen" >&5
19621 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19622 $ac_seen" >&2;}
19623 fi
19624 fi
19625 done
19626 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19627 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19628 if test -s $tmp/out; then
19629 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19630 { echo "$as_me:19630: WARNING: Some variables may not be substituted:
19631 $ac_seen" >&5
19632 echo "$as_me: WARNING: Some variables may not be substituted:
19633 $ac_seen" >&2;}
19634 fi
19635 else
19636 cat $tmp/out
19637 fi
19638 rm -f $tmp/out
19639
19640 done
19641 EOF
19642 cat >>$CONFIG_STATUS <<\EOF
19643
19644 #
19645 # CONFIG_HEADER section.
19646 #
19647
19648 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19649 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19650 #
19651 # ac_d sets the value in "#define NAME VALUE" lines.
19652 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19653 ac_dB='[ ].*$,\1#\2'
19654 ac_dC=' '
19655 ac_dD=',;t'
19656 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19657 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19658 ac_iB='\([ ]\),\1#\2define\3'
19659 ac_iC=' '
19660 ac_iD='\4,;t'
19661 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19662 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19663 ac_uB='$,\1#\2define\3'
19664 ac_uC=' '
19665 ac_uD=',;t'
19666
19667 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19668 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19669 case $ac_file in
19670 - | *:- | *:-:* ) # input from stdin
19671 cat >$tmp/stdin
19672 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19674 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19675 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19676 * ) ac_file_in=$ac_file.in ;;
19677 esac
19678
19679 test x"$ac_file" != x- && { echo "$as_me:19679: creating $ac_file" >&5
19680 echo "$as_me: creating $ac_file" >&6;}
19681
19682 # First look for the input files in the build tree, otherwise in the
19683 # src tree.
19684 ac_file_inputs=`IFS=:
19685 for f in $ac_file_in; do
19686 case $f in
19687 -) echo $tmp/stdin ;;
19688 [\\/$]*)
19689 # Absolute (can't be DOS-style, as IFS=:)
19690 test -f "$f" || { { echo "$as_me:19690: error: cannot find input file: $f" >&5
19691 echo "$as_me: error: cannot find input file: $f" >&2;}
19692 { (exit 1); exit 1; }; }
19693 echo $f;;
19694 *) # Relative
19695 if test -f "$f"; then
19696 # Build tree
19697 echo $f
19698 elif test -f "$srcdir/$f"; then
19699 # Source tree
19700 echo $srcdir/$f
19701 else
19702 # /dev/null tree
19703 { { echo "$as_me:19703: error: cannot find input file: $f" >&5
19704 echo "$as_me: error: cannot find input file: $f" >&2;}
19705 { (exit 1); exit 1; }; }
19706 fi;;
19707 esac
19708 done` || { (exit 1); exit 1; }
19709 # Remove the trailing spaces.
19710 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19711
19712 EOF
19713
19714 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19715 # `conftest.undefs', that substitutes the proper values into
19716 # config.h.in to produce config.h. The first handles `#define'
19717 # templates, and the second `#undef' templates.
19718 # And first: Protect against being on the right side of a sed subst in
19719 # config.status. Protect against being in an unquoted here document
19720 # in config.status.
19721 rm -f conftest.defines conftest.undefs
19722 # Using a here document instead of a string reduces the quoting nightmare.
19723 # Putting comments in sed scripts is not portable.
19724 #
19725 # `end' is used to avoid that the second main sed command (meant for
19726 # 0-ary CPP macros) applies to n-ary macro definitions.
19727 # See the Autoconf documentation for `clear'.
19728 cat >confdef2sed.sed <<\EOF
19729 s/[\\&,]/\\&/g
19730 s,[\\$`],\\&,g
19731 t clear
19732 : clear
19733 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
19734 t end
19735 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19736 : end
19737 EOF
19738 # If some macros were called several times there might be several times
19739 # the same #defines, which is useless. Nevertheless, we may not want to
19740 # sort them, since we want the *last* AC-DEFINE to be honored.
19741 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19742 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19743 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
19744 rm -f confdef2sed.sed
19745
19746 # This sed command replaces #undef with comments. This is necessary, for
19747 # example, in the case of _POSIX_SOURCE, which is predefined and required
19748 # on some systems where configure will not decide to define it.
19749 cat >>conftest.undefs <<\EOF
19750 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19751 EOF
19752
19753 # Break up conftest.defines because some shells have a limit on the size
19754 # of here documents, and old seds have small limits too (100 cmds).
19755 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19756 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19757 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19758 echo ' :' >>$CONFIG_STATUS
19759 rm -f conftest.tail
19760 while grep . conftest.defines >/dev/null
19761 do
19762 # Write a limited-size here document to $tmp/defines.sed.
19763 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19764 # Speed up: don't consider the non `#define' lines.
19765 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19766 # Work around the forget-to-reset-the-flag bug.
19767 echo 't clr' >>$CONFIG_STATUS
19768 echo ': clr' >>$CONFIG_STATUS
19769 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19770 echo 'CEOF
19771 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19772 rm -f $tmp/in
19773 mv $tmp/out $tmp/in
19774 ' >>$CONFIG_STATUS
19775 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19776 rm -f conftest.defines
19777 mv conftest.tail conftest.defines
19778 done
19779 rm -f conftest.defines
19780 echo ' fi # egrep' >>$CONFIG_STATUS
19781 echo >>$CONFIG_STATUS
19782
19783 # Break up conftest.undefs because some shells have a limit on the size
19784 # of here documents, and old seds have small limits too (100 cmds).
19785 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19786 rm -f conftest.tail
19787 while grep . conftest.undefs >/dev/null
19788 do
19789 # Write a limited-size here document to $tmp/undefs.sed.
19790 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19791 # Speed up: don't consider the non `#undef'
19792 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19793 # Work around the forget-to-reset-the-flag bug.
19794 echo 't clr' >>$CONFIG_STATUS
19795 echo ': clr' >>$CONFIG_STATUS
19796 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19797 echo 'CEOF
19798 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19799 rm -f $tmp/in
19800 mv $tmp/out $tmp/in
19801 ' >>$CONFIG_STATUS
19802 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19803 rm -f conftest.undefs
19804 mv conftest.tail conftest.undefs
19805 done
19806 rm -f conftest.undefs
19807
19808 cat >>$CONFIG_STATUS <<\EOF
19809 # Let's still pretend it is `configure' which instantiates (i.e., don't
19810 # use $as_me), people would be surprised to read:
19811 # /* config.h. Generated automatically by config.status. */
19812 if test x"$ac_file" = x-; then
19813 echo "/* Generated automatically by configure. */" >$tmp/config.h
19814 else
19815 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19816 fi
19817 cat $tmp/in >>$tmp/config.h
19818 rm -f $tmp/in
19819 if test x"$ac_file" != x-; then
19820 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19821 { echo "$as_me:19821: $ac_file is unchanged" >&5
19822 echo "$as_me: $ac_file is unchanged" >&6;}
19823 else
19824 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19825 X"$ac_file" : 'X\(//\)[^/]' \| \
19826 X"$ac_file" : 'X\(//\)$' \| \
19827 X"$ac_file" : 'X\(/\)' \| \
19828 . : '\(.\)' 2>/dev/null ||
19829 echo X"$ac_file" |
19830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19832 /^X\(\/\/\)$/{ s//\1/; q; }
19833 /^X\(\/\).*/{ s//\1/; q; }
19834 s/.*/./; q'`
19835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19836 { case "$ac_dir" in
19837 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19838 *) as_incr_dir=.;;
19839 esac
19840 as_dummy="$ac_dir"
19841 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19842 case $as_mkdir_dir in
19843 # Skip DOS drivespec
19844 ?:) as_incr_dir=$as_mkdir_dir ;;
19845 *)
19846 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19847 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19848 ;;
19849 esac
19850 done; }
19851
19852 fi
19853 rm -f $ac_file
19854 mv $tmp/config.h $ac_file
19855 fi
19856 else
19857 cat $tmp/config.h
19858 rm -f $tmp/config.h
19859 fi
19860 done
19861 EOF
19862
19863 cat >>$CONFIG_STATUS <<\EOF
19864
19865 { (exit 0); exit 0; }
19866 EOF
19867 chmod +x $CONFIG_STATUS
19868 ac_clean_files=$ac_clean_files_save
19869
19870 # configure is writing to config.log, and then calls config.status.
19871 # config.status does its own redirection, appending to config.log.
19872 # Unfortunately, on DOS this fails, as config.log is still kept open
19873 # by configure, so config.status won't be able to write to it; its
19874 # output is simply discarded. So we exec the FD to /dev/null,
19875 # effectively closing config.log, so it can be properly (re)opened and
19876 # appended to by config.status. When coming back to configure, we
19877 # need to make the FD available again.
19878 if test "$no_create" != yes; then
19879 ac_cs_success=:
19880 exec 5>/dev/null
19881 $SHELL $CONFIG_STATUS || ac_cs_success=false
19882 exec 5>>config.log
19883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19884 # would make configure fail if this is the last instruction.
19885 $ac_cs_success || { (exit 1); exit 1; }
19886 fi
19887
19888