configure revision 1.1.1.2 1 1.1 mrg #! /bin/sh
2 1.1 mrg # Guess values for system-dependent variables and create Makefiles.
3 1.1.1.2 christos # Generated by Autoconf 2.52.20081225.
4 1.1 mrg #
5 1.1 mrg # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 1.1 mrg # Free Software Foundation, Inc.
7 1.1 mrg # This configure script is free software; the Free Software Foundation
8 1.1 mrg # gives unlimited permission to copy, distribute and modify it.
9 1.1 mrg
10 1.1 mrg # Avoid depending upon Character Ranges.
11 1.1 mrg as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 1.1 mrg as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 1.1 mrg as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 1.1 mrg as_cr_digits='0123456789'
15 1.1 mrg as_cr_alnum=$as_cr_Letters$as_cr_digits
16 1.1 mrg
17 1.1 mrg # Sed expression to map a string onto a valid variable name.
18 1.1 mrg as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19 1.1 mrg
20 1.1 mrg # Sed expression to map a string onto a valid CPP name.
21 1.1 mrg as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22 1.1 mrg
23 1.1 mrg # Be Bourne compatible
24 1.1 mrg if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 1.1 mrg emulate sh
26 1.1 mrg NULLCMD=:
27 1.1 mrg elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 1.1 mrg set -o posix
29 1.1 mrg fi
30 1.1 mrg
31 1.1 mrg # Name of the executable.
32 1.1 mrg as_me=`echo "$0" |sed 's,.*[\\/],,'`
33 1.1 mrg
34 1.1 mrg if expr a : '\(a\)' >/dev/null 2>&1; then
35 1.1 mrg as_expr=expr
36 1.1 mrg else
37 1.1 mrg as_expr=false
38 1.1 mrg fi
39 1.1 mrg
40 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
41 1.1 mrg echo >conf$$.file
42 1.1 mrg if ln -s conf$$.file conf$$ 2>/dev/null; then
43 1.1 mrg # We could just check for DJGPP; but this test a) works b) is more generic
44 1.1 mrg # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 1.1 mrg if test -f conf$$.exe; then
46 1.1 mrg # Don't use ln at all; we don't have any links
47 1.1 mrg as_ln_s='cp -p'
48 1.1 mrg else
49 1.1 mrg as_ln_s='ln -s'
50 1.1 mrg fi
51 1.1 mrg elif ln conf$$.file conf$$ 2>/dev/null; then
52 1.1 mrg as_ln_s=ln
53 1.1 mrg else
54 1.1 mrg as_ln_s='cp -p'
55 1.1 mrg fi
56 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
57 1.1 mrg
58 1.1 mrg as_executable_p="test -f"
59 1.1 mrg
60 1.1 mrg # Support unset when possible.
61 1.1 mrg if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 1.1 mrg as_unset=unset
63 1.1 mrg else
64 1.1 mrg as_unset=false
65 1.1 mrg fi
66 1.1 mrg
67 1.1 mrg # NLS nuisances.
68 1.1 mrg $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 1.1 mrg $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 1.1 mrg $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 1.1 mrg $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 1.1 mrg $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 1.1 mrg $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 1.1 mrg $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 1.1 mrg $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76 1.1 mrg
77 1.1 mrg # IFS
78 1.1 mrg # We need space, tab and new line, in precisely that order.
79 1.1 mrg as_nl='
80 1.1 mrg '
81 1.1 mrg IFS=" $as_nl"
82 1.1 mrg
83 1.1 mrg # CDPATH.
84 1.1 mrg $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85 1.1 mrg
86 1.1 mrg # Name of the host.
87 1.1 mrg # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 1.1 mrg # so uname gets run too.
89 1.1 mrg ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90 1.1 mrg
91 1.1 mrg exec 6>&1
92 1.1 mrg
93 1.1 mrg #
94 1.1 mrg # Initializations.
95 1.1 mrg #
96 1.1 mrg ac_default_prefix=/usr/local
97 1.1 mrg cross_compiling=no
98 1.1 mrg subdirs=
99 1.1 mrg MFLAGS= MAKEFLAGS=
100 1.1 mrg SHELL=${CONFIG_SHELL-/bin/sh}
101 1.1 mrg
102 1.1 mrg # Maximum number of lines to put in a shell here document.
103 1.1 mrg # This variable seems obsolete. It should probably be removed, and
104 1.1 mrg # only ac_max_sed_lines should be used.
105 1.1 mrg : ${ac_max_here_lines=38}
106 1.1 mrg
107 1.1 mrg ac_unique_file="charproc.c"
108 1.1 mrg # Factoring default headers for most tests.
109 1.1 mrg ac_includes_default="\
110 1.1 mrg #include <stdio.h>
111 1.1 mrg #if HAVE_SYS_TYPES_H
112 1.1 mrg # include <sys/types.h>
113 1.1 mrg #endif
114 1.1 mrg #if HAVE_SYS_STAT_H
115 1.1 mrg # include <sys/stat.h>
116 1.1 mrg #endif
117 1.1 mrg #if STDC_HEADERS
118 1.1 mrg # include <stdlib.h>
119 1.1 mrg # include <stddef.h>
120 1.1 mrg #else
121 1.1 mrg # if HAVE_STDLIB_H
122 1.1 mrg # include <stdlib.h>
123 1.1 mrg # endif
124 1.1 mrg #endif
125 1.1 mrg #if HAVE_STRING_H
126 1.1 mrg # if !STDC_HEADERS && HAVE_MEMORY_H
127 1.1 mrg # include <memory.h>
128 1.1 mrg # endif
129 1.1 mrg # include <string.h>
130 1.1 mrg #endif
131 1.1 mrg #if HAVE_STRINGS_H
132 1.1 mrg # include <strings.h>
133 1.1 mrg #endif
134 1.1 mrg #if HAVE_INTTYPES_H
135 1.1 mrg # include <inttypes.h>
136 1.1 mrg #else
137 1.1 mrg # if HAVE_STDINT_H
138 1.1 mrg # include <stdint.h>
139 1.1 mrg # endif
140 1.1 mrg #endif
141 1.1 mrg #if HAVE_UNISTD_H
142 1.1 mrg # include <unistd.h>
143 1.1 mrg #endif"
144 1.1 mrg
145 1.1 mrg # Initialize some variables set by options.
146 1.1 mrg ac_init_help=
147 1.1 mrg ac_init_version=false
148 1.1 mrg # The variables have the same names as the options, with
149 1.1 mrg # dashes changed to underlines.
150 1.1 mrg cache_file=/dev/null
151 1.1 mrg exec_prefix=NONE
152 1.1 mrg no_create=
153 1.1 mrg no_recursion=
154 1.1 mrg prefix=NONE
155 1.1 mrg program_prefix=NONE
156 1.1 mrg program_suffix=NONE
157 1.1 mrg program_transform_name=s,x,x,
158 1.1 mrg silent=
159 1.1 mrg site=
160 1.1 mrg srcdir=
161 1.1 mrg verbose=
162 1.1 mrg x_includes=NONE
163 1.1 mrg x_libraries=NONE
164 1.1 mrg
165 1.1 mrg # Installation directory options.
166 1.1 mrg # These are left unexpanded so users can "make install exec_prefix=/foo"
167 1.1 mrg # and all the variables that are supposed to be based on exec_prefix
168 1.1 mrg # by default will actually change.
169 1.1 mrg # Use braces instead of parens because sh, perl, etc. also accept them.
170 1.1 mrg bindir='${exec_prefix}/bin'
171 1.1 mrg sbindir='${exec_prefix}/sbin'
172 1.1 mrg libexecdir='${exec_prefix}/libexec'
173 1.1 mrg datadir='${prefix}/share'
174 1.1 mrg sysconfdir='${prefix}/etc'
175 1.1 mrg sharedstatedir='${prefix}/com'
176 1.1 mrg localstatedir='${prefix}/var'
177 1.1 mrg libdir='${exec_prefix}/lib'
178 1.1 mrg includedir='${prefix}/include'
179 1.1 mrg oldincludedir='/usr/include'
180 1.1 mrg infodir='${prefix}/info'
181 1.1 mrg mandir='${prefix}/man'
182 1.1 mrg
183 1.1 mrg # Identity of this package.
184 1.1 mrg PACKAGE_NAME=
185 1.1 mrg PACKAGE_TARNAME=
186 1.1 mrg PACKAGE_VERSION=
187 1.1 mrg PACKAGE_STRING=
188 1.1 mrg PACKAGE_BUGREPORT=
189 1.1 mrg
190 1.1 mrg ac_prev=
191 1.1 mrg for ac_option
192 1.1 mrg do
193 1.1 mrg # If the previous option needs an argument, assign it.
194 1.1 mrg if test -n "$ac_prev"; then
195 1.1 mrg eval "$ac_prev=\$ac_option"
196 1.1 mrg ac_prev=
197 1.1 mrg continue
198 1.1 mrg fi
199 1.1 mrg
200 1.1 mrg ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201 1.1 mrg
202 1.1 mrg # Accept the important Cygnus configure options, so we can diagnose typos.
203 1.1 mrg
204 1.1 mrg case $ac_option in
205 1.1 mrg
206 1.1 mrg -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 1.1 mrg ac_prev=bindir ;;
208 1.1 mrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 1.1 mrg bindir=$ac_optarg ;;
210 1.1 mrg
211 1.1 mrg -build | --build | --buil | --bui | --bu)
212 1.1 mrg ac_prev=build_alias ;;
213 1.1 mrg -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 1.1 mrg build_alias=$ac_optarg ;;
215 1.1 mrg
216 1.1 mrg -cache-file | --cache-file | --cache-fil | --cache-fi \
217 1.1 mrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 1.1 mrg ac_prev=cache_file ;;
219 1.1 mrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 1.1 mrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 1.1 mrg cache_file=$ac_optarg ;;
222 1.1 mrg
223 1.1 mrg --config-cache | -C)
224 1.1 mrg cache_file=config.cache ;;
225 1.1 mrg
226 1.1 mrg -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 1.1 mrg ac_prev=datadir ;;
228 1.1 mrg -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 1.1 mrg | --da=*)
230 1.1 mrg datadir=$ac_optarg ;;
231 1.1 mrg
232 1.1 mrg -disable-* | --disable-*)
233 1.1 mrg ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 1.1 mrg # Reject names that are not valid shell variable names.
235 1.1 mrg expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 1.1 mrg { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 1.1 mrg { (exit 1); exit 1; }; }
238 1.1 mrg ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 1.1 mrg eval "enable_$ac_feature=no" ;;
240 1.1 mrg
241 1.1 mrg -enable-* | --enable-*)
242 1.1 mrg ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 1.1 mrg # Reject names that are not valid shell variable names.
244 1.1 mrg expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 1.1 mrg { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 1.1 mrg { (exit 1); exit 1; }; }
247 1.1 mrg ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 1.1 mrg case $ac_option in
249 1.1 mrg *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 1.1 mrg *) ac_optarg=yes ;;
251 1.1 mrg esac
252 1.1 mrg eval "enable_$ac_feature='$ac_optarg'" ;;
253 1.1 mrg
254 1.1 mrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 1.1 mrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 1.1 mrg | --exec | --exe | --ex)
257 1.1 mrg ac_prev=exec_prefix ;;
258 1.1 mrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 1.1 mrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 1.1 mrg | --exec=* | --exe=* | --ex=*)
261 1.1 mrg exec_prefix=$ac_optarg ;;
262 1.1 mrg
263 1.1 mrg -gas | --gas | --ga | --g)
264 1.1 mrg # Obsolete; use --with-gas.
265 1.1 mrg with_gas=yes ;;
266 1.1 mrg
267 1.1 mrg -help | --help | --hel | --he | -h)
268 1.1 mrg ac_init_help=long ;;
269 1.1 mrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 1.1 mrg ac_init_help=recursive ;;
271 1.1 mrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 1.1 mrg ac_init_help=short ;;
273 1.1 mrg
274 1.1 mrg -host | --host | --hos | --ho)
275 1.1 mrg ac_prev=host_alias ;;
276 1.1 mrg -host=* | --host=* | --hos=* | --ho=*)
277 1.1 mrg host_alias=$ac_optarg ;;
278 1.1 mrg
279 1.1 mrg -includedir | --includedir | --includedi | --included | --include \
280 1.1 mrg | --includ | --inclu | --incl | --inc)
281 1.1 mrg ac_prev=includedir ;;
282 1.1 mrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 1.1 mrg | --includ=* | --inclu=* | --incl=* | --inc=*)
284 1.1 mrg includedir=$ac_optarg ;;
285 1.1 mrg
286 1.1 mrg -infodir | --infodir | --infodi | --infod | --info | --inf)
287 1.1 mrg ac_prev=infodir ;;
288 1.1 mrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 1.1 mrg infodir=$ac_optarg ;;
290 1.1 mrg
291 1.1 mrg -libdir | --libdir | --libdi | --libd)
292 1.1 mrg ac_prev=libdir ;;
293 1.1 mrg -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 1.1 mrg libdir=$ac_optarg ;;
295 1.1 mrg
296 1.1 mrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 1.1 mrg | --libexe | --libex | --libe)
298 1.1 mrg ac_prev=libexecdir ;;
299 1.1 mrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 1.1 mrg | --libexe=* | --libex=* | --libe=*)
301 1.1 mrg libexecdir=$ac_optarg ;;
302 1.1 mrg
303 1.1 mrg -localstatedir | --localstatedir | --localstatedi | --localstated \
304 1.1 mrg | --localstate | --localstat | --localsta | --localst \
305 1.1 mrg | --locals | --local | --loca | --loc | --lo)
306 1.1 mrg ac_prev=localstatedir ;;
307 1.1 mrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 1.1 mrg | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 1.1 mrg | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 1.1 mrg localstatedir=$ac_optarg ;;
311 1.1 mrg
312 1.1 mrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 1.1 mrg ac_prev=mandir ;;
314 1.1 mrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 1.1 mrg mandir=$ac_optarg ;;
316 1.1 mrg
317 1.1 mrg -nfp | --nfp | --nf)
318 1.1 mrg # Obsolete; use --without-fp.
319 1.1 mrg with_fp=no ;;
320 1.1 mrg
321 1.1 mrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 1.1 mrg | --no-cr | --no-c)
323 1.1 mrg no_create=yes ;;
324 1.1 mrg
325 1.1 mrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 1.1 mrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 1.1 mrg no_recursion=yes ;;
328 1.1 mrg
329 1.1 mrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 1.1 mrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 1.1 mrg | --oldin | --oldi | --old | --ol | --o)
332 1.1 mrg ac_prev=oldincludedir ;;
333 1.1 mrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 1.1 mrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 1.1 mrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 1.1 mrg oldincludedir=$ac_optarg ;;
337 1.1 mrg
338 1.1 mrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 1.1 mrg ac_prev=prefix ;;
340 1.1 mrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 1.1 mrg prefix=$ac_optarg ;;
342 1.1 mrg
343 1.1 mrg -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 1.1 mrg | --program-pre | --program-pr | --program-p)
345 1.1 mrg ac_prev=program_prefix ;;
346 1.1 mrg -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 1.1 mrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 1.1 mrg program_prefix=$ac_optarg ;;
349 1.1 mrg
350 1.1 mrg -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 1.1 mrg | --program-suf | --program-su | --program-s)
352 1.1 mrg ac_prev=program_suffix ;;
353 1.1 mrg -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 1.1 mrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 1.1 mrg program_suffix=$ac_optarg ;;
356 1.1 mrg
357 1.1 mrg -program-transform-name | --program-transform-name \
358 1.1 mrg | --program-transform-nam | --program-transform-na \
359 1.1 mrg | --program-transform-n | --program-transform- \
360 1.1 mrg | --program-transform | --program-transfor \
361 1.1 mrg | --program-transfo | --program-transf \
362 1.1 mrg | --program-trans | --program-tran \
363 1.1 mrg | --progr-tra | --program-tr | --program-t)
364 1.1 mrg ac_prev=program_transform_name ;;
365 1.1 mrg -program-transform-name=* | --program-transform-name=* \
366 1.1 mrg | --program-transform-nam=* | --program-transform-na=* \
367 1.1 mrg | --program-transform-n=* | --program-transform-=* \
368 1.1 mrg | --program-transform=* | --program-transfor=* \
369 1.1 mrg | --program-transfo=* | --program-transf=* \
370 1.1 mrg | --program-trans=* | --program-tran=* \
371 1.1 mrg | --progr-tra=* | --program-tr=* | --program-t=*)
372 1.1 mrg program_transform_name=$ac_optarg ;;
373 1.1 mrg
374 1.1 mrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 1.1 mrg | -silent | --silent | --silen | --sile | --sil)
376 1.1 mrg silent=yes ;;
377 1.1 mrg
378 1.1 mrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 1.1 mrg ac_prev=sbindir ;;
380 1.1 mrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 1.1 mrg | --sbi=* | --sb=*)
382 1.1 mrg sbindir=$ac_optarg ;;
383 1.1 mrg
384 1.1 mrg -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 1.1 mrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 1.1 mrg | --sharedst | --shareds | --shared | --share | --shar \
387 1.1 mrg | --sha | --sh)
388 1.1 mrg ac_prev=sharedstatedir ;;
389 1.1 mrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 1.1 mrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 1.1 mrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 1.1 mrg | --sha=* | --sh=*)
393 1.1 mrg sharedstatedir=$ac_optarg ;;
394 1.1 mrg
395 1.1 mrg -site | --site | --sit)
396 1.1 mrg ac_prev=site ;;
397 1.1 mrg -site=* | --site=* | --sit=*)
398 1.1 mrg site=$ac_optarg ;;
399 1.1 mrg
400 1.1 mrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 1.1 mrg ac_prev=srcdir ;;
402 1.1 mrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 1.1 mrg srcdir=$ac_optarg ;;
404 1.1 mrg
405 1.1 mrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 1.1 mrg | --syscon | --sysco | --sysc | --sys | --sy)
407 1.1 mrg ac_prev=sysconfdir ;;
408 1.1 mrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 1.1 mrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 1.1 mrg sysconfdir=$ac_optarg ;;
411 1.1 mrg
412 1.1 mrg -target | --target | --targe | --targ | --tar | --ta | --t)
413 1.1 mrg ac_prev=target_alias ;;
414 1.1 mrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 1.1 mrg target_alias=$ac_optarg ;;
416 1.1 mrg
417 1.1 mrg -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 1.1 mrg verbose=yes ;;
419 1.1 mrg
420 1.1 mrg -version | --version | --versio | --versi | --vers | -V)
421 1.1 mrg ac_init_version=: ;;
422 1.1 mrg
423 1.1 mrg -with-* | --with-*)
424 1.1 mrg ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 1.1 mrg # Reject names that are not valid shell variable names.
426 1.1 mrg expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 1.1 mrg { echo "$as_me: error: invalid package name: $ac_package" >&2
428 1.1 mrg { (exit 1); exit 1; }; }
429 1.1 mrg ac_package=`echo $ac_package| sed 's/-/_/g'`
430 1.1 mrg case $ac_option in
431 1.1 mrg *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 1.1 mrg *) ac_optarg=yes ;;
433 1.1 mrg esac
434 1.1 mrg eval "with_$ac_package='$ac_optarg'" ;;
435 1.1 mrg
436 1.1 mrg -without-* | --without-*)
437 1.1 mrg ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 1.1 mrg # Reject names that are not valid shell variable names.
439 1.1 mrg expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 1.1 mrg { echo "$as_me: error: invalid package name: $ac_package" >&2
441 1.1 mrg { (exit 1); exit 1; }; }
442 1.1 mrg ac_package=`echo $ac_package | sed 's/-/_/g'`
443 1.1 mrg eval "with_$ac_package=no" ;;
444 1.1 mrg
445 1.1 mrg --x)
446 1.1 mrg # Obsolete; use --with-x.
447 1.1 mrg with_x=yes ;;
448 1.1 mrg
449 1.1 mrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 1.1 mrg | --x-incl | --x-inc | --x-in | --x-i)
451 1.1 mrg ac_prev=x_includes ;;
452 1.1 mrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 1.1 mrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 1.1 mrg x_includes=$ac_optarg ;;
455 1.1 mrg
456 1.1 mrg -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 1.1 mrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 1.1 mrg ac_prev=x_libraries ;;
459 1.1 mrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 1.1 mrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 1.1 mrg x_libraries=$ac_optarg ;;
462 1.1 mrg
463 1.1 mrg -*) { echo "$as_me: error: unrecognized option: $ac_option
464 1.1 mrg Try \`$0 --help' for more information." >&2
465 1.1 mrg { (exit 1); exit 1; }; }
466 1.1 mrg ;;
467 1.1 mrg
468 1.1 mrg *=*)
469 1.1 mrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 1.1 mrg # Reject names that are not valid shell variable names.
471 1.1 mrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 1.1 mrg { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 1.1 mrg { (exit 1); exit 1; }; }
474 1.1 mrg ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 1.1 mrg eval "$ac_envvar='$ac_optarg'"
476 1.1 mrg export $ac_envvar ;;
477 1.1 mrg
478 1.1 mrg *)
479 1.1 mrg # FIXME: should be removed in autoconf 3.0.
480 1.1 mrg echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 1.1 mrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 1.1 mrg echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 1.1 mrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484 1.1 mrg ;;
485 1.1 mrg
486 1.1 mrg esac
487 1.1 mrg done
488 1.1 mrg
489 1.1 mrg if test -n "$ac_prev"; then
490 1.1 mrg ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 1.1 mrg { echo "$as_me: error: missing argument to $ac_option" >&2
492 1.1 mrg { (exit 1); exit 1; }; }
493 1.1 mrg fi
494 1.1 mrg
495 1.1 mrg # Be sure to have absolute paths.
496 1.1 mrg for ac_var in exec_prefix prefix
497 1.1 mrg do
498 1.1 mrg eval ac_val=$`echo $ac_var`
499 1.1 mrg case $ac_val in
500 1.1 mrg [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 1.1 mrg *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 1.1 mrg { (exit 1); exit 1; }; };;
503 1.1 mrg esac
504 1.1 mrg done
505 1.1 mrg
506 1.1 mrg # Be sure to have absolute paths.
507 1.1 mrg for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 1.1 mrg localstatedir libdir includedir oldincludedir infodir mandir
509 1.1 mrg do
510 1.1 mrg eval ac_val=$`echo $ac_var`
511 1.1 mrg case $ac_val in
512 1.1 mrg [\\/$]* | ?:[\\/]* ) ;;
513 1.1 mrg *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 1.1 mrg { (exit 1); exit 1; }; };;
515 1.1 mrg esac
516 1.1 mrg done
517 1.1 mrg
518 1.1 mrg # There might be people who depend on the old broken behavior: `$host'
519 1.1 mrg # used to hold the argument of --host etc.
520 1.1 mrg build=$build_alias
521 1.1 mrg host=$host_alias
522 1.1 mrg target=$target_alias
523 1.1 mrg
524 1.1 mrg # FIXME: should be removed in autoconf 3.0.
525 1.1 mrg if test "x$host_alias" != x; then
526 1.1 mrg if test "x$build_alias" = x; then
527 1.1 mrg cross_compiling=maybe
528 1.1 mrg echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 1.1 mrg If a cross compiler is detected then cross compile mode will be used." >&2
530 1.1 mrg elif test "x$build_alias" != "x$host_alias"; then
531 1.1 mrg cross_compiling=yes
532 1.1 mrg fi
533 1.1 mrg fi
534 1.1 mrg
535 1.1 mrg ac_tool_prefix=
536 1.1 mrg test -n "$host_alias" && ac_tool_prefix=$host_alias-
537 1.1 mrg
538 1.1 mrg test "$silent" = yes && exec 6>/dev/null
539 1.1 mrg
540 1.1 mrg # Find the source files, if location was not specified.
541 1.1 mrg if test -z "$srcdir"; then
542 1.1 mrg ac_srcdir_defaulted=yes
543 1.1 mrg # Try the directory containing this script, then its parent.
544 1.1 mrg ac_prog=$0
545 1.1 mrg ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 1.1 mrg test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 1.1 mrg srcdir=$ac_confdir
548 1.1 mrg if test ! -r $srcdir/$ac_unique_file; then
549 1.1 mrg srcdir=..
550 1.1 mrg fi
551 1.1 mrg else
552 1.1 mrg ac_srcdir_defaulted=no
553 1.1 mrg fi
554 1.1 mrg if test ! -r $srcdir/$ac_unique_file; then
555 1.1 mrg if test "$ac_srcdir_defaulted" = yes; then
556 1.1 mrg { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 1.1 mrg { (exit 1); exit 1; }; }
558 1.1 mrg else
559 1.1 mrg { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 1.1 mrg { (exit 1); exit 1; }; }
561 1.1 mrg fi
562 1.1 mrg fi
563 1.1 mrg srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 1.1 mrg ac_env_build_alias_set=${build_alias+set}
565 1.1 mrg ac_env_build_alias_value=$build_alias
566 1.1 mrg ac_cv_env_build_alias_set=${build_alias+set}
567 1.1 mrg ac_cv_env_build_alias_value=$build_alias
568 1.1 mrg ac_env_host_alias_set=${host_alias+set}
569 1.1 mrg ac_env_host_alias_value=$host_alias
570 1.1 mrg ac_cv_env_host_alias_set=${host_alias+set}
571 1.1 mrg ac_cv_env_host_alias_value=$host_alias
572 1.1 mrg ac_env_target_alias_set=${target_alias+set}
573 1.1 mrg ac_env_target_alias_value=$target_alias
574 1.1 mrg ac_cv_env_target_alias_set=${target_alias+set}
575 1.1 mrg ac_cv_env_target_alias_value=$target_alias
576 1.1 mrg ac_env_CC_set=${CC+set}
577 1.1 mrg ac_env_CC_value=$CC
578 1.1 mrg ac_cv_env_CC_set=${CC+set}
579 1.1 mrg ac_cv_env_CC_value=$CC
580 1.1 mrg ac_env_CFLAGS_set=${CFLAGS+set}
581 1.1 mrg ac_env_CFLAGS_value=$CFLAGS
582 1.1 mrg ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 1.1 mrg ac_cv_env_CFLAGS_value=$CFLAGS
584 1.1 mrg ac_env_LDFLAGS_set=${LDFLAGS+set}
585 1.1 mrg ac_env_LDFLAGS_value=$LDFLAGS
586 1.1 mrg ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 1.1 mrg ac_cv_env_LDFLAGS_value=$LDFLAGS
588 1.1 mrg ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 1.1 mrg ac_env_CPPFLAGS_value=$CPPFLAGS
590 1.1 mrg ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 1.1 mrg ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 1.1 mrg ac_env_CPP_set=${CPP+set}
593 1.1 mrg ac_env_CPP_value=$CPP
594 1.1 mrg ac_cv_env_CPP_set=${CPP+set}
595 1.1 mrg ac_cv_env_CPP_value=$CPP
596 1.1 mrg
597 1.1 mrg #
598 1.1 mrg # Report the --help message.
599 1.1 mrg #
600 1.1 mrg if test "$ac_init_help" = "long"; then
601 1.1 mrg # Omit some internal or obsolete options to make the list less imposing.
602 1.1 mrg # This message is too long to be a string in the A/UX 3.1 sh.
603 1.1 mrg cat <<EOF
604 1.1 mrg \`configure' configures this package to adapt to many kinds of systems.
605 1.1 mrg
606 1.1 mrg Usage: $0 [OPTION]... [VAR=VALUE]...
607 1.1 mrg
608 1.1 mrg To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 1.1 mrg VAR=VALUE. See below for descriptions of some of the useful variables.
610 1.1 mrg
611 1.1 mrg Defaults for the options are specified in brackets.
612 1.1 mrg
613 1.1 mrg Configuration:
614 1.1 mrg -h, --help display this help and exit
615 1.1 mrg --help=short display options specific to this package
616 1.1 mrg --help=recursive display the short help of all the included packages
617 1.1 mrg -V, --version display version information and exit
618 1.1 mrg -q, --quiet, --silent do not print \`checking...' messages
619 1.1 mrg --cache-file=FILE cache test results in FILE [disabled]
620 1.1 mrg -C, --config-cache alias for \`--cache-file=config.cache'
621 1.1 mrg -n, --no-create do not create output files
622 1.1 mrg --srcdir=DIR find the sources in DIR [configure dir or \`..']
623 1.1 mrg
624 1.1 mrg EOF
625 1.1 mrg
626 1.1 mrg cat <<EOF
627 1.1 mrg Installation directories:
628 1.1 mrg --prefix=PREFIX install architecture-independent files in PREFIX
629 1.1 mrg [$ac_default_prefix]
630 1.1 mrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 1.1 mrg [PREFIX]
632 1.1 mrg
633 1.1 mrg By default, \`make install' will install all the files in
634 1.1 mrg \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 1.1 mrg an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 1.1 mrg for instance \`--prefix=\$HOME'.
637 1.1 mrg
638 1.1 mrg For better control, use the options below.
639 1.1 mrg
640 1.1 mrg Fine tuning of the installation directories:
641 1.1 mrg --bindir=DIR user executables [EPREFIX/bin]
642 1.1 mrg --sbindir=DIR system admin executables [EPREFIX/sbin]
643 1.1 mrg --libexecdir=DIR program executables [EPREFIX/libexec]
644 1.1 mrg --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 1.1 mrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 1.1 mrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 1.1 mrg --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 1.1 mrg --libdir=DIR object code libraries [EPREFIX/lib]
649 1.1 mrg --includedir=DIR C header files [PREFIX/include]
650 1.1 mrg --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 1.1 mrg --infodir=DIR info documentation [PREFIX/info]
652 1.1 mrg --mandir=DIR man documentation [PREFIX/man]
653 1.1 mrg EOF
654 1.1 mrg
655 1.1 mrg cat <<\EOF
656 1.1 mrg
657 1.1 mrg Program names:
658 1.1 mrg --program-prefix=PREFIX prepend PREFIX to installed program names
659 1.1 mrg --program-suffix=SUFFIX append SUFFIX to installed program names
660 1.1 mrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names
661 1.1 mrg
662 1.1 mrg X features:
663 1.1 mrg --x-includes=DIR X include files are in DIR
664 1.1 mrg --x-libraries=DIR X library files are in DIR
665 1.1 mrg
666 1.1 mrg System types:
667 1.1 mrg --build=BUILD configure for building on BUILD [guessed]
668 1.1 mrg --host=HOST build programs to run on HOST [BUILD]
669 1.1 mrg EOF
670 1.1 mrg fi
671 1.1 mrg
672 1.1 mrg if test -n "$ac_init_help"; then
673 1.1 mrg
674 1.1 mrg cat <<\EOF
675 1.1 mrg
676 1.1 mrg Optional Features:
677 1.1 mrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 1.1 mrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
679 1.1 mrg
680 1.1 mrg Optional Packages:
681 1.1 mrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
682 1.1 mrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
683 1.1 mrg
684 1.1 mrg Compile/Install Options:
685 1.1 mrg --disable-full-tgetent disable check for full tgetent function
686 1.1 mrg --with-app-defaults=DIR directory in which to install resource files (default: EPREFIX/lib/X11/app-defaults)
687 1.1 mrg --with-icondir=DIR directory in which to install icons (default: EPREFIX/share/pixmaps)
688 1.1 mrg --disable-desktop disable install of xterm desktop files
689 1.1 mrg --with-reference=XXX program to use as permissions-reference
690 1.1 mrg --with-xterm-symlink=XXX make symbolic link to installed xterm
691 1.1 mrg --disable-setuid disable setuid in xterm, do not install setuid/setgid
692 1.1 mrg --disable-setgid disable setgid in xterm, do not install setuid/setgid
693 1.1 mrg --with-setuid=XXX use the given setuid user
694 1.1 mrg --with-utmp-setgid=XXX use setgid to match utmp/utmpx file
695 1.1 mrg --with-utempter use utempter library for access to utmp
696 1.1 mrg --with-tty-group=XXX use XXX for the tty-group
697 1.1 mrg --with-x use the X Window System
698 1.1 mrg --with-Xaw3d link with Xaw 3d library
699 1.1 mrg --with-neXtaw link with neXT Athena library
700 1.1 mrg --with-XawPlus link with Athena-Plus library
701 1.1 mrg --enable-narrowproto enable narrow prototypes for X libraries
702 1.1 mrg --disable-imake disable use of imake for definitions
703 1.1 mrg Terminal Configuration:
704 1.1 mrg --with-terminal-id=V set default decTerminalID (default: vt100)
705 1.1 mrg --with-terminal-type=T set default $TERM (default: xterm)
706 1.1 mrg --with-own-terminfo=P set default $TERMINFO (default: from environment)
707 1.1 mrg Optional Features:
708 1.1 mrg --disable-active-icon disable X11R6.3 active-icon feature
709 1.1 mrg --disable-ansi-color disable ANSI color
710 1.1 mrg --disable-16-color disable 16-color support
711 1.1 mrg --enable-256-color enable 256-color support
712 1.1 mrg --enable-88-color enable 88-color support
713 1.1 mrg --disable-blink-cursor disable support for blinking cursor
714 1.1 mrg --enable-broken-osc allow broken Linux OSC-strings
715 1.1 mrg --enable-broken-st allow broken string-terminators
716 1.1 mrg --disable-c1-print disallow -k8 option for printable 128-159
717 1.1 mrg --disable-bold-color disable PC-style mapping of bold colors
718 1.1 mrg --disable-color-class disable separate color class resources
719 1.1 mrg --disable-color-mode disable default colorMode resource
720 1.1 mrg --disable-highlighting disable support for color highlighting
721 1.1 mrg --disable-doublechars disable support for double-size chars
722 1.1 mrg --disable-boxchars disable fallback-support for box chars
723 1.1 mrg --enable-exec-xterm enable "spawn-new-terminal" action
724 1.1 mrg --disable-freetype disable freetype library-support
725 1.1 mrg --with-freetype-cflags -D/-I options for compiling with FreeType
726 1.1 mrg --with-freetype-libs -L/-l options to link FreeType
727 1.1 mrg --enable-hp-fkeys enable support for HP-style function keys
728 1.1 mrg --enable-sco-fkeys enable support for SCO-style function keys
729 1.1 mrg --disable-sun-fkeys disable support for Sun-style function keys
730 1.1 mrg --disable-i18n disable internationalization
731 1.1 mrg --disable-initial-erase disable setup for stty erase
732 1.1 mrg --disable-input-method disable input-method
733 1.1 mrg --enable-load-vt-fonts enable load-vt-fonts() action
734 1.1 mrg --enable-logging enable logging
735 1.1 mrg --enable-logfile-exec enable exec'd logfile filter
736 1.1 mrg --disable-maximize disable actions for iconify/deiconify/maximize/restore
737 1.1 mrg --disable-num-lock disable NumLock keypad support
738 1.1.1.2 christos --disable-paste64 disable get/set base64 selection data
739 1.1 mrg --disable-pty-handshake disable pty-handshake support
740 1.1 mrg --enable-readline-mouse enable support for mouse in readline applications
741 1.1 mrg --disable-regex disable regular-expression selections
742 1.1 mrg --with-pcre use PCRE for regular-expressions
743 1.1 mrg --disable-rightbar disable right-scrollbar support
744 1.1 mrg --disable-samename disable check for redundant name-change
745 1.1 mrg --disable-session-mgt disable support for session management
746 1.1 mrg --disable-tcap-fkeys disable termcap function-keys support
747 1.1.1.2 christos --disable-tcap-query disable compiled-in termcap-query support
748 1.1 mrg --disable-tek4014 disable tek4014 emulation
749 1.1 mrg --enable-toolbar compile-in toolbar for pulldown menus
750 1.1 mrg --disable-vt52 disable VT52 emulation
751 1.1 mrg --enable-mini-luit enable mini-luit (built-in Latin9 support)
752 1.1 mrg --enable-luit enable luit filter (Unicode translation)
753 1.1 mrg --enable-wide-chars enable wide-character support
754 1.1 mrg --enable-dabbrev enable dynamic-abbreviation support
755 1.1 mrg --enable-dec-locator enable DECterm Locator support
756 1.1 mrg --disable-rectangles disable VT420 rectangle support
757 1.1 mrg --disable-ziconbeep disable -ziconbeep option
758 1.1 mrg Testing/development Options:
759 1.1 mrg --enable-trace test: set to enable debugging traces
760 1.1 mrg --disable-leaks test: set to test memory leaks
761 1.1 mrg --disable-echo display "compiling" commands
762 1.1 mrg --enable-xmc-glitch test: enable xmc magic-cookie emulation
763 1.1 mrg --enable-warnings test: turn on GCC compiler warnings
764 1.1 mrg
765 1.1 mrg Some influential environment variables:
766 1.1 mrg CC C compiler command
767 1.1 mrg CFLAGS C compiler flags
768 1.1 mrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
769 1.1 mrg nonstandard directory <lib dir>
770 1.1 mrg CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
771 1.1 mrg headers in a nonstandard directory <include dir>
772 1.1 mrg CPP C preprocessor
773 1.1 mrg
774 1.1 mrg Use these variables to override the choices made by `configure' or to help
775 1.1 mrg it to find libraries and programs with nonstandard names/locations.
776 1.1 mrg
777 1.1 mrg EOF
778 1.1 mrg fi
779 1.1 mrg
780 1.1 mrg if test "$ac_init_help" = "recursive"; then
781 1.1 mrg # If there are subdirs, report their specific --help.
782 1.1 mrg ac_popdir=`pwd`
783 1.1 mrg for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
784 1.1 mrg cd $ac_subdir
785 1.1 mrg # A "../" for each directory in /$ac_subdir.
786 1.1 mrg ac_dots=`echo $ac_subdir |
787 1.1 mrg sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
788 1.1 mrg
789 1.1 mrg case $srcdir in
790 1.1 mrg .) # No --srcdir option. We are building in place.
791 1.1 mrg ac_sub_srcdir=$srcdir ;;
792 1.1 mrg [\\/]* | ?:[\\/]* ) # Absolute path.
793 1.1 mrg ac_sub_srcdir=$srcdir/$ac_subdir ;;
794 1.1 mrg *) # Relative path.
795 1.1 mrg ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
796 1.1 mrg esac
797 1.1 mrg
798 1.1 mrg # Check for guested configure; otherwise get Cygnus style configure.
799 1.1 mrg if test -f $ac_sub_srcdir/configure.gnu; then
800 1.1 mrg echo
801 1.1 mrg $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
802 1.1 mrg elif test -f $ac_sub_srcdir/configure; then
803 1.1 mrg echo
804 1.1 mrg $SHELL $ac_sub_srcdir/configure --help=recursive
805 1.1 mrg elif test -f $ac_sub_srcdir/configure.ac ||
806 1.1 mrg test -f $ac_sub_srcdir/configure.in; then
807 1.1 mrg echo
808 1.1 mrg $ac_configure --help
809 1.1 mrg else
810 1.1 mrg echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
811 1.1 mrg fi
812 1.1 mrg cd $ac_popdir
813 1.1 mrg done
814 1.1 mrg fi
815 1.1 mrg
816 1.1 mrg test -n "$ac_init_help" && exit 0
817 1.1 mrg if $ac_init_version; then
818 1.1 mrg cat <<\EOF
819 1.1 mrg
820 1.1 mrg Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
821 1.1 mrg Free Software Foundation, Inc.
822 1.1 mrg This configure script is free software; the Free Software Foundation
823 1.1 mrg gives unlimited permission to copy, distribute and modify it.
824 1.1 mrg EOF
825 1.1 mrg exit 0
826 1.1 mrg fi
827 1.1 mrg exec 5>config.log
828 1.1 mrg cat >&5 <<EOF
829 1.1 mrg This file contains any messages produced by compilers while
830 1.1 mrg running configure, to aid debugging if configure makes a mistake.
831 1.1 mrg
832 1.1 mrg It was created by $as_me, which was
833 1.1.1.2 christos generated by GNU Autoconf 2.52.20081225. Invocation command line was
834 1.1 mrg
835 1.1 mrg $ $0 $@
836 1.1 mrg
837 1.1 mrg EOF
838 1.1 mrg {
839 1.1 mrg cat <<_ASUNAME
840 1.1 mrg ## ---------- ##
841 1.1 mrg ## Platform. ##
842 1.1 mrg ## ---------- ##
843 1.1 mrg
844 1.1 mrg hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
845 1.1 mrg uname -m = `(uname -m) 2>/dev/null || echo unknown`
846 1.1 mrg uname -r = `(uname -r) 2>/dev/null || echo unknown`
847 1.1 mrg uname -s = `(uname -s) 2>/dev/null || echo unknown`
848 1.1 mrg uname -v = `(uname -v) 2>/dev/null || echo unknown`
849 1.1 mrg
850 1.1 mrg /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
851 1.1 mrg /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
852 1.1 mrg
853 1.1 mrg /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
854 1.1 mrg /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
855 1.1 mrg /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
856 1.1 mrg hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
857 1.1 mrg /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
858 1.1 mrg /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
859 1.1 mrg /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
860 1.1 mrg
861 1.1 mrg PATH = $PATH
862 1.1 mrg
863 1.1 mrg _ASUNAME
864 1.1 mrg } >&5
865 1.1 mrg
866 1.1 mrg cat >&5 <<EOF
867 1.1 mrg ## ------------ ##
868 1.1 mrg ## Core tests. ##
869 1.1 mrg ## ------------ ##
870 1.1 mrg
871 1.1 mrg EOF
872 1.1 mrg
873 1.1 mrg # Keep a trace of the command line.
874 1.1 mrg # Strip out --no-create and --no-recursion so they do not pile up.
875 1.1 mrg # Also quote any args containing shell meta-characters.
876 1.1 mrg ac_configure_args=
877 1.1 mrg ac_sep=
878 1.1 mrg for ac_arg
879 1.1 mrg do
880 1.1 mrg case $ac_arg in
881 1.1 mrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \
882 1.1 mrg | --no-cr | --no-c) ;;
883 1.1 mrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \
884 1.1 mrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
885 1.1 mrg *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
886 1.1 mrg ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
887 1.1 mrg ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
888 1.1 mrg ac_sep=" " ;;
889 1.1 mrg *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
890 1.1 mrg ac_sep=" " ;;
891 1.1 mrg esac
892 1.1 mrg # Get rid of the leading space.
893 1.1 mrg done
894 1.1 mrg
895 1.1 mrg # When interrupted or exit'd, cleanup temporary files, and complete
896 1.1 mrg # config.log. We remove comments because anyway the quotes in there
897 1.1 mrg # would cause problems or look ugly.
898 1.1 mrg trap 'exit_status=$?
899 1.1 mrg # Save into config.log some information that might help in debugging.
900 1.1 mrg echo >&5
901 1.1 mrg echo "## ----------------- ##" >&5
902 1.1 mrg echo "## Cache variables. ##" >&5
903 1.1 mrg echo "## ----------------- ##" >&5
904 1.1 mrg echo >&5
905 1.1 mrg # The following way of writing the cache mishandles newlines in values,
906 1.1 mrg {
907 1.1 mrg (set) 2>&1 |
908 1.1 mrg case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
909 1.1 mrg *ac_space=\ *)
910 1.1 mrg sed -n \
911 1.1 mrg "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
912 1.1 mrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
913 1.1 mrg ;;
914 1.1 mrg *)
915 1.1 mrg sed -n \
916 1.1 mrg "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
917 1.1 mrg ;;
918 1.1 mrg esac;
919 1.1 mrg } >&5
920 1.1 mrg sed "/^$/d" confdefs.h >conftest.log
921 1.1 mrg if test -s conftest.log; then
922 1.1 mrg echo >&5
923 1.1 mrg echo "## ------------ ##" >&5
924 1.1 mrg echo "## confdefs.h. ##" >&5
925 1.1 mrg echo "## ------------ ##" >&5
926 1.1 mrg echo >&5
927 1.1 mrg cat conftest.log >&5
928 1.1 mrg fi
929 1.1 mrg (echo; echo) >&5
930 1.1 mrg test "$ac_signal" != 0 &&
931 1.1 mrg echo "$as_me: caught signal $ac_signal" >&5
932 1.1 mrg echo "$as_me: exit $exit_status" >&5
933 1.1 mrg rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
934 1.1 mrg exit $exit_status
935 1.1 mrg ' 0
936 1.1 mrg for ac_signal in 1 2 13 15; do
937 1.1 mrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
938 1.1 mrg done
939 1.1 mrg ac_signal=0
940 1.1 mrg
941 1.1 mrg # confdefs.h avoids OS command line length limits that DEFS can exceed.
942 1.1 mrg rm -rf conftest* confdefs.h
943 1.1 mrg # AIX cpp loses on an empty file, so make sure it contains at least a newline.
944 1.1 mrg echo >confdefs.h
945 1.1 mrg
946 1.1 mrg # Let the site file select an alternate cache file if it wants to.
947 1.1 mrg # Prefer explicitly selected file to automatically selected ones.
948 1.1 mrg if test -z "$CONFIG_SITE"; then
949 1.1 mrg if test "x$prefix" != xNONE; then
950 1.1 mrg CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
951 1.1 mrg else
952 1.1 mrg CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
953 1.1 mrg fi
954 1.1 mrg fi
955 1.1 mrg for ac_site_file in $CONFIG_SITE; do
956 1.1 mrg if test -r "$ac_site_file"; then
957 1.1 mrg { echo "$as_me:957: loading site script $ac_site_file" >&5
958 1.1 mrg echo "$as_me: loading site script $ac_site_file" >&6;}
959 1.1 mrg cat "$ac_site_file" >&5
960 1.1 mrg . "$ac_site_file"
961 1.1 mrg fi
962 1.1 mrg done
963 1.1 mrg
964 1.1 mrg if test -r "$cache_file"; then
965 1.1 mrg # Some versions of bash will fail to source /dev/null (special
966 1.1 mrg # files actually), so we avoid doing that.
967 1.1 mrg if test -f "$cache_file"; then
968 1.1 mrg { echo "$as_me:968: loading cache $cache_file" >&5
969 1.1 mrg echo "$as_me: loading cache $cache_file" >&6;}
970 1.1 mrg case $cache_file in
971 1.1 mrg [\\/]* | ?:[\\/]* ) . $cache_file;;
972 1.1 mrg *) . ./$cache_file;;
973 1.1 mrg esac
974 1.1 mrg fi
975 1.1 mrg else
976 1.1 mrg { echo "$as_me:976: creating cache $cache_file" >&5
977 1.1 mrg echo "$as_me: creating cache $cache_file" >&6;}
978 1.1 mrg >$cache_file
979 1.1 mrg fi
980 1.1 mrg
981 1.1 mrg # Check that the precious variables saved in the cache have kept the same
982 1.1 mrg # value.
983 1.1 mrg ac_cache_corrupted=false
984 1.1 mrg for ac_var in `(set) 2>&1 |
985 1.1 mrg sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
986 1.1 mrg eval ac_old_set=\$ac_cv_env_${ac_var}_set
987 1.1 mrg eval ac_new_set=\$ac_env_${ac_var}_set
988 1.1 mrg eval ac_old_val="\$ac_cv_env_${ac_var}_value"
989 1.1 mrg eval ac_new_val="\$ac_env_${ac_var}_value"
990 1.1 mrg case $ac_old_set,$ac_new_set in
991 1.1 mrg set,)
992 1.1 mrg { echo "$as_me:992: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
993 1.1 mrg echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
994 1.1 mrg ac_cache_corrupted=: ;;
995 1.1 mrg ,set)
996 1.1 mrg { echo "$as_me:996: error: \`$ac_var' was not set in the previous run" >&5
997 1.1 mrg echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
998 1.1 mrg ac_cache_corrupted=: ;;
999 1.1 mrg ,);;
1000 1.1 mrg *)
1001 1.1 mrg if test "x$ac_old_val" != "x$ac_new_val"; then
1002 1.1 mrg { echo "$as_me:1002: error: \`$ac_var' has changed since the previous run:" >&5
1003 1.1 mrg echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1004 1.1 mrg { echo "$as_me:1004: former value: $ac_old_val" >&5
1005 1.1 mrg echo "$as_me: former value: $ac_old_val" >&2;}
1006 1.1 mrg { echo "$as_me:1006: current value: $ac_new_val" >&5
1007 1.1 mrg echo "$as_me: current value: $ac_new_val" >&2;}
1008 1.1 mrg ac_cache_corrupted=:
1009 1.1 mrg fi;;
1010 1.1 mrg esac
1011 1.1 mrg # Pass precious variables to config.status. It doesn't matter if
1012 1.1 mrg # we pass some twice (in addition to the command line arguments).
1013 1.1 mrg if test "$ac_new_set" = set; then
1014 1.1 mrg case $ac_new_val in
1015 1.1 mrg *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 1.1 mrg ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1017 1.1 mrg ac_configure_args="$ac_configure_args '$ac_arg'"
1018 1.1 mrg ;;
1019 1.1 mrg *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1020 1.1 mrg ;;
1021 1.1 mrg esac
1022 1.1 mrg fi
1023 1.1 mrg done
1024 1.1 mrg if $ac_cache_corrupted; then
1025 1.1 mrg { echo "$as_me:1025: error: changes in the environment can compromise the build" >&5
1026 1.1 mrg echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1027 1.1 mrg { { echo "$as_me:1027: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1028 1.1 mrg echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1029 1.1 mrg { (exit 1); exit 1; }; }
1030 1.1 mrg fi
1031 1.1 mrg
1032 1.1 mrg ac_ext=c
1033 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1034 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1035 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1036 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1037 1.1 mrg ac_main_return=return
1038 1.1 mrg
1039 1.1 mrg case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1040 1.1 mrg *c*,-n*) ECHO_N= ECHO_C='
1041 1.1 mrg ' ECHO_T=' ' ;;
1042 1.1 mrg *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1043 1.1 mrg *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1044 1.1 mrg esac
1045 1.1 mrg echo "#! $SHELL" >conftest.sh
1046 1.1 mrg echo "exit 0" >>conftest.sh
1047 1.1 mrg chmod +x conftest.sh
1048 1.1 mrg if { (echo "$as_me:1048: PATH=\".;.\"; conftest.sh") >&5
1049 1.1 mrg (PATH=".;."; conftest.sh) 2>&5
1050 1.1 mrg ac_status=$?
1051 1.1 mrg echo "$as_me:1051: \$? = $ac_status" >&5
1052 1.1 mrg (exit $ac_status); }; then
1053 1.1 mrg ac_path_separator=';'
1054 1.1 mrg else
1055 1.1 mrg ac_path_separator=:
1056 1.1 mrg fi
1057 1.1 mrg PATH_SEPARATOR="$ac_path_separator"
1058 1.1 mrg rm -f conftest.sh
1059 1.1 mrg
1060 1.1 mrg ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
1061 1.1 mrg
1062 1.1 mrg ac_aux_dir=
1063 1.1 mrg for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1064 1.1 mrg if test -f $ac_dir/install-sh; then
1065 1.1 mrg ac_aux_dir=$ac_dir
1066 1.1 mrg ac_install_sh="$ac_aux_dir/install-sh -c"
1067 1.1 mrg break
1068 1.1 mrg elif test -f $ac_dir/install.sh; then
1069 1.1 mrg ac_aux_dir=$ac_dir
1070 1.1 mrg ac_install_sh="$ac_aux_dir/install.sh -c"
1071 1.1 mrg break
1072 1.1 mrg elif test -f $ac_dir/shtool; then
1073 1.1 mrg ac_aux_dir=$ac_dir
1074 1.1 mrg ac_install_sh="$ac_aux_dir/shtool install -c"
1075 1.1 mrg break
1076 1.1 mrg fi
1077 1.1 mrg done
1078 1.1 mrg if test -z "$ac_aux_dir"; then
1079 1.1 mrg { { echo "$as_me:1079: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1080 1.1 mrg echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1081 1.1 mrg { (exit 1); exit 1; }; }
1082 1.1 mrg fi
1083 1.1 mrg ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1084 1.1 mrg ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1085 1.1 mrg ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1086 1.1 mrg
1087 1.1 mrg # Make sure we can run config.sub.
1088 1.1 mrg $ac_config_sub sun4 >/dev/null 2>&1 ||
1089 1.1 mrg { { echo "$as_me:1089: error: cannot run $ac_config_sub" >&5
1090 1.1 mrg echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1091 1.1 mrg { (exit 1); exit 1; }; }
1092 1.1 mrg
1093 1.1 mrg echo "$as_me:1093: checking build system type" >&5
1094 1.1 mrg echo $ECHO_N "checking build system type... $ECHO_C" >&6
1095 1.1 mrg if test "${ac_cv_build+set}" = set; then
1096 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1097 1.1 mrg else
1098 1.1 mrg ac_cv_build_alias=$build_alias
1099 1.1 mrg test -z "$ac_cv_build_alias" &&
1100 1.1 mrg ac_cv_build_alias=`$ac_config_guess`
1101 1.1 mrg test -z "$ac_cv_build_alias" &&
1102 1.1 mrg { { echo "$as_me:1102: error: cannot guess build type; you must specify one" >&5
1103 1.1 mrg echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1104 1.1 mrg { (exit 1); exit 1; }; }
1105 1.1 mrg ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1106 1.1 mrg { { echo "$as_me:1106: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1107 1.1 mrg echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1108 1.1 mrg { (exit 1); exit 1; }; }
1109 1.1 mrg
1110 1.1 mrg fi
1111 1.1 mrg echo "$as_me:1111: result: $ac_cv_build" >&5
1112 1.1 mrg echo "${ECHO_T}$ac_cv_build" >&6
1113 1.1 mrg build=$ac_cv_build
1114 1.1 mrg build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1115 1.1 mrg build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1116 1.1 mrg build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1117 1.1 mrg
1118 1.1 mrg if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1119 1.1 mrg echo "$as_me:1119: checking host system type" >&5
1120 1.1 mrg echo $ECHO_N "checking host system type... $ECHO_C" >&6
1121 1.1 mrg if test "${ac_cv_host+set}" = set; then
1122 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1123 1.1 mrg else
1124 1.1 mrg ac_cv_host_alias=$host_alias
1125 1.1 mrg test -z "$ac_cv_host_alias" &&
1126 1.1 mrg ac_cv_host_alias=$ac_cv_build_alias
1127 1.1 mrg ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1128 1.1 mrg { { echo "$as_me:1128: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1129 1.1 mrg echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1130 1.1 mrg { (exit 1); exit 1; }; }
1131 1.1 mrg
1132 1.1 mrg fi
1133 1.1 mrg echo "$as_me:1133: result: $ac_cv_host" >&5
1134 1.1 mrg echo "${ECHO_T}$ac_cv_host" >&6
1135 1.1 mrg host=$ac_cv_host
1136 1.1 mrg host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1137 1.1 mrg host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1138 1.1 mrg host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1139 1.1 mrg
1140 1.1 mrg system_name="$host_os"
1141 1.1 mrg else
1142 1.1 mrg system_name="`(uname -s -r) 2>/dev/null`"
1143 1.1 mrg if test -z "$system_name" ; then
1144 1.1 mrg system_name="`(hostname) 2>/dev/null`"
1145 1.1 mrg fi
1146 1.1 mrg fi
1147 1.1 mrg test -n "$system_name" && cat >>confdefs.h <<EOF
1148 1.1 mrg #define SYSTEM_NAME "$system_name"
1149 1.1 mrg EOF
1150 1.1 mrg
1151 1.1 mrg if test "${cf_cv_system_name+set}" = set; then
1152 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1153 1.1 mrg else
1154 1.1 mrg cf_cv_system_name="$system_name"
1155 1.1 mrg fi
1156 1.1 mrg
1157 1.1 mrg test -z "$system_name" && system_name="$cf_cv_system_name"
1158 1.1 mrg test -n "$cf_cv_system_name" && echo "$as_me:1158: result: Configuring for $cf_cv_system_name" >&5
1159 1.1 mrg echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1160 1.1 mrg
1161 1.1 mrg if test ".$system_name" != ".$cf_cv_system_name" ; then
1162 1.1 mrg echo "$as_me:1162: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1163 1.1 mrg echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1164 1.1 mrg { { echo "$as_me:1164: error: \"Please remove config.cache and try again.\"" >&5
1165 1.1 mrg echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1166 1.1 mrg { (exit 1); exit 1; }; }
1167 1.1 mrg fi
1168 1.1 mrg
1169 1.1 mrg ### checks for alternative programs
1170 1.1 mrg
1171 1.1 mrg case "$host_os" in
1172 1.1 mrg openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
1173 1.1 mrg : ${CPPFLAGS="-D_ALL_SOURCE"}
1174 1.1 mrg : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
1175 1.1 mrg : ${CC=c89};;
1176 1.1 mrg darwin*)
1177 1.1 mrg : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
1178 1.1 mrg esac
1179 1.1 mrg
1180 1.1 mrg ac_ext=c
1181 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1182 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1183 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1184 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1185 1.1 mrg ac_main_return=return
1186 1.1 mrg if test -n "$ac_tool_prefix"; then
1187 1.1 mrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1188 1.1 mrg set dummy ${ac_tool_prefix}gcc; ac_word=$2
1189 1.1 mrg echo "$as_me:1189: checking for $ac_word" >&5
1190 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1191 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1192 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1193 1.1 mrg else
1194 1.1 mrg if test -n "$CC"; then
1195 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1196 1.1 mrg else
1197 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1198 1.1 mrg ac_dummy="$PATH"
1199 1.1 mrg for ac_dir in $ac_dummy; do
1200 1.1 mrg IFS=$ac_save_IFS
1201 1.1 mrg test -z "$ac_dir" && ac_dir=.
1202 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1203 1.1 mrg ac_cv_prog_CC="${ac_tool_prefix}gcc"
1204 1.1 mrg echo "$as_me:1204: found $ac_dir/$ac_word" >&5
1205 1.1 mrg break
1206 1.1 mrg done
1207 1.1 mrg
1208 1.1 mrg fi
1209 1.1 mrg fi
1210 1.1 mrg CC=$ac_cv_prog_CC
1211 1.1 mrg if test -n "$CC"; then
1212 1.1 mrg echo "$as_me:1212: result: $CC" >&5
1213 1.1 mrg echo "${ECHO_T}$CC" >&6
1214 1.1 mrg else
1215 1.1 mrg echo "$as_me:1215: result: no" >&5
1216 1.1 mrg echo "${ECHO_T}no" >&6
1217 1.1 mrg fi
1218 1.1 mrg
1219 1.1 mrg fi
1220 1.1 mrg if test -z "$ac_cv_prog_CC"; then
1221 1.1 mrg ac_ct_CC=$CC
1222 1.1 mrg # Extract the first word of "gcc", so it can be a program name with args.
1223 1.1 mrg set dummy gcc; ac_word=$2
1224 1.1 mrg echo "$as_me:1224: checking for $ac_word" >&5
1225 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 1.1 mrg if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1227 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1228 1.1 mrg else
1229 1.1 mrg if test -n "$ac_ct_CC"; then
1230 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1231 1.1 mrg else
1232 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1233 1.1 mrg ac_dummy="$PATH"
1234 1.1 mrg for ac_dir in $ac_dummy; do
1235 1.1 mrg IFS=$ac_save_IFS
1236 1.1 mrg test -z "$ac_dir" && ac_dir=.
1237 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1238 1.1 mrg ac_cv_prog_ac_ct_CC="gcc"
1239 1.1 mrg echo "$as_me:1239: found $ac_dir/$ac_word" >&5
1240 1.1 mrg break
1241 1.1 mrg done
1242 1.1 mrg
1243 1.1 mrg fi
1244 1.1 mrg fi
1245 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
1246 1.1 mrg if test -n "$ac_ct_CC"; then
1247 1.1 mrg echo "$as_me:1247: result: $ac_ct_CC" >&5
1248 1.1 mrg echo "${ECHO_T}$ac_ct_CC" >&6
1249 1.1 mrg else
1250 1.1 mrg echo "$as_me:1250: result: no" >&5
1251 1.1 mrg echo "${ECHO_T}no" >&6
1252 1.1 mrg fi
1253 1.1 mrg
1254 1.1 mrg CC=$ac_ct_CC
1255 1.1 mrg else
1256 1.1 mrg CC="$ac_cv_prog_CC"
1257 1.1 mrg fi
1258 1.1 mrg
1259 1.1 mrg if test -z "$CC"; then
1260 1.1 mrg if test -n "$ac_tool_prefix"; then
1261 1.1 mrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1262 1.1 mrg set dummy ${ac_tool_prefix}cc; ac_word=$2
1263 1.1 mrg echo "$as_me:1263: checking for $ac_word" >&5
1264 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1265 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1266 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1267 1.1 mrg else
1268 1.1 mrg if test -n "$CC"; then
1269 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1270 1.1 mrg else
1271 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1272 1.1 mrg ac_dummy="$PATH"
1273 1.1 mrg for ac_dir in $ac_dummy; do
1274 1.1 mrg IFS=$ac_save_IFS
1275 1.1 mrg test -z "$ac_dir" && ac_dir=.
1276 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1277 1.1 mrg ac_cv_prog_CC="${ac_tool_prefix}cc"
1278 1.1 mrg echo "$as_me:1278: found $ac_dir/$ac_word" >&5
1279 1.1 mrg break
1280 1.1 mrg done
1281 1.1 mrg
1282 1.1 mrg fi
1283 1.1 mrg fi
1284 1.1 mrg CC=$ac_cv_prog_CC
1285 1.1 mrg if test -n "$CC"; then
1286 1.1 mrg echo "$as_me:1286: result: $CC" >&5
1287 1.1 mrg echo "${ECHO_T}$CC" >&6
1288 1.1 mrg else
1289 1.1 mrg echo "$as_me:1289: result: no" >&5
1290 1.1 mrg echo "${ECHO_T}no" >&6
1291 1.1 mrg fi
1292 1.1 mrg
1293 1.1 mrg fi
1294 1.1 mrg if test -z "$ac_cv_prog_CC"; then
1295 1.1 mrg ac_ct_CC=$CC
1296 1.1 mrg # Extract the first word of "cc", so it can be a program name with args.
1297 1.1 mrg set dummy cc; ac_word=$2
1298 1.1 mrg echo "$as_me:1298: checking for $ac_word" >&5
1299 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 1.1 mrg if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1301 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1302 1.1 mrg else
1303 1.1 mrg if test -n "$ac_ct_CC"; then
1304 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1305 1.1 mrg else
1306 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1307 1.1 mrg ac_dummy="$PATH"
1308 1.1 mrg for ac_dir in $ac_dummy; do
1309 1.1 mrg IFS=$ac_save_IFS
1310 1.1 mrg test -z "$ac_dir" && ac_dir=.
1311 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1312 1.1 mrg ac_cv_prog_ac_ct_CC="cc"
1313 1.1 mrg echo "$as_me:1313: found $ac_dir/$ac_word" >&5
1314 1.1 mrg break
1315 1.1 mrg done
1316 1.1 mrg
1317 1.1 mrg fi
1318 1.1 mrg fi
1319 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
1320 1.1 mrg if test -n "$ac_ct_CC"; then
1321 1.1 mrg echo "$as_me:1321: result: $ac_ct_CC" >&5
1322 1.1 mrg echo "${ECHO_T}$ac_ct_CC" >&6
1323 1.1 mrg else
1324 1.1 mrg echo "$as_me:1324: result: no" >&5
1325 1.1 mrg echo "${ECHO_T}no" >&6
1326 1.1 mrg fi
1327 1.1 mrg
1328 1.1 mrg CC=$ac_ct_CC
1329 1.1 mrg else
1330 1.1 mrg CC="$ac_cv_prog_CC"
1331 1.1 mrg fi
1332 1.1 mrg
1333 1.1 mrg fi
1334 1.1 mrg if test -z "$CC"; then
1335 1.1 mrg # Extract the first word of "cc", so it can be a program name with args.
1336 1.1 mrg set dummy cc; ac_word=$2
1337 1.1 mrg echo "$as_me:1337: checking for $ac_word" >&5
1338 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1339 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1340 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1341 1.1 mrg else
1342 1.1 mrg if test -n "$CC"; then
1343 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1344 1.1 mrg else
1345 1.1 mrg ac_prog_rejected=no
1346 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1347 1.1 mrg ac_dummy="$PATH"
1348 1.1 mrg for ac_dir in $ac_dummy; do
1349 1.1 mrg IFS=$ac_save_IFS
1350 1.1 mrg test -z "$ac_dir" && ac_dir=.
1351 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1352 1.1 mrg if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1353 1.1 mrg ac_prog_rejected=yes
1354 1.1 mrg continue
1355 1.1 mrg fi
1356 1.1 mrg ac_cv_prog_CC="cc"
1357 1.1 mrg echo "$as_me:1357: found $ac_dir/$ac_word" >&5
1358 1.1 mrg break
1359 1.1 mrg done
1360 1.1 mrg
1361 1.1 mrg if test $ac_prog_rejected = yes; then
1362 1.1 mrg # We found a bogon in the path, so make sure we never use it.
1363 1.1 mrg set dummy $ac_cv_prog_CC
1364 1.1 mrg shift
1365 1.1 mrg if test $# != 0; then
1366 1.1 mrg # We chose a different compiler from the bogus one.
1367 1.1 mrg # However, it has the same basename, so the bogon will be chosen
1368 1.1 mrg # first if we set CC to just the basename; use the full file name.
1369 1.1 mrg shift
1370 1.1 mrg set dummy "$ac_dir/$ac_word" ${1+"$@"}
1371 1.1 mrg shift
1372 1.1 mrg ac_cv_prog_CC="$@"
1373 1.1 mrg fi
1374 1.1 mrg fi
1375 1.1 mrg fi
1376 1.1 mrg fi
1377 1.1 mrg CC=$ac_cv_prog_CC
1378 1.1 mrg if test -n "$CC"; then
1379 1.1 mrg echo "$as_me:1379: result: $CC" >&5
1380 1.1 mrg echo "${ECHO_T}$CC" >&6
1381 1.1 mrg else
1382 1.1 mrg echo "$as_me:1382: result: no" >&5
1383 1.1 mrg echo "${ECHO_T}no" >&6
1384 1.1 mrg fi
1385 1.1 mrg
1386 1.1 mrg fi
1387 1.1 mrg if test -z "$CC"; then
1388 1.1 mrg if test -n "$ac_tool_prefix"; then
1389 1.1 mrg for ac_prog in cl
1390 1.1 mrg do
1391 1.1 mrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1392 1.1 mrg set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1393 1.1 mrg echo "$as_me:1393: checking for $ac_word" >&5
1394 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1396 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1397 1.1 mrg else
1398 1.1 mrg if test -n "$CC"; then
1399 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1400 1.1 mrg else
1401 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1402 1.1 mrg ac_dummy="$PATH"
1403 1.1 mrg for ac_dir in $ac_dummy; do
1404 1.1 mrg IFS=$ac_save_IFS
1405 1.1 mrg test -z "$ac_dir" && ac_dir=.
1406 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1407 1.1 mrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1408 1.1 mrg echo "$as_me:1408: found $ac_dir/$ac_word" >&5
1409 1.1 mrg break
1410 1.1 mrg done
1411 1.1 mrg
1412 1.1 mrg fi
1413 1.1 mrg fi
1414 1.1 mrg CC=$ac_cv_prog_CC
1415 1.1 mrg if test -n "$CC"; then
1416 1.1 mrg echo "$as_me:1416: result: $CC" >&5
1417 1.1 mrg echo "${ECHO_T}$CC" >&6
1418 1.1 mrg else
1419 1.1 mrg echo "$as_me:1419: result: no" >&5
1420 1.1 mrg echo "${ECHO_T}no" >&6
1421 1.1 mrg fi
1422 1.1 mrg
1423 1.1 mrg test -n "$CC" && break
1424 1.1 mrg done
1425 1.1 mrg fi
1426 1.1 mrg if test -z "$CC"; then
1427 1.1 mrg ac_ct_CC=$CC
1428 1.1 mrg for ac_prog in cl
1429 1.1 mrg do
1430 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
1431 1.1 mrg set dummy $ac_prog; ac_word=$2
1432 1.1 mrg echo "$as_me:1432: checking for $ac_word" >&5
1433 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434 1.1 mrg if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1435 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1436 1.1 mrg else
1437 1.1 mrg if test -n "$ac_ct_CC"; then
1438 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1439 1.1 mrg else
1440 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1441 1.1 mrg ac_dummy="$PATH"
1442 1.1 mrg for ac_dir in $ac_dummy; do
1443 1.1 mrg IFS=$ac_save_IFS
1444 1.1 mrg test -z "$ac_dir" && ac_dir=.
1445 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1446 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_prog"
1447 1.1 mrg echo "$as_me:1447: found $ac_dir/$ac_word" >&5
1448 1.1 mrg break
1449 1.1 mrg done
1450 1.1 mrg
1451 1.1 mrg fi
1452 1.1 mrg fi
1453 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454 1.1 mrg if test -n "$ac_ct_CC"; then
1455 1.1 mrg echo "$as_me:1455: result: $ac_ct_CC" >&5
1456 1.1 mrg echo "${ECHO_T}$ac_ct_CC" >&6
1457 1.1 mrg else
1458 1.1 mrg echo "$as_me:1458: result: no" >&5
1459 1.1 mrg echo "${ECHO_T}no" >&6
1460 1.1 mrg fi
1461 1.1 mrg
1462 1.1 mrg test -n "$ac_ct_CC" && break
1463 1.1 mrg done
1464 1.1 mrg
1465 1.1 mrg CC=$ac_ct_CC
1466 1.1 mrg fi
1467 1.1 mrg
1468 1.1 mrg fi
1469 1.1 mrg
1470 1.1 mrg test -z "$CC" && { { echo "$as_me:1470: error: no acceptable cc found in \$PATH" >&5
1471 1.1 mrg echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1472 1.1 mrg { (exit 1); exit 1; }; }
1473 1.1 mrg
1474 1.1 mrg # Provide some information about the compiler.
1475 1.1 mrg echo "$as_me:1475:" \
1476 1.1 mrg "checking for C compiler version" >&5
1477 1.1 mrg ac_compiler=`set X $ac_compile; echo $2`
1478 1.1 mrg { (eval echo "$as_me:1478: \"$ac_compiler --version </dev/null >&5\"") >&5
1479 1.1 mrg (eval $ac_compiler --version </dev/null >&5) 2>&5
1480 1.1 mrg ac_status=$?
1481 1.1 mrg echo "$as_me:1481: \$? = $ac_status" >&5
1482 1.1 mrg (exit $ac_status); }
1483 1.1 mrg { (eval echo "$as_me:1483: \"$ac_compiler -v </dev/null >&5\"") >&5
1484 1.1 mrg (eval $ac_compiler -v </dev/null >&5) 2>&5
1485 1.1 mrg ac_status=$?
1486 1.1 mrg echo "$as_me:1486: \$? = $ac_status" >&5
1487 1.1 mrg (exit $ac_status); }
1488 1.1 mrg { (eval echo "$as_me:1488: \"$ac_compiler -V </dev/null >&5\"") >&5
1489 1.1 mrg (eval $ac_compiler -V </dev/null >&5) 2>&5
1490 1.1 mrg ac_status=$?
1491 1.1 mrg echo "$as_me:1491: \$? = $ac_status" >&5
1492 1.1 mrg (exit $ac_status); }
1493 1.1 mrg
1494 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1495 1.1 mrg #line 1495 "configure"
1496 1.1 mrg #include "confdefs.h"
1497 1.1 mrg
1498 1.1 mrg int
1499 1.1 mrg main ()
1500 1.1 mrg {
1501 1.1 mrg
1502 1.1 mrg ;
1503 1.1 mrg return 0;
1504 1.1 mrg }
1505 1.1 mrg _ACEOF
1506 1.1 mrg ac_clean_files_save=$ac_clean_files
1507 1.1 mrg ac_clean_files="$ac_clean_files a.out a.exe"
1508 1.1 mrg # Try to create an executable without -o first, disregard a.out.
1509 1.1 mrg # It will help us diagnose broken compilers, and finding out an intuition
1510 1.1 mrg # of exeext.
1511 1.1 mrg echo "$as_me:1511: checking for C compiler default output" >&5
1512 1.1 mrg echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1513 1.1 mrg ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1514 1.1 mrg if { (eval echo "$as_me:1514: \"$ac_link_default\"") >&5
1515 1.1 mrg (eval $ac_link_default) 2>&5
1516 1.1 mrg ac_status=$?
1517 1.1 mrg echo "$as_me:1517: \$? = $ac_status" >&5
1518 1.1 mrg (exit $ac_status); }; then
1519 1.1 mrg # Find the output, starting from the most likely. This scheme is
1520 1.1 mrg # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1521 1.1 mrg # resort.
1522 1.1 mrg for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1523 1.1 mrg ls a.out conftest 2>/dev/null;
1524 1.1 mrg ls a.* conftest.* 2>/dev/null`; do
1525 1.1 mrg case $ac_file in
1526 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1527 1.1 mrg a.out ) # We found the default executable, but exeext='' is most
1528 1.1 mrg # certainly right.
1529 1.1 mrg break;;
1530 1.1 mrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1531 1.1 mrg # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1532 1.1 mrg export ac_cv_exeext
1533 1.1 mrg break;;
1534 1.1 mrg * ) break;;
1535 1.1 mrg esac
1536 1.1 mrg done
1537 1.1 mrg else
1538 1.1 mrg echo "$as_me: failed program was:" >&5
1539 1.1 mrg cat conftest.$ac_ext >&5
1540 1.1 mrg { { echo "$as_me:1540: error: C compiler cannot create executables" >&5
1541 1.1 mrg echo "$as_me: error: C compiler cannot create executables" >&2;}
1542 1.1 mrg { (exit 77); exit 77; }; }
1543 1.1 mrg fi
1544 1.1 mrg
1545 1.1 mrg ac_exeext=$ac_cv_exeext
1546 1.1 mrg echo "$as_me:1546: result: $ac_file" >&5
1547 1.1 mrg echo "${ECHO_T}$ac_file" >&6
1548 1.1 mrg
1549 1.1 mrg # Check the compiler produces executables we can run. If not, either
1550 1.1 mrg # the compiler is broken, or we cross compile.
1551 1.1 mrg echo "$as_me:1551: checking whether the C compiler works" >&5
1552 1.1 mrg echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1553 1.1 mrg # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1554 1.1 mrg # If not cross compiling, check that we can run a simple program.
1555 1.1 mrg if test "$cross_compiling" != yes; then
1556 1.1 mrg if { ac_try='./$ac_file'
1557 1.1 mrg { (eval echo "$as_me:1557: \"$ac_try\"") >&5
1558 1.1 mrg (eval $ac_try) 2>&5
1559 1.1 mrg ac_status=$?
1560 1.1 mrg echo "$as_me:1560: \$? = $ac_status" >&5
1561 1.1 mrg (exit $ac_status); }; }; then
1562 1.1 mrg cross_compiling=no
1563 1.1 mrg else
1564 1.1 mrg if test "$cross_compiling" = maybe; then
1565 1.1 mrg cross_compiling=yes
1566 1.1 mrg else
1567 1.1 mrg { { echo "$as_me:1567: error: cannot run C compiled programs.
1568 1.1 mrg If you meant to cross compile, use \`--host'." >&5
1569 1.1 mrg echo "$as_me: error: cannot run C compiled programs.
1570 1.1 mrg If you meant to cross compile, use \`--host'." >&2;}
1571 1.1 mrg { (exit 1); exit 1; }; }
1572 1.1 mrg fi
1573 1.1 mrg fi
1574 1.1 mrg fi
1575 1.1 mrg echo "$as_me:1575: result: yes" >&5
1576 1.1 mrg echo "${ECHO_T}yes" >&6
1577 1.1 mrg
1578 1.1 mrg rm -f a.out a.exe conftest$ac_cv_exeext
1579 1.1 mrg ac_clean_files=$ac_clean_files_save
1580 1.1 mrg # Check the compiler produces executables we can run. If not, either
1581 1.1 mrg # the compiler is broken, or we cross compile.
1582 1.1 mrg echo "$as_me:1582: checking whether we are cross compiling" >&5
1583 1.1 mrg echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1584 1.1 mrg echo "$as_me:1584: result: $cross_compiling" >&5
1585 1.1 mrg echo "${ECHO_T}$cross_compiling" >&6
1586 1.1 mrg
1587 1.1 mrg echo "$as_me:1587: checking for executable suffix" >&5
1588 1.1 mrg echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1589 1.1 mrg if { (eval echo "$as_me:1589: \"$ac_link\"") >&5
1590 1.1 mrg (eval $ac_link) 2>&5
1591 1.1 mrg ac_status=$?
1592 1.1 mrg echo "$as_me:1592: \$? = $ac_status" >&5
1593 1.1 mrg (exit $ac_status); }; then
1594 1.1 mrg # If both `conftest.exe' and `conftest' are `present' (well, observable)
1595 1.1 mrg # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1596 1.1 mrg # work properly (i.e., refer to `conftest.exe'), while it won't with
1597 1.1 mrg # `rm'.
1598 1.1 mrg for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1599 1.1 mrg case $ac_file in
1600 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1601 1.1 mrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1602 1.1 mrg export ac_cv_exeext
1603 1.1 mrg break;;
1604 1.1 mrg * ) break;;
1605 1.1 mrg esac
1606 1.1 mrg done
1607 1.1 mrg else
1608 1.1 mrg { { echo "$as_me:1608: error: cannot compute EXEEXT: cannot compile and link" >&5
1609 1.1 mrg echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1610 1.1 mrg { (exit 1); exit 1; }; }
1611 1.1 mrg fi
1612 1.1 mrg
1613 1.1 mrg rm -f conftest$ac_cv_exeext
1614 1.1 mrg echo "$as_me:1614: result: $ac_cv_exeext" >&5
1615 1.1 mrg echo "${ECHO_T}$ac_cv_exeext" >&6
1616 1.1 mrg
1617 1.1 mrg rm -f conftest.$ac_ext
1618 1.1 mrg EXEEXT=$ac_cv_exeext
1619 1.1 mrg ac_exeext=$EXEEXT
1620 1.1 mrg echo "$as_me:1620: checking for object suffix" >&5
1621 1.1 mrg echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1622 1.1 mrg if test "${ac_cv_objext+set}" = set; then
1623 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1624 1.1 mrg else
1625 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1626 1.1 mrg #line 1626 "configure"
1627 1.1 mrg #include "confdefs.h"
1628 1.1 mrg
1629 1.1 mrg int
1630 1.1 mrg main ()
1631 1.1 mrg {
1632 1.1 mrg
1633 1.1 mrg ;
1634 1.1 mrg return 0;
1635 1.1 mrg }
1636 1.1 mrg _ACEOF
1637 1.1 mrg rm -f conftest.o conftest.obj
1638 1.1 mrg if { (eval echo "$as_me:1638: \"$ac_compile\"") >&5
1639 1.1 mrg (eval $ac_compile) 2>&5
1640 1.1 mrg ac_status=$?
1641 1.1 mrg echo "$as_me:1641: \$? = $ac_status" >&5
1642 1.1 mrg (exit $ac_status); }; then
1643 1.1 mrg for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1644 1.1 mrg case $ac_file in
1645 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1646 1.1 mrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1647 1.1 mrg break;;
1648 1.1 mrg esac
1649 1.1 mrg done
1650 1.1 mrg else
1651 1.1 mrg echo "$as_me: failed program was:" >&5
1652 1.1 mrg cat conftest.$ac_ext >&5
1653 1.1 mrg { { echo "$as_me:1653: error: cannot compute OBJEXT: cannot compile" >&5
1654 1.1 mrg echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1655 1.1 mrg { (exit 1); exit 1; }; }
1656 1.1 mrg fi
1657 1.1 mrg
1658 1.1 mrg rm -f conftest.$ac_cv_objext conftest.$ac_ext
1659 1.1 mrg fi
1660 1.1 mrg echo "$as_me:1660: result: $ac_cv_objext" >&5
1661 1.1 mrg echo "${ECHO_T}$ac_cv_objext" >&6
1662 1.1 mrg OBJEXT=$ac_cv_objext
1663 1.1 mrg ac_objext=$OBJEXT
1664 1.1 mrg echo "$as_me:1664: checking whether we are using the GNU C compiler" >&5
1665 1.1 mrg echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1666 1.1 mrg if test "${ac_cv_c_compiler_gnu+set}" = set; then
1667 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1668 1.1 mrg else
1669 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1670 1.1 mrg #line 1670 "configure"
1671 1.1 mrg #include "confdefs.h"
1672 1.1 mrg
1673 1.1 mrg int
1674 1.1 mrg main ()
1675 1.1 mrg {
1676 1.1 mrg #ifndef __GNUC__
1677 1.1 mrg choke me
1678 1.1 mrg #endif
1679 1.1 mrg
1680 1.1 mrg ;
1681 1.1 mrg return 0;
1682 1.1 mrg }
1683 1.1 mrg _ACEOF
1684 1.1 mrg rm -f conftest.$ac_objext
1685 1.1 mrg if { (eval echo "$as_me:1685: \"$ac_compile\"") >&5
1686 1.1 mrg (eval $ac_compile) 2>&5
1687 1.1 mrg ac_status=$?
1688 1.1 mrg echo "$as_me:1688: \$? = $ac_status" >&5
1689 1.1 mrg (exit $ac_status); } &&
1690 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1691 1.1 mrg { (eval echo "$as_me:1691: \"$ac_try\"") >&5
1692 1.1 mrg (eval $ac_try) 2>&5
1693 1.1 mrg ac_status=$?
1694 1.1 mrg echo "$as_me:1694: \$? = $ac_status" >&5
1695 1.1 mrg (exit $ac_status); }; }; then
1696 1.1 mrg ac_compiler_gnu=yes
1697 1.1 mrg else
1698 1.1 mrg echo "$as_me: failed program was:" >&5
1699 1.1 mrg cat conftest.$ac_ext >&5
1700 1.1 mrg ac_compiler_gnu=no
1701 1.1 mrg fi
1702 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1703 1.1 mrg ac_cv_c_compiler_gnu=$ac_compiler_gnu
1704 1.1 mrg
1705 1.1 mrg fi
1706 1.1 mrg echo "$as_me:1706: result: $ac_cv_c_compiler_gnu" >&5
1707 1.1 mrg echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1708 1.1 mrg GCC=`test $ac_compiler_gnu = yes && echo yes`
1709 1.1 mrg ac_test_CFLAGS=${CFLAGS+set}
1710 1.1 mrg ac_save_CFLAGS=$CFLAGS
1711 1.1 mrg CFLAGS="-g"
1712 1.1 mrg echo "$as_me:1712: checking whether $CC accepts -g" >&5
1713 1.1 mrg echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1714 1.1 mrg if test "${ac_cv_prog_cc_g+set}" = set; then
1715 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1716 1.1 mrg else
1717 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1718 1.1 mrg #line 1718 "configure"
1719 1.1 mrg #include "confdefs.h"
1720 1.1 mrg
1721 1.1 mrg int
1722 1.1 mrg main ()
1723 1.1 mrg {
1724 1.1 mrg
1725 1.1 mrg ;
1726 1.1 mrg return 0;
1727 1.1 mrg }
1728 1.1 mrg _ACEOF
1729 1.1 mrg rm -f conftest.$ac_objext
1730 1.1 mrg if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731 1.1 mrg (eval $ac_compile) 2>&5
1732 1.1 mrg ac_status=$?
1733 1.1 mrg echo "$as_me:1733: \$? = $ac_status" >&5
1734 1.1 mrg (exit $ac_status); } &&
1735 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1736 1.1 mrg { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1737 1.1 mrg (eval $ac_try) 2>&5
1738 1.1 mrg ac_status=$?
1739 1.1 mrg echo "$as_me:1739: \$? = $ac_status" >&5
1740 1.1 mrg (exit $ac_status); }; }; then
1741 1.1 mrg ac_cv_prog_cc_g=yes
1742 1.1 mrg else
1743 1.1 mrg echo "$as_me: failed program was:" >&5
1744 1.1 mrg cat conftest.$ac_ext >&5
1745 1.1 mrg ac_cv_prog_cc_g=no
1746 1.1 mrg fi
1747 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1748 1.1 mrg fi
1749 1.1 mrg echo "$as_me:1749: result: $ac_cv_prog_cc_g" >&5
1750 1.1 mrg echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1751 1.1 mrg if test "$ac_test_CFLAGS" = set; then
1752 1.1 mrg CFLAGS=$ac_save_CFLAGS
1753 1.1 mrg elif test $ac_cv_prog_cc_g = yes; then
1754 1.1 mrg if test "$GCC" = yes; then
1755 1.1 mrg CFLAGS="-g -O2"
1756 1.1 mrg else
1757 1.1 mrg CFLAGS="-g"
1758 1.1 mrg fi
1759 1.1 mrg else
1760 1.1 mrg if test "$GCC" = yes; then
1761 1.1 mrg CFLAGS="-O2"
1762 1.1 mrg else
1763 1.1 mrg CFLAGS=
1764 1.1 mrg fi
1765 1.1 mrg fi
1766 1.1 mrg # Some people use a C++ compiler to compile C. Since we use `exit',
1767 1.1 mrg # in C++ we need to declare it. In case someone uses the same compiler
1768 1.1 mrg # for both compiling C and C++ we need to have the C++ compiler decide
1769 1.1 mrg # the declaration of exit, since it's the most demanding environment.
1770 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1771 1.1 mrg #ifndef __cplusplus
1772 1.1 mrg choke me
1773 1.1 mrg #endif
1774 1.1 mrg _ACEOF
1775 1.1 mrg rm -f conftest.$ac_objext
1776 1.1 mrg if { (eval echo "$as_me:1776: \"$ac_compile\"") >&5
1777 1.1 mrg (eval $ac_compile) 2>&5
1778 1.1 mrg ac_status=$?
1779 1.1 mrg echo "$as_me:1779: \$? = $ac_status" >&5
1780 1.1 mrg (exit $ac_status); } &&
1781 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1782 1.1 mrg { (eval echo "$as_me:1782: \"$ac_try\"") >&5
1783 1.1 mrg (eval $ac_try) 2>&5
1784 1.1 mrg ac_status=$?
1785 1.1 mrg echo "$as_me:1785: \$? = $ac_status" >&5
1786 1.1 mrg (exit $ac_status); }; }; then
1787 1.1 mrg for ac_declaration in \
1788 1.1 mrg ''\
1789 1.1 mrg '#include <stdlib.h>' \
1790 1.1 mrg 'extern "C" void std::exit (int) throw (); using std::exit;' \
1791 1.1 mrg 'extern "C" void std::exit (int); using std::exit;' \
1792 1.1 mrg 'extern "C" void exit (int) throw ();' \
1793 1.1 mrg 'extern "C" void exit (int);' \
1794 1.1 mrg 'void exit (int);'
1795 1.1 mrg do
1796 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1797 1.1 mrg #line 1797 "configure"
1798 1.1 mrg #include "confdefs.h"
1799 1.1 mrg #include <stdlib.h>
1800 1.1 mrg $ac_declaration
1801 1.1 mrg int
1802 1.1 mrg main ()
1803 1.1 mrg {
1804 1.1 mrg exit (42);
1805 1.1 mrg ;
1806 1.1 mrg return 0;
1807 1.1 mrg }
1808 1.1 mrg _ACEOF
1809 1.1 mrg rm -f conftest.$ac_objext
1810 1.1 mrg if { (eval echo "$as_me:1810: \"$ac_compile\"") >&5
1811 1.1 mrg (eval $ac_compile) 2>&5
1812 1.1 mrg ac_status=$?
1813 1.1 mrg echo "$as_me:1813: \$? = $ac_status" >&5
1814 1.1 mrg (exit $ac_status); } &&
1815 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1816 1.1 mrg { (eval echo "$as_me:1816: \"$ac_try\"") >&5
1817 1.1 mrg (eval $ac_try) 2>&5
1818 1.1 mrg ac_status=$?
1819 1.1 mrg echo "$as_me:1819: \$? = $ac_status" >&5
1820 1.1 mrg (exit $ac_status); }; }; then
1821 1.1 mrg :
1822 1.1 mrg else
1823 1.1 mrg echo "$as_me: failed program was:" >&5
1824 1.1 mrg cat conftest.$ac_ext >&5
1825 1.1 mrg continue
1826 1.1 mrg fi
1827 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1828 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1829 1.1 mrg #line 1829 "configure"
1830 1.1 mrg #include "confdefs.h"
1831 1.1 mrg $ac_declaration
1832 1.1 mrg int
1833 1.1 mrg main ()
1834 1.1 mrg {
1835 1.1 mrg exit (42);
1836 1.1 mrg ;
1837 1.1 mrg return 0;
1838 1.1 mrg }
1839 1.1 mrg _ACEOF
1840 1.1 mrg rm -f conftest.$ac_objext
1841 1.1 mrg if { (eval echo "$as_me:1841: \"$ac_compile\"") >&5
1842 1.1 mrg (eval $ac_compile) 2>&5
1843 1.1 mrg ac_status=$?
1844 1.1 mrg echo "$as_me:1844: \$? = $ac_status" >&5
1845 1.1 mrg (exit $ac_status); } &&
1846 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1847 1.1 mrg { (eval echo "$as_me:1847: \"$ac_try\"") >&5
1848 1.1 mrg (eval $ac_try) 2>&5
1849 1.1 mrg ac_status=$?
1850 1.1 mrg echo "$as_me:1850: \$? = $ac_status" >&5
1851 1.1 mrg (exit $ac_status); }; }; then
1852 1.1 mrg break
1853 1.1 mrg else
1854 1.1 mrg echo "$as_me: failed program was:" >&5
1855 1.1 mrg cat conftest.$ac_ext >&5
1856 1.1 mrg fi
1857 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1858 1.1 mrg done
1859 1.1 mrg rm -f conftest*
1860 1.1 mrg if test -n "$ac_declaration"; then
1861 1.1 mrg echo '#ifdef __cplusplus' >>confdefs.h
1862 1.1 mrg echo $ac_declaration >>confdefs.h
1863 1.1 mrg echo '#endif' >>confdefs.h
1864 1.1 mrg fi
1865 1.1 mrg
1866 1.1 mrg else
1867 1.1 mrg echo "$as_me: failed program was:" >&5
1868 1.1 mrg cat conftest.$ac_ext >&5
1869 1.1 mrg fi
1870 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1871 1.1 mrg ac_ext=c
1872 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1873 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 1.1 mrg ac_main_return=return
1877 1.1 mrg
1878 1.1 mrg ac_ext=c
1879 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1880 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1881 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1882 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 1.1 mrg ac_main_return=return
1884 1.1 mrg echo "$as_me:1884: checking how to run the C preprocessor" >&5
1885 1.1 mrg echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1886 1.1 mrg # On Suns, sometimes $CPP names a directory.
1887 1.1 mrg if test -n "$CPP" && test -d "$CPP"; then
1888 1.1 mrg CPP=
1889 1.1 mrg fi
1890 1.1 mrg if test -z "$CPP"; then
1891 1.1 mrg if test "${ac_cv_prog_CPP+set}" = set; then
1892 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1893 1.1 mrg else
1894 1.1 mrg # Double quotes because CPP needs to be expanded
1895 1.1 mrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1896 1.1 mrg do
1897 1.1 mrg ac_preproc_ok=false
1898 1.1 mrg for ac_c_preproc_warn_flag in '' yes
1899 1.1 mrg do
1900 1.1 mrg # Use a header file that comes with gcc, so configuring glibc
1901 1.1 mrg # with a fresh cross-compiler works.
1902 1.1 mrg # On the NeXT, cc -E runs the code through the compiler's parser,
1903 1.1 mrg # not just through cpp. "Syntax error" is here to catch this case.
1904 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1905 1.1 mrg #line 1905 "configure"
1906 1.1 mrg #include "confdefs.h"
1907 1.1 mrg #include <assert.h>
1908 1.1 mrg Syntax error
1909 1.1 mrg _ACEOF
1910 1.1 mrg if { (eval echo "$as_me:1910: \"$ac_cpp conftest.$ac_ext\"") >&5
1911 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1912 1.1 mrg ac_status=$?
1913 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
1914 1.1 mrg rm -f conftest.er1
1915 1.1 mrg cat conftest.err >&5
1916 1.1 mrg echo "$as_me:1916: \$? = $ac_status" >&5
1917 1.1 mrg (exit $ac_status); } >/dev/null; then
1918 1.1 mrg if test -s conftest.err; then
1919 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
1920 1.1 mrg else
1921 1.1 mrg ac_cpp_err=
1922 1.1 mrg fi
1923 1.1 mrg else
1924 1.1 mrg ac_cpp_err=yes
1925 1.1 mrg fi
1926 1.1 mrg if test -z "$ac_cpp_err"; then
1927 1.1 mrg :
1928 1.1 mrg else
1929 1.1 mrg echo "$as_me: failed program was:" >&5
1930 1.1 mrg cat conftest.$ac_ext >&5
1931 1.1 mrg # Broken: fails on valid input.
1932 1.1 mrg continue
1933 1.1 mrg fi
1934 1.1 mrg rm -f conftest.err conftest.$ac_ext
1935 1.1 mrg
1936 1.1 mrg # OK, works on sane cases. Now check whether non-existent headers
1937 1.1 mrg # can be detected and how.
1938 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1939 1.1 mrg #line 1939 "configure"
1940 1.1 mrg #include "confdefs.h"
1941 1.1 mrg #include <ac_nonexistent.h>
1942 1.1 mrg _ACEOF
1943 1.1 mrg if { (eval echo "$as_me:1943: \"$ac_cpp conftest.$ac_ext\"") >&5
1944 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1945 1.1 mrg ac_status=$?
1946 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
1947 1.1 mrg rm -f conftest.er1
1948 1.1 mrg cat conftest.err >&5
1949 1.1 mrg echo "$as_me:1949: \$? = $ac_status" >&5
1950 1.1 mrg (exit $ac_status); } >/dev/null; then
1951 1.1 mrg if test -s conftest.err; then
1952 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
1953 1.1 mrg else
1954 1.1 mrg ac_cpp_err=
1955 1.1 mrg fi
1956 1.1 mrg else
1957 1.1 mrg ac_cpp_err=yes
1958 1.1 mrg fi
1959 1.1 mrg if test -z "$ac_cpp_err"; then
1960 1.1 mrg # Broken: success on invalid input.
1961 1.1 mrg continue
1962 1.1 mrg else
1963 1.1 mrg echo "$as_me: failed program was:" >&5
1964 1.1 mrg cat conftest.$ac_ext >&5
1965 1.1 mrg # Passes both tests.
1966 1.1 mrg ac_preproc_ok=:
1967 1.1 mrg break
1968 1.1 mrg fi
1969 1.1 mrg rm -f conftest.err conftest.$ac_ext
1970 1.1 mrg
1971 1.1 mrg done
1972 1.1 mrg # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1973 1.1 mrg rm -f conftest.err conftest.$ac_ext
1974 1.1 mrg if $ac_preproc_ok; then
1975 1.1 mrg break
1976 1.1 mrg fi
1977 1.1 mrg
1978 1.1 mrg done
1979 1.1 mrg ac_cv_prog_CPP=$CPP
1980 1.1 mrg
1981 1.1 mrg fi
1982 1.1 mrg CPP=$ac_cv_prog_CPP
1983 1.1 mrg else
1984 1.1 mrg ac_cv_prog_CPP=$CPP
1985 1.1 mrg fi
1986 1.1 mrg echo "$as_me:1986: result: $CPP" >&5
1987 1.1 mrg echo "${ECHO_T}$CPP" >&6
1988 1.1 mrg ac_preproc_ok=false
1989 1.1 mrg for ac_c_preproc_warn_flag in '' yes
1990 1.1 mrg do
1991 1.1 mrg # Use a header file that comes with gcc, so configuring glibc
1992 1.1 mrg # with a fresh cross-compiler works.
1993 1.1 mrg # On the NeXT, cc -E runs the code through the compiler's parser,
1994 1.1 mrg # not just through cpp. "Syntax error" is here to catch this case.
1995 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1996 1.1 mrg #line 1996 "configure"
1997 1.1 mrg #include "confdefs.h"
1998 1.1 mrg #include <assert.h>
1999 1.1 mrg Syntax error
2000 1.1 mrg _ACEOF
2001 1.1 mrg if { (eval echo "$as_me:2001: \"$ac_cpp conftest.$ac_ext\"") >&5
2002 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2003 1.1 mrg ac_status=$?
2004 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
2005 1.1 mrg rm -f conftest.er1
2006 1.1 mrg cat conftest.err >&5
2007 1.1 mrg echo "$as_me:2007: \$? = $ac_status" >&5
2008 1.1 mrg (exit $ac_status); } >/dev/null; then
2009 1.1 mrg if test -s conftest.err; then
2010 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
2011 1.1 mrg else
2012 1.1 mrg ac_cpp_err=
2013 1.1 mrg fi
2014 1.1 mrg else
2015 1.1 mrg ac_cpp_err=yes
2016 1.1 mrg fi
2017 1.1 mrg if test -z "$ac_cpp_err"; then
2018 1.1 mrg :
2019 1.1 mrg else
2020 1.1 mrg echo "$as_me: failed program was:" >&5
2021 1.1 mrg cat conftest.$ac_ext >&5
2022 1.1 mrg # Broken: fails on valid input.
2023 1.1 mrg continue
2024 1.1 mrg fi
2025 1.1 mrg rm -f conftest.err conftest.$ac_ext
2026 1.1 mrg
2027 1.1 mrg # OK, works on sane cases. Now check whether non-existent headers
2028 1.1 mrg # can be detected and how.
2029 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2030 1.1 mrg #line 2030 "configure"
2031 1.1 mrg #include "confdefs.h"
2032 1.1 mrg #include <ac_nonexistent.h>
2033 1.1 mrg _ACEOF
2034 1.1 mrg if { (eval echo "$as_me:2034: \"$ac_cpp conftest.$ac_ext\"") >&5
2035 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2036 1.1 mrg ac_status=$?
2037 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
2038 1.1 mrg rm -f conftest.er1
2039 1.1 mrg cat conftest.err >&5
2040 1.1 mrg echo "$as_me:2040: \$? = $ac_status" >&5
2041 1.1 mrg (exit $ac_status); } >/dev/null; then
2042 1.1 mrg if test -s conftest.err; then
2043 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
2044 1.1 mrg else
2045 1.1 mrg ac_cpp_err=
2046 1.1 mrg fi
2047 1.1 mrg else
2048 1.1 mrg ac_cpp_err=yes
2049 1.1 mrg fi
2050 1.1 mrg if test -z "$ac_cpp_err"; then
2051 1.1 mrg # Broken: success on invalid input.
2052 1.1 mrg continue
2053 1.1 mrg else
2054 1.1 mrg echo "$as_me: failed program was:" >&5
2055 1.1 mrg cat conftest.$ac_ext >&5
2056 1.1 mrg # Passes both tests.
2057 1.1 mrg ac_preproc_ok=:
2058 1.1 mrg break
2059 1.1 mrg fi
2060 1.1 mrg rm -f conftest.err conftest.$ac_ext
2061 1.1 mrg
2062 1.1 mrg done
2063 1.1 mrg # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2064 1.1 mrg rm -f conftest.err conftest.$ac_ext
2065 1.1 mrg if $ac_preproc_ok; then
2066 1.1 mrg :
2067 1.1 mrg else
2068 1.1 mrg { { echo "$as_me:2068: error: C preprocessor \"$CPP\" fails sanity check" >&5
2069 1.1 mrg echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2070 1.1 mrg { (exit 1); exit 1; }; }
2071 1.1 mrg fi
2072 1.1 mrg
2073 1.1 mrg ac_ext=c
2074 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
2075 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078 1.1 mrg ac_main_return=return
2079 1.1 mrg
2080 1.1 mrg if test $ac_cv_c_compiler_gnu = yes; then
2081 1.1 mrg echo "$as_me:2081: checking whether $CC needs -traditional" >&5
2082 1.1 mrg echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2083 1.1 mrg if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2084 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2085 1.1 mrg else
2086 1.1 mrg ac_pattern="Autoconf.*'x'"
2087 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2088 1.1 mrg #line 2088 "configure"
2089 1.1 mrg #include "confdefs.h"
2090 1.1 mrg #include <sgtty.h>
2091 1.1 mrg int Autoconf = TIOCGETP;
2092 1.1 mrg _ACEOF
2093 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2094 1.1 mrg egrep "$ac_pattern" >/dev/null 2>&1; then
2095 1.1 mrg ac_cv_prog_gcc_traditional=yes
2096 1.1 mrg else
2097 1.1 mrg ac_cv_prog_gcc_traditional=no
2098 1.1 mrg fi
2099 1.1 mrg rm -f conftest*
2100 1.1 mrg
2101 1.1 mrg if test $ac_cv_prog_gcc_traditional = no; then
2102 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2103 1.1 mrg #line 2103 "configure"
2104 1.1 mrg #include "confdefs.h"
2105 1.1 mrg #include <termio.h>
2106 1.1 mrg int Autoconf = TCGETA;
2107 1.1 mrg _ACEOF
2108 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2109 1.1 mrg egrep "$ac_pattern" >/dev/null 2>&1; then
2110 1.1 mrg ac_cv_prog_gcc_traditional=yes
2111 1.1 mrg fi
2112 1.1 mrg rm -f conftest*
2113 1.1 mrg
2114 1.1 mrg fi
2115 1.1 mrg fi
2116 1.1 mrg echo "$as_me:2116: result: $ac_cv_prog_gcc_traditional" >&5
2117 1.1 mrg echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2118 1.1 mrg if test $ac_cv_prog_gcc_traditional = yes; then
2119 1.1 mrg CC="$CC -traditional"
2120 1.1 mrg fi
2121 1.1 mrg fi
2122 1.1 mrg
2123 1.1 mrg for ac_prog in mawk gawk nawk awk
2124 1.1 mrg do
2125 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
2126 1.1 mrg set dummy $ac_prog; ac_word=$2
2127 1.1 mrg echo "$as_me:2127: checking for $ac_word" >&5
2128 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 1.1 mrg if test "${ac_cv_prog_AWK+set}" = set; then
2130 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2131 1.1 mrg else
2132 1.1 mrg if test -n "$AWK"; then
2133 1.1 mrg ac_cv_prog_AWK="$AWK" # Let the user override the test.
2134 1.1 mrg else
2135 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
2136 1.1 mrg ac_dummy="$PATH"
2137 1.1 mrg for ac_dir in $ac_dummy; do
2138 1.1 mrg IFS=$ac_save_IFS
2139 1.1 mrg test -z "$ac_dir" && ac_dir=.
2140 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
2141 1.1 mrg ac_cv_prog_AWK="$ac_prog"
2142 1.1 mrg echo "$as_me:2142: found $ac_dir/$ac_word" >&5
2143 1.1 mrg break
2144 1.1 mrg done
2145 1.1 mrg
2146 1.1 mrg fi
2147 1.1 mrg fi
2148 1.1 mrg AWK=$ac_cv_prog_AWK
2149 1.1 mrg if test -n "$AWK"; then
2150 1.1 mrg echo "$as_me:2150: result: $AWK" >&5
2151 1.1 mrg echo "${ECHO_T}$AWK" >&6
2152 1.1 mrg else
2153 1.1 mrg echo "$as_me:2153: result: no" >&5
2154 1.1 mrg echo "${ECHO_T}no" >&6
2155 1.1 mrg fi
2156 1.1 mrg
2157 1.1 mrg test -n "$AWK" && break
2158 1.1 mrg done
2159 1.1 mrg
2160 1.1 mrg # Find a good install program. We prefer a C program (faster),
2161 1.1 mrg # so one script is as good as another. But avoid the broken or
2162 1.1 mrg # incompatible versions:
2163 1.1 mrg # SysV /etc/install, /usr/sbin/install
2164 1.1 mrg # SunOS /usr/etc/install
2165 1.1 mrg # IRIX /sbin/install
2166 1.1 mrg # AIX /bin/install
2167 1.1 mrg # AmigaOS /C/install, which installs bootblocks on floppy discs
2168 1.1 mrg # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2169 1.1 mrg # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2170 1.1 mrg # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2171 1.1 mrg # ./install, which can be erroneously created by make from ./install.sh.
2172 1.1 mrg echo "$as_me:2172: checking for a BSD compatible install" >&5
2173 1.1 mrg echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2174 1.1 mrg if test -z "$INSTALL"; then
2175 1.1 mrg if test "${ac_cv_path_install+set}" = set; then
2176 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2177 1.1 mrg else
2178 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
2179 1.1 mrg for ac_dir in $PATH; do
2180 1.1 mrg IFS=$ac_save_IFS
2181 1.1 mrg # Account for people who put trailing slashes in PATH elements.
2182 1.1 mrg case $ac_dir/ in
2183 1.1 mrg / | ./ | .// | /cC/* \
2184 1.1 mrg | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2185 1.1 mrg | /usr/ucb/* ) ;;
2186 1.1 mrg *)
2187 1.1 mrg # OSF1 and SCO ODT 3.0 have their own names for install.
2188 1.1 mrg # Don't use installbsd from OSF since it installs stuff as root
2189 1.1 mrg # by default.
2190 1.1 mrg for ac_prog in ginstall scoinst install; do
2191 1.1 mrg if $as_executable_p "$ac_dir/$ac_prog"; then
2192 1.1 mrg if test $ac_prog = install &&
2193 1.1 mrg grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2194 1.1 mrg # AIX install. It has an incompatible calling convention.
2195 1.1 mrg :
2196 1.1 mrg elif test $ac_prog = install &&
2197 1.1 mrg grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2198 1.1 mrg # program-specific install script used by HP pwplus--don't use.
2199 1.1 mrg :
2200 1.1 mrg else
2201 1.1 mrg ac_cv_path_install="$ac_dir/$ac_prog -c"
2202 1.1 mrg break 2
2203 1.1 mrg fi
2204 1.1 mrg fi
2205 1.1 mrg done
2206 1.1 mrg ;;
2207 1.1 mrg esac
2208 1.1 mrg done
2209 1.1 mrg
2210 1.1 mrg fi
2211 1.1 mrg if test "${ac_cv_path_install+set}" = set; then
2212 1.1 mrg INSTALL=$ac_cv_path_install
2213 1.1 mrg else
2214 1.1 mrg # As a last resort, use the slow shell script. We don't cache a
2215 1.1 mrg # path for INSTALL within a source directory, because that will
2216 1.1 mrg # break other packages using the cache if that directory is
2217 1.1 mrg # removed, or if the path is relative.
2218 1.1 mrg INSTALL=$ac_install_sh
2219 1.1 mrg fi
2220 1.1 mrg fi
2221 1.1 mrg echo "$as_me:2221: result: $INSTALL" >&5
2222 1.1 mrg echo "${ECHO_T}$INSTALL" >&6
2223 1.1 mrg
2224 1.1 mrg # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2225 1.1 mrg # It thinks the first close brace ends the variable substitution.
2226 1.1 mrg test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2227 1.1 mrg
2228 1.1 mrg test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2229 1.1 mrg
2230 1.1 mrg test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2231 1.1 mrg
2232 1.1 mrg echo "$as_me:2232: checking whether ln -s works" >&5
2233 1.1 mrg echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2234 1.1 mrg LN_S=$as_ln_s
2235 1.1 mrg if test "$LN_S" = "ln -s"; then
2236 1.1 mrg echo "$as_me:2236: result: yes" >&5
2237 1.1 mrg echo "${ECHO_T}yes" >&6
2238 1.1 mrg else
2239 1.1 mrg echo "$as_me:2239: result: no, using $LN_S" >&5
2240 1.1 mrg echo "${ECHO_T}no, using $LN_S" >&6
2241 1.1 mrg fi
2242 1.1 mrg
2243 1.1 mrg test "$program_prefix" != NONE &&
2244 1.1 mrg program_transform_name="s,^,$program_prefix,;$program_transform_name"
2245 1.1 mrg # Use a double $ so make ignores it.
2246 1.1 mrg test "$program_suffix" != NONE &&
2247 1.1 mrg program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2248 1.1 mrg # Double any \ or $. echo might interpret backslashes.
2249 1.1 mrg # By default was `s,x,x', remove it if useless.
2250 1.1 mrg cat <<\_ACEOF >conftest.sed
2251 1.1 mrg s/[\\$]/&&/g;s/;s,x,x,$//
2252 1.1 mrg _ACEOF
2253 1.1 mrg program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2254 1.1 mrg rm conftest.sed
2255 1.1 mrg
2256 1.1 mrg for ac_prog in tdlint lint alint
2257 1.1 mrg do
2258 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 1.1 mrg set dummy $ac_prog; ac_word=$2
2260 1.1 mrg echo "$as_me:2260: checking for $ac_word" >&5
2261 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 1.1 mrg if test "${ac_cv_prog_LINT+set}" = set; then
2263 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2264 1.1 mrg else
2265 1.1 mrg if test -n "$LINT"; then
2266 1.1 mrg ac_cv_prog_LINT="$LINT" # Let the user override the test.
2267 1.1 mrg else
2268 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
2269 1.1 mrg ac_dummy="$PATH"
2270 1.1 mrg for ac_dir in $ac_dummy; do
2271 1.1 mrg IFS=$ac_save_IFS
2272 1.1 mrg test -z "$ac_dir" && ac_dir=.
2273 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
2274 1.1 mrg ac_cv_prog_LINT="$ac_prog"
2275 1.1 mrg echo "$as_me:2275: found $ac_dir/$ac_word" >&5
2276 1.1 mrg break
2277 1.1 mrg done
2278 1.1 mrg
2279 1.1 mrg fi
2280 1.1 mrg fi
2281 1.1 mrg LINT=$ac_cv_prog_LINT
2282 1.1 mrg if test -n "$LINT"; then
2283 1.1 mrg echo "$as_me:2283: result: $LINT" >&5
2284 1.1 mrg echo "${ECHO_T}$LINT" >&6
2285 1.1 mrg else
2286 1.1 mrg echo "$as_me:2286: result: no" >&5
2287 1.1 mrg echo "${ECHO_T}no" >&6
2288 1.1 mrg fi
2289 1.1 mrg
2290 1.1 mrg test -n "$LINT" && break
2291 1.1 mrg done
2292 1.1 mrg
2293 1.1 mrg ### checks for UNIX variants that set C preprocessor variables
2294 1.1 mrg
2295 1.1 mrg echo "$as_me:2295: checking for AIX" >&5
2296 1.1 mrg echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2297 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2298 1.1 mrg #line 2298 "configure"
2299 1.1 mrg #include "confdefs.h"
2300 1.1 mrg #ifdef _AIX
2301 1.1 mrg yes
2302 1.1 mrg #endif
2303 1.1 mrg
2304 1.1 mrg _ACEOF
2305 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2306 1.1 mrg egrep "yes" >/dev/null 2>&1; then
2307 1.1 mrg echo "$as_me:2307: result: yes" >&5
2308 1.1 mrg echo "${ECHO_T}yes" >&6
2309 1.1 mrg cat >>confdefs.h <<\EOF
2310 1.1 mrg #define _ALL_SOURCE 1
2311 1.1 mrg EOF
2312 1.1 mrg
2313 1.1 mrg else
2314 1.1 mrg echo "$as_me:2314: result: no" >&5
2315 1.1 mrg echo "${ECHO_T}no" >&6
2316 1.1 mrg fi
2317 1.1 mrg rm -f conftest*
2318 1.1 mrg
2319 1.1 mrg echo "$as_me:2319: checking for POSIXized ISC" >&5
2320 1.1 mrg echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2321 1.1 mrg if test -d /etc/conf/kconfig.d &&
2322 1.1 mrg grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2323 1.1 mrg then
2324 1.1 mrg echo "$as_me:2324: result: yes" >&5
2325 1.1 mrg echo "${ECHO_T}yes" >&6
2326 1.1 mrg ISC=yes # If later tests want to check for ISC.
2327 1.1 mrg
2328 1.1 mrg cat >>confdefs.h <<\EOF
2329 1.1 mrg #define _POSIX_SOURCE 1
2330 1.1 mrg EOF
2331 1.1 mrg
2332 1.1 mrg if test "$GCC" = yes; then
2333 1.1 mrg CC="$CC -posix"
2334 1.1 mrg else
2335 1.1 mrg CC="$CC -Xp"
2336 1.1 mrg fi
2337 1.1 mrg else
2338 1.1 mrg echo "$as_me:2338: result: no" >&5
2339 1.1 mrg echo "${ECHO_T}no" >&6
2340 1.1 mrg ISC=
2341 1.1 mrg fi
2342 1.1 mrg
2343 1.1 mrg ### checks for compiler characteristics
2344 1.1 mrg
2345 1.1 mrg echo "$as_me:2345: checking for ${CC-cc} option to accept ANSI C" >&5
2346 1.1 mrg echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2347 1.1 mrg if test "${cf_cv_ansi_cc+set}" = set; then
2348 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2349 1.1 mrg else
2350 1.1 mrg
2351 1.1 mrg cf_cv_ansi_cc=no
2352 1.1 mrg cf_save_CFLAGS="$CFLAGS"
2353 1.1 mrg cf_save_CPPFLAGS="$CPPFLAGS"
2354 1.1 mrg # Don't try gcc -ansi; that turns off useful extensions and
2355 1.1 mrg # breaks some systems' header files.
2356 1.1 mrg # AIX -qlanglvl=ansi
2357 1.1 mrg # Ultrix and OSF/1 -std1
2358 1.1 mrg # HP-UX -Aa -D_HPUX_SOURCE
2359 1.1 mrg # SVR4 -Xc
2360 1.1 mrg # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2361 1.1 mrg for cf_arg in "-DCC_HAS_PROTOS" \
2362 1.1 mrg "" \
2363 1.1 mrg -qlanglvl=ansi \
2364 1.1 mrg -std1 \
2365 1.1 mrg -Ae \
2366 1.1 mrg "-Aa -D_HPUX_SOURCE" \
2367 1.1 mrg -Xc
2368 1.1 mrg do
2369 1.1 mrg
2370 1.1 mrg cf_fix_cppflags=no
2371 1.1 mrg cf_new_cflags=
2372 1.1 mrg cf_new_cppflags=
2373 1.1 mrg cf_new_extra_cppflags=
2374 1.1 mrg
2375 1.1 mrg for cf_add_cflags in $cf_arg
2376 1.1 mrg do
2377 1.1 mrg case $cf_fix_cppflags in
2378 1.1 mrg no)
2379 1.1 mrg case $cf_add_cflags in #(vi
2380 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2381 1.1 mrg case $cf_add_cflags in
2382 1.1 mrg -D*)
2383 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2384 1.1 mrg
2385 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2386 1.1 mrg && test -z "${cf_tst_cflags}" \
2387 1.1 mrg && cf_fix_cppflags=yes
2388 1.1 mrg
2389 1.1 mrg if test $cf_fix_cppflags = yes ; then
2390 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2391 1.1 mrg continue
2392 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
2393 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2394 1.1 mrg continue
2395 1.1 mrg fi
2396 1.1 mrg ;;
2397 1.1 mrg esac
2398 1.1 mrg case "$CPPFLAGS" in
2399 1.1 mrg *$cf_add_cflags) #(vi
2400 1.1 mrg ;;
2401 1.1 mrg *) #(vi
2402 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2403 1.1 mrg ;;
2404 1.1 mrg esac
2405 1.1 mrg ;;
2406 1.1 mrg *)
2407 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2408 1.1 mrg ;;
2409 1.1 mrg esac
2410 1.1 mrg ;;
2411 1.1 mrg yes)
2412 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2413 1.1 mrg
2414 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2415 1.1 mrg
2416 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2417 1.1 mrg && test -z "${cf_tst_cflags}" \
2418 1.1 mrg && cf_fix_cppflags=no
2419 1.1 mrg ;;
2420 1.1 mrg esac
2421 1.1 mrg done
2422 1.1 mrg
2423 1.1 mrg if test -n "$cf_new_cflags" ; then
2424 1.1 mrg
2425 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
2426 1.1 mrg fi
2427 1.1 mrg
2428 1.1 mrg if test -n "$cf_new_cppflags" ; then
2429 1.1 mrg
2430 1.1 mrg CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2431 1.1 mrg fi
2432 1.1 mrg
2433 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
2434 1.1 mrg
2435 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2436 1.1 mrg fi
2437 1.1 mrg
2438 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2439 1.1 mrg #line 2439 "configure"
2440 1.1 mrg #include "confdefs.h"
2441 1.1 mrg
2442 1.1 mrg #ifndef CC_HAS_PROTOS
2443 1.1 mrg #if !defined(__STDC__) || (__STDC__ != 1)
2444 1.1 mrg choke me
2445 1.1 mrg #endif
2446 1.1 mrg #endif
2447 1.1 mrg
2448 1.1 mrg int
2449 1.1 mrg main ()
2450 1.1 mrg {
2451 1.1 mrg
2452 1.1 mrg int test (int i, double x);
2453 1.1 mrg struct s1 {int (*f) (int a);};
2454 1.1 mrg struct s2 {int (*f) (double a);};
2455 1.1 mrg ;
2456 1.1 mrg return 0;
2457 1.1 mrg }
2458 1.1 mrg _ACEOF
2459 1.1 mrg rm -f conftest.$ac_objext
2460 1.1 mrg if { (eval echo "$as_me:2460: \"$ac_compile\"") >&5
2461 1.1 mrg (eval $ac_compile) 2>&5
2462 1.1 mrg ac_status=$?
2463 1.1 mrg echo "$as_me:2463: \$? = $ac_status" >&5
2464 1.1 mrg (exit $ac_status); } &&
2465 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2466 1.1 mrg { (eval echo "$as_me:2466: \"$ac_try\"") >&5
2467 1.1 mrg (eval $ac_try) 2>&5
2468 1.1 mrg ac_status=$?
2469 1.1 mrg echo "$as_me:2469: \$? = $ac_status" >&5
2470 1.1 mrg (exit $ac_status); }; }; then
2471 1.1 mrg cf_cv_ansi_cc="$cf_arg"; break
2472 1.1 mrg else
2473 1.1 mrg echo "$as_me: failed program was:" >&5
2474 1.1 mrg cat conftest.$ac_ext >&5
2475 1.1 mrg fi
2476 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2477 1.1 mrg done
2478 1.1 mrg CFLAGS="$cf_save_CFLAGS"
2479 1.1 mrg CPPFLAGS="$cf_save_CPPFLAGS"
2480 1.1 mrg
2481 1.1 mrg fi
2482 1.1 mrg echo "$as_me:2482: result: $cf_cv_ansi_cc" >&5
2483 1.1 mrg echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2484 1.1 mrg
2485 1.1 mrg if test "$cf_cv_ansi_cc" != "no"; then
2486 1.1 mrg if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2487 1.1 mrg
2488 1.1 mrg cf_fix_cppflags=no
2489 1.1 mrg cf_new_cflags=
2490 1.1 mrg cf_new_cppflags=
2491 1.1 mrg cf_new_extra_cppflags=
2492 1.1 mrg
2493 1.1 mrg for cf_add_cflags in $cf_cv_ansi_cc
2494 1.1 mrg do
2495 1.1 mrg case $cf_fix_cppflags in
2496 1.1 mrg no)
2497 1.1 mrg case $cf_add_cflags in #(vi
2498 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2499 1.1 mrg case $cf_add_cflags in
2500 1.1 mrg -D*)
2501 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2502 1.1 mrg
2503 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2504 1.1 mrg && test -z "${cf_tst_cflags}" \
2505 1.1 mrg && cf_fix_cppflags=yes
2506 1.1 mrg
2507 1.1 mrg if test $cf_fix_cppflags = yes ; then
2508 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2509 1.1 mrg continue
2510 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
2511 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2512 1.1 mrg continue
2513 1.1 mrg fi
2514 1.1 mrg ;;
2515 1.1 mrg esac
2516 1.1 mrg case "$CPPFLAGS" in
2517 1.1 mrg *$cf_add_cflags) #(vi
2518 1.1 mrg ;;
2519 1.1 mrg *) #(vi
2520 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2521 1.1 mrg ;;
2522 1.1 mrg esac
2523 1.1 mrg ;;
2524 1.1 mrg *)
2525 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2526 1.1 mrg ;;
2527 1.1 mrg esac
2528 1.1 mrg ;;
2529 1.1 mrg yes)
2530 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2531 1.1 mrg
2532 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2533 1.1 mrg
2534 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2535 1.1 mrg && test -z "${cf_tst_cflags}" \
2536 1.1 mrg && cf_fix_cppflags=no
2537 1.1 mrg ;;
2538 1.1 mrg esac
2539 1.1 mrg done
2540 1.1 mrg
2541 1.1 mrg if test -n "$cf_new_cflags" ; then
2542 1.1 mrg
2543 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
2544 1.1 mrg fi
2545 1.1 mrg
2546 1.1 mrg if test -n "$cf_new_cppflags" ; then
2547 1.1 mrg
2548 1.1 mrg CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2549 1.1 mrg fi
2550 1.1 mrg
2551 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
2552 1.1 mrg
2553 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2554 1.1 mrg fi
2555 1.1 mrg
2556 1.1 mrg else
2557 1.1 mrg cat >>confdefs.h <<\EOF
2558 1.1 mrg #define CC_HAS_PROTOS 1
2559 1.1 mrg EOF
2560 1.1 mrg
2561 1.1 mrg fi
2562 1.1 mrg fi
2563 1.1 mrg
2564 1.1 mrg echo "$as_me:2564: checking for $CC option to accept ANSI C" >&5
2565 1.1 mrg echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2566 1.1 mrg if test "${ac_cv_prog_cc_stdc+set}" = set; then
2567 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2568 1.1 mrg else
2569 1.1 mrg ac_cv_prog_cc_stdc=no
2570 1.1 mrg ac_save_CC=$CC
2571 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2572 1.1 mrg #line 2572 "configure"
2573 1.1 mrg #include "confdefs.h"
2574 1.1 mrg #include <stdarg.h>
2575 1.1 mrg #include <stdio.h>
2576 1.1 mrg #include <sys/types.h>
2577 1.1 mrg #include <sys/stat.h>
2578 1.1 mrg /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2579 1.1 mrg struct buf { int x; };
2580 1.1 mrg FILE * (*rcsopen) (struct buf *, struct stat *, int);
2581 1.1 mrg static char *e (p, i)
2582 1.1 mrg char **p;
2583 1.1 mrg int i;
2584 1.1 mrg {
2585 1.1 mrg return p[i];
2586 1.1 mrg }
2587 1.1 mrg static char *f (char * (*g) (char **, int), char **p, ...)
2588 1.1 mrg {
2589 1.1 mrg char *s;
2590 1.1 mrg va_list v;
2591 1.1 mrg va_start (v,p);
2592 1.1 mrg s = g (p, va_arg (v,int));
2593 1.1 mrg va_end (v);
2594 1.1 mrg return s;
2595 1.1 mrg }
2596 1.1 mrg int test (int i, double x);
2597 1.1 mrg struct s1 {int (*f) (int a);};
2598 1.1 mrg struct s2 {int (*f) (double a);};
2599 1.1 mrg int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2600 1.1 mrg int argc;
2601 1.1 mrg char **argv;
2602 1.1 mrg int
2603 1.1 mrg main ()
2604 1.1 mrg {
2605 1.1 mrg return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2606 1.1 mrg ;
2607 1.1 mrg return 0;
2608 1.1 mrg }
2609 1.1 mrg _ACEOF
2610 1.1 mrg # Don't try gcc -ansi; that turns off useful extensions and
2611 1.1 mrg # breaks some systems' header files.
2612 1.1 mrg # AIX -qlanglvl=ansi
2613 1.1 mrg # Ultrix and OSF/1 -std1
2614 1.1 mrg # HP-UX 10.20 and later -Ae
2615 1.1 mrg # HP-UX older versions -Aa -D_HPUX_SOURCE
2616 1.1 mrg # SVR4 -Xc -D__EXTENSIONS__
2617 1.1 mrg for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2618 1.1 mrg do
2619 1.1 mrg CC="$ac_save_CC $ac_arg"
2620 1.1 mrg rm -f conftest.$ac_objext
2621 1.1 mrg if { (eval echo "$as_me:2621: \"$ac_compile\"") >&5
2622 1.1 mrg (eval $ac_compile) 2>&5
2623 1.1 mrg ac_status=$?
2624 1.1 mrg echo "$as_me:2624: \$? = $ac_status" >&5
2625 1.1 mrg (exit $ac_status); } &&
2626 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2627 1.1 mrg { (eval echo "$as_me:2627: \"$ac_try\"") >&5
2628 1.1 mrg (eval $ac_try) 2>&5
2629 1.1 mrg ac_status=$?
2630 1.1 mrg echo "$as_me:2630: \$? = $ac_status" >&5
2631 1.1 mrg (exit $ac_status); }; }; then
2632 1.1 mrg ac_cv_prog_cc_stdc=$ac_arg
2633 1.1 mrg break
2634 1.1 mrg else
2635 1.1 mrg echo "$as_me: failed program was:" >&5
2636 1.1 mrg cat conftest.$ac_ext >&5
2637 1.1 mrg fi
2638 1.1 mrg rm -f conftest.$ac_objext
2639 1.1 mrg done
2640 1.1 mrg rm -f conftest.$ac_ext conftest.$ac_objext
2641 1.1 mrg CC=$ac_save_CC
2642 1.1 mrg
2643 1.1 mrg fi
2644 1.1 mrg
2645 1.1 mrg case "x$ac_cv_prog_cc_stdc" in
2646 1.1 mrg x|xno)
2647 1.1 mrg echo "$as_me:2647: result: none needed" >&5
2648 1.1 mrg echo "${ECHO_T}none needed" >&6 ;;
2649 1.1 mrg *)
2650 1.1 mrg echo "$as_me:2650: result: $ac_cv_prog_cc_stdc" >&5
2651 1.1 mrg echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2652 1.1 mrg CC="$CC $ac_cv_prog_cc_stdc" ;;
2653 1.1 mrg esac
2654 1.1 mrg
2655 1.1 mrg echo "$as_me:2655: checking for an ANSI C-conforming const" >&5
2656 1.1 mrg echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2657 1.1 mrg if test "${ac_cv_c_const+set}" = set; then
2658 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2659 1.1 mrg else
2660 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2661 1.1 mrg #line 2661 "configure"
2662 1.1 mrg #include "confdefs.h"
2663 1.1 mrg
2664 1.1 mrg int
2665 1.1 mrg main ()
2666 1.1 mrg {
2667 1.1 mrg /* FIXME: Include the comments suggested by Paul. */
2668 1.1 mrg #ifndef __cplusplus
2669 1.1 mrg /* Ultrix mips cc rejects this. */
2670 1.1 mrg typedef int charset[2];
2671 1.1 mrg const charset x;
2672 1.1 mrg /* SunOS 4.1.1 cc rejects this. */
2673 1.1 mrg char const *const *ccp;
2674 1.1 mrg char **p;
2675 1.1 mrg /* NEC SVR4.0.2 mips cc rejects this. */
2676 1.1 mrg struct point {int x, y;};
2677 1.1 mrg static struct point const zero = {0,0};
2678 1.1 mrg /* AIX XL C 1.02.0.0 rejects this.
2679 1.1 mrg It does not let you subtract one const X* pointer from another in
2680 1.1 mrg an arm of an if-expression whose if-part is not a constant
2681 1.1 mrg expression */
2682 1.1 mrg const char *g = "string";
2683 1.1 mrg ccp = &g + (g ? g-g : 0);
2684 1.1 mrg /* HPUX 7.0 cc rejects these. */
2685 1.1 mrg ++ccp;
2686 1.1 mrg p = (char**) ccp;
2687 1.1 mrg ccp = (char const *const *) p;
2688 1.1 mrg { /* SCO 3.2v4 cc rejects this. */
2689 1.1 mrg char *t;
2690 1.1 mrg char const *s = 0 ? (char *) 0 : (char const *) 0;
2691 1.1 mrg
2692 1.1 mrg *t++ = 0;
2693 1.1 mrg }
2694 1.1 mrg { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2695 1.1 mrg int x[] = {25, 17};
2696 1.1 mrg const int *foo = &x[0];
2697 1.1 mrg ++foo;
2698 1.1 mrg }
2699 1.1 mrg { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2700 1.1 mrg typedef const int *iptr;
2701 1.1 mrg iptr p = 0;
2702 1.1 mrg ++p;
2703 1.1 mrg }
2704 1.1 mrg { /* AIX XL C 1.02.0.0 rejects this saying
2705 1.1 mrg "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2706 1.1 mrg struct s { int j; const int *ap[3]; };
2707 1.1 mrg struct s *b; b->j = 5;
2708 1.1 mrg }
2709 1.1 mrg { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2710 1.1 mrg const int foo = 10;
2711 1.1 mrg }
2712 1.1 mrg #endif
2713 1.1 mrg
2714 1.1 mrg ;
2715 1.1 mrg return 0;
2716 1.1 mrg }
2717 1.1 mrg _ACEOF
2718 1.1 mrg rm -f conftest.$ac_objext
2719 1.1 mrg if { (eval echo "$as_me:2719: \"$ac_compile\"") >&5
2720 1.1 mrg (eval $ac_compile) 2>&5
2721 1.1 mrg ac_status=$?
2722 1.1 mrg echo "$as_me:2722: \$? = $ac_status" >&5
2723 1.1 mrg (exit $ac_status); } &&
2724 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2725 1.1 mrg { (eval echo "$as_me:2725: \"$ac_try\"") >&5
2726 1.1 mrg (eval $ac_try) 2>&5
2727 1.1 mrg ac_status=$?
2728 1.1 mrg echo "$as_me:2728: \$? = $ac_status" >&5
2729 1.1 mrg (exit $ac_status); }; }; then
2730 1.1 mrg ac_cv_c_const=yes
2731 1.1 mrg else
2732 1.1 mrg echo "$as_me: failed program was:" >&5
2733 1.1 mrg cat conftest.$ac_ext >&5
2734 1.1 mrg ac_cv_c_const=no
2735 1.1 mrg fi
2736 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2737 1.1 mrg fi
2738 1.1 mrg echo "$as_me:2738: result: $ac_cv_c_const" >&5
2739 1.1 mrg echo "${ECHO_T}$ac_cv_c_const" >&6
2740 1.1 mrg if test $ac_cv_c_const = no; then
2741 1.1 mrg
2742 1.1 mrg cat >>confdefs.h <<\EOF
2743 1.1 mrg #define const
2744 1.1 mrg EOF
2745 1.1 mrg
2746 1.1 mrg fi
2747 1.1 mrg
2748 1.1 mrg case $cf_cv_system_name in
2749 1.1 mrg os2*)
2750 1.1 mrg CFLAGS="$CFLAGS -Zmt"
2751 1.1 mrg CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2752 1.1 mrg CXXFLAGS="$CXXFLAGS -Zmt"
2753 1.1 mrg # autoconf's macro sets -Zexe and suffix both, which conflict:w
2754 1.1 mrg LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2755 1.1 mrg ac_cv_exeext=.exe
2756 1.1 mrg ;;
2757 1.1 mrg esac
2758 1.1 mrg
2759 1.1 mrg PROG_EXT="$EXEEXT"
2760 1.1 mrg
2761 1.1 mrg test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2762 1.1 mrg #define PROG_EXT "$PROG_EXT"
2763 1.1 mrg EOF
2764 1.1 mrg
2765 1.1 mrg echo "$as_me:2765: checking if $CC -U and -D options work together" >&5
2766 1.1 mrg echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
2767 1.1 mrg if test "${cf_cv_cc_u_d_options+set}" = set; then
2768 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2769 1.1 mrg else
2770 1.1 mrg
2771 1.1 mrg cf_save_CPPFLAGS="$CPPFLAGS"
2772 1.1 mrg CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
2773 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2774 1.1 mrg #line 2774 "configure"
2775 1.1 mrg #include "confdefs.h"
2776 1.1 mrg
2777 1.1 mrg int
2778 1.1 mrg main ()
2779 1.1 mrg {
2780 1.1 mrg
2781 1.1 mrg #ifndef U_D_OPTIONS
2782 1.1 mrg make an undefined-error
2783 1.1 mrg #endif
2784 1.1 mrg #ifdef D_U_OPTIONS
2785 1.1 mrg make a defined-error
2786 1.1 mrg #endif
2787 1.1 mrg
2788 1.1 mrg ;
2789 1.1 mrg return 0;
2790 1.1 mrg }
2791 1.1 mrg _ACEOF
2792 1.1 mrg rm -f conftest.$ac_objext
2793 1.1 mrg if { (eval echo "$as_me:2793: \"$ac_compile\"") >&5
2794 1.1 mrg (eval $ac_compile) 2>&5
2795 1.1 mrg ac_status=$?
2796 1.1 mrg echo "$as_me:2796: \$? = $ac_status" >&5
2797 1.1 mrg (exit $ac_status); } &&
2798 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2799 1.1 mrg { (eval echo "$as_me:2799: \"$ac_try\"") >&5
2800 1.1 mrg (eval $ac_try) 2>&5
2801 1.1 mrg ac_status=$?
2802 1.1 mrg echo "$as_me:2802: \$? = $ac_status" >&5
2803 1.1 mrg (exit $ac_status); }; }; then
2804 1.1 mrg
2805 1.1 mrg cf_cv_cc_u_d_options=yes
2806 1.1 mrg else
2807 1.1 mrg echo "$as_me: failed program was:" >&5
2808 1.1 mrg cat conftest.$ac_ext >&5
2809 1.1 mrg
2810 1.1 mrg cf_cv_cc_u_d_options=no
2811 1.1 mrg fi
2812 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2813 1.1 mrg CPPFLAGS="$cf_save_CPPFLAGS"
2814 1.1 mrg
2815 1.1 mrg fi
2816 1.1 mrg echo "$as_me:2816: result: $cf_cv_cc_u_d_options" >&5
2817 1.1 mrg echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
2818 1.1 mrg
2819 1.1 mrg cf_XOPEN_SOURCE=500
2820 1.1 mrg cf_POSIX_C_SOURCE=199506L
2821 1.1 mrg
2822 1.1 mrg case $host_os in #(vi
2823 1.1.1.2 christos aix[456]*) #(vi
2824 1.1 mrg CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
2825 1.1 mrg ;;
2826 1.1.1.2 christos freebsd*|dragonfly*) #(vi
2827 1.1 mrg # 5.x headers associate
2828 1.1 mrg # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2829 1.1 mrg # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2830 1.1 mrg cf_POSIX_C_SOURCE=200112L
2831 1.1 mrg cf_XOPEN_SOURCE=600
2832 1.1 mrg CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2833 1.1 mrg ;;
2834 1.1 mrg hpux*) #(vi
2835 1.1 mrg CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
2836 1.1 mrg ;;
2837 1.1 mrg irix[56].*) #(vi
2838 1.1 mrg CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
2839 1.1 mrg ;;
2840 1.1.1.2 christos linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2841 1.1 mrg
2842 1.1 mrg echo "$as_me:2842: checking if we must define _GNU_SOURCE" >&5
2843 1.1 mrg echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2844 1.1 mrg if test "${cf_cv_gnu_source+set}" = set; then
2845 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2846 1.1 mrg else
2847 1.1 mrg
2848 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2849 1.1 mrg #line 2849 "configure"
2850 1.1 mrg #include "confdefs.h"
2851 1.1 mrg #include <sys/types.h>
2852 1.1 mrg int
2853 1.1 mrg main ()
2854 1.1 mrg {
2855 1.1 mrg
2856 1.1 mrg #ifndef _XOPEN_SOURCE
2857 1.1 mrg make an error
2858 1.1 mrg #endif
2859 1.1 mrg ;
2860 1.1 mrg return 0;
2861 1.1 mrg }
2862 1.1 mrg _ACEOF
2863 1.1 mrg rm -f conftest.$ac_objext
2864 1.1 mrg if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 1.1 mrg (eval $ac_compile) 2>&5
2866 1.1 mrg ac_status=$?
2867 1.1 mrg echo "$as_me:2867: \$? = $ac_status" >&5
2868 1.1 mrg (exit $ac_status); } &&
2869 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2870 1.1 mrg { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2871 1.1 mrg (eval $ac_try) 2>&5
2872 1.1 mrg ac_status=$?
2873 1.1 mrg echo "$as_me:2873: \$? = $ac_status" >&5
2874 1.1 mrg (exit $ac_status); }; }; then
2875 1.1 mrg cf_cv_gnu_source=no
2876 1.1 mrg else
2877 1.1 mrg echo "$as_me: failed program was:" >&5
2878 1.1 mrg cat conftest.$ac_ext >&5
2879 1.1 mrg cf_save="$CPPFLAGS"
2880 1.1 mrg CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2881 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2882 1.1 mrg #line 2882 "configure"
2883 1.1 mrg #include "confdefs.h"
2884 1.1 mrg #include <sys/types.h>
2885 1.1 mrg int
2886 1.1 mrg main ()
2887 1.1 mrg {
2888 1.1 mrg
2889 1.1 mrg #ifdef _XOPEN_SOURCE
2890 1.1 mrg make an error
2891 1.1 mrg #endif
2892 1.1 mrg ;
2893 1.1 mrg return 0;
2894 1.1 mrg }
2895 1.1 mrg _ACEOF
2896 1.1 mrg rm -f conftest.$ac_objext
2897 1.1 mrg if { (eval echo "$as_me:2897: \"$ac_compile\"") >&5
2898 1.1 mrg (eval $ac_compile) 2>&5
2899 1.1 mrg ac_status=$?
2900 1.1 mrg echo "$as_me:2900: \$? = $ac_status" >&5
2901 1.1 mrg (exit $ac_status); } &&
2902 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2903 1.1 mrg { (eval echo "$as_me:2903: \"$ac_try\"") >&5
2904 1.1 mrg (eval $ac_try) 2>&5
2905 1.1 mrg ac_status=$?
2906 1.1 mrg echo "$as_me:2906: \$? = $ac_status" >&5
2907 1.1 mrg (exit $ac_status); }; }; then
2908 1.1 mrg cf_cv_gnu_source=no
2909 1.1 mrg else
2910 1.1 mrg echo "$as_me: failed program was:" >&5
2911 1.1 mrg cat conftest.$ac_ext >&5
2912 1.1 mrg cf_cv_gnu_source=yes
2913 1.1 mrg fi
2914 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2915 1.1 mrg CPPFLAGS="$cf_save"
2916 1.1 mrg
2917 1.1 mrg fi
2918 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2919 1.1 mrg
2920 1.1 mrg fi
2921 1.1 mrg echo "$as_me:2921: result: $cf_cv_gnu_source" >&5
2922 1.1 mrg echo "${ECHO_T}$cf_cv_gnu_source" >&6
2923 1.1 mrg test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2924 1.1 mrg
2925 1.1 mrg ;;
2926 1.1 mrg mirbsd*) #(vi
2927 1.1 mrg # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2928 1.1 mrg ;;
2929 1.1 mrg netbsd*) #(vi
2930 1.1 mrg # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2931 1.1 mrg ;;
2932 1.1 mrg openbsd*) #(vi
2933 1.1 mrg # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2934 1.1 mrg ;;
2935 1.1 mrg osf[45]*) #(vi
2936 1.1 mrg CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
2937 1.1 mrg ;;
2938 1.1 mrg nto-qnx*) #(vi
2939 1.1 mrg CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
2940 1.1 mrg ;;
2941 1.1 mrg sco*) #(vi
2942 1.1 mrg # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2943 1.1 mrg ;;
2944 1.1 mrg solaris*) #(vi
2945 1.1 mrg CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
2946 1.1 mrg ;;
2947 1.1 mrg *)
2948 1.1 mrg echo "$as_me:2948: checking if we should define _XOPEN_SOURCE" >&5
2949 1.1 mrg echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2950 1.1 mrg if test "${cf_cv_xopen_source+set}" = set; then
2951 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2952 1.1 mrg else
2953 1.1 mrg
2954 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2955 1.1 mrg #line 2955 "configure"
2956 1.1 mrg #include "confdefs.h"
2957 1.1 mrg #include <sys/types.h>
2958 1.1 mrg int
2959 1.1 mrg main ()
2960 1.1 mrg {
2961 1.1 mrg
2962 1.1 mrg #ifndef _XOPEN_SOURCE
2963 1.1 mrg make an error
2964 1.1 mrg #endif
2965 1.1 mrg ;
2966 1.1 mrg return 0;
2967 1.1 mrg }
2968 1.1 mrg _ACEOF
2969 1.1 mrg rm -f conftest.$ac_objext
2970 1.1 mrg if { (eval echo "$as_me:2970: \"$ac_compile\"") >&5
2971 1.1 mrg (eval $ac_compile) 2>&5
2972 1.1 mrg ac_status=$?
2973 1.1 mrg echo "$as_me:2973: \$? = $ac_status" >&5
2974 1.1 mrg (exit $ac_status); } &&
2975 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2976 1.1 mrg { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2977 1.1 mrg (eval $ac_try) 2>&5
2978 1.1 mrg ac_status=$?
2979 1.1 mrg echo "$as_me:2979: \$? = $ac_status" >&5
2980 1.1 mrg (exit $ac_status); }; }; then
2981 1.1 mrg cf_cv_xopen_source=no
2982 1.1 mrg else
2983 1.1 mrg echo "$as_me: failed program was:" >&5
2984 1.1 mrg cat conftest.$ac_ext >&5
2985 1.1 mrg cf_save="$CPPFLAGS"
2986 1.1 mrg CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2987 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2988 1.1 mrg #line 2988 "configure"
2989 1.1 mrg #include "confdefs.h"
2990 1.1 mrg #include <sys/types.h>
2991 1.1 mrg int
2992 1.1 mrg main ()
2993 1.1 mrg {
2994 1.1 mrg
2995 1.1 mrg #ifdef _XOPEN_SOURCE
2996 1.1 mrg make an error
2997 1.1 mrg #endif
2998 1.1 mrg ;
2999 1.1 mrg return 0;
3000 1.1 mrg }
3001 1.1 mrg _ACEOF
3002 1.1 mrg rm -f conftest.$ac_objext
3003 1.1 mrg if { (eval echo "$as_me:3003: \"$ac_compile\"") >&5
3004 1.1 mrg (eval $ac_compile) 2>&5
3005 1.1 mrg ac_status=$?
3006 1.1 mrg echo "$as_me:3006: \$? = $ac_status" >&5
3007 1.1 mrg (exit $ac_status); } &&
3008 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3009 1.1 mrg { (eval echo "$as_me:3009: \"$ac_try\"") >&5
3010 1.1 mrg (eval $ac_try) 2>&5
3011 1.1 mrg ac_status=$?
3012 1.1 mrg echo "$as_me:3012: \$? = $ac_status" >&5
3013 1.1 mrg (exit $ac_status); }; }; then
3014 1.1 mrg cf_cv_xopen_source=no
3015 1.1 mrg else
3016 1.1 mrg echo "$as_me: failed program was:" >&5
3017 1.1 mrg cat conftest.$ac_ext >&5
3018 1.1 mrg cf_cv_xopen_source=$cf_XOPEN_SOURCE
3019 1.1 mrg fi
3020 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3021 1.1 mrg CPPFLAGS="$cf_save"
3022 1.1 mrg
3023 1.1 mrg fi
3024 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3025 1.1 mrg
3026 1.1 mrg fi
3027 1.1 mrg echo "$as_me:3027: result: $cf_cv_xopen_source" >&5
3028 1.1 mrg echo "${ECHO_T}$cf_cv_xopen_source" >&6
3029 1.1 mrg if test "$cf_cv_xopen_source" != no ; then
3030 1.1 mrg
3031 1.1 mrg # remove _XOPEN_SOURCE symbol from $CFLAGS
3032 1.1 mrg CFLAGS=`echo "$CFLAGS" | \
3033 1.1 mrg sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3034 1.1 mrg -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
3035 1.1 mrg
3036 1.1 mrg # remove _XOPEN_SOURCE symbol from $CPPFLAGS
3037 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | \
3038 1.1 mrg sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3039 1.1 mrg -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
3040 1.1 mrg
3041 1.1 mrg test "$cf_cv_cc_u_d_options" = yes && \
3042 1.1 mrg CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
3043 1.1 mrg CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
3044 1.1 mrg fi
3045 1.1 mrg
3046 1.1 mrg cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3047 1.1 mrg
3048 1.1 mrg cf_save_CFLAGS="$CFLAGS"
3049 1.1 mrg cf_save_CPPFLAGS="$CPPFLAGS"
3050 1.1 mrg
3051 1.1 mrg # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
3052 1.1 mrg cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3053 1.1 mrg sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3054 1.1 mrg -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
3055 1.1 mrg
3056 1.1 mrg # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
3057 1.1 mrg cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3058 1.1 mrg sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3059 1.1 mrg -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
3060 1.1 mrg
3061 1.1 mrg echo "$as_me:3061: checking if we should define _POSIX_C_SOURCE" >&5
3062 1.1 mrg echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3063 1.1 mrg if test "${cf_cv_posix_c_source+set}" = set; then
3064 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3065 1.1 mrg else
3066 1.1 mrg
3067 1.1 mrg echo "${as_me-configure}:3067: testing if the symbol is already defined go no further ..." 1>&5
3068 1.1 mrg
3069 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3070 1.1 mrg #line 3070 "configure"
3071 1.1 mrg #include "confdefs.h"
3072 1.1 mrg #include <sys/types.h>
3073 1.1 mrg int
3074 1.1 mrg main ()
3075 1.1 mrg {
3076 1.1 mrg
3077 1.1 mrg #ifndef _POSIX_C_SOURCE
3078 1.1 mrg make an error
3079 1.1 mrg #endif
3080 1.1 mrg ;
3081 1.1 mrg return 0;
3082 1.1 mrg }
3083 1.1 mrg _ACEOF
3084 1.1 mrg rm -f conftest.$ac_objext
3085 1.1 mrg if { (eval echo "$as_me:3085: \"$ac_compile\"") >&5
3086 1.1 mrg (eval $ac_compile) 2>&5
3087 1.1 mrg ac_status=$?
3088 1.1 mrg echo "$as_me:3088: \$? = $ac_status" >&5
3089 1.1 mrg (exit $ac_status); } &&
3090 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3091 1.1 mrg { (eval echo "$as_me:3091: \"$ac_try\"") >&5
3092 1.1 mrg (eval $ac_try) 2>&5
3093 1.1 mrg ac_status=$?
3094 1.1 mrg echo "$as_me:3094: \$? = $ac_status" >&5
3095 1.1 mrg (exit $ac_status); }; }; then
3096 1.1 mrg cf_cv_posix_c_source=no
3097 1.1 mrg else
3098 1.1 mrg echo "$as_me: failed program was:" >&5
3099 1.1 mrg cat conftest.$ac_ext >&5
3100 1.1 mrg cf_want_posix_source=no
3101 1.1 mrg case .$cf_POSIX_C_SOURCE in #(vi
3102 1.1 mrg .[12]??*) #(vi
3103 1.1 mrg cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3104 1.1 mrg ;;
3105 1.1 mrg .2) #(vi
3106 1.1 mrg cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3107 1.1 mrg cf_want_posix_source=yes
3108 1.1 mrg ;;
3109 1.1 mrg .*)
3110 1.1 mrg cf_want_posix_source=yes
3111 1.1 mrg ;;
3112 1.1 mrg esac
3113 1.1 mrg if test "$cf_want_posix_source" = yes ; then
3114 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3115 1.1 mrg #line 3115 "configure"
3116 1.1 mrg #include "confdefs.h"
3117 1.1 mrg #include <sys/types.h>
3118 1.1 mrg int
3119 1.1 mrg main ()
3120 1.1 mrg {
3121 1.1 mrg
3122 1.1 mrg #ifdef _POSIX_SOURCE
3123 1.1 mrg make an error
3124 1.1 mrg #endif
3125 1.1 mrg ;
3126 1.1 mrg return 0;
3127 1.1 mrg }
3128 1.1 mrg _ACEOF
3129 1.1 mrg rm -f conftest.$ac_objext
3130 1.1 mrg if { (eval echo "$as_me:3130: \"$ac_compile\"") >&5
3131 1.1 mrg (eval $ac_compile) 2>&5
3132 1.1 mrg ac_status=$?
3133 1.1 mrg echo "$as_me:3133: \$? = $ac_status" >&5
3134 1.1 mrg (exit $ac_status); } &&
3135 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3136 1.1 mrg { (eval echo "$as_me:3136: \"$ac_try\"") >&5
3137 1.1 mrg (eval $ac_try) 2>&5
3138 1.1 mrg ac_status=$?
3139 1.1 mrg echo "$as_me:3139: \$? = $ac_status" >&5
3140 1.1 mrg (exit $ac_status); }; }; then
3141 1.1 mrg :
3142 1.1 mrg else
3143 1.1 mrg echo "$as_me: failed program was:" >&5
3144 1.1 mrg cat conftest.$ac_ext >&5
3145 1.1 mrg cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3146 1.1 mrg fi
3147 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3148 1.1 mrg fi
3149 1.1 mrg
3150 1.1 mrg echo "${as_me-configure}:3150: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3151 1.1 mrg
3152 1.1 mrg CFLAGS="$cf_trim_CFLAGS"
3153 1.1 mrg CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3154 1.1 mrg
3155 1.1 mrg echo "${as_me-configure}:3155: testing if the second compile does not leave our definition intact error ..." 1>&5
3156 1.1 mrg
3157 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3158 1.1 mrg #line 3158 "configure"
3159 1.1 mrg #include "confdefs.h"
3160 1.1 mrg #include <sys/types.h>
3161 1.1 mrg int
3162 1.1 mrg main ()
3163 1.1 mrg {
3164 1.1 mrg
3165 1.1 mrg #ifndef _POSIX_C_SOURCE
3166 1.1 mrg make an error
3167 1.1 mrg #endif
3168 1.1 mrg ;
3169 1.1 mrg return 0;
3170 1.1 mrg }
3171 1.1 mrg _ACEOF
3172 1.1 mrg rm -f conftest.$ac_objext
3173 1.1 mrg if { (eval echo "$as_me:3173: \"$ac_compile\"") >&5
3174 1.1 mrg (eval $ac_compile) 2>&5
3175 1.1 mrg ac_status=$?
3176 1.1 mrg echo "$as_me:3176: \$? = $ac_status" >&5
3177 1.1 mrg (exit $ac_status); } &&
3178 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3179 1.1 mrg { (eval echo "$as_me:3179: \"$ac_try\"") >&5
3180 1.1 mrg (eval $ac_try) 2>&5
3181 1.1 mrg ac_status=$?
3182 1.1 mrg echo "$as_me:3182: \$? = $ac_status" >&5
3183 1.1 mrg (exit $ac_status); }; }; then
3184 1.1 mrg :
3185 1.1 mrg else
3186 1.1 mrg echo "$as_me: failed program was:" >&5
3187 1.1 mrg cat conftest.$ac_ext >&5
3188 1.1 mrg cf_cv_posix_c_source=no
3189 1.1 mrg fi
3190 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3191 1.1 mrg CFLAGS="$cf_save_CFLAGS"
3192 1.1 mrg CPPFLAGS="$cf_save_CPPFLAGS"
3193 1.1 mrg
3194 1.1 mrg fi
3195 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3196 1.1 mrg
3197 1.1 mrg fi
3198 1.1 mrg echo "$as_me:3198: result: $cf_cv_posix_c_source" >&5
3199 1.1 mrg echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3200 1.1 mrg
3201 1.1 mrg if test "$cf_cv_posix_c_source" != no ; then
3202 1.1 mrg CFLAGS="$cf_trim_CFLAGS"
3203 1.1 mrg CPPFLAGS="$cf_trim_CPPFLAGS"
3204 1.1 mrg if test "$cf_cv_cc_u_d_options" = yes ; then
3205 1.1 mrg cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
3206 1.1 mrg sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
3207 1.1 mrg CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
3208 1.1 mrg fi
3209 1.1 mrg CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
3210 1.1 mrg fi
3211 1.1 mrg
3212 1.1 mrg ;;
3213 1.1 mrg esac
3214 1.1 mrg
3215 1.1 mrg echo "$as_me:3215: checking if SIGWINCH is defined" >&5
3216 1.1 mrg echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
3217 1.1 mrg if test "${cf_cv_define_sigwinch+set}" = set; then
3218 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3219 1.1 mrg else
3220 1.1 mrg
3221 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3222 1.1 mrg #line 3222 "configure"
3223 1.1 mrg #include "confdefs.h"
3224 1.1 mrg
3225 1.1 mrg #include <sys/types.h>
3226 1.1 mrg #include <sys/signal.h>
3227 1.1 mrg
3228 1.1 mrg int
3229 1.1 mrg main ()
3230 1.1 mrg {
3231 1.1 mrg int x = SIGWINCH
3232 1.1 mrg ;
3233 1.1 mrg return 0;
3234 1.1 mrg }
3235 1.1 mrg _ACEOF
3236 1.1 mrg rm -f conftest.$ac_objext
3237 1.1 mrg if { (eval echo "$as_me:3237: \"$ac_compile\"") >&5
3238 1.1 mrg (eval $ac_compile) 2>&5
3239 1.1 mrg ac_status=$?
3240 1.1 mrg echo "$as_me:3240: \$? = $ac_status" >&5
3241 1.1 mrg (exit $ac_status); } &&
3242 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3243 1.1 mrg { (eval echo "$as_me:3243: \"$ac_try\"") >&5
3244 1.1 mrg (eval $ac_try) 2>&5
3245 1.1 mrg ac_status=$?
3246 1.1 mrg echo "$as_me:3246: \$? = $ac_status" >&5
3247 1.1 mrg (exit $ac_status); }; }; then
3248 1.1 mrg cf_cv_define_sigwinch=yes
3249 1.1 mrg else
3250 1.1 mrg echo "$as_me: failed program was:" >&5
3251 1.1 mrg cat conftest.$ac_ext >&5
3252 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3253 1.1 mrg #line 3253 "configure"
3254 1.1 mrg #include "confdefs.h"
3255 1.1 mrg
3256 1.1 mrg #undef _XOPEN_SOURCE
3257 1.1 mrg #undef _POSIX_SOURCE
3258 1.1 mrg #undef _POSIX_C_SOURCE
3259 1.1 mrg #include <sys/types.h>
3260 1.1 mrg #include <sys/signal.h>
3261 1.1 mrg
3262 1.1 mrg int
3263 1.1 mrg main ()
3264 1.1 mrg {
3265 1.1 mrg int x = SIGWINCH
3266 1.1 mrg ;
3267 1.1 mrg return 0;
3268 1.1 mrg }
3269 1.1 mrg _ACEOF
3270 1.1 mrg rm -f conftest.$ac_objext
3271 1.1 mrg if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5
3272 1.1 mrg (eval $ac_compile) 2>&5
3273 1.1 mrg ac_status=$?
3274 1.1 mrg echo "$as_me:3274: \$? = $ac_status" >&5
3275 1.1 mrg (exit $ac_status); } &&
3276 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3277 1.1 mrg { (eval echo "$as_me:3277: \"$ac_try\"") >&5
3278 1.1 mrg (eval $ac_try) 2>&5
3279 1.1 mrg ac_status=$?
3280 1.1 mrg echo "$as_me:3280: \$? = $ac_status" >&5
3281 1.1 mrg (exit $ac_status); }; }; then
3282 1.1 mrg cf_cv_define_sigwinch=maybe
3283 1.1 mrg else
3284 1.1 mrg echo "$as_me: failed program was:" >&5
3285 1.1 mrg cat conftest.$ac_ext >&5
3286 1.1 mrg cf_cv_define_sigwinch=no
3287 1.1 mrg fi
3288 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3289 1.1 mrg
3290 1.1 mrg fi
3291 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3292 1.1 mrg
3293 1.1 mrg fi
3294 1.1 mrg echo "$as_me:3294: result: $cf_cv_define_sigwinch" >&5
3295 1.1 mrg echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
3296 1.1 mrg
3297 1.1 mrg if test "$cf_cv_define_sigwinch" = maybe ; then
3298 1.1 mrg echo "$as_me:3298: checking for actual SIGWINCH definition" >&5
3299 1.1 mrg echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
3300 1.1 mrg if test "${cf_cv_fixup_sigwinch+set}" = set; then
3301 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3302 1.1 mrg else
3303 1.1 mrg
3304 1.1 mrg cf_cv_fixup_sigwinch=unknown
3305 1.1 mrg cf_sigwinch=32
3306 1.1 mrg while test $cf_sigwinch != 1
3307 1.1 mrg do
3308 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3309 1.1 mrg #line 3309 "configure"
3310 1.1 mrg #include "confdefs.h"
3311 1.1 mrg
3312 1.1 mrg #undef _XOPEN_SOURCE
3313 1.1 mrg #undef _POSIX_SOURCE
3314 1.1 mrg #undef _POSIX_C_SOURCE
3315 1.1 mrg #include <sys/types.h>
3316 1.1 mrg #include <sys/signal.h>
3317 1.1 mrg
3318 1.1 mrg int
3319 1.1 mrg main ()
3320 1.1 mrg {
3321 1.1 mrg
3322 1.1 mrg #if SIGWINCH != $cf_sigwinch
3323 1.1 mrg make an error
3324 1.1 mrg #endif
3325 1.1 mrg int x = SIGWINCH
3326 1.1 mrg ;
3327 1.1 mrg return 0;
3328 1.1 mrg }
3329 1.1 mrg _ACEOF
3330 1.1 mrg rm -f conftest.$ac_objext
3331 1.1 mrg if { (eval echo "$as_me:3331: \"$ac_compile\"") >&5
3332 1.1 mrg (eval $ac_compile) 2>&5
3333 1.1 mrg ac_status=$?
3334 1.1 mrg echo "$as_me:3334: \$? = $ac_status" >&5
3335 1.1 mrg (exit $ac_status); } &&
3336 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3337 1.1 mrg { (eval echo "$as_me:3337: \"$ac_try\"") >&5
3338 1.1 mrg (eval $ac_try) 2>&5
3339 1.1 mrg ac_status=$?
3340 1.1 mrg echo "$as_me:3340: \$? = $ac_status" >&5
3341 1.1 mrg (exit $ac_status); }; }; then
3342 1.1 mrg cf_cv_fixup_sigwinch=$cf_sigwinch
3343 1.1 mrg break
3344 1.1 mrg else
3345 1.1 mrg echo "$as_me: failed program was:" >&5
3346 1.1 mrg cat conftest.$ac_ext >&5
3347 1.1 mrg fi
3348 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3349 1.1 mrg
3350 1.1 mrg cf_sigwinch=`expr $cf_sigwinch - 1`
3351 1.1 mrg done
3352 1.1 mrg
3353 1.1 mrg fi
3354 1.1 mrg echo "$as_me:3354: result: $cf_cv_fixup_sigwinch" >&5
3355 1.1 mrg echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
3356 1.1 mrg
3357 1.1 mrg if test "$cf_cv_fixup_sigwinch" != unknown ; then
3358 1.1 mrg CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
3359 1.1 mrg fi
3360 1.1 mrg fi
3361 1.1 mrg
3362 1.1 mrg ### checks for header files
3363 1.1 mrg
3364 1.1 mrg for ac_header in \
3365 1.1 mrg ncurses/term.h \
3366 1.1 mrg stdlib.h \
3367 1.1 mrg sys/ttydefaults.h \
3368 1.1 mrg term.h \
3369 1.1 mrg termios.h \
3370 1.1 mrg unistd.h \
3371 1.1 mrg wchar.h \
3372 1.1 mrg
3373 1.1 mrg do
3374 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3375 1.1 mrg echo "$as_me:3375: checking for $ac_header" >&5
3376 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3377 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3379 1.1 mrg else
3380 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3381 1.1 mrg #line 3381 "configure"
3382 1.1 mrg #include "confdefs.h"
3383 1.1 mrg #include <$ac_header>
3384 1.1 mrg _ACEOF
3385 1.1 mrg if { (eval echo "$as_me:3385: \"$ac_cpp conftest.$ac_ext\"") >&5
3386 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3387 1.1 mrg ac_status=$?
3388 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
3389 1.1 mrg rm -f conftest.er1
3390 1.1 mrg cat conftest.err >&5
3391 1.1 mrg echo "$as_me:3391: \$? = $ac_status" >&5
3392 1.1 mrg (exit $ac_status); } >/dev/null; then
3393 1.1 mrg if test -s conftest.err; then
3394 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
3395 1.1 mrg else
3396 1.1 mrg ac_cpp_err=
3397 1.1 mrg fi
3398 1.1 mrg else
3399 1.1 mrg ac_cpp_err=yes
3400 1.1 mrg fi
3401 1.1 mrg if test -z "$ac_cpp_err"; then
3402 1.1 mrg eval "$as_ac_Header=yes"
3403 1.1 mrg else
3404 1.1 mrg echo "$as_me: failed program was:" >&5
3405 1.1 mrg cat conftest.$ac_ext >&5
3406 1.1 mrg eval "$as_ac_Header=no"
3407 1.1 mrg fi
3408 1.1 mrg rm -f conftest.err conftest.$ac_ext
3409 1.1 mrg fi
3410 1.1 mrg echo "$as_me:3410: result: `eval echo '${'$as_ac_Header'}'`" >&5
3411 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3412 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
3413 1.1 mrg cat >>confdefs.h <<EOF
3414 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3415 1.1 mrg EOF
3416 1.1 mrg
3417 1.1 mrg fi
3418 1.1 mrg done
3419 1.1 mrg
3420 1.1 mrg echo "$as_me:3420: checking whether time.h and sys/time.h may both be included" >&5
3421 1.1 mrg echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3422 1.1 mrg if test "${ac_cv_header_time+set}" = set; then
3423 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3424 1.1 mrg else
3425 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3426 1.1 mrg #line 3426 "configure"
3427 1.1 mrg #include "confdefs.h"
3428 1.1 mrg #include <sys/types.h>
3429 1.1 mrg #include <sys/time.h>
3430 1.1 mrg #include <time.h>
3431 1.1 mrg
3432 1.1 mrg int
3433 1.1 mrg main ()
3434 1.1 mrg {
3435 1.1 mrg if ((struct tm *) 0)
3436 1.1 mrg return 0;
3437 1.1 mrg ;
3438 1.1 mrg return 0;
3439 1.1 mrg }
3440 1.1 mrg _ACEOF
3441 1.1 mrg rm -f conftest.$ac_objext
3442 1.1 mrg if { (eval echo "$as_me:3442: \"$ac_compile\"") >&5
3443 1.1 mrg (eval $ac_compile) 2>&5
3444 1.1 mrg ac_status=$?
3445 1.1 mrg echo "$as_me:3445: \$? = $ac_status" >&5
3446 1.1 mrg (exit $ac_status); } &&
3447 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3448 1.1 mrg { (eval echo "$as_me:3448: \"$ac_try\"") >&5
3449 1.1 mrg (eval $ac_try) 2>&5
3450 1.1 mrg ac_status=$?
3451 1.1 mrg echo "$as_me:3451: \$? = $ac_status" >&5
3452 1.1 mrg (exit $ac_status); }; }; then
3453 1.1 mrg ac_cv_header_time=yes
3454 1.1 mrg else
3455 1.1 mrg echo "$as_me: failed program was:" >&5
3456 1.1 mrg cat conftest.$ac_ext >&5
3457 1.1 mrg ac_cv_header_time=no
3458 1.1 mrg fi
3459 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3460 1.1 mrg fi
3461 1.1 mrg echo "$as_me:3461: result: $ac_cv_header_time" >&5
3462 1.1 mrg echo "${ECHO_T}$ac_cv_header_time" >&6
3463 1.1 mrg if test $ac_cv_header_time = yes; then
3464 1.1 mrg
3465 1.1 mrg cat >>confdefs.h <<\EOF
3466 1.1 mrg #define TIME_WITH_SYS_TIME 1
3467 1.1 mrg EOF
3468 1.1 mrg
3469 1.1 mrg fi
3470 1.1 mrg
3471 1.1 mrg echo "$as_me:3471: checking for nl_langinfo and CODESET" >&5
3472 1.1 mrg echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3473 1.1 mrg if test "${am_cv_langinfo_codeset+set}" = set; then
3474 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3475 1.1 mrg else
3476 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3477 1.1 mrg #line 3477 "configure"
3478 1.1 mrg #include "confdefs.h"
3479 1.1 mrg #include <langinfo.h>
3480 1.1 mrg int
3481 1.1 mrg main ()
3482 1.1 mrg {
3483 1.1 mrg char* cs = nl_langinfo(CODESET);
3484 1.1 mrg ;
3485 1.1 mrg return 0;
3486 1.1 mrg }
3487 1.1 mrg _ACEOF
3488 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
3489 1.1 mrg if { (eval echo "$as_me:3489: \"$ac_link\"") >&5
3490 1.1 mrg (eval $ac_link) 2>&5
3491 1.1 mrg ac_status=$?
3492 1.1 mrg echo "$as_me:3492: \$? = $ac_status" >&5
3493 1.1 mrg (exit $ac_status); } &&
3494 1.1 mrg { ac_try='test -s conftest$ac_exeext'
3495 1.1 mrg { (eval echo "$as_me:3495: \"$ac_try\"") >&5
3496 1.1 mrg (eval $ac_try) 2>&5
3497 1.1 mrg ac_status=$?
3498 1.1 mrg echo "$as_me:3498: \$? = $ac_status" >&5
3499 1.1 mrg (exit $ac_status); }; }; then
3500 1.1 mrg am_cv_langinfo_codeset=yes
3501 1.1 mrg else
3502 1.1 mrg echo "$as_me: failed program was:" >&5
3503 1.1 mrg cat conftest.$ac_ext >&5
3504 1.1 mrg am_cv_langinfo_codeset=no
3505 1.1 mrg fi
3506 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3507 1.1 mrg
3508 1.1 mrg fi
3509 1.1 mrg echo "$as_me:3509: result: $am_cv_langinfo_codeset" >&5
3510 1.1 mrg echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3511 1.1 mrg if test $am_cv_langinfo_codeset = yes; then
3512 1.1 mrg
3513 1.1 mrg cat >>confdefs.h <<\EOF
3514 1.1 mrg #define HAVE_LANGINFO_CODESET 1
3515 1.1 mrg EOF
3516 1.1 mrg
3517 1.1 mrg fi
3518 1.1 mrg
3519 1.1 mrg ### checks for typedefs
3520 1.1 mrg
3521 1.1 mrg echo "$as_me:3521: checking for signal global datatype" >&5
3522 1.1 mrg echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3523 1.1 mrg if test "${cf_cv_sig_atomic_t+set}" = set; then
3524 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3525 1.1 mrg else
3526 1.1 mrg
3527 1.1 mrg for cf_type in \
3528 1.1 mrg "volatile sig_atomic_t" \
3529 1.1 mrg "sig_atomic_t" \
3530 1.1 mrg "int"
3531 1.1 mrg do
3532 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3533 1.1 mrg #line 3533 "configure"
3534 1.1 mrg #include "confdefs.h"
3535 1.1 mrg
3536 1.1 mrg #include <sys/types.h>
3537 1.1 mrg #include <signal.h>
3538 1.1 mrg #include <stdio.h>
3539 1.1 mrg
3540 1.1 mrg extern $cf_type x;
3541 1.1 mrg $cf_type x;
3542 1.1 mrg static void handler(int sig)
3543 1.1 mrg {
3544 1.1 mrg x = 5;
3545 1.1 mrg }
3546 1.1 mrg int
3547 1.1 mrg main ()
3548 1.1 mrg {
3549 1.1 mrg signal(SIGINT, handler);
3550 1.1 mrg x = 1
3551 1.1 mrg ;
3552 1.1 mrg return 0;
3553 1.1 mrg }
3554 1.1 mrg _ACEOF
3555 1.1 mrg rm -f conftest.$ac_objext
3556 1.1 mrg if { (eval echo "$as_me:3556: \"$ac_compile\"") >&5
3557 1.1 mrg (eval $ac_compile) 2>&5
3558 1.1 mrg ac_status=$?
3559 1.1 mrg echo "$as_me:3559: \$? = $ac_status" >&5
3560 1.1 mrg (exit $ac_status); } &&
3561 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3562 1.1 mrg { (eval echo "$as_me:3562: \"$ac_try\"") >&5
3563 1.1 mrg (eval $ac_try) 2>&5
3564 1.1 mrg ac_status=$?
3565 1.1 mrg echo "$as_me:3565: \$? = $ac_status" >&5
3566 1.1 mrg (exit $ac_status); }; }; then
3567 1.1 mrg cf_cv_sig_atomic_t=$cf_type
3568 1.1 mrg else
3569 1.1 mrg echo "$as_me: failed program was:" >&5
3570 1.1 mrg cat conftest.$ac_ext >&5
3571 1.1 mrg cf_cv_sig_atomic_t=no
3572 1.1 mrg fi
3573 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3574 1.1 mrg test "$cf_cv_sig_atomic_t" != no && break
3575 1.1 mrg done
3576 1.1 mrg
3577 1.1 mrg fi
3578 1.1 mrg
3579 1.1 mrg echo "$as_me:3579: result: $cf_cv_sig_atomic_t" >&5
3580 1.1 mrg echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3581 1.1 mrg test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3582 1.1 mrg #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3583 1.1 mrg EOF
3584 1.1 mrg
3585 1.1 mrg echo "$as_me:3585: checking for size_t in <sys/types.h> or <stdio.h>" >&5
3586 1.1 mrg echo $ECHO_N "checking for size_t in <sys/types.h> or <stdio.h>... $ECHO_C" >&6
3587 1.1 mrg if test "${cf_cv_type_size_t+set}" = set; then
3588 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3589 1.1 mrg else
3590 1.1 mrg
3591 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3592 1.1 mrg #line 3592 "configure"
3593 1.1 mrg #include "confdefs.h"
3594 1.1 mrg
3595 1.1 mrg #include <sys/types.h>
3596 1.1 mrg #ifdef STDC_HEADERS
3597 1.1 mrg #include <stdlib.h>
3598 1.1 mrg #include <stddef.h>
3599 1.1 mrg #endif
3600 1.1 mrg #include <stdio.h>
3601 1.1 mrg int
3602 1.1 mrg main ()
3603 1.1 mrg {
3604 1.1 mrg size_t x
3605 1.1 mrg ;
3606 1.1 mrg return 0;
3607 1.1 mrg }
3608 1.1 mrg _ACEOF
3609 1.1 mrg rm -f conftest.$ac_objext
3610 1.1 mrg if { (eval echo "$as_me:3610: \"$ac_compile\"") >&5
3611 1.1 mrg (eval $ac_compile) 2>&5
3612 1.1 mrg ac_status=$?
3613 1.1 mrg echo "$as_me:3613: \$? = $ac_status" >&5
3614 1.1 mrg (exit $ac_status); } &&
3615 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3616 1.1 mrg { (eval echo "$as_me:3616: \"$ac_try\"") >&5
3617 1.1 mrg (eval $ac_try) 2>&5
3618 1.1 mrg ac_status=$?
3619 1.1 mrg echo "$as_me:3619: \$? = $ac_status" >&5
3620 1.1 mrg (exit $ac_status); }; }; then
3621 1.1 mrg cf_cv_type_size_t=yes
3622 1.1 mrg else
3623 1.1 mrg echo "$as_me: failed program was:" >&5
3624 1.1 mrg cat conftest.$ac_ext >&5
3625 1.1 mrg cf_cv_type_size_t=no
3626 1.1 mrg fi
3627 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3628 1.1 mrg
3629 1.1 mrg fi
3630 1.1 mrg
3631 1.1 mrg echo "$as_me:3631: result: $cf_cv_type_size_t" >&5
3632 1.1 mrg echo "${ECHO_T}$cf_cv_type_size_t" >&6
3633 1.1 mrg test $cf_cv_type_size_t = no && cat >>confdefs.h <<\EOF
3634 1.1 mrg #define size_t unsigned
3635 1.1 mrg EOF
3636 1.1 mrg
3637 1.1 mrg echo "$as_me:3637: checking for ANSI C header files" >&5
3638 1.1 mrg echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3639 1.1 mrg if test "${ac_cv_header_stdc+set}" = set; then
3640 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3641 1.1 mrg else
3642 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3643 1.1 mrg #line 3643 "configure"
3644 1.1 mrg #include "confdefs.h"
3645 1.1 mrg #include <stdlib.h>
3646 1.1 mrg #include <stdarg.h>
3647 1.1 mrg #include <string.h>
3648 1.1 mrg #include <float.h>
3649 1.1 mrg
3650 1.1 mrg _ACEOF
3651 1.1 mrg if { (eval echo "$as_me:3651: \"$ac_cpp conftest.$ac_ext\"") >&5
3652 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3653 1.1 mrg ac_status=$?
3654 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
3655 1.1 mrg rm -f conftest.er1
3656 1.1 mrg cat conftest.err >&5
3657 1.1 mrg echo "$as_me:3657: \$? = $ac_status" >&5
3658 1.1 mrg (exit $ac_status); } >/dev/null; then
3659 1.1 mrg if test -s conftest.err; then
3660 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
3661 1.1 mrg else
3662 1.1 mrg ac_cpp_err=
3663 1.1 mrg fi
3664 1.1 mrg else
3665 1.1 mrg ac_cpp_err=yes
3666 1.1 mrg fi
3667 1.1 mrg if test -z "$ac_cpp_err"; then
3668 1.1 mrg ac_cv_header_stdc=yes
3669 1.1 mrg else
3670 1.1 mrg echo "$as_me: failed program was:" >&5
3671 1.1 mrg cat conftest.$ac_ext >&5
3672 1.1 mrg ac_cv_header_stdc=no
3673 1.1 mrg fi
3674 1.1 mrg rm -f conftest.err conftest.$ac_ext
3675 1.1 mrg
3676 1.1 mrg if test $ac_cv_header_stdc = yes; then
3677 1.1 mrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3678 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3679 1.1 mrg #line 3679 "configure"
3680 1.1 mrg #include "confdefs.h"
3681 1.1 mrg #include <string.h>
3682 1.1 mrg
3683 1.1 mrg _ACEOF
3684 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685 1.1 mrg egrep "memchr" >/dev/null 2>&1; then
3686 1.1 mrg :
3687 1.1 mrg else
3688 1.1 mrg ac_cv_header_stdc=no
3689 1.1 mrg fi
3690 1.1 mrg rm -f conftest*
3691 1.1 mrg
3692 1.1 mrg fi
3693 1.1 mrg
3694 1.1 mrg if test $ac_cv_header_stdc = yes; then
3695 1.1 mrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3696 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3697 1.1 mrg #line 3697 "configure"
3698 1.1 mrg #include "confdefs.h"
3699 1.1 mrg #include <stdlib.h>
3700 1.1 mrg
3701 1.1 mrg _ACEOF
3702 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703 1.1 mrg egrep "free" >/dev/null 2>&1; then
3704 1.1 mrg :
3705 1.1 mrg else
3706 1.1 mrg ac_cv_header_stdc=no
3707 1.1 mrg fi
3708 1.1 mrg rm -f conftest*
3709 1.1 mrg
3710 1.1 mrg fi
3711 1.1 mrg
3712 1.1 mrg if test $ac_cv_header_stdc = yes; then
3713 1.1 mrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3714 1.1 mrg if test "$cross_compiling" = yes; then
3715 1.1 mrg :
3716 1.1 mrg else
3717 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3718 1.1 mrg #line 3718 "configure"
3719 1.1 mrg #include "confdefs.h"
3720 1.1 mrg #include <ctype.h>
3721 1.1 mrg #if ((' ' & 0x0FF) == 0x020)
3722 1.1 mrg # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3723 1.1 mrg # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3724 1.1 mrg #else
3725 1.1 mrg # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3726 1.1 mrg || ('j' <= (c) && (c) <= 'r') \
3727 1.1 mrg || ('s' <= (c) && (c) <= 'z'))
3728 1.1 mrg # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3729 1.1 mrg #endif
3730 1.1 mrg
3731 1.1 mrg #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3732 1.1 mrg int
3733 1.1 mrg main ()
3734 1.1 mrg {
3735 1.1 mrg int i;
3736 1.1 mrg for (i = 0; i < 256; i++)
3737 1.1 mrg if (XOR (islower (i), ISLOWER (i))
3738 1.1 mrg || toupper (i) != TOUPPER (i))
3739 1.1 mrg $ac_main_return(2);
3740 1.1 mrg $ac_main_return (0);
3741 1.1 mrg }
3742 1.1 mrg _ACEOF
3743 1.1 mrg rm -f conftest$ac_exeext
3744 1.1 mrg if { (eval echo "$as_me:3744: \"$ac_link\"") >&5
3745 1.1 mrg (eval $ac_link) 2>&5
3746 1.1 mrg ac_status=$?
3747 1.1 mrg echo "$as_me:3747: \$? = $ac_status" >&5
3748 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3749 1.1 mrg { (eval echo "$as_me:3749: \"$ac_try\"") >&5
3750 1.1 mrg (eval $ac_try) 2>&5
3751 1.1 mrg ac_status=$?
3752 1.1 mrg echo "$as_me:3752: \$? = $ac_status" >&5
3753 1.1 mrg (exit $ac_status); }; }; then
3754 1.1 mrg :
3755 1.1 mrg else
3756 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
3757 1.1 mrg echo "$as_me: failed program was:" >&5
3758 1.1 mrg cat conftest.$ac_ext >&5
3759 1.1 mrg ac_cv_header_stdc=no
3760 1.1 mrg fi
3761 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3762 1.1 mrg fi
3763 1.1 mrg fi
3764 1.1 mrg fi
3765 1.1 mrg echo "$as_me:3765: result: $ac_cv_header_stdc" >&5
3766 1.1 mrg echo "${ECHO_T}$ac_cv_header_stdc" >&6
3767 1.1 mrg if test $ac_cv_header_stdc = yes; then
3768 1.1 mrg
3769 1.1 mrg cat >>confdefs.h <<\EOF
3770 1.1 mrg #define STDC_HEADERS 1
3771 1.1 mrg EOF
3772 1.1 mrg
3773 1.1 mrg fi
3774 1.1 mrg
3775 1.1 mrg # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3776 1.1 mrg
3777 1.1 mrg for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778 1.1 mrg inttypes.h stdint.h unistd.h
3779 1.1 mrg do
3780 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781 1.1 mrg echo "$as_me:3781: checking for $ac_header" >&5
3782 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3783 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
3784 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3785 1.1 mrg else
3786 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3787 1.1 mrg #line 3787 "configure"
3788 1.1 mrg #include "confdefs.h"
3789 1.1 mrg $ac_includes_default
3790 1.1 mrg #include <$ac_header>
3791 1.1 mrg _ACEOF
3792 1.1 mrg rm -f conftest.$ac_objext
3793 1.1 mrg if { (eval echo "$as_me:3793: \"$ac_compile\"") >&5
3794 1.1 mrg (eval $ac_compile) 2>&5
3795 1.1 mrg ac_status=$?
3796 1.1 mrg echo "$as_me:3796: \$? = $ac_status" >&5
3797 1.1 mrg (exit $ac_status); } &&
3798 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3799 1.1 mrg { (eval echo "$as_me:3799: \"$ac_try\"") >&5
3800 1.1 mrg (eval $ac_try) 2>&5
3801 1.1 mrg ac_status=$?
3802 1.1 mrg echo "$as_me:3802: \$? = $ac_status" >&5
3803 1.1 mrg (exit $ac_status); }; }; then
3804 1.1 mrg eval "$as_ac_Header=yes"
3805 1.1 mrg else
3806 1.1 mrg echo "$as_me: failed program was:" >&5
3807 1.1 mrg cat conftest.$ac_ext >&5
3808 1.1 mrg eval "$as_ac_Header=no"
3809 1.1 mrg fi
3810 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3811 1.1 mrg fi
3812 1.1 mrg echo "$as_me:3812: result: `eval echo '${'$as_ac_Header'}'`" >&5
3813 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3814 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
3815 1.1 mrg cat >>confdefs.h <<EOF
3816 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3817 1.1 mrg EOF
3818 1.1 mrg
3819 1.1 mrg fi
3820 1.1 mrg done
3821 1.1 mrg
3822 1.1 mrg echo "$as_me:3822: checking for time_t" >&5
3823 1.1 mrg echo $ECHO_N "checking for time_t... $ECHO_C" >&6
3824 1.1 mrg if test "${ac_cv_type_time_t+set}" = set; then
3825 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3826 1.1 mrg else
3827 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3828 1.1 mrg #line 3828 "configure"
3829 1.1 mrg #include "confdefs.h"
3830 1.1 mrg $ac_includes_default
3831 1.1 mrg int
3832 1.1 mrg main ()
3833 1.1 mrg {
3834 1.1 mrg if ((time_t *) 0)
3835 1.1 mrg return 0;
3836 1.1 mrg if (sizeof (time_t))
3837 1.1 mrg return 0;
3838 1.1 mrg ;
3839 1.1 mrg return 0;
3840 1.1 mrg }
3841 1.1 mrg _ACEOF
3842 1.1 mrg rm -f conftest.$ac_objext
3843 1.1 mrg if { (eval echo "$as_me:3843: \"$ac_compile\"") >&5
3844 1.1 mrg (eval $ac_compile) 2>&5
3845 1.1 mrg ac_status=$?
3846 1.1 mrg echo "$as_me:3846: \$? = $ac_status" >&5
3847 1.1 mrg (exit $ac_status); } &&
3848 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3849 1.1 mrg { (eval echo "$as_me:3849: \"$ac_try\"") >&5
3850 1.1 mrg (eval $ac_try) 2>&5
3851 1.1 mrg ac_status=$?
3852 1.1 mrg echo "$as_me:3852: \$? = $ac_status" >&5
3853 1.1 mrg (exit $ac_status); }; }; then
3854 1.1 mrg ac_cv_type_time_t=yes
3855 1.1 mrg else
3856 1.1 mrg echo "$as_me: failed program was:" >&5
3857 1.1 mrg cat conftest.$ac_ext >&5
3858 1.1 mrg ac_cv_type_time_t=no
3859 1.1 mrg fi
3860 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3861 1.1 mrg fi
3862 1.1 mrg echo "$as_me:3862: result: $ac_cv_type_time_t" >&5
3863 1.1 mrg echo "${ECHO_T}$ac_cv_type_time_t" >&6
3864 1.1 mrg if test $ac_cv_type_time_t = yes; then
3865 1.1 mrg :
3866 1.1 mrg else
3867 1.1 mrg
3868 1.1 mrg cat >>confdefs.h <<EOF
3869 1.1 mrg #define time_t long
3870 1.1 mrg EOF
3871 1.1 mrg
3872 1.1 mrg fi
3873 1.1 mrg
3874 1.1 mrg echo "$as_me:3874: checking for mode_t" >&5
3875 1.1 mrg echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3876 1.1 mrg if test "${ac_cv_type_mode_t+set}" = set; then
3877 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3878 1.1 mrg else
3879 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3880 1.1 mrg #line 3880 "configure"
3881 1.1 mrg #include "confdefs.h"
3882 1.1 mrg $ac_includes_default
3883 1.1 mrg int
3884 1.1 mrg main ()
3885 1.1 mrg {
3886 1.1 mrg if ((mode_t *) 0)
3887 1.1 mrg return 0;
3888 1.1 mrg if (sizeof (mode_t))
3889 1.1 mrg return 0;
3890 1.1 mrg ;
3891 1.1 mrg return 0;
3892 1.1 mrg }
3893 1.1 mrg _ACEOF
3894 1.1 mrg rm -f conftest.$ac_objext
3895 1.1 mrg if { (eval echo "$as_me:3895: \"$ac_compile\"") >&5
3896 1.1 mrg (eval $ac_compile) 2>&5
3897 1.1 mrg ac_status=$?
3898 1.1 mrg echo "$as_me:3898: \$? = $ac_status" >&5
3899 1.1 mrg (exit $ac_status); } &&
3900 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3901 1.1 mrg { (eval echo "$as_me:3901: \"$ac_try\"") >&5
3902 1.1 mrg (eval $ac_try) 2>&5
3903 1.1 mrg ac_status=$?
3904 1.1 mrg echo "$as_me:3904: \$? = $ac_status" >&5
3905 1.1 mrg (exit $ac_status); }; }; then
3906 1.1 mrg ac_cv_type_mode_t=yes
3907 1.1 mrg else
3908 1.1 mrg echo "$as_me: failed program was:" >&5
3909 1.1 mrg cat conftest.$ac_ext >&5
3910 1.1 mrg ac_cv_type_mode_t=no
3911 1.1 mrg fi
3912 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3913 1.1 mrg fi
3914 1.1 mrg echo "$as_me:3914: result: $ac_cv_type_mode_t" >&5
3915 1.1 mrg echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3916 1.1 mrg if test $ac_cv_type_mode_t = yes; then
3917 1.1 mrg :
3918 1.1 mrg else
3919 1.1 mrg
3920 1.1 mrg cat >>confdefs.h <<EOF
3921 1.1 mrg #define mode_t int
3922 1.1 mrg EOF
3923 1.1 mrg
3924 1.1 mrg fi
3925 1.1 mrg
3926 1.1 mrg echo "$as_me:3926: checking for pid_t" >&5
3927 1.1 mrg echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3928 1.1 mrg if test "${ac_cv_type_pid_t+set}" = set; then
3929 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3930 1.1 mrg else
3931 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3932 1.1 mrg #line 3932 "configure"
3933 1.1 mrg #include "confdefs.h"
3934 1.1 mrg $ac_includes_default
3935 1.1 mrg int
3936 1.1 mrg main ()
3937 1.1 mrg {
3938 1.1 mrg if ((pid_t *) 0)
3939 1.1 mrg return 0;
3940 1.1 mrg if (sizeof (pid_t))
3941 1.1 mrg return 0;
3942 1.1 mrg ;
3943 1.1 mrg return 0;
3944 1.1 mrg }
3945 1.1 mrg _ACEOF
3946 1.1 mrg rm -f conftest.$ac_objext
3947 1.1 mrg if { (eval echo "$as_me:3947: \"$ac_compile\"") >&5
3948 1.1 mrg (eval $ac_compile) 2>&5
3949 1.1 mrg ac_status=$?
3950 1.1 mrg echo "$as_me:3950: \$? = $ac_status" >&5
3951 1.1 mrg (exit $ac_status); } &&
3952 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3953 1.1 mrg { (eval echo "$as_me:3953: \"$ac_try\"") >&5
3954 1.1 mrg (eval $ac_try) 2>&5
3955 1.1 mrg ac_status=$?
3956 1.1 mrg echo "$as_me:3956: \$? = $ac_status" >&5
3957 1.1 mrg (exit $ac_status); }; }; then
3958 1.1 mrg ac_cv_type_pid_t=yes
3959 1.1 mrg else
3960 1.1 mrg echo "$as_me: failed program was:" >&5
3961 1.1 mrg cat conftest.$ac_ext >&5
3962 1.1 mrg ac_cv_type_pid_t=no
3963 1.1 mrg fi
3964 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3965 1.1 mrg fi
3966 1.1 mrg echo "$as_me:3966: result: $ac_cv_type_pid_t" >&5
3967 1.1 mrg echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3968 1.1 mrg if test $ac_cv_type_pid_t = yes; then
3969 1.1 mrg :
3970 1.1 mrg else
3971 1.1 mrg
3972 1.1 mrg cat >>confdefs.h <<EOF
3973 1.1 mrg #define pid_t int
3974 1.1 mrg EOF
3975 1.1 mrg
3976 1.1 mrg fi
3977 1.1 mrg
3978 1.1 mrg echo "$as_me:3978: checking for uid_t in sys/types.h" >&5
3979 1.1 mrg echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3980 1.1 mrg if test "${ac_cv_type_uid_t+set}" = set; then
3981 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3982 1.1 mrg else
3983 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3984 1.1 mrg #line 3984 "configure"
3985 1.1 mrg #include "confdefs.h"
3986 1.1 mrg #include <sys/types.h>
3987 1.1 mrg
3988 1.1 mrg _ACEOF
3989 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 1.1 mrg egrep "uid_t" >/dev/null 2>&1; then
3991 1.1 mrg ac_cv_type_uid_t=yes
3992 1.1 mrg else
3993 1.1 mrg ac_cv_type_uid_t=no
3994 1.1 mrg fi
3995 1.1 mrg rm -f conftest*
3996 1.1 mrg
3997 1.1 mrg fi
3998 1.1 mrg echo "$as_me:3998: result: $ac_cv_type_uid_t" >&5
3999 1.1 mrg echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4000 1.1 mrg if test $ac_cv_type_uid_t = no; then
4001 1.1 mrg
4002 1.1 mrg cat >>confdefs.h <<\EOF
4003 1.1 mrg #define uid_t int
4004 1.1 mrg EOF
4005 1.1 mrg
4006 1.1 mrg cat >>confdefs.h <<\EOF
4007 1.1 mrg #define gid_t int
4008 1.1 mrg EOF
4009 1.1 mrg
4010 1.1 mrg fi
4011 1.1 mrg
4012 1.1 mrg echo "$as_me:4012: checking for off_t" >&5
4013 1.1 mrg echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4014 1.1 mrg if test "${ac_cv_type_off_t+set}" = set; then
4015 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4016 1.1 mrg else
4017 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4018 1.1 mrg #line 4018 "configure"
4019 1.1 mrg #include "confdefs.h"
4020 1.1 mrg $ac_includes_default
4021 1.1 mrg int
4022 1.1 mrg main ()
4023 1.1 mrg {
4024 1.1 mrg if ((off_t *) 0)
4025 1.1 mrg return 0;
4026 1.1 mrg if (sizeof (off_t))
4027 1.1 mrg return 0;
4028 1.1 mrg ;
4029 1.1 mrg return 0;
4030 1.1 mrg }
4031 1.1 mrg _ACEOF
4032 1.1 mrg rm -f conftest.$ac_objext
4033 1.1 mrg if { (eval echo "$as_me:4033: \"$ac_compile\"") >&5
4034 1.1 mrg (eval $ac_compile) 2>&5
4035 1.1 mrg ac_status=$?
4036 1.1 mrg echo "$as_me:4036: \$? = $ac_status" >&5
4037 1.1 mrg (exit $ac_status); } &&
4038 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4039 1.1 mrg { (eval echo "$as_me:4039: \"$ac_try\"") >&5
4040 1.1 mrg (eval $ac_try) 2>&5
4041 1.1 mrg ac_status=$?
4042 1.1 mrg echo "$as_me:4042: \$? = $ac_status" >&5
4043 1.1 mrg (exit $ac_status); }; }; then
4044 1.1 mrg ac_cv_type_off_t=yes
4045 1.1 mrg else
4046 1.1 mrg echo "$as_me: failed program was:" >&5
4047 1.1 mrg cat conftest.$ac_ext >&5
4048 1.1 mrg ac_cv_type_off_t=no
4049 1.1 mrg fi
4050 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4051 1.1 mrg fi
4052 1.1 mrg echo "$as_me:4052: result: $ac_cv_type_off_t" >&5
4053 1.1 mrg echo "${ECHO_T}$ac_cv_type_off_t" >&6
4054 1.1 mrg if test $ac_cv_type_off_t = yes; then
4055 1.1 mrg :
4056 1.1 mrg else
4057 1.1 mrg
4058 1.1 mrg cat >>confdefs.h <<EOF
4059 1.1 mrg #define off_t long
4060 1.1 mrg EOF
4061 1.1 mrg
4062 1.1 mrg fi
4063 1.1 mrg
4064 1.1 mrg ### checks for library functions
4065 1.1 mrg
4066 1.1 mrg for ac_func in \
4067 1.1 mrg bcopy \
4068 1.1 mrg gethostname \
4069 1.1 mrg getlogin \
4070 1.1 mrg memmove \
4071 1.1 mrg putenv \
4072 1.1 mrg sched_yield \
4073 1.1 mrg strerror \
4074 1.1 mrg strftime \
4075 1.1 mrg tcgetattr \
4076 1.1 mrg waitpid \
4077 1.1 mrg wcswidth \
4078 1.1 mrg wcwidth
4079 1.1 mrg do
4080 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4081 1.1 mrg echo "$as_me:4081: checking for $ac_func" >&5
4082 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4083 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
4084 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4085 1.1 mrg else
4086 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4087 1.1 mrg #line 4087 "configure"
4088 1.1 mrg #include "confdefs.h"
4089 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
4090 1.1 mrg which can conflict with char $ac_func (); below. */
4091 1.1 mrg #include <assert.h>
4092 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
4093 1.1 mrg #ifdef __cplusplus
4094 1.1 mrg extern "C"
4095 1.1 mrg #endif
4096 1.1 mrg /* We use char because int might match the return type of a gcc2
4097 1.1 mrg builtin and then its argument prototype would still apply. */
4098 1.1 mrg char $ac_func ();
4099 1.1 mrg char (*f) ();
4100 1.1 mrg
4101 1.1 mrg int
4102 1.1 mrg main ()
4103 1.1 mrg {
4104 1.1 mrg /* The GNU C library defines this for functions which it implements
4105 1.1 mrg to always fail with ENOSYS. Some functions are actually named
4106 1.1 mrg something starting with __ and the normal name is an alias. */
4107 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 1.1 mrg choke me
4109 1.1 mrg #else
4110 1.1 mrg f = $ac_func;
4111 1.1 mrg #endif
4112 1.1 mrg
4113 1.1 mrg ;
4114 1.1 mrg return 0;
4115 1.1 mrg }
4116 1.1 mrg _ACEOF
4117 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4118 1.1 mrg if { (eval echo "$as_me:4118: \"$ac_link\"") >&5
4119 1.1 mrg (eval $ac_link) 2>&5
4120 1.1 mrg ac_status=$?
4121 1.1 mrg echo "$as_me:4121: \$? = $ac_status" >&5
4122 1.1 mrg (exit $ac_status); } &&
4123 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4124 1.1 mrg { (eval echo "$as_me:4124: \"$ac_try\"") >&5
4125 1.1 mrg (eval $ac_try) 2>&5
4126 1.1 mrg ac_status=$?
4127 1.1 mrg echo "$as_me:4127: \$? = $ac_status" >&5
4128 1.1 mrg (exit $ac_status); }; }; then
4129 1.1 mrg eval "$as_ac_var=yes"
4130 1.1 mrg else
4131 1.1 mrg echo "$as_me: failed program was:" >&5
4132 1.1 mrg cat conftest.$ac_ext >&5
4133 1.1 mrg eval "$as_ac_var=no"
4134 1.1 mrg fi
4135 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4136 1.1 mrg fi
4137 1.1 mrg echo "$as_me:4137: result: `eval echo '${'$as_ac_var'}'`" >&5
4138 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4139 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
4140 1.1 mrg cat >>confdefs.h <<EOF
4141 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4142 1.1 mrg EOF
4143 1.1 mrg
4144 1.1 mrg fi
4145 1.1 mrg done
4146 1.1 mrg
4147 1.1 mrg echo "$as_me:4147: checking for memmove" >&5
4148 1.1 mrg echo $ECHO_N "checking for memmove... $ECHO_C" >&6
4149 1.1 mrg if test "${ac_cv_func_memmove+set}" = set; then
4150 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4151 1.1 mrg else
4152 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4153 1.1 mrg #line 4153 "configure"
4154 1.1 mrg #include "confdefs.h"
4155 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
4156 1.1 mrg which can conflict with char memmove (); below. */
4157 1.1 mrg #include <assert.h>
4158 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
4159 1.1 mrg #ifdef __cplusplus
4160 1.1 mrg extern "C"
4161 1.1 mrg #endif
4162 1.1 mrg /* We use char because int might match the return type of a gcc2
4163 1.1 mrg builtin and then its argument prototype would still apply. */
4164 1.1 mrg char memmove ();
4165 1.1 mrg char (*f) ();
4166 1.1 mrg
4167 1.1 mrg int
4168 1.1 mrg main ()
4169 1.1 mrg {
4170 1.1 mrg /* The GNU C library defines this for functions which it implements
4171 1.1 mrg to always fail with ENOSYS. Some functions are actually named
4172 1.1 mrg something starting with __ and the normal name is an alias. */
4173 1.1 mrg #if defined (__stub_memmove) || defined (__stub___memmove)
4174 1.1 mrg choke me
4175 1.1 mrg #else
4176 1.1 mrg f = memmove;
4177 1.1 mrg #endif
4178 1.1 mrg
4179 1.1 mrg ;
4180 1.1 mrg return 0;
4181 1.1 mrg }
4182 1.1 mrg _ACEOF
4183 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4184 1.1 mrg if { (eval echo "$as_me:4184: \"$ac_link\"") >&5
4185 1.1 mrg (eval $ac_link) 2>&5
4186 1.1 mrg ac_status=$?
4187 1.1 mrg echo "$as_me:4187: \$? = $ac_status" >&5
4188 1.1 mrg (exit $ac_status); } &&
4189 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4190 1.1 mrg { (eval echo "$as_me:4190: \"$ac_try\"") >&5
4191 1.1 mrg (eval $ac_try) 2>&5
4192 1.1 mrg ac_status=$?
4193 1.1 mrg echo "$as_me:4193: \$? = $ac_status" >&5
4194 1.1 mrg (exit $ac_status); }; }; then
4195 1.1 mrg ac_cv_func_memmove=yes
4196 1.1 mrg else
4197 1.1 mrg echo "$as_me: failed program was:" >&5
4198 1.1 mrg cat conftest.$ac_ext >&5
4199 1.1 mrg ac_cv_func_memmove=no
4200 1.1 mrg fi
4201 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4202 1.1 mrg fi
4203 1.1 mrg echo "$as_me:4203: result: $ac_cv_func_memmove" >&5
4204 1.1 mrg echo "${ECHO_T}$ac_cv_func_memmove" >&6
4205 1.1 mrg if test $ac_cv_func_memmove = yes; then
4206 1.1 mrg :
4207 1.1 mrg else
4208 1.1 mrg
4209 1.1 mrg echo "$as_me:4209: checking for bcopy" >&5
4210 1.1 mrg echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
4211 1.1 mrg if test "${ac_cv_func_bcopy+set}" = set; then
4212 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4213 1.1 mrg else
4214 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4215 1.1 mrg #line 4215 "configure"
4216 1.1 mrg #include "confdefs.h"
4217 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
4218 1.1 mrg which can conflict with char bcopy (); below. */
4219 1.1 mrg #include <assert.h>
4220 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
4221 1.1 mrg #ifdef __cplusplus
4222 1.1 mrg extern "C"
4223 1.1 mrg #endif
4224 1.1 mrg /* We use char because int might match the return type of a gcc2
4225 1.1 mrg builtin and then its argument prototype would still apply. */
4226 1.1 mrg char bcopy ();
4227 1.1 mrg char (*f) ();
4228 1.1 mrg
4229 1.1 mrg int
4230 1.1 mrg main ()
4231 1.1 mrg {
4232 1.1 mrg /* The GNU C library defines this for functions which it implements
4233 1.1 mrg to always fail with ENOSYS. Some functions are actually named
4234 1.1 mrg something starting with __ and the normal name is an alias. */
4235 1.1 mrg #if defined (__stub_bcopy) || defined (__stub___bcopy)
4236 1.1 mrg choke me
4237 1.1 mrg #else
4238 1.1 mrg f = bcopy;
4239 1.1 mrg #endif
4240 1.1 mrg
4241 1.1 mrg ;
4242 1.1 mrg return 0;
4243 1.1 mrg }
4244 1.1 mrg _ACEOF
4245 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4246 1.1 mrg if { (eval echo "$as_me:4246: \"$ac_link\"") >&5
4247 1.1 mrg (eval $ac_link) 2>&5
4248 1.1 mrg ac_status=$?
4249 1.1 mrg echo "$as_me:4249: \$? = $ac_status" >&5
4250 1.1 mrg (exit $ac_status); } &&
4251 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4252 1.1 mrg { (eval echo "$as_me:4252: \"$ac_try\"") >&5
4253 1.1 mrg (eval $ac_try) 2>&5
4254 1.1 mrg ac_status=$?
4255 1.1 mrg echo "$as_me:4255: \$? = $ac_status" >&5
4256 1.1 mrg (exit $ac_status); }; }; then
4257 1.1 mrg ac_cv_func_bcopy=yes
4258 1.1 mrg else
4259 1.1 mrg echo "$as_me: failed program was:" >&5
4260 1.1 mrg cat conftest.$ac_ext >&5
4261 1.1 mrg ac_cv_func_bcopy=no
4262 1.1 mrg fi
4263 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4264 1.1 mrg fi
4265 1.1 mrg echo "$as_me:4265: result: $ac_cv_func_bcopy" >&5
4266 1.1 mrg echo "${ECHO_T}$ac_cv_func_bcopy" >&6
4267 1.1 mrg if test $ac_cv_func_bcopy = yes; then
4268 1.1 mrg
4269 1.1 mrg echo "$as_me:4269: checking if bcopy does overlapping moves" >&5
4270 1.1 mrg echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
4271 1.1 mrg if test "${cf_cv_good_bcopy+set}" = set; then
4272 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4273 1.1 mrg else
4274 1.1 mrg
4275 1.1 mrg if test "$cross_compiling" = yes; then
4276 1.1 mrg cf_cv_good_bcopy=unknown
4277 1.1 mrg else
4278 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4279 1.1 mrg #line 4279 "configure"
4280 1.1 mrg #include "confdefs.h"
4281 1.1 mrg
4282 1.1 mrg int main() {
4283 1.1 mrg static char data[] = "abcdefghijklmnopqrstuwwxyz";
4284 1.1 mrg char temp[40];
4285 1.1 mrg bcopy(data, temp, sizeof(data));
4286 1.1 mrg bcopy(temp+10, temp, 15);
4287 1.1 mrg bcopy(temp+5, temp+15, 10);
4288 1.1 mrg ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
4289 1.1 mrg }
4290 1.1 mrg
4291 1.1 mrg _ACEOF
4292 1.1 mrg rm -f conftest$ac_exeext
4293 1.1 mrg if { (eval echo "$as_me:4293: \"$ac_link\"") >&5
4294 1.1 mrg (eval $ac_link) 2>&5
4295 1.1 mrg ac_status=$?
4296 1.1 mrg echo "$as_me:4296: \$? = $ac_status" >&5
4297 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4298 1.1 mrg { (eval echo "$as_me:4298: \"$ac_try\"") >&5
4299 1.1 mrg (eval $ac_try) 2>&5
4300 1.1 mrg ac_status=$?
4301 1.1 mrg echo "$as_me:4301: \$? = $ac_status" >&5
4302 1.1 mrg (exit $ac_status); }; }; then
4303 1.1 mrg cf_cv_good_bcopy=yes
4304 1.1 mrg else
4305 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
4306 1.1 mrg echo "$as_me: failed program was:" >&5
4307 1.1 mrg cat conftest.$ac_ext >&5
4308 1.1 mrg cf_cv_good_bcopy=no
4309 1.1 mrg fi
4310 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311 1.1 mrg fi
4312 1.1 mrg
4313 1.1 mrg fi
4314 1.1 mrg echo "$as_me:4314: result: $cf_cv_good_bcopy" >&5
4315 1.1 mrg echo "${ECHO_T}$cf_cv_good_bcopy" >&6
4316 1.1 mrg
4317 1.1 mrg else
4318 1.1 mrg cf_cv_good_bcopy=no
4319 1.1 mrg fi
4320 1.1 mrg
4321 1.1 mrg if test "$cf_cv_good_bcopy" = yes ; then
4322 1.1 mrg cat >>confdefs.h <<\EOF
4323 1.1 mrg #define USE_OK_BCOPY 1
4324 1.1 mrg EOF
4325 1.1 mrg
4326 1.1 mrg else
4327 1.1 mrg cat >>confdefs.h <<\EOF
4328 1.1 mrg #define USE_MY_MEMMOVE 1
4329 1.1 mrg EOF
4330 1.1 mrg
4331 1.1 mrg fi
4332 1.1 mrg
4333 1.1 mrg fi
4334 1.1 mrg
4335 1.1 mrg for ac_header in lastlog.h paths.h
4336 1.1 mrg do
4337 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 1.1 mrg echo "$as_me:4338: checking for $ac_header" >&5
4339 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4340 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
4341 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4342 1.1 mrg else
4343 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4344 1.1 mrg #line 4344 "configure"
4345 1.1 mrg #include "confdefs.h"
4346 1.1 mrg #include <$ac_header>
4347 1.1 mrg _ACEOF
4348 1.1 mrg if { (eval echo "$as_me:4348: \"$ac_cpp conftest.$ac_ext\"") >&5
4349 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4350 1.1 mrg ac_status=$?
4351 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
4352 1.1 mrg rm -f conftest.er1
4353 1.1 mrg cat conftest.err >&5
4354 1.1 mrg echo "$as_me:4354: \$? = $ac_status" >&5
4355 1.1 mrg (exit $ac_status); } >/dev/null; then
4356 1.1 mrg if test -s conftest.err; then
4357 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
4358 1.1 mrg else
4359 1.1 mrg ac_cpp_err=
4360 1.1 mrg fi
4361 1.1 mrg else
4362 1.1 mrg ac_cpp_err=yes
4363 1.1 mrg fi
4364 1.1 mrg if test -z "$ac_cpp_err"; then
4365 1.1 mrg eval "$as_ac_Header=yes"
4366 1.1 mrg else
4367 1.1 mrg echo "$as_me: failed program was:" >&5
4368 1.1 mrg cat conftest.$ac_ext >&5
4369 1.1 mrg eval "$as_ac_Header=no"
4370 1.1 mrg fi
4371 1.1 mrg rm -f conftest.err conftest.$ac_ext
4372 1.1 mrg fi
4373 1.1 mrg echo "$as_me:4373: result: `eval echo '${'$as_ac_Header'}'`" >&5
4374 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4375 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
4376 1.1 mrg cat >>confdefs.h <<EOF
4377 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4378 1.1 mrg EOF
4379 1.1 mrg
4380 1.1 mrg fi
4381 1.1 mrg done
4382 1.1 mrg
4383 1.1 mrg echo "$as_me:4383: checking for lastlog path" >&5
4384 1.1 mrg echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
4385 1.1 mrg if test "${cf_cv_path_lastlog+set}" = set; then
4386 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4387 1.1 mrg else
4388 1.1 mrg
4389 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4390 1.1 mrg #line 4390 "configure"
4391 1.1 mrg #include "confdefs.h"
4392 1.1 mrg
4393 1.1 mrg #include <sys/types.h>
4394 1.1 mrg #ifdef HAVE_LASTLOG_H
4395 1.1 mrg #include <lastlog.h>
4396 1.1 mrg #else
4397 1.1 mrg #ifdef HAVE_PATHS_H
4398 1.1 mrg #include <paths.h>
4399 1.1 mrg #endif
4400 1.1 mrg #endif
4401 1.1 mrg int
4402 1.1 mrg main ()
4403 1.1 mrg {
4404 1.1 mrg char *path = _PATH_LASTLOG
4405 1.1 mrg ;
4406 1.1 mrg return 0;
4407 1.1 mrg }
4408 1.1 mrg _ACEOF
4409 1.1 mrg rm -f conftest.$ac_objext
4410 1.1 mrg if { (eval echo "$as_me:4410: \"$ac_compile\"") >&5
4411 1.1 mrg (eval $ac_compile) 2>&5
4412 1.1 mrg ac_status=$?
4413 1.1 mrg echo "$as_me:4413: \$? = $ac_status" >&5
4414 1.1 mrg (exit $ac_status); } &&
4415 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4416 1.1 mrg { (eval echo "$as_me:4416: \"$ac_try\"") >&5
4417 1.1 mrg (eval $ac_try) 2>&5
4418 1.1 mrg ac_status=$?
4419 1.1 mrg echo "$as_me:4419: \$? = $ac_status" >&5
4420 1.1 mrg (exit $ac_status); }; }; then
4421 1.1 mrg cf_cv_path_lastlog="_PATH_LASTLOG"
4422 1.1 mrg else
4423 1.1 mrg echo "$as_me: failed program was:" >&5
4424 1.1 mrg cat conftest.$ac_ext >&5
4425 1.1 mrg if test -f /usr/adm/lastlog ; then
4426 1.1 mrg cf_cv_path_lastlog=/usr/adm/lastlog
4427 1.1 mrg else
4428 1.1 mrg cf_cv_path_lastlog=no
4429 1.1 mrg fi
4430 1.1 mrg fi
4431 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4432 1.1 mrg
4433 1.1 mrg fi
4434 1.1 mrg echo "$as_me:4434: result: $cf_cv_path_lastlog" >&5
4435 1.1 mrg echo "${ECHO_T}$cf_cv_path_lastlog" >&6
4436 1.1 mrg test $cf_cv_path_lastlog != no && cat >>confdefs.h <<\EOF
4437 1.1 mrg #define USE_LASTLOG 1
4438 1.1 mrg EOF
4439 1.1 mrg
4440 1.1 mrg echo "$as_me:4440: checking for utmp implementation" >&5
4441 1.1 mrg echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
4442 1.1 mrg if test "${cf_cv_have_utmp+set}" = set; then
4443 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4444 1.1 mrg else
4445 1.1 mrg
4446 1.1 mrg cf_cv_have_utmp=no
4447 1.1 mrg for cf_header in utmpx utmp ; do
4448 1.1 mrg cf_utmp_includes="
4449 1.1 mrg #include <sys/types.h>
4450 1.1 mrg #include <${cf_header}.h>
4451 1.1 mrg #define getutent getutxent
4452 1.1 mrg #ifdef USE_LASTLOG
4453 1.1 mrg #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4454 1.1 mrg #endif
4455 1.1 mrg "
4456 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4457 1.1 mrg #line 4457 "configure"
4458 1.1 mrg #include "confdefs.h"
4459 1.1 mrg $cf_utmp_includes
4460 1.1 mrg int
4461 1.1 mrg main ()
4462 1.1 mrg {
4463 1.1 mrg struct $cf_header x;
4464 1.1 mrg char *name = x.ut_name; /* utmp.h and compatible definitions */
4465 1.1 mrg
4466 1.1 mrg ;
4467 1.1 mrg return 0;
4468 1.1 mrg }
4469 1.1 mrg _ACEOF
4470 1.1 mrg rm -f conftest.$ac_objext
4471 1.1 mrg if { (eval echo "$as_me:4471: \"$ac_compile\"") >&5
4472 1.1 mrg (eval $ac_compile) 2>&5
4473 1.1 mrg ac_status=$?
4474 1.1 mrg echo "$as_me:4474: \$? = $ac_status" >&5
4475 1.1 mrg (exit $ac_status); } &&
4476 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4477 1.1 mrg { (eval echo "$as_me:4477: \"$ac_try\"") >&5
4478 1.1 mrg (eval $ac_try) 2>&5
4479 1.1 mrg ac_status=$?
4480 1.1 mrg echo "$as_me:4480: \$? = $ac_status" >&5
4481 1.1 mrg (exit $ac_status); }; }; then
4482 1.1 mrg cf_cv_have_utmp=$cf_header
4483 1.1 mrg break
4484 1.1 mrg else
4485 1.1 mrg echo "$as_me: failed program was:" >&5
4486 1.1 mrg cat conftest.$ac_ext >&5
4487 1.1 mrg
4488 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4489 1.1 mrg #line 4489 "configure"
4490 1.1 mrg #include "confdefs.h"
4491 1.1 mrg $cf_utmp_includes
4492 1.1 mrg int
4493 1.1 mrg main ()
4494 1.1 mrg {
4495 1.1 mrg struct $cf_header x;
4496 1.1 mrg char *name = x.ut_user; /* utmpx.h must declare this */
4497 1.1 mrg
4498 1.1 mrg ;
4499 1.1 mrg return 0;
4500 1.1 mrg }
4501 1.1 mrg _ACEOF
4502 1.1 mrg rm -f conftest.$ac_objext
4503 1.1 mrg if { (eval echo "$as_me:4503: \"$ac_compile\"") >&5
4504 1.1 mrg (eval $ac_compile) 2>&5
4505 1.1 mrg ac_status=$?
4506 1.1 mrg echo "$as_me:4506: \$? = $ac_status" >&5
4507 1.1 mrg (exit $ac_status); } &&
4508 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4509 1.1 mrg { (eval echo "$as_me:4509: \"$ac_try\"") >&5
4510 1.1 mrg (eval $ac_try) 2>&5
4511 1.1 mrg ac_status=$?
4512 1.1 mrg echo "$as_me:4512: \$? = $ac_status" >&5
4513 1.1 mrg (exit $ac_status); }; }; then
4514 1.1 mrg cf_cv_have_utmp=$cf_header
4515 1.1 mrg break
4516 1.1 mrg
4517 1.1 mrg else
4518 1.1 mrg echo "$as_me: failed program was:" >&5
4519 1.1 mrg cat conftest.$ac_ext >&5
4520 1.1 mrg fi
4521 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4522 1.1 mrg fi
4523 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4524 1.1 mrg done
4525 1.1 mrg
4526 1.1 mrg fi
4527 1.1 mrg echo "$as_me:4527: result: $cf_cv_have_utmp" >&5
4528 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp" >&6
4529 1.1 mrg
4530 1.1 mrg if test $cf_cv_have_utmp != no ; then
4531 1.1 mrg cat >>confdefs.h <<\EOF
4532 1.1 mrg #define HAVE_UTMP 1
4533 1.1 mrg EOF
4534 1.1 mrg
4535 1.1 mrg test $cf_cv_have_utmp = utmpx && cat >>confdefs.h <<\EOF
4536 1.1 mrg #define UTMPX_FOR_UTMP 1
4537 1.1 mrg EOF
4538 1.1 mrg
4539 1.1 mrg if test $cf_cv_have_utmp != no ; then
4540 1.1 mrg echo "$as_me:4540: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
4541 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
4542 1.1 mrg if test "${cf_cv_have_utmp_ut_host+set}" = set; then
4543 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4544 1.1 mrg else
4545 1.1 mrg
4546 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4547 1.1 mrg #line 4547 "configure"
4548 1.1 mrg #include "confdefs.h"
4549 1.1 mrg
4550 1.1 mrg #include <sys/types.h>
4551 1.1 mrg #include <${cf_cv_have_utmp}.h>
4552 1.1 mrg int
4553 1.1 mrg main ()
4554 1.1 mrg {
4555 1.1 mrg struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
4556 1.1 mrg ;
4557 1.1 mrg return 0;
4558 1.1 mrg }
4559 1.1 mrg _ACEOF
4560 1.1 mrg rm -f conftest.$ac_objext
4561 1.1 mrg if { (eval echo "$as_me:4561: \"$ac_compile\"") >&5
4562 1.1 mrg (eval $ac_compile) 2>&5
4563 1.1 mrg ac_status=$?
4564 1.1 mrg echo "$as_me:4564: \$? = $ac_status" >&5
4565 1.1 mrg (exit $ac_status); } &&
4566 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4567 1.1 mrg { (eval echo "$as_me:4567: \"$ac_try\"") >&5
4568 1.1 mrg (eval $ac_try) 2>&5
4569 1.1 mrg ac_status=$?
4570 1.1 mrg echo "$as_me:4570: \$? = $ac_status" >&5
4571 1.1 mrg (exit $ac_status); }; }; then
4572 1.1 mrg cf_cv_have_utmp_ut_host=yes
4573 1.1 mrg else
4574 1.1 mrg echo "$as_me: failed program was:" >&5
4575 1.1 mrg cat conftest.$ac_ext >&5
4576 1.1 mrg cf_cv_have_utmp_ut_host=no
4577 1.1 mrg fi
4578 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4579 1.1 mrg
4580 1.1 mrg fi
4581 1.1 mrg
4582 1.1 mrg echo "$as_me:4582: result: $cf_cv_have_utmp_ut_host" >&5
4583 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
4584 1.1 mrg test $cf_cv_have_utmp_ut_host != no && cat >>confdefs.h <<\EOF
4585 1.1 mrg #define HAVE_UTMP_UT_HOST 1
4586 1.1 mrg EOF
4587 1.1 mrg
4588 1.1 mrg fi
4589 1.1 mrg
4590 1.1 mrg if test $cf_cv_have_utmp != no ; then
4591 1.1 mrg echo "$as_me:4591: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
4592 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
4593 1.1 mrg if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
4594 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4595 1.1 mrg else
4596 1.1 mrg
4597 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4598 1.1 mrg #line 4598 "configure"
4599 1.1 mrg #include "confdefs.h"
4600 1.1 mrg
4601 1.1 mrg #include <sys/types.h>
4602 1.1 mrg #include <${cf_cv_have_utmp}.h>
4603 1.1 mrg int
4604 1.1 mrg main ()
4605 1.1 mrg {
4606 1.1 mrg struct $cf_cv_have_utmp x; int y = x.ut_syslen
4607 1.1 mrg ;
4608 1.1 mrg return 0;
4609 1.1 mrg }
4610 1.1 mrg _ACEOF
4611 1.1 mrg rm -f conftest.$ac_objext
4612 1.1 mrg if { (eval echo "$as_me:4612: \"$ac_compile\"") >&5
4613 1.1 mrg (eval $ac_compile) 2>&5
4614 1.1 mrg ac_status=$?
4615 1.1 mrg echo "$as_me:4615: \$? = $ac_status" >&5
4616 1.1 mrg (exit $ac_status); } &&
4617 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4618 1.1 mrg { (eval echo "$as_me:4618: \"$ac_try\"") >&5
4619 1.1 mrg (eval $ac_try) 2>&5
4620 1.1 mrg ac_status=$?
4621 1.1 mrg echo "$as_me:4621: \$? = $ac_status" >&5
4622 1.1 mrg (exit $ac_status); }; }; then
4623 1.1 mrg cf_cv_have_utmp_ut_syslen=yes
4624 1.1 mrg else
4625 1.1 mrg echo "$as_me: failed program was:" >&5
4626 1.1 mrg cat conftest.$ac_ext >&5
4627 1.1 mrg cf_cv_have_utmp_ut_syslen=no
4628 1.1 mrg fi
4629 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4630 1.1 mrg
4631 1.1 mrg fi
4632 1.1 mrg
4633 1.1 mrg echo "$as_me:4633: result: $cf_cv_have_utmp_ut_syslen" >&5
4634 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
4635 1.1 mrg test $cf_cv_have_utmp_ut_syslen != no && cat >>confdefs.h <<\EOF
4636 1.1 mrg #define HAVE_UTMP_UT_SYSLEN 1
4637 1.1 mrg EOF
4638 1.1 mrg
4639 1.1 mrg fi
4640 1.1 mrg
4641 1.1 mrg if test $cf_cv_have_utmp != no ; then
4642 1.1 mrg echo "$as_me:4642: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
4643 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
4644 1.1 mrg if test "${cf_cv_have_utmp_ut_name+set}" = set; then
4645 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4646 1.1 mrg else
4647 1.1 mrg
4648 1.1 mrg cf_cv_have_utmp_ut_name=no
4649 1.1 mrg cf_utmp_includes="
4650 1.1 mrg #include <sys/types.h>
4651 1.1 mrg #include <${cf_cv_have_utmp}.h>
4652 1.1 mrg #define getutent getutxent
4653 1.1 mrg #ifdef USE_LASTLOG
4654 1.1 mrg #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4655 1.1 mrg #endif
4656 1.1 mrg "
4657 1.1 mrg for cf_header in ut_name ut_user ; do
4658 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4659 1.1 mrg #line 4659 "configure"
4660 1.1 mrg #include "confdefs.h"
4661 1.1 mrg $cf_utmp_includes
4662 1.1 mrg int
4663 1.1 mrg main ()
4664 1.1 mrg {
4665 1.1 mrg struct $cf_cv_have_utmp x;
4666 1.1 mrg char *name = x.$cf_header;
4667 1.1 mrg
4668 1.1 mrg ;
4669 1.1 mrg return 0;
4670 1.1 mrg }
4671 1.1 mrg _ACEOF
4672 1.1 mrg rm -f conftest.$ac_objext
4673 1.1 mrg if { (eval echo "$as_me:4673: \"$ac_compile\"") >&5
4674 1.1 mrg (eval $ac_compile) 2>&5
4675 1.1 mrg ac_status=$?
4676 1.1 mrg echo "$as_me:4676: \$? = $ac_status" >&5
4677 1.1 mrg (exit $ac_status); } &&
4678 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4679 1.1 mrg { (eval echo "$as_me:4679: \"$ac_try\"") >&5
4680 1.1 mrg (eval $ac_try) 2>&5
4681 1.1 mrg ac_status=$?
4682 1.1 mrg echo "$as_me:4682: \$? = $ac_status" >&5
4683 1.1 mrg (exit $ac_status); }; }; then
4684 1.1 mrg cf_cv_have_utmp_ut_name=$cf_header
4685 1.1 mrg break
4686 1.1 mrg else
4687 1.1 mrg echo "$as_me: failed program was:" >&5
4688 1.1 mrg cat conftest.$ac_ext >&5
4689 1.1 mrg fi
4690 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4691 1.1 mrg done
4692 1.1 mrg
4693 1.1 mrg fi
4694 1.1 mrg echo "$as_me:4694: result: $cf_cv_have_utmp_ut_name" >&5
4695 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
4696 1.1 mrg
4697 1.1 mrg case $cf_cv_have_utmp_ut_name in #(vi
4698 1.1 mrg no) #(vi
4699 1.1 mrg { { echo "$as_me:4699: error: Cannot find declaration for ut.ut_name" >&5
4700 1.1 mrg echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
4701 1.1 mrg { (exit 1); exit 1; }; }
4702 1.1 mrg ;;
4703 1.1 mrg ut_user)
4704 1.1 mrg cat >>confdefs.h <<\EOF
4705 1.1 mrg #define ut_name ut_user
4706 1.1 mrg EOF
4707 1.1 mrg
4708 1.1 mrg ;;
4709 1.1 mrg esac
4710 1.1 mrg fi
4711 1.1 mrg
4712 1.1 mrg if test $cf_cv_have_utmp != no ; then
4713 1.1 mrg echo "$as_me:4713: checking for exit-status in $cf_cv_have_utmp" >&5
4714 1.1 mrg echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
4715 1.1 mrg if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
4716 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4717 1.1 mrg else
4718 1.1 mrg
4719 1.1 mrg for cf_result in \
4720 1.1 mrg ut_exit.__e_exit \
4721 1.1 mrg ut_exit.e_exit \
4722 1.1 mrg ut_exit.ut_e_exit \
4723 1.1 mrg ut_exit.ut_exit
4724 1.1 mrg do
4725 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4726 1.1 mrg #line 4726 "configure"
4727 1.1 mrg #include "confdefs.h"
4728 1.1 mrg
4729 1.1 mrg #include <sys/types.h>
4730 1.1 mrg #include <${cf_cv_have_utmp}.h>
4731 1.1 mrg int
4732 1.1 mrg main ()
4733 1.1 mrg {
4734 1.1 mrg struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
4735 1.1 mrg ;
4736 1.1 mrg return 0;
4737 1.1 mrg }
4738 1.1 mrg _ACEOF
4739 1.1 mrg rm -f conftest.$ac_objext
4740 1.1 mrg if { (eval echo "$as_me:4740: \"$ac_compile\"") >&5
4741 1.1 mrg (eval $ac_compile) 2>&5
4742 1.1 mrg ac_status=$?
4743 1.1 mrg echo "$as_me:4743: \$? = $ac_status" >&5
4744 1.1 mrg (exit $ac_status); } &&
4745 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4746 1.1 mrg { (eval echo "$as_me:4746: \"$ac_try\"") >&5
4747 1.1 mrg (eval $ac_try) 2>&5
4748 1.1 mrg ac_status=$?
4749 1.1 mrg echo "$as_me:4749: \$? = $ac_status" >&5
4750 1.1 mrg (exit $ac_status); }; }; then
4751 1.1 mrg cf_cv_have_utmp_ut_xstatus=$cf_result
4752 1.1 mrg break
4753 1.1 mrg else
4754 1.1 mrg echo "$as_me: failed program was:" >&5
4755 1.1 mrg cat conftest.$ac_ext >&5
4756 1.1 mrg cf_cv_have_utmp_ut_xstatus=no
4757 1.1 mrg fi
4758 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4759 1.1 mrg done
4760 1.1 mrg
4761 1.1 mrg fi
4762 1.1 mrg echo "$as_me:4762: result: $cf_cv_have_utmp_ut_xstatus" >&5
4763 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
4764 1.1 mrg if test $cf_cv_have_utmp_ut_xstatus != no ; then
4765 1.1 mrg cat >>confdefs.h <<\EOF
4766 1.1 mrg #define HAVE_UTMP_UT_XSTATUS 1
4767 1.1 mrg EOF
4768 1.1 mrg
4769 1.1 mrg cat >>confdefs.h <<EOF
4770 1.1 mrg #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
4771 1.1 mrg EOF
4772 1.1 mrg
4773 1.1 mrg fi
4774 1.1 mrg fi
4775 1.1 mrg
4776 1.1 mrg if test $cf_cv_have_utmp != no ; then
4777 1.1 mrg echo "$as_me:4777: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
4778 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
4779 1.1 mrg if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
4780 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4781 1.1 mrg else
4782 1.1 mrg
4783 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4784 1.1 mrg #line 4784 "configure"
4785 1.1 mrg #include "confdefs.h"
4786 1.1 mrg
4787 1.1 mrg #include <sys/types.h>
4788 1.1 mrg #include <${cf_cv_have_utmp}.h>
4789 1.1 mrg int
4790 1.1 mrg main ()
4791 1.1 mrg {
4792 1.1 mrg struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
4793 1.1 mrg ;
4794 1.1 mrg return 0;
4795 1.1 mrg }
4796 1.1 mrg _ACEOF
4797 1.1 mrg rm -f conftest.$ac_objext
4798 1.1 mrg if { (eval echo "$as_me:4798: \"$ac_compile\"") >&5
4799 1.1 mrg (eval $ac_compile) 2>&5
4800 1.1 mrg ac_status=$?
4801 1.1 mrg echo "$as_me:4801: \$? = $ac_status" >&5
4802 1.1 mrg (exit $ac_status); } &&
4803 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4804 1.1 mrg { (eval echo "$as_me:4804: \"$ac_try\"") >&5
4805 1.1 mrg (eval $ac_try) 2>&5
4806 1.1 mrg ac_status=$?
4807 1.1 mrg echo "$as_me:4807: \$? = $ac_status" >&5
4808 1.1 mrg (exit $ac_status); }; }; then
4809 1.1 mrg cf_cv_have_utmp_ut_xtime=yes
4810 1.1 mrg else
4811 1.1 mrg echo "$as_me: failed program was:" >&5
4812 1.1 mrg cat conftest.$ac_ext >&5
4813 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4814 1.1 mrg #line 4814 "configure"
4815 1.1 mrg #include "confdefs.h"
4816 1.1 mrg
4817 1.1 mrg #include <sys/types.h>
4818 1.1 mrg #include <${cf_cv_have_utmp}.h>
4819 1.1 mrg int
4820 1.1 mrg main ()
4821 1.1 mrg {
4822 1.1 mrg struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
4823 1.1 mrg ;
4824 1.1 mrg return 0;
4825 1.1 mrg }
4826 1.1 mrg _ACEOF
4827 1.1 mrg rm -f conftest.$ac_objext
4828 1.1 mrg if { (eval echo "$as_me:4828: \"$ac_compile\"") >&5
4829 1.1 mrg (eval $ac_compile) 2>&5
4830 1.1 mrg ac_status=$?
4831 1.1 mrg echo "$as_me:4831: \$? = $ac_status" >&5
4832 1.1 mrg (exit $ac_status); } &&
4833 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4834 1.1 mrg { (eval echo "$as_me:4834: \"$ac_try\"") >&5
4835 1.1 mrg (eval $ac_try) 2>&5
4836 1.1 mrg ac_status=$?
4837 1.1 mrg echo "$as_me:4837: \$? = $ac_status" >&5
4838 1.1 mrg (exit $ac_status); }; }; then
4839 1.1 mrg cf_cv_have_utmp_ut_xtime=define
4840 1.1 mrg else
4841 1.1 mrg echo "$as_me: failed program was:" >&5
4842 1.1 mrg cat conftest.$ac_ext >&5
4843 1.1 mrg cf_cv_have_utmp_ut_xtime=no
4844 1.1 mrg fi
4845 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4846 1.1 mrg
4847 1.1 mrg fi
4848 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4849 1.1 mrg
4850 1.1 mrg fi
4851 1.1 mrg echo "$as_me:4851: result: $cf_cv_have_utmp_ut_xtime" >&5
4852 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
4853 1.1 mrg if test $cf_cv_have_utmp_ut_xtime != no ; then
4854 1.1 mrg cat >>confdefs.h <<\EOF
4855 1.1 mrg #define HAVE_UTMP_UT_XTIME 1
4856 1.1 mrg EOF
4857 1.1 mrg
4858 1.1 mrg if test $cf_cv_have_utmp_ut_xtime = define ; then
4859 1.1 mrg cat >>confdefs.h <<\EOF
4860 1.1 mrg #define ut_xtime ut_tv.tv_sec
4861 1.1 mrg EOF
4862 1.1 mrg
4863 1.1 mrg fi
4864 1.1 mrg fi
4865 1.1 mrg fi
4866 1.1 mrg
4867 1.1 mrg if test $cf_cv_have_utmp != no ; then
4868 1.1 mrg echo "$as_me:4868: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
4869 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
4870 1.1 mrg if test "${cf_cv_have_utmp_ut_session+set}" = set; then
4871 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4872 1.1 mrg else
4873 1.1 mrg
4874 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4875 1.1 mrg #line 4875 "configure"
4876 1.1 mrg #include "confdefs.h"
4877 1.1 mrg
4878 1.1 mrg #include <sys/types.h>
4879 1.1 mrg #include <${cf_cv_have_utmp}.h>
4880 1.1 mrg int
4881 1.1 mrg main ()
4882 1.1 mrg {
4883 1.1 mrg struct $cf_cv_have_utmp x; long y = x.ut_session
4884 1.1 mrg ;
4885 1.1 mrg return 0;
4886 1.1 mrg }
4887 1.1 mrg _ACEOF
4888 1.1 mrg rm -f conftest.$ac_objext
4889 1.1 mrg if { (eval echo "$as_me:4889: \"$ac_compile\"") >&5
4890 1.1 mrg (eval $ac_compile) 2>&5
4891 1.1 mrg ac_status=$?
4892 1.1 mrg echo "$as_me:4892: \$? = $ac_status" >&5
4893 1.1 mrg (exit $ac_status); } &&
4894 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4895 1.1 mrg { (eval echo "$as_me:4895: \"$ac_try\"") >&5
4896 1.1 mrg (eval $ac_try) 2>&5
4897 1.1 mrg ac_status=$?
4898 1.1 mrg echo "$as_me:4898: \$? = $ac_status" >&5
4899 1.1 mrg (exit $ac_status); }; }; then
4900 1.1 mrg cf_cv_have_utmp_ut_session=yes
4901 1.1 mrg else
4902 1.1 mrg echo "$as_me: failed program was:" >&5
4903 1.1 mrg cat conftest.$ac_ext >&5
4904 1.1 mrg cf_cv_have_utmp_ut_session=no
4905 1.1 mrg fi
4906 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4907 1.1 mrg
4908 1.1 mrg fi
4909 1.1 mrg echo "$as_me:4909: result: $cf_cv_have_utmp_ut_session" >&5
4910 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
4911 1.1 mrg if test $cf_cv_have_utmp_ut_session != no ; then
4912 1.1 mrg cat >>confdefs.h <<\EOF
4913 1.1 mrg #define HAVE_UTMP_UT_SESSION 1
4914 1.1 mrg EOF
4915 1.1 mrg
4916 1.1 mrg fi
4917 1.1 mrg fi
4918 1.1 mrg
4919 1.1 mrg echo "$as_me:4919: checking if $cf_cv_have_utmp is SYSV flavor" >&5
4920 1.1 mrg echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
4921 1.1 mrg if test "${cf_cv_sysv_utmp+set}" = set; then
4922 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4923 1.1 mrg else
4924 1.1 mrg
4925 1.1 mrg test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
4926 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4927 1.1 mrg #line 4927 "configure"
4928 1.1 mrg #include "confdefs.h"
4929 1.1 mrg
4930 1.1 mrg #include <sys/types.h>
4931 1.1 mrg #include <${cf_cv_have_utmp}.h>
4932 1.1 mrg int
4933 1.1 mrg main ()
4934 1.1 mrg {
4935 1.1 mrg
4936 1.1 mrg struct $cf_cv_have_utmp x;
4937 1.1 mrg set${cf_prefix}ent ();
4938 1.1 mrg get${cf_prefix}id(&x);
4939 1.1 mrg put${cf_prefix}line(&x);
4940 1.1 mrg end${cf_prefix}ent();
4941 1.1 mrg ;
4942 1.1 mrg return 0;
4943 1.1 mrg }
4944 1.1 mrg _ACEOF
4945 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4946 1.1 mrg if { (eval echo "$as_me:4946: \"$ac_link\"") >&5
4947 1.1 mrg (eval $ac_link) 2>&5
4948 1.1 mrg ac_status=$?
4949 1.1 mrg echo "$as_me:4949: \$? = $ac_status" >&5
4950 1.1 mrg (exit $ac_status); } &&
4951 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4952 1.1 mrg { (eval echo "$as_me:4952: \"$ac_try\"") >&5
4953 1.1 mrg (eval $ac_try) 2>&5
4954 1.1 mrg ac_status=$?
4955 1.1 mrg echo "$as_me:4955: \$? = $ac_status" >&5
4956 1.1 mrg (exit $ac_status); }; }; then
4957 1.1 mrg cf_cv_sysv_utmp=yes
4958 1.1 mrg else
4959 1.1 mrg echo "$as_me: failed program was:" >&5
4960 1.1 mrg cat conftest.$ac_ext >&5
4961 1.1 mrg cf_cv_sysv_utmp=no
4962 1.1 mrg fi
4963 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4964 1.1 mrg
4965 1.1 mrg fi
4966 1.1 mrg echo "$as_me:4966: result: $cf_cv_sysv_utmp" >&5
4967 1.1 mrg echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
4968 1.1 mrg test $cf_cv_sysv_utmp = yes && cat >>confdefs.h <<\EOF
4969 1.1 mrg #define USE_SYSV_UTMP 1
4970 1.1 mrg EOF
4971 1.1 mrg
4972 1.1 mrg fi
4973 1.1 mrg
4974 1.1 mrg for ac_header in lastlog.h
4975 1.1 mrg do
4976 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4977 1.1 mrg echo "$as_me:4977: checking for $ac_header" >&5
4978 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4979 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
4980 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4981 1.1 mrg else
4982 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4983 1.1 mrg #line 4983 "configure"
4984 1.1 mrg #include "confdefs.h"
4985 1.1 mrg #include <$ac_header>
4986 1.1 mrg _ACEOF
4987 1.1 mrg if { (eval echo "$as_me:4987: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 1.1 mrg ac_status=$?
4990 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
4991 1.1 mrg rm -f conftest.er1
4992 1.1 mrg cat conftest.err >&5
4993 1.1 mrg echo "$as_me:4993: \$? = $ac_status" >&5
4994 1.1 mrg (exit $ac_status); } >/dev/null; then
4995 1.1 mrg if test -s conftest.err; then
4996 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
4997 1.1 mrg else
4998 1.1 mrg ac_cpp_err=
4999 1.1 mrg fi
5000 1.1 mrg else
5001 1.1 mrg ac_cpp_err=yes
5002 1.1 mrg fi
5003 1.1 mrg if test -z "$ac_cpp_err"; then
5004 1.1 mrg eval "$as_ac_Header=yes"
5005 1.1 mrg else
5006 1.1 mrg echo "$as_me: failed program was:" >&5
5007 1.1 mrg cat conftest.$ac_ext >&5
5008 1.1 mrg eval "$as_ac_Header=no"
5009 1.1 mrg fi
5010 1.1 mrg rm -f conftest.err conftest.$ac_ext
5011 1.1 mrg fi
5012 1.1 mrg echo "$as_me:5012: result: `eval echo '${'$as_ac_Header'}'`" >&5
5013 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5014 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
5015 1.1 mrg cat >>confdefs.h <<EOF
5016 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5017 1.1 mrg EOF
5018 1.1 mrg
5019 1.1 mrg fi
5020 1.1 mrg done
5021 1.1 mrg
5022 1.1 mrg echo "$as_me:5022: checking for struct lastlog" >&5
5023 1.1 mrg echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
5024 1.1 mrg if test "${cf_cv_struct_lastlog+set}" = set; then
5025 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5026 1.1 mrg else
5027 1.1 mrg
5028 1.1 mrg if test "$cross_compiling" = yes; then
5029 1.1 mrg
5030 1.1 mrg cf_cv_struct_lastlog=unknown
5031 1.1 mrg else
5032 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5033 1.1 mrg #line 5033 "configure"
5034 1.1 mrg #include "confdefs.h"
5035 1.1 mrg
5036 1.1 mrg #include <sys/types.h>
5037 1.1 mrg #include <time.h>
5038 1.1 mrg #include <lastlog.h>
5039 1.1 mrg
5040 1.1 mrg int main()
5041 1.1 mrg {
5042 1.1 mrg struct lastlog data;
5043 1.1 mrg return (sizeof(data.ll_time) != sizeof(time_t));
5044 1.1 mrg }
5045 1.1 mrg _ACEOF
5046 1.1 mrg rm -f conftest$ac_exeext
5047 1.1 mrg if { (eval echo "$as_me:5047: \"$ac_link\"") >&5
5048 1.1 mrg (eval $ac_link) 2>&5
5049 1.1 mrg ac_status=$?
5050 1.1 mrg echo "$as_me:5050: \$? = $ac_status" >&5
5051 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5052 1.1 mrg { (eval echo "$as_me:5052: \"$ac_try\"") >&5
5053 1.1 mrg (eval $ac_try) 2>&5
5054 1.1 mrg ac_status=$?
5055 1.1 mrg echo "$as_me:5055: \$? = $ac_status" >&5
5056 1.1 mrg (exit $ac_status); }; }; then
5057 1.1 mrg
5058 1.1 mrg cf_cv_struct_lastlog=yes
5059 1.1 mrg else
5060 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
5061 1.1 mrg echo "$as_me: failed program was:" >&5
5062 1.1 mrg cat conftest.$ac_ext >&5
5063 1.1 mrg
5064 1.1 mrg cf_cv_struct_lastlog=no
5065 1.1 mrg fi
5066 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067 1.1 mrg fi
5068 1.1 mrg fi
5069 1.1 mrg echo "$as_me:5069: result: $cf_cv_struct_lastlog" >&5
5070 1.1 mrg echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
5071 1.1 mrg
5072 1.1 mrg test $cf_cv_struct_lastlog != no && cat >>confdefs.h <<\EOF
5073 1.1 mrg #define USE_STRUCT_LASTLOG 1
5074 1.1 mrg EOF
5075 1.1 mrg
5076 1.1 mrg for ac_header in \
5077 1.1 mrg sys/param.h \
5078 1.1 mrg
5079 1.1 mrg do
5080 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 1.1 mrg echo "$as_me:5081: checking for $ac_header" >&5
5082 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5083 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
5084 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5085 1.1 mrg else
5086 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5087 1.1 mrg #line 5087 "configure"
5088 1.1 mrg #include "confdefs.h"
5089 1.1 mrg #include <$ac_header>
5090 1.1 mrg _ACEOF
5091 1.1 mrg if { (eval echo "$as_me:5091: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 1.1 mrg ac_status=$?
5094 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
5095 1.1 mrg rm -f conftest.er1
5096 1.1 mrg cat conftest.err >&5
5097 1.1 mrg echo "$as_me:5097: \$? = $ac_status" >&5
5098 1.1 mrg (exit $ac_status); } >/dev/null; then
5099 1.1 mrg if test -s conftest.err; then
5100 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
5101 1.1 mrg else
5102 1.1 mrg ac_cpp_err=
5103 1.1 mrg fi
5104 1.1 mrg else
5105 1.1 mrg ac_cpp_err=yes
5106 1.1 mrg fi
5107 1.1 mrg if test -z "$ac_cpp_err"; then
5108 1.1 mrg eval "$as_ac_Header=yes"
5109 1.1 mrg else
5110 1.1 mrg echo "$as_me: failed program was:" >&5
5111 1.1 mrg cat conftest.$ac_ext >&5
5112 1.1 mrg eval "$as_ac_Header=no"
5113 1.1 mrg fi
5114 1.1 mrg rm -f conftest.err conftest.$ac_ext
5115 1.1 mrg fi
5116 1.1 mrg echo "$as_me:5116: result: `eval echo '${'$as_ac_Header'}'`" >&5
5117 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5118 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
5119 1.1 mrg cat >>confdefs.h <<EOF
5120 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5121 1.1 mrg EOF
5122 1.1 mrg
5123 1.1 mrg fi
5124 1.1 mrg done
5125 1.1 mrg
5126 1.1 mrg echo "$as_me:5126: checking if POSIX saved-ids are supported" >&5
5127 1.1 mrg echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
5128 1.1 mrg if test "${cf_cv_posix_saved_ids+set}" = set; then
5129 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5130 1.1 mrg else
5131 1.1 mrg
5132 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5133 1.1 mrg #line 5133 "configure"
5134 1.1 mrg #include "confdefs.h"
5135 1.1 mrg
5136 1.1 mrg #include <unistd.h>
5137 1.1 mrg #ifdef HAVE_SYS_PARAM_H
5138 1.1 mrg #include <sys/param.h> /* this may define "BSD" */
5139 1.1 mrg #endif
5140 1.1 mrg
5141 1.1 mrg int
5142 1.1 mrg main ()
5143 1.1 mrg {
5144 1.1 mrg
5145 1.1 mrg #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
5146 1.1 mrg void *p = (void *) seteuid;
5147 1.1 mrg int x = seteuid(geteuid());
5148 1.1 mrg #elif defined(BSD) && (BSD >= 199103)
5149 1.1 mrg /* The BSD's may implement the runtime check - and it fails.
5150 1.1 mrg * However, saved-ids work almost like POSIX (close enough for most uses).
5151 1.1 mrg */
5152 1.1 mrg #else
5153 1.1 mrg make an error
5154 1.1 mrg #endif
5155 1.1 mrg
5156 1.1 mrg ;
5157 1.1 mrg return 0;
5158 1.1 mrg }
5159 1.1 mrg _ACEOF
5160 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
5161 1.1 mrg if { (eval echo "$as_me:5161: \"$ac_link\"") >&5
5162 1.1 mrg (eval $ac_link) 2>&5
5163 1.1 mrg ac_status=$?
5164 1.1 mrg echo "$as_me:5164: \$? = $ac_status" >&5
5165 1.1 mrg (exit $ac_status); } &&
5166 1.1 mrg { ac_try='test -s conftest$ac_exeext'
5167 1.1 mrg { (eval echo "$as_me:5167: \"$ac_try\"") >&5
5168 1.1 mrg (eval $ac_try) 2>&5
5169 1.1 mrg ac_status=$?
5170 1.1 mrg echo "$as_me:5170: \$? = $ac_status" >&5
5171 1.1 mrg (exit $ac_status); }; }; then
5172 1.1 mrg cf_cv_posix_saved_ids=yes
5173 1.1 mrg
5174 1.1 mrg else
5175 1.1 mrg echo "$as_me: failed program was:" >&5
5176 1.1 mrg cat conftest.$ac_ext >&5
5177 1.1 mrg
5178 1.1 mrg if test "$cross_compiling" = yes; then
5179 1.1 mrg cf_cv_posix_saved_ids=unknown
5180 1.1 mrg else
5181 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5182 1.1 mrg #line 5182 "configure"
5183 1.1 mrg #include "confdefs.h"
5184 1.1 mrg
5185 1.1 mrg #ifdef HAVE_STDLIB_H
5186 1.1 mrg #include <stdlib.h>
5187 1.1 mrg #endif
5188 1.1 mrg #include <unistd.h>
5189 1.1 mrg int main()
5190 1.1 mrg {
5191 1.1 mrg void *p = (void *) seteuid;
5192 1.1 mrg long code = sysconf(_SC_SAVED_IDS);
5193 1.1 mrg ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
5194 1.1 mrg }
5195 1.1 mrg _ACEOF
5196 1.1 mrg rm -f conftest$ac_exeext
5197 1.1 mrg if { (eval echo "$as_me:5197: \"$ac_link\"") >&5
5198 1.1 mrg (eval $ac_link) 2>&5
5199 1.1 mrg ac_status=$?
5200 1.1 mrg echo "$as_me:5200: \$? = $ac_status" >&5
5201 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5202 1.1 mrg { (eval echo "$as_me:5202: \"$ac_try\"") >&5
5203 1.1 mrg (eval $ac_try) 2>&5
5204 1.1 mrg ac_status=$?
5205 1.1 mrg echo "$as_me:5205: \$? = $ac_status" >&5
5206 1.1 mrg (exit $ac_status); }; }; then
5207 1.1 mrg cf_cv_posix_saved_ids=yes
5208 1.1 mrg else
5209 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
5210 1.1 mrg echo "$as_me: failed program was:" >&5
5211 1.1 mrg cat conftest.$ac_ext >&5
5212 1.1 mrg cf_cv_posix_saved_ids=no
5213 1.1 mrg fi
5214 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5215 1.1 mrg fi
5216 1.1 mrg
5217 1.1 mrg fi
5218 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5219 1.1 mrg
5220 1.1 mrg fi
5221 1.1 mrg echo "$as_me:5221: result: $cf_cv_posix_saved_ids" >&5
5222 1.1 mrg echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
5223 1.1 mrg
5224 1.1 mrg test "$cf_cv_posix_saved_ids" = yes && cat >>confdefs.h <<\EOF
5225 1.1 mrg #define HAVE_POSIX_SAVED_IDS 1
5226 1.1 mrg EOF
5227 1.1 mrg
5228 1.1 mrg # compute a reasonable value for $TERM to give tgetent(), since we may be
5229 1.1 mrg # running in 'screen', which sets $TERMCAP to a specific entry that is not
5230 1.1 mrg # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
5231 1.1 mrg # discard $TERMCAP.
5232 1.1 mrg cf_TERMVAR=vt100
5233 1.1 mrg test -n "$TERMCAP" && cf_TERMVAR="$TERM"
5234 1.1 mrg test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
5235 1.1 mrg
5236 1.1 mrg echo "$as_me:5236: checking if we want full tgetent function" >&5
5237 1.1 mrg echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
5238 1.1 mrg
5239 1.1 mrg # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
5240 1.1 mrg if test "${enable_full_tgetent+set}" = set; then
5241 1.1 mrg enableval="$enable_full_tgetent"
5242 1.1 mrg test "$enableval" != no && enableval=yes
5243 1.1 mrg if test "$enableval" != "yes" ; then
5244 1.1 mrg cf_full_tgetent=no
5245 1.1 mrg else
5246 1.1 mrg cf_full_tgetent=yes
5247 1.1 mrg fi
5248 1.1 mrg else
5249 1.1 mrg enableval=yes
5250 1.1 mrg cf_full_tgetent=yes
5251 1.1 mrg
5252 1.1 mrg fi;
5253 1.1 mrg echo "$as_me:5253: result: $cf_full_tgetent" >&5
5254 1.1 mrg echo "${ECHO_T}$cf_full_tgetent" >&6
5255 1.1 mrg
5256 1.1 mrg if test "$cf_full_tgetent" = yes ; then
5257 1.1 mrg cf_test_message="full tgetent"
5258 1.1 mrg else
5259 1.1 mrg cf_test_message="tgetent"
5260 1.1 mrg fi
5261 1.1 mrg
5262 1.1 mrg echo "$as_me:5262: checking for $cf_test_message function" >&5
5263 1.1 mrg echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
5264 1.1 mrg if test "${cf_cv_lib_tgetent+set}" = set; then
5265 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5266 1.1 mrg else
5267 1.1 mrg
5268 1.1 mrg cf_save_LIBS="$LIBS"
5269 1.1 mrg cf_cv_lib_tgetent=no
5270 1.1 mrg if test "$cf_full_tgetent" = yes ; then
5271 1.1 mrg cf_TERMLIB="termcap termlib ncurses curses"
5272 1.1 mrg cf_TERMTST="buffer[0] == 0"
5273 1.1 mrg else
5274 1.1 mrg cf_TERMLIB="termlib ncurses curses"
5275 1.1 mrg cf_TERMTST="0"
5276 1.1 mrg fi
5277 1.1 mrg for cf_termlib in '' $cf_TERMLIB ; do
5278 1.1 mrg LIBS="$cf_save_LIBS"
5279 1.1 mrg test -n "$cf_termlib" && LIBS="$LIBS -l$cf_termlib"
5280 1.1 mrg if test "$cross_compiling" = yes; then
5281 1.1 mrg echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
5282 1.1 mrg else
5283 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5284 1.1 mrg #line 5284 "configure"
5285 1.1 mrg #include "confdefs.h"
5286 1.1 mrg
5287 1.1 mrg /* terminfo implementations ignore the buffer argument, making it useless for
5288 1.1 mrg * the xterm application, which uses this information to make a new TERMCAP
5289 1.1 mrg * environment variable.
5290 1.1 mrg */
5291 1.1 mrg int main()
5292 1.1 mrg {
5293 1.1 mrg char buffer[1024];
5294 1.1 mrg buffer[0] = 0;
5295 1.1 mrg tgetent(buffer, "$cf_TERMVAR");
5296 1.1 mrg ${cf_cv_main_return:-return} ($cf_TERMTST); }
5297 1.1 mrg _ACEOF
5298 1.1 mrg rm -f conftest$ac_exeext
5299 1.1 mrg if { (eval echo "$as_me:5299: \"$ac_link\"") >&5
5300 1.1 mrg (eval $ac_link) 2>&5
5301 1.1 mrg ac_status=$?
5302 1.1 mrg echo "$as_me:5302: \$? = $ac_status" >&5
5303 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 1.1 mrg { (eval echo "$as_me:5304: \"$ac_try\"") >&5
5305 1.1 mrg (eval $ac_try) 2>&5
5306 1.1 mrg ac_status=$?
5307 1.1 mrg echo "$as_me:5307: \$? = $ac_status" >&5
5308 1.1 mrg (exit $ac_status); }; }; then
5309 1.1 mrg echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
5310 1.1 mrg if test -n "$cf_termlib" ; then
5311 1.1 mrg cf_cv_lib_tgetent="-l$cf_termlib"
5312 1.1 mrg else
5313 1.1 mrg cf_cv_lib_tgetent=yes
5314 1.1 mrg fi
5315 1.1 mrg break
5316 1.1 mrg else
5317 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
5318 1.1 mrg echo "$as_me: failed program was:" >&5
5319 1.1 mrg cat conftest.$ac_ext >&5
5320 1.1 mrg echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
5321 1.1 mrg fi
5322 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5323 1.1 mrg fi
5324 1.1 mrg done
5325 1.1 mrg LIBS="$cf_save_LIBS"
5326 1.1 mrg
5327 1.1 mrg fi
5328 1.1 mrg echo "$as_me:5328: result: $cf_cv_lib_tgetent" >&5
5329 1.1 mrg echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
5330 1.1 mrg
5331 1.1 mrg # If we found a working tgetent(), set LIBS and check for termcap.h.
5332 1.1 mrg # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
5333 1.1 mrg # not have side effects other than setting the cache variable, because
5334 1.1 mrg # they are not executed when a cached value exists.)
5335 1.1 mrg if test "$cf_cv_lib_tgetent" != no ; then
5336 1.1 mrg test "$cf_cv_lib_tgetent" != yes && LIBS="$LIBS $cf_cv_lib_tgetent"
5337 1.1 mrg cat >>confdefs.h <<\EOF
5338 1.1 mrg #define USE_TERMCAP 1
5339 1.1 mrg EOF
5340 1.1 mrg
5341 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5342 1.1 mrg #line 5342 "configure"
5343 1.1 mrg #include "confdefs.h"
5344 1.1 mrg
5345 1.1 mrg #include <termcap.h>
5346 1.1 mrg int
5347 1.1 mrg main ()
5348 1.1 mrg {
5349 1.1 mrg
5350 1.1 mrg #ifdef NCURSES_VERSION
5351 1.1 mrg make an error
5352 1.1 mrg #endif
5353 1.1 mrg ;
5354 1.1 mrg return 0;
5355 1.1 mrg }
5356 1.1 mrg _ACEOF
5357 1.1 mrg rm -f conftest.$ac_objext
5358 1.1 mrg if { (eval echo "$as_me:5358: \"$ac_compile\"") >&5
5359 1.1 mrg (eval $ac_compile) 2>&5
5360 1.1 mrg ac_status=$?
5361 1.1 mrg echo "$as_me:5361: \$? = $ac_status" >&5
5362 1.1 mrg (exit $ac_status); } &&
5363 1.1 mrg { ac_try='test -s conftest.$ac_objext'
5364 1.1 mrg { (eval echo "$as_me:5364: \"$ac_try\"") >&5
5365 1.1 mrg (eval $ac_try) 2>&5
5366 1.1 mrg ac_status=$?
5367 1.1 mrg echo "$as_me:5367: \$? = $ac_status" >&5
5368 1.1 mrg (exit $ac_status); }; }; then
5369 1.1 mrg cat >>confdefs.h <<\EOF
5370 1.1 mrg #define HAVE_TERMCAP_H 1
5371 1.1 mrg EOF
5372 1.1 mrg
5373 1.1 mrg else
5374 1.1 mrg echo "$as_me: failed program was:" >&5
5375 1.1 mrg cat conftest.$ac_ext >&5
5376 1.1 mrg fi
5377 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
5378 1.1 mrg else
5379 1.1 mrg # If we didn't find a tgetent() that supports the buffer
5380 1.1 mrg # argument, look again to see whether we can find even
5381 1.1 mrg # a crippled one. A crippled tgetent() is still useful to
5382 1.1 mrg # validate values for the TERM environment variable given to
5383 1.1 mrg # child processes.
5384 1.1 mrg echo "$as_me:5384: checking for partial tgetent function" >&5
5385 1.1 mrg echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
5386 1.1 mrg if test "${cf_cv_lib_part_tgetent+set}" = set; then
5387 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5388 1.1 mrg else
5389 1.1 mrg
5390 1.1 mrg cf_cv_lib_part_tgetent=no
5391 1.1 mrg for cf_termlib in $cf_TERMLIB ; do
5392 1.1 mrg LIBS="$cf_save_LIBS -l$cf_termlib"
5393 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5394 1.1 mrg #line 5394 "configure"
5395 1.1 mrg #include "confdefs.h"
5396 1.1 mrg
5397 1.1 mrg int
5398 1.1 mrg main ()
5399 1.1 mrg {
5400 1.1 mrg tgetent(0, "$cf_TERMVAR")
5401 1.1 mrg ;
5402 1.1 mrg return 0;
5403 1.1 mrg }
5404 1.1 mrg _ACEOF
5405 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
5406 1.1 mrg if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
5407 1.1 mrg (eval $ac_link) 2>&5
5408 1.1 mrg ac_status=$?
5409 1.1 mrg echo "$as_me:5409: \$? = $ac_status" >&5
5410 1.1 mrg (exit $ac_status); } &&
5411 1.1 mrg { ac_try='test -s conftest$ac_exeext'
5412 1.1 mrg { (eval echo "$as_me:5412: \"$ac_try\"") >&5
5413 1.1 mrg (eval $ac_try) 2>&5
5414 1.1 mrg ac_status=$?
5415 1.1 mrg echo "$as_me:5415: \$? = $ac_status" >&5
5416 1.1 mrg (exit $ac_status); }; }; then
5417 1.1 mrg echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
5418 1.1 mrg cf_cv_lib_part_tgetent="-l$cf_termlib"
5419 1.1 mrg break
5420 1.1 mrg else
5421 1.1 mrg echo "$as_me: failed program was:" >&5
5422 1.1 mrg cat conftest.$ac_ext >&5
5423 1.1 mrg fi
5424 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 1.1 mrg done
5426 1.1 mrg LIBS="$cf_save_LIBS"
5427 1.1 mrg
5428 1.1 mrg fi
5429 1.1 mrg echo "$as_me:5429: result: $cf_cv_lib_part_tgetent" >&5
5430 1.1 mrg echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
5431 1.1 mrg
5432 1.1 mrg if test "$cf_cv_lib_part_tgetent" != no ; then
5433 1.1 mrg LIBS="$LIBS $cf_cv_lib_part_tgetent"
5434 1.1 mrg
5435 1.1 mrg for ac_header in termcap.h
5436 1.1 mrg do
5437 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5438 1.1 mrg echo "$as_me:5438: checking for $ac_header" >&5
5439 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5440 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
5441 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5442 1.1 mrg else
5443 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5444 1.1 mrg #line 5444 "configure"
5445 1.1 mrg #include "confdefs.h"
5446 1.1 mrg #include <$ac_header>
5447 1.1 mrg _ACEOF
5448 1.1 mrg if { (eval echo "$as_me:5448: \"$ac_cpp conftest.$ac_ext\"") >&5
5449 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5450 1.1 mrg ac_status=$?
5451 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
5452 1.1 mrg rm -f conftest.er1
5453 1.1 mrg cat conftest.err >&5
5454 1.1 mrg echo "$as_me:5454: \$? = $ac_status" >&5
5455 1.1 mrg (exit $ac_status); } >/dev/null; then
5456 1.1 mrg if test -s conftest.err; then
5457 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
5458 1.1 mrg else
5459 1.1 mrg ac_cpp_err=
5460 1.1 mrg fi
5461 1.1 mrg else
5462 1.1 mrg ac_cpp_err=yes
5463 1.1 mrg fi
5464 1.1 mrg if test -z "$ac_cpp_err"; then
5465 1.1 mrg eval "$as_ac_Header=yes"
5466 1.1 mrg else
5467 1.1 mrg echo "$as_me: failed program was:" >&5
5468 1.1 mrg cat conftest.$ac_ext >&5
5469 1.1 mrg eval "$as_ac_Header=no"
5470 1.1 mrg fi
5471 1.1 mrg rm -f conftest.err conftest.$ac_ext
5472 1.1 mrg fi
5473 1.1 mrg echo "$as_me:5473: result: `eval echo '${'$as_ac_Header'}'`" >&5
5474 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5475 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476 1.1 mrg cat >>confdefs.h <<EOF
5477 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478 1.1 mrg EOF
5479 1.1 mrg
5480 1.1 mrg fi
5481 1.1 mrg done
5482 1.1 mrg
5483 1.1 mrg # If this is linking against ncurses, we'll trigger the
5484 1.1 mrg # ifdef in resize.c that turns the termcap stuff back off.
5485 1.1 mrg cat >>confdefs.h <<\EOF
5486 1.1 mrg #define USE_TERMINFO 1
5487 1.1 mrg EOF
5488 1.1 mrg
5489 1.1 mrg fi
5490 1.1 mrg fi
5491 1.1 mrg
5492 1.1 mrg echo "$as_me:5492: checking for directory to install resource files" >&5
5493 1.1 mrg echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
5494 1.1 mrg
5495 1.1 mrg # Check whether --with-app-defaults or --without-app-defaults was given.
5496 1.1 mrg if test "${with_app_defaults+set}" = set; then
5497 1.1 mrg withval="$with_app_defaults"
5498 1.1 mrg
5499 1.1 mrg else
5500 1.1 mrg withval="${appsdir-'\$(exec_prefix)/lib/X11/app-defaults'}"
5501 1.1 mrg fi; if test -n "'\$(exec_prefix)/lib/X11/app-defaults'" ; then
5502 1.1 mrg
5503 1.1 mrg if test "x$prefix" != xNONE; then
5504 1.1 mrg cf_path_syntax="$prefix"
5505 1.1 mrg else
5506 1.1 mrg cf_path_syntax="$ac_default_prefix"
5507 1.1 mrg fi
5508 1.1 mrg
5509 1.1 mrg case ".$withval" in #(vi
5510 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
5511 1.1 mrg ;;
5512 1.1 mrg ..|./*|.\\*) #(vi
5513 1.1 mrg ;;
5514 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5515 1.1 mrg ;;
5516 1.1 mrg .\${*prefix}*) #(vi
5517 1.1 mrg eval withval="$withval"
5518 1.1 mrg case ".$withval" in #(vi
5519 1.1 mrg .NONE/*)
5520 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5521 1.1 mrg ;;
5522 1.1 mrg esac
5523 1.1 mrg ;; #(vi
5524 1.1 mrg .no|.NONE/*)
5525 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5526 1.1 mrg ;;
5527 1.1 mrg *)
5528 1.1 mrg { { echo "$as_me:5528: error: expected a pathname, not \"$withval\"" >&5
5529 1.1 mrg echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5530 1.1 mrg { (exit 1); exit 1; }; }
5531 1.1 mrg ;;
5532 1.1 mrg esac
5533 1.1 mrg
5534 1.1 mrg fi
5535 1.1 mrg appsdir="$withval"
5536 1.1 mrg
5537 1.1 mrg echo "$as_me:5537: result: $appsdir" >&5
5538 1.1 mrg echo "${ECHO_T}$appsdir" >&6
5539 1.1 mrg
5540 1.1 mrg no_appsdir=
5541 1.1 mrg test "$appsdir" = no && no_appsdir="#"
5542 1.1 mrg
5543 1.1 mrg echo "$as_me:5543: checking for directory to install icons" >&5
5544 1.1 mrg echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
5545 1.1 mrg
5546 1.1 mrg # Check whether --with-icondir or --without-icondir was given.
5547 1.1 mrg if test "${with_icondir+set}" = set; then
5548 1.1 mrg withval="$with_icondir"
5549 1.1 mrg
5550 1.1 mrg else
5551 1.1 mrg withval="${icondir-'\$(exec_prefix)/share/pixmaps'}"
5552 1.1 mrg fi; if test -n "'\$(exec_prefix)/share/pixmaps'" ; then
5553 1.1 mrg
5554 1.1 mrg if test "x$prefix" != xNONE; then
5555 1.1 mrg cf_path_syntax="$prefix"
5556 1.1 mrg else
5557 1.1 mrg cf_path_syntax="$ac_default_prefix"
5558 1.1 mrg fi
5559 1.1 mrg
5560 1.1 mrg case ".$withval" in #(vi
5561 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
5562 1.1 mrg ;;
5563 1.1 mrg ..|./*|.\\*) #(vi
5564 1.1 mrg ;;
5565 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5566 1.1 mrg ;;
5567 1.1 mrg .\${*prefix}*) #(vi
5568 1.1 mrg eval withval="$withval"
5569 1.1 mrg case ".$withval" in #(vi
5570 1.1 mrg .NONE/*)
5571 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5572 1.1 mrg ;;
5573 1.1 mrg esac
5574 1.1 mrg ;; #(vi
5575 1.1 mrg .no|.NONE/*)
5576 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5577 1.1 mrg ;;
5578 1.1 mrg *)
5579 1.1 mrg { { echo "$as_me:5579: error: expected a pathname, not \"$withval\"" >&5
5580 1.1 mrg echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5581 1.1 mrg { (exit 1); exit 1; }; }
5582 1.1 mrg ;;
5583 1.1 mrg esac
5584 1.1 mrg
5585 1.1 mrg fi
5586 1.1 mrg icondir="$withval"
5587 1.1 mrg
5588 1.1 mrg echo "$as_me:5588: result: $icondir" >&5
5589 1.1 mrg echo "${ECHO_T}$icondir" >&6
5590 1.1 mrg
5591 1.1 mrg no_icondir=
5592 1.1 mrg test "$icondir" = no && no_icondir="#"
5593 1.1 mrg
5594 1.1 mrg # Comment-out the install-desktop rule if the desktop-utils are not found.
5595 1.1 mrg echo "$as_me:5595: checking if you want to install desktop files" >&5
5596 1.1 mrg echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
5597 1.1 mrg
5598 1.1 mrg # Check whether --enable-desktop or --disable-desktop was given.
5599 1.1 mrg if test "${enable_desktop+set}" = set; then
5600 1.1 mrg enableval="$enable_desktop"
5601 1.1 mrg test "$enableval" != no && enableval=yes
5602 1.1 mrg if test "$enableval" != "yes" ; then
5603 1.1 mrg enable_desktop=$enableval
5604 1.1 mrg else
5605 1.1 mrg enable_desktop=$enableval
5606 1.1 mrg fi
5607 1.1 mrg else
5608 1.1 mrg enableval=yes
5609 1.1 mrg enable_desktop=$enableval
5610 1.1 mrg
5611 1.1 mrg fi;
5612 1.1 mrg echo "$as_me:5612: result: $enable_desktop" >&5
5613 1.1 mrg echo "${ECHO_T}$enable_desktop" >&6
5614 1.1 mrg
5615 1.1 mrg desktop_utils=
5616 1.1 mrg if test "$enable_desktop" = yes ; then
5617 1.1 mrg # Extract the first word of "desktop-file-install", so it can be a program name with args.
5618 1.1 mrg set dummy desktop-file-install; ac_word=$2
5619 1.1 mrg echo "$as_me:5619: checking for $ac_word" >&5
5620 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 1.1 mrg if test "${ac_cv_prog_desktop_utils+set}" = set; then
5622 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5623 1.1 mrg else
5624 1.1 mrg if test -n "$desktop_utils"; then
5625 1.1 mrg ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
5626 1.1 mrg else
5627 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
5628 1.1 mrg ac_dummy="$PATH"
5629 1.1 mrg for ac_dir in $ac_dummy; do
5630 1.1 mrg IFS=$ac_save_IFS
5631 1.1 mrg test -z "$ac_dir" && ac_dir=.
5632 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
5633 1.1 mrg ac_cv_prog_desktop_utils="yes"
5634 1.1 mrg echo "$as_me:5634: found $ac_dir/$ac_word" >&5
5635 1.1 mrg break
5636 1.1 mrg done
5637 1.1 mrg
5638 1.1 mrg test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
5639 1.1 mrg fi
5640 1.1 mrg fi
5641 1.1 mrg desktop_utils=$ac_cv_prog_desktop_utils
5642 1.1 mrg if test -n "$desktop_utils"; then
5643 1.1 mrg echo "$as_me:5643: result: $desktop_utils" >&5
5644 1.1 mrg echo "${ECHO_T}$desktop_utils" >&6
5645 1.1 mrg else
5646 1.1 mrg echo "$as_me:5646: result: no" >&5
5647 1.1 mrg echo "${ECHO_T}no" >&6
5648 1.1 mrg fi
5649 1.1 mrg
5650 1.1 mrg fi
5651 1.1 mrg
5652 1.1 mrg test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
5653 1.1 mrg
5654 1.1 mrg # inherit SINSTALL_OPTS from environment to allow packager to customize it.
5655 1.1 mrg
5656 1.1 mrg echo "$as_me:5656: checking for install-permissions reference" >&5
5657 1.1 mrg echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
5658 1.1 mrg
5659 1.1 mrg # Check whether --with-reference or --without-reference was given.
5660 1.1 mrg if test "${with_reference+set}" = set; then
5661 1.1 mrg withval="$with_reference"
5662 1.1 mrg with_reference=$withval
5663 1.1 mrg else
5664 1.1 mrg with_reference=xterm
5665 1.1 mrg fi;
5666 1.1 mrg echo "$as_me:5666: result: $with_reference" >&5
5667 1.1 mrg echo "${ECHO_T}$with_reference" >&6
5668 1.1 mrg
5669 1.1 mrg with_full_paths=yes
5670 1.1 mrg
5671 1.1 mrg test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
5672 1.1 mrg for ac_prog in $XTERM_PATH $with_reference
5673 1.1 mrg do
5674 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
5675 1.1 mrg set dummy $ac_prog; ac_word=$2
5676 1.1 mrg echo "$as_me:5676: checking for $ac_word" >&5
5677 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5678 1.1 mrg if test "${ac_cv_path_XTERM_PATH+set}" = set; then
5679 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5680 1.1 mrg else
5681 1.1 mrg case $XTERM_PATH in
5682 1.1 mrg [\\/]* | ?:[\\/]*)
5683 1.1 mrg ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
5684 1.1 mrg ;;
5685 1.1 mrg *)
5686 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
5687 1.1 mrg ac_dummy="$PATH"
5688 1.1 mrg for ac_dir in $ac_dummy; do
5689 1.1 mrg IFS=$ac_save_IFS
5690 1.1 mrg test -z "$ac_dir" && ac_dir=.
5691 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
5692 1.1 mrg ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
5693 1.1 mrg echo "$as_me:5693: found $ac_dir/$ac_word" >&5
5694 1.1 mrg break
5695 1.1 mrg fi
5696 1.1 mrg done
5697 1.1 mrg
5698 1.1 mrg ;;
5699 1.1 mrg esac
5700 1.1 mrg fi
5701 1.1 mrg XTERM_PATH=$ac_cv_path_XTERM_PATH
5702 1.1 mrg
5703 1.1 mrg if test -n "$XTERM_PATH"; then
5704 1.1 mrg echo "$as_me:5704: result: $XTERM_PATH" >&5
5705 1.1 mrg echo "${ECHO_T}$XTERM_PATH" >&6
5706 1.1 mrg else
5707 1.1 mrg echo "$as_me:5707: result: no" >&5
5708 1.1 mrg echo "${ECHO_T}no" >&6
5709 1.1 mrg fi
5710 1.1 mrg
5711 1.1 mrg test -n "$XTERM_PATH" && break
5712 1.1 mrg done
5713 1.1 mrg test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
5714 1.1 mrg
5715 1.1 mrg cf_path_prog=""
5716 1.1 mrg cf_path_args=""
5717 1.1 mrg IFS="${IFS= }"; cf_save_ifs="$IFS"
5718 1.1 mrg case $host_os in #(vi
5719 1.1 mrg os2*) #(vi
5720 1.1 mrg IFS="${IFS};"
5721 1.1 mrg ;;
5722 1.1 mrg *)
5723 1.1 mrg IFS="${IFS}:"
5724 1.1 mrg ;;
5725 1.1 mrg esac
5726 1.1 mrg
5727 1.1 mrg for cf_temp in $ac_cv_path_XTERM_PATH
5728 1.1 mrg do
5729 1.1 mrg if test -z "$cf_path_prog" ; then
5730 1.1 mrg if test "$with_full_paths" = yes ; then
5731 1.1 mrg
5732 1.1 mrg if test "x$prefix" != xNONE; then
5733 1.1 mrg cf_path_syntax="$prefix"
5734 1.1 mrg else
5735 1.1 mrg cf_path_syntax="$ac_default_prefix"
5736 1.1 mrg fi
5737 1.1 mrg
5738 1.1 mrg case ".$cf_temp" in #(vi
5739 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
5740 1.1 mrg ;;
5741 1.1 mrg ..|./*|.\\*) #(vi
5742 1.1 mrg ;;
5743 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5744 1.1 mrg ;;
5745 1.1 mrg .\${*prefix}*) #(vi
5746 1.1 mrg eval cf_temp="$cf_temp"
5747 1.1 mrg case ".$cf_temp" in #(vi
5748 1.1 mrg .NONE/*)
5749 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
5750 1.1 mrg ;;
5751 1.1 mrg esac
5752 1.1 mrg ;; #(vi
5753 1.1 mrg .no|.NONE/*)
5754 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
5755 1.1 mrg ;;
5756 1.1 mrg *)
5757 1.1 mrg break
5758 1.1 mrg ;;
5759 1.1 mrg esac
5760 1.1 mrg
5761 1.1 mrg cf_path_prog="$cf_temp"
5762 1.1 mrg else
5763 1.1 mrg cf_path_prog="`basename $cf_temp`"
5764 1.1 mrg fi
5765 1.1 mrg elif test -z "$cf_path_args" ; then
5766 1.1 mrg cf_path_args="$cf_temp"
5767 1.1 mrg else
5768 1.1 mrg cf_path_args="$cf_path_args $cf_temp"
5769 1.1 mrg fi
5770 1.1 mrg done
5771 1.1 mrg IFS="$cf_save_ifs"
5772 1.1 mrg
5773 1.1 mrg if test -n "$cf_path_prog" ; then
5774 1.1 mrg
5775 1.1 mrg echo "${as_me-configure}:5775: testing defining path for ${cf_path_prog} ..." 1>&5
5776 1.1 mrg
5777 1.1 mrg cat >>confdefs.h <<EOF
5778 1.1 mrg #define XTERM_PATH_PATH "$cf_path_prog"
5779 1.1 mrg EOF
5780 1.1 mrg
5781 1.1 mrg test -n "$cf_path_args" && cat >>confdefs.h <<EOF
5782 1.1 mrg #define XTERM_PATH_ARGS "$cf_path_args"
5783 1.1 mrg EOF
5784 1.1 mrg
5785 1.1 mrg fi
5786 1.1 mrg
5787 1.1 mrg # If any of --program-prefix, --program-suffix or --program-transform-name is
5788 1.1 mrg # given, accept an option tell the makefile to create a symbolic link, e.g.,
5789 1.1 mrg # to "xterm" on install.
5790 1.1 mrg XTERM_SYMLINK=NONE
5791 1.1 mrg
5792 1.1 mrg if test "$program_transform_name" != "'s,,,'" ; then
5793 1.1 mrg cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
5794 1.1 mrg cf_name=`echo xterm |sed -e "$cf_name"`
5795 1.1 mrg echo "$as_me:5795: checking for symbolic link to create to $cf_name" >&5
5796 1.1 mrg echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
5797 1.1 mrg
5798 1.1 mrg # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
5799 1.1 mrg if test "${with_xterm_symlink+set}" = set; then
5800 1.1 mrg withval="$with_xterm_symlink"
5801 1.1 mrg with_symlink=$withval
5802 1.1 mrg else
5803 1.1 mrg with_symlink=xterm
5804 1.1 mrg fi;
5805 1.1 mrg echo "$as_me:5805: result: $with_symlink" >&5
5806 1.1 mrg echo "${ECHO_T}$with_symlink" >&6
5807 1.1 mrg test "$with_symlink" = yes && with_symlink=xterm
5808 1.1 mrg test -n "$with_symlink" && \
5809 1.1 mrg test "$with_symlink" != no && \
5810 1.1 mrg test "$with_symlink" != $cf_name && \
5811 1.1 mrg XTERM_SYMLINK="$with_symlink"
5812 1.1 mrg fi
5813 1.1 mrg
5814 1.1 mrg echo "$as_me:5814: checking if you want to disable setuid" >&5
5815 1.1 mrg echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
5816 1.1 mrg
5817 1.1 mrg # Check whether --enable-setuid or --disable-setuid was given.
5818 1.1 mrg if test "${enable_setuid+set}" = set; then
5819 1.1 mrg enableval="$enable_setuid"
5820 1.1 mrg test "$enableval" != no && enableval=yes
5821 1.1 mrg if test "$enableval" != "yes" ; then
5822 1.1 mrg disable_setuid=yes
5823 1.1 mrg else
5824 1.1 mrg disable_setuid=no
5825 1.1 mrg fi
5826 1.1 mrg else
5827 1.1 mrg enableval=yes
5828 1.1 mrg disable_setuid=no
5829 1.1 mrg
5830 1.1 mrg fi;
5831 1.1 mrg echo "$as_me:5831: result: $disable_setuid" >&5
5832 1.1 mrg echo "${ECHO_T}$disable_setuid" >&6
5833 1.1 mrg
5834 1.1 mrg echo "$as_me:5834: checking if you want to disable setgid" >&5
5835 1.1 mrg echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
5836 1.1 mrg
5837 1.1 mrg # Check whether --enable-setgid or --disable-setgid was given.
5838 1.1 mrg if test "${enable_setgid+set}" = set; then
5839 1.1 mrg enableval="$enable_setgid"
5840 1.1 mrg test "$enableval" != no && enableval=yes
5841 1.1 mrg if test "$enableval" != "yes" ; then
5842 1.1 mrg disable_setgid=yes
5843 1.1 mrg else
5844 1.1 mrg disable_setgid=no
5845 1.1 mrg fi
5846 1.1 mrg else
5847 1.1 mrg enableval=yes
5848 1.1 mrg disable_setgid=no
5849 1.1 mrg
5850 1.1 mrg fi;
5851 1.1 mrg echo "$as_me:5851: result: $disable_setgid" >&5
5852 1.1 mrg echo "${ECHO_T}$disable_setgid" >&6
5853 1.1 mrg
5854 1.1 mrg echo "$as_me:5854: checking if you want to run xterm setuid to a given user" >&5
5855 1.1 mrg echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
5856 1.1 mrg
5857 1.1 mrg # Check whether --with-setuid or --without-setuid was given.
5858 1.1 mrg if test "${with_setuid+set}" = set; then
5859 1.1 mrg withval="$with_setuid"
5860 1.1 mrg use_given_setuid=$withval
5861 1.1 mrg else
5862 1.1 mrg use_given_setuid=no
5863 1.1 mrg fi;
5864 1.1 mrg echo "$as_me:5864: result: $use_given_setuid" >&5
5865 1.1 mrg echo "${ECHO_T}$use_given_setuid" >&6
5866 1.1 mrg
5867 1.1 mrg if test "$use_given_setuid" != no ; then
5868 1.1 mrg if test "$use_given_setuid" = yes ; then
5869 1.1 mrg cf_cv_given_setuid=root
5870 1.1 mrg else
5871 1.1 mrg cf_cv_given_setuid=$use_given_setuid
5872 1.1 mrg fi
5873 1.1 mrg SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
5874 1.1 mrg fi
5875 1.1 mrg
5876 1.1 mrg echo "$as_me:5876: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
5877 1.1 mrg echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
5878 1.1 mrg
5879 1.1 mrg # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
5880 1.1 mrg if test "${with_utmp_setgid+set}" = set; then
5881 1.1 mrg withval="$with_utmp_setgid"
5882 1.1 mrg use_utmp_setgid=$withval
5883 1.1 mrg else
5884 1.1 mrg use_utmp_setgid=no
5885 1.1 mrg fi;
5886 1.1 mrg echo "$as_me:5886: result: $use_utmp_setgid" >&5
5887 1.1 mrg echo "${ECHO_T}$use_utmp_setgid" >&6
5888 1.1 mrg
5889 1.1 mrg if test "$use_utmp_setgid" != no ; then
5890 1.1 mrg if test "$use_utmp_setgid" = yes ; then
5891 1.1 mrg
5892 1.1 mrg if test $cf_cv_have_utmp != no ; then
5893 1.1 mrg echo "$as_me:5893: checking for utmp/utmpx group" >&5
5894 1.1 mrg echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
5895 1.1 mrg if test "${cf_cv_utmp_group+set}" = set; then
5896 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5897 1.1 mrg else
5898 1.1 mrg
5899 1.1 mrg for cf_utmp_path in /var/adm /var/run
5900 1.1 mrg do
5901 1.1 mrg for cf_utmp_file in utmpx utmp
5902 1.1 mrg do
5903 1.1 mrg if test -f $cf_utmp_path/$cf_utmp_file
5904 1.1 mrg then
5905 1.1 mrg cf_cv_utmp_group=root
5906 1.1 mrg
5907 1.1 mrg cf_option="-l -L"
5908 1.1 mrg
5909 1.1 mrg # Expect listing to have fields like this:
5910 1.1 mrg #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname
5911 1.1 mrg ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
5912 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
5913 1.1 mrg if test -z "$cf_rest" ; then
5914 1.1 mrg cf_option="$cf_option -g"
5915 1.1 mrg ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
5916 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
5917 1.1 mrg fi
5918 1.1 mrg rm -f conftest
5919 1.1 mrg
5920 1.1 mrg # If we have a pathname, and the date fields look right, assume we've
5921 1.1 mrg # captured the group as well.
5922 1.1 mrg if test -n "$cf_rest" ; then
5923 1.1 mrg cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
5924 1.1 mrg if test -z "$cf_test" ; then
5925 1.1 mrg cf_cv_utmp_group=$cf_grp;
5926 1.1 mrg fi
5927 1.1 mrg fi
5928 1.1 mrg break
5929 1.1 mrg fi
5930 1.1 mrg done
5931 1.1 mrg test -n "$cf_cv_utmp_group" && break
5932 1.1 mrg done
5933 1.1 mrg
5934 1.1 mrg fi
5935 1.1 mrg echo "$as_me:5935: result: $cf_cv_utmp_group" >&5
5936 1.1 mrg echo "${ECHO_T}$cf_cv_utmp_group" >&6
5937 1.1 mrg else
5938 1.1 mrg { { echo "$as_me:5938: error: cannot find utmp group" >&5
5939 1.1 mrg echo "$as_me: error: cannot find utmp group" >&2;}
5940 1.1 mrg { (exit 1); exit 1; }; }
5941 1.1 mrg fi
5942 1.1 mrg
5943 1.1 mrg else
5944 1.1 mrg cf_cv_utmp_group=$use_utmp_setgid
5945 1.1 mrg fi
5946 1.1 mrg if test "$cf_cv_posix_saved_ids" != yes ; then
5947 1.1 mrg { { echo "$as_me:5947: error: Your system does not support POSIX saved-ids" >&5
5948 1.1 mrg echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
5949 1.1 mrg { (exit 1); exit 1; }; }
5950 1.1 mrg fi
5951 1.1 mrg cat >>confdefs.h <<\EOF
5952 1.1 mrg #define USE_UTMP_SETGID 1
5953 1.1 mrg EOF
5954 1.1 mrg
5955 1.1 mrg SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
5956 1.1 mrg fi
5957 1.1 mrg
5958 1.1 mrg echo "$as_me:5958: checking if you want to link with utempter" >&5
5959 1.1 mrg echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
5960 1.1 mrg
5961 1.1 mrg # Check whether --with-utempter or --without-utempter was given.
5962 1.1 mrg if test "${with_utempter+set}" = set; then
5963 1.1 mrg withval="$with_utempter"
5964 1.1 mrg use_utempter=$withval
5965 1.1 mrg else
5966 1.1 mrg use_utempter=no
5967 1.1 mrg fi;
5968 1.1 mrg echo "$as_me:5968: result: $use_utempter" >&5
5969 1.1 mrg echo "${ECHO_T}$use_utempter" >&6
5970 1.1 mrg
5971 1.1 mrg if test "$use_utempter" = yes ; then
5972 1.1 mrg
5973 1.1 mrg echo "$as_me:5973: checking if we can link with utempter library" >&5
5974 1.1 mrg echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
5975 1.1 mrg if test "${cf_cv_have_utempter+set}" = set; then
5976 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5977 1.1 mrg else
5978 1.1 mrg
5979 1.1 mrg cf_save_LIBS="$LIBS"
5980 1.1 mrg LIBS="-lutempter $LIBS"
5981 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5982 1.1 mrg #line 5982 "configure"
5983 1.1 mrg #include "confdefs.h"
5984 1.1 mrg
5985 1.1 mrg #include <utempter.h>
5986 1.1 mrg
5987 1.1 mrg int
5988 1.1 mrg main ()
5989 1.1 mrg {
5990 1.1 mrg
5991 1.1 mrg addToUtmp("/dev/tty", 0, 1);
5992 1.1 mrg removeFromUtmp();
5993 1.1 mrg
5994 1.1 mrg ;
5995 1.1 mrg return 0;
5996 1.1 mrg }
5997 1.1 mrg _ACEOF
5998 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
5999 1.1 mrg if { (eval echo "$as_me:5999: \"$ac_link\"") >&5
6000 1.1 mrg (eval $ac_link) 2>&5
6001 1.1 mrg ac_status=$?
6002 1.1 mrg echo "$as_me:6002: \$? = $ac_status" >&5
6003 1.1 mrg (exit $ac_status); } &&
6004 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6005 1.1 mrg { (eval echo "$as_me:6005: \"$ac_try\"") >&5
6006 1.1 mrg (eval $ac_try) 2>&5
6007 1.1 mrg ac_status=$?
6008 1.1 mrg echo "$as_me:6008: \$? = $ac_status" >&5
6009 1.1 mrg (exit $ac_status); }; }; then
6010 1.1 mrg
6011 1.1 mrg cf_cv_have_utempter=yes
6012 1.1 mrg else
6013 1.1 mrg echo "$as_me: failed program was:" >&5
6014 1.1 mrg cat conftest.$ac_ext >&5
6015 1.1 mrg
6016 1.1 mrg cf_cv_have_utempter=no
6017 1.1 mrg fi
6018 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019 1.1 mrg LIBS="$cf_save_LIBS"
6020 1.1 mrg
6021 1.1 mrg fi
6022 1.1 mrg echo "$as_me:6022: result: $cf_cv_have_utempter" >&5
6023 1.1 mrg echo "${ECHO_T}$cf_cv_have_utempter" >&6
6024 1.1 mrg if test "$cf_cv_have_utempter" = yes ; then
6025 1.1 mrg cat >>confdefs.h <<\EOF
6026 1.1 mrg #define USE_UTEMPTER 1
6027 1.1 mrg EOF
6028 1.1 mrg
6029 1.1 mrg LIBS="-lutempter $LIBS"
6030 1.1 mrg fi
6031 1.1 mrg
6032 1.1 mrg test "$cf_cv_have_utempter" != yes && use_utempter=no
6033 1.1 mrg else
6034 1.1 mrg use_utempter=no
6035 1.1 mrg fi
6036 1.1 mrg
6037 1.1 mrg # Some configurations permit (or require) either setuid or setgid mode.
6038 1.1 mrg # Let the user decide.
6039 1.1 mrg if test "$use_utempter" = yes ; then
6040 1.1 mrg if test "${enable_setuid+set}" != set ; then
6041 1.1 mrg disable_setuid=yes
6042 1.1 mrg test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
6043 1.1 mrg
6044 1.1 mrg echo "${as_me-configure}:6044: testing No --disable-setuid option given, force to yes ..." 1>&5
6045 1.1 mrg
6046 1.1 mrg fi
6047 1.1 mrg fi
6048 1.1 mrg
6049 1.1 mrg ### checks for external data
6050 1.1 mrg
6051 1.1 mrg echo "$as_me:6051: checking if external errno is declared" >&5
6052 1.1 mrg echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
6053 1.1 mrg if test "${cf_cv_dcl_errno+set}" = set; then
6054 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6055 1.1 mrg else
6056 1.1 mrg
6057 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6058 1.1 mrg #line 6058 "configure"
6059 1.1 mrg #include "confdefs.h"
6060 1.1 mrg
6061 1.1 mrg #ifdef HAVE_STDLIB_H
6062 1.1 mrg #include <stdlib.h>
6063 1.1 mrg #endif
6064 1.1 mrg #include <stdio.h>
6065 1.1 mrg #include <sys/types.h>
6066 1.1 mrg #include <errno.h>
6067 1.1 mrg int
6068 1.1 mrg main ()
6069 1.1 mrg {
6070 1.1.1.2 christos int x = (int) errno
6071 1.1 mrg ;
6072 1.1 mrg return 0;
6073 1.1 mrg }
6074 1.1 mrg _ACEOF
6075 1.1 mrg rm -f conftest.$ac_objext
6076 1.1 mrg if { (eval echo "$as_me:6076: \"$ac_compile\"") >&5
6077 1.1 mrg (eval $ac_compile) 2>&5
6078 1.1 mrg ac_status=$?
6079 1.1 mrg echo "$as_me:6079: \$? = $ac_status" >&5
6080 1.1 mrg (exit $ac_status); } &&
6081 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6082 1.1 mrg { (eval echo "$as_me:6082: \"$ac_try\"") >&5
6083 1.1 mrg (eval $ac_try) 2>&5
6084 1.1 mrg ac_status=$?
6085 1.1 mrg echo "$as_me:6085: \$? = $ac_status" >&5
6086 1.1 mrg (exit $ac_status); }; }; then
6087 1.1 mrg cf_cv_dcl_errno=yes
6088 1.1 mrg else
6089 1.1 mrg echo "$as_me: failed program was:" >&5
6090 1.1 mrg cat conftest.$ac_ext >&5
6091 1.1 mrg cf_cv_dcl_errno=no
6092 1.1 mrg fi
6093 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6094 1.1 mrg
6095 1.1 mrg fi
6096 1.1 mrg echo "$as_me:6096: result: $cf_cv_dcl_errno" >&5
6097 1.1 mrg echo "${ECHO_T}$cf_cv_dcl_errno" >&6
6098 1.1 mrg
6099 1.1 mrg if test "$cf_cv_dcl_errno" = no ; then
6100 1.1 mrg
6101 1.1 mrg cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6102 1.1 mrg
6103 1.1 mrg cat >>confdefs.h <<EOF
6104 1.1 mrg #define $cf_result 1
6105 1.1 mrg EOF
6106 1.1 mrg
6107 1.1 mrg fi
6108 1.1 mrg
6109 1.1 mrg # It's possible (for near-UNIX clones) that the data doesn't exist
6110 1.1 mrg
6111 1.1 mrg echo "$as_me:6111: checking if external errno exists" >&5
6112 1.1 mrg echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
6113 1.1 mrg if test "${cf_cv_have_errno+set}" = set; then
6114 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6115 1.1 mrg else
6116 1.1 mrg
6117 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6118 1.1 mrg #line 6118 "configure"
6119 1.1 mrg #include "confdefs.h"
6120 1.1 mrg
6121 1.1 mrg #undef errno
6122 1.1 mrg extern int errno;
6123 1.1 mrg
6124 1.1 mrg int
6125 1.1 mrg main ()
6126 1.1 mrg {
6127 1.1 mrg errno = 2
6128 1.1 mrg ;
6129 1.1 mrg return 0;
6130 1.1 mrg }
6131 1.1 mrg _ACEOF
6132 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6133 1.1 mrg if { (eval echo "$as_me:6133: \"$ac_link\"") >&5
6134 1.1 mrg (eval $ac_link) 2>&5
6135 1.1 mrg ac_status=$?
6136 1.1 mrg echo "$as_me:6136: \$? = $ac_status" >&5
6137 1.1 mrg (exit $ac_status); } &&
6138 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6139 1.1 mrg { (eval echo "$as_me:6139: \"$ac_try\"") >&5
6140 1.1 mrg (eval $ac_try) 2>&5
6141 1.1 mrg ac_status=$?
6142 1.1 mrg echo "$as_me:6142: \$? = $ac_status" >&5
6143 1.1 mrg (exit $ac_status); }; }; then
6144 1.1 mrg cf_cv_have_errno=yes
6145 1.1 mrg else
6146 1.1 mrg echo "$as_me: failed program was:" >&5
6147 1.1 mrg cat conftest.$ac_ext >&5
6148 1.1 mrg cf_cv_have_errno=no
6149 1.1 mrg fi
6150 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6151 1.1 mrg
6152 1.1 mrg fi
6153 1.1 mrg echo "$as_me:6153: result: $cf_cv_have_errno" >&5
6154 1.1 mrg echo "${ECHO_T}$cf_cv_have_errno" >&6
6155 1.1 mrg
6156 1.1 mrg if test "$cf_cv_have_errno" = yes ; then
6157 1.1 mrg
6158 1.1 mrg cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6159 1.1 mrg
6160 1.1 mrg cat >>confdefs.h <<EOF
6161 1.1 mrg #define $cf_result 1
6162 1.1 mrg EOF
6163 1.1 mrg
6164 1.1 mrg fi
6165 1.1 mrg
6166 1.1 mrg echo "$as_me:6166: checking for explicit tty group name" >&5
6167 1.1 mrg echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
6168 1.1 mrg
6169 1.1 mrg # Check whether --with-tty-group or --without-tty-group was given.
6170 1.1 mrg if test "${with_tty_group+set}" = set; then
6171 1.1 mrg withval="$with_tty_group"
6172 1.1 mrg cf_tty_group=$withval
6173 1.1 mrg else
6174 1.1 mrg cf_tty_group=auto...
6175 1.1 mrg fi;
6176 1.1 mrg test -z "$cf_tty_group" && cf_tty_group=auto...
6177 1.1 mrg test "$cf_tty_group" = yes && cf_tty_group=auto...
6178 1.1 mrg echo "$as_me:6178: result: $cf_tty_group" >&5
6179 1.1 mrg echo "${ECHO_T}$cf_tty_group" >&6
6180 1.1 mrg
6181 1.1 mrg if test "$cf_tty_group" = "auto..." ; then
6182 1.1 mrg echo "$as_me:6182: checking for tty group name" >&5
6183 1.1 mrg echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
6184 1.1 mrg if test "${cf_cv_tty_group_name+set}" = set; then
6185 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6186 1.1 mrg else
6187 1.1 mrg
6188 1.1 mrg # If we are configuring as root, it is hard to get a clue about the tty group.
6189 1.1 mrg # But we'll guess based on how our connection is set up - assuming it is done
6190 1.1 mrg # properly.
6191 1.1 mrg
6192 1.1 mrg cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
6193 1.1 mrg # )vi
6194 1.1 mrg if test "$cf_uid" != 0 ; then
6195 1.1 mrg cf_cv_tty_group_name=
6196 1.1 mrg cf_tty_name=`tty`
6197 1.1 mrg test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
6198 1.1 mrg test -z "$cf_tty_name" && cf_tty_name=/dev/tty
6199 1.1 mrg if test -c "$cf_tty_name"
6200 1.1 mrg then
6201 1.1 mrg cf_option="-l -L"
6202 1.1 mrg
6203 1.1 mrg # Expect listing to have fields like this:
6204 1.1 mrg #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname
6205 1.1 mrg ls $cf_option $cf_tty_name >conftest.out
6206 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
6207 1.1 mrg if test -z "$cf_rest" ; then
6208 1.1 mrg cf_option="$cf_option -g"
6209 1.1 mrg ls $cf_option $cf_tty_name >conftest.out
6210 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
6211 1.1 mrg fi
6212 1.1 mrg rm -f conftest.out
6213 1.1 mrg cf_cv_tty_group_name=$cf_grp
6214 1.1 mrg fi
6215 1.1 mrg fi
6216 1.1 mrg
6217 1.1 mrg # If we cannot deduce the tty group, fall back on hardcoded cases
6218 1.1 mrg
6219 1.1 mrg if test -z "$cf_cv_tty_group_name"
6220 1.1 mrg then
6221 1.1 mrg case $host_os in #(vi
6222 1.1 mrg osf*) #(vi
6223 1.1 mrg cf_cv_tty_group_name="terminal"
6224 1.1 mrg ;;
6225 1.1 mrg *)
6226 1.1 mrg cf_cv_tty_group_name="unknown"
6227 1.1 mrg if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
6228 1.1 mrg cf_cv_tty_group_name="tty"
6229 1.1 mrg fi
6230 1.1 mrg ;;
6231 1.1 mrg esac
6232 1.1 mrg fi
6233 1.1 mrg
6234 1.1 mrg fi
6235 1.1 mrg echo "$as_me:6235: result: $cf_cv_tty_group_name" >&5
6236 1.1 mrg echo "${ECHO_T}$cf_cv_tty_group_name" >&6
6237 1.1 mrg cf_tty_group="$cf_cv_tty_group_name"
6238 1.1 mrg else
6239 1.1 mrg # if configure option, always do this
6240 1.1 mrg cat >>confdefs.h <<\EOF
6241 1.1 mrg #define USE_TTY_GROUP 1
6242 1.1 mrg EOF
6243 1.1 mrg
6244 1.1 mrg fi
6245 1.1 mrg
6246 1.1 mrg cat >>confdefs.h <<EOF
6247 1.1 mrg #define TTY_GROUP_NAME "$cf_tty_group"
6248 1.1 mrg EOF
6249 1.1 mrg
6250 1.1 mrg # This is only a double-check that the group-name we obtained above really
6251 1.1 mrg # does apply to the device. We cannot perform this test if we are in batch
6252 1.1 mrg # mode, or if we are cross-compiling.
6253 1.1 mrg
6254 1.1 mrg echo "$as_me:6254: checking if we may use the $cf_tty_group group" >&5
6255 1.1 mrg echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
6256 1.1 mrg if test "${cf_cv_tty_group+set}" = set; then
6257 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6258 1.1 mrg else
6259 1.1 mrg
6260 1.1 mrg cf_tty_name=`tty`
6261 1.1 mrg if test "$cf_tty_name" != "not a tty"
6262 1.1 mrg then
6263 1.1 mrg if test "$cross_compiling" = yes; then
6264 1.1 mrg cf_cv_tty_group=unknown
6265 1.1 mrg else
6266 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6267 1.1 mrg #line 6267 "configure"
6268 1.1 mrg #include "confdefs.h"
6269 1.1 mrg
6270 1.1 mrg #include <unistd.h>
6271 1.1 mrg #include <sys/types.h>
6272 1.1 mrg #include <sys/stat.h>
6273 1.1 mrg #include <grp.h>
6274 1.1 mrg int main()
6275 1.1 mrg {
6276 1.1 mrg struct stat sb;
6277 1.1 mrg struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
6278 1.1 mrg char *name = ttyname(0);
6279 1.1 mrg
6280 1.1 mrg endgrent();
6281 1.1 mrg if (ttygrp != 0
6282 1.1 mrg && name != 0
6283 1.1 mrg && stat(name, &sb) == 0
6284 1.1 mrg && sb.st_gid != getgid()
6285 1.1 mrg && sb.st_gid == ttygrp->gr_gid) {
6286 1.1 mrg ${cf_cv_main_return:-return} (0);
6287 1.1 mrg }
6288 1.1 mrg ${cf_cv_main_return:-return} (1);
6289 1.1 mrg }
6290 1.1 mrg
6291 1.1 mrg _ACEOF
6292 1.1 mrg rm -f conftest$ac_exeext
6293 1.1 mrg if { (eval echo "$as_me:6293: \"$ac_link\"") >&5
6294 1.1 mrg (eval $ac_link) 2>&5
6295 1.1 mrg ac_status=$?
6296 1.1 mrg echo "$as_me:6296: \$? = $ac_status" >&5
6297 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6298 1.1 mrg { (eval echo "$as_me:6298: \"$ac_try\"") >&5
6299 1.1 mrg (eval $ac_try) 2>&5
6300 1.1 mrg ac_status=$?
6301 1.1 mrg echo "$as_me:6301: \$? = $ac_status" >&5
6302 1.1 mrg (exit $ac_status); }; }; then
6303 1.1 mrg cf_cv_tty_group=yes
6304 1.1 mrg else
6305 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
6306 1.1 mrg echo "$as_me: failed program was:" >&5
6307 1.1 mrg cat conftest.$ac_ext >&5
6308 1.1 mrg cf_cv_tty_group=no
6309 1.1 mrg fi
6310 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6311 1.1 mrg fi
6312 1.1 mrg elif test "$cross_compiling" = yes; then
6313 1.1 mrg cf_cv_tty_group=unknown
6314 1.1 mrg else
6315 1.1 mrg cf_cv_tty_group=yes
6316 1.1 mrg fi
6317 1.1 mrg
6318 1.1 mrg fi
6319 1.1 mrg echo "$as_me:6319: result: $cf_cv_tty_group" >&5
6320 1.1 mrg echo "${ECHO_T}$cf_cv_tty_group" >&6
6321 1.1 mrg
6322 1.1 mrg if test $cf_cv_tty_group = no ; then
6323 1.1 mrg { echo "$as_me:6323: WARNING: Cannot use $cf_tty_group group" >&5
6324 1.1 mrg echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
6325 1.1 mrg else
6326 1.1 mrg cat >>confdefs.h <<\EOF
6327 1.1 mrg #define USE_TTY_GROUP 1
6328 1.1 mrg EOF
6329 1.1 mrg
6330 1.1 mrg fi
6331 1.1 mrg
6332 1.1 mrg ### checks for system services and user specified options
6333 1.1 mrg
6334 1.1 mrg echo "$as_me:6334: checking for sys/wait.h that is POSIX.1 compatible" >&5
6335 1.1 mrg echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6336 1.1 mrg if test "${ac_cv_header_sys_wait_h+set}" = set; then
6337 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6338 1.1 mrg else
6339 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6340 1.1 mrg #line 6340 "configure"
6341 1.1 mrg #include "confdefs.h"
6342 1.1 mrg #include <sys/types.h>
6343 1.1 mrg #include <sys/wait.h>
6344 1.1 mrg #ifndef WEXITSTATUS
6345 1.1 mrg # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6346 1.1 mrg #endif
6347 1.1 mrg #ifndef WIFEXITED
6348 1.1 mrg # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6349 1.1 mrg #endif
6350 1.1 mrg
6351 1.1 mrg int
6352 1.1 mrg main ()
6353 1.1 mrg {
6354 1.1 mrg int s;
6355 1.1 mrg wait (&s);
6356 1.1 mrg s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6357 1.1 mrg ;
6358 1.1 mrg return 0;
6359 1.1 mrg }
6360 1.1 mrg _ACEOF
6361 1.1 mrg rm -f conftest.$ac_objext
6362 1.1 mrg if { (eval echo "$as_me:6362: \"$ac_compile\"") >&5
6363 1.1 mrg (eval $ac_compile) 2>&5
6364 1.1 mrg ac_status=$?
6365 1.1 mrg echo "$as_me:6365: \$? = $ac_status" >&5
6366 1.1 mrg (exit $ac_status); } &&
6367 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6368 1.1 mrg { (eval echo "$as_me:6368: \"$ac_try\"") >&5
6369 1.1 mrg (eval $ac_try) 2>&5
6370 1.1 mrg ac_status=$?
6371 1.1 mrg echo "$as_me:6371: \$? = $ac_status" >&5
6372 1.1 mrg (exit $ac_status); }; }; then
6373 1.1 mrg ac_cv_header_sys_wait_h=yes
6374 1.1 mrg else
6375 1.1 mrg echo "$as_me: failed program was:" >&5
6376 1.1 mrg cat conftest.$ac_ext >&5
6377 1.1 mrg ac_cv_header_sys_wait_h=no
6378 1.1 mrg fi
6379 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6380 1.1 mrg fi
6381 1.1 mrg echo "$as_me:6381: result: $ac_cv_header_sys_wait_h" >&5
6382 1.1 mrg echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6383 1.1 mrg if test $ac_cv_header_sys_wait_h = yes; then
6384 1.1 mrg
6385 1.1 mrg cat >>confdefs.h <<\EOF
6386 1.1 mrg #define HAVE_SYS_WAIT_H 1
6387 1.1 mrg EOF
6388 1.1 mrg
6389 1.1 mrg fi
6390 1.1 mrg
6391 1.1 mrg echo "$as_me:6391: checking for POSIX wait functions" >&5
6392 1.1 mrg echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
6393 1.1 mrg if test "${cf_cv_posix_wait+set}" = set; then
6394 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6395 1.1 mrg else
6396 1.1 mrg
6397 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6398 1.1 mrg #line 6398 "configure"
6399 1.1 mrg #include "confdefs.h"
6400 1.1 mrg
6401 1.1 mrg #include <stdlib.h>
6402 1.1 mrg #include <stdio.h>
6403 1.1 mrg #include <sys/types.h>
6404 1.1 mrg #ifdef HAVE_SYS_WAIT_H
6405 1.1 mrg #include <sys/wait.h>
6406 1.1 mrg #endif
6407 1.1 mrg
6408 1.1 mrg int
6409 1.1 mrg main ()
6410 1.1 mrg {
6411 1.1 mrg
6412 1.1 mrg int stat_loc;
6413 1.1 mrg pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
6414 1.1 mrg pid_t pid2 = wait(&stat_loc);
6415 1.1 mrg
6416 1.1 mrg ;
6417 1.1 mrg return 0;
6418 1.1 mrg }
6419 1.1 mrg _ACEOF
6420 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6421 1.1 mrg if { (eval echo "$as_me:6421: \"$ac_link\"") >&5
6422 1.1 mrg (eval $ac_link) 2>&5
6423 1.1 mrg ac_status=$?
6424 1.1 mrg echo "$as_me:6424: \$? = $ac_status" >&5
6425 1.1 mrg (exit $ac_status); } &&
6426 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6427 1.1 mrg { (eval echo "$as_me:6427: \"$ac_try\"") >&5
6428 1.1 mrg (eval $ac_try) 2>&5
6429 1.1 mrg ac_status=$?
6430 1.1 mrg echo "$as_me:6430: \$? = $ac_status" >&5
6431 1.1 mrg (exit $ac_status); }; }; then
6432 1.1 mrg cf_cv_posix_wait=yes
6433 1.1 mrg else
6434 1.1 mrg echo "$as_me: failed program was:" >&5
6435 1.1 mrg cat conftest.$ac_ext >&5
6436 1.1 mrg cf_cv_posix_wait=no
6437 1.1 mrg fi
6438 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439 1.1 mrg
6440 1.1 mrg fi
6441 1.1 mrg echo "$as_me:6441: result: $cf_cv_posix_wait" >&5
6442 1.1 mrg echo "${ECHO_T}$cf_cv_posix_wait" >&6
6443 1.1 mrg test "$cf_cv_posix_wait" = yes && cat >>confdefs.h <<\EOF
6444 1.1 mrg #define USE_POSIX_WAIT 1
6445 1.1 mrg EOF
6446 1.1 mrg
6447 1.1 mrg echo "$as_me:6447: checking if external sys_nerr is declared" >&5
6448 1.1 mrg echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
6449 1.1 mrg if test "${cf_cv_dcl_sys_nerr+set}" = set; then
6450 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6451 1.1 mrg else
6452 1.1 mrg
6453 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6454 1.1 mrg #line 6454 "configure"
6455 1.1 mrg #include "confdefs.h"
6456 1.1 mrg
6457 1.1 mrg #ifdef HAVE_STDLIB_H
6458 1.1 mrg #include <stdlib.h>
6459 1.1 mrg #endif
6460 1.1 mrg #include <stdio.h>
6461 1.1 mrg #include <sys/types.h>
6462 1.1 mrg #include <errno.h>
6463 1.1 mrg int
6464 1.1 mrg main ()
6465 1.1 mrg {
6466 1.1.1.2 christos int x = (int) sys_nerr
6467 1.1 mrg ;
6468 1.1 mrg return 0;
6469 1.1 mrg }
6470 1.1 mrg _ACEOF
6471 1.1 mrg rm -f conftest.$ac_objext
6472 1.1 mrg if { (eval echo "$as_me:6472: \"$ac_compile\"") >&5
6473 1.1 mrg (eval $ac_compile) 2>&5
6474 1.1 mrg ac_status=$?
6475 1.1 mrg echo "$as_me:6475: \$? = $ac_status" >&5
6476 1.1 mrg (exit $ac_status); } &&
6477 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6478 1.1 mrg { (eval echo "$as_me:6478: \"$ac_try\"") >&5
6479 1.1 mrg (eval $ac_try) 2>&5
6480 1.1 mrg ac_status=$?
6481 1.1 mrg echo "$as_me:6481: \$? = $ac_status" >&5
6482 1.1 mrg (exit $ac_status); }; }; then
6483 1.1 mrg cf_cv_dcl_sys_nerr=yes
6484 1.1 mrg else
6485 1.1 mrg echo "$as_me: failed program was:" >&5
6486 1.1 mrg cat conftest.$ac_ext >&5
6487 1.1 mrg cf_cv_dcl_sys_nerr=no
6488 1.1 mrg fi
6489 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6490 1.1 mrg
6491 1.1 mrg fi
6492 1.1 mrg echo "$as_me:6492: result: $cf_cv_dcl_sys_nerr" >&5
6493 1.1 mrg echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
6494 1.1 mrg
6495 1.1 mrg if test "$cf_cv_dcl_sys_nerr" = no ; then
6496 1.1 mrg
6497 1.1 mrg cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6498 1.1 mrg
6499 1.1 mrg cat >>confdefs.h <<EOF
6500 1.1 mrg #define $cf_result 1
6501 1.1 mrg EOF
6502 1.1 mrg
6503 1.1 mrg fi
6504 1.1 mrg
6505 1.1 mrg # It's possible (for near-UNIX clones) that the data doesn't exist
6506 1.1 mrg
6507 1.1 mrg echo "$as_me:6507: checking if external sys_nerr exists" >&5
6508 1.1 mrg echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
6509 1.1 mrg if test "${cf_cv_have_sys_nerr+set}" = set; then
6510 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6511 1.1 mrg else
6512 1.1 mrg
6513 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6514 1.1 mrg #line 6514 "configure"
6515 1.1 mrg #include "confdefs.h"
6516 1.1 mrg
6517 1.1 mrg #undef sys_nerr
6518 1.1 mrg extern int sys_nerr;
6519 1.1 mrg
6520 1.1 mrg int
6521 1.1 mrg main ()
6522 1.1 mrg {
6523 1.1 mrg sys_nerr = 2
6524 1.1 mrg ;
6525 1.1 mrg return 0;
6526 1.1 mrg }
6527 1.1 mrg _ACEOF
6528 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6529 1.1 mrg if { (eval echo "$as_me:6529: \"$ac_link\"") >&5
6530 1.1 mrg (eval $ac_link) 2>&5
6531 1.1 mrg ac_status=$?
6532 1.1 mrg echo "$as_me:6532: \$? = $ac_status" >&5
6533 1.1 mrg (exit $ac_status); } &&
6534 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6535 1.1 mrg { (eval echo "$as_me:6535: \"$ac_try\"") >&5
6536 1.1 mrg (eval $ac_try) 2>&5
6537 1.1 mrg ac_status=$?
6538 1.1 mrg echo "$as_me:6538: \$? = $ac_status" >&5
6539 1.1 mrg (exit $ac_status); }; }; then
6540 1.1 mrg cf_cv_have_sys_nerr=yes
6541 1.1 mrg else
6542 1.1 mrg echo "$as_me: failed program was:" >&5
6543 1.1 mrg cat conftest.$ac_ext >&5
6544 1.1 mrg cf_cv_have_sys_nerr=no
6545 1.1 mrg fi
6546 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 1.1 mrg
6548 1.1 mrg fi
6549 1.1 mrg echo "$as_me:6549: result: $cf_cv_have_sys_nerr" >&5
6550 1.1 mrg echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
6551 1.1 mrg
6552 1.1 mrg if test "$cf_cv_have_sys_nerr" = yes ; then
6553 1.1 mrg
6554 1.1 mrg cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6555 1.1 mrg
6556 1.1 mrg cat >>confdefs.h <<EOF
6557 1.1 mrg #define $cf_result 1
6558 1.1 mrg EOF
6559 1.1 mrg
6560 1.1 mrg fi
6561 1.1 mrg
6562 1.1 mrg echo "$as_me:6562: checking if external sys_errlist is declared" >&5
6563 1.1 mrg echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
6564 1.1 mrg if test "${cf_cv_dcl_sys_errlist+set}" = set; then
6565 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6566 1.1 mrg else
6567 1.1 mrg
6568 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6569 1.1 mrg #line 6569 "configure"
6570 1.1 mrg #include "confdefs.h"
6571 1.1 mrg
6572 1.1 mrg #ifdef HAVE_STDLIB_H
6573 1.1 mrg #include <stdlib.h>
6574 1.1 mrg #endif
6575 1.1 mrg #include <stdio.h>
6576 1.1 mrg #include <sys/types.h>
6577 1.1 mrg #include <errno.h>
6578 1.1 mrg int
6579 1.1 mrg main ()
6580 1.1 mrg {
6581 1.1.1.2 christos int x = (int) sys_errlist
6582 1.1 mrg ;
6583 1.1 mrg return 0;
6584 1.1 mrg }
6585 1.1 mrg _ACEOF
6586 1.1 mrg rm -f conftest.$ac_objext
6587 1.1 mrg if { (eval echo "$as_me:6587: \"$ac_compile\"") >&5
6588 1.1 mrg (eval $ac_compile) 2>&5
6589 1.1 mrg ac_status=$?
6590 1.1 mrg echo "$as_me:6590: \$? = $ac_status" >&5
6591 1.1 mrg (exit $ac_status); } &&
6592 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6593 1.1 mrg { (eval echo "$as_me:6593: \"$ac_try\"") >&5
6594 1.1 mrg (eval $ac_try) 2>&5
6595 1.1 mrg ac_status=$?
6596 1.1 mrg echo "$as_me:6596: \$? = $ac_status" >&5
6597 1.1 mrg (exit $ac_status); }; }; then
6598 1.1 mrg cf_cv_dcl_sys_errlist=yes
6599 1.1 mrg else
6600 1.1 mrg echo "$as_me: failed program was:" >&5
6601 1.1 mrg cat conftest.$ac_ext >&5
6602 1.1 mrg cf_cv_dcl_sys_errlist=no
6603 1.1 mrg fi
6604 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6605 1.1 mrg
6606 1.1 mrg fi
6607 1.1 mrg echo "$as_me:6607: result: $cf_cv_dcl_sys_errlist" >&5
6608 1.1 mrg echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
6609 1.1 mrg
6610 1.1 mrg if test "$cf_cv_dcl_sys_errlist" = no ; then
6611 1.1 mrg
6612 1.1 mrg cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6613 1.1 mrg
6614 1.1 mrg cat >>confdefs.h <<EOF
6615 1.1 mrg #define $cf_result 1
6616 1.1 mrg EOF
6617 1.1 mrg
6618 1.1 mrg fi
6619 1.1 mrg
6620 1.1 mrg # It's possible (for near-UNIX clones) that the data doesn't exist
6621 1.1 mrg
6622 1.1 mrg echo "$as_me:6622: checking if external sys_errlist exists" >&5
6623 1.1 mrg echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
6624 1.1 mrg if test "${cf_cv_have_sys_errlist+set}" = set; then
6625 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6626 1.1 mrg else
6627 1.1 mrg
6628 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6629 1.1 mrg #line 6629 "configure"
6630 1.1 mrg #include "confdefs.h"
6631 1.1 mrg
6632 1.1 mrg #undef sys_errlist
6633 1.1 mrg extern int sys_errlist;
6634 1.1 mrg
6635 1.1 mrg int
6636 1.1 mrg main ()
6637 1.1 mrg {
6638 1.1 mrg sys_errlist = 2
6639 1.1 mrg ;
6640 1.1 mrg return 0;
6641 1.1 mrg }
6642 1.1 mrg _ACEOF
6643 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6644 1.1 mrg if { (eval echo "$as_me:6644: \"$ac_link\"") >&5
6645 1.1 mrg (eval $ac_link) 2>&5
6646 1.1 mrg ac_status=$?
6647 1.1 mrg echo "$as_me:6647: \$? = $ac_status" >&5
6648 1.1 mrg (exit $ac_status); } &&
6649 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6650 1.1 mrg { (eval echo "$as_me:6650: \"$ac_try\"") >&5
6651 1.1 mrg (eval $ac_try) 2>&5
6652 1.1 mrg ac_status=$?
6653 1.1 mrg echo "$as_me:6653: \$? = $ac_status" >&5
6654 1.1 mrg (exit $ac_status); }; }; then
6655 1.1 mrg cf_cv_have_sys_errlist=yes
6656 1.1 mrg else
6657 1.1 mrg echo "$as_me: failed program was:" >&5
6658 1.1 mrg cat conftest.$ac_ext >&5
6659 1.1 mrg cf_cv_have_sys_errlist=no
6660 1.1 mrg fi
6661 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6662 1.1 mrg
6663 1.1 mrg fi
6664 1.1 mrg echo "$as_me:6664: result: $cf_cv_have_sys_errlist" >&5
6665 1.1 mrg echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
6666 1.1 mrg
6667 1.1 mrg if test "$cf_cv_have_sys_errlist" = yes ; then
6668 1.1 mrg
6669 1.1 mrg cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6670 1.1 mrg
6671 1.1 mrg cat >>confdefs.h <<EOF
6672 1.1 mrg #define $cf_result 1
6673 1.1 mrg EOF
6674 1.1 mrg
6675 1.1 mrg fi
6676 1.1 mrg
6677 1.1 mrg for ac_header in \
6678 1.1 mrg termios.h \
6679 1.1 mrg stdlib.h \
6680 1.1 mrg X11/Intrinsic.h \
6681 1.1 mrg
6682 1.1 mrg do
6683 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 1.1 mrg echo "$as_me:6684: checking for $ac_header" >&5
6685 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6688 1.1 mrg else
6689 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6690 1.1 mrg #line 6690 "configure"
6691 1.1 mrg #include "confdefs.h"
6692 1.1 mrg #include <$ac_header>
6693 1.1 mrg _ACEOF
6694 1.1 mrg if { (eval echo "$as_me:6694: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6696 1.1 mrg ac_status=$?
6697 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
6698 1.1 mrg rm -f conftest.er1
6699 1.1 mrg cat conftest.err >&5
6700 1.1 mrg echo "$as_me:6700: \$? = $ac_status" >&5
6701 1.1 mrg (exit $ac_status); } >/dev/null; then
6702 1.1 mrg if test -s conftest.err; then
6703 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
6704 1.1 mrg else
6705 1.1 mrg ac_cpp_err=
6706 1.1 mrg fi
6707 1.1 mrg else
6708 1.1 mrg ac_cpp_err=yes
6709 1.1 mrg fi
6710 1.1 mrg if test -z "$ac_cpp_err"; then
6711 1.1 mrg eval "$as_ac_Header=yes"
6712 1.1 mrg else
6713 1.1 mrg echo "$as_me: failed program was:" >&5
6714 1.1 mrg cat conftest.$ac_ext >&5
6715 1.1 mrg eval "$as_ac_Header=no"
6716 1.1 mrg fi
6717 1.1 mrg rm -f conftest.err conftest.$ac_ext
6718 1.1 mrg fi
6719 1.1 mrg echo "$as_me:6719: result: `eval echo '${'$as_ac_Header'}'`" >&5
6720 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6721 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
6722 1.1 mrg cat >>confdefs.h <<EOF
6723 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6724 1.1 mrg EOF
6725 1.1 mrg
6726 1.1 mrg fi
6727 1.1 mrg done
6728 1.1 mrg
6729 1.1 mrg echo "$as_me:6729: checking if we should define SYSV" >&5
6730 1.1 mrg echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
6731 1.1 mrg if test "${cf_cv_sysv+set}" = set; then
6732 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6733 1.1 mrg else
6734 1.1 mrg
6735 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6736 1.1 mrg #line 6736 "configure"
6737 1.1 mrg #include "confdefs.h"
6738 1.1 mrg
6739 1.1 mrg #undef SYSV
6740 1.1 mrg #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
6741 1.1 mrg #ifdef HAVE_STDLIB_H
6742 1.1 mrg #include <stdlib.h> /* look for wchar_t */
6743 1.1 mrg #endif
6744 1.1 mrg #ifdef HAVE_X11_INTRINSIC_H
6745 1.1 mrg #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
6746 1.1 mrg #endif
6747 1.1 mrg #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */
6748 1.1 mrg #include <termios.h>
6749 1.1 mrg #define STRUCT_TERMIOS struct termios
6750 1.1 mrg #else
6751 1.1 mrg #define STRUCT_TERMIOS struct termio
6752 1.1 mrg #endif
6753 1.1 mrg #include <curses.h>
6754 1.1 mrg #include <term.h> /* eliminate most BSD hacks */
6755 1.1 mrg #include <errno.h> /* declare sys_errlist on older systems */
6756 1.1 mrg #include <sys/termio.h> /* eliminate most of the remaining ones */
6757 1.1 mrg
6758 1.1 mrg int
6759 1.1 mrg main ()
6760 1.1 mrg {
6761 1.1 mrg
6762 1.1 mrg static STRUCT_TERMIOS d_tio;
6763 1.1 mrg d_tio.c_cc[VINTR] = 0;
6764 1.1 mrg d_tio.c_cc[VQUIT] = 0;
6765 1.1 mrg d_tio.c_cc[VERASE] = 0;
6766 1.1 mrg d_tio.c_cc[VKILL] = 0;
6767 1.1 mrg d_tio.c_cc[VEOF] = 0;
6768 1.1 mrg d_tio.c_cc[VEOL] = 0;
6769 1.1 mrg d_tio.c_cc[VMIN] = 0;
6770 1.1 mrg d_tio.c_cc[VTIME] = 0;
6771 1.1 mrg #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
6772 1.1 mrg sys_errlist[0] = ""; /* Cygwin mis-declares this */
6773 1.1 mrg #endif
6774 1.1 mrg
6775 1.1 mrg ;
6776 1.1 mrg return 0;
6777 1.1 mrg }
6778 1.1 mrg _ACEOF
6779 1.1 mrg rm -f conftest.$ac_objext
6780 1.1 mrg if { (eval echo "$as_me:6780: \"$ac_compile\"") >&5
6781 1.1 mrg (eval $ac_compile) 2>&5
6782 1.1 mrg ac_status=$?
6783 1.1 mrg echo "$as_me:6783: \$? = $ac_status" >&5
6784 1.1 mrg (exit $ac_status); } &&
6785 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6786 1.1 mrg { (eval echo "$as_me:6786: \"$ac_try\"") >&5
6787 1.1 mrg (eval $ac_try) 2>&5
6788 1.1 mrg ac_status=$?
6789 1.1 mrg echo "$as_me:6789: \$? = $ac_status" >&5
6790 1.1 mrg (exit $ac_status); }; }; then
6791 1.1 mrg cf_cv_sysv=yes
6792 1.1 mrg else
6793 1.1 mrg echo "$as_me: failed program was:" >&5
6794 1.1 mrg cat conftest.$ac_ext >&5
6795 1.1 mrg cf_cv_sysv=no
6796 1.1 mrg fi
6797 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6798 1.1 mrg
6799 1.1 mrg fi
6800 1.1 mrg echo "$as_me:6800: result: $cf_cv_sysv" >&5
6801 1.1 mrg echo "${ECHO_T}$cf_cv_sysv" >&6
6802 1.1 mrg test "$cf_cv_sysv" = yes && cat >>confdefs.h <<\EOF
6803 1.1 mrg #define SYSV 1
6804 1.1 mrg EOF
6805 1.1 mrg
6806 1.1 mrg echo "$as_me:6806: checking for elf_begin in -lelf" >&5
6807 1.1 mrg echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
6808 1.1 mrg if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
6809 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6810 1.1 mrg else
6811 1.1 mrg ac_check_lib_save_LIBS=$LIBS
6812 1.1 mrg LIBS="-lelf $LIBS"
6813 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6814 1.1 mrg #line 6814 "configure"
6815 1.1 mrg #include "confdefs.h"
6816 1.1 mrg
6817 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
6818 1.1 mrg #ifdef __cplusplus
6819 1.1 mrg extern "C"
6820 1.1 mrg #endif
6821 1.1 mrg /* We use char because int might match the return type of a gcc2
6822 1.1 mrg builtin and then its argument prototype would still apply. */
6823 1.1 mrg char elf_begin ();
6824 1.1 mrg int
6825 1.1 mrg main ()
6826 1.1 mrg {
6827 1.1 mrg elf_begin ();
6828 1.1 mrg ;
6829 1.1 mrg return 0;
6830 1.1 mrg }
6831 1.1 mrg _ACEOF
6832 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6833 1.1 mrg if { (eval echo "$as_me:6833: \"$ac_link\"") >&5
6834 1.1 mrg (eval $ac_link) 2>&5
6835 1.1 mrg ac_status=$?
6836 1.1 mrg echo "$as_me:6836: \$? = $ac_status" >&5
6837 1.1 mrg (exit $ac_status); } &&
6838 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6839 1.1 mrg { (eval echo "$as_me:6839: \"$ac_try\"") >&5
6840 1.1 mrg (eval $ac_try) 2>&5
6841 1.1 mrg ac_status=$?
6842 1.1 mrg echo "$as_me:6842: \$? = $ac_status" >&5
6843 1.1 mrg (exit $ac_status); }; }; then
6844 1.1 mrg ac_cv_lib_elf_elf_begin=yes
6845 1.1 mrg else
6846 1.1 mrg echo "$as_me: failed program was:" >&5
6847 1.1 mrg cat conftest.$ac_ext >&5
6848 1.1 mrg ac_cv_lib_elf_elf_begin=no
6849 1.1 mrg fi
6850 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6851 1.1 mrg LIBS=$ac_check_lib_save_LIBS
6852 1.1 mrg fi
6853 1.1 mrg echo "$as_me:6853: result: $ac_cv_lib_elf_elf_begin" >&5
6854 1.1 mrg echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
6855 1.1 mrg if test $ac_cv_lib_elf_elf_begin = yes; then
6856 1.1 mrg
6857 1.1 mrg echo "$as_me:6857: checking if this is an SVR4 system" >&5
6858 1.1 mrg echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
6859 1.1 mrg if test "${cf_cv_svr4+set}" = set; then
6860 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6861 1.1 mrg else
6862 1.1 mrg
6863 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6864 1.1 mrg #line 6864 "configure"
6865 1.1 mrg #include "confdefs.h"
6866 1.1 mrg
6867 1.1 mrg #include <elf.h>
6868 1.1 mrg #include <sys/termio.h>
6869 1.1 mrg
6870 1.1 mrg int
6871 1.1 mrg main ()
6872 1.1 mrg {
6873 1.1 mrg
6874 1.1 mrg static struct termio d_tio;
6875 1.1 mrg d_tio.c_cc[VINTR] = 0;
6876 1.1 mrg d_tio.c_cc[VQUIT] = 0;
6877 1.1 mrg d_tio.c_cc[VERASE] = 0;
6878 1.1 mrg d_tio.c_cc[VKILL] = 0;
6879 1.1 mrg d_tio.c_cc[VEOF] = 0;
6880 1.1 mrg d_tio.c_cc[VEOL] = 0;
6881 1.1 mrg d_tio.c_cc[VMIN] = 0;
6882 1.1 mrg d_tio.c_cc[VTIME] = 0;
6883 1.1 mrg d_tio.c_cc[VLNEXT] = 0;
6884 1.1 mrg
6885 1.1 mrg ;
6886 1.1 mrg return 0;
6887 1.1 mrg }
6888 1.1 mrg _ACEOF
6889 1.1 mrg rm -f conftest.$ac_objext
6890 1.1 mrg if { (eval echo "$as_me:6890: \"$ac_compile\"") >&5
6891 1.1 mrg (eval $ac_compile) 2>&5
6892 1.1 mrg ac_status=$?
6893 1.1 mrg echo "$as_me:6893: \$? = $ac_status" >&5
6894 1.1 mrg (exit $ac_status); } &&
6895 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6896 1.1 mrg { (eval echo "$as_me:6896: \"$ac_try\"") >&5
6897 1.1 mrg (eval $ac_try) 2>&5
6898 1.1 mrg ac_status=$?
6899 1.1 mrg echo "$as_me:6899: \$? = $ac_status" >&5
6900 1.1 mrg (exit $ac_status); }; }; then
6901 1.1 mrg cf_cv_svr4=yes
6902 1.1 mrg else
6903 1.1 mrg echo "$as_me: failed program was:" >&5
6904 1.1 mrg cat conftest.$ac_ext >&5
6905 1.1 mrg cf_cv_svr4=no
6906 1.1 mrg fi
6907 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6908 1.1 mrg
6909 1.1 mrg fi
6910 1.1 mrg echo "$as_me:6910: result: $cf_cv_svr4" >&5
6911 1.1 mrg echo "${ECHO_T}$cf_cv_svr4" >&6
6912 1.1 mrg
6913 1.1 mrg fi
6914 1.1 mrg
6915 1.1 mrg test "$cf_cv_svr4" = yes && cat >>confdefs.h <<\EOF
6916 1.1 mrg #define SVR4 1
6917 1.1 mrg EOF
6918 1.1 mrg
6919 1.1 mrg echo "$as_me:6919: checking for X" >&5
6920 1.1 mrg echo $ECHO_N "checking for X... $ECHO_C" >&6
6921 1.1 mrg
6922 1.1 mrg # Check whether --with-x or --without-x was given.
6923 1.1 mrg if test "${with_x+set}" = set; then
6924 1.1 mrg withval="$with_x"
6925 1.1 mrg
6926 1.1 mrg fi;
6927 1.1 mrg # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6928 1.1 mrg if test "x$with_x" = xno; then
6929 1.1 mrg # The user explicitly disabled X.
6930 1.1 mrg have_x=disabled
6931 1.1 mrg else
6932 1.1 mrg if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6933 1.1 mrg # Both variables are already set.
6934 1.1 mrg have_x=yes
6935 1.1 mrg else
6936 1.1 mrg if test "${ac_cv_have_x+set}" = set; then
6937 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6938 1.1 mrg else
6939 1.1 mrg # One or both of the vars are not set, and there is no cached value.
6940 1.1 mrg ac_x_includes=no ac_x_libraries=no
6941 1.1 mrg rm -fr conftest.dir
6942 1.1 mrg if mkdir conftest.dir; then
6943 1.1 mrg cd conftest.dir
6944 1.1 mrg # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6945 1.1 mrg cat >Imakefile <<'EOF'
6946 1.1 mrg acfindx:
6947 1.1 mrg @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6948 1.1 mrg EOF
6949 1.1 mrg if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6950 1.1 mrg # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6951 1.1 mrg eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6952 1.1 mrg # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6953 1.1 mrg for ac_extension in a so sl dylib dll; do
6954 1.1 mrg if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6955 1.1 mrg test -f $ac_im_libdir/libX11.$ac_extension; then
6956 1.1 mrg ac_im_usrlibdir=$ac_im_libdir; break
6957 1.1 mrg fi
6958 1.1 mrg done
6959 1.1 mrg # Screen out bogus values from the imake configuration. They are
6960 1.1 mrg # bogus both because they are the default anyway, and because
6961 1.1 mrg # using them would break gcc on systems where it needs fixed includes.
6962 1.1 mrg case $ac_im_incroot in
6963 1.1 mrg /usr/include) ;;
6964 1.1 mrg *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6965 1.1 mrg esac
6966 1.1 mrg case $ac_im_usrlibdir in
6967 1.1 mrg /usr/lib | /lib) ;;
6968 1.1 mrg *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6969 1.1 mrg esac
6970 1.1 mrg fi
6971 1.1 mrg cd ..
6972 1.1 mrg rm -fr conftest.dir
6973 1.1 mrg fi
6974 1.1 mrg
6975 1.1 mrg # Standard set of common directories for X headers.
6976 1.1 mrg # Check X11 before X11Rn because it is often a symlink to the current release.
6977 1.1 mrg ac_x_header_dirs='
6978 1.1 mrg /usr/X11/include
6979 1.1 mrg /usr/X11R6/include
6980 1.1 mrg /usr/X11R5/include
6981 1.1 mrg /usr/X11R4/include
6982 1.1 mrg
6983 1.1 mrg /usr/include/X11
6984 1.1 mrg /usr/include/X11R6
6985 1.1 mrg /usr/include/X11R5
6986 1.1 mrg /usr/include/X11R4
6987 1.1 mrg
6988 1.1 mrg /usr/local/X11/include
6989 1.1 mrg /usr/local/X11R6/include
6990 1.1 mrg /usr/local/X11R5/include
6991 1.1 mrg /usr/local/X11R4/include
6992 1.1 mrg
6993 1.1 mrg /usr/local/include/X11
6994 1.1 mrg /usr/local/include/X11R6
6995 1.1 mrg /usr/local/include/X11R5
6996 1.1 mrg /usr/local/include/X11R4
6997 1.1 mrg
6998 1.1 mrg /usr/X386/include
6999 1.1 mrg /usr/x386/include
7000 1.1 mrg /usr/XFree86/include/X11
7001 1.1 mrg
7002 1.1 mrg /usr/include
7003 1.1 mrg /usr/local/include
7004 1.1 mrg /usr/unsupported/include
7005 1.1 mrg /usr/athena/include
7006 1.1 mrg /usr/local/x11r5/include
7007 1.1 mrg /usr/lpp/Xamples/include
7008 1.1 mrg
7009 1.1 mrg /usr/openwin/include
7010 1.1 mrg /usr/openwin/share/include'
7011 1.1 mrg
7012 1.1 mrg if test "$ac_x_includes" = no; then
7013 1.1 mrg # Guess where to find include files, by looking for Intrinsic.h.
7014 1.1 mrg # First, try using that file with no special directory specified.
7015 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7016 1.1 mrg #line 7016 "configure"
7017 1.1 mrg #include "confdefs.h"
7018 1.1 mrg #include <X11/Intrinsic.h>
7019 1.1 mrg _ACEOF
7020 1.1 mrg if { (eval echo "$as_me:7020: \"$ac_cpp conftest.$ac_ext\"") >&5
7021 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7022 1.1 mrg ac_status=$?
7023 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
7024 1.1 mrg rm -f conftest.er1
7025 1.1 mrg cat conftest.err >&5
7026 1.1 mrg echo "$as_me:7026: \$? = $ac_status" >&5
7027 1.1 mrg (exit $ac_status); } >/dev/null; then
7028 1.1 mrg if test -s conftest.err; then
7029 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
7030 1.1 mrg else
7031 1.1 mrg ac_cpp_err=
7032 1.1 mrg fi
7033 1.1 mrg else
7034 1.1 mrg ac_cpp_err=yes
7035 1.1 mrg fi
7036 1.1 mrg if test -z "$ac_cpp_err"; then
7037 1.1 mrg # We can compile using X headers with no special include directory.
7038 1.1 mrg ac_x_includes=
7039 1.1 mrg else
7040 1.1 mrg echo "$as_me: failed program was:" >&5
7041 1.1 mrg cat conftest.$ac_ext >&5
7042 1.1 mrg for ac_dir in $ac_x_header_dirs; do
7043 1.1 mrg if test -r "$ac_dir/X11/Intrinsic.h"; then
7044 1.1 mrg ac_x_includes=$ac_dir
7045 1.1 mrg break
7046 1.1 mrg fi
7047 1.1 mrg done
7048 1.1 mrg fi
7049 1.1 mrg rm -f conftest.err conftest.$ac_ext
7050 1.1 mrg fi # $ac_x_includes = no
7051 1.1 mrg
7052 1.1 mrg if test "$ac_x_libraries" = no; then
7053 1.1 mrg # Check for the libraries.
7054 1.1 mrg # See if we find them without any special options.
7055 1.1 mrg # Don't add to $LIBS permanently.
7056 1.1 mrg ac_save_LIBS=$LIBS
7057 1.1 mrg LIBS="-lXt $LIBS"
7058 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7059 1.1 mrg #line 7059 "configure"
7060 1.1 mrg #include "confdefs.h"
7061 1.1 mrg #include <X11/Intrinsic.h>
7062 1.1 mrg int
7063 1.1 mrg main ()
7064 1.1 mrg {
7065 1.1 mrg XtMalloc (0)
7066 1.1 mrg ;
7067 1.1 mrg return 0;
7068 1.1 mrg }
7069 1.1 mrg _ACEOF
7070 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7071 1.1 mrg if { (eval echo "$as_me:7071: \"$ac_link\"") >&5
7072 1.1 mrg (eval $ac_link) 2>&5
7073 1.1 mrg ac_status=$?
7074 1.1 mrg echo "$as_me:7074: \$? = $ac_status" >&5
7075 1.1 mrg (exit $ac_status); } &&
7076 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7077 1.1 mrg { (eval echo "$as_me:7077: \"$ac_try\"") >&5
7078 1.1 mrg (eval $ac_try) 2>&5
7079 1.1 mrg ac_status=$?
7080 1.1 mrg echo "$as_me:7080: \$? = $ac_status" >&5
7081 1.1 mrg (exit $ac_status); }; }; then
7082 1.1 mrg LIBS=$ac_save_LIBS
7083 1.1 mrg # We can link X programs with no special library path.
7084 1.1 mrg ac_x_libraries=
7085 1.1 mrg else
7086 1.1 mrg echo "$as_me: failed program was:" >&5
7087 1.1 mrg cat conftest.$ac_ext >&5
7088 1.1 mrg LIBS=$ac_save_LIBS
7089 1.1 mrg for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7090 1.1 mrg do
7091 1.1 mrg # Don't even attempt the hair of trying to link an X program!
7092 1.1 mrg for ac_extension in a so sl dylib dll; do
7093 1.1 mrg if test -r $ac_dir/libXt.$ac_extension; then
7094 1.1 mrg ac_x_libraries=$ac_dir
7095 1.1 mrg break 2
7096 1.1 mrg fi
7097 1.1 mrg done
7098 1.1 mrg done
7099 1.1 mrg fi
7100 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7101 1.1 mrg fi # $ac_x_libraries = no
7102 1.1 mrg
7103 1.1 mrg if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7104 1.1 mrg # Didn't find X anywhere. Cache the known absence of X.
7105 1.1 mrg ac_cv_have_x="have_x=no"
7106 1.1 mrg else
7107 1.1 mrg # Record where we found X for the cache.
7108 1.1 mrg ac_cv_have_x="have_x=yes \
7109 1.1 mrg ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7110 1.1 mrg fi
7111 1.1 mrg fi
7112 1.1 mrg
7113 1.1 mrg fi
7114 1.1 mrg eval "$ac_cv_have_x"
7115 1.1 mrg fi # $with_x != no
7116 1.1 mrg
7117 1.1 mrg if test "$have_x" != yes; then
7118 1.1 mrg echo "$as_me:7118: result: $have_x" >&5
7119 1.1 mrg echo "${ECHO_T}$have_x" >&6
7120 1.1 mrg no_x=yes
7121 1.1 mrg else
7122 1.1 mrg # If each of the values was on the command line, it overrides each guess.
7123 1.1 mrg test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7124 1.1 mrg test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7125 1.1 mrg # Update the cache value to reflect the command line values.
7126 1.1 mrg ac_cv_have_x="have_x=yes \
7127 1.1 mrg ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7128 1.1 mrg echo "$as_me:7128: result: libraries $x_libraries, headers $x_includes" >&5
7129 1.1 mrg echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7130 1.1 mrg fi
7131 1.1 mrg
7132 1.1 mrg if test "$no_x" = yes; then
7133 1.1 mrg # Not all programs may use this symbol, but it does not hurt to define it.
7134 1.1 mrg
7135 1.1 mrg cat >>confdefs.h <<\EOF
7136 1.1 mrg #define X_DISPLAY_MISSING 1
7137 1.1 mrg EOF
7138 1.1 mrg
7139 1.1 mrg X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7140 1.1 mrg else
7141 1.1 mrg if test -n "$x_includes"; then
7142 1.1 mrg X_CFLAGS="$X_CFLAGS -I$x_includes"
7143 1.1 mrg fi
7144 1.1 mrg
7145 1.1 mrg # It would also be nice to do this for all -L options, not just this one.
7146 1.1 mrg if test -n "$x_libraries"; then
7147 1.1 mrg X_LIBS="$X_LIBS -L$x_libraries"
7148 1.1 mrg # For Solaris; some versions of Sun CC require a space after -R and
7149 1.1 mrg # others require no space. Words are not sufficient . . . .
7150 1.1 mrg case `(uname -sr) 2>/dev/null` in
7151 1.1 mrg "SunOS 5"*)
7152 1.1 mrg echo "$as_me:7152: checking whether -R must be followed by a space" >&5
7153 1.1 mrg echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7154 1.1 mrg ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7155 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7156 1.1 mrg #line 7156 "configure"
7157 1.1 mrg #include "confdefs.h"
7158 1.1 mrg
7159 1.1 mrg int
7160 1.1 mrg main ()
7161 1.1 mrg {
7162 1.1 mrg
7163 1.1 mrg ;
7164 1.1 mrg return 0;
7165 1.1 mrg }
7166 1.1 mrg _ACEOF
7167 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7168 1.1 mrg if { (eval echo "$as_me:7168: \"$ac_link\"") >&5
7169 1.1 mrg (eval $ac_link) 2>&5
7170 1.1 mrg ac_status=$?
7171 1.1 mrg echo "$as_me:7171: \$? = $ac_status" >&5
7172 1.1 mrg (exit $ac_status); } &&
7173 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7174 1.1 mrg { (eval echo "$as_me:7174: \"$ac_try\"") >&5
7175 1.1 mrg (eval $ac_try) 2>&5
7176 1.1 mrg ac_status=$?
7177 1.1 mrg echo "$as_me:7177: \$? = $ac_status" >&5
7178 1.1 mrg (exit $ac_status); }; }; then
7179 1.1 mrg ac_R_nospace=yes
7180 1.1 mrg else
7181 1.1 mrg echo "$as_me: failed program was:" >&5
7182 1.1 mrg cat conftest.$ac_ext >&5
7183 1.1 mrg ac_R_nospace=no
7184 1.1 mrg fi
7185 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7186 1.1 mrg if test $ac_R_nospace = yes; then
7187 1.1 mrg echo "$as_me:7187: result: no" >&5
7188 1.1 mrg echo "${ECHO_T}no" >&6
7189 1.1 mrg X_LIBS="$X_LIBS -R$x_libraries"
7190 1.1 mrg else
7191 1.1 mrg LIBS="$ac_xsave_LIBS -R $x_libraries"
7192 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7193 1.1 mrg #line 7193 "configure"
7194 1.1 mrg #include "confdefs.h"
7195 1.1 mrg
7196 1.1 mrg int
7197 1.1 mrg main ()
7198 1.1 mrg {
7199 1.1 mrg
7200 1.1 mrg ;
7201 1.1 mrg return 0;
7202 1.1 mrg }
7203 1.1 mrg _ACEOF
7204 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7205 1.1 mrg if { (eval echo "$as_me:7205: \"$ac_link\"") >&5
7206 1.1 mrg (eval $ac_link) 2>&5
7207 1.1 mrg ac_status=$?
7208 1.1 mrg echo "$as_me:7208: \$? = $ac_status" >&5
7209 1.1 mrg (exit $ac_status); } &&
7210 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7211 1.1 mrg { (eval echo "$as_me:7211: \"$ac_try\"") >&5
7212 1.1 mrg (eval $ac_try) 2>&5
7213 1.1 mrg ac_status=$?
7214 1.1 mrg echo "$as_me:7214: \$? = $ac_status" >&5
7215 1.1 mrg (exit $ac_status); }; }; then
7216 1.1 mrg ac_R_space=yes
7217 1.1 mrg else
7218 1.1 mrg echo "$as_me: failed program was:" >&5
7219 1.1 mrg cat conftest.$ac_ext >&5
7220 1.1 mrg ac_R_space=no
7221 1.1 mrg fi
7222 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7223 1.1 mrg if test $ac_R_space = yes; then
7224 1.1 mrg echo "$as_me:7224: result: yes" >&5
7225 1.1 mrg echo "${ECHO_T}yes" >&6
7226 1.1 mrg X_LIBS="$X_LIBS -R $x_libraries"
7227 1.1 mrg else
7228 1.1 mrg echo "$as_me:7228: result: neither works" >&5
7229 1.1 mrg echo "${ECHO_T}neither works" >&6
7230 1.1 mrg fi
7231 1.1 mrg fi
7232 1.1 mrg LIBS=$ac_xsave_LIBS
7233 1.1 mrg esac
7234 1.1 mrg fi
7235 1.1 mrg
7236 1.1 mrg # Check for system-dependent libraries X programs must link with.
7237 1.1 mrg # Do this before checking for the system-independent R6 libraries
7238 1.1 mrg # (-lICE), since we may need -lsocket or whatever for X linking.
7239 1.1 mrg
7240 1.1 mrg if test "$ISC" = yes; then
7241 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7242 1.1 mrg else
7243 1.1 mrg # Martyn Johnson says this is needed for Ultrix, if the X
7244 1.1 mrg # libraries were built with DECnet support. And Karl Berry says
7245 1.1 mrg # the Alpha needs dnet_stub (dnet does not exist).
7246 1.1 mrg ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7247 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7248 1.1 mrg #line 7248 "configure"
7249 1.1 mrg #include "confdefs.h"
7250 1.1 mrg
7251 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7252 1.1 mrg #ifdef __cplusplus
7253 1.1 mrg extern "C"
7254 1.1 mrg #endif
7255 1.1 mrg /* We use char because int might match the return type of a gcc2
7256 1.1 mrg builtin and then its argument prototype would still apply. */
7257 1.1 mrg char XOpenDisplay ();
7258 1.1 mrg int
7259 1.1 mrg main ()
7260 1.1 mrg {
7261 1.1 mrg XOpenDisplay ();
7262 1.1 mrg ;
7263 1.1 mrg return 0;
7264 1.1 mrg }
7265 1.1 mrg _ACEOF
7266 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7267 1.1 mrg if { (eval echo "$as_me:7267: \"$ac_link\"") >&5
7268 1.1 mrg (eval $ac_link) 2>&5
7269 1.1 mrg ac_status=$?
7270 1.1 mrg echo "$as_me:7270: \$? = $ac_status" >&5
7271 1.1 mrg (exit $ac_status); } &&
7272 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7273 1.1 mrg { (eval echo "$as_me:7273: \"$ac_try\"") >&5
7274 1.1 mrg (eval $ac_try) 2>&5
7275 1.1 mrg ac_status=$?
7276 1.1 mrg echo "$as_me:7276: \$? = $ac_status" >&5
7277 1.1 mrg (exit $ac_status); }; }; then
7278 1.1 mrg :
7279 1.1 mrg else
7280 1.1 mrg echo "$as_me: failed program was:" >&5
7281 1.1 mrg cat conftest.$ac_ext >&5
7282 1.1 mrg echo "$as_me:7282: checking for dnet_ntoa in -ldnet" >&5
7283 1.1 mrg echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7284 1.1 mrg if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7285 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7286 1.1 mrg else
7287 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7288 1.1 mrg LIBS="-ldnet $LIBS"
7289 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7290 1.1 mrg #line 7290 "configure"
7291 1.1 mrg #include "confdefs.h"
7292 1.1 mrg
7293 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7294 1.1 mrg #ifdef __cplusplus
7295 1.1 mrg extern "C"
7296 1.1 mrg #endif
7297 1.1 mrg /* We use char because int might match the return type of a gcc2
7298 1.1 mrg builtin and then its argument prototype would still apply. */
7299 1.1 mrg char dnet_ntoa ();
7300 1.1 mrg int
7301 1.1 mrg main ()
7302 1.1 mrg {
7303 1.1 mrg dnet_ntoa ();
7304 1.1 mrg ;
7305 1.1 mrg return 0;
7306 1.1 mrg }
7307 1.1 mrg _ACEOF
7308 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7309 1.1 mrg if { (eval echo "$as_me:7309: \"$ac_link\"") >&5
7310 1.1 mrg (eval $ac_link) 2>&5
7311 1.1 mrg ac_status=$?
7312 1.1 mrg echo "$as_me:7312: \$? = $ac_status" >&5
7313 1.1 mrg (exit $ac_status); } &&
7314 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7315 1.1 mrg { (eval echo "$as_me:7315: \"$ac_try\"") >&5
7316 1.1 mrg (eval $ac_try) 2>&5
7317 1.1 mrg ac_status=$?
7318 1.1 mrg echo "$as_me:7318: \$? = $ac_status" >&5
7319 1.1 mrg (exit $ac_status); }; }; then
7320 1.1 mrg ac_cv_lib_dnet_dnet_ntoa=yes
7321 1.1 mrg else
7322 1.1 mrg echo "$as_me: failed program was:" >&5
7323 1.1 mrg cat conftest.$ac_ext >&5
7324 1.1 mrg ac_cv_lib_dnet_dnet_ntoa=no
7325 1.1 mrg fi
7326 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7327 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7328 1.1 mrg fi
7329 1.1 mrg echo "$as_me:7329: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7330 1.1 mrg echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7331 1.1 mrg if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7332 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7333 1.1 mrg fi
7334 1.1 mrg
7335 1.1 mrg if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7336 1.1 mrg echo "$as_me:7336: checking for dnet_ntoa in -ldnet_stub" >&5
7337 1.1 mrg echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7338 1.1 mrg if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7339 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7340 1.1 mrg else
7341 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7342 1.1 mrg LIBS="-ldnet_stub $LIBS"
7343 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7344 1.1 mrg #line 7344 "configure"
7345 1.1 mrg #include "confdefs.h"
7346 1.1 mrg
7347 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7348 1.1 mrg #ifdef __cplusplus
7349 1.1 mrg extern "C"
7350 1.1 mrg #endif
7351 1.1 mrg /* We use char because int might match the return type of a gcc2
7352 1.1 mrg builtin and then its argument prototype would still apply. */
7353 1.1 mrg char dnet_ntoa ();
7354 1.1 mrg int
7355 1.1 mrg main ()
7356 1.1 mrg {
7357 1.1 mrg dnet_ntoa ();
7358 1.1 mrg ;
7359 1.1 mrg return 0;
7360 1.1 mrg }
7361 1.1 mrg _ACEOF
7362 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7363 1.1 mrg if { (eval echo "$as_me:7363: \"$ac_link\"") >&5
7364 1.1 mrg (eval $ac_link) 2>&5
7365 1.1 mrg ac_status=$?
7366 1.1 mrg echo "$as_me:7366: \$? = $ac_status" >&5
7367 1.1 mrg (exit $ac_status); } &&
7368 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7369 1.1 mrg { (eval echo "$as_me:7369: \"$ac_try\"") >&5
7370 1.1 mrg (eval $ac_try) 2>&5
7371 1.1 mrg ac_status=$?
7372 1.1 mrg echo "$as_me:7372: \$? = $ac_status" >&5
7373 1.1 mrg (exit $ac_status); }; }; then
7374 1.1 mrg ac_cv_lib_dnet_stub_dnet_ntoa=yes
7375 1.1 mrg else
7376 1.1 mrg echo "$as_me: failed program was:" >&5
7377 1.1 mrg cat conftest.$ac_ext >&5
7378 1.1 mrg ac_cv_lib_dnet_stub_dnet_ntoa=no
7379 1.1 mrg fi
7380 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7381 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7382 1.1 mrg fi
7383 1.1 mrg echo "$as_me:7383: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7384 1.1 mrg echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7385 1.1 mrg if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7386 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7387 1.1 mrg fi
7388 1.1 mrg
7389 1.1 mrg fi
7390 1.1 mrg fi
7391 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7392 1.1 mrg LIBS="$ac_xsave_LIBS"
7393 1.1 mrg
7394 1.1 mrg # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7395 1.1 mrg # to get the SysV transport functions.
7396 1.1 mrg # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7397 1.1 mrg # needs -lnsl.
7398 1.1 mrg # The nsl library prevents programs from opening the X display
7399 1.1 mrg # on Irix 5.2, according to T.E. Dickey.
7400 1.1 mrg # The functions gethostbyname, getservbyname, and inet_addr are
7401 1.1 mrg # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7402 1.1 mrg echo "$as_me:7402: checking for gethostbyname" >&5
7403 1.1 mrg echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7404 1.1 mrg if test "${ac_cv_func_gethostbyname+set}" = set; then
7405 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7406 1.1 mrg else
7407 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7408 1.1 mrg #line 7408 "configure"
7409 1.1 mrg #include "confdefs.h"
7410 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7411 1.1 mrg which can conflict with char gethostbyname (); below. */
7412 1.1 mrg #include <assert.h>
7413 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7414 1.1 mrg #ifdef __cplusplus
7415 1.1 mrg extern "C"
7416 1.1 mrg #endif
7417 1.1 mrg /* We use char because int might match the return type of a gcc2
7418 1.1 mrg builtin and then its argument prototype would still apply. */
7419 1.1 mrg char gethostbyname ();
7420 1.1 mrg char (*f) ();
7421 1.1 mrg
7422 1.1 mrg int
7423 1.1 mrg main ()
7424 1.1 mrg {
7425 1.1 mrg /* The GNU C library defines this for functions which it implements
7426 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7427 1.1 mrg something starting with __ and the normal name is an alias. */
7428 1.1 mrg #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7429 1.1 mrg choke me
7430 1.1 mrg #else
7431 1.1 mrg f = gethostbyname;
7432 1.1 mrg #endif
7433 1.1 mrg
7434 1.1 mrg ;
7435 1.1 mrg return 0;
7436 1.1 mrg }
7437 1.1 mrg _ACEOF
7438 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7439 1.1 mrg if { (eval echo "$as_me:7439: \"$ac_link\"") >&5
7440 1.1 mrg (eval $ac_link) 2>&5
7441 1.1 mrg ac_status=$?
7442 1.1 mrg echo "$as_me:7442: \$? = $ac_status" >&5
7443 1.1 mrg (exit $ac_status); } &&
7444 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7445 1.1 mrg { (eval echo "$as_me:7445: \"$ac_try\"") >&5
7446 1.1 mrg (eval $ac_try) 2>&5
7447 1.1 mrg ac_status=$?
7448 1.1 mrg echo "$as_me:7448: \$? = $ac_status" >&5
7449 1.1 mrg (exit $ac_status); }; }; then
7450 1.1 mrg ac_cv_func_gethostbyname=yes
7451 1.1 mrg else
7452 1.1 mrg echo "$as_me: failed program was:" >&5
7453 1.1 mrg cat conftest.$ac_ext >&5
7454 1.1 mrg ac_cv_func_gethostbyname=no
7455 1.1 mrg fi
7456 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7457 1.1 mrg fi
7458 1.1 mrg echo "$as_me:7458: result: $ac_cv_func_gethostbyname" >&5
7459 1.1 mrg echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7460 1.1 mrg
7461 1.1 mrg if test $ac_cv_func_gethostbyname = no; then
7462 1.1 mrg echo "$as_me:7462: checking for gethostbyname in -lnsl" >&5
7463 1.1 mrg echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7464 1.1 mrg if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7465 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7466 1.1 mrg else
7467 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7468 1.1 mrg LIBS="-lnsl $LIBS"
7469 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7470 1.1 mrg #line 7470 "configure"
7471 1.1 mrg #include "confdefs.h"
7472 1.1 mrg
7473 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7474 1.1 mrg #ifdef __cplusplus
7475 1.1 mrg extern "C"
7476 1.1 mrg #endif
7477 1.1 mrg /* We use char because int might match the return type of a gcc2
7478 1.1 mrg builtin and then its argument prototype would still apply. */
7479 1.1 mrg char gethostbyname ();
7480 1.1 mrg int
7481 1.1 mrg main ()
7482 1.1 mrg {
7483 1.1 mrg gethostbyname ();
7484 1.1 mrg ;
7485 1.1 mrg return 0;
7486 1.1 mrg }
7487 1.1 mrg _ACEOF
7488 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7489 1.1 mrg if { (eval echo "$as_me:7489: \"$ac_link\"") >&5
7490 1.1 mrg (eval $ac_link) 2>&5
7491 1.1 mrg ac_status=$?
7492 1.1 mrg echo "$as_me:7492: \$? = $ac_status" >&5
7493 1.1 mrg (exit $ac_status); } &&
7494 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7495 1.1 mrg { (eval echo "$as_me:7495: \"$ac_try\"") >&5
7496 1.1 mrg (eval $ac_try) 2>&5
7497 1.1 mrg ac_status=$?
7498 1.1 mrg echo "$as_me:7498: \$? = $ac_status" >&5
7499 1.1 mrg (exit $ac_status); }; }; then
7500 1.1 mrg ac_cv_lib_nsl_gethostbyname=yes
7501 1.1 mrg else
7502 1.1 mrg echo "$as_me: failed program was:" >&5
7503 1.1 mrg cat conftest.$ac_ext >&5
7504 1.1 mrg ac_cv_lib_nsl_gethostbyname=no
7505 1.1 mrg fi
7506 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7507 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7508 1.1 mrg fi
7509 1.1 mrg echo "$as_me:7509: result: $ac_cv_lib_nsl_gethostbyname" >&5
7510 1.1 mrg echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7511 1.1 mrg if test $ac_cv_lib_nsl_gethostbyname = yes; then
7512 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7513 1.1 mrg fi
7514 1.1 mrg
7515 1.1 mrg if test $ac_cv_lib_nsl_gethostbyname = no; then
7516 1.1 mrg echo "$as_me:7516: checking for gethostbyname in -lbsd" >&5
7517 1.1 mrg echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7518 1.1 mrg if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7519 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7520 1.1 mrg else
7521 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7522 1.1 mrg LIBS="-lbsd $LIBS"
7523 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7524 1.1 mrg #line 7524 "configure"
7525 1.1 mrg #include "confdefs.h"
7526 1.1 mrg
7527 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7528 1.1 mrg #ifdef __cplusplus
7529 1.1 mrg extern "C"
7530 1.1 mrg #endif
7531 1.1 mrg /* We use char because int might match the return type of a gcc2
7532 1.1 mrg builtin and then its argument prototype would still apply. */
7533 1.1 mrg char gethostbyname ();
7534 1.1 mrg int
7535 1.1 mrg main ()
7536 1.1 mrg {
7537 1.1 mrg gethostbyname ();
7538 1.1 mrg ;
7539 1.1 mrg return 0;
7540 1.1 mrg }
7541 1.1 mrg _ACEOF
7542 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7543 1.1 mrg if { (eval echo "$as_me:7543: \"$ac_link\"") >&5
7544 1.1 mrg (eval $ac_link) 2>&5
7545 1.1 mrg ac_status=$?
7546 1.1 mrg echo "$as_me:7546: \$? = $ac_status" >&5
7547 1.1 mrg (exit $ac_status); } &&
7548 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7549 1.1 mrg { (eval echo "$as_me:7549: \"$ac_try\"") >&5
7550 1.1 mrg (eval $ac_try) 2>&5
7551 1.1 mrg ac_status=$?
7552 1.1 mrg echo "$as_me:7552: \$? = $ac_status" >&5
7553 1.1 mrg (exit $ac_status); }; }; then
7554 1.1 mrg ac_cv_lib_bsd_gethostbyname=yes
7555 1.1 mrg else
7556 1.1 mrg echo "$as_me: failed program was:" >&5
7557 1.1 mrg cat conftest.$ac_ext >&5
7558 1.1 mrg ac_cv_lib_bsd_gethostbyname=no
7559 1.1 mrg fi
7560 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7561 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7562 1.1 mrg fi
7563 1.1 mrg echo "$as_me:7563: result: $ac_cv_lib_bsd_gethostbyname" >&5
7564 1.1 mrg echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7565 1.1 mrg if test $ac_cv_lib_bsd_gethostbyname = yes; then
7566 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7567 1.1 mrg fi
7568 1.1 mrg
7569 1.1 mrg fi
7570 1.1 mrg fi
7571 1.1 mrg
7572 1.1 mrg # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
7573 1.1 mrg # socket/setsockopt and other routines are undefined under SCO ODT
7574 1.1 mrg # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7575 1.1 mrg # on later versions), says Simon Leinen: it contains gethostby*
7576 1.1 mrg # variants that don't use the nameserver (or something). -lsocket
7577 1.1 mrg # must be given before -lnsl if both are needed. We assume that
7578 1.1 mrg # if connect needs -lnsl, so does gethostbyname.
7579 1.1 mrg echo "$as_me:7579: checking for connect" >&5
7580 1.1 mrg echo $ECHO_N "checking for connect... $ECHO_C" >&6
7581 1.1 mrg if test "${ac_cv_func_connect+set}" = set; then
7582 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7583 1.1 mrg else
7584 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7585 1.1 mrg #line 7585 "configure"
7586 1.1 mrg #include "confdefs.h"
7587 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7588 1.1 mrg which can conflict with char connect (); below. */
7589 1.1 mrg #include <assert.h>
7590 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7591 1.1 mrg #ifdef __cplusplus
7592 1.1 mrg extern "C"
7593 1.1 mrg #endif
7594 1.1 mrg /* We use char because int might match the return type of a gcc2
7595 1.1 mrg builtin and then its argument prototype would still apply. */
7596 1.1 mrg char connect ();
7597 1.1 mrg char (*f) ();
7598 1.1 mrg
7599 1.1 mrg int
7600 1.1 mrg main ()
7601 1.1 mrg {
7602 1.1 mrg /* The GNU C library defines this for functions which it implements
7603 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7604 1.1 mrg something starting with __ and the normal name is an alias. */
7605 1.1 mrg #if defined (__stub_connect) || defined (__stub___connect)
7606 1.1 mrg choke me
7607 1.1 mrg #else
7608 1.1 mrg f = connect;
7609 1.1 mrg #endif
7610 1.1 mrg
7611 1.1 mrg ;
7612 1.1 mrg return 0;
7613 1.1 mrg }
7614 1.1 mrg _ACEOF
7615 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7616 1.1 mrg if { (eval echo "$as_me:7616: \"$ac_link\"") >&5
7617 1.1 mrg (eval $ac_link) 2>&5
7618 1.1 mrg ac_status=$?
7619 1.1 mrg echo "$as_me:7619: \$? = $ac_status" >&5
7620 1.1 mrg (exit $ac_status); } &&
7621 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7622 1.1 mrg { (eval echo "$as_me:7622: \"$ac_try\"") >&5
7623 1.1 mrg (eval $ac_try) 2>&5
7624 1.1 mrg ac_status=$?
7625 1.1 mrg echo "$as_me:7625: \$? = $ac_status" >&5
7626 1.1 mrg (exit $ac_status); }; }; then
7627 1.1 mrg ac_cv_func_connect=yes
7628 1.1 mrg else
7629 1.1 mrg echo "$as_me: failed program was:" >&5
7630 1.1 mrg cat conftest.$ac_ext >&5
7631 1.1 mrg ac_cv_func_connect=no
7632 1.1 mrg fi
7633 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7634 1.1 mrg fi
7635 1.1 mrg echo "$as_me:7635: result: $ac_cv_func_connect" >&5
7636 1.1 mrg echo "${ECHO_T}$ac_cv_func_connect" >&6
7637 1.1 mrg
7638 1.1 mrg if test $ac_cv_func_connect = no; then
7639 1.1 mrg echo "$as_me:7639: checking for connect in -lsocket" >&5
7640 1.1 mrg echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7641 1.1 mrg if test "${ac_cv_lib_socket_connect+set}" = set; then
7642 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7643 1.1 mrg else
7644 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7645 1.1 mrg LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7646 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7647 1.1 mrg #line 7647 "configure"
7648 1.1 mrg #include "confdefs.h"
7649 1.1 mrg
7650 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7651 1.1 mrg #ifdef __cplusplus
7652 1.1 mrg extern "C"
7653 1.1 mrg #endif
7654 1.1 mrg /* We use char because int might match the return type of a gcc2
7655 1.1 mrg builtin and then its argument prototype would still apply. */
7656 1.1 mrg char connect ();
7657 1.1 mrg int
7658 1.1 mrg main ()
7659 1.1 mrg {
7660 1.1 mrg connect ();
7661 1.1 mrg ;
7662 1.1 mrg return 0;
7663 1.1 mrg }
7664 1.1 mrg _ACEOF
7665 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7666 1.1 mrg if { (eval echo "$as_me:7666: \"$ac_link\"") >&5
7667 1.1 mrg (eval $ac_link) 2>&5
7668 1.1 mrg ac_status=$?
7669 1.1 mrg echo "$as_me:7669: \$? = $ac_status" >&5
7670 1.1 mrg (exit $ac_status); } &&
7671 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7672 1.1 mrg { (eval echo "$as_me:7672: \"$ac_try\"") >&5
7673 1.1 mrg (eval $ac_try) 2>&5
7674 1.1 mrg ac_status=$?
7675 1.1 mrg echo "$as_me:7675: \$? = $ac_status" >&5
7676 1.1 mrg (exit $ac_status); }; }; then
7677 1.1 mrg ac_cv_lib_socket_connect=yes
7678 1.1 mrg else
7679 1.1 mrg echo "$as_me: failed program was:" >&5
7680 1.1 mrg cat conftest.$ac_ext >&5
7681 1.1 mrg ac_cv_lib_socket_connect=no
7682 1.1 mrg fi
7683 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7684 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7685 1.1 mrg fi
7686 1.1 mrg echo "$as_me:7686: result: $ac_cv_lib_socket_connect" >&5
7687 1.1 mrg echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7688 1.1 mrg if test $ac_cv_lib_socket_connect = yes; then
7689 1.1 mrg X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7690 1.1 mrg fi
7691 1.1 mrg
7692 1.1 mrg fi
7693 1.1 mrg
7694 1.1 mrg # Guillermo Gomez says -lposix is necessary on A/UX.
7695 1.1 mrg echo "$as_me:7695: checking for remove" >&5
7696 1.1 mrg echo $ECHO_N "checking for remove... $ECHO_C" >&6
7697 1.1 mrg if test "${ac_cv_func_remove+set}" = set; then
7698 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7699 1.1 mrg else
7700 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7701 1.1 mrg #line 7701 "configure"
7702 1.1 mrg #include "confdefs.h"
7703 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7704 1.1 mrg which can conflict with char remove (); below. */
7705 1.1 mrg #include <assert.h>
7706 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7707 1.1 mrg #ifdef __cplusplus
7708 1.1 mrg extern "C"
7709 1.1 mrg #endif
7710 1.1 mrg /* We use char because int might match the return type of a gcc2
7711 1.1 mrg builtin and then its argument prototype would still apply. */
7712 1.1 mrg char remove ();
7713 1.1 mrg char (*f) ();
7714 1.1 mrg
7715 1.1 mrg int
7716 1.1 mrg main ()
7717 1.1 mrg {
7718 1.1 mrg /* The GNU C library defines this for functions which it implements
7719 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7720 1.1 mrg something starting with __ and the normal name is an alias. */
7721 1.1 mrg #if defined (__stub_remove) || defined (__stub___remove)
7722 1.1 mrg choke me
7723 1.1 mrg #else
7724 1.1 mrg f = remove;
7725 1.1 mrg #endif
7726 1.1 mrg
7727 1.1 mrg ;
7728 1.1 mrg return 0;
7729 1.1 mrg }
7730 1.1 mrg _ACEOF
7731 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7732 1.1 mrg if { (eval echo "$as_me:7732: \"$ac_link\"") >&5
7733 1.1 mrg (eval $ac_link) 2>&5
7734 1.1 mrg ac_status=$?
7735 1.1 mrg echo "$as_me:7735: \$? = $ac_status" >&5
7736 1.1 mrg (exit $ac_status); } &&
7737 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7738 1.1 mrg { (eval echo "$as_me:7738: \"$ac_try\"") >&5
7739 1.1 mrg (eval $ac_try) 2>&5
7740 1.1 mrg ac_status=$?
7741 1.1 mrg echo "$as_me:7741: \$? = $ac_status" >&5
7742 1.1 mrg (exit $ac_status); }; }; then
7743 1.1 mrg ac_cv_func_remove=yes
7744 1.1 mrg else
7745 1.1 mrg echo "$as_me: failed program was:" >&5
7746 1.1 mrg cat conftest.$ac_ext >&5
7747 1.1 mrg ac_cv_func_remove=no
7748 1.1 mrg fi
7749 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7750 1.1 mrg fi
7751 1.1 mrg echo "$as_me:7751: result: $ac_cv_func_remove" >&5
7752 1.1 mrg echo "${ECHO_T}$ac_cv_func_remove" >&6
7753 1.1 mrg
7754 1.1 mrg if test $ac_cv_func_remove = no; then
7755 1.1 mrg echo "$as_me:7755: checking for remove in -lposix" >&5
7756 1.1 mrg echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7757 1.1 mrg if test "${ac_cv_lib_posix_remove+set}" = set; then
7758 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7759 1.1 mrg else
7760 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7761 1.1 mrg LIBS="-lposix $LIBS"
7762 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7763 1.1 mrg #line 7763 "configure"
7764 1.1 mrg #include "confdefs.h"
7765 1.1 mrg
7766 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7767 1.1 mrg #ifdef __cplusplus
7768 1.1 mrg extern "C"
7769 1.1 mrg #endif
7770 1.1 mrg /* We use char because int might match the return type of a gcc2
7771 1.1 mrg builtin and then its argument prototype would still apply. */
7772 1.1 mrg char remove ();
7773 1.1 mrg int
7774 1.1 mrg main ()
7775 1.1 mrg {
7776 1.1 mrg remove ();
7777 1.1 mrg ;
7778 1.1 mrg return 0;
7779 1.1 mrg }
7780 1.1 mrg _ACEOF
7781 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7782 1.1 mrg if { (eval echo "$as_me:7782: \"$ac_link\"") >&5
7783 1.1 mrg (eval $ac_link) 2>&5
7784 1.1 mrg ac_status=$?
7785 1.1 mrg echo "$as_me:7785: \$? = $ac_status" >&5
7786 1.1 mrg (exit $ac_status); } &&
7787 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7788 1.1 mrg { (eval echo "$as_me:7788: \"$ac_try\"") >&5
7789 1.1 mrg (eval $ac_try) 2>&5
7790 1.1 mrg ac_status=$?
7791 1.1 mrg echo "$as_me:7791: \$? = $ac_status" >&5
7792 1.1 mrg (exit $ac_status); }; }; then
7793 1.1 mrg ac_cv_lib_posix_remove=yes
7794 1.1 mrg else
7795 1.1 mrg echo "$as_me: failed program was:" >&5
7796 1.1 mrg cat conftest.$ac_ext >&5
7797 1.1 mrg ac_cv_lib_posix_remove=no
7798 1.1 mrg fi
7799 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7800 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7801 1.1 mrg fi
7802 1.1 mrg echo "$as_me:7802: result: $ac_cv_lib_posix_remove" >&5
7803 1.1 mrg echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7804 1.1 mrg if test $ac_cv_lib_posix_remove = yes; then
7805 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7806 1.1 mrg fi
7807 1.1 mrg
7808 1.1 mrg fi
7809 1.1 mrg
7810 1.1 mrg # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7811 1.1 mrg echo "$as_me:7811: checking for shmat" >&5
7812 1.1 mrg echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7813 1.1 mrg if test "${ac_cv_func_shmat+set}" = set; then
7814 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7815 1.1 mrg else
7816 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7817 1.1 mrg #line 7817 "configure"
7818 1.1 mrg #include "confdefs.h"
7819 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7820 1.1 mrg which can conflict with char shmat (); below. */
7821 1.1 mrg #include <assert.h>
7822 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7823 1.1 mrg #ifdef __cplusplus
7824 1.1 mrg extern "C"
7825 1.1 mrg #endif
7826 1.1 mrg /* We use char because int might match the return type of a gcc2
7827 1.1 mrg builtin and then its argument prototype would still apply. */
7828 1.1 mrg char shmat ();
7829 1.1 mrg char (*f) ();
7830 1.1 mrg
7831 1.1 mrg int
7832 1.1 mrg main ()
7833 1.1 mrg {
7834 1.1 mrg /* The GNU C library defines this for functions which it implements
7835 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7836 1.1 mrg something starting with __ and the normal name is an alias. */
7837 1.1 mrg #if defined (__stub_shmat) || defined (__stub___shmat)
7838 1.1 mrg choke me
7839 1.1 mrg #else
7840 1.1 mrg f = shmat;
7841 1.1 mrg #endif
7842 1.1 mrg
7843 1.1 mrg ;
7844 1.1 mrg return 0;
7845 1.1 mrg }
7846 1.1 mrg _ACEOF
7847 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7848 1.1 mrg if { (eval echo "$as_me:7848: \"$ac_link\"") >&5
7849 1.1 mrg (eval $ac_link) 2>&5
7850 1.1 mrg ac_status=$?
7851 1.1 mrg echo "$as_me:7851: \$? = $ac_status" >&5
7852 1.1 mrg (exit $ac_status); } &&
7853 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7854 1.1 mrg { (eval echo "$as_me:7854: \"$ac_try\"") >&5
7855 1.1 mrg (eval $ac_try) 2>&5
7856 1.1 mrg ac_status=$?
7857 1.1 mrg echo "$as_me:7857: \$? = $ac_status" >&5
7858 1.1 mrg (exit $ac_status); }; }; then
7859 1.1 mrg ac_cv_func_shmat=yes
7860 1.1 mrg else
7861 1.1 mrg echo "$as_me: failed program was:" >&5
7862 1.1 mrg cat conftest.$ac_ext >&5
7863 1.1 mrg ac_cv_func_shmat=no
7864 1.1 mrg fi
7865 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7866 1.1 mrg fi
7867 1.1 mrg echo "$as_me:7867: result: $ac_cv_func_shmat" >&5
7868 1.1 mrg echo "${ECHO_T}$ac_cv_func_shmat" >&6
7869 1.1 mrg
7870 1.1 mrg if test $ac_cv_func_shmat = no; then
7871 1.1 mrg echo "$as_me:7871: checking for shmat in -lipc" >&5
7872 1.1 mrg echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7873 1.1 mrg if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7874 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7875 1.1 mrg else
7876 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7877 1.1 mrg LIBS="-lipc $LIBS"
7878 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7879 1.1 mrg #line 7879 "configure"
7880 1.1 mrg #include "confdefs.h"
7881 1.1 mrg
7882 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7883 1.1 mrg #ifdef __cplusplus
7884 1.1 mrg extern "C"
7885 1.1 mrg #endif
7886 1.1 mrg /* We use char because int might match the return type of a gcc2
7887 1.1 mrg builtin and then its argument prototype would still apply. */
7888 1.1 mrg char shmat ();
7889 1.1 mrg int
7890 1.1 mrg main ()
7891 1.1 mrg {
7892 1.1 mrg shmat ();
7893 1.1 mrg ;
7894 1.1 mrg return 0;
7895 1.1 mrg }
7896 1.1 mrg _ACEOF
7897 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7898 1.1 mrg if { (eval echo "$as_me:7898: \"$ac_link\"") >&5
7899 1.1 mrg (eval $ac_link) 2>&5
7900 1.1 mrg ac_status=$?
7901 1.1 mrg echo "$as_me:7901: \$? = $ac_status" >&5
7902 1.1 mrg (exit $ac_status); } &&
7903 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7904 1.1 mrg { (eval echo "$as_me:7904: \"$ac_try\"") >&5
7905 1.1 mrg (eval $ac_try) 2>&5
7906 1.1 mrg ac_status=$?
7907 1.1 mrg echo "$as_me:7907: \$? = $ac_status" >&5
7908 1.1 mrg (exit $ac_status); }; }; then
7909 1.1 mrg ac_cv_lib_ipc_shmat=yes
7910 1.1 mrg else
7911 1.1 mrg echo "$as_me: failed program was:" >&5
7912 1.1 mrg cat conftest.$ac_ext >&5
7913 1.1 mrg ac_cv_lib_ipc_shmat=no
7914 1.1 mrg fi
7915 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7917 1.1 mrg fi
7918 1.1 mrg echo "$as_me:7918: result: $ac_cv_lib_ipc_shmat" >&5
7919 1.1 mrg echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7920 1.1 mrg if test $ac_cv_lib_ipc_shmat = yes; then
7921 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7922 1.1 mrg fi
7923 1.1 mrg
7924 1.1 mrg fi
7925 1.1 mrg fi
7926 1.1 mrg
7927 1.1 mrg # Check for libraries that X11R6 Xt/Xaw programs need.
7928 1.1 mrg ac_save_LDFLAGS=$LDFLAGS
7929 1.1 mrg test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7930 1.1 mrg # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7931 1.1 mrg # check for ICE first), but we must link in the order -lSM -lICE or
7932 1.1 mrg # we get undefined symbols. So assume we have SM if we have ICE.
7933 1.1 mrg # These have to be linked with before -lX11, unlike the other
7934 1.1 mrg # libraries we check for below, so use a different variable.
7935 1.1 mrg # John Interrante, Karl Berry
7936 1.1 mrg echo "$as_me:7936: checking for IceConnectionNumber in -lICE" >&5
7937 1.1 mrg echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7938 1.1 mrg if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7939 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7940 1.1 mrg else
7941 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7942 1.1 mrg LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7943 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7944 1.1 mrg #line 7944 "configure"
7945 1.1 mrg #include "confdefs.h"
7946 1.1 mrg
7947 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7948 1.1 mrg #ifdef __cplusplus
7949 1.1 mrg extern "C"
7950 1.1 mrg #endif
7951 1.1 mrg /* We use char because int might match the return type of a gcc2
7952 1.1 mrg builtin and then its argument prototype would still apply. */
7953 1.1 mrg char IceConnectionNumber ();
7954 1.1 mrg int
7955 1.1 mrg main ()
7956 1.1 mrg {
7957 1.1 mrg IceConnectionNumber ();
7958 1.1 mrg ;
7959 1.1 mrg return 0;
7960 1.1 mrg }
7961 1.1 mrg _ACEOF
7962 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7963 1.1 mrg if { (eval echo "$as_me:7963: \"$ac_link\"") >&5
7964 1.1 mrg (eval $ac_link) 2>&5
7965 1.1 mrg ac_status=$?
7966 1.1 mrg echo "$as_me:7966: \$? = $ac_status" >&5
7967 1.1 mrg (exit $ac_status); } &&
7968 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7969 1.1 mrg { (eval echo "$as_me:7969: \"$ac_try\"") >&5
7970 1.1 mrg (eval $ac_try) 2>&5
7971 1.1 mrg ac_status=$?
7972 1.1 mrg echo "$as_me:7972: \$? = $ac_status" >&5
7973 1.1 mrg (exit $ac_status); }; }; then
7974 1.1 mrg ac_cv_lib_ICE_IceConnectionNumber=yes
7975 1.1 mrg else
7976 1.1 mrg echo "$as_me: failed program was:" >&5
7977 1.1 mrg cat conftest.$ac_ext >&5
7978 1.1 mrg ac_cv_lib_ICE_IceConnectionNumber=no
7979 1.1 mrg fi
7980 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7981 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7982 1.1 mrg fi
7983 1.1 mrg echo "$as_me:7983: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7984 1.1 mrg echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7985 1.1 mrg if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7986 1.1 mrg X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7987 1.1 mrg fi
7988 1.1 mrg
7989 1.1 mrg LDFLAGS=$ac_save_LDFLAGS
7990 1.1 mrg
7991 1.1 mrg fi
7992 1.1 mrg
7993 1.1 mrg # SYSTEM_NAME=`echo "$cf_cv_system_name"|tr ' ' -`
7994 1.1 mrg
7995 1.1 mrg cf_have_X_LIBS=no
7996 1.1 mrg
7997 1.1 mrg LDFLAGS="$X_LIBS $LDFLAGS"
7998 1.1 mrg
7999 1.1 mrg test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
8000 1.1 mrg
8001 1.1 mrg echo "${as_me-configure}:8001: testing checking additions to CFLAGS ..." 1>&5
8002 1.1 mrg
8003 1.1 mrg cf_check_cflags="$CFLAGS"
8004 1.1 mrg cf_check_cppflags="$CPPFLAGS"
8005 1.1 mrg
8006 1.1 mrg cf_fix_cppflags=no
8007 1.1 mrg cf_new_cflags=
8008 1.1 mrg cf_new_cppflags=
8009 1.1 mrg cf_new_extra_cppflags=
8010 1.1 mrg
8011 1.1 mrg for cf_add_cflags in $X_CFLAGS
8012 1.1 mrg do
8013 1.1 mrg case $cf_fix_cppflags in
8014 1.1 mrg no)
8015 1.1 mrg case $cf_add_cflags in #(vi
8016 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8017 1.1 mrg case $cf_add_cflags in
8018 1.1 mrg -D*)
8019 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8020 1.1 mrg
8021 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8022 1.1 mrg && test -z "${cf_tst_cflags}" \
8023 1.1 mrg && cf_fix_cppflags=yes
8024 1.1 mrg
8025 1.1 mrg if test $cf_fix_cppflags = yes ; then
8026 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8027 1.1 mrg continue
8028 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
8029 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8030 1.1 mrg continue
8031 1.1 mrg fi
8032 1.1 mrg ;;
8033 1.1 mrg esac
8034 1.1 mrg case "$CPPFLAGS" in
8035 1.1 mrg *$cf_add_cflags) #(vi
8036 1.1 mrg ;;
8037 1.1 mrg *) #(vi
8038 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8039 1.1 mrg ;;
8040 1.1 mrg esac
8041 1.1 mrg ;;
8042 1.1 mrg *)
8043 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8044 1.1 mrg ;;
8045 1.1 mrg esac
8046 1.1 mrg ;;
8047 1.1 mrg yes)
8048 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8049 1.1 mrg
8050 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8051 1.1 mrg
8052 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8053 1.1 mrg && test -z "${cf_tst_cflags}" \
8054 1.1 mrg && cf_fix_cppflags=no
8055 1.1 mrg ;;
8056 1.1 mrg esac
8057 1.1 mrg done
8058 1.1 mrg
8059 1.1 mrg if test -n "$cf_new_cflags" ; then
8060 1.1 mrg test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8061 1.1 mrg
8062 1.1 mrg echo "${as_me-configure}:8062: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8063 1.1 mrg
8064 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
8065 1.1 mrg fi
8066 1.1 mrg
8067 1.1 mrg if test -n "$cf_new_cppflags" ; then
8068 1.1 mrg test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8069 1.1 mrg
8070 1.1 mrg echo "${as_me-configure}:8070: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8071 1.1 mrg
8072 1.1 mrg CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
8073 1.1 mrg fi
8074 1.1 mrg
8075 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
8076 1.1 mrg test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8077 1.1 mrg
8078 1.1 mrg echo "${as_me-configure}:8078: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8079 1.1 mrg
8080 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8081 1.1 mrg fi
8082 1.1 mrg
8083 1.1 mrg if test "$cf_check_cflags" != "$CFLAGS" ; then
8084 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8085 1.1 mrg #line 8085 "configure"
8086 1.1 mrg #include "confdefs.h"
8087 1.1 mrg #include <stdio.h>
8088 1.1 mrg int
8089 1.1 mrg main ()
8090 1.1 mrg {
8091 1.1 mrg printf("Hello world");
8092 1.1 mrg ;
8093 1.1 mrg return 0;
8094 1.1 mrg }
8095 1.1 mrg _ACEOF
8096 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8097 1.1 mrg if { (eval echo "$as_me:8097: \"$ac_link\"") >&5
8098 1.1 mrg (eval $ac_link) 2>&5
8099 1.1 mrg ac_status=$?
8100 1.1 mrg echo "$as_me:8100: \$? = $ac_status" >&5
8101 1.1 mrg (exit $ac_status); } &&
8102 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8103 1.1 mrg { (eval echo "$as_me:8103: \"$ac_try\"") >&5
8104 1.1 mrg (eval $ac_try) 2>&5
8105 1.1 mrg ac_status=$?
8106 1.1 mrg echo "$as_me:8106: \$? = $ac_status" >&5
8107 1.1 mrg (exit $ac_status); }; }; then
8108 1.1 mrg :
8109 1.1 mrg else
8110 1.1 mrg echo "$as_me: failed program was:" >&5
8111 1.1 mrg cat conftest.$ac_ext >&5
8112 1.1 mrg test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
8113 1.1 mrg
8114 1.1 mrg echo "${as_me-configure}:8114: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
8115 1.1 mrg
8116 1.1 mrg if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
8117 1.1 mrg test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
8118 1.1 mrg
8119 1.1 mrg echo "${as_me-configure}:8119: testing but keeping change to \$CPPFLAGS ..." 1>&5
8120 1.1 mrg
8121 1.1 mrg fi
8122 1.1 mrg CFLAGS="$cf_check_flags"
8123 1.1 mrg fi
8124 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8125 1.1 mrg fi
8126 1.1 mrg
8127 1.1 mrg echo "$as_me:8127: checking for XOpenDisplay" >&5
8128 1.1 mrg echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
8129 1.1 mrg if test "${ac_cv_func_XOpenDisplay+set}" = set; then
8130 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8131 1.1 mrg else
8132 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8133 1.1 mrg #line 8133 "configure"
8134 1.1 mrg #include "confdefs.h"
8135 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
8136 1.1 mrg which can conflict with char XOpenDisplay (); below. */
8137 1.1 mrg #include <assert.h>
8138 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8139 1.1 mrg #ifdef __cplusplus
8140 1.1 mrg extern "C"
8141 1.1 mrg #endif
8142 1.1 mrg /* We use char because int might match the return type of a gcc2
8143 1.1 mrg builtin and then its argument prototype would still apply. */
8144 1.1 mrg char XOpenDisplay ();
8145 1.1 mrg char (*f) ();
8146 1.1 mrg
8147 1.1 mrg int
8148 1.1 mrg main ()
8149 1.1 mrg {
8150 1.1 mrg /* The GNU C library defines this for functions which it implements
8151 1.1 mrg to always fail with ENOSYS. Some functions are actually named
8152 1.1 mrg something starting with __ and the normal name is an alias. */
8153 1.1 mrg #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
8154 1.1 mrg choke me
8155 1.1 mrg #else
8156 1.1 mrg f = XOpenDisplay;
8157 1.1 mrg #endif
8158 1.1 mrg
8159 1.1 mrg ;
8160 1.1 mrg return 0;
8161 1.1 mrg }
8162 1.1 mrg _ACEOF
8163 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8164 1.1 mrg if { (eval echo "$as_me:8164: \"$ac_link\"") >&5
8165 1.1 mrg (eval $ac_link) 2>&5
8166 1.1 mrg ac_status=$?
8167 1.1 mrg echo "$as_me:8167: \$? = $ac_status" >&5
8168 1.1 mrg (exit $ac_status); } &&
8169 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8170 1.1 mrg { (eval echo "$as_me:8170: \"$ac_try\"") >&5
8171 1.1 mrg (eval $ac_try) 2>&5
8172 1.1 mrg ac_status=$?
8173 1.1 mrg echo "$as_me:8173: \$? = $ac_status" >&5
8174 1.1 mrg (exit $ac_status); }; }; then
8175 1.1 mrg ac_cv_func_XOpenDisplay=yes
8176 1.1 mrg else
8177 1.1 mrg echo "$as_me: failed program was:" >&5
8178 1.1 mrg cat conftest.$ac_ext >&5
8179 1.1 mrg ac_cv_func_XOpenDisplay=no
8180 1.1 mrg fi
8181 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8182 1.1 mrg fi
8183 1.1 mrg echo "$as_me:8183: result: $ac_cv_func_XOpenDisplay" >&5
8184 1.1 mrg echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
8185 1.1 mrg if test $ac_cv_func_XOpenDisplay = yes; then
8186 1.1 mrg :
8187 1.1 mrg else
8188 1.1 mrg
8189 1.1 mrg echo "$as_me:8189: checking for XOpenDisplay in -lX11" >&5
8190 1.1 mrg echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
8191 1.1 mrg if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
8192 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8193 1.1 mrg else
8194 1.1 mrg ac_check_lib_save_LIBS=$LIBS
8195 1.1 mrg LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
8196 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8197 1.1 mrg #line 8197 "configure"
8198 1.1 mrg #include "confdefs.h"
8199 1.1 mrg
8200 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8201 1.1 mrg #ifdef __cplusplus
8202 1.1 mrg extern "C"
8203 1.1 mrg #endif
8204 1.1 mrg /* We use char because int might match the return type of a gcc2
8205 1.1 mrg builtin and then its argument prototype would still apply. */
8206 1.1 mrg char XOpenDisplay ();
8207 1.1 mrg int
8208 1.1 mrg main ()
8209 1.1 mrg {
8210 1.1 mrg XOpenDisplay ();
8211 1.1 mrg ;
8212 1.1 mrg return 0;
8213 1.1 mrg }
8214 1.1 mrg _ACEOF
8215 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8216 1.1 mrg if { (eval echo "$as_me:8216: \"$ac_link\"") >&5
8217 1.1 mrg (eval $ac_link) 2>&5
8218 1.1 mrg ac_status=$?
8219 1.1 mrg echo "$as_me:8219: \$? = $ac_status" >&5
8220 1.1 mrg (exit $ac_status); } &&
8221 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8222 1.1 mrg { (eval echo "$as_me:8222: \"$ac_try\"") >&5
8223 1.1 mrg (eval $ac_try) 2>&5
8224 1.1 mrg ac_status=$?
8225 1.1 mrg echo "$as_me:8225: \$? = $ac_status" >&5
8226 1.1 mrg (exit $ac_status); }; }; then
8227 1.1 mrg ac_cv_lib_X11_XOpenDisplay=yes
8228 1.1 mrg else
8229 1.1 mrg echo "$as_me: failed program was:" >&5
8230 1.1 mrg cat conftest.$ac_ext >&5
8231 1.1 mrg ac_cv_lib_X11_XOpenDisplay=no
8232 1.1 mrg fi
8233 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8234 1.1 mrg LIBS=$ac_check_lib_save_LIBS
8235 1.1 mrg fi
8236 1.1 mrg echo "$as_me:8236: result: $ac_cv_lib_X11_XOpenDisplay" >&5
8237 1.1 mrg echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
8238 1.1 mrg if test $ac_cv_lib_X11_XOpenDisplay = yes; then
8239 1.1 mrg LIBS="-lX11 $LIBS"
8240 1.1 mrg fi
8241 1.1 mrg
8242 1.1 mrg fi
8243 1.1 mrg
8244 1.1 mrg echo "$as_me:8244: checking for XtAppInitialize" >&5
8245 1.1 mrg echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
8246 1.1 mrg if test "${ac_cv_func_XtAppInitialize+set}" = set; then
8247 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8248 1.1 mrg else
8249 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8250 1.1 mrg #line 8250 "configure"
8251 1.1 mrg #include "confdefs.h"
8252 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
8253 1.1 mrg which can conflict with char XtAppInitialize (); below. */
8254 1.1 mrg #include <assert.h>
8255 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8256 1.1 mrg #ifdef __cplusplus
8257 1.1 mrg extern "C"
8258 1.1 mrg #endif
8259 1.1 mrg /* We use char because int might match the return type of a gcc2
8260 1.1 mrg builtin and then its argument prototype would still apply. */
8261 1.1 mrg char XtAppInitialize ();
8262 1.1 mrg char (*f) ();
8263 1.1 mrg
8264 1.1 mrg int
8265 1.1 mrg main ()
8266 1.1 mrg {
8267 1.1 mrg /* The GNU C library defines this for functions which it implements
8268 1.1 mrg to always fail with ENOSYS. Some functions are actually named
8269 1.1 mrg something starting with __ and the normal name is an alias. */
8270 1.1 mrg #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
8271 1.1 mrg choke me
8272 1.1 mrg #else
8273 1.1 mrg f = XtAppInitialize;
8274 1.1 mrg #endif
8275 1.1 mrg
8276 1.1 mrg ;
8277 1.1 mrg return 0;
8278 1.1 mrg }
8279 1.1 mrg _ACEOF
8280 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8281 1.1 mrg if { (eval echo "$as_me:8281: \"$ac_link\"") >&5
8282 1.1 mrg (eval $ac_link) 2>&5
8283 1.1 mrg ac_status=$?
8284 1.1 mrg echo "$as_me:8284: \$? = $ac_status" >&5
8285 1.1 mrg (exit $ac_status); } &&
8286 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8287 1.1 mrg { (eval echo "$as_me:8287: \"$ac_try\"") >&5
8288 1.1 mrg (eval $ac_try) 2>&5
8289 1.1 mrg ac_status=$?
8290 1.1 mrg echo "$as_me:8290: \$? = $ac_status" >&5
8291 1.1 mrg (exit $ac_status); }; }; then
8292 1.1 mrg ac_cv_func_XtAppInitialize=yes
8293 1.1 mrg else
8294 1.1 mrg echo "$as_me: failed program was:" >&5
8295 1.1 mrg cat conftest.$ac_ext >&5
8296 1.1 mrg ac_cv_func_XtAppInitialize=no
8297 1.1 mrg fi
8298 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8299 1.1 mrg fi
8300 1.1 mrg echo "$as_me:8300: result: $ac_cv_func_XtAppInitialize" >&5
8301 1.1 mrg echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
8302 1.1 mrg if test $ac_cv_func_XtAppInitialize = yes; then
8303 1.1 mrg :
8304 1.1 mrg else
8305 1.1 mrg
8306 1.1 mrg echo "$as_me:8306: checking for XtAppInitialize in -lXt" >&5
8307 1.1 mrg echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
8308 1.1 mrg if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
8309 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8310 1.1 mrg else
8311 1.1 mrg ac_check_lib_save_LIBS=$LIBS
8312 1.1 mrg LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
8313 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8314 1.1 mrg #line 8314 "configure"
8315 1.1 mrg #include "confdefs.h"
8316 1.1 mrg
8317 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8318 1.1 mrg #ifdef __cplusplus
8319 1.1 mrg extern "C"
8320 1.1 mrg #endif
8321 1.1 mrg /* We use char because int might match the return type of a gcc2
8322 1.1 mrg builtin and then its argument prototype would still apply. */
8323 1.1 mrg char XtAppInitialize ();
8324 1.1 mrg int
8325 1.1 mrg main ()
8326 1.1 mrg {
8327 1.1 mrg XtAppInitialize ();
8328 1.1 mrg ;
8329 1.1 mrg return 0;
8330 1.1 mrg }
8331 1.1 mrg _ACEOF
8332 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8333 1.1 mrg if { (eval echo "$as_me:8333: \"$ac_link\"") >&5
8334 1.1 mrg (eval $ac_link) 2>&5
8335 1.1 mrg ac_status=$?
8336 1.1 mrg echo "$as_me:8336: \$? = $ac_status" >&5
8337 1.1 mrg (exit $ac_status); } &&
8338 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8339 1.1 mrg { (eval echo "$as_me:8339: \"$ac_try\"") >&5
8340 1.1 mrg (eval $ac_try) 2>&5
8341 1.1 mrg ac_status=$?
8342 1.1 mrg echo "$as_me:8342: \$? = $ac_status" >&5
8343 1.1 mrg (exit $ac_status); }; }; then
8344 1.1 mrg ac_cv_lib_Xt_XtAppInitialize=yes
8345 1.1 mrg else
8346 1.1 mrg echo "$as_me: failed program was:" >&5
8347 1.1 mrg cat conftest.$ac_ext >&5
8348 1.1 mrg ac_cv_lib_Xt_XtAppInitialize=no
8349 1.1 mrg fi
8350 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8351 1.1 mrg LIBS=$ac_check_lib_save_LIBS
8352 1.1 mrg fi
8353 1.1 mrg echo "$as_me:8353: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
8354 1.1 mrg echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
8355 1.1 mrg if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
8356 1.1 mrg cat >>confdefs.h <<\EOF
8357 1.1 mrg #define HAVE_LIBXT 1
8358 1.1 mrg EOF
8359 1.1 mrg
8360 1.1 mrg cf_have_X_LIBS=Xt
8361 1.1 mrg LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
8362 1.1 mrg fi
8363 1.1 mrg
8364 1.1 mrg fi
8365 1.1 mrg
8366 1.1 mrg if test $cf_have_X_LIBS = no ; then
8367 1.1 mrg { echo "$as_me:8367: WARNING: Unable to successfully link X Toolkit library (-lXt) with
8368 1.1 mrg test program. You will have to check and add the proper libraries by hand
8369 1.1 mrg to makefile." >&5
8370 1.1 mrg echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
8371 1.1 mrg test program. You will have to check and add the proper libraries by hand
8372 1.1 mrg to makefile." >&2;}
8373 1.1 mrg fi
8374 1.1 mrg
8375 1.1 mrg for ac_header in \
8376 1.1 mrg X11/DECkeysym.h \
8377 1.1 mrg X11/Sunkeysym.h \
8378 1.1 mrg X11/XF86keysym.h \
8379 1.1 mrg X11/Xpoll.h \
8380 1.1 mrg
8381 1.1 mrg do
8382 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8383 1.1 mrg echo "$as_me:8383: checking for $ac_header" >&5
8384 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8385 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
8386 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8387 1.1 mrg else
8388 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8389 1.1 mrg #line 8389 "configure"
8390 1.1 mrg #include "confdefs.h"
8391 1.1 mrg #include <$ac_header>
8392 1.1 mrg _ACEOF
8393 1.1 mrg if { (eval echo "$as_me:8393: \"$ac_cpp conftest.$ac_ext\"") >&5
8394 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8395 1.1 mrg ac_status=$?
8396 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
8397 1.1 mrg rm -f conftest.er1
8398 1.1 mrg cat conftest.err >&5
8399 1.1 mrg echo "$as_me:8399: \$? = $ac_status" >&5
8400 1.1 mrg (exit $ac_status); } >/dev/null; then
8401 1.1 mrg if test -s conftest.err; then
8402 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
8403 1.1 mrg else
8404 1.1 mrg ac_cpp_err=
8405 1.1 mrg fi
8406 1.1 mrg else
8407 1.1 mrg ac_cpp_err=yes
8408 1.1 mrg fi
8409 1.1 mrg if test -z "$ac_cpp_err"; then
8410 1.1 mrg eval "$as_ac_Header=yes"
8411 1.1 mrg else
8412 1.1 mrg echo "$as_me: failed program was:" >&5
8413 1.1 mrg cat conftest.$ac_ext >&5
8414 1.1 mrg eval "$as_ac_Header=no"
8415 1.1 mrg fi
8416 1.1 mrg rm -f conftest.err conftest.$ac_ext
8417 1.1 mrg fi
8418 1.1 mrg echo "$as_me:8418: result: `eval echo '${'$as_ac_Header'}'`" >&5
8419 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8420 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
8421 1.1 mrg cat >>confdefs.h <<EOF
8422 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8423 1.1 mrg EOF
8424 1.1 mrg
8425 1.1 mrg fi
8426 1.1 mrg done
8427 1.1 mrg
8428 1.1 mrg cf_x_athena=${cf_x_athena-Xaw}
8429 1.1 mrg
8430 1.1 mrg echo "$as_me:8430: checking if you want to link with Xaw 3d library" >&5
8431 1.1 mrg echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
8432 1.1 mrg withval=
8433 1.1 mrg
8434 1.1 mrg # Check whether --with-Xaw3d or --without-Xaw3d was given.
8435 1.1 mrg if test "${with_Xaw3d+set}" = set; then
8436 1.1 mrg withval="$with_Xaw3d"
8437 1.1 mrg
8438 1.1 mrg fi;
8439 1.1 mrg if test "$withval" = yes ; then
8440 1.1 mrg cf_x_athena=Xaw3d
8441 1.1 mrg echo "$as_me:8441: result: yes" >&5
8442 1.1 mrg echo "${ECHO_T}yes" >&6
8443 1.1 mrg else
8444 1.1 mrg echo "$as_me:8444: result: no" >&5
8445 1.1 mrg echo "${ECHO_T}no" >&6
8446 1.1 mrg fi
8447 1.1 mrg
8448 1.1 mrg echo "$as_me:8448: checking if you want to link with neXT Athena library" >&5
8449 1.1 mrg echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
8450 1.1 mrg withval=
8451 1.1 mrg
8452 1.1 mrg # Check whether --with-neXtaw or --without-neXtaw was given.
8453 1.1 mrg if test "${with_neXtaw+set}" = set; then
8454 1.1 mrg withval="$with_neXtaw"
8455 1.1 mrg
8456 1.1 mrg fi;
8457 1.1 mrg if test "$withval" = yes ; then
8458 1.1 mrg cf_x_athena=neXtaw
8459 1.1 mrg echo "$as_me:8459: result: yes" >&5
8460 1.1 mrg echo "${ECHO_T}yes" >&6
8461 1.1 mrg else
8462 1.1 mrg echo "$as_me:8462: result: no" >&5
8463 1.1 mrg echo "${ECHO_T}no" >&6
8464 1.1 mrg fi
8465 1.1 mrg
8466 1.1 mrg echo "$as_me:8466: checking if you want to link with Athena-Plus library" >&5
8467 1.1 mrg echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
8468 1.1 mrg withval=
8469 1.1 mrg
8470 1.1 mrg # Check whether --with-XawPlus or --without-XawPlus was given.
8471 1.1 mrg if test "${with_XawPlus+set}" = set; then
8472 1.1 mrg withval="$with_XawPlus"
8473 1.1 mrg
8474 1.1 mrg fi;
8475 1.1 mrg if test "$withval" = yes ; then
8476 1.1 mrg cf_x_athena=XawPlus
8477 1.1 mrg echo "$as_me:8477: result: yes" >&5
8478 1.1 mrg echo "${ECHO_T}yes" >&6
8479 1.1 mrg else
8480 1.1 mrg echo "$as_me:8480: result: no" >&5
8481 1.1 mrg echo "${ECHO_T}no" >&6
8482 1.1 mrg fi
8483 1.1 mrg
8484 1.1 mrg echo "$as_me:8484: checking for XextCreateExtension in -lXext" >&5
8485 1.1 mrg echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
8486 1.1 mrg if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
8487 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8488 1.1 mrg else
8489 1.1 mrg ac_check_lib_save_LIBS=$LIBS
8490 1.1 mrg LIBS="-lXext $LIBS"
8491 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8492 1.1 mrg #line 8492 "configure"
8493 1.1 mrg #include "confdefs.h"
8494 1.1 mrg
8495 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8496 1.1 mrg #ifdef __cplusplus
8497 1.1 mrg extern "C"
8498 1.1 mrg #endif
8499 1.1 mrg /* We use char because int might match the return type of a gcc2
8500 1.1 mrg builtin and then its argument prototype would still apply. */
8501 1.1 mrg char XextCreateExtension ();
8502 1.1 mrg int
8503 1.1 mrg main ()
8504 1.1 mrg {
8505 1.1 mrg XextCreateExtension ();
8506 1.1 mrg ;
8507 1.1 mrg return 0;
8508 1.1 mrg }
8509 1.1 mrg _ACEOF
8510 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8511 1.1 mrg if { (eval echo "$as_me:8511: \"$ac_link\"") >&5
8512 1.1 mrg (eval $ac_link) 2>&5
8513 1.1 mrg ac_status=$?
8514 1.1 mrg echo "$as_me:8514: \$? = $ac_status" >&5
8515 1.1 mrg (exit $ac_status); } &&
8516 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8517 1.1 mrg { (eval echo "$as_me:8517: \"$ac_try\"") >&5
8518 1.1 mrg (eval $ac_try) 2>&5
8519 1.1 mrg ac_status=$?
8520 1.1 mrg echo "$as_me:8520: \$? = $ac_status" >&5
8521 1.1 mrg (exit $ac_status); }; }; then
8522 1.1 mrg ac_cv_lib_Xext_XextCreateExtension=yes
8523 1.1 mrg else
8524 1.1 mrg echo "$as_me: failed program was:" >&5
8525 1.1 mrg cat conftest.$ac_ext >&5
8526 1.1 mrg ac_cv_lib_Xext_XextCreateExtension=no
8527 1.1 mrg fi
8528 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8529 1.1 mrg LIBS=$ac_check_lib_save_LIBS
8530 1.1 mrg fi
8531 1.1 mrg echo "$as_me:8531: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
8532 1.1 mrg echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
8533 1.1 mrg if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
8534 1.1 mrg LIBS="-lXext $LIBS"
8535 1.1 mrg fi
8536 1.1 mrg
8537 1.1 mrg cf_x_athena_lib=""
8538 1.1 mrg
8539 1.1 mrg cf_x_athena_root=$cf_x_athena
8540 1.1 mrg cf_x_athena_include=""
8541 1.1 mrg
8542 1.1 mrg for cf_path in default \
8543 1.1 mrg /usr/contrib/X11R6 \
8544 1.1 mrg /usr/contrib/X11R5 \
8545 1.1 mrg /usr/lib/X11R5 \
8546 1.1 mrg /usr/local
8547 1.1 mrg do
8548 1.1 mrg if test -z "$cf_x_athena_include" ; then
8549 1.1 mrg cf_save="$CPPFLAGS"
8550 1.1 mrg cf_test=X11/$cf_x_athena_root/SimpleMenu.h
8551 1.1 mrg if test $cf_path != default ; then
8552 1.1 mrg CPPFLAGS="-I$cf_path/include $cf_save"
8553 1.1 mrg echo "$as_me:8553: checking for $cf_test in $cf_path" >&5
8554 1.1 mrg echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
8555 1.1 mrg else
8556 1.1 mrg echo "$as_me:8556: checking for $cf_test" >&5
8557 1.1 mrg echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
8558 1.1 mrg fi
8559 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8560 1.1 mrg #line 8560 "configure"
8561 1.1 mrg #include "confdefs.h"
8562 1.1 mrg
8563 1.1 mrg #include <X11/Intrinsic.h>
8564 1.1 mrg #include <$cf_test>
8565 1.1 mrg int
8566 1.1 mrg main ()
8567 1.1 mrg {
8568 1.1 mrg
8569 1.1 mrg ;
8570 1.1 mrg return 0;
8571 1.1 mrg }
8572 1.1 mrg _ACEOF
8573 1.1 mrg rm -f conftest.$ac_objext
8574 1.1 mrg if { (eval echo "$as_me:8574: \"$ac_compile\"") >&5
8575 1.1 mrg (eval $ac_compile) 2>&5
8576 1.1 mrg ac_status=$?
8577 1.1 mrg echo "$as_me:8577: \$? = $ac_status" >&5
8578 1.1 mrg (exit $ac_status); } &&
8579 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8580 1.1 mrg { (eval echo "$as_me:8580: \"$ac_try\"") >&5
8581 1.1 mrg (eval $ac_try) 2>&5
8582 1.1 mrg ac_status=$?
8583 1.1 mrg echo "$as_me:8583: \$? = $ac_status" >&5
8584 1.1 mrg (exit $ac_status); }; }; then
8585 1.1 mrg cf_result=yes
8586 1.1 mrg else
8587 1.1 mrg echo "$as_me: failed program was:" >&5
8588 1.1 mrg cat conftest.$ac_ext >&5
8589 1.1 mrg cf_result=no
8590 1.1 mrg fi
8591 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8592 1.1 mrg echo "$as_me:8592: result: $cf_result" >&5
8593 1.1 mrg echo "${ECHO_T}$cf_result" >&6
8594 1.1 mrg if test "$cf_result" = yes ; then
8595 1.1 mrg cf_x_athena_include=$cf_path
8596 1.1 mrg break
8597 1.1 mrg else
8598 1.1 mrg CPPFLAGS="$cf_save"
8599 1.1 mrg fi
8600 1.1 mrg fi
8601 1.1 mrg done
8602 1.1 mrg
8603 1.1 mrg if test -z "$cf_x_athena_include" ; then
8604 1.1 mrg { echo "$as_me:8604: WARNING: Unable to successfully find Athena header files with test program" >&5
8605 1.1 mrg echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
8606 1.1 mrg elif test "$cf_x_athena_include" != default ; then
8607 1.1 mrg CPPFLAGS="$CPPFLAGS -I$cf_x_athena_include"
8608 1.1 mrg fi
8609 1.1 mrg
8610 1.1 mrg cf_x_athena_root=$cf_x_athena
8611 1.1 mrg cf_x_athena_lib=""
8612 1.1 mrg
8613 1.1 mrg for cf_path in default \
8614 1.1 mrg /usr/contrib/X11R6 \
8615 1.1 mrg /usr/contrib/X11R5 \
8616 1.1 mrg /usr/lib/X11R5 \
8617 1.1 mrg /usr/local
8618 1.1 mrg do
8619 1.1 mrg for cf_lib in \
8620 1.1 mrg "-l$cf_x_athena_root -lXmu" \
8621 1.1 mrg "-l$cf_x_athena_root -lXpm -lXmu" \
8622 1.1 mrg "-l${cf_x_athena_root}_s -lXmu_s"
8623 1.1 mrg do
8624 1.1 mrg if test -z "$cf_x_athena_lib" ; then
8625 1.1 mrg cf_save="$LIBS"
8626 1.1 mrg cf_test=XawSimpleMenuAddGlobalActions
8627 1.1 mrg if test $cf_path != default ; then
8628 1.1 mrg LIBS="-L$cf_path/lib $cf_lib $LIBS"
8629 1.1 mrg echo "$as_me:8629: checking for $cf_lib in $cf_path" >&5
8630 1.1 mrg echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6
8631 1.1 mrg else
8632 1.1 mrg LIBS="$cf_lib $LIBS"
8633 1.1 mrg echo "$as_me:8633: checking for $cf_test in $cf_lib" >&5
8634 1.1 mrg echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6
8635 1.1 mrg fi
8636 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8637 1.1 mrg #line 8637 "configure"
8638 1.1 mrg #include "confdefs.h"
8639 1.1 mrg
8640 1.1 mrg int
8641 1.1 mrg main ()
8642 1.1 mrg {
8643 1.1 mrg $cf_test()
8644 1.1 mrg ;
8645 1.1 mrg return 0;
8646 1.1 mrg }
8647 1.1 mrg _ACEOF
8648 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8649 1.1 mrg if { (eval echo "$as_me:8649: \"$ac_link\"") >&5
8650 1.1 mrg (eval $ac_link) 2>&5
8651 1.1 mrg ac_status=$?
8652 1.1 mrg echo "$as_me:8652: \$? = $ac_status" >&5
8653 1.1 mrg (exit $ac_status); } &&
8654 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8655 1.1 mrg { (eval echo "$as_me:8655: \"$ac_try\"") >&5
8656 1.1 mrg (eval $ac_try) 2>&5
8657 1.1 mrg ac_status=$?
8658 1.1 mrg echo "$as_me:8658: \$? = $ac_status" >&5
8659 1.1 mrg (exit $ac_status); }; }; then
8660 1.1 mrg cf_result=yes
8661 1.1 mrg else
8662 1.1 mrg echo "$as_me: failed program was:" >&5
8663 1.1 mrg cat conftest.$ac_ext >&5
8664 1.1 mrg cf_result=no
8665 1.1 mrg fi
8666 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8667 1.1 mrg echo "$as_me:8667: result: $cf_result" >&5
8668 1.1 mrg echo "${ECHO_T}$cf_result" >&6
8669 1.1 mrg if test "$cf_result" = yes ; then
8670 1.1 mrg cf_x_athena_lib="$cf_lib"
8671 1.1 mrg break
8672 1.1 mrg fi
8673 1.1 mrg LIBS="$cf_save"
8674 1.1 mrg fi
8675 1.1 mrg done
8676 1.1 mrg done
8677 1.1 mrg
8678 1.1 mrg if test -z "$cf_x_athena_lib" ; then
8679 1.1 mrg { { echo "$as_me:8679: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
8680 1.1 mrg echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
8681 1.1 mrg { (exit 1); exit 1; }; }
8682 1.1 mrg fi
8683 1.1 mrg
8684 1.1 mrg cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8685 1.1 mrg
8686 1.1 mrg cat >>confdefs.h <<EOF
8687 1.1 mrg #define $cf_x_athena_LIBS 1
8688 1.1 mrg EOF
8689 1.1 mrg
8690 1.1 mrg for ac_header in X11/Xpoll.h
8691 1.1 mrg do
8692 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 1.1 mrg echo "$as_me:8693: checking for $ac_header" >&5
8694 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8695 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
8696 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8697 1.1 mrg else
8698 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8699 1.1 mrg #line 8699 "configure"
8700 1.1 mrg #include "confdefs.h"
8701 1.1 mrg #include <$ac_header>
8702 1.1 mrg _ACEOF
8703 1.1 mrg if { (eval echo "$as_me:8703: \"$ac_cpp conftest.$ac_ext\"") >&5
8704 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8705 1.1 mrg ac_status=$?
8706 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
8707 1.1 mrg rm -f conftest.er1
8708 1.1 mrg cat conftest.err >&5
8709 1.1 mrg echo "$as_me:8709: \$? = $ac_status" >&5
8710 1.1 mrg (exit $ac_status); } >/dev/null; then
8711 1.1 mrg if test -s conftest.err; then
8712 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
8713 1.1 mrg else
8714 1.1 mrg ac_cpp_err=
8715 1.1 mrg fi
8716 1.1 mrg else
8717 1.1 mrg ac_cpp_err=yes
8718 1.1 mrg fi
8719 1.1 mrg if test -z "$ac_cpp_err"; then
8720 1.1 mrg eval "$as_ac_Header=yes"
8721 1.1 mrg else
8722 1.1 mrg echo "$as_me: failed program was:" >&5
8723 1.1 mrg cat conftest.$ac_ext >&5
8724 1.1 mrg eval "$as_ac_Header=no"
8725 1.1 mrg fi
8726 1.1 mrg rm -f conftest.err conftest.$ac_ext
8727 1.1 mrg fi
8728 1.1 mrg echo "$as_me:8728: result: `eval echo '${'$as_ac_Header'}'`" >&5
8729 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8730 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
8731 1.1 mrg cat >>confdefs.h <<EOF
8732 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8733 1.1 mrg EOF
8734 1.1 mrg
8735 1.1 mrg fi
8736 1.1 mrg done
8737 1.1 mrg
8738 1.1 mrg echo "$as_me:8738: checking for declaration of fd_set" >&5
8739 1.1 mrg echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
8740 1.1 mrg if test "${cf_cv_type_fd_set+set}" = set; then
8741 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8742 1.1 mrg else
8743 1.1 mrg
8744 1.1 mrg echo "${as_me-configure}:8744: testing sys/types alone ..." 1>&5
8745 1.1 mrg
8746 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8747 1.1 mrg #line 8747 "configure"
8748 1.1 mrg #include "confdefs.h"
8749 1.1 mrg
8750 1.1 mrg #include <sys/types.h>
8751 1.1 mrg int
8752 1.1 mrg main ()
8753 1.1 mrg {
8754 1.1 mrg fd_set x
8755 1.1 mrg ;
8756 1.1 mrg return 0;
8757 1.1 mrg }
8758 1.1 mrg _ACEOF
8759 1.1 mrg rm -f conftest.$ac_objext
8760 1.1 mrg if { (eval echo "$as_me:8760: \"$ac_compile\"") >&5
8761 1.1 mrg (eval $ac_compile) 2>&5
8762 1.1 mrg ac_status=$?
8763 1.1 mrg echo "$as_me:8763: \$? = $ac_status" >&5
8764 1.1 mrg (exit $ac_status); } &&
8765 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8766 1.1 mrg { (eval echo "$as_me:8766: \"$ac_try\"") >&5
8767 1.1 mrg (eval $ac_try) 2>&5
8768 1.1 mrg ac_status=$?
8769 1.1 mrg echo "$as_me:8769: \$? = $ac_status" >&5
8770 1.1 mrg (exit $ac_status); }; }; then
8771 1.1 mrg cf_cv_type_fd_set=sys/types.h
8772 1.1 mrg else
8773 1.1 mrg echo "$as_me: failed program was:" >&5
8774 1.1 mrg cat conftest.$ac_ext >&5
8775 1.1 mrg
8776 1.1 mrg echo "${as_me-configure}:8776: testing X11/Xpoll.h ..." 1>&5
8777 1.1 mrg
8778 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8779 1.1 mrg #line 8779 "configure"
8780 1.1 mrg #include "confdefs.h"
8781 1.1 mrg
8782 1.1 mrg #ifdef HAVE_X11_XPOLL_H
8783 1.1 mrg #include <X11/Xpoll.h>
8784 1.1 mrg #endif
8785 1.1 mrg int
8786 1.1 mrg main ()
8787 1.1 mrg {
8788 1.1 mrg fd_set x
8789 1.1 mrg ;
8790 1.1 mrg return 0;
8791 1.1 mrg }
8792 1.1 mrg _ACEOF
8793 1.1 mrg rm -f conftest.$ac_objext
8794 1.1 mrg if { (eval echo "$as_me:8794: \"$ac_compile\"") >&5
8795 1.1 mrg (eval $ac_compile) 2>&5
8796 1.1 mrg ac_status=$?
8797 1.1 mrg echo "$as_me:8797: \$? = $ac_status" >&5
8798 1.1 mrg (exit $ac_status); } &&
8799 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8800 1.1 mrg { (eval echo "$as_me:8800: \"$ac_try\"") >&5
8801 1.1 mrg (eval $ac_try) 2>&5
8802 1.1 mrg ac_status=$?
8803 1.1 mrg echo "$as_me:8803: \$? = $ac_status" >&5
8804 1.1 mrg (exit $ac_status); }; }; then
8805 1.1 mrg cf_cv_type_fd_set=X11/Xpoll.h
8806 1.1 mrg else
8807 1.1 mrg echo "$as_me: failed program was:" >&5
8808 1.1 mrg cat conftest.$ac_ext >&5
8809 1.1 mrg
8810 1.1 mrg echo "${as_me-configure}:8810: testing sys/select.h ..." 1>&5
8811 1.1 mrg
8812 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8813 1.1 mrg #line 8813 "configure"
8814 1.1 mrg #include "confdefs.h"
8815 1.1 mrg
8816 1.1 mrg #include <sys/types.h>
8817 1.1 mrg #include <sys/select.h>
8818 1.1 mrg int
8819 1.1 mrg main ()
8820 1.1 mrg {
8821 1.1 mrg fd_set x
8822 1.1 mrg ;
8823 1.1 mrg return 0;
8824 1.1 mrg }
8825 1.1 mrg _ACEOF
8826 1.1 mrg rm -f conftest.$ac_objext
8827 1.1 mrg if { (eval echo "$as_me:8827: \"$ac_compile\"") >&5
8828 1.1 mrg (eval $ac_compile) 2>&5
8829 1.1 mrg ac_status=$?
8830 1.1 mrg echo "$as_me:8830: \$? = $ac_status" >&5
8831 1.1 mrg (exit $ac_status); } &&
8832 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8833 1.1 mrg { (eval echo "$as_me:8833: \"$ac_try\"") >&5
8834 1.1 mrg (eval $ac_try) 2>&5
8835 1.1 mrg ac_status=$?
8836 1.1 mrg echo "$as_me:8836: \$? = $ac_status" >&5
8837 1.1 mrg (exit $ac_status); }; }; then
8838 1.1 mrg cf_cv_type_fd_set=sys/select.h
8839 1.1 mrg else
8840 1.1 mrg echo "$as_me: failed program was:" >&5
8841 1.1 mrg cat conftest.$ac_ext >&5
8842 1.1 mrg cf_cv_type_fd_set=unknown
8843 1.1 mrg fi
8844 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8845 1.1 mrg fi
8846 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8847 1.1 mrg fi
8848 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8849 1.1 mrg fi
8850 1.1 mrg echo "$as_me:8850: result: $cf_cv_type_fd_set" >&5
8851 1.1 mrg echo "${ECHO_T}$cf_cv_type_fd_set" >&6
8852 1.1 mrg if test $cf_cv_type_fd_set = sys/select.h ; then
8853 1.1 mrg cat >>confdefs.h <<\EOF
8854 1.1 mrg #define USE_SYS_SELECT_H 1
8855 1.1 mrg EOF
8856 1.1 mrg
8857 1.1 mrg fi
8858 1.1 mrg
8859 1.1 mrg echo "$as_me:8859: checking for declaration of fd_mask" >&5
8860 1.1 mrg echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
8861 1.1 mrg if test "${cf_cv_type_fd_mask+set}" = set; then
8862 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8863 1.1 mrg else
8864 1.1 mrg
8865 1.1 mrg if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
8866 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8867 1.1 mrg #line 8867 "configure"
8868 1.1 mrg #include "confdefs.h"
8869 1.1 mrg
8870 1.1 mrg #include <X11/Xpoll.h>
8871 1.1 mrg int
8872 1.1 mrg main ()
8873 1.1 mrg {
8874 1.1 mrg fd_mask x
8875 1.1 mrg ;
8876 1.1 mrg return 0;
8877 1.1 mrg }
8878 1.1 mrg _ACEOF
8879 1.1 mrg rm -f conftest.$ac_objext
8880 1.1 mrg if { (eval echo "$as_me:8880: \"$ac_compile\"") >&5
8881 1.1 mrg (eval $ac_compile) 2>&5
8882 1.1 mrg ac_status=$?
8883 1.1 mrg echo "$as_me:8883: \$? = $ac_status" >&5
8884 1.1 mrg (exit $ac_status); } &&
8885 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8886 1.1 mrg { (eval echo "$as_me:8886: \"$ac_try\"") >&5
8887 1.1 mrg (eval $ac_try) 2>&5
8888 1.1 mrg ac_status=$?
8889 1.1 mrg echo "$as_me:8889: \$? = $ac_status" >&5
8890 1.1 mrg (exit $ac_status); }; }; then
8891 1.1 mrg :
8892 1.1 mrg else
8893 1.1 mrg echo "$as_me: failed program was:" >&5
8894 1.1 mrg cat conftest.$ac_ext >&5
8895 1.1 mrg
8896 1.1 mrg echo "${as_me-configure}:8896: testing if we must define CSRG_BASED ..." 1>&5
8897 1.1 mrg
8898 1.1 mrg # Xosdefs.h on Mac OS X may not define this (but it should).
8899 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8900 1.1 mrg #line 8900 "configure"
8901 1.1 mrg #include "confdefs.h"
8902 1.1 mrg
8903 1.1 mrg #define CSRG_BASED
8904 1.1 mrg #include <X11/Xpoll.h>
8905 1.1 mrg int
8906 1.1 mrg main ()
8907 1.1 mrg {
8908 1.1 mrg fd_mask x
8909 1.1 mrg ;
8910 1.1 mrg return 0;
8911 1.1 mrg }
8912 1.1 mrg _ACEOF
8913 1.1 mrg rm -f conftest.$ac_objext
8914 1.1 mrg if { (eval echo "$as_me:8914: \"$ac_compile\"") >&5
8915 1.1 mrg (eval $ac_compile) 2>&5
8916 1.1 mrg ac_status=$?
8917 1.1 mrg echo "$as_me:8917: \$? = $ac_status" >&5
8918 1.1 mrg (exit $ac_status); } &&
8919 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8920 1.1 mrg { (eval echo "$as_me:8920: \"$ac_try\"") >&5
8921 1.1 mrg (eval $ac_try) 2>&5
8922 1.1 mrg ac_status=$?
8923 1.1 mrg echo "$as_me:8923: \$? = $ac_status" >&5
8924 1.1 mrg (exit $ac_status); }; }; then
8925 1.1 mrg cf_cv_type_fd_mask=CSRG_BASED
8926 1.1 mrg else
8927 1.1 mrg echo "$as_me: failed program was:" >&5
8928 1.1 mrg cat conftest.$ac_ext >&5
8929 1.1 mrg fi
8930 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8931 1.1 mrg fi
8932 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8933 1.1 mrg else
8934 1.1 mrg cf_cv_type_fd_mask=$cf_cv_type_fd_set
8935 1.1 mrg fi
8936 1.1 mrg
8937 1.1 mrg fi
8938 1.1 mrg echo "$as_me:8938: result: $cf_cv_type_fd_mask" >&5
8939 1.1 mrg echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
8940 1.1 mrg if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
8941 1.1 mrg cat >>confdefs.h <<\EOF
8942 1.1 mrg #define CSRG_BASED 1
8943 1.1 mrg EOF
8944 1.1 mrg
8945 1.1 mrg fi
8946 1.1 mrg
8947 1.1 mrg echo "$as_me:8947: checking for IRIX 6.5 baud-rate redefinitions" >&5
8948 1.1 mrg echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
8949 1.1 mrg if test "${cf_cv_termio_c_ispeed+set}" = set; then
8950 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8951 1.1 mrg else
8952 1.1 mrg
8953 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8954 1.1 mrg #line 8954 "configure"
8955 1.1 mrg #include "confdefs.h"
8956 1.1 mrg
8957 1.1 mrg #include <sys/types.h>
8958 1.1 mrg #include <sys/termio.h>
8959 1.1 mrg int
8960 1.1 mrg main ()
8961 1.1 mrg {
8962 1.1 mrg
8963 1.1 mrg struct termio foo;
8964 1.1 mrg foo.c_ispeed = B38400;
8965 1.1 mrg foo.c_ospeed = B9600;
8966 1.1 mrg
8967 1.1 mrg ;
8968 1.1 mrg return 0;
8969 1.1 mrg }
8970 1.1 mrg _ACEOF
8971 1.1 mrg rm -f conftest.$ac_objext
8972 1.1 mrg if { (eval echo "$as_me:8972: \"$ac_compile\"") >&5
8973 1.1 mrg (eval $ac_compile) 2>&5
8974 1.1 mrg ac_status=$?
8975 1.1 mrg echo "$as_me:8975: \$? = $ac_status" >&5
8976 1.1 mrg (exit $ac_status); } &&
8977 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8978 1.1 mrg { (eval echo "$as_me:8978: \"$ac_try\"") >&5
8979 1.1 mrg (eval $ac_try) 2>&5
8980 1.1 mrg ac_status=$?
8981 1.1 mrg echo "$as_me:8981: \$? = $ac_status" >&5
8982 1.1 mrg (exit $ac_status); }; }; then
8983 1.1 mrg cf_cv_termio_c_ispeed=yes
8984 1.1 mrg
8985 1.1 mrg else
8986 1.1 mrg echo "$as_me: failed program was:" >&5
8987 1.1 mrg cat conftest.$ac_ext >&5
8988 1.1 mrg cf_cv_termio_c_ispeed=no
8989 1.1 mrg fi
8990 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8991 1.1 mrg
8992 1.1 mrg fi
8993 1.1 mrg echo "$as_me:8993: result: $cf_cv_termio_c_ispeed" >&5
8994 1.1 mrg echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
8995 1.1 mrg test "$cf_cv_termio_c_ispeed" = yes && cat >>confdefs.h <<\EOF
8996 1.1 mrg #define HAVE_TERMIO_C_ISPEED 1
8997 1.1 mrg EOF
8998 1.1 mrg
8999 1.1 mrg LIBS="$LIBS $X_EXTRA_LIBS"
9000 1.1 mrg
9001 1.1 mrg # Check for openpty() in -lutil if the UNIX98-style pty functions are not
9002 1.1 mrg # available. E.g. for GNU libc 2.0.
9003 1.1 mrg case $host_os in #(vi
9004 1.1 mrg freebsd*|netbsd*) # 2004/8/15 - revisit this if/when grantpt is known to work.
9005 1.1 mrg
9006 1.1 mrg echo "$as_me:9006: checking for openpty in -lutil" >&5
9007 1.1 mrg echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9008 1.1 mrg if test "${ac_cv_lib_util_openpty+set}" = set; then
9009 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9010 1.1 mrg else
9011 1.1 mrg ac_check_lib_save_LIBS=$LIBS
9012 1.1 mrg LIBS="-lutil $LIBS"
9013 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9014 1.1 mrg #line 9014 "configure"
9015 1.1 mrg #include "confdefs.h"
9016 1.1 mrg
9017 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9018 1.1 mrg #ifdef __cplusplus
9019 1.1 mrg extern "C"
9020 1.1 mrg #endif
9021 1.1 mrg /* We use char because int might match the return type of a gcc2
9022 1.1 mrg builtin and then its argument prototype would still apply. */
9023 1.1 mrg char openpty ();
9024 1.1 mrg int
9025 1.1 mrg main ()
9026 1.1 mrg {
9027 1.1 mrg openpty ();
9028 1.1 mrg ;
9029 1.1 mrg return 0;
9030 1.1 mrg }
9031 1.1 mrg _ACEOF
9032 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9033 1.1 mrg if { (eval echo "$as_me:9033: \"$ac_link\"") >&5
9034 1.1 mrg (eval $ac_link) 2>&5
9035 1.1 mrg ac_status=$?
9036 1.1 mrg echo "$as_me:9036: \$? = $ac_status" >&5
9037 1.1 mrg (exit $ac_status); } &&
9038 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9039 1.1 mrg { (eval echo "$as_me:9039: \"$ac_try\"") >&5
9040 1.1 mrg (eval $ac_try) 2>&5
9041 1.1 mrg ac_status=$?
9042 1.1 mrg echo "$as_me:9042: \$? = $ac_status" >&5
9043 1.1 mrg (exit $ac_status); }; }; then
9044 1.1 mrg ac_cv_lib_util_openpty=yes
9045 1.1 mrg else
9046 1.1 mrg echo "$as_me: failed program was:" >&5
9047 1.1 mrg cat conftest.$ac_ext >&5
9048 1.1 mrg ac_cv_lib_util_openpty=no
9049 1.1 mrg fi
9050 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9051 1.1 mrg LIBS=$ac_check_lib_save_LIBS
9052 1.1 mrg fi
9053 1.1 mrg echo "$as_me:9053: result: $ac_cv_lib_util_openpty" >&5
9054 1.1 mrg echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9055 1.1 mrg if test $ac_cv_lib_util_openpty = yes; then
9056 1.1 mrg cat >>confdefs.h <<EOF
9057 1.1 mrg #define HAVE_LIBUTIL 1
9058 1.1 mrg EOF
9059 1.1 mrg
9060 1.1 mrg LIBS="-lutil $LIBS"
9061 1.1 mrg
9062 1.1 mrg fi
9063 1.1 mrg
9064 1.1 mrg ;;
9065 1.1 mrg *)
9066 1.1 mrg
9067 1.1 mrg for ac_func in grantpt
9068 1.1 mrg do
9069 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9070 1.1 mrg echo "$as_me:9070: checking for $ac_func" >&5
9071 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9072 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
9073 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9074 1.1 mrg else
9075 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9076 1.1 mrg #line 9076 "configure"
9077 1.1 mrg #include "confdefs.h"
9078 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
9079 1.1 mrg which can conflict with char $ac_func (); below. */
9080 1.1 mrg #include <assert.h>
9081 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9082 1.1 mrg #ifdef __cplusplus
9083 1.1 mrg extern "C"
9084 1.1 mrg #endif
9085 1.1 mrg /* We use char because int might match the return type of a gcc2
9086 1.1 mrg builtin and then its argument prototype would still apply. */
9087 1.1 mrg char $ac_func ();
9088 1.1 mrg char (*f) ();
9089 1.1 mrg
9090 1.1 mrg int
9091 1.1 mrg main ()
9092 1.1 mrg {
9093 1.1 mrg /* The GNU C library defines this for functions which it implements
9094 1.1 mrg to always fail with ENOSYS. Some functions are actually named
9095 1.1 mrg something starting with __ and the normal name is an alias. */
9096 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9097 1.1 mrg choke me
9098 1.1 mrg #else
9099 1.1 mrg f = $ac_func;
9100 1.1 mrg #endif
9101 1.1 mrg
9102 1.1 mrg ;
9103 1.1 mrg return 0;
9104 1.1 mrg }
9105 1.1 mrg _ACEOF
9106 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9107 1.1 mrg if { (eval echo "$as_me:9107: \"$ac_link\"") >&5
9108 1.1 mrg (eval $ac_link) 2>&5
9109 1.1 mrg ac_status=$?
9110 1.1 mrg echo "$as_me:9110: \$? = $ac_status" >&5
9111 1.1 mrg (exit $ac_status); } &&
9112 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9113 1.1 mrg { (eval echo "$as_me:9113: \"$ac_try\"") >&5
9114 1.1 mrg (eval $ac_try) 2>&5
9115 1.1 mrg ac_status=$?
9116 1.1 mrg echo "$as_me:9116: \$? = $ac_status" >&5
9117 1.1 mrg (exit $ac_status); }; }; then
9118 1.1 mrg eval "$as_ac_var=yes"
9119 1.1 mrg else
9120 1.1 mrg echo "$as_me: failed program was:" >&5
9121 1.1 mrg cat conftest.$ac_ext >&5
9122 1.1 mrg eval "$as_ac_var=no"
9123 1.1 mrg fi
9124 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9125 1.1 mrg fi
9126 1.1 mrg echo "$as_me:9126: result: `eval echo '${'$as_ac_var'}'`" >&5
9127 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9128 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
9129 1.1 mrg cat >>confdefs.h <<EOF
9130 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9131 1.1 mrg EOF
9132 1.1 mrg
9133 1.1 mrg else
9134 1.1 mrg
9135 1.1 mrg echo "$as_me:9135: checking for openpty in -lutil" >&5
9136 1.1 mrg echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9137 1.1 mrg if test "${ac_cv_lib_util_openpty+set}" = set; then
9138 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9139 1.1 mrg else
9140 1.1 mrg ac_check_lib_save_LIBS=$LIBS
9141 1.1 mrg LIBS="-lutil $LIBS"
9142 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9143 1.1 mrg #line 9143 "configure"
9144 1.1 mrg #include "confdefs.h"
9145 1.1 mrg
9146 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9147 1.1 mrg #ifdef __cplusplus
9148 1.1 mrg extern "C"
9149 1.1 mrg #endif
9150 1.1 mrg /* We use char because int might match the return type of a gcc2
9151 1.1 mrg builtin and then its argument prototype would still apply. */
9152 1.1 mrg char openpty ();
9153 1.1 mrg int
9154 1.1 mrg main ()
9155 1.1 mrg {
9156 1.1 mrg openpty ();
9157 1.1 mrg ;
9158 1.1 mrg return 0;
9159 1.1 mrg }
9160 1.1 mrg _ACEOF
9161 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9162 1.1 mrg if { (eval echo "$as_me:9162: \"$ac_link\"") >&5
9163 1.1 mrg (eval $ac_link) 2>&5
9164 1.1 mrg ac_status=$?
9165 1.1 mrg echo "$as_me:9165: \$? = $ac_status" >&5
9166 1.1 mrg (exit $ac_status); } &&
9167 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9168 1.1 mrg { (eval echo "$as_me:9168: \"$ac_try\"") >&5
9169 1.1 mrg (eval $ac_try) 2>&5
9170 1.1 mrg ac_status=$?
9171 1.1 mrg echo "$as_me:9171: \$? = $ac_status" >&5
9172 1.1 mrg (exit $ac_status); }; }; then
9173 1.1 mrg ac_cv_lib_util_openpty=yes
9174 1.1 mrg else
9175 1.1 mrg echo "$as_me: failed program was:" >&5
9176 1.1 mrg cat conftest.$ac_ext >&5
9177 1.1 mrg ac_cv_lib_util_openpty=no
9178 1.1 mrg fi
9179 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9180 1.1 mrg LIBS=$ac_check_lib_save_LIBS
9181 1.1 mrg fi
9182 1.1 mrg echo "$as_me:9182: result: $ac_cv_lib_util_openpty" >&5
9183 1.1 mrg echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9184 1.1 mrg if test $ac_cv_lib_util_openpty = yes; then
9185 1.1 mrg cat >>confdefs.h <<EOF
9186 1.1 mrg #define HAVE_LIBUTIL 1
9187 1.1 mrg EOF
9188 1.1 mrg
9189 1.1 mrg LIBS="-lutil $LIBS"
9190 1.1 mrg
9191 1.1 mrg fi
9192 1.1 mrg
9193 1.1 mrg fi
9194 1.1 mrg done
9195 1.1 mrg
9196 1.1 mrg ;;
9197 1.1 mrg esac
9198 1.1 mrg
9199 1.1 mrg echo "$as_me:9199: checking for XKB Bell extension" >&5
9200 1.1 mrg echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
9201 1.1 mrg if test "${cf_cv_xkb_bell_ext+set}" = set; then
9202 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9203 1.1 mrg else
9204 1.1 mrg
9205 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9206 1.1 mrg #line 9206 "configure"
9207 1.1 mrg #include "confdefs.h"
9208 1.1 mrg
9209 1.1 mrg #include <X11/XKBlib.h> /* has the prototype */
9210 1.1 mrg #include <X11/extensions/XKBbells.h> /* has the XkbBI_xxx definitions */
9211 1.1 mrg
9212 1.1 mrg int
9213 1.1 mrg main ()
9214 1.1 mrg {
9215 1.1 mrg
9216 1.1 mrg int x = XkbBI_Info
9217 1.1 mrg |XkbBI_MinorError
9218 1.1 mrg |XkbBI_MajorError
9219 1.1 mrg |XkbBI_TerminalBell
9220 1.1 mrg |XkbBI_MarginBell;
9221 1.1 mrg
9222 1.1 mrg ;
9223 1.1 mrg return 0;
9224 1.1 mrg }
9225 1.1 mrg _ACEOF
9226 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9227 1.1 mrg if { (eval echo "$as_me:9227: \"$ac_link\"") >&5
9228 1.1 mrg (eval $ac_link) 2>&5
9229 1.1 mrg ac_status=$?
9230 1.1 mrg echo "$as_me:9230: \$? = $ac_status" >&5
9231 1.1 mrg (exit $ac_status); } &&
9232 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9233 1.1 mrg { (eval echo "$as_me:9233: \"$ac_try\"") >&5
9234 1.1 mrg (eval $ac_try) 2>&5
9235 1.1 mrg ac_status=$?
9236 1.1 mrg echo "$as_me:9236: \$? = $ac_status" >&5
9237 1.1 mrg (exit $ac_status); }; }; then
9238 1.1 mrg cf_cv_xkb_bell_ext=yes
9239 1.1 mrg else
9240 1.1 mrg echo "$as_me: failed program was:" >&5
9241 1.1 mrg cat conftest.$ac_ext >&5
9242 1.1 mrg cf_cv_xkb_bell_ext=no
9243 1.1 mrg fi
9244 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9245 1.1 mrg
9246 1.1 mrg fi
9247 1.1 mrg echo "$as_me:9247: result: $cf_cv_xkb_bell_ext" >&5
9248 1.1 mrg echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
9249 1.1 mrg
9250 1.1 mrg test "$cf_cv_xkb_bell_ext" = yes && cat >>confdefs.h <<\EOF
9251 1.1 mrg #define HAVE_XKB_BELL_EXT 1
9252 1.1 mrg EOF
9253 1.1 mrg
9254 1.1 mrg for ac_func in Xutf8LookupString
9255 1.1 mrg do
9256 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9257 1.1 mrg echo "$as_me:9257: checking for $ac_func" >&5
9258 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9259 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
9260 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9261 1.1 mrg else
9262 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9263 1.1 mrg #line 9263 "configure"
9264 1.1 mrg #include "confdefs.h"
9265 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
9266 1.1 mrg which can conflict with char $ac_func (); below. */
9267 1.1 mrg #include <assert.h>
9268 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9269 1.1 mrg #ifdef __cplusplus
9270 1.1 mrg extern "C"
9271 1.1 mrg #endif
9272 1.1 mrg /* We use char because int might match the return type of a gcc2
9273 1.1 mrg builtin and then its argument prototype would still apply. */
9274 1.1 mrg char $ac_func ();
9275 1.1 mrg char (*f) ();
9276 1.1 mrg
9277 1.1 mrg int
9278 1.1 mrg main ()
9279 1.1 mrg {
9280 1.1 mrg /* The GNU C library defines this for functions which it implements
9281 1.1 mrg to always fail with ENOSYS. Some functions are actually named
9282 1.1 mrg something starting with __ and the normal name is an alias. */
9283 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9284 1.1 mrg choke me
9285 1.1 mrg #else
9286 1.1 mrg f = $ac_func;
9287 1.1 mrg #endif
9288 1.1 mrg
9289 1.1 mrg ;
9290 1.1 mrg return 0;
9291 1.1 mrg }
9292 1.1 mrg _ACEOF
9293 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9294 1.1 mrg if { (eval echo "$as_me:9294: \"$ac_link\"") >&5
9295 1.1 mrg (eval $ac_link) 2>&5
9296 1.1 mrg ac_status=$?
9297 1.1 mrg echo "$as_me:9297: \$? = $ac_status" >&5
9298 1.1 mrg (exit $ac_status); } &&
9299 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9300 1.1 mrg { (eval echo "$as_me:9300: \"$ac_try\"") >&5
9301 1.1 mrg (eval $ac_try) 2>&5
9302 1.1 mrg ac_status=$?
9303 1.1 mrg echo "$as_me:9303: \$? = $ac_status" >&5
9304 1.1 mrg (exit $ac_status); }; }; then
9305 1.1 mrg eval "$as_ac_var=yes"
9306 1.1 mrg else
9307 1.1 mrg echo "$as_me: failed program was:" >&5
9308 1.1 mrg cat conftest.$ac_ext >&5
9309 1.1 mrg eval "$as_ac_var=no"
9310 1.1 mrg fi
9311 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9312 1.1 mrg fi
9313 1.1 mrg echo "$as_me:9313: result: `eval echo '${'$as_ac_var'}'`" >&5
9314 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9315 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
9316 1.1 mrg cat >>confdefs.h <<EOF
9317 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9318 1.1 mrg EOF
9319 1.1 mrg
9320 1.1 mrg else
9321 1.1 mrg
9322 1.1 mrg EXTRAHDRS="$EXTRAHDRS xutf8.h"
9323 1.1 mrg EXTRASRCS="$EXTRASRCS xutf8.c"
9324 1.1 mrg EXTRAOBJS="$EXTRAOBJS xutf8.o"
9325 1.1 mrg
9326 1.1 mrg fi
9327 1.1 mrg done
9328 1.1 mrg
9329 1.1 mrg echo "$as_me:9329: checking if you want narrow prototypes for X libraries" >&5
9330 1.1 mrg echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
9331 1.1 mrg
9332 1.1 mrg case `$ac_config_guess` in #(vi
9333 1.1 mrg *cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi
9334 1.1 mrg cf_default_narrowproto=yes
9335 1.1 mrg ;;
9336 1.1 mrg *)
9337 1.1 mrg cf_default_narrowproto=no
9338 1.1 mrg ;;
9339 1.1 mrg esac
9340 1.1 mrg
9341 1.1 mrg # Check whether --enable-narrowproto or --disable-narrowproto was given.
9342 1.1 mrg if test "${enable_narrowproto+set}" = set; then
9343 1.1 mrg enableval="$enable_narrowproto"
9344 1.1 mrg test "$enableval" != no && enableval=yes
9345 1.1 mrg if test "$enableval" != "$cf_default_narrowproto" ; then
9346 1.1 mrg enable_narrowproto=$enableval
9347 1.1 mrg else
9348 1.1 mrg enable_narrowproto=$cf_default_narrowproto
9349 1.1 mrg fi
9350 1.1 mrg else
9351 1.1 mrg enableval=$cf_default_narrowproto
9352 1.1 mrg enable_narrowproto=$cf_default_narrowproto
9353 1.1 mrg
9354 1.1 mrg fi;
9355 1.1 mrg echo "$as_me:9355: result: $enable_narrowproto" >&5
9356 1.1 mrg echo "${ECHO_T}$enable_narrowproto" >&6
9357 1.1 mrg
9358 1.1 mrg echo "$as_me:9358: checking if we should use imake to help" >&5
9359 1.1 mrg echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
9360 1.1 mrg
9361 1.1 mrg # Check whether --enable-imake or --disable-imake was given.
9362 1.1 mrg if test "${enable_imake+set}" = set; then
9363 1.1 mrg enableval="$enable_imake"
9364 1.1 mrg test "$enableval" != no && enableval=yes
9365 1.1 mrg if test "$enableval" != "yes" ; then
9366 1.1 mrg enable_imake=no
9367 1.1 mrg else
9368 1.1 mrg enable_imake=yes
9369 1.1 mrg fi
9370 1.1 mrg else
9371 1.1 mrg enableval=yes
9372 1.1 mrg enable_imake=yes
9373 1.1 mrg
9374 1.1 mrg fi;
9375 1.1 mrg echo "$as_me:9375: result: $enable_imake" >&5
9376 1.1 mrg echo "${ECHO_T}$enable_imake" >&6
9377 1.1 mrg
9378 1.1 mrg if test "$enable_imake" = yes ; then
9379 1.1 mrg
9380 1.1 mrg for ac_prog in xmkmf imake
9381 1.1 mrg do
9382 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
9383 1.1 mrg set dummy $ac_prog; ac_word=$2
9384 1.1 mrg echo "$as_me:9384: checking for $ac_word" >&5
9385 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9386 1.1 mrg if test "${ac_cv_path_IMAKE+set}" = set; then
9387 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9388 1.1 mrg else
9389 1.1 mrg case $IMAKE in
9390 1.1 mrg [\\/]* | ?:[\\/]*)
9391 1.1 mrg ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
9392 1.1 mrg ;;
9393 1.1 mrg *)
9394 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
9395 1.1 mrg ac_dummy="$PATH"
9396 1.1 mrg for ac_dir in $ac_dummy; do
9397 1.1 mrg IFS=$ac_save_IFS
9398 1.1 mrg test -z "$ac_dir" && ac_dir=.
9399 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
9400 1.1 mrg ac_cv_path_IMAKE="$ac_dir/$ac_word"
9401 1.1 mrg echo "$as_me:9401: found $ac_dir/$ac_word" >&5
9402 1.1 mrg break
9403 1.1 mrg fi
9404 1.1 mrg done
9405 1.1 mrg
9406 1.1 mrg ;;
9407 1.1 mrg esac
9408 1.1 mrg fi
9409 1.1 mrg IMAKE=$ac_cv_path_IMAKE
9410 1.1 mrg
9411 1.1 mrg if test -n "$IMAKE"; then
9412 1.1 mrg echo "$as_me:9412: result: $IMAKE" >&5
9413 1.1 mrg echo "${ECHO_T}$IMAKE" >&6
9414 1.1 mrg else
9415 1.1 mrg echo "$as_me:9415: result: no" >&5
9416 1.1 mrg echo "${ECHO_T}no" >&6
9417 1.1 mrg fi
9418 1.1 mrg
9419 1.1 mrg test -n "$IMAKE" && break
9420 1.1 mrg done
9421 1.1 mrg
9422 1.1 mrg if test -n "$IMAKE" ; then
9423 1.1 mrg
9424 1.1 mrg case $IMAKE in # (vi
9425 1.1 mrg */imake)
9426 1.1 mrg cf_imake_opts="-DUseInstalled=YES" # (vi
9427 1.1 mrg ;;
9428 1.1 mrg */util/xmkmf)
9429 1.1 mrg # A single parameter tells xmkmf where the config-files are:
9430 1.1 mrg cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi
9431 1.1 mrg ;;
9432 1.1 mrg *)
9433 1.1 mrg cf_imake_opts=
9434 1.1 mrg ;;
9435 1.1 mrg esac
9436 1.1 mrg
9437 1.1 mrg # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
9438 1.1 mrg # config directory.
9439 1.1 mrg if mkdir conftestdir; then
9440 1.1 mrg CDPATH=; export CDPATH
9441 1.1 mrg cf_makefile=`cd $srcdir;pwd`/Imakefile
9442 1.1 mrg cd conftestdir
9443 1.1 mrg
9444 1.1 mrg cat >fix_cflags.sed <<'CF_EOF'
9445 1.1 mrg s/\\//g
9446 1.1 mrg s/[ ][ ]*/ /g
9447 1.1 mrg s/"//g
9448 1.1 mrg :pack
9449 1.1 mrg s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g
9450 1.1 mrg t pack
9451 1.1 mrg s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
9452 1.1 mrg s/^IMAKE[ ]/IMAKE_CFLAGS="/
9453 1.1 mrg s/ / /g
9454 1.1 mrg s/$/"/
9455 1.1 mrg CF_EOF
9456 1.1 mrg
9457 1.1 mrg cat >fix_lflags.sed <<'CF_EOF'
9458 1.1 mrg s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/
9459 1.1 mrg s/$/"/
9460 1.1 mrg CF_EOF
9461 1.1 mrg
9462 1.1 mrg echo >./Imakefile
9463 1.1 mrg test -f $cf_makefile && cat $cf_makefile >>./Imakefile
9464 1.1 mrg
9465 1.1 mrg cat >> ./Imakefile <<'CF_EOF'
9466 1.1 mrg findstddefs:
9467 1.1 mrg @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed
9468 1.1 mrg @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
9469 1.1 mrg CF_EOF
9470 1.1 mrg
9471 1.1 mrg if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
9472 1.1 mrg then
9473 1.1 mrg test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6
9474 1.1 mrg
9475 1.1 mrg echo "${as_me-configure}:9475: testing Using $IMAKE $cf_imake_opts ..." 1>&5
9476 1.1 mrg
9477 1.1 mrg else
9478 1.1 mrg # sometimes imake doesn't have the config path compiled in. Find it.
9479 1.1 mrg cf_config=
9480 1.1 mrg for cf_libpath in $X_LIBS $LIBS ; do
9481 1.1 mrg case $cf_libpath in # (vi
9482 1.1 mrg -L*)
9483 1.1 mrg cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
9484 1.1 mrg cf_libpath=$cf_libpath/X11/config
9485 1.1 mrg if test -d $cf_libpath ; then
9486 1.1 mrg cf_config=$cf_libpath
9487 1.1 mrg break
9488 1.1 mrg fi
9489 1.1 mrg ;;
9490 1.1 mrg esac
9491 1.1 mrg done
9492 1.1 mrg if test -z "$cf_config" ; then
9493 1.1 mrg { echo "$as_me:9493: WARNING: Could not find imake config-directory" >&5
9494 1.1 mrg echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
9495 1.1 mrg else
9496 1.1 mrg cf_imake_opts="$cf_imake_opts -I$cf_config"
9497 1.1 mrg if ( $IMAKE -v $cf_imake_opts 2>&5)
9498 1.1 mrg then
9499 1.1 mrg test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6
9500 1.1 mrg
9501 1.1 mrg echo "${as_me-configure}:9501: testing Using $IMAKE $cf_config ..." 1>&5
9502 1.1 mrg
9503 1.1 mrg else
9504 1.1 mrg { echo "$as_me:9504: WARNING: Cannot run $IMAKE" >&5
9505 1.1 mrg echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
9506 1.1 mrg fi
9507 1.1 mrg fi
9508 1.1 mrg fi
9509 1.1 mrg
9510 1.1 mrg # GNU make sometimes prints "make[1]: Entering...", which
9511 1.1 mrg # would confuse us.
9512 1.1 mrg eval `make findstddefs 2>/dev/null | grep -v make`
9513 1.1 mrg
9514 1.1 mrg cd ..
9515 1.1 mrg rm -rf conftestdir
9516 1.1 mrg
9517 1.1 mrg # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
9518 1.1 mrg # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have
9519 1.1 mrg # modified it to support site.cf, adding a kludge for the /usr/include
9520 1.1 mrg # directory. Try to filter that out, otherwise gcc won't find its
9521 1.1 mrg # headers.
9522 1.1 mrg if test -n "$GCC" ; then
9523 1.1 mrg if test -n "$IMAKE_CFLAGS" ; then
9524 1.1 mrg cf_nostdinc=""
9525 1.1 mrg cf_std_incl=""
9526 1.1 mrg cf_cpp_opts=""
9527 1.1 mrg for cf_opt in $IMAKE_CFLAGS
9528 1.1 mrg do
9529 1.1 mrg case "$cf_opt" in
9530 1.1 mrg -nostdinc) #(vi
9531 1.1 mrg cf_nostdinc="$cf_opt"
9532 1.1 mrg ;;
9533 1.1 mrg -I/usr/include) #(vi
9534 1.1 mrg cf_std_incl="$cf_opt"
9535 1.1 mrg ;;
9536 1.1 mrg *) #(vi
9537 1.1 mrg cf_cpp_opts="$cf_cpp_opts $cf_opt"
9538 1.1 mrg ;;
9539 1.1 mrg esac
9540 1.1 mrg done
9541 1.1 mrg if test -z "$cf_nostdinc" ; then
9542 1.1 mrg IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
9543 1.1 mrg elif test -z "$cf_std_incl" ; then
9544 1.1 mrg IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
9545 1.1 mrg else
9546 1.1 mrg test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
9547 1.1 mrg
9548 1.1 mrg echo "${as_me-configure}:9548: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
9549 1.1 mrg
9550 1.1 mrg IMAKE_CFLAGS="$cf_cpp_opts"
9551 1.1 mrg fi
9552 1.1 mrg fi
9553 1.1 mrg fi
9554 1.1 mrg fi
9555 1.1 mrg
9556 1.1 mrg # Some imake configurations define PROJECTROOT with an empty value. Remove
9557 1.1 mrg # the empty definition.
9558 1.1 mrg case $IMAKE_CFLAGS in
9559 1.1 mrg *-DPROJECTROOT=/*)
9560 1.1 mrg ;;
9561 1.1 mrg *)
9562 1.1 mrg IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"`
9563 1.1 mrg ;;
9564 1.1 mrg esac
9565 1.1 mrg
9566 1.1 mrg fi
9567 1.1 mrg
9568 1.1 mrg test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
9569 1.1 mrg
9570 1.1 mrg echo "${as_me-configure}:9570: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
9571 1.1 mrg
9572 1.1 mrg test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
9573 1.1 mrg
9574 1.1 mrg echo "${as_me-configure}:9574: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
9575 1.1 mrg
9576 1.1 mrg fi
9577 1.1 mrg
9578 1.1 mrg if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
9579 1.1 mrg
9580 1.1 mrg cf_fix_cppflags=no
9581 1.1 mrg cf_new_cflags=
9582 1.1 mrg cf_new_cppflags=
9583 1.1 mrg cf_new_extra_cppflags=
9584 1.1 mrg
9585 1.1 mrg for cf_add_cflags in $IMAKE_CFLAGS
9586 1.1 mrg do
9587 1.1 mrg case $cf_fix_cppflags in
9588 1.1 mrg no)
9589 1.1 mrg case $cf_add_cflags in #(vi
9590 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9591 1.1 mrg case $cf_add_cflags in
9592 1.1 mrg -D*)
9593 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9594 1.1 mrg
9595 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9596 1.1 mrg && test -z "${cf_tst_cflags}" \
9597 1.1 mrg && cf_fix_cppflags=yes
9598 1.1 mrg
9599 1.1 mrg if test $cf_fix_cppflags = yes ; then
9600 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9601 1.1 mrg continue
9602 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
9603 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9604 1.1 mrg continue
9605 1.1 mrg fi
9606 1.1 mrg ;;
9607 1.1 mrg esac
9608 1.1 mrg case "$CPPFLAGS" in
9609 1.1 mrg *$cf_add_cflags) #(vi
9610 1.1 mrg ;;
9611 1.1 mrg *) #(vi
9612 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9613 1.1 mrg ;;
9614 1.1 mrg esac
9615 1.1 mrg ;;
9616 1.1 mrg *)
9617 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9618 1.1 mrg ;;
9619 1.1 mrg esac
9620 1.1 mrg ;;
9621 1.1 mrg yes)
9622 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9623 1.1 mrg
9624 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9625 1.1 mrg
9626 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9627 1.1 mrg && test -z "${cf_tst_cflags}" \
9628 1.1 mrg && cf_fix_cppflags=no
9629 1.1 mrg ;;
9630 1.1 mrg esac
9631 1.1 mrg done
9632 1.1 mrg
9633 1.1 mrg if test -n "$cf_new_cflags" ; then
9634 1.1 mrg
9635 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
9636 1.1 mrg fi
9637 1.1 mrg
9638 1.1 mrg if test -n "$cf_new_cppflags" ; then
9639 1.1 mrg
9640 1.1 mrg CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
9641 1.1 mrg fi
9642 1.1 mrg
9643 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
9644 1.1 mrg
9645 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9646 1.1 mrg fi
9647 1.1 mrg
9648 1.1 mrg else
9649 1.1 mrg IMAKE_CFLAGS=
9650 1.1 mrg IMAKE_LOADFLAGS=
9651 1.1 mrg test -n "$verbose" && echo " make fallback definitions" 1>&6
9652 1.1 mrg
9653 1.1 mrg echo "${as_me-configure}:9653: testing make fallback definitions ..." 1>&5
9654 1.1 mrg
9655 1.1 mrg # We prefer config.guess' values when we can get them, to avoid
9656 1.1 mrg # inconsistent results with uname (AIX for instance). However,
9657 1.1 mrg # config.guess is not always consistent either.
9658 1.1 mrg case $host_os in
9659 1.1 mrg *[0-9].[0-9]*)
9660 1.1 mrg UNAME_RELEASE="$host_os"
9661 1.1 mrg ;;
9662 1.1 mrg *)
9663 1.1 mrg UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
9664 1.1 mrg ;;
9665 1.1 mrg esac
9666 1.1 mrg
9667 1.1 mrg case .$UNAME_RELEASE in
9668 1.1 mrg *[0-9].[0-9]*)
9669 1.1 mrg OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
9670 1.1 mrg OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
9671 1.1 mrg test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
9672 1.1 mrg test -z "$OSMINORVERSION" && OSMINORVERSION=0
9673 1.1 mrg IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
9674 1.1 mrg ;;
9675 1.1 mrg esac
9676 1.1 mrg
9677 1.1 mrg # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
9678 1.1 mrg # fallback/fragments for NeedPrototypes, etc.
9679 1.1 mrg IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
9680 1.1 mrg
9681 1.1 mrg # If this is not set properly, Xaw's scrollbars will not work
9682 1.1 mrg if test "$enable_narrowproto" = yes ; then
9683 1.1 mrg IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
9684 1.1 mrg fi
9685 1.1 mrg
9686 1.1 mrg # Other special definitions:
9687 1.1 mrg case $host_os in
9688 1.1 mrg aix*)
9689 1.1 mrg # imake on AIX 5.1 defines AIXV3. really.
9690 1.1 mrg IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
9691 1.1 mrg ;;
9692 1.1 mrg irix[56].*) #(vi
9693 1.1 mrg # these are needed to make SIGWINCH work in xterm
9694 1.1 mrg IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
9695 1.1 mrg ;;
9696 1.1 mrg esac
9697 1.1 mrg
9698 1.1 mrg cf_fix_cppflags=no
9699 1.1 mrg cf_new_cflags=
9700 1.1 mrg cf_new_cppflags=
9701 1.1 mrg cf_new_extra_cppflags=
9702 1.1 mrg
9703 1.1 mrg for cf_add_cflags in $IMAKE_CFLAGS
9704 1.1 mrg do
9705 1.1 mrg case $cf_fix_cppflags in
9706 1.1 mrg no)
9707 1.1 mrg case $cf_add_cflags in #(vi
9708 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9709 1.1 mrg case $cf_add_cflags in
9710 1.1 mrg -D*)
9711 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9712 1.1 mrg
9713 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9714 1.1 mrg && test -z "${cf_tst_cflags}" \
9715 1.1 mrg && cf_fix_cppflags=yes
9716 1.1 mrg
9717 1.1 mrg if test $cf_fix_cppflags = yes ; then
9718 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9719 1.1 mrg continue
9720 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
9721 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9722 1.1 mrg continue
9723 1.1 mrg fi
9724 1.1 mrg ;;
9725 1.1 mrg esac
9726 1.1 mrg case "$CPPFLAGS" in
9727 1.1 mrg *$cf_add_cflags) #(vi
9728 1.1 mrg ;;
9729 1.1 mrg *) #(vi
9730 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9731 1.1 mrg ;;
9732 1.1 mrg esac
9733 1.1 mrg ;;
9734 1.1 mrg *)
9735 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9736 1.1 mrg ;;
9737 1.1 mrg esac
9738 1.1 mrg ;;
9739 1.1 mrg yes)
9740 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9741 1.1 mrg
9742 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9743 1.1 mrg
9744 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9745 1.1 mrg && test -z "${cf_tst_cflags}" \
9746 1.1 mrg && cf_fix_cppflags=no
9747 1.1 mrg ;;
9748 1.1 mrg esac
9749 1.1 mrg done
9750 1.1 mrg
9751 1.1 mrg if test -n "$cf_new_cflags" ; then
9752 1.1 mrg
9753 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
9754 1.1 mrg fi
9755 1.1 mrg
9756 1.1 mrg if test -n "$cf_new_cppflags" ; then
9757 1.1 mrg
9758 1.1 mrg CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
9759 1.1 mrg fi
9760 1.1 mrg
9761 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
9762 1.1 mrg
9763 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9764 1.1 mrg fi
9765 1.1 mrg
9766 1.1 mrg fi
9767 1.1 mrg
9768 1.1 mrg echo "$as_me:9768: checking for default terminal-id" >&5
9769 1.1 mrg echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
9770 1.1 mrg
9771 1.1 mrg # Check whether --with-terminal-id or --without-terminal-id was given.
9772 1.1 mrg if test "${with_terminal_id+set}" = set; then
9773 1.1 mrg withval="$with_terminal_id"
9774 1.1 mrg default_termid=$withval
9775 1.1 mrg else
9776 1.1 mrg default_termid=vt100
9777 1.1 mrg fi;
9778 1.1 mrg echo "$as_me:9778: result: $default_termid" >&5
9779 1.1 mrg echo "${ECHO_T}$default_termid" >&6
9780 1.1 mrg case $default_termid in
9781 1.1 mrg vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
9782 1.1 mrg ;;
9783 1.1 mrg esac
9784 1.1 mrg cat >>confdefs.h <<EOF
9785 1.1 mrg #define DFT_DECID "$default_termid"
9786 1.1 mrg EOF
9787 1.1 mrg
9788 1.1 mrg echo "$as_me:9788: checking for default terminal-type" >&5
9789 1.1 mrg echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
9790 1.1 mrg
9791 1.1 mrg # Check whether --with-terminal-type or --without-terminal-type was given.
9792 1.1 mrg if test "${with_terminal_type+set}" = set; then
9793 1.1 mrg withval="$with_terminal_type"
9794 1.1 mrg default_TERM=$withval
9795 1.1 mrg else
9796 1.1 mrg default_TERM=xterm
9797 1.1 mrg fi;
9798 1.1 mrg echo "$as_me:9798: result: $default_TERM" >&5
9799 1.1 mrg echo "${ECHO_T}$default_TERM" >&6
9800 1.1 mrg cat >>confdefs.h <<EOF
9801 1.1 mrg #define DFT_TERMTYPE "$default_TERM"
9802 1.1 mrg EOF
9803 1.1 mrg
9804 1.1 mrg echo "$as_me:9804: checking for private terminfo-directory" >&5
9805 1.1 mrg echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
9806 1.1 mrg
9807 1.1 mrg # Check whether --with-own-terminfo or --without-own-terminfo was given.
9808 1.1 mrg if test "${with_own_terminfo+set}" = set; then
9809 1.1 mrg withval="$with_own_terminfo"
9810 1.1 mrg TERMINFO_DIR=$withval
9811 1.1 mrg else
9812 1.1 mrg TERMINFO_DIR=${TERMINFO-none}
9813 1.1 mrg fi;
9814 1.1 mrg echo "$as_me:9814: result: $TERMINFO_DIR" >&5
9815 1.1 mrg echo "${ECHO_T}$TERMINFO_DIR" >&6
9816 1.1 mrg if test "$TERMINFO_DIR" = yes ; then
9817 1.1 mrg { echo "$as_me:9817: WARNING: no value given" >&5
9818 1.1 mrg echo "$as_me: WARNING: no value given" >&2;}
9819 1.1 mrg elif test "$TERMINFO_DIR" != none ; then
9820 1.1 mrg if test -d $TERMINFO_DIR ; then
9821 1.1 mrg cat >>confdefs.h <<EOF
9822 1.1 mrg #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
9823 1.1 mrg EOF
9824 1.1 mrg
9825 1.1 mrg else
9826 1.1 mrg { echo "$as_me:9826: WARNING: not a directory" >&5
9827 1.1 mrg echo "$as_me: WARNING: not a directory" >&2;}
9828 1.1 mrg fi
9829 1.1 mrg elif test "$prefix" != NONE ; then
9830 1.1 mrg TERMINFO_DIR='${prefix}/lib/terminfo'
9831 1.1 mrg elif test -d /usr/lib/terminfo ; then
9832 1.1 mrg TERMINFO_DIR=/usr/lib/terminfo
9833 1.1 mrg else
9834 1.1 mrg TERMINFO_DIR=
9835 1.1 mrg fi
9836 1.1 mrg SET_TERMINFO=
9837 1.1 mrg if test -n "$TERMINFO_DIR" ; then
9838 1.1 mrg TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
9839 1.1 mrg SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
9840 1.1 mrg fi
9841 1.1 mrg
9842 1.1 mrg ###############################################################################
9843 1.1 mrg
9844 1.1 mrg echo "$as_me:9844: checking if you want active-icons" >&5
9845 1.1 mrg echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
9846 1.1 mrg
9847 1.1 mrg # Check whether --enable-active-icon or --disable-active-icon was given.
9848 1.1 mrg if test "${enable_active_icon+set}" = set; then
9849 1.1 mrg enableval="$enable_active_icon"
9850 1.1 mrg test "$enableval" != no && enableval=yes
9851 1.1 mrg if test "$enableval" != "yes" ; then
9852 1.1 mrg enable_active_icon=no
9853 1.1 mrg else
9854 1.1 mrg enable_active_icon=yes
9855 1.1 mrg fi
9856 1.1 mrg else
9857 1.1 mrg enableval=yes
9858 1.1 mrg enable_active_icon=yes
9859 1.1 mrg
9860 1.1 mrg fi;
9861 1.1 mrg echo "$as_me:9861: result: $enable_active_icon" >&5
9862 1.1 mrg echo "${ECHO_T}$enable_active_icon" >&6
9863 1.1 mrg if test "$enable_active_icon" = no ; then
9864 1.1 mrg cat >>confdefs.h <<\EOF
9865 1.1 mrg #define NO_ACTIVE_ICON 1
9866 1.1 mrg EOF
9867 1.1 mrg
9868 1.1 mrg fi
9869 1.1 mrg
9870 1.1 mrg echo "$as_me:9870: checking if you want ANSI color" >&5
9871 1.1 mrg echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
9872 1.1 mrg
9873 1.1 mrg # Check whether --enable-ansi-color or --disable-ansi-color was given.
9874 1.1 mrg if test "${enable_ansi_color+set}" = set; then
9875 1.1 mrg enableval="$enable_ansi_color"
9876 1.1 mrg test "$enableval" != no && enableval=yes
9877 1.1 mrg if test "$enableval" != "yes" ; then
9878 1.1 mrg enable_ansi_color=no
9879 1.1 mrg else
9880 1.1 mrg enable_ansi_color=yes
9881 1.1 mrg fi
9882 1.1 mrg else
9883 1.1 mrg enableval=yes
9884 1.1 mrg enable_ansi_color=yes
9885 1.1 mrg
9886 1.1 mrg fi;
9887 1.1 mrg echo "$as_me:9887: result: $enable_ansi_color" >&5
9888 1.1 mrg echo "${ECHO_T}$enable_ansi_color" >&6
9889 1.1 mrg test "$enable_ansi_color" = no && cat >>confdefs.h <<\EOF
9890 1.1 mrg #define OPT_ISO_COLORS 0
9891 1.1 mrg EOF
9892 1.1 mrg
9893 1.1 mrg if test "$enable_ansi_color" = yes ; then
9894 1.1 mrg
9895 1.1 mrg echo "$as_me:9895: checking if you want 16 colors like aixterm" >&5
9896 1.1 mrg echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
9897 1.1 mrg
9898 1.1 mrg # Check whether --enable-16-color or --disable-16-color was given.
9899 1.1 mrg if test "${enable_16_color+set}" = set; then
9900 1.1 mrg enableval="$enable_16_color"
9901 1.1 mrg test "$enableval" != no && enableval=yes
9902 1.1 mrg if test "$enableval" != "yes" ; then
9903 1.1 mrg enable_16_color=no
9904 1.1 mrg else
9905 1.1 mrg enable_16_color=yes
9906 1.1 mrg fi
9907 1.1 mrg else
9908 1.1 mrg enableval=yes
9909 1.1 mrg enable_16_color=yes
9910 1.1 mrg
9911 1.1 mrg fi;
9912 1.1 mrg echo "$as_me:9912: result: $enable_16_color" >&5
9913 1.1 mrg echo "${ECHO_T}$enable_16_color" >&6
9914 1.1 mrg test "$enable_16_color" = no && cat >>confdefs.h <<\EOF
9915 1.1 mrg #define OPT_AIX_COLORS 0
9916 1.1 mrg EOF
9917 1.1 mrg
9918 1.1 mrg echo "$as_me:9918: checking if you want 256 colors" >&5
9919 1.1 mrg echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
9920 1.1 mrg
9921 1.1 mrg # Check whether --enable-256-color or --disable-256-color was given.
9922 1.1 mrg if test "${enable_256_color+set}" = set; then
9923 1.1 mrg enableval="$enable_256_color"
9924 1.1 mrg test "$enableval" != yes && enableval=no
9925 1.1 mrg if test "$enableval" != "no" ; then
9926 1.1 mrg enable_256_color=yes
9927 1.1 mrg else
9928 1.1 mrg enable_256_color=no
9929 1.1 mrg fi
9930 1.1 mrg else
9931 1.1 mrg enableval=no
9932 1.1 mrg enable_256_color=no
9933 1.1 mrg
9934 1.1 mrg fi;
9935 1.1 mrg echo "$as_me:9935: result: $enable_256_color" >&5
9936 1.1 mrg echo "${ECHO_T}$enable_256_color" >&6
9937 1.1 mrg if test "$enable_256_color" = yes ; then
9938 1.1 mrg CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
9939 1.1 mrg EXTRAHDRS="$EXTRAHDRS 256colres.h"
9940 1.1 mrg cat >>confdefs.h <<\EOF
9941 1.1 mrg #define OPT_256_COLORS 1
9942 1.1 mrg EOF
9943 1.1 mrg
9944 1.1 mrg else
9945 1.1 mrg echo "$as_me:9945: checking if you want 88 colors" >&5
9946 1.1 mrg echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
9947 1.1 mrg
9948 1.1 mrg # Check whether --enable-88-color or --disable-88-color was given.
9949 1.1 mrg if test "${enable_88_color+set}" = set; then
9950 1.1 mrg enableval="$enable_88_color"
9951 1.1 mrg test "$enableval" != yes && enableval=no
9952 1.1 mrg if test "$enableval" != "no" ; then
9953 1.1 mrg enable_88_color=yes
9954 1.1 mrg else
9955 1.1 mrg enable_88_color=no
9956 1.1 mrg fi
9957 1.1 mrg else
9958 1.1 mrg enableval=no
9959 1.1 mrg enable_88_color=no
9960 1.1 mrg
9961 1.1 mrg fi;
9962 1.1 mrg echo "$as_me:9962: result: $enable_88_color" >&5
9963 1.1 mrg echo "${ECHO_T}$enable_88_color" >&6
9964 1.1 mrg if test "$enable_88_color" = yes ; then
9965 1.1 mrg CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
9966 1.1 mrg EXTRAHDRS="$EXTRAHDRS 88colres.h"
9967 1.1 mrg cat >>confdefs.h <<\EOF
9968 1.1 mrg #define OPT_88_COLORS 1
9969 1.1 mrg EOF
9970 1.1 mrg
9971 1.1 mrg fi
9972 1.1 mrg fi
9973 1.1 mrg
9974 1.1 mrg fi
9975 1.1 mrg
9976 1.1 mrg echo "$as_me:9976: checking if you want blinking cursor" >&5
9977 1.1 mrg echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
9978 1.1 mrg
9979 1.1 mrg # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
9980 1.1 mrg if test "${enable_blink_cursor+set}" = set; then
9981 1.1 mrg enableval="$enable_blink_cursor"
9982 1.1 mrg test "$enableval" != no && enableval=yes
9983 1.1 mrg if test "$enableval" != "yes" ; then
9984 1.1 mrg enable_blink_curs=no
9985 1.1 mrg else
9986 1.1 mrg enable_blink_curs=yes
9987 1.1 mrg fi
9988 1.1 mrg else
9989 1.1 mrg enableval=yes
9990 1.1 mrg enable_blink_curs=yes
9991 1.1 mrg
9992 1.1 mrg fi;
9993 1.1 mrg echo "$as_me:9993: result: $enable_blink_curs" >&5
9994 1.1 mrg echo "${ECHO_T}$enable_blink_curs" >&6
9995 1.1 mrg test "$enable_blink_curs" = no && cat >>confdefs.h <<\EOF
9996 1.1 mrg #define OPT_BLINK_CURS 0
9997 1.1 mrg EOF
9998 1.1 mrg
9999 1.1 mrg echo "$as_me:9999: checking if you want to ignore Linux's broken palette-strings" >&5
10000 1.1 mrg echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
10001 1.1 mrg
10002 1.1 mrg case $host_os in #(vi
10003 1.1 mrg linux*)
10004 1.1 mrg assume_broken_osc=yes ;; #(vi
10005 1.1 mrg *)
10006 1.1 mrg assume_broken_osc=no ;;
10007 1.1 mrg esac
10008 1.1 mrg
10009 1.1 mrg # Check whether --enable-broken-osc or --disable-broken-osc was given.
10010 1.1 mrg if test "${enable_broken_osc+set}" = set; then
10011 1.1 mrg enableval="$enable_broken_osc"
10012 1.1 mrg test "$enableval" != no && enableval=yes
10013 1.1 mrg if test "$enableval" != "$assume_broken_osc" ; then
10014 1.1 mrg enable_broken_osc=$enableval
10015 1.1 mrg else
10016 1.1 mrg enable_broken_osc=$enableval
10017 1.1 mrg fi
10018 1.1 mrg else
10019 1.1 mrg enableval=$assume_broken_osc
10020 1.1 mrg enable_broken_osc=$enableval
10021 1.1 mrg
10022 1.1 mrg fi;
10023 1.1 mrg echo "$as_me:10023: result: $enable_broken_osc" >&5
10024 1.1 mrg echo "${ECHO_T}$enable_broken_osc" >&6
10025 1.1 mrg if test "$enable_broken_osc" = yes ; then
10026 1.1 mrg cat >>confdefs.h <<\EOF
10027 1.1 mrg #define OPT_BROKEN_OSC 1
10028 1.1 mrg EOF
10029 1.1 mrg
10030 1.1 mrg else
10031 1.1 mrg cat >>confdefs.h <<\EOF
10032 1.1 mrg #define OPT_BROKEN_OSC 0
10033 1.1 mrg EOF
10034 1.1 mrg
10035 1.1 mrg fi
10036 1.1 mrg
10037 1.1 mrg echo "$as_me:10037: checking if you want to allow broken string-terminators" >&5
10038 1.1 mrg echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
10039 1.1 mrg
10040 1.1 mrg # Check whether --enable-broken-st or --disable-broken-st was given.
10041 1.1 mrg if test "${enable_broken_st+set}" = set; then
10042 1.1 mrg enableval="$enable_broken_st"
10043 1.1 mrg test "$enableval" != yes && enableval=no
10044 1.1 mrg if test "$enableval" != "no" ; then
10045 1.1 mrg enable_broken_st=yes
10046 1.1 mrg else
10047 1.1 mrg enable_broken_st=no
10048 1.1 mrg fi
10049 1.1 mrg else
10050 1.1 mrg enableval=no
10051 1.1 mrg enable_broken_st=no
10052 1.1 mrg
10053 1.1 mrg fi;
10054 1.1 mrg echo "$as_me:10054: result: $enable_broken_st" >&5
10055 1.1 mrg echo "${ECHO_T}$enable_broken_st" >&6
10056 1.1 mrg test "$enable_broken_st" = no && cat >>confdefs.h <<\EOF
10057 1.1 mrg #define OPT_BROKEN_ST 0
10058 1.1 mrg EOF
10059 1.1 mrg
10060 1.1 mrg echo "$as_me:10060: checking if you want printable 128-159" >&5
10061 1.1 mrg echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
10062 1.1 mrg
10063 1.1 mrg # Check whether --enable-c1-print or --disable-c1-print was given.
10064 1.1 mrg if test "${enable_c1_print+set}" = set; then
10065 1.1 mrg enableval="$enable_c1_print"
10066 1.1 mrg test "$enableval" != no && enableval=yes
10067 1.1 mrg if test "$enableval" != "yes" ; then
10068 1.1 mrg enable_c1_print=no
10069 1.1 mrg else
10070 1.1 mrg enable_c1_print=yes
10071 1.1 mrg fi
10072 1.1 mrg else
10073 1.1 mrg enableval=yes
10074 1.1 mrg enable_c1_print=yes
10075 1.1 mrg
10076 1.1 mrg fi;
10077 1.1 mrg echo "$as_me:10077: result: $enable_c1_print" >&5
10078 1.1 mrg echo "${ECHO_T}$enable_c1_print" >&6
10079 1.1 mrg test "$enable_c1_print" = no && cat >>confdefs.h <<\EOF
10080 1.1 mrg #define OPT_C1_PRINT 0
10081 1.1 mrg EOF
10082 1.1 mrg
10083 1.1 mrg if test "$enable_ansi_color" = yes ; then
10084 1.1 mrg
10085 1.1 mrg echo "$as_me:10085: checking if you want bold colors mapped like IBM PC" >&5
10086 1.1 mrg echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
10087 1.1 mrg
10088 1.1 mrg # Check whether --enable-bold-color or --disable-bold-color was given.
10089 1.1 mrg if test "${enable_bold_color+set}" = set; then
10090 1.1 mrg enableval="$enable_bold_color"
10091 1.1 mrg test "$enableval" != no && enableval=yes
10092 1.1 mrg if test "$enableval" != "yes" ; then
10093 1.1 mrg enable_pc_color=no
10094 1.1 mrg else
10095 1.1 mrg enable_pc_color=yes
10096 1.1 mrg fi
10097 1.1 mrg else
10098 1.1 mrg enableval=yes
10099 1.1 mrg enable_pc_color=yes
10100 1.1 mrg
10101 1.1 mrg fi;
10102 1.1 mrg echo "$as_me:10102: result: $enable_pc_color" >&5
10103 1.1 mrg echo "${ECHO_T}$enable_pc_color" >&6
10104 1.1 mrg test "$enable_pc_color" = no && cat >>confdefs.h <<\EOF
10105 1.1 mrg #define OPT_PC_COLORS 0
10106 1.1 mrg EOF
10107 1.1 mrg
10108 1.1 mrg echo "$as_me:10108: checking if you want separate color-classes" >&5
10109 1.1 mrg echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
10110 1.1 mrg
10111 1.1 mrg # Check whether --enable-color-class or --disable-color-class was given.
10112 1.1 mrg if test "${enable_color_class+set}" = set; then
10113 1.1 mrg enableval="$enable_color_class"
10114 1.1 mrg test "$enableval" != no && enableval=yes
10115 1.1 mrg if test "$enableval" != "yes" ; then
10116 1.1 mrg enable_color_class=no
10117 1.1 mrg else
10118 1.1 mrg enable_color_class=yes
10119 1.1 mrg fi
10120 1.1 mrg else
10121 1.1 mrg enableval=yes
10122 1.1 mrg enable_color_class=yes
10123 1.1 mrg
10124 1.1 mrg fi;
10125 1.1 mrg echo "$as_me:10125: result: $enable_color_class" >&5
10126 1.1 mrg echo "${ECHO_T}$enable_color_class" >&6
10127 1.1 mrg test "$enable_color_class" = no && cat >>confdefs.h <<\EOF
10128 1.1 mrg #define OPT_COLOR_CLASS FALSE
10129 1.1 mrg EOF
10130 1.1 mrg
10131 1.1 mrg echo "$as_me:10131: checking if you want color-mode enabled by default" >&5
10132 1.1 mrg echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
10133 1.1 mrg
10134 1.1 mrg # Check whether --enable-color-mode or --disable-color-mode was given.
10135 1.1 mrg if test "${enable_color_mode+set}" = set; then
10136 1.1 mrg enableval="$enable_color_mode"
10137 1.1 mrg test "$enableval" != no && enableval=yes
10138 1.1 mrg if test "$enableval" != "yes" ; then
10139 1.1 mrg default_colormode=no
10140 1.1 mrg else
10141 1.1 mrg default_colormode=yes
10142 1.1 mrg fi
10143 1.1 mrg else
10144 1.1 mrg enableval=yes
10145 1.1 mrg default_colormode=yes
10146 1.1 mrg
10147 1.1 mrg fi;
10148 1.1 mrg echo "$as_me:10148: result: $default_colormode" >&5
10149 1.1 mrg echo "${ECHO_T}$default_colormode" >&6
10150 1.1 mrg test "$default_colormode" = no && cat >>confdefs.h <<\EOF
10151 1.1 mrg #define DFT_COLORMODE FALSE
10152 1.1 mrg EOF
10153 1.1 mrg
10154 1.1 mrg fi
10155 1.1 mrg
10156 1.1 mrg echo "$as_me:10156: checking if you want support for color highlighting" >&5
10157 1.1 mrg echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
10158 1.1 mrg
10159 1.1 mrg # Check whether --enable-highlighting or --disable-highlighting was given.
10160 1.1 mrg if test "${enable_highlighting+set}" = set; then
10161 1.1 mrg enableval="$enable_highlighting"
10162 1.1 mrg test "$enableval" != no && enableval=yes
10163 1.1 mrg if test "$enableval" != "yes" ; then
10164 1.1 mrg default_highlight=no
10165 1.1 mrg else
10166 1.1 mrg default_highlight=yes
10167 1.1 mrg fi
10168 1.1 mrg else
10169 1.1 mrg enableval=yes
10170 1.1 mrg default_highlight=yes
10171 1.1 mrg
10172 1.1 mrg fi;
10173 1.1 mrg echo "$as_me:10173: result: $default_highlight" >&5
10174 1.1 mrg echo "${ECHO_T}$default_highlight" >&6
10175 1.1 mrg test "$default_highlight" = no && cat >>confdefs.h <<\EOF
10176 1.1 mrg #define OPT_HIGHLIGHT_COLOR 0
10177 1.1 mrg EOF
10178 1.1 mrg
10179 1.1 mrg echo "$as_me:10179: checking if you want support for doublesize characters" >&5
10180 1.1 mrg echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
10181 1.1 mrg
10182 1.1 mrg # Check whether --enable-doublechars or --disable-doublechars was given.
10183 1.1 mrg if test "${enable_doublechars+set}" = set; then
10184 1.1 mrg enableval="$enable_doublechars"
10185 1.1 mrg test "$enableval" != no && enableval=yes
10186 1.1 mrg if test "$enableval" != "yes" ; then
10187 1.1 mrg enable_doublechars=no
10188 1.1 mrg else
10189 1.1 mrg enable_doublechars=yes
10190 1.1 mrg fi
10191 1.1 mrg else
10192 1.1 mrg enableval=yes
10193 1.1 mrg enable_doublechars=yes
10194 1.1 mrg
10195 1.1 mrg fi;
10196 1.1 mrg echo "$as_me:10196: result: $enable_doublechars" >&5
10197 1.1 mrg echo "${ECHO_T}$enable_doublechars" >&6
10198 1.1 mrg test "$enable_doublechars" = no && cat >>confdefs.h <<\EOF
10199 1.1 mrg #define OPT_DEC_CHRSET 0
10200 1.1 mrg EOF
10201 1.1 mrg
10202 1.1 mrg echo "$as_me:10202: checking if you want fallback-support for box characters" >&5
10203 1.1 mrg echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
10204 1.1 mrg
10205 1.1 mrg # Check whether --enable-boxchars or --disable-boxchars was given.
10206 1.1 mrg if test "${enable_boxchars+set}" = set; then
10207 1.1 mrg enableval="$enable_boxchars"
10208 1.1 mrg test "$enableval" != no && enableval=yes
10209 1.1 mrg if test "$enableval" != "yes" ; then
10210 1.1 mrg enable_boxchars=no
10211 1.1 mrg else
10212 1.1 mrg enable_boxchars=yes
10213 1.1 mrg fi
10214 1.1 mrg else
10215 1.1 mrg enableval=yes
10216 1.1 mrg enable_boxchars=yes
10217 1.1 mrg
10218 1.1 mrg fi;
10219 1.1 mrg echo "$as_me:10219: result: $enable_boxchars" >&5
10220 1.1 mrg echo "${ECHO_T}$enable_boxchars" >&6
10221 1.1 mrg test "$enable_boxchars" = no && cat >>confdefs.h <<\EOF
10222 1.1 mrg #define OPT_BOX_CHARS 0
10223 1.1 mrg EOF
10224 1.1 mrg
10225 1.1 mrg echo "$as_me:10225: checking if you want to allow spawning new xterms" >&5
10226 1.1 mrg echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
10227 1.1 mrg
10228 1.1 mrg # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
10229 1.1 mrg if test "${enable_exec_xterm+set}" = set; then
10230 1.1 mrg enableval="$enable_exec_xterm"
10231 1.1 mrg test "$enableval" != yes && enableval=no
10232 1.1 mrg if test "$enableval" != "no" ; then
10233 1.1 mrg enable_exec_xterm=yes
10234 1.1 mrg else
10235 1.1 mrg enable_exec_xterm=no
10236 1.1 mrg fi
10237 1.1 mrg else
10238 1.1 mrg enableval=no
10239 1.1 mrg enable_exec_xterm=no
10240 1.1 mrg
10241 1.1 mrg fi;
10242 1.1 mrg echo "$as_me:10242: result: $enable_exec_xterm" >&5
10243 1.1 mrg echo "${ECHO_T}$enable_exec_xterm" >&6
10244 1.1 mrg if test "$enable_exec_xterm" = yes ; then
10245 1.1 mrg
10246 1.1 mrg echo "$as_me:10246: checking for proc tree with cwd-support" >&5
10247 1.1 mrg echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
10248 1.1 mrg if test "${cf_cv_procfs_cwd+set}" = set; then
10249 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10250 1.1 mrg else
10251 1.1 mrg
10252 1.1 mrg cf_cv_procfs_cwd=no
10253 1.1 mrg for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
10254 1.1 mrg do
10255 1.1 mrg if test -d $cf_path && \
10256 1.1 mrg test -d $cf_path/$$ && \
10257 1.1 mrg ( test -d $cf_path/$$/cwd || \
10258 1.1 mrg test -L $cf_path/$$/cwd ); then
10259 1.1 mrg cf_cv_procfs_cwd=$cf_path
10260 1.1 mrg break
10261 1.1 mrg fi
10262 1.1 mrg done
10263 1.1 mrg
10264 1.1 mrg fi
10265 1.1 mrg echo "$as_me:10265: result: $cf_cv_procfs_cwd" >&5
10266 1.1 mrg echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
10267 1.1 mrg
10268 1.1 mrg if test "$cf_cv_procfs_cwd" = no ; then
10269 1.1 mrg { echo "$as_me:10269: WARNING: no suitable proc filesystem found" >&5
10270 1.1 mrg echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
10271 1.1 mrg else
10272 1.1 mrg cat >>confdefs.h <<EOF
10273 1.1 mrg #define PROCFS_ROOT "$cf_cv_procfs_cwd"
10274 1.1 mrg EOF
10275 1.1 mrg
10276 1.1 mrg cat >>confdefs.h <<\EOF
10277 1.1 mrg #define OPT_EXEC_XTERM 1
10278 1.1 mrg EOF
10279 1.1 mrg
10280 1.1 mrg fi
10281 1.1 mrg fi
10282 1.1 mrg
10283 1.1 mrg echo "$as_me:10283: checking if you want to use FreeType library" >&5
10284 1.1 mrg echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
10285 1.1 mrg
10286 1.1 mrg # Check whether --enable-freetype or --disable-freetype was given.
10287 1.1 mrg if test "${enable_freetype+set}" = set; then
10288 1.1 mrg enableval="$enable_freetype"
10289 1.1 mrg test "$enableval" != no && enableval=yes
10290 1.1 mrg if test "$enableval" != "yes" ; then
10291 1.1 mrg enable_freetype=no
10292 1.1 mrg else
10293 1.1 mrg enable_freetype=yes
10294 1.1 mrg fi
10295 1.1 mrg else
10296 1.1 mrg enableval=yes
10297 1.1 mrg enable_freetype=yes
10298 1.1 mrg
10299 1.1 mrg fi;
10300 1.1 mrg echo "$as_me:10300: result: $enable_freetype" >&5
10301 1.1 mrg echo "${ECHO_T}$enable_freetype" >&6
10302 1.1 mrg if test "$enable_freetype" = yes ; then
10303 1.1 mrg
10304 1.1 mrg cf_extra_freetype_libs=
10305 1.1 mrg FREETYPE_CONFIG=
10306 1.1 mrg FREETYPE_PARAMS=
10307 1.1 mrg
10308 1.1 mrg echo "$as_me:10308: checking if you specified -D/-I options for FreeType" >&5
10309 1.1 mrg echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
10310 1.1 mrg
10311 1.1 mrg # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
10312 1.1 mrg if test "${with_freetype_cflags+set}" = set; then
10313 1.1 mrg withval="$with_freetype_cflags"
10314 1.1 mrg cf_cv_x_freetype_incs="$with_freetype_cflags"
10315 1.1 mrg else
10316 1.1 mrg cf_cv_x_freetype_incs=no
10317 1.1 mrg fi;
10318 1.1 mrg echo "$as_me:10318: result: $cf_cv_x_freetype_incs" >&5
10319 1.1 mrg echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
10320 1.1 mrg
10321 1.1 mrg echo "$as_me:10321: checking if you specified -L/-l options for FreeType" >&5
10322 1.1 mrg echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
10323 1.1 mrg
10324 1.1 mrg # Check whether --with-freetype-libs or --without-freetype-libs was given.
10325 1.1 mrg if test "${with_freetype_libs+set}" = set; then
10326 1.1 mrg withval="$with_freetype_libs"
10327 1.1 mrg cf_cv_x_freetype_libs="$with_freetype_libs"
10328 1.1 mrg else
10329 1.1 mrg cf_cv_x_freetype_libs=no
10330 1.1 mrg fi;
10331 1.1 mrg echo "$as_me:10331: result: $cf_cv_x_freetype_libs" >&5
10332 1.1 mrg echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
10333 1.1 mrg
10334 1.1 mrg # Extract the first word of "pkg-config", so it can be a program name with args.
10335 1.1 mrg set dummy pkg-config; ac_word=$2
10336 1.1 mrg echo "$as_me:10336: checking for $ac_word" >&5
10337 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10338 1.1 mrg if test "${ac_cv_path_FREETYPE_PKG_CONFIG+set}" = set; then
10339 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10340 1.1 mrg else
10341 1.1 mrg case $FREETYPE_PKG_CONFIG in
10342 1.1 mrg [\\/]* | ?:[\\/]*)
10343 1.1 mrg ac_cv_path_FREETYPE_PKG_CONFIG="$FREETYPE_PKG_CONFIG" # Let the user override the test with a path.
10344 1.1 mrg ;;
10345 1.1 mrg *)
10346 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
10347 1.1 mrg ac_dummy="$PATH"
10348 1.1 mrg for ac_dir in $ac_dummy; do
10349 1.1 mrg IFS=$ac_save_IFS
10350 1.1 mrg test -z "$ac_dir" && ac_dir=.
10351 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
10352 1.1 mrg ac_cv_path_FREETYPE_PKG_CONFIG="$ac_dir/$ac_word"
10353 1.1 mrg echo "$as_me:10353: found $ac_dir/$ac_word" >&5
10354 1.1 mrg break
10355 1.1 mrg fi
10356 1.1 mrg done
10357 1.1 mrg
10358 1.1 mrg test -z "$ac_cv_path_FREETYPE_PKG_CONFIG" && ac_cv_path_FREETYPE_PKG_CONFIG="none"
10359 1.1 mrg ;;
10360 1.1 mrg esac
10361 1.1 mrg fi
10362 1.1 mrg FREETYPE_PKG_CONFIG=$ac_cv_path_FREETYPE_PKG_CONFIG
10363 1.1 mrg
10364 1.1 mrg if test -n "$FREETYPE_PKG_CONFIG"; then
10365 1.1 mrg echo "$as_me:10365: result: $FREETYPE_PKG_CONFIG" >&5
10366 1.1 mrg echo "${ECHO_T}$FREETYPE_PKG_CONFIG" >&6
10367 1.1 mrg else
10368 1.1 mrg echo "$as_me:10368: result: no" >&5
10369 1.1 mrg echo "${ECHO_T}no" >&6
10370 1.1 mrg fi
10371 1.1 mrg
10372 1.1 mrg if test "$FREETYPE_PKG_CONFIG" != none && "$FREETYPE_PKG_CONFIG" --exists xft; then
10373 1.1 mrg FREETYPE_CONFIG=$FREETYPE_PKG_CONFIG
10374 1.1 mrg FREETYPE_PARAMS=xft
10375 1.1 mrg else
10376 1.1 mrg # Extract the first word of "xft-config", so it can be a program name with args.
10377 1.1 mrg set dummy xft-config; ac_word=$2
10378 1.1 mrg echo "$as_me:10378: checking for $ac_word" >&5
10379 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10380 1.1 mrg if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
10381 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10382 1.1 mrg else
10383 1.1 mrg case $FREETYPE_XFT_CONFIG in
10384 1.1 mrg [\\/]* | ?:[\\/]*)
10385 1.1 mrg ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
10386 1.1 mrg ;;
10387 1.1 mrg *)
10388 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
10389 1.1 mrg ac_dummy="$PATH"
10390 1.1 mrg for ac_dir in $ac_dummy; do
10391 1.1 mrg IFS=$ac_save_IFS
10392 1.1 mrg test -z "$ac_dir" && ac_dir=.
10393 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
10394 1.1 mrg ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
10395 1.1 mrg echo "$as_me:10395: found $ac_dir/$ac_word" >&5
10396 1.1 mrg break
10397 1.1 mrg fi
10398 1.1 mrg done
10399 1.1 mrg
10400 1.1 mrg test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
10401 1.1 mrg ;;
10402 1.1 mrg esac
10403 1.1 mrg fi
10404 1.1 mrg FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
10405 1.1 mrg
10406 1.1 mrg if test -n "$FREETYPE_XFT_CONFIG"; then
10407 1.1 mrg echo "$as_me:10407: result: $FREETYPE_XFT_CONFIG" >&5
10408 1.1 mrg echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
10409 1.1 mrg else
10410 1.1 mrg echo "$as_me:10410: result: no" >&5
10411 1.1 mrg echo "${ECHO_T}no" >&6
10412 1.1 mrg fi
10413 1.1 mrg
10414 1.1 mrg if test "$FREETYPE_XFT_CONFIG" != none; then
10415 1.1 mrg FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
10416 1.1 mrg else
10417 1.1 mrg cf_extra_freetype_libs="-lXft"
10418 1.1 mrg # Extract the first word of "freetype-config", so it can be a program name with args.
10419 1.1 mrg set dummy freetype-config; ac_word=$2
10420 1.1 mrg echo "$as_me:10420: checking for $ac_word" >&5
10421 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10422 1.1 mrg if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
10423 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10424 1.1 mrg else
10425 1.1 mrg case $FREETYPE_OLD_CONFIG in
10426 1.1 mrg [\\/]* | ?:[\\/]*)
10427 1.1 mrg ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
10428 1.1 mrg ;;
10429 1.1 mrg *)
10430 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
10431 1.1 mrg ac_dummy="$PATH"
10432 1.1 mrg for ac_dir in $ac_dummy; do
10433 1.1 mrg IFS=$ac_save_IFS
10434 1.1 mrg test -z "$ac_dir" && ac_dir=.
10435 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
10436 1.1 mrg ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
10437 1.1 mrg echo "$as_me:10437: found $ac_dir/$ac_word" >&5
10438 1.1 mrg break
10439 1.1 mrg fi
10440 1.1 mrg done
10441 1.1 mrg
10442 1.1 mrg test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
10443 1.1 mrg ;;
10444 1.1 mrg esac
10445 1.1 mrg fi
10446 1.1 mrg FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
10447 1.1 mrg
10448 1.1 mrg if test -n "$FREETYPE_OLD_CONFIG"; then
10449 1.1 mrg echo "$as_me:10449: result: $FREETYPE_OLD_CONFIG" >&5
10450 1.1 mrg echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
10451 1.1 mrg else
10452 1.1 mrg echo "$as_me:10452: result: no" >&5
10453 1.1 mrg echo "${ECHO_T}no" >&6
10454 1.1 mrg fi
10455 1.1 mrg
10456 1.1 mrg if test "$FREETYPE_OLD_CONFIG" != none; then
10457 1.1 mrg FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
10458 1.1 mrg fi
10459 1.1 mrg fi
10460 1.1 mrg fi
10461 1.1 mrg
10462 1.1 mrg if test -n "$FREETYPE_CONFIG" ; then
10463 1.1 mrg
10464 1.1 mrg if test "$cf_cv_x_freetype_incs" = no ; then
10465 1.1 mrg echo "$as_me:10465: checking for $FREETYPE_CONFIG cflags" >&5
10466 1.1 mrg echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
10467 1.1 mrg cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
10468 1.1 mrg echo "$as_me:10468: result: $cf_cv_x_freetype_incs" >&5
10469 1.1 mrg echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
10470 1.1 mrg fi
10471 1.1 mrg
10472 1.1 mrg if test "$cf_cv_x_freetype_libs" = no ; then
10473 1.1 mrg echo "$as_me:10473: checking for $FREETYPE_CONFIG libs" >&5
10474 1.1 mrg echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
10475 1.1 mrg cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
10476 1.1 mrg echo "$as_me:10476: result: $cf_cv_x_freetype_libs" >&5
10477 1.1 mrg echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
10478 1.1 mrg fi
10479 1.1 mrg
10480 1.1 mrg fi
10481 1.1 mrg
10482 1.1 mrg if test "$cf_cv_x_freetype_incs" = no ; then
10483 1.1 mrg cf_cv_x_freetype_incs=
10484 1.1 mrg fi
10485 1.1 mrg
10486 1.1 mrg if test "$cf_cv_x_freetype_libs" = no ; then
10487 1.1 mrg cf_cv_x_freetype_libs=-lXft
10488 1.1 mrg fi
10489 1.1 mrg
10490 1.1 mrg echo "$as_me:10490: checking if we can link with FreeType libraries" >&5
10491 1.1 mrg echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
10492 1.1 mrg
10493 1.1 mrg cf_save_LIBS="$LIBS"
10494 1.1 mrg cf_save_INCS="$CPPFLAGS"
10495 1.1 mrg
10496 1.1 mrg LIBS="$cf_cv_x_freetype_libs $LIBS"
10497 1.1 mrg CPPFLAGS="$cf_cv_x_freetype_incs $CPPFLAGS"
10498 1.1 mrg
10499 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
10500 1.1 mrg #line 10500 "configure"
10501 1.1 mrg #include "confdefs.h"
10502 1.1 mrg
10503 1.1 mrg #include <X11/Xlib.h>
10504 1.1 mrg #include <X11/extensions/Xrender.h>
10505 1.1 mrg #include <X11/Xft/Xft.h>
10506 1.1 mrg int
10507 1.1 mrg main ()
10508 1.1 mrg {
10509 1.1 mrg
10510 1.1 mrg XftPattern *pat = XftNameParse ("name");
10511 1.1 mrg ;
10512 1.1 mrg return 0;
10513 1.1 mrg }
10514 1.1 mrg _ACEOF
10515 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
10516 1.1 mrg if { (eval echo "$as_me:10516: \"$ac_link\"") >&5
10517 1.1 mrg (eval $ac_link) 2>&5
10518 1.1 mrg ac_status=$?
10519 1.1 mrg echo "$as_me:10519: \$? = $ac_status" >&5
10520 1.1 mrg (exit $ac_status); } &&
10521 1.1 mrg { ac_try='test -s conftest$ac_exeext'
10522 1.1 mrg { (eval echo "$as_me:10522: \"$ac_try\"") >&5
10523 1.1 mrg (eval $ac_try) 2>&5
10524 1.1 mrg ac_status=$?
10525 1.1 mrg echo "$as_me:10525: \$? = $ac_status" >&5
10526 1.1 mrg (exit $ac_status); }; }; then
10527 1.1 mrg cf_cv_found_freetype=yes
10528 1.1 mrg else
10529 1.1 mrg echo "$as_me: failed program was:" >&5
10530 1.1 mrg cat conftest.$ac_ext >&5
10531 1.1 mrg cf_cv_found_freetype=no
10532 1.1 mrg fi
10533 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10534 1.1 mrg echo "$as_me:10534: result: $cf_cv_found_freetype" >&5
10535 1.1 mrg echo "${ECHO_T}$cf_cv_found_freetype" >&6
10536 1.1 mrg
10537 1.1 mrg LIBS="$cf_save_LIBS"
10538 1.1 mrg CPPFLAGS="$cf_save_INCS"
10539 1.1 mrg
10540 1.1 mrg if test "$cf_cv_found_freetype" = yes ; then
10541 1.1 mrg LIBS="$cf_cv_x_freetype_libs $LIBS"
10542 1.1 mrg
10543 1.1 mrg cf_fix_cppflags=no
10544 1.1 mrg cf_new_cflags=
10545 1.1 mrg cf_new_cppflags=
10546 1.1 mrg cf_new_extra_cppflags=
10547 1.1 mrg
10548 1.1 mrg for cf_add_cflags in $cf_cv_x_freetype_incs
10549 1.1 mrg do
10550 1.1 mrg case $cf_fix_cppflags in
10551 1.1 mrg no)
10552 1.1 mrg case $cf_add_cflags in #(vi
10553 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10554 1.1 mrg case $cf_add_cflags in
10555 1.1 mrg -D*)
10556 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10557 1.1 mrg
10558 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10559 1.1 mrg && test -z "${cf_tst_cflags}" \
10560 1.1 mrg && cf_fix_cppflags=yes
10561 1.1 mrg
10562 1.1 mrg if test $cf_fix_cppflags = yes ; then
10563 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10564 1.1 mrg continue
10565 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
10566 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10567 1.1 mrg continue
10568 1.1 mrg fi
10569 1.1 mrg ;;
10570 1.1 mrg esac
10571 1.1 mrg case "$CPPFLAGS" in
10572 1.1 mrg *$cf_add_cflags) #(vi
10573 1.1 mrg ;;
10574 1.1 mrg *) #(vi
10575 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10576 1.1 mrg ;;
10577 1.1 mrg esac
10578 1.1 mrg ;;
10579 1.1 mrg *)
10580 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10581 1.1 mrg ;;
10582 1.1 mrg esac
10583 1.1 mrg ;;
10584 1.1 mrg yes)
10585 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10586 1.1 mrg
10587 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10588 1.1 mrg
10589 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10590 1.1 mrg && test -z "${cf_tst_cflags}" \
10591 1.1 mrg && cf_fix_cppflags=no
10592 1.1 mrg ;;
10593 1.1 mrg esac
10594 1.1 mrg done
10595 1.1 mrg
10596 1.1 mrg if test -n "$cf_new_cflags" ; then
10597 1.1 mrg
10598 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
10599 1.1 mrg fi
10600 1.1 mrg
10601 1.1 mrg if test -n "$cf_new_cppflags" ; then
10602 1.1 mrg
10603 1.1 mrg CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
10604 1.1 mrg fi
10605 1.1 mrg
10606 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
10607 1.1 mrg
10608 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10609 1.1 mrg fi
10610 1.1 mrg
10611 1.1 mrg cat >>confdefs.h <<\EOF
10612 1.1 mrg #define XRENDERFONT 1
10613 1.1 mrg EOF
10614 1.1 mrg
10615 1.1 mrg for ac_func in \
10616 1.1 mrg XftDrawCharSpec \
10617 1.1 mrg XftDrawSetClip \
10618 1.1 mrg XftDrawSetClipRectangles \
10619 1.1 mrg
10620 1.1 mrg do
10621 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10622 1.1 mrg echo "$as_me:10622: checking for $ac_func" >&5
10623 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10624 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
10625 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10626 1.1 mrg else
10627 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
10628 1.1 mrg #line 10628 "configure"
10629 1.1 mrg #include "confdefs.h"
10630 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
10631 1.1 mrg which can conflict with char $ac_func (); below. */
10632 1.1 mrg #include <assert.h>
10633 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
10634 1.1 mrg #ifdef __cplusplus
10635 1.1 mrg extern "C"
10636 1.1 mrg #endif
10637 1.1 mrg /* We use char because int might match the return type of a gcc2
10638 1.1 mrg builtin and then its argument prototype would still apply. */
10639 1.1 mrg char $ac_func ();
10640 1.1 mrg char (*f) ();
10641 1.1 mrg
10642 1.1 mrg int
10643 1.1 mrg main ()
10644 1.1 mrg {
10645 1.1 mrg /* The GNU C library defines this for functions which it implements
10646 1.1 mrg to always fail with ENOSYS. Some functions are actually named
10647 1.1 mrg something starting with __ and the normal name is an alias. */
10648 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10649 1.1 mrg choke me
10650 1.1 mrg #else
10651 1.1 mrg f = $ac_func;
10652 1.1 mrg #endif
10653 1.1 mrg
10654 1.1 mrg ;
10655 1.1 mrg return 0;
10656 1.1 mrg }
10657 1.1 mrg _ACEOF
10658 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
10659 1.1 mrg if { (eval echo "$as_me:10659: \"$ac_link\"") >&5
10660 1.1 mrg (eval $ac_link) 2>&5
10661 1.1 mrg ac_status=$?
10662 1.1 mrg echo "$as_me:10662: \$? = $ac_status" >&5
10663 1.1 mrg (exit $ac_status); } &&
10664 1.1 mrg { ac_try='test -s conftest$ac_exeext'
10665 1.1 mrg { (eval echo "$as_me:10665: \"$ac_try\"") >&5
10666 1.1 mrg (eval $ac_try) 2>&5
10667 1.1 mrg ac_status=$?
10668 1.1 mrg echo "$as_me:10668: \$? = $ac_status" >&5
10669 1.1 mrg (exit $ac_status); }; }; then
10670 1.1 mrg eval "$as_ac_var=yes"
10671 1.1 mrg else
10672 1.1 mrg echo "$as_me: failed program was:" >&5
10673 1.1 mrg cat conftest.$ac_ext >&5
10674 1.1 mrg eval "$as_ac_var=no"
10675 1.1 mrg fi
10676 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677 1.1 mrg fi
10678 1.1 mrg echo "$as_me:10678: result: `eval echo '${'$as_ac_var'}'`" >&5
10679 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10680 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
10681 1.1 mrg cat >>confdefs.h <<EOF
10682 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10683 1.1 mrg EOF
10684 1.1 mrg
10685 1.1 mrg fi
10686 1.1 mrg done
10687 1.1 mrg
10688 1.1 mrg else
10689 1.1 mrg { echo "$as_me:10689: WARNING: No libraries found for FreeType" >&5
10690 1.1 mrg echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
10691 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
10692 1.1 mrg fi
10693 1.1 mrg
10694 1.1 mrg # FIXME: revisit this if needed
10695 1.1 mrg
10696 1.1 mrg else
10697 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
10698 1.1 mrg fi
10699 1.1 mrg
10700 1.1 mrg echo "$as_me:10700: checking if you want support for HP-style function keys" >&5
10701 1.1 mrg echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
10702 1.1 mrg
10703 1.1 mrg # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
10704 1.1 mrg if test "${enable_hp_fkeys+set}" = set; then
10705 1.1 mrg enableval="$enable_hp_fkeys"
10706 1.1 mrg test "$enableval" != yes && enableval=no
10707 1.1 mrg if test "$enableval" != "no" ; then
10708 1.1 mrg enable_hp_fkeys=yes
10709 1.1 mrg else
10710 1.1 mrg enable_hp_fkeys=no
10711 1.1 mrg fi
10712 1.1 mrg else
10713 1.1 mrg enableval=no
10714 1.1 mrg enable_hp_fkeys=no
10715 1.1 mrg
10716 1.1 mrg fi;
10717 1.1 mrg echo "$as_me:10717: result: $enable_hp_fkeys" >&5
10718 1.1 mrg echo "${ECHO_T}$enable_hp_fkeys" >&6
10719 1.1 mrg if test "$enable_hp_fkeys" = yes ; then
10720 1.1 mrg cat >>confdefs.h <<\EOF
10721 1.1 mrg #define OPT_HP_FUNC_KEYS 1
10722 1.1 mrg EOF
10723 1.1 mrg
10724 1.1 mrg fi
10725 1.1 mrg
10726 1.1 mrg echo "$as_me:10726: checking if you want support for SCO-style function keys" >&5
10727 1.1 mrg echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
10728 1.1 mrg
10729 1.1 mrg # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
10730 1.1 mrg if test "${enable_sco_fkeys+set}" = set; then
10731 1.1 mrg enableval="$enable_sco_fkeys"
10732 1.1 mrg test "$enableval" != yes && enableval=no
10733 1.1 mrg if test "$enableval" != "no" ; then
10734 1.1 mrg enable_sco_fkeys=yes
10735 1.1 mrg else
10736 1.1 mrg enable_sco_fkeys=no
10737 1.1 mrg fi
10738 1.1 mrg else
10739 1.1 mrg enableval=no
10740 1.1 mrg enable_sco_fkeys=no
10741 1.1 mrg
10742 1.1 mrg fi;
10743 1.1 mrg echo "$as_me:10743: result: $enable_sco_fkeys" >&5
10744 1.1 mrg echo "${ECHO_T}$enable_sco_fkeys" >&6
10745 1.1 mrg if test "$enable_sco_fkeys" = yes ; then
10746 1.1 mrg cat >>confdefs.h <<\EOF
10747 1.1 mrg #define OPT_SCO_FUNC_KEYS 1
10748 1.1 mrg EOF
10749 1.1 mrg
10750 1.1 mrg fi
10751 1.1 mrg
10752 1.1 mrg echo "$as_me:10752: checking if you want support for Sun-style function keys" >&5
10753 1.1 mrg echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
10754 1.1 mrg
10755 1.1 mrg # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
10756 1.1 mrg if test "${enable_sun_fkeys+set}" = set; then
10757 1.1 mrg enableval="$enable_sun_fkeys"
10758 1.1 mrg test "$enableval" != no && enableval=yes
10759 1.1 mrg if test "$enableval" != "yes" ; then
10760 1.1 mrg enable_sun_fkeys=no
10761 1.1 mrg else
10762 1.1 mrg enable_sun_fkeys=yes
10763 1.1 mrg fi
10764 1.1 mrg else
10765 1.1 mrg enableval=yes
10766 1.1 mrg enable_sun_fkeys=yes
10767 1.1 mrg
10768 1.1 mrg fi;
10769 1.1 mrg echo "$as_me:10769: result: $enable_sun_fkeys" >&5
10770 1.1 mrg echo "${ECHO_T}$enable_sun_fkeys" >&6
10771 1.1 mrg if test "$enable_sun_fkeys" = no ; then
10772 1.1 mrg cat >>confdefs.h <<\EOF
10773 1.1 mrg #define OPT_SUN_FUNC_KEYS 0
10774 1.1 mrg EOF
10775 1.1 mrg
10776 1.1 mrg fi
10777 1.1 mrg
10778 1.1 mrg echo "$as_me:10778: checking if you want support for internationalization" >&5
10779 1.1 mrg echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
10780 1.1 mrg
10781 1.1 mrg # Check whether --enable-i18n or --disable-i18n was given.
10782 1.1 mrg if test "${enable_i18n+set}" = set; then
10783 1.1 mrg enableval="$enable_i18n"
10784 1.1 mrg test "$enableval" != no && enableval=yes
10785 1.1 mrg if test "$enableval" != "yes" ; then
10786 1.1 mrg enable_i18n=no
10787 1.1 mrg else
10788 1.1 mrg enable_i18n=yes
10789 1.1 mrg fi
10790 1.1 mrg else
10791 1.1 mrg enableval=yes
10792 1.1 mrg enable_i18n=yes
10793 1.1 mrg
10794 1.1 mrg fi;
10795 1.1 mrg echo "$as_me:10795: result: $enable_i18n" >&5
10796 1.1 mrg echo "${ECHO_T}$enable_i18n" >&6
10797 1.1 mrg if test "$enable_i18n" = no ; then
10798 1.1 mrg cat >>confdefs.h <<\EOF
10799 1.1 mrg #define OPT_I18N_SUPPORT 0
10800 1.1 mrg EOF
10801 1.1 mrg
10802 1.1 mrg fi
10803 1.1 mrg
10804 1.1 mrg echo "$as_me:10804: checking if you want support for initial-erase setup" >&5
10805 1.1 mrg echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
10806 1.1 mrg
10807 1.1 mrg # Check whether --enable-initial-erase or --disable-initial-erase was given.
10808 1.1 mrg if test "${enable_initial_erase+set}" = set; then
10809 1.1 mrg enableval="$enable_initial_erase"
10810 1.1 mrg test "$enableval" != no && enableval=yes
10811 1.1 mrg if test "$enableval" != "yes" ; then
10812 1.1 mrg enable_ie=no
10813 1.1 mrg else
10814 1.1 mrg enable_ie=yes
10815 1.1 mrg fi
10816 1.1 mrg else
10817 1.1 mrg enableval=yes
10818 1.1 mrg enable_ie=yes
10819 1.1 mrg
10820 1.1 mrg fi;
10821 1.1 mrg echo "$as_me:10821: result: $enable_ie" >&5
10822 1.1 mrg echo "${ECHO_T}$enable_ie" >&6
10823 1.1 mrg if test "$enable_ie" = no ; then
10824 1.1 mrg cat >>confdefs.h <<\EOF
10825 1.1 mrg #define OPT_INITIAL_ERASE 0
10826 1.1 mrg EOF
10827 1.1 mrg
10828 1.1 mrg fi
10829 1.1 mrg
10830 1.1 mrg echo "$as_me:10830: checking if you want support for input-method" >&5
10831 1.1 mrg echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
10832 1.1 mrg
10833 1.1 mrg # Check whether --enable-input-method or --disable-input-method was given.
10834 1.1 mrg if test "${enable_input_method+set}" = set; then
10835 1.1 mrg enableval="$enable_input_method"
10836 1.1 mrg test "$enableval" != no && enableval=yes
10837 1.1 mrg if test "$enableval" != "yes" ; then
10838 1.1 mrg enable_ximp=no
10839 1.1 mrg else
10840 1.1 mrg enable_ximp=yes
10841 1.1 mrg fi
10842 1.1 mrg else
10843 1.1 mrg enableval=yes
10844 1.1 mrg enable_ximp=yes
10845 1.1 mrg
10846 1.1 mrg fi;
10847 1.1 mrg echo "$as_me:10847: result: $enable_ximp" >&5
10848 1.1 mrg echo "${ECHO_T}$enable_ximp" >&6
10849 1.1 mrg
10850 1.1 mrg echo "$as_me:10850: checking if X libraries support input-method" >&5
10851 1.1 mrg echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
10852 1.1 mrg if test "${cf_cv_input_method+set}" = set; then
10853 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10854 1.1 mrg else
10855 1.1 mrg
10856 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
10857 1.1 mrg #line 10857 "configure"
10858 1.1 mrg #include "confdefs.h"
10859 1.1 mrg
10860 1.1 mrg #include <X11/IntrinsicP.h>
10861 1.1 mrg #include <X11/Xatom.h>
10862 1.1 mrg #include <X11/Xutil.h>
10863 1.1 mrg #include <X11/Xmu/Atoms.h>
10864 1.1 mrg #include <X11/Xmu/Converters.h>
10865 1.1 mrg #include <X11/Xaw/XawImP.h>
10866 1.1 mrg
10867 1.1 mrg int
10868 1.1 mrg main ()
10869 1.1 mrg {
10870 1.1 mrg
10871 1.1 mrg {
10872 1.1 mrg XIM xim;
10873 1.1 mrg XIMStyles *xim_styles = 0;
10874 1.1 mrg XIMStyle input_style;
10875 1.1 mrg Widget w = 0;
10876 1.1 mrg
10877 1.1 mrg XSetLocaleModifiers("@im=none");
10878 1.1 mrg xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
10879 1.1 mrg XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
10880 1.1 mrg XCloseIM(xim);
10881 1.1 mrg input_style = (XIMPreeditNothing | XIMStatusNothing);
10882 1.1 mrg }
10883 1.1 mrg
10884 1.1 mrg ;
10885 1.1 mrg return 0;
10886 1.1 mrg }
10887 1.1 mrg _ACEOF
10888 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
10889 1.1 mrg if { (eval echo "$as_me:10889: \"$ac_link\"") >&5
10890 1.1 mrg (eval $ac_link) 2>&5
10891 1.1 mrg ac_status=$?
10892 1.1 mrg echo "$as_me:10892: \$? = $ac_status" >&5
10893 1.1 mrg (exit $ac_status); } &&
10894 1.1 mrg { ac_try='test -s conftest$ac_exeext'
10895 1.1 mrg { (eval echo "$as_me:10895: \"$ac_try\"") >&5
10896 1.1 mrg (eval $ac_try) 2>&5
10897 1.1 mrg ac_status=$?
10898 1.1 mrg echo "$as_me:10898: \$? = $ac_status" >&5
10899 1.1 mrg (exit $ac_status); }; }; then
10900 1.1 mrg cf_cv_input_method=yes
10901 1.1 mrg else
10902 1.1 mrg echo "$as_me: failed program was:" >&5
10903 1.1 mrg cat conftest.$ac_ext >&5
10904 1.1 mrg cf_cv_input_method=no
10905 1.1 mrg fi
10906 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10907 1.1 mrg fi
10908 1.1 mrg echo "$as_me:10908: result: $cf_cv_input_method" >&5
10909 1.1 mrg echo "${ECHO_T}$cf_cv_input_method" >&6
10910 1.1 mrg
10911 1.1 mrg test "$cf_cv_input_method" = no && enable_ximp=no
10912 1.1 mrg if test "$enable_ximp" = no ; then
10913 1.1 mrg cat >>confdefs.h <<\EOF
10914 1.1 mrg #define OPT_INPUT_METHOD 0
10915 1.1 mrg EOF
10916 1.1 mrg
10917 1.1 mrg fi
10918 1.1 mrg
10919 1.1 mrg echo "$as_me:10919: checking if you want support for load-vt-fonts" >&5
10920 1.1 mrg echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
10921 1.1 mrg
10922 1.1 mrg # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
10923 1.1 mrg if test "${enable_load_vt_fonts+set}" = set; then
10924 1.1 mrg enableval="$enable_load_vt_fonts"
10925 1.1 mrg test "$enableval" != yes && enableval=no
10926 1.1 mrg if test "$enableval" != "no" ; then
10927 1.1 mrg enable_load_vt_fonts=yes
10928 1.1 mrg else
10929 1.1 mrg enable_load_vt_fonts=no
10930 1.1 mrg fi
10931 1.1 mrg else
10932 1.1 mrg enableval=no
10933 1.1 mrg enable_load_vt_fonts=no
10934 1.1 mrg
10935 1.1 mrg fi;
10936 1.1 mrg echo "$as_me:10936: result: $enable_load_vt_fonts" >&5
10937 1.1 mrg echo "${ECHO_T}$enable_load_vt_fonts" >&6
10938 1.1 mrg if test "$enable_load_vt_fonts" = yes ; then
10939 1.1 mrg cat >>confdefs.h <<\EOF
10940 1.1 mrg #define OPT_LOAD_VTFONTS 1
10941 1.1 mrg EOF
10942 1.1 mrg
10943 1.1 mrg fi
10944 1.1 mrg
10945 1.1 mrg echo "$as_me:10945: checking if you want support for logging" >&5
10946 1.1 mrg echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
10947 1.1 mrg
10948 1.1 mrg # Check whether --enable-logging or --disable-logging was given.
10949 1.1 mrg if test "${enable_logging+set}" = set; then
10950 1.1 mrg enableval="$enable_logging"
10951 1.1 mrg test "$enableval" != yes && enableval=no
10952 1.1 mrg if test "$enableval" != "no" ; then
10953 1.1 mrg enable_logging=yes
10954 1.1 mrg else
10955 1.1 mrg enable_logging=no
10956 1.1 mrg fi
10957 1.1 mrg else
10958 1.1 mrg enableval=no
10959 1.1 mrg enable_logging=no
10960 1.1 mrg
10961 1.1 mrg fi;
10962 1.1 mrg echo "$as_me:10962: result: $enable_logging" >&5
10963 1.1 mrg echo "${ECHO_T}$enable_logging" >&6
10964 1.1 mrg if test "$enable_logging" = yes ; then
10965 1.1 mrg cat >>confdefs.h <<\EOF
10966 1.1 mrg #define ALLOWLOGGING 1
10967 1.1 mrg EOF
10968 1.1 mrg
10969 1.1 mrg echo "$as_me:10969: checking if you want to allow logging via a pipe" >&5
10970 1.1 mrg echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
10971 1.1 mrg
10972 1.1 mrg # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
10973 1.1 mrg if test "${enable_logfile_exec+set}" = set; then
10974 1.1 mrg enableval="$enable_logfile_exec"
10975 1.1 mrg test "$enableval" != yes && enableval=no
10976 1.1 mrg if test "$enableval" != "no" ; then
10977 1.1 mrg enable_log_exec=yes
10978 1.1 mrg else
10979 1.1 mrg enable_log_exec=no
10980 1.1 mrg fi
10981 1.1 mrg else
10982 1.1 mrg enableval=no
10983 1.1 mrg enable_log_exec=no
10984 1.1 mrg
10985 1.1 mrg fi;
10986 1.1 mrg echo "$as_me:10986: result: $enable_log_exec" >&5
10987 1.1 mrg echo "${ECHO_T}$enable_log_exec" >&6
10988 1.1 mrg if test "$enable_log_exec" = yes ; then
10989 1.1 mrg cat >>confdefs.h <<\EOF
10990 1.1 mrg #define ALLOWLOGFILEEXEC 1
10991 1.1 mrg EOF
10992 1.1 mrg
10993 1.1 mrg fi
10994 1.1 mrg fi
10995 1.1 mrg
10996 1.1 mrg echo "$as_me:10996: checking if you want support for iconify/maximize translations" >&5
10997 1.1 mrg echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
10998 1.1 mrg
10999 1.1 mrg # Check whether --enable-maximize or --disable-maximize was given.
11000 1.1 mrg if test "${enable_maximize+set}" = set; then
11001 1.1 mrg enableval="$enable_maximize"
11002 1.1 mrg test "$enableval" != no && enableval=yes
11003 1.1 mrg if test "$enableval" != "yes" ; then
11004 1.1 mrg enable_maximize=no
11005 1.1 mrg else
11006 1.1 mrg enable_maximize=yes
11007 1.1 mrg fi
11008 1.1 mrg else
11009 1.1 mrg enableval=yes
11010 1.1 mrg enable_maximize=yes
11011 1.1 mrg
11012 1.1 mrg fi;
11013 1.1 mrg echo "$as_me:11013: result: $enable_maximize" >&5
11014 1.1 mrg echo "${ECHO_T}$enable_maximize" >&6
11015 1.1 mrg test "$enable_maximize" = no && cat >>confdefs.h <<\EOF
11016 1.1 mrg #define OPT_MAXIMIZE 0
11017 1.1 mrg EOF
11018 1.1 mrg
11019 1.1 mrg echo "$as_me:11019: checking if you want NumLock to override keyboard tables" >&5
11020 1.1 mrg echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
11021 1.1 mrg
11022 1.1 mrg # Check whether --enable-num-lock or --disable-num-lock was given.
11023 1.1 mrg if test "${enable_num_lock+set}" = set; then
11024 1.1 mrg enableval="$enable_num_lock"
11025 1.1 mrg test "$enableval" != no && enableval=yes
11026 1.1 mrg if test "$enableval" != "yes" ; then
11027 1.1 mrg enable_numlock=no
11028 1.1 mrg else
11029 1.1 mrg enable_numlock=yes
11030 1.1 mrg fi
11031 1.1 mrg else
11032 1.1 mrg enableval=yes
11033 1.1 mrg enable_numlock=yes
11034 1.1 mrg
11035 1.1 mrg fi;
11036 1.1 mrg echo "$as_me:11036: result: $enable_numlock" >&5
11037 1.1 mrg echo "${ECHO_T}$enable_numlock" >&6
11038 1.1 mrg test "$enable_numlock" = no && cat >>confdefs.h <<\EOF
11039 1.1 mrg #define OPT_NUM_LOCK 0
11040 1.1 mrg EOF
11041 1.1 mrg
11042 1.1 mrg echo "$as_me:11042: checking if you want support for get/set of base64 selection data" >&5
11043 1.1 mrg echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
11044 1.1 mrg
11045 1.1 mrg # Check whether --enable-paste64 or --disable-paste64 was given.
11046 1.1 mrg if test "${enable_paste64+set}" = set; then
11047 1.1 mrg enableval="$enable_paste64"
11048 1.1.1.2 christos test "$enableval" != no && enableval=yes
11049 1.1.1.2 christos if test "$enableval" != "yes" ; then
11050 1.1 mrg enable_paste64=no
11051 1.1.1.2 christos else
11052 1.1.1.2 christos enable_paste64=yes
11053 1.1 mrg fi
11054 1.1 mrg else
11055 1.1.1.2 christos enableval=yes
11056 1.1.1.2 christos enable_paste64=yes
11057 1.1 mrg
11058 1.1 mrg fi;
11059 1.1 mrg echo "$as_me:11059: result: $enable_paste64" >&5
11060 1.1 mrg echo "${ECHO_T}$enable_paste64" >&6
11061 1.1 mrg if test "$enable_paste64" = yes ; then
11062 1.1 mrg cat >>confdefs.h <<\EOF
11063 1.1 mrg #define OPT_PASTE64 1
11064 1.1 mrg EOF
11065 1.1 mrg
11066 1.1 mrg else
11067 1.1 mrg cat >>confdefs.h <<\EOF
11068 1.1 mrg #define OPT_PASTE64 0
11069 1.1 mrg EOF
11070 1.1 mrg
11071 1.1 mrg fi
11072 1.1 mrg
11073 1.1 mrg echo "$as_me:11073: checking if you want support for pty-handshaking" >&5
11074 1.1 mrg echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
11075 1.1 mrg
11076 1.1 mrg # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
11077 1.1 mrg if test "${enable_pty_handshake+set}" = set; then
11078 1.1 mrg enableval="$enable_pty_handshake"
11079 1.1 mrg test "$enableval" != no && enableval=yes
11080 1.1 mrg if test "$enableval" != "yes" ; then
11081 1.1 mrg enable_pty_handshake=no
11082 1.1 mrg else
11083 1.1 mrg enable_pty_handshake=yes
11084 1.1 mrg fi
11085 1.1 mrg else
11086 1.1 mrg enableval=yes
11087 1.1 mrg enable_pty_handshake=yes
11088 1.1 mrg
11089 1.1 mrg fi;
11090 1.1 mrg echo "$as_me:11090: result: $enable_pty_handshake" >&5
11091 1.1 mrg echo "${ECHO_T}$enable_pty_handshake" >&6
11092 1.1 mrg if test "$enable_pty_handshake" = yes ; then
11093 1.1 mrg cat >>confdefs.h <<\EOF
11094 1.1 mrg #define OPT_PTY_HANDSHAKE 1
11095 1.1 mrg EOF
11096 1.1 mrg
11097 1.1 mrg else
11098 1.1 mrg cat >>confdefs.h <<\EOF
11099 1.1 mrg #define OPT_PTY_HANDSHAKE 0
11100 1.1 mrg EOF
11101 1.1 mrg
11102 1.1 mrg fi
11103 1.1 mrg
11104 1.1 mrg echo "$as_me:11104: checking if you want support for mouse in readline applications" >&5
11105 1.1 mrg echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
11106 1.1 mrg
11107 1.1 mrg # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
11108 1.1 mrg if test "${enable_readline_mouse+set}" = set; then
11109 1.1 mrg enableval="$enable_readline_mouse"
11110 1.1 mrg test "$enableval" != yes && enableval=no
11111 1.1 mrg if test "$enableval" != "no" ; then
11112 1.1 mrg enable_readline_mouse=yes
11113 1.1 mrg else
11114 1.1 mrg enable_readline_mouse=no
11115 1.1 mrg fi
11116 1.1 mrg else
11117 1.1 mrg enableval=no
11118 1.1 mrg enable_readline_mouse=no
11119 1.1 mrg
11120 1.1 mrg fi;
11121 1.1 mrg echo "$as_me:11121: result: $enable_readline_mouse" >&5
11122 1.1 mrg echo "${ECHO_T}$enable_readline_mouse" >&6
11123 1.1 mrg if test "$enable_readline_mouse" = yes ; then
11124 1.1 mrg cat >>confdefs.h <<\EOF
11125 1.1 mrg #define OPT_READLINE 1
11126 1.1 mrg EOF
11127 1.1 mrg
11128 1.1 mrg fi
11129 1.1 mrg
11130 1.1 mrg echo "$as_me:11130: checking if you want support for regular-expression selections" >&5
11131 1.1 mrg echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
11132 1.1 mrg
11133 1.1 mrg # Check whether --enable-regex or --disable-regex was given.
11134 1.1 mrg if test "${enable_regex+set}" = set; then
11135 1.1 mrg enableval="$enable_regex"
11136 1.1 mrg test "$enableval" != no && enableval=yes
11137 1.1 mrg if test "$enableval" != "yes" ; then
11138 1.1 mrg enable_regex=no
11139 1.1 mrg else
11140 1.1 mrg enable_regex=yes
11141 1.1 mrg fi
11142 1.1 mrg else
11143 1.1 mrg enableval=yes
11144 1.1 mrg enable_regex=yes
11145 1.1 mrg
11146 1.1 mrg fi;
11147 1.1 mrg echo "$as_me:11147: result: $enable_regex" >&5
11148 1.1 mrg echo "${ECHO_T}$enable_regex" >&6
11149 1.1 mrg if test "$enable_regex" = yes ; then
11150 1.1 mrg
11151 1.1 mrg echo "$as_me:11151: checking if you want to use PCRE for regular-expressions" >&5
11152 1.1 mrg echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
11153 1.1 mrg
11154 1.1 mrg # Check whether --with-pcre or --without-pcre was given.
11155 1.1 mrg if test "${with_pcre+set}" = set; then
11156 1.1 mrg withval="$with_pcre"
11157 1.1 mrg
11158 1.1 mrg fi;
11159 1.1 mrg test -z "$with_pcre" && with_pcre=no
11160 1.1 mrg echo "$as_me:11160: result: $with_pcre" >&5
11161 1.1 mrg echo "${ECHO_T}$with_pcre" >&6
11162 1.1 mrg
11163 1.1 mrg if test "$with_pcre" != no ; then
11164 1.1 mrg echo "$as_me:11164: checking for pcre_compile in -lpcre" >&5
11165 1.1 mrg echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
11166 1.1 mrg if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
11167 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11168 1.1 mrg else
11169 1.1 mrg ac_check_lib_save_LIBS=$LIBS
11170 1.1 mrg LIBS="-lpcre $LIBS"
11171 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11172 1.1 mrg #line 11172 "configure"
11173 1.1 mrg #include "confdefs.h"
11174 1.1 mrg
11175 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
11176 1.1 mrg #ifdef __cplusplus
11177 1.1 mrg extern "C"
11178 1.1 mrg #endif
11179 1.1 mrg /* We use char because int might match the return type of a gcc2
11180 1.1 mrg builtin and then its argument prototype would still apply. */
11181 1.1 mrg char pcre_compile ();
11182 1.1 mrg int
11183 1.1 mrg main ()
11184 1.1 mrg {
11185 1.1 mrg pcre_compile ();
11186 1.1 mrg ;
11187 1.1 mrg return 0;
11188 1.1 mrg }
11189 1.1 mrg _ACEOF
11190 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11191 1.1 mrg if { (eval echo "$as_me:11191: \"$ac_link\"") >&5
11192 1.1 mrg (eval $ac_link) 2>&5
11193 1.1 mrg ac_status=$?
11194 1.1 mrg echo "$as_me:11194: \$? = $ac_status" >&5
11195 1.1 mrg (exit $ac_status); } &&
11196 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11197 1.1 mrg { (eval echo "$as_me:11197: \"$ac_try\"") >&5
11198 1.1 mrg (eval $ac_try) 2>&5
11199 1.1 mrg ac_status=$?
11200 1.1 mrg echo "$as_me:11200: \$? = $ac_status" >&5
11201 1.1 mrg (exit $ac_status); }; }; then
11202 1.1 mrg ac_cv_lib_pcre_pcre_compile=yes
11203 1.1 mrg else
11204 1.1 mrg echo "$as_me: failed program was:" >&5
11205 1.1 mrg cat conftest.$ac_ext >&5
11206 1.1 mrg ac_cv_lib_pcre_pcre_compile=no
11207 1.1 mrg fi
11208 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11209 1.1 mrg LIBS=$ac_check_lib_save_LIBS
11210 1.1 mrg fi
11211 1.1 mrg echo "$as_me:11211: result: $ac_cv_lib_pcre_pcre_compile" >&5
11212 1.1 mrg echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
11213 1.1 mrg if test $ac_cv_lib_pcre_pcre_compile = yes; then
11214 1.1 mrg echo "$as_me:11214: checking for pcreposix.h" >&5
11215 1.1 mrg echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
11216 1.1 mrg if test "${ac_cv_header_pcreposix_h+set}" = set; then
11217 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11218 1.1 mrg else
11219 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11220 1.1 mrg #line 11220 "configure"
11221 1.1 mrg #include "confdefs.h"
11222 1.1 mrg #include <pcreposix.h>
11223 1.1 mrg _ACEOF
11224 1.1 mrg if { (eval echo "$as_me:11224: \"$ac_cpp conftest.$ac_ext\"") >&5
11225 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11226 1.1 mrg ac_status=$?
11227 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
11228 1.1 mrg rm -f conftest.er1
11229 1.1 mrg cat conftest.err >&5
11230 1.1 mrg echo "$as_me:11230: \$? = $ac_status" >&5
11231 1.1 mrg (exit $ac_status); } >/dev/null; then
11232 1.1 mrg if test -s conftest.err; then
11233 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
11234 1.1 mrg else
11235 1.1 mrg ac_cpp_err=
11236 1.1 mrg fi
11237 1.1 mrg else
11238 1.1 mrg ac_cpp_err=yes
11239 1.1 mrg fi
11240 1.1 mrg if test -z "$ac_cpp_err"; then
11241 1.1 mrg ac_cv_header_pcreposix_h=yes
11242 1.1 mrg else
11243 1.1 mrg echo "$as_me: failed program was:" >&5
11244 1.1 mrg cat conftest.$ac_ext >&5
11245 1.1 mrg ac_cv_header_pcreposix_h=no
11246 1.1 mrg fi
11247 1.1 mrg rm -f conftest.err conftest.$ac_ext
11248 1.1 mrg fi
11249 1.1 mrg echo "$as_me:11249: result: $ac_cv_header_pcreposix_h" >&5
11250 1.1 mrg echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
11251 1.1 mrg if test $ac_cv_header_pcreposix_h = yes; then
11252 1.1 mrg echo "$as_me:11252: checking for pcreposix_regcomp in -lpcreposix" >&5
11253 1.1 mrg echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
11254 1.1 mrg if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
11255 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11256 1.1 mrg else
11257 1.1 mrg ac_check_lib_save_LIBS=$LIBS
11258 1.1 mrg LIBS="-lpcreposix "-lpcre" $LIBS"
11259 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11260 1.1 mrg #line 11260 "configure"
11261 1.1 mrg #include "confdefs.h"
11262 1.1 mrg
11263 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
11264 1.1 mrg #ifdef __cplusplus
11265 1.1 mrg extern "C"
11266 1.1 mrg #endif
11267 1.1 mrg /* We use char because int might match the return type of a gcc2
11268 1.1 mrg builtin and then its argument prototype would still apply. */
11269 1.1 mrg char pcreposix_regcomp ();
11270 1.1 mrg int
11271 1.1 mrg main ()
11272 1.1 mrg {
11273 1.1 mrg pcreposix_regcomp ();
11274 1.1 mrg ;
11275 1.1 mrg return 0;
11276 1.1 mrg }
11277 1.1 mrg _ACEOF
11278 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11279 1.1 mrg if { (eval echo "$as_me:11279: \"$ac_link\"") >&5
11280 1.1 mrg (eval $ac_link) 2>&5
11281 1.1 mrg ac_status=$?
11282 1.1 mrg echo "$as_me:11282: \$? = $ac_status" >&5
11283 1.1 mrg (exit $ac_status); } &&
11284 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11285 1.1 mrg { (eval echo "$as_me:11285: \"$ac_try\"") >&5
11286 1.1 mrg (eval $ac_try) 2>&5
11287 1.1 mrg ac_status=$?
11288 1.1 mrg echo "$as_me:11288: \$? = $ac_status" >&5
11289 1.1 mrg (exit $ac_status); }; }; then
11290 1.1 mrg ac_cv_lib_pcreposix_pcreposix_regcomp=yes
11291 1.1 mrg else
11292 1.1 mrg echo "$as_me: failed program was:" >&5
11293 1.1 mrg cat conftest.$ac_ext >&5
11294 1.1 mrg ac_cv_lib_pcreposix_pcreposix_regcomp=no
11295 1.1 mrg fi
11296 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11297 1.1 mrg LIBS=$ac_check_lib_save_LIBS
11298 1.1 mrg fi
11299 1.1 mrg echo "$as_me:11299: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
11300 1.1 mrg echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
11301 1.1 mrg if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
11302 1.1 mrg cat >>confdefs.h <<\EOF
11303 1.1 mrg #define HAVE_LIB_PCRE 1
11304 1.1 mrg EOF
11305 1.1 mrg
11306 1.1 mrg cat >>confdefs.h <<\EOF
11307 1.1 mrg #define HAVE_PCREPOSIX_H 1
11308 1.1 mrg EOF
11309 1.1 mrg
11310 1.1 mrg LIBS="-lpcreposix -lpcre $LIBS"
11311 1.1 mrg else
11312 1.1 mrg { { echo "$as_me:11312: error: Cannot find PCRE POSIX library" >&5
11313 1.1 mrg echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
11314 1.1 mrg { (exit 1); exit 1; }; }
11315 1.1 mrg fi
11316 1.1 mrg
11317 1.1 mrg else
11318 1.1 mrg { { echo "$as_me:11318: error: Cannot find PCRE POSIX header" >&5
11319 1.1 mrg echo "$as_me: error: Cannot find PCRE POSIX header" >&2;}
11320 1.1 mrg { (exit 1); exit 1; }; }
11321 1.1 mrg fi
11322 1.1 mrg
11323 1.1 mrg else
11324 1.1 mrg { { echo "$as_me:11324: error: Cannot find PCRE library" >&5
11325 1.1 mrg echo "$as_me: error: Cannot find PCRE library" >&2;}
11326 1.1 mrg { (exit 1); exit 1; }; }
11327 1.1 mrg fi
11328 1.1 mrg
11329 1.1 mrg fi
11330 1.1 mrg
11331 1.1 mrg if test "$with_pcre" = no ; then
11332 1.1 mrg
11333 1.1 mrg echo "$as_me:11333: checking for regular-expression headers" >&5
11334 1.1 mrg echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
11335 1.1 mrg if test "${cf_cv_regex+set}" = set; then
11336 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11337 1.1 mrg else
11338 1.1 mrg
11339 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11340 1.1 mrg #line 11340 "configure"
11341 1.1 mrg #include "confdefs.h"
11342 1.1 mrg #include <sys/types.h>
11343 1.1 mrg #include <regex.h>
11344 1.1 mrg int
11345 1.1 mrg main ()
11346 1.1 mrg {
11347 1.1 mrg
11348 1.1 mrg regex_t *p;
11349 1.1 mrg int x = regcomp(p, "", 0);
11350 1.1 mrg int y = regexec(p, "", 0, 0, 0);
11351 1.1 mrg regfree(p);
11352 1.1 mrg
11353 1.1 mrg ;
11354 1.1 mrg return 0;
11355 1.1 mrg }
11356 1.1 mrg _ACEOF
11357 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11358 1.1 mrg if { (eval echo "$as_me:11358: \"$ac_link\"") >&5
11359 1.1 mrg (eval $ac_link) 2>&5
11360 1.1 mrg ac_status=$?
11361 1.1 mrg echo "$as_me:11361: \$? = $ac_status" >&5
11362 1.1 mrg (exit $ac_status); } &&
11363 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11364 1.1 mrg { (eval echo "$as_me:11364: \"$ac_try\"") >&5
11365 1.1 mrg (eval $ac_try) 2>&5
11366 1.1 mrg ac_status=$?
11367 1.1 mrg echo "$as_me:11367: \$? = $ac_status" >&5
11368 1.1 mrg (exit $ac_status); }; }; then
11369 1.1 mrg cf_cv_regex="regex.h"
11370 1.1 mrg else
11371 1.1 mrg echo "$as_me: failed program was:" >&5
11372 1.1 mrg cat conftest.$ac_ext >&5
11373 1.1 mrg
11374 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11375 1.1 mrg #line 11375 "configure"
11376 1.1 mrg #include "confdefs.h"
11377 1.1 mrg #include <regexp.h>
11378 1.1 mrg int
11379 1.1 mrg main ()
11380 1.1 mrg {
11381 1.1 mrg
11382 1.1 mrg char *p = compile("", "", "", 0);
11383 1.1 mrg int x = step("", "");
11384 1.1 mrg
11385 1.1 mrg ;
11386 1.1 mrg return 0;
11387 1.1 mrg }
11388 1.1 mrg _ACEOF
11389 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11390 1.1 mrg if { (eval echo "$as_me:11390: \"$ac_link\"") >&5
11391 1.1 mrg (eval $ac_link) 2>&5
11392 1.1 mrg ac_status=$?
11393 1.1 mrg echo "$as_me:11393: \$? = $ac_status" >&5
11394 1.1 mrg (exit $ac_status); } &&
11395 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11396 1.1 mrg { (eval echo "$as_me:11396: \"$ac_try\"") >&5
11397 1.1 mrg (eval $ac_try) 2>&5
11398 1.1 mrg ac_status=$?
11399 1.1 mrg echo "$as_me:11399: \$? = $ac_status" >&5
11400 1.1 mrg (exit $ac_status); }; }; then
11401 1.1 mrg cf_cv_regex="regexp.h"
11402 1.1 mrg else
11403 1.1 mrg echo "$as_me: failed program was:" >&5
11404 1.1 mrg cat conftest.$ac_ext >&5
11405 1.1 mrg
11406 1.1 mrg cf_save_LIBS="$LIBS"
11407 1.1 mrg LIBS="-lgen $LIBS"
11408 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11409 1.1 mrg #line 11409 "configure"
11410 1.1 mrg #include "confdefs.h"
11411 1.1 mrg #include <regexpr.h>
11412 1.1 mrg int
11413 1.1 mrg main ()
11414 1.1 mrg {
11415 1.1 mrg
11416 1.1 mrg char *p = compile("", "", "");
11417 1.1 mrg int x = step("", "");
11418 1.1 mrg
11419 1.1 mrg ;
11420 1.1 mrg return 0;
11421 1.1 mrg }
11422 1.1 mrg _ACEOF
11423 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11424 1.1 mrg if { (eval echo "$as_me:11424: \"$ac_link\"") >&5
11425 1.1 mrg (eval $ac_link) 2>&5
11426 1.1 mrg ac_status=$?
11427 1.1 mrg echo "$as_me:11427: \$? = $ac_status" >&5
11428 1.1 mrg (exit $ac_status); } &&
11429 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11430 1.1 mrg { (eval echo "$as_me:11430: \"$ac_try\"") >&5
11431 1.1 mrg (eval $ac_try) 2>&5
11432 1.1 mrg ac_status=$?
11433 1.1 mrg echo "$as_me:11433: \$? = $ac_status" >&5
11434 1.1 mrg (exit $ac_status); }; }; then
11435 1.1 mrg cf_cv_regex="regexpr.h"
11436 1.1 mrg else
11437 1.1 mrg echo "$as_me: failed program was:" >&5
11438 1.1 mrg cat conftest.$ac_ext >&5
11439 1.1 mrg LIBS="$cf_save_LIBS"
11440 1.1 mrg fi
11441 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442 1.1 mrg fi
11443 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 1.1 mrg fi
11445 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11446 1.1 mrg
11447 1.1 mrg fi
11448 1.1 mrg
11449 1.1 mrg echo "$as_me:11449: result: $cf_cv_regex" >&5
11450 1.1 mrg echo "${ECHO_T}$cf_cv_regex" >&6
11451 1.1 mrg case $cf_cv_regex in
11452 1.1 mrg regex.h) cat >>confdefs.h <<\EOF
11453 1.1 mrg #define HAVE_REGEX_H_FUNCS 1
11454 1.1 mrg EOF
11455 1.1 mrg ;;
11456 1.1 mrg regexp.h) cat >>confdefs.h <<\EOF
11457 1.1 mrg #define HAVE_REGEXP_H_FUNCS 1
11458 1.1 mrg EOF
11459 1.1 mrg ;;
11460 1.1 mrg regexpr.h) cat >>confdefs.h <<\EOF
11461 1.1 mrg #define HAVE_REGEXPR_H_FUNCS 1
11462 1.1 mrg EOF
11463 1.1 mrg ;;
11464 1.1 mrg esac
11465 1.1 mrg
11466 1.1 mrg if test "X$cf_cv_regex" != "Xregex.h" ; then
11467 1.1 mrg { { echo "$as_me:11467: error: Only POSIX or PCRE regular expressions are supported" >&5
11468 1.1 mrg echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
11469 1.1 mrg { (exit 1); exit 1; }; }
11470 1.1 mrg fi
11471 1.1 mrg fi
11472 1.1 mrg cat >>confdefs.h <<\EOF
11473 1.1 mrg #define OPT_SELECT_REGEX 1
11474 1.1 mrg EOF
11475 1.1 mrg
11476 1.1 mrg fi
11477 1.1 mrg
11478 1.1 mrg echo "$as_me:11478: checking if you want support for right-scrollbar" >&5
11479 1.1 mrg echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
11480 1.1 mrg
11481 1.1 mrg # Check whether --enable-rightbar or --disable-rightbar was given.
11482 1.1 mrg if test "${enable_rightbar+set}" = set; then
11483 1.1 mrg enableval="$enable_rightbar"
11484 1.1 mrg test "$enableval" != no && enableval=yes
11485 1.1 mrg if test "$enableval" != "yes" ; then
11486 1.1 mrg enable_rightbar=no
11487 1.1 mrg else
11488 1.1 mrg enable_rightbar=yes
11489 1.1 mrg fi
11490 1.1 mrg else
11491 1.1 mrg enableval=yes
11492 1.1 mrg enable_rightbar=yes
11493 1.1 mrg
11494 1.1 mrg fi;
11495 1.1 mrg echo "$as_me:11495: result: $enable_rightbar" >&5
11496 1.1 mrg echo "${ECHO_T}$enable_rightbar" >&6
11497 1.1 mrg if test "$enable_rightbar" = yes ; then
11498 1.1 mrg cat >>confdefs.h <<\EOF
11499 1.1 mrg #define SCROLLBAR_RIGHT 1
11500 1.1 mrg EOF
11501 1.1 mrg
11502 1.1 mrg fi
11503 1.1 mrg
11504 1.1 mrg echo "$as_me:11504: checking if you want check for redundant name-change" >&5
11505 1.1 mrg echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
11506 1.1 mrg
11507 1.1 mrg # Check whether --enable-samename or --disable-samename was given.
11508 1.1 mrg if test "${enable_samename+set}" = set; then
11509 1.1 mrg enableval="$enable_samename"
11510 1.1 mrg test "$enableval" != no && enableval=yes
11511 1.1 mrg if test "$enableval" != "yes" ; then
11512 1.1 mrg enable_samename=no
11513 1.1 mrg else
11514 1.1 mrg enable_samename=yes
11515 1.1 mrg fi
11516 1.1 mrg else
11517 1.1 mrg enableval=yes
11518 1.1 mrg enable_samename=yes
11519 1.1 mrg
11520 1.1 mrg fi;
11521 1.1 mrg echo "$as_me:11521: result: $enable_samename" >&5
11522 1.1 mrg echo "${ECHO_T}$enable_samename" >&6
11523 1.1 mrg test "$enable_samename" = no && cat >>confdefs.h <<\EOF
11524 1.1 mrg #define OPT_SAME_NAME 0
11525 1.1 mrg EOF
11526 1.1 mrg
11527 1.1 mrg echo "$as_me:11527: checking if you want support for session management" >&5
11528 1.1 mrg echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
11529 1.1 mrg
11530 1.1 mrg # Check whether --enable-session-mgt or --disable-session-mgt was given.
11531 1.1 mrg if test "${enable_session_mgt+set}" = set; then
11532 1.1 mrg enableval="$enable_session_mgt"
11533 1.1 mrg test "$enableval" != no && enableval=yes
11534 1.1 mrg if test "$enableval" != "yes" ; then
11535 1.1 mrg enable_session_mgt=no
11536 1.1 mrg else
11537 1.1 mrg enable_session_mgt=yes
11538 1.1 mrg fi
11539 1.1 mrg else
11540 1.1 mrg enableval=yes
11541 1.1 mrg enable_session_mgt=yes
11542 1.1 mrg
11543 1.1 mrg fi;
11544 1.1 mrg echo "$as_me:11544: result: $enable_session_mgt" >&5
11545 1.1 mrg echo "${ECHO_T}$enable_session_mgt" >&6
11546 1.1 mrg test "$enable_session_mgt" = no && cat >>confdefs.h <<\EOF
11547 1.1 mrg #define OPT_SESSION_MGT 0
11548 1.1 mrg EOF
11549 1.1 mrg
11550 1.1 mrg echo "$as_me:11550: checking if you want to use termcap function-keys" >&5
11551 1.1 mrg echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
11552 1.1 mrg
11553 1.1 mrg # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
11554 1.1 mrg if test "${enable_tcap_fkeys+set}" = set; then
11555 1.1 mrg enableval="$enable_tcap_fkeys"
11556 1.1 mrg test "$enableval" != no && enableval=yes
11557 1.1 mrg if test "$enableval" != "yes" ; then
11558 1.1 mrg enable_tcap_fkeys=no
11559 1.1 mrg else
11560 1.1 mrg enable_tcap_fkeys=yes
11561 1.1 mrg fi
11562 1.1 mrg else
11563 1.1 mrg enableval=yes
11564 1.1 mrg enable_tcap_fkeys=yes
11565 1.1 mrg
11566 1.1 mrg fi;
11567 1.1 mrg echo "$as_me:11567: result: $enable_tcap_fkeys" >&5
11568 1.1 mrg echo "${ECHO_T}$enable_tcap_fkeys" >&6
11569 1.1 mrg test "$enable_tcap_fkeys" = yes && cat >>confdefs.h <<\EOF
11570 1.1 mrg #define OPT_TCAP_FKEYS 1
11571 1.1 mrg EOF
11572 1.1 mrg
11573 1.1 mrg echo "$as_me:11573: checking if you want to use termcap-query/report" >&5
11574 1.1 mrg echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
11575 1.1 mrg
11576 1.1 mrg # Check whether --enable-tcap-query or --disable-tcap-query was given.
11577 1.1 mrg if test "${enable_tcap_query+set}" = set; then
11578 1.1 mrg enableval="$enable_tcap_query"
11579 1.1.1.2 christos test "$enableval" != no && enableval=yes
11580 1.1.1.2 christos if test "$enableval" != "yes" ; then
11581 1.1 mrg enable_tcap_query=no
11582 1.1.1.2 christos else
11583 1.1.1.2 christos enable_tcap_query=yes
11584 1.1 mrg fi
11585 1.1 mrg else
11586 1.1.1.2 christos enableval=yes
11587 1.1.1.2 christos enable_tcap_query=yes
11588 1.1 mrg
11589 1.1 mrg fi;
11590 1.1 mrg echo "$as_me:11590: result: $enable_tcap_query" >&5
11591 1.1 mrg echo "${ECHO_T}$enable_tcap_query" >&6
11592 1.1 mrg test "$enable_tcap_query" = yes && cat >>confdefs.h <<\EOF
11593 1.1 mrg #define OPT_TCAP_QUERY 1
11594 1.1 mrg EOF
11595 1.1 mrg
11596 1.1 mrg echo "$as_me:11596: checking if you want support for tek4014" >&5
11597 1.1 mrg echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
11598 1.1 mrg
11599 1.1 mrg # Check whether --enable-tek4014 or --disable-tek4014 was given.
11600 1.1 mrg if test "${enable_tek4014+set}" = set; then
11601 1.1 mrg enableval="$enable_tek4014"
11602 1.1 mrg test "$enableval" != no && enableval=yes
11603 1.1 mrg if test "$enableval" != "yes" ; then
11604 1.1 mrg enable_tek4014=no
11605 1.1 mrg else
11606 1.1 mrg enable_tek4014=yes
11607 1.1 mrg fi
11608 1.1 mrg else
11609 1.1 mrg enableval=yes
11610 1.1 mrg enable_tek4014=yes
11611 1.1 mrg
11612 1.1 mrg fi;
11613 1.1 mrg echo "$as_me:11613: result: $enable_tek4014" >&5
11614 1.1 mrg echo "${ECHO_T}$enable_tek4014" >&6
11615 1.1 mrg if test "$enable_tek4014" = no ; then
11616 1.1 mrg cat >>confdefs.h <<\EOF
11617 1.1 mrg #define OPT_TEK4014 0
11618 1.1 mrg EOF
11619 1.1 mrg
11620 1.1 mrg else
11621 1.1 mrg EXTRAHDRS="$EXTRAHDRS Tekparse.h"
11622 1.1 mrg EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
11623 1.1 mrg EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
11624 1.1 mrg fi
11625 1.1 mrg
11626 1.1 mrg echo "$as_me:11626: checking if you want pulldown menus with a toolbar" >&5
11627 1.1 mrg echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
11628 1.1 mrg
11629 1.1 mrg # Check whether --enable-toolbar or --disable-toolbar was given.
11630 1.1 mrg if test "${enable_toolbar+set}" = set; then
11631 1.1 mrg enableval="$enable_toolbar"
11632 1.1 mrg test "$enableval" != yes && enableval=no
11633 1.1 mrg if test "$enableval" != "no" ; then
11634 1.1 mrg enable_toolbar=yes
11635 1.1 mrg else
11636 1.1 mrg enable_toolbar=no
11637 1.1 mrg fi
11638 1.1 mrg else
11639 1.1 mrg enableval=no
11640 1.1 mrg enable_toolbar=no
11641 1.1 mrg
11642 1.1 mrg fi;
11643 1.1 mrg echo "$as_me:11643: result: $enable_toolbar" >&5
11644 1.1 mrg echo "${ECHO_T}$enable_toolbar" >&6
11645 1.1 mrg if test "$enable_toolbar" = yes ; then
11646 1.1 mrg cat >>confdefs.h <<\EOF
11647 1.1 mrg #define OPT_TOOLBAR 1
11648 1.1 mrg EOF
11649 1.1 mrg
11650 1.1 mrg fi
11651 1.1 mrg
11652 1.1 mrg echo "$as_me:11652: checking if you want VT52 emulation" >&5
11653 1.1 mrg echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
11654 1.1 mrg
11655 1.1 mrg # Check whether --enable-vt52 or --disable-vt52 was given.
11656 1.1 mrg if test "${enable_vt52+set}" = set; then
11657 1.1 mrg enableval="$enable_vt52"
11658 1.1 mrg test "$enableval" != no && enableval=yes
11659 1.1 mrg if test "$enableval" != "yes" ; then
11660 1.1 mrg enable_vt52=no
11661 1.1 mrg else
11662 1.1 mrg enable_vt52=yes
11663 1.1 mrg fi
11664 1.1 mrg else
11665 1.1 mrg enableval=yes
11666 1.1 mrg enable_vt52=yes
11667 1.1 mrg
11668 1.1 mrg fi;
11669 1.1 mrg echo "$as_me:11669: result: $enable_vt52" >&5
11670 1.1 mrg echo "${ECHO_T}$enable_vt52" >&6
11671 1.1 mrg test "$enable_vt52" = no && cat >>confdefs.h <<\EOF
11672 1.1 mrg #define OPT_VT52_MODE 0
11673 1.1 mrg EOF
11674 1.1 mrg
11675 1.1 mrg echo "$as_me:11675: checking if you want to use mini-luit/Latin9 built-in support" >&5
11676 1.1 mrg echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
11677 1.1 mrg
11678 1.1 mrg # Check whether --enable-mini-luit or --disable-mini-luit was given.
11679 1.1 mrg if test "${enable_mini_luit+set}" = set; then
11680 1.1 mrg enableval="$enable_mini_luit"
11681 1.1 mrg test "$enableval" != yes && enableval=no
11682 1.1 mrg if test "$enableval" != "no" ; then
11683 1.1 mrg enable_mini_luit=yes
11684 1.1 mrg else
11685 1.1 mrg enable_mini_luit=no
11686 1.1 mrg fi
11687 1.1 mrg else
11688 1.1 mrg enableval=no
11689 1.1 mrg enable_mini_luit=no
11690 1.1 mrg
11691 1.1 mrg fi;
11692 1.1 mrg echo "$as_me:11692: result: $enable_mini_luit" >&5
11693 1.1 mrg echo "${ECHO_T}$enable_mini_luit" >&6
11694 1.1 mrg if test "$enable_mini_luit" = yes ; then
11695 1.1 mrg cat >>confdefs.h <<\EOF
11696 1.1 mrg #define OPT_MINI_LUIT 1
11697 1.1 mrg EOF
11698 1.1 mrg
11699 1.1 mrg fi
11700 1.1 mrg
11701 1.1 mrg echo "$as_me:11701: checking if you want to use luit" >&5
11702 1.1 mrg echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
11703 1.1 mrg
11704 1.1 mrg # Check whether --enable-luit or --disable-luit was given.
11705 1.1 mrg if test "${enable_luit+set}" = set; then
11706 1.1 mrg enableval="$enable_luit"
11707 1.1 mrg test "$enableval" != yes && enableval=no
11708 1.1 mrg if test "$enableval" != "no" ; then
11709 1.1 mrg enable_luit=yes
11710 1.1 mrg else
11711 1.1 mrg enable_luit=$enable_mini_luit
11712 1.1 mrg fi
11713 1.1 mrg else
11714 1.1 mrg enableval=no
11715 1.1 mrg enable_luit=$enable_mini_luit
11716 1.1 mrg
11717 1.1 mrg fi;
11718 1.1 mrg echo "$as_me:11718: result: $enable_luit" >&5
11719 1.1 mrg echo "${ECHO_T}$enable_luit" >&6
11720 1.1 mrg if test "$enable_luit" = yes ; then
11721 1.1 mrg cat >>confdefs.h <<\EOF
11722 1.1 mrg #define OPT_LUIT_PROG 1
11723 1.1 mrg EOF
11724 1.1 mrg
11725 1.1 mrg test -z "$LUIT" && LUIT=luit
11726 1.1 mrg for ac_prog in $LUIT luit
11727 1.1 mrg do
11728 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
11729 1.1 mrg set dummy $ac_prog; ac_word=$2
11730 1.1 mrg echo "$as_me:11730: checking for $ac_word" >&5
11731 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11732 1.1 mrg if test "${ac_cv_path_LUIT+set}" = set; then
11733 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11734 1.1 mrg else
11735 1.1 mrg case $LUIT in
11736 1.1 mrg [\\/]* | ?:[\\/]*)
11737 1.1 mrg ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
11738 1.1 mrg ;;
11739 1.1 mrg *)
11740 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
11741 1.1 mrg ac_dummy="$PATH"
11742 1.1 mrg for ac_dir in $ac_dummy; do
11743 1.1 mrg IFS=$ac_save_IFS
11744 1.1 mrg test -z "$ac_dir" && ac_dir=.
11745 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
11746 1.1 mrg ac_cv_path_LUIT="$ac_dir/$ac_word"
11747 1.1 mrg echo "$as_me:11747: found $ac_dir/$ac_word" >&5
11748 1.1 mrg break
11749 1.1 mrg fi
11750 1.1 mrg done
11751 1.1 mrg
11752 1.1 mrg ;;
11753 1.1 mrg esac
11754 1.1 mrg fi
11755 1.1 mrg LUIT=$ac_cv_path_LUIT
11756 1.1 mrg
11757 1.1 mrg if test -n "$LUIT"; then
11758 1.1 mrg echo "$as_me:11758: result: $LUIT" >&5
11759 1.1 mrg echo "${ECHO_T}$LUIT" >&6
11760 1.1 mrg else
11761 1.1 mrg echo "$as_me:11761: result: no" >&5
11762 1.1 mrg echo "${ECHO_T}no" >&6
11763 1.1 mrg fi
11764 1.1 mrg
11765 1.1 mrg test -n "$LUIT" && break
11766 1.1 mrg done
11767 1.1 mrg test -n "$LUIT" || LUIT="$LUIT"
11768 1.1 mrg
11769 1.1 mrg cf_path_prog=""
11770 1.1 mrg cf_path_args=""
11771 1.1 mrg IFS="${IFS= }"; cf_save_ifs="$IFS"
11772 1.1 mrg case $host_os in #(vi
11773 1.1 mrg os2*) #(vi
11774 1.1 mrg IFS="${IFS};"
11775 1.1 mrg ;;
11776 1.1 mrg *)
11777 1.1 mrg IFS="${IFS}:"
11778 1.1 mrg ;;
11779 1.1 mrg esac
11780 1.1 mrg
11781 1.1 mrg for cf_temp in $ac_cv_path_LUIT
11782 1.1 mrg do
11783 1.1 mrg if test -z "$cf_path_prog" ; then
11784 1.1 mrg if test "$with_full_paths" = yes ; then
11785 1.1 mrg
11786 1.1 mrg if test "x$prefix" != xNONE; then
11787 1.1 mrg cf_path_syntax="$prefix"
11788 1.1 mrg else
11789 1.1 mrg cf_path_syntax="$ac_default_prefix"
11790 1.1 mrg fi
11791 1.1 mrg
11792 1.1 mrg case ".$cf_temp" in #(vi
11793 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
11794 1.1 mrg ;;
11795 1.1 mrg ..|./*|.\\*) #(vi
11796 1.1 mrg ;;
11797 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11798 1.1 mrg ;;
11799 1.1 mrg .\${*prefix}*) #(vi
11800 1.1 mrg eval cf_temp="$cf_temp"
11801 1.1 mrg case ".$cf_temp" in #(vi
11802 1.1 mrg .NONE/*)
11803 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
11804 1.1 mrg ;;
11805 1.1 mrg esac
11806 1.1 mrg ;; #(vi
11807 1.1 mrg .no|.NONE/*)
11808 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
11809 1.1 mrg ;;
11810 1.1 mrg *)
11811 1.1 mrg break
11812 1.1 mrg ;;
11813 1.1 mrg esac
11814 1.1 mrg
11815 1.1 mrg cf_path_prog="$cf_temp"
11816 1.1 mrg else
11817 1.1 mrg cf_path_prog="`basename $cf_temp`"
11818 1.1 mrg fi
11819 1.1 mrg elif test -z "$cf_path_args" ; then
11820 1.1 mrg cf_path_args="$cf_temp"
11821 1.1 mrg else
11822 1.1 mrg cf_path_args="$cf_path_args $cf_temp"
11823 1.1 mrg fi
11824 1.1 mrg done
11825 1.1 mrg IFS="$cf_save_ifs"
11826 1.1 mrg
11827 1.1 mrg if test -n "$cf_path_prog" ; then
11828 1.1 mrg
11829 1.1 mrg echo "${as_me-configure}:11829: testing defining path for ${cf_path_prog} ..." 1>&5
11830 1.1 mrg
11831 1.1 mrg cat >>confdefs.h <<EOF
11832 1.1 mrg #define LUIT_PATH "$cf_path_prog"
11833 1.1 mrg EOF
11834 1.1 mrg
11835 1.1 mrg test -n "$cf_path_args" && cat >>confdefs.h <<EOF
11836 1.1 mrg #define LUIT_ARGS "$cf_path_args"
11837 1.1 mrg EOF
11838 1.1 mrg
11839 1.1 mrg fi
11840 1.1 mrg
11841 1.1 mrg fi
11842 1.1 mrg
11843 1.1 mrg echo "$as_me:11843: checking if you want wide-character support" >&5
11844 1.1 mrg echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
11845 1.1 mrg
11846 1.1 mrg # Check whether --enable-wide-chars or --disable-wide-chars was given.
11847 1.1 mrg if test "${enable_wide_chars+set}" = set; then
11848 1.1 mrg enableval="$enable_wide_chars"
11849 1.1 mrg test "$enableval" != no && enableval=yes
11850 1.1 mrg if test "$enableval" != "$enable_luit" ; then
11851 1.1 mrg enable_wchar=yes
11852 1.1 mrg else
11853 1.1 mrg enable_wchar=$enable_luit
11854 1.1 mrg fi
11855 1.1 mrg else
11856 1.1 mrg enableval=$enable_luit
11857 1.1 mrg enable_wchar=$enable_luit
11858 1.1 mrg
11859 1.1 mrg fi;
11860 1.1 mrg echo "$as_me:11860: result: $enable_wchar" >&5
11861 1.1 mrg echo "${ECHO_T}$enable_wchar" >&6
11862 1.1 mrg if test "$enable_wchar" = yes ; then
11863 1.1 mrg cat >>confdefs.h <<\EOF
11864 1.1 mrg #define OPT_WIDE_CHARS 1
11865 1.1 mrg EOF
11866 1.1 mrg
11867 1.1 mrg EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
11868 1.1 mrg EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
11869 1.1 mrg EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
11870 1.1 mrg fi
11871 1.1 mrg
11872 1.1 mrg echo "$as_me:11872: checking if you want dynamic-abbreviation support" >&5
11873 1.1 mrg echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
11874 1.1 mrg
11875 1.1 mrg # Check whether --enable-dabbrev or --disable-dabbrev was given.
11876 1.1 mrg if test "${enable_dabbrev+set}" = set; then
11877 1.1 mrg enableval="$enable_dabbrev"
11878 1.1 mrg test "$enableval" != yes && enableval=no
11879 1.1 mrg if test "$enableval" != "no" ; then
11880 1.1 mrg enable_dabbrev=yes
11881 1.1 mrg else
11882 1.1 mrg enable_dabbrev=no
11883 1.1 mrg fi
11884 1.1 mrg else
11885 1.1 mrg enableval=no
11886 1.1 mrg enable_dabbrev=no
11887 1.1 mrg
11888 1.1 mrg fi;
11889 1.1 mrg echo "$as_me:11889: result: $enable_dabbrev" >&5
11890 1.1 mrg echo "${ECHO_T}$enable_dabbrev" >&6
11891 1.1 mrg if test "$enable_dabbrev" = yes ; then
11892 1.1 mrg cat >>confdefs.h <<\EOF
11893 1.1 mrg #define OPT_DABBREV 1
11894 1.1 mrg EOF
11895 1.1 mrg
11896 1.1 mrg fi
11897 1.1 mrg
11898 1.1 mrg echo "$as_me:11898: checking if you want DECterm Locator support" >&5
11899 1.1 mrg echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
11900 1.1 mrg
11901 1.1 mrg # Check whether --enable-dec-locator or --disable-dec-locator was given.
11902 1.1 mrg if test "${enable_dec_locator+set}" = set; then
11903 1.1 mrg enableval="$enable_dec_locator"
11904 1.1 mrg test "$enableval" != yes && enableval=no
11905 1.1 mrg if test "$enableval" != "no" ; then
11906 1.1 mrg enable_dec_locator=yes
11907 1.1 mrg else
11908 1.1 mrg enable_dec_locator=no
11909 1.1 mrg fi
11910 1.1 mrg else
11911 1.1 mrg enableval=no
11912 1.1 mrg enable_dec_locator=no
11913 1.1 mrg
11914 1.1 mrg fi;
11915 1.1 mrg echo "$as_me:11915: result: $enable_dec_locator" >&5
11916 1.1 mrg echo "${ECHO_T}$enable_dec_locator" >&6
11917 1.1 mrg if test "$enable_dec_locator" = yes ; then
11918 1.1 mrg cat >>confdefs.h <<\EOF
11919 1.1 mrg #define OPT_DEC_LOCATOR 1
11920 1.1 mrg EOF
11921 1.1 mrg
11922 1.1 mrg fi
11923 1.1 mrg
11924 1.1 mrg echo "$as_me:11924: checking if you want VT420 rectangle support" >&5
11925 1.1 mrg echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
11926 1.1 mrg
11927 1.1 mrg # Check whether --enable-rectangles or --disable-rectangles was given.
11928 1.1 mrg if test "${enable_rectangles+set}" = set; then
11929 1.1 mrg enableval="$enable_rectangles"
11930 1.1 mrg test "$enableval" != no && enableval=yes
11931 1.1 mrg if test "$enableval" != "yes" ; then
11932 1.1 mrg enable_rectangles=no
11933 1.1 mrg else
11934 1.1 mrg enable_rectangles=yes
11935 1.1 mrg fi
11936 1.1 mrg else
11937 1.1 mrg enableval=yes
11938 1.1 mrg enable_rectangles=yes
11939 1.1 mrg
11940 1.1 mrg fi;
11941 1.1 mrg echo "$as_me:11941: result: $enable_rectangles" >&5
11942 1.1 mrg echo "${ECHO_T}$enable_rectangles" >&6
11943 1.1 mrg if test "$enable_rectangles" = yes ; then
11944 1.1 mrg cat >>confdefs.h <<\EOF
11945 1.1 mrg #define OPT_DEC_RECTOPS 1
11946 1.1 mrg EOF
11947 1.1 mrg
11948 1.1 mrg fi
11949 1.1 mrg
11950 1.1 mrg echo "$as_me:11950: checking if you want -ziconbeep option" >&5
11951 1.1 mrg echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
11952 1.1 mrg
11953 1.1 mrg # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
11954 1.1 mrg if test "${enable_ziconbeep+set}" = set; then
11955 1.1 mrg enableval="$enable_ziconbeep"
11956 1.1 mrg test "$enableval" != no && enableval=yes
11957 1.1 mrg if test "$enableval" != "yes" ; then
11958 1.1 mrg enable_ziconbeep=no
11959 1.1 mrg else
11960 1.1 mrg enable_ziconbeep=yes
11961 1.1 mrg fi
11962 1.1 mrg else
11963 1.1 mrg enableval=yes
11964 1.1 mrg enable_ziconbeep=yes
11965 1.1 mrg
11966 1.1 mrg fi;
11967 1.1 mrg echo "$as_me:11967: result: $enable_ziconbeep" >&5
11968 1.1 mrg echo "${ECHO_T}$enable_ziconbeep" >&6
11969 1.1 mrg test "$enable_ziconbeep" = no && cat >>confdefs.h <<\EOF
11970 1.1 mrg #define OPT_ZICONBEEP 0
11971 1.1 mrg EOF
11972 1.1 mrg
11973 1.1 mrg ###############################################################################
11974 1.1 mrg
11975 1.1 mrg echo "$as_me:11975: checking if you want debugging traces" >&5
11976 1.1 mrg echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
11977 1.1 mrg
11978 1.1 mrg # Check whether --enable-trace or --disable-trace was given.
11979 1.1 mrg if test "${enable_trace+set}" = set; then
11980 1.1 mrg enableval="$enable_trace"
11981 1.1 mrg test "$enableval" != yes && enableval=no
11982 1.1 mrg if test "$enableval" != "no" ; then
11983 1.1 mrg enable_trace=yes
11984 1.1 mrg else
11985 1.1 mrg enable_trace=no
11986 1.1 mrg fi
11987 1.1 mrg else
11988 1.1 mrg enableval=no
11989 1.1 mrg enable_trace=no
11990 1.1 mrg
11991 1.1 mrg fi;
11992 1.1 mrg echo "$as_me:11992: result: $enable_trace" >&5
11993 1.1 mrg echo "${ECHO_T}$enable_trace" >&6
11994 1.1 mrg if test "$enable_trace" = yes ; then
11995 1.1 mrg cat >>confdefs.h <<\EOF
11996 1.1 mrg #define OPT_TRACE 1
11997 1.1 mrg EOF
11998 1.1 mrg
11999 1.1 mrg EXTRASRCS="$EXTRASRCS trace.c"
12000 1.1 mrg EXTRAOBJS="$EXTRAOBJS trace.o"
12001 1.1 mrg fi
12002 1.1 mrg
12003 1.1 mrg echo "$as_me:12003: checking if you want to test memory leaks" >&5
12004 1.1 mrg echo $ECHO_N "checking if you want to test memory leaks... $ECHO_C" >&6
12005 1.1 mrg
12006 1.1 mrg # Check whether --enable-leaks or --disable-leaks was given.
12007 1.1 mrg if test "${enable_leaks+set}" = set; then
12008 1.1 mrg enableval="$enable_leaks"
12009 1.1 mrg test "$enableval" != no && enableval=yes
12010 1.1 mrg if test "$enableval" != "yes" ; then
12011 1.1 mrg disable_leaks=yes
12012 1.1 mrg else
12013 1.1 mrg disable_leaks=no
12014 1.1 mrg fi
12015 1.1 mrg else
12016 1.1 mrg enableval=yes
12017 1.1 mrg disable_leaks=no
12018 1.1 mrg
12019 1.1 mrg fi;
12020 1.1 mrg echo "$as_me:12020: result: $disable_leaks" >&5
12021 1.1 mrg echo "${ECHO_T}$disable_leaks" >&6
12022 1.1 mrg if test "$disable_leaks" = yes ; then
12023 1.1 mrg cat >>confdefs.h <<\EOF
12024 1.1 mrg #define NO_LEAKS 1
12025 1.1 mrg EOF
12026 1.1 mrg
12027 1.1 mrg fi
12028 1.1 mrg
12029 1.1 mrg echo "$as_me:12029: checking if you want to see long compiling messages" >&5
12030 1.1 mrg echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12031 1.1 mrg
12032 1.1 mrg # Check whether --enable-echo or --disable-echo was given.
12033 1.1 mrg if test "${enable_echo+set}" = set; then
12034 1.1 mrg enableval="$enable_echo"
12035 1.1 mrg test "$enableval" != no && enableval=yes
12036 1.1 mrg if test "$enableval" != "yes" ; then
12037 1.1 mrg
12038 1.1 mrg ECHO_LT='--silent'
12039 1.1 mrg ECHO_LD='@echo linking $@;'
12040 1.1 mrg RULE_CC=' @echo compiling $<'
12041 1.1 mrg SHOW_CC=' @echo compiling $@'
12042 1.1 mrg ECHO_CC='@'
12043 1.1 mrg
12044 1.1 mrg else
12045 1.1 mrg
12046 1.1 mrg ECHO_LT=''
12047 1.1 mrg ECHO_LD=''
12048 1.1 mrg RULE_CC='# compiling'
12049 1.1 mrg SHOW_CC='# compiling'
12050 1.1 mrg ECHO_CC=''
12051 1.1 mrg
12052 1.1 mrg fi
12053 1.1 mrg else
12054 1.1 mrg enableval=yes
12055 1.1 mrg
12056 1.1 mrg ECHO_LT=''
12057 1.1 mrg ECHO_LD=''
12058 1.1 mrg RULE_CC='# compiling'
12059 1.1 mrg SHOW_CC='# compiling'
12060 1.1 mrg ECHO_CC=''
12061 1.1 mrg
12062 1.1 mrg fi;
12063 1.1 mrg echo "$as_me:12063: result: $enableval" >&5
12064 1.1 mrg echo "${ECHO_T}$enableval" >&6
12065 1.1 mrg
12066 1.1 mrg echo "$as_me:12066: checking if you want magic cookie emulation" >&5
12067 1.1 mrg echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
12068 1.1 mrg
12069 1.1 mrg # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12070 1.1 mrg if test "${enable_xmc_glitch+set}" = set; then
12071 1.1 mrg enableval="$enable_xmc_glitch"
12072 1.1 mrg test "$enableval" != yes && enableval=no
12073 1.1 mrg if test "$enableval" != "no" ; then
12074 1.1 mrg enable_xmc=yes
12075 1.1 mrg else
12076 1.1 mrg enable_xmc=no
12077 1.1 mrg fi
12078 1.1 mrg else
12079 1.1 mrg enableval=no
12080 1.1 mrg enable_xmc=no
12081 1.1 mrg
12082 1.1 mrg fi;
12083 1.1 mrg echo "$as_me:12083: result: $enable_xmc" >&5
12084 1.1 mrg echo "${ECHO_T}$enable_xmc" >&6
12085 1.1 mrg if test "$enable_xmc" = yes ; then
12086 1.1 mrg cat >>confdefs.h <<\EOF
12087 1.1 mrg #define OPT_XMC_GLITCH 1
12088 1.1 mrg EOF
12089 1.1 mrg
12090 1.1 mrg EXTRASRCS="$EXTRASRCS testxmc.c"
12091 1.1 mrg EXTRAOBJS="$EXTRAOBJS testxmc.o"
12092 1.1 mrg fi
12093 1.1 mrg
12094 1.1 mrg for ac_func in tigetstr
12095 1.1 mrg do
12096 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12097 1.1 mrg echo "$as_me:12097: checking for $ac_func" >&5
12098 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12099 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
12100 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
12101 1.1 mrg else
12102 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
12103 1.1 mrg #line 12103 "configure"
12104 1.1 mrg #include "confdefs.h"
12105 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
12106 1.1 mrg which can conflict with char $ac_func (); below. */
12107 1.1 mrg #include <assert.h>
12108 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
12109 1.1 mrg #ifdef __cplusplus
12110 1.1 mrg extern "C"
12111 1.1 mrg #endif
12112 1.1 mrg /* We use char because int might match the return type of a gcc2
12113 1.1 mrg builtin and then its argument prototype would still apply. */
12114 1.1 mrg char $ac_func ();
12115 1.1 mrg char (*f) ();
12116 1.1 mrg
12117 1.1 mrg int
12118 1.1 mrg main ()
12119 1.1 mrg {
12120 1.1 mrg /* The GNU C library defines this for functions which it implements
12121 1.1 mrg to always fail with ENOSYS. Some functions are actually named
12122 1.1 mrg something starting with __ and the normal name is an alias. */
12123 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12124 1.1 mrg choke me
12125 1.1 mrg #else
12126 1.1 mrg f = $ac_func;
12127 1.1 mrg #endif
12128 1.1 mrg
12129 1.1 mrg ;
12130 1.1 mrg return 0;
12131 1.1 mrg }
12132 1.1 mrg _ACEOF
12133 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
12134 1.1 mrg if { (eval echo "$as_me:12134: \"$ac_link\"") >&5
12135 1.1 mrg (eval $ac_link) 2>&5
12136 1.1 mrg ac_status=$?
12137 1.1 mrg echo "$as_me:12137: \$? = $ac_status" >&5
12138 1.1 mrg (exit $ac_status); } &&
12139 1.1 mrg { ac_try='test -s conftest$ac_exeext'
12140 1.1 mrg { (eval echo "$as_me:12140: \"$ac_try\"") >&5
12141 1.1 mrg (eval $ac_try) 2>&5
12142 1.1 mrg ac_status=$?
12143 1.1 mrg echo "$as_me:12143: \$? = $ac_status" >&5
12144 1.1 mrg (exit $ac_status); }; }; then
12145 1.1 mrg eval "$as_ac_var=yes"
12146 1.1 mrg else
12147 1.1 mrg echo "$as_me: failed program was:" >&5
12148 1.1 mrg cat conftest.$ac_ext >&5
12149 1.1 mrg eval "$as_ac_var=no"
12150 1.1 mrg fi
12151 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12152 1.1 mrg fi
12153 1.1 mrg echo "$as_me:12153: result: `eval echo '${'$as_ac_var'}'`" >&5
12154 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12155 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
12156 1.1 mrg cat >>confdefs.h <<EOF
12157 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12158 1.1 mrg EOF
12159 1.1 mrg
12160 1.1 mrg fi
12161 1.1 mrg done
12162 1.1 mrg
12163 1.1.1.2 christos if test -n "$cf_cv_lib_part_tgetent"; then
12164 1.1.1.2 christos
12165 1.1.1.2 christos for ac_func in use_extended_names
12166 1.1.1.2 christos do
12167 1.1.1.2 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12168 1.1.1.2 christos echo "$as_me:12168: checking for $ac_func" >&5
12169 1.1.1.2 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12170 1.1.1.2 christos if eval "test \"\${$as_ac_var+set}\" = set"; then
12171 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12172 1.1.1.2 christos else
12173 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
12174 1.1.1.2 christos #line 12174 "configure"
12175 1.1.1.2 christos #include "confdefs.h"
12176 1.1.1.2 christos /* System header to define __stub macros and hopefully few prototypes,
12177 1.1.1.2 christos which can conflict with char $ac_func (); below. */
12178 1.1.1.2 christos #include <assert.h>
12179 1.1.1.2 christos /* Override any gcc2 internal prototype to avoid an error. */
12180 1.1.1.2 christos #ifdef __cplusplus
12181 1.1.1.2 christos extern "C"
12182 1.1.1.2 christos #endif
12183 1.1.1.2 christos /* We use char because int might match the return type of a gcc2
12184 1.1.1.2 christos builtin and then its argument prototype would still apply. */
12185 1.1.1.2 christos char $ac_func ();
12186 1.1.1.2 christos char (*f) ();
12187 1.1.1.2 christos
12188 1.1.1.2 christos int
12189 1.1.1.2 christos main ()
12190 1.1.1.2 christos {
12191 1.1.1.2 christos /* The GNU C library defines this for functions which it implements
12192 1.1.1.2 christos to always fail with ENOSYS. Some functions are actually named
12193 1.1.1.2 christos something starting with __ and the normal name is an alias. */
12194 1.1.1.2 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12195 1.1.1.2 christos choke me
12196 1.1.1.2 christos #else
12197 1.1.1.2 christos f = $ac_func;
12198 1.1.1.2 christos #endif
12199 1.1.1.2 christos
12200 1.1.1.2 christos ;
12201 1.1.1.2 christos return 0;
12202 1.1.1.2 christos }
12203 1.1.1.2 christos _ACEOF
12204 1.1.1.2 christos rm -f conftest.$ac_objext conftest$ac_exeext
12205 1.1.1.2 christos if { (eval echo "$as_me:12205: \"$ac_link\"") >&5
12206 1.1.1.2 christos (eval $ac_link) 2>&5
12207 1.1.1.2 christos ac_status=$?
12208 1.1.1.2 christos echo "$as_me:12208: \$? = $ac_status" >&5
12209 1.1.1.2 christos (exit $ac_status); } &&
12210 1.1.1.2 christos { ac_try='test -s conftest$ac_exeext'
12211 1.1.1.2 christos { (eval echo "$as_me:12211: \"$ac_try\"") >&5
12212 1.1.1.2 christos (eval $ac_try) 2>&5
12213 1.1.1.2 christos ac_status=$?
12214 1.1.1.2 christos echo "$as_me:12214: \$? = $ac_status" >&5
12215 1.1.1.2 christos (exit $ac_status); }; }; then
12216 1.1.1.2 christos eval "$as_ac_var=yes"
12217 1.1.1.2 christos else
12218 1.1.1.2 christos echo "$as_me: failed program was:" >&5
12219 1.1.1.2 christos cat conftest.$ac_ext >&5
12220 1.1.1.2 christos eval "$as_ac_var=no"
12221 1.1.1.2 christos fi
12222 1.1.1.2 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12223 1.1.1.2 christos fi
12224 1.1.1.2 christos echo "$as_me:12224: result: `eval echo '${'$as_ac_var'}'`" >&5
12225 1.1.1.2 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12226 1.1.1.2 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
12227 1.1.1.2 christos cat >>confdefs.h <<EOF
12228 1.1.1.2 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12229 1.1.1.2 christos EOF
12230 1.1.1.2 christos
12231 1.1.1.2 christos fi
12232 1.1.1.2 christos done
12233 1.1.1.2 christos
12234 1.1.1.2 christos fi
12235 1.1.1.2 christos
12236 1.1 mrg if test -n "$GCC" ; then
12237 1.1.1.2 christos echo "$as_me:12237: checking if you want to turn on gcc warnings" >&5
12238 1.1 mrg echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
12239 1.1 mrg
12240 1.1 mrg # Check whether --enable-warnings or --disable-warnings was given.
12241 1.1 mrg if test "${enable_warnings+set}" = set; then
12242 1.1 mrg enableval="$enable_warnings"
12243 1.1 mrg test "$enableval" != yes && enableval=no
12244 1.1 mrg if test "$enableval" != "no" ; then
12245 1.1 mrg with_warnings=yes
12246 1.1 mrg else
12247 1.1 mrg with_warnings=no
12248 1.1 mrg fi
12249 1.1 mrg else
12250 1.1 mrg enableval=no
12251 1.1 mrg with_warnings=no
12252 1.1 mrg
12253 1.1 mrg fi;
12254 1.1.1.2 christos echo "$as_me:12254: result: $with_warnings" >&5
12255 1.1 mrg echo "${ECHO_T}$with_warnings" >&6
12256 1.1 mrg if test "$with_warnings" = yes
12257 1.1 mrg then
12258 1.1 mrg
12259 1.1 mrg if test "$GCC" = yes
12260 1.1 mrg then
12261 1.1 mrg cat > conftest.i <<EOF
12262 1.1 mrg #ifndef GCC_PRINTF
12263 1.1 mrg #define GCC_PRINTF 0
12264 1.1 mrg #endif
12265 1.1 mrg #ifndef GCC_SCANF
12266 1.1 mrg #define GCC_SCANF 0
12267 1.1 mrg #endif
12268 1.1 mrg #ifndef GCC_NORETURN
12269 1.1 mrg #define GCC_NORETURN /* nothing */
12270 1.1 mrg #endif
12271 1.1 mrg #ifndef GCC_UNUSED
12272 1.1 mrg #define GCC_UNUSED /* nothing */
12273 1.1 mrg #endif
12274 1.1 mrg EOF
12275 1.1 mrg if test "$GCC" = yes
12276 1.1 mrg then
12277 1.1.1.2 christos { echo "$as_me:12277: checking for $CC __attribute__ directives..." >&5
12278 1.1 mrg echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12279 1.1 mrg cat > conftest.$ac_ext <<EOF
12280 1.1.1.2 christos #line 12280 "${as_me-configure}"
12281 1.1 mrg #include "confdefs.h"
12282 1.1 mrg #include "conftest.h"
12283 1.1 mrg #include "conftest.i"
12284 1.1 mrg #if GCC_PRINTF
12285 1.1 mrg #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12286 1.1 mrg #else
12287 1.1 mrg #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12288 1.1 mrg #endif
12289 1.1 mrg #if GCC_SCANF
12290 1.1 mrg #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12291 1.1 mrg #else
12292 1.1 mrg #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12293 1.1 mrg #endif
12294 1.1 mrg extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12295 1.1 mrg extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12296 1.1 mrg extern void foo(void) GCC_NORETURN;
12297 1.1 mrg int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12298 1.1 mrg EOF
12299 1.1 mrg for cf_attribute in scanf printf unused noreturn
12300 1.1 mrg do
12301 1.1 mrg
12302 1.1 mrg cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12303 1.1 mrg
12304 1.1 mrg cf_directive="__attribute__(($cf_attribute))"
12305 1.1 mrg echo "checking for $CC $cf_directive" 1>&5
12306 1.1 mrg case $cf_attribute in
12307 1.1 mrg scanf|printf)
12308 1.1 mrg cat >conftest.h <<EOF
12309 1.1 mrg #define GCC_$cf_ATTRIBUTE 1
12310 1.1 mrg EOF
12311 1.1 mrg ;;
12312 1.1 mrg *)
12313 1.1 mrg cat >conftest.h <<EOF
12314 1.1 mrg #define GCC_$cf_ATTRIBUTE $cf_directive
12315 1.1 mrg EOF
12316 1.1 mrg ;;
12317 1.1 mrg esac
12318 1.1.1.2 christos if { (eval echo "$as_me:12318: \"$ac_compile\"") >&5
12319 1.1 mrg (eval $ac_compile) 2>&5
12320 1.1 mrg ac_status=$?
12321 1.1.1.2 christos echo "$as_me:12321: \$? = $ac_status" >&5
12322 1.1 mrg (exit $ac_status); }; then
12323 1.1.1.2 christos test -n "$verbose" && echo "$as_me:12323: result: ... $cf_attribute" >&5
12324 1.1 mrg echo "${ECHO_T}... $cf_attribute" >&6
12325 1.1 mrg cat conftest.h >>confdefs.h
12326 1.1 mrg fi
12327 1.1 mrg done
12328 1.1 mrg else
12329 1.1 mrg fgrep define conftest.i >>confdefs.h
12330 1.1 mrg fi
12331 1.1 mrg rm -rf conftest*
12332 1.1 mrg fi
12333 1.1 mrg
12334 1.1 mrg GCC_VERSION=none
12335 1.1 mrg if test "$GCC" = yes ; then
12336 1.1.1.2 christos echo "$as_me:12336: checking version of $CC" >&5
12337 1.1 mrg echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
12338 1.1 mrg GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
12339 1.1 mrg test -z "$GCC_VERSION" && GCC_VERSION=unknown
12340 1.1.1.2 christos echo "$as_me:12340: result: $GCC_VERSION" >&5
12341 1.1 mrg echo "${ECHO_T}$GCC_VERSION" >&6
12342 1.1 mrg fi
12343 1.1 mrg
12344 1.1 mrg INTEL_COMPILER=no
12345 1.1 mrg
12346 1.1 mrg if test "$GCC" = yes ; then
12347 1.1 mrg case $host_os in
12348 1.1 mrg linux*|gnu*)
12349 1.1.1.2 christos echo "$as_me:12349: checking if this is really Intel C compiler" >&5
12350 1.1 mrg echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12351 1.1 mrg cf_save_CFLAGS="$CFLAGS"
12352 1.1 mrg CFLAGS="$CFLAGS -no-gcc"
12353 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
12354 1.1.1.2 christos #line 12354 "configure"
12355 1.1 mrg #include "confdefs.h"
12356 1.1 mrg
12357 1.1 mrg int
12358 1.1 mrg main ()
12359 1.1 mrg {
12360 1.1 mrg
12361 1.1 mrg #ifdef __INTEL_COMPILER
12362 1.1 mrg #else
12363 1.1 mrg make an error
12364 1.1 mrg #endif
12365 1.1 mrg
12366 1.1 mrg ;
12367 1.1 mrg return 0;
12368 1.1 mrg }
12369 1.1 mrg _ACEOF
12370 1.1 mrg rm -f conftest.$ac_objext
12371 1.1.1.2 christos if { (eval echo "$as_me:12371: \"$ac_compile\"") >&5
12372 1.1 mrg (eval $ac_compile) 2>&5
12373 1.1 mrg ac_status=$?
12374 1.1.1.2 christos echo "$as_me:12374: \$? = $ac_status" >&5
12375 1.1 mrg (exit $ac_status); } &&
12376 1.1 mrg { ac_try='test -s conftest.$ac_objext'
12377 1.1.1.2 christos { (eval echo "$as_me:12377: \"$ac_try\"") >&5
12378 1.1 mrg (eval $ac_try) 2>&5
12379 1.1 mrg ac_status=$?
12380 1.1.1.2 christos echo "$as_me:12380: \$? = $ac_status" >&5
12381 1.1 mrg (exit $ac_status); }; }; then
12382 1.1 mrg INTEL_COMPILER=yes
12383 1.1 mrg cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12384 1.1 mrg
12385 1.1 mrg else
12386 1.1 mrg echo "$as_me: failed program was:" >&5
12387 1.1 mrg cat conftest.$ac_ext >&5
12388 1.1 mrg fi
12389 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
12390 1.1 mrg CFLAGS="$cf_save_CFLAGS"
12391 1.1.1.2 christos echo "$as_me:12391: result: $INTEL_COMPILER" >&5
12392 1.1 mrg echo "${ECHO_T}$INTEL_COMPILER" >&6
12393 1.1 mrg ;;
12394 1.1 mrg esac
12395 1.1 mrg fi
12396 1.1 mrg
12397 1.1 mrg cat > conftest.$ac_ext <<EOF
12398 1.1.1.2 christos #line 12398 "${as_me-configure}"
12399 1.1 mrg int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12400 1.1 mrg EOF
12401 1.1 mrg
12402 1.1 mrg if test "$INTEL_COMPILER" = yes
12403 1.1 mrg then
12404 1.1 mrg # The "-wdXXX" options suppress warnings:
12405 1.1 mrg # remark #1419: external declaration in primary source file
12406 1.1 mrg # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12407 1.1 mrg # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12408 1.1 mrg # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12409 1.1 mrg # remark #193: zero used for undefined preprocessing identifier
12410 1.1 mrg # remark #593: variable "curs_sb_left_arrow" was set but never used
12411 1.1 mrg # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12412 1.1 mrg # remark #869: parameter "tw" was never referenced
12413 1.1 mrg # remark #981: operands are evaluated in unspecified order
12414 1.1 mrg # warning #269: invalid format string conversion
12415 1.1 mrg
12416 1.1.1.2 christos { echo "$as_me:12416: checking for $CC warning options..." >&5
12417 1.1 mrg echo "$as_me: checking for $CC warning options..." >&6;}
12418 1.1 mrg cf_save_CFLAGS="$CFLAGS"
12419 1.1 mrg EXTRA_CFLAGS="-Wall"
12420 1.1 mrg for cf_opt in \
12421 1.1 mrg wd1419 \
12422 1.1 mrg wd1682 \
12423 1.1 mrg wd1683 \
12424 1.1 mrg wd1684 \
12425 1.1 mrg wd193 \
12426 1.1 mrg wd279 \
12427 1.1 mrg wd593 \
12428 1.1 mrg wd810 \
12429 1.1 mrg wd869 \
12430 1.1 mrg wd981
12431 1.1 mrg do
12432 1.1 mrg CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12433 1.1.1.2 christos if { (eval echo "$as_me:12433: \"$ac_compile\"") >&5
12434 1.1 mrg (eval $ac_compile) 2>&5
12435 1.1 mrg ac_status=$?
12436 1.1.1.2 christos echo "$as_me:12436: \$? = $ac_status" >&5
12437 1.1 mrg (exit $ac_status); }; then
12438 1.1.1.2 christos test -n "$verbose" && echo "$as_me:12438: result: ... -$cf_opt" >&5
12439 1.1 mrg echo "${ECHO_T}... -$cf_opt" >&6
12440 1.1 mrg EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12441 1.1 mrg fi
12442 1.1 mrg done
12443 1.1 mrg CFLAGS="$cf_save_CFLAGS"
12444 1.1 mrg
12445 1.1 mrg elif test "$GCC" = yes
12446 1.1 mrg then
12447 1.1.1.2 christos { echo "$as_me:12447: checking for $CC warning options..." >&5
12448 1.1 mrg echo "$as_me: checking for $CC warning options..." >&6;}
12449 1.1 mrg cf_save_CFLAGS="$CFLAGS"
12450 1.1 mrg EXTRA_CFLAGS="-W -Wall"
12451 1.1 mrg cf_warn_CONST=""
12452 1.1 mrg test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12453 1.1 mrg for cf_opt in \
12454 1.1 mrg Wbad-function-cast \
12455 1.1 mrg Wcast-align \
12456 1.1 mrg Wcast-qual \
12457 1.1 mrg Winline \
12458 1.1 mrg Wmissing-declarations \
12459 1.1 mrg Wmissing-prototypes \
12460 1.1 mrg Wnested-externs \
12461 1.1 mrg Wpointer-arith \
12462 1.1 mrg Wshadow \
12463 1.1 mrg Wstrict-prototypes \
12464 1.1 mrg Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12465 1.1 mrg do
12466 1.1 mrg CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12467 1.1.1.2 christos if { (eval echo "$as_me:12467: \"$ac_compile\"") >&5
12468 1.1 mrg (eval $ac_compile) 2>&5
12469 1.1 mrg ac_status=$?
12470 1.1.1.2 christos echo "$as_me:12470: \$? = $ac_status" >&5
12471 1.1 mrg (exit $ac_status); }; then
12472 1.1.1.2 christos test -n "$verbose" && echo "$as_me:12472: result: ... -$cf_opt" >&5
12473 1.1 mrg echo "${ECHO_T}... -$cf_opt" >&6
12474 1.1 mrg case $cf_opt in #(vi
12475 1.1 mrg Wcast-qual) #(vi
12476 1.1 mrg CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12477 1.1 mrg ;;
12478 1.1 mrg Winline) #(vi
12479 1.1 mrg case $GCC_VERSION in
12480 1.1.1.2 christos [34].*)
12481 1.1 mrg test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12482 1.1 mrg
12483 1.1.1.2 christos echo "${as_me-configure}:12483: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12484 1.1 mrg
12485 1.1 mrg continue;;
12486 1.1 mrg esac
12487 1.1 mrg ;;
12488 1.1 mrg esac
12489 1.1 mrg EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12490 1.1 mrg fi
12491 1.1 mrg done
12492 1.1 mrg CFLAGS="$cf_save_CFLAGS"
12493 1.1 mrg fi
12494 1.1 mrg rm -f conftest*
12495 1.1 mrg
12496 1.1 mrg fi
12497 1.1 mrg fi
12498 1.1 mrg
12499 1.1 mrg test "$disable_setuid" = yes && cat >>confdefs.h <<\EOF
12500 1.1 mrg #define DISABLE_SETUID 1
12501 1.1 mrg EOF
12502 1.1 mrg
12503 1.1 mrg test "$disable_setgid" = yes && cat >>confdefs.h <<\EOF
12504 1.1 mrg #define DISABLE_SETGID 1
12505 1.1 mrg EOF
12506 1.1 mrg
12507 1.1 mrg if test $disable_setuid = yes ; then
12508 1.1 mrg MAY_SETUID="#"
12509 1.1 mrg NOT_SETUID=
12510 1.1 mrg elif test $disable_setgid = yes ; then
12511 1.1 mrg MAY_SETUID="#"
12512 1.1 mrg NOT_SETUID=
12513 1.1 mrg else
12514 1.1 mrg MAY_SETUID=
12515 1.1 mrg NOT_SETUID="#"
12516 1.1 mrg fi
12517 1.1 mrg
12518 1.1 mrg ### remove from CPPFLAGS the optional features we define in xtermcfg.h
12519 1.1 mrg ### or other conflicting symbols that may be defined via imake:
12520 1.1 mrg for cf_def in \
12521 1.1 mrg __STDC__ \
12522 1.1 mrg ALLOWLOGGING \
12523 1.1 mrg ALLOWLOGFILEEXEC \
12524 1.1 mrg OPT_LUIT_PROG \
12525 1.1 mrg OPT_WIDE_CHARS \
12526 1.1 mrg SCROLLBAR_RIGHT \
12527 1.1 mrg USE_TTY_GROUP \
12528 1.1 mrg USE_UTEMPTER \
12529 1.1 mrg XRENDERFONT
12530 1.1 mrg do
12531 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
12532 1.1 mrg done
12533 1.1 mrg
12534 1.1 mrg ### output Makefile and xtermcfg.h
12535 1.1 mrg ac_config_files="$ac_config_files Makefile"
12536 1.1 mrg cat >confcache <<\_ACEOF
12537 1.1 mrg # This file is a shell script that caches the results of configure
12538 1.1 mrg # tests run on this system so they can be shared between configure
12539 1.1 mrg # scripts and configure runs, see configure's option --config-cache.
12540 1.1 mrg # It is not useful on other systems. If it contains results you don't
12541 1.1 mrg # want to keep, you may remove or edit it.
12542 1.1 mrg #
12543 1.1 mrg # config.status only pays attention to the cache file if you give it
12544 1.1 mrg # the --recheck option to rerun configure.
12545 1.1 mrg #
12546 1.1 mrg # `ac_cv_env_foo' variables (set or unset) will be overriden when
12547 1.1 mrg # loading this file, other *unset* `ac_cv_foo' will be assigned the
12548 1.1 mrg # following values.
12549 1.1 mrg
12550 1.1 mrg _ACEOF
12551 1.1 mrg
12552 1.1 mrg # The following way of writing the cache mishandles newlines in values,
12553 1.1 mrg # but we know of no workaround that is simple, portable, and efficient.
12554 1.1 mrg # So, don't put newlines in cache variables' values.
12555 1.1 mrg # Ultrix sh set writes to stderr and can't be redirected directly,
12556 1.1 mrg # and sets the high bit in the cache file unless we assign to the vars.
12557 1.1 mrg {
12558 1.1 mrg (set) 2>&1 |
12559 1.1 mrg case `(ac_space=' '; set | grep ac_space) 2>&1` in
12560 1.1 mrg *ac_space=\ *)
12561 1.1 mrg # `set' does not quote correctly, so add quotes (double-quote
12562 1.1 mrg # substitution turns \\\\ into \\, and sed turns \\ into \).
12563 1.1 mrg sed -n \
12564 1.1 mrg "s/'/'\\\\''/g;
12565 1.1 mrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12566 1.1 mrg ;;
12567 1.1 mrg *)
12568 1.1 mrg # `set' quotes correctly as required by POSIX, so do not add quotes.
12569 1.1 mrg sed -n \
12570 1.1 mrg "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12571 1.1 mrg ;;
12572 1.1 mrg esac;
12573 1.1 mrg } |
12574 1.1 mrg sed '
12575 1.1 mrg t clear
12576 1.1 mrg : clear
12577 1.1 mrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12578 1.1 mrg t end
12579 1.1 mrg /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12580 1.1 mrg : end' >>confcache
12581 1.1 mrg if cmp -s $cache_file confcache; then :; else
12582 1.1 mrg if test -w $cache_file; then
12583 1.1 mrg test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12584 1.1 mrg cat confcache >$cache_file
12585 1.1 mrg else
12586 1.1 mrg echo "not updating unwritable cache $cache_file"
12587 1.1 mrg fi
12588 1.1 mrg fi
12589 1.1 mrg rm -f confcache
12590 1.1 mrg
12591 1.1 mrg test "x$prefix" = xNONE && prefix=$ac_default_prefix
12592 1.1 mrg # Let make expand exec_prefix.
12593 1.1 mrg test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12594 1.1 mrg
12595 1.1 mrg # VPATH may cause trouble with some makes, so we remove $(srcdir),
12596 1.1 mrg # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12597 1.1 mrg # trailing colons and then remove the whole line if VPATH becomes empty
12598 1.1 mrg # (actually we leave an empty line to preserve line numbers).
12599 1.1 mrg if test "x$srcdir" = x.; then
12600 1.1 mrg ac_vpsub='/^[ ]*VPATH[ ]*=/{
12601 1.1 mrg s/:*\$(srcdir):*/:/;
12602 1.1 mrg s/:*\${srcdir}:*/:/;
12603 1.1 mrg s/:*@srcdir@:*/:/;
12604 1.1 mrg s/^\([^=]*=[ ]*\):*/\1/;
12605 1.1 mrg s/:*$//;
12606 1.1 mrg s/^[^=]*=[ ]*$//;
12607 1.1 mrg }'
12608 1.1 mrg fi
12609 1.1 mrg
12610 1.1 mrg DEFS=-DHAVE_CONFIG_H
12611 1.1 mrg
12612 1.1 mrg : ${CONFIG_STATUS=./config.status}
12613 1.1 mrg ac_clean_files_save=$ac_clean_files
12614 1.1 mrg ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12615 1.1.1.2 christos { echo "$as_me:12615: creating $CONFIG_STATUS" >&5
12616 1.1 mrg echo "$as_me: creating $CONFIG_STATUS" >&6;}
12617 1.1 mrg cat >$CONFIG_STATUS <<_ACEOF
12618 1.1 mrg #! $SHELL
12619 1.1 mrg # Generated automatically by configure.
12620 1.1 mrg # Run this file to recreate the current configuration.
12621 1.1 mrg # Compiler output produced by configure, useful for debugging
12622 1.1 mrg # configure, is in config.log if it exists.
12623 1.1 mrg
12624 1.1 mrg debug=false
12625 1.1 mrg SHELL=\${CONFIG_SHELL-$SHELL}
12626 1.1 mrg ac_cs_invocation="\$0 \$@"
12627 1.1 mrg
12628 1.1 mrg _ACEOF
12629 1.1 mrg
12630 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF
12631 1.1 mrg # Be Bourne compatible
12632 1.1 mrg if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12633 1.1 mrg emulate sh
12634 1.1 mrg NULLCMD=:
12635 1.1 mrg elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12636 1.1 mrg set -o posix
12637 1.1 mrg fi
12638 1.1 mrg
12639 1.1 mrg # Name of the executable.
12640 1.1 mrg as_me=`echo "$0" |sed 's,.*[\\/],,'`
12641 1.1 mrg
12642 1.1 mrg if expr a : '\(a\)' >/dev/null 2>&1; then
12643 1.1 mrg as_expr=expr
12644 1.1 mrg else
12645 1.1 mrg as_expr=false
12646 1.1 mrg fi
12647 1.1 mrg
12648 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
12649 1.1 mrg echo >conf$$.file
12650 1.1 mrg if ln -s conf$$.file conf$$ 2>/dev/null; then
12651 1.1 mrg # We could just check for DJGPP; but this test a) works b) is more generic
12652 1.1 mrg # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12653 1.1 mrg if test -f conf$$.exe; then
12654 1.1 mrg # Don't use ln at all; we don't have any links
12655 1.1 mrg as_ln_s='cp -p'
12656 1.1 mrg else
12657 1.1 mrg as_ln_s='ln -s'
12658 1.1 mrg fi
12659 1.1 mrg elif ln conf$$.file conf$$ 2>/dev/null; then
12660 1.1 mrg as_ln_s=ln
12661 1.1 mrg else
12662 1.1 mrg as_ln_s='cp -p'
12663 1.1 mrg fi
12664 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
12665 1.1 mrg
12666 1.1 mrg as_executable_p="test -f"
12667 1.1 mrg
12668 1.1 mrg # Support unset when possible.
12669 1.1 mrg if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12670 1.1 mrg as_unset=unset
12671 1.1 mrg else
12672 1.1 mrg as_unset=false
12673 1.1 mrg fi
12674 1.1 mrg
12675 1.1 mrg # NLS nuisances.
12676 1.1 mrg $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12677 1.1 mrg $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12678 1.1 mrg $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12679 1.1 mrg $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12680 1.1 mrg $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12681 1.1 mrg $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12682 1.1 mrg $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12683 1.1 mrg $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12684 1.1 mrg
12685 1.1 mrg # IFS
12686 1.1 mrg # We need space, tab and new line, in precisely that order.
12687 1.1 mrg as_nl='
12688 1.1 mrg '
12689 1.1 mrg IFS=" $as_nl"
12690 1.1 mrg
12691 1.1 mrg # CDPATH.
12692 1.1 mrg $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12693 1.1 mrg
12694 1.1 mrg exec 6>&1
12695 1.1 mrg
12696 1.1 mrg _ACEOF
12697 1.1 mrg
12698 1.1 mrg # Files that config.status was made for.
12699 1.1 mrg if test -n "$ac_config_files"; then
12700 1.1 mrg echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12701 1.1 mrg fi
12702 1.1 mrg
12703 1.1 mrg if test -n "$ac_config_headers"; then
12704 1.1 mrg echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12705 1.1 mrg fi
12706 1.1 mrg
12707 1.1 mrg if test -n "$ac_config_links"; then
12708 1.1 mrg echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12709 1.1 mrg fi
12710 1.1 mrg
12711 1.1 mrg if test -n "$ac_config_commands"; then
12712 1.1 mrg echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12713 1.1 mrg fi
12714 1.1 mrg
12715 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12716 1.1 mrg
12717 1.1 mrg ac_cs_usage="\
12718 1.1 mrg \`$as_me' instantiates files from templates according to the
12719 1.1 mrg current configuration.
12720 1.1 mrg
12721 1.1 mrg Usage: $0 [OPTIONS] [FILE]...
12722 1.1 mrg
12723 1.1 mrg -h, --help print this help, then exit
12724 1.1 mrg -V, --version print version number, then exit
12725 1.1 mrg -d, --debug don't remove temporary files
12726 1.1 mrg --recheck update $as_me by reconfiguring in the same conditions
12727 1.1 mrg --file=FILE[:TEMPLATE]
12728 1.1 mrg instantiate the configuration file FILE
12729 1.1 mrg --header=FILE[:TEMPLATE]
12730 1.1 mrg instantiate the configuration header FILE
12731 1.1 mrg
12732 1.1 mrg Configuration files:
12733 1.1 mrg $config_files
12734 1.1 mrg
12735 1.1 mrg Configuration headers:
12736 1.1 mrg $config_headers
12737 1.1 mrg
12738 1.1 mrg Report bugs to <bug-autoconf@gnu.org>."
12739 1.1 mrg EOF
12740 1.1 mrg
12741 1.1 mrg cat >>$CONFIG_STATUS <<EOF
12742 1.1 mrg ac_cs_version="\\
12743 1.1 mrg config.status
12744 1.1.1.2 christos configured by $0, generated by GNU Autoconf 2.52.20081225,
12745 1.1 mrg with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12746 1.1 mrg
12747 1.1 mrg Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12748 1.1 mrg Free Software Foundation, Inc.
12749 1.1 mrg This config.status script is free software; the Free Software Foundation
12750 1.1 mrg gives unlimited permission to copy, distribute and modify it."
12751 1.1 mrg srcdir=$srcdir
12752 1.1 mrg INSTALL="$INSTALL"
12753 1.1 mrg EOF
12754 1.1 mrg
12755 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12756 1.1 mrg # If no file are specified by the user, then we need to provide default
12757 1.1 mrg # value. By we need to know if files were specified by the user.
12758 1.1 mrg ac_need_defaults=:
12759 1.1 mrg while test $# != 0
12760 1.1 mrg do
12761 1.1 mrg case $1 in
12762 1.1 mrg --*=*)
12763 1.1 mrg ac_option=`expr "x$1" : 'x\([^=]*\)='`
12764 1.1 mrg ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12765 1.1 mrg shift
12766 1.1 mrg set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12767 1.1 mrg shift
12768 1.1 mrg ;;
12769 1.1 mrg -*);;
12770 1.1 mrg *) # This is not an option, so the user has probably given explicit
12771 1.1 mrg # arguments.
12772 1.1 mrg ac_need_defaults=false;;
12773 1.1 mrg esac
12774 1.1 mrg
12775 1.1 mrg case $1 in
12776 1.1 mrg # Handling of the options.
12777 1.1 mrg EOF
12778 1.1 mrg cat >>$CONFIG_STATUS <<EOF
12779 1.1 mrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12780 1.1 mrg echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12781 1.1 mrg exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12782 1.1 mrg EOF
12783 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12784 1.1 mrg --version | --vers* | -V )
12785 1.1 mrg echo "$ac_cs_version"; exit 0 ;;
12786 1.1 mrg --he | --h)
12787 1.1 mrg # Conflict between --help and --header
12788 1.1.1.2 christos { { echo "$as_me:12788: error: ambiguous option: $1
12789 1.1 mrg Try \`$0 --help' for more information." >&5
12790 1.1 mrg echo "$as_me: error: ambiguous option: $1
12791 1.1 mrg Try \`$0 --help' for more information." >&2;}
12792 1.1 mrg { (exit 1); exit 1; }; };;
12793 1.1 mrg --help | --hel | -h )
12794 1.1 mrg echo "$ac_cs_usage"; exit 0 ;;
12795 1.1 mrg --debug | --d* | -d )
12796 1.1 mrg debug=: ;;
12797 1.1 mrg --file | --fil | --fi | --f )
12798 1.1 mrg shift
12799 1.1 mrg CONFIG_FILES="$CONFIG_FILES $1"
12800 1.1 mrg ac_need_defaults=false;;
12801 1.1 mrg --header | --heade | --head | --hea )
12802 1.1 mrg shift
12803 1.1 mrg CONFIG_HEADERS="$CONFIG_HEADERS $1"
12804 1.1 mrg ac_need_defaults=false;;
12805 1.1 mrg
12806 1.1 mrg # This is an error.
12807 1.1.1.2 christos -*) { { echo "$as_me:12807: error: unrecognized option: $1
12808 1.1 mrg Try \`$0 --help' for more information." >&5
12809 1.1 mrg echo "$as_me: error: unrecognized option: $1
12810 1.1 mrg Try \`$0 --help' for more information." >&2;}
12811 1.1 mrg { (exit 1); exit 1; }; } ;;
12812 1.1 mrg
12813 1.1 mrg *) ac_config_targets="$ac_config_targets $1" ;;
12814 1.1 mrg
12815 1.1 mrg esac
12816 1.1 mrg shift
12817 1.1 mrg done
12818 1.1 mrg
12819 1.1 mrg exec 5>>config.log
12820 1.1 mrg cat >&5 << _ACEOF
12821 1.1 mrg
12822 1.1 mrg ## ----------------------- ##
12823 1.1 mrg ## Running config.status. ##
12824 1.1 mrg ## ----------------------- ##
12825 1.1 mrg
12826 1.1.1.2 christos This file was extended by $as_me 2.52.20081225, executed with
12827 1.1 mrg CONFIG_FILES = $CONFIG_FILES
12828 1.1 mrg CONFIG_HEADERS = $CONFIG_HEADERS
12829 1.1 mrg CONFIG_LINKS = $CONFIG_LINKS
12830 1.1 mrg CONFIG_COMMANDS = $CONFIG_COMMANDS
12831 1.1 mrg > $ac_cs_invocation
12832 1.1 mrg on `(hostname || uname -n) 2>/dev/null | sed 1q`
12833 1.1 mrg
12834 1.1 mrg _ACEOF
12835 1.1 mrg EOF
12836 1.1 mrg
12837 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12838 1.1 mrg for ac_config_target in $ac_config_targets
12839 1.1 mrg do
12840 1.1 mrg case "$ac_config_target" in
12841 1.1 mrg # Handling of arguments.
12842 1.1 mrg "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12843 1.1 mrg "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
12844 1.1.1.2 christos *) { { echo "$as_me:12844: error: invalid argument: $ac_config_target" >&5
12845 1.1 mrg echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12846 1.1 mrg { (exit 1); exit 1; }; };;
12847 1.1 mrg esac
12848 1.1 mrg done
12849 1.1 mrg
12850 1.1 mrg # If the user did not use the arguments to specify the items to instantiate,
12851 1.1 mrg # then the envvar interface is used. Set only those that are not.
12852 1.1 mrg # We use the long form for the default assignment because of an extremely
12853 1.1 mrg # bizarre bug on SunOS 4.1.3.
12854 1.1 mrg if $ac_need_defaults; then
12855 1.1 mrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12856 1.1 mrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12857 1.1 mrg fi
12858 1.1 mrg
12859 1.1 mrg # Create a temporary directory, and hook for its removal unless debugging.
12860 1.1 mrg $debug ||
12861 1.1 mrg {
12862 1.1 mrg trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12863 1.1 mrg trap '{ (exit 1); exit 1; }' 1 2 13 15
12864 1.1 mrg }
12865 1.1 mrg
12866 1.1 mrg # Create a (secure) tmp directory for tmp files.
12867 1.1 mrg : ${TMPDIR=/tmp}
12868 1.1 mrg {
12869 1.1 mrg tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12870 1.1 mrg test -n "$tmp" && test -d "$tmp"
12871 1.1 mrg } ||
12872 1.1 mrg {
12873 1.1 mrg tmp=$TMPDIR/cs$$-$RANDOM
12874 1.1 mrg (umask 077 && mkdir $tmp)
12875 1.1 mrg } ||
12876 1.1 mrg {
12877 1.1 mrg echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12878 1.1 mrg { (exit 1); exit 1; }
12879 1.1 mrg }
12880 1.1 mrg
12881 1.1 mrg EOF
12882 1.1 mrg
12883 1.1 mrg cat >>$CONFIG_STATUS <<EOF
12884 1.1 mrg
12885 1.1 mrg #
12886 1.1 mrg # CONFIG_FILES section.
12887 1.1 mrg #
12888 1.1 mrg
12889 1.1 mrg # No need to generate the scripts if there are no CONFIG_FILES.
12890 1.1 mrg # This happens for instance when ./config.status config.h
12891 1.1 mrg if test -n "\$CONFIG_FILES"; then
12892 1.1 mrg # Protect against being on the right side of a sed subst in config.status.
12893 1.1 mrg sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12894 1.1 mrg s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12895 1.1 mrg s,@SHELL@,$SHELL,;t t
12896 1.1 mrg s,@exec_prefix@,$exec_prefix,;t t
12897 1.1 mrg s,@prefix@,$prefix,;t t
12898 1.1 mrg s,@program_transform_name@,$program_transform_name,;t t
12899 1.1 mrg s,@bindir@,$bindir,;t t
12900 1.1 mrg s,@sbindir@,$sbindir,;t t
12901 1.1 mrg s,@libexecdir@,$libexecdir,;t t
12902 1.1 mrg s,@datadir@,$datadir,;t t
12903 1.1 mrg s,@sysconfdir@,$sysconfdir,;t t
12904 1.1 mrg s,@sharedstatedir@,$sharedstatedir,;t t
12905 1.1 mrg s,@localstatedir@,$localstatedir,;t t
12906 1.1 mrg s,@libdir@,$libdir,;t t
12907 1.1 mrg s,@includedir@,$includedir,;t t
12908 1.1 mrg s,@oldincludedir@,$oldincludedir,;t t
12909 1.1 mrg s,@infodir@,$infodir,;t t
12910 1.1 mrg s,@mandir@,$mandir,;t t
12911 1.1 mrg s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12912 1.1 mrg s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12913 1.1 mrg s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12914 1.1 mrg s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12915 1.1 mrg s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12916 1.1 mrg s,@build_alias@,$build_alias,;t t
12917 1.1 mrg s,@host_alias@,$host_alias,;t t
12918 1.1 mrg s,@target_alias@,$target_alias,;t t
12919 1.1 mrg s,@ECHO_C@,$ECHO_C,;t t
12920 1.1 mrg s,@ECHO_N@,$ECHO_N,;t t
12921 1.1 mrg s,@ECHO_T@,$ECHO_T,;t t
12922 1.1 mrg s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12923 1.1 mrg s,@DEFS@,$DEFS,;t t
12924 1.1 mrg s,@LIBS@,$LIBS,;t t
12925 1.1 mrg s,@build@,$build,;t t
12926 1.1 mrg s,@build_cpu@,$build_cpu,;t t
12927 1.1 mrg s,@build_vendor@,$build_vendor,;t t
12928 1.1 mrg s,@build_os@,$build_os,;t t
12929 1.1 mrg s,@host@,$host,;t t
12930 1.1 mrg s,@host_cpu@,$host_cpu,;t t
12931 1.1 mrg s,@host_vendor@,$host_vendor,;t t
12932 1.1 mrg s,@host_os@,$host_os,;t t
12933 1.1 mrg s,@CC@,$CC,;t t
12934 1.1 mrg s,@CFLAGS@,$CFLAGS,;t t
12935 1.1 mrg s,@LDFLAGS@,$LDFLAGS,;t t
12936 1.1 mrg s,@CPPFLAGS@,$CPPFLAGS,;t t
12937 1.1 mrg s,@ac_ct_CC@,$ac_ct_CC,;t t
12938 1.1 mrg s,@EXEEXT@,$EXEEXT,;t t
12939 1.1 mrg s,@OBJEXT@,$OBJEXT,;t t
12940 1.1 mrg s,@CPP@,$CPP,;t t
12941 1.1 mrg s,@AWK@,$AWK,;t t
12942 1.1 mrg s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12943 1.1 mrg s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12944 1.1 mrg s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12945 1.1 mrg s,@LN_S@,$LN_S,;t t
12946 1.1 mrg s,@LINT@,$LINT,;t t
12947 1.1 mrg s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
12948 1.1 mrg s,@PROG_EXT@,$PROG_EXT,;t t
12949 1.1 mrg s,@appsdir@,$appsdir,;t t
12950 1.1 mrg s,@no_appsdir@,$no_appsdir,;t t
12951 1.1 mrg s,@icondir@,$icondir,;t t
12952 1.1 mrg s,@no_icondir@,$no_icondir,;t t
12953 1.1 mrg s,@desktop_utils@,$desktop_utils,;t t
12954 1.1 mrg s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
12955 1.1 mrg s,@XTERM_PATH@,$XTERM_PATH,;t t
12956 1.1 mrg s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
12957 1.1 mrg s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
12958 1.1 mrg s,@X_CFLAGS@,$X_CFLAGS,;t t
12959 1.1 mrg s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12960 1.1 mrg s,@X_LIBS@,$X_LIBS,;t t
12961 1.1 mrg s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12962 1.1 mrg s,@IMAKE@,$IMAKE,;t t
12963 1.1 mrg s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
12964 1.1 mrg s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
12965 1.1 mrg s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
12966 1.1 mrg s,@SET_TERMINFO@,$SET_TERMINFO,;t t
12967 1.1 mrg s,@FREETYPE_PKG_CONFIG@,$FREETYPE_PKG_CONFIG,;t t
12968 1.1 mrg s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
12969 1.1 mrg s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
12970 1.1 mrg s,@XRENDERFONT@,$XRENDERFONT,;t t
12971 1.1 mrg s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
12972 1.1 mrg s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
12973 1.1 mrg s,@LUIT@,$LUIT,;t t
12974 1.1 mrg s,@ECHO_LT@,$ECHO_LT,;t t
12975 1.1 mrg s,@ECHO_LD@,$ECHO_LD,;t t
12976 1.1 mrg s,@RULE_CC@,$RULE_CC,;t t
12977 1.1 mrg s,@SHOW_CC@,$SHOW_CC,;t t
12978 1.1 mrg s,@ECHO_CC@,$ECHO_CC,;t t
12979 1.1 mrg s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
12980 1.1 mrg s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
12981 1.1 mrg s,@EXTRAHDRS@,$EXTRAHDRS,;t t
12982 1.1 mrg s,@EXTRASRCS@,$EXTRASRCS,;t t
12983 1.1 mrg s,@EXTRAOBJS@,$EXTRAOBJS,;t t
12984 1.1 mrg s,@MAY_SETUID@,$MAY_SETUID,;t t
12985 1.1 mrg s,@NOT_SETUID@,$NOT_SETUID,;t t
12986 1.1 mrg CEOF
12987 1.1 mrg
12988 1.1 mrg EOF
12989 1.1 mrg
12990 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12991 1.1 mrg # Split the substitutions into bite-sized pieces for seds with
12992 1.1 mrg # small command number limits, like on Digital OSF/1 and HP-UX.
12993 1.1 mrg ac_max_sed_lines=48
12994 1.1 mrg ac_sed_frag=1 # Number of current file.
12995 1.1 mrg ac_beg=1 # First line for current file.
12996 1.1 mrg ac_end=$ac_max_sed_lines # Line after last line for current file.
12997 1.1 mrg ac_more_lines=:
12998 1.1 mrg ac_sed_cmds=
12999 1.1 mrg while $ac_more_lines; do
13000 1.1 mrg if test $ac_beg -gt 1; then
13001 1.1 mrg sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13002 1.1 mrg else
13003 1.1 mrg sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13004 1.1 mrg fi
13005 1.1 mrg if test ! -s $tmp/subs.frag; then
13006 1.1 mrg ac_more_lines=false
13007 1.1 mrg else
13008 1.1 mrg # The purpose of the label and of the branching condition is to
13009 1.1 mrg # speed up the sed processing (if there are no `@' at all, there
13010 1.1 mrg # is no need to browse any of the substitutions).
13011 1.1 mrg # These are the two extra sed commands mentioned above.
13012 1.1 mrg (echo ':t
13013 1.1 mrg /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13014 1.1 mrg if test -z "$ac_sed_cmds"; then
13015 1.1 mrg ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13016 1.1 mrg else
13017 1.1 mrg ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13018 1.1 mrg fi
13019 1.1 mrg ac_sed_frag=`expr $ac_sed_frag + 1`
13020 1.1 mrg ac_beg=$ac_end
13021 1.1 mrg ac_end=`expr $ac_end + $ac_max_sed_lines`
13022 1.1 mrg fi
13023 1.1 mrg done
13024 1.1 mrg if test -z "$ac_sed_cmds"; then
13025 1.1 mrg ac_sed_cmds=cat
13026 1.1 mrg fi
13027 1.1 mrg fi # test -n "$CONFIG_FILES"
13028 1.1 mrg
13029 1.1 mrg EOF
13030 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13031 1.1 mrg for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13032 1.1 mrg # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13033 1.1 mrg case $ac_file in
13034 1.1 mrg - | *:- | *:-:* ) # input from stdin
13035 1.1 mrg cat >$tmp/stdin
13036 1.1 mrg ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13037 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13038 1.1 mrg *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13039 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13040 1.1 mrg * ) ac_file_in=$ac_file.in ;;
13041 1.1 mrg esac
13042 1.1 mrg
13043 1.1 mrg # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13044 1.1 mrg ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13045 1.1 mrg X"$ac_file" : 'X\(//\)[^/]' \| \
13046 1.1 mrg X"$ac_file" : 'X\(//\)$' \| \
13047 1.1 mrg X"$ac_file" : 'X\(/\)' \| \
13048 1.1 mrg . : '\(.\)' 2>/dev/null ||
13049 1.1 mrg echo X"$ac_file" |
13050 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13051 1.1 mrg /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13052 1.1 mrg /^X\(\/\/\)$/{ s//\1/; q; }
13053 1.1 mrg /^X\(\/\).*/{ s//\1/; q; }
13054 1.1 mrg s/.*/./; q'`
13055 1.1 mrg if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13056 1.1 mrg { case "$ac_dir" in
13057 1.1 mrg [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13058 1.1 mrg *) as_incr_dir=.;;
13059 1.1 mrg esac
13060 1.1 mrg as_dummy="$ac_dir"
13061 1.1 mrg for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13062 1.1 mrg case $as_mkdir_dir in
13063 1.1 mrg # Skip DOS drivespec
13064 1.1 mrg ?:) as_incr_dir=$as_mkdir_dir ;;
13065 1.1 mrg *)
13066 1.1 mrg as_incr_dir=$as_incr_dir/$as_mkdir_dir
13067 1.1 mrg test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13068 1.1 mrg ;;
13069 1.1 mrg esac
13070 1.1 mrg done; }
13071 1.1 mrg
13072 1.1 mrg ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13073 1.1 mrg # A "../" for each directory in $ac_dir_suffix.
13074 1.1 mrg ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13075 1.1 mrg else
13076 1.1 mrg ac_dir_suffix= ac_dots=
13077 1.1 mrg fi
13078 1.1 mrg
13079 1.1 mrg case $srcdir in
13080 1.1 mrg .) ac_srcdir=.
13081 1.1 mrg if test -z "$ac_dots"; then
13082 1.1 mrg ac_top_srcdir=.
13083 1.1 mrg else
13084 1.1 mrg ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13085 1.1 mrg fi ;;
13086 1.1 mrg [\\/]* | ?:[\\/]* )
13087 1.1 mrg ac_srcdir=$srcdir$ac_dir_suffix;
13088 1.1 mrg ac_top_srcdir=$srcdir ;;
13089 1.1 mrg *) # Relative path.
13090 1.1 mrg ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13091 1.1 mrg ac_top_srcdir=$ac_dots$srcdir ;;
13092 1.1 mrg esac
13093 1.1 mrg
13094 1.1 mrg case $INSTALL in
13095 1.1 mrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13096 1.1 mrg *) ac_INSTALL=$ac_dots$INSTALL ;;
13097 1.1 mrg esac
13098 1.1 mrg
13099 1.1 mrg if test x"$ac_file" != x-; then
13100 1.1.1.2 christos { echo "$as_me:13100: creating $ac_file" >&5
13101 1.1 mrg echo "$as_me: creating $ac_file" >&6;}
13102 1.1 mrg rm -f "$ac_file"
13103 1.1 mrg fi
13104 1.1 mrg # Let's still pretend it is `configure' which instantiates (i.e., don't
13105 1.1 mrg # use $as_me), people would be surprised to read:
13106 1.1 mrg # /* config.h. Generated automatically by config.status. */
13107 1.1 mrg configure_input="Generated automatically from `echo $ac_file_in |
13108 1.1 mrg sed 's,.*/,,'` by configure."
13109 1.1 mrg
13110 1.1 mrg # First look for the input files in the build tree, otherwise in the
13111 1.1 mrg # src tree.
13112 1.1 mrg ac_file_inputs=`IFS=:
13113 1.1 mrg for f in $ac_file_in; do
13114 1.1 mrg case $f in
13115 1.1 mrg -) echo $tmp/stdin ;;
13116 1.1 mrg [\\/$]*)
13117 1.1 mrg # Absolute (can't be DOS-style, as IFS=:)
13118 1.1.1.2 christos test -f "$f" || { { echo "$as_me:13118: error: cannot find input file: $f" >&5
13119 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13120 1.1 mrg { (exit 1); exit 1; }; }
13121 1.1 mrg echo $f;;
13122 1.1 mrg *) # Relative
13123 1.1 mrg if test -f "$f"; then
13124 1.1 mrg # Build tree
13125 1.1 mrg echo $f
13126 1.1 mrg elif test -f "$srcdir/$f"; then
13127 1.1 mrg # Source tree
13128 1.1 mrg echo $srcdir/$f
13129 1.1 mrg else
13130 1.1 mrg # /dev/null tree
13131 1.1.1.2 christos { { echo "$as_me:13131: error: cannot find input file: $f" >&5
13132 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13133 1.1 mrg { (exit 1); exit 1; }; }
13134 1.1 mrg fi;;
13135 1.1 mrg esac
13136 1.1 mrg done` || { (exit 1); exit 1; }
13137 1.1 mrg EOF
13138 1.1 mrg cat >>$CONFIG_STATUS <<EOF
13139 1.1 mrg sed "$ac_vpsub
13140 1.1 mrg $extrasub
13141 1.1 mrg EOF
13142 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13143 1.1 mrg :t
13144 1.1 mrg /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13145 1.1 mrg s,@configure_input@,$configure_input,;t t
13146 1.1 mrg s,@srcdir@,$ac_srcdir,;t t
13147 1.1 mrg s,@top_srcdir@,$ac_top_srcdir,;t t
13148 1.1 mrg s,@INSTALL@,$ac_INSTALL,;t t
13149 1.1 mrg " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13150 1.1 mrg rm -f $tmp/stdin
13151 1.1 mrg if test x"$ac_file" != x-; then
13152 1.1 mrg mv $tmp/out $ac_file
13153 1.1 mrg else
13154 1.1 mrg cat $tmp/out
13155 1.1 mrg rm -f $tmp/out
13156 1.1 mrg fi
13157 1.1 mrg
13158 1.1 mrg done
13159 1.1 mrg EOF
13160 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13161 1.1 mrg
13162 1.1 mrg #
13163 1.1 mrg # CONFIG_HEADER section.
13164 1.1 mrg #
13165 1.1 mrg
13166 1.1 mrg # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13167 1.1 mrg # NAME is the cpp macro being defined and VALUE is the value it is being given.
13168 1.1 mrg #
13169 1.1 mrg # ac_d sets the value in "#define NAME VALUE" lines.
13170 1.1 mrg ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13171 1.1 mrg ac_dB='[ ].*$,\1#\2'
13172 1.1 mrg ac_dC=' '
13173 1.1 mrg ac_dD=',;t'
13174 1.1 mrg # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13175 1.1 mrg ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13176 1.1 mrg ac_iB='\([ ]\),\1#\2define\3'
13177 1.1 mrg ac_iC=' '
13178 1.1 mrg ac_iD='\4,;t'
13179 1.1 mrg # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13180 1.1 mrg ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13181 1.1 mrg ac_uB='$,\1#\2define\3'
13182 1.1 mrg ac_uC=' '
13183 1.1 mrg ac_uD=',;t'
13184 1.1 mrg
13185 1.1 mrg for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13186 1.1 mrg # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13187 1.1 mrg case $ac_file in
13188 1.1 mrg - | *:- | *:-:* ) # input from stdin
13189 1.1 mrg cat >$tmp/stdin
13190 1.1 mrg ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13191 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13192 1.1 mrg *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13193 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13194 1.1 mrg * ) ac_file_in=$ac_file.in ;;
13195 1.1 mrg esac
13196 1.1 mrg
13197 1.1.1.2 christos test x"$ac_file" != x- && { echo "$as_me:13197: creating $ac_file" >&5
13198 1.1 mrg echo "$as_me: creating $ac_file" >&6;}
13199 1.1 mrg
13200 1.1 mrg # First look for the input files in the build tree, otherwise in the
13201 1.1 mrg # src tree.
13202 1.1 mrg ac_file_inputs=`IFS=:
13203 1.1 mrg for f in $ac_file_in; do
13204 1.1 mrg case $f in
13205 1.1 mrg -) echo $tmp/stdin ;;
13206 1.1 mrg [\\/$]*)
13207 1.1 mrg # Absolute (can't be DOS-style, as IFS=:)
13208 1.1.1.2 christos test -f "$f" || { { echo "$as_me:13208: error: cannot find input file: $f" >&5
13209 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13210 1.1 mrg { (exit 1); exit 1; }; }
13211 1.1 mrg echo $f;;
13212 1.1 mrg *) # Relative
13213 1.1 mrg if test -f "$f"; then
13214 1.1 mrg # Build tree
13215 1.1 mrg echo $f
13216 1.1 mrg elif test -f "$srcdir/$f"; then
13217 1.1 mrg # Source tree
13218 1.1 mrg echo $srcdir/$f
13219 1.1 mrg else
13220 1.1 mrg # /dev/null tree
13221 1.1.1.2 christos { { echo "$as_me:13221: error: cannot find input file: $f" >&5
13222 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13223 1.1 mrg { (exit 1); exit 1; }; }
13224 1.1 mrg fi;;
13225 1.1 mrg esac
13226 1.1 mrg done` || { (exit 1); exit 1; }
13227 1.1 mrg # Remove the trailing spaces.
13228 1.1 mrg sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13229 1.1 mrg
13230 1.1 mrg EOF
13231 1.1 mrg
13232 1.1 mrg # Transform confdefs.h into two sed scripts, `conftest.defines' and
13233 1.1 mrg # `conftest.undefs', that substitutes the proper values into
13234 1.1 mrg # config.h.in to produce config.h. The first handles `#define'
13235 1.1 mrg # templates, and the second `#undef' templates.
13236 1.1 mrg # And first: Protect against being on the right side of a sed subst in
13237 1.1 mrg # config.status. Protect against being in an unquoted here document
13238 1.1 mrg # in config.status.
13239 1.1 mrg rm -f conftest.defines conftest.undefs
13240 1.1 mrg # Using a here document instead of a string reduces the quoting nightmare.
13241 1.1 mrg # Putting comments in sed scripts is not portable.
13242 1.1 mrg #
13243 1.1 mrg # `end' is used to avoid that the second main sed command (meant for
13244 1.1 mrg # 0-ary CPP macros) applies to n-ary macro definitions.
13245 1.1 mrg # See the Autoconf documentation for `clear'.
13246 1.1 mrg cat >confdef2sed.sed <<\EOF
13247 1.1 mrg s/[\\&,]/\\&/g
13248 1.1 mrg s,[\\$`],\\&,g
13249 1.1 mrg t clear
13250 1.1 mrg : clear
13251 1.1 mrg s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13252 1.1 mrg t end
13253 1.1 mrg s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13254 1.1 mrg : end
13255 1.1 mrg EOF
13256 1.1 mrg # If some macros were called several times there might be several times
13257 1.1 mrg # the same #defines, which is useless. Nevertheless, we may not want to
13258 1.1 mrg # sort them, since we want the *last* AC-DEFINE to be honored.
13259 1.1 mrg uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13260 1.1 mrg sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13261 1.1 mrg sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
13262 1.1 mrg rm -f confdef2sed.sed
13263 1.1 mrg
13264 1.1 mrg # This sed command replaces #undef with comments. This is necessary, for
13265 1.1 mrg # example, in the case of _POSIX_SOURCE, which is predefined and required
13266 1.1 mrg # on some systems where configure will not decide to define it.
13267 1.1 mrg cat >>conftest.undefs <<\EOF
13268 1.1 mrg s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13269 1.1 mrg EOF
13270 1.1 mrg
13271 1.1 mrg # Break up conftest.defines because some shells have a limit on the size
13272 1.1 mrg # of here documents, and old seds have small limits too (100 cmds).
13273 1.1 mrg echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13274 1.1 mrg echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13275 1.1 mrg echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13276 1.1 mrg echo ' :' >>$CONFIG_STATUS
13277 1.1 mrg rm -f conftest.tail
13278 1.1 mrg while grep . conftest.defines >/dev/null
13279 1.1 mrg do
13280 1.1 mrg # Write a limited-size here document to $tmp/defines.sed.
13281 1.1 mrg echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13282 1.1 mrg # Speed up: don't consider the non `#define' lines.
13283 1.1 mrg echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13284 1.1 mrg # Work around the forget-to-reset-the-flag bug.
13285 1.1 mrg echo 't clr' >>$CONFIG_STATUS
13286 1.1 mrg echo ': clr' >>$CONFIG_STATUS
13287 1.1 mrg sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13288 1.1 mrg echo 'CEOF
13289 1.1 mrg sed -f $tmp/defines.sed $tmp/in >$tmp/out
13290 1.1 mrg rm -f $tmp/in
13291 1.1 mrg mv $tmp/out $tmp/in
13292 1.1 mrg ' >>$CONFIG_STATUS
13293 1.1 mrg sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13294 1.1 mrg rm -f conftest.defines
13295 1.1 mrg mv conftest.tail conftest.defines
13296 1.1 mrg done
13297 1.1 mrg rm -f conftest.defines
13298 1.1 mrg echo ' fi # egrep' >>$CONFIG_STATUS
13299 1.1 mrg echo >>$CONFIG_STATUS
13300 1.1 mrg
13301 1.1 mrg # Break up conftest.undefs because some shells have a limit on the size
13302 1.1 mrg # of here documents, and old seds have small limits too (100 cmds).
13303 1.1 mrg echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13304 1.1 mrg rm -f conftest.tail
13305 1.1 mrg while grep . conftest.undefs >/dev/null
13306 1.1 mrg do
13307 1.1 mrg # Write a limited-size here document to $tmp/undefs.sed.
13308 1.1 mrg echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13309 1.1 mrg # Speed up: don't consider the non `#undef'
13310 1.1 mrg echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13311 1.1 mrg # Work around the forget-to-reset-the-flag bug.
13312 1.1 mrg echo 't clr' >>$CONFIG_STATUS
13313 1.1 mrg echo ': clr' >>$CONFIG_STATUS
13314 1.1 mrg sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13315 1.1 mrg echo 'CEOF
13316 1.1 mrg sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13317 1.1 mrg rm -f $tmp/in
13318 1.1 mrg mv $tmp/out $tmp/in
13319 1.1 mrg ' >>$CONFIG_STATUS
13320 1.1 mrg sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13321 1.1 mrg rm -f conftest.undefs
13322 1.1 mrg mv conftest.tail conftest.undefs
13323 1.1 mrg done
13324 1.1 mrg rm -f conftest.undefs
13325 1.1 mrg
13326 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13327 1.1 mrg # Let's still pretend it is `configure' which instantiates (i.e., don't
13328 1.1 mrg # use $as_me), people would be surprised to read:
13329 1.1 mrg # /* config.h. Generated automatically by config.status. */
13330 1.1 mrg if test x"$ac_file" = x-; then
13331 1.1 mrg echo "/* Generated automatically by configure. */" >$tmp/config.h
13332 1.1 mrg else
13333 1.1 mrg echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13334 1.1 mrg fi
13335 1.1 mrg cat $tmp/in >>$tmp/config.h
13336 1.1 mrg rm -f $tmp/in
13337 1.1 mrg if test x"$ac_file" != x-; then
13338 1.1 mrg if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13339 1.1.1.2 christos { echo "$as_me:13339: $ac_file is unchanged" >&5
13340 1.1 mrg echo "$as_me: $ac_file is unchanged" >&6;}
13341 1.1 mrg else
13342 1.1 mrg ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13343 1.1 mrg X"$ac_file" : 'X\(//\)[^/]' \| \
13344 1.1 mrg X"$ac_file" : 'X\(//\)$' \| \
13345 1.1 mrg X"$ac_file" : 'X\(/\)' \| \
13346 1.1 mrg . : '\(.\)' 2>/dev/null ||
13347 1.1 mrg echo X"$ac_file" |
13348 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13349 1.1 mrg /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13350 1.1 mrg /^X\(\/\/\)$/{ s//\1/; q; }
13351 1.1 mrg /^X\(\/\).*/{ s//\1/; q; }
13352 1.1 mrg s/.*/./; q'`
13353 1.1 mrg if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13354 1.1 mrg { case "$ac_dir" in
13355 1.1 mrg [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13356 1.1 mrg *) as_incr_dir=.;;
13357 1.1 mrg esac
13358 1.1 mrg as_dummy="$ac_dir"
13359 1.1 mrg for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13360 1.1 mrg case $as_mkdir_dir in
13361 1.1 mrg # Skip DOS drivespec
13362 1.1 mrg ?:) as_incr_dir=$as_mkdir_dir ;;
13363 1.1 mrg *)
13364 1.1 mrg as_incr_dir=$as_incr_dir/$as_mkdir_dir
13365 1.1 mrg test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13366 1.1 mrg ;;
13367 1.1 mrg esac
13368 1.1 mrg done; }
13369 1.1 mrg
13370 1.1 mrg fi
13371 1.1 mrg rm -f $ac_file
13372 1.1 mrg mv $tmp/config.h $ac_file
13373 1.1 mrg fi
13374 1.1 mrg else
13375 1.1 mrg cat $tmp/config.h
13376 1.1 mrg rm -f $tmp/config.h
13377 1.1 mrg fi
13378 1.1 mrg done
13379 1.1 mrg EOF
13380 1.1 mrg
13381 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13382 1.1 mrg
13383 1.1 mrg { (exit 0); exit 0; }
13384 1.1 mrg EOF
13385 1.1 mrg chmod +x $CONFIG_STATUS
13386 1.1 mrg ac_clean_files=$ac_clean_files_save
13387 1.1 mrg
13388 1.1 mrg # configure is writing to config.log, and then calls config.status.
13389 1.1 mrg # config.status does its own redirection, appending to config.log.
13390 1.1 mrg # Unfortunately, on DOS this fails, as config.log is still kept open
13391 1.1 mrg # by configure, so config.status won't be able to write to it; its
13392 1.1 mrg # output is simply discarded. So we exec the FD to /dev/null,
13393 1.1 mrg # effectively closing config.log, so it can be properly (re)opened and
13394 1.1 mrg # appended to by config.status. When coming back to configure, we
13395 1.1 mrg # need to make the FD available again.
13396 1.1 mrg if test "$no_create" != yes; then
13397 1.1 mrg ac_cs_success=:
13398 1.1 mrg exec 5>/dev/null
13399 1.1 mrg $SHELL $CONFIG_STATUS || ac_cs_success=false
13400 1.1 mrg exec 5>>config.log
13401 1.1 mrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13402 1.1 mrg # would make configure fail if this is the last instruction.
13403 1.1 mrg $ac_cs_success || { (exit 1); exit 1; }
13404 1.1 mrg fi
13405 1.1 mrg
13406