configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20121002.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS=" $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="charproc.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
144
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
164
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datarootdir='${prefix}/share'
174 datadir='${datarootdir}'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${datarootdir}/info'
182 mandir='${datarootdir}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
234 | --dataroo | --dataro | --datar)
235 ac_prev=datarootdir ;;
236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
238 datarootdir=$ac_optarg ;;
239
240 -disable-* | --disable-*)
241 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
242 # Reject names that are not valid shell variable names.
243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
245 { (exit 1); exit 1; }; }
246 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
247 eval "enable_$ac_feature=no" ;;
248
249 -enable-* | --enable-*)
250 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
251 # Reject names that are not valid shell variable names.
252 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
253 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
254 { (exit 1); exit 1; }; }
255 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
256 case $ac_option in
257 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
258 *) ac_optarg=yes ;;
259 esac
260 eval "enable_$ac_feature='$ac_optarg'" ;;
261
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix=$ac_optarg ;;
270
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
273 with_gas=yes ;;
274
275 -help | --help | --hel | --he | -h)
276 ac_init_help=long ;;
277 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
278 ac_init_help=recursive ;;
279 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
280 ac_init_help=short ;;
281
282 -host | --host | --hos | --ho)
283 ac_prev=host_alias ;;
284 -host=* | --host=* | --hos=* | --ho=*)
285 host_alias=$ac_optarg ;;
286
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir=$ac_optarg ;;
293
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
295 ac_prev=infodir ;;
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir=$ac_optarg ;;
298
299 -libdir | --libdir | --libdi | --libd)
300 ac_prev=libdir ;;
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 libdir=$ac_optarg ;;
303
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir=$ac_optarg ;;
310
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir=$ac_optarg ;;
319
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
321 ac_prev=mandir ;;
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 mandir=$ac_optarg ;;
324
325 -nfp | --nfp | --nf)
326 # Obsolete; use --without-fp.
327 with_fp=no ;;
328
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
330 | --no-cr | --no-c)
331 no_create=yes ;;
332
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
335 no_recursion=yes ;;
336
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir=$ac_optarg ;;
345
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
347 ac_prev=prefix ;;
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 prefix=$ac_optarg ;;
350
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix=$ac_optarg ;;
357
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix=$ac_optarg ;;
364
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name=$ac_optarg ;;
381
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
384 silent=yes ;;
385
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
387 ac_prev=sbindir ;;
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
389 | --sbi=* | --sb=*)
390 sbindir=$ac_optarg ;;
391
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
395 | --sha | --sh)
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
400 | --sha=* | --sh=*)
401 sharedstatedir=$ac_optarg ;;
402
403 -site | --site | --sit)
404 ac_prev=site ;;
405 -site=* | --site=* | --sit=*)
406 site=$ac_optarg ;;
407
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
409 ac_prev=srcdir ;;
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 srcdir=$ac_optarg ;;
412
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir=$ac_optarg ;;
419
420 -target | --target | --targe | --targ | --tar | --ta | --t)
421 ac_prev=target_alias ;;
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target_alias=$ac_optarg ;;
424
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
426 verbose=yes ;;
427
428 -version | --version | --versio | --versi | --vers | -V)
429 ac_init_version=: ;;
430
431 -with-* | --with-*)
432 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
433 # Reject names that are not valid shell variable names.
434 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
435 { echo "$as_me: error: invalid package name: $ac_package" >&2
436 { (exit 1); exit 1; }; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 case $ac_option in
439 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
440 *) ac_optarg=yes ;;
441 esac
442 eval "with_$ac_package='$ac_optarg'" ;;
443
444 -without-* | --without-*)
445 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo $ac_package | sed 's/-/_/g'`
451 eval "with_$ac_package=no" ;;
452
453 --x)
454 # Obsolete; use --with-x.
455 with_x=yes ;;
456
457 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
458 | --x-incl | --x-inc | --x-in | --x-i)
459 ac_prev=x_includes ;;
460 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
461 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
462 x_includes=$ac_optarg ;;
463
464 -x-libraries | --x-libraries | --x-librarie | --x-librari \
465 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
466 ac_prev=x_libraries ;;
467 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
468 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
469 x_libraries=$ac_optarg ;;
470
471 -*) { echo "$as_me: error: unrecognized option: $ac_option
472 Try \`$0 --help' for more information." >&2
473 { (exit 1); exit 1; }; }
474 ;;
475
476 *=*)
477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
478 # Reject names that are not valid shell variable names.
479 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
480 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
481 { (exit 1); exit 1; }; }
482 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
483 eval "$ac_envvar='$ac_optarg'"
484 export $ac_envvar ;;
485
486 *)
487 # FIXME: should be removed in autoconf 3.0.
488 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
492 ;;
493
494 esac
495 done
496
497 if test -n "$ac_prev"; then
498 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
499 { echo "$as_me: error: missing argument to $ac_option" >&2
500 { (exit 1); exit 1; }; }
501 fi
502
503 # Be sure to have absolute paths.
504 for ac_var in exec_prefix prefix
505 do
506 eval ac_val=$`echo $ac_var`
507 case $ac_val in
508 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
509 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
510 { (exit 1); exit 1; }; };;
511 esac
512 done
513
514 # Be sure to have absolute paths.
515 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
516 localstatedir libdir includedir oldincludedir infodir mandir
517 do
518 eval ac_val=$`echo $ac_var`
519 case $ac_val in
520 [\\/$]* | ?:[\\/]* ) ;;
521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
522 { (exit 1); exit 1; }; };;
523 esac
524 done
525
526 # There might be people who depend on the old broken behavior: `$host'
527 # used to hold the argument of --host etc.
528 build=$build_alias
529 host=$host_alias
530 target=$target_alias
531
532 # FIXME: should be removed in autoconf 3.0.
533 if test "x$host_alias" != x; then
534 if test "x$build_alias" = x; then
535 cross_compiling=maybe
536 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
537 If a cross compiler is detected then cross compile mode will be used." >&2
538 elif test "x$build_alias" != "x$host_alias"; then
539 cross_compiling=yes
540 fi
541 fi
542
543 ac_tool_prefix=
544 test -n "$host_alias" && ac_tool_prefix=$host_alias-
545
546 test "$silent" = yes && exec 6>/dev/null
547
548 # Find the source files, if location was not specified.
549 if test -z "$srcdir"; then
550 ac_srcdir_defaulted=yes
551 # Try the directory containing this script, then its parent.
552 ac_prog=$0
553 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
554 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
555 srcdir=$ac_confdir
556 if test ! -r $srcdir/$ac_unique_file; then
557 srcdir=..
558 fi
559 else
560 ac_srcdir_defaulted=no
561 fi
562 if test ! -r $srcdir/$ac_unique_file; then
563 if test "$ac_srcdir_defaulted" = yes; then
564 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
565 { (exit 1); exit 1; }; }
566 else
567 { echo "$as_me: error: cannot find sources in $srcdir" >&2
568 { (exit 1); exit 1; }; }
569 fi
570 fi
571 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
572 ac_env_build_alias_set=${build_alias+set}
573 ac_env_build_alias_value=$build_alias
574 ac_cv_env_build_alias_set=${build_alias+set}
575 ac_cv_env_build_alias_value=$build_alias
576 ac_env_host_alias_set=${host_alias+set}
577 ac_env_host_alias_value=$host_alias
578 ac_cv_env_host_alias_set=${host_alias+set}
579 ac_cv_env_host_alias_value=$host_alias
580 ac_env_target_alias_set=${target_alias+set}
581 ac_env_target_alias_value=$target_alias
582 ac_cv_env_target_alias_set=${target_alias+set}
583 ac_cv_env_target_alias_value=$target_alias
584 ac_env_CC_set=${CC+set}
585 ac_env_CC_value=$CC
586 ac_cv_env_CC_set=${CC+set}
587 ac_cv_env_CC_value=$CC
588 ac_env_CFLAGS_set=${CFLAGS+set}
589 ac_env_CFLAGS_value=$CFLAGS
590 ac_cv_env_CFLAGS_set=${CFLAGS+set}
591 ac_cv_env_CFLAGS_value=$CFLAGS
592 ac_env_LDFLAGS_set=${LDFLAGS+set}
593 ac_env_LDFLAGS_value=$LDFLAGS
594 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
595 ac_cv_env_LDFLAGS_value=$LDFLAGS
596 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
597 ac_env_CPPFLAGS_value=$CPPFLAGS
598 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
599 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
600 ac_env_CPP_set=${CPP+set}
601 ac_env_CPP_value=$CPP
602 ac_cv_env_CPP_set=${CPP+set}
603 ac_cv_env_CPP_value=$CPP
604
605 #
606 # Report the --help message.
607 #
608 if test "$ac_init_help" = "long"; then
609 # Omit some internal or obsolete options to make the list less imposing.
610 # This message is too long to be a string in the A/UX 3.1 sh.
611 cat <<EOF
612 \`configure' configures this package to adapt to many kinds of systems.
613
614 Usage: $0 [OPTION]... [VAR=VALUE]...
615
616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
617 VAR=VALUE. See below for descriptions of some of the useful variables.
618
619 Defaults for the options are specified in brackets.
620
621 Configuration:
622 -h, --help display this help and exit
623 --help=short display options specific to this package
624 --help=recursive display the short help of all the included packages
625 -V, --version display version information and exit
626 -q, --quiet, --silent do not print \`checking...' messages
627 --cache-file=FILE cache test results in FILE [disabled]
628 -C, --config-cache alias for \`--cache-file=config.cache'
629 -n, --no-create do not create output files
630 --srcdir=DIR find the sources in DIR [configure dir or \`..']
631
632 EOF
633
634 cat <<EOF
635 Installation directories:
636 --prefix=PREFIX install architecture-independent files in PREFIX
637 [$ac_default_prefix]
638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
639 [PREFIX]
640
641 By default, \`make install' will install all the files in
642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
644 for instance \`--prefix=\$HOME'.
645
646 For better control, use the options below.
647
648 Fine tuning of the installation directories:
649 --bindir=DIR user executables [EPREFIX/bin]
650 --sbindir=DIR system admin executables [EPREFIX/sbin]
651 --libexecdir=DIR program executables [EPREFIX/libexec]
652 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
656 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
657 --libdir=DIR object code libraries [EPREFIX/lib]
658 --includedir=DIR C header files [PREFIX/include]
659 --oldincludedir=DIR C header files for non-gcc [/usr/include]
660 --infodir=DIR info documentation [DATAROOTDIR/info]
661 --mandir=DIR man documentation [DATAROOTDIR/man]
662 EOF
663
664 cat <<\EOF
665
666 Program names:
667 --program-prefix=PREFIX prepend PREFIX to installed program names
668 --program-suffix=SUFFIX append SUFFIX to installed program names
669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
670
671 X features:
672 --x-includes=DIR X include files are in DIR
673 --x-libraries=DIR X library files are in DIR
674
675 System types:
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 EOF
679 fi
680
681 if test -n "$ac_init_help"; then
682
683 cat <<\EOF
684
685 Optional Features:
686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
688
689 Optional Packages:
690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
692
693 Compile/Install Options:
694 --disable-full-tgetent disable check for full tgetent function
695 --with-app-class=XXX override X applications class (default XTerm)
696 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults)
697 --with-icon-name=XXXX override icon name (default: xterm-color)
698 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm)
699 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps)
700 --with-icondir=DIR directory in which to install icons for desktop
701 --with-icon-theme=XXX install icons into desktop theme (hicolor)
702 --disable-desktop disable install of xterm desktop files
703 --with-desktop-category=XXX one or more desktop catgories or auto
704 --with-reference=XXX program to use as permissions-reference
705 --with-xterm-symlink=XXX make symbolic link to installed xterm
706 --disable-openpty disable openpty, prefer other interfaces
707 --disable-setuid disable setuid in xterm, do not install setuid/setgid
708 --disable-setgid disable setgid in xterm, do not install setuid/setgid
709 --with-setuid=XXX use the given setuid user
710 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file
711 --with-utempter use utempter library for access to utmp
712 --with-tty-group=XXX use XXX for the tty-group
713 --with-x use the X Window System
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-xpm=DIR use Xpm library for colored icon, may specify path
716 --with-Xaw3d link with Xaw 3d library
717 --with-neXtaw link with neXT Athena library
718 --with-XawPlus link with Athena-Plus library
719 --enable-narrowproto enable narrow prototypes for X libraries
720 --disable-imake disable use of imake for definitions
721 Terminal Configuration:
722 --with-terminal-id=V set default decTerminalID (default: vt420)
723 --with-terminal-type=T set default $TERM (default: xterm)
724 --enable-backarrow-key set default backarrowKey resource (default: true)
725 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
726 --enable-delete-is-del set default deleteIsDEL resource (default: maybe)
727 --enable-alt-sends-esc set default altSendsEscape resource (default: no)
728 --enable-meta-sends-esc set default metaSendsEscape resource (default: no)
729 --with-own-terminfo=P set default $TERMINFO (default: from environment)
730 Optional Features:
731 --disable-active-icon disable X11R6.3 active-icon feature
732 --disable-ansi-color disable ANSI color
733 --disable-16-color disable 16-color support
734 --enable-256-color enable 256-color support
735 --enable-88-color enable 88-color support
736 --disable-blink-cursor disable support for blinking cursor
737 --enable-broken-osc allow broken Linux OSC-strings
738 --disable-broken-st disallow broken string-terminators
739 --disable-c1-print disallow -k8 option for printable 128-159
740 --disable-bold-color disable PC-style mapping of bold colors
741 --disable-color-class disable separate color class resources
742 --disable-color-mode disable default colorMode resource
743 --disable-highlighting disable support for color highlighting
744 --disable-doublechars disable support for double-size chars
745 --disable-boxchars disable fallback-support for box chars
746 --enable-exec-xterm enable "spawn-new-terminal" action
747 --enable-double-buffer enable double-buffering
748 --disable-freetype disable freetype library-support
749 --with-freetype-config configure script to use for FreeType
750 --with-freetype-cflags -D/-I options for compiling with FreeType
751 --with-freetype-libs -L/-l options to link FreeType
752 --enable-hp-fkeys enable support for HP-style function keys
753 --enable-sco-fkeys enable support for SCO-style function keys
754 --disable-sun-fkeys disable support for Sun-style function keys
755 --disable-fifo-lines disable FIFO-storage for saved-lines
756 --disable-i18n disable internationalization
757 --disable-initial-erase disable setup for stty erase
758 --disable-input-method disable input-method
759 --enable-load-vt-fonts enable load-vt-fonts() action
760 --enable-logging enable logging
761 --enable-logfile-exec enable exec'd logfile filter
762 --disable-maximize disable actions for iconify/deiconify/maximize/restore
763 --disable-num-lock disable NumLock keypad support
764 --disable-paste64 disable get/set base64 selection data
765 --disable-pty-handshake disable pty-handshake support
766 --enable-readline-mouse enable support for mouse in readline applications
767 --disable-regex disable regular-expression selections
768 --with-pcre use PCRE for regular-expressions
769 --disable-rightbar disable right-scrollbar support
770 --disable-samename disable check for redundant name-change
771 --disable-selection-ops disable selection-action operations
772 --disable-session-mgt disable support for session management
773 --disable-tcap-fkeys disable termcap function-keys support
774 --disable-tcap-query disable compiled-in termcap-query support
775 --disable-tek4014 disable tek4014 emulation
776 --enable-toolbar compile-in toolbar for pulldown menus
777 --disable-vt52 disable VT52 emulation
778 --disable-wide-attrs disable wide-attribute support
779 --disable-wide-chars disable wide-character support
780 --enable-16bit-chars enable 16-bit character support
781 --enable-mini-luit enable mini-luit (built-in Latin9 support)
782 --disable-luit enable luit filter (Unicode translation)
783 --enable-dabbrev enable dynamic-abbreviation support
784 --enable-dec-locator enable DECterm Locator support
785 --enable-regis-graphics enable ReGIS graphics support
786 --enable-sixel-graphics enable sixel graphics support
787 --disable-rectangles disable VT420 rectangle support
788 --disable-ziconbeep disable -ziconbeep option
789 Testing/development Options:
790 --enable-trace test: set to enable debugging traces
791 --with-dmalloc test: use Gray Watson's dmalloc library
792 --with-dbmalloc test: use Conor Cahill's dbmalloc library
793 --with-valgrind test: use valgrind
794 --disable-leaks test: free permanent memory, analyze leaks
795 --disable-echo do not display "compiling" commands
796 --enable-xmc-glitch test: enable xmc magic-cookie emulation
797 --enable-warnings test: turn on GCC compiler warnings
798 --disable-rpath-hack don't add rpath options for additional libraries
799
800 Some influential environment variables:
801 CC C compiler command
802 CFLAGS C compiler flags
803 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
804 nonstandard directory <lib dir>
805 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
806 headers in a nonstandard directory <include dir>
807 CPP C preprocessor
808
809 Use these variables to override the choices made by `configure' or to help
810 it to find libraries and programs with nonstandard names/locations.
811
812 EOF
813 fi
814
815 if test "$ac_init_help" = "recursive"; then
816 # If there are subdirs, report their specific --help.
817 ac_popdir=`pwd`
818 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
819 cd $ac_subdir
820 # A "../" for each directory in /$ac_subdir.
821 ac_dots=`echo $ac_subdir |
822 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
823
824 case $srcdir in
825 .) # No --srcdir option. We are building in place.
826 ac_sub_srcdir=$srcdir ;;
827 [\\/]* | ?:[\\/]* ) # Absolute path.
828 ac_sub_srcdir=$srcdir/$ac_subdir ;;
829 *) # Relative path.
830 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
831 esac
832
833 # Check for guested configure; otherwise get Cygnus style configure.
834 if test -f $ac_sub_srcdir/configure.gnu; then
835 echo
836 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
837 elif test -f $ac_sub_srcdir/configure; then
838 echo
839 $SHELL $ac_sub_srcdir/configure --help=recursive
840 elif test -f $ac_sub_srcdir/configure.ac ||
841 test -f $ac_sub_srcdir/configure.in; then
842 echo
843 $ac_configure --help
844 else
845 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
846 fi
847 cd $ac_popdir
848 done
849 fi
850
851 test -n "$ac_init_help" && exit 0
852 if $ac_init_version; then
853 cat <<\EOF
854
855 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
856 Free Software Foundation, Inc.
857 This configure script is free software; the Free Software Foundation
858 gives unlimited permission to copy, distribute and modify it.
859 EOF
860 exit 0
861 fi
862 exec 5>config.log
863 cat >&5 <<EOF
864 This file contains any messages produced by compilers while
865 running configure, to aid debugging if configure makes a mistake.
866
867 It was created by $as_me, which was
868 generated by GNU Autoconf 2.52.20121002. Invocation command line was
869
870 $ $0 $@
871
872 EOF
873 {
874 cat <<_ASUNAME
875 ## ---------- ##
876 ## Platform. ##
877 ## ---------- ##
878
879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
884
885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
887
888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
891 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
895
896 PATH = $PATH
897
898 _ASUNAME
899 } >&5
900
901 cat >&5 <<EOF
902 ## ------------ ##
903 ## Core tests. ##
904 ## ------------ ##
905
906 EOF
907
908 # Keep a trace of the command line.
909 # Strip out --no-create and --no-recursion so they do not pile up.
910 # Also quote any args containing shell meta-characters.
911 ac_configure_args=
912 ac_sep=
913 for ac_arg
914 do
915 case $ac_arg in
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c) ;;
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
920 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
921 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
922 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
923 ac_sep=" " ;;
924 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
925 ac_sep=" " ;;
926 esac
927 # Get rid of the leading space.
928 done
929
930 # When interrupted or exit'd, cleanup temporary files, and complete
931 # config.log. We remove comments because anyway the quotes in there
932 # would cause problems or look ugly.
933 trap 'exit_status=$?
934 # Save into config.log some information that might help in debugging.
935 echo >&5
936 echo "## ----------------- ##" >&5
937 echo "## Cache variables. ##" >&5
938 echo "## ----------------- ##" >&5
939 echo >&5
940 # The following way of writing the cache mishandles newlines in values,
941 {
942 (set) 2>&1 |
943 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
944 *ac_space=\ *)
945 sed -n \
946 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
948 ;;
949 *)
950 sed -n \
951 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
952 ;;
953 esac;
954 } >&5
955 sed "/^$/d" confdefs.h >conftest.log
956 if test -s conftest.log; then
957 echo >&5
958 echo "## ------------ ##" >&5
959 echo "## confdefs.h. ##" >&5
960 echo "## ------------ ##" >&5
961 echo >&5
962 cat conftest.log >&5
963 fi
964 (echo; echo) >&5
965 test "$ac_signal" != 0 &&
966 echo "$as_me: caught signal $ac_signal" >&5
967 echo "$as_me: exit $exit_status" >&5
968 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
969 exit $exit_status
970 ' 0
971 for ac_signal in 1 2 13 15; do
972 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
973 done
974 ac_signal=0
975
976 # confdefs.h avoids OS command line length limits that DEFS can exceed.
977 rm -rf conftest* confdefs.h
978 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
979 echo >confdefs.h
980
981 # Let the site file select an alternate cache file if it wants to.
982 # Prefer explicitly selected file to automatically selected ones.
983 if test -z "$CONFIG_SITE"; then
984 if test "x$prefix" != xNONE; then
985 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
986 else
987 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
988 fi
989 fi
990 for ac_site_file in $CONFIG_SITE; do
991 if test -r "$ac_site_file"; then
992 { echo "$as_me:992: loading site script $ac_site_file" >&5
993 echo "$as_me: loading site script $ac_site_file" >&6;}
994 cat "$ac_site_file" >&5
995 . "$ac_site_file"
996 fi
997 done
998
999 if test -r "$cache_file"; then
1000 # Some versions of bash will fail to source /dev/null (special
1001 # files actually), so we avoid doing that.
1002 if test -f "$cache_file"; then
1003 { echo "$as_me:1003: loading cache $cache_file" >&5
1004 echo "$as_me: loading cache $cache_file" >&6;}
1005 case $cache_file in
1006 [\\/]* | ?:[\\/]* ) . $cache_file;;
1007 *) . ./$cache_file;;
1008 esac
1009 fi
1010 else
1011 { echo "$as_me:1011: creating cache $cache_file" >&5
1012 echo "$as_me: creating cache $cache_file" >&6;}
1013 >$cache_file
1014 fi
1015
1016 # Check that the precious variables saved in the cache have kept the same
1017 # value.
1018 ac_cache_corrupted=false
1019 for ac_var in `(set) 2>&1 |
1020 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1022 eval ac_new_set=\$ac_env_${ac_var}_set
1023 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1024 eval ac_new_val="\$ac_env_${ac_var}_value"
1025 case $ac_old_set,$ac_new_set in
1026 set,)
1027 { echo "$as_me:1027: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1028 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1029 ac_cache_corrupted=: ;;
1030 ,set)
1031 { echo "$as_me:1031: error: \`$ac_var' was not set in the previous run" >&5
1032 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1033 ac_cache_corrupted=: ;;
1034 ,);;
1035 *)
1036 if test "x$ac_old_val" != "x$ac_new_val"; then
1037 { echo "$as_me:1037: error: \`$ac_var' has changed since the previous run:" >&5
1038 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1039 { echo "$as_me:1039: former value: $ac_old_val" >&5
1040 echo "$as_me: former value: $ac_old_val" >&2;}
1041 { echo "$as_me:1041: current value: $ac_new_val" >&5
1042 echo "$as_me: current value: $ac_new_val" >&2;}
1043 ac_cache_corrupted=:
1044 fi;;
1045 esac
1046 # Pass precious variables to config.status. It doesn't matter if
1047 # we pass some twice (in addition to the command line arguments).
1048 if test "$ac_new_set" = set; then
1049 case $ac_new_val in
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1052 ac_configure_args="$ac_configure_args '$ac_arg'"
1053 ;;
1054 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1055 ;;
1056 esac
1057 fi
1058 done
1059 if $ac_cache_corrupted; then
1060 { echo "$as_me:1060: error: changes in the environment can compromise the build" >&5
1061 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1062 { { echo "$as_me:1062: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1063 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1064 { (exit 1); exit 1; }; }
1065 fi
1066
1067 ac_ext=c
1068 ac_cpp='$CPP $CPPFLAGS'
1069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1072 ac_main_return=return
1073
1074 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1075 *c*,-n*) ECHO_N= ECHO_C='
1076 ' ECHO_T=' ' ;;
1077 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1078 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1079 esac
1080 echo "#! $SHELL" >conftest.sh
1081 echo "exit 0" >>conftest.sh
1082 chmod +x conftest.sh
1083 if { (echo "$as_me:1083: PATH=\".;.\"; conftest.sh") >&5
1084 (PATH=".;."; conftest.sh) 2>&5
1085 ac_status=$?
1086 echo "$as_me:1086: \$? = $ac_status" >&5
1087 (exit $ac_status); }; then
1088 ac_path_separator=';'
1089 else
1090 ac_path_separator=:
1091 fi
1092 PATH_SEPARATOR="$ac_path_separator"
1093 rm -f conftest.sh
1094
1095 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
1096
1097 ac_aux_dir=
1098 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1099 if test -f $ac_dir/install-sh; then
1100 ac_aux_dir=$ac_dir
1101 ac_install_sh="$ac_aux_dir/install-sh -c"
1102 break
1103 elif test -f $ac_dir/install.sh; then
1104 ac_aux_dir=$ac_dir
1105 ac_install_sh="$ac_aux_dir/install.sh -c"
1106 break
1107 elif test -f $ac_dir/shtool; then
1108 ac_aux_dir=$ac_dir
1109 ac_install_sh="$ac_aux_dir/shtool install -c"
1110 break
1111 fi
1112 done
1113 if test -z "$ac_aux_dir"; then
1114 { { echo "$as_me:1114: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1115 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1116 { (exit 1); exit 1; }; }
1117 fi
1118 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1119 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1120 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1121
1122 # Make sure we can run config.sub.
1123 $ac_config_sub sun4 >/dev/null 2>&1 ||
1124 { { echo "$as_me:1124: error: cannot run $ac_config_sub" >&5
1125 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1126 { (exit 1); exit 1; }; }
1127
1128 echo "$as_me:1128: checking build system type" >&5
1129 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1130 if test "${ac_cv_build+set}" = set; then
1131 echo $ECHO_N "(cached) $ECHO_C" >&6
1132 else
1133 ac_cv_build_alias=$build_alias
1134 test -z "$ac_cv_build_alias" &&
1135 ac_cv_build_alias=`$ac_config_guess`
1136 test -z "$ac_cv_build_alias" &&
1137 { { echo "$as_me:1137: error: cannot guess build type; you must specify one" >&5
1138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1139 { (exit 1); exit 1; }; }
1140 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1141 { { echo "$as_me:1141: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1142 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1143 { (exit 1); exit 1; }; }
1144
1145 fi
1146 echo "$as_me:1146: result: $ac_cv_build" >&5
1147 echo "${ECHO_T}$ac_cv_build" >&6
1148 build=$ac_cv_build
1149 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1150 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1151 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1152
1153 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1154 echo "$as_me:1154: checking host system type" >&5
1155 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1156 if test "${ac_cv_host+set}" = set; then
1157 echo $ECHO_N "(cached) $ECHO_C" >&6
1158 else
1159 ac_cv_host_alias=$host_alias
1160 test -z "$ac_cv_host_alias" &&
1161 ac_cv_host_alias=$ac_cv_build_alias
1162 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1163 { { echo "$as_me:1163: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1164 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1165 { (exit 1); exit 1; }; }
1166
1167 fi
1168 echo "$as_me:1168: result: $ac_cv_host" >&5
1169 echo "${ECHO_T}$ac_cv_host" >&6
1170 host=$ac_cv_host
1171 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1172 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1173 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1174
1175 system_name="$host_os"
1176 else
1177 system_name="`(uname -s -r) 2>/dev/null`"
1178 if test -z "$system_name" ; then
1179 system_name="`(hostname) 2>/dev/null`"
1180 fi
1181 fi
1182 test -n "$system_name" &&
1183 cat >>confdefs.h <<EOF
1184 #define SYSTEM_NAME "$system_name"
1185 EOF
1186
1187 if test "${cf_cv_system_name+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1189 else
1190 cf_cv_system_name="$system_name"
1191 fi
1192
1193 test -z "$system_name" && system_name="$cf_cv_system_name"
1194 test -n "$cf_cv_system_name" && echo "$as_me:1194: result: Configuring for $cf_cv_system_name" >&5
1195 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1196
1197 if test ".$system_name" != ".$cf_cv_system_name" ; then
1198 echo "$as_me:1198: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1199 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1200 { { echo "$as_me:1200: error: \"Please remove config.cache and try again.\"" >&5
1201 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1202 { (exit 1); exit 1; }; }
1203 fi
1204
1205 ### checks for alternative programs
1206
1207 case "$host_os" in
1208 openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
1209 : ${CPPFLAGS="-D_ALL_SOURCE"}
1210 : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
1211 : ${CC=c89};;
1212 darwin*)
1213 : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
1214 esac
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221 ac_main_return=return
1222 if test -n "$ac_tool_prefix"; then
1223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1225 echo "$as_me:1225: checking for $ac_word" >&5
1226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1227 if test "${ac_cv_prog_CC+set}" = set; then
1228 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 else
1230 if test -n "$CC"; then
1231 ac_cv_prog_CC="$CC" # Let the user override the test.
1232 else
1233 ac_save_IFS=$IFS; IFS=$ac_path_separator
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 IFS=$ac_save_IFS
1237 test -z "$ac_dir" && ac_dir=.
1238 $as_executable_p "$ac_dir/$ac_word" || continue
1239 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1240 echo "$as_me:1240: found $ac_dir/$ac_word" >&5
1241 break
1242 done
1243
1244 fi
1245 fi
1246 CC=$ac_cv_prog_CC
1247 if test -n "$CC"; then
1248 echo "$as_me:1248: result: $CC" >&5
1249 echo "${ECHO_T}$CC" >&6
1250 else
1251 echo "$as_me:1251: result: no" >&5
1252 echo "${ECHO_T}no" >&6
1253 fi
1254
1255 fi
1256 if test -z "$ac_cv_prog_CC"; then
1257 ac_ct_CC=$CC
1258 # Extract the first word of "gcc", so it can be a program name with args.
1259 set dummy gcc; ac_word=$2
1260 echo "$as_me:1260: checking for $ac_word" >&5
1261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 else
1265 if test -n "$ac_ct_CC"; then
1266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1267 else
1268 ac_save_IFS=$IFS; IFS=$ac_path_separator
1269 ac_dummy="$PATH"
1270 for ac_dir in $ac_dummy; do
1271 IFS=$ac_save_IFS
1272 test -z "$ac_dir" && ac_dir=.
1273 $as_executable_p "$ac_dir/$ac_word" || continue
1274 ac_cv_prog_ac_ct_CC="gcc"
1275 echo "$as_me:1275: found $ac_dir/$ac_word" >&5
1276 break
1277 done
1278
1279 fi
1280 fi
1281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1282 if test -n "$ac_ct_CC"; then
1283 echo "$as_me:1283: result: $ac_ct_CC" >&5
1284 echo "${ECHO_T}$ac_ct_CC" >&6
1285 else
1286 echo "$as_me:1286: result: no" >&5
1287 echo "${ECHO_T}no" >&6
1288 fi
1289
1290 CC=$ac_ct_CC
1291 else
1292 CC="$ac_cv_prog_CC"
1293 fi
1294
1295 if test -z "$CC"; then
1296 if test -n "$ac_tool_prefix"; then
1297 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1298 set dummy ${ac_tool_prefix}cc; ac_word=$2
1299 echo "$as_me:1299: checking for $ac_word" >&5
1300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1301 if test "${ac_cv_prog_CC+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304 if test -n "$CC"; then
1305 ac_cv_prog_CC="$CC" # Let the user override the test.
1306 else
1307 ac_save_IFS=$IFS; IFS=$ac_path_separator
1308 ac_dummy="$PATH"
1309 for ac_dir in $ac_dummy; do
1310 IFS=$ac_save_IFS
1311 test -z "$ac_dir" && ac_dir=.
1312 $as_executable_p "$ac_dir/$ac_word" || continue
1313 ac_cv_prog_CC="${ac_tool_prefix}cc"
1314 echo "$as_me:1314: found $ac_dir/$ac_word" >&5
1315 break
1316 done
1317
1318 fi
1319 fi
1320 CC=$ac_cv_prog_CC
1321 if test -n "$CC"; then
1322 echo "$as_me:1322: result: $CC" >&5
1323 echo "${ECHO_T}$CC" >&6
1324 else
1325 echo "$as_me:1325: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1327 fi
1328
1329 fi
1330 if test -z "$ac_cv_prog_CC"; then
1331 ac_ct_CC=$CC
1332 # Extract the first word of "cc", so it can be a program name with args.
1333 set dummy cc; ac_word=$2
1334 echo "$as_me:1334: checking for $ac_word" >&5
1335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339 if test -n "$ac_ct_CC"; then
1340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1341 else
1342 ac_save_IFS=$IFS; IFS=$ac_path_separator
1343 ac_dummy="$PATH"
1344 for ac_dir in $ac_dummy; do
1345 IFS=$ac_save_IFS
1346 test -z "$ac_dir" && ac_dir=.
1347 $as_executable_p "$ac_dir/$ac_word" || continue
1348 ac_cv_prog_ac_ct_CC="cc"
1349 echo "$as_me:1349: found $ac_dir/$ac_word" >&5
1350 break
1351 done
1352
1353 fi
1354 fi
1355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1356 if test -n "$ac_ct_CC"; then
1357 echo "$as_me:1357: result: $ac_ct_CC" >&5
1358 echo "${ECHO_T}$ac_ct_CC" >&6
1359 else
1360 echo "$as_me:1360: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1362 fi
1363
1364 CC=$ac_ct_CC
1365 else
1366 CC="$ac_cv_prog_CC"
1367 fi
1368
1369 fi
1370 if test -z "$CC"; then
1371 # Extract the first word of "cc", so it can be a program name with args.
1372 set dummy cc; ac_word=$2
1373 echo "$as_me:1373: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_prog_CC+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 else
1378 if test -n "$CC"; then
1379 ac_cv_prog_CC="$CC" # Let the user override the test.
1380 else
1381 ac_prog_rejected=no
1382 ac_save_IFS=$IFS; IFS=$ac_path_separator
1383 ac_dummy="$PATH"
1384 for ac_dir in $ac_dummy; do
1385 IFS=$ac_save_IFS
1386 test -z "$ac_dir" && ac_dir=.
1387 $as_executable_p "$ac_dir/$ac_word" || continue
1388 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1389 ac_prog_rejected=yes
1390 continue
1391 fi
1392 ac_cv_prog_CC="cc"
1393 echo "$as_me:1393: found $ac_dir/$ac_word" >&5
1394 break
1395 done
1396
1397 if test $ac_prog_rejected = yes; then
1398 # We found a bogon in the path, so make sure we never use it.
1399 set dummy $ac_cv_prog_CC
1400 shift
1401 if test $# != 0; then
1402 # We chose a different compiler from the bogus one.
1403 # However, it has the same basename, so the bogon will be chosen
1404 # first if we set CC to just the basename; use the full file name.
1405 shift
1406 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1407 shift
1408 ac_cv_prog_CC="$@"
1409 fi
1410 fi
1411 fi
1412 fi
1413 CC=$ac_cv_prog_CC
1414 if test -n "$CC"; then
1415 echo "$as_me:1415: result: $CC" >&5
1416 echo "${ECHO_T}$CC" >&6
1417 else
1418 echo "$as_me:1418: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1420 fi
1421
1422 fi
1423 if test -z "$CC"; then
1424 if test -n "$ac_tool_prefix"; then
1425 for ac_prog in cl
1426 do
1427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1429 echo "$as_me:1429: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 if test -n "$CC"; then
1435 ac_cv_prog_CC="$CC" # Let the user override the test.
1436 else
1437 ac_save_IFS=$IFS; IFS=$ac_path_separator
1438 ac_dummy="$PATH"
1439 for ac_dir in $ac_dummy; do
1440 IFS=$ac_save_IFS
1441 test -z "$ac_dir" && ac_dir=.
1442 $as_executable_p "$ac_dir/$ac_word" || continue
1443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1444 echo "$as_me:1444: found $ac_dir/$ac_word" >&5
1445 break
1446 done
1447
1448 fi
1449 fi
1450 CC=$ac_cv_prog_CC
1451 if test -n "$CC"; then
1452 echo "$as_me:1452: result: $CC" >&5
1453 echo "${ECHO_T}$CC" >&6
1454 else
1455 echo "$as_me:1455: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1457 fi
1458
1459 test -n "$CC" && break
1460 done
1461 fi
1462 if test -z "$CC"; then
1463 ac_ct_CC=$CC
1464 for ac_prog in cl
1465 do
1466 # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:1468: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$ac_ct_CC"; then
1474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1475 else
1476 ac_save_IFS=$IFS; IFS=$ac_path_separator
1477 ac_dummy="$PATH"
1478 for ac_dir in $ac_dummy; do
1479 IFS=$ac_save_IFS
1480 test -z "$ac_dir" && ac_dir=.
1481 $as_executable_p "$ac_dir/$ac_word" || continue
1482 ac_cv_prog_ac_ct_CC="$ac_prog"
1483 echo "$as_me:1483: found $ac_dir/$ac_word" >&5
1484 break
1485 done
1486
1487 fi
1488 fi
1489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1490 if test -n "$ac_ct_CC"; then
1491 echo "$as_me:1491: result: $ac_ct_CC" >&5
1492 echo "${ECHO_T}$ac_ct_CC" >&6
1493 else
1494 echo "$as_me:1494: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1496 fi
1497
1498 test -n "$ac_ct_CC" && break
1499 done
1500
1501 CC=$ac_ct_CC
1502 fi
1503
1504 fi
1505
1506 test -z "$CC" && { { echo "$as_me:1506: error: no acceptable cc found in \$PATH" >&5
1507 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1508 { (exit 1); exit 1; }; }
1509
1510 # Provide some information about the compiler.
1511 echo "$as_me:1511:" \
1512 "checking for C compiler version" >&5
1513 ac_compiler=`set X $ac_compile; echo $2`
1514 { (eval echo "$as_me:1514: \"$ac_compiler --version </dev/null >&5\"") >&5
1515 (eval $ac_compiler --version </dev/null >&5) 2>&5
1516 ac_status=$?
1517 echo "$as_me:1517: \$? = $ac_status" >&5
1518 (exit $ac_status); }
1519 { (eval echo "$as_me:1519: \"$ac_compiler -v </dev/null >&5\"") >&5
1520 (eval $ac_compiler -v </dev/null >&5) 2>&5
1521 ac_status=$?
1522 echo "$as_me:1522: \$? = $ac_status" >&5
1523 (exit $ac_status); }
1524 { (eval echo "$as_me:1524: \"$ac_compiler -V </dev/null >&5\"") >&5
1525 (eval $ac_compiler -V </dev/null >&5) 2>&5
1526 ac_status=$?
1527 echo "$as_me:1527: \$? = $ac_status" >&5
1528 (exit $ac_status); }
1529
1530 cat >conftest.$ac_ext <<_ACEOF
1531 #line 1531 "configure"
1532 #include "confdefs.h"
1533
1534 int
1535 main ()
1536 {
1537
1538 ;
1539 return 0;
1540 }
1541 _ACEOF
1542 ac_clean_files_save=$ac_clean_files
1543 ac_clean_files="$ac_clean_files a.out a.exe"
1544 # Try to create an executable without -o first, disregard a.out.
1545 # It will help us diagnose broken compilers, and finding out an intuition
1546 # of exeext.
1547 echo "$as_me:1547: checking for C compiler default output" >&5
1548 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1549 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1550 if { (eval echo "$as_me:1550: \"$ac_link_default\"") >&5
1551 (eval $ac_link_default) 2>&5
1552 ac_status=$?
1553 echo "$as_me:1553: \$? = $ac_status" >&5
1554 (exit $ac_status); }; then
1555 # Find the output, starting from the most likely. This scheme is
1556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1557 # resort.
1558 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1559 ls a.out conftest 2>/dev/null;
1560 ls a.* conftest.* 2>/dev/null`; do
1561 case $ac_file in
1562 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1563 a.out ) # We found the default executable, but exeext='' is most
1564 # certainly right.
1565 break;;
1566 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1567 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1568 export ac_cv_exeext
1569 break;;
1570 * ) break;;
1571 esac
1572 done
1573 else
1574 echo "$as_me: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1576 { { echo "$as_me:1576: error: C compiler cannot create executables" >&5
1577 echo "$as_me: error: C compiler cannot create executables" >&2;}
1578 { (exit 77); exit 77; }; }
1579 fi
1580
1581 ac_exeext=$ac_cv_exeext
1582 echo "$as_me:1582: result: $ac_file" >&5
1583 echo "${ECHO_T}$ac_file" >&6
1584
1585 # Check the compiler produces executables we can run. If not, either
1586 # the compiler is broken, or we cross compile.
1587 echo "$as_me:1587: checking whether the C compiler works" >&5
1588 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1589 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1590 # If not cross compiling, check that we can run a simple program.
1591 if test "$cross_compiling" != yes; then
1592 if { ac_try='./$ac_file'
1593 { (eval echo "$as_me:1593: \"$ac_try\"") >&5
1594 (eval $ac_try) 2>&5
1595 ac_status=$?
1596 echo "$as_me:1596: \$? = $ac_status" >&5
1597 (exit $ac_status); }; }; then
1598 cross_compiling=no
1599 else
1600 if test "$cross_compiling" = maybe; then
1601 cross_compiling=yes
1602 else
1603 { { echo "$as_me:1603: error: cannot run C compiled programs.
1604 If you meant to cross compile, use \`--host'." >&5
1605 echo "$as_me: error: cannot run C compiled programs.
1606 If you meant to cross compile, use \`--host'." >&2;}
1607 { (exit 1); exit 1; }; }
1608 fi
1609 fi
1610 fi
1611 echo "$as_me:1611: result: yes" >&5
1612 echo "${ECHO_T}yes" >&6
1613
1614 rm -f a.out a.exe conftest$ac_cv_exeext
1615 ac_clean_files=$ac_clean_files_save
1616 # Check the compiler produces executables we can run. If not, either
1617 # the compiler is broken, or we cross compile.
1618 echo "$as_me:1618: checking whether we are cross compiling" >&5
1619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1620 echo "$as_me:1620: result: $cross_compiling" >&5
1621 echo "${ECHO_T}$cross_compiling" >&6
1622
1623 echo "$as_me:1623: checking for executable suffix" >&5
1624 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1625 if { (eval echo "$as_me:1625: \"$ac_link\"") >&5
1626 (eval $ac_link) 2>&5
1627 ac_status=$?
1628 echo "$as_me:1628: \$? = $ac_status" >&5
1629 (exit $ac_status); }; then
1630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1631 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1632 # work properly (i.e., refer to `conftest.exe'), while it won't with
1633 # `rm'.
1634 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1635 case $ac_file in
1636 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1637 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1638 export ac_cv_exeext
1639 break;;
1640 * ) break;;
1641 esac
1642 done
1643 else
1644 { { echo "$as_me:1644: error: cannot compute EXEEXT: cannot compile and link" >&5
1645 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1646 { (exit 1); exit 1; }; }
1647 fi
1648
1649 rm -f conftest$ac_cv_exeext
1650 echo "$as_me:1650: result: $ac_cv_exeext" >&5
1651 echo "${ECHO_T}$ac_cv_exeext" >&6
1652
1653 rm -f conftest.$ac_ext
1654 EXEEXT=$ac_cv_exeext
1655 ac_exeext=$EXEEXT
1656 echo "$as_me:1656: checking for object suffix" >&5
1657 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1658 if test "${ac_cv_objext+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661 cat >conftest.$ac_ext <<_ACEOF
1662 #line 1662 "configure"
1663 #include "confdefs.h"
1664
1665 int
1666 main ()
1667 {
1668
1669 ;
1670 return 0;
1671 }
1672 _ACEOF
1673 rm -f conftest.o conftest.obj
1674 if { (eval echo "$as_me:1674: \"$ac_compile\"") >&5
1675 (eval $ac_compile) 2>&5
1676 ac_status=$?
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); }; then
1679 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1680 case $ac_file in
1681 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1683 break;;
1684 esac
1685 done
1686 else
1687 echo "$as_me: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1689 { { echo "$as_me:1689: error: cannot compute OBJEXT: cannot compile" >&5
1690 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1691 { (exit 1); exit 1; }; }
1692 fi
1693
1694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1695 fi
1696 echo "$as_me:1696: result: $ac_cv_objext" >&5
1697 echo "${ECHO_T}$ac_cv_objext" >&6
1698 OBJEXT=$ac_cv_objext
1699 ac_objext=$OBJEXT
1700 echo "$as_me:1700: checking whether we are using the GNU C compiler" >&5
1701 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1702 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705 cat >conftest.$ac_ext <<_ACEOF
1706 #line 1706 "configure"
1707 #include "confdefs.h"
1708
1709 int
1710 main ()
1711 {
1712 #ifndef __GNUC__
1713 choke me
1714 #endif
1715
1716 ;
1717 return 0;
1718 }
1719 _ACEOF
1720 rm -f conftest.$ac_objext
1721 if { (eval echo "$as_me:1721: \"$ac_compile\"") >&5
1722 (eval $ac_compile) 2>&5
1723 ac_status=$?
1724 echo "$as_me:1724: \$? = $ac_status" >&5
1725 (exit $ac_status); } &&
1726 { ac_try='test -s conftest.$ac_objext'
1727 { (eval echo "$as_me:1727: \"$ac_try\"") >&5
1728 (eval $ac_try) 2>&5
1729 ac_status=$?
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1732 ac_compiler_gnu=yes
1733 else
1734 echo "$as_me: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 ac_compiler_gnu=no
1737 fi
1738 rm -f conftest.$ac_objext conftest.$ac_ext
1739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1740
1741 fi
1742 echo "$as_me:1742: result: $ac_cv_c_compiler_gnu" >&5
1743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1744 GCC=`test $ac_compiler_gnu = yes && echo yes`
1745 ac_test_CFLAGS=${CFLAGS+set}
1746 ac_save_CFLAGS=$CFLAGS
1747 CFLAGS="-g"
1748 echo "$as_me:1748: checking whether $CC accepts -g" >&5
1749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1750 if test "${ac_cv_prog_cc_g+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 cat >conftest.$ac_ext <<_ACEOF
1754 #line 1754 "configure"
1755 #include "confdefs.h"
1756
1757 int
1758 main ()
1759 {
1760
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 rm -f conftest.$ac_objext
1766 if { (eval echo "$as_me:1766: \"$ac_compile\"") >&5
1767 (eval $ac_compile) 2>&5
1768 ac_status=$?
1769 echo "$as_me:1769: \$? = $ac_status" >&5
1770 (exit $ac_status); } &&
1771 { ac_try='test -s conftest.$ac_objext'
1772 { (eval echo "$as_me:1772: \"$ac_try\"") >&5
1773 (eval $ac_try) 2>&5
1774 ac_status=$?
1775 echo "$as_me:1775: \$? = $ac_status" >&5
1776 (exit $ac_status); }; }; then
1777 ac_cv_prog_cc_g=yes
1778 else
1779 echo "$as_me: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1781 ac_cv_prog_cc_g=no
1782 fi
1783 rm -f conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 echo "$as_me:1785: result: $ac_cv_prog_cc_g" >&5
1786 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1787 if test "$ac_test_CFLAGS" = set; then
1788 CFLAGS=$ac_save_CFLAGS
1789 elif test $ac_cv_prog_cc_g = yes; then
1790 if test "$GCC" = yes; then
1791 CFLAGS="-g -O2"
1792 else
1793 CFLAGS="-g"
1794 fi
1795 else
1796 if test "$GCC" = yes; then
1797 CFLAGS="-O2"
1798 else
1799 CFLAGS=
1800 fi
1801 fi
1802 # Some people use a C++ compiler to compile C. Since we use `exit',
1803 # in C++ we need to declare it. In case someone uses the same compiler
1804 # for both compiling C and C++ we need to have the C++ compiler decide
1805 # the declaration of exit, since it's the most demanding environment.
1806 cat >conftest.$ac_ext <<_ACEOF
1807 #ifndef __cplusplus
1808 choke me
1809 #endif
1810 _ACEOF
1811 rm -f conftest.$ac_objext
1812 if { (eval echo "$as_me:1812: \"$ac_compile\"") >&5
1813 (eval $ac_compile) 2>&5
1814 ac_status=$?
1815 echo "$as_me:1815: \$? = $ac_status" >&5
1816 (exit $ac_status); } &&
1817 { ac_try='test -s conftest.$ac_objext'
1818 { (eval echo "$as_me:1818: \"$ac_try\"") >&5
1819 (eval $ac_try) 2>&5
1820 ac_status=$?
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); }; }; then
1823 for ac_declaration in \
1824 ''\
1825 '#include <stdlib.h>' \
1826 'extern "C" void std::exit (int) throw (); using std::exit;' \
1827 'extern "C" void std::exit (int); using std::exit;' \
1828 'extern "C" void exit (int) throw ();' \
1829 'extern "C" void exit (int);' \
1830 'void exit (int);'
1831 do
1832 cat >conftest.$ac_ext <<_ACEOF
1833 #line 1833 "configure"
1834 #include "confdefs.h"
1835 #include <stdlib.h>
1836 $ac_declaration
1837 int
1838 main ()
1839 {
1840 exit (42);
1841 ;
1842 return 0;
1843 }
1844 _ACEOF
1845 rm -f conftest.$ac_objext
1846 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
1847 (eval $ac_compile) 2>&5
1848 ac_status=$?
1849 echo "$as_me:1849: \$? = $ac_status" >&5
1850 (exit $ac_status); } &&
1851 { ac_try='test -s conftest.$ac_objext'
1852 { (eval echo "$as_me:1852: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 :
1858 else
1859 echo "$as_me: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1861 continue
1862 fi
1863 rm -f conftest.$ac_objext conftest.$ac_ext
1864 cat >conftest.$ac_ext <<_ACEOF
1865 #line 1865 "configure"
1866 #include "confdefs.h"
1867 $ac_declaration
1868 int
1869 main ()
1870 {
1871 exit (42);
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 rm -f conftest.$ac_objext
1877 if { (eval echo "$as_me:1877: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:1880: \$? = $ac_status" >&5
1881 (exit $ac_status); } &&
1882 { ac_try='test -s conftest.$ac_objext'
1883 { (eval echo "$as_me:1883: \"$ac_try\"") >&5
1884 (eval $ac_try) 2>&5
1885 ac_status=$?
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1888 break
1889 else
1890 echo "$as_me: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 fi
1893 rm -f conftest.$ac_objext conftest.$ac_ext
1894 done
1895 rm -rf conftest*
1896 if test -n "$ac_declaration"; then
1897 echo '#ifdef __cplusplus' >>confdefs.h
1898 echo $ac_declaration >>confdefs.h
1899 echo '#endif' >>confdefs.h
1900 fi
1901
1902 else
1903 echo "$as_me: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1905 fi
1906 rm -f conftest.$ac_objext conftest.$ac_ext
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 ac_main_return=return
1913
1914 GCC_VERSION=none
1915 if test "$GCC" = yes ; then
1916 echo "$as_me:1916: checking version of $CC" >&5
1917 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1918 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.].*//'`"
1919 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1920 echo "$as_me:1920: result: $GCC_VERSION" >&5
1921 echo "${ECHO_T}$GCC_VERSION" >&6
1922 fi
1923
1924 echo "$as_me:1924: checking for $CC option to accept ANSI C" >&5
1925 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1926 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 ac_cv_prog_cc_stdc=no
1930 ac_save_CC=$CC
1931 cat >conftest.$ac_ext <<_ACEOF
1932 #line 1932 "configure"
1933 #include "confdefs.h"
1934 #include <stdarg.h>
1935 #include <stdio.h>
1936 #include <sys/types.h>
1937 #include <sys/stat.h>
1938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1939 struct buf { int x; };
1940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1941 static char *e (p, i)
1942 char **p;
1943 int i;
1944 {
1945 return p[i];
1946 }
1947 static char *f (char * (*g) (char **, int), char **p, ...)
1948 {
1949 char *s;
1950 va_list v;
1951 va_start (v,p);
1952 s = g (p, va_arg (v,int));
1953 va_end (v);
1954 return s;
1955 }
1956 int test (int i, double x);
1957 struct s1 {int (*f) (int a);};
1958 struct s2 {int (*f) (double a);};
1959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1960 int argc;
1961 char **argv;
1962 int
1963 main ()
1964 {
1965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 # Don't try gcc -ansi; that turns off useful extensions and
1971 # breaks some systems' header files.
1972 # AIX -qlanglvl=ansi
1973 # Ultrix and OSF/1 -std1
1974 # HP-UX 10.20 and later -Ae
1975 # HP-UX older versions -Aa -D_HPUX_SOURCE
1976 # SVR4 -Xc -D__EXTENSIONS__
1977 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1978 do
1979 CC="$ac_save_CC $ac_arg"
1980 rm -f conftest.$ac_objext
1981 if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1983 ac_status=$?
1984 echo "$as_me:1984: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -s conftest.$ac_objext'
1987 { (eval echo "$as_me:1987: \"$ac_try\"") >&5
1988 (eval $ac_try) 2>&5
1989 ac_status=$?
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); }; }; then
1992 ac_cv_prog_cc_stdc=$ac_arg
1993 break
1994 else
1995 echo "$as_me: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1997 fi
1998 rm -f conftest.$ac_objext
1999 done
2000 rm -f conftest.$ac_ext conftest.$ac_objext
2001 CC=$ac_save_CC
2002
2003 fi
2004
2005 case "x$ac_cv_prog_cc_stdc" in
2006 x|xno)
2007 echo "$as_me:2007: result: none needed" >&5
2008 echo "${ECHO_T}none needed" >&6 ;;
2009 *)
2010 echo "$as_me:2010: result: $ac_cv_prog_cc_stdc" >&5
2011 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2012 CC="$CC $ac_cv_prog_cc_stdc" ;;
2013 esac
2014
2015 # This should have been defined by AC_PROG_CC
2016 : ${CC:=cc}
2017
2018 echo "$as_me:2018: checking \$CC variable" >&5
2019 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2020 case "$CC" in #(vi
2021 *[\ \ ]-[IUD]*)
2022 echo "$as_me:2022: result: broken" >&5
2023 echo "${ECHO_T}broken" >&6
2024 { echo "$as_me:2024: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2025 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2026 # humor him...
2027 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2028 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2029
2030 cf_fix_cppflags=no
2031 cf_new_cflags=
2032 cf_new_cppflags=
2033 cf_new_extra_cppflags=
2034
2035 for cf_add_cflags in $cf_flags
2036 do
2037 case $cf_fix_cppflags in
2038 no)
2039 case $cf_add_cflags in #(vi
2040 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2041 case $cf_add_cflags in
2042 -D*)
2043 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2044
2045 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2046 && test -z "${cf_tst_cflags}" \
2047 && cf_fix_cppflags=yes
2048
2049 if test $cf_fix_cppflags = yes ; then
2050 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2051 continue
2052 elif test "${cf_tst_cflags}" = "\"'" ; then
2053 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2054 continue
2055 fi
2056 ;;
2057 esac
2058 case "$CPPFLAGS" in
2059 *$cf_add_cflags) #(vi
2060 ;;
2061 *) #(vi
2062 case $cf_add_cflags in #(vi
2063 -D*)
2064 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2065
2066 CPPFLAGS=`echo "$CPPFLAGS" | \
2067 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2068 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2069
2070 ;;
2071 esac
2072 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2073 ;;
2074 esac
2075 ;;
2076 *)
2077 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2078 ;;
2079 esac
2080 ;;
2081 yes)
2082 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2083
2084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2085
2086 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2087 && test -z "${cf_tst_cflags}" \
2088 && cf_fix_cppflags=no
2089 ;;
2090 esac
2091 done
2092
2093 if test -n "$cf_new_cflags" ; then
2094
2095 CFLAGS="$CFLAGS $cf_new_cflags"
2096 fi
2097
2098 if test -n "$cf_new_cppflags" ; then
2099
2100 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2101 fi
2102
2103 if test -n "$cf_new_extra_cppflags" ; then
2104
2105 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2106 fi
2107
2108 ;;
2109 *)
2110 echo "$as_me:2110: result: ok" >&5
2111 echo "${ECHO_T}ok" >&6
2112 ;;
2113 esac
2114
2115 ac_ext=c
2116 ac_cpp='$CPP $CPPFLAGS'
2117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 ac_main_return=return
2121 echo "$as_me:2121: checking how to run the C preprocessor" >&5
2122 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2123 # On Suns, sometimes $CPP names a directory.
2124 if test -n "$CPP" && test -d "$CPP"; then
2125 CPP=
2126 fi
2127 if test -z "$CPP"; then
2128 if test "${ac_cv_prog_CPP+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 # Double quotes because CPP needs to be expanded
2132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2133 do
2134 ac_preproc_ok=false
2135 for ac_c_preproc_warn_flag in '' yes
2136 do
2137 # Use a header file that comes with gcc, so configuring glibc
2138 # with a fresh cross-compiler works.
2139 # On the NeXT, cc -E runs the code through the compiler's parser,
2140 # not just through cpp. "Syntax error" is here to catch this case.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #line 2142 "configure"
2143 #include "confdefs.h"
2144 #include <assert.h>
2145 Syntax error
2146 _ACEOF
2147 if { (eval echo "$as_me:2147: \"$ac_cpp conftest.$ac_ext\"") >&5
2148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2149 ac_status=$?
2150 egrep -v '^ *\+' conftest.er1 >conftest.err
2151 rm -f conftest.er1
2152 cat conftest.err >&5
2153 echo "$as_me:2153: \$? = $ac_status" >&5
2154 (exit $ac_status); } >/dev/null; then
2155 if test -s conftest.err; then
2156 ac_cpp_err=$ac_c_preproc_warn_flag
2157 else
2158 ac_cpp_err=
2159 fi
2160 else
2161 ac_cpp_err=yes
2162 fi
2163 if test -z "$ac_cpp_err"; then
2164 :
2165 else
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 # Broken: fails on valid input.
2169 continue
2170 fi
2171 rm -f conftest.err conftest.$ac_ext
2172
2173 # OK, works on sane cases. Now check whether non-existent headers
2174 # can be detected and how.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line 2176 "configure"
2177 #include "confdefs.h"
2178 #include <ac_nonexistent.h>
2179 _ACEOF
2180 if { (eval echo "$as_me:2180: \"$ac_cpp conftest.$ac_ext\"") >&5
2181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2182 ac_status=$?
2183 egrep -v '^ *\+' conftest.er1 >conftest.err
2184 rm -f conftest.er1
2185 cat conftest.err >&5
2186 echo "$as_me:2186: \$? = $ac_status" >&5
2187 (exit $ac_status); } >/dev/null; then
2188 if test -s conftest.err; then
2189 ac_cpp_err=$ac_c_preproc_warn_flag
2190 else
2191 ac_cpp_err=
2192 fi
2193 else
2194 ac_cpp_err=yes
2195 fi
2196 if test -z "$ac_cpp_err"; then
2197 # Broken: success on invalid input.
2198 continue
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 # Passes both tests.
2203 ac_preproc_ok=:
2204 break
2205 fi
2206 rm -f conftest.err conftest.$ac_ext
2207
2208 done
2209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2210 rm -f conftest.err conftest.$ac_ext
2211 if $ac_preproc_ok; then
2212 break
2213 fi
2214
2215 done
2216 ac_cv_prog_CPP=$CPP
2217
2218 fi
2219 CPP=$ac_cv_prog_CPP
2220 else
2221 ac_cv_prog_CPP=$CPP
2222 fi
2223 echo "$as_me:2223: result: $CPP" >&5
2224 echo "${ECHO_T}$CPP" >&6
2225 ac_preproc_ok=false
2226 for ac_c_preproc_warn_flag in '' yes
2227 do
2228 # Use a header file that comes with gcc, so configuring glibc
2229 # with a fresh cross-compiler works.
2230 # On the NeXT, cc -E runs the code through the compiler's parser,
2231 # not just through cpp. "Syntax error" is here to catch this case.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line 2233 "configure"
2234 #include "confdefs.h"
2235 #include <assert.h>
2236 Syntax error
2237 _ACEOF
2238 if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2240 ac_status=$?
2241 egrep -v '^ *\+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:2244: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_c_preproc_warn_flag
2248 else
2249 ac_cpp_err=
2250 fi
2251 else
2252 ac_cpp_err=yes
2253 fi
2254 if test -z "$ac_cpp_err"; then
2255 :
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 # Broken: fails on valid input.
2260 continue
2261 fi
2262 rm -f conftest.err conftest.$ac_ext
2263
2264 # OK, works on sane cases. Now check whether non-existent headers
2265 # can be detected and how.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 #line 2267 "configure"
2268 #include "confdefs.h"
2269 #include <ac_nonexistent.h>
2270 _ACEOF
2271 if { (eval echo "$as_me:2271: \"$ac_cpp conftest.$ac_ext\"") >&5
2272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2273 ac_status=$?
2274 egrep -v '^ *\+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:2277: \$? = $ac_status" >&5
2278 (exit $ac_status); } >/dev/null; then
2279 if test -s conftest.err; then
2280 ac_cpp_err=$ac_c_preproc_warn_flag
2281 else
2282 ac_cpp_err=
2283 fi
2284 else
2285 ac_cpp_err=yes
2286 fi
2287 if test -z "$ac_cpp_err"; then
2288 # Broken: success on invalid input.
2289 continue
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 # Passes both tests.
2294 ac_preproc_ok=:
2295 break
2296 fi
2297 rm -f conftest.err conftest.$ac_ext
2298
2299 done
2300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2301 rm -f conftest.err conftest.$ac_ext
2302 if $ac_preproc_ok; then
2303 :
2304 else
2305 { { echo "$as_me:2305: error: C preprocessor \"$CPP\" fails sanity check" >&5
2306 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2307 { (exit 1); exit 1; }; }
2308 fi
2309
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 ac_main_return=return
2316
2317 for ac_prog in mawk gawk nawk awk
2318 do
2319 # Extract the first word of "$ac_prog", so it can be a program name with args.
2320 set dummy $ac_prog; ac_word=$2
2321 echo "$as_me:2321: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_AWK+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$AWK"; then
2327 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2328 else
2329 ac_save_IFS=$IFS; IFS=$ac_path_separator
2330 ac_dummy="$PATH"
2331 for ac_dir in $ac_dummy; do
2332 IFS=$ac_save_IFS
2333 test -z "$ac_dir" && ac_dir=.
2334 $as_executable_p "$ac_dir/$ac_word" || continue
2335 ac_cv_prog_AWK="$ac_prog"
2336 echo "$as_me:2336: found $ac_dir/$ac_word" >&5
2337 break
2338 done
2339
2340 fi
2341 fi
2342 AWK=$ac_cv_prog_AWK
2343 if test -n "$AWK"; then
2344 echo "$as_me:2344: result: $AWK" >&5
2345 echo "${ECHO_T}$AWK" >&6
2346 else
2347 echo "$as_me:2347: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351 test -n "$AWK" && break
2352 done
2353
2354 # Extract the first word of "groff", so it can be a program name with args.
2355 set dummy groff; ac_word=$2
2356 echo "$as_me:2356: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 case $GROFF_PATH in
2362 [\\/]* | ?:[\\/]*)
2363 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
2364 ;;
2365 *)
2366 ac_save_IFS=$IFS; IFS=$ac_path_separator
2367 ac_dummy="$PATH"
2368 for ac_dir in $ac_dummy; do
2369 IFS=$ac_save_IFS
2370 test -z "$ac_dir" && ac_dir=.
2371 if $as_executable_p "$ac_dir/$ac_word"; then
2372 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
2373 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2374 break
2375 fi
2376 done
2377
2378 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
2379 ;;
2380 esac
2381 fi
2382 GROFF_PATH=$ac_cv_path_GROFF_PATH
2383
2384 if test -n "$GROFF_PATH"; then
2385 echo "$as_me:2385: result: $GROFF_PATH" >&5
2386 echo "${ECHO_T}$GROFF_PATH" >&6
2387 else
2388 echo "$as_me:2388: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2390 fi
2391
2392 if test "x$GROFF_PATH" = xno
2393 then
2394 NROFF_NOTE=
2395 GROFF_NOTE="#"
2396 else
2397 NROFF_NOTE="#"
2398 GROFF_NOTE=
2399 fi
2400
2401 # Find a good install program. We prefer a C program (faster),
2402 # so one script is as good as another. But avoid the broken or
2403 # incompatible versions:
2404 # SysV /etc/install, /usr/sbin/install
2405 # SunOS /usr/etc/install
2406 # IRIX /sbin/install
2407 # AIX /bin/install
2408 # AmigaOS /C/install, which installs bootblocks on floppy discs
2409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2412 # ./install, which can be erroneously created by make from ./install.sh.
2413 echo "$as_me:2413: checking for a BSD compatible install" >&5
2414 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2415 if test -z "$INSTALL"; then
2416 if test "${ac_cv_path_install+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 ac_save_IFS=$IFS; IFS=$ac_path_separator
2420 for ac_dir in $PATH; do
2421 IFS=$ac_save_IFS
2422 # Account for people who put trailing slashes in PATH elements.
2423 case $ac_dir/ in
2424 / | ./ | .// | /cC/* \
2425 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2426 | /usr/ucb/* ) ;;
2427 *)
2428 # OSF1 and SCO ODT 3.0 have their own names for install.
2429 # Don't use installbsd from OSF since it installs stuff as root
2430 # by default.
2431 for ac_prog in ginstall scoinst install; do
2432 if $as_executable_p "$ac_dir/$ac_prog"; then
2433 if test $ac_prog = install &&
2434 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2435 # AIX install. It has an incompatible calling convention.
2436 :
2437 elif test $ac_prog = install &&
2438 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2439 # program-specific install script used by HP pwplus--don't use.
2440 :
2441 else
2442 ac_cv_path_install="$ac_dir/$ac_prog -c"
2443 break 2
2444 fi
2445 fi
2446 done
2447 ;;
2448 esac
2449 done
2450
2451 fi
2452 if test "${ac_cv_path_install+set}" = set; then
2453 INSTALL=$ac_cv_path_install
2454 else
2455 # As a last resort, use the slow shell script. We don't cache a
2456 # path for INSTALL within a source directory, because that will
2457 # break other packages using the cache if that directory is
2458 # removed, or if the path is relative.
2459 INSTALL=$ac_install_sh
2460 fi
2461 fi
2462 echo "$as_me:2462: result: $INSTALL" >&5
2463 echo "${ECHO_T}$INSTALL" >&6
2464
2465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2466 # It thinks the first close brace ends the variable substitution.
2467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2468
2469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2470
2471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2472
2473 echo "$as_me:2473: checking whether ln -s works" >&5
2474 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2475 LN_S=$as_ln_s
2476 if test "$LN_S" = "ln -s"; then
2477 echo "$as_me:2477: result: yes" >&5
2478 echo "${ECHO_T}yes" >&6
2479 else
2480 echo "$as_me:2480: result: no, using $LN_S" >&5
2481 echo "${ECHO_T}no, using $LN_S" >&6
2482 fi
2483
2484 test "$program_prefix" != NONE &&
2485 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2486 # Use a double $ so make ignores it.
2487 test "$program_suffix" != NONE &&
2488 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2489 # Double any \ or $. echo might interpret backslashes.
2490 # By default was `s,x,x', remove it if useless.
2491 cat <<\_ACEOF >conftest.sed
2492 s/[\\$]/&&/g;s/;s,x,x,$//
2493 _ACEOF
2494 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2495 rm conftest.sed
2496
2497 for ac_prog in tdlint lint alint
2498 do
2499 # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo "$as_me:2501: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_LINT+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 if test -n "$LINT"; then
2507 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2508 else
2509 ac_save_IFS=$IFS; IFS=$ac_path_separator
2510 ac_dummy="$PATH"
2511 for ac_dir in $ac_dummy; do
2512 IFS=$ac_save_IFS
2513 test -z "$ac_dir" && ac_dir=.
2514 $as_executable_p "$ac_dir/$ac_word" || continue
2515 ac_cv_prog_LINT="$ac_prog"
2516 echo "$as_me:2516: found $ac_dir/$ac_word" >&5
2517 break
2518 done
2519
2520 fi
2521 fi
2522 LINT=$ac_cv_prog_LINT
2523 if test -n "$LINT"; then
2524 echo "$as_me:2524: result: $LINT" >&5
2525 echo "${ECHO_T}$LINT" >&6
2526 else
2527 echo "$as_me:2527: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2529 fi
2530
2531 test -n "$LINT" && break
2532 done
2533
2534 ### checks for compiler characteristics
2535
2536 cf_XOPEN_SOURCE=500
2537 cf_POSIX_C_SOURCE=199506L
2538 cf_xopen_source=
2539
2540 case $host_os in #(vi
2541 aix[4-7]*) #(vi
2542 cf_xopen_source="-D_ALL_SOURCE"
2543 ;;
2544 cygwin|msys) #(vi
2545 cf_XOPEN_SOURCE=600
2546 ;;
2547 darwin[0-8].*) #(vi
2548 cf_xopen_source="-D_APPLE_C_SOURCE"
2549 ;;
2550 darwin*) #(vi
2551 cf_xopen_source="-D_DARWIN_C_SOURCE"
2552 cf_XOPEN_SOURCE=
2553 ;;
2554 freebsd*|dragonfly*) #(vi
2555 # 5.x headers associate
2556 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2557 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2558 cf_POSIX_C_SOURCE=200112L
2559 cf_XOPEN_SOURCE=600
2560 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2561 ;;
2562 hpux11*) #(vi
2563 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2564 ;;
2565 hpux*) #(vi
2566 cf_xopen_source="-D_HPUX_SOURCE"
2567 ;;
2568 irix[56].*) #(vi
2569 cf_xopen_source="-D_SGI_SOURCE"
2570 cf_XOPEN_SOURCE=
2571 ;;
2572 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2573
2574 echo "$as_me:2574: checking if we must define _GNU_SOURCE" >&5
2575 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2576 if test "${cf_cv_gnu_source+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line 2581 "configure"
2582 #include "confdefs.h"
2583 #include <sys/types.h>
2584 int
2585 main ()
2586 {
2587
2588 #ifndef _XOPEN_SOURCE
2589 make an error
2590 #endif
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:2596: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>&5
2598 ac_status=$?
2599 echo "$as_me:2599: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:2602: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 cf_cv_gnu_source=no
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2611 cf_save="$CPPFLAGS"
2612 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2616 #include <sys/types.h>
2617 int
2618 main ()
2619 {
2620
2621 #ifdef _XOPEN_SOURCE
2622 make an error
2623 #endif
2624 ;
2625 return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:2629: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>&5
2631 ac_status=$?
2632 echo "$as_me:2632: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:2635: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:2638: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 cf_cv_gnu_source=no
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 cf_cv_gnu_source=yes
2645 fi
2646 rm -f conftest.$ac_objext conftest.$ac_ext
2647 CPPFLAGS="$cf_save"
2648
2649 fi
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651
2652 fi
2653 echo "$as_me:2653: result: $cf_cv_gnu_source" >&5
2654 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2655 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2656
2657 ;;
2658 mirbsd*) #(vi
2659 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2660 cf_XOPEN_SOURCE=
2661
2662 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2663
2664 cf_save_CFLAGS="$CFLAGS"
2665 cf_save_CPPFLAGS="$CPPFLAGS"
2666
2667 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2668 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2669 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2670
2671 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2672 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2673 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2674
2675 echo "$as_me:2675: checking if we should define _POSIX_C_SOURCE" >&5
2676 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2677 if test "${cf_cv_posix_c_source+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680
2681 echo "${as_me:-configure}:2681: testing if the symbol is already defined go no further ..." 1>&5
2682
2683 cat >conftest.$ac_ext <<_ACEOF
2684 #line 2684 "configure"
2685 #include "confdefs.h"
2686 #include <sys/types.h>
2687 int
2688 main ()
2689 {
2690
2691 #ifndef _POSIX_C_SOURCE
2692 make an error
2693 #endif
2694 ;
2695 return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:2699: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2701 ac_status=$?
2702 echo "$as_me:2702: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:2705: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:2708: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 cf_cv_posix_c_source=no
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 cf_want_posix_source=no
2715 case .$cf_POSIX_C_SOURCE in #(vi
2716 .[12]??*) #(vi
2717 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2718 ;;
2719 .2) #(vi
2720 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2721 cf_want_posix_source=yes
2722 ;;
2723 .*)
2724 cf_want_posix_source=yes
2725 ;;
2726 esac
2727 if test "$cf_want_posix_source" = yes ; then
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line 2729 "configure"
2730 #include "confdefs.h"
2731 #include <sys/types.h>
2732 int
2733 main ()
2734 {
2735
2736 #ifdef _POSIX_SOURCE
2737 make an error
2738 #endif
2739 ;
2740 return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>&5
2746 ac_status=$?
2747 echo "$as_me:2747: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (eval echo "$as_me:2750: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 :
2756 else
2757 echo "$as_me: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2759 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
2760 fi
2761 rm -f conftest.$ac_objext conftest.$ac_ext
2762 fi
2763
2764 echo "${as_me:-configure}:2764: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
2765
2766 CFLAGS="$cf_trim_CFLAGS"
2767 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
2768
2769 echo "${as_me:-configure}:2769: testing if the second compile does not leave our definition intact error ..." 1>&5
2770
2771 cat >conftest.$ac_ext <<_ACEOF
2772 #line 2772 "configure"
2773 #include "confdefs.h"
2774 #include <sys/types.h>
2775 int
2776 main ()
2777 {
2778
2779 #ifndef _POSIX_C_SOURCE
2780 make an error
2781 #endif
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:2787: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>&5
2789 ac_status=$?
2790 echo "$as_me:2790: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:2793: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:2796: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 :
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 cf_cv_posix_c_source=no
2803 fi
2804 rm -f conftest.$ac_objext conftest.$ac_ext
2805 CFLAGS="$cf_save_CFLAGS"
2806 CPPFLAGS="$cf_save_CPPFLAGS"
2807
2808 fi
2809 rm -f conftest.$ac_objext conftest.$ac_ext
2810
2811 fi
2812 echo "$as_me:2812: result: $cf_cv_posix_c_source" >&5
2813 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
2814
2815 if test "$cf_cv_posix_c_source" != no ; then
2816 CFLAGS="$cf_trim_CFLAGS"
2817 CPPFLAGS="$cf_trim_CPPFLAGS"
2818
2819 cf_fix_cppflags=no
2820 cf_new_cflags=
2821 cf_new_cppflags=
2822 cf_new_extra_cppflags=
2823
2824 for cf_add_cflags in $cf_cv_posix_c_source
2825 do
2826 case $cf_fix_cppflags in
2827 no)
2828 case $cf_add_cflags in #(vi
2829 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2830 case $cf_add_cflags in
2831 -D*)
2832 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2833
2834 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2835 && test -z "${cf_tst_cflags}" \
2836 && cf_fix_cppflags=yes
2837
2838 if test $cf_fix_cppflags = yes ; then
2839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2840 continue
2841 elif test "${cf_tst_cflags}" = "\"'" ; then
2842 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2843 continue
2844 fi
2845 ;;
2846 esac
2847 case "$CPPFLAGS" in
2848 *$cf_add_cflags) #(vi
2849 ;;
2850 *) #(vi
2851 case $cf_add_cflags in #(vi
2852 -D*)
2853 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2854
2855 CPPFLAGS=`echo "$CPPFLAGS" | \
2856 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2857 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2858
2859 ;;
2860 esac
2861 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2862 ;;
2863 esac
2864 ;;
2865 *)
2866 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2867 ;;
2868 esac
2869 ;;
2870 yes)
2871 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2872
2873 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2874
2875 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2876 && test -z "${cf_tst_cflags}" \
2877 && cf_fix_cppflags=no
2878 ;;
2879 esac
2880 done
2881
2882 if test -n "$cf_new_cflags" ; then
2883
2884 CFLAGS="$CFLAGS $cf_new_cflags"
2885 fi
2886
2887 if test -n "$cf_new_cppflags" ; then
2888
2889 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2890 fi
2891
2892 if test -n "$cf_new_extra_cppflags" ; then
2893
2894 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2895 fi
2896
2897 fi
2898
2899 ;;
2900 netbsd*) #(vi
2901 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2902 ;;
2903 openbsd[4-9]*) #(vi
2904 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
2905 cf_xopen_source="-D_BSD_SOURCE"
2906 cf_XOPEN_SOURCE=600
2907 ;;
2908 openbsd*) #(vi
2909 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2910 ;;
2911 osf[45]*) #(vi
2912 cf_xopen_source="-D_OSF_SOURCE"
2913 ;;
2914 nto-qnx*) #(vi
2915 cf_xopen_source="-D_QNX_SOURCE"
2916 ;;
2917 sco*) #(vi
2918 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2919 ;;
2920 solaris2.*) #(vi
2921 cf_xopen_source="-D__EXTENSIONS__"
2922 cf_cv_xopen_source=broken
2923 ;;
2924 *)
2925
2926 echo "$as_me:2926: checking if we should define _XOPEN_SOURCE" >&5
2927 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2928 if test "${cf_cv_xopen_source+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line 2933 "configure"
2934 #include "confdefs.h"
2935
2936 #include <stdlib.h>
2937 #include <string.h>
2938 #include <sys/types.h>
2939
2940 int
2941 main ()
2942 {
2943
2944 #ifndef _XOPEN_SOURCE
2945 make an error
2946 #endif
2947 ;
2948 return 0;
2949 }
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:2952: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>&5
2954 ac_status=$?
2955 echo "$as_me:2955: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:2958: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:2961: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 cf_cv_xopen_source=no
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2967 cf_save="$CPPFLAGS"
2968 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2969 cat >conftest.$ac_ext <<_ACEOF
2970 #line 2970 "configure"
2971 #include "confdefs.h"
2972
2973 #include <stdlib.h>
2974 #include <string.h>
2975 #include <sys/types.h>
2976
2977 int
2978 main ()
2979 {
2980
2981 #ifdef _XOPEN_SOURCE
2982 make an error
2983 #endif
2984 ;
2985 return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2991 ac_status=$?
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 cf_cv_xopen_source=no
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3004 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3005 fi
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3007 CPPFLAGS="$cf_save"
3008
3009 fi
3010 rm -f conftest.$ac_objext conftest.$ac_ext
3011
3012 fi
3013 echo "$as_me:3013: result: $cf_cv_xopen_source" >&5
3014 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3015
3016 if test "$cf_cv_xopen_source" != no ; then
3017
3018 CFLAGS=`echo "$CFLAGS" | \
3019 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3020 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3021
3022 CPPFLAGS=`echo "$CPPFLAGS" | \
3023 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3024 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3025
3026 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3027
3028 cf_fix_cppflags=no
3029 cf_new_cflags=
3030 cf_new_cppflags=
3031 cf_new_extra_cppflags=
3032
3033 for cf_add_cflags in $cf_temp_xopen_source
3034 do
3035 case $cf_fix_cppflags in
3036 no)
3037 case $cf_add_cflags in #(vi
3038 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3039 case $cf_add_cflags in
3040 -D*)
3041 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3042
3043 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3044 && test -z "${cf_tst_cflags}" \
3045 && cf_fix_cppflags=yes
3046
3047 if test $cf_fix_cppflags = yes ; then
3048 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3049 continue
3050 elif test "${cf_tst_cflags}" = "\"'" ; then
3051 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3052 continue
3053 fi
3054 ;;
3055 esac
3056 case "$CPPFLAGS" in
3057 *$cf_add_cflags) #(vi
3058 ;;
3059 *) #(vi
3060 case $cf_add_cflags in #(vi
3061 -D*)
3062 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3063
3064 CPPFLAGS=`echo "$CPPFLAGS" | \
3065 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3066 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3067
3068 ;;
3069 esac
3070 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3071 ;;
3072 esac
3073 ;;
3074 *)
3075 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3076 ;;
3077 esac
3078 ;;
3079 yes)
3080 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3081
3082 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3083
3084 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3085 && test -z "${cf_tst_cflags}" \
3086 && cf_fix_cppflags=no
3087 ;;
3088 esac
3089 done
3090
3091 if test -n "$cf_new_cflags" ; then
3092
3093 CFLAGS="$CFLAGS $cf_new_cflags"
3094 fi
3095
3096 if test -n "$cf_new_cppflags" ; then
3097
3098 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3099 fi
3100
3101 if test -n "$cf_new_extra_cppflags" ; then
3102
3103 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3104 fi
3105
3106 fi
3107
3108 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3109
3110 cf_save_CFLAGS="$CFLAGS"
3111 cf_save_CPPFLAGS="$CPPFLAGS"
3112
3113 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3114 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3115 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3116
3117 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3118 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3119 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3120
3121 echo "$as_me:3121: checking if we should define _POSIX_C_SOURCE" >&5
3122 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3123 if test "${cf_cv_posix_c_source+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126
3127 echo "${as_me:-configure}:3127: testing if the symbol is already defined go no further ..." 1>&5
3128
3129 cat >conftest.$ac_ext <<_ACEOF
3130 #line 3130 "configure"
3131 #include "confdefs.h"
3132 #include <sys/types.h>
3133 int
3134 main ()
3135 {
3136
3137 #ifndef _POSIX_C_SOURCE
3138 make an error
3139 #endif
3140 ;
3141 return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (eval echo "$as_me:3145: \"$ac_compile\"") >&5
3146 (eval $ac_compile) 2>&5
3147 ac_status=$?
3148 echo "$as_me:3148: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (eval echo "$as_me:3151: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:3154: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 cf_cv_posix_c_source=no
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 cf_want_posix_source=no
3161 case .$cf_POSIX_C_SOURCE in #(vi
3162 .[12]??*) #(vi
3163 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3164 ;;
3165 .2) #(vi
3166 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3167 cf_want_posix_source=yes
3168 ;;
3169 .*)
3170 cf_want_posix_source=yes
3171 ;;
3172 esac
3173 if test "$cf_want_posix_source" = yes ; then
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line 3175 "configure"
3176 #include "confdefs.h"
3177 #include <sys/types.h>
3178 int
3179 main ()
3180 {
3181
3182 #ifdef _POSIX_SOURCE
3183 make an error
3184 #endif
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:3190: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:3196: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 :
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3206 fi
3207 rm -f conftest.$ac_objext conftest.$ac_ext
3208 fi
3209
3210 echo "${as_me:-configure}:3210: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3211
3212 CFLAGS="$cf_trim_CFLAGS"
3213 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3214
3215 echo "${as_me:-configure}:3215: testing if the second compile does not leave our definition intact error ..." 1>&5
3216
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line 3218 "configure"
3219 #include "confdefs.h"
3220 #include <sys/types.h>
3221 int
3222 main ()
3223 {
3224
3225 #ifndef _POSIX_C_SOURCE
3226 make an error
3227 #endif
3228 ;
3229 return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:3233: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>&5
3235 ac_status=$?
3236 echo "$as_me:3236: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:3239: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:3242: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 :
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 cf_cv_posix_c_source=no
3249 fi
3250 rm -f conftest.$ac_objext conftest.$ac_ext
3251 CFLAGS="$cf_save_CFLAGS"
3252 CPPFLAGS="$cf_save_CPPFLAGS"
3253
3254 fi
3255 rm -f conftest.$ac_objext conftest.$ac_ext
3256
3257 fi
3258 echo "$as_me:3258: result: $cf_cv_posix_c_source" >&5
3259 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3260
3261 if test "$cf_cv_posix_c_source" != no ; then
3262 CFLAGS="$cf_trim_CFLAGS"
3263 CPPFLAGS="$cf_trim_CPPFLAGS"
3264
3265 cf_fix_cppflags=no
3266 cf_new_cflags=
3267 cf_new_cppflags=
3268 cf_new_extra_cppflags=
3269
3270 for cf_add_cflags in $cf_cv_posix_c_source
3271 do
3272 case $cf_fix_cppflags in
3273 no)
3274 case $cf_add_cflags in #(vi
3275 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3276 case $cf_add_cflags in
3277 -D*)
3278 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3279
3280 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3281 && test -z "${cf_tst_cflags}" \
3282 && cf_fix_cppflags=yes
3283
3284 if test $cf_fix_cppflags = yes ; then
3285 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3286 continue
3287 elif test "${cf_tst_cflags}" = "\"'" ; then
3288 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3289 continue
3290 fi
3291 ;;
3292 esac
3293 case "$CPPFLAGS" in
3294 *$cf_add_cflags) #(vi
3295 ;;
3296 *) #(vi
3297 case $cf_add_cflags in #(vi
3298 -D*)
3299 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3300
3301 CPPFLAGS=`echo "$CPPFLAGS" | \
3302 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3303 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3304
3305 ;;
3306 esac
3307 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3308 ;;
3309 esac
3310 ;;
3311 *)
3312 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3313 ;;
3314 esac
3315 ;;
3316 yes)
3317 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3318
3319 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3320
3321 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3322 && test -z "${cf_tst_cflags}" \
3323 && cf_fix_cppflags=no
3324 ;;
3325 esac
3326 done
3327
3328 if test -n "$cf_new_cflags" ; then
3329
3330 CFLAGS="$CFLAGS $cf_new_cflags"
3331 fi
3332
3333 if test -n "$cf_new_cppflags" ; then
3334
3335 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3336 fi
3337
3338 if test -n "$cf_new_extra_cppflags" ; then
3339
3340 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3341 fi
3342
3343 fi
3344
3345 ;;
3346 esac
3347
3348 if test -n "$cf_xopen_source" ; then
3349
3350 cf_fix_cppflags=no
3351 cf_new_cflags=
3352 cf_new_cppflags=
3353 cf_new_extra_cppflags=
3354
3355 for cf_add_cflags in $cf_xopen_source
3356 do
3357 case $cf_fix_cppflags in
3358 no)
3359 case $cf_add_cflags in #(vi
3360 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3361 case $cf_add_cflags in
3362 -D*)
3363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3364
3365 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3366 && test -z "${cf_tst_cflags}" \
3367 && cf_fix_cppflags=yes
3368
3369 if test $cf_fix_cppflags = yes ; then
3370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3371 continue
3372 elif test "${cf_tst_cflags}" = "\"'" ; then
3373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3374 continue
3375 fi
3376 ;;
3377 esac
3378 case "$CPPFLAGS" in
3379 *$cf_add_cflags) #(vi
3380 ;;
3381 *) #(vi
3382 case $cf_add_cflags in #(vi
3383 -D*)
3384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3385
3386 CPPFLAGS=`echo "$CPPFLAGS" | \
3387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3389
3390 ;;
3391 esac
3392 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3393 ;;
3394 esac
3395 ;;
3396 *)
3397 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3398 ;;
3399 esac
3400 ;;
3401 yes)
3402 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3403
3404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3405
3406 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3407 && test -z "${cf_tst_cflags}" \
3408 && cf_fix_cppflags=no
3409 ;;
3410 esac
3411 done
3412
3413 if test -n "$cf_new_cflags" ; then
3414
3415 CFLAGS="$CFLAGS $cf_new_cflags"
3416 fi
3417
3418 if test -n "$cf_new_cppflags" ; then
3419
3420 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3421 fi
3422
3423 if test -n "$cf_new_extra_cppflags" ; then
3424
3425 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3426 fi
3427
3428 fi
3429
3430 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3431 echo "$as_me:3431: checking if _XOPEN_SOURCE really is set" >&5
3432 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line 3434 "configure"
3435 #include "confdefs.h"
3436 #include <stdlib.h>
3437 int
3438 main ()
3439 {
3440
3441 #ifndef _XOPEN_SOURCE
3442 make an error
3443 #endif
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:3449: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3451 ac_status=$?
3452 echo "$as_me:3452: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:3455: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:3458: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 cf_XOPEN_SOURCE_set=yes
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 cf_XOPEN_SOURCE_set=no
3465 fi
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me:3467: result: $cf_XOPEN_SOURCE_set" >&5
3468 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3469 if test $cf_XOPEN_SOURCE_set = yes
3470 then
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line 3472 "configure"
3473 #include "confdefs.h"
3474 #include <stdlib.h>
3475 int
3476 main ()
3477 {
3478
3479 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3480 make an error
3481 #endif
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:3487: \"$ac_compile\"") >&5
3488 (eval $ac_compile) 2>&5
3489 ac_status=$?
3490 echo "$as_me:3490: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 { ac_try='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:3493: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:3496: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 cf_XOPEN_SOURCE_set_ok=yes
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3502 cf_XOPEN_SOURCE_set_ok=no
3503 fi
3504 rm -f conftest.$ac_objext conftest.$ac_ext
3505 if test $cf_XOPEN_SOURCE_set_ok = no
3506 then
3507 { echo "$as_me:3507: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3508 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3509 fi
3510 else
3511
3512 echo "$as_me:3512: checking if we should define _XOPEN_SOURCE" >&5
3513 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3514 if test "${cf_cv_xopen_source+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517
3518 cat >conftest.$ac_ext <<_ACEOF
3519 #line 3519 "configure"
3520 #include "confdefs.h"
3521
3522 #include <stdlib.h>
3523 #include <string.h>
3524 #include <sys/types.h>
3525
3526 int
3527 main ()
3528 {
3529
3530 #ifndef _XOPEN_SOURCE
3531 make an error
3532 #endif
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:3538: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>&5
3540 ac_status=$?
3541 echo "$as_me:3541: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:3544: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:3547: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 cf_cv_xopen_source=no
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 cf_save="$CPPFLAGS"
3554 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line 3556 "configure"
3557 #include "confdefs.h"
3558
3559 #include <stdlib.h>
3560 #include <string.h>
3561 #include <sys/types.h>
3562
3563 int
3564 main ()
3565 {
3566
3567 #ifdef _XOPEN_SOURCE
3568 make an error
3569 #endif
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:3575: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>&5
3577 ac_status=$?
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:3584: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 cf_cv_xopen_source=no
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3590 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3591 fi
3592 rm -f conftest.$ac_objext conftest.$ac_ext
3593 CPPFLAGS="$cf_save"
3594
3595 fi
3596 rm -f conftest.$ac_objext conftest.$ac_ext
3597
3598 fi
3599 echo "$as_me:3599: result: $cf_cv_xopen_source" >&5
3600 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3601
3602 if test "$cf_cv_xopen_source" != no ; then
3603
3604 CFLAGS=`echo "$CFLAGS" | \
3605 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3606 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3607
3608 CPPFLAGS=`echo "$CPPFLAGS" | \
3609 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3610 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3611
3612 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3613
3614 cf_fix_cppflags=no
3615 cf_new_cflags=
3616 cf_new_cppflags=
3617 cf_new_extra_cppflags=
3618
3619 for cf_add_cflags in $cf_temp_xopen_source
3620 do
3621 case $cf_fix_cppflags in
3622 no)
3623 case $cf_add_cflags in #(vi
3624 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3625 case $cf_add_cflags in
3626 -D*)
3627 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3628
3629 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3630 && test -z "${cf_tst_cflags}" \
3631 && cf_fix_cppflags=yes
3632
3633 if test $cf_fix_cppflags = yes ; then
3634 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3635 continue
3636 elif test "${cf_tst_cflags}" = "\"'" ; then
3637 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3638 continue
3639 fi
3640 ;;
3641 esac
3642 case "$CPPFLAGS" in
3643 *$cf_add_cflags) #(vi
3644 ;;
3645 *) #(vi
3646 case $cf_add_cflags in #(vi
3647 -D*)
3648 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3649
3650 CPPFLAGS=`echo "$CPPFLAGS" | \
3651 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3652 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3653
3654 ;;
3655 esac
3656 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3657 ;;
3658 esac
3659 ;;
3660 *)
3661 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3662 ;;
3663 esac
3664 ;;
3665 yes)
3666 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3667
3668 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3669
3670 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3671 && test -z "${cf_tst_cflags}" \
3672 && cf_fix_cppflags=no
3673 ;;
3674 esac
3675 done
3676
3677 if test -n "$cf_new_cflags" ; then
3678
3679 CFLAGS="$CFLAGS $cf_new_cflags"
3680 fi
3681
3682 if test -n "$cf_new_cppflags" ; then
3683
3684 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3685 fi
3686
3687 if test -n "$cf_new_extra_cppflags" ; then
3688
3689 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3690 fi
3691
3692 fi
3693
3694 fi
3695 fi
3696
3697 echo "$as_me:3697: checking if SIGWINCH is defined" >&5
3698 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
3699 if test "${cf_cv_define_sigwinch+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line 3704 "configure"
3705 #include "confdefs.h"
3706
3707 #include <sys/types.h>
3708 #include <sys/signal.h>
3709
3710 int
3711 main ()
3712 {
3713 int x = SIGWINCH
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 rm -f conftest.$ac_objext
3719 if { (eval echo "$as_me:3719: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>&5
3721 ac_status=$?
3722 echo "$as_me:3722: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:3725: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:3728: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 cf_cv_define_sigwinch=yes
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3734 cat >conftest.$ac_ext <<_ACEOF
3735 #line 3735 "configure"
3736 #include "confdefs.h"
3737
3738 #undef _XOPEN_SOURCE
3739 #undef _POSIX_SOURCE
3740 #undef _POSIX_C_SOURCE
3741 #include <sys/types.h>
3742 #include <sys/signal.h>
3743
3744 int
3745 main ()
3746 {
3747 int x = SIGWINCH
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (eval echo "$as_me:3753: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>&5
3755 ac_status=$?
3756 echo "$as_me:3756: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:3759: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:3762: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 cf_cv_define_sigwinch=maybe
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3768 cf_cv_define_sigwinch=no
3769 fi
3770 rm -f conftest.$ac_objext conftest.$ac_ext
3771
3772 fi
3773 rm -f conftest.$ac_objext conftest.$ac_ext
3774
3775 fi
3776 echo "$as_me:3776: result: $cf_cv_define_sigwinch" >&5
3777 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
3778
3779 if test "$cf_cv_define_sigwinch" = maybe ; then
3780 echo "$as_me:3780: checking for actual SIGWINCH definition" >&5
3781 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
3782 if test "${cf_cv_fixup_sigwinch+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785
3786 cf_cv_fixup_sigwinch=unknown
3787 cf_sigwinch=32
3788 while test $cf_sigwinch != 1
3789 do
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line 3791 "configure"
3792 #include "confdefs.h"
3793
3794 #undef _XOPEN_SOURCE
3795 #undef _POSIX_SOURCE
3796 #undef _POSIX_C_SOURCE
3797 #include <sys/types.h>
3798 #include <sys/signal.h>
3799
3800 int
3801 main ()
3802 {
3803
3804 #if SIGWINCH != $cf_sigwinch
3805 make an error
3806 #endif
3807 int x = SIGWINCH
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:3813: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>&5
3815 ac_status=$?
3816 echo "$as_me:3816: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:3819: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:3822: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 cf_cv_fixup_sigwinch=$cf_sigwinch
3825 break
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3829 fi
3830 rm -f conftest.$ac_objext conftest.$ac_ext
3831
3832 cf_sigwinch=`expr $cf_sigwinch - 1`
3833 done
3834
3835 fi
3836 echo "$as_me:3836: result: $cf_cv_fixup_sigwinch" >&5
3837 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
3838
3839 if test "$cf_cv_fixup_sigwinch" != unknown ; then
3840 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
3841 fi
3842 fi
3843
3844 ### checks for header files
3845
3846 for ac_header in \
3847 ncurses/curses.h \
3848 ncurses/term.h \
3849 stdlib.h \
3850 sys/ptem.h sys/ttydefaults.h \
3851 term.h \
3852 termios.h \
3853 unistd.h \
3854 wchar.h \
3855
3856 do
3857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3858 echo "$as_me:3858: checking for $ac_header" >&5
3859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 cat >conftest.$ac_ext <<_ACEOF
3864 #line 3864 "configure"
3865 #include "confdefs.h"
3866 #include <$ac_header>
3867 _ACEOF
3868 if { (eval echo "$as_me:3868: \"$ac_cpp conftest.$ac_ext\"") >&5
3869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870 ac_status=$?
3871 egrep -v '^ *\+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:3874: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev/null; then
3876 if test -s conftest.err; then
3877 ac_cpp_err=$ac_c_preproc_warn_flag
3878 else
3879 ac_cpp_err=
3880 fi
3881 else
3882 ac_cpp_err=yes
3883 fi
3884 if test -z "$ac_cpp_err"; then
3885 eval "$as_ac_Header=yes"
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 eval "$as_ac_Header=no"
3890 fi
3891 rm -f conftest.err conftest.$ac_ext
3892 fi
3893 echo "$as_me:3893: result: `eval echo '${'$as_ac_Header'}'`" >&5
3894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3896 cat >>confdefs.h <<EOF
3897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3898 EOF
3899
3900 fi
3901 done
3902
3903 echo "$as_me:3903: checking whether time.h and sys/time.h may both be included" >&5
3904 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3905 if test "${ac_cv_header_time+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line 3909 "configure"
3910 #include "confdefs.h"
3911 #include <sys/types.h>
3912 #include <sys/time.h>
3913 #include <time.h>
3914
3915 int
3916 main ()
3917 {
3918 if ((struct tm *) 0)
3919 return 0;
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (eval echo "$as_me:3925: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>&5
3927 ac_status=$?
3928 echo "$as_me:3928: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest.$ac_objext'
3931 { (eval echo "$as_me:3931: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:3934: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_header_time=yes
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3940 ac_cv_header_time=no
3941 fi
3942 rm -f conftest.$ac_objext conftest.$ac_ext
3943 fi
3944 echo "$as_me:3944: result: $ac_cv_header_time" >&5
3945 echo "${ECHO_T}$ac_cv_header_time" >&6
3946 if test $ac_cv_header_time = yes; then
3947
3948 cat >>confdefs.h <<\EOF
3949 #define TIME_WITH_SYS_TIME 1
3950 EOF
3951
3952 fi
3953
3954 echo "$as_me:3954: checking for nl_langinfo and CODESET" >&5
3955 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3956 if test "${am_cv_langinfo_codeset+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line 3960 "configure"
3961 #include "confdefs.h"
3962 #include <langinfo.h>
3963 int
3964 main ()
3965 {
3966 char* cs = nl_langinfo(CODESET);
3967 ;
3968 return 0;
3969 }
3970 _ACEOF
3971 rm -f conftest.$ac_objext conftest$ac_exeext
3972 if { (eval echo "$as_me:3972: \"$ac_link\"") >&5
3973 (eval $ac_link) 2>&5
3974 ac_status=$?
3975 echo "$as_me:3975: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -s conftest$ac_exeext'
3978 { (eval echo "$as_me:3978: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:3981: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 am_cv_langinfo_codeset=yes
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 am_cv_langinfo_codeset=no
3988 fi
3989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3990
3991 fi
3992 echo "$as_me:3992: result: $am_cv_langinfo_codeset" >&5
3993 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3994 if test $am_cv_langinfo_codeset = yes; then
3995
3996 cat >>confdefs.h <<\EOF
3997 #define HAVE_LANGINFO_CODESET 1
3998 EOF
3999
4000 fi
4001
4002 ### checks for typedefs
4003
4004 echo "$as_me:4004: checking for signal global datatype" >&5
4005 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4006 if test "${cf_cv_sig_atomic_t+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009
4010 for cf_type in \
4011 "volatile sig_atomic_t" \
4012 "sig_atomic_t" \
4013 "int"
4014 do
4015 cat >conftest.$ac_ext <<_ACEOF
4016 #line 4016 "configure"
4017 #include "confdefs.h"
4018
4019 #include <sys/types.h>
4020 #include <signal.h>
4021 #include <stdio.h>
4022
4023 extern $cf_type x;
4024 $cf_type x;
4025 static void handler(int sig)
4026 {
4027 x = 5;
4028 }
4029 int
4030 main ()
4031 {
4032 signal(SIGINT, handler);
4033 x = 1
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:4039: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>&5
4041 ac_status=$?
4042 echo "$as_me:4042: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:4045: \"$ac_try\"") >&5
4046 (eval $ac_try) 2>&5
4047 ac_status=$?
4048 echo "$as_me:4048: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 cf_cv_sig_atomic_t=$cf_type
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4054 cf_cv_sig_atomic_t=no
4055 fi
4056 rm -f conftest.$ac_objext conftest.$ac_ext
4057 test "$cf_cv_sig_atomic_t" != no && break
4058 done
4059
4060 fi
4061
4062 echo "$as_me:4062: result: $cf_cv_sig_atomic_t" >&5
4063 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4064 test "$cf_cv_sig_atomic_t" != no &&
4065 cat >>confdefs.h <<EOF
4066 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4067 EOF
4068
4069 echo "$as_me:4069: checking for ANSI C header files" >&5
4070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4071 if test "${ac_cv_header_stdc+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 cat >conftest.$ac_ext <<_ACEOF
4075 #line 4075 "configure"
4076 #include "confdefs.h"
4077 #include <stdlib.h>
4078 #include <stdarg.h>
4079 #include <string.h>
4080 #include <float.h>
4081
4082 _ACEOF
4083 if { (eval echo "$as_me:4083: \"$ac_cpp conftest.$ac_ext\"") >&5
4084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4085 ac_status=$?
4086 egrep -v '^ *\+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:4089: \$? = $ac_status" >&5
4090 (exit $ac_status); } >/dev/null; then
4091 if test -s conftest.err; then
4092 ac_cpp_err=$ac_c_preproc_warn_flag
4093 else
4094 ac_cpp_err=
4095 fi
4096 else
4097 ac_cpp_err=yes
4098 fi
4099 if test -z "$ac_cpp_err"; then
4100 ac_cv_header_stdc=yes
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 ac_cv_header_stdc=no
4105 fi
4106 rm -f conftest.err conftest.$ac_ext
4107
4108 if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 #line 4111 "configure"
4112 #include "confdefs.h"
4113 #include <string.h>
4114
4115 _ACEOF
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 egrep "memchr" >/dev/null 2>&1; then
4118 :
4119 else
4120 ac_cv_header_stdc=no
4121 fi
4122 rm -rf conftest*
4123
4124 fi
4125
4126 if test $ac_cv_header_stdc = yes; then
4127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 #line 4129 "configure"
4130 #include "confdefs.h"
4131 #include <stdlib.h>
4132
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 egrep "free" >/dev/null 2>&1; then
4136 :
4137 else
4138 ac_cv_header_stdc=no
4139 fi
4140 rm -rf conftest*
4141
4142 fi
4143
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4147 :
4148 else
4149 cat >conftest.$ac_ext <<_ACEOF
4150 #line 4150 "configure"
4151 #include "confdefs.h"
4152 #include <ctype.h>
4153 #if ((' ' & 0x0FF) == 0x020)
4154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4156 #else
4157 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4158 || ('j' <= (c) && (c) <= 'r') \
4159 || ('s' <= (c) && (c) <= 'z'))
4160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4161 #endif
4162
4163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4164 int
4165 main ()
4166 {
4167 int i;
4168 for (i = 0; i < 256; i++)
4169 if (XOR (islower (i), ISLOWER (i))
4170 || toupper (i) != TOUPPER (i))
4171 $ac_main_return(2);
4172 $ac_main_return (0);
4173 }
4174 _ACEOF
4175 rm -f conftest$ac_exeext
4176 if { (eval echo "$as_me:4176: \"$ac_link\"") >&5
4177 (eval $ac_link) 2>&5
4178 ac_status=$?
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4181 { (eval echo "$as_me:4181: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:4184: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 :
4187 else
4188 echo "$as_me: program exited with status $ac_status" >&5
4189 echo "$as_me: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4191 ac_cv_header_stdc=no
4192 fi
4193 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194 fi
4195 fi
4196 fi
4197 echo "$as_me:4197: result: $ac_cv_header_stdc" >&5
4198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4199 if test $ac_cv_header_stdc = yes; then
4200
4201 cat >>confdefs.h <<\EOF
4202 #define STDC_HEADERS 1
4203 EOF
4204
4205 fi
4206
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4208
4209 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4210 inttypes.h stdint.h unistd.h
4211 do
4212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4213 echo "$as_me:4213: checking for $ac_header" >&5
4214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 cat >conftest.$ac_ext <<_ACEOF
4219 #line 4219 "configure"
4220 #include "confdefs.h"
4221 $ac_includes_default
4222 #include <$ac_header>
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:4225: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
4227 ac_status=$?
4228 echo "$as_me:4228: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:4231: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:4234: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 eval "$as_ac_Header=yes"
4237 else
4238 echo "$as_me: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4240 eval "$as_ac_Header=no"
4241 fi
4242 rm -f conftest.$ac_objext conftest.$ac_ext
4243 fi
4244 echo "$as_me:4244: result: `eval echo '${'$as_ac_Header'}'`" >&5
4245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4247 cat >>confdefs.h <<EOF
4248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 EOF
4250
4251 fi
4252 done
4253
4254 echo "$as_me:4254: checking for time_t" >&5
4255 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
4256 if test "${ac_cv_type_time_t+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 cat >conftest.$ac_ext <<_ACEOF
4260 #line 4260 "configure"
4261 #include "confdefs.h"
4262 $ac_includes_default
4263 int
4264 main ()
4265 {
4266 if ((time_t *) 0)
4267 return 0;
4268 if (sizeof (time_t))
4269 return 0;
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:4275: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>&5
4277 ac_status=$?
4278 echo "$as_me:4278: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:4281: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:4284: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 ac_cv_type_time_t=yes
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4290 ac_cv_type_time_t=no
4291 fi
4292 rm -f conftest.$ac_objext conftest.$ac_ext
4293 fi
4294 echo "$as_me:4294: result: $ac_cv_type_time_t" >&5
4295 echo "${ECHO_T}$ac_cv_type_time_t" >&6
4296 if test $ac_cv_type_time_t = yes; then
4297 :
4298 else
4299
4300 cat >>confdefs.h <<EOF
4301 #define time_t long
4302 EOF
4303
4304 fi
4305
4306 echo "$as_me:4306: checking for cc_t in <termios.h> or <termio.h>" >&5
4307 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
4308 if test "${cf_cv_type_cc_t+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311
4312 cat >conftest.$ac_ext <<_ACEOF
4313 #line 4313 "configure"
4314 #include "confdefs.h"
4315
4316 #include <sys/types.h>
4317 #if defined(HAVE_TERMIOS_H)
4318 #include <termios.h>
4319 #else
4320 #include <termio.h>
4321 #include <sys/ioctl.h>
4322 #endif
4323
4324 int
4325 main ()
4326 {
4327 cc_t x
4328 ;
4329 return 0;
4330 }
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:4333: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4335 ac_status=$?
4336 echo "$as_me:4336: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:4339: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:4342: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 cf_cv_type_cc_t=yes
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 cf_cv_type_cc_t=no
4349 fi
4350 rm -f conftest.$ac_objext conftest.$ac_ext
4351
4352 fi
4353
4354 echo "$as_me:4354: result: $cf_cv_type_cc_t" >&5
4355 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
4356 test $cf_cv_type_cc_t = no &&
4357 cat >>confdefs.h <<\EOF
4358 #define cc_t unsigned char
4359 EOF
4360
4361 echo "$as_me:4361: checking for mode_t" >&5
4362 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4363 if test "${ac_cv_type_mode_t+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line 4367 "configure"
4368 #include "confdefs.h"
4369 $ac_includes_default
4370 int
4371 main ()
4372 {
4373 if ((mode_t *) 0)
4374 return 0;
4375 if (sizeof (mode_t))
4376 return 0;
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (eval echo "$as_me:4382: \"$ac_compile\"") >&5
4383 (eval $ac_compile) 2>&5
4384 ac_status=$?
4385 echo "$as_me:4385: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:4388: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:4391: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_type_mode_t=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4397 ac_cv_type_mode_t=no
4398 fi
4399 rm -f conftest.$ac_objext conftest.$ac_ext
4400 fi
4401 echo "$as_me:4401: result: $ac_cv_type_mode_t" >&5
4402 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4403 if test $ac_cv_type_mode_t = yes; then
4404 :
4405 else
4406
4407 cat >>confdefs.h <<EOF
4408 #define mode_t int
4409 EOF
4410
4411 fi
4412
4413 echo "$as_me:4413: checking for pid_t" >&5
4414 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4415 if test "${ac_cv_type_pid_t+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 cat >conftest.$ac_ext <<_ACEOF
4419 #line 4419 "configure"
4420 #include "confdefs.h"
4421 $ac_includes_default
4422 int
4423 main ()
4424 {
4425 if ((pid_t *) 0)
4426 return 0;
4427 if (sizeof (pid_t))
4428 return 0;
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 rm -f conftest.$ac_objext
4434 if { (eval echo "$as_me:4434: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>&5
4436 ac_status=$?
4437 echo "$as_me:4437: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -s conftest.$ac_objext'
4440 { (eval echo "$as_me:4440: \"$ac_try\"") >&5
4441 (eval $ac_try) 2>&5
4442 ac_status=$?
4443 echo "$as_me:4443: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_type_pid_t=yes
4446 else
4447 echo "$as_me: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4449 ac_cv_type_pid_t=no
4450 fi
4451 rm -f conftest.$ac_objext conftest.$ac_ext
4452 fi
4453 echo "$as_me:4453: result: $ac_cv_type_pid_t" >&5
4454 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4455 if test $ac_cv_type_pid_t = yes; then
4456 :
4457 else
4458
4459 cat >>confdefs.h <<EOF
4460 #define pid_t int
4461 EOF
4462
4463 fi
4464
4465 echo "$as_me:4465: checking for uid_t in sys/types.h" >&5
4466 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4467 if test "${ac_cv_type_uid_t+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line 4471 "configure"
4472 #include "confdefs.h"
4473 #include <sys/types.h>
4474
4475 _ACEOF
4476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4477 egrep "uid_t" >/dev/null 2>&1; then
4478 ac_cv_type_uid_t=yes
4479 else
4480 ac_cv_type_uid_t=no
4481 fi
4482 rm -rf conftest*
4483
4484 fi
4485 echo "$as_me:4485: result: $ac_cv_type_uid_t" >&5
4486 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4487 if test $ac_cv_type_uid_t = no; then
4488
4489 cat >>confdefs.h <<\EOF
4490 #define uid_t int
4491 EOF
4492
4493 cat >>confdefs.h <<\EOF
4494 #define gid_t int
4495 EOF
4496
4497 fi
4498
4499 echo "$as_me:4499: checking for off_t" >&5
4500 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4501 if test "${ac_cv_type_off_t+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line 4505 "configure"
4506 #include "confdefs.h"
4507 $ac_includes_default
4508 int
4509 main ()
4510 {
4511 if ((off_t *) 0)
4512 return 0;
4513 if (sizeof (off_t))
4514 return 0;
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:4520: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>&5
4522 ac_status=$?
4523 echo "$as_me:4523: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:4526: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:4529: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_cv_type_off_t=yes
4532 else
4533 echo "$as_me: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4535 ac_cv_type_off_t=no
4536 fi
4537 rm -f conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 echo "$as_me:4539: result: $ac_cv_type_off_t" >&5
4540 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4541 if test $ac_cv_type_off_t = yes; then
4542 :
4543 else
4544
4545 cat >>confdefs.h <<EOF
4546 #define off_t long
4547 EOF
4548
4549 fi
4550
4551 ### checks for library functions
4552
4553 for ac_func in \
4554 gethostname \
4555 getlogin \
4556 initgroups \
4557 mkdtemp \
4558 putenv \
4559 unsetenv \
4560 sched_yield \
4561 setpgid \
4562 strftime \
4563 tcgetattr \
4564 waitpid \
4565 wcswidth \
4566 wcwidth
4567 do
4568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4569 echo "$as_me:4569: checking for $ac_func" >&5
4570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4571 if eval "test \"\${$as_ac_var+set}\" = set"; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 cat >conftest.$ac_ext <<_ACEOF
4575 #line 4575 "configure"
4576 #include "confdefs.h"
4577 /* System header to define __stub macros and hopefully few prototypes,
4578 which can conflict with char $ac_func (); below. */
4579 #include <assert.h>
4580 /* Override any gcc2 internal prototype to avoid an error. */
4581 #ifdef __cplusplus
4582 extern "C"
4583 #endif
4584 /* We use char because int might match the return type of a gcc2
4585 builtin and then its argument prototype would still apply. */
4586 char $ac_func ();
4587 char (*f) ();
4588
4589 int
4590 main ()
4591 {
4592 /* The GNU C library defines this for functions which it implements
4593 to always fail with ENOSYS. Some functions are actually named
4594 something starting with __ and the normal name is an alias. */
4595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4596 choke me
4597 #else
4598 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
4599 #endif
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:4606: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>&5
4608 ac_status=$?
4609 echo "$as_me:4609: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:4612: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:4615: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 eval "$as_ac_var=yes"
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 eval "$as_ac_var=no"
4622 fi
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 fi
4625 echo "$as_me:4625: result: `eval echo '${'$as_ac_var'}'`" >&5
4626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4627 if test `eval echo '${'$as_ac_var'}'` = yes; then
4628 cat >>confdefs.h <<EOF
4629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4630 EOF
4631
4632 fi
4633 done
4634
4635 for ac_header in lastlog.h paths.h
4636 do
4637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 echo "$as_me:4638: checking for $ac_header" >&5
4639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line 4644 "configure"
4645 #include "confdefs.h"
4646 #include <$ac_header>
4647 _ACEOF
4648 if { (eval echo "$as_me:4648: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650 ac_status=$?
4651 egrep -v '^ *\+' conftest.er1 >conftest.err
4652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:4654: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_c_preproc_warn_flag
4658 else
4659 ac_cpp_err=
4660 fi
4661 else
4662 ac_cpp_err=yes
4663 fi
4664 if test -z "$ac_cpp_err"; then
4665 eval "$as_ac_Header=yes"
4666 else
4667 echo "$as_me: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4669 eval "$as_ac_Header=no"
4670 fi
4671 rm -f conftest.err conftest.$ac_ext
4672 fi
4673 echo "$as_me:4673: result: `eval echo '${'$as_ac_Header'}'`" >&5
4674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4676 cat >>confdefs.h <<EOF
4677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 EOF
4679
4680 fi
4681 done
4682
4683 echo "$as_me:4683: checking for lastlog path" >&5
4684 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
4685 if test "${cf_cv_path_lastlog+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688
4689 cat >conftest.$ac_ext <<_ACEOF
4690 #line 4690 "configure"
4691 #include "confdefs.h"
4692
4693 #include <sys/types.h>
4694 #ifdef HAVE_LASTLOG_H
4695 #include <lastlog.h>
4696 #else
4697 #ifdef HAVE_PATHS_H
4698 #include <paths.h>
4699 #endif
4700 #endif
4701 int
4702 main ()
4703 {
4704 char *path = _PATH_LASTLOG
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:4710: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>&5
4712 ac_status=$?
4713 echo "$as_me:4713: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:4716: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:4719: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 cf_cv_path_lastlog="_PATH_LASTLOG"
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 if test -f /usr/adm/lastlog ; then
4726 cf_cv_path_lastlog=/usr/adm/lastlog
4727 else
4728 cf_cv_path_lastlog=no
4729 fi
4730 fi
4731 rm -f conftest.$ac_objext conftest.$ac_ext
4732
4733 fi
4734 echo "$as_me:4734: result: $cf_cv_path_lastlog" >&5
4735 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
4736 test $cf_cv_path_lastlog != no &&
4737 cat >>confdefs.h <<\EOF
4738 #define USE_LASTLOG 1
4739 EOF
4740
4741 echo "$as_me:4741: checking for utmp implementation" >&5
4742 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
4743 if test "${cf_cv_have_utmp+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746
4747 cf_cv_have_utmp=no
4748 for cf_header in utmpx utmp ; do
4749 cf_utmp_includes="
4750 #include <sys/types.h>
4751 #include <${cf_header}.h>
4752 #define getutent getutxent
4753 #ifdef USE_LASTLOG
4754 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4755 #endif
4756 "
4757 cat >conftest.$ac_ext <<_ACEOF
4758 #line 4758 "configure"
4759 #include "confdefs.h"
4760 $cf_utmp_includes
4761 int
4762 main ()
4763 {
4764 struct $cf_header x;
4765 char *name = x.ut_name; /* utmp.h and compatible definitions */
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:4772: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>&5
4774 ac_status=$?
4775 echo "$as_me:4775: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:4778: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:4781: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 cf_cv_have_utmp=$cf_header
4784 break
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788
4789 cat >conftest.$ac_ext <<_ACEOF
4790 #line 4790 "configure"
4791 #include "confdefs.h"
4792 $cf_utmp_includes
4793 int
4794 main ()
4795 {
4796 struct $cf_header x;
4797 char *name = x.ut_user; /* utmpx.h must declare this */
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (eval echo "$as_me:4804: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:4807: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:4810: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:4813: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 cf_cv_have_utmp=$cf_header
4816 break
4817
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 fi
4822 rm -f conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 rm -f conftest.$ac_objext conftest.$ac_ext
4825 done
4826
4827 fi
4828 echo "$as_me:4828: result: $cf_cv_have_utmp" >&5
4829 echo "${ECHO_T}$cf_cv_have_utmp" >&6
4830
4831 if test $cf_cv_have_utmp != no ; then
4832
4833 cat >>confdefs.h <<\EOF
4834 #define HAVE_UTMP 1
4835 EOF
4836
4837 test $cf_cv_have_utmp = utmpx &&
4838 cat >>confdefs.h <<\EOF
4839 #define UTMPX_FOR_UTMP 1
4840 EOF
4841
4842 if test $cf_cv_have_utmp != no ; then
4843 echo "$as_me:4843: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
4844 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
4845 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848
4849 cat >conftest.$ac_ext <<_ACEOF
4850 #line 4850 "configure"
4851 #include "confdefs.h"
4852
4853 #include <sys/types.h>
4854 #include <${cf_cv_have_utmp}.h>
4855 int
4856 main ()
4857 {
4858 struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (eval echo "$as_me:4864: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>&5
4866 ac_status=$?
4867 echo "$as_me:4867: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:4870: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:4873: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 cf_cv_have_utmp_ut_host=yes
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 cf_cv_have_utmp_ut_host=no
4880 fi
4881 rm -f conftest.$ac_objext conftest.$ac_ext
4882
4883 fi
4884
4885 echo "$as_me:4885: result: $cf_cv_have_utmp_ut_host" >&5
4886 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
4887 test $cf_cv_have_utmp_ut_host != no &&
4888 cat >>confdefs.h <<\EOF
4889 #define HAVE_UTMP_UT_HOST 1
4890 EOF
4891
4892 fi
4893
4894 if test $cf_cv_have_utmp != no ; then
4895 echo "$as_me:4895: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
4896 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
4897 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900
4901 cat >conftest.$ac_ext <<_ACEOF
4902 #line 4902 "configure"
4903 #include "confdefs.h"
4904
4905 #include <sys/types.h>
4906 #include <${cf_cv_have_utmp}.h>
4907 int
4908 main ()
4909 {
4910 struct $cf_cv_have_utmp x; int y = x.ut_syslen
4911 ;
4912 return 0;
4913 }
4914 _ACEOF
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:4916: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>&5
4918 ac_status=$?
4919 echo "$as_me:4919: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:4922: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:4925: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 cf_cv_have_utmp_ut_syslen=yes
4928 else
4929 echo "$as_me: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4931 cf_cv_have_utmp_ut_syslen=no
4932 fi
4933 rm -f conftest.$ac_objext conftest.$ac_ext
4934
4935 fi
4936
4937 echo "$as_me:4937: result: $cf_cv_have_utmp_ut_syslen" >&5
4938 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
4939 test $cf_cv_have_utmp_ut_syslen != no &&
4940 cat >>confdefs.h <<\EOF
4941 #define HAVE_UTMP_UT_SYSLEN 1
4942 EOF
4943
4944 fi
4945
4946 if test $cf_cv_have_utmp != no ; then
4947 echo "$as_me:4947: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
4948 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
4949 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952
4953 cf_cv_have_utmp_ut_name=no
4954 cf_utmp_includes="
4955 #include <sys/types.h>
4956 #include <${cf_cv_have_utmp}.h>
4957 #define getutent getutxent
4958 #ifdef USE_LASTLOG
4959 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4960 #endif
4961 "
4962 for cf_header in ut_name ut_user ; do
4963 cat >conftest.$ac_ext <<_ACEOF
4964 #line 4964 "configure"
4965 #include "confdefs.h"
4966 $cf_utmp_includes
4967 int
4968 main ()
4969 {
4970 struct $cf_cv_have_utmp x;
4971 char *name = x.$cf_header;
4972
4973 ;
4974 return 0;
4975 }
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:4978: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>&5
4980 ac_status=$?
4981 echo "$as_me:4981: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:4984: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:4987: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 cf_cv_have_utmp_ut_name=$cf_header
4990 break
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 fi
4995 rm -f conftest.$ac_objext conftest.$ac_ext
4996 done
4997
4998 fi
4999 echo "$as_me:4999: result: $cf_cv_have_utmp_ut_name" >&5
5000 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
5001
5002 case $cf_cv_have_utmp_ut_name in #(vi
5003 no) #(vi
5004 { { echo "$as_me:5004: error: Cannot find declaration for ut.ut_name" >&5
5005 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
5006 { (exit 1); exit 1; }; }
5007 ;;
5008 ut_user)
5009
5010 cat >>confdefs.h <<\EOF
5011 #define ut_name ut_user
5012 EOF
5013
5014 ;;
5015 esac
5016 fi
5017
5018 if test $cf_cv_have_utmp != no ; then
5019 echo "$as_me:5019: checking for exit-status in $cf_cv_have_utmp" >&5
5020 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
5021 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024
5025 for cf_result in \
5026 ut_exit.__e_exit \
5027 ut_exit.e_exit \
5028 ut_exit.ut_e_exit \
5029 ut_exit.ut_exit
5030 do
5031 cat >conftest.$ac_ext <<_ACEOF
5032 #line 5032 "configure"
5033 #include "confdefs.h"
5034
5035 #include <sys/types.h>
5036 #include <${cf_cv_have_utmp}.h>
5037 int
5038 main ()
5039 {
5040 struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
5041 ;
5042 return 0;
5043 }
5044 _ACEOF
5045 rm -f conftest.$ac_objext
5046 if { (eval echo "$as_me:5046: \"$ac_compile\"") >&5
5047 (eval $ac_compile) 2>&5
5048 ac_status=$?
5049 echo "$as_me:5049: \$? = $ac_status" >&5
5050 (exit $ac_status); } &&
5051 { ac_try='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:5052: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:5055: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 cf_cv_have_utmp_ut_xstatus=$cf_result
5058 break
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5062 cf_cv_have_utmp_ut_xstatus=no
5063 fi
5064 rm -f conftest.$ac_objext conftest.$ac_ext
5065 done
5066
5067 fi
5068 echo "$as_me:5068: result: $cf_cv_have_utmp_ut_xstatus" >&5
5069 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
5070 if test $cf_cv_have_utmp_ut_xstatus != no ; then
5071
5072 cat >>confdefs.h <<\EOF
5073 #define HAVE_UTMP_UT_XSTATUS 1
5074 EOF
5075
5076 cat >>confdefs.h <<EOF
5077 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
5078 EOF
5079
5080 fi
5081 fi
5082
5083 if test $cf_cv_have_utmp != no ; then
5084 echo "$as_me:5084: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
5085 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
5086 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line 5091 "configure"
5092 #include "confdefs.h"
5093
5094 #include <sys/types.h>
5095 #include <${cf_cv_have_utmp}.h>
5096 int
5097 main ()
5098 {
5099 struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
5100 ;
5101 return 0;
5102 }
5103 _ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>&5
5107 ac_status=$?
5108 echo "$as_me:5108: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:5111: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:5114: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 cf_cv_have_utmp_ut_xtime=yes
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line 5121 "configure"
5122 #include "confdefs.h"
5123
5124 #include <sys/types.h>
5125 #include <${cf_cv_have_utmp}.h>
5126 int
5127 main ()
5128 {
5129 struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext
5135 if { (eval echo "$as_me:5135: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>&5
5137 ac_status=$?
5138 echo "$as_me:5138: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest.$ac_objext'
5141 { (eval echo "$as_me:5141: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:5144: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 cf_cv_have_utmp_ut_xtime=define
5147 else
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 cf_cv_have_utmp_ut_xtime=no
5151 fi
5152 rm -f conftest.$ac_objext conftest.$ac_ext
5153
5154 fi
5155 rm -f conftest.$ac_objext conftest.$ac_ext
5156
5157 fi
5158 echo "$as_me:5158: result: $cf_cv_have_utmp_ut_xtime" >&5
5159 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
5160 if test $cf_cv_have_utmp_ut_xtime != no ; then
5161
5162 cat >>confdefs.h <<\EOF
5163 #define HAVE_UTMP_UT_XTIME 1
5164 EOF
5165
5166 if test $cf_cv_have_utmp_ut_xtime = define ; then
5167
5168 cat >>confdefs.h <<\EOF
5169 #define ut_xtime ut_tv.tv_sec
5170 EOF
5171
5172 fi
5173 fi
5174 fi
5175
5176 if test $cf_cv_have_utmp != no ; then
5177 echo "$as_me:5177: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
5178 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
5179 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182
5183 cat >conftest.$ac_ext <<_ACEOF
5184 #line 5184 "configure"
5185 #include "confdefs.h"
5186
5187 #include <sys/types.h>
5188 #include <${cf_cv_have_utmp}.h>
5189 int
5190 main ()
5191 {
5192 struct $cf_cv_have_utmp x; long y = x.ut_session
5193 ;
5194 return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:5198: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>&5
5200 ac_status=$?
5201 echo "$as_me:5201: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:5204: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:5207: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 cf_cv_have_utmp_ut_session=yes
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5213 cf_cv_have_utmp_ut_session=no
5214 fi
5215 rm -f conftest.$ac_objext conftest.$ac_ext
5216
5217 fi
5218 echo "$as_me:5218: result: $cf_cv_have_utmp_ut_session" >&5
5219 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
5220 if test $cf_cv_have_utmp_ut_session != no ; then
5221
5222 cat >>confdefs.h <<\EOF
5223 #define HAVE_UTMP_UT_SESSION 1
5224 EOF
5225
5226 fi
5227 fi
5228
5229 echo "$as_me:5229: checking if $cf_cv_have_utmp is SYSV flavor" >&5
5230 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
5231 if test "${cf_cv_sysv_utmp+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234
5235 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line 5237 "configure"
5238 #include "confdefs.h"
5239
5240 #include <sys/types.h>
5241 #include <${cf_cv_have_utmp}.h>
5242 int
5243 main ()
5244 {
5245
5246 struct $cf_cv_have_utmp x;
5247 set${cf_prefix}ent ();
5248 get${cf_prefix}id(&x);
5249 put${cf_prefix}line(&x);
5250 end${cf_prefix}ent();
5251 ;
5252 return 0;
5253 }
5254 _ACEOF
5255 rm -f conftest.$ac_objext conftest$ac_exeext
5256 if { (eval echo "$as_me:5256: \"$ac_link\"") >&5
5257 (eval $ac_link) 2>&5
5258 ac_status=$?
5259 echo "$as_me:5259: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:5262: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:5265: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 cf_cv_sysv_utmp=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 cf_cv_sysv_utmp=no
5272 fi
5273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5274
5275 fi
5276 echo "$as_me:5276: result: $cf_cv_sysv_utmp" >&5
5277 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
5278 test $cf_cv_sysv_utmp = yes &&
5279 cat >>confdefs.h <<\EOF
5280 #define USE_SYSV_UTMP 1
5281 EOF
5282
5283 fi
5284
5285 for ac_header in lastlog.h
5286 do
5287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5288 echo "$as_me:5288: checking for $ac_header" >&5
5289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #line 5294 "configure"
5295 #include "confdefs.h"
5296 #include <$ac_header>
5297 _ACEOF
5298 if { (eval echo "$as_me:5298: \"$ac_cpp conftest.$ac_ext\"") >&5
5299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5300 ac_status=$?
5301 egrep -v '^ *\+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 echo "$as_me:5304: \$? = $ac_status" >&5
5305 (exit $ac_status); } >/dev/null; then
5306 if test -s conftest.err; then
5307 ac_cpp_err=$ac_c_preproc_warn_flag
5308 else
5309 ac_cpp_err=
5310 fi
5311 else
5312 ac_cpp_err=yes
5313 fi
5314 if test -z "$ac_cpp_err"; then
5315 eval "$as_ac_Header=yes"
5316 else
5317 echo "$as_me: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 eval "$as_ac_Header=no"
5320 fi
5321 rm -f conftest.err conftest.$ac_ext
5322 fi
5323 echo "$as_me:5323: result: `eval echo '${'$as_ac_Header'}'`" >&5
5324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5326 cat >>confdefs.h <<EOF
5327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5328 EOF
5329
5330 fi
5331 done
5332
5333 echo "$as_me:5333: checking for struct lastlog" >&5
5334 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
5335 if test "${cf_cv_struct_lastlog+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338
5339 if test "$cross_compiling" = yes; then
5340
5341 cf_cv_struct_lastlog=unknown
5342 else
5343 cat >conftest.$ac_ext <<_ACEOF
5344 #line 5344 "configure"
5345 #include "confdefs.h"
5346
5347 #include <sys/types.h>
5348 #include <time.h>
5349 #include <lastlog.h>
5350
5351 int main()
5352 {
5353 struct lastlog data;
5354 return (sizeof(data.ll_time) != sizeof(time_t));
5355 }
5356 _ACEOF
5357 rm -f conftest$ac_exeext
5358 if { (eval echo "$as_me:5358: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>&5
5360 ac_status=$?
5361 echo "$as_me:5361: \$? = $ac_status" >&5
5362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5363 { (eval echo "$as_me:5363: \"$ac_try\"") >&5
5364 (eval $ac_try) 2>&5
5365 ac_status=$?
5366 echo "$as_me:5366: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5368
5369 cf_cv_struct_lastlog=yes
5370 else
5371 echo "$as_me: program exited with status $ac_status" >&5
5372 echo "$as_me: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374
5375 cf_cv_struct_lastlog=no
5376 fi
5377 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5378 fi
5379 fi
5380 echo "$as_me:5380: result: $cf_cv_struct_lastlog" >&5
5381 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
5382
5383 test $cf_cv_struct_lastlog != no &&
5384 cat >>confdefs.h <<\EOF
5385 #define USE_STRUCT_LASTLOG 1
5386 EOF
5387
5388 for ac_header in \
5389 sys/param.h \
5390
5391 do
5392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5393 echo "$as_me:5393: checking for $ac_header" >&5
5394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line 5399 "configure"
5400 #include "confdefs.h"
5401 #include <$ac_header>
5402 _ACEOF
5403 if { (eval echo "$as_me:5403: \"$ac_cpp conftest.$ac_ext\"") >&5
5404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5405 ac_status=$?
5406 egrep -v '^ *\+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:5409: \$? = $ac_status" >&5
5410 (exit $ac_status); } >/dev/null; then
5411 if test -s conftest.err; then
5412 ac_cpp_err=$ac_c_preproc_warn_flag
5413 else
5414 ac_cpp_err=
5415 fi
5416 else
5417 ac_cpp_err=yes
5418 fi
5419 if test -z "$ac_cpp_err"; then
5420 eval "$as_ac_Header=yes"
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 eval "$as_ac_Header=no"
5425 fi
5426 rm -f conftest.err conftest.$ac_ext
5427 fi
5428 echo "$as_me:5428: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5431 cat >>confdefs.h <<EOF
5432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5433 EOF
5434
5435 fi
5436 done
5437
5438 echo "$as_me:5438: checking if POSIX saved-ids are supported" >&5
5439 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
5440 if test "${cf_cv_posix_saved_ids+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443
5444 cat >conftest.$ac_ext <<_ACEOF
5445 #line 5445 "configure"
5446 #include "confdefs.h"
5447
5448 #include <unistd.h>
5449 #ifdef HAVE_SYS_PARAM_H
5450 #include <sys/param.h> /* this may define "BSD" */
5451 #endif
5452
5453 int
5454 main ()
5455 {
5456
5457 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
5458 void *p = (void *) seteuid;
5459 int x = seteuid(geteuid());
5460 #elif defined(BSD) && (BSD >= 199103)
5461 /* The BSD's may implement the runtime check - and it fails.
5462 * However, saved-ids work almost like POSIX (close enough for most uses).
5463 */
5464 #else
5465 make an error
5466 #endif
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext conftest$ac_exeext
5473 if { (eval echo "$as_me:5473: \"$ac_link\"") >&5
5474 (eval $ac_link) 2>&5
5475 ac_status=$?
5476 echo "$as_me:5476: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -s conftest$ac_exeext'
5479 { (eval echo "$as_me:5479: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:5482: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 cf_cv_posix_saved_ids=yes
5485
5486 else
5487 echo "$as_me: failed program was:" >&5
5488 cat conftest.$ac_ext >&5
5489
5490 if test "$cross_compiling" = yes; then
5491 cf_cv_posix_saved_ids=unknown
5492 else
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line 5494 "configure"
5495 #include "confdefs.h"
5496
5497 #ifdef HAVE_STDLIB_H
5498 #include <stdlib.h>
5499 #endif
5500 #include <unistd.h>
5501 int main()
5502 {
5503 void *p = (void *) seteuid;
5504 long code = sysconf(_SC_SAVED_IDS);
5505 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
5506 }
5507 _ACEOF
5508 rm -f conftest$ac_exeext
5509 if { (eval echo "$as_me:5509: \"$ac_link\"") >&5
5510 (eval $ac_link) 2>&5
5511 ac_status=$?
5512 echo "$as_me:5512: \$? = $ac_status" >&5
5513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5514 { (eval echo "$as_me:5514: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:5517: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 cf_cv_posix_saved_ids=yes
5520 else
5521 echo "$as_me: program exited with status $ac_status" >&5
5522 echo "$as_me: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5524 cf_cv_posix_saved_ids=no
5525 fi
5526 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5527 fi
5528
5529 fi
5530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5531
5532 fi
5533 echo "$as_me:5533: result: $cf_cv_posix_saved_ids" >&5
5534 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
5535
5536 test "$cf_cv_posix_saved_ids" = yes &&
5537 cat >>confdefs.h <<\EOF
5538 #define HAVE_POSIX_SAVED_IDS 1
5539 EOF
5540
5541 # compute a reasonable value for $TERM to give tgetent(), since we may be
5542 # running in 'screen', which sets $TERMCAP to a specific entry that is not
5543 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
5544 # discard $TERMCAP.
5545 cf_TERMVAR=vt100
5546 if test -n "$TERMCAP"
5547 then
5548 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'`
5549 case "$cf_TERMCAP" in #(vi
5550 screen*.*) #(vi
5551 ;;
5552 *)
5553 cf_TERMVAR="$cf_TERMCAP"
5554 ;;
5555 esac
5556 fi
5557 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
5558
5559 echo "$as_me:5559: checking if we want full tgetent function" >&5
5560 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
5561
5562 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
5563 if test "${enable_full_tgetent+set}" = set; then
5564 enableval="$enable_full_tgetent"
5565 test "$enableval" != no && enableval=yes
5566 if test "$enableval" != "yes" ; then
5567 cf_full_tgetent=no
5568 else
5569 cf_full_tgetent=yes
5570 fi
5571 else
5572 enableval=yes
5573 cf_full_tgetent=yes
5574
5575 fi;
5576 echo "$as_me:5576: result: $cf_full_tgetent" >&5
5577 echo "${ECHO_T}$cf_full_tgetent" >&6
5578
5579 if test "$cf_full_tgetent" = yes ; then
5580 cf_test_message="full tgetent"
5581 else
5582 cf_test_message="tgetent"
5583 fi
5584
5585 echo "$as_me:5585: checking for $cf_test_message function" >&5
5586 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
5587 if test "${cf_cv_lib_tgetent+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590
5591 cf_save_LIBS="$LIBS"
5592 cf_cv_lib_tgetent=no
5593 if test "$cf_full_tgetent" = yes ; then
5594 cf_TERMLIB="otermcap termcap termlib ncurses curses"
5595 cf_TERMTST="buffer[0] == 0"
5596 else
5597 cf_TERMLIB="termlib ncurses curses"
5598 cf_TERMTST="0"
5599 fi
5600 for cf_termlib in '' $cf_TERMLIB ; do
5601 LIBS="$cf_save_LIBS"
5602 test -n "$cf_termlib" && LIBS="-l$cf_termlib $LIBS"
5603 if test "$cross_compiling" = yes; then
5604 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
5605 else
5606 cat >conftest.$ac_ext <<_ACEOF
5607 #line 5607 "configure"
5608 #include "confdefs.h"
5609
5610 /* terminfo implementations ignore the buffer argument, making it useless for
5611 * the xterm application, which uses this information to make a new TERMCAP
5612 * environment variable.
5613 */
5614 int main()
5615 {
5616 char buffer[1024];
5617 buffer[0] = 0;
5618 tgetent(buffer, "$cf_TERMVAR");
5619 ${cf_cv_main_return:-return} ($cf_TERMTST); }
5620 _ACEOF
5621 rm -f conftest$ac_exeext
5622 if { (eval echo "$as_me:5622: \"$ac_link\"") >&5
5623 (eval $ac_link) 2>&5
5624 ac_status=$?
5625 echo "$as_me:5625: \$? = $ac_status" >&5
5626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627 { (eval echo "$as_me:5627: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:5630: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
5633 if test -n "$cf_termlib" ; then
5634 cf_cv_lib_tgetent="-l$cf_termlib"
5635 else
5636 cf_cv_lib_tgetent=yes
5637 fi
5638 break
5639 else
5640 echo "$as_me: program exited with status $ac_status" >&5
5641 echo "$as_me: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5643 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
5644 fi
5645 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5646 fi
5647 done
5648 LIBS="$cf_save_LIBS"
5649
5650 fi
5651 echo "$as_me:5651: result: $cf_cv_lib_tgetent" >&5
5652 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
5653
5654 # If we found a working tgetent(), set LIBS and check for termcap.h.
5655 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
5656 # not have side effects other than setting the cache variable, because
5657 # they are not executed when a cached value exists.)
5658 if test "x$cf_cv_lib_tgetent" != xno ; then
5659 test "x$cf_cv_lib_tgetent" != xyes && LIBS="$cf_cv_lib_tgetent $LIBS"
5660
5661 cat >>confdefs.h <<\EOF
5662 #define USE_TERMCAP 1
5663 EOF
5664
5665 if test "$cf_full_tgetent" = no ; then
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line 5667 "configure"
5668 #include "confdefs.h"
5669
5670 #include <termcap.h>
5671 int
5672 main ()
5673 {
5674
5675 #ifdef NCURSES_VERSION
5676 make an error
5677 #endif
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (eval echo "$as_me:5683: \"$ac_compile\"") >&5
5684 (eval $ac_compile) 2>&5
5685 ac_status=$?
5686 echo "$as_me:5686: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:5689: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:5692: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 cat >>confdefs.h <<\EOF
5695 #define HAVE_TERMCAP_H 1
5696 EOF
5697
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
5701 fi
5702 rm -f conftest.$ac_objext conftest.$ac_ext
5703 else
5704
5705 for ac_header in termcap.h
5706 do
5707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5708 echo "$as_me:5708: checking for $ac_header" >&5
5709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713 cat >conftest.$ac_ext <<_ACEOF
5714 #line 5714 "configure"
5715 #include "confdefs.h"
5716 #include <$ac_header>
5717 _ACEOF
5718 if { (eval echo "$as_me:5718: \"$ac_cpp conftest.$ac_ext\"") >&5
5719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5720 ac_status=$?
5721 egrep -v '^ *\+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:5724: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null; then
5726 if test -s conftest.err; then
5727 ac_cpp_err=$ac_c_preproc_warn_flag
5728 else
5729 ac_cpp_err=
5730 fi
5731 else
5732 ac_cpp_err=yes
5733 fi
5734 if test -z "$ac_cpp_err"; then
5735 eval "$as_ac_Header=yes"
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5739 eval "$as_ac_Header=no"
5740 fi
5741 rm -f conftest.err conftest.$ac_ext
5742 fi
5743 echo "$as_me:5743: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5746 cat >>confdefs.h <<EOF
5747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 EOF
5749
5750 fi
5751 done
5752
5753 fi
5754 else
5755 # If we didn't find a tgetent() that supports the buffer
5756 # argument, look again to see whether we can find even
5757 # a crippled one. A crippled tgetent() is still useful to
5758 # validate values for the TERM environment variable given to
5759 # child processes.
5760 echo "$as_me:5760: checking for partial tgetent function" >&5
5761 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
5762 if test "${cf_cv_lib_part_tgetent+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765
5766 cf_cv_lib_part_tgetent=no
5767 for cf_termlib in $cf_TERMLIB ; do
5768 LIBS="$cf_save_LIBS -l$cf_termlib"
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line 5770 "configure"
5771 #include "confdefs.h"
5772
5773 int
5774 main ()
5775 {
5776 tgetent(0, "$cf_TERMVAR")
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:5782: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5784 ac_status=$?
5785 echo "$as_me:5785: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
5788 { (eval echo "$as_me:5788: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:5791: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
5794 cf_cv_lib_part_tgetent="-l$cf_termlib"
5795 break
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 fi
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801 done
5802 LIBS="$cf_save_LIBS"
5803
5804 fi
5805 echo "$as_me:5805: result: $cf_cv_lib_part_tgetent" >&5
5806 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
5807
5808 if test "$cf_cv_lib_part_tgetent" != no ; then
5809 LIBS="$cf_cv_lib_part_tgetent $LIBS"
5810
5811 for ac_header in termcap.h
5812 do
5813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5814 echo "$as_me:5814: checking for $ac_header" >&5
5815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line 5820 "configure"
5821 #include "confdefs.h"
5822 #include <$ac_header>
5823 _ACEOF
5824 if { (eval echo "$as_me:5824: \"$ac_cpp conftest.$ac_ext\"") >&5
5825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5826 ac_status=$?
5827 egrep -v '^ *\+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:5830: \$? = $ac_status" >&5
5831 (exit $ac_status); } >/dev/null; then
5832 if test -s conftest.err; then
5833 ac_cpp_err=$ac_c_preproc_warn_flag
5834 else
5835 ac_cpp_err=
5836 fi
5837 else
5838 ac_cpp_err=yes
5839 fi
5840 if test -z "$ac_cpp_err"; then
5841 eval "$as_ac_Header=yes"
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 eval "$as_ac_Header=no"
5846 fi
5847 rm -f conftest.err conftest.$ac_ext
5848 fi
5849 echo "$as_me:5849: result: `eval echo '${'$as_ac_Header'}'`" >&5
5850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5852 cat >>confdefs.h <<EOF
5853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5854 EOF
5855
5856 fi
5857 done
5858
5859 # If this is linking against ncurses, we'll trigger the
5860 # ifdef in resize.c that turns the termcap stuff back off.
5861
5862 cat >>confdefs.h <<\EOF
5863 #define USE_TERMINFO 1
5864 EOF
5865
5866 fi
5867 fi
5868
5869 echo "$as_me:5869: checking for X applications class" >&5
5870 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
5871
5872 # Check whether --with-app-class or --without-app-class was given.
5873 if test "${with_app_class+set}" = set; then
5874 withval="$with_app_class"
5875 APP_CLASS=$withval
5876 else
5877 APP_CLASS=XTerm
5878 fi;
5879
5880 case x$APP_CLASS in #(vi
5881 *[/@,%]*) #(vi
5882 { echo "$as_me:5882: WARNING: X applications class cannot contain punctuation" >&5
5883 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
5884 APP_CLASS=XTerm
5885 ;;
5886 x[A-Z]*) #(vi
5887 ;;
5888 *)
5889 { echo "$as_me:5889: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5
5890 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;}
5891 APP_CLASS=XTerm
5892 ;;
5893 esac
5894
5895 echo "$as_me:5895: result: $APP_CLASS" >&5
5896 echo "${ECHO_T}$APP_CLASS" >&6
5897
5898 echo "$as_me:5898: checking for directory to install resource files" >&5
5899 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
5900
5901 # Check whether --with-app-defaults or --without-app-defaults was given.
5902 if test "${with_app_defaults+set}" = set; then
5903 withval="$with_app_defaults"
5904 APPSDIR=$withval
5905 else
5906 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
5907 fi;
5908
5909 if test "x$APPSDIR" = xauto
5910 then
5911 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
5912 for cf_path in \
5913 /usr/share/X11/app-defaults \
5914 /usr/X11/share/X11/app-defaults \
5915 /usr/X11/lib/X11/app-defaults \
5916 /usr/lib/X11/app-defaults \
5917 /etc/X11/app-defaults \
5918 /usr/pkg/lib/X11/app-defaults \
5919 /usr/X11R7/lib/X11/app-defaults \
5920 /usr/X11R6/lib/X11/app-defaults \
5921 /usr/X11R5/lib/X11/app-defaults \
5922 /usr/X11R4/lib/X11/app-defaults \
5923 /usr/local/lib/X11/app-defaults \
5924 /usr/local/share/X11/app-defaults \
5925 /usr/lib64/X11/app-defaults
5926 do
5927 if test -d "$cf_path" ; then
5928 APPSDIR="$cf_path"
5929 break
5930 fi
5931 done
5932 else
5933 cf_path=$APPSDIR
5934
5935 if test "x$prefix" != xNONE; then
5936 cf_path_syntax="$prefix"
5937 else
5938 cf_path_syntax="$ac_default_prefix"
5939 fi
5940
5941 case ".$cf_path" in #(vi
5942 .\$\(*\)*|.\'*\'*) #(vi
5943 ;;
5944 ..|./*|.\\*) #(vi
5945 ;;
5946 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5947 ;;
5948 .\${*prefix}*|.\${*dir}*) #(vi
5949 eval cf_path="$cf_path"
5950 case ".$cf_path" in #(vi
5951 .NONE/*)
5952 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
5953 ;;
5954 esac
5955 ;; #(vi
5956 .no|.NONE/*)
5957 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
5958 ;;
5959 *)
5960 { { echo "$as_me:5960: error: expected a pathname, not \"$cf_path\"" >&5
5961 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
5962 { (exit 1); exit 1; }; }
5963 ;;
5964 esac
5965
5966 fi
5967
5968 echo "$as_me:5968: result: $APPSDIR" >&5
5969 echo "${ECHO_T}$APPSDIR" >&6
5970
5971 no_appsdir=
5972 if test "$APPSDIR" = no
5973 then
5974 no_appsdir="#"
5975 else
5976 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
5977 fi
5978
5979 echo "$as_me:5979: checking for the icon name" >&5
5980 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
5981
5982 # Check whether --with-icon-name or --without-icon-name was given.
5983 if test "${with_icon_name+set}" = set; then
5984 withval="$with_icon_name"
5985 ICON_NAME="$withval"
5986 else
5987 ICON_NAME=xterm-color
5988 fi;
5989 case "x$ICON_NAME" in
5990 xyes|xno|x)
5991 ICON_NAME=xterm-color
5992 ;;
5993 esac
5994
5995 echo "$as_me:5995: result: $ICON_NAME" >&5
5996 echo "${ECHO_T}$ICON_NAME" >&6
5997
5998 echo "$as_me:5998: checking for icon symlink to use" >&5
5999 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
6000
6001 # Check whether --with-icon-symlink or --without-icon-symlink was given.
6002 if test "${with_icon_symlink+set}" = set; then
6003 withval="$with_icon_symlink"
6004 ICON_SYMLINK="$withval"
6005 else
6006 ICON_SYMLINK=NONE
6007 fi;
6008 case "x$ICON_SYMLINK" in
6009 xyes)
6010 ICON_SYMLINK=xterm
6011 ;;
6012 xno|x)
6013 ICON_SYMLINK=NONE
6014 ;;
6015 esac
6016
6017 echo "$as_me:6017: result: $ICON_SYMLINK" >&5
6018 echo "${ECHO_T}$ICON_SYMLINK" >&6
6019
6020 echo "$as_me:6020: checking for directory to install pixmaps" >&5
6021 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
6022
6023 # Check whether --with-pixmapdir or --without-pixmapdir was given.
6024 if test "${with_pixmapdir+set}" = set; then
6025 withval="$with_pixmapdir"
6026 PIXMAPDIR=$withval
6027 else
6028 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
6029 fi;
6030
6031 if test "x$PIXMAPDIR" = xauto
6032 then
6033 PIXMAPDIR='${datadir}/pixmaps'
6034 for cf_path in \
6035 /usr/share/pixmaps \
6036 /usr/X11R6/share/pixmaps
6037 do
6038 if test -d "$cf_path" ; then
6039 PIXMAPDIR="$cf_path"
6040 break
6041 fi
6042 done
6043 else
6044 cf_path=$PIXMAPDIR
6045
6046 if test "x$prefix" != xNONE; then
6047 cf_path_syntax="$prefix"
6048 else
6049 cf_path_syntax="$ac_default_prefix"
6050 fi
6051
6052 case ".$cf_path" in #(vi
6053 .\$\(*\)*|.\'*\'*) #(vi
6054 ;;
6055 ..|./*|.\\*) #(vi
6056 ;;
6057 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6058 ;;
6059 .\${*prefix}*|.\${*dir}*) #(vi
6060 eval cf_path="$cf_path"
6061 case ".$cf_path" in #(vi
6062 .NONE/*)
6063 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6064 ;;
6065 esac
6066 ;; #(vi
6067 .no|.NONE/*)
6068 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6069 ;;
6070 *)
6071 { { echo "$as_me:6071: error: expected a pathname, not \"$cf_path\"" >&5
6072 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
6073 { (exit 1); exit 1; }; }
6074 ;;
6075 esac
6076
6077 fi
6078 echo "$as_me:6078: result: $PIXMAPDIR" >&5
6079 echo "${ECHO_T}$PIXMAPDIR" >&6
6080
6081 no_pixmapdir=
6082 if test "$PIXMAPDIR" = no
6083 then
6084 no_pixmapdir="#"
6085 else
6086 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
6087 fi
6088
6089 echo "$as_me:6089: checking for directory to install icons" >&5
6090 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
6091
6092 # Check whether --with-icondir or --without-icondir was given.
6093 if test "${with_icondir+set}" = set; then
6094 withval="$with_icondir"
6095 ICONDIR=$withval
6096 else
6097 test -z "$ICONDIR" && ICONDIR=no
6098 fi;
6099
6100 if test "x$ICONDIR" = xauto
6101 then
6102 ICONDIR='${datadir}/icons'
6103 for cf_path in \
6104 /usr/share/icons \
6105 /usr/X11R6/share/icons
6106 do
6107 if test -d "$cf_path" ; then
6108 ICONDIR="$cf_path"
6109 break
6110 fi
6111 done
6112 else
6113 cf_path=$ICONDIR
6114
6115 if test "x$prefix" != xNONE; then
6116 cf_path_syntax="$prefix"
6117 else
6118 cf_path_syntax="$ac_default_prefix"
6119 fi
6120
6121 case ".$cf_path" in #(vi
6122 .\$\(*\)*|.\'*\'*) #(vi
6123 ;;
6124 ..|./*|.\\*) #(vi
6125 ;;
6126 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6127 ;;
6128 .\${*prefix}*|.\${*dir}*) #(vi
6129 eval cf_path="$cf_path"
6130 case ".$cf_path" in #(vi
6131 .NONE/*)
6132 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6133 ;;
6134 esac
6135 ;; #(vi
6136 .no|.NONE/*)
6137 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
6138 ;;
6139 *)
6140 { { echo "$as_me:6140: error: expected a pathname, not \"$cf_path\"" >&5
6141 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
6142 { (exit 1); exit 1; }; }
6143 ;;
6144 esac
6145
6146 fi
6147 echo "$as_me:6147: result: $ICONDIR" >&5
6148 echo "${ECHO_T}$ICONDIR" >&6
6149
6150 no_icondir=
6151 if test "$ICONDIR" = no
6152 then
6153 no_icondir="#"
6154 else
6155 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
6156 fi
6157
6158 echo "$as_me:6158: checking if icon theme should be used" >&5
6159 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
6160
6161 # Check whether --with-icon-theme or --without-icon-theme was given.
6162 if test "${with_icon_theme+set}" = set; then
6163 withval="$with_icon_theme"
6164 ICON_THEME=$withval
6165 else
6166 ICON_THEME=no
6167 fi;
6168
6169 case "x$ICON_THEME" in #(vi
6170 xno) #(vi
6171 ;;
6172 x|xyes)
6173 ICON_THEME=hicolor
6174 ;;
6175 esac
6176 echo "$as_me:6176: result: $ICON_THEME" >&5
6177 echo "${ECHO_T}$ICON_THEME" >&6
6178
6179 if test "x$ICON_THEME" = xno
6180 then
6181 if test "x$ICONDIR" != xno
6182 then
6183 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6
6184
6185 echo "${as_me:-configure}:6185: testing ignoring icondir without theme ..." 1>&5
6186
6187 no_icondir="#"
6188 fi
6189 else
6190 if test "x$ICONDIR" = xno
6191 then
6192 { { echo "$as_me:6192: error: icondir must be set for icon theme" >&5
6193 echo "$as_me: error: icondir must be set for icon theme" >&2;}
6194 { (exit 1); exit 1; }; }
6195 fi
6196 fi
6197
6198 : ${ICON_FORMAT:=".svg .png .xpm"}
6199
6200 # ICON_NAME=
6201 ICON_LIST=
6202
6203 if test "x$ICON_THEME" != xno
6204 then
6205 cf_icon_list="icons/$ICON_NAME icons/${ICON_NAME}_48x48"
6206 else
6207 cf_icon_list="icons/${ICON_NAME}_48x48"
6208 fi
6209
6210 echo "$as_me:6210: checking for icon(s) to install" >&5
6211 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
6212 for cf_name in $cf_icon_list
6213 do
6214 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6
6215
6216 echo "${as_me:-configure}:6216: testing using $ICON_FORMAT ..." 1>&5
6217
6218 for cf_suffix in $ICON_FORMAT
6219 do
6220 cf_icon="${cf_name}${cf_suffix}"
6221 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
6222 if test ! -f "${cf_left}"
6223 then
6224 if test "x$srcdir" != "x."
6225 then
6226 cf_icon="${srcdir}/${cf_left}"
6227 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
6228 if test ! -f "${cf_left}"
6229 then
6230 continue
6231 fi
6232 else
6233 continue
6234 fi
6235 fi
6236 if test "x$ICON_THEME" != xno
6237 then
6238 cf_base=`basename $cf_left`
6239 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'`
6240 case "x${cf_base}" in #(vi
6241 *:*) #(vi
6242 cf_next=$cf_base
6243 # user-defined mapping
6244 ;;
6245 *.png) #(vi
6246 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'`
6247 if test -z "$cf_size"
6248 then
6249 { echo "$as_me:6249: WARNING: cannot determine size of $cf_left" >&5
6250 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
6251 continue
6252 fi
6253 cf_next="$cf_size/apps/$cf_trim"
6254 ;;
6255 *.svg) #(vi
6256 cf_next="scalable/apps/$cf_trim"
6257 ;;
6258 *.xpm)
6259 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6
6260
6261 echo "${as_me:-configure}:6261: testing ignored XPM file in icon theme ..." 1>&5
6262
6263 continue
6264 ;;
6265 *_[0-9][0-9]*x[0-9][0-9]*.*) #(vi
6266 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'`
6267 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
6268 cf_next="$cf_size/apps/$cf_base"
6269 ;;
6270 esac
6271 test -n "$verbose" && echo " adding $cf_next" 1>&6
6272
6273 echo "${as_me:-configure}:6273: testing adding $cf_next ..." 1>&5
6274
6275 cf_icon="${cf_icon}:${cf_next}"
6276 fi
6277 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
6278 ICON_LIST="$ICON_LIST${cf_icon}"
6279 if test -z "$ICON_NAME"
6280 then
6281 ICON_NAME=`basename $cf_icon | sed -e 's/[.:].*//'`
6282 fi
6283 done
6284 done
6285
6286 if test -n "$verbose"
6287 then
6288 echo "$as_me:6288: checking result" >&5
6289 echo $ECHO_N "checking result... $ECHO_C" >&6
6290 fi
6291 echo "$as_me:6291: result: $ICON_LIST" >&5
6292 echo "${ECHO_T}$ICON_LIST" >&6
6293
6294 if test -z "$ICON_LIST"
6295 then
6296 { { echo "$as_me:6296: error: no icons found" >&5
6297 echo "$as_me: error: no icons found" >&2;}
6298 { (exit 1); exit 1; }; }
6299 fi
6300
6301 echo "$as_me:6301: checking for icon name" >&5
6302 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
6303 echo "$as_me:6303: result: $ICON_NAME" >&5
6304 echo "${ECHO_T}$ICON_NAME" >&6
6305
6306 # Comment-out the install-desktop rule if the desktop-utils are not found.
6307 echo "$as_me:6307: checking if you want to install desktop files" >&5
6308 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
6309
6310 # Check whether --enable-desktop or --disable-desktop was given.
6311 if test "${enable_desktop+set}" = set; then
6312 enableval="$enable_desktop"
6313 test "$enableval" != no && enableval=yes
6314 if test "$enableval" != "yes" ; then
6315 enable_desktop=$enableval
6316 else
6317 enable_desktop=$enableval
6318 fi
6319 else
6320 enableval=yes
6321 enable_desktop=$enableval
6322
6323 fi;
6324 echo "$as_me:6324: result: $enable_desktop" >&5
6325 echo "${ECHO_T}$enable_desktop" >&6
6326
6327 desktop_utils=
6328 if test "$enable_desktop" = yes ; then
6329 # Extract the first word of "desktop-file-install", so it can be a program name with args.
6330 set dummy desktop-file-install; ac_word=$2
6331 echo "$as_me:6331: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6333 if test "${ac_cv_prog_desktop_utils+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 if test -n "$desktop_utils"; then
6337 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
6338 else
6339 ac_save_IFS=$IFS; IFS=$ac_path_separator
6340 ac_dummy="$PATH"
6341 for ac_dir in $ac_dummy; do
6342 IFS=$ac_save_IFS
6343 test -z "$ac_dir" && ac_dir=.
6344 $as_executable_p "$ac_dir/$ac_word" || continue
6345 ac_cv_prog_desktop_utils="yes"
6346 echo "$as_me:6346: found $ac_dir/$ac_word" >&5
6347 break
6348 done
6349
6350 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
6351 fi
6352 fi
6353 desktop_utils=$ac_cv_prog_desktop_utils
6354 if test -n "$desktop_utils"; then
6355 echo "$as_me:6355: result: $desktop_utils" >&5
6356 echo "${ECHO_T}$desktop_utils" >&6
6357 else
6358 echo "$as_me:6358: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6360 fi
6361
6362 fi
6363
6364 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
6365
6366 if test -z "$desktop_utils"
6367 then
6368 echo "$as_me:6368: checking for requested desktop-category" >&5
6369 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
6370
6371 # Check whether --with-desktop-category or --without-desktop-category was given.
6372 if test "${with_desktop_category+set}" = set; then
6373 withval="$with_desktop_category"
6374 cf_desktop_want=$withval
6375 else
6376 cf_desktop_want=auto
6377 fi;
6378 echo "$as_me:6378: result: $cf_desktop_want" >&5
6379 echo "${ECHO_T}$cf_desktop_want" >&6
6380
6381 if test "$cf_desktop_want" = auto
6382 then
6383 rm -rf conftest*
6384 cf_desktop_also=
6385 for cf_desktop_dir in \
6386 /usr/share/app-install \
6387 /usr/share/applications
6388 do
6389 if test -d $cf_desktop_dir
6390 then
6391 find $cf_desktop_dir -name '*.desktop' | \
6392 while true
6393 do
6394 read cf_desktop_path
6395 test -z "$cf_desktop_path" && break
6396 cf_desktop_name=`basename $cf_desktop_path .desktop`
6397 case $cf_desktop_name in #(vi
6398 xterm|*-xterm|*rxvt*|konsole|*-terminal)
6399 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6
6400
6401 echo "${as_me:-configure}:6401: testing inspect $cf_desktop_path ..." 1>&5
6402
6403 egrep '^Categories=' $cf_desktop_path | \
6404 tr ';' '\n' | \
6405 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1
6406 ;;
6407 esac
6408 done
6409 fi
6410 done
6411 if test -s conftest.1
6412 then
6413 cf_desktop_last=
6414 sort conftest.1 | \
6415 while true
6416 do
6417 read cf_desktop_this
6418 test -z "$cf_desktop_this" && break
6419 case $cf_desktop_this in #(vi
6420 Qt*|GTK*|KDE*|GNOME*|*XFCE*|*Xfce*) #(vi
6421 ;;
6422 System|TerminalEmulator|Utility|*)
6423 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo $cf_desktop_this >>conftest.2
6424 ;;
6425 esac
6426 cf_desktop_last=$cf_desktop_this
6427 done
6428 cf_desktop_want=`cat conftest.2 | tr '\n' ';'`
6429 fi
6430 if test -n "$cf_desktop_want"
6431 then
6432 if test "$cf_desktop_want" = auto
6433 then
6434 cf_desktop_want=
6435 else
6436 # do a sanity check on the semicolon-separated list, ignore on failure
6437 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'`
6438 test -z "$cf_desktop_test" && cf_desktop_want=
6439 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
6440 test -z "$cf_desktop_test" && cf_desktop_want=
6441 fi
6442 fi
6443 if test -z "$cf_desktop_want"
6444 then
6445 cf_desktop_want="`echo "System|TerminalEmulator|Utility|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
6446 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6
6447
6448 echo "${as_me:-configure}:6448: testing no usable value found for desktop category ..." 1>&5
6449
6450 fi
6451 fi
6452 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
6453 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6
6454
6455 echo "${as_me:-configure}:6455: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5
6456
6457 fi
6458
6459 echo "$as_me:6459: checking for install-permissions reference" >&5
6460 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
6461
6462 # Check whether --with-reference or --without-reference was given.
6463 if test "${with_reference+set}" = set; then
6464 withval="$with_reference"
6465 with_reference=$withval
6466 else
6467 with_reference=xterm
6468 fi;
6469 echo "$as_me:6469: result: $with_reference" >&5
6470 echo "${ECHO_T}$with_reference" >&6
6471
6472 with_full_paths=yes
6473
6474 echo "$as_me:6474: checking for PATH separator" >&5
6475 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
6476 case $cf_cv_system_name in
6477 os2*) PATH_SEPARATOR=';' ;;
6478 *) ${PATH_SEPARATOR:=':'} ;;
6479 esac
6480
6481 echo "$as_me:6481: result: $PATH_SEPARATOR" >&5
6482 echo "${ECHO_T}$PATH_SEPARATOR" >&6
6483
6484 test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
6485 for ac_prog in $XTERM_PATH $with_reference
6486 do
6487 # Extract the first word of "$ac_prog", so it can be a program name with args.
6488 set dummy $ac_prog; ac_word=$2
6489 echo "$as_me:6489: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 case $XTERM_PATH in
6495 [\\/]* | ?:[\\/]*)
6496 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
6497 ;;
6498 *)
6499 ac_save_IFS=$IFS; IFS=$ac_path_separator
6500 ac_dummy="$PATH"
6501 for ac_dir in $ac_dummy; do
6502 IFS=$ac_save_IFS
6503 test -z "$ac_dir" && ac_dir=.
6504 if $as_executable_p "$ac_dir/$ac_word"; then
6505 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
6506 echo "$as_me:6506: found $ac_dir/$ac_word" >&5
6507 break
6508 fi
6509 done
6510
6511 ;;
6512 esac
6513 fi
6514 XTERM_PATH=$ac_cv_path_XTERM_PATH
6515
6516 if test -n "$XTERM_PATH"; then
6517 echo "$as_me:6517: result: $XTERM_PATH" >&5
6518 echo "${ECHO_T}$XTERM_PATH" >&6
6519 else
6520 echo "$as_me:6520: result: no" >&5
6521 echo "${ECHO_T}no" >&6
6522 fi
6523
6524 test -n "$XTERM_PATH" && break
6525 done
6526 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
6527
6528 cf_path_prog=""
6529 cf_path_args=""
6530 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
6531 for cf_temp in $ac_cv_path_XTERM_PATH
6532 do
6533 if test -z "$cf_path_prog" ; then
6534 if test "$with_full_paths" = yes ; then
6535
6536 if test "x$prefix" != xNONE; then
6537 cf_path_syntax="$prefix"
6538 else
6539 cf_path_syntax="$ac_default_prefix"
6540 fi
6541
6542 case ".$cf_temp" in #(vi
6543 .\$\(*\)*|.\'*\'*) #(vi
6544 ;;
6545 ..|./*|.\\*) #(vi
6546 ;;
6547 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
6548 ;;
6549 .\${*prefix}*|.\${*dir}*) #(vi
6550 eval cf_temp="$cf_temp"
6551 case ".$cf_temp" in #(vi
6552 .NONE/*)
6553 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
6554 ;;
6555 esac
6556 ;; #(vi
6557 .no|.NONE/*)
6558 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
6559 ;;
6560 *)
6561 break
6562 ;;
6563 esac
6564
6565 cf_path_prog="$cf_temp"
6566 else
6567 cf_path_prog="`basename $cf_temp`"
6568 fi
6569 elif test -z "$cf_path_args" ; then
6570 cf_path_args="$cf_temp"
6571 else
6572 cf_path_args="$cf_path_args $cf_temp"
6573 fi
6574 done
6575 IFS="$cf_save_ifs"
6576
6577 if test -n "$cf_path_prog" ; then
6578
6579 echo "${as_me:-configure}:6579: testing defining path for ${cf_path_prog} ..." 1>&5
6580
6581 cat >>confdefs.h <<EOF
6582 #define XTERM_PATH_PATH "$cf_path_prog"
6583 EOF
6584
6585 test -n "$cf_path_args" &&
6586 cat >>confdefs.h <<EOF
6587 #define XTERM_PATH_ARGS "$cf_path_args"
6588 EOF
6589
6590 fi
6591
6592 # If any of --program-prefix, --program-suffix or --program-transform-name is
6593 # given, accept an option tell the makefile to create a symbolic link, e.g.,
6594 # to "xterm" on install.
6595 XTERM_SYMLINK=NONE
6596
6597 if test "$program_transform_name" != "'s,,,'" ; then
6598 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
6599 cf_name=`echo xterm |sed -e "$cf_name"`
6600 echo "$as_me:6600: checking for symbolic link to create to $cf_name" >&5
6601 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
6602
6603 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
6604 if test "${with_xterm_symlink+set}" = set; then
6605 withval="$with_xterm_symlink"
6606 with_symlink=$withval
6607 else
6608 with_symlink=xterm
6609 fi;
6610 echo "$as_me:6610: result: $with_symlink" >&5
6611 echo "${ECHO_T}$with_symlink" >&6
6612 test "$with_symlink" = yes && with_symlink=xterm
6613 test -n "$with_symlink" && \
6614 test "$with_symlink" != no && \
6615 test "$with_symlink" != $cf_name && \
6616 XTERM_SYMLINK="$with_symlink"
6617 fi
6618
6619 echo "$as_me:6619: checking if you want to disable openpty" >&5
6620 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
6621
6622 # Check whether --enable-openpty or --disable-openpty was given.
6623 if test "${enable_openpty+set}" = set; then
6624 enableval="$enable_openpty"
6625 test "$enableval" != no && enableval=yes
6626 if test "$enableval" != "yes" ; then
6627 disable_openpty=yes
6628 else
6629 disable_openpty=no
6630 fi
6631 else
6632 enableval=yes
6633 disable_openpty=no
6634
6635 fi;
6636 echo "$as_me:6636: result: $disable_openpty" >&5
6637 echo "${ECHO_T}$disable_openpty" >&6
6638
6639 echo "$as_me:6639: checking if you want to disable setuid" >&5
6640 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
6641
6642 # Check whether --enable-setuid or --disable-setuid was given.
6643 if test "${enable_setuid+set}" = set; then
6644 enableval="$enable_setuid"
6645 test "$enableval" != no && enableval=yes
6646 if test "$enableval" != "yes" ; then
6647 disable_setuid=yes
6648 else
6649 disable_setuid=no
6650 fi
6651 else
6652 enableval=yes
6653 disable_setuid=no
6654
6655 fi;
6656 echo "$as_me:6656: result: $disable_setuid" >&5
6657 echo "${ECHO_T}$disable_setuid" >&6
6658
6659 echo "$as_me:6659: checking if you want to disable setgid" >&5
6660 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
6661
6662 # Check whether --enable-setgid or --disable-setgid was given.
6663 if test "${enable_setgid+set}" = set; then
6664 enableval="$enable_setgid"
6665 test "$enableval" != no && enableval=yes
6666 if test "$enableval" != "yes" ; then
6667 disable_setgid=yes
6668 else
6669 disable_setgid=no
6670 fi
6671 else
6672 enableval=yes
6673 disable_setgid=no
6674
6675 fi;
6676 echo "$as_me:6676: result: $disable_setgid" >&5
6677 echo "${ECHO_T}$disable_setgid" >&6
6678
6679 echo "$as_me:6679: checking if you want to run xterm setuid to a given user" >&5
6680 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
6681
6682 # Check whether --with-setuid or --without-setuid was given.
6683 if test "${with_setuid+set}" = set; then
6684 withval="$with_setuid"
6685 use_given_setuid=$withval
6686 else
6687 use_given_setuid=no
6688 fi;
6689 echo "$as_me:6689: result: $use_given_setuid" >&5
6690 echo "${ECHO_T}$use_given_setuid" >&6
6691
6692 if test "$use_given_setuid" != no ; then
6693 if test "$use_given_setuid" = yes ; then
6694 cf_cv_given_setuid=root
6695 else
6696 cf_cv_given_setuid=$use_given_setuid
6697 fi
6698 # inherit SINSTALL_OPTS from environment to allow packager to customize it.
6699 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
6700 fi
6701
6702 echo "$as_me:6702: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
6703 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
6704
6705 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
6706 if test "${with_utmp_setgid+set}" = set; then
6707 withval="$with_utmp_setgid"
6708 use_utmp_setgid=$withval
6709 else
6710 use_utmp_setgid=no
6711 fi;
6712 echo "$as_me:6712: result: $use_utmp_setgid" >&5
6713 echo "${ECHO_T}$use_utmp_setgid" >&6
6714
6715 if test "$use_utmp_setgid" != no ; then
6716 if test "$use_utmp_setgid" = yes ; then
6717
6718 if test $cf_cv_have_utmp != no ; then
6719 echo "$as_me:6719: checking for utmp/utmpx group" >&5
6720 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
6721 if test "${cf_cv_utmp_group+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724
6725 for cf_utmp_path in /var/adm /var/run
6726 do
6727 for cf_utmp_file in utmpx utmp
6728 do
6729 if test -f $cf_utmp_path/$cf_utmp_file
6730 then
6731 cf_cv_utmp_group=root
6732
6733 cf_option="-l -L"
6734
6735 # Expect listing to have fields like this:
6736 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname
6737 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
6738 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
6739 if test -z "$cf_rest" ; then
6740 cf_option="$cf_option -g"
6741 ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
6742 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
6743 fi
6744 rm -f conftest
6745
6746 # If we have a pathname, and the date fields look right, assume we've
6747 # captured the group as well.
6748 if test -n "$cf_rest" ; then
6749 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
6750 if test -z "$cf_test" ; then
6751 cf_cv_utmp_group=$cf_grp;
6752 fi
6753 fi
6754 break
6755 fi
6756 done
6757 test -n "$cf_cv_utmp_group" && break
6758 done
6759
6760 fi
6761 echo "$as_me:6761: result: $cf_cv_utmp_group" >&5
6762 echo "${ECHO_T}$cf_cv_utmp_group" >&6
6763 else
6764 { { echo "$as_me:6764: error: cannot find utmp group" >&5
6765 echo "$as_me: error: cannot find utmp group" >&2;}
6766 { (exit 1); exit 1; }; }
6767 fi
6768
6769 else
6770 cf_cv_utmp_group=$use_utmp_setgid
6771 fi
6772 if test "$cf_cv_posix_saved_ids" != yes ; then
6773 { { echo "$as_me:6773: error: Your system does not support POSIX saved-ids" >&5
6774 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
6775 { (exit 1); exit 1; }; }
6776 fi
6777
6778 cat >>confdefs.h <<\EOF
6779 #define USE_UTMP_SETGID 1
6780 EOF
6781
6782 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
6783 fi
6784
6785 echo "$as_me:6785: checking if you want to link with utempter" >&5
6786 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
6787
6788 # Check whether --with-utempter or --without-utempter was given.
6789 if test "${with_utempter+set}" = set; then
6790 withval="$with_utempter"
6791 use_utempter=$withval
6792 else
6793 use_utempter=no
6794 fi;
6795 echo "$as_me:6795: result: $use_utempter" >&5
6796 echo "${ECHO_T}$use_utempter" >&6
6797
6798 if test "$use_utempter" = yes ; then
6799
6800 echo "$as_me:6800: checking if we can link with utempter library" >&5
6801 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
6802 if test "${cf_cv_have_utempter+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805
6806 cf_save_LIBS="$LIBS"
6807 LIBS="-lutempter $LIBS"
6808 cat >conftest.$ac_ext <<_ACEOF
6809 #line 6809 "configure"
6810 #include "confdefs.h"
6811
6812 #include <utempter.h>
6813
6814 int
6815 main ()
6816 {
6817
6818 addToUtmp("/dev/tty", 0, 1);
6819 removeFromUtmp();
6820
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 rm -f conftest.$ac_objext conftest$ac_exeext
6826 if { (eval echo "$as_me:6826: \"$ac_link\"") >&5
6827 (eval $ac_link) 2>&5
6828 ac_status=$?
6829 echo "$as_me:6829: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -s conftest$ac_exeext'
6832 { (eval echo "$as_me:6832: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:6835: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837
6838 cf_cv_have_utempter=yes
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6842
6843 cf_cv_have_utempter=no
6844 fi
6845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6846 LIBS="$cf_save_LIBS"
6847
6848 fi
6849 echo "$as_me:6849: result: $cf_cv_have_utempter" >&5
6850 echo "${ECHO_T}$cf_cv_have_utempter" >&6
6851 if test "$cf_cv_have_utempter" = yes ; then
6852
6853 cat >>confdefs.h <<\EOF
6854 #define USE_UTEMPTER 1
6855 EOF
6856
6857 LIBS="-lutempter $LIBS"
6858 fi
6859
6860 test "$cf_cv_have_utempter" != yes && use_utempter=no
6861 else
6862 use_utempter=no
6863 fi
6864
6865 # Some configurations permit (or require) either setuid or setgid mode.
6866 # Let the user decide.
6867 if test "$use_utempter" = yes ; then
6868 if test "${enable_setuid+set}" != set ; then
6869 disable_setuid=yes
6870 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
6871
6872 echo "${as_me:-configure}:6872: testing No --disable-setuid option given, force to yes ..." 1>&5
6873
6874 fi
6875 fi
6876
6877 ### checks for external data
6878
6879 echo "$as_me:6879: checking if external errno is declared" >&5
6880 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
6881 if test "${cf_cv_dcl_errno+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884
6885 cat >conftest.$ac_ext <<_ACEOF
6886 #line 6886 "configure"
6887 #include "confdefs.h"
6888
6889 #ifdef HAVE_STDLIB_H
6890 #include <stdlib.h>
6891 #endif
6892 #include <stdio.h>
6893 #include <sys/types.h>
6894 #include <errno.h>
6895 int
6896 main ()
6897 {
6898 int x = (int) errno
6899 ;
6900 return 0;
6901 }
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (eval echo "$as_me:6904: \"$ac_compile\"") >&5
6905 (eval $ac_compile) 2>&5
6906 ac_status=$?
6907 echo "$as_me:6907: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:6910: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:6913: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 cf_cv_dcl_errno=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6919 cf_cv_dcl_errno=no
6920 fi
6921 rm -f conftest.$ac_objext conftest.$ac_ext
6922
6923 fi
6924 echo "$as_me:6924: result: $cf_cv_dcl_errno" >&5
6925 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
6926
6927 if test "$cf_cv_dcl_errno" = no ; then
6928
6929 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6930
6931 cat >>confdefs.h <<EOF
6932 #define $cf_result 1
6933 EOF
6934
6935 fi
6936
6937 # It's possible (for near-UNIX clones) that the data doesn't exist
6938
6939 echo "$as_me:6939: checking if external errno exists" >&5
6940 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
6941 if test "${cf_cv_have_errno+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944
6945 cat >conftest.$ac_ext <<_ACEOF
6946 #line 6946 "configure"
6947 #include "confdefs.h"
6948
6949 #undef errno
6950 extern int errno;
6951
6952 int
6953 main ()
6954 {
6955 errno = 2
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (eval echo "$as_me:6961: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6963 ac_status=$?
6964 echo "$as_me:6964: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -s conftest$ac_exeext'
6967 { (eval echo "$as_me:6967: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:6970: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 cf_cv_have_errno=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6976 cf_cv_have_errno=no
6977 fi
6978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6979
6980 fi
6981 echo "$as_me:6981: result: $cf_cv_have_errno" >&5
6982 echo "${ECHO_T}$cf_cv_have_errno" >&6
6983
6984 if test "$cf_cv_have_errno" = yes ; then
6985
6986 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6987
6988 cat >>confdefs.h <<EOF
6989 #define $cf_result 1
6990 EOF
6991
6992 fi
6993
6994 echo "$as_me:6994: checking for explicit tty group name" >&5
6995 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
6996
6997 # Check whether --with-tty-group or --without-tty-group was given.
6998 if test "${with_tty_group+set}" = set; then
6999 withval="$with_tty_group"
7000 cf_tty_group=$withval
7001 else
7002 cf_tty_group=auto...
7003 fi;
7004 test -z "$cf_tty_group" && cf_tty_group=auto...
7005 test "$cf_tty_group" = yes && cf_tty_group=auto...
7006 echo "$as_me:7006: result: $cf_tty_group" >&5
7007 echo "${ECHO_T}$cf_tty_group" >&6
7008
7009 if test "$cf_tty_group" = "auto..." ; then
7010 echo "$as_me:7010: checking for tty group name" >&5
7011 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
7012 if test "${cf_cv_tty_group_name+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015
7016 # If we are configuring as root, it is hard to get a clue about the tty group.
7017 # But we'll guess based on how our connection is set up - assuming it is done
7018 # properly.
7019
7020 cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
7021 # )vi
7022 if test "$cf_uid" != 0 ; then
7023 cf_cv_tty_group_name=
7024 cf_tty_name=`tty`
7025 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
7026 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
7027 if test -c "$cf_tty_name"
7028 then
7029 cf_option="-l -L"
7030
7031 # Expect listing to have fields like this:
7032 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname
7033 ls $cf_option $cf_tty_name >conftest.out
7034 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
7035 if test -z "$cf_rest" ; then
7036 cf_option="$cf_option -g"
7037 ls $cf_option $cf_tty_name >conftest.out
7038 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
7039 fi
7040 rm -f conftest.out
7041 cf_cv_tty_group_name=$cf_grp
7042 fi
7043 fi
7044
7045 # If we cannot deduce the tty group, fall back on hardcoded cases
7046
7047 if test -z "$cf_cv_tty_group_name"
7048 then
7049 case $host_os in #(vi
7050 osf*) #(vi
7051 cf_cv_tty_group_name="terminal"
7052 ;;
7053 *)
7054 cf_cv_tty_group_name="unknown"
7055 if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
7056 cf_cv_tty_group_name="tty"
7057 fi
7058 ;;
7059 esac
7060 fi
7061
7062 fi
7063 echo "$as_me:7063: result: $cf_cv_tty_group_name" >&5
7064 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
7065 cf_tty_group="$cf_cv_tty_group_name"
7066 else
7067 # if configure option, always do this
7068
7069 cat >>confdefs.h <<\EOF
7070 #define USE_TTY_GROUP 1
7071 EOF
7072
7073 fi
7074
7075 cat >>confdefs.h <<EOF
7076 #define TTY_GROUP_NAME "$cf_tty_group"
7077 EOF
7078
7079 # This is only a double-check that the group-name we obtained above really
7080 # does apply to the device. We cannot perform this test if we are in batch
7081 # mode, or if we are cross-compiling.
7082
7083 echo "$as_me:7083: checking if we may use the $cf_tty_group group" >&5
7084 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
7085 if test "${cf_cv_tty_group+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088
7089 cf_tty_name=`tty`
7090 if test "$cf_tty_name" != "not a tty"
7091 then
7092 if test "$cross_compiling" = yes; then
7093 cf_cv_tty_group=unknown
7094 else
7095 cat >conftest.$ac_ext <<_ACEOF
7096 #line 7096 "configure"
7097 #include "confdefs.h"
7098
7099 #include <unistd.h>
7100 #include <sys/types.h>
7101 #include <sys/stat.h>
7102 #include <grp.h>
7103 int main()
7104 {
7105 struct stat sb;
7106 struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
7107 char *name = ttyname(0);
7108
7109 endgrent();
7110 if (ttygrp != 0
7111 && name != 0
7112 && stat(name, &sb) == 0
7113 && sb.st_gid != getgid()
7114 && sb.st_gid == ttygrp->gr_gid) {
7115 ${cf_cv_main_return:-return} (0);
7116 }
7117 ${cf_cv_main_return:-return} (1);
7118 }
7119
7120 _ACEOF
7121 rm -f conftest$ac_exeext
7122 if { (eval echo "$as_me:7122: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7124 ac_status=$?
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7127 { (eval echo "$as_me:7127: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:7130: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 cf_cv_tty_group=yes
7133 else
7134 echo "$as_me: program exited with status $ac_status" >&5
7135 echo "$as_me: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7137 cf_cv_tty_group=no
7138 fi
7139 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7140 fi
7141 elif test "$cross_compiling" = yes; then
7142 cf_cv_tty_group=unknown
7143 else
7144 cf_cv_tty_group=yes
7145 fi
7146
7147 fi
7148 echo "$as_me:7148: result: $cf_cv_tty_group" >&5
7149 echo "${ECHO_T}$cf_cv_tty_group" >&6
7150
7151 if test $cf_cv_tty_group = no ; then
7152 { echo "$as_me:7152: WARNING: Cannot use $cf_tty_group group" >&5
7153 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
7154 else
7155 cat >>confdefs.h <<\EOF
7156 #define USE_TTY_GROUP 1
7157 EOF
7158
7159 fi
7160
7161 ### checks for system services and user specified options
7162
7163 echo "$as_me:7163: checking for sys/wait.h that is POSIX.1 compatible" >&5
7164 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7165 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168 cat >conftest.$ac_ext <<_ACEOF
7169 #line 7169 "configure"
7170 #include "confdefs.h"
7171 #include <sys/types.h>
7172 #include <sys/wait.h>
7173 #ifndef WEXITSTATUS
7174 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7175 #endif
7176 #ifndef WIFEXITED
7177 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7178 #endif
7179
7180 int
7181 main ()
7182 {
7183 int s;
7184 wait (&s);
7185 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (eval echo "$as_me:7191: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>&5
7193 ac_status=$?
7194 echo "$as_me:7194: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_header_sys_wait_h=yes
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7206 ac_cv_header_sys_wait_h=no
7207 fi
7208 rm -f conftest.$ac_objext conftest.$ac_ext
7209 fi
7210 echo "$as_me:7210: result: $ac_cv_header_sys_wait_h" >&5
7211 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7212 if test $ac_cv_header_sys_wait_h = yes; then
7213
7214 cat >>confdefs.h <<\EOF
7215 #define HAVE_SYS_WAIT_H 1
7216 EOF
7217
7218 fi
7219
7220 echo "$as_me:7220: checking for POSIX wait functions" >&5
7221 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
7222 if test "${cf_cv_posix_wait+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225
7226 cat >conftest.$ac_ext <<_ACEOF
7227 #line 7227 "configure"
7228 #include "confdefs.h"
7229
7230 #include <stdlib.h>
7231 #include <stdio.h>
7232 #include <sys/types.h>
7233 #ifdef HAVE_SYS_WAIT_H
7234 #include <sys/wait.h>
7235 #endif
7236
7237 int
7238 main ()
7239 {
7240
7241 int stat_loc;
7242 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
7243 pid_t pid2 = wait(&stat_loc);
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 rm -f conftest.$ac_objext conftest$ac_exeext
7250 if { (eval echo "$as_me:7250: \"$ac_link\"") >&5
7251 (eval $ac_link) 2>&5
7252 ac_status=$?
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -s conftest$ac_exeext'
7256 { (eval echo "$as_me:7256: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:7259: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 cf_cv_posix_wait=yes
7262 else
7263 echo "$as_me: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 cf_cv_posix_wait=no
7266 fi
7267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7268
7269 fi
7270 echo "$as_me:7270: result: $cf_cv_posix_wait" >&5
7271 echo "${ECHO_T}$cf_cv_posix_wait" >&6
7272 test "$cf_cv_posix_wait" = yes &&
7273 cat >>confdefs.h <<\EOF
7274 #define USE_POSIX_WAIT 1
7275 EOF
7276
7277 echo "$as_me:7277: checking if external sys_nerr is declared" >&5
7278 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
7279 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282
7283 cat >conftest.$ac_ext <<_ACEOF
7284 #line 7284 "configure"
7285 #include "confdefs.h"
7286
7287 #ifdef HAVE_STDLIB_H
7288 #include <stdlib.h>
7289 #endif
7290 #include <stdio.h>
7291 #include <sys/types.h>
7292 #include <errno.h>
7293 int
7294 main ()
7295 {
7296 int x = (int) sys_nerr
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:7302: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
7305 echo "$as_me:7305: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:7308: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 cf_cv_dcl_sys_nerr=yes
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 cf_cv_dcl_sys_nerr=no
7318 fi
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7320
7321 fi
7322 echo "$as_me:7322: result: $cf_cv_dcl_sys_nerr" >&5
7323 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
7324
7325 if test "$cf_cv_dcl_sys_nerr" = no ; then
7326
7327 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7328
7329 cat >>confdefs.h <<EOF
7330 #define $cf_result 1
7331 EOF
7332
7333 fi
7334
7335 # It's possible (for near-UNIX clones) that the data doesn't exist
7336
7337 echo "$as_me:7337: checking if external sys_nerr exists" >&5
7338 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
7339 if test "${cf_cv_have_sys_nerr+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342
7343 cat >conftest.$ac_ext <<_ACEOF
7344 #line 7344 "configure"
7345 #include "confdefs.h"
7346
7347 #undef sys_nerr
7348 extern int sys_nerr;
7349
7350 int
7351 main ()
7352 {
7353 sys_nerr = 2
7354 ;
7355 return 0;
7356 }
7357 _ACEOF
7358 rm -f conftest.$ac_objext conftest$ac_exeext
7359 if { (eval echo "$as_me:7359: \"$ac_link\"") >&5
7360 (eval $ac_link) 2>&5
7361 ac_status=$?
7362 echo "$as_me:7362: \$? = $ac_status" >&5
7363 (exit $ac_status); } &&
7364 { ac_try='test -s conftest$ac_exeext'
7365 { (eval echo "$as_me:7365: \"$ac_try\"") >&5
7366 (eval $ac_try) 2>&5
7367 ac_status=$?
7368 echo "$as_me:7368: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 cf_cv_have_sys_nerr=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7374 cf_cv_have_sys_nerr=no
7375 fi
7376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7377
7378 fi
7379 echo "$as_me:7379: result: $cf_cv_have_sys_nerr" >&5
7380 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
7381
7382 if test "$cf_cv_have_sys_nerr" = yes ; then
7383
7384 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7385
7386 cat >>confdefs.h <<EOF
7387 #define $cf_result 1
7388 EOF
7389
7390 fi
7391
7392 echo "$as_me:7392: checking if external sys_errlist is declared" >&5
7393 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
7394 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397
7398 cat >conftest.$ac_ext <<_ACEOF
7399 #line 7399 "configure"
7400 #include "confdefs.h"
7401
7402 #ifdef HAVE_STDLIB_H
7403 #include <stdlib.h>
7404 #endif
7405 #include <stdio.h>
7406 #include <sys/types.h>
7407 #include <errno.h>
7408 int
7409 main ()
7410 {
7411 int x = (int) sys_errlist
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:7417: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>&5
7419 ac_status=$?
7420 echo "$as_me:7420: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -s conftest.$ac_objext'
7423 { (eval echo "$as_me:7423: \"$ac_try\"") >&5
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
7426 echo "$as_me:7426: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
7428 cf_cv_dcl_sys_errlist=yes
7429 else
7430 echo "$as_me: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 cf_cv_dcl_sys_errlist=no
7433 fi
7434 rm -f conftest.$ac_objext conftest.$ac_ext
7435
7436 fi
7437 echo "$as_me:7437: result: $cf_cv_dcl_sys_errlist" >&5
7438 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
7439
7440 if test "$cf_cv_dcl_sys_errlist" = no ; then
7441
7442 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7443
7444 cat >>confdefs.h <<EOF
7445 #define $cf_result 1
7446 EOF
7447
7448 fi
7449
7450 # It's possible (for near-UNIX clones) that the data doesn't exist
7451
7452 echo "$as_me:7452: checking if external sys_errlist exists" >&5
7453 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
7454 if test "${cf_cv_have_sys_errlist+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457
7458 cat >conftest.$ac_ext <<_ACEOF
7459 #line 7459 "configure"
7460 #include "confdefs.h"
7461
7462 #undef sys_errlist
7463 extern int sys_errlist;
7464
7465 int
7466 main ()
7467 {
7468 sys_errlist = 2
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest.$ac_objext conftest$ac_exeext
7474 if { (eval echo "$as_me:7474: \"$ac_link\"") >&5
7475 (eval $ac_link) 2>&5
7476 ac_status=$?
7477 echo "$as_me:7477: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try='test -s conftest$ac_exeext'
7480 { (eval echo "$as_me:7480: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:7483: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 cf_cv_have_sys_errlist=yes
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7489 cf_cv_have_sys_errlist=no
7490 fi
7491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7492
7493 fi
7494 echo "$as_me:7494: result: $cf_cv_have_sys_errlist" >&5
7495 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
7496
7497 if test "$cf_cv_have_sys_errlist" = yes ; then
7498
7499 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7500
7501 cat >>confdefs.h <<EOF
7502 #define $cf_result 1
7503 EOF
7504
7505 fi
7506
7507 for ac_header in \
7508 termios.h \
7509 stdlib.h \
7510 X11/Intrinsic.h \
7511
7512 do
7513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 echo "$as_me:7514: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 cat >conftest.$ac_ext <<_ACEOF
7520 #line 7520 "configure"
7521 #include "confdefs.h"
7522 #include <$ac_header>
7523 _ACEOF
7524 if { (eval echo "$as_me:7524: \"$ac_cpp conftest.$ac_ext\"") >&5
7525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7526 ac_status=$?
7527 egrep -v '^ *\+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:7530: \$? = $ac_status" >&5
7531 (exit $ac_status); } >/dev/null; then
7532 if test -s conftest.err; then
7533 ac_cpp_err=$ac_c_preproc_warn_flag
7534 else
7535 ac_cpp_err=
7536 fi
7537 else
7538 ac_cpp_err=yes
7539 fi
7540 if test -z "$ac_cpp_err"; then
7541 eval "$as_ac_Header=yes"
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 eval "$as_ac_Header=no"
7546 fi
7547 rm -f conftest.err conftest.$ac_ext
7548 fi
7549 echo "$as_me:7549: result: `eval echo '${'$as_ac_Header'}'`" >&5
7550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7552 cat >>confdefs.h <<EOF
7553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7554 EOF
7555
7556 fi
7557 done
7558
7559 echo "$as_me:7559: checking if we should define SYSV" >&5
7560 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
7561 if test "${cf_cv_sysv+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564
7565 cat >conftest.$ac_ext <<_ACEOF
7566 #line 7566 "configure"
7567 #include "confdefs.h"
7568
7569 #undef SYSV
7570 #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
7571 #ifdef HAVE_STDLIB_H
7572 #include <stdlib.h> /* look for wchar_t */
7573 #endif
7574 #ifdef HAVE_X11_INTRINSIC_H
7575 #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
7576 #endif
7577 #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */
7578 #include <termios.h>
7579 #define STRUCT_TERMIOS struct termios
7580 #else
7581 #define STRUCT_TERMIOS struct termio
7582 #endif
7583 #include <curses.h>
7584 #include <term.h> /* eliminate most BSD hacks */
7585 #include <errno.h> /* declare sys_errlist on older systems */
7586 #include <sys/termio.h> /* eliminate most of the remaining ones */
7587
7588 int
7589 main ()
7590 {
7591
7592 static STRUCT_TERMIOS d_tio;
7593 d_tio.c_cc[VINTR] = 0;
7594 d_tio.c_cc[VQUIT] = 0;
7595 d_tio.c_cc[VERASE] = 0;
7596 d_tio.c_cc[VKILL] = 0;
7597 d_tio.c_cc[VEOF] = 0;
7598 d_tio.c_cc[VEOL] = 0;
7599 d_tio.c_cc[VMIN] = 0;
7600 d_tio.c_cc[VTIME] = 0;
7601 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
7602 sys_errlist[0] = ""; /* Cygwin mis-declares this */
7603 #endif
7604
7605 ;
7606 return 0;
7607 }
7608 _ACEOF
7609 rm -f conftest.$ac_objext
7610 if { (eval echo "$as_me:7610: \"$ac_compile\"") >&5
7611 (eval $ac_compile) 2>&5
7612 ac_status=$?
7613 echo "$as_me:7613: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -s conftest.$ac_objext'
7616 { (eval echo "$as_me:7616: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:7619: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
7621 cf_cv_sysv=yes
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 cat conftest.$ac_ext >&5
7625 cf_cv_sysv=no
7626 fi
7627 rm -f conftest.$ac_objext conftest.$ac_ext
7628
7629 fi
7630 echo "$as_me:7630: result: $cf_cv_sysv" >&5
7631 echo "${ECHO_T}$cf_cv_sysv" >&6
7632 test "$cf_cv_sysv" = yes &&
7633 cat >>confdefs.h <<\EOF
7634 #define SYSV 1
7635 EOF
7636
7637 echo "$as_me:7637: checking for elf_begin in -lelf" >&5
7638 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
7639 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 ac_check_lib_save_LIBS=$LIBS
7643 LIBS="-lelf $LIBS"
7644 cat >conftest.$ac_ext <<_ACEOF
7645 #line 7645 "configure"
7646 #include "confdefs.h"
7647
7648 /* Override any gcc2 internal prototype to avoid an error. */
7649 #ifdef __cplusplus
7650 extern "C"
7651 #endif
7652 /* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7654 char elf_begin ();
7655 int
7656 main ()
7657 {
7658 elf_begin ();
7659 ;
7660 return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:7664: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7666 ac_status=$?
7667 echo "$as_me:7667: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:7670: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:7673: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_lib_elf_elf_begin=yes
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 ac_cv_lib_elf_elf_begin=no
7680 fi
7681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7682 LIBS=$ac_check_lib_save_LIBS
7683 fi
7684 echo "$as_me:7684: result: $ac_cv_lib_elf_elf_begin" >&5
7685 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
7686 if test $ac_cv_lib_elf_elf_begin = yes; then
7687
7688 echo "$as_me:7688: checking if this is an SVR4 system" >&5
7689 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
7690 if test "${cf_cv_svr4+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693
7694 cat >conftest.$ac_ext <<_ACEOF
7695 #line 7695 "configure"
7696 #include "confdefs.h"
7697
7698 #if defined(__CYGWIN__)
7699 make an error
7700 #endif
7701 #include <elf.h>
7702 #include <sys/termio.h>
7703
7704 int
7705 main ()
7706 {
7707
7708 static struct termio d_tio;
7709 d_tio.c_cc[VINTR] = 0;
7710 d_tio.c_cc[VQUIT] = 0;
7711 d_tio.c_cc[VERASE] = 0;
7712 d_tio.c_cc[VKILL] = 0;
7713 d_tio.c_cc[VEOF] = 0;
7714 d_tio.c_cc[VEOL] = 0;
7715 d_tio.c_cc[VMIN] = 0;
7716 d_tio.c_cc[VTIME] = 0;
7717 d_tio.c_cc[VLNEXT] = 0;
7718
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:7724: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>&5
7726 ac_status=$?
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -s conftest.$ac_objext'
7730 { (eval echo "$as_me:7730: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:7733: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 cf_cv_svr4=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7739 cf_cv_svr4=no
7740 fi
7741 rm -f conftest.$ac_objext conftest.$ac_ext
7742
7743 fi
7744 echo "$as_me:7744: result: $cf_cv_svr4" >&5
7745 echo "${ECHO_T}$cf_cv_svr4" >&6
7746
7747 fi
7748
7749 test "$cf_cv_svr4" = yes &&
7750 cat >>confdefs.h <<\EOF
7751 #define SVR4 1
7752 EOF
7753
7754 echo "$as_me:7754: checking for X" >&5
7755 echo $ECHO_N "checking for X... $ECHO_C" >&6
7756
7757 # Check whether --with-x or --without-x was given.
7758 if test "${with_x+set}" = set; then
7759 withval="$with_x"
7760
7761 fi;
7762 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7763 if test "x$with_x" = xno; then
7764 # The user explicitly disabled X.
7765 have_x=disabled
7766 else
7767 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7768 # Both variables are already set.
7769 have_x=yes
7770 else
7771 if test "${ac_cv_have_x+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 # One or both of the vars are not set, and there is no cached value.
7775 ac_x_includes=no ac_x_libraries=no
7776 rm -fr conftest.dir
7777 if mkdir conftest.dir; then
7778 cd conftest.dir
7779 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7780 cat >Imakefile <<'EOF'
7781 acfindx:
7782 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7783 EOF
7784 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7786 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7787 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7788 for ac_extension in a so sl dylib dll; do
7789 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7790 test -f $ac_im_libdir/libX11.$ac_extension; then
7791 ac_im_usrlibdir=$ac_im_libdir; break
7792 fi
7793 done
7794 # Screen out bogus values from the imake configuration. They are
7795 # bogus both because they are the default anyway, and because
7796 # using them would break gcc on systems where it needs fixed includes.
7797 case $ac_im_incroot in
7798 /usr/include) ;;
7799 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7800 esac
7801 case $ac_im_usrlibdir in
7802 /usr/lib | /lib) ;;
7803 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7804 esac
7805 fi
7806 cd ..
7807 rm -fr conftest.dir
7808 fi
7809
7810 # Standard set of common directories for X headers.
7811 # Check X11 before X11Rn because it is often a symlink to the current release.
7812 ac_x_header_dirs='
7813 /usr/X11/include
7814 /usr/X11R6/include
7815 /usr/X11R5/include
7816 /usr/X11R4/include
7817
7818 /usr/include/X11
7819 /usr/include/X11R6
7820 /usr/include/X11R5
7821 /usr/include/X11R4
7822
7823 /usr/local/X11/include
7824 /usr/local/X11R6/include
7825 /usr/local/X11R5/include
7826 /usr/local/X11R4/include
7827
7828 /usr/local/include/X11
7829 /usr/local/include/X11R6
7830 /usr/local/include/X11R5
7831 /usr/local/include/X11R4
7832
7833 /usr/X386/include
7834 /usr/x386/include
7835 /usr/XFree86/include/X11
7836
7837 /usr/include
7838 /usr/local/include
7839 /usr/unsupported/include
7840 /usr/athena/include
7841 /usr/local/x11r5/include
7842 /usr/lpp/Xamples/include
7843
7844 /usr/openwin/include
7845 /usr/openwin/share/include'
7846
7847 if test "$ac_x_includes" = no; then
7848 # Guess where to find include files, by looking for Intrinsic.h.
7849 # First, try using that file with no special directory specified.
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line 7851 "configure"
7852 #include "confdefs.h"
7853 #include <X11/Intrinsic.h>
7854 _ACEOF
7855 if { (eval echo "$as_me:7855: \"$ac_cpp conftest.$ac_ext\"") >&5
7856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 ac_status=$?
7858 egrep -v '^ *\+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:7861: \$? = $ac_status" >&5
7862 (exit $ac_status); } >/dev/null; then
7863 if test -s conftest.err; then
7864 ac_cpp_err=$ac_c_preproc_warn_flag
7865 else
7866 ac_cpp_err=
7867 fi
7868 else
7869 ac_cpp_err=yes
7870 fi
7871 if test -z "$ac_cpp_err"; then
7872 # We can compile using X headers with no special include directory.
7873 ac_x_includes=
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7877 for ac_dir in $ac_x_header_dirs; do
7878 if test -r "$ac_dir/X11/Intrinsic.h"; then
7879 ac_x_includes=$ac_dir
7880 break
7881 fi
7882 done
7883 fi
7884 rm -f conftest.err conftest.$ac_ext
7885 fi # $ac_x_includes = no
7886
7887 if test "$ac_x_libraries" = no; then
7888 # Check for the libraries.
7889 # See if we find them without any special options.
7890 # Don't add to $LIBS permanently.
7891 ac_save_LIBS=$LIBS
7892 LIBS="-lXt $LIBS"
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line 7894 "configure"
7895 #include "confdefs.h"
7896 #include <X11/Intrinsic.h>
7897 int
7898 main ()
7899 {
7900 XtMalloc (0)
7901 ;
7902 return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:7906: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>&5
7908 ac_status=$?
7909 echo "$as_me:7909: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest$ac_exeext'
7912 { (eval echo "$as_me:7912: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:7915: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 LIBS=$ac_save_LIBS
7918 # We can link X programs with no special library path.
7919 ac_x_libraries=
7920 else
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7923 LIBS=$ac_save_LIBS
7924 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7925 do
7926 # Don't even attempt the hair of trying to link an X program!
7927 for ac_extension in a so sl dylib dll; do
7928 if test -r $ac_dir/libXt.$ac_extension; then
7929 ac_x_libraries=$ac_dir
7930 break 2
7931 fi
7932 done
7933 done
7934 fi
7935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7936 fi # $ac_x_libraries = no
7937
7938 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7939 # Didn't find X anywhere. Cache the known absence of X.
7940 ac_cv_have_x="have_x=no"
7941 else
7942 # Record where we found X for the cache.
7943 ac_cv_have_x="have_x=yes \
7944 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7945 fi
7946 fi
7947
7948 fi
7949 eval "$ac_cv_have_x"
7950 fi # $with_x != no
7951
7952 if test "$have_x" != yes; then
7953 echo "$as_me:7953: result: $have_x" >&5
7954 echo "${ECHO_T}$have_x" >&6
7955 no_x=yes
7956 else
7957 # If each of the values was on the command line, it overrides each guess.
7958 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7959 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7960 # Update the cache value to reflect the command line values.
7961 ac_cv_have_x="have_x=yes \
7962 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7963 echo "$as_me:7963: result: libraries $x_libraries, headers $x_includes" >&5
7964 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7965 fi
7966
7967 if test "$no_x" = yes; then
7968 # Not all programs may use this symbol, but it does not hurt to define it.
7969
7970 cat >>confdefs.h <<\EOF
7971 #define X_DISPLAY_MISSING 1
7972 EOF
7973
7974 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7975 else
7976 if test -n "$x_includes"; then
7977 X_CFLAGS="$X_CFLAGS -I$x_includes"
7978 fi
7979
7980 # It would also be nice to do this for all -L options, not just this one.
7981 if test -n "$x_libraries"; then
7982 X_LIBS="$X_LIBS -L$x_libraries"
7983 # For Solaris; some versions of Sun CC require a space after -R and
7984 # others require no space. Words are not sufficient . . . .
7985 case `(uname -sr) 2>/dev/null` in
7986 "SunOS 5"*)
7987 echo "$as_me:7987: checking whether -R must be followed by a space" >&5
7988 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7989 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7990 cat >conftest.$ac_ext <<_ACEOF
7991 #line 7991 "configure"
7992 #include "confdefs.h"
7993
7994 int
7995 main ()
7996 {
7997
7998 ;
7999 return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (eval echo "$as_me:8003: \"$ac_link\"") >&5
8004 (eval $ac_link) 2>&5
8005 ac_status=$?
8006 echo "$as_me:8006: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest$ac_exeext'
8009 { (eval echo "$as_me:8009: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:8012: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_R_nospace=yes
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8018 ac_R_nospace=no
8019 fi
8020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8021 if test $ac_R_nospace = yes; then
8022 echo "$as_me:8022: result: no" >&5
8023 echo "${ECHO_T}no" >&6
8024 X_LIBS="$X_LIBS -R$x_libraries"
8025 else
8026 LIBS="$ac_xsave_LIBS -R $x_libraries"
8027 cat >conftest.$ac_ext <<_ACEOF
8028 #line 8028 "configure"
8029 #include "confdefs.h"
8030
8031 int
8032 main ()
8033 {
8034
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:8040: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8042 ac_status=$?
8043 echo "$as_me:8043: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:8046: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:8049: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_R_space=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 ac_R_space=no
8056 fi
8057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8058 if test $ac_R_space = yes; then
8059 echo "$as_me:8059: result: yes" >&5
8060 echo "${ECHO_T}yes" >&6
8061 X_LIBS="$X_LIBS -R $x_libraries"
8062 else
8063 echo "$as_me:8063: result: neither works" >&5
8064 echo "${ECHO_T}neither works" >&6
8065 fi
8066 fi
8067 LIBS=$ac_xsave_LIBS
8068 esac
8069 fi
8070
8071 # Check for system-dependent libraries X programs must link with.
8072 # Do this before checking for the system-independent R6 libraries
8073 # (-lICE), since we may need -lsocket or whatever for X linking.
8074
8075 if test "$ISC" = yes; then
8076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8077 else
8078 # Martyn Johnson says this is needed for Ultrix, if the X
8079 # libraries were built with DECnet support. And Karl Berry says
8080 # the Alpha needs dnet_stub (dnet does not exist).
8081 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8082 cat >conftest.$ac_ext <<_ACEOF
8083 #line 8083 "configure"
8084 #include "confdefs.h"
8085
8086 /* Override any gcc2 internal prototype to avoid an error. */
8087 #ifdef __cplusplus
8088 extern "C"
8089 #endif
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092 char XOpenDisplay ();
8093 int
8094 main ()
8095 {
8096 XOpenDisplay ();
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:8102: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8104 ac_status=$?
8105 echo "$as_me:8105: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:8108: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:8111: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 :
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 echo "$as_me:8117: checking for dnet_ntoa in -ldnet" >&5
8118 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8119 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 ac_check_lib_save_LIBS=$LIBS
8123 LIBS="-ldnet $LIBS"
8124 cat >conftest.$ac_ext <<_ACEOF
8125 #line 8125 "configure"
8126 #include "confdefs.h"
8127
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 #ifdef __cplusplus
8130 extern "C"
8131 #endif
8132 /* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8134 char dnet_ntoa ();
8135 int
8136 main ()
8137 {
8138 dnet_ntoa ();
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext conftest$ac_exeext
8144 if { (eval echo "$as_me:8144: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>&5
8146 ac_status=$?
8147 echo "$as_me:8147: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:8150: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:8153: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_lib_dnet_dnet_ntoa=yes
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8159 ac_cv_lib_dnet_dnet_ntoa=no
8160 fi
8161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 echo "$as_me:8164: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8166 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8167 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8168 fi
8169
8170 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8171 echo "$as_me:8171: checking for dnet_ntoa in -ldnet_stub" >&5
8172 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8173 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 ac_check_lib_save_LIBS=$LIBS
8177 LIBS="-ldnet_stub $LIBS"
8178 cat >conftest.$ac_ext <<_ACEOF
8179 #line 8179 "configure"
8180 #include "confdefs.h"
8181
8182 /* Override any gcc2 internal prototype to avoid an error. */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 /* We use char because int might match the return type of a gcc2
8187 builtin and then its argument prototype would still apply. */
8188 char dnet_ntoa ();
8189 int
8190 main ()
8191 {
8192 dnet_ntoa ();
8193 ;
8194 return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (eval echo "$as_me:8198: \"$ac_link\"") >&5
8199 (eval $ac_link) 2>&5
8200 ac_status=$?
8201 echo "$as_me:8201: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (eval echo "$as_me:8204: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:8207: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8213 ac_cv_lib_dnet_stub_dnet_ntoa=no
8214 fi
8215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216 LIBS=$ac_check_lib_save_LIBS
8217 fi
8218 echo "$as_me:8218: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8219 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8220 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8221 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8222 fi
8223
8224 fi
8225 fi
8226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8227 LIBS="$ac_xsave_LIBS"
8228
8229 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8230 # to get the SysV transport functions.
8231 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8232 # needs -lnsl.
8233 # The nsl library prevents programs from opening the X display
8234 # on Irix 5.2, according to T.E. Dickey.
8235 # The functions gethostbyname, getservbyname, and inet_addr are
8236 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8237 echo "$as_me:8237: checking for gethostbyname" >&5
8238 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8239 if test "${ac_cv_func_gethostbyname+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line 8243 "configure"
8244 #include "confdefs.h"
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char gethostbyname (); below. */
8247 #include <assert.h>
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 /* We use char because int might match the return type of a gcc2
8253 builtin and then its argument prototype would still apply. */
8254 char gethostbyname ();
8255 char (*f) ();
8256
8257 int
8258 main ()
8259 {
8260 /* The GNU C library defines this for functions which it implements
8261 to always fail with ENOSYS. Some functions are actually named
8262 something starting with __ and the normal name is an alias. */
8263 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8264 choke me
8265 #else
8266 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8267 #endif
8268
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (eval echo "$as_me:8274: \"$ac_link\"") >&5
8275 (eval $ac_link) 2>&5
8276 ac_status=$?
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (eval echo "$as_me:8280: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:8283: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_func_gethostbyname=yes
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 ac_cv_func_gethostbyname=no
8290 fi
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8292 fi
8293 echo "$as_me:8293: result: $ac_cv_func_gethostbyname" >&5
8294 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8295
8296 if test $ac_cv_func_gethostbyname = no; then
8297 echo "$as_me:8297: checking for gethostbyname in -lnsl" >&5
8298 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8299 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302 ac_check_lib_save_LIBS=$LIBS
8303 LIBS="-lnsl $LIBS"
8304 cat >conftest.$ac_ext <<_ACEOF
8305 #line 8305 "configure"
8306 #include "confdefs.h"
8307
8308 /* Override any gcc2 internal prototype to avoid an error. */
8309 #ifdef __cplusplus
8310 extern "C"
8311 #endif
8312 /* We use char because int might match the return type of a gcc2
8313 builtin and then its argument prototype would still apply. */
8314 char gethostbyname ();
8315 int
8316 main ()
8317 {
8318 gethostbyname ();
8319 ;
8320 return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:8324: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>&5
8326 ac_status=$?
8327 echo "$as_me:8327: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -s conftest$ac_exeext'
8330 { (eval echo "$as_me:8330: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_lib_nsl_gethostbyname=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 ac_cv_lib_nsl_gethostbyname=no
8340 fi
8341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8342 LIBS=$ac_check_lib_save_LIBS
8343 fi
8344 echo "$as_me:8344: result: $ac_cv_lib_nsl_gethostbyname" >&5
8345 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8346 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8348 fi
8349
8350 if test $ac_cv_lib_nsl_gethostbyname = no; then
8351 echo "$as_me:8351: checking for gethostbyname in -lbsd" >&5
8352 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8353 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356 ac_check_lib_save_LIBS=$LIBS
8357 LIBS="-lbsd $LIBS"
8358 cat >conftest.$ac_ext <<_ACEOF
8359 #line 8359 "configure"
8360 #include "confdefs.h"
8361
8362 /* Override any gcc2 internal prototype to avoid an error. */
8363 #ifdef __cplusplus
8364 extern "C"
8365 #endif
8366 /* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8368 char gethostbyname ();
8369 int
8370 main ()
8371 {
8372 gethostbyname ();
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:8378: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>&5
8380 ac_status=$?
8381 echo "$as_me:8381: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:8384: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:8387: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_lib_bsd_gethostbyname=yes
8390 else
8391 echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 ac_cv_lib_bsd_gethostbyname=no
8394 fi
8395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8397 fi
8398 echo "$as_me:8398: result: $ac_cv_lib_bsd_gethostbyname" >&5
8399 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8400 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8402 fi
8403
8404 fi
8405 fi
8406
8407 # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
8408 # socket/setsockopt and other routines are undefined under SCO ODT
8409 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8410 # on later versions), says Simon Leinen: it contains gethostby*
8411 # variants that don't use the nameserver (or something). -lsocket
8412 # must be given before -lnsl if both are needed. We assume that
8413 # if connect needs -lnsl, so does gethostbyname.
8414 echo "$as_me:8414: checking for connect" >&5
8415 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8416 if test "${ac_cv_func_connect+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line 8420 "configure"
8421 #include "confdefs.h"
8422 /* System header to define __stub macros and hopefully few prototypes,
8423 which can conflict with char connect (); below. */
8424 #include <assert.h>
8425 /* Override any gcc2 internal prototype to avoid an error. */
8426 #ifdef __cplusplus
8427 extern "C"
8428 #endif
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8431 char connect ();
8432 char (*f) ();
8433
8434 int
8435 main ()
8436 {
8437 /* The GNU C library defines this for functions which it implements
8438 to always fail with ENOSYS. Some functions are actually named
8439 something starting with __ and the normal name is an alias. */
8440 #if defined (__stub_connect) || defined (__stub___connect)
8441 choke me
8442 #else
8443 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8444 #endif
8445
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (eval echo "$as_me:8451: \"$ac_link\"") >&5
8452 (eval $ac_link) 2>&5
8453 ac_status=$?
8454 echo "$as_me:8454: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (eval echo "$as_me:8457: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:8460: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_func_connect=yes
8463 else
8464 echo "$as_me: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8466 ac_cv_func_connect=no
8467 fi
8468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8469 fi
8470 echo "$as_me:8470: result: $ac_cv_func_connect" >&5
8471 echo "${ECHO_T}$ac_cv_func_connect" >&6
8472
8473 if test $ac_cv_func_connect = no; then
8474 echo "$as_me:8474: checking for connect in -lsocket" >&5
8475 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8476 if test "${ac_cv_lib_socket_connect+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 ac_check_lib_save_LIBS=$LIBS
8480 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8481 cat >conftest.$ac_ext <<_ACEOF
8482 #line 8482 "configure"
8483 #include "confdefs.h"
8484
8485 /* Override any gcc2 internal prototype to avoid an error. */
8486 #ifdef __cplusplus
8487 extern "C"
8488 #endif
8489 /* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8491 char connect ();
8492 int
8493 main ()
8494 {
8495 connect ();
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:8501: \"$ac_link\"") >&5
8502 (eval $ac_link) 2>&5
8503 ac_status=$?
8504 echo "$as_me:8504: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (eval echo "$as_me:8507: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:8510: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_lib_socket_connect=yes
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 ac_cv_lib_socket_connect=no
8517 fi
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8520 fi
8521 echo "$as_me:8521: result: $ac_cv_lib_socket_connect" >&5
8522 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8523 if test $ac_cv_lib_socket_connect = yes; then
8524 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8525 fi
8526
8527 fi
8528
8529 # Guillermo Gomez says -lposix is necessary on A/UX.
8530 echo "$as_me:8530: checking for remove" >&5
8531 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8532 if test "${ac_cv_func_remove+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 cat >conftest.$ac_ext <<_ACEOF
8536 #line 8536 "configure"
8537 #include "confdefs.h"
8538 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char remove (); below. */
8540 #include <assert.h>
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 #ifdef __cplusplus
8543 extern "C"
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char remove ();
8548 char (*f) ();
8549
8550 int
8551 main ()
8552 {
8553 /* The GNU C library defines this for functions which it implements
8554 to always fail with ENOSYS. Some functions are actually named
8555 something starting with __ and the normal name is an alias. */
8556 #if defined (__stub_remove) || defined (__stub___remove)
8557 choke me
8558 #else
8559 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8560 #endif
8561
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (eval echo "$as_me:8567: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>&5
8569 ac_status=$?
8570 echo "$as_me:8570: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:8573: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:8576: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_func_remove=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8582 ac_cv_func_remove=no
8583 fi
8584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8585 fi
8586 echo "$as_me:8586: result: $ac_cv_func_remove" >&5
8587 echo "${ECHO_T}$ac_cv_func_remove" >&6
8588
8589 if test $ac_cv_func_remove = no; then
8590 echo "$as_me:8590: checking for remove in -lposix" >&5
8591 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8592 if test "${ac_cv_lib_posix_remove+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 ac_check_lib_save_LIBS=$LIBS
8596 LIBS="-lposix $LIBS"
8597 cat >conftest.$ac_ext <<_ACEOF
8598 #line 8598 "configure"
8599 #include "confdefs.h"
8600
8601 /* Override any gcc2 internal prototype to avoid an error. */
8602 #ifdef __cplusplus
8603 extern "C"
8604 #endif
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8607 char remove ();
8608 int
8609 main ()
8610 {
8611 remove ();
8612 ;
8613 return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (eval echo "$as_me:8617: \"$ac_link\"") >&5
8618 (eval $ac_link) 2>&5
8619 ac_status=$?
8620 echo "$as_me:8620: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (eval echo "$as_me:8623: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:8626: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_cv_lib_posix_remove=yes
8629 else
8630 echo "$as_me: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 ac_cv_lib_posix_remove=no
8633 fi
8634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8635 LIBS=$ac_check_lib_save_LIBS
8636 fi
8637 echo "$as_me:8637: result: $ac_cv_lib_posix_remove" >&5
8638 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8639 if test $ac_cv_lib_posix_remove = yes; then
8640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8641 fi
8642
8643 fi
8644
8645 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8646 echo "$as_me:8646: checking for shmat" >&5
8647 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8648 if test "${ac_cv_func_shmat+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 #line 8652 "configure"
8653 #include "confdefs.h"
8654 /* System header to define __stub macros and hopefully few prototypes,
8655 which can conflict with char shmat (); below. */
8656 #include <assert.h>
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 #ifdef __cplusplus
8659 extern "C"
8660 #endif
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8663 char shmat ();
8664 char (*f) ();
8665
8666 int
8667 main ()
8668 {
8669 /* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672 #if defined (__stub_shmat) || defined (__stub___shmat)
8673 choke me
8674 #else
8675 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8676 #endif
8677
8678 ;
8679 return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext conftest$ac_exeext
8683 if { (eval echo "$as_me:8683: \"$ac_link\"") >&5
8684 (eval $ac_link) 2>&5
8685 ac_status=$?
8686 echo "$as_me:8686: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -s conftest$ac_exeext'
8689 { (eval echo "$as_me:8689: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:8692: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_cv_func_shmat=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8698 ac_cv_func_shmat=no
8699 fi
8700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8701 fi
8702 echo "$as_me:8702: result: $ac_cv_func_shmat" >&5
8703 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8704
8705 if test $ac_cv_func_shmat = no; then
8706 echo "$as_me:8706: checking for shmat in -lipc" >&5
8707 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8708 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 ac_check_lib_save_LIBS=$LIBS
8712 LIBS="-lipc $LIBS"
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line 8714 "configure"
8715 #include "confdefs.h"
8716
8717 /* Override any gcc2 internal prototype to avoid an error. */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8723 char shmat ();
8724 int
8725 main ()
8726 {
8727 shmat ();
8728 ;
8729 return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:8733: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>&5
8735 ac_status=$?
8736 echo "$as_me:8736: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -s conftest$ac_exeext'
8739 { (eval echo "$as_me:8739: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:8742: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_lib_ipc_shmat=yes
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 ac_cv_lib_ipc_shmat=no
8749 fi
8750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8751 LIBS=$ac_check_lib_save_LIBS
8752 fi
8753 echo "$as_me:8753: result: $ac_cv_lib_ipc_shmat" >&5
8754 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8755 if test $ac_cv_lib_ipc_shmat = yes; then
8756 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8757 fi
8758
8759 fi
8760 fi
8761
8762 # Check for libraries that X11R6 Xt/Xaw programs need.
8763 ac_save_LDFLAGS=$LDFLAGS
8764 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8765 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8766 # check for ICE first), but we must link in the order -lSM -lICE or
8767 # we get undefined symbols. So assume we have SM if we have ICE.
8768 # These have to be linked with before -lX11, unlike the other
8769 # libraries we check for below, so use a different variable.
8770 # John Interrante, Karl Berry
8771 echo "$as_me:8771: checking for IceConnectionNumber in -lICE" >&5
8772 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8773 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 ac_check_lib_save_LIBS=$LIBS
8777 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line 8779 "configure"
8780 #include "confdefs.h"
8781
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 /* We use char because int might match the return type of a gcc2
8787 builtin and then its argument prototype would still apply. */
8788 char IceConnectionNumber ();
8789 int
8790 main ()
8791 {
8792 IceConnectionNumber ();
8793 ;
8794 return 0;
8795 }
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (eval echo "$as_me:8798: \"$ac_link\"") >&5
8799 (eval $ac_link) 2>&5
8800 ac_status=$?
8801 echo "$as_me:8801: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:8804: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:8807: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_cv_lib_ICE_IceConnectionNumber=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 ac_cv_lib_ICE_IceConnectionNumber=no
8814 fi
8815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8817 fi
8818 echo "$as_me:8818: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8819 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8820 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8821 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8822 fi
8823
8824 LDFLAGS=$ac_save_LDFLAGS
8825
8826 fi
8827
8828 echo "$as_me:8828: checking if you want to use pkg-config" >&5
8829 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
8830
8831 # Check whether --with-pkg-config or --without-pkg-config was given.
8832 if test "${with_pkg_config+set}" = set; then
8833 withval="$with_pkg_config"
8834 cf_pkg_config=$withval
8835 else
8836 cf_pkg_config=yes
8837 fi;
8838 echo "$as_me:8838: result: $cf_pkg_config" >&5
8839 echo "${ECHO_T}$cf_pkg_config" >&6
8840
8841 case $cf_pkg_config in #(vi
8842 no) #(vi
8843 PKG_CONFIG=none
8844 ;;
8845 yes) #(vi
8846
8847 if test -n "$ac_tool_prefix"; then
8848 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8849 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8850 echo "$as_me:8850: checking for $ac_word" >&5
8851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 case $PKG_CONFIG in
8856 [\\/]* | ?:[\\/]*)
8857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8858 ;;
8859 *)
8860 ac_save_IFS=$IFS; IFS=$ac_path_separator
8861 ac_dummy="$PATH"
8862 for ac_dir in $ac_dummy; do
8863 IFS=$ac_save_IFS
8864 test -z "$ac_dir" && ac_dir=.
8865 if $as_executable_p "$ac_dir/$ac_word"; then
8866 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8867 echo "$as_me:8867: found $ac_dir/$ac_word" >&5
8868 break
8869 fi
8870 done
8871
8872 ;;
8873 esac
8874 fi
8875 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8876
8877 if test -n "$PKG_CONFIG"; then
8878 echo "$as_me:8878: result: $PKG_CONFIG" >&5
8879 echo "${ECHO_T}$PKG_CONFIG" >&6
8880 else
8881 echo "$as_me:8881: result: no" >&5
8882 echo "${ECHO_T}no" >&6
8883 fi
8884
8885 fi
8886 if test -z "$ac_cv_path_PKG_CONFIG"; then
8887 ac_pt_PKG_CONFIG=$PKG_CONFIG
8888 # Extract the first word of "pkg-config", so it can be a program name with args.
8889 set dummy pkg-config; ac_word=$2
8890 echo "$as_me:8890: checking for $ac_word" >&5
8891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8892 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 case $ac_pt_PKG_CONFIG in
8896 [\\/]* | ?:[\\/]*)
8897 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8898 ;;
8899 *)
8900 ac_save_IFS=$IFS; IFS=$ac_path_separator
8901 ac_dummy="$PATH"
8902 for ac_dir in $ac_dummy; do
8903 IFS=$ac_save_IFS
8904 test -z "$ac_dir" && ac_dir=.
8905 if $as_executable_p "$ac_dir/$ac_word"; then
8906 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
8907 echo "$as_me:8907: found $ac_dir/$ac_word" >&5
8908 break
8909 fi
8910 done
8911
8912 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
8913 ;;
8914 esac
8915 fi
8916 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8917
8918 if test -n "$ac_pt_PKG_CONFIG"; then
8919 echo "$as_me:8919: result: $ac_pt_PKG_CONFIG" >&5
8920 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
8921 else
8922 echo "$as_me:8922: result: no" >&5
8923 echo "${ECHO_T}no" >&6
8924 fi
8925
8926 PKG_CONFIG=$ac_pt_PKG_CONFIG
8927 else
8928 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8929 fi
8930
8931 ;;
8932 *)
8933 PKG_CONFIG=$withval
8934 ;;
8935 esac
8936
8937 test -z "$PKG_CONFIG" && PKG_CONFIG=none
8938 if test "$PKG_CONFIG" != none ; then
8939
8940 if test "x$prefix" != xNONE; then
8941 cf_path_syntax="$prefix"
8942 else
8943 cf_path_syntax="$ac_default_prefix"
8944 fi
8945
8946 case ".$PKG_CONFIG" in #(vi
8947 .\$\(*\)*|.\'*\'*) #(vi
8948 ;;
8949 ..|./*|.\\*) #(vi
8950 ;;
8951 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
8952 ;;
8953 .\${*prefix}*|.\${*dir}*) #(vi
8954 eval PKG_CONFIG="$PKG_CONFIG"
8955 case ".$PKG_CONFIG" in #(vi
8956 .NONE/*)
8957 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
8958 ;;
8959 esac
8960 ;; #(vi
8961 .no|.NONE/*)
8962 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
8963 ;;
8964 *)
8965 { { echo "$as_me:8965: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
8966 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
8967 { (exit 1); exit 1; }; }
8968 ;;
8969 esac
8970
8971 fi
8972
8973 cf_have_X_LIBS=no
8974
8975 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
8976 test -n "$verbose" && echo " found package xt" 1>&6
8977
8978 echo "${as_me:-configure}:8978: testing found package xt ..." 1>&5
8979
8980 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
8981 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
8982 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
8983
8984 echo "${as_me:-configure}:8984: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8985
8986 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
8987
8988 echo "${as_me:-configure}:8988: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
8989
8990 cf_fix_cppflags=no
8991 cf_new_cflags=
8992 cf_new_cppflags=
8993 cf_new_extra_cppflags=
8994
8995 for cf_add_cflags in $cf_pkgconfig_incs
8996 do
8997 case $cf_fix_cppflags in
8998 no)
8999 case $cf_add_cflags in #(vi
9000 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9001 case $cf_add_cflags in
9002 -D*)
9003 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9004
9005 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9006 && test -z "${cf_tst_cflags}" \
9007 && cf_fix_cppflags=yes
9008
9009 if test $cf_fix_cppflags = yes ; then
9010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9011 continue
9012 elif test "${cf_tst_cflags}" = "\"'" ; then
9013 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9014 continue
9015 fi
9016 ;;
9017 esac
9018 case "$CPPFLAGS" in
9019 *$cf_add_cflags) #(vi
9020 ;;
9021 *) #(vi
9022 case $cf_add_cflags in #(vi
9023 -D*)
9024 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9025
9026 CPPFLAGS=`echo "$CPPFLAGS" | \
9027 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9028 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9029
9030 ;;
9031 esac
9032 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9033 ;;
9034 esac
9035 ;;
9036 *)
9037 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9038 ;;
9039 esac
9040 ;;
9041 yes)
9042 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9043
9044 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9045
9046 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9047 && test -z "${cf_tst_cflags}" \
9048 && cf_fix_cppflags=no
9049 ;;
9050 esac
9051 done
9052
9053 if test -n "$cf_new_cflags" ; then
9054
9055 CFLAGS="$CFLAGS $cf_new_cflags"
9056 fi
9057
9058 if test -n "$cf_new_cppflags" ; then
9059
9060 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9061 fi
9062
9063 if test -n "$cf_new_extra_cppflags" ; then
9064
9065 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9066 fi
9067
9068 LIBS="$cf_pkgconfig_libs $LIBS"
9069
9070 case "x$LIBS" in #(vi
9071 *-lX11*) #(vi
9072 ;;
9073 *)
9074 # we have an "xt" package, but it may omit Xt's dependency on X11
9075 echo "$as_me:9075: checking for usable X dependency" >&5
9076 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
9077 if test "${cf_cv_xt_x11_compat+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080
9081 cat >conftest.$ac_ext <<_ACEOF
9082 #line 9082 "configure"
9083 #include "confdefs.h"
9084
9085 #include <X11/Xlib.h>
9086
9087 int
9088 main ()
9089 {
9090
9091 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
9092 int rc2 = XClearWindow((Display*) 0, (Window) 0);
9093 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
9094 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
9095
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:9101: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>&5
9103 ac_status=$?
9104 echo "$as_me:9104: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -s conftest$ac_exeext'
9107 { (eval echo "$as_me:9107: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:9110: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 cf_cv_xt_x11_compat=yes
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9116 cf_cv_xt_x11_compat=no
9117 fi
9118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9119 fi
9120 echo "$as_me:9120: result: $cf_cv_xt_x11_compat" >&5
9121 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
9122 if test "$cf_cv_xt_x11_compat" = no
9123 then
9124 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
9125
9126 echo "${as_me:-configure}:9126: testing work around broken X11 dependency ..." 1>&5
9127
9128 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
9129
9130 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
9131 test -n "$verbose" && echo " found package x11" 1>&6
9132
9133 echo "${as_me:-configure}:9133: testing found package x11 ..." 1>&5
9134
9135 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
9136 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
9137 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
9138
9139 echo "${as_me:-configure}:9139: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9140
9141 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
9142
9143 echo "${as_me:-configure}:9143: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
9144
9145 cf_fix_cppflags=no
9146 cf_new_cflags=
9147 cf_new_cppflags=
9148 cf_new_extra_cppflags=
9149
9150 for cf_add_cflags in $cf_pkgconfig_incs
9151 do
9152 case $cf_fix_cppflags in
9153 no)
9154 case $cf_add_cflags in #(vi
9155 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9156 case $cf_add_cflags in
9157 -D*)
9158 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9159
9160 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9161 && test -z "${cf_tst_cflags}" \
9162 && cf_fix_cppflags=yes
9163
9164 if test $cf_fix_cppflags = yes ; then
9165 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9166 continue
9167 elif test "${cf_tst_cflags}" = "\"'" ; then
9168 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9169 continue
9170 fi
9171 ;;
9172 esac
9173 case "$CPPFLAGS" in
9174 *$cf_add_cflags) #(vi
9175 ;;
9176 *) #(vi
9177 case $cf_add_cflags in #(vi
9178 -D*)
9179 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9180
9181 CPPFLAGS=`echo "$CPPFLAGS" | \
9182 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9183 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9184
9185 ;;
9186 esac
9187 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9188 ;;
9189 esac
9190 ;;
9191 *)
9192 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9193 ;;
9194 esac
9195 ;;
9196 yes)
9197 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9198
9199 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9200
9201 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9202 && test -z "${cf_tst_cflags}" \
9203 && cf_fix_cppflags=no
9204 ;;
9205 esac
9206 done
9207
9208 if test -n "$cf_new_cflags" ; then
9209
9210 CFLAGS="$CFLAGS $cf_new_cflags"
9211 fi
9212
9213 if test -n "$cf_new_cppflags" ; then
9214
9215 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9216 fi
9217
9218 if test -n "$cf_new_extra_cppflags" ; then
9219
9220 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9221 fi
9222
9223 LIBS="$cf_pkgconfig_libs $LIBS"
9224 :
9225 else
9226 cf_pkgconfig_incs=
9227 cf_pkgconfig_libs=
9228
9229 test -n "$verbose" && echo " ...before $LIBS" 1>&6
9230
9231 echo "${as_me:-configure}:9231: testing ...before $LIBS ..." 1>&5
9232
9233 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
9234 test -n "$verbose" && echo " ...after $LIBS" 1>&6
9235
9236 echo "${as_me:-configure}:9236: testing ...after $LIBS ..." 1>&5
9237
9238 fi
9239
9240 fi
9241 ;;
9242 esac
9243
9244 echo "$as_me:9244: checking for usable X Toolkit package" >&5
9245 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
9246 if test "${cf_cv_xt_ice_compat+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249
9250 cat >conftest.$ac_ext <<_ACEOF
9251 #line 9251 "configure"
9252 #include "confdefs.h"
9253
9254 #include <X11/Shell.h>
9255
9256 int
9257 main ()
9258 {
9259 int num = IceConnectionNumber(0)
9260
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (eval echo "$as_me:9266: \"$ac_link\"") >&5
9267 (eval $ac_link) 2>&5
9268 ac_status=$?
9269 echo "$as_me:9269: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:9272: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 cf_cv_xt_ice_compat=yes
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9281 cf_cv_xt_ice_compat=no
9282 fi
9283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9284 fi
9285 echo "$as_me:9285: result: $cf_cv_xt_ice_compat" >&5
9286 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
9287
9288 if test "$cf_cv_xt_ice_compat" = no
9289 then
9290 # workaround for broken ".pc" files used for X Toolkit.
9291 case "x$X_PRE_LIBS" in #(vi
9292 *-lICE*)
9293 case "x$LIBS" in #(vi
9294 *-lICE*) #(vi
9295 ;;
9296 *)
9297 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
9298
9299 echo "${as_me:-configure}:9299: testing work around broken ICE dependency ..." 1>&5
9300
9301 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
9302 test -n "$verbose" && echo " found package ice" 1>&6
9303
9304 echo "${as_me:-configure}:9304: testing found package ice ..." 1>&5
9305
9306 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
9307 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
9308 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
9309
9310 echo "${as_me:-configure}:9310: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9311
9312 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
9313
9314 echo "${as_me:-configure}:9314: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
9315
9316 cf_fix_cppflags=no
9317 cf_new_cflags=
9318 cf_new_cppflags=
9319 cf_new_extra_cppflags=
9320
9321 for cf_add_cflags in $cf_pkgconfig_incs
9322 do
9323 case $cf_fix_cppflags in
9324 no)
9325 case $cf_add_cflags in #(vi
9326 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9327 case $cf_add_cflags in
9328 -D*)
9329 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9330
9331 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9332 && test -z "${cf_tst_cflags}" \
9333 && cf_fix_cppflags=yes
9334
9335 if test $cf_fix_cppflags = yes ; then
9336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9337 continue
9338 elif test "${cf_tst_cflags}" = "\"'" ; then
9339 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9340 continue
9341 fi
9342 ;;
9343 esac
9344 case "$CPPFLAGS" in
9345 *$cf_add_cflags) #(vi
9346 ;;
9347 *) #(vi
9348 case $cf_add_cflags in #(vi
9349 -D*)
9350 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9351
9352 CPPFLAGS=`echo "$CPPFLAGS" | \
9353 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9354 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9355
9356 ;;
9357 esac
9358 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9359 ;;
9360 esac
9361 ;;
9362 *)
9363 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9364 ;;
9365 esac
9366 ;;
9367 yes)
9368 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9369
9370 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9371
9372 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9373 && test -z "${cf_tst_cflags}" \
9374 && cf_fix_cppflags=no
9375 ;;
9376 esac
9377 done
9378
9379 if test -n "$cf_new_cflags" ; then
9380
9381 CFLAGS="$CFLAGS $cf_new_cflags"
9382 fi
9383
9384 if test -n "$cf_new_cppflags" ; then
9385
9386 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9387 fi
9388
9389 if test -n "$cf_new_extra_cppflags" ; then
9390
9391 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9392 fi
9393
9394 LIBS="$cf_pkgconfig_libs $LIBS"
9395
9396 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
9397 test -n "$verbose" && echo " found package sm" 1>&6
9398
9399 echo "${as_me:-configure}:9399: testing found package sm ..." 1>&5
9400
9401 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
9402 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
9403 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
9404
9405 echo "${as_me:-configure}:9405: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9406
9407 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
9408
9409 echo "${as_me:-configure}:9409: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
9410
9411 cf_fix_cppflags=no
9412 cf_new_cflags=
9413 cf_new_cppflags=
9414 cf_new_extra_cppflags=
9415
9416 for cf_add_cflags in $cf_pkgconfig_incs
9417 do
9418 case $cf_fix_cppflags in
9419 no)
9420 case $cf_add_cflags in #(vi
9421 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9422 case $cf_add_cflags in
9423 -D*)
9424 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9425
9426 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9427 && test -z "${cf_tst_cflags}" \
9428 && cf_fix_cppflags=yes
9429
9430 if test $cf_fix_cppflags = yes ; then
9431 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9432 continue
9433 elif test "${cf_tst_cflags}" = "\"'" ; then
9434 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9435 continue
9436 fi
9437 ;;
9438 esac
9439 case "$CPPFLAGS" in
9440 *$cf_add_cflags) #(vi
9441 ;;
9442 *) #(vi
9443 case $cf_add_cflags in #(vi
9444 -D*)
9445 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9446
9447 CPPFLAGS=`echo "$CPPFLAGS" | \
9448 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9449 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9450
9451 ;;
9452 esac
9453 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9454 ;;
9455 esac
9456 ;;
9457 *)
9458 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9459 ;;
9460 esac
9461 ;;
9462 yes)
9463 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9464
9465 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9466
9467 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9468 && test -z "${cf_tst_cflags}" \
9469 && cf_fix_cppflags=no
9470 ;;
9471 esac
9472 done
9473
9474 if test -n "$cf_new_cflags" ; then
9475
9476 CFLAGS="$CFLAGS $cf_new_cflags"
9477 fi
9478
9479 if test -n "$cf_new_cppflags" ; then
9480
9481 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9482 fi
9483
9484 if test -n "$cf_new_extra_cppflags" ; then
9485
9486 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9487 fi
9488
9489 LIBS="$cf_pkgconfig_libs $LIBS"
9490 :
9491 else
9492 cf_pkgconfig_incs=
9493 cf_pkgconfig_libs=
9494 :
9495 fi
9496
9497 else
9498 cf_pkgconfig_incs=
9499 cf_pkgconfig_libs=
9500
9501 test -n "$verbose" && echo " ...before $LIBS" 1>&6
9502
9503 echo "${as_me:-configure}:9503: testing ...before $LIBS ..." 1>&5
9504
9505 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
9506 test -n "$verbose" && echo " ...after $LIBS" 1>&6
9507
9508 echo "${as_me:-configure}:9508: testing ...after $LIBS ..." 1>&5
9509
9510 fi
9511
9512 ;;
9513 esac
9514 ;;
9515 esac
9516 fi
9517
9518 cf_have_X_LIBS=yes
9519
9520 else
9521 cf_pkgconfig_incs=
9522 cf_pkgconfig_libs=
9523
9524 LDFLAGS="$X_LIBS $LDFLAGS"
9525
9526 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
9527
9528 echo "${as_me:-configure}:9528: testing checking additions to CFLAGS ..." 1>&5
9529
9530 cf_check_cflags="$CFLAGS"
9531 cf_check_cppflags="$CPPFLAGS"
9532
9533 cf_fix_cppflags=no
9534 cf_new_cflags=
9535 cf_new_cppflags=
9536 cf_new_extra_cppflags=
9537
9538 for cf_add_cflags in $X_CFLAGS
9539 do
9540 case $cf_fix_cppflags in
9541 no)
9542 case $cf_add_cflags in #(vi
9543 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9544 case $cf_add_cflags in
9545 -D*)
9546 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9547
9548 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9549 && test -z "${cf_tst_cflags}" \
9550 && cf_fix_cppflags=yes
9551
9552 if test $cf_fix_cppflags = yes ; then
9553 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9554 continue
9555 elif test "${cf_tst_cflags}" = "\"'" ; then
9556 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9557 continue
9558 fi
9559 ;;
9560 esac
9561 case "$CPPFLAGS" in
9562 *$cf_add_cflags) #(vi
9563 ;;
9564 *) #(vi
9565 case $cf_add_cflags in #(vi
9566 -D*)
9567 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9568
9569 CPPFLAGS=`echo "$CPPFLAGS" | \
9570 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9571 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9572
9573 ;;
9574 esac
9575 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9576 ;;
9577 esac
9578 ;;
9579 *)
9580 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9581 ;;
9582 esac
9583 ;;
9584 yes)
9585 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9586
9587 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9588
9589 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9590 && test -z "${cf_tst_cflags}" \
9591 && cf_fix_cppflags=no
9592 ;;
9593 esac
9594 done
9595
9596 if test -n "$cf_new_cflags" ; then
9597 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
9598
9599 echo "${as_me:-configure}:9599: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
9600
9601 CFLAGS="$CFLAGS $cf_new_cflags"
9602 fi
9603
9604 if test -n "$cf_new_cppflags" ; then
9605 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
9606
9607 echo "${as_me:-configure}:9607: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
9608
9609 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9610 fi
9611
9612 if test -n "$cf_new_extra_cppflags" ; then
9613 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
9614
9615 echo "${as_me:-configure}:9615: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
9616
9617 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9618 fi
9619
9620 if test "$cf_check_cflags" != "$CFLAGS" ; then
9621 cat >conftest.$ac_ext <<_ACEOF
9622 #line 9622 "configure"
9623 #include "confdefs.h"
9624 #include <stdio.h>
9625 int
9626 main ()
9627 {
9628 printf("Hello world");
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (eval echo "$as_me:9634: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>&5
9636 ac_status=$?
9637 echo "$as_me:9637: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (eval echo "$as_me:9640: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:9643: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 :
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
9650
9651 echo "${as_me:-configure}:9651: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
9652
9653 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
9654 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
9655
9656 echo "${as_me:-configure}:9656: testing but keeping change to \$CPPFLAGS ..." 1>&5
9657
9658 fi
9659 CFLAGS="$cf_check_flags"
9660 fi
9661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9662 fi
9663
9664 echo "$as_me:9664: checking for XOpenDisplay" >&5
9665 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
9666 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line 9670 "configure"
9671 #include "confdefs.h"
9672 /* System header to define __stub macros and hopefully few prototypes,
9673 which can conflict with char XOpenDisplay (); below. */
9674 #include <assert.h>
9675 /* Override any gcc2 internal prototype to avoid an error. */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 /* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9681 char XOpenDisplay ();
9682 char (*f) ();
9683
9684 int
9685 main ()
9686 {
9687 /* The GNU C library defines this for functions which it implements
9688 to always fail with ENOSYS. Some functions are actually named
9689 something starting with __ and the normal name is an alias. */
9690 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
9691 choke me
9692 #else
9693 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9694 #endif
9695
9696 ;
9697 return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (eval echo "$as_me:9701: \"$ac_link\"") >&5
9702 (eval $ac_link) 2>&5
9703 ac_status=$?
9704 echo "$as_me:9704: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -s conftest$ac_exeext'
9707 { (eval echo "$as_me:9707: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:9710: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_cv_func_XOpenDisplay=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 ac_cv_func_XOpenDisplay=no
9717 fi
9718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9719 fi
9720 echo "$as_me:9720: result: $ac_cv_func_XOpenDisplay" >&5
9721 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
9722 if test $ac_cv_func_XOpenDisplay = yes; then
9723 :
9724 else
9725
9726 echo "$as_me:9726: checking for XOpenDisplay in -lX11" >&5
9727 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
9728 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731 ac_check_lib_save_LIBS=$LIBS
9732 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
9733 cat >conftest.$ac_ext <<_ACEOF
9734 #line 9734 "configure"
9735 #include "confdefs.h"
9736
9737 /* Override any gcc2 internal prototype to avoid an error. */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 /* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743 char XOpenDisplay ();
9744 int
9745 main ()
9746 {
9747 XOpenDisplay ();
9748 ;
9749 return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (eval echo "$as_me:9753: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9755 ac_status=$?
9756 echo "$as_me:9756: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:9759: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:9762: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_lib_X11_XOpenDisplay=yes
9765 else
9766 echo "$as_me: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 ac_cv_lib_X11_XOpenDisplay=no
9769 fi
9770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9772 fi
9773 echo "$as_me:9773: result: $ac_cv_lib_X11_XOpenDisplay" >&5
9774 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
9775 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
9776 LIBS="-lX11 $LIBS"
9777 fi
9778
9779 fi
9780
9781 echo "$as_me:9781: checking for XtAppInitialize" >&5
9782 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
9783 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line 9787 "configure"
9788 #include "confdefs.h"
9789 /* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char XtAppInitialize (); below. */
9791 #include <assert.h>
9792 /* Override any gcc2 internal prototype to avoid an error. */
9793 #ifdef __cplusplus
9794 extern "C"
9795 #endif
9796 /* We use char because int might match the return type of a gcc2
9797 builtin and then its argument prototype would still apply. */
9798 char XtAppInitialize ();
9799 char (*f) ();
9800
9801 int
9802 main ()
9803 {
9804 /* The GNU C library defines this for functions which it implements
9805 to always fail with ENOSYS. Some functions are actually named
9806 something starting with __ and the normal name is an alias. */
9807 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
9808 choke me
9809 #else
9810 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9811 #endif
9812
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (eval echo "$as_me:9818: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>&5
9820 ac_status=$?
9821 echo "$as_me:9821: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -s conftest$ac_exeext'
9824 { (eval echo "$as_me:9824: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:9827: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_cv_func_XtAppInitialize=yes
9830 else
9831 echo "$as_me: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 ac_cv_func_XtAppInitialize=no
9834 fi
9835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9836 fi
9837 echo "$as_me:9837: result: $ac_cv_func_XtAppInitialize" >&5
9838 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
9839 if test $ac_cv_func_XtAppInitialize = yes; then
9840 :
9841 else
9842
9843 echo "$as_me:9843: checking for XtAppInitialize in -lXt" >&5
9844 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
9845 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848 ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line 9851 "configure"
9852 #include "confdefs.h"
9853
9854 /* Override any gcc2 internal prototype to avoid an error. */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 /* We use char because int might match the return type of a gcc2
9859 builtin and then its argument prototype would still apply. */
9860 char XtAppInitialize ();
9861 int
9862 main ()
9863 {
9864 XtAppInitialize ();
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:9870: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>&5
9872 ac_status=$?
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:9876: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_lib_Xt_XtAppInitialize=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 ac_cv_lib_Xt_XtAppInitialize=no
9886 fi
9887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 echo "$as_me:9890: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
9891 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
9892 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
9893
9894 cat >>confdefs.h <<\EOF
9895 #define HAVE_LIBXT 1
9896 EOF
9897
9898 cf_have_X_LIBS=Xt
9899 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
9900 fi
9901
9902 fi
9903
9904 fi
9905
9906 if test $cf_have_X_LIBS = no ; then
9907 { echo "$as_me:9907: WARNING: Unable to successfully link X Toolkit library (-lXt) with
9908 test program. You will have to check and add the proper libraries by hand
9909 to makefile." >&5
9910 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
9911 test program. You will have to check and add the proper libraries by hand
9912 to makefile." >&2;}
9913 fi
9914
9915 for ac_header in \
9916 X11/DECkeysym.h \
9917 X11/Sunkeysym.h \
9918 X11/XF86keysym.h \
9919 X11/XKBlib.h \
9920 X11/Xpoll.h \
9921 X11/extensions/XKB.h \
9922
9923 do
9924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9925 echo "$as_me:9925: checking for $ac_header" >&5
9926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 cat >conftest.$ac_ext <<_ACEOF
9931 #line 9931 "configure"
9932 #include "confdefs.h"
9933 #include <$ac_header>
9934 _ACEOF
9935 if { (eval echo "$as_me:9935: \"$ac_cpp conftest.$ac_ext\"") >&5
9936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9937 ac_status=$?
9938 egrep -v '^ *\+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:9941: \$? = $ac_status" >&5
9942 (exit $ac_status); } >/dev/null; then
9943 if test -s conftest.err; then
9944 ac_cpp_err=$ac_c_preproc_warn_flag
9945 else
9946 ac_cpp_err=
9947 fi
9948 else
9949 ac_cpp_err=yes
9950 fi
9951 if test -z "$ac_cpp_err"; then
9952 eval "$as_ac_Header=yes"
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 eval "$as_ac_Header=no"
9957 fi
9958 rm -f conftest.err conftest.$ac_ext
9959 fi
9960 echo "$as_me:9960: result: `eval echo '${'$as_ac_Header'}'`" >&5
9961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9963 cat >>confdefs.h <<EOF
9964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9965 EOF
9966
9967 fi
9968 done
9969
9970 ICON_SUFFIX=.xbm
9971
9972 cf_save_cppflags="${CPPFLAGS}"
9973 cf_save_ldflags="${LDFLAGS}"
9974
9975 echo "$as_me:9975: checking if you want to use the Xpm library for colored icon" >&5
9976 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6
9977
9978 # Check whether --with-xpm or --without-xpm was given.
9979 if test "${with_xpm+set}" = set; then
9980 withval="$with_xpm"
9981 cf_Xpm_library="$withval"
9982 else
9983 cf_Xpm_library=yes
9984 fi;
9985 echo "$as_me:9985: result: $cf_Xpm_library" >&5
9986 echo "${ECHO_T}$cf_Xpm_library" >&6
9987
9988 if test "$cf_Xpm_library" != no ; then
9989 if test "$cf_Xpm_library" != yes ; then
9990 CPPFLAGS="$CPPFLAGS -I$withval/include"
9991 LDFLAGS="$LDFLAGS -L$withval/lib"
9992 fi
9993 echo "$as_me:9993: checking for X11/xpm.h" >&5
9994 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9995 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 cat >conftest.$ac_ext <<_ACEOF
9999 #line 9999 "configure"
10000 #include "confdefs.h"
10001 #include <X11/xpm.h>
10002 _ACEOF
10003 if { (eval echo "$as_me:10003: \"$ac_cpp conftest.$ac_ext\"") >&5
10004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10005 ac_status=$?
10006 egrep -v '^ *\+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:10009: \$? = $ac_status" >&5
10010 (exit $ac_status); } >/dev/null; then
10011 if test -s conftest.err; then
10012 ac_cpp_err=$ac_c_preproc_warn_flag
10013 else
10014 ac_cpp_err=
10015 fi
10016 else
10017 ac_cpp_err=yes
10018 fi
10019 if test -z "$ac_cpp_err"; then
10020 ac_cv_header_X11_xpm_h=yes
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 ac_cv_header_X11_xpm_h=no
10025 fi
10026 rm -f conftest.err conftest.$ac_ext
10027 fi
10028 echo "$as_me:10028: result: $ac_cv_header_X11_xpm_h" >&5
10029 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10030 if test $ac_cv_header_X11_xpm_h = yes; then
10031
10032 echo "$as_me:10032: checking for XpmCreatePixmapFromData in -lXpm" >&5
10033 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
10034 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037 ac_check_lib_save_LIBS=$LIBS
10038 LIBS="-lXpm -lX11 $X_LIBS $LIBS"
10039 cat >conftest.$ac_ext <<_ACEOF
10040 #line 10040 "configure"
10041 #include "confdefs.h"
10042
10043 /* Override any gcc2 internal prototype to avoid an error. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049 char XpmCreatePixmapFromData ();
10050 int
10051 main ()
10052 {
10053 XpmCreatePixmapFromData ();
10054 ;
10055 return 0;
10056 }
10057 _ACEOF
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (eval echo "$as_me:10059: \"$ac_link\"") >&5
10060 (eval $ac_link) 2>&5
10061 ac_status=$?
10062 echo "$as_me:10062: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (eval echo "$as_me:10065: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:10068: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
10071 else
10072 echo "$as_me: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10074 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
10075 fi
10076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10078 fi
10079 echo "$as_me:10079: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
10080 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
10081 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
10082
10083 cat >>confdefs.h <<\EOF
10084 #define HAVE_LIBXPM 1
10085 EOF
10086
10087 ICON_SUFFIX=.xpm
10088 LIBS="-lXpm $LIBS"
10089 else
10090 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
10091 fi
10092
10093 else
10094 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
10095 fi
10096
10097 fi
10098
10099 cf_x_athena=${cf_x_athena:-Xaw}
10100
10101 echo "$as_me:10101: checking if you want to link with Xaw 3d library" >&5
10102 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10103 withval=
10104
10105 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10106 if test "${with_Xaw3d+set}" = set; then
10107 withval="$with_Xaw3d"
10108
10109 fi;
10110 if test "$withval" = yes ; then
10111 cf_x_athena=Xaw3d
10112 echo "$as_me:10112: result: yes" >&5
10113 echo "${ECHO_T}yes" >&6
10114 else
10115 echo "$as_me:10115: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10117 fi
10118
10119 echo "$as_me:10119: checking if you want to link with neXT Athena library" >&5
10120 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10121 withval=
10122
10123 # Check whether --with-neXtaw or --without-neXtaw was given.
10124 if test "${with_neXtaw+set}" = set; then
10125 withval="$with_neXtaw"
10126
10127 fi;
10128 if test "$withval" = yes ; then
10129 cf_x_athena=neXtaw
10130 echo "$as_me:10130: result: yes" >&5
10131 echo "${ECHO_T}yes" >&6
10132 else
10133 echo "$as_me:10133: result: no" >&5
10134 echo "${ECHO_T}no" >&6
10135 fi
10136
10137 echo "$as_me:10137: checking if you want to link with Athena-Plus library" >&5
10138 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10139 withval=
10140
10141 # Check whether --with-XawPlus or --without-XawPlus was given.
10142 if test "${with_XawPlus+set}" = set; then
10143 withval="$with_XawPlus"
10144
10145 fi;
10146 if test "$withval" = yes ; then
10147 cf_x_athena=XawPlus
10148 echo "$as_me:10148: result: yes" >&5
10149 echo "${ECHO_T}yes" >&6
10150 else
10151 echo "$as_me:10151: result: no" >&5
10152 echo "${ECHO_T}no" >&6
10153 fi
10154
10155 cf_x_athena_lib=""
10156
10157 if test "$PKG_CONFIG" != none ; then
10158 cf_athena_list=
10159 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10160 for cf_athena_pkg in \
10161 $cf_athena_list \
10162 ${cf_x_athena} \
10163 ${cf_x_athena}-devel \
10164 lib${cf_x_athena} \
10165 lib${cf_x_athena}-devel
10166 do
10167
10168 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10169 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10170
10171 echo "${as_me:-configure}:10171: testing found package $cf_athena_pkg ..." 1>&5
10172
10173 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10174 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10175 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10176
10177 echo "${as_me:-configure}:10177: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10178
10179 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10180
10181 echo "${as_me:-configure}:10181: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10182
10183 cf_fix_cppflags=no
10184 cf_new_cflags=
10185 cf_new_cppflags=
10186 cf_new_extra_cppflags=
10187
10188 for cf_add_cflags in $cf_pkgconfig_incs
10189 do
10190 case $cf_fix_cppflags in
10191 no)
10192 case $cf_add_cflags in #(vi
10193 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10194 case $cf_add_cflags in
10195 -D*)
10196 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10197
10198 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10199 && test -z "${cf_tst_cflags}" \
10200 && cf_fix_cppflags=yes
10201
10202 if test $cf_fix_cppflags = yes ; then
10203 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10204 continue
10205 elif test "${cf_tst_cflags}" = "\"'" ; then
10206 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10207 continue
10208 fi
10209 ;;
10210 esac
10211 case "$CPPFLAGS" in
10212 *$cf_add_cflags) #(vi
10213 ;;
10214 *) #(vi
10215 case $cf_add_cflags in #(vi
10216 -D*)
10217 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10218
10219 CPPFLAGS=`echo "$CPPFLAGS" | \
10220 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10221 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10222
10223 ;;
10224 esac
10225 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10226 ;;
10227 esac
10228 ;;
10229 *)
10230 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10231 ;;
10232 esac
10233 ;;
10234 yes)
10235 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10236
10237 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10238
10239 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10240 && test -z "${cf_tst_cflags}" \
10241 && cf_fix_cppflags=no
10242 ;;
10243 esac
10244 done
10245
10246 if test -n "$cf_new_cflags" ; then
10247
10248 CFLAGS="$CFLAGS $cf_new_cflags"
10249 fi
10250
10251 if test -n "$cf_new_cppflags" ; then
10252
10253 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10254 fi
10255
10256 if test -n "$cf_new_extra_cppflags" ; then
10257
10258 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10259 fi
10260
10261 LIBS="$cf_pkgconfig_libs $LIBS"
10262
10263 cf_x_athena_lib="$cf_pkgconfig_libs"
10264
10265 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10266
10267 cat >>confdefs.h <<EOF
10268 #define $cf_x_athena_LIBS 1
10269 EOF
10270
10271 for cf_trim_lib in Xmu Xt X11
10272 do
10273 case "$LIBS" in
10274 *-l$cf_trim_lib\ *-l$cf_trim_lib*)
10275 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10276 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10277
10278 echo "${as_me:-configure}:10278: testing ..trimmed $LIBS ..." 1>&5
10279
10280 ;;
10281 esac
10282 done
10283
10284 echo "$as_me:10284: checking for usable $cf_x_athena/Xmu package" >&5
10285 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10286 if test "${cf_cv_xaw_compat+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289
10290 cat >conftest.$ac_ext <<_ACEOF
10291 #line 10291 "configure"
10292 #include "confdefs.h"
10293
10294 #include <X11/Xmu/CharSet.h>
10295
10296 int
10297 main ()
10298 {
10299
10300 int check = XmuCompareISOLatin1("big", "small")
10301
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (eval echo "$as_me:10307: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>&5
10309 ac_status=$?
10310 echo "$as_me:10310: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:10313: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:10316: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 cf_cv_xaw_compat=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 cf_cv_xaw_compat=no
10323 fi
10324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10325 fi
10326 echo "$as_me:10326: result: $cf_cv_xaw_compat" >&5
10327 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10328
10329 if test "$cf_cv_xaw_compat" = no
10330 then
10331 # workaround for broken ".pc" files...
10332 case "$cf_x_athena_lib" in #(vi
10333 *-lXmu*) #(vi
10334 ;;
10335 *)
10336 test -n "$verbose" && echo " work around broken package" 1>&6
10337
10338 echo "${as_me:-configure}:10338: testing work around broken package ..." 1>&5
10339
10340 cf_save_xmu="$LIBS"
10341 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
10342
10343 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10344 test -n "$verbose" && echo " found package xmu" 1>&6
10345
10346 echo "${as_me:-configure}:10346: testing found package xmu ..." 1>&5
10347
10348 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10349 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10350 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10351
10352 echo "${as_me:-configure}:10352: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10353
10354 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10355
10356 echo "${as_me:-configure}:10356: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10357
10358 cf_fix_cppflags=no
10359 cf_new_cflags=
10360 cf_new_cppflags=
10361 cf_new_extra_cppflags=
10362
10363 for cf_add_cflags in $cf_pkgconfig_incs
10364 do
10365 case $cf_fix_cppflags in
10366 no)
10367 case $cf_add_cflags in #(vi
10368 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10369 case $cf_add_cflags in
10370 -D*)
10371 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10372
10373 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10374 && test -z "${cf_tst_cflags}" \
10375 && cf_fix_cppflags=yes
10376
10377 if test $cf_fix_cppflags = yes ; then
10378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10379 continue
10380 elif test "${cf_tst_cflags}" = "\"'" ; then
10381 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10382 continue
10383 fi
10384 ;;
10385 esac
10386 case "$CPPFLAGS" in
10387 *$cf_add_cflags) #(vi
10388 ;;
10389 *) #(vi
10390 case $cf_add_cflags in #(vi
10391 -D*)
10392 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10393
10394 CPPFLAGS=`echo "$CPPFLAGS" | \
10395 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10396 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10397
10398 ;;
10399 esac
10400 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10401 ;;
10402 esac
10403 ;;
10404 *)
10405 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10406 ;;
10407 esac
10408 ;;
10409 yes)
10410 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10411
10412 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10413
10414 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10415 && test -z "${cf_tst_cflags}" \
10416 && cf_fix_cppflags=no
10417 ;;
10418 esac
10419 done
10420
10421 if test -n "$cf_new_cflags" ; then
10422
10423 CFLAGS="$CFLAGS $cf_new_cflags"
10424 fi
10425
10426 if test -n "$cf_new_cppflags" ; then
10427
10428 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10429 fi
10430
10431 if test -n "$cf_new_extra_cppflags" ; then
10432
10433 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10434 fi
10435
10436 LIBS="$cf_pkgconfig_libs $LIBS"
10437
10438 LIBS="$cf_save_xmu"
10439
10440 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10441
10442 echo "${as_me:-configure}:10442: testing ...before $LIBS ..." 1>&5
10443
10444 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
10445 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10446
10447 echo "${as_me:-configure}:10447: testing ...after $LIBS ..." 1>&5
10448
10449 else
10450 cf_pkgconfig_incs=
10451 cf_pkgconfig_libs=
10452
10453 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10454
10455 echo "${as_me:-configure}:10455: testing ...before $LIBS ..." 1>&5
10456
10457 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
10458 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10459
10460 echo "${as_me:-configure}:10460: testing ...after $LIBS ..." 1>&5
10461
10462 fi
10463
10464 for cf_trim_lib in Xmu Xt X11
10465 do
10466 case "$LIBS" in
10467 *-l$cf_trim_lib\ *-l$cf_trim_lib*)
10468 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10469 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10470
10471 echo "${as_me:-configure}:10471: testing ..trimmed $LIBS ..." 1>&5
10472
10473 ;;
10474 esac
10475 done
10476
10477 ;;
10478 esac
10479 fi
10480
10481 break
10482 else
10483 cf_pkgconfig_incs=
10484 cf_pkgconfig_libs=
10485 :
10486 fi
10487
10488 done
10489 fi
10490
10491 if test -z "$cf_x_athena_lib" ; then
10492
10493 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10494 test -n "$verbose" && echo " found package Xext" 1>&6
10495
10496 echo "${as_me:-configure}:10496: testing found package Xext ..." 1>&5
10497
10498 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10499 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10500 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10501
10502 echo "${as_me:-configure}:10502: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10503
10504 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10505
10506 echo "${as_me:-configure}:10506: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10507
10508 cf_fix_cppflags=no
10509 cf_new_cflags=
10510 cf_new_cppflags=
10511 cf_new_extra_cppflags=
10512
10513 for cf_add_cflags in $cf_pkgconfig_incs
10514 do
10515 case $cf_fix_cppflags in
10516 no)
10517 case $cf_add_cflags in #(vi
10518 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10519 case $cf_add_cflags in
10520 -D*)
10521 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10522
10523 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10524 && test -z "${cf_tst_cflags}" \
10525 && cf_fix_cppflags=yes
10526
10527 if test $cf_fix_cppflags = yes ; then
10528 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10529 continue
10530 elif test "${cf_tst_cflags}" = "\"'" ; then
10531 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10532 continue
10533 fi
10534 ;;
10535 esac
10536 case "$CPPFLAGS" in
10537 *$cf_add_cflags) #(vi
10538 ;;
10539 *) #(vi
10540 case $cf_add_cflags in #(vi
10541 -D*)
10542 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10543
10544 CPPFLAGS=`echo "$CPPFLAGS" | \
10545 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10546 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10547
10548 ;;
10549 esac
10550 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10551 ;;
10552 esac
10553 ;;
10554 *)
10555 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10556 ;;
10557 esac
10558 ;;
10559 yes)
10560 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10561
10562 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10563
10564 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10565 && test -z "${cf_tst_cflags}" \
10566 && cf_fix_cppflags=no
10567 ;;
10568 esac
10569 done
10570
10571 if test -n "$cf_new_cflags" ; then
10572
10573 CFLAGS="$CFLAGS $cf_new_cflags"
10574 fi
10575
10576 if test -n "$cf_new_cppflags" ; then
10577
10578 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10579 fi
10580
10581 if test -n "$cf_new_extra_cppflags" ; then
10582
10583 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10584 fi
10585
10586 LIBS="$cf_pkgconfig_libs $LIBS"
10587 :
10588 else
10589 cf_pkgconfig_incs=
10590 cf_pkgconfig_libs=
10591
10592 echo "$as_me:10592: checking for XextCreateExtension in -lXext" >&5
10593 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10594 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lXext $LIBS"
10599 cat >conftest.$ac_ext <<_ACEOF
10600 #line 10600 "configure"
10601 #include "confdefs.h"
10602
10603 /* Override any gcc2 internal prototype to avoid an error. */
10604 #ifdef __cplusplus
10605 extern "C"
10606 #endif
10607 /* We use char because int might match the return type of a gcc2
10608 builtin and then its argument prototype would still apply. */
10609 char XextCreateExtension ();
10610 int
10611 main ()
10612 {
10613 XextCreateExtension ();
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:10619: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>&5
10621 ac_status=$?
10622 echo "$as_me:10622: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -s conftest$ac_exeext'
10625 { (eval echo "$as_me:10625: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:10628: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_cv_lib_Xext_XextCreateExtension=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 ac_cv_lib_Xext_XextCreateExtension=no
10635 fi
10636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10637 LIBS=$ac_check_lib_save_LIBS
10638 fi
10639 echo "$as_me:10639: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10640 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10641 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10642 LIBS="-lXext $LIBS"
10643 fi
10644
10645 fi
10646
10647 cf_have_X_LIBS=no
10648
10649 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
10650 test -n "$verbose" && echo " found package xt" 1>&6
10651
10652 echo "${as_me:-configure}:10652: testing found package xt ..." 1>&5
10653
10654 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
10655 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
10656 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10657
10658 echo "${as_me:-configure}:10658: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10659
10660 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10661
10662 echo "${as_me:-configure}:10662: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10663
10664 cf_fix_cppflags=no
10665 cf_new_cflags=
10666 cf_new_cppflags=
10667 cf_new_extra_cppflags=
10668
10669 for cf_add_cflags in $cf_pkgconfig_incs
10670 do
10671 case $cf_fix_cppflags in
10672 no)
10673 case $cf_add_cflags in #(vi
10674 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10675 case $cf_add_cflags in
10676 -D*)
10677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10678
10679 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10680 && test -z "${cf_tst_cflags}" \
10681 && cf_fix_cppflags=yes
10682
10683 if test $cf_fix_cppflags = yes ; then
10684 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10685 continue
10686 elif test "${cf_tst_cflags}" = "\"'" ; then
10687 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10688 continue
10689 fi
10690 ;;
10691 esac
10692 case "$CPPFLAGS" in
10693 *$cf_add_cflags) #(vi
10694 ;;
10695 *) #(vi
10696 case $cf_add_cflags in #(vi
10697 -D*)
10698 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10699
10700 CPPFLAGS=`echo "$CPPFLAGS" | \
10701 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10702 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10703
10704 ;;
10705 esac
10706 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10707 ;;
10708 esac
10709 ;;
10710 *)
10711 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10712 ;;
10713 esac
10714 ;;
10715 yes)
10716 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10717
10718 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10719
10720 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10721 && test -z "${cf_tst_cflags}" \
10722 && cf_fix_cppflags=no
10723 ;;
10724 esac
10725 done
10726
10727 if test -n "$cf_new_cflags" ; then
10728
10729 CFLAGS="$CFLAGS $cf_new_cflags"
10730 fi
10731
10732 if test -n "$cf_new_cppflags" ; then
10733
10734 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10735 fi
10736
10737 if test -n "$cf_new_extra_cppflags" ; then
10738
10739 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10740 fi
10741
10742 LIBS="$cf_pkgconfig_libs $LIBS"
10743
10744 case "x$LIBS" in #(vi
10745 *-lX11*) #(vi
10746 ;;
10747 *)
10748 # we have an "xt" package, but it may omit Xt's dependency on X11
10749 echo "$as_me:10749: checking for usable X dependency" >&5
10750 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
10751 if test "${cf_cv_xt_x11_compat+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line 10756 "configure"
10757 #include "confdefs.h"
10758
10759 #include <X11/Xlib.h>
10760
10761 int
10762 main ()
10763 {
10764
10765 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
10766 int rc2 = XClearWindow((Display*) 0, (Window) 0);
10767 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
10768 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
10769
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>&5
10777 ac_status=$?
10778 echo "$as_me:10778: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -s conftest$ac_exeext'
10781 { (eval echo "$as_me:10781: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:10784: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 cf_cv_xt_x11_compat=yes
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10790 cf_cv_xt_x11_compat=no
10791 fi
10792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10793 fi
10794 echo "$as_me:10794: result: $cf_cv_xt_x11_compat" >&5
10795 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
10796 if test "$cf_cv_xt_x11_compat" = no
10797 then
10798 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
10799
10800 echo "${as_me:-configure}:10800: testing work around broken X11 dependency ..." 1>&5
10801
10802 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
10803
10804 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10805 test -n "$verbose" && echo " found package x11" 1>&6
10806
10807 echo "${as_me:-configure}:10807: testing found package x11 ..." 1>&5
10808
10809 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10810 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10811 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10812
10813 echo "${as_me:-configure}:10813: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10814
10815 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10816
10817 echo "${as_me:-configure}:10817: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10818
10819 cf_fix_cppflags=no
10820 cf_new_cflags=
10821 cf_new_cppflags=
10822 cf_new_extra_cppflags=
10823
10824 for cf_add_cflags in $cf_pkgconfig_incs
10825 do
10826 case $cf_fix_cppflags in
10827 no)
10828 case $cf_add_cflags in #(vi
10829 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10830 case $cf_add_cflags in
10831 -D*)
10832 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10833
10834 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10835 && test -z "${cf_tst_cflags}" \
10836 && cf_fix_cppflags=yes
10837
10838 if test $cf_fix_cppflags = yes ; then
10839 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10840 continue
10841 elif test "${cf_tst_cflags}" = "\"'" ; then
10842 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10843 continue
10844 fi
10845 ;;
10846 esac
10847 case "$CPPFLAGS" in
10848 *$cf_add_cflags) #(vi
10849 ;;
10850 *) #(vi
10851 case $cf_add_cflags in #(vi
10852 -D*)
10853 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10854
10855 CPPFLAGS=`echo "$CPPFLAGS" | \
10856 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10857 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10858
10859 ;;
10860 esac
10861 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10862 ;;
10863 esac
10864 ;;
10865 *)
10866 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10867 ;;
10868 esac
10869 ;;
10870 yes)
10871 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10872
10873 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10874
10875 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10876 && test -z "${cf_tst_cflags}" \
10877 && cf_fix_cppflags=no
10878 ;;
10879 esac
10880 done
10881
10882 if test -n "$cf_new_cflags" ; then
10883
10884 CFLAGS="$CFLAGS $cf_new_cflags"
10885 fi
10886
10887 if test -n "$cf_new_cppflags" ; then
10888
10889 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10890 fi
10891
10892 if test -n "$cf_new_extra_cppflags" ; then
10893
10894 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10895 fi
10896
10897 LIBS="$cf_pkgconfig_libs $LIBS"
10898 :
10899 else
10900 cf_pkgconfig_incs=
10901 cf_pkgconfig_libs=
10902
10903 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10904
10905 echo "${as_me:-configure}:10905: testing ...before $LIBS ..." 1>&5
10906
10907 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
10908 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10909
10910 echo "${as_me:-configure}:10910: testing ...after $LIBS ..." 1>&5
10911
10912 fi
10913
10914 fi
10915 ;;
10916 esac
10917
10918 echo "$as_me:10918: checking for usable X Toolkit package" >&5
10919 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
10920 if test "${cf_cv_xt_ice_compat+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line 10925 "configure"
10926 #include "confdefs.h"
10927
10928 #include <X11/Shell.h>
10929
10930 int
10931 main ()
10932 {
10933 int num = IceConnectionNumber(0)
10934
10935 ;
10936 return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext conftest$ac_exeext
10940 if { (eval echo "$as_me:10940: \"$ac_link\"") >&5
10941 (eval $ac_link) 2>&5
10942 ac_status=$?
10943 echo "$as_me:10943: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -s conftest$ac_exeext'
10946 { (eval echo "$as_me:10946: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:10949: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 cf_cv_xt_ice_compat=yes
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 cf_cv_xt_ice_compat=no
10956 fi
10957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10958 fi
10959 echo "$as_me:10959: result: $cf_cv_xt_ice_compat" >&5
10960 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
10961
10962 if test "$cf_cv_xt_ice_compat" = no
10963 then
10964 # workaround for broken ".pc" files used for X Toolkit.
10965 case "x$X_PRE_LIBS" in #(vi
10966 *-lICE*)
10967 case "x$LIBS" in #(vi
10968 *-lICE*) #(vi
10969 ;;
10970 *)
10971 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
10972
10973 echo "${as_me:-configure}:10973: testing work around broken ICE dependency ..." 1>&5
10974
10975 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
10976 test -n "$verbose" && echo " found package ice" 1>&6
10977
10978 echo "${as_me:-configure}:10978: testing found package ice ..." 1>&5
10979
10980 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10981 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
10982 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10983
10984 echo "${as_me:-configure}:10984: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10985
10986 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10987
10988 echo "${as_me:-configure}:10988: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10989
10990 cf_fix_cppflags=no
10991 cf_new_cflags=
10992 cf_new_cppflags=
10993 cf_new_extra_cppflags=
10994
10995 for cf_add_cflags in $cf_pkgconfig_incs
10996 do
10997 case $cf_fix_cppflags in
10998 no)
10999 case $cf_add_cflags in #(vi
11000 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11001 case $cf_add_cflags in
11002 -D*)
11003 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11004
11005 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11006 && test -z "${cf_tst_cflags}" \
11007 && cf_fix_cppflags=yes
11008
11009 if test $cf_fix_cppflags = yes ; then
11010 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11011 continue
11012 elif test "${cf_tst_cflags}" = "\"'" ; then
11013 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11014 continue
11015 fi
11016 ;;
11017 esac
11018 case "$CPPFLAGS" in
11019 *$cf_add_cflags) #(vi
11020 ;;
11021 *) #(vi
11022 case $cf_add_cflags in #(vi
11023 -D*)
11024 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11025
11026 CPPFLAGS=`echo "$CPPFLAGS" | \
11027 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11028 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11029
11030 ;;
11031 esac
11032 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11033 ;;
11034 esac
11035 ;;
11036 *)
11037 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11038 ;;
11039 esac
11040 ;;
11041 yes)
11042 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11043
11044 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11045
11046 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11047 && test -z "${cf_tst_cflags}" \
11048 && cf_fix_cppflags=no
11049 ;;
11050 esac
11051 done
11052
11053 if test -n "$cf_new_cflags" ; then
11054
11055 CFLAGS="$CFLAGS $cf_new_cflags"
11056 fi
11057
11058 if test -n "$cf_new_cppflags" ; then
11059
11060 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11061 fi
11062
11063 if test -n "$cf_new_extra_cppflags" ; then
11064
11065 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11066 fi
11067
11068 LIBS="$cf_pkgconfig_libs $LIBS"
11069
11070 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11071 test -n "$verbose" && echo " found package sm" 1>&6
11072
11073 echo "${as_me:-configure}:11073: testing found package sm ..." 1>&5
11074
11075 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11076 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11077 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11078
11079 echo "${as_me:-configure}:11079: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11080
11081 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11082
11083 echo "${as_me:-configure}:11083: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11084
11085 cf_fix_cppflags=no
11086 cf_new_cflags=
11087 cf_new_cppflags=
11088 cf_new_extra_cppflags=
11089
11090 for cf_add_cflags in $cf_pkgconfig_incs
11091 do
11092 case $cf_fix_cppflags in
11093 no)
11094 case $cf_add_cflags in #(vi
11095 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11096 case $cf_add_cflags in
11097 -D*)
11098 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11099
11100 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11101 && test -z "${cf_tst_cflags}" \
11102 && cf_fix_cppflags=yes
11103
11104 if test $cf_fix_cppflags = yes ; then
11105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11106 continue
11107 elif test "${cf_tst_cflags}" = "\"'" ; then
11108 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11109 continue
11110 fi
11111 ;;
11112 esac
11113 case "$CPPFLAGS" in
11114 *$cf_add_cflags) #(vi
11115 ;;
11116 *) #(vi
11117 case $cf_add_cflags in #(vi
11118 -D*)
11119 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11120
11121 CPPFLAGS=`echo "$CPPFLAGS" | \
11122 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11123 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11124
11125 ;;
11126 esac
11127 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11128 ;;
11129 esac
11130 ;;
11131 *)
11132 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11133 ;;
11134 esac
11135 ;;
11136 yes)
11137 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11138
11139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11140
11141 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11142 && test -z "${cf_tst_cflags}" \
11143 && cf_fix_cppflags=no
11144 ;;
11145 esac
11146 done
11147
11148 if test -n "$cf_new_cflags" ; then
11149
11150 CFLAGS="$CFLAGS $cf_new_cflags"
11151 fi
11152
11153 if test -n "$cf_new_cppflags" ; then
11154
11155 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11156 fi
11157
11158 if test -n "$cf_new_extra_cppflags" ; then
11159
11160 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11161 fi
11162
11163 LIBS="$cf_pkgconfig_libs $LIBS"
11164 :
11165 else
11166 cf_pkgconfig_incs=
11167 cf_pkgconfig_libs=
11168 :
11169 fi
11170
11171 else
11172 cf_pkgconfig_incs=
11173 cf_pkgconfig_libs=
11174
11175 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11176
11177 echo "${as_me:-configure}:11177: testing ...before $LIBS ..." 1>&5
11178
11179 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11180 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11181
11182 echo "${as_me:-configure}:11182: testing ...after $LIBS ..." 1>&5
11183
11184 fi
11185
11186 ;;
11187 esac
11188 ;;
11189 esac
11190 fi
11191
11192 cf_have_X_LIBS=yes
11193
11194 else
11195 cf_pkgconfig_incs=
11196 cf_pkgconfig_libs=
11197
11198 LDFLAGS="$X_LIBS $LDFLAGS"
11199
11200 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11201
11202 echo "${as_me:-configure}:11202: testing checking additions to CFLAGS ..." 1>&5
11203
11204 cf_check_cflags="$CFLAGS"
11205 cf_check_cppflags="$CPPFLAGS"
11206
11207 cf_fix_cppflags=no
11208 cf_new_cflags=
11209 cf_new_cppflags=
11210 cf_new_extra_cppflags=
11211
11212 for cf_add_cflags in $X_CFLAGS
11213 do
11214 case $cf_fix_cppflags in
11215 no)
11216 case $cf_add_cflags in #(vi
11217 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11218 case $cf_add_cflags in
11219 -D*)
11220 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11221
11222 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11223 && test -z "${cf_tst_cflags}" \
11224 && cf_fix_cppflags=yes
11225
11226 if test $cf_fix_cppflags = yes ; then
11227 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11228 continue
11229 elif test "${cf_tst_cflags}" = "\"'" ; then
11230 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11231 continue
11232 fi
11233 ;;
11234 esac
11235 case "$CPPFLAGS" in
11236 *$cf_add_cflags) #(vi
11237 ;;
11238 *) #(vi
11239 case $cf_add_cflags in #(vi
11240 -D*)
11241 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11242
11243 CPPFLAGS=`echo "$CPPFLAGS" | \
11244 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11245 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11246
11247 ;;
11248 esac
11249 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11250 ;;
11251 esac
11252 ;;
11253 *)
11254 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11255 ;;
11256 esac
11257 ;;
11258 yes)
11259 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11260
11261 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11262
11263 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11264 && test -z "${cf_tst_cflags}" \
11265 && cf_fix_cppflags=no
11266 ;;
11267 esac
11268 done
11269
11270 if test -n "$cf_new_cflags" ; then
11271 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11272
11273 echo "${as_me:-configure}:11273: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11274
11275 CFLAGS="$CFLAGS $cf_new_cflags"
11276 fi
11277
11278 if test -n "$cf_new_cppflags" ; then
11279 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11280
11281 echo "${as_me:-configure}:11281: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11282
11283 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11284 fi
11285
11286 if test -n "$cf_new_extra_cppflags" ; then
11287 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11288
11289 echo "${as_me:-configure}:11289: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11290
11291 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11292 fi
11293
11294 if test "$cf_check_cflags" != "$CFLAGS" ; then
11295 cat >conftest.$ac_ext <<_ACEOF
11296 #line 11296 "configure"
11297 #include "confdefs.h"
11298 #include <stdio.h>
11299 int
11300 main ()
11301 {
11302 printf("Hello world");
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (eval echo "$as_me:11308: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 echo "$as_me:11311: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:11314: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:11317: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 :
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11323 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11324
11325 echo "${as_me:-configure}:11325: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11326
11327 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11328 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11329
11330 echo "${as_me:-configure}:11330: testing but keeping change to \$CPPFLAGS ..." 1>&5
11331
11332 fi
11333 CFLAGS="$cf_check_flags"
11334 fi
11335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336 fi
11337
11338 echo "$as_me:11338: checking for XOpenDisplay" >&5
11339 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11340 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 cat >conftest.$ac_ext <<_ACEOF
11344 #line 11344 "configure"
11345 #include "confdefs.h"
11346 /* System header to define __stub macros and hopefully few prototypes,
11347 which can conflict with char XOpenDisplay (); below. */
11348 #include <assert.h>
11349 /* Override any gcc2 internal prototype to avoid an error. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355 char XOpenDisplay ();
11356 char (*f) ();
11357
11358 int
11359 main ()
11360 {
11361 /* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11365 choke me
11366 #else
11367 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11368 #endif
11369
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:11375: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>&5
11377 ac_status=$?
11378 echo "$as_me:11378: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:11381: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:11384: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_func_XOpenDisplay=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11390 ac_cv_func_XOpenDisplay=no
11391 fi
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393 fi
11394 echo "$as_me:11394: result: $ac_cv_func_XOpenDisplay" >&5
11395 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11396 if test $ac_cv_func_XOpenDisplay = yes; then
11397 :
11398 else
11399
11400 echo "$as_me:11400: checking for XOpenDisplay in -lX11" >&5
11401 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11402 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11407 cat >conftest.$ac_ext <<_ACEOF
11408 #line 11408 "configure"
11409 #include "confdefs.h"
11410
11411 /* Override any gcc2 internal prototype to avoid an error. */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 /* We use char because int might match the return type of a gcc2
11416 builtin and then its argument prototype would still apply. */
11417 char XOpenDisplay ();
11418 int
11419 main ()
11420 {
11421 XOpenDisplay ();
11422 ;
11423 return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:11427: \"$ac_link\"") >&5
11428 (eval $ac_link) 2>&5
11429 ac_status=$?
11430 echo "$as_me:11430: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -s conftest$ac_exeext'
11433 { (eval echo "$as_me:11433: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:11436: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 ac_cv_lib_X11_XOpenDisplay=yes
11439 else
11440 echo "$as_me: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11442 ac_cv_lib_X11_XOpenDisplay=no
11443 fi
11444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 echo "$as_me:11447: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11448 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11449 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11450 LIBS="-lX11 $LIBS"
11451 fi
11452
11453 fi
11454
11455 echo "$as_me:11455: checking for XtAppInitialize" >&5
11456 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11457 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line 11461 "configure"
11462 #include "confdefs.h"
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char XtAppInitialize (); below. */
11465 #include <assert.h>
11466 /* Override any gcc2 internal prototype to avoid an error. */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 /* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11472 char XtAppInitialize ();
11473 char (*f) ();
11474
11475 int
11476 main ()
11477 {
11478 /* The GNU C library defines this for functions which it implements
11479 to always fail with ENOSYS. Some functions are actually named
11480 something starting with __ and the normal name is an alias. */
11481 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11482 choke me
11483 #else
11484 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11485 #endif
11486
11487 ;
11488 return 0;
11489 }
11490 _ACEOF
11491 rm -f conftest.$ac_objext conftest$ac_exeext
11492 if { (eval echo "$as_me:11492: \"$ac_link\"") >&5
11493 (eval $ac_link) 2>&5
11494 ac_status=$?
11495 echo "$as_me:11495: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:11498: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:11501: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_cv_func_XtAppInitialize=yes
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 cat conftest.$ac_ext >&5
11507 ac_cv_func_XtAppInitialize=no
11508 fi
11509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11510 fi
11511 echo "$as_me:11511: result: $ac_cv_func_XtAppInitialize" >&5
11512 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11513 if test $ac_cv_func_XtAppInitialize = yes; then
11514 :
11515 else
11516
11517 echo "$as_me:11517: checking for XtAppInitialize in -lXt" >&5
11518 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11519 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11524 cat >conftest.$ac_ext <<_ACEOF
11525 #line 11525 "configure"
11526 #include "confdefs.h"
11527
11528 /* Override any gcc2 internal prototype to avoid an error. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char XtAppInitialize ();
11535 int
11536 main ()
11537 {
11538 XtAppInitialize ();
11539 ;
11540 return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:11544: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>&5
11546 ac_status=$?
11547 echo "$as_me:11547: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:11550: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:11553: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_cv_lib_Xt_XtAppInitialize=yes
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 ac_cv_lib_Xt_XtAppInitialize=no
11560 fi
11561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11563 fi
11564 echo "$as_me:11564: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11565 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11566 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
11567
11568 cat >>confdefs.h <<\EOF
11569 #define HAVE_LIBXT 1
11570 EOF
11571
11572 cf_have_X_LIBS=Xt
11573 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
11574 fi
11575
11576 fi
11577
11578 fi
11579
11580 if test $cf_have_X_LIBS = no ; then
11581 { echo "$as_me:11581: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11582 test program. You will have to check and add the proper libraries by hand
11583 to makefile." >&5
11584 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11585 test program. You will have to check and add the proper libraries by hand
11586 to makefile." >&2;}
11587 fi
11588
11589 cf_x_athena_root=$cf_x_athena
11590 cf_x_athena_inc=""
11591
11592 for cf_path in default \
11593 /usr/contrib/X11R6 \
11594 /usr/contrib/X11R5 \
11595 /usr/lib/X11R5 \
11596 /usr/local
11597 do
11598 if test -z "$cf_x_athena_inc" ; then
11599 cf_save="$CPPFLAGS"
11600 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
11601 if test $cf_path != default ; then
11602 CPPFLAGS="$cf_save -I$cf_path/include"
11603 echo "$as_me:11603: checking for $cf_test in $cf_path" >&5
11604 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
11605 else
11606 echo "$as_me:11606: checking for $cf_test" >&5
11607 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
11608 fi
11609 cat >conftest.$ac_ext <<_ACEOF
11610 #line 11610 "configure"
11611 #include "confdefs.h"
11612
11613 #include <X11/Intrinsic.h>
11614 #include <$cf_test>
11615 int
11616 main ()
11617 {
11618
11619 ;
11620 return 0;
11621 }
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (eval echo "$as_me:11624: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>&5
11626 ac_status=$?
11627 echo "$as_me:11627: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:11630: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:11633: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 cf_result=yes
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 cf_result=no
11640 fi
11641 rm -f conftest.$ac_objext conftest.$ac_ext
11642 echo "$as_me:11642: result: $cf_result" >&5
11643 echo "${ECHO_T}$cf_result" >&6
11644 if test "$cf_result" = yes ; then
11645 cf_x_athena_inc=$cf_path
11646 break
11647 else
11648 CPPFLAGS="$cf_save"
11649 fi
11650 fi
11651 done
11652
11653 if test -z "$cf_x_athena_inc" ; then
11654 { echo "$as_me:11654: WARNING: Unable to successfully find Athena header files with test program" >&5
11655 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
11656 elif test "$cf_x_athena_inc" != default ; then
11657 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
11658 fi
11659
11660 cf_x_athena_root=$cf_x_athena
11661 cf_x_athena_lib=""
11662
11663 for cf_path in default \
11664 /usr/contrib/X11R6 \
11665 /usr/contrib/X11R5 \
11666 /usr/lib/X11R5 \
11667 /usr/local
11668 do
11669 for cf_lib in \
11670 ${cf_x_athena_root} \
11671 ${cf_x_athena_root}7 \
11672 ${cf_x_athena_root}6
11673 do
11674 for cf_libs in \
11675 "-l$cf_lib -lXmu" \
11676 "-l$cf_lib -lXpm -lXmu" \
11677 "-l${cf_lib}_s -lXmu_s"
11678 do
11679 if test -z "$cf_x_athena_lib" ; then
11680 cf_save="$LIBS"
11681 cf_test=XawSimpleMenuAddGlobalActions
11682 if test $cf_path != default ; then
11683 LIBS="-L$cf_path/lib $cf_libs $LIBS"
11684 echo "$as_me:11684: checking for $cf_libs in $cf_path" >&5
11685 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
11686 else
11687 LIBS="$cf_libs $LIBS"
11688 echo "$as_me:11688: checking for $cf_test in $cf_libs" >&5
11689 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
11690 fi
11691 cat >conftest.$ac_ext <<_ACEOF
11692 #line 11692 "configure"
11693 #include "confdefs.h"
11694
11695 #include <X11/Intrinsic.h>
11696 #include <X11/$cf_x_athena_root/SimpleMenu.h>
11697
11698 int
11699 main ()
11700 {
11701
11702 $cf_test((XtAppContext) 0)
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:11708: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>&5
11710 ac_status=$?
11711 echo "$as_me:11711: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:11714: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:11717: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 cf_result=yes
11720 else
11721 echo "$as_me: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 cf_result=no
11724 fi
11725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11726 echo "$as_me:11726: result: $cf_result" >&5
11727 echo "${ECHO_T}$cf_result" >&6
11728 if test "$cf_result" = yes ; then
11729 cf_x_athena_lib="$cf_libs"
11730 break
11731 fi
11732 LIBS="$cf_save"
11733 fi
11734 done # cf_libs
11735 test -n "$cf_x_athena_lib" && break
11736 done # cf_lib
11737 done
11738
11739 if test -z "$cf_x_athena_lib" ; then
11740 { { echo "$as_me:11740: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
11741 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
11742 { (exit 1); exit 1; }; }
11743 fi
11744
11745 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11746
11747 cat >>confdefs.h <<EOF
11748 #define $cf_x_athena_LIBS 1
11749 EOF
11750
11751 fi
11752
11753 for ac_header in X11/Xpoll.h
11754 do
11755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11756 echo "$as_me:11756: checking for $ac_header" >&5
11757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761 cat >conftest.$ac_ext <<_ACEOF
11762 #line 11762 "configure"
11763 #include "confdefs.h"
11764 #include <$ac_header>
11765 _ACEOF
11766 if { (eval echo "$as_me:11766: \"$ac_cpp conftest.$ac_ext\"") >&5
11767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11768 ac_status=$?
11769 egrep -v '^ *\+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:11772: \$? = $ac_status" >&5
11773 (exit $ac_status); } >/dev/null; then
11774 if test -s conftest.err; then
11775 ac_cpp_err=$ac_c_preproc_warn_flag
11776 else
11777 ac_cpp_err=
11778 fi
11779 else
11780 ac_cpp_err=yes
11781 fi
11782 if test -z "$ac_cpp_err"; then
11783 eval "$as_ac_Header=yes"
11784 else
11785 echo "$as_me: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 eval "$as_ac_Header=no"
11788 fi
11789 rm -f conftest.err conftest.$ac_ext
11790 fi
11791 echo "$as_me:11791: result: `eval echo '${'$as_ac_Header'}'`" >&5
11792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11794 cat >>confdefs.h <<EOF
11795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11796 EOF
11797
11798 fi
11799 done
11800
11801 echo "$as_me:11801: checking for declaration of fd_set" >&5
11802 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
11803 if test "${cf_cv_type_fd_set+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806
11807 echo "${as_me:-configure}:11807: testing sys/types alone ..." 1>&5
11808
11809 cat >conftest.$ac_ext <<_ACEOF
11810 #line 11810 "configure"
11811 #include "confdefs.h"
11812
11813 #include <sys/types.h>
11814 int
11815 main ()
11816 {
11817 fd_set x
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:11823: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11825 ac_status=$?
11826 echo "$as_me:11826: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:11829: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:11832: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 cf_cv_type_fd_set=sys/types.h
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838
11839 echo "${as_me:-configure}:11839: testing X11/Xpoll.h ..." 1>&5
11840
11841 cat >conftest.$ac_ext <<_ACEOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11844
11845 #ifdef HAVE_X11_XPOLL_H
11846 #include <X11/Xpoll.h>
11847 #endif
11848 int
11849 main ()
11850 {
11851 fd_set x
11852 ;
11853 return 0;
11854 }
11855 _ACEOF
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:11857: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>&5
11859 ac_status=$?
11860 echo "$as_me:11860: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:11863: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:11866: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 cf_cv_type_fd_set=X11/Xpoll.h
11869 else
11870 echo "$as_me: failed program was:" >&5
11871 cat conftest.$ac_ext >&5
11872
11873 echo "${as_me:-configure}:11873: testing sys/select.h ..." 1>&5
11874
11875 cat >conftest.$ac_ext <<_ACEOF
11876 #line 11876 "configure"
11877 #include "confdefs.h"
11878
11879 #include <sys/types.h>
11880 #include <sys/select.h>
11881 int
11882 main ()
11883 {
11884 fd_set x
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:11890: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>&5
11892 ac_status=$?
11893 echo "$as_me:11893: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -s conftest.$ac_objext'
11896 { (eval echo "$as_me:11896: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:11899: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 cf_cv_type_fd_set=sys/select.h
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 cat conftest.$ac_ext >&5
11905 cf_cv_type_fd_set=unknown
11906 fi
11907 rm -f conftest.$ac_objext conftest.$ac_ext
11908 fi
11909 rm -f conftest.$ac_objext conftest.$ac_ext
11910 fi
11911 rm -f conftest.$ac_objext conftest.$ac_ext
11912 fi
11913 echo "$as_me:11913: result: $cf_cv_type_fd_set" >&5
11914 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
11915 if test $cf_cv_type_fd_set = sys/select.h ; then
11916
11917 cat >>confdefs.h <<\EOF
11918 #define USE_SYS_SELECT_H 1
11919 EOF
11920
11921 fi
11922
11923 echo "$as_me:11923: checking for declaration of fd_mask" >&5
11924 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
11925 if test "${cf_cv_type_fd_mask+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928
11929 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
11930 cat >conftest.$ac_ext <<_ACEOF
11931 #line 11931 "configure"
11932 #include "confdefs.h"
11933
11934 #include <X11/Xpoll.h>
11935 int
11936 main ()
11937 {
11938 fd_mask x
11939 ;
11940 return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext
11944 if { (eval echo "$as_me:11944: \"$ac_compile\"") >&5
11945 (eval $ac_compile) 2>&5
11946 ac_status=$?
11947 echo "$as_me:11947: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:11950: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:11953: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 :
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11959
11960 echo "${as_me:-configure}:11960: testing if we must define CSRG_BASED ..." 1>&5
11961
11962 # Xosdefs.h on Mac OS X may not define this (but it should).
11963 cat >conftest.$ac_ext <<_ACEOF
11964 #line 11964 "configure"
11965 #include "confdefs.h"
11966
11967 #define CSRG_BASED
11968 #include <X11/Xpoll.h>
11969 int
11970 main ()
11971 {
11972 fd_mask x
11973 ;
11974 return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext
11978 if { (eval echo "$as_me:11978: \"$ac_compile\"") >&5
11979 (eval $ac_compile) 2>&5
11980 ac_status=$?
11981 echo "$as_me:11981: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -s conftest.$ac_objext'
11984 { (eval echo "$as_me:11984: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:11987: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 cf_cv_type_fd_mask=CSRG_BASED
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 fi
11994 rm -f conftest.$ac_objext conftest.$ac_ext
11995 fi
11996 rm -f conftest.$ac_objext conftest.$ac_ext
11997 else
11998 cf_cv_type_fd_mask=$cf_cv_type_fd_set
11999 fi
12000
12001 fi
12002 echo "$as_me:12002: result: $cf_cv_type_fd_mask" >&5
12003 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
12004 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
12005
12006 cat >>confdefs.h <<\EOF
12007 #define CSRG_BASED 1
12008 EOF
12009
12010 fi
12011
12012 echo "$as_me:12012: checking for IRIX 6.5 baud-rate redefinitions" >&5
12013 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
12014 if test "${cf_cv_termio_c_ispeed+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017
12018 cat >conftest.$ac_ext <<_ACEOF
12019 #line 12019 "configure"
12020 #include "confdefs.h"
12021
12022 #include <sys/types.h>
12023 #include <sys/termio.h>
12024 int
12025 main ()
12026 {
12027
12028 struct termio foo;
12029 foo.c_ispeed = B38400;
12030 foo.c_ospeed = B9600;
12031
12032 ;
12033 return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (eval echo "$as_me:12037: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>&5
12039 ac_status=$?
12040 echo "$as_me:12040: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:12043: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:12046: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 cf_cv_termio_c_ispeed=yes
12049
12050 else
12051 echo "$as_me: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 cf_cv_termio_c_ispeed=no
12054 fi
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12056
12057 fi
12058 echo "$as_me:12058: result: $cf_cv_termio_c_ispeed" >&5
12059 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
12060 test "$cf_cv_termio_c_ispeed" = yes &&
12061 cat >>confdefs.h <<\EOF
12062 #define HAVE_TERMIO_C_ISPEED 1
12063 EOF
12064
12065 # If we notice Xcursor, there is a workaround needed.
12066 echo "$as_me:12066: checking for XcursorGetTheme in -lXcursor" >&5
12067 echo $ECHO_N "checking for XcursorGetTheme in -lXcursor... $ECHO_C" >&6
12068 if test "${ac_cv_lib_Xcursor_XcursorGetTheme+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071 ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lXcursor $LIBS"
12073 cat >conftest.$ac_ext <<_ACEOF
12074 #line 12074 "configure"
12075 #include "confdefs.h"
12076
12077 /* Override any gcc2 internal prototype to avoid an error. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 /* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */
12083 char XcursorGetTheme ();
12084 int
12085 main ()
12086 {
12087 XcursorGetTheme ();
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (eval echo "$as_me:12093: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12095 ac_status=$?
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:12099: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:12102: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_lib_Xcursor_XcursorGetTheme=yes
12105 else
12106 echo "$as_me: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 ac_cv_lib_Xcursor_XcursorGetTheme=no
12109 fi
12110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12111 LIBS=$ac_check_lib_save_LIBS
12112 fi
12113 echo "$as_me:12113: result: $ac_cv_lib_Xcursor_XcursorGetTheme" >&5
12114 echo "${ECHO_T}$ac_cv_lib_Xcursor_XcursorGetTheme" >&6
12115 if test $ac_cv_lib_Xcursor_XcursorGetTheme = yes; then
12116 cat >>confdefs.h <<\EOF
12117 #define HAVE_LIB_XCURSOR 1
12118 EOF
12119
12120 fi
12121
12122 LIBS="$LIBS $X_EXTRA_LIBS"
12123
12124 for ac_header in \
12125 stropts.h \
12126
12127 do
12128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12129 echo "$as_me:12129: checking for $ac_header" >&5
12130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 cat >conftest.$ac_ext <<_ACEOF
12135 #line 12135 "configure"
12136 #include "confdefs.h"
12137 #include <$ac_header>
12138 _ACEOF
12139 if { (eval echo "$as_me:12139: \"$ac_cpp conftest.$ac_ext\"") >&5
12140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12141 ac_status=$?
12142 egrep -v '^ *\+' conftest.er1 >conftest.err
12143 rm -f conftest.er1
12144 cat conftest.err >&5
12145 echo "$as_me:12145: \$? = $ac_status" >&5
12146 (exit $ac_status); } >/dev/null; then
12147 if test -s conftest.err; then
12148 ac_cpp_err=$ac_c_preproc_warn_flag
12149 else
12150 ac_cpp_err=
12151 fi
12152 else
12153 ac_cpp_err=yes
12154 fi
12155 if test -z "$ac_cpp_err"; then
12156 eval "$as_ac_Header=yes"
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12160 eval "$as_ac_Header=no"
12161 fi
12162 rm -f conftest.err conftest.$ac_ext
12163 fi
12164 echo "$as_me:12164: result: `eval echo '${'$as_ac_Header'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12167 cat >>confdefs.h <<EOF
12168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12169 EOF
12170
12171 fi
12172 done
12173
12174 cf_func_grantpt="grantpt ptsname"
12175 case $host_os in #(vi
12176 darwin[0-9].*) #(vi
12177 ;;
12178 *)
12179 cf_func_grantpt="$cf_func_grantpt posix_openpt"
12180 ;;
12181 esac
12182
12183 for ac_func in $cf_func_grantpt
12184 do
12185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12186 echo "$as_me:12186: checking for $ac_func" >&5
12187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12188 if eval "test \"\${$as_ac_var+set}\" = set"; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 cat >conftest.$ac_ext <<_ACEOF
12192 #line 12192 "configure"
12193 #include "confdefs.h"
12194 /* System header to define __stub macros and hopefully few prototypes,
12195 which can conflict with char $ac_func (); below. */
12196 #include <assert.h>
12197 /* Override any gcc2 internal prototype to avoid an error. */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12203 char $ac_func ();
12204 char (*f) ();
12205
12206 int
12207 main ()
12208 {
12209 /* The GNU C library defines this for functions which it implements
12210 to always fail with ENOSYS. Some functions are actually named
12211 something starting with __ and the normal name is an alias. */
12212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12213 choke me
12214 #else
12215 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12216 #endif
12217
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 rm -f conftest.$ac_objext conftest$ac_exeext
12223 if { (eval echo "$as_me:12223: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12225 ac_status=$?
12226 echo "$as_me:12226: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:12229: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:12232: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_var=yes"
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 eval "$as_ac_var=no"
12239 fi
12240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12241 fi
12242 echo "$as_me:12242: result: `eval echo '${'$as_ac_var'}'`" >&5
12243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12244 if test `eval echo '${'$as_ac_var'}'` = yes; then
12245 cat >>confdefs.h <<EOF
12246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12247 EOF
12248
12249 fi
12250 done
12251
12252 cf_grantpt_opts=
12253 if test "x$ac_cv_func_grantpt" = "xyes" ; then
12254 echo "$as_me:12254: checking if grantpt really works" >&5
12255 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line 12257 "configure"
12258 #include "confdefs.h"
12259
12260 #include <stdlib.h>
12261 #include <termios.h>
12262 #include <unistd.h>
12263 #include <signal.h>
12264 #include <fcntl.h>
12265 #include <errno.h>
12266
12267 #ifndef HAVE_POSIX_OPENPT
12268 #undef posix_openpt
12269 #define posix_openpt(mode) open("/dev/ptmx", mode)
12270 #endif
12271
12272 #ifdef HAVE_STROPTS_H
12273 #include <stropts.h>
12274 #endif
12275
12276 static void failed(int code)
12277 {
12278 perror("conftest");
12279 exit(code);
12280 }
12281
12282 static void my_timeout(int sig)
12283 {
12284 exit(99);
12285 }
12286
12287 int
12288 main ()
12289 {
12290
12291 int code = 0;
12292 int rc;
12293 int pty;
12294 int tty;
12295 char *slave;
12296 struct termios tio;
12297
12298 signal(SIGALRM, my_timeout);
12299
12300 if (alarm(2) == 9)
12301 failed(9);
12302 else if ((pty = posix_openpt(O_RDWR)) < 0)
12303 failed(1);
12304 else if ((rc = grantpt(pty)) < 0)
12305 failed(2);
12306 else if ((rc = unlockpt(pty)) < 0)
12307 failed(3);
12308 else if ((slave = ptsname(pty)) == 0)
12309 failed(4);
12310 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
12311 else if (!isatty(pty))
12312 failed(4);
12313 #endif
12314 #if CONFTEST >= 4
12315 else if ((rc = tcgetattr(pty, &tio)) < 0)
12316 failed(20);
12317 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
12318 failed(21);
12319 #endif
12320 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
12321 * Linux does treat it that way.
12322 */
12323 else if ((tty = open(slave, O_RDWR)) < 0)
12324 failed(5);
12325 #ifdef CONFTEST
12326 #ifdef I_PUSH
12327 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
12328 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
12329 failed(10);
12330 #endif
12331 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
12332 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
12333 failed(11);
12334 #endif
12335 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
12336 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
12337 failed(12);
12338 #endif
12339 #endif /* I_PUSH */
12340 #if CONFTEST >= 5
12341 else if ((rc = tcgetattr(tty, &tio)) < 0)
12342 failed(30);
12343 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
12344 failed(31);
12345 #endif
12346 #endif /* CONFTEST */
12347
12348 ${cf_cv_main_return:-return}(code);
12349
12350 ;
12351 return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:12355: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>&5
12357 ac_status=$?
12358 echo "$as_me:12358: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -s conftest$ac_exeext'
12361 { (eval echo "$as_me:12361: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:12364: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366
12367 if test "$cross_compiling" = yes; then
12368 ac_cv_func_grantpt=maybe
12369 else
12370 cat >conftest.$ac_ext <<_ACEOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12373
12374 #include <stdlib.h>
12375 #include <termios.h>
12376 #include <unistd.h>
12377 #include <signal.h>
12378 #include <fcntl.h>
12379 #include <errno.h>
12380
12381 #ifndef HAVE_POSIX_OPENPT
12382 #undef posix_openpt
12383 #define posix_openpt(mode) open("/dev/ptmx", mode)
12384 #endif
12385
12386 #ifdef HAVE_STROPTS_H
12387 #include <stropts.h>
12388 #endif
12389
12390 static void failed(int code)
12391 {
12392 perror("conftest");
12393 exit(code);
12394 }
12395
12396 static void my_timeout(int sig)
12397 {
12398 exit(99);
12399 }
12400
12401 int main(void)
12402 {
12403
12404 int code = 0;
12405 int rc;
12406 int pty;
12407 int tty;
12408 char *slave;
12409 struct termios tio;
12410
12411 signal(SIGALRM, my_timeout);
12412
12413 if (alarm(2) == 9)
12414 failed(9);
12415 else if ((pty = posix_openpt(O_RDWR)) < 0)
12416 failed(1);
12417 else if ((rc = grantpt(pty)) < 0)
12418 failed(2);
12419 else if ((rc = unlockpt(pty)) < 0)
12420 failed(3);
12421 else if ((slave = ptsname(pty)) == 0)
12422 failed(4);
12423 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
12424 else if (!isatty(pty))
12425 failed(4);
12426 #endif
12427 #if CONFTEST >= 4
12428 else if ((rc = tcgetattr(pty, &tio)) < 0)
12429 failed(20);
12430 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
12431 failed(21);
12432 #endif
12433 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
12434 * Linux does treat it that way.
12435 */
12436 else if ((tty = open(slave, O_RDWR)) < 0)
12437 failed(5);
12438 #ifdef CONFTEST
12439 #ifdef I_PUSH
12440 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
12441 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
12442 failed(10);
12443 #endif
12444 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
12445 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
12446 failed(11);
12447 #endif
12448 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
12449 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
12450 failed(12);
12451 #endif
12452 #endif /* I_PUSH */
12453 #if CONFTEST >= 5
12454 else if ((rc = tcgetattr(tty, &tio)) < 0)
12455 failed(30);
12456 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
12457 failed(31);
12458 #endif
12459 #endif /* CONFTEST */
12460
12461 ${cf_cv_main_return:-return}(code);
12462
12463 }
12464
12465 _ACEOF
12466 rm -f conftest$ac_exeext
12467 if { (eval echo "$as_me:12467: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>&5
12469 ac_status=$?
12470 echo "$as_me:12470: \$? = $ac_status" >&5
12471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12472 { (eval echo "$as_me:12472: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:12475: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 :
12478 else
12479 echo "$as_me: program exited with status $ac_status" >&5
12480 echo "$as_me: failed program was:" >&5
12481 cat conftest.$ac_ext >&5
12482 ac_cv_func_grantpt=no
12483
12484 fi
12485 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12486 fi
12487
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 cat conftest.$ac_ext >&5
12491 ac_cv_func_grantpt=no
12492 fi
12493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12494 echo "$as_me:12494: result: $ac_cv_func_grantpt" >&5
12495 echo "${ECHO_T}$ac_cv_func_grantpt" >&6
12496
12497 if test "x$ac_cv_func_grantpt" != "xno" ; then
12498
12499 if test "x$ac_cv_func_grantpt" = "xyes" ; then
12500 echo "$as_me:12500: checking for pty features" >&5
12501 echo $ECHO_N "checking for pty features... $ECHO_C" >&6
12502 if test "x$ac_cv_header_stropts_h" = xyes
12503 then
12504 cf_pty_this=0
12505 else
12506 cf_pty_this=3
12507 fi
12508
12509 cf_pty_defines=
12510 while test $cf_pty_this != 6
12511 do
12512
12513 cf_pty_feature=
12514 cf_pty_next=`expr $cf_pty_this + 1`
12515
12516 echo "${as_me:-configure}:12516: testing pty feature test $cf_pty_next:5 ..." 1>&5
12517
12518 if test "$cross_compiling" = yes; then
12519 { { echo "$as_me:12519: error: cannot run test program while cross compiling" >&5
12520 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12521 { (exit 1); exit 1; }; }
12522 else
12523 cat >conftest.$ac_ext <<_ACEOF
12524 #line 12524 "configure"
12525 #include "confdefs.h"
12526 #define CONFTEST $cf_pty_this
12527 $cf_pty_defines
12528
12529 #include <stdlib.h>
12530 #include <termios.h>
12531 #include <unistd.h>
12532 #include <signal.h>
12533 #include <fcntl.h>
12534 #include <errno.h>
12535
12536 #ifndef HAVE_POSIX_OPENPT
12537 #undef posix_openpt
12538 #define posix_openpt(mode) open("/dev/ptmx", mode)
12539 #endif
12540
12541 #ifdef HAVE_STROPTS_H
12542 #include <stropts.h>
12543 #endif
12544
12545 static void failed(int code)
12546 {
12547 perror("conftest");
12548 exit(code);
12549 }
12550
12551 static void my_timeout(int sig)
12552 {
12553 exit(99);
12554 }
12555
12556 int main(void)
12557 {
12558
12559 int code = 0;
12560 int rc;
12561 int pty;
12562 int tty;
12563 char *slave;
12564 struct termios tio;
12565
12566 signal(SIGALRM, my_timeout);
12567
12568 if (alarm(2) == 9)
12569 failed(9);
12570 else if ((pty = posix_openpt(O_RDWR)) < 0)
12571 failed(1);
12572 else if ((rc = grantpt(pty)) < 0)
12573 failed(2);
12574 else if ((rc = unlockpt(pty)) < 0)
12575 failed(3);
12576 else if ((slave = ptsname(pty)) == 0)
12577 failed(4);
12578 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
12579 else if (!isatty(pty))
12580 failed(4);
12581 #endif
12582 #if CONFTEST >= 4
12583 else if ((rc = tcgetattr(pty, &tio)) < 0)
12584 failed(20);
12585 else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0)
12586 failed(21);
12587 #endif
12588 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
12589 * Linux does treat it that way.
12590 */
12591 else if ((tty = open(slave, O_RDWR)) < 0)
12592 failed(5);
12593 #ifdef CONFTEST
12594 #ifdef I_PUSH
12595 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
12596 else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0)
12597 failed(10);
12598 #endif
12599 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
12600 else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0)
12601 failed(11);
12602 #endif
12603 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
12604 else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0)
12605 failed(12);
12606 #endif
12607 #endif /* I_PUSH */
12608 #if CONFTEST >= 5
12609 else if ((rc = tcgetattr(tty, &tio)) < 0)
12610 failed(30);
12611 else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0)
12612 failed(31);
12613 #endif
12614 #endif /* CONFTEST */
12615
12616 ${cf_cv_main_return:-return}(code);
12617
12618 }
12619
12620 _ACEOF
12621 rm -f conftest$ac_exeext
12622 if { (eval echo "$as_me:12622: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>&5
12624 ac_status=$?
12625 echo "$as_me:12625: \$? = $ac_status" >&5
12626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12627 { (eval echo "$as_me:12627: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:12630: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632
12633 case $cf_pty_next in #(vi
12634 1) #(vi - streams
12635 cf_pty_feature=ptem
12636 ;;
12637 2) #(vi - streams
12638 cf_pty_feature=ldterm
12639 ;;
12640 3) #(vi - streams
12641 cf_pty_feature=ttcompat
12642 ;;
12643 4) #(vi
12644 cf_pty_feature=pty_isatty
12645 ;;
12646 5) #(vi
12647 cf_pty_feature=pty_tcsetattr
12648 ;;
12649 6) #(vi
12650 cf_pty_feature=tty_tcsetattr
12651 ;;
12652 esac
12653
12654 else
12655 echo "$as_me: program exited with status $ac_status" >&5
12656 echo "$as_me: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12658
12659 case $cf_pty_next in #(vi
12660 1|2|3)
12661
12662 echo "${as_me:-configure}:12662: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5
12663
12664 cf_pty_next=3
12665 ;;
12666 esac
12667
12668 fi
12669 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12670 fi
12671 if test -n "$cf_pty_feature"
12672 then
12673 cf_pty_defines="$cf_pty_defines
12674 #define CONFTEST_$cf_pty_feature 1
12675 "
12676 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature"
12677 fi
12678
12679 cf_pty_this=$cf_pty_next
12680 done
12681 echo "$as_me:12681: result: $cf_grantpt_opts" >&5
12682 echo "${ECHO_T}$cf_grantpt_opts" >&6
12683 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'`
12684 fi
12685 fi
12686 fi
12687
12688 if test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then
12689 echo "$as_me:12689: checking for openpty in -lutil" >&5
12690 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12691 if test "${ac_cv_lib_util_openpty+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694 ac_check_lib_save_LIBS=$LIBS
12695 LIBS="-lutil $LIBS"
12696 cat >conftest.$ac_ext <<_ACEOF
12697 #line 12697 "configure"
12698 #include "confdefs.h"
12699
12700 /* Override any gcc2 internal prototype to avoid an error. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 /* We use char because int might match the return type of a gcc2
12705 builtin and then its argument prototype would still apply. */
12706 char openpty ();
12707 int
12708 main ()
12709 {
12710 openpty ();
12711 ;
12712 return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (eval echo "$as_me:12716: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>&5
12718 ac_status=$?
12719 echo "$as_me:12719: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -s conftest$ac_exeext'
12722 { (eval echo "$as_me:12722: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:12725: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 ac_cv_lib_util_openpty=yes
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 cat conftest.$ac_ext >&5
12731 ac_cv_lib_util_openpty=no
12732 fi
12733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12734 LIBS=$ac_check_lib_save_LIBS
12735 fi
12736 echo "$as_me:12736: result: $ac_cv_lib_util_openpty" >&5
12737 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12738 if test $ac_cv_lib_util_openpty = yes; then
12739 cf_have_openpty=yes
12740 else
12741 cf_have_openpty=no
12742 fi
12743
12744 if test "$cf_have_openpty" = yes ; then
12745 ac_cv_func_grantpt=no
12746 LIBS="-lutil $LIBS"
12747
12748 cat >>confdefs.h <<\EOF
12749 #define HAVE_OPENPTY 1
12750 EOF
12751
12752 for ac_header in \
12753 util.h \
12754 libutil.h \
12755 pty.h \
12756
12757 do
12758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12759 echo "$as_me:12759: checking for $ac_header" >&5
12760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764 cat >conftest.$ac_ext <<_ACEOF
12765 #line 12765 "configure"
12766 #include "confdefs.h"
12767 #include <$ac_header>
12768 _ACEOF
12769 if { (eval echo "$as_me:12769: \"$ac_cpp conftest.$ac_ext\"") >&5
12770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12771 ac_status=$?
12772 egrep -v '^ *\+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:12775: \$? = $ac_status" >&5
12776 (exit $ac_status); } >/dev/null; then
12777 if test -s conftest.err; then
12778 ac_cpp_err=$ac_c_preproc_warn_flag
12779 else
12780 ac_cpp_err=
12781 fi
12782 else
12783 ac_cpp_err=yes
12784 fi
12785 if test -z "$ac_cpp_err"; then
12786 eval "$as_ac_Header=yes"
12787 else
12788 echo "$as_me: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 eval "$as_ac_Header=no"
12791 fi
12792 rm -f conftest.err conftest.$ac_ext
12793 fi
12794 echo "$as_me:12794: result: `eval echo '${'$as_ac_Header'}'`" >&5
12795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12797 cat >>confdefs.h <<EOF
12798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12799 EOF
12800
12801 fi
12802 done
12803
12804 fi
12805 fi
12806
12807 if test "x$ac_cv_func_grantpt" != xno
12808 then
12809 test -n "$verbose" && echo " will rely upon grantpt" 1>&6
12810
12811 echo "${as_me:-configure}:12811: testing will rely upon grantpt ..." 1>&5
12812
12813 cat >>confdefs.h <<\EOF
12814 #define HAVE_WORKING_GRANTPT 1
12815 EOF
12816
12817 for cf_feature in $cf_grantpt_opts
12818 do
12819 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'`
12820
12821 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12822
12823 cat >>confdefs.h <<EOF
12824 #define HAVE_GRANTPT_$cf_FEATURE 1
12825 EOF
12826
12827 done
12828 elif test "x$cf_have_openpty" = xno
12829 then
12830 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6
12831
12832 echo "${as_me:-configure}:12832: testing will rely upon BSD-pseudoterminals ..." 1>&5
12833
12834 else
12835 test -n "$verbose" && echo " will rely upon openpty" 1>&6
12836
12837 echo "${as_me:-configure}:12837: testing will rely upon openpty ..." 1>&5
12838
12839 fi
12840
12841 echo "$as_me:12841: checking if we can use XkbQueryExtension" >&5
12842 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6
12843 if test "${cf_cv_xkb_query_extension+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846
12847 cat >conftest.$ac_ext <<_ACEOF
12848 #line 12848 "configure"
12849 #include "confdefs.h"
12850
12851 #include <X11/Xlib.h>
12852 #include <X11/extensions/XKB.h>
12853 #include <X11/XKBlib.h>
12854
12855 int
12856 main ()
12857 {
12858
12859 int xkbmajor = XkbMajorVersion;
12860 int xkbminor = XkbMinorVersion;
12861 int xkbopcode, xkbevent, xkberror;
12862
12863 if (XkbLibraryVersion(&xkbmajor, &xkbminor)
12864 && XkbQueryExtension((Display *)0,
12865 &xkbopcode,
12866 &xkbevent,
12867 &xkberror,
12868 &xkbmajor,
12869 &xkbminor))
12870 return 0;
12871
12872 ;
12873 return 0;
12874 }
12875 _ACEOF
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:12877: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>&5
12879 ac_status=$?
12880 echo "$as_me:12880: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:12883: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:12886: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888
12889 cf_cv_xkb_query_extension=yes
12890
12891 else
12892 echo "$as_me: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12894
12895 cf_cv_xkb_query_extension=no
12896
12897 fi
12898 rm -f conftest.$ac_objext conftest.$ac_ext
12899
12900 fi
12901 echo "$as_me:12901: result: $cf_cv_xkb_query_extension" >&5
12902 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6
12903
12904 if test $cf_cv_xkb_query_extension = yes
12905 then
12906
12907 for ac_func in XkbQueryExtension
12908 do
12909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12910 echo "$as_me:12910: checking for $ac_func" >&5
12911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12912 if eval "test \"\${$as_ac_var+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915 cat >conftest.$ac_ext <<_ACEOF
12916 #line 12916 "configure"
12917 #include "confdefs.h"
12918 /* System header to define __stub macros and hopefully few prototypes,
12919 which can conflict with char $ac_func (); below. */
12920 #include <assert.h>
12921 /* Override any gcc2 internal prototype to avoid an error. */
12922 #ifdef __cplusplus
12923 extern "C"
12924 #endif
12925 /* We use char because int might match the return type of a gcc2
12926 builtin and then its argument prototype would still apply. */
12927 char $ac_func ();
12928 char (*f) ();
12929
12930 int
12931 main ()
12932 {
12933 /* The GNU C library defines this for functions which it implements
12934 to always fail with ENOSYS. Some functions are actually named
12935 something starting with __ and the normal name is an alias. */
12936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12937 choke me
12938 #else
12939 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12940 #endif
12941
12942 ;
12943 return 0;
12944 }
12945 _ACEOF
12946 rm -f conftest.$ac_objext conftest$ac_exeext
12947 if { (eval echo "$as_me:12947: \"$ac_link\"") >&5
12948 (eval $ac_link) 2>&5
12949 ac_status=$?
12950 echo "$as_me:12950: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -s conftest$ac_exeext'
12953 { (eval echo "$as_me:12953: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:12956: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 eval "$as_ac_var=yes"
12959 else
12960 echo "$as_me: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 eval "$as_ac_var=no"
12963 fi
12964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12965 fi
12966 echo "$as_me:12966: result: `eval echo '${'$as_ac_var'}'`" >&5
12967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12968 if test `eval echo '${'$as_ac_var'}'` = yes; then
12969 cat >>confdefs.h <<EOF
12970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971 EOF
12972
12973 fi
12974 done
12975
12976 fi
12977
12978 echo "$as_me:12978: checking if we can use XkbKeycodeToKeysym" >&5
12979 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6
12980 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983
12984 cat >conftest.$ac_ext <<_ACEOF
12985 #line 12985 "configure"
12986 #include "confdefs.h"
12987
12988 #include <X11/Xlib.h>
12989 #include <X11/XKBlib.h>
12990
12991 int
12992 main ()
12993 {
12994
12995 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0);
12996
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 rm -f conftest.$ac_objext
13002 if { (eval echo "$as_me:13002: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>&5
13004 ac_status=$?
13005 echo "$as_me:13005: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -s conftest.$ac_objext'
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
13014 cf_cv_xkb_keycode_to_keysym=yes
13015
13016 else
13017 echo "$as_me: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019
13020 cf_cv_xkb_keycode_to_keysym=no
13021
13022 fi
13023 rm -f conftest.$ac_objext conftest.$ac_ext
13024
13025 fi
13026 echo "$as_me:13026: result: $cf_cv_xkb_keycode_to_keysym" >&5
13027 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6
13028
13029 if test $cf_cv_xkb_keycode_to_keysym = yes
13030 then
13031
13032 for ac_func in XkbKeycodeToKeysym
13033 do
13034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13035 echo "$as_me:13035: checking for $ac_func" >&5
13036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13037 if eval "test \"\${$as_ac_var+set}\" = set"; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040 cat >conftest.$ac_ext <<_ACEOF
13041 #line 13041 "configure"
13042 #include "confdefs.h"
13043 /* System header to define __stub macros and hopefully few prototypes,
13044 which can conflict with char $ac_func (); below. */
13045 #include <assert.h>
13046 /* Override any gcc2 internal prototype to avoid an error. */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052 char $ac_func ();
13053 char (*f) ();
13054
13055 int
13056 main ()
13057 {
13058 /* The GNU C library defines this for functions which it implements
13059 to always fail with ENOSYS. Some functions are actually named
13060 something starting with __ and the normal name is an alias. */
13061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13062 choke me
13063 #else
13064 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13065 #endif
13066
13067 ;
13068 return 0;
13069 }
13070 _ACEOF
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (eval echo "$as_me:13072: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>&5
13074 ac_status=$?
13075 echo "$as_me:13075: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:13078: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:13081: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 eval "$as_ac_var=yes"
13084 else
13085 echo "$as_me: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13087 eval "$as_ac_var=no"
13088 fi
13089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13090 fi
13091 echo "$as_me:13091: result: `eval echo '${'$as_ac_var'}'`" >&5
13092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13093 if test `eval echo '${'$as_ac_var'}'` = yes; then
13094 cat >>confdefs.h <<EOF
13095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13096 EOF
13097
13098 fi
13099 done
13100
13101 fi
13102
13103 echo "$as_me:13103: checking for XKB Bell extension" >&5
13104 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
13105 if test "${cf_cv_xkb_bell_ext+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108
13109 cat >conftest.$ac_ext <<_ACEOF
13110 #line 13110 "configure"
13111 #include "confdefs.h"
13112
13113 #include <X11/Intrinsic.h>
13114 #include <X11/XKBlib.h> /* has the prototype */
13115 #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */
13116
13117 int
13118 main ()
13119 {
13120
13121 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
13122 Atom y;
13123 XkbBell((Display *)0, (Widget)0, 0, y);
13124
13125 ;
13126 return 0;
13127 }
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (eval echo "$as_me:13130: \"$ac_link\"") >&5
13131 (eval $ac_link) 2>&5
13132 ac_status=$?
13133 echo "$as_me:13133: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:13136: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:13139: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 cf_cv_xkb_bell_ext=yes
13142 else
13143 echo "$as_me: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 cf_cv_xkb_bell_ext=no
13146 fi
13147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13148
13149 fi
13150 echo "$as_me:13150: result: $cf_cv_xkb_bell_ext" >&5
13151 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
13152 test "$cf_cv_xkb_bell_ext" = yes &&
13153 cat >>confdefs.h <<\EOF
13154 #define HAVE_XKB_BELL_EXT 1
13155 EOF
13156
13157 for ac_func in Xutf8LookupString
13158 do
13159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13160 echo "$as_me:13160: checking for $ac_func" >&5
13161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_var+set}\" = set"; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165 cat >conftest.$ac_ext <<_ACEOF
13166 #line 13166 "configure"
13167 #include "confdefs.h"
13168 /* System header to define __stub macros and hopefully few prototypes,
13169 which can conflict with char $ac_func (); below. */
13170 #include <assert.h>
13171 /* Override any gcc2 internal prototype to avoid an error. */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13177 char $ac_func ();
13178 char (*f) ();
13179
13180 int
13181 main ()
13182 {
13183 /* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13187 choke me
13188 #else
13189 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13190 #endif
13191
13192 ;
13193 return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:13197: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>&5
13199 ac_status=$?
13200 echo "$as_me:13200: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -s conftest$ac_exeext'
13203 { (eval echo "$as_me:13203: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 eval "$as_ac_var=yes"
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 cat conftest.$ac_ext >&5
13212 eval "$as_ac_var=no"
13213 fi
13214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13215 fi
13216 echo "$as_me:13216: result: `eval echo '${'$as_ac_var'}'`" >&5
13217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13218 if test `eval echo '${'$as_ac_var'}'` = yes; then
13219 cat >>confdefs.h <<EOF
13220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13221 EOF
13222
13223 else
13224
13225 EXTRAHDRS="$EXTRAHDRS xutf8.h"
13226 EXTRASRCS="$EXTRASRCS xutf8.c"
13227 EXTRAOBJS="$EXTRAOBJS xutf8.o"
13228
13229 fi
13230 done
13231
13232 echo "$as_me:13232: checking if you want narrow prototypes for X libraries" >&5
13233 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
13234
13235 case `$ac_config_guess` in #(vi
13236 *cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi
13237 cf_default_narrowproto=yes
13238 ;;
13239 *)
13240 cf_default_narrowproto=no
13241 ;;
13242 esac
13243
13244 # Check whether --enable-narrowproto or --disable-narrowproto was given.
13245 if test "${enable_narrowproto+set}" = set; then
13246 enableval="$enable_narrowproto"
13247 test "$enableval" != no && enableval=yes
13248 if test "$enableval" != "$cf_default_narrowproto" ; then
13249 enable_narrowproto=$enableval
13250 else
13251 enable_narrowproto=$cf_default_narrowproto
13252 fi
13253 else
13254 enableval=$cf_default_narrowproto
13255 enable_narrowproto=$cf_default_narrowproto
13256
13257 fi;
13258 echo "$as_me:13258: result: $enable_narrowproto" >&5
13259 echo "${ECHO_T}$enable_narrowproto" >&6
13260
13261 echo "$as_me:13261: checking if we should use imake to help" >&5
13262 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
13263
13264 # Check whether --enable-imake or --disable-imake was given.
13265 if test "${enable_imake+set}" = set; then
13266 enableval="$enable_imake"
13267 test "$enableval" != no && enableval=yes
13268 if test "$enableval" != "yes" ; then
13269 enable_imake=no
13270 else
13271 enable_imake=yes
13272 fi
13273 else
13274 enableval=yes
13275 enable_imake=yes
13276
13277 fi;
13278 echo "$as_me:13278: result: $enable_imake" >&5
13279 echo "${ECHO_T}$enable_imake" >&6
13280
13281 if test "$enable_imake" = yes ; then
13282
13283 for ac_prog in xmkmf imake
13284 do
13285 # Extract the first word of "$ac_prog", so it can be a program name with args.
13286 set dummy $ac_prog; ac_word=$2
13287 echo "$as_me:13287: checking for $ac_word" >&5
13288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13289 if test "${ac_cv_path_IMAKE+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292 case $IMAKE in
13293 [\\/]* | ?:[\\/]*)
13294 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
13295 ;;
13296 *)
13297 ac_save_IFS=$IFS; IFS=$ac_path_separator
13298 ac_dummy="$PATH"
13299 for ac_dir in $ac_dummy; do
13300 IFS=$ac_save_IFS
13301 test -z "$ac_dir" && ac_dir=.
13302 if $as_executable_p "$ac_dir/$ac_word"; then
13303 ac_cv_path_IMAKE="$ac_dir/$ac_word"
13304 echo "$as_me:13304: found $ac_dir/$ac_word" >&5
13305 break
13306 fi
13307 done
13308
13309 ;;
13310 esac
13311 fi
13312 IMAKE=$ac_cv_path_IMAKE
13313
13314 if test -n "$IMAKE"; then
13315 echo "$as_me:13315: result: $IMAKE" >&5
13316 echo "${ECHO_T}$IMAKE" >&6
13317 else
13318 echo "$as_me:13318: result: no" >&5
13319 echo "${ECHO_T}no" >&6
13320 fi
13321
13322 test -n "$IMAKE" && break
13323 done
13324
13325 if test -n "$IMAKE" ; then
13326
13327 case $IMAKE in # (vi
13328 */imake)
13329 cf_imake_opts="-DUseInstalled=YES" # (vi
13330 ;;
13331 */util/xmkmf)
13332 # A single parameter tells xmkmf where the config-files are:
13333 cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi
13334 ;;
13335 *)
13336 cf_imake_opts=
13337 ;;
13338 esac
13339
13340 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
13341 # config directory.
13342 if mkdir conftestdir; then
13343 CDPATH=; export CDPATH
13344 cf_makefile=`cd $srcdir;pwd`/Imakefile
13345 cd conftestdir
13346
13347 cat >fix_cflags.sed <<'CF_EOF'
13348 s/\\//g
13349 s/[ ][ ]*/ /g
13350 s/"//g
13351 :pack
13352 s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g
13353 t pack
13354 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
13355 s/^IMAKE[ ]/IMAKE_CFLAGS="/
13356 s/ / /g
13357 s/$/"/
13358 CF_EOF
13359
13360 cat >fix_lflags.sed <<'CF_EOF'
13361 s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/
13362 s/$/"/
13363 CF_EOF
13364
13365 echo >./Imakefile
13366 test -f $cf_makefile && cat $cf_makefile >>./Imakefile
13367
13368 cat >> ./Imakefile <<'CF_EOF'
13369 findstddefs:
13370 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed
13371 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
13372 CF_EOF
13373
13374 if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
13375 then
13376 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6
13377
13378 echo "${as_me:-configure}:13378: testing Using $IMAKE $cf_imake_opts ..." 1>&5
13379
13380 else
13381 # sometimes imake doesn't have the config path compiled in. Find it.
13382 cf_config=
13383 for cf_libpath in $X_LIBS $LIBS ; do
13384 case $cf_libpath in # (vi
13385 -L*)
13386 cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
13387 cf_libpath=$cf_libpath/X11/config
13388 if test -d $cf_libpath ; then
13389 cf_config=$cf_libpath
13390 break
13391 fi
13392 ;;
13393 esac
13394 done
13395 if test -z "$cf_config" ; then
13396 { echo "$as_me:13396: WARNING: Could not find imake config-directory" >&5
13397 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
13398 else
13399 cf_imake_opts="$cf_imake_opts -I$cf_config"
13400 if ( $IMAKE -v $cf_imake_opts 2>&5)
13401 then
13402 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6
13403
13404 echo "${as_me:-configure}:13404: testing Using $IMAKE $cf_config ..." 1>&5
13405
13406 else
13407 { echo "$as_me:13407: WARNING: Cannot run $IMAKE" >&5
13408 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
13409 fi
13410 fi
13411 fi
13412
13413 # GNU make sometimes prints "make[1]: Entering...", which
13414 # would confuse us.
13415 eval `make findstddefs 2>/dev/null | grep -v make`
13416
13417 cd ..
13418 rm -rf conftestdir
13419
13420 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
13421 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have
13422 # modified it to support site.cf, adding a kludge for the /usr/include
13423 # directory. Try to filter that out, otherwise gcc won't find its
13424 # headers.
13425 if test -n "$GCC" ; then
13426 if test -n "$IMAKE_CFLAGS" ; then
13427 cf_nostdinc=""
13428 cf_std_incl=""
13429 cf_cpp_opts=""
13430 for cf_opt in $IMAKE_CFLAGS
13431 do
13432 case "$cf_opt" in
13433 -nostdinc) #(vi
13434 cf_nostdinc="$cf_opt"
13435 ;;
13436 -I/usr/include) #(vi
13437 cf_std_incl="$cf_opt"
13438 ;;
13439 *) #(vi
13440 cf_cpp_opts="$cf_cpp_opts $cf_opt"
13441 ;;
13442 esac
13443 done
13444 if test -z "$cf_nostdinc" ; then
13445 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
13446 elif test -z "$cf_std_incl" ; then
13447 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
13448 else
13449 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
13450
13451 echo "${as_me:-configure}:13451: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
13452
13453 IMAKE_CFLAGS="$cf_cpp_opts"
13454 fi
13455 fi
13456 fi
13457 fi
13458
13459 # Some imake configurations define PROJECTROOT with an empty value. Remove
13460 # the empty definition.
13461 case $IMAKE_CFLAGS in
13462 *-DPROJECTROOT=/*)
13463 ;;
13464 *)
13465 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"`
13466 ;;
13467 esac
13468
13469 fi
13470
13471 test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
13472
13473 echo "${as_me:-configure}:13473: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
13474
13475 test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
13476
13477 echo "${as_me:-configure}:13477: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
13478
13479 fi
13480
13481 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
13482
13483 cf_fix_cppflags=no
13484 cf_new_cflags=
13485 cf_new_cppflags=
13486 cf_new_extra_cppflags=
13487
13488 for cf_add_cflags in $IMAKE_CFLAGS
13489 do
13490 case $cf_fix_cppflags in
13491 no)
13492 case $cf_add_cflags in #(vi
13493 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13494 case $cf_add_cflags in
13495 -D*)
13496 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13497
13498 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13499 && test -z "${cf_tst_cflags}" \
13500 && cf_fix_cppflags=yes
13501
13502 if test $cf_fix_cppflags = yes ; then
13503 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13504 continue
13505 elif test "${cf_tst_cflags}" = "\"'" ; then
13506 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13507 continue
13508 fi
13509 ;;
13510 esac
13511 case "$CPPFLAGS" in
13512 *$cf_add_cflags) #(vi
13513 ;;
13514 *) #(vi
13515 case $cf_add_cflags in #(vi
13516 -D*)
13517 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13518
13519 CPPFLAGS=`echo "$CPPFLAGS" | \
13520 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13521 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13522
13523 ;;
13524 esac
13525 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13526 ;;
13527 esac
13528 ;;
13529 *)
13530 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13531 ;;
13532 esac
13533 ;;
13534 yes)
13535 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13536
13537 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13538
13539 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13540 && test -z "${cf_tst_cflags}" \
13541 && cf_fix_cppflags=no
13542 ;;
13543 esac
13544 done
13545
13546 if test -n "$cf_new_cflags" ; then
13547
13548 CFLAGS="$CFLAGS $cf_new_cflags"
13549 fi
13550
13551 if test -n "$cf_new_cppflags" ; then
13552
13553 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13554 fi
13555
13556 if test -n "$cf_new_extra_cppflags" ; then
13557
13558 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13559 fi
13560
13561 else
13562 IMAKE_CFLAGS=
13563 IMAKE_LOADFLAGS=
13564 test -n "$verbose" && echo " make fallback definitions" 1>&6
13565
13566 echo "${as_me:-configure}:13566: testing make fallback definitions ..." 1>&5
13567
13568 # We prefer config.guess' values when we can get them, to avoid
13569 # inconsistent results with uname (AIX for instance). However,
13570 # config.guess is not always consistent either.
13571 case $host_os in
13572 *[0-9].[0-9]*)
13573 UNAME_RELEASE="$host_os"
13574 ;;
13575 *)
13576 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
13577 ;;
13578 esac
13579
13580 case .$UNAME_RELEASE in
13581 *[0-9].[0-9]*)
13582 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
13583 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
13584 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
13585 test -z "$OSMINORVERSION" && OSMINORVERSION=0
13586 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
13587 ;;
13588 esac
13589
13590 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
13591 # fallback/fragments for NeedPrototypes, etc.
13592 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
13593
13594 # If this is not set properly, Xaw's scrollbars will not work
13595 if test "$enable_narrowproto" = yes ; then
13596 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
13597 fi
13598
13599 # Other special definitions:
13600 case $host_os in
13601 aix*)
13602 # imake on AIX 5.1 defines AIXV3. really.
13603 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
13604 ;;
13605 irix[56].*) #(vi
13606 # these are needed to make SIGWINCH work in xterm
13607 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
13608 ;;
13609 esac
13610
13611 cf_fix_cppflags=no
13612 cf_new_cflags=
13613 cf_new_cppflags=
13614 cf_new_extra_cppflags=
13615
13616 for cf_add_cflags in $IMAKE_CFLAGS
13617 do
13618 case $cf_fix_cppflags in
13619 no)
13620 case $cf_add_cflags in #(vi
13621 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
13622 case $cf_add_cflags in
13623 -D*)
13624 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13625
13626 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13627 && test -z "${cf_tst_cflags}" \
13628 && cf_fix_cppflags=yes
13629
13630 if test $cf_fix_cppflags = yes ; then
13631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13632 continue
13633 elif test "${cf_tst_cflags}" = "\"'" ; then
13634 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13635 continue
13636 fi
13637 ;;
13638 esac
13639 case "$CPPFLAGS" in
13640 *$cf_add_cflags) #(vi
13641 ;;
13642 *) #(vi
13643 case $cf_add_cflags in #(vi
13644 -D*)
13645 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13646
13647 CPPFLAGS=`echo "$CPPFLAGS" | \
13648 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13649 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13650
13651 ;;
13652 esac
13653 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13654 ;;
13655 esac
13656 ;;
13657 *)
13658 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13659 ;;
13660 esac
13661 ;;
13662 yes)
13663 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13664
13665 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13666
13667 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
13668 && test -z "${cf_tst_cflags}" \
13669 && cf_fix_cppflags=no
13670 ;;
13671 esac
13672 done
13673
13674 if test -n "$cf_new_cflags" ; then
13675
13676 CFLAGS="$CFLAGS $cf_new_cflags"
13677 fi
13678
13679 if test -n "$cf_new_cppflags" ; then
13680
13681 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13682 fi
13683
13684 if test -n "$cf_new_extra_cppflags" ; then
13685
13686 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13687 fi
13688
13689 fi
13690
13691 # If we have already established that there is a full termcap implementation,
13692 # suppress the definitions for terminfo that we make have imported from the
13693 # imake-file.
13694 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
13695 case "$IMAKE_CFLAGS" in
13696 *-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
13697
13698 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6
13699
13700 echo "${as_me:-configure}:13700: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5
13701
13702 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
13703 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6
13704
13705 echo "${as_me:-configure}:13705: testing ...result $IMAKE_CFLAGS ..." 1>&5
13706
13707 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6
13708
13709 echo "${as_me:-configure}:13709: testing removing terminfo flags from CPPFLAGS ..." 1>&5
13710
13711 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
13712 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6
13713
13714 echo "${as_me:-configure}:13714: testing ...result $CPPFLAGS ..." 1>&5
13715
13716 ;;
13717 esac
13718 fi
13719
13720 echo "$as_me:13720: checking for default terminal-id" >&5
13721 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
13722
13723 # Check whether --with-terminal-id or --without-terminal-id was given.
13724 if test "${with_terminal_id+set}" = set; then
13725 withval="$with_terminal_id"
13726 default_termid=$withval
13727 else
13728 default_termid=vt420
13729 fi;
13730 echo "$as_me:13730: result: $default_termid" >&5
13731 echo "${ECHO_T}$default_termid" >&6
13732 case $default_termid in
13733 vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
13734 ;;
13735 esac
13736
13737 cat >>confdefs.h <<EOF
13738 #define DFT_DECID "$default_termid"
13739 EOF
13740
13741 echo "$as_me:13741: checking for default terminal-type" >&5
13742 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
13743
13744 # Check whether --with-terminal-type or --without-terminal-type was given.
13745 if test "${with_terminal_type+set}" = set; then
13746 withval="$with_terminal_type"
13747 default_TERM=$withval
13748 else
13749 default_TERM=xterm
13750 fi;
13751 echo "$as_me:13751: result: $default_TERM" >&5
13752 echo "${ECHO_T}$default_TERM" >&6
13753
13754 cat >>confdefs.h <<EOF
13755 #define DFT_TERMTYPE "$default_TERM"
13756 EOF
13757
13758 ###############################################################################
13759 echo "$as_me:13759: checking if backarrow-key should be BS" >&5
13760 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6
13761
13762 # Check whether --enable-backarrow-key or --disable-backarrow-key was given.
13763 if test "${enable_backarrow_key+set}" = set; then
13764 enableval="$enable_backarrow_key"
13765 test "$enableval" != no && enableval=yes
13766 if test "$enableval" != "yes" ; then
13767 backarrow_is_bs=$enableval
13768 else
13769 backarrow_is_bs=yes
13770 fi
13771 else
13772 enableval=yes
13773 backarrow_is_bs=yes
13774
13775 fi;
13776
13777 echo "$as_me:13777: result: $backarrow_is_bs" >&5
13778 echo "${ECHO_T}$backarrow_is_bs" >&6
13779 case $backarrow_is_bs in #(vi
13780 yes) #(vi
13781 backarrow_is_bs=true
13782 ;;
13783 no) #(vi
13784 backarrow_is_bs=false
13785 ;;
13786 esac
13787 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'`
13788
13789 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13790
13791 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'`
13792 backarrow_is_bs=${cf_xbool1}${cf_xbool2}
13793
13794 cat >>confdefs.h <<EOF
13795 #define DEF_BACKARO_BS $backarrow_is_bs
13796 EOF
13797
13798 echo "$as_me:13798: checking if backarrow-key should be treated as erase" >&5
13799 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6
13800
13801 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given.
13802 if test "${enable_backarrow_is_erase+set}" = set; then
13803 enableval="$enable_backarrow_is_erase"
13804 test "$enableval" != yes && enableval=no
13805 if test "$enableval" != "no" ; then
13806 backarrow_is_erase=$enableval
13807 else
13808 backarrow_is_erase=no
13809 fi
13810 else
13811 enableval=no
13812 backarrow_is_erase=no
13813
13814 fi;
13815
13816 echo "$as_me:13816: result: $backarrow_is_erase" >&5
13817 echo "${ECHO_T}$backarrow_is_erase" >&6
13818 case $backarrow_is_erase in #(vi
13819 yes) #(vi
13820 backarrow_is_erase=true
13821 ;;
13822 no) #(vi
13823 backarrow_is_erase=false
13824 ;;
13825 esac
13826 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'`
13827
13828 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13829
13830 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'`
13831 backarrow_is_erase=${cf_xbool1}${cf_xbool2}
13832
13833 cat >>confdefs.h <<EOF
13834 #define DEF_BACKARO_ERASE $backarrow_is_erase
13835 EOF
13836
13837 echo "$as_me:13837: checking for default backspace/DEL setting" >&5
13838 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6
13839
13840 # Check whether --enable-delete-is-del or --disable-delete-is-del was given.
13841 if test "${enable_delete_is_del+set}" = set; then
13842 enableval="$enable_delete_is_del"
13843 delete_is_del=$enableval
13844 else
13845 delete_is_del=maybe
13846 fi;
13847
13848 echo "$as_me:13848: result: $delete_is_del" >&5
13849 echo "${ECHO_T}$delete_is_del" >&6
13850 case $delete_is_del in #(vi
13851 yes) #(vi
13852 delete_is_del=true
13853 ;;
13854 no) #(vi
13855 delete_is_del=false
13856 ;;
13857 esac
13858 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'`
13859
13860 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13861
13862 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'`
13863 delete_is_del=${cf_xbool1}${cf_xbool2}
13864
13865 cat >>confdefs.h <<EOF
13866 #define DEFDELETE_DEL $delete_is_del
13867 EOF
13868
13869 echo "$as_me:13869: checking if alt should send ESC" >&5
13870 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6
13871
13872 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given.
13873 if test "${enable_alt_sends_esc+set}" = set; then
13874 enableval="$enable_alt_sends_esc"
13875 test "$enableval" != yes && enableval=no
13876 if test "$enableval" != "no" ; then
13877 alt_sends_esc=$enableval
13878 else
13879 alt_sends_esc=no
13880 fi
13881 else
13882 enableval=no
13883 alt_sends_esc=no
13884
13885 fi;
13886
13887 echo "$as_me:13887: result: $alt_sends_esc" >&5
13888 echo "${ECHO_T}$alt_sends_esc" >&6
13889 case $alt_sends_esc in #(vi
13890 yes) #(vi
13891 alt_sends_esc=true
13892 ;;
13893 no) #(vi
13894 alt_sends_esc=false
13895 ;;
13896 esac
13897 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'`
13898
13899 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13900
13901 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'`
13902 alt_sends_esc=${cf_xbool1}${cf_xbool2}
13903
13904 cat >>confdefs.h <<EOF
13905 #define DEF_ALT_SENDS_ESC $alt_sends_esc
13906 EOF
13907
13908 echo "$as_me:13908: checking if meta should send ESC" >&5
13909 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6
13910
13911 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given.
13912 if test "${enable_meta_sends_esc+set}" = set; then
13913 enableval="$enable_meta_sends_esc"
13914 test "$enableval" != yes && enableval=no
13915 if test "$enableval" != "no" ; then
13916 meta_sends_esc=$enableval
13917 else
13918 meta_sends_esc=no
13919 fi
13920 else
13921 enableval=no
13922 meta_sends_esc=no
13923
13924 fi;
13925
13926 echo "$as_me:13926: result: $meta_sends_esc" >&5
13927 echo "${ECHO_T}$meta_sends_esc" >&6
13928 case $meta_sends_esc in #(vi
13929 yes) #(vi
13930 meta_sends_esc=true
13931 ;;
13932 no) #(vi
13933 meta_sends_esc=false
13934 ;;
13935 esac
13936 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'`
13937
13938 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13939
13940 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'`
13941 meta_sends_esc=${cf_xbool1}${cf_xbool2}
13942
13943 cat >>confdefs.h <<EOF
13944 #define DEF_META_SENDS_ESC $meta_sends_esc
13945 EOF
13946
13947 ###############################################################################
13948 # Extract the first word of "tic", so it can be a program name with args.
13949 set dummy tic; ac_word=$2
13950 echo "$as_me:13950: checking for $ac_word" >&5
13951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13952 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 if test -n "$cf_tic_prog"; then
13956 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
13957 else
13958 ac_save_IFS=$IFS; IFS=$ac_path_separator
13959 ac_dummy="$PATH"
13960 for ac_dir in $ac_dummy; do
13961 IFS=$ac_save_IFS
13962 test -z "$ac_dir" && ac_dir=.
13963 $as_executable_p "$ac_dir/$ac_word" || continue
13964 ac_cv_prog_cf_tic_prog="yes"
13965 echo "$as_me:13965: found $ac_dir/$ac_word" >&5
13966 break
13967 done
13968
13969 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
13970 fi
13971 fi
13972 cf_tic_prog=$ac_cv_prog_cf_tic_prog
13973 if test -n "$cf_tic_prog"; then
13974 echo "$as_me:13974: result: $cf_tic_prog" >&5
13975 echo "${ECHO_T}$cf_tic_prog" >&6
13976 else
13977 echo "$as_me:13977: result: no" >&5
13978 echo "${ECHO_T}no" >&6
13979 fi
13980
13981 if test "$cf_tic_prog" = yes ; then
13982 echo "$as_me:13982: checking for private terminfo-directory" >&5
13983 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
13984
13985 # Check whether --with-own-terminfo or --without-own-terminfo was given.
13986 if test "${with_own_terminfo+set}" = set; then
13987 withval="$with_own_terminfo"
13988 TERMINFO_DIR=$withval
13989 else
13990 TERMINFO_DIR=${TERMINFO-none}
13991 fi;
13992 echo "$as_me:13992: result: $TERMINFO_DIR" >&5
13993 echo "${ECHO_T}$TERMINFO_DIR" >&6
13994 if test "$TERMINFO_DIR" = yes ; then
13995 { echo "$as_me:13995: WARNING: no value given" >&5
13996 echo "$as_me: WARNING: no value given" >&2;}
13997 elif test "$TERMINFO_DIR" != none ; then
13998 if test -d $TERMINFO_DIR ; then
13999
14000 cat >>confdefs.h <<EOF
14001 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
14002 EOF
14003
14004 else
14005 { echo "$as_me:14005: WARNING: not a directory" >&5
14006 echo "$as_me: WARNING: not a directory" >&2;}
14007 fi
14008 elif test "$prefix" != NONE ; then
14009 TERMINFO_DIR='${prefix}/lib/terminfo'
14010 elif test -d /usr/lib/terminfo ; then
14011 TERMINFO_DIR=/usr/lib/terminfo
14012 else
14013 TERMINFO_DIR=
14014 fi
14015 SET_TERMINFO=
14016 if test -n "$TERMINFO_DIR" ; then
14017 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
14018 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
14019 fi
14020 no_ticprog=
14021 else
14022 no_ticprog="#"
14023 TERMINFO_DIR=
14024 SET_TERMINFO=
14025 fi
14026
14027 ###############################################################################
14028
14029 echo "$as_me:14029: checking if you want active-icons" >&5
14030 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
14031
14032 # Check whether --enable-active-icon or --disable-active-icon was given.
14033 if test "${enable_active_icon+set}" = set; then
14034 enableval="$enable_active_icon"
14035 test "$enableval" != no && enableval=yes
14036 if test "$enableval" != "yes" ; then
14037 enable_active_icon=no
14038 else
14039 enable_active_icon=yes
14040 fi
14041 else
14042 enableval=yes
14043 enable_active_icon=yes
14044
14045 fi;
14046 echo "$as_me:14046: result: $enable_active_icon" >&5
14047 echo "${ECHO_T}$enable_active_icon" >&6
14048 if test "$enable_active_icon" = no ; then
14049
14050 cat >>confdefs.h <<\EOF
14051 #define NO_ACTIVE_ICON 1
14052 EOF
14053
14054 fi
14055
14056 echo "$as_me:14056: checking if you want ANSI color" >&5
14057 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
14058
14059 # Check whether --enable-ansi-color or --disable-ansi-color was given.
14060 if test "${enable_ansi_color+set}" = set; then
14061 enableval="$enable_ansi_color"
14062 test "$enableval" != no && enableval=yes
14063 if test "$enableval" != "yes" ; then
14064 enable_ansi_color=no
14065 else
14066 enable_ansi_color=yes
14067 fi
14068 else
14069 enableval=yes
14070 enable_ansi_color=yes
14071
14072 fi;
14073 echo "$as_me:14073: result: $enable_ansi_color" >&5
14074 echo "${ECHO_T}$enable_ansi_color" >&6
14075 test "$enable_ansi_color" = no &&
14076 cat >>confdefs.h <<\EOF
14077 #define OPT_ISO_COLORS 0
14078 EOF
14079
14080 if test "$enable_ansi_color" = yes ; then
14081
14082 echo "$as_me:14082: checking if you want 16 colors like aixterm" >&5
14083 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
14084
14085 # Check whether --enable-16-color or --disable-16-color was given.
14086 if test "${enable_16_color+set}" = set; then
14087 enableval="$enable_16_color"
14088 test "$enableval" != no && enableval=yes
14089 if test "$enableval" != "yes" ; then
14090 enable_16_color=no
14091 else
14092 enable_16_color=yes
14093 fi
14094 else
14095 enableval=yes
14096 enable_16_color=yes
14097
14098 fi;
14099 echo "$as_me:14099: result: $enable_16_color" >&5
14100 echo "${ECHO_T}$enable_16_color" >&6
14101 test "$enable_16_color" = no &&
14102 cat >>confdefs.h <<\EOF
14103 #define OPT_AIX_COLORS 0
14104 EOF
14105
14106 echo "$as_me:14106: checking if you want 256 colors" >&5
14107 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
14108
14109 # Check whether --enable-256-color or --disable-256-color was given.
14110 if test "${enable_256_color+set}" = set; then
14111 enableval="$enable_256_color"
14112 test "$enableval" != yes && enableval=no
14113 if test "$enableval" != "no" ; then
14114 enable_256_color=yes
14115 else
14116 enable_256_color=no
14117 fi
14118 else
14119 enableval=no
14120 enable_256_color=no
14121
14122 fi;
14123 echo "$as_me:14123: result: $enable_256_color" >&5
14124 echo "${ECHO_T}$enable_256_color" >&6
14125 if test "$enable_256_color" = yes ; then
14126 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
14127 EXTRAHDRS="$EXTRAHDRS 256colres.h"
14128
14129 cat >>confdefs.h <<\EOF
14130 #define OPT_256_COLORS 1
14131 EOF
14132
14133 else
14134 echo "$as_me:14134: checking if you want 88 colors" >&5
14135 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
14136
14137 # Check whether --enable-88-color or --disable-88-color was given.
14138 if test "${enable_88_color+set}" = set; then
14139 enableval="$enable_88_color"
14140 test "$enableval" != yes && enableval=no
14141 if test "$enableval" != "no" ; then
14142 enable_88_color=yes
14143 else
14144 enable_88_color=no
14145 fi
14146 else
14147 enableval=no
14148 enable_88_color=no
14149
14150 fi;
14151 echo "$as_me:14151: result: $enable_88_color" >&5
14152 echo "${ECHO_T}$enable_88_color" >&6
14153 if test "$enable_88_color" = yes ; then
14154 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
14155 EXTRAHDRS="$EXTRAHDRS 88colres.h"
14156
14157 cat >>confdefs.h <<\EOF
14158 #define OPT_88_COLORS 1
14159 EOF
14160
14161 fi
14162 fi
14163
14164 fi
14165
14166 echo "$as_me:14166: checking if you want blinking cursor" >&5
14167 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
14168
14169 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
14170 if test "${enable_blink_cursor+set}" = set; then
14171 enableval="$enable_blink_cursor"
14172 test "$enableval" != no && enableval=yes
14173 if test "$enableval" != "yes" ; then
14174 enable_blink_curs=no
14175 else
14176 enable_blink_curs=yes
14177 fi
14178 else
14179 enableval=yes
14180 enable_blink_curs=yes
14181
14182 fi;
14183 echo "$as_me:14183: result: $enable_blink_curs" >&5
14184 echo "${ECHO_T}$enable_blink_curs" >&6
14185 test "$enable_blink_curs" = no &&
14186 cat >>confdefs.h <<\EOF
14187 #define OPT_BLINK_CURS 0
14188 EOF
14189
14190 echo "$as_me:14190: checking if you want to ignore Linux's broken palette-strings" >&5
14191 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
14192
14193 case $host_os in #(vi
14194 linux*)
14195 assume_broken_osc=yes ;; #(vi
14196 *)
14197 assume_broken_osc=no ;;
14198 esac
14199
14200 # Check whether --enable-broken-osc or --disable-broken-osc was given.
14201 if test "${enable_broken_osc+set}" = set; then
14202 enableval="$enable_broken_osc"
14203 test "$enableval" != no && enableval=yes
14204 if test "$enableval" != "$assume_broken_osc" ; then
14205 enable_broken_osc=$enableval
14206 else
14207 enable_broken_osc=$enableval
14208 fi
14209 else
14210 enableval=$assume_broken_osc
14211 enable_broken_osc=$enableval
14212
14213 fi;
14214 echo "$as_me:14214: result: $enable_broken_osc" >&5
14215 echo "${ECHO_T}$enable_broken_osc" >&6
14216 if test "$enable_broken_osc" = yes ; then
14217
14218 cat >>confdefs.h <<\EOF
14219 #define OPT_BROKEN_OSC 1
14220 EOF
14221
14222 else
14223
14224 cat >>confdefs.h <<\EOF
14225 #define OPT_BROKEN_OSC 0
14226 EOF
14227
14228 fi
14229
14230 echo "$as_me:14230: checking if you want to allow broken string-terminators" >&5
14231 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
14232
14233 # Check whether --enable-broken-st or --disable-broken-st was given.
14234 if test "${enable_broken_st+set}" = set; then
14235 enableval="$enable_broken_st"
14236 test "$enableval" != yes && enableval=no
14237 if test "$enableval" != "no" ; then
14238 enable_broken_st=no
14239 else
14240 enable_broken_st=yes
14241 fi
14242 else
14243 enableval=no
14244 enable_broken_st=yes
14245
14246 fi;
14247 echo "$as_me:14247: result: $enable_broken_st" >&5
14248 echo "${ECHO_T}$enable_broken_st" >&6
14249 test "$enable_broken_st" = no &&
14250 cat >>confdefs.h <<\EOF
14251 #define OPT_BROKEN_ST 0
14252 EOF
14253
14254 echo "$as_me:14254: checking if you want printable 128-159" >&5
14255 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
14256
14257 # Check whether --enable-c1-print or --disable-c1-print was given.
14258 if test "${enable_c1_print+set}" = set; then
14259 enableval="$enable_c1_print"
14260 test "$enableval" != no && enableval=yes
14261 if test "$enableval" != "yes" ; then
14262 enable_c1_print=no
14263 else
14264 enable_c1_print=yes
14265 fi
14266 else
14267 enableval=yes
14268 enable_c1_print=yes
14269
14270 fi;
14271 echo "$as_me:14271: result: $enable_c1_print" >&5
14272 echo "${ECHO_T}$enable_c1_print" >&6
14273 test "$enable_c1_print" = no &&
14274 cat >>confdefs.h <<\EOF
14275 #define OPT_C1_PRINT 0
14276 EOF
14277
14278 if test "$enable_ansi_color" = yes ; then
14279
14280 echo "$as_me:14280: checking if you want bold colors mapped like IBM PC" >&5
14281 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
14282
14283 # Check whether --enable-bold-color or --disable-bold-color was given.
14284 if test "${enable_bold_color+set}" = set; then
14285 enableval="$enable_bold_color"
14286 test "$enableval" != no && enableval=yes
14287 if test "$enableval" != "yes" ; then
14288 enable_pc_color=no
14289 else
14290 enable_pc_color=yes
14291 fi
14292 else
14293 enableval=yes
14294 enable_pc_color=yes
14295
14296 fi;
14297 echo "$as_me:14297: result: $enable_pc_color" >&5
14298 echo "${ECHO_T}$enable_pc_color" >&6
14299 test "$enable_pc_color" = no &&
14300 cat >>confdefs.h <<\EOF
14301 #define OPT_PC_COLORS 0
14302 EOF
14303
14304 echo "$as_me:14304: checking if you want separate color-classes" >&5
14305 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
14306
14307 # Check whether --enable-color-class or --disable-color-class was given.
14308 if test "${enable_color_class+set}" = set; then
14309 enableval="$enable_color_class"
14310 test "$enableval" != no && enableval=yes
14311 if test "$enableval" != "yes" ; then
14312 enable_color_class=no
14313 else
14314 enable_color_class=yes
14315 fi
14316 else
14317 enableval=yes
14318 enable_color_class=yes
14319
14320 fi;
14321 echo "$as_me:14321: result: $enable_color_class" >&5
14322 echo "${ECHO_T}$enable_color_class" >&6
14323 test "$enable_color_class" = no &&
14324 cat >>confdefs.h <<\EOF
14325 #define OPT_COLOR_CLASS 0
14326 EOF
14327
14328 echo "$as_me:14328: checking if you want color-mode enabled by default" >&5
14329 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
14330
14331 # Check whether --enable-color-mode or --disable-color-mode was given.
14332 if test "${enable_color_mode+set}" = set; then
14333 enableval="$enable_color_mode"
14334 test "$enableval" != no && enableval=yes
14335 if test "$enableval" != "yes" ; then
14336 default_colormode=no
14337 else
14338 default_colormode=yes
14339 fi
14340 else
14341 enableval=yes
14342 default_colormode=yes
14343
14344 fi;
14345 echo "$as_me:14345: result: $default_colormode" >&5
14346 echo "${ECHO_T}$default_colormode" >&6
14347 test "$default_colormode" = no &&
14348 cat >>confdefs.h <<\EOF
14349 #define DFT_COLORMODE 0
14350 EOF
14351
14352 fi
14353
14354 echo "$as_me:14354: checking if you want support for color highlighting" >&5
14355 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
14356
14357 # Check whether --enable-highlighting or --disable-highlighting was given.
14358 if test "${enable_highlighting+set}" = set; then
14359 enableval="$enable_highlighting"
14360 test "$enableval" != no && enableval=yes
14361 if test "$enableval" != "yes" ; then
14362 default_highlight=no
14363 else
14364 default_highlight=yes
14365 fi
14366 else
14367 enableval=yes
14368 default_highlight=yes
14369
14370 fi;
14371 echo "$as_me:14371: result: $default_highlight" >&5
14372 echo "${ECHO_T}$default_highlight" >&6
14373 test "$default_highlight" = no &&
14374 cat >>confdefs.h <<\EOF
14375 #define OPT_HIGHLIGHT_COLOR 0
14376 EOF
14377
14378 echo "$as_me:14378: checking if you want support for doublesize characters" >&5
14379 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
14380
14381 # Check whether --enable-doublechars or --disable-doublechars was given.
14382 if test "${enable_doublechars+set}" = set; then
14383 enableval="$enable_doublechars"
14384 test "$enableval" != no && enableval=yes
14385 if test "$enableval" != "yes" ; then
14386 enable_doublechars=no
14387 else
14388 enable_doublechars=yes
14389 fi
14390 else
14391 enableval=yes
14392 enable_doublechars=yes
14393
14394 fi;
14395 echo "$as_me:14395: result: $enable_doublechars" >&5
14396 echo "${ECHO_T}$enable_doublechars" >&6
14397 test "$enable_doublechars" = no &&
14398 cat >>confdefs.h <<\EOF
14399 #define OPT_DEC_CHRSET 0
14400 EOF
14401
14402 echo "$as_me:14402: checking if you want fallback-support for box characters" >&5
14403 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
14404
14405 # Check whether --enable-boxchars or --disable-boxchars was given.
14406 if test "${enable_boxchars+set}" = set; then
14407 enableval="$enable_boxchars"
14408 test "$enableval" != no && enableval=yes
14409 if test "$enableval" != "yes" ; then
14410 enable_boxchars=no
14411 else
14412 enable_boxchars=yes
14413 fi
14414 else
14415 enableval=yes
14416 enable_boxchars=yes
14417
14418 fi;
14419 echo "$as_me:14419: result: $enable_boxchars" >&5
14420 echo "${ECHO_T}$enable_boxchars" >&6
14421 test "$enable_boxchars" = no &&
14422 cat >>confdefs.h <<\EOF
14423 #define OPT_BOX_CHARS 0
14424 EOF
14425
14426 echo "$as_me:14426: checking if you want to allow spawning new xterms" >&5
14427 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
14428
14429 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
14430 if test "${enable_exec_xterm+set}" = set; then
14431 enableval="$enable_exec_xterm"
14432 test "$enableval" != yes && enableval=no
14433 if test "$enableval" != "no" ; then
14434 enable_exec_xterm=yes
14435 else
14436 enable_exec_xterm=no
14437 fi
14438 else
14439 enableval=no
14440 enable_exec_xterm=no
14441
14442 fi;
14443 echo "$as_me:14443: result: $enable_exec_xterm" >&5
14444 echo "${ECHO_T}$enable_exec_xterm" >&6
14445 if test "$enable_exec_xterm" = yes ; then
14446
14447 echo "$as_me:14447: checking for proc tree with cwd-support" >&5
14448 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
14449 if test "${cf_cv_procfs_cwd+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452
14453 cf_cv_procfs_cwd=no
14454 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
14455 do
14456 if test -d $cf_path && \
14457 test -d $cf_path/$$ && \
14458 ( test -d $cf_path/$$/cwd || \
14459 test -L $cf_path/$$/cwd ); then
14460 cf_cv_procfs_cwd=$cf_path
14461 break
14462 fi
14463 done
14464
14465 fi
14466 echo "$as_me:14466: result: $cf_cv_procfs_cwd" >&5
14467 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
14468
14469 if test "$cf_cv_procfs_cwd" = no ; then
14470 { echo "$as_me:14470: WARNING: no suitable proc filesystem found" >&5
14471 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
14472 else
14473
14474 cat >>confdefs.h <<EOF
14475 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
14476 EOF
14477
14478 cat >>confdefs.h <<\EOF
14479 #define OPT_EXEC_XTERM 1
14480 EOF
14481
14482 fi
14483 fi
14484
14485 echo "$as_me:14485: checking if you want to use double-buffering" >&5
14486 echo $ECHO_N "checking if you want to use double-buffering... $ECHO_C" >&6
14487
14488 # Check whether --enable-double-buffer or --disable-double-buffer was given.
14489 if test "${enable_double_buffer+set}" = set; then
14490 enableval="$enable_double_buffer"
14491 test "$enableval" != yes && enableval=no
14492 if test "$enableval" != "no" ; then
14493 enable_double_bfr=yes
14494 else
14495 enable_double_bfr=no
14496 fi
14497 else
14498 enableval=no
14499 enable_double_bfr=no
14500
14501 fi;
14502 echo "$as_me:14502: result: $enable_double_bfr" >&5
14503 echo "${ECHO_T}$enable_double_bfr" >&6
14504 if test "$enable_double_bfr" = yes ; then
14505 case "x$LIBS" in
14506 *Xext*)
14507 ;;
14508 *)
14509
14510 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
14511 test -n "$verbose" && echo " found package Xext" 1>&6
14512
14513 echo "${as_me:-configure}:14513: testing found package Xext ..." 1>&5
14514
14515 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
14516 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
14517 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
14518
14519 echo "${as_me:-configure}:14519: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14520
14521 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
14522
14523 echo "${as_me:-configure}:14523: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
14524
14525 cf_fix_cppflags=no
14526 cf_new_cflags=
14527 cf_new_cppflags=
14528 cf_new_extra_cppflags=
14529
14530 for cf_add_cflags in $cf_pkgconfig_incs
14531 do
14532 case $cf_fix_cppflags in
14533 no)
14534 case $cf_add_cflags in #(vi
14535 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14536 case $cf_add_cflags in
14537 -D*)
14538 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14539
14540 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14541 && test -z "${cf_tst_cflags}" \
14542 && cf_fix_cppflags=yes
14543
14544 if test $cf_fix_cppflags = yes ; then
14545 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14546 continue
14547 elif test "${cf_tst_cflags}" = "\"'" ; then
14548 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14549 continue
14550 fi
14551 ;;
14552 esac
14553 case "$CPPFLAGS" in
14554 *$cf_add_cflags) #(vi
14555 ;;
14556 *) #(vi
14557 case $cf_add_cflags in #(vi
14558 -D*)
14559 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14560
14561 CPPFLAGS=`echo "$CPPFLAGS" | \
14562 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14563 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14564
14565 ;;
14566 esac
14567 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14568 ;;
14569 esac
14570 ;;
14571 *)
14572 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14573 ;;
14574 esac
14575 ;;
14576 yes)
14577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14578
14579 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14580
14581 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14582 && test -z "${cf_tst_cflags}" \
14583 && cf_fix_cppflags=no
14584 ;;
14585 esac
14586 done
14587
14588 if test -n "$cf_new_cflags" ; then
14589
14590 CFLAGS="$CFLAGS $cf_new_cflags"
14591 fi
14592
14593 if test -n "$cf_new_cppflags" ; then
14594
14595 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14596 fi
14597
14598 if test -n "$cf_new_extra_cppflags" ; then
14599
14600 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14601 fi
14602
14603 LIBS="$cf_pkgconfig_libs $LIBS"
14604 :
14605 else
14606 cf_pkgconfig_incs=
14607 cf_pkgconfig_libs=
14608
14609 echo "$as_me:14609: checking for XextCreateExtension in -lXext" >&5
14610 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
14611 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-lXext $LIBS"
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line 14617 "configure"
14618 #include "confdefs.h"
14619
14620 /* Override any gcc2 internal prototype to avoid an error. */
14621 #ifdef __cplusplus
14622 extern "C"
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14626 char XextCreateExtension ();
14627 int
14628 main ()
14629 {
14630 XextCreateExtension ();
14631 ;
14632 return 0;
14633 }
14634 _ACEOF
14635 rm -f conftest.$ac_objext conftest$ac_exeext
14636 if { (eval echo "$as_me:14636: \"$ac_link\"") >&5
14637 (eval $ac_link) 2>&5
14638 ac_status=$?
14639 echo "$as_me:14639: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -s conftest$ac_exeext'
14642 { (eval echo "$as_me:14642: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 echo "$as_me:14645: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_cv_lib_Xext_XextCreateExtension=yes
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 cat conftest.$ac_ext >&5
14651 ac_cv_lib_Xext_XextCreateExtension=no
14652 fi
14653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14654 LIBS=$ac_check_lib_save_LIBS
14655 fi
14656 echo "$as_me:14656: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
14657 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
14658 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
14659 LIBS="-lXext $LIBS"
14660 fi
14661
14662 fi
14663
14664 ;;
14665 esac
14666
14667 cat >>confdefs.h <<\EOF
14668 #define OPT_DOUBLE_BUFFER 1
14669 EOF
14670
14671 fi
14672
14673 echo "$as_me:14673: checking if you want to use FreeType library" >&5
14674 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
14675
14676 # Check whether --enable-freetype or --disable-freetype was given.
14677 if test "${enable_freetype+set}" = set; then
14678 enableval="$enable_freetype"
14679 test "$enableval" != no && enableval=yes
14680 if test "$enableval" != "yes" ; then
14681 enable_freetype=no
14682 else
14683 enable_freetype=yes
14684 fi
14685 else
14686 enableval=yes
14687 enable_freetype=yes
14688
14689 fi;
14690 echo "$as_me:14690: result: $enable_freetype" >&5
14691 echo "${ECHO_T}$enable_freetype" >&6
14692 if test "$enable_freetype" = yes ; then
14693
14694 cf_cv_x_freetype_incs=no
14695 cf_cv_x_freetype_libs=no
14696 cf_extra_freetype_libs=
14697 FREETYPE_CONFIG=none
14698 FREETYPE_PARAMS=
14699
14700 echo "$as_me:14700: checking for FreeType configuration script" >&5
14701 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6
14702
14703 # Check whether --with-freetype-config or --without-freetype-config was given.
14704 if test "${with_freetype_config+set}" = set; then
14705 withval="$with_freetype_config"
14706 cf_cv_x_freetype_cfgs="$withval"
14707 else
14708 cf_cv_x_freetype_cfgs=auto
14709 fi;
14710 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto
14711 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none
14712 echo "$as_me:14712: result: $cf_cv_x_freetype_cfgs" >&5
14713 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6
14714
14715 case $cf_cv_x_freetype_cfgs in
14716 none) #(vi
14717 echo "$as_me:14717: checking if you specified -D/-I options for FreeType" >&5
14718 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
14719
14720 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
14721 if test "${with_freetype_cflags+set}" = set; then
14722 withval="$with_freetype_cflags"
14723 cf_cv_x_freetype_incs="$with_freetype_cflags"
14724 else
14725 cf_cv_x_freetype_incs=no
14726 fi;
14727 echo "$as_me:14727: result: $cf_cv_x_freetype_incs" >&5
14728 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
14729
14730 echo "$as_me:14730: checking if you specified -L/-l options for FreeType" >&5
14731 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
14732
14733 # Check whether --with-freetype-libs or --without-freetype-libs was given.
14734 if test "${with_freetype_libs+set}" = set; then
14735 withval="$with_freetype_libs"
14736 cf_cv_x_freetype_libs="$with_freetype_libs"
14737 else
14738 cf_cv_x_freetype_libs=no
14739 fi;
14740 echo "$as_me:14740: result: $cf_cv_x_freetype_libs" >&5
14741 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
14742 ;;
14743 auto) #(vi
14744 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
14745 FREETYPE_CONFIG=$PKG_CONFIG
14746 FREETYPE_PARAMS=xft
14747 else
14748 # Extract the first word of "freetype-config", so it can be a program name with args.
14749 set dummy freetype-config; ac_word=$2
14750 echo "$as_me:14750: checking for $ac_word" >&5
14751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14752 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755 case $FREETYPE_CONFIG in
14756 [\\/]* | ?:[\\/]*)
14757 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
14758 ;;
14759 *)
14760 ac_save_IFS=$IFS; IFS=$ac_path_separator
14761 ac_dummy="$PATH"
14762 for ac_dir in $ac_dummy; do
14763 IFS=$ac_save_IFS
14764 test -z "$ac_dir" && ac_dir=.
14765 if $as_executable_p "$ac_dir/$ac_word"; then
14766 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word"
14767 echo "$as_me:14767: found $ac_dir/$ac_word" >&5
14768 break
14769 fi
14770 done
14771
14772 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none"
14773 ;;
14774 esac
14775 fi
14776 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
14777
14778 if test -n "$FREETYPE_CONFIG"; then
14779 echo "$as_me:14779: result: $FREETYPE_CONFIG" >&5
14780 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
14781 else
14782 echo "$as_me:14782: result: no" >&5
14783 echo "${ECHO_T}no" >&6
14784 fi
14785
14786 if test "$FREETYPE_CONFIG" != none; then
14787 FREETYPE_CONFIG=$FREETYPE_CONFIG
14788 cf_extra_freetype_libs="-lXft"
14789 else
14790 # Extract the first word of "xft-config", so it can be a program name with args.
14791 set dummy xft-config; ac_word=$2
14792 echo "$as_me:14792: checking for $ac_word" >&5
14793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14794 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797 case $FREETYPE_OLD_CONFIG in
14798 [\\/]* | ?:[\\/]*)
14799 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
14800 ;;
14801 *)
14802 ac_save_IFS=$IFS; IFS=$ac_path_separator
14803 ac_dummy="$PATH"
14804 for ac_dir in $ac_dummy; do
14805 IFS=$ac_save_IFS
14806 test -z "$ac_dir" && ac_dir=.
14807 if $as_executable_p "$ac_dir/$ac_word"; then
14808 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
14809 echo "$as_me:14809: found $ac_dir/$ac_word" >&5
14810 break
14811 fi
14812 done
14813
14814 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
14815 ;;
14816 esac
14817 fi
14818 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
14819
14820 if test -n "$FREETYPE_OLD_CONFIG"; then
14821 echo "$as_me:14821: result: $FREETYPE_OLD_CONFIG" >&5
14822 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
14823 else
14824 echo "$as_me:14824: result: no" >&5
14825 echo "${ECHO_T}no" >&6
14826 fi
14827
14828 if test "$FREETYPE_OLD_CONFIG" != none; then
14829 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
14830 fi
14831 fi
14832 fi
14833 ;;
14834 pkg*) #(vi
14835 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
14836 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs
14837 FREETYPE_PARAMS=xft
14838 else
14839 { echo "$as_me:14839: WARNING: cannot find pkg-config for Xft" >&5
14840 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;}
14841 fi
14842 ;;
14843 *) #(vi
14844 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args.
14845 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2
14846 echo "$as_me:14846: checking for $ac_word" >&5
14847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14848 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 case $FREETYPE_XFT_CONFIG in
14852 [\\/]* | ?:[\\/]*)
14853 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
14854 ;;
14855 *)
14856 ac_save_IFS=$IFS; IFS=$ac_path_separator
14857 ac_dummy="$PATH"
14858 for ac_dir in $ac_dummy; do
14859 IFS=$ac_save_IFS
14860 test -z "$ac_dir" && ac_dir=.
14861 if $as_executable_p "$ac_dir/$ac_word"; then
14862 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
14863 echo "$as_me:14863: found $ac_dir/$ac_word" >&5
14864 break
14865 fi
14866 done
14867
14868 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
14869 ;;
14870 esac
14871 fi
14872 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
14873
14874 if test -n "$FREETYPE_XFT_CONFIG"; then
14875 echo "$as_me:14875: result: $FREETYPE_XFT_CONFIG" >&5
14876 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
14877 else
14878 echo "$as_me:14878: result: no" >&5
14879 echo "${ECHO_T}no" >&6
14880 fi
14881
14882 if test "$FREETYPE_XFT_CONFIG" != none; then
14883 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
14884 else
14885 { echo "$as_me:14885: WARNING: cannot find config script for Xft" >&5
14886 echo "$as_me: WARNING: cannot find config script for Xft" >&2;}
14887 fi
14888 ;;
14889 esac
14890
14891 if test "$FREETYPE_CONFIG" != none ; then
14892 echo "$as_me:14892: checking for FreeType config" >&5
14893 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
14894 echo "$as_me:14894: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
14895 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
14896
14897 if test "$cf_cv_x_freetype_incs" = no ; then
14898 echo "$as_me:14898: checking for $FREETYPE_CONFIG cflags" >&5
14899 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
14900 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
14901 echo "$as_me:14901: result: $cf_cv_x_freetype_incs" >&5
14902 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
14903 fi
14904
14905 if test "$cf_cv_x_freetype_libs" = no ; then
14906 echo "$as_me:14906: checking for $FREETYPE_CONFIG libs" >&5
14907 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
14908 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
14909 echo "$as_me:14909: result: $cf_cv_x_freetype_libs" >&5
14910 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
14911 fi
14912 fi
14913
14914 if test "$cf_cv_x_freetype_incs" = no ; then
14915 cf_cv_x_freetype_incs=
14916 fi
14917
14918 if test "$cf_cv_x_freetype_libs" = no ; then
14919 cf_cv_x_freetype_libs=-lXft
14920 fi
14921
14922 echo "$as_me:14922: checking if we can link with FreeType libraries" >&5
14923 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
14924
14925 cf_save_LIBS="$LIBS"
14926 cf_save_INCS="$CPPFLAGS"
14927
14928 LIBS="$cf_cv_x_freetype_libs $LIBS"
14929 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
14930
14931 cat >conftest.$ac_ext <<_ACEOF
14932 #line 14932 "configure"
14933 #include "confdefs.h"
14934
14935 #include <X11/Xlib.h>
14936 #include <X11/extensions/Xrender.h>
14937 #include <X11/Xft/Xft.h>
14938 int
14939 main ()
14940 {
14941
14942 XftPattern *pat = XftNameParse ("name");
14943 ;
14944 return 0;
14945 }
14946 _ACEOF
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (eval echo "$as_me:14948: \"$ac_link\"") >&5
14949 (eval $ac_link) 2>&5
14950 ac_status=$?
14951 echo "$as_me:14951: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try='test -s conftest$ac_exeext'
14954 { (eval echo "$as_me:14954: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:14957: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 cf_cv_found_freetype=yes
14960 else
14961 echo "$as_me: failed program was:" >&5
14962 cat conftest.$ac_ext >&5
14963 cf_cv_found_freetype=no
14964 fi
14965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14966 echo "$as_me:14966: result: $cf_cv_found_freetype" >&5
14967 echo "${ECHO_T}$cf_cv_found_freetype" >&6
14968
14969 LIBS="$cf_save_LIBS"
14970 CPPFLAGS="$cf_save_INCS"
14971
14972 if test "$cf_cv_found_freetype" = yes ; then
14973 LIBS="$cf_cv_x_freetype_libs $LIBS"
14974
14975 cf_fix_cppflags=no
14976 cf_new_cflags=
14977 cf_new_cppflags=
14978 cf_new_extra_cppflags=
14979
14980 for cf_add_cflags in $cf_cv_x_freetype_incs
14981 do
14982 case $cf_fix_cppflags in
14983 no)
14984 case $cf_add_cflags in #(vi
14985 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
14986 case $cf_add_cflags in
14987 -D*)
14988 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14989
14990 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
14991 && test -z "${cf_tst_cflags}" \
14992 && cf_fix_cppflags=yes
14993
14994 if test $cf_fix_cppflags = yes ; then
14995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14996 continue
14997 elif test "${cf_tst_cflags}" = "\"'" ; then
14998 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14999 continue
15000 fi
15001 ;;
15002 esac
15003 case "$CPPFLAGS" in
15004 *$cf_add_cflags) #(vi
15005 ;;
15006 *) #(vi
15007 case $cf_add_cflags in #(vi
15008 -D*)
15009 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15010
15011 CPPFLAGS=`echo "$CPPFLAGS" | \
15012 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15013 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15014
15015 ;;
15016 esac
15017 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15018 ;;
15019 esac
15020 ;;
15021 *)
15022 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15023 ;;
15024 esac
15025 ;;
15026 yes)
15027 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15028
15029 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15030
15031 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15032 && test -z "${cf_tst_cflags}" \
15033 && cf_fix_cppflags=no
15034 ;;
15035 esac
15036 done
15037
15038 if test -n "$cf_new_cflags" ; then
15039
15040 CFLAGS="$CFLAGS $cf_new_cflags"
15041 fi
15042
15043 if test -n "$cf_new_cppflags" ; then
15044
15045 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15046 fi
15047
15048 if test -n "$cf_new_extra_cppflags" ; then
15049
15050 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15051 fi
15052
15053 cat >>confdefs.h <<\EOF
15054 #define XRENDERFONT 1
15055 EOF
15056
15057 for ac_func in \
15058 XftDrawCharSpec \
15059 XftDrawSetClip \
15060 XftDrawSetClipRectangles \
15061
15062 do
15063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15064 echo "$as_me:15064: checking for $ac_func" >&5
15065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15066 if eval "test \"\${$as_ac_var+set}\" = set"; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 else
15069 cat >conftest.$ac_ext <<_ACEOF
15070 #line 15070 "configure"
15071 #include "confdefs.h"
15072 /* System header to define __stub macros and hopefully few prototypes,
15073 which can conflict with char $ac_func (); below. */
15074 #include <assert.h>
15075 /* Override any gcc2 internal prototype to avoid an error. */
15076 #ifdef __cplusplus
15077 extern "C"
15078 #endif
15079 /* We use char because int might match the return type of a gcc2
15080 builtin and then its argument prototype would still apply. */
15081 char $ac_func ();
15082 char (*f) ();
15083
15084 int
15085 main ()
15086 {
15087 /* The GNU C library defines this for functions which it implements
15088 to always fail with ENOSYS. Some functions are actually named
15089 something starting with __ and the normal name is an alias. */
15090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15091 choke me
15092 #else
15093 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15094 #endif
15095
15096 ;
15097 return 0;
15098 }
15099 _ACEOF
15100 rm -f conftest.$ac_objext conftest$ac_exeext
15101 if { (eval echo "$as_me:15101: \"$ac_link\"") >&5
15102 (eval $ac_link) 2>&5
15103 ac_status=$?
15104 echo "$as_me:15104: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -s conftest$ac_exeext'
15107 { (eval echo "$as_me:15107: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:15110: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 eval "$as_ac_var=yes"
15113 else
15114 echo "$as_me: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15116 eval "$as_ac_var=no"
15117 fi
15118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15119 fi
15120 echo "$as_me:15120: result: `eval echo '${'$as_ac_var'}'`" >&5
15121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15122 if test `eval echo '${'$as_ac_var'}'` = yes; then
15123 cat >>confdefs.h <<EOF
15124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15125 EOF
15126
15127 fi
15128 done
15129
15130 else
15131 { echo "$as_me:15131: WARNING: No libraries found for FreeType" >&5
15132 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
15133 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
15134 fi
15135
15136 # FIXME: revisit this if needed
15137
15138 if test "$cf_cv_found_freetype" = yes ; then
15139 echo "$as_me:15139: checking for usable Xft/fontconfig package" >&5
15140 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
15141 if test "${cf_cv_xft_compat+set}" = set; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144
15145 cat >conftest.$ac_ext <<_ACEOF
15146 #line 15146 "configure"
15147 #include "confdefs.h"
15148
15149 #include <X11/Xft/Xft.h>
15150
15151 int
15152 main ()
15153 {
15154
15155 XftPattern *pat;
15156 XftPatternBuild(pat,
15157 XFT_FAMILY, XftTypeString, "mono",
15158 (void *) 0);
15159
15160 ;
15161 return 0;
15162 }
15163 _ACEOF
15164 rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (eval echo "$as_me:15165: \"$ac_link\"") >&5
15166 (eval $ac_link) 2>&5
15167 ac_status=$?
15168 echo "$as_me:15168: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -s conftest$ac_exeext'
15171 { (eval echo "$as_me:15171: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:15174: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 cf_cv_xft_compat=yes
15177 else
15178 echo "$as_me: failed program was:" >&5
15179 cat conftest.$ac_ext >&5
15180 cf_cv_xft_compat=no
15181 fi
15182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15183
15184 fi
15185 echo "$as_me:15185: result: $cf_cv_xft_compat" >&5
15186 echo "${ECHO_T}$cf_cv_xft_compat" >&6
15187
15188 if test "$cf_cv_xft_compat" = no
15189 then
15190 # workaround for broken ".pc" files used for Xft.
15191 case "$cf_cv_x_freetype_libs" in #(vi
15192 *-lfontconfig*) #(vi
15193 ;;
15194 *)
15195 test -n "$verbose" && echo " work around broken package" 1>&6
15196
15197 echo "${as_me:-configure}:15197: testing work around broken package ..." 1>&5
15198
15199 cf_save_fontconfig="$LIBS"
15200
15201 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists fontconfig; then
15202 test -n "$verbose" && echo " found package fontconfig" 1>&6
15203
15204 echo "${as_me:-configure}:15204: testing found package fontconfig ..." 1>&5
15205
15206 cf_pkgconfig_incs="`$PKG_CONFIG --cflags fontconfig 2>/dev/null`"
15207 cf_pkgconfig_libs="`$PKG_CONFIG --libs fontconfig 2>/dev/null`"
15208 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
15209
15210 echo "${as_me:-configure}:15210: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15211
15212 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
15213
15214 echo "${as_me:-configure}:15214: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
15215
15216 cf_fix_cppflags=no
15217 cf_new_cflags=
15218 cf_new_cppflags=
15219 cf_new_extra_cppflags=
15220
15221 for cf_add_cflags in $cf_pkgconfig_incs
15222 do
15223 case $cf_fix_cppflags in
15224 no)
15225 case $cf_add_cflags in #(vi
15226 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15227 case $cf_add_cflags in
15228 -D*)
15229 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15230
15231 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15232 && test -z "${cf_tst_cflags}" \
15233 && cf_fix_cppflags=yes
15234
15235 if test $cf_fix_cppflags = yes ; then
15236 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15237 continue
15238 elif test "${cf_tst_cflags}" = "\"'" ; then
15239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15240 continue
15241 fi
15242 ;;
15243 esac
15244 case "$CPPFLAGS" in
15245 *$cf_add_cflags) #(vi
15246 ;;
15247 *) #(vi
15248 case $cf_add_cflags in #(vi
15249 -D*)
15250 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15251
15252 CPPFLAGS=`echo "$CPPFLAGS" | \
15253 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15254 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15255
15256 ;;
15257 esac
15258 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15259 ;;
15260 esac
15261 ;;
15262 *)
15263 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15264 ;;
15265 esac
15266 ;;
15267 yes)
15268 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15269
15270 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15271
15272 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15273 && test -z "${cf_tst_cflags}" \
15274 && cf_fix_cppflags=no
15275 ;;
15276 esac
15277 done
15278
15279 if test -n "$cf_new_cflags" ; then
15280
15281 CFLAGS="$CFLAGS $cf_new_cflags"
15282 fi
15283
15284 if test -n "$cf_new_cppflags" ; then
15285
15286 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15287 fi
15288
15289 if test -n "$cf_new_extra_cppflags" ; then
15290
15291 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15292 fi
15293
15294 LIBS="$cf_pkgconfig_libs $LIBS"
15295
15296 cf_fix_cppflags=no
15297 cf_new_cflags=
15298 cf_new_cppflags=
15299 cf_new_extra_cppflags=
15300
15301 for cf_add_cflags in $cf_pkgconfig_incs
15302 do
15303 case $cf_fix_cppflags in
15304 no)
15305 case $cf_add_cflags in #(vi
15306 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15307 case $cf_add_cflags in
15308 -D*)
15309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15310
15311 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15312 && test -z "${cf_tst_cflags}" \
15313 && cf_fix_cppflags=yes
15314
15315 if test $cf_fix_cppflags = yes ; then
15316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15317 continue
15318 elif test "${cf_tst_cflags}" = "\"'" ; then
15319 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15320 continue
15321 fi
15322 ;;
15323 esac
15324 case "$CPPFLAGS" in
15325 *$cf_add_cflags) #(vi
15326 ;;
15327 *) #(vi
15328 case $cf_add_cflags in #(vi
15329 -D*)
15330 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15331
15332 CPPFLAGS=`echo "$CPPFLAGS" | \
15333 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15334 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15335
15336 ;;
15337 esac
15338 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15339 ;;
15340 esac
15341 ;;
15342 *)
15343 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15344 ;;
15345 esac
15346 ;;
15347 yes)
15348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15349
15350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15351
15352 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15353 && test -z "${cf_tst_cflags}" \
15354 && cf_fix_cppflags=no
15355 ;;
15356 esac
15357 done
15358
15359 if test -n "$cf_new_cflags" ; then
15360
15361 CFLAGS="$CFLAGS $cf_new_cflags"
15362 fi
15363
15364 if test -n "$cf_new_cppflags" ; then
15365
15366 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15367 fi
15368
15369 if test -n "$cf_new_extra_cppflags" ; then
15370
15371 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15372 fi
15373
15374 LIBS="$cf_save_fontconfig"
15375
15376 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15377
15378 echo "${as_me:-configure}:15378: testing ...before $LIBS ..." 1>&5
15379
15380 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'`
15381 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15382
15383 echo "${as_me:-configure}:15383: testing ...after $LIBS ..." 1>&5
15384
15385 else
15386 cf_pkgconfig_incs=
15387 cf_pkgconfig_libs=
15388
15389 test -n "$verbose" && echo " ...before $LIBS" 1>&6
15390
15391 echo "${as_me:-configure}:15391: testing ...before $LIBS ..." 1>&5
15392
15393 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'`
15394 test -n "$verbose" && echo " ...after $LIBS" 1>&6
15395
15396 echo "${as_me:-configure}:15396: testing ...after $LIBS ..." 1>&5
15397
15398 fi
15399
15400 ;;
15401 esac
15402 fi
15403 fi
15404
15405 else
15406 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
15407 fi
15408
15409 echo "$as_me:15409: checking if you want support for HP-style function keys" >&5
15410 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
15411
15412 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
15413 if test "${enable_hp_fkeys+set}" = set; then
15414 enableval="$enable_hp_fkeys"
15415 test "$enableval" != yes && enableval=no
15416 if test "$enableval" != "no" ; then
15417 enable_hp_fkeys=yes
15418 else
15419 enable_hp_fkeys=no
15420 fi
15421 else
15422 enableval=no
15423 enable_hp_fkeys=no
15424
15425 fi;
15426 echo "$as_me:15426: result: $enable_hp_fkeys" >&5
15427 echo "${ECHO_T}$enable_hp_fkeys" >&6
15428 if test "$enable_hp_fkeys" = yes ; then
15429
15430 cat >>confdefs.h <<\EOF
15431 #define OPT_HP_FUNC_KEYS 1
15432 EOF
15433
15434 fi
15435
15436 echo "$as_me:15436: checking if you want support for SCO-style function keys" >&5
15437 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
15438
15439 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
15440 if test "${enable_sco_fkeys+set}" = set; then
15441 enableval="$enable_sco_fkeys"
15442 test "$enableval" != yes && enableval=no
15443 if test "$enableval" != "no" ; then
15444 enable_sco_fkeys=yes
15445 else
15446 enable_sco_fkeys=no
15447 fi
15448 else
15449 enableval=no
15450 enable_sco_fkeys=no
15451
15452 fi;
15453 echo "$as_me:15453: result: $enable_sco_fkeys" >&5
15454 echo "${ECHO_T}$enable_sco_fkeys" >&6
15455 if test "$enable_sco_fkeys" = yes ; then
15456
15457 cat >>confdefs.h <<\EOF
15458 #define OPT_SCO_FUNC_KEYS 1
15459 EOF
15460
15461 fi
15462
15463 echo "$as_me:15463: checking if you want support for Sun-style function keys" >&5
15464 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
15465
15466 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
15467 if test "${enable_sun_fkeys+set}" = set; then
15468 enableval="$enable_sun_fkeys"
15469 test "$enableval" != no && enableval=yes
15470 if test "$enableval" != "yes" ; then
15471 enable_sun_fkeys=no
15472 else
15473 enable_sun_fkeys=yes
15474 fi
15475 else
15476 enableval=yes
15477 enable_sun_fkeys=yes
15478
15479 fi;
15480 echo "$as_me:15480: result: $enable_sun_fkeys" >&5
15481 echo "${ECHO_T}$enable_sun_fkeys" >&6
15482 if test "$enable_sun_fkeys" = no ; then
15483
15484 cat >>confdefs.h <<\EOF
15485 #define OPT_SUN_FUNC_KEYS 0
15486 EOF
15487
15488 fi
15489
15490 echo "$as_me:15490: checking if you want saved-lines stored as a FIFO" >&5
15491 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
15492
15493 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
15494 if test "${enable_fifo_lines+set}" = set; then
15495 enableval="$enable_fifo_lines"
15496 test "$enableval" != no && enableval=yes
15497 if test "$enableval" != "yes" ; then
15498 enable_fifo_lines=no
15499 else
15500 enable_fifo_lines=yes
15501 fi
15502 else
15503 enableval=yes
15504 enable_fifo_lines=yes
15505
15506 fi;
15507 echo "$as_me:15507: result: $enable_fifo_lines" >&5
15508 echo "${ECHO_T}$enable_fifo_lines" >&6
15509 if test "$enable_fifo_lines" = yes ; then
15510
15511 cat >>confdefs.h <<\EOF
15512 #define OPT_FIFO_LINES 1
15513 EOF
15514
15515 fi
15516
15517 echo "$as_me:15517: checking if you want support for internationalization" >&5
15518 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
15519
15520 # Check whether --enable-i18n or --disable-i18n was given.
15521 if test "${enable_i18n+set}" = set; then
15522 enableval="$enable_i18n"
15523 test "$enableval" != no && enableval=yes
15524 if test "$enableval" != "yes" ; then
15525 enable_i18n=no
15526 else
15527 enable_i18n=yes
15528 fi
15529 else
15530 enableval=yes
15531 enable_i18n=yes
15532
15533 fi;
15534 echo "$as_me:15534: result: $enable_i18n" >&5
15535 echo "${ECHO_T}$enable_i18n" >&6
15536 if test "$enable_i18n" = no ; then
15537
15538 cat >>confdefs.h <<\EOF
15539 #define OPT_I18N_SUPPORT 0
15540 EOF
15541
15542 fi
15543
15544 echo "$as_me:15544: checking if you want support for initial-erase setup" >&5
15545 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
15546
15547 # Check whether --enable-initial-erase or --disable-initial-erase was given.
15548 if test "${enable_initial_erase+set}" = set; then
15549 enableval="$enable_initial_erase"
15550 test "$enableval" != no && enableval=yes
15551 if test "$enableval" != "yes" ; then
15552 enable_ie=no
15553 else
15554 enable_ie=yes
15555 fi
15556 else
15557 enableval=yes
15558 enable_ie=yes
15559
15560 fi;
15561 echo "$as_me:15561: result: $enable_ie" >&5
15562 echo "${ECHO_T}$enable_ie" >&6
15563 if test "$enable_ie" = no ; then
15564
15565 cat >>confdefs.h <<\EOF
15566 #define OPT_INITIAL_ERASE 0
15567 EOF
15568
15569 fi
15570
15571 echo "$as_me:15571: checking if you want support for input-method" >&5
15572 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
15573
15574 # Check whether --enable-input-method or --disable-input-method was given.
15575 if test "${enable_input_method+set}" = set; then
15576 enableval="$enable_input_method"
15577 test "$enableval" != no && enableval=yes
15578 if test "$enableval" != "yes" ; then
15579 enable_ximp=no
15580 else
15581 enable_ximp=yes
15582 fi
15583 else
15584 enableval=yes
15585 enable_ximp=yes
15586
15587 fi;
15588 echo "$as_me:15588: result: $enable_ximp" >&5
15589 echo "${ECHO_T}$enable_ximp" >&6
15590
15591 echo "$as_me:15591: checking if X libraries support input-method" >&5
15592 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
15593 if test "${cf_cv_input_method+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596
15597 cat >conftest.$ac_ext <<_ACEOF
15598 #line 15598 "configure"
15599 #include "confdefs.h"
15600
15601 #include <X11/IntrinsicP.h>
15602 #include <X11/Xatom.h>
15603 #include <X11/Xutil.h>
15604 #include <X11/Xmu/Atoms.h>
15605 #include <X11/Xmu/Converters.h>
15606 #include <X11/Xaw/XawImP.h>
15607
15608 int
15609 main ()
15610 {
15611
15612 {
15613 XIM xim;
15614 XIMStyles *xim_styles = 0;
15615 XIMStyle input_style;
15616 Widget w = 0;
15617
15618 XSetLocaleModifiers("@im=none");
15619 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
15620 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
15621 XCloseIM(xim);
15622 input_style = (XIMPreeditNothing | XIMStatusNothing);
15623 }
15624
15625 ;
15626 return 0;
15627 }
15628 _ACEOF
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (eval echo "$as_me:15630: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>&5
15632 ac_status=$?
15633 echo "$as_me:15633: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -s conftest$ac_exeext'
15636 { (eval echo "$as_me:15636: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:15639: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 cf_cv_input_method=yes
15642 else
15643 echo "$as_me: failed program was:" >&5
15644 cat conftest.$ac_ext >&5
15645 cf_cv_input_method=no
15646 fi
15647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15648 fi
15649 echo "$as_me:15649: result: $cf_cv_input_method" >&5
15650 echo "${ECHO_T}$cf_cv_input_method" >&6
15651
15652 test "$cf_cv_input_method" = no && enable_ximp=no
15653 if test "$enable_ximp" = no ; then
15654
15655 cat >>confdefs.h <<\EOF
15656 #define OPT_INPUT_METHOD 0
15657 EOF
15658
15659 fi
15660
15661 echo "$as_me:15661: checking if you want support for load-vt-fonts" >&5
15662 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
15663
15664 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
15665 if test "${enable_load_vt_fonts+set}" = set; then
15666 enableval="$enable_load_vt_fonts"
15667 test "$enableval" != yes && enableval=no
15668 if test "$enableval" != "no" ; then
15669 enable_load_vt_fonts=yes
15670 else
15671 enable_load_vt_fonts=no
15672 fi
15673 else
15674 enableval=no
15675 enable_load_vt_fonts=no
15676
15677 fi;
15678 echo "$as_me:15678: result: $enable_load_vt_fonts" >&5
15679 echo "${ECHO_T}$enable_load_vt_fonts" >&6
15680 if test "$enable_load_vt_fonts" = yes ; then
15681
15682 cat >>confdefs.h <<\EOF
15683 #define OPT_LOAD_VTFONTS 1
15684 EOF
15685
15686 fi
15687
15688 echo "$as_me:15688: checking if you want support for logging" >&5
15689 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
15690
15691 # Check whether --enable-logging or --disable-logging was given.
15692 if test "${enable_logging+set}" = set; then
15693 enableval="$enable_logging"
15694 test "$enableval" != yes && enableval=no
15695 if test "$enableval" != "no" ; then
15696 enable_logging=yes
15697 else
15698 enable_logging=no
15699 fi
15700 else
15701 enableval=no
15702 enable_logging=no
15703
15704 fi;
15705 echo "$as_me:15705: result: $enable_logging" >&5
15706 echo "${ECHO_T}$enable_logging" >&6
15707 if test "$enable_logging" = yes ; then
15708
15709 cat >>confdefs.h <<\EOF
15710 #define ALLOWLOGGING 1
15711 EOF
15712
15713 echo "$as_me:15713: checking if you want to allow logging via a pipe" >&5
15714 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
15715
15716 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
15717 if test "${enable_logfile_exec+set}" = set; then
15718 enableval="$enable_logfile_exec"
15719 test "$enableval" != yes && enableval=no
15720 if test "$enableval" != "no" ; then
15721 enable_log_exec=yes
15722 else
15723 enable_log_exec=no
15724 fi
15725 else
15726 enableval=no
15727 enable_log_exec=no
15728
15729 fi;
15730 echo "$as_me:15730: result: $enable_log_exec" >&5
15731 echo "${ECHO_T}$enable_log_exec" >&6
15732 if test "$enable_log_exec" = yes ; then
15733
15734 cat >>confdefs.h <<\EOF
15735 #define ALLOWLOGFILEEXEC 1
15736 EOF
15737
15738 fi
15739 fi
15740
15741 echo "$as_me:15741: checking if you want support for iconify/maximize translations" >&5
15742 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
15743
15744 # Check whether --enable-maximize or --disable-maximize was given.
15745 if test "${enable_maximize+set}" = set; then
15746 enableval="$enable_maximize"
15747 test "$enableval" != no && enableval=yes
15748 if test "$enableval" != "yes" ; then
15749 enable_maximize=no
15750 else
15751 enable_maximize=yes
15752 fi
15753 else
15754 enableval=yes
15755 enable_maximize=yes
15756
15757 fi;
15758 echo "$as_me:15758: result: $enable_maximize" >&5
15759 echo "${ECHO_T}$enable_maximize" >&6
15760 test "$enable_maximize" = no &&
15761 cat >>confdefs.h <<\EOF
15762 #define OPT_MAXIMIZE 0
15763 EOF
15764
15765 echo "$as_me:15765: checking if you want NumLock to override keyboard tables" >&5
15766 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
15767
15768 # Check whether --enable-num-lock or --disable-num-lock was given.
15769 if test "${enable_num_lock+set}" = set; then
15770 enableval="$enable_num_lock"
15771 test "$enableval" != no && enableval=yes
15772 if test "$enableval" != "yes" ; then
15773 enable_numlock=no
15774 else
15775 enable_numlock=yes
15776 fi
15777 else
15778 enableval=yes
15779 enable_numlock=yes
15780
15781 fi;
15782 echo "$as_me:15782: result: $enable_numlock" >&5
15783 echo "${ECHO_T}$enable_numlock" >&6
15784 test "$enable_numlock" = no &&
15785 cat >>confdefs.h <<\EOF
15786 #define OPT_NUM_LOCK 0
15787 EOF
15788
15789 echo "$as_me:15789: checking if you want support for get/set of base64 selection data" >&5
15790 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
15791
15792 # Check whether --enable-paste64 or --disable-paste64 was given.
15793 if test "${enable_paste64+set}" = set; then
15794 enableval="$enable_paste64"
15795 test "$enableval" != no && enableval=yes
15796 if test "$enableval" != "yes" ; then
15797 enable_paste64=no
15798 else
15799 enable_paste64=yes
15800 fi
15801 else
15802 enableval=yes
15803 enable_paste64=yes
15804
15805 fi;
15806 echo "$as_me:15806: result: $enable_paste64" >&5
15807 echo "${ECHO_T}$enable_paste64" >&6
15808 if test "$enable_paste64" = yes ; then
15809
15810 cat >>confdefs.h <<\EOF
15811 #define OPT_PASTE64 1
15812 EOF
15813
15814 else
15815
15816 cat >>confdefs.h <<\EOF
15817 #define OPT_PASTE64 0
15818 EOF
15819
15820 fi
15821
15822 echo "$as_me:15822: checking if you want support for pty-handshaking" >&5
15823 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
15824
15825 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
15826 if test "${enable_pty_handshake+set}" = set; then
15827 enableval="$enable_pty_handshake"
15828 test "$enableval" != no && enableval=yes
15829 if test "$enableval" != "yes" ; then
15830 enable_pty_handshake=no
15831 else
15832 enable_pty_handshake=yes
15833 fi
15834 else
15835 enableval=yes
15836 enable_pty_handshake=yes
15837
15838 fi;
15839 echo "$as_me:15839: result: $enable_pty_handshake" >&5
15840 echo "${ECHO_T}$enable_pty_handshake" >&6
15841 if test "$enable_pty_handshake" = yes ; then
15842
15843 cat >>confdefs.h <<\EOF
15844 #define OPT_PTY_HANDSHAKE 1
15845 EOF
15846
15847 else
15848
15849 cat >>confdefs.h <<\EOF
15850 #define OPT_PTY_HANDSHAKE 0
15851 EOF
15852
15853 fi
15854
15855 echo "$as_me:15855: checking if you want support for mouse in readline applications" >&5
15856 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
15857
15858 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
15859 if test "${enable_readline_mouse+set}" = set; then
15860 enableval="$enable_readline_mouse"
15861 test "$enableval" != yes && enableval=no
15862 if test "$enableval" != "no" ; then
15863 enable_readline_mouse=yes
15864 else
15865 enable_readline_mouse=no
15866 fi
15867 else
15868 enableval=no
15869 enable_readline_mouse=no
15870
15871 fi;
15872 echo "$as_me:15872: result: $enable_readline_mouse" >&5
15873 echo "${ECHO_T}$enable_readline_mouse" >&6
15874 if test "$enable_readline_mouse" = yes ; then
15875
15876 cat >>confdefs.h <<\EOF
15877 #define OPT_READLINE 1
15878 EOF
15879
15880 fi
15881
15882 echo "$as_me:15882: checking if you want support for regular-expression selections" >&5
15883 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
15884
15885 # Check whether --enable-regex or --disable-regex was given.
15886 if test "${enable_regex+set}" = set; then
15887 enableval="$enable_regex"
15888 test "$enableval" != no && enableval=yes
15889 if test "$enableval" != "yes" ; then
15890 enable_regex=no
15891 else
15892 enable_regex=yes
15893 fi
15894 else
15895 enableval=yes
15896 enable_regex=yes
15897
15898 fi;
15899 echo "$as_me:15899: result: $enable_regex" >&5
15900 echo "${ECHO_T}$enable_regex" >&6
15901 if test "$enable_regex" = yes ; then
15902
15903 echo "$as_me:15903: checking if you want to use PCRE for regular-expressions" >&5
15904 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
15905
15906 # Check whether --with-pcre or --without-pcre was given.
15907 if test "${with_pcre+set}" = set; then
15908 withval="$with_pcre"
15909
15910 fi;
15911 test -z "$with_pcre" && with_pcre=no
15912 echo "$as_me:15912: result: $with_pcre" >&5
15913 echo "${ECHO_T}$with_pcre" >&6
15914
15915 if test "$with_pcre" != no ; then
15916
15917 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists libpcre; then
15918 test -n "$verbose" && echo " found package libpcre" 1>&6
15919
15920 echo "${as_me:-configure}:15920: testing found package libpcre ..." 1>&5
15921
15922 cf_pkgconfig_incs="`$PKG_CONFIG --cflags libpcre 2>/dev/null`"
15923 cf_pkgconfig_libs="`$PKG_CONFIG --libs libpcre 2>/dev/null`"
15924 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
15925
15926 echo "${as_me:-configure}:15926: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
15927
15928 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
15929
15930 echo "${as_me:-configure}:15930: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
15931
15932 cf_fix_cppflags=no
15933 cf_new_cflags=
15934 cf_new_cppflags=
15935 cf_new_extra_cppflags=
15936
15937 for cf_add_cflags in $cf_pkgconfig_incs
15938 do
15939 case $cf_fix_cppflags in
15940 no)
15941 case $cf_add_cflags in #(vi
15942 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15943 case $cf_add_cflags in
15944 -D*)
15945 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15946
15947 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15948 && test -z "${cf_tst_cflags}" \
15949 && cf_fix_cppflags=yes
15950
15951 if test $cf_fix_cppflags = yes ; then
15952 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15953 continue
15954 elif test "${cf_tst_cflags}" = "\"'" ; then
15955 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15956 continue
15957 fi
15958 ;;
15959 esac
15960 case "$CPPFLAGS" in
15961 *$cf_add_cflags) #(vi
15962 ;;
15963 *) #(vi
15964 case $cf_add_cflags in #(vi
15965 -D*)
15966 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15967
15968 CPPFLAGS=`echo "$CPPFLAGS" | \
15969 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15970 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15971
15972 ;;
15973 esac
15974 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15975 ;;
15976 esac
15977 ;;
15978 *)
15979 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15980 ;;
15981 esac
15982 ;;
15983 yes)
15984 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15985
15986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15987
15988 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15989 && test -z "${cf_tst_cflags}" \
15990 && cf_fix_cppflags=no
15991 ;;
15992 esac
15993 done
15994
15995 if test -n "$cf_new_cflags" ; then
15996
15997 CFLAGS="$CFLAGS $cf_new_cflags"
15998 fi
15999
16000 if test -n "$cf_new_cppflags" ; then
16001
16002 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16003 fi
16004
16005 if test -n "$cf_new_extra_cppflags" ; then
16006
16007 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16008 fi
16009
16010 LIBS="$cf_pkgconfig_libs $LIBS"
16011 :
16012 else
16013 cf_pkgconfig_incs=
16014 cf_pkgconfig_libs=
16015
16016 echo "$as_me:16016: checking for pcre_compile in -lpcre" >&5
16017 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
16018 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lpcre $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line 16024 "configure"
16025 #include "confdefs.h"
16026
16027 /* Override any gcc2 internal prototype to avoid an error. */
16028 #ifdef __cplusplus
16029 extern "C"
16030 #endif
16031 /* We use char because int might match the return type of a gcc2
16032 builtin and then its argument prototype would still apply. */
16033 char pcre_compile ();
16034 int
16035 main ()
16036 {
16037 pcre_compile ();
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (eval echo "$as_me:16043: \"$ac_link\"") >&5
16044 (eval $ac_link) 2>&5
16045 ac_status=$?
16046 echo "$as_me:16046: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -s conftest$ac_exeext'
16049 { (eval echo "$as_me:16049: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:16052: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 ac_cv_lib_pcre_pcre_compile=yes
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 cat conftest.$ac_ext >&5
16058 ac_cv_lib_pcre_pcre_compile=no
16059 fi
16060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16061 LIBS=$ac_check_lib_save_LIBS
16062 fi
16063 echo "$as_me:16063: result: $ac_cv_lib_pcre_pcre_compile" >&5
16064 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
16065 if test $ac_cv_lib_pcre_pcre_compile = yes; then
16066 cat >>confdefs.h <<EOF
16067 #define HAVE_LIBPCRE 1
16068 EOF
16069
16070 LIBS="-lpcre $LIBS"
16071
16072 else
16073 { { echo "$as_me:16073: error: Cannot find PCRE library" >&5
16074 echo "$as_me: error: Cannot find PCRE library" >&2;}
16075 { (exit 1); exit 1; }; }
16076 fi
16077
16078 fi
16079
16080 cat >>confdefs.h <<\EOF
16081 #define HAVE_LIB_PCRE 1
16082 EOF
16083
16084 case $LIBS in #(vi
16085 *pcreposix*) #(vi
16086 ;;
16087 *)
16088 echo "$as_me:16088: checking for pcreposix_regcomp in -lpcreposix" >&5
16089 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
16090 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093 ac_check_lib_save_LIBS=$LIBS
16094 LIBS="-lpcreposix $LIBS"
16095 cat >conftest.$ac_ext <<_ACEOF
16096 #line 16096 "configure"
16097 #include "confdefs.h"
16098
16099 /* Override any gcc2 internal prototype to avoid an error. */
16100 #ifdef __cplusplus
16101 extern "C"
16102 #endif
16103 /* We use char because int might match the return type of a gcc2
16104 builtin and then its argument prototype would still apply. */
16105 char pcreposix_regcomp ();
16106 int
16107 main ()
16108 {
16109 pcreposix_regcomp ();
16110 ;
16111 return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (eval echo "$as_me:16115: \"$ac_link\"") >&5
16116 (eval $ac_link) 2>&5
16117 ac_status=$?
16118 echo "$as_me:16118: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:16121: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:16124: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_lib_pcreposix_pcreposix_regcomp=yes
16127 else
16128 echo "$as_me: failed program was:" >&5
16129 cat conftest.$ac_ext >&5
16130 ac_cv_lib_pcreposix_pcreposix_regcomp=no
16131 fi
16132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16133 LIBS=$ac_check_lib_save_LIBS
16134 fi
16135 echo "$as_me:16135: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
16136 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
16137 if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
16138
16139 cat >>confdefs.h <<\EOF
16140 #define HAVE_PCREPOSIX_H 1
16141 EOF
16142
16143 LIBS="-lpcreposix $LIBS"
16144 else
16145 echo "$as_me:16145: checking for regcomp in -lpcreposix" >&5
16146 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
16147 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 ac_check_lib_save_LIBS=$LIBS
16151 LIBS="-lpcreposix $LIBS"
16152 cat >conftest.$ac_ext <<_ACEOF
16153 #line 16153 "configure"
16154 #include "confdefs.h"
16155
16156 /* Override any gcc2 internal prototype to avoid an error. */
16157 #ifdef __cplusplus
16158 extern "C"
16159 #endif
16160 /* We use char because int might match the return type of a gcc2
16161 builtin and then its argument prototype would still apply. */
16162 char regcomp ();
16163 int
16164 main ()
16165 {
16166 regcomp ();
16167 ;
16168 return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (eval echo "$as_me:16172: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>&5
16174 ac_status=$?
16175 echo "$as_me:16175: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:16178: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:16181: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_lib_pcreposix_regcomp=yes
16184 else
16185 echo "$as_me: failed program was:" >&5
16186 cat conftest.$ac_ext >&5
16187 ac_cv_lib_pcreposix_regcomp=no
16188 fi
16189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16190 LIBS=$ac_check_lib_save_LIBS
16191 fi
16192 echo "$as_me:16192: result: $ac_cv_lib_pcreposix_regcomp" >&5
16193 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
16194 if test $ac_cv_lib_pcreposix_regcomp = yes; then
16195
16196 cat >>confdefs.h <<\EOF
16197 #define HAVE_PCREPOSIX_H 1
16198 EOF
16199
16200 LIBS="-lpcreposix $LIBS"
16201 else
16202 { { echo "$as_me:16202: error: Cannot find PCRE POSIX library" >&5
16203 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
16204 { (exit 1); exit 1; }; }
16205 fi
16206
16207 fi
16208
16209 ;;
16210 esac
16211 fi
16212
16213 if test "$with_pcre" = no ; then
16214
16215 cf_regex_func=no
16216
16217 cf_regex_libs="regex re"
16218 case $host_os in #(vi
16219 mingw*)
16220 cf_regex_libs="gnurx $cf_regex_libs"
16221 ;;
16222 esac
16223
16224 echo "$as_me:16224: checking for regcomp" >&5
16225 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
16226 if test "${ac_cv_func_regcomp+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229 cat >conftest.$ac_ext <<_ACEOF
16230 #line 16230 "configure"
16231 #include "confdefs.h"
16232 /* System header to define __stub macros and hopefully few prototypes,
16233 which can conflict with char regcomp (); below. */
16234 #include <assert.h>
16235 /* Override any gcc2 internal prototype to avoid an error. */
16236 #ifdef __cplusplus
16237 extern "C"
16238 #endif
16239 /* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16241 char regcomp ();
16242 char (*f) ();
16243
16244 int
16245 main ()
16246 {
16247 /* The GNU C library defines this for functions which it implements
16248 to always fail with ENOSYS. Some functions are actually named
16249 something starting with __ and the normal name is an alias. */
16250 #if defined (__stub_regcomp) || defined (__stub___regcomp)
16251 choke me
16252 #else
16253 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16254 #endif
16255
16256 ;
16257 return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (eval echo "$as_me:16261: \"$ac_link\"") >&5
16262 (eval $ac_link) 2>&5
16263 ac_status=$?
16264 echo "$as_me:16264: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -s conftest$ac_exeext'
16267 { (eval echo "$as_me:16267: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:16270: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_func_regcomp=yes
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 cat conftest.$ac_ext >&5
16276 ac_cv_func_regcomp=no
16277 fi
16278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16279 fi
16280 echo "$as_me:16280: result: $ac_cv_func_regcomp" >&5
16281 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
16282 if test $ac_cv_func_regcomp = yes; then
16283 cf_regex_func=regcomp
16284 else
16285
16286 for cf_regex_lib in $cf_regex_libs
16287 do
16288 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
16289 echo "$as_me:16289: checking for regcomp in -l$cf_regex_lib" >&5
16290 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
16291 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294 ac_check_lib_save_LIBS=$LIBS
16295 LIBS="-l$cf_regex_lib $LIBS"
16296 cat >conftest.$ac_ext <<_ACEOF
16297 #line 16297 "configure"
16298 #include "confdefs.h"
16299
16300 /* Override any gcc2 internal prototype to avoid an error. */
16301 #ifdef __cplusplus
16302 extern "C"
16303 #endif
16304 /* We use char because int might match the return type of a gcc2
16305 builtin and then its argument prototype would still apply. */
16306 char regcomp ();
16307 int
16308 main ()
16309 {
16310 regcomp ();
16311 ;
16312 return 0;
16313 }
16314 _ACEOF
16315 rm -f conftest.$ac_objext conftest$ac_exeext
16316 if { (eval echo "$as_me:16316: \"$ac_link\"") >&5
16317 (eval $ac_link) 2>&5
16318 ac_status=$?
16319 echo "$as_me:16319: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -s conftest$ac_exeext'
16322 { (eval echo "$as_me:16322: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:16325: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 eval "$as_ac_Lib=yes"
16328 else
16329 echo "$as_me: failed program was:" >&5
16330 cat conftest.$ac_ext >&5
16331 eval "$as_ac_Lib=no"
16332 fi
16333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16334 LIBS=$ac_check_lib_save_LIBS
16335 fi
16336 echo "$as_me:16336: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16337 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16338 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16339
16340 LIBS="-l$cf_regex_lib $LIBS"
16341 cf_regex_func=regcomp
16342 break
16343 fi
16344
16345 done
16346
16347 fi
16348
16349 if test "$cf_regex_func" = no ; then
16350 echo "$as_me:16350: checking for compile" >&5
16351 echo $ECHO_N "checking for compile... $ECHO_C" >&6
16352 if test "${ac_cv_func_compile+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355 cat >conftest.$ac_ext <<_ACEOF
16356 #line 16356 "configure"
16357 #include "confdefs.h"
16358 /* System header to define __stub macros and hopefully few prototypes,
16359 which can conflict with char compile (); below. */
16360 #include <assert.h>
16361 /* Override any gcc2 internal prototype to avoid an error. */
16362 #ifdef __cplusplus
16363 extern "C"
16364 #endif
16365 /* We use char because int might match the return type of a gcc2
16366 builtin and then its argument prototype would still apply. */
16367 char compile ();
16368 char (*f) ();
16369
16370 int
16371 main ()
16372 {
16373 /* The GNU C library defines this for functions which it implements
16374 to always fail with ENOSYS. Some functions are actually named
16375 something starting with __ and the normal name is an alias. */
16376 #if defined (__stub_compile) || defined (__stub___compile)
16377 choke me
16378 #else
16379 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16380 #endif
16381
16382 ;
16383 return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:16387: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16389 ac_status=$?
16390 echo "$as_me:16390: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest$ac_exeext'
16393 { (eval echo "$as_me:16393: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:16396: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_cv_func_compile=yes
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 cat conftest.$ac_ext >&5
16402 ac_cv_func_compile=no
16403 fi
16404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16405 fi
16406 echo "$as_me:16406: result: $ac_cv_func_compile" >&5
16407 echo "${ECHO_T}$ac_cv_func_compile" >&6
16408 if test $ac_cv_func_compile = yes; then
16409 cf_regex_func=compile
16410 else
16411
16412 echo "$as_me:16412: checking for compile in -lgen" >&5
16413 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
16414 if test "${ac_cv_lib_gen_compile+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 ac_check_lib_save_LIBS=$LIBS
16418 LIBS="-lgen $LIBS"
16419 cat >conftest.$ac_ext <<_ACEOF
16420 #line 16420 "configure"
16421 #include "confdefs.h"
16422
16423 /* Override any gcc2 internal prototype to avoid an error. */
16424 #ifdef __cplusplus
16425 extern "C"
16426 #endif
16427 /* We use char because int might match the return type of a gcc2
16428 builtin and then its argument prototype would still apply. */
16429 char compile ();
16430 int
16431 main ()
16432 {
16433 compile ();
16434 ;
16435 return 0;
16436 }
16437 _ACEOF
16438 rm -f conftest.$ac_objext conftest$ac_exeext
16439 if { (eval echo "$as_me:16439: \"$ac_link\"") >&5
16440 (eval $ac_link) 2>&5
16441 ac_status=$?
16442 echo "$as_me:16442: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:16445: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:16448: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_lib_gen_compile=yes
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 cat conftest.$ac_ext >&5
16454 ac_cv_lib_gen_compile=no
16455 fi
16456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16457 LIBS=$ac_check_lib_save_LIBS
16458 fi
16459 echo "$as_me:16459: result: $ac_cv_lib_gen_compile" >&5
16460 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
16461 if test $ac_cv_lib_gen_compile = yes; then
16462
16463 LIBS="-lgen $LIBS"
16464 cf_regex_func=compile
16465 fi
16466
16467 fi
16468
16469 fi
16470
16471 if test "$cf_regex_func" = no ; then
16472 { echo "$as_me:16472: WARNING: cannot find regular expression library" >&5
16473 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
16474 fi
16475
16476 echo "$as_me:16476: checking for regular-expression headers" >&5
16477 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
16478 if test "${cf_cv_regex_hdrs+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481
16482 cf_cv_regex_hdrs=no
16483 case $cf_regex_func in #(vi
16484 compile) #(vi
16485 for cf_regex_hdr in regexp.h regexpr.h
16486 do
16487 cat >conftest.$ac_ext <<_ACEOF
16488 #line 16488 "configure"
16489 #include "confdefs.h"
16490 #include <$cf_regex_hdr>
16491 int
16492 main ()
16493 {
16494
16495 char *p = compile("", "", "", 0);
16496 int x = step("", "");
16497
16498 ;
16499 return 0;
16500 }
16501 _ACEOF
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (eval echo "$as_me:16503: \"$ac_link\"") >&5
16504 (eval $ac_link) 2>&5
16505 ac_status=$?
16506 echo "$as_me:16506: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -s conftest$ac_exeext'
16509 { (eval echo "$as_me:16509: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:16512: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514
16515 cf_cv_regex_hdrs=$cf_regex_hdr
16516 break
16517
16518 else
16519 echo "$as_me: failed program was:" >&5
16520 cat conftest.$ac_ext >&5
16521 fi
16522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16523 done
16524 ;;
16525 *)
16526 for cf_regex_hdr in regex.h
16527 do
16528 cat >conftest.$ac_ext <<_ACEOF
16529 #line 16529 "configure"
16530 #include "confdefs.h"
16531 #include <sys/types.h>
16532 #include <$cf_regex_hdr>
16533 int
16534 main ()
16535 {
16536
16537 regex_t *p;
16538 int x = regcomp(p, "", 0);
16539 int y = regexec(p, "", 0, 0, 0);
16540 regfree(p);
16541
16542 ;
16543 return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext conftest$ac_exeext
16547 if { (eval echo "$as_me:16547: \"$ac_link\"") >&5
16548 (eval $ac_link) 2>&5
16549 ac_status=$?
16550 echo "$as_me:16550: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -s conftest$ac_exeext'
16553 { (eval echo "$as_me:16553: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:16556: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558
16559 cf_cv_regex_hdrs=$cf_regex_hdr
16560 break
16561
16562 else
16563 echo "$as_me: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16565 fi
16566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16567 done
16568 ;;
16569 esac
16570
16571 fi
16572 echo "$as_me:16572: result: $cf_cv_regex_hdrs" >&5
16573 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
16574
16575 case $cf_cv_regex_hdrs in #(vi
16576 no) { echo "$as_me:16576: WARNING: no regular expression header found" >&5
16577 echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
16578 regex.h)
16579 cat >>confdefs.h <<\EOF
16580 #define HAVE_REGEX_H_FUNCS 1
16581 EOF
16582 ;; #(vi
16583 regexp.h)
16584 cat >>confdefs.h <<\EOF
16585 #define HAVE_REGEXP_H_FUNCS 1
16586 EOF
16587 ;; #(vi
16588 regexpr.h)
16589 cat >>confdefs.h <<\EOF
16590 #define HAVE_REGEXPR_H_FUNCS 1
16591 EOF
16592 ;;
16593 esac
16594
16595 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
16596 { { echo "$as_me:16596: error: Only POSIX or PCRE regular expressions are supported" >&5
16597 echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
16598 { (exit 1); exit 1; }; }
16599 fi
16600 fi
16601
16602 cat >>confdefs.h <<\EOF
16603 #define OPT_SELECT_REGEX 1
16604 EOF
16605
16606 fi
16607
16608 echo "$as_me:16608: checking if you want support for right-scrollbar" >&5
16609 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
16610
16611 # Check whether --enable-rightbar or --disable-rightbar was given.
16612 if test "${enable_rightbar+set}" = set; then
16613 enableval="$enable_rightbar"
16614 test "$enableval" != no && enableval=yes
16615 if test "$enableval" != "yes" ; then
16616 enable_rightbar=no
16617 else
16618 enable_rightbar=yes
16619 fi
16620 else
16621 enableval=yes
16622 enable_rightbar=yes
16623
16624 fi;
16625 echo "$as_me:16625: result: $enable_rightbar" >&5
16626 echo "${ECHO_T}$enable_rightbar" >&6
16627 if test "$enable_rightbar" = yes ; then
16628
16629 cat >>confdefs.h <<\EOF
16630 #define SCROLLBAR_RIGHT 1
16631 EOF
16632
16633 fi
16634
16635 echo "$as_me:16635: checking if you want check for redundant name-change" >&5
16636 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
16637
16638 # Check whether --enable-samename or --disable-samename was given.
16639 if test "${enable_samename+set}" = set; then
16640 enableval="$enable_samename"
16641 test "$enableval" != no && enableval=yes
16642 if test "$enableval" != "yes" ; then
16643 enable_samename=no
16644 else
16645 enable_samename=yes
16646 fi
16647 else
16648 enableval=yes
16649 enable_samename=yes
16650
16651 fi;
16652 echo "$as_me:16652: result: $enable_samename" >&5
16653 echo "${ECHO_T}$enable_samename" >&6
16654 test "$enable_samename" = no &&
16655 cat >>confdefs.h <<\EOF
16656 #define OPT_SAME_NAME 0
16657 EOF
16658
16659 echo "$as_me:16659: checking if you want support for selection-actions" >&5
16660 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6
16661
16662 # Check whether --enable-selection-ops or --disable-selection-ops was given.
16663 if test "${enable_selection_ops+set}" = set; then
16664 enableval="$enable_selection_ops"
16665 test "$enableval" != no && enableval=yes
16666 if test "$enableval" != "yes" ; then
16667 enable_selection_ops=no
16668 else
16669 enable_selection_ops=yes
16670 fi
16671 else
16672 enableval=yes
16673 enable_selection_ops=yes
16674
16675 fi;
16676 echo "$as_me:16676: result: $enable_selection_ops" >&5
16677 echo "${ECHO_T}$enable_selection_ops" >&6
16678 test "$enable_selection_ops" = no &&
16679 cat >>confdefs.h <<\EOF
16680 #define OPT_SELECTION_OPS 0
16681 EOF
16682
16683 echo "$as_me:16683: checking if you want support for session management" >&5
16684 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
16685
16686 # Check whether --enable-session-mgt or --disable-session-mgt was given.
16687 if test "${enable_session_mgt+set}" = set; then
16688 enableval="$enable_session_mgt"
16689 test "$enableval" != no && enableval=yes
16690 if test "$enableval" != "yes" ; then
16691 enable_session_mgt=no
16692 else
16693 enable_session_mgt=yes
16694 fi
16695 else
16696 enableval=yes
16697 enable_session_mgt=yes
16698
16699 fi;
16700 echo "$as_me:16700: result: $enable_session_mgt" >&5
16701 echo "${ECHO_T}$enable_session_mgt" >&6
16702 test "$enable_session_mgt" = no &&
16703 cat >>confdefs.h <<\EOF
16704 #define OPT_SESSION_MGT 0
16705 EOF
16706
16707 echo "$as_me:16707: checking if you want to use termcap function-keys" >&5
16708 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
16709
16710 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
16711 if test "${enable_tcap_fkeys+set}" = set; then
16712 enableval="$enable_tcap_fkeys"
16713 test "$enableval" != no && enableval=yes
16714 if test "$enableval" != "yes" ; then
16715 enable_tcap_fkeys=no
16716 else
16717 enable_tcap_fkeys=yes
16718 fi
16719 else
16720 enableval=yes
16721 enable_tcap_fkeys=yes
16722
16723 fi;
16724 echo "$as_me:16724: result: $enable_tcap_fkeys" >&5
16725 echo "${ECHO_T}$enable_tcap_fkeys" >&6
16726 test "$enable_tcap_fkeys" = yes &&
16727 cat >>confdefs.h <<\EOF
16728 #define OPT_TCAP_FKEYS 1
16729 EOF
16730
16731 echo "$as_me:16731: checking if you want to use termcap-query/report" >&5
16732 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
16733
16734 # Check whether --enable-tcap-query or --disable-tcap-query was given.
16735 if test "${enable_tcap_query+set}" = set; then
16736 enableval="$enable_tcap_query"
16737 test "$enableval" != no && enableval=yes
16738 if test "$enableval" != "yes" ; then
16739 enable_tcap_query=no
16740 else
16741 enable_tcap_query=yes
16742 fi
16743 else
16744 enableval=yes
16745 enable_tcap_query=yes
16746
16747 fi;
16748 echo "$as_me:16748: result: $enable_tcap_query" >&5
16749 echo "${ECHO_T}$enable_tcap_query" >&6
16750 test "$enable_tcap_query" = yes &&
16751 cat >>confdefs.h <<\EOF
16752 #define OPT_TCAP_QUERY 1
16753 EOF
16754
16755 echo "$as_me:16755: checking if you want support for tek4014" >&5
16756 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
16757
16758 # Check whether --enable-tek4014 or --disable-tek4014 was given.
16759 if test "${enable_tek4014+set}" = set; then
16760 enableval="$enable_tek4014"
16761 test "$enableval" != no && enableval=yes
16762 if test "$enableval" != "yes" ; then
16763 enable_tek4014=no
16764 else
16765 enable_tek4014=yes
16766 fi
16767 else
16768 enableval=yes
16769 enable_tek4014=yes
16770
16771 fi;
16772 echo "$as_me:16772: result: $enable_tek4014" >&5
16773 echo "${ECHO_T}$enable_tek4014" >&6
16774 if test "$enable_tek4014" = no ; then
16775
16776 cat >>confdefs.h <<\EOF
16777 #define OPT_TEK4014 0
16778 EOF
16779
16780 else
16781 EXTRAHDRS="$EXTRAHDRS Tekparse.h"
16782 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
16783 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
16784 fi
16785
16786 echo "$as_me:16786: checking if you want pulldown menus with a toolbar" >&5
16787 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
16788
16789 # Check whether --enable-toolbar or --disable-toolbar was given.
16790 if test "${enable_toolbar+set}" = set; then
16791 enableval="$enable_toolbar"
16792 test "$enableval" != yes && enableval=no
16793 if test "$enableval" != "no" ; then
16794 enable_toolbar=yes
16795 else
16796 enable_toolbar=no
16797 fi
16798 else
16799 enableval=no
16800 enable_toolbar=no
16801
16802 fi;
16803 echo "$as_me:16803: result: $enable_toolbar" >&5
16804 echo "${ECHO_T}$enable_toolbar" >&6
16805 if test "$enable_toolbar" = yes ; then
16806
16807 cat >>confdefs.h <<\EOF
16808 #define OPT_TOOLBAR 1
16809 EOF
16810
16811 fi
16812
16813 echo "$as_me:16813: checking if you want VT52 emulation" >&5
16814 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
16815
16816 # Check whether --enable-vt52 or --disable-vt52 was given.
16817 if test "${enable_vt52+set}" = set; then
16818 enableval="$enable_vt52"
16819 test "$enableval" != no && enableval=yes
16820 if test "$enableval" != "yes" ; then
16821 enable_vt52=no
16822 else
16823 enable_vt52=yes
16824 fi
16825 else
16826 enableval=yes
16827 enable_vt52=yes
16828
16829 fi;
16830 echo "$as_me:16830: result: $enable_vt52" >&5
16831 echo "${ECHO_T}$enable_vt52" >&6
16832 test "$enable_vt52" = no &&
16833 cat >>confdefs.h <<\EOF
16834 #define OPT_VT52_MODE 0
16835 EOF
16836
16837 echo "$as_me:16837: checking if you want wide-attribute support" >&5
16838 echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6
16839
16840 # Check whether --enable-wide-attrs or --disable-wide-attrs was given.
16841 if test "${enable_wide_attrs+set}" = set; then
16842 enableval="$enable_wide_attrs"
16843 test "$enableval" != no && enableval=yes
16844 if test "$enableval" != "yes" ; then
16845 enable_wattr=no
16846 else
16847 enable_wattr=yes
16848 fi
16849 else
16850 enableval=yes
16851 enable_wattr=yes
16852
16853 fi;
16854 echo "$as_me:16854: result: $enable_wattr" >&5
16855 echo "${ECHO_T}$enable_wattr" >&6
16856
16857 echo "$as_me:16857: checking if you want wide-character support" >&5
16858 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
16859
16860 # Check whether --enable-wide-chars or --disable-wide-chars was given.
16861 if test "${enable_wide_chars+set}" = set; then
16862 enableval="$enable_wide_chars"
16863 test "$enableval" != no && enableval=yes
16864 if test "$enableval" != "yes" ; then
16865 enable_wchar=no
16866 else
16867 enable_wchar=yes
16868 fi
16869 else
16870 enableval=yes
16871 enable_wchar=yes
16872
16873 fi;
16874 echo "$as_me:16874: result: $enable_wchar" >&5
16875 echo "${ECHO_T}$enable_wchar" >&6
16876 test "$enable_wattr" = no &&
16877 cat >>confdefs.h <<\EOF
16878 #define OPT_WIDE_ATTRS 0
16879 EOF
16880
16881 echo "$as_me:16881: checking if you want only 16-bit character support" >&5
16882 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
16883
16884 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
16885 if test "${enable_16bit_chars+set}" = set; then
16886 enableval="$enable_16bit_chars"
16887 test "$enableval" != yes && enableval=no
16888 if test "$enableval" != "no" ; then
16889 enable_16bit_chars=yes
16890 else
16891 enable_16bit_chars=no
16892 fi
16893 else
16894 enableval=no
16895 enable_16bit_chars=no
16896
16897 fi;
16898 echo "$as_me:16898: result: $enable_16bit_chars" >&5
16899 echo "${ECHO_T}$enable_16bit_chars" >&6
16900
16901 if test "$enable_16bit_chars" = yes ; then
16902
16903 cat >>confdefs.h <<\EOF
16904 #define OPT_WIDER_ICHAR 0
16905 EOF
16906
16907 enable_wchar=yes
16908 fi
16909
16910 if test "$enable_wchar" = yes ; then
16911
16912 echo "$as_me:16912: checking if you want to use mini-luit/Latin9 built-in support" >&5
16913 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
16914
16915 # Check whether --enable-mini-luit or --disable-mini-luit was given.
16916 if test "${enable_mini_luit+set}" = set; then
16917 enableval="$enable_mini_luit"
16918 test "$enableval" != yes && enableval=no
16919 if test "$enableval" != "no" ; then
16920 enable_mini_luit=yes
16921 else
16922 enable_mini_luit=no
16923 fi
16924 else
16925 enableval=no
16926 enable_mini_luit=no
16927
16928 fi;
16929 echo "$as_me:16929: result: $enable_mini_luit" >&5
16930 echo "${ECHO_T}$enable_mini_luit" >&6
16931 if test "$enable_mini_luit" = yes ; then
16932
16933 cat >>confdefs.h <<\EOF
16934 #define OPT_MINI_LUIT 1
16935 EOF
16936
16937 fi
16938
16939 echo "$as_me:16939: checking if you want to use luit" >&5
16940 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
16941
16942 # Check whether --enable-luit or --disable-luit was given.
16943 if test "${enable_luit+set}" = set; then
16944 enableval="$enable_luit"
16945 test "$enableval" != no && enableval=yes
16946 if test "$enableval" != "yes" ; then
16947 enable_luit=no
16948 else
16949 enable_luit=yes
16950 fi
16951 else
16952 enableval=yes
16953 enable_luit=yes
16954
16955 fi;
16956 echo "$as_me:16956: result: $enable_luit" >&5
16957 echo "${ECHO_T}$enable_luit" >&6
16958 if test "$enable_luit" = yes ; then
16959
16960 cat >>confdefs.h <<\EOF
16961 #define OPT_LUIT_PROG 1
16962 EOF
16963
16964 test -z "$LUIT" && LUIT=xterm-filter
16965 for ac_prog in $LUIT xterm-filter bluit luit
16966 do
16967 # Extract the first word of "$ac_prog", so it can be a program name with args.
16968 set dummy $ac_prog; ac_word=$2
16969 echo "$as_me:16969: checking for $ac_word" >&5
16970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16971 if test "${ac_cv_path_LUIT+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974 case $LUIT in
16975 [\\/]* | ?:[\\/]*)
16976 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
16977 ;;
16978 *)
16979 ac_save_IFS=$IFS; IFS=$ac_path_separator
16980 ac_dummy="$PATH"
16981 for ac_dir in $ac_dummy; do
16982 IFS=$ac_save_IFS
16983 test -z "$ac_dir" && ac_dir=.
16984 if $as_executable_p "$ac_dir/$ac_word"; then
16985 ac_cv_path_LUIT="$ac_dir/$ac_word"
16986 echo "$as_me:16986: found $ac_dir/$ac_word" >&5
16987 break
16988 fi
16989 done
16990
16991 ;;
16992 esac
16993 fi
16994 LUIT=$ac_cv_path_LUIT
16995
16996 if test -n "$LUIT"; then
16997 echo "$as_me:16997: result: $LUIT" >&5
16998 echo "${ECHO_T}$LUIT" >&6
16999 else
17000 echo "$as_me:17000: result: no" >&5
17001 echo "${ECHO_T}no" >&6
17002 fi
17003
17004 test -n "$LUIT" && break
17005 done
17006 test -n "$LUIT" || LUIT="$LUIT"
17007
17008 cf_path_prog=""
17009 cf_path_args=""
17010 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
17011 for cf_temp in $ac_cv_path_LUIT
17012 do
17013 if test -z "$cf_path_prog" ; then
17014 if test "$with_full_paths" = yes ; then
17015
17016 if test "x$prefix" != xNONE; then
17017 cf_path_syntax="$prefix"
17018 else
17019 cf_path_syntax="$ac_default_prefix"
17020 fi
17021
17022 case ".$cf_temp" in #(vi
17023 .\$\(*\)*|.\'*\'*) #(vi
17024 ;;
17025 ..|./*|.\\*) #(vi
17026 ;;
17027 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
17028 ;;
17029 .\${*prefix}*|.\${*dir}*) #(vi
17030 eval cf_temp="$cf_temp"
17031 case ".$cf_temp" in #(vi
17032 .NONE/*)
17033 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
17034 ;;
17035 esac
17036 ;; #(vi
17037 .no|.NONE/*)
17038 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
17039 ;;
17040 *)
17041 break
17042 ;;
17043 esac
17044
17045 cf_path_prog="$cf_temp"
17046 else
17047 cf_path_prog="`basename $cf_temp`"
17048 fi
17049 elif test -z "$cf_path_args" ; then
17050 cf_path_args="$cf_temp"
17051 else
17052 cf_path_args="$cf_path_args $cf_temp"
17053 fi
17054 done
17055 IFS="$cf_save_ifs"
17056
17057 if test -n "$cf_path_prog" ; then
17058
17059 echo "${as_me:-configure}:17059: testing defining path for ${cf_path_prog} ..." 1>&5
17060
17061 cat >>confdefs.h <<EOF
17062 #define LUIT_PATH "$cf_path_prog"
17063 EOF
17064
17065 test -n "$cf_path_args" &&
17066 cat >>confdefs.h <<EOF
17067 #define LUIT_ARGS "$cf_path_args"
17068 EOF
17069
17070 fi
17071
17072 fi
17073
17074 cat >>confdefs.h <<\EOF
17075 #define OPT_WIDE_CHARS 1
17076 EOF
17077
17078 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
17079 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
17080 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
17081 fi
17082
17083 echo "$as_me:17083: checking if you want dynamic-abbreviation support" >&5
17084 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
17085
17086 # Check whether --enable-dabbrev or --disable-dabbrev was given.
17087 if test "${enable_dabbrev+set}" = set; then
17088 enableval="$enable_dabbrev"
17089 test "$enableval" != yes && enableval=no
17090 if test "$enableval" != "no" ; then
17091 enable_dabbrev=yes
17092 else
17093 enable_dabbrev=no
17094 fi
17095 else
17096 enableval=no
17097 enable_dabbrev=no
17098
17099 fi;
17100 echo "$as_me:17100: result: $enable_dabbrev" >&5
17101 echo "${ECHO_T}$enable_dabbrev" >&6
17102 if test "$enable_dabbrev" = yes ; then
17103
17104 cat >>confdefs.h <<\EOF
17105 #define OPT_DABBREV 1
17106 EOF
17107
17108 fi
17109
17110 echo "$as_me:17110: checking if you want DECterm Locator support" >&5
17111 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
17112
17113 # Check whether --enable-dec-locator or --disable-dec-locator was given.
17114 if test "${enable_dec_locator+set}" = set; then
17115 enableval="$enable_dec_locator"
17116 test "$enableval" != yes && enableval=no
17117 if test "$enableval" != "no" ; then
17118 enable_dec_locator=yes
17119 else
17120 enable_dec_locator=no
17121 fi
17122 else
17123 enableval=no
17124 enable_dec_locator=no
17125
17126 fi;
17127 echo "$as_me:17127: result: $enable_dec_locator" >&5
17128 echo "${ECHO_T}$enable_dec_locator" >&6
17129 if test "$enable_dec_locator" = yes ; then
17130
17131 cat >>confdefs.h <<\EOF
17132 #define OPT_DEC_LOCATOR 1
17133 EOF
17134
17135 fi
17136
17137 echo "$as_me:17137: checking if you want ReGIS graphics support" >&5
17138 echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6
17139
17140 # Check whether --enable-regis-graphics or --disable-regis-graphics was given.
17141 if test "${enable_regis_graphics+set}" = set; then
17142 enableval="$enable_regis_graphics"
17143 test "$enableval" != yes && enableval=no
17144 if test "$enableval" != "no" ; then
17145 enable_regis_graphics=yes
17146 else
17147 enable_regis_graphics=no
17148 fi
17149 else
17150 enableval=no
17151 enable_regis_graphics=no
17152
17153 fi;
17154 echo "$as_me:17154: result: $enable_regis_graphics" >&5
17155 echo "${ECHO_T}$enable_regis_graphics" >&6
17156 if test "$enable_regis_graphics" = yes ; then
17157
17158 cat >>confdefs.h <<\EOF
17159 #define OPT_REGIS_GRAPHICS 1
17160 EOF
17161
17162 EXTRAHDRS="$EXTRAHDRS graphics_regis.h"
17163 EXTRASRCS="$EXTRASRCS graphics_regis.c"
17164 EXTRAOBJS="$EXTRAOBJS graphics_regis.o"
17165
17166 echo "$as_me:17166: checking if -lm needed for math functions" >&5
17167 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
17168 if test "${cf_cv_need_libm+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171
17172 cat >conftest.$ac_ext <<_ACEOF
17173 #line 17173 "configure"
17174 #include "confdefs.h"
17175
17176 #include <stdio.h>
17177 #include <math.h>
17178
17179 int
17180 main ()
17181 {
17182 double x = rand(); printf("result = %g\n", sin(x))
17183 ;
17184 return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (eval echo "$as_me:17188: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>&5
17190 ac_status=$?
17191 echo "$as_me:17191: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -s conftest$ac_exeext'
17194 { (eval echo "$as_me:17194: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:17197: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 cf_cv_need_libm=no
17200 else
17201 echo "$as_me: failed program was:" >&5
17202 cat conftest.$ac_ext >&5
17203 cf_cv_need_libm=yes
17204 fi
17205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17206 fi
17207 echo "$as_me:17207: result: $cf_cv_need_libm" >&5
17208 echo "${ECHO_T}$cf_cv_need_libm" >&6
17209 if test "$cf_cv_need_libm" = yes
17210 then
17211
17212 LIBS="-lm $LIBS"
17213
17214 fi
17215
17216 fi
17217
17218 echo "$as_me:17218: checking if you want sixel graphics support" >&5
17219 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6
17220
17221 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given.
17222 if test "${enable_sixel_graphics+set}" = set; then
17223 enableval="$enable_sixel_graphics"
17224 test "$enableval" != yes && enableval=no
17225 if test "$enableval" != "no" ; then
17226 enable_sixel_graphics=yes
17227 else
17228 enable_sixel_graphics=no
17229 fi
17230 else
17231 enableval=no
17232 enable_sixel_graphics=no
17233
17234 fi;
17235 echo "$as_me:17235: result: $enable_sixel_graphics" >&5
17236 echo "${ECHO_T}$enable_sixel_graphics" >&6
17237 if test "$enable_sixel_graphics" = yes ; then
17238
17239 cat >>confdefs.h <<\EOF
17240 #define OPT_SIXEL_GRAPHICS 1
17241 EOF
17242
17243 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h"
17244 EXTRASRCS="$EXTRASRCS graphics_sixel.c"
17245 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o"
17246 fi
17247
17248 if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then
17249
17250 cat >>confdefs.h <<\EOF
17251 #define OPT_GRAPHICS 1
17252 EOF
17253
17254 EXTRAHDRS="$EXTRAHDRS graphics.h"
17255 EXTRASRCS="$EXTRASRCS graphics.c"
17256 EXTRAOBJS="$EXTRAOBJS graphics.o"
17257 fi
17258
17259 echo "$as_me:17259: checking if you want VT420 rectangle support" >&5
17260 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
17261
17262 # Check whether --enable-rectangles or --disable-rectangles was given.
17263 if test "${enable_rectangles+set}" = set; then
17264 enableval="$enable_rectangles"
17265 test "$enableval" != no && enableval=yes
17266 if test "$enableval" != "yes" ; then
17267 enable_rectangles=no
17268 else
17269 enable_rectangles=yes
17270 fi
17271 else
17272 enableval=yes
17273 enable_rectangles=yes
17274
17275 fi;
17276 echo "$as_me:17276: result: $enable_rectangles" >&5
17277 echo "${ECHO_T}$enable_rectangles" >&6
17278 if test "$enable_rectangles" = yes ; then
17279
17280 cat >>confdefs.h <<\EOF
17281 #define OPT_DEC_RECTOPS 1
17282 EOF
17283
17284 fi
17285
17286 echo "$as_me:17286: checking if you want -ziconbeep option" >&5
17287 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
17288
17289 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
17290 if test "${enable_ziconbeep+set}" = set; then
17291 enableval="$enable_ziconbeep"
17292 test "$enableval" != no && enableval=yes
17293 if test "$enableval" != "yes" ; then
17294 enable_ziconbeep=no
17295 else
17296 enable_ziconbeep=yes
17297 fi
17298 else
17299 enableval=yes
17300 enable_ziconbeep=yes
17301
17302 fi;
17303 echo "$as_me:17303: result: $enable_ziconbeep" >&5
17304 echo "${ECHO_T}$enable_ziconbeep" >&6
17305 test "$enable_ziconbeep" = no &&
17306 cat >>confdefs.h <<\EOF
17307 #define OPT_ZICONBEEP 0
17308 EOF
17309
17310 ###############################################################################
17311
17312 echo "$as_me:17312: checking if you want debugging traces" >&5
17313 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
17314
17315 # Check whether --enable-trace or --disable-trace was given.
17316 if test "${enable_trace+set}" = set; then
17317 enableval="$enable_trace"
17318 test "$enableval" != yes && enableval=no
17319 if test "$enableval" != "no" ; then
17320 enable_trace=yes
17321 else
17322 enable_trace=no
17323 fi
17324 else
17325 enableval=no
17326 enable_trace=no
17327
17328 fi;
17329 echo "$as_me:17329: result: $enable_trace" >&5
17330 echo "${ECHO_T}$enable_trace" >&6
17331 if test "$enable_trace" = yes ; then
17332
17333 cat >>confdefs.h <<\EOF
17334 #define OPT_TRACE 1
17335 EOF
17336
17337 EXTRASRCS="$EXTRASRCS trace.c"
17338 EXTRAOBJS="$EXTRAOBJS trace.o"
17339 fi
17340
17341 echo "$as_me:17341: checking if you want to use dmalloc for testing" >&5
17342 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17343
17344 # Check whether --with-dmalloc or --without-dmalloc was given.
17345 if test "${with_dmalloc+set}" = set; then
17346 withval="$with_dmalloc"
17347
17348 cat >>confdefs.h <<EOF
17349 #define USE_DMALLOC 1
17350 EOF
17351
17352 : ${with_cflags:=-g}
17353 : ${with_no_leaks:=yes}
17354 with_dmalloc=yes
17355 else
17356 with_dmalloc=
17357 fi;
17358 echo "$as_me:17358: result: ${with_dmalloc:-no}" >&5
17359 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17360
17361 case .$with_cflags in #(vi
17362 .*-g*)
17363 case .$CFLAGS in #(vi
17364 .*-g*) #(vi
17365 ;;
17366 *)
17367
17368 cf_fix_cppflags=no
17369 cf_new_cflags=
17370 cf_new_cppflags=
17371 cf_new_extra_cppflags=
17372
17373 for cf_add_cflags in -g
17374 do
17375 case $cf_fix_cppflags in
17376 no)
17377 case $cf_add_cflags in #(vi
17378 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17379 case $cf_add_cflags in
17380 -D*)
17381 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17382
17383 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17384 && test -z "${cf_tst_cflags}" \
17385 && cf_fix_cppflags=yes
17386
17387 if test $cf_fix_cppflags = yes ; then
17388 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17389 continue
17390 elif test "${cf_tst_cflags}" = "\"'" ; then
17391 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17392 continue
17393 fi
17394 ;;
17395 esac
17396 case "$CPPFLAGS" in
17397 *$cf_add_cflags) #(vi
17398 ;;
17399 *) #(vi
17400 case $cf_add_cflags in #(vi
17401 -D*)
17402 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17403
17404 CPPFLAGS=`echo "$CPPFLAGS" | \
17405 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17406 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17407
17408 ;;
17409 esac
17410 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17411 ;;
17412 esac
17413 ;;
17414 *)
17415 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17416 ;;
17417 esac
17418 ;;
17419 yes)
17420 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17421
17422 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17423
17424 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17425 && test -z "${cf_tst_cflags}" \
17426 && cf_fix_cppflags=no
17427 ;;
17428 esac
17429 done
17430
17431 if test -n "$cf_new_cflags" ; then
17432
17433 CFLAGS="$CFLAGS $cf_new_cflags"
17434 fi
17435
17436 if test -n "$cf_new_cppflags" ; then
17437
17438 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17439 fi
17440
17441 if test -n "$cf_new_extra_cppflags" ; then
17442
17443 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17444 fi
17445
17446 ;;
17447 esac
17448 ;;
17449 esac
17450
17451 if test "$with_dmalloc" = yes ; then
17452 echo "$as_me:17452: checking for dmalloc.h" >&5
17453 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17454 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457 cat >conftest.$ac_ext <<_ACEOF
17458 #line 17458 "configure"
17459 #include "confdefs.h"
17460 #include <dmalloc.h>
17461 _ACEOF
17462 if { (eval echo "$as_me:17462: \"$ac_cpp conftest.$ac_ext\"") >&5
17463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17464 ac_status=$?
17465 egrep -v '^ *\+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:17468: \$? = $ac_status" >&5
17469 (exit $ac_status); } >/dev/null; then
17470 if test -s conftest.err; then
17471 ac_cpp_err=$ac_c_preproc_warn_flag
17472 else
17473 ac_cpp_err=
17474 fi
17475 else
17476 ac_cpp_err=yes
17477 fi
17478 if test -z "$ac_cpp_err"; then
17479 ac_cv_header_dmalloc_h=yes
17480 else
17481 echo "$as_me: failed program was:" >&5
17482 cat conftest.$ac_ext >&5
17483 ac_cv_header_dmalloc_h=no
17484 fi
17485 rm -f conftest.err conftest.$ac_ext
17486 fi
17487 echo "$as_me:17487: result: $ac_cv_header_dmalloc_h" >&5
17488 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17489 if test $ac_cv_header_dmalloc_h = yes; then
17490
17491 echo "$as_me:17491: checking for dmalloc_debug in -ldmalloc" >&5
17492 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17493 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496 ac_check_lib_save_LIBS=$LIBS
17497 LIBS="-ldmalloc $LIBS"
17498 cat >conftest.$ac_ext <<_ACEOF
17499 #line 17499 "configure"
17500 #include "confdefs.h"
17501
17502 /* Override any gcc2 internal prototype to avoid an error. */
17503 #ifdef __cplusplus
17504 extern "C"
17505 #endif
17506 /* We use char because int might match the return type of a gcc2
17507 builtin and then its argument prototype would still apply. */
17508 char dmalloc_debug ();
17509 int
17510 main ()
17511 {
17512 dmalloc_debug ();
17513 ;
17514 return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:17518: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>&5
17520 ac_status=$?
17521 echo "$as_me:17521: \$? = $ac_status" >&5
17522 (exit $ac_status); } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (eval echo "$as_me:17524: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 echo "$as_me:17527: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 ac_cv_lib_dmalloc_dmalloc_debug=yes
17530 else
17531 echo "$as_me: failed program was:" >&5
17532 cat conftest.$ac_ext >&5
17533 ac_cv_lib_dmalloc_dmalloc_debug=no
17534 fi
17535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17536 LIBS=$ac_check_lib_save_LIBS
17537 fi
17538 echo "$as_me:17538: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17539 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17540 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17541 cat >>confdefs.h <<EOF
17542 #define HAVE_LIBDMALLOC 1
17543 EOF
17544
17545 LIBS="-ldmalloc $LIBS"
17546
17547 fi
17548
17549 fi
17550
17551 fi
17552
17553 echo "$as_me:17553: checking if you want to use dbmalloc for testing" >&5
17554 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17555
17556 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17557 if test "${with_dbmalloc+set}" = set; then
17558 withval="$with_dbmalloc"
17559
17560 cat >>confdefs.h <<EOF
17561 #define USE_DBMALLOC 1
17562 EOF
17563
17564 : ${with_cflags:=-g}
17565 : ${with_no_leaks:=yes}
17566 with_dbmalloc=yes
17567 else
17568 with_dbmalloc=
17569 fi;
17570 echo "$as_me:17570: result: ${with_dbmalloc:-no}" >&5
17571 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17572
17573 case .$with_cflags in #(vi
17574 .*-g*)
17575 case .$CFLAGS in #(vi
17576 .*-g*) #(vi
17577 ;;
17578 *)
17579
17580 cf_fix_cppflags=no
17581 cf_new_cflags=
17582 cf_new_cppflags=
17583 cf_new_extra_cppflags=
17584
17585 for cf_add_cflags in -g
17586 do
17587 case $cf_fix_cppflags in
17588 no)
17589 case $cf_add_cflags in #(vi
17590 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17591 case $cf_add_cflags in
17592 -D*)
17593 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17594
17595 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17596 && test -z "${cf_tst_cflags}" \
17597 && cf_fix_cppflags=yes
17598
17599 if test $cf_fix_cppflags = yes ; then
17600 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17601 continue
17602 elif test "${cf_tst_cflags}" = "\"'" ; then
17603 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17604 continue
17605 fi
17606 ;;
17607 esac
17608 case "$CPPFLAGS" in
17609 *$cf_add_cflags) #(vi
17610 ;;
17611 *) #(vi
17612 case $cf_add_cflags in #(vi
17613 -D*)
17614 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17615
17616 CPPFLAGS=`echo "$CPPFLAGS" | \
17617 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17618 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17619
17620 ;;
17621 esac
17622 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17623 ;;
17624 esac
17625 ;;
17626 *)
17627 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17628 ;;
17629 esac
17630 ;;
17631 yes)
17632 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17633
17634 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17635
17636 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17637 && test -z "${cf_tst_cflags}" \
17638 && cf_fix_cppflags=no
17639 ;;
17640 esac
17641 done
17642
17643 if test -n "$cf_new_cflags" ; then
17644
17645 CFLAGS="$CFLAGS $cf_new_cflags"
17646 fi
17647
17648 if test -n "$cf_new_cppflags" ; then
17649
17650 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17651 fi
17652
17653 if test -n "$cf_new_extra_cppflags" ; then
17654
17655 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17656 fi
17657
17658 ;;
17659 esac
17660 ;;
17661 esac
17662
17663 if test "$with_dbmalloc" = yes ; then
17664 echo "$as_me:17664: checking for dbmalloc.h" >&5
17665 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17666 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669 cat >conftest.$ac_ext <<_ACEOF
17670 #line 17670 "configure"
17671 #include "confdefs.h"
17672 #include <dbmalloc.h>
17673 _ACEOF
17674 if { (eval echo "$as_me:17674: \"$ac_cpp conftest.$ac_ext\"") >&5
17675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17676 ac_status=$?
17677 egrep -v '^ *\+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 echo "$as_me:17680: \$? = $ac_status" >&5
17681 (exit $ac_status); } >/dev/null; then
17682 if test -s conftest.err; then
17683 ac_cpp_err=$ac_c_preproc_warn_flag
17684 else
17685 ac_cpp_err=
17686 fi
17687 else
17688 ac_cpp_err=yes
17689 fi
17690 if test -z "$ac_cpp_err"; then
17691 ac_cv_header_dbmalloc_h=yes
17692 else
17693 echo "$as_me: failed program was:" >&5
17694 cat conftest.$ac_ext >&5
17695 ac_cv_header_dbmalloc_h=no
17696 fi
17697 rm -f conftest.err conftest.$ac_ext
17698 fi
17699 echo "$as_me:17699: result: $ac_cv_header_dbmalloc_h" >&5
17700 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17701 if test $ac_cv_header_dbmalloc_h = yes; then
17702
17703 echo "$as_me:17703: checking for debug_malloc in -ldbmalloc" >&5
17704 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17705 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708 ac_check_lib_save_LIBS=$LIBS
17709 LIBS="-ldbmalloc $LIBS"
17710 cat >conftest.$ac_ext <<_ACEOF
17711 #line 17711 "configure"
17712 #include "confdefs.h"
17713
17714 /* Override any gcc2 internal prototype to avoid an error. */
17715 #ifdef __cplusplus
17716 extern "C"
17717 #endif
17718 /* We use char because int might match the return type of a gcc2
17719 builtin and then its argument prototype would still apply. */
17720 char debug_malloc ();
17721 int
17722 main ()
17723 {
17724 debug_malloc ();
17725 ;
17726 return 0;
17727 }
17728 _ACEOF
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (eval echo "$as_me:17730: \"$ac_link\"") >&5
17731 (eval $ac_link) 2>&5
17732 ac_status=$?
17733 echo "$as_me:17733: \$? = $ac_status" >&5
17734 (exit $ac_status); } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (eval echo "$as_me:17736: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:17739: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_lib_dbmalloc_debug_malloc=yes
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 cat conftest.$ac_ext >&5
17745 ac_cv_lib_dbmalloc_debug_malloc=no
17746 fi
17747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17748 LIBS=$ac_check_lib_save_LIBS
17749 fi
17750 echo "$as_me:17750: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17751 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17752 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17753 cat >>confdefs.h <<EOF
17754 #define HAVE_LIBDBMALLOC 1
17755 EOF
17756
17757 LIBS="-ldbmalloc $LIBS"
17758
17759 fi
17760
17761 fi
17762
17763 fi
17764
17765 echo "$as_me:17765: checking if you want to use valgrind for testing" >&5
17766 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17767
17768 # Check whether --with-valgrind or --without-valgrind was given.
17769 if test "${with_valgrind+set}" = set; then
17770 withval="$with_valgrind"
17771
17772 cat >>confdefs.h <<EOF
17773 #define USE_VALGRIND 1
17774 EOF
17775
17776 : ${with_cflags:=-g}
17777 : ${with_no_leaks:=yes}
17778 with_valgrind=yes
17779 else
17780 with_valgrind=
17781 fi;
17782 echo "$as_me:17782: result: ${with_valgrind:-no}" >&5
17783 echo "${ECHO_T}${with_valgrind:-no}" >&6
17784
17785 case .$with_cflags in #(vi
17786 .*-g*)
17787 case .$CFLAGS in #(vi
17788 .*-g*) #(vi
17789 ;;
17790 *)
17791
17792 cf_fix_cppflags=no
17793 cf_new_cflags=
17794 cf_new_cppflags=
17795 cf_new_extra_cppflags=
17796
17797 for cf_add_cflags in -g
17798 do
17799 case $cf_fix_cppflags in
17800 no)
17801 case $cf_add_cflags in #(vi
17802 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
17803 case $cf_add_cflags in
17804 -D*)
17805 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17806
17807 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17808 && test -z "${cf_tst_cflags}" \
17809 && cf_fix_cppflags=yes
17810
17811 if test $cf_fix_cppflags = yes ; then
17812 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17813 continue
17814 elif test "${cf_tst_cflags}" = "\"'" ; then
17815 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17816 continue
17817 fi
17818 ;;
17819 esac
17820 case "$CPPFLAGS" in
17821 *$cf_add_cflags) #(vi
17822 ;;
17823 *) #(vi
17824 case $cf_add_cflags in #(vi
17825 -D*)
17826 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17827
17828 CPPFLAGS=`echo "$CPPFLAGS" | \
17829 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17830 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17831
17832 ;;
17833 esac
17834 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17835 ;;
17836 esac
17837 ;;
17838 *)
17839 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17840 ;;
17841 esac
17842 ;;
17843 yes)
17844 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17845
17846 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17847
17848 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
17849 && test -z "${cf_tst_cflags}" \
17850 && cf_fix_cppflags=no
17851 ;;
17852 esac
17853 done
17854
17855 if test -n "$cf_new_cflags" ; then
17856
17857 CFLAGS="$CFLAGS $cf_new_cflags"
17858 fi
17859
17860 if test -n "$cf_new_cppflags" ; then
17861
17862 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17863 fi
17864
17865 if test -n "$cf_new_extra_cppflags" ; then
17866
17867 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17868 fi
17869
17870 ;;
17871 esac
17872 ;;
17873 esac
17874
17875 echo "$as_me:17875: checking if you want to perform memory-leak testing" >&5
17876 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17877
17878 # Check whether --enable-leaks or --disable-leaks was given.
17879 if test "${enable_leaks+set}" = set; then
17880 enableval="$enable_leaks"
17881 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17882 else
17883 : ${with_no_leaks:=no}
17884 fi;
17885 echo "$as_me:17885: result: $with_no_leaks" >&5
17886 echo "${ECHO_T}$with_no_leaks" >&6
17887
17888 if test "$with_no_leaks" = yes ; then
17889
17890 cat >>confdefs.h <<\EOF
17891 #define NO_LEAKS 1
17892 EOF
17893
17894 cat >>confdefs.h <<\EOF
17895 #define YY_NO_LEAKS 1
17896 EOF
17897
17898 fi
17899
17900 echo "$as_me:17900: checking if you want to see long compiling messages" >&5
17901 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
17902
17903 # Check whether --enable-echo or --disable-echo was given.
17904 if test "${enable_echo+set}" = set; then
17905 enableval="$enable_echo"
17906 test "$enableval" != no && enableval=yes
17907 if test "$enableval" != "yes" ; then
17908
17909 ECHO_LT='--silent'
17910 ECHO_LD='@echo linking $@;'
17911 RULE_CC='@echo compiling $<'
17912 SHOW_CC='@echo compiling $@'
17913 ECHO_CC='@'
17914
17915 else
17916
17917 ECHO_LT=''
17918 ECHO_LD=''
17919 RULE_CC=''
17920 SHOW_CC=''
17921 ECHO_CC=''
17922
17923 fi
17924 else
17925 enableval=yes
17926
17927 ECHO_LT=''
17928 ECHO_LD=''
17929 RULE_CC=''
17930 SHOW_CC=''
17931 ECHO_CC=''
17932
17933 fi;
17934 echo "$as_me:17934: result: $enableval" >&5
17935 echo "${ECHO_T}$enableval" >&6
17936
17937 echo "$as_me:17937: checking if you want magic cookie emulation" >&5
17938 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
17939
17940 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
17941 if test "${enable_xmc_glitch+set}" = set; then
17942 enableval="$enable_xmc_glitch"
17943 test "$enableval" != yes && enableval=no
17944 if test "$enableval" != "no" ; then
17945 enable_xmc=yes
17946 else
17947 enable_xmc=no
17948 fi
17949 else
17950 enableval=no
17951 enable_xmc=no
17952
17953 fi;
17954 echo "$as_me:17954: result: $enable_xmc" >&5
17955 echo "${ECHO_T}$enable_xmc" >&6
17956 if test "$enable_xmc" = yes ; then
17957
17958 cat >>confdefs.h <<\EOF
17959 #define OPT_XMC_GLITCH 1
17960 EOF
17961
17962 EXTRASRCS="$EXTRASRCS testxmc.c"
17963 EXTRAOBJS="$EXTRAOBJS testxmc.o"
17964 fi
17965
17966 for ac_func in tigetstr
17967 do
17968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17969 echo "$as_me:17969: checking for $ac_func" >&5
17970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17971 if eval "test \"\${$as_ac_var+set}\" = set"; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 else
17974 cat >conftest.$ac_ext <<_ACEOF
17975 #line 17975 "configure"
17976 #include "confdefs.h"
17977 /* System header to define __stub macros and hopefully few prototypes,
17978 which can conflict with char $ac_func (); below. */
17979 #include <assert.h>
17980 /* Override any gcc2 internal prototype to avoid an error. */
17981 #ifdef __cplusplus
17982 extern "C"
17983 #endif
17984 /* We use char because int might match the return type of a gcc2
17985 builtin and then its argument prototype would still apply. */
17986 char $ac_func ();
17987 char (*f) ();
17988
17989 int
17990 main ()
17991 {
17992 /* The GNU C library defines this for functions which it implements
17993 to always fail with ENOSYS. Some functions are actually named
17994 something starting with __ and the normal name is an alias. */
17995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17996 choke me
17997 #else
17998 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17999 #endif
18000
18001 ;
18002 return 0;
18003 }
18004 _ACEOF
18005 rm -f conftest.$ac_objext conftest$ac_exeext
18006 if { (eval echo "$as_me:18006: \"$ac_link\"") >&5
18007 (eval $ac_link) 2>&5
18008 ac_status=$?
18009 echo "$as_me:18009: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (eval echo "$as_me:18012: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:18015: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 eval "$as_ac_var=yes"
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 cat conftest.$ac_ext >&5
18021 eval "$as_ac_var=no"
18022 fi
18023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18024 fi
18025 echo "$as_me:18025: result: `eval echo '${'$as_ac_var'}'`" >&5
18026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028 cat >>confdefs.h <<EOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18030 EOF
18031
18032 fi
18033 done
18034
18035 if test -n "$cf_cv_lib_part_tgetent"; then
18036
18037 for ac_func in use_extended_names
18038 do
18039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18040 echo "$as_me:18040: checking for $ac_func" >&5
18041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18042 if eval "test \"\${$as_ac_var+set}\" = set"; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 else
18045 cat >conftest.$ac_ext <<_ACEOF
18046 #line 18046 "configure"
18047 #include "confdefs.h"
18048 /* System header to define __stub macros and hopefully few prototypes,
18049 which can conflict with char $ac_func (); below. */
18050 #include <assert.h>
18051 /* Override any gcc2 internal prototype to avoid an error. */
18052 #ifdef __cplusplus
18053 extern "C"
18054 #endif
18055 /* We use char because int might match the return type of a gcc2
18056 builtin and then its argument prototype would still apply. */
18057 char $ac_func ();
18058 char (*f) ();
18059
18060 int
18061 main ()
18062 {
18063 /* The GNU C library defines this for functions which it implements
18064 to always fail with ENOSYS. Some functions are actually named
18065 something starting with __ and the normal name is an alias. */
18066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18067 choke me
18068 #else
18069 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18070 #endif
18071
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (eval echo "$as_me:18077: \"$ac_link\"") >&5
18078 (eval $ac_link) 2>&5
18079 ac_status=$?
18080 echo "$as_me:18080: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -s conftest$ac_exeext'
18083 { (eval echo "$as_me:18083: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 echo "$as_me:18086: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 eval "$as_ac_var=yes"
18089 else
18090 echo "$as_me: failed program was:" >&5
18091 cat conftest.$ac_ext >&5
18092 eval "$as_ac_var=no"
18093 fi
18094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18095 fi
18096 echo "$as_me:18096: result: `eval echo '${'$as_ac_var'}'`" >&5
18097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18098 if test `eval echo '${'$as_ac_var'}'` = yes; then
18099 cat >>confdefs.h <<EOF
18100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18101 EOF
18102
18103 fi
18104 done
18105
18106 fi
18107
18108 if test -n "$GCC" ; then
18109 echo "$as_me:18109: checking if you want to turn on gcc warnings" >&5
18110 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
18111
18112 # Check whether --enable-warnings or --disable-warnings was given.
18113 if test "${enable_warnings+set}" = set; then
18114 enableval="$enable_warnings"
18115 test "$enableval" != yes && enableval=no
18116 if test "$enableval" != "no" ; then
18117 with_warnings=yes
18118 else
18119 with_warnings=no
18120 fi
18121 else
18122 enableval=no
18123 with_warnings=no
18124
18125 fi;
18126 echo "$as_me:18126: result: $with_warnings" >&5
18127 echo "${ECHO_T}$with_warnings" >&6
18128 if test "$with_warnings" = yes
18129 then
18130
18131 if test "$GCC" = yes
18132 then
18133 cat > conftest.i <<EOF
18134 #ifndef GCC_PRINTF
18135 #define GCC_PRINTF 0
18136 #endif
18137 #ifndef GCC_SCANF
18138 #define GCC_SCANF 0
18139 #endif
18140 #ifndef GCC_NORETURN
18141 #define GCC_NORETURN /* nothing */
18142 #endif
18143 #ifndef GCC_UNUSED
18144 #define GCC_UNUSED /* nothing */
18145 #endif
18146 EOF
18147 if test "$GCC" = yes
18148 then
18149 { echo "$as_me:18149: checking for $CC __attribute__ directives..." >&5
18150 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
18151 cat > conftest.$ac_ext <<EOF
18152 #line 18152 "${as_me:-configure}"
18153 #include "confdefs.h"
18154 #include "conftest.h"
18155 #include "conftest.i"
18156 #if GCC_PRINTF
18157 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
18158 #else
18159 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
18160 #endif
18161 #if GCC_SCANF
18162 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
18163 #else
18164 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
18165 #endif
18166 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
18167 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
18168 extern void foo(void) GCC_NORETURN;
18169 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
18170 EOF
18171 cf_printf_attribute=no
18172 cf_scanf_attribute=no
18173 for cf_attribute in scanf printf unused noreturn
18174 do
18175
18176 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18177
18178 cf_directive="__attribute__(($cf_attribute))"
18179 echo "checking for $CC $cf_directive" 1>&5
18180
18181 case $cf_attribute in #(vi
18182 printf) #(vi
18183 cf_printf_attribute=yes
18184 cat >conftest.h <<EOF
18185 #define GCC_$cf_ATTRIBUTE 1
18186 EOF
18187 ;;
18188 scanf) #(vi
18189 cf_scanf_attribute=yes
18190 cat >conftest.h <<EOF
18191 #define GCC_$cf_ATTRIBUTE 1
18192 EOF
18193 ;;
18194 *) #(vi
18195 cat >conftest.h <<EOF
18196 #define GCC_$cf_ATTRIBUTE $cf_directive
18197 EOF
18198 ;;
18199 esac
18200
18201 if { (eval echo "$as_me:18201: \"$ac_compile\"") >&5
18202 (eval $ac_compile) 2>&5
18203 ac_status=$?
18204 echo "$as_me:18204: \$? = $ac_status" >&5
18205 (exit $ac_status); }; then
18206 test -n "$verbose" && echo "$as_me:18206: result: ... $cf_attribute" >&5
18207 echo "${ECHO_T}... $cf_attribute" >&6
18208 cat conftest.h >>confdefs.h
18209 case $cf_attribute in #(vi
18210 noreturn) #(vi
18211
18212 cat >>confdefs.h <<EOF
18213 #define GCC_NORETURN $cf_directive
18214 EOF
18215
18216 ;;
18217 printf) #(vi
18218 cf_value='/* nothing */'
18219 if test "$cf_printf_attribute" != no ; then
18220 cf_value='__attribute__((format(printf,fmt,var)))'
18221
18222 cat >>confdefs.h <<\EOF
18223 #define GCC_PRINTF 1
18224 EOF
18225
18226 fi
18227
18228 cat >>confdefs.h <<EOF
18229 #define GCC_PRINTFLIKE(fmt,var) $cf_value
18230 EOF
18231
18232 ;;
18233 scanf) #(vi
18234 cf_value='/* nothing */'
18235 if test "$cf_scanf_attribute" != no ; then
18236 cf_value='__attribute__((format(scanf,fmt,var)))'
18237
18238 cat >>confdefs.h <<\EOF
18239 #define GCC_SCANF 1
18240 EOF
18241
18242 fi
18243
18244 cat >>confdefs.h <<EOF
18245 #define GCC_SCANFLIKE(fmt,var) $cf_value
18246 EOF
18247
18248 ;;
18249 unused) #(vi
18250
18251 cat >>confdefs.h <<EOF
18252 #define GCC_UNUSED $cf_directive
18253 EOF
18254
18255 ;;
18256 esac
18257 fi
18258 done
18259 else
18260 fgrep define conftest.i >>confdefs.h
18261 fi
18262 rm -rf conftest*
18263 fi
18264
18265 INTEL_COMPILER=no
18266
18267 if test "$GCC" = yes ; then
18268 case $host_os in
18269 linux*|gnu*)
18270 echo "$as_me:18270: checking if this is really Intel C compiler" >&5
18271 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
18272 cf_save_CFLAGS="$CFLAGS"
18273 CFLAGS="$CFLAGS -no-gcc"
18274 cat >conftest.$ac_ext <<_ACEOF
18275 #line 18275 "configure"
18276 #include "confdefs.h"
18277
18278 int
18279 main ()
18280 {
18281
18282 #ifdef __INTEL_COMPILER
18283 #else
18284 make an error
18285 #endif
18286
18287 ;
18288 return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (eval echo "$as_me:18292: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>&5
18294 ac_status=$?
18295 echo "$as_me:18295: \$? = $ac_status" >&5
18296 (exit $ac_status); } &&
18297 { ac_try='test -s conftest.$ac_objext'
18298 { (eval echo "$as_me:18298: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:18301: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 INTEL_COMPILER=yes
18304 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
18305
18306 else
18307 echo "$as_me: failed program was:" >&5
18308 cat conftest.$ac_ext >&5
18309 fi
18310 rm -f conftest.$ac_objext conftest.$ac_ext
18311 CFLAGS="$cf_save_CFLAGS"
18312 echo "$as_me:18312: result: $INTEL_COMPILER" >&5
18313 echo "${ECHO_T}$INTEL_COMPILER" >&6
18314 ;;
18315 esac
18316 fi
18317
18318 CLANG_COMPILER=no
18319
18320 if test "$GCC" = yes ; then
18321 echo "$as_me:18321: checking if this is really Clang C compiler" >&5
18322 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
18323 cf_save_CFLAGS="$CFLAGS"
18324 CFLAGS="$CFLAGS -Qunused-arguments"
18325 cat >conftest.$ac_ext <<_ACEOF
18326 #line 18326 "configure"
18327 #include "confdefs.h"
18328
18329 int
18330 main ()
18331 {
18332
18333 #ifdef __clang__
18334 #else
18335 make an error
18336 #endif
18337
18338 ;
18339 return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:18343: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>&5
18345 ac_status=$?
18346 echo "$as_me:18346: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -s conftest.$ac_objext'
18349 { (eval echo "$as_me:18349: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:18352: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 CLANG_COMPILER=yes
18355 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
18356
18357 else
18358 echo "$as_me: failed program was:" >&5
18359 cat conftest.$ac_ext >&5
18360 fi
18361 rm -f conftest.$ac_objext conftest.$ac_ext
18362 CFLAGS="$cf_save_CFLAGS"
18363 echo "$as_me:18363: result: $CLANG_COMPILER" >&5
18364 echo "${ECHO_T}$CLANG_COMPILER" >&6
18365 fi
18366
18367 cat > conftest.$ac_ext <<EOF
18368 #line 18368 "${as_me:-configure}"
18369 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
18370 EOF
18371
18372 if test "$INTEL_COMPILER" = yes
18373 then
18374 # The "-wdXXX" options suppress warnings:
18375 # remark #1419: external declaration in primary source file
18376 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
18377 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
18378 # remark #193: zero used for undefined preprocessing identifier
18379 # remark #593: variable "curs_sb_left_arrow" was set but never used
18380 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
18381 # remark #869: parameter "tw" was never referenced
18382 # remark #981: operands are evaluated in unspecified order
18383 # warning #279: controlling expression is constant
18384
18385 { echo "$as_me:18385: checking for $CC warning options..." >&5
18386 echo "$as_me: checking for $CC warning options..." >&6;}
18387 cf_save_CFLAGS="$CFLAGS"
18388 EXTRA_CFLAGS="-Wall"
18389 for cf_opt in \
18390 wd1419 \
18391 wd1683 \
18392 wd1684 \
18393 wd193 \
18394 wd593 \
18395 wd279 \
18396 wd810 \
18397 wd869 \
18398 wd981
18399 do
18400 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18401 if { (eval echo "$as_me:18401: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>&5
18403 ac_status=$?
18404 echo "$as_me:18404: \$? = $ac_status" >&5
18405 (exit $ac_status); }; then
18406 test -n "$verbose" && echo "$as_me:18406: result: ... -$cf_opt" >&5
18407 echo "${ECHO_T}... -$cf_opt" >&6
18408 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18409 fi
18410 done
18411 CFLAGS="$cf_save_CFLAGS"
18412
18413 elif test "$GCC" = yes
18414 then
18415 { echo "$as_me:18415: checking for $CC warning options..." >&5
18416 echo "$as_me: checking for $CC warning options..." >&6;}
18417 cf_save_CFLAGS="$CFLAGS"
18418 EXTRA_CFLAGS=
18419 cf_warn_CONST=""
18420 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
18421 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
18422 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
18423 for cf_opt in W Wall \
18424 Wbad-function-cast \
18425 Wcast-align \
18426 Wcast-qual \
18427 Wdeclaration-after-statement \
18428 Wextra \
18429 Winline \
18430 Wmissing-declarations \
18431 Wmissing-prototypes \
18432 Wnested-externs \
18433 Wpointer-arith \
18434 Wshadow \
18435 Wstrict-prototypes \
18436 Wundef $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
18437 do
18438 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18439 if { (eval echo "$as_me:18439: \"$ac_compile\"") >&5
18440 (eval $ac_compile) 2>&5
18441 ac_status=$?
18442 echo "$as_me:18442: \$? = $ac_status" >&5
18443 (exit $ac_status); }; then
18444 test -n "$verbose" && echo "$as_me:18444: result: ... -$cf_opt" >&5
18445 echo "${ECHO_T}... -$cf_opt" >&6
18446 case $cf_opt in #(vi
18447 Wcast-qual) #(vi
18448 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
18449 ;;
18450 Winline) #(vi
18451 case $GCC_VERSION in
18452 [34].*)
18453 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18454
18455 echo "${as_me:-configure}:18455: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18456
18457 continue;;
18458 esac
18459 ;;
18460 Wpointer-arith) #(vi
18461 case $GCC_VERSION in
18462 [12].*)
18463 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18464
18465 echo "${as_me:-configure}:18465: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18466
18467 continue;;
18468 esac
18469 ;;
18470 esac
18471 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18472 fi
18473 done
18474 CFLAGS="$cf_save_CFLAGS"
18475 fi
18476 rm -rf conftest*
18477
18478 fi
18479 fi
18480
18481 test "$disable_setuid" = yes &&
18482 cat >>confdefs.h <<\EOF
18483 #define DISABLE_SETUID 1
18484 EOF
18485
18486 test "$disable_setgid" = yes &&
18487 cat >>confdefs.h <<\EOF
18488 #define DISABLE_SETGID 1
18489 EOF
18490
18491 if test $disable_setuid = yes ; then
18492 MAY_SETUID="#"
18493 NOT_SETUID=
18494 elif test $disable_setgid = yes ; then
18495 MAY_SETUID="#"
18496 NOT_SETUID=
18497 else
18498 MAY_SETUID=
18499 NOT_SETUID="#"
18500 fi
18501
18502 ### remove from CPPFLAGS the optional features we define in xtermcfg.h
18503 ### or other conflicting symbols that may be defined via imake:
18504 for cf_def in \
18505 __STDC__ \
18506 ALLOWLOGGING \
18507 ALLOWLOGFILEEXEC \
18508 OPT_LUIT_PROG \
18509 OPT_WIDE_CHARS \
18510 SCROLLBAR_RIGHT \
18511 USE_TTY_GROUP \
18512 USE_UTEMPTER \
18513 XRENDERFONT
18514 do
18515 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
18516 done
18517
18518 echo "$as_me:18518: checking if filesystem supports mixed-case filenames" >&5
18519 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
18520 if test "${cf_cv_mixedcase+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523
18524 if test "$cross_compiling" = yes ; then
18525 case $target_alias in #(vi
18526 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
18527 cf_cv_mixedcase=no
18528 ;;
18529 *)
18530 cf_cv_mixedcase=yes
18531 ;;
18532 esac
18533 else
18534 rm -f conftest CONFTEST
18535 echo test >conftest
18536 if test -f CONFTEST ; then
18537 cf_cv_mixedcase=no
18538 else
18539 cf_cv_mixedcase=yes
18540 fi
18541 rm -f conftest CONFTEST
18542 fi
18543
18544 fi
18545 echo "$as_me:18545: result: $cf_cv_mixedcase" >&5
18546 echo "${ECHO_T}$cf_cv_mixedcase" >&6
18547 test "$cf_cv_mixedcase" = yes &&
18548 cat >>confdefs.h <<\EOF
18549 #define MIXEDCASE_FILENAMES 1
18550 EOF
18551
18552 for ac_prog in exctags ctags
18553 do
18554 # Extract the first word of "$ac_prog", so it can be a program name with args.
18555 set dummy $ac_prog; ac_word=$2
18556 echo "$as_me:18556: checking for $ac_word" >&5
18557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18558 if test "${ac_cv_prog_CTAGS+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 if test -n "$CTAGS"; then
18562 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
18563 else
18564 ac_save_IFS=$IFS; IFS=$ac_path_separator
18565 ac_dummy="$PATH"
18566 for ac_dir in $ac_dummy; do
18567 IFS=$ac_save_IFS
18568 test -z "$ac_dir" && ac_dir=.
18569 $as_executable_p "$ac_dir/$ac_word" || continue
18570 ac_cv_prog_CTAGS="$ac_prog"
18571 echo "$as_me:18571: found $ac_dir/$ac_word" >&5
18572 break
18573 done
18574
18575 fi
18576 fi
18577 CTAGS=$ac_cv_prog_CTAGS
18578 if test -n "$CTAGS"; then
18579 echo "$as_me:18579: result: $CTAGS" >&5
18580 echo "${ECHO_T}$CTAGS" >&6
18581 else
18582 echo "$as_me:18582: result: no" >&5
18583 echo "${ECHO_T}no" >&6
18584 fi
18585
18586 test -n "$CTAGS" && break
18587 done
18588
18589 for ac_prog in exetags etags
18590 do
18591 # Extract the first word of "$ac_prog", so it can be a program name with args.
18592 set dummy $ac_prog; ac_word=$2
18593 echo "$as_me:18593: checking for $ac_word" >&5
18594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18595 if test "${ac_cv_prog_ETAGS+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 else
18598 if test -n "$ETAGS"; then
18599 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
18600 else
18601 ac_save_IFS=$IFS; IFS=$ac_path_separator
18602 ac_dummy="$PATH"
18603 for ac_dir in $ac_dummy; do
18604 IFS=$ac_save_IFS
18605 test -z "$ac_dir" && ac_dir=.
18606 $as_executable_p "$ac_dir/$ac_word" || continue
18607 ac_cv_prog_ETAGS="$ac_prog"
18608 echo "$as_me:18608: found $ac_dir/$ac_word" >&5
18609 break
18610 done
18611
18612 fi
18613 fi
18614 ETAGS=$ac_cv_prog_ETAGS
18615 if test -n "$ETAGS"; then
18616 echo "$as_me:18616: result: $ETAGS" >&5
18617 echo "${ECHO_T}$ETAGS" >&6
18618 else
18619 echo "$as_me:18619: result: no" >&5
18620 echo "${ECHO_T}no" >&6
18621 fi
18622
18623 test -n "$ETAGS" && break
18624 done
18625
18626 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
18627 set dummy ${CTAGS:-ctags}; ac_word=$2
18628 echo "$as_me:18628: checking for $ac_word" >&5
18629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18630 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 else
18633 if test -n "$MAKE_LOWER_TAGS"; then
18634 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
18635 else
18636 ac_save_IFS=$IFS; IFS=$ac_path_separator
18637 ac_dummy="$PATH"
18638 for ac_dir in $ac_dummy; do
18639 IFS=$ac_save_IFS
18640 test -z "$ac_dir" && ac_dir=.
18641 $as_executable_p "$ac_dir/$ac_word" || continue
18642 ac_cv_prog_MAKE_LOWER_TAGS="yes"
18643 echo "$as_me:18643: found $ac_dir/$ac_word" >&5
18644 break
18645 done
18646
18647 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
18648 fi
18649 fi
18650 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
18651 if test -n "$MAKE_LOWER_TAGS"; then
18652 echo "$as_me:18652: result: $MAKE_LOWER_TAGS" >&5
18653 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
18654 else
18655 echo "$as_me:18655: result: no" >&5
18656 echo "${ECHO_T}no" >&6
18657 fi
18658
18659 if test "$cf_cv_mixedcase" = yes ; then
18660 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
18661 set dummy ${ETAGS:-etags}; ac_word=$2
18662 echo "$as_me:18662: checking for $ac_word" >&5
18663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18664 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 if test -n "$MAKE_UPPER_TAGS"; then
18668 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
18669 else
18670 ac_save_IFS=$IFS; IFS=$ac_path_separator
18671 ac_dummy="$PATH"
18672 for ac_dir in $ac_dummy; do
18673 IFS=$ac_save_IFS
18674 test -z "$ac_dir" && ac_dir=.
18675 $as_executable_p "$ac_dir/$ac_word" || continue
18676 ac_cv_prog_MAKE_UPPER_TAGS="yes"
18677 echo "$as_me:18677: found $ac_dir/$ac_word" >&5
18678 break
18679 done
18680
18681 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
18682 fi
18683 fi
18684 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
18685 if test -n "$MAKE_UPPER_TAGS"; then
18686 echo "$as_me:18686: result: $MAKE_UPPER_TAGS" >&5
18687 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
18688 else
18689 echo "$as_me:18689: result: no" >&5
18690 echo "${ECHO_T}no" >&6
18691 fi
18692
18693 else
18694 MAKE_UPPER_TAGS=no
18695 fi
18696
18697 if test "$MAKE_UPPER_TAGS" = yes ; then
18698 MAKE_UPPER_TAGS=
18699 else
18700 MAKE_UPPER_TAGS="#"
18701 fi
18702
18703 if test "$MAKE_LOWER_TAGS" = yes ; then
18704 MAKE_LOWER_TAGS=
18705 else
18706 MAKE_LOWER_TAGS="#"
18707 fi
18708
18709 LD_RPATH_OPT=
18710 echo "$as_me:18710: checking for an rpath option" >&5
18711 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18712 case $cf_cv_system_name in #(vi
18713 irix*) #(vi
18714 if test "$GCC" = yes; then
18715 LD_RPATH_OPT="-Wl,-rpath,"
18716 else
18717 LD_RPATH_OPT="-rpath "
18718 fi
18719 ;;
18720 linux*|gnu*|k*bsd*-gnu) #(vi
18721 LD_RPATH_OPT="-Wl,-rpath,"
18722 ;;
18723 openbsd[2-9].*|mirbsd*) #(vi
18724 LD_RPATH_OPT="-Wl,-rpath,"
18725 ;;
18726 dragonfly*|freebsd*) #(vi
18727 LD_RPATH_OPT="-rpath "
18728 ;;
18729 netbsd*) #(vi
18730 LD_RPATH_OPT="-Wl,-rpath,"
18731 ;;
18732 osf*|mls+*) #(vi
18733 LD_RPATH_OPT="-rpath "
18734 ;;
18735 solaris2*) #(vi
18736 LD_RPATH_OPT="-R"
18737 ;;
18738 *)
18739 ;;
18740 esac
18741 echo "$as_me:18741: result: $LD_RPATH_OPT" >&5
18742 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18743
18744 case "x$LD_RPATH_OPT" in #(vi
18745 x-R*)
18746 echo "$as_me:18746: checking if we need a space after rpath option" >&5
18747 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18748 cf_save_LIBS="$LIBS"
18749 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
18750 cat >conftest.$ac_ext <<_ACEOF
18751 #line 18751 "configure"
18752 #include "confdefs.h"
18753
18754 int
18755 main ()
18756 {
18757
18758 ;
18759 return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (eval echo "$as_me:18763: \"$ac_link\"") >&5
18764 (eval $ac_link) 2>&5
18765 ac_status=$?
18766 echo "$as_me:18766: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -s conftest$ac_exeext'
18769 { (eval echo "$as_me:18769: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:18772: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 cf_rpath_space=no
18775 else
18776 echo "$as_me: failed program was:" >&5
18777 cat conftest.$ac_ext >&5
18778 cf_rpath_space=yes
18779 fi
18780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18781 LIBS="$cf_save_LIBS"
18782 echo "$as_me:18782: result: $cf_rpath_space" >&5
18783 echo "${ECHO_T}$cf_rpath_space" >&6
18784 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18785 ;;
18786 esac
18787
18788 echo "$as_me:18788: checking if rpath-hack should be disabled" >&5
18789 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18790
18791 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18792 if test "${enable_rpath_hack+set}" = set; then
18793 enableval="$enable_rpath_hack"
18794 test "$enableval" != no && enableval=yes
18795 if test "$enableval" != "yes" ; then
18796 cf_disable_rpath_hack=yes
18797 else
18798 cf_disable_rpath_hack=no
18799 fi
18800 else
18801 enableval=yes
18802 cf_disable_rpath_hack=no
18803
18804 fi;
18805 echo "$as_me:18805: result: $cf_disable_rpath_hack" >&5
18806 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18807 if test "$cf_disable_rpath_hack" = no ; then
18808
18809 echo "$as_me:18809: checking for updated LDFLAGS" >&5
18810 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18811 if test -n "$LD_RPATH_OPT" ; then
18812 echo "$as_me:18812: result: maybe" >&5
18813 echo "${ECHO_T}maybe" >&6
18814
18815 for ac_prog in ldd
18816 do
18817 # Extract the first word of "$ac_prog", so it can be a program name with args.
18818 set dummy $ac_prog; ac_word=$2
18819 echo "$as_me:18819: checking for $ac_word" >&5
18820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18821 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824 if test -n "$cf_ldd_prog"; then
18825 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18826 else
18827 ac_save_IFS=$IFS; IFS=$ac_path_separator
18828 ac_dummy="$PATH"
18829 for ac_dir in $ac_dummy; do
18830 IFS=$ac_save_IFS
18831 test -z "$ac_dir" && ac_dir=.
18832 $as_executable_p "$ac_dir/$ac_word" || continue
18833 ac_cv_prog_cf_ldd_prog="$ac_prog"
18834 echo "$as_me:18834: found $ac_dir/$ac_word" >&5
18835 break
18836 done
18837
18838 fi
18839 fi
18840 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18841 if test -n "$cf_ldd_prog"; then
18842 echo "$as_me:18842: result: $cf_ldd_prog" >&5
18843 echo "${ECHO_T}$cf_ldd_prog" >&6
18844 else
18845 echo "$as_me:18845: result: no" >&5
18846 echo "${ECHO_T}no" >&6
18847 fi
18848
18849 test -n "$cf_ldd_prog" && break
18850 done
18851 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18852
18853 cf_rpath_list="/usr/lib /lib"
18854 if test "$cf_ldd_prog" != no
18855 then
18856 cf_rpath_oops=
18857
18858 cat >conftest.$ac_ext <<_ACEOF
18859 #line 18859 "configure"
18860 #include "confdefs.h"
18861 #include <stdio.h>
18862 int
18863 main ()
18864 {
18865 printf("Hello");
18866 ;
18867 return 0;
18868 }
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (eval echo "$as_me:18871: \"$ac_link\"") >&5
18872 (eval $ac_link) 2>&5
18873 ac_status=$?
18874 echo "$as_me:18874: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (eval echo "$as_me:18877: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:18880: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18883 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18884 else
18885 echo "$as_me: failed program was:" >&5
18886 cat conftest.$ac_ext >&5
18887 fi
18888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18889
18890 # If we passed the link-test, but get a "not found" on a given library,
18891 # this could be due to inept reconfiguration of gcc to make it only
18892 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18893 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18894 # /usr/local libraries.
18895 if test -n "$cf_rpath_oops"
18896 then
18897 for cf_rpath_src in $cf_rpath_oops
18898 do
18899 for cf_rpath_dir in \
18900 /usr/local \
18901 /usr/pkg \
18902 /opt/sfw
18903 do
18904 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18905 then
18906 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18907
18908 echo "${as_me:-configure}:18908: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18909
18910 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
18911 break
18912 fi
18913 done
18914 done
18915 fi
18916 fi
18917
18918 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18919
18920 echo "${as_me:-configure}:18920: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18921
18922 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
18923
18924 echo "${as_me:-configure}:18924: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
18925
18926 cf_rpath_dst=
18927 for cf_rpath_src in $LDFLAGS
18928 do
18929 case $cf_rpath_src in #(vi
18930 -L*) #(vi
18931
18932 # check if this refers to a directory which we will ignore
18933 cf_rpath_skip=no
18934 if test -n "$cf_rpath_list"
18935 then
18936 for cf_rpath_item in $cf_rpath_list
18937 do
18938 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18939 then
18940 cf_rpath_skip=yes
18941 break
18942 fi
18943 done
18944 fi
18945
18946 if test "$cf_rpath_skip" = no
18947 then
18948 # transform the option
18949 if test "$LD_RPATH_OPT" = "-R " ; then
18950 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18951 else
18952 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18953 fi
18954
18955 # if we have not already added this, add it now
18956 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18957 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18958 then
18959 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18960
18961 echo "${as_me:-configure}:18961: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18962
18963 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18964 fi
18965 fi
18966 ;;
18967 esac
18968 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18969 done
18970 LDFLAGS=$cf_rpath_dst
18971
18972 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
18973
18974 echo "${as_me:-configure}:18974: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
18975
18976 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
18977
18978 echo "${as_me:-configure}:18978: testing ...checking LIBS $LIBS ..." 1>&5
18979
18980 cf_rpath_dst=
18981 for cf_rpath_src in $LIBS
18982 do
18983 case $cf_rpath_src in #(vi
18984 -L*) #(vi
18985
18986 # check if this refers to a directory which we will ignore
18987 cf_rpath_skip=no
18988 if test -n "$cf_rpath_list"
18989 then
18990 for cf_rpath_item in $cf_rpath_list
18991 do
18992 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18993 then
18994 cf_rpath_skip=yes
18995 break
18996 fi
18997 done
18998 fi
18999
19000 if test "$cf_rpath_skip" = no
19001 then
19002 # transform the option
19003 if test "$LD_RPATH_OPT" = "-R " ; then
19004 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
19005 else
19006 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
19007 fi
19008
19009 # if we have not already added this, add it now
19010 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
19011 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
19012 then
19013 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
19014
19015 echo "${as_me:-configure}:19015: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
19016
19017 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
19018 fi
19019 fi
19020 ;;
19021 esac
19022 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
19023 done
19024 LIBS=$cf_rpath_dst
19025
19026 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
19027
19028 echo "${as_me:-configure}:19028: testing ...checked LIBS $LIBS ..." 1>&5
19029
19030 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
19031
19032 echo "${as_me:-configure}:19032: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
19033
19034 else
19035 echo "$as_me:19035: result: no" >&5
19036 echo "${ECHO_T}no" >&6
19037 fi
19038
19039 fi
19040
19041 # Force plink.sh to not trim pcre's libraries, which have the same symbol
19042 # names as the system regexp.
19043 if test "$with_pcre" != no
19044 then
19045 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
19046 fi
19047
19048 ### output xtermcfg.h, etc
19049 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in"
19050
19051 cat >confcache <<\_ACEOF
19052 # This file is a shell script that caches the results of configure
19053 # tests run on this system so they can be shared between configure
19054 # scripts and configure runs, see configure's option --config-cache.
19055 # It is not useful on other systems. If it contains results you don't
19056 # want to keep, you may remove or edit it.
19057 #
19058 # config.status only pays attention to the cache file if you give it
19059 # the --recheck option to rerun configure.
19060 #
19061 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19063 # following values.
19064
19065 _ACEOF
19066
19067 # The following way of writing the cache mishandles newlines in values,
19068 # but we know of no workaround that is simple, portable, and efficient.
19069 # So, don't put newlines in cache variables' values.
19070 # Ultrix sh set writes to stderr and can't be redirected directly,
19071 # and sets the high bit in the cache file unless we assign to the vars.
19072 {
19073 (set) 2>&1 |
19074 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19075 *ac_space=\ *)
19076 # `set' does not quote correctly, so add quotes (double-quote
19077 # substitution turns \\\\ into \\, and sed turns \\ into \).
19078 sed -n \
19079 "s/'/'\\\\''/g;
19080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19081 ;;
19082 *)
19083 # `set' quotes correctly as required by POSIX, so do not add quotes.
19084 sed -n \
19085 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19086 ;;
19087 esac;
19088 } |
19089 sed '
19090 t clear
19091 : clear
19092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19093 t end
19094 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19095 : end' >>confcache
19096 if cmp -s $cache_file confcache; then :; else
19097 if test -w $cache_file; then
19098 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19099 cat confcache >$cache_file
19100 else
19101 echo "not updating unwritable cache $cache_file"
19102 fi
19103 fi
19104 rm -f confcache
19105
19106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19107 # Let make expand exec_prefix.
19108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19109
19110 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19111 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19112 # trailing colons and then remove the whole line if VPATH becomes empty
19113 # (actually we leave an empty line to preserve line numbers).
19114 if test "x$srcdir" = x.; then
19115 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19116 s/:*\$(srcdir):*/:/;
19117 s/:*\${srcdir}:*/:/;
19118 s/:*@srcdir@:*/:/;
19119 s/^\([^=]*=[ ]*\):*/\1/;
19120 s/:*$//;
19121 s/^[^=]*=[ ]*$//;
19122 }'
19123 fi
19124
19125 DEFS=-DHAVE_CONFIG_H
19126
19127 : ${CONFIG_STATUS=./config.status}
19128 ac_clean_files_save=$ac_clean_files
19129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19130 { echo "$as_me:19130: creating $CONFIG_STATUS" >&5
19131 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19132 cat >$CONFIG_STATUS <<_ACEOF
19133 #! $SHELL
19134 # Generated automatically by configure.
19135 # Run this file to recreate the current configuration.
19136 # Compiler output produced by configure, useful for debugging
19137 # configure, is in config.log if it exists.
19138
19139 debug=false
19140 SHELL=\${CONFIG_SHELL-$SHELL}
19141 ac_cs_invocation="\$0 \$@"
19142
19143 _ACEOF
19144
19145 cat >>$CONFIG_STATUS <<\_ACEOF
19146 # Be Bourne compatible
19147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19148 emulate sh
19149 NULLCMD=:
19150 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19151 set -o posix
19152 fi
19153
19154 # Name of the executable.
19155 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19156
19157 if expr a : '\(a\)' >/dev/null 2>&1; then
19158 as_expr=expr
19159 else
19160 as_expr=false
19161 fi
19162
19163 rm -f conf$$ conf$$.exe conf$$.file
19164 echo >conf$$.file
19165 if ln -s conf$$.file conf$$ 2>/dev/null; then
19166 # We could just check for DJGPP; but this test a) works b) is more generic
19167 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19168 if test -f conf$$.exe; then
19169 # Don't use ln at all; we don't have any links
19170 as_ln_s='cp -p'
19171 else
19172 as_ln_s='ln -s'
19173 fi
19174 elif ln conf$$.file conf$$ 2>/dev/null; then
19175 as_ln_s=ln
19176 else
19177 as_ln_s='cp -p'
19178 fi
19179 rm -f conf$$ conf$$.exe conf$$.file
19180
19181 as_executable_p="test -f"
19182
19183 # Support unset when possible.
19184 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19185 as_unset=unset
19186 else
19187 as_unset=false
19188 fi
19189
19190 # NLS nuisances.
19191 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19192 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19193 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19194 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19195 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19196 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19197 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19198 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19199
19200 # IFS
19201 # We need space, tab and new line, in precisely that order.
19202 as_nl='
19203 '
19204 IFS=" $as_nl"
19205
19206 # CDPATH.
19207 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19208
19209 exec 6>&1
19210
19211 _ACEOF
19212
19213 # Files that config.status was made for.
19214 if test -n "$ac_config_files"; then
19215 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19216 fi
19217
19218 if test -n "$ac_config_headers"; then
19219 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19220 fi
19221
19222 if test -n "$ac_config_links"; then
19223 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19224 fi
19225
19226 if test -n "$ac_config_commands"; then
19227 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19228 fi
19229
19230 cat >>$CONFIG_STATUS <<\EOF
19231
19232 ac_cs_usage="\
19233 \`$as_me' instantiates files from templates according to the
19234 current configuration.
19235
19236 Usage: $0 [OPTIONS] [FILE]...
19237
19238 -h, --help print this help, then exit
19239 -V, --version print version number, then exit
19240 -d, --debug don't remove temporary files
19241 --recheck update $as_me by reconfiguring in the same conditions
19242 --file=FILE[:TEMPLATE]
19243 instantiate the configuration file FILE
19244 --header=FILE[:TEMPLATE]
19245 instantiate the configuration header FILE
19246
19247 Configuration files:
19248 $config_files
19249
19250 Configuration headers:
19251 $config_headers
19252
19253 Report bugs to <dickey@invisible-island.net>."
19254 EOF
19255
19256 cat >>$CONFIG_STATUS <<EOF
19257 ac_cs_version="\\
19258 config.status
19259 configured by $0, generated by GNU Autoconf 2.52.20121002,
19260 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19261
19262 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19263 Free Software Foundation, Inc.
19264 This config.status script is free software; the Free Software Foundation
19265 gives unlimited permission to copy, distribute and modify it."
19266 srcdir=$srcdir
19267 INSTALL="$INSTALL"
19268 EOF
19269
19270 cat >>$CONFIG_STATUS <<\EOF
19271 # If no file are specified by the user, then we need to provide default
19272 # value. By we need to know if files were specified by the user.
19273 ac_need_defaults=:
19274 while test $# != 0
19275 do
19276 case $1 in
19277 --*=*)
19278 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19279 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19280 shift
19281 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19282 shift
19283 ;;
19284 -*);;
19285 *) # This is not an option, so the user has probably given explicit
19286 # arguments.
19287 ac_need_defaults=false;;
19288 esac
19289
19290 case $1 in
19291 # Handling of the options.
19292 EOF
19293 cat >>$CONFIG_STATUS <<EOF
19294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19295 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19296 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19297 EOF
19298 cat >>$CONFIG_STATUS <<\EOF
19299 --version | --vers* | -V )
19300 echo "$ac_cs_version"; exit 0 ;;
19301 --he | --h)
19302 # Conflict between --help and --header
19303 { { echo "$as_me:19303: error: ambiguous option: $1
19304 Try \`$0 --help' for more information." >&5
19305 echo "$as_me: error: ambiguous option: $1
19306 Try \`$0 --help' for more information." >&2;}
19307 { (exit 1); exit 1; }; };;
19308 --help | --hel | -h )
19309 echo "$ac_cs_usage"; exit 0 ;;
19310 --debug | --d* | -d )
19311 debug=: ;;
19312 --file | --fil | --fi | --f )
19313 shift
19314 CONFIG_FILES="$CONFIG_FILES $1"
19315 ac_need_defaults=false;;
19316 --header | --heade | --head | --hea )
19317 shift
19318 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19319 ac_need_defaults=false;;
19320
19321 # This is an error.
19322 -*) { { echo "$as_me:19322: error: unrecognized option: $1
19323 Try \`$0 --help' for more information." >&5
19324 echo "$as_me: error: unrecognized option: $1
19325 Try \`$0 --help' for more information." >&2;}
19326 { (exit 1); exit 1; }; } ;;
19327
19328 *) ac_config_targets="$ac_config_targets $1" ;;
19329
19330 esac
19331 shift
19332 done
19333
19334 exec 5>>config.log
19335 cat >&5 << _ACEOF
19336
19337 ## ----------------------- ##
19338 ## Running config.status. ##
19339 ## ----------------------- ##
19340
19341 This file was extended by $as_me 2.52.20121002, executed with
19342 CONFIG_FILES = $CONFIG_FILES
19343 CONFIG_HEADERS = $CONFIG_HEADERS
19344 CONFIG_LINKS = $CONFIG_LINKS
19345 CONFIG_COMMANDS = $CONFIG_COMMANDS
19346 > $ac_cs_invocation
19347 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19348
19349 _ACEOF
19350 EOF
19351
19352 cat >>$CONFIG_STATUS <<\EOF
19353 for ac_config_target in $ac_config_targets
19354 do
19355 case "$ac_config_target" in
19356 # Handling of arguments.
19357 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19358 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;;
19359 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;;
19360 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
19361 *) { { echo "$as_me:19361: error: invalid argument: $ac_config_target" >&5
19362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19363 { (exit 1); exit 1; }; };;
19364 esac
19365 done
19366
19367 # If the user did not use the arguments to specify the items to instantiate,
19368 # then the envvar interface is used. Set only those that are not.
19369 # We use the long form for the default assignment because of an extremely
19370 # bizarre bug on SunOS 4.1.3.
19371 if $ac_need_defaults; then
19372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19373 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19374 fi
19375
19376 # Create a temporary directory, and hook for its removal unless debugging.
19377 $debug ||
19378 {
19379 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19380 trap '{ (exit 1); exit 1; }' 1 2 13 15
19381 }
19382
19383 # Create a (secure) tmp directory for tmp files.
19384 : ${TMPDIR=/tmp}
19385 {
19386 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19387 test -n "$tmp" && test -d "$tmp"
19388 } ||
19389 {
19390 tmp=$TMPDIR/cs$$-$RANDOM
19391 (umask 077 && mkdir $tmp)
19392 } ||
19393 {
19394 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19395 { (exit 1); exit 1; }
19396 }
19397
19398 EOF
19399
19400 cat >>$CONFIG_STATUS <<EOF
19401
19402 #
19403 # CONFIG_FILES section.
19404 #
19405
19406 # No need to generate the scripts if there are no CONFIG_FILES.
19407 # This happens for instance when ./config.status config.h
19408 if test -n "\$CONFIG_FILES"; then
19409 # Protect against being on the right side of a sed subst in config.status.
19410 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19411 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19412 s,@SHELL@,$SHELL,;t t
19413 s,@exec_prefix@,$exec_prefix,;t t
19414 s,@prefix@,$prefix,;t t
19415 s,@program_transform_name@,$program_transform_name,;t t
19416 s,@bindir@,$bindir,;t t
19417 s,@sbindir@,$sbindir,;t t
19418 s,@libexecdir@,$libexecdir,;t t
19419 s,@datarootdir@,$datarootdir,;t t
19420 s,@datadir@,$datadir,;t t
19421 s,@sysconfdir@,$sysconfdir,;t t
19422 s,@sharedstatedir@,$sharedstatedir,;t t
19423 s,@localstatedir@,$localstatedir,;t t
19424 s,@libdir@,$libdir,;t t
19425 s,@includedir@,$includedir,;t t
19426 s,@oldincludedir@,$oldincludedir,;t t
19427 s,@infodir@,$infodir,;t t
19428 s,@mandir@,$mandir,;t t
19429 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19430 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19431 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19432 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19433 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19434 s,@build_alias@,$build_alias,;t t
19435 s,@host_alias@,$host_alias,;t t
19436 s,@target_alias@,$target_alias,;t t
19437 s,@ECHO_C@,$ECHO_C,;t t
19438 s,@ECHO_N@,$ECHO_N,;t t
19439 s,@ECHO_T@,$ECHO_T,;t t
19440 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19441 s,@DEFS@,$DEFS,;t t
19442 s,@LIBS@,$LIBS,;t t
19443 s,@build@,$build,;t t
19444 s,@build_cpu@,$build_cpu,;t t
19445 s,@build_vendor@,$build_vendor,;t t
19446 s,@build_os@,$build_os,;t t
19447 s,@host@,$host,;t t
19448 s,@host_cpu@,$host_cpu,;t t
19449 s,@host_vendor@,$host_vendor,;t t
19450 s,@host_os@,$host_os,;t t
19451 s,@CC@,$CC,;t t
19452 s,@CFLAGS@,$CFLAGS,;t t
19453 s,@LDFLAGS@,$LDFLAGS,;t t
19454 s,@CPPFLAGS@,$CPPFLAGS,;t t
19455 s,@ac_ct_CC@,$ac_ct_CC,;t t
19456 s,@EXEEXT@,$EXEEXT,;t t
19457 s,@OBJEXT@,$OBJEXT,;t t
19458 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19459 s,@CPP@,$CPP,;t t
19460 s,@AWK@,$AWK,;t t
19461 s,@GROFF_PATH@,$GROFF_PATH,;t t
19462 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
19463 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
19464 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19465 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19466 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19467 s,@LN_S@,$LN_S,;t t
19468 s,@LINT@,$LINT,;t t
19469 s,@APP_CLASS@,$APP_CLASS,;t t
19470 s,@APPSDIR@,$APPSDIR,;t t
19471 s,@no_appsdir@,$no_appsdir,;t t
19472 s,@ICON_NAME@,$ICON_NAME,;t t
19473 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t
19474 s,@PIXMAPDIR@,$PIXMAPDIR,;t t
19475 s,@no_pixmapdir@,$no_pixmapdir,;t t
19476 s,@ICONDIR@,$ICONDIR,;t t
19477 s,@no_icondir@,$no_icondir,;t t
19478 s,@ICON_FORMAT@,$ICON_FORMAT,;t t
19479 s,@ICON_THEME@,$ICON_THEME,;t t
19480 s,@ICON_LIST@,$ICON_LIST,;t t
19481 s,@desktop_utils@,$desktop_utils,;t t
19482 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
19483 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t
19484 s,@XTERM_PATH@,$XTERM_PATH,;t t
19485 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
19486 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
19487 s,@X_CFLAGS@,$X_CFLAGS,;t t
19488 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19489 s,@X_LIBS@,$X_LIBS,;t t
19490 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19491 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19492 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19493 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t
19494 s,@IMAKE@,$IMAKE,;t t
19495 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
19496 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
19497 s,@default_termid@,$default_termid,;t t
19498 s,@default_TERM@,$default_TERM,;t t
19499 s,@backarrow_is_bs@,$backarrow_is_bs,;t t
19500 s,@backarrow_is_erase@,$backarrow_is_erase,;t t
19501 s,@delete_is_del@,$delete_is_del,;t t
19502 s,@alt_sends_esc@,$alt_sends_esc,;t t
19503 s,@meta_sends_esc@,$meta_sends_esc,;t t
19504 s,@cf_tic_prog@,$cf_tic_prog,;t t
19505 s,@no_ticprog@,$no_ticprog,;t t
19506 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
19507 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
19508 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
19509 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
19510 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
19511 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
19512 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
19513 s,@LUIT@,$LUIT,;t t
19514 s,@ECHO_LT@,$ECHO_LT,;t t
19515 s,@ECHO_LD@,$ECHO_LD,;t t
19516 s,@RULE_CC@,$RULE_CC,;t t
19517 s,@SHOW_CC@,$SHOW_CC,;t t
19518 s,@ECHO_CC@,$ECHO_CC,;t t
19519 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19520 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
19521 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
19522 s,@EXTRASRCS@,$EXTRASRCS,;t t
19523 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
19524 s,@MAY_SETUID@,$MAY_SETUID,;t t
19525 s,@NOT_SETUID@,$NOT_SETUID,;t t
19526 s,@CTAGS@,$CTAGS,;t t
19527 s,@ETAGS@,$ETAGS,;t t
19528 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19529 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19530 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19531 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19532 CEOF
19533
19534 EOF
19535
19536 cat >>$CONFIG_STATUS <<\EOF
19537 # Split the substitutions into bite-sized pieces for seds with
19538 # small command number limits, like on Digital OSF/1 and HP-UX.
19539 ac_max_sed_lines=48
19540 ac_sed_frag=1 # Number of current file.
19541 ac_beg=1 # First line for current file.
19542 ac_end=$ac_max_sed_lines # Line after last line for current file.
19543 ac_more_lines=:
19544 ac_sed_cmds=
19545 while $ac_more_lines; do
19546 if test $ac_beg -gt 1; then
19547 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19548 else
19549 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19550 fi
19551 if test ! -s $tmp/subs.frag; then
19552 ac_more_lines=false
19553 else
19554 # The purpose of the label and of the branching condition is to
19555 # speed up the sed processing (if there are no `@' at all, there
19556 # is no need to browse any of the substitutions).
19557 # These are the two extra sed commands mentioned above.
19558 (echo ':t
19559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19560 if test -z "$ac_sed_cmds"; then
19561 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19562 else
19563 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19564 fi
19565 ac_sed_frag=`expr $ac_sed_frag + 1`
19566 ac_beg=$ac_end
19567 ac_end=`expr $ac_end + $ac_max_sed_lines`
19568 fi
19569 done
19570 if test -z "$ac_sed_cmds"; then
19571 ac_sed_cmds=cat
19572 fi
19573 fi # test -n "$CONFIG_FILES"
19574
19575 EOF
19576 cat >>$CONFIG_STATUS <<\EOF
19577 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19579 case $ac_file in
19580 - | *:- | *:-:* ) # input from stdin
19581 cat >$tmp/stdin
19582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19586 * ) ac_file_in=$ac_file.in ;;
19587 esac
19588
19589 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19590 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19591 X"$ac_file" : 'X\(//\)[^/]' \| \
19592 X"$ac_file" : 'X\(//\)$' \| \
19593 X"$ac_file" : 'X\(/\)' \| \
19594 . : '\(.\)' 2>/dev/null ||
19595 echo X"$ac_file" |
19596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19598 /^X\(\/\/\)$/{ s//\1/; q; }
19599 /^X\(\/\).*/{ s//\1/; q; }
19600 s/.*/./; q'`
19601 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19602 { case "$ac_dir" in
19603 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19604 *) as_incr_dir=.;;
19605 esac
19606 as_dummy="$ac_dir"
19607 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19608 case $as_mkdir_dir in
19609 # Skip DOS drivespec
19610 ?:) as_incr_dir=$as_mkdir_dir ;;
19611 *)
19612 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19613 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19614 ;;
19615 esac
19616 done; }
19617
19618 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19619 # A "../" for each directory in $ac_dir_suffix.
19620 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19621 else
19622 ac_dir_suffix= ac_dots=
19623 fi
19624
19625 case $srcdir in
19626 .) ac_srcdir=.
19627 if test -z "$ac_dots"; then
19628 ac_top_srcdir=.
19629 else
19630 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19631 fi ;;
19632 [\\/]* | ?:[\\/]* )
19633 ac_srcdir=$srcdir$ac_dir_suffix;
19634 ac_top_srcdir=$srcdir ;;
19635 *) # Relative path.
19636 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19637 ac_top_srcdir=$ac_dots$srcdir ;;
19638 esac
19639
19640 case $INSTALL in
19641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19642 *) ac_INSTALL=$ac_dots$INSTALL ;;
19643 esac
19644
19645 if test x"$ac_file" != x-; then
19646 { echo "$as_me:19646: creating $ac_file" >&5
19647 echo "$as_me: creating $ac_file" >&6;}
19648 rm -f "$ac_file"
19649 fi
19650 # Let's still pretend it is `configure' which instantiates (i.e., don't
19651 # use $as_me), people would be surprised to read:
19652 # /* config.h. Generated automatically by config.status. */
19653 configure_input="Generated automatically from `echo $ac_file_in |
19654 sed 's,.*/,,'` by configure."
19655
19656 # First look for the input files in the build tree, otherwise in the
19657 # src tree.
19658 ac_file_inputs=`IFS=:
19659 for f in $ac_file_in; do
19660 case $f in
19661 -) echo $tmp/stdin ;;
19662 [\\/$]*)
19663 # Absolute (can't be DOS-style, as IFS=:)
19664 test -f "$f" || { { echo "$as_me:19664: error: cannot find input file: $f" >&5
19665 echo "$as_me: error: cannot find input file: $f" >&2;}
19666 { (exit 1); exit 1; }; }
19667 echo $f;;
19668 *) # Relative
19669 if test -f "$f"; then
19670 # Build tree
19671 echo $f
19672 elif test -f "$srcdir/$f"; then
19673 # Source tree
19674 echo $srcdir/$f
19675 else
19676 # /dev/null tree
19677 { { echo "$as_me:19677: error: cannot find input file: $f" >&5
19678 echo "$as_me: error: cannot find input file: $f" >&2;}
19679 { (exit 1); exit 1; }; }
19680 fi;;
19681 esac
19682 done` || { (exit 1); exit 1; }
19683 EOF
19684 cat >>$CONFIG_STATUS <<\EOF
19685 ac_warn_datarootdir=no
19686 if test x"$ac_file" != x-; then
19687 for ac_item in $ac_file_inputs
19688 do
19689 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19690 if test -n "$ac_seen"; then
19691 ac_used=`grep '@datarootdir@' $ac_item`
19692 if test -z "$ac_used"; then
19693 { echo "$as_me:19693: WARNING: datarootdir was used implicitly but not set:
19694 $ac_seen" >&5
19695 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19696 $ac_seen" >&2;}
19697 ac_warn_datarootdir=yes
19698 fi
19699 fi
19700 ac_seen=`grep '${datarootdir}' $ac_item`
19701 if test -n "$ac_seen"; then
19702 { echo "$as_me:19702: WARNING: datarootdir was used explicitly but not set:
19703 $ac_seen" >&5
19704 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19705 $ac_seen" >&2;}
19706 ac_warn_datarootdir=yes
19707 fi
19708 done
19709 fi
19710
19711 if test "x$ac_warn_datarootdir" = xyes; then
19712 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19713 fi
19714
19715 EOF
19716 cat >>$CONFIG_STATUS <<EOF
19717 sed "$ac_vpsub
19718 $extrasub
19719 EOF
19720 cat >>$CONFIG_STATUS <<\EOF
19721 :t
19722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19723 s,@configure_input@,$configure_input,;t t
19724 s,@srcdir@,$ac_srcdir,;t t
19725 s,@top_srcdir@,$ac_top_srcdir,;t t
19726 s,@INSTALL@,$ac_INSTALL,;t t
19727 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19728 rm -f $tmp/stdin
19729 if test x"$ac_file" != x-; then
19730 cp $tmp/out $ac_file
19731
19732 for ac_name in prefix exec_prefix datarootdir
19733 do
19734 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19735 if test -n "$ac_seen"; then
19736 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19737 if test -z "$ac_init"; then
19738 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19739 { echo "$as_me:19739: WARNING: Variable $ac_name is used but was not set:
19740 $ac_seen" >&5
19741 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19742 $ac_seen" >&2;}
19743 fi
19744 fi
19745 done
19746 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19747 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19748 if test -s $tmp/out; then
19749 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19750 { echo "$as_me:19750: WARNING: Some variables may not be substituted:
19751 $ac_seen" >&5
19752 echo "$as_me: WARNING: Some variables may not be substituted:
19753 $ac_seen" >&2;}
19754 fi
19755 else
19756 cat $tmp/out
19757 fi
19758 rm -f $tmp/out
19759
19760 done
19761 EOF
19762 cat >>$CONFIG_STATUS <<\EOF
19763
19764 #
19765 # CONFIG_HEADER section.
19766 #
19767
19768 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19769 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19770 #
19771 # ac_d sets the value in "#define NAME VALUE" lines.
19772 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19773 ac_dB='[ ].*$,\1#\2'
19774 ac_dC=' '
19775 ac_dD=',;t'
19776 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19777 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19778 ac_iB='\([ ]\),\1#\2define\3'
19779 ac_iC=' '
19780 ac_iD='\4,;t'
19781 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19782 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19783 ac_uB='$,\1#\2define\3'
19784 ac_uC=' '
19785 ac_uD=',;t'
19786
19787 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19789 case $ac_file in
19790 - | *:- | *:-:* ) # input from stdin
19791 cat >$tmp/stdin
19792 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19793 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19794 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19796 * ) ac_file_in=$ac_file.in ;;
19797 esac
19798
19799 test x"$ac_file" != x- && { echo "$as_me:19799: creating $ac_file" >&5
19800 echo "$as_me: creating $ac_file" >&6;}
19801
19802 # First look for the input files in the build tree, otherwise in the
19803 # src tree.
19804 ac_file_inputs=`IFS=:
19805 for f in $ac_file_in; do
19806 case $f in
19807 -) echo $tmp/stdin ;;
19808 [\\/$]*)
19809 # Absolute (can't be DOS-style, as IFS=:)
19810 test -f "$f" || { { echo "$as_me:19810: error: cannot find input file: $f" >&5
19811 echo "$as_me: error: cannot find input file: $f" >&2;}
19812 { (exit 1); exit 1; }; }
19813 echo $f;;
19814 *) # Relative
19815 if test -f "$f"; then
19816 # Build tree
19817 echo $f
19818 elif test -f "$srcdir/$f"; then
19819 # Source tree
19820 echo $srcdir/$f
19821 else
19822 # /dev/null tree
19823 { { echo "$as_me:19823: error: cannot find input file: $f" >&5
19824 echo "$as_me: error: cannot find input file: $f" >&2;}
19825 { (exit 1); exit 1; }; }
19826 fi;;
19827 esac
19828 done` || { (exit 1); exit 1; }
19829 # Remove the trailing spaces.
19830 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19831
19832 EOF
19833
19834 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19835 # `conftest.undefs', that substitutes the proper values into
19836 # config.h.in to produce config.h. The first handles `#define'
19837 # templates, and the second `#undef' templates.
19838 # And first: Protect against being on the right side of a sed subst in
19839 # config.status. Protect against being in an unquoted here document
19840 # in config.status.
19841 rm -f conftest.defines conftest.undefs
19842 # Using a here document instead of a string reduces the quoting nightmare.
19843 # Putting comments in sed scripts is not portable.
19844 #
19845 # `end' is used to avoid that the second main sed command (meant for
19846 # 0-ary CPP macros) applies to n-ary macro definitions.
19847 # See the Autoconf documentation for `clear'.
19848 cat >confdef2sed.sed <<\EOF
19849 s/[\\&,]/\\&/g
19850 s,[\\$`],\\&,g
19851 t clear
19852 : clear
19853 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
19854 t end
19855 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19856 : end
19857 EOF
19858 # If some macros were called several times there might be several times
19859 # the same #defines, which is useless. Nevertheless, we may not want to
19860 # sort them, since we want the *last* AC-DEFINE to be honored.
19861 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19862 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19863 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
19864 rm -f confdef2sed.sed
19865
19866 # This sed command replaces #undef with comments. This is necessary, for
19867 # example, in the case of _POSIX_SOURCE, which is predefined and required
19868 # on some systems where configure will not decide to define it.
19869 cat >>conftest.undefs <<\EOF
19870 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19871 EOF
19872
19873 # Break up conftest.defines because some shells have a limit on the size
19874 # of here documents, and old seds have small limits too (100 cmds).
19875 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19876 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19877 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19878 echo ' :' >>$CONFIG_STATUS
19879 rm -f conftest.tail
19880 while grep . conftest.defines >/dev/null
19881 do
19882 # Write a limited-size here document to $tmp/defines.sed.
19883 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19884 # Speed up: don't consider the non `#define' lines.
19885 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19886 # Work around the forget-to-reset-the-flag bug.
19887 echo 't clr' >>$CONFIG_STATUS
19888 echo ': clr' >>$CONFIG_STATUS
19889 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19890 echo 'CEOF
19891 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19892 rm -f $tmp/in
19893 mv $tmp/out $tmp/in
19894 ' >>$CONFIG_STATUS
19895 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19896 rm -f conftest.defines
19897 mv conftest.tail conftest.defines
19898 done
19899 rm -f conftest.defines
19900 echo ' fi # egrep' >>$CONFIG_STATUS
19901 echo >>$CONFIG_STATUS
19902
19903 # Break up conftest.undefs because some shells have a limit on the size
19904 # of here documents, and old seds have small limits too (100 cmds).
19905 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19906 rm -f conftest.tail
19907 while grep . conftest.undefs >/dev/null
19908 do
19909 # Write a limited-size here document to $tmp/undefs.sed.
19910 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19911 # Speed up: don't consider the non `#undef'
19912 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19913 # Work around the forget-to-reset-the-flag bug.
19914 echo 't clr' >>$CONFIG_STATUS
19915 echo ': clr' >>$CONFIG_STATUS
19916 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19917 echo 'CEOF
19918 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19919 rm -f $tmp/in
19920 mv $tmp/out $tmp/in
19921 ' >>$CONFIG_STATUS
19922 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19923 rm -f conftest.undefs
19924 mv conftest.tail conftest.undefs
19925 done
19926 rm -f conftest.undefs
19927
19928 cat >>$CONFIG_STATUS <<\EOF
19929 # Let's still pretend it is `configure' which instantiates (i.e., don't
19930 # use $as_me), people would be surprised to read:
19931 # /* config.h. Generated automatically by config.status. */
19932 if test x"$ac_file" = x-; then
19933 echo "/* Generated automatically by configure. */" >$tmp/config.h
19934 else
19935 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19936 fi
19937 cat $tmp/in >>$tmp/config.h
19938 rm -f $tmp/in
19939 if test x"$ac_file" != x-; then
19940 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19941 { echo "$as_me:19941: $ac_file is unchanged" >&5
19942 echo "$as_me: $ac_file is unchanged" >&6;}
19943 else
19944 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19945 X"$ac_file" : 'X\(//\)[^/]' \| \
19946 X"$ac_file" : 'X\(//\)$' \| \
19947 X"$ac_file" : 'X\(/\)' \| \
19948 . : '\(.\)' 2>/dev/null ||
19949 echo X"$ac_file" |
19950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19952 /^X\(\/\/\)$/{ s//\1/; q; }
19953 /^X\(\/\).*/{ s//\1/; q; }
19954 s/.*/./; q'`
19955 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19956 { case "$ac_dir" in
19957 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19958 *) as_incr_dir=.;;
19959 esac
19960 as_dummy="$ac_dir"
19961 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19962 case $as_mkdir_dir in
19963 # Skip DOS drivespec
19964 ?:) as_incr_dir=$as_mkdir_dir ;;
19965 *)
19966 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19967 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19968 ;;
19969 esac
19970 done; }
19971
19972 fi
19973 rm -f $ac_file
19974 mv $tmp/config.h $ac_file
19975 fi
19976 else
19977 cat $tmp/config.h
19978 rm -f $tmp/config.h
19979 fi
19980 done
19981 EOF
19982
19983 cat >>$CONFIG_STATUS <<\EOF
19984
19985 { (exit 0); exit 0; }
19986 EOF
19987 chmod +x $CONFIG_STATUS
19988 ac_clean_files=$ac_clean_files_save
19989
19990 # configure is writing to config.log, and then calls config.status.
19991 # config.status does its own redirection, appending to config.log.
19992 # Unfortunately, on DOS this fails, as config.log is still kept open
19993 # by configure, so config.status won't be able to write to it; its
19994 # output is simply discarded. So we exec the FD to /dev/null,
19995 # effectively closing config.log, so it can be properly (re)opened and
19996 # appended to by config.status. When coming back to configure, we
19997 # need to make the FD available again.
19998 if test "$no_create" != yes; then
19999 ac_cs_success=:
20000 exec 5>/dev/null
20001 $SHELL $CONFIG_STATUS || ac_cs_success=false
20002 exec 5>>config.log
20003 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20004 # would make configure fail if this is the last instruction.
20005 $ac_cs_success || { (exit 1); exit 1; }
20006 fi
20007
20008