configure revision 1.1.1.18 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20210509.
4 #
5 # Copyright 2003-2020,2021 Thomas E. Dickey
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr=expr
37 else
38 as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
51 fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s=ln
54 else
55 as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset="unset"
64 else
65 as_unset="false"
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS=" $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS=
101 MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : "${ac_max_here_lines=38}"
108
109 ac_unique_file="charproc.c"
110 # Factoring default headers for most tests.
111 ac_includes_default="\
112 #include <stdio.h>
113 #if HAVE_SYS_TYPES_H
114 # include <sys/types.h>
115 #endif
116 #if HAVE_SYS_STAT_H
117 # include <sys/stat.h>
118 #endif
119 #if STDC_HEADERS
120 # include <stdlib.h>
121 # include <stddef.h>
122 #else
123 # if HAVE_STDLIB_H
124 # include <stdlib.h>
125 # endif
126 #endif
127 #if HAVE_STRING_H
128 # if !STDC_HEADERS && HAVE_MEMORY_H
129 # include <memory.h>
130 # endif
131 # include <string.h>
132 #endif
133 #if HAVE_STRINGS_H
134 # include <strings.h>
135 #endif
136 #if HAVE_INTTYPES_H
137 # include <inttypes.h>
138 #else
139 # if HAVE_STDINT_H
140 # include <stdint.h>
141 # endif
142 #endif
143 #if HAVE_UNISTD_H
144 # include <unistd.h>
145 #endif"
146
147 # Initialize some variables set by options.
148 ac_init_help=
149 ac_init_version=false
150 # The variables have the same names as the options, with
151 # dashes changed to underlines.
152 cache_file=/dev/null
153 exec_prefix=NONE
154 no_create=
155 no_recursion=
156 prefix=NONE
157 program_prefix=NONE
158 program_suffix=NONE
159 program_transform_name=s,x,x,
160 silent=
161 site=
162 srcdir=
163 verbose=
164 x_includes=NONE
165 x_libraries=NONE
166
167 # Installation directory options.
168 # These are left unexpanded so users can "make install exec_prefix=/foo"
169 # and all the variables that are supposed to be based on exec_prefix
170 # by default will actually change.
171 # Use braces instead of parens because sh, perl, etc. also accept them.
172 bindir='${exec_prefix}/bin'
173 sbindir='${exec_prefix}/sbin'
174 libexecdir='${exec_prefix}/libexec'
175 datarootdir='${prefix}/share'
176 datadir='${datarootdir}'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 runstatedir='${localstatedir}/run'
181 libdir='${exec_prefix}/lib'
182 includedir='${prefix}/include'
183 oldincludedir='/usr/include'
184 infodir='${datarootdir}/info'
185 mandir='${datarootdir}/man'
186
187 # Identity of this package.
188 PACKAGE_NAME=
189 PACKAGE_TARNAME=
190 PACKAGE_VERSION=
191 PACKAGE_STRING=
192 PACKAGE_BUGREPORT=
193
194 ac_prev=
195 for ac_option
196 do
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
200 ac_prev=
201 continue
202 fi
203
204 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205
206 # Accept the important Cygnus configure options, so we can diagnose typos.
207
208 case "$ac_option" in
209
210 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 ac_prev=bindir ;;
212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 bindir=$ac_optarg ;;
214
215 -build | --build | --buil | --bui | --bu)
216 ac_prev=build_alias ;;
217 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
218 build_alias=$ac_optarg ;;
219
220 -cache-file | --cache-file | --cache-fil | --cache-fi \
221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
222 ac_prev=cache_file ;;
223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
225 cache_file=$ac_optarg ;;
226
227 --config-cache | -C)
228 cache_file=config.cache ;;
229
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 ac_prev=datadir ;;
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 | --da=*)
234 datadir=$ac_optarg ;;
235
236 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
237 | --dataroo | --dataro | --datar)
238 ac_prev=datarootdir ;;
239 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
240 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
241 datarootdir=$ac_optarg ;;
242
243 -disable-* | --disable-*)
244 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
245 # Reject names that are not valid shell variable names.
246 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
247 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
248 { (exit 1); exit 1; }; }
249 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
250 eval "enable_$ac_feature=no" ;;
251
252 -enable-* | --enable-*)
253 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
254 # Reject names that are not valid shell variable names.
255 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
256 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
257 { (exit 1); exit 1; }; }
258 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
259 case "$ac_option" in
260 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 *) ac_optarg=yes ;;
262 esac
263 eval "enable_$ac_feature='$ac_optarg'" ;;
264
265 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
266 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
267 | --exec | --exe | --ex)
268 ac_prev=exec_prefix ;;
269 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
270 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
271 | --exec=* | --exe=* | --ex=*)
272 exec_prefix=$ac_optarg ;;
273
274 -gas | --gas | --ga | --g)
275 # Obsolete; use --with-gas.
276 with_gas=yes ;;
277
278 -help | --help | --hel | --he | -h)
279 ac_init_help=long ;;
280 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
281 ac_init_help=recursive ;;
282 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
283 ac_init_help=short ;;
284
285 -host | --host | --hos | --ho)
286 ac_prev=host_alias ;;
287 -host=* | --host=* | --hos=* | --ho=*)
288 host_alias=$ac_optarg ;;
289
290 -includedir | --includedir | --includedi | --included | --include \
291 | --includ | --inclu | --incl | --inc)
292 ac_prev=includedir ;;
293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
294 | --includ=* | --inclu=* | --incl=* | --inc=*)
295 includedir=$ac_optarg ;;
296
297 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 ac_prev=infodir ;;
299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
300 infodir=$ac_optarg ;;
301
302 -libdir | --libdir | --libdi | --libd)
303 ac_prev=libdir ;;
304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 libdir=$ac_optarg ;;
306
307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
308 | --libexe | --libex | --libe)
309 ac_prev=libexecdir ;;
310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
311 | --libexe=* | --libex=* | --libe=*)
312 libexecdir=$ac_optarg ;;
313
314 -localstatedir | --localstatedir | --localstatedi | --localstated \
315 | --localstate | --localstat | --localsta | --localst \
316 | --locals | --local | --loca | --loc | --lo)
317 ac_prev=localstatedir ;;
318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
321 localstatedir=$ac_optarg ;;
322
323 -runstatedir | --runstatedir | --runstatedi | --runstated \
324 | --runstate | --runstat | --runsta | --runst \
325 | --runs | --run | --ru)
326 ac_prev=runstatedir ;;
327 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
328 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
329 | --runs=* | --run=* | --ru=*)
330 runstatedir=$ac_optarg ;;
331
332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 ac_prev=mandir ;;
334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
335 mandir=$ac_optarg ;;
336
337 -nfp | --nfp | --nf)
338 # Obsolete; use --without-fp.
339 with_fp=no ;;
340
341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
342 | --no-cr | --no-c)
343 no_create=yes ;;
344
345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
347 no_recursion=yes ;;
348
349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
351 | --oldin | --oldi | --old | --ol | --o)
352 ac_prev=oldincludedir ;;
353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
356 oldincludedir=$ac_optarg ;;
357
358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 ac_prev=prefix ;;
360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
361 prefix=$ac_optarg ;;
362
363 -program-prefix | --program-prefix | --program-prefi | --program-pref \
364 | --program-pre | --program-pr | --program-p)
365 ac_prev=program_prefix ;;
366 -program-prefix=* | --program-prefix=* | --program-prefi=* \
367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
368 program_prefix=$ac_optarg ;;
369
370 -program-suffix | --program-suffix | --program-suffi | --program-suff \
371 | --program-suf | --program-su | --program-s)
372 ac_prev=program_suffix ;;
373 -program-suffix=* | --program-suffix=* | --program-suffi=* \
374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
375 program_suffix=$ac_optarg ;;
376
377 -program-transform-name | --program-transform-name \
378 | --program-transform-nam | --program-transform-na \
379 | --program-transform-n | --program-transform- \
380 | --program-transform | --program-transfor \
381 | --program-transfo | --program-transf \
382 | --program-trans | --program-tran \
383 | --progr-tra | --program-tr | --program-t)
384 ac_prev=program_transform_name ;;
385 -program-transform-name=* | --program-transform-name=* \
386 | --program-transform-nam=* | --program-transform-na=* \
387 | --program-transform-n=* | --program-transform-=* \
388 | --program-transform=* | --program-transfor=* \
389 | --program-transfo=* | --program-transf=* \
390 | --program-trans=* | --program-tran=* \
391 | --progr-tra=* | --program-tr=* | --program-t=*)
392 program_transform_name=$ac_optarg ;;
393
394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
395 | -silent | --silent | --silen | --sile | --sil)
396 silent=yes ;;
397
398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 ac_prev=sbindir ;;
400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 | --sbi=* | --sb=*)
402 sbindir=$ac_optarg ;;
403
404 -sharedstatedir | --sharedstatedir | --sharedstatedi \
405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
406 | --sharedst | --shareds | --shared | --share | --shar \
407 | --sha | --sh)
408 ac_prev=sharedstatedir ;;
409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 | --sha=* | --sh=*)
413 sharedstatedir=$ac_optarg ;;
414
415 -site | --site | --sit)
416 ac_prev=site ;;
417 -site=* | --site=* | --sit=*)
418 site=$ac_optarg ;;
419
420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 ac_prev=srcdir ;;
422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
423 srcdir=$ac_optarg ;;
424
425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
426 | --syscon | --sysco | --sysc | --sys | --sy)
427 ac_prev=sysconfdir ;;
428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
430 sysconfdir=$ac_optarg ;;
431
432 -target | --target | --targe | --targ | --tar | --ta | --t)
433 ac_prev=target_alias ;;
434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
435 target_alias=$ac_optarg ;;
436
437 -v | -verbose | --verbose | --verbos | --verbo | --verb)
438 verbose=yes ;;
439
440 -version | --version | --versio | --versi | --vers | -V)
441 ac_init_version=: ;;
442
443 -with-* | --with-*)
444 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
445 # Reject names that are not valid shell variable names.
446 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
447 { echo "$as_me: error: invalid package name: $ac_package" >&2
448 { (exit 1); exit 1; }; }
449 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
450 case "$ac_option" in
451 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
452 *) ac_optarg=yes ;;
453 esac
454 eval "with_$ac_package='$ac_optarg'" ;;
455
456 -without-* | --without-*)
457 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
458 # Reject names that are not valid shell variable names.
459 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
460 { echo "$as_me: error: invalid package name: $ac_package" >&2
461 { (exit 1); exit 1; }; }
462 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
463 eval "with_$ac_package=no" ;;
464
465 --x)
466 # Obsolete; use --with-x.
467 with_x=yes ;;
468
469 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
470 | --x-incl | --x-inc | --x-in | --x-i)
471 ac_prev=x_includes ;;
472 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
473 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
474 x_includes=$ac_optarg ;;
475
476 -x-libraries | --x-libraries | --x-librarie | --x-librari \
477 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
478 ac_prev=x_libraries ;;
479 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
480 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
481 x_libraries=$ac_optarg ;;
482
483 -*) { echo "$as_me: error: unrecognized option: $ac_option
484 Try \`$0 --help' for more information." >&2
485 { (exit 1); exit 1; }; }
486 ;;
487
488 *=*)
489 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
490 # Reject names that are not valid shell variable names.
491 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
492 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
493 { (exit 1); exit 1; }; }
494 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
495 eval "$ac_envvar='$ac_optarg'"
496 export "$ac_envvar" ;;
497
498 *)
499 # FIXME: should be removed in autoconf 3.0.
500 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
501 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
502 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
503 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
504 ;;
505
506 esac
507 done
508
509 if test -n "$ac_prev"; then
510 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
511 { echo "$as_me: error: missing argument to $ac_option" >&2
512 { (exit 1); exit 1; }; }
513 fi
514
515 # Be sure to have absolute paths.
516 for ac_var in exec_prefix prefix
517 do
518 eval ac_val=$`echo "$ac_var"`
519 case "$ac_val" in
520 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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 # Be sure to have absolute paths.
527 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
528 localstatedir libdir includedir oldincludedir infodir mandir
529 do
530 eval ac_val=$`echo "$ac_var"`
531 case "$ac_val" in
532 [\\/$]* | ?:[\\/]* ) ;;
533 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
534 { (exit 1); exit 1; }; };;
535 esac
536 done
537
538 # There might be people who depend on the old broken behavior: `$host'
539 # used to hold the argument of --host etc.
540 build=$build_alias
541 host=$host_alias
542 target=$target_alias
543
544 # FIXME: should be removed in autoconf 3.0.
545 if test "x$host_alias" != x; then
546 if test "x$build_alias" = x; then
547 cross_compiling=maybe
548 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
549 If a cross compiler is detected then cross compile mode will be used." >&2
550 elif test "x$build_alias" != "x$host_alias"; then
551 cross_compiling=yes
552 fi
553 fi
554
555 ac_tool_prefix=
556 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557
558 test "$silent" = yes && exec 6>/dev/null
559
560 # Find the source files, if location was not specified.
561 if test -z "$srcdir"; then
562 ac_srcdir_defaulted=yes
563 # Try the directory containing this script, then its parent.
564 ac_prog=$0
565 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
566 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 srcdir=$ac_confdir
568 if test ! -r "$srcdir/$ac_unique_file"; then
569 srcdir=..
570 fi
571 else
572 ac_srcdir_defaulted=no
573 fi
574 if test ! -r "$srcdir/$ac_unique_file"; then
575 if test "$ac_srcdir_defaulted" = yes; then
576 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
577 { (exit 1); exit 1; }; }
578 else
579 { echo "$as_me: error: cannot find sources in $srcdir" >&2
580 { (exit 1); exit 1; }; }
581 fi
582 fi
583 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
584 ac_env_build_alias_set=${build_alias+set}
585 ac_env_build_alias_value=$build_alias
586 ac_cv_env_build_alias_set=${build_alias+set}
587 ac_cv_env_build_alias_value=$build_alias
588 ac_env_host_alias_set=${host_alias+set}
589 ac_env_host_alias_value=$host_alias
590 ac_cv_env_host_alias_set=${host_alias+set}
591 ac_cv_env_host_alias_value=$host_alias
592 ac_env_target_alias_set=${target_alias+set}
593 ac_env_target_alias_value=$target_alias
594 ac_cv_env_target_alias_set=${target_alias+set}
595 ac_cv_env_target_alias_value=$target_alias
596 ac_env_CC_set=${CC+set}
597 ac_env_CC_value=$CC
598 ac_cv_env_CC_set=${CC+set}
599 ac_cv_env_CC_value=$CC
600 ac_env_CFLAGS_set=${CFLAGS+set}
601 ac_env_CFLAGS_value=$CFLAGS
602 ac_cv_env_CFLAGS_set=${CFLAGS+set}
603 ac_cv_env_CFLAGS_value=$CFLAGS
604 ac_env_LDFLAGS_set=${LDFLAGS+set}
605 ac_env_LDFLAGS_value=$LDFLAGS
606 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
607 ac_cv_env_LDFLAGS_value=$LDFLAGS
608 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
609 ac_env_CPPFLAGS_value=$CPPFLAGS
610 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
611 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
612 ac_env_CPP_set=${CPP+set}
613 ac_env_CPP_value=$CPP
614 ac_cv_env_CPP_set=${CPP+set}
615 ac_cv_env_CPP_value=$CPP
616
617 #
618 # Report the --help message.
619 #
620 if test "$ac_init_help" = "long"; then
621 # Omit some internal or obsolete options to make the list less imposing.
622 # This message is too long to be a string in the A/UX 3.1 sh.
623 cat <<EOF
624 \`configure' configures this package to adapt to many kinds of systems.
625
626 Usage: $0 [OPTION]... [VAR=VALUE]...
627
628 To assign environment variables (e.g., CC, CFLAGS...), specify them as
629 VAR=VALUE. See below for descriptions of some of the useful variables.
630
631 Defaults for the options are specified in brackets.
632
633 Configuration:
634 -h, --help display this help and exit
635 --help=short display options specific to this package
636 --help=recursive display the short help of all the included packages
637 -V, --version display version information and exit
638 -q, --quiet, --silent do not print \`checking...' messages
639 --cache-file=FILE cache test results in FILE [disabled]
640 -C, --config-cache alias for \`--cache-file=config.cache'
641 -n, --no-create do not create output files
642 --srcdir=DIR find the sources in DIR [configure dir or \`..']
643
644 EOF
645
646 cat <<EOF
647 Installation directories:
648 --prefix=PREFIX install architecture-independent files in PREFIX
649 [$ac_default_prefix]
650 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
651 [PREFIX]
652
653 By default, \`make install' will install all the files in
654 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
655 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
656 for instance \`--prefix=\$HOME'.
657
658 For better control, use the options below.
659
660 Fine tuning of the installation directories:
661 --bindir=DIR user executables [EPREFIX/bin]
662 --sbindir=DIR system admin executables [EPREFIX/sbin]
663 --libexecdir=DIR program executables [EPREFIX/libexec]
664 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
666 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
667 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
668 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
669 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
675 EOF
676
677 cat <<\EOF
678
679 Program names:
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
683
684 X features:
685 --x-includes=DIR X include files are in DIR
686 --x-libraries=DIR X library files are in DIR
687
688 System types:
689 --build=BUILD configure for building on BUILD [guessed]
690 --host=HOST build programs to run on HOST [BUILD]
691 EOF
692 fi
693
694 if test -n "$ac_init_help"; then
695
696 cat <<\EOF
697
698 Optional Features:
699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
701
702 Optional Packages:
703 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
704 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
705
706 Compile/Install Options:
707 --disable-full-tgetent disable check for full tgetent function
708 --with-app-class=XXX override X applications class (default XTerm)
709 --with-app-defaults=DIR directory in which to install resource files (EPREFIX/lib/X11/app-defaults)
710 --with-icon-name=XXXX override icon name (default: mini.xterm)
711 --with-icon-symlink=XXX make symbolic link for icon name (default: xterm)
712 --with-pixmapdir=DIR directory in which to install pixmaps (DATADIR/pixmaps)
713 --with-icondir=DIR directory in which to install icons for desktop
714 --with-icon-theme=XXX install icons into desktop theme (hicolor)
715 --disable-desktop disable install of xterm desktop files
716 --with-desktop-category=XXX one or more desktop catgories or auto
717 --with-reference=XXX program to use as permissions-reference
718 --with-xterm-symlink=XXX make symbolic link to installed xterm
719 --disable-openpty disable openpty, prefer other interfaces
720 --disable-setuid disable setuid in xterm, do not install setuid/setgid
721 --disable-setgid disable setgid in xterm, do not install setuid/setgid
722 --with-setuid=XXX use the given setuid user
723 --with-utmp-setgid=XXX use setgid to match utmp/utmpx file
724 --with-utempter use utempter library for access to utmp
725 --with-tty-group=XXX use XXX for the tty-group
726 --with-x use the X Window System
727 --with-pkg-config{=path} enable/disable use of pkg-config
728 --with-xpm=DIR use Xpm library for colored icon, may specify path
729 --without-xinerama do not use Xinerama extension for multiscreen support
730 --with-Xaw3d link with Xaw 3d library
731 --with-Xaw3dxft link with Xaw 3d xft library
732 --with-neXtaw link with neXT Athena library
733 --with-XawPlus link with Athena-Plus library
734 --disable-xcursor disable cursorTheme resource
735 --enable-narrowproto enable narrow prototypes for X libraries
736 --disable-imake disable use of imake for definitions
737 --with-man2html=XXX use XXX rather than groff
738 Terminal Configuration:
739 --with-terminal-id=V set default decTerminalID (default: vt420)
740 --with-terminal-type=T set default $TERM (default: xterm)
741 --enable-backarrow-key set default backarrowKey resource (default: true)
742 --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
743 --enable-delete-is-del set default deleteIsDEL resource (default: maybe)
744 --enable-pty-erase set default ptyInitialErase resource (default: maybe)
745 --enable-alt-sends-esc set default altSendsEscape resource (default: no)
746 --enable-meta-sends-esc set default metaSendsEscape resource (default: no)
747 --with-own-terminfo=P set default $TERMINFO (default: from environment)
748 --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value
749 Optional Features:
750 --disable-active-icon disable X11R6.3 active-icon feature
751 --disable-ansi-color disable ANSI color
752 --disable-16-color disable 16-color support
753 --disable-256-color disable 256-color support
754 --disable-direct-color disable direct-color support
755 --disable-88-color disable 88-color support
756 --disable-blink-cursor disable support for blinking cursor
757 --enable-broken-osc allow broken Linux OSC-strings
758 --disable-broken-st disallow broken string-terminators
759 --enable-builtin-xpms compile-in icon data
760 --disable-c1-print disallow -k8 option for printable 128-159
761 --disable-bold-color disable PC-style mapping of bold colors
762 --disable-color-class disable separate color class resources
763 --disable-color-mode disable default colorMode resource
764 --disable-highlighting disable support for color highlighting
765 --disable-doublechars disable support for double-size chars
766 --disable-boxchars disable fallback-support for box chars
767 --enable-exec-xterm enable "spawn-new-terminal" action
768 --enable-double-buffer enable double-buffering in default resources
769 --disable-freetype disable freetype library-support
770 --with-freetype-config configure script to use for FreeType
771 --with-freetype-cflags -D/-I options for compiling with FreeType
772 --with-freetype-libs -L/-l options to link FreeType
773 --enable-hp-fkeys enable support for HP-style function keys
774 --enable-sco-fkeys enable support for SCO-style function keys
775 --disable-sun-fkeys disable support for Sun-style function keys
776 --disable-fifo-lines disable FIFO-storage for saved-lines
777 --disable-i18n disable internationalization
778 --disable-initial-erase disable setup for stty erase
779 --disable-input-method disable input-method
780 --enable-load-vt-fonts enable load-vt-fonts() action
781 --enable-logging enable logging
782 --enable-logfile-exec enable exec'd logfile filter
783 --disable-maximize disable actions for iconify/deiconify/maximize/restore
784 --disable-num-lock disable NumLock keypad support
785 --disable-paste64 disable get/set base64 selection data
786 --disable-pty-handshake disable pty-handshake support
787 --enable-readline-mouse enable support for mouse in readline applications
788 --disable-regex disable regular-expression selections
789 --with-pcre2 use PCRE2 for regular-expressions
790 --with-pcre use PCRE for regular-expressions
791 --disable-rightbar disable right-scrollbar support
792 --disable-samename disable check for redundant name-change
793 --disable-selection-ops disable selection-action operations
794 --disable-session-mgt disable support for session management
795 --enable-status-line enable support for status-line
796 --disable-tcap-fkeys disable termcap function-keys support
797 --disable-tcap-query disable compiled-in termcap-query support
798 --disable-tek4014 disable tek4014 emulation
799 --enable-toolbar compile-in toolbar for pulldown menus
800 --disable-vt52 disable VT52 emulation
801 --disable-wide-attrs disable wide-attribute support
802 --disable-wide-chars disable wide-character support
803 --enable-16bit-chars enable 16-bit character support
804 --enable-mini-luit enable mini-luit (built-in Latin9 support)
805 --disable-luit enable luit filter (Unicode translation)
806 --enable-dabbrev enable dynamic-abbreviation support
807 --enable-dec-locator enable DECterm Locator support
808 --disable-screen-dumps disable XHTML and SVG screen dumps
809 --enable-regis-graphics enable ReGIS graphics support
810 --disable-sixel-graphics disable sixel graphics support
811 --disable-print-graphics disable screen dump to sixel support
812 --disable-rectangles disable VT420 rectangle support
813 --disable-ziconbeep disable -ziconbeep option
814 Testing/development Options:
815 --enable-trace test: set to enable debugging traces
816 --with-dmalloc test: use Gray Watson's dmalloc library
817 --with-dbmalloc test: use Conor Cahill's dbmalloc library
818 --with-valgrind test: use valgrind
819 --disable-leaks test: free permanent memory, analyze leaks
820 --disable-echo do not display "compiling" commands
821 --enable-xmc-glitch test: enable xmc magic-cookie emulation
822 --enable-warnings test: turn on gcc compiler warnings
823 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
824 --disable-rpath-hack don't add rpath options for additional libraries
825
826 Some influential environment variables:
827 CC C compiler command
828 CFLAGS C compiler flags
829 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
830 nonstandard directory <lib dir>
831 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
832 headers in a nonstandard directory <include dir>
833 CPP C preprocessor
834
835 Use these variables to override the choices made by `configure' or to help
836 it to find libraries and programs with nonstandard names/locations.
837
838 EOF
839 fi
840
841 if test "$ac_init_help" = "recursive"; then
842 # If there are subdirs, report their specific --help.
843 ac_popdir=`pwd`
844 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
845 cd "$ac_subdir"
846 # A "../" for each directory in /$ac_subdir.
847 ac_dots=`echo "$ac_subdir" |
848 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
849
850 case "$srcdir" in
851 .) # No --srcdir option. We are building in place.
852 ac_sub_srcdir="$srcdir" ;;
853 [\\/]* | ?:[\\/]* ) # Absolute path.
854 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
855 *) # Relative path.
856 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
857 esac
858
859 # Check for guested configure; otherwise get Cygnus style configure.
860 if test -f "$ac_sub_srcdir/configure.gnu"; then
861 echo
862 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
863 elif test -f "$ac_sub_srcdir/configure"; then
864 echo
865 $SHELL "$ac_sub_srcdir/configure" --help=recursive
866 elif test -f "$ac_sub_srcdir/configure.ac" ||
867 test -f "$ac_sub_srcdir/configure.in"; then
868 echo
869 "$ac_configure" --help
870 else
871 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
872 fi
873 cd "$ac_popdir"
874 done
875 fi
876
877 test -n "$ac_init_help" && exit 0
878 if "$ac_init_version"; then
879 cat <<\EOF
880
881 Copyright 2003-2020,2021 Thomas E. Dickey
882 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
883 Free Software Foundation, Inc.
884 This configure script is free software; the Free Software Foundation
885 gives unlimited permission to copy, distribute and modify it.
886 EOF
887 exit 0
888 fi
889 exec 5>config.log
890 cat >&5 <<EOF
891 This file contains any messages produced by compilers while
892 running configure, to aid debugging if configure makes a mistake.
893
894 It was created by $as_me, which was
895 generated by GNU Autoconf 2.52.20210509. Invocation command line was
896
897 $ $0 $@
898
899 EOF
900 {
901 cat <<_ASUNAME
902 ## ---------- ##
903 ## Platform. ##
904 ## ---------- ##
905
906 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
907 uname -m = `(uname -m) 2>/dev/null || echo unknown`
908 uname -r = `(uname -r) 2>/dev/null || echo unknown`
909 uname -s = `(uname -s) 2>/dev/null || echo unknown`
910 uname -v = `(uname -v) 2>/dev/null || echo unknown`
911
912 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
913 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
914
915 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
916 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
917 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
918 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
919 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
920 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
921 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
922
923 PATH = $PATH
924
925 _ASUNAME
926 } >&5
927
928 cat >&5 <<EOF
929 ## ------------ ##
930 ## Core tests. ##
931 ## ------------ ##
932
933 EOF
934
935 # Keep a trace of the command line.
936 # Strip out --no-create and --no-recursion so they do not pile up.
937 # Also quote any args containing shell meta-characters.
938 ac_configure_args=
939 ac_sep=
940 for ac_arg
941 do
942 case "$ac_arg" in
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c) ;;
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
947 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
948 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
949 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
950 ac_sep=" " ;;
951 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
952 ac_sep=" " ;;
953 esac
954 # Get rid of the leading space.
955 done
956
957 # When interrupted or exit'd, cleanup temporary files, and complete
958 # config.log. We remove comments because anyway the quotes in there
959 # would cause problems or look ugly.
960 trap 'exit_status=$?
961 # Save into config.log some information that might help in debugging.
962 echo >&5
963 echo "## ----------------- ##" >&5
964 echo "## Cache variables. ##" >&5
965 echo "## ----------------- ##" >&5
966 echo >&5
967 # The following way of writing the cache mishandles newlines in values,
968 {
969 (set) 2>&1 |
970 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
971 *ac_space=\ *)
972 sed -n \
973 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
975 ;;
976 *)
977 sed -n \
978 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
979 ;;
980 esac;
981 } >&5
982 sed "/^$/d" confdefs.h >conftest.log
983 if test -s conftest.log; then
984 echo >&5
985 echo "## ------------ ##" >&5
986 echo "## confdefs.h. ##" >&5
987 echo "## ------------ ##" >&5
988 echo >&5
989 cat conftest.log >&5
990 fi
991 (echo; echo) >&5
992 test "$ac_signal" != 0 &&
993 echo "$as_me: caught signal $ac_signal" >&5
994 echo "$as_me: exit $exit_status" >&5
995 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
996 exit $exit_status
997 ' 0
998 for ac_signal in 1 2 13 15; do
999 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1000 done
1001 ac_signal=0
1002
1003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1004 rm -rf conftest* confdefs.h
1005 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1006 echo >confdefs.h
1007
1008 # Let the site file select an alternate cache file if it wants to.
1009 # Prefer explicitly selected file to automatically selected ones.
1010 if test -z "$CONFIG_SITE"; then
1011 if test "x$prefix" != xNONE; then
1012 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1013 else
1014 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1015 fi
1016 fi
1017 for ac_site_file in $CONFIG_SITE; do
1018 if test -r "$ac_site_file"; then
1019 { echo "$as_me:1019: loading site script $ac_site_file" >&5
1020 echo "$as_me: loading site script $ac_site_file" >&6;}
1021 cat "$ac_site_file" >&5
1022 . "$ac_site_file"
1023 fi
1024 done
1025
1026 if test -r "$cache_file"; then
1027 # Some versions of bash will fail to source /dev/null (special
1028 # files actually), so we avoid doing that.
1029 if test -f "$cache_file"; then
1030 { echo "$as_me:1030: loading cache $cache_file" >&5
1031 echo "$as_me: loading cache $cache_file" >&6;}
1032 case $cache_file in
1033 [\\/]* | ?:[\\/]* ) . $cache_file;;
1034 *) . ./$cache_file;;
1035 esac
1036 fi
1037 else
1038 { echo "$as_me:1038: creating cache $cache_file" >&5
1039 echo "$as_me: creating cache $cache_file" >&6;}
1040 >$cache_file
1041 fi
1042
1043 # Check that the precious variables saved in the cache have kept the same
1044 # value.
1045 ac_cache_corrupted=false
1046 for ac_var in `(set) 2>&1 |
1047 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1048 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1049 eval ac_new_set=\$ac_env_${ac_var}_set
1050 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1051 eval ac_new_val="\$ac_env_${ac_var}_value"
1052 case "$ac_old_set,$ac_new_set" in
1053 set,)
1054 { echo "$as_me:1054: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1055 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1056 ac_cache_corrupted=: ;;
1057 ,set)
1058 { echo "$as_me:1058: error: \`$ac_var' was not set in the previous run" >&5
1059 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1060 ac_cache_corrupted=: ;;
1061 ,);;
1062 *)
1063 if test "x$ac_old_val" != "x$ac_new_val"; then
1064 { echo "$as_me:1064: error: \`$ac_var' has changed since the previous run:" >&5
1065 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1066 { echo "$as_me:1066: former value: $ac_old_val" >&5
1067 echo "$as_me: former value: $ac_old_val" >&2;}
1068 { echo "$as_me:1068: current value: $ac_new_val" >&5
1069 echo "$as_me: current value: $ac_new_val" >&2;}
1070 ac_cache_corrupted=:
1071 fi;;
1072 esac
1073 # Pass precious variables to config.status. It doesn't matter if
1074 # we pass some twice (in addition to the command line arguments).
1075 if test "$ac_new_set" = set; then
1076 case "$ac_new_val" in
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1079 ac_configure_args="$ac_configure_args '$ac_arg'"
1080 ;;
1081 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1082 ;;
1083 esac
1084 fi
1085 done
1086 if "$ac_cache_corrupted"; then
1087 { echo "$as_me:1087: error: changes in the environment can compromise the build" >&5
1088 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1089 { { echo "$as_me:1089: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1090 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1091 { (exit 1); exit 1; }; }
1092 fi
1093
1094 ac_ext=c
1095 ac_cpp='$CPP $CPPFLAGS'
1096 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1097 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1099 ac_main_return="return"
1100
1101 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1102 *c*,-n*) ECHO_N=
1103 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1104 ECHO_T=' '
1105 ;;
1106 *c*,* ) ECHO_N=-n
1107 ECHO_C=
1108 ECHO_T=
1109 ;;
1110 *) ECHO_N=
1111 ECHO_C='\c'
1112 ECHO_T=
1113 ;;
1114 esac
1115 echo "#! $SHELL" >conftest.sh
1116 echo "exit 0" >>conftest.sh
1117 chmod +x conftest.sh
1118 if { (echo "$as_me:1118: PATH=\".;.\"; conftest.sh") >&5
1119 (PATH=".;."; conftest.sh) 2>&5
1120 ac_status=$?
1121 echo "$as_me:1121: \$? = $ac_status" >&5
1122 (exit "$ac_status"); }; then
1123 ac_path_separator=';'
1124 else
1125 ac_path_separator=:
1126 fi
1127 PATH_SEPARATOR="$ac_path_separator"
1128 rm -f conftest.sh
1129
1130 ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
1131
1132 ac_aux_dir=
1133 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1134 if test -f "$ac_dir/install-sh"; then
1135 ac_aux_dir=$ac_dir
1136 ac_install_sh="$ac_aux_dir/install-sh -c"
1137 break
1138 elif test -f "$ac_dir/install.sh"; then
1139 ac_aux_dir=$ac_dir
1140 ac_install_sh="$ac_aux_dir/install.sh -c"
1141 break
1142 elif test -f "$ac_dir/shtool"; then
1143 ac_aux_dir=$ac_dir
1144 ac_install_sh="$ac_aux_dir/shtool install -c"
1145 break
1146 fi
1147 done
1148 if test -z "$ac_aux_dir"; then
1149 { { echo "$as_me:1149: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1150 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1151 { (exit 1); exit 1; }; }
1152 fi
1153 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1154 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1155 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1156
1157 # Make sure we can run config.sub.
1158 $ac_config_sub sun4 >/dev/null 2>&1 ||
1159 { { echo "$as_me:1159: error: cannot run $ac_config_sub" >&5
1160 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1161 { (exit 1); exit 1; }; }
1162
1163 echo "$as_me:1163: checking build system type" >&5
1164 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1165 if test "${ac_cv_build+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1167 else
1168 ac_cv_build_alias=$build_alias
1169 test -z "$ac_cv_build_alias" &&
1170 ac_cv_build_alias=`$ac_config_guess`
1171 test -z "$ac_cv_build_alias" &&
1172 { { echo "$as_me:1172: error: cannot guess build type; you must specify one" >&5
1173 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1174 { (exit 1); exit 1; }; }
1175 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1176 { { echo "$as_me:1176: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1177 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1178 { (exit 1); exit 1; }; }
1179
1180 fi
1181 echo "$as_me:1181: result: $ac_cv_build" >&5
1182 echo "${ECHO_T}$ac_cv_build" >&6
1183 build=$ac_cv_build
1184 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1185 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1186 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1187
1188 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1189 echo "$as_me:1189: checking host system type" >&5
1190 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1191 if test "${ac_cv_host+set}" = set; then
1192 echo $ECHO_N "(cached) $ECHO_C" >&6
1193 else
1194 ac_cv_host_alias=$host_alias
1195 test -z "$ac_cv_host_alias" &&
1196 ac_cv_host_alias=$ac_cv_build_alias
1197 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1198 { { echo "$as_me:1198: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1199 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1200 { (exit 1); exit 1; }; }
1201
1202 fi
1203 echo "$as_me:1203: result: $ac_cv_host" >&5
1204 echo "${ECHO_T}$ac_cv_host" >&6
1205 host=$ac_cv_host
1206 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1207 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1208 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1209
1210 system_name="$host_os"
1211 else
1212 system_name="`(uname -s -r) 2>/dev/null`"
1213 if test -z "$system_name" ; then
1214 system_name="`(hostname) 2>/dev/null`"
1215 fi
1216 fi
1217 test -n "$system_name" &&
1218 cat >>confdefs.h <<EOF
1219 #define SYSTEM_NAME "$system_name"
1220 EOF
1221
1222 if test "${cf_cv_system_name+set}" = set; then
1223 echo $ECHO_N "(cached) $ECHO_C" >&6
1224 else
1225 cf_cv_system_name="$system_name"
1226 fi
1227
1228 test -z "$system_name" && system_name="$cf_cv_system_name"
1229 test -n "$cf_cv_system_name" && echo "$as_me:1229: result: Configuring for $cf_cv_system_name" >&5
1230 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1231
1232 if test ".$system_name" != ".$cf_cv_system_name" ; then
1233 echo "$as_me:1233: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1234 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1235 { { echo "$as_me:1235: error: \"Please remove config.cache and try again.\"" >&5
1236 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1237 { (exit 1); exit 1; }; }
1238 fi
1239
1240 ### checks for alternative programs
1241
1242 case "$host_os" in
1243 (openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}"
1244 : "${CPPFLAGS=\"-D_ALL_SOURCE\"}"
1245 : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}"
1246 : "${CC=c89}";;
1247 (darwin*)
1248 : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";;
1249 esac
1250
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1254 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 ac_main_return="return"
1257 if test -n "$ac_tool_prefix"; then
1258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1259 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 else
1265 if test -n "$CC"; then
1266 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
1275 echo "$as_me:1275: found $ac_dir/$ac_word" >&5
1276 break
1277 done
1278
1279 fi
1280 fi
1281 CC=$ac_cv_prog_CC
1282 if test -n "$CC"; then
1283 echo "$as_me:1283: result: $CC" >&5
1284 echo "${ECHO_T}$CC" >&6
1285 else
1286 echo "$as_me:1286: result: no" >&5
1287 echo "${ECHO_T}no" >&6
1288 fi
1289
1290 fi
1291 if test -z "$ac_cv_prog_CC"; then
1292 ac_ct_CC=$CC
1293 # Extract the first word of "gcc", so it can be a program name with args.
1294 set dummy gcc; ac_word=$2
1295 echo "$as_me:1295: checking for $ac_word" >&5
1296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300 if test -n "$ac_ct_CC"; then
1301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1302 else
1303 ac_save_IFS=$IFS; IFS=$ac_path_separator
1304 ac_dummy="$PATH"
1305 for ac_dir in $ac_dummy; do
1306 IFS=$ac_save_IFS
1307 test -z "$ac_dir" && ac_dir=.
1308 $as_executable_p "$ac_dir/$ac_word" || continue
1309 ac_cv_prog_ac_ct_CC="gcc"
1310 echo "$as_me:1310: found $ac_dir/$ac_word" >&5
1311 break
1312 done
1313
1314 fi
1315 fi
1316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1317 if test -n "$ac_ct_CC"; then
1318 echo "$as_me:1318: result: $ac_ct_CC" >&5
1319 echo "${ECHO_T}$ac_ct_CC" >&6
1320 else
1321 echo "$as_me:1321: result: no" >&5
1322 echo "${ECHO_T}no" >&6
1323 fi
1324
1325 CC=$ac_ct_CC
1326 else
1327 CC="$ac_cv_prog_CC"
1328 fi
1329
1330 if test -z "$CC"; then
1331 if test -n "$ac_tool_prefix"; then
1332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1333 set dummy ${ac_tool_prefix}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_CC+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339 if test -n "$CC"; then
1340 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
1349 echo "$as_me:1349: found $ac_dir/$ac_word" >&5
1350 break
1351 done
1352
1353 fi
1354 fi
1355 CC=$ac_cv_prog_CC
1356 if test -n "$CC"; then
1357 echo "$as_me:1357: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1359 else
1360 echo "$as_me:1360: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1362 fi
1363
1364 fi
1365 if test -z "$ac_cv_prog_CC"; then
1366 ac_ct_CC=$CC
1367 # Extract the first word of "cc", so it can be a program name with args.
1368 set dummy cc; ac_word=$2
1369 echo "$as_me:1369: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1376 else
1377 ac_save_IFS=$IFS; IFS=$ac_path_separator
1378 ac_dummy="$PATH"
1379 for ac_dir in $ac_dummy; do
1380 IFS=$ac_save_IFS
1381 test -z "$ac_dir" && ac_dir=.
1382 $as_executable_p "$ac_dir/$ac_word" || continue
1383 ac_cv_prog_ac_ct_CC="cc"
1384 echo "$as_me:1384: found $ac_dir/$ac_word" >&5
1385 break
1386 done
1387
1388 fi
1389 fi
1390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1391 if test -n "$ac_ct_CC"; then
1392 echo "$as_me:1392: result: $ac_ct_CC" >&5
1393 echo "${ECHO_T}$ac_ct_CC" >&6
1394 else
1395 echo "$as_me:1395: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1397 fi
1398
1399 CC=$ac_ct_CC
1400 else
1401 CC="$ac_cv_prog_CC"
1402 fi
1403
1404 fi
1405 if test -z "$CC"; then
1406 # Extract the first word of "cc", so it can be a program name with args.
1407 set dummy cc; ac_word=$2
1408 echo "$as_me:1408: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC="$CC" # Let the user override the test.
1415 else
1416 ac_prog_rejected=no
1417 ac_save_IFS=$IFS; IFS=$ac_path_separator
1418 ac_dummy="$PATH"
1419 for ac_dir in $ac_dummy; do
1420 IFS=$ac_save_IFS
1421 test -z "$ac_dir" && ac_dir=.
1422 $as_executable_p "$ac_dir/$ac_word" || continue
1423 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1424 ac_prog_rejected=yes
1425 continue
1426 fi
1427 ac_cv_prog_CC="cc"
1428 echo "$as_me:1428: found $ac_dir/$ac_word" >&5
1429 break
1430 done
1431
1432 if test "$ac_prog_rejected" = yes; then
1433 # We found a bogon in the path, so make sure we never use it.
1434 set dummy $ac_cv_prog_CC
1435 shift
1436 if test $# != 0; then
1437 # We chose a different compiler from the bogus one.
1438 # However, it has the same basename, so the bogon will be chosen
1439 # first if we set CC to just the basename; use the full file name.
1440 shift
1441 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1442 shift
1443 ac_cv_prog_CC="$@"
1444 fi
1445 fi
1446 fi
1447 fi
1448 CC=$ac_cv_prog_CC
1449 if test -n "$CC"; then
1450 echo "$as_me:1450: result: $CC" >&5
1451 echo "${ECHO_T}$CC" >&6
1452 else
1453 echo "$as_me:1453: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1455 fi
1456
1457 fi
1458 if test -z "$CC"; then
1459 if test -n "$ac_tool_prefix"; then
1460 for ac_prog in cl
1461 do
1462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1464 echo "$as_me:1464: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471 else
1472 ac_save_IFS=$IFS; IFS=$ac_path_separator
1473 ac_dummy="$PATH"
1474 for ac_dir in $ac_dummy; do
1475 IFS=$ac_save_IFS
1476 test -z "$ac_dir" && ac_dir=.
1477 $as_executable_p "$ac_dir/$ac_word" || continue
1478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1479 echo "$as_me:1479: found $ac_dir/$ac_word" >&5
1480 break
1481 done
1482
1483 fi
1484 fi
1485 CC=$ac_cv_prog_CC
1486 if test -n "$CC"; then
1487 echo "$as_me:1487: result: $CC" >&5
1488 echo "${ECHO_T}$CC" >&6
1489 else
1490 echo "$as_me:1490: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1492 fi
1493
1494 test -n "$CC" && break
1495 done
1496 fi
1497 if test -z "$CC"; then
1498 ac_ct_CC=$CC
1499 for ac_prog in cl
1500 do
1501 # Extract the first word of "$ac_prog", so it can be a program name with args.
1502 set dummy $ac_prog; ac_word=$2
1503 echo "$as_me:1503: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1510 else
1511 ac_save_IFS=$IFS; IFS=$ac_path_separator
1512 ac_dummy="$PATH"
1513 for ac_dir in $ac_dummy; do
1514 IFS=$ac_save_IFS
1515 test -z "$ac_dir" && ac_dir=.
1516 $as_executable_p "$ac_dir/$ac_word" || continue
1517 ac_cv_prog_ac_ct_CC="$ac_prog"
1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5
1519 break
1520 done
1521
1522 fi
1523 fi
1524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1525 if test -n "$ac_ct_CC"; then
1526 echo "$as_me:1526: result: $ac_ct_CC" >&5
1527 echo "${ECHO_T}$ac_ct_CC" >&6
1528 else
1529 echo "$as_me:1529: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1531 fi
1532
1533 test -n "$ac_ct_CC" && break
1534 done
1535
1536 CC=$ac_ct_CC
1537 fi
1538
1539 fi
1540
1541 test -z "$CC" && { { echo "$as_me:1541: error: no acceptable cc found in \$PATH" >&5
1542 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1543 { (exit 1); exit 1; }; }
1544
1545 # Provide some information about the compiler.
1546 echo "$as_me:1546:" \
1547 "checking for C compiler version" >&5
1548 ac_compiler=`set X $ac_compile; echo "$2"`
1549 { (eval echo "$as_me:1549: \"$ac_compiler --version </dev/null >&5\"") >&5
1550 (eval $ac_compiler --version </dev/null >&5) 2>&5
1551 ac_status=$?
1552 echo "$as_me:1552: \$? = $ac_status" >&5
1553 (exit "$ac_status"); }
1554 { (eval echo "$as_me:1554: \"$ac_compiler -v </dev/null >&5\"") >&5
1555 (eval $ac_compiler -v </dev/null >&5) 2>&5
1556 ac_status=$?
1557 echo "$as_me:1557: \$? = $ac_status" >&5
1558 (exit "$ac_status"); }
1559 { (eval echo "$as_me:1559: \"$ac_compiler -V </dev/null >&5\"") >&5
1560 (eval $ac_compiler -V </dev/null >&5) 2>&5
1561 ac_status=$?
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit "$ac_status"); }
1564
1565 cat >"conftest.$ac_ext" <<_ACEOF
1566 #line 1566 "configure"
1567 #include "confdefs.h"
1568
1569 int
1570 main (void)
1571 {
1572
1573 ;
1574 return 0;
1575 }
1576 _ACEOF
1577 ac_clean_files_save=$ac_clean_files
1578 ac_clean_files="$ac_clean_files a.out a.exe"
1579 # Try to create an executable without -o first, disregard a.out.
1580 # It will help us diagnose broken compilers, and finding out an intuition
1581 # of exeext.
1582 echo "$as_me:1582: checking for C compiler default output" >&5
1583 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1584 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1585 if { (eval echo "$as_me:1585: \"$ac_link_default\"") >&5
1586 (eval $ac_link_default) 2>&5
1587 ac_status=$?
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit "$ac_status"); }; then
1590 # Find the output, starting from the most likely. This scheme is
1591 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1592 # resort.
1593 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1594 ls a.out conftest 2>/dev/null;
1595 ls a.* conftest.* 2>/dev/null`; do
1596 case $ac_file in
1597 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1598 a.out ) # We found the default executable, but exeext='' is most
1599 # certainly right.
1600 break;;
1601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1602 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1603 export ac_cv_exeext
1604 break;;
1605 * ) break;;
1606 esac
1607 done
1608 else
1609 echo "$as_me: failed program was:" >&5
1610 cat "conftest.$ac_ext" >&5
1611 { { echo "$as_me:1611: error: C compiler cannot create executables" >&5
1612 echo "$as_me: error: C compiler cannot create executables" >&2;}
1613 { (exit 77); exit 77; }; }
1614 fi
1615
1616 ac_exeext=$ac_cv_exeext
1617 echo "$as_me:1617: result: $ac_file" >&5
1618 echo "${ECHO_T}$ac_file" >&6
1619
1620 # Check the compiler produces executables we can run. If not, either
1621 # the compiler is broken, or we cross compile.
1622 echo "$as_me:1622: checking whether the C compiler works" >&5
1623 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1624 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1625 # If not cross compiling, check that we can run a simple program.
1626 if test "$cross_compiling" != yes; then
1627 if { ac_try='./$ac_file'
1628 { (eval echo "$as_me:1628: \"$ac_try\"") >&5
1629 (eval $ac_try) 2>&5
1630 ac_status=$?
1631 echo "$as_me:1631: \$? = $ac_status" >&5
1632 (exit "$ac_status"); }; }; then
1633 cross_compiling=no
1634 else
1635 if test "$cross_compiling" = maybe; then
1636 cross_compiling=yes
1637 else
1638 { { echo "$as_me:1638: error: cannot run C compiled programs.
1639 If you meant to cross compile, use \`--host'." >&5
1640 echo "$as_me: error: cannot run C compiled programs.
1641 If you meant to cross compile, use \`--host'." >&2;}
1642 { (exit 1); exit 1; }; }
1643 fi
1644 fi
1645 fi
1646 echo "$as_me:1646: result: yes" >&5
1647 echo "${ECHO_T}yes" >&6
1648
1649 rm -f a.out a.exe "conftest$ac_cv_exeext"
1650 ac_clean_files=$ac_clean_files_save
1651 # Check the compiler produces executables we can run. If not, either
1652 # the compiler is broken, or we cross compile.
1653 echo "$as_me:1653: checking whether we are cross compiling" >&5
1654 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1655 echo "$as_me:1655: result: $cross_compiling" >&5
1656 echo "${ECHO_T}$cross_compiling" >&6
1657
1658 echo "$as_me:1658: checking for executable suffix" >&5
1659 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1660 if { (eval echo "$as_me:1660: \"$ac_link\"") >&5
1661 (eval $ac_link) 2>&5
1662 ac_status=$?
1663 echo "$as_me:1663: \$? = $ac_status" >&5
1664 (exit "$ac_status"); }; then
1665 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1666 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1667 # work properly (i.e., refer to `conftest.exe'), while it won't with
1668 # `rm'.
1669 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1670 case $ac_file in
1671 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1673 export ac_cv_exeext
1674 break;;
1675 * ) break;;
1676 esac
1677 done
1678 else
1679 { { echo "$as_me:1679: error: cannot compute EXEEXT: cannot compile and link" >&5
1680 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1681 { (exit 1); exit 1; }; }
1682 fi
1683
1684 rm -f "conftest$ac_cv_exeext"
1685 echo "$as_me:1685: result: $ac_cv_exeext" >&5
1686 echo "${ECHO_T}$ac_cv_exeext" >&6
1687
1688 rm -f "conftest.$ac_ext"
1689 EXEEXT=$ac_cv_exeext
1690 ac_exeext=$EXEEXT
1691 echo "$as_me:1691: checking for object suffix" >&5
1692 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1693 if test "${ac_cv_objext+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 cat >"conftest.$ac_ext" <<_ACEOF
1697 #line 1697 "configure"
1698 #include "confdefs.h"
1699
1700 int
1701 main (void)
1702 {
1703
1704 ;
1705 return 0;
1706 }
1707 _ACEOF
1708 rm -f conftest.o conftest.obj
1709 if { (eval echo "$as_me:1709: \"$ac_compile\"") >&5
1710 (eval $ac_compile) 2>&5
1711 ac_status=$?
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit "$ac_status"); }; then
1714 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1715 case $ac_file in
1716 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1717 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1718 break;;
1719 esac
1720 done
1721 else
1722 echo "$as_me: failed program was:" >&5
1723 cat "conftest.$ac_ext" >&5
1724 { { echo "$as_me:1724: error: cannot compute OBJEXT: cannot compile" >&5
1725 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1726 { (exit 1); exit 1; }; }
1727 fi
1728
1729 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1730 fi
1731 echo "$as_me:1731: result: $ac_cv_objext" >&5
1732 echo "${ECHO_T}$ac_cv_objext" >&6
1733 OBJEXT=$ac_cv_objext
1734 ac_objext=$OBJEXT
1735 echo "$as_me:1735: checking whether we are using the GNU C compiler" >&5
1736 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1737 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 cat >"conftest.$ac_ext" <<_ACEOF
1741 #line 1741 "configure"
1742 #include "confdefs.h"
1743
1744 int
1745 main (void)
1746 {
1747 #ifndef __GNUC__
1748 choke me
1749 #endif
1750
1751 ;
1752 return 0;
1753 }
1754 _ACEOF
1755 rm -f "conftest.$ac_objext"
1756 if { (eval echo "$as_me:1756: \"$ac_compile\"") >&5
1757 (eval $ac_compile) 2>&5
1758 ac_status=$?
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit "$ac_status"); } &&
1761 { ac_try='test -s "conftest.$ac_objext"'
1762 { (eval echo "$as_me:1762: \"$ac_try\"") >&5
1763 (eval $ac_try) 2>&5
1764 ac_status=$?
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit "$ac_status"); }; }; then
1767 ac_compiler_gnu=yes
1768 else
1769 echo "$as_me: failed program was:" >&5
1770 cat "conftest.$ac_ext" >&5
1771 ac_compiler_gnu=no
1772 fi
1773 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1775
1776 fi
1777 echo "$as_me:1777: result: $ac_cv_c_compiler_gnu" >&5
1778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1779 GCC=`test $ac_compiler_gnu = yes && echo yes`
1780 ac_test_CFLAGS=${CFLAGS+set}
1781 ac_save_CFLAGS=$CFLAGS
1782 CFLAGS="-g"
1783 echo "$as_me:1783: checking whether $CC accepts -g" >&5
1784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1785 if test "${ac_cv_prog_cc_g+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788 cat >"conftest.$ac_ext" <<_ACEOF
1789 #line 1789 "configure"
1790 #include "confdefs.h"
1791
1792 int
1793 main (void)
1794 {
1795
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800 rm -f "conftest.$ac_objext"
1801 if { (eval echo "$as_me:1801: \"$ac_compile\"") >&5
1802 (eval $ac_compile) 2>&5
1803 ac_status=$?
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit "$ac_status"); } &&
1806 { ac_try='test -s "conftest.$ac_objext"'
1807 { (eval echo "$as_me:1807: \"$ac_try\"") >&5
1808 (eval $ac_try) 2>&5
1809 ac_status=$?
1810 echo "$as_me:1810: \$? = $ac_status" >&5
1811 (exit "$ac_status"); }; }; then
1812 ac_cv_prog_cc_g=yes
1813 else
1814 echo "$as_me: failed program was:" >&5
1815 cat "conftest.$ac_ext" >&5
1816 ac_cv_prog_cc_g=no
1817 fi
1818 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1819 fi
1820 echo "$as_me:1820: result: $ac_cv_prog_cc_g" >&5
1821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1822 if test "$ac_test_CFLAGS" = set; then
1823 CFLAGS=$ac_save_CFLAGS
1824 elif test $ac_cv_prog_cc_g = yes; then
1825 if test "$GCC" = yes; then
1826 CFLAGS="-g -O2"
1827 else
1828 CFLAGS="-g"
1829 fi
1830 else
1831 if test "$GCC" = yes; then
1832 CFLAGS="-O2"
1833 else
1834 CFLAGS=
1835 fi
1836 fi
1837 # Some people use a C++ compiler to compile C. Since we use `exit',
1838 # in C++ we need to declare it. In case someone uses the same compiler
1839 # for both compiling C and C++ we need to have the C++ compiler decide
1840 # the declaration of exit, since it's the most demanding environment.
1841 cat >"conftest.$ac_ext" <<_ACEOF
1842 #ifndef __cplusplus
1843 choke me
1844 #endif
1845 _ACEOF
1846 rm -f "conftest.$ac_objext"
1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
1848 (eval $ac_compile) 2>&5
1849 ac_status=$?
1850 echo "$as_me:1850: \$? = $ac_status" >&5
1851 (exit "$ac_status"); } &&
1852 { ac_try='test -s "conftest.$ac_objext"'
1853 { (eval echo "$as_me:1853: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:1856: \$? = $ac_status" >&5
1857 (exit "$ac_status"); }; }; then
1858 for ac_declaration in \
1859 ''\
1860 '#include <stdlib.h>' \
1861 'extern "C" void std::exit (int) throw (); using std::exit;' \
1862 'extern "C" void std::exit (int); using std::exit;' \
1863 'extern "C" void exit (int) throw ();' \
1864 'extern "C" void exit (int);' \
1865 'void exit (int);'
1866 do
1867 cat >"conftest.$ac_ext" <<_ACEOF
1868 #line 1868 "configure"
1869 #include "confdefs.h"
1870 #include <stdlib.h>
1871 $ac_declaration
1872 int
1873 main (void)
1874 {
1875 exit (42);
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 rm -f "conftest.$ac_objext"
1881 if { (eval echo "$as_me:1881: \"$ac_compile\"") >&5
1882 (eval $ac_compile) 2>&5
1883 ac_status=$?
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit "$ac_status"); } &&
1886 { ac_try='test -s "conftest.$ac_objext"'
1887 { (eval echo "$as_me:1887: \"$ac_try\"") >&5
1888 (eval $ac_try) 2>&5
1889 ac_status=$?
1890 echo "$as_me:1890: \$? = $ac_status" >&5
1891 (exit "$ac_status"); }; }; then
1892 :
1893 else
1894 echo "$as_me: failed program was:" >&5
1895 cat "conftest.$ac_ext" >&5
1896 continue
1897 fi
1898 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1899 cat >"conftest.$ac_ext" <<_ACEOF
1900 #line 1900 "configure"
1901 #include "confdefs.h"
1902 $ac_declaration
1903 int
1904 main (void)
1905 {
1906 exit (42);
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 rm -f "conftest.$ac_objext"
1912 if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1914 ac_status=$?
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit "$ac_status"); } &&
1917 { ac_try='test -s "conftest.$ac_objext"'
1918 { (eval echo "$as_me:1918: \"$ac_try\"") >&5
1919 (eval $ac_try) 2>&5
1920 ac_status=$?
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit "$ac_status"); }; }; then
1923 break
1924 else
1925 echo "$as_me: failed program was:" >&5
1926 cat "conftest.$ac_ext" >&5
1927 fi
1928 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1929 done
1930 rm -rf conftest*
1931 if test -n "$ac_declaration"; then
1932 echo '#ifdef __cplusplus' >>confdefs.h
1933 echo "$ac_declaration" >>confdefs.h
1934 echo '#endif' >>confdefs.h
1935 fi
1936
1937 else
1938 echo "$as_me: failed program was:" >&5
1939 cat "conftest.$ac_ext" >&5
1940 fi
1941 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1942 ac_ext=c
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1945 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 ac_main_return="return"
1948
1949 GCC_VERSION=none
1950 if test "$GCC" = yes ; then
1951 echo "$as_me:1951: checking version of $CC" >&5
1952 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1953 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.].*//'`"
1954 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1955 echo "$as_me:1955: result: $GCC_VERSION" >&5
1956 echo "${ECHO_T}$GCC_VERSION" >&6
1957 fi
1958
1959 INTEL_COMPILER=no
1960
1961 if test "$GCC" = yes ; then
1962 case "$host_os" in
1963 (linux*|gnu*)
1964 echo "$as_me:1964: checking if this is really Intel C compiler" >&5
1965 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1966 cf_save_CFLAGS="$CFLAGS"
1967 CFLAGS="$CFLAGS -no-gcc"
1968 cat >"conftest.$ac_ext" <<_ACEOF
1969 #line 1969 "configure"
1970 #include "confdefs.h"
1971
1972 int
1973 main (void)
1974 {
1975
1976 #ifdef __INTEL_COMPILER
1977 #else
1978 make an error
1979 #endif
1980
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 rm -f "conftest.$ac_objext"
1986 if { (eval echo "$as_me:1986: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>&5
1988 ac_status=$?
1989 echo "$as_me:1989: \$? = $ac_status" >&5
1990 (exit "$ac_status"); } &&
1991 { ac_try='test -s "conftest.$ac_objext"'
1992 { (eval echo "$as_me:1992: \"$ac_try\"") >&5
1993 (eval $ac_try) 2>&5
1994 ac_status=$?
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit "$ac_status"); }; }; then
1997 INTEL_COMPILER=yes
1998 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1999
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 cat "conftest.$ac_ext" >&5
2003 fi
2004 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2005 CFLAGS="$cf_save_CFLAGS"
2006 echo "$as_me:2006: result: $INTEL_COMPILER" >&5
2007 echo "${ECHO_T}$INTEL_COMPILER" >&6
2008 ;;
2009 esac
2010 fi
2011
2012 CLANG_COMPILER=no
2013
2014 if test "$GCC" = yes ; then
2015 echo "$as_me:2015: checking if this is really Clang C compiler" >&5
2016 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2017 cf_save_CFLAGS="$CFLAGS"
2018 cat >"conftest.$ac_ext" <<_ACEOF
2019 #line 2019 "configure"
2020 #include "confdefs.h"
2021
2022 int
2023 main (void)
2024 {
2025
2026 #ifdef __clang__
2027 #else
2028 make an error
2029 #endif
2030
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 rm -f "conftest.$ac_objext"
2036 if { (eval echo "$as_me:2036: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2038 ac_status=$?
2039 echo "$as_me:2039: \$? = $ac_status" >&5
2040 (exit "$ac_status"); } &&
2041 { ac_try='test -s "conftest.$ac_objext"'
2042 { (eval echo "$as_me:2042: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:2045: \$? = $ac_status" >&5
2046 (exit "$ac_status"); }; }; then
2047 CLANG_COMPILER=yes
2048
2049 else
2050 echo "$as_me: failed program was:" >&5
2051 cat "conftest.$ac_ext" >&5
2052 fi
2053 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2054 CFLAGS="$cf_save_CFLAGS"
2055 echo "$as_me:2055: result: $CLANG_COMPILER" >&5
2056 echo "${ECHO_T}$CLANG_COMPILER" >&6
2057 fi
2058
2059 CLANG_VERSION=none
2060
2061 if test "x$CLANG_COMPILER" = "xyes" ; then
2062 case "$CC" in
2063 (c[1-9][0-9]|*/c[1-9][0-9])
2064 { echo "$as_me:2064: WARNING: replacing broken compiler alias $CC" >&5
2065 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2066 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2067 CC=clang
2068 ;;
2069 esac
2070
2071 echo "$as_me:2071: checking version of $CC" >&5
2072 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2073 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2074 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2075 echo "$as_me:2075: result: $CLANG_VERSION" >&5
2076 echo "${ECHO_T}$CLANG_VERSION" >&6
2077
2078 for cf_clang_opt in \
2079 -Qunused-arguments \
2080 -Wno-error=implicit-function-declaration
2081 do
2082 echo "$as_me:2082: checking if option $cf_clang_opt works" >&5
2083 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2084 cf_save_CFLAGS="$CFLAGS"
2085 CFLAGS="$CFLAGS $cf_clang_opt"
2086 cat >"conftest.$ac_ext" <<_ACEOF
2087 #line 2087 "configure"
2088 #include "confdefs.h"
2089
2090 #include <stdio.h>
2091 int
2092 main (void)
2093 {
2094
2095 printf("hello!\\n");
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2101 if { (eval echo "$as_me:2101: \"$ac_link\"") >&5
2102 (eval $ac_link) 2>&5
2103 ac_status=$?
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit "$ac_status"); } &&
2106 { ac_try='test -s "conftest$ac_exeext"'
2107 { (eval echo "$as_me:2107: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echo "$as_me:2110: \$? = $ac_status" >&5
2111 (exit "$ac_status"); }; }; then
2112
2113 cf_clang_optok=yes
2114 else
2115 echo "$as_me: failed program was:" >&5
2116 cat "conftest.$ac_ext" >&5
2117
2118 cf_clang_optok=no
2119 fi
2120 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2121 echo "$as_me:2121: result: $cf_clang_optok" >&5
2122 echo "${ECHO_T}$cf_clang_optok" >&6
2123 CFLAGS="$cf_save_CFLAGS"
2124 if test "$cf_clang_optok" = yes; then
2125 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2126
2127 echo "${as_me:-configure}:2127: testing adding option $cf_clang_opt ..." 1>&5
2128
2129 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2130 CFLAGS="${CFLAGS}$cf_clang_opt"
2131
2132 fi
2133 done
2134 fi
2135
2136 echo "$as_me:2136: checking for $CC option to accept ANSI C" >&5
2137 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 ac_cv_prog_cc_stdc=no
2142 ac_save_CC=$CC
2143 cat >"conftest.$ac_ext" <<_ACEOF
2144 #line 2144 "configure"
2145 #include "confdefs.h"
2146 #include <stdarg.h>
2147 #include <stdio.h>
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2151 struct buf { int x; };
2152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153 static char *e (p, i)
2154 char **p;
2155 int i;
2156 {
2157 return p[i];
2158 }
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2160 {
2161 char *s;
2162 va_list v;
2163 va_start (v,p);
2164 s = g (p, va_arg (v,int));
2165 va_end (v);
2166 return s;
2167 }
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2172 int argc;
2173 char **argv;
2174 int
2175 main (void)
2176 {
2177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX -qlanglvl=ansi
2185 # Ultrix and OSF/1 -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions -Aa -D_HPUX_SOURCE
2188 # SVR4 -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2190 do
2191 CC="$ac_save_CC $ac_arg"
2192 rm -f "conftest.$ac_objext"
2193 if { (eval echo "$as_me:2193: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2195 ac_status=$?
2196 echo "$as_me:2196: \$? = $ac_status" >&5
2197 (exit "$ac_status"); } &&
2198 { ac_try='test -s "conftest.$ac_objext"'
2199 { (eval echo "$as_me:2199: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:2202: \$? = $ac_status" >&5
2203 (exit "$ac_status"); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2205 break
2206 else
2207 echo "$as_me: failed program was:" >&5
2208 cat "conftest.$ac_ext" >&5
2209 fi
2210 rm -f "conftest.$ac_objext"
2211 done
2212 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2213 CC=$ac_save_CC
2214
2215 fi
2216
2217 case "x$ac_cv_prog_cc_stdc" in
2218 x|xno)
2219 echo "$as_me:2219: result: none needed" >&5
2220 echo "${ECHO_T}none needed" >&6 ;;
2221 *)
2222 echo "$as_me:2222: result: $ac_cv_prog_cc_stdc" >&5
2223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224 CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 esac
2226
2227 # This should have been defined by AC_PROG_CC
2228 : "${CC:=cc}"
2229
2230 echo "$as_me:2230: checking \$CFLAGS variable" >&5
2231 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2232 case "x$CFLAGS" in
2233 (*-[IUD]*)
2234 echo "$as_me:2234: result: broken" >&5
2235 echo "${ECHO_T}broken" >&6
2236 { echo "$as_me:2236: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2237 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2238 cf_flags="$CFLAGS"
2239 CFLAGS=
2240 for cf_arg in $cf_flags
2241 do
2242
2243 cf_fix_cppflags=no
2244 cf_new_cflags=
2245 cf_new_cppflags=
2246 cf_new_extra_cppflags=
2247
2248 for cf_add_cflags in $cf_arg
2249 do
2250 case "$cf_fix_cppflags" in
2251 (no)
2252 case "$cf_add_cflags" in
2253 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2254 case "$cf_add_cflags" in
2255 (-D*)
2256 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2257
2258 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2259 && test -z "${cf_tst_cflags}" \
2260 && cf_fix_cppflags=yes
2261
2262 if test "$cf_fix_cppflags" = yes ; then
2263
2264 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2265 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2266
2267 continue
2268 elif test "${cf_tst_cflags}" = "\"'" ; then
2269
2270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2272
2273 continue
2274 fi
2275 ;;
2276 esac
2277 case "$CPPFLAGS" in
2278 (*$cf_add_cflags)
2279 ;;
2280 (*)
2281 case "$cf_add_cflags" in
2282 (-D*)
2283 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2284
2285 CPPFLAGS=`echo "$CPPFLAGS" | \
2286 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2287 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2288
2289 ;;
2290 esac
2291
2292 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2293 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2294
2295 ;;
2296 esac
2297 ;;
2298 (*)
2299
2300 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2301 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2302
2303 ;;
2304 esac
2305 ;;
2306 (yes)
2307
2308 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2309 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2310
2311 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2312
2313 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2314 && test -z "${cf_tst_cflags}" \
2315 && cf_fix_cppflags=no
2316 ;;
2317 esac
2318 done
2319
2320 if test -n "$cf_new_cflags" ; then
2321
2322 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2323 CFLAGS="${CFLAGS}$cf_new_cflags"
2324
2325 fi
2326
2327 if test -n "$cf_new_cppflags" ; then
2328
2329 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2330 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2331
2332 fi
2333
2334 if test -n "$cf_new_extra_cppflags" ; then
2335
2336 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2337 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2338
2339 fi
2340
2341 done
2342 ;;
2343 (*)
2344 echo "$as_me:2344: result: ok" >&5
2345 echo "${ECHO_T}ok" >&6
2346 ;;
2347 esac
2348
2349 echo "$as_me:2349: checking \$CC variable" >&5
2350 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2351 case "$CC" in
2352 (*[\ \ ]-*)
2353 echo "$as_me:2353: result: broken" >&5
2354 echo "${ECHO_T}broken" >&6
2355 { echo "$as_me:2355: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2356 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2357 # humor him...
2358 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2359 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2360 CC="$cf_prog"
2361 for cf_arg in $cf_flags
2362 do
2363 case "x$cf_arg" in
2364 (x-[IUDfgOW]*)
2365
2366 cf_fix_cppflags=no
2367 cf_new_cflags=
2368 cf_new_cppflags=
2369 cf_new_extra_cppflags=
2370
2371 for cf_add_cflags in $cf_arg
2372 do
2373 case "$cf_fix_cppflags" in
2374 (no)
2375 case "$cf_add_cflags" in
2376 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2377 case "$cf_add_cflags" in
2378 (-D*)
2379 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2380
2381 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2382 && test -z "${cf_tst_cflags}" \
2383 && cf_fix_cppflags=yes
2384
2385 if test "$cf_fix_cppflags" = yes ; then
2386
2387 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2388 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2389
2390 continue
2391 elif test "${cf_tst_cflags}" = "\"'" ; then
2392
2393 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2394 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2395
2396 continue
2397 fi
2398 ;;
2399 esac
2400 case "$CPPFLAGS" in
2401 (*$cf_add_cflags)
2402 ;;
2403 (*)
2404 case "$cf_add_cflags" in
2405 (-D*)
2406 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2407
2408 CPPFLAGS=`echo "$CPPFLAGS" | \
2409 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2410 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2411
2412 ;;
2413 esac
2414
2415 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2416 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2417
2418 ;;
2419 esac
2420 ;;
2421 (*)
2422
2423 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2424 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2425
2426 ;;
2427 esac
2428 ;;
2429 (yes)
2430
2431 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2432 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2433
2434 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2435
2436 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2437 && test -z "${cf_tst_cflags}" \
2438 && cf_fix_cppflags=no
2439 ;;
2440 esac
2441 done
2442
2443 if test -n "$cf_new_cflags" ; then
2444
2445 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2446 CFLAGS="${CFLAGS}$cf_new_cflags"
2447
2448 fi
2449
2450 if test -n "$cf_new_cppflags" ; then
2451
2452 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2453 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2454
2455 fi
2456
2457 if test -n "$cf_new_extra_cppflags" ; then
2458
2459 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2460 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2461
2462 fi
2463
2464 ;;
2465 (*)
2466 CC="$CC $cf_arg"
2467 ;;
2468 esac
2469 done
2470 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2471
2472 echo "${as_me:-configure}:2472: testing resulting CC: '$CC' ..." 1>&5
2473
2474 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2475
2476 echo "${as_me:-configure}:2476: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2477
2478 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2479
2480 echo "${as_me:-configure}:2480: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2481
2482 ;;
2483 (*)
2484 echo "$as_me:2484: result: ok" >&5
2485 echo "${ECHO_T}ok" >&6
2486 ;;
2487 esac
2488
2489 for ac_prog in ggrep grep
2490 do
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 echo "$as_me:2493: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_GREP+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 if test -n "$GREP"; then
2499 ac_cv_prog_GREP="$GREP" # Let the user override the test.
2500 else
2501 ac_save_IFS=$IFS; IFS=$ac_path_separator
2502 ac_dummy="$PATH"
2503 for ac_dir in $ac_dummy; do
2504 IFS=$ac_save_IFS
2505 test -z "$ac_dir" && ac_dir=.
2506 $as_executable_p "$ac_dir/$ac_word" || continue
2507 ac_cv_prog_GREP="$ac_prog"
2508 echo "$as_me:2508: found $ac_dir/$ac_word" >&5
2509 break
2510 done
2511
2512 fi
2513 fi
2514 GREP=$ac_cv_prog_GREP
2515 if test -n "$GREP"; then
2516 echo "$as_me:2516: result: $GREP" >&5
2517 echo "${ECHO_T}$GREP" >&6
2518 else
2519 echo "$as_me:2519: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 fi
2522
2523 test -n "$GREP" && break
2524 done
2525 test -n "$GREP" || GREP=": "
2526
2527 echo "$as_me:2527: checking for egrep" >&5
2528 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2529 if test "${ac_cv_path_EGREP+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2533 then ac_cv_path_EGREP="$GREP -E"
2534 else
2535 for ac_prog in gegrep egrep
2536 do
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 echo "$as_me:2539: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2541 if test "${ac_cv_path_EGREP+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 case $EGREP in
2545 [\\/]* | ?:[\\/]*)
2546 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2547 ;;
2548 *)
2549 ac_save_IFS=$IFS; IFS=$ac_path_separator
2550 ac_dummy="$PATH"
2551 for ac_dir in $ac_dummy; do
2552 IFS=$ac_save_IFS
2553 test -z "$ac_dir" && ac_dir=.
2554 if $as_executable_p "$ac_dir/$ac_word"; then
2555 ac_cv_path_EGREP="$ac_dir/$ac_word"
2556 echo "$as_me:2556: found $ac_dir/$ac_word" >&5
2557 break
2558 fi
2559 done
2560
2561 ;;
2562 esac
2563 fi
2564 EGREP=$ac_cv_path_EGREP
2565
2566 if test -n "$EGREP"; then
2567 echo "$as_me:2567: result: $EGREP" >&5
2568 echo "${ECHO_T}$EGREP" >&6
2569 else
2570 echo "$as_me:2570: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572 fi
2573
2574 test -n "$EGREP" && break
2575 done
2576 test -n "$EGREP" || EGREP=": "
2577
2578 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2578: error: cannot find workable egrep" >&5
2579 echo "$as_me: error: cannot find workable egrep" >&2;}
2580 { (exit 1); exit 1; }; }
2581 fi
2582 fi
2583 echo "$as_me:2583: result: $ac_cv_path_EGREP" >&5
2584 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
2585 EGREP="$ac_cv_path_EGREP"
2586
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2590 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 ac_main_return="return"
2593 echo "$as_me:2593: checking how to run the C preprocessor" >&5
2594 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2595 # On Suns, sometimes $CPP names a directory.
2596 if test -n "$CPP" && test -d "$CPP"; then
2597 CPP=
2598 fi
2599 if test -z "$CPP"; then
2600 if test "${ac_cv_prog_CPP+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 # Double quotes because CPP needs to be expanded
2604 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2605 do
2606 ac_preproc_ok=false
2607 for ac_c_preproc_warn_flag in '' yes
2608 do
2609 # Use a header file that comes with gcc, so configuring glibc
2610 # with a fresh cross-compiler works.
2611 # On the NeXT, cc -E runs the code through the compiler's parser,
2612 # not just through cpp. "Syntax error" is here to catch this case.
2613 cat >"conftest.$ac_ext" <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2616 #include <assert.h>
2617 Syntax error
2618 _ACEOF
2619 if { (eval echo "$as_me:2619: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2620 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2621 ac_status=$?
2622 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit "$ac_status"); } >/dev/null; then
2627 if test -s conftest.err; then
2628 ac_cpp_err=$ac_c_preproc_warn_flag
2629 else
2630 ac_cpp_err=
2631 fi
2632 else
2633 ac_cpp_err=yes
2634 fi
2635 if test -z "$ac_cpp_err"; then
2636 :
2637 else
2638 echo "$as_me: failed program was:" >&5
2639 cat "conftest.$ac_ext" >&5
2640 # Broken: fails on valid input.
2641 continue
2642 fi
2643 rm -f conftest.err "conftest.$ac_ext"
2644
2645 # OK, works on sane cases. Now check whether non-existent headers
2646 # can be detected and how.
2647 cat >"conftest.$ac_ext" <<_ACEOF
2648 #line 2648 "configure"
2649 #include "confdefs.h"
2650 #include <ac_nonexistent.h>
2651 _ACEOF
2652 if { (eval echo "$as_me:2652: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2653 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2654 ac_status=$?
2655 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit "$ac_status"); } >/dev/null; then
2660 if test -s conftest.err; then
2661 ac_cpp_err=$ac_c_preproc_warn_flag
2662 else
2663 ac_cpp_err=
2664 fi
2665 else
2666 ac_cpp_err=yes
2667 fi
2668 if test -z "$ac_cpp_err"; then
2669 # Broken: success on invalid input.
2670 continue
2671 else
2672 echo "$as_me: failed program was:" >&5
2673 cat "conftest.$ac_ext" >&5
2674 # Passes both tests.
2675 ac_preproc_ok=:
2676 break
2677 fi
2678 rm -f conftest.err "conftest.$ac_ext"
2679
2680 done
2681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2682 rm -f conftest.err "conftest.$ac_ext"
2683 if $ac_preproc_ok; then
2684 break
2685 fi
2686
2687 done
2688 ac_cv_prog_CPP=$CPP
2689
2690 fi
2691 CPP=$ac_cv_prog_CPP
2692 else
2693 ac_cv_prog_CPP=$CPP
2694 fi
2695 echo "$as_me:2695: result: $CPP" >&5
2696 echo "${ECHO_T}$CPP" >&6
2697 ac_preproc_ok=false
2698 for ac_c_preproc_warn_flag in '' yes
2699 do
2700 # Use a header file that comes with gcc, so configuring glibc
2701 # with a fresh cross-compiler works.
2702 # On the NeXT, cc -E runs the code through the compiler's parser,
2703 # not just through cpp. "Syntax error" is here to catch this case.
2704 cat >"conftest.$ac_ext" <<_ACEOF
2705 #line 2705 "configure"
2706 #include "confdefs.h"
2707 #include <assert.h>
2708 Syntax error
2709 _ACEOF
2710 if { (eval echo "$as_me:2710: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2711 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2712 ac_status=$?
2713 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:2716: \$? = $ac_status" >&5
2717 (exit "$ac_status"); } >/dev/null; then
2718 if test -s conftest.err; then
2719 ac_cpp_err=$ac_c_preproc_warn_flag
2720 else
2721 ac_cpp_err=
2722 fi
2723 else
2724 ac_cpp_err=yes
2725 fi
2726 if test -z "$ac_cpp_err"; then
2727 :
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 cat "conftest.$ac_ext" >&5
2731 # Broken: fails on valid input.
2732 continue
2733 fi
2734 rm -f conftest.err "conftest.$ac_ext"
2735
2736 # OK, works on sane cases. Now check whether non-existent headers
2737 # can be detected and how.
2738 cat >"conftest.$ac_ext" <<_ACEOF
2739 #line 2739 "configure"
2740 #include "confdefs.h"
2741 #include <ac_nonexistent.h>
2742 _ACEOF
2743 if { (eval echo "$as_me:2743: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2744 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2745 ac_status=$?
2746 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit "$ac_status"); } >/dev/null; then
2751 if test -s conftest.err; then
2752 ac_cpp_err=$ac_c_preproc_warn_flag
2753 else
2754 ac_cpp_err=
2755 fi
2756 else
2757 ac_cpp_err=yes
2758 fi
2759 if test -z "$ac_cpp_err"; then
2760 # Broken: success on invalid input.
2761 continue
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 cat "conftest.$ac_ext" >&5
2765 # Passes both tests.
2766 ac_preproc_ok=:
2767 break
2768 fi
2769 rm -f conftest.err "conftest.$ac_ext"
2770
2771 done
2772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2773 rm -f conftest.err "conftest.$ac_ext"
2774 if $ac_preproc_ok; then
2775 :
2776 else
2777 { { echo "$as_me:2777: error: C preprocessor \"$CPP\" fails sanity check" >&5
2778 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2779 { (exit 1); exit 1; }; }
2780 fi
2781
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2785 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 ac_main_return="return"
2788
2789 for ac_prog in mawk gawk nawk awk
2790 do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 echo "$as_me:2793: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795 if test "${ac_cv_prog_AWK+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800 else
2801 ac_save_IFS=$IFS; IFS=$ac_path_separator
2802 ac_dummy="$PATH"
2803 for ac_dir in $ac_dummy; do
2804 IFS=$ac_save_IFS
2805 test -z "$ac_dir" && ac_dir=.
2806 $as_executable_p "$ac_dir/$ac_word" || continue
2807 ac_cv_prog_AWK="$ac_prog"
2808 echo "$as_me:2808: found $ac_dir/$ac_word" >&5
2809 break
2810 done
2811
2812 fi
2813 fi
2814 AWK=$ac_cv_prog_AWK
2815 if test -n "$AWK"; then
2816 echo "$as_me:2816: result: $AWK" >&5
2817 echo "${ECHO_T}$AWK" >&6
2818 else
2819 echo "$as_me:2819: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 fi
2822
2823 test -n "$AWK" && break
2824 done
2825
2826 # Find a good install program. We prefer a C program (faster),
2827 # so one script is as good as another. But avoid the broken or
2828 # incompatible versions:
2829 # SysV /etc/install, /usr/sbin/install
2830 # SunOS /usr/etc/install
2831 # IRIX /sbin/install
2832 # AIX /bin/install
2833 # AmigaOS /C/install, which installs bootblocks on floppy discs
2834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2837 # ./install, which can be erroneously created by make from ./install.sh.
2838 echo "$as_me:2838: checking for a BSD compatible install" >&5
2839 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2840 if test -z "$INSTALL"; then
2841 if test "${ac_cv_path_install+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 ac_save_IFS=$IFS; IFS=$ac_path_separator
2845 for ac_dir in $PATH; do
2846 IFS=$ac_save_IFS
2847 # Account for people who put trailing slashes in PATH elements.
2848 case $ac_dir/ in
2849 / | ./ | .// | /cC/* \
2850 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2851 | /usr/ucb/* ) ;;
2852 *)
2853 # OSF1 and SCO ODT 3.0 have their own names for install.
2854 # Don't use installbsd from OSF since it installs stuff as root
2855 # by default.
2856 for ac_prog in ginstall scoinst install; do
2857 if $as_executable_p "$ac_dir/$ac_prog"; then
2858 if test $ac_prog = install &&
2859 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2860 # AIX install. It has an incompatible calling convention.
2861 :
2862 elif test $ac_prog = install &&
2863 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2864 # program-specific install script used by HP pwplus--don't use.
2865 :
2866 else
2867 ac_cv_path_install="$ac_dir/$ac_prog -c"
2868 break 2
2869 fi
2870 fi
2871 done
2872 ;;
2873 esac
2874 done
2875
2876 fi
2877 if test "${ac_cv_path_install+set}" = set; then
2878 INSTALL=$ac_cv_path_install
2879 else
2880 # As a last resort, use the slow shell script. We don't cache a
2881 # path for INSTALL within a source directory, because that will
2882 # break other packages using the cache if that directory is
2883 # removed, or if the path is relative.
2884 INSTALL=$ac_install_sh
2885 fi
2886 fi
2887 echo "$as_me:2887: result: $INSTALL" >&5
2888 echo "${ECHO_T}$INSTALL" >&6
2889
2890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2891 # It thinks the first close brace ends the variable substitution.
2892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2893
2894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2895
2896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897
2898 echo "$as_me:2898: checking whether ln -s works" >&5
2899 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2900 LN_S=$as_ln_s
2901 if test "$LN_S" = "ln -s"; then
2902 echo "$as_me:2902: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6
2904 else
2905 echo "$as_me:2905: result: no, using $LN_S" >&5
2906 echo "${ECHO_T}no, using $LN_S" >&6
2907 fi
2908
2909 test "$program_prefix" != NONE &&
2910 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2911 # Use a double $ so make ignores it.
2912 test "$program_suffix" != NONE &&
2913 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2914 # Double any \ or $. echo might interpret backslashes.
2915 # By default was `s,x,x', remove it if useless.
2916 cat <<\_ACEOF >conftest.sed
2917 s/[\\$]/&&/g;s/;s,x,x,$//
2918 _ACEOF
2919 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2920 rm conftest.sed
2921
2922 for ac_prog in lint cppcheck splint
2923 do
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 echo "$as_me:2926: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2928 if test "${ac_cv_prog_LINT+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 if test -n "$LINT"; then
2932 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2933 else
2934 ac_save_IFS=$IFS; IFS=$ac_path_separator
2935 ac_dummy="$PATH"
2936 for ac_dir in $ac_dummy; do
2937 IFS=$ac_save_IFS
2938 test -z "$ac_dir" && ac_dir=.
2939 $as_executable_p "$ac_dir/$ac_word" || continue
2940 ac_cv_prog_LINT="$ac_prog"
2941 echo "$as_me:2941: found $ac_dir/$ac_word" >&5
2942 break
2943 done
2944
2945 fi
2946 fi
2947 LINT=$ac_cv_prog_LINT
2948 if test -n "$LINT"; then
2949 echo "$as_me:2949: result: $LINT" >&5
2950 echo "${ECHO_T}$LINT" >&6
2951 else
2952 echo "$as_me:2952: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2954 fi
2955
2956 test -n "$LINT" && break
2957 done
2958
2959 case "x$LINT" in
2960 (xcppcheck|x*/cppcheck)
2961 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2962 ;;
2963 esac
2964
2965 ### checks for compiler characteristics
2966
2967 echo "$as_me:2967: checking if the POSIX test-macros are already defined" >&5
2968 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
2969 if test "${cf_cv_posix_visible+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972
2973 cat >"conftest.$ac_ext" <<_ACEOF
2974 #line 2974 "configure"
2975 #include "confdefs.h"
2976 #include <stdio.h>
2977 int
2978 main (void)
2979 {
2980
2981 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
2982 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
2983 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
2984 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
2985 #error conflicting symbols found
2986 #endif
2987
2988 ;
2989 return 0;
2990 }
2991 _ACEOF
2992 rm -f "conftest.$ac_objext"
2993 if { (eval echo "$as_me:2993: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>&5
2995 ac_status=$?
2996 echo "$as_me:2996: \$? = $ac_status" >&5
2997 (exit "$ac_status"); } &&
2998 { ac_try='test -s "conftest.$ac_objext"'
2999 { (eval echo "$as_me:2999: \"$ac_try\"") >&5
3000 (eval $ac_try) 2>&5
3001 ac_status=$?
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit "$ac_status"); }; }; then
3004 cf_cv_posix_visible=no
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 cat "conftest.$ac_ext" >&5
3008 cf_cv_posix_visible=yes
3009 fi
3010 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3011
3012 fi
3013 echo "$as_me:3013: result: $cf_cv_posix_visible" >&5
3014 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3015
3016 if test "$cf_cv_posix_visible" = no; then
3017
3018 cf_XOPEN_SOURCE=700
3019 cf_POSIX_C_SOURCE=199506L
3020 cf_xopen_source=
3021
3022 case "$host_os" in
3023 (aix[4-7]*)
3024 cf_xopen_source="-D_ALL_SOURCE"
3025 ;;
3026 (msys)
3027 cf_XOPEN_SOURCE=600
3028 ;;
3029 (darwin[0-8].*)
3030 cf_xopen_source="-D_APPLE_C_SOURCE"
3031 ;;
3032 (darwin*)
3033 cf_xopen_source="-D_DARWIN_C_SOURCE"
3034 cf_XOPEN_SOURCE=
3035 ;;
3036 (freebsd*|dragonfly*|midnightbsd*)
3037 # 5.x headers associate
3038 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3039 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3040 cf_POSIX_C_SOURCE=200112L
3041 cf_XOPEN_SOURCE=600
3042 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3043 ;;
3044 (hpux11*)
3045 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3046 ;;
3047 (hpux*)
3048 cf_xopen_source="-D_HPUX_SOURCE"
3049 ;;
3050 (irix[56].*)
3051 cf_xopen_source="-D_SGI_SOURCE"
3052 cf_XOPEN_SOURCE=
3053 ;;
3054 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3055
3056 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3057
3058 echo "$as_me:3058: checking if this is the GNU C library" >&5
3059 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3060 if test "${cf_cv_gnu_library+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063
3064 cat >"conftest.$ac_ext" <<_ACEOF
3065 #line 3065 "configure"
3066 #include "confdefs.h"
3067 #include <sys/types.h>
3068 int
3069 main (void)
3070 {
3071
3072 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3073 return 0;
3074 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3075 return 0;
3076 #else
3077 # error not GNU C library
3078 #endif
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 rm -f "conftest.$ac_objext"
3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>&5
3086 ac_status=$?
3087 echo "$as_me:3087: \$? = $ac_status" >&5
3088 (exit "$ac_status"); } &&
3089 { ac_try='test -s "conftest.$ac_objext"'
3090 { (eval echo "$as_me:3090: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:3093: \$? = $ac_status" >&5
3094 (exit "$ac_status"); }; }; then
3095 cf_cv_gnu_library=yes
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 cat "conftest.$ac_ext" >&5
3099 cf_cv_gnu_library=no
3100 fi
3101 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3102
3103 fi
3104 echo "$as_me:3104: result: $cf_cv_gnu_library" >&5
3105 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3106
3107 if test x$cf_cv_gnu_library = xyes; then
3108
3109 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3110 # was changed to help a little. newlib incorporated the change about 4
3111 # years later.
3112 echo "$as_me:3112: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3113 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3114 if test "${cf_cv_gnu_library_219+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117
3118 cf_save="$CPPFLAGS"
3119
3120 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3121 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3122
3123 cat >"conftest.$ac_ext" <<_ACEOF
3124 #line 3124 "configure"
3125 #include "confdefs.h"
3126 #include <sys/types.h>
3127 int
3128 main (void)
3129 {
3130
3131 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3132 return 0;
3133 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3134 return 0;
3135 #else
3136 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3137 #endif
3138 ;
3139 return 0;
3140 }
3141 _ACEOF
3142 rm -f "conftest.$ac_objext"
3143 if { (eval echo "$as_me:3143: \"$ac_compile\"") >&5
3144 (eval $ac_compile) 2>&5
3145 ac_status=$?
3146 echo "$as_me:3146: \$? = $ac_status" >&5
3147 (exit "$ac_status"); } &&
3148 { ac_try='test -s "conftest.$ac_objext"'
3149 { (eval echo "$as_me:3149: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:3152: \$? = $ac_status" >&5
3153 (exit "$ac_status"); }; }; then
3154 cf_cv_gnu_library_219=yes
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 cat "conftest.$ac_ext" >&5
3158 cf_cv_gnu_library_219=no
3159 fi
3160 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3161 CPPFLAGS="$cf_save"
3162
3163 fi
3164 echo "$as_me:3164: result: $cf_cv_gnu_library_219" >&5
3165 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3166
3167 if test "x$cf_cv_gnu_library_219" = xyes; then
3168 cf_save="$CPPFLAGS"
3169 echo "$as_me:3169: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3170 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3171 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174
3175 cf_fix_cppflags=no
3176 cf_new_cflags=
3177 cf_new_cppflags=
3178 cf_new_extra_cppflags=
3179
3180 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3181 do
3182 case "$cf_fix_cppflags" in
3183 (no)
3184 case "$cf_add_cflags" in
3185 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3186 case "$cf_add_cflags" in
3187 (-D*)
3188 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3189
3190 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3191 && test -z "${cf_tst_cflags}" \
3192 && cf_fix_cppflags=yes
3193
3194 if test "$cf_fix_cppflags" = yes ; then
3195
3196 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3197 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3198
3199 continue
3200 elif test "${cf_tst_cflags}" = "\"'" ; then
3201
3202 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3203 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3204
3205 continue
3206 fi
3207 ;;
3208 esac
3209 case "$CPPFLAGS" in
3210 (*$cf_add_cflags)
3211 ;;
3212 (*)
3213 case "$cf_add_cflags" in
3214 (-D*)
3215 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3216
3217 CPPFLAGS=`echo "$CPPFLAGS" | \
3218 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3219 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3220
3221 ;;
3222 esac
3223
3224 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3225 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3226
3227 ;;
3228 esac
3229 ;;
3230 (*)
3231
3232 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3233 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3234
3235 ;;
3236 esac
3237 ;;
3238 (yes)
3239
3240 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3241 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3242
3243 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3244
3245 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3246 && test -z "${cf_tst_cflags}" \
3247 && cf_fix_cppflags=no
3248 ;;
3249 esac
3250 done
3251
3252 if test -n "$cf_new_cflags" ; then
3253
3254 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3255 CFLAGS="${CFLAGS}$cf_new_cflags"
3256
3257 fi
3258
3259 if test -n "$cf_new_cppflags" ; then
3260
3261 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3262 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3263
3264 fi
3265
3266 if test -n "$cf_new_extra_cppflags" ; then
3267
3268 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3269 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3270
3271 fi
3272
3273 cat >"conftest.$ac_ext" <<_ACEOF
3274 #line 3274 "configure"
3275 #include "confdefs.h"
3276
3277 #include <limits.h>
3278 #include <sys/types.h>
3279
3280 int
3281 main (void)
3282 {
3283
3284 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3285 return 0;
3286 #else
3287 # error GNU C library is too old
3288 #endif
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 rm -f "conftest.$ac_objext"
3294 if { (eval echo "$as_me:3294: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>&5
3296 ac_status=$?
3297 echo "$as_me:3297: \$? = $ac_status" >&5
3298 (exit "$ac_status"); } &&
3299 { ac_try='test -s "conftest.$ac_objext"'
3300 { (eval echo "$as_me:3300: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit "$ac_status"); }; }; then
3305 cf_cv_gnu_dftsrc_219=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 cat "conftest.$ac_ext" >&5
3309 cf_cv_gnu_dftsrc_219=no
3310 fi
3311 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3312
3313 fi
3314 echo "$as_me:3314: result: $cf_cv_gnu_dftsrc_219" >&5
3315 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3316 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3317 else
3318 cf_cv_gnu_dftsrc_219=maybe
3319 fi
3320
3321 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3322
3323 echo "$as_me:3323: checking if we must define _GNU_SOURCE" >&5
3324 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3325 if test "${cf_cv_gnu_source+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328
3329 cat >"conftest.$ac_ext" <<_ACEOF
3330 #line 3330 "configure"
3331 #include "confdefs.h"
3332 #include <sys/types.h>
3333 int
3334 main (void)
3335 {
3336
3337 #ifndef _XOPEN_SOURCE
3338 #error expected _XOPEN_SOURCE to be defined
3339 #endif
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 rm -f "conftest.$ac_objext"
3345 if { (eval echo "$as_me:3345: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>&5
3347 ac_status=$?
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit "$ac_status"); } &&
3350 { ac_try='test -s "conftest.$ac_objext"'
3351 { (eval echo "$as_me:3351: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:3354: \$? = $ac_status" >&5
3355 (exit "$ac_status"); }; }; then
3356 cf_cv_gnu_source=no
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 cat "conftest.$ac_ext" >&5
3360 cf_save="$CPPFLAGS"
3361
3362 cf_fix_cppflags=no
3363 cf_new_cflags=
3364 cf_new_cppflags=
3365 cf_new_extra_cppflags=
3366
3367 for cf_add_cflags in -D_GNU_SOURCE
3368 do
3369 case "$cf_fix_cppflags" in
3370 (no)
3371 case "$cf_add_cflags" in
3372 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3373 case "$cf_add_cflags" in
3374 (-D*)
3375 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3376
3377 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3378 && test -z "${cf_tst_cflags}" \
3379 && cf_fix_cppflags=yes
3380
3381 if test "$cf_fix_cppflags" = yes ; then
3382
3383 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3384 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3385
3386 continue
3387 elif test "${cf_tst_cflags}" = "\"'" ; then
3388
3389 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3390 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3391
3392 continue
3393 fi
3394 ;;
3395 esac
3396 case "$CPPFLAGS" in
3397 (*$cf_add_cflags)
3398 ;;
3399 (*)
3400 case "$cf_add_cflags" in
3401 (-D*)
3402 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3403
3404 CPPFLAGS=`echo "$CPPFLAGS" | \
3405 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3406 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3407
3408 ;;
3409 esac
3410
3411 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3412 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3413
3414 ;;
3415 esac
3416 ;;
3417 (*)
3418
3419 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3420 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3421
3422 ;;
3423 esac
3424 ;;
3425 (yes)
3426
3427 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3428 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3429
3430 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3431
3432 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3433 && test -z "${cf_tst_cflags}" \
3434 && cf_fix_cppflags=no
3435 ;;
3436 esac
3437 done
3438
3439 if test -n "$cf_new_cflags" ; then
3440
3441 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3442 CFLAGS="${CFLAGS}$cf_new_cflags"
3443
3444 fi
3445
3446 if test -n "$cf_new_cppflags" ; then
3447
3448 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3449 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3450
3451 fi
3452
3453 if test -n "$cf_new_extra_cppflags" ; then
3454
3455 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3456 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3457
3458 fi
3459
3460 cat >"conftest.$ac_ext" <<_ACEOF
3461 #line 3461 "configure"
3462 #include "confdefs.h"
3463 #include <sys/types.h>
3464 int
3465 main (void)
3466 {
3467
3468 #ifdef _XOPEN_SOURCE
3469 #error expected _XOPEN_SOURCE to be undefined
3470 #endif
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 rm -f "conftest.$ac_objext"
3476 if { (eval echo "$as_me:3476: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>&5
3478 ac_status=$?
3479 echo "$as_me:3479: \$? = $ac_status" >&5
3480 (exit "$ac_status"); } &&
3481 { ac_try='test -s "conftest.$ac_objext"'
3482 { (eval echo "$as_me:3482: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:3485: \$? = $ac_status" >&5
3486 (exit "$ac_status"); }; }; then
3487 cf_cv_gnu_source=no
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 cat "conftest.$ac_ext" >&5
3491 cf_cv_gnu_source=yes
3492 fi
3493 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3494 CPPFLAGS="$cf_save"
3495
3496 fi
3497 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3498
3499 fi
3500 echo "$as_me:3500: result: $cf_cv_gnu_source" >&5
3501 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3502
3503 if test "$cf_cv_gnu_source" = yes
3504 then
3505 echo "$as_me:3505: checking if we should also define _DEFAULT_SOURCE" >&5
3506 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3507 if test "${cf_cv_default_source+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510
3511 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3512 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
3513
3514 cat >"conftest.$ac_ext" <<_ACEOF
3515 #line 3515 "configure"
3516 #include "confdefs.h"
3517 #include <sys/types.h>
3518 int
3519 main (void)
3520 {
3521
3522 #ifdef _DEFAULT_SOURCE
3523 #error expected _DEFAULT_SOURCE to be undefined
3524 #endif
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 rm -f "conftest.$ac_objext"
3530 if { (eval echo "$as_me:3530: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>&5
3532 ac_status=$?
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit "$ac_status"); } &&
3535 { ac_try='test -s "conftest.$ac_objext"'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit "$ac_status"); }; }; then
3541 cf_cv_default_source=no
3542 else
3543 echo "$as_me: failed program was:" >&5
3544 cat "conftest.$ac_ext" >&5
3545 cf_cv_default_source=yes
3546 fi
3547 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3548
3549 fi
3550 echo "$as_me:3550: result: $cf_cv_default_source" >&5
3551 echo "${ECHO_T}$cf_cv_default_source" >&6
3552 if test "$cf_cv_default_source" = yes
3553 then
3554
3555 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3556 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3557
3558 fi
3559 fi
3560 fi
3561
3562 fi
3563
3564 ;;
3565 (minix*)
3566 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3567 ;;
3568 (mirbsd*)
3569 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3570 cf_XOPEN_SOURCE=
3571
3572 if test "$cf_cv_posix_visible" = no; then
3573
3574 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3575
3576 cf_save_CFLAGS="$CFLAGS"
3577 cf_save_CPPFLAGS="$CPPFLAGS"
3578
3579 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3580 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3581 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3582
3583 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3584 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3585 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3586
3587 echo "$as_me:3587: checking if we should define _POSIX_C_SOURCE" >&5
3588 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3589 if test "${cf_cv_posix_c_source+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592
3593 echo "${as_me:-configure}:3593: testing if the symbol is already defined go no further ..." 1>&5
3594
3595 cat >"conftest.$ac_ext" <<_ACEOF
3596 #line 3596 "configure"
3597 #include "confdefs.h"
3598 #include <sys/types.h>
3599 int
3600 main (void)
3601 {
3602
3603 #ifndef _POSIX_C_SOURCE
3604 make an error
3605 #endif
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 rm -f "conftest.$ac_objext"
3611 if { (eval echo "$as_me:3611: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>&5
3613 ac_status=$?
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit "$ac_status"); } &&
3616 { ac_try='test -s "conftest.$ac_objext"'
3617 { (eval echo "$as_me:3617: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:3620: \$? = $ac_status" >&5
3621 (exit "$ac_status"); }; }; then
3622 cf_cv_posix_c_source=no
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 cat "conftest.$ac_ext" >&5
3626 cf_want_posix_source=no
3627 case .$cf_POSIX_C_SOURCE in
3628 (.[12]??*)
3629 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3630 ;;
3631 (.2)
3632 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3633 cf_want_posix_source=yes
3634 ;;
3635 (.*)
3636 cf_want_posix_source=yes
3637 ;;
3638 esac
3639 if test "$cf_want_posix_source" = yes ; then
3640 cat >"conftest.$ac_ext" <<_ACEOF
3641 #line 3641 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3644 int
3645 main (void)
3646 {
3647
3648 #ifdef _POSIX_SOURCE
3649 make an error
3650 #endif
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 rm -f "conftest.$ac_objext"
3656 if { (eval echo "$as_me:3656: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>&5
3658 ac_status=$?
3659 echo "$as_me:3659: \$? = $ac_status" >&5
3660 (exit "$ac_status"); } &&
3661 { ac_try='test -s "conftest.$ac_objext"'
3662 { (eval echo "$as_me:3662: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:3665: \$? = $ac_status" >&5
3666 (exit "$ac_status"); }; }; then
3667 :
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 cat "conftest.$ac_ext" >&5
3671 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3672 fi
3673 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3674 fi
3675
3676 echo "${as_me:-configure}:3676: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3677
3678 CFLAGS="$cf_trim_CFLAGS"
3679 CPPFLAGS="$cf_trim_CPPFLAGS"
3680
3681 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3682 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
3683
3684 echo "${as_me:-configure}:3684: testing if the second compile does not leave our definition intact error ..." 1>&5
3685
3686 cat >"conftest.$ac_ext" <<_ACEOF
3687 #line 3687 "configure"
3688 #include "confdefs.h"
3689 #include <sys/types.h>
3690 int
3691 main (void)
3692 {
3693
3694 #ifndef _POSIX_C_SOURCE
3695 make an error
3696 #endif
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f "conftest.$ac_objext"
3702 if { (eval echo "$as_me:3702: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>&5
3704 ac_status=$?
3705 echo "$as_me:3705: \$? = $ac_status" >&5
3706 (exit "$ac_status"); } &&
3707 { ac_try='test -s "conftest.$ac_objext"'
3708 { (eval echo "$as_me:3708: \"$ac_try\"") >&5
3709 (eval $ac_try) 2>&5
3710 ac_status=$?
3711 echo "$as_me:3711: \$? = $ac_status" >&5
3712 (exit "$ac_status"); }; }; then
3713 :
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 cat "conftest.$ac_ext" >&5
3717 cf_cv_posix_c_source=no
3718 fi
3719 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3720 CFLAGS="$cf_save_CFLAGS"
3721 CPPFLAGS="$cf_save_CPPFLAGS"
3722
3723 fi
3724 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3725
3726 fi
3727 echo "$as_me:3727: result: $cf_cv_posix_c_source" >&5
3728 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3729
3730 if test "$cf_cv_posix_c_source" != no ; then
3731 CFLAGS="$cf_trim_CFLAGS"
3732 CPPFLAGS="$cf_trim_CPPFLAGS"
3733
3734 cf_fix_cppflags=no
3735 cf_new_cflags=
3736 cf_new_cppflags=
3737 cf_new_extra_cppflags=
3738
3739 for cf_add_cflags in $cf_cv_posix_c_source
3740 do
3741 case "$cf_fix_cppflags" in
3742 (no)
3743 case "$cf_add_cflags" in
3744 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3745 case "$cf_add_cflags" in
3746 (-D*)
3747 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3748
3749 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3750 && test -z "${cf_tst_cflags}" \
3751 && cf_fix_cppflags=yes
3752
3753 if test "$cf_fix_cppflags" = yes ; then
3754
3755 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3756 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3757
3758 continue
3759 elif test "${cf_tst_cflags}" = "\"'" ; then
3760
3761 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3762 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3763
3764 continue
3765 fi
3766 ;;
3767 esac
3768 case "$CPPFLAGS" in
3769 (*$cf_add_cflags)
3770 ;;
3771 (*)
3772 case "$cf_add_cflags" in
3773 (-D*)
3774 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3775
3776 CPPFLAGS=`echo "$CPPFLAGS" | \
3777 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3778 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3779
3780 ;;
3781 esac
3782
3783 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3784 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3785
3786 ;;
3787 esac
3788 ;;
3789 (*)
3790
3791 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3792 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3793
3794 ;;
3795 esac
3796 ;;
3797 (yes)
3798
3799 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3800 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3801
3802 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3803
3804 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3805 && test -z "${cf_tst_cflags}" \
3806 && cf_fix_cppflags=no
3807 ;;
3808 esac
3809 done
3810
3811 if test -n "$cf_new_cflags" ; then
3812
3813 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3814 CFLAGS="${CFLAGS}$cf_new_cflags"
3815
3816 fi
3817
3818 if test -n "$cf_new_cppflags" ; then
3819
3820 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3821 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3822
3823 fi
3824
3825 if test -n "$cf_new_extra_cppflags" ; then
3826
3827 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3828 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3829
3830 fi
3831
3832 fi
3833
3834 fi # cf_cv_posix_visible
3835
3836 ;;
3837 (netbsd*)
3838 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3839 ;;
3840 (openbsd[6-9]*)
3841 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
3842 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
3843 # Abusing the conformance level is a workaround.
3844 { echo "$as_me:3844: WARNING: this system does not provide usable locale support" >&5
3845 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
3846 cf_xopen_source="-D_BSD_SOURCE"
3847 cf_XOPEN_SOURCE=700
3848 ;;
3849 (openbsd[4-5]*)
3850 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3851 cf_xopen_source="-D_BSD_SOURCE"
3852 cf_XOPEN_SOURCE=600
3853 ;;
3854 (openbsd*)
3855 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3856 ;;
3857 (osf[45]*)
3858 cf_xopen_source="-D_OSF_SOURCE"
3859 ;;
3860 (nto-qnx*)
3861 cf_xopen_source="-D_QNX_SOURCE"
3862 ;;
3863 (sco*)
3864 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3865 ;;
3866 (solaris2.*)
3867 cf_xopen_source="-D__EXTENSIONS__"
3868 cf_cv_xopen_source=broken
3869 ;;
3870 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3871 cf_XOPEN_SOURCE=
3872 cf_POSIX_C_SOURCE=
3873 ;;
3874 (*)
3875
3876 echo "$as_me:3876: checking if we should define _XOPEN_SOURCE" >&5
3877 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3878 if test "${cf_cv_xopen_source+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881
3882 cat >"conftest.$ac_ext" <<_ACEOF
3883 #line 3883 "configure"
3884 #include "confdefs.h"
3885
3886 #include <stdlib.h>
3887 #include <string.h>
3888 #include <sys/types.h>
3889
3890 int
3891 main (void)
3892 {
3893
3894 #ifndef _XOPEN_SOURCE
3895 make an error
3896 #endif
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 rm -f "conftest.$ac_objext"
3902 if { (eval echo "$as_me:3902: \"$ac_compile\"") >&5
3903 (eval $ac_compile) 2>&5
3904 ac_status=$?
3905 echo "$as_me:3905: \$? = $ac_status" >&5
3906 (exit "$ac_status"); } &&
3907 { ac_try='test -s "conftest.$ac_objext"'
3908 { (eval echo "$as_me:3908: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:3911: \$? = $ac_status" >&5
3912 (exit "$ac_status"); }; }; then
3913 cf_cv_xopen_source=no
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 cat "conftest.$ac_ext" >&5
3917 cf_save="$CPPFLAGS"
3918
3919 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3920 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3921
3922 cat >"conftest.$ac_ext" <<_ACEOF
3923 #line 3923 "configure"
3924 #include "confdefs.h"
3925
3926 #include <stdlib.h>
3927 #include <string.h>
3928 #include <sys/types.h>
3929
3930 int
3931 main (void)
3932 {
3933
3934 #ifdef _XOPEN_SOURCE
3935 make an error
3936 #endif
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 rm -f "conftest.$ac_objext"
3942 if { (eval echo "$as_me:3942: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>&5
3944 ac_status=$?
3945 echo "$as_me:3945: \$? = $ac_status" >&5
3946 (exit "$ac_status"); } &&
3947 { ac_try='test -s "conftest.$ac_objext"'
3948 { (eval echo "$as_me:3948: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:3951: \$? = $ac_status" >&5
3952 (exit "$ac_status"); }; }; then
3953 cf_cv_xopen_source=no
3954 else
3955 echo "$as_me: failed program was:" >&5
3956 cat "conftest.$ac_ext" >&5
3957 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3958 fi
3959 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3960 CPPFLAGS="$cf_save"
3961
3962 fi
3963 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3964
3965 fi
3966 echo "$as_me:3966: result: $cf_cv_xopen_source" >&5
3967 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3968
3969 if test "$cf_cv_xopen_source" != no ; then
3970
3971 CFLAGS=`echo "$CFLAGS" | \
3972 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3973 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3974
3975 CPPFLAGS=`echo "$CPPFLAGS" | \
3976 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3977 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3978
3979 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3980
3981 for cf_add_cflags in $cf_temp_xopen_source
3982 do
3983 case "x$cf_add_cflags" in
3984 (x-[DU]*)
3985
3986 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
3987 while true
3988 do
3989 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
3990 test "$CFLAGS" != "$cf_old_cflag" || break
3991
3992 CFLAGS="$cf_old_cflag"
3993 done
3994
3995 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
3996 while true
3997 do
3998 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
3999 test "$CPPFLAGS" != "$cf_old_cflag" || break
4000
4001 CPPFLAGS="$cf_old_cflag"
4002 done
4003
4004 ;;
4005 esac
4006
4007 cf_fix_cppflags=no
4008 cf_new_cflags=
4009 cf_new_cppflags=
4010 cf_new_extra_cppflags=
4011
4012 for cf_add_cflags in $cf_add_cflags
4013 do
4014 case "$cf_fix_cppflags" in
4015 (no)
4016 case "$cf_add_cflags" in
4017 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4018 case "$cf_add_cflags" in
4019 (-D*)
4020 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4021
4022 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4023 && test -z "${cf_tst_cflags}" \
4024 && cf_fix_cppflags=yes
4025
4026 if test "$cf_fix_cppflags" = yes ; then
4027
4028 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4029 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4030
4031 continue
4032 elif test "${cf_tst_cflags}" = "\"'" ; then
4033
4034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4036
4037 continue
4038 fi
4039 ;;
4040 esac
4041 case "$CPPFLAGS" in
4042 (*$cf_add_cflags)
4043 ;;
4044 (*)
4045 case "$cf_add_cflags" in
4046 (-D*)
4047 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4048
4049 CPPFLAGS=`echo "$CPPFLAGS" | \
4050 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4051 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4052
4053 ;;
4054 esac
4055
4056 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4057 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4058
4059 ;;
4060 esac
4061 ;;
4062 (*)
4063
4064 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4065 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4066
4067 ;;
4068 esac
4069 ;;
4070 (yes)
4071
4072 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4073 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4074
4075 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4076
4077 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4078 && test -z "${cf_tst_cflags}" \
4079 && cf_fix_cppflags=no
4080 ;;
4081 esac
4082 done
4083
4084 if test -n "$cf_new_cflags" ; then
4085
4086 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4087 CFLAGS="${CFLAGS}$cf_new_cflags"
4088
4089 fi
4090
4091 if test -n "$cf_new_cppflags" ; then
4092
4093 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4094 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4095
4096 fi
4097
4098 if test -n "$cf_new_extra_cppflags" ; then
4099
4100 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4101 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4102
4103 fi
4104
4105 done
4106
4107 fi
4108
4109 if test "$cf_cv_posix_visible" = no; then
4110
4111 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4112
4113 cf_save_CFLAGS="$CFLAGS"
4114 cf_save_CPPFLAGS="$CPPFLAGS"
4115
4116 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4117 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4118 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4119
4120 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4121 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4122 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4123
4124 echo "$as_me:4124: checking if we should define _POSIX_C_SOURCE" >&5
4125 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4126 if test "${cf_cv_posix_c_source+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129
4130 echo "${as_me:-configure}:4130: testing if the symbol is already defined go no further ..." 1>&5
4131
4132 cat >"conftest.$ac_ext" <<_ACEOF
4133 #line 4133 "configure"
4134 #include "confdefs.h"
4135 #include <sys/types.h>
4136 int
4137 main (void)
4138 {
4139
4140 #ifndef _POSIX_C_SOURCE
4141 make an error
4142 #endif
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f "conftest.$ac_objext"
4148 if { (eval echo "$as_me:4148: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4150 ac_status=$?
4151 echo "$as_me:4151: \$? = $ac_status" >&5
4152 (exit "$ac_status"); } &&
4153 { ac_try='test -s "conftest.$ac_objext"'
4154 { (eval echo "$as_me:4154: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit "$ac_status"); }; }; then
4159 cf_cv_posix_c_source=no
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 cat "conftest.$ac_ext" >&5
4163 cf_want_posix_source=no
4164 case .$cf_POSIX_C_SOURCE in
4165 (.[12]??*)
4166 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4167 ;;
4168 (.2)
4169 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4170 cf_want_posix_source=yes
4171 ;;
4172 (.*)
4173 cf_want_posix_source=yes
4174 ;;
4175 esac
4176 if test "$cf_want_posix_source" = yes ; then
4177 cat >"conftest.$ac_ext" <<_ACEOF
4178 #line 4178 "configure"
4179 #include "confdefs.h"
4180 #include <sys/types.h>
4181 int
4182 main (void)
4183 {
4184
4185 #ifdef _POSIX_SOURCE
4186 make an error
4187 #endif
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 rm -f "conftest.$ac_objext"
4193 if { (eval echo "$as_me:4193: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>&5
4195 ac_status=$?
4196 echo "$as_me:4196: \$? = $ac_status" >&5
4197 (exit "$ac_status"); } &&
4198 { ac_try='test -s "conftest.$ac_objext"'
4199 { (eval echo "$as_me:4199: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:4202: \$? = $ac_status" >&5
4203 (exit "$ac_status"); }; }; then
4204 :
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 cat "conftest.$ac_ext" >&5
4208 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4209 fi
4210 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4211 fi
4212
4213 echo "${as_me:-configure}:4213: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4214
4215 CFLAGS="$cf_trim_CFLAGS"
4216 CPPFLAGS="$cf_trim_CPPFLAGS"
4217
4218 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4219 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4220
4221 echo "${as_me:-configure}:4221: testing if the second compile does not leave our definition intact error ..." 1>&5
4222
4223 cat >"conftest.$ac_ext" <<_ACEOF
4224 #line 4224 "configure"
4225 #include "confdefs.h"
4226 #include <sys/types.h>
4227 int
4228 main (void)
4229 {
4230
4231 #ifndef _POSIX_C_SOURCE
4232 make an error
4233 #endif
4234 ;
4235 return 0;
4236 }
4237 _ACEOF
4238 rm -f "conftest.$ac_objext"
4239 if { (eval echo "$as_me:4239: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>&5
4241 ac_status=$?
4242 echo "$as_me:4242: \$? = $ac_status" >&5
4243 (exit "$ac_status"); } &&
4244 { ac_try='test -s "conftest.$ac_objext"'
4245 { (eval echo "$as_me:4245: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:4248: \$? = $ac_status" >&5
4249 (exit "$ac_status"); }; }; then
4250 :
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 cat "conftest.$ac_ext" >&5
4254 cf_cv_posix_c_source=no
4255 fi
4256 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4257 CFLAGS="$cf_save_CFLAGS"
4258 CPPFLAGS="$cf_save_CPPFLAGS"
4259
4260 fi
4261 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4262
4263 fi
4264 echo "$as_me:4264: result: $cf_cv_posix_c_source" >&5
4265 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4266
4267 if test "$cf_cv_posix_c_source" != no ; then
4268 CFLAGS="$cf_trim_CFLAGS"
4269 CPPFLAGS="$cf_trim_CPPFLAGS"
4270
4271 cf_fix_cppflags=no
4272 cf_new_cflags=
4273 cf_new_cppflags=
4274 cf_new_extra_cppflags=
4275
4276 for cf_add_cflags in $cf_cv_posix_c_source
4277 do
4278 case "$cf_fix_cppflags" in
4279 (no)
4280 case "$cf_add_cflags" in
4281 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4282 case "$cf_add_cflags" in
4283 (-D*)
4284 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4285
4286 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4287 && test -z "${cf_tst_cflags}" \
4288 && cf_fix_cppflags=yes
4289
4290 if test "$cf_fix_cppflags" = yes ; then
4291
4292 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4293 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4294
4295 continue
4296 elif test "${cf_tst_cflags}" = "\"'" ; then
4297
4298 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4299 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4300
4301 continue
4302 fi
4303 ;;
4304 esac
4305 case "$CPPFLAGS" in
4306 (*$cf_add_cflags)
4307 ;;
4308 (*)
4309 case "$cf_add_cflags" in
4310 (-D*)
4311 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4312
4313 CPPFLAGS=`echo "$CPPFLAGS" | \
4314 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4315 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4316
4317 ;;
4318 esac
4319
4320 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4321 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4322
4323 ;;
4324 esac
4325 ;;
4326 (*)
4327
4328 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4329 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4330
4331 ;;
4332 esac
4333 ;;
4334 (yes)
4335
4336 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4337 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4338
4339 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4340
4341 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4342 && test -z "${cf_tst_cflags}" \
4343 && cf_fix_cppflags=no
4344 ;;
4345 esac
4346 done
4347
4348 if test -n "$cf_new_cflags" ; then
4349
4350 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4351 CFLAGS="${CFLAGS}$cf_new_cflags"
4352
4353 fi
4354
4355 if test -n "$cf_new_cppflags" ; then
4356
4357 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4358 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4359
4360 fi
4361
4362 if test -n "$cf_new_extra_cppflags" ; then
4363
4364 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4365 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4366
4367 fi
4368
4369 fi
4370
4371 fi # cf_cv_posix_visible
4372
4373 ;;
4374 esac
4375
4376 if test -n "$cf_xopen_source" ; then
4377
4378 for cf_add_cflags in $cf_xopen_source
4379 do
4380 case "x$cf_add_cflags" in
4381 (x-[DU]*)
4382
4383 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4384 while true
4385 do
4386 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4387 test "$CFLAGS" != "$cf_old_cflag" || break
4388 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
4389
4390 echo "${as_me:-configure}:4390: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
4391
4392 CFLAGS="$cf_old_cflag"
4393 done
4394
4395 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4396 while true
4397 do
4398 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4399 test "$CPPFLAGS" != "$cf_old_cflag" || break
4400 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
4401
4402 echo "${as_me:-configure}:4402: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
4403
4404 CPPFLAGS="$cf_old_cflag"
4405 done
4406
4407 ;;
4408 esac
4409
4410 cf_fix_cppflags=no
4411 cf_new_cflags=
4412 cf_new_cppflags=
4413 cf_new_extra_cppflags=
4414
4415 for cf_add_cflags in $cf_add_cflags
4416 do
4417 case "$cf_fix_cppflags" in
4418 (no)
4419 case "$cf_add_cflags" in
4420 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4421 case "$cf_add_cflags" in
4422 (-D*)
4423 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4424
4425 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4426 && test -z "${cf_tst_cflags}" \
4427 && cf_fix_cppflags=yes
4428
4429 if test "$cf_fix_cppflags" = yes ; then
4430
4431 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4432 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4433
4434 continue
4435 elif test "${cf_tst_cflags}" = "\"'" ; then
4436
4437 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4438 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4439
4440 continue
4441 fi
4442 ;;
4443 esac
4444 case "$CPPFLAGS" in
4445 (*$cf_add_cflags)
4446 ;;
4447 (*)
4448 case "$cf_add_cflags" in
4449 (-D*)
4450 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4451
4452 CPPFLAGS=`echo "$CPPFLAGS" | \
4453 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4454 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4455
4456 ;;
4457 esac
4458
4459 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4460 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4461
4462 ;;
4463 esac
4464 ;;
4465 (*)
4466
4467 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4468 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4469
4470 ;;
4471 esac
4472 ;;
4473 (yes)
4474
4475 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4476 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4477
4478 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4479
4480 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4481 && test -z "${cf_tst_cflags}" \
4482 && cf_fix_cppflags=no
4483 ;;
4484 esac
4485 done
4486
4487 if test -n "$cf_new_cflags" ; then
4488 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4489
4490 echo "${as_me:-configure}:4490: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4491
4492 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4493 CFLAGS="${CFLAGS}$cf_new_cflags"
4494
4495 fi
4496
4497 if test -n "$cf_new_cppflags" ; then
4498 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4499
4500 echo "${as_me:-configure}:4500: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4501
4502 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4503 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4504
4505 fi
4506
4507 if test -n "$cf_new_extra_cppflags" ; then
4508 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4509
4510 echo "${as_me:-configure}:4510: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4511
4512 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4513 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4514
4515 fi
4516
4517 done
4518
4519 fi
4520
4521 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4522 echo "$as_me:4522: checking if _XOPEN_SOURCE really is set" >&5
4523 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4524 cat >"conftest.$ac_ext" <<_ACEOF
4525 #line 4525 "configure"
4526 #include "confdefs.h"
4527 #include <stdlib.h>
4528 int
4529 main (void)
4530 {
4531
4532 #ifndef _XOPEN_SOURCE
4533 make an error
4534 #endif
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 rm -f "conftest.$ac_objext"
4540 if { (eval echo "$as_me:4540: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>&5
4542 ac_status=$?
4543 echo "$as_me:4543: \$? = $ac_status" >&5
4544 (exit "$ac_status"); } &&
4545 { ac_try='test -s "conftest.$ac_objext"'
4546 { (eval echo "$as_me:4546: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:4549: \$? = $ac_status" >&5
4550 (exit "$ac_status"); }; }; then
4551 cf_XOPEN_SOURCE_set=yes
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 cat "conftest.$ac_ext" >&5
4555 cf_XOPEN_SOURCE_set=no
4556 fi
4557 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4558 echo "$as_me:4558: result: $cf_XOPEN_SOURCE_set" >&5
4559 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4560 if test "$cf_XOPEN_SOURCE_set" = yes
4561 then
4562 cat >"conftest.$ac_ext" <<_ACEOF
4563 #line 4563 "configure"
4564 #include "confdefs.h"
4565 #include <stdlib.h>
4566 int
4567 main (void)
4568 {
4569
4570 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4571 make an error
4572 #endif
4573 ;
4574 return 0;
4575 }
4576 _ACEOF
4577 rm -f "conftest.$ac_objext"
4578 if { (eval echo "$as_me:4578: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4580 ac_status=$?
4581 echo "$as_me:4581: \$? = $ac_status" >&5
4582 (exit "$ac_status"); } &&
4583 { ac_try='test -s "conftest.$ac_objext"'
4584 { (eval echo "$as_me:4584: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:4587: \$? = $ac_status" >&5
4588 (exit "$ac_status"); }; }; then
4589 cf_XOPEN_SOURCE_set_ok=yes
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 cat "conftest.$ac_ext" >&5
4593 cf_XOPEN_SOURCE_set_ok=no
4594 fi
4595 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4596 if test "$cf_XOPEN_SOURCE_set_ok" = no
4597 then
4598 { echo "$as_me:4598: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4599 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4600 fi
4601 else
4602
4603 echo "$as_me:4603: checking if we should define _XOPEN_SOURCE" >&5
4604 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4605 if test "${cf_cv_xopen_source+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608
4609 cat >"conftest.$ac_ext" <<_ACEOF
4610 #line 4610 "configure"
4611 #include "confdefs.h"
4612
4613 #include <stdlib.h>
4614 #include <string.h>
4615 #include <sys/types.h>
4616
4617 int
4618 main (void)
4619 {
4620
4621 #ifndef _XOPEN_SOURCE
4622 make an error
4623 #endif
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 rm -f "conftest.$ac_objext"
4629 if { (eval echo "$as_me:4629: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>&5
4631 ac_status=$?
4632 echo "$as_me:4632: \$? = $ac_status" >&5
4633 (exit "$ac_status"); } &&
4634 { ac_try='test -s "conftest.$ac_objext"'
4635 { (eval echo "$as_me:4635: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit "$ac_status"); }; }; then
4640 cf_cv_xopen_source=no
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 cat "conftest.$ac_ext" >&5
4644 cf_save="$CPPFLAGS"
4645
4646 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4647 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4648
4649 cat >"conftest.$ac_ext" <<_ACEOF
4650 #line 4650 "configure"
4651 #include "confdefs.h"
4652
4653 #include <stdlib.h>
4654 #include <string.h>
4655 #include <sys/types.h>
4656
4657 int
4658 main (void)
4659 {
4660
4661 #ifdef _XOPEN_SOURCE
4662 make an error
4663 #endif
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 rm -f "conftest.$ac_objext"
4669 if { (eval echo "$as_me:4669: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>&5
4671 ac_status=$?
4672 echo "$as_me:4672: \$? = $ac_status" >&5
4673 (exit "$ac_status"); } &&
4674 { ac_try='test -s "conftest.$ac_objext"'
4675 { (eval echo "$as_me:4675: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:4678: \$? = $ac_status" >&5
4679 (exit "$ac_status"); }; }; then
4680 cf_cv_xopen_source=no
4681 else
4682 echo "$as_me: failed program was:" >&5
4683 cat "conftest.$ac_ext" >&5
4684 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4685 fi
4686 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4687 CPPFLAGS="$cf_save"
4688
4689 fi
4690 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4691
4692 fi
4693 echo "$as_me:4693: result: $cf_cv_xopen_source" >&5
4694 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4695
4696 if test "$cf_cv_xopen_source" != no ; then
4697
4698 CFLAGS=`echo "$CFLAGS" | \
4699 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4700 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4701
4702 CPPFLAGS=`echo "$CPPFLAGS" | \
4703 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4704 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4705
4706 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4707
4708 for cf_add_cflags in $cf_temp_xopen_source
4709 do
4710 case "x$cf_add_cflags" in
4711 (x-[DU]*)
4712
4713 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4714 while true
4715 do
4716 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4717 test "$CFLAGS" != "$cf_old_cflag" || break
4718
4719 CFLAGS="$cf_old_cflag"
4720 done
4721
4722 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4723 while true
4724 do
4725 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4726 test "$CPPFLAGS" != "$cf_old_cflag" || break
4727
4728 CPPFLAGS="$cf_old_cflag"
4729 done
4730
4731 ;;
4732 esac
4733
4734 cf_fix_cppflags=no
4735 cf_new_cflags=
4736 cf_new_cppflags=
4737 cf_new_extra_cppflags=
4738
4739 for cf_add_cflags in $cf_add_cflags
4740 do
4741 case "$cf_fix_cppflags" in
4742 (no)
4743 case "$cf_add_cflags" in
4744 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4745 case "$cf_add_cflags" in
4746 (-D*)
4747 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4748
4749 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4750 && test -z "${cf_tst_cflags}" \
4751 && cf_fix_cppflags=yes
4752
4753 if test "$cf_fix_cppflags" = yes ; then
4754
4755 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4756 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4757
4758 continue
4759 elif test "${cf_tst_cflags}" = "\"'" ; then
4760
4761 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4762 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4763
4764 continue
4765 fi
4766 ;;
4767 esac
4768 case "$CPPFLAGS" in
4769 (*$cf_add_cflags)
4770 ;;
4771 (*)
4772 case "$cf_add_cflags" in
4773 (-D*)
4774 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4775
4776 CPPFLAGS=`echo "$CPPFLAGS" | \
4777 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4778 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4779
4780 ;;
4781 esac
4782
4783 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4784 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4785
4786 ;;
4787 esac
4788 ;;
4789 (*)
4790
4791 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4792 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4793
4794 ;;
4795 esac
4796 ;;
4797 (yes)
4798
4799 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4800 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4801
4802 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4803
4804 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4805 && test -z "${cf_tst_cflags}" \
4806 && cf_fix_cppflags=no
4807 ;;
4808 esac
4809 done
4810
4811 if test -n "$cf_new_cflags" ; then
4812
4813 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4814 CFLAGS="${CFLAGS}$cf_new_cflags"
4815
4816 fi
4817
4818 if test -n "$cf_new_cppflags" ; then
4819
4820 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4821 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4822
4823 fi
4824
4825 if test -n "$cf_new_extra_cppflags" ; then
4826
4827 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4828 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4829
4830 fi
4831
4832 done
4833
4834 fi
4835
4836 fi
4837 fi
4838 fi # cf_cv_posix_visible
4839
4840 echo "$as_me:4840: checking if SIGWINCH is defined" >&5
4841 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4842 if test "${cf_cv_define_sigwinch+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845
4846 cat >"conftest.$ac_ext" <<_ACEOF
4847 #line 4847 "configure"
4848 #include "confdefs.h"
4849
4850 #include <sys/types.h>
4851 #include <sys/signal.h>
4852
4853 int
4854 main (void)
4855 {
4856 int x = SIGWINCH; (void)x
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 rm -f "conftest.$ac_objext"
4862 if { (eval echo "$as_me:4862: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>&5
4864 ac_status=$?
4865 echo "$as_me:4865: \$? = $ac_status" >&5
4866 (exit "$ac_status"); } &&
4867 { ac_try='test -s "conftest.$ac_objext"'
4868 { (eval echo "$as_me:4868: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:4871: \$? = $ac_status" >&5
4872 (exit "$ac_status"); }; }; then
4873 cf_cv_define_sigwinch=yes
4874 else
4875 echo "$as_me: failed program was:" >&5
4876 cat "conftest.$ac_ext" >&5
4877 cat >"conftest.$ac_ext" <<_ACEOF
4878 #line 4878 "configure"
4879 #include "confdefs.h"
4880
4881 #undef _XOPEN_SOURCE
4882 #undef _POSIX_SOURCE
4883 #undef _POSIX_C_SOURCE
4884 #include <sys/types.h>
4885 #include <sys/signal.h>
4886
4887 int
4888 main (void)
4889 {
4890 int x = SIGWINCH; (void)x
4891 ;
4892 return 0;
4893 }
4894 _ACEOF
4895 rm -f "conftest.$ac_objext"
4896 if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>&5
4898 ac_status=$?
4899 echo "$as_me:4899: \$? = $ac_status" >&5
4900 (exit "$ac_status"); } &&
4901 { ac_try='test -s "conftest.$ac_objext"'
4902 { (eval echo "$as_me:4902: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:4905: \$? = $ac_status" >&5
4906 (exit "$ac_status"); }; }; then
4907 cf_cv_define_sigwinch=maybe
4908 else
4909 echo "$as_me: failed program was:" >&5
4910 cat "conftest.$ac_ext" >&5
4911 cf_cv_define_sigwinch=no
4912 fi
4913 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4914
4915 fi
4916 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4917
4918 fi
4919 echo "$as_me:4919: result: $cf_cv_define_sigwinch" >&5
4920 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4921
4922 if test "$cf_cv_define_sigwinch" = maybe ; then
4923 echo "$as_me:4923: checking for actual SIGWINCH definition" >&5
4924 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4925 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928
4929 cf_cv_fixup_sigwinch=unknown
4930 cf_sigwinch=32
4931 while test "$cf_sigwinch" != 1
4932 do
4933 cat >"conftest.$ac_ext" <<_ACEOF
4934 #line 4934 "configure"
4935 #include "confdefs.h"
4936
4937 #undef _XOPEN_SOURCE
4938 #undef _POSIX_SOURCE
4939 #undef _POSIX_C_SOURCE
4940 #include <sys/types.h>
4941 #include <sys/signal.h>
4942
4943 int
4944 main (void)
4945 {
4946
4947 #if SIGWINCH != $cf_sigwinch
4948 make an error
4949 #endif
4950 int x = SIGWINCH; (void)x
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 rm -f "conftest.$ac_objext"
4956 if { (eval echo "$as_me:4956: \"$ac_compile\"") >&5
4957 (eval $ac_compile) 2>&5
4958 ac_status=$?
4959 echo "$as_me:4959: \$? = $ac_status" >&5
4960 (exit "$ac_status"); } &&
4961 { ac_try='test -s "conftest.$ac_objext"'
4962 { (eval echo "$as_me:4962: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:4965: \$? = $ac_status" >&5
4966 (exit "$ac_status"); }; }; then
4967 cf_cv_fixup_sigwinch=$cf_sigwinch
4968 break
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 cat "conftest.$ac_ext" >&5
4972 fi
4973 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4974
4975 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
4976 done
4977
4978 fi
4979 echo "$as_me:4979: result: $cf_cv_fixup_sigwinch" >&5
4980 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4981
4982 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4983 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4984 fi
4985 fi
4986
4987 ### checks for header files
4988
4989 for ac_header in \
4990 ncurses/curses.h \
4991 ncurses/term.h \
4992 stdlib.h \
4993 sys/ptem.h sys/ttydefaults.h \
4994 term.h \
4995 termios.h \
4996 unistd.h \
4997 wchar.h \
4998
4999 do
5000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 echo "$as_me:5001: checking for $ac_header" >&5
5002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 cat >"conftest.$ac_ext" <<_ACEOF
5007 #line 5007 "configure"
5008 #include "confdefs.h"
5009 #include <$ac_header>
5010 _ACEOF
5011 if { (eval echo "$as_me:5011: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5012 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5013 ac_status=$?
5014 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:5017: \$? = $ac_status" >&5
5018 (exit "$ac_status"); } >/dev/null; then
5019 if test -s conftest.err; then
5020 ac_cpp_err=$ac_c_preproc_warn_flag
5021 else
5022 ac_cpp_err=
5023 fi
5024 else
5025 ac_cpp_err=yes
5026 fi
5027 if test -z "$ac_cpp_err"; then
5028 eval "$as_ac_Header=yes"
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 cat "conftest.$ac_ext" >&5
5032 eval "$as_ac_Header=no"
5033 fi
5034 rm -f conftest.err "conftest.$ac_ext"
5035 fi
5036 echo "$as_me:5036: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5037 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5038 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5039 cat >>confdefs.h <<EOF
5040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 EOF
5042
5043 fi
5044 done
5045
5046 echo "$as_me:5046: checking whether time.h and sys/time.h may both be included" >&5
5047 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5048 if test "${ac_cv_header_time+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 cat >"conftest.$ac_ext" <<_ACEOF
5052 #line 5052 "configure"
5053 #include "confdefs.h"
5054 #include <sys/types.h>
5055 #include <sys/time.h>
5056 #include <time.h>
5057
5058 int
5059 main (void)
5060 {
5061 if ((struct tm *) 0)
5062 return 0;
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 rm -f "conftest.$ac_objext"
5068 if { (eval echo "$as_me:5068: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>&5
5070 ac_status=$?
5071 echo "$as_me:5071: \$? = $ac_status" >&5
5072 (exit "$ac_status"); } &&
5073 { ac_try='test -s "conftest.$ac_objext"'
5074 { (eval echo "$as_me:5074: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:5077: \$? = $ac_status" >&5
5078 (exit "$ac_status"); }; }; then
5079 ac_cv_header_time=yes
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 cat "conftest.$ac_ext" >&5
5083 ac_cv_header_time=no
5084 fi
5085 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5086 fi
5087 echo "$as_me:5087: result: $ac_cv_header_time" >&5
5088 echo "${ECHO_T}$ac_cv_header_time" >&6
5089 if test $ac_cv_header_time = yes; then
5090
5091 cat >>confdefs.h <<\EOF
5092 #define TIME_WITH_SYS_TIME 1
5093 EOF
5094
5095 fi
5096
5097 echo "$as_me:5097: checking for nl_langinfo and CODESET" >&5
5098 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5099 if test "${am_cv_langinfo_codeset+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 cat >"conftest.$ac_ext" <<_ACEOF
5103 #line 5103 "configure"
5104 #include "confdefs.h"
5105 #include <langinfo.h>
5106 int
5107 main (void)
5108 {
5109 char* cs = nl_langinfo(CODESET); (void)cs
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5115 if { (eval echo "$as_me:5115: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>&5
5117 ac_status=$?
5118 echo "$as_me:5118: \$? = $ac_status" >&5
5119 (exit "$ac_status"); } &&
5120 { ac_try='test -s "conftest$ac_exeext"'
5121 { (eval echo "$as_me:5121: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:5124: \$? = $ac_status" >&5
5125 (exit "$ac_status"); }; }; then
5126 am_cv_langinfo_codeset=yes
5127 else
5128 echo "$as_me: failed program was:" >&5
5129 cat "conftest.$ac_ext" >&5
5130 am_cv_langinfo_codeset=no
5131 fi
5132 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5133
5134 fi
5135 echo "$as_me:5135: result: $am_cv_langinfo_codeset" >&5
5136 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5137 if test "$am_cv_langinfo_codeset" = yes; then
5138
5139 cat >>confdefs.h <<\EOF
5140 #define HAVE_LANGINFO_CODESET 1
5141 EOF
5142
5143 fi
5144
5145 ### checks for typedefs
5146
5147 echo "$as_me:5147: checking for signal global datatype" >&5
5148 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
5149 if test "${cf_cv_sig_atomic_t+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152
5153 for cf_type in \
5154 "volatile sig_atomic_t" \
5155 "sig_atomic_t" \
5156 "int"
5157 do
5158 cat >"conftest.$ac_ext" <<_ACEOF
5159 #line 5159 "configure"
5160 #include "confdefs.h"
5161
5162 #include <sys/types.h>
5163 #include <signal.h>
5164 #include <stdio.h>
5165
5166 extern $cf_type x;
5167 $cf_type x;
5168 static void handler(int sig)
5169 {
5170 (void)sig;
5171 x = 5;
5172 }
5173 int
5174 main (void)
5175 {
5176 signal(SIGINT, handler);
5177 x = 1
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 rm -f "conftest.$ac_objext"
5183 if { (eval echo "$as_me:5183: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>&5
5185 ac_status=$?
5186 echo "$as_me:5186: \$? = $ac_status" >&5
5187 (exit "$ac_status"); } &&
5188 { ac_try='test -s "conftest.$ac_objext"'
5189 { (eval echo "$as_me:5189: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:5192: \$? = $ac_status" >&5
5193 (exit "$ac_status"); }; }; then
5194 cf_cv_sig_atomic_t=$cf_type
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 cat "conftest.$ac_ext" >&5
5198 cf_cv_sig_atomic_t=no
5199 fi
5200 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5201 test "$cf_cv_sig_atomic_t" != no && break
5202 done
5203
5204 fi
5205
5206 echo "$as_me:5206: result: $cf_cv_sig_atomic_t" >&5
5207 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
5208 test "$cf_cv_sig_atomic_t" != no &&
5209 cat >>confdefs.h <<EOF
5210 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
5211 EOF
5212
5213 echo "$as_me:5213: checking for ANSI C header files" >&5
5214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5215 if test "${ac_cv_header_stdc+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 cat >"conftest.$ac_ext" <<_ACEOF
5219 #line 5219 "configure"
5220 #include "confdefs.h"
5221 #include <stdlib.h>
5222 #include <stdarg.h>
5223 #include <string.h>
5224 #include <float.h>
5225
5226 _ACEOF
5227 if { (eval echo "$as_me:5227: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5228 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5229 ac_status=$?
5230 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
5233 echo "$as_me:5233: \$? = $ac_status" >&5
5234 (exit "$ac_status"); } >/dev/null; then
5235 if test -s conftest.err; then
5236 ac_cpp_err=$ac_c_preproc_warn_flag
5237 else
5238 ac_cpp_err=
5239 fi
5240 else
5241 ac_cpp_err=yes
5242 fi
5243 if test -z "$ac_cpp_err"; then
5244 ac_cv_header_stdc=yes
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 cat "conftest.$ac_ext" >&5
5248 ac_cv_header_stdc=no
5249 fi
5250 rm -f conftest.err "conftest.$ac_ext"
5251
5252 if test $ac_cv_header_stdc = yes; then
5253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5254 cat >"conftest.$ac_ext" <<_ACEOF
5255 #line 5255 "configure"
5256 #include "confdefs.h"
5257 #include <string.h>
5258
5259 _ACEOF
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "memchr" >/dev/null 2>&1; then
5262 :
5263 else
5264 ac_cv_header_stdc=no
5265 fi
5266 rm -rf conftest*
5267
5268 fi
5269
5270 if test $ac_cv_header_stdc = yes; then
5271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5272 cat >"conftest.$ac_ext" <<_ACEOF
5273 #line 5273 "configure"
5274 #include "confdefs.h"
5275 #include <stdlib.h>
5276
5277 _ACEOF
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "free" >/dev/null 2>&1; then
5280 :
5281 else
5282 ac_cv_header_stdc=no
5283 fi
5284 rm -rf conftest*
5285
5286 fi
5287
5288 if test $ac_cv_header_stdc = yes; then
5289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5290 if test "$cross_compiling" = yes; then
5291 :
5292 else
5293 cat >"conftest.$ac_ext" <<_ACEOF
5294 #line 5294 "configure"
5295 #include "confdefs.h"
5296 #include <ctype.h>
5297 #if ((' ' & 0x0FF) == 0x020)
5298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5300 #else
5301 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5302 || ('j' <= (c) && (c) <= 'r') \
5303 || ('s' <= (c) && (c) <= 'z'))
5304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5305 #endif
5306
5307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5308 int
5309 main (void)
5310 {
5311 int i;
5312 for (i = 0; i < 256; i++)
5313 if (XOR (islower (i), ISLOWER (i))
5314 || toupper (i) != TOUPPER (i))
5315 $ac_main_return(2);
5316 $ac_main_return (0);
5317 }
5318 _ACEOF
5319 rm -f "conftest$ac_exeext"
5320 if { (eval echo "$as_me:5320: \"$ac_link\"") >&5
5321 (eval $ac_link) 2>&5
5322 ac_status=$?
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5325 { (eval echo "$as_me:5325: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:5328: \$? = $ac_status" >&5
5329 (exit "$ac_status"); }; }; then
5330 :
5331 else
5332 echo "$as_me: program exited with status $ac_status" >&5
5333 echo "$as_me: failed program was:" >&5
5334 cat "conftest.$ac_ext" >&5
5335 ac_cv_header_stdc=no
5336 fi
5337 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5338 fi
5339 fi
5340 fi
5341 echo "$as_me:5341: result: $ac_cv_header_stdc" >&5
5342 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5343 if test $ac_cv_header_stdc = yes; then
5344
5345 cat >>confdefs.h <<\EOF
5346 #define STDC_HEADERS 1
5347 EOF
5348
5349 fi
5350
5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352
5353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5354 inttypes.h stdint.h unistd.h
5355 do
5356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5357 echo "$as_me:5357: checking for $ac_header" >&5
5358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 cat >"conftest.$ac_ext" <<_ACEOF
5363 #line 5363 "configure"
5364 #include "confdefs.h"
5365 $ac_includes_default
5366 #include <$ac_header>
5367 _ACEOF
5368 rm -f "conftest.$ac_objext"
5369 if { (eval echo "$as_me:5369: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>&5
5371 ac_status=$?
5372 echo "$as_me:5372: \$? = $ac_status" >&5
5373 (exit "$ac_status"); } &&
5374 { ac_try='test -s "conftest.$ac_objext"'
5375 { (eval echo "$as_me:5375: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:5378: \$? = $ac_status" >&5
5379 (exit "$ac_status"); }; }; then
5380 eval "$as_ac_Header=yes"
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 cat "conftest.$ac_ext" >&5
5384 eval "$as_ac_Header=no"
5385 fi
5386 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5387 fi
5388 echo "$as_me:5388: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5389 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5390 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5391 cat >>confdefs.h <<EOF
5392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393 EOF
5394
5395 fi
5396 done
5397
5398 echo "$as_me:5398: checking for time_t" >&5
5399 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
5400 if test "${ac_cv_type_time_t+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403 cat >"conftest.$ac_ext" <<_ACEOF
5404 #line 5404 "configure"
5405 #include "confdefs.h"
5406 $ac_includes_default
5407 int
5408 main (void)
5409 {
5410 if ((time_t *) 0)
5411 return 0;
5412 if (sizeof (time_t))
5413 return 0;
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 rm -f "conftest.$ac_objext"
5419 if { (eval echo "$as_me:5419: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>&5
5421 ac_status=$?
5422 echo "$as_me:5422: \$? = $ac_status" >&5
5423 (exit "$ac_status"); } &&
5424 { ac_try='test -s "conftest.$ac_objext"'
5425 { (eval echo "$as_me:5425: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:5428: \$? = $ac_status" >&5
5429 (exit "$ac_status"); }; }; then
5430 ac_cv_type_time_t=yes
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 cat "conftest.$ac_ext" >&5
5434 ac_cv_type_time_t=no
5435 fi
5436 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5437 fi
5438 echo "$as_me:5438: result: $ac_cv_type_time_t" >&5
5439 echo "${ECHO_T}$ac_cv_type_time_t" >&6
5440 if test "$ac_cv_type_time_t" = yes; then
5441 :
5442 else
5443
5444 cat >>confdefs.h <<EOF
5445 #define time_t long
5446 EOF
5447
5448 fi
5449
5450 echo "$as_me:5450: checking for cc_t in <termios.h> or <termio.h>" >&5
5451 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
5452 if test "${cf_cv_type_cc_t+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455
5456 cat >"conftest.$ac_ext" <<_ACEOF
5457 #line 5457 "configure"
5458 #include "confdefs.h"
5459
5460 #include <sys/types.h>
5461 #if defined(HAVE_TERMIOS_H)
5462 #include <termios.h>
5463 #else
5464 #include <termio.h>
5465 #include <sys/ioctl.h>
5466 #endif
5467
5468 int
5469 main (void)
5470 {
5471 cc_t x; (void)x
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 rm -f "conftest.$ac_objext"
5477 if { (eval echo "$as_me:5477: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>&5
5479 ac_status=$?
5480 echo "$as_me:5480: \$? = $ac_status" >&5
5481 (exit "$ac_status"); } &&
5482 { ac_try='test -s "conftest.$ac_objext"'
5483 { (eval echo "$as_me:5483: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:5486: \$? = $ac_status" >&5
5487 (exit "$ac_status"); }; }; then
5488 cf_cv_type_cc_t=yes
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 cat "conftest.$ac_ext" >&5
5492 cf_cv_type_cc_t=no
5493 fi
5494 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5495
5496 fi
5497
5498 echo "$as_me:5498: result: $cf_cv_type_cc_t" >&5
5499 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
5500 test $cf_cv_type_cc_t = no &&
5501 cat >>confdefs.h <<\EOF
5502 #define cc_t unsigned char
5503 EOF
5504
5505 echo "$as_me:5505: checking for mode_t" >&5
5506 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5507 if test "${ac_cv_type_mode_t+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 cat >"conftest.$ac_ext" <<_ACEOF
5511 #line 5511 "configure"
5512 #include "confdefs.h"
5513 $ac_includes_default
5514 int
5515 main (void)
5516 {
5517 if ((mode_t *) 0)
5518 return 0;
5519 if (sizeof (mode_t))
5520 return 0;
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 rm -f "conftest.$ac_objext"
5526 if { (eval echo "$as_me:5526: \"$ac_compile\"") >&5
5527 (eval $ac_compile) 2>&5
5528 ac_status=$?
5529 echo "$as_me:5529: \$? = $ac_status" >&5
5530 (exit "$ac_status"); } &&
5531 { ac_try='test -s "conftest.$ac_objext"'
5532 { (eval echo "$as_me:5532: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:5535: \$? = $ac_status" >&5
5536 (exit "$ac_status"); }; }; then
5537 ac_cv_type_mode_t=yes
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 cat "conftest.$ac_ext" >&5
5541 ac_cv_type_mode_t=no
5542 fi
5543 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5544 fi
5545 echo "$as_me:5545: result: $ac_cv_type_mode_t" >&5
5546 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5547 if test "$ac_cv_type_mode_t" = yes; then
5548 :
5549 else
5550
5551 cat >>confdefs.h <<EOF
5552 #define mode_t int
5553 EOF
5554
5555 fi
5556
5557 echo "$as_me:5557: checking for pid_t" >&5
5558 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5559 if test "${ac_cv_type_pid_t+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >"conftest.$ac_ext" <<_ACEOF
5563 #line 5563 "configure"
5564 #include "confdefs.h"
5565 $ac_includes_default
5566 int
5567 main (void)
5568 {
5569 if ((pid_t *) 0)
5570 return 0;
5571 if (sizeof (pid_t))
5572 return 0;
5573 ;
5574 return 0;
5575 }
5576 _ACEOF
5577 rm -f "conftest.$ac_objext"
5578 if { (eval echo "$as_me:5578: \"$ac_compile\"") >&5
5579 (eval $ac_compile) 2>&5
5580 ac_status=$?
5581 echo "$as_me:5581: \$? = $ac_status" >&5
5582 (exit "$ac_status"); } &&
5583 { ac_try='test -s "conftest.$ac_objext"'
5584 { (eval echo "$as_me:5584: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:5587: \$? = $ac_status" >&5
5588 (exit "$ac_status"); }; }; then
5589 ac_cv_type_pid_t=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 cat "conftest.$ac_ext" >&5
5593 ac_cv_type_pid_t=no
5594 fi
5595 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5596 fi
5597 echo "$as_me:5597: result: $ac_cv_type_pid_t" >&5
5598 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5599 if test "$ac_cv_type_pid_t" = yes; then
5600 :
5601 else
5602
5603 cat >>confdefs.h <<EOF
5604 #define pid_t int
5605 EOF
5606
5607 fi
5608
5609 echo "$as_me:5609: checking for uid_t in sys/types.h" >&5
5610 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5611 if test "${ac_cv_type_uid_t+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 cat >"conftest.$ac_ext" <<_ACEOF
5615 #line 5615 "configure"
5616 #include "confdefs.h"
5617 #include <sys/types.h>
5618
5619 _ACEOF
5620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5621 $EGREP "uid_t" >/dev/null 2>&1; then
5622 ac_cv_type_uid_t=yes
5623 else
5624 ac_cv_type_uid_t=no
5625 fi
5626 rm -rf conftest*
5627
5628 fi
5629 echo "$as_me:5629: result: $ac_cv_type_uid_t" >&5
5630 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5631 if test $ac_cv_type_uid_t = no; then
5632
5633 cat >>confdefs.h <<\EOF
5634 #define uid_t int
5635 EOF
5636
5637 cat >>confdefs.h <<\EOF
5638 #define gid_t int
5639 EOF
5640
5641 fi
5642
5643 echo "$as_me:5643: checking for off_t" >&5
5644 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5645 if test "${ac_cv_type_off_t+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 cat >"conftest.$ac_ext" <<_ACEOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5651 $ac_includes_default
5652 int
5653 main (void)
5654 {
5655 if ((off_t *) 0)
5656 return 0;
5657 if (sizeof (off_t))
5658 return 0;
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 rm -f "conftest.$ac_objext"
5664 if { (eval echo "$as_me:5664: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5666 ac_status=$?
5667 echo "$as_me:5667: \$? = $ac_status" >&5
5668 (exit "$ac_status"); } &&
5669 { ac_try='test -s "conftest.$ac_objext"'
5670 { (eval echo "$as_me:5670: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:5673: \$? = $ac_status" >&5
5674 (exit "$ac_status"); }; }; then
5675 ac_cv_type_off_t=yes
5676 else
5677 echo "$as_me: failed program was:" >&5
5678 cat "conftest.$ac_ext" >&5
5679 ac_cv_type_off_t=no
5680 fi
5681 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5682 fi
5683 echo "$as_me:5683: result: $ac_cv_type_off_t" >&5
5684 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5685 if test "$ac_cv_type_off_t" = yes; then
5686 :
5687 else
5688
5689 cat >>confdefs.h <<EOF
5690 #define off_t long
5691 EOF
5692
5693 fi
5694
5695 ### checks for library functions
5696
5697 for ac_func in \
5698 gethostname \
5699 getusershell \
5700 endusershell \
5701 getlogin \
5702 initgroups \
5703 mkdtemp \
5704 putenv \
5705 unsetenv \
5706 sched_yield \
5707 setpgid \
5708 strftime \
5709 tcgetattr \
5710 waitpid \
5711 wcswidth \
5712 wcwidth
5713 do
5714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5715 echo "$as_me:5715: checking for $ac_func" >&5
5716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5717 if eval "test \"\${$as_ac_var+set}\" = set"; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 cat >"conftest.$ac_ext" <<_ACEOF
5721 #line 5721 "configure"
5722 #include "confdefs.h"
5723 #define $ac_func autoconf_temporary
5724 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
5725 #undef $ac_func
5726
5727 #ifdef __cplusplus
5728 extern "C"
5729 #endif
5730
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5733 char $ac_func (void);
5734
5735 int
5736 main (void)
5737 {
5738
5739 /* The GNU C library defines stubs for functions which it implements
5740 to always fail with ENOSYS. Some functions are actually named
5741 something starting with __ and the normal name is an alias. */
5742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5743 #error found stub for $ac_func
5744 #endif
5745
5746 return $ac_func ();
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5752 if { (eval echo "$as_me:5752: \"$ac_link\"") >&5
5753 (eval $ac_link) 2>&5
5754 ac_status=$?
5755 echo "$as_me:5755: \$? = $ac_status" >&5
5756 (exit "$ac_status"); } &&
5757 { ac_try='test -s "conftest$ac_exeext"'
5758 { (eval echo "$as_me:5758: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit "$ac_status"); }; }; then
5763 eval "$as_ac_var=yes"
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 cat "conftest.$ac_ext" >&5
5767 eval "$as_ac_var=no"
5768 fi
5769 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5770 fi
5771 echo "$as_me:5771: result: `eval echo '${'"$as_ac_var"'}'`" >&5
5772 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
5773 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
5774 cat >>confdefs.h <<EOF
5775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5776 EOF
5777
5778 fi
5779 done
5780
5781 for ac_header in lastlog.h paths.h
5782 do
5783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5784 echo "$as_me:5784: checking for $ac_header" >&5
5785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 cat >"conftest.$ac_ext" <<_ACEOF
5790 #line 5790 "configure"
5791 #include "confdefs.h"
5792 #include <$ac_header>
5793 _ACEOF
5794 if { (eval echo "$as_me:5794: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5795 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5796 ac_status=$?
5797 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:5800: \$? = $ac_status" >&5
5801 (exit "$ac_status"); } >/dev/null; then
5802 if test -s conftest.err; then
5803 ac_cpp_err=$ac_c_preproc_warn_flag
5804 else
5805 ac_cpp_err=
5806 fi
5807 else
5808 ac_cpp_err=yes
5809 fi
5810 if test -z "$ac_cpp_err"; then
5811 eval "$as_ac_Header=yes"
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 cat "conftest.$ac_ext" >&5
5815 eval "$as_ac_Header=no"
5816 fi
5817 rm -f conftest.err "conftest.$ac_ext"
5818 fi
5819 echo "$as_me:5819: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5820 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5821 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5822 cat >>confdefs.h <<EOF
5823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5824 EOF
5825
5826 fi
5827 done
5828
5829 echo "$as_me:5829: checking for lastlog path" >&5
5830 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
5831 if test "${cf_cv_path_lastlog+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834
5835 cat >"conftest.$ac_ext" <<_ACEOF
5836 #line 5836 "configure"
5837 #include "confdefs.h"
5838
5839 #include <sys/types.h>
5840 #ifdef HAVE_LASTLOG_H
5841 #include <lastlog.h>
5842 #else
5843 #ifdef HAVE_PATHS_H
5844 #include <paths.h>
5845 #endif
5846 #endif
5847 int
5848 main (void)
5849 {
5850 char *path = _PATH_LASTLOG; (void)path
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 rm -f "conftest.$ac_objext"
5856 if { (eval echo "$as_me:5856: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>&5
5858 ac_status=$?
5859 echo "$as_me:5859: \$? = $ac_status" >&5
5860 (exit "$ac_status"); } &&
5861 { ac_try='test -s "conftest.$ac_objext"'
5862 { (eval echo "$as_me:5862: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:5865: \$? = $ac_status" >&5
5866 (exit "$ac_status"); }; }; then
5867 cf_cv_path_lastlog="_PATH_LASTLOG"
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 cat "conftest.$ac_ext" >&5
5871 if test -f /usr/adm/lastlog ; then
5872 cf_cv_path_lastlog=/usr/adm/lastlog
5873 else
5874 cf_cv_path_lastlog=no
5875 fi
5876 fi
5877 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5878
5879 fi
5880 echo "$as_me:5880: result: $cf_cv_path_lastlog" >&5
5881 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
5882 test "$cf_cv_path_lastlog" != no &&
5883 cat >>confdefs.h <<\EOF
5884 #define USE_LASTLOG 1
5885 EOF
5886
5887 echo "$as_me:5887: checking for utmp implementation" >&5
5888 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
5889 if test "${cf_cv_have_utmp+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892
5893 cf_cv_have_utmp=no
5894 for cf_header in utmpx utmp ; do
5895 cf_utmp_includes="
5896 #include <sys/types.h>
5897 #include <${cf_header}.h>
5898 #define getutent getutxent
5899 #ifdef USE_LASTLOG
5900 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
5901 #endif
5902 "
5903 cat >"conftest.$ac_ext" <<_ACEOF
5904 #line 5904 "configure"
5905 #include "confdefs.h"
5906 $cf_utmp_includes
5907 int
5908 main (void)
5909 {
5910 struct $cf_header x;
5911 char *name = x.ut_name; /* utmp.h and compatible definitions */
5912 (void)x;
5913 (void)name;
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 rm -f "conftest.$ac_objext"
5920 if { (eval echo "$as_me:5920: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>&5
5922 ac_status=$?
5923 echo "$as_me:5923: \$? = $ac_status" >&5
5924 (exit "$ac_status"); } &&
5925 { ac_try='test -s "conftest.$ac_objext"'
5926 { (eval echo "$as_me:5926: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:5929: \$? = $ac_status" >&5
5930 (exit "$ac_status"); }; }; then
5931 cf_cv_have_utmp=$cf_header
5932 break
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 cat "conftest.$ac_ext" >&5
5936
5937 cat >"conftest.$ac_ext" <<_ACEOF
5938 #line 5938 "configure"
5939 #include "confdefs.h"
5940 $cf_utmp_includes
5941 int
5942 main (void)
5943 {
5944 struct $cf_header x;
5945 char *name = x.ut_user; /* utmpx.h must declare this */
5946 (void)x;
5947 (void)name;
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f "conftest.$ac_objext"
5954 if { (eval echo "$as_me:5954: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 echo "$as_me:5957: \$? = $ac_status" >&5
5958 (exit "$ac_status"); } &&
5959 { ac_try='test -s "conftest.$ac_objext"'
5960 { (eval echo "$as_me:5960: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:5963: \$? = $ac_status" >&5
5964 (exit "$ac_status"); }; }; then
5965 cf_cv_have_utmp=$cf_header
5966 break
5967
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 cat "conftest.$ac_ext" >&5
5971 fi
5972 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5973 fi
5974 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5975 done
5976
5977 fi
5978 echo "$as_me:5978: result: $cf_cv_have_utmp" >&5
5979 echo "${ECHO_T}$cf_cv_have_utmp" >&6
5980
5981 if test "$cf_cv_have_utmp" != no ; then
5982
5983 cat >>confdefs.h <<\EOF
5984 #define HAVE_UTMP 1
5985 EOF
5986
5987 test "$cf_cv_have_utmp" = utmpx &&
5988 cat >>confdefs.h <<\EOF
5989 #define UTMPX_FOR_UTMP 1
5990 EOF
5991
5992 if test "$cf_cv_have_utmp" != no ; then
5993 echo "$as_me:5993: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
5994 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
5995 if test "${cf_cv_have_utmp_ut_host+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998
5999 cat >"conftest.$ac_ext" <<_ACEOF
6000 #line 6000 "configure"
6001 #include "confdefs.h"
6002
6003 #include <sys/types.h>
6004 #include <${cf_cv_have_utmp}.h>
6005 int
6006 main (void)
6007 {
6008 struct $cf_cv_have_utmp x;
6009 char *y = &x.ut_host[0];
6010 (void)x;
6011 (void)y
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 rm -f "conftest.$ac_objext"
6017 if { (eval echo "$as_me:6017: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>&5
6019 ac_status=$?
6020 echo "$as_me:6020: \$? = $ac_status" >&5
6021 (exit "$ac_status"); } &&
6022 { ac_try='test -s "conftest.$ac_objext"'
6023 { (eval echo "$as_me:6023: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit "$ac_status"); }; }; then
6028 cf_cv_have_utmp_ut_host=yes
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 cat "conftest.$ac_ext" >&5
6032 cf_cv_have_utmp_ut_host=no
6033 fi
6034 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6035
6036 fi
6037
6038 echo "$as_me:6038: result: $cf_cv_have_utmp_ut_host" >&5
6039 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
6040 test "$cf_cv_have_utmp_ut_host" != no &&
6041 cat >>confdefs.h <<\EOF
6042 #define HAVE_UTMP_UT_HOST 1
6043 EOF
6044
6045 fi
6046
6047 if test "$cf_cv_have_utmp" != no ; then
6048 echo "$as_me:6048: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
6049 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
6050 if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053
6054 cat >"conftest.$ac_ext" <<_ACEOF
6055 #line 6055 "configure"
6056 #include "confdefs.h"
6057
6058 #include <sys/types.h>
6059 #include <${cf_cv_have_utmp}.h>
6060 int
6061 main (void)
6062 {
6063 struct $cf_cv_have_utmp x;
6064 int y = x.ut_syslen;
6065 (void)x;
6066 (void)y
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 rm -f "conftest.$ac_objext"
6072 if { (eval echo "$as_me:6072: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>&5
6074 ac_status=$?
6075 echo "$as_me:6075: \$? = $ac_status" >&5
6076 (exit "$ac_status"); } &&
6077 { ac_try='test -s "conftest.$ac_objext"'
6078 { (eval echo "$as_me:6078: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:6081: \$? = $ac_status" >&5
6082 (exit "$ac_status"); }; }; then
6083 cf_cv_have_utmp_ut_syslen=yes
6084 else
6085 echo "$as_me: failed program was:" >&5
6086 cat "conftest.$ac_ext" >&5
6087 cf_cv_have_utmp_ut_syslen=no
6088 fi
6089 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6090
6091 fi
6092
6093 echo "$as_me:6093: result: $cf_cv_have_utmp_ut_syslen" >&5
6094 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
6095 test "$cf_cv_have_utmp_ut_syslen" != no &&
6096 cat >>confdefs.h <<\EOF
6097 #define HAVE_UTMP_UT_SYSLEN 1
6098 EOF
6099
6100 fi
6101
6102 if test "$cf_cv_have_utmp" != no ; then
6103 echo "$as_me:6103: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
6104 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
6105 if test "${cf_cv_have_utmp_ut_name+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108
6109 cf_cv_have_utmp_ut_name=no
6110 cf_utmp_includes="
6111 #include <sys/types.h>
6112 #include <${cf_cv_have_utmp}.h>
6113 #define getutent getutxent
6114 #ifdef USE_LASTLOG
6115 #include <lastlog.h> /* may conflict with utmpx.h on Linux */
6116 #endif
6117 "
6118 for cf_header in ut_name ut_user ; do
6119 cat >"conftest.$ac_ext" <<_ACEOF
6120 #line 6120 "configure"
6121 #include "confdefs.h"
6122 $cf_utmp_includes
6123 int
6124 main (void)
6125 {
6126 struct $cf_cv_have_utmp x;
6127 char *name = x.$cf_header;
6128 (void)x;
6129 (void)name;
6130
6131 ;
6132 return 0;
6133 }
6134 _ACEOF
6135 rm -f "conftest.$ac_objext"
6136 if { (eval echo "$as_me:6136: \"$ac_compile\"") >&5
6137 (eval $ac_compile) 2>&5
6138 ac_status=$?
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit "$ac_status"); } &&
6141 { ac_try='test -s "conftest.$ac_objext"'
6142 { (eval echo "$as_me:6142: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:6145: \$? = $ac_status" >&5
6146 (exit "$ac_status"); }; }; then
6147 cf_cv_have_utmp_ut_name=$cf_header
6148 break
6149 else
6150 echo "$as_me: failed program was:" >&5
6151 cat "conftest.$ac_ext" >&5
6152 fi
6153 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6154 done
6155
6156 fi
6157 echo "$as_me:6157: result: $cf_cv_have_utmp_ut_name" >&5
6158 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
6159
6160 case "$cf_cv_have_utmp_ut_name" in
6161 (no)
6162 { { echo "$as_me:6162: error: Cannot find declaration for ut.ut_name" >&5
6163 echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
6164 { (exit 1); exit 1; }; }
6165 ;;
6166 (ut_user)
6167
6168 cat >>confdefs.h <<\EOF
6169 #define ut_name ut_user
6170 EOF
6171
6172 ;;
6173 esac
6174 fi
6175
6176 if test "$cf_cv_have_utmp" != no ; then
6177 echo "$as_me:6177: checking for exit-status in $cf_cv_have_utmp" >&5
6178 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
6179 if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182
6183 for cf_result in \
6184 ut_exit.__e_exit \
6185 ut_exit.e_exit \
6186 ut_exit.ut_e_exit \
6187 ut_exit.ut_exit
6188 do
6189 cat >"conftest.$ac_ext" <<_ACEOF
6190 #line 6190 "configure"
6191 #include "confdefs.h"
6192
6193 #include <sys/types.h>
6194 #include <${cf_cv_have_utmp}.h>
6195 int
6196 main (void)
6197 {
6198 struct $cf_cv_have_utmp x;
6199 long y = x.$cf_result = 0;
6200 (void)x;
6201 (void)y
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 rm -f "conftest.$ac_objext"
6207 if { (eval echo "$as_me:6207: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6209 ac_status=$?
6210 echo "$as_me:6210: \$? = $ac_status" >&5
6211 (exit "$ac_status"); } &&
6212 { ac_try='test -s "conftest.$ac_objext"'
6213 { (eval echo "$as_me:6213: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:6216: \$? = $ac_status" >&5
6217 (exit "$ac_status"); }; }; then
6218 cf_cv_have_utmp_ut_xstatus=$cf_result
6219 break
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 cat "conftest.$ac_ext" >&5
6223 cf_cv_have_utmp_ut_xstatus=no
6224 fi
6225 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6226 done
6227
6228 fi
6229 echo "$as_me:6229: result: $cf_cv_have_utmp_ut_xstatus" >&5
6230 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
6231 if test "$cf_cv_have_utmp_ut_xstatus" != no ; then
6232
6233 cat >>confdefs.h <<\EOF
6234 #define HAVE_UTMP_UT_XSTATUS 1
6235 EOF
6236
6237 cat >>confdefs.h <<EOF
6238 #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
6239 EOF
6240
6241 fi
6242 fi
6243
6244 if test "$cf_cv_have_utmp" != no ; then
6245 echo "$as_me:6245: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
6246 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
6247 if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250
6251 cat >"conftest.$ac_ext" <<_ACEOF
6252 #line 6252 "configure"
6253 #include "confdefs.h"
6254
6255 #include <sys/types.h>
6256 #include <${cf_cv_have_utmp}.h>
6257 int
6258 main (void)
6259 {
6260 struct $cf_cv_have_utmp x;
6261 long y = x.ut_xtime = 0;
6262 (void)x;
6263 (void)y
6264 ;
6265 return 0;
6266 }
6267 _ACEOF
6268 rm -f "conftest.$ac_objext"
6269 if { (eval echo "$as_me:6269: \"$ac_compile\"") >&5
6270 (eval $ac_compile) 2>&5
6271 ac_status=$?
6272 echo "$as_me:6272: \$? = $ac_status" >&5
6273 (exit "$ac_status"); } &&
6274 { ac_try='test -s "conftest.$ac_objext"'
6275 { (eval echo "$as_me:6275: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:6278: \$? = $ac_status" >&5
6279 (exit "$ac_status"); }; }; then
6280 cf_cv_have_utmp_ut_xtime=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 cat "conftest.$ac_ext" >&5
6284 cat >"conftest.$ac_ext" <<_ACEOF
6285 #line 6285 "configure"
6286 #include "confdefs.h"
6287
6288 #include <sys/types.h>
6289 #include <${cf_cv_have_utmp}.h>
6290 int
6291 main (void)
6292 {
6293 struct $cf_cv_have_utmp x;
6294 long y = x.ut_tv.tv_sec;
6295 (void)x;
6296 (void)y
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 rm -f "conftest.$ac_objext"
6302 if { (eval echo "$as_me:6302: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>&5
6304 ac_status=$?
6305 echo "$as_me:6305: \$? = $ac_status" >&5
6306 (exit "$ac_status"); } &&
6307 { ac_try='test -s "conftest.$ac_objext"'
6308 { (eval echo "$as_me:6308: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:6311: \$? = $ac_status" >&5
6312 (exit "$ac_status"); }; }; then
6313 cf_cv_have_utmp_ut_xtime=define
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 cat "conftest.$ac_ext" >&5
6317 cf_cv_have_utmp_ut_xtime=no
6318 fi
6319 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6320
6321 fi
6322 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6323
6324 fi
6325 echo "$as_me:6325: result: $cf_cv_have_utmp_ut_xtime" >&5
6326 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
6327 if test "$cf_cv_have_utmp_ut_xtime" != no ; then
6328
6329 cat >>confdefs.h <<\EOF
6330 #define HAVE_UTMP_UT_XTIME 1
6331 EOF
6332
6333 if test "$cf_cv_have_utmp_ut_xtime" = define ; then
6334
6335 cat >>confdefs.h <<\EOF
6336 #define ut_xtime ut_tv.tv_sec
6337 EOF
6338
6339 fi
6340 fi
6341 fi
6342
6343 if test "$cf_cv_have_utmp" != no ; then
6344 echo "$as_me:6344: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
6345 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
6346 if test "${cf_cv_have_utmp_ut_session+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349
6350 cat >"conftest.$ac_ext" <<_ACEOF
6351 #line 6351 "configure"
6352 #include "confdefs.h"
6353
6354 #include <sys/types.h>
6355 #include <${cf_cv_have_utmp}.h>
6356 int
6357 main (void)
6358 {
6359 static struct $cf_cv_have_utmp x;
6360 long y = x.ut_session;
6361 (void)x;
6362 (void)y
6363 ;
6364 return 0;
6365 }
6366 _ACEOF
6367 rm -f "conftest.$ac_objext"
6368 if { (eval echo "$as_me:6368: \"$ac_compile\"") >&5
6369 (eval $ac_compile) 2>&5
6370 ac_status=$?
6371 echo "$as_me:6371: \$? = $ac_status" >&5
6372 (exit "$ac_status"); } &&
6373 { ac_try='test -s "conftest.$ac_objext"'
6374 { (eval echo "$as_me:6374: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:6377: \$? = $ac_status" >&5
6378 (exit "$ac_status"); }; }; then
6379 cf_cv_have_utmp_ut_session=yes
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 cat "conftest.$ac_ext" >&5
6383 cf_cv_have_utmp_ut_session=no
6384 fi
6385 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6386
6387 fi
6388 echo "$as_me:6388: result: $cf_cv_have_utmp_ut_session" >&5
6389 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
6390 if test "$cf_cv_have_utmp_ut_session" != no ; then
6391
6392 cat >>confdefs.h <<\EOF
6393 #define HAVE_UTMP_UT_SESSION 1
6394 EOF
6395
6396 fi
6397 fi
6398
6399 echo "$as_me:6399: checking if $cf_cv_have_utmp is SYSV flavor" >&5
6400 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
6401 if test "${cf_cv_sysv_utmp+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404
6405 test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
6406 cat >"conftest.$ac_ext" <<_ACEOF
6407 #line 6407 "configure"
6408 #include "confdefs.h"
6409
6410 #include <sys/types.h>
6411 #include <${cf_cv_have_utmp}.h>
6412 int
6413 main (void)
6414 {
6415
6416 struct $cf_cv_have_utmp x;
6417 set${cf_prefix}ent ();
6418 get${cf_prefix}id(&x);
6419 put${cf_prefix}line(&x);
6420 end${cf_prefix}ent();
6421 ;
6422 return 0;
6423 }
6424 _ACEOF
6425 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6426 if { (eval echo "$as_me:6426: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6428 ac_status=$?
6429 echo "$as_me:6429: \$? = $ac_status" >&5
6430 (exit "$ac_status"); } &&
6431 { ac_try='test -s "conftest$ac_exeext"'
6432 { (eval echo "$as_me:6432: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:6435: \$? = $ac_status" >&5
6436 (exit "$ac_status"); }; }; then
6437 cf_cv_sysv_utmp=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 cat "conftest.$ac_ext" >&5
6441 cf_cv_sysv_utmp=no
6442 fi
6443 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6444
6445 fi
6446 echo "$as_me:6446: result: $cf_cv_sysv_utmp" >&5
6447 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
6448 test "$cf_cv_sysv_utmp" = yes &&
6449 cat >>confdefs.h <<\EOF
6450 #define USE_SYSV_UTMP 1
6451 EOF
6452
6453 fi
6454
6455 for ac_header in lastlog.h
6456 do
6457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 echo "$as_me:6458: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 cat >"conftest.$ac_ext" <<_ACEOF
6464 #line 6464 "configure"
6465 #include "confdefs.h"
6466 #include <$ac_header>
6467 _ACEOF
6468 if { (eval echo "$as_me:6468: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6469 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6470 ac_status=$?
6471 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:6474: \$? = $ac_status" >&5
6475 (exit "$ac_status"); } >/dev/null; then
6476 if test -s conftest.err; then
6477 ac_cpp_err=$ac_c_preproc_warn_flag
6478 else
6479 ac_cpp_err=
6480 fi
6481 else
6482 ac_cpp_err=yes
6483 fi
6484 if test -z "$ac_cpp_err"; then
6485 eval "$as_ac_Header=yes"
6486 else
6487 echo "$as_me: failed program was:" >&5
6488 cat "conftest.$ac_ext" >&5
6489 eval "$as_ac_Header=no"
6490 fi
6491 rm -f conftest.err "conftest.$ac_ext"
6492 fi
6493 echo "$as_me:6493: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6495 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6496 cat >>confdefs.h <<EOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 EOF
6499
6500 fi
6501 done
6502
6503 echo "$as_me:6503: checking for struct lastlog" >&5
6504 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
6505 if test "${cf_cv_struct_lastlog+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508
6509 if test "$cross_compiling" = yes; then
6510
6511 cf_cv_struct_lastlog=unknown
6512 else
6513 cat >"conftest.$ac_ext" <<_ACEOF
6514 #line 6514 "configure"
6515 #include "confdefs.h"
6516
6517 #include <sys/types.h>
6518 #include <time.h>
6519 #include <lastlog.h>
6520
6521 int main(void)
6522 {
6523 struct lastlog data;
6524 return (sizeof(data.ll_time) != sizeof(time_t));
6525 }
6526 _ACEOF
6527 rm -f "conftest$ac_exeext"
6528 if { (eval echo "$as_me:6528: \"$ac_link\"") >&5
6529 (eval $ac_link) 2>&5
6530 ac_status=$?
6531 echo "$as_me:6531: \$? = $ac_status" >&5
6532 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6533 { (eval echo "$as_me:6533: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:6536: \$? = $ac_status" >&5
6537 (exit "$ac_status"); }; }; then
6538
6539 cf_cv_struct_lastlog=yes
6540 else
6541 echo "$as_me: program exited with status $ac_status" >&5
6542 echo "$as_me: failed program was:" >&5
6543 cat "conftest.$ac_ext" >&5
6544
6545 cf_cv_struct_lastlog=no
6546 fi
6547 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6548 fi
6549 fi
6550 echo "$as_me:6550: result: $cf_cv_struct_lastlog" >&5
6551 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
6552
6553 test $cf_cv_struct_lastlog != no &&
6554 cat >>confdefs.h <<\EOF
6555 #define USE_STRUCT_LASTLOG 1
6556 EOF
6557
6558 for ac_header in \
6559 sys/param.h \
6560
6561 do
6562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 echo "$as_me:6563: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 cat >"conftest.$ac_ext" <<_ACEOF
6569 #line 6569 "configure"
6570 #include "confdefs.h"
6571 #include <$ac_header>
6572 _ACEOF
6573 if { (eval echo "$as_me:6573: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6574 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6575 ac_status=$?
6576 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:6579: \$? = $ac_status" >&5
6580 (exit "$ac_status"); } >/dev/null; then
6581 if test -s conftest.err; then
6582 ac_cpp_err=$ac_c_preproc_warn_flag
6583 else
6584 ac_cpp_err=
6585 fi
6586 else
6587 ac_cpp_err=yes
6588 fi
6589 if test -z "$ac_cpp_err"; then
6590 eval "$as_ac_Header=yes"
6591 else
6592 echo "$as_me: failed program was:" >&5
6593 cat "conftest.$ac_ext" >&5
6594 eval "$as_ac_Header=no"
6595 fi
6596 rm -f conftest.err "conftest.$ac_ext"
6597 fi
6598 echo "$as_me:6598: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6599 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6600 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6601 cat >>confdefs.h <<EOF
6602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603 EOF
6604
6605 fi
6606 done
6607
6608 echo "$as_me:6608: checking if POSIX saved-ids are supported" >&5
6609 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
6610 if test "${cf_cv_posix_saved_ids+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613
6614 cat >"conftest.$ac_ext" <<_ACEOF
6615 #line 6615 "configure"
6616 #include "confdefs.h"
6617
6618 #include <unistd.h>
6619 #ifdef HAVE_SYS_PARAM_H
6620 #include <sys/param.h> /* this may define "BSD" */
6621 #endif
6622
6623 int
6624 main (void)
6625 {
6626
6627 #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
6628 void *p = (void *) seteuid;
6629 int x = seteuid(geteuid());
6630 (void)p;
6631 (void)x;
6632 #elif defined(BSD) && (BSD >= 199103)
6633 /* The BSD's may implement the runtime check - and it fails.
6634 * However, saved-ids work almost like POSIX (close enough for most uses).
6635 */
6636 #else
6637 make an error
6638 #endif
6639
6640 ;
6641 return 0;
6642 }
6643 _ACEOF
6644 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6645 if { (eval echo "$as_me:6645: \"$ac_link\"") >&5
6646 (eval $ac_link) 2>&5
6647 ac_status=$?
6648 echo "$as_me:6648: \$? = $ac_status" >&5
6649 (exit "$ac_status"); } &&
6650 { ac_try='test -s "conftest$ac_exeext"'
6651 { (eval echo "$as_me:6651: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:6654: \$? = $ac_status" >&5
6655 (exit "$ac_status"); }; }; then
6656 cf_cv_posix_saved_ids=yes
6657
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 cat "conftest.$ac_ext" >&5
6661
6662 if test "$cross_compiling" = yes; then
6663 cf_cv_posix_saved_ids=unknown
6664 else
6665 cat >"conftest.$ac_ext" <<_ACEOF
6666 #line 6666 "configure"
6667 #include "confdefs.h"
6668
6669 #ifdef HAVE_STDLIB_H
6670 #include <stdlib.h>
6671 #endif
6672 #include <unistd.h>
6673 int main(void)
6674 {
6675 void *p = (void *) seteuid;
6676 long code = sysconf(_SC_SAVED_IDS);
6677 (void)p;
6678 ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
6679 }
6680 _ACEOF
6681 rm -f "conftest$ac_exeext"
6682 if { (eval echo "$as_me:6682: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>&5
6684 ac_status=$?
6685 echo "$as_me:6685: \$? = $ac_status" >&5
6686 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6687 { (eval echo "$as_me:6687: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:6690: \$? = $ac_status" >&5
6691 (exit "$ac_status"); }; }; then
6692 cf_cv_posix_saved_ids=yes
6693 else
6694 echo "$as_me: program exited with status $ac_status" >&5
6695 echo "$as_me: failed program was:" >&5
6696 cat "conftest.$ac_ext" >&5
6697 cf_cv_posix_saved_ids=no
6698 fi
6699 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6700 fi
6701
6702 fi
6703 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6704
6705 fi
6706 echo "$as_me:6706: result: $cf_cv_posix_saved_ids" >&5
6707 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
6708
6709 test "$cf_cv_posix_saved_ids" = yes &&
6710 cat >>confdefs.h <<\EOF
6711 #define HAVE_POSIX_SAVED_IDS 1
6712 EOF
6713
6714 # compute a reasonable value for $TERM to give tgetent(), since we may be
6715 # running in 'screen', which sets $TERMCAP to a specific entry that is not
6716 # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
6717 # discard $TERMCAP.
6718 cf_TERMVAR=vt100
6719 if test -n "$TERMCAP"
6720 then
6721 cf_TERMCAP=`echo "$TERMCAP" | tr '\n' ' ' | sed -e 's/^..|//' -e 's/|.*//'`
6722 case "$cf_TERMCAP" in
6723 (screen*.*)
6724 ;;
6725 (*)
6726 cf_TERMVAR="$cf_TERMCAP"
6727 ;;
6728 esac
6729 fi
6730 test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
6731
6732 # BSD termcap used no header file
6733 # SVr4 provided termcap prototypes as a legacy feature in term.h
6734 # GNU termcap provided termcap prototypes in termcap.h
6735 # ncurses provides termcap prototypes in both term.h and termcap.h
6736 #
6737 # The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do
6738 # not return the text of the termcap entry in the buffer), but as a special
6739 # case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that
6740 # returns the termcap text.
6741
6742 for ac_header in termcap.h
6743 do
6744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6745 echo "$as_me:6745: checking for $ac_header" >&5
6746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750 cat >"conftest.$ac_ext" <<_ACEOF
6751 #line 6751 "configure"
6752 #include "confdefs.h"
6753 #include <$ac_header>
6754 _ACEOF
6755 if { (eval echo "$as_me:6755: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6756 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6757 ac_status=$?
6758 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 echo "$as_me:6761: \$? = $ac_status" >&5
6762 (exit "$ac_status"); } >/dev/null; then
6763 if test -s conftest.err; then
6764 ac_cpp_err=$ac_c_preproc_warn_flag
6765 else
6766 ac_cpp_err=
6767 fi
6768 else
6769 ac_cpp_err=yes
6770 fi
6771 if test -z "$ac_cpp_err"; then
6772 eval "$as_ac_Header=yes"
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 cat "conftest.$ac_ext" >&5
6776 eval "$as_ac_Header=no"
6777 fi
6778 rm -f conftest.err "conftest.$ac_ext"
6779 fi
6780 echo "$as_me:6780: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6781 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6782 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6783 cat >>confdefs.h <<EOF
6784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6785 EOF
6786
6787 fi
6788 done
6789
6790 echo "$as_me:6790: checking if we want full tgetent function" >&5
6791 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
6792
6793 # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
6794 if test "${enable_full_tgetent+set}" = set; then
6795 enableval="$enable_full_tgetent"
6796 test "$enableval" != no && enableval=yes
6797 if test "$enableval" != "yes" ; then
6798 cf_full_tgetent=no
6799 else
6800 cf_full_tgetent=yes
6801 fi
6802 else
6803 enableval=yes
6804 cf_full_tgetent=yes
6805
6806 fi;
6807 echo "$as_me:6807: result: $cf_full_tgetent" >&5
6808 echo "${ECHO_T}$cf_full_tgetent" >&6
6809
6810 if test "$cf_full_tgetent" = yes ; then
6811 cf_test_message="full tgetent"
6812 else
6813 cf_test_message="tgetent"
6814 fi
6815
6816 echo "$as_me:6816: checking for $cf_test_message function" >&5
6817 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
6818 if test "${cf_cv_lib_tgetent+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821
6822 cf_save_LIBS="$LIBS"
6823 cf_cv_lib_tgetent=no
6824 if test "$cf_full_tgetent" = yes ; then
6825 cf_TERMLIB="otermcap termcap termlib ncurses curses"
6826 cf_TERMTST="buffer[0] == 0"
6827 else
6828 cf_TERMLIB="termlib ncurses curses"
6829 cf_TERMTST="0"
6830 fi
6831 for cf_termlib in '' $cf_TERMLIB ; do
6832 LIBS="$cf_save_LIBS"
6833 test -n "$cf_termlib" && {
6834 cf_add_libs="$LIBS"
6835 # reverse order
6836 cf_add_0lib=
6837 for cf_add_1lib in -l$cf_termlib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6838 # filter duplicates
6839 for cf_add_1lib in $cf_add_0lib; do
6840 for cf_add_2lib in $cf_add_libs; do
6841 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6842 cf_add_1lib=
6843 break
6844 fi
6845 done
6846 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6847 done
6848 LIBS="$cf_add_libs"
6849 }
6850 if test "$cross_compiling" = yes; then
6851 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
6852 else
6853 cat >"conftest.$ac_ext" <<_ACEOF
6854 #line 6854 "configure"
6855 #include "confdefs.h"
6856
6857 #ifdef HAVE_TERMCAP_H
6858 #include <termcap.h>
6859 #endif
6860 /* terminfo implementations ignore the buffer argument, making it useless for
6861 * the xterm application, which uses this information to make a new TERMCAP
6862 * environment variable.
6863 */
6864 int main(void)
6865 {
6866 char buffer[1024];
6867 buffer[0] = 0;
6868 tgetent(buffer, "$cf_TERMVAR");
6869 ${cf_cv_main_return:-return} ($cf_TERMTST); }
6870 _ACEOF
6871 rm -f "conftest$ac_exeext"
6872 if { (eval echo "$as_me:6872: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>&5
6874 ac_status=$?
6875 echo "$as_me:6875: \$? = $ac_status" >&5
6876 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6877 { (eval echo "$as_me:6877: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:6880: \$? = $ac_status" >&5
6881 (exit "$ac_status"); }; }; then
6882 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
6883 if test -n "$cf_termlib" ; then
6884 cf_cv_lib_tgetent="-l$cf_termlib"
6885 else
6886 cf_cv_lib_tgetent=yes
6887 fi
6888 break
6889 else
6890 echo "$as_me: program exited with status $ac_status" >&5
6891 echo "$as_me: failed program was:" >&5
6892 cat "conftest.$ac_ext" >&5
6893 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
6894 fi
6895 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6896 fi
6897 done
6898 LIBS="$cf_save_LIBS"
6899
6900 fi
6901 echo "$as_me:6901: result: $cf_cv_lib_tgetent" >&5
6902 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
6903
6904 # If we found a working tgetent(), set LIBS and check for termcap.h.
6905 # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
6906 # not have side effects other than setting the cache variable, because
6907 # they are not executed when a cached value exists.)
6908 if test "x$cf_cv_lib_tgetent" != xno ; then
6909 test "x$cf_cv_lib_tgetent" != xyes && {
6910 cf_add_libs="$LIBS"
6911 # reverse order
6912 cf_add_0lib=
6913 for cf_add_1lib in $cf_cv_lib_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6914 # filter duplicates
6915 for cf_add_1lib in $cf_add_0lib; do
6916 for cf_add_2lib in $cf_add_libs; do
6917 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6918 cf_add_1lib=
6919 break
6920 fi
6921 done
6922 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6923 done
6924 LIBS="$cf_add_libs"
6925 }
6926
6927 cat >>confdefs.h <<\EOF
6928 #define USE_TERMCAP 1
6929 EOF
6930
6931 if test "$cf_full_tgetent" = no ; then
6932 cat >"conftest.$ac_ext" <<_ACEOF
6933 #line 6933 "configure"
6934 #include "confdefs.h"
6935
6936 #include <termcap.h>
6937 int
6938 main (void)
6939 {
6940
6941 #ifdef NCURSES_VERSION
6942 make an error
6943 #endif
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 rm -f "conftest.$ac_objext"
6949 if { (eval echo "$as_me:6949: \"$ac_compile\"") >&5
6950 (eval $ac_compile) 2>&5
6951 ac_status=$?
6952 echo "$as_me:6952: \$? = $ac_status" >&5
6953 (exit "$ac_status"); } &&
6954 { ac_try='test -s "conftest.$ac_objext"'
6955 { (eval echo "$as_me:6955: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:6958: \$? = $ac_status" >&5
6959 (exit "$ac_status"); }; }; then
6960 cat >>confdefs.h <<\EOF
6961 #define HAVE_TERMCAP_H 1
6962 EOF
6963
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 cat "conftest.$ac_ext" >&5
6967 fi
6968 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6969 else
6970
6971 for ac_header in termcap.h
6972 do
6973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6974 echo "$as_me:6974: checking for $ac_header" >&5
6975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 cat >"conftest.$ac_ext" <<_ACEOF
6980 #line 6980 "configure"
6981 #include "confdefs.h"
6982 #include <$ac_header>
6983 _ACEOF
6984 if { (eval echo "$as_me:6984: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6985 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6986 ac_status=$?
6987 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:6990: \$? = $ac_status" >&5
6991 (exit "$ac_status"); } >/dev/null; then
6992 if test -s conftest.err; then
6993 ac_cpp_err=$ac_c_preproc_warn_flag
6994 else
6995 ac_cpp_err=
6996 fi
6997 else
6998 ac_cpp_err=yes
6999 fi
7000 if test -z "$ac_cpp_err"; then
7001 eval "$as_ac_Header=yes"
7002 else
7003 echo "$as_me: failed program was:" >&5
7004 cat "conftest.$ac_ext" >&5
7005 eval "$as_ac_Header=no"
7006 fi
7007 rm -f conftest.err "conftest.$ac_ext"
7008 fi
7009 echo "$as_me:7009: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7010 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7011 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7012 cat >>confdefs.h <<EOF
7013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014 EOF
7015
7016 fi
7017 done
7018
7019 fi
7020 else
7021 # If we didn't find a tgetent() that supports the buffer
7022 # argument, look again to see whether we can find even
7023 # a crippled one. A crippled tgetent() is still useful to
7024 # validate values for the TERM environment variable given to
7025 # child processes.
7026 echo "$as_me:7026: checking for partial tgetent function" >&5
7027 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
7028 if test "${cf_cv_lib_part_tgetent+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031
7032 cf_cv_lib_part_tgetent=no
7033 for cf_termlib in $cf_TERMLIB ; do
7034 LIBS="$cf_save_LIBS -l$cf_termlib"
7035 cat >"conftest.$ac_ext" <<_ACEOF
7036 #line 7036 "configure"
7037 #include "confdefs.h"
7038
7039 int
7040 main (void)
7041 {
7042 tgetent(0, "$cf_TERMVAR")
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7048 if { (eval echo "$as_me:7048: \"$ac_link\"") >&5
7049 (eval $ac_link) 2>&5
7050 ac_status=$?
7051 echo "$as_me:7051: \$? = $ac_status" >&5
7052 (exit "$ac_status"); } &&
7053 { ac_try='test -s "conftest$ac_exeext"'
7054 { (eval echo "$as_me:7054: \"$ac_try\"") >&5
7055 (eval $ac_try) 2>&5
7056 ac_status=$?
7057 echo "$as_me:7057: \$? = $ac_status" >&5
7058 (exit "$ac_status"); }; }; then
7059 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
7060 cf_cv_lib_part_tgetent="-l$cf_termlib"
7061 break
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 cat "conftest.$ac_ext" >&5
7065 fi
7066 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7067 done
7068 LIBS="$cf_save_LIBS"
7069
7070 fi
7071 echo "$as_me:7071: result: $cf_cv_lib_part_tgetent" >&5
7072 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
7073
7074 if test "$cf_cv_lib_part_tgetent" != no ; then
7075
7076 cf_add_libs="$LIBS"
7077 # reverse order
7078 cf_add_0lib=
7079 for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7080 # filter duplicates
7081 for cf_add_1lib in $cf_add_0lib; do
7082 for cf_add_2lib in $cf_add_libs; do
7083 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7084 cf_add_1lib=
7085 break
7086 fi
7087 done
7088 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7089 done
7090 LIBS="$cf_add_libs"
7091
7092 for ac_header in termcap.h
7093 do
7094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 echo "$as_me:7095: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 cat >"conftest.$ac_ext" <<_ACEOF
7101 #line 7101 "configure"
7102 #include "confdefs.h"
7103 #include <$ac_header>
7104 _ACEOF
7105 if { (eval echo "$as_me:7105: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7106 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7107 ac_status=$?
7108 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:7111: \$? = $ac_status" >&5
7112 (exit "$ac_status"); } >/dev/null; then
7113 if test -s conftest.err; then
7114 ac_cpp_err=$ac_c_preproc_warn_flag
7115 else
7116 ac_cpp_err=
7117 fi
7118 else
7119 ac_cpp_err=yes
7120 fi
7121 if test -z "$ac_cpp_err"; then
7122 eval "$as_ac_Header=yes"
7123 else
7124 echo "$as_me: failed program was:" >&5
7125 cat "conftest.$ac_ext" >&5
7126 eval "$as_ac_Header=no"
7127 fi
7128 rm -f conftest.err "conftest.$ac_ext"
7129 fi
7130 echo "$as_me:7130: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7131 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7132 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7133 cat >>confdefs.h <<EOF
7134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7135 EOF
7136
7137 fi
7138 done
7139
7140 # If this is linking against ncurses, we'll trigger the
7141 # ifdef in resize.c that turns the termcap stuff back off.
7142
7143 cat >>confdefs.h <<\EOF
7144 #define USE_TERMINFO 1
7145 EOF
7146
7147 fi
7148 fi
7149
7150 echo "$as_me:7150: checking for X applications class" >&5
7151 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
7152
7153 # Check whether --with-app-class or --without-app-class was given.
7154 if test "${with_app_class+set}" = set; then
7155 withval="$with_app_class"
7156 APP_CLASS=$withval
7157 else
7158 APP_CLASS=XTerm
7159 fi;
7160
7161 case x$APP_CLASS in
7162 (*[/@,%]*)
7163 { echo "$as_me:7163: WARNING: X applications class cannot contain punctuation" >&5
7164 echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
7165 APP_CLASS=XTerm
7166 ;;
7167 (x[A-Z]*)
7168 ;;
7169 (*)
7170 { echo "$as_me:7170: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&5
7171 echo "$as_me: WARNING: X applications class must start with capital, ignoring $APP_CLASS" >&2;}
7172 APP_CLASS=XTerm
7173 ;;
7174 esac
7175
7176 echo "$as_me:7176: result: $APP_CLASS" >&5
7177 echo "${ECHO_T}$APP_CLASS" >&6
7178
7179 echo "$as_me:7179: checking for directory to install resource files" >&5
7180 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
7181
7182 # Check whether --with-app-defaults or --without-app-defaults was given.
7183 if test "${with_app_defaults+set}" = set; then
7184 withval="$with_app_defaults"
7185 APPSDIR=$withval
7186 else
7187 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
7188 fi;
7189
7190 if test "x$APPSDIR" = xauto
7191 then
7192 APPSDIR='${exec_prefix}/lib/X11/app-defaults'
7193 for cf_path in \
7194 /opt/local/share/X11/app-defaults \
7195 /opt/X11/share/X11/app-defaults \
7196 /usr/share/X11/app-defaults \
7197 /usr/X11/share/X11/app-defaults \
7198 /usr/X11/lib/X11/app-defaults \
7199 /usr/lib/X11/app-defaults \
7200 /etc/X11/app-defaults \
7201 /usr/pkg/lib/X11/app-defaults \
7202 /usr/X11R7/lib/X11/app-defaults \
7203 /usr/X11R6/lib/X11/app-defaults \
7204 /usr/X11R5/lib/X11/app-defaults \
7205 /usr/X11R4/lib/X11/app-defaults \
7206 /usr/local/lib/X11/app-defaults \
7207 /usr/local/share/X11/app-defaults \
7208 /usr/lib64/X11/app-defaults
7209 do
7210 if test -d "$cf_path" ; then
7211 APPSDIR="$cf_path"
7212 break
7213 fi
7214 done
7215 else
7216 cf_path=$APPSDIR
7217
7218 if test "x$prefix" != xNONE; then
7219 cf_path_syntax="$prefix"
7220 else
7221 cf_path_syntax="$ac_default_prefix"
7222 fi
7223
7224 case ".$cf_path" in
7225 (.\$\(*\)*|.\'*\'*)
7226 ;;
7227 (..|./*|.\\*)
7228 ;;
7229 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7230 ;;
7231 (.\$\{*prefix\}*|.\$\{*dir\}*)
7232 eval cf_path="$cf_path"
7233 case ".$cf_path" in
7234 (.NONE/*)
7235 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7236 ;;
7237 esac
7238 ;;
7239 (.no|.NONE/*)
7240 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7241 ;;
7242 (*)
7243 { { echo "$as_me:7243: error: expected a pathname, not \"$cf_path\"" >&5
7244 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
7245 { (exit 1); exit 1; }; }
7246 ;;
7247 esac
7248
7249 fi
7250
7251 echo "$as_me:7251: result: $APPSDIR" >&5
7252 echo "${ECHO_T}$APPSDIR" >&6
7253
7254 no_appsdir=
7255 if test "$APPSDIR" = no
7256 then
7257 no_appsdir="#"
7258 else
7259 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
7260 fi
7261
7262 echo "$as_me:7262: checking for the icon name" >&5
7263 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
7264
7265 # Check whether --with-icon-name or --without-icon-name was given.
7266 if test "${with_icon_name+set}" = set; then
7267 withval="$with_icon_name"
7268 ICON_NAME="$withval"
7269 else
7270 ICON_NAME=mini.xterm
7271 fi;
7272 case "x$ICON_NAME" in
7273 (xyes|xno|x)
7274 ICON_NAME=mini.xterm
7275 ;;
7276 esac
7277
7278 echo "$as_me:7278: result: $ICON_NAME" >&5
7279 echo "${ECHO_T}$ICON_NAME" >&6
7280
7281 echo "$as_me:7281: checking for icon symlink to use" >&5
7282 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
7283
7284 # Check whether --with-icon-symlink or --without-icon-symlink was given.
7285 if test "${with_icon_symlink+set}" = set; then
7286 withval="$with_icon_symlink"
7287 ICON_SYMLINK="$withval"
7288 else
7289 ICON_SYMLINK=NONE
7290 fi;
7291 case "x$ICON_SYMLINK" in
7292 (xyes)
7293 ICON_SYMLINK=xterm
7294 ;;
7295 (xno|x)
7296 ICON_SYMLINK=NONE
7297 ;;
7298 esac
7299
7300 echo "$as_me:7300: result: $ICON_SYMLINK" >&5
7301 echo "${ECHO_T}$ICON_SYMLINK" >&6
7302
7303 # Install all icons except for the overused "terminal".
7304 cf_cv_icon_list=
7305 for my_item in $srcdir/icons/*.svg
7306 do
7307 test -f "$my_item" || continue
7308 cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"`
7309 case $cf_icon_name in
7310 (*_48x48)
7311 continue
7312 ;;
7313 esac
7314 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6
7315
7316 echo "${as_me:-configure}:7316: testing adding $cf_icon_name to icon-list ..." 1>&5
7317
7318 cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name"
7319 if test -f "${cf_icon_name}_48x48.png"
7320 then
7321 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to icon-list" 1>&6
7322
7323 echo "${as_me:-configure}:7323: testing adding ${cf_icon_name}_48x48 to icon-list ..." 1>&5
7324
7325 cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48"
7326 fi
7327 done
7328
7329 echo "$as_me:7329: checking for directory to install pixmaps" >&5
7330 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
7331
7332 # Check whether --with-pixmapdir or --without-pixmapdir was given.
7333 if test "${with_pixmapdir+set}" = set; then
7334 withval="$with_pixmapdir"
7335 PIXMAPDIR=$withval
7336 else
7337 test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
7338 fi;
7339
7340 if test "x$PIXMAPDIR" = xauto
7341 then
7342 PIXMAPDIR='${datadir}/pixmaps'
7343 for cf_path in \
7344 /usr/share/pixmaps \
7345 /usr/X11R6/share/pixmaps
7346 do
7347 if test -d "$cf_path" ; then
7348 PIXMAPDIR="$cf_path"
7349 break
7350 fi
7351 done
7352 else
7353 cf_path=$PIXMAPDIR
7354
7355 if test "x$prefix" != xNONE; then
7356 cf_path_syntax="$prefix"
7357 else
7358 cf_path_syntax="$ac_default_prefix"
7359 fi
7360
7361 case ".$cf_path" in
7362 (.\$\(*\)*|.\'*\'*)
7363 ;;
7364 (..|./*|.\\*)
7365 ;;
7366 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7367 ;;
7368 (.\$\{*prefix\}*|.\$\{*dir\}*)
7369 eval cf_path="$cf_path"
7370 case ".$cf_path" in
7371 (.NONE/*)
7372 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7373 ;;
7374 esac
7375 ;;
7376 (.no|.NONE/*)
7377 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7378 ;;
7379 (*)
7380 { { echo "$as_me:7380: error: expected a pathname, not \"$cf_path\"" >&5
7381 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
7382 { (exit 1); exit 1; }; }
7383 ;;
7384 esac
7385
7386 fi
7387 echo "$as_me:7387: result: $PIXMAPDIR" >&5
7388 echo "${ECHO_T}$PIXMAPDIR" >&6
7389
7390 no_pixmapdir=
7391 if test "$PIXMAPDIR" = no
7392 then
7393 no_pixmapdir="#"
7394 else
7395 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
7396 fi
7397
7398 echo "$as_me:7398: checking for directory to install icons" >&5
7399 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
7400
7401 # Check whether --with-icondir or --without-icondir was given.
7402 if test "${with_icondir+set}" = set; then
7403 withval="$with_icondir"
7404 ICONDIR=$withval
7405 else
7406 test -z "$ICONDIR" && ICONDIR=no
7407 fi;
7408
7409 if test "x$ICONDIR" = xauto
7410 then
7411 ICONDIR='${datadir}/icons'
7412 for cf_path in \
7413 /usr/share/icons \
7414 /usr/X11R6/share/icons
7415 do
7416 if test -d "$cf_path" ; then
7417 ICONDIR="$cf_path"
7418 break
7419 fi
7420 done
7421 else
7422 cf_path=$ICONDIR
7423
7424 if test "x$prefix" != xNONE; then
7425 cf_path_syntax="$prefix"
7426 else
7427 cf_path_syntax="$ac_default_prefix"
7428 fi
7429
7430 case ".$cf_path" in
7431 (.\$\(*\)*|.\'*\'*)
7432 ;;
7433 (..|./*|.\\*)
7434 ;;
7435 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7436 ;;
7437 (.\$\{*prefix\}*|.\$\{*dir\}*)
7438 eval cf_path="$cf_path"
7439 case ".$cf_path" in
7440 (.NONE/*)
7441 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7442 ;;
7443 esac
7444 ;;
7445 (.no|.NONE/*)
7446 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
7447 ;;
7448 (*)
7449 { { echo "$as_me:7449: error: expected a pathname, not \"$cf_path\"" >&5
7450 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
7451 { (exit 1); exit 1; }; }
7452 ;;
7453 esac
7454
7455 fi
7456 echo "$as_me:7456: result: $ICONDIR" >&5
7457 echo "${ECHO_T}$ICONDIR" >&6
7458
7459 no_icondir=
7460 if test "$ICONDIR" = no
7461 then
7462 no_icondir="#"
7463 else
7464 EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
7465 fi
7466
7467 echo "$as_me:7467: checking if icon theme should be used" >&5
7468 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
7469
7470 # Check whether --with-icon-theme or --without-icon-theme was given.
7471 if test "${with_icon_theme+set}" = set; then
7472 withval="$with_icon_theme"
7473 ICON_THEME=$withval
7474 else
7475 ICON_THEME=no
7476 fi;
7477
7478 case "x$ICON_THEME" in
7479 (xno)
7480 ;;
7481 (x|xyes)
7482 ICON_THEME=hicolor
7483 ;;
7484 esac
7485 echo "$as_me:7485: result: $ICON_THEME" >&5
7486 echo "${ECHO_T}$ICON_THEME" >&6
7487
7488 if test "x$ICON_THEME" = xno
7489 then
7490 if test "x$ICONDIR" != xno
7491 then
7492 test -n "$verbose" && echo " ignoring icondir without theme" 1>&6
7493
7494 echo "${as_me:-configure}:7494: testing ignoring icondir without theme ..." 1>&5
7495
7496 no_icondir="#"
7497 fi
7498 else
7499 if test "x$ICONDIR" = xno
7500 then
7501 { { echo "$as_me:7501: error: icondir must be set for icon theme" >&5
7502 echo "$as_me: error: icondir must be set for icon theme" >&2;}
7503 { (exit 1); exit 1; }; }
7504 fi
7505 fi
7506
7507 : ${ICON_FORMAT:=".svg .png .xpm"}
7508
7509 ICON_LIST=
7510
7511 if test "x$ICON_THEME" != xno
7512 then
7513 cf_icon_list="$cf_cv_icon_list"
7514 else
7515 cf_icon_list="icons/${ICON_NAME}_48x48"
7516 fi
7517
7518 echo "$as_me:7518: checking for icon(s) to install" >&5
7519 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
7520 for cf_name in $cf_icon_list
7521 do
7522 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6
7523
7524 echo "${as_me:-configure}:7524: testing using $ICON_FORMAT ..." 1>&5
7525
7526 for cf_suffix in $ICON_FORMAT
7527 do
7528 cf_icon="${cf_name}${cf_suffix}"
7529 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
7530 if test ! -f "${cf_left}"
7531 then
7532 if test "x$srcdir" != "x."
7533 then
7534 cf_icon="${srcdir}/${cf_left}"
7535 cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
7536 if test ! -f "${cf_left}"
7537 then
7538 continue
7539 fi
7540 else
7541 continue
7542 fi
7543 fi
7544 if test "x$ICON_THEME" != xno
7545 then
7546 cf_base=`basename "$cf_left"`
7547 cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0-9]\././'`
7548 case "x${cf_base}" in
7549 (*:*)
7550 cf_next=$cf_base
7551 # user-defined mapping
7552 ;;
7553 (*.png)
7554 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'`
7555 if test -z "$cf_size"
7556 then
7557 { echo "$as_me:7557: WARNING: cannot determine size of $cf_left" >&5
7558 echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
7559 continue
7560 fi
7561 cf_next="$cf_size/apps/$cf_trim"
7562 ;;
7563 (*.svg)
7564 cf_next="scalable/apps/$cf_trim"
7565 ;;
7566 (*.xpm)
7567 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6
7568
7569 echo "${as_me:-configure}:7569: testing ignored XPM file in icon theme ..." 1>&5
7570
7571 continue
7572 ;;
7573 (*_[0-9][0-9]*x[0-9][0-9]*.*)
7574 cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0-9]*x[0-9][0-9]*\)\..*$/\1/'`
7575 cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
7576 cf_next="$cf_size/apps/$cf_base"
7577 ;;
7578 esac
7579 test -n "$verbose" && echo " adding $cf_next" 1>&6
7580
7581 echo "${as_me:-configure}:7581: testing adding $cf_next ..." 1>&5
7582
7583 cf_icon="${cf_icon}:${cf_next}"
7584 fi
7585 test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
7586 ICON_LIST="$ICON_LIST${cf_icon}"
7587 if test -z "$ICON_NAME"
7588 then
7589 ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'`
7590 fi
7591 done
7592 done
7593
7594 if test -n "$verbose"
7595 then
7596 echo "$as_me:7596: checking result" >&5
7597 echo $ECHO_N "checking result... $ECHO_C" >&6
7598 fi
7599 echo "$as_me:7599: result: $ICON_LIST" >&5
7600 echo "${ECHO_T}$ICON_LIST" >&6
7601
7602 if test -z "$ICON_LIST"
7603 then
7604 { { echo "$as_me:7604: error: no icons found" >&5
7605 echo "$as_me: error: no icons found" >&2;}
7606 { (exit 1); exit 1; }; }
7607 fi
7608
7609 echo "$as_me:7609: checking for icon name" >&5
7610 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
7611 echo "$as_me:7611: result: $ICON_NAME" >&5
7612 echo "${ECHO_T}$ICON_NAME" >&6
7613
7614 # Comment-out the install-desktop rule if the desktop-utils are not found.
7615 echo "$as_me:7615: checking if you want to install desktop files" >&5
7616 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
7617
7618 # Check whether --enable-desktop or --disable-desktop was given.
7619 if test "${enable_desktop+set}" = set; then
7620 enableval="$enable_desktop"
7621 test "$enableval" != no && enableval=yes
7622 if test "$enableval" != "yes" ; then
7623 enable_desktop=$enableval
7624 else
7625 enable_desktop=$enableval
7626 fi
7627 else
7628 enableval=yes
7629 enable_desktop=$enableval
7630
7631 fi;
7632 echo "$as_me:7632: result: $enable_desktop" >&5
7633 echo "${ECHO_T}$enable_desktop" >&6
7634
7635 desktop_utils=
7636 if test "$enable_desktop" = yes ; then
7637 # Extract the first word of "desktop-file-install", so it can be a program name with args.
7638 set dummy desktop-file-install; ac_word=$2
7639 echo "$as_me:7639: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_desktop_utils+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644 if test -n "$desktop_utils"; then
7645 ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
7646 else
7647 ac_save_IFS=$IFS; IFS=$ac_path_separator
7648 ac_dummy="$PATH"
7649 for ac_dir in $ac_dummy; do
7650 IFS=$ac_save_IFS
7651 test -z "$ac_dir" && ac_dir=.
7652 $as_executable_p "$ac_dir/$ac_word" || continue
7653 ac_cv_prog_desktop_utils="yes"
7654 echo "$as_me:7654: found $ac_dir/$ac_word" >&5
7655 break
7656 done
7657
7658 test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
7659 fi
7660 fi
7661 desktop_utils=$ac_cv_prog_desktop_utils
7662 if test -n "$desktop_utils"; then
7663 echo "$as_me:7663: result: $desktop_utils" >&5
7664 echo "${ECHO_T}$desktop_utils" >&6
7665 else
7666 echo "$as_me:7666: result: no" >&5
7667 echo "${ECHO_T}no" >&6
7668 fi
7669
7670 fi
7671
7672 test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
7673
7674 if test -z "$desktop_utils"
7675 then
7676 echo "$as_me:7676: checking for requested desktop-category" >&5
7677 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
7678
7679 # Check whether --with-desktop-category or --without-desktop-category was given.
7680 if test "${with_desktop_category+set}" = set; then
7681 withval="$with_desktop_category"
7682 cf_desktop_want=$withval
7683 else
7684 cf_desktop_want=auto
7685 fi;
7686 echo "$as_me:7686: result: $cf_desktop_want" >&5
7687 echo "${ECHO_T}$cf_desktop_want" >&6
7688
7689 if test "$cf_desktop_want" = auto
7690 then
7691 rm -rf conftest*
7692 cf_desktop_also=
7693 for cf_desktop_dir in \
7694 /usr/share/app-install \
7695 /usr/share/applications
7696 do
7697 if test -d $cf_desktop_dir
7698 then
7699 find $cf_desktop_dir -name '*.desktop' | \
7700 while true
7701 do
7702 read cf_desktop_path
7703 test -z "$cf_desktop_path" && break
7704 cf_desktop_name=`basename "$cf_desktop_path" .desktop`
7705 case $cf_desktop_name in
7706 (xterm|*-xterm|*rxvt*|*konsole|*[Tt]erminal)
7707 test -n "$verbose" && echo " inspect $cf_desktop_path" 1>&6
7708
7709 echo "${as_me:-configure}:7709: testing inspect $cf_desktop_path ..." 1>&5
7710
7711 ${EGREP-egrep} '^Categories=' "$cf_desktop_path" | \
7712 tr ';' '\n' | \
7713 sed -e 's%^.*=%%' -e '/^$/d' >>conftest.1
7714 ;;
7715 esac
7716 done
7717 fi
7718 done
7719 if test -s conftest.1
7720 then
7721 cf_desktop_last=
7722 sort conftest.1 | \
7723 while true
7724 do
7725 read cf_desktop_this
7726 test -z "$cf_desktop_this" && break
7727 if test -s conftest.2
7728 then
7729 grep -w "$cf_desktop_this" conftest.2 >/dev/null && continue
7730 elif test -s conftest.3
7731 then
7732 grep -w "$cf_desktop_this" conftest.3 >/dev/null && continue
7733 fi
7734 case "$cf_desktop_this" in
7735 (-*)
7736 ;;
7737 (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFGHIJKLMNOPQRSTUVWXYZ]*)
7738 test -n "$verbose" && echo " ignored $cf_desktop_this" 1>&6
7739
7740 echo "${as_me:-configure}:7740: testing ignored $cf_desktop_this ..." 1>&5
7741
7742 echo "$cf_desktop_this" >> conftest.3
7743 ;;
7744 (System|TerminalEmulator|*)
7745 test -n "$verbose" && echo " applied $cf_desktop_this" 1>&6
7746
7747 echo "${as_me:-configure}:7747: testing applied $cf_desktop_this ..." 1>&5
7748
7749 test "x$cf_desktop_last" != "x$cf_desktop_this" && echo "$cf_desktop_this" >>conftest.2
7750 ;;
7751 esac
7752 cf_desktop_last=$cf_desktop_this
7753 done
7754 cf_desktop_want="`tr '\n' ';' < conftest.2`"
7755 fi
7756 if test -n "$cf_desktop_want"
7757 then
7758 if test "$cf_desktop_want" = auto
7759 then
7760 cf_desktop_want=
7761 else
7762 # do a sanity check on the semicolon-separated list, ignore on failure
7763 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/[^;]//g'`
7764 test -z "$cf_desktop_test" && cf_desktop_want=
7765 cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
7766 test -z "$cf_desktop_test" && cf_desktop_want=
7767 fi
7768 fi
7769 if test -z "$cf_desktop_want"
7770 then
7771 cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
7772 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6
7773
7774 echo "${as_me:-configure}:7774: testing no usable value found for desktop category ..." 1>&5
7775
7776 fi
7777 fi
7778 DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
7779 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1>&6
7780
7781 echo "${as_me:-configure}:7781: testing will use Categories=$DESKTOP_CATEGORY ..." 1>&5
7782
7783 fi
7784
7785 echo "$as_me:7785: checking for install-permissions reference" >&5
7786 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
7787
7788 # Check whether --with-reference or --without-reference was given.
7789 if test "${with_reference+set}" = set; then
7790 withval="$with_reference"
7791 with_reference=$withval
7792 else
7793 with_reference=xterm
7794 fi;
7795 echo "$as_me:7795: result: $with_reference" >&5
7796 echo "${ECHO_T}$with_reference" >&6
7797
7798 with_full_paths=yes
7799
7800 echo "$as_me:7800: checking for PATH separator" >&5
7801 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
7802 case "$cf_cv_system_name" in
7803 (os2*) PATH_SEPARATOR=';' ;;
7804 (*) ${PATH_SEPARATOR:=':'} ;;
7805 esac
7806
7807 echo "$as_me:7807: result: $PATH_SEPARATOR" >&5
7808 echo "${ECHO_T}$PATH_SEPARATOR" >&6
7809
7810 test -z "$XTERM_PATH" && XTERM_PATH="$with_reference"
7811 for ac_prog in $XTERM_PATH $with_reference
7812 do
7813 # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 echo "$as_me:7815: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_path_XTERM_PATH+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 case $XTERM_PATH in
7821 [\\/]* | ?:[\\/]*)
7822 ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
7823 ;;
7824 *)
7825 ac_save_IFS=$IFS; IFS=$ac_path_separator
7826 ac_dummy="$PATH"
7827 for ac_dir in $ac_dummy; do
7828 IFS=$ac_save_IFS
7829 test -z "$ac_dir" && ac_dir=.
7830 if $as_executable_p "$ac_dir/$ac_word"; then
7831 ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
7832 echo "$as_me:7832: found $ac_dir/$ac_word" >&5
7833 break
7834 fi
7835 done
7836
7837 ;;
7838 esac
7839 fi
7840 XTERM_PATH=$ac_cv_path_XTERM_PATH
7841
7842 if test -n "$XTERM_PATH"; then
7843 echo "$as_me:7843: result: $XTERM_PATH" >&5
7844 echo "${ECHO_T}$XTERM_PATH" >&6
7845 else
7846 echo "$as_me:7846: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7848 fi
7849
7850 test -n "$XTERM_PATH" && break
7851 done
7852 test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
7853
7854 cf_path_prog=""
7855 cf_path_args=""
7856 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
7857 for cf_temp in $ac_cv_path_XTERM_PATH
7858 do
7859 if test -z "$cf_path_prog" ; then
7860 if test "$with_full_paths" = yes ; then
7861
7862 if test "x$prefix" != xNONE; then
7863 cf_path_syntax="$prefix"
7864 else
7865 cf_path_syntax="$ac_default_prefix"
7866 fi
7867
7868 case ".$cf_temp" in
7869 (.\$\(*\)*|.\'*\'*)
7870 ;;
7871 (..|./*|.\\*)
7872 ;;
7873 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7874 ;;
7875 (.\$\{*prefix\}*|.\$\{*dir\}*)
7876 eval cf_temp="$cf_temp"
7877 case ".$cf_temp" in
7878 (.NONE/*)
7879 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
7880 ;;
7881 esac
7882 ;;
7883 (.no|.NONE/*)
7884 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
7885 ;;
7886 (*)
7887 break
7888 ;;
7889 esac
7890
7891 cf_path_prog="$cf_temp"
7892 else
7893 cf_path_prog="`basename "$cf_temp"`"
7894 fi
7895 elif test -z "$cf_path_args" ; then
7896 cf_path_args="$cf_temp"
7897 else
7898 cf_path_args="$cf_path_args $cf_temp"
7899 fi
7900 done
7901 IFS="$cf_save_ifs"
7902
7903 if test -n "$cf_path_prog" ; then
7904
7905 echo "${as_me:-configure}:7905: testing defining path for ${cf_path_prog} ..." 1>&5
7906
7907 cat >>confdefs.h <<EOF
7908 #define XTERM_PATH_PATH "$cf_path_prog"
7909 EOF
7910
7911 test -n "$cf_path_args" &&
7912 cat >>confdefs.h <<EOF
7913 #define XTERM_PATH_ARGS "$cf_path_args"
7914 EOF
7915
7916 fi
7917
7918 # If any of --program-prefix, --program-suffix or --program-transform-name is
7919 # given, accept an option tell the makefile to create a symbolic link, e.g.,
7920 # to "xterm" on install.
7921 XTERM_SYMLINK=NONE
7922
7923 if test "$program_transform_name" != "'s,,,'" ; then
7924 cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
7925 cf_name=`echo xterm |sed -e "$cf_name"`
7926 echo "$as_me:7926: checking for symbolic link to create to $cf_name" >&5
7927 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
7928
7929 # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
7930 if test "${with_xterm_symlink+set}" = set; then
7931 withval="$with_xterm_symlink"
7932 with_symlink=$withval
7933 else
7934 with_symlink=xterm
7935 fi;
7936 echo "$as_me:7936: result: $with_symlink" >&5
7937 echo "${ECHO_T}$with_symlink" >&6
7938 test "$with_symlink" = yes && with_symlink=xterm
7939 test -n "$with_symlink" && \
7940 test "$with_symlink" != no && \
7941 test "$with_symlink" != "$cf_name" && \
7942 XTERM_SYMLINK="$with_symlink"
7943 fi
7944
7945 echo "$as_me:7945: checking if you want to disable openpty" >&5
7946 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
7947
7948 # Check whether --enable-openpty or --disable-openpty was given.
7949 if test "${enable_openpty+set}" = set; then
7950 enableval="$enable_openpty"
7951 test "$enableval" != no && enableval=yes
7952 if test "$enableval" != "yes" ; then
7953 disable_openpty=yes
7954 else
7955 disable_openpty=no
7956 fi
7957 else
7958 enableval=yes
7959 disable_openpty=no
7960
7961 fi;
7962 echo "$as_me:7962: result: $disable_openpty" >&5
7963 echo "${ECHO_T}$disable_openpty" >&6
7964
7965 echo "$as_me:7965: checking if you want to disable setuid" >&5
7966 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
7967
7968 # Check whether --enable-setuid or --disable-setuid was given.
7969 if test "${enable_setuid+set}" = set; then
7970 enableval="$enable_setuid"
7971 test "$enableval" != no && enableval=yes
7972 if test "$enableval" != "yes" ; then
7973 disable_setuid=yes
7974 else
7975 disable_setuid=no
7976 fi
7977 else
7978 enableval=yes
7979 disable_setuid=no
7980
7981 fi;
7982 echo "$as_me:7982: result: $disable_setuid" >&5
7983 echo "${ECHO_T}$disable_setuid" >&6
7984
7985 echo "$as_me:7985: checking if you want to disable setgid" >&5
7986 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
7987
7988 # Check whether --enable-setgid or --disable-setgid was given.
7989 if test "${enable_setgid+set}" = set; then
7990 enableval="$enable_setgid"
7991 test "$enableval" != no && enableval=yes
7992 if test "$enableval" != "yes" ; then
7993 disable_setgid=yes
7994 else
7995 disable_setgid=no
7996 fi
7997 else
7998 enableval=yes
7999 disable_setgid=no
8000
8001 fi;
8002 echo "$as_me:8002: result: $disable_setgid" >&5
8003 echo "${ECHO_T}$disable_setgid" >&6
8004
8005 echo "$as_me:8005: checking if you want to run xterm setuid to a given user" >&5
8006 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
8007
8008 # Check whether --with-setuid or --without-setuid was given.
8009 if test "${with_setuid+set}" = set; then
8010 withval="$with_setuid"
8011 use_given_setuid=$withval
8012 else
8013 use_given_setuid=no
8014 fi;
8015 echo "$as_me:8015: result: $use_given_setuid" >&5
8016 echo "${ECHO_T}$use_given_setuid" >&6
8017
8018 if test "$use_given_setuid" != no ; then
8019 if test "$use_given_setuid" = yes ; then
8020 cf_cv_given_setuid=root
8021 else
8022 cf_cv_given_setuid=$use_given_setuid
8023 fi
8024 # inherit SINSTALL_OPTS from environment to allow packager to customize it.
8025 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
8026 fi
8027
8028 echo "$as_me:8028: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
8029 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
8030
8031 # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
8032 if test "${with_utmp_setgid+set}" = set; then
8033 withval="$with_utmp_setgid"
8034 use_utmp_setgid=$withval
8035 else
8036 use_utmp_setgid=no
8037 fi;
8038 echo "$as_me:8038: result: $use_utmp_setgid" >&5
8039 echo "${ECHO_T}$use_utmp_setgid" >&6
8040
8041 if test "$use_utmp_setgid" != no ; then
8042 if test "$use_utmp_setgid" = yes ; then
8043
8044 if test $cf_cv_have_utmp != no ; then
8045 echo "$as_me:8045: checking for utmp/utmpx group" >&5
8046 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
8047 if test "${cf_cv_utmp_group+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050
8051 for cf_utmp_path in /var/adm /var/run
8052 do
8053 for cf_utmp_file in utmpx utmp
8054 do
8055 if test -f $cf_utmp_path/$cf_utmp_file
8056 then
8057 cf_cv_utmp_group=root
8058
8059 cf_option="-lL"
8060
8061 # Expect listing to have fields like this:
8062 #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname
8063 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest
8064 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
8065 if test -z "$cf_rest" ; then
8066 cf_option="${cf_option}g"
8067 ls "$cf_option" "$cf_utmp_path/$cf_utmp_file" >conftest
8068 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
8069 fi
8070 rm -f conftest
8071
8072 # If we have a pathname, and the date fields look right, assume we've
8073 # captured the group as well.
8074 if test -n "$cf_rest" ; then
8075 cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
8076 if test -z "$cf_test" ; then
8077 cf_cv_utmp_group=$cf_grp;
8078 fi
8079 fi
8080 break
8081 fi
8082 done
8083 test -n "$cf_cv_utmp_group" && break
8084 done
8085
8086 fi
8087 echo "$as_me:8087: result: $cf_cv_utmp_group" >&5
8088 echo "${ECHO_T}$cf_cv_utmp_group" >&6
8089 else
8090 { { echo "$as_me:8090: error: cannot find utmp group" >&5
8091 echo "$as_me: error: cannot find utmp group" >&2;}
8092 { (exit 1); exit 1; }; }
8093 fi
8094
8095 else
8096 cf_cv_utmp_group=$use_utmp_setgid
8097 fi
8098 if test "$cf_cv_posix_saved_ids" != yes ; then
8099 { { echo "$as_me:8099: error: Your system does not support POSIX saved-ids" >&5
8100 echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
8101 { (exit 1); exit 1; }; }
8102 fi
8103
8104 cat >>confdefs.h <<\EOF
8105 #define USE_UTMP_SETGID 1
8106 EOF
8107
8108 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
8109 fi
8110
8111 echo "$as_me:8111: checking if you want to link with utempter" >&5
8112 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
8113
8114 # Check whether --with-utempter or --without-utempter was given.
8115 if test "${with_utempter+set}" = set; then
8116 withval="$with_utempter"
8117 use_utempter=$withval
8118 else
8119 use_utempter=no
8120 fi;
8121 echo "$as_me:8121: result: $use_utempter" >&5
8122 echo "${ECHO_T}$use_utempter" >&6
8123
8124 if test "$use_utempter" = yes ; then
8125
8126 echo "$as_me:8126: checking if we can link with utempter library" >&5
8127 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
8128 if test "${cf_cv_have_utempter+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131
8132 cf_save_LIBS="$LIBS"
8133
8134 cf_add_libs="$LIBS"
8135 # reverse order
8136 cf_add_0lib=
8137 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8138 # filter duplicates
8139 for cf_add_1lib in $cf_add_0lib; do
8140 for cf_add_2lib in $cf_add_libs; do
8141 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8142 cf_add_1lib=
8143 break
8144 fi
8145 done
8146 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8147 done
8148 LIBS="$cf_add_libs"
8149
8150 cat >"conftest.$ac_ext" <<_ACEOF
8151 #line 8151 "configure"
8152 #include "confdefs.h"
8153
8154 #include <utempter.h>
8155
8156 int
8157 main (void)
8158 {
8159
8160 addToUtmp("/dev/tty", 0, 1);
8161 removeFromUtmp();
8162
8163 ;
8164 return 0;
8165 }
8166 _ACEOF
8167 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8168 if { (eval echo "$as_me:8168: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>&5
8170 ac_status=$?
8171 echo "$as_me:8171: \$? = $ac_status" >&5
8172 (exit "$ac_status"); } &&
8173 { ac_try='test -s "conftest$ac_exeext"'
8174 { (eval echo "$as_me:8174: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:8177: \$? = $ac_status" >&5
8178 (exit "$ac_status"); }; }; then
8179
8180 cf_cv_have_utempter=yes
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 cat "conftest.$ac_ext" >&5
8184
8185 cf_cv_have_utempter=no
8186 fi
8187 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8188 LIBS="$cf_save_LIBS"
8189
8190 fi
8191 echo "$as_me:8191: result: $cf_cv_have_utempter" >&5
8192 echo "${ECHO_T}$cf_cv_have_utempter" >&6
8193 if test "$cf_cv_have_utempter" = yes ; then
8194
8195 cat >>confdefs.h <<\EOF
8196 #define USE_UTEMPTER 1
8197 EOF
8198
8199 cf_add_libs="$LIBS"
8200 # reverse order
8201 cf_add_0lib=
8202 for cf_add_1lib in -lutempter; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8203 # filter duplicates
8204 for cf_add_1lib in $cf_add_0lib; do
8205 for cf_add_2lib in $cf_add_libs; do
8206 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8207 cf_add_1lib=
8208 break
8209 fi
8210 done
8211 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8212 done
8213 LIBS="$cf_add_libs"
8214
8215 fi
8216
8217 test "$cf_cv_have_utempter" != yes && use_utempter=no
8218 else
8219 use_utempter=no
8220 fi
8221
8222 # Some configurations permit (or require) either setuid or setgid mode.
8223 # Let the user decide.
8224 if test "$use_utempter" = yes ; then
8225 if test "${enable_setuid+set}" != set ; then
8226 disable_setuid=yes
8227 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
8228
8229 echo "${as_me:-configure}:8229: testing No --disable-setuid option given, force to yes ..." 1>&5
8230
8231 fi
8232 fi
8233
8234 ### checks for external data
8235
8236 echo "$as_me:8236: checking if external errno is declared" >&5
8237 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
8238 if test "${cf_cv_dcl_errno+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241
8242 cat >"conftest.$ac_ext" <<_ACEOF
8243 #line 8243 "configure"
8244 #include "confdefs.h"
8245
8246 #ifdef HAVE_STDLIB_H
8247 #include <stdlib.h>
8248 #endif
8249 #include <stdio.h>
8250 #include <sys/types.h>
8251 #include <errno.h>
8252 int
8253 main (void)
8254 {
8255 int x = (int) errno; (void)x
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 rm -f "conftest.$ac_objext"
8261 if { (eval echo "$as_me:8261: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>&5
8263 ac_status=$?
8264 echo "$as_me:8264: \$? = $ac_status" >&5
8265 (exit "$ac_status"); } &&
8266 { ac_try='test -s "conftest.$ac_objext"'
8267 { (eval echo "$as_me:8267: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:8270: \$? = $ac_status" >&5
8271 (exit "$ac_status"); }; }; then
8272 cf_cv_dcl_errno=yes
8273 else
8274 echo "$as_me: failed program was:" >&5
8275 cat "conftest.$ac_ext" >&5
8276 cf_cv_dcl_errno=no
8277 fi
8278 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8279
8280 fi
8281 echo "$as_me:8281: result: $cf_cv_dcl_errno" >&5
8282 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
8283
8284 if test "$cf_cv_dcl_errno" = no ; then
8285
8286 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8287
8288 cat >>confdefs.h <<EOF
8289 #define $cf_result 1
8290 EOF
8291
8292 fi
8293
8294 # It's possible (for near-UNIX clones) that the data doesn't exist
8295
8296 echo "$as_me:8296: checking if external errno exists" >&5
8297 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
8298 if test "${cf_cv_have_errno+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301
8302 cat >"conftest.$ac_ext" <<_ACEOF
8303 #line 8303 "configure"
8304 #include "confdefs.h"
8305
8306 #undef errno
8307 extern int errno;
8308
8309 int
8310 main (void)
8311 {
8312 errno = 2
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8318 if { (eval echo "$as_me:8318: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>&5
8320 ac_status=$?
8321 echo "$as_me:8321: \$? = $ac_status" >&5
8322 (exit "$ac_status"); } &&
8323 { ac_try='test -s "conftest$ac_exeext"'
8324 { (eval echo "$as_me:8324: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:8327: \$? = $ac_status" >&5
8328 (exit "$ac_status"); }; }; then
8329 cf_cv_have_errno=yes
8330 else
8331 echo "$as_me: failed program was:" >&5
8332 cat "conftest.$ac_ext" >&5
8333 cf_cv_have_errno=no
8334 fi
8335 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8336
8337 fi
8338 echo "$as_me:8338: result: $cf_cv_have_errno" >&5
8339 echo "${ECHO_T}$cf_cv_have_errno" >&6
8340
8341 if test "$cf_cv_have_errno" = yes ; then
8342
8343 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8344
8345 cat >>confdefs.h <<EOF
8346 #define $cf_result 1
8347 EOF
8348
8349 fi
8350
8351 echo "$as_me:8351: checking for explicit tty group name" >&5
8352 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
8353
8354 # Check whether --with-tty-group or --without-tty-group was given.
8355 if test "${with_tty_group+set}" = set; then
8356 withval="$with_tty_group"
8357 cf_tty_group=$withval
8358 else
8359 cf_tty_group=auto...
8360 fi;
8361 test -z "$cf_tty_group" && cf_tty_group=auto...
8362 test "$cf_tty_group" = yes && cf_tty_group=auto...
8363 echo "$as_me:8363: result: $cf_tty_group" >&5
8364 echo "${ECHO_T}$cf_tty_group" >&6
8365
8366 if test "$cf_tty_group" = "auto..." ; then
8367 echo "$as_me:8367: checking for tty group name" >&5
8368 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
8369 if test "${cf_cv_tty_group_name+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372
8373 # If we are configuring as root, it is hard to get a clue about the tty group.
8374 # But we'll guess based on how our connection is set up - assuming it is done
8375 # properly.
8376
8377 cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`"
8378 # )vi
8379 if test "$cf_uid" != 0 ; then
8380 cf_cv_tty_group_name=
8381 cf_tty_name="`tty`"
8382 test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
8383 test -z "$cf_tty_name" && cf_tty_name=/dev/tty
8384 if test -c "$cf_tty_name"
8385 then
8386 cf_option="-lL"
8387
8388 # Expect listing to have fields like this:
8389 #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname
8390 ls $cf_option "$cf_tty_name" >conftest.out
8391 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
8392 if test -z "$cf_rest" ; then
8393 cf_option="${cf_option}g"
8394 ls "$cf_option" "$cf_tty_name" >conftest.out
8395 read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
8396 fi
8397 rm -f conftest.out
8398 cf_cv_tty_group_name=$cf_grp
8399 fi
8400 fi
8401
8402 # If we cannot deduce the tty group, fall back on hardcoded cases
8403
8404 if test -z "$cf_cv_tty_group_name"
8405 then
8406 case $host_os in
8407 (osf*)
8408 cf_cv_tty_group_name="terminal"
8409 ;;
8410 (*)
8411 cf_cv_tty_group_name="unknown"
8412 if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
8413 cf_cv_tty_group_name="tty"
8414 fi
8415 ;;
8416 esac
8417 fi
8418
8419 fi
8420 echo "$as_me:8420: result: $cf_cv_tty_group_name" >&5
8421 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
8422 cf_tty_group="$cf_cv_tty_group_name"
8423 else
8424 # if configure option, always do this
8425
8426 cat >>confdefs.h <<\EOF
8427 #define USE_TTY_GROUP 1
8428 EOF
8429
8430 fi
8431
8432 cat >>confdefs.h <<EOF
8433 #define TTY_GROUP_NAME "$cf_tty_group"
8434 EOF
8435
8436 # This is only a double-check that the group-name we obtained above really
8437 # does apply to the device. We cannot perform this test if we are in batch
8438 # mode, or if we are cross-compiling.
8439
8440 echo "$as_me:8440: checking if we may use the $cf_tty_group group" >&5
8441 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
8442 if test "${cf_cv_tty_group+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445
8446 cf_tty_name="`tty`"
8447 if test "$cf_tty_name" != "not a tty"
8448 then
8449 if test "$cross_compiling" = yes; then
8450 cf_cv_tty_group=unknown
8451 else
8452 cat >"conftest.$ac_ext" <<_ACEOF
8453 #line 8453 "configure"
8454 #include "confdefs.h"
8455
8456 #include <unistd.h>
8457 #include <sys/types.h>
8458 #include <sys/stat.h>
8459 #include <grp.h>
8460 int main(void)
8461 {
8462 struct stat sb;
8463 struct group *ttygrp;
8464 int fd;
8465 char *name;
8466
8467 for (fd = 0; fd < 3; ++fd) {
8468 if ((name = ttyname(fd)) != 0)
8469 break;
8470 }
8471 if (name == 0)
8472 name = "/dev/tty";
8473
8474 ttygrp = getgrnam(TTY_GROUP_NAME);
8475 endgrent();
8476
8477 if (ttygrp != 0
8478 && name != 0
8479 && stat(name, &sb) == 0
8480 && sb.st_gid != getgid()
8481 && sb.st_gid == ttygrp->gr_gid) {
8482 ${cf_cv_main_return:-return} (0);
8483 }
8484 ${cf_cv_main_return:-return} (1);
8485 }
8486
8487 _ACEOF
8488 rm -f "conftest$ac_exeext"
8489 if { (eval echo "$as_me:8489: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>&5
8491 ac_status=$?
8492 echo "$as_me:8492: \$? = $ac_status" >&5
8493 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8494 { (eval echo "$as_me:8494: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:8497: \$? = $ac_status" >&5
8498 (exit "$ac_status"); }; }; then
8499 cf_cv_tty_group=yes
8500 else
8501 echo "$as_me: program exited with status $ac_status" >&5
8502 echo "$as_me: failed program was:" >&5
8503 cat "conftest.$ac_ext" >&5
8504 cf_cv_tty_group=no
8505 fi
8506 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
8507 fi
8508 elif test "$cross_compiling" = yes; then
8509 cf_cv_tty_group=unknown
8510 else
8511 cf_cv_tty_group=yes
8512 fi
8513
8514 fi
8515 echo "$as_me:8515: result: $cf_cv_tty_group" >&5
8516 echo "${ECHO_T}$cf_cv_tty_group" >&6
8517
8518 if test $cf_cv_tty_group = no ; then
8519 { echo "$as_me:8519: WARNING: Cannot use $cf_tty_group group" >&5
8520 echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
8521 else
8522 cat >>confdefs.h <<\EOF
8523 #define USE_TTY_GROUP 1
8524 EOF
8525
8526 fi
8527
8528 ### checks for system services and user specified options
8529
8530 echo "$as_me:8530: checking for X" >&5
8531 echo $ECHO_N "checking for X... $ECHO_C" >&6
8532
8533 # Check whether --with-x or --without-x was given.
8534 if test "${with_x+set}" = set; then
8535 withval="$with_x"
8536
8537 fi;
8538 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8539 if test "x$with_x" = xno; then
8540 # The user explicitly disabled X.
8541 have_x=disabled
8542 else
8543 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8544 # Both variables are already set.
8545 have_x=yes
8546 else
8547 if test "${ac_cv_have_x+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550 # One or both of the vars are not set, and there is no cached value.
8551 ac_x_includes=no ac_x_libraries=no
8552 rm -fr conftest.dir
8553 if mkdir conftest.dir; then
8554 cd conftest.dir
8555 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8556 cat >Imakefile <<'EOF'
8557 acfindx:
8558 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8559 EOF
8560 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8561 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8562 eval "`${MAKE-make} acfindx 2>/dev/null | grep -v make`"
8563 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8564 for ac_extension in a so sl dylib dll; do
8565 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8566 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8567 ac_im_usrlibdir=$ac_im_libdir; break
8568 fi
8569 done
8570 # Screen out bogus values from the imake configuration. They are
8571 # bogus both because they are the default anyway, and because
8572 # using them would break gcc on systems where it needs fixed includes.
8573 case $ac_im_incroot in
8574 /usr/include) ;;
8575 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8576 esac
8577 case $ac_im_usrlibdir in
8578 /usr/lib | /lib) ;;
8579 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8580 esac
8581 fi
8582 cd ..
8583 rm -fr conftest.dir
8584 fi
8585
8586 # Standard set of common directories for X headers.
8587 # Check X11 before X11Rn because it is often a symlink to the current release.
8588 ac_x_header_dirs='
8589 /usr/X11/include
8590 /usr/X11R7/include
8591 /usr/X11R6/include
8592 /usr/X11R5/include
8593 /usr/X11R4/include
8594
8595 /opt/local/include
8596 /opt/X11/include
8597
8598 /usr/include/X11
8599 /usr/include/X11R7
8600 /usr/include/X11R6
8601 /usr/include/X11R5
8602 /usr/include/X11R4
8603
8604 /usr/local/X11/include
8605 /usr/local/X11R7/include
8606 /usr/local/X11R6/include
8607 /usr/local/X11R5/include
8608 /usr/local/X11R4/include
8609
8610 /usr/local/include/X11
8611 /usr/local/include/X11R7
8612 /usr/local/include/X11R6
8613 /usr/local/include/X11R5
8614 /usr/local/include/X11R4
8615
8616 /usr/X386/include
8617 /usr/x386/include
8618 /usr/XFree86/include/X11
8619
8620 /usr/include
8621 /usr/local/include
8622 /usr/unsupported/include
8623 /usr/athena/include
8624 /usr/local/x11r5/include
8625 /usr/lpp/Xamples/include
8626
8627 /usr/openwin/include
8628 /usr/openwin/share/include'
8629
8630 if test "$ac_x_includes" = no; then
8631 # Guess where to find include files, by looking for Intrinsic.h.
8632 # First, try using that file with no special directory specified.
8633 cat >"conftest.$ac_ext" <<_ACEOF
8634 #line 8634 "configure"
8635 #include "confdefs.h"
8636 #include <X11/Intrinsic.h>
8637 _ACEOF
8638 if { (eval echo "$as_me:8638: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8639 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8640 ac_status=$?
8641 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:8644: \$? = $ac_status" >&5
8645 (exit "$ac_status"); } >/dev/null; then
8646 if test -s conftest.err; then
8647 ac_cpp_err=$ac_c_preproc_warn_flag
8648 else
8649 ac_cpp_err=
8650 fi
8651 else
8652 ac_cpp_err=yes
8653 fi
8654 if test -z "$ac_cpp_err"; then
8655 # We can compile using X headers with no special include directory.
8656 ac_x_includes=
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 cat "conftest.$ac_ext" >&5
8660 for ac_dir in $ac_x_header_dirs; do
8661 if test -r "$ac_dir/X11/Intrinsic.h"; then
8662 ac_x_includes=$ac_dir
8663 break
8664 fi
8665 done
8666 fi
8667 rm -f conftest.err "conftest.$ac_ext"
8668 fi # $ac_x_includes = no
8669
8670 if test "$ac_x_libraries" = no; then
8671 # Check for the libraries.
8672 # See if we find them without any special options.
8673 # Don't add to $LIBS permanently.
8674 ac_save_LIBS=$LIBS
8675 LIBS="-lXt $LIBS"
8676 cat >"conftest.$ac_ext" <<_ACEOF
8677 #line 8677 "configure"
8678 #include "confdefs.h"
8679 #include <X11/Intrinsic.h>
8680 int
8681 main (void)
8682 {
8683 XtMalloc (0)
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8689 if { (eval echo "$as_me:8689: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>&5
8691 ac_status=$?
8692 echo "$as_me:8692: \$? = $ac_status" >&5
8693 (exit "$ac_status"); } &&
8694 { ac_try='test -s "conftest$ac_exeext"'
8695 { (eval echo "$as_me:8695: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:8698: \$? = $ac_status" >&5
8699 (exit "$ac_status"); }; }; then
8700 LIBS=$ac_save_LIBS
8701 # We can link X programs with no special library path.
8702 ac_x_libraries=
8703 else
8704 echo "$as_me: failed program was:" >&5
8705 cat "conftest.$ac_ext" >&5
8706 LIBS=$ac_save_LIBS
8707 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8708 do
8709 # Don't even attempt the hair of trying to link an X program!
8710 for ac_extension in a so sl dylib dll; do
8711 if test -r "$ac_dir/libXt.$ac_extension"; then
8712 ac_x_libraries=$ac_dir
8713 break 2
8714 fi
8715 done
8716 done
8717 fi
8718 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8719 fi # $ac_x_libraries = no
8720
8721 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8722 # Didn't find X anywhere. Cache the known absence of X.
8723 ac_cv_have_x="have_x=no"
8724 else
8725 # Record where we found X for the cache.
8726 ac_cv_have_x="have_x=yes \
8727 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8728 fi
8729 fi
8730
8731 fi
8732 eval "$ac_cv_have_x"
8733 fi # $with_x != no
8734
8735 if test "$have_x" != yes; then
8736 echo "$as_me:8736: result: $have_x" >&5
8737 echo "${ECHO_T}$have_x" >&6
8738 no_x=yes
8739 else
8740 # If each of the values was on the command line, it overrides each guess.
8741 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8742 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8743 # Update the cache value to reflect the command line values.
8744 ac_cv_have_x="have_x=yes \
8745 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8746 echo "$as_me:8746: result: libraries $x_libraries, headers $x_includes" >&5
8747 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8748 fi
8749
8750 if test "$no_x" = yes; then
8751 # Not all programs may use this symbol, but it does not hurt to define it.
8752
8753 cat >>confdefs.h <<\EOF
8754 #define X_DISPLAY_MISSING 1
8755 EOF
8756
8757 X_CFLAGS=
8758 X_PRE_LIBS=
8759 X_LIBS=
8760 X_EXTRA_LIBS=
8761 else
8762 if test -n "$x_includes"; then
8763 X_CFLAGS="$X_CFLAGS -I$x_includes"
8764 fi
8765
8766 # It would also be nice to do this for all -L options, not just this one.
8767 if test -n "$x_libraries"; then
8768 X_LIBS="$X_LIBS -L$x_libraries"
8769 # For Solaris; some versions of Sun CC require a space after -R and
8770 # others require no space. Words are not sufficient . . . .
8771 case `(uname -sr) 2>/dev/null` in
8772 "SunOS 5"*)
8773 echo "$as_me:8773: checking whether -R must be followed by a space" >&5
8774 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8775 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8776 cat >"conftest.$ac_ext" <<_ACEOF
8777 #line 8777 "configure"
8778 #include "confdefs.h"
8779
8780 int
8781 main (void)
8782 {
8783
8784 ;
8785 return 0;
8786 }
8787 _ACEOF
8788 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8789 if { (eval echo "$as_me:8789: \"$ac_link\"") >&5
8790 (eval $ac_link) 2>&5
8791 ac_status=$?
8792 echo "$as_me:8792: \$? = $ac_status" >&5
8793 (exit "$ac_status"); } &&
8794 { ac_try='test -s "conftest$ac_exeext"'
8795 { (eval echo "$as_me:8795: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:8798: \$? = $ac_status" >&5
8799 (exit "$ac_status"); }; }; then
8800 ac_R_nospace=yes
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 cat "conftest.$ac_ext" >&5
8804 ac_R_nospace=no
8805 fi
8806 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8807 if test $ac_R_nospace = yes; then
8808 echo "$as_me:8808: result: no" >&5
8809 echo "${ECHO_T}no" >&6
8810 X_LIBS="$X_LIBS -R$x_libraries"
8811 else
8812 LIBS="$ac_xsave_LIBS -R $x_libraries"
8813 cat >"conftest.$ac_ext" <<_ACEOF
8814 #line 8814 "configure"
8815 #include "confdefs.h"
8816
8817 int
8818 main (void)
8819 {
8820
8821 ;
8822 return 0;
8823 }
8824 _ACEOF
8825 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8826 if { (eval echo "$as_me:8826: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>&5
8828 ac_status=$?
8829 echo "$as_me:8829: \$? = $ac_status" >&5
8830 (exit "$ac_status"); } &&
8831 { ac_try='test -s "conftest$ac_exeext"'
8832 { (eval echo "$as_me:8832: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:8835: \$? = $ac_status" >&5
8836 (exit "$ac_status"); }; }; then
8837 ac_R_space=yes
8838 else
8839 echo "$as_me: failed program was:" >&5
8840 cat "conftest.$ac_ext" >&5
8841 ac_R_space=no
8842 fi
8843 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8844 if test $ac_R_space = yes; then
8845 echo "$as_me:8845: result: yes" >&5
8846 echo "${ECHO_T}yes" >&6
8847 X_LIBS="$X_LIBS -R $x_libraries"
8848 else
8849 echo "$as_me:8849: result: neither works" >&5
8850 echo "${ECHO_T}neither works" >&6
8851 fi
8852 fi
8853 LIBS=$ac_xsave_LIBS
8854 esac
8855 fi
8856
8857 # Check for system-dependent libraries X programs must link with.
8858 # Do this before checking for the system-independent R6 libraries
8859 # (-lICE), since we may need -lsocket or whatever for X linking.
8860
8861 if test "$ISC" = yes; then
8862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8863 else
8864 # Martyn Johnson says this is needed for Ultrix, if the X
8865 # libraries were built with DECnet support. And Karl Berry says
8866 # the Alpha needs dnet_stub (dnet does not exist).
8867 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8868 cat >"conftest.$ac_ext" <<_ACEOF
8869 #line 8869 "configure"
8870 #include "confdefs.h"
8871
8872 /* Override any gcc2 internal prototype to avoid an error. */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878 char XOpenDisplay ();
8879 int
8880 main (void)
8881 {
8882 XOpenDisplay ();
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8888 if { (eval echo "$as_me:8888: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>&5
8890 ac_status=$?
8891 echo "$as_me:8891: \$? = $ac_status" >&5
8892 (exit "$ac_status"); } &&
8893 { ac_try='test -s "conftest$ac_exeext"'
8894 { (eval echo "$as_me:8894: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:8897: \$? = $ac_status" >&5
8898 (exit "$ac_status"); }; }; then
8899 :
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 cat "conftest.$ac_ext" >&5
8903 echo "$as_me:8903: checking for dnet_ntoa in -ldnet" >&5
8904 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8905 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908 ac_check_lib_save_LIBS=$LIBS
8909 LIBS="-ldnet $LIBS"
8910 cat >"conftest.$ac_ext" <<_ACEOF
8911 #line 8911 "configure"
8912 #include "confdefs.h"
8913
8914 /* Override any gcc2 internal prototype to avoid an error. */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8920 char dnet_ntoa ();
8921 int
8922 main (void)
8923 {
8924 dnet_ntoa ();
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8930 if { (eval echo "$as_me:8930: \"$ac_link\"") >&5
8931 (eval $ac_link) 2>&5
8932 ac_status=$?
8933 echo "$as_me:8933: \$? = $ac_status" >&5
8934 (exit "$ac_status"); } &&
8935 { ac_try='test -s "conftest$ac_exeext"'
8936 { (eval echo "$as_me:8936: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:8939: \$? = $ac_status" >&5
8940 (exit "$ac_status"); }; }; then
8941 ac_cv_lib_dnet_dnet_ntoa=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 cat "conftest.$ac_ext" >&5
8945 ac_cv_lib_dnet_dnet_ntoa=no
8946 fi
8947 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8948 LIBS=$ac_check_lib_save_LIBS
8949 fi
8950 echo "$as_me:8950: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8951 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8952 if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
8953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8954 fi
8955
8956 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8957 echo "$as_me:8957: checking for dnet_ntoa in -ldnet_stub" >&5
8958 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8959 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 ac_check_lib_save_LIBS=$LIBS
8963 LIBS="-ldnet_stub $LIBS"
8964 cat >"conftest.$ac_ext" <<_ACEOF
8965 #line 8965 "configure"
8966 #include "confdefs.h"
8967
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973 builtin and then its argument prototype would still apply. */
8974 char dnet_ntoa ();
8975 int
8976 main (void)
8977 {
8978 dnet_ntoa ();
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8984 if { (eval echo "$as_me:8984: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>&5
8986 ac_status=$?
8987 echo "$as_me:8987: \$? = $ac_status" >&5
8988 (exit "$ac_status"); } &&
8989 { ac_try='test -s "conftest$ac_exeext"'
8990 { (eval echo "$as_me:8990: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:8993: \$? = $ac_status" >&5
8994 (exit "$ac_status"); }; }; then
8995 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 cat "conftest.$ac_ext" >&5
8999 ac_cv_lib_dnet_stub_dnet_ntoa=no
9000 fi
9001 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9002 LIBS=$ac_check_lib_save_LIBS
9003 fi
9004 echo "$as_me:9004: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9005 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9006 if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
9007 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9008 fi
9009
9010 fi
9011 fi
9012 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9013 LIBS="$ac_xsave_LIBS"
9014
9015 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9016 # to get the SysV transport functions.
9017 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9018 # needs -lnsl.
9019 # The nsl library prevents programs from opening the X display
9020 # on Irix 5.2, according to T.E. Dickey.
9021 # The functions gethostbyname, getservbyname, and inet_addr are
9022 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9023 echo "$as_me:9023: checking for gethostbyname" >&5
9024 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9025 if test "${ac_cv_func_gethostbyname+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 cat >"conftest.$ac_ext" <<_ACEOF
9029 #line 9029 "configure"
9030 #include "confdefs.h"
9031 #define gethostbyname autoconf_temporary
9032 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9033 #undef gethostbyname
9034
9035 #ifdef __cplusplus
9036 extern "C"
9037 #endif
9038
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041 char gethostbyname (void);
9042
9043 int
9044 main (void)
9045 {
9046
9047 /* The GNU C library defines stubs for functions which it implements
9048 to always fail with ENOSYS. Some functions are actually named
9049 something starting with __ and the normal name is an alias. */
9050 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9051 #error found stub for gethostbyname
9052 #endif
9053
9054 return gethostbyname ();
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9060 if { (eval echo "$as_me:9060: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9062 ac_status=$?
9063 echo "$as_me:9063: \$? = $ac_status" >&5
9064 (exit "$ac_status"); } &&
9065 { ac_try='test -s "conftest$ac_exeext"'
9066 { (eval echo "$as_me:9066: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:9069: \$? = $ac_status" >&5
9070 (exit "$ac_status"); }; }; then
9071 ac_cv_func_gethostbyname=yes
9072 else
9073 echo "$as_me: failed program was:" >&5
9074 cat "conftest.$ac_ext" >&5
9075 ac_cv_func_gethostbyname=no
9076 fi
9077 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9078 fi
9079 echo "$as_me:9079: result: $ac_cv_func_gethostbyname" >&5
9080 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9081
9082 if test $ac_cv_func_gethostbyname = no; then
9083 echo "$as_me:9083: checking for gethostbyname in -lnsl" >&5
9084 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9085 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 ac_check_lib_save_LIBS=$LIBS
9089 LIBS="-lnsl $LIBS"
9090 cat >"conftest.$ac_ext" <<_ACEOF
9091 #line 9091 "configure"
9092 #include "confdefs.h"
9093
9094 /* Override any gcc2 internal prototype to avoid an error. */
9095 #ifdef __cplusplus
9096 extern "C"
9097 #endif
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9100 char gethostbyname ();
9101 int
9102 main (void)
9103 {
9104 gethostbyname ();
9105 ;
9106 return 0;
9107 }
9108 _ACEOF
9109 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9110 if { (eval echo "$as_me:9110: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9112 ac_status=$?
9113 echo "$as_me:9113: \$? = $ac_status" >&5
9114 (exit "$ac_status"); } &&
9115 { ac_try='test -s "conftest$ac_exeext"'
9116 { (eval echo "$as_me:9116: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:9119: \$? = $ac_status" >&5
9120 (exit "$ac_status"); }; }; then
9121 ac_cv_lib_nsl_gethostbyname=yes
9122 else
9123 echo "$as_me: failed program was:" >&5
9124 cat "conftest.$ac_ext" >&5
9125 ac_cv_lib_nsl_gethostbyname=no
9126 fi
9127 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9128 LIBS=$ac_check_lib_save_LIBS
9129 fi
9130 echo "$as_me:9130: result: $ac_cv_lib_nsl_gethostbyname" >&5
9131 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9132 if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
9133 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9134 fi
9135
9136 if test $ac_cv_lib_nsl_gethostbyname = no; then
9137 echo "$as_me:9137: checking for gethostbyname in -lbsd" >&5
9138 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9139 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142 ac_check_lib_save_LIBS=$LIBS
9143 LIBS="-lbsd $LIBS"
9144 cat >"conftest.$ac_ext" <<_ACEOF
9145 #line 9145 "configure"
9146 #include "confdefs.h"
9147
9148 /* Override any gcc2 internal prototype to avoid an error. */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 /* We use char because int might match the return type of a gcc2
9153 builtin and then its argument prototype would still apply. */
9154 char gethostbyname ();
9155 int
9156 main (void)
9157 {
9158 gethostbyname ();
9159 ;
9160 return 0;
9161 }
9162 _ACEOF
9163 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9164 if { (eval echo "$as_me:9164: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>&5
9166 ac_status=$?
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 (exit "$ac_status"); } &&
9169 { ac_try='test -s "conftest$ac_exeext"'
9170 { (eval echo "$as_me:9170: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:9173: \$? = $ac_status" >&5
9174 (exit "$ac_status"); }; }; then
9175 ac_cv_lib_bsd_gethostbyname=yes
9176 else
9177 echo "$as_me: failed program was:" >&5
9178 cat "conftest.$ac_ext" >&5
9179 ac_cv_lib_bsd_gethostbyname=no
9180 fi
9181 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9182 LIBS=$ac_check_lib_save_LIBS
9183 fi
9184 echo "$as_me:9184: result: $ac_cv_lib_bsd_gethostbyname" >&5
9185 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9186 if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
9187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9188 fi
9189
9190 fi
9191 fi
9192
9193 # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
9194 # socket/setsockopt and other routines are undefined under SCO ODT
9195 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9196 # on later versions), says Simon Leinen: it contains gethostby*
9197 # variants that don't use the nameserver (or something). -lsocket
9198 # must be given before -lnsl if both are needed. We assume that
9199 # if connect needs -lnsl, so does gethostbyname.
9200 echo "$as_me:9200: checking for connect" >&5
9201 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9202 if test "${ac_cv_func_connect+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205 cat >"conftest.$ac_ext" <<_ACEOF
9206 #line 9206 "configure"
9207 #include "confdefs.h"
9208 #define connect autoconf_temporary
9209 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9210 #undef connect
9211
9212 #ifdef __cplusplus
9213 extern "C"
9214 #endif
9215
9216 /* We use char because int might match the return type of a gcc2
9217 builtin and then its argument prototype would still apply. */
9218 char connect (void);
9219
9220 int
9221 main (void)
9222 {
9223
9224 /* The GNU C library defines stubs for functions which it implements
9225 to always fail with ENOSYS. Some functions are actually named
9226 something starting with __ and the normal name is an alias. */
9227 #if defined (__stub_connect) || defined (__stub___connect)
9228 #error found stub for connect
9229 #endif
9230
9231 return connect ();
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9237 if { (eval echo "$as_me:9237: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9239 ac_status=$?
9240 echo "$as_me:9240: \$? = $ac_status" >&5
9241 (exit "$ac_status"); } &&
9242 { ac_try='test -s "conftest$ac_exeext"'
9243 { (eval echo "$as_me:9243: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:9246: \$? = $ac_status" >&5
9247 (exit "$ac_status"); }; }; then
9248 ac_cv_func_connect=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 cat "conftest.$ac_ext" >&5
9252 ac_cv_func_connect=no
9253 fi
9254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9255 fi
9256 echo "$as_me:9256: result: $ac_cv_func_connect" >&5
9257 echo "${ECHO_T}$ac_cv_func_connect" >&6
9258
9259 if test $ac_cv_func_connect = no; then
9260 echo "$as_me:9260: checking for connect in -lsocket" >&5
9261 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9262 if test "${ac_cv_lib_socket_connect+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265 ac_check_lib_save_LIBS=$LIBS
9266 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9267 cat >"conftest.$ac_ext" <<_ACEOF
9268 #line 9268 "configure"
9269 #include "confdefs.h"
9270
9271 /* Override any gcc2 internal prototype to avoid an error. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 #endif
9275 /* We use char because int might match the return type of a gcc2
9276 builtin and then its argument prototype would still apply. */
9277 char connect ();
9278 int
9279 main (void)
9280 {
9281 connect ();
9282 ;
9283 return 0;
9284 }
9285 _ACEOF
9286 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9287 if { (eval echo "$as_me:9287: \"$ac_link\"") >&5
9288 (eval $ac_link) 2>&5
9289 ac_status=$?
9290 echo "$as_me:9290: \$? = $ac_status" >&5
9291 (exit "$ac_status"); } &&
9292 { ac_try='test -s "conftest$ac_exeext"'
9293 { (eval echo "$as_me:9293: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:9296: \$? = $ac_status" >&5
9297 (exit "$ac_status"); }; }; then
9298 ac_cv_lib_socket_connect=yes
9299 else
9300 echo "$as_me: failed program was:" >&5
9301 cat "conftest.$ac_ext" >&5
9302 ac_cv_lib_socket_connect=no
9303 fi
9304 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9305 LIBS=$ac_check_lib_save_LIBS
9306 fi
9307 echo "$as_me:9307: result: $ac_cv_lib_socket_connect" >&5
9308 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9309 if test "$ac_cv_lib_socket_connect" = yes; then
9310 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9311 fi
9312
9313 fi
9314
9315 # Guillermo Gomez says -lposix is necessary on A/UX.
9316 echo "$as_me:9316: checking for remove" >&5
9317 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9318 if test "${ac_cv_func_remove+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 cat >"conftest.$ac_ext" <<_ACEOF
9322 #line 9322 "configure"
9323 #include "confdefs.h"
9324 #define remove autoconf_temporary
9325 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9326 #undef remove
9327
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331
9332 /* We use char because int might match the return type of a gcc2
9333 builtin and then its argument prototype would still apply. */
9334 char remove (void);
9335
9336 int
9337 main (void)
9338 {
9339
9340 /* The GNU C library defines stubs for functions which it implements
9341 to always fail with ENOSYS. Some functions are actually named
9342 something starting with __ and the normal name is an alias. */
9343 #if defined (__stub_remove) || defined (__stub___remove)
9344 #error found stub for remove
9345 #endif
9346
9347 return remove ();
9348 ;
9349 return 0;
9350 }
9351 _ACEOF
9352 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9353 if { (eval echo "$as_me:9353: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>&5
9355 ac_status=$?
9356 echo "$as_me:9356: \$? = $ac_status" >&5
9357 (exit "$ac_status"); } &&
9358 { ac_try='test -s "conftest$ac_exeext"'
9359 { (eval echo "$as_me:9359: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:9362: \$? = $ac_status" >&5
9363 (exit "$ac_status"); }; }; then
9364 ac_cv_func_remove=yes
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 cat "conftest.$ac_ext" >&5
9368 ac_cv_func_remove=no
9369 fi
9370 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9371 fi
9372 echo "$as_me:9372: result: $ac_cv_func_remove" >&5
9373 echo "${ECHO_T}$ac_cv_func_remove" >&6
9374
9375 if test $ac_cv_func_remove = no; then
9376 echo "$as_me:9376: checking for remove in -lposix" >&5
9377 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9378 if test "${ac_cv_lib_posix_remove+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 ac_check_lib_save_LIBS=$LIBS
9382 LIBS="-lposix $LIBS"
9383 cat >"conftest.$ac_ext" <<_ACEOF
9384 #line 9384 "configure"
9385 #include "confdefs.h"
9386
9387 /* Override any gcc2 internal prototype to avoid an error. */
9388 #ifdef __cplusplus
9389 extern "C"
9390 #endif
9391 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393 char remove ();
9394 int
9395 main (void)
9396 {
9397 remove ();
9398 ;
9399 return 0;
9400 }
9401 _ACEOF
9402 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9403 if { (eval echo "$as_me:9403: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9405 ac_status=$?
9406 echo "$as_me:9406: \$? = $ac_status" >&5
9407 (exit "$ac_status"); } &&
9408 { ac_try='test -s "conftest$ac_exeext"'
9409 { (eval echo "$as_me:9409: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:9412: \$? = $ac_status" >&5
9413 (exit "$ac_status"); }; }; then
9414 ac_cv_lib_posix_remove=yes
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 cat "conftest.$ac_ext" >&5
9418 ac_cv_lib_posix_remove=no
9419 fi
9420 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9421 LIBS=$ac_check_lib_save_LIBS
9422 fi
9423 echo "$as_me:9423: result: $ac_cv_lib_posix_remove" >&5
9424 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9425 if test "$ac_cv_lib_posix_remove" = yes; then
9426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9427 fi
9428
9429 fi
9430
9431 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9432 echo "$as_me:9432: checking for shmat" >&5
9433 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9434 if test "${ac_cv_func_shmat+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437 cat >"conftest.$ac_ext" <<_ACEOF
9438 #line 9438 "configure"
9439 #include "confdefs.h"
9440 #define shmat autoconf_temporary
9441 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9442 #undef shmat
9443
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447
9448 /* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9450 char shmat (void);
9451
9452 int
9453 main (void)
9454 {
9455
9456 /* The GNU C library defines stubs for functions which it implements
9457 to always fail with ENOSYS. Some functions are actually named
9458 something starting with __ and the normal name is an alias. */
9459 #if defined (__stub_shmat) || defined (__stub___shmat)
9460 #error found stub for shmat
9461 #endif
9462
9463 return shmat ();
9464 ;
9465 return 0;
9466 }
9467 _ACEOF
9468 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9469 if { (eval echo "$as_me:9469: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>&5
9471 ac_status=$?
9472 echo "$as_me:9472: \$? = $ac_status" >&5
9473 (exit "$ac_status"); } &&
9474 { ac_try='test -s "conftest$ac_exeext"'
9475 { (eval echo "$as_me:9475: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:9478: \$? = $ac_status" >&5
9479 (exit "$ac_status"); }; }; then
9480 ac_cv_func_shmat=yes
9481 else
9482 echo "$as_me: failed program was:" >&5
9483 cat "conftest.$ac_ext" >&5
9484 ac_cv_func_shmat=no
9485 fi
9486 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9487 fi
9488 echo "$as_me:9488: result: $ac_cv_func_shmat" >&5
9489 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9490
9491 if test $ac_cv_func_shmat = no; then
9492 echo "$as_me:9492: checking for shmat in -lipc" >&5
9493 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9494 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 ac_check_lib_save_LIBS=$LIBS
9498 LIBS="-lipc $LIBS"
9499 cat >"conftest.$ac_ext" <<_ACEOF
9500 #line 9500 "configure"
9501 #include "confdefs.h"
9502
9503 /* Override any gcc2 internal prototype to avoid an error. */
9504 #ifdef __cplusplus
9505 extern "C"
9506 #endif
9507 /* We use char because int might match the return type of a gcc2
9508 builtin and then its argument prototype would still apply. */
9509 char shmat ();
9510 int
9511 main (void)
9512 {
9513 shmat ();
9514 ;
9515 return 0;
9516 }
9517 _ACEOF
9518 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9519 if { (eval echo "$as_me:9519: \"$ac_link\"") >&5
9520 (eval $ac_link) 2>&5
9521 ac_status=$?
9522 echo "$as_me:9522: \$? = $ac_status" >&5
9523 (exit "$ac_status"); } &&
9524 { ac_try='test -s "conftest$ac_exeext"'
9525 { (eval echo "$as_me:9525: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:9528: \$? = $ac_status" >&5
9529 (exit "$ac_status"); }; }; then
9530 ac_cv_lib_ipc_shmat=yes
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 cat "conftest.$ac_ext" >&5
9534 ac_cv_lib_ipc_shmat=no
9535 fi
9536 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9537 LIBS=$ac_check_lib_save_LIBS
9538 fi
9539 echo "$as_me:9539: result: $ac_cv_lib_ipc_shmat" >&5
9540 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9541 if test "$ac_cv_lib_ipc_shmat" = yes; then
9542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9543 fi
9544
9545 fi
9546 fi
9547
9548 # Check for libraries that X11R6 Xt/Xaw programs need.
9549 ac_save_LDFLAGS=$LDFLAGS
9550 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9551 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9552 # check for ICE first), but we must link in the order -lSM -lICE or
9553 # we get undefined symbols. So assume we have SM if we have ICE.
9554 # These have to be linked with before -lX11, unlike the other
9555 # libraries we check for below, so use a different variable.
9556 # John Interrante, Karl Berry
9557 echo "$as_me:9557: checking for IceConnectionNumber in -lICE" >&5
9558 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9559 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 ac_check_lib_save_LIBS=$LIBS
9563 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9564 cat >"conftest.$ac_ext" <<_ACEOF
9565 #line 9565 "configure"
9566 #include "confdefs.h"
9567
9568 /* Override any gcc2 internal prototype to avoid an error. */
9569 #ifdef __cplusplus
9570 extern "C"
9571 #endif
9572 /* We use char because int might match the return type of a gcc2
9573 builtin and then its argument prototype would still apply. */
9574 char IceConnectionNumber ();
9575 int
9576 main (void)
9577 {
9578 IceConnectionNumber ();
9579 ;
9580 return 0;
9581 }
9582 _ACEOF
9583 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9584 if { (eval echo "$as_me:9584: \"$ac_link\"") >&5
9585 (eval $ac_link) 2>&5
9586 ac_status=$?
9587 echo "$as_me:9587: \$? = $ac_status" >&5
9588 (exit "$ac_status"); } &&
9589 { ac_try='test -s "conftest$ac_exeext"'
9590 { (eval echo "$as_me:9590: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:9593: \$? = $ac_status" >&5
9594 (exit "$ac_status"); }; }; then
9595 ac_cv_lib_ICE_IceConnectionNumber=yes
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 cat "conftest.$ac_ext" >&5
9599 ac_cv_lib_ICE_IceConnectionNumber=no
9600 fi
9601 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9602 LIBS=$ac_check_lib_save_LIBS
9603 fi
9604 echo "$as_me:9604: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9605 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9606 if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
9607 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9608 fi
9609
9610 LDFLAGS=$ac_save_LDFLAGS
9611
9612 fi
9613
9614 echo "$as_me:9614: checking for sys/wait.h that is POSIX.1 compatible" >&5
9615 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9616 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 cat >"conftest.$ac_ext" <<_ACEOF
9620 #line 9620 "configure"
9621 #include "confdefs.h"
9622 #include <sys/types.h>
9623 #include <sys/wait.h>
9624 #ifndef WEXITSTATUS
9625 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9626 #endif
9627 #ifndef WIFEXITED
9628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9629 #endif
9630
9631 int
9632 main (void)
9633 {
9634 int s;
9635 wait (&s);
9636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9637 ;
9638 return 0;
9639 }
9640 _ACEOF
9641 rm -f "conftest.$ac_objext"
9642 if { (eval echo "$as_me:9642: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>&5
9644 ac_status=$?
9645 echo "$as_me:9645: \$? = $ac_status" >&5
9646 (exit "$ac_status"); } &&
9647 { ac_try='test -s "conftest.$ac_objext"'
9648 { (eval echo "$as_me:9648: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:9651: \$? = $ac_status" >&5
9652 (exit "$ac_status"); }; }; then
9653 ac_cv_header_sys_wait_h=yes
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 cat "conftest.$ac_ext" >&5
9657 ac_cv_header_sys_wait_h=no
9658 fi
9659 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9660 fi
9661 echo "$as_me:9661: result: $ac_cv_header_sys_wait_h" >&5
9662 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9663 if test $ac_cv_header_sys_wait_h = yes; then
9664
9665 cat >>confdefs.h <<\EOF
9666 #define HAVE_SYS_WAIT_H 1
9667 EOF
9668
9669 fi
9670
9671 echo "$as_me:9671: checking for POSIX wait functions" >&5
9672 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
9673 if test "${cf_cv_posix_wait+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676
9677 cat >"conftest.$ac_ext" <<_ACEOF
9678 #line 9678 "configure"
9679 #include "confdefs.h"
9680
9681 #include <stdlib.h>
9682 #include <stdio.h>
9683 #include <sys/types.h>
9684 #ifdef HAVE_SYS_WAIT_H
9685 #include <sys/wait.h>
9686 #endif
9687
9688 int
9689 main (void)
9690 {
9691
9692 int stat_loc;
9693 pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
9694 pid_t pid2 = wait(&stat_loc);
9695 (void)pid;
9696 (void)pid2;
9697
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9703 if { (eval echo "$as_me:9703: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>&5
9705 ac_status=$?
9706 echo "$as_me:9706: \$? = $ac_status" >&5
9707 (exit "$ac_status"); } &&
9708 { ac_try='test -s "conftest$ac_exeext"'
9709 { (eval echo "$as_me:9709: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:9712: \$? = $ac_status" >&5
9713 (exit "$ac_status"); }; }; then
9714 cf_cv_posix_wait=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 cat "conftest.$ac_ext" >&5
9718 cf_cv_posix_wait=no
9719 fi
9720 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9721
9722 fi
9723 echo "$as_me:9723: result: $cf_cv_posix_wait" >&5
9724 echo "${ECHO_T}$cf_cv_posix_wait" >&6
9725 test "$cf_cv_posix_wait" = yes &&
9726 cat >>confdefs.h <<\EOF
9727 #define USE_POSIX_WAIT 1
9728 EOF
9729
9730 echo "$as_me:9730: checking if external sys_nerr is declared" >&5
9731 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
9732 if test "${cf_cv_dcl_sys_nerr+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735
9736 cat >"conftest.$ac_ext" <<_ACEOF
9737 #line 9737 "configure"
9738 #include "confdefs.h"
9739
9740 #ifdef HAVE_STDLIB_H
9741 #include <stdlib.h>
9742 #endif
9743 #include <stdio.h>
9744 #include <sys/types.h>
9745 #include <errno.h>
9746 int
9747 main (void)
9748 {
9749 int x = (int) sys_nerr; (void)x
9750 ;
9751 return 0;
9752 }
9753 _ACEOF
9754 rm -f "conftest.$ac_objext"
9755 if { (eval echo "$as_me:9755: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>&5
9757 ac_status=$?
9758 echo "$as_me:9758: \$? = $ac_status" >&5
9759 (exit "$ac_status"); } &&
9760 { ac_try='test -s "conftest.$ac_objext"'
9761 { (eval echo "$as_me:9761: \"$ac_try\"") >&5
9762 (eval $ac_try) 2>&5
9763 ac_status=$?
9764 echo "$as_me:9764: \$? = $ac_status" >&5
9765 (exit "$ac_status"); }; }; then
9766 cf_cv_dcl_sys_nerr=yes
9767 else
9768 echo "$as_me: failed program was:" >&5
9769 cat "conftest.$ac_ext" >&5
9770 cf_cv_dcl_sys_nerr=no
9771 fi
9772 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9773
9774 fi
9775 echo "$as_me:9775: result: $cf_cv_dcl_sys_nerr" >&5
9776 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
9777
9778 if test "$cf_cv_dcl_sys_nerr" = no ; then
9779
9780 cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9781
9782 cat >>confdefs.h <<EOF
9783 #define $cf_result 1
9784 EOF
9785
9786 fi
9787
9788 # It's possible (for near-UNIX clones) that the data doesn't exist
9789
9790 echo "$as_me:9790: checking if external sys_nerr exists" >&5
9791 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
9792 if test "${cf_cv_have_sys_nerr+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795
9796 cat >"conftest.$ac_ext" <<_ACEOF
9797 #line 9797 "configure"
9798 #include "confdefs.h"
9799
9800 #undef sys_nerr
9801 extern int sys_nerr;
9802
9803 int
9804 main (void)
9805 {
9806 sys_nerr = 2
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9812 if { (eval echo "$as_me:9812: \"$ac_link\"") >&5
9813 (eval $ac_link) 2>&5
9814 ac_status=$?
9815 echo "$as_me:9815: \$? = $ac_status" >&5
9816 (exit "$ac_status"); } &&
9817 { ac_try='test -s "conftest$ac_exeext"'
9818 { (eval echo "$as_me:9818: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:9821: \$? = $ac_status" >&5
9822 (exit "$ac_status"); }; }; then
9823 cf_cv_have_sys_nerr=yes
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 cat "conftest.$ac_ext" >&5
9827 cf_cv_have_sys_nerr=no
9828 fi
9829 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9830
9831 fi
9832 echo "$as_me:9832: result: $cf_cv_have_sys_nerr" >&5
9833 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
9834
9835 if test "$cf_cv_have_sys_nerr" = yes ; then
9836
9837 cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9838
9839 cat >>confdefs.h <<EOF
9840 #define $cf_result 1
9841 EOF
9842
9843 fi
9844
9845 echo "$as_me:9845: checking if external sys_errlist is declared" >&5
9846 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
9847 if test "${cf_cv_dcl_sys_errlist+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850
9851 cat >"conftest.$ac_ext" <<_ACEOF
9852 #line 9852 "configure"
9853 #include "confdefs.h"
9854
9855 #ifdef HAVE_STDLIB_H
9856 #include <stdlib.h>
9857 #endif
9858 #include <stdio.h>
9859 #include <sys/types.h>
9860 #include <errno.h>
9861 int
9862 main (void)
9863 {
9864 int x = (int) sys_errlist; (void)x
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 rm -f "conftest.$ac_objext"
9870 if { (eval echo "$as_me:9870: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9872 ac_status=$?
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 (exit "$ac_status"); } &&
9875 { ac_try='test -s "conftest.$ac_objext"'
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 cf_cv_dcl_sys_errlist=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 cat "conftest.$ac_ext" >&5
9885 cf_cv_dcl_sys_errlist=no
9886 fi
9887 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9888
9889 fi
9890 echo "$as_me:9890: result: $cf_cv_dcl_sys_errlist" >&5
9891 echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
9892
9893 if test "$cf_cv_dcl_sys_errlist" = no ; then
9894
9895 cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9896
9897 cat >>confdefs.h <<EOF
9898 #define $cf_result 1
9899 EOF
9900
9901 fi
9902
9903 # It's possible (for near-UNIX clones) that the data doesn't exist
9904
9905 echo "$as_me:9905: checking if external sys_errlist exists" >&5
9906 echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
9907 if test "${cf_cv_have_sys_errlist+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910
9911 cat >"conftest.$ac_ext" <<_ACEOF
9912 #line 9912 "configure"
9913 #include "confdefs.h"
9914
9915 #undef sys_errlist
9916 extern int sys_errlist;
9917
9918 int
9919 main (void)
9920 {
9921 sys_errlist = 2
9922 ;
9923 return 0;
9924 }
9925 _ACEOF
9926 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9927 if { (eval echo "$as_me:9927: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9929 ac_status=$?
9930 echo "$as_me:9930: \$? = $ac_status" >&5
9931 (exit "$ac_status"); } &&
9932 { ac_try='test -s "conftest$ac_exeext"'
9933 { (eval echo "$as_me:9933: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 (exit "$ac_status"); }; }; then
9938 cf_cv_have_sys_errlist=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 cat "conftest.$ac_ext" >&5
9942 cf_cv_have_sys_errlist=no
9943 fi
9944 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9945
9946 fi
9947 echo "$as_me:9947: result: $cf_cv_have_sys_errlist" >&5
9948 echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
9949
9950 if test "$cf_cv_have_sys_errlist" = yes ; then
9951
9952 cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9953
9954 cat >>confdefs.h <<EOF
9955 #define $cf_result 1
9956 EOF
9957
9958 fi
9959
9960 cf_save_LIBS_CF_SYSV="$LIBS"
9961 cf_save_CFLAGS_CF_SYSV="$CFLAGS"
9962 cf_save_CPPFLAGS_CF_SYSV="$CPPFLAGS"
9963 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
9964 for cf_X_CFLAGS in $X_CFLAGS
9965 do
9966 case "x$cf_X_CFLAGS" in
9967 x-[IUD]*)
9968 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
9969 ;;
9970 *)
9971 CFLAGS="$CFLAGS $cf_X_CFLAGS"
9972 ;;
9973 esac
9974 done
9975
9976 for ac_header in \
9977 termios.h \
9978 stdlib.h \
9979 X11/Intrinsic.h \
9980
9981 do
9982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9983 echo "$as_me:9983: checking for $ac_header" >&5
9984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 cat >"conftest.$ac_ext" <<_ACEOF
9989 #line 9989 "configure"
9990 #include "confdefs.h"
9991 #include <$ac_header>
9992 _ACEOF
9993 if { (eval echo "$as_me:9993: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9994 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9995 ac_status=$?
9996 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:9999: \$? = $ac_status" >&5
10000 (exit "$ac_status"); } >/dev/null; then
10001 if test -s conftest.err; then
10002 ac_cpp_err=$ac_c_preproc_warn_flag
10003 else
10004 ac_cpp_err=
10005 fi
10006 else
10007 ac_cpp_err=yes
10008 fi
10009 if test -z "$ac_cpp_err"; then
10010 eval "$as_ac_Header=yes"
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 cat "conftest.$ac_ext" >&5
10014 eval "$as_ac_Header=no"
10015 fi
10016 rm -f conftest.err "conftest.$ac_ext"
10017 fi
10018 echo "$as_me:10018: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
10019 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
10020 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
10021 cat >>confdefs.h <<EOF
10022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10023 EOF
10024
10025 fi
10026 done
10027
10028 echo "$as_me:10028: checking if we should define SYSV" >&5
10029 echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
10030 if test "${cf_cv_sysv+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033
10034 cat >"conftest.$ac_ext" <<_ACEOF
10035 #line 10035 "configure"
10036 #include "confdefs.h"
10037
10038 #undef SYSV
10039 #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
10040 #ifdef HAVE_STDLIB_H
10041 #include <stdlib.h> /* look for wchar_t */
10042 #endif
10043 #ifdef HAVE_X11_INTRINSIC_H
10044 #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
10045 #endif
10046 #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */
10047 #include <termios.h>
10048 #define STRUCT_TERMIOS struct termios
10049 #else
10050 #define STRUCT_TERMIOS struct termio
10051 #endif
10052 #include <curses.h>
10053 #include <term.h> /* eliminate most BSD hacks */
10054 #include <errno.h> /* declare sys_errlist on older systems */
10055 #include <sys/termio.h> /* eliminate most of the remaining ones */
10056
10057 int
10058 main (void)
10059 {
10060
10061 static STRUCT_TERMIOS d_tio;
10062 d_tio.c_cc[VINTR] = 0;
10063 d_tio.c_cc[VQUIT] = 0;
10064 d_tio.c_cc[VERASE] = 0;
10065 d_tio.c_cc[VKILL] = 0;
10066 d_tio.c_cc[VEOF] = 0;
10067 d_tio.c_cc[VEOL] = 0;
10068 d_tio.c_cc[VMIN] = 0;
10069 d_tio.c_cc[VTIME] = 0;
10070 #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
10071 sys_errlist[0] = ""; /* Cygwin mis-declares this */
10072 #endif
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 rm -f "conftest.$ac_objext"
10079 if { (eval echo "$as_me:10079: \"$ac_compile\"") >&5
10080 (eval $ac_compile) 2>&5
10081 ac_status=$?
10082 echo "$as_me:10082: \$? = $ac_status" >&5
10083 (exit "$ac_status"); } &&
10084 { ac_try='test -s "conftest.$ac_objext"'
10085 { (eval echo "$as_me:10085: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:10088: \$? = $ac_status" >&5
10089 (exit "$ac_status"); }; }; then
10090 cf_cv_sysv=yes
10091 else
10092 echo "$as_me: failed program was:" >&5
10093 cat "conftest.$ac_ext" >&5
10094 cf_cv_sysv=no
10095 fi
10096 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10097
10098 fi
10099 echo "$as_me:10099: result: $cf_cv_sysv" >&5
10100 echo "${ECHO_T}$cf_cv_sysv" >&6
10101 test "$cf_cv_sysv" = yes &&
10102 cat >>confdefs.h <<\EOF
10103 #define SYSV 1
10104 EOF
10105
10106 LIBS="$cf_save_LIBS_CF_SYSV"
10107 CFLAGS="$cf_save_CFLAGS_CF_SYSV"
10108 CPPFLAGS="$cf_save_CPPFLAGS_CF_SYSV"
10109
10110 echo "$as_me:10110: checking for elf_begin in -lelf" >&5
10111 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10112 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 ac_check_lib_save_LIBS=$LIBS
10116 LIBS="-lelf $LIBS"
10117 cat >"conftest.$ac_ext" <<_ACEOF
10118 #line 10118 "configure"
10119 #include "confdefs.h"
10120
10121 /* Override any gcc2 internal prototype to avoid an error. */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127 char elf_begin ();
10128 int
10129 main (void)
10130 {
10131 elf_begin ();
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10137 if { (eval echo "$as_me:10137: \"$ac_link\"") >&5
10138 (eval $ac_link) 2>&5
10139 ac_status=$?
10140 echo "$as_me:10140: \$? = $ac_status" >&5
10141 (exit "$ac_status"); } &&
10142 { ac_try='test -s "conftest$ac_exeext"'
10143 { (eval echo "$as_me:10143: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:10146: \$? = $ac_status" >&5
10147 (exit "$ac_status"); }; }; then
10148 ac_cv_lib_elf_elf_begin=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 cat "conftest.$ac_ext" >&5
10152 ac_cv_lib_elf_elf_begin=no
10153 fi
10154 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10155 LIBS=$ac_check_lib_save_LIBS
10156 fi
10157 echo "$as_me:10157: result: $ac_cv_lib_elf_elf_begin" >&5
10158 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10159 if test "$ac_cv_lib_elf_elf_begin" = yes; then
10160
10161 echo "$as_me:10161: checking if this is an SVR4 system" >&5
10162 echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
10163 if test "${cf_cv_svr4+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166
10167 cat >"conftest.$ac_ext" <<_ACEOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10170
10171 #if defined(__CYGWIN__)
10172 make an error
10173 #endif
10174 #include <elf.h>
10175 #include <sys/termio.h>
10176
10177 int
10178 main (void)
10179 {
10180
10181 static struct termio d_tio;
10182 d_tio.c_cc[VINTR] = 0;
10183 d_tio.c_cc[VQUIT] = 0;
10184 d_tio.c_cc[VERASE] = 0;
10185 d_tio.c_cc[VKILL] = 0;
10186 d_tio.c_cc[VEOF] = 0;
10187 d_tio.c_cc[VEOL] = 0;
10188 d_tio.c_cc[VMIN] = 0;
10189 d_tio.c_cc[VTIME] = 0;
10190 d_tio.c_cc[VLNEXT] = 0;
10191
10192 ;
10193 return 0;
10194 }
10195 _ACEOF
10196 rm -f "conftest.$ac_objext"
10197 if { (eval echo "$as_me:10197: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
10199 ac_status=$?
10200 echo "$as_me:10200: \$? = $ac_status" >&5
10201 (exit "$ac_status"); } &&
10202 { ac_try='test -s "conftest.$ac_objext"'
10203 { (eval echo "$as_me:10203: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:10206: \$? = $ac_status" >&5
10207 (exit "$ac_status"); }; }; then
10208 cf_cv_svr4=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 cat "conftest.$ac_ext" >&5
10212 cf_cv_svr4=no
10213 fi
10214 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10215
10216 fi
10217 echo "$as_me:10217: result: $cf_cv_svr4" >&5
10218 echo "${ECHO_T}$cf_cv_svr4" >&6
10219
10220 fi
10221
10222 test "$cf_cv_svr4" = yes &&
10223 cat >>confdefs.h <<\EOF
10224 #define SVR4 1
10225 EOF
10226
10227 echo "$as_me:10227: checking if you want to use pkg-config" >&5
10228 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
10229
10230 # Check whether --with-pkg-config or --without-pkg-config was given.
10231 if test "${with_pkg_config+set}" = set; then
10232 withval="$with_pkg_config"
10233 cf_pkg_config=$withval
10234 else
10235 cf_pkg_config=yes
10236 fi;
10237 echo "$as_me:10237: result: $cf_pkg_config" >&5
10238 echo "${ECHO_T}$cf_pkg_config" >&6
10239
10240 case "$cf_pkg_config" in
10241 (no)
10242 PKG_CONFIG=none
10243 ;;
10244 (yes)
10245
10246 if test -n "$ac_tool_prefix"; then
10247 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10248 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10249 echo "$as_me:10249: checking for $ac_word" >&5
10250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10251 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 case $PKG_CONFIG in
10255 [\\/]* | ?:[\\/]*)
10256 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10257 ;;
10258 *)
10259 ac_save_IFS=$IFS; IFS=$ac_path_separator
10260 ac_dummy="$PATH"
10261 for ac_dir in $ac_dummy; do
10262 IFS=$ac_save_IFS
10263 test -z "$ac_dir" && ac_dir=.
10264 if $as_executable_p "$ac_dir/$ac_word"; then
10265 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
10266 echo "$as_me:10266: found $ac_dir/$ac_word" >&5
10267 break
10268 fi
10269 done
10270
10271 ;;
10272 esac
10273 fi
10274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10275
10276 if test -n "$PKG_CONFIG"; then
10277 echo "$as_me:10277: result: $PKG_CONFIG" >&5
10278 echo "${ECHO_T}$PKG_CONFIG" >&6
10279 else
10280 echo "$as_me:10280: result: no" >&5
10281 echo "${ECHO_T}no" >&6
10282 fi
10283
10284 fi
10285 if test -z "$ac_cv_path_PKG_CONFIG"; then
10286 ac_pt_PKG_CONFIG=$PKG_CONFIG
10287 # Extract the first word of "pkg-config", so it can be a program name with args.
10288 set dummy pkg-config; ac_word=$2
10289 echo "$as_me:10289: checking for $ac_word" >&5
10290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10291 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 case $ac_pt_PKG_CONFIG in
10295 [\\/]* | ?:[\\/]*)
10296 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10297 ;;
10298 *)
10299 ac_save_IFS=$IFS; IFS=$ac_path_separator
10300 ac_dummy="$PATH"
10301 for ac_dir in $ac_dummy; do
10302 IFS=$ac_save_IFS
10303 test -z "$ac_dir" && ac_dir=.
10304 if $as_executable_p "$ac_dir/$ac_word"; then
10305 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
10306 echo "$as_me:10306: found $ac_dir/$ac_word" >&5
10307 break
10308 fi
10309 done
10310
10311 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
10312 ;;
10313 esac
10314 fi
10315 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10316
10317 if test -n "$ac_pt_PKG_CONFIG"; then
10318 echo "$as_me:10318: result: $ac_pt_PKG_CONFIG" >&5
10319 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
10320 else
10321 echo "$as_me:10321: result: no" >&5
10322 echo "${ECHO_T}no" >&6
10323 fi
10324
10325 PKG_CONFIG=$ac_pt_PKG_CONFIG
10326 else
10327 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10328 fi
10329
10330 ;;
10331 (*)
10332 PKG_CONFIG=$withval
10333 ;;
10334 esac
10335
10336 test -z "$PKG_CONFIG" && PKG_CONFIG=none
10337 if test "$PKG_CONFIG" != none ; then
10338
10339 if test "x$prefix" != xNONE; then
10340 cf_path_syntax="$prefix"
10341 else
10342 cf_path_syntax="$ac_default_prefix"
10343 fi
10344
10345 case ".$PKG_CONFIG" in
10346 (.\$\(*\)*|.\'*\'*)
10347 ;;
10348 (..|./*|.\\*)
10349 ;;
10350 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
10351 ;;
10352 (.\$\{*prefix\}*|.\$\{*dir\}*)
10353 eval PKG_CONFIG="$PKG_CONFIG"
10354 case ".$PKG_CONFIG" in
10355 (.NONE/*)
10356 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
10357 ;;
10358 esac
10359 ;;
10360 (.no|.NONE/*)
10361 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
10362 ;;
10363 (*)
10364 { { echo "$as_me:10364: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
10365 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
10366 { (exit 1); exit 1; }; }
10367 ;;
10368 esac
10369
10370 elif test "x$cf_pkg_config" != xno ; then
10371 { echo "$as_me:10371: WARNING: pkg-config is not installed" >&5
10372 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
10373 fi
10374
10375 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
10376 # in some cases has installed dummy files in the former, other cases replaced
10377 # it with a link to the new location). This complicates the configure script.
10378 # Check for that pitfall, and recover using pkg-config
10379 #
10380 # If none of these are set, the configuration is almost certainly broken.
10381 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
10382 then
10383
10384 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
10385 test -n "$verbose" && echo " found package x11" 1>&6
10386
10387 echo "${as_me:-configure}:10387: testing found package x11 ..." 1>&5
10388
10389 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
10390 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
10391 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10392
10393 echo "${as_me:-configure}:10393: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10394
10395 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10396
10397 echo "${as_me:-configure}:10397: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10398
10399 cf_fix_cppflags=no
10400 cf_new_cflags=
10401 cf_new_cppflags=
10402 cf_new_extra_cppflags=
10403
10404 for cf_add_cflags in $cf_pkgconfig_incs
10405 do
10406 case "$cf_fix_cppflags" in
10407 (no)
10408 case "$cf_add_cflags" in
10409 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10410 case "$cf_add_cflags" in
10411 (-D*)
10412 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10413
10414 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10415 && test -z "${cf_tst_cflags}" \
10416 && cf_fix_cppflags=yes
10417
10418 if test "$cf_fix_cppflags" = yes ; then
10419
10420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10422
10423 continue
10424 elif test "${cf_tst_cflags}" = "\"'" ; then
10425
10426 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10427 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10428
10429 continue
10430 fi
10431 ;;
10432 esac
10433 case "$CPPFLAGS" in
10434 (*$cf_add_cflags)
10435 ;;
10436 (*)
10437 case "$cf_add_cflags" in
10438 (-D*)
10439 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10440
10441 CPPFLAGS=`echo "$CPPFLAGS" | \
10442 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10443 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10444
10445 ;;
10446 esac
10447
10448 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10449 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10450
10451 ;;
10452 esac
10453 ;;
10454 (*)
10455
10456 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10457 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10458
10459 ;;
10460 esac
10461 ;;
10462 (yes)
10463
10464 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10465 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10466
10467 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10468
10469 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10470 && test -z "${cf_tst_cflags}" \
10471 && cf_fix_cppflags=no
10472 ;;
10473 esac
10474 done
10475
10476 if test -n "$cf_new_cflags" ; then
10477
10478 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10479 CFLAGS="${CFLAGS}$cf_new_cflags"
10480
10481 fi
10482
10483 if test -n "$cf_new_cppflags" ; then
10484
10485 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10486 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10487
10488 fi
10489
10490 if test -n "$cf_new_extra_cppflags" ; then
10491
10492 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10493 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10494
10495 fi
10496
10497 cf_add_libs="$LIBS"
10498 # reverse order
10499 cf_add_0lib=
10500 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10501 # filter duplicates
10502 for cf_add_1lib in $cf_add_0lib; do
10503 for cf_add_2lib in $cf_add_libs; do
10504 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10505 cf_add_1lib=
10506 break
10507 fi
10508 done
10509 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10510 done
10511 LIBS="$cf_add_libs"
10512
10513 :
10514 else
10515 cf_pkgconfig_incs=
10516 cf_pkgconfig_libs=
10517 { echo "$as_me:10517: WARNING: unable to find X11 library" >&5
10518 echo "$as_me: WARNING: unable to find X11 library" >&2;}
10519 fi
10520
10521 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
10522 test -n "$verbose" && echo " found package ice" 1>&6
10523
10524 echo "${as_me:-configure}:10524: testing found package ice ..." 1>&5
10525
10526 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
10527 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
10528 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10529
10530 echo "${as_me:-configure}:10530: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10531
10532 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10533
10534 echo "${as_me:-configure}:10534: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10535
10536 cf_fix_cppflags=no
10537 cf_new_cflags=
10538 cf_new_cppflags=
10539 cf_new_extra_cppflags=
10540
10541 for cf_add_cflags in $cf_pkgconfig_incs
10542 do
10543 case "$cf_fix_cppflags" in
10544 (no)
10545 case "$cf_add_cflags" in
10546 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10547 case "$cf_add_cflags" in
10548 (-D*)
10549 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10550
10551 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10552 && test -z "${cf_tst_cflags}" \
10553 && cf_fix_cppflags=yes
10554
10555 if test "$cf_fix_cppflags" = yes ; then
10556
10557 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10558 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10559
10560 continue
10561 elif test "${cf_tst_cflags}" = "\"'" ; then
10562
10563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10565
10566 continue
10567 fi
10568 ;;
10569 esac
10570 case "$CPPFLAGS" in
10571 (*$cf_add_cflags)
10572 ;;
10573 (*)
10574 case "$cf_add_cflags" in
10575 (-D*)
10576 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10577
10578 CPPFLAGS=`echo "$CPPFLAGS" | \
10579 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10580 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10581
10582 ;;
10583 esac
10584
10585 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10586 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10587
10588 ;;
10589 esac
10590 ;;
10591 (*)
10592
10593 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10594 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10595
10596 ;;
10597 esac
10598 ;;
10599 (yes)
10600
10601 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10602 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10603
10604 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10605
10606 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10607 && test -z "${cf_tst_cflags}" \
10608 && cf_fix_cppflags=no
10609 ;;
10610 esac
10611 done
10612
10613 if test -n "$cf_new_cflags" ; then
10614
10615 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10616 CFLAGS="${CFLAGS}$cf_new_cflags"
10617
10618 fi
10619
10620 if test -n "$cf_new_cppflags" ; then
10621
10622 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10623 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10624
10625 fi
10626
10627 if test -n "$cf_new_extra_cppflags" ; then
10628
10629 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10630 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10631
10632 fi
10633
10634 cf_add_libs="$LIBS"
10635 # reverse order
10636 cf_add_0lib=
10637 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10638 # filter duplicates
10639 for cf_add_1lib in $cf_add_0lib; do
10640 for cf_add_2lib in $cf_add_libs; do
10641 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10642 cf_add_1lib=
10643 break
10644 fi
10645 done
10646 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10647 done
10648 LIBS="$cf_add_libs"
10649
10650 :
10651 else
10652 cf_pkgconfig_incs=
10653 cf_pkgconfig_libs=
10654 { echo "$as_me:10654: WARNING: unable to find ICE library" >&5
10655 echo "$as_me: WARNING: unable to find ICE library" >&2;}
10656 fi
10657
10658 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
10659 test -n "$verbose" && echo " found package sm" 1>&6
10660
10661 echo "${as_me:-configure}:10661: testing found package sm ..." 1>&5
10662
10663 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
10664 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
10665 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
10666
10667 echo "${as_me:-configure}:10667: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10668
10669 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
10670
10671 echo "${as_me:-configure}:10671: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
10672
10673 cf_fix_cppflags=no
10674 cf_new_cflags=
10675 cf_new_cppflags=
10676 cf_new_extra_cppflags=
10677
10678 for cf_add_cflags in $cf_pkgconfig_incs
10679 do
10680 case "$cf_fix_cppflags" in
10681 (no)
10682 case "$cf_add_cflags" in
10683 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10684 case "$cf_add_cflags" in
10685 (-D*)
10686 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10687
10688 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10689 && test -z "${cf_tst_cflags}" \
10690 && cf_fix_cppflags=yes
10691
10692 if test "$cf_fix_cppflags" = yes ; then
10693
10694 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10695 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10696
10697 continue
10698 elif test "${cf_tst_cflags}" = "\"'" ; then
10699
10700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10702
10703 continue
10704 fi
10705 ;;
10706 esac
10707 case "$CPPFLAGS" in
10708 (*$cf_add_cflags)
10709 ;;
10710 (*)
10711 case "$cf_add_cflags" in
10712 (-D*)
10713 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10714
10715 CPPFLAGS=`echo "$CPPFLAGS" | \
10716 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10717 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10718
10719 ;;
10720 esac
10721
10722 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10723 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10724
10725 ;;
10726 esac
10727 ;;
10728 (*)
10729
10730 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10731 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10732
10733 ;;
10734 esac
10735 ;;
10736 (yes)
10737
10738 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10739 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10740
10741 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10742
10743 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10744 && test -z "${cf_tst_cflags}" \
10745 && cf_fix_cppflags=no
10746 ;;
10747 esac
10748 done
10749
10750 if test -n "$cf_new_cflags" ; then
10751
10752 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10753 CFLAGS="${CFLAGS}$cf_new_cflags"
10754
10755 fi
10756
10757 if test -n "$cf_new_cppflags" ; then
10758
10759 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10760 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10761
10762 fi
10763
10764 if test -n "$cf_new_extra_cppflags" ; then
10765
10766 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10767 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10768
10769 fi
10770
10771 cf_add_libs="$LIBS"
10772 # reverse order
10773 cf_add_0lib=
10774 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10775 # filter duplicates
10776 for cf_add_1lib in $cf_add_0lib; do
10777 for cf_add_2lib in $cf_add_libs; do
10778 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10779 cf_add_1lib=
10780 break
10781 fi
10782 done
10783 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10784 done
10785 LIBS="$cf_add_libs"
10786
10787 :
10788 else
10789 cf_pkgconfig_incs=
10790 cf_pkgconfig_libs=
10791 { echo "$as_me:10791: WARNING: unable to find SM library" >&5
10792 echo "$as_me: WARNING: unable to find SM library" >&2;}
10793 fi
10794
10795 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
10796 test -n "$verbose" && echo " found package xt" 1>&6
10797
10798 echo "${as_me:-configure}:10798: testing found package xt ..." 1>&5
10799
10800 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
10801 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
10802 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10803
10804 echo "${as_me:-configure}:10804: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10805
10806 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10807
10808 echo "${as_me:-configure}:10808: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10809
10810 cf_fix_cppflags=no
10811 cf_new_cflags=
10812 cf_new_cppflags=
10813 cf_new_extra_cppflags=
10814
10815 for cf_add_cflags in $cf_pkgconfig_incs
10816 do
10817 case "$cf_fix_cppflags" in
10818 (no)
10819 case "$cf_add_cflags" in
10820 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10821 case "$cf_add_cflags" in
10822 (-D*)
10823 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10824
10825 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10826 && test -z "${cf_tst_cflags}" \
10827 && cf_fix_cppflags=yes
10828
10829 if test "$cf_fix_cppflags" = yes ; then
10830
10831 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10832 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10833
10834 continue
10835 elif test "${cf_tst_cflags}" = "\"'" ; then
10836
10837 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10838 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10839
10840 continue
10841 fi
10842 ;;
10843 esac
10844 case "$CPPFLAGS" in
10845 (*$cf_add_cflags)
10846 ;;
10847 (*)
10848 case "$cf_add_cflags" in
10849 (-D*)
10850 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10851
10852 CPPFLAGS=`echo "$CPPFLAGS" | \
10853 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10854 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10855
10856 ;;
10857 esac
10858
10859 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10860 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10861
10862 ;;
10863 esac
10864 ;;
10865 (*)
10866
10867 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10868 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10869
10870 ;;
10871 esac
10872 ;;
10873 (yes)
10874
10875 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10876 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10877
10878 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10879
10880 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10881 && test -z "${cf_tst_cflags}" \
10882 && cf_fix_cppflags=no
10883 ;;
10884 esac
10885 done
10886
10887 if test -n "$cf_new_cflags" ; then
10888
10889 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10890 CFLAGS="${CFLAGS}$cf_new_cflags"
10891
10892 fi
10893
10894 if test -n "$cf_new_cppflags" ; then
10895
10896 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10897 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10898
10899 fi
10900
10901 if test -n "$cf_new_extra_cppflags" ; then
10902
10903 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10904 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10905
10906 fi
10907
10908 cf_add_libs="$LIBS"
10909 # reverse order
10910 cf_add_0lib=
10911 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10912 # filter duplicates
10913 for cf_add_1lib in $cf_add_0lib; do
10914 for cf_add_2lib in $cf_add_libs; do
10915 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10916 cf_add_1lib=
10917 break
10918 fi
10919 done
10920 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10921 done
10922 LIBS="$cf_add_libs"
10923
10924 :
10925 else
10926 cf_pkgconfig_incs=
10927 cf_pkgconfig_libs=
10928 { echo "$as_me:10928: WARNING: unable to find Xt library" >&5
10929 echo "$as_me: WARNING: unable to find Xt library" >&2;}
10930 fi
10931
10932 else
10933 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
10934 fi
10935
10936 cf_have_X_LIBS=no
10937
10938 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
10939 test -n "$verbose" && echo " found package xt" 1>&6
10940
10941 echo "${as_me:-configure}:10941: testing found package xt ..." 1>&5
10942
10943 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
10944 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
10945 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10946
10947 echo "${as_me:-configure}:10947: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10948
10949 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10950
10951 echo "${as_me:-configure}:10951: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10952
10953 cf_fix_cppflags=no
10954 cf_new_cflags=
10955 cf_new_cppflags=
10956 cf_new_extra_cppflags=
10957
10958 for cf_add_cflags in $cf_pkgconfig_incs
10959 do
10960 case "$cf_fix_cppflags" in
10961 (no)
10962 case "$cf_add_cflags" in
10963 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10964 case "$cf_add_cflags" in
10965 (-D*)
10966 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10967
10968 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10969 && test -z "${cf_tst_cflags}" \
10970 && cf_fix_cppflags=yes
10971
10972 if test "$cf_fix_cppflags" = yes ; then
10973
10974 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10975 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10976
10977 continue
10978 elif test "${cf_tst_cflags}" = "\"'" ; then
10979
10980 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10981 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10982
10983 continue
10984 fi
10985 ;;
10986 esac
10987 case "$CPPFLAGS" in
10988 (*$cf_add_cflags)
10989 ;;
10990 (*)
10991 case "$cf_add_cflags" in
10992 (-D*)
10993 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10994
10995 CPPFLAGS=`echo "$CPPFLAGS" | \
10996 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10997 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10998
10999 ;;
11000 esac
11001
11002 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11003 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11004
11005 ;;
11006 esac
11007 ;;
11008 (*)
11009
11010 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11011 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11012
11013 ;;
11014 esac
11015 ;;
11016 (yes)
11017
11018 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11019 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11020
11021 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11022
11023 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11024 && test -z "${cf_tst_cflags}" \
11025 && cf_fix_cppflags=no
11026 ;;
11027 esac
11028 done
11029
11030 if test -n "$cf_new_cflags" ; then
11031
11032 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11033 CFLAGS="${CFLAGS}$cf_new_cflags"
11034
11035 fi
11036
11037 if test -n "$cf_new_cppflags" ; then
11038
11039 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11040 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11041
11042 fi
11043
11044 if test -n "$cf_new_extra_cppflags" ; then
11045
11046 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11047 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11048
11049 fi
11050
11051 cf_add_libs="$LIBS"
11052 # reverse order
11053 cf_add_0lib=
11054 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11055 # filter duplicates
11056 for cf_add_1lib in $cf_add_0lib; do
11057 for cf_add_2lib in $cf_add_libs; do
11058 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11059 cf_add_1lib=
11060 break
11061 fi
11062 done
11063 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11064 done
11065 LIBS="$cf_add_libs"
11066
11067 case "x$LIBS" in
11068 (*-lX11*)
11069 ;;
11070 (*)
11071 # we have an "xt" package, but it may omit Xt's dependency on X11
11072 echo "$as_me:11072: checking for usable X dependency" >&5
11073 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11074 if test "${cf_cv_xt_x11_compat+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077
11078 cat >"conftest.$ac_ext" <<_ACEOF
11079 #line 11079 "configure"
11080 #include "confdefs.h"
11081
11082 #include <X11/Xlib.h>
11083
11084 int
11085 main (void)
11086 {
11087
11088 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
11089 int rc2 = XClearWindow((Display*) 0, (Window) 0);
11090 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
11091 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
11092
11093 ;
11094 return 0;
11095 }
11096 _ACEOF
11097 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11098 if { (eval echo "$as_me:11098: \"$ac_link\"") >&5
11099 (eval $ac_link) 2>&5
11100 ac_status=$?
11101 echo "$as_me:11101: \$? = $ac_status" >&5
11102 (exit "$ac_status"); } &&
11103 { ac_try='test -s "conftest$ac_exeext"'
11104 { (eval echo "$as_me:11104: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 (exit "$ac_status"); }; }; then
11109 cf_cv_xt_x11_compat=yes
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 cat "conftest.$ac_ext" >&5
11113 cf_cv_xt_x11_compat=no
11114 fi
11115 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11116 fi
11117 echo "$as_me:11117: result: $cf_cv_xt_x11_compat" >&5
11118 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11119 if test "$cf_cv_xt_x11_compat" = no
11120 then
11121 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11122
11123 echo "${as_me:-configure}:11123: testing work around broken X11 dependency ..." 1>&5
11124
11125 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11126
11127 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
11128 test -n "$verbose" && echo " found package x11" 1>&6
11129
11130 echo "${as_me:-configure}:11130: testing found package x11 ..." 1>&5
11131
11132 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
11133 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
11134 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11135
11136 echo "${as_me:-configure}:11136: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11137
11138 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11139
11140 echo "${as_me:-configure}:11140: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11141
11142 cf_fix_cppflags=no
11143 cf_new_cflags=
11144 cf_new_cppflags=
11145 cf_new_extra_cppflags=
11146
11147 for cf_add_cflags in $cf_pkgconfig_incs
11148 do
11149 case "$cf_fix_cppflags" in
11150 (no)
11151 case "$cf_add_cflags" in
11152 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11153 case "$cf_add_cflags" in
11154 (-D*)
11155 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11156
11157 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11158 && test -z "${cf_tst_cflags}" \
11159 && cf_fix_cppflags=yes
11160
11161 if test "$cf_fix_cppflags" = yes ; then
11162
11163 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11164 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11165
11166 continue
11167 elif test "${cf_tst_cflags}" = "\"'" ; then
11168
11169 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11170 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11171
11172 continue
11173 fi
11174 ;;
11175 esac
11176 case "$CPPFLAGS" in
11177 (*$cf_add_cflags)
11178 ;;
11179 (*)
11180 case "$cf_add_cflags" in
11181 (-D*)
11182 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11183
11184 CPPFLAGS=`echo "$CPPFLAGS" | \
11185 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11186 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11187
11188 ;;
11189 esac
11190
11191 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11192 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11193
11194 ;;
11195 esac
11196 ;;
11197 (*)
11198
11199 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11200 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11201
11202 ;;
11203 esac
11204 ;;
11205 (yes)
11206
11207 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11208 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11209
11210 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11211
11212 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11213 && test -z "${cf_tst_cflags}" \
11214 && cf_fix_cppflags=no
11215 ;;
11216 esac
11217 done
11218
11219 if test -n "$cf_new_cflags" ; then
11220
11221 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11222 CFLAGS="${CFLAGS}$cf_new_cflags"
11223
11224 fi
11225
11226 if test -n "$cf_new_cppflags" ; then
11227
11228 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11229 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11230
11231 fi
11232
11233 if test -n "$cf_new_extra_cppflags" ; then
11234
11235 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11236 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11237
11238 fi
11239
11240 cf_add_libs="$LIBS"
11241 # reverse order
11242 cf_add_0lib=
11243 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11244 # filter duplicates
11245 for cf_add_1lib in $cf_add_0lib; do
11246 for cf_add_2lib in $cf_add_libs; do
11247 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11248 cf_add_1lib=
11249 break
11250 fi
11251 done
11252 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11253 done
11254 LIBS="$cf_add_libs"
11255
11256 :
11257 else
11258 cf_pkgconfig_incs=
11259 cf_pkgconfig_libs=
11260
11261 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11262
11263 echo "${as_me:-configure}:11263: testing ...before $LIBS ..." 1>&5
11264
11265 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
11266 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11267
11268 echo "${as_me:-configure}:11268: testing ...after $LIBS ..." 1>&5
11269
11270 fi
11271
11272 fi
11273 ;;
11274 esac
11275
11276 echo "$as_me:11276: checking for usable X Toolkit package" >&5
11277 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11278 if test "${cf_cv_xt_ice_compat+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281
11282 cat >"conftest.$ac_ext" <<_ACEOF
11283 #line 11283 "configure"
11284 #include "confdefs.h"
11285
11286 #include <X11/Shell.h>
11287
11288 int
11289 main (void)
11290 {
11291 int num = IceConnectionNumber(0); (void) num
11292
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11298 if { (eval echo "$as_me:11298: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>&5
11300 ac_status=$?
11301 echo "$as_me:11301: \$? = $ac_status" >&5
11302 (exit "$ac_status"); } &&
11303 { ac_try='test -s "conftest$ac_exeext"'
11304 { (eval echo "$as_me:11304: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:11307: \$? = $ac_status" >&5
11308 (exit "$ac_status"); }; }; then
11309 cf_cv_xt_ice_compat=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 cat "conftest.$ac_ext" >&5
11313 cf_cv_xt_ice_compat=no
11314 fi
11315 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11316 fi
11317 echo "$as_me:11317: result: $cf_cv_xt_ice_compat" >&5
11318 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11319
11320 if test "$cf_cv_xt_ice_compat" = no
11321 then
11322 # workaround for broken ".pc" files used for X Toolkit.
11323 case "x$X_PRE_LIBS" in
11324 (*-lICE*)
11325 case "x$LIBS" in
11326 (*-lICE*)
11327 ;;
11328 (*)
11329 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11330
11331 echo "${as_me:-configure}:11331: testing work around broken ICE dependency ..." 1>&5
11332
11333 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
11334 test -n "$verbose" && echo " found package ice" 1>&6
11335
11336 echo "${as_me:-configure}:11336: testing found package ice ..." 1>&5
11337
11338 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
11339 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
11340 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11341
11342 echo "${as_me:-configure}:11342: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11343
11344 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11345
11346 echo "${as_me:-configure}:11346: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11347
11348 cf_fix_cppflags=no
11349 cf_new_cflags=
11350 cf_new_cppflags=
11351 cf_new_extra_cppflags=
11352
11353 for cf_add_cflags in $cf_pkgconfig_incs
11354 do
11355 case "$cf_fix_cppflags" in
11356 (no)
11357 case "$cf_add_cflags" in
11358 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11359 case "$cf_add_cflags" in
11360 (-D*)
11361 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11362
11363 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11364 && test -z "${cf_tst_cflags}" \
11365 && cf_fix_cppflags=yes
11366
11367 if test "$cf_fix_cppflags" = yes ; then
11368
11369 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11370 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11371
11372 continue
11373 elif test "${cf_tst_cflags}" = "\"'" ; then
11374
11375 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11376 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11377
11378 continue
11379 fi
11380 ;;
11381 esac
11382 case "$CPPFLAGS" in
11383 (*$cf_add_cflags)
11384 ;;
11385 (*)
11386 case "$cf_add_cflags" in
11387 (-D*)
11388 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11389
11390 CPPFLAGS=`echo "$CPPFLAGS" | \
11391 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11392 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11393
11394 ;;
11395 esac
11396
11397 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11398 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11399
11400 ;;
11401 esac
11402 ;;
11403 (*)
11404
11405 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11406 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11407
11408 ;;
11409 esac
11410 ;;
11411 (yes)
11412
11413 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11414 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11415
11416 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11417
11418 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11419 && test -z "${cf_tst_cflags}" \
11420 && cf_fix_cppflags=no
11421 ;;
11422 esac
11423 done
11424
11425 if test -n "$cf_new_cflags" ; then
11426
11427 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11428 CFLAGS="${CFLAGS}$cf_new_cflags"
11429
11430 fi
11431
11432 if test -n "$cf_new_cppflags" ; then
11433
11434 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11435 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11436
11437 fi
11438
11439 if test -n "$cf_new_extra_cppflags" ; then
11440
11441 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11442 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11443
11444 fi
11445
11446 cf_add_libs="$LIBS"
11447 # reverse order
11448 cf_add_0lib=
11449 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11450 # filter duplicates
11451 for cf_add_1lib in $cf_add_0lib; do
11452 for cf_add_2lib in $cf_add_libs; do
11453 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11454 cf_add_1lib=
11455 break
11456 fi
11457 done
11458 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11459 done
11460 LIBS="$cf_add_libs"
11461
11462 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
11463 test -n "$verbose" && echo " found package sm" 1>&6
11464
11465 echo "${as_me:-configure}:11465: testing found package sm ..." 1>&5
11466
11467 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
11468 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
11469 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11470
11471 echo "${as_me:-configure}:11471: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11472
11473 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11474
11475 echo "${as_me:-configure}:11475: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11476
11477 cf_fix_cppflags=no
11478 cf_new_cflags=
11479 cf_new_cppflags=
11480 cf_new_extra_cppflags=
11481
11482 for cf_add_cflags in $cf_pkgconfig_incs
11483 do
11484 case "$cf_fix_cppflags" in
11485 (no)
11486 case "$cf_add_cflags" in
11487 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11488 case "$cf_add_cflags" in
11489 (-D*)
11490 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11491
11492 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11493 && test -z "${cf_tst_cflags}" \
11494 && cf_fix_cppflags=yes
11495
11496 if test "$cf_fix_cppflags" = yes ; then
11497
11498 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11499 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11500
11501 continue
11502 elif test "${cf_tst_cflags}" = "\"'" ; then
11503
11504 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11505 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11506
11507 continue
11508 fi
11509 ;;
11510 esac
11511 case "$CPPFLAGS" in
11512 (*$cf_add_cflags)
11513 ;;
11514 (*)
11515 case "$cf_add_cflags" in
11516 (-D*)
11517 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11518
11519 CPPFLAGS=`echo "$CPPFLAGS" | \
11520 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11521 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11522
11523 ;;
11524 esac
11525
11526 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11527 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11528
11529 ;;
11530 esac
11531 ;;
11532 (*)
11533
11534 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11535 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11536
11537 ;;
11538 esac
11539 ;;
11540 (yes)
11541
11542 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11543 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11544
11545 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11546
11547 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11548 && test -z "${cf_tst_cflags}" \
11549 && cf_fix_cppflags=no
11550 ;;
11551 esac
11552 done
11553
11554 if test -n "$cf_new_cflags" ; then
11555
11556 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11557 CFLAGS="${CFLAGS}$cf_new_cflags"
11558
11559 fi
11560
11561 if test -n "$cf_new_cppflags" ; then
11562
11563 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11564 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11565
11566 fi
11567
11568 if test -n "$cf_new_extra_cppflags" ; then
11569
11570 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11571 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11572
11573 fi
11574
11575 cf_add_libs="$LIBS"
11576 # reverse order
11577 cf_add_0lib=
11578 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11579 # filter duplicates
11580 for cf_add_1lib in $cf_add_0lib; do
11581 for cf_add_2lib in $cf_add_libs; do
11582 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11583 cf_add_1lib=
11584 break
11585 fi
11586 done
11587 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11588 done
11589 LIBS="$cf_add_libs"
11590
11591 :
11592 else
11593 cf_pkgconfig_incs=
11594 cf_pkgconfig_libs=
11595 :
11596 fi
11597
11598 else
11599 cf_pkgconfig_incs=
11600 cf_pkgconfig_libs=
11601
11602 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11603
11604 echo "${as_me:-configure}:11604: testing ...before $LIBS ..." 1>&5
11605
11606 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11607 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11608
11609 echo "${as_me:-configure}:11609: testing ...after $LIBS ..." 1>&5
11610
11611 fi
11612
11613 ;;
11614 esac
11615 ;;
11616 esac
11617 fi
11618
11619 cf_have_X_LIBS=yes
11620
11621 else
11622 cf_pkgconfig_incs=
11623 cf_pkgconfig_libs=
11624
11625 LDFLAGS="$X_LIBS $LDFLAGS"
11626
11627 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11628
11629 echo "${as_me:-configure}:11629: testing checking additions to CFLAGS ..." 1>&5
11630
11631 cf_check_cflags="$CFLAGS"
11632 cf_check_cppflags="$CPPFLAGS"
11633
11634 cf_fix_cppflags=no
11635 cf_new_cflags=
11636 cf_new_cppflags=
11637 cf_new_extra_cppflags=
11638
11639 for cf_add_cflags in $X_CFLAGS
11640 do
11641 case "$cf_fix_cppflags" in
11642 (no)
11643 case "$cf_add_cflags" in
11644 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11645 case "$cf_add_cflags" in
11646 (-D*)
11647 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11648
11649 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11650 && test -z "${cf_tst_cflags}" \
11651 && cf_fix_cppflags=yes
11652
11653 if test "$cf_fix_cppflags" = yes ; then
11654
11655 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11656 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11657
11658 continue
11659 elif test "${cf_tst_cflags}" = "\"'" ; then
11660
11661 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11662 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11663
11664 continue
11665 fi
11666 ;;
11667 esac
11668 case "$CPPFLAGS" in
11669 (*$cf_add_cflags)
11670 ;;
11671 (*)
11672 case "$cf_add_cflags" in
11673 (-D*)
11674 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11675
11676 CPPFLAGS=`echo "$CPPFLAGS" | \
11677 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11678 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11679
11680 ;;
11681 esac
11682
11683 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11684 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11685
11686 ;;
11687 esac
11688 ;;
11689 (*)
11690
11691 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11692 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11693
11694 ;;
11695 esac
11696 ;;
11697 (yes)
11698
11699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11701
11702 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11703
11704 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11705 && test -z "${cf_tst_cflags}" \
11706 && cf_fix_cppflags=no
11707 ;;
11708 esac
11709 done
11710
11711 if test -n "$cf_new_cflags" ; then
11712 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11713
11714 echo "${as_me:-configure}:11714: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11715
11716 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11717 CFLAGS="${CFLAGS}$cf_new_cflags"
11718
11719 fi
11720
11721 if test -n "$cf_new_cppflags" ; then
11722 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11723
11724 echo "${as_me:-configure}:11724: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11725
11726 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11727 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11728
11729 fi
11730
11731 if test -n "$cf_new_extra_cppflags" ; then
11732 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11733
11734 echo "${as_me:-configure}:11734: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11735
11736 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11737 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11738
11739 fi
11740
11741 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
11742 cat >"conftest.$ac_ext" <<_ACEOF
11743 #line 11743 "configure"
11744 #include "confdefs.h"
11745 #include <stdio.h>
11746 int
11747 main (void)
11748 {
11749 printf("Hello world");
11750 ;
11751 return 0;
11752 }
11753 _ACEOF
11754 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11755 if { (eval echo "$as_me:11755: \"$ac_link\"") >&5
11756 (eval $ac_link) 2>&5
11757 ac_status=$?
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit "$ac_status"); } &&
11760 { ac_try='test -s "conftest$ac_exeext"'
11761 { (eval echo "$as_me:11761: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:11764: \$? = $ac_status" >&5
11765 (exit "$ac_status"); }; }; then
11766 :
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 cat "conftest.$ac_ext" >&5
11770 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11771
11772 echo "${as_me:-configure}:11772: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11773
11774 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
11775 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11776
11777 echo "${as_me:-configure}:11777: testing but keeping change to \$CPPFLAGS ..." 1>&5
11778
11779 fi
11780 CFLAGS="$cf_check_cflags"
11781 fi
11782 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11783 fi
11784
11785 echo "$as_me:11785: checking for XOpenDisplay" >&5
11786 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11787 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790 cat >"conftest.$ac_ext" <<_ACEOF
11791 #line 11791 "configure"
11792 #include "confdefs.h"
11793 #define XOpenDisplay autoconf_temporary
11794 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11795 #undef XOpenDisplay
11796
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800
11801 /* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */
11803 char XOpenDisplay (void);
11804
11805 int
11806 main (void)
11807 {
11808
11809 /* The GNU C library defines stubs for functions which it implements
11810 to always fail with ENOSYS. Some functions are actually named
11811 something starting with __ and the normal name is an alias. */
11812 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11813 #error found stub for XOpenDisplay
11814 #endif
11815
11816 return XOpenDisplay ();
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11822 if { (eval echo "$as_me:11822: \"$ac_link\"") >&5
11823 (eval $ac_link) 2>&5
11824 ac_status=$?
11825 echo "$as_me:11825: \$? = $ac_status" >&5
11826 (exit "$ac_status"); } &&
11827 { ac_try='test -s "conftest$ac_exeext"'
11828 { (eval echo "$as_me:11828: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:11831: \$? = $ac_status" >&5
11832 (exit "$ac_status"); }; }; then
11833 ac_cv_func_XOpenDisplay=yes
11834 else
11835 echo "$as_me: failed program was:" >&5
11836 cat "conftest.$ac_ext" >&5
11837 ac_cv_func_XOpenDisplay=no
11838 fi
11839 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11840 fi
11841 echo "$as_me:11841: result: $ac_cv_func_XOpenDisplay" >&5
11842 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11843 if test "$ac_cv_func_XOpenDisplay" = yes; then
11844 :
11845 else
11846
11847 echo "$as_me:11847: checking for XOpenDisplay in -lX11" >&5
11848 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11849 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 ac_check_lib_save_LIBS=$LIBS
11853 LIBS="-lX11 $LIBS"
11854 cat >"conftest.$ac_ext" <<_ACEOF
11855 #line 11855 "configure"
11856 #include "confdefs.h"
11857
11858 /* Override any gcc2 internal prototype to avoid an error. */
11859 #ifdef __cplusplus
11860 extern "C"
11861 #endif
11862 /* We use char because int might match the return type of a gcc2
11863 builtin and then its argument prototype would still apply. */
11864 char XOpenDisplay ();
11865 int
11866 main (void)
11867 {
11868 XOpenDisplay ();
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11874 if { (eval echo "$as_me:11874: \"$ac_link\"") >&5
11875 (eval $ac_link) 2>&5
11876 ac_status=$?
11877 echo "$as_me:11877: \$? = $ac_status" >&5
11878 (exit "$ac_status"); } &&
11879 { ac_try='test -s "conftest$ac_exeext"'
11880 { (eval echo "$as_me:11880: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:11883: \$? = $ac_status" >&5
11884 (exit "$ac_status"); }; }; then
11885 ac_cv_lib_X11_XOpenDisplay=yes
11886 else
11887 echo "$as_me: failed program was:" >&5
11888 cat "conftest.$ac_ext" >&5
11889 ac_cv_lib_X11_XOpenDisplay=no
11890 fi
11891 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11892 LIBS=$ac_check_lib_save_LIBS
11893 fi
11894 echo "$as_me:11894: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11895 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11896 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
11897
11898 cf_add_libs="$LIBS"
11899 # reverse order
11900 cf_add_0lib=
11901 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11902 # filter duplicates
11903 for cf_add_1lib in $cf_add_0lib; do
11904 for cf_add_2lib in $cf_add_libs; do
11905 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11906 cf_add_1lib=
11907 break
11908 fi
11909 done
11910 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11911 done
11912 LIBS="$cf_add_libs"
11913
11914 fi
11915
11916 fi
11917
11918 echo "$as_me:11918: checking for XtAppInitialize" >&5
11919 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11920 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 cat >"conftest.$ac_ext" <<_ACEOF
11924 #line 11924 "configure"
11925 #include "confdefs.h"
11926 #define XtAppInitialize autoconf_temporary
11927 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11928 #undef XtAppInitialize
11929
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11936 char XtAppInitialize (void);
11937
11938 int
11939 main (void)
11940 {
11941
11942 /* The GNU C library defines stubs for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11946 #error found stub for XtAppInitialize
11947 #endif
11948
11949 return XtAppInitialize ();
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11955 if { (eval echo "$as_me:11955: \"$ac_link\"") >&5
11956 (eval $ac_link) 2>&5
11957 ac_status=$?
11958 echo "$as_me:11958: \$? = $ac_status" >&5
11959 (exit "$ac_status"); } &&
11960 { ac_try='test -s "conftest$ac_exeext"'
11961 { (eval echo "$as_me:11961: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:11964: \$? = $ac_status" >&5
11965 (exit "$ac_status"); }; }; then
11966 ac_cv_func_XtAppInitialize=yes
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 cat "conftest.$ac_ext" >&5
11970 ac_cv_func_XtAppInitialize=no
11971 fi
11972 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11973 fi
11974 echo "$as_me:11974: result: $ac_cv_func_XtAppInitialize" >&5
11975 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11976 if test "$ac_cv_func_XtAppInitialize" = yes; then
11977 :
11978 else
11979
11980 echo "$as_me:11980: checking for XtAppInitialize in -lXt" >&5
11981 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11982 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-lXt $LIBS"
11987 cat >"conftest.$ac_ext" <<_ACEOF
11988 #line 11988 "configure"
11989 #include "confdefs.h"
11990
11991 /* Override any gcc2 internal prototype to avoid an error. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11997 char XtAppInitialize ();
11998 int
11999 main (void)
12000 {
12001 XtAppInitialize ();
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12007 if { (eval echo "$as_me:12007: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>&5
12009 ac_status=$?
12010 echo "$as_me:12010: \$? = $ac_status" >&5
12011 (exit "$ac_status"); } &&
12012 { ac_try='test -s "conftest$ac_exeext"'
12013 { (eval echo "$as_me:12013: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:12016: \$? = $ac_status" >&5
12017 (exit "$ac_status"); }; }; then
12018 ac_cv_lib_Xt_XtAppInitialize=yes
12019 else
12020 echo "$as_me: failed program was:" >&5
12021 cat "conftest.$ac_ext" >&5
12022 ac_cv_lib_Xt_XtAppInitialize=no
12023 fi
12024 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12025 LIBS=$ac_check_lib_save_LIBS
12026 fi
12027 echo "$as_me:12027: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
12028 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
12029 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
12030
12031 cat >>confdefs.h <<\EOF
12032 #define HAVE_LIBXT 1
12033 EOF
12034
12035 cf_have_X_LIBS=Xt
12036 LIBS="-lXt $LIBS"
12037 fi
12038
12039 fi
12040
12041 fi
12042
12043 if test "$cf_have_X_LIBS" = no ; then
12044 { echo "$as_me:12044: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12045 test program. You will have to check and add the proper libraries by hand
12046 to makefile." >&5
12047 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12048 test program. You will have to check and add the proper libraries by hand
12049 to makefile." >&2;}
12050 fi
12051
12052 for ac_header in \
12053 X11/DECkeysym.h \
12054 X11/Sunkeysym.h \
12055 X11/XF86keysym.h \
12056 X11/XKBlib.h \
12057 X11/TranslateI.h \
12058 X11/Xpoll.h \
12059 X11/extensions/XKB.h \
12060
12061 do
12062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12063 echo "$as_me:12063: checking for $ac_header" >&5
12064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068 cat >"conftest.$ac_ext" <<_ACEOF
12069 #line 12069 "configure"
12070 #include "confdefs.h"
12071 #include <$ac_header>
12072 _ACEOF
12073 if { (eval echo "$as_me:12073: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12074 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12075 ac_status=$?
12076 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:12079: \$? = $ac_status" >&5
12080 (exit "$ac_status"); } >/dev/null; then
12081 if test -s conftest.err; then
12082 ac_cpp_err=$ac_c_preproc_warn_flag
12083 else
12084 ac_cpp_err=
12085 fi
12086 else
12087 ac_cpp_err=yes
12088 fi
12089 if test -z "$ac_cpp_err"; then
12090 eval "$as_ac_Header=yes"
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 cat "conftest.$ac_ext" >&5
12094 eval "$as_ac_Header=no"
12095 fi
12096 rm -f conftest.err "conftest.$ac_ext"
12097 fi
12098 echo "$as_me:12098: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12099 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12100 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12101 cat >>confdefs.h <<EOF
12102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12103 EOF
12104
12105 fi
12106 done
12107
12108 ICON_SUFFIX=.xbm
12109
12110 cf_save_cppflags="${CPPFLAGS}"
12111 cf_save_ldflags="${LDFLAGS}"
12112
12113 echo "$as_me:12113: checking if you want to use the Xpm library for colored icon" >&5
12114 echo $ECHO_N "checking if you want to use the Xpm library for colored icon... $ECHO_C" >&6
12115
12116 # Check whether --with-xpm or --without-xpm was given.
12117 if test "${with_xpm+set}" = set; then
12118 withval="$with_xpm"
12119 cf_Xpm_library="$withval"
12120 else
12121 cf_Xpm_library=yes
12122 fi;
12123 echo "$as_me:12123: result: $cf_Xpm_library" >&5
12124 echo "${ECHO_T}$cf_Xpm_library" >&6
12125
12126 if test "$cf_Xpm_library" != no ; then
12127 if test "$cf_Xpm_library" != yes ; then
12128 CPPFLAGS="$CPPFLAGS -I$withval/include"
12129 LDFLAGS="$LDFLAGS -L$withval/lib"
12130 fi
12131 echo "$as_me:12131: checking for X11/xpm.h" >&5
12132 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12133 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136 cat >"conftest.$ac_ext" <<_ACEOF
12137 #line 12137 "configure"
12138 #include "confdefs.h"
12139 #include <X11/xpm.h>
12140 _ACEOF
12141 if { (eval echo "$as_me:12141: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12142 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12143 ac_status=$?
12144 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:12147: \$? = $ac_status" >&5
12148 (exit "$ac_status"); } >/dev/null; then
12149 if test -s conftest.err; then
12150 ac_cpp_err=$ac_c_preproc_warn_flag
12151 else
12152 ac_cpp_err=
12153 fi
12154 else
12155 ac_cpp_err=yes
12156 fi
12157 if test -z "$ac_cpp_err"; then
12158 ac_cv_header_X11_xpm_h=yes
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 cat "conftest.$ac_ext" >&5
12162 ac_cv_header_X11_xpm_h=no
12163 fi
12164 rm -f conftest.err "conftest.$ac_ext"
12165 fi
12166 echo "$as_me:12166: result: $ac_cv_header_X11_xpm_h" >&5
12167 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12168 if test "$ac_cv_header_X11_xpm_h" = yes; then
12169
12170 echo "$as_me:12170: checking for XpmCreatePixmapFromData in -lXpm" >&5
12171 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
12172 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lXpm -lX11 $X_LIBS $LIBS"
12177 cat >"conftest.$ac_ext" <<_ACEOF
12178 #line 12178 "configure"
12179 #include "confdefs.h"
12180
12181 /* Override any gcc2 internal prototype to avoid an error. */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 /* We use char because int might match the return type of a gcc2
12186 builtin and then its argument prototype would still apply. */
12187 char XpmCreatePixmapFromData ();
12188 int
12189 main (void)
12190 {
12191 XpmCreatePixmapFromData ();
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12197 if { (eval echo "$as_me:12197: \"$ac_link\"") >&5
12198 (eval $ac_link) 2>&5
12199 ac_status=$?
12200 echo "$as_me:12200: \$? = $ac_status" >&5
12201 (exit "$ac_status"); } &&
12202 { ac_try='test -s "conftest$ac_exeext"'
12203 { (eval echo "$as_me:12203: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:12206: \$? = $ac_status" >&5
12207 (exit "$ac_status"); }; }; then
12208 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 cat "conftest.$ac_ext" >&5
12212 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
12213 fi
12214 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12215 LIBS=$ac_check_lib_save_LIBS
12216 fi
12217 echo "$as_me:12217: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
12218 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
12219 if test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = yes; then
12220
12221 cat >>confdefs.h <<\EOF
12222 #define HAVE_LIBXPM 1
12223 EOF
12224
12225 ICON_SUFFIX=.xpm
12226 LIBS="-lXpm $LIBS"
12227 else
12228 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
12229 fi
12230
12231 else
12232 CPPFLAGS="${cf_save_cppflags}" LDFLAGS="${cf_save_ldflags}"
12233 fi
12234
12235 fi
12236
12237 echo "$as_me:12237: checking if you want to use the Xinerama extension" >&5
12238 echo $ECHO_N "checking if you want to use the Xinerama extension... $ECHO_C" >&6
12239
12240 # Check whether --with-xinerama or --without-xinerama was given.
12241 if test "${with_xinerama+set}" = set; then
12242 withval="$with_xinerama"
12243 cf_with_xinerama="$withval"
12244 else
12245 cf_with_xinerama=yes
12246 fi;
12247 echo "$as_me:12247: result: $cf_with_xinerama" >&5
12248 echo "${ECHO_T}$cf_with_xinerama" >&6
12249 if test "$cf_with_xinerama" = yes; then
12250
12251 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xinerama"; then
12252 test -n "$verbose" && echo " found package xinerama" 1>&6
12253
12254 echo "${as_me:-configure}:12254: testing found package xinerama ..." 1>&5
12255
12256 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`"
12257 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xinerama" 2>/dev/null`"
12258 test -n "$verbose" && echo " package xinerama CFLAGS: $cf_pkgconfig_incs" 1>&6
12259
12260 echo "${as_me:-configure}:12260: testing package xinerama CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12261
12262 test -n "$verbose" && echo " package xinerama LIBS: $cf_pkgconfig_libs" 1>&6
12263
12264 echo "${as_me:-configure}:12264: testing package xinerama LIBS: $cf_pkgconfig_libs ..." 1>&5
12265
12266 cf_fix_cppflags=no
12267 cf_new_cflags=
12268 cf_new_cppflags=
12269 cf_new_extra_cppflags=
12270
12271 for cf_add_cflags in $cf_pkgconfig_incs
12272 do
12273 case "$cf_fix_cppflags" in
12274 (no)
12275 case "$cf_add_cflags" in
12276 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12277 case "$cf_add_cflags" in
12278 (-D*)
12279 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12280
12281 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12282 && test -z "${cf_tst_cflags}" \
12283 && cf_fix_cppflags=yes
12284
12285 if test "$cf_fix_cppflags" = yes ; then
12286
12287 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12288 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12289
12290 continue
12291 elif test "${cf_tst_cflags}" = "\"'" ; then
12292
12293 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12294 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12295
12296 continue
12297 fi
12298 ;;
12299 esac
12300 case "$CPPFLAGS" in
12301 (*$cf_add_cflags)
12302 ;;
12303 (*)
12304 case "$cf_add_cflags" in
12305 (-D*)
12306 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12307
12308 CPPFLAGS=`echo "$CPPFLAGS" | \
12309 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12310 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12311
12312 ;;
12313 esac
12314
12315 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12316 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12317
12318 ;;
12319 esac
12320 ;;
12321 (*)
12322
12323 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12324 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12325
12326 ;;
12327 esac
12328 ;;
12329 (yes)
12330
12331 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12332 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12333
12334 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12335
12336 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12337 && test -z "${cf_tst_cflags}" \
12338 && cf_fix_cppflags=no
12339 ;;
12340 esac
12341 done
12342
12343 if test -n "$cf_new_cflags" ; then
12344
12345 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12346 CFLAGS="${CFLAGS}$cf_new_cflags"
12347
12348 fi
12349
12350 if test -n "$cf_new_cppflags" ; then
12351
12352 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12353 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12354
12355 fi
12356
12357 if test -n "$cf_new_extra_cppflags" ; then
12358
12359 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12360 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12361
12362 fi
12363
12364 cf_add_libs="$LIBS"
12365 # reverse order
12366 cf_add_0lib=
12367 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12368 # filter duplicates
12369 for cf_add_1lib in $cf_add_0lib; do
12370 for cf_add_2lib in $cf_add_libs; do
12371 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12372 cf_add_1lib=
12373 break
12374 fi
12375 done
12376 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12377 done
12378 LIBS="$cf_add_libs"
12379
12380 cat >>confdefs.h <<\EOF
12381 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
12382 EOF
12383
12384 else
12385 cf_pkgconfig_incs=
12386 cf_pkgconfig_libs=
12387
12388 echo "$as_me:12388: checking for XineramaQueryScreens in -lXinerama" >&5
12389 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
12390 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 ac_check_lib_save_LIBS=$LIBS
12394 LIBS="-lXinerama $LIBS"
12395 cat >"conftest.$ac_ext" <<_ACEOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12398
12399 /* Override any gcc2 internal prototype to avoid an error. */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 /* We use char because int might match the return type of a gcc2
12404 builtin and then its argument prototype would still apply. */
12405 char XineramaQueryScreens ();
12406 int
12407 main (void)
12408 {
12409 XineramaQueryScreens ();
12410 ;
12411 return 0;
12412 }
12413 _ACEOF
12414 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12415 if { (eval echo "$as_me:12415: \"$ac_link\"") >&5
12416 (eval $ac_link) 2>&5
12417 ac_status=$?
12418 echo "$as_me:12418: \$? = $ac_status" >&5
12419 (exit "$ac_status"); } &&
12420 { ac_try='test -s "conftest$ac_exeext"'
12421 { (eval echo "$as_me:12421: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:12424: \$? = $ac_status" >&5
12425 (exit "$ac_status"); }; }; then
12426 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 cat "conftest.$ac_ext" >&5
12430 ac_cv_lib_Xinerama_XineramaQueryScreens=no
12431 fi
12432 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12433 LIBS=$ac_check_lib_save_LIBS
12434 fi
12435 echo "$as_me:12435: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
12436 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
12437 if test "$ac_cv_lib_Xinerama_XineramaQueryScreens" = yes; then
12438
12439 cf_add_libs="$LIBS"
12440 # reverse order
12441 cf_add_0lib=
12442 for cf_add_1lib in -lXinerama; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12443 # filter duplicates
12444 for cf_add_1lib in $cf_add_0lib; do
12445 for cf_add_2lib in $cf_add_libs; do
12446 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12447 cf_add_1lib=
12448 break
12449 fi
12450 done
12451 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12452 done
12453 LIBS="$cf_add_libs"
12454
12455 for ac_header in \
12456 X11/extensions/Xinerama.h \
12457
12458 do
12459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12460 echo "$as_me:12460: checking for $ac_header" >&5
12461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465 cat >"conftest.$ac_ext" <<_ACEOF
12466 #line 12466 "configure"
12467 #include "confdefs.h"
12468 #include <$ac_header>
12469 _ACEOF
12470 if { (eval echo "$as_me:12470: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12471 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12472 ac_status=$?
12473 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:12476: \$? = $ac_status" >&5
12477 (exit "$ac_status"); } >/dev/null; then
12478 if test -s conftest.err; then
12479 ac_cpp_err=$ac_c_preproc_warn_flag
12480 else
12481 ac_cpp_err=
12482 fi
12483 else
12484 ac_cpp_err=yes
12485 fi
12486 if test -z "$ac_cpp_err"; then
12487 eval "$as_ac_Header=yes"
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 cat "conftest.$ac_ext" >&5
12491 eval "$as_ac_Header=no"
12492 fi
12493 rm -f conftest.err "conftest.$ac_ext"
12494 fi
12495 echo "$as_me:12495: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12496 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12497 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12498 cat >>confdefs.h <<EOF
12499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12500 EOF
12501
12502 fi
12503 done
12504
12505 fi
12506
12507 fi
12508
12509 fi
12510
12511 cf_x_athena=${cf_x_athena:-Xaw}
12512
12513 echo "$as_me:12513: checking if you want to link with Xaw 3d library" >&5
12514 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
12515 withval=
12516
12517 # Check whether --with-Xaw3d or --without-Xaw3d was given.
12518 if test "${with_Xaw3d+set}" = set; then
12519 withval="$with_Xaw3d"
12520
12521 fi;
12522 if test "$withval" = yes ; then
12523 cf_x_athena=Xaw3d
12524 echo "$as_me:12524: result: yes" >&5
12525 echo "${ECHO_T}yes" >&6
12526 else
12527 echo "$as_me:12527: result: no" >&5
12528 echo "${ECHO_T}no" >&6
12529 fi
12530
12531 echo "$as_me:12531: checking if you want to link with Xaw 3d xft library" >&5
12532 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
12533 withval=
12534
12535 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
12536 if test "${with_Xaw3dxft+set}" = set; then
12537 withval="$with_Xaw3dxft"
12538
12539 fi;
12540 if test "$withval" = yes ; then
12541 cf_x_athena=Xaw3dxft
12542 echo "$as_me:12542: result: yes" >&5
12543 echo "${ECHO_T}yes" >&6
12544 else
12545 echo "$as_me:12545: result: no" >&5
12546 echo "${ECHO_T}no" >&6
12547 fi
12548
12549 echo "$as_me:12549: checking if you want to link with neXT Athena library" >&5
12550 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
12551 withval=
12552
12553 # Check whether --with-neXtaw or --without-neXtaw was given.
12554 if test "${with_neXtaw+set}" = set; then
12555 withval="$with_neXtaw"
12556
12557 fi;
12558 if test "$withval" = yes ; then
12559 cf_x_athena=neXtaw
12560 echo "$as_me:12560: result: yes" >&5
12561 echo "${ECHO_T}yes" >&6
12562 else
12563 echo "$as_me:12563: result: no" >&5
12564 echo "${ECHO_T}no" >&6
12565 fi
12566
12567 echo "$as_me:12567: checking if you want to link with Athena-Plus library" >&5
12568 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
12569 withval=
12570
12571 # Check whether --with-XawPlus or --without-XawPlus was given.
12572 if test "${with_XawPlus+set}" = set; then
12573 withval="$with_XawPlus"
12574
12575 fi;
12576 if test "$withval" = yes ; then
12577 cf_x_athena=XawPlus
12578 echo "$as_me:12578: result: yes" >&5
12579 echo "${ECHO_T}yes" >&6
12580 else
12581 echo "$as_me:12581: result: no" >&5
12582 echo "${ECHO_T}no" >&6
12583 fi
12584
12585 cf_x_athena_lib=""
12586
12587 if test "$PKG_CONFIG" != none ; then
12588 cf_athena_list=
12589 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
12590 for cf_athena_pkg in \
12591 $cf_athena_list \
12592 ${cf_x_athena} \
12593 ${cf_x_athena}-devel \
12594 lib${cf_x_athena} \
12595 lib${cf_x_athena}-devel
12596 do
12597
12598 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_athena_pkg"; then
12599 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
12600
12601 echo "${as_me:-configure}:12601: testing found package $cf_athena_pkg ..." 1>&5
12602
12603 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_athena_pkg" 2>/dev/null`"
12604 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_athena_pkg" 2>/dev/null`"
12605 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
12606
12607 echo "${as_me:-configure}:12607: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12608
12609 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
12610
12611 echo "${as_me:-configure}:12611: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
12612
12613 cf_fix_cppflags=no
12614 cf_new_cflags=
12615 cf_new_cppflags=
12616 cf_new_extra_cppflags=
12617
12618 for cf_add_cflags in $cf_pkgconfig_incs
12619 do
12620 case "$cf_fix_cppflags" in
12621 (no)
12622 case "$cf_add_cflags" in
12623 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12624 case "$cf_add_cflags" in
12625 (-D*)
12626 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12627
12628 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12629 && test -z "${cf_tst_cflags}" \
12630 && cf_fix_cppflags=yes
12631
12632 if test "$cf_fix_cppflags" = yes ; then
12633
12634 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12635 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12636
12637 continue
12638 elif test "${cf_tst_cflags}" = "\"'" ; then
12639
12640 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12641 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12642
12643 continue
12644 fi
12645 ;;
12646 esac
12647 case "$CPPFLAGS" in
12648 (*$cf_add_cflags)
12649 ;;
12650 (*)
12651 case "$cf_add_cflags" in
12652 (-D*)
12653 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12654
12655 CPPFLAGS=`echo "$CPPFLAGS" | \
12656 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12657 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12658
12659 ;;
12660 esac
12661
12662 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12663 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12664
12665 ;;
12666 esac
12667 ;;
12668 (*)
12669
12670 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12671 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12672
12673 ;;
12674 esac
12675 ;;
12676 (yes)
12677
12678 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12679 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12680
12681 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12682
12683 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12684 && test -z "${cf_tst_cflags}" \
12685 && cf_fix_cppflags=no
12686 ;;
12687 esac
12688 done
12689
12690 if test -n "$cf_new_cflags" ; then
12691
12692 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12693 CFLAGS="${CFLAGS}$cf_new_cflags"
12694
12695 fi
12696
12697 if test -n "$cf_new_cppflags" ; then
12698
12699 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12700 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12701
12702 fi
12703
12704 if test -n "$cf_new_extra_cppflags" ; then
12705
12706 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12707 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12708
12709 fi
12710
12711 cf_add_libs="$LIBS"
12712 # reverse order
12713 cf_add_0lib=
12714 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12715 # filter duplicates
12716 for cf_add_1lib in $cf_add_0lib; do
12717 for cf_add_2lib in $cf_add_libs; do
12718 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12719 cf_add_1lib=
12720 break
12721 fi
12722 done
12723 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12724 done
12725 LIBS="$cf_add_libs"
12726
12727 cf_x_athena_lib="$cf_pkgconfig_libs"
12728
12729 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12730
12731 cat >>confdefs.h <<EOF
12732 #define $cf_x_athena_LIBS 1
12733 EOF
12734
12735 for cf_trim_lib in Xmu Xt X11
12736 do
12737 case "$LIBS" in
12738 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
12739 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
12740 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
12741
12742 echo "${as_me:-configure}:12742: testing ..trimmed $LIBS ..." 1>&5
12743
12744 ;;
12745 esac
12746 done
12747
12748 echo "$as_me:12748: checking for usable $cf_x_athena/Xmu package" >&5
12749 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
12750 if test "${cf_cv_xaw_compat+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753
12754 cat >"conftest.$ac_ext" <<_ACEOF
12755 #line 12755 "configure"
12756 #include "confdefs.h"
12757
12758 #include <X11/Xmu/CharSet.h>
12759
12760 int
12761 main (void)
12762 {
12763
12764 int check = XmuCompareISOLatin1("big", "small");
12765 (void)check;
12766
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12772 if { (eval echo "$as_me:12772: \"$ac_link\"") >&5
12773 (eval $ac_link) 2>&5
12774 ac_status=$?
12775 echo "$as_me:12775: \$? = $ac_status" >&5
12776 (exit "$ac_status"); } &&
12777 { ac_try='test -s "conftest$ac_exeext"'
12778 { (eval echo "$as_me:12778: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:12781: \$? = $ac_status" >&5
12782 (exit "$ac_status"); }; }; then
12783 cf_cv_xaw_compat=yes
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 cat "conftest.$ac_ext" >&5
12787 cf_cv_xaw_compat=no
12788 fi
12789 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12790 fi
12791 echo "$as_me:12791: result: $cf_cv_xaw_compat" >&5
12792 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
12793
12794 if test "$cf_cv_xaw_compat" = no
12795 then
12796 # workaround for broken ".pc" files...
12797 case "$cf_x_athena_lib" in
12798 (*-lXmu*)
12799 ;;
12800 (*)
12801 test -n "$verbose" && echo " work around broken package" 1>&6
12802
12803 echo "${as_me:-configure}:12803: testing work around broken package ..." 1>&5
12804
12805 cf_save_xmu="$LIBS"
12806 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
12807
12808 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xmu"; then
12809 test -n "$verbose" && echo " found package xmu" 1>&6
12810
12811 echo "${as_me:-configure}:12811: testing found package xmu ..." 1>&5
12812
12813 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xmu" 2>/dev/null`"
12814 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xmu" 2>/dev/null`"
12815 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
12816
12817 echo "${as_me:-configure}:12817: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12818
12819 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
12820
12821 echo "${as_me:-configure}:12821: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
12822
12823 cf_fix_cppflags=no
12824 cf_new_cflags=
12825 cf_new_cppflags=
12826 cf_new_extra_cppflags=
12827
12828 for cf_add_cflags in $cf_pkgconfig_incs
12829 do
12830 case "$cf_fix_cppflags" in
12831 (no)
12832 case "$cf_add_cflags" in
12833 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12834 case "$cf_add_cflags" in
12835 (-D*)
12836 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12837
12838 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12839 && test -z "${cf_tst_cflags}" \
12840 && cf_fix_cppflags=yes
12841
12842 if test "$cf_fix_cppflags" = yes ; then
12843
12844 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12845 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12846
12847 continue
12848 elif test "${cf_tst_cflags}" = "\"'" ; then
12849
12850 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12851 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12852
12853 continue
12854 fi
12855 ;;
12856 esac
12857 case "$CPPFLAGS" in
12858 (*$cf_add_cflags)
12859 ;;
12860 (*)
12861 case "$cf_add_cflags" in
12862 (-D*)
12863 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12864
12865 CPPFLAGS=`echo "$CPPFLAGS" | \
12866 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12867 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12868
12869 ;;
12870 esac
12871
12872 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12873 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12874
12875 ;;
12876 esac
12877 ;;
12878 (*)
12879
12880 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12881 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12882
12883 ;;
12884 esac
12885 ;;
12886 (yes)
12887
12888 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12889 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12890
12891 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12892
12893 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12894 && test -z "${cf_tst_cflags}" \
12895 && cf_fix_cppflags=no
12896 ;;
12897 esac
12898 done
12899
12900 if test -n "$cf_new_cflags" ; then
12901
12902 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12903 CFLAGS="${CFLAGS}$cf_new_cflags"
12904
12905 fi
12906
12907 if test -n "$cf_new_cppflags" ; then
12908
12909 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12910 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12911
12912 fi
12913
12914 if test -n "$cf_new_extra_cppflags" ; then
12915
12916 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12917 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12918
12919 fi
12920
12921 cf_add_libs="$LIBS"
12922 # reverse order
12923 cf_add_0lib=
12924 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12925 # filter duplicates
12926 for cf_add_1lib in $cf_add_0lib; do
12927 for cf_add_2lib in $cf_add_libs; do
12928 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12929 cf_add_1lib=
12930 break
12931 fi
12932 done
12933 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12934 done
12935 LIBS="$cf_add_libs"
12936
12937 LIBS="$cf_save_xmu"
12938
12939 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12940
12941 echo "${as_me:-configure}:12941: testing ...before $LIBS ..." 1>&5
12942
12943 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
12944 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12945
12946 echo "${as_me:-configure}:12946: testing ...after $LIBS ..." 1>&5
12947
12948 else
12949 cf_pkgconfig_incs=
12950 cf_pkgconfig_libs=
12951
12952 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12953
12954 echo "${as_me:-configure}:12954: testing ...before $LIBS ..." 1>&5
12955
12956 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
12957 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12958
12959 echo "${as_me:-configure}:12959: testing ...after $LIBS ..." 1>&5
12960
12961 fi
12962
12963 for cf_trim_lib in Xmu Xt X11
12964 do
12965 case "$LIBS" in
12966 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
12967 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
12968 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
12969
12970 echo "${as_me:-configure}:12970: testing ..trimmed $LIBS ..." 1>&5
12971
12972 ;;
12973 esac
12974 done
12975
12976 ;;
12977 esac
12978 fi
12979
12980 break
12981 else
12982 cf_pkgconfig_incs=
12983 cf_pkgconfig_libs=
12984 :
12985 fi
12986
12987 done
12988 fi
12989
12990 if test -z "$cf_x_athena_lib" ; then
12991
12992 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
12993 test -n "$verbose" && echo " found package Xext" 1>&6
12994
12995 echo "${as_me:-configure}:12995: testing found package Xext ..." 1>&5
12996
12997 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
12998 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
12999 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
13000
13001 echo "${as_me:-configure}:13001: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13002
13003 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
13004
13005 echo "${as_me:-configure}:13005: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
13006
13007 cf_fix_cppflags=no
13008 cf_new_cflags=
13009 cf_new_cppflags=
13010 cf_new_extra_cppflags=
13011
13012 for cf_add_cflags in $cf_pkgconfig_incs
13013 do
13014 case "$cf_fix_cppflags" in
13015 (no)
13016 case "$cf_add_cflags" in
13017 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13018 case "$cf_add_cflags" in
13019 (-D*)
13020 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13021
13022 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13023 && test -z "${cf_tst_cflags}" \
13024 && cf_fix_cppflags=yes
13025
13026 if test "$cf_fix_cppflags" = yes ; then
13027
13028 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13029 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13030
13031 continue
13032 elif test "${cf_tst_cflags}" = "\"'" ; then
13033
13034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13036
13037 continue
13038 fi
13039 ;;
13040 esac
13041 case "$CPPFLAGS" in
13042 (*$cf_add_cflags)
13043 ;;
13044 (*)
13045 case "$cf_add_cflags" in
13046 (-D*)
13047 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13048
13049 CPPFLAGS=`echo "$CPPFLAGS" | \
13050 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13051 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13052
13053 ;;
13054 esac
13055
13056 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13057 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13058
13059 ;;
13060 esac
13061 ;;
13062 (*)
13063
13064 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13065 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13066
13067 ;;
13068 esac
13069 ;;
13070 (yes)
13071
13072 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13073 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13074
13075 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13076
13077 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13078 && test -z "${cf_tst_cflags}" \
13079 && cf_fix_cppflags=no
13080 ;;
13081 esac
13082 done
13083
13084 if test -n "$cf_new_cflags" ; then
13085
13086 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13087 CFLAGS="${CFLAGS}$cf_new_cflags"
13088
13089 fi
13090
13091 if test -n "$cf_new_cppflags" ; then
13092
13093 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13094 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13095
13096 fi
13097
13098 if test -n "$cf_new_extra_cppflags" ; then
13099
13100 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13101 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13102
13103 fi
13104
13105 cf_add_libs="$LIBS"
13106 # reverse order
13107 cf_add_0lib=
13108 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13109 # filter duplicates
13110 for cf_add_1lib in $cf_add_0lib; do
13111 for cf_add_2lib in $cf_add_libs; do
13112 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13113 cf_add_1lib=
13114 break
13115 fi
13116 done
13117 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13118 done
13119 LIBS="$cf_add_libs"
13120
13121 :
13122 else
13123 cf_pkgconfig_incs=
13124 cf_pkgconfig_libs=
13125
13126 echo "$as_me:13126: checking for XextCreateExtension in -lXext" >&5
13127 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
13128 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131 ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-lXext $LIBS"
13133 cat >"conftest.$ac_ext" <<_ACEOF
13134 #line 13134 "configure"
13135 #include "confdefs.h"
13136
13137 /* Override any gcc2 internal prototype to avoid an error. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 /* We use char because int might match the return type of a gcc2
13142 builtin and then its argument prototype would still apply. */
13143 char XextCreateExtension ();
13144 int
13145 main (void)
13146 {
13147 XextCreateExtension ();
13148 ;
13149 return 0;
13150 }
13151 _ACEOF
13152 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13153 if { (eval echo "$as_me:13153: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>&5
13155 ac_status=$?
13156 echo "$as_me:13156: \$? = $ac_status" >&5
13157 (exit "$ac_status"); } &&
13158 { ac_try='test -s "conftest$ac_exeext"'
13159 { (eval echo "$as_me:13159: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:13162: \$? = $ac_status" >&5
13163 (exit "$ac_status"); }; }; then
13164 ac_cv_lib_Xext_XextCreateExtension=yes
13165 else
13166 echo "$as_me: failed program was:" >&5
13167 cat "conftest.$ac_ext" >&5
13168 ac_cv_lib_Xext_XextCreateExtension=no
13169 fi
13170 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13171 LIBS=$ac_check_lib_save_LIBS
13172 fi
13173 echo "$as_me:13173: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
13174 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
13175 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
13176
13177 cf_add_libs="$LIBS"
13178 # reverse order
13179 cf_add_0lib=
13180 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13181 # filter duplicates
13182 for cf_add_1lib in $cf_add_0lib; do
13183 for cf_add_2lib in $cf_add_libs; do
13184 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13185 cf_add_1lib=
13186 break
13187 fi
13188 done
13189 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13190 done
13191 LIBS="$cf_add_libs"
13192
13193 fi
13194
13195 fi
13196
13197 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
13198 # in some cases has installed dummy files in the former, other cases replaced
13199 # it with a link to the new location). This complicates the configure script.
13200 # Check for that pitfall, and recover using pkg-config
13201 #
13202 # If none of these are set, the configuration is almost certainly broken.
13203 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
13204 then
13205
13206 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
13207 test -n "$verbose" && echo " found package x11" 1>&6
13208
13209 echo "${as_me:-configure}:13209: testing found package x11 ..." 1>&5
13210
13211 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
13212 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
13213 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
13214
13215 echo "${as_me:-configure}:13215: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13216
13217 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
13218
13219 echo "${as_me:-configure}:13219: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
13220
13221 cf_fix_cppflags=no
13222 cf_new_cflags=
13223 cf_new_cppflags=
13224 cf_new_extra_cppflags=
13225
13226 for cf_add_cflags in $cf_pkgconfig_incs
13227 do
13228 case "$cf_fix_cppflags" in
13229 (no)
13230 case "$cf_add_cflags" in
13231 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13232 case "$cf_add_cflags" in
13233 (-D*)
13234 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13235
13236 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13237 && test -z "${cf_tst_cflags}" \
13238 && cf_fix_cppflags=yes
13239
13240 if test "$cf_fix_cppflags" = yes ; then
13241
13242 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13243 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13244
13245 continue
13246 elif test "${cf_tst_cflags}" = "\"'" ; then
13247
13248 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13249 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13250
13251 continue
13252 fi
13253 ;;
13254 esac
13255 case "$CPPFLAGS" in
13256 (*$cf_add_cflags)
13257 ;;
13258 (*)
13259 case "$cf_add_cflags" in
13260 (-D*)
13261 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13262
13263 CPPFLAGS=`echo "$CPPFLAGS" | \
13264 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13265 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13266
13267 ;;
13268 esac
13269
13270 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13271 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13272
13273 ;;
13274 esac
13275 ;;
13276 (*)
13277
13278 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13279 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13280
13281 ;;
13282 esac
13283 ;;
13284 (yes)
13285
13286 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13287 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13288
13289 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13290
13291 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13292 && test -z "${cf_tst_cflags}" \
13293 && cf_fix_cppflags=no
13294 ;;
13295 esac
13296 done
13297
13298 if test -n "$cf_new_cflags" ; then
13299
13300 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13301 CFLAGS="${CFLAGS}$cf_new_cflags"
13302
13303 fi
13304
13305 if test -n "$cf_new_cppflags" ; then
13306
13307 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13308 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13309
13310 fi
13311
13312 if test -n "$cf_new_extra_cppflags" ; then
13313
13314 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13315 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13316
13317 fi
13318
13319 cf_add_libs="$LIBS"
13320 # reverse order
13321 cf_add_0lib=
13322 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13323 # filter duplicates
13324 for cf_add_1lib in $cf_add_0lib; do
13325 for cf_add_2lib in $cf_add_libs; do
13326 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13327 cf_add_1lib=
13328 break
13329 fi
13330 done
13331 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13332 done
13333 LIBS="$cf_add_libs"
13334
13335 :
13336 else
13337 cf_pkgconfig_incs=
13338 cf_pkgconfig_libs=
13339 { echo "$as_me:13339: WARNING: unable to find X11 library" >&5
13340 echo "$as_me: WARNING: unable to find X11 library" >&2;}
13341 fi
13342
13343 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
13344 test -n "$verbose" && echo " found package ice" 1>&6
13345
13346 echo "${as_me:-configure}:13346: testing found package ice ..." 1>&5
13347
13348 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
13349 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
13350 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
13351
13352 echo "${as_me:-configure}:13352: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13353
13354 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
13355
13356 echo "${as_me:-configure}:13356: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
13357
13358 cf_fix_cppflags=no
13359 cf_new_cflags=
13360 cf_new_cppflags=
13361 cf_new_extra_cppflags=
13362
13363 for cf_add_cflags in $cf_pkgconfig_incs
13364 do
13365 case "$cf_fix_cppflags" in
13366 (no)
13367 case "$cf_add_cflags" in
13368 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13369 case "$cf_add_cflags" in
13370 (-D*)
13371 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13372
13373 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13374 && test -z "${cf_tst_cflags}" \
13375 && cf_fix_cppflags=yes
13376
13377 if test "$cf_fix_cppflags" = yes ; then
13378
13379 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13380 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13381
13382 continue
13383 elif test "${cf_tst_cflags}" = "\"'" ; then
13384
13385 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13386 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13387
13388 continue
13389 fi
13390 ;;
13391 esac
13392 case "$CPPFLAGS" in
13393 (*$cf_add_cflags)
13394 ;;
13395 (*)
13396 case "$cf_add_cflags" in
13397 (-D*)
13398 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13399
13400 CPPFLAGS=`echo "$CPPFLAGS" | \
13401 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13402 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13403
13404 ;;
13405 esac
13406
13407 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13408 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13409
13410 ;;
13411 esac
13412 ;;
13413 (*)
13414
13415 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13416 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13417
13418 ;;
13419 esac
13420 ;;
13421 (yes)
13422
13423 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13424 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13425
13426 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13427
13428 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13429 && test -z "${cf_tst_cflags}" \
13430 && cf_fix_cppflags=no
13431 ;;
13432 esac
13433 done
13434
13435 if test -n "$cf_new_cflags" ; then
13436
13437 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13438 CFLAGS="${CFLAGS}$cf_new_cflags"
13439
13440 fi
13441
13442 if test -n "$cf_new_cppflags" ; then
13443
13444 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13445 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13446
13447 fi
13448
13449 if test -n "$cf_new_extra_cppflags" ; then
13450
13451 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13452 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13453
13454 fi
13455
13456 cf_add_libs="$LIBS"
13457 # reverse order
13458 cf_add_0lib=
13459 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13460 # filter duplicates
13461 for cf_add_1lib in $cf_add_0lib; do
13462 for cf_add_2lib in $cf_add_libs; do
13463 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13464 cf_add_1lib=
13465 break
13466 fi
13467 done
13468 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13469 done
13470 LIBS="$cf_add_libs"
13471
13472 :
13473 else
13474 cf_pkgconfig_incs=
13475 cf_pkgconfig_libs=
13476 { echo "$as_me:13476: WARNING: unable to find ICE library" >&5
13477 echo "$as_me: WARNING: unable to find ICE library" >&2;}
13478 fi
13479
13480 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
13481 test -n "$verbose" && echo " found package sm" 1>&6
13482
13483 echo "${as_me:-configure}:13483: testing found package sm ..." 1>&5
13484
13485 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
13486 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
13487 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
13488
13489 echo "${as_me:-configure}:13489: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13490
13491 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
13492
13493 echo "${as_me:-configure}:13493: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
13494
13495 cf_fix_cppflags=no
13496 cf_new_cflags=
13497 cf_new_cppflags=
13498 cf_new_extra_cppflags=
13499
13500 for cf_add_cflags in $cf_pkgconfig_incs
13501 do
13502 case "$cf_fix_cppflags" in
13503 (no)
13504 case "$cf_add_cflags" in
13505 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13506 case "$cf_add_cflags" in
13507 (-D*)
13508 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13509
13510 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13511 && test -z "${cf_tst_cflags}" \
13512 && cf_fix_cppflags=yes
13513
13514 if test "$cf_fix_cppflags" = yes ; then
13515
13516 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13517 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13518
13519 continue
13520 elif test "${cf_tst_cflags}" = "\"'" ; then
13521
13522 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13523 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13524
13525 continue
13526 fi
13527 ;;
13528 esac
13529 case "$CPPFLAGS" in
13530 (*$cf_add_cflags)
13531 ;;
13532 (*)
13533 case "$cf_add_cflags" in
13534 (-D*)
13535 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13536
13537 CPPFLAGS=`echo "$CPPFLAGS" | \
13538 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13539 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13540
13541 ;;
13542 esac
13543
13544 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13545 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13546
13547 ;;
13548 esac
13549 ;;
13550 (*)
13551
13552 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13553 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13554
13555 ;;
13556 esac
13557 ;;
13558 (yes)
13559
13560 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13561 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13562
13563 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13564
13565 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13566 && test -z "${cf_tst_cflags}" \
13567 && cf_fix_cppflags=no
13568 ;;
13569 esac
13570 done
13571
13572 if test -n "$cf_new_cflags" ; then
13573
13574 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13575 CFLAGS="${CFLAGS}$cf_new_cflags"
13576
13577 fi
13578
13579 if test -n "$cf_new_cppflags" ; then
13580
13581 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13582 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13583
13584 fi
13585
13586 if test -n "$cf_new_extra_cppflags" ; then
13587
13588 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13589 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13590
13591 fi
13592
13593 cf_add_libs="$LIBS"
13594 # reverse order
13595 cf_add_0lib=
13596 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13597 # filter duplicates
13598 for cf_add_1lib in $cf_add_0lib; do
13599 for cf_add_2lib in $cf_add_libs; do
13600 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13601 cf_add_1lib=
13602 break
13603 fi
13604 done
13605 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13606 done
13607 LIBS="$cf_add_libs"
13608
13609 :
13610 else
13611 cf_pkgconfig_incs=
13612 cf_pkgconfig_libs=
13613 { echo "$as_me:13613: WARNING: unable to find SM library" >&5
13614 echo "$as_me: WARNING: unable to find SM library" >&2;}
13615 fi
13616
13617 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
13618 test -n "$verbose" && echo " found package xt" 1>&6
13619
13620 echo "${as_me:-configure}:13620: testing found package xt ..." 1>&5
13621
13622 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
13623 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
13624 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13625
13626 echo "${as_me:-configure}:13626: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13627
13628 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13629
13630 echo "${as_me:-configure}:13630: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13631
13632 cf_fix_cppflags=no
13633 cf_new_cflags=
13634 cf_new_cppflags=
13635 cf_new_extra_cppflags=
13636
13637 for cf_add_cflags in $cf_pkgconfig_incs
13638 do
13639 case "$cf_fix_cppflags" in
13640 (no)
13641 case "$cf_add_cflags" in
13642 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13643 case "$cf_add_cflags" in
13644 (-D*)
13645 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13646
13647 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13648 && test -z "${cf_tst_cflags}" \
13649 && cf_fix_cppflags=yes
13650
13651 if test "$cf_fix_cppflags" = yes ; then
13652
13653 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13654 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13655
13656 continue
13657 elif test "${cf_tst_cflags}" = "\"'" ; then
13658
13659 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13660 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13661
13662 continue
13663 fi
13664 ;;
13665 esac
13666 case "$CPPFLAGS" in
13667 (*$cf_add_cflags)
13668 ;;
13669 (*)
13670 case "$cf_add_cflags" in
13671 (-D*)
13672 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13673
13674 CPPFLAGS=`echo "$CPPFLAGS" | \
13675 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13676 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13677
13678 ;;
13679 esac
13680
13681 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13682 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13683
13684 ;;
13685 esac
13686 ;;
13687 (*)
13688
13689 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13690 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13691
13692 ;;
13693 esac
13694 ;;
13695 (yes)
13696
13697 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13698 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13699
13700 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13701
13702 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13703 && test -z "${cf_tst_cflags}" \
13704 && cf_fix_cppflags=no
13705 ;;
13706 esac
13707 done
13708
13709 if test -n "$cf_new_cflags" ; then
13710
13711 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13712 CFLAGS="${CFLAGS}$cf_new_cflags"
13713
13714 fi
13715
13716 if test -n "$cf_new_cppflags" ; then
13717
13718 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13719 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13720
13721 fi
13722
13723 if test -n "$cf_new_extra_cppflags" ; then
13724
13725 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13726 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13727
13728 fi
13729
13730 cf_add_libs="$LIBS"
13731 # reverse order
13732 cf_add_0lib=
13733 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13734 # filter duplicates
13735 for cf_add_1lib in $cf_add_0lib; do
13736 for cf_add_2lib in $cf_add_libs; do
13737 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13738 cf_add_1lib=
13739 break
13740 fi
13741 done
13742 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13743 done
13744 LIBS="$cf_add_libs"
13745
13746 :
13747 else
13748 cf_pkgconfig_incs=
13749 cf_pkgconfig_libs=
13750 { echo "$as_me:13750: WARNING: unable to find Xt library" >&5
13751 echo "$as_me: WARNING: unable to find Xt library" >&2;}
13752 fi
13753
13754 else
13755 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
13756 fi
13757
13758 cf_have_X_LIBS=no
13759
13760 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "xt"; then
13761 test -n "$verbose" && echo " found package xt" 1>&6
13762
13763 echo "${as_me:-configure}:13763: testing found package xt ..." 1>&5
13764
13765 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "xt" 2>/dev/null`"
13766 cf_pkgconfig_libs="`$PKG_CONFIG --libs "xt" 2>/dev/null`"
13767 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13768
13769 echo "${as_me:-configure}:13769: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13770
13771 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13772
13773 echo "${as_me:-configure}:13773: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13774
13775 cf_fix_cppflags=no
13776 cf_new_cflags=
13777 cf_new_cppflags=
13778 cf_new_extra_cppflags=
13779
13780 for cf_add_cflags in $cf_pkgconfig_incs
13781 do
13782 case "$cf_fix_cppflags" in
13783 (no)
13784 case "$cf_add_cflags" in
13785 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13786 case "$cf_add_cflags" in
13787 (-D*)
13788 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13789
13790 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13791 && test -z "${cf_tst_cflags}" \
13792 && cf_fix_cppflags=yes
13793
13794 if test "$cf_fix_cppflags" = yes ; then
13795
13796 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13797 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13798
13799 continue
13800 elif test "${cf_tst_cflags}" = "\"'" ; then
13801
13802 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13803 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13804
13805 continue
13806 fi
13807 ;;
13808 esac
13809 case "$CPPFLAGS" in
13810 (*$cf_add_cflags)
13811 ;;
13812 (*)
13813 case "$cf_add_cflags" in
13814 (-D*)
13815 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13816
13817 CPPFLAGS=`echo "$CPPFLAGS" | \
13818 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13819 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13820
13821 ;;
13822 esac
13823
13824 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13825 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13826
13827 ;;
13828 esac
13829 ;;
13830 (*)
13831
13832 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13833 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13834
13835 ;;
13836 esac
13837 ;;
13838 (yes)
13839
13840 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13841 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13842
13843 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
13844
13845 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13846 && test -z "${cf_tst_cflags}" \
13847 && cf_fix_cppflags=no
13848 ;;
13849 esac
13850 done
13851
13852 if test -n "$cf_new_cflags" ; then
13853
13854 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13855 CFLAGS="${CFLAGS}$cf_new_cflags"
13856
13857 fi
13858
13859 if test -n "$cf_new_cppflags" ; then
13860
13861 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13862 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13863
13864 fi
13865
13866 if test -n "$cf_new_extra_cppflags" ; then
13867
13868 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13869 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13870
13871 fi
13872
13873 cf_add_libs="$LIBS"
13874 # reverse order
13875 cf_add_0lib=
13876 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13877 # filter duplicates
13878 for cf_add_1lib in $cf_add_0lib; do
13879 for cf_add_2lib in $cf_add_libs; do
13880 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13881 cf_add_1lib=
13882 break
13883 fi
13884 done
13885 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13886 done
13887 LIBS="$cf_add_libs"
13888
13889 case "x$LIBS" in
13890 (*-lX11*)
13891 ;;
13892 (*)
13893 # we have an "xt" package, but it may omit Xt's dependency on X11
13894 echo "$as_me:13894: checking for usable X dependency" >&5
13895 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
13896 if test "${cf_cv_xt_x11_compat+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899
13900 cat >"conftest.$ac_ext" <<_ACEOF
13901 #line 13901 "configure"
13902 #include "confdefs.h"
13903
13904 #include <X11/Xlib.h>
13905
13906 int
13907 main (void)
13908 {
13909
13910 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
13911 int rc2 = XClearWindow((Display*) 0, (Window) 0);
13912 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
13913 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13920 if { (eval echo "$as_me:13920: \"$ac_link\"") >&5
13921 (eval $ac_link) 2>&5
13922 ac_status=$?
13923 echo "$as_me:13923: \$? = $ac_status" >&5
13924 (exit "$ac_status"); } &&
13925 { ac_try='test -s "conftest$ac_exeext"'
13926 { (eval echo "$as_me:13926: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:13929: \$? = $ac_status" >&5
13930 (exit "$ac_status"); }; }; then
13931 cf_cv_xt_x11_compat=yes
13932 else
13933 echo "$as_me: failed program was:" >&5
13934 cat "conftest.$ac_ext" >&5
13935 cf_cv_xt_x11_compat=no
13936 fi
13937 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13938 fi
13939 echo "$as_me:13939: result: $cf_cv_xt_x11_compat" >&5
13940 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
13941 if test "$cf_cv_xt_x11_compat" = no
13942 then
13943 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
13944
13945 echo "${as_me:-configure}:13945: testing work around broken X11 dependency ..." 1>&5
13946
13947 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
13948
13949 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "x11"; then
13950 test -n "$verbose" && echo " found package x11" 1>&6
13951
13952 echo "${as_me:-configure}:13952: testing found package x11 ..." 1>&5
13953
13954 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "x11" 2>/dev/null`"
13955 cf_pkgconfig_libs="`$PKG_CONFIG --libs "x11" 2>/dev/null`"
13956 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
13957
13958 echo "${as_me:-configure}:13958: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13959
13960 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
13961
13962 echo "${as_me:-configure}:13962: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
13963
13964 cf_fix_cppflags=no
13965 cf_new_cflags=
13966 cf_new_cppflags=
13967 cf_new_extra_cppflags=
13968
13969 for cf_add_cflags in $cf_pkgconfig_incs
13970 do
13971 case "$cf_fix_cppflags" in
13972 (no)
13973 case "$cf_add_cflags" in
13974 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13975 case "$cf_add_cflags" in
13976 (-D*)
13977 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13978
13979 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13980 && test -z "${cf_tst_cflags}" \
13981 && cf_fix_cppflags=yes
13982
13983 if test "$cf_fix_cppflags" = yes ; then
13984
13985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13987
13988 continue
13989 elif test "${cf_tst_cflags}" = "\"'" ; then
13990
13991 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13992 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13993
13994 continue
13995 fi
13996 ;;
13997 esac
13998 case "$CPPFLAGS" in
13999 (*$cf_add_cflags)
14000 ;;
14001 (*)
14002 case "$cf_add_cflags" in
14003 (-D*)
14004 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14005
14006 CPPFLAGS=`echo "$CPPFLAGS" | \
14007 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14008 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14009
14010 ;;
14011 esac
14012
14013 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14014 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14015
14016 ;;
14017 esac
14018 ;;
14019 (*)
14020
14021 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14022 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14023
14024 ;;
14025 esac
14026 ;;
14027 (yes)
14028
14029 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14030 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14031
14032 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14033
14034 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14035 && test -z "${cf_tst_cflags}" \
14036 && cf_fix_cppflags=no
14037 ;;
14038 esac
14039 done
14040
14041 if test -n "$cf_new_cflags" ; then
14042
14043 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14044 CFLAGS="${CFLAGS}$cf_new_cflags"
14045
14046 fi
14047
14048 if test -n "$cf_new_cppflags" ; then
14049
14050 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14051 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14052
14053 fi
14054
14055 if test -n "$cf_new_extra_cppflags" ; then
14056
14057 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14058 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14059
14060 fi
14061
14062 cf_add_libs="$LIBS"
14063 # reverse order
14064 cf_add_0lib=
14065 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14066 # filter duplicates
14067 for cf_add_1lib in $cf_add_0lib; do
14068 for cf_add_2lib in $cf_add_libs; do
14069 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14070 cf_add_1lib=
14071 break
14072 fi
14073 done
14074 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14075 done
14076 LIBS="$cf_add_libs"
14077
14078 :
14079 else
14080 cf_pkgconfig_incs=
14081 cf_pkgconfig_libs=
14082
14083 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14084
14085 echo "${as_me:-configure}:14085: testing ...before $LIBS ..." 1>&5
14086
14087 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
14088 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14089
14090 echo "${as_me:-configure}:14090: testing ...after $LIBS ..." 1>&5
14091
14092 fi
14093
14094 fi
14095 ;;
14096 esac
14097
14098 echo "$as_me:14098: checking for usable X Toolkit package" >&5
14099 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
14100 if test "${cf_cv_xt_ice_compat+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103
14104 cat >"conftest.$ac_ext" <<_ACEOF
14105 #line 14105 "configure"
14106 #include "confdefs.h"
14107
14108 #include <X11/Shell.h>
14109
14110 int
14111 main (void)
14112 {
14113 int num = IceConnectionNumber(0); (void) num
14114
14115 ;
14116 return 0;
14117 }
14118 _ACEOF
14119 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14120 if { (eval echo "$as_me:14120: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>&5
14122 ac_status=$?
14123 echo "$as_me:14123: \$? = $ac_status" >&5
14124 (exit "$ac_status"); } &&
14125 { ac_try='test -s "conftest$ac_exeext"'
14126 { (eval echo "$as_me:14126: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:14129: \$? = $ac_status" >&5
14130 (exit "$ac_status"); }; }; then
14131 cf_cv_xt_ice_compat=yes
14132 else
14133 echo "$as_me: failed program was:" >&5
14134 cat "conftest.$ac_ext" >&5
14135 cf_cv_xt_ice_compat=no
14136 fi
14137 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14138 fi
14139 echo "$as_me:14139: result: $cf_cv_xt_ice_compat" >&5
14140 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
14141
14142 if test "$cf_cv_xt_ice_compat" = no
14143 then
14144 # workaround for broken ".pc" files used for X Toolkit.
14145 case "x$X_PRE_LIBS" in
14146 (*-lICE*)
14147 case "x$LIBS" in
14148 (*-lICE*)
14149 ;;
14150 (*)
14151 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
14152
14153 echo "${as_me:-configure}:14153: testing work around broken ICE dependency ..." 1>&5
14154
14155 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "ice"; then
14156 test -n "$verbose" && echo " found package ice" 1>&6
14157
14158 echo "${as_me:-configure}:14158: testing found package ice ..." 1>&5
14159
14160 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "ice" 2>/dev/null`"
14161 cf_pkgconfig_libs="`$PKG_CONFIG --libs "ice" 2>/dev/null`"
14162 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14163
14164 echo "${as_me:-configure}:14164: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14165
14166 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14167
14168 echo "${as_me:-configure}:14168: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14169
14170 cf_fix_cppflags=no
14171 cf_new_cflags=
14172 cf_new_cppflags=
14173 cf_new_extra_cppflags=
14174
14175 for cf_add_cflags in $cf_pkgconfig_incs
14176 do
14177 case "$cf_fix_cppflags" in
14178 (no)
14179 case "$cf_add_cflags" in
14180 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14181 case "$cf_add_cflags" in
14182 (-D*)
14183 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14184
14185 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14186 && test -z "${cf_tst_cflags}" \
14187 && cf_fix_cppflags=yes
14188
14189 if test "$cf_fix_cppflags" = yes ; then
14190
14191 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14192 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14193
14194 continue
14195 elif test "${cf_tst_cflags}" = "\"'" ; then
14196
14197 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14198 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14199
14200 continue
14201 fi
14202 ;;
14203 esac
14204 case "$CPPFLAGS" in
14205 (*$cf_add_cflags)
14206 ;;
14207 (*)
14208 case "$cf_add_cflags" in
14209 (-D*)
14210 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14211
14212 CPPFLAGS=`echo "$CPPFLAGS" | \
14213 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14214 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14215
14216 ;;
14217 esac
14218
14219 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14220 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14221
14222 ;;
14223 esac
14224 ;;
14225 (*)
14226
14227 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14228 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14229
14230 ;;
14231 esac
14232 ;;
14233 (yes)
14234
14235 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14236 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14237
14238 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14239
14240 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14241 && test -z "${cf_tst_cflags}" \
14242 && cf_fix_cppflags=no
14243 ;;
14244 esac
14245 done
14246
14247 if test -n "$cf_new_cflags" ; then
14248
14249 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14250 CFLAGS="${CFLAGS}$cf_new_cflags"
14251
14252 fi
14253
14254 if test -n "$cf_new_cppflags" ; then
14255
14256 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14257 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14258
14259 fi
14260
14261 if test -n "$cf_new_extra_cppflags" ; then
14262
14263 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14264 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14265
14266 fi
14267
14268 cf_add_libs="$LIBS"
14269 # reverse order
14270 cf_add_0lib=
14271 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14272 # filter duplicates
14273 for cf_add_1lib in $cf_add_0lib; do
14274 for cf_add_2lib in $cf_add_libs; do
14275 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14276 cf_add_1lib=
14277 break
14278 fi
14279 done
14280 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14281 done
14282 LIBS="$cf_add_libs"
14283
14284 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "sm"; then
14285 test -n "$verbose" && echo " found package sm" 1>&6
14286
14287 echo "${as_me:-configure}:14287: testing found package sm ..." 1>&5
14288
14289 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "sm" 2>/dev/null`"
14290 cf_pkgconfig_libs="`$PKG_CONFIG --libs "sm" 2>/dev/null`"
14291 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
14292
14293 echo "${as_me:-configure}:14293: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14294
14295 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
14296
14297 echo "${as_me:-configure}:14297: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
14298
14299 cf_fix_cppflags=no
14300 cf_new_cflags=
14301 cf_new_cppflags=
14302 cf_new_extra_cppflags=
14303
14304 for cf_add_cflags in $cf_pkgconfig_incs
14305 do
14306 case "$cf_fix_cppflags" in
14307 (no)
14308 case "$cf_add_cflags" in
14309 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14310 case "$cf_add_cflags" in
14311 (-D*)
14312 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14313
14314 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14315 && test -z "${cf_tst_cflags}" \
14316 && cf_fix_cppflags=yes
14317
14318 if test "$cf_fix_cppflags" = yes ; then
14319
14320 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14321 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14322
14323 continue
14324 elif test "${cf_tst_cflags}" = "\"'" ; then
14325
14326 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14327 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14328
14329 continue
14330 fi
14331 ;;
14332 esac
14333 case "$CPPFLAGS" in
14334 (*$cf_add_cflags)
14335 ;;
14336 (*)
14337 case "$cf_add_cflags" in
14338 (-D*)
14339 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14340
14341 CPPFLAGS=`echo "$CPPFLAGS" | \
14342 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14343 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14344
14345 ;;
14346 esac
14347
14348 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14349 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14350
14351 ;;
14352 esac
14353 ;;
14354 (*)
14355
14356 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14357 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14358
14359 ;;
14360 esac
14361 ;;
14362 (yes)
14363
14364 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14365 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14366
14367 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14368
14369 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14370 && test -z "${cf_tst_cflags}" \
14371 && cf_fix_cppflags=no
14372 ;;
14373 esac
14374 done
14375
14376 if test -n "$cf_new_cflags" ; then
14377
14378 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14379 CFLAGS="${CFLAGS}$cf_new_cflags"
14380
14381 fi
14382
14383 if test -n "$cf_new_cppflags" ; then
14384
14385 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14386 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14387
14388 fi
14389
14390 if test -n "$cf_new_extra_cppflags" ; then
14391
14392 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14393 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14394
14395 fi
14396
14397 cf_add_libs="$LIBS"
14398 # reverse order
14399 cf_add_0lib=
14400 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14401 # filter duplicates
14402 for cf_add_1lib in $cf_add_0lib; do
14403 for cf_add_2lib in $cf_add_libs; do
14404 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14405 cf_add_1lib=
14406 break
14407 fi
14408 done
14409 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14410 done
14411 LIBS="$cf_add_libs"
14412
14413 :
14414 else
14415 cf_pkgconfig_incs=
14416 cf_pkgconfig_libs=
14417 :
14418 fi
14419
14420 else
14421 cf_pkgconfig_incs=
14422 cf_pkgconfig_libs=
14423
14424 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14425
14426 echo "${as_me:-configure}:14426: testing ...before $LIBS ..." 1>&5
14427
14428 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
14429 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14430
14431 echo "${as_me:-configure}:14431: testing ...after $LIBS ..." 1>&5
14432
14433 fi
14434
14435 ;;
14436 esac
14437 ;;
14438 esac
14439 fi
14440
14441 cf_have_X_LIBS=yes
14442
14443 else
14444 cf_pkgconfig_incs=
14445 cf_pkgconfig_libs=
14446
14447 LDFLAGS="$X_LIBS $LDFLAGS"
14448
14449 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
14450
14451 echo "${as_me:-configure}:14451: testing checking additions to CFLAGS ..." 1>&5
14452
14453 cf_check_cflags="$CFLAGS"
14454 cf_check_cppflags="$CPPFLAGS"
14455
14456 cf_fix_cppflags=no
14457 cf_new_cflags=
14458 cf_new_cppflags=
14459 cf_new_extra_cppflags=
14460
14461 for cf_add_cflags in $X_CFLAGS
14462 do
14463 case "$cf_fix_cppflags" in
14464 (no)
14465 case "$cf_add_cflags" in
14466 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14467 case "$cf_add_cflags" in
14468 (-D*)
14469 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14470
14471 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14472 && test -z "${cf_tst_cflags}" \
14473 && cf_fix_cppflags=yes
14474
14475 if test "$cf_fix_cppflags" = yes ; then
14476
14477 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14478 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14479
14480 continue
14481 elif test "${cf_tst_cflags}" = "\"'" ; then
14482
14483 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14484 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14485
14486 continue
14487 fi
14488 ;;
14489 esac
14490 case "$CPPFLAGS" in
14491 (*$cf_add_cflags)
14492 ;;
14493 (*)
14494 case "$cf_add_cflags" in
14495 (-D*)
14496 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14497
14498 CPPFLAGS=`echo "$CPPFLAGS" | \
14499 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14500 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14501
14502 ;;
14503 esac
14504
14505 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14506 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14507
14508 ;;
14509 esac
14510 ;;
14511 (*)
14512
14513 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14514 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14515
14516 ;;
14517 esac
14518 ;;
14519 (yes)
14520
14521 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14522 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14523
14524 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
14525
14526 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14527 && test -z "${cf_tst_cflags}" \
14528 && cf_fix_cppflags=no
14529 ;;
14530 esac
14531 done
14532
14533 if test -n "$cf_new_cflags" ; then
14534 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
14535
14536 echo "${as_me:-configure}:14536: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
14537
14538 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14539 CFLAGS="${CFLAGS}$cf_new_cflags"
14540
14541 fi
14542
14543 if test -n "$cf_new_cppflags" ; then
14544 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
14545
14546 echo "${as_me:-configure}:14546: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
14547
14548 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14549 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14550
14551 fi
14552
14553 if test -n "$cf_new_extra_cppflags" ; then
14554 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
14555
14556 echo "${as_me:-configure}:14556: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
14557
14558 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14559 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14560
14561 fi
14562
14563 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
14564 cat >"conftest.$ac_ext" <<_ACEOF
14565 #line 14565 "configure"
14566 #include "confdefs.h"
14567 #include <stdio.h>
14568 int
14569 main (void)
14570 {
14571 printf("Hello world");
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14577 if { (eval echo "$as_me:14577: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>&5
14579 ac_status=$?
14580 echo "$as_me:14580: \$? = $ac_status" >&5
14581 (exit "$ac_status"); } &&
14582 { ac_try='test -s "conftest$ac_exeext"'
14583 { (eval echo "$as_me:14583: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:14586: \$? = $ac_status" >&5
14587 (exit "$ac_status"); }; }; then
14588 :
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 cat "conftest.$ac_ext" >&5
14592 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
14593
14594 echo "${as_me:-configure}:14594: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
14595
14596 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
14597 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
14598
14599 echo "${as_me:-configure}:14599: testing but keeping change to \$CPPFLAGS ..." 1>&5
14600
14601 fi
14602 CFLAGS="$cf_check_cflags"
14603 fi
14604 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14605 fi
14606
14607 echo "$as_me:14607: checking for XOpenDisplay" >&5
14608 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
14609 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612 cat >"conftest.$ac_ext" <<_ACEOF
14613 #line 14613 "configure"
14614 #include "confdefs.h"
14615 #define XOpenDisplay autoconf_temporary
14616 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14617 #undef XOpenDisplay
14618
14619 #ifdef __cplusplus
14620 extern "C"
14621 #endif
14622
14623 /* We use char because int might match the return type of a gcc2
14624 builtin and then its argument prototype would still apply. */
14625 char XOpenDisplay (void);
14626
14627 int
14628 main (void)
14629 {
14630
14631 /* The GNU C library defines stubs for functions which it implements
14632 to always fail with ENOSYS. Some functions are actually named
14633 something starting with __ and the normal name is an alias. */
14634 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
14635 #error found stub for XOpenDisplay
14636 #endif
14637
14638 return XOpenDisplay ();
14639 ;
14640 return 0;
14641 }
14642 _ACEOF
14643 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14644 if { (eval echo "$as_me:14644: \"$ac_link\"") >&5
14645 (eval $ac_link) 2>&5
14646 ac_status=$?
14647 echo "$as_me:14647: \$? = $ac_status" >&5
14648 (exit "$ac_status"); } &&
14649 { ac_try='test -s "conftest$ac_exeext"'
14650 { (eval echo "$as_me:14650: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:14653: \$? = $ac_status" >&5
14654 (exit "$ac_status"); }; }; then
14655 ac_cv_func_XOpenDisplay=yes
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 cat "conftest.$ac_ext" >&5
14659 ac_cv_func_XOpenDisplay=no
14660 fi
14661 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14662 fi
14663 echo "$as_me:14663: result: $ac_cv_func_XOpenDisplay" >&5
14664 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
14665 if test "$ac_cv_func_XOpenDisplay" = yes; then
14666 :
14667 else
14668
14669 echo "$as_me:14669: checking for XOpenDisplay in -lX11" >&5
14670 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
14671 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lX11 $LIBS"
14676 cat >"conftest.$ac_ext" <<_ACEOF
14677 #line 14677 "configure"
14678 #include "confdefs.h"
14679
14680 /* Override any gcc2 internal prototype to avoid an error. */
14681 #ifdef __cplusplus
14682 extern "C"
14683 #endif
14684 /* We use char because int might match the return type of a gcc2
14685 builtin and then its argument prototype would still apply. */
14686 char XOpenDisplay ();
14687 int
14688 main (void)
14689 {
14690 XOpenDisplay ();
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14696 if { (eval echo "$as_me:14696: \"$ac_link\"") >&5
14697 (eval $ac_link) 2>&5
14698 ac_status=$?
14699 echo "$as_me:14699: \$? = $ac_status" >&5
14700 (exit "$ac_status"); } &&
14701 { ac_try='test -s "conftest$ac_exeext"'
14702 { (eval echo "$as_me:14702: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:14705: \$? = $ac_status" >&5
14706 (exit "$ac_status"); }; }; then
14707 ac_cv_lib_X11_XOpenDisplay=yes
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 cat "conftest.$ac_ext" >&5
14711 ac_cv_lib_X11_XOpenDisplay=no
14712 fi
14713 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14714 LIBS=$ac_check_lib_save_LIBS
14715 fi
14716 echo "$as_me:14716: result: $ac_cv_lib_X11_XOpenDisplay" >&5
14717 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
14718 if test "$ac_cv_lib_X11_XOpenDisplay" = yes; then
14719
14720 cf_add_libs="$LIBS"
14721 # reverse order
14722 cf_add_0lib=
14723 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14724 # filter duplicates
14725 for cf_add_1lib in $cf_add_0lib; do
14726 for cf_add_2lib in $cf_add_libs; do
14727 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14728 cf_add_1lib=
14729 break
14730 fi
14731 done
14732 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14733 done
14734 LIBS="$cf_add_libs"
14735
14736 fi
14737
14738 fi
14739
14740 echo "$as_me:14740: checking for XtAppInitialize" >&5
14741 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
14742 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 cat >"conftest.$ac_ext" <<_ACEOF
14746 #line 14746 "configure"
14747 #include "confdefs.h"
14748 #define XtAppInitialize autoconf_temporary
14749 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14750 #undef XtAppInitialize
14751
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755
14756 /* We use char because int might match the return type of a gcc2
14757 builtin and then its argument prototype would still apply. */
14758 char XtAppInitialize (void);
14759
14760 int
14761 main (void)
14762 {
14763
14764 /* The GNU C library defines stubs for functions which it implements
14765 to always fail with ENOSYS. Some functions are actually named
14766 something starting with __ and the normal name is an alias. */
14767 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
14768 #error found stub for XtAppInitialize
14769 #endif
14770
14771 return XtAppInitialize ();
14772 ;
14773 return 0;
14774 }
14775 _ACEOF
14776 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14777 if { (eval echo "$as_me:14777: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>&5
14779 ac_status=$?
14780 echo "$as_me:14780: \$? = $ac_status" >&5
14781 (exit "$ac_status"); } &&
14782 { ac_try='test -s "conftest$ac_exeext"'
14783 { (eval echo "$as_me:14783: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:14786: \$? = $ac_status" >&5
14787 (exit "$ac_status"); }; }; then
14788 ac_cv_func_XtAppInitialize=yes
14789 else
14790 echo "$as_me: failed program was:" >&5
14791 cat "conftest.$ac_ext" >&5
14792 ac_cv_func_XtAppInitialize=no
14793 fi
14794 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14795 fi
14796 echo "$as_me:14796: result: $ac_cv_func_XtAppInitialize" >&5
14797 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
14798 if test "$ac_cv_func_XtAppInitialize" = yes; then
14799 :
14800 else
14801
14802 echo "$as_me:14802: checking for XtAppInitialize in -lXt" >&5
14803 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
14804 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807 ac_check_lib_save_LIBS=$LIBS
14808 LIBS="-lXt $LIBS"
14809 cat >"conftest.$ac_ext" <<_ACEOF
14810 #line 14810 "configure"
14811 #include "confdefs.h"
14812
14813 /* Override any gcc2 internal prototype to avoid an error. */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 /* We use char because int might match the return type of a gcc2
14818 builtin and then its argument prototype would still apply. */
14819 char XtAppInitialize ();
14820 int
14821 main (void)
14822 {
14823 XtAppInitialize ();
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14829 if { (eval echo "$as_me:14829: \"$ac_link\"") >&5
14830 (eval $ac_link) 2>&5
14831 ac_status=$?
14832 echo "$as_me:14832: \$? = $ac_status" >&5
14833 (exit "$ac_status"); } &&
14834 { ac_try='test -s "conftest$ac_exeext"'
14835 { (eval echo "$as_me:14835: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:14838: \$? = $ac_status" >&5
14839 (exit "$ac_status"); }; }; then
14840 ac_cv_lib_Xt_XtAppInitialize=yes
14841 else
14842 echo "$as_me: failed program was:" >&5
14843 cat "conftest.$ac_ext" >&5
14844 ac_cv_lib_Xt_XtAppInitialize=no
14845 fi
14846 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14847 LIBS=$ac_check_lib_save_LIBS
14848 fi
14849 echo "$as_me:14849: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
14850 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
14851 if test "$ac_cv_lib_Xt_XtAppInitialize" = yes; then
14852
14853 cat >>confdefs.h <<\EOF
14854 #define HAVE_LIBXT 1
14855 EOF
14856
14857 cf_have_X_LIBS=Xt
14858 LIBS="-lXt $LIBS"
14859 fi
14860
14861 fi
14862
14863 fi
14864
14865 if test "$cf_have_X_LIBS" = no ; then
14866 { echo "$as_me:14866: WARNING: Unable to successfully link X Toolkit library (-lXt) with
14867 test program. You will have to check and add the proper libraries by hand
14868 to makefile." >&5
14869 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
14870 test program. You will have to check and add the proper libraries by hand
14871 to makefile." >&2;}
14872 fi
14873
14874 cf_x_athena_root=$cf_x_athena
14875 cf_x_athena_inc=""
14876
14877 for cf_path in default \
14878 /usr/contrib/X11R6 \
14879 /usr/contrib/X11R5 \
14880 /usr/lib/X11R5 \
14881 /usr/local
14882 do
14883 if test -z "$cf_x_athena_inc" ; then
14884
14885 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS"
14886 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS"
14887 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS"
14888 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
14889 for cf_X_CFLAGS in $X_CFLAGS
14890 do
14891 case "x$cf_X_CFLAGS" in
14892 x-[IUD]*)
14893 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
14894 ;;
14895 *)
14896 CFLAGS="$CFLAGS $cf_X_CFLAGS"
14897 ;;
14898 esac
14899 done
14900
14901 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
14902 if test "$cf_path" != default ; then
14903
14904 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14905 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
14906
14907 echo "$as_me:14907: checking for $cf_test in $cf_path" >&5
14908 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
14909 else
14910 echo "$as_me:14910: checking for $cf_test" >&5
14911 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
14912 fi
14913 cat >"conftest.$ac_ext" <<_ACEOF
14914 #line 14914 "configure"
14915 #include "confdefs.h"
14916
14917 #include <X11/Intrinsic.h>
14918 #include <$cf_test>
14919 int
14920 main (void)
14921 {
14922
14923 ;
14924 return 0;
14925 }
14926 _ACEOF
14927 rm -f "conftest.$ac_objext"
14928 if { (eval echo "$as_me:14928: \"$ac_compile\"") >&5
14929 (eval $ac_compile) 2>&5
14930 ac_status=$?
14931 echo "$as_me:14931: \$? = $ac_status" >&5
14932 (exit "$ac_status"); } &&
14933 { ac_try='test -s "conftest.$ac_objext"'
14934 { (eval echo "$as_me:14934: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:14937: \$? = $ac_status" >&5
14938 (exit "$ac_status"); }; }; then
14939 cf_result=yes
14940 else
14941 echo "$as_me: failed program was:" >&5
14942 cat "conftest.$ac_ext" >&5
14943 cf_result=no
14944 fi
14945 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14946 echo "$as_me:14946: result: $cf_result" >&5
14947 echo "${ECHO_T}$cf_result" >&6
14948
14949 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS"
14950 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS"
14951 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS"
14952
14953 if test "$cf_result" = yes ; then
14954 test "$cf_path" = default && cf_x_athena_inc=default
14955 test "$cf_path" != default && cf_x_athena_inc="$cf_path/include"
14956 break
14957 fi
14958 fi
14959 done
14960
14961 if test -z "$cf_x_athena_inc" ; then
14962 { echo "$as_me:14962: WARNING: Unable to find Athena header files" >&5
14963 echo "$as_me: WARNING: Unable to find Athena header files" >&2;}
14964 elif test "$cf_x_athena_inc" != default ; then
14965
14966 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14967 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
14968
14969 fi
14970
14971 cf_x_athena_root=$cf_x_athena
14972 cf_x_athena_lib=""
14973
14974 for cf_path in default \
14975 /usr/contrib/X11R6 \
14976 /usr/contrib/X11R5 \
14977 /usr/lib/X11R5 \
14978 /usr/local
14979 do
14980 for cf_lib in \
14981 ${cf_x_athena_root} \
14982 ${cf_x_athena_root}7 \
14983 ${cf_x_athena_root}6
14984 do
14985 for cf_libs in \
14986 "-l$cf_lib -lXmu" \
14987 "-l$cf_lib -lXpm -lXmu" \
14988 "-l${cf_lib}_s -lXmu_s"
14989 do
14990 test -n "$cf_x_athena_lib" && break
14991
14992 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS"
14993 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS"
14994 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS"
14995 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
14996 for cf_X_CFLAGS in $X_CFLAGS
14997 do
14998 case "x$cf_X_CFLAGS" in
14999 x-[IUD]*)
15000 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15001 ;;
15002 *)
15003 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15004 ;;
15005 esac
15006 done
15007
15008 cf_test=XawSimpleMenuAddGlobalActions
15009 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
15010
15011 cf_add_libs="$LIBS"
15012 # reverse order
15013 cf_add_0lib=
15014 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15015 # filter duplicates
15016 for cf_add_1lib in $cf_add_0lib; do
15017 for cf_add_2lib in $cf_add_libs; do
15018 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15019 cf_add_1lib=
15020 break
15021 fi
15022 done
15023 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15024 done
15025 LIBS="$cf_add_libs"
15026
15027 echo "$as_me:15027: checking for $cf_test in $cf_libs" >&5
15028 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
15029 cat >"conftest.$ac_ext" <<_ACEOF
15030 #line 15030 "configure"
15031 #include "confdefs.h"
15032
15033 #include <X11/Intrinsic.h>
15034 #include <X11/$cf_x_athena_root/SimpleMenu.h>
15035
15036 int
15037 main (void)
15038 {
15039
15040 $cf_test((XtAppContext) 0)
15041 ;
15042 return 0;
15043 }
15044 _ACEOF
15045 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15046 if { (eval echo "$as_me:15046: \"$ac_link\"") >&5
15047 (eval $ac_link) 2>&5
15048 ac_status=$?
15049 echo "$as_me:15049: \$? = $ac_status" >&5
15050 (exit "$ac_status"); } &&
15051 { ac_try='test -s "conftest$ac_exeext"'
15052 { (eval echo "$as_me:15052: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:15055: \$? = $ac_status" >&5
15056 (exit "$ac_status"); }; }; then
15057 cf_result=yes
15058 else
15059 echo "$as_me: failed program was:" >&5
15060 cat "conftest.$ac_ext" >&5
15061 cf_result=no
15062 fi
15063 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15064 echo "$as_me:15064: result: $cf_result" >&5
15065 echo "${ECHO_T}$cf_result" >&6
15066
15067 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS"
15068 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS"
15069 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS"
15070
15071 if test "$cf_result" = yes ; then
15072 cf_x_athena_lib="$cf_libs"
15073 break
15074 fi
15075 done # cf_libs
15076 test -n "$cf_x_athena_lib" && break
15077 done # cf_lib
15078 done
15079
15080 if test -z "$cf_x_athena_lib" ; then
15081 { { echo "$as_me:15081: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
15082 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
15083 { (exit 1); exit 1; }; }
15084 fi
15085
15086 cf_add_libs="$LIBS"
15087 # reverse order
15088 cf_add_0lib=
15089 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15090 # filter duplicates
15091 for cf_add_1lib in $cf_add_0lib; do
15092 for cf_add_2lib in $cf_add_libs; do
15093 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15094 cf_add_1lib=
15095 break
15096 fi
15097 done
15098 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15099 done
15100 LIBS="$cf_add_libs"
15101
15102 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15103
15104 cat >>confdefs.h <<EOF
15105 #define $cf_x_athena_LIBS 1
15106 EOF
15107
15108 fi
15109
15110 for ac_header in X11/Xpoll.h
15111 do
15112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15113 echo "$as_me:15113: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118 cat >"conftest.$ac_ext" <<_ACEOF
15119 #line 15119 "configure"
15120 #include "confdefs.h"
15121 #include <$ac_header>
15122 _ACEOF
15123 if { (eval echo "$as_me:15123: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15124 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15125 ac_status=$?
15126 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:15129: \$? = $ac_status" >&5
15130 (exit "$ac_status"); } >/dev/null; then
15131 if test -s conftest.err; then
15132 ac_cpp_err=$ac_c_preproc_warn_flag
15133 else
15134 ac_cpp_err=
15135 fi
15136 else
15137 ac_cpp_err=yes
15138 fi
15139 if test -z "$ac_cpp_err"; then
15140 eval "$as_ac_Header=yes"
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 cat "conftest.$ac_ext" >&5
15144 eval "$as_ac_Header=no"
15145 fi
15146 rm -f conftest.err "conftest.$ac_ext"
15147 fi
15148 echo "$as_me:15148: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
15149 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
15150 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
15151 cat >>confdefs.h <<EOF
15152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15153 EOF
15154
15155 fi
15156 done
15157
15158 echo "$as_me:15158: checking for declaration of fd_set" >&5
15159 echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
15160 if test "${cf_cv_type_fd_set+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163
15164 echo "${as_me:-configure}:15164: testing sys/types alone ..." 1>&5
15165
15166 cat >"conftest.$ac_ext" <<_ACEOF
15167 #line 15167 "configure"
15168 #include "confdefs.h"
15169
15170 #include <sys/types.h>
15171 int
15172 main (void)
15173 {
15174 fd_set x; (void)x
15175 ;
15176 return 0;
15177 }
15178 _ACEOF
15179 rm -f "conftest.$ac_objext"
15180 if { (eval echo "$as_me:15180: \"$ac_compile\"") >&5
15181 (eval $ac_compile) 2>&5
15182 ac_status=$?
15183 echo "$as_me:15183: \$? = $ac_status" >&5
15184 (exit "$ac_status"); } &&
15185 { ac_try='test -s "conftest.$ac_objext"'
15186 { (eval echo "$as_me:15186: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:15189: \$? = $ac_status" >&5
15190 (exit "$ac_status"); }; }; then
15191 cf_cv_type_fd_set=sys/types.h
15192 else
15193 echo "$as_me: failed program was:" >&5
15194 cat "conftest.$ac_ext" >&5
15195
15196 echo "${as_me:-configure}:15196: testing X11/Xpoll.h ..." 1>&5
15197
15198 cat >"conftest.$ac_ext" <<_ACEOF
15199 #line 15199 "configure"
15200 #include "confdefs.h"
15201
15202 #ifdef HAVE_X11_XPOLL_H
15203 #include <X11/Xpoll.h>
15204 #endif
15205 int
15206 main (void)
15207 {
15208 fd_set x; (void)x
15209 ;
15210 return 0;
15211 }
15212 _ACEOF
15213 rm -f "conftest.$ac_objext"
15214 if { (eval echo "$as_me:15214: \"$ac_compile\"") >&5
15215 (eval $ac_compile) 2>&5
15216 ac_status=$?
15217 echo "$as_me:15217: \$? = $ac_status" >&5
15218 (exit "$ac_status"); } &&
15219 { ac_try='test -s "conftest.$ac_objext"'
15220 { (eval echo "$as_me:15220: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:15223: \$? = $ac_status" >&5
15224 (exit "$ac_status"); }; }; then
15225 cf_cv_type_fd_set=X11/Xpoll.h
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 cat "conftest.$ac_ext" >&5
15229
15230 echo "${as_me:-configure}:15230: testing sys/select.h ..." 1>&5
15231
15232 cat >"conftest.$ac_ext" <<_ACEOF
15233 #line 15233 "configure"
15234 #include "confdefs.h"
15235
15236 #include <sys/types.h>
15237 #include <sys/select.h>
15238 int
15239 main (void)
15240 {
15241 fd_set x; (void)x
15242 ;
15243 return 0;
15244 }
15245 _ACEOF
15246 rm -f "conftest.$ac_objext"
15247 if { (eval echo "$as_me:15247: \"$ac_compile\"") >&5
15248 (eval $ac_compile) 2>&5
15249 ac_status=$?
15250 echo "$as_me:15250: \$? = $ac_status" >&5
15251 (exit "$ac_status"); } &&
15252 { ac_try='test -s "conftest.$ac_objext"'
15253 { (eval echo "$as_me:15253: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:15256: \$? = $ac_status" >&5
15257 (exit "$ac_status"); }; }; then
15258 cf_cv_type_fd_set=sys/select.h
15259 else
15260 echo "$as_me: failed program was:" >&5
15261 cat "conftest.$ac_ext" >&5
15262 cf_cv_type_fd_set=unknown
15263 fi
15264 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15265 fi
15266 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15267 fi
15268 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15269 fi
15270 echo "$as_me:15270: result: $cf_cv_type_fd_set" >&5
15271 echo "${ECHO_T}$cf_cv_type_fd_set" >&6
15272 if test $cf_cv_type_fd_set = sys/select.h ; then
15273
15274 cat >>confdefs.h <<\EOF
15275 #define USE_SYS_SELECT_H 1
15276 EOF
15277
15278 fi
15279
15280 echo "$as_me:15280: checking for declaration of fd_mask" >&5
15281 echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
15282 if test "${cf_cv_type_fd_mask+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285
15286 if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
15287 cat >"conftest.$ac_ext" <<_ACEOF
15288 #line 15288 "configure"
15289 #include "confdefs.h"
15290
15291 #include <X11/Xpoll.h>
15292 int
15293 main (void)
15294 {
15295 fd_mask x
15296 ;
15297 return 0;
15298 }
15299 _ACEOF
15300 rm -f "conftest.$ac_objext"
15301 if { (eval echo "$as_me:15301: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>&5
15303 ac_status=$?
15304 echo "$as_me:15304: \$? = $ac_status" >&5
15305 (exit "$ac_status"); } &&
15306 { ac_try='test -s "conftest.$ac_objext"'
15307 { (eval echo "$as_me:15307: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:15310: \$? = $ac_status" >&5
15311 (exit "$ac_status"); }; }; then
15312 :
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 cat "conftest.$ac_ext" >&5
15316
15317 echo "${as_me:-configure}:15317: testing if we must define CSRG_BASED ..." 1>&5
15318
15319 # Xosdefs.h on Mac OS X may not define this (but it should).
15320 cat >"conftest.$ac_ext" <<_ACEOF
15321 #line 15321 "configure"
15322 #include "confdefs.h"
15323
15324 #define CSRG_BASED
15325 #include <X11/Xpoll.h>
15326 int
15327 main (void)
15328 {
15329 fd_mask x
15330 ;
15331 return 0;
15332 }
15333 _ACEOF
15334 rm -f "conftest.$ac_objext"
15335 if { (eval echo "$as_me:15335: \"$ac_compile\"") >&5
15336 (eval $ac_compile) 2>&5
15337 ac_status=$?
15338 echo "$as_me:15338: \$? = $ac_status" >&5
15339 (exit "$ac_status"); } &&
15340 { ac_try='test -s "conftest.$ac_objext"'
15341 { (eval echo "$as_me:15341: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 echo "$as_me:15344: \$? = $ac_status" >&5
15345 (exit "$ac_status"); }; }; then
15346 cf_cv_type_fd_mask=CSRG_BASED
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 cat "conftest.$ac_ext" >&5
15350 fi
15351 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15352 fi
15353 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15354 else
15355 cf_cv_type_fd_mask=$cf_cv_type_fd_set
15356 fi
15357
15358 fi
15359 echo "$as_me:15359: result: $cf_cv_type_fd_mask" >&5
15360 echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
15361 if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
15362
15363 cat >>confdefs.h <<\EOF
15364 #define CSRG_BASED 1
15365 EOF
15366
15367 fi
15368
15369 echo "$as_me:15369: checking for IRIX 6.5 baud-rate redefinitions" >&5
15370 echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
15371 if test "${cf_cv_termio_c_ispeed+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374
15375 cat >"conftest.$ac_ext" <<_ACEOF
15376 #line 15376 "configure"
15377 #include "confdefs.h"
15378
15379 #include <sys/types.h>
15380 #include <sys/termio.h>
15381 int
15382 main (void)
15383 {
15384
15385 struct termio foo;
15386 foo.c_ispeed = B38400;
15387 foo.c_ospeed = B9600;
15388 (void)foo;
15389
15390 ;
15391 return 0;
15392 }
15393 _ACEOF
15394 rm -f "conftest.$ac_objext"
15395 if { (eval echo "$as_me:15395: \"$ac_compile\"") >&5
15396 (eval $ac_compile) 2>&5
15397 ac_status=$?
15398 echo "$as_me:15398: \$? = $ac_status" >&5
15399 (exit "$ac_status"); } &&
15400 { ac_try='test -s "conftest.$ac_objext"'
15401 { (eval echo "$as_me:15401: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:15404: \$? = $ac_status" >&5
15405 (exit "$ac_status"); }; }; then
15406 cf_cv_termio_c_ispeed=yes
15407
15408 else
15409 echo "$as_me: failed program was:" >&5
15410 cat "conftest.$ac_ext" >&5
15411 cf_cv_termio_c_ispeed=no
15412 fi
15413 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15414
15415 fi
15416 echo "$as_me:15416: result: $cf_cv_termio_c_ispeed" >&5
15417 echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
15418 test "$cf_cv_termio_c_ispeed" = yes &&
15419 cat >>confdefs.h <<\EOF
15420 #define HAVE_TERMIO_C_ISPEED 1
15421 EOF
15422
15423 echo "$as_me:15423: checking for termios type tcflag_t" >&5
15424 echo $ECHO_N "checking for termios type tcflag_t... $ECHO_C" >&6
15425 if test "${cf_cv_havetype_tcflag_t+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428
15429 cat >"conftest.$ac_ext" <<_ACEOF
15430 #line 15430 "configure"
15431 #include "confdefs.h"
15432 #include <termios.h>
15433 int
15434 main (void)
15435 {
15436
15437 tcflag_t x = 0; (void)x
15438 ;
15439 return 0;
15440 }
15441 _ACEOF
15442 rm -f "conftest.$ac_objext"
15443 if { (eval echo "$as_me:15443: \"$ac_compile\"") >&5
15444 (eval $ac_compile) 2>&5
15445 ac_status=$?
15446 echo "$as_me:15446: \$? = $ac_status" >&5
15447 (exit "$ac_status"); } &&
15448 { ac_try='test -s "conftest.$ac_objext"'
15449 { (eval echo "$as_me:15449: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:15452: \$? = $ac_status" >&5
15453 (exit "$ac_status"); }; }; then
15454 cf_cv_havetype_tcflag_t=yes
15455 else
15456 echo "$as_me: failed program was:" >&5
15457 cat "conftest.$ac_ext" >&5
15458 cf_cv_havetype_tcflag_t=no
15459 fi
15460 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15461
15462 fi
15463 echo "$as_me:15463: result: $cf_cv_havetype_tcflag_t" >&5
15464 echo "${ECHO_T}$cf_cv_havetype_tcflag_t" >&6
15465 test "$cf_cv_havetype_tcflag_t" = no &&
15466 cat >>confdefs.h <<\EOF
15467 #define tcflag_t unsigned long
15468 EOF
15469
15470 echo "$as_me:15470: checking for termios type speed_t" >&5
15471 echo $ECHO_N "checking for termios type speed_t... $ECHO_C" >&6
15472 if test "${cf_cv_havetype_speed_t+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475
15476 cat >"conftest.$ac_ext" <<_ACEOF
15477 #line 15477 "configure"
15478 #include "confdefs.h"
15479 #include <termios.h>
15480 int
15481 main (void)
15482 {
15483
15484 speed_t x = 0; (void)x
15485 ;
15486 return 0;
15487 }
15488 _ACEOF
15489 rm -f "conftest.$ac_objext"
15490 if { (eval echo "$as_me:15490: \"$ac_compile\"") >&5
15491 (eval $ac_compile) 2>&5
15492 ac_status=$?
15493 echo "$as_me:15493: \$? = $ac_status" >&5
15494 (exit "$ac_status"); } &&
15495 { ac_try='test -s "conftest.$ac_objext"'
15496 { (eval echo "$as_me:15496: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:15499: \$? = $ac_status" >&5
15500 (exit "$ac_status"); }; }; then
15501 cf_cv_havetype_speed_t=yes
15502 else
15503 echo "$as_me: failed program was:" >&5
15504 cat "conftest.$ac_ext" >&5
15505 cf_cv_havetype_speed_t=no
15506 fi
15507 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15508
15509 fi
15510 echo "$as_me:15510: result: $cf_cv_havetype_speed_t" >&5
15511 echo "${ECHO_T}$cf_cv_havetype_speed_t" >&6
15512 test "$cf_cv_havetype_speed_t" = no &&
15513 cat >>confdefs.h <<\EOF
15514 #define speed_t unsigned short
15515 EOF
15516
15517 echo "$as_me:15517: checking for termios type cc_t" >&5
15518 echo $ECHO_N "checking for termios type cc_t... $ECHO_C" >&6
15519 if test "${cf_cv_havetype_cc_t+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522
15523 cat >"conftest.$ac_ext" <<_ACEOF
15524 #line 15524 "configure"
15525 #include "confdefs.h"
15526 #include <termios.h>
15527 int
15528 main (void)
15529 {
15530
15531 cc_t x = 0; (void)x
15532 ;
15533 return 0;
15534 }
15535 _ACEOF
15536 rm -f "conftest.$ac_objext"
15537 if { (eval echo "$as_me:15537: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>&5
15539 ac_status=$?
15540 echo "$as_me:15540: \$? = $ac_status" >&5
15541 (exit "$ac_status"); } &&
15542 { ac_try='test -s "conftest.$ac_objext"'
15543 { (eval echo "$as_me:15543: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:15546: \$? = $ac_status" >&5
15547 (exit "$ac_status"); }; }; then
15548 cf_cv_havetype_cc_t=yes
15549 else
15550 echo "$as_me: failed program was:" >&5
15551 cat "conftest.$ac_ext" >&5
15552 cf_cv_havetype_cc_t=no
15553 fi
15554 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15555
15556 fi
15557 echo "$as_me:15557: result: $cf_cv_havetype_cc_t" >&5
15558 echo "${ECHO_T}$cf_cv_havetype_cc_t" >&6
15559 test "$cf_cv_havetype_cc_t" = no &&
15560 cat >>confdefs.h <<\EOF
15561 #define cc_t unsigned char
15562 EOF
15563
15564 # The Xcursor library is normally (weakly) linked via the X11 library rather
15565 # than directly to applications. xterm can select a cursor theme; users can
15566 # also use environment variables to select cursor size. We would only notice
15567 # the library if there are development files for it. Provide a way to disable
15568 # the feature if it is unwanted.
15569 echo "$as_me:15569: checking if we expect to use the Xcursor library" >&5
15570 echo $ECHO_N "checking if we expect to use the Xcursor library... $ECHO_C" >&6
15571
15572 # Check whether --enable-xcursor or --disable-xcursor was given.
15573 if test "${enable_xcursor+set}" = set; then
15574 enableval="$enable_xcursor"
15575 test "$enableval" != no && enableval=yes
15576 if test "$enableval" != "yes" ; then
15577 enable_xcursor=no
15578 else
15579 enable_xcursor=yes
15580 fi
15581 else
15582 enableval=yes
15583 enable_xcursor=yes
15584
15585 fi;
15586 echo "$as_me:15586: result: $enable_xcursor" >&5
15587 echo "${ECHO_T}$enable_xcursor" >&6
15588 if test "$enable_xcursor" = yes; then
15589
15590 cat >>confdefs.h <<\EOF
15591 #define HAVE_LIB_XCURSOR 1
15592 EOF
15593
15594 fi
15595
15596 LIBS="$LIBS $X_EXTRA_LIBS"
15597
15598 for ac_header in \
15599 stropts.h \
15600
15601 do
15602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15603 echo "$as_me:15603: checking for $ac_header" >&5
15604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 cat >"conftest.$ac_ext" <<_ACEOF
15609 #line 15609 "configure"
15610 #include "confdefs.h"
15611 #include <$ac_header>
15612 _ACEOF
15613 if { (eval echo "$as_me:15613: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15614 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15615 ac_status=$?
15616 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:15619: \$? = $ac_status" >&5
15620 (exit "$ac_status"); } >/dev/null; then
15621 if test -s conftest.err; then
15622 ac_cpp_err=$ac_c_preproc_warn_flag
15623 else
15624 ac_cpp_err=
15625 fi
15626 else
15627 ac_cpp_err=yes
15628 fi
15629 if test -z "$ac_cpp_err"; then
15630 eval "$as_ac_Header=yes"
15631 else
15632 echo "$as_me: failed program was:" >&5
15633 cat "conftest.$ac_ext" >&5
15634 eval "$as_ac_Header=no"
15635 fi
15636 rm -f conftest.err "conftest.$ac_ext"
15637 fi
15638 echo "$as_me:15638: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
15639 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
15640 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
15641 cat >>confdefs.h <<EOF
15642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15643 EOF
15644
15645 fi
15646 done
15647
15648 cf_func_grantpt="grantpt ptsname"
15649 cf_prefer_openpt=no
15650 case $host_os in
15651 (darwin[0-9].*)
15652 ;;
15653 (openbsd[0-9].*)
15654 # The POSIX entrypoints exist, but have never worked.
15655 ;;
15656 (linux*)
15657 cf_func_grantpt="$cf_func_grantpt posix_openpt"
15658 cf_prefer_openpt=yes
15659 ;;
15660 (*)
15661 cf_func_grantpt="$cf_func_grantpt posix_openpt"
15662 ;;
15663 esac
15664
15665 for ac_func in $cf_func_grantpt
15666 do
15667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15668 echo "$as_me:15668: checking for $ac_func" >&5
15669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15670 if eval "test \"\${$as_ac_var+set}\" = set"; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673 cat >"conftest.$ac_ext" <<_ACEOF
15674 #line 15674 "configure"
15675 #include "confdefs.h"
15676 #define $ac_func autoconf_temporary
15677 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15678 #undef $ac_func
15679
15680 #ifdef __cplusplus
15681 extern "C"
15682 #endif
15683
15684 /* We use char because int might match the return type of a gcc2
15685 builtin and then its argument prototype would still apply. */
15686 char $ac_func (void);
15687
15688 int
15689 main (void)
15690 {
15691
15692 /* The GNU C library defines stubs for functions which it implements
15693 to always fail with ENOSYS. Some functions are actually named
15694 something starting with __ and the normal name is an alias. */
15695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15696 #error found stub for $ac_func
15697 #endif
15698
15699 return $ac_func ();
15700 ;
15701 return 0;
15702 }
15703 _ACEOF
15704 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15705 if { (eval echo "$as_me:15705: \"$ac_link\"") >&5
15706 (eval $ac_link) 2>&5
15707 ac_status=$?
15708 echo "$as_me:15708: \$? = $ac_status" >&5
15709 (exit "$ac_status"); } &&
15710 { ac_try='test -s "conftest$ac_exeext"'
15711 { (eval echo "$as_me:15711: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:15714: \$? = $ac_status" >&5
15715 (exit "$ac_status"); }; }; then
15716 eval "$as_ac_var=yes"
15717 else
15718 echo "$as_me: failed program was:" >&5
15719 cat "conftest.$ac_ext" >&5
15720 eval "$as_ac_var=no"
15721 fi
15722 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15723 fi
15724 echo "$as_me:15724: result: `eval echo '${'"$as_ac_var"'}'`" >&5
15725 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
15726 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
15727 cat >>confdefs.h <<EOF
15728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15729 EOF
15730
15731 fi
15732 done
15733
15734 cf_grantpt_opts=
15735 if test "x$ac_cv_func_grantpt" = "xyes" ; then
15736 echo "$as_me:15736: checking if grantpt really works" >&5
15737 echo $ECHO_N "checking if grantpt really works... $ECHO_C" >&6
15738 cat >"conftest.$ac_ext" <<_ACEOF
15739 #line 15739 "configure"
15740 #include "confdefs.h"
15741
15742 #include <stdlib.h>
15743 #include <stdio.h>
15744 #include <termios.h>
15745 #include <unistd.h>
15746 #include <signal.h>
15747 #include <fcntl.h>
15748 #include <errno.h>
15749
15750 #ifndef HAVE_POSIX_OPENPT
15751 #undef posix_openpt
15752 #define posix_openpt(mode) open("/dev/ptmx", mode)
15753 #endif
15754
15755 #ifdef HAVE_STROPTS_H
15756 #include <stropts.h>
15757 #endif
15758
15759 static void failed(int code)
15760 {
15761 perror("conftest");
15762 exit(code);
15763 }
15764
15765 static void my_timeout(int sig)
15766 {
15767 (void)sig;
15768 exit(99);
15769 }
15770
15771 int
15772 main (void)
15773 {
15774
15775 int code = 0;
15776 int pty;
15777 int tty;
15778 char *slave;
15779 struct termios tio;
15780
15781 (void)tio;
15782 signal(SIGALRM, my_timeout);
15783
15784 if (alarm(2) == 9)
15785 failed(9);
15786 else if ((pty = posix_openpt(O_RDWR)) < 0)
15787 failed(1);
15788 else if (grantpt(pty) < 0)
15789 failed(2);
15790 else if (unlockpt(pty) < 0)
15791 failed(3);
15792 else if ((slave = ptsname(pty)) == 0)
15793 failed(4);
15794 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
15795 else if (!isatty(pty))
15796 failed(4);
15797 #endif
15798 #if CONFTEST >= 4
15799 else if (tcgetattr(pty, &tio) < 0)
15800 failed(20);
15801 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0)
15802 failed(21);
15803 #endif
15804 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
15805 * Linux does treat it that way.
15806 */
15807 else if ((tty = open(slave, O_RDWR)) < 0)
15808 failed(5);
15809 #ifdef CONFTEST
15810 #ifdef I_PUSH
15811 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
15812 else if (ioctl(tty, I_PUSH, "ptem") < 0)
15813 failed(10);
15814 #endif
15815 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
15816 else if (ioctl(tty, I_PUSH, "ldterm") < 0)
15817 failed(11);
15818 #endif
15819 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
15820 else if (ioctl(tty, I_PUSH, "ttcompat") < 0)
15821 failed(12);
15822 #endif
15823 #endif /* I_PUSH */
15824 #if CONFTEST >= 5
15825 else if (tcgetattr(tty, &tio) < 0)
15826 failed(30);
15827 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0)
15828 failed(31);
15829 #endif
15830 #endif /* CONFTEST */
15831 (void) tty;
15832 ${cf_cv_main_return:-return}(code);
15833
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15839 if { (eval echo "$as_me:15839: \"$ac_link\"") >&5
15840 (eval $ac_link) 2>&5
15841 ac_status=$?
15842 echo "$as_me:15842: \$? = $ac_status" >&5
15843 (exit "$ac_status"); } &&
15844 { ac_try='test -s "conftest$ac_exeext"'
15845 { (eval echo "$as_me:15845: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:15848: \$? = $ac_status" >&5
15849 (exit "$ac_status"); }; }; then
15850
15851 if test "$cross_compiling" = yes; then
15852 ac_cv_func_grantpt=maybe
15853 else
15854 cat >"conftest.$ac_ext" <<_ACEOF
15855 #line 15855 "configure"
15856 #include "confdefs.h"
15857
15858 #include <stdlib.h>
15859 #include <stdio.h>
15860 #include <termios.h>
15861 #include <unistd.h>
15862 #include <signal.h>
15863 #include <fcntl.h>
15864 #include <errno.h>
15865
15866 #ifndef HAVE_POSIX_OPENPT
15867 #undef posix_openpt
15868 #define posix_openpt(mode) open("/dev/ptmx", mode)
15869 #endif
15870
15871 #ifdef HAVE_STROPTS_H
15872 #include <stropts.h>
15873 #endif
15874
15875 static void failed(int code)
15876 {
15877 perror("conftest");
15878 exit(code);
15879 }
15880
15881 static void my_timeout(int sig)
15882 {
15883 (void)sig;
15884 exit(99);
15885 }
15886
15887 int main(void)
15888 {
15889
15890 int code = 0;
15891 int pty;
15892 int tty;
15893 char *slave;
15894 struct termios tio;
15895
15896 (void)tio;
15897 signal(SIGALRM, my_timeout);
15898
15899 if (alarm(2) == 9)
15900 failed(9);
15901 else if ((pty = posix_openpt(O_RDWR)) < 0)
15902 failed(1);
15903 else if (grantpt(pty) < 0)
15904 failed(2);
15905 else if (unlockpt(pty) < 0)
15906 failed(3);
15907 else if ((slave = ptsname(pty)) == 0)
15908 failed(4);
15909 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
15910 else if (!isatty(pty))
15911 failed(4);
15912 #endif
15913 #if CONFTEST >= 4
15914 else if (tcgetattr(pty, &tio) < 0)
15915 failed(20);
15916 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0)
15917 failed(21);
15918 #endif
15919 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
15920 * Linux does treat it that way.
15921 */
15922 else if ((tty = open(slave, O_RDWR)) < 0)
15923 failed(5);
15924 #ifdef CONFTEST
15925 #ifdef I_PUSH
15926 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
15927 else if (ioctl(tty, I_PUSH, "ptem") < 0)
15928 failed(10);
15929 #endif
15930 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
15931 else if (ioctl(tty, I_PUSH, "ldterm") < 0)
15932 failed(11);
15933 #endif
15934 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
15935 else if (ioctl(tty, I_PUSH, "ttcompat") < 0)
15936 failed(12);
15937 #endif
15938 #endif /* I_PUSH */
15939 #if CONFTEST >= 5
15940 else if (tcgetattr(tty, &tio) < 0)
15941 failed(30);
15942 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0)
15943 failed(31);
15944 #endif
15945 #endif /* CONFTEST */
15946 (void) tty;
15947 ${cf_cv_main_return:-return}(code);
15948
15949 }
15950
15951 _ACEOF
15952 rm -f "conftest$ac_exeext"
15953 if { (eval echo "$as_me:15953: \"$ac_link\"") >&5
15954 (eval $ac_link) 2>&5
15955 ac_status=$?
15956 echo "$as_me:15956: \$? = $ac_status" >&5
15957 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
15958 { (eval echo "$as_me:15958: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:15961: \$? = $ac_status" >&5
15962 (exit "$ac_status"); }; }; then
15963 :
15964 else
15965 echo "$as_me: program exited with status $ac_status" >&5
15966 echo "$as_me: failed program was:" >&5
15967 cat "conftest.$ac_ext" >&5
15968 ac_cv_func_grantpt=no
15969
15970 fi
15971 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
15972 fi
15973
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 cat "conftest.$ac_ext" >&5
15977 ac_cv_func_grantpt=no
15978 fi
15979 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15980 echo "$as_me:15980: result: $ac_cv_func_grantpt" >&5
15981 echo "${ECHO_T}$ac_cv_func_grantpt" >&6
15982
15983 if test "x$ac_cv_func_grantpt" != "xno" ; then
15984
15985 if test "x$ac_cv_func_grantpt" = "xyes" ; then
15986 echo "$as_me:15986: checking for pty features" >&5
15987 echo $ECHO_N "checking for pty features... $ECHO_C" >&6
15988 if test "x$ac_cv_header_stropts_h" = xyes
15989 then
15990 cf_pty_this=0
15991 else
15992 cf_pty_this=3
15993 fi
15994
15995 cf_pty_defines=
15996 while test $cf_pty_this != 6
15997 do
15998
15999 cf_pty_feature=
16000 cf_pty_next="`expr $cf_pty_this + 1`"
16001
16002 echo "${as_me:-configure}:16002: testing pty feature test $cf_pty_next:5 ..." 1>&5
16003
16004 if test "$cross_compiling" = yes; then
16005 { { echo "$as_me:16005: error: cannot run test program while cross compiling" >&5
16006 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16007 { (exit 1); exit 1; }; }
16008 else
16009 cat >"conftest.$ac_ext" <<_ACEOF
16010 #line 16010 "configure"
16011 #include "confdefs.h"
16012 #define CONFTEST $cf_pty_this
16013 $cf_pty_defines
16014
16015 #include <stdlib.h>
16016 #include <stdio.h>
16017 #include <termios.h>
16018 #include <unistd.h>
16019 #include <signal.h>
16020 #include <fcntl.h>
16021 #include <errno.h>
16022
16023 #ifndef HAVE_POSIX_OPENPT
16024 #undef posix_openpt
16025 #define posix_openpt(mode) open("/dev/ptmx", mode)
16026 #endif
16027
16028 #ifdef HAVE_STROPTS_H
16029 #include <stropts.h>
16030 #endif
16031
16032 static void failed(int code)
16033 {
16034 perror("conftest");
16035 exit(code);
16036 }
16037
16038 static void my_timeout(int sig)
16039 {
16040 (void)sig;
16041 exit(99);
16042 }
16043
16044 int main(void)
16045 {
16046
16047 int code = 0;
16048 int pty;
16049 int tty;
16050 char *slave;
16051 struct termios tio;
16052
16053 (void)tio;
16054 signal(SIGALRM, my_timeout);
16055
16056 if (alarm(2) == 9)
16057 failed(9);
16058 else if ((pty = posix_openpt(O_RDWR)) < 0)
16059 failed(1);
16060 else if (grantpt(pty) < 0)
16061 failed(2);
16062 else if (unlockpt(pty) < 0)
16063 failed(3);
16064 else if ((slave = ptsname(pty)) == 0)
16065 failed(4);
16066 #if (CONFTEST == 3) || defined(CONFTEST_isatty)
16067 else if (!isatty(pty))
16068 failed(4);
16069 #endif
16070 #if CONFTEST >= 4
16071 else if (tcgetattr(pty, &tio) < 0)
16072 failed(20);
16073 else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0)
16074 failed(21);
16075 #endif
16076 /* BSD posix_openpt does not treat pty as a terminal until slave is opened.
16077 * Linux does treat it that way.
16078 */
16079 else if ((tty = open(slave, O_RDWR)) < 0)
16080 failed(5);
16081 #ifdef CONFTEST
16082 #ifdef I_PUSH
16083 #if (CONFTEST == 0) || defined(CONFTEST_ptem)
16084 else if (ioctl(tty, I_PUSH, "ptem") < 0)
16085 failed(10);
16086 #endif
16087 #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
16088 else if (ioctl(tty, I_PUSH, "ldterm") < 0)
16089 failed(11);
16090 #endif
16091 #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
16092 else if (ioctl(tty, I_PUSH, "ttcompat") < 0)
16093 failed(12);
16094 #endif
16095 #endif /* I_PUSH */
16096 #if CONFTEST >= 5
16097 else if (tcgetattr(tty, &tio) < 0)
16098 failed(30);
16099 else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0)
16100 failed(31);
16101 #endif
16102 #endif /* CONFTEST */
16103 (void) tty;
16104 ${cf_cv_main_return:-return}(code);
16105
16106 }
16107
16108 _ACEOF
16109 rm -f "conftest$ac_exeext"
16110 if { (eval echo "$as_me:16110: \"$ac_link\"") >&5
16111 (eval $ac_link) 2>&5
16112 ac_status=$?
16113 echo "$as_me:16113: \$? = $ac_status" >&5
16114 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
16115 { (eval echo "$as_me:16115: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16117 ac_status=$?
16118 echo "$as_me:16118: \$? = $ac_status" >&5
16119 (exit "$ac_status"); }; }; then
16120
16121 case $cf_pty_next in
16122 (1) # - streams
16123 cf_pty_feature=ptem
16124 ;;
16125 (2) # - streams
16126 cf_pty_feature=ldterm
16127 ;;
16128 (3) # - streams
16129 cf_pty_feature=ttcompat
16130 ;;
16131 (4)
16132 cf_pty_feature=pty_isatty
16133 ;;
16134 (5)
16135 cf_pty_feature=pty_tcsetattr
16136 ;;
16137 (6)
16138 cf_pty_feature=tty_tcsetattr
16139 ;;
16140 esac
16141
16142 else
16143 echo "$as_me: program exited with status $ac_status" >&5
16144 echo "$as_me: failed program was:" >&5
16145 cat "conftest.$ac_ext" >&5
16146
16147 case $cf_pty_next in
16148 (1|2|3)
16149
16150 echo "${as_me:-configure}:16150: testing skipping remaining streams features $cf_pty_this..2 ..." 1>&5
16151
16152 cf_pty_next=3
16153 ;;
16154 esac
16155
16156 fi
16157 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
16158 fi
16159 if test -n "$cf_pty_feature"
16160 then
16161 cf_pty_defines="$cf_pty_defines
16162 #define CONFTEST_$cf_pty_feature 1
16163 "
16164 cf_grantpt_opts="$cf_grantpt_opts $cf_pty_feature"
16165 fi
16166
16167 cf_pty_this=$cf_pty_next
16168 done
16169 echo "$as_me:16169: result: $cf_grantpt_opts" >&5
16170 echo "${ECHO_T}$cf_grantpt_opts" >&6
16171 cf_grantpt_opts=`echo "$cf_grantpt_opts" | sed -e 's/ isatty//'`
16172 fi
16173 fi
16174 fi
16175
16176 if test "x$cf_prefer_posix_openpt" = "xyes" && test "x$ac_cv_func_posix_openpt" = "xyes" ; then
16177 test -n "$verbose" && echo " prefer posix_openpt over openpty" 1>&6
16178
16179 echo "${as_me:-configure}:16179: testing prefer posix_openpt over openpty ..." 1>&5
16180
16181 elif test "x$disable_openpty" != "xyes" || test -z "$cf_grantpt_opts" ; then
16182 echo "$as_me:16182: checking for openpty in -lutil" >&5
16183 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16184 if test "${ac_cv_lib_util_openpty+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187 ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-lutil $LIBS"
16189 cat >"conftest.$ac_ext" <<_ACEOF
16190 #line 16190 "configure"
16191 #include "confdefs.h"
16192
16193 /* Override any gcc2 internal prototype to avoid an error. */
16194 #ifdef __cplusplus
16195 extern "C"
16196 #endif
16197 /* We use char because int might match the return type of a gcc2
16198 builtin and then its argument prototype would still apply. */
16199 char openpty ();
16200 int
16201 main (void)
16202 {
16203 openpty ();
16204 ;
16205 return 0;
16206 }
16207 _ACEOF
16208 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16209 if { (eval echo "$as_me:16209: \"$ac_link\"") >&5
16210 (eval $ac_link) 2>&5
16211 ac_status=$?
16212 echo "$as_me:16212: \$? = $ac_status" >&5
16213 (exit "$ac_status"); } &&
16214 { ac_try='test -s "conftest$ac_exeext"'
16215 { (eval echo "$as_me:16215: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:16218: \$? = $ac_status" >&5
16219 (exit "$ac_status"); }; }; then
16220 ac_cv_lib_util_openpty=yes
16221 else
16222 echo "$as_me: failed program was:" >&5
16223 cat "conftest.$ac_ext" >&5
16224 ac_cv_lib_util_openpty=no
16225 fi
16226 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16227 LIBS=$ac_check_lib_save_LIBS
16228 fi
16229 echo "$as_me:16229: result: $ac_cv_lib_util_openpty" >&5
16230 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16231 if test "$ac_cv_lib_util_openpty" = yes; then
16232 cf_have_openpty=yes
16233 else
16234 cf_have_openpty=no
16235 fi
16236
16237 if test "$cf_have_openpty" = yes ; then
16238 ac_cv_func_grantpt=no
16239 LIBS="-lutil $LIBS"
16240
16241 cat >>confdefs.h <<\EOF
16242 #define HAVE_OPENPTY 1
16243 EOF
16244
16245 for ac_header in \
16246 util.h \
16247 libutil.h \
16248 pty.h \
16249
16250 do
16251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16252 echo "$as_me:16252: checking for $ac_header" >&5
16253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 cat >"conftest.$ac_ext" <<_ACEOF
16258 #line 16258 "configure"
16259 #include "confdefs.h"
16260 #include <$ac_header>
16261 _ACEOF
16262 if { (eval echo "$as_me:16262: \"$ac_cpp "conftest.$ac_ext"\"") >&5
16263 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
16264 ac_status=$?
16265 $EGREP -v '^ *\+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:16268: \$? = $ac_status" >&5
16269 (exit "$ac_status"); } >/dev/null; then
16270 if test -s conftest.err; then
16271 ac_cpp_err=$ac_c_preproc_warn_flag
16272 else
16273 ac_cpp_err=
16274 fi
16275 else
16276 ac_cpp_err=yes
16277 fi
16278 if test -z "$ac_cpp_err"; then
16279 eval "$as_ac_Header=yes"
16280 else
16281 echo "$as_me: failed program was:" >&5
16282 cat "conftest.$ac_ext" >&5
16283 eval "$as_ac_Header=no"
16284 fi
16285 rm -f conftest.err "conftest.$ac_ext"
16286 fi
16287 echo "$as_me:16287: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
16288 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
16289 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
16290 cat >>confdefs.h <<EOF
16291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16292 EOF
16293
16294 fi
16295 done
16296
16297 fi
16298 fi
16299
16300 if test "x$ac_cv_func_grantpt" != xno
16301 then
16302 test -n "$verbose" && echo " will rely upon grantpt" 1>&6
16303
16304 echo "${as_me:-configure}:16304: testing will rely upon grantpt ..." 1>&5
16305
16306 cat >>confdefs.h <<\EOF
16307 #define HAVE_WORKING_GRANTPT 1
16308 EOF
16309
16310 for cf_feature in $cf_grantpt_opts
16311 do
16312 cf_feature=`echo "$cf_feature" | sed -e 's/ //g'`
16313
16314 cf_FEATURE=`echo "$cf_feature" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16315
16316 cat >>confdefs.h <<EOF
16317 #define HAVE_GRANTPT_$cf_FEATURE 1
16318 EOF
16319
16320 done
16321 elif test "x$cf_have_openpty" = xno
16322 then
16323 test -n "$verbose" && echo " will rely upon BSD-pseudoterminals" 1>&6
16324
16325 echo "${as_me:-configure}:16325: testing will rely upon BSD-pseudoterminals ..." 1>&5
16326
16327 else
16328 test -n "$verbose" && echo " will rely upon openpty" 1>&6
16329
16330 echo "${as_me:-configure}:16330: testing will rely upon openpty ..." 1>&5
16331
16332 fi
16333
16334 echo "$as_me:16334: checking if we can use XkbQueryExtension" >&5
16335 echo $ECHO_N "checking if we can use XkbQueryExtension... $ECHO_C" >&6
16336 if test "${cf_cv_xkb_query_extension+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339
16340 cat >"conftest.$ac_ext" <<_ACEOF
16341 #line 16341 "configure"
16342 #include "confdefs.h"
16343
16344 #include <X11/Xlib.h>
16345 #include <X11/extensions/XKB.h>
16346 #include <X11/XKBlib.h>
16347
16348 int
16349 main (void)
16350 {
16351
16352 int xkbmajor = XkbMajorVersion;
16353 int xkbminor = XkbMinorVersion;
16354 int xkbopcode, xkbevent, xkberror;
16355
16356 if (XkbLibraryVersion(&xkbmajor, &xkbminor)
16357 && XkbQueryExtension((Display *)0,
16358 &xkbopcode,
16359 &xkbevent,
16360 &xkberror,
16361 &xkbmajor,
16362 &xkbminor))
16363 return 0;
16364
16365 ;
16366 return 0;
16367 }
16368 _ACEOF
16369 rm -f "conftest.$ac_objext"
16370 if { (eval echo "$as_me:16370: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>&5
16372 ac_status=$?
16373 echo "$as_me:16373: \$? = $ac_status" >&5
16374 (exit "$ac_status"); } &&
16375 { ac_try='test -s "conftest.$ac_objext"'
16376 { (eval echo "$as_me:16376: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:16379: \$? = $ac_status" >&5
16380 (exit "$ac_status"); }; }; then
16381
16382 cf_cv_xkb_query_extension=yes
16383
16384 else
16385 echo "$as_me: failed program was:" >&5
16386 cat "conftest.$ac_ext" >&5
16387
16388 cf_cv_xkb_query_extension=no
16389
16390 fi
16391 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16392
16393 fi
16394 echo "$as_me:16394: result: $cf_cv_xkb_query_extension" >&5
16395 echo "${ECHO_T}$cf_cv_xkb_query_extension" >&6
16396
16397 if test $cf_cv_xkb_query_extension = yes
16398 then
16399
16400 for ac_func in XkbQueryExtension
16401 do
16402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16403 echo "$as_me:16403: checking for $ac_func" >&5
16404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16405 if eval "test \"\${$as_ac_var+set}\" = set"; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408 cat >"conftest.$ac_ext" <<_ACEOF
16409 #line 16409 "configure"
16410 #include "confdefs.h"
16411 #define $ac_func autoconf_temporary
16412 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16413 #undef $ac_func
16414
16415 #ifdef __cplusplus
16416 extern "C"
16417 #endif
16418
16419 /* We use char because int might match the return type of a gcc2
16420 builtin and then its argument prototype would still apply. */
16421 char $ac_func (void);
16422
16423 int
16424 main (void)
16425 {
16426
16427 /* The GNU C library defines stubs for functions which it implements
16428 to always fail with ENOSYS. Some functions are actually named
16429 something starting with __ and the normal name is an alias. */
16430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16431 #error found stub for $ac_func
16432 #endif
16433
16434 return $ac_func ();
16435 ;
16436 return 0;
16437 }
16438 _ACEOF
16439 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16440 if { (eval echo "$as_me:16440: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>&5
16442 ac_status=$?
16443 echo "$as_me:16443: \$? = $ac_status" >&5
16444 (exit "$ac_status"); } &&
16445 { ac_try='test -s "conftest$ac_exeext"'
16446 { (eval echo "$as_me:16446: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16448 ac_status=$?
16449 echo "$as_me:16449: \$? = $ac_status" >&5
16450 (exit "$ac_status"); }; }; then
16451 eval "$as_ac_var=yes"
16452 else
16453 echo "$as_me: failed program was:" >&5
16454 cat "conftest.$ac_ext" >&5
16455 eval "$as_ac_var=no"
16456 fi
16457 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16458 fi
16459 echo "$as_me:16459: result: `eval echo '${'"$as_ac_var"'}'`" >&5
16460 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
16461 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
16462 cat >>confdefs.h <<EOF
16463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16464 EOF
16465
16466 fi
16467 done
16468
16469 fi
16470
16471 echo "$as_me:16471: checking if we can use XkbKeycodeToKeysym" >&5
16472 echo $ECHO_N "checking if we can use XkbKeycodeToKeysym... $ECHO_C" >&6
16473 if test "${cf_cv_xkb_keycode_to_keysym+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476
16477 cat >"conftest.$ac_ext" <<_ACEOF
16478 #line 16478 "configure"
16479 #include "confdefs.h"
16480
16481 #include <X11/Xlib.h>
16482 #include <X11/XKBlib.h>
16483
16484 int
16485 main (void)
16486 {
16487
16488 KeySym keysym = XkbKeycodeToKeysym((Display *)0, 0, 0, 0);
16489 (void)keysym;
16490
16491 ;
16492 return 0;
16493 }
16494 _ACEOF
16495 rm -f "conftest.$ac_objext"
16496 if { (eval echo "$as_me:16496: \"$ac_compile\"") >&5
16497 (eval $ac_compile) 2>&5
16498 ac_status=$?
16499 echo "$as_me:16499: \$? = $ac_status" >&5
16500 (exit "$ac_status"); } &&
16501 { ac_try='test -s "conftest.$ac_objext"'
16502 { (eval echo "$as_me:16502: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16504 ac_status=$?
16505 echo "$as_me:16505: \$? = $ac_status" >&5
16506 (exit "$ac_status"); }; }; then
16507
16508 cf_cv_xkb_keycode_to_keysym=yes
16509
16510 else
16511 echo "$as_me: failed program was:" >&5
16512 cat "conftest.$ac_ext" >&5
16513
16514 cf_cv_xkb_keycode_to_keysym=no
16515
16516 fi
16517 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16518
16519 fi
16520 echo "$as_me:16520: result: $cf_cv_xkb_keycode_to_keysym" >&5
16521 echo "${ECHO_T}$cf_cv_xkb_keycode_to_keysym" >&6
16522
16523 if test $cf_cv_xkb_keycode_to_keysym = yes
16524 then
16525
16526 for ac_func in XkbKeycodeToKeysym
16527 do
16528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16529 echo "$as_me:16529: checking for $ac_func" >&5
16530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16531 if eval "test \"\${$as_ac_var+set}\" = set"; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534 cat >"conftest.$ac_ext" <<_ACEOF
16535 #line 16535 "configure"
16536 #include "confdefs.h"
16537 #define $ac_func autoconf_temporary
16538 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16539 #undef $ac_func
16540
16541 #ifdef __cplusplus
16542 extern "C"
16543 #endif
16544
16545 /* We use char because int might match the return type of a gcc2
16546 builtin and then its argument prototype would still apply. */
16547 char $ac_func (void);
16548
16549 int
16550 main (void)
16551 {
16552
16553 /* The GNU C library defines stubs for functions which it implements
16554 to always fail with ENOSYS. Some functions are actually named
16555 something starting with __ and the normal name is an alias. */
16556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16557 #error found stub for $ac_func
16558 #endif
16559
16560 return $ac_func ();
16561 ;
16562 return 0;
16563 }
16564 _ACEOF
16565 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16566 if { (eval echo "$as_me:16566: \"$ac_link\"") >&5
16567 (eval $ac_link) 2>&5
16568 ac_status=$?
16569 echo "$as_me:16569: \$? = $ac_status" >&5
16570 (exit "$ac_status"); } &&
16571 { ac_try='test -s "conftest$ac_exeext"'
16572 { (eval echo "$as_me:16572: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:16575: \$? = $ac_status" >&5
16576 (exit "$ac_status"); }; }; then
16577 eval "$as_ac_var=yes"
16578 else
16579 echo "$as_me: failed program was:" >&5
16580 cat "conftest.$ac_ext" >&5
16581 eval "$as_ac_var=no"
16582 fi
16583 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16584 fi
16585 echo "$as_me:16585: result: `eval echo '${'"$as_ac_var"'}'`" >&5
16586 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
16587 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
16588 cat >>confdefs.h <<EOF
16589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16590 EOF
16591
16592 fi
16593 done
16594
16595 fi
16596
16597 cf_save_LIBS_CF_XKB_BELL_EXT="$LIBS"
16598 cf_save_CFLAGS_CF_XKB_BELL_EXT="$CFLAGS"
16599 cf_save_CPPFLAGS_CF_XKB_BELL_EXT="$CPPFLAGS"
16600 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16601 for cf_X_CFLAGS in $X_CFLAGS
16602 do
16603 case "x$cf_X_CFLAGS" in
16604 x-[IUD]*)
16605 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16606 ;;
16607 *)
16608 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16609 ;;
16610 esac
16611 done
16612
16613 echo "$as_me:16613: checking for XKB Bell extension" >&5
16614 echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
16615 if test "${cf_cv_xkb_bell_ext+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618
16619 cat >"conftest.$ac_ext" <<_ACEOF
16620 #line 16620 "configure"
16621 #include "confdefs.h"
16622
16623 #include <X11/Intrinsic.h>
16624 #include <X11/XKBlib.h> /* has the prototype */
16625 #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */
16626
16627 int
16628 main (void)
16629 {
16630
16631 int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
16632 Atom y = 0;
16633 (void)x;
16634 XkbBell((Display *)0, (Widget)0, 0, y);
16635
16636 ;
16637 return 0;
16638 }
16639 _ACEOF
16640 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16641 if { (eval echo "$as_me:16641: \"$ac_link\"") >&5
16642 (eval $ac_link) 2>&5
16643 ac_status=$?
16644 echo "$as_me:16644: \$? = $ac_status" >&5
16645 (exit "$ac_status"); } &&
16646 { ac_try='test -s "conftest$ac_exeext"'
16647 { (eval echo "$as_me:16647: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:16650: \$? = $ac_status" >&5
16651 (exit "$ac_status"); }; }; then
16652 cf_cv_xkb_bell_ext=yes
16653 else
16654 echo "$as_me: failed program was:" >&5
16655 cat "conftest.$ac_ext" >&5
16656 cf_cv_xkb_bell_ext=no
16657 fi
16658 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16659
16660 fi
16661 echo "$as_me:16661: result: $cf_cv_xkb_bell_ext" >&5
16662 echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
16663 test "$cf_cv_xkb_bell_ext" = yes &&
16664 cat >>confdefs.h <<\EOF
16665 #define HAVE_XKB_BELL_EXT 1
16666 EOF
16667
16668 LIBS="$cf_save_LIBS_CF_XKB_BELL_EXT"
16669 CFLAGS="$cf_save_CFLAGS_CF_XKB_BELL_EXT"
16670 CPPFLAGS="$cf_save_CPPFLAGS_CF_XKB_BELL_EXT"
16671
16672 for ac_func in Xutf8LookupString
16673 do
16674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16675 echo "$as_me:16675: checking for $ac_func" >&5
16676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16677 if eval "test \"\${$as_ac_var+set}\" = set"; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 else
16680 cat >"conftest.$ac_ext" <<_ACEOF
16681 #line 16681 "configure"
16682 #include "confdefs.h"
16683 #define $ac_func autoconf_temporary
16684 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
16685 #undef $ac_func
16686
16687 #ifdef __cplusplus
16688 extern "C"
16689 #endif
16690
16691 /* We use char because int might match the return type of a gcc2
16692 builtin and then its argument prototype would still apply. */
16693 char $ac_func (void);
16694
16695 int
16696 main (void)
16697 {
16698
16699 /* The GNU C library defines stubs for functions which it implements
16700 to always fail with ENOSYS. Some functions are actually named
16701 something starting with __ and the normal name is an alias. */
16702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16703 #error found stub for $ac_func
16704 #endif
16705
16706 return $ac_func ();
16707 ;
16708 return 0;
16709 }
16710 _ACEOF
16711 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16712 if { (eval echo "$as_me:16712: \"$ac_link\"") >&5
16713 (eval $ac_link) 2>&5
16714 ac_status=$?
16715 echo "$as_me:16715: \$? = $ac_status" >&5
16716 (exit "$ac_status"); } &&
16717 { ac_try='test -s "conftest$ac_exeext"'
16718 { (eval echo "$as_me:16718: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:16721: \$? = $ac_status" >&5
16722 (exit "$ac_status"); }; }; then
16723 eval "$as_ac_var=yes"
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 cat "conftest.$ac_ext" >&5
16727 eval "$as_ac_var=no"
16728 fi
16729 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16730 fi
16731 echo "$as_me:16731: result: `eval echo '${'"$as_ac_var"'}'`" >&5
16732 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
16733 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
16734 cat >>confdefs.h <<EOF
16735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16736 EOF
16737
16738 else
16739
16740 EXTRAHDRS="$EXTRAHDRS xutf8.h"
16741 EXTRASRCS="$EXTRASRCS xutf8.c"
16742 EXTRAOBJS="$EXTRAOBJS xutf8.o"
16743
16744 fi
16745 done
16746
16747 echo "$as_me:16747: checking if you want narrow prototypes for X libraries" >&5
16748 echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
16749
16750 case `$ac_config_guess` in
16751 (*freebsd*|*gnu*|*irix5*|*irix6*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*)
16752 cf_default_narrowproto=yes
16753 ;;
16754 (*)
16755 cf_default_narrowproto=no
16756 ;;
16757 esac
16758
16759 # Check whether --enable-narrowproto or --disable-narrowproto was given.
16760 if test "${enable_narrowproto+set}" = set; then
16761 enableval="$enable_narrowproto"
16762 test "$enableval" != no && enableval=yes
16763 if test "$enableval" != "$cf_default_narrowproto" ; then
16764 enable_narrowproto=$enableval
16765 else
16766 enable_narrowproto=$cf_default_narrowproto
16767 fi
16768 else
16769 enableval=$cf_default_narrowproto
16770 enable_narrowproto=$cf_default_narrowproto
16771
16772 fi;
16773 echo "$as_me:16773: result: $enable_narrowproto" >&5
16774 echo "${ECHO_T}$enable_narrowproto" >&6
16775
16776 echo "$as_me:16776: checking if we should use imake to help" >&5
16777 echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
16778
16779 # Check whether --enable-imake or --disable-imake was given.
16780 if test "${enable_imake+set}" = set; then
16781 enableval="$enable_imake"
16782 test "$enableval" != no && enableval=yes
16783 if test "$enableval" != "yes" ; then
16784 enable_imake=no
16785 else
16786 enable_imake=yes
16787 fi
16788 else
16789 enableval=yes
16790 enable_imake=yes
16791
16792 fi;
16793 echo "$as_me:16793: result: $enable_imake" >&5
16794 echo "${ECHO_T}$enable_imake" >&6
16795
16796 if test "$enable_imake" = yes ; then
16797
16798 for ac_prog in xmkmf imake
16799 do
16800 # Extract the first word of "$ac_prog", so it can be a program name with args.
16801 set dummy $ac_prog; ac_word=$2
16802 echo "$as_me:16802: checking for $ac_word" >&5
16803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16804 if test "${ac_cv_path_IMAKE+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807 case $IMAKE in
16808 [\\/]* | ?:[\\/]*)
16809 ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
16810 ;;
16811 *)
16812 ac_save_IFS=$IFS; IFS=$ac_path_separator
16813 ac_dummy="$PATH"
16814 for ac_dir in $ac_dummy; do
16815 IFS=$ac_save_IFS
16816 test -z "$ac_dir" && ac_dir=.
16817 if $as_executable_p "$ac_dir/$ac_word"; then
16818 ac_cv_path_IMAKE="$ac_dir/$ac_word"
16819 echo "$as_me:16819: found $ac_dir/$ac_word" >&5
16820 break
16821 fi
16822 done
16823
16824 ;;
16825 esac
16826 fi
16827 IMAKE=$ac_cv_path_IMAKE
16828
16829 if test -n "$IMAKE"; then
16830 echo "$as_me:16830: result: $IMAKE" >&5
16831 echo "${ECHO_T}$IMAKE" >&6
16832 else
16833 echo "$as_me:16833: result: no" >&5
16834 echo "${ECHO_T}no" >&6
16835 fi
16836
16837 test -n "$IMAKE" && break
16838 done
16839
16840 if test -n "$IMAKE" ; then
16841
16842 case $IMAKE in
16843 (*/imake)
16844 cf_imake_opts="-DUseInstalled=YES"
16845 ;;
16846 (*/util/xmkmf)
16847 # A single parameter tells xmkmf where the config-files are:
16848 cf_imake_opts="`echo "$IMAKE"|sed -e s,/config/util/xmkmf,,`"
16849 ;;
16850 (*)
16851 cf_imake_opts=
16852 ;;
16853 esac
16854
16855 # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
16856 # config directory.
16857 if mkdir conftestdir; then
16858 CDPATH=; export CDPATH
16859 cf_makefile=`cd "$srcdir" || exit;pwd`/Imakefile
16860 cd conftestdir
16861
16862 cat >fix_cflags.sed <<'CF_EOF'
16863 s/\\//g
16864 s/[ ][ ]*/ /g
16865 s/"//g
16866 :pack
16867 s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g
16868 t pack
16869 s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
16870 s/^IMAKE[ ]/IMAKE_CFLAGS="/
16871 s/ / /g
16872 s/$/"/
16873 CF_EOF
16874
16875 cat >fix_lflags.sed <<'CF_EOF'
16876 s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/
16877 s/$/"/
16878 CF_EOF
16879
16880 echo >./Imakefile
16881 test -f "$cf_makefile" && cat "$cf_makefile" >>./Imakefile
16882
16883 cat >> ./Imakefile <<'CF_EOF'
16884 findstddefs:
16885 @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed
16886 @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
16887 CF_EOF
16888
16889 if ( $IMAKE "$cf_imake_opts" 1>/dev/null 2>&5 && test -f Makefile)
16890 then
16891 test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6
16892
16893 echo "${as_me:-configure}:16893: testing Using $IMAKE $cf_imake_opts ..." 1>&5
16894
16895 else
16896 # sometimes imake doesn't have the config path compiled in. Find it.
16897 cf_config=
16898 for cf_libpath in $X_LIBS $LIBS ; do
16899 case "$cf_libpath" in
16900 (-L*)
16901 cf_libpath=`echo ".$cf_libpath" | sed -e 's/^...//'`
16902 cf_libpath="$cf_libpath/X11/config"
16903 if test -d "$cf_libpath" ; then
16904 cf_config="$cf_libpath"
16905 break
16906 fi
16907 ;;
16908 esac
16909 done
16910 if test -z "$cf_config" ; then
16911 { echo "$as_me:16911: WARNING: Could not find imake config-directory" >&5
16912 echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
16913 else
16914 cf_imake_opts="$cf_imake_opts -I$cf_config"
16915 if ( "$IMAKE" -v "$cf_imake_opts" 2>&5)
16916 then
16917 test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6
16918
16919 echo "${as_me:-configure}:16919: testing Using $IMAKE $cf_config ..." 1>&5
16920
16921 else
16922 { echo "$as_me:16922: WARNING: Cannot run $IMAKE" >&5
16923 echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
16924 fi
16925 fi
16926 fi
16927
16928 # GNU make sometimes prints "make[1]: Entering...", which
16929 # would confuse us.
16930 eval "`make findstddefs 2>/dev/null | grep -v make`"
16931
16932 cd ..
16933 rm -rf conftestdir
16934
16935 # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
16936 # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have
16937 # modified it to support site.cf, adding a kludge for the /usr/include
16938 # directory. Try to filter that out, otherwise gcc won't find its
16939 # headers.
16940 if test -n "$GCC" ; then
16941 if test -n "$IMAKE_CFLAGS" ; then
16942 cf_nostdinc=""
16943 cf_std_incl=""
16944 cf_cpp_opts=""
16945 for cf_opt in $IMAKE_CFLAGS
16946 do
16947 case "$cf_opt" in
16948 (-nostdinc)
16949 cf_nostdinc="$cf_opt"
16950 ;;
16951 (-I/usr/include)
16952 cf_std_incl="$cf_opt"
16953 ;;
16954 (*)
16955 cf_cpp_opts="$cf_cpp_opts $cf_opt"
16956 ;;
16957 esac
16958 done
16959 if test -z "$cf_nostdinc" ; then
16960 IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
16961 elif test -z "$cf_std_incl" ; then
16962 IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
16963 else
16964 test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
16965
16966 echo "${as_me:-configure}:16966: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
16967
16968 IMAKE_CFLAGS="$cf_cpp_opts"
16969 fi
16970 fi
16971 fi
16972 fi
16973
16974 # Some imake configurations define PROJECTROOT with an empty value. Remove
16975 # the empty definition.
16976 case $IMAKE_CFLAGS in
16977 (*-DPROJECTROOT=/*)
16978 ;;
16979 (*)
16980 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"`
16981 ;;
16982 esac
16983
16984 fi
16985
16986 test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
16987
16988 echo "${as_me:-configure}:16988: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
16989
16990 test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
16991
16992 echo "${as_me:-configure}:16992: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
16993
16994 fi
16995
16996 if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
16997
16998 cf_fix_cppflags=no
16999 cf_new_cflags=
17000 cf_new_cppflags=
17001 cf_new_extra_cppflags=
17002
17003 for cf_add_cflags in $IMAKE_CFLAGS
17004 do
17005 case "$cf_fix_cppflags" in
17006 (no)
17007 case "$cf_add_cflags" in
17008 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17009 case "$cf_add_cflags" in
17010 (-D*)
17011 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17012
17013 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17014 && test -z "${cf_tst_cflags}" \
17015 && cf_fix_cppflags=yes
17016
17017 if test "$cf_fix_cppflags" = yes ; then
17018
17019 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17021
17022 continue
17023 elif test "${cf_tst_cflags}" = "\"'" ; then
17024
17025 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17026 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17027
17028 continue
17029 fi
17030 ;;
17031 esac
17032 case "$CPPFLAGS" in
17033 (*$cf_add_cflags)
17034 ;;
17035 (*)
17036 case "$cf_add_cflags" in
17037 (-D*)
17038 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17039
17040 CPPFLAGS=`echo "$CPPFLAGS" | \
17041 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17042 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17043
17044 ;;
17045 esac
17046
17047 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17048 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17049
17050 ;;
17051 esac
17052 ;;
17053 (*)
17054
17055 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17056 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17057
17058 ;;
17059 esac
17060 ;;
17061 (yes)
17062
17063 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17065
17066 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17067
17068 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17069 && test -z "${cf_tst_cflags}" \
17070 && cf_fix_cppflags=no
17071 ;;
17072 esac
17073 done
17074
17075 if test -n "$cf_new_cflags" ; then
17076
17077 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17078 CFLAGS="${CFLAGS}$cf_new_cflags"
17079
17080 fi
17081
17082 if test -n "$cf_new_cppflags" ; then
17083
17084 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17085 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17086
17087 fi
17088
17089 if test -n "$cf_new_extra_cppflags" ; then
17090
17091 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17092 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17093
17094 fi
17095
17096 else
17097 IMAKE_CFLAGS=
17098 IMAKE_LOADFLAGS=
17099 test -n "$verbose" && echo " make fallback definitions" 1>&6
17100
17101 echo "${as_me:-configure}:17101: testing make fallback definitions ..." 1>&5
17102
17103 # We prefer config.guess' values when we can get them, to avoid
17104 # inconsistent results with uname (AIX for instance). However,
17105 # config.guess is not always consistent either.
17106 case $host_os in
17107 (*[0-9].[0-9]*)
17108 UNAME_RELEASE="$host_os"
17109 ;;
17110 (*)
17111 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
17112 ;;
17113 esac
17114
17115 case .$UNAME_RELEASE in
17116 (*[0-9].[0-9]*)
17117 OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
17118 OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
17119 test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
17120 test -z "$OSMINORVERSION" && OSMINORVERSION=0
17121 IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
17122 ;;
17123 esac
17124
17125 # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
17126 # fallback/fragments for NeedPrototypes, etc.
17127 IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
17128
17129 # If this is not set properly, Xaw's scrollbars will not work
17130 if test "$enable_narrowproto" = yes ; then
17131 IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
17132 fi
17133
17134 # Other special definitions:
17135 case $host_os in
17136 (aix*)
17137 # imake on AIX 5.1 defines AIXV3. really.
17138 IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
17139 ;;
17140 (irix[56].*)
17141 # these are needed to make SIGWINCH work in xterm
17142 IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
17143 ;;
17144 esac
17145
17146 # "modern" systems install X applications in /usr/bin. Other systems may
17147 # use one of the X release-based directories.
17148 case "$CFLAGS $CPPFLAGS $IMAKE_CFLAGS" in
17149 (*-DPROJECTROOT*)
17150 ;;
17151 (*)
17152 for cf_dir in /usr/X11R7 /usr/X11R6 /usr/X11R5
17153 do
17154 if test -d "$cf_dir/bin"
17155 then
17156 IMAKE_CFLAGS="$IMAKE_CFLAGS -DPROJECTROOT=\\\"$cf_dir\\\""
17157 break
17158 fi
17159 done
17160 ;;
17161 esac
17162
17163 cf_fix_cppflags=no
17164 cf_new_cflags=
17165 cf_new_cppflags=
17166 cf_new_extra_cppflags=
17167
17168 for cf_add_cflags in $IMAKE_CFLAGS
17169 do
17170 case "$cf_fix_cppflags" in
17171 (no)
17172 case "$cf_add_cflags" in
17173 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17174 case "$cf_add_cflags" in
17175 (-D*)
17176 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17177
17178 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17179 && test -z "${cf_tst_cflags}" \
17180 && cf_fix_cppflags=yes
17181
17182 if test "$cf_fix_cppflags" = yes ; then
17183
17184 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17185 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17186
17187 continue
17188 elif test "${cf_tst_cflags}" = "\"'" ; then
17189
17190 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17191 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17192
17193 continue
17194 fi
17195 ;;
17196 esac
17197 case "$CPPFLAGS" in
17198 (*$cf_add_cflags)
17199 ;;
17200 (*)
17201 case "$cf_add_cflags" in
17202 (-D*)
17203 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17204
17205 CPPFLAGS=`echo "$CPPFLAGS" | \
17206 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17207 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17208
17209 ;;
17210 esac
17211
17212 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17213 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17214
17215 ;;
17216 esac
17217 ;;
17218 (*)
17219
17220 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17221 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17222
17223 ;;
17224 esac
17225 ;;
17226 (yes)
17227
17228 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17229 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17230
17231 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17232
17233 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17234 && test -z "${cf_tst_cflags}" \
17235 && cf_fix_cppflags=no
17236 ;;
17237 esac
17238 done
17239
17240 if test -n "$cf_new_cflags" ; then
17241
17242 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17243 CFLAGS="${CFLAGS}$cf_new_cflags"
17244
17245 fi
17246
17247 if test -n "$cf_new_cppflags" ; then
17248
17249 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17250 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17251
17252 fi
17253
17254 if test -n "$cf_new_extra_cppflags" ; then
17255
17256 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17257 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17258
17259 fi
17260
17261 fi
17262
17263 # Extract the first word of "groff", so it can be a program name with args.
17264 set dummy groff; ac_word=$2
17265 echo "$as_me:17265: checking for $ac_word" >&5
17266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17267 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270 case $GROFF_PATH in
17271 [\\/]* | ?:[\\/]*)
17272 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
17273 ;;
17274 *)
17275 ac_save_IFS=$IFS; IFS=$ac_path_separator
17276 ac_dummy="$PATH"
17277 for ac_dir in $ac_dummy; do
17278 IFS=$ac_save_IFS
17279 test -z "$ac_dir" && ac_dir=.
17280 if $as_executable_p "$ac_dir/$ac_word"; then
17281 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
17282 echo "$as_me:17282: found $ac_dir/$ac_word" >&5
17283 break
17284 fi
17285 done
17286
17287 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
17288 ;;
17289 esac
17290 fi
17291 GROFF_PATH=$ac_cv_path_GROFF_PATH
17292
17293 if test -n "$GROFF_PATH"; then
17294 echo "$as_me:17294: result: $GROFF_PATH" >&5
17295 echo "${ECHO_T}$GROFF_PATH" >&6
17296 else
17297 echo "$as_me:17297: result: no" >&5
17298 echo "${ECHO_T}no" >&6
17299 fi
17300
17301 for ac_prog in nroff mandoc
17302 do
17303 # Extract the first word of "$ac_prog", so it can be a program name with args.
17304 set dummy $ac_prog; ac_word=$2
17305 echo "$as_me:17305: checking for $ac_word" >&5
17306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17307 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310 case $NROFF_PATH in
17311 [\\/]* | ?:[\\/]*)
17312 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
17313 ;;
17314 *)
17315 ac_save_IFS=$IFS; IFS=$ac_path_separator
17316 ac_dummy="$PATH"
17317 for ac_dir in $ac_dummy; do
17318 IFS=$ac_save_IFS
17319 test -z "$ac_dir" && ac_dir=.
17320 if $as_executable_p "$ac_dir/$ac_word"; then
17321 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
17322 echo "$as_me:17322: found $ac_dir/$ac_word" >&5
17323 break
17324 fi
17325 done
17326
17327 ;;
17328 esac
17329 fi
17330 NROFF_PATH=$ac_cv_path_NROFF_PATH
17331
17332 if test -n "$NROFF_PATH"; then
17333 echo "$as_me:17333: result: $NROFF_PATH" >&5
17334 echo "${ECHO_T}$NROFF_PATH" >&6
17335 else
17336 echo "$as_me:17336: result: no" >&5
17337 echo "${ECHO_T}no" >&6
17338 fi
17339
17340 test -n "$NROFF_PATH" && break
17341 done
17342 test -n "$NROFF_PATH" || NROFF_PATH="no"
17343
17344 # Extract the first word of "tbl", so it can be a program name with args.
17345 set dummy tbl; ac_word=$2
17346 echo "$as_me:17346: checking for $ac_word" >&5
17347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17348 if test "${ac_cv_path_TBL_PATH+set}" = set; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 else
17351 case $TBL_PATH in
17352 [\\/]* | ?:[\\/]*)
17353 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
17354 ;;
17355 *)
17356 ac_save_IFS=$IFS; IFS=$ac_path_separator
17357 ac_dummy="$PATH"
17358 for ac_dir in $ac_dummy; do
17359 IFS=$ac_save_IFS
17360 test -z "$ac_dir" && ac_dir=.
17361 if $as_executable_p "$ac_dir/$ac_word"; then
17362 ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
17363 echo "$as_me:17363: found $ac_dir/$ac_word" >&5
17364 break
17365 fi
17366 done
17367
17368 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
17369 ;;
17370 esac
17371 fi
17372 TBL_PATH=$ac_cv_path_TBL_PATH
17373
17374 if test -n "$TBL_PATH"; then
17375 echo "$as_me:17375: result: $TBL_PATH" >&5
17376 echo "${ECHO_T}$TBL_PATH" >&6
17377 else
17378 echo "$as_me:17378: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17380 fi
17381
17382 if test "x$GROFF_PATH" = xno
17383 then
17384 NROFF_NOTE=
17385 GROFF_NOTE="#"
17386 else
17387 NROFF_NOTE="#"
17388 GROFF_NOTE=
17389 fi
17390
17391 echo "$as_me:17391: checking for fgrep" >&5
17392 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
17393 if test "${ac_cv_path_FGREP+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 else
17396 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
17397 then ac_cv_path_FGREP="$GREP -F"
17398 else
17399 for ac_prog in gfgrep fgrep
17400 do
17401 # Extract the first word of "$ac_prog", so it can be a program name with args.
17402 set dummy $ac_prog; ac_word=$2
17403 echo "$as_me:17403: checking for $ac_word" >&5
17404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17405 if test "${ac_cv_path_FGREP+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408 case $FGREP in
17409 [\\/]* | ?:[\\/]*)
17410 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
17411 ;;
17412 *)
17413 ac_save_IFS=$IFS; IFS=$ac_path_separator
17414 ac_dummy="$PATH"
17415 for ac_dir in $ac_dummy; do
17416 IFS=$ac_save_IFS
17417 test -z "$ac_dir" && ac_dir=.
17418 if $as_executable_p "$ac_dir/$ac_word"; then
17419 ac_cv_path_FGREP="$ac_dir/$ac_word"
17420 echo "$as_me:17420: found $ac_dir/$ac_word" >&5
17421 break
17422 fi
17423 done
17424
17425 ;;
17426 esac
17427 fi
17428 FGREP=$ac_cv_path_FGREP
17429
17430 if test -n "$FGREP"; then
17431 echo "$as_me:17431: result: $FGREP" >&5
17432 echo "${ECHO_T}$FGREP" >&6
17433 else
17434 echo "$as_me:17434: result: no" >&5
17435 echo "${ECHO_T}no" >&6
17436 fi
17437
17438 test -n "$FGREP" && break
17439 done
17440 test -n "$FGREP" || FGREP=": "
17441
17442 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:17442: error: cannot find workable fgrep" >&5
17443 echo "$as_me: error: cannot find workable fgrep" >&2;}
17444 { (exit 1); exit 1; }; }
17445 fi
17446 fi
17447 echo "$as_me:17447: result: $ac_cv_path_FGREP" >&5
17448 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
17449 FGREP="$ac_cv_path_FGREP"
17450
17451 case "x${with_man2html}" in
17452 (xno)
17453 cf_man2html=no
17454 ;;
17455 (x|xyes)
17456 # Extract the first word of "man2html", so it can be a program name with args.
17457 set dummy man2html; ac_word=$2
17458 echo "$as_me:17458: checking for $ac_word" >&5
17459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17460 if test "${ac_cv_path_cf_man2html+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463 case $cf_man2html in
17464 [\\/]* | ?:[\\/]*)
17465 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
17466 ;;
17467 *)
17468 ac_save_IFS=$IFS; IFS=$ac_path_separator
17469 ac_dummy="$PATH"
17470 for ac_dir in $ac_dummy; do
17471 IFS=$ac_save_IFS
17472 test -z "$ac_dir" && ac_dir=.
17473 if $as_executable_p "$ac_dir/$ac_word"; then
17474 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
17475 echo "$as_me:17475: found $ac_dir/$ac_word" >&5
17476 break
17477 fi
17478 done
17479
17480 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
17481 ;;
17482 esac
17483 fi
17484 cf_man2html=$ac_cv_path_cf_man2html
17485
17486 if test -n "$cf_man2html"; then
17487 echo "$as_me:17487: result: $cf_man2html" >&5
17488 echo "${ECHO_T}$cf_man2html" >&6
17489 else
17490 echo "$as_me:17490: result: no" >&5
17491 echo "${ECHO_T}no" >&6
17492 fi
17493
17494 case "x$cf_man2html" in
17495 (x/*)
17496 echo "$as_me:17496: checking for the modified Earl Hood script" >&5
17497 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
17498 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
17499 then
17500 cf_man2html_ok=yes
17501 else
17502 cf_man2html=no
17503 cf_man2html_ok=no
17504 fi
17505 echo "$as_me:17505: result: $cf_man2html_ok" >&5
17506 echo "${ECHO_T}$cf_man2html_ok" >&6
17507 ;;
17508 (*)
17509 cf_man2html=no
17510 ;;
17511 esac
17512 esac
17513
17514 echo "$as_me:17514: checking for program to convert manpage to html" >&5
17515 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
17516
17517 # Check whether --with-man2html or --without-man2html was given.
17518 if test "${with_man2html+set}" = set; then
17519 withval="$with_man2html"
17520 cf_man2html=$withval
17521 else
17522 cf_man2html=$cf_man2html
17523 fi;
17524
17525 cf_with_groff=no
17526
17527 case $cf_man2html in
17528 (yes)
17529 echo "$as_me:17529: result: man2html" >&5
17530 echo "${ECHO_T}man2html" >&6
17531 # Extract the first word of "man2html", so it can be a program name with args.
17532 set dummy man2html; ac_word=$2
17533 echo "$as_me:17533: checking for $ac_word" >&5
17534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17535 if test "${ac_cv_path_cf_man2html+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538 case $cf_man2html in
17539 [\\/]* | ?:[\\/]*)
17540 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
17541 ;;
17542 *)
17543 ac_save_IFS=$IFS; IFS=$ac_path_separator
17544 ac_dummy="$PATH"
17545 for ac_dir in $ac_dummy; do
17546 IFS=$ac_save_IFS
17547 test -z "$ac_dir" && ac_dir=.
17548 if $as_executable_p "$ac_dir/$ac_word"; then
17549 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
17550 echo "$as_me:17550: found $ac_dir/$ac_word" >&5
17551 break
17552 fi
17553 done
17554
17555 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
17556 ;;
17557 esac
17558 fi
17559 cf_man2html=$ac_cv_path_cf_man2html
17560
17561 if test -n "$cf_man2html"; then
17562 echo "$as_me:17562: result: $cf_man2html" >&5
17563 echo "${ECHO_T}$cf_man2html" >&6
17564 else
17565 echo "$as_me:17565: result: no" >&5
17566 echo "${ECHO_T}no" >&6
17567 fi
17568
17569 ;;
17570 (no|groff|*/groff*)
17571 cf_with_groff=yes
17572 cf_man2html=$GROFF_PATH
17573 echo "$as_me:17573: result: $cf_man2html" >&5
17574 echo "${ECHO_T}$cf_man2html" >&6
17575 ;;
17576 (*)
17577 echo "$as_me:17577: result: $cf_man2html" >&5
17578 echo "${ECHO_T}$cf_man2html" >&6
17579 ;;
17580 esac
17581
17582 MAN2HTML_TEMP="man2html.tmp"
17583 cat >$MAN2HTML_TEMP <<CF_EOF
17584 #!$SHELL
17585 # Temporary script generated by CF_WITH_MAN2HTML
17586 # Convert inputs to html, sending result to standard output.
17587 #
17588 # Parameters:
17589 # \${1} = rootname of file to convert
17590 # \${2} = suffix of file to convert, e.g., "1"
17591 # \${3} = macros to use, e.g., "man"
17592 #
17593 ROOT=\$1
17594 TYPE=\$2
17595 MACS=\$3
17596
17597 unset LANG
17598 unset LC_ALL
17599 unset LC_CTYPE
17600 unset LANGUAGE
17601 GROFF_NO_SGR=stupid
17602 export GROFF_NO_SGR
17603
17604 CF_EOF
17605
17606 NROFF_OPTS=
17607 if test "x$cf_with_groff" = xyes
17608 then
17609 MAN2HTML_NOTE="$GROFF_NOTE"
17610 MAN2HTML_PATH="$GROFF_PATH"
17611 cat >>$MAN2HTML_TEMP <<CF_EOF
17612 $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
17613 CF_EOF
17614 else
17615 # disable hyphenation if this is groff
17616 if test "x$GROFF_PATH" != xno
17617 then
17618 echo "$as_me:17618: checking if nroff is really groff" >&5
17619 echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6
17620 cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`"
17621 test -n "$cf_check_groff" && cf_check_groff=yes
17622 test -n "$cf_check_groff" || cf_check_groff=no
17623 echo "$as_me:17623: result: $cf_check_groff" >&5
17624 echo "${ECHO_T}$cf_check_groff" >&6
17625 test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0"
17626 fi
17627 MAN2HTML_NOTE=""
17628
17629 if test "x$prefix" != xNONE; then
17630 cf_path_syntax="$prefix"
17631 else
17632 cf_path_syntax="$ac_default_prefix"
17633 fi
17634
17635 case ".$cf_man2html" in
17636 (.\$\(*\)*|.\'*\'*)
17637 ;;
17638 (..|./*|.\\*)
17639 ;;
17640 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
17641 ;;
17642 (.\$\{*prefix\}*|.\$\{*dir\}*)
17643 eval cf_man2html="$cf_man2html"
17644 case ".$cf_man2html" in
17645 (.NONE/*)
17646 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
17647 ;;
17648 esac
17649 ;;
17650 (.no|.NONE/*)
17651 cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
17652 ;;
17653 (*)
17654 { { echo "$as_me:17654: error: expected a pathname, not \"$cf_man2html\"" >&5
17655 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
17656 { (exit 1); exit 1; }; }
17657 ;;
17658 esac
17659
17660 MAN2HTML_PATH="$cf_man2html"
17661 echo "$as_me:17661: checking for $cf_man2html top/bottom margins" >&5
17662 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
17663
17664 # for this example, expect 3 lines of content, the remainder is head/foot
17665 cat >conftest.in <<CF_EOF
17666 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
17667 .SH SECTION
17668 MARKER
17669 CF_EOF
17670
17671 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
17672
17673 cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
17674 cf_man2html_top=`expr "$cf_man2html_1st" - 2`
17675 cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`"
17676 cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"`
17677 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
17678
17679 echo "$as_me:17679: result: $cf_man2html_top_bot" >&5
17680 echo "${ECHO_T}$cf_man2html_top_bot" >&6
17681
17682 echo "$as_me:17682: checking for pagesize to use" >&5
17683 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
17684 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
17685 do
17686 cat >>conftest.in <<CF_EOF
17687 .nf
17688 0
17689 1
17690 2
17691 3
17692 4
17693 5
17694 6
17695 7
17696 8
17697 9
17698 CF_EOF
17699 done
17700
17701 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
17702 cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
17703 test -z "$cf_man2html_page" && cf_man2html_page=99999
17704 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
17705
17706 rm -rf conftest*
17707 echo "$as_me:17707: result: $cf_man2html_page" >&5
17708 echo "${ECHO_T}$cf_man2html_page" >&6
17709
17710 cat >>$MAN2HTML_TEMP <<CF_EOF
17711 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
17712 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
17713 case \${TYPE} in
17714 (ms)
17715 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
17716 ;;
17717 (*)
17718 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
17719 ;;
17720 esac
17721 CF_EOF
17722 fi
17723
17724 chmod 700 $MAN2HTML_TEMP
17725
17726 # If we have already established that there is a full termcap implementation,
17727 # suppress the definitions for terminfo that we make have imported from the
17728 # imake-file.
17729 if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
17730 case "$IMAKE_CFLAGS" in
17731 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
17732
17733 test -n "$verbose" && echo " removing terminfo flags from IMAKE_CFLAGS" 1>&6
17734
17735 echo "${as_me:-configure}:17735: testing removing terminfo flags from IMAKE_CFLAGS ..." 1>&5
17736
17737 IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
17738 test -n "$verbose" && echo " ...result $IMAKE_CFLAGS" 1>&6
17739
17740 echo "${as_me:-configure}:17740: testing ...result $IMAKE_CFLAGS ..." 1>&5
17741
17742 test -n "$verbose" && echo " removing terminfo flags from CPPFLAGS" 1>&6
17743
17744 echo "${as_me:-configure}:17744: testing removing terminfo flags from CPPFLAGS ..." 1>&5
17745
17746 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/-DUSE_TERMINFO[ ]*-DHAVE_TIGETSTR[ ]*//'`
17747 test -n "$verbose" && echo " ...result $CPPFLAGS" 1>&6
17748
17749 echo "${as_me:-configure}:17749: testing ...result $CPPFLAGS ..." 1>&5
17750
17751 ;;
17752 esac
17753 fi
17754
17755 echo "$as_me:17755: checking for default terminal-id" >&5
17756 echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
17757
17758 # Check whether --with-terminal-id or --without-terminal-id was given.
17759 if test "${with_terminal_id+set}" = set; then
17760 withval="$with_terminal_id"
17761 default_termid=$withval
17762 else
17763 default_termid=vt420
17764 fi;
17765 echo "$as_me:17765: result: $default_termid" >&5
17766 echo "${ECHO_T}$default_termid" >&6
17767 case $default_termid in
17768 (vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
17769 ;;
17770 esac
17771
17772 cat >>confdefs.h <<EOF
17773 #define DFT_DECID "$default_termid"
17774 EOF
17775
17776 echo "$as_me:17776: checking for default terminal-type" >&5
17777 echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
17778
17779 # Check whether --with-terminal-type or --without-terminal-type was given.
17780 if test "${with_terminal_type+set}" = set; then
17781 withval="$with_terminal_type"
17782 default_TERM=$withval
17783 else
17784 default_TERM=xterm
17785 fi;
17786 echo "$as_me:17786: result: $default_TERM" >&5
17787 echo "${ECHO_T}$default_TERM" >&6
17788
17789 cat >>confdefs.h <<EOF
17790 #define DFT_TERMTYPE "$default_TERM"
17791 EOF
17792
17793 ###############################################################################
17794 echo "$as_me:17794: checking if backarrow-key should be BS" >&5
17795 echo $ECHO_N "checking if backarrow-key should be BS... $ECHO_C" >&6
17796
17797 # Check whether --enable-backarrow-key or --disable-backarrow-key was given.
17798 if test "${enable_backarrow_key+set}" = set; then
17799 enableval="$enable_backarrow_key"
17800 test "$enableval" != no && enableval=yes
17801 if test "$enableval" != "yes" ; then
17802 backarrow_is_bs=$enableval
17803 else
17804 backarrow_is_bs=yes
17805 fi
17806 else
17807 enableval=yes
17808 backarrow_is_bs=yes
17809
17810 fi;
17811
17812 echo "$as_me:17812: result: $backarrow_is_bs" >&5
17813 echo "${ECHO_T}$backarrow_is_bs" >&6
17814 case $backarrow_is_bs in
17815 (yes)
17816 backarrow_is_bs=true
17817 ;;
17818 (no)
17819 backarrow_is_bs=false
17820 ;;
17821 esac
17822 cf_xbool1=`echo "$backarrow_is_bs"|sed -e 's/^\(.\).*/\1/'`
17823
17824 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17825
17826 cf_xbool2=`echo "$backarrow_is_bs"|sed -e 's/^.//'`
17827 backarrow_is_bs=${cf_xbool1}${cf_xbool2}
17828
17829 cat >>confdefs.h <<EOF
17830 #define DEF_BACKARO_BS $backarrow_is_bs
17831 EOF
17832
17833 echo "$as_me:17833: checking if backarrow-key should be treated as erase" >&5
17834 echo $ECHO_N "checking if backarrow-key should be treated as erase... $ECHO_C" >&6
17835
17836 # Check whether --enable-backarrow-is-erase or --disable-backarrow-is-erase was given.
17837 if test "${enable_backarrow_is_erase+set}" = set; then
17838 enableval="$enable_backarrow_is_erase"
17839 test "$enableval" != yes && enableval=no
17840 if test "$enableval" != "no" ; then
17841 backarrow_is_erase=$enableval
17842 else
17843 backarrow_is_erase=no
17844 fi
17845 else
17846 enableval=no
17847 backarrow_is_erase=no
17848
17849 fi;
17850
17851 echo "$as_me:17851: result: $backarrow_is_erase" >&5
17852 echo "${ECHO_T}$backarrow_is_erase" >&6
17853 case $backarrow_is_erase in
17854 (yes)
17855 backarrow_is_erase=true
17856 ;;
17857 (no)
17858 backarrow_is_erase=false
17859 ;;
17860 esac
17861 cf_xbool1=`echo "$backarrow_is_erase"|sed -e 's/^\(.\).*/\1/'`
17862
17863 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17864
17865 cf_xbool2=`echo "$backarrow_is_erase"|sed -e 's/^.//'`
17866 backarrow_is_erase=${cf_xbool1}${cf_xbool2}
17867
17868 cat >>confdefs.h <<EOF
17869 #define DEF_BACKARO_ERASE $backarrow_is_erase
17870 EOF
17871
17872 echo "$as_me:17872: checking for default backspace/DEL setting" >&5
17873 echo $ECHO_N "checking for default backspace/DEL setting... $ECHO_C" >&6
17874
17875 # Check whether --enable-delete-is-del or --disable-delete-is-del was given.
17876 if test "${enable_delete_is_del+set}" = set; then
17877 enableval="$enable_delete_is_del"
17878 delete_is_del=$enableval
17879 else
17880 delete_is_del=maybe
17881 fi;
17882
17883 echo "$as_me:17883: result: $delete_is_del" >&5
17884 echo "${ECHO_T}$delete_is_del" >&6
17885 case $delete_is_del in
17886 (yes)
17887 delete_is_del=true
17888 ;;
17889 (no)
17890 delete_is_del=false
17891 ;;
17892 esac
17893 cf_xbool1=`echo "$delete_is_del"|sed -e 's/^\(.\).*/\1/'`
17894
17895 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17896
17897 cf_xbool2=`echo "$delete_is_del"|sed -e 's/^.//'`
17898 delete_is_del=${cf_xbool1}${cf_xbool2}
17899
17900 cat >>confdefs.h <<EOF
17901 #define DEFDELETE_DEL $delete_is_del
17902 EOF
17903
17904 echo "$as_me:17904: checking for default pty initial erase setting" >&5
17905 echo $ECHO_N "checking for default pty initial erase setting... $ECHO_C" >&6
17906
17907 # Check whether --enable-pty-erase or --disable-pty-erase was given.
17908 if test "${enable_pty_erase+set}" = set; then
17909 enableval="$enable_pty_erase"
17910 initial_erase=$enableval
17911 else
17912 initial_erase=False
17913 fi;
17914
17915 echo "$as_me:17915: result: $initial_erase" >&5
17916 echo "${ECHO_T}$initial_erase" >&6
17917 case $initial_erase in
17918 (yes)
17919 initial_erase=true
17920 ;;
17921 (no)
17922 initial_erase=false
17923 ;;
17924 esac
17925 cf_xbool1=`echo "$initial_erase"|sed -e 's/^\(.\).*/\1/'`
17926
17927 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17928
17929 cf_xbool2=`echo "$initial_erase"|sed -e 's/^.//'`
17930 initial_erase=${cf_xbool1}${cf_xbool2}
17931
17932 cat >>confdefs.h <<EOF
17933 #define DEF_INITIAL_ERASE $initial_erase
17934 EOF
17935
17936 echo "$as_me:17936: checking if alt should send ESC" >&5
17937 echo $ECHO_N "checking if alt should send ESC... $ECHO_C" >&6
17938
17939 # Check whether --enable-alt-sends-esc or --disable-alt-sends-esc was given.
17940 if test "${enable_alt_sends_esc+set}" = set; then
17941 enableval="$enable_alt_sends_esc"
17942 test "$enableval" != yes && enableval=no
17943 if test "$enableval" != "no" ; then
17944 alt_sends_esc=$enableval
17945 else
17946 alt_sends_esc=no
17947 fi
17948 else
17949 enableval=no
17950 alt_sends_esc=no
17951
17952 fi;
17953
17954 echo "$as_me:17954: result: $alt_sends_esc" >&5
17955 echo "${ECHO_T}$alt_sends_esc" >&6
17956 case $alt_sends_esc in
17957 (yes)
17958 alt_sends_esc=true
17959 ;;
17960 (no)
17961 alt_sends_esc=false
17962 ;;
17963 esac
17964 cf_xbool1=`echo "$alt_sends_esc"|sed -e 's/^\(.\).*/\1/'`
17965
17966 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17967
17968 cf_xbool2=`echo "$alt_sends_esc"|sed -e 's/^.//'`
17969 alt_sends_esc=${cf_xbool1}${cf_xbool2}
17970
17971 cat >>confdefs.h <<EOF
17972 #define DEF_ALT_SENDS_ESC $alt_sends_esc
17973 EOF
17974
17975 echo "$as_me:17975: checking if meta should send ESC" >&5
17976 echo $ECHO_N "checking if meta should send ESC... $ECHO_C" >&6
17977
17978 # Check whether --enable-meta-sends-esc or --disable-meta-sends-esc was given.
17979 if test "${enable_meta_sends_esc+set}" = set; then
17980 enableval="$enable_meta_sends_esc"
17981 test "$enableval" != yes && enableval=no
17982 if test "$enableval" != "no" ; then
17983 meta_sends_esc=$enableval
17984 else
17985 meta_sends_esc=no
17986 fi
17987 else
17988 enableval=no
17989 meta_sends_esc=no
17990
17991 fi;
17992
17993 echo "$as_me:17993: result: $meta_sends_esc" >&5
17994 echo "${ECHO_T}$meta_sends_esc" >&6
17995 case $meta_sends_esc in
17996 (yes)
17997 meta_sends_esc=true
17998 ;;
17999 (no)
18000 meta_sends_esc=false
18001 ;;
18002 esac
18003 cf_xbool1=`echo "$meta_sends_esc"|sed -e 's/^\(.\).*/\1/'`
18004
18005 cf_xbool1=`echo "$cf_xbool1" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18006
18007 cf_xbool2=`echo "$meta_sends_esc"|sed -e 's/^.//'`
18008 meta_sends_esc=${cf_xbool1}${cf_xbool2}
18009
18010 cat >>confdefs.h <<EOF
18011 #define DEF_META_SENDS_ESC $meta_sends_esc
18012 EOF
18013
18014 ###############################################################################
18015 # Extract the first word of "tic", so it can be a program name with args.
18016 set dummy tic; ac_word=$2
18017 echo "$as_me:18017: checking for $ac_word" >&5
18018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18019 if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022 if test -n "$cf_tic_prog"; then
18023 ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
18024 else
18025 ac_save_IFS=$IFS; IFS=$ac_path_separator
18026 ac_dummy="$PATH"
18027 for ac_dir in $ac_dummy; do
18028 IFS=$ac_save_IFS
18029 test -z "$ac_dir" && ac_dir=.
18030 $as_executable_p "$ac_dir/$ac_word" || continue
18031 ac_cv_prog_cf_tic_prog="yes"
18032 echo "$as_me:18032: found $ac_dir/$ac_word" >&5
18033 break
18034 done
18035
18036 test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
18037 fi
18038 fi
18039 cf_tic_prog=$ac_cv_prog_cf_tic_prog
18040 if test -n "$cf_tic_prog"; then
18041 echo "$as_me:18041: result: $cf_tic_prog" >&5
18042 echo "${ECHO_T}$cf_tic_prog" >&6
18043 else
18044 echo "$as_me:18044: result: no" >&5
18045 echo "${ECHO_T}no" >&6
18046 fi
18047
18048 if test "$cf_tic_prog" = yes ; then
18049 if test -n "$TERMINFO"
18050 then
18051 case "$TERMINFO" in
18052 (/*)
18053 test -d "$TERMINFO" || unset TERMINFO
18054 ;;
18055 (*)
18056 unset TERMINFO
18057 ;;
18058 esac
18059 fi
18060 echo "$as_me:18060: checking for private terminfo-directory" >&5
18061 echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
18062
18063 # Check whether --with-own-terminfo or --without-own-terminfo was given.
18064 if test "${with_own_terminfo+set}" = set; then
18065 withval="$with_own_terminfo"
18066 TERMINFO_DIR=$withval
18067 else
18068 TERMINFO_DIR=${TERMINFO-none}
18069 fi;
18070 echo "$as_me:18070: result: $TERMINFO_DIR" >&5
18071 echo "${ECHO_T}$TERMINFO_DIR" >&6
18072 if test "$TERMINFO_DIR" = yes ; then
18073 { echo "$as_me:18073: WARNING: no value given" >&5
18074 echo "$as_me: WARNING: no value given" >&2;}
18075 elif test "$TERMINFO_DIR" != none ; then
18076 if test -d "$TERMINFO_DIR" ; then
18077
18078 cat >>confdefs.h <<EOF
18079 #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
18080 EOF
18081
18082 echo "$as_me:18082: checking if \$TERMINFO should also be set" >&5
18083 echo $ECHO_N "checking if \$TERMINFO should also be set... $ECHO_C" >&6
18084
18085 # Check whether --enable-env-terminfo or --disable-env-terminfo was given.
18086 if test "${enable_env_terminfo+set}" = set; then
18087 enableval="$enable_env_terminfo"
18088 cf_env_terminfo=yes
18089 else
18090 cf_env_terminfo=no
18091 fi;
18092 echo "$as_me:18092: result: $cf_env_terminfo" >&5
18093 echo "${ECHO_T}$cf_env_terminfo" >&6
18094 test $cf_env_terminfo = yes &&
18095
18096 cat >>confdefs.h <<\EOF
18097 #define OWN_TERMINFO_ENV 1
18098 EOF
18099
18100 else
18101 { echo "$as_me:18101: WARNING: not a directory" >&5
18102 echo "$as_me: WARNING: not a directory" >&2;}
18103 fi
18104 elif test "$prefix" != NONE ; then
18105 TERMINFO_DIR='${prefix}/lib/terminfo'
18106 elif test -d /usr/lib/terminfo ; then
18107 TERMINFO_DIR=/usr/lib/terminfo
18108 else
18109 TERMINFO_DIR=
18110 fi
18111 SET_TERMINFO=
18112 if test -n "$TERMINFO_DIR" ; then
18113 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
18114 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
18115 fi
18116 no_ticprog=
18117 else
18118 no_ticprog="#"
18119 TERMINFO_DIR=
18120 SET_TERMINFO=
18121 fi
18122
18123 ###############################################################################
18124
18125 echo "$as_me:18125: checking if you want active-icons" >&5
18126 echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
18127
18128 # Check whether --enable-active-icon or --disable-active-icon was given.
18129 if test "${enable_active_icon+set}" = set; then
18130 enableval="$enable_active_icon"
18131 test "$enableval" != no && enableval=yes
18132 if test "$enableval" != "yes" ; then
18133 enable_active_icon=no
18134 else
18135 enable_active_icon=yes
18136 fi
18137 else
18138 enableval=yes
18139 enable_active_icon=yes
18140
18141 fi;
18142 echo "$as_me:18142: result: $enable_active_icon" >&5
18143 echo "${ECHO_T}$enable_active_icon" >&6
18144 if test "$enable_active_icon" = no ; then
18145
18146 cat >>confdefs.h <<\EOF
18147 #define NO_ACTIVE_ICON 1
18148 EOF
18149
18150 fi
18151
18152 echo "$as_me:18152: checking if you want ANSI color" >&5
18153 echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
18154
18155 # Check whether --enable-ansi-color or --disable-ansi-color was given.
18156 if test "${enable_ansi_color+set}" = set; then
18157 enableval="$enable_ansi_color"
18158 test "$enableval" != no && enableval=yes
18159 if test "$enableval" != "yes" ; then
18160 enable_ansi_color=no
18161 else
18162 enable_ansi_color=yes
18163 fi
18164 else
18165 enableval=yes
18166 enable_ansi_color=yes
18167
18168 fi;
18169 echo "$as_me:18169: result: $enable_ansi_color" >&5
18170 echo "${ECHO_T}$enable_ansi_color" >&6
18171 test "$enable_ansi_color" = no &&
18172 cat >>confdefs.h <<\EOF
18173 #define OPT_ISO_COLORS 0
18174 EOF
18175
18176 if test "$enable_ansi_color" = yes ; then
18177
18178 echo "$as_me:18178: checking if you want 16 colors like aixterm" >&5
18179 echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
18180
18181 # Check whether --enable-16-color or --disable-16-color was given.
18182 if test "${enable_16_color+set}" = set; then
18183 enableval="$enable_16_color"
18184 test "$enableval" != no && enableval=yes
18185 if test "$enableval" != "yes" ; then
18186 enable_16_color=no
18187 else
18188 enable_16_color=yes
18189 fi
18190 else
18191 enableval=yes
18192 enable_16_color=yes
18193
18194 fi;
18195 echo "$as_me:18195: result: $enable_16_color" >&5
18196 echo "${ECHO_T}$enable_16_color" >&6
18197 test "$enable_16_color" = no &&
18198 cat >>confdefs.h <<\EOF
18199 #define OPT_AIX_COLORS 0
18200 EOF
18201
18202 echo "$as_me:18202: checking if you want 256 colors" >&5
18203 echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
18204
18205 # Check whether --enable-256-color or --disable-256-color was given.
18206 if test "${enable_256_color+set}" = set; then
18207 enableval="$enable_256_color"
18208 test "$enableval" != no && enableval=yes
18209 if test "$enableval" != "yes" ; then
18210 enable_256_color=no
18211 else
18212 enable_256_color=yes
18213 fi
18214 else
18215 enableval=yes
18216 enable_256_color=yes
18217
18218 fi;
18219 echo "$as_me:18219: result: $enable_256_color" >&5
18220 echo "${ECHO_T}$enable_256_color" >&6
18221
18222 if test "$enable_256_color" = yes ; then
18223
18224 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
18225 EXTRAHDRS="$EXTRAHDRS 256colres.h"
18226
18227 cat >>confdefs.h <<\EOF
18228 #define OPT_256_COLORS 1
18229 EOF
18230
18231 echo "$as_me:18231: checking if you want direct-color support" >&5
18232 echo $ECHO_N "checking if you want direct-color support... $ECHO_C" >&6
18233
18234 # Check whether --enable-direct-color or --disable-direct-color was given.
18235 if test "${enable_direct_color+set}" = set; then
18236 enableval="$enable_direct_color"
18237 test "$enableval" != no && enableval=yes
18238 if test "$enableval" != "yes" ; then
18239 enable_direct_color=no
18240 else
18241 enable_direct_color=yes
18242 fi
18243 else
18244 enableval=yes
18245 enable_direct_color=yes
18246
18247 fi;
18248 echo "$as_me:18248: result: $enable_direct_color" >&5
18249 echo "${ECHO_T}$enable_direct_color" >&6
18250 if test "$enable_direct_color" = yes ; then
18251
18252 cat >>confdefs.h <<\EOF
18253 #define OPT_DIRECT_COLOR 1
18254 EOF
18255
18256 fi
18257
18258 else
18259
18260 echo "$as_me:18260: checking if you want 88 colors" >&5
18261 echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
18262
18263 # Check whether --enable-88-color or --disable-88-color was given.
18264 if test "${enable_88_color+set}" = set; then
18265 enableval="$enable_88_color"
18266 test "$enableval" != no && enableval=yes
18267 if test "$enableval" != "yes" ; then
18268 enable_88_color=no
18269 else
18270 enable_88_color=yes
18271 fi
18272 else
18273 enableval=yes
18274 enable_88_color=yes
18275
18276 fi;
18277 echo "$as_me:18277: result: $enable_88_color" >&5
18278 echo "${ECHO_T}$enable_88_color" >&6
18279 if test "$enable_88_color" = yes ; then
18280 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
18281 EXTRAHDRS="$EXTRAHDRS 88colres.h"
18282
18283 cat >>confdefs.h <<\EOF
18284 #define OPT_88_COLORS 1
18285 EOF
18286
18287 fi
18288
18289 fi
18290
18291 fi
18292
18293 echo "$as_me:18293: checking if you want blinking cursor" >&5
18294 echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
18295
18296 # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
18297 if test "${enable_blink_cursor+set}" = set; then
18298 enableval="$enable_blink_cursor"
18299 test "$enableval" != no && enableval=yes
18300 if test "$enableval" != "yes" ; then
18301 enable_blink_curs=no
18302 else
18303 enable_blink_curs=yes
18304 fi
18305 else
18306 enableval=yes
18307 enable_blink_curs=yes
18308
18309 fi;
18310 echo "$as_me:18310: result: $enable_blink_curs" >&5
18311 echo "${ECHO_T}$enable_blink_curs" >&6
18312 test "$enable_blink_curs" = no &&
18313 cat >>confdefs.h <<\EOF
18314 #define OPT_BLINK_CURS 0
18315 EOF
18316
18317 echo "$as_me:18317: checking if you want to ignore Linux's broken palette-strings" >&5
18318 echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
18319
18320 case $host_os in
18321 (linux*)
18322 assume_broken_osc=yes ;;
18323 (*)
18324 assume_broken_osc=no ;;
18325 esac
18326
18327 # Check whether --enable-broken-osc or --disable-broken-osc was given.
18328 if test "${enable_broken_osc+set}" = set; then
18329 enableval="$enable_broken_osc"
18330 test "$enableval" != no && enableval=yes
18331 if test "$enableval" != "$assume_broken_osc" ; then
18332 enable_broken_osc=$enableval
18333 else
18334 enable_broken_osc=$enableval
18335 fi
18336 else
18337 enableval=$assume_broken_osc
18338 enable_broken_osc=$enableval
18339
18340 fi;
18341 echo "$as_me:18341: result: $enable_broken_osc" >&5
18342 echo "${ECHO_T}$enable_broken_osc" >&6
18343 if test "$enable_broken_osc" = yes ; then
18344
18345 cat >>confdefs.h <<\EOF
18346 #define OPT_BROKEN_OSC 1
18347 EOF
18348
18349 else
18350
18351 cat >>confdefs.h <<\EOF
18352 #define OPT_BROKEN_OSC 0
18353 EOF
18354
18355 fi
18356
18357 echo "$as_me:18357: checking if you want to allow broken string-terminators" >&5
18358 echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
18359
18360 # Check whether --enable-broken-st or --disable-broken-st was given.
18361 if test "${enable_broken_st+set}" = set; then
18362 enableval="$enable_broken_st"
18363 test "$enableval" != yes && enableval=no
18364 if test "$enableval" != "no" ; then
18365 enable_broken_st=no
18366 else
18367 enable_broken_st=yes
18368 fi
18369 else
18370 enableval=no
18371 enable_broken_st=yes
18372
18373 fi;
18374 echo "$as_me:18374: result: $enable_broken_st" >&5
18375 echo "${ECHO_T}$enable_broken_st" >&6
18376 test "$enable_broken_st" = no &&
18377 cat >>confdefs.h <<\EOF
18378 #define OPT_BROKEN_ST 0
18379 EOF
18380
18381 echo "$as_me:18381: checking if you want to compile-in icon data" >&5
18382 echo $ECHO_N "checking if you want to compile-in icon data... $ECHO_C" >&6
18383
18384 # Check whether --enable-builtin-xpms or --disable-builtin-xpms was given.
18385 if test "${enable_builtin_xpms+set}" = set; then
18386 enableval="$enable_builtin_xpms"
18387 test "$enableval" != yes && enableval=no
18388 if test "$enableval" != "no" ; then
18389 enable_builtin_xpms=yes
18390 else
18391 enable_builtin_xpms=no
18392 fi
18393 else
18394 enableval=no
18395 enable_builtin_xpms=no
18396
18397 fi;
18398 echo "$as_me:18398: result: $enable_builtin_xpms" >&5
18399 echo "${ECHO_T}$enable_builtin_xpms" >&6
18400 test "$enable_builtin_xpms" = yes &&
18401 cat >>confdefs.h <<\EOF
18402 #define OPT_BUILTIN_XPMS 1
18403 EOF
18404
18405 echo "$as_me:18405: checking if you want printable 128-159" >&5
18406 echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
18407
18408 # Check whether --enable-c1-print or --disable-c1-print was given.
18409 if test "${enable_c1_print+set}" = set; then
18410 enableval="$enable_c1_print"
18411 test "$enableval" != no && enableval=yes
18412 if test "$enableval" != "yes" ; then
18413 enable_c1_print=no
18414 else
18415 enable_c1_print=yes
18416 fi
18417 else
18418 enableval=yes
18419 enable_c1_print=yes
18420
18421 fi;
18422 echo "$as_me:18422: result: $enable_c1_print" >&5
18423 echo "${ECHO_T}$enable_c1_print" >&6
18424 test "$enable_c1_print" = no &&
18425 cat >>confdefs.h <<\EOF
18426 #define OPT_C1_PRINT 0
18427 EOF
18428
18429 if test "$enable_ansi_color" = yes ; then
18430
18431 echo "$as_me:18431: checking if you want bold colors mapped like IBM PC" >&5
18432 echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
18433
18434 # Check whether --enable-bold-color or --disable-bold-color was given.
18435 if test "${enable_bold_color+set}" = set; then
18436 enableval="$enable_bold_color"
18437 test "$enableval" != no && enableval=yes
18438 if test "$enableval" != "yes" ; then
18439 enable_pc_color=no
18440 else
18441 enable_pc_color=yes
18442 fi
18443 else
18444 enableval=yes
18445 enable_pc_color=yes
18446
18447 fi;
18448 echo "$as_me:18448: result: $enable_pc_color" >&5
18449 echo "${ECHO_T}$enable_pc_color" >&6
18450 test "$enable_pc_color" = no &&
18451 cat >>confdefs.h <<\EOF
18452 #define OPT_PC_COLORS 0
18453 EOF
18454
18455 echo "$as_me:18455: checking if you want separate color-classes" >&5
18456 echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
18457
18458 # Check whether --enable-color-class or --disable-color-class was given.
18459 if test "${enable_color_class+set}" = set; then
18460 enableval="$enable_color_class"
18461 test "$enableval" != no && enableval=yes
18462 if test "$enableval" != "yes" ; then
18463 enable_color_class=no
18464 else
18465 enable_color_class=yes
18466 fi
18467 else
18468 enableval=yes
18469 enable_color_class=yes
18470
18471 fi;
18472 echo "$as_me:18472: result: $enable_color_class" >&5
18473 echo "${ECHO_T}$enable_color_class" >&6
18474 test "$enable_color_class" = no &&
18475 cat >>confdefs.h <<\EOF
18476 #define OPT_COLOR_CLASS 0
18477 EOF
18478
18479 echo "$as_me:18479: checking if you want color-mode enabled by default" >&5
18480 echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
18481
18482 # Check whether --enable-color-mode or --disable-color-mode was given.
18483 if test "${enable_color_mode+set}" = set; then
18484 enableval="$enable_color_mode"
18485 test "$enableval" != no && enableval=yes
18486 if test "$enableval" != "yes" ; then
18487 default_colormode=no
18488 else
18489 default_colormode=yes
18490 fi
18491 else
18492 enableval=yes
18493 default_colormode=yes
18494
18495 fi;
18496 echo "$as_me:18496: result: $default_colormode" >&5
18497 echo "${ECHO_T}$default_colormode" >&6
18498 test "$default_colormode" = no &&
18499 cat >>confdefs.h <<\EOF
18500 #define DFT_COLORMODE 0
18501 EOF
18502
18503 fi
18504
18505 echo "$as_me:18505: checking if you want support for color highlighting" >&5
18506 echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
18507
18508 # Check whether --enable-highlighting or --disable-highlighting was given.
18509 if test "${enable_highlighting+set}" = set; then
18510 enableval="$enable_highlighting"
18511 test "$enableval" != no && enableval=yes
18512 if test "$enableval" != "yes" ; then
18513 default_highlight=no
18514 else
18515 default_highlight=yes
18516 fi
18517 else
18518 enableval=yes
18519 default_highlight=yes
18520
18521 fi;
18522 echo "$as_me:18522: result: $default_highlight" >&5
18523 echo "${ECHO_T}$default_highlight" >&6
18524 test "$default_highlight" = no &&
18525 cat >>confdefs.h <<\EOF
18526 #define OPT_HIGHLIGHT_COLOR 0
18527 EOF
18528
18529 echo "$as_me:18529: checking if you want support for doublesize characters" >&5
18530 echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
18531
18532 # Check whether --enable-doublechars or --disable-doublechars was given.
18533 if test "${enable_doublechars+set}" = set; then
18534 enableval="$enable_doublechars"
18535 test "$enableval" != no && enableval=yes
18536 if test "$enableval" != "yes" ; then
18537 enable_doublechars=no
18538 else
18539 enable_doublechars=yes
18540 fi
18541 else
18542 enableval=yes
18543 enable_doublechars=yes
18544
18545 fi;
18546 echo "$as_me:18546: result: $enable_doublechars" >&5
18547 echo "${ECHO_T}$enable_doublechars" >&6
18548 test "$enable_doublechars" = no &&
18549 cat >>confdefs.h <<\EOF
18550 #define OPT_DEC_CHRSET 0
18551 EOF
18552
18553 echo "$as_me:18553: checking if you want fallback-support for box characters" >&5
18554 echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
18555
18556 # Check whether --enable-boxchars or --disable-boxchars was given.
18557 if test "${enable_boxchars+set}" = set; then
18558 enableval="$enable_boxchars"
18559 test "$enableval" != no && enableval=yes
18560 if test "$enableval" != "yes" ; then
18561 enable_boxchars=no
18562 else
18563 enable_boxchars=yes
18564 fi
18565 else
18566 enableval=yes
18567 enable_boxchars=yes
18568
18569 fi;
18570 echo "$as_me:18570: result: $enable_boxchars" >&5
18571 echo "${ECHO_T}$enable_boxchars" >&6
18572 test "$enable_boxchars" = no &&
18573 cat >>confdefs.h <<\EOF
18574 #define OPT_BOX_CHARS 0
18575 EOF
18576
18577 echo "$as_me:18577: checking if you want to allow spawning new xterms" >&5
18578 echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
18579
18580 # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
18581 if test "${enable_exec_xterm+set}" = set; then
18582 enableval="$enable_exec_xterm"
18583 test "$enableval" != yes && enableval=no
18584 if test "$enableval" != "no" ; then
18585 enable_exec_xterm=yes
18586 else
18587 enable_exec_xterm=no
18588 fi
18589 else
18590 enableval=no
18591 enable_exec_xterm=no
18592
18593 fi;
18594 echo "$as_me:18594: result: $enable_exec_xterm" >&5
18595 echo "${ECHO_T}$enable_exec_xterm" >&6
18596 if test "$enable_exec_xterm" = yes ; then
18597
18598 echo "$as_me:18598: checking for proc tree with cwd-support" >&5
18599 echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
18600 if test "${cf_cv_procfs_cwd+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603
18604 cf_cv_procfs_cwd=no
18605 for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
18606 do
18607 if test -d "$cf_path" && \
18608 test -d "$cf_path"/$$ && \
18609 { test -d "$cf_path"/$$/cwd || \
18610 test -L "$cf_path"/$$/cwd; }; then
18611 cf_cv_procfs_cwd="$cf_path"
18612 break
18613 fi
18614 done
18615
18616 fi
18617 echo "$as_me:18617: result: $cf_cv_procfs_cwd" >&5
18618 echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
18619
18620 if test "$cf_cv_procfs_cwd" = no ; then
18621 { echo "$as_me:18621: WARNING: no suitable proc filesystem found" >&5
18622 echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
18623 else
18624
18625 cat >>confdefs.h <<EOF
18626 #define PROCFS_ROOT "$cf_cv_procfs_cwd"
18627 EOF
18628
18629 cat >>confdefs.h <<\EOF
18630 #define OPT_EXEC_XTERM 1
18631 EOF
18632
18633 fi
18634 fi
18635
18636 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "Xext"; then
18637 test -n "$verbose" && echo " found package Xext" 1>&6
18638
18639 echo "${as_me:-configure}:18639: testing found package Xext ..." 1>&5
18640
18641 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "Xext" 2>/dev/null`"
18642 cf_pkgconfig_libs="`$PKG_CONFIG --libs "Xext" 2>/dev/null`"
18643 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
18644
18645 echo "${as_me:-configure}:18645: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
18646
18647 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
18648
18649 echo "${as_me:-configure}:18649: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
18650
18651 cf_fix_cppflags=no
18652 cf_new_cflags=
18653 cf_new_cppflags=
18654 cf_new_extra_cppflags=
18655
18656 for cf_add_cflags in $cf_pkgconfig_incs
18657 do
18658 case "$cf_fix_cppflags" in
18659 (no)
18660 case "$cf_add_cflags" in
18661 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18662 case "$cf_add_cflags" in
18663 (-D*)
18664 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18665
18666 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18667 && test -z "${cf_tst_cflags}" \
18668 && cf_fix_cppflags=yes
18669
18670 if test "$cf_fix_cppflags" = yes ; then
18671
18672 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18673 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18674
18675 continue
18676 elif test "${cf_tst_cflags}" = "\"'" ; then
18677
18678 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18679 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18680
18681 continue
18682 fi
18683 ;;
18684 esac
18685 case "$CPPFLAGS" in
18686 (*$cf_add_cflags)
18687 ;;
18688 (*)
18689 case "$cf_add_cflags" in
18690 (-D*)
18691 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18692
18693 CPPFLAGS=`echo "$CPPFLAGS" | \
18694 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18695 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18696
18697 ;;
18698 esac
18699
18700 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18701 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18702
18703 ;;
18704 esac
18705 ;;
18706 (*)
18707
18708 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18709 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18710
18711 ;;
18712 esac
18713 ;;
18714 (yes)
18715
18716 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18717 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18718
18719 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18720
18721 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18722 && test -z "${cf_tst_cflags}" \
18723 && cf_fix_cppflags=no
18724 ;;
18725 esac
18726 done
18727
18728 if test -n "$cf_new_cflags" ; then
18729
18730 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18731 CFLAGS="${CFLAGS}$cf_new_cflags"
18732
18733 fi
18734
18735 if test -n "$cf_new_cppflags" ; then
18736
18737 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18738 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18739
18740 fi
18741
18742 if test -n "$cf_new_extra_cppflags" ; then
18743
18744 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18745 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18746
18747 fi
18748
18749 cf_add_libs="$LIBS"
18750 # reverse order
18751 cf_add_0lib=
18752 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18753 # filter duplicates
18754 for cf_add_1lib in $cf_add_0lib; do
18755 for cf_add_2lib in $cf_add_libs; do
18756 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18757 cf_add_1lib=
18758 break
18759 fi
18760 done
18761 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18762 done
18763 LIBS="$cf_add_libs"
18764
18765 :
18766 else
18767 cf_pkgconfig_incs=
18768 cf_pkgconfig_libs=
18769
18770 echo "$as_me:18770: checking for XextCreateExtension in -lXext" >&5
18771 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
18772 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-lXext $LIBS"
18777 cat >"conftest.$ac_ext" <<_ACEOF
18778 #line 18778 "configure"
18779 #include "confdefs.h"
18780
18781 /* Override any gcc2 internal prototype to avoid an error. */
18782 #ifdef __cplusplus
18783 extern "C"
18784 #endif
18785 /* We use char because int might match the return type of a gcc2
18786 builtin and then its argument prototype would still apply. */
18787 char XextCreateExtension ();
18788 int
18789 main (void)
18790 {
18791 XextCreateExtension ();
18792 ;
18793 return 0;
18794 }
18795 _ACEOF
18796 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18797 if { (eval echo "$as_me:18797: \"$ac_link\"") >&5
18798 (eval $ac_link) 2>&5
18799 ac_status=$?
18800 echo "$as_me:18800: \$? = $ac_status" >&5
18801 (exit "$ac_status"); } &&
18802 { ac_try='test -s "conftest$ac_exeext"'
18803 { (eval echo "$as_me:18803: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:18806: \$? = $ac_status" >&5
18807 (exit "$ac_status"); }; }; then
18808 ac_cv_lib_Xext_XextCreateExtension=yes
18809 else
18810 echo "$as_me: failed program was:" >&5
18811 cat "conftest.$ac_ext" >&5
18812 ac_cv_lib_Xext_XextCreateExtension=no
18813 fi
18814 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18815 LIBS=$ac_check_lib_save_LIBS
18816 fi
18817 echo "$as_me:18817: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
18818 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
18819 if test "$ac_cv_lib_Xext_XextCreateExtension" = yes; then
18820
18821 cf_add_libs="$LIBS"
18822 # reverse order
18823 cf_add_0lib=
18824 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18825 # filter duplicates
18826 for cf_add_1lib in $cf_add_0lib; do
18827 for cf_add_2lib in $cf_add_libs; do
18828 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18829 cf_add_1lib=
18830 break
18831 fi
18832 done
18833 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18834 done
18835 LIBS="$cf_add_libs"
18836
18837 fi
18838
18839 fi
18840
18841 echo "$as_me:18841: checking for X11/extensions/Xdbe.h" >&5
18842 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
18843 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 cat >"conftest.$ac_ext" <<_ACEOF
18847 #line 18847 "configure"
18848 #include "confdefs.h"
18849 #include <X11/extensions/Xdbe.h>
18850 _ACEOF
18851 if { (eval echo "$as_me:18851: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18852 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18853 ac_status=$?
18854 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 echo "$as_me:18857: \$? = $ac_status" >&5
18858 (exit "$ac_status"); } >/dev/null; then
18859 if test -s conftest.err; then
18860 ac_cpp_err=$ac_c_preproc_warn_flag
18861 else
18862 ac_cpp_err=
18863 fi
18864 else
18865 ac_cpp_err=yes
18866 fi
18867 if test -z "$ac_cpp_err"; then
18868 ac_cv_header_X11_extensions_Xdbe_h=yes
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 cat "conftest.$ac_ext" >&5
18872 ac_cv_header_X11_extensions_Xdbe_h=no
18873 fi
18874 rm -f conftest.err "conftest.$ac_ext"
18875 fi
18876 echo "$as_me:18876: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
18877 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
18878 if test "$ac_cv_header_X11_extensions_Xdbe_h" = yes; then
18879
18880 cat >>confdefs.h <<\EOF
18881 #define HAVE_X11_EXTENSIONS_XDBE_H 1
18882 EOF
18883
18884 echo "$as_me:18884: checking for XdbeSwapBuffers" >&5
18885 echo $ECHO_N "checking for XdbeSwapBuffers... $ECHO_C" >&6
18886 if test "${ac_cv_func_XdbeSwapBuffers+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889 cat >"conftest.$ac_ext" <<_ACEOF
18890 #line 18890 "configure"
18891 #include "confdefs.h"
18892 #define XdbeSwapBuffers autoconf_temporary
18893 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18894 #undef XdbeSwapBuffers
18895
18896 #ifdef __cplusplus
18897 extern "C"
18898 #endif
18899
18900 /* We use char because int might match the return type of a gcc2
18901 builtin and then its argument prototype would still apply. */
18902 char XdbeSwapBuffers (void);
18903
18904 int
18905 main (void)
18906 {
18907
18908 /* The GNU C library defines stubs for functions which it implements
18909 to always fail with ENOSYS. Some functions are actually named
18910 something starting with __ and the normal name is an alias. */
18911 #if defined (__stub_XdbeSwapBuffers) || defined (__stub___XdbeSwapBuffers)
18912 #error found stub for XdbeSwapBuffers
18913 #endif
18914
18915 return XdbeSwapBuffers ();
18916 ;
18917 return 0;
18918 }
18919 _ACEOF
18920 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18921 if { (eval echo "$as_me:18921: \"$ac_link\"") >&5
18922 (eval $ac_link) 2>&5
18923 ac_status=$?
18924 echo "$as_me:18924: \$? = $ac_status" >&5
18925 (exit "$ac_status"); } &&
18926 { ac_try='test -s "conftest$ac_exeext"'
18927 { (eval echo "$as_me:18927: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18929 ac_status=$?
18930 echo "$as_me:18930: \$? = $ac_status" >&5
18931 (exit "$ac_status"); }; }; then
18932 ac_cv_func_XdbeSwapBuffers=yes
18933 else
18934 echo "$as_me: failed program was:" >&5
18935 cat "conftest.$ac_ext" >&5
18936 ac_cv_func_XdbeSwapBuffers=no
18937 fi
18938 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18939 fi
18940 echo "$as_me:18940: result: $ac_cv_func_XdbeSwapBuffers" >&5
18941 echo "${ECHO_T}$ac_cv_func_XdbeSwapBuffers" >&6
18942 if test "$ac_cv_func_XdbeSwapBuffers" = yes; then
18943
18944 cat >>confdefs.h <<\EOF
18945 #define HAVE_XDBESWAPBUFFERS 1
18946 EOF
18947
18948 cf_x_ext_double_buffer=yes
18949 fi
18950
18951 fi
18952
18953 double_buffer=False
18954 if test "$cf_x_ext_double_buffer" = yes ; then
18955 echo "$as_me:18955: checking if you want to enable double-buffering in default resources" >&5
18956 echo $ECHO_N "checking if you want to enable double-buffering in default resources... $ECHO_C" >&6
18957
18958 # Check whether --enable-double-buffer or --disable-double-buffer was given.
18959 if test "${enable_double_buffer+set}" = set; then
18960 enableval="$enable_double_buffer"
18961 test "$enableval" != yes && enableval=no
18962 if test "$enableval" != "no" ; then
18963 enable_double_bfr=yes
18964 else
18965 enable_double_bfr=no
18966 fi
18967 else
18968 enableval=no
18969 enable_double_bfr=no
18970
18971 fi;
18972 echo "$as_me:18972: result: $enable_double_bfr" >&5
18973 echo "${ECHO_T}$enable_double_bfr" >&6
18974 if test "$enable_double_bfr" = yes ; then
18975
18976 cat >>confdefs.h <<\EOF
18977 #define OPT_DOUBLE_BUFFER 1
18978 EOF
18979
18980 double_buffer=True
18981 fi
18982 fi
18983
18984 echo "$as_me:18984: checking if you want to use FreeType library" >&5
18985 echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
18986
18987 # Check whether --enable-freetype or --disable-freetype was given.
18988 if test "${enable_freetype+set}" = set; then
18989 enableval="$enable_freetype"
18990 test "$enableval" != no && enableval=yes
18991 if test "$enableval" != "yes" ; then
18992 enable_freetype=no
18993 else
18994 enable_freetype=yes
18995 fi
18996 else
18997 enableval=yes
18998 enable_freetype=yes
18999
19000 fi;
19001 echo "$as_me:19001: result: $enable_freetype" >&5
19002 echo "${ECHO_T}$enable_freetype" >&6
19003 if test "$enable_freetype" = yes ; then
19004
19005 cf_cv_x_freetype_incs=no
19006 cf_cv_x_freetype_libs=no
19007 cf_extra_freetype_libs=
19008 FREETYPE_CONFIG=none
19009 FREETYPE_PARAMS=
19010
19011 echo "$as_me:19011: checking for FreeType configuration script" >&5
19012 echo $ECHO_N "checking for FreeType configuration script... $ECHO_C" >&6
19013
19014 # Check whether --with-freetype-config or --without-freetype-config was given.
19015 if test "${with_freetype_config+set}" = set; then
19016 withval="$with_freetype_config"
19017 cf_cv_x_freetype_cfgs="$withval"
19018 else
19019 cf_cv_x_freetype_cfgs=auto
19020 fi;
19021 test -z $cf_cv_x_freetype_cfgs && cf_cv_x_freetype_cfgs=auto
19022 test $cf_cv_x_freetype_cfgs = no && cf_cv_x_freetype_cfgs=none
19023 echo "$as_me:19023: result: $cf_cv_x_freetype_cfgs" >&5
19024 echo "${ECHO_T}$cf_cv_x_freetype_cfgs" >&6
19025
19026 case $cf_cv_x_freetype_cfgs in
19027 (none)
19028 echo "$as_me:19028: checking if you specified -D/-I options for FreeType" >&5
19029 echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
19030
19031 # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
19032 if test "${with_freetype_cflags+set}" = set; then
19033 withval="$with_freetype_cflags"
19034 cf_cv_x_freetype_incs="$with_freetype_cflags"
19035 else
19036 cf_cv_x_freetype_incs=no
19037 fi;
19038 echo "$as_me:19038: result: $cf_cv_x_freetype_incs" >&5
19039 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
19040
19041 echo "$as_me:19041: checking if you specified -L/-l options for FreeType" >&5
19042 echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
19043
19044 # Check whether --with-freetype-libs or --without-freetype-libs was given.
19045 if test "${with_freetype_libs+set}" = set; then
19046 withval="$with_freetype_libs"
19047 cf_cv_x_freetype_libs="$with_freetype_libs"
19048 else
19049 cf_cv_x_freetype_libs=no
19050 fi;
19051 echo "$as_me:19051: result: $cf_cv_x_freetype_libs" >&5
19052 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
19053 ;;
19054 (auto)
19055 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
19056 FREETYPE_CONFIG=$PKG_CONFIG
19057 FREETYPE_PARAMS=xft
19058 else
19059 # Extract the first word of "freetype-config", so it can be a program name with args.
19060 set dummy freetype-config; ac_word=$2
19061 echo "$as_me:19061: checking for $ac_word" >&5
19062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19063 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066 case $FREETYPE_CONFIG in
19067 [\\/]* | ?:[\\/]*)
19068 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
19069 ;;
19070 *)
19071 ac_save_IFS=$IFS; IFS=$ac_path_separator
19072 ac_dummy="$PATH"
19073 for ac_dir in $ac_dummy; do
19074 IFS=$ac_save_IFS
19075 test -z "$ac_dir" && ac_dir=.
19076 if $as_executable_p "$ac_dir/$ac_word"; then
19077 ac_cv_path_FREETYPE_CONFIG="$ac_dir/$ac_word"
19078 echo "$as_me:19078: found $ac_dir/$ac_word" >&5
19079 break
19080 fi
19081 done
19082
19083 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="none"
19084 ;;
19085 esac
19086 fi
19087 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
19088
19089 if test -n "$FREETYPE_CONFIG"; then
19090 echo "$as_me:19090: result: $FREETYPE_CONFIG" >&5
19091 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
19092 else
19093 echo "$as_me:19093: result: no" >&5
19094 echo "${ECHO_T}no" >&6
19095 fi
19096
19097 if test "$FREETYPE_CONFIG" != none; then
19098 FREETYPE_CONFIG=$FREETYPE_CONFIG
19099 cf_extra_freetype_libs="-lXft"
19100 else
19101 # Extract the first word of "xft-config", so it can be a program name with args.
19102 set dummy xft-config; ac_word=$2
19103 echo "$as_me:19103: checking for $ac_word" >&5
19104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19105 if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 case $FREETYPE_OLD_CONFIG in
19109 [\\/]* | ?:[\\/]*)
19110 ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
19111 ;;
19112 *)
19113 ac_save_IFS=$IFS; IFS=$ac_path_separator
19114 ac_dummy="$PATH"
19115 for ac_dir in $ac_dummy; do
19116 IFS=$ac_save_IFS
19117 test -z "$ac_dir" && ac_dir=.
19118 if $as_executable_p "$ac_dir/$ac_word"; then
19119 ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
19120 echo "$as_me:19120: found $ac_dir/$ac_word" >&5
19121 break
19122 fi
19123 done
19124
19125 test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
19126 ;;
19127 esac
19128 fi
19129 FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
19130
19131 if test -n "$FREETYPE_OLD_CONFIG"; then
19132 echo "$as_me:19132: result: $FREETYPE_OLD_CONFIG" >&5
19133 echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
19134 else
19135 echo "$as_me:19135: result: no" >&5
19136 echo "${ECHO_T}no" >&6
19137 fi
19138
19139 if test "$FREETYPE_OLD_CONFIG" != none; then
19140 FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
19141 fi
19142 fi
19143 fi
19144 ;;
19145 (pkg*)
19146 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
19147 FREETYPE_CONFIG=$cf_cv_x_freetype_cfgs
19148 FREETYPE_PARAMS=xft
19149 else
19150 { echo "$as_me:19150: WARNING: cannot find pkg-config for Xft" >&5
19151 echo "$as_me: WARNING: cannot find pkg-config for Xft" >&2;}
19152 fi
19153 ;;
19154 (*)
19155 # Extract the first word of "$cf_cv_x_freetype_cfgs", so it can be a program name with args.
19156 set dummy $cf_cv_x_freetype_cfgs; ac_word=$2
19157 echo "$as_me:19157: checking for $ac_word" >&5
19158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19159 if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162 case $FREETYPE_XFT_CONFIG in
19163 [\\/]* | ?:[\\/]*)
19164 ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
19165 ;;
19166 *)
19167 ac_save_IFS=$IFS; IFS=$ac_path_separator
19168 ac_dummy="$PATH"
19169 for ac_dir in $ac_dummy; do
19170 IFS=$ac_save_IFS
19171 test -z "$ac_dir" && ac_dir=.
19172 if $as_executable_p "$ac_dir/$ac_word"; then
19173 ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
19174 echo "$as_me:19174: found $ac_dir/$ac_word" >&5
19175 break
19176 fi
19177 done
19178
19179 test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
19180 ;;
19181 esac
19182 fi
19183 FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
19184
19185 if test -n "$FREETYPE_XFT_CONFIG"; then
19186 echo "$as_me:19186: result: $FREETYPE_XFT_CONFIG" >&5
19187 echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
19188 else
19189 echo "$as_me:19189: result: no" >&5
19190 echo "${ECHO_T}no" >&6
19191 fi
19192
19193 if test "$FREETYPE_XFT_CONFIG" != none; then
19194 FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
19195 else
19196 { echo "$as_me:19196: WARNING: cannot find config script for Xft" >&5
19197 echo "$as_me: WARNING: cannot find config script for Xft" >&2;}
19198 fi
19199 ;;
19200 esac
19201
19202 if test "$FREETYPE_CONFIG" != none ; then
19203 echo "$as_me:19203: checking for FreeType config" >&5
19204 echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
19205 echo "$as_me:19205: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
19206 echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
19207
19208 if test "$cf_cv_x_freetype_incs" = no ; then
19209 echo "$as_me:19209: checking for $FREETYPE_CONFIG cflags" >&5
19210 echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
19211 cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
19212 echo "$as_me:19212: result: $cf_cv_x_freetype_incs" >&5
19213 echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
19214 fi
19215
19216 if test "$cf_cv_x_freetype_libs" = no ; then
19217 echo "$as_me:19217: checking for $FREETYPE_CONFIG libs" >&5
19218 echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
19219 cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
19220 echo "$as_me:19220: result: $cf_cv_x_freetype_libs" >&5
19221 echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
19222 fi
19223 fi
19224
19225 if test "$cf_cv_x_freetype_incs" = no ; then
19226 cf_cv_x_freetype_incs=
19227 fi
19228
19229 if test "$cf_cv_x_freetype_libs" = no ; then
19230 cf_cv_x_freetype_libs=-lXft
19231 fi
19232
19233 echo "$as_me:19233: checking if we can link with FreeType libraries" >&5
19234 echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
19235
19236 cf_save_LIBS="$LIBS"
19237 cf_save_INCS="$CPPFLAGS"
19238
19239 cf_add_libs="$LIBS"
19240 # reverse order
19241 cf_add_0lib=
19242 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19243 # filter duplicates
19244 for cf_add_1lib in $cf_add_0lib; do
19245 for cf_add_2lib in $cf_add_libs; do
19246 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19247 cf_add_1lib=
19248 break
19249 fi
19250 done
19251 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19252 done
19253 LIBS="$cf_add_libs"
19254
19255 CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
19256
19257 cat >"conftest.$ac_ext" <<_ACEOF
19258 #line 19258 "configure"
19259 #include "confdefs.h"
19260
19261 #include <X11/Xlib.h>
19262 #include <X11/extensions/Xrender.h>
19263 #include <X11/Xft/Xft.h>
19264 int
19265 main (void)
19266 {
19267
19268 XftPattern *pat = XftNameParse ("name"); (void)pat
19269 ;
19270 return 0;
19271 }
19272 _ACEOF
19273 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19274 if { (eval echo "$as_me:19274: \"$ac_link\"") >&5
19275 (eval $ac_link) 2>&5
19276 ac_status=$?
19277 echo "$as_me:19277: \$? = $ac_status" >&5
19278 (exit "$ac_status"); } &&
19279 { ac_try='test -s "conftest$ac_exeext"'
19280 { (eval echo "$as_me:19280: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:19283: \$? = $ac_status" >&5
19284 (exit "$ac_status"); }; }; then
19285 cf_cv_found_freetype=yes
19286 else
19287 echo "$as_me: failed program was:" >&5
19288 cat "conftest.$ac_ext" >&5
19289 cf_cv_found_freetype=no
19290 fi
19291 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19292 echo "$as_me:19292: result: $cf_cv_found_freetype" >&5
19293 echo "${ECHO_T}$cf_cv_found_freetype" >&6
19294
19295 LIBS="$cf_save_LIBS"
19296 CPPFLAGS="$cf_save_INCS"
19297
19298 if test "$cf_cv_found_freetype" = yes ; then
19299
19300 cf_add_libs="$LIBS"
19301 # reverse order
19302 cf_add_0lib=
19303 for cf_add_1lib in $cf_cv_x_freetype_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19304 # filter duplicates
19305 for cf_add_1lib in $cf_add_0lib; do
19306 for cf_add_2lib in $cf_add_libs; do
19307 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19308 cf_add_1lib=
19309 break
19310 fi
19311 done
19312 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19313 done
19314 LIBS="$cf_add_libs"
19315
19316 cf_fix_cppflags=no
19317 cf_new_cflags=
19318 cf_new_cppflags=
19319 cf_new_extra_cppflags=
19320
19321 for cf_add_cflags in $cf_cv_x_freetype_incs
19322 do
19323 case "$cf_fix_cppflags" in
19324 (no)
19325 case "$cf_add_cflags" in
19326 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19327 case "$cf_add_cflags" in
19328 (-D*)
19329 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19330
19331 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19332 && test -z "${cf_tst_cflags}" \
19333 && cf_fix_cppflags=yes
19334
19335 if test "$cf_fix_cppflags" = yes ; then
19336
19337 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19338 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19339
19340 continue
19341 elif test "${cf_tst_cflags}" = "\"'" ; then
19342
19343 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19344 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19345
19346 continue
19347 fi
19348 ;;
19349 esac
19350 case "$CPPFLAGS" in
19351 (*$cf_add_cflags)
19352 ;;
19353 (*)
19354 case "$cf_add_cflags" in
19355 (-D*)
19356 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19357
19358 CPPFLAGS=`echo "$CPPFLAGS" | \
19359 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19360 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19361
19362 ;;
19363 esac
19364
19365 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19366 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19367
19368 ;;
19369 esac
19370 ;;
19371 (*)
19372
19373 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19374 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19375
19376 ;;
19377 esac
19378 ;;
19379 (yes)
19380
19381 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19382 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19383
19384 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19385
19386 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19387 && test -z "${cf_tst_cflags}" \
19388 && cf_fix_cppflags=no
19389 ;;
19390 esac
19391 done
19392
19393 if test -n "$cf_new_cflags" ; then
19394
19395 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19396 CFLAGS="${CFLAGS}$cf_new_cflags"
19397
19398 fi
19399
19400 if test -n "$cf_new_cppflags" ; then
19401
19402 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19403 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19404
19405 fi
19406
19407 if test -n "$cf_new_extra_cppflags" ; then
19408
19409 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19410 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19411
19412 fi
19413
19414 cat >>confdefs.h <<\EOF
19415 #define XRENDERFONT 1
19416 EOF
19417
19418 for ac_func in \
19419 XftDrawCharSpec \
19420 XftDrawSetClip \
19421 XftDrawSetClipRectangles \
19422
19423 do
19424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19425 echo "$as_me:19425: checking for $ac_func" >&5
19426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19427 if eval "test \"\${$as_ac_var+set}\" = set"; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430 cat >"conftest.$ac_ext" <<_ACEOF
19431 #line 19431 "configure"
19432 #include "confdefs.h"
19433 #define $ac_func autoconf_temporary
19434 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19435 #undef $ac_func
19436
19437 #ifdef __cplusplus
19438 extern "C"
19439 #endif
19440
19441 /* We use char because int might match the return type of a gcc2
19442 builtin and then its argument prototype would still apply. */
19443 char $ac_func (void);
19444
19445 int
19446 main (void)
19447 {
19448
19449 /* The GNU C library defines stubs for functions which it implements
19450 to always fail with ENOSYS. Some functions are actually named
19451 something starting with __ and the normal name is an alias. */
19452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19453 #error found stub for $ac_func
19454 #endif
19455
19456 return $ac_func ();
19457 ;
19458 return 0;
19459 }
19460 _ACEOF
19461 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19462 if { (eval echo "$as_me:19462: \"$ac_link\"") >&5
19463 (eval $ac_link) 2>&5
19464 ac_status=$?
19465 echo "$as_me:19465: \$? = $ac_status" >&5
19466 (exit "$ac_status"); } &&
19467 { ac_try='test -s "conftest$ac_exeext"'
19468 { (eval echo "$as_me:19468: \"$ac_try\"") >&5
19469 (eval $ac_try) 2>&5
19470 ac_status=$?
19471 echo "$as_me:19471: \$? = $ac_status" >&5
19472 (exit "$ac_status"); }; }; then
19473 eval "$as_ac_var=yes"
19474 else
19475 echo "$as_me: failed program was:" >&5
19476 cat "conftest.$ac_ext" >&5
19477 eval "$as_ac_var=no"
19478 fi
19479 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19480 fi
19481 echo "$as_me:19481: result: `eval echo '${'"$as_ac_var"'}'`" >&5
19482 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
19483 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
19484 cat >>confdefs.h <<EOF
19485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19486 EOF
19487
19488 fi
19489 done
19490
19491 else
19492 { echo "$as_me:19492: WARNING: No libraries found for FreeType" >&5
19493 echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
19494 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
19495 fi
19496
19497 # FIXME: revisit this if needed
19498
19499 if test "$cf_cv_found_freetype" = yes ; then
19500 echo "$as_me:19500: checking for usable Xft/fontconfig package" >&5
19501 echo $ECHO_N "checking for usable Xft/fontconfig package... $ECHO_C" >&6
19502 if test "${cf_cv_xft_compat+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505
19506 cat >"conftest.$ac_ext" <<_ACEOF
19507 #line 19507 "configure"
19508 #include "confdefs.h"
19509
19510 #include <X11/Xft/Xft.h>
19511
19512 int
19513 main (void)
19514 {
19515
19516 XftPattern *pat = 0;
19517 XftPatternBuild(pat,
19518 XFT_FAMILY, XftTypeString, "mono",
19519 (void *) 0);
19520
19521 ;
19522 return 0;
19523 }
19524 _ACEOF
19525 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19526 if { (eval echo "$as_me:19526: \"$ac_link\"") >&5
19527 (eval $ac_link) 2>&5
19528 ac_status=$?
19529 echo "$as_me:19529: \$? = $ac_status" >&5
19530 (exit "$ac_status"); } &&
19531 { ac_try='test -s "conftest$ac_exeext"'
19532 { (eval echo "$as_me:19532: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:19535: \$? = $ac_status" >&5
19536 (exit "$ac_status"); }; }; then
19537 cf_cv_xft_compat=yes
19538 else
19539 echo "$as_me: failed program was:" >&5
19540 cat "conftest.$ac_ext" >&5
19541 cf_cv_xft_compat=no
19542 fi
19543 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19544
19545 fi
19546 echo "$as_me:19546: result: $cf_cv_xft_compat" >&5
19547 echo "${ECHO_T}$cf_cv_xft_compat" >&6
19548
19549 if test "$cf_cv_xft_compat" = no
19550 then
19551 # workaround for broken ".pc" files used for Xft.
19552 case "$cf_cv_x_freetype_libs" in
19553 (*-lfontconfig*)
19554 ;;
19555 (*)
19556 test -n "$verbose" && echo " work around broken package" 1>&6
19557
19558 echo "${as_me:-configure}:19558: testing work around broken package ..." 1>&5
19559
19560 cf_save_fontconfig="$LIBS"
19561
19562 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "fontconfig"; then
19563 test -n "$verbose" && echo " found package fontconfig" 1>&6
19564
19565 echo "${as_me:-configure}:19565: testing found package fontconfig ..." 1>&5
19566
19567 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`"
19568 cf_pkgconfig_libs="`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`"
19569 test -n "$verbose" && echo " package fontconfig CFLAGS: $cf_pkgconfig_incs" 1>&6
19570
19571 echo "${as_me:-configure}:19571: testing package fontconfig CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19572
19573 test -n "$verbose" && echo " package fontconfig LIBS: $cf_pkgconfig_libs" 1>&6
19574
19575 echo "${as_me:-configure}:19575: testing package fontconfig LIBS: $cf_pkgconfig_libs ..." 1>&5
19576
19577 cf_fix_cppflags=no
19578 cf_new_cflags=
19579 cf_new_cppflags=
19580 cf_new_extra_cppflags=
19581
19582 for cf_add_cflags in $cf_pkgconfig_incs
19583 do
19584 case "$cf_fix_cppflags" in
19585 (no)
19586 case "$cf_add_cflags" in
19587 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19588 case "$cf_add_cflags" in
19589 (-D*)
19590 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19591
19592 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19593 && test -z "${cf_tst_cflags}" \
19594 && cf_fix_cppflags=yes
19595
19596 if test "$cf_fix_cppflags" = yes ; then
19597
19598 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19599 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19600
19601 continue
19602 elif test "${cf_tst_cflags}" = "\"'" ; then
19603
19604 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19605 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19606
19607 continue
19608 fi
19609 ;;
19610 esac
19611 case "$CPPFLAGS" in
19612 (*$cf_add_cflags)
19613 ;;
19614 (*)
19615 case "$cf_add_cflags" in
19616 (-D*)
19617 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19618
19619 CPPFLAGS=`echo "$CPPFLAGS" | \
19620 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19621 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19622
19623 ;;
19624 esac
19625
19626 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19627 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19628
19629 ;;
19630 esac
19631 ;;
19632 (*)
19633
19634 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19635 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19636
19637 ;;
19638 esac
19639 ;;
19640 (yes)
19641
19642 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19643 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19644
19645 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19646
19647 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19648 && test -z "${cf_tst_cflags}" \
19649 && cf_fix_cppflags=no
19650 ;;
19651 esac
19652 done
19653
19654 if test -n "$cf_new_cflags" ; then
19655
19656 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19657 CFLAGS="${CFLAGS}$cf_new_cflags"
19658
19659 fi
19660
19661 if test -n "$cf_new_cppflags" ; then
19662
19663 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19664 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19665
19666 fi
19667
19668 if test -n "$cf_new_extra_cppflags" ; then
19669
19670 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19671 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19672
19673 fi
19674
19675 cf_add_libs="$LIBS"
19676 # reverse order
19677 cf_add_0lib=
19678 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19679 # filter duplicates
19680 for cf_add_1lib in $cf_add_0lib; do
19681 for cf_add_2lib in $cf_add_libs; do
19682 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19683 cf_add_1lib=
19684 break
19685 fi
19686 done
19687 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19688 done
19689 LIBS="$cf_add_libs"
19690
19691 cf_fix_cppflags=no
19692 cf_new_cflags=
19693 cf_new_cppflags=
19694 cf_new_extra_cppflags=
19695
19696 for cf_add_cflags in $cf_pkgconfig_incs
19697 do
19698 case "$cf_fix_cppflags" in
19699 (no)
19700 case "$cf_add_cflags" in
19701 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19702 case "$cf_add_cflags" in
19703 (-D*)
19704 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19705
19706 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19707 && test -z "${cf_tst_cflags}" \
19708 && cf_fix_cppflags=yes
19709
19710 if test "$cf_fix_cppflags" = yes ; then
19711
19712 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19713 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19714
19715 continue
19716 elif test "${cf_tst_cflags}" = "\"'" ; then
19717
19718 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19719 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19720
19721 continue
19722 fi
19723 ;;
19724 esac
19725 case "$CPPFLAGS" in
19726 (*$cf_add_cflags)
19727 ;;
19728 (*)
19729 case "$cf_add_cflags" in
19730 (-D*)
19731 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19732
19733 CPPFLAGS=`echo "$CPPFLAGS" | \
19734 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19735 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19736
19737 ;;
19738 esac
19739
19740 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19741 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19742
19743 ;;
19744 esac
19745 ;;
19746 (*)
19747
19748 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19749 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19750
19751 ;;
19752 esac
19753 ;;
19754 (yes)
19755
19756 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19757 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19758
19759 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
19760
19761 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19762 && test -z "${cf_tst_cflags}" \
19763 && cf_fix_cppflags=no
19764 ;;
19765 esac
19766 done
19767
19768 if test -n "$cf_new_cflags" ; then
19769
19770 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19771 CFLAGS="${CFLAGS}$cf_new_cflags"
19772
19773 fi
19774
19775 if test -n "$cf_new_cppflags" ; then
19776
19777 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19778 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19779
19780 fi
19781
19782 if test -n "$cf_new_extra_cppflags" ; then
19783
19784 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19785 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19786
19787 fi
19788
19789 LIBS="$cf_save_fontconfig"
19790
19791 test -n "$verbose" && echo " ...before $LIBS" 1>&6
19792
19793 echo "${as_me:-configure}:19793: testing ...before $LIBS ..." 1>&5
19794
19795 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft $cf_pkgconfig_libs %" -e 's% % %g'`
19796 test -n "$verbose" && echo " ...after $LIBS" 1>&6
19797
19798 echo "${as_me:-configure}:19798: testing ...after $LIBS ..." 1>&5
19799
19800 else
19801 cf_pkgconfig_incs=
19802 cf_pkgconfig_libs=
19803
19804 test -n "$verbose" && echo " ...before $LIBS" 1>&6
19805
19806 echo "${as_me:-configure}:19806: testing ...before $LIBS ..." 1>&5
19807
19808 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXft %-lXft -lfontconfig %" -e 's% % %g'`
19809 test -n "$verbose" && echo " ...after $LIBS" 1>&6
19810
19811 echo "${as_me:-configure}:19811: testing ...after $LIBS ..." 1>&5
19812
19813 fi
19814
19815 ;;
19816 esac
19817 fi
19818 fi
19819
19820 else
19821 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
19822 fi
19823
19824 echo "$as_me:19824: checking if you want support for HP-style function keys" >&5
19825 echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
19826
19827 # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
19828 if test "${enable_hp_fkeys+set}" = set; then
19829 enableval="$enable_hp_fkeys"
19830 test "$enableval" != yes && enableval=no
19831 if test "$enableval" != "no" ; then
19832 enable_hp_fkeys=yes
19833 else
19834 enable_hp_fkeys=no
19835 fi
19836 else
19837 enableval=no
19838 enable_hp_fkeys=no
19839
19840 fi;
19841 echo "$as_me:19841: result: $enable_hp_fkeys" >&5
19842 echo "${ECHO_T}$enable_hp_fkeys" >&6
19843 if test "$enable_hp_fkeys" = yes ; then
19844
19845 cat >>confdefs.h <<\EOF
19846 #define OPT_HP_FUNC_KEYS 1
19847 EOF
19848
19849 fi
19850
19851 echo "$as_me:19851: checking if you want support for SCO-style function keys" >&5
19852 echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
19853
19854 # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
19855 if test "${enable_sco_fkeys+set}" = set; then
19856 enableval="$enable_sco_fkeys"
19857 test "$enableval" != yes && enableval=no
19858 if test "$enableval" != "no" ; then
19859 enable_sco_fkeys=yes
19860 else
19861 enable_sco_fkeys=no
19862 fi
19863 else
19864 enableval=no
19865 enable_sco_fkeys=no
19866
19867 fi;
19868 echo "$as_me:19868: result: $enable_sco_fkeys" >&5
19869 echo "${ECHO_T}$enable_sco_fkeys" >&6
19870 if test "$enable_sco_fkeys" = yes ; then
19871
19872 cat >>confdefs.h <<\EOF
19873 #define OPT_SCO_FUNC_KEYS 1
19874 EOF
19875
19876 fi
19877
19878 echo "$as_me:19878: checking if you want support for Sun-style function keys" >&5
19879 echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
19880
19881 # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
19882 if test "${enable_sun_fkeys+set}" = set; then
19883 enableval="$enable_sun_fkeys"
19884 test "$enableval" != no && enableval=yes
19885 if test "$enableval" != "yes" ; then
19886 enable_sun_fkeys=no
19887 else
19888 enable_sun_fkeys=yes
19889 fi
19890 else
19891 enableval=yes
19892 enable_sun_fkeys=yes
19893
19894 fi;
19895 echo "$as_me:19895: result: $enable_sun_fkeys" >&5
19896 echo "${ECHO_T}$enable_sun_fkeys" >&6
19897 if test "$enable_sun_fkeys" = no ; then
19898
19899 cat >>confdefs.h <<\EOF
19900 #define OPT_SUN_FUNC_KEYS 0
19901 EOF
19902
19903 fi
19904
19905 echo "$as_me:19905: checking if you want saved-lines stored as a FIFO" >&5
19906 echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
19907
19908 # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
19909 if test "${enable_fifo_lines+set}" = set; then
19910 enableval="$enable_fifo_lines"
19911 test "$enableval" != no && enableval=yes
19912 if test "$enableval" != "yes" ; then
19913 enable_fifo_lines=no
19914 else
19915 enable_fifo_lines=yes
19916 fi
19917 else
19918 enableval=yes
19919 enable_fifo_lines=yes
19920
19921 fi;
19922 echo "$as_me:19922: result: $enable_fifo_lines" >&5
19923 echo "${ECHO_T}$enable_fifo_lines" >&6
19924 if test "$enable_fifo_lines" != yes ; then
19925 { echo "$as_me:19925: WARNING: this option has been deprecated" >&5
19926 echo "$as_me: WARNING: this option has been deprecated" >&2;}
19927 fi
19928
19929 echo "$as_me:19929: checking if you want support for internationalization" >&5
19930 echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
19931
19932 # Check whether --enable-i18n or --disable-i18n was given.
19933 if test "${enable_i18n+set}" = set; then
19934 enableval="$enable_i18n"
19935 test "$enableval" != no && enableval=yes
19936 if test "$enableval" != "yes" ; then
19937 enable_i18n=no
19938 else
19939 enable_i18n=yes
19940 fi
19941 else
19942 enableval=yes
19943 enable_i18n=yes
19944
19945 fi;
19946 echo "$as_me:19946: result: $enable_i18n" >&5
19947 echo "${ECHO_T}$enable_i18n" >&6
19948 if test "$enable_i18n" = no ; then
19949
19950 cat >>confdefs.h <<\EOF
19951 #define OPT_I18N_SUPPORT 0
19952 EOF
19953
19954 fi
19955
19956 echo "$as_me:19956: checking if you want support for initial-erase setup" >&5
19957 echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
19958
19959 # Check whether --enable-initial-erase or --disable-initial-erase was given.
19960 if test "${enable_initial_erase+set}" = set; then
19961 enableval="$enable_initial_erase"
19962 test "$enableval" != no && enableval=yes
19963 if test "$enableval" != "yes" ; then
19964 enable_ie=no
19965 else
19966 enable_ie=yes
19967 fi
19968 else
19969 enableval=yes
19970 enable_ie=yes
19971
19972 fi;
19973 echo "$as_me:19973: result: $enable_ie" >&5
19974 echo "${ECHO_T}$enable_ie" >&6
19975 if test "$enable_ie" = no ; then
19976
19977 cat >>confdefs.h <<\EOF
19978 #define OPT_INITIAL_ERASE 0
19979 EOF
19980
19981 fi
19982
19983 echo "$as_me:19983: checking if you want support for input-method" >&5
19984 echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
19985
19986 # Check whether --enable-input-method or --disable-input-method was given.
19987 if test "${enable_input_method+set}" = set; then
19988 enableval="$enable_input_method"
19989 test "$enableval" != no && enableval=yes
19990 if test "$enableval" != "yes" ; then
19991 enable_ximp=no
19992 else
19993 enable_ximp=$enable_i18n
19994 fi
19995 else
19996 enableval=yes
19997 enable_ximp=$enable_i18n
19998
19999 fi;
20000 echo "$as_me:20000: result: $enable_ximp" >&5
20001 echo "${ECHO_T}$enable_ximp" >&6
20002
20003 echo "$as_me:20003: checking if X libraries support input-method" >&5
20004 echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
20005 if test "${cf_cv_input_method+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008
20009 cat >"conftest.$ac_ext" <<_ACEOF
20010 #line 20010 "configure"
20011 #include "confdefs.h"
20012
20013 #include <X11/IntrinsicP.h>
20014 #include <X11/Xatom.h>
20015 #include <X11/Xutil.h>
20016 #include <X11/Xmu/Atoms.h>
20017 #include <X11/Xmu/Converters.h>
20018 #include <X11/Xaw/XawImP.h>
20019
20020 int
20021 main (void)
20022 {
20023
20024 {
20025 XIM xim;
20026 XIMStyles *xim_styles = 0;
20027 XIMStyle input_style;
20028 Widget w = XtCreateWidget("none", (WidgetClass)0, None, (ArgList)0, 0);
20029
20030 XSetLocaleModifiers("@im=none");
20031 xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
20032 XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
20033 XCloseIM(xim);
20034 input_style = (XIMPreeditNothing | XIMStatusNothing);
20035 (void)xim_styles;
20036 (void)input_style;
20037 }
20038
20039 ;
20040 return 0;
20041 }
20042 _ACEOF
20043 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20044 if { (eval echo "$as_me:20044: \"$ac_link\"") >&5
20045 (eval $ac_link) 2>&5
20046 ac_status=$?
20047 echo "$as_me:20047: \$? = $ac_status" >&5
20048 (exit "$ac_status"); } &&
20049 { ac_try='test -s "conftest$ac_exeext"'
20050 { (eval echo "$as_me:20050: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:20053: \$? = $ac_status" >&5
20054 (exit "$ac_status"); }; }; then
20055 cf_cv_input_method=yes
20056 else
20057 echo "$as_me: failed program was:" >&5
20058 cat "conftest.$ac_ext" >&5
20059 cf_cv_input_method=no
20060 fi
20061 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20062 fi
20063 echo "$as_me:20063: result: $cf_cv_input_method" >&5
20064 echo "${ECHO_T}$cf_cv_input_method" >&6
20065
20066 test "$cf_cv_input_method" = no && enable_ximp=no
20067 if test "$enable_ximp" != no ; then
20068 if test "$enable_i18n" = no ; then
20069 { echo "$as_me:20069: WARNING: input-methor relies upon internationalization" >&5
20070 echo "$as_me: WARNING: input-methor relies upon internationalization" >&2;}
20071 enable_ximp=no
20072 fi
20073 fi
20074 if test "$enable_ximp" = no ; then
20075
20076 cat >>confdefs.h <<\EOF
20077 #define OPT_INPUT_METHOD 0
20078 EOF
20079
20080 fi
20081
20082 echo "$as_me:20082: checking if you want support for load-vt-fonts" >&5
20083 echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
20084
20085 # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
20086 if test "${enable_load_vt_fonts+set}" = set; then
20087 enableval="$enable_load_vt_fonts"
20088 test "$enableval" != yes && enableval=no
20089 if test "$enableval" != "no" ; then
20090 enable_load_vt_fonts=yes
20091 else
20092 enable_load_vt_fonts=no
20093 fi
20094 else
20095 enableval=no
20096 enable_load_vt_fonts=no
20097
20098 fi;
20099 echo "$as_me:20099: result: $enable_load_vt_fonts" >&5
20100 echo "${ECHO_T}$enable_load_vt_fonts" >&6
20101 if test "$enable_load_vt_fonts" = yes ; then
20102
20103 cat >>confdefs.h <<\EOF
20104 #define OPT_LOAD_VTFONTS 1
20105 EOF
20106
20107 fi
20108
20109 echo "$as_me:20109: checking if you want support for logging" >&5
20110 echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
20111
20112 # Check whether --enable-logging or --disable-logging was given.
20113 if test "${enable_logging+set}" = set; then
20114 enableval="$enable_logging"
20115 test "$enableval" != yes && enableval=no
20116 if test "$enableval" != "no" ; then
20117 enable_logging=yes
20118 else
20119 enable_logging=no
20120 fi
20121 else
20122 enableval=no
20123 enable_logging=no
20124
20125 fi;
20126 echo "$as_me:20126: result: $enable_logging" >&5
20127 echo "${ECHO_T}$enable_logging" >&6
20128 if test "$enable_logging" = yes ; then
20129
20130 cat >>confdefs.h <<\EOF
20131 #define ALLOWLOGGING 1
20132 EOF
20133
20134 echo "$as_me:20134: checking if you want to allow logging via a pipe" >&5
20135 echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
20136
20137 # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
20138 if test "${enable_logfile_exec+set}" = set; then
20139 enableval="$enable_logfile_exec"
20140 test "$enableval" != yes && enableval=no
20141 if test "$enableval" != "no" ; then
20142 enable_log_exec=yes
20143 else
20144 enable_log_exec=no
20145 fi
20146 else
20147 enableval=no
20148 enable_log_exec=no
20149
20150 fi;
20151 echo "$as_me:20151: result: $enable_log_exec" >&5
20152 echo "${ECHO_T}$enable_log_exec" >&6
20153 if test "$enable_log_exec" = yes ; then
20154
20155 cat >>confdefs.h <<\EOF
20156 #define ALLOWLOGFILEEXEC 1
20157 EOF
20158
20159 fi
20160 fi
20161
20162 echo "$as_me:20162: checking if you want support for iconify/maximize translations" >&5
20163 echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
20164
20165 # Check whether --enable-maximize or --disable-maximize was given.
20166 if test "${enable_maximize+set}" = set; then
20167 enableval="$enable_maximize"
20168 test "$enableval" != no && enableval=yes
20169 if test "$enableval" != "yes" ; then
20170 enable_maximize=no
20171 else
20172 enable_maximize=yes
20173 fi
20174 else
20175 enableval=yes
20176 enable_maximize=yes
20177
20178 fi;
20179 echo "$as_me:20179: result: $enable_maximize" >&5
20180 echo "${ECHO_T}$enable_maximize" >&6
20181 test "$enable_maximize" = no &&
20182 cat >>confdefs.h <<\EOF
20183 #define OPT_MAXIMIZE 0
20184 EOF
20185
20186 echo "$as_me:20186: checking if you want NumLock to override keyboard tables" >&5
20187 echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
20188
20189 # Check whether --enable-num-lock or --disable-num-lock was given.
20190 if test "${enable_num_lock+set}" = set; then
20191 enableval="$enable_num_lock"
20192 test "$enableval" != no && enableval=yes
20193 if test "$enableval" != "yes" ; then
20194 enable_numlock=no
20195 else
20196 enable_numlock=yes
20197 fi
20198 else
20199 enableval=yes
20200 enable_numlock=yes
20201
20202 fi;
20203 echo "$as_me:20203: result: $enable_numlock" >&5
20204 echo "${ECHO_T}$enable_numlock" >&6
20205 test "$enable_numlock" = no &&
20206 cat >>confdefs.h <<\EOF
20207 #define OPT_NUM_LOCK 0
20208 EOF
20209
20210 echo "$as_me:20210: checking if you want support for get/set of base64 selection data" >&5
20211 echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
20212
20213 # Check whether --enable-paste64 or --disable-paste64 was given.
20214 if test "${enable_paste64+set}" = set; then
20215 enableval="$enable_paste64"
20216 test "$enableval" != no && enableval=yes
20217 if test "$enableval" != "yes" ; then
20218 enable_paste64=no
20219 else
20220 enable_paste64=yes
20221 fi
20222 else
20223 enableval=yes
20224 enable_paste64=yes
20225
20226 fi;
20227 echo "$as_me:20227: result: $enable_paste64" >&5
20228 echo "${ECHO_T}$enable_paste64" >&6
20229 if test "$enable_paste64" = yes ; then
20230
20231 cat >>confdefs.h <<\EOF
20232 #define OPT_PASTE64 1
20233 EOF
20234
20235 else
20236
20237 cat >>confdefs.h <<\EOF
20238 #define OPT_PASTE64 0
20239 EOF
20240
20241 fi
20242
20243 echo "$as_me:20243: checking if you want support for pty-handshaking" >&5
20244 echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
20245
20246 # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
20247 if test "${enable_pty_handshake+set}" = set; then
20248 enableval="$enable_pty_handshake"
20249 test "$enableval" != no && enableval=yes
20250 if test "$enableval" != "yes" ; then
20251 enable_pty_handshake=no
20252 else
20253 enable_pty_handshake=yes
20254 fi
20255 else
20256 enableval=yes
20257 enable_pty_handshake=yes
20258
20259 fi;
20260 echo "$as_me:20260: result: $enable_pty_handshake" >&5
20261 echo "${ECHO_T}$enable_pty_handshake" >&6
20262 if test "$enable_pty_handshake" = yes ; then
20263
20264 cat >>confdefs.h <<\EOF
20265 #define OPT_PTY_HANDSHAKE 1
20266 EOF
20267
20268 else
20269
20270 cat >>confdefs.h <<\EOF
20271 #define OPT_PTY_HANDSHAKE 0
20272 EOF
20273
20274 fi
20275
20276 echo "$as_me:20276: checking if you want support for mouse in readline applications" >&5
20277 echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
20278
20279 # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
20280 if test "${enable_readline_mouse+set}" = set; then
20281 enableval="$enable_readline_mouse"
20282 test "$enableval" != yes && enableval=no
20283 if test "$enableval" != "no" ; then
20284 enable_readline_mouse=yes
20285 else
20286 enable_readline_mouse=no
20287 fi
20288 else
20289 enableval=no
20290 enable_readline_mouse=no
20291
20292 fi;
20293 echo "$as_me:20293: result: $enable_readline_mouse" >&5
20294 echo "${ECHO_T}$enable_readline_mouse" >&6
20295 if test "$enable_readline_mouse" = yes ; then
20296
20297 cat >>confdefs.h <<\EOF
20298 #define OPT_READLINE 1
20299 EOF
20300
20301 fi
20302
20303 echo "$as_me:20303: checking if you want support for regular-expression selections" >&5
20304 echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
20305
20306 # Check whether --enable-regex or --disable-regex was given.
20307 if test "${enable_regex+set}" = set; then
20308 enableval="$enable_regex"
20309 test "$enableval" != no && enableval=yes
20310 if test "$enableval" != "yes" ; then
20311 enable_regex=no
20312 else
20313 enable_regex=yes
20314 fi
20315 else
20316 enableval=yes
20317 enable_regex=yes
20318
20319 fi;
20320 echo "$as_me:20320: result: $enable_regex" >&5
20321 echo "${ECHO_T}$enable_regex" >&6
20322 if test "$enable_regex" = yes ; then
20323
20324 echo "$as_me:20324: checking if you want to use PCRE2 for regular-expressions" >&5
20325 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
20326
20327 # Check whether --with-pcre2 or --without-pcre2 was given.
20328 if test "${with_pcre2+set}" = set; then
20329 withval="$with_pcre2"
20330
20331 fi;
20332 test -z "$with_pcre2" && with_pcre2=no
20333 echo "$as_me:20333: result: $with_pcre2" >&5
20334 echo "${ECHO_T}$with_pcre2" >&6
20335
20336 if test "x$with_pcre2" != xno ; then
20337 cf_with_pcre2_ok=no
20338 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
20339 do
20340
20341 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
20342 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
20343
20344 echo "${as_me:-configure}:20344: testing found package $cf_with_pcre2 ..." 1>&5
20345
20346 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
20347 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
20348 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
20349
20350 echo "${as_me:-configure}:20350: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
20351
20352 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
20353
20354 echo "${as_me:-configure}:20354: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
20355
20356 cf_fix_cppflags=no
20357 cf_new_cflags=
20358 cf_new_cppflags=
20359 cf_new_extra_cppflags=
20360
20361 for cf_add_cflags in $cf_pkgconfig_incs
20362 do
20363 case "$cf_fix_cppflags" in
20364 (no)
20365 case "$cf_add_cflags" in
20366 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20367 case "$cf_add_cflags" in
20368 (-D*)
20369 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20370
20371 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20372 && test -z "${cf_tst_cflags}" \
20373 && cf_fix_cppflags=yes
20374
20375 if test "$cf_fix_cppflags" = yes ; then
20376
20377 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20378 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20379
20380 continue
20381 elif test "${cf_tst_cflags}" = "\"'" ; then
20382
20383 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20384 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20385
20386 continue
20387 fi
20388 ;;
20389 esac
20390 case "$CPPFLAGS" in
20391 (*$cf_add_cflags)
20392 ;;
20393 (*)
20394 case "$cf_add_cflags" in
20395 (-D*)
20396 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20397
20398 CPPFLAGS=`echo "$CPPFLAGS" | \
20399 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20400 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20401
20402 ;;
20403 esac
20404
20405 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20406 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20407
20408 ;;
20409 esac
20410 ;;
20411 (*)
20412
20413 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20414 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20415
20416 ;;
20417 esac
20418 ;;
20419 (yes)
20420
20421 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20422 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20423
20424 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20425
20426 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20427 && test -z "${cf_tst_cflags}" \
20428 && cf_fix_cppflags=no
20429 ;;
20430 esac
20431 done
20432
20433 if test -n "$cf_new_cflags" ; then
20434
20435 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20436 CFLAGS="${CFLAGS}$cf_new_cflags"
20437
20438 fi
20439
20440 if test -n "$cf_new_cppflags" ; then
20441
20442 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20443 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20444
20445 fi
20446
20447 if test -n "$cf_new_extra_cppflags" ; then
20448
20449 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20450 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20451
20452 fi
20453
20454 cf_add_libs="$LIBS"
20455 # reverse order
20456 cf_add_0lib=
20457 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20458 # filter duplicates
20459 for cf_add_1lib in $cf_add_0lib; do
20460 for cf_add_2lib in $cf_add_libs; do
20461 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20462 cf_add_1lib=
20463 break
20464 fi
20465 done
20466 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20467 done
20468 LIBS="$cf_add_libs"
20469
20470 cf_with_pcre2_ok=yes; break
20471 else
20472 cf_pkgconfig_incs=
20473 cf_pkgconfig_libs=
20474 :
20475 fi
20476
20477 done
20478 cf_with_pcre2_ok=yes || { { echo "$as_me:20478: error: Cannot find PCRE2 library" >&5
20479 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
20480 { (exit 1); exit 1; }; }
20481
20482 cat >>confdefs.h <<\EOF
20483 #define HAVE_LIB_PCRE2 1
20484 EOF
20485
20486 # if pkgconfig gave no results, look for the libraries directly
20487 case "$LIBS" in
20488 (*pcre2-posix*|*pcreposix*)
20489 ;;
20490 (*)
20491 echo "$as_me:20491: checking for regcomp in -lpcre2-posix" >&5
20492 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
20493 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 ac_check_lib_save_LIBS=$LIBS
20497 LIBS="-lpcre2-posix $LIBS"
20498 cat >"conftest.$ac_ext" <<_ACEOF
20499 #line 20499 "configure"
20500 #include "confdefs.h"
20501
20502 /* Override any gcc2 internal prototype to avoid an error. */
20503 #ifdef __cplusplus
20504 extern "C"
20505 #endif
20506 /* We use char because int might match the return type of a gcc2
20507 builtin and then its argument prototype would still apply. */
20508 char regcomp ();
20509 int
20510 main (void)
20511 {
20512 regcomp ();
20513 ;
20514 return 0;
20515 }
20516 _ACEOF
20517 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20518 if { (eval echo "$as_me:20518: \"$ac_link\"") >&5
20519 (eval $ac_link) 2>&5
20520 ac_status=$?
20521 echo "$as_me:20521: \$? = $ac_status" >&5
20522 (exit "$ac_status"); } &&
20523 { ac_try='test -s "conftest$ac_exeext"'
20524 { (eval echo "$as_me:20524: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:20527: \$? = $ac_status" >&5
20528 (exit "$ac_status"); }; }; then
20529 ac_cv_lib_pcre2_posix_regcomp=yes
20530 else
20531 echo "$as_me: failed program was:" >&5
20532 cat "conftest.$ac_ext" >&5
20533 ac_cv_lib_pcre2_posix_regcomp=no
20534 fi
20535 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20536 LIBS=$ac_check_lib_save_LIBS
20537 fi
20538 echo "$as_me:20538: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
20539 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
20540 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
20541
20542 cf_add_libs="$LIBS"
20543 # reverse order
20544 cf_add_0lib=
20545 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20546 # filter duplicates
20547 for cf_add_1lib in $cf_add_0lib; do
20548 for cf_add_2lib in $cf_add_libs; do
20549 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20550 cf_add_1lib=
20551 break
20552 fi
20553 done
20554 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20555 done
20556 LIBS="$cf_add_libs"
20557
20558 else
20559 echo "$as_me:20559: checking for regcomp in -lpcreposix" >&5
20560 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
20561 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564 ac_check_lib_save_LIBS=$LIBS
20565 LIBS="-lpcreposix $LIBS"
20566 cat >"conftest.$ac_ext" <<_ACEOF
20567 #line 20567 "configure"
20568 #include "confdefs.h"
20569
20570 /* Override any gcc2 internal prototype to avoid an error. */
20571 #ifdef __cplusplus
20572 extern "C"
20573 #endif
20574 /* We use char because int might match the return type of a gcc2
20575 builtin and then its argument prototype would still apply. */
20576 char regcomp ();
20577 int
20578 main (void)
20579 {
20580 regcomp ();
20581 ;
20582 return 0;
20583 }
20584 _ACEOF
20585 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20586 if { (eval echo "$as_me:20586: \"$ac_link\"") >&5
20587 (eval $ac_link) 2>&5
20588 ac_status=$?
20589 echo "$as_me:20589: \$? = $ac_status" >&5
20590 (exit "$ac_status"); } &&
20591 { ac_try='test -s "conftest$ac_exeext"'
20592 { (eval echo "$as_me:20592: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:20595: \$? = $ac_status" >&5
20596 (exit "$ac_status"); }; }; then
20597 ac_cv_lib_pcreposix_regcomp=yes
20598 else
20599 echo "$as_me: failed program was:" >&5
20600 cat "conftest.$ac_ext" >&5
20601 ac_cv_lib_pcreposix_regcomp=no
20602 fi
20603 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20604 LIBS=$ac_check_lib_save_LIBS
20605 fi
20606 echo "$as_me:20606: result: $ac_cv_lib_pcreposix_regcomp" >&5
20607 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
20608 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
20609
20610 cf_add_libs="$LIBS"
20611 # reverse order
20612 cf_add_0lib=
20613 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20614 # filter duplicates
20615 for cf_add_1lib in $cf_add_0lib; do
20616 for cf_add_2lib in $cf_add_libs; do
20617 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20618 cf_add_1lib=
20619 break
20620 fi
20621 done
20622 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20623 done
20624 LIBS="$cf_add_libs"
20625
20626 else
20627 { { echo "$as_me:20627: error: Cannot find PCRE2 POSIX library" >&5
20628 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
20629 { (exit 1); exit 1; }; }
20630 fi
20631
20632 fi
20633
20634 ;;
20635 esac
20636
20637 # either way, check for the library header files
20638
20639 for ac_header in pcre2posix.h pcreposix.h
20640 do
20641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20642 echo "$as_me:20642: checking for $ac_header" >&5
20643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 cat >"conftest.$ac_ext" <<_ACEOF
20648 #line 20648 "configure"
20649 #include "confdefs.h"
20650 #include <$ac_header>
20651 _ACEOF
20652 if { (eval echo "$as_me:20652: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20653 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20654 ac_status=$?
20655 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:20658: \$? = $ac_status" >&5
20659 (exit "$ac_status"); } >/dev/null; then
20660 if test -s conftest.err; then
20661 ac_cpp_err=$ac_c_preproc_warn_flag
20662 else
20663 ac_cpp_err=
20664 fi
20665 else
20666 ac_cpp_err=yes
20667 fi
20668 if test -z "$ac_cpp_err"; then
20669 eval "$as_ac_Header=yes"
20670 else
20671 echo "$as_me: failed program was:" >&5
20672 cat "conftest.$ac_ext" >&5
20673 eval "$as_ac_Header=no"
20674 fi
20675 rm -f conftest.err "conftest.$ac_ext"
20676 fi
20677 echo "$as_me:20677: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20678 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20679 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20680 cat >>confdefs.h <<EOF
20681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20682 EOF
20683
20684 fi
20685 done
20686
20687 for ac_func in PCRE2regcomp
20688 do
20689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20690 echo "$as_me:20690: checking for $ac_func" >&5
20691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20692 if eval "test \"\${$as_ac_var+set}\" = set"; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695 cat >"conftest.$ac_ext" <<_ACEOF
20696 #line 20696 "configure"
20697 #include "confdefs.h"
20698 #define $ac_func autoconf_temporary
20699 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20700 #undef $ac_func
20701
20702 #ifdef __cplusplus
20703 extern "C"
20704 #endif
20705
20706 /* We use char because int might match the return type of a gcc2
20707 builtin and then its argument prototype would still apply. */
20708 char $ac_func (void);
20709
20710 int
20711 main (void)
20712 {
20713
20714 /* The GNU C library defines stubs for functions which it implements
20715 to always fail with ENOSYS. Some functions are actually named
20716 something starting with __ and the normal name is an alias. */
20717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20718 #error found stub for $ac_func
20719 #endif
20720
20721 return $ac_func ();
20722 ;
20723 return 0;
20724 }
20725 _ACEOF
20726 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20727 if { (eval echo "$as_me:20727: \"$ac_link\"") >&5
20728 (eval $ac_link) 2>&5
20729 ac_status=$?
20730 echo "$as_me:20730: \$? = $ac_status" >&5
20731 (exit "$ac_status"); } &&
20732 { ac_try='test -s "conftest$ac_exeext"'
20733 { (eval echo "$as_me:20733: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 echo "$as_me:20736: \$? = $ac_status" >&5
20737 (exit "$ac_status"); }; }; then
20738 eval "$as_ac_var=yes"
20739 else
20740 echo "$as_me: failed program was:" >&5
20741 cat "conftest.$ac_ext" >&5
20742 eval "$as_ac_var=no"
20743 fi
20744 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20745 fi
20746 echo "$as_me:20746: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20747 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20748 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20749 cat >>confdefs.h <<EOF
20750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20751 EOF
20752
20753 fi
20754 done
20755
20756 fi
20757
20758 if test "$with_pcre2" = no ; then
20759
20760 echo "$as_me:20760: checking if you want to use PCRE for regular-expressions" >&5
20761 echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
20762
20763 # Check whether --with-pcre or --without-pcre was given.
20764 if test "${with_pcre+set}" = set; then
20765 withval="$with_pcre"
20766
20767 fi;
20768 test -z "$with_pcre" && with_pcre=no
20769 echo "$as_me:20769: result: $with_pcre" >&5
20770 echo "${ECHO_T}$with_pcre" >&6
20771
20772 if test "$with_pcre" != no ; then
20773
20774 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "libpcre"; then
20775 test -n "$verbose" && echo " found package libpcre" 1>&6
20776
20777 echo "${as_me:-configure}:20777: testing found package libpcre ..." 1>&5
20778
20779 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`"
20780 cf_pkgconfig_libs="`$PKG_CONFIG --libs "libpcre" 2>/dev/null`"
20781 test -n "$verbose" && echo " package libpcre CFLAGS: $cf_pkgconfig_incs" 1>&6
20782
20783 echo "${as_me:-configure}:20783: testing package libpcre CFLAGS: $cf_pkgconfig_incs ..." 1>&5
20784
20785 test -n "$verbose" && echo " package libpcre LIBS: $cf_pkgconfig_libs" 1>&6
20786
20787 echo "${as_me:-configure}:20787: testing package libpcre LIBS: $cf_pkgconfig_libs ..." 1>&5
20788
20789 cf_fix_cppflags=no
20790 cf_new_cflags=
20791 cf_new_cppflags=
20792 cf_new_extra_cppflags=
20793
20794 for cf_add_cflags in $cf_pkgconfig_incs
20795 do
20796 case "$cf_fix_cppflags" in
20797 (no)
20798 case "$cf_add_cflags" in
20799 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20800 case "$cf_add_cflags" in
20801 (-D*)
20802 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20803
20804 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20805 && test -z "${cf_tst_cflags}" \
20806 && cf_fix_cppflags=yes
20807
20808 if test "$cf_fix_cppflags" = yes ; then
20809
20810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20812
20813 continue
20814 elif test "${cf_tst_cflags}" = "\"'" ; then
20815
20816 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20817 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20818
20819 continue
20820 fi
20821 ;;
20822 esac
20823 case "$CPPFLAGS" in
20824 (*$cf_add_cflags)
20825 ;;
20826 (*)
20827 case "$cf_add_cflags" in
20828 (-D*)
20829 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20830
20831 CPPFLAGS=`echo "$CPPFLAGS" | \
20832 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20833 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20834
20835 ;;
20836 esac
20837
20838 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20839 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20840
20841 ;;
20842 esac
20843 ;;
20844 (*)
20845
20846 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20847 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20848
20849 ;;
20850 esac
20851 ;;
20852 (yes)
20853
20854 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20855 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20856
20857 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20858
20859 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20860 && test -z "${cf_tst_cflags}" \
20861 && cf_fix_cppflags=no
20862 ;;
20863 esac
20864 done
20865
20866 if test -n "$cf_new_cflags" ; then
20867
20868 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20869 CFLAGS="${CFLAGS}$cf_new_cflags"
20870
20871 fi
20872
20873 if test -n "$cf_new_cppflags" ; then
20874
20875 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20876 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20877
20878 fi
20879
20880 if test -n "$cf_new_extra_cppflags" ; then
20881
20882 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20883 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20884
20885 fi
20886
20887 cf_add_libs="$LIBS"
20888 # reverse order
20889 cf_add_0lib=
20890 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
20891 # filter duplicates
20892 for cf_add_1lib in $cf_add_0lib; do
20893 for cf_add_2lib in $cf_add_libs; do
20894 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
20895 cf_add_1lib=
20896 break
20897 fi
20898 done
20899 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
20900 done
20901 LIBS="$cf_add_libs"
20902
20903 :
20904 else
20905 cf_pkgconfig_incs=
20906 cf_pkgconfig_libs=
20907
20908 echo "$as_me:20908: checking for pcre_compile in -lpcre" >&5
20909 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
20910 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 else
20913 ac_check_lib_save_LIBS=$LIBS
20914 LIBS="-lpcre $LIBS"
20915 cat >"conftest.$ac_ext" <<_ACEOF
20916 #line 20916 "configure"
20917 #include "confdefs.h"
20918
20919 /* Override any gcc2 internal prototype to avoid an error. */
20920 #ifdef __cplusplus
20921 extern "C"
20922 #endif
20923 /* We use char because int might match the return type of a gcc2
20924 builtin and then its argument prototype would still apply. */
20925 char pcre_compile ();
20926 int
20927 main (void)
20928 {
20929 pcre_compile ();
20930 ;
20931 return 0;
20932 }
20933 _ACEOF
20934 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20935 if { (eval echo "$as_me:20935: \"$ac_link\"") >&5
20936 (eval $ac_link) 2>&5
20937 ac_status=$?
20938 echo "$as_me:20938: \$? = $ac_status" >&5
20939 (exit "$ac_status"); } &&
20940 { ac_try='test -s "conftest$ac_exeext"'
20941 { (eval echo "$as_me:20941: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:20944: \$? = $ac_status" >&5
20945 (exit "$ac_status"); }; }; then
20946 ac_cv_lib_pcre_pcre_compile=yes
20947 else
20948 echo "$as_me: failed program was:" >&5
20949 cat "conftest.$ac_ext" >&5
20950 ac_cv_lib_pcre_pcre_compile=no
20951 fi
20952 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20953 LIBS=$ac_check_lib_save_LIBS
20954 fi
20955 echo "$as_me:20955: result: $ac_cv_lib_pcre_pcre_compile" >&5
20956 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
20957 if test "$ac_cv_lib_pcre_pcre_compile" = yes; then
20958 cat >>confdefs.h <<EOF
20959 #define HAVE_LIBPCRE 1
20960 EOF
20961
20962 LIBS="-lpcre $LIBS"
20963
20964 else
20965 { { echo "$as_me:20965: error: Cannot find PCRE library" >&5
20966 echo "$as_me: error: Cannot find PCRE library" >&2;}
20967 { (exit 1); exit 1; }; }
20968 fi
20969
20970 fi
20971
20972 cat >>confdefs.h <<\EOF
20973 #define HAVE_LIB_PCRE 1
20974 EOF
20975
20976 case $LIBS in
20977 (*pcreposix*)
20978 ;;
20979 (*)
20980 echo "$as_me:20980: checking for pcreposix_regcomp in -lpcreposix" >&5
20981 echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
20982 if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984 else
20985 ac_check_lib_save_LIBS=$LIBS
20986 LIBS="-lpcreposix $LIBS"
20987 cat >"conftest.$ac_ext" <<_ACEOF
20988 #line 20988 "configure"
20989 #include "confdefs.h"
20990
20991 /* Override any gcc2 internal prototype to avoid an error. */
20992 #ifdef __cplusplus
20993 extern "C"
20994 #endif
20995 /* We use char because int might match the return type of a gcc2
20996 builtin and then its argument prototype would still apply. */
20997 char pcreposix_regcomp ();
20998 int
20999 main (void)
21000 {
21001 pcreposix_regcomp ();
21002 ;
21003 return 0;
21004 }
21005 _ACEOF
21006 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21007 if { (eval echo "$as_me:21007: \"$ac_link\"") >&5
21008 (eval $ac_link) 2>&5
21009 ac_status=$?
21010 echo "$as_me:21010: \$? = $ac_status" >&5
21011 (exit "$ac_status"); } &&
21012 { ac_try='test -s "conftest$ac_exeext"'
21013 { (eval echo "$as_me:21013: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:21016: \$? = $ac_status" >&5
21017 (exit "$ac_status"); }; }; then
21018 ac_cv_lib_pcreposix_pcreposix_regcomp=yes
21019 else
21020 echo "$as_me: failed program was:" >&5
21021 cat "conftest.$ac_ext" >&5
21022 ac_cv_lib_pcreposix_pcreposix_regcomp=no
21023 fi
21024 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21025 LIBS=$ac_check_lib_save_LIBS
21026 fi
21027 echo "$as_me:21027: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
21028 echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
21029 if test "$ac_cv_lib_pcreposix_pcreposix_regcomp" = yes; then
21030
21031 cat >>confdefs.h <<\EOF
21032 #define HAVE_PCREPOSIX_H 1
21033 EOF
21034
21035 cf_add_libs="$LIBS"
21036 # reverse order
21037 cf_add_0lib=
21038 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21039 # filter duplicates
21040 for cf_add_1lib in $cf_add_0lib; do
21041 for cf_add_2lib in $cf_add_libs; do
21042 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21043 cf_add_1lib=
21044 break
21045 fi
21046 done
21047 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21048 done
21049 LIBS="$cf_add_libs"
21050
21051 else
21052 echo "$as_me:21052: checking for regcomp in -lpcreposix" >&5
21053 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
21054 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057 ac_check_lib_save_LIBS=$LIBS
21058 LIBS="-lpcreposix $LIBS"
21059 cat >"conftest.$ac_ext" <<_ACEOF
21060 #line 21060 "configure"
21061 #include "confdefs.h"
21062
21063 /* Override any gcc2 internal prototype to avoid an error. */
21064 #ifdef __cplusplus
21065 extern "C"
21066 #endif
21067 /* We use char because int might match the return type of a gcc2
21068 builtin and then its argument prototype would still apply. */
21069 char regcomp ();
21070 int
21071 main (void)
21072 {
21073 regcomp ();
21074 ;
21075 return 0;
21076 }
21077 _ACEOF
21078 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21079 if { (eval echo "$as_me:21079: \"$ac_link\"") >&5
21080 (eval $ac_link) 2>&5
21081 ac_status=$?
21082 echo "$as_me:21082: \$? = $ac_status" >&5
21083 (exit "$ac_status"); } &&
21084 { ac_try='test -s "conftest$ac_exeext"'
21085 { (eval echo "$as_me:21085: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:21088: \$? = $ac_status" >&5
21089 (exit "$ac_status"); }; }; then
21090 ac_cv_lib_pcreposix_regcomp=yes
21091 else
21092 echo "$as_me: failed program was:" >&5
21093 cat "conftest.$ac_ext" >&5
21094 ac_cv_lib_pcreposix_regcomp=no
21095 fi
21096 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21097 LIBS=$ac_check_lib_save_LIBS
21098 fi
21099 echo "$as_me:21099: result: $ac_cv_lib_pcreposix_regcomp" >&5
21100 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
21101 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
21102
21103 cat >>confdefs.h <<\EOF
21104 #define HAVE_PCREPOSIX_H 1
21105 EOF
21106
21107 cf_add_libs="$LIBS"
21108 # reverse order
21109 cf_add_0lib=
21110 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21111 # filter duplicates
21112 for cf_add_1lib in $cf_add_0lib; do
21113 for cf_add_2lib in $cf_add_libs; do
21114 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21115 cf_add_1lib=
21116 break
21117 fi
21118 done
21119 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21120 done
21121 LIBS="$cf_add_libs"
21122
21123 else
21124 { { echo "$as_me:21124: error: Cannot find PCRE POSIX library" >&5
21125 echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
21126 { (exit 1); exit 1; }; }
21127 fi
21128
21129 fi
21130
21131 ;;
21132 esac
21133 fi
21134
21135 if test "$with_pcre" = no ; then
21136
21137 cf_regex_func=no
21138 cf_regex_libs=
21139 case "$host_os" in
21140 (mingw*)
21141 # -lsystre -ltre -lintl -liconv
21142 echo "$as_me:21142: checking for regcomp in -lsystre" >&5
21143 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
21144 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147 ac_check_lib_save_LIBS=$LIBS
21148 LIBS="-lsystre $LIBS"
21149 cat >"conftest.$ac_ext" <<_ACEOF
21150 #line 21150 "configure"
21151 #include "confdefs.h"
21152
21153 /* Override any gcc2 internal prototype to avoid an error. */
21154 #ifdef __cplusplus
21155 extern "C"
21156 #endif
21157 /* We use char because int might match the return type of a gcc2
21158 builtin and then its argument prototype would still apply. */
21159 char regcomp ();
21160 int
21161 main (void)
21162 {
21163 regcomp ();
21164 ;
21165 return 0;
21166 }
21167 _ACEOF
21168 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21169 if { (eval echo "$as_me:21169: \"$ac_link\"") >&5
21170 (eval $ac_link) 2>&5
21171 ac_status=$?
21172 echo "$as_me:21172: \$? = $ac_status" >&5
21173 (exit "$ac_status"); } &&
21174 { ac_try='test -s "conftest$ac_exeext"'
21175 { (eval echo "$as_me:21175: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:21178: \$? = $ac_status" >&5
21179 (exit "$ac_status"); }; }; then
21180 ac_cv_lib_systre_regcomp=yes
21181 else
21182 echo "$as_me: failed program was:" >&5
21183 cat "conftest.$ac_ext" >&5
21184 ac_cv_lib_systre_regcomp=no
21185 fi
21186 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21187 LIBS=$ac_check_lib_save_LIBS
21188 fi
21189 echo "$as_me:21189: result: $ac_cv_lib_systre_regcomp" >&5
21190 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
21191 if test "$ac_cv_lib_systre_regcomp" = yes; then
21192
21193 echo "$as_me:21193: checking for libiconv_open in -liconv" >&5
21194 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
21195 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198 ac_check_lib_save_LIBS=$LIBS
21199 LIBS="-liconv $LIBS"
21200 cat >"conftest.$ac_ext" <<_ACEOF
21201 #line 21201 "configure"
21202 #include "confdefs.h"
21203
21204 /* Override any gcc2 internal prototype to avoid an error. */
21205 #ifdef __cplusplus
21206 extern "C"
21207 #endif
21208 /* We use char because int might match the return type of a gcc2
21209 builtin and then its argument prototype would still apply. */
21210 char libiconv_open ();
21211 int
21212 main (void)
21213 {
21214 libiconv_open ();
21215 ;
21216 return 0;
21217 }
21218 _ACEOF
21219 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21220 if { (eval echo "$as_me:21220: \"$ac_link\"") >&5
21221 (eval $ac_link) 2>&5
21222 ac_status=$?
21223 echo "$as_me:21223: \$? = $ac_status" >&5
21224 (exit "$ac_status"); } &&
21225 { ac_try='test -s "conftest$ac_exeext"'
21226 { (eval echo "$as_me:21226: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21228 ac_status=$?
21229 echo "$as_me:21229: \$? = $ac_status" >&5
21230 (exit "$ac_status"); }; }; then
21231 ac_cv_lib_iconv_libiconv_open=yes
21232 else
21233 echo "$as_me: failed program was:" >&5
21234 cat "conftest.$ac_ext" >&5
21235 ac_cv_lib_iconv_libiconv_open=no
21236 fi
21237 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21238 LIBS=$ac_check_lib_save_LIBS
21239 fi
21240 echo "$as_me:21240: result: $ac_cv_lib_iconv_libiconv_open" >&5
21241 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
21242 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
21243
21244 cf_add_libs="$LIBS"
21245 # reverse order
21246 cf_add_0lib=
21247 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21248 # filter duplicates
21249 for cf_add_1lib in $cf_add_0lib; do
21250 for cf_add_2lib in $cf_add_libs; do
21251 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21252 cf_add_1lib=
21253 break
21254 fi
21255 done
21256 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21257 done
21258 LIBS="$cf_add_libs"
21259
21260 fi
21261
21262 echo "$as_me:21262: checking for libintl_gettext in -lintl" >&5
21263 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
21264 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267 ac_check_lib_save_LIBS=$LIBS
21268 LIBS="-lintl $LIBS"
21269 cat >"conftest.$ac_ext" <<_ACEOF
21270 #line 21270 "configure"
21271 #include "confdefs.h"
21272
21273 /* Override any gcc2 internal prototype to avoid an error. */
21274 #ifdef __cplusplus
21275 extern "C"
21276 #endif
21277 /* We use char because int might match the return type of a gcc2
21278 builtin and then its argument prototype would still apply. */
21279 char libintl_gettext ();
21280 int
21281 main (void)
21282 {
21283 libintl_gettext ();
21284 ;
21285 return 0;
21286 }
21287 _ACEOF
21288 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21289 if { (eval echo "$as_me:21289: \"$ac_link\"") >&5
21290 (eval $ac_link) 2>&5
21291 ac_status=$?
21292 echo "$as_me:21292: \$? = $ac_status" >&5
21293 (exit "$ac_status"); } &&
21294 { ac_try='test -s "conftest$ac_exeext"'
21295 { (eval echo "$as_me:21295: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21297 ac_status=$?
21298 echo "$as_me:21298: \$? = $ac_status" >&5
21299 (exit "$ac_status"); }; }; then
21300 ac_cv_lib_intl_libintl_gettext=yes
21301 else
21302 echo "$as_me: failed program was:" >&5
21303 cat "conftest.$ac_ext" >&5
21304 ac_cv_lib_intl_libintl_gettext=no
21305 fi
21306 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21307 LIBS=$ac_check_lib_save_LIBS
21308 fi
21309 echo "$as_me:21309: result: $ac_cv_lib_intl_libintl_gettext" >&5
21310 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
21311 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
21312
21313 cf_add_libs="$LIBS"
21314 # reverse order
21315 cf_add_0lib=
21316 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21317 # filter duplicates
21318 for cf_add_1lib in $cf_add_0lib; do
21319 for cf_add_2lib in $cf_add_libs; do
21320 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21321 cf_add_1lib=
21322 break
21323 fi
21324 done
21325 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21326 done
21327 LIBS="$cf_add_libs"
21328
21329 fi
21330
21331 echo "$as_me:21331: checking for tre_regcomp in -ltre" >&5
21332 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
21333 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336 ac_check_lib_save_LIBS=$LIBS
21337 LIBS="-ltre $LIBS"
21338 cat >"conftest.$ac_ext" <<_ACEOF
21339 #line 21339 "configure"
21340 #include "confdefs.h"
21341
21342 /* Override any gcc2 internal prototype to avoid an error. */
21343 #ifdef __cplusplus
21344 extern "C"
21345 #endif
21346 /* We use char because int might match the return type of a gcc2
21347 builtin and then its argument prototype would still apply. */
21348 char tre_regcomp ();
21349 int
21350 main (void)
21351 {
21352 tre_regcomp ();
21353 ;
21354 return 0;
21355 }
21356 _ACEOF
21357 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21358 if { (eval echo "$as_me:21358: \"$ac_link\"") >&5
21359 (eval $ac_link) 2>&5
21360 ac_status=$?
21361 echo "$as_me:21361: \$? = $ac_status" >&5
21362 (exit "$ac_status"); } &&
21363 { ac_try='test -s "conftest$ac_exeext"'
21364 { (eval echo "$as_me:21364: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:21367: \$? = $ac_status" >&5
21368 (exit "$ac_status"); }; }; then
21369 ac_cv_lib_tre_tre_regcomp=yes
21370 else
21371 echo "$as_me: failed program was:" >&5
21372 cat "conftest.$ac_ext" >&5
21373 ac_cv_lib_tre_tre_regcomp=no
21374 fi
21375 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21376 LIBS=$ac_check_lib_save_LIBS
21377 fi
21378 echo "$as_me:21378: result: $ac_cv_lib_tre_tre_regcomp" >&5
21379 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
21380 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
21381
21382 cf_add_libs="$LIBS"
21383 # reverse order
21384 cf_add_0lib=
21385 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21386 # filter duplicates
21387 for cf_add_1lib in $cf_add_0lib; do
21388 for cf_add_2lib in $cf_add_libs; do
21389 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21390 cf_add_1lib=
21391 break
21392 fi
21393 done
21394 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21395 done
21396 LIBS="$cf_add_libs"
21397
21398 fi
21399
21400 cf_add_libs="$LIBS"
21401 # reverse order
21402 cf_add_0lib=
21403 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21404 # filter duplicates
21405 for cf_add_1lib in $cf_add_0lib; do
21406 for cf_add_2lib in $cf_add_libs; do
21407 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21408 cf_add_1lib=
21409 break
21410 fi
21411 done
21412 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21413 done
21414 LIBS="$cf_add_libs"
21415
21416 cf_regex_func=regcomp
21417
21418 else
21419
21420 echo "$as_me:21420: checking for regcomp in -lgnurx" >&5
21421 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
21422 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425 ac_check_lib_save_LIBS=$LIBS
21426 LIBS="-lgnurx $LIBS"
21427 cat >"conftest.$ac_ext" <<_ACEOF
21428 #line 21428 "configure"
21429 #include "confdefs.h"
21430
21431 /* Override any gcc2 internal prototype to avoid an error. */
21432 #ifdef __cplusplus
21433 extern "C"
21434 #endif
21435 /* We use char because int might match the return type of a gcc2
21436 builtin and then its argument prototype would still apply. */
21437 char regcomp ();
21438 int
21439 main (void)
21440 {
21441 regcomp ();
21442 ;
21443 return 0;
21444 }
21445 _ACEOF
21446 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21447 if { (eval echo "$as_me:21447: \"$ac_link\"") >&5
21448 (eval $ac_link) 2>&5
21449 ac_status=$?
21450 echo "$as_me:21450: \$? = $ac_status" >&5
21451 (exit "$ac_status"); } &&
21452 { ac_try='test -s "conftest$ac_exeext"'
21453 { (eval echo "$as_me:21453: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21455 ac_status=$?
21456 echo "$as_me:21456: \$? = $ac_status" >&5
21457 (exit "$ac_status"); }; }; then
21458 ac_cv_lib_gnurx_regcomp=yes
21459 else
21460 echo "$as_me: failed program was:" >&5
21461 cat "conftest.$ac_ext" >&5
21462 ac_cv_lib_gnurx_regcomp=no
21463 fi
21464 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21465 LIBS=$ac_check_lib_save_LIBS
21466 fi
21467 echo "$as_me:21467: result: $ac_cv_lib_gnurx_regcomp" >&5
21468 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
21469 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
21470
21471 cf_add_libs="$LIBS"
21472 # reverse order
21473 cf_add_0lib=
21474 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21475 # filter duplicates
21476 for cf_add_1lib in $cf_add_0lib; do
21477 for cf_add_2lib in $cf_add_libs; do
21478 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21479 cf_add_1lib=
21480 break
21481 fi
21482 done
21483 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21484 done
21485 LIBS="$cf_add_libs"
21486
21487 cf_regex_func=regcomp
21488 fi
21489
21490 fi
21491
21492 ;;
21493 (*)
21494 cf_regex_libs="regex re"
21495 echo "$as_me:21495: checking for regcomp" >&5
21496 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
21497 if test "${ac_cv_func_regcomp+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500 cat >"conftest.$ac_ext" <<_ACEOF
21501 #line 21501 "configure"
21502 #include "confdefs.h"
21503 #define regcomp autoconf_temporary
21504 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21505 #undef regcomp
21506
21507 #ifdef __cplusplus
21508 extern "C"
21509 #endif
21510
21511 /* We use char because int might match the return type of a gcc2
21512 builtin and then its argument prototype would still apply. */
21513 char regcomp (void);
21514
21515 int
21516 main (void)
21517 {
21518
21519 /* The GNU C library defines stubs for functions which it implements
21520 to always fail with ENOSYS. Some functions are actually named
21521 something starting with __ and the normal name is an alias. */
21522 #if defined (__stub_regcomp) || defined (__stub___regcomp)
21523 #error found stub for regcomp
21524 #endif
21525
21526 return regcomp ();
21527 ;
21528 return 0;
21529 }
21530 _ACEOF
21531 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21532 if { (eval echo "$as_me:21532: \"$ac_link\"") >&5
21533 (eval $ac_link) 2>&5
21534 ac_status=$?
21535 echo "$as_me:21535: \$? = $ac_status" >&5
21536 (exit "$ac_status"); } &&
21537 { ac_try='test -s "conftest$ac_exeext"'
21538 { (eval echo "$as_me:21538: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:21541: \$? = $ac_status" >&5
21542 (exit "$ac_status"); }; }; then
21543 ac_cv_func_regcomp=yes
21544 else
21545 echo "$as_me: failed program was:" >&5
21546 cat "conftest.$ac_ext" >&5
21547 ac_cv_func_regcomp=no
21548 fi
21549 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21550 fi
21551 echo "$as_me:21551: result: $ac_cv_func_regcomp" >&5
21552 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
21553 if test "$ac_cv_func_regcomp" = yes; then
21554 cf_regex_func=regcomp
21555 else
21556
21557 for cf_regex_lib in $cf_regex_libs
21558 do
21559 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
21560 echo "$as_me:21560: checking for regcomp in -l$cf_regex_lib" >&5
21561 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
21562 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565 ac_check_lib_save_LIBS=$LIBS
21566 LIBS="-l$cf_regex_lib $LIBS"
21567 cat >"conftest.$ac_ext" <<_ACEOF
21568 #line 21568 "configure"
21569 #include "confdefs.h"
21570
21571 /* Override any gcc2 internal prototype to avoid an error. */
21572 #ifdef __cplusplus
21573 extern "C"
21574 #endif
21575 /* We use char because int might match the return type of a gcc2
21576 builtin and then its argument prototype would still apply. */
21577 char regcomp ();
21578 int
21579 main (void)
21580 {
21581 regcomp ();
21582 ;
21583 return 0;
21584 }
21585 _ACEOF
21586 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21587 if { (eval echo "$as_me:21587: \"$ac_link\"") >&5
21588 (eval $ac_link) 2>&5
21589 ac_status=$?
21590 echo "$as_me:21590: \$? = $ac_status" >&5
21591 (exit "$ac_status"); } &&
21592 { ac_try='test -s "conftest$ac_exeext"'
21593 { (eval echo "$as_me:21593: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:21596: \$? = $ac_status" >&5
21597 (exit "$ac_status"); }; }; then
21598 eval "$as_ac_Lib=yes"
21599 else
21600 echo "$as_me: failed program was:" >&5
21601 cat "conftest.$ac_ext" >&5
21602 eval "$as_ac_Lib=no"
21603 fi
21604 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21605 LIBS=$ac_check_lib_save_LIBS
21606 fi
21607 echo "$as_me:21607: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
21608 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
21609 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
21610
21611 cf_add_libs="$LIBS"
21612 # reverse order
21613 cf_add_0lib=
21614 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21615 # filter duplicates
21616 for cf_add_1lib in $cf_add_0lib; do
21617 for cf_add_2lib in $cf_add_libs; do
21618 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21619 cf_add_1lib=
21620 break
21621 fi
21622 done
21623 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21624 done
21625 LIBS="$cf_add_libs"
21626
21627 cf_regex_func=regcomp
21628 break
21629 fi
21630
21631 done
21632
21633 fi
21634
21635 ;;
21636 esac
21637
21638 if test "$cf_regex_func" = no ; then
21639 echo "$as_me:21639: checking for compile" >&5
21640 echo $ECHO_N "checking for compile... $ECHO_C" >&6
21641 if test "${ac_cv_func_compile+set}" = set; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 else
21644 cat >"conftest.$ac_ext" <<_ACEOF
21645 #line 21645 "configure"
21646 #include "confdefs.h"
21647 #define compile autoconf_temporary
21648 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21649 #undef compile
21650
21651 #ifdef __cplusplus
21652 extern "C"
21653 #endif
21654
21655 /* We use char because int might match the return type of a gcc2
21656 builtin and then its argument prototype would still apply. */
21657 char compile (void);
21658
21659 int
21660 main (void)
21661 {
21662
21663 /* The GNU C library defines stubs for functions which it implements
21664 to always fail with ENOSYS. Some functions are actually named
21665 something starting with __ and the normal name is an alias. */
21666 #if defined (__stub_compile) || defined (__stub___compile)
21667 #error found stub for compile
21668 #endif
21669
21670 return compile ();
21671 ;
21672 return 0;
21673 }
21674 _ACEOF
21675 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21676 if { (eval echo "$as_me:21676: \"$ac_link\"") >&5
21677 (eval $ac_link) 2>&5
21678 ac_status=$?
21679 echo "$as_me:21679: \$? = $ac_status" >&5
21680 (exit "$ac_status"); } &&
21681 { ac_try='test -s "conftest$ac_exeext"'
21682 { (eval echo "$as_me:21682: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:21685: \$? = $ac_status" >&5
21686 (exit "$ac_status"); }; }; then
21687 ac_cv_func_compile=yes
21688 else
21689 echo "$as_me: failed program was:" >&5
21690 cat "conftest.$ac_ext" >&5
21691 ac_cv_func_compile=no
21692 fi
21693 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21694 fi
21695 echo "$as_me:21695: result: $ac_cv_func_compile" >&5
21696 echo "${ECHO_T}$ac_cv_func_compile" >&6
21697 if test "$ac_cv_func_compile" = yes; then
21698 cf_regex_func=compile
21699 else
21700
21701 echo "$as_me:21701: checking for compile in -lgen" >&5
21702 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
21703 if test "${ac_cv_lib_gen_compile+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706 ac_check_lib_save_LIBS=$LIBS
21707 LIBS="-lgen $LIBS"
21708 cat >"conftest.$ac_ext" <<_ACEOF
21709 #line 21709 "configure"
21710 #include "confdefs.h"
21711
21712 /* Override any gcc2 internal prototype to avoid an error. */
21713 #ifdef __cplusplus
21714 extern "C"
21715 #endif
21716 /* We use char because int might match the return type of a gcc2
21717 builtin and then its argument prototype would still apply. */
21718 char compile ();
21719 int
21720 main (void)
21721 {
21722 compile ();
21723 ;
21724 return 0;
21725 }
21726 _ACEOF
21727 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21728 if { (eval echo "$as_me:21728: \"$ac_link\"") >&5
21729 (eval $ac_link) 2>&5
21730 ac_status=$?
21731 echo "$as_me:21731: \$? = $ac_status" >&5
21732 (exit "$ac_status"); } &&
21733 { ac_try='test -s "conftest$ac_exeext"'
21734 { (eval echo "$as_me:21734: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21736 ac_status=$?
21737 echo "$as_me:21737: \$? = $ac_status" >&5
21738 (exit "$ac_status"); }; }; then
21739 ac_cv_lib_gen_compile=yes
21740 else
21741 echo "$as_me: failed program was:" >&5
21742 cat "conftest.$ac_ext" >&5
21743 ac_cv_lib_gen_compile=no
21744 fi
21745 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21746 LIBS=$ac_check_lib_save_LIBS
21747 fi
21748 echo "$as_me:21748: result: $ac_cv_lib_gen_compile" >&5
21749 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
21750 if test "$ac_cv_lib_gen_compile" = yes; then
21751
21752 cf_add_libs="$LIBS"
21753 # reverse order
21754 cf_add_0lib=
21755 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21756 # filter duplicates
21757 for cf_add_1lib in $cf_add_0lib; do
21758 for cf_add_2lib in $cf_add_libs; do
21759 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21760 cf_add_1lib=
21761 break
21762 fi
21763 done
21764 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21765 done
21766 LIBS="$cf_add_libs"
21767
21768 cf_regex_func=compile
21769 fi
21770
21771 fi
21772
21773 fi
21774
21775 if test "$cf_regex_func" = no ; then
21776 { echo "$as_me:21776: WARNING: cannot find regular expression library" >&5
21777 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
21778 fi
21779
21780 echo "$as_me:21780: checking for regular-expression headers" >&5
21781 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
21782 if test "${cf_cv_regex_hdrs+set}" = set; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21784 else
21785
21786 cf_cv_regex_hdrs=no
21787 case "$cf_regex_func" in
21788 (compile)
21789 for cf_regex_hdr in regexp.h regexpr.h
21790 do
21791 cat >"conftest.$ac_ext" <<_ACEOF
21792 #line 21792 "configure"
21793 #include "confdefs.h"
21794 #include <$cf_regex_hdr>
21795 int
21796 main (void)
21797 {
21798
21799 char *p = compile("", "", "", 0);
21800 int x = step("", "");
21801 (void)p;
21802 (void)x;
21803
21804 ;
21805 return 0;
21806 }
21807 _ACEOF
21808 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21809 if { (eval echo "$as_me:21809: \"$ac_link\"") >&5
21810 (eval $ac_link) 2>&5
21811 ac_status=$?
21812 echo "$as_me:21812: \$? = $ac_status" >&5
21813 (exit "$ac_status"); } &&
21814 { ac_try='test -s "conftest$ac_exeext"'
21815 { (eval echo "$as_me:21815: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:21818: \$? = $ac_status" >&5
21819 (exit "$ac_status"); }; }; then
21820
21821 cf_cv_regex_hdrs=$cf_regex_hdr
21822 break
21823
21824 else
21825 echo "$as_me: failed program was:" >&5
21826 cat "conftest.$ac_ext" >&5
21827 fi
21828 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21829 done
21830 ;;
21831 (*)
21832 for cf_regex_hdr in regex.h
21833 do
21834 cat >"conftest.$ac_ext" <<_ACEOF
21835 #line 21835 "configure"
21836 #include "confdefs.h"
21837 #include <sys/types.h>
21838 #include <$cf_regex_hdr>
21839 int
21840 main (void)
21841 {
21842
21843 regex_t *p = 0;
21844 int x = regcomp(p, "", 0);
21845 int y = regexec(p, "", 0, 0, 0);
21846 (void)x;
21847 (void)y;
21848 regfree(p);
21849
21850 ;
21851 return 0;
21852 }
21853 _ACEOF
21854 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21855 if { (eval echo "$as_me:21855: \"$ac_link\"") >&5
21856 (eval $ac_link) 2>&5
21857 ac_status=$?
21858 echo "$as_me:21858: \$? = $ac_status" >&5
21859 (exit "$ac_status"); } &&
21860 { ac_try='test -s "conftest$ac_exeext"'
21861 { (eval echo "$as_me:21861: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:21864: \$? = $ac_status" >&5
21865 (exit "$ac_status"); }; }; then
21866
21867 cf_cv_regex_hdrs=$cf_regex_hdr
21868 break
21869
21870 else
21871 echo "$as_me: failed program was:" >&5
21872 cat "conftest.$ac_ext" >&5
21873 fi
21874 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21875 done
21876 ;;
21877 esac
21878
21879 fi
21880 echo "$as_me:21880: result: $cf_cv_regex_hdrs" >&5
21881 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
21882
21883 case "$cf_cv_regex_hdrs" in
21884 (no) { echo "$as_me:21884: WARNING: no regular expression header found" >&5
21885 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
21886 (regex.h)
21887 cat >>confdefs.h <<\EOF
21888 #define HAVE_REGEX_H_FUNCS 1
21889 EOF
21890 ;;
21891 (regexp.h)
21892 cat >>confdefs.h <<\EOF
21893 #define HAVE_REGEXP_H_FUNCS 1
21894 EOF
21895 ;;
21896 (regexpr.h)
21897 cat >>confdefs.h <<\EOF
21898 #define HAVE_REGEXPR_H_FUNCS 1
21899 EOF
21900 ;;
21901 esac
21902
21903 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
21904 { { echo "$as_me:21904: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&5
21905 echo "$as_me: error: Only POSIX, PCRE, or PCRE2 regular expressions are supported" >&2;}
21906 { (exit 1); exit 1; }; }
21907 fi
21908 fi
21909 fi
21910
21911 cat >>confdefs.h <<\EOF
21912 #define OPT_SELECT_REGEX 1
21913 EOF
21914
21915 fi
21916
21917 echo "$as_me:21917: checking if you want support for right-scrollbar" >&5
21918 echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
21919
21920 # Check whether --enable-rightbar or --disable-rightbar was given.
21921 if test "${enable_rightbar+set}" = set; then
21922 enableval="$enable_rightbar"
21923 test "$enableval" != no && enableval=yes
21924 if test "$enableval" != "yes" ; then
21925 enable_rightbar=no
21926 else
21927 enable_rightbar=yes
21928 fi
21929 else
21930 enableval=yes
21931 enable_rightbar=yes
21932
21933 fi;
21934 echo "$as_me:21934: result: $enable_rightbar" >&5
21935 echo "${ECHO_T}$enable_rightbar" >&6
21936 if test "$enable_rightbar" = yes ; then
21937
21938 cat >>confdefs.h <<\EOF
21939 #define SCROLLBAR_RIGHT 1
21940 EOF
21941
21942 fi
21943
21944 echo "$as_me:21944: checking if you want check for redundant name-change" >&5
21945 echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
21946
21947 # Check whether --enable-samename or --disable-samename was given.
21948 if test "${enable_samename+set}" = set; then
21949 enableval="$enable_samename"
21950 test "$enableval" != no && enableval=yes
21951 if test "$enableval" != "yes" ; then
21952 enable_samename=no
21953 else
21954 enable_samename=yes
21955 fi
21956 else
21957 enableval=yes
21958 enable_samename=yes
21959
21960 fi;
21961 echo "$as_me:21961: result: $enable_samename" >&5
21962 echo "${ECHO_T}$enable_samename" >&6
21963 test "$enable_samename" = no &&
21964 cat >>confdefs.h <<\EOF
21965 #define OPT_SAME_NAME 0
21966 EOF
21967
21968 echo "$as_me:21968: checking if you want support for selection-actions" >&5
21969 echo $ECHO_N "checking if you want support for selection-actions... $ECHO_C" >&6
21970
21971 # Check whether --enable-selection-ops or --disable-selection-ops was given.
21972 if test "${enable_selection_ops+set}" = set; then
21973 enableval="$enable_selection_ops"
21974 test "$enableval" != no && enableval=yes
21975 if test "$enableval" != "yes" ; then
21976 enable_selection_ops=no
21977 else
21978 enable_selection_ops=yes
21979 fi
21980 else
21981 enableval=yes
21982 enable_selection_ops=yes
21983
21984 fi;
21985 echo "$as_me:21985: result: $enable_selection_ops" >&5
21986 echo "${ECHO_T}$enable_selection_ops" >&6
21987 test "$enable_selection_ops" = no &&
21988 cat >>confdefs.h <<\EOF
21989 #define OPT_SELECTION_OPS 0
21990 EOF
21991
21992 echo "$as_me:21992: checking if you want support for session management" >&5
21993 echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
21994
21995 # Check whether --enable-session-mgt or --disable-session-mgt was given.
21996 if test "${enable_session_mgt+set}" = set; then
21997 enableval="$enable_session_mgt"
21998 test "$enableval" != no && enableval=yes
21999 if test "$enableval" != "yes" ; then
22000 enable_session_mgt=no
22001 else
22002 enable_session_mgt=yes
22003 fi
22004 else
22005 enableval=yes
22006 enable_session_mgt=yes
22007
22008 fi;
22009 echo "$as_me:22009: result: $enable_session_mgt" >&5
22010 echo "${ECHO_T}$enable_session_mgt" >&6
22011 test "$enable_session_mgt" = no &&
22012 cat >>confdefs.h <<\EOF
22013 #define OPT_SESSION_MGT 0
22014 EOF
22015
22016 echo "$as_me:22016: checking if you want support for status-line" >&5
22017 echo $ECHO_N "checking if you want support for status-line... $ECHO_C" >&6
22018
22019 # Check whether --enable-status-line or --disable-status-line was given.
22020 if test "${enable_status_line+set}" = set; then
22021 enableval="$enable_status_line"
22022 test "$enableval" != yes && enableval=no
22023 if test "$enableval" != "no" ; then
22024 enable_status_line=yes
22025 else
22026 enable_status_line=no
22027 fi
22028 else
22029 enableval=no
22030 enable_status_line=no
22031
22032 fi;
22033 echo "$as_me:22033: result: $enable_status_line" >&5
22034 echo "${ECHO_T}$enable_status_line" >&6
22035 test "$enable_status_line" = yes &&
22036 cat >>confdefs.h <<\EOF
22037 #define OPT_STATUS_LINE 1
22038 EOF
22039
22040 echo "$as_me:22040: checking if you want to use termcap function-keys" >&5
22041 echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
22042
22043 # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
22044 if test "${enable_tcap_fkeys+set}" = set; then
22045 enableval="$enable_tcap_fkeys"
22046 test "$enableval" != no && enableval=yes
22047 if test "$enableval" != "yes" ; then
22048 enable_tcap_fkeys=no
22049 else
22050 enable_tcap_fkeys=yes
22051 fi
22052 else
22053 enableval=yes
22054 enable_tcap_fkeys=yes
22055
22056 fi;
22057 echo "$as_me:22057: result: $enable_tcap_fkeys" >&5
22058 echo "${ECHO_T}$enable_tcap_fkeys" >&6
22059 test "$enable_tcap_fkeys" = no &&
22060 cat >>confdefs.h <<\EOF
22061 #define OPT_TCAP_FKEYS 0
22062 EOF
22063
22064 echo "$as_me:22064: checking if you want to use termcap-query/report" >&5
22065 echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
22066
22067 # Check whether --enable-tcap-query or --disable-tcap-query was given.
22068 if test "${enable_tcap_query+set}" = set; then
22069 enableval="$enable_tcap_query"
22070 test "$enableval" != no && enableval=yes
22071 if test "$enableval" != "yes" ; then
22072 enable_tcap_query=no
22073 else
22074 enable_tcap_query=yes
22075 fi
22076 else
22077 enableval=yes
22078 enable_tcap_query=yes
22079
22080 fi;
22081 echo "$as_me:22081: result: $enable_tcap_query" >&5
22082 echo "${ECHO_T}$enable_tcap_query" >&6
22083 test "$enable_tcap_query" = no &&
22084 cat >>confdefs.h <<\EOF
22085 #define OPT_TCAP_QUERY 0
22086 EOF
22087
22088 echo "$as_me:22088: checking if you want support for tek4014" >&5
22089 echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
22090
22091 # Check whether --enable-tek4014 or --disable-tek4014 was given.
22092 if test "${enable_tek4014+set}" = set; then
22093 enableval="$enable_tek4014"
22094 test "$enableval" != no && enableval=yes
22095 if test "$enableval" != "yes" ; then
22096 enable_tek4014=no
22097 else
22098 enable_tek4014=yes
22099 fi
22100 else
22101 enableval=yes
22102 enable_tek4014=yes
22103
22104 fi;
22105 echo "$as_me:22105: result: $enable_tek4014" >&5
22106 echo "${ECHO_T}$enable_tek4014" >&6
22107 if test "$enable_tek4014" = no ; then
22108
22109 cat >>confdefs.h <<\EOF
22110 #define OPT_TEK4014 0
22111 EOF
22112
22113 else
22114 EXTRAHDRS="$EXTRAHDRS Tekparse.h"
22115 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
22116 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
22117 fi
22118
22119 echo "$as_me:22119: checking if you want pulldown menus with a toolbar" >&5
22120 echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
22121
22122 # Check whether --enable-toolbar or --disable-toolbar was given.
22123 if test "${enable_toolbar+set}" = set; then
22124 enableval="$enable_toolbar"
22125 test "$enableval" != yes && enableval=no
22126 if test "$enableval" != "no" ; then
22127 enable_toolbar=yes
22128 else
22129 enable_toolbar=no
22130 fi
22131 else
22132 enableval=no
22133 enable_toolbar=no
22134
22135 fi;
22136 echo "$as_me:22136: result: $enable_toolbar" >&5
22137 echo "${ECHO_T}$enable_toolbar" >&6
22138 if test "$enable_toolbar" = yes ; then
22139
22140 cat >>confdefs.h <<\EOF
22141 #define OPT_TOOLBAR 1
22142 EOF
22143
22144 fi
22145
22146 echo "$as_me:22146: checking if you want VT52 emulation" >&5
22147 echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
22148
22149 # Check whether --enable-vt52 or --disable-vt52 was given.
22150 if test "${enable_vt52+set}" = set; then
22151 enableval="$enable_vt52"
22152 test "$enableval" != no && enableval=yes
22153 if test "$enableval" != "yes" ; then
22154 enable_vt52=no
22155 else
22156 enable_vt52=yes
22157 fi
22158 else
22159 enableval=yes
22160 enable_vt52=yes
22161
22162 fi;
22163 echo "$as_me:22163: result: $enable_vt52" >&5
22164 echo "${ECHO_T}$enable_vt52" >&6
22165 test "$enable_vt52" = no &&
22166 cat >>confdefs.h <<\EOF
22167 #define OPT_VT52_MODE 0
22168 EOF
22169
22170 echo "$as_me:22170: checking if you want wide-attribute support" >&5
22171 echo $ECHO_N "checking if you want wide-attribute support... $ECHO_C" >&6
22172
22173 # Check whether --enable-wide-attrs or --disable-wide-attrs was given.
22174 if test "${enable_wide_attrs+set}" = set; then
22175 enableval="$enable_wide_attrs"
22176 test "$enableval" != no && enableval=yes
22177 if test "$enableval" != "yes" ; then
22178 enable_wattr=no
22179 else
22180 enable_wattr=yes
22181 fi
22182 else
22183 enableval=yes
22184 enable_wattr=yes
22185
22186 fi;
22187 echo "$as_me:22187: result: $enable_wattr" >&5
22188 echo "${ECHO_T}$enable_wattr" >&6
22189
22190 if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then
22191 { echo "$as_me:22191: WARNING: overriding wide-attributes to support direct color" >&5
22192 echo "$as_me: WARNING: overriding wide-attributes to support direct color" >&2;}
22193 enable_wattr=yes
22194 fi
22195
22196 echo "$as_me:22196: checking if you want wide-character support" >&5
22197 echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
22198
22199 # Check whether --enable-wide-chars or --disable-wide-chars was given.
22200 if test "${enable_wide_chars+set}" = set; then
22201 enableval="$enable_wide_chars"
22202 test "$enableval" != no && enableval=yes
22203 if test "$enableval" != "yes" ; then
22204 enable_wchar=no
22205 else
22206 enable_wchar=yes
22207 fi
22208 else
22209 enableval=yes
22210 enable_wchar=yes
22211
22212 fi;
22213 echo "$as_me:22213: result: $enable_wchar" >&5
22214 echo "${ECHO_T}$enable_wchar" >&6
22215 test "x$enable_wattr" = xno &&
22216 cat >>confdefs.h <<\EOF
22217 #define OPT_WIDE_ATTRS 0
22218 EOF
22219
22220 echo "$as_me:22220: checking if you want only 16-bit character support" >&5
22221 echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
22222
22223 # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
22224 if test "${enable_16bit_chars+set}" = set; then
22225 enableval="$enable_16bit_chars"
22226 test "$enableval" != yes && enableval=no
22227 if test "$enableval" != "no" ; then
22228 enable_16bit_chars=yes
22229 else
22230 enable_16bit_chars=no
22231 fi
22232 else
22233 enableval=no
22234 enable_16bit_chars=no
22235
22236 fi;
22237 echo "$as_me:22237: result: $enable_16bit_chars" >&5
22238 echo "${ECHO_T}$enable_16bit_chars" >&6
22239
22240 if test "$enable_16bit_chars" = yes ; then
22241
22242 cat >>confdefs.h <<\EOF
22243 #define OPT_WIDER_ICHAR 0
22244 EOF
22245
22246 enable_wchar=yes
22247 fi
22248
22249 if test "$enable_wchar" = yes ; then
22250
22251 echo "$as_me:22251: checking if you want to use mini-luit/Latin9 built-in support" >&5
22252 echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
22253
22254 # Check whether --enable-mini-luit or --disable-mini-luit was given.
22255 if test "${enable_mini_luit+set}" = set; then
22256 enableval="$enable_mini_luit"
22257 test "$enableval" != yes && enableval=no
22258 if test "$enableval" != "no" ; then
22259 enable_mini_luit=yes
22260 else
22261 enable_mini_luit=no
22262 fi
22263 else
22264 enableval=no
22265 enable_mini_luit=no
22266
22267 fi;
22268 echo "$as_me:22268: result: $enable_mini_luit" >&5
22269 echo "${ECHO_T}$enable_mini_luit" >&6
22270 if test "$enable_mini_luit" = yes ; then
22271
22272 cat >>confdefs.h <<\EOF
22273 #define OPT_MINI_LUIT 1
22274 EOF
22275
22276 fi
22277
22278 echo "$as_me:22278: checking if you want to use luit" >&5
22279 echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
22280
22281 # Check whether --enable-luit or --disable-luit was given.
22282 if test "${enable_luit+set}" = set; then
22283 enableval="$enable_luit"
22284 test "$enableval" != no && enableval=yes
22285 if test "$enableval" != "yes" ; then
22286 enable_luit=no
22287 else
22288 enable_luit=yes
22289 fi
22290 else
22291 enableval=yes
22292 enable_luit=yes
22293
22294 fi;
22295 echo "$as_me:22295: result: $enable_luit" >&5
22296 echo "${ECHO_T}$enable_luit" >&6
22297 if test "$enable_luit" = yes ; then
22298
22299 cat >>confdefs.h <<\EOF
22300 #define OPT_LUIT_PROG 1
22301 EOF
22302
22303 test -z "$LUIT" && LUIT="xterm-filter"
22304 for ac_prog in $LUIT xterm-filter bluit luit
22305 do
22306 # Extract the first word of "$ac_prog", so it can be a program name with args.
22307 set dummy $ac_prog; ac_word=$2
22308 echo "$as_me:22308: checking for $ac_word" >&5
22309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22310 if test "${ac_cv_path_LUIT+set}" = set; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313 case $LUIT in
22314 [\\/]* | ?:[\\/]*)
22315 ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
22316 ;;
22317 *)
22318 ac_save_IFS=$IFS; IFS=$ac_path_separator
22319 ac_dummy="$PATH"
22320 for ac_dir in $ac_dummy; do
22321 IFS=$ac_save_IFS
22322 test -z "$ac_dir" && ac_dir=.
22323 if $as_executable_p "$ac_dir/$ac_word"; then
22324 ac_cv_path_LUIT="$ac_dir/$ac_word"
22325 echo "$as_me:22325: found $ac_dir/$ac_word" >&5
22326 break
22327 fi
22328 done
22329
22330 ;;
22331 esac
22332 fi
22333 LUIT=$ac_cv_path_LUIT
22334
22335 if test -n "$LUIT"; then
22336 echo "$as_me:22336: result: $LUIT" >&5
22337 echo "${ECHO_T}$LUIT" >&6
22338 else
22339 echo "$as_me:22339: result: no" >&5
22340 echo "${ECHO_T}no" >&6
22341 fi
22342
22343 test -n "$LUIT" && break
22344 done
22345 test -n "$LUIT" || LUIT="$LUIT"
22346
22347 cf_path_prog=""
22348 cf_path_args=""
22349 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
22350 for cf_temp in $ac_cv_path_LUIT
22351 do
22352 if test -z "$cf_path_prog" ; then
22353 if test "$with_full_paths" = yes ; then
22354
22355 if test "x$prefix" != xNONE; then
22356 cf_path_syntax="$prefix"
22357 else
22358 cf_path_syntax="$ac_default_prefix"
22359 fi
22360
22361 case ".$cf_temp" in
22362 (.\$\(*\)*|.\'*\'*)
22363 ;;
22364 (..|./*|.\\*)
22365 ;;
22366 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
22367 ;;
22368 (.\$\{*prefix\}*|.\$\{*dir\}*)
22369 eval cf_temp="$cf_temp"
22370 case ".$cf_temp" in
22371 (.NONE/*)
22372 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
22373 ;;
22374 esac
22375 ;;
22376 (.no|.NONE/*)
22377 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
22378 ;;
22379 (*)
22380 break
22381 ;;
22382 esac
22383
22384 cf_path_prog="$cf_temp"
22385 else
22386 cf_path_prog="`basename "$cf_temp"`"
22387 fi
22388 elif test -z "$cf_path_args" ; then
22389 cf_path_args="$cf_temp"
22390 else
22391 cf_path_args="$cf_path_args $cf_temp"
22392 fi
22393 done
22394 IFS="$cf_save_ifs"
22395
22396 if test -n "$cf_path_prog" ; then
22397
22398 echo "${as_me:-configure}:22398: testing defining path for ${cf_path_prog} ..." 1>&5
22399
22400 cat >>confdefs.h <<EOF
22401 #define LUIT_PATH "$cf_path_prog"
22402 EOF
22403
22404 test -n "$cf_path_args" &&
22405 cat >>confdefs.h <<EOF
22406 #define LUIT_ARGS "$cf_path_args"
22407 EOF
22408
22409 fi
22410
22411 fi
22412
22413 cat >>confdefs.h <<\EOF
22414 #define OPT_WIDE_CHARS 1
22415 EOF
22416
22417 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
22418 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
22419 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
22420 fi
22421
22422 echo "$as_me:22422: checking if you want dynamic-abbreviation support" >&5
22423 echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
22424
22425 # Check whether --enable-dabbrev or --disable-dabbrev was given.
22426 if test "${enable_dabbrev+set}" = set; then
22427 enableval="$enable_dabbrev"
22428 test "$enableval" != yes && enableval=no
22429 if test "$enableval" != "no" ; then
22430 enable_dabbrev=yes
22431 else
22432 enable_dabbrev=no
22433 fi
22434 else
22435 enableval=no
22436 enable_dabbrev=no
22437
22438 fi;
22439 echo "$as_me:22439: result: $enable_dabbrev" >&5
22440 echo "${ECHO_T}$enable_dabbrev" >&6
22441 if test "$enable_dabbrev" = yes ; then
22442
22443 cat >>confdefs.h <<\EOF
22444 #define OPT_DABBREV 1
22445 EOF
22446
22447 fi
22448
22449 echo "$as_me:22449: checking if you want DECterm Locator support" >&5
22450 echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
22451
22452 # Check whether --enable-dec-locator or --disable-dec-locator was given.
22453 if test "${enable_dec_locator+set}" = set; then
22454 enableval="$enable_dec_locator"
22455 test "$enableval" != yes && enableval=no
22456 if test "$enableval" != "no" ; then
22457 enable_dec_locator=yes
22458 else
22459 enable_dec_locator=no
22460 fi
22461 else
22462 enableval=no
22463 enable_dec_locator=no
22464
22465 fi;
22466 echo "$as_me:22466: result: $enable_dec_locator" >&5
22467 echo "${ECHO_T}$enable_dec_locator" >&6
22468 if test "$enable_dec_locator" = yes ; then
22469
22470 cat >>confdefs.h <<\EOF
22471 #define OPT_DEC_LOCATOR 1
22472 EOF
22473
22474 fi
22475
22476 echo "$as_me:22476: checking if you want XHTML and SVG screen dump support" >&5
22477 echo $ECHO_N "checking if you want XHTML and SVG screen dump support... $ECHO_C" >&6
22478
22479 # Check whether --enable-screen-dumps or --disable-screen-dumps was given.
22480 if test "${enable_screen_dumps+set}" = set; then
22481 enableval="$enable_screen_dumps"
22482 test "$enableval" != no && enableval=yes
22483 if test "$enableval" != "yes" ; then
22484 enable_screen_dumps=no
22485 else
22486 enable_screen_dumps=yes
22487 fi
22488 else
22489 enableval=yes
22490 enable_screen_dumps=yes
22491
22492 fi;
22493 echo "$as_me:22493: result: $enable_screen_dumps" >&5
22494 echo "${ECHO_T}$enable_screen_dumps" >&6
22495 if test "$enable_screen_dumps" = yes ; then
22496 EXTRASRCS="$EXTRASRCS html.c svg.c"
22497 EXTRAOBJS="$EXTRAOBJS html.o svg.o"
22498 else
22499
22500 cat >>confdefs.h <<\EOF
22501 #define OPT_SCREEN_DUMPS 0
22502 EOF
22503
22504 fi
22505
22506 echo "$as_me:22506: checking if you want ReGIS graphics support" >&5
22507 echo $ECHO_N "checking if you want ReGIS graphics support... $ECHO_C" >&6
22508
22509 # Check whether --enable-regis-graphics or --disable-regis-graphics was given.
22510 if test "${enable_regis_graphics+set}" = set; then
22511 enableval="$enable_regis_graphics"
22512 test "$enableval" != yes && enableval=no
22513 if test "$enableval" != "no" ; then
22514 enable_regis_graphics=yes
22515 else
22516 enable_regis_graphics=no
22517 fi
22518 else
22519 enableval=no
22520 enable_regis_graphics=no
22521
22522 fi;
22523 echo "$as_me:22523: result: $enable_regis_graphics" >&5
22524 echo "${ECHO_T}$enable_regis_graphics" >&6
22525 if test "$enable_regis_graphics" = yes ; then
22526
22527 cat >>confdefs.h <<\EOF
22528 #define OPT_REGIS_GRAPHICS 1
22529 EOF
22530
22531 EXTRAHDRS="$EXTRAHDRS graphics_regis.h"
22532 EXTRASRCS="$EXTRASRCS graphics_regis.c"
22533 EXTRAOBJS="$EXTRAOBJS graphics_regis.o"
22534
22535 echo "$as_me:22535: checking if -lm needed for math functions" >&5
22536 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
22537 if test "${cf_cv_need_libm+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540
22541 cat >"conftest.$ac_ext" <<_ACEOF
22542 #line 22542 "configure"
22543 #include "confdefs.h"
22544
22545 #include <stdio.h>
22546 #include <stdlib.h>
22547 #include <math.h>
22548
22549 int
22550 main (void)
22551 {
22552 double x = rand(); printf("result = %g\\n", sin(x))
22553 ;
22554 return 0;
22555 }
22556 _ACEOF
22557 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22558 if { (eval echo "$as_me:22558: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>&5
22560 ac_status=$?
22561 echo "$as_me:22561: \$? = $ac_status" >&5
22562 (exit "$ac_status"); } &&
22563 { ac_try='test -s "conftest$ac_exeext"'
22564 { (eval echo "$as_me:22564: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:22567: \$? = $ac_status" >&5
22568 (exit "$ac_status"); }; }; then
22569 cf_cv_need_libm=no
22570 else
22571 echo "$as_me: failed program was:" >&5
22572 cat "conftest.$ac_ext" >&5
22573 cf_cv_need_libm=yes
22574 fi
22575 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22576 fi
22577 echo "$as_me:22577: result: $cf_cv_need_libm" >&5
22578 echo "${ECHO_T}$cf_cv_need_libm" >&6
22579 if test "$cf_cv_need_libm" = yes
22580 then
22581
22582 cf_add_libs="$LIBS"
22583 # reverse order
22584 cf_add_0lib=
22585 for cf_add_1lib in -lm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
22586 # filter duplicates
22587 for cf_add_1lib in $cf_add_0lib; do
22588 for cf_add_2lib in $cf_add_libs; do
22589 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
22590 cf_add_1lib=
22591 break
22592 fi
22593 done
22594 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
22595 done
22596 LIBS="$cf_add_libs"
22597
22598 fi
22599
22600 fi
22601
22602 echo "$as_me:22602: checking if you want sixel graphics support" >&5
22603 echo $ECHO_N "checking if you want sixel graphics support... $ECHO_C" >&6
22604
22605 # Check whether --enable-sixel-graphics or --disable-sixel-graphics was given.
22606 if test "${enable_sixel_graphics+set}" = set; then
22607 enableval="$enable_sixel_graphics"
22608 test "$enableval" != no && enableval=yes
22609 if test "$enableval" != "yes" ; then
22610 enable_sixel_graphics=no
22611 else
22612 enable_sixel_graphics=yes
22613 fi
22614 else
22615 enableval=yes
22616 enable_sixel_graphics=yes
22617
22618 fi;
22619 echo "$as_me:22619: result: $enable_sixel_graphics" >&5
22620 echo "${ECHO_T}$enable_sixel_graphics" >&6
22621 if test "$enable_sixel_graphics" = yes ; then
22622
22623 cat >>confdefs.h <<\EOF
22624 #define OPT_SIXEL_GRAPHICS 1
22625 EOF
22626
22627 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h"
22628 EXTRASRCS="$EXTRASRCS graphics_sixel.c"
22629 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o"
22630 fi
22631
22632 if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then
22633
22634 cat >>confdefs.h <<\EOF
22635 #define OPT_GRAPHICS 1
22636 EOF
22637
22638 EXTRAHDRS="$EXTRAHDRS graphics.h"
22639 EXTRASRCS="$EXTRASRCS graphics.c"
22640 EXTRAOBJS="$EXTRAOBJS graphics.o"
22641 fi
22642
22643 echo "$as_me:22643: checking if you want sixel screen dump support" >&5
22644 echo $ECHO_N "checking if you want sixel screen dump support... $ECHO_C" >&6
22645
22646 # Check whether --enable-print-graphics or --disable-print-graphics was given.
22647 if test "${enable_print_graphics+set}" = set; then
22648 enableval="$enable_print_graphics"
22649 test "$enableval" != no && enableval=yes
22650 if test "$enableval" != "yes" ; then
22651 enable_print_graphics=no
22652 else
22653 enable_print_graphics=$enable_regis_graphics
22654 fi
22655 else
22656 enableval=yes
22657 enable_print_graphics=$enable_regis_graphics
22658
22659 fi;
22660 echo "$as_me:22660: result: $enable_print_graphics" >&5
22661 echo "${ECHO_T}$enable_print_graphics" >&6
22662 if test "$enable_print_graphics" = yes ; then
22663
22664 cat >>confdefs.h <<\EOF
22665 #define OPT_PRINT_GRAPHICS 1
22666 EOF
22667
22668 fi
22669
22670 echo "$as_me:22670: checking if you want VT420 rectangle support" >&5
22671 echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
22672
22673 # Check whether --enable-rectangles or --disable-rectangles was given.
22674 if test "${enable_rectangles+set}" = set; then
22675 enableval="$enable_rectangles"
22676 test "$enableval" != no && enableval=yes
22677 if test "$enableval" != "yes" ; then
22678 enable_rectangles=no
22679 else
22680 enable_rectangles=yes
22681 fi
22682 else
22683 enableval=yes
22684 enable_rectangles=yes
22685
22686 fi;
22687 echo "$as_me:22687: result: $enable_rectangles" >&5
22688 echo "${ECHO_T}$enable_rectangles" >&6
22689 if test "$enable_rectangles" = no ; then
22690
22691 cat >>confdefs.h <<\EOF
22692 #define OPT_DEC_RECTOPS 0
22693 EOF
22694
22695 fi
22696
22697 echo "$as_me:22697: checking if you want -ziconbeep option" >&5
22698 echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
22699
22700 # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
22701 if test "${enable_ziconbeep+set}" = set; then
22702 enableval="$enable_ziconbeep"
22703 test "$enableval" != no && enableval=yes
22704 if test "$enableval" != "yes" ; then
22705 enable_ziconbeep=no
22706 else
22707 enable_ziconbeep=yes
22708 fi
22709 else
22710 enableval=yes
22711 enable_ziconbeep=yes
22712
22713 fi;
22714 echo "$as_me:22714: result: $enable_ziconbeep" >&5
22715 echo "${ECHO_T}$enable_ziconbeep" >&6
22716 test "$enable_ziconbeep" = no &&
22717 cat >>confdefs.h <<\EOF
22718 #define OPT_ZICONBEEP 0
22719 EOF
22720
22721 ###############################################################################
22722
22723 echo "$as_me:22723: checking if you want debugging traces" >&5
22724 echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
22725
22726 # Check whether --enable-trace or --disable-trace was given.
22727 if test "${enable_trace+set}" = set; then
22728 enableval="$enable_trace"
22729 test "$enableval" != yes && enableval=no
22730 if test "$enableval" != "no" ; then
22731 enable_trace=yes
22732 else
22733 enable_trace=no
22734 fi
22735 else
22736 enableval=no
22737 enable_trace=no
22738
22739 fi;
22740 echo "$as_me:22740: result: $enable_trace" >&5
22741 echo "${ECHO_T}$enable_trace" >&6
22742 if test "$enable_trace" = yes ; then
22743
22744 cat >>confdefs.h <<\EOF
22745 #define OPT_TRACE 1
22746 EOF
22747
22748 EXTRASRCS="$EXTRASRCS trace.c"
22749 EXTRAOBJS="$EXTRAOBJS trace.o"
22750 fi
22751
22752 echo "$as_me:22752: checking if you want to use dmalloc for testing" >&5
22753 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
22754
22755 # Check whether --with-dmalloc or --without-dmalloc was given.
22756 if test "${with_dmalloc+set}" = set; then
22757 withval="$with_dmalloc"
22758 case "x$withval" in
22759 (x|xno) ;;
22760 (*)
22761 : "${with_cflags:=-g}"
22762 : "${enable_leaks:=no}"
22763 with_dmalloc=yes
22764
22765 cat >>confdefs.h <<EOF
22766 #define USE_DMALLOC 1
22767 EOF
22768
22769 ;;
22770 esac
22771 else
22772 with_dmalloc=
22773 fi;
22774 echo "$as_me:22774: result: ${with_dmalloc:-no}" >&5
22775 echo "${ECHO_T}${with_dmalloc:-no}" >&6
22776
22777 case ".$with_cflags" in
22778 (.*-g*)
22779 case .$CFLAGS in
22780 (.*-g*)
22781 ;;
22782 (*)
22783
22784 cf_fix_cppflags=no
22785 cf_new_cflags=
22786 cf_new_cppflags=
22787 cf_new_extra_cppflags=
22788
22789 for cf_add_cflags in -g
22790 do
22791 case "$cf_fix_cppflags" in
22792 (no)
22793 case "$cf_add_cflags" in
22794 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22795 case "$cf_add_cflags" in
22796 (-D*)
22797 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22798
22799 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22800 && test -z "${cf_tst_cflags}" \
22801 && cf_fix_cppflags=yes
22802
22803 if test "$cf_fix_cppflags" = yes ; then
22804
22805 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22806 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22807
22808 continue
22809 elif test "${cf_tst_cflags}" = "\"'" ; then
22810
22811 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22812 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22813
22814 continue
22815 fi
22816 ;;
22817 esac
22818 case "$CPPFLAGS" in
22819 (*$cf_add_cflags)
22820 ;;
22821 (*)
22822 case "$cf_add_cflags" in
22823 (-D*)
22824 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22825
22826 CPPFLAGS=`echo "$CPPFLAGS" | \
22827 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22828 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22829
22830 ;;
22831 esac
22832
22833 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
22834 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
22835
22836 ;;
22837 esac
22838 ;;
22839 (*)
22840
22841 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
22842 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
22843
22844 ;;
22845 esac
22846 ;;
22847 (yes)
22848
22849 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
22850 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
22851
22852 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
22853
22854 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22855 && test -z "${cf_tst_cflags}" \
22856 && cf_fix_cppflags=no
22857 ;;
22858 esac
22859 done
22860
22861 if test -n "$cf_new_cflags" ; then
22862
22863 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
22864 CFLAGS="${CFLAGS}$cf_new_cflags"
22865
22866 fi
22867
22868 if test -n "$cf_new_cppflags" ; then
22869
22870 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22871 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
22872
22873 fi
22874
22875 if test -n "$cf_new_extra_cppflags" ; then
22876
22877 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
22878 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
22879
22880 fi
22881
22882 ;;
22883 esac
22884 ;;
22885 esac
22886
22887 if test "$with_dmalloc" = yes ; then
22888 echo "$as_me:22888: checking for dmalloc.h" >&5
22889 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
22890 if test "${ac_cv_header_dmalloc_h+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893 cat >"conftest.$ac_ext" <<_ACEOF
22894 #line 22894 "configure"
22895 #include "confdefs.h"
22896 #include <dmalloc.h>
22897 _ACEOF
22898 if { (eval echo "$as_me:22898: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22899 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22900 ac_status=$?
22901 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22902 rm -f conftest.er1
22903 cat conftest.err >&5
22904 echo "$as_me:22904: \$? = $ac_status" >&5
22905 (exit "$ac_status"); } >/dev/null; then
22906 if test -s conftest.err; then
22907 ac_cpp_err=$ac_c_preproc_warn_flag
22908 else
22909 ac_cpp_err=
22910 fi
22911 else
22912 ac_cpp_err=yes
22913 fi
22914 if test -z "$ac_cpp_err"; then
22915 ac_cv_header_dmalloc_h=yes
22916 else
22917 echo "$as_me: failed program was:" >&5
22918 cat "conftest.$ac_ext" >&5
22919 ac_cv_header_dmalloc_h=no
22920 fi
22921 rm -f conftest.err "conftest.$ac_ext"
22922 fi
22923 echo "$as_me:22923: result: $ac_cv_header_dmalloc_h" >&5
22924 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
22925 if test "$ac_cv_header_dmalloc_h" = yes; then
22926
22927 echo "$as_me:22927: checking for dmalloc_debug in -ldmalloc" >&5
22928 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
22929 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
22930 echo $ECHO_N "(cached) $ECHO_C" >&6
22931 else
22932 ac_check_lib_save_LIBS=$LIBS
22933 LIBS="-ldmalloc $LIBS"
22934 cat >"conftest.$ac_ext" <<_ACEOF
22935 #line 22935 "configure"
22936 #include "confdefs.h"
22937
22938 /* Override any gcc2 internal prototype to avoid an error. */
22939 #ifdef __cplusplus
22940 extern "C"
22941 #endif
22942 /* We use char because int might match the return type of a gcc2
22943 builtin and then its argument prototype would still apply. */
22944 char dmalloc_debug ();
22945 int
22946 main (void)
22947 {
22948 dmalloc_debug ();
22949 ;
22950 return 0;
22951 }
22952 _ACEOF
22953 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22954 if { (eval echo "$as_me:22954: \"$ac_link\"") >&5
22955 (eval $ac_link) 2>&5
22956 ac_status=$?
22957 echo "$as_me:22957: \$? = $ac_status" >&5
22958 (exit "$ac_status"); } &&
22959 { ac_try='test -s "conftest$ac_exeext"'
22960 { (eval echo "$as_me:22960: \"$ac_try\"") >&5
22961 (eval $ac_try) 2>&5
22962 ac_status=$?
22963 echo "$as_me:22963: \$? = $ac_status" >&5
22964 (exit "$ac_status"); }; }; then
22965 ac_cv_lib_dmalloc_dmalloc_debug=yes
22966 else
22967 echo "$as_me: failed program was:" >&5
22968 cat "conftest.$ac_ext" >&5
22969 ac_cv_lib_dmalloc_dmalloc_debug=no
22970 fi
22971 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22972 LIBS=$ac_check_lib_save_LIBS
22973 fi
22974 echo "$as_me:22974: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
22975 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
22976 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
22977 cat >>confdefs.h <<EOF
22978 #define HAVE_LIBDMALLOC 1
22979 EOF
22980
22981 LIBS="-ldmalloc $LIBS"
22982
22983 fi
22984
22985 fi
22986
22987 fi
22988
22989 echo "$as_me:22989: checking if you want to use dbmalloc for testing" >&5
22990 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
22991
22992 # Check whether --with-dbmalloc or --without-dbmalloc was given.
22993 if test "${with_dbmalloc+set}" = set; then
22994 withval="$with_dbmalloc"
22995 case "x$withval" in
22996 (x|xno) ;;
22997 (*)
22998 : "${with_cflags:=-g}"
22999 : "${enable_leaks:=no}"
23000 with_dbmalloc=yes
23001
23002 cat >>confdefs.h <<EOF
23003 #define USE_DBMALLOC 1
23004 EOF
23005
23006 ;;
23007 esac
23008 else
23009 with_dbmalloc=
23010 fi;
23011 echo "$as_me:23011: result: ${with_dbmalloc:-no}" >&5
23012 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
23013
23014 case ".$with_cflags" in
23015 (.*-g*)
23016 case .$CFLAGS in
23017 (.*-g*)
23018 ;;
23019 (*)
23020
23021 cf_fix_cppflags=no
23022 cf_new_cflags=
23023 cf_new_cppflags=
23024 cf_new_extra_cppflags=
23025
23026 for cf_add_cflags in -g
23027 do
23028 case "$cf_fix_cppflags" in
23029 (no)
23030 case "$cf_add_cflags" in
23031 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23032 case "$cf_add_cflags" in
23033 (-D*)
23034 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23035
23036 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23037 && test -z "${cf_tst_cflags}" \
23038 && cf_fix_cppflags=yes
23039
23040 if test "$cf_fix_cppflags" = yes ; then
23041
23042 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23043 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23044
23045 continue
23046 elif test "${cf_tst_cflags}" = "\"'" ; then
23047
23048 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23049 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23050
23051 continue
23052 fi
23053 ;;
23054 esac
23055 case "$CPPFLAGS" in
23056 (*$cf_add_cflags)
23057 ;;
23058 (*)
23059 case "$cf_add_cflags" in
23060 (-D*)
23061 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23062
23063 CPPFLAGS=`echo "$CPPFLAGS" | \
23064 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23065 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23066
23067 ;;
23068 esac
23069
23070 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23071 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
23072
23073 ;;
23074 esac
23075 ;;
23076 (*)
23077
23078 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23079 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
23080
23081 ;;
23082 esac
23083 ;;
23084 (yes)
23085
23086 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23087 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23088
23089 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
23090
23091 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23092 && test -z "${cf_tst_cflags}" \
23093 && cf_fix_cppflags=no
23094 ;;
23095 esac
23096 done
23097
23098 if test -n "$cf_new_cflags" ; then
23099
23100 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23101 CFLAGS="${CFLAGS}$cf_new_cflags"
23102
23103 fi
23104
23105 if test -n "$cf_new_cppflags" ; then
23106
23107 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23108 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
23109
23110 fi
23111
23112 if test -n "$cf_new_extra_cppflags" ; then
23113
23114 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23115 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23116
23117 fi
23118
23119 ;;
23120 esac
23121 ;;
23122 esac
23123
23124 if test "$with_dbmalloc" = yes ; then
23125 echo "$as_me:23125: checking for dbmalloc.h" >&5
23126 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
23127 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 else
23130 cat >"conftest.$ac_ext" <<_ACEOF
23131 #line 23131 "configure"
23132 #include "confdefs.h"
23133 #include <dbmalloc.h>
23134 _ACEOF
23135 if { (eval echo "$as_me:23135: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23136 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23137 ac_status=$?
23138 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 echo "$as_me:23141: \$? = $ac_status" >&5
23142 (exit "$ac_status"); } >/dev/null; then
23143 if test -s conftest.err; then
23144 ac_cpp_err=$ac_c_preproc_warn_flag
23145 else
23146 ac_cpp_err=
23147 fi
23148 else
23149 ac_cpp_err=yes
23150 fi
23151 if test -z "$ac_cpp_err"; then
23152 ac_cv_header_dbmalloc_h=yes
23153 else
23154 echo "$as_me: failed program was:" >&5
23155 cat "conftest.$ac_ext" >&5
23156 ac_cv_header_dbmalloc_h=no
23157 fi
23158 rm -f conftest.err "conftest.$ac_ext"
23159 fi
23160 echo "$as_me:23160: result: $ac_cv_header_dbmalloc_h" >&5
23161 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
23162 if test "$ac_cv_header_dbmalloc_h" = yes; then
23163
23164 echo "$as_me:23164: checking for debug_malloc in -ldbmalloc" >&5
23165 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
23166 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
23167 echo $ECHO_N "(cached) $ECHO_C" >&6
23168 else
23169 ac_check_lib_save_LIBS=$LIBS
23170 LIBS="-ldbmalloc $LIBS"
23171 cat >"conftest.$ac_ext" <<_ACEOF
23172 #line 23172 "configure"
23173 #include "confdefs.h"
23174
23175 /* Override any gcc2 internal prototype to avoid an error. */
23176 #ifdef __cplusplus
23177 extern "C"
23178 #endif
23179 /* We use char because int might match the return type of a gcc2
23180 builtin and then its argument prototype would still apply. */
23181 char debug_malloc ();
23182 int
23183 main (void)
23184 {
23185 debug_malloc ();
23186 ;
23187 return 0;
23188 }
23189 _ACEOF
23190 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23191 if { (eval echo "$as_me:23191: \"$ac_link\"") >&5
23192 (eval $ac_link) 2>&5
23193 ac_status=$?
23194 echo "$as_me:23194: \$? = $ac_status" >&5
23195 (exit "$ac_status"); } &&
23196 { ac_try='test -s "conftest$ac_exeext"'
23197 { (eval echo "$as_me:23197: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 echo "$as_me:23200: \$? = $ac_status" >&5
23201 (exit "$ac_status"); }; }; then
23202 ac_cv_lib_dbmalloc_debug_malloc=yes
23203 else
23204 echo "$as_me: failed program was:" >&5
23205 cat "conftest.$ac_ext" >&5
23206 ac_cv_lib_dbmalloc_debug_malloc=no
23207 fi
23208 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23209 LIBS=$ac_check_lib_save_LIBS
23210 fi
23211 echo "$as_me:23211: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
23212 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
23213 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
23214 cat >>confdefs.h <<EOF
23215 #define HAVE_LIBDBMALLOC 1
23216 EOF
23217
23218 LIBS="-ldbmalloc $LIBS"
23219
23220 fi
23221
23222 fi
23223
23224 fi
23225
23226 echo "$as_me:23226: checking if you want to use valgrind for testing" >&5
23227 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
23228
23229 # Check whether --with-valgrind or --without-valgrind was given.
23230 if test "${with_valgrind+set}" = set; then
23231 withval="$with_valgrind"
23232 case "x$withval" in
23233 (x|xno) ;;
23234 (*)
23235 : "${with_cflags:=-g}"
23236 : "${enable_leaks:=no}"
23237 with_valgrind=yes
23238
23239 cat >>confdefs.h <<EOF
23240 #define USE_VALGRIND 1
23241 EOF
23242
23243 ;;
23244 esac
23245 else
23246 with_valgrind=
23247 fi;
23248 echo "$as_me:23248: result: ${with_valgrind:-no}" >&5
23249 echo "${ECHO_T}${with_valgrind:-no}" >&6
23250
23251 case ".$with_cflags" in
23252 (.*-g*)
23253 case .$CFLAGS in
23254 (.*-g*)
23255 ;;
23256 (*)
23257
23258 cf_fix_cppflags=no
23259 cf_new_cflags=
23260 cf_new_cppflags=
23261 cf_new_extra_cppflags=
23262
23263 for cf_add_cflags in -g
23264 do
23265 case "$cf_fix_cppflags" in
23266 (no)
23267 case "$cf_add_cflags" in
23268 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
23269 case "$cf_add_cflags" in
23270 (-D*)
23271 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
23272
23273 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23274 && test -z "${cf_tst_cflags}" \
23275 && cf_fix_cppflags=yes
23276
23277 if test "$cf_fix_cppflags" = yes ; then
23278
23279 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23280 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23281
23282 continue
23283 elif test "${cf_tst_cflags}" = "\"'" ; then
23284
23285 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23286 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23287
23288 continue
23289 fi
23290 ;;
23291 esac
23292 case "$CPPFLAGS" in
23293 (*$cf_add_cflags)
23294 ;;
23295 (*)
23296 case "$cf_add_cflags" in
23297 (-D*)
23298 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
23299
23300 CPPFLAGS=`echo "$CPPFLAGS" | \
23301 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
23302 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
23303
23304 ;;
23305 esac
23306
23307 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
23308 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
23309
23310 ;;
23311 esac
23312 ;;
23313 (*)
23314
23315 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
23316 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
23317
23318 ;;
23319 esac
23320 ;;
23321 (yes)
23322
23323 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
23324 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
23325
23326 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
23327
23328 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
23329 && test -z "${cf_tst_cflags}" \
23330 && cf_fix_cppflags=no
23331 ;;
23332 esac
23333 done
23334
23335 if test -n "$cf_new_cflags" ; then
23336
23337 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
23338 CFLAGS="${CFLAGS}$cf_new_cflags"
23339
23340 fi
23341
23342 if test -n "$cf_new_cppflags" ; then
23343
23344 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23345 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
23346
23347 fi
23348
23349 if test -n "$cf_new_extra_cppflags" ; then
23350
23351 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
23352 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
23353
23354 fi
23355
23356 ;;
23357 esac
23358 ;;
23359 esac
23360
23361 echo "$as_me:23361: checking if you want to perform memory-leak testing" >&5
23362 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
23363
23364 # Check whether --enable-leaks or --disable-leaks was given.
23365 if test "${enable_leaks+set}" = set; then
23366 enableval="$enable_leaks"
23367 enable_leaks=$enableval
23368 else
23369 enable_leaks=yes
23370 fi;
23371 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
23372 echo "$as_me:23372: result: $with_no_leaks" >&5
23373 echo "${ECHO_T}$with_no_leaks" >&6
23374
23375 if test "$enable_leaks" = no ; then
23376
23377 cat >>confdefs.h <<\EOF
23378 #define NO_LEAKS 1
23379 EOF
23380
23381 cat >>confdefs.h <<\EOF
23382 #define YY_NO_LEAKS 1
23383 EOF
23384
23385 fi
23386
23387 echo "$as_me:23387: checking if you want to see long compiling messages" >&5
23388 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
23389
23390 # Check whether --enable-echo or --disable-echo was given.
23391 if test "${enable_echo+set}" = set; then
23392 enableval="$enable_echo"
23393 test "$enableval" != no && enableval=yes
23394 if test "$enableval" != "yes" ; then
23395
23396 ECHO_LT='--silent'
23397 ECHO_LD='@echo linking $@;'
23398 RULE_CC='@echo compiling $<'
23399 SHOW_CC='@echo compiling $@'
23400 ECHO_CC='@'
23401
23402 else
23403
23404 ECHO_LT=''
23405 ECHO_LD=''
23406 RULE_CC=''
23407 SHOW_CC=''
23408 ECHO_CC=''
23409
23410 fi
23411 else
23412 enableval=yes
23413
23414 ECHO_LT=''
23415 ECHO_LD=''
23416 RULE_CC=''
23417 SHOW_CC=''
23418 ECHO_CC=''
23419
23420 fi;
23421 echo "$as_me:23421: result: $enableval" >&5
23422 echo "${ECHO_T}$enableval" >&6
23423
23424 echo "$as_me:23424: checking if you want magic cookie emulation" >&5
23425 echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
23426
23427 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
23428 if test "${enable_xmc_glitch+set}" = set; then
23429 enableval="$enable_xmc_glitch"
23430 test "$enableval" != yes && enableval=no
23431 if test "$enableval" != "no" ; then
23432 enable_xmc=yes
23433 else
23434 enable_xmc=no
23435 fi
23436 else
23437 enableval=no
23438 enable_xmc=no
23439
23440 fi;
23441 echo "$as_me:23441: result: $enable_xmc" >&5
23442 echo "${ECHO_T}$enable_xmc" >&6
23443 if test "$enable_xmc" = yes ; then
23444
23445 cat >>confdefs.h <<\EOF
23446 #define OPT_XMC_GLITCH 1
23447 EOF
23448
23449 EXTRASRCS="$EXTRASRCS testxmc.c"
23450 EXTRAOBJS="$EXTRAOBJS testxmc.o"
23451 fi
23452
23453 for ac_func in tigetstr
23454 do
23455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23456 echo "$as_me:23456: checking for $ac_func" >&5
23457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23458 if eval "test \"\${$as_ac_var+set}\" = set"; then
23459 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 else
23461 cat >"conftest.$ac_ext" <<_ACEOF
23462 #line 23462 "configure"
23463 #include "confdefs.h"
23464 #define $ac_func autoconf_temporary
23465 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23466 #undef $ac_func
23467
23468 #ifdef __cplusplus
23469 extern "C"
23470 #endif
23471
23472 /* We use char because int might match the return type of a gcc2
23473 builtin and then its argument prototype would still apply. */
23474 char $ac_func (void);
23475
23476 int
23477 main (void)
23478 {
23479
23480 /* The GNU C library defines stubs for functions which it implements
23481 to always fail with ENOSYS. Some functions are actually named
23482 something starting with __ and the normal name is an alias. */
23483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23484 #error found stub for $ac_func
23485 #endif
23486
23487 return $ac_func ();
23488 ;
23489 return 0;
23490 }
23491 _ACEOF
23492 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23493 if { (eval echo "$as_me:23493: \"$ac_link\"") >&5
23494 (eval $ac_link) 2>&5
23495 ac_status=$?
23496 echo "$as_me:23496: \$? = $ac_status" >&5
23497 (exit "$ac_status"); } &&
23498 { ac_try='test -s "conftest$ac_exeext"'
23499 { (eval echo "$as_me:23499: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:23502: \$? = $ac_status" >&5
23503 (exit "$ac_status"); }; }; then
23504 eval "$as_ac_var=yes"
23505 else
23506 echo "$as_me: failed program was:" >&5
23507 cat "conftest.$ac_ext" >&5
23508 eval "$as_ac_var=no"
23509 fi
23510 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23511 fi
23512 echo "$as_me:23512: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23513 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23514 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23515 cat >>confdefs.h <<EOF
23516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23517 EOF
23518
23519 fi
23520 done
23521
23522 if test -n "$cf_cv_lib_part_tgetent"; then
23523
23524 for ac_func in use_extended_names
23525 do
23526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23527 echo "$as_me:23527: checking for $ac_func" >&5
23528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23529 if eval "test \"\${$as_ac_var+set}\" = set"; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532 cat >"conftest.$ac_ext" <<_ACEOF
23533 #line 23533 "configure"
23534 #include "confdefs.h"
23535 #define $ac_func autoconf_temporary
23536 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23537 #undef $ac_func
23538
23539 #ifdef __cplusplus
23540 extern "C"
23541 #endif
23542
23543 /* We use char because int might match the return type of a gcc2
23544 builtin and then its argument prototype would still apply. */
23545 char $ac_func (void);
23546
23547 int
23548 main (void)
23549 {
23550
23551 /* The GNU C library defines stubs for functions which it implements
23552 to always fail with ENOSYS. Some functions are actually named
23553 something starting with __ and the normal name is an alias. */
23554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23555 #error found stub for $ac_func
23556 #endif
23557
23558 return $ac_func ();
23559 ;
23560 return 0;
23561 }
23562 _ACEOF
23563 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23564 if { (eval echo "$as_me:23564: \"$ac_link\"") >&5
23565 (eval $ac_link) 2>&5
23566 ac_status=$?
23567 echo "$as_me:23567: \$? = $ac_status" >&5
23568 (exit "$ac_status"); } &&
23569 { ac_try='test -s "conftest$ac_exeext"'
23570 { (eval echo "$as_me:23570: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 echo "$as_me:23573: \$? = $ac_status" >&5
23574 (exit "$ac_status"); }; }; then
23575 eval "$as_ac_var=yes"
23576 else
23577 echo "$as_me: failed program was:" >&5
23578 cat "conftest.$ac_ext" >&5
23579 eval "$as_ac_var=no"
23580 fi
23581 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23582 fi
23583 echo "$as_me:23583: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23584 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23585 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23586 cat >>confdefs.h <<EOF
23587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23588 EOF
23589
23590 fi
23591 done
23592
23593 fi
23594
23595 echo "$as_me:23595: checking if you want to use C11 _Noreturn feature" >&5
23596 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
23597
23598 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
23599 if test "${enable_stdnoreturn+set}" = set; then
23600 enableval="$enable_stdnoreturn"
23601 test "$enableval" != yes && enableval=no
23602 if test "$enableval" != "no" ; then
23603 enable_stdnoreturn=yes
23604 else
23605 enable_stdnoreturn=no
23606 fi
23607 else
23608 enableval=no
23609 enable_stdnoreturn=no
23610
23611 fi;
23612 echo "$as_me:23612: result: $enable_stdnoreturn" >&5
23613 echo "${ECHO_T}$enable_stdnoreturn" >&6
23614
23615 if test $enable_stdnoreturn = yes; then
23616 echo "$as_me:23616: checking for C11 _Noreturn feature" >&5
23617 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
23618 if test "${cf_cv_c11_noreturn+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 else
23621 cat >"conftest.$ac_ext" <<_ACEOF
23622 #line 23622 "configure"
23623 #include "confdefs.h"
23624
23625 #include <stdio.h>
23626 #include <stdlib.h>
23627 #include <stdnoreturn.h>
23628 static _Noreturn void giveup(void) { exit(0); }
23629
23630 int
23631 main (void)
23632 {
23633 if (feof(stdin)) giveup()
23634 ;
23635 return 0;
23636 }
23637 _ACEOF
23638 rm -f "conftest.$ac_objext"
23639 if { (eval echo "$as_me:23639: \"$ac_compile\"") >&5
23640 (eval $ac_compile) 2>&5
23641 ac_status=$?
23642 echo "$as_me:23642: \$? = $ac_status" >&5
23643 (exit "$ac_status"); } &&
23644 { ac_try='test -s "conftest.$ac_objext"'
23645 { (eval echo "$as_me:23645: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23647 ac_status=$?
23648 echo "$as_me:23648: \$? = $ac_status" >&5
23649 (exit "$ac_status"); }; }; then
23650 cf_cv_c11_noreturn=yes
23651 else
23652 echo "$as_me: failed program was:" >&5
23653 cat "conftest.$ac_ext" >&5
23654 cf_cv_c11_noreturn=no
23655 fi
23656 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23657
23658 fi
23659 echo "$as_me:23659: result: $cf_cv_c11_noreturn" >&5
23660 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
23661 else
23662 cf_cv_c11_noreturn=no,
23663 fi
23664
23665 if test "$cf_cv_c11_noreturn" = yes; then
23666
23667 cat >>confdefs.h <<\EOF
23668 #define HAVE_STDNORETURN_H 1
23669 EOF
23670
23671 cat >>confdefs.h <<EOF
23672 #define STDC_NORETURN _Noreturn
23673 EOF
23674
23675 HAVE_STDNORETURN_H=1
23676 else
23677 HAVE_STDNORETURN_H=0
23678 fi
23679
23680 if test "$GCC" = yes || test "$GXX" = yes
23681 then
23682
23683 if test "$GCC" = yes || test "$GXX" = yes
23684 then
23685 case $CFLAGS in
23686 (*-Werror=*)
23687 cf_temp_flags=
23688 for cf_temp_scan in $CFLAGS
23689 do
23690 case "x$cf_temp_scan" in
23691 (x-Werror=format*)
23692
23693 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23694 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23695
23696 ;;
23697 (x-Werror=*)
23698
23699 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
23700 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
23701
23702 ;;
23703 (*)
23704
23705 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23706 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23707
23708 ;;
23709 esac
23710 done
23711 if test "x$CFLAGS" != "x$cf_temp_flags"
23712 then
23713 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
23714
23715 echo "${as_me:-configure}:23715: testing repairing CFLAGS: $CFLAGS ..." 1>&5
23716
23717 CFLAGS="$cf_temp_flags"
23718 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
23719
23720 echo "${as_me:-configure}:23720: testing ... fixed $CFLAGS ..." 1>&5
23721
23722 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
23723
23724 echo "${as_me:-configure}:23724: testing ... extra $EXTRA_CFLAGS ..." 1>&5
23725
23726 fi
23727 ;;
23728 esac
23729 fi
23730
23731 if test "$GCC" = yes || test "$GXX" = yes
23732 then
23733 case $CPPFLAGS in
23734 (*-Werror=*)
23735 cf_temp_flags=
23736 for cf_temp_scan in $CPPFLAGS
23737 do
23738 case "x$cf_temp_scan" in
23739 (x-Werror=format*)
23740
23741 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23742 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23743
23744 ;;
23745 (x-Werror=*)
23746
23747 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
23748 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
23749
23750 ;;
23751 (*)
23752
23753 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23754 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23755
23756 ;;
23757 esac
23758 done
23759 if test "x$CPPFLAGS" != "x$cf_temp_flags"
23760 then
23761 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
23762
23763 echo "${as_me:-configure}:23763: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
23764
23765 CPPFLAGS="$cf_temp_flags"
23766 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
23767
23768 echo "${as_me:-configure}:23768: testing ... fixed $CPPFLAGS ..." 1>&5
23769
23770 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
23771
23772 echo "${as_me:-configure}:23772: testing ... extra $EXTRA_CFLAGS ..." 1>&5
23773
23774 fi
23775 ;;
23776 esac
23777 fi
23778
23779 if test "$GCC" = yes || test "$GXX" = yes
23780 then
23781 case $LDFLAGS in
23782 (*-Werror=*)
23783 cf_temp_flags=
23784 for cf_temp_scan in $LDFLAGS
23785 do
23786 case "x$cf_temp_scan" in
23787 (x-Werror=format*)
23788
23789 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23790 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23791
23792 ;;
23793 (x-Werror=*)
23794
23795 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
23796 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
23797
23798 ;;
23799 (*)
23800
23801 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
23802 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
23803
23804 ;;
23805 esac
23806 done
23807 if test "x$LDFLAGS" != "x$cf_temp_flags"
23808 then
23809 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
23810
23811 echo "${as_me:-configure}:23811: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
23812
23813 LDFLAGS="$cf_temp_flags"
23814 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
23815
23816 echo "${as_me:-configure}:23816: testing ... fixed $LDFLAGS ..." 1>&5
23817
23818 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
23819
23820 echo "${as_me:-configure}:23820: testing ... extra $EXTRA_CFLAGS ..." 1>&5
23821
23822 fi
23823 ;;
23824 esac
23825 fi
23826
23827 echo "$as_me:23827: checking if you want to turn on gcc warnings" >&5
23828 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
23829
23830 # Check whether --enable-warnings or --disable-warnings was given.
23831 if test "${enable_warnings+set}" = set; then
23832 enableval="$enable_warnings"
23833 test "$enableval" != yes && enableval=no
23834 if test "$enableval" != "no" ; then
23835 enable_warnings=yes
23836 else
23837 enable_warnings=no
23838 fi
23839 else
23840 enableval=no
23841 enable_warnings=no
23842
23843 fi;
23844 echo "$as_me:23844: result: $enable_warnings" >&5
23845 echo "${ECHO_T}$enable_warnings" >&6
23846 if test "$enable_warnings" = "yes"
23847 then
23848
23849 if test "$GCC" = yes || test "$GXX" = yes
23850 then
23851 cat > conftest.i <<EOF
23852 #ifndef GCC_PRINTF
23853 #define GCC_PRINTF 0
23854 #endif
23855 #ifndef GCC_SCANF
23856 #define GCC_SCANF 0
23857 #endif
23858 #ifndef GCC_NORETURN
23859 #define GCC_NORETURN /* nothing */
23860 #endif
23861 #ifndef GCC_UNUSED
23862 #define GCC_UNUSED /* nothing */
23863 #endif
23864 EOF
23865 if test "$GCC" = yes
23866 then
23867 { echo "$as_me:23867: checking for $CC __attribute__ directives..." >&5
23868 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
23869 cat > "conftest.$ac_ext" <<EOF
23870 #line 23870 "${as_me:-configure}"
23871 #include "confdefs.h"
23872 #include "conftest.h"
23873 #include "conftest.i"
23874 #if GCC_PRINTF
23875 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
23876 #else
23877 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
23878 #endif
23879 #if GCC_SCANF
23880 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
23881 #else
23882 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
23883 #endif
23884 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
23885 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
23886 extern GCC_NORETURN void foo(void);
23887 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
23888 EOF
23889 cf_printf_attribute=no
23890 cf_scanf_attribute=no
23891 for cf_attribute in scanf printf unused noreturn
23892 do
23893
23894 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23895
23896 cf_directive="__attribute__(($cf_attribute))"
23897 echo "checking for $CC $cf_directive" 1>&5
23898
23899 case "$cf_attribute" in
23900 (printf)
23901 cf_printf_attribute=yes
23902 cat >conftest.h <<EOF
23903 #define GCC_$cf_ATTRIBUTE 1
23904 EOF
23905 ;;
23906 (scanf)
23907 cf_scanf_attribute=yes
23908 cat >conftest.h <<EOF
23909 #define GCC_$cf_ATTRIBUTE 1
23910 EOF
23911 ;;
23912 (*)
23913 cat >conftest.h <<EOF
23914 #define GCC_$cf_ATTRIBUTE $cf_directive
23915 EOF
23916 ;;
23917 esac
23918
23919 if { (eval echo "$as_me:23919: \"$ac_compile\"") >&5
23920 (eval $ac_compile) 2>&5
23921 ac_status=$?
23922 echo "$as_me:23922: \$? = $ac_status" >&5
23923 (exit "$ac_status"); }; then
23924 test -n "$verbose" && echo "$as_me:23924: result: ... $cf_attribute" >&5
23925 echo "${ECHO_T}... $cf_attribute" >&6
23926 cat conftest.h >>confdefs.h
23927 case "$cf_attribute" in
23928 (noreturn)
23929
23930 cat >>confdefs.h <<EOF
23931 #define GCC_NORETURN $cf_directive
23932 EOF
23933
23934 ;;
23935 (printf)
23936 cf_value='/* nothing */'
23937 if test "$cf_printf_attribute" != no ; then
23938 cf_value='__attribute__((format(printf,fmt,var)))'
23939
23940 cat >>confdefs.h <<\EOF
23941 #define GCC_PRINTF 1
23942 EOF
23943
23944 fi
23945
23946 cat >>confdefs.h <<EOF
23947 #define GCC_PRINTFLIKE(fmt,var) $cf_value
23948 EOF
23949
23950 ;;
23951 (scanf)
23952 cf_value='/* nothing */'
23953 if test "$cf_scanf_attribute" != no ; then
23954 cf_value='__attribute__((format(scanf,fmt,var)))'
23955
23956 cat >>confdefs.h <<\EOF
23957 #define GCC_SCANF 1
23958 EOF
23959
23960 fi
23961
23962 cat >>confdefs.h <<EOF
23963 #define GCC_SCANFLIKE(fmt,var) $cf_value
23964 EOF
23965
23966 ;;
23967 (unused)
23968
23969 cat >>confdefs.h <<EOF
23970 #define GCC_UNUSED $cf_directive
23971 EOF
23972
23973 ;;
23974 esac
23975 fi
23976 done
23977 else
23978 ${FGREP-fgrep} define conftest.i >>confdefs.h
23979 fi
23980 rm -rf ./conftest*
23981 fi
23982
23983 if test "x$have_x" = xyes; then
23984
23985 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
23986 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
23987 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
23988 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
23989 for cf_X_CFLAGS in $X_CFLAGS
23990 do
23991 case "x$cf_X_CFLAGS" in
23992 x-[IUD]*)
23993 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
23994 ;;
23995 *)
23996 CFLAGS="$CFLAGS $cf_X_CFLAGS"
23997 ;;
23998 esac
23999 done
24000
24001 cat >"conftest.$ac_ext" <<_ACEOF
24002 #line 24002 "configure"
24003 #include "confdefs.h"
24004
24005 #include <stdlib.h>
24006 #include <X11/Intrinsic.h>
24007
24008 int
24009 main (void)
24010 {
24011 String foo = malloc(1); free((void*)foo)
24012 ;
24013 return 0;
24014 }
24015 _ACEOF
24016 rm -f "conftest.$ac_objext"
24017 if { (eval echo "$as_me:24017: \"$ac_compile\"") >&5
24018 (eval $ac_compile) 2>&5
24019 ac_status=$?
24020 echo "$as_me:24020: \$? = $ac_status" >&5
24021 (exit "$ac_status"); } &&
24022 { ac_try='test -s "conftest.$ac_objext"'
24023 { (eval echo "$as_me:24023: \"$ac_try\"") >&5
24024 (eval $ac_try) 2>&5
24025 ac_status=$?
24026 echo "$as_me:24026: \$? = $ac_status" >&5
24027 (exit "$ac_status"); }; }; then
24028
24029 echo "$as_me:24029: checking for X11/Xt const-feature" >&5
24030 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
24031 if test "${cf_cv_const_x_string+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034
24035 cat >"conftest.$ac_ext" <<_ACEOF
24036 #line 24036 "configure"
24037 #include "confdefs.h"
24038
24039 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
24040 #undef XTSTRINGDEFINES /* X11R5 and later */
24041 #include <stdlib.h>
24042 #include <X11/Intrinsic.h>
24043
24044 int
24045 main (void)
24046 {
24047 String foo = malloc(1); *foo = 0
24048 ;
24049 return 0;
24050 }
24051 _ACEOF
24052 rm -f "conftest.$ac_objext"
24053 if { (eval echo "$as_me:24053: \"$ac_compile\"") >&5
24054 (eval $ac_compile) 2>&5
24055 ac_status=$?
24056 echo "$as_me:24056: \$? = $ac_status" >&5
24057 (exit "$ac_status"); } &&
24058 { ac_try='test -s "conftest.$ac_objext"'
24059 { (eval echo "$as_me:24059: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:24062: \$? = $ac_status" >&5
24063 (exit "$ac_status"); }; }; then
24064
24065 cf_cv_const_x_string=no
24066
24067 else
24068 echo "$as_me: failed program was:" >&5
24069 cat "conftest.$ac_ext" >&5
24070
24071 cf_cv_const_x_string=yes
24072
24073 fi
24074 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24075
24076 fi
24077 echo "$as_me:24077: result: $cf_cv_const_x_string" >&5
24078 echo "${ECHO_T}$cf_cv_const_x_string" >&6
24079
24080 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
24081 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
24082 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
24083
24084 case "$cf_cv_const_x_string" in
24085 (no)
24086
24087 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24088 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
24089
24090 ;;
24091 (*)
24092
24093 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24094 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
24095
24096 ;;
24097 esac
24098
24099 else
24100 echo "$as_me: failed program was:" >&5
24101 cat "conftest.$ac_ext" >&5
24102 fi
24103 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24104 fi
24105 cat > "conftest.$ac_ext" <<EOF
24106 #line 24106 "${as_me:-configure}"
24107 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
24108 EOF
24109 if test "$INTEL_COMPILER" = yes
24110 then
24111 # The "-wdXXX" options suppress warnings:
24112 # remark #1419: external declaration in primary source file
24113 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
24114 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
24115 # remark #193: zero used for undefined preprocessing identifier
24116 # remark #593: variable "curs_sb_left_arrow" was set but never used
24117 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
24118 # remark #869: parameter "tw" was never referenced
24119 # remark #981: operands are evaluated in unspecified order
24120 # warning #279: controlling expression is constant
24121
24122 { echo "$as_me:24122: checking for $CC warning options..." >&5
24123 echo "$as_me: checking for $CC warning options..." >&6;}
24124 cf_save_CFLAGS="$CFLAGS"
24125 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
24126 for cf_opt in \
24127 wd1419 \
24128 wd1683 \
24129 wd1684 \
24130 wd193 \
24131 wd593 \
24132 wd279 \
24133 wd810 \
24134 wd869 \
24135 wd981
24136 do
24137 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
24138 if { (eval echo "$as_me:24138: \"$ac_compile\"") >&5
24139 (eval $ac_compile) 2>&5
24140 ac_status=$?
24141 echo "$as_me:24141: \$? = $ac_status" >&5
24142 (exit "$ac_status"); }; then
24143 test -n "$verbose" && echo "$as_me:24143: result: ... -$cf_opt" >&5
24144 echo "${ECHO_T}... -$cf_opt" >&6
24145 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
24146 fi
24147 done
24148 CFLAGS="$cf_save_CFLAGS"
24149 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
24150 then
24151 { echo "$as_me:24151: checking for $CC warning options..." >&5
24152 echo "$as_me: checking for $CC warning options..." >&6;}
24153 cf_save_CFLAGS="$CFLAGS"
24154 cf_warn_CONST=""
24155 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
24156 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
24157 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
24158 for cf_opt in W Wall \
24159 Wbad-function-cast \
24160 Wcast-align \
24161 Wcast-qual \
24162 Wdeclaration-after-statement \
24163 Wextra \
24164 Winline \
24165 Wmissing-declarations \
24166 Wmissing-prototypes \
24167 Wnested-externs \
24168 Wpointer-arith \
24169 Wshadow \
24170 Wstrict-prototypes \
24171 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual
24172 do
24173 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
24174 if { (eval echo "$as_me:24174: \"$ac_compile\"") >&5
24175 (eval $ac_compile) 2>&5
24176 ac_status=$?
24177 echo "$as_me:24177: \$? = $ac_status" >&5
24178 (exit "$ac_status"); }; then
24179 test -n "$verbose" && echo "$as_me:24179: result: ... -$cf_opt" >&5
24180 echo "${ECHO_T}... -$cf_opt" >&6
24181 case "$cf_opt" in
24182 (Winline)
24183 case "$GCC_VERSION" in
24184 ([34].*)
24185 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
24186
24187 echo "${as_me:-configure}:24187: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
24188
24189 continue;;
24190 esac
24191 ;;
24192 (Wpointer-arith)
24193 case "$GCC_VERSION" in
24194 ([12].*)
24195 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
24196
24197 echo "${as_me:-configure}:24197: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
24198
24199 continue;;
24200 esac
24201 ;;
24202 esac
24203 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
24204 fi
24205 done
24206 CFLAGS="$cf_save_CFLAGS"
24207 fi
24208 rm -rf ./conftest*
24209
24210 fi
24211
24212 fi
24213
24214 test "$disable_setuid" = yes &&
24215 cat >>confdefs.h <<\EOF
24216 #define DISABLE_SETUID 1
24217 EOF
24218
24219 test "$disable_setgid" = yes &&
24220 cat >>confdefs.h <<\EOF
24221 #define DISABLE_SETGID 1
24222 EOF
24223
24224 if test $disable_setuid = yes ; then
24225 MAY_SETUID="#"
24226 NOT_SETUID=
24227 elif test $disable_setgid = yes ; then
24228 MAY_SETUID="#"
24229 NOT_SETUID=
24230 else
24231 MAY_SETUID=
24232 NOT_SETUID="#"
24233 fi
24234
24235 ### remove from CPPFLAGS the optional features we define in xtermcfg.h
24236 ### or other conflicting symbols that may be defined via imake:
24237 for cf_def in \
24238 __STDC__ \
24239 ALLOWLOGGING \
24240 ALLOWLOGFILEEXEC \
24241 OPT_LUIT_PROG \
24242 OPT_WIDE_CHARS \
24243 SCROLLBAR_RIGHT \
24244 USE_TTY_GROUP \
24245 USE_UTEMPTER \
24246 XRENDERFONT
24247 do
24248 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
24249 done
24250
24251 echo "$as_me:24251: checking if filesystem supports mixed-case filenames" >&5
24252 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
24253 if test "${cf_cv_mixedcase+set}" = set; then
24254 echo $ECHO_N "(cached) $ECHO_C" >&6
24255 else
24256
24257 if test "$cross_compiling" = yes ; then
24258 case "$target_alias" in
24259 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
24260 cf_cv_mixedcase=no
24261 ;;
24262 (*)
24263 cf_cv_mixedcase=yes
24264 ;;
24265 esac
24266 else
24267 rm -f conftest CONFTEST
24268 echo test >conftest
24269 if test -f CONFTEST ; then
24270 cf_cv_mixedcase=no
24271 else
24272 cf_cv_mixedcase=yes
24273 fi
24274 rm -f conftest CONFTEST
24275 fi
24276
24277 fi
24278 echo "$as_me:24278: result: $cf_cv_mixedcase" >&5
24279 echo "${ECHO_T}$cf_cv_mixedcase" >&6
24280 test "$cf_cv_mixedcase" = yes &&
24281 cat >>confdefs.h <<\EOF
24282 #define MIXEDCASE_FILENAMES 1
24283 EOF
24284
24285 for ac_prog in exctags ctags
24286 do
24287 # Extract the first word of "$ac_prog", so it can be a program name with args.
24288 set dummy $ac_prog; ac_word=$2
24289 echo "$as_me:24289: checking for $ac_word" >&5
24290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24291 if test "${ac_cv_prog_CTAGS+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 else
24294 if test -n "$CTAGS"; then
24295 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
24296 else
24297 ac_save_IFS=$IFS; IFS=$ac_path_separator
24298 ac_dummy="$PATH"
24299 for ac_dir in $ac_dummy; do
24300 IFS=$ac_save_IFS
24301 test -z "$ac_dir" && ac_dir=.
24302 $as_executable_p "$ac_dir/$ac_word" || continue
24303 ac_cv_prog_CTAGS="$ac_prog"
24304 echo "$as_me:24304: found $ac_dir/$ac_word" >&5
24305 break
24306 done
24307
24308 fi
24309 fi
24310 CTAGS=$ac_cv_prog_CTAGS
24311 if test -n "$CTAGS"; then
24312 echo "$as_me:24312: result: $CTAGS" >&5
24313 echo "${ECHO_T}$CTAGS" >&6
24314 else
24315 echo "$as_me:24315: result: no" >&5
24316 echo "${ECHO_T}no" >&6
24317 fi
24318
24319 test -n "$CTAGS" && break
24320 done
24321
24322 for ac_prog in exetags etags
24323 do
24324 # Extract the first word of "$ac_prog", so it can be a program name with args.
24325 set dummy $ac_prog; ac_word=$2
24326 echo "$as_me:24326: checking for $ac_word" >&5
24327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24328 if test "${ac_cv_prog_ETAGS+set}" = set; then
24329 echo $ECHO_N "(cached) $ECHO_C" >&6
24330 else
24331 if test -n "$ETAGS"; then
24332 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
24333 else
24334 ac_save_IFS=$IFS; IFS=$ac_path_separator
24335 ac_dummy="$PATH"
24336 for ac_dir in $ac_dummy; do
24337 IFS=$ac_save_IFS
24338 test -z "$ac_dir" && ac_dir=.
24339 $as_executable_p "$ac_dir/$ac_word" || continue
24340 ac_cv_prog_ETAGS="$ac_prog"
24341 echo "$as_me:24341: found $ac_dir/$ac_word" >&5
24342 break
24343 done
24344
24345 fi
24346 fi
24347 ETAGS=$ac_cv_prog_ETAGS
24348 if test -n "$ETAGS"; then
24349 echo "$as_me:24349: result: $ETAGS" >&5
24350 echo "${ECHO_T}$ETAGS" >&6
24351 else
24352 echo "$as_me:24352: result: no" >&5
24353 echo "${ECHO_T}no" >&6
24354 fi
24355
24356 test -n "$ETAGS" && break
24357 done
24358
24359 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
24360 set dummy ${CTAGS:-ctags}; ac_word=$2
24361 echo "$as_me:24361: checking for $ac_word" >&5
24362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24363 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366 if test -n "$MAKE_LOWER_TAGS"; then
24367 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
24368 else
24369 ac_save_IFS=$IFS; IFS=$ac_path_separator
24370 ac_dummy="$PATH"
24371 for ac_dir in $ac_dummy; do
24372 IFS=$ac_save_IFS
24373 test -z "$ac_dir" && ac_dir=.
24374 $as_executable_p "$ac_dir/$ac_word" || continue
24375 ac_cv_prog_MAKE_LOWER_TAGS="yes"
24376 echo "$as_me:24376: found $ac_dir/$ac_word" >&5
24377 break
24378 done
24379
24380 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
24381 fi
24382 fi
24383 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
24384 if test -n "$MAKE_LOWER_TAGS"; then
24385 echo "$as_me:24385: result: $MAKE_LOWER_TAGS" >&5
24386 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
24387 else
24388 echo "$as_me:24388: result: no" >&5
24389 echo "${ECHO_T}no" >&6
24390 fi
24391
24392 if test "$cf_cv_mixedcase" = yes ; then
24393 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
24394 set dummy ${ETAGS:-etags}; ac_word=$2
24395 echo "$as_me:24395: checking for $ac_word" >&5
24396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24397 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
24398 echo $ECHO_N "(cached) $ECHO_C" >&6
24399 else
24400 if test -n "$MAKE_UPPER_TAGS"; then
24401 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
24402 else
24403 ac_save_IFS=$IFS; IFS=$ac_path_separator
24404 ac_dummy="$PATH"
24405 for ac_dir in $ac_dummy; do
24406 IFS=$ac_save_IFS
24407 test -z "$ac_dir" && ac_dir=.
24408 $as_executable_p "$ac_dir/$ac_word" || continue
24409 ac_cv_prog_MAKE_UPPER_TAGS="yes"
24410 echo "$as_me:24410: found $ac_dir/$ac_word" >&5
24411 break
24412 done
24413
24414 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
24415 fi
24416 fi
24417 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
24418 if test -n "$MAKE_UPPER_TAGS"; then
24419 echo "$as_me:24419: result: $MAKE_UPPER_TAGS" >&5
24420 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
24421 else
24422 echo "$as_me:24422: result: no" >&5
24423 echo "${ECHO_T}no" >&6
24424 fi
24425
24426 else
24427 MAKE_UPPER_TAGS=no
24428 fi
24429
24430 if test "$MAKE_UPPER_TAGS" = yes ; then
24431 MAKE_UPPER_TAGS=
24432 else
24433 MAKE_UPPER_TAGS="#"
24434 fi
24435
24436 if test "$MAKE_LOWER_TAGS" = yes ; then
24437 MAKE_LOWER_TAGS=
24438 else
24439 MAKE_LOWER_TAGS="#"
24440 fi
24441
24442 LD_RPATH_OPT=
24443 if test "x$cf_cv_enable_rpath" != xno
24444 then
24445 echo "$as_me:24445: checking for an rpath option" >&5
24446 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
24447 case "$cf_cv_system_name" in
24448 (irix*)
24449 if test "$GCC" = yes; then
24450 LD_RPATH_OPT="-Wl,-rpath,"
24451 else
24452 LD_RPATH_OPT="-rpath "
24453 fi
24454 ;;
24455 (linux*|gnu*|k*bsd*-gnu|freebsd*)
24456 LD_RPATH_OPT="-Wl,-rpath,"
24457 ;;
24458 (openbsd[2-9].*|mirbsd*)
24459 LD_RPATH_OPT="-Wl,-rpath,"
24460 ;;
24461 (dragonfly*)
24462 LD_RPATH_OPT="-rpath "
24463 ;;
24464 (netbsd*)
24465 LD_RPATH_OPT="-Wl,-rpath,"
24466 ;;
24467 (osf*|mls+*)
24468 LD_RPATH_OPT="-rpath "
24469 ;;
24470 (solaris2*)
24471 LD_RPATH_OPT="-R"
24472 ;;
24473 (*)
24474 ;;
24475 esac
24476 echo "$as_me:24476: result: $LD_RPATH_OPT" >&5
24477 echo "${ECHO_T}$LD_RPATH_OPT" >&6
24478
24479 case "x$LD_RPATH_OPT" in
24480 (x-R*)
24481 echo "$as_me:24481: checking if we need a space after rpath option" >&5
24482 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
24483 cf_save_LIBS="$LIBS"
24484
24485 cf_add_libs="$LIBS"
24486 # reverse order
24487 cf_add_0lib=
24488 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24489 # filter duplicates
24490 for cf_add_1lib in $cf_add_0lib; do
24491 for cf_add_2lib in $cf_add_libs; do
24492 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24493 cf_add_1lib=
24494 break
24495 fi
24496 done
24497 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24498 done
24499 LIBS="$cf_add_libs"
24500
24501 cat >"conftest.$ac_ext" <<_ACEOF
24502 #line 24502 "configure"
24503 #include "confdefs.h"
24504
24505 int
24506 main (void)
24507 {
24508
24509 ;
24510 return 0;
24511 }
24512 _ACEOF
24513 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24514 if { (eval echo "$as_me:24514: \"$ac_link\"") >&5
24515 (eval $ac_link) 2>&5
24516 ac_status=$?
24517 echo "$as_me:24517: \$? = $ac_status" >&5
24518 (exit "$ac_status"); } &&
24519 { ac_try='test -s "conftest$ac_exeext"'
24520 { (eval echo "$as_me:24520: \"$ac_try\"") >&5
24521 (eval $ac_try) 2>&5
24522 ac_status=$?
24523 echo "$as_me:24523: \$? = $ac_status" >&5
24524 (exit "$ac_status"); }; }; then
24525 cf_rpath_space=no
24526 else
24527 echo "$as_me: failed program was:" >&5
24528 cat "conftest.$ac_ext" >&5
24529 cf_rpath_space=yes
24530 fi
24531 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24532 LIBS="$cf_save_LIBS"
24533 echo "$as_me:24533: result: $cf_rpath_space" >&5
24534 echo "${ECHO_T}$cf_rpath_space" >&6
24535 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
24536 ;;
24537 esac
24538 fi
24539
24540 echo "$as_me:24540: checking if rpath-hack should be disabled" >&5
24541 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
24542
24543 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
24544 if test "${enable_rpath_hack+set}" = set; then
24545 enableval="$enable_rpath_hack"
24546 test "$enableval" != no && enableval=yes
24547 if test "$enableval" != "yes" ; then
24548 enable_rpath_hack=no
24549 else
24550 enable_rpath_hack=yes
24551 fi
24552 else
24553 enableval=yes
24554 enable_rpath_hack=yes
24555
24556 fi;
24557 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
24558 echo "$as_me:24558: result: $cf_disable_rpath_hack" >&5
24559 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
24560
24561 if test "$enable_rpath_hack" = yes ; then
24562
24563 echo "$as_me:24563: checking for updated LDFLAGS" >&5
24564 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
24565 if test -n "$LD_RPATH_OPT" ; then
24566 echo "$as_me:24566: result: maybe" >&5
24567 echo "${ECHO_T}maybe" >&6
24568
24569 for ac_prog in ldd
24570 do
24571 # Extract the first word of "$ac_prog", so it can be a program name with args.
24572 set dummy $ac_prog; ac_word=$2
24573 echo "$as_me:24573: checking for $ac_word" >&5
24574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24575 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578 if test -n "$cf_ldd_prog"; then
24579 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
24580 else
24581 ac_save_IFS=$IFS; IFS=$ac_path_separator
24582 ac_dummy="$PATH"
24583 for ac_dir in $ac_dummy; do
24584 IFS=$ac_save_IFS
24585 test -z "$ac_dir" && ac_dir=.
24586 $as_executable_p "$ac_dir/$ac_word" || continue
24587 ac_cv_prog_cf_ldd_prog="$ac_prog"
24588 echo "$as_me:24588: found $ac_dir/$ac_word" >&5
24589 break
24590 done
24591
24592 fi
24593 fi
24594 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
24595 if test -n "$cf_ldd_prog"; then
24596 echo "$as_me:24596: result: $cf_ldd_prog" >&5
24597 echo "${ECHO_T}$cf_ldd_prog" >&6
24598 else
24599 echo "$as_me:24599: result: no" >&5
24600 echo "${ECHO_T}no" >&6
24601 fi
24602
24603 test -n "$cf_ldd_prog" && break
24604 done
24605 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
24606
24607 cf_rpath_list="/usr/lib /lib"
24608 if test "$cf_ldd_prog" != no
24609 then
24610 cf_rpath_oops=
24611
24612 cat >"conftest.$ac_ext" <<_ACEOF
24613 #line 24613 "configure"
24614 #include "confdefs.h"
24615 #include <stdio.h>
24616 int
24617 main (void)
24618 {
24619 printf("Hello");
24620 ;
24621 return 0;
24622 }
24623 _ACEOF
24624 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24625 if { (eval echo "$as_me:24625: \"$ac_link\"") >&5
24626 (eval $ac_link) 2>&5
24627 ac_status=$?
24628 echo "$as_me:24628: \$? = $ac_status" >&5
24629 (exit "$ac_status"); } &&
24630 { ac_try='test -s "conftest$ac_exeext"'
24631 { (eval echo "$as_me:24631: \"$ac_try\"") >&5
24632 (eval $ac_try) 2>&5
24633 ac_status=$?
24634 echo "$as_me:24634: \$? = $ac_status" >&5
24635 (exit "$ac_status"); }; }; then
24636 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
24637 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
24638 else
24639 echo "$as_me: failed program was:" >&5
24640 cat "conftest.$ac_ext" >&5
24641 fi
24642 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24643
24644 # If we passed the link-test, but get a "not found" on a given library,
24645 # this could be due to inept reconfiguration of gcc to make it only
24646 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
24647 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
24648 # /usr/local libraries.
24649 if test -n "$cf_rpath_oops"
24650 then
24651 for cf_rpath_src in $cf_rpath_oops
24652 do
24653 for cf_rpath_dir in \
24654 /usr/local \
24655 /usr/pkg \
24656 /opt/sfw
24657 do
24658 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
24659 then
24660 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
24661
24662 echo "${as_me:-configure}:24662: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
24663
24664 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
24665 break
24666 fi
24667 done
24668 done
24669 fi
24670 fi
24671
24672 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
24673
24674 echo "${as_me:-configure}:24674: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
24675
24676 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
24677
24678 echo "${as_me:-configure}:24678: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
24679
24680 cf_rpath_dst=
24681 for cf_rpath_src in $LDFLAGS
24682 do
24683 case "$cf_rpath_src" in
24684 (-L*)
24685
24686 # check if this refers to a directory which we will ignore
24687 cf_rpath_skip=no
24688 if test -n "$cf_rpath_list"
24689 then
24690 for cf_rpath_item in $cf_rpath_list
24691 do
24692 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
24693 then
24694 cf_rpath_skip=yes
24695 break
24696 fi
24697 done
24698 fi
24699
24700 if test "$cf_rpath_skip" = no
24701 then
24702 # transform the option
24703 if test "$LD_RPATH_OPT" = "-R " ; then
24704 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
24705 else
24706 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
24707 fi
24708
24709 # if we have not already added this, add it now
24710 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
24711 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
24712 then
24713 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
24714
24715 echo "${as_me:-configure}:24715: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
24716
24717 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
24718 fi
24719 fi
24720 ;;
24721 esac
24722 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
24723 done
24724 LDFLAGS=$cf_rpath_dst
24725
24726 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
24727
24728 echo "${as_me:-configure}:24728: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
24729
24730 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
24731
24732 echo "${as_me:-configure}:24732: testing ...checking LIBS $LIBS ..." 1>&5
24733
24734 cf_rpath_dst=
24735 for cf_rpath_src in $LIBS
24736 do
24737 case "$cf_rpath_src" in
24738 (-L*)
24739
24740 # check if this refers to a directory which we will ignore
24741 cf_rpath_skip=no
24742 if test -n "$cf_rpath_list"
24743 then
24744 for cf_rpath_item in $cf_rpath_list
24745 do
24746 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
24747 then
24748 cf_rpath_skip=yes
24749 break
24750 fi
24751 done
24752 fi
24753
24754 if test "$cf_rpath_skip" = no
24755 then
24756 # transform the option
24757 if test "$LD_RPATH_OPT" = "-R " ; then
24758 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
24759 else
24760 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
24761 fi
24762
24763 # if we have not already added this, add it now
24764 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
24765 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
24766 then
24767 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
24768
24769 echo "${as_me:-configure}:24769: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
24770
24771 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
24772 fi
24773 fi
24774 ;;
24775 esac
24776 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
24777 done
24778 LIBS=$cf_rpath_dst
24779
24780 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
24781
24782 echo "${as_me:-configure}:24782: testing ...checked LIBS $LIBS ..." 1>&5
24783
24784 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
24785
24786 echo "${as_me:-configure}:24786: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
24787
24788 else
24789 echo "$as_me:24789: result: no" >&5
24790 echo "${ECHO_T}no" >&6
24791 fi
24792
24793 fi
24794
24795 # Force plink.sh to not trim pcre's libraries, which have the same symbol
24796 # names as the system regexp.
24797 if test "$with_pcre" != no
24798 then
24799 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'`
24800 fi
24801
24802 ### output xtermcfg.h, etc
24803 ac_config_files="$ac_config_files Makefile df-install minstall:minstall.in"
24804
24805 cat >confcache <<\_ACEOF
24806 # This file is a shell script that caches the results of configure
24807 # tests run on this system so they can be shared between configure
24808 # scripts and configure runs, see configure's option --config-cache.
24809 # It is not useful on other systems. If it contains results you don't
24810 # want to keep, you may remove or edit it.
24811 #
24812 # config.status only pays attention to the cache file if you give it
24813 # the --recheck option to rerun configure.
24814 #
24815 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24817 # following values.
24818
24819 _ACEOF
24820
24821 # The following way of writing the cache mishandles newlines in values,
24822 # but we know of no workaround that is simple, portable, and efficient.
24823 # So, don't put newlines in cache variables' values.
24824 # Ultrix sh set writes to stderr and can't be redirected directly,
24825 # and sets the high bit in the cache file unless we assign to the vars.
24826 {
24827 (set) 2>&1 |
24828 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24829 *ac_space=\ *)
24830 # `set' does not quote correctly, so add quotes (double-quote
24831 # substitution turns \\\\ into \\, and sed turns \\ into \).
24832 sed -n \
24833 "s/'/'\\\\''/g;
24834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24835 ;;
24836 *)
24837 # `set' quotes correctly as required by POSIX, so do not add quotes.
24838 sed -n \
24839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24840 ;;
24841 esac;
24842 } |
24843 sed '
24844 t clear
24845 : clear
24846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24847 t end
24848 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24849 : end' >>confcache
24850 if cmp -s $cache_file confcache; then :; else
24851 if test -w $cache_file; then
24852 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24853 cat confcache >$cache_file
24854 else
24855 echo "not updating unwritable cache $cache_file"
24856 fi
24857 fi
24858 rm -f confcache
24859
24860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24861 # Let make expand exec_prefix.
24862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24863
24864 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24865 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24866 # trailing colons and then remove the whole line if VPATH becomes empty
24867 # (actually we leave an empty line to preserve line numbers).
24868 if test "x$srcdir" = x.; then
24869 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24870 s/:*\$(srcdir):*/:/;
24871 s/:*\${srcdir}:*/:/;
24872 s/:*@srcdir@:*/:/;
24873 s/^\([^=]*=[ ]*\):*/\1/;
24874 s/:*$//;
24875 s/^[^=]*=[ ]*$//;
24876 }'
24877 fi
24878
24879 DEFS=-DHAVE_CONFIG_H
24880
24881 : "${CONFIG_STATUS=./config.status}"
24882 ac_clean_files_save=$ac_clean_files
24883 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24884 { echo "$as_me:24884: creating $CONFIG_STATUS" >&5
24885 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24886 cat >"$CONFIG_STATUS" <<_ACEOF
24887 #! $SHELL
24888 # Generated automatically by configure.
24889 # Run this file to recreate the current configuration.
24890 # Compiler output produced by configure, useful for debugging
24891 # configure, is in config.log if it exists.
24892
24893 debug=false
24894 SHELL=\${CONFIG_SHELL-$SHELL}
24895 ac_cs_invocation="\$0 \$@"
24896
24897 CLICOLOR_FORCE= GREP_OPTIONS=
24898 unset CLICOLOR_FORCE GREP_OPTIONS
24899 _ACEOF
24900
24901 cat >>"$CONFIG_STATUS" <<\_ACEOF
24902 # Be Bourne compatible
24903 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24904 emulate sh
24905 NULLCMD=:
24906 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24907 set -o posix
24908 fi
24909
24910 # Name of the executable.
24911 as_me=`echo "$0" |sed 's,.*[\\/],,'`
24912
24913 if expr a : '\(a\)' >/dev/null 2>&1; then
24914 as_expr=expr
24915 else
24916 as_expr=false
24917 fi
24918
24919 rm -f conf$$ conf$$.exe conf$$.file
24920 echo >conf$$.file
24921 if ln -s conf$$.file conf$$ 2>/dev/null; then
24922 # We could just check for DJGPP; but this test a) works b) is more generic
24923 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24924 if test -f conf$$.exe; then
24925 # Don't use ln at all; we don't have any links
24926 as_ln_s='cp -p'
24927 else
24928 as_ln_s='ln -s'
24929 fi
24930 elif ln conf$$.file conf$$ 2>/dev/null; then
24931 as_ln_s=ln
24932 else
24933 as_ln_s='cp -p'
24934 fi
24935 rm -f conf$$ conf$$.exe conf$$.file
24936
24937 as_executable_p="test -f"
24938
24939 # Support unset when possible.
24940 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24941 as_unset="unset"
24942 else
24943 as_unset="false"
24944 fi
24945
24946 # NLS nuisances.
24947 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
24948 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
24949 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
24950 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
24951 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
24952 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
24953 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
24954 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
24955
24956 # IFS
24957 # We need space, tab and new line, in precisely that order.
24958 as_nl='
24959 '
24960 IFS=" $as_nl"
24961
24962 # CDPATH.
24963 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
24964
24965 exec 6>&1
24966
24967 _ACEOF
24968
24969 # Files that config.status was made for.
24970 if test -n "$ac_config_files"; then
24971 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
24972 fi
24973
24974 if test -n "$ac_config_headers"; then
24975 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
24976 fi
24977
24978 if test -n "$ac_config_links"; then
24979 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
24980 fi
24981
24982 if test -n "$ac_config_commands"; then
24983 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
24984 fi
24985
24986 cat >>"$CONFIG_STATUS" <<\EOF
24987
24988 ac_cs_usage="\
24989 \`$as_me' instantiates files from templates according to the
24990 current configuration.
24991
24992 Usage: $0 [OPTIONS] [FILE]...
24993
24994 -h, --help print this help, then exit
24995 -V, --version print version number, then exit
24996 -d, --debug don't remove temporary files
24997 --recheck update $as_me by reconfiguring in the same conditions
24998 --file=FILE[:TEMPLATE]
24999 instantiate the configuration file FILE
25000 --header=FILE[:TEMPLATE]
25001 instantiate the configuration header FILE
25002
25003 Configuration files:
25004 $config_files
25005
25006 Configuration headers:
25007 $config_headers
25008
25009 Report bugs to <dickey@invisible-island.net>."
25010 EOF
25011
25012 cat >>"$CONFIG_STATUS" <<EOF
25013 ac_cs_version="\\
25014 config.status
25015 configured by $0, generated by GNU Autoconf 2.52.20210509,
25016 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25017
25018 Copyright 2003-2020,2021 Thomas E. Dickey
25019 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25020 Free Software Foundation, Inc.
25021 This config.status script is free software; the Free Software Foundation
25022 gives unlimited permission to copy, distribute and modify it."
25023 srcdir="$srcdir"
25024 INSTALL="$INSTALL"
25025 EOF
25026
25027 cat >>"$CONFIG_STATUS" <<\EOF
25028 # If no file are specified by the user, then we need to provide default
25029 # value. By we need to know if files were specified by the user.
25030 ac_need_defaults=:
25031 while test $# != 0
25032 do
25033 case $1 in
25034 --*=*)
25035 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25036 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25037 shift
25038 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25039 shift
25040 ;;
25041 -*);;
25042 *) # This is not an option, so the user has probably given explicit
25043 # arguments.
25044 ac_need_defaults=false;;
25045 esac
25046
25047 case $1 in
25048 # Handling of the options.
25049 EOF
25050 cat >>"$CONFIG_STATUS" <<EOF
25051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25052 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25053 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25054 EOF
25055 cat >>"$CONFIG_STATUS" <<\EOF
25056 --version | --vers* | -V )
25057 echo "$ac_cs_version"; exit 0 ;;
25058 --he | --h)
25059 # Conflict between --help and --header
25060 { { echo "$as_me:25060: error: ambiguous option: $1
25061 Try \`$0 --help' for more information." >&5
25062 echo "$as_me: error: ambiguous option: $1
25063 Try \`$0 --help' for more information." >&2;}
25064 { (exit 1); exit 1; }; };;
25065 --help | --hel | -h )
25066 echo "$ac_cs_usage"; exit 0 ;;
25067 --debug | --d* | -d )
25068 debug=: ;;
25069 --file | --fil | --fi | --f )
25070 shift
25071 CONFIG_FILES="$CONFIG_FILES $1"
25072 ac_need_defaults=false;;
25073 --header | --heade | --head | --hea )
25074 shift
25075 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25076 ac_need_defaults=false;;
25077
25078 # This is an error.
25079 -*) { { echo "$as_me:25079: error: unrecognized option: $1
25080 Try \`$0 --help' for more information." >&5
25081 echo "$as_me: error: unrecognized option: $1
25082 Try \`$0 --help' for more information." >&2;}
25083 { (exit 1); exit 1; }; } ;;
25084
25085 *) ac_config_targets="$ac_config_targets $1" ;;
25086
25087 esac
25088 shift
25089 done
25090
25091 exec 5>>config.log
25092 cat >&5 << _ACEOF
25093
25094 ## ----------------------- ##
25095 ## Running config.status. ##
25096 ## ----------------------- ##
25097
25098 This file was extended by $as_me 2.52.20210509, executed with
25099 CONFIG_FILES = $CONFIG_FILES
25100 CONFIG_HEADERS = $CONFIG_HEADERS
25101 CONFIG_LINKS = $CONFIG_LINKS
25102 CONFIG_COMMANDS = $CONFIG_COMMANDS
25103 > "$ac_cs_invocation"
25104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25105
25106 _ACEOF
25107 EOF
25108
25109 cat >>"$CONFIG_STATUS" <<\EOF
25110 for ac_config_target in $ac_config_targets
25111 do
25112 case "$ac_config_target" in
25113 # Handling of arguments.
25114 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25115 "df-install" ) CONFIG_FILES="$CONFIG_FILES df-install" ;;
25116 "minstall" ) CONFIG_FILES="$CONFIG_FILES minstall:minstall.in" ;;
25117 "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
25118 *) { { echo "$as_me:25118: error: invalid argument: $ac_config_target" >&5
25119 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25120 { (exit 1); exit 1; }; };;
25121 esac
25122 done
25123
25124 # If the user did not use the arguments to specify the items to instantiate,
25125 # then the envvar interface is used. Set only those that are not.
25126 # We use the long form for the default assignment because of an extremely
25127 # bizarre bug on SunOS 4.1.3.
25128 if "$ac_need_defaults"; then
25129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25131 fi
25132
25133 # Create a temporary directory, and hook for its removal unless debugging.
25134 $debug ||
25135 {
25136 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25137 trap '{ (exit 1); exit 1; }' 1 2 13 15
25138 }
25139
25140 # Create a (secure) tmp directory for tmp files.
25141 : ${TMPDIR=/tmp}
25142 {
25143 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25144 test -n "$tmp" && test -d "$tmp"
25145 } ||
25146 {
25147 tmp=$TMPDIR/cs$$-$RANDOM
25148 (umask 077 && mkdir $tmp)
25149 } ||
25150 {
25151 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25152 { (exit 1); exit 1; }
25153 }
25154
25155 EOF
25156
25157 cat >>"$CONFIG_STATUS" <<EOF
25158
25159 #
25160 # CONFIG_FILES section.
25161 #
25162
25163 # No need to generate the scripts if there are no CONFIG_FILES.
25164 # This happens for instance when ./config.status config.h
25165 if test -n "\$CONFIG_FILES"; then
25166 # Protect against being on the right side of a sed subst in config.status.
25167 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25168 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25169 s,@SHELL@,$SHELL,;t t
25170 s,@exec_prefix@,$exec_prefix,;t t
25171 s,@prefix@,$prefix,;t t
25172 s,@program_transform_name@,$program_transform_name,;t t
25173 s,@bindir@,$bindir,;t t
25174 s,@sbindir@,$sbindir,;t t
25175 s,@libexecdir@,$libexecdir,;t t
25176 s,@datarootdir@,$datarootdir,;t t
25177 s,@datadir@,$datadir,;t t
25178 s,@sysconfdir@,$sysconfdir,;t t
25179 s,@sharedstatedir@,$sharedstatedir,;t t
25180 s,@localstatedir@,$localstatedir,;t t
25181 s,@runstatedir@,$runstatedir,;t t
25182 s,@libdir@,$libdir,;t t
25183 s,@includedir@,$includedir,;t t
25184 s,@oldincludedir@,$oldincludedir,;t t
25185 s,@infodir@,$infodir,;t t
25186 s,@mandir@,$mandir,;t t
25187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25192 s,@build_alias@,$build_alias,;t t
25193 s,@host_alias@,$host_alias,;t t
25194 s,@target_alias@,$target_alias,;t t
25195 s,@ECHO_C@,$ECHO_C,;t t
25196 s,@ECHO_N@,$ECHO_N,;t t
25197 s,@ECHO_T@,$ECHO_T,;t t
25198 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25199 s,@DEFS@,$DEFS,;t t
25200 s,@LIBS@,$LIBS,;t t
25201 s,@build@,$build,;t t
25202 s,@build_cpu@,$build_cpu,;t t
25203 s,@build_vendor@,$build_vendor,;t t
25204 s,@build_os@,$build_os,;t t
25205 s,@host@,$host,;t t
25206 s,@host_cpu@,$host_cpu,;t t
25207 s,@host_vendor@,$host_vendor,;t t
25208 s,@host_os@,$host_os,;t t
25209 s,@CC@,$CC,;t t
25210 s,@CFLAGS@,$CFLAGS,;t t
25211 s,@LDFLAGS@,$LDFLAGS,;t t
25212 s,@CPPFLAGS@,$CPPFLAGS,;t t
25213 s,@ac_ct_CC@,$ac_ct_CC,;t t
25214 s,@EXEEXT@,$EXEEXT,;t t
25215 s,@OBJEXT@,$OBJEXT,;t t
25216 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
25217 s,@CPP@,$CPP,;t t
25218 s,@GREP@,$GREP,;t t
25219 s,@EGREP@,$EGREP,;t t
25220 s,@AWK@,$AWK,;t t
25221 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25222 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25223 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25224 s,@LN_S@,$LN_S,;t t
25225 s,@LINT@,$LINT,;t t
25226 s,@LINT_OPTS@,$LINT_OPTS,;t t
25227 s,@APP_CLASS@,$APP_CLASS,;t t
25228 s,@APPSDIR@,$APPSDIR,;t t
25229 s,@no_appsdir@,$no_appsdir,;t t
25230 s,@ICON_NAME@,$ICON_NAME,;t t
25231 s,@ICON_SYMLINK@,$ICON_SYMLINK,;t t
25232 s,@PIXMAPDIR@,$PIXMAPDIR,;t t
25233 s,@no_pixmapdir@,$no_pixmapdir,;t t
25234 s,@ICONDIR@,$ICONDIR,;t t
25235 s,@no_icondir@,$no_icondir,;t t
25236 s,@ICON_FORMAT@,$ICON_FORMAT,;t t
25237 s,@ICON_THEME@,$ICON_THEME,;t t
25238 s,@ICON_LIST@,$ICON_LIST,;t t
25239 s,@desktop_utils@,$desktop_utils,;t t
25240 s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
25241 s,@DESKTOP_CATEGORY@,$DESKTOP_CATEGORY,;t t
25242 s,@XTERM_PATH@,$XTERM_PATH,;t t
25243 s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
25244 s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
25245 s,@X_CFLAGS@,$X_CFLAGS,;t t
25246 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
25247 s,@X_LIBS@,$X_LIBS,;t t
25248 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
25249 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25250 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
25251 s,@ICON_SUFFIX@,$ICON_SUFFIX,;t t
25252 s,@IMAKE@,$IMAKE,;t t
25253 s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
25254 s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
25255 s,@GROFF_PATH@,$GROFF_PATH,;t t
25256 s,@NROFF_PATH@,$NROFF_PATH,;t t
25257 s,@TBL_PATH@,$TBL_PATH,;t t
25258 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
25259 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
25260 s,@FGREP@,$FGREP,;t t
25261 s,@cf_man2html@,$cf_man2html,;t t
25262 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
25263 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
25264 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
25265 s,@default_termid@,$default_termid,;t t
25266 s,@default_TERM@,$default_TERM,;t t
25267 s,@backarrow_is_bs@,$backarrow_is_bs,;t t
25268 s,@backarrow_is_erase@,$backarrow_is_erase,;t t
25269 s,@delete_is_del@,$delete_is_del,;t t
25270 s,@initial_erase@,$initial_erase,;t t
25271 s,@alt_sends_esc@,$alt_sends_esc,;t t
25272 s,@meta_sends_esc@,$meta_sends_esc,;t t
25273 s,@cf_tic_prog@,$cf_tic_prog,;t t
25274 s,@no_ticprog@,$no_ticprog,;t t
25275 s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
25276 s,@SET_TERMINFO@,$SET_TERMINFO,;t t
25277 s,@double_buffer@,$double_buffer,;t t
25278 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
25279 s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
25280 s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
25281 s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
25282 s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
25283 s,@LUIT@,$LUIT,;t t
25284 s,@ECHO_LT@,$ECHO_LT,;t t
25285 s,@ECHO_LD@,$ECHO_LD,;t t
25286 s,@RULE_CC@,$RULE_CC,;t t
25287 s,@SHOW_CC@,$SHOW_CC,;t t
25288 s,@ECHO_CC@,$ECHO_CC,;t t
25289 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
25290 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
25291 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
25292 s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
25293 s,@EXTRAHDRS@,$EXTRAHDRS,;t t
25294 s,@EXTRASRCS@,$EXTRASRCS,;t t
25295 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
25296 s,@MAY_SETUID@,$MAY_SETUID,;t t
25297 s,@NOT_SETUID@,$NOT_SETUID,;t t
25298 s,@CTAGS@,$CTAGS,;t t
25299 s,@ETAGS@,$ETAGS,;t t
25300 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
25301 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
25302 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
25303 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
25304 CEOF
25305
25306 EOF
25307
25308 cat >>"$CONFIG_STATUS" <<\EOF
25309 # Split the substitutions into bite-sized pieces for seds with
25310 # small command number limits, like on Digital OSF/1 and HP-UX.
25311 ac_max_sed_lines=48
25312 ac_sed_frag=1 # Number of current file.
25313 ac_beg=1 # First line for current file.
25314 ac_end=$ac_max_sed_lines # Line after last line for current file.
25315 ac_more_lines=:
25316 ac_sed_cmds=
25317 while "$ac_more_lines"; do
25318 if test "$ac_beg" -gt 1; then
25319 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25320 else
25321 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25322 fi
25323 if test ! -s $tmp/subs.frag; then
25324 ac_more_lines=false
25325 else
25326 # The purpose of the label and of the branching condition is to
25327 # speed up the sed processing (if there are no `@' at all, there
25328 # is no need to browse any of the substitutions).
25329 # These are the two extra sed commands mentioned above.
25330 (echo ':t
25331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25332 # It is possible to make a multiline substitution using escaped newlines.
25333 # Ensure that we do not split the substitution between script fragments.
25334 ac_BEG=$ac_end
25335 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
25336 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
25337 if test -s $tmp/subs.next; then
25338 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
25339 if test ! -s $tmp/subs.edit; then
25340 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
25341 if test ! -s $tmp/subs.edit; then
25342 if test "$ac_beg" -gt 1; then
25343 ac_end=`expr "$ac_end" - 1`
25344 continue
25345 fi
25346 fi
25347 fi
25348 fi
25349
25350 if test -z "$ac_sed_cmds"; then
25351 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25352 else
25353 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25354 fi
25355 ac_sed_frag=`expr "$ac_sed_frag" + 1`
25356 ac_beg=$ac_end
25357 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
25358 fi
25359 done
25360 if test -z "$ac_sed_cmds"; then
25361 ac_sed_cmds=cat
25362 fi
25363 fi # test -n "$CONFIG_FILES"
25364
25365 EOF
25366 cat >>"$CONFIG_STATUS" <<\EOF
25367 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25369 case "$ac_file" in
25370 - | *:- | *:-:* ) # input from stdin
25371 cat >$tmp/stdin
25372 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25374 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25375 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25376 * ) ac_file_in=$ac_file.in ;;
25377 esac
25378
25379 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25380 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25381 X"$ac_file" : 'X\(//\)[^/]' \| \
25382 X"$ac_file" : 'X\(//\)$' \| \
25383 X"$ac_file" : 'X\(/\)' \| \
25384 . : '\(.\)' 2>/dev/null ||
25385 echo X"$ac_file" |
25386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25388 /^X\(\/\/\)$/{ s//\1/; q; }
25389 /^X\(\/\).*/{ s//\1/; q; }
25390 s/.*/./; q'`
25391 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25392 { case "$ac_dir" in
25393 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25394 *) as_incr_dir=.;;
25395 esac
25396 as_dummy="$ac_dir"
25397 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25398 case $as_mkdir_dir in
25399 # Skip DOS drivespec
25400 ?:) as_incr_dir=$as_mkdir_dir ;;
25401 *)
25402 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25403 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
25404 ;;
25405 esac
25406 done; }
25407
25408 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
25409 # A "../" for each directory in $ac_dir_suffix.
25410 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
25411 else
25412 ac_dir_suffix= ac_dots=
25413 fi
25414
25415 case "$srcdir" in
25416 .) ac_srcdir=.
25417 if test -z "$ac_dots"; then
25418 ac_top_srcdir=.
25419 else
25420 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
25421 fi ;;
25422 [\\/]* | ?:[\\/]* )
25423 ac_srcdir="$srcdir$ac_dir_suffix";
25424 ac_top_srcdir="$srcdir" ;;
25425 *) # Relative path.
25426 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
25427 ac_top_srcdir="$ac_dots$srcdir" ;;
25428 esac
25429
25430 case $INSTALL in
25431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25432 *) ac_INSTALL=$ac_dots$INSTALL ;;
25433 esac
25434
25435 if test x"$ac_file" != x-; then
25436 { echo "$as_me:25436: creating $ac_file" >&5
25437 echo "$as_me: creating $ac_file" >&6;}
25438 rm -f "$ac_file"
25439 fi
25440 # Let's still pretend it is `configure' which instantiates (i.e., don't
25441 # use $as_me), people would be surprised to read:
25442 # /* config.h. Generated automatically by config.status. */
25443 configure_input="Generated automatically from `echo $ac_file_in |
25444 sed 's,.*/,,'` by configure."
25445
25446 # First look for the input files in the build tree, otherwise in the
25447 # src tree.
25448 ac_file_inputs=`IFS=:
25449 for f in $ac_file_in; do
25450 case $f in
25451 -) echo $tmp/stdin ;;
25452 [\\/$]*)
25453 # Absolute (can't be DOS-style, as IFS=:)
25454 test -f "$f" || { { echo "$as_me:25454: error: cannot find input file: $f" >&5
25455 echo "$as_me: error: cannot find input file: $f" >&2;}
25456 { (exit 1); exit 1; }; }
25457 echo $f;;
25458 *) # Relative
25459 if test -f "$f"; then
25460 # Build tree
25461 echo $f
25462 elif test -f "$srcdir/$f"; then
25463 # Source tree
25464 echo "$srcdir/$f"
25465 else
25466 # /dev/null tree
25467 { { echo "$as_me:25467: error: cannot find input file: $f" >&5
25468 echo "$as_me: error: cannot find input file: $f" >&2;}
25469 { (exit 1); exit 1; }; }
25470 fi;;
25471 esac
25472 done` || { (exit 1); exit 1; }
25473 EOF
25474 cat >>"$CONFIG_STATUS" <<\EOF
25475 ac_warn_datarootdir=no
25476 if test x"$ac_file" != x-; then
25477 for ac_item in $ac_file_inputs
25478 do
25479 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
25480 if test -n "$ac_seen"; then
25481 ac_used=`grep '@datarootdir@' "$ac_item"`
25482 if test -z "$ac_used"; then
25483 { echo "$as_me:25483: WARNING: datarootdir was used implicitly but not set:
25484 $ac_seen" >&5
25485 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
25486 $ac_seen" >&2;}
25487 ac_warn_datarootdir=yes
25488 fi
25489 fi
25490 ac_seen=`grep '${datarootdir}' "$ac_item"`
25491 if test -n "$ac_seen"; then
25492 { echo "$as_me:25492: WARNING: datarootdir was used explicitly but not set:
25493 $ac_seen" >&5
25494 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
25495 $ac_seen" >&2;}
25496 ac_warn_datarootdir=yes
25497 fi
25498 done
25499 fi
25500
25501 if test "x$ac_warn_datarootdir" = xyes; then
25502 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
25503 fi
25504
25505 EOF
25506 cat >>"$CONFIG_STATUS" <<EOF
25507 sed "$ac_vpsub
25508 $extrasub
25509 EOF
25510 cat >>"$CONFIG_STATUS" <<\EOF
25511 :t
25512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25513 s,@configure_input@,$configure_input,;t t
25514 s,@srcdir@,$ac_srcdir,;t t
25515 s,@top_srcdir@,$ac_top_srcdir,;t t
25516 s,@INSTALL@,$ac_INSTALL,;t t
25517 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25518 rm -f $tmp/stdin
25519 if test x"$ac_file" != x-; then
25520 cp "$tmp/out" "$ac_file"
25521
25522 for ac_name in prefix exec_prefix datarootdir
25523 do
25524 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
25525 if test -n "$ac_seen"; then
25526 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
25527 if test -z "$ac_init"; then
25528 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
25529 { echo "$as_me:25529: WARNING: Variable $ac_name is used but was not set:
25530 $ac_seen" >&5
25531 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
25532 $ac_seen" >&2;}
25533 fi
25534 fi
25535 done
25536 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
25537 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
25538 if test -s $tmp/out; then
25539 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
25540 { echo "$as_me:25540: WARNING: Some variables may not be substituted:
25541 $ac_seen" >&5
25542 echo "$as_me: WARNING: Some variables may not be substituted:
25543 $ac_seen" >&2;}
25544 fi
25545 else
25546 cat $tmp/out
25547 fi
25548 rm -f $tmp/out
25549
25550 done
25551 EOF
25552 cat >>"$CONFIG_STATUS" <<\EOF
25553
25554 #
25555 # CONFIG_HEADER section.
25556 #
25557
25558 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25559 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25560 #
25561 # ac_d sets the value in "#define NAME VALUE" lines.
25562 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25563 ac_dB='[ ].*$,\1#\2'
25564 ac_dC=' '
25565 ac_dD=',;t'
25566 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25567 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25568 ac_iB='\([ ]\),\1#\2define\3'
25569 ac_iC=' '
25570 ac_iD='\4,;t'
25571 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25572 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25573 ac_uB='$,\1#\2define\3'
25574 ac_uC=' '
25575 ac_uD=',;t'
25576
25577 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25579 case "$ac_file" in
25580 - | *:- | *:-:* ) # input from stdin
25581 cat >$tmp/stdin
25582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25586 * ) ac_file_in=$ac_file.in ;;
25587 esac
25588
25589 test x"$ac_file" != x- && { echo "$as_me:25589: creating $ac_file" >&5
25590 echo "$as_me: creating $ac_file" >&6;}
25591
25592 # First look for the input files in the build tree, otherwise in the
25593 # src tree.
25594 ac_file_inputs=`IFS=:
25595 for f in $ac_file_in; do
25596 case $f in
25597 -) echo $tmp/stdin ;;
25598 [\\/$]*)
25599 # Absolute (can't be DOS-style, as IFS=:)
25600 test -f "$f" || { { echo "$as_me:25600: error: cannot find input file: $f" >&5
25601 echo "$as_me: error: cannot find input file: $f" >&2;}
25602 { (exit 1); exit 1; }; }
25603 echo $f;;
25604 *) # Relative
25605 if test -f "$f"; then
25606 # Build tree
25607 echo $f
25608 elif test -f "$srcdir/$f"; then
25609 # Source tree
25610 echo "$srcdir/$f"
25611 else
25612 # /dev/null tree
25613 { { echo "$as_me:25613: error: cannot find input file: $f" >&5
25614 echo "$as_me: error: cannot find input file: $f" >&2;}
25615 { (exit 1); exit 1; }; }
25616 fi;;
25617 esac
25618 done` || { (exit 1); exit 1; }
25619 # Remove the trailing spaces.
25620 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25621
25622 EOF
25623
25624 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25625 # `conftest.undefs', that substitutes the proper values into
25626 # config.h.in to produce config.h. The first handles `#define'
25627 # templates, and the second `#undef' templates.
25628 # And first: Protect against being on the right side of a sed subst in
25629 # config.status. Protect against being in an unquoted here document
25630 # in config.status.
25631 rm -f conftest.defines conftest.undefs
25632 # Using a here document instead of a string reduces the quoting nightmare.
25633 # Putting comments in sed scripts is not portable.
25634 #
25635 # `end' is used to avoid that the second main sed command (meant for
25636 # 0-ary CPP macros) applies to n-ary macro definitions.
25637 # See the Autoconf documentation for `clear'.
25638 cat >confdef2sed.sed <<\EOF
25639 s/[\\&,]/\\&/g
25640 s,[\\$`],\\&,g
25641 t clear
25642 : clear
25643 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
25644 t end
25645 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25646 : end
25647 EOF
25648 # If some macros were called several times there might be several times
25649 # the same #defines, which is useless. Nevertheless, we may not want to
25650 # sort them, since we want the *last* AC-DEFINE to be honored.
25651 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25652 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25653 sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
25654 rm -f confdef2sed.sed
25655
25656 # This sed command replaces #undef with comments. This is necessary, for
25657 # example, in the case of _POSIX_SOURCE, which is predefined and required
25658 # on some systems where configure will not decide to define it.
25659 cat >>conftest.undefs <<\EOF
25660 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25661 EOF
25662
25663 # Break up conftest.defines because some shells have a limit on the size
25664 # of here documents, and old seds have small limits too (100 cmds).
25665 echo ' # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS"
25666 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>"$CONFIG_STATUS"
25667 echo ' # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS"
25668 echo ' :' >>"$CONFIG_STATUS"
25669 rm -f conftest.tail
25670 while grep . conftest.defines >/dev/null
25671 do
25672 # Write a limited-size here document to $tmp/defines.sed.
25673 echo ' cat >$tmp/defines.sed <<CEOF' >>"$CONFIG_STATUS"
25674 # Speed up: don't consider the non `#define' lines.
25675 echo '/^[ ]*#[ ]*define/!b' >>"$CONFIG_STATUS"
25676 # Work around the forget-to-reset-the-flag bug.
25677 echo 't clr' >>"$CONFIG_STATUS"
25678 echo ': clr' >>"$CONFIG_STATUS"
25679 sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS"
25680 echo 'CEOF
25681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25682 rm -f $tmp/in
25683 mv $tmp/out $tmp/in
25684 ' >>"$CONFIG_STATUS"
25685 sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail
25686 rm -f conftest.defines
25687 mv conftest.tail conftest.defines
25688 done
25689 rm -f conftest.defines
25690 echo ' fi # egrep' >>"$CONFIG_STATUS"
25691 echo >>"$CONFIG_STATUS"
25692
25693 # Break up conftest.undefs because some shells have a limit on the size
25694 # of here documents, and old seds have small limits too (100 cmds).
25695 echo ' # Handle all the #undef templates' >>"$CONFIG_STATUS"
25696 rm -f conftest.tail
25697 while grep . conftest.undefs >/dev/null
25698 do
25699 # Write a limited-size here document to $tmp/undefs.sed.
25700 echo ' cat >$tmp/undefs.sed <<CEOF' >>"$CONFIG_STATUS"
25701 # Speed up: don't consider the non `#undef'
25702 echo '/^[ ]*#[ ]*undef/!b' >>"$CONFIG_STATUS"
25703 # Work around the forget-to-reset-the-flag bug.
25704 echo 't clr' >>"$CONFIG_STATUS"
25705 echo ': clr' >>"$CONFIG_STATUS"
25706 sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS"
25707 echo 'CEOF
25708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25709 rm -f $tmp/in
25710 mv $tmp/out $tmp/in
25711 ' >>"$CONFIG_STATUS"
25712 sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail
25713 rm -f conftest.undefs
25714 mv conftest.tail conftest.undefs
25715 done
25716 rm -f conftest.undefs
25717
25718 cat >>"$CONFIG_STATUS" <<\EOF
25719 # Let's still pretend it is `configure' which instantiates (i.e., don't
25720 # use $as_me), people would be surprised to read:
25721 # /* config.h. Generated automatically by config.status. */
25722 if test x"$ac_file" = x-; then
25723 echo "/* Generated automatically by configure. */" >$tmp/config.h
25724 else
25725 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
25726 fi
25727 cat $tmp/in >>$tmp/config.h
25728 rm -f $tmp/in
25729 if test x"$ac_file" != x-; then
25730 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
25731 { echo "$as_me:25731: $ac_file is unchanged" >&5
25732 echo "$as_me: $ac_file is unchanged" >&6;}
25733 else
25734 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25735 X"$ac_file" : 'X\(//\)[^/]' \| \
25736 X"$ac_file" : 'X\(//\)$' \| \
25737 X"$ac_file" : 'X\(/\)' \| \
25738 . : '\(.\)' 2>/dev/null ||
25739 echo X"$ac_file" |
25740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25742 /^X\(\/\/\)$/{ s//\1/; q; }
25743 /^X\(\/\).*/{ s//\1/; q; }
25744 s/.*/./; q'`
25745 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25746 { case "$ac_dir" in
25747 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25748 *) as_incr_dir=.;;
25749 esac
25750 as_dummy="$ac_dir"
25751 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25752 case $as_mkdir_dir in
25753 # Skip DOS drivespec
25754 ?:) as_incr_dir=$as_mkdir_dir ;;
25755 *)
25756 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25757 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
25758 ;;
25759 esac
25760 done; }
25761
25762 fi
25763 rm -f "$ac_file"
25764 mv "$tmp/config.h" "$ac_file"
25765 fi
25766 else
25767 cat $tmp/config.h
25768 rm -f $tmp/config.h
25769 fi
25770 done
25771 EOF
25772
25773 cat >>"$CONFIG_STATUS" <<\EOF
25774
25775 { (exit 0); exit 0; }
25776 EOF
25777 chmod +x "$CONFIG_STATUS"
25778 ac_clean_files=$ac_clean_files_save
25779
25780 # configure is writing to config.log, and then calls config.status.
25781 # config.status does its own redirection, appending to config.log.
25782 # Unfortunately, on DOS this fails, as config.log is still kept open
25783 # by configure, so config.status won't be able to write to it; its
25784 # output is simply discarded. So we exec the FD to /dev/null,
25785 # effectively closing config.log, so it can be properly (re)opened and
25786 # appended to by config.status. When coming back to configure, we
25787 # need to make the FD available again.
25788 if test "$no_create" != yes; then
25789 ac_cs_success=:
25790 exec 5>/dev/null
25791 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
25792 exec 5>>config.log
25793 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25794 # would make configure fail if this is the last instruction.
25795 "$ac_cs_success" || { (exit 1); exit 1; }
25796 fi
25797
25798