configure revision 1.1.1.12 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20150926.
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 --without-xinerama do not use Xinerama extension for multiscreen support
717 --with-Xaw3d link with Xaw 3d library
718 --with-Xaw3dxft link with Xaw 3d xft library
719 --with-neXtaw link with neXT Athena library
720 --with-XawPlus link with Athena-Plus library
721 --enable-narrowproto enable narrow prototypes for X libraries
722 --disable-imake disable use of imake for definitions
723 --with-man2html=XXX use XXX rather than groff
724 Terminal Configuration:
725 --with-terminal-id=V set default decTerminalID (default: vt420)
726 --with-terminal-type=T set default $TERM (default: xterm)
727 --enable-backarrow-key set default backarrowKey resource (default: true)
728 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
729 --enable-delete-is-del set default deleteIsDEL resource (default: maybe)
730 --enable-pty-erase set default ptyInitialErase resource (default: maybe)
731 --enable-alt-sends-esc set default altSendsEscape resource (default: no)
732 --enable-meta-sends-esc set default metaSendsEscape resource (default: no)
733 --with-own-terminfo=P set default $TERMINFO (default: from environment)
734 Optional Features:
735 --disable-active-icon disable X11R6.3 active-icon feature
736 --disable-ansi-color disable ANSI color
737 --disable-16-color disable 16-color support
738 --enable-256-color enable 256-color support
739 --enable-88-color enable 88-color support
740 --disable-blink-cursor disable support for blinking cursor
741 --enable-broken-osc allow broken Linux OSC-strings
742 --disable-broken-st disallow broken string-terminators
743 --enable-builtin-xpms compile-in icon data
744 --disable-c1-print disallow -k8 option for printable 128-159
745 --disable-bold-color disable PC-style mapping of bold colors
746 --disable-color-class disable separate color class resources
747 --disable-color-mode disable default colorMode resource
748 --disable-highlighting disable support for color highlighting
749 --disable-doublechars disable support for double-size chars
750 --disable-boxchars disable fallback-support for box chars
751 --enable-exec-xterm enable "spawn-new-terminal" action
752 --enable-double-buffer enable double-buffering
753 --disable-freetype disable freetype library-support
754 --with-freetype-config configure script to use for FreeType
755 --with-freetype-cflags -D/-I options for compiling with FreeType
756 --with-freetype-libs -L/-l options to link FreeType
757 --enable-hp-fkeys enable support for HP-style function keys
758 --enable-sco-fkeys enable support for SCO-style function keys
759 --disable-sun-fkeys disable support for Sun-style function keys
760 --disable-fifo-lines disable FIFO-storage for saved-lines
761 --disable-i18n disable internationalization
762 --disable-initial-erase disable setup for stty erase
763 --disable-input-method disable input-method
764 --enable-load-vt-fonts enable load-vt-fonts() action
765 --enable-logging enable logging
766 --enable-logfile-exec enable exec'd logfile filter
767 --disable-maximize disable actions for iconify/deiconify/maximize/restore
768 --disable-num-lock disable NumLock keypad support
769 --disable-paste64 disable get/set base64 selection data
770 --disable-pty-handshake disable pty-handshake support
771 --enable-readline-mouse enable support for mouse in readline applications
772 --disable-regex disable regular-expression selections
773 --with-pcre use PCRE for regular-expressions
774 --disable-rightbar disable right-scrollbar support
775 --disable-samename disable check for redundant name-change
776 --disable-selection-ops disable selection-action operations
777 --disable-session-mgt disable support for session management
778 --disable-tcap-fkeys disable termcap function-keys support
779 --disable-tcap-query disable compiled-in termcap-query support
780 --disable-tek4014 disable tek4014 emulation
781 --enable-toolbar compile-in toolbar for pulldown menus
782 --disable-vt52 disable VT52 emulation
783 --disable-wide-attrs disable wide-attribute support
784 --disable-wide-chars disable wide-character support
785 --enable-16bit-chars enable 16-bit character support
786 --enable-mini-luit enable mini-luit (built-in Latin9 support)
787 --disable-luit enable luit filter (Unicode translation)
788 --enable-dabbrev enable dynamic-abbreviation support
789 --enable-dec-locator enable DECterm Locator support
790 --enable-screen-dumps enable XHTML and SVG screen dumps
791 --enable-regis-graphics enable ReGIS graphics support
792 --enable-sixel-graphics enable sixel graphics support
793 --disable-rectangles disable VT420 rectangle support
794 --disable-ziconbeep disable -ziconbeep option
795 Testing/development Options:
796 --enable-trace test: set to enable debugging traces
797 --with-dmalloc test: use Gray Watson's dmalloc library
798 --with-dbmalloc test: use Conor Cahill's dbmalloc library
799 --with-valgrind test: use valgrind
800 --disable-leaks test: free permanent memory, analyze leaks
801 --disable-echo do not display "compiling" commands
802 --enable-xmc-glitch test: enable xmc magic-cookie emulation
803 --enable-warnings test: turn on GCC compiler warnings
804 --disable-rpath-hack don't add rpath options for additional libraries
805
806 Some influential environment variables:
807 CC C compiler command
808 CFLAGS C compiler flags
809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
810 nonstandard directory <lib dir>
811 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
812 headers in a nonstandard directory <include dir>
813 CPP C preprocessor
814
815 Use these variables to override the choices made by `configure' or to help
816 it to find libraries and programs with nonstandard names/locations.
817
818 EOF
819 fi
820
821 if test "$ac_init_help" = "recursive"; then
822 # If there are subdirs, report their specific --help.
823 ac_popdir=`pwd`
824 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
825 cd $ac_subdir
826 # A "../" for each directory in /$ac_subdir.
827 ac_dots=`echo $ac_subdir |
828 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
829
830 case $srcdir in
831 .) # No --srcdir option. We are building in place.
832 ac_sub_srcdir=$srcdir ;;
833 [\\/]* | ?:[\\/]* ) # Absolute path.
834 ac_sub_srcdir=$srcdir/$ac_subdir ;;
835 *) # Relative path.
836 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
837 esac
838
839 # Check for guested configure; otherwise get Cygnus style configure.
840 if test -f $ac_sub_srcdir/configure.gnu; then
841 echo
842 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
843 elif test -f $ac_sub_srcdir/configure; then
844 echo
845 $SHELL $ac_sub_srcdir/configure --help=recursive
846 elif test -f $ac_sub_srcdir/configure.ac ||
847 test -f $ac_sub_srcdir/configure.in; then
848 echo
849 $ac_configure --help
850 else
851 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
852 fi
853 cd $ac_popdir
854 done
855 fi
856
857 test -n "$ac_init_help" && exit 0
858 if $ac_init_version; then
859 cat <<\EOF
860
861 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
862 Free Software Foundation, Inc.
863 This configure script is free software; the Free Software Foundation
864 gives unlimited permission to copy, distribute and modify it.
865 EOF
866 exit 0
867 fi
868 exec 5>config.log
869 cat >&5 <<EOF
870 This file contains any messages produced by compilers while
871 running configure, to aid debugging if configure makes a mistake.
872
873 It was created by $as_me, which was
874 generated by GNU Autoconf 2.52.20150926. Invocation command line was
875
876 $ $0 $@
877
878 EOF
879 {
880 cat <<_ASUNAME
881 ## ---------- ##
882 ## Platform. ##
883 ## ---------- ##
884
885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
890
891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
893
894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
897 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
901
902 PATH = $PATH
903
904 _ASUNAME
905 } >&5
906
907 cat >&5 <<EOF
908 ## ------------ ##
909 ## Core tests. ##
910 ## ------------ ##
911
912 EOF
913
914 # Keep a trace of the command line.
915 # Strip out --no-create and --no-recursion so they do not pile up.
916 # Also quote any args containing shell meta-characters.
917 ac_configure_args=
918 ac_sep=
919 for ac_arg
920 do
921 case $ac_arg in
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c) ;;
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
926 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
927 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
928 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
929 ac_sep=" " ;;
930 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
931 ac_sep=" " ;;
932 esac
933 # Get rid of the leading space.
934 done
935
936 # When interrupted or exit'd, cleanup temporary files, and complete
937 # config.log. We remove comments because anyway the quotes in there
938 # would cause problems or look ugly.
939 trap 'exit_status=$?
940 # Save into config.log some information that might help in debugging.
941 echo >&5
942 echo "## ----------------- ##" >&5
943 echo "## Cache variables. ##" >&5
944 echo "## ----------------- ##" >&5
945 echo >&5
946 # The following way of writing the cache mishandles newlines in values,
947 {
948 (set) 2>&1 |
949 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
950 *ac_space=\ *)
951 sed -n \
952 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
954 ;;
955 *)
956 sed -n \
957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
958 ;;
959 esac;
960 } >&5
961 sed "/^$/d" confdefs.h >conftest.log
962 if test -s conftest.log; then
963 echo >&5
964 echo "## ------------ ##" >&5
965 echo "## confdefs.h. ##" >&5
966 echo "## ------------ ##" >&5
967 echo >&5
968 cat conftest.log >&5
969 fi
970 (echo; echo) >&5
971 test "$ac_signal" != 0 &&
972 echo "$as_me: caught signal $ac_signal" >&5
973 echo "$as_me: exit $exit_status" >&5
974 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
975 exit $exit_status
976 ' 0
977 for ac_signal in 1 2 13 15; do
978 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
979 done
980 ac_signal=0
981
982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
983 rm -rf conftest* confdefs.h
984 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
985 echo >confdefs.h
986
987 # Let the site file select an alternate cache file if it wants to.
988 # Prefer explicitly selected file to automatically selected ones.
989 if test -z "$CONFIG_SITE"; then
990 if test "x$prefix" != xNONE; then
991 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
992 else
993 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
994 fi
995 fi
996 for ac_site_file in $CONFIG_SITE; do
997 if test -r "$ac_site_file"; then
998 { echo "$as_me:998: loading site script $ac_site_file" >&5
999 echo "$as_me: loading site script $ac_site_file" >&6;}
1000 cat "$ac_site_file" >&5
1001 . "$ac_site_file"
1002 fi
1003 done
1004
1005 if test -r "$cache_file"; then
1006 # Some versions of bash will fail to source /dev/null (special
1007 # files actually), so we avoid doing that.
1008 if test -f "$cache_file"; then
1009 { echo "$as_me:1009: loading cache $cache_file" >&5
1010 echo "$as_me: loading cache $cache_file" >&6;}
1011 case $cache_file in
1012 [\\/]* | ?:[\\/]* ) . $cache_file;;
1013 *) . ./$cache_file;;
1014 esac
1015 fi
1016 else
1017 { echo "$as_me:1017: creating cache $cache_file" >&5
1018 echo "$as_me: creating cache $cache_file" >&6;}
1019 >$cache_file
1020 fi
1021
1022 # Check that the precious variables saved in the cache have kept the same
1023 # value.
1024 ac_cache_corrupted=false
1025 for ac_var in `(set) 2>&1 |
1026 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1028 eval ac_new_set=\$ac_env_${ac_var}_set
1029 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1030 eval ac_new_val="\$ac_env_${ac_var}_value"
1031 case $ac_old_set,$ac_new_set in
1032 set,)
1033 { echo "$as_me:1033: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1034 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1035 ac_cache_corrupted=: ;;
1036 ,set)
1037 { echo "$as_me:1037: error: \`$ac_var' was not set in the previous run" >&5
1038 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1039 ac_cache_corrupted=: ;;
1040 ,);;
1041 *)
1042 if test "x$ac_old_val" != "x$ac_new_val"; then
1043 { echo "$as_me:1043: error: \`$ac_var' has changed since the previous run:" >&5
1044 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1045 { echo "$as_me:1045: former value: $ac_old_val" >&5
1046 echo "$as_me: former value: $ac_old_val" >&2;}
1047 { echo "$as_me:1047: current value: $ac_new_val" >&5
1048 echo "$as_me: current value: $ac_new_val" >&2;}
1049 ac_cache_corrupted=:
1050 fi;;
1051 esac
1052 # Pass precious variables to config.status. It doesn't matter if
1053 # we pass some twice (in addition to the command line arguments).
1054 if test "$ac_new_set" = set; then
1055 case $ac_new_val in
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1058 ac_configure_args="$ac_configure_args '$ac_arg'"
1059 ;;
1060 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1061 ;;
1062 esac
1063 fi
1064 done
1065 if $ac_cache_corrupted; then
1066 { echo "$as_me:1066: error: changes in the environment can compromise the build" >&5
1067 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1068 { { echo "$as_me:1068: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1069 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1070 { (exit 1); exit 1; }; }
1071 fi
1072
1073 ac_ext=c
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1078 ac_main_return=return
1079
1080 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1081 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1082 ECHO_T=' ' ;;
1083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1085 esac
1086 echo "#! $SHELL" >conftest.sh
1087 echo "exit 0" >>conftest.sh
1088 chmod +x conftest.sh
1089 if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1090 (PATH=".;."; conftest.sh) 2>&5
1091 ac_status=$?
1092 echo "$as_me:1092: \$? = $ac_status" >&5
1093 (exit $ac_status); }; then
1094 ac_path_separator=';'
1095 else
1096 ac_path_separator=:
1097 fi
1098 PATH_SEPARATOR="$ac_path_separator"
1099 rm -f conftest.sh
1100
1101 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
1102
1103 ac_aux_dir=
1104 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1105 if test -f $ac_dir/install-sh; then
1106 ac_aux_dir=$ac_dir
1107 ac_install_sh="$ac_aux_dir/install-sh -c"
1108 break
1109 elif test -f $ac_dir/install.sh; then
1110 ac_aux_dir=$ac_dir
1111 ac_install_sh="$ac_aux_dir/install.sh -c"
1112 break
1113 elif test -f $ac_dir/shtool; then
1114 ac_aux_dir=$ac_dir
1115 ac_install_sh="$ac_aux_dir/shtool install -c"
1116 break
1117 fi
1118 done
1119 if test -z "$ac_aux_dir"; then
1120 { { echo "$as_me:1120: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1121 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1122 { (exit 1); exit 1; }; }
1123 fi
1124 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1125 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1126 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1127
1128 # Make sure we can run config.sub.
1129 $ac_config_sub sun4 >/dev/null 2>&1 ||
1130 { { echo "$as_me:1130: error: cannot run $ac_config_sub" >&5
1131 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1132 { (exit 1); exit 1; }; }
1133
1134 echo "$as_me:1134: checking build system type" >&5
1135 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1136 if test "${ac_cv_build+set}" = set; then
1137 echo $ECHO_N "(cached) $ECHO_C" >&6
1138 else
1139 ac_cv_build_alias=$build_alias
1140 test -z "$ac_cv_build_alias" &&
1141 ac_cv_build_alias=`$ac_config_guess`
1142 test -z "$ac_cv_build_alias" &&
1143 { { echo "$as_me:1143: error: cannot guess build type; you must specify one" >&5
1144 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1145 { (exit 1); exit 1; }; }
1146 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1147 { { echo "$as_me:1147: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1148 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1149 { (exit 1); exit 1; }; }
1150
1151 fi
1152 echo "$as_me:1152: result: $ac_cv_build" >&5
1153 echo "${ECHO_T}$ac_cv_build" >&6
1154 build=$ac_cv_build
1155 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1156 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1157 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1158
1159 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1160 echo "$as_me:1160: checking host system type" >&5
1161 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1162 if test "${ac_cv_host+set}" = set; then
1163 echo $ECHO_N "(cached) $ECHO_C" >&6
1164 else
1165 ac_cv_host_alias=$host_alias
1166 test -z "$ac_cv_host_alias" &&
1167 ac_cv_host_alias=$ac_cv_build_alias
1168 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1169 { { echo "$as_me:1169: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1170 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1171 { (exit 1); exit 1; }; }
1172
1173 fi
1174 echo "$as_me:1174: result: $ac_cv_host" >&5
1175 echo "${ECHO_T}$ac_cv_host" >&6
1176 host=$ac_cv_host
1177 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1178 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1179 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1180
1181 system_name="$host_os"
1182 else
1183 system_name="`(uname -s -r) 2>/dev/null`"
1184 if test -z "$system_name" ; then
1185 system_name="`(hostname) 2>/dev/null`"
1186 fi
1187 fi
1188 test -n "$system_name" &&
1189 cat >>confdefs.h <<EOF
1190 #define SYSTEM_NAME "$system_name"
1191 EOF
1192
1193 if test "${cf_cv_system_name+set}" = set; then
1194 echo $ECHO_N "(cached) $ECHO_C" >&6
1195 else
1196 cf_cv_system_name="$system_name"
1197 fi
1198
1199 test -z "$system_name" && system_name="$cf_cv_system_name"
1200 test -n "$cf_cv_system_name" && echo "$as_me:1200: result: Configuring for $cf_cv_system_name" >&5
1201 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1202
1203 if test ".$system_name" != ".$cf_cv_system_name" ; then
1204 echo "$as_me:1204: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1205 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1206 { { echo "$as_me:1206: error: \"Please remove config.cache and try again.\"" >&5
1207 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1208 { (exit 1); exit 1; }; }
1209 fi
1210
1211 ### checks for alternative programs
1212
1213 case "$host_os" in
1214 (openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
1215 : ${CPPFLAGS="-D_ALL_SOURCE"}
1216 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
1217 : ${CC=c89};;
1218 (darwin*)
1219 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
1220 esac
1221
1222 ac_ext=c
1223 ac_cpp='$CPP $CPPFLAGS'
1224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1227 ac_main_return=return
1228 if test -n "$ac_tool_prefix"; then
1229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1231 echo "$as_me:1231: checking for $ac_word" >&5
1232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1233 if test "${ac_cv_prog_CC+set}" = set; then
1234 echo $ECHO_N "(cached) $ECHO_C" >&6
1235 else
1236 if test -n "$CC"; then
1237 ac_cv_prog_CC="$CC" # Let the user override the test.
1238 else
1239 ac_save_IFS=$IFS; IFS=$ac_path_separator
1240 ac_dummy="$PATH"
1241 for ac_dir in $ac_dummy; do
1242 IFS=$ac_save_IFS
1243 test -z "$ac_dir" && ac_dir=.
1244 $as_executable_p "$ac_dir/$ac_word" || continue
1245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1246 echo "$as_me:1246: found $ac_dir/$ac_word" >&5
1247 break
1248 done
1249
1250 fi
1251 fi
1252 CC=$ac_cv_prog_CC
1253 if test -n "$CC"; then
1254 echo "$as_me:1254: result: $CC" >&5
1255 echo "${ECHO_T}$CC" >&6
1256 else
1257 echo "$as_me:1257: result: no" >&5
1258 echo "${ECHO_T}no" >&6
1259 fi
1260
1261 fi
1262 if test -z "$ac_cv_prog_CC"; then
1263 ac_ct_CC=$CC
1264 # Extract the first word of "gcc", so it can be a program name with args.
1265 set dummy gcc; ac_word=$2
1266 echo "$as_me:1266: checking for $ac_word" >&5
1267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1270 else
1271 if test -n "$ac_ct_CC"; then
1272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1273 else
1274 ac_save_IFS=$IFS; IFS=$ac_path_separator
1275 ac_dummy="$PATH"
1276 for ac_dir in $ac_dummy; do
1277 IFS=$ac_save_IFS
1278 test -z "$ac_dir" && ac_dir=.
1279 $as_executable_p "$ac_dir/$ac_word" || continue
1280 ac_cv_prog_ac_ct_CC="gcc"
1281 echo "$as_me:1281: found $ac_dir/$ac_word" >&5
1282 break
1283 done
1284
1285 fi
1286 fi
1287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1288 if test -n "$ac_ct_CC"; then
1289 echo "$as_me:1289: result: $ac_ct_CC" >&5
1290 echo "${ECHO_T}$ac_ct_CC" >&6
1291 else
1292 echo "$as_me:1292: result: no" >&5
1293 echo "${ECHO_T}no" >&6
1294 fi
1295
1296 CC=$ac_ct_CC
1297 else
1298 CC="$ac_cv_prog_CC"
1299 fi
1300
1301 if test -z "$CC"; then
1302 if test -n "$ac_tool_prefix"; then
1303 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1304 set dummy ${ac_tool_prefix}cc; ac_word=$2
1305 echo "$as_me:1305: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1309 else
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1312 else
1313 ac_save_IFS=$IFS; IFS=$ac_path_separator
1314 ac_dummy="$PATH"
1315 for ac_dir in $ac_dummy; do
1316 IFS=$ac_save_IFS
1317 test -z "$ac_dir" && ac_dir=.
1318 $as_executable_p "$ac_dir/$ac_word" || continue
1319 ac_cv_prog_CC="${ac_tool_prefix}cc"
1320 echo "$as_me:1320: found $ac_dir/$ac_word" >&5
1321 break
1322 done
1323
1324 fi
1325 fi
1326 CC=$ac_cv_prog_CC
1327 if test -n "$CC"; then
1328 echo "$as_me:1328: result: $CC" >&5
1329 echo "${ECHO_T}$CC" >&6
1330 else
1331 echo "$as_me:1331: result: no" >&5
1332 echo "${ECHO_T}no" >&6
1333 fi
1334
1335 fi
1336 if test -z "$ac_cv_prog_CC"; then
1337 ac_ct_CC=$CC
1338 # Extract the first word of "cc", so it can be a program name with args.
1339 set dummy cc; ac_word=$2
1340 echo "$as_me:1340: checking for $ac_word" >&5
1341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345 if test -n "$ac_ct_CC"; then
1346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1347 else
1348 ac_save_IFS=$IFS; IFS=$ac_path_separator
1349 ac_dummy="$PATH"
1350 for ac_dir in $ac_dummy; do
1351 IFS=$ac_save_IFS
1352 test -z "$ac_dir" && ac_dir=.
1353 $as_executable_p "$ac_dir/$ac_word" || continue
1354 ac_cv_prog_ac_ct_CC="cc"
1355 echo "$as_me:1355: found $ac_dir/$ac_word" >&5
1356 break
1357 done
1358
1359 fi
1360 fi
1361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1362 if test -n "$ac_ct_CC"; then
1363 echo "$as_me:1363: result: $ac_ct_CC" >&5
1364 echo "${ECHO_T}$ac_ct_CC" >&6
1365 else
1366 echo "$as_me:1366: result: no" >&5
1367 echo "${ECHO_T}no" >&6
1368 fi
1369
1370 CC=$ac_ct_CC
1371 else
1372 CC="$ac_cv_prog_CC"
1373 fi
1374
1375 fi
1376 if test -z "$CC"; then
1377 # Extract the first word of "cc", so it can be a program name with args.
1378 set dummy cc; ac_word=$2
1379 echo "$as_me:1379: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_CC+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 if test -n "$CC"; then
1385 ac_cv_prog_CC="$CC" # Let the user override the test.
1386 else
1387 ac_prog_rejected=no
1388 ac_save_IFS=$IFS; IFS=$ac_path_separator
1389 ac_dummy="$PATH"
1390 for ac_dir in $ac_dummy; do
1391 IFS=$ac_save_IFS
1392 test -z "$ac_dir" && ac_dir=.
1393 $as_executable_p "$ac_dir/$ac_word" || continue
1394 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1395 ac_prog_rejected=yes
1396 continue
1397 fi
1398 ac_cv_prog_CC="cc"
1399 echo "$as_me:1399: found $ac_dir/$ac_word" >&5
1400 break
1401 done
1402
1403 if test $ac_prog_rejected = yes; then
1404 # We found a bogon in the path, so make sure we never use it.
1405 set dummy $ac_cv_prog_CC
1406 shift
1407 if test $# != 0; then
1408 # We chose a different compiler from the bogus one.
1409 # However, it has the same basename, so the bogon will be chosen
1410 # first if we set CC to just the basename; use the full file name.
1411 shift
1412 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1413 shift
1414 ac_cv_prog_CC="$@"
1415 fi
1416 fi
1417 fi
1418 fi
1419 CC=$ac_cv_prog_CC
1420 if test -n "$CC"; then
1421 echo "$as_me:1421: result: $CC" >&5
1422 echo "${ECHO_T}$CC" >&6
1423 else
1424 echo "$as_me:1424: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1426 fi
1427
1428 fi
1429 if test -z "$CC"; then
1430 if test -n "$ac_tool_prefix"; then
1431 for ac_prog in cl
1432 do
1433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1435 echo "$as_me:1435: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 if test -n "$CC"; then
1441 ac_cv_prog_CC="$CC" # Let the user override the test.
1442 else
1443 ac_save_IFS=$IFS; IFS=$ac_path_separator
1444 ac_dummy="$PATH"
1445 for ac_dir in $ac_dummy; do
1446 IFS=$ac_save_IFS
1447 test -z "$ac_dir" && ac_dir=.
1448 $as_executable_p "$ac_dir/$ac_word" || continue
1449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1450 echo "$as_me:1450: found $ac_dir/$ac_word" >&5
1451 break
1452 done
1453
1454 fi
1455 fi
1456 CC=$ac_cv_prog_CC
1457 if test -n "$CC"; then
1458 echo "$as_me:1458: result: $CC" >&5
1459 echo "${ECHO_T}$CC" >&6
1460 else
1461 echo "$as_me:1461: result: no" >&5
1462 echo "${ECHO_T}no" >&6
1463 fi
1464
1465 test -n "$CC" && break
1466 done
1467 fi
1468 if test -z "$CC"; then
1469 ac_ct_CC=$CC
1470 for ac_prog in cl
1471 do
1472 # Extract the first word of "$ac_prog", so it can be a program name with args.
1473 set dummy $ac_prog; ac_word=$2
1474 echo "$as_me:1474: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$ac_ct_CC"; then
1480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 else
1482 ac_save_IFS=$IFS; IFS=$ac_path_separator
1483 ac_dummy="$PATH"
1484 for ac_dir in $ac_dummy; do
1485 IFS=$ac_save_IFS
1486 test -z "$ac_dir" && ac_dir=.
1487 $as_executable_p "$ac_dir/$ac_word" || continue
1488 ac_cv_prog_ac_ct_CC="$ac_prog"
1489 echo "$as_me:1489: found $ac_dir/$ac_word" >&5
1490 break
1491 done
1492
1493 fi
1494 fi
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:1497: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:1500: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 test -n "$ac_ct_CC" && break
1505 done
1506
1507 CC=$ac_ct_CC
1508 fi
1509
1510 fi
1511
1512 test -z "$CC" && { { echo "$as_me:1512: error: no acceptable cc found in \$PATH" >&5
1513 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1514 { (exit 1); exit 1; }; }
1515
1516 # Provide some information about the compiler.
1517 echo "$as_me:1517:" \
1518 "checking for C compiler version" >&5
1519 ac_compiler=`set X $ac_compile; echo $2`
1520 { (eval echo "$as_me:1520: \"$ac_compiler --version </dev/null >&5\"") >&5
1521 (eval $ac_compiler --version </dev/null >&5) 2>&5
1522 ac_status=$?
1523 echo "$as_me:1523: \$? = $ac_status" >&5
1524 (exit $ac_status); }
1525 { (eval echo "$as_me:1525: \"$ac_compiler -v </dev/null >&5\"") >&5
1526 (eval $ac_compiler -v </dev/null >&5) 2>&5
1527 ac_status=$?
1528 echo "$as_me:1528: \$? = $ac_status" >&5
1529 (exit $ac_status); }
1530 { (eval echo "$as_me:1530: \"$ac_compiler -V </dev/null >&5\"") >&5
1531 (eval $ac_compiler -V </dev/null >&5) 2>&5
1532 ac_status=$?
1533 echo "$as_me:1533: \$? = $ac_status" >&5
1534 (exit $ac_status); }
1535
1536 cat >conftest.$ac_ext <<_ACEOF
1537 #line 1537 "configure"
1538 #include "confdefs.h"
1539
1540 int
1541 main ()
1542 {
1543
1544 ;
1545 return 0;
1546 }
1547 _ACEOF
1548 ac_clean_files_save=$ac_clean_files
1549 ac_clean_files="$ac_clean_files a.out a.exe"
1550 # Try to create an executable without -o first, disregard a.out.
1551 # It will help us diagnose broken compilers, and finding out an intuition
1552 # of exeext.
1553 echo "$as_me:1553: checking for C compiler default output" >&5
1554 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1555 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1556 if { (eval echo "$as_me:1556: \"$ac_link_default\"") >&5
1557 (eval $ac_link_default) 2>&5
1558 ac_status=$?
1559 echo "$as_me:1559: \$? = $ac_status" >&5
1560 (exit $ac_status); }; then
1561 # Find the output, starting from the most likely. This scheme is
1562 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1563 # resort.
1564 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1565 ls a.out conftest 2>/dev/null;
1566 ls a.* conftest.* 2>/dev/null`; do
1567 case $ac_file in
1568 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1569 a.out ) # We found the default executable, but exeext='' is most
1570 # certainly right.
1571 break;;
1572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1573 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1574 export ac_cv_exeext
1575 break;;
1576 * ) break;;
1577 esac
1578 done
1579 else
1580 echo "$as_me: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1582 { { echo "$as_me:1582: error: C compiler cannot create executables" >&5
1583 echo "$as_me: error: C compiler cannot create executables" >&2;}
1584 { (exit 77); exit 77; }; }
1585 fi
1586
1587 ac_exeext=$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_file" >&5
1589 echo "${ECHO_T}$ac_file" >&6
1590
1591 # Check the compiler produces executables we can run. If not, either
1592 # the compiler is broken, or we cross compile.
1593 echo "$as_me:1593: checking whether the C compiler works" >&5
1594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1596 # If not cross compiling, check that we can run a simple program.
1597 if test "$cross_compiling" != yes; then
1598 if { ac_try='./$ac_file'
1599 { (eval echo "$as_me:1599: \"$ac_try\"") >&5
1600 (eval $ac_try) 2>&5
1601 ac_status=$?
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; }; then
1604 cross_compiling=no
1605 else
1606 if test "$cross_compiling" = maybe; then
1607 cross_compiling=yes
1608 else
1609 { { echo "$as_me:1609: error: cannot run C compiled programs.
1610 If you meant to cross compile, use \`--host'." >&5
1611 echo "$as_me: error: cannot run C compiled programs.
1612 If you meant to cross compile, use \`--host'." >&2;}
1613 { (exit 1); exit 1; }; }
1614 fi
1615 fi
1616 fi
1617 echo "$as_me:1617: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619
1620 rm -f a.out a.exe conftest$ac_cv_exeext
1621 ac_clean_files=$ac_clean_files_save
1622 # Check the compiler produces executables we can run. If not, either
1623 # the compiler is broken, or we cross compile.
1624 echo "$as_me:1624: checking whether we are cross compiling" >&5
1625 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1626 echo "$as_me:1626: result: $cross_compiling" >&5
1627 echo "${ECHO_T}$cross_compiling" >&6
1628
1629 echo "$as_me:1629: checking for executable suffix" >&5
1630 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1631 if { (eval echo "$as_me:1631: \"$ac_link\"") >&5
1632 (eval $ac_link) 2>&5
1633 ac_status=$?
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); }; then
1636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1637 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1638 # work properly (i.e., refer to `conftest.exe'), while it won't with
1639 # `rm'.
1640 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1641 case $ac_file in
1642 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1644 export ac_cv_exeext
1645 break;;
1646 * ) break;;
1647 esac
1648 done
1649 else
1650 { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5
1651 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1652 { (exit 1); exit 1; }; }
1653 fi
1654
1655 rm -f conftest$ac_cv_exeext
1656 echo "$as_me:1656: result: $ac_cv_exeext" >&5
1657 echo "${ECHO_T}$ac_cv_exeext" >&6
1658
1659 rm -f conftest.$ac_ext
1660 EXEEXT=$ac_cv_exeext
1661 ac_exeext=$EXEEXT
1662 echo "$as_me:1662: checking for object suffix" >&5
1663 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1664 if test "${ac_cv_objext+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1670
1671 int
1672 main ()
1673 {
1674
1675 ;
1676 return 0;
1677 }
1678 _ACEOF
1679 rm -f conftest.o conftest.obj
1680 if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1681 (eval $ac_compile) 2>&5
1682 ac_status=$?
1683 echo "$as_me:1683: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1686 case $ac_file in
1687 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1689 break;;
1690 esac
1691 done
1692 else
1693 echo "$as_me: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 { { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5
1696 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1697 { (exit 1); exit 1; }; }
1698 fi
1699
1700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1701 fi
1702 echo "$as_me:1702: result: $ac_cv_objext" >&5
1703 echo "${ECHO_T}$ac_cv_objext" >&6
1704 OBJEXT=$ac_cv_objext
1705 ac_objext=$OBJEXT
1706 echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5
1707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line 1712 "configure"
1713 #include "confdefs.h"
1714
1715 int
1716 main ()
1717 {
1718 #ifndef __GNUC__
1719 choke me
1720 #endif
1721
1722 ;
1723 return 0;
1724 }
1725 _ACEOF
1726 rm -f conftest.$ac_objext
1727 if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
1728 (eval $ac_compile) 2>&5
1729 ac_status=$?
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); } &&
1732 { ac_try='test -s conftest.$ac_objext'
1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5
1734 (eval $ac_try) 2>&5
1735 ac_status=$?
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1738 ac_compiler_gnu=yes
1739 else
1740 echo "$as_me: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1742 ac_compiler_gnu=no
1743 fi
1744 rm -f conftest.$ac_objext conftest.$ac_ext
1745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1746
1747 fi
1748 echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5
1749 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1750 GCC=`test $ac_compiler_gnu = yes && echo yes`
1751 ac_test_CFLAGS=${CFLAGS+set}
1752 ac_save_CFLAGS=$CFLAGS
1753 CFLAGS="-g"
1754 echo "$as_me:1754: checking whether $CC accepts -g" >&5
1755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1756 if test "${ac_cv_prog_cc_g+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 cat >conftest.$ac_ext <<_ACEOF
1760 #line 1760 "configure"
1761 #include "confdefs.h"
1762
1763 int
1764 main ()
1765 {
1766
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 rm -f conftest.$ac_objext
1772 if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
1773 (eval $ac_compile) 2>&5
1774 ac_status=$?
1775 echo "$as_me:1775: \$? = $ac_status" >&5
1776 (exit $ac_status); } &&
1777 { ac_try='test -s conftest.$ac_objext'
1778 { (eval echo "$as_me:1778: \"$ac_try\"") >&5
1779 (eval $ac_try) 2>&5
1780 ac_status=$?
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1783 ac_cv_prog_cc_g=yes
1784 else
1785 echo "$as_me: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1787 ac_cv_prog_cc_g=no
1788 fi
1789 rm -f conftest.$ac_objext conftest.$ac_ext
1790 fi
1791 echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5
1792 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1793 if test "$ac_test_CFLAGS" = set; then
1794 CFLAGS=$ac_save_CFLAGS
1795 elif test $ac_cv_prog_cc_g = yes; then
1796 if test "$GCC" = yes; then
1797 CFLAGS="-g -O2"
1798 else
1799 CFLAGS="-g"
1800 fi
1801 else
1802 if test "$GCC" = yes; then
1803 CFLAGS="-O2"
1804 else
1805 CFLAGS=
1806 fi
1807 fi
1808 # Some people use a C++ compiler to compile C. Since we use `exit',
1809 # in C++ we need to declare it. In case someone uses the same compiler
1810 # for both compiling C and C++ we need to have the C++ compiler decide
1811 # the declaration of exit, since it's the most demanding environment.
1812 cat >conftest.$ac_ext <<_ACEOF
1813 #ifndef __cplusplus
1814 choke me
1815 #endif
1816 _ACEOF
1817 rm -f conftest.$ac_objext
1818 if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1820 ac_status=$?
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5
1825 (eval $ac_try) 2>&5
1826 ac_status=$?
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1829 for ac_declaration in \
1830 ''\
1831 '#include <stdlib.h>' \
1832 'extern "C" void std::exit (int) throw (); using std::exit;' \
1833 'extern "C" void std::exit (int); using std::exit;' \
1834 'extern "C" void exit (int) throw ();' \
1835 'extern "C" void exit (int);' \
1836 'void exit (int);'
1837 do
1838 cat >conftest.$ac_ext <<_ACEOF
1839 #line 1839 "configure"
1840 #include "confdefs.h"
1841 #include <stdlib.h>
1842 $ac_declaration
1843 int
1844 main ()
1845 {
1846 exit (42);
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 rm -f conftest.$ac_objext
1852 if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1854 ac_status=$?
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); } &&
1857 { ac_try='test -s conftest.$ac_objext'
1858 { (eval echo "$as_me:1858: \"$ac_try\"") >&5
1859 (eval $ac_try) 2>&5
1860 ac_status=$?
1861 echo "$as_me:1861: \$? = $ac_status" >&5
1862 (exit $ac_status); }; }; then
1863 :
1864 else
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1867 continue
1868 fi
1869 rm -f conftest.$ac_objext conftest.$ac_ext
1870 cat >conftest.$ac_ext <<_ACEOF
1871 #line 1871 "configure"
1872 #include "confdefs.h"
1873 $ac_declaration
1874 int
1875 main ()
1876 {
1877 exit (42);
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 rm -f conftest.$ac_objext
1883 if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1885 ac_status=$?
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); } &&
1888 { ac_try='test -s conftest.$ac_objext'
1889 { (eval echo "$as_me:1889: \"$ac_try\"") >&5
1890 (eval $ac_try) 2>&5
1891 ac_status=$?
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); }; }; then
1894 break
1895 else
1896 echo "$as_me: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 fi
1899 rm -f conftest.$ac_objext conftest.$ac_ext
1900 done
1901 rm -rf conftest*
1902 if test -n "$ac_declaration"; then
1903 echo '#ifdef __cplusplus' >>confdefs.h
1904 echo $ac_declaration >>confdefs.h
1905 echo '#endif' >>confdefs.h
1906 fi
1907
1908 else
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1911 fi
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1913 ac_ext=c
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918 ac_main_return=return
1919
1920 GCC_VERSION=none
1921 if test "$GCC" = yes ; then
1922 echo "$as_me:1922: checking version of $CC" >&5
1923 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1924 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.].*//'`"
1925 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1926 echo "$as_me:1926: result: $GCC_VERSION" >&5
1927 echo "${ECHO_T}$GCC_VERSION" >&6
1928 fi
1929
1930 echo "$as_me:1930: checking for $CC option to accept ANSI C" >&5
1931 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1932 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 ac_cv_prog_cc_stdc=no
1936 ac_save_CC=$CC
1937 cat >conftest.$ac_ext <<_ACEOF
1938 #line 1938 "configure"
1939 #include "confdefs.h"
1940 #include <stdarg.h>
1941 #include <stdio.h>
1942 #include <sys/types.h>
1943 #include <sys/stat.h>
1944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1945 struct buf { int x; };
1946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1947 static char *e (p, i)
1948 char **p;
1949 int i;
1950 {
1951 return p[i];
1952 }
1953 static char *f (char * (*g) (char **, int), char **p, ...)
1954 {
1955 char *s;
1956 va_list v;
1957 va_start (v,p);
1958 s = g (p, va_arg (v,int));
1959 va_end (v);
1960 return s;
1961 }
1962 int test (int i, double x);
1963 struct s1 {int (*f) (int a);};
1964 struct s2 {int (*f) (double a);};
1965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1966 int argc;
1967 char **argv;
1968 int
1969 main ()
1970 {
1971 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 # Don't try gcc -ansi; that turns off useful extensions and
1977 # breaks some systems' header files.
1978 # AIX -qlanglvl=ansi
1979 # Ultrix and OSF/1 -std1
1980 # HP-UX 10.20 and later -Ae
1981 # HP-UX older versions -Aa -D_HPUX_SOURCE
1982 # SVR4 -Xc -D__EXTENSIONS__
1983 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1984 do
1985 CC="$ac_save_CC $ac_arg"
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>&5
1989 ac_status=$?
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:1993: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 ac_cv_prog_cc_stdc=$ac_arg
1999 break
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 fi
2004 rm -f conftest.$ac_objext
2005 done
2006 rm -f conftest.$ac_ext conftest.$ac_objext
2007 CC=$ac_save_CC
2008
2009 fi
2010
2011 case "x$ac_cv_prog_cc_stdc" in
2012 x|xno)
2013 echo "$as_me:2013: result: none needed" >&5
2014 echo "${ECHO_T}none needed" >&6 ;;
2015 *)
2016 echo "$as_me:2016: result: $ac_cv_prog_cc_stdc" >&5
2017 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2018 CC="$CC $ac_cv_prog_cc_stdc" ;;
2019 esac
2020
2021 # This should have been defined by AC_PROG_CC
2022 : ${CC:=cc}
2023
2024 echo "$as_me:2024: checking \$CC variable" >&5
2025 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2026 case "$CC" in
2027 (*[\ \ ]-*)
2028 echo "$as_me:2028: result: broken" >&5
2029 echo "${ECHO_T}broken" >&6
2030 { echo "$as_me:2030: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2031 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2032 # humor him...
2033 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ][ ]*//'`
2034 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2035
2036 cf_fix_cppflags=no
2037 cf_new_cflags=
2038 cf_new_cppflags=
2039 cf_new_extra_cppflags=
2040
2041 for cf_add_cflags in $cf_flags
2042 do
2043 case $cf_fix_cppflags in
2044 (no)
2045 case $cf_add_cflags in
2046 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2047 case $cf_add_cflags in
2048 (-D*)
2049 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2050
2051 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2052 && test -z "${cf_tst_cflags}" \
2053 && cf_fix_cppflags=yes
2054
2055 if test $cf_fix_cppflags = yes ; then
2056 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2057 continue
2058 elif test "${cf_tst_cflags}" = "\"'" ; then
2059 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2060 continue
2061 fi
2062 ;;
2063 esac
2064 case "$CPPFLAGS" in
2065 (*$cf_add_cflags)
2066 ;;
2067 (*)
2068 case $cf_add_cflags in
2069 (-D*)
2070 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2071
2072 CPPFLAGS=`echo "$CPPFLAGS" | \
2073 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2074 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2075
2076 ;;
2077 esac
2078 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2079 ;;
2080 esac
2081 ;;
2082 (*)
2083 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2084 ;;
2085 esac
2086 ;;
2087 (yes)
2088 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2089
2090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2091
2092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2093 && test -z "${cf_tst_cflags}" \
2094 && cf_fix_cppflags=no
2095 ;;
2096 esac
2097 done
2098
2099 if test -n "$cf_new_cflags" ; then
2100
2101 CFLAGS="$CFLAGS $cf_new_cflags"
2102 fi
2103
2104 if test -n "$cf_new_cppflags" ; then
2105
2106 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2107 fi
2108
2109 if test -n "$cf_new_extra_cppflags" ; then
2110
2111 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2112 fi
2113
2114 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2115
2116 echo "${as_me:-configure}:2116: testing resulting CC: '$CC' ..." 1>&5
2117
2118 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2119
2120 echo "${as_me:-configure}:2120: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2121
2122 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2123
2124 echo "${as_me:-configure}:2124: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2125
2126 ;;
2127 (*)
2128 echo "$as_me:2128: result: ok" >&5
2129 echo "${ECHO_T}ok" >&6
2130 ;;
2131 esac
2132
2133 ac_ext=c
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 ac_main_return=return
2139 echo "$as_me:2139: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2143 CPP=
2144 fi
2145 if test -z "$CPP"; then
2146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2151 do
2152 ac_preproc_ok=false
2153 for ac_c_preproc_warn_flag in '' yes
2154 do
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2162 #include <assert.h>
2163 Syntax error
2164 _ACEOF
2165 if { (eval echo "$as_me:2165: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 ac_status=$?
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2175 else
2176 ac_cpp_err=
2177 fi
2178 else
2179 ac_cpp_err=yes
2180 fi
2181 if test -z "$ac_cpp_err"; then
2182 :
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Broken: fails on valid input.
2187 continue
2188 fi
2189 rm -f conftest.err conftest.$ac_ext
2190
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line 2194 "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2197 _ACEOF
2198 if { (eval echo "$as_me:2198: \"$ac_cpp conftest.$ac_ext\"") >&5
2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200 ac_status=$?
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:2204: \$? = $ac_status" >&5
2205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2208 else
2209 ac_cpp_err=
2210 fi
2211 else
2212 ac_cpp_err=yes
2213 fi
2214 if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2216 continue
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2221 ac_preproc_ok=:
2222 break
2223 fi
2224 rm -f conftest.err conftest.$ac_ext
2225
2226 done
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2230 break
2231 fi
2232
2233 done
2234 ac_cv_prog_CPP=$CPP
2235
2236 fi
2237 CPP=$ac_cv_prog_CPP
2238 else
2239 ac_cv_prog_CPP=$CPP
2240 fi
2241 echo "$as_me:2241: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2243 ac_preproc_ok=false
2244 for ac_c_preproc_warn_flag in '' yes
2245 do
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2253 #include <assert.h>
2254 Syntax error
2255 _ACEOF
2256 if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 ac_status=$?
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
2262 echo "$as_me:2262: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2266 else
2267 ac_cpp_err=
2268 fi
2269 else
2270 ac_cpp_err=yes
2271 fi
2272 if test -z "$ac_cpp_err"; then
2273 :
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2278 continue
2279 fi
2280 rm -f conftest.err conftest.$ac_ext
2281
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2288 _ACEOF
2289 if { (eval echo "$as_me:2289: \"$ac_cpp conftest.$ac_ext\"") >&5
2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291 ac_status=$?
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2299 else
2300 ac_cpp_err=
2301 fi
2302 else
2303 ac_cpp_err=yes
2304 fi
2305 if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2307 continue
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2312 ac_preproc_ok=:
2313 break
2314 fi
2315 rm -f conftest.err conftest.$ac_ext
2316
2317 done
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2321 :
2322 else
2323 { { echo "$as_me:2323: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2326 fi
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 ac_main_return=return
2334
2335 for ac_prog in mawk gawk nawk awk
2336 do
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 echo "$as_me:2339: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_AWK+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$AWK"; then
2345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2346 else
2347 ac_save_IFS=$IFS; IFS=$ac_path_separator
2348 ac_dummy="$PATH"
2349 for ac_dir in $ac_dummy; do
2350 IFS=$ac_save_IFS
2351 test -z "$ac_dir" && ac_dir=.
2352 $as_executable_p "$ac_dir/$ac_word" || continue
2353 ac_cv_prog_AWK="$ac_prog"
2354 echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2355 break
2356 done
2357
2358 fi
2359 fi
2360 AWK=$ac_cv_prog_AWK
2361 if test -n "$AWK"; then
2362 echo "$as_me:2362: result: $AWK" >&5
2363 echo "${ECHO_T}$AWK" >&6
2364 else
2365 echo "$as_me:2365: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2367 fi
2368
2369 test -n "$AWK" && break
2370 done
2371
2372 # Find a good install program. We prefer a C program (faster),
2373 # so one script is as good as another. But avoid the broken or
2374 # incompatible versions:
2375 # SysV /etc/install, /usr/sbin/install
2376 # SunOS /usr/etc/install
2377 # IRIX /sbin/install
2378 # AIX /bin/install
2379 # AmigaOS /C/install, which installs bootblocks on floppy discs
2380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383 # ./install, which can be erroneously created by make from ./install.sh.
2384 echo "$as_me:2384: checking for a BSD compatible install" >&5
2385 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2386 if test -z "$INSTALL"; then
2387 if test "${ac_cv_path_install+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 for ac_dir in $PATH; do
2392 IFS=$ac_save_IFS
2393 # Account for people who put trailing slashes in PATH elements.
2394 case $ac_dir/ in
2395 / | ./ | .// | /cC/* \
2396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2397 | /usr/ucb/* ) ;;
2398 *)
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2401 # by default.
2402 for ac_prog in ginstall scoinst install; do
2403 if $as_executable_p "$ac_dir/$ac_prog"; then
2404 if test $ac_prog = install &&
2405 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2406 # AIX install. It has an incompatible calling convention.
2407 :
2408 elif test $ac_prog = install &&
2409 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2410 # program-specific install script used by HP pwplus--don't use.
2411 :
2412 else
2413 ac_cv_path_install="$ac_dir/$ac_prog -c"
2414 break 2
2415 fi
2416 fi
2417 done
2418 ;;
2419 esac
2420 done
2421
2422 fi
2423 if test "${ac_cv_path_install+set}" = set; then
2424 INSTALL=$ac_cv_path_install
2425 else
2426 # As a last resort, use the slow shell script. We don't cache a
2427 # path for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the path is relative.
2430 INSTALL=$ac_install_sh
2431 fi
2432 fi
2433 echo "$as_me:2433: result: $INSTALL" >&5
2434 echo "${ECHO_T}$INSTALL" >&6
2435
2436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437 # It thinks the first close brace ends the variable substitution.
2438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2439
2440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2441
2442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2443
2444 echo "$as_me:2444: checking whether ln -s works" >&5
2445 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2446 LN_S=$as_ln_s
2447 if test "$LN_S" = "ln -s"; then
2448 echo "$as_me:2448: result: yes" >&5
2449 echo "${ECHO_T}yes" >&6
2450 else
2451 echo "$as_me:2451: result: no, using $LN_S" >&5
2452 echo "${ECHO_T}no, using $LN_S" >&6
2453 fi
2454
2455 test "$program_prefix" != NONE &&
2456 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2457 # Use a double $ so make ignores it.
2458 test "$program_suffix" != NONE &&
2459 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2460 # Double any \ or $. echo might interpret backslashes.
2461 # By default was `s,x,x', remove it if useless.
2462 cat <<\_ACEOF >conftest.sed
2463 s/[\\$]/&&/g;s/;s,x,x,$//
2464 _ACEOF
2465 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2466 rm conftest.sed
2467
2468 for ac_prog in lint cppcheck splint
2469 do
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 echo "$as_me:2472: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_LINT+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$LINT"; then
2478 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2479 else
2480 ac_save_IFS=$IFS; IFS=$ac_path_separator
2481 ac_dummy="$PATH"
2482 for ac_dir in $ac_dummy; do
2483 IFS=$ac_save_IFS
2484 test -z "$ac_dir" && ac_dir=.
2485 $as_executable_p "$ac_dir/$ac_word" || continue
2486 ac_cv_prog_LINT="$ac_prog"
2487 echo "$as_me:2487: found $ac_dir/$ac_word" >&5
2488 break
2489 done
2490
2491 fi
2492 fi
2493 LINT=$ac_cv_prog_LINT
2494 if test -n "$LINT"; then
2495 echo "$as_me:2495: result: $LINT" >&5
2496 echo "${ECHO_T}$LINT" >&6
2497 else
2498 echo "$as_me:2498: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2500 fi
2501
2502 test -n "$LINT" && break
2503 done
2504
2505 ### checks for compiler characteristics
2506
2507 cf_XOPEN_SOURCE=500
2508 cf_POSIX_C_SOURCE=199506L
2509 cf_xopen_source=
2510
2511 case $host_os in
2512 (aix[4-7]*)
2513 cf_xopen_source="-D_ALL_SOURCE"
2514 ;;
2515 (cygwin|msys)
2516 cf_XOPEN_SOURCE=600
2517 ;;
2518 (darwin[0-8].*)
2519 cf_xopen_source="-D_APPLE_C_SOURCE"
2520 ;;
2521 (darwin*)
2522 cf_xopen_source="-D_DARWIN_C_SOURCE"
2523 cf_XOPEN_SOURCE=
2524 ;;
2525 (freebsd*|dragonfly*)
2526 # 5.x headers associate
2527 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2528 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2529 cf_POSIX_C_SOURCE=200112L
2530 cf_XOPEN_SOURCE=600
2531 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2532 ;;
2533 (hpux11*)
2534 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2535 ;;
2536 (hpux*)
2537 cf_xopen_source="-D_HPUX_SOURCE"
2538 ;;
2539 (irix[56].*)
2540 cf_xopen_source="-D_SGI_SOURCE"
2541 cf_XOPEN_SOURCE=
2542 ;;
2543 (linux*|gnu*|mint*|k*bsd*-gnu)
2544
2545 echo "$as_me:2545: checking if we must define _GNU_SOURCE" >&5
2546 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2547 if test "${cf_cv_gnu_source+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line 2552 "configure"
2553 #include "confdefs.h"
2554 #include <sys/types.h>
2555 int
2556 main ()
2557 {
2558
2559 #ifndef _XOPEN_SOURCE
2560 make an error
2561 #endif
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:2567: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>&5
2569 ac_status=$?
2570 echo "$as_me:2570: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:2573: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:2576: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 cf_cv_gnu_source=no
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582 cf_save="$CPPFLAGS"
2583 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #line 2585 "configure"
2586 #include "confdefs.h"
2587 #include <sys/types.h>
2588 int
2589 main ()
2590 {
2591
2592 #ifdef _XOPEN_SOURCE
2593 make an error
2594 #endif
2595 ;
2596 return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:2600: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2602 ac_status=$?
2603 echo "$as_me:2603: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:2606: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:2609: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 cf_cv_gnu_source=no
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 cf_cv_gnu_source=yes
2616 fi
2617 rm -f conftest.$ac_objext conftest.$ac_ext
2618 CPPFLAGS="$cf_save"
2619
2620 fi
2621 rm -f conftest.$ac_objext conftest.$ac_ext
2622
2623 fi
2624 echo "$as_me:2624: result: $cf_cv_gnu_source" >&5
2625 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2626 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2627
2628 ;;
2629 (minix*)
2630 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2631 ;;
2632 (mirbsd*)
2633 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2634 cf_XOPEN_SOURCE=
2635
2636 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2637
2638 cf_save_CFLAGS="$CFLAGS"
2639 cf_save_CPPFLAGS="$CPPFLAGS"
2640
2641 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2642 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2643 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2644
2645 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2646 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2647 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2648
2649 echo "$as_me:2649: checking if we should define _POSIX_C_SOURCE" >&5
2650 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2651 if test "${cf_cv_posix_c_source+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654
2655 echo "${as_me:-configure}:2655: testing if the symbol is already defined go no further ..." 1>&5
2656
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line 2658 "configure"
2659 #include "confdefs.h"
2660 #include <sys/types.h>
2661 int
2662 main ()
2663 {
2664
2665 #ifndef _POSIX_C_SOURCE
2666 make an error
2667 #endif
2668 ;
2669 return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:2673: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>&5
2675 ac_status=$?
2676 echo "$as_me:2676: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:2679: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:2682: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 cf_cv_posix_c_source=no
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 cf_want_posix_source=no
2689 case .$cf_POSIX_C_SOURCE in
2690 (.[12]??*)
2691 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2692 ;;
2693 (.2)
2694 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2695 cf_want_posix_source=yes
2696 ;;
2697 (.*)
2698 cf_want_posix_source=yes
2699 ;;
2700 esac
2701 if test "$cf_want_posix_source" = yes ; then
2702 cat >conftest.$ac_ext <<_ACEOF
2703 #line 2703 "configure"
2704 #include "confdefs.h"
2705 #include <sys/types.h>
2706 int
2707 main ()
2708 {
2709
2710 #ifdef _POSIX_SOURCE
2711 make an error
2712 #endif
2713 ;
2714 return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:2718: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>&5
2720 ac_status=$?
2721 echo "$as_me:2721: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:2724: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:2727: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 :
2730 else
2731 echo "$as_me: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2733 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2734 fi
2735 rm -f conftest.$ac_objext conftest.$ac_ext
2736 fi
2737
2738 echo "${as_me:-configure}:2738: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2739
2740 CFLAGS="$cf_trim_CFLAGS"
2741 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2742
2743 echo "${as_me:-configure}:2743: testing if the second compile does not leave our definition intact error ..." 1>&5
2744
2745 cat >conftest.$ac_ext <<_ACEOF
2746 #line 2746 "configure"
2747 #include "confdefs.h"
2748 #include <sys/types.h>
2749 int
2750 main ()
2751 {
2752
2753 #ifndef _POSIX_C_SOURCE
2754 make an error
2755 #endif
2756 ;
2757 return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2763 ac_status=$?
2764 echo "$as_me:2764: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:2767: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:2770: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2772 :
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 cf_cv_posix_c_source=no
2777 fi
2778 rm -f conftest.$ac_objext conftest.$ac_ext
2779 CFLAGS="$cf_save_CFLAGS"
2780 CPPFLAGS="$cf_save_CPPFLAGS"
2781
2782 fi
2783 rm -f conftest.$ac_objext conftest.$ac_ext
2784
2785 fi
2786 echo "$as_me:2786: result: $cf_cv_posix_c_source" >&5
2787 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2788
2789 if test "$cf_cv_posix_c_source" != no ; then
2790 CFLAGS="$cf_trim_CFLAGS"
2791 CPPFLAGS="$cf_trim_CPPFLAGS"
2792
2793 cf_fix_cppflags=no
2794 cf_new_cflags=
2795 cf_new_cppflags=
2796 cf_new_extra_cppflags=
2797
2798 for cf_add_cflags in $cf_cv_posix_c_source
2799 do
2800 case $cf_fix_cppflags in
2801 (no)
2802 case $cf_add_cflags in
2803 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2804 case $cf_add_cflags in
2805 (-D*)
2806 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2807
2808 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2809 && test -z "${cf_tst_cflags}" \
2810 && cf_fix_cppflags=yes
2811
2812 if test $cf_fix_cppflags = yes ; then
2813 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2814 continue
2815 elif test "${cf_tst_cflags}" = "\"'" ; then
2816 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2817 continue
2818 fi
2819 ;;
2820 esac
2821 case "$CPPFLAGS" in
2822 (*$cf_add_cflags)
2823 ;;
2824 (*)
2825 case $cf_add_cflags in
2826 (-D*)
2827 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2828
2829 CPPFLAGS=`echo "$CPPFLAGS" | \
2830 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2831 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2832
2833 ;;
2834 esac
2835 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2836 ;;
2837 esac
2838 ;;
2839 (*)
2840 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2841 ;;
2842 esac
2843 ;;
2844 (yes)
2845 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2846
2847 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2848
2849 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2850 && test -z "${cf_tst_cflags}" \
2851 && cf_fix_cppflags=no
2852 ;;
2853 esac
2854 done
2855
2856 if test -n "$cf_new_cflags" ; then
2857
2858 CFLAGS="$CFLAGS $cf_new_cflags"
2859 fi
2860
2861 if test -n "$cf_new_cppflags" ; then
2862
2863 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2864 fi
2865
2866 if test -n "$cf_new_extra_cppflags" ; then
2867
2868 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2869 fi
2870
2871 fi
2872
2873 ;;
2874 (netbsd*)
2875 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2876 ;;
2877 (openbsd[4-9]*)
2878 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2879 cf_xopen_source="-D_BSD_SOURCE"
2880 cf_XOPEN_SOURCE=600
2881 ;;
2882 (openbsd*)
2883 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2884 ;;
2885 (os2*)
2886 cf_XOPEN_SOURCE=
2887 ;;
2888 (osf[45]*)
2889 cf_xopen_source="-D_OSF_SOURCE"
2890 ;;
2891 (nto-qnx*)
2892 cf_xopen_source="-D_QNX_SOURCE"
2893 ;;
2894 (sco*)
2895 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2896 ;;
2897 (solaris2.*)
2898 cf_xopen_source="-D__EXTENSIONS__"
2899 cf_cv_xopen_source=broken
2900 ;;
2901 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
2902 cf_XOPEN_SOURCE=
2903 cf_POSIX_C_SOURCE=
2904 ;;
2905 (*)
2906
2907 echo "$as_me:2907: checking if we should define _XOPEN_SOURCE" >&5
2908 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2909 if test "${cf_cv_xopen_source+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line 2914 "configure"
2915 #include "confdefs.h"
2916
2917 #include <stdlib.h>
2918 #include <string.h>
2919 #include <sys/types.h>
2920
2921 int
2922 main ()
2923 {
2924
2925 #ifndef _XOPEN_SOURCE
2926 make an error
2927 #endif
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:2933: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>&5
2935 ac_status=$?
2936 echo "$as_me:2936: \$? = $ac_status" >&5
2937 (exit $ac_status); } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:2939: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:2942: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 cf_cv_xopen_source=no
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2948 cf_save="$CPPFLAGS"
2949 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line 2951 "configure"
2952 #include "confdefs.h"
2953
2954 #include <stdlib.h>
2955 #include <string.h>
2956 #include <sys/types.h>
2957
2958 int
2959 main ()
2960 {
2961
2962 #ifdef _XOPEN_SOURCE
2963 make an error
2964 #endif
2965 ;
2966 return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:2970: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2972 ac_status=$?
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 cf_cv_xopen_source=no
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 cf_cv_xopen_source=$cf_XOPEN_SOURCE
2986 fi
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2988 CPPFLAGS="$cf_save"
2989
2990 fi
2991 rm -f conftest.$ac_objext conftest.$ac_ext
2992
2993 fi
2994 echo "$as_me:2994: result: $cf_cv_xopen_source" >&5
2995 echo "${ECHO_T}$cf_cv_xopen_source" >&6
2996
2997 if test "$cf_cv_xopen_source" != no ; then
2998
2999 CFLAGS=`echo "$CFLAGS" | \
3000 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3001 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3002
3003 CPPFLAGS=`echo "$CPPFLAGS" | \
3004 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3005 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3006
3007 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3008
3009 cf_fix_cppflags=no
3010 cf_new_cflags=
3011 cf_new_cppflags=
3012 cf_new_extra_cppflags=
3013
3014 for cf_add_cflags in $cf_temp_xopen_source
3015 do
3016 case $cf_fix_cppflags in
3017 (no)
3018 case $cf_add_cflags in
3019 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3020 case $cf_add_cflags in
3021 (-D*)
3022 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3023
3024 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3025 && test -z "${cf_tst_cflags}" \
3026 && cf_fix_cppflags=yes
3027
3028 if test $cf_fix_cppflags = yes ; then
3029 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3030 continue
3031 elif test "${cf_tst_cflags}" = "\"'" ; then
3032 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3033 continue
3034 fi
3035 ;;
3036 esac
3037 case "$CPPFLAGS" in
3038 (*$cf_add_cflags)
3039 ;;
3040 (*)
3041 case $cf_add_cflags in
3042 (-D*)
3043 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3044
3045 CPPFLAGS=`echo "$CPPFLAGS" | \
3046 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3047 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3048
3049 ;;
3050 esac
3051 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3052 ;;
3053 esac
3054 ;;
3055 (*)
3056 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3057 ;;
3058 esac
3059 ;;
3060 (yes)
3061 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3062
3063 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3064
3065 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3066 && test -z "${cf_tst_cflags}" \
3067 && cf_fix_cppflags=no
3068 ;;
3069 esac
3070 done
3071
3072 if test -n "$cf_new_cflags" ; then
3073
3074 CFLAGS="$CFLAGS $cf_new_cflags"
3075 fi
3076
3077 if test -n "$cf_new_cppflags" ; then
3078
3079 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3080 fi
3081
3082 if test -n "$cf_new_extra_cppflags" ; then
3083
3084 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3085 fi
3086
3087 fi
3088
3089 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3090
3091 cf_save_CFLAGS="$CFLAGS"
3092 cf_save_CPPFLAGS="$CPPFLAGS"
3093
3094 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3095 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3096 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3097
3098 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3099 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3100 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3101
3102 echo "$as_me:3102: checking if we should define _POSIX_C_SOURCE" >&5
3103 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3104 if test "${cf_cv_posix_c_source+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107
3108 echo "${as_me:-configure}:3108: testing if the symbol is already defined go no further ..." 1>&5
3109
3110 cat >conftest.$ac_ext <<_ACEOF
3111 #line 3111 "configure"
3112 #include "confdefs.h"
3113 #include <sys/types.h>
3114 int
3115 main ()
3116 {
3117
3118 #ifndef _POSIX_C_SOURCE
3119 make an error
3120 #endif
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:3126: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3128 ac_status=$?
3129 echo "$as_me:3129: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:3132: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 cf_cv_posix_c_source=no
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 cf_want_posix_source=no
3142 case .$cf_POSIX_C_SOURCE in
3143 (.[12]??*)
3144 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3145 ;;
3146 (.2)
3147 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3148 cf_want_posix_source=yes
3149 ;;
3150 (.*)
3151 cf_want_posix_source=yes
3152 ;;
3153 esac
3154 if test "$cf_want_posix_source" = yes ; then
3155 cat >conftest.$ac_ext <<_ACEOF
3156 #line 3156 "configure"
3157 #include "confdefs.h"
3158 #include <sys/types.h>
3159 int
3160 main ()
3161 {
3162
3163 #ifdef _POSIX_SOURCE
3164 make an error
3165 #endif
3166 ;
3167 return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:3171: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>&5
3173 ac_status=$?
3174 echo "$as_me:3174: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:3177: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:3180: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 :
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3187 fi
3188 rm -f conftest.$ac_objext conftest.$ac_ext
3189 fi
3190
3191 echo "${as_me:-configure}:3191: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3192
3193 CFLAGS="$cf_trim_CFLAGS"
3194 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3195
3196 echo "${as_me:-configure}:3196: testing if the second compile does not leave our definition intact error ..." 1>&5
3197
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line 3199 "configure"
3200 #include "confdefs.h"
3201 #include <sys/types.h>
3202 int
3203 main ()
3204 {
3205
3206 #ifndef _POSIX_C_SOURCE
3207 make an error
3208 #endif
3209 ;
3210 return 0;
3211 }
3212 _ACEOF
3213 rm -f conftest.$ac_objext
3214 if { (eval echo "$as_me:3214: \"$ac_compile\"") >&5
3215 (eval $ac_compile) 2>&5
3216 ac_status=$?
3217 echo "$as_me:3217: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (eval echo "$as_me:3220: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:3223: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3225 :
3226 else
3227 echo "$as_me: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3229 cf_cv_posix_c_source=no
3230 fi
3231 rm -f conftest.$ac_objext conftest.$ac_ext
3232 CFLAGS="$cf_save_CFLAGS"
3233 CPPFLAGS="$cf_save_CPPFLAGS"
3234
3235 fi
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3237
3238 fi
3239 echo "$as_me:3239: result: $cf_cv_posix_c_source" >&5
3240 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3241
3242 if test "$cf_cv_posix_c_source" != no ; then
3243 CFLAGS="$cf_trim_CFLAGS"
3244 CPPFLAGS="$cf_trim_CPPFLAGS"
3245
3246 cf_fix_cppflags=no
3247 cf_new_cflags=
3248 cf_new_cppflags=
3249 cf_new_extra_cppflags=
3250
3251 for cf_add_cflags in $cf_cv_posix_c_source
3252 do
3253 case $cf_fix_cppflags in
3254 (no)
3255 case $cf_add_cflags in
3256 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3257 case $cf_add_cflags in
3258 (-D*)
3259 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3260
3261 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3262 && test -z "${cf_tst_cflags}" \
3263 && cf_fix_cppflags=yes
3264
3265 if test $cf_fix_cppflags = yes ; then
3266 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3267 continue
3268 elif test "${cf_tst_cflags}" = "\"'" ; then
3269 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3270 continue
3271 fi
3272 ;;
3273 esac
3274 case "$CPPFLAGS" in
3275 (*$cf_add_cflags)
3276 ;;
3277 (*)
3278 case $cf_add_cflags in
3279 (-D*)
3280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3281
3282 CPPFLAGS=`echo "$CPPFLAGS" | \
3283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3285
3286 ;;
3287 esac
3288 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3289 ;;
3290 esac
3291 ;;
3292 (*)
3293 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3294 ;;
3295 esac
3296 ;;
3297 (yes)
3298 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3299
3300 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3301
3302 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3303 && test -z "${cf_tst_cflags}" \
3304 && cf_fix_cppflags=no
3305 ;;
3306 esac
3307 done
3308
3309 if test -n "$cf_new_cflags" ; then
3310
3311 CFLAGS="$CFLAGS $cf_new_cflags"
3312 fi
3313
3314 if test -n "$cf_new_cppflags" ; then
3315
3316 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3317 fi
3318
3319 if test -n "$cf_new_extra_cppflags" ; then
3320
3321 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3322 fi
3323
3324 fi
3325
3326 ;;
3327 esac
3328
3329 if test -n "$cf_xopen_source" ; then
3330
3331 cf_fix_cppflags=no
3332 cf_new_cflags=
3333 cf_new_cppflags=
3334 cf_new_extra_cppflags=
3335
3336 for cf_add_cflags in $cf_xopen_source
3337 do
3338 case $cf_fix_cppflags in
3339 (no)
3340 case $cf_add_cflags in
3341 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3342 case $cf_add_cflags in
3343 (-D*)
3344 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3345
3346 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3347 && test -z "${cf_tst_cflags}" \
3348 && cf_fix_cppflags=yes
3349
3350 if test $cf_fix_cppflags = yes ; then
3351 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3352 continue
3353 elif test "${cf_tst_cflags}" = "\"'" ; then
3354 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3355 continue
3356 fi
3357 ;;
3358 esac
3359 case "$CPPFLAGS" in
3360 (*$cf_add_cflags)
3361 ;;
3362 (*)
3363 case $cf_add_cflags in
3364 (-D*)
3365 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3366
3367 CPPFLAGS=`echo "$CPPFLAGS" | \
3368 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3369 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3370
3371 ;;
3372 esac
3373 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3374 ;;
3375 esac
3376 ;;
3377 (*)
3378 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3379 ;;
3380 esac
3381 ;;
3382 (yes)
3383 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3384
3385 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3386
3387 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3388 && test -z "${cf_tst_cflags}" \
3389 && cf_fix_cppflags=no
3390 ;;
3391 esac
3392 done
3393
3394 if test -n "$cf_new_cflags" ; then
3395 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3396
3397 echo "${as_me:-configure}:3397: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3398
3399 CFLAGS="$CFLAGS $cf_new_cflags"
3400 fi
3401
3402 if test -n "$cf_new_cppflags" ; then
3403 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3404
3405 echo "${as_me:-configure}:3405: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3406
3407 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3408 fi
3409
3410 if test -n "$cf_new_extra_cppflags" ; then
3411 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3412
3413 echo "${as_me:-configure}:3413: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3414
3415 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3416 fi
3417
3418 fi
3419
3420 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3421 echo "$as_me:3421: checking if _XOPEN_SOURCE really is set" >&5
3422 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3424 #line 3424 "configure"
3425 #include "confdefs.h"
3426 #include <stdlib.h>
3427 int
3428 main ()
3429 {
3430
3431 #ifndef _XOPEN_SOURCE
3432 make an error
3433 #endif
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:3439: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>&5
3441 ac_status=$?
3442 echo "$as_me:3442: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (eval echo "$as_me:3445: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:3448: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 cf_XOPEN_SOURCE_set=yes
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 cf_XOPEN_SOURCE_set=no
3455 fi
3456 rm -f conftest.$ac_objext conftest.$ac_ext
3457 echo "$as_me:3457: result: $cf_XOPEN_SOURCE_set" >&5
3458 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3459 if test $cf_XOPEN_SOURCE_set = yes
3460 then
3461 cat >conftest.$ac_ext <<_ACEOF
3462 #line 3462 "configure"
3463 #include "confdefs.h"
3464 #include <stdlib.h>
3465 int
3466 main ()
3467 {
3468
3469 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3470 make an error
3471 #endif
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:3477: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>&5
3479 ac_status=$?
3480 echo "$as_me:3480: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:3483: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:3486: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 cf_XOPEN_SOURCE_set_ok=yes
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 cf_XOPEN_SOURCE_set_ok=no
3493 fi
3494 rm -f conftest.$ac_objext conftest.$ac_ext
3495 if test $cf_XOPEN_SOURCE_set_ok = no
3496 then
3497 { echo "$as_me:3497: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3498 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3499 fi
3500 else
3501
3502 echo "$as_me:3502: checking if we should define _XOPEN_SOURCE" >&5
3503 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3504 if test "${cf_cv_xopen_source+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507
3508 cat >conftest.$ac_ext <<_ACEOF
3509 #line 3509 "configure"
3510 #include "confdefs.h"
3511
3512 #include <stdlib.h>
3513 #include <string.h>
3514 #include <sys/types.h>
3515
3516 int
3517 main ()
3518 {
3519
3520 #ifndef _XOPEN_SOURCE
3521 make an error
3522 #endif
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:3528: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>&5
3530 ac_status=$?
3531 echo "$as_me:3531: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:3534: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:3537: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 cf_cv_xopen_source=no
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3543 cf_save="$CPPFLAGS"
3544 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line 3546 "configure"
3547 #include "confdefs.h"
3548
3549 #include <stdlib.h>
3550 #include <string.h>
3551 #include <sys/types.h>
3552
3553 int
3554 main ()
3555 {
3556
3557 #ifdef _XOPEN_SOURCE
3558 make an error
3559 #endif
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:3565: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3567 ac_status=$?
3568 echo "$as_me:3568: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:3571: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:3574: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 cf_cv_xopen_source=no
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3581 fi
3582 rm -f conftest.$ac_objext conftest.$ac_ext
3583 CPPFLAGS="$cf_save"
3584
3585 fi
3586 rm -f conftest.$ac_objext conftest.$ac_ext
3587
3588 fi
3589 echo "$as_me:3589: result: $cf_cv_xopen_source" >&5
3590 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3591
3592 if test "$cf_cv_xopen_source" != no ; then
3593
3594 CFLAGS=`echo "$CFLAGS" | \
3595 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3596 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3597
3598 CPPFLAGS=`echo "$CPPFLAGS" | \
3599 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3600 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3601
3602 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3603
3604 cf_fix_cppflags=no
3605 cf_new_cflags=
3606 cf_new_cppflags=
3607 cf_new_extra_cppflags=
3608
3609 for cf_add_cflags in $cf_temp_xopen_source
3610 do
3611 case $cf_fix_cppflags in
3612 (no)
3613 case $cf_add_cflags in
3614 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3615 case $cf_add_cflags in
3616 (-D*)
3617 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3618
3619 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3620 && test -z "${cf_tst_cflags}" \
3621 && cf_fix_cppflags=yes
3622
3623 if test $cf_fix_cppflags = yes ; then
3624 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3625 continue
3626 elif test "${cf_tst_cflags}" = "\"'" ; then
3627 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3628 continue
3629 fi
3630 ;;
3631 esac
3632 case "$CPPFLAGS" in
3633 (*$cf_add_cflags)
3634 ;;
3635 (*)
3636 case $cf_add_cflags in
3637 (-D*)
3638 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3639
3640 CPPFLAGS=`echo "$CPPFLAGS" | \
3641 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3642 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3643
3644 ;;
3645 esac
3646 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3647 ;;
3648 esac
3649 ;;
3650 (*)
3651 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3652 ;;
3653 esac
3654 ;;
3655 (yes)
3656 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3657
3658 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3659
3660 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3661 && test -z "${cf_tst_cflags}" \
3662 && cf_fix_cppflags=no
3663 ;;
3664 esac
3665 done
3666
3667 if test -n "$cf_new_cflags" ; then
3668
3669 CFLAGS="$CFLAGS $cf_new_cflags"
3670 fi
3671
3672 if test -n "$cf_new_cppflags" ; then
3673
3674 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3675 fi
3676
3677 if test -n "$cf_new_extra_cppflags" ; then
3678
3679 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3680 fi
3681
3682 fi
3683
3684 fi
3685 fi
3686
3687 echo "$as_me:3687: checking if SIGWINCH is defined" >&5
3688 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
3689 if test "${cf_cv_define_sigwinch+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #line 3694 "configure"
3695 #include "confdefs.h"
3696
3697 #include <sys/types.h>
3698 #include <sys/signal.h>
3699
3700 int
3701 main ()
3702 {
3703 int x = SIGWINCH
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3711 ac_status=$?
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 cf_cv_define_sigwinch=yes
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3724 cat >conftest.$ac_ext <<_ACEOF
3725 #line 3725 "configure"
3726 #include "confdefs.h"
3727
3728 #undef _XOPEN_SOURCE
3729 #undef _POSIX_SOURCE
3730 #undef _POSIX_C_SOURCE
3731 #include <sys/types.h>
3732 #include <sys/signal.h>
3733
3734 int
3735 main ()
3736 {
3737 int x = SIGWINCH
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 rm -f conftest.$ac_objext
3743 if { (eval echo "$as_me:3743: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>&5
3745 ac_status=$?
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -s conftest.$ac_objext'
3749 { (eval echo "$as_me:3749: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:3752: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 cf_cv_define_sigwinch=maybe
3755 else
3756 echo "$as_me: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3758 cf_cv_define_sigwinch=no
3759 fi
3760 rm -f conftest.$ac_objext conftest.$ac_ext
3761
3762 fi
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3764
3765 fi
3766 echo "$as_me:3766: result: $cf_cv_define_sigwinch" >&5
3767 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
3768
3769 if test "$cf_cv_define_sigwinch" = maybe ; then
3770 echo "$as_me:3770: checking for actual SIGWINCH definition" >&5
3771 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
3772 if test "${cf_cv_fixup_sigwinch+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775
3776 cf_cv_fixup_sigwinch=unknown
3777 cf_sigwinch=32
3778 while test $cf_sigwinch != 1
3779 do
3780 cat >conftest.$ac_ext <<_ACEOF
3781 #line 3781 "configure"
3782 #include "confdefs.h"
3783
3784 #undef _XOPEN_SOURCE
3785 #undef _POSIX_SOURCE
3786 #undef _POSIX_C_SOURCE
3787 #include <sys/types.h>
3788 #include <sys/signal.h>
3789
3790 int
3791 main ()
3792 {
3793
3794 #if SIGWINCH != $cf_sigwinch
3795 make an error
3796 #endif
3797 int x = SIGWINCH
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:3803: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>&5
3805 ac_status=$?
3806 echo "$as_me:3806: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:3809: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:3812: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 cf_cv_fixup_sigwinch=$cf_sigwinch
3815 break
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 fi
3820 rm -f conftest.$ac_objext conftest.$ac_ext
3821
3822 cf_sigwinch=`expr $cf_sigwinch - 1`
3823 done
3824
3825 fi
3826 echo "$as_me:3826: result: $cf_cv_fixup_sigwinch" >&5
3827 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
3828
3829 if test "$cf_cv_fixup_sigwinch" != unknown ; then
3830 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
3831 fi
3832 fi
3833
3834 ### checks for header files
3835
3836 for ac_header in \
3837 ncurses/curses.h \
3838 ncurses/term.h \
3839 stdlib.h \
3840 sys/ptem.h sys/ttydefaults.h \
3841 term.h \
3842 termios.h \
3843 unistd.h \
3844 wchar.h \
3845
3846 do
3847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3848 echo "$as_me:3848: checking for $ac_header" >&5
3849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 cat >conftest.$ac_ext <<_ACEOF
3854 #line 3854 "configure"
3855 #include "confdefs.h"
3856 #include <$ac_header>
3857 _ACEOF
3858 if { (eval echo "$as_me:3858: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860 ac_status=$?
3861 egrep -v '^ *\+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:3864: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 else
3869 ac_cpp_err=
3870 fi
3871 else
3872 ac_cpp_err=yes
3873 fi
3874 if test -z "$ac_cpp_err"; then
3875 eval "$as_ac_Header=yes"
3876 else
3877 echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 eval "$as_ac_Header=no"
3880 fi
3881 rm -f conftest.err conftest.$ac_ext
3882 fi
3883 echo "$as_me:3883: result: `eval echo '${'$as_ac_Header'}'`" >&5
3884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3886 cat >>confdefs.h <<EOF
3887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3888 EOF
3889
3890 fi
3891 done
3892
3893 echo "$as_me:3893: checking whether time.h and sys/time.h may both be included" >&5
3894 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3895 if test "${ac_cv_header_time+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 cat >conftest.$ac_ext <<_ACEOF
3899 #line 3899 "configure"
3900 #include "confdefs.h"
3901 #include <sys/types.h>
3902 #include <sys/time.h>
3903 #include <time.h>
3904
3905 int
3906 main ()
3907 {
3908 if ((struct tm *) 0)
3909 return 0;
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:3915: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>&5
3917 ac_status=$?
3918 echo "$as_me:3918: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:3921: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:3924: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_header_time=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 ac_cv_header_time=no
3931 fi
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 echo "$as_me:3934: result: $ac_cv_header_time" >&5
3935 echo "${ECHO_T}$ac_cv_header_time" >&6
3936 if test $ac_cv_header_time = yes; then
3937
3938 cat >>confdefs.h <<\EOF
3939 #define TIME_WITH_SYS_TIME 1
3940 EOF
3941
3942 fi
3943
3944 echo "$as_me:3944: checking for nl_langinfo and CODESET" >&5
3945 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3946 if test "${am_cv_langinfo_codeset+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 cat >conftest.$ac_ext <<_ACEOF
3950 #line 3950 "configure"
3951 #include "confdefs.h"
3952 #include <langinfo.h>
3953 int
3954 main ()
3955 {
3956 char* cs = nl_langinfo(CODESET);
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext conftest$ac_exeext
3962 if { (eval echo "$as_me:3962: \"$ac_link\"") >&5
3963 (eval $ac_link) 2>&5
3964 ac_status=$?
3965 echo "$as_me:3965: \$? = $ac_status" >&5
3966 (exit $ac_status); } &&
3967 { ac_try='test -s conftest$ac_exeext'
3968 { (eval echo "$as_me:3968: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:3971: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 am_cv_langinfo_codeset=yes
3974 else
3975 echo "$as_me: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3977 am_cv_langinfo_codeset=no
3978 fi
3979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3980
3981 fi
3982 echo "$as_me:3982: result: $am_cv_langinfo_codeset" >&5
3983 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3984 if test $am_cv_langinfo_codeset = yes; then
3985
3986 cat >>confdefs.h <<\EOF
3987 #define HAVE_LANGINFO_CODESET 1
3988 EOF
3989
3990 fi
3991
3992 ### checks for typedefs
3993
3994 echo "$as_me:3994: checking for signal global datatype" >&5
3995 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3996 if test "${cf_cv_sig_atomic_t+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999
4000 for cf_type in \
4001 "volatile sig_atomic_t" \
4002 "sig_atomic_t" \
4003 "int"
4004 do
4005 cat >conftest.$ac_ext <<_ACEOF
4006 #line 4006 "configure"
4007 #include "confdefs.h"
4008
4009 #include <sys/types.h>
4010 #include <signal.h>
4011 #include <stdio.h>
4012
4013 extern $cf_type x;
4014 $cf_type x;
4015 static void handler(int sig)
4016 {
4017 x = 5;
4018 }
4019 int
4020 main ()
4021 {
4022 signal(SIGINT, handler);
4023 x = 1
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (eval echo "$as_me:4029: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>&5
4031 ac_status=$?
4032 echo "$as_me:4032: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:4035: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 cf_cv_sig_atomic_t=$cf_type
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4044 cf_cv_sig_atomic_t=no
4045 fi
4046 rm -f conftest.$ac_objext conftest.$ac_ext
4047 test "$cf_cv_sig_atomic_t" != no && break
4048 done
4049
4050 fi
4051
4052 echo "$as_me:4052: result: $cf_cv_sig_atomic_t" >&5
4053 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4054 test "$cf_cv_sig_atomic_t" != no &&
4055 cat >>confdefs.h <<EOF
4056 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4057 EOF
4058
4059 echo "$as_me:4059: checking for ANSI C header files" >&5
4060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4061 if test "${ac_cv_header_stdc+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 cat >conftest.$ac_ext <<_ACEOF
4065 #line 4065 "configure"
4066 #include "confdefs.h"
4067 #include <stdlib.h>
4068 #include <stdarg.h>
4069 #include <string.h>
4070 #include <float.h>
4071
4072 _ACEOF
4073 if { (eval echo "$as_me:4073: \"$ac_cpp conftest.$ac_ext\"") >&5
4074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4075 ac_status=$?
4076 egrep -v '^ *\+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); } >/dev/null; then
4081 if test -s conftest.err; then
4082 ac_cpp_err=$ac_c_preproc_warn_flag
4083 else
4084 ac_cpp_err=
4085 fi
4086 else
4087 ac_cpp_err=yes
4088 fi
4089 if test -z "$ac_cpp_err"; then
4090 ac_cv_header_stdc=yes
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4094 ac_cv_header_stdc=no
4095 fi
4096 rm -f conftest.err conftest.$ac_ext
4097
4098 if test $ac_cv_header_stdc = yes; then
4099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4100 cat >conftest.$ac_ext <<_ACEOF
4101 #line 4101 "configure"
4102 #include "confdefs.h"
4103 #include <string.h>
4104
4105 _ACEOF
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 egrep "memchr" >/dev/null 2>&1; then
4108 :
4109 else
4110 ac_cv_header_stdc=no
4111 fi
4112 rm -rf conftest*
4113
4114 fi
4115
4116 if test $ac_cv_header_stdc = yes; then
4117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4118 cat >conftest.$ac_ext <<_ACEOF
4119 #line 4119 "configure"
4120 #include "confdefs.h"
4121 #include <stdlib.h>
4122
4123 _ACEOF
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 egrep "free" >/dev/null 2>&1; then
4126 :
4127 else
4128 ac_cv_header_stdc=no
4129 fi
4130 rm -rf conftest*
4131
4132 fi
4133
4134 if test $ac_cv_header_stdc = yes; then
4135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4136 if test "$cross_compiling" = yes; then
4137 :
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line 4140 "configure"
4141 #include "confdefs.h"
4142 #include <ctype.h>
4143 #if ((' ' & 0x0FF) == 0x020)
4144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4146 #else
4147 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4148 || ('j' <= (c) && (c) <= 'r') \
4149 || ('s' <= (c) && (c) <= 'z'))
4150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4151 #endif
4152
4153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4154 int
4155 main ()
4156 {
4157 int i;
4158 for (i = 0; i < 256; i++)
4159 if (XOR (islower (i), ISLOWER (i))
4160 || toupper (i) != TOUPPER (i))
4161 $ac_main_return(2);
4162 $ac_main_return (0);
4163 }
4164 _ACEOF
4165 rm -f conftest$ac_exeext
4166 if { (eval echo "$as_me:4166: \"$ac_link\"") >&5
4167 (eval $ac_link) 2>&5
4168 ac_status=$?
4169 echo "$as_me:4169: \$? = $ac_status" >&5
4170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171 { (eval echo "$as_me:4171: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:4174: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 :
4177 else
4178 echo "$as_me: program exited with status $ac_status" >&5
4179 echo "$as_me: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4181 ac_cv_header_stdc=no
4182 fi
4183 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 fi
4186 fi
4187 echo "$as_me:4187: result: $ac_cv_header_stdc" >&5
4188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4189 if test $ac_cv_header_stdc = yes; then
4190
4191 cat >>confdefs.h <<\EOF
4192 #define STDC_HEADERS 1
4193 EOF
4194
4195 fi
4196
4197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4198
4199 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4200 inttypes.h stdint.h unistd.h
4201 do
4202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4203 echo "$as_me:4203: checking for $ac_header" >&5
4204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line 4209 "configure"
4210 #include "confdefs.h"
4211 $ac_includes_default
4212 #include <$ac_header>
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (eval echo "$as_me:4215: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>&5
4217 ac_status=$?
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:4221: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:4224: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 eval "$as_ac_Header=yes"
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4230 eval "$as_ac_Header=no"
4231 fi
4232 rm -f conftest.$ac_objext conftest.$ac_ext
4233 fi
4234 echo "$as_me:4234: result: `eval echo '${'$as_ac_Header'}'`" >&5
4235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4237 cat >>confdefs.h <<EOF
4238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4239 EOF
4240
4241 fi
4242 done
4243
4244 echo "$as_me:4244: checking for time_t" >&5
4245 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
4246 if test "${ac_cv_type_time_t+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 #line 4250 "configure"
4251 #include "confdefs.h"
4252 $ac_includes_default
4253 int
4254 main ()
4255 {
4256 if ((time_t *) 0)
4257 return 0;
4258 if (sizeof (time_t))
4259 return 0;
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (eval echo "$as_me:4265: \"$ac_compile\"") >&5
4266 (eval $ac_compile) 2>&5
4267 ac_status=$?
4268 echo "$as_me:4268: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:4271: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:4274: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_type_time_t=yes
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4280 ac_cv_type_time_t=no
4281 fi
4282 rm -f conftest.$ac_objext conftest.$ac_ext
4283 fi
4284 echo "$as_me:4284: result: $ac_cv_type_time_t" >&5
4285 echo "${ECHO_T}$ac_cv_type_time_t" >&6
4286 if test $ac_cv_type_time_t = yes; then
4287 :
4288 else
4289
4290 cat >>confdefs.h <<EOF
4291 #define time_t long
4292 EOF
4293
4294 fi
4295
4296 echo "$as_me:4296: checking for cc_t in <termios.h> or <termio.h>" >&5
4297 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
4298 if test "${cf_cv_type_cc_t+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301
4302 cat >conftest.$ac_ext <<_ACEOF
4303 #line 4303 "configure"
4304 #include "confdefs.h"
4305
4306 #include <sys/types.h>
4307 #if defined(HAVE_TERMIOS_H)
4308 #include <termios.h>
4309 #else
4310 #include <termio.h>
4311 #include <sys/ioctl.h>
4312 #endif
4313
4314 int
4315 main ()
4316 {
4317 cc_t x
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>&5
4325 ac_status=$?
4326 echo "$as_me:4326: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (eval echo "$as_me:4329: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:4332: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 cf_cv_type_cc_t=yes
4335 else
4336 echo "$as_me: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 cf_cv_type_cc_t=no
4339 fi
4340 rm -f conftest.$ac_objext conftest.$ac_ext
4341
4342 fi
4343
4344 echo "$as_me:4344: result: $cf_cv_type_cc_t" >&5
4345 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
4346 test $cf_cv_type_cc_t = no &&
4347 cat >>confdefs.h <<\EOF
4348 #define cc_t unsigned char
4349 EOF
4350
4351 echo "$as_me:4351: checking for mode_t" >&5
4352 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4353 if test "${ac_cv_type_mode_t+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line 4357 "configure"
4358 #include "confdefs.h"
4359 $ac_includes_default
4360 int
4361 main ()
4362 {
4363 if ((mode_t *) 0)
4364 return 0;
4365 if (sizeof (mode_t))
4366 return 0;
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:4372: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4374 ac_status=$?
4375 echo "$as_me:4375: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:4378: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:4381: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_type_mode_t=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_type_mode_t=no
4388 fi
4389 rm -f conftest.$ac_objext conftest.$ac_ext
4390 fi
4391 echo "$as_me:4391: result: $ac_cv_type_mode_t" >&5
4392 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4393 if test $ac_cv_type_mode_t = yes; then
4394 :
4395 else
4396
4397 cat >>confdefs.h <<EOF
4398 #define mode_t int
4399 EOF
4400
4401 fi
4402
4403 echo "$as_me:4403: checking for pid_t" >&5
4404 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4405 if test "${ac_cv_type_pid_t+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 cat >conftest.$ac_ext <<_ACEOF
4409 #line 4409 "configure"
4410 #include "confdefs.h"
4411 $ac_includes_default
4412 int
4413 main ()
4414 {
4415 if ((pid_t *) 0)
4416 return 0;
4417 if (sizeof (pid_t))
4418 return 0;
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (eval echo "$as_me:4424: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
4426 ac_status=$?
4427 echo "$as_me:4427: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:4430: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:4433: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_type_pid_t=yes
4436 else
4437 echo "$as_me: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 ac_cv_type_pid_t=no
4440 fi
4441 rm -f conftest.$ac_objext conftest.$ac_ext
4442 fi
4443 echo "$as_me:4443: result: $ac_cv_type_pid_t" >&5
4444 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4445 if test $ac_cv_type_pid_t = yes; then
4446 :
4447 else
4448
4449 cat >>confdefs.h <<EOF
4450 #define pid_t int
4451 EOF
4452
4453 fi
4454
4455 echo "$as_me:4455: checking for uid_t in sys/types.h" >&5
4456 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4457 if test "${ac_cv_type_uid_t+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 cat >conftest.$ac_ext <<_ACEOF
4461 #line 4461 "configure"
4462 #include "confdefs.h"
4463 #include <sys/types.h>
4464
4465 _ACEOF
4466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467 egrep "uid_t" >/dev/null 2>&1; then
4468 ac_cv_type_uid_t=yes
4469 else
4470 ac_cv_type_uid_t=no
4471 fi
4472 rm -rf conftest*
4473
4474 fi
4475 echo "$as_me:4475: result: $ac_cv_type_uid_t" >&5
4476 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4477 if test $ac_cv_type_uid_t = no; then
4478
4479 cat >>confdefs.h <<\EOF
4480 #define uid_t int
4481 EOF
4482
4483 cat >>confdefs.h <<\EOF
4484 #define gid_t int
4485 EOF
4486
4487 fi
4488
4489 echo "$as_me:4489: checking for off_t" >&5
4490 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4491 if test "${ac_cv_type_off_t+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494 cat >conftest.$ac_ext <<_ACEOF
4495 #line 4495 "configure"
4496 #include "confdefs.h"
4497 $ac_includes_default
4498 int
4499 main ()
4500 {
4501 if ((off_t *) 0)
4502 return 0;
4503 if (sizeof (off_t))
4504 return 0;
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:4510: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4512 ac_status=$?
4513 echo "$as_me:4513: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:4516: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:4519: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_cv_type_off_t=yes
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4525 ac_cv_type_off_t=no
4526 fi
4527 rm -f conftest.$ac_objext conftest.$ac_ext
4528 fi
4529 echo "$as_me:4529: result: $ac_cv_type_off_t" >&5
4530 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4531 if test $ac_cv_type_off_t = yes; then
4532 :
4533 else
4534
4535 cat >>confdefs.h <<EOF
4536 #define off_t long
4537 EOF
4538
4539 fi
4540
4541 ### checks for library functions
4542
4543 for ac_func in \
4544 gethostname \
4545 getlogin \
4546 initgroups \
4547 mkdtemp \
4548 putenv \
4549 unsetenv \
4550 sched_yield \
4551 setpgid \
4552 strftime \
4553 tcgetattr \
4554 waitpid \
4555 wcswidth \
4556 wcwidth
4557 do
4558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4559 echo "$as_me:4559: checking for $ac_func" >&5
4560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4561 if eval "test \"\${$as_ac_var+set}\" = set"; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line 4565 "configure"
4566 #include "confdefs.h"
4567 /* System header to define __stub macros and hopefully few prototypes,
4568 which can conflict with char $ac_func (); below. */
4569 #include <assert.h>
4570 /* Override any gcc2 internal prototype to avoid an error. */
4571 #ifdef __cplusplus
4572 extern "C"
4573 #endif
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4576 char $ac_func ();
4577 char (*f) ();
4578
4579 int
4580 main ()
4581 {
4582 /* The GNU C library defines this for functions which it implements
4583 to always fail with ENOSYS. Some functions are actually named
4584 something starting with __ and the normal name is an alias. */
4585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4586 choke me
4587 #else
4588 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4589 #endif
4590
4591 ;
4592 return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext conftest$ac_exeext
4596 if { (eval echo "$as_me:4596: \"$ac_link\"") >&5
4597 (eval $ac_link) 2>&5
4598 ac_status=$?
4599 echo "$as_me:4599: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest$ac_exeext'
4602 { (eval echo "$as_me:4602: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:4605: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 eval "$as_ac_var=yes"
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 eval "$as_ac_var=no"
4612 fi
4613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4614 fi
4615 echo "$as_me:4615: result: `eval echo '${'$as_ac_var'}'`" >&5
4616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4617 if test `eval echo '${'$as_ac_var'}'` = yes; then
4618 cat >>confdefs.h <<EOF
4619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4620 EOF
4621
4622 fi
4623 done
4624
4625 for ac_header in lastlog.h paths.h
4626 do
4627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4628 echo "$as_me:4628: checking for $ac_header" >&5
4629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 cat >conftest.$ac_ext <<_ACEOF
4634 #line 4634 "configure"
4635 #include "confdefs.h"
4636 #include <$ac_header>
4637 _ACEOF
4638 if { (eval echo "$as_me:4638: \"$ac_cpp conftest.$ac_ext\"") >&5
4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640 ac_status=$?
4641 egrep -v '^ *\+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_c_preproc_warn_flag
4648 else
4649 ac_cpp_err=
4650 fi
4651 else
4652 ac_cpp_err=yes
4653 fi
4654 if test -z "$ac_cpp_err"; then
4655 eval "$as_ac_Header=yes"
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4659 eval "$as_ac_Header=no"
4660 fi
4661 rm -f conftest.err conftest.$ac_ext
4662 fi
4663 echo "$as_me:4663: result: `eval echo '${'$as_ac_Header'}'`" >&5
4664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4666 cat >>confdefs.h <<EOF
4667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4668 EOF
4669
4670 fi
4671 done
4672
4673 echo "$as_me:4673: checking for lastlog path" >&5
4674 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
4675 if test "${cf_cv_path_lastlog+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678
4679 cat >conftest.$ac_ext <<_ACEOF
4680 #line 4680 "configure"
4681 #include "confdefs.h"
4682
4683 #include <sys/types.h>
4684 #ifdef HAVE_LASTLOG_H
4685 #include <lastlog.h>
4686 #else
4687 #ifdef HAVE_PATHS_H
4688 #include <paths.h>
4689 #endif
4690 #endif
4691 int
4692 main ()
4693 {
4694 char *path = _PATH_LASTLOG
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (eval echo "$as_me:4700: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>&5
4702 ac_status=$?
4703 echo "$as_me:4703: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -s conftest.$ac_objext'
4706 { (eval echo "$as_me:4706: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:4709: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 cf_cv_path_lastlog="_PATH_LASTLOG"
4712 else
4713 echo "$as_me: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4715 if test -f /usr/adm/lastlog ; then
4716 cf_cv_path_lastlog=/usr/adm/lastlog
4717 else
4718 cf_cv_path_lastlog=no
4719 fi
4720 fi
4721 rm -f conftest.$ac_objext conftest.$ac_ext
4722
4723 fi
4724 echo "$as_me:4724: result: $cf_cv_path_lastlog" >&5
4725 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
4726 test $cf_cv_path_lastlog != no &&
4727 cat >>confdefs.h <<\EOF
4728 #define USE_LASTLOG 1
4729 EOF
4730
4731 echo "$as_me:4731: checking for utmp implementation" >&5
4732 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
4733 if test "${cf_cv_have_utmp+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736
4737 cf_cv_have_utmp=no
4738 for cf_header in utmpx utmp ; do
4739 cf_utmp_includes="
4740 #include <sys/types.h>
4741 #include <${cf_header}.h>
4742 #define getutent getutxent
4743 #ifdef USE_LASTLOG
4744 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4745 #endif
4746 "
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line 4748 "configure"
4749 #include "confdefs.h"
4750 $cf_utmp_includes
4751 int
4752 main ()
4753 {
4754 struct $cf_header x;
4755 char *name = x.ut_name; /* utmp.h and compatible definitions */
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>&5
4764 ac_status=$?
4765 echo "$as_me:4765: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:4768: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:4771: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 cf_cv_have_utmp=$cf_header
4774 break
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4778
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4782 $cf_utmp_includes
4783 int
4784 main ()
4785 {
4786 struct $cf_header x;
4787 char *name = x.ut_user; /* utmpx.h must declare this */
4788
4789 ;
4790 return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:4794: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>&5
4796 ac_status=$?
4797 echo "$as_me:4797: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:4800: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:4803: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 cf_cv_have_utmp=$cf_header
4806 break
4807
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 fi
4812 rm -f conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 rm -f conftest.$ac_objext conftest.$ac_ext
4815 done
4816
4817 fi
4818 echo "$as_me:4818: result: $cf_cv_have_utmp" >&5
4819 echo "${ECHO_T}$cf_cv_have_utmp" >&6
4820
4821 if test $cf_cv_have_utmp != no ; then
4822
4823 cat >>confdefs.h <<\EOF
4824 #define HAVE_UTMP 1
4825 EOF
4826
4827 test $cf_cv_have_utmp = utmpx &&
4828 cat >>confdefs.h <<\EOF
4829 #define UTMPX_FOR_UTMP 1
4830 EOF
4831
4832 if test $cf_cv_have_utmp != no ; then
4833 echo "$as_me:4833: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
4834 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
4835 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838
4839 cat >conftest.$ac_ext <<_ACEOF
4840 #line 4840 "configure"
4841 #include "confdefs.h"
4842
4843 #include <sys/types.h>
4844 #include <${cf_cv_have_utmp}.h>
4845 int
4846 main ()
4847 {
4848 struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:4854: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:4857: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -s conftest.$ac_objext'
4860 { (eval echo "$as_me:4860: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:4863: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 cf_cv_have_utmp_ut_host=yes
4866 else
4867 echo "$as_me: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 cf_cv_have_utmp_ut_host=no
4870 fi
4871 rm -f conftest.$ac_objext conftest.$ac_ext
4872
4873 fi
4874
4875 echo "$as_me:4875: result: $cf_cv_have_utmp_ut_host" >&5
4876 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
4877 test $cf_cv_have_utmp_ut_host != no &&
4878 cat >>confdefs.h <<\EOF
4879 #define HAVE_UTMP_UT_HOST 1
4880 EOF
4881
4882 fi
4883
4884 if test $cf_cv_have_utmp != no ; then
4885 echo "$as_me:4885: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
4886 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
4887 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line 4892 "configure"
4893 #include "confdefs.h"
4894
4895 #include <sys/types.h>
4896 #include <${cf_cv_have_utmp}.h>
4897 int
4898 main ()
4899 {
4900 struct $cf_cv_have_utmp x; int y = x.ut_syslen
4901 ;
4902 return 0;
4903 }
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:4906: \"$ac_compile\"") >&5
4907 (eval $ac_compile) 2>&5
4908 ac_status=$?
4909 echo "$as_me:4909: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:4912: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:4915: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 cf_cv_have_utmp_ut_syslen=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 cf_cv_have_utmp_ut_syslen=no
4922 fi
4923 rm -f conftest.$ac_objext conftest.$ac_ext
4924
4925 fi
4926
4927 echo "$as_me:4927: result: $cf_cv_have_utmp_ut_syslen" >&5
4928 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
4929 test $cf_cv_have_utmp_ut_syslen != no &&
4930 cat >>confdefs.h <<\EOF
4931 #define HAVE_UTMP_UT_SYSLEN 1
4932 EOF
4933
4934 fi
4935
4936 if test $cf_cv_have_utmp != no ; then
4937 echo "$as_me:4937: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
4938 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
4939 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942
4943 cf_cv_have_utmp_ut_name=no
4944 cf_utmp_includes="
4945 #include <sys/types.h>
4946 #include <${cf_cv_have_utmp}.h>
4947 #define getutent getutxent
4948 #ifdef USE_LASTLOG
4949 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4950 #endif
4951 "
4952 for cf_header in ut_name ut_user ; do
4953 cat >conftest.$ac_ext <<_ACEOF
4954 #line 4954 "configure"
4955 #include "confdefs.h"
4956 $cf_utmp_includes
4957 int
4958 main ()
4959 {
4960 struct $cf_cv_have_utmp x;
4961 char *name = x.$cf_header;
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest.$ac_objext
4968 if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
4969 (eval $ac_compile) 2>&5
4970 ac_status=$?
4971 echo "$as_me:4971: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:4974: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:4977: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 cf_cv_have_utmp_ut_name=$cf_header
4980 break
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 fi
4985 rm -f conftest.$ac_objext conftest.$ac_ext
4986 done
4987
4988 fi
4989 echo "$as_me:4989: result: $cf_cv_have_utmp_ut_name" >&5
4990 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
4991
4992 case $cf_cv_have_utmp_ut_name in
4993 (no)
4994 { { echo "$as_me:4994: error: Cannot find declaration for ut.ut_name" >&5
4995 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
4996 { (exit 1); exit 1; }; }
4997 ;;
4998 (ut_user)
4999
5000 cat >>confdefs.h <<\EOF
5001 #define ut_name ut_user
5002 EOF
5003
5004 ;;
5005 esac
5006 fi
5007
5008 if test $cf_cv_have_utmp != no ; then
5009 echo "$as_me:5009: checking for exit-status in $cf_cv_have_utmp" >&5
5010 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
5011 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014
5015 for cf_result in \
5016 ut_exit.__e_exit \
5017 ut_exit.e_exit \
5018 ut_exit.ut_e_exit \
5019 ut_exit.ut_exit
5020 do
5021 cat >conftest.$ac_ext <<_ACEOF
5022 #line 5022 "configure"
5023 #include "confdefs.h"
5024
5025 #include <sys/types.h>
5026 #include <${cf_cv_have_utmp}.h>
5027 int
5028 main ()
5029 {
5030 struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (eval echo "$as_me:5036: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5038 ac_status=$?
5039 echo "$as_me:5039: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -s conftest.$ac_objext'
5042 { (eval echo "$as_me:5042: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:5045: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 cf_cv_have_utmp_ut_xstatus=$cf_result
5048 break
5049 else
5050 echo "$as_me: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 cf_cv_have_utmp_ut_xstatus=no
5053 fi
5054 rm -f conftest.$ac_objext conftest.$ac_ext
5055 done
5056
5057 fi
5058 echo "$as_me:5058: result: $cf_cv_have_utmp_ut_xstatus" >&5
5059 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
5060 if test $cf_cv_have_utmp_ut_xstatus != no ; then
5061
5062 cat >>confdefs.h <<\EOF
5063 #define HAVE_UTMP_UT_XSTATUS 1
5064 EOF
5065
5066 cat >>confdefs.h <<EOF
5067 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
5068 EOF
5069
5070 fi
5071 fi
5072
5073 if test $cf_cv_have_utmp != no ; then
5074 echo "$as_me:5074: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
5075 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
5076 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079
5080 cat >conftest.$ac_ext <<_ACEOF
5081 #line 5081 "configure"
5082 #include "confdefs.h"
5083
5084 #include <sys/types.h>
5085 #include <${cf_cv_have_utmp}.h>
5086 int
5087 main ()
5088 {
5089 struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:5095: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5097 ac_status=$?
5098 echo "$as_me:5098: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:5101: \"$ac_try\"") >&5
5102 (eval $ac_try) 2>&5
5103 ac_status=$?
5104 echo "$as_me:5104: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 cf_cv_have_utmp_ut_xtime=yes
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5110 cat >conftest.$ac_ext <<_ACEOF
5111 #line 5111 "configure"
5112 #include "confdefs.h"
5113
5114 #include <sys/types.h>
5115 #include <${cf_cv_have_utmp}.h>
5116 int
5117 main ()
5118 {
5119 struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (eval echo "$as_me:5125: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>&5
5127 ac_status=$?
5128 echo "$as_me:5128: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -s conftest.$ac_objext'
5131 { (eval echo "$as_me:5131: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:5134: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 cf_cv_have_utmp_ut_xtime=define
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 cf_cv_have_utmp_ut_xtime=no
5141 fi
5142 rm -f conftest.$ac_objext conftest.$ac_ext
5143
5144 fi
5145 rm -f conftest.$ac_objext conftest.$ac_ext
5146
5147 fi
5148 echo "$as_me:5148: result: $cf_cv_have_utmp_ut_xtime" >&5
5149 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
5150 if test $cf_cv_have_utmp_ut_xtime != no ; then
5151
5152 cat >>confdefs.h <<\EOF
5153 #define HAVE_UTMP_UT_XTIME 1
5154 EOF
5155
5156 if test $cf_cv_have_utmp_ut_xtime = define ; then
5157
5158 cat >>confdefs.h <<\EOF
5159 #define ut_xtime ut_tv.tv_sec
5160 EOF
5161
5162 fi
5163 fi
5164 fi
5165
5166 if test $cf_cv_have_utmp != no ; then
5167 echo "$as_me:5167: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
5168 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
5169 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172
5173 cat >conftest.$ac_ext <<_ACEOF
5174 #line 5174 "configure"
5175 #include "confdefs.h"
5176
5177 #include <sys/types.h>
5178 #include <${cf_cv_have_utmp}.h>
5179 int
5180 main ()
5181 {
5182 struct $cf_cv_have_utmp x; long y = x.ut_session
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:5188: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>&5
5190 ac_status=$?
5191 echo "$as_me:5191: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:5194: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:5197: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 cf_cv_have_utmp_ut_session=yes
5200 else
5201 echo "$as_me: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 cf_cv_have_utmp_ut_session=no
5204 fi
5205 rm -f conftest.$ac_objext conftest.$ac_ext
5206
5207 fi
5208 echo "$as_me:5208: result: $cf_cv_have_utmp_ut_session" >&5
5209 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
5210 if test $cf_cv_have_utmp_ut_session != no ; then
5211
5212 cat >>confdefs.h <<\EOF
5213 #define HAVE_UTMP_UT_SESSION 1
5214 EOF
5215
5216 fi
5217 fi
5218
5219 echo "$as_me:5219: checking if $cf_cv_have_utmp is SYSV flavor" >&5
5220 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
5221 if test "${cf_cv_sysv_utmp+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224
5225 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
5226 cat >conftest.$ac_ext <<_ACEOF
5227 #line 5227 "configure"
5228 #include "confdefs.h"
5229
5230 #include <sys/types.h>
5231 #include <${cf_cv_have_utmp}.h>
5232 int
5233 main ()
5234 {
5235
5236 struct $cf_cv_have_utmp x;
5237 set${cf_prefix}ent ();
5238 get${cf_prefix}id(&x);
5239 put${cf_prefix}line(&x);
5240 end${cf_prefix}ent();
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:5246: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>&5
5248 ac_status=$?
5249 echo "$as_me:5249: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:5252: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:5255: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 cf_cv_sysv_utmp=yes
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 cf_cv_sysv_utmp=no
5262 fi
5263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5264
5265 fi
5266 echo "$as_me:5266: result: $cf_cv_sysv_utmp" >&5
5267 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
5268 test $cf_cv_sysv_utmp = yes &&
5269 cat >>confdefs.h <<\EOF
5270 #define USE_SYSV_UTMP 1
5271 EOF
5272
5273 fi
5274
5275 for ac_header in lastlog.h
5276 do
5277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278 echo "$as_me:5278: checking for $ac_header" >&5
5279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line 5284 "configure"
5285 #include "confdefs.h"
5286 #include <$ac_header>
5287 _ACEOF
5288 if { (eval echo "$as_me:5288: \"$ac_cpp conftest.$ac_ext\"") >&5
5289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5290 ac_status=$?
5291 egrep -v '^ *\+' conftest.er1 >conftest.err
5292 rm -f conftest.er1
5293 cat conftest.err >&5
5294 echo "$as_me:5294: \$? = $ac_status" >&5
5295 (exit $ac_status); } >/dev/null; then
5296 if test -s conftest.err; then
5297 ac_cpp_err=$ac_c_preproc_warn_flag
5298 else
5299 ac_cpp_err=
5300 fi
5301 else
5302 ac_cpp_err=yes
5303 fi
5304 if test -z "$ac_cpp_err"; then
5305 eval "$as_ac_Header=yes"
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5309 eval "$as_ac_Header=no"
5310 fi
5311 rm -f conftest.err conftest.$ac_ext
5312 fi
5313 echo "$as_me:5313: result: `eval echo '${'$as_ac_Header'}'`" >&5
5314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5316 cat >>confdefs.h <<EOF
5317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5318 EOF
5319
5320 fi
5321 done
5322
5323 echo "$as_me:5323: checking for struct lastlog" >&5
5324 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
5325 if test "${cf_cv_struct_lastlog+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328
5329 if test "$cross_compiling" = yes; then
5330
5331 cf_cv_struct_lastlog=unknown
5332 else
5333 cat >conftest.$ac_ext <<_ACEOF
5334 #line 5334 "configure"
5335 #include "confdefs.h"
5336
5337 #include <sys/types.h>
5338 #include <time.h>
5339 #include <lastlog.h>
5340
5341 int main()
5342 {
5343 struct lastlog data;
5344 return (sizeof(data.ll_time) != sizeof(time_t));
5345 }
5346 _ACEOF
5347 rm -f conftest$ac_exeext
5348 if { (eval echo "$as_me:5348: \"$ac_link\"") >&5
5349 (eval $ac_link) 2>&5
5350 ac_status=$?
5351 echo "$as_me:5351: \$? = $ac_status" >&5
5352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5353 { (eval echo "$as_me:5353: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:5356: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358
5359 cf_cv_struct_lastlog=yes
5360 else
5361 echo "$as_me: program exited with status $ac_status" >&5
5362 echo "$as_me: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5364
5365 cf_cv_struct_lastlog=no
5366 fi
5367 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5368 fi
5369 fi
5370 echo "$as_me:5370: result: $cf_cv_struct_lastlog" >&5
5371 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
5372
5373 test $cf_cv_struct_lastlog != no &&
5374 cat >>confdefs.h <<\EOF
5375 #define USE_STRUCT_LASTLOG 1
5376 EOF
5377
5378 for ac_header in \
5379 sys/param.h \
5380
5381 do
5382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5383 echo "$as_me:5383: checking for $ac_header" >&5
5384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line 5389 "configure"
5390 #include "confdefs.h"
5391 #include <$ac_header>
5392 _ACEOF
5393 if { (eval echo "$as_me:5393: \"$ac_cpp conftest.$ac_ext\"") >&5
5394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5395 ac_status=$?
5396 egrep -v '^ *\+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:5399: \$? = $ac_status" >&5
5400 (exit $ac_status); } >/dev/null; then
5401 if test -s conftest.err; then
5402 ac_cpp_err=$ac_c_preproc_warn_flag
5403 else
5404 ac_cpp_err=
5405 fi
5406 else
5407 ac_cpp_err=yes
5408 fi
5409 if test -z "$ac_cpp_err"; then
5410 eval "$as_ac_Header=yes"
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5414 eval "$as_ac_Header=no"
5415 fi
5416 rm -f conftest.err conftest.$ac_ext
5417 fi
5418 echo "$as_me:5418: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5421 cat >>confdefs.h <<EOF
5422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5423 EOF
5424
5425 fi
5426 done
5427
5428 echo "$as_me:5428: checking if POSIX saved-ids are supported" >&5
5429 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
5430 if test "${cf_cv_posix_saved_ids+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line 5435 "configure"
5436 #include "confdefs.h"
5437
5438 #include <unistd.h>
5439 #ifdef HAVE_SYS_PARAM_H
5440 #include <sys/param.h> /* this may define "BSD" */
5441 #endif
5442
5443 int
5444 main ()
5445 {
5446
5447 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
5448 void *p = (void *) seteuid;
5449 int x = seteuid(geteuid());
5450 #elif defined(BSD) && (BSD >= 199103)
5451 /* The BSD's may implement the runtime check - and it fails.
5452 * However, saved-ids work almost like POSIX (close enough for most uses).
5453 */
5454 #else
5455 make an error
5456 #endif
5457
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext conftest$ac_exeext
5463 if { (eval echo "$as_me:5463: \"$ac_link\"") >&5
5464 (eval $ac_link) 2>&5
5465 ac_status=$?
5466 echo "$as_me:5466: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -s conftest$ac_exeext'
5469 { (eval echo "$as_me:5469: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:5472: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 cf_cv_posix_saved_ids=yes
5475
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479
5480 if test "$cross_compiling" = yes; then
5481 cf_cv_posix_saved_ids=unknown
5482 else
5483 cat >conftest.$ac_ext <<_ACEOF
5484 #line 5484 "configure"
5485 #include "confdefs.h"
5486
5487 #ifdef HAVE_STDLIB_H
5488 #include <stdlib.h>
5489 #endif
5490 #include <unistd.h>
5491 int main()
5492 {
5493 void *p = (void *) seteuid;
5494 long code = sysconf(_SC_SAVED_IDS);
5495 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
5496 }
5497 _ACEOF
5498 rm -f conftest$ac_exeext
5499 if { (eval echo "$as_me:5499: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>&5
5501 ac_status=$?
5502 echo "$as_me:5502: \$? = $ac_status" >&5
5503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504 { (eval echo "$as_me:5504: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:5507: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 cf_cv_posix_saved_ids=yes
5510 else
5511 echo "$as_me: program exited with status $ac_status" >&5
5512 echo "$as_me: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5514 cf_cv_posix_saved_ids=no
5515 fi
5516 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5517 fi
5518
5519 fi
5520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5521
5522 fi
5523 echo "$as_me:5523: result: $cf_cv_posix_saved_ids" >&5
5524 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
5525
5526 test "$cf_cv_posix_saved_ids" = yes &&
5527 cat >>confdefs.h <<\EOF
5528 #define HAVE_POSIX_SAVED_IDS 1
5529 EOF
5530
5531 # compute a reasonable value for $TERM to give tgetent(), since we may be
5532 # running in 'screen', which sets $TERMCAP to a specific entry that is not
5533 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
5534 # discard $TERMCAP.
5535 cf_TERMVAR=vt100
5536 if test -n "$TERMCAP"
5537 then
5538 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'`
5539 case "$cf_TERMCAP" in
5540 (screen*.*)
5541 ;;
5542 (*)
5543 cf_TERMVAR="$cf_TERMCAP"
5544 ;;
5545 esac
5546 fi
5547 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
5548
5549 echo "$as_me:5549: checking if we want full tgetent function" >&5
5550 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
5551
5552 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
5553 if test "${enable_full_tgetent+set}" = set; then
5554 enableval="$enable_full_tgetent"
5555 test "$enableval" != no && enableval=yes
5556 if test "$enableval" != "yes" ; then
5557 cf_full_tgetent=no
5558 else
5559 cf_full_tgetent=yes
5560 fi
5561 else
5562 enableval=yes
5563 cf_full_tgetent=yes
5564
5565 fi;
5566 echo "$as_me:5566: result: $cf_full_tgetent" >&5
5567 echo "${ECHO_T}$cf_full_tgetent" >&6
5568
5569 if test "$cf_full_tgetent" = yes ; then
5570 cf_test_message="full tgetent"
5571 else
5572 cf_test_message="tgetent"
5573 fi
5574
5575 echo "$as_me:5575: checking for $cf_test_message function" >&5
5576 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
5577 if test "${cf_cv_lib_tgetent+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580
5581 cf_save_LIBS="$LIBS"
5582 cf_cv_lib_tgetent=no
5583 if test "$cf_full_tgetent" = yes ; then
5584 cf_TERMLIB="otermcap termcap termlib ncurses curses"
5585 cf_TERMTST="buffer[0] == 0"
5586 else
5587 cf_TERMLIB="termlib ncurses curses"
5588 cf_TERMTST="0"
5589 fi
5590 for cf_termlib in '' $cf_TERMLIB ; do
5591 LIBS="$cf_save_LIBS"
5592 test -n "$cf_termlib" && {
5593 cf_add_libs="-l$cf_termlib"
5594 # Filter out duplicates - this happens with badly-designed ".pc" files...
5595 for cf_add_1lib in $LIBS
5596 do
5597 for cf_add_2lib in $cf_add_libs
5598 do
5599 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5600 then
5601 cf_add_1lib=
5602 break
5603 fi
5604 done
5605 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5606 done
5607 LIBS="$cf_add_libs"
5608 }
5609 if test "$cross_compiling" = yes; then
5610 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
5611 else
5612 cat >conftest.$ac_ext <<_ACEOF
5613 #line 5613 "configure"
5614 #include "confdefs.h"
5615
5616 /* terminfo implementations ignore the buffer argument, making it useless for
5617 * the xterm application, which uses this information to make a new TERMCAP
5618 * environment variable.
5619 */
5620 int main()
5621 {
5622 char buffer[1024];
5623 buffer[0] = 0;
5624 tgetent(buffer, "$cf_TERMVAR");
5625 ${cf_cv_main_return:-return} ($cf_TERMTST); }
5626 _ACEOF
5627 rm -f conftest$ac_exeext
5628 if { (eval echo "$as_me:5628: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5630 ac_status=$?
5631 echo "$as_me:5631: \$? = $ac_status" >&5
5632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5633 { (eval echo "$as_me:5633: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:5636: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
5639 if test -n "$cf_termlib" ; then
5640 cf_cv_lib_tgetent="-l$cf_termlib"
5641 else
5642 cf_cv_lib_tgetent=yes
5643 fi
5644 break
5645 else
5646 echo "$as_me: program exited with status $ac_status" >&5
5647 echo "$as_me: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
5650 fi
5651 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5652 fi
5653 done
5654 LIBS="$cf_save_LIBS"
5655
5656 fi
5657 echo "$as_me:5657: result: $cf_cv_lib_tgetent" >&5
5658 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
5659
5660 # If we found a working tgetent(), set LIBS and check for termcap.h.
5661 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
5662 # not have side effects other than setting the cache variable, because
5663 # they are not executed when a cached value exists.)
5664 if test "x$cf_cv_lib_tgetent" != xno ; then
5665 test "x$cf_cv_lib_tgetent" != xyes && {
5666 cf_add_libs="$cf_cv_lib_tgetent"
5667 # Filter out duplicates - this happens with badly-designed ".pc" files...
5668 for cf_add_1lib in $LIBS
5669 do
5670 for cf_add_2lib in $cf_add_libs
5671 do
5672 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5673 then
5674 cf_add_1lib=
5675 break
5676 fi
5677 done
5678 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5679 done
5680 LIBS="$cf_add_libs"
5681 }
5682
5683 cat >>confdefs.h <<\EOF
5684 #define USE_TERMCAP 1
5685 EOF
5686
5687 if test "$cf_full_tgetent" = no ; then
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line 5689 "configure"
5690 #include "confdefs.h"
5691
5692 #include <termcap.h>
5693 int
5694 main ()
5695 {
5696
5697 #ifdef NCURSES_VERSION
5698 make an error
5699 #endif
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:5705: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5707 ac_status=$?
5708 echo "$as_me:5708: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:5711: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:5714: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 cat >>confdefs.h <<\EOF
5717 #define HAVE_TERMCAP_H 1
5718 EOF
5719
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5723 fi
5724 rm -f conftest.$ac_objext conftest.$ac_ext
5725 else
5726
5727 for ac_header in termcap.h
5728 do
5729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730 echo "$as_me:5730: checking for $ac_header" >&5
5731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line 5736 "configure"
5737 #include "confdefs.h"
5738 #include <$ac_header>
5739 _ACEOF
5740 if { (eval echo "$as_me:5740: \"$ac_cpp conftest.$ac_ext\"") >&5
5741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5742 ac_status=$?
5743 egrep -v '^ *\+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:5746: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev/null; then
5748 if test -s conftest.err; then
5749 ac_cpp_err=$ac_c_preproc_warn_flag
5750 else
5751 ac_cpp_err=
5752 fi
5753 else
5754 ac_cpp_err=yes
5755 fi
5756 if test -z "$ac_cpp_err"; then
5757 eval "$as_ac_Header=yes"
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5761 eval "$as_ac_Header=no"
5762 fi
5763 rm -f conftest.err conftest.$ac_ext
5764 fi
5765 echo "$as_me:5765: result: `eval echo '${'$as_ac_Header'}'`" >&5
5766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5768 cat >>confdefs.h <<EOF
5769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5770 EOF
5771
5772 fi
5773 done
5774
5775 fi
5776 else
5777 # If we didn't find a tgetent() that supports the buffer
5778 # argument, look again to see whether we can find even
5779 # a crippled one. A crippled tgetent() is still useful to
5780 # validate values for the TERM environment variable given to
5781 # child processes.
5782 echo "$as_me:5782: checking for partial tgetent function" >&5
5783 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
5784 if test "${cf_cv_lib_part_tgetent+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787
5788 cf_cv_lib_part_tgetent=no
5789 for cf_termlib in $cf_TERMLIB ; do
5790 LIBS="$cf_save_LIBS -l$cf_termlib"
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line 5792 "configure"
5793 #include "confdefs.h"
5794
5795 int
5796 main ()
5797 {
5798 tgetent(0, "$cf_TERMVAR")
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (eval echo "$as_me:5804: \"$ac_link\"") >&5
5805 (eval $ac_link) 2>&5
5806 ac_status=$?
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:5810: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:5813: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
5816 cf_cv_lib_part_tgetent="-l$cf_termlib"
5817 break
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5821 fi
5822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5823 done
5824 LIBS="$cf_save_LIBS"
5825
5826 fi
5827 echo "$as_me:5827: result: $cf_cv_lib_part_tgetent" >&5
5828 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
5829
5830 if test "$cf_cv_lib_part_tgetent" != no ; then
5831
5832 cf_add_libs="$cf_cv_lib_part_tgetent"
5833 # Filter out duplicates - this happens with badly-designed ".pc" files...
5834 for cf_add_1lib in $LIBS
5835 do
5836 for cf_add_2lib in $cf_add_libs
5837 do
5838 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5839 then
5840 cf_add_1lib=
5841 break
5842 fi
5843 done
5844 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5845 done
5846 LIBS="$cf_add_libs"
5847
5848 for ac_header in termcap.h
5849 do
5850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851 echo "$as_me:5851: checking for $ac_header" >&5
5852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line 5857 "configure"
5858 #include "confdefs.h"
5859 #include <$ac_header>
5860 _ACEOF
5861 if { (eval echo "$as_me:5861: \"$ac_cpp conftest.$ac_ext\"") >&5
5862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5863 ac_status=$?
5864 egrep -v '^ *\+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:5867: \$? = $ac_status" >&5
5868 (exit $ac_status); } >/dev/null; then
5869 if test -s conftest.err; then
5870 ac_cpp_err=$ac_c_preproc_warn_flag
5871 else
5872 ac_cpp_err=
5873 fi
5874 else
5875 ac_cpp_err=yes
5876 fi
5877 if test -z "$ac_cpp_err"; then
5878 eval "$as_ac_Header=yes"
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5882 eval "$as_ac_Header=no"
5883 fi
5884 rm -f conftest.err conftest.$ac_ext
5885 fi
5886 echo "$as_me:5886: result: `eval echo '${'$as_ac_Header'}'`" >&5
5887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5889 cat >>confdefs.h <<EOF
5890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5891 EOF
5892
5893 fi
5894 done
5895
5896 # If this is linking against ncurses, we'll trigger the
5897 # ifdef in resize.c that turns the termcap stuff back off.
5898
5899 cat >>confdefs.h <<\EOF
5900 #define USE_TERMINFO 1
5901 EOF
5902
5903 fi
5904 fi
5905
5906 echo "$as_me:5906: checking for X applications class" >&5
5907 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
5908
5909 # Check whether --with-app-class or --without-app-class was given.
5910 if test "${with_app_class+set}" = set; then
5911 withval="$with_app_class"
5912 APP_CLASS=$withval
5913 else
5914 APP_CLASS=XTerm
5915 fi;
5916
5917 case x$APP_CLASS in
5918 (*[/@,%]*)
5919 { echo "$as_me:5919: WARNING: X applications class cannot contain punctuation" >&5
5920 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
5921 APP_CLASS=XTerm
5922 ;;
5923 (x[A-Z]*)
5924 ;;
5925 (*)
5926 { echo "$as_me:5926: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5
5927 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;}
5928 APP_CLASS=XTerm
5929 ;;
5930 esac
5931
5932 echo "$as_me:5932: result: $APP_CLASS" >&5
5933 echo "${ECHO_T}$APP_CLASS" >&6
5934
5935 echo "$as_me:5935: checking for directory to install resource files" >&5
5936 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
5937
5938 # Check whether --with-app-defaults or --without-app-defaults was given.
5939 if test "${with_app_defaults+set}" = set; then
5940 withval="$with_app_defaults"
5941 APPSDIR=$withval
5942 else
5943 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
5944 fi;
5945
5946 if test "x$APPSDIR" = xauto
5947 then
5948 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
5949 for cf_path in \
5950 /opt/local/share/X11/app-defaults \
5951 /opt/X11/share/X11/app-defaults \
5952 /usr/share/X11/app-defaults \
5953 /usr/X11/share/X11/app-defaults \
5954 /usr/X11/lib/X11/app-defaults \
5955 /usr/lib/X11/app-defaults \
5956 /etc/X11/app-defaults \
5957 /usr/pkg/lib/X11/app-defaults \
5958 /usr/X11R7/lib/X11/app-defaults \
5959 /usr/X11R6/lib/X11/app-defaults \
5960 /usr/X11R5/lib/X11/app-defaults \
5961 /usr/X11R4/lib/X11/app-defaults \
5962 /usr/local/lib/X11/app-defaults \
5963 /usr/local/share/X11/app-defaults \
5964 /usr/lib64/X11/app-defaults
5965 do
5966 if test -d "$cf_path" ; then
5967 APPSDIR="$cf_path"
5968 break
5969 fi
5970 done
5971 else
5972 cf_path=$APPSDIR
5973
5974 if test "x$prefix" != xNONE; then
5975 cf_path_syntax="$prefix"
5976 else
5977 cf_path_syntax="$ac_default_prefix"
5978 fi
5979
5980 case ".$cf_path" in
5981 (.\$\(*\)*|.\'*\'*)
5982 ;;
5983 (..|./*|.\\*)
5984 ;;
5985 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5986 ;;
5987 (.\${*prefix}*|.\${*dir}*)
5988 eval cf_path="$cf_path"
5989 case ".$cf_path" in
5990 (.NONE/*)
5991 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
5992 ;;
5993 esac
5994 ;;
5995 (.no|.NONE/*)
5996 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
5997 ;;
5998 (*)
5999 { { echo "$as_me:5999: error: expected a pathname, not \"$cf_path\"" >&5
6000 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
6001 { (exit 1); exit 1; }; }
6002 ;;
6003 esac
6004
6005 fi
6006
6007 echo "$as_me:6007: result: $APPSDIR" >&5
6008 echo "${ECHO_T}$APPSDIR" >&6
6009
6010 no_appsdir=
6011 if test "$APPSDIR" = no
6012 then
6013 no_appsdir="#"
6014 else
6015 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
6016 fi
6017
6018 echo "$as_me:6018: checking for the icon name" >&5
6019 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
6020
6021 # Check whether --with-icon-name or --without-icon-name was given.
6022 if test "${with_icon_name+set}" = set; then
6023 withval="$with_icon_name"
6024 ICON_NAME="$withval"
6025 else
6026 ICON_NAME=xterm-color
6027 fi;
6028 case "x$ICON_NAME" in
6029 (xyes|xno|x)
6030 ICON_NAME=xterm-color
6031 ;;
6032 esac
6033
6034 echo "$as_me:6034: result: $ICON_NAME" >&5
6035 echo "${ECHO_T}$ICON_NAME" >&6
6036
6037 echo "$as_me:6037: checking for icon symlink to use" >&5
6038 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
6039
6040 # Check whether --with-icon-symlink or --without-icon-symlink was given.
6041 if test "${with_icon_symlink+set}" = set; then
6042 withval="$with_icon_symlink"
6043 ICON_SYMLINK="$withval"
6044 else
6045 ICON_SYMLINK=NONE
6046 fi;
6047 case "x$ICON_SYMLINK" in
6048 (xyes)
6049 ICON_SYMLINK=xterm
6050 ;;
6051 (xno|x)
6052 ICON_SYMLINK=NONE
6053 ;;
6054 esac
6055
6056 echo "$as_me:6056: result: $ICON_SYMLINK" >&5
6057 echo "${ECHO_T}$ICON_SYMLINK" >&6
6058
6059 echo "$as_me:6059: checking for directory to install pixmaps" >&5
6060 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
6061
6062 # Check whether --with-pixmapdir or --without-pixmapdir was given.
6063 if test "${with_pixmapdir+set}" = set; then
6064 withval="$with_pixmapdir"
6065 PIXMAPDIR=$withval
6066 else
6067 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
6068 fi;
6069
6070 if test "x$PIXMAPDIR" = xauto
6071 then
6072 PIXMAPDIR='${datadir}/pixmaps'
6073 for cf_path in \
6074 /usr/share/pixmaps \
6075 /usr/X11R6/share/pixmaps
6076 do
6077 if test -d "$cf_path" ; then
6078 PIXMAPDIR="$cf_path"
6079 break
6080 fi
6081 done
6082 else
6083 cf_path=$PIXMAPDIR
6084
6085 if test "x$prefix" != xNONE; then
6086 cf_path_syntax="$prefix"
6087 else
6088 cf_path_syntax="$ac_default_prefix"
6089 fi
6090
6091 case ".$cf_path" in
6092 (.\$\(*\)*|.\'*\'*)
6093 ;;
6094 (..|./*|.\\*)
6095 ;;
6096 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6097 ;;
6098 (.\${*prefix}*|.\${*dir}*)
6099 eval cf_path="$cf_path"
6100 case ".$cf_path" in
6101 (.NONE/*)
6102 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6103 ;;
6104 esac
6105 ;;
6106 (.no|.NONE/*)
6107 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6108 ;;
6109 (*)
6110 { { echo "$as_me:6110: error: expected a pathname, not \"$cf_path\"" >&5
6111 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
6112 { (exit 1); exit 1; }; }
6113 ;;
6114 esac
6115
6116 fi
6117 echo "$as_me:6117: result: $PIXMAPDIR" >&5
6118 echo "${ECHO_T}$PIXMAPDIR" >&6
6119
6120 no_pixmapdir=
6121 if test "$PIXMAPDIR" = no
6122 then
6123 no_pixmapdir="#"
6124 else
6125 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
6126 fi
6127
6128 echo "$as_me:6128: checking for directory to install icons" >&5
6129 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
6130
6131 # Check whether --with-icondir or --without-icondir was given.
6132 if test "${with_icondir+set}" = set; then
6133 withval="$with_icondir"
6134 ICONDIR=$withval
6135 else
6136 test -z "$ICONDIR" && ICONDIR=no
6137 fi;
6138
6139 if test "x$ICONDIR" = xauto
6140 then
6141 ICONDIR='${datadir}/icons'
6142 for cf_path in \
6143 /usr/share/icons \
6144 /usr/X11R6/share/icons
6145 do
6146 if test -d "$cf_path" ; then
6147 ICONDIR="$cf_path"
6148 break
6149 fi
6150 done
6151 else
6152 cf_path=$ICONDIR
6153
6154 if test "x$prefix" != xNONE; then
6155 cf_path_syntax="$prefix"
6156 else
6157 cf_path_syntax="$ac_default_prefix"
6158 fi
6159
6160 case ".$cf_path" in
6161 (.\$\(*\)*|.\'*\'*)
6162 ;;
6163 (..|./*|.\\*)
6164 ;;
6165 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6166 ;;
6167 (.\${*prefix}*|.\${*dir}*)
6168 eval cf_path="$cf_path"
6169 case ".$cf_path" in
6170 (.NONE/*)
6171 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6172 ;;
6173 esac
6174 ;;
6175 (.no|.NONE/*)
6176 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6177 ;;
6178 (*)
6179 { { echo "$as_me:6179: error: expected a pathname, not \"$cf_path\"" >&5
6180 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
6181 { (exit 1); exit 1; }; }
6182 ;;
6183 esac
6184
6185 fi
6186 echo "$as_me:6186: result: $ICONDIR" >&5
6187 echo "${ECHO_T}$ICONDIR" >&6
6188
6189 no_icondir=
6190 if test "$ICONDIR" = no
6191 then
6192 no_icondir="#"
6193 else
6194 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
6195 fi
6196
6197 echo "$as_me:6197: checking if icon theme should be used" >&5
6198 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
6199
6200 # Check whether --with-icon-theme or --without-icon-theme was given.
6201 if test "${with_icon_theme+set}" = set; then
6202 withval="$with_icon_theme"
6203 ICON_THEME=$withval
6204 else
6205 ICON_THEME=no
6206 fi;
6207
6208 case "x$ICON_THEME" in
6209 (xno)
6210 ;;
6211 (x|xyes)
6212 ICON_THEME=hicolor
6213 ;;
6214 esac
6215 echo "$as_me:6215: result: $ICON_THEME" >&5
6216 echo "${ECHO_T}$ICON_THEME" >&6
6217
6218 if test "x$ICON_THEME" = xno
6219 then
6220 if test "x$ICONDIR" != xno
6221 then
6222 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6
6223
6224 echo "${as_me:-configure}:6224: testing ignoring icondir without theme ..." 1>&5
6225
6226 no_icondir="#"
6227 fi
6228 else
6229 if test "x$ICONDIR" = xno
6230 then
6231 { { echo "$as_me:6231: error: icondir must be set for icon theme" >&5
6232 echo "$as_me: error: icondir must be set for icon theme" >&2;}
6233 { (exit 1); exit 1; }; }
6234 fi
6235 fi
6236
6237 : ${ICON_FORMAT:=".svg .png .xpm"}
6238
6239 # ICON_NAME=
6240 ICON_LIST=
6241
6242 if test "x$ICON_THEME" != xno
6243 then
6244 cf_icon_list="icons/$ICON_NAME icons/${ICON_NAME}_48x48"
6245 else
6246 cf_icon_list="icons/${ICON_NAME}_48x48"
6247 fi
6248
6249 echo "$as_me:6249: checking for icon(s) to install" >&5
6250 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
6251 for cf_name in $cf_icon_list
6252 do
6253 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6
6254
6255 echo "${as_me:-configure}:6255: testing using $ICON_FORMAT ..." 1>&5
6256
6257 for cf_suffix in $ICON_FORMAT
6258 do
6259 cf_icon="${cf_name}${cf_suffix}"
6260 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
6261 if test ! -f "${cf_left}"
6262 then
6263 if test "x$srcdir" != "x."
6264 then
6265 cf_icon="${srcdir}/${cf_left}"
6266 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
6267 if test ! -f "${cf_left}"
6268 then
6269 continue
6270 fi
6271 else
6272 continue
6273 fi
6274 fi
6275 if test "x$ICON_THEME" != xno
6276 then
6277 cf_base=`basename $cf_left`
6278 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'`
6279 case "x${cf_base}" in
6280 (*:*)
6281 cf_next=$cf_base
6282 # user-defined mapping
6283 ;;
6284 (*.png)
6285 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'`
6286 if test -z "$cf_size"
6287 then
6288 { echo "$as_me:6288: WARNING: cannot determine size of $cf_left" >&5
6289 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
6290 continue
6291 fi
6292 cf_next="$cf_size/apps/$cf_trim"
6293 ;;
6294 (*.svg)
6295 cf_next="scalable/apps/$cf_trim"
6296 ;;
6297 (*.xpm)
6298 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6
6299
6300 echo "${as_me:-configure}:6300: testing ignored XPM file in icon theme ..." 1>&5
6301
6302 continue
6303 ;;
6304 (*_[0-9][0-9]*x[0-9][0-9]*.*)
6305 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'`
6306 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
6307 cf_next="$cf_size/apps/$cf_base"
6308 ;;
6309 esac
6310 test -n "$verbose" && echo " adding $cf_next" 1>&6
6311
6312 echo "${as_me:-configure}:6312: testing adding $cf_next ..." 1>&5
6313
6314 cf_icon="${cf_icon}:${cf_next}"
6315 fi
6316 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
6317 ICON_LIST="$ICON_LIST${cf_icon}"
6318 if test -z "$ICON_NAME"
6319 then
6320 ICON_NAME=`basename $cf_icon | sed -e 's/[.:].*//'`
6321 fi
6322 done
6323 done
6324
6325 if test -n "$verbose"
6326 then
6327 echo "$as_me:6327: checking result" >&5
6328 echo $ECHO_N "checking result... $ECHO_C" >&6
6329 fi
6330 echo "$as_me:6330: result: $ICON_LIST" >&5
6331 echo "${ECHO_T}$ICON_LIST" >&6
6332
6333 if test -z "$ICON_LIST"
6334 then
6335 { { echo "$as_me:6335: error: no icons found" >&5
6336 echo "$as_me: error: no icons found" >&2;}
6337 { (exit 1); exit 1; }; }
6338 fi
6339
6340 echo "$as_me:6340: checking for icon name" >&5
6341 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
6342 echo "$as_me:6342: result: $ICON_NAME" >&5
6343 echo "${ECHO_T}$ICON_NAME" >&6
6344
6345 # Comment-out the install-desktop rule if the desktop-utils are not found.
6346 echo "$as_me:6346: checking if you want to install desktop files" >&5
6347 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
6348
6349 # Check whether --enable-desktop or --disable-desktop was given.
6350 if test "${enable_desktop+set}" = set; then
6351 enableval="$enable_desktop"
6352 test "$enableval" != no && enableval=yes
6353 if test "$enableval" != "yes" ; then
6354 enable_desktop=$enableval
6355 else
6356 enable_desktop=$enableval
6357 fi
6358 else
6359 enableval=yes
6360 enable_desktop=$enableval
6361
6362 fi;
6363 echo "$as_me:6363: result: $enable_desktop" >&5
6364 echo "${ECHO_T}$enable_desktop" >&6
6365
6366 desktop_utils=
6367 if test "$enable_desktop" = yes ; then
6368 # Extract the first word of "desktop-file-install", so it can be a program name with args.
6369 set dummy desktop-file-install; ac_word=$2
6370 echo "$as_me:6370: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6372 if test "${ac_cv_prog_desktop_utils+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 if test -n "$desktop_utils"; then
6376 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
6377 else
6378 ac_save_IFS=$IFS; IFS=$ac_path_separator
6379 ac_dummy="$PATH"
6380 for ac_dir in $ac_dummy; do
6381 IFS=$ac_save_IFS
6382 test -z "$ac_dir" && ac_dir=.
6383 $as_executable_p "$ac_dir/$ac_word" || continue
6384 ac_cv_prog_desktop_utils="yes"
6385 echo "$as_me:6385: found $ac_dir/$ac_word" >&5
6386 break
6387 done
6388
6389 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
6390 fi
6391 fi
6392 desktop_utils=$ac_cv_prog_desktop_utils
6393 if test -n "$desktop_utils"; then
6394 echo "$as_me:6394: result: $desktop_utils" >&5
6395 echo "${ECHO_T}$desktop_utils" >&6
6396 else
6397 echo "$as_me:6397: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6399 fi
6400
6401 fi
6402
6403 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
6404
6405 if test -z "$desktop_utils"
6406 then
6407 echo "$as_me:6407: checking for requested desktop-category" >&5
6408 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
6409
6410 # Check whether --with-desktop-category or --without-desktop-category was given.
6411 if test "${with_desktop_category+set}" = set; then
6412 withval="$with_desktop_category"
6413 cf_desktop_want=$withval
6414 else
6415 cf_desktop_want=auto
6416 fi;
6417 echo "$as_me:6417: result: $cf_desktop_want" >&5
6418 echo "${ECHO_T}$cf_desktop_want" >&6
6419
6420 if test "$cf_desktop_want" = auto
6421 then
6422 rm -rf conftest*
6423 cf_desktop_also=
6424 for cf_desktop_dir in \
6425 /usr/share/app-install \
6426 /usr/share/applications
6427 do
6428 if test -d $cf_desktop_dir
6429 then
6430 find $cf_desktop_dir -name '*.desktop' | \
6431 while true
6432 do
6433 read cf_desktop_path
6434 test -z "$cf_desktop_path" && break
6435 cf_desktop_name=`basename $cf_desktop_path .desktop`
6436 case $cf_desktop_name in
6437 (xterm|*-xterm|*rxvt*|konsole|*-terminal)
6438 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6
6439
6440 echo "${as_me:-configure}:6440: testing inspect $cf_desktop_path ..." 1>&5
6441
6442 egrep '^Categories=' $cf_desktop_path | \
6443 tr ';' '\n' | \
6444 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1
6445 ;;
6446 esac
6447 done
6448 fi
6449 done
6450 if test -s conftest.1
6451 then
6452 cf_desktop_last=
6453 sort conftest.1 | \
6454 while true
6455 do
6456 read cf_desktop_this
6457 test -z "$cf_desktop_this" && break
6458 case $cf_desktop_this in
6459 (Qt*|GTK*|KDE*|GNOME*|*XFCE*|*Xfce*)
6460 ;;
6461 (System|TerminalEmulator|Utility|*)
6462 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo $cf_desktop_this >>conftest.2
6463 ;;
6464 esac
6465 cf_desktop_last=$cf_desktop_this
6466 done
6467 cf_desktop_want=`cat conftest.2 | tr '\n' ';'`
6468 fi
6469 if test -n "$cf_desktop_want"
6470 then
6471 if test "$cf_desktop_want" = auto
6472 then
6473 cf_desktop_want=
6474 else
6475 # do a sanity check on the semicolon-separated list, ignore on failure
6476 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'`
6477 test -z "$cf_desktop_test" && cf_desktop_want=
6478 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
6479 test -z "$cf_desktop_test" && cf_desktop_want=
6480 fi
6481 fi
6482 if test -z "$cf_desktop_want"
6483 then
6484 cf_desktop_want="`echo "System|TerminalEmulator|Utility|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
6485 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6
6486
6487 echo "${as_me:-configure}:6487: testing no usable value found for desktop category ..." 1>&5
6488
6489 fi
6490 fi
6491 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
6492 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6
6493
6494 echo "${as_me:-configure}:6494: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5
6495
6496 fi
6497
6498 echo "$as_me:6498: checking for install-permissions reference" >&5
6499 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
6500
6501 # Check whether --with-reference or --without-reference was given.
6502 if test "${with_reference+set}" = set; then
6503 withval="$with_reference"
6504 with_reference=$withval
6505 else
6506 with_reference=xterm
6507 fi;
6508 echo "$as_me:6508: result: $with_reference" >&5
6509 echo "${ECHO_T}$with_reference" >&6
6510
6511 with_full_paths=yes
6512
6513 echo "$as_me:6513: checking for PATH separator" >&5
6514 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
6515 case $cf_cv_system_name in
6516 (os2*) PATH_SEPARATOR=';' ;;
6517 (*) ${PATH_SEPARATOR:=':'} ;;
6518 esac
6519
6520 echo "$as_me:6520: result: $PATH_SEPARATOR" >&5
6521 echo "${ECHO_T}$PATH_SEPARATOR" >&6
6522
6523 test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
6524 for ac_prog in $XTERM_PATH $with_reference
6525 do
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527 set dummy $ac_prog; ac_word=$2
6528 echo "$as_me:6528: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6530 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 case $XTERM_PATH in
6534 [\\/]* | ?:[\\/]*)
6535 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
6536 ;;
6537 *)
6538 ac_save_IFS=$IFS; IFS=$ac_path_separator
6539 ac_dummy="$PATH"
6540 for ac_dir in $ac_dummy; do
6541 IFS=$ac_save_IFS
6542 test -z "$ac_dir" && ac_dir=.
6543 if $as_executable_p "$ac_dir/$ac_word"; then
6544 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
6545 echo "$as_me:6545: found $ac_dir/$ac_word" >&5
6546 break
6547 fi
6548 done
6549
6550 ;;
6551 esac
6552 fi
6553 XTERM_PATH=$ac_cv_path_XTERM_PATH
6554
6555 if test -n "$XTERM_PATH"; then
6556 echo "$as_me:6556: result: $XTERM_PATH" >&5
6557 echo "${ECHO_T}$XTERM_PATH" >&6
6558 else
6559 echo "$as_me:6559: result: no" >&5
6560 echo "${ECHO_T}no" >&6
6561 fi
6562
6563 test -n "$XTERM_PATH" && break
6564 done
6565 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
6566
6567 cf_path_prog=""
6568 cf_path_args=""
6569 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
6570 for cf_temp in $ac_cv_path_XTERM_PATH
6571 do
6572 if test -z "$cf_path_prog" ; then
6573 if test "$with_full_paths" = yes ; then
6574
6575 if test "x$prefix" != xNONE; then
6576 cf_path_syntax="$prefix"
6577 else
6578 cf_path_syntax="$ac_default_prefix"
6579 fi
6580
6581 case ".$cf_temp" in
6582 (.\$\(*\)*|.\'*\'*)
6583 ;;
6584 (..|./*|.\\*)
6585 ;;
6586 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6587 ;;
6588 (.\${*prefix}*|.\${*dir}*)
6589 eval cf_temp="$cf_temp"
6590 case ".$cf_temp" in
6591 (.NONE/*)
6592 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
6593 ;;
6594 esac
6595 ;;
6596 (.no|.NONE/*)
6597 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
6598 ;;
6599 (*)
6600 break
6601 ;;
6602 esac
6603
6604 cf_path_prog="$cf_temp"
6605 else
6606 cf_path_prog="`basename $cf_temp`"
6607 fi
6608 elif test -z "$cf_path_args" ; then
6609 cf_path_args="$cf_temp"
6610 else
6611 cf_path_args="$cf_path_args $cf_temp"
6612 fi
6613 done
6614 IFS="$cf_save_ifs"
6615
6616 if test -n "$cf_path_prog" ; then
6617
6618 echo "${as_me:-configure}:6618: testing defining path for ${cf_path_prog} ..." 1>&5
6619
6620 cat >>confdefs.h <<EOF
6621 #define XTERM_PATH_PATH "$cf_path_prog"
6622 EOF
6623
6624 test -n "$cf_path_args" &&
6625 cat >>confdefs.h <<EOF
6626 #define XTERM_PATH_ARGS "$cf_path_args"
6627 EOF
6628
6629 fi
6630
6631 # If any of --program-prefix, --program-suffix or --program-transform-name is
6632 # given, accept an option tell the makefile to create a symbolic link, e.g.,
6633 # to "xterm" on install.
6634 XTERM_SYMLINK=NONE
6635
6636 if test "$program_transform_name" != "'s,,,'" ; then
6637 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
6638 cf_name=`echo xterm |sed -e "$cf_name"`
6639 echo "$as_me:6639: checking for symbolic link to create to $cf_name" >&5
6640 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
6641
6642 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
6643 if test "${with_xterm_symlink+set}" = set; then
6644 withval="$with_xterm_symlink"
6645 with_symlink=$withval
6646 else
6647 with_symlink=xterm
6648 fi;
6649 echo "$as_me:6649: result: $with_symlink" >&5
6650 echo "${ECHO_T}$with_symlink" >&6
6651 test "$with_symlink" = yes && with_symlink=xterm
6652 test -n "$with_symlink" && \
6653 test "$with_symlink" != no && \
6654 test "$with_symlink" != $cf_name && \
6655 XTERM_SYMLINK="$with_symlink"
6656 fi
6657
6658 echo "$as_me:6658: checking if you want to disable openpty" >&5
6659 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
6660
6661 # Check whether --enable-openpty or --disable-openpty was given.
6662 if test "${enable_openpty+set}" = set; then
6663 enableval="$enable_openpty"
6664 test "$enableval" != no && enableval=yes
6665 if test "$enableval" != "yes" ; then
6666 disable_openpty=yes
6667 else
6668 disable_openpty=no
6669 fi
6670 else
6671 enableval=yes
6672 disable_openpty=no
6673
6674 fi;
6675 echo "$as_me:6675: result: $disable_openpty" >&5
6676 echo "${ECHO_T}$disable_openpty" >&6
6677
6678 echo "$as_me:6678: checking if you want to disable setuid" >&5
6679 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
6680
6681 # Check whether --enable-setuid or --disable-setuid was given.
6682 if test "${enable_setuid+set}" = set; then
6683 enableval="$enable_setuid"
6684 test "$enableval" != no && enableval=yes
6685 if test "$enableval" != "yes" ; then
6686 disable_setuid=yes
6687 else
6688 disable_setuid=no
6689 fi
6690 else
6691 enableval=yes
6692 disable_setuid=no
6693
6694 fi;
6695 echo "$as_me:6695: result: $disable_setuid" >&5
6696 echo "${ECHO_T}$disable_setuid" >&6
6697
6698 echo "$as_me:6698: checking if you want to disable setgid" >&5
6699 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
6700
6701 # Check whether --enable-setgid or --disable-setgid was given.
6702 if test "${enable_setgid+set}" = set; then
6703 enableval="$enable_setgid"
6704 test "$enableval" != no && enableval=yes
6705 if test "$enableval" != "yes" ; then
6706 disable_setgid=yes
6707 else
6708 disable_setgid=no
6709 fi
6710 else
6711 enableval=yes
6712 disable_setgid=no
6713
6714 fi;
6715 echo "$as_me:6715: result: $disable_setgid" >&5
6716 echo "${ECHO_T}$disable_setgid" >&6
6717
6718 echo "$as_me:6718: checking if you want to run xterm setuid to a given user" >&5
6719 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
6720
6721 # Check whether --with-setuid or --without-setuid was given.
6722 if test "${with_setuid+set}" = set; then
6723 withval="$with_setuid"
6724 use_given_setuid=$withval
6725 else
6726 use_given_setuid=no
6727 fi;
6728 echo "$as_me:6728: result: $use_given_setuid" >&5
6729 echo "${ECHO_T}$use_given_setuid" >&6
6730
6731 if test "$use_given_setuid" != no ; then
6732 if test "$use_given_setuid" = yes ; then
6733 cf_cv_given_setuid=root
6734 else
6735 cf_cv_given_setuid=$use_given_setuid
6736 fi
6737 # inherit SINSTALL_OPTS from environment to allow packager to customize it.
6738 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
6739 fi
6740
6741 echo "$as_me:6741: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
6742 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
6743
6744 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
6745 if test "${with_utmp_setgid+set}" = set; then
6746 withval="$with_utmp_setgid"
6747 use_utmp_setgid=$withval
6748 else
6749 use_utmp_setgid=no
6750 fi;
6751 echo "$as_me:6751: result: $use_utmp_setgid" >&5
6752 echo "${ECHO_T}$use_utmp_setgid" >&6
6753
6754 if test "$use_utmp_setgid" != no ; then
6755 if test "$use_utmp_setgid" = yes ; then
6756
6757 if test $cf_cv_have_utmp != no ; then
6758 echo "$as_me:6758: checking for utmp/utmpx group" >&5
6759 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
6760 if test "${cf_cv_utmp_group+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763
6764 for cf_utmp_path in /var/adm /var/run
6765 do
6766 for cf_utmp_file in utmpx utmp
6767 do
6768 if test -f $cf_utmp_path/$cf_utmp_file
6769 then
6770 cf_cv_utmp_group=root
6771
6772 cf_option="-l -L"
6773
6774 # Expect listing to have fields like this:
6775 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname
6776 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
6777 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
6778 if test -z "$cf_rest" ; then
6779 cf_option="$cf_option -g"
6780 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
6781 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
6782 fi
6783 rm -f conftest
6784
6785 # If we have a pathname, and the date fields look right, assume we've
6786 # captured the group as well.
6787 if test -n "$cf_rest" ; then
6788 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
6789 if test -z "$cf_test" ; then
6790 cf_cv_utmp_group=$cf_grp;
6791 fi
6792 fi
6793 break
6794 fi
6795 done
6796 test -n "$cf_cv_utmp_group" && break
6797 done
6798
6799 fi
6800 echo "$as_me:6800: result: $cf_cv_utmp_group" >&5
6801 echo "${ECHO_T}$cf_cv_utmp_group" >&6
6802 else
6803 { { echo "$as_me:6803: error: cannot find utmp group" >&5
6804 echo "$as_me: error: cannot find utmp group" >&2;}
6805 { (exit 1); exit 1; }; }
6806 fi
6807
6808 else
6809 cf_cv_utmp_group=$use_utmp_setgid
6810 fi
6811 if test "$cf_cv_posix_saved_ids" != yes ; then
6812 { { echo "$as_me:6812: error: Your system does not support POSIX saved-ids" >&5
6813 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
6814 { (exit 1); exit 1; }; }
6815 fi
6816
6817 cat >>confdefs.h <<\EOF
6818 #define USE_UTMP_SETGID 1
6819 EOF
6820
6821 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
6822 fi
6823
6824 echo "$as_me:6824: checking if you want to link with utempter" >&5
6825 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
6826
6827 # Check whether --with-utempter or --without-utempter was given.
6828 if test "${with_utempter+set}" = set; then
6829 withval="$with_utempter"
6830 use_utempter=$withval
6831 else
6832 use_utempter=no
6833 fi;
6834 echo "$as_me:6834: result: $use_utempter" >&5
6835 echo "${ECHO_T}$use_utempter" >&6
6836
6837 if test "$use_utempter" = yes ; then
6838
6839 echo "$as_me:6839: checking if we can link with utempter library" >&5
6840 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
6841 if test "${cf_cv_have_utempter+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844
6845 cf_save_LIBS="$LIBS"
6846
6847 cf_add_libs="-lutempter"
6848 # Filter out duplicates - this happens with badly-designed ".pc" files...
6849 for cf_add_1lib in $LIBS
6850 do
6851 for cf_add_2lib in $cf_add_libs
6852 do
6853 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6854 then
6855 cf_add_1lib=
6856 break
6857 fi
6858 done
6859 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6860 done
6861 LIBS="$cf_add_libs"
6862
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line 6864 "configure"
6865 #include "confdefs.h"
6866
6867 #include <utempter.h>
6868
6869 int
6870 main ()
6871 {
6872
6873 addToUtmp("/dev/tty", 0, 1);
6874 removeFromUtmp();
6875
6876 ;
6877 return 0;
6878 }
6879 _ACEOF
6880 rm -f conftest.$ac_objext conftest$ac_exeext
6881 if { (eval echo "$as_me:6881: \"$ac_link\"") >&5
6882 (eval $ac_link) 2>&5
6883 ac_status=$?
6884 echo "$as_me:6884: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -s conftest$ac_exeext'
6887 { (eval echo "$as_me:6887: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:6890: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892
6893 cf_cv_have_utempter=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897
6898 cf_cv_have_utempter=no
6899 fi
6900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6901 LIBS="$cf_save_LIBS"
6902
6903 fi
6904 echo "$as_me:6904: result: $cf_cv_have_utempter" >&5
6905 echo "${ECHO_T}$cf_cv_have_utempter" >&6
6906 if test "$cf_cv_have_utempter" = yes ; then
6907
6908 cat >>confdefs.h <<\EOF
6909 #define USE_UTEMPTER 1
6910 EOF
6911
6912 cf_add_libs="-lutempter"
6913 # Filter out duplicates - this happens with badly-designed ".pc" files...
6914 for cf_add_1lib in $LIBS
6915 do
6916 for cf_add_2lib in $cf_add_libs
6917 do
6918 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6919 then
6920 cf_add_1lib=
6921 break
6922 fi
6923 done
6924 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6925 done
6926 LIBS="$cf_add_libs"
6927
6928 fi
6929
6930 test "$cf_cv_have_utempter" != yes && use_utempter=no
6931 else
6932 use_utempter=no
6933 fi
6934
6935 # Some configurations permit (or require) either setuid or setgid mode.
6936 # Let the user decide.
6937 if test "$use_utempter" = yes ; then
6938 if test "${enable_setuid+set}" != set ; then
6939 disable_setuid=yes
6940 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
6941
6942 echo "${as_me:-configure}:6942: testing No --disable-setuid option given, force to yes ..." 1>&5
6943
6944 fi
6945 fi
6946
6947 ### checks for external data
6948
6949 echo "$as_me:6949: checking if external errno is declared" >&5
6950 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
6951 if test "${cf_cv_dcl_errno+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954
6955 cat >conftest.$ac_ext <<_ACEOF
6956 #line 6956 "configure"
6957 #include "confdefs.h"
6958
6959 #ifdef HAVE_STDLIB_H
6960 #include <stdlib.h>
6961 #endif
6962 #include <stdio.h>
6963 #include <sys/types.h>
6964 #include <errno.h>
6965 int
6966 main ()
6967 {
6968 int x = (int) errno
6969 ;
6970 return 0;
6971 }
6972 _ACEOF
6973 rm -f conftest.$ac_objext
6974 if { (eval echo "$as_me:6974: \"$ac_compile\"") >&5
6975 (eval $ac_compile) 2>&5
6976 ac_status=$?
6977 echo "$as_me:6977: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -s conftest.$ac_objext'
6980 { (eval echo "$as_me:6980: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:6983: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 cf_cv_dcl_errno=yes
6986 else
6987 echo "$as_me: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6989 cf_cv_dcl_errno=no
6990 fi
6991 rm -f conftest.$ac_objext conftest.$ac_ext
6992
6993 fi
6994 echo "$as_me:6994: result: $cf_cv_dcl_errno" >&5
6995 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
6996
6997 if test "$cf_cv_dcl_errno" = no ; then
6998
6999 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7000
7001 cat >>confdefs.h <<EOF
7002 #define $cf_result 1
7003 EOF
7004
7005 fi
7006
7007 # It's possible (for near-UNIX clones) that the data doesn't exist
7008
7009 echo "$as_me:7009: checking if external errno exists" >&5
7010 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
7011 if test "${cf_cv_have_errno+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014
7015 cat >conftest.$ac_ext <<_ACEOF
7016 #line 7016 "configure"
7017 #include "confdefs.h"
7018
7019 #undef errno
7020 extern int errno;
7021
7022 int
7023 main ()
7024 {
7025 errno = 2
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:7031: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>&5
7033 ac_status=$?
7034 echo "$as_me:7034: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -s conftest$ac_exeext'
7037 { (eval echo "$as_me:7037: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 cf_cv_have_errno=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7046 cf_cv_have_errno=no
7047 fi
7048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7049
7050 fi
7051 echo "$as_me:7051: result: $cf_cv_have_errno" >&5
7052 echo "${ECHO_T}$cf_cv_have_errno" >&6
7053
7054 if test "$cf_cv_have_errno" = yes ; then
7055
7056 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7057
7058 cat >>confdefs.h <<EOF
7059 #define $cf_result 1
7060 EOF
7061
7062 fi
7063
7064 echo "$as_me:7064: checking for explicit tty group name" >&5
7065 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
7066
7067 # Check whether --with-tty-group or --without-tty-group was given.
7068 if test "${with_tty_group+set}" = set; then
7069 withval="$with_tty_group"
7070 cf_tty_group=$withval
7071 else
7072 cf_tty_group=auto...
7073 fi;
7074 test -z "$cf_tty_group" && cf_tty_group=auto...
7075 test "$cf_tty_group" = yes && cf_tty_group=auto...
7076 echo "$as_me:7076: result: $cf_tty_group" >&5
7077 echo "${ECHO_T}$cf_tty_group" >&6
7078
7079 if test "$cf_tty_group" = "auto..." ; then
7080 echo "$as_me:7080: checking for tty group name" >&5
7081 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
7082 if test "${cf_cv_tty_group_name+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085
7086 # If we are configuring as root, it is hard to get a clue about the tty group.
7087 # But we'll guess based on how our connection is set up - assuming it is done
7088 # properly.
7089
7090 cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
7091 # )vi
7092 if test "$cf_uid" != 0 ; then
7093 cf_cv_tty_group_name=
7094 cf_tty_name=`tty`
7095 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
7096 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
7097 if test -c "$cf_tty_name"
7098 then
7099 cf_option="-l -L"
7100
7101 # Expect listing to have fields like this:
7102 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname
7103 ls $cf_option $cf_tty_name >conftest.out
7104 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
7105 if test -z "$cf_rest" ; then
7106 cf_option="$cf_option -g"
7107 ls $cf_option $cf_tty_name >conftest.out
7108 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
7109 fi
7110 rm -f conftest.out
7111 cf_cv_tty_group_name=$cf_grp
7112 fi
7113 fi
7114
7115 # If we cannot deduce the tty group, fall back on hardcoded cases
7116
7117 if test -z "$cf_cv_tty_group_name"
7118 then
7119 case $host_os in
7120 (osf*)
7121 cf_cv_tty_group_name="terminal"
7122 ;;
7123 (*)
7124 cf_cv_tty_group_name="unknown"
7125 if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
7126 cf_cv_tty_group_name="tty"
7127 fi
7128 ;;
7129 esac
7130 fi
7131
7132 fi
7133 echo "$as_me:7133: result: $cf_cv_tty_group_name" >&5
7134 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
7135 cf_tty_group="$cf_cv_tty_group_name"
7136 else
7137 # if configure option, always do this
7138
7139 cat >>confdefs.h <<\EOF
7140 #define USE_TTY_GROUP 1
7141 EOF
7142
7143 fi
7144
7145 cat >>confdefs.h <<EOF
7146 #define TTY_GROUP_NAME "$cf_tty_group"
7147 EOF
7148
7149 # This is only a double-check that the group-name we obtained above really
7150 # does apply to the device. We cannot perform this test if we are in batch
7151 # mode, or if we are cross-compiling.
7152
7153 echo "$as_me:7153: checking if we may use the $cf_tty_group group" >&5
7154 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
7155 if test "${cf_cv_tty_group+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158
7159 cf_tty_name=`tty`
7160 if test "$cf_tty_name" != "not a tty"
7161 then
7162 if test "$cross_compiling" = yes; then
7163 cf_cv_tty_group=unknown
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 #line 7166 "configure"
7167 #include "confdefs.h"
7168
7169 #include <unistd.h>
7170 #include <sys/types.h>
7171 #include <sys/stat.h>
7172 #include <grp.h>
7173 int main()
7174 {
7175 struct stat sb;
7176 struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
7177 char *name = ttyname(0);
7178
7179 endgrent();
7180 if (ttygrp != 0
7181 && name != 0
7182 && stat(name, &sb) == 0
7183 && sb.st_gid != getgid()
7184 && sb.st_gid == ttygrp->gr_gid) {
7185 ${cf_cv_main_return:-return} (0);
7186 }
7187 ${cf_cv_main_return:-return} (1);
7188 }
7189
7190 _ACEOF
7191 rm -f conftest$ac_exeext
7192 if { (eval echo "$as_me:7192: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>&5
7194 ac_status=$?
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7197 { (eval echo "$as_me:7197: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:7200: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 cf_cv_tty_group=yes
7203 else
7204 echo "$as_me: program exited with status $ac_status" >&5
7205 echo "$as_me: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7207 cf_cv_tty_group=no
7208 fi
7209 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7210 fi
7211 elif test "$cross_compiling" = yes; then
7212 cf_cv_tty_group=unknown
7213 else
7214 cf_cv_tty_group=yes
7215 fi
7216
7217 fi
7218 echo "$as_me:7218: result: $cf_cv_tty_group" >&5
7219 echo "${ECHO_T}$cf_cv_tty_group" >&6
7220
7221 if test $cf_cv_tty_group = no ; then
7222 { echo "$as_me:7222: WARNING: Cannot use $cf_tty_group group" >&5
7223 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
7224 else
7225 cat >>confdefs.h <<\EOF
7226 #define USE_TTY_GROUP 1
7227 EOF
7228
7229 fi
7230
7231 ### checks for system services and user specified options
7232
7233 echo "$as_me:7233: checking for sys/wait.h that is POSIX.1 compatible" >&5
7234 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7235 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line 7239 "configure"
7240 #include "confdefs.h"
7241 #include <sys/types.h>
7242 #include <sys/wait.h>
7243 #ifndef WEXITSTATUS
7244 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7245 #endif
7246 #ifndef WIFEXITED
7247 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7248 #endif
7249
7250 int
7251 main ()
7252 {
7253 int s;
7254 wait (&s);
7255 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7256 ;
7257 return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext
7261 if { (eval echo "$as_me:7261: \"$ac_compile\"") >&5
7262 (eval $ac_compile) 2>&5
7263 ac_status=$?
7264 echo "$as_me:7264: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -s conftest.$ac_objext'
7267 { (eval echo "$as_me:7267: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:7270: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_cv_header_sys_wait_h=yes
7273 else
7274 echo "$as_me: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 ac_cv_header_sys_wait_h=no
7277 fi
7278 rm -f conftest.$ac_objext conftest.$ac_ext
7279 fi
7280 echo "$as_me:7280: result: $ac_cv_header_sys_wait_h" >&5
7281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7282 if test $ac_cv_header_sys_wait_h = yes; then
7283
7284 cat >>confdefs.h <<\EOF
7285 #define HAVE_SYS_WAIT_H 1
7286 EOF
7287
7288 fi
7289
7290 echo "$as_me:7290: checking for POSIX wait functions" >&5
7291 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
7292 if test "${cf_cv_posix_wait+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295
7296 cat >conftest.$ac_ext <<_ACEOF
7297 #line 7297 "configure"
7298 #include "confdefs.h"
7299
7300 #include <stdlib.h>
7301 #include <stdio.h>
7302 #include <sys/types.h>
7303 #ifdef HAVE_SYS_WAIT_H
7304 #include <sys/wait.h>
7305 #endif
7306
7307 int
7308 main ()
7309 {
7310
7311 int stat_loc;
7312 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
7313 pid_t pid2 = wait(&stat_loc);
7314
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (eval echo "$as_me:7320: \"$ac_link\"") >&5
7321 (eval $ac_link) 2>&5
7322 ac_status=$?
7323 echo "$as_me:7323: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -s conftest$ac_exeext'
7326 { (eval echo "$as_me:7326: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:7329: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 cf_cv_posix_wait=yes
7332 else
7333 echo "$as_me: failed program was:" >&5
7334 cat conftest.$ac_ext >&5
7335 cf_cv_posix_wait=no
7336 fi
7337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7338
7339 fi
7340 echo "$as_me:7340: result: $cf_cv_posix_wait" >&5
7341 echo "${ECHO_T}$cf_cv_posix_wait" >&6
7342 test "$cf_cv_posix_wait" = yes &&
7343 cat >>confdefs.h <<\EOF
7344 #define USE_POSIX_WAIT 1
7345 EOF
7346
7347 echo "$as_me:7347: checking if external sys_nerr is declared" >&5
7348 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
7349 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line 7354 "configure"
7355 #include "confdefs.h"
7356
7357 #ifdef HAVE_STDLIB_H
7358 #include <stdlib.h>
7359 #endif
7360 #include <stdio.h>
7361 #include <sys/types.h>
7362 #include <errno.h>
7363 int
7364 main ()
7365 {
7366 int x = (int) sys_nerr
7367 ;
7368 return 0;
7369 }
7370 _ACEOF
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:7372: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>&5
7374 ac_status=$?
7375 echo "$as_me:7375: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -s conftest.$ac_objext'
7378 { (eval echo "$as_me:7378: \"$ac_try\"") >&5
7379 (eval $ac_try) 2>&5
7380 ac_status=$?
7381 echo "$as_me:7381: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7383 cf_cv_dcl_sys_nerr=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7387 cf_cv_dcl_sys_nerr=no
7388 fi
7389 rm -f conftest.$ac_objext conftest.$ac_ext
7390
7391 fi
7392 echo "$as_me:7392: result: $cf_cv_dcl_sys_nerr" >&5
7393 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
7394
7395 if test "$cf_cv_dcl_sys_nerr" = no ; then
7396
7397 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7398
7399 cat >>confdefs.h <<EOF
7400 #define $cf_result 1
7401 EOF
7402
7403 fi
7404
7405 # It's possible (for near-UNIX clones) that the data doesn't exist
7406
7407 echo "$as_me:7407: checking if external sys_nerr exists" >&5
7408 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
7409 if test "${cf_cv_have_sys_nerr+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412
7413 cat >conftest.$ac_ext <<_ACEOF
7414 #line 7414 "configure"
7415 #include "confdefs.h"
7416
7417 #undef sys_nerr
7418 extern int sys_nerr;
7419
7420 int
7421 main ()
7422 {
7423 sys_nerr = 2
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (eval echo "$as_me:7429: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>&5
7431 ac_status=$?
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -s conftest$ac_exeext'
7435 { (eval echo "$as_me:7435: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:7438: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 cf_cv_have_sys_nerr=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 cf_cv_have_sys_nerr=no
7445 fi
7446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7447
7448 fi
7449 echo "$as_me:7449: result: $cf_cv_have_sys_nerr" >&5
7450 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
7451
7452 if test "$cf_cv_have_sys_nerr" = yes ; then
7453
7454 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7455
7456 cat >>confdefs.h <<EOF
7457 #define $cf_result 1
7458 EOF
7459
7460 fi
7461
7462 echo "$as_me:7462: checking if external sys_errlist is declared" >&5
7463 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
7464 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line 7469 "configure"
7470 #include "confdefs.h"
7471
7472 #ifdef HAVE_STDLIB_H
7473 #include <stdlib.h>
7474 #endif
7475 #include <stdio.h>
7476 #include <sys/types.h>
7477 #include <errno.h>
7478 int
7479 main ()
7480 {
7481 int x = (int) sys_errlist
7482 ;
7483 return 0;
7484 }
7485 _ACEOF
7486 rm -f conftest.$ac_objext
7487 if { (eval echo "$as_me:7487: \"$ac_compile\"") >&5
7488 (eval $ac_compile) 2>&5
7489 ac_status=$?
7490 echo "$as_me:7490: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -s conftest.$ac_objext'
7493 { (eval echo "$as_me:7493: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:7496: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498 cf_cv_dcl_sys_errlist=yes
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7502 cf_cv_dcl_sys_errlist=no
7503 fi
7504 rm -f conftest.$ac_objext conftest.$ac_ext
7505
7506 fi
7507 echo "$as_me:7507: result: $cf_cv_dcl_sys_errlist" >&5
7508 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
7509
7510 if test "$cf_cv_dcl_sys_errlist" = no ; then
7511
7512 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7513
7514 cat >>confdefs.h <<EOF
7515 #define $cf_result 1
7516 EOF
7517
7518 fi
7519
7520 # It's possible (for near-UNIX clones) that the data doesn't exist
7521
7522 echo "$as_me:7522: checking if external sys_errlist exists" >&5
7523 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
7524 if test "${cf_cv_have_sys_errlist+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527
7528 cat >conftest.$ac_ext <<_ACEOF
7529 #line 7529 "configure"
7530 #include "confdefs.h"
7531
7532 #undef sys_errlist
7533 extern int sys_errlist;
7534
7535 int
7536 main ()
7537 {
7538 sys_errlist = 2
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (eval echo "$as_me:7544: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>&5
7546 ac_status=$?
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:7550: \"$ac_try\"") >&5
7551 (eval $ac_try) 2>&5
7552 ac_status=$?
7553 echo "$as_me:7553: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 cf_cv_have_sys_errlist=yes
7556 else
7557 echo "$as_me: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 cf_cv_have_sys_errlist=no
7560 fi
7561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7562
7563 fi
7564 echo "$as_me:7564: result: $cf_cv_have_sys_errlist" >&5
7565 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
7566
7567 if test "$cf_cv_have_sys_errlist" = yes ; then
7568
7569 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7570
7571 cat >>confdefs.h <<EOF
7572 #define $cf_result 1
7573 EOF
7574
7575 fi
7576
7577 for ac_header in \
7578 termios.h \
7579 stdlib.h \
7580 X11/Intrinsic.h \
7581
7582 do
7583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7584 echo "$as_me:7584: checking for $ac_header" >&5
7585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line 7590 "configure"
7591 #include "confdefs.h"
7592 #include <$ac_header>
7593 _ACEOF
7594 if { (eval echo "$as_me:7594: \"$ac_cpp conftest.$ac_ext\"") >&5
7595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7596 ac_status=$?
7597 egrep -v '^ *\+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 (exit $ac_status); } >/dev/null; then
7602 if test -s conftest.err; then
7603 ac_cpp_err=$ac_c_preproc_warn_flag
7604 else
7605 ac_cpp_err=
7606 fi
7607 else
7608 ac_cpp_err=yes
7609 fi
7610 if test -z "$ac_cpp_err"; then
7611 eval "$as_ac_Header=yes"
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7615 eval "$as_ac_Header=no"
7616 fi
7617 rm -f conftest.err conftest.$ac_ext
7618 fi
7619 echo "$as_me:7619: result: `eval echo '${'$as_ac_Header'}'`" >&5
7620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7622 cat >>confdefs.h <<EOF
7623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 EOF
7625
7626 fi
7627 done
7628
7629 echo "$as_me:7629: checking if we should define SYSV" >&5
7630 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
7631 if test "${cf_cv_sysv+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634
7635 cat >conftest.$ac_ext <<_ACEOF
7636 #line 7636 "configure"
7637 #include "confdefs.h"
7638
7639 #undef SYSV
7640 #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
7641 #ifdef HAVE_STDLIB_H
7642 #include <stdlib.h> /* look for wchar_t */
7643 #endif
7644 #ifdef HAVE_X11_INTRINSIC_H
7645 #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
7646 #endif
7647 #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */
7648 #include <termios.h>
7649 #define STRUCT_TERMIOS struct termios
7650 #else
7651 #define STRUCT_TERMIOS struct termio
7652 #endif
7653 #include <curses.h>
7654 #include <term.h> /* eliminate most BSD hacks */
7655 #include <errno.h> /* declare sys_errlist on older systems */
7656 #include <sys/termio.h> /* eliminate most of the remaining ones */
7657
7658 int
7659 main ()
7660 {
7661
7662 static STRUCT_TERMIOS d_tio;
7663 d_tio.c_cc[VINTR] = 0;
7664 d_tio.c_cc[VQUIT] = 0;
7665 d_tio.c_cc[VERASE] = 0;
7666 d_tio.c_cc[VKILL] = 0;
7667 d_tio.c_cc[VEOF] = 0;
7668 d_tio.c_cc[VEOL] = 0;
7669 d_tio.c_cc[VMIN] = 0;
7670 d_tio.c_cc[VTIME] = 0;
7671 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
7672 sys_errlist[0] = ""; /* Cygwin mis-declares this */
7673 #endif
7674
7675 ;
7676 return 0;
7677 }
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>&5
7682 ac_status=$?
7683 echo "$as_me:7683: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:7686: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 cf_cv_sysv=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 cf_cv_sysv=no
7696 fi
7697 rm -f conftest.$ac_objext conftest.$ac_ext
7698
7699 fi
7700 echo "$as_me:7700: result: $cf_cv_sysv" >&5
7701 echo "${ECHO_T}$cf_cv_sysv" >&6
7702 test "$cf_cv_sysv" = yes &&
7703 cat >>confdefs.h <<\EOF
7704 #define SYSV 1
7705 EOF
7706
7707 echo "$as_me:7707: checking for elf_begin in -lelf" >&5
7708 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7709 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-lelf $LIBS"
7714 cat >conftest.$ac_ext <<_ACEOF
7715 #line 7715 "configure"
7716 #include "confdefs.h"
7717
7718 /* Override any gcc2 internal prototype to avoid an error. */
7719 #ifdef __cplusplus
7720 extern "C"
7721 #endif
7722 /* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7724 char elf_begin ();
7725 int
7726 main ()
7727 {
7728 elf_begin ();
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 rm -f conftest.$ac_objext conftest$ac_exeext
7734 if { (eval echo "$as_me:7734: \"$ac_link\"") >&5
7735 (eval $ac_link) 2>&5
7736 ac_status=$?
7737 echo "$as_me:7737: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -s conftest$ac_exeext'
7740 { (eval echo "$as_me:7740: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:7743: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_cv_lib_elf_elf_begin=yes
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7749 ac_cv_lib_elf_elf_begin=no
7750 fi
7751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7752 LIBS=$ac_check_lib_save_LIBS
7753 fi
7754 echo "$as_me:7754: result: $ac_cv_lib_elf_elf_begin" >&5
7755 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7756 if test $ac_cv_lib_elf_elf_begin = yes; then
7757
7758 echo "$as_me:7758: checking if this is an SVR4 system" >&5
7759 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
7760 if test "${cf_cv_svr4+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763
7764 cat >conftest.$ac_ext <<_ACEOF
7765 #line 7765 "configure"
7766 #include "confdefs.h"
7767
7768 #if defined(__CYGWIN__)
7769 make an error
7770 #endif
7771 #include <elf.h>
7772 #include <sys/termio.h>
7773
7774 int
7775 main ()
7776 {
7777
7778 static struct termio d_tio;
7779 d_tio.c_cc[VINTR] = 0;
7780 d_tio.c_cc[VQUIT] = 0;
7781 d_tio.c_cc[VERASE] = 0;
7782 d_tio.c_cc[VKILL] = 0;
7783 d_tio.c_cc[VEOF] = 0;
7784 d_tio.c_cc[VEOL] = 0;
7785 d_tio.c_cc[VMIN] = 0;
7786 d_tio.c_cc[VTIME] = 0;
7787 d_tio.c_cc[VLNEXT] = 0;
7788
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (eval echo "$as_me:7794: \"$ac_compile\"") >&5
7795 (eval $ac_compile) 2>&5
7796 ac_status=$?
7797 echo "$as_me:7797: \$? = $ac_status" >&5
7798 (exit $ac_status); } &&
7799 { ac_try='test -s conftest.$ac_objext'
7800 { (eval echo "$as_me:7800: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:7803: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 cf_cv_svr4=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7809 cf_cv_svr4=no
7810 fi
7811 rm -f conftest.$ac_objext conftest.$ac_ext
7812
7813 fi
7814 echo "$as_me:7814: result: $cf_cv_svr4" >&5
7815 echo "${ECHO_T}$cf_cv_svr4" >&6
7816
7817 fi
7818
7819 test "$cf_cv_svr4" = yes &&
7820 cat >>confdefs.h <<\EOF
7821 #define SVR4 1
7822 EOF
7823
7824 echo "$as_me:7824: checking for X" >&5
7825 echo $ECHO_N "checking for X... $ECHO_C" >&6
7826
7827 # Check whether --with-x or --without-x was given.
7828 if test "${with_x+set}" = set; then
7829 withval="$with_x"
7830
7831 fi;
7832 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7833 if test "x$with_x" = xno; then
7834 # The user explicitly disabled X.
7835 have_x=disabled
7836 else
7837 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7838 # Both variables are already set.
7839 have_x=yes
7840 else
7841 if test "${ac_cv_have_x+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 # One or both of the vars are not set, and there is no cached value.
7845 ac_x_includes=no ac_x_libraries=no
7846 rm -fr conftest.dir
7847 if mkdir conftest.dir; then
7848 cd conftest.dir
7849 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7850 cat >Imakefile <<'EOF'
7851 acfindx:
7852 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7853 EOF
7854 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7856 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7857 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7858 for ac_extension in a so sl dylib dll; do
7859 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7860 test -f $ac_im_libdir/libX11.$ac_extension; then
7861 ac_im_usrlibdir=$ac_im_libdir; break
7862 fi
7863 done
7864 # Screen out bogus values from the imake configuration. They are
7865 # bogus both because they are the default anyway, and because
7866 # using them would break gcc on systems where it needs fixed includes.
7867 case $ac_im_incroot in
7868 /usr/include) ;;
7869 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7870 esac
7871 case $ac_im_usrlibdir in
7872 /usr/lib | /lib) ;;
7873 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7874 esac
7875 fi
7876 cd ..
7877 rm -fr conftest.dir
7878 fi
7879
7880 # Standard set of common directories for X headers.
7881 # Check X11 before X11Rn because it is often a symlink to the current release.
7882 ac_x_header_dirs='
7883 /usr/X11/include
7884 /usr/X11R6/include
7885 /usr/X11R5/include
7886 /usr/X11R4/include
7887
7888 /usr/include/X11
7889 /usr/include/X11R6
7890 /usr/include/X11R5
7891 /usr/include/X11R4
7892
7893 /usr/local/X11/include
7894 /usr/local/X11R6/include
7895 /usr/local/X11R5/include
7896 /usr/local/X11R4/include
7897
7898 /usr/local/include/X11
7899 /usr/local/include/X11R6
7900 /usr/local/include/X11R5
7901 /usr/local/include/X11R4
7902
7903 /usr/X386/include
7904 /usr/x386/include
7905 /usr/XFree86/include/X11
7906
7907 /usr/include
7908 /usr/local/include
7909 /usr/unsupported/include
7910 /usr/athena/include
7911 /usr/local/x11r5/include
7912 /usr/lpp/Xamples/include
7913
7914 /usr/openwin/include
7915 /usr/openwin/share/include'
7916
7917 if test "$ac_x_includes" = no; then
7918 # Guess where to find include files, by looking for Intrinsic.h.
7919 # First, try using that file with no special directory specified.
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line 7921 "configure"
7922 #include "confdefs.h"
7923 #include <X11/Intrinsic.h>
7924 _ACEOF
7925 if { (eval echo "$as_me:7925: \"$ac_cpp conftest.$ac_ext\"") >&5
7926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7927 ac_status=$?
7928 egrep -v '^ *\+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 (exit $ac_status); } >/dev/null; then
7933 if test -s conftest.err; then
7934 ac_cpp_err=$ac_c_preproc_warn_flag
7935 else
7936 ac_cpp_err=
7937 fi
7938 else
7939 ac_cpp_err=yes
7940 fi
7941 if test -z "$ac_cpp_err"; then
7942 # We can compile using X headers with no special include directory.
7943 ac_x_includes=
7944 else
7945 echo "$as_me: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7947 for ac_dir in $ac_x_header_dirs; do
7948 if test -r "$ac_dir/X11/Intrinsic.h"; then
7949 ac_x_includes=$ac_dir
7950 break
7951 fi
7952 done
7953 fi
7954 rm -f conftest.err conftest.$ac_ext
7955 fi # $ac_x_includes = no
7956
7957 if test "$ac_x_libraries" = no; then
7958 # Check for the libraries.
7959 # See if we find them without any special options.
7960 # Don't add to $LIBS permanently.
7961 ac_save_LIBS=$LIBS
7962 LIBS="-lXt $LIBS"
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line 7964 "configure"
7965 #include "confdefs.h"
7966 #include <X11/Intrinsic.h>
7967 int
7968 main ()
7969 {
7970 XtMalloc (0)
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:7976: \"$ac_link\"") >&5
7977 (eval $ac_link) 2>&5
7978 ac_status=$?
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:7982: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:7985: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 LIBS=$ac_save_LIBS
7988 # We can link X programs with no special library path.
7989 ac_x_libraries=
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 cat conftest.$ac_ext >&5
7993 LIBS=$ac_save_LIBS
7994 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7995 do
7996 # Don't even attempt the hair of trying to link an X program!
7997 for ac_extension in a so sl dylib dll; do
7998 if test -r $ac_dir/libXt.$ac_extension; then
7999 ac_x_libraries=$ac_dir
8000 break 2
8001 fi
8002 done
8003 done
8004 fi
8005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8006 fi # $ac_x_libraries = no
8007
8008 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8009 # Didn't find X anywhere. Cache the known absence of X.
8010 ac_cv_have_x="have_x=no"
8011 else
8012 # Record where we found X for the cache.
8013 ac_cv_have_x="have_x=yes \
8014 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8015 fi
8016 fi
8017
8018 fi
8019 eval "$ac_cv_have_x"
8020 fi # $with_x != no
8021
8022 if test "$have_x" != yes; then
8023 echo "$as_me:8023: result: $have_x" >&5
8024 echo "${ECHO_T}$have_x" >&6
8025 no_x=yes
8026 else
8027 # If each of the values was on the command line, it overrides each guess.
8028 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8029 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8030 # Update the cache value to reflect the command line values.
8031 ac_cv_have_x="have_x=yes \
8032 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8033 echo "$as_me:8033: result: libraries $x_libraries, headers $x_includes" >&5
8034 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8035 fi
8036
8037 if test "$no_x" = yes; then
8038 # Not all programs may use this symbol, but it does not hurt to define it.
8039
8040 cat >>confdefs.h <<\EOF
8041 #define X_DISPLAY_MISSING 1
8042 EOF
8043
8044 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8045 else
8046 if test -n "$x_includes"; then
8047 X_CFLAGS="$X_CFLAGS -I$x_includes"
8048 fi
8049
8050 # It would also be nice to do this for all -L options, not just this one.
8051 if test -n "$x_libraries"; then
8052 X_LIBS="$X_LIBS -L$x_libraries"
8053 # For Solaris; some versions of Sun CC require a space after -R and
8054 # others require no space. Words are not sufficient . . . .
8055 case `(uname -sr) 2>/dev/null` in
8056 "SunOS 5"*)
8057 echo "$as_me:8057: checking whether -R must be followed by a space" >&5
8058 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8059 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line 8061 "configure"
8062 #include "confdefs.h"
8063
8064 int
8065 main ()
8066 {
8067
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (eval echo "$as_me:8073: \"$ac_link\"") >&5
8074 (eval $ac_link) 2>&5
8075 ac_status=$?
8076 echo "$as_me:8076: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -s conftest$ac_exeext'
8079 { (eval echo "$as_me:8079: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:8082: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 ac_R_nospace=yes
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 ac_R_nospace=no
8089 fi
8090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8091 if test $ac_R_nospace = yes; then
8092 echo "$as_me:8092: result: no" >&5
8093 echo "${ECHO_T}no" >&6
8094 X_LIBS="$X_LIBS -R$x_libraries"
8095 else
8096 LIBS="$ac_xsave_LIBS -R $x_libraries"
8097 cat >conftest.$ac_ext <<_ACEOF
8098 #line 8098 "configure"
8099 #include "confdefs.h"
8100
8101 int
8102 main ()
8103 {
8104
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 rm -f conftest.$ac_objext conftest$ac_exeext
8110 if { (eval echo "$as_me:8110: \"$ac_link\"") >&5
8111 (eval $ac_link) 2>&5
8112 ac_status=$?
8113 echo "$as_me:8113: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -s conftest$ac_exeext'
8116 { (eval echo "$as_me:8116: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:8119: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_R_space=yes
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8125 ac_R_space=no
8126 fi
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128 if test $ac_R_space = yes; then
8129 echo "$as_me:8129: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8131 X_LIBS="$X_LIBS -R $x_libraries"
8132 else
8133 echo "$as_me:8133: result: neither works" >&5
8134 echo "${ECHO_T}neither works" >&6
8135 fi
8136 fi
8137 LIBS=$ac_xsave_LIBS
8138 esac
8139 fi
8140
8141 # Check for system-dependent libraries X programs must link with.
8142 # Do this before checking for the system-independent R6 libraries
8143 # (-lICE), since we may need -lsocket or whatever for X linking.
8144
8145 if test "$ISC" = yes; then
8146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8147 else
8148 # Martyn Johnson says this is needed for Ultrix, if the X
8149 # libraries were built with DECnet support. And Karl Berry says
8150 # the Alpha needs dnet_stub (dnet does not exist).
8151 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line 8153 "configure"
8154 #include "confdefs.h"
8155
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char XOpenDisplay ();
8163 int
8164 main ()
8165 {
8166 XOpenDisplay ();
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:8172: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>&5
8174 ac_status=$?
8175 echo "$as_me:8175: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -s conftest$ac_exeext'
8178 { (eval echo "$as_me:8178: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:8181: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 :
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8187 echo "$as_me:8187: checking for dnet_ntoa in -ldnet" >&5
8188 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8189 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 ac_check_lib_save_LIBS=$LIBS
8193 LIBS="-ldnet $LIBS"
8194 cat >conftest.$ac_ext <<_ACEOF
8195 #line 8195 "configure"
8196 #include "confdefs.h"
8197
8198 /* Override any gcc2 internal prototype to avoid an error. */
8199 #ifdef __cplusplus
8200 extern "C"
8201 #endif
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8204 char dnet_ntoa ();
8205 int
8206 main ()
8207 {
8208 dnet_ntoa ();
8209 ;
8210 return 0;
8211 }
8212 _ACEOF
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:8214: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>&5
8216 ac_status=$?
8217 echo "$as_me:8217: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -s conftest$ac_exeext'
8220 { (eval echo "$as_me:8220: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:8223: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 ac_cv_lib_dnet_dnet_ntoa=yes
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 cat conftest.$ac_ext >&5
8229 ac_cv_lib_dnet_dnet_ntoa=no
8230 fi
8231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8233 fi
8234 echo "$as_me:8234: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8235 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8236 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8238 fi
8239
8240 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8241 echo "$as_me:8241: checking for dnet_ntoa in -ldnet_stub" >&5
8242 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8243 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 ac_check_lib_save_LIBS=$LIBS
8247 LIBS="-ldnet_stub $LIBS"
8248 cat >conftest.$ac_ext <<_ACEOF
8249 #line 8249 "configure"
8250 #include "confdefs.h"
8251
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 #ifdef __cplusplus
8254 extern "C"
8255 #endif
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8258 char dnet_ntoa ();
8259 int
8260 main ()
8261 {
8262 dnet_ntoa ();
8263 ;
8264 return 0;
8265 }
8266 _ACEOF
8267 rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (eval echo "$as_me:8268: \"$ac_link\"") >&5
8269 (eval $ac_link) 2>&5
8270 ac_status=$?
8271 echo "$as_me:8271: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -s conftest$ac_exeext'
8274 { (eval echo "$as_me:8274: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8280 else
8281 echo "$as_me: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8283 ac_cv_lib_dnet_stub_dnet_ntoa=no
8284 fi
8285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
8287 fi
8288 echo "$as_me:8288: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8289 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8290 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8291 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8292 fi
8293
8294 fi
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 LIBS="$ac_xsave_LIBS"
8298
8299 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8300 # to get the SysV transport functions.
8301 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8302 # needs -lnsl.
8303 # The nsl library prevents programs from opening the X display
8304 # on Irix 5.2, according to T.E. Dickey.
8305 # The functions gethostbyname, getservbyname, and inet_addr are
8306 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8307 echo "$as_me:8307: checking for gethostbyname" >&5
8308 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8309 if test "${ac_cv_func_gethostbyname+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312 cat >conftest.$ac_ext <<_ACEOF
8313 #line 8313 "configure"
8314 #include "confdefs.h"
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char gethostbyname (); below. */
8317 #include <assert.h>
8318 /* Override any gcc2 internal prototype to avoid an error. */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 /* We use char because int might match the return type of a gcc2
8323 builtin and then its argument prototype would still apply. */
8324 char gethostbyname ();
8325 char (*f) ();
8326
8327 int
8328 main ()
8329 {
8330 /* The GNU C library defines this for functions which it implements
8331 to always fail with ENOSYS. Some functions are actually named
8332 something starting with __ and the normal name is an alias. */
8333 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8334 choke me
8335 #else
8336 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8337 #endif
8338
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:8344: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>&5
8346 ac_status=$?
8347 echo "$as_me:8347: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:8350: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:8353: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_func_gethostbyname=yes
8356 else
8357 echo "$as_me: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8359 ac_cv_func_gethostbyname=no
8360 fi
8361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362 fi
8363 echo "$as_me:8363: result: $ac_cv_func_gethostbyname" >&5
8364 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8365
8366 if test $ac_cv_func_gethostbyname = no; then
8367 echo "$as_me:8367: checking for gethostbyname in -lnsl" >&5
8368 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8369 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372 ac_check_lib_save_LIBS=$LIBS
8373 LIBS="-lnsl $LIBS"
8374 cat >conftest.$ac_ext <<_ACEOF
8375 #line 8375 "configure"
8376 #include "confdefs.h"
8377
8378 /* Override any gcc2 internal prototype to avoid an error. */
8379 #ifdef __cplusplus
8380 extern "C"
8381 #endif
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8384 char gethostbyname ();
8385 int
8386 main ()
8387 {
8388 gethostbyname ();
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:8394: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>&5
8396 ac_status=$?
8397 echo "$as_me:8397: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:8400: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:8403: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_lib_nsl_gethostbyname=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 ac_cv_lib_nsl_gethostbyname=no
8410 fi
8411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8412 LIBS=$ac_check_lib_save_LIBS
8413 fi
8414 echo "$as_me:8414: result: $ac_cv_lib_nsl_gethostbyname" >&5
8415 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8416 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8418 fi
8419
8420 if test $ac_cv_lib_nsl_gethostbyname = no; then
8421 echo "$as_me:8421: checking for gethostbyname in -lbsd" >&5
8422 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8423 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426 ac_check_lib_save_LIBS=$LIBS
8427 LIBS="-lbsd $LIBS"
8428 cat >conftest.$ac_ext <<_ACEOF
8429 #line 8429 "configure"
8430 #include "confdefs.h"
8431
8432 /* Override any gcc2 internal prototype to avoid an error. */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438 char gethostbyname ();
8439 int
8440 main ()
8441 {
8442 gethostbyname ();
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_lib_bsd_gethostbyname=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8463 ac_cv_lib_bsd_gethostbyname=no
8464 fi
8465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8466 LIBS=$ac_check_lib_save_LIBS
8467 fi
8468 echo "$as_me:8468: result: $ac_cv_lib_bsd_gethostbyname" >&5
8469 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8470 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8472 fi
8473
8474 fi
8475 fi
8476
8477 # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
8478 # socket/setsockopt and other routines are undefined under SCO ODT
8479 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8480 # on later versions), says Simon Leinen: it contains gethostby*
8481 # variants that don't use the nameserver (or something). -lsocket
8482 # must be given before -lnsl if both are needed. We assume that
8483 # if connect needs -lnsl, so does gethostbyname.
8484 echo "$as_me:8484: checking for connect" >&5
8485 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8486 if test "${ac_cv_func_connect+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 cat >conftest.$ac_ext <<_ACEOF
8490 #line 8490 "configure"
8491 #include "confdefs.h"
8492 /* System header to define __stub macros and hopefully few prototypes,
8493 which can conflict with char connect (); below. */
8494 #include <assert.h>
8495 /* Override any gcc2 internal prototype to avoid an error. */
8496 #ifdef __cplusplus
8497 extern "C"
8498 #endif
8499 /* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
8501 char connect ();
8502 char (*f) ();
8503
8504 int
8505 main ()
8506 {
8507 /* The GNU C library defines this for functions which it implements
8508 to always fail with ENOSYS. Some functions are actually named
8509 something starting with __ and the normal name is an alias. */
8510 #if defined (__stub_connect) || defined (__stub___connect)
8511 choke me
8512 #else
8513 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8514 #endif
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (eval echo "$as_me:8521: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>&5
8523 ac_status=$?
8524 echo "$as_me:8524: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:8527: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:8530: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_func_connect=yes
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 ac_cv_func_connect=no
8537 fi
8538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8539 fi
8540 echo "$as_me:8540: result: $ac_cv_func_connect" >&5
8541 echo "${ECHO_T}$ac_cv_func_connect" >&6
8542
8543 if test $ac_cv_func_connect = no; then
8544 echo "$as_me:8544: checking for connect in -lsocket" >&5
8545 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8546 if test "${ac_cv_lib_socket_connect+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549 ac_check_lib_save_LIBS=$LIBS
8550 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8551 cat >conftest.$ac_ext <<_ACEOF
8552 #line 8552 "configure"
8553 #include "confdefs.h"
8554
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 #ifdef __cplusplus
8557 extern "C"
8558 #endif
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8561 char connect ();
8562 int
8563 main ()
8564 {
8565 connect ();
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:8571: \"$ac_link\"") >&5
8572 (eval $ac_link) 2>&5
8573 ac_status=$?
8574 echo "$as_me:8574: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -s conftest$ac_exeext'
8577 { (eval echo "$as_me:8577: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:8580: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_lib_socket_connect=yes
8583 else
8584 echo "$as_me: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8586 ac_cv_lib_socket_connect=no
8587 fi
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8590 fi
8591 echo "$as_me:8591: result: $ac_cv_lib_socket_connect" >&5
8592 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8593 if test $ac_cv_lib_socket_connect = yes; then
8594 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8595 fi
8596
8597 fi
8598
8599 # Guillermo Gomez says -lposix is necessary on A/UX.
8600 echo "$as_me:8600: checking for remove" >&5
8601 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8602 if test "${ac_cv_func_remove+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line 8606 "configure"
8607 #include "confdefs.h"
8608 /* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char remove (); below. */
8610 #include <assert.h>
8611 /* Override any gcc2 internal prototype to avoid an error. */
8612 #ifdef __cplusplus
8613 extern "C"
8614 #endif
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8617 char remove ();
8618 char (*f) ();
8619
8620 int
8621 main ()
8622 {
8623 /* The GNU C library defines this for functions which it implements
8624 to always fail with ENOSYS. Some functions are actually named
8625 something starting with __ and the normal name is an alias. */
8626 #if defined (__stub_remove) || defined (__stub___remove)
8627 choke me
8628 #else
8629 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8630 #endif
8631
8632 ;
8633 return 0;
8634 }
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:8637: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>&5
8639 ac_status=$?
8640 echo "$as_me:8640: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -s conftest$ac_exeext'
8643 { (eval echo "$as_me:8643: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:8646: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_func_remove=yes
8649 else
8650 echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8652 ac_cv_func_remove=no
8653 fi
8654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8655 fi
8656 echo "$as_me:8656: result: $ac_cv_func_remove" >&5
8657 echo "${ECHO_T}$ac_cv_func_remove" >&6
8658
8659 if test $ac_cv_func_remove = no; then
8660 echo "$as_me:8660: checking for remove in -lposix" >&5
8661 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8662 if test "${ac_cv_lib_posix_remove+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-lposix $LIBS"
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line 8668 "configure"
8669 #include "confdefs.h"
8670
8671 /* Override any gcc2 internal prototype to avoid an error. */
8672 #ifdef __cplusplus
8673 extern "C"
8674 #endif
8675 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8677 char remove ();
8678 int
8679 main ()
8680 {
8681 remove ();
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 rm -f conftest.$ac_objext conftest$ac_exeext
8687 if { (eval echo "$as_me:8687: \"$ac_link\"") >&5
8688 (eval $ac_link) 2>&5
8689 ac_status=$?
8690 echo "$as_me:8690: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:8693: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:8696: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_lib_posix_remove=yes
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8702 ac_cv_lib_posix_remove=no
8703 fi
8704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8705 LIBS=$ac_check_lib_save_LIBS
8706 fi
8707 echo "$as_me:8707: result: $ac_cv_lib_posix_remove" >&5
8708 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8709 if test $ac_cv_lib_posix_remove = yes; then
8710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8711 fi
8712
8713 fi
8714
8715 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8716 echo "$as_me:8716: checking for shmat" >&5
8717 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8718 if test "${ac_cv_func_shmat+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721 cat >conftest.$ac_ext <<_ACEOF
8722 #line 8722 "configure"
8723 #include "confdefs.h"
8724 /* System header to define __stub macros and hopefully few prototypes,
8725 which can conflict with char shmat (); below. */
8726 #include <assert.h>
8727 /* Override any gcc2 internal prototype to avoid an error. */
8728 #ifdef __cplusplus
8729 extern "C"
8730 #endif
8731 /* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8733 char shmat ();
8734 char (*f) ();
8735
8736 int
8737 main ()
8738 {
8739 /* The GNU C library defines this for functions which it implements
8740 to always fail with ENOSYS. Some functions are actually named
8741 something starting with __ and the normal name is an alias. */
8742 #if defined (__stub_shmat) || defined (__stub___shmat)
8743 choke me
8744 #else
8745 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8746 #endif
8747
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:8753: \"$ac_link\"") >&5
8754 (eval $ac_link) 2>&5
8755 ac_status=$?
8756 echo "$as_me:8756: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:8759: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:8762: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_func_shmat=yes
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 ac_cv_func_shmat=no
8769 fi
8770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8771 fi
8772 echo "$as_me:8772: result: $ac_cv_func_shmat" >&5
8773 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8774
8775 if test $ac_cv_func_shmat = no; then
8776 echo "$as_me:8776: checking for shmat in -lipc" >&5
8777 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8778 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 ac_check_lib_save_LIBS=$LIBS
8782 LIBS="-lipc $LIBS"
8783 cat >conftest.$ac_ext <<_ACEOF
8784 #line 8784 "configure"
8785 #include "confdefs.h"
8786
8787 /* Override any gcc2 internal prototype to avoid an error. */
8788 #ifdef __cplusplus
8789 extern "C"
8790 #endif
8791 /* We use char because int might match the return type of a gcc2
8792 builtin and then its argument prototype would still apply. */
8793 char shmat ();
8794 int
8795 main ()
8796 {
8797 shmat ();
8798 ;
8799 return 0;
8800 }
8801 _ACEOF
8802 rm -f conftest.$ac_objext conftest$ac_exeext
8803 if { (eval echo "$as_me:8803: \"$ac_link\"") >&5
8804 (eval $ac_link) 2>&5
8805 ac_status=$?
8806 echo "$as_me:8806: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:8809: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:8812: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 ac_cv_lib_ipc_shmat=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8818 ac_cv_lib_ipc_shmat=no
8819 fi
8820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8821 LIBS=$ac_check_lib_save_LIBS
8822 fi
8823 echo "$as_me:8823: result: $ac_cv_lib_ipc_shmat" >&5
8824 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8825 if test $ac_cv_lib_ipc_shmat = yes; then
8826 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8827 fi
8828
8829 fi
8830 fi
8831
8832 # Check for libraries that X11R6 Xt/Xaw programs need.
8833 ac_save_LDFLAGS=$LDFLAGS
8834 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8835 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8836 # check for ICE first), but we must link in the order -lSM -lICE or
8837 # we get undefined symbols. So assume we have SM if we have ICE.
8838 # These have to be linked with before -lX11, unlike the other
8839 # libraries we check for below, so use a different variable.
8840 # John Interrante, Karl Berry
8841 echo "$as_me:8841: checking for IceConnectionNumber in -lICE" >&5
8842 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8843 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846 ac_check_lib_save_LIBS=$LIBS
8847 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8848 cat >conftest.$ac_ext <<_ACEOF
8849 #line 8849 "configure"
8850 #include "confdefs.h"
8851
8852 /* Override any gcc2 internal prototype to avoid an error. */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char IceConnectionNumber ();
8859 int
8860 main ()
8861 {
8862 IceConnectionNumber ();
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:8868: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>&5
8870 ac_status=$?
8871 echo "$as_me:8871: \$? = $ac_status" >&5
8872 (exit $ac_status); } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (eval echo "$as_me:8874: \"$ac_try\"") >&5
8875 (eval $ac_try) 2>&5
8876 ac_status=$?
8877 echo "$as_me:8877: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_lib_ICE_IceConnectionNumber=yes
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 cat conftest.$ac_ext >&5
8883 ac_cv_lib_ICE_IceConnectionNumber=no
8884 fi
8885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8887 fi
8888 echo "$as_me:8888: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8889 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8890 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8891 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8892 fi
8893
8894 LDFLAGS=$ac_save_LDFLAGS
8895
8896 fi
8897
8898 echo "$as_me:8898: checking if you want to use pkg-config" >&5
8899 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
8900
8901 # Check whether --with-pkg-config or --without-pkg-config was given.
8902 if test "${with_pkg_config+set}" = set; then
8903 withval="$with_pkg_config"
8904 cf_pkg_config=$withval
8905 else
8906 cf_pkg_config=yes
8907 fi;
8908 echo "$as_me:8908: result: $cf_pkg_config" >&5
8909 echo "${ECHO_T}$cf_pkg_config" >&6
8910
8911 case $cf_pkg_config in
8912 (no)
8913 PKG_CONFIG=none
8914 ;;
8915 (yes)
8916
8917 if test -n "$ac_tool_prefix"; then
8918 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8919 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8920 echo "$as_me:8920: checking for $ac_word" >&5
8921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8922 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 case $PKG_CONFIG in
8926 [\\/]* | ?:[\\/]*)
8927 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8928 ;;
8929 *)
8930 ac_save_IFS=$IFS; IFS=$ac_path_separator
8931 ac_dummy="$PATH"
8932 for ac_dir in $ac_dummy; do
8933 IFS=$ac_save_IFS
8934 test -z "$ac_dir" && ac_dir=.
8935 if $as_executable_p "$ac_dir/$ac_word"; then
8936 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8937 echo "$as_me:8937: found $ac_dir/$ac_word" >&5
8938 break
8939 fi
8940 done
8941
8942 ;;
8943 esac
8944 fi
8945 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8946
8947 if test -n "$PKG_CONFIG"; then
8948 echo "$as_me:8948: result: $PKG_CONFIG" >&5
8949 echo "${ECHO_T}$PKG_CONFIG" >&6
8950 else
8951 echo "$as_me:8951: result: no" >&5
8952 echo "${ECHO_T}no" >&6
8953 fi
8954
8955 fi
8956 if test -z "$ac_cv_path_PKG_CONFIG"; then
8957 ac_pt_PKG_CONFIG=$PKG_CONFIG
8958 # Extract the first word of "pkg-config", so it can be a program name with args.
8959 set dummy pkg-config; ac_word=$2
8960 echo "$as_me:8960: checking for $ac_word" >&5
8961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8962 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965 case $ac_pt_PKG_CONFIG in
8966 [\\/]* | ?:[\\/]*)
8967 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8968 ;;
8969 *)
8970 ac_save_IFS=$IFS; IFS=$ac_path_separator
8971 ac_dummy="$PATH"
8972 for ac_dir in $ac_dummy; do
8973 IFS=$ac_save_IFS
8974 test -z "$ac_dir" && ac_dir=.
8975 if $as_executable_p "$ac_dir/$ac_word"; then
8976 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
8977 echo "$as_me:8977: found $ac_dir/$ac_word" >&5
8978 break
8979 fi
8980 done
8981
8982 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
8983 ;;
8984 esac
8985 fi
8986 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8987
8988 if test -n "$ac_pt_PKG_CONFIG"; then
8989 echo "$as_me:8989: result: $ac_pt_PKG_CONFIG" >&5
8990 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8991 else
8992 echo "$as_me:8992: result: no" >&5
8993 echo "${ECHO_T}no" >&6
8994 fi
8995
8996 PKG_CONFIG=$ac_pt_PKG_CONFIG
8997 else
8998 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8999 fi
9000
9001 ;;
9002 (*)
9003 PKG_CONFIG=$withval
9004 ;;
9005 esac
9006
9007 test -z "$PKG_CONFIG" && PKG_CONFIG=none
9008 if test "$PKG_CONFIG" != none ; then
9009
9010 if test "x$prefix" != xNONE; then
9011 cf_path_syntax="$prefix"
9012 else
9013 cf_path_syntax="$ac_default_prefix"
9014 fi
9015
9016 case ".$PKG_CONFIG" in
9017 (.\$\(*\)*|.\'*\'*)
9018 ;;
9019 (..|./*|.\\*)
9020 ;;
9021 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9022 ;;
9023 (.\${*prefix}*|.\${*dir}*)
9024 eval PKG_CONFIG="$PKG_CONFIG"
9025 case ".$PKG_CONFIG" in
9026 (.NONE/*)
9027 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9028 ;;
9029 esac
9030 ;;
9031 (.no|.NONE/*)
9032 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9033 ;;
9034 (*)
9035 { { echo "$as_me:9035: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
9036 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
9037 { (exit 1); exit 1; }; }
9038 ;;
9039 esac
9040
9041 elif test "x$cf_pkg_config" != xno ; then
9042 { echo "$as_me:9042: WARNING: pkg-config is not installed" >&5
9043 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
9044 fi
9045
9046 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
9047 # in some cases has installed dummy files in the former, other cases replaced
9048 # it with a link to the new location). This complicates the configure script.
9049 # Check for that pitfall, and recover using pkg-config
9050 #
9051 # If none of these are set, the configuration is almost certainly broken.
9052 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
9053 then
9054
9055 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
9056 test -n "$verbose" && echo " found package x11" 1>&6
9057
9058 echo "${as_me:-configure}:9058: testing found package x11 ..." 1>&5
9059
9060 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
9061 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
9062 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
9063
9064 echo "${as_me:-configure}:9064: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9065
9066 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
9067
9068 echo "${as_me:-configure}:9068: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
9069
9070 cf_fix_cppflags=no
9071 cf_new_cflags=
9072 cf_new_cppflags=
9073 cf_new_extra_cppflags=
9074
9075 for cf_add_cflags in $cf_pkgconfig_incs
9076 do
9077 case $cf_fix_cppflags in
9078 (no)
9079 case $cf_add_cflags in
9080 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9081 case $cf_add_cflags in
9082 (-D*)
9083 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9084
9085 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9086 && test -z "${cf_tst_cflags}" \
9087 && cf_fix_cppflags=yes
9088
9089 if test $cf_fix_cppflags = yes ; then
9090 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9091 continue
9092 elif test "${cf_tst_cflags}" = "\"'" ; then
9093 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9094 continue
9095 fi
9096 ;;
9097 esac
9098 case "$CPPFLAGS" in
9099 (*$cf_add_cflags)
9100 ;;
9101 (*)
9102 case $cf_add_cflags in
9103 (-D*)
9104 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9105
9106 CPPFLAGS=`echo "$CPPFLAGS" | \
9107 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9108 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9109
9110 ;;
9111 esac
9112 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9113 ;;
9114 esac
9115 ;;
9116 (*)
9117 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9118 ;;
9119 esac
9120 ;;
9121 (yes)
9122 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9123
9124 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9125
9126 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9127 && test -z "${cf_tst_cflags}" \
9128 && cf_fix_cppflags=no
9129 ;;
9130 esac
9131 done
9132
9133 if test -n "$cf_new_cflags" ; then
9134
9135 CFLAGS="$CFLAGS $cf_new_cflags"
9136 fi
9137
9138 if test -n "$cf_new_cppflags" ; then
9139
9140 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9141 fi
9142
9143 if test -n "$cf_new_extra_cppflags" ; then
9144
9145 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9146 fi
9147
9148 cf_add_libs="$cf_pkgconfig_libs"
9149 # Filter out duplicates - this happens with badly-designed ".pc" files...
9150 for cf_add_1lib in $LIBS
9151 do
9152 for cf_add_2lib in $cf_add_libs
9153 do
9154 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9155 then
9156 cf_add_1lib=
9157 break
9158 fi
9159 done
9160 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9161 done
9162 LIBS="$cf_add_libs"
9163
9164 :
9165 else
9166 cf_pkgconfig_incs=
9167 cf_pkgconfig_libs=
9168 { echo "$as_me:9168: WARNING: unable to find X11 library" >&5
9169 echo "$as_me: WARNING: unable to find X11 library" >&2;}
9170 fi
9171
9172 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
9173 test -n "$verbose" && echo " found package ice" 1>&6
9174
9175 echo "${as_me:-configure}:9175: testing found package ice ..." 1>&5
9176
9177 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
9178 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
9179 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
9180
9181 echo "${as_me:-configure}:9181: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9182
9183 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
9184
9185 echo "${as_me:-configure}:9185: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
9186
9187 cf_fix_cppflags=no
9188 cf_new_cflags=
9189 cf_new_cppflags=
9190 cf_new_extra_cppflags=
9191
9192 for cf_add_cflags in $cf_pkgconfig_incs
9193 do
9194 case $cf_fix_cppflags in
9195 (no)
9196 case $cf_add_cflags in
9197 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9198 case $cf_add_cflags in
9199 (-D*)
9200 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9201
9202 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9203 && test -z "${cf_tst_cflags}" \
9204 && cf_fix_cppflags=yes
9205
9206 if test $cf_fix_cppflags = yes ; then
9207 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9208 continue
9209 elif test "${cf_tst_cflags}" = "\"'" ; then
9210 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9211 continue
9212 fi
9213 ;;
9214 esac
9215 case "$CPPFLAGS" in
9216 (*$cf_add_cflags)
9217 ;;
9218 (*)
9219 case $cf_add_cflags in
9220 (-D*)
9221 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9222
9223 CPPFLAGS=`echo "$CPPFLAGS" | \
9224 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9225 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9226
9227 ;;
9228 esac
9229 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9230 ;;
9231 esac
9232 ;;
9233 (*)
9234 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9235 ;;
9236 esac
9237 ;;
9238 (yes)
9239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9240
9241 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9242
9243 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9244 && test -z "${cf_tst_cflags}" \
9245 && cf_fix_cppflags=no
9246 ;;
9247 esac
9248 done
9249
9250 if test -n "$cf_new_cflags" ; then
9251
9252 CFLAGS="$CFLAGS $cf_new_cflags"
9253 fi
9254
9255 if test -n "$cf_new_cppflags" ; then
9256
9257 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9258 fi
9259
9260 if test -n "$cf_new_extra_cppflags" ; then
9261
9262 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9263 fi
9264
9265 cf_add_libs="$cf_pkgconfig_libs"
9266 # Filter out duplicates - this happens with badly-designed ".pc" files...
9267 for cf_add_1lib in $LIBS
9268 do
9269 for cf_add_2lib in $cf_add_libs
9270 do
9271 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9272 then
9273 cf_add_1lib=
9274 break
9275 fi
9276 done
9277 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9278 done
9279 LIBS="$cf_add_libs"
9280
9281 :
9282 else
9283 cf_pkgconfig_incs=
9284 cf_pkgconfig_libs=
9285 { echo "$as_me:9285: WARNING: unable to find ICE library" >&5
9286 echo "$as_me: WARNING: unable to find ICE library" >&2;}
9287 fi
9288
9289 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
9290 test -n "$verbose" && echo " found package sm" 1>&6
9291
9292 echo "${as_me:-configure}:9292: testing found package sm ..." 1>&5
9293
9294 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
9295 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
9296 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
9297
9298 echo "${as_me:-configure}:9298: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9299
9300 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
9301
9302 echo "${as_me:-configure}:9302: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
9303
9304 cf_fix_cppflags=no
9305 cf_new_cflags=
9306 cf_new_cppflags=
9307 cf_new_extra_cppflags=
9308
9309 for cf_add_cflags in $cf_pkgconfig_incs
9310 do
9311 case $cf_fix_cppflags in
9312 (no)
9313 case $cf_add_cflags in
9314 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9315 case $cf_add_cflags in
9316 (-D*)
9317 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9318
9319 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9320 && test -z "${cf_tst_cflags}" \
9321 && cf_fix_cppflags=yes
9322
9323 if test $cf_fix_cppflags = yes ; then
9324 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9325 continue
9326 elif test "${cf_tst_cflags}" = "\"'" ; then
9327 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9328 continue
9329 fi
9330 ;;
9331 esac
9332 case "$CPPFLAGS" in
9333 (*$cf_add_cflags)
9334 ;;
9335 (*)
9336 case $cf_add_cflags in
9337 (-D*)
9338 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9339
9340 CPPFLAGS=`echo "$CPPFLAGS" | \
9341 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9342 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9343
9344 ;;
9345 esac
9346 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9347 ;;
9348 esac
9349 ;;
9350 (*)
9351 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9352 ;;
9353 esac
9354 ;;
9355 (yes)
9356 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9357
9358 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9359
9360 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9361 && test -z "${cf_tst_cflags}" \
9362 && cf_fix_cppflags=no
9363 ;;
9364 esac
9365 done
9366
9367 if test -n "$cf_new_cflags" ; then
9368
9369 CFLAGS="$CFLAGS $cf_new_cflags"
9370 fi
9371
9372 if test -n "$cf_new_cppflags" ; then
9373
9374 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9375 fi
9376
9377 if test -n "$cf_new_extra_cppflags" ; then
9378
9379 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9380 fi
9381
9382 cf_add_libs="$cf_pkgconfig_libs"
9383 # Filter out duplicates - this happens with badly-designed ".pc" files...
9384 for cf_add_1lib in $LIBS
9385 do
9386 for cf_add_2lib in $cf_add_libs
9387 do
9388 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9389 then
9390 cf_add_1lib=
9391 break
9392 fi
9393 done
9394 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9395 done
9396 LIBS="$cf_add_libs"
9397
9398 :
9399 else
9400 cf_pkgconfig_incs=
9401 cf_pkgconfig_libs=
9402 { echo "$as_me:9402: WARNING: unable to find SM library" >&5
9403 echo "$as_me: WARNING: unable to find SM library" >&2;}
9404 fi
9405
9406 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
9407 test -n "$verbose" && echo " found package xt" 1>&6
9408
9409 echo "${as_me:-configure}:9409: testing found package xt ..." 1>&5
9410
9411 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
9412 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
9413 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
9414
9415 echo "${as_me:-configure}:9415: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9416
9417 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
9418
9419 echo "${as_me:-configure}:9419: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
9420
9421 cf_fix_cppflags=no
9422 cf_new_cflags=
9423 cf_new_cppflags=
9424 cf_new_extra_cppflags=
9425
9426 for cf_add_cflags in $cf_pkgconfig_incs
9427 do
9428 case $cf_fix_cppflags in
9429 (no)
9430 case $cf_add_cflags in
9431 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9432 case $cf_add_cflags in
9433 (-D*)
9434 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9435
9436 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9437 && test -z "${cf_tst_cflags}" \
9438 && cf_fix_cppflags=yes
9439
9440 if test $cf_fix_cppflags = yes ; then
9441 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9442 continue
9443 elif test "${cf_tst_cflags}" = "\"'" ; then
9444 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9445 continue
9446 fi
9447 ;;
9448 esac
9449 case "$CPPFLAGS" in
9450 (*$cf_add_cflags)
9451 ;;
9452 (*)
9453 case $cf_add_cflags in
9454 (-D*)
9455 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9456
9457 CPPFLAGS=`echo "$CPPFLAGS" | \
9458 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9459 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9460
9461 ;;
9462 esac
9463 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9464 ;;
9465 esac
9466 ;;
9467 (*)
9468 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9469 ;;
9470 esac
9471 ;;
9472 (yes)
9473 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9474
9475 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9476
9477 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9478 && test -z "${cf_tst_cflags}" \
9479 && cf_fix_cppflags=no
9480 ;;
9481 esac
9482 done
9483
9484 if test -n "$cf_new_cflags" ; then
9485
9486 CFLAGS="$CFLAGS $cf_new_cflags"
9487 fi
9488
9489 if test -n "$cf_new_cppflags" ; then
9490
9491 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9492 fi
9493
9494 if test -n "$cf_new_extra_cppflags" ; then
9495
9496 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9497 fi
9498
9499 cf_add_libs="$cf_pkgconfig_libs"
9500 # Filter out duplicates - this happens with badly-designed ".pc" files...
9501 for cf_add_1lib in $LIBS
9502 do
9503 for cf_add_2lib in $cf_add_libs
9504 do
9505 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9506 then
9507 cf_add_1lib=
9508 break
9509 fi
9510 done
9511 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9512 done
9513 LIBS="$cf_add_libs"
9514
9515 :
9516 else
9517 cf_pkgconfig_incs=
9518 cf_pkgconfig_libs=
9519 { echo "$as_me:9519: WARNING: unable to find Xt library" >&5
9520 echo "$as_me: WARNING: unable to find Xt library" >&2;}
9521 fi
9522
9523 fi
9524
9525 cf_have_X_LIBS=no
9526
9527 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
9528 test -n "$verbose" && echo " found package xt" 1>&6
9529
9530 echo "${as_me:-configure}:9530: testing found package xt ..." 1>&5
9531
9532 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
9533 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
9534 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
9535
9536 echo "${as_me:-configure}:9536: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9537
9538 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
9539
9540 echo "${as_me:-configure}:9540: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
9541
9542 cf_fix_cppflags=no
9543 cf_new_cflags=
9544 cf_new_cppflags=
9545 cf_new_extra_cppflags=
9546
9547 for cf_add_cflags in $cf_pkgconfig_incs
9548 do
9549 case $cf_fix_cppflags in
9550 (no)
9551 case $cf_add_cflags in
9552 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9553 case $cf_add_cflags in
9554 (-D*)
9555 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9556
9557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9558 && test -z "${cf_tst_cflags}" \
9559 && cf_fix_cppflags=yes
9560
9561 if test $cf_fix_cppflags = yes ; then
9562 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9563 continue
9564 elif test "${cf_tst_cflags}" = "\"'" ; then
9565 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9566 continue
9567 fi
9568 ;;
9569 esac
9570 case "$CPPFLAGS" in
9571 (*$cf_add_cflags)
9572 ;;
9573 (*)
9574 case $cf_add_cflags in
9575 (-D*)
9576 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9577
9578 CPPFLAGS=`echo "$CPPFLAGS" | \
9579 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9580 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9581
9582 ;;
9583 esac
9584 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9585 ;;
9586 esac
9587 ;;
9588 (*)
9589 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9590 ;;
9591 esac
9592 ;;
9593 (yes)
9594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9595
9596 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9597
9598 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9599 && test -z "${cf_tst_cflags}" \
9600 && cf_fix_cppflags=no
9601 ;;
9602 esac
9603 done
9604
9605 if test -n "$cf_new_cflags" ; then
9606
9607 CFLAGS="$CFLAGS $cf_new_cflags"
9608 fi
9609
9610 if test -n "$cf_new_cppflags" ; then
9611
9612 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9613 fi
9614
9615 if test -n "$cf_new_extra_cppflags" ; then
9616
9617 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9618 fi
9619
9620 cf_add_libs="$cf_pkgconfig_libs"
9621 # Filter out duplicates - this happens with badly-designed ".pc" files...
9622 for cf_add_1lib in $LIBS
9623 do
9624 for cf_add_2lib in $cf_add_libs
9625 do
9626 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9627 then
9628 cf_add_1lib=
9629 break
9630 fi
9631 done
9632 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9633 done
9634 LIBS="$cf_add_libs"
9635
9636 case "x$LIBS" in
9637 (*-lX11*)
9638 ;;
9639 (*)
9640 # we have an "xt" package, but it may omit Xt's dependency on X11
9641 echo "$as_me:9641: checking for usable X dependency" >&5
9642 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
9643 if test "${cf_cv_xt_x11_compat+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646
9647 cat >conftest.$ac_ext <<_ACEOF
9648 #line 9648 "configure"
9649 #include "confdefs.h"
9650
9651 #include <X11/Xlib.h>
9652
9653 int
9654 main ()
9655 {
9656
9657 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
9658 int rc2 = XClearWindow((Display*) 0, (Window) 0);
9659 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
9660 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
9661
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (eval echo "$as_me:9667: \"$ac_link\"") >&5
9668 (eval $ac_link) 2>&5
9669 ac_status=$?
9670 echo "$as_me:9670: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -s conftest$ac_exeext'
9673 { (eval echo "$as_me:9673: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:9676: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 cf_cv_xt_x11_compat=yes
9679 else
9680 echo "$as_me: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9682 cf_cv_xt_x11_compat=no
9683 fi
9684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9685 fi
9686 echo "$as_me:9686: result: $cf_cv_xt_x11_compat" >&5
9687 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
9688 if test "$cf_cv_xt_x11_compat" = no
9689 then
9690 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
9691
9692 echo "${as_me:-configure}:9692: testing work around broken X11 dependency ..." 1>&5
9693
9694 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
9695
9696 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
9697 test -n "$verbose" && echo " found package x11" 1>&6
9698
9699 echo "${as_me:-configure}:9699: testing found package x11 ..." 1>&5
9700
9701 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
9702 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
9703 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
9704
9705 echo "${as_me:-configure}:9705: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9706
9707 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
9708
9709 echo "${as_me:-configure}:9709: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
9710
9711 cf_fix_cppflags=no
9712 cf_new_cflags=
9713 cf_new_cppflags=
9714 cf_new_extra_cppflags=
9715
9716 for cf_add_cflags in $cf_pkgconfig_incs
9717 do
9718 case $cf_fix_cppflags in
9719 (no)
9720 case $cf_add_cflags in
9721 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9722 case $cf_add_cflags in
9723 (-D*)
9724 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9725
9726 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9727 && test -z "${cf_tst_cflags}" \
9728 && cf_fix_cppflags=yes
9729
9730 if test $cf_fix_cppflags = yes ; then
9731 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9732 continue
9733 elif test "${cf_tst_cflags}" = "\"'" ; then
9734 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9735 continue
9736 fi
9737 ;;
9738 esac
9739 case "$CPPFLAGS" in
9740 (*$cf_add_cflags)
9741 ;;
9742 (*)
9743 case $cf_add_cflags in
9744 (-D*)
9745 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9746
9747 CPPFLAGS=`echo "$CPPFLAGS" | \
9748 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9749 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9750
9751 ;;
9752 esac
9753 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9754 ;;
9755 esac
9756 ;;
9757 (*)
9758 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9759 ;;
9760 esac
9761 ;;
9762 (yes)
9763 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9764
9765 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9766
9767 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9768 && test -z "${cf_tst_cflags}" \
9769 && cf_fix_cppflags=no
9770 ;;
9771 esac
9772 done
9773
9774 if test -n "$cf_new_cflags" ; then
9775
9776 CFLAGS="$CFLAGS $cf_new_cflags"
9777 fi
9778
9779 if test -n "$cf_new_cppflags" ; then
9780
9781 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9782 fi
9783
9784 if test -n "$cf_new_extra_cppflags" ; then
9785
9786 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9787 fi
9788
9789 cf_add_libs="$cf_pkgconfig_libs"
9790 # Filter out duplicates - this happens with badly-designed ".pc" files...
9791 for cf_add_1lib in $LIBS
9792 do
9793 for cf_add_2lib in $cf_add_libs
9794 do
9795 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9796 then
9797 cf_add_1lib=
9798 break
9799 fi
9800 done
9801 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9802 done
9803 LIBS="$cf_add_libs"
9804
9805 :
9806 else
9807 cf_pkgconfig_incs=
9808 cf_pkgconfig_libs=
9809
9810 test -n "$verbose" && echo " ...before $LIBS" 1>&6
9811
9812 echo "${as_me:-configure}:9812: testing ...before $LIBS ..." 1>&5
9813
9814 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
9815 test -n "$verbose" && echo " ...after $LIBS" 1>&6
9816
9817 echo "${as_me:-configure}:9817: testing ...after $LIBS ..." 1>&5
9818
9819 fi
9820
9821 fi
9822 ;;
9823 esac
9824
9825 echo "$as_me:9825: checking for usable X Toolkit package" >&5
9826 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
9827 if test "${cf_cv_xt_ice_compat+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830
9831 cat >conftest.$ac_ext <<_ACEOF
9832 #line 9832 "configure"
9833 #include "confdefs.h"
9834
9835 #include <X11/Shell.h>
9836
9837 int
9838 main ()
9839 {
9840 int num = IceConnectionNumber(0)
9841
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (eval echo "$as_me:9847: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>&5
9849 ac_status=$?
9850 echo "$as_me:9850: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -s conftest$ac_exeext'
9853 { (eval echo "$as_me:9853: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:9856: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 cf_cv_xt_ice_compat=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9862 cf_cv_xt_ice_compat=no
9863 fi
9864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9865 fi
9866 echo "$as_me:9866: result: $cf_cv_xt_ice_compat" >&5
9867 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
9868
9869 if test "$cf_cv_xt_ice_compat" = no
9870 then
9871 # workaround for broken ".pc" files used for X Toolkit.
9872 case "x$X_PRE_LIBS" in
9873 (*-lICE*)
9874 case "x$LIBS" in
9875 (*-lICE*)
9876 ;;
9877 (*)
9878 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
9879
9880 echo "${as_me:-configure}:9880: testing work around broken ICE dependency ..." 1>&5
9881
9882 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
9883 test -n "$verbose" && echo " found package ice" 1>&6
9884
9885 echo "${as_me:-configure}:9885: testing found package ice ..." 1>&5
9886
9887 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
9888 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
9889 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
9890
9891 echo "${as_me:-configure}:9891: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9892
9893 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
9894
9895 echo "${as_me:-configure}:9895: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
9896
9897 cf_fix_cppflags=no
9898 cf_new_cflags=
9899 cf_new_cppflags=
9900 cf_new_extra_cppflags=
9901
9902 for cf_add_cflags in $cf_pkgconfig_incs
9903 do
9904 case $cf_fix_cppflags in
9905 (no)
9906 case $cf_add_cflags in
9907 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9908 case $cf_add_cflags in
9909 (-D*)
9910 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9911
9912 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9913 && test -z "${cf_tst_cflags}" \
9914 && cf_fix_cppflags=yes
9915
9916 if test $cf_fix_cppflags = yes ; then
9917 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9918 continue
9919 elif test "${cf_tst_cflags}" = "\"'" ; then
9920 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9921 continue
9922 fi
9923 ;;
9924 esac
9925 case "$CPPFLAGS" in
9926 (*$cf_add_cflags)
9927 ;;
9928 (*)
9929 case $cf_add_cflags in
9930 (-D*)
9931 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9932
9933 CPPFLAGS=`echo "$CPPFLAGS" | \
9934 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9935 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9936
9937 ;;
9938 esac
9939 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9940 ;;
9941 esac
9942 ;;
9943 (*)
9944 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9945 ;;
9946 esac
9947 ;;
9948 (yes)
9949 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9950
9951 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9952
9953 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9954 && test -z "${cf_tst_cflags}" \
9955 && cf_fix_cppflags=no
9956 ;;
9957 esac
9958 done
9959
9960 if test -n "$cf_new_cflags" ; then
9961
9962 CFLAGS="$CFLAGS $cf_new_cflags"
9963 fi
9964
9965 if test -n "$cf_new_cppflags" ; then
9966
9967 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9968 fi
9969
9970 if test -n "$cf_new_extra_cppflags" ; then
9971
9972 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9973 fi
9974
9975 cf_add_libs="$cf_pkgconfig_libs"
9976 # Filter out duplicates - this happens with badly-designed ".pc" files...
9977 for cf_add_1lib in $LIBS
9978 do
9979 for cf_add_2lib in $cf_add_libs
9980 do
9981 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9982 then
9983 cf_add_1lib=
9984 break
9985 fi
9986 done
9987 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9988 done
9989 LIBS="$cf_add_libs"
9990
9991 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
9992 test -n "$verbose" && echo " found package sm" 1>&6
9993
9994 echo "${as_me:-configure}:9994: testing found package sm ..." 1>&5
9995
9996 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
9997 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
9998 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
9999
10000 echo "${as_me:-configure}:10000: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10001
10002 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
10003
10004 echo "${as_me:-configure}:10004: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
10005
10006 cf_fix_cppflags=no
10007 cf_new_cflags=
10008 cf_new_cppflags=
10009 cf_new_extra_cppflags=
10010
10011 for cf_add_cflags in $cf_pkgconfig_incs
10012 do
10013 case $cf_fix_cppflags in
10014 (no)
10015 case $cf_add_cflags in
10016 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10017 case $cf_add_cflags in
10018 (-D*)
10019 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10020
10021 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10022 && test -z "${cf_tst_cflags}" \
10023 && cf_fix_cppflags=yes
10024
10025 if test $cf_fix_cppflags = yes ; then
10026 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10027 continue
10028 elif test "${cf_tst_cflags}" = "\"'" ; then
10029 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10030 continue
10031 fi
10032 ;;
10033 esac
10034 case "$CPPFLAGS" in
10035 (*$cf_add_cflags)
10036 ;;
10037 (*)
10038 case $cf_add_cflags in
10039 (-D*)
10040 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10041
10042 CPPFLAGS=`echo "$CPPFLAGS" | \
10043 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10044 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10045
10046 ;;
10047 esac
10048 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10049 ;;
10050 esac
10051 ;;
10052 (*)
10053 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10054 ;;
10055 esac
10056 ;;
10057 (yes)
10058 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10059
10060 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10061
10062 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10063 && test -z "${cf_tst_cflags}" \
10064 && cf_fix_cppflags=no
10065 ;;
10066 esac
10067 done
10068
10069 if test -n "$cf_new_cflags" ; then
10070
10071 CFLAGS="$CFLAGS $cf_new_cflags"
10072 fi
10073
10074 if test -n "$cf_new_cppflags" ; then
10075
10076 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10077 fi
10078
10079 if test -n "$cf_new_extra_cppflags" ; then
10080
10081 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10082 fi
10083
10084 cf_add_libs="$cf_pkgconfig_libs"
10085 # Filter out duplicates - this happens with badly-designed ".pc" files...
10086 for cf_add_1lib in $LIBS
10087 do
10088 for cf_add_2lib in $cf_add_libs
10089 do
10090 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10091 then
10092 cf_add_1lib=
10093 break
10094 fi
10095 done
10096 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10097 done
10098 LIBS="$cf_add_libs"
10099
10100 :
10101 else
10102 cf_pkgconfig_incs=
10103 cf_pkgconfig_libs=
10104 :
10105 fi
10106
10107 else
10108 cf_pkgconfig_incs=
10109 cf_pkgconfig_libs=
10110
10111 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10112
10113 echo "${as_me:-configure}:10113: testing ...before $LIBS ..." 1>&5
10114
10115 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
10116 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10117
10118 echo "${as_me:-configure}:10118: testing ...after $LIBS ..." 1>&5
10119
10120 fi
10121
10122 ;;
10123 esac
10124 ;;
10125 esac
10126 fi
10127
10128 cf_have_X_LIBS=yes
10129
10130 else
10131 cf_pkgconfig_incs=
10132 cf_pkgconfig_libs=
10133
10134 LDFLAGS="$X_LIBS $LDFLAGS"
10135
10136 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
10137
10138 echo "${as_me:-configure}:10138: testing checking additions to CFLAGS ..." 1>&5
10139
10140 cf_check_cflags="$CFLAGS"
10141 cf_check_cppflags="$CPPFLAGS"
10142
10143 cf_fix_cppflags=no
10144 cf_new_cflags=
10145 cf_new_cppflags=
10146 cf_new_extra_cppflags=
10147
10148 for cf_add_cflags in $X_CFLAGS
10149 do
10150 case $cf_fix_cppflags in
10151 (no)
10152 case $cf_add_cflags in
10153 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10154 case $cf_add_cflags in
10155 (-D*)
10156 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10157
10158 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10159 && test -z "${cf_tst_cflags}" \
10160 && cf_fix_cppflags=yes
10161
10162 if test $cf_fix_cppflags = yes ; then
10163 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10164 continue
10165 elif test "${cf_tst_cflags}" = "\"'" ; then
10166 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10167 continue
10168 fi
10169 ;;
10170 esac
10171 case "$CPPFLAGS" in
10172 (*$cf_add_cflags)
10173 ;;
10174 (*)
10175 case $cf_add_cflags in
10176 (-D*)
10177 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10178
10179 CPPFLAGS=`echo "$CPPFLAGS" | \
10180 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10181 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10182
10183 ;;
10184 esac
10185 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10186 ;;
10187 esac
10188 ;;
10189 (*)
10190 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10191 ;;
10192 esac
10193 ;;
10194 (yes)
10195 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10196
10197 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10198
10199 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10200 && test -z "${cf_tst_cflags}" \
10201 && cf_fix_cppflags=no
10202 ;;
10203 esac
10204 done
10205
10206 if test -n "$cf_new_cflags" ; then
10207 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10208
10209 echo "${as_me:-configure}:10209: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10210
10211 CFLAGS="$CFLAGS $cf_new_cflags"
10212 fi
10213
10214 if test -n "$cf_new_cppflags" ; then
10215 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10216
10217 echo "${as_me:-configure}:10217: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10218
10219 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10220 fi
10221
10222 if test -n "$cf_new_extra_cppflags" ; then
10223 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10224
10225 echo "${as_me:-configure}:10225: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10226
10227 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10228 fi
10229
10230 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
10231 cat >conftest.$ac_ext <<_ACEOF
10232 #line 10232 "configure"
10233 #include "confdefs.h"
10234 #include <stdio.h>
10235 int
10236 main ()
10237 {
10238 printf("Hello world");
10239 ;
10240 return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (eval echo "$as_me:10244: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10246 ac_status=$?
10247 echo "$as_me:10247: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:10250: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:10253: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 :
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10259 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
10260
10261 echo "${as_me:-configure}:10261: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
10262
10263 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
10264 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
10265
10266 echo "${as_me:-configure}:10266: testing but keeping change to \$CPPFLAGS ..." 1>&5
10267
10268 fi
10269 CFLAGS="$cf_check_flags"
10270 fi
10271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10272 fi
10273
10274 echo "$as_me:10274: checking for XOpenDisplay" >&5
10275 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
10276 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line 10280 "configure"
10281 #include "confdefs.h"
10282 /* System header to define __stub macros and hopefully few prototypes,
10283 which can conflict with char XOpenDisplay (); below. */
10284 #include <assert.h>
10285 /* Override any gcc2 internal prototype to avoid an error. */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 /* We use char because int might match the return type of a gcc2
10290 builtin and then its argument prototype would still apply. */
10291 char XOpenDisplay ();
10292 char (*f) ();
10293
10294 int
10295 main ()
10296 {
10297 /* The GNU C library defines this for functions which it implements
10298 to always fail with ENOSYS. Some functions are actually named
10299 something starting with __ and the normal name is an alias. */
10300 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
10301 choke me
10302 #else
10303 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10304 #endif
10305
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:10311: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>&5
10313 ac_status=$?
10314 echo "$as_me:10314: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -s conftest$ac_exeext'
10317 { (eval echo "$as_me:10317: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:10320: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_func_XOpenDisplay=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 ac_cv_func_XOpenDisplay=no
10327 fi
10328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10329 fi
10330 echo "$as_me:10330: result: $ac_cv_func_XOpenDisplay" >&5
10331 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
10332 if test $ac_cv_func_XOpenDisplay = yes; then
10333 :
10334 else
10335
10336 echo "$as_me:10336: checking for XOpenDisplay in -lX11" >&5
10337 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
10338 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
10343 cat >conftest.$ac_ext <<_ACEOF
10344 #line 10344 "configure"
10345 #include "confdefs.h"
10346
10347 /* Override any gcc2 internal prototype to avoid an error. */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 /* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353 char XOpenDisplay ();
10354 int
10355 main ()
10356 {
10357 XOpenDisplay ();
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (eval echo "$as_me:10363: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>&5
10365 ac_status=$?
10366 echo "$as_me:10366: \$? = $ac_status" >&5
10367 (exit $ac_status); } &&
10368 { ac_try='test -s conftest$ac_exeext'
10369 { (eval echo "$as_me:10369: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:10372: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_cv_lib_X11_XOpenDisplay=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 ac_cv_lib_X11_XOpenDisplay=no
10379 fi
10380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 echo "$as_me:10383: result: $ac_cv_lib_X11_XOpenDisplay" >&5
10384 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
10385 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
10386
10387 cf_add_libs="-lX11"
10388 # Filter out duplicates - this happens with badly-designed ".pc" files...
10389 for cf_add_1lib in $LIBS
10390 do
10391 for cf_add_2lib in $cf_add_libs
10392 do
10393 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10394 then
10395 cf_add_1lib=
10396 break
10397 fi
10398 done
10399 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10400 done
10401 LIBS="$cf_add_libs"
10402
10403 fi
10404
10405 fi
10406
10407 echo "$as_me:10407: checking for XtAppInitialize" >&5
10408 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
10409 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412 cat >conftest.$ac_ext <<_ACEOF
10413 #line 10413 "configure"
10414 #include "confdefs.h"
10415 /* System header to define __stub macros and hopefully few prototypes,
10416 which can conflict with char XtAppInitialize (); below. */
10417 #include <assert.h>
10418 /* Override any gcc2 internal prototype to avoid an error. */
10419 #ifdef __cplusplus
10420 extern "C"
10421 #endif
10422 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10424 char XtAppInitialize ();
10425 char (*f) ();
10426
10427 int
10428 main ()
10429 {
10430 /* The GNU C library defines this for functions which it implements
10431 to always fail with ENOSYS. Some functions are actually named
10432 something starting with __ and the normal name is an alias. */
10433 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
10434 choke me
10435 #else
10436 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10437 #endif
10438
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (eval echo "$as_me:10444: \"$ac_link\"") >&5
10445 (eval $ac_link) 2>&5
10446 ac_status=$?
10447 echo "$as_me:10447: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -s conftest$ac_exeext'
10450 { (eval echo "$as_me:10450: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10452 ac_status=$?
10453 echo "$as_me:10453: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_cv_func_XtAppInitialize=yes
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 ac_cv_func_XtAppInitialize=no
10460 fi
10461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10462 fi
10463 echo "$as_me:10463: result: $ac_cv_func_XtAppInitialize" >&5
10464 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
10465 if test $ac_cv_func_XtAppInitialize = yes; then
10466 :
10467 else
10468
10469 echo "$as_me:10469: checking for XtAppInitialize in -lXt" >&5
10470 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
10471 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 ac_check_lib_save_LIBS=$LIBS
10475 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line 10477 "configure"
10478 #include "confdefs.h"
10479
10480 /* Override any gcc2 internal prototype to avoid an error. */
10481 #ifdef __cplusplus
10482 extern "C"
10483 #endif
10484 /* We use char because int might match the return type of a gcc2
10485 builtin and then its argument prototype would still apply. */
10486 char XtAppInitialize ();
10487 int
10488 main ()
10489 {
10490 XtAppInitialize ();
10491 ;
10492 return 0;
10493 }
10494 _ACEOF
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (eval echo "$as_me:10496: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>&5
10498 ac_status=$?
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -s conftest$ac_exeext'
10502 { (eval echo "$as_me:10502: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:10505: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_lib_Xt_XtAppInitialize=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 ac_cv_lib_Xt_XtAppInitialize=no
10512 fi
10513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10514 LIBS=$ac_check_lib_save_LIBS
10515 fi
10516 echo "$as_me:10516: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
10517 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
10518 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
10519
10520 cat >>confdefs.h <<\EOF
10521 #define HAVE_LIBXT 1
10522 EOF
10523
10524 cf_have_X_LIBS=Xt
10525 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
10526 fi
10527
10528 fi
10529
10530 fi
10531
10532 if test $cf_have_X_LIBS = no ; then
10533 { echo "$as_me:10533: WARNING: Unable to successfully link X Toolkit library (-lXt) with
10534 test program. You will have to check and add the proper libraries by hand
10535 to makefile." >&5
10536 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
10537 test program. You will have to check and add the proper libraries by hand
10538 to makefile." >&2;}
10539 fi
10540
10541 for ac_header in \
10542 X11/DECkeysym.h \
10543 X11/Sunkeysym.h \
10544 X11/XF86keysym.h \
10545 X11/XKBlib.h \
10546 X11/Xpoll.h \
10547 X11/extensions/XKB.h \
10548
10549 do
10550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10551 echo "$as_me:10551: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line 10557 "configure"
10558 #include "confdefs.h"
10559 #include <$ac_header>
10560 _ACEOF
10561 if { (eval echo "$as_me:10561: \"$ac_cpp conftest.$ac_ext\"") >&5
10562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10563 ac_status=$?
10564 egrep -v '^ *\+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 echo "$as_me:10567: \$? = $ac_status" >&5
10568 (exit $ac_status); } >/dev/null; then
10569 if test -s conftest.err; then
10570 ac_cpp_err=$ac_c_preproc_warn_flag
10571 else
10572 ac_cpp_err=
10573 fi
10574 else
10575 ac_cpp_err=yes
10576 fi
10577 if test -z "$ac_cpp_err"; then
10578 eval "$as_ac_Header=yes"
10579 else
10580 echo "$as_me: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 eval "$as_ac_Header=no"
10583 fi
10584 rm -f conftest.err conftest.$ac_ext
10585 fi
10586 echo "$as_me:10586: result: `eval echo '${'$as_ac_Header'}'`" >&5
10587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10589 cat >>confdefs.h <<EOF
10590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10591 EOF
10592
10593 fi
10594 done
10595
10596 ICON_SUFFIX=.xbm
10597
10598 cf_save_cppflags="${CPPFLAGS}"
10599 cf_save_ldflags="${LDFLAGS}"
10600
10601 echo "$as_me:10601: checking if you want to use the Xpm library for colored icon" >&5
10602 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6
10603
10604 # Check whether --with-xpm or --without-xpm was given.
10605 if test "${with_xpm+set}" = set; then
10606 withval="$with_xpm"
10607 cf_Xpm_library="$withval"
10608 else
10609 cf_Xpm_library=yes
10610 fi;
10611 echo "$as_me:10611: result: $cf_Xpm_library" >&5
10612 echo "${ECHO_T}$cf_Xpm_library" >&6
10613
10614 if test "$cf_Xpm_library" != no ; then
10615 if test "$cf_Xpm_library" != yes ; then
10616 CPPFLAGS="$CPPFLAGS -I$withval/include"
10617 LDFLAGS="$LDFLAGS -L$withval/lib"
10618 fi
10619 echo "$as_me:10619: checking for X11/xpm.h" >&5
10620 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10621 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 cat >conftest.$ac_ext <<_ACEOF
10625 #line 10625 "configure"
10626 #include "confdefs.h"
10627 #include <X11/xpm.h>
10628 _ACEOF
10629 if { (eval echo "$as_me:10629: \"$ac_cpp conftest.$ac_ext\"") >&5
10630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10631 ac_status=$?
10632 egrep -v '^ *\+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:10635: \$? = $ac_status" >&5
10636 (exit $ac_status); } >/dev/null; then
10637 if test -s conftest.err; then
10638 ac_cpp_err=$ac_c_preproc_warn_flag
10639 else
10640 ac_cpp_err=
10641 fi
10642 else
10643 ac_cpp_err=yes
10644 fi
10645 if test -z "$ac_cpp_err"; then
10646 ac_cv_header_X11_xpm_h=yes
10647 else
10648 echo "$as_me: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 ac_cv_header_X11_xpm_h=no
10651 fi
10652 rm -f conftest.err conftest.$ac_ext
10653 fi
10654 echo "$as_me:10654: result: $ac_cv_header_X11_xpm_h" >&5
10655 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10656 if test $ac_cv_header_X11_xpm_h = yes; then
10657
10658 echo "$as_me:10658: checking for XpmCreatePixmapFromData in -lXpm" >&5
10659 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
10660 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 ac_check_lib_save_LIBS=$LIBS
10664 LIBS="-lXpm -lX11 $X_LIBS $LIBS"
10665 cat >conftest.$ac_ext <<_ACEOF
10666 #line 10666 "configure"
10667 #include "confdefs.h"
10668
10669 /* Override any gcc2 internal prototype to avoid an error. */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 /* We use char because int might match the return type of a gcc2
10674 builtin and then its argument prototype would still apply. */
10675 char XpmCreatePixmapFromData ();
10676 int
10677 main ()
10678 {
10679 XpmCreatePixmapFromData ();
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:10685: \"$ac_link\"") >&5
10686 (eval $ac_link) 2>&5
10687 ac_status=$?
10688 echo "$as_me:10688: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -s conftest$ac_exeext'
10691 { (eval echo "$as_me:10691: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:10694: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
10701 fi
10702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10704 fi
10705 echo "$as_me:10705: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
10706 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
10707 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
10708
10709 cat >>confdefs.h <<\EOF
10710 #define HAVE_LIBXPM 1
10711 EOF
10712
10713 ICON_SUFFIX=.xpm
10714 LIBS="-lXpm $LIBS"
10715 else
10716 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
10717 fi
10718
10719 else
10720 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
10721 fi
10722
10723 fi
10724
10725 echo "$as_me:10725: checking if you want to use the Xinerama extension" >&5
10726 echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6
10727
10728 # Check whether --with-xinerama or --without-xinerama was given.
10729 if test "${with_xinerama+set}" = set; then
10730 withval="$with_xinerama"
10731 cf_with_xinerama="$withval"
10732 else
10733 cf_with_xinerama=yes
10734 fi;
10735 echo "$as_me:10735: result: $cf_with_xinerama" >&5
10736 echo "${ECHO_T}$cf_with_xinerama" >&6
10737 if test "$cf_with_xinerama" = yes; then
10738
10739 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xinerama; then
10740 test -n "$verbose" && echo " found package xinerama" 1>&6
10741
10742 echo "${as_me:-configure}:10742: testing found package xinerama ..." 1>&5
10743
10744 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xinerama 2>/dev/null`"
10745 cf_pkgconfig_libs="`$PKG_CONFIG --libs xinerama 2>/dev/null`"
10746 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6
10747
10748 echo "${as_me:-configure}:10748: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10749
10750 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6
10751
10752 echo "${as_me:-configure}:10752: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5
10753
10754 cf_fix_cppflags=no
10755 cf_new_cflags=
10756 cf_new_cppflags=
10757 cf_new_extra_cppflags=
10758
10759 for cf_add_cflags in $cf_pkgconfig_incs
10760 do
10761 case $cf_fix_cppflags in
10762 (no)
10763 case $cf_add_cflags in
10764 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10765 case $cf_add_cflags in
10766 (-D*)
10767 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10768
10769 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10770 && test -z "${cf_tst_cflags}" \
10771 && cf_fix_cppflags=yes
10772
10773 if test $cf_fix_cppflags = yes ; then
10774 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10775 continue
10776 elif test "${cf_tst_cflags}" = "\"'" ; then
10777 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10778 continue
10779 fi
10780 ;;
10781 esac
10782 case "$CPPFLAGS" in
10783 (*$cf_add_cflags)
10784 ;;
10785 (*)
10786 case $cf_add_cflags in
10787 (-D*)
10788 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10789
10790 CPPFLAGS=`echo "$CPPFLAGS" | \
10791 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10792 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10793
10794 ;;
10795 esac
10796 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10797 ;;
10798 esac
10799 ;;
10800 (*)
10801 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10802 ;;
10803 esac
10804 ;;
10805 (yes)
10806 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10807
10808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10809
10810 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10811 && test -z "${cf_tst_cflags}" \
10812 && cf_fix_cppflags=no
10813 ;;
10814 esac
10815 done
10816
10817 if test -n "$cf_new_cflags" ; then
10818
10819 CFLAGS="$CFLAGS $cf_new_cflags"
10820 fi
10821
10822 if test -n "$cf_new_cppflags" ; then
10823
10824 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10825 fi
10826
10827 if test -n "$cf_new_extra_cppflags" ; then
10828
10829 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10830 fi
10831
10832 cf_add_libs="$cf_pkgconfig_libs"
10833 # Filter out duplicates - this happens with badly-designed ".pc" files...
10834 for cf_add_1lib in $LIBS
10835 do
10836 for cf_add_2lib in $cf_add_libs
10837 do
10838 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10839 then
10840 cf_add_1lib=
10841 break
10842 fi
10843 done
10844 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10845 done
10846 LIBS="$cf_add_libs"
10847
10848 cat >>confdefs.h <<\EOF
10849 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
10850 EOF
10851
10852 else
10853 cf_pkgconfig_incs=
10854 cf_pkgconfig_libs=
10855
10856 echo "$as_me:10856: checking for XineramaQueryScreens in -lXinerama" >&5
10857 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
10858 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-lXinerama $LIBS"
10863 cat >conftest.$ac_ext <<_ACEOF
10864 #line 10864 "configure"
10865 #include "confdefs.h"
10866
10867 /* Override any gcc2 internal prototype to avoid an error. */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 /* We use char because int might match the return type of a gcc2
10872 builtin and then its argument prototype would still apply. */
10873 char XineramaQueryScreens ();
10874 int
10875 main ()
10876 {
10877 XineramaQueryScreens ();
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (eval echo "$as_me:10883: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>&5
10885 ac_status=$?
10886 echo "$as_me:10886: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (eval echo "$as_me:10889: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:10892: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 ac_cv_lib_Xinerama_XineramaQueryScreens=no
10899 fi
10900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10902 fi
10903 echo "$as_me:10903: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
10904 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
10905 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
10906
10907 cf_add_libs="-lXinerama"
10908 # Filter out duplicates - this happens with badly-designed ".pc" files...
10909 for cf_add_1lib in $LIBS
10910 do
10911 for cf_add_2lib in $cf_add_libs
10912 do
10913 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10914 then
10915 cf_add_1lib=
10916 break
10917 fi
10918 done
10919 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10920 done
10921 LIBS="$cf_add_libs"
10922
10923 for ac_header in \
10924 X11/extensions/Xinerama.h \
10925
10926 do
10927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10928 echo "$as_me:10928: checking for $ac_header" >&5
10929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line 10934 "configure"
10935 #include "confdefs.h"
10936 #include <$ac_header>
10937 _ACEOF
10938 if { (eval echo "$as_me:10938: \"$ac_cpp conftest.$ac_ext\"") >&5
10939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10940 ac_status=$?
10941 egrep -v '^ *\+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:10944: \$? = $ac_status" >&5
10945 (exit $ac_status); } >/dev/null; then
10946 if test -s conftest.err; then
10947 ac_cpp_err=$ac_c_preproc_warn_flag
10948 else
10949 ac_cpp_err=
10950 fi
10951 else
10952 ac_cpp_err=yes
10953 fi
10954 if test -z "$ac_cpp_err"; then
10955 eval "$as_ac_Header=yes"
10956 else
10957 echo "$as_me: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 eval "$as_ac_Header=no"
10960 fi
10961 rm -f conftest.err conftest.$ac_ext
10962 fi
10963 echo "$as_me:10963: result: `eval echo '${'$as_ac_Header'}'`" >&5
10964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10966 cat >>confdefs.h <<EOF
10967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10968 EOF
10969
10970 fi
10971 done
10972
10973 fi
10974
10975 fi
10976
10977 fi
10978
10979 cf_x_athena=${cf_x_athena:-Xaw}
10980
10981 echo "$as_me:10981: checking if you want to link with Xaw 3d library" >&5
10982 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10983 withval=
10984
10985 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10986 if test "${with_Xaw3d+set}" = set; then
10987 withval="$with_Xaw3d"
10988
10989 fi;
10990 if test "$withval" = yes ; then
10991 cf_x_athena=Xaw3d
10992 echo "$as_me:10992: result: yes" >&5
10993 echo "${ECHO_T}yes" >&6
10994 else
10995 echo "$as_me:10995: result: no" >&5
10996 echo "${ECHO_T}no" >&6
10997 fi
10998
10999 echo "$as_me:10999: checking if you want to link with Xaw 3d xft library" >&5
11000 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
11001 withval=
11002
11003 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
11004 if test "${with_Xaw3dxft+set}" = set; then
11005 withval="$with_Xaw3dxft"
11006
11007 fi;
11008 if test "$withval" = yes ; then
11009 cf_x_athena=Xaw3dxft
11010 echo "$as_me:11010: result: yes" >&5
11011 echo "${ECHO_T}yes" >&6
11012 else
11013 echo "$as_me:11013: result: no" >&5
11014 echo "${ECHO_T}no" >&6
11015 fi
11016
11017 echo "$as_me:11017: checking if you want to link with neXT Athena library" >&5
11018 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
11019 withval=
11020
11021 # Check whether --with-neXtaw or --without-neXtaw was given.
11022 if test "${with_neXtaw+set}" = set; then
11023 withval="$with_neXtaw"
11024
11025 fi;
11026 if test "$withval" = yes ; then
11027 cf_x_athena=neXtaw
11028 echo "$as_me:11028: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6
11030 else
11031 echo "$as_me:11031: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11033 fi
11034
11035 echo "$as_me:11035: checking if you want to link with Athena-Plus library" >&5
11036 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
11037 withval=
11038
11039 # Check whether --with-XawPlus or --without-XawPlus was given.
11040 if test "${with_XawPlus+set}" = set; then
11041 withval="$with_XawPlus"
11042
11043 fi;
11044 if test "$withval" = yes ; then
11045 cf_x_athena=XawPlus
11046 echo "$as_me:11046: result: yes" >&5
11047 echo "${ECHO_T}yes" >&6
11048 else
11049 echo "$as_me:11049: result: no" >&5
11050 echo "${ECHO_T}no" >&6
11051 fi
11052
11053 cf_x_athena_lib=""
11054
11055 if test "$PKG_CONFIG" != none ; then
11056 cf_athena_list=
11057 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
11058 for cf_athena_pkg in \
11059 $cf_athena_list \
11060 ${cf_x_athena} \
11061 ${cf_x_athena}-devel \
11062 lib${cf_x_athena} \
11063 lib${cf_x_athena}-devel
11064 do
11065
11066 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
11067 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
11068
11069 echo "${as_me:-configure}:11069: testing found package $cf_athena_pkg ..." 1>&5
11070
11071 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
11072 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
11073 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
11074
11075 echo "${as_me:-configure}:11075: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11076
11077 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
11078
11079 echo "${as_me:-configure}:11079: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
11080
11081 cf_fix_cppflags=no
11082 cf_new_cflags=
11083 cf_new_cppflags=
11084 cf_new_extra_cppflags=
11085
11086 for cf_add_cflags in $cf_pkgconfig_incs
11087 do
11088 case $cf_fix_cppflags in
11089 (no)
11090 case $cf_add_cflags in
11091 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11092 case $cf_add_cflags in
11093 (-D*)
11094 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11095
11096 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11097 && test -z "${cf_tst_cflags}" \
11098 && cf_fix_cppflags=yes
11099
11100 if test $cf_fix_cppflags = yes ; then
11101 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11102 continue
11103 elif test "${cf_tst_cflags}" = "\"'" ; then
11104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11105 continue
11106 fi
11107 ;;
11108 esac
11109 case "$CPPFLAGS" in
11110 (*$cf_add_cflags)
11111 ;;
11112 (*)
11113 case $cf_add_cflags in
11114 (-D*)
11115 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11116
11117 CPPFLAGS=`echo "$CPPFLAGS" | \
11118 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11119 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11120
11121 ;;
11122 esac
11123 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11124 ;;
11125 esac
11126 ;;
11127 (*)
11128 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11129 ;;
11130 esac
11131 ;;
11132 (yes)
11133 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11134
11135 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11136
11137 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11138 && test -z "${cf_tst_cflags}" \
11139 && cf_fix_cppflags=no
11140 ;;
11141 esac
11142 done
11143
11144 if test -n "$cf_new_cflags" ; then
11145
11146 CFLAGS="$CFLAGS $cf_new_cflags"
11147 fi
11148
11149 if test -n "$cf_new_cppflags" ; then
11150
11151 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11152 fi
11153
11154 if test -n "$cf_new_extra_cppflags" ; then
11155
11156 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11157 fi
11158
11159 cf_add_libs="$cf_pkgconfig_libs"
11160 # Filter out duplicates - this happens with badly-designed ".pc" files...
11161 for cf_add_1lib in $LIBS
11162 do
11163 for cf_add_2lib in $cf_add_libs
11164 do
11165 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11166 then
11167 cf_add_1lib=
11168 break
11169 fi
11170 done
11171 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11172 done
11173 LIBS="$cf_add_libs"
11174
11175 cf_x_athena_lib="$cf_pkgconfig_libs"
11176
11177 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11178
11179 cat >>confdefs.h <<EOF
11180 #define $cf_x_athena_LIBS 1
11181 EOF
11182
11183 for cf_trim_lib in Xmu Xt X11
11184 do
11185 case "$LIBS" in
11186 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11187 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11188 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11189
11190 echo "${as_me:-configure}:11190: testing ..trimmed $LIBS ..." 1>&5
11191
11192 ;;
11193 esac
11194 done
11195
11196 echo "$as_me:11196: checking for usable $cf_x_athena/Xmu package" >&5
11197 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
11198 if test "${cf_cv_xaw_compat+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201
11202 cat >conftest.$ac_ext <<_ACEOF
11203 #line 11203 "configure"
11204 #include "confdefs.h"
11205
11206 #include <X11/Xmu/CharSet.h>
11207
11208 int
11209 main ()
11210 {
11211
11212 int check = XmuCompareISOLatin1("big", "small")
11213
11214 ;
11215 return 0;
11216 }
11217 _ACEOF
11218 rm -f conftest.$ac_objext conftest$ac_exeext
11219 if { (eval echo "$as_me:11219: \"$ac_link\"") >&5
11220 (eval $ac_link) 2>&5
11221 ac_status=$?
11222 echo "$as_me:11222: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:11225: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:11228: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 cf_cv_xaw_compat=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 cat conftest.$ac_ext >&5
11234 cf_cv_xaw_compat=no
11235 fi
11236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11237 fi
11238 echo "$as_me:11238: result: $cf_cv_xaw_compat" >&5
11239 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
11240
11241 if test "$cf_cv_xaw_compat" = no
11242 then
11243 # workaround for broken ".pc" files...
11244 case "$cf_x_athena_lib" in
11245 (*-lXmu*)
11246 ;;
11247 (*)
11248 test -n "$verbose" && echo " work around broken package" 1>&6
11249
11250 echo "${as_me:-configure}:11250: testing work around broken package ..." 1>&5
11251
11252 cf_save_xmu="$LIBS"
11253 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
11254
11255 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
11256 test -n "$verbose" && echo " found package xmu" 1>&6
11257
11258 echo "${as_me:-configure}:11258: testing found package xmu ..." 1>&5
11259
11260 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
11261 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
11262 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
11263
11264 echo "${as_me:-configure}:11264: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11265
11266 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
11267
11268 echo "${as_me:-configure}:11268: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
11269
11270 cf_fix_cppflags=no
11271 cf_new_cflags=
11272 cf_new_cppflags=
11273 cf_new_extra_cppflags=
11274
11275 for cf_add_cflags in $cf_pkgconfig_incs
11276 do
11277 case $cf_fix_cppflags in
11278 (no)
11279 case $cf_add_cflags in
11280 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11281 case $cf_add_cflags in
11282 (-D*)
11283 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11284
11285 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11286 && test -z "${cf_tst_cflags}" \
11287 && cf_fix_cppflags=yes
11288
11289 if test $cf_fix_cppflags = yes ; then
11290 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11291 continue
11292 elif test "${cf_tst_cflags}" = "\"'" ; then
11293 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11294 continue
11295 fi
11296 ;;
11297 esac
11298 case "$CPPFLAGS" in
11299 (*$cf_add_cflags)
11300 ;;
11301 (*)
11302 case $cf_add_cflags in
11303 (-D*)
11304 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11305
11306 CPPFLAGS=`echo "$CPPFLAGS" | \
11307 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11308 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11309
11310 ;;
11311 esac
11312 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11313 ;;
11314 esac
11315 ;;
11316 (*)
11317 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11318 ;;
11319 esac
11320 ;;
11321 (yes)
11322 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11323
11324 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11325
11326 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11327 && test -z "${cf_tst_cflags}" \
11328 && cf_fix_cppflags=no
11329 ;;
11330 esac
11331 done
11332
11333 if test -n "$cf_new_cflags" ; then
11334
11335 CFLAGS="$CFLAGS $cf_new_cflags"
11336 fi
11337
11338 if test -n "$cf_new_cppflags" ; then
11339
11340 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11341 fi
11342
11343 if test -n "$cf_new_extra_cppflags" ; then
11344
11345 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11346 fi
11347
11348 cf_add_libs="$cf_pkgconfig_libs"
11349 # Filter out duplicates - this happens with badly-designed ".pc" files...
11350 for cf_add_1lib in $LIBS
11351 do
11352 for cf_add_2lib in $cf_add_libs
11353 do
11354 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11355 then
11356 cf_add_1lib=
11357 break
11358 fi
11359 done
11360 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11361 done
11362 LIBS="$cf_add_libs"
11363
11364 LIBS="$cf_save_xmu"
11365
11366 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11367
11368 echo "${as_me:-configure}:11368: testing ...before $LIBS ..." 1>&5
11369
11370 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
11371 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11372
11373 echo "${as_me:-configure}:11373: testing ...after $LIBS ..." 1>&5
11374
11375 else
11376 cf_pkgconfig_incs=
11377 cf_pkgconfig_libs=
11378
11379 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11380
11381 echo "${as_me:-configure}:11381: testing ...before $LIBS ..." 1>&5
11382
11383 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
11384 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11385
11386 echo "${as_me:-configure}:11386: testing ...after $LIBS ..." 1>&5
11387
11388 fi
11389
11390 for cf_trim_lib in Xmu Xt X11
11391 do
11392 case "$LIBS" in
11393 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11394 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11395 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11396
11397 echo "${as_me:-configure}:11397: testing ..trimmed $LIBS ..." 1>&5
11398
11399 ;;
11400 esac
11401 done
11402
11403 ;;
11404 esac
11405 fi
11406
11407 break
11408 else
11409 cf_pkgconfig_incs=
11410 cf_pkgconfig_libs=
11411 :
11412 fi
11413
11414 done
11415 fi
11416
11417 if test -z "$cf_x_athena_lib" ; then
11418
11419 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
11420 test -n "$verbose" && echo " found package Xext" 1>&6
11421
11422 echo "${as_me:-configure}:11422: testing found package Xext ..." 1>&5
11423
11424 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
11425 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
11426 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
11427
11428 echo "${as_me:-configure}:11428: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11429
11430 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
11431
11432 echo "${as_me:-configure}:11432: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
11433
11434 cf_fix_cppflags=no
11435 cf_new_cflags=
11436 cf_new_cppflags=
11437 cf_new_extra_cppflags=
11438
11439 for cf_add_cflags in $cf_pkgconfig_incs
11440 do
11441 case $cf_fix_cppflags in
11442 (no)
11443 case $cf_add_cflags in
11444 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11445 case $cf_add_cflags in
11446 (-D*)
11447 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11448
11449 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11450 && test -z "${cf_tst_cflags}" \
11451 && cf_fix_cppflags=yes
11452
11453 if test $cf_fix_cppflags = yes ; then
11454 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11455 continue
11456 elif test "${cf_tst_cflags}" = "\"'" ; then
11457 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11458 continue
11459 fi
11460 ;;
11461 esac
11462 case "$CPPFLAGS" in
11463 (*$cf_add_cflags)
11464 ;;
11465 (*)
11466 case $cf_add_cflags in
11467 (-D*)
11468 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11469
11470 CPPFLAGS=`echo "$CPPFLAGS" | \
11471 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11472 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11473
11474 ;;
11475 esac
11476 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11477 ;;
11478 esac
11479 ;;
11480 (*)
11481 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11482 ;;
11483 esac
11484 ;;
11485 (yes)
11486 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11487
11488 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11489
11490 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11491 && test -z "${cf_tst_cflags}" \
11492 && cf_fix_cppflags=no
11493 ;;
11494 esac
11495 done
11496
11497 if test -n "$cf_new_cflags" ; then
11498
11499 CFLAGS="$CFLAGS $cf_new_cflags"
11500 fi
11501
11502 if test -n "$cf_new_cppflags" ; then
11503
11504 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11505 fi
11506
11507 if test -n "$cf_new_extra_cppflags" ; then
11508
11509 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11510 fi
11511
11512 cf_add_libs="$cf_pkgconfig_libs"
11513 # Filter out duplicates - this happens with badly-designed ".pc" files...
11514 for cf_add_1lib in $LIBS
11515 do
11516 for cf_add_2lib in $cf_add_libs
11517 do
11518 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11519 then
11520 cf_add_1lib=
11521 break
11522 fi
11523 done
11524 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11525 done
11526 LIBS="$cf_add_libs"
11527
11528 :
11529 else
11530 cf_pkgconfig_incs=
11531 cf_pkgconfig_libs=
11532
11533 echo "$as_me:11533: checking for XextCreateExtension in -lXext" >&5
11534 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
11535 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lXext $LIBS"
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line 11541 "configure"
11542 #include "confdefs.h"
11543
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 /* We use char because int might match the return type of a gcc2
11549 builtin and then its argument prototype would still apply. */
11550 char XextCreateExtension ();
11551 int
11552 main ()
11553 {
11554 XextCreateExtension ();
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (eval echo "$as_me:11560: \"$ac_link\"") >&5
11561 (eval $ac_link) 2>&5
11562 ac_status=$?
11563 echo "$as_me:11563: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -s conftest$ac_exeext'
11566 { (eval echo "$as_me:11566: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:11569: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_lib_Xext_XextCreateExtension=yes
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11575 ac_cv_lib_Xext_XextCreateExtension=no
11576 fi
11577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11578 LIBS=$ac_check_lib_save_LIBS
11579 fi
11580 echo "$as_me:11580: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
11581 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
11582 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
11583
11584 cf_add_libs="-lXext"
11585 # Filter out duplicates - this happens with badly-designed ".pc" files...
11586 for cf_add_1lib in $LIBS
11587 do
11588 for cf_add_2lib in $cf_add_libs
11589 do
11590 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11591 then
11592 cf_add_1lib=
11593 break
11594 fi
11595 done
11596 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11597 done
11598 LIBS="$cf_add_libs"
11599
11600 fi
11601
11602 fi
11603
11604 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
11605 # in some cases has installed dummy files in the former, other cases replaced
11606 # it with a link to the new location). This complicates the configure script.
11607 # Check for that pitfall, and recover using pkg-config
11608 #
11609 # If none of these are set, the configuration is almost certainly broken.
11610 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
11611 then
11612
11613 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11614 test -n "$verbose" && echo " found package x11" 1>&6
11615
11616 echo "${as_me:-configure}:11616: testing found package x11 ..." 1>&5
11617
11618 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11619 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11620 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11621
11622 echo "${as_me:-configure}:11622: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11623
11624 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11625
11626 echo "${as_me:-configure}:11626: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11627
11628 cf_fix_cppflags=no
11629 cf_new_cflags=
11630 cf_new_cppflags=
11631 cf_new_extra_cppflags=
11632
11633 for cf_add_cflags in $cf_pkgconfig_incs
11634 do
11635 case $cf_fix_cppflags in
11636 (no)
11637 case $cf_add_cflags in
11638 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11639 case $cf_add_cflags in
11640 (-D*)
11641 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11642
11643 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11644 && test -z "${cf_tst_cflags}" \
11645 && cf_fix_cppflags=yes
11646
11647 if test $cf_fix_cppflags = yes ; then
11648 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11649 continue
11650 elif test "${cf_tst_cflags}" = "\"'" ; then
11651 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11652 continue
11653 fi
11654 ;;
11655 esac
11656 case "$CPPFLAGS" in
11657 (*$cf_add_cflags)
11658 ;;
11659 (*)
11660 case $cf_add_cflags in
11661 (-D*)
11662 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11663
11664 CPPFLAGS=`echo "$CPPFLAGS" | \
11665 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11666 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11667
11668 ;;
11669 esac
11670 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11671 ;;
11672 esac
11673 ;;
11674 (*)
11675 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11676 ;;
11677 esac
11678 ;;
11679 (yes)
11680 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11681
11682 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11683
11684 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11685 && test -z "${cf_tst_cflags}" \
11686 && cf_fix_cppflags=no
11687 ;;
11688 esac
11689 done
11690
11691 if test -n "$cf_new_cflags" ; then
11692
11693 CFLAGS="$CFLAGS $cf_new_cflags"
11694 fi
11695
11696 if test -n "$cf_new_cppflags" ; then
11697
11698 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11699 fi
11700
11701 if test -n "$cf_new_extra_cppflags" ; then
11702
11703 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11704 fi
11705
11706 cf_add_libs="$cf_pkgconfig_libs"
11707 # Filter out duplicates - this happens with badly-designed ".pc" files...
11708 for cf_add_1lib in $LIBS
11709 do
11710 for cf_add_2lib in $cf_add_libs
11711 do
11712 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11713 then
11714 cf_add_1lib=
11715 break
11716 fi
11717 done
11718 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11719 done
11720 LIBS="$cf_add_libs"
11721
11722 :
11723 else
11724 cf_pkgconfig_incs=
11725 cf_pkgconfig_libs=
11726 { echo "$as_me:11726: WARNING: unable to find X11 library" >&5
11727 echo "$as_me: WARNING: unable to find X11 library" >&2;}
11728 fi
11729
11730 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11731 test -n "$verbose" && echo " found package ice" 1>&6
11732
11733 echo "${as_me:-configure}:11733: testing found package ice ..." 1>&5
11734
11735 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11736 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11737 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11738
11739 echo "${as_me:-configure}:11739: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11740
11741 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11742
11743 echo "${as_me:-configure}:11743: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11744
11745 cf_fix_cppflags=no
11746 cf_new_cflags=
11747 cf_new_cppflags=
11748 cf_new_extra_cppflags=
11749
11750 for cf_add_cflags in $cf_pkgconfig_incs
11751 do
11752 case $cf_fix_cppflags in
11753 (no)
11754 case $cf_add_cflags in
11755 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11756 case $cf_add_cflags in
11757 (-D*)
11758 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11759
11760 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11761 && test -z "${cf_tst_cflags}" \
11762 && cf_fix_cppflags=yes
11763
11764 if test $cf_fix_cppflags = yes ; then
11765 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11766 continue
11767 elif test "${cf_tst_cflags}" = "\"'" ; then
11768 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11769 continue
11770 fi
11771 ;;
11772 esac
11773 case "$CPPFLAGS" in
11774 (*$cf_add_cflags)
11775 ;;
11776 (*)
11777 case $cf_add_cflags in
11778 (-D*)
11779 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11780
11781 CPPFLAGS=`echo "$CPPFLAGS" | \
11782 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11783 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11784
11785 ;;
11786 esac
11787 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11788 ;;
11789 esac
11790 ;;
11791 (*)
11792 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11793 ;;
11794 esac
11795 ;;
11796 (yes)
11797 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11798
11799 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11800
11801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11802 && test -z "${cf_tst_cflags}" \
11803 && cf_fix_cppflags=no
11804 ;;
11805 esac
11806 done
11807
11808 if test -n "$cf_new_cflags" ; then
11809
11810 CFLAGS="$CFLAGS $cf_new_cflags"
11811 fi
11812
11813 if test -n "$cf_new_cppflags" ; then
11814
11815 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11816 fi
11817
11818 if test -n "$cf_new_extra_cppflags" ; then
11819
11820 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11821 fi
11822
11823 cf_add_libs="$cf_pkgconfig_libs"
11824 # Filter out duplicates - this happens with badly-designed ".pc" files...
11825 for cf_add_1lib in $LIBS
11826 do
11827 for cf_add_2lib in $cf_add_libs
11828 do
11829 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11830 then
11831 cf_add_1lib=
11832 break
11833 fi
11834 done
11835 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11836 done
11837 LIBS="$cf_add_libs"
11838
11839 :
11840 else
11841 cf_pkgconfig_incs=
11842 cf_pkgconfig_libs=
11843 { echo "$as_me:11843: WARNING: unable to find ICE library" >&5
11844 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11845 fi
11846
11847 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11848 test -n "$verbose" && echo " found package sm" 1>&6
11849
11850 echo "${as_me:-configure}:11850: testing found package sm ..." 1>&5
11851
11852 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11853 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11854 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11855
11856 echo "${as_me:-configure}:11856: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11857
11858 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11859
11860 echo "${as_me:-configure}:11860: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11861
11862 cf_fix_cppflags=no
11863 cf_new_cflags=
11864 cf_new_cppflags=
11865 cf_new_extra_cppflags=
11866
11867 for cf_add_cflags in $cf_pkgconfig_incs
11868 do
11869 case $cf_fix_cppflags in
11870 (no)
11871 case $cf_add_cflags in
11872 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11873 case $cf_add_cflags in
11874 (-D*)
11875 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11876
11877 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11878 && test -z "${cf_tst_cflags}" \
11879 && cf_fix_cppflags=yes
11880
11881 if test $cf_fix_cppflags = yes ; then
11882 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11883 continue
11884 elif test "${cf_tst_cflags}" = "\"'" ; then
11885 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11886 continue
11887 fi
11888 ;;
11889 esac
11890 case "$CPPFLAGS" in
11891 (*$cf_add_cflags)
11892 ;;
11893 (*)
11894 case $cf_add_cflags in
11895 (-D*)
11896 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11897
11898 CPPFLAGS=`echo "$CPPFLAGS" | \
11899 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11900 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11901
11902 ;;
11903 esac
11904 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11905 ;;
11906 esac
11907 ;;
11908 (*)
11909 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11910 ;;
11911 esac
11912 ;;
11913 (yes)
11914 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11915
11916 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11917
11918 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11919 && test -z "${cf_tst_cflags}" \
11920 && cf_fix_cppflags=no
11921 ;;
11922 esac
11923 done
11924
11925 if test -n "$cf_new_cflags" ; then
11926
11927 CFLAGS="$CFLAGS $cf_new_cflags"
11928 fi
11929
11930 if test -n "$cf_new_cppflags" ; then
11931
11932 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11933 fi
11934
11935 if test -n "$cf_new_extra_cppflags" ; then
11936
11937 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11938 fi
11939
11940 cf_add_libs="$cf_pkgconfig_libs"
11941 # Filter out duplicates - this happens with badly-designed ".pc" files...
11942 for cf_add_1lib in $LIBS
11943 do
11944 for cf_add_2lib in $cf_add_libs
11945 do
11946 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11947 then
11948 cf_add_1lib=
11949 break
11950 fi
11951 done
11952 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11953 done
11954 LIBS="$cf_add_libs"
11955
11956 :
11957 else
11958 cf_pkgconfig_incs=
11959 cf_pkgconfig_libs=
11960 { echo "$as_me:11960: WARNING: unable to find SM library" >&5
11961 echo "$as_me: WARNING: unable to find SM library" >&2;}
11962 fi
11963
11964 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11965 test -n "$verbose" && echo " found package xt" 1>&6
11966
11967 echo "${as_me:-configure}:11967: testing found package xt ..." 1>&5
11968
11969 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11970 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11971 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11972
11973 echo "${as_me:-configure}:11973: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11974
11975 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11976
11977 echo "${as_me:-configure}:11977: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11978
11979 cf_fix_cppflags=no
11980 cf_new_cflags=
11981 cf_new_cppflags=
11982 cf_new_extra_cppflags=
11983
11984 for cf_add_cflags in $cf_pkgconfig_incs
11985 do
11986 case $cf_fix_cppflags in
11987 (no)
11988 case $cf_add_cflags in
11989 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11990 case $cf_add_cflags in
11991 (-D*)
11992 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11993
11994 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11995 && test -z "${cf_tst_cflags}" \
11996 && cf_fix_cppflags=yes
11997
11998 if test $cf_fix_cppflags = yes ; then
11999 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12000 continue
12001 elif test "${cf_tst_cflags}" = "\"'" ; then
12002 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12003 continue
12004 fi
12005 ;;
12006 esac
12007 case "$CPPFLAGS" in
12008 (*$cf_add_cflags)
12009 ;;
12010 (*)
12011 case $cf_add_cflags in
12012 (-D*)
12013 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12014
12015 CPPFLAGS=`echo "$CPPFLAGS" | \
12016 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12017 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12018
12019 ;;
12020 esac
12021 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12022 ;;
12023 esac
12024 ;;
12025 (*)
12026 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12027 ;;
12028 esac
12029 ;;
12030 (yes)
12031 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12032
12033 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12034
12035 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12036 && test -z "${cf_tst_cflags}" \
12037 && cf_fix_cppflags=no
12038 ;;
12039 esac
12040 done
12041
12042 if test -n "$cf_new_cflags" ; then
12043
12044 CFLAGS="$CFLAGS $cf_new_cflags"
12045 fi
12046
12047 if test -n "$cf_new_cppflags" ; then
12048
12049 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12050 fi
12051
12052 if test -n "$cf_new_extra_cppflags" ; then
12053
12054 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12055 fi
12056
12057 cf_add_libs="$cf_pkgconfig_libs"
12058 # Filter out duplicates - this happens with badly-designed ".pc" files...
12059 for cf_add_1lib in $LIBS
12060 do
12061 for cf_add_2lib in $cf_add_libs
12062 do
12063 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12064 then
12065 cf_add_1lib=
12066 break
12067 fi
12068 done
12069 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12070 done
12071 LIBS="$cf_add_libs"
12072
12073 :
12074 else
12075 cf_pkgconfig_incs=
12076 cf_pkgconfig_libs=
12077 { echo "$as_me:12077: WARNING: unable to find Xt library" >&5
12078 echo "$as_me: WARNING: unable to find Xt library" >&2;}
12079 fi
12080
12081 fi
12082
12083 cf_have_X_LIBS=no
12084
12085 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
12086 test -n "$verbose" && echo " found package xt" 1>&6
12087
12088 echo "${as_me:-configure}:12088: testing found package xt ..." 1>&5
12089
12090 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
12091 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
12092 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
12093
12094 echo "${as_me:-configure}:12094: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12095
12096 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
12097
12098 echo "${as_me:-configure}:12098: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
12099
12100 cf_fix_cppflags=no
12101 cf_new_cflags=
12102 cf_new_cppflags=
12103 cf_new_extra_cppflags=
12104
12105 for cf_add_cflags in $cf_pkgconfig_incs
12106 do
12107 case $cf_fix_cppflags in
12108 (no)
12109 case $cf_add_cflags in
12110 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12111 case $cf_add_cflags in
12112 (-D*)
12113 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12114
12115 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12116 && test -z "${cf_tst_cflags}" \
12117 && cf_fix_cppflags=yes
12118
12119 if test $cf_fix_cppflags = yes ; then
12120 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12121 continue
12122 elif test "${cf_tst_cflags}" = "\"'" ; then
12123 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12124 continue
12125 fi
12126 ;;
12127 esac
12128 case "$CPPFLAGS" in
12129 (*$cf_add_cflags)
12130 ;;
12131 (*)
12132 case $cf_add_cflags in
12133 (-D*)
12134 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12135
12136 CPPFLAGS=`echo "$CPPFLAGS" | \
12137 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12138 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12139
12140 ;;
12141 esac
12142 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12143 ;;
12144 esac
12145 ;;
12146 (*)
12147 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12148 ;;
12149 esac
12150 ;;
12151 (yes)
12152 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12153
12154 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12155
12156 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12157 && test -z "${cf_tst_cflags}" \
12158 && cf_fix_cppflags=no
12159 ;;
12160 esac
12161 done
12162
12163 if test -n "$cf_new_cflags" ; then
12164
12165 CFLAGS="$CFLAGS $cf_new_cflags"
12166 fi
12167
12168 if test -n "$cf_new_cppflags" ; then
12169
12170 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12171 fi
12172
12173 if test -n "$cf_new_extra_cppflags" ; then
12174
12175 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12176 fi
12177
12178 cf_add_libs="$cf_pkgconfig_libs"
12179 # Filter out duplicates - this happens with badly-designed ".pc" files...
12180 for cf_add_1lib in $LIBS
12181 do
12182 for cf_add_2lib in $cf_add_libs
12183 do
12184 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12185 then
12186 cf_add_1lib=
12187 break
12188 fi
12189 done
12190 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12191 done
12192 LIBS="$cf_add_libs"
12193
12194 case "x$LIBS" in
12195 (*-lX11*)
12196 ;;
12197 (*)
12198 # we have an "xt" package, but it may omit Xt's dependency on X11
12199 echo "$as_me:12199: checking for usable X dependency" >&5
12200 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
12201 if test "${cf_cv_xt_x11_compat+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204
12205 cat >conftest.$ac_ext <<_ACEOF
12206 #line 12206 "configure"
12207 #include "confdefs.h"
12208
12209 #include <X11/Xlib.h>
12210
12211 int
12212 main ()
12213 {
12214
12215 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
12216 int rc2 = XClearWindow((Display*) 0, (Window) 0);
12217 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
12218 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
12219
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:12225: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>&5
12227 ac_status=$?
12228 echo "$as_me:12228: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (eval echo "$as_me:12231: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:12234: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 cf_cv_xt_x11_compat=yes
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12240 cf_cv_xt_x11_compat=no
12241 fi
12242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12243 fi
12244 echo "$as_me:12244: result: $cf_cv_xt_x11_compat" >&5
12245 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
12246 if test "$cf_cv_xt_x11_compat" = no
12247 then
12248 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
12249
12250 echo "${as_me:-configure}:12250: testing work around broken X11 dependency ..." 1>&5
12251
12252 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
12253
12254 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
12255 test -n "$verbose" && echo " found package x11" 1>&6
12256
12257 echo "${as_me:-configure}:12257: testing found package x11 ..." 1>&5
12258
12259 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
12260 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
12261 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
12262
12263 echo "${as_me:-configure}:12263: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12264
12265 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
12266
12267 echo "${as_me:-configure}:12267: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
12268
12269 cf_fix_cppflags=no
12270 cf_new_cflags=
12271 cf_new_cppflags=
12272 cf_new_extra_cppflags=
12273
12274 for cf_add_cflags in $cf_pkgconfig_incs
12275 do
12276 case $cf_fix_cppflags in
12277 (no)
12278 case $cf_add_cflags in
12279 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12280 case $cf_add_cflags in
12281 (-D*)
12282 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12283
12284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12285 && test -z "${cf_tst_cflags}" \
12286 && cf_fix_cppflags=yes
12287
12288 if test $cf_fix_cppflags = yes ; then
12289 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12290 continue
12291 elif test "${cf_tst_cflags}" = "\"'" ; then
12292 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12293 continue
12294 fi
12295 ;;
12296 esac
12297 case "$CPPFLAGS" in
12298 (*$cf_add_cflags)
12299 ;;
12300 (*)
12301 case $cf_add_cflags in
12302 (-D*)
12303 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12304
12305 CPPFLAGS=`echo "$CPPFLAGS" | \
12306 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12307 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12308
12309 ;;
12310 esac
12311 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12312 ;;
12313 esac
12314 ;;
12315 (*)
12316 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12317 ;;
12318 esac
12319 ;;
12320 (yes)
12321 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12322
12323 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12324
12325 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12326 && test -z "${cf_tst_cflags}" \
12327 && cf_fix_cppflags=no
12328 ;;
12329 esac
12330 done
12331
12332 if test -n "$cf_new_cflags" ; then
12333
12334 CFLAGS="$CFLAGS $cf_new_cflags"
12335 fi
12336
12337 if test -n "$cf_new_cppflags" ; then
12338
12339 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12340 fi
12341
12342 if test -n "$cf_new_extra_cppflags" ; then
12343
12344 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12345 fi
12346
12347 cf_add_libs="$cf_pkgconfig_libs"
12348 # Filter out duplicates - this happens with badly-designed ".pc" files...
12349 for cf_add_1lib in $LIBS
12350 do
12351 for cf_add_2lib in $cf_add_libs
12352 do
12353 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12354 then
12355 cf_add_1lib=
12356 break
12357 fi
12358 done
12359 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12360 done
12361 LIBS="$cf_add_libs"
12362
12363 :
12364 else
12365 cf_pkgconfig_incs=
12366 cf_pkgconfig_libs=
12367
12368 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12369
12370 echo "${as_me:-configure}:12370: testing ...before $LIBS ..." 1>&5
12371
12372 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
12373 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12374
12375 echo "${as_me:-configure}:12375: testing ...after $LIBS ..." 1>&5
12376
12377 fi
12378
12379 fi
12380 ;;
12381 esac
12382
12383 echo "$as_me:12383: checking for usable X Toolkit package" >&5
12384 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
12385 if test "${cf_cv_xt_ice_compat+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388
12389 cat >conftest.$ac_ext <<_ACEOF
12390 #line 12390 "configure"
12391 #include "confdefs.h"
12392
12393 #include <X11/Shell.h>
12394
12395 int
12396 main ()
12397 {
12398 int num = IceConnectionNumber(0)
12399
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (eval echo "$as_me:12405: \"$ac_link\"") >&5
12406 (eval $ac_link) 2>&5
12407 ac_status=$?
12408 echo "$as_me:12408: \$? = $ac_status" >&5
12409 (exit $ac_status); } &&
12410 { ac_try='test -s conftest$ac_exeext'
12411 { (eval echo "$as_me:12411: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:12414: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 cf_cv_xt_ice_compat=yes
12417 else
12418 echo "$as_me: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 cf_cv_xt_ice_compat=no
12421 fi
12422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12423 fi
12424 echo "$as_me:12424: result: $cf_cv_xt_ice_compat" >&5
12425 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
12426
12427 if test "$cf_cv_xt_ice_compat" = no
12428 then
12429 # workaround for broken ".pc" files used for X Toolkit.
12430 case "x$X_PRE_LIBS" in
12431 (*-lICE*)
12432 case "x$LIBS" in
12433 (*-lICE*)
12434 ;;
12435 (*)
12436 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
12437
12438 echo "${as_me:-configure}:12438: testing work around broken ICE dependency ..." 1>&5
12439
12440 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
12441 test -n "$verbose" && echo " found package ice" 1>&6
12442
12443 echo "${as_me:-configure}:12443: testing found package ice ..." 1>&5
12444
12445 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
12446 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
12447 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
12448
12449 echo "${as_me:-configure}:12449: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12450
12451 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
12452
12453 echo "${as_me:-configure}:12453: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
12454
12455 cf_fix_cppflags=no
12456 cf_new_cflags=
12457 cf_new_cppflags=
12458 cf_new_extra_cppflags=
12459
12460 for cf_add_cflags in $cf_pkgconfig_incs
12461 do
12462 case $cf_fix_cppflags in
12463 (no)
12464 case $cf_add_cflags in
12465 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12466 case $cf_add_cflags in
12467 (-D*)
12468 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12469
12470 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12471 && test -z "${cf_tst_cflags}" \
12472 && cf_fix_cppflags=yes
12473
12474 if test $cf_fix_cppflags = yes ; then
12475 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12476 continue
12477 elif test "${cf_tst_cflags}" = "\"'" ; then
12478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12479 continue
12480 fi
12481 ;;
12482 esac
12483 case "$CPPFLAGS" in
12484 (*$cf_add_cflags)
12485 ;;
12486 (*)
12487 case $cf_add_cflags in
12488 (-D*)
12489 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12490
12491 CPPFLAGS=`echo "$CPPFLAGS" | \
12492 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12493 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12494
12495 ;;
12496 esac
12497 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12498 ;;
12499 esac
12500 ;;
12501 (*)
12502 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12503 ;;
12504 esac
12505 ;;
12506 (yes)
12507 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12508
12509 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12510
12511 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12512 && test -z "${cf_tst_cflags}" \
12513 && cf_fix_cppflags=no
12514 ;;
12515 esac
12516 done
12517
12518 if test -n "$cf_new_cflags" ; then
12519
12520 CFLAGS="$CFLAGS $cf_new_cflags"
12521 fi
12522
12523 if test -n "$cf_new_cppflags" ; then
12524
12525 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12526 fi
12527
12528 if test -n "$cf_new_extra_cppflags" ; then
12529
12530 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12531 fi
12532
12533 cf_add_libs="$cf_pkgconfig_libs"
12534 # Filter out duplicates - this happens with badly-designed ".pc" files...
12535 for cf_add_1lib in $LIBS
12536 do
12537 for cf_add_2lib in $cf_add_libs
12538 do
12539 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12540 then
12541 cf_add_1lib=
12542 break
12543 fi
12544 done
12545 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12546 done
12547 LIBS="$cf_add_libs"
12548
12549 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12550 test -n "$verbose" && echo " found package sm" 1>&6
12551
12552 echo "${as_me:-configure}:12552: testing found package sm ..." 1>&5
12553
12554 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12555 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12556 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12557
12558 echo "${as_me:-configure}:12558: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12559
12560 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12561
12562 echo "${as_me:-configure}:12562: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12563
12564 cf_fix_cppflags=no
12565 cf_new_cflags=
12566 cf_new_cppflags=
12567 cf_new_extra_cppflags=
12568
12569 for cf_add_cflags in $cf_pkgconfig_incs
12570 do
12571 case $cf_fix_cppflags in
12572 (no)
12573 case $cf_add_cflags in
12574 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12575 case $cf_add_cflags in
12576 (-D*)
12577 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12578
12579 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12580 && test -z "${cf_tst_cflags}" \
12581 && cf_fix_cppflags=yes
12582
12583 if test $cf_fix_cppflags = yes ; then
12584 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12585 continue
12586 elif test "${cf_tst_cflags}" = "\"'" ; then
12587 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12588 continue
12589 fi
12590 ;;
12591 esac
12592 case "$CPPFLAGS" in
12593 (*$cf_add_cflags)
12594 ;;
12595 (*)
12596 case $cf_add_cflags in
12597 (-D*)
12598 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12599
12600 CPPFLAGS=`echo "$CPPFLAGS" | \
12601 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12602 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12603
12604 ;;
12605 esac
12606 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12607 ;;
12608 esac
12609 ;;
12610 (*)
12611 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12612 ;;
12613 esac
12614 ;;
12615 (yes)
12616 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12617
12618 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12619
12620 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12621 && test -z "${cf_tst_cflags}" \
12622 && cf_fix_cppflags=no
12623 ;;
12624 esac
12625 done
12626
12627 if test -n "$cf_new_cflags" ; then
12628
12629 CFLAGS="$CFLAGS $cf_new_cflags"
12630 fi
12631
12632 if test -n "$cf_new_cppflags" ; then
12633
12634 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12635 fi
12636
12637 if test -n "$cf_new_extra_cppflags" ; then
12638
12639 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12640 fi
12641
12642 cf_add_libs="$cf_pkgconfig_libs"
12643 # Filter out duplicates - this happens with badly-designed ".pc" files...
12644 for cf_add_1lib in $LIBS
12645 do
12646 for cf_add_2lib in $cf_add_libs
12647 do
12648 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12649 then
12650 cf_add_1lib=
12651 break
12652 fi
12653 done
12654 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12655 done
12656 LIBS="$cf_add_libs"
12657
12658 :
12659 else
12660 cf_pkgconfig_incs=
12661 cf_pkgconfig_libs=
12662 :
12663 fi
12664
12665 else
12666 cf_pkgconfig_incs=
12667 cf_pkgconfig_libs=
12668
12669 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12670
12671 echo "${as_me:-configure}:12671: testing ...before $LIBS ..." 1>&5
12672
12673 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
12674 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12675
12676 echo "${as_me:-configure}:12676: testing ...after $LIBS ..." 1>&5
12677
12678 fi
12679
12680 ;;
12681 esac
12682 ;;
12683 esac
12684 fi
12685
12686 cf_have_X_LIBS=yes
12687
12688 else
12689 cf_pkgconfig_incs=
12690 cf_pkgconfig_libs=
12691
12692 LDFLAGS="$X_LIBS $LDFLAGS"
12693
12694 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12695
12696 echo "${as_me:-configure}:12696: testing checking additions to CFLAGS ..." 1>&5
12697
12698 cf_check_cflags="$CFLAGS"
12699 cf_check_cppflags="$CPPFLAGS"
12700
12701 cf_fix_cppflags=no
12702 cf_new_cflags=
12703 cf_new_cppflags=
12704 cf_new_extra_cppflags=
12705
12706 for cf_add_cflags in $X_CFLAGS
12707 do
12708 case $cf_fix_cppflags in
12709 (no)
12710 case $cf_add_cflags in
12711 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12712 case $cf_add_cflags in
12713 (-D*)
12714 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12715
12716 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12717 && test -z "${cf_tst_cflags}" \
12718 && cf_fix_cppflags=yes
12719
12720 if test $cf_fix_cppflags = yes ; then
12721 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12722 continue
12723 elif test "${cf_tst_cflags}" = "\"'" ; then
12724 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12725 continue
12726 fi
12727 ;;
12728 esac
12729 case "$CPPFLAGS" in
12730 (*$cf_add_cflags)
12731 ;;
12732 (*)
12733 case $cf_add_cflags in
12734 (-D*)
12735 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12736
12737 CPPFLAGS=`echo "$CPPFLAGS" | \
12738 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12739 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12740
12741 ;;
12742 esac
12743 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12744 ;;
12745 esac
12746 ;;
12747 (*)
12748 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12749 ;;
12750 esac
12751 ;;
12752 (yes)
12753 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12754
12755 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12756
12757 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12758 && test -z "${cf_tst_cflags}" \
12759 && cf_fix_cppflags=no
12760 ;;
12761 esac
12762 done
12763
12764 if test -n "$cf_new_cflags" ; then
12765 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12766
12767 echo "${as_me:-configure}:12767: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12768
12769 CFLAGS="$CFLAGS $cf_new_cflags"
12770 fi
12771
12772 if test -n "$cf_new_cppflags" ; then
12773 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12774
12775 echo "${as_me:-configure}:12775: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12776
12777 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12778 fi
12779
12780 if test -n "$cf_new_extra_cppflags" ; then
12781 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12782
12783 echo "${as_me:-configure}:12783: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12784
12785 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12786 fi
12787
12788 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12789 cat >conftest.$ac_ext <<_ACEOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12792 #include <stdio.h>
12793 int
12794 main ()
12795 {
12796 printf("Hello world");
12797 ;
12798 return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (eval echo "$as_me:12802: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>&5
12804 ac_status=$?
12805 echo "$as_me:12805: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -s conftest$ac_exeext'
12808 { (eval echo "$as_me:12808: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:12811: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 :
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 cat conftest.$ac_ext >&5
12817 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12818
12819 echo "${as_me:-configure}:12819: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12820
12821 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12822 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12823
12824 echo "${as_me:-configure}:12824: testing but keeping change to \$CPPFLAGS ..." 1>&5
12825
12826 fi
12827 CFLAGS="$cf_check_flags"
12828 fi
12829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12830 fi
12831
12832 echo "$as_me:12832: checking for XOpenDisplay" >&5
12833 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12834 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 cat >conftest.$ac_ext <<_ACEOF
12838 #line 12838 "configure"
12839 #include "confdefs.h"
12840 /* System header to define __stub macros and hopefully few prototypes,
12841 which can conflict with char XOpenDisplay (); below. */
12842 #include <assert.h>
12843 /* Override any gcc2 internal prototype to avoid an error. */
12844 #ifdef __cplusplus
12845 extern "C"
12846 #endif
12847 /* We use char because int might match the return type of a gcc2
12848 builtin and then its argument prototype would still apply. */
12849 char XOpenDisplay ();
12850 char (*f) ();
12851
12852 int
12853 main ()
12854 {
12855 /* The GNU C library defines this for functions which it implements
12856 to always fail with ENOSYS. Some functions are actually named
12857 something starting with __ and the normal name is an alias. */
12858 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
12859 choke me
12860 #else
12861 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12862 #endif
12863
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (eval echo "$as_me:12869: \"$ac_link\"") >&5
12870 (eval $ac_link) 2>&5
12871 ac_status=$?
12872 echo "$as_me:12872: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (eval echo "$as_me:12875: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:12878: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880 ac_cv_func_XOpenDisplay=yes
12881 else
12882 echo "$as_me: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12884 ac_cv_func_XOpenDisplay=no
12885 fi
12886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12887 fi
12888 echo "$as_me:12888: result: $ac_cv_func_XOpenDisplay" >&5
12889 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
12890 if test $ac_cv_func_XOpenDisplay = yes; then
12891 :
12892 else
12893
12894 echo "$as_me:12894: checking for XOpenDisplay in -lX11" >&5
12895 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12896 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 ac_check_lib_save_LIBS=$LIBS
12900 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12901 cat >conftest.$ac_ext <<_ACEOF
12902 #line 12902 "configure"
12903 #include "confdefs.h"
12904
12905 /* Override any gcc2 internal prototype to avoid an error. */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 /* We use char because int might match the return type of a gcc2
12910 builtin and then its argument prototype would still apply. */
12911 char XOpenDisplay ();
12912 int
12913 main ()
12914 {
12915 XOpenDisplay ();
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (eval echo "$as_me:12921: \"$ac_link\"") >&5
12922 (eval $ac_link) 2>&5
12923 ac_status=$?
12924 echo "$as_me:12924: \$? = $ac_status" >&5
12925 (exit $ac_status); } &&
12926 { ac_try='test -s conftest$ac_exeext'
12927 { (eval echo "$as_me:12927: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:12930: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_lib_X11_XOpenDisplay=yes
12933 else
12934 echo "$as_me: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12936 ac_cv_lib_X11_XOpenDisplay=no
12937 fi
12938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12940 fi
12941 echo "$as_me:12941: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12942 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12943 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12944
12945 cf_add_libs="-lX11"
12946 # Filter out duplicates - this happens with badly-designed ".pc" files...
12947 for cf_add_1lib in $LIBS
12948 do
12949 for cf_add_2lib in $cf_add_libs
12950 do
12951 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12952 then
12953 cf_add_1lib=
12954 break
12955 fi
12956 done
12957 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12958 done
12959 LIBS="$cf_add_libs"
12960
12961 fi
12962
12963 fi
12964
12965 echo "$as_me:12965: checking for XtAppInitialize" >&5
12966 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
12967 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970 cat >conftest.$ac_ext <<_ACEOF
12971 #line 12971 "configure"
12972 #include "confdefs.h"
12973 /* System header to define __stub macros and hopefully few prototypes,
12974 which can conflict with char XtAppInitialize (); below. */
12975 #include <assert.h>
12976 /* Override any gcc2 internal prototype to avoid an error. */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 /* We use char because int might match the return type of a gcc2
12981 builtin and then its argument prototype would still apply. */
12982 char XtAppInitialize ();
12983 char (*f) ();
12984
12985 int
12986 main ()
12987 {
12988 /* The GNU C library defines this for functions which it implements
12989 to always fail with ENOSYS. Some functions are actually named
12990 something starting with __ and the normal name is an alias. */
12991 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
12992 choke me
12993 #else
12994 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12995 #endif
12996
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (eval echo "$as_me:13002: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>&5
13004 ac_status=$?
13005 echo "$as_me:13005: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (eval echo "$as_me:13008: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:13011: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_func_XtAppInitialize=yes
13014 else
13015 echo "$as_me: failed program was:" >&5
13016 cat conftest.$ac_ext >&5
13017 ac_cv_func_XtAppInitialize=no
13018 fi
13019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13020 fi
13021 echo "$as_me:13021: result: $ac_cv_func_XtAppInitialize" >&5
13022 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
13023 if test $ac_cv_func_XtAppInitialize = yes; then
13024 :
13025 else
13026
13027 echo "$as_me:13027: checking for XtAppInitialize in -lXt" >&5
13028 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
13029 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032 ac_check_lib_save_LIBS=$LIBS
13033 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13034 cat >conftest.$ac_ext <<_ACEOF
13035 #line 13035 "configure"
13036 #include "confdefs.h"
13037
13038 /* Override any gcc2 internal prototype to avoid an error. */
13039 #ifdef __cplusplus
13040 extern "C"
13041 #endif
13042 /* We use char because int might match the return type of a gcc2
13043 builtin and then its argument prototype would still apply. */
13044 char XtAppInitialize ();
13045 int
13046 main ()
13047 {
13048 XtAppInitialize ();
13049 ;
13050 return 0;
13051 }
13052 _ACEOF
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (eval echo "$as_me:13054: \"$ac_link\"") >&5
13055 (eval $ac_link) 2>&5
13056 ac_status=$?
13057 echo "$as_me:13057: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -s conftest$ac_exeext'
13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 ac_cv_lib_Xt_XtAppInitialize=yes
13066 else
13067 echo "$as_me: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 ac_cv_lib_Xt_XtAppInitialize=no
13070 fi
13071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13072 LIBS=$ac_check_lib_save_LIBS
13073 fi
13074 echo "$as_me:13074: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
13075 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
13076 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
13077
13078 cat >>confdefs.h <<\EOF
13079 #define HAVE_LIBXT 1
13080 EOF
13081
13082 cf_have_X_LIBS=Xt
13083 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
13084 fi
13085
13086 fi
13087
13088 fi
13089
13090 if test $cf_have_X_LIBS = no ; then
13091 { echo "$as_me:13091: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13092 test program. You will have to check and add the proper libraries by hand
13093 to makefile." >&5
13094 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13095 test program. You will have to check and add the proper libraries by hand
13096 to makefile." >&2;}
13097 fi
13098
13099 cf_x_athena_root=$cf_x_athena
13100 cf_x_athena_inc=""
13101
13102 for cf_path in default \
13103 /usr/contrib/X11R6 \
13104 /usr/contrib/X11R5 \
13105 /usr/lib/X11R5 \
13106 /usr/local
13107 do
13108 if test -z "$cf_x_athena_inc" ; then
13109 cf_save="$CPPFLAGS"
13110 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
13111 if test $cf_path != default ; then
13112 CPPFLAGS="$cf_save -I$cf_path/include"
13113 echo "$as_me:13113: checking for $cf_test in $cf_path" >&5
13114 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
13115 else
13116 echo "$as_me:13116: checking for $cf_test" >&5
13117 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
13118 fi
13119 cat >conftest.$ac_ext <<_ACEOF
13120 #line 13120 "configure"
13121 #include "confdefs.h"
13122
13123 #include <X11/Intrinsic.h>
13124 #include <$cf_test>
13125 int
13126 main ()
13127 {
13128
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:13134: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>&5
13136 ac_status=$?
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:13140: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 cf_result=yes
13146 else
13147 echo "$as_me: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13149 cf_result=no
13150 fi
13151 rm -f conftest.$ac_objext conftest.$ac_ext
13152 echo "$as_me:13152: result: $cf_result" >&5
13153 echo "${ECHO_T}$cf_result" >&6
13154 if test "$cf_result" = yes ; then
13155 cf_x_athena_inc=$cf_path
13156 break
13157 else
13158 CPPFLAGS="$cf_save"
13159 fi
13160 fi
13161 done
13162
13163 if test -z "$cf_x_athena_inc" ; then
13164 { echo "$as_me:13164: WARNING: Unable to successfully find Athena header files with test program" >&5
13165 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
13166 elif test "$cf_x_athena_inc" != default ; then
13167 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
13168 fi
13169
13170 cf_x_athena_root=$cf_x_athena
13171 cf_x_athena_lib=""
13172
13173 for cf_path in default \
13174 /usr/contrib/X11R6 \
13175 /usr/contrib/X11R5 \
13176 /usr/lib/X11R5 \
13177 /usr/local
13178 do
13179 for cf_lib in \
13180 ${cf_x_athena_root} \
13181 ${cf_x_athena_root}7 \
13182 ${cf_x_athena_root}6
13183 do
13184 for cf_libs in \
13185 "-l$cf_lib -lXmu" \
13186 "-l$cf_lib -lXpm -lXmu" \
13187 "-l${cf_lib}_s -lXmu_s"
13188 do
13189 if test -z "$cf_x_athena_lib" ; then
13190 cf_save="$LIBS"
13191 cf_test=XawSimpleMenuAddGlobalActions
13192 if test $cf_path != default ; then
13193
13194 cf_add_libs="-L$cf_path/lib $cf_libs"
13195 # Filter out duplicates - this happens with badly-designed ".pc" files...
13196 for cf_add_1lib in $LIBS
13197 do
13198 for cf_add_2lib in $cf_add_libs
13199 do
13200 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13201 then
13202 cf_add_1lib=
13203 break
13204 fi
13205 done
13206 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13207 done
13208 LIBS="$cf_add_libs"
13209
13210 echo "$as_me:13210: checking for $cf_libs in $cf_path" >&5
13211 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
13212 else
13213
13214 cf_add_libs="$cf_libs"
13215 # Filter out duplicates - this happens with badly-designed ".pc" files...
13216 for cf_add_1lib in $LIBS
13217 do
13218 for cf_add_2lib in $cf_add_libs
13219 do
13220 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13221 then
13222 cf_add_1lib=
13223 break
13224 fi
13225 done
13226 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13227 done
13228 LIBS="$cf_add_libs"
13229
13230 echo "$as_me:13230: checking for $cf_test in $cf_libs" >&5
13231 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
13232 fi
13233 cat >conftest.$ac_ext <<_ACEOF
13234 #line 13234 "configure"
13235 #include "confdefs.h"
13236
13237 #include <X11/Intrinsic.h>
13238 #include <X11/$cf_x_athena_root/SimpleMenu.h>
13239
13240 int
13241 main ()
13242 {
13243
13244 $cf_test((XtAppContext) 0)
13245 ;
13246 return 0;
13247 }
13248 _ACEOF
13249 rm -f conftest.$ac_objext conftest$ac_exeext
13250 if { (eval echo "$as_me:13250: \"$ac_link\"") >&5
13251 (eval $ac_link) 2>&5
13252 ac_status=$?
13253 echo "$as_me:13253: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:13256: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:13259: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 cf_result=yes
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
13265 cf_result=no
13266 fi
13267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13268 echo "$as_me:13268: result: $cf_result" >&5
13269 echo "${ECHO_T}$cf_result" >&6
13270 if test "$cf_result" = yes ; then
13271 cf_x_athena_lib="$cf_libs"
13272 break
13273 fi
13274 LIBS="$cf_save"
13275 fi
13276 done # cf_libs
13277 test -n "$cf_x_athena_lib" && break
13278 done # cf_lib
13279 done
13280
13281 if test -z "$cf_x_athena_lib" ; then
13282 { { echo "$as_me:13282: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
13283 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
13284 { (exit 1); exit 1; }; }
13285 fi
13286
13287 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13288
13289 cat >>confdefs.h <<EOF
13290 #define $cf_x_athena_LIBS 1
13291 EOF
13292
13293 fi
13294
13295 for ac_header in X11/Xpoll.h
13296 do
13297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13298 echo "$as_me:13298: checking for $ac_header" >&5
13299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303 cat >conftest.$ac_ext <<_ACEOF
13304 #line 13304 "configure"
13305 #include "confdefs.h"
13306 #include <$ac_header>
13307 _ACEOF
13308 if { (eval echo "$as_me:13308: \"$ac_cpp conftest.$ac_ext\"") >&5
13309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13310 ac_status=$?
13311 egrep -v '^ *\+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:13314: \$? = $ac_status" >&5
13315 (exit $ac_status); } >/dev/null; then
13316 if test -s conftest.err; then
13317 ac_cpp_err=$ac_c_preproc_warn_flag
13318 else
13319 ac_cpp_err=
13320 fi
13321 else
13322 ac_cpp_err=yes
13323 fi
13324 if test -z "$ac_cpp_err"; then
13325 eval "$as_ac_Header=yes"
13326 else
13327 echo "$as_me: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13329 eval "$as_ac_Header=no"
13330 fi
13331 rm -f conftest.err conftest.$ac_ext
13332 fi
13333 echo "$as_me:13333: result: `eval echo '${'$as_ac_Header'}'`" >&5
13334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13336 cat >>confdefs.h <<EOF
13337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13338 EOF
13339
13340 fi
13341 done
13342
13343 echo "$as_me:13343: checking for declaration of fd_set" >&5
13344 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
13345 if test "${cf_cv_type_fd_set+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348
13349 echo "${as_me:-configure}:13349: testing sys/types alone ..." 1>&5
13350
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13354
13355 #include <sys/types.h>
13356 int
13357 main ()
13358 {
13359 fd_set x
13360 ;
13361 return 0;
13362 }
13363 _ACEOF
13364 rm -f conftest.$ac_objext
13365 if { (eval echo "$as_me:13365: \"$ac_compile\"") >&5
13366 (eval $ac_compile) 2>&5
13367 ac_status=$?
13368 echo "$as_me:13368: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:13371: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:13374: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 cf_cv_type_fd_set=sys/types.h
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380
13381 echo "${as_me:-configure}:13381: testing X11/Xpoll.h ..." 1>&5
13382
13383 cat >conftest.$ac_ext <<_ACEOF
13384 #line 13384 "configure"
13385 #include "confdefs.h"
13386
13387 #ifdef HAVE_X11_XPOLL_H
13388 #include <X11/Xpoll.h>
13389 #endif
13390 int
13391 main ()
13392 {
13393 fd_set x
13394 ;
13395 return 0;
13396 }
13397 _ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (eval echo "$as_me:13399: \"$ac_compile\"") >&5
13400 (eval $ac_compile) 2>&5
13401 ac_status=$?
13402 echo "$as_me:13402: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -s conftest.$ac_objext'
13405 { (eval echo "$as_me:13405: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:13408: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 cf_cv_type_fd_set=X11/Xpoll.h
13411 else
13412 echo "$as_me: failed program was:" >&5
13413 cat conftest.$ac_ext >&5
13414
13415 echo "${as_me:-configure}:13415: testing sys/select.h ..." 1>&5
13416
13417 cat >conftest.$ac_ext <<_ACEOF
13418 #line 13418 "configure"
13419 #include "confdefs.h"
13420
13421 #include <sys/types.h>
13422 #include <sys/select.h>
13423 int
13424 main ()
13425 {
13426 fd_set x
13427 ;
13428 return 0;
13429 }
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:13432: \"$ac_compile\"") >&5
13433 (eval $ac_compile) 2>&5
13434 ac_status=$?
13435 echo "$as_me:13435: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:13438: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:13441: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 cf_cv_type_fd_set=sys/select.h
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13447 cf_cv_type_fd_set=unknown
13448 fi
13449 rm -f conftest.$ac_objext conftest.$ac_ext
13450 fi
13451 rm -f conftest.$ac_objext conftest.$ac_ext
13452 fi
13453 rm -f conftest.$ac_objext conftest.$ac_ext
13454 fi
13455 echo "$as_me:13455: result: $cf_cv_type_fd_set" >&5
13456 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
13457 if test $cf_cv_type_fd_set = sys/select.h ; then
13458
13459 cat >>confdefs.h <<\EOF
13460 #define USE_SYS_SELECT_H 1
13461 EOF
13462
13463 fi
13464
13465 echo "$as_me:13465: checking for declaration of fd_mask" >&5
13466 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
13467 if test "${cf_cv_type_fd_mask+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470
13471 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
13472 cat >conftest.$ac_ext <<_ACEOF
13473 #line 13473 "configure"
13474 #include "confdefs.h"
13475
13476 #include <X11/Xpoll.h>
13477 int
13478 main ()
13479 {
13480 fd_mask x
13481 ;
13482 return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:13486: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>&5
13488 ac_status=$?
13489 echo "$as_me:13489: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:13492: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:13495: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 :
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501
13502 echo "${as_me:-configure}:13502: testing if we must define CSRG_BASED ..." 1>&5
13503
13504 # Xosdefs.h on Mac OS X may not define this (but it should).
13505 cat >conftest.$ac_ext <<_ACEOF
13506 #line 13506 "configure"
13507 #include "confdefs.h"
13508
13509 #define CSRG_BASED
13510 #include <X11/Xpoll.h>
13511 int
13512 main ()
13513 {
13514 fd_mask x
13515 ;
13516 return 0;
13517 }
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (eval echo "$as_me:13520: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>&5
13522 ac_status=$?
13523 echo "$as_me:13523: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:13526: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:13529: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 cf_cv_type_fd_mask=CSRG_BASED
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 cat conftest.$ac_ext >&5
13535 fi
13536 rm -f conftest.$ac_objext conftest.$ac_ext
13537 fi
13538 rm -f conftest.$ac_objext conftest.$ac_ext
13539 else
13540 cf_cv_type_fd_mask=$cf_cv_type_fd_set
13541 fi
13542
13543 fi
13544 echo "$as_me:13544: result: $cf_cv_type_fd_mask" >&5
13545 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
13546 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
13547
13548 cat >>confdefs.h <<\EOF
13549 #define CSRG_BASED 1
13550 EOF
13551
13552 fi
13553
13554 echo "$as_me:13554: checking for IRIX 6.5 baud-rate redefinitions" >&5
13555 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
13556 if test "${cf_cv_termio_c_ispeed+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line 13561 "configure"
13562 #include "confdefs.h"
13563
13564 #include <sys/types.h>
13565 #include <sys/termio.h>
13566 int
13567 main ()
13568 {
13569
13570 struct termio foo;
13571 foo.c_ispeed = B38400;
13572 foo.c_ospeed = B9600;
13573
13574 ;
13575 return 0;
13576 }
13577 _ACEOF
13578 rm -f conftest.$ac_objext
13579 if { (eval echo "$as_me:13579: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>&5
13581 ac_status=$?
13582 echo "$as_me:13582: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:13585: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:13588: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 cf_cv_termio_c_ispeed=yes
13591
13592 else
13593 echo "$as_me: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13595 cf_cv_termio_c_ispeed=no
13596 fi
13597 rm -f conftest.$ac_objext conftest.$ac_ext
13598
13599 fi
13600 echo "$as_me:13600: result: $cf_cv_termio_c_ispeed" >&5
13601 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
13602 test "$cf_cv_termio_c_ispeed" = yes &&
13603 cat >>confdefs.h <<\EOF
13604 #define HAVE_TERMIO_C_ISPEED 1
13605 EOF
13606
13607 # If we notice Xcursor, there is a workaround needed.
13608 echo "$as_me:13608: checking for XcursorGetTheme in -lXcursor" >&5
13609 echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6
13610 if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613 ac_check_lib_save_LIBS=$LIBS
13614 LIBS="-lXcursor $LIBS"
13615 cat >conftest.$ac_ext <<_ACEOF
13616 #line 13616 "configure"
13617 #include "confdefs.h"
13618
13619 /* Override any gcc2 internal prototype to avoid an error. */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 /* We use char because int might match the return type of a gcc2
13624 builtin and then its argument prototype would still apply. */
13625 char XcursorGetTheme ();
13626 int
13627 main ()
13628 {
13629 XcursorGetTheme ();
13630 ;
13631 return 0;
13632 }
13633 _ACEOF
13634 rm -f conftest.$ac_objext conftest$ac_exeext
13635 if { (eval echo "$as_me:13635: \"$ac_link\"") >&5
13636 (eval $ac_link) 2>&5
13637 ac_status=$?
13638 echo "$as_me:13638: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -s conftest$ac_exeext'
13641 { (eval echo "$as_me:13641: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:13644: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_lib_Xcursor_XcursorGetTheme=yes
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 cat conftest.$ac_ext >&5
13650 ac_cv_lib_Xcursor_XcursorGetTheme=no
13651 fi
13652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13653 LIBS=$ac_check_lib_save_LIBS
13654 fi
13655 echo "$as_me:13655: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5
13656 echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6
13657 if test $ac_cv_lib_Xcursor_XcursorGetTheme = yes; then
13658 cat >>confdefs.h <<\EOF
13659 #define HAVE_LIB_XCURSOR 1
13660 EOF
13661
13662 fi
13663
13664 LIBS="$LIBS $X_EXTRA_LIBS"
13665
13666 for ac_header in \
13667 stropts.h \
13668
13669 do
13670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13671 echo "$as_me:13671: checking for $ac_header" >&5
13672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676 cat >conftest.$ac_ext <<_ACEOF
13677 #line 13677 "configure"
13678 #include "confdefs.h"
13679 #include <$ac_header>
13680 _ACEOF
13681 if { (eval echo "$as_me:13681: \"$ac_cpp conftest.$ac_ext\"") >&5
13682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13683 ac_status=$?
13684 egrep -v '^ *\+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:13687: \$? = $ac_status" >&5
13688 (exit $ac_status); } >/dev/null; then
13689 if test -s conftest.err; then
13690 ac_cpp_err=$ac_c_preproc_warn_flag
13691 else
13692 ac_cpp_err=
13693 fi
13694 else
13695 ac_cpp_err=yes
13696 fi
13697 if test -z "$ac_cpp_err"; then
13698 eval "$as_ac_Header=yes"
13699 else
13700 echo "$as_me: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13702 eval "$as_ac_Header=no"
13703 fi
13704 rm -f conftest.err conftest.$ac_ext
13705 fi
13706 echo "$as_me:13706: result: `eval echo '${'$as_ac_Header'}'`" >&5
13707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13709 cat >>confdefs.h <<EOF
13710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13711 EOF
13712
13713 fi
13714 done
13715
13716 cf_func_grantpt="grantpt ptsname"
13717 case $host_os in
13718 (darwin[0-9].*)
13719 ;;
13720 (*)
13721 cf_func_grantpt="$cf_func_grantpt posix_openpt"
13722 ;;
13723 esac
13724
13725 for ac_func in $cf_func_grantpt
13726 do
13727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13728 echo "$as_me:13728: checking for $ac_func" >&5
13729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13730 if eval "test \"\${$as_ac_var+set}\" = set"; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733 cat >conftest.$ac_ext <<_ACEOF
13734 #line 13734 "configure"
13735 #include "confdefs.h"
13736 /* System header to define __stub macros and hopefully few prototypes,
13737 which can conflict with char $ac_func (); below. */
13738 #include <assert.h>
13739 /* Override any gcc2 internal prototype to avoid an error. */
13740 #ifdef __cplusplus
13741 extern "C"
13742 #endif
13743 /* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13745 char $ac_func ();
13746 char (*f) ();
13747
13748 int
13749 main ()
13750 {
13751 /* The GNU C library defines this for functions which it implements
13752 to always fail with ENOSYS. Some functions are actually named
13753 something starting with __ and the normal name is an alias. */
13754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13755 choke me
13756 #else
13757 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13758 #endif
13759
13760 ;
13761 return 0;
13762 }
13763 _ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:13765: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>&5
13767 ac_status=$?
13768 echo "$as_me:13768: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (eval echo "$as_me:13771: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:13774: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 eval "$as_ac_var=yes"
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13780 eval "$as_ac_var=no"
13781 fi
13782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13783 fi
13784 echo "$as_me:13784: result: `eval echo '${'$as_ac_var'}'`" >&5
13785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13786 if test `eval echo '${'$as_ac_var'}'` = yes; then
13787 cat >>confdefs.h <<EOF
13788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13789 EOF
13790
13791 fi
13792 done
13793
13794 cf_grantpt_opts=
13795 if test "x$ac_cv_func_grantpt" = "xyes" ; then
13796 echo "$as_me:13796: checking if grantpt really works" >&5
13797 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6
13798 cat >conftest.$ac_ext <<_ACEOF
13799 #line 13799 "configure"
13800 #include "confdefs.h"
13801
13802 #include <stdlib.h>
13803 #include <termios.h>
13804 #include <unistd.h>
13805 #include <signal.h>
13806 #include <fcntl.h>
13807 #include <errno.h>
13808
13809 #ifndef HAVE_POSIX_OPENPT
13810 #undef posix_openpt
13811 #define posix_openpt(mode) open("/dev/ptmx", mode)
13812 #endif
13813
13814 #ifdef HAVE_STROPTS_H
13815 #include <stropts.h>
13816 #endif
13817
13818 static void failed(int code)
13819 {
13820 perror("conftest");
13821 exit(code);
13822 }
13823
13824 static void my_timeout(int sig)
13825 {
13826 exit(99);
13827 }
13828
13829 int
13830 main ()
13831 {
13832
13833 int code = 0;
13834 int rc;
13835 int pty;
13836 int tty;
13837 char *slave;
13838 struct termios tio;
13839
13840 signal(SIGALRM, my_timeout);
13841
13842 if (alarm(2) == 9)
13843 failed(9);
13844 else if ((pty = posix_openpt(O_RDWR)) < 0)
13845 failed(1);
13846 else if ((rc = grantpt(pty)) < 0)
13847 failed(2);
13848 else if ((rc = unlockpt(pty)) < 0)
13849 failed(3);
13850 else if ((slave = ptsname(pty)) == 0)
13851 failed(4);
13852 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
13853 else if (!isatty(pty))
13854 failed(4);
13855 #endif
13856 #if CONFTEST >= 4
13857 else if ((rc = tcgetattr(pty, &tio)) < 0)
13858 failed(20);
13859 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
13860 failed(21);
13861 #endif
13862 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
13863 * Linux does treat it that way.
13864 */
13865 else if ((tty = open(slave, O_RDWR)) < 0)
13866 failed(5);
13867 #ifdef CONFTEST
13868 #ifdef I_PUSH
13869 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
13870 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
13871 failed(10);
13872 #endif
13873 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
13874 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
13875 failed(11);
13876 #endif
13877 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
13878 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
13879 failed(12);
13880 #endif
13881 #endif /* I_PUSH */
13882 #if CONFTEST >= 5
13883 else if ((rc = tcgetattr(tty, &tio)) < 0)
13884 failed(30);
13885 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
13886 failed(31);
13887 #endif
13888 #endif /* CONFTEST */
13889
13890 ${cf_cv_main_return:-return}(code);
13891
13892 ;
13893 return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext conftest$ac_exeext
13897 if { (eval echo "$as_me:13897: \"$ac_link\"") >&5
13898 (eval $ac_link) 2>&5
13899 ac_status=$?
13900 echo "$as_me:13900: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (eval echo "$as_me:13903: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:13906: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908
13909 if test "$cross_compiling" = yes; then
13910 ac_cv_func_grantpt=maybe
13911 else
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line 13913 "configure"
13914 #include "confdefs.h"
13915
13916 #include <stdlib.h>
13917 #include <termios.h>
13918 #include <unistd.h>
13919 #include <signal.h>
13920 #include <fcntl.h>
13921 #include <errno.h>
13922
13923 #ifndef HAVE_POSIX_OPENPT
13924 #undef posix_openpt
13925 #define posix_openpt(mode) open("/dev/ptmx", mode)
13926 #endif
13927
13928 #ifdef HAVE_STROPTS_H
13929 #include <stropts.h>
13930 #endif
13931
13932 static void failed(int code)
13933 {
13934 perror("conftest");
13935 exit(code);
13936 }
13937
13938 static void my_timeout(int sig)
13939 {
13940 exit(99);
13941 }
13942
13943 int main(void)
13944 {
13945
13946 int code = 0;
13947 int rc;
13948 int pty;
13949 int tty;
13950 char *slave;
13951 struct termios tio;
13952
13953 signal(SIGALRM, my_timeout);
13954
13955 if (alarm(2) == 9)
13956 failed(9);
13957 else if ((pty = posix_openpt(O_RDWR)) < 0)
13958 failed(1);
13959 else if ((rc = grantpt(pty)) < 0)
13960 failed(2);
13961 else if ((rc = unlockpt(pty)) < 0)
13962 failed(3);
13963 else if ((slave = ptsname(pty)) == 0)
13964 failed(4);
13965 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
13966 else if (!isatty(pty))
13967 failed(4);
13968 #endif
13969 #if CONFTEST >= 4
13970 else if ((rc = tcgetattr(pty, &tio)) < 0)
13971 failed(20);
13972 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
13973 failed(21);
13974 #endif
13975 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
13976 * Linux does treat it that way.
13977 */
13978 else if ((tty = open(slave, O_RDWR)) < 0)
13979 failed(5);
13980 #ifdef CONFTEST
13981 #ifdef I_PUSH
13982 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
13983 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
13984 failed(10);
13985 #endif
13986 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
13987 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
13988 failed(11);
13989 #endif
13990 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
13991 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
13992 failed(12);
13993 #endif
13994 #endif /* I_PUSH */
13995 #if CONFTEST >= 5
13996 else if ((rc = tcgetattr(tty, &tio)) < 0)
13997 failed(30);
13998 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
13999 failed(31);
14000 #endif
14001 #endif /* CONFTEST */
14002
14003 ${cf_cv_main_return:-return}(code);
14004
14005 }
14006
14007 _ACEOF
14008 rm -f conftest$ac_exeext
14009 if { (eval echo "$as_me:14009: \"$ac_link\"") >&5
14010 (eval $ac_link) 2>&5
14011 ac_status=$?
14012 echo "$as_me:14012: \$? = $ac_status" >&5
14013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14014 { (eval echo "$as_me:14014: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:14017: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 :
14020 else
14021 echo "$as_me: program exited with status $ac_status" >&5
14022 echo "$as_me: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14024 ac_cv_func_grantpt=no
14025
14026 fi
14027 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14028 fi
14029
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 ac_cv_func_grantpt=no
14034 fi
14035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14036 echo "$as_me:14036: result: $ac_cv_func_grantpt" >&5
14037 echo "${ECHO_T}$ac_cv_func_grantpt" >&6
14038
14039 if test "x$ac_cv_func_grantpt" != "xno" ; then
14040
14041 if test "x$ac_cv_func_grantpt" = "xyes" ; then
14042 echo "$as_me:14042: checking for pty features" >&5
14043 echo $ECHO_N "checking for pty features... $ECHO_C" >&6
14044 if test "x$ac_cv_header_stropts_h" = xyes
14045 then
14046 cf_pty_this=0
14047 else
14048 cf_pty_this=3
14049 fi
14050
14051 cf_pty_defines=
14052 while test $cf_pty_this != 6
14053 do
14054
14055 cf_pty_feature=
14056 cf_pty_next=`expr $cf_pty_this + 1`
14057
14058 echo "${as_me:-configure}:14058: testing pty feature test $cf_pty_next:5 ..." 1>&5
14059
14060 if test "$cross_compiling" = yes; then
14061 { { echo "$as_me:14061: error: cannot run test program while cross compiling" >&5
14062 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14063 { (exit 1); exit 1; }; }
14064 else
14065 cat >conftest.$ac_ext <<_ACEOF
14066 #line 14066 "configure"
14067 #include "confdefs.h"
14068 #define CONFTEST $cf_pty_this
14069 $cf_pty_defines
14070
14071 #include <stdlib.h>
14072 #include <termios.h>
14073 #include <unistd.h>
14074 #include <signal.h>
14075 #include <fcntl.h>
14076 #include <errno.h>
14077
14078 #ifndef HAVE_POSIX_OPENPT
14079 #undef posix_openpt
14080 #define posix_openpt(mode) open("/dev/ptmx", mode)
14081 #endif
14082
14083 #ifdef HAVE_STROPTS_H
14084 #include <stropts.h>
14085 #endif
14086
14087 static void failed(int code)
14088 {
14089 perror("conftest");
14090 exit(code);
14091 }
14092
14093 static void my_timeout(int sig)
14094 {
14095 exit(99);
14096 }
14097
14098 int main(void)
14099 {
14100
14101 int code = 0;
14102 int rc;
14103 int pty;
14104 int tty;
14105 char *slave;
14106 struct termios tio;
14107
14108 signal(SIGALRM, my_timeout);
14109
14110 if (alarm(2) == 9)
14111 failed(9);
14112 else if ((pty = posix_openpt(O_RDWR)) < 0)
14113 failed(1);
14114 else if ((rc = grantpt(pty)) < 0)
14115 failed(2);
14116 else if ((rc = unlockpt(pty)) < 0)
14117 failed(3);
14118 else if ((slave = ptsname(pty)) == 0)
14119 failed(4);
14120 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
14121 else if (!isatty(pty))
14122 failed(4);
14123 #endif
14124 #if CONFTEST >= 4
14125 else if ((rc = tcgetattr(pty, &tio)) < 0)
14126 failed(20);
14127 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
14128 failed(21);
14129 #endif
14130 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
14131 * Linux does treat it that way.
14132 */
14133 else if ((tty = open(slave, O_RDWR)) < 0)
14134 failed(5);
14135 #ifdef CONFTEST
14136 #ifdef I_PUSH
14137 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
14138 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
14139 failed(10);
14140 #endif
14141 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
14142 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
14143 failed(11);
14144 #endif
14145 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
14146 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
14147 failed(12);
14148 #endif
14149 #endif /* I_PUSH */
14150 #if CONFTEST >= 5
14151 else if ((rc = tcgetattr(tty, &tio)) < 0)
14152 failed(30);
14153 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
14154 failed(31);
14155 #endif
14156 #endif /* CONFTEST */
14157
14158 ${cf_cv_main_return:-return}(code);
14159
14160 }
14161
14162 _ACEOF
14163 rm -f conftest$ac_exeext
14164 if { (eval echo "$as_me:14164: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>&5
14166 ac_status=$?
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14169 { (eval echo "$as_me:14169: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:14172: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174
14175 case $cf_pty_next in
14176 (1) # - streams
14177 cf_pty_feature=ptem
14178 ;;
14179 (2) # - streams
14180 cf_pty_feature=ldterm
14181 ;;
14182 (3) # - streams
14183 cf_pty_feature=ttcompat
14184 ;;
14185 (4)
14186 cf_pty_feature=pty_isatty
14187 ;;
14188 (5)
14189 cf_pty_feature=pty_tcsetattr
14190 ;;
14191 (6)
14192 cf_pty_feature=tty_tcsetattr
14193 ;;
14194 esac
14195
14196 else
14197 echo "$as_me: program exited with status $ac_status" >&5
14198 echo "$as_me: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14200
14201 case $cf_pty_next in
14202 (1|2|3)
14203
14204 echo "${as_me:-configure}:14204: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5
14205
14206 cf_pty_next=3
14207 ;;
14208 esac
14209
14210 fi
14211 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14212 fi
14213 if test -n "$cf_pty_feature"
14214 then
14215 cf_pty_defines="$cf_pty_defines
14216 #define CONFTEST_$cf_pty_feature 1
14217 "
14218 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature"
14219 fi
14220
14221 cf_pty_this=$cf_pty_next
14222 done
14223 echo "$as_me:14223: result: $cf_grantpt_opts" >&5
14224 echo "${ECHO_T}$cf_grantpt_opts" >&6
14225 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'`
14226 fi
14227 fi
14228 fi
14229
14230 if test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then
14231 echo "$as_me:14231: checking for openpty in -lutil" >&5
14232 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14233 if test "${ac_cv_lib_util_openpty+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236 ac_check_lib_save_LIBS=$LIBS
14237 LIBS="-lutil $LIBS"
14238 cat >conftest.$ac_ext <<_ACEOF
14239 #line 14239 "configure"
14240 #include "confdefs.h"
14241
14242 /* Override any gcc2 internal prototype to avoid an error. */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14248 char openpty ();
14249 int
14250 main ()
14251 {
14252 openpty ();
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:14258: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>&5
14260 ac_status=$?
14261 echo "$as_me:14261: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -s conftest$ac_exeext'
14264 { (eval echo "$as_me:14264: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:14267: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_lib_util_openpty=yes
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 cat conftest.$ac_ext >&5
14273 ac_cv_lib_util_openpty=no
14274 fi
14275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14276 LIBS=$ac_check_lib_save_LIBS
14277 fi
14278 echo "$as_me:14278: result: $ac_cv_lib_util_openpty" >&5
14279 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14280 if test $ac_cv_lib_util_openpty = yes; then
14281 cf_have_openpty=yes
14282 else
14283 cf_have_openpty=no
14284 fi
14285
14286 if test "$cf_have_openpty" = yes ; then
14287 ac_cv_func_grantpt=no
14288 LIBS="-lutil $LIBS"
14289
14290 cat >>confdefs.h <<\EOF
14291 #define HAVE_OPENPTY 1
14292 EOF
14293
14294 for ac_header in \
14295 util.h \
14296 libutil.h \
14297 pty.h \
14298
14299 do
14300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14301 echo "$as_me:14301: checking for $ac_header" >&5
14302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 cat >conftest.$ac_ext <<_ACEOF
14307 #line 14307 "configure"
14308 #include "confdefs.h"
14309 #include <$ac_header>
14310 _ACEOF
14311 if { (eval echo "$as_me:14311: \"$ac_cpp conftest.$ac_ext\"") >&5
14312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14313 ac_status=$?
14314 egrep -v '^ *\+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:14317: \$? = $ac_status" >&5
14318 (exit $ac_status); } >/dev/null; then
14319 if test -s conftest.err; then
14320 ac_cpp_err=$ac_c_preproc_warn_flag
14321 else
14322 ac_cpp_err=
14323 fi
14324 else
14325 ac_cpp_err=yes
14326 fi
14327 if test -z "$ac_cpp_err"; then
14328 eval "$as_ac_Header=yes"
14329 else
14330 echo "$as_me: failed program was:" >&5
14331 cat conftest.$ac_ext >&5
14332 eval "$as_ac_Header=no"
14333 fi
14334 rm -f conftest.err conftest.$ac_ext
14335 fi
14336 echo "$as_me:14336: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339 cat >>confdefs.h <<EOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 EOF
14342
14343 fi
14344 done
14345
14346 fi
14347 fi
14348
14349 if test "x$ac_cv_func_grantpt" != xno
14350 then
14351 test -n "$verbose" && echo " will rely upon grantpt" 1>&6
14352
14353 echo "${as_me:-configure}:14353: testing will rely upon grantpt ..." 1>&5
14354
14355 cat >>confdefs.h <<\EOF
14356 #define HAVE_WORKING_GRANTPT 1
14357 EOF
14358
14359 for cf_feature in $cf_grantpt_opts
14360 do
14361 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'`
14362
14363 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14364
14365 cat >>confdefs.h <<EOF
14366 #define HAVE_GRANTPT_$cf_FEATURE 1
14367 EOF
14368
14369 done
14370 elif test "x$cf_have_openpty" = xno
14371 then
14372 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6
14373
14374 echo "${as_me:-configure}:14374: testing will rely upon BSD-pseudoterminals ..." 1>&5
14375
14376 else
14377 test -n "$verbose" && echo " will rely upon openpty" 1>&6
14378
14379 echo "${as_me:-configure}:14379: testing will rely upon openpty ..." 1>&5
14380
14381 fi
14382
14383 echo "$as_me:14383: checking if we can use XkbQueryExtension" >&5
14384 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6
14385 if test "${cf_cv_xkb_query_extension+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388
14389 cat >conftest.$ac_ext <<_ACEOF
14390 #line 14390 "configure"
14391 #include "confdefs.h"
14392
14393 #include <X11/Xlib.h>
14394 #include <X11/extensions/XKB.h>
14395 #include <X11/XKBlib.h>
14396
14397 int
14398 main ()
14399 {
14400
14401 int xkbmajor = XkbMajorVersion;
14402 int xkbminor = XkbMinorVersion;
14403 int xkbopcode, xkbevent, xkberror;
14404
14405 if (XkbLibraryVersion(&xkbmajor, &xkbminor)
14406 && XkbQueryExtension((Display *)0,
14407 &xkbopcode,
14408 &xkbevent,
14409 &xkberror,
14410 &xkbmajor,
14411 &xkbminor))
14412 return 0;
14413
14414 ;
14415 return 0;
14416 }
14417 _ACEOF
14418 rm -f conftest.$ac_objext
14419 if { (eval echo "$as_me:14419: \"$ac_compile\"") >&5
14420 (eval $ac_compile) 2>&5
14421 ac_status=$?
14422 echo "$as_me:14422: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -s conftest.$ac_objext'
14425 { (eval echo "$as_me:14425: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:14428: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430
14431 cf_cv_xkb_query_extension=yes
14432
14433 else
14434 echo "$as_me: failed program was:" >&5
14435 cat conftest.$ac_ext >&5
14436
14437 cf_cv_xkb_query_extension=no
14438
14439 fi
14440 rm -f conftest.$ac_objext conftest.$ac_ext
14441
14442 fi
14443 echo "$as_me:14443: result: $cf_cv_xkb_query_extension" >&5
14444 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6
14445
14446 if test $cf_cv_xkb_query_extension = yes
14447 then
14448
14449 for ac_func in XkbQueryExtension
14450 do
14451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14452 echo "$as_me:14452: checking for $ac_func" >&5
14453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14454 if eval "test \"\${$as_ac_var+set}\" = set"; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457 cat >conftest.$ac_ext <<_ACEOF
14458 #line 14458 "configure"
14459 #include "confdefs.h"
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below. */
14462 #include <assert.h>
14463 /* Override any gcc2 internal prototype to avoid an error. */
14464 #ifdef __cplusplus
14465 extern "C"
14466 #endif
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14469 char $ac_func ();
14470 char (*f) ();
14471
14472 int
14473 main ()
14474 {
14475 /* The GNU C library defines this for functions which it implements
14476 to always fail with ENOSYS. Some functions are actually named
14477 something starting with __ and the normal name is an alias. */
14478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14479 choke me
14480 #else
14481 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14482 #endif
14483
14484 ;
14485 return 0;
14486 }
14487 _ACEOF
14488 rm -f conftest.$ac_objext conftest$ac_exeext
14489 if { (eval echo "$as_me:14489: \"$ac_link\"") >&5
14490 (eval $ac_link) 2>&5
14491 ac_status=$?
14492 echo "$as_me:14492: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -s conftest$ac_exeext'
14495 { (eval echo "$as_me:14495: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:14498: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 eval "$as_ac_var=yes"
14501 else
14502 echo "$as_me: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 eval "$as_ac_var=no"
14505 fi
14506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14507 fi
14508 echo "$as_me:14508: result: `eval echo '${'$as_ac_var'}'`" >&5
14509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14510 if test `eval echo '${'$as_ac_var'}'` = yes; then
14511 cat >>confdefs.h <<EOF
14512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14513 EOF
14514
14515 fi
14516 done
14517
14518 fi
14519
14520 echo "$as_me:14520: checking if we can use XkbKeycodeToKeysym" >&5
14521 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6
14522 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525
14526 cat >conftest.$ac_ext <<_ACEOF
14527 #line 14527 "configure"
14528 #include "confdefs.h"
14529
14530 #include <X11/Xlib.h>
14531 #include <X11/XKBlib.h>
14532
14533 int
14534 main ()
14535 {
14536
14537 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0);
14538
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:14544: \"$ac_compile\"") >&5
14545 (eval $ac_compile) 2>&5
14546 ac_status=$?
14547 echo "$as_me:14547: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (eval echo "$as_me:14550: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:14553: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555
14556 cf_cv_xkb_keycode_to_keysym=yes
14557
14558 else
14559 echo "$as_me: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561
14562 cf_cv_xkb_keycode_to_keysym=no
14563
14564 fi
14565 rm -f conftest.$ac_objext conftest.$ac_ext
14566
14567 fi
14568 echo "$as_me:14568: result: $cf_cv_xkb_keycode_to_keysym" >&5
14569 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6
14570
14571 if test $cf_cv_xkb_keycode_to_keysym = yes
14572 then
14573
14574 for ac_func in XkbKeycodeToKeysym
14575 do
14576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14577 echo "$as_me:14577: checking for $ac_func" >&5
14578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14579 if eval "test \"\${$as_ac_var+set}\" = set"; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582 cat >conftest.$ac_ext <<_ACEOF
14583 #line 14583 "configure"
14584 #include "confdefs.h"
14585 /* System header to define __stub macros and hopefully few prototypes,
14586 which can conflict with char $ac_func (); below. */
14587 #include <assert.h>
14588 /* Override any gcc2 internal prototype to avoid an error. */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14594 char $ac_func ();
14595 char (*f) ();
14596
14597 int
14598 main ()
14599 {
14600 /* The GNU C library defines this for functions which it implements
14601 to always fail with ENOSYS. Some functions are actually named
14602 something starting with __ and the normal name is an alias. */
14603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14604 choke me
14605 #else
14606 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14607 #endif
14608
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (eval echo "$as_me:14614: \"$ac_link\"") >&5
14615 (eval $ac_link) 2>&5
14616 ac_status=$?
14617 echo "$as_me:14617: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -s conftest$ac_exeext'
14620 { (eval echo "$as_me:14620: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:14623: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 eval "$as_ac_var=yes"
14626 else
14627 echo "$as_me: failed program was:" >&5
14628 cat conftest.$ac_ext >&5
14629 eval "$as_ac_var=no"
14630 fi
14631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14632 fi
14633 echo "$as_me:14633: result: `eval echo '${'$as_ac_var'}'`" >&5
14634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14635 if test `eval echo '${'$as_ac_var'}'` = yes; then
14636 cat >>confdefs.h <<EOF
14637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14638 EOF
14639
14640 fi
14641 done
14642
14643 fi
14644
14645 echo "$as_me:14645: checking for XKB Bell extension" >&5
14646 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
14647 if test "${cf_cv_xkb_bell_ext+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650
14651 cat >conftest.$ac_ext <<_ACEOF
14652 #line 14652 "configure"
14653 #include "confdefs.h"
14654
14655 #include <X11/Intrinsic.h>
14656 #include <X11/XKBlib.h> /* has the prototype */
14657 #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */
14658
14659 int
14660 main ()
14661 {
14662
14663 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
14664 Atom y;
14665 XkbBell((Display *)0, (Widget)0, 0, y);
14666
14667 ;
14668 return 0;
14669 }
14670 _ACEOF
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (eval echo "$as_me:14672: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14674 ac_status=$?
14675 echo "$as_me:14675: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -s conftest$ac_exeext'
14678 { (eval echo "$as_me:14678: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14680 ac_status=$?
14681 echo "$as_me:14681: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 cf_cv_xkb_bell_ext=yes
14684 else
14685 echo "$as_me: failed program was:" >&5
14686 cat conftest.$ac_ext >&5
14687 cf_cv_xkb_bell_ext=no
14688 fi
14689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14690
14691 fi
14692 echo "$as_me:14692: result: $cf_cv_xkb_bell_ext" >&5
14693 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
14694 test "$cf_cv_xkb_bell_ext" = yes &&
14695 cat >>confdefs.h <<\EOF
14696 #define HAVE_XKB_BELL_EXT 1
14697 EOF
14698
14699 for ac_func in Xutf8LookupString
14700 do
14701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14702 echo "$as_me:14702: checking for $ac_func" >&5
14703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14704 if eval "test \"\${$as_ac_var+set}\" = set"; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707 cat >conftest.$ac_ext <<_ACEOF
14708 #line 14708 "configure"
14709 #include "confdefs.h"
14710 /* System header to define __stub macros and hopefully few prototypes,
14711 which can conflict with char $ac_func (); below. */
14712 #include <assert.h>
14713 /* Override any gcc2 internal prototype to avoid an error. */
14714 #ifdef __cplusplus
14715 extern "C"
14716 #endif
14717 /* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14719 char $ac_func ();
14720 char (*f) ();
14721
14722 int
14723 main ()
14724 {
14725 /* The GNU C library defines this for functions which it implements
14726 to always fail with ENOSYS. Some functions are actually named
14727 something starting with __ and the normal name is an alias. */
14728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14729 choke me
14730 #else
14731 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14732 #endif
14733
14734 ;
14735 return 0;
14736 }
14737 _ACEOF
14738 rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (eval echo "$as_me:14739: \"$ac_link\"") >&5
14740 (eval $ac_link) 2>&5
14741 ac_status=$?
14742 echo "$as_me:14742: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -s conftest$ac_exeext'
14745 { (eval echo "$as_me:14745: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 eval "$as_ac_var=yes"
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14754 eval "$as_ac_var=no"
14755 fi
14756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14757 fi
14758 echo "$as_me:14758: result: `eval echo '${'$as_ac_var'}'`" >&5
14759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14760 if test `eval echo '${'$as_ac_var'}'` = yes; then
14761 cat >>confdefs.h <<EOF
14762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14763 EOF
14764
14765 else
14766
14767 EXTRAHDRS="$EXTRAHDRS xutf8.h"
14768 EXTRASRCS="$EXTRASRCS xutf8.c"
14769 EXTRAOBJS="$EXTRAOBJS xutf8.o"
14770
14771 fi
14772 done
14773
14774 echo "$as_me:14774: checking if you want narrow prototypes for X libraries" >&5
14775 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
14776
14777 case `$ac_config_guess` in
14778 (*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*)
14779 cf_default_narrowproto=yes
14780 ;;
14781 (*)
14782 cf_default_narrowproto=no
14783 ;;
14784 esac
14785
14786 # Check whether --enable-narrowproto or --disable-narrowproto was given.
14787 if test "${enable_narrowproto+set}" = set; then
14788 enableval="$enable_narrowproto"
14789 test "$enableval" != no && enableval=yes
14790 if test "$enableval" != "$cf_default_narrowproto" ; then
14791 enable_narrowproto=$enableval
14792 else
14793 enable_narrowproto=$cf_default_narrowproto
14794 fi
14795 else
14796 enableval=$cf_default_narrowproto
14797 enable_narrowproto=$cf_default_narrowproto
14798
14799 fi;
14800 echo "$as_me:14800: result: $enable_narrowproto" >&5
14801 echo "${ECHO_T}$enable_narrowproto" >&6
14802
14803 echo "$as_me:14803: checking if we should use imake to help" >&5
14804 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
14805
14806 # Check whether --enable-imake or --disable-imake was given.
14807 if test "${enable_imake+set}" = set; then
14808 enableval="$enable_imake"
14809 test "$enableval" != no && enableval=yes
14810 if test "$enableval" != "yes" ; then
14811 enable_imake=no
14812 else
14813 enable_imake=yes
14814 fi
14815 else
14816 enableval=yes
14817 enable_imake=yes
14818
14819 fi;
14820 echo "$as_me:14820: result: $enable_imake" >&5
14821 echo "${ECHO_T}$enable_imake" >&6
14822
14823 if test "$enable_imake" = yes ; then
14824
14825 for ac_prog in xmkmf imake
14826 do
14827 # Extract the first word of "$ac_prog", so it can be a program name with args.
14828 set dummy $ac_prog; ac_word=$2
14829 echo "$as_me:14829: checking for $ac_word" >&5
14830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14831 if test "${ac_cv_path_IMAKE+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 case $IMAKE in
14835 [\\/]* | ?:[\\/]*)
14836 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
14837 ;;
14838 *)
14839 ac_save_IFS=$IFS; IFS=$ac_path_separator
14840 ac_dummy="$PATH"
14841 for ac_dir in $ac_dummy; do
14842 IFS=$ac_save_IFS
14843 test -z "$ac_dir" && ac_dir=.
14844 if $as_executable_p "$ac_dir/$ac_word"; then
14845 ac_cv_path_IMAKE="$ac_dir/$ac_word"
14846 echo "$as_me:14846: found $ac_dir/$ac_word" >&5
14847 break
14848 fi
14849 done
14850
14851 ;;
14852 esac
14853 fi
14854 IMAKE=$ac_cv_path_IMAKE
14855
14856 if test -n "$IMAKE"; then
14857 echo "$as_me:14857: result: $IMAKE" >&5
14858 echo "${ECHO_T}$IMAKE" >&6
14859 else
14860 echo "$as_me:14860: result: no" >&5
14861 echo "${ECHO_T}no" >&6
14862 fi
14863
14864 test -n "$IMAKE" && break
14865 done
14866
14867 if test -n "$IMAKE" ; then
14868
14869 case $IMAKE in
14870 (*/imake)
14871 cf_imake_opts="-DUseInstalled=YES"
14872 ;;
14873 (*/util/xmkmf)
14874 # A single parameter tells xmkmf where the config-files are:
14875 cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`"
14876 ;;
14877 (*)
14878 cf_imake_opts=
14879 ;;
14880 esac
14881
14882 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
14883 # config directory.
14884 if mkdir conftestdir; then
14885 CDPATH=; export CDPATH
14886 cf_makefile=`cd $srcdir;pwd`/Imakefile
14887 cd conftestdir
14888
14889 cat >fix_cflags.sed <<'CF_EOF'
14890 s/\\//g
14891 s/[ ][ ]*/ /g
14892 s/"//g
14893 :pack
14894 s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g
14895 t pack
14896 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
14897 s/^IMAKE[ ]/IMAKE_CFLAGS="/
14898 s/ / /g
14899 s/$/"/
14900 CF_EOF
14901
14902 cat >fix_lflags.sed <<'CF_EOF'
14903 s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/
14904 s/$/"/
14905 CF_EOF
14906
14907 echo >./Imakefile
14908 test -f $cf_makefile && cat $cf_makefile >>./Imakefile
14909
14910 cat >> ./Imakefile <<'CF_EOF'
14911 findstddefs:
14912 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed
14913 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
14914 CF_EOF
14915
14916 if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
14917 then
14918 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6
14919
14920 echo "${as_me:-configure}:14920: testing Using $IMAKE $cf_imake_opts ..." 1>&5
14921
14922 else
14923 # sometimes imake doesn't have the config path compiled in. Find it.
14924 cf_config=
14925 for cf_libpath in $X_LIBS $LIBS ; do
14926 case $cf_libpath in
14927 (-L*)
14928 cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
14929 cf_libpath=$cf_libpath/X11/config
14930 if test -d $cf_libpath ; then
14931 cf_config=$cf_libpath
14932 break
14933 fi
14934 ;;
14935 esac
14936 done
14937 if test -z "$cf_config" ; then
14938 { echo "$as_me:14938: WARNING: Could not find imake config-directory" >&5
14939 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
14940 else
14941 cf_imake_opts="$cf_imake_opts -I$cf_config"
14942 if ( $IMAKE -v $cf_imake_opts 2>&5)
14943 then
14944 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6
14945
14946 echo "${as_me:-configure}:14946: testing Using $IMAKE $cf_config ..." 1>&5
14947
14948 else
14949 { echo "$as_me:14949: WARNING: Cannot run $IMAKE" >&5
14950 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
14951 fi
14952 fi
14953 fi
14954
14955 # GNU make sometimes prints "make[1]: Entering...", which
14956 # would confuse us.
14957 eval `make findstddefs 2>/dev/null | grep -v make`
14958
14959 cd ..
14960 rm -rf conftestdir
14961
14962 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
14963 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have
14964 # modified it to support site.cf, adding a kludge for the /usr/include
14965 # directory. Try to filter that out, otherwise gcc won't find its
14966 # headers.
14967 if test -n "$GCC" ; then
14968 if test -n "$IMAKE_CFLAGS" ; then
14969 cf_nostdinc=""
14970 cf_std_incl=""
14971 cf_cpp_opts=""
14972 for cf_opt in $IMAKE_CFLAGS
14973 do
14974 case "$cf_opt" in
14975 (-nostdinc)
14976 cf_nostdinc="$cf_opt"
14977 ;;
14978 (-I/usr/include)
14979 cf_std_incl="$cf_opt"
14980 ;;
14981 (*)
14982 cf_cpp_opts="$cf_cpp_opts $cf_opt"
14983 ;;
14984 esac
14985 done
14986 if test -z "$cf_nostdinc" ; then
14987 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
14988 elif test -z "$cf_std_incl" ; then
14989 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
14990 else
14991 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
14992
14993 echo "${as_me:-configure}:14993: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
14994
14995 IMAKE_CFLAGS="$cf_cpp_opts"
14996 fi
14997 fi
14998 fi
14999 fi
15000
15001 # Some imake configurations define PROJECTROOT with an empty value. Remove
15002 # the empty definition.
15003 case $IMAKE_CFLAGS in
15004 (*-DPROJECTROOT=/*)
15005 ;;
15006 (*)
15007 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"`
15008 ;;
15009 esac
15010
15011 fi
15012
15013 test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
15014
15015 echo "${as_me:-configure}:15015: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
15016
15017 test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
15018
15019 echo "${as_me:-configure}:15019: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
15020
15021 fi
15022
15023 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
15024
15025 cf_fix_cppflags=no
15026 cf_new_cflags=
15027 cf_new_cppflags=
15028 cf_new_extra_cppflags=
15029
15030 for cf_add_cflags in $IMAKE_CFLAGS
15031 do
15032 case $cf_fix_cppflags in
15033 (no)
15034 case $cf_add_cflags in
15035 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15036 case $cf_add_cflags in
15037 (-D*)
15038 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15039
15040 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15041 && test -z "${cf_tst_cflags}" \
15042 && cf_fix_cppflags=yes
15043
15044 if test $cf_fix_cppflags = yes ; then
15045 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15046 continue
15047 elif test "${cf_tst_cflags}" = "\"'" ; then
15048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15049 continue
15050 fi
15051 ;;
15052 esac
15053 case "$CPPFLAGS" in
15054 (*$cf_add_cflags)
15055 ;;
15056 (*)
15057 case $cf_add_cflags in
15058 (-D*)
15059 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15060
15061 CPPFLAGS=`echo "$CPPFLAGS" | \
15062 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15063 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15064
15065 ;;
15066 esac
15067 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15068 ;;
15069 esac
15070 ;;
15071 (*)
15072 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15073 ;;
15074 esac
15075 ;;
15076 (yes)
15077 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15078
15079 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15080
15081 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15082 && test -z "${cf_tst_cflags}" \
15083 && cf_fix_cppflags=no
15084 ;;
15085 esac
15086 done
15087
15088 if test -n "$cf_new_cflags" ; then
15089
15090 CFLAGS="$CFLAGS $cf_new_cflags"
15091 fi
15092
15093 if test -n "$cf_new_cppflags" ; then
15094
15095 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15096 fi
15097
15098 if test -n "$cf_new_extra_cppflags" ; then
15099
15100 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15101 fi
15102
15103 else
15104 IMAKE_CFLAGS=
15105 IMAKE_LOADFLAGS=
15106 test -n "$verbose" && echo " make fallback definitions" 1>&6
15107
15108 echo "${as_me:-configure}:15108: testing make fallback definitions ..." 1>&5
15109
15110 # We prefer config.guess' values when we can get them, to avoid
15111 # inconsistent results with uname (AIX for instance). However,
15112 # config.guess is not always consistent either.
15113 case $host_os in
15114 (*[0-9].[0-9]*)
15115 UNAME_RELEASE="$host_os"
15116 ;;
15117 (*)
15118 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
15119 ;;
15120 esac
15121
15122 case .$UNAME_RELEASE in
15123 (*[0-9].[0-9]*)
15124 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
15125 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
15126 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
15127 test -z "$OSMINORVERSION" && OSMINORVERSION=0
15128 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
15129 ;;
15130 esac
15131
15132 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
15133 # fallback/fragments for NeedPrototypes, etc.
15134 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
15135
15136 # If this is not set properly, Xaw's scrollbars will not work
15137 if test "$enable_narrowproto" = yes ; then
15138 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
15139 fi
15140
15141 # Other special definitions:
15142 case $host_os in
15143 (aix*)
15144 # imake on AIX 5.1 defines AIXV3. really.
15145 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
15146 ;;
15147 (irix[56].*)
15148 # these are needed to make SIGWINCH work in xterm
15149 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
15150 ;;
15151 esac
15152
15153 cf_fix_cppflags=no
15154 cf_new_cflags=
15155 cf_new_cppflags=
15156 cf_new_extra_cppflags=
15157
15158 for cf_add_cflags in $IMAKE_CFLAGS
15159 do
15160 case $cf_fix_cppflags in
15161 (no)
15162 case $cf_add_cflags in
15163 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15164 case $cf_add_cflags in
15165 (-D*)
15166 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15167
15168 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15169 && test -z "${cf_tst_cflags}" \
15170 && cf_fix_cppflags=yes
15171
15172 if test $cf_fix_cppflags = yes ; then
15173 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15174 continue
15175 elif test "${cf_tst_cflags}" = "\"'" ; then
15176 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15177 continue
15178 fi
15179 ;;
15180 esac
15181 case "$CPPFLAGS" in
15182 (*$cf_add_cflags)
15183 ;;
15184 (*)
15185 case $cf_add_cflags in
15186 (-D*)
15187 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15188
15189 CPPFLAGS=`echo "$CPPFLAGS" | \
15190 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15191 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15192
15193 ;;
15194 esac
15195 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15196 ;;
15197 esac
15198 ;;
15199 (*)
15200 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15201 ;;
15202 esac
15203 ;;
15204 (yes)
15205 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15206
15207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15208
15209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15210 && test -z "${cf_tst_cflags}" \
15211 && cf_fix_cppflags=no
15212 ;;
15213 esac
15214 done
15215
15216 if test -n "$cf_new_cflags" ; then
15217
15218 CFLAGS="$CFLAGS $cf_new_cflags"
15219 fi
15220
15221 if test -n "$cf_new_cppflags" ; then
15222
15223 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15224 fi
15225
15226 if test -n "$cf_new_extra_cppflags" ; then
15227
15228 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15229 fi
15230
15231 fi
15232
15233 # Extract the first word of "groff", so it can be a program name with args.
15234 set dummy groff; ac_word=$2
15235 echo "$as_me:15235: checking for $ac_word" >&5
15236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15237 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240 case $GROFF_PATH in
15241 [\\/]* | ?:[\\/]*)
15242 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
15243 ;;
15244 *)
15245 ac_save_IFS=$IFS; IFS=$ac_path_separator
15246 ac_dummy="$PATH"
15247 for ac_dir in $ac_dummy; do
15248 IFS=$ac_save_IFS
15249 test -z "$ac_dir" && ac_dir=.
15250 if $as_executable_p "$ac_dir/$ac_word"; then
15251 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
15252 echo "$as_me:15252: found $ac_dir/$ac_word" >&5
15253 break
15254 fi
15255 done
15256
15257 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
15258 ;;
15259 esac
15260 fi
15261 GROFF_PATH=$ac_cv_path_GROFF_PATH
15262
15263 if test -n "$GROFF_PATH"; then
15264 echo "$as_me:15264: result: $GROFF_PATH" >&5
15265 echo "${ECHO_T}$GROFF_PATH" >&6
15266 else
15267 echo "$as_me:15267: result: no" >&5
15268 echo "${ECHO_T}no" >&6
15269 fi
15270
15271 # Extract the first word of "nroff", so it can be a program name with args.
15272 set dummy nroff; ac_word=$2
15273 echo "$as_me:15273: checking for $ac_word" >&5
15274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15275 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278 case $NROFF_PATH in
15279 [\\/]* | ?:[\\/]*)
15280 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
15281 ;;
15282 *)
15283 ac_save_IFS=$IFS; IFS=$ac_path_separator
15284 ac_dummy="$PATH"
15285 for ac_dir in $ac_dummy; do
15286 IFS=$ac_save_IFS
15287 test -z "$ac_dir" && ac_dir=.
15288 if $as_executable_p "$ac_dir/$ac_word"; then
15289 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
15290 echo "$as_me:15290: found $ac_dir/$ac_word" >&5
15291 break
15292 fi
15293 done
15294
15295 test -z "$ac_cv_path_NROFF_PATH" && ac_cv_path_NROFF_PATH="no"
15296 ;;
15297 esac
15298 fi
15299 NROFF_PATH=$ac_cv_path_NROFF_PATH
15300
15301 if test -n "$NROFF_PATH"; then
15302 echo "$as_me:15302: result: $NROFF_PATH" >&5
15303 echo "${ECHO_T}$NROFF_PATH" >&6
15304 else
15305 echo "$as_me:15305: result: no" >&5
15306 echo "${ECHO_T}no" >&6
15307 fi
15308
15309 if test "x$GROFF_PATH" = xno
15310 then
15311 NROFF_NOTE=
15312 GROFF_NOTE="#"
15313 else
15314 NROFF_NOTE="#"
15315 GROFF_NOTE=
15316 fi
15317
15318 echo "$as_me:15318: checking for program to convert manpage to html" >&5
15319 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
15320
15321 # Check whether --with-man2html or --without-man2html was given.
15322 if test "${with_man2html+set}" = set; then
15323 withval="$with_man2html"
15324 cf_man2html=$withval
15325 else
15326 cf_man2html=$GROFF_PATH
15327 fi;
15328
15329 cf_with_groff=no
15330
15331 case $cf_man2html in
15332 (yes)
15333 echo "$as_me:15333: result: man2html" >&5
15334 echo "${ECHO_T}man2html" >&6
15335 # Extract the first word of "man2html", so it can be a program name with args.
15336 set dummy man2html; ac_word=$2
15337 echo "$as_me:15337: checking for $ac_word" >&5
15338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15339 if test "${ac_cv_path_cf_man2html+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342 case $cf_man2html in
15343 [\\/]* | ?:[\\/]*)
15344 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
15345 ;;
15346 *)
15347 ac_save_IFS=$IFS; IFS=$ac_path_separator
15348 ac_dummy="$PATH"
15349 for ac_dir in $ac_dummy; do
15350 IFS=$ac_save_IFS
15351 test -z "$ac_dir" && ac_dir=.
15352 if $as_executable_p "$ac_dir/$ac_word"; then
15353 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
15354 echo "$as_me:15354: found $ac_dir/$ac_word" >&5
15355 break
15356 fi
15357 done
15358
15359 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
15360 ;;
15361 esac
15362 fi
15363 cf_man2html=$ac_cv_path_cf_man2html
15364
15365 if test -n "$cf_man2html"; then
15366 echo "$as_me:15366: result: $cf_man2html" >&5
15367 echo "${ECHO_T}$cf_man2html" >&6
15368 else
15369 echo "$as_me:15369: result: no" >&5
15370 echo "${ECHO_T}no" >&6
15371 fi
15372
15373 ;;
15374 (no|groff|*/groff*)
15375 cf_with_groff=yes
15376 cf_man2html=$GROFF_PATH
15377 echo "$as_me:15377: result: $cf_man2html" >&5
15378 echo "${ECHO_T}$cf_man2html" >&6
15379 ;;
15380 (*)
15381 echo "$as_me:15381: result: $cf_man2html" >&5
15382 echo "${ECHO_T}$cf_man2html" >&6
15383 ;;
15384 esac
15385
15386 MAN2HTML_TEMP="man2html.tmp"
15387 cat >$MAN2HTML_TEMP <<CF_EOF
15388 #!$SHELL
15389 # Temporary script generated by CF_WITH_MAN2HTML
15390 # Convert inputs to html, sending result to standard output.
15391 #
15392 # Parameters:
15393 # \${1} = rootname of file to convert
15394 # \${2} = suffix of file to convert, e.g., "1"
15395 # \${3} = macros to use, e.g., "man"
15396 #
15397 ROOT=\$1
15398 TYPE=\$2
15399 MACS=\$3
15400
15401 unset LANG
15402 unset LC_ALL
15403 unset LC_CTYPE
15404 unset LANGUAGE
15405 GROFF_NO_SGR=stupid
15406 export GROFF_NO_SGR
15407
15408 CF_EOF
15409
15410 if test "x$cf_with_groff" = xyes
15411 then
15412 MAN2HTML_NOTE="$GROFF_NOTE"
15413 MAN2HTML_PATH="$GROFF_PATH"
15414 cat >>$MAN2HTML_TEMP <<CF_EOF
15415 $SHELL -c "tbl \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
15416 CF_EOF
15417 else
15418 MAN2HTML_NOTE=""
15419
15420 if test "x$prefix" != xNONE; then
15421 cf_path_syntax="$prefix"
15422 else
15423 cf_path_syntax="$ac_default_prefix"
15424 fi
15425
15426 case ".$cf_man2html" in
15427 (.\$\(*\)*|.\'*\'*)
15428 ;;
15429 (..|./*|.\\*)
15430 ;;
15431 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
15432 ;;
15433 (.\${*prefix}*|.\${*dir}*)
15434 eval cf_man2html="$cf_man2html"
15435 case ".$cf_man2html" in
15436 (.NONE/*)
15437 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
15438 ;;
15439 esac
15440 ;;
15441 (.no|.NONE/*)
15442 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
15443 ;;
15444 (*)
15445 { { echo "$as_me:15445: error: expected a pathname, not \"$cf_man2html\"" >&5
15446 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
15447 { (exit 1); exit 1; }; }
15448 ;;
15449 esac
15450
15451 MAN2HTML_PATH="$cf_man2html"
15452 echo "$as_me:15452: checking for $cf_man2html top/bottom margins" >&5
15453 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
15454
15455 # for this example, expect 3 lines of content, the remainder is head/foot
15456 cat >conftest.in <<CF_EOF
15457 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
15458 .SH SECTION
15459 MARKER
15460 CF_EOF
15461
15462 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
15463
15464 cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
15465 cf_man2html_top=`expr $cf_man2html_1st - 2`
15466 cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
15467 cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
15468 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
15469
15470 echo "$as_me:15470: result: $cf_man2html_top_bot" >&5
15471 echo "${ECHO_T}$cf_man2html_top_bot" >&6
15472
15473 echo "$as_me:15473: checking for pagesize to use" >&5
15474 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
15475 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
15476 do
15477 cat >>conftest.in <<CF_EOF
15478 .nf
15479 0
15480 1
15481 2
15482 3
15483 4
15484 5
15485 6
15486 7
15487 8
15488 9
15489 CF_EOF
15490 done
15491
15492 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C nroff -man conftest.in >conftest.out
15493 cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
15494 test -z "$cf_man2html_page" && cf_man2html_page=99999
15495 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
15496
15497 rm -rf conftest*
15498 echo "$as_me:15498: result: $cf_man2html_page" >&5
15499 echo "${ECHO_T}$cf_man2html_page" >&6
15500
15501 cat >>$MAN2HTML_TEMP <<CF_EOF
15502 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
15503 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
15504 case \${TYPE} in
15505 (ms)
15506 tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
15507 ;;
15508 (*)
15509 tbl \${ROOT}.\${TYPE} | nroff -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
15510 ;;
15511 esac
15512 CF_EOF
15513 fi
15514
15515 chmod 700 $MAN2HTML_TEMP
15516
15517 # If we have already established that there is a full termcap implementation,
15518 # suppress the definitions for terminfo that we make have imported from the
15519 # imake-file.
15520 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
15521 case "$IMAKE_CFLAGS" in
15522 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
15523
15524 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6
15525
15526 echo "${as_me:-configure}:15526: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5
15527
15528 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
15529 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6
15530
15531 echo "${as_me:-configure}:15531: testing ...result $IMAKE_CFLAGS ..." 1>&5
15532
15533 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6
15534
15535 echo "${as_me:-configure}:15535: testing removing terminfo flags from CPPFLAGS ..." 1>&5
15536
15537 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
15538 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6
15539
15540 echo "${as_me:-configure}:15540: testing ...result $CPPFLAGS ..." 1>&5
15541
15542 ;;
15543 esac
15544 fi
15545
15546 echo "$as_me:15546: checking for default terminal-id" >&5
15547 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
15548
15549 # Check whether --with-terminal-id or --without-terminal-id was given.
15550 if test "${with_terminal_id+set}" = set; then
15551 withval="$with_terminal_id"
15552 default_termid=$withval
15553 else
15554 default_termid=vt420
15555 fi;
15556 echo "$as_me:15556: result: $default_termid" >&5
15557 echo "${ECHO_T}$default_termid" >&6
15558 case $default_termid in
15559 (vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
15560 ;;
15561 esac
15562
15563 cat >>confdefs.h <<EOF
15564 #define DFT_DECID "$default_termid"
15565 EOF
15566
15567 echo "$as_me:15567: checking for default terminal-type" >&5
15568 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
15569
15570 # Check whether --with-terminal-type or --without-terminal-type was given.
15571 if test "${with_terminal_type+set}" = set; then
15572 withval="$with_terminal_type"
15573 default_TERM=$withval
15574 else
15575 default_TERM=xterm
15576 fi;
15577 echo "$as_me:15577: result: $default_TERM" >&5
15578 echo "${ECHO_T}$default_TERM" >&6
15579
15580 cat >>confdefs.h <<EOF
15581 #define DFT_TERMTYPE "$default_TERM"
15582 EOF
15583
15584 ###############################################################################
15585 echo "$as_me:15585: checking if backarrow-key should be BS" >&5
15586 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6
15587
15588 # Check whether --enable-backarrow-key or --disable-backarrow-key was given.
15589 if test "${enable_backarrow_key+set}" = set; then
15590 enableval="$enable_backarrow_key"
15591 test "$enableval" != no && enableval=yes
15592 if test "$enableval" != "yes" ; then
15593 backarrow_is_bs=$enableval
15594 else
15595 backarrow_is_bs=yes
15596 fi
15597 else
15598 enableval=yes
15599 backarrow_is_bs=yes
15600
15601 fi;
15602
15603 echo "$as_me:15603: result: $backarrow_is_bs" >&5
15604 echo "${ECHO_T}$backarrow_is_bs" >&6
15605 case $backarrow_is_bs in
15606 (yes)
15607 backarrow_is_bs=true
15608 ;;
15609 (no)
15610 backarrow_is_bs=false
15611 ;;
15612 esac
15613 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'`
15614
15615 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15616
15617 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'`
15618 backarrow_is_bs=${cf_xbool1}${cf_xbool2}
15619
15620 cat >>confdefs.h <<EOF
15621 #define DEF_BACKARO_BS $backarrow_is_bs
15622 EOF
15623
15624 echo "$as_me:15624: checking if backarrow-key should be treated as erase" >&5
15625 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6
15626
15627 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given.
15628 if test "${enable_backarrow_is_erase+set}" = set; then
15629 enableval="$enable_backarrow_is_erase"
15630 test "$enableval" != yes && enableval=no
15631 if test "$enableval" != "no" ; then
15632 backarrow_is_erase=$enableval
15633 else
15634 backarrow_is_erase=no
15635 fi
15636 else
15637 enableval=no
15638 backarrow_is_erase=no
15639
15640 fi;
15641
15642 echo "$as_me:15642: result: $backarrow_is_erase" >&5
15643 echo "${ECHO_T}$backarrow_is_erase" >&6
15644 case $backarrow_is_erase in
15645 (yes)
15646 backarrow_is_erase=true
15647 ;;
15648 (no)
15649 backarrow_is_erase=false
15650 ;;
15651 esac
15652 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'`
15653
15654 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15655
15656 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'`
15657 backarrow_is_erase=${cf_xbool1}${cf_xbool2}
15658
15659 cat >>confdefs.h <<EOF
15660 #define DEF_BACKARO_ERASE $backarrow_is_erase
15661 EOF
15662
15663 echo "$as_me:15663: checking for default backspace/DEL setting" >&5
15664 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6
15665
15666 # Check whether --enable-delete-is-del or --disable-delete-is-del was given.
15667 if test "${enable_delete_is_del+set}" = set; then
15668 enableval="$enable_delete_is_del"
15669 delete_is_del=$enableval
15670 else
15671 delete_is_del=maybe
15672 fi;
15673
15674 echo "$as_me:15674: result: $delete_is_del" >&5
15675 echo "${ECHO_T}$delete_is_del" >&6
15676 case $delete_is_del in
15677 (yes)
15678 delete_is_del=true
15679 ;;
15680 (no)
15681 delete_is_del=false
15682 ;;
15683 esac
15684 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'`
15685
15686 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15687
15688 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'`
15689 delete_is_del=${cf_xbool1}${cf_xbool2}
15690
15691 cat >>confdefs.h <<EOF
15692 #define DEFDELETE_DEL $delete_is_del
15693 EOF
15694
15695 echo "$as_me:15695: checking for default pty initial erase setting" >&5
15696 echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6
15697
15698 # Check whether --enable-pty-erase or --disable-pty-erase was given.
15699 if test "${enable_pty_erase+set}" = set; then
15700 enableval="$enable_pty_erase"
15701 initial_erase=$enableval
15702 else
15703 initial_erase=False
15704 fi;
15705
15706 echo "$as_me:15706: result: $initial_erase" >&5
15707 echo "${ECHO_T}$initial_erase" >&6
15708 case $initial_erase in
15709 (yes)
15710 initial_erase=true
15711 ;;
15712 (no)
15713 initial_erase=false
15714 ;;
15715 esac
15716 cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'`
15717
15718 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15719
15720 cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'`
15721 initial_erase=${cf_xbool1}${cf_xbool2}
15722
15723 cat >>confdefs.h <<EOF
15724 #define DEF_INITIAL_ERASE $initial_erase
15725 EOF
15726
15727 echo "$as_me:15727: checking if alt should send ESC" >&5
15728 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6
15729
15730 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given.
15731 if test "${enable_alt_sends_esc+set}" = set; then
15732 enableval="$enable_alt_sends_esc"
15733 test "$enableval" != yes && enableval=no
15734 if test "$enableval" != "no" ; then
15735 alt_sends_esc=$enableval
15736 else
15737 alt_sends_esc=no
15738 fi
15739 else
15740 enableval=no
15741 alt_sends_esc=no
15742
15743 fi;
15744
15745 echo "$as_me:15745: result: $alt_sends_esc" >&5
15746 echo "${ECHO_T}$alt_sends_esc" >&6
15747 case $alt_sends_esc in
15748 (yes)
15749 alt_sends_esc=true
15750 ;;
15751 (no)
15752 alt_sends_esc=false
15753 ;;
15754 esac
15755 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'`
15756
15757 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15758
15759 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'`
15760 alt_sends_esc=${cf_xbool1}${cf_xbool2}
15761
15762 cat >>confdefs.h <<EOF
15763 #define DEF_ALT_SENDS_ESC $alt_sends_esc
15764 EOF
15765
15766 echo "$as_me:15766: checking if meta should send ESC" >&5
15767 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6
15768
15769 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given.
15770 if test "${enable_meta_sends_esc+set}" = set; then
15771 enableval="$enable_meta_sends_esc"
15772 test "$enableval" != yes && enableval=no
15773 if test "$enableval" != "no" ; then
15774 meta_sends_esc=$enableval
15775 else
15776 meta_sends_esc=no
15777 fi
15778 else
15779 enableval=no
15780 meta_sends_esc=no
15781
15782 fi;
15783
15784 echo "$as_me:15784: result: $meta_sends_esc" >&5
15785 echo "${ECHO_T}$meta_sends_esc" >&6
15786 case $meta_sends_esc in
15787 (yes)
15788 meta_sends_esc=true
15789 ;;
15790 (no)
15791 meta_sends_esc=false
15792 ;;
15793 esac
15794 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'`
15795
15796 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15797
15798 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'`
15799 meta_sends_esc=${cf_xbool1}${cf_xbool2}
15800
15801 cat >>confdefs.h <<EOF
15802 #define DEF_META_SENDS_ESC $meta_sends_esc
15803 EOF
15804
15805 ###############################################################################
15806 # Extract the first word of "tic", so it can be a program name with args.
15807 set dummy tic; ac_word=$2
15808 echo "$as_me:15808: checking for $ac_word" >&5
15809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15810 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813 if test -n "$cf_tic_prog"; then
15814 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
15815 else
15816 ac_save_IFS=$IFS; IFS=$ac_path_separator
15817 ac_dummy="$PATH"
15818 for ac_dir in $ac_dummy; do
15819 IFS=$ac_save_IFS
15820 test -z "$ac_dir" && ac_dir=.
15821 $as_executable_p "$ac_dir/$ac_word" || continue
15822 ac_cv_prog_cf_tic_prog="yes"
15823 echo "$as_me:15823: found $ac_dir/$ac_word" >&5
15824 break
15825 done
15826
15827 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
15828 fi
15829 fi
15830 cf_tic_prog=$ac_cv_prog_cf_tic_prog
15831 if test -n "$cf_tic_prog"; then
15832 echo "$as_me:15832: result: $cf_tic_prog" >&5
15833 echo "${ECHO_T}$cf_tic_prog" >&6
15834 else
15835 echo "$as_me:15835: result: no" >&5
15836 echo "${ECHO_T}no" >&6
15837 fi
15838
15839 if test "$cf_tic_prog" = yes ; then
15840 echo "$as_me:15840: checking for private terminfo-directory" >&5
15841 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
15842
15843 # Check whether --with-own-terminfo or --without-own-terminfo was given.
15844 if test "${with_own_terminfo+set}" = set; then
15845 withval="$with_own_terminfo"
15846 TERMINFO_DIR=$withval
15847 else
15848 TERMINFO_DIR=${TERMINFO-none}
15849 fi;
15850 echo "$as_me:15850: result: $TERMINFO_DIR" >&5
15851 echo "${ECHO_T}$TERMINFO_DIR" >&6
15852 if test "$TERMINFO_DIR" = yes ; then
15853 { echo "$as_me:15853: WARNING: no value given" >&5
15854 echo "$as_me: WARNING: no value given" >&2;}
15855 elif test "$TERMINFO_DIR" != none ; then
15856 if test -d $TERMINFO_DIR ; then
15857
15858 cat >>confdefs.h <<EOF
15859 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
15860 EOF
15861
15862 else
15863 { echo "$as_me:15863: WARNING: not a directory" >&5
15864 echo "$as_me: WARNING: not a directory" >&2;}
15865 fi
15866 elif test "$prefix" != NONE ; then
15867 TERMINFO_DIR='${prefix}/lib/terminfo'
15868 elif test -d /usr/lib/terminfo ; then
15869 TERMINFO_DIR=/usr/lib/terminfo
15870 else
15871 TERMINFO_DIR=
15872 fi
15873 SET_TERMINFO=
15874 if test -n "$TERMINFO_DIR" ; then
15875 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
15876 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
15877 fi
15878 no_ticprog=
15879 else
15880 no_ticprog="#"
15881 TERMINFO_DIR=
15882 SET_TERMINFO=
15883 fi
15884
15885 ###############################################################################
15886
15887 echo "$as_me:15887: checking if you want active-icons" >&5
15888 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
15889
15890 # Check whether --enable-active-icon or --disable-active-icon was given.
15891 if test "${enable_active_icon+set}" = set; then
15892 enableval="$enable_active_icon"
15893 test "$enableval" != no && enableval=yes
15894 if test "$enableval" != "yes" ; then
15895 enable_active_icon=no
15896 else
15897 enable_active_icon=yes
15898 fi
15899 else
15900 enableval=yes
15901 enable_active_icon=yes
15902
15903 fi;
15904 echo "$as_me:15904: result: $enable_active_icon" >&5
15905 echo "${ECHO_T}$enable_active_icon" >&6
15906 if test "$enable_active_icon" = no ; then
15907
15908 cat >>confdefs.h <<\EOF
15909 #define NO_ACTIVE_ICON 1
15910 EOF
15911
15912 fi
15913
15914 echo "$as_me:15914: checking if you want ANSI color" >&5
15915 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
15916
15917 # Check whether --enable-ansi-color or --disable-ansi-color was given.
15918 if test "${enable_ansi_color+set}" = set; then
15919 enableval="$enable_ansi_color"
15920 test "$enableval" != no && enableval=yes
15921 if test "$enableval" != "yes" ; then
15922 enable_ansi_color=no
15923 else
15924 enable_ansi_color=yes
15925 fi
15926 else
15927 enableval=yes
15928 enable_ansi_color=yes
15929
15930 fi;
15931 echo "$as_me:15931: result: $enable_ansi_color" >&5
15932 echo "${ECHO_T}$enable_ansi_color" >&6
15933 test "$enable_ansi_color" = no &&
15934 cat >>confdefs.h <<\EOF
15935 #define OPT_ISO_COLORS 0
15936 EOF
15937
15938 if test "$enable_ansi_color" = yes ; then
15939
15940 echo "$as_me:15940: checking if you want 16 colors like aixterm" >&5
15941 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
15942
15943 # Check whether --enable-16-color or --disable-16-color was given.
15944 if test "${enable_16_color+set}" = set; then
15945 enableval="$enable_16_color"
15946 test "$enableval" != no && enableval=yes
15947 if test "$enableval" != "yes" ; then
15948 enable_16_color=no
15949 else
15950 enable_16_color=yes
15951 fi
15952 else
15953 enableval=yes
15954 enable_16_color=yes
15955
15956 fi;
15957 echo "$as_me:15957: result: $enable_16_color" >&5
15958 echo "${ECHO_T}$enable_16_color" >&6
15959 test "$enable_16_color" = no &&
15960 cat >>confdefs.h <<\EOF
15961 #define OPT_AIX_COLORS 0
15962 EOF
15963
15964 echo "$as_me:15964: checking if you want 256 colors" >&5
15965 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
15966
15967 # Check whether --enable-256-color or --disable-256-color was given.
15968 if test "${enable_256_color+set}" = set; then
15969 enableval="$enable_256_color"
15970 test "$enableval" != yes && enableval=no
15971 if test "$enableval" != "no" ; then
15972 enable_256_color=yes
15973 else
15974 enable_256_color=no
15975 fi
15976 else
15977 enableval=no
15978 enable_256_color=no
15979
15980 fi;
15981 echo "$as_me:15981: result: $enable_256_color" >&5
15982 echo "${ECHO_T}$enable_256_color" >&6
15983 if test "$enable_256_color" = yes ; then
15984 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
15985 EXTRAHDRS="$EXTRAHDRS 256colres.h"
15986
15987 cat >>confdefs.h <<\EOF
15988 #define OPT_256_COLORS 1
15989 EOF
15990
15991 else
15992 echo "$as_me:15992: checking if you want 88 colors" >&5
15993 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
15994
15995 # Check whether --enable-88-color or --disable-88-color was given.
15996 if test "${enable_88_color+set}" = set; then
15997 enableval="$enable_88_color"
15998 test "$enableval" != yes && enableval=no
15999 if test "$enableval" != "no" ; then
16000 enable_88_color=yes
16001 else
16002 enable_88_color=no
16003 fi
16004 else
16005 enableval=no
16006 enable_88_color=no
16007
16008 fi;
16009 echo "$as_me:16009: result: $enable_88_color" >&5
16010 echo "${ECHO_T}$enable_88_color" >&6
16011 if test "$enable_88_color" = yes ; then
16012 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
16013 EXTRAHDRS="$EXTRAHDRS 88colres.h"
16014
16015 cat >>confdefs.h <<\EOF
16016 #define OPT_88_COLORS 1
16017 EOF
16018
16019 fi
16020 fi
16021
16022 fi
16023
16024 echo "$as_me:16024: checking if you want blinking cursor" >&5
16025 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
16026
16027 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
16028 if test "${enable_blink_cursor+set}" = set; then
16029 enableval="$enable_blink_cursor"
16030 test "$enableval" != no && enableval=yes
16031 if test "$enableval" != "yes" ; then
16032 enable_blink_curs=no
16033 else
16034 enable_blink_curs=yes
16035 fi
16036 else
16037 enableval=yes
16038 enable_blink_curs=yes
16039
16040 fi;
16041 echo "$as_me:16041: result: $enable_blink_curs" >&5
16042 echo "${ECHO_T}$enable_blink_curs" >&6
16043 test "$enable_blink_curs" = no &&
16044 cat >>confdefs.h <<\EOF
16045 #define OPT_BLINK_CURS 0
16046 EOF
16047
16048 echo "$as_me:16048: checking if you want to ignore Linux's broken palette-strings" >&5
16049 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
16050
16051 case $host_os in
16052 (linux*)
16053 assume_broken_osc=yes ;;
16054 (*)
16055 assume_broken_osc=no ;;
16056 esac
16057
16058 # Check whether --enable-broken-osc or --disable-broken-osc was given.
16059 if test "${enable_broken_osc+set}" = set; then
16060 enableval="$enable_broken_osc"
16061 test "$enableval" != no && enableval=yes
16062 if test "$enableval" != "$assume_broken_osc" ; then
16063 enable_broken_osc=$enableval
16064 else
16065 enable_broken_osc=$enableval
16066 fi
16067 else
16068 enableval=$assume_broken_osc
16069 enable_broken_osc=$enableval
16070
16071 fi;
16072 echo "$as_me:16072: result: $enable_broken_osc" >&5
16073 echo "${ECHO_T}$enable_broken_osc" >&6
16074 if test "$enable_broken_osc" = yes ; then
16075
16076 cat >>confdefs.h <<\EOF
16077 #define OPT_BROKEN_OSC 1
16078 EOF
16079
16080 else
16081
16082 cat >>confdefs.h <<\EOF
16083 #define OPT_BROKEN_OSC 0
16084 EOF
16085
16086 fi
16087
16088 echo "$as_me:16088: checking if you want to allow broken string-terminators" >&5
16089 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
16090
16091 # Check whether --enable-broken-st or --disable-broken-st was given.
16092 if test "${enable_broken_st+set}" = set; then
16093 enableval="$enable_broken_st"
16094 test "$enableval" != yes && enableval=no
16095 if test "$enableval" != "no" ; then
16096 enable_broken_st=no
16097 else
16098 enable_broken_st=yes
16099 fi
16100 else
16101 enableval=no
16102 enable_broken_st=yes
16103
16104 fi;
16105 echo "$as_me:16105: result: $enable_broken_st" >&5
16106 echo "${ECHO_T}$enable_broken_st" >&6
16107 test "$enable_broken_st" = no &&
16108 cat >>confdefs.h <<\EOF
16109 #define OPT_BROKEN_ST 0
16110 EOF
16111
16112 echo "$as_me:16112: checking if you want to compile-in icon data" >&5
16113 echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6
16114
16115 # Check whether --enable-builtin-xpms or --disable-builtin-xpms was given.
16116 if test "${enable_builtin_xpms+set}" = set; then
16117 enableval="$enable_builtin_xpms"
16118 test "$enableval" != yes && enableval=no
16119 if test "$enableval" != "no" ; then
16120 enable_builtin_xpms=yes
16121 else
16122 enable_builtin_xpms=no
16123 fi
16124 else
16125 enableval=no
16126 enable_builtin_xpms=no
16127
16128 fi;
16129 echo "$as_me:16129: result: $enable_builtin_xpms" >&5
16130 echo "${ECHO_T}$enable_builtin_xpms" >&6
16131 test "$enable_builtin_xpms" = yes &&
16132 cat >>confdefs.h <<\EOF
16133 #define OPT_BUILTIN_XPMS 1
16134 EOF
16135
16136 echo "$as_me:16136: checking if you want printable 128-159" >&5
16137 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
16138
16139 # Check whether --enable-c1-print or --disable-c1-print was given.
16140 if test "${enable_c1_print+set}" = set; then
16141 enableval="$enable_c1_print"
16142 test "$enableval" != no && enableval=yes
16143 if test "$enableval" != "yes" ; then
16144 enable_c1_print=no
16145 else
16146 enable_c1_print=yes
16147 fi
16148 else
16149 enableval=yes
16150 enable_c1_print=yes
16151
16152 fi;
16153 echo "$as_me:16153: result: $enable_c1_print" >&5
16154 echo "${ECHO_T}$enable_c1_print" >&6
16155 test "$enable_c1_print" = no &&
16156 cat >>confdefs.h <<\EOF
16157 #define OPT_C1_PRINT 0
16158 EOF
16159
16160 if test "$enable_ansi_color" = yes ; then
16161
16162 echo "$as_me:16162: checking if you want bold colors mapped like IBM PC" >&5
16163 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
16164
16165 # Check whether --enable-bold-color or --disable-bold-color was given.
16166 if test "${enable_bold_color+set}" = set; then
16167 enableval="$enable_bold_color"
16168 test "$enableval" != no && enableval=yes
16169 if test "$enableval" != "yes" ; then
16170 enable_pc_color=no
16171 else
16172 enable_pc_color=yes
16173 fi
16174 else
16175 enableval=yes
16176 enable_pc_color=yes
16177
16178 fi;
16179 echo "$as_me:16179: result: $enable_pc_color" >&5
16180 echo "${ECHO_T}$enable_pc_color" >&6
16181 test "$enable_pc_color" = no &&
16182 cat >>confdefs.h <<\EOF
16183 #define OPT_PC_COLORS 0
16184 EOF
16185
16186 echo "$as_me:16186: checking if you want separate color-classes" >&5
16187 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
16188
16189 # Check whether --enable-color-class or --disable-color-class was given.
16190 if test "${enable_color_class+set}" = set; then
16191 enableval="$enable_color_class"
16192 test "$enableval" != no && enableval=yes
16193 if test "$enableval" != "yes" ; then
16194 enable_color_class=no
16195 else
16196 enable_color_class=yes
16197 fi
16198 else
16199 enableval=yes
16200 enable_color_class=yes
16201
16202 fi;
16203 echo "$as_me:16203: result: $enable_color_class" >&5
16204 echo "${ECHO_T}$enable_color_class" >&6
16205 test "$enable_color_class" = no &&
16206 cat >>confdefs.h <<\EOF
16207 #define OPT_COLOR_CLASS 0
16208 EOF
16209
16210 echo "$as_me:16210: checking if you want color-mode enabled by default" >&5
16211 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
16212
16213 # Check whether --enable-color-mode or --disable-color-mode was given.
16214 if test "${enable_color_mode+set}" = set; then
16215 enableval="$enable_color_mode"
16216 test "$enableval" != no && enableval=yes
16217 if test "$enableval" != "yes" ; then
16218 default_colormode=no
16219 else
16220 default_colormode=yes
16221 fi
16222 else
16223 enableval=yes
16224 default_colormode=yes
16225
16226 fi;
16227 echo "$as_me:16227: result: $default_colormode" >&5
16228 echo "${ECHO_T}$default_colormode" >&6
16229 test "$default_colormode" = no &&
16230 cat >>confdefs.h <<\EOF
16231 #define DFT_COLORMODE 0
16232 EOF
16233
16234 fi
16235
16236 echo "$as_me:16236: checking if you want support for color highlighting" >&5
16237 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
16238
16239 # Check whether --enable-highlighting or --disable-highlighting was given.
16240 if test "${enable_highlighting+set}" = set; then
16241 enableval="$enable_highlighting"
16242 test "$enableval" != no && enableval=yes
16243 if test "$enableval" != "yes" ; then
16244 default_highlight=no
16245 else
16246 default_highlight=yes
16247 fi
16248 else
16249 enableval=yes
16250 default_highlight=yes
16251
16252 fi;
16253 echo "$as_me:16253: result: $default_highlight" >&5
16254 echo "${ECHO_T}$default_highlight" >&6
16255 test "$default_highlight" = no &&
16256 cat >>confdefs.h <<\EOF
16257 #define OPT_HIGHLIGHT_COLOR 0
16258 EOF
16259
16260 echo "$as_me:16260: checking if you want support for doublesize characters" >&5
16261 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
16262
16263 # Check whether --enable-doublechars or --disable-doublechars was given.
16264 if test "${enable_doublechars+set}" = set; then
16265 enableval="$enable_doublechars"
16266 test "$enableval" != no && enableval=yes
16267 if test "$enableval" != "yes" ; then
16268 enable_doublechars=no
16269 else
16270 enable_doublechars=yes
16271 fi
16272 else
16273 enableval=yes
16274 enable_doublechars=yes
16275
16276 fi;
16277 echo "$as_me:16277: result: $enable_doublechars" >&5
16278 echo "${ECHO_T}$enable_doublechars" >&6
16279 test "$enable_doublechars" = no &&
16280 cat >>confdefs.h <<\EOF
16281 #define OPT_DEC_CHRSET 0
16282 EOF
16283
16284 echo "$as_me:16284: checking if you want fallback-support for box characters" >&5
16285 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
16286
16287 # Check whether --enable-boxchars or --disable-boxchars was given.
16288 if test "${enable_boxchars+set}" = set; then
16289 enableval="$enable_boxchars"
16290 test "$enableval" != no && enableval=yes
16291 if test "$enableval" != "yes" ; then
16292 enable_boxchars=no
16293 else
16294 enable_boxchars=yes
16295 fi
16296 else
16297 enableval=yes
16298 enable_boxchars=yes
16299
16300 fi;
16301 echo "$as_me:16301: result: $enable_boxchars" >&5
16302 echo "${ECHO_T}$enable_boxchars" >&6
16303 test "$enable_boxchars" = no &&
16304 cat >>confdefs.h <<\EOF
16305 #define OPT_BOX_CHARS 0
16306 EOF
16307
16308 echo "$as_me:16308: checking if you want to allow spawning new xterms" >&5
16309 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
16310
16311 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
16312 if test "${enable_exec_xterm+set}" = set; then
16313 enableval="$enable_exec_xterm"
16314 test "$enableval" != yes && enableval=no
16315 if test "$enableval" != "no" ; then
16316 enable_exec_xterm=yes
16317 else
16318 enable_exec_xterm=no
16319 fi
16320 else
16321 enableval=no
16322 enable_exec_xterm=no
16323
16324 fi;
16325 echo "$as_me:16325: result: $enable_exec_xterm" >&5
16326 echo "${ECHO_T}$enable_exec_xterm" >&6
16327 if test "$enable_exec_xterm" = yes ; then
16328
16329 echo "$as_me:16329: checking for proc tree with cwd-support" >&5
16330 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
16331 if test "${cf_cv_procfs_cwd+set}" = set; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334
16335 cf_cv_procfs_cwd=no
16336 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
16337 do
16338 if test -d $cf_path && \
16339 test -d $cf_path/$$ && \
16340 ( test -d $cf_path/$$/cwd || \
16341 test -L $cf_path/$$/cwd ); then
16342 cf_cv_procfs_cwd=$cf_path
16343 break
16344 fi
16345 done
16346
16347 fi
16348 echo "$as_me:16348: result: $cf_cv_procfs_cwd" >&5
16349 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
16350
16351 if test "$cf_cv_procfs_cwd" = no ; then
16352 { echo "$as_me:16352: WARNING: no suitable proc filesystem found" >&5
16353 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
16354 else
16355
16356 cat >>confdefs.h <<EOF
16357 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
16358 EOF
16359
16360 cat >>confdefs.h <<\EOF
16361 #define OPT_EXEC_XTERM 1
16362 EOF
16363
16364 fi
16365 fi
16366
16367 echo "$as_me:16367: checking if you want to use double-buffering" >&5
16368 echo $ECHO_N "checking if you want to use double-buffering... $ECHO_C" >&6
16369
16370 # Check whether --enable-double-buffer or --disable-double-buffer was given.
16371 if test "${enable_double_buffer+set}" = set; then
16372 enableval="$enable_double_buffer"
16373 test "$enableval" != yes && enableval=no
16374 if test "$enableval" != "no" ; then
16375 enable_double_bfr=yes
16376 else
16377 enable_double_bfr=no
16378 fi
16379 else
16380 enableval=no
16381 enable_double_bfr=no
16382
16383 fi;
16384 echo "$as_me:16384: result: $enable_double_bfr" >&5
16385 echo "${ECHO_T}$enable_double_bfr" >&6
16386 if test "$enable_double_bfr" = yes ; then
16387 case "x$LIBS" in
16388 (*Xext*)
16389 ;;
16390 (*)
16391
16392 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
16393 test -n "$verbose" && echo " found package Xext" 1>&6
16394
16395 echo "${as_me:-configure}:16395: testing found package Xext ..." 1>&5
16396
16397 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
16398 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
16399 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
16400
16401 echo "${as_me:-configure}:16401: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
16402
16403 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
16404
16405 echo "${as_me:-configure}:16405: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
16406
16407 cf_fix_cppflags=no
16408 cf_new_cflags=
16409 cf_new_cppflags=
16410 cf_new_extra_cppflags=
16411
16412 for cf_add_cflags in $cf_pkgconfig_incs
16413 do
16414 case $cf_fix_cppflags in
16415 (no)
16416 case $cf_add_cflags in
16417 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16418 case $cf_add_cflags in
16419 (-D*)
16420 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16421
16422 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16423 && test -z "${cf_tst_cflags}" \
16424 && cf_fix_cppflags=yes
16425
16426 if test $cf_fix_cppflags = yes ; then
16427 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16428 continue
16429 elif test "${cf_tst_cflags}" = "\"'" ; then
16430 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16431 continue
16432 fi
16433 ;;
16434 esac
16435 case "$CPPFLAGS" in
16436 (*$cf_add_cflags)
16437 ;;
16438 (*)
16439 case $cf_add_cflags in
16440 (-D*)
16441 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16442
16443 CPPFLAGS=`echo "$CPPFLAGS" | \
16444 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16445 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16446
16447 ;;
16448 esac
16449 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16450 ;;
16451 esac
16452 ;;
16453 (*)
16454 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16455 ;;
16456 esac
16457 ;;
16458 (yes)
16459 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16460
16461 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16462
16463 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16464 && test -z "${cf_tst_cflags}" \
16465 && cf_fix_cppflags=no
16466 ;;
16467 esac
16468 done
16469
16470 if test -n "$cf_new_cflags" ; then
16471
16472 CFLAGS="$CFLAGS $cf_new_cflags"
16473 fi
16474
16475 if test -n "$cf_new_cppflags" ; then
16476
16477 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16478 fi
16479
16480 if test -n "$cf_new_extra_cppflags" ; then
16481
16482 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16483 fi
16484
16485 cf_add_libs="$cf_pkgconfig_libs"
16486 # Filter out duplicates - this happens with badly-designed ".pc" files...
16487 for cf_add_1lib in $LIBS
16488 do
16489 for cf_add_2lib in $cf_add_libs
16490 do
16491 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16492 then
16493 cf_add_1lib=
16494 break
16495 fi
16496 done
16497 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16498 done
16499 LIBS="$cf_add_libs"
16500
16501 :
16502 else
16503 cf_pkgconfig_incs=
16504 cf_pkgconfig_libs=
16505
16506 echo "$as_me:16506: checking for XextCreateExtension in -lXext" >&5
16507 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
16508 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511 ac_check_lib_save_LIBS=$LIBS
16512 LIBS="-lXext $LIBS"
16513 cat >conftest.$ac_ext <<_ACEOF
16514 #line 16514 "configure"
16515 #include "confdefs.h"
16516
16517 /* Override any gcc2 internal prototype to avoid an error. */
16518 #ifdef __cplusplus
16519 extern "C"
16520 #endif
16521 /* We use char because int might match the return type of a gcc2
16522 builtin and then its argument prototype would still apply. */
16523 char XextCreateExtension ();
16524 int
16525 main ()
16526 {
16527 XextCreateExtension ();
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (eval echo "$as_me:16533: \"$ac_link\"") >&5
16534 (eval $ac_link) 2>&5
16535 ac_status=$?
16536 echo "$as_me:16536: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -s conftest$ac_exeext'
16539 { (eval echo "$as_me:16539: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:16542: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_lib_Xext_XextCreateExtension=yes
16545 else
16546 echo "$as_me: failed program was:" >&5
16547 cat conftest.$ac_ext >&5
16548 ac_cv_lib_Xext_XextCreateExtension=no
16549 fi
16550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16552 fi
16553 echo "$as_me:16553: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
16554 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
16555 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
16556
16557 cf_add_libs="-lXext"
16558 # Filter out duplicates - this happens with badly-designed ".pc" files...
16559 for cf_add_1lib in $LIBS
16560 do
16561 for cf_add_2lib in $cf_add_libs
16562 do
16563 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16564 then
16565 cf_add_1lib=
16566 break
16567 fi
16568 done
16569 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16570 done
16571 LIBS="$cf_add_libs"
16572
16573 fi
16574
16575 fi
16576
16577 ;;
16578 esac
16579
16580 cat >>confdefs.h <<\EOF
16581 #define OPT_DOUBLE_BUFFER 1
16582 EOF
16583
16584 fi
16585
16586 echo "$as_me:16586: checking if you want to use FreeType library" >&5
16587 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
16588
16589 # Check whether --enable-freetype or --disable-freetype was given.
16590 if test "${enable_freetype+set}" = set; then
16591 enableval="$enable_freetype"
16592 test "$enableval" != no && enableval=yes
16593 if test "$enableval" != "yes" ; then
16594 enable_freetype=no
16595 else
16596 enable_freetype=yes
16597 fi
16598 else
16599 enableval=yes
16600 enable_freetype=yes
16601
16602 fi;
16603 echo "$as_me:16603: result: $enable_freetype" >&5
16604 echo "${ECHO_T}$enable_freetype" >&6
16605 if test "$enable_freetype" = yes ; then
16606
16607 cf_cv_x_freetype_incs=no
16608 cf_cv_x_freetype_libs=no
16609 cf_extra_freetype_libs=
16610 FREETYPE_CONFIG=none
16611 FREETYPE_PARAMS=
16612
16613 echo "$as_me:16613: checking for FreeType configuration script" >&5
16614 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6
16615
16616 # Check whether --with-freetype-config or --without-freetype-config was given.
16617 if test "${with_freetype_config+set}" = set; then
16618 withval="$with_freetype_config"
16619 cf_cv_x_freetype_cfgs="$withval"
16620 else
16621 cf_cv_x_freetype_cfgs=auto
16622 fi;
16623 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto
16624 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none
16625 echo "$as_me:16625: result: $cf_cv_x_freetype_cfgs" >&5
16626 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6
16627
16628 case $cf_cv_x_freetype_cfgs in
16629 (none)
16630 echo "$as_me:16630: checking if you specified -D/-I options for FreeType" >&5
16631 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
16632
16633 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
16634 if test "${with_freetype_cflags+set}" = set; then
16635 withval="$with_freetype_cflags"
16636 cf_cv_x_freetype_incs="$with_freetype_cflags"
16637 else
16638 cf_cv_x_freetype_incs=no
16639 fi;
16640 echo "$as_me:16640: result: $cf_cv_x_freetype_incs" >&5
16641 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
16642
16643 echo "$as_me:16643: checking if you specified -L/-l options for FreeType" >&5
16644 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
16645
16646 # Check whether --with-freetype-libs or --without-freetype-libs was given.
16647 if test "${with_freetype_libs+set}" = set; then
16648 withval="$with_freetype_libs"
16649 cf_cv_x_freetype_libs="$with_freetype_libs"
16650 else
16651 cf_cv_x_freetype_libs=no
16652 fi;
16653 echo "$as_me:16653: result: $cf_cv_x_freetype_libs" >&5
16654 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
16655 ;;
16656 (auto)
16657 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
16658 FREETYPE_CONFIG=$PKG_CONFIG
16659 FREETYPE_PARAMS=xft
16660 else
16661 # Extract the first word of "freetype-config", so it can be a program name with args.
16662 set dummy freetype-config; ac_word=$2
16663 echo "$as_me:16663: checking for $ac_word" >&5
16664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16665 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668 case $FREETYPE_CONFIG in
16669 [\\/]* | ?:[\\/]*)
16670 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
16671 ;;
16672 *)
16673 ac_save_IFS=$IFS; IFS=$ac_path_separator
16674 ac_dummy="$PATH"
16675 for ac_dir in $ac_dummy; do
16676 IFS=$ac_save_IFS
16677 test -z "$ac_dir" && ac_dir=.
16678 if $as_executable_p "$ac_dir/$ac_word"; then
16679 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word"
16680 echo "$as_me:16680: found $ac_dir/$ac_word" >&5
16681 break
16682 fi
16683 done
16684
16685 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none"
16686 ;;
16687 esac
16688 fi
16689 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
16690
16691 if test -n "$FREETYPE_CONFIG"; then
16692 echo "$as_me:16692: result: $FREETYPE_CONFIG" >&5
16693 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
16694 else
16695 echo "$as_me:16695: result: no" >&5
16696 echo "${ECHO_T}no" >&6
16697 fi
16698
16699 if test "$FREETYPE_CONFIG" != none; then
16700 FREETYPE_CONFIG=$FREETYPE_CONFIG
16701 cf_extra_freetype_libs="-lXft"
16702 else
16703 # Extract the first word of "xft-config", so it can be a program name with args.
16704 set dummy xft-config; ac_word=$2
16705 echo "$as_me:16705: checking for $ac_word" >&5
16706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16707 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 else
16710 case $FREETYPE_OLD_CONFIG in
16711 [\\/]* | ?:[\\/]*)
16712 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
16713 ;;
16714 *)
16715 ac_save_IFS=$IFS; IFS=$ac_path_separator
16716 ac_dummy="$PATH"
16717 for ac_dir in $ac_dummy; do
16718 IFS=$ac_save_IFS
16719 test -z "$ac_dir" && ac_dir=.
16720 if $as_executable_p "$ac_dir/$ac_word"; then
16721 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
16722 echo "$as_me:16722: found $ac_dir/$ac_word" >&5
16723 break
16724 fi
16725 done
16726
16727 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
16728 ;;
16729 esac
16730 fi
16731 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
16732
16733 if test -n "$FREETYPE_OLD_CONFIG"; then
16734 echo "$as_me:16734: result: $FREETYPE_OLD_CONFIG" >&5
16735 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
16736 else
16737 echo "$as_me:16737: result: no" >&5
16738 echo "${ECHO_T}no" >&6
16739 fi
16740
16741 if test "$FREETYPE_OLD_CONFIG" != none; then
16742 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
16743 fi
16744 fi
16745 fi
16746 ;;
16747 (pkg*)
16748 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
16749 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs
16750 FREETYPE_PARAMS=xft
16751 else
16752 { echo "$as_me:16752: WARNING: cannot find pkg-config for Xft" >&5
16753 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;}
16754 fi
16755 ;;
16756 (*)
16757 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args.
16758 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2
16759 echo "$as_me:16759: checking for $ac_word" >&5
16760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16761 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 case $FREETYPE_XFT_CONFIG in
16765 [\\/]* | ?:[\\/]*)
16766 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
16767 ;;
16768 *)
16769 ac_save_IFS=$IFS; IFS=$ac_path_separator
16770 ac_dummy="$PATH"
16771 for ac_dir in $ac_dummy; do
16772 IFS=$ac_save_IFS
16773 test -z "$ac_dir" && ac_dir=.
16774 if $as_executable_p "$ac_dir/$ac_word"; then
16775 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
16776 echo "$as_me:16776: found $ac_dir/$ac_word" >&5
16777 break
16778 fi
16779 done
16780
16781 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
16782 ;;
16783 esac
16784 fi
16785 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
16786
16787 if test -n "$FREETYPE_XFT_CONFIG"; then
16788 echo "$as_me:16788: result: $FREETYPE_XFT_CONFIG" >&5
16789 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
16790 else
16791 echo "$as_me:16791: result: no" >&5
16792 echo "${ECHO_T}no" >&6
16793 fi
16794
16795 if test "$FREETYPE_XFT_CONFIG" != none; then
16796 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
16797 else
16798 { echo "$as_me:16798: WARNING: cannot find config script for Xft" >&5
16799 echo "$as_me: WARNING: cannot find config script for Xft" >&2;}
16800 fi
16801 ;;
16802 esac
16803
16804 if test "$FREETYPE_CONFIG" != none ; then
16805 echo "$as_me:16805: checking for FreeType config" >&5
16806 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
16807 echo "$as_me:16807: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
16808 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
16809
16810 if test "$cf_cv_x_freetype_incs" = no ; then
16811 echo "$as_me:16811: checking for $FREETYPE_CONFIG cflags" >&5
16812 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
16813 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
16814 echo "$as_me:16814: result: $cf_cv_x_freetype_incs" >&5
16815 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
16816 fi
16817
16818 if test "$cf_cv_x_freetype_libs" = no ; then
16819 echo "$as_me:16819: checking for $FREETYPE_CONFIG libs" >&5
16820 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
16821 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
16822 echo "$as_me:16822: result: $cf_cv_x_freetype_libs" >&5
16823 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
16824 fi
16825 fi
16826
16827 if test "$cf_cv_x_freetype_incs" = no ; then
16828 cf_cv_x_freetype_incs=
16829 fi
16830
16831 if test "$cf_cv_x_freetype_libs" = no ; then
16832 cf_cv_x_freetype_libs=-lXft
16833 fi
16834
16835 echo "$as_me:16835: checking if we can link with FreeType libraries" >&5
16836 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
16837
16838 cf_save_LIBS="$LIBS"
16839 cf_save_INCS="$CPPFLAGS"
16840
16841 cf_add_libs="$cf_cv_x_freetype_libs"
16842 # Filter out duplicates - this happens with badly-designed ".pc" files...
16843 for cf_add_1lib in $LIBS
16844 do
16845 for cf_add_2lib in $cf_add_libs
16846 do
16847 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16848 then
16849 cf_add_1lib=
16850 break
16851 fi
16852 done
16853 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16854 done
16855 LIBS="$cf_add_libs"
16856
16857 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
16858
16859 cat >conftest.$ac_ext <<_ACEOF
16860 #line 16860 "configure"
16861 #include "confdefs.h"
16862
16863 #include <X11/Xlib.h>
16864 #include <X11/extensions/Xrender.h>
16865 #include <X11/Xft/Xft.h>
16866 int
16867 main ()
16868 {
16869
16870 XftPattern *pat = XftNameParse ("name");
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:16876: \"$ac_link\"") >&5
16877 (eval $ac_link) 2>&5
16878 ac_status=$?
16879 echo "$as_me:16879: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try='test -s conftest$ac_exeext'
16882 { (eval echo "$as_me:16882: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:16885: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 cf_cv_found_freetype=yes
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 cat conftest.$ac_ext >&5
16891 cf_cv_found_freetype=no
16892 fi
16893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16894 echo "$as_me:16894: result: $cf_cv_found_freetype" >&5
16895 echo "${ECHO_T}$cf_cv_found_freetype" >&6
16896
16897 LIBS="$cf_save_LIBS"
16898 CPPFLAGS="$cf_save_INCS"
16899
16900 if test "$cf_cv_found_freetype" = yes ; then
16901
16902 cf_add_libs="$cf_cv_x_freetype_libs"
16903 # Filter out duplicates - this happens with badly-designed ".pc" files...
16904 for cf_add_1lib in $LIBS
16905 do
16906 for cf_add_2lib in $cf_add_libs
16907 do
16908 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16909 then
16910 cf_add_1lib=
16911 break
16912 fi
16913 done
16914 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16915 done
16916 LIBS="$cf_add_libs"
16917
16918 cf_fix_cppflags=no
16919 cf_new_cflags=
16920 cf_new_cppflags=
16921 cf_new_extra_cppflags=
16922
16923 for cf_add_cflags in $cf_cv_x_freetype_incs
16924 do
16925 case $cf_fix_cppflags in
16926 (no)
16927 case $cf_add_cflags in
16928 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16929 case $cf_add_cflags in
16930 (-D*)
16931 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16932
16933 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16934 && test -z "${cf_tst_cflags}" \
16935 && cf_fix_cppflags=yes
16936
16937 if test $cf_fix_cppflags = yes ; then
16938 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16939 continue
16940 elif test "${cf_tst_cflags}" = "\"'" ; then
16941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16942 continue
16943 fi
16944 ;;
16945 esac
16946 case "$CPPFLAGS" in
16947 (*$cf_add_cflags)
16948 ;;
16949 (*)
16950 case $cf_add_cflags in
16951 (-D*)
16952 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16953
16954 CPPFLAGS=`echo "$CPPFLAGS" | \
16955 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16956 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16957
16958 ;;
16959 esac
16960 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16961 ;;
16962 esac
16963 ;;
16964 (*)
16965 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16966 ;;
16967 esac
16968 ;;
16969 (yes)
16970 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16971
16972 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16973
16974 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16975 && test -z "${cf_tst_cflags}" \
16976 && cf_fix_cppflags=no
16977 ;;
16978 esac
16979 done
16980
16981 if test -n "$cf_new_cflags" ; then
16982
16983 CFLAGS="$CFLAGS $cf_new_cflags"
16984 fi
16985
16986 if test -n "$cf_new_cppflags" ; then
16987
16988 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16989 fi
16990
16991 if test -n "$cf_new_extra_cppflags" ; then
16992
16993 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16994 fi
16995
16996 cat >>confdefs.h <<\EOF
16997 #define XRENDERFONT 1
16998 EOF
16999
17000 for ac_func in \
17001 XftDrawCharSpec \
17002 XftDrawSetClip \
17003 XftDrawSetClipRectangles \
17004
17005 do
17006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17007 echo "$as_me:17007: checking for $ac_func" >&5
17008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17009 if eval "test \"\${$as_ac_var+set}\" = set"; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012 cat >conftest.$ac_ext <<_ACEOF
17013 #line 17013 "configure"
17014 #include "confdefs.h"
17015 /* System header to define __stub macros and hopefully few prototypes,
17016 which can conflict with char $ac_func (); below. */
17017 #include <assert.h>
17018 /* Override any gcc2 internal prototype to avoid an error. */
17019 #ifdef __cplusplus
17020 extern "C"
17021 #endif
17022 /* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024 char $ac_func ();
17025 char (*f) ();
17026
17027 int
17028 main ()
17029 {
17030 /* The GNU C library defines this for functions which it implements
17031 to always fail with ENOSYS. Some functions are actually named
17032 something starting with __ and the normal name is an alias. */
17033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17034 choke me
17035 #else
17036 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17037 #endif
17038
17039 ;
17040 return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (eval echo "$as_me:17044: \"$ac_link\"") >&5
17045 (eval $ac_link) 2>&5
17046 ac_status=$?
17047 echo "$as_me:17047: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:17050: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:17053: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 cat conftest.$ac_ext >&5
17059 eval "$as_ac_var=no"
17060 fi
17061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17062 fi
17063 echo "$as_me:17063: result: `eval echo '${'$as_ac_var'}'`" >&5
17064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17065 if test `eval echo '${'$as_ac_var'}'` = yes; then
17066 cat >>confdefs.h <<EOF
17067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17068 EOF
17069
17070 fi
17071 done
17072
17073 else
17074 { echo "$as_me:17074: WARNING: No libraries found for FreeType" >&5
17075 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
17076 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
17077 fi
17078
17079 # FIXME: revisit this if needed
17080
17081 if test "$cf_cv_found_freetype" = yes ; then
17082 echo "$as_me:17082: checking for usable Xft/fontconfig package" >&5
17083 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
17084 if test "${cf_cv_xft_compat+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 else
17087
17088 cat >conftest.$ac_ext <<_ACEOF
17089 #line 17089 "configure"
17090 #include "confdefs.h"
17091
17092 #include <X11/Xft/Xft.h>
17093
17094 int
17095 main ()
17096 {
17097
17098 XftPattern *pat;
17099 XftPatternBuild(pat,
17100 XFT_FAMILY, XftTypeString, "mono",
17101 (void *) 0);
17102
17103 ;
17104 return 0;
17105 }
17106 _ACEOF
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (eval echo "$as_me:17108: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>&5
17110 ac_status=$?
17111 echo "$as_me:17111: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -s conftest$ac_exeext'
17114 { (eval echo "$as_me:17114: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 echo "$as_me:17117: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 cf_cv_xft_compat=yes
17120 else
17121 echo "$as_me: failed program was:" >&5
17122 cat conftest.$ac_ext >&5
17123 cf_cv_xft_compat=no
17124 fi
17125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17126
17127 fi
17128 echo "$as_me:17128: result: $cf_cv_xft_compat" >&5
17129 echo "${ECHO_T}$cf_cv_xft_compat" >&6
17130
17131 if test "$cf_cv_xft_compat" = no
17132 then
17133 # workaround for broken ".pc" files used for Xft.
17134 case "$cf_cv_x_freetype_libs" in
17135 (*-lfontconfig*)
17136 ;;
17137 (*)
17138 test -n "$verbose" && echo " work around broken package" 1>&6
17139
17140 echo "${as_me:-configure}:17140: testing work around broken package ..." 1>&5
17141
17142 cf_save_fontconfig="$LIBS"
17143
17144 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then
17145 test -n "$verbose" && echo " found package fontconfig" 1>&6
17146
17147 echo "${as_me:-configure}:17147: testing found package fontconfig ..." 1>&5
17148
17149 cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`"
17150 cf_pkgconfig_libs="`$PKG_CONFIG --libs fontconfig 2>/dev/null`"
17151 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
17152
17153 echo "${as_me:-configure}:17153: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
17154
17155 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
17156
17157 echo "${as_me:-configure}:17157: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
17158
17159 cf_fix_cppflags=no
17160 cf_new_cflags=
17161 cf_new_cppflags=
17162 cf_new_extra_cppflags=
17163
17164 for cf_add_cflags in $cf_pkgconfig_incs
17165 do
17166 case $cf_fix_cppflags in
17167 (no)
17168 case $cf_add_cflags in
17169 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17170 case $cf_add_cflags in
17171 (-D*)
17172 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17173
17174 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17175 && test -z "${cf_tst_cflags}" \
17176 && cf_fix_cppflags=yes
17177
17178 if test $cf_fix_cppflags = yes ; then
17179 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17180 continue
17181 elif test "${cf_tst_cflags}" = "\"'" ; then
17182 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17183 continue
17184 fi
17185 ;;
17186 esac
17187 case "$CPPFLAGS" in
17188 (*$cf_add_cflags)
17189 ;;
17190 (*)
17191 case $cf_add_cflags in
17192 (-D*)
17193 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17194
17195 CPPFLAGS=`echo "$CPPFLAGS" | \
17196 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17197 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17198
17199 ;;
17200 esac
17201 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17202 ;;
17203 esac
17204 ;;
17205 (*)
17206 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17207 ;;
17208 esac
17209 ;;
17210 (yes)
17211 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17212
17213 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17214
17215 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17216 && test -z "${cf_tst_cflags}" \
17217 && cf_fix_cppflags=no
17218 ;;
17219 esac
17220 done
17221
17222 if test -n "$cf_new_cflags" ; then
17223
17224 CFLAGS="$CFLAGS $cf_new_cflags"
17225 fi
17226
17227 if test -n "$cf_new_cppflags" ; then
17228
17229 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17230 fi
17231
17232 if test -n "$cf_new_extra_cppflags" ; then
17233
17234 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17235 fi
17236
17237 cf_add_libs="$cf_pkgconfig_libs"
17238 # Filter out duplicates - this happens with badly-designed ".pc" files...
17239 for cf_add_1lib in $LIBS
17240 do
17241 for cf_add_2lib in $cf_add_libs
17242 do
17243 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17244 then
17245 cf_add_1lib=
17246 break
17247 fi
17248 done
17249 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17250 done
17251 LIBS="$cf_add_libs"
17252
17253 cf_fix_cppflags=no
17254 cf_new_cflags=
17255 cf_new_cppflags=
17256 cf_new_extra_cppflags=
17257
17258 for cf_add_cflags in $cf_pkgconfig_incs
17259 do
17260 case $cf_fix_cppflags in
17261 (no)
17262 case $cf_add_cflags in
17263 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17264 case $cf_add_cflags in
17265 (-D*)
17266 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17267
17268 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17269 && test -z "${cf_tst_cflags}" \
17270 && cf_fix_cppflags=yes
17271
17272 if test $cf_fix_cppflags = yes ; then
17273 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17274 continue
17275 elif test "${cf_tst_cflags}" = "\"'" ; then
17276 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17277 continue
17278 fi
17279 ;;
17280 esac
17281 case "$CPPFLAGS" in
17282 (*$cf_add_cflags)
17283 ;;
17284 (*)
17285 case $cf_add_cflags in
17286 (-D*)
17287 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17288
17289 CPPFLAGS=`echo "$CPPFLAGS" | \
17290 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17291 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17292
17293 ;;
17294 esac
17295 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17296 ;;
17297 esac
17298 ;;
17299 (*)
17300 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17301 ;;
17302 esac
17303 ;;
17304 (yes)
17305 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17306
17307 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17308
17309 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17310 && test -z "${cf_tst_cflags}" \
17311 && cf_fix_cppflags=no
17312 ;;
17313 esac
17314 done
17315
17316 if test -n "$cf_new_cflags" ; then
17317
17318 CFLAGS="$CFLAGS $cf_new_cflags"
17319 fi
17320
17321 if test -n "$cf_new_cppflags" ; then
17322
17323 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17324 fi
17325
17326 if test -n "$cf_new_extra_cppflags" ; then
17327
17328 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17329 fi
17330
17331 LIBS="$cf_save_fontconfig"
17332
17333 test -n "$verbose" && echo " ...before $LIBS" 1>&6
17334
17335 echo "${as_me:-configure}:17335: testing ...before $LIBS ..." 1>&5
17336
17337 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'`
17338 test -n "$verbose" && echo " ...after $LIBS" 1>&6
17339
17340 echo "${as_me:-configure}:17340: testing ...after $LIBS ..." 1>&5
17341
17342 else
17343 cf_pkgconfig_incs=
17344 cf_pkgconfig_libs=
17345
17346 test -n "$verbose" && echo " ...before $LIBS" 1>&6
17347
17348 echo "${as_me:-configure}:17348: testing ...before $LIBS ..." 1>&5
17349
17350 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'`
17351 test -n "$verbose" && echo " ...after $LIBS" 1>&6
17352
17353 echo "${as_me:-configure}:17353: testing ...after $LIBS ..." 1>&5
17354
17355 fi
17356
17357 ;;
17358 esac
17359 fi
17360 fi
17361
17362 else
17363 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
17364 fi
17365
17366 echo "$as_me:17366: checking if you want support for HP-style function keys" >&5
17367 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
17368
17369 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
17370 if test "${enable_hp_fkeys+set}" = set; then
17371 enableval="$enable_hp_fkeys"
17372 test "$enableval" != yes && enableval=no
17373 if test "$enableval" != "no" ; then
17374 enable_hp_fkeys=yes
17375 else
17376 enable_hp_fkeys=no
17377 fi
17378 else
17379 enableval=no
17380 enable_hp_fkeys=no
17381
17382 fi;
17383 echo "$as_me:17383: result: $enable_hp_fkeys" >&5
17384 echo "${ECHO_T}$enable_hp_fkeys" >&6
17385 if test "$enable_hp_fkeys" = yes ; then
17386
17387 cat >>confdefs.h <<\EOF
17388 #define OPT_HP_FUNC_KEYS 1
17389 EOF
17390
17391 fi
17392
17393 echo "$as_me:17393: checking if you want support for SCO-style function keys" >&5
17394 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
17395
17396 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
17397 if test "${enable_sco_fkeys+set}" = set; then
17398 enableval="$enable_sco_fkeys"
17399 test "$enableval" != yes && enableval=no
17400 if test "$enableval" != "no" ; then
17401 enable_sco_fkeys=yes
17402 else
17403 enable_sco_fkeys=no
17404 fi
17405 else
17406 enableval=no
17407 enable_sco_fkeys=no
17408
17409 fi;
17410 echo "$as_me:17410: result: $enable_sco_fkeys" >&5
17411 echo "${ECHO_T}$enable_sco_fkeys" >&6
17412 if test "$enable_sco_fkeys" = yes ; then
17413
17414 cat >>confdefs.h <<\EOF
17415 #define OPT_SCO_FUNC_KEYS 1
17416 EOF
17417
17418 fi
17419
17420 echo "$as_me:17420: checking if you want support for Sun-style function keys" >&5
17421 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
17422
17423 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
17424 if test "${enable_sun_fkeys+set}" = set; then
17425 enableval="$enable_sun_fkeys"
17426 test "$enableval" != no && enableval=yes
17427 if test "$enableval" != "yes" ; then
17428 enable_sun_fkeys=no
17429 else
17430 enable_sun_fkeys=yes
17431 fi
17432 else
17433 enableval=yes
17434 enable_sun_fkeys=yes
17435
17436 fi;
17437 echo "$as_me:17437: result: $enable_sun_fkeys" >&5
17438 echo "${ECHO_T}$enable_sun_fkeys" >&6
17439 if test "$enable_sun_fkeys" = no ; then
17440
17441 cat >>confdefs.h <<\EOF
17442 #define OPT_SUN_FUNC_KEYS 0
17443 EOF
17444
17445 fi
17446
17447 echo "$as_me:17447: checking if you want saved-lines stored as a FIFO" >&5
17448 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
17449
17450 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
17451 if test "${enable_fifo_lines+set}" = set; then
17452 enableval="$enable_fifo_lines"
17453 test "$enableval" != no && enableval=yes
17454 if test "$enableval" != "yes" ; then
17455 enable_fifo_lines=no
17456 else
17457 enable_fifo_lines=yes
17458 fi
17459 else
17460 enableval=yes
17461 enable_fifo_lines=yes
17462
17463 fi;
17464 echo "$as_me:17464: result: $enable_fifo_lines" >&5
17465 echo "${ECHO_T}$enable_fifo_lines" >&6
17466 if test "$enable_fifo_lines" = yes ; then
17467
17468 cat >>confdefs.h <<\EOF
17469 #define OPT_FIFO_LINES 1
17470 EOF
17471
17472 fi
17473
17474 echo "$as_me:17474: checking if you want support for internationalization" >&5
17475 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
17476
17477 # Check whether --enable-i18n or --disable-i18n was given.
17478 if test "${enable_i18n+set}" = set; then
17479 enableval="$enable_i18n"
17480 test "$enableval" != no && enableval=yes
17481 if test "$enableval" != "yes" ; then
17482 enable_i18n=no
17483 else
17484 enable_i18n=yes
17485 fi
17486 else
17487 enableval=yes
17488 enable_i18n=yes
17489
17490 fi;
17491 echo "$as_me:17491: result: $enable_i18n" >&5
17492 echo "${ECHO_T}$enable_i18n" >&6
17493 if test "$enable_i18n" = no ; then
17494
17495 cat >>confdefs.h <<\EOF
17496 #define OPT_I18N_SUPPORT 0
17497 EOF
17498
17499 fi
17500
17501 echo "$as_me:17501: checking if you want support for initial-erase setup" >&5
17502 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
17503
17504 # Check whether --enable-initial-erase or --disable-initial-erase was given.
17505 if test "${enable_initial_erase+set}" = set; then
17506 enableval="$enable_initial_erase"
17507 test "$enableval" != no && enableval=yes
17508 if test "$enableval" != "yes" ; then
17509 enable_ie=no
17510 else
17511 enable_ie=yes
17512 fi
17513 else
17514 enableval=yes
17515 enable_ie=yes
17516
17517 fi;
17518 echo "$as_me:17518: result: $enable_ie" >&5
17519 echo "${ECHO_T}$enable_ie" >&6
17520 if test "$enable_ie" = no ; then
17521
17522 cat >>confdefs.h <<\EOF
17523 #define OPT_INITIAL_ERASE 0
17524 EOF
17525
17526 fi
17527
17528 echo "$as_me:17528: checking if you want support for input-method" >&5
17529 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
17530
17531 # Check whether --enable-input-method or --disable-input-method was given.
17532 if test "${enable_input_method+set}" = set; then
17533 enableval="$enable_input_method"
17534 test "$enableval" != no && enableval=yes
17535 if test "$enableval" != "yes" ; then
17536 enable_ximp=no
17537 else
17538 enable_ximp=yes
17539 fi
17540 else
17541 enableval=yes
17542 enable_ximp=yes
17543
17544 fi;
17545 echo "$as_me:17545: result: $enable_ximp" >&5
17546 echo "${ECHO_T}$enable_ximp" >&6
17547
17548 echo "$as_me:17548: checking if X libraries support input-method" >&5
17549 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
17550 if test "${cf_cv_input_method+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553
17554 cat >conftest.$ac_ext <<_ACEOF
17555 #line 17555 "configure"
17556 #include "confdefs.h"
17557
17558 #include <X11/IntrinsicP.h>
17559 #include <X11/Xatom.h>
17560 #include <X11/Xutil.h>
17561 #include <X11/Xmu/Atoms.h>
17562 #include <X11/Xmu/Converters.h>
17563 #include <X11/Xaw/XawImP.h>
17564
17565 int
17566 main ()
17567 {
17568
17569 {
17570 XIM xim;
17571 XIMStyles *xim_styles = 0;
17572 XIMStyle input_style;
17573 Widget w = 0;
17574
17575 XSetLocaleModifiers("@im=none");
17576 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
17577 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
17578 XCloseIM(xim);
17579 input_style = (XIMPreeditNothing | XIMStatusNothing);
17580 }
17581
17582 ;
17583 return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:17587: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>&5
17589 ac_status=$?
17590 echo "$as_me:17590: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (eval echo "$as_me:17593: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:17596: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 cf_cv_input_method=yes
17599 else
17600 echo "$as_me: failed program was:" >&5
17601 cat conftest.$ac_ext >&5
17602 cf_cv_input_method=no
17603 fi
17604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17605 fi
17606 echo "$as_me:17606: result: $cf_cv_input_method" >&5
17607 echo "${ECHO_T}$cf_cv_input_method" >&6
17608
17609 test "$cf_cv_input_method" = no && enable_ximp=no
17610 if test "$enable_ximp" = no ; then
17611
17612 cat >>confdefs.h <<\EOF
17613 #define OPT_INPUT_METHOD 0
17614 EOF
17615
17616 fi
17617
17618 echo "$as_me:17618: checking if you want support for load-vt-fonts" >&5
17619 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
17620
17621 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
17622 if test "${enable_load_vt_fonts+set}" = set; then
17623 enableval="$enable_load_vt_fonts"
17624 test "$enableval" != yes && enableval=no
17625 if test "$enableval" != "no" ; then
17626 enable_load_vt_fonts=yes
17627 else
17628 enable_load_vt_fonts=no
17629 fi
17630 else
17631 enableval=no
17632 enable_load_vt_fonts=no
17633
17634 fi;
17635 echo "$as_me:17635: result: $enable_load_vt_fonts" >&5
17636 echo "${ECHO_T}$enable_load_vt_fonts" >&6
17637 if test "$enable_load_vt_fonts" = yes ; then
17638
17639 cat >>confdefs.h <<\EOF
17640 #define OPT_LOAD_VTFONTS 1
17641 EOF
17642
17643 fi
17644
17645 echo "$as_me:17645: checking if you want support for logging" >&5
17646 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
17647
17648 # Check whether --enable-logging or --disable-logging was given.
17649 if test "${enable_logging+set}" = set; then
17650 enableval="$enable_logging"
17651 test "$enableval" != yes && enableval=no
17652 if test "$enableval" != "no" ; then
17653 enable_logging=yes
17654 else
17655 enable_logging=no
17656 fi
17657 else
17658 enableval=no
17659 enable_logging=no
17660
17661 fi;
17662 echo "$as_me:17662: result: $enable_logging" >&5
17663 echo "${ECHO_T}$enable_logging" >&6
17664 if test "$enable_logging" = yes ; then
17665
17666 cat >>confdefs.h <<\EOF
17667 #define ALLOWLOGGING 1
17668 EOF
17669
17670 echo "$as_me:17670: checking if you want to allow logging via a pipe" >&5
17671 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
17672
17673 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
17674 if test "${enable_logfile_exec+set}" = set; then
17675 enableval="$enable_logfile_exec"
17676 test "$enableval" != yes && enableval=no
17677 if test "$enableval" != "no" ; then
17678 enable_log_exec=yes
17679 else
17680 enable_log_exec=no
17681 fi
17682 else
17683 enableval=no
17684 enable_log_exec=no
17685
17686 fi;
17687 echo "$as_me:17687: result: $enable_log_exec" >&5
17688 echo "${ECHO_T}$enable_log_exec" >&6
17689 if test "$enable_log_exec" = yes ; then
17690
17691 cat >>confdefs.h <<\EOF
17692 #define ALLOWLOGFILEEXEC 1
17693 EOF
17694
17695 fi
17696 fi
17697
17698 echo "$as_me:17698: checking if you want support for iconify/maximize translations" >&5
17699 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
17700
17701 # Check whether --enable-maximize or --disable-maximize was given.
17702 if test "${enable_maximize+set}" = set; then
17703 enableval="$enable_maximize"
17704 test "$enableval" != no && enableval=yes
17705 if test "$enableval" != "yes" ; then
17706 enable_maximize=no
17707 else
17708 enable_maximize=yes
17709 fi
17710 else
17711 enableval=yes
17712 enable_maximize=yes
17713
17714 fi;
17715 echo "$as_me:17715: result: $enable_maximize" >&5
17716 echo "${ECHO_T}$enable_maximize" >&6
17717 test "$enable_maximize" = no &&
17718 cat >>confdefs.h <<\EOF
17719 #define OPT_MAXIMIZE 0
17720 EOF
17721
17722 echo "$as_me:17722: checking if you want NumLock to override keyboard tables" >&5
17723 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
17724
17725 # Check whether --enable-num-lock or --disable-num-lock was given.
17726 if test "${enable_num_lock+set}" = set; then
17727 enableval="$enable_num_lock"
17728 test "$enableval" != no && enableval=yes
17729 if test "$enableval" != "yes" ; then
17730 enable_numlock=no
17731 else
17732 enable_numlock=yes
17733 fi
17734 else
17735 enableval=yes
17736 enable_numlock=yes
17737
17738 fi;
17739 echo "$as_me:17739: result: $enable_numlock" >&5
17740 echo "${ECHO_T}$enable_numlock" >&6
17741 test "$enable_numlock" = no &&
17742 cat >>confdefs.h <<\EOF
17743 #define OPT_NUM_LOCK 0
17744 EOF
17745
17746 echo "$as_me:17746: checking if you want support for get/set of base64 selection data" >&5
17747 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
17748
17749 # Check whether --enable-paste64 or --disable-paste64 was given.
17750 if test "${enable_paste64+set}" = set; then
17751 enableval="$enable_paste64"
17752 test "$enableval" != no && enableval=yes
17753 if test "$enableval" != "yes" ; then
17754 enable_paste64=no
17755 else
17756 enable_paste64=yes
17757 fi
17758 else
17759 enableval=yes
17760 enable_paste64=yes
17761
17762 fi;
17763 echo "$as_me:17763: result: $enable_paste64" >&5
17764 echo "${ECHO_T}$enable_paste64" >&6
17765 if test "$enable_paste64" = yes ; then
17766
17767 cat >>confdefs.h <<\EOF
17768 #define OPT_PASTE64 1
17769 EOF
17770
17771 else
17772
17773 cat >>confdefs.h <<\EOF
17774 #define OPT_PASTE64 0
17775 EOF
17776
17777 fi
17778
17779 echo "$as_me:17779: checking if you want support for pty-handshaking" >&5
17780 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
17781
17782 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
17783 if test "${enable_pty_handshake+set}" = set; then
17784 enableval="$enable_pty_handshake"
17785 test "$enableval" != no && enableval=yes
17786 if test "$enableval" != "yes" ; then
17787 enable_pty_handshake=no
17788 else
17789 enable_pty_handshake=yes
17790 fi
17791 else
17792 enableval=yes
17793 enable_pty_handshake=yes
17794
17795 fi;
17796 echo "$as_me:17796: result: $enable_pty_handshake" >&5
17797 echo "${ECHO_T}$enable_pty_handshake" >&6
17798 if test "$enable_pty_handshake" = yes ; then
17799
17800 cat >>confdefs.h <<\EOF
17801 #define OPT_PTY_HANDSHAKE 1
17802 EOF
17803
17804 else
17805
17806 cat >>confdefs.h <<\EOF
17807 #define OPT_PTY_HANDSHAKE 0
17808 EOF
17809
17810 fi
17811
17812 echo "$as_me:17812: checking if you want support for mouse in readline applications" >&5
17813 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
17814
17815 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
17816 if test "${enable_readline_mouse+set}" = set; then
17817 enableval="$enable_readline_mouse"
17818 test "$enableval" != yes && enableval=no
17819 if test "$enableval" != "no" ; then
17820 enable_readline_mouse=yes
17821 else
17822 enable_readline_mouse=no
17823 fi
17824 else
17825 enableval=no
17826 enable_readline_mouse=no
17827
17828 fi;
17829 echo "$as_me:17829: result: $enable_readline_mouse" >&5
17830 echo "${ECHO_T}$enable_readline_mouse" >&6
17831 if test "$enable_readline_mouse" = yes ; then
17832
17833 cat >>confdefs.h <<\EOF
17834 #define OPT_READLINE 1
17835 EOF
17836
17837 fi
17838
17839 echo "$as_me:17839: checking if you want support for regular-expression selections" >&5
17840 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
17841
17842 # Check whether --enable-regex or --disable-regex was given.
17843 if test "${enable_regex+set}" = set; then
17844 enableval="$enable_regex"
17845 test "$enableval" != no && enableval=yes
17846 if test "$enableval" != "yes" ; then
17847 enable_regex=no
17848 else
17849 enable_regex=yes
17850 fi
17851 else
17852 enableval=yes
17853 enable_regex=yes
17854
17855 fi;
17856 echo "$as_me:17856: result: $enable_regex" >&5
17857 echo "${ECHO_T}$enable_regex" >&6
17858 if test "$enable_regex" = yes ; then
17859
17860 echo "$as_me:17860: checking if you want to use PCRE for regular-expressions" >&5
17861 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
17862
17863 # Check whether --with-pcre or --without-pcre was given.
17864 if test "${with_pcre+set}" = set; then
17865 withval="$with_pcre"
17866
17867 fi;
17868 test -z "$with_pcre" && with_pcre=no
17869 echo "$as_me:17869: result: $with_pcre" >&5
17870 echo "${ECHO_T}$with_pcre" >&6
17871
17872 if test "$with_pcre" != no ; then
17873
17874 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
17875 test -n "$verbose" && echo " found package libpcre" 1>&6
17876
17877 echo "${as_me:-configure}:17877: testing found package libpcre ..." 1>&5
17878
17879 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
17880 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
17881 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
17882
17883 echo "${as_me:-configure}:17883: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
17884
17885 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
17886
17887 echo "${as_me:-configure}:17887: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
17888
17889 cf_fix_cppflags=no
17890 cf_new_cflags=
17891 cf_new_cppflags=
17892 cf_new_extra_cppflags=
17893
17894 for cf_add_cflags in $cf_pkgconfig_incs
17895 do
17896 case $cf_fix_cppflags in
17897 (no)
17898 case $cf_add_cflags in
17899 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17900 case $cf_add_cflags in
17901 (-D*)
17902 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17903
17904 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17905 && test -z "${cf_tst_cflags}" \
17906 && cf_fix_cppflags=yes
17907
17908 if test $cf_fix_cppflags = yes ; then
17909 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17910 continue
17911 elif test "${cf_tst_cflags}" = "\"'" ; then
17912 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17913 continue
17914 fi
17915 ;;
17916 esac
17917 case "$CPPFLAGS" in
17918 (*$cf_add_cflags)
17919 ;;
17920 (*)
17921 case $cf_add_cflags in
17922 (-D*)
17923 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17924
17925 CPPFLAGS=`echo "$CPPFLAGS" | \
17926 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17927 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17928
17929 ;;
17930 esac
17931 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17932 ;;
17933 esac
17934 ;;
17935 (*)
17936 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17937 ;;
17938 esac
17939 ;;
17940 (yes)
17941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17942
17943 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17944
17945 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17946 && test -z "${cf_tst_cflags}" \
17947 && cf_fix_cppflags=no
17948 ;;
17949 esac
17950 done
17951
17952 if test -n "$cf_new_cflags" ; then
17953
17954 CFLAGS="$CFLAGS $cf_new_cflags"
17955 fi
17956
17957 if test -n "$cf_new_cppflags" ; then
17958
17959 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17960 fi
17961
17962 if test -n "$cf_new_extra_cppflags" ; then
17963
17964 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17965 fi
17966
17967 cf_add_libs="$cf_pkgconfig_libs"
17968 # Filter out duplicates - this happens with badly-designed ".pc" files...
17969 for cf_add_1lib in $LIBS
17970 do
17971 for cf_add_2lib in $cf_add_libs
17972 do
17973 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17974 then
17975 cf_add_1lib=
17976 break
17977 fi
17978 done
17979 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17980 done
17981 LIBS="$cf_add_libs"
17982
17983 :
17984 else
17985 cf_pkgconfig_incs=
17986 cf_pkgconfig_libs=
17987
17988 echo "$as_me:17988: checking for pcre_compile in -lpcre" >&5
17989 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
17990 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993 ac_check_lib_save_LIBS=$LIBS
17994 LIBS="-lpcre $LIBS"
17995 cat >conftest.$ac_ext <<_ACEOF
17996 #line 17996 "configure"
17997 #include "confdefs.h"
17998
17999 /* Override any gcc2 internal prototype to avoid an error. */
18000 #ifdef __cplusplus
18001 extern "C"
18002 #endif
18003 /* We use char because int might match the return type of a gcc2
18004 builtin and then its argument prototype would still apply. */
18005 char pcre_compile ();
18006 int
18007 main ()
18008 {
18009 pcre_compile ();
18010 ;
18011 return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:18015: \"$ac_link\"") >&5
18016 (eval $ac_link) 2>&5
18017 ac_status=$?
18018 echo "$as_me:18018: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (eval echo "$as_me:18021: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:18024: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
18026 ac_cv_lib_pcre_pcre_compile=yes
18027 else
18028 echo "$as_me: failed program was:" >&5
18029 cat conftest.$ac_ext >&5
18030 ac_cv_lib_pcre_pcre_compile=no
18031 fi
18032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18033 LIBS=$ac_check_lib_save_LIBS
18034 fi
18035 echo "$as_me:18035: result: $ac_cv_lib_pcre_pcre_compile" >&5
18036 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
18037 if test $ac_cv_lib_pcre_pcre_compile = yes; then
18038 cat >>confdefs.h <<EOF
18039 #define HAVE_LIBPCRE 1
18040 EOF
18041
18042 LIBS="-lpcre $LIBS"
18043
18044 else
18045 { { echo "$as_me:18045: error: Cannot find PCRE library" >&5
18046 echo "$as_me: error: Cannot find PCRE library" >&2;}
18047 { (exit 1); exit 1; }; }
18048 fi
18049
18050 fi
18051
18052 cat >>confdefs.h <<\EOF
18053 #define HAVE_LIB_PCRE 1
18054 EOF
18055
18056 case $LIBS in
18057 (*pcreposix*)
18058 ;;
18059 (*)
18060 echo "$as_me:18060: checking for pcreposix_regcomp in -lpcreposix" >&5
18061 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
18062 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065 ac_check_lib_save_LIBS=$LIBS
18066 LIBS="-lpcreposix $LIBS"
18067 cat >conftest.$ac_ext <<_ACEOF
18068 #line 18068 "configure"
18069 #include "confdefs.h"
18070
18071 /* Override any gcc2 internal prototype to avoid an error. */
18072 #ifdef __cplusplus
18073 extern "C"
18074 #endif
18075 /* We use char because int might match the return type of a gcc2
18076 builtin and then its argument prototype would still apply. */
18077 char pcreposix_regcomp ();
18078 int
18079 main ()
18080 {
18081 pcreposix_regcomp ();
18082 ;
18083 return 0;
18084 }
18085 _ACEOF
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (eval echo "$as_me:18087: \"$ac_link\"") >&5
18088 (eval $ac_link) 2>&5
18089 ac_status=$?
18090 echo "$as_me:18090: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
18092 { ac_try='test -s conftest$ac_exeext'
18093 { (eval echo "$as_me:18093: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:18096: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_cv_lib_pcreposix_pcreposix_regcomp=yes
18099 else
18100 echo "$as_me: failed program was:" >&5
18101 cat conftest.$ac_ext >&5
18102 ac_cv_lib_pcreposix_pcreposix_regcomp=no
18103 fi
18104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18106 fi
18107 echo "$as_me:18107: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
18108 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
18109 if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
18110
18111 cat >>confdefs.h <<\EOF
18112 #define HAVE_PCREPOSIX_H 1
18113 EOF
18114
18115 cf_add_libs="-lpcreposix"
18116 # Filter out duplicates - this happens with badly-designed ".pc" files...
18117 for cf_add_1lib in $LIBS
18118 do
18119 for cf_add_2lib in $cf_add_libs
18120 do
18121 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18122 then
18123 cf_add_1lib=
18124 break
18125 fi
18126 done
18127 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18128 done
18129 LIBS="$cf_add_libs"
18130
18131 else
18132 echo "$as_me:18132: checking for regcomp in -lpcreposix" >&5
18133 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
18134 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137 ac_check_lib_save_LIBS=$LIBS
18138 LIBS="-lpcreposix $LIBS"
18139 cat >conftest.$ac_ext <<_ACEOF
18140 #line 18140 "configure"
18141 #include "confdefs.h"
18142
18143 /* Override any gcc2 internal prototype to avoid an error. */
18144 #ifdef __cplusplus
18145 extern "C"
18146 #endif
18147 /* We use char because int might match the return type of a gcc2
18148 builtin and then its argument prototype would still apply. */
18149 char regcomp ();
18150 int
18151 main ()
18152 {
18153 regcomp ();
18154 ;
18155 return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (eval echo "$as_me:18159: \"$ac_link\"") >&5
18160 (eval $ac_link) 2>&5
18161 ac_status=$?
18162 echo "$as_me:18162: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -s conftest$ac_exeext'
18165 { (eval echo "$as_me:18165: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:18168: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_lib_pcreposix_regcomp=yes
18171 else
18172 echo "$as_me: failed program was:" >&5
18173 cat conftest.$ac_ext >&5
18174 ac_cv_lib_pcreposix_regcomp=no
18175 fi
18176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18178 fi
18179 echo "$as_me:18179: result: $ac_cv_lib_pcreposix_regcomp" >&5
18180 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
18181 if test $ac_cv_lib_pcreposix_regcomp = yes; then
18182
18183 cat >>confdefs.h <<\EOF
18184 #define HAVE_PCREPOSIX_H 1
18185 EOF
18186
18187 cf_add_libs="-lpcreposix"
18188 # Filter out duplicates - this happens with badly-designed ".pc" files...
18189 for cf_add_1lib in $LIBS
18190 do
18191 for cf_add_2lib in $cf_add_libs
18192 do
18193 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18194 then
18195 cf_add_1lib=
18196 break
18197 fi
18198 done
18199 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18200 done
18201 LIBS="$cf_add_libs"
18202
18203 else
18204 { { echo "$as_me:18204: error: Cannot find PCRE POSIX library" >&5
18205 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
18206 { (exit 1); exit 1; }; }
18207 fi
18208
18209 fi
18210
18211 ;;
18212 esac
18213 fi
18214
18215 if test "$with_pcre" = no ; then
18216
18217 cf_regex_func=no
18218
18219 cf_regex_libs="regex re"
18220 case $host_os in
18221 (mingw*)
18222 cf_regex_libs="gnurx $cf_regex_libs"
18223 ;;
18224 esac
18225
18226 echo "$as_me:18226: checking for regcomp" >&5
18227 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
18228 if test "${ac_cv_func_regcomp+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231 cat >conftest.$ac_ext <<_ACEOF
18232 #line 18232 "configure"
18233 #include "confdefs.h"
18234 /* System header to define __stub macros and hopefully few prototypes,
18235 which can conflict with char regcomp (); below. */
18236 #include <assert.h>
18237 /* Override any gcc2 internal prototype to avoid an error. */
18238 #ifdef __cplusplus
18239 extern "C"
18240 #endif
18241 /* We use char because int might match the return type of a gcc2
18242 builtin and then its argument prototype would still apply. */
18243 char regcomp ();
18244 char (*f) ();
18245
18246 int
18247 main ()
18248 {
18249 /* The GNU C library defines this for functions which it implements
18250 to always fail with ENOSYS. Some functions are actually named
18251 something starting with __ and the normal name is an alias. */
18252 #if defined (__stub_regcomp) || defined (__stub___regcomp)
18253 choke me
18254 #else
18255 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18256 #endif
18257
18258 ;
18259 return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (eval echo "$as_me:18263: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>&5
18265 ac_status=$?
18266 echo "$as_me:18266: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (eval echo "$as_me:18269: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:18272: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_cv_func_regcomp=yes
18275 else
18276 echo "$as_me: failed program was:" >&5
18277 cat conftest.$ac_ext >&5
18278 ac_cv_func_regcomp=no
18279 fi
18280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18281 fi
18282 echo "$as_me:18282: result: $ac_cv_func_regcomp" >&5
18283 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
18284 if test $ac_cv_func_regcomp = yes; then
18285 cf_regex_func=regcomp
18286 else
18287
18288 for cf_regex_lib in $cf_regex_libs
18289 do
18290 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
18291 echo "$as_me:18291: checking for regcomp in -l$cf_regex_lib" >&5
18292 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
18293 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296 ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-l$cf_regex_lib $LIBS"
18298 cat >conftest.$ac_ext <<_ACEOF
18299 #line 18299 "configure"
18300 #include "confdefs.h"
18301
18302 /* Override any gcc2 internal prototype to avoid an error. */
18303 #ifdef __cplusplus
18304 extern "C"
18305 #endif
18306 /* We use char because int might match the return type of a gcc2
18307 builtin and then its argument prototype would still apply. */
18308 char regcomp ();
18309 int
18310 main ()
18311 {
18312 regcomp ();
18313 ;
18314 return 0;
18315 }
18316 _ACEOF
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:18318: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>&5
18320 ac_status=$?
18321 echo "$as_me:18321: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -s conftest$ac_exeext'
18324 { (eval echo "$as_me:18324: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:18327: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 eval "$as_ac_Lib=yes"
18330 else
18331 echo "$as_me: failed program was:" >&5
18332 cat conftest.$ac_ext >&5
18333 eval "$as_ac_Lib=no"
18334 fi
18335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18336 LIBS=$ac_check_lib_save_LIBS
18337 fi
18338 echo "$as_me:18338: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18339 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18340 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18341
18342 cf_add_libs="-l$cf_regex_lib"
18343 # Filter out duplicates - this happens with badly-designed ".pc" files...
18344 for cf_add_1lib in $LIBS
18345 do
18346 for cf_add_2lib in $cf_add_libs
18347 do
18348 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18349 then
18350 cf_add_1lib=
18351 break
18352 fi
18353 done
18354 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18355 done
18356 LIBS="$cf_add_libs"
18357
18358 cf_regex_func=regcomp
18359 break
18360 fi
18361
18362 done
18363
18364 fi
18365
18366 if test "$cf_regex_func" = no ; then
18367 echo "$as_me:18367: checking for compile" >&5
18368 echo $ECHO_N "checking for compile... $ECHO_C" >&6
18369 if test "${ac_cv_func_compile+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372 cat >conftest.$ac_ext <<_ACEOF
18373 #line 18373 "configure"
18374 #include "confdefs.h"
18375 /* System header to define __stub macros and hopefully few prototypes,
18376 which can conflict with char compile (); below. */
18377 #include <assert.h>
18378 /* Override any gcc2 internal prototype to avoid an error. */
18379 #ifdef __cplusplus
18380 extern "C"
18381 #endif
18382 /* We use char because int might match the return type of a gcc2
18383 builtin and then its argument prototype would still apply. */
18384 char compile ();
18385 char (*f) ();
18386
18387 int
18388 main ()
18389 {
18390 /* The GNU C library defines this for functions which it implements
18391 to always fail with ENOSYS. Some functions are actually named
18392 something starting with __ and the normal name is an alias. */
18393 #if defined (__stub_compile) || defined (__stub___compile)
18394 choke me
18395 #else
18396 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18397 #endif
18398
18399 ;
18400 return 0;
18401 }
18402 _ACEOF
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (eval echo "$as_me:18404: \"$ac_link\"") >&5
18405 (eval $ac_link) 2>&5
18406 ac_status=$?
18407 echo "$as_me:18407: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (eval echo "$as_me:18410: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:18413: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 ac_cv_func_compile=yes
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 cat conftest.$ac_ext >&5
18419 ac_cv_func_compile=no
18420 fi
18421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18422 fi
18423 echo "$as_me:18423: result: $ac_cv_func_compile" >&5
18424 echo "${ECHO_T}$ac_cv_func_compile" >&6
18425 if test $ac_cv_func_compile = yes; then
18426 cf_regex_func=compile
18427 else
18428
18429 echo "$as_me:18429: checking for compile in -lgen" >&5
18430 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
18431 if test "${ac_cv_lib_gen_compile+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434 ac_check_lib_save_LIBS=$LIBS
18435 LIBS="-lgen $LIBS"
18436 cat >conftest.$ac_ext <<_ACEOF
18437 #line 18437 "configure"
18438 #include "confdefs.h"
18439
18440 /* Override any gcc2 internal prototype to avoid an error. */
18441 #ifdef __cplusplus
18442 extern "C"
18443 #endif
18444 /* We use char because int might match the return type of a gcc2
18445 builtin and then its argument prototype would still apply. */
18446 char compile ();
18447 int
18448 main ()
18449 {
18450 compile ();
18451 ;
18452 return 0;
18453 }
18454 _ACEOF
18455 rm -f conftest.$ac_objext conftest$ac_exeext
18456 if { (eval echo "$as_me:18456: \"$ac_link\"") >&5
18457 (eval $ac_link) 2>&5
18458 ac_status=$?
18459 echo "$as_me:18459: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -s conftest$ac_exeext'
18462 { (eval echo "$as_me:18462: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:18465: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_cv_lib_gen_compile=yes
18468 else
18469 echo "$as_me: failed program was:" >&5
18470 cat conftest.$ac_ext >&5
18471 ac_cv_lib_gen_compile=no
18472 fi
18473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18474 LIBS=$ac_check_lib_save_LIBS
18475 fi
18476 echo "$as_me:18476: result: $ac_cv_lib_gen_compile" >&5
18477 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
18478 if test $ac_cv_lib_gen_compile = yes; then
18479
18480 cf_add_libs="-lgen"
18481 # Filter out duplicates - this happens with badly-designed ".pc" files...
18482 for cf_add_1lib in $LIBS
18483 do
18484 for cf_add_2lib in $cf_add_libs
18485 do
18486 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18487 then
18488 cf_add_1lib=
18489 break
18490 fi
18491 done
18492 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18493 done
18494 LIBS="$cf_add_libs"
18495
18496 cf_regex_func=compile
18497 fi
18498
18499 fi
18500
18501 fi
18502
18503 if test "$cf_regex_func" = no ; then
18504 { echo "$as_me:18504: WARNING: cannot find regular expression library" >&5
18505 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
18506 fi
18507
18508 echo "$as_me:18508: checking for regular-expression headers" >&5
18509 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
18510 if test "${cf_cv_regex_hdrs+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513
18514 cf_cv_regex_hdrs=no
18515 case $cf_regex_func in
18516 (compile)
18517 for cf_regex_hdr in regexp.h regexpr.h
18518 do
18519 cat >conftest.$ac_ext <<_ACEOF
18520 #line 18520 "configure"
18521 #include "confdefs.h"
18522 #include <$cf_regex_hdr>
18523 int
18524 main ()
18525 {
18526
18527 char *p = compile("", "", "", 0);
18528 int x = step("", "");
18529
18530 ;
18531 return 0;
18532 }
18533 _ACEOF
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (eval echo "$as_me:18535: \"$ac_link\"") >&5
18536 (eval $ac_link) 2>&5
18537 ac_status=$?
18538 echo "$as_me:18538: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try='test -s conftest$ac_exeext'
18541 { (eval echo "$as_me:18541: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:18544: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546
18547 cf_cv_regex_hdrs=$cf_regex_hdr
18548 break
18549
18550 else
18551 echo "$as_me: failed program was:" >&5
18552 cat conftest.$ac_ext >&5
18553 fi
18554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18555 done
18556 ;;
18557 (*)
18558 for cf_regex_hdr in regex.h
18559 do
18560 cat >conftest.$ac_ext <<_ACEOF
18561 #line 18561 "configure"
18562 #include "confdefs.h"
18563 #include <sys/types.h>
18564 #include <$cf_regex_hdr>
18565 int
18566 main ()
18567 {
18568
18569 regex_t *p;
18570 int x = regcomp(p, "", 0);
18571 int y = regexec(p, "", 0, 0, 0);
18572 regfree(p);
18573
18574 ;
18575 return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (eval echo "$as_me:18579: \"$ac_link\"") >&5
18580 (eval $ac_link) 2>&5
18581 ac_status=$?
18582 echo "$as_me:18582: \$? = $ac_status" >&5
18583 (exit $ac_status); } &&
18584 { ac_try='test -s conftest$ac_exeext'
18585 { (eval echo "$as_me:18585: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18587 ac_status=$?
18588 echo "$as_me:18588: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590
18591 cf_cv_regex_hdrs=$cf_regex_hdr
18592 break
18593
18594 else
18595 echo "$as_me: failed program was:" >&5
18596 cat conftest.$ac_ext >&5
18597 fi
18598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18599 done
18600 ;;
18601 esac
18602
18603 fi
18604 echo "$as_me:18604: result: $cf_cv_regex_hdrs" >&5
18605 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
18606
18607 case $cf_cv_regex_hdrs in
18608 (no) { echo "$as_me:18608: WARNING: no regular expression header found" >&5
18609 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
18610 (regex.h)
18611 cat >>confdefs.h <<\EOF
18612 #define HAVE_REGEX_H_FUNCS 1
18613 EOF
18614 ;;
18615 (regexp.h)
18616 cat >>confdefs.h <<\EOF
18617 #define HAVE_REGEXP_H_FUNCS 1
18618 EOF
18619 ;;
18620 (regexpr.h)
18621 cat >>confdefs.h <<\EOF
18622 #define HAVE_REGEXPR_H_FUNCS 1
18623 EOF
18624 ;;
18625 esac
18626
18627 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
18628 { { echo "$as_me:18628: error: Only POSIX or PCRE regular expressions are supported" >&5
18629 echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
18630 { (exit 1); exit 1; }; }
18631 fi
18632 fi
18633
18634 cat >>confdefs.h <<\EOF
18635 #define OPT_SELECT_REGEX 1
18636 EOF
18637
18638 fi
18639
18640 echo "$as_me:18640: checking if you want support for right-scrollbar" >&5
18641 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
18642
18643 # Check whether --enable-rightbar or --disable-rightbar was given.
18644 if test "${enable_rightbar+set}" = set; then
18645 enableval="$enable_rightbar"
18646 test "$enableval" != no && enableval=yes
18647 if test "$enableval" != "yes" ; then
18648 enable_rightbar=no
18649 else
18650 enable_rightbar=yes
18651 fi
18652 else
18653 enableval=yes
18654 enable_rightbar=yes
18655
18656 fi;
18657 echo "$as_me:18657: result: $enable_rightbar" >&5
18658 echo "${ECHO_T}$enable_rightbar" >&6
18659 if test "$enable_rightbar" = yes ; then
18660
18661 cat >>confdefs.h <<\EOF
18662 #define SCROLLBAR_RIGHT 1
18663 EOF
18664
18665 fi
18666
18667 echo "$as_me:18667: checking if you want check for redundant name-change" >&5
18668 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
18669
18670 # Check whether --enable-samename or --disable-samename was given.
18671 if test "${enable_samename+set}" = set; then
18672 enableval="$enable_samename"
18673 test "$enableval" != no && enableval=yes
18674 if test "$enableval" != "yes" ; then
18675 enable_samename=no
18676 else
18677 enable_samename=yes
18678 fi
18679 else
18680 enableval=yes
18681 enable_samename=yes
18682
18683 fi;
18684 echo "$as_me:18684: result: $enable_samename" >&5
18685 echo "${ECHO_T}$enable_samename" >&6
18686 test "$enable_samename" = no &&
18687 cat >>confdefs.h <<\EOF
18688 #define OPT_SAME_NAME 0
18689 EOF
18690
18691 echo "$as_me:18691: checking if you want support for selection-actions" >&5
18692 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6
18693
18694 # Check whether --enable-selection-ops or --disable-selection-ops was given.
18695 if test "${enable_selection_ops+set}" = set; then
18696 enableval="$enable_selection_ops"
18697 test "$enableval" != no && enableval=yes
18698 if test "$enableval" != "yes" ; then
18699 enable_selection_ops=no
18700 else
18701 enable_selection_ops=yes
18702 fi
18703 else
18704 enableval=yes
18705 enable_selection_ops=yes
18706
18707 fi;
18708 echo "$as_me:18708: result: $enable_selection_ops" >&5
18709 echo "${ECHO_T}$enable_selection_ops" >&6
18710 test "$enable_selection_ops" = no &&
18711 cat >>confdefs.h <<\EOF
18712 #define OPT_SELECTION_OPS 0
18713 EOF
18714
18715 echo "$as_me:18715: checking if you want support for session management" >&5
18716 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
18717
18718 # Check whether --enable-session-mgt or --disable-session-mgt was given.
18719 if test "${enable_session_mgt+set}" = set; then
18720 enableval="$enable_session_mgt"
18721 test "$enableval" != no && enableval=yes
18722 if test "$enableval" != "yes" ; then
18723 enable_session_mgt=no
18724 else
18725 enable_session_mgt=yes
18726 fi
18727 else
18728 enableval=yes
18729 enable_session_mgt=yes
18730
18731 fi;
18732 echo "$as_me:18732: result: $enable_session_mgt" >&5
18733 echo "${ECHO_T}$enable_session_mgt" >&6
18734 test "$enable_session_mgt" = no &&
18735 cat >>confdefs.h <<\EOF
18736 #define OPT_SESSION_MGT 0
18737 EOF
18738
18739 echo "$as_me:18739: checking if you want to use termcap function-keys" >&5
18740 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
18741
18742 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
18743 if test "${enable_tcap_fkeys+set}" = set; then
18744 enableval="$enable_tcap_fkeys"
18745 test "$enableval" != no && enableval=yes
18746 if test "$enableval" != "yes" ; then
18747 enable_tcap_fkeys=no
18748 else
18749 enable_tcap_fkeys=yes
18750 fi
18751 else
18752 enableval=yes
18753 enable_tcap_fkeys=yes
18754
18755 fi;
18756 echo "$as_me:18756: result: $enable_tcap_fkeys" >&5
18757 echo "${ECHO_T}$enable_tcap_fkeys" >&6
18758 test "$enable_tcap_fkeys" = yes &&
18759 cat >>confdefs.h <<\EOF
18760 #define OPT_TCAP_FKEYS 1
18761 EOF
18762
18763 echo "$as_me:18763: checking if you want to use termcap-query/report" >&5
18764 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
18765
18766 # Check whether --enable-tcap-query or --disable-tcap-query was given.
18767 if test "${enable_tcap_query+set}" = set; then
18768 enableval="$enable_tcap_query"
18769 test "$enableval" != no && enableval=yes
18770 if test "$enableval" != "yes" ; then
18771 enable_tcap_query=no
18772 else
18773 enable_tcap_query=yes
18774 fi
18775 else
18776 enableval=yes
18777 enable_tcap_query=yes
18778
18779 fi;
18780 echo "$as_me:18780: result: $enable_tcap_query" >&5
18781 echo "${ECHO_T}$enable_tcap_query" >&6
18782 test "$enable_tcap_query" = yes &&
18783 cat >>confdefs.h <<\EOF
18784 #define OPT_TCAP_QUERY 1
18785 EOF
18786
18787 echo "$as_me:18787: checking if you want support for tek4014" >&5
18788 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
18789
18790 # Check whether --enable-tek4014 or --disable-tek4014 was given.
18791 if test "${enable_tek4014+set}" = set; then
18792 enableval="$enable_tek4014"
18793 test "$enableval" != no && enableval=yes
18794 if test "$enableval" != "yes" ; then
18795 enable_tek4014=no
18796 else
18797 enable_tek4014=yes
18798 fi
18799 else
18800 enableval=yes
18801 enable_tek4014=yes
18802
18803 fi;
18804 echo "$as_me:18804: result: $enable_tek4014" >&5
18805 echo "${ECHO_T}$enable_tek4014" >&6
18806 if test "$enable_tek4014" = no ; then
18807
18808 cat >>confdefs.h <<\EOF
18809 #define OPT_TEK4014 0
18810 EOF
18811
18812 else
18813 EXTRAHDRS="$EXTRAHDRS Tekparse.h"
18814 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
18815 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
18816 fi
18817
18818 echo "$as_me:18818: checking if you want pulldown menus with a toolbar" >&5
18819 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
18820
18821 # Check whether --enable-toolbar or --disable-toolbar was given.
18822 if test "${enable_toolbar+set}" = set; then
18823 enableval="$enable_toolbar"
18824 test "$enableval" != yes && enableval=no
18825 if test "$enableval" != "no" ; then
18826 enable_toolbar=yes
18827 else
18828 enable_toolbar=no
18829 fi
18830 else
18831 enableval=no
18832 enable_toolbar=no
18833
18834 fi;
18835 echo "$as_me:18835: result: $enable_toolbar" >&5
18836 echo "${ECHO_T}$enable_toolbar" >&6
18837 if test "$enable_toolbar" = yes ; then
18838
18839 cat >>confdefs.h <<\EOF
18840 #define OPT_TOOLBAR 1
18841 EOF
18842
18843 fi
18844
18845 echo "$as_me:18845: checking if you want VT52 emulation" >&5
18846 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
18847
18848 # Check whether --enable-vt52 or --disable-vt52 was given.
18849 if test "${enable_vt52+set}" = set; then
18850 enableval="$enable_vt52"
18851 test "$enableval" != no && enableval=yes
18852 if test "$enableval" != "yes" ; then
18853 enable_vt52=no
18854 else
18855 enable_vt52=yes
18856 fi
18857 else
18858 enableval=yes
18859 enable_vt52=yes
18860
18861 fi;
18862 echo "$as_me:18862: result: $enable_vt52" >&5
18863 echo "${ECHO_T}$enable_vt52" >&6
18864 test "$enable_vt52" = no &&
18865 cat >>confdefs.h <<\EOF
18866 #define OPT_VT52_MODE 0
18867 EOF
18868
18869 echo "$as_me:18869: checking if you want wide-attribute support" >&5
18870 echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6
18871
18872 # Check whether --enable-wide-attrs or --disable-wide-attrs was given.
18873 if test "${enable_wide_attrs+set}" = set; then
18874 enableval="$enable_wide_attrs"
18875 test "$enableval" != no && enableval=yes
18876 if test "$enableval" != "yes" ; then
18877 enable_wattr=no
18878 else
18879 enable_wattr=yes
18880 fi
18881 else
18882 enableval=yes
18883 enable_wattr=yes
18884
18885 fi;
18886 echo "$as_me:18886: result: $enable_wattr" >&5
18887 echo "${ECHO_T}$enable_wattr" >&6
18888
18889 echo "$as_me:18889: checking if you want wide-character support" >&5
18890 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
18891
18892 # Check whether --enable-wide-chars or --disable-wide-chars was given.
18893 if test "${enable_wide_chars+set}" = set; then
18894 enableval="$enable_wide_chars"
18895 test "$enableval" != no && enableval=yes
18896 if test "$enableval" != "yes" ; then
18897 enable_wchar=no
18898 else
18899 enable_wchar=yes
18900 fi
18901 else
18902 enableval=yes
18903 enable_wchar=yes
18904
18905 fi;
18906 echo "$as_me:18906: result: $enable_wchar" >&5
18907 echo "${ECHO_T}$enable_wchar" >&6
18908 test "$enable_wattr" = no &&
18909 cat >>confdefs.h <<\EOF
18910 #define OPT_WIDE_ATTRS 0
18911 EOF
18912
18913 echo "$as_me:18913: checking if you want only 16-bit character support" >&5
18914 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
18915
18916 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
18917 if test "${enable_16bit_chars+set}" = set; then
18918 enableval="$enable_16bit_chars"
18919 test "$enableval" != yes && enableval=no
18920 if test "$enableval" != "no" ; then
18921 enable_16bit_chars=yes
18922 else
18923 enable_16bit_chars=no
18924 fi
18925 else
18926 enableval=no
18927 enable_16bit_chars=no
18928
18929 fi;
18930 echo "$as_me:18930: result: $enable_16bit_chars" >&5
18931 echo "${ECHO_T}$enable_16bit_chars" >&6
18932
18933 if test "$enable_16bit_chars" = yes ; then
18934
18935 cat >>confdefs.h <<\EOF
18936 #define OPT_WIDER_ICHAR 0
18937 EOF
18938
18939 enable_wchar=yes
18940 fi
18941
18942 if test "$enable_wchar" = yes ; then
18943
18944 echo "$as_me:18944: checking if you want to use mini-luit/Latin9 built-in support" >&5
18945 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
18946
18947 # Check whether --enable-mini-luit or --disable-mini-luit was given.
18948 if test "${enable_mini_luit+set}" = set; then
18949 enableval="$enable_mini_luit"
18950 test "$enableval" != yes && enableval=no
18951 if test "$enableval" != "no" ; then
18952 enable_mini_luit=yes
18953 else
18954 enable_mini_luit=no
18955 fi
18956 else
18957 enableval=no
18958 enable_mini_luit=no
18959
18960 fi;
18961 echo "$as_me:18961: result: $enable_mini_luit" >&5
18962 echo "${ECHO_T}$enable_mini_luit" >&6
18963 if test "$enable_mini_luit" = yes ; then
18964
18965 cat >>confdefs.h <<\EOF
18966 #define OPT_MINI_LUIT 1
18967 EOF
18968
18969 fi
18970
18971 echo "$as_me:18971: checking if you want to use luit" >&5
18972 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
18973
18974 # Check whether --enable-luit or --disable-luit was given.
18975 if test "${enable_luit+set}" = set; then
18976 enableval="$enable_luit"
18977 test "$enableval" != no && enableval=yes
18978 if test "$enableval" != "yes" ; then
18979 enable_luit=no
18980 else
18981 enable_luit=yes
18982 fi
18983 else
18984 enableval=yes
18985 enable_luit=yes
18986
18987 fi;
18988 echo "$as_me:18988: result: $enable_luit" >&5
18989 echo "${ECHO_T}$enable_luit" >&6
18990 if test "$enable_luit" = yes ; then
18991
18992 cat >>confdefs.h <<\EOF
18993 #define OPT_LUIT_PROG 1
18994 EOF
18995
18996 test -z "$LUIT" && LUIT=xterm-filter
18997 for ac_prog in $LUIT xterm-filter bluit luit
18998 do
18999 # Extract the first word of "$ac_prog", so it can be a program name with args.
19000 set dummy $ac_prog; ac_word=$2
19001 echo "$as_me:19001: checking for $ac_word" >&5
19002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19003 if test "${ac_cv_path_LUIT+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006 case $LUIT in
19007 [\\/]* | ?:[\\/]*)
19008 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
19009 ;;
19010 *)
19011 ac_save_IFS=$IFS; IFS=$ac_path_separator
19012 ac_dummy="$PATH"
19013 for ac_dir in $ac_dummy; do
19014 IFS=$ac_save_IFS
19015 test -z "$ac_dir" && ac_dir=.
19016 if $as_executable_p "$ac_dir/$ac_word"; then
19017 ac_cv_path_LUIT="$ac_dir/$ac_word"
19018 echo "$as_me:19018: found $ac_dir/$ac_word" >&5
19019 break
19020 fi
19021 done
19022
19023 ;;
19024 esac
19025 fi
19026 LUIT=$ac_cv_path_LUIT
19027
19028 if test -n "$LUIT"; then
19029 echo "$as_me:19029: result: $LUIT" >&5
19030 echo "${ECHO_T}$LUIT" >&6
19031 else
19032 echo "$as_me:19032: result: no" >&5
19033 echo "${ECHO_T}no" >&6
19034 fi
19035
19036 test -n "$LUIT" && break
19037 done
19038 test -n "$LUIT" || LUIT="$LUIT"
19039
19040 cf_path_prog=""
19041 cf_path_args=""
19042 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
19043 for cf_temp in $ac_cv_path_LUIT
19044 do
19045 if test -z "$cf_path_prog" ; then
19046 if test "$with_full_paths" = yes ; then
19047
19048 if test "x$prefix" != xNONE; then
19049 cf_path_syntax="$prefix"
19050 else
19051 cf_path_syntax="$ac_default_prefix"
19052 fi
19053
19054 case ".$cf_temp" in
19055 (.\$\(*\)*|.\'*\'*)
19056 ;;
19057 (..|./*|.\\*)
19058 ;;
19059 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
19060 ;;
19061 (.\${*prefix}*|.\${*dir}*)
19062 eval cf_temp="$cf_temp"
19063 case ".$cf_temp" in
19064 (.NONE/*)
19065 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
19066 ;;
19067 esac
19068 ;;
19069 (.no|.NONE/*)
19070 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
19071 ;;
19072 (*)
19073 break
19074 ;;
19075 esac
19076
19077 cf_path_prog="$cf_temp"
19078 else
19079 cf_path_prog="`basename $cf_temp`"
19080 fi
19081 elif test -z "$cf_path_args" ; then
19082 cf_path_args="$cf_temp"
19083 else
19084 cf_path_args="$cf_path_args $cf_temp"
19085 fi
19086 done
19087 IFS="$cf_save_ifs"
19088
19089 if test -n "$cf_path_prog" ; then
19090
19091 echo "${as_me:-configure}:19091: testing defining path for ${cf_path_prog} ..." 1>&5
19092
19093 cat >>confdefs.h <<EOF
19094 #define LUIT_PATH "$cf_path_prog"
19095 EOF
19096
19097 test -n "$cf_path_args" &&
19098 cat >>confdefs.h <<EOF
19099 #define LUIT_ARGS "$cf_path_args"
19100 EOF
19101
19102 fi
19103
19104 fi
19105
19106 cat >>confdefs.h <<\EOF
19107 #define OPT_WIDE_CHARS 1
19108 EOF
19109
19110 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
19111 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
19112 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
19113 fi
19114
19115 echo "$as_me:19115: checking if you want dynamic-abbreviation support" >&5
19116 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
19117
19118 # Check whether --enable-dabbrev or --disable-dabbrev was given.
19119 if test "${enable_dabbrev+set}" = set; then
19120 enableval="$enable_dabbrev"
19121 test "$enableval" != yes && enableval=no
19122 if test "$enableval" != "no" ; then
19123 enable_dabbrev=yes
19124 else
19125 enable_dabbrev=no
19126 fi
19127 else
19128 enableval=no
19129 enable_dabbrev=no
19130
19131 fi;
19132 echo "$as_me:19132: result: $enable_dabbrev" >&5
19133 echo "${ECHO_T}$enable_dabbrev" >&6
19134 if test "$enable_dabbrev" = yes ; then
19135
19136 cat >>confdefs.h <<\EOF
19137 #define OPT_DABBREV 1
19138 EOF
19139
19140 fi
19141
19142 echo "$as_me:19142: checking if you want DECterm Locator support" >&5
19143 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
19144
19145 # Check whether --enable-dec-locator or --disable-dec-locator was given.
19146 if test "${enable_dec_locator+set}" = set; then
19147 enableval="$enable_dec_locator"
19148 test "$enableval" != yes && enableval=no
19149 if test "$enableval" != "no" ; then
19150 enable_dec_locator=yes
19151 else
19152 enable_dec_locator=no
19153 fi
19154 else
19155 enableval=no
19156 enable_dec_locator=no
19157
19158 fi;
19159 echo "$as_me:19159: result: $enable_dec_locator" >&5
19160 echo "${ECHO_T}$enable_dec_locator" >&6
19161 if test "$enable_dec_locator" = yes ; then
19162
19163 cat >>confdefs.h <<\EOF
19164 #define OPT_DEC_LOCATOR 1
19165 EOF
19166
19167 fi
19168
19169 echo "$as_me:19169: checking if you want XHTML and SVG screen dump support" >&5
19170 echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6
19171
19172 # Check whether --enable-screen-dumps or --disable-screen-dumps was given.
19173 if test "${enable_screen_dumps+set}" = set; then
19174 enableval="$enable_screen_dumps"
19175 test "$enableval" != yes && enableval=no
19176 if test "$enableval" != "no" ; then
19177 enable_screen_dumps=yes
19178 else
19179 enable_screen_dumps=no
19180 fi
19181 else
19182 enableval=no
19183 enable_screen_dumps=no
19184
19185 fi;
19186 echo "$as_me:19186: result: $enable_screen_dumps" >&5
19187 echo "${ECHO_T}$enable_screen_dumps" >&6
19188 if test "$enable_screen_dumps" = yes ; then
19189
19190 cat >>confdefs.h <<\EOF
19191 #define OPT_SCREEN_DUMPS 1
19192 EOF
19193
19194 EXTRASRCS="$EXTRASRCS html.c svg.c"
19195 EXTRAOBJS="$EXTRAOBJS html.o svg.o"
19196 fi
19197
19198 echo "$as_me:19198: checking if you want ReGIS graphics support" >&5
19199 echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6
19200
19201 # Check whether --enable-regis-graphics or --disable-regis-graphics was given.
19202 if test "${enable_regis_graphics+set}" = set; then
19203 enableval="$enable_regis_graphics"
19204 test "$enableval" != yes && enableval=no
19205 if test "$enableval" != "no" ; then
19206 enable_regis_graphics=yes
19207 else
19208 enable_regis_graphics=no
19209 fi
19210 else
19211 enableval=no
19212 enable_regis_graphics=no
19213
19214 fi;
19215 echo "$as_me:19215: result: $enable_regis_graphics" >&5
19216 echo "${ECHO_T}$enable_regis_graphics" >&6
19217 if test "$enable_regis_graphics" = yes ; then
19218
19219 cat >>confdefs.h <<\EOF
19220 #define OPT_REGIS_GRAPHICS 1
19221 EOF
19222
19223 EXTRAHDRS="$EXTRAHDRS graphics_regis.h"
19224 EXTRASRCS="$EXTRASRCS graphics_regis.c"
19225 EXTRAOBJS="$EXTRAOBJS graphics_regis.o"
19226
19227 echo "$as_me:19227: checking if -lm needed for math functions" >&5
19228 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19229 if test "${cf_cv_need_libm+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232
19233 cat >conftest.$ac_ext <<_ACEOF
19234 #line 19234 "configure"
19235 #include "confdefs.h"
19236
19237 #include <stdio.h>
19238 #include <math.h>
19239
19240 int
19241 main ()
19242 {
19243 double x = rand(); printf("result = %g\n", sin(x))
19244 ;
19245 return 0;
19246 }
19247 _ACEOF
19248 rm -f conftest.$ac_objext conftest$ac_exeext
19249 if { (eval echo "$as_me:19249: \"$ac_link\"") >&5
19250 (eval $ac_link) 2>&5
19251 ac_status=$?
19252 echo "$as_me:19252: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:19255: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:19258: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 cf_cv_need_libm=no
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 cat conftest.$ac_ext >&5
19264 cf_cv_need_libm=yes
19265 fi
19266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19267 fi
19268 echo "$as_me:19268: result: $cf_cv_need_libm" >&5
19269 echo "${ECHO_T}$cf_cv_need_libm" >&6
19270 if test "$cf_cv_need_libm" = yes
19271 then
19272
19273 cf_add_libs="-lm"
19274 # Filter out duplicates - this happens with badly-designed ".pc" files...
19275 for cf_add_1lib in $LIBS
19276 do
19277 for cf_add_2lib in $cf_add_libs
19278 do
19279 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19280 then
19281 cf_add_1lib=
19282 break
19283 fi
19284 done
19285 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19286 done
19287 LIBS="$cf_add_libs"
19288
19289 fi
19290
19291 fi
19292
19293 echo "$as_me:19293: checking if you want sixel graphics support" >&5
19294 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6
19295
19296 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given.
19297 if test "${enable_sixel_graphics+set}" = set; then
19298 enableval="$enable_sixel_graphics"
19299 test "$enableval" != yes && enableval=no
19300 if test "$enableval" != "no" ; then
19301 enable_sixel_graphics=yes
19302 else
19303 enable_sixel_graphics=no
19304 fi
19305 else
19306 enableval=no
19307 enable_sixel_graphics=no
19308
19309 fi;
19310 echo "$as_me:19310: result: $enable_sixel_graphics" >&5
19311 echo "${ECHO_T}$enable_sixel_graphics" >&6
19312 if test "$enable_sixel_graphics" = yes ; then
19313
19314 cat >>confdefs.h <<\EOF
19315 #define OPT_SIXEL_GRAPHICS 1
19316 EOF
19317
19318 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h"
19319 EXTRASRCS="$EXTRASRCS graphics_sixel.c"
19320 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o"
19321 fi
19322
19323 if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then
19324
19325 cat >>confdefs.h <<\EOF
19326 #define OPT_GRAPHICS 1
19327 EOF
19328
19329 EXTRAHDRS="$EXTRAHDRS graphics.h"
19330 EXTRASRCS="$EXTRASRCS graphics.c"
19331 EXTRAOBJS="$EXTRAOBJS graphics.o"
19332 fi
19333
19334 echo "$as_me:19334: checking if you want VT420 rectangle support" >&5
19335 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
19336
19337 # Check whether --enable-rectangles or --disable-rectangles was given.
19338 if test "${enable_rectangles+set}" = set; then
19339 enableval="$enable_rectangles"
19340 test "$enableval" != no && enableval=yes
19341 if test "$enableval" != "yes" ; then
19342 enable_rectangles=no
19343 else
19344 enable_rectangles=yes
19345 fi
19346 else
19347 enableval=yes
19348 enable_rectangles=yes
19349
19350 fi;
19351 echo "$as_me:19351: result: $enable_rectangles" >&5
19352 echo "${ECHO_T}$enable_rectangles" >&6
19353 if test "$enable_rectangles" = yes ; then
19354
19355 cat >>confdefs.h <<\EOF
19356 #define OPT_DEC_RECTOPS 1
19357 EOF
19358
19359 fi
19360
19361 echo "$as_me:19361: checking if you want -ziconbeep option" >&5
19362 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
19363
19364 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
19365 if test "${enable_ziconbeep+set}" = set; then
19366 enableval="$enable_ziconbeep"
19367 test "$enableval" != no && enableval=yes
19368 if test "$enableval" != "yes" ; then
19369 enable_ziconbeep=no
19370 else
19371 enable_ziconbeep=yes
19372 fi
19373 else
19374 enableval=yes
19375 enable_ziconbeep=yes
19376
19377 fi;
19378 echo "$as_me:19378: result: $enable_ziconbeep" >&5
19379 echo "${ECHO_T}$enable_ziconbeep" >&6
19380 test "$enable_ziconbeep" = no &&
19381 cat >>confdefs.h <<\EOF
19382 #define OPT_ZICONBEEP 0
19383 EOF
19384
19385 ###############################################################################
19386
19387 echo "$as_me:19387: checking if you want debugging traces" >&5
19388 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
19389
19390 # Check whether --enable-trace or --disable-trace was given.
19391 if test "${enable_trace+set}" = set; then
19392 enableval="$enable_trace"
19393 test "$enableval" != yes && enableval=no
19394 if test "$enableval" != "no" ; then
19395 enable_trace=yes
19396 else
19397 enable_trace=no
19398 fi
19399 else
19400 enableval=no
19401 enable_trace=no
19402
19403 fi;
19404 echo "$as_me:19404: result: $enable_trace" >&5
19405 echo "${ECHO_T}$enable_trace" >&6
19406 if test "$enable_trace" = yes ; then
19407
19408 cat >>confdefs.h <<\EOF
19409 #define OPT_TRACE 1
19410 EOF
19411
19412 EXTRASRCS="$EXTRASRCS trace.c"
19413 EXTRAOBJS="$EXTRAOBJS trace.o"
19414 fi
19415
19416 echo "$as_me:19416: checking if you want to use dmalloc for testing" >&5
19417 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
19418
19419 # Check whether --with-dmalloc or --without-dmalloc was given.
19420 if test "${with_dmalloc+set}" = set; then
19421 withval="$with_dmalloc"
19422
19423 cat >>confdefs.h <<EOF
19424 #define USE_DMALLOC 1
19425 EOF
19426
19427 : ${with_cflags:=-g}
19428 : ${with_no_leaks:=yes}
19429 with_dmalloc=yes
19430 else
19431 with_dmalloc=
19432 fi;
19433 echo "$as_me:19433: result: ${with_dmalloc:-no}" >&5
19434 echo "${ECHO_T}${with_dmalloc:-no}" >&6
19435
19436 case .$with_cflags in
19437 (.*-g*)
19438 case .$CFLAGS in
19439 (.*-g*)
19440 ;;
19441 (*)
19442
19443 cf_fix_cppflags=no
19444 cf_new_cflags=
19445 cf_new_cppflags=
19446 cf_new_extra_cppflags=
19447
19448 for cf_add_cflags in -g
19449 do
19450 case $cf_fix_cppflags in
19451 (no)
19452 case $cf_add_cflags in
19453 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19454 case $cf_add_cflags in
19455 (-D*)
19456 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19457
19458 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19459 && test -z "${cf_tst_cflags}" \
19460 && cf_fix_cppflags=yes
19461
19462 if test $cf_fix_cppflags = yes ; then
19463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19464 continue
19465 elif test "${cf_tst_cflags}" = "\"'" ; then
19466 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19467 continue
19468 fi
19469 ;;
19470 esac
19471 case "$CPPFLAGS" in
19472 (*$cf_add_cflags)
19473 ;;
19474 (*)
19475 case $cf_add_cflags in
19476 (-D*)
19477 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19478
19479 CPPFLAGS=`echo "$CPPFLAGS" | \
19480 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19481 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19482
19483 ;;
19484 esac
19485 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
19486 ;;
19487 esac
19488 ;;
19489 (*)
19490 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
19491 ;;
19492 esac
19493 ;;
19494 (yes)
19495 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19496
19497 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19498
19499 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19500 && test -z "${cf_tst_cflags}" \
19501 && cf_fix_cppflags=no
19502 ;;
19503 esac
19504 done
19505
19506 if test -n "$cf_new_cflags" ; then
19507
19508 CFLAGS="$CFLAGS $cf_new_cflags"
19509 fi
19510
19511 if test -n "$cf_new_cppflags" ; then
19512
19513 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
19514 fi
19515
19516 if test -n "$cf_new_extra_cppflags" ; then
19517
19518 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
19519 fi
19520
19521 ;;
19522 esac
19523 ;;
19524 esac
19525
19526 if test "$with_dmalloc" = yes ; then
19527 echo "$as_me:19527: checking for dmalloc.h" >&5
19528 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
19529 if test "${ac_cv_header_dmalloc_h+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532 cat >conftest.$ac_ext <<_ACEOF
19533 #line 19533 "configure"
19534 #include "confdefs.h"
19535 #include <dmalloc.h>
19536 _ACEOF
19537 if { (eval echo "$as_me:19537: \"$ac_cpp conftest.$ac_ext\"") >&5
19538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19539 ac_status=$?
19540 egrep -v '^ *\+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:19543: \$? = $ac_status" >&5
19544 (exit $ac_status); } >/dev/null; then
19545 if test -s conftest.err; then
19546 ac_cpp_err=$ac_c_preproc_warn_flag
19547 else
19548 ac_cpp_err=
19549 fi
19550 else
19551 ac_cpp_err=yes
19552 fi
19553 if test -z "$ac_cpp_err"; then
19554 ac_cv_header_dmalloc_h=yes
19555 else
19556 echo "$as_me: failed program was:" >&5
19557 cat conftest.$ac_ext >&5
19558 ac_cv_header_dmalloc_h=no
19559 fi
19560 rm -f conftest.err conftest.$ac_ext
19561 fi
19562 echo "$as_me:19562: result: $ac_cv_header_dmalloc_h" >&5
19563 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
19564 if test $ac_cv_header_dmalloc_h = yes; then
19565
19566 echo "$as_me:19566: checking for dmalloc_debug in -ldmalloc" >&5
19567 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
19568 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571 ac_check_lib_save_LIBS=$LIBS
19572 LIBS="-ldmalloc $LIBS"
19573 cat >conftest.$ac_ext <<_ACEOF
19574 #line 19574 "configure"
19575 #include "confdefs.h"
19576
19577 /* Override any gcc2 internal prototype to avoid an error. */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 /* We use char because int might match the return type of a gcc2
19582 builtin and then its argument prototype would still apply. */
19583 char dmalloc_debug ();
19584 int
19585 main ()
19586 {
19587 dmalloc_debug ();
19588 ;
19589 return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (eval echo "$as_me:19593: \"$ac_link\"") >&5
19594 (eval $ac_link) 2>&5
19595 ac_status=$?
19596 echo "$as_me:19596: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -s conftest$ac_exeext'
19599 { (eval echo "$as_me:19599: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:19602: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_lib_dmalloc_dmalloc_debug=yes
19605 else
19606 echo "$as_me: failed program was:" >&5
19607 cat conftest.$ac_ext >&5
19608 ac_cv_lib_dmalloc_dmalloc_debug=no
19609 fi
19610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19611 LIBS=$ac_check_lib_save_LIBS
19612 fi
19613 echo "$as_me:19613: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
19614 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
19615 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
19616 cat >>confdefs.h <<EOF
19617 #define HAVE_LIBDMALLOC 1
19618 EOF
19619
19620 LIBS="-ldmalloc $LIBS"
19621
19622 fi
19623
19624 fi
19625
19626 fi
19627
19628 echo "$as_me:19628: checking if you want to use dbmalloc for testing" >&5
19629 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
19630
19631 # Check whether --with-dbmalloc or --without-dbmalloc was given.
19632 if test "${with_dbmalloc+set}" = set; then
19633 withval="$with_dbmalloc"
19634
19635 cat >>confdefs.h <<EOF
19636 #define USE_DBMALLOC 1
19637 EOF
19638
19639 : ${with_cflags:=-g}
19640 : ${with_no_leaks:=yes}
19641 with_dbmalloc=yes
19642 else
19643 with_dbmalloc=
19644 fi;
19645 echo "$as_me:19645: result: ${with_dbmalloc:-no}" >&5
19646 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
19647
19648 case .$with_cflags in
19649 (.*-g*)
19650 case .$CFLAGS in
19651 (.*-g*)
19652 ;;
19653 (*)
19654
19655 cf_fix_cppflags=no
19656 cf_new_cflags=
19657 cf_new_cppflags=
19658 cf_new_extra_cppflags=
19659
19660 for cf_add_cflags in -g
19661 do
19662 case $cf_fix_cppflags in
19663 (no)
19664 case $cf_add_cflags in
19665 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19666 case $cf_add_cflags in
19667 (-D*)
19668 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19669
19670 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19671 && test -z "${cf_tst_cflags}" \
19672 && cf_fix_cppflags=yes
19673
19674 if test $cf_fix_cppflags = yes ; then
19675 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19676 continue
19677 elif test "${cf_tst_cflags}" = "\"'" ; then
19678 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19679 continue
19680 fi
19681 ;;
19682 esac
19683 case "$CPPFLAGS" in
19684 (*$cf_add_cflags)
19685 ;;
19686 (*)
19687 case $cf_add_cflags in
19688 (-D*)
19689 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19690
19691 CPPFLAGS=`echo "$CPPFLAGS" | \
19692 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19693 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19694
19695 ;;
19696 esac
19697 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
19698 ;;
19699 esac
19700 ;;
19701 (*)
19702 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
19703 ;;
19704 esac
19705 ;;
19706 (yes)
19707 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19708
19709 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19710
19711 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19712 && test -z "${cf_tst_cflags}" \
19713 && cf_fix_cppflags=no
19714 ;;
19715 esac
19716 done
19717
19718 if test -n "$cf_new_cflags" ; then
19719
19720 CFLAGS="$CFLAGS $cf_new_cflags"
19721 fi
19722
19723 if test -n "$cf_new_cppflags" ; then
19724
19725 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
19726 fi
19727
19728 if test -n "$cf_new_extra_cppflags" ; then
19729
19730 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
19731 fi
19732
19733 ;;
19734 esac
19735 ;;
19736 esac
19737
19738 if test "$with_dbmalloc" = yes ; then
19739 echo "$as_me:19739: checking for dbmalloc.h" >&5
19740 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
19741 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744 cat >conftest.$ac_ext <<_ACEOF
19745 #line 19745 "configure"
19746 #include "confdefs.h"
19747 #include <dbmalloc.h>
19748 _ACEOF
19749 if { (eval echo "$as_me:19749: \"$ac_cpp conftest.$ac_ext\"") >&5
19750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19751 ac_status=$?
19752 egrep -v '^ *\+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 echo "$as_me:19755: \$? = $ac_status" >&5
19756 (exit $ac_status); } >/dev/null; then
19757 if test -s conftest.err; then
19758 ac_cpp_err=$ac_c_preproc_warn_flag
19759 else
19760 ac_cpp_err=
19761 fi
19762 else
19763 ac_cpp_err=yes
19764 fi
19765 if test -z "$ac_cpp_err"; then
19766 ac_cv_header_dbmalloc_h=yes
19767 else
19768 echo "$as_me: failed program was:" >&5
19769 cat conftest.$ac_ext >&5
19770 ac_cv_header_dbmalloc_h=no
19771 fi
19772 rm -f conftest.err conftest.$ac_ext
19773 fi
19774 echo "$as_me:19774: result: $ac_cv_header_dbmalloc_h" >&5
19775 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
19776 if test $ac_cv_header_dbmalloc_h = yes; then
19777
19778 echo "$as_me:19778: checking for debug_malloc in -ldbmalloc" >&5
19779 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
19780 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783 ac_check_lib_save_LIBS=$LIBS
19784 LIBS="-ldbmalloc $LIBS"
19785 cat >conftest.$ac_ext <<_ACEOF
19786 #line 19786 "configure"
19787 #include "confdefs.h"
19788
19789 /* Override any gcc2 internal prototype to avoid an error. */
19790 #ifdef __cplusplus
19791 extern "C"
19792 #endif
19793 /* We use char because int might match the return type of a gcc2
19794 builtin and then its argument prototype would still apply. */
19795 char debug_malloc ();
19796 int
19797 main ()
19798 {
19799 debug_malloc ();
19800 ;
19801 return 0;
19802 }
19803 _ACEOF
19804 rm -f conftest.$ac_objext conftest$ac_exeext
19805 if { (eval echo "$as_me:19805: \"$ac_link\"") >&5
19806 (eval $ac_link) 2>&5
19807 ac_status=$?
19808 echo "$as_me:19808: \$? = $ac_status" >&5
19809 (exit $ac_status); } &&
19810 { ac_try='test -s conftest$ac_exeext'
19811 { (eval echo "$as_me:19811: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:19814: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_lib_dbmalloc_debug_malloc=yes
19817 else
19818 echo "$as_me: failed program was:" >&5
19819 cat conftest.$ac_ext >&5
19820 ac_cv_lib_dbmalloc_debug_malloc=no
19821 fi
19822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19824 fi
19825 echo "$as_me:19825: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
19826 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
19827 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
19828 cat >>confdefs.h <<EOF
19829 #define HAVE_LIBDBMALLOC 1
19830 EOF
19831
19832 LIBS="-ldbmalloc $LIBS"
19833
19834 fi
19835
19836 fi
19837
19838 fi
19839
19840 echo "$as_me:19840: checking if you want to use valgrind for testing" >&5
19841 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
19842
19843 # Check whether --with-valgrind or --without-valgrind was given.
19844 if test "${with_valgrind+set}" = set; then
19845 withval="$with_valgrind"
19846
19847 cat >>confdefs.h <<EOF
19848 #define USE_VALGRIND 1
19849 EOF
19850
19851 : ${with_cflags:=-g}
19852 : ${with_no_leaks:=yes}
19853 with_valgrind=yes
19854 else
19855 with_valgrind=
19856 fi;
19857 echo "$as_me:19857: result: ${with_valgrind:-no}" >&5
19858 echo "${ECHO_T}${with_valgrind:-no}" >&6
19859
19860 case .$with_cflags in
19861 (.*-g*)
19862 case .$CFLAGS in
19863 (.*-g*)
19864 ;;
19865 (*)
19866
19867 cf_fix_cppflags=no
19868 cf_new_cflags=
19869 cf_new_cppflags=
19870 cf_new_extra_cppflags=
19871
19872 for cf_add_cflags in -g
19873 do
19874 case $cf_fix_cppflags in
19875 (no)
19876 case $cf_add_cflags in
19877 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19878 case $cf_add_cflags in
19879 (-D*)
19880 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19881
19882 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19883 && test -z "${cf_tst_cflags}" \
19884 && cf_fix_cppflags=yes
19885
19886 if test $cf_fix_cppflags = yes ; then
19887 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19888 continue
19889 elif test "${cf_tst_cflags}" = "\"'" ; then
19890 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19891 continue
19892 fi
19893 ;;
19894 esac
19895 case "$CPPFLAGS" in
19896 (*$cf_add_cflags)
19897 ;;
19898 (*)
19899 case $cf_add_cflags in
19900 (-D*)
19901 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19902
19903 CPPFLAGS=`echo "$CPPFLAGS" | \
19904 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19905 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19906
19907 ;;
19908 esac
19909 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
19910 ;;
19911 esac
19912 ;;
19913 (*)
19914 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
19915 ;;
19916 esac
19917 ;;
19918 (yes)
19919 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
19920
19921 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19922
19923 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19924 && test -z "${cf_tst_cflags}" \
19925 && cf_fix_cppflags=no
19926 ;;
19927 esac
19928 done
19929
19930 if test -n "$cf_new_cflags" ; then
19931
19932 CFLAGS="$CFLAGS $cf_new_cflags"
19933 fi
19934
19935 if test -n "$cf_new_cppflags" ; then
19936
19937 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
19938 fi
19939
19940 if test -n "$cf_new_extra_cppflags" ; then
19941
19942 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
19943 fi
19944
19945 ;;
19946 esac
19947 ;;
19948 esac
19949
19950 echo "$as_me:19950: checking if you want to perform memory-leak testing" >&5
19951 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
19952
19953 # Check whether --enable-leaks or --disable-leaks was given.
19954 if test "${enable_leaks+set}" = set; then
19955 enableval="$enable_leaks"
19956 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
19957 else
19958 : ${with_no_leaks:=no}
19959 fi;
19960 echo "$as_me:19960: result: $with_no_leaks" >&5
19961 echo "${ECHO_T}$with_no_leaks" >&6
19962
19963 if test "$with_no_leaks" = yes ; then
19964
19965 cat >>confdefs.h <<\EOF
19966 #define NO_LEAKS 1
19967 EOF
19968
19969 cat >>confdefs.h <<\EOF
19970 #define YY_NO_LEAKS 1
19971 EOF
19972
19973 fi
19974
19975 echo "$as_me:19975: checking if you want to see long compiling messages" >&5
19976 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
19977
19978 # Check whether --enable-echo or --disable-echo was given.
19979 if test "${enable_echo+set}" = set; then
19980 enableval="$enable_echo"
19981 test "$enableval" != no && enableval=yes
19982 if test "$enableval" != "yes" ; then
19983
19984 ECHO_LT='--silent'
19985 ECHO_LD='@echo linking $@;'
19986 RULE_CC='@echo compiling $<'
19987 SHOW_CC='@echo compiling $@'
19988 ECHO_CC='@'
19989
19990 else
19991
19992 ECHO_LT=''
19993 ECHO_LD=''
19994 RULE_CC=''
19995 SHOW_CC=''
19996 ECHO_CC=''
19997
19998 fi
19999 else
20000 enableval=yes
20001
20002 ECHO_LT=''
20003 ECHO_LD=''
20004 RULE_CC=''
20005 SHOW_CC=''
20006 ECHO_CC=''
20007
20008 fi;
20009 echo "$as_me:20009: result: $enableval" >&5
20010 echo "${ECHO_T}$enableval" >&6
20011
20012 echo "$as_me:20012: checking if you want magic cookie emulation" >&5
20013 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
20014
20015 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
20016 if test "${enable_xmc_glitch+set}" = set; then
20017 enableval="$enable_xmc_glitch"
20018 test "$enableval" != yes && enableval=no
20019 if test "$enableval" != "no" ; then
20020 enable_xmc=yes
20021 else
20022 enable_xmc=no
20023 fi
20024 else
20025 enableval=no
20026 enable_xmc=no
20027
20028 fi;
20029 echo "$as_me:20029: result: $enable_xmc" >&5
20030 echo "${ECHO_T}$enable_xmc" >&6
20031 if test "$enable_xmc" = yes ; then
20032
20033 cat >>confdefs.h <<\EOF
20034 #define OPT_XMC_GLITCH 1
20035 EOF
20036
20037 EXTRASRCS="$EXTRASRCS testxmc.c"
20038 EXTRAOBJS="$EXTRAOBJS testxmc.o"
20039 fi
20040
20041 for ac_func in tigetstr
20042 do
20043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20044 echo "$as_me:20044: checking for $ac_func" >&5
20045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20046 if eval "test \"\${$as_ac_var+set}\" = set"; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049 cat >conftest.$ac_ext <<_ACEOF
20050 #line 20050 "configure"
20051 #include "confdefs.h"
20052 /* System header to define __stub macros and hopefully few prototypes,
20053 which can conflict with char $ac_func (); below. */
20054 #include <assert.h>
20055 /* Override any gcc2 internal prototype to avoid an error. */
20056 #ifdef __cplusplus
20057 extern "C"
20058 #endif
20059 /* We use char because int might match the return type of a gcc2
20060 builtin and then its argument prototype would still apply. */
20061 char $ac_func ();
20062 char (*f) ();
20063
20064 int
20065 main ()
20066 {
20067 /* The GNU C library defines this for functions which it implements
20068 to always fail with ENOSYS. Some functions are actually named
20069 something starting with __ and the normal name is an alias. */
20070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20071 choke me
20072 #else
20073 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
20074 #endif
20075
20076 ;
20077 return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (eval echo "$as_me:20081: \"$ac_link\"") >&5
20082 (eval $ac_link) 2>&5
20083 ac_status=$?
20084 echo "$as_me:20084: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -s conftest$ac_exeext'
20087 { (eval echo "$as_me:20087: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 echo "$as_me:20090: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 eval "$as_ac_var=yes"
20093 else
20094 echo "$as_me: failed program was:" >&5
20095 cat conftest.$ac_ext >&5
20096 eval "$as_ac_var=no"
20097 fi
20098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20099 fi
20100 echo "$as_me:20100: result: `eval echo '${'$as_ac_var'}'`" >&5
20101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20102 if test `eval echo '${'$as_ac_var'}'` = yes; then
20103 cat >>confdefs.h <<EOF
20104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20105 EOF
20106
20107 fi
20108 done
20109
20110 if test -n "$cf_cv_lib_part_tgetent"; then
20111
20112 for ac_func in use_extended_names
20113 do
20114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20115 echo "$as_me:20115: checking for $ac_func" >&5
20116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20117 if eval "test \"\${$as_ac_var+set}\" = set"; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120 cat >conftest.$ac_ext <<_ACEOF
20121 #line 20121 "configure"
20122 #include "confdefs.h"
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below. */
20125 #include <assert.h>
20126 /* Override any gcc2 internal prototype to avoid an error. */
20127 #ifdef __cplusplus
20128 extern "C"
20129 #endif
20130 /* We use char because int might match the return type of a gcc2
20131 builtin and then its argument prototype would still apply. */
20132 char $ac_func ();
20133 char (*f) ();
20134
20135 int
20136 main ()
20137 {
20138 /* The GNU C library defines this for functions which it implements
20139 to always fail with ENOSYS. Some functions are actually named
20140 something starting with __ and the normal name is an alias. */
20141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20142 choke me
20143 #else
20144 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
20145 #endif
20146
20147 ;
20148 return 0;
20149 }
20150 _ACEOF
20151 rm -f conftest.$ac_objext conftest$ac_exeext
20152 if { (eval echo "$as_me:20152: \"$ac_link\"") >&5
20153 (eval $ac_link) 2>&5
20154 ac_status=$?
20155 echo "$as_me:20155: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -s conftest$ac_exeext'
20158 { (eval echo "$as_me:20158: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:20161: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 eval "$as_ac_var=yes"
20164 else
20165 echo "$as_me: failed program was:" >&5
20166 cat conftest.$ac_ext >&5
20167 eval "$as_ac_var=no"
20168 fi
20169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20170 fi
20171 echo "$as_me:20171: result: `eval echo '${'$as_ac_var'}'`" >&5
20172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20173 if test `eval echo '${'$as_ac_var'}'` = yes; then
20174 cat >>confdefs.h <<EOF
20175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20176 EOF
20177
20178 fi
20179 done
20180
20181 fi
20182
20183 if test -n "$GCC" ; then
20184 echo "$as_me:20184: checking if you want to turn on gcc warnings" >&5
20185 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
20186
20187 # Check whether --enable-warnings or --disable-warnings was given.
20188 if test "${enable_warnings+set}" = set; then
20189 enableval="$enable_warnings"
20190 test "$enableval" != yes && enableval=no
20191 if test "$enableval" != "no" ; then
20192 with_warnings=yes
20193 else
20194 with_warnings=no
20195 fi
20196 else
20197 enableval=no
20198 with_warnings=no
20199
20200 fi;
20201 echo "$as_me:20201: result: $with_warnings" >&5
20202 echo "${ECHO_T}$with_warnings" >&6
20203 if test "$with_warnings" = yes
20204 then
20205
20206 if test "$GCC" = yes
20207 then
20208 cat > conftest.i <<EOF
20209 #ifndef GCC_PRINTF
20210 #define GCC_PRINTF 0
20211 #endif
20212 #ifndef GCC_SCANF
20213 #define GCC_SCANF 0
20214 #endif
20215 #ifndef GCC_NORETURN
20216 #define GCC_NORETURN /* nothing */
20217 #endif
20218 #ifndef GCC_UNUSED
20219 #define GCC_UNUSED /* nothing */
20220 #endif
20221 EOF
20222 if test "$GCC" = yes
20223 then
20224 { echo "$as_me:20224: checking for $CC __attribute__ directives..." >&5
20225 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
20226 cat > conftest.$ac_ext <<EOF
20227 #line 20227 "${as_me:-configure}"
20228 #include "confdefs.h"
20229 #include "conftest.h"
20230 #include "conftest.i"
20231 #if GCC_PRINTF
20232 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
20233 #else
20234 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
20235 #endif
20236 #if GCC_SCANF
20237 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
20238 #else
20239 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
20240 #endif
20241 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
20242 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
20243 extern void foo(void) GCC_NORETURN;
20244 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
20245 EOF
20246 cf_printf_attribute=no
20247 cf_scanf_attribute=no
20248 for cf_attribute in scanf printf unused noreturn
20249 do
20250
20251 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20252
20253 cf_directive="__attribute__(($cf_attribute))"
20254 echo "checking for $CC $cf_directive" 1>&5
20255
20256 case $cf_attribute in
20257 (printf)
20258 cf_printf_attribute=yes
20259 cat >conftest.h <<EOF
20260 #define GCC_$cf_ATTRIBUTE 1
20261 EOF
20262 ;;
20263 (scanf)
20264 cf_scanf_attribute=yes
20265 cat >conftest.h <<EOF
20266 #define GCC_$cf_ATTRIBUTE 1
20267 EOF
20268 ;;
20269 (*)
20270 cat >conftest.h <<EOF
20271 #define GCC_$cf_ATTRIBUTE $cf_directive
20272 EOF
20273 ;;
20274 esac
20275
20276 if { (eval echo "$as_me:20276: \"$ac_compile\"") >&5
20277 (eval $ac_compile) 2>&5
20278 ac_status=$?
20279 echo "$as_me:20279: \$? = $ac_status" >&5
20280 (exit $ac_status); }; then
20281 test -n "$verbose" && echo "$as_me:20281: result: ... $cf_attribute" >&5
20282 echo "${ECHO_T}... $cf_attribute" >&6
20283 cat conftest.h >>confdefs.h
20284 case $cf_attribute in
20285 (noreturn)
20286
20287 cat >>confdefs.h <<EOF
20288 #define GCC_NORETURN $cf_directive
20289 EOF
20290
20291 ;;
20292 (printf)
20293 cf_value='/* nothing */'
20294 if test "$cf_printf_attribute" != no ; then
20295 cf_value='__attribute__((format(printf,fmt,var)))'
20296
20297 cat >>confdefs.h <<\EOF
20298 #define GCC_PRINTF 1
20299 EOF
20300
20301 fi
20302
20303 cat >>confdefs.h <<EOF
20304 #define GCC_PRINTFLIKE(fmt,var) $cf_value
20305 EOF
20306
20307 ;;
20308 (scanf)
20309 cf_value='/* nothing */'
20310 if test "$cf_scanf_attribute" != no ; then
20311 cf_value='__attribute__((format(scanf,fmt,var)))'
20312
20313 cat >>confdefs.h <<\EOF
20314 #define GCC_SCANF 1
20315 EOF
20316
20317 fi
20318
20319 cat >>confdefs.h <<EOF
20320 #define GCC_SCANFLIKE(fmt,var) $cf_value
20321 EOF
20322
20323 ;;
20324 (unused)
20325
20326 cat >>confdefs.h <<EOF
20327 #define GCC_UNUSED $cf_directive
20328 EOF
20329
20330 ;;
20331 esac
20332 fi
20333 done
20334 else
20335 fgrep define conftest.i >>confdefs.h
20336 fi
20337 rm -rf conftest*
20338 fi
20339
20340 INTEL_COMPILER=no
20341
20342 if test "$GCC" = yes ; then
20343 case $host_os in
20344 (linux*|gnu*)
20345 echo "$as_me:20345: checking if this is really Intel C compiler" >&5
20346 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
20347 cf_save_CFLAGS="$CFLAGS"
20348 CFLAGS="$CFLAGS -no-gcc"
20349 cat >conftest.$ac_ext <<_ACEOF
20350 #line 20350 "configure"
20351 #include "confdefs.h"
20352
20353 int
20354 main ()
20355 {
20356
20357 #ifdef __INTEL_COMPILER
20358 #else
20359 make an error
20360 #endif
20361
20362 ;
20363 return 0;
20364 }
20365 _ACEOF
20366 rm -f conftest.$ac_objext
20367 if { (eval echo "$as_me:20367: \"$ac_compile\"") >&5
20368 (eval $ac_compile) 2>&5
20369 ac_status=$?
20370 echo "$as_me:20370: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (eval echo "$as_me:20373: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20375 ac_status=$?
20376 echo "$as_me:20376: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 INTEL_COMPILER=yes
20379 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
20380
20381 else
20382 echo "$as_me: failed program was:" >&5
20383 cat conftest.$ac_ext >&5
20384 fi
20385 rm -f conftest.$ac_objext conftest.$ac_ext
20386 CFLAGS="$cf_save_CFLAGS"
20387 echo "$as_me:20387: result: $INTEL_COMPILER" >&5
20388 echo "${ECHO_T}$INTEL_COMPILER" >&6
20389 ;;
20390 esac
20391 fi
20392
20393 CLANG_COMPILER=no
20394
20395 if test "$GCC" = yes ; then
20396 echo "$as_me:20396: checking if this is really Clang C compiler" >&5
20397 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
20398 cf_save_CFLAGS="$CFLAGS"
20399 CFLAGS="$CFLAGS -Qunused-arguments"
20400 cat >conftest.$ac_ext <<_ACEOF
20401 #line 20401 "configure"
20402 #include "confdefs.h"
20403
20404 int
20405 main ()
20406 {
20407
20408 #ifdef __clang__
20409 #else
20410 make an error
20411 #endif
20412
20413 ;
20414 return 0;
20415 }
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (eval echo "$as_me:20418: \"$ac_compile\"") >&5
20419 (eval $ac_compile) 2>&5
20420 ac_status=$?
20421 echo "$as_me:20421: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:20424: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:20427: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 CLANG_COMPILER=yes
20430 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
20431
20432 else
20433 echo "$as_me: failed program was:" >&5
20434 cat conftest.$ac_ext >&5
20435 fi
20436 rm -f conftest.$ac_objext conftest.$ac_ext
20437 CFLAGS="$cf_save_CFLAGS"
20438 echo "$as_me:20438: result: $CLANG_COMPILER" >&5
20439 echo "${ECHO_T}$CLANG_COMPILER" >&6
20440 fi
20441
20442 cat > conftest.$ac_ext <<EOF
20443 #line 20443 "${as_me:-configure}"
20444 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
20445 EOF
20446
20447 if test "$INTEL_COMPILER" = yes
20448 then
20449 # The "-wdXXX" options suppress warnings:
20450 # remark #1419: external declaration in primary source file
20451 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
20452 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
20453 # remark #193: zero used for undefined preprocessing identifier
20454 # remark #593: variable "curs_sb_left_arrow" was set but never used
20455 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
20456 # remark #869: parameter "tw" was never referenced
20457 # remark #981: operands are evaluated in unspecified order
20458 # warning #279: controlling expression is constant
20459
20460 { echo "$as_me:20460: checking for $CC warning options..." >&5
20461 echo "$as_me: checking for $CC warning options..." >&6;}
20462 cf_save_CFLAGS="$CFLAGS"
20463 EXTRA_CFLAGS="-Wall"
20464 for cf_opt in \
20465 wd1419 \
20466 wd1683 \
20467 wd1684 \
20468 wd193 \
20469 wd593 \
20470 wd279 \
20471 wd810 \
20472 wd869 \
20473 wd981
20474 do
20475 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
20476 if { (eval echo "$as_me:20476: \"$ac_compile\"") >&5
20477 (eval $ac_compile) 2>&5
20478 ac_status=$?
20479 echo "$as_me:20479: \$? = $ac_status" >&5
20480 (exit $ac_status); }; then
20481 test -n "$verbose" && echo "$as_me:20481: result: ... -$cf_opt" >&5
20482 echo "${ECHO_T}... -$cf_opt" >&6
20483 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
20484 fi
20485 done
20486 CFLAGS="$cf_save_CFLAGS"
20487
20488 elif test "$GCC" = yes
20489 then
20490 { echo "$as_me:20490: checking for $CC warning options..." >&5
20491 echo "$as_me: checking for $CC warning options..." >&6;}
20492 cf_save_CFLAGS="$CFLAGS"
20493 EXTRA_CFLAGS=
20494 cf_warn_CONST=""
20495 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
20496 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
20497 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
20498 for cf_opt in W Wall \
20499 Wbad-function-cast \
20500 Wcast-align \
20501 Wcast-qual \
20502 Wdeclaration-after-statement \
20503 Wextra \
20504 Winline \
20505 Wmissing-declarations \
20506 Wmissing-prototypes \
20507 Wnested-externs \
20508 Wpointer-arith \
20509 Wshadow \
20510 Wstrict-prototypes \
20511 Wundef $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
20512 do
20513 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
20514 if { (eval echo "$as_me:20514: \"$ac_compile\"") >&5
20515 (eval $ac_compile) 2>&5
20516 ac_status=$?
20517 echo "$as_me:20517: \$? = $ac_status" >&5
20518 (exit $ac_status); }; then
20519 test -n "$verbose" && echo "$as_me:20519: result: ... -$cf_opt" >&5
20520 echo "${ECHO_T}... -$cf_opt" >&6
20521 case $cf_opt in
20522 (Wcast-qual)
20523 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
20524 ;;
20525 (Winline)
20526 case $GCC_VERSION in
20527 ([34].*)
20528 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
20529
20530 echo "${as_me:-configure}:20530: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
20531
20532 continue;;
20533 esac
20534 ;;
20535 (Wpointer-arith)
20536 case $GCC_VERSION in
20537 ([12].*)
20538 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
20539
20540 echo "${as_me:-configure}:20540: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
20541
20542 continue;;
20543 esac
20544 ;;
20545 esac
20546 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
20547 fi
20548 done
20549 CFLAGS="$cf_save_CFLAGS"
20550 fi
20551 rm -rf conftest*
20552
20553 fi
20554 fi
20555
20556 test "$disable_setuid" = yes &&
20557 cat >>confdefs.h <<\EOF
20558 #define DISABLE_SETUID 1
20559 EOF
20560
20561 test "$disable_setgid" = yes &&
20562 cat >>confdefs.h <<\EOF
20563 #define DISABLE_SETGID 1
20564 EOF
20565
20566 if test $disable_setuid = yes ; then
20567 MAY_SETUID="#"
20568 NOT_SETUID=
20569 elif test $disable_setgid = yes ; then
20570 MAY_SETUID="#"
20571 NOT_SETUID=
20572 else
20573 MAY_SETUID=
20574 NOT_SETUID="#"
20575 fi
20576
20577 ### remove from CPPFLAGS the optional features we define in xtermcfg.h
20578 ### or other conflicting symbols that may be defined via imake:
20579 for cf_def in \
20580 __STDC__ \
20581 ALLOWLOGGING \
20582 ALLOWLOGFILEEXEC \
20583 OPT_LUIT_PROG \
20584 OPT_WIDE_CHARS \
20585 SCROLLBAR_RIGHT \
20586 USE_TTY_GROUP \
20587 USE_UTEMPTER \
20588 XRENDERFONT
20589 do
20590 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
20591 done
20592
20593 echo "$as_me:20593: checking if filesystem supports mixed-case filenames" >&5
20594 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
20595 if test "${cf_cv_mixedcase+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598
20599 if test "$cross_compiling" = yes ; then
20600 case $target_alias in
20601 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
20602 cf_cv_mixedcase=no
20603 ;;
20604 (*)
20605 cf_cv_mixedcase=yes
20606 ;;
20607 esac
20608 else
20609 rm -f conftest CONFTEST
20610 echo test >conftest
20611 if test -f CONFTEST ; then
20612 cf_cv_mixedcase=no
20613 else
20614 cf_cv_mixedcase=yes
20615 fi
20616 rm -f conftest CONFTEST
20617 fi
20618
20619 fi
20620 echo "$as_me:20620: result: $cf_cv_mixedcase" >&5
20621 echo "${ECHO_T}$cf_cv_mixedcase" >&6
20622 test "$cf_cv_mixedcase" = yes &&
20623 cat >>confdefs.h <<\EOF
20624 #define MIXEDCASE_FILENAMES 1
20625 EOF
20626
20627 for ac_prog in exctags ctags
20628 do
20629 # Extract the first word of "$ac_prog", so it can be a program name with args.
20630 set dummy $ac_prog; ac_word=$2
20631 echo "$as_me:20631: checking for $ac_word" >&5
20632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20633 if test "${ac_cv_prog_CTAGS+set}" = set; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 else
20636 if test -n "$CTAGS"; then
20637 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
20638 else
20639 ac_save_IFS=$IFS; IFS=$ac_path_separator
20640 ac_dummy="$PATH"
20641 for ac_dir in $ac_dummy; do
20642 IFS=$ac_save_IFS
20643 test -z "$ac_dir" && ac_dir=.
20644 $as_executable_p "$ac_dir/$ac_word" || continue
20645 ac_cv_prog_CTAGS="$ac_prog"
20646 echo "$as_me:20646: found $ac_dir/$ac_word" >&5
20647 break
20648 done
20649
20650 fi
20651 fi
20652 CTAGS=$ac_cv_prog_CTAGS
20653 if test -n "$CTAGS"; then
20654 echo "$as_me:20654: result: $CTAGS" >&5
20655 echo "${ECHO_T}$CTAGS" >&6
20656 else
20657 echo "$as_me:20657: result: no" >&5
20658 echo "${ECHO_T}no" >&6
20659 fi
20660
20661 test -n "$CTAGS" && break
20662 done
20663
20664 for ac_prog in exetags etags
20665 do
20666 # Extract the first word of "$ac_prog", so it can be a program name with args.
20667 set dummy $ac_prog; ac_word=$2
20668 echo "$as_me:20668: checking for $ac_word" >&5
20669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20670 if test "${ac_cv_prog_ETAGS+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673 if test -n "$ETAGS"; then
20674 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
20675 else
20676 ac_save_IFS=$IFS; IFS=$ac_path_separator
20677 ac_dummy="$PATH"
20678 for ac_dir in $ac_dummy; do
20679 IFS=$ac_save_IFS
20680 test -z "$ac_dir" && ac_dir=.
20681 $as_executable_p "$ac_dir/$ac_word" || continue
20682 ac_cv_prog_ETAGS="$ac_prog"
20683 echo "$as_me:20683: found $ac_dir/$ac_word" >&5
20684 break
20685 done
20686
20687 fi
20688 fi
20689 ETAGS=$ac_cv_prog_ETAGS
20690 if test -n "$ETAGS"; then
20691 echo "$as_me:20691: result: $ETAGS" >&5
20692 echo "${ECHO_T}$ETAGS" >&6
20693 else
20694 echo "$as_me:20694: result: no" >&5
20695 echo "${ECHO_T}no" >&6
20696 fi
20697
20698 test -n "$ETAGS" && break
20699 done
20700
20701 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
20702 set dummy ${CTAGS:-ctags}; ac_word=$2
20703 echo "$as_me:20703: checking for $ac_word" >&5
20704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20705 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708 if test -n "$MAKE_LOWER_TAGS"; then
20709 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
20710 else
20711 ac_save_IFS=$IFS; IFS=$ac_path_separator
20712 ac_dummy="$PATH"
20713 for ac_dir in $ac_dummy; do
20714 IFS=$ac_save_IFS
20715 test -z "$ac_dir" && ac_dir=.
20716 $as_executable_p "$ac_dir/$ac_word" || continue
20717 ac_cv_prog_MAKE_LOWER_TAGS="yes"
20718 echo "$as_me:20718: found $ac_dir/$ac_word" >&5
20719 break
20720 done
20721
20722 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
20723 fi
20724 fi
20725 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
20726 if test -n "$MAKE_LOWER_TAGS"; then
20727 echo "$as_me:20727: result: $MAKE_LOWER_TAGS" >&5
20728 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
20729 else
20730 echo "$as_me:20730: result: no" >&5
20731 echo "${ECHO_T}no" >&6
20732 fi
20733
20734 if test "$cf_cv_mixedcase" = yes ; then
20735 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
20736 set dummy ${ETAGS:-etags}; ac_word=$2
20737 echo "$as_me:20737: checking for $ac_word" >&5
20738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20739 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742 if test -n "$MAKE_UPPER_TAGS"; then
20743 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
20744 else
20745 ac_save_IFS=$IFS; IFS=$ac_path_separator
20746 ac_dummy="$PATH"
20747 for ac_dir in $ac_dummy; do
20748 IFS=$ac_save_IFS
20749 test -z "$ac_dir" && ac_dir=.
20750 $as_executable_p "$ac_dir/$ac_word" || continue
20751 ac_cv_prog_MAKE_UPPER_TAGS="yes"
20752 echo "$as_me:20752: found $ac_dir/$ac_word" >&5
20753 break
20754 done
20755
20756 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
20757 fi
20758 fi
20759 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
20760 if test -n "$MAKE_UPPER_TAGS"; then
20761 echo "$as_me:20761: result: $MAKE_UPPER_TAGS" >&5
20762 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
20763 else
20764 echo "$as_me:20764: result: no" >&5
20765 echo "${ECHO_T}no" >&6
20766 fi
20767
20768 else
20769 MAKE_UPPER_TAGS=no
20770 fi
20771
20772 if test "$MAKE_UPPER_TAGS" = yes ; then
20773 MAKE_UPPER_TAGS=
20774 else
20775 MAKE_UPPER_TAGS="#"
20776 fi
20777
20778 if test "$MAKE_LOWER_TAGS" = yes ; then
20779 MAKE_LOWER_TAGS=
20780 else
20781 MAKE_LOWER_TAGS="#"
20782 fi
20783
20784 LD_RPATH_OPT=
20785 echo "$as_me:20785: checking for an rpath option" >&5
20786 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
20787 case $cf_cv_system_name in
20788 (irix*)
20789 if test "$GCC" = yes; then
20790 LD_RPATH_OPT="-Wl,-rpath,"
20791 else
20792 LD_RPATH_OPT="-rpath "
20793 fi
20794 ;;
20795 (linux*|gnu*|k*bsd*-gnu|freebsd*)
20796 LD_RPATH_OPT="-Wl,-rpath,"
20797 ;;
20798 (openbsd[2-9].*|mirbsd*)
20799 LD_RPATH_OPT="-Wl,-rpath,"
20800 ;;
20801 (dragonfly*)
20802 LD_RPATH_OPT="-rpath "
20803 ;;
20804 (netbsd*)
20805 LD_RPATH_OPT="-Wl,-rpath,"
20806 ;;
20807 (osf*|mls+*)
20808 LD_RPATH_OPT="-rpath "
20809 ;;
20810 (solaris2*)
20811 LD_RPATH_OPT="-R"
20812 ;;
20813 (*)
20814 ;;
20815 esac
20816 echo "$as_me:20816: result: $LD_RPATH_OPT" >&5
20817 echo "${ECHO_T}$LD_RPATH_OPT" >&6
20818
20819 case "x$LD_RPATH_OPT" in
20820 (x-R*)
20821 echo "$as_me:20821: checking if we need a space after rpath option" >&5
20822 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
20823 cf_save_LIBS="$LIBS"
20824
20825 cf_add_libs="${LD_RPATH_OPT}$libdir"
20826 # Filter out duplicates - this happens with badly-designed ".pc" files...
20827 for cf_add_1lib in $LIBS
20828 do
20829 for cf_add_2lib in $cf_add_libs
20830 do
20831 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20832 then
20833 cf_add_1lib=
20834 break
20835 fi
20836 done
20837 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20838 done
20839 LIBS="$cf_add_libs"
20840
20841 cat >conftest.$ac_ext <<_ACEOF
20842 #line 20842 "configure"
20843 #include "confdefs.h"
20844
20845 int
20846 main ()
20847 {
20848
20849 ;
20850 return 0;
20851 }
20852 _ACEOF
20853 rm -f conftest.$ac_objext conftest$ac_exeext
20854 if { (eval echo "$as_me:20854: \"$ac_link\"") >&5
20855 (eval $ac_link) 2>&5
20856 ac_status=$?
20857 echo "$as_me:20857: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -s conftest$ac_exeext'
20860 { (eval echo "$as_me:20860: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:20863: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 cf_rpath_space=no
20866 else
20867 echo "$as_me: failed program was:" >&5
20868 cat conftest.$ac_ext >&5
20869 cf_rpath_space=yes
20870 fi
20871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20872 LIBS="$cf_save_LIBS"
20873 echo "$as_me:20873: result: $cf_rpath_space" >&5
20874 echo "${ECHO_T}$cf_rpath_space" >&6
20875 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
20876 ;;
20877 esac
20878
20879 echo "$as_me:20879: checking if rpath-hack should be disabled" >&5
20880 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
20881
20882 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
20883 if test "${enable_rpath_hack+set}" = set; then
20884 enableval="$enable_rpath_hack"
20885 test "$enableval" != no && enableval=yes
20886 if test "$enableval" != "yes" ; then
20887 cf_disable_rpath_hack=yes
20888 else
20889 cf_disable_rpath_hack=no
20890 fi
20891 else
20892 enableval=yes
20893 cf_disable_rpath_hack=no
20894
20895 fi;
20896 echo "$as_me:20896: result: $cf_disable_rpath_hack" >&5
20897 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
20898 if test "$cf_disable_rpath_hack" = no ; then
20899
20900 echo "$as_me:20900: checking for updated LDFLAGS" >&5
20901 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
20902 if test -n "$LD_RPATH_OPT" ; then
20903 echo "$as_me:20903: result: maybe" >&5
20904 echo "${ECHO_T}maybe" >&6
20905
20906 for ac_prog in ldd
20907 do
20908 # Extract the first word of "$ac_prog", so it can be a program name with args.
20909 set dummy $ac_prog; ac_word=$2
20910 echo "$as_me:20910: checking for $ac_word" >&5
20911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20912 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 else
20915 if test -n "$cf_ldd_prog"; then
20916 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
20917 else
20918 ac_save_IFS=$IFS; IFS=$ac_path_separator
20919 ac_dummy="$PATH"
20920 for ac_dir in $ac_dummy; do
20921 IFS=$ac_save_IFS
20922 test -z "$ac_dir" && ac_dir=.
20923 $as_executable_p "$ac_dir/$ac_word" || continue
20924 ac_cv_prog_cf_ldd_prog="$ac_prog"
20925 echo "$as_me:20925: found $ac_dir/$ac_word" >&5
20926 break
20927 done
20928
20929 fi
20930 fi
20931 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
20932 if test -n "$cf_ldd_prog"; then
20933 echo "$as_me:20933: result: $cf_ldd_prog" >&5
20934 echo "${ECHO_T}$cf_ldd_prog" >&6
20935 else
20936 echo "$as_me:20936: result: no" >&5
20937 echo "${ECHO_T}no" >&6
20938 fi
20939
20940 test -n "$cf_ldd_prog" && break
20941 done
20942 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
20943
20944 cf_rpath_list="/usr/lib /lib"
20945 if test "$cf_ldd_prog" != no
20946 then
20947 cf_rpath_oops=
20948
20949 cat >conftest.$ac_ext <<_ACEOF
20950 #line 20950 "configure"
20951 #include "confdefs.h"
20952 #include <stdio.h>
20953 int
20954 main ()
20955 {
20956 printf("Hello");
20957 ;
20958 return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest.$ac_objext conftest$ac_exeext
20962 if { (eval echo "$as_me:20962: \"$ac_link\"") >&5
20963 (eval $ac_link) 2>&5
20964 ac_status=$?
20965 echo "$as_me:20965: \$? = $ac_status" >&5
20966 (exit $ac_status); } &&
20967 { ac_try='test -s conftest$ac_exeext'
20968 { (eval echo "$as_me:20968: \"$ac_try\"") >&5
20969 (eval $ac_try) 2>&5
20970 ac_status=$?
20971 echo "$as_me:20971: \$? = $ac_status" >&5
20972 (exit $ac_status); }; }; then
20973 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
20974 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
20975 else
20976 echo "$as_me: failed program was:" >&5
20977 cat conftest.$ac_ext >&5
20978 fi
20979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20980
20981 # If we passed the link-test, but get a "not found" on a given library,
20982 # this could be due to inept reconfiguration of gcc to make it only
20983 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
20984 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
20985 # /usr/local libraries.
20986 if test -n "$cf_rpath_oops"
20987 then
20988 for cf_rpath_src in $cf_rpath_oops
20989 do
20990 for cf_rpath_dir in \
20991 /usr/local \
20992 /usr/pkg \
20993 /opt/sfw
20994 do
20995 if test -f $cf_rpath_dir/lib/$cf_rpath_src
20996 then
20997 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
20998
20999 echo "${as_me:-configure}:20999: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
21000
21001 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
21002 break
21003 fi
21004 done
21005 done
21006 fi
21007 fi
21008
21009 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
21010
21011 echo "${as_me:-configure}:21011: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
21012
21013 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
21014
21015 echo "${as_me:-configure}:21015: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
21016
21017 cf_rpath_dst=
21018 for cf_rpath_src in $LDFLAGS
21019 do
21020 case $cf_rpath_src in
21021 (-L*)
21022
21023 # check if this refers to a directory which we will ignore
21024 cf_rpath_skip=no
21025 if test -n "$cf_rpath_list"
21026 then
21027 for cf_rpath_item in $cf_rpath_list
21028 do
21029 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
21030 then
21031 cf_rpath_skip=yes
21032 break
21033 fi
21034 done
21035 fi
21036
21037 if test "$cf_rpath_skip" = no
21038 then
21039 # transform the option
21040 if test "$LD_RPATH_OPT" = "-R " ; then
21041 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
21042 else
21043 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
21044 fi
21045
21046 # if we have not already added this, add it now
21047 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
21048 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
21049 then
21050 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
21051
21052 echo "${as_me:-configure}:21052: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
21053
21054 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
21055 fi
21056 fi
21057 ;;
21058 esac
21059 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
21060 done
21061 LDFLAGS=$cf_rpath_dst
21062
21063 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
21064
21065 echo "${as_me:-configure}:21065: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
21066
21067 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
21068
21069 echo "${as_me:-configure}:21069: testing ...checking LIBS $LIBS ..." 1>&5
21070
21071 cf_rpath_dst=
21072 for cf_rpath_src in $LIBS
21073 do
21074 case $cf_rpath_src in
21075 (-L*)
21076
21077 # check if this refers to a directory which we will ignore
21078 cf_rpath_skip=no
21079 if test -n "$cf_rpath_list"
21080 then
21081 for cf_rpath_item in $cf_rpath_list
21082 do
21083 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
21084 then
21085 cf_rpath_skip=yes
21086 break
21087 fi
21088 done
21089 fi
21090
21091 if test "$cf_rpath_skip" = no
21092 then
21093 # transform the option
21094 if test "$LD_RPATH_OPT" = "-R " ; then
21095 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
21096 else
21097 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
21098 fi
21099
21100 # if we have not already added this, add it now
21101 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
21102 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
21103 then
21104 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
21105
21106 echo "${as_me:-configure}:21106: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
21107
21108 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
21109 fi
21110 fi
21111 ;;
21112 esac
21113 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
21114 done
21115 LIBS=$cf_rpath_dst
21116
21117 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
21118
21119 echo "${as_me:-configure}:21119: testing ...checked LIBS $LIBS ..." 1>&5
21120
21121 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
21122
21123 echo "${as_me:-configure}:21123: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
21124
21125 else
21126 echo "$as_me:21126: result: no" >&5
21127 echo "${ECHO_T}no" >&6
21128 fi
21129
21130 fi
21131
21132 # Force plink.sh to not trim pcre's libraries, which have the same symbol
21133 # names as the system regexp.
21134 if test "$with_pcre" != no
21135 then
21136 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
21137 fi
21138
21139 ### output xtermcfg.h, etc
21140 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in"
21141
21142 cat >confcache <<\_ACEOF
21143 # This file is a shell script that caches the results of configure
21144 # tests run on this system so they can be shared between configure
21145 # scripts and configure runs, see configure's option --config-cache.
21146 # It is not useful on other systems. If it contains results you don't
21147 # want to keep, you may remove or edit it.
21148 #
21149 # config.status only pays attention to the cache file if you give it
21150 # the --recheck option to rerun configure.
21151 #
21152 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21154 # following values.
21155
21156 _ACEOF
21157
21158 # The following way of writing the cache mishandles newlines in values,
21159 # but we know of no workaround that is simple, portable, and efficient.
21160 # So, don't put newlines in cache variables' values.
21161 # Ultrix sh set writes to stderr and can't be redirected directly,
21162 # and sets the high bit in the cache file unless we assign to the vars.
21163 {
21164 (set) 2>&1 |
21165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21166 *ac_space=\ *)
21167 # `set' does not quote correctly, so add quotes (double-quote
21168 # substitution turns \\\\ into \\, and sed turns \\ into \).
21169 sed -n \
21170 "s/'/'\\\\''/g;
21171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21172 ;;
21173 *)
21174 # `set' quotes correctly as required by POSIX, so do not add quotes.
21175 sed -n \
21176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21177 ;;
21178 esac;
21179 } |
21180 sed '
21181 t clear
21182 : clear
21183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21184 t end
21185 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21186 : end' >>confcache
21187 if cmp -s $cache_file confcache; then :; else
21188 if test -w $cache_file; then
21189 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21190 cat confcache >$cache_file
21191 else
21192 echo "not updating unwritable cache $cache_file"
21193 fi
21194 fi
21195 rm -f confcache
21196
21197 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21198 # Let make expand exec_prefix.
21199 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21200
21201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21203 # trailing colons and then remove the whole line if VPATH becomes empty
21204 # (actually we leave an empty line to preserve line numbers).
21205 if test "x$srcdir" = x.; then
21206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21207 s/:*\$(srcdir):*/:/;
21208 s/:*\${srcdir}:*/:/;
21209 s/:*@srcdir@:*/:/;
21210 s/^\([^=]*=[ ]*\):*/\1/;
21211 s/:*$//;
21212 s/^[^=]*=[ ]*$//;
21213 }'
21214 fi
21215
21216 DEFS=-DHAVE_CONFIG_H
21217
21218 : ${CONFIG_STATUS=./config.status}
21219 ac_clean_files_save=$ac_clean_files
21220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21221 { echo "$as_me:21221: creating $CONFIG_STATUS" >&5
21222 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21223 cat >$CONFIG_STATUS <<_ACEOF
21224 #! $SHELL
21225 # Generated automatically by configure.
21226 # Run this file to recreate the current configuration.
21227 # Compiler output produced by configure, useful for debugging
21228 # configure, is in config.log if it exists.
21229
21230 debug=false
21231 SHELL=\${CONFIG_SHELL-$SHELL}
21232 ac_cs_invocation="\$0 \$@"
21233
21234 _ACEOF
21235
21236 cat >>$CONFIG_STATUS <<\_ACEOF
21237 # Be Bourne compatible
21238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21239 emulate sh
21240 NULLCMD=:
21241 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21242 set -o posix
21243 fi
21244
21245 # Name of the executable.
21246 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21247
21248 if expr a : '\(a\)' >/dev/null 2>&1; then
21249 as_expr=expr
21250 else
21251 as_expr=false
21252 fi
21253
21254 rm -f conf$$ conf$$.exe conf$$.file
21255 echo >conf$$.file
21256 if ln -s conf$$.file conf$$ 2>/dev/null; then
21257 # We could just check for DJGPP; but this test a) works b) is more generic
21258 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21259 if test -f conf$$.exe; then
21260 # Don't use ln at all; we don't have any links
21261 as_ln_s='cp -p'
21262 else
21263 as_ln_s='ln -s'
21264 fi
21265 elif ln conf$$.file conf$$ 2>/dev/null; then
21266 as_ln_s=ln
21267 else
21268 as_ln_s='cp -p'
21269 fi
21270 rm -f conf$$ conf$$.exe conf$$.file
21271
21272 as_executable_p="test -f"
21273
21274 # Support unset when possible.
21275 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21276 as_unset=unset
21277 else
21278 as_unset=false
21279 fi
21280
21281 # NLS nuisances.
21282 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21283 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21284 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21285 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21286 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21287 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21288 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21289 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21290
21291 # IFS
21292 # We need space, tab and new line, in precisely that order.
21293 as_nl='
21294 '
21295 IFS=" $as_nl"
21296
21297 # CDPATH.
21298 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21299
21300 exec 6>&1
21301
21302 _ACEOF
21303
21304 # Files that config.status was made for.
21305 if test -n "$ac_config_files"; then
21306 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21307 fi
21308
21309 if test -n "$ac_config_headers"; then
21310 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21311 fi
21312
21313 if test -n "$ac_config_links"; then
21314 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21315 fi
21316
21317 if test -n "$ac_config_commands"; then
21318 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21319 fi
21320
21321 cat >>$CONFIG_STATUS <<\EOF
21322
21323 ac_cs_usage="\
21324 \`$as_me' instantiates files from templates according to the
21325 current configuration.
21326
21327 Usage: $0 [OPTIONS] [FILE]...
21328
21329 -h, --help print this help, then exit
21330 -V, --version print version number, then exit
21331 -d, --debug don't remove temporary files
21332 --recheck update $as_me by reconfiguring in the same conditions
21333 --file=FILE[:TEMPLATE]
21334 instantiate the configuration file FILE
21335 --header=FILE[:TEMPLATE]
21336 instantiate the configuration header FILE
21337
21338 Configuration files:
21339 $config_files
21340
21341 Configuration headers:
21342 $config_headers
21343
21344 Report bugs to <dickey@invisible-island.net>."
21345 EOF
21346
21347 cat >>$CONFIG_STATUS <<EOF
21348 ac_cs_version="\\
21349 config.status
21350 configured by $0, generated by GNU Autoconf 2.52.20150926,
21351 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21352
21353 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21354 Free Software Foundation, Inc.
21355 This config.status script is free software; the Free Software Foundation
21356 gives unlimited permission to copy, distribute and modify it."
21357 srcdir=$srcdir
21358 INSTALL="$INSTALL"
21359 EOF
21360
21361 cat >>$CONFIG_STATUS <<\EOF
21362 # If no file are specified by the user, then we need to provide default
21363 # value. By we need to know if files were specified by the user.
21364 ac_need_defaults=:
21365 while test $# != 0
21366 do
21367 case $1 in
21368 --*=*)
21369 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21370 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21371 shift
21372 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
21373 shift
21374 ;;
21375 -*);;
21376 *) # This is not an option, so the user has probably given explicit
21377 # arguments.
21378 ac_need_defaults=false;;
21379 esac
21380
21381 case $1 in
21382 # Handling of the options.
21383 EOF
21384 cat >>$CONFIG_STATUS <<EOF
21385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21386 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
21387 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
21388 EOF
21389 cat >>$CONFIG_STATUS <<\EOF
21390 --version | --vers* | -V )
21391 echo "$ac_cs_version"; exit 0 ;;
21392 --he | --h)
21393 # Conflict between --help and --header
21394 { { echo "$as_me:21394: error: ambiguous option: $1
21395 Try \`$0 --help' for more information." >&5
21396 echo "$as_me: error: ambiguous option: $1
21397 Try \`$0 --help' for more information." >&2;}
21398 { (exit 1); exit 1; }; };;
21399 --help | --hel | -h )
21400 echo "$ac_cs_usage"; exit 0 ;;
21401 --debug | --d* | -d )
21402 debug=: ;;
21403 --file | --fil | --fi | --f )
21404 shift
21405 CONFIG_FILES="$CONFIG_FILES $1"
21406 ac_need_defaults=false;;
21407 --header | --heade | --head | --hea )
21408 shift
21409 CONFIG_HEADERS="$CONFIG_HEADERS $1"
21410 ac_need_defaults=false;;
21411
21412 # This is an error.
21413 -*) { { echo "$as_me:21413: error: unrecognized option: $1
21414 Try \`$0 --help' for more information." >&5
21415 echo "$as_me: error: unrecognized option: $1
21416 Try \`$0 --help' for more information." >&2;}
21417 { (exit 1); exit 1; }; } ;;
21418
21419 *) ac_config_targets="$ac_config_targets $1" ;;
21420
21421 esac
21422 shift
21423 done
21424
21425 exec 5>>config.log
21426 cat >&5 << _ACEOF
21427
21428 ## ----------------------- ##
21429 ## Running config.status. ##
21430 ## ----------------------- ##
21431
21432 This file was extended by $as_me 2.52.20150926, executed with
21433 CONFIG_FILES = $CONFIG_FILES
21434 CONFIG_HEADERS = $CONFIG_HEADERS
21435 CONFIG_LINKS = $CONFIG_LINKS
21436 CONFIG_COMMANDS = $CONFIG_COMMANDS
21437 > $ac_cs_invocation
21438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21439
21440 _ACEOF
21441 EOF
21442
21443 cat >>$CONFIG_STATUS <<\EOF
21444 for ac_config_target in $ac_config_targets
21445 do
21446 case "$ac_config_target" in
21447 # Handling of arguments.
21448 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21449 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;;
21450 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;;
21451 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
21452 *) { { echo "$as_me:21452: error: invalid argument: $ac_config_target" >&5
21453 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21454 { (exit 1); exit 1; }; };;
21455 esac
21456 done
21457
21458 # If the user did not use the arguments to specify the items to instantiate,
21459 # then the envvar interface is used. Set only those that are not.
21460 # We use the long form for the default assignment because of an extremely
21461 # bizarre bug on SunOS 4.1.3.
21462 if $ac_need_defaults; then
21463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21465 fi
21466
21467 # Create a temporary directory, and hook for its removal unless debugging.
21468 $debug ||
21469 {
21470 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21471 trap '{ (exit 1); exit 1; }' 1 2 13 15
21472 }
21473
21474 # Create a (secure) tmp directory for tmp files.
21475 : ${TMPDIR=/tmp}
21476 {
21477 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21478 test -n "$tmp" && test -d "$tmp"
21479 } ||
21480 {
21481 tmp=$TMPDIR/cs$$-$RANDOM
21482 (umask 077 && mkdir $tmp)
21483 } ||
21484 {
21485 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21486 { (exit 1); exit 1; }
21487 }
21488
21489 EOF
21490
21491 cat >>$CONFIG_STATUS <<EOF
21492
21493 #
21494 # CONFIG_FILES section.
21495 #
21496
21497 # No need to generate the scripts if there are no CONFIG_FILES.
21498 # This happens for instance when ./config.status config.h
21499 if test -n "\$CONFIG_FILES"; then
21500 # Protect against being on the right side of a sed subst in config.status.
21501 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21502 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21503 s,@SHELL@,$SHELL,;t t
21504 s,@exec_prefix@,$exec_prefix,;t t
21505 s,@prefix@,$prefix,;t t
21506 s,@program_transform_name@,$program_transform_name,;t t
21507 s,@bindir@,$bindir,;t t
21508 s,@sbindir@,$sbindir,;t t
21509 s,@libexecdir@,$libexecdir,;t t
21510 s,@datarootdir@,$datarootdir,;t t
21511 s,@datadir@,$datadir,;t t
21512 s,@sysconfdir@,$sysconfdir,;t t
21513 s,@sharedstatedir@,$sharedstatedir,;t t
21514 s,@localstatedir@,$localstatedir,;t t
21515 s,@libdir@,$libdir,;t t
21516 s,@includedir@,$includedir,;t t
21517 s,@oldincludedir@,$oldincludedir,;t t
21518 s,@infodir@,$infodir,;t t
21519 s,@mandir@,$mandir,;t t
21520 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21521 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21522 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21523 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21524 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21525 s,@build_alias@,$build_alias,;t t
21526 s,@host_alias@,$host_alias,;t t
21527 s,@target_alias@,$target_alias,;t t
21528 s,@ECHO_C@,$ECHO_C,;t t
21529 s,@ECHO_N@,$ECHO_N,;t t
21530 s,@ECHO_T@,$ECHO_T,;t t
21531 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21532 s,@DEFS@,$DEFS,;t t
21533 s,@LIBS@,$LIBS,;t t
21534 s,@build@,$build,;t t
21535 s,@build_cpu@,$build_cpu,;t t
21536 s,@build_vendor@,$build_vendor,;t t
21537 s,@build_os@,$build_os,;t t
21538 s,@host@,$host,;t t
21539 s,@host_cpu@,$host_cpu,;t t
21540 s,@host_vendor@,$host_vendor,;t t
21541 s,@host_os@,$host_os,;t t
21542 s,@CC@,$CC,;t t
21543 s,@CFLAGS@,$CFLAGS,;t t
21544 s,@LDFLAGS@,$LDFLAGS,;t t
21545 s,@CPPFLAGS@,$CPPFLAGS,;t t
21546 s,@ac_ct_CC@,$ac_ct_CC,;t t
21547 s,@EXEEXT@,$EXEEXT,;t t
21548 s,@OBJEXT@,$OBJEXT,;t t
21549 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21550 s,@CPP@,$CPP,;t t
21551 s,@AWK@,$AWK,;t t
21552 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21553 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21554 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21555 s,@LN_S@,$LN_S,;t t
21556 s,@LINT@,$LINT,;t t
21557 s,@LINT_OPTS@,$LINT_OPTS,;t t
21558 s,@APP_CLASS@,$APP_CLASS,;t t
21559 s,@APPSDIR@,$APPSDIR,;t t
21560 s,@no_appsdir@,$no_appsdir,;t t
21561 s,@ICON_NAME@,$ICON_NAME,;t t
21562 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t
21563 s,@PIXMAPDIR@,$PIXMAPDIR,;t t
21564 s,@no_pixmapdir@,$no_pixmapdir,;t t
21565 s,@ICONDIR@,$ICONDIR,;t t
21566 s,@no_icondir@,$no_icondir,;t t
21567 s,@ICON_FORMAT@,$ICON_FORMAT,;t t
21568 s,@ICON_THEME@,$ICON_THEME,;t t
21569 s,@ICON_LIST@,$ICON_LIST,;t t
21570 s,@desktop_utils@,$desktop_utils,;t t
21571 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
21572 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t
21573 s,@XTERM_PATH@,$XTERM_PATH,;t t
21574 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
21575 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
21576 s,@X_CFLAGS@,$X_CFLAGS,;t t
21577 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21578 s,@X_LIBS@,$X_LIBS,;t t
21579 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21580 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21581 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21582 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t
21583 s,@IMAKE@,$IMAKE,;t t
21584 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
21585 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
21586 s,@GROFF_PATH@,$GROFF_PATH,;t t
21587 s,@NROFF_PATH@,$NROFF_PATH,;t t
21588 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
21589 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
21590 s,@cf_man2html@,$cf_man2html,;t t
21591 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
21592 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
21593 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
21594 s,@default_termid@,$default_termid,;t t
21595 s,@default_TERM@,$default_TERM,;t t
21596 s,@backarrow_is_bs@,$backarrow_is_bs,;t t
21597 s,@backarrow_is_erase@,$backarrow_is_erase,;t t
21598 s,@delete_is_del@,$delete_is_del,;t t
21599 s,@initial_erase@,$initial_erase,;t t
21600 s,@alt_sends_esc@,$alt_sends_esc,;t t
21601 s,@meta_sends_esc@,$meta_sends_esc,;t t
21602 s,@cf_tic_prog@,$cf_tic_prog,;t t
21603 s,@no_ticprog@,$no_ticprog,;t t
21604 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
21605 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
21606 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
21607 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
21608 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
21609 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
21610 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
21611 s,@LUIT@,$LUIT,;t t
21612 s,@ECHO_LT@,$ECHO_LT,;t t
21613 s,@ECHO_LD@,$ECHO_LD,;t t
21614 s,@RULE_CC@,$RULE_CC,;t t
21615 s,@SHOW_CC@,$SHOW_CC,;t t
21616 s,@ECHO_CC@,$ECHO_CC,;t t
21617 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21618 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
21619 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
21620 s,@EXTRASRCS@,$EXTRASRCS,;t t
21621 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
21622 s,@MAY_SETUID@,$MAY_SETUID,;t t
21623 s,@NOT_SETUID@,$NOT_SETUID,;t t
21624 s,@CTAGS@,$CTAGS,;t t
21625 s,@ETAGS@,$ETAGS,;t t
21626 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21627 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21628 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21629 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21630 CEOF
21631
21632 EOF
21633
21634 cat >>$CONFIG_STATUS <<\EOF
21635 # Split the substitutions into bite-sized pieces for seds with
21636 # small command number limits, like on Digital OSF/1 and HP-UX.
21637 ac_max_sed_lines=48
21638 ac_sed_frag=1 # Number of current file.
21639 ac_beg=1 # First line for current file.
21640 ac_end=$ac_max_sed_lines # Line after last line for current file.
21641 ac_more_lines=:
21642 ac_sed_cmds=
21643 while $ac_more_lines; do
21644 if test $ac_beg -gt 1; then
21645 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21646 else
21647 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21648 fi
21649 if test ! -s $tmp/subs.frag; then
21650 ac_more_lines=false
21651 else
21652 # The purpose of the label and of the branching condition is to
21653 # speed up the sed processing (if there are no `@' at all, there
21654 # is no need to browse any of the substitutions).
21655 # These are the two extra sed commands mentioned above.
21656 (echo ':t
21657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21658 # It is possible to make a multiline substitution using escaped newlines.
21659 # Ensure that we do not split the substitution between script fragments.
21660 ac_BEG=$ac_end
21661 ac_END=`expr $ac_end + $ac_max_sed_lines`
21662 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
21663 if test -s $tmp/subs.next; then
21664 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
21665 if test ! -s $tmp/subs.edit; then
21666 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
21667 if test ! -s $tmp/subs.edit; then
21668 if test $ac_beg -gt 1; then
21669 ac_end=`expr $ac_end - 1`
21670 continue
21671 fi
21672 fi
21673 fi
21674 fi
21675
21676 if test -z "$ac_sed_cmds"; then
21677 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21678 else
21679 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21680 fi
21681 ac_sed_frag=`expr $ac_sed_frag + 1`
21682 ac_beg=$ac_end
21683 ac_end=`expr $ac_end + $ac_max_sed_lines`
21684 fi
21685 done
21686 if test -z "$ac_sed_cmds"; then
21687 ac_sed_cmds=cat
21688 fi
21689 fi # test -n "$CONFIG_FILES"
21690
21691 EOF
21692 cat >>$CONFIG_STATUS <<\EOF
21693 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21695 case $ac_file in
21696 - | *:- | *:-:* ) # input from stdin
21697 cat >$tmp/stdin
21698 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21700 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21701 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21702 * ) ac_file_in=$ac_file.in ;;
21703 esac
21704
21705 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21706 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21707 X"$ac_file" : 'X\(//\)[^/]' \| \
21708 X"$ac_file" : 'X\(//\)$' \| \
21709 X"$ac_file" : 'X\(/\)' \| \
21710 . : '\(.\)' 2>/dev/null ||
21711 echo X"$ac_file" |
21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21714 /^X\(\/\/\)$/{ s//\1/; q; }
21715 /^X\(\/\).*/{ s//\1/; q; }
21716 s/.*/./; q'`
21717 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21718 { case "$ac_dir" in
21719 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21720 *) as_incr_dir=.;;
21721 esac
21722 as_dummy="$ac_dir"
21723 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21724 case $as_mkdir_dir in
21725 # Skip DOS drivespec
21726 ?:) as_incr_dir=$as_mkdir_dir ;;
21727 *)
21728 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21729 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21730 ;;
21731 esac
21732 done; }
21733
21734 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21735 # A "../" for each directory in $ac_dir_suffix.
21736 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21737 else
21738 ac_dir_suffix= ac_dots=
21739 fi
21740
21741 case $srcdir in
21742 .) ac_srcdir=.
21743 if test -z "$ac_dots"; then
21744 ac_top_srcdir=.
21745 else
21746 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21747 fi ;;
21748 [\\/]* | ?:[\\/]* )
21749 ac_srcdir=$srcdir$ac_dir_suffix;
21750 ac_top_srcdir=$srcdir ;;
21751 *) # Relative path.
21752 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21753 ac_top_srcdir=$ac_dots$srcdir ;;
21754 esac
21755
21756 case $INSTALL in
21757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21758 *) ac_INSTALL=$ac_dots$INSTALL ;;
21759 esac
21760
21761 if test x"$ac_file" != x-; then
21762 { echo "$as_me:21762: creating $ac_file" >&5
21763 echo "$as_me: creating $ac_file" >&6;}
21764 rm -f "$ac_file"
21765 fi
21766 # Let's still pretend it is `configure' which instantiates (i.e., don't
21767 # use $as_me), people would be surprised to read:
21768 # /* config.h. Generated automatically by config.status. */
21769 configure_input="Generated automatically from `echo $ac_file_in |
21770 sed 's,.*/,,'` by configure."
21771
21772 # First look for the input files in the build tree, otherwise in the
21773 # src tree.
21774 ac_file_inputs=`IFS=:
21775 for f in $ac_file_in; do
21776 case $f in
21777 -) echo $tmp/stdin ;;
21778 [\\/$]*)
21779 # Absolute (can't be DOS-style, as IFS=:)
21780 test -f "$f" || { { echo "$as_me:21780: error: cannot find input file: $f" >&5
21781 echo "$as_me: error: cannot find input file: $f" >&2;}
21782 { (exit 1); exit 1; }; }
21783 echo $f;;
21784 *) # Relative
21785 if test -f "$f"; then
21786 # Build tree
21787 echo $f
21788 elif test -f "$srcdir/$f"; then
21789 # Source tree
21790 echo $srcdir/$f
21791 else
21792 # /dev/null tree
21793 { { echo "$as_me:21793: error: cannot find input file: $f" >&5
21794 echo "$as_me: error: cannot find input file: $f" >&2;}
21795 { (exit 1); exit 1; }; }
21796 fi;;
21797 esac
21798 done` || { (exit 1); exit 1; }
21799 EOF
21800 cat >>$CONFIG_STATUS <<\EOF
21801 ac_warn_datarootdir=no
21802 if test x"$ac_file" != x-; then
21803 for ac_item in $ac_file_inputs
21804 do
21805 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
21806 if test -n "$ac_seen"; then
21807 ac_used=`grep '@datarootdir@' $ac_item`
21808 if test -z "$ac_used"; then
21809 { echo "$as_me:21809: WARNING: datarootdir was used implicitly but not set:
21810 $ac_seen" >&5
21811 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
21812 $ac_seen" >&2;}
21813 ac_warn_datarootdir=yes
21814 fi
21815 fi
21816 ac_seen=`grep '${datarootdir}' $ac_item`
21817 if test -n "$ac_seen"; then
21818 { echo "$as_me:21818: WARNING: datarootdir was used explicitly but not set:
21819 $ac_seen" >&5
21820 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
21821 $ac_seen" >&2;}
21822 ac_warn_datarootdir=yes
21823 fi
21824 done
21825 fi
21826
21827 if test "x$ac_warn_datarootdir" = xyes; then
21828 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
21829 fi
21830
21831 EOF
21832 cat >>$CONFIG_STATUS <<EOF
21833 sed "$ac_vpsub
21834 $extrasub
21835 EOF
21836 cat >>$CONFIG_STATUS <<\EOF
21837 :t
21838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21839 s,@configure_input@,$configure_input,;t t
21840 s,@srcdir@,$ac_srcdir,;t t
21841 s,@top_srcdir@,$ac_top_srcdir,;t t
21842 s,@INSTALL@,$ac_INSTALL,;t t
21843 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21844 rm -f $tmp/stdin
21845 if test x"$ac_file" != x-; then
21846 cp $tmp/out $ac_file
21847
21848 for ac_name in prefix exec_prefix datarootdir
21849 do
21850 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
21851 if test -n "$ac_seen"; then
21852 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
21853 if test -z "$ac_init"; then
21854 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
21855 { echo "$as_me:21855: WARNING: Variable $ac_name is used but was not set:
21856 $ac_seen" >&5
21857 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
21858 $ac_seen" >&2;}
21859 fi
21860 fi
21861 done
21862 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
21863 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
21864 if test -s $tmp/out; then
21865 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
21866 { echo "$as_me:21866: WARNING: Some variables may not be substituted:
21867 $ac_seen" >&5
21868 echo "$as_me: WARNING: Some variables may not be substituted:
21869 $ac_seen" >&2;}
21870 fi
21871 else
21872 cat $tmp/out
21873 fi
21874 rm -f $tmp/out
21875
21876 done
21877 EOF
21878 cat >>$CONFIG_STATUS <<\EOF
21879
21880 #
21881 # CONFIG_HEADER section.
21882 #
21883
21884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21886 #
21887 # ac_d sets the value in "#define NAME VALUE" lines.
21888 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21889 ac_dB='[ ].*$,\1#\2'
21890 ac_dC=' '
21891 ac_dD=',;t'
21892 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21893 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21894 ac_iB='\([ ]\),\1#\2define\3'
21895 ac_iC=' '
21896 ac_iD='\4,;t'
21897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21898 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21899 ac_uB='$,\1#\2define\3'
21900 ac_uC=' '
21901 ac_uD=',;t'
21902
21903 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21905 case $ac_file in
21906 - | *:- | *:-:* ) # input from stdin
21907 cat >$tmp/stdin
21908 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21910 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21912 * ) ac_file_in=$ac_file.in ;;
21913 esac
21914
21915 test x"$ac_file" != x- && { echo "$as_me:21915: creating $ac_file" >&5
21916 echo "$as_me: creating $ac_file" >&6;}
21917
21918 # First look for the input files in the build tree, otherwise in the
21919 # src tree.
21920 ac_file_inputs=`IFS=:
21921 for f in $ac_file_in; do
21922 case $f in
21923 -) echo $tmp/stdin ;;
21924 [\\/$]*)
21925 # Absolute (can't be DOS-style, as IFS=:)
21926 test -f "$f" || { { echo "$as_me:21926: error: cannot find input file: $f" >&5
21927 echo "$as_me: error: cannot find input file: $f" >&2;}
21928 { (exit 1); exit 1; }; }
21929 echo $f;;
21930 *) # Relative
21931 if test -f "$f"; then
21932 # Build tree
21933 echo $f
21934 elif test -f "$srcdir/$f"; then
21935 # Source tree
21936 echo $srcdir/$f
21937 else
21938 # /dev/null tree
21939 { { echo "$as_me:21939: error: cannot find input file: $f" >&5
21940 echo "$as_me: error: cannot find input file: $f" >&2;}
21941 { (exit 1); exit 1; }; }
21942 fi;;
21943 esac
21944 done` || { (exit 1); exit 1; }
21945 # Remove the trailing spaces.
21946 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21947
21948 EOF
21949
21950 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21951 # `conftest.undefs', that substitutes the proper values into
21952 # config.h.in to produce config.h. The first handles `#define'
21953 # templates, and the second `#undef' templates.
21954 # And first: Protect against being on the right side of a sed subst in
21955 # config.status. Protect against being in an unquoted here document
21956 # in config.status.
21957 rm -f conftest.defines conftest.undefs
21958 # Using a here document instead of a string reduces the quoting nightmare.
21959 # Putting comments in sed scripts is not portable.
21960 #
21961 # `end' is used to avoid that the second main sed command (meant for
21962 # 0-ary CPP macros) applies to n-ary macro definitions.
21963 # See the Autoconf documentation for `clear'.
21964 cat >confdef2sed.sed <<\EOF
21965 s/[\\&,]/\\&/g
21966 s,[\\$`],\\&,g
21967 t clear
21968 : clear
21969 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
21970 t end
21971 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21972 : end
21973 EOF
21974 # If some macros were called several times there might be several times
21975 # the same #defines, which is useless. Nevertheless, we may not want to
21976 # sort them, since we want the *last* AC-DEFINE to be honored.
21977 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21978 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21979 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
21980 rm -f confdef2sed.sed
21981
21982 # This sed command replaces #undef with comments. This is necessary, for
21983 # example, in the case of _POSIX_SOURCE, which is predefined and required
21984 # on some systems where configure will not decide to define it.
21985 cat >>conftest.undefs <<\EOF
21986 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21987 EOF
21988
21989 # Break up conftest.defines because some shells have a limit on the size
21990 # of here documents, and old seds have small limits too (100 cmds).
21991 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21992 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21993 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21994 echo ' :' >>$CONFIG_STATUS
21995 rm -f conftest.tail
21996 while grep . conftest.defines >/dev/null
21997 do
21998 # Write a limited-size here document to $tmp/defines.sed.
21999 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22000 # Speed up: don't consider the non `#define' lines.
22001 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22002 # Work around the forget-to-reset-the-flag bug.
22003 echo 't clr' >>$CONFIG_STATUS
22004 echo ': clr' >>$CONFIG_STATUS
22005 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22006 echo 'CEOF
22007 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22008 rm -f $tmp/in
22009 mv $tmp/out $tmp/in
22010 ' >>$CONFIG_STATUS
22011 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22012 rm -f conftest.defines
22013 mv conftest.tail conftest.defines
22014 done
22015 rm -f conftest.defines
22016 echo ' fi # egrep' >>$CONFIG_STATUS
22017 echo >>$CONFIG_STATUS
22018
22019 # Break up conftest.undefs because some shells have a limit on the size
22020 # of here documents, and old seds have small limits too (100 cmds).
22021 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22022 rm -f conftest.tail
22023 while grep . conftest.undefs >/dev/null
22024 do
22025 # Write a limited-size here document to $tmp/undefs.sed.
22026 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22027 # Speed up: don't consider the non `#undef'
22028 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22029 # Work around the forget-to-reset-the-flag bug.
22030 echo 't clr' >>$CONFIG_STATUS
22031 echo ': clr' >>$CONFIG_STATUS
22032 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22033 echo 'CEOF
22034 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22035 rm -f $tmp/in
22036 mv $tmp/out $tmp/in
22037 ' >>$CONFIG_STATUS
22038 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22039 rm -f conftest.undefs
22040 mv conftest.tail conftest.undefs
22041 done
22042 rm -f conftest.undefs
22043
22044 cat >>$CONFIG_STATUS <<\EOF
22045 # Let's still pretend it is `configure' which instantiates (i.e., don't
22046 # use $as_me), people would be surprised to read:
22047 # /* config.h. Generated automatically by config.status. */
22048 if test x"$ac_file" = x-; then
22049 echo "/* Generated automatically by configure. */" >$tmp/config.h
22050 else
22051 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
22052 fi
22053 cat $tmp/in >>$tmp/config.h
22054 rm -f $tmp/in
22055 if test x"$ac_file" != x-; then
22056 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22057 { echo "$as_me:22057: $ac_file is unchanged" >&5
22058 echo "$as_me: $ac_file is unchanged" >&6;}
22059 else
22060 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$ac_file" : 'X\(//\)[^/]' \| \
22062 X"$ac_file" : 'X\(//\)$' \| \
22063 X"$ac_file" : 'X\(/\)' \| \
22064 . : '\(.\)' 2>/dev/null ||
22065 echo X"$ac_file" |
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068 /^X\(\/\/\)$/{ s//\1/; q; }
22069 /^X\(\/\).*/{ s//\1/; q; }
22070 s/.*/./; q'`
22071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22072 { case "$ac_dir" in
22073 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22074 *) as_incr_dir=.;;
22075 esac
22076 as_dummy="$ac_dir"
22077 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22078 case $as_mkdir_dir in
22079 # Skip DOS drivespec
22080 ?:) as_incr_dir=$as_mkdir_dir ;;
22081 *)
22082 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22083 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22084 ;;
22085 esac
22086 done; }
22087
22088 fi
22089 rm -f $ac_file
22090 mv $tmp/config.h $ac_file
22091 fi
22092 else
22093 cat $tmp/config.h
22094 rm -f $tmp/config.h
22095 fi
22096 done
22097 EOF
22098
22099 cat >>$CONFIG_STATUS <<\EOF
22100
22101 { (exit 0); exit 0; }
22102 EOF
22103 chmod +x $CONFIG_STATUS
22104 ac_clean_files=$ac_clean_files_save
22105
22106 # configure is writing to config.log, and then calls config.status.
22107 # config.status does its own redirection, appending to config.log.
22108 # Unfortunately, on DOS this fails, as config.log is still kept open
22109 # by configure, so config.status won't be able to write to it; its
22110 # output is simply discarded. So we exec the FD to /dev/null,
22111 # effectively closing config.log, so it can be properly (re)opened and
22112 # appended to by config.status. When coming back to configure, we
22113 # need to make the FD available again.
22114 if test "$no_create" != yes; then
22115 ac_cs_success=:
22116 exec 5>/dev/null
22117 $SHELL $CONFIG_STATUS || ac_cs_success=false
22118 exec 5>>config.log
22119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22120 # would make configure fail if this is the last instruction.
22121 $ac_cs_success || { (exit 1); exit 1; }
22122 fi
22123
22124