configure revision 1.1.1.3 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.1.3 snj --with-pkg-config{=path} enable/disable use of pkg-config
726 1.1 mrg --with-freetype-cflags -D/-I options for compiling with FreeType
727 1.1 mrg --with-freetype-libs -L/-l options to link FreeType
728 1.1 mrg --enable-hp-fkeys enable support for HP-style function keys
729 1.1 mrg --enable-sco-fkeys enable support for SCO-style function keys
730 1.1 mrg --disable-sun-fkeys disable support for Sun-style function keys
731 1.1.1.3 snj --enable-fifo-lines disable FIFO-storage for saved-lines
732 1.1 mrg --disable-i18n disable internationalization
733 1.1 mrg --disable-initial-erase disable setup for stty erase
734 1.1 mrg --disable-input-method disable input-method
735 1.1 mrg --enable-load-vt-fonts enable load-vt-fonts() action
736 1.1 mrg --enable-logging enable logging
737 1.1 mrg --enable-logfile-exec enable exec'd logfile filter
738 1.1 mrg --disable-maximize disable actions for iconify/deiconify/maximize/restore
739 1.1 mrg --disable-num-lock disable NumLock keypad support
740 1.1.1.2 christos --disable-paste64 disable get/set base64 selection data
741 1.1 mrg --disable-pty-handshake disable pty-handshake support
742 1.1 mrg --enable-readline-mouse enable support for mouse in readline applications
743 1.1 mrg --disable-regex disable regular-expression selections
744 1.1 mrg --with-pcre use PCRE for regular-expressions
745 1.1 mrg --disable-rightbar disable right-scrollbar support
746 1.1 mrg --disable-samename disable check for redundant name-change
747 1.1 mrg --disable-session-mgt disable support for session management
748 1.1 mrg --disable-tcap-fkeys disable termcap function-keys support
749 1.1.1.2 christos --disable-tcap-query disable compiled-in termcap-query support
750 1.1 mrg --disable-tek4014 disable tek4014 emulation
751 1.1 mrg --enable-toolbar compile-in toolbar for pulldown menus
752 1.1 mrg --disable-vt52 disable VT52 emulation
753 1.1 mrg --enable-mini-luit enable mini-luit (built-in Latin9 support)
754 1.1 mrg --enable-luit enable luit filter (Unicode translation)
755 1.1 mrg --enable-wide-chars enable wide-character support
756 1.1.1.3 snj --enable-16bit-chars enable 16-bit character support
757 1.1 mrg --enable-dabbrev enable dynamic-abbreviation support
758 1.1 mrg --enable-dec-locator enable DECterm Locator support
759 1.1 mrg --disable-rectangles disable VT420 rectangle support
760 1.1 mrg --disable-ziconbeep disable -ziconbeep option
761 1.1 mrg Testing/development Options:
762 1.1 mrg --enable-trace test: set to enable debugging traces
763 1.1 mrg --disable-leaks test: set to test memory leaks
764 1.1 mrg --disable-echo display "compiling" commands
765 1.1 mrg --enable-xmc-glitch test: enable xmc magic-cookie emulation
766 1.1 mrg --enable-warnings test: turn on GCC compiler warnings
767 1.1 mrg
768 1.1 mrg Some influential environment variables:
769 1.1 mrg CC C compiler command
770 1.1 mrg CFLAGS C compiler flags
771 1.1 mrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
772 1.1 mrg nonstandard directory <lib dir>
773 1.1 mrg CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
774 1.1 mrg headers in a nonstandard directory <include dir>
775 1.1 mrg CPP C preprocessor
776 1.1 mrg
777 1.1 mrg Use these variables to override the choices made by `configure' or to help
778 1.1 mrg it to find libraries and programs with nonstandard names/locations.
779 1.1 mrg
780 1.1 mrg EOF
781 1.1 mrg fi
782 1.1 mrg
783 1.1 mrg if test "$ac_init_help" = "recursive"; then
784 1.1 mrg # If there are subdirs, report their specific --help.
785 1.1 mrg ac_popdir=`pwd`
786 1.1 mrg for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
787 1.1 mrg cd $ac_subdir
788 1.1 mrg # A "../" for each directory in /$ac_subdir.
789 1.1 mrg ac_dots=`echo $ac_subdir |
790 1.1 mrg sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
791 1.1 mrg
792 1.1 mrg case $srcdir in
793 1.1 mrg .) # No --srcdir option. We are building in place.
794 1.1 mrg ac_sub_srcdir=$srcdir ;;
795 1.1 mrg [\\/]* | ?:[\\/]* ) # Absolute path.
796 1.1 mrg ac_sub_srcdir=$srcdir/$ac_subdir ;;
797 1.1 mrg *) # Relative path.
798 1.1 mrg ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
799 1.1 mrg esac
800 1.1 mrg
801 1.1 mrg # Check for guested configure; otherwise get Cygnus style configure.
802 1.1 mrg if test -f $ac_sub_srcdir/configure.gnu; then
803 1.1 mrg echo
804 1.1 mrg $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
805 1.1 mrg elif test -f $ac_sub_srcdir/configure; then
806 1.1 mrg echo
807 1.1 mrg $SHELL $ac_sub_srcdir/configure --help=recursive
808 1.1 mrg elif test -f $ac_sub_srcdir/configure.ac ||
809 1.1 mrg test -f $ac_sub_srcdir/configure.in; then
810 1.1 mrg echo
811 1.1 mrg $ac_configure --help
812 1.1 mrg else
813 1.1 mrg echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
814 1.1 mrg fi
815 1.1 mrg cd $ac_popdir
816 1.1 mrg done
817 1.1 mrg fi
818 1.1 mrg
819 1.1 mrg test -n "$ac_init_help" && exit 0
820 1.1 mrg if $ac_init_version; then
821 1.1 mrg cat <<\EOF
822 1.1 mrg
823 1.1 mrg Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
824 1.1 mrg Free Software Foundation, Inc.
825 1.1 mrg This configure script is free software; the Free Software Foundation
826 1.1 mrg gives unlimited permission to copy, distribute and modify it.
827 1.1 mrg EOF
828 1.1 mrg exit 0
829 1.1 mrg fi
830 1.1 mrg exec 5>config.log
831 1.1 mrg cat >&5 <<EOF
832 1.1 mrg This file contains any messages produced by compilers while
833 1.1 mrg running configure, to aid debugging if configure makes a mistake.
834 1.1 mrg
835 1.1 mrg It was created by $as_me, which was
836 1.1.1.2 christos generated by GNU Autoconf 2.52.20081225. Invocation command line was
837 1.1 mrg
838 1.1 mrg $ $0 $@
839 1.1 mrg
840 1.1 mrg EOF
841 1.1 mrg {
842 1.1 mrg cat <<_ASUNAME
843 1.1 mrg ## ---------- ##
844 1.1 mrg ## Platform. ##
845 1.1 mrg ## ---------- ##
846 1.1 mrg
847 1.1 mrg hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
848 1.1 mrg uname -m = `(uname -m) 2>/dev/null || echo unknown`
849 1.1 mrg uname -r = `(uname -r) 2>/dev/null || echo unknown`
850 1.1 mrg uname -s = `(uname -s) 2>/dev/null || echo unknown`
851 1.1 mrg uname -v = `(uname -v) 2>/dev/null || echo unknown`
852 1.1 mrg
853 1.1 mrg /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
854 1.1 mrg /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
855 1.1 mrg
856 1.1 mrg /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
857 1.1 mrg /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
858 1.1 mrg /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
859 1.1 mrg hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
860 1.1 mrg /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
861 1.1 mrg /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
862 1.1 mrg /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
863 1.1 mrg
864 1.1 mrg PATH = $PATH
865 1.1 mrg
866 1.1 mrg _ASUNAME
867 1.1 mrg } >&5
868 1.1 mrg
869 1.1 mrg cat >&5 <<EOF
870 1.1 mrg ## ------------ ##
871 1.1 mrg ## Core tests. ##
872 1.1 mrg ## ------------ ##
873 1.1 mrg
874 1.1 mrg EOF
875 1.1 mrg
876 1.1 mrg # Keep a trace of the command line.
877 1.1 mrg # Strip out --no-create and --no-recursion so they do not pile up.
878 1.1 mrg # Also quote any args containing shell meta-characters.
879 1.1 mrg ac_configure_args=
880 1.1 mrg ac_sep=
881 1.1 mrg for ac_arg
882 1.1 mrg do
883 1.1 mrg case $ac_arg in
884 1.1 mrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 1.1 mrg | --no-cr | --no-c) ;;
886 1.1 mrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \
887 1.1 mrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
888 1.1 mrg *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
889 1.1 mrg ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
890 1.1 mrg ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
891 1.1 mrg ac_sep=" " ;;
892 1.1 mrg *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
893 1.1 mrg ac_sep=" " ;;
894 1.1 mrg esac
895 1.1 mrg # Get rid of the leading space.
896 1.1 mrg done
897 1.1 mrg
898 1.1 mrg # When interrupted or exit'd, cleanup temporary files, and complete
899 1.1 mrg # config.log. We remove comments because anyway the quotes in there
900 1.1 mrg # would cause problems or look ugly.
901 1.1 mrg trap 'exit_status=$?
902 1.1 mrg # Save into config.log some information that might help in debugging.
903 1.1 mrg echo >&5
904 1.1 mrg echo "## ----------------- ##" >&5
905 1.1 mrg echo "## Cache variables. ##" >&5
906 1.1 mrg echo "## ----------------- ##" >&5
907 1.1 mrg echo >&5
908 1.1 mrg # The following way of writing the cache mishandles newlines in values,
909 1.1 mrg {
910 1.1 mrg (set) 2>&1 |
911 1.1 mrg case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
912 1.1 mrg *ac_space=\ *)
913 1.1 mrg sed -n \
914 1.1 mrg "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
915 1.1 mrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
916 1.1 mrg ;;
917 1.1 mrg *)
918 1.1 mrg sed -n \
919 1.1 mrg "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
920 1.1 mrg ;;
921 1.1 mrg esac;
922 1.1 mrg } >&5
923 1.1 mrg sed "/^$/d" confdefs.h >conftest.log
924 1.1 mrg if test -s conftest.log; then
925 1.1 mrg echo >&5
926 1.1 mrg echo "## ------------ ##" >&5
927 1.1 mrg echo "## confdefs.h. ##" >&5
928 1.1 mrg echo "## ------------ ##" >&5
929 1.1 mrg echo >&5
930 1.1 mrg cat conftest.log >&5
931 1.1 mrg fi
932 1.1 mrg (echo; echo) >&5
933 1.1 mrg test "$ac_signal" != 0 &&
934 1.1 mrg echo "$as_me: caught signal $ac_signal" >&5
935 1.1 mrg echo "$as_me: exit $exit_status" >&5
936 1.1 mrg rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
937 1.1 mrg exit $exit_status
938 1.1 mrg ' 0
939 1.1 mrg for ac_signal in 1 2 13 15; do
940 1.1 mrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
941 1.1 mrg done
942 1.1 mrg ac_signal=0
943 1.1 mrg
944 1.1 mrg # confdefs.h avoids OS command line length limits that DEFS can exceed.
945 1.1 mrg rm -rf conftest* confdefs.h
946 1.1 mrg # AIX cpp loses on an empty file, so make sure it contains at least a newline.
947 1.1 mrg echo >confdefs.h
948 1.1 mrg
949 1.1 mrg # Let the site file select an alternate cache file if it wants to.
950 1.1 mrg # Prefer explicitly selected file to automatically selected ones.
951 1.1 mrg if test -z "$CONFIG_SITE"; then
952 1.1 mrg if test "x$prefix" != xNONE; then
953 1.1 mrg CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
954 1.1 mrg else
955 1.1 mrg CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
956 1.1 mrg fi
957 1.1 mrg fi
958 1.1 mrg for ac_site_file in $CONFIG_SITE; do
959 1.1 mrg if test -r "$ac_site_file"; then
960 1.1.1.3 snj { echo "$as_me:960: loading site script $ac_site_file" >&5
961 1.1 mrg echo "$as_me: loading site script $ac_site_file" >&6;}
962 1.1 mrg cat "$ac_site_file" >&5
963 1.1 mrg . "$ac_site_file"
964 1.1 mrg fi
965 1.1 mrg done
966 1.1 mrg
967 1.1 mrg if test -r "$cache_file"; then
968 1.1 mrg # Some versions of bash will fail to source /dev/null (special
969 1.1 mrg # files actually), so we avoid doing that.
970 1.1 mrg if test -f "$cache_file"; then
971 1.1.1.3 snj { echo "$as_me:971: loading cache $cache_file" >&5
972 1.1 mrg echo "$as_me: loading cache $cache_file" >&6;}
973 1.1 mrg case $cache_file in
974 1.1 mrg [\\/]* | ?:[\\/]* ) . $cache_file;;
975 1.1 mrg *) . ./$cache_file;;
976 1.1 mrg esac
977 1.1 mrg fi
978 1.1 mrg else
979 1.1.1.3 snj { echo "$as_me:979: creating cache $cache_file" >&5
980 1.1 mrg echo "$as_me: creating cache $cache_file" >&6;}
981 1.1 mrg >$cache_file
982 1.1 mrg fi
983 1.1 mrg
984 1.1 mrg # Check that the precious variables saved in the cache have kept the same
985 1.1 mrg # value.
986 1.1 mrg ac_cache_corrupted=false
987 1.1 mrg for ac_var in `(set) 2>&1 |
988 1.1 mrg sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
989 1.1 mrg eval ac_old_set=\$ac_cv_env_${ac_var}_set
990 1.1 mrg eval ac_new_set=\$ac_env_${ac_var}_set
991 1.1 mrg eval ac_old_val="\$ac_cv_env_${ac_var}_value"
992 1.1 mrg eval ac_new_val="\$ac_env_${ac_var}_value"
993 1.1 mrg case $ac_old_set,$ac_new_set in
994 1.1 mrg set,)
995 1.1.1.3 snj { echo "$as_me:995: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
996 1.1 mrg echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
997 1.1 mrg ac_cache_corrupted=: ;;
998 1.1 mrg ,set)
999 1.1.1.3 snj { echo "$as_me:999: error: \`$ac_var' was not set in the previous run" >&5
1000 1.1 mrg echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1001 1.1 mrg ac_cache_corrupted=: ;;
1002 1.1 mrg ,);;
1003 1.1 mrg *)
1004 1.1 mrg if test "x$ac_old_val" != "x$ac_new_val"; then
1005 1.1.1.3 snj { echo "$as_me:1005: error: \`$ac_var' has changed since the previous run:" >&5
1006 1.1 mrg echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1007 1.1.1.3 snj { echo "$as_me:1007: former value: $ac_old_val" >&5
1008 1.1 mrg echo "$as_me: former value: $ac_old_val" >&2;}
1009 1.1.1.3 snj { echo "$as_me:1009: current value: $ac_new_val" >&5
1010 1.1 mrg echo "$as_me: current value: $ac_new_val" >&2;}
1011 1.1 mrg ac_cache_corrupted=:
1012 1.1 mrg fi;;
1013 1.1 mrg esac
1014 1.1 mrg # Pass precious variables to config.status. It doesn't matter if
1015 1.1 mrg # we pass some twice (in addition to the command line arguments).
1016 1.1 mrg if test "$ac_new_set" = set; then
1017 1.1 mrg case $ac_new_val in
1018 1.1 mrg *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019 1.1 mrg ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1020 1.1 mrg ac_configure_args="$ac_configure_args '$ac_arg'"
1021 1.1 mrg ;;
1022 1.1 mrg *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1023 1.1 mrg ;;
1024 1.1 mrg esac
1025 1.1 mrg fi
1026 1.1 mrg done
1027 1.1 mrg if $ac_cache_corrupted; then
1028 1.1.1.3 snj { echo "$as_me:1028: error: changes in the environment can compromise the build" >&5
1029 1.1 mrg echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1030 1.1.1.3 snj { { echo "$as_me:1030: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1031 1.1 mrg echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1032 1.1 mrg { (exit 1); exit 1; }; }
1033 1.1 mrg fi
1034 1.1 mrg
1035 1.1 mrg ac_ext=c
1036 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1037 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1038 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1039 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1040 1.1 mrg ac_main_return=return
1041 1.1 mrg
1042 1.1 mrg case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1043 1.1 mrg *c*,-n*) ECHO_N= ECHO_C='
1044 1.1 mrg ' ECHO_T=' ' ;;
1045 1.1 mrg *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1046 1.1 mrg *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1047 1.1 mrg esac
1048 1.1 mrg echo "#! $SHELL" >conftest.sh
1049 1.1 mrg echo "exit 0" >>conftest.sh
1050 1.1 mrg chmod +x conftest.sh
1051 1.1.1.3 snj if { (echo "$as_me:1051: PATH=\".;.\"; conftest.sh") >&5
1052 1.1 mrg (PATH=".;."; conftest.sh) 2>&5
1053 1.1 mrg ac_status=$?
1054 1.1.1.3 snj echo "$as_me:1054: \$? = $ac_status" >&5
1055 1.1 mrg (exit $ac_status); }; then
1056 1.1 mrg ac_path_separator=';'
1057 1.1 mrg else
1058 1.1 mrg ac_path_separator=:
1059 1.1 mrg fi
1060 1.1 mrg PATH_SEPARATOR="$ac_path_separator"
1061 1.1 mrg rm -f conftest.sh
1062 1.1 mrg
1063 1.1 mrg ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
1064 1.1 mrg
1065 1.1 mrg ac_aux_dir=
1066 1.1 mrg for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1067 1.1 mrg if test -f $ac_dir/install-sh; then
1068 1.1 mrg ac_aux_dir=$ac_dir
1069 1.1 mrg ac_install_sh="$ac_aux_dir/install-sh -c"
1070 1.1 mrg break
1071 1.1 mrg elif test -f $ac_dir/install.sh; then
1072 1.1 mrg ac_aux_dir=$ac_dir
1073 1.1 mrg ac_install_sh="$ac_aux_dir/install.sh -c"
1074 1.1 mrg break
1075 1.1 mrg elif test -f $ac_dir/shtool; then
1076 1.1 mrg ac_aux_dir=$ac_dir
1077 1.1 mrg ac_install_sh="$ac_aux_dir/shtool install -c"
1078 1.1 mrg break
1079 1.1 mrg fi
1080 1.1 mrg done
1081 1.1 mrg if test -z "$ac_aux_dir"; then
1082 1.1.1.3 snj { { echo "$as_me:1082: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1083 1.1 mrg echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1084 1.1 mrg { (exit 1); exit 1; }; }
1085 1.1 mrg fi
1086 1.1 mrg ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1087 1.1 mrg ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1088 1.1 mrg ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1089 1.1 mrg
1090 1.1 mrg # Make sure we can run config.sub.
1091 1.1 mrg $ac_config_sub sun4 >/dev/null 2>&1 ||
1092 1.1.1.3 snj { { echo "$as_me:1092: error: cannot run $ac_config_sub" >&5
1093 1.1 mrg echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1094 1.1 mrg { (exit 1); exit 1; }; }
1095 1.1 mrg
1096 1.1.1.3 snj echo "$as_me:1096: checking build system type" >&5
1097 1.1 mrg echo $ECHO_N "checking build system type... $ECHO_C" >&6
1098 1.1 mrg if test "${ac_cv_build+set}" = set; then
1099 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1100 1.1 mrg else
1101 1.1 mrg ac_cv_build_alias=$build_alias
1102 1.1 mrg test -z "$ac_cv_build_alias" &&
1103 1.1 mrg ac_cv_build_alias=`$ac_config_guess`
1104 1.1 mrg test -z "$ac_cv_build_alias" &&
1105 1.1.1.3 snj { { echo "$as_me:1105: error: cannot guess build type; you must specify one" >&5
1106 1.1 mrg echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1107 1.1 mrg { (exit 1); exit 1; }; }
1108 1.1 mrg ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1109 1.1.1.3 snj { { echo "$as_me:1109: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1110 1.1 mrg echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1111 1.1 mrg { (exit 1); exit 1; }; }
1112 1.1 mrg
1113 1.1 mrg fi
1114 1.1.1.3 snj echo "$as_me:1114: result: $ac_cv_build" >&5
1115 1.1 mrg echo "${ECHO_T}$ac_cv_build" >&6
1116 1.1 mrg build=$ac_cv_build
1117 1.1 mrg build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1118 1.1 mrg build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1119 1.1 mrg build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1120 1.1 mrg
1121 1.1 mrg if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1122 1.1.1.3 snj echo "$as_me:1122: checking host system type" >&5
1123 1.1 mrg echo $ECHO_N "checking host system type... $ECHO_C" >&6
1124 1.1 mrg if test "${ac_cv_host+set}" = set; then
1125 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1126 1.1 mrg else
1127 1.1 mrg ac_cv_host_alias=$host_alias
1128 1.1 mrg test -z "$ac_cv_host_alias" &&
1129 1.1 mrg ac_cv_host_alias=$ac_cv_build_alias
1130 1.1 mrg ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1131 1.1.1.3 snj { { echo "$as_me:1131: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1132 1.1 mrg echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1133 1.1 mrg { (exit 1); exit 1; }; }
1134 1.1 mrg
1135 1.1 mrg fi
1136 1.1.1.3 snj echo "$as_me:1136: result: $ac_cv_host" >&5
1137 1.1 mrg echo "${ECHO_T}$ac_cv_host" >&6
1138 1.1 mrg host=$ac_cv_host
1139 1.1 mrg host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1140 1.1 mrg host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1141 1.1 mrg host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1142 1.1 mrg
1143 1.1 mrg system_name="$host_os"
1144 1.1 mrg else
1145 1.1 mrg system_name="`(uname -s -r) 2>/dev/null`"
1146 1.1 mrg if test -z "$system_name" ; then
1147 1.1 mrg system_name="`(hostname) 2>/dev/null`"
1148 1.1 mrg fi
1149 1.1 mrg fi
1150 1.1 mrg test -n "$system_name" && cat >>confdefs.h <<EOF
1151 1.1 mrg #define SYSTEM_NAME "$system_name"
1152 1.1 mrg EOF
1153 1.1 mrg
1154 1.1 mrg if test "${cf_cv_system_name+set}" = set; then
1155 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1156 1.1 mrg else
1157 1.1 mrg cf_cv_system_name="$system_name"
1158 1.1 mrg fi
1159 1.1 mrg
1160 1.1 mrg test -z "$system_name" && system_name="$cf_cv_system_name"
1161 1.1.1.3 snj test -n "$cf_cv_system_name" && echo "$as_me:1161: result: Configuring for $cf_cv_system_name" >&5
1162 1.1 mrg echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1163 1.1 mrg
1164 1.1 mrg if test ".$system_name" != ".$cf_cv_system_name" ; then
1165 1.1.1.3 snj echo "$as_me:1165: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1166 1.1 mrg echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1167 1.1.1.3 snj { { echo "$as_me:1167: error: \"Please remove config.cache and try again.\"" >&5
1168 1.1 mrg echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1169 1.1 mrg { (exit 1); exit 1; }; }
1170 1.1 mrg fi
1171 1.1 mrg
1172 1.1 mrg ### checks for alternative programs
1173 1.1 mrg
1174 1.1 mrg case "$host_os" in
1175 1.1 mrg openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
1176 1.1 mrg : ${CPPFLAGS="-D_ALL_SOURCE"}
1177 1.1 mrg : ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
1178 1.1 mrg : ${CC=c89};;
1179 1.1 mrg darwin*)
1180 1.1 mrg : ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
1181 1.1 mrg esac
1182 1.1 mrg
1183 1.1 mrg ac_ext=c
1184 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1185 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1188 1.1 mrg ac_main_return=return
1189 1.1 mrg if test -n "$ac_tool_prefix"; then
1190 1.1 mrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1191 1.1 mrg set dummy ${ac_tool_prefix}gcc; ac_word=$2
1192 1.1.1.3 snj echo "$as_me:1192: checking for $ac_word" >&5
1193 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1194 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1195 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1196 1.1 mrg else
1197 1.1 mrg if test -n "$CC"; then
1198 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1199 1.1 mrg else
1200 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1201 1.1 mrg ac_dummy="$PATH"
1202 1.1 mrg for ac_dir in $ac_dummy; do
1203 1.1 mrg IFS=$ac_save_IFS
1204 1.1 mrg test -z "$ac_dir" && ac_dir=.
1205 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1206 1.1 mrg ac_cv_prog_CC="${ac_tool_prefix}gcc"
1207 1.1.1.3 snj echo "$as_me:1207: found $ac_dir/$ac_word" >&5
1208 1.1 mrg break
1209 1.1 mrg done
1210 1.1 mrg
1211 1.1 mrg fi
1212 1.1 mrg fi
1213 1.1 mrg CC=$ac_cv_prog_CC
1214 1.1 mrg if test -n "$CC"; then
1215 1.1.1.3 snj echo "$as_me:1215: result: $CC" >&5
1216 1.1 mrg echo "${ECHO_T}$CC" >&6
1217 1.1 mrg else
1218 1.1.1.3 snj echo "$as_me:1218: result: no" >&5
1219 1.1 mrg echo "${ECHO_T}no" >&6
1220 1.1 mrg fi
1221 1.1 mrg
1222 1.1 mrg fi
1223 1.1 mrg if test -z "$ac_cv_prog_CC"; then
1224 1.1 mrg ac_ct_CC=$CC
1225 1.1 mrg # Extract the first word of "gcc", so it can be a program name with args.
1226 1.1 mrg set dummy gcc; ac_word=$2
1227 1.1.1.3 snj echo "$as_me:1227: checking for $ac_word" >&5
1228 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1229 1.1 mrg if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1230 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1231 1.1 mrg else
1232 1.1 mrg if test -n "$ac_ct_CC"; then
1233 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1234 1.1 mrg else
1235 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1236 1.1 mrg ac_dummy="$PATH"
1237 1.1 mrg for ac_dir in $ac_dummy; do
1238 1.1 mrg IFS=$ac_save_IFS
1239 1.1 mrg test -z "$ac_dir" && ac_dir=.
1240 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1241 1.1 mrg ac_cv_prog_ac_ct_CC="gcc"
1242 1.1.1.3 snj echo "$as_me:1242: found $ac_dir/$ac_word" >&5
1243 1.1 mrg break
1244 1.1 mrg done
1245 1.1 mrg
1246 1.1 mrg fi
1247 1.1 mrg fi
1248 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
1249 1.1 mrg if test -n "$ac_ct_CC"; then
1250 1.1.1.3 snj echo "$as_me:1250: result: $ac_ct_CC" >&5
1251 1.1 mrg echo "${ECHO_T}$ac_ct_CC" >&6
1252 1.1 mrg else
1253 1.1.1.3 snj echo "$as_me:1253: result: no" >&5
1254 1.1 mrg echo "${ECHO_T}no" >&6
1255 1.1 mrg fi
1256 1.1 mrg
1257 1.1 mrg CC=$ac_ct_CC
1258 1.1 mrg else
1259 1.1 mrg CC="$ac_cv_prog_CC"
1260 1.1 mrg fi
1261 1.1 mrg
1262 1.1 mrg if test -z "$CC"; then
1263 1.1 mrg if test -n "$ac_tool_prefix"; then
1264 1.1 mrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1265 1.1 mrg set dummy ${ac_tool_prefix}cc; ac_word=$2
1266 1.1.1.3 snj echo "$as_me:1266: checking for $ac_word" >&5
1267 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1269 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1270 1.1 mrg else
1271 1.1 mrg if test -n "$CC"; then
1272 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1273 1.1 mrg else
1274 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1275 1.1 mrg ac_dummy="$PATH"
1276 1.1 mrg for ac_dir in $ac_dummy; do
1277 1.1 mrg IFS=$ac_save_IFS
1278 1.1 mrg test -z "$ac_dir" && ac_dir=.
1279 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1280 1.1 mrg ac_cv_prog_CC="${ac_tool_prefix}cc"
1281 1.1.1.3 snj echo "$as_me:1281: found $ac_dir/$ac_word" >&5
1282 1.1 mrg break
1283 1.1 mrg done
1284 1.1 mrg
1285 1.1 mrg fi
1286 1.1 mrg fi
1287 1.1 mrg CC=$ac_cv_prog_CC
1288 1.1 mrg if test -n "$CC"; then
1289 1.1.1.3 snj echo "$as_me:1289: result: $CC" >&5
1290 1.1 mrg echo "${ECHO_T}$CC" >&6
1291 1.1 mrg else
1292 1.1.1.3 snj echo "$as_me:1292: result: no" >&5
1293 1.1 mrg echo "${ECHO_T}no" >&6
1294 1.1 mrg fi
1295 1.1 mrg
1296 1.1 mrg fi
1297 1.1 mrg if test -z "$ac_cv_prog_CC"; then
1298 1.1 mrg ac_ct_CC=$CC
1299 1.1 mrg # Extract the first word of "cc", so it can be a program name with args.
1300 1.1 mrg set dummy cc; ac_word=$2
1301 1.1.1.3 snj echo "$as_me:1301: checking for $ac_word" >&5
1302 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1303 1.1 mrg if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1304 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1305 1.1 mrg else
1306 1.1 mrg if test -n "$ac_ct_CC"; then
1307 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1308 1.1 mrg else
1309 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1310 1.1 mrg ac_dummy="$PATH"
1311 1.1 mrg for ac_dir in $ac_dummy; do
1312 1.1 mrg IFS=$ac_save_IFS
1313 1.1 mrg test -z "$ac_dir" && ac_dir=.
1314 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1315 1.1 mrg ac_cv_prog_ac_ct_CC="cc"
1316 1.1.1.3 snj echo "$as_me:1316: found $ac_dir/$ac_word" >&5
1317 1.1 mrg break
1318 1.1 mrg done
1319 1.1 mrg
1320 1.1 mrg fi
1321 1.1 mrg fi
1322 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
1323 1.1 mrg if test -n "$ac_ct_CC"; then
1324 1.1.1.3 snj echo "$as_me:1324: result: $ac_ct_CC" >&5
1325 1.1 mrg echo "${ECHO_T}$ac_ct_CC" >&6
1326 1.1 mrg else
1327 1.1.1.3 snj echo "$as_me:1327: result: no" >&5
1328 1.1 mrg echo "${ECHO_T}no" >&6
1329 1.1 mrg fi
1330 1.1 mrg
1331 1.1 mrg CC=$ac_ct_CC
1332 1.1 mrg else
1333 1.1 mrg CC="$ac_cv_prog_CC"
1334 1.1 mrg fi
1335 1.1 mrg
1336 1.1 mrg fi
1337 1.1 mrg if test -z "$CC"; then
1338 1.1 mrg # Extract the first word of "cc", so it can be a program name with args.
1339 1.1 mrg set dummy cc; ac_word=$2
1340 1.1.1.3 snj echo "$as_me:1340: checking for $ac_word" >&5
1341 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1342 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1343 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1344 1.1 mrg else
1345 1.1 mrg if test -n "$CC"; then
1346 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1347 1.1 mrg else
1348 1.1 mrg ac_prog_rejected=no
1349 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1350 1.1 mrg ac_dummy="$PATH"
1351 1.1 mrg for ac_dir in $ac_dummy; do
1352 1.1 mrg IFS=$ac_save_IFS
1353 1.1 mrg test -z "$ac_dir" && ac_dir=.
1354 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1355 1.1 mrg if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1356 1.1 mrg ac_prog_rejected=yes
1357 1.1 mrg continue
1358 1.1 mrg fi
1359 1.1 mrg ac_cv_prog_CC="cc"
1360 1.1.1.3 snj echo "$as_me:1360: found $ac_dir/$ac_word" >&5
1361 1.1 mrg break
1362 1.1 mrg done
1363 1.1 mrg
1364 1.1 mrg if test $ac_prog_rejected = yes; then
1365 1.1 mrg # We found a bogon in the path, so make sure we never use it.
1366 1.1 mrg set dummy $ac_cv_prog_CC
1367 1.1 mrg shift
1368 1.1 mrg if test $# != 0; then
1369 1.1 mrg # We chose a different compiler from the bogus one.
1370 1.1 mrg # However, it has the same basename, so the bogon will be chosen
1371 1.1 mrg # first if we set CC to just the basename; use the full file name.
1372 1.1 mrg shift
1373 1.1 mrg set dummy "$ac_dir/$ac_word" ${1+"$@"}
1374 1.1 mrg shift
1375 1.1 mrg ac_cv_prog_CC="$@"
1376 1.1 mrg fi
1377 1.1 mrg fi
1378 1.1 mrg fi
1379 1.1 mrg fi
1380 1.1 mrg CC=$ac_cv_prog_CC
1381 1.1 mrg if test -n "$CC"; then
1382 1.1.1.3 snj echo "$as_me:1382: result: $CC" >&5
1383 1.1 mrg echo "${ECHO_T}$CC" >&6
1384 1.1 mrg else
1385 1.1.1.3 snj echo "$as_me:1385: result: no" >&5
1386 1.1 mrg echo "${ECHO_T}no" >&6
1387 1.1 mrg fi
1388 1.1 mrg
1389 1.1 mrg fi
1390 1.1 mrg if test -z "$CC"; then
1391 1.1 mrg if test -n "$ac_tool_prefix"; then
1392 1.1 mrg for ac_prog in cl
1393 1.1 mrg do
1394 1.1 mrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1395 1.1 mrg set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1396 1.1.1.3 snj echo "$as_me:1396: checking for $ac_word" >&5
1397 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 1.1 mrg if test "${ac_cv_prog_CC+set}" = set; then
1399 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1400 1.1 mrg else
1401 1.1 mrg if test -n "$CC"; then
1402 1.1 mrg ac_cv_prog_CC="$CC" # Let the user override the test.
1403 1.1 mrg else
1404 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1405 1.1 mrg ac_dummy="$PATH"
1406 1.1 mrg for ac_dir in $ac_dummy; do
1407 1.1 mrg IFS=$ac_save_IFS
1408 1.1 mrg test -z "$ac_dir" && ac_dir=.
1409 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1410 1.1 mrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1411 1.1.1.3 snj echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1412 1.1 mrg break
1413 1.1 mrg done
1414 1.1 mrg
1415 1.1 mrg fi
1416 1.1 mrg fi
1417 1.1 mrg CC=$ac_cv_prog_CC
1418 1.1 mrg if test -n "$CC"; then
1419 1.1.1.3 snj echo "$as_me:1419: result: $CC" >&5
1420 1.1 mrg echo "${ECHO_T}$CC" >&6
1421 1.1 mrg else
1422 1.1.1.3 snj echo "$as_me:1422: result: no" >&5
1423 1.1 mrg echo "${ECHO_T}no" >&6
1424 1.1 mrg fi
1425 1.1 mrg
1426 1.1 mrg test -n "$CC" && break
1427 1.1 mrg done
1428 1.1 mrg fi
1429 1.1 mrg if test -z "$CC"; then
1430 1.1 mrg ac_ct_CC=$CC
1431 1.1 mrg for ac_prog in cl
1432 1.1 mrg do
1433 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
1434 1.1 mrg set dummy $ac_prog; ac_word=$2
1435 1.1.1.3 snj echo "$as_me:1435: checking for $ac_word" >&5
1436 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 1.1 mrg if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1439 1.1 mrg else
1440 1.1 mrg if test -n "$ac_ct_CC"; then
1441 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442 1.1 mrg else
1443 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
1444 1.1 mrg ac_dummy="$PATH"
1445 1.1 mrg for ac_dir in $ac_dummy; do
1446 1.1 mrg IFS=$ac_save_IFS
1447 1.1 mrg test -z "$ac_dir" && ac_dir=.
1448 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
1449 1.1 mrg ac_cv_prog_ac_ct_CC="$ac_prog"
1450 1.1.1.3 snj echo "$as_me:1450: found $ac_dir/$ac_word" >&5
1451 1.1 mrg break
1452 1.1 mrg done
1453 1.1 mrg
1454 1.1 mrg fi
1455 1.1 mrg fi
1456 1.1 mrg ac_ct_CC=$ac_cv_prog_ac_ct_CC
1457 1.1 mrg if test -n "$ac_ct_CC"; then
1458 1.1.1.3 snj echo "$as_me:1458: result: $ac_ct_CC" >&5
1459 1.1 mrg echo "${ECHO_T}$ac_ct_CC" >&6
1460 1.1 mrg else
1461 1.1.1.3 snj echo "$as_me:1461: result: no" >&5
1462 1.1 mrg echo "${ECHO_T}no" >&6
1463 1.1 mrg fi
1464 1.1 mrg
1465 1.1 mrg test -n "$ac_ct_CC" && break
1466 1.1 mrg done
1467 1.1 mrg
1468 1.1 mrg CC=$ac_ct_CC
1469 1.1 mrg fi
1470 1.1 mrg
1471 1.1 mrg fi
1472 1.1 mrg
1473 1.1.1.3 snj test -z "$CC" && { { echo "$as_me:1473: error: no acceptable cc found in \$PATH" >&5
1474 1.1 mrg echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1475 1.1 mrg { (exit 1); exit 1; }; }
1476 1.1 mrg
1477 1.1 mrg # Provide some information about the compiler.
1478 1.1.1.3 snj echo "$as_me:1478:" \
1479 1.1 mrg "checking for C compiler version" >&5
1480 1.1 mrg ac_compiler=`set X $ac_compile; echo $2`
1481 1.1.1.3 snj { (eval echo "$as_me:1481: \"$ac_compiler --version </dev/null >&5\"") >&5
1482 1.1 mrg (eval $ac_compiler --version </dev/null >&5) 2>&5
1483 1.1 mrg ac_status=$?
1484 1.1.1.3 snj echo "$as_me:1484: \$? = $ac_status" >&5
1485 1.1 mrg (exit $ac_status); }
1486 1.1.1.3 snj { (eval echo "$as_me:1486: \"$ac_compiler -v </dev/null >&5\"") >&5
1487 1.1 mrg (eval $ac_compiler -v </dev/null >&5) 2>&5
1488 1.1 mrg ac_status=$?
1489 1.1.1.3 snj echo "$as_me:1489: \$? = $ac_status" >&5
1490 1.1 mrg (exit $ac_status); }
1491 1.1.1.3 snj { (eval echo "$as_me:1491: \"$ac_compiler -V </dev/null >&5\"") >&5
1492 1.1 mrg (eval $ac_compiler -V </dev/null >&5) 2>&5
1493 1.1 mrg ac_status=$?
1494 1.1.1.3 snj echo "$as_me:1494: \$? = $ac_status" >&5
1495 1.1 mrg (exit $ac_status); }
1496 1.1 mrg
1497 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1498 1.1.1.3 snj #line 1498 "configure"
1499 1.1 mrg #include "confdefs.h"
1500 1.1 mrg
1501 1.1 mrg int
1502 1.1 mrg main ()
1503 1.1 mrg {
1504 1.1 mrg
1505 1.1 mrg ;
1506 1.1 mrg return 0;
1507 1.1 mrg }
1508 1.1 mrg _ACEOF
1509 1.1 mrg ac_clean_files_save=$ac_clean_files
1510 1.1 mrg ac_clean_files="$ac_clean_files a.out a.exe"
1511 1.1 mrg # Try to create an executable without -o first, disregard a.out.
1512 1.1 mrg # It will help us diagnose broken compilers, and finding out an intuition
1513 1.1 mrg # of exeext.
1514 1.1.1.3 snj echo "$as_me:1514: checking for C compiler default output" >&5
1515 1.1 mrg echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1516 1.1 mrg ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1517 1.1.1.3 snj if { (eval echo "$as_me:1517: \"$ac_link_default\"") >&5
1518 1.1 mrg (eval $ac_link_default) 2>&5
1519 1.1 mrg ac_status=$?
1520 1.1.1.3 snj echo "$as_me:1520: \$? = $ac_status" >&5
1521 1.1 mrg (exit $ac_status); }; then
1522 1.1 mrg # Find the output, starting from the most likely. This scheme is
1523 1.1 mrg # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1524 1.1 mrg # resort.
1525 1.1 mrg for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1526 1.1 mrg ls a.out conftest 2>/dev/null;
1527 1.1 mrg ls a.* conftest.* 2>/dev/null`; do
1528 1.1 mrg case $ac_file in
1529 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1530 1.1 mrg a.out ) # We found the default executable, but exeext='' is most
1531 1.1 mrg # certainly right.
1532 1.1 mrg break;;
1533 1.1 mrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1534 1.1 mrg # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1535 1.1 mrg export ac_cv_exeext
1536 1.1 mrg break;;
1537 1.1 mrg * ) break;;
1538 1.1 mrg esac
1539 1.1 mrg done
1540 1.1 mrg else
1541 1.1 mrg echo "$as_me: failed program was:" >&5
1542 1.1 mrg cat conftest.$ac_ext >&5
1543 1.1.1.3 snj { { echo "$as_me:1543: error: C compiler cannot create executables" >&5
1544 1.1 mrg echo "$as_me: error: C compiler cannot create executables" >&2;}
1545 1.1 mrg { (exit 77); exit 77; }; }
1546 1.1 mrg fi
1547 1.1 mrg
1548 1.1 mrg ac_exeext=$ac_cv_exeext
1549 1.1.1.3 snj echo "$as_me:1549: result: $ac_file" >&5
1550 1.1 mrg echo "${ECHO_T}$ac_file" >&6
1551 1.1 mrg
1552 1.1 mrg # Check the compiler produces executables we can run. If not, either
1553 1.1 mrg # the compiler is broken, or we cross compile.
1554 1.1.1.3 snj echo "$as_me:1554: checking whether the C compiler works" >&5
1555 1.1 mrg echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1556 1.1 mrg # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1557 1.1 mrg # If not cross compiling, check that we can run a simple program.
1558 1.1 mrg if test "$cross_compiling" != yes; then
1559 1.1 mrg if { ac_try='./$ac_file'
1560 1.1.1.3 snj { (eval echo "$as_me:1560: \"$ac_try\"") >&5
1561 1.1 mrg (eval $ac_try) 2>&5
1562 1.1 mrg ac_status=$?
1563 1.1.1.3 snj echo "$as_me:1563: \$? = $ac_status" >&5
1564 1.1 mrg (exit $ac_status); }; }; then
1565 1.1 mrg cross_compiling=no
1566 1.1 mrg else
1567 1.1 mrg if test "$cross_compiling" = maybe; then
1568 1.1 mrg cross_compiling=yes
1569 1.1 mrg else
1570 1.1.1.3 snj { { echo "$as_me:1570: error: cannot run C compiled programs.
1571 1.1 mrg If you meant to cross compile, use \`--host'." >&5
1572 1.1 mrg echo "$as_me: error: cannot run C compiled programs.
1573 1.1 mrg If you meant to cross compile, use \`--host'." >&2;}
1574 1.1 mrg { (exit 1); exit 1; }; }
1575 1.1 mrg fi
1576 1.1 mrg fi
1577 1.1 mrg fi
1578 1.1.1.3 snj echo "$as_me:1578: result: yes" >&5
1579 1.1 mrg echo "${ECHO_T}yes" >&6
1580 1.1 mrg
1581 1.1 mrg rm -f a.out a.exe conftest$ac_cv_exeext
1582 1.1 mrg ac_clean_files=$ac_clean_files_save
1583 1.1 mrg # Check the compiler produces executables we can run. If not, either
1584 1.1 mrg # the compiler is broken, or we cross compile.
1585 1.1.1.3 snj echo "$as_me:1585: checking whether we are cross compiling" >&5
1586 1.1 mrg echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1587 1.1.1.3 snj echo "$as_me:1587: result: $cross_compiling" >&5
1588 1.1 mrg echo "${ECHO_T}$cross_compiling" >&6
1589 1.1 mrg
1590 1.1.1.3 snj echo "$as_me:1590: checking for executable suffix" >&5
1591 1.1 mrg echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1592 1.1.1.3 snj if { (eval echo "$as_me:1592: \"$ac_link\"") >&5
1593 1.1 mrg (eval $ac_link) 2>&5
1594 1.1 mrg ac_status=$?
1595 1.1.1.3 snj echo "$as_me:1595: \$? = $ac_status" >&5
1596 1.1 mrg (exit $ac_status); }; then
1597 1.1 mrg # If both `conftest.exe' and `conftest' are `present' (well, observable)
1598 1.1 mrg # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1599 1.1 mrg # work properly (i.e., refer to `conftest.exe'), while it won't with
1600 1.1 mrg # `rm'.
1601 1.1 mrg for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1602 1.1 mrg case $ac_file in
1603 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1604 1.1 mrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1605 1.1 mrg export ac_cv_exeext
1606 1.1 mrg break;;
1607 1.1 mrg * ) break;;
1608 1.1 mrg esac
1609 1.1 mrg done
1610 1.1 mrg else
1611 1.1.1.3 snj { { echo "$as_me:1611: error: cannot compute EXEEXT: cannot compile and link" >&5
1612 1.1 mrg echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1613 1.1 mrg { (exit 1); exit 1; }; }
1614 1.1 mrg fi
1615 1.1 mrg
1616 1.1 mrg rm -f conftest$ac_cv_exeext
1617 1.1.1.3 snj echo "$as_me:1617: result: $ac_cv_exeext" >&5
1618 1.1 mrg echo "${ECHO_T}$ac_cv_exeext" >&6
1619 1.1 mrg
1620 1.1 mrg rm -f conftest.$ac_ext
1621 1.1 mrg EXEEXT=$ac_cv_exeext
1622 1.1 mrg ac_exeext=$EXEEXT
1623 1.1.1.3 snj echo "$as_me:1623: checking for object suffix" >&5
1624 1.1 mrg echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1625 1.1 mrg if test "${ac_cv_objext+set}" = set; then
1626 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1627 1.1 mrg else
1628 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1629 1.1.1.3 snj #line 1629 "configure"
1630 1.1 mrg #include "confdefs.h"
1631 1.1 mrg
1632 1.1 mrg int
1633 1.1 mrg main ()
1634 1.1 mrg {
1635 1.1 mrg
1636 1.1 mrg ;
1637 1.1 mrg return 0;
1638 1.1 mrg }
1639 1.1 mrg _ACEOF
1640 1.1 mrg rm -f conftest.o conftest.obj
1641 1.1.1.3 snj if { (eval echo "$as_me:1641: \"$ac_compile\"") >&5
1642 1.1 mrg (eval $ac_compile) 2>&5
1643 1.1 mrg ac_status=$?
1644 1.1.1.3 snj echo "$as_me:1644: \$? = $ac_status" >&5
1645 1.1 mrg (exit $ac_status); }; then
1646 1.1 mrg for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1647 1.1 mrg case $ac_file in
1648 1.1.1.2 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1649 1.1 mrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1650 1.1 mrg break;;
1651 1.1 mrg esac
1652 1.1 mrg done
1653 1.1 mrg else
1654 1.1 mrg echo "$as_me: failed program was:" >&5
1655 1.1 mrg cat conftest.$ac_ext >&5
1656 1.1.1.3 snj { { echo "$as_me:1656: error: cannot compute OBJEXT: cannot compile" >&5
1657 1.1 mrg echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1658 1.1 mrg { (exit 1); exit 1; }; }
1659 1.1 mrg fi
1660 1.1 mrg
1661 1.1 mrg rm -f conftest.$ac_cv_objext conftest.$ac_ext
1662 1.1 mrg fi
1663 1.1.1.3 snj echo "$as_me:1663: result: $ac_cv_objext" >&5
1664 1.1 mrg echo "${ECHO_T}$ac_cv_objext" >&6
1665 1.1 mrg OBJEXT=$ac_cv_objext
1666 1.1 mrg ac_objext=$OBJEXT
1667 1.1.1.3 snj echo "$as_me:1667: checking whether we are using the GNU C compiler" >&5
1668 1.1 mrg echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1669 1.1 mrg if test "${ac_cv_c_compiler_gnu+set}" = set; then
1670 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1671 1.1 mrg else
1672 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1673 1.1.1.3 snj #line 1673 "configure"
1674 1.1 mrg #include "confdefs.h"
1675 1.1 mrg
1676 1.1 mrg int
1677 1.1 mrg main ()
1678 1.1 mrg {
1679 1.1 mrg #ifndef __GNUC__
1680 1.1 mrg choke me
1681 1.1 mrg #endif
1682 1.1 mrg
1683 1.1 mrg ;
1684 1.1 mrg return 0;
1685 1.1 mrg }
1686 1.1 mrg _ACEOF
1687 1.1 mrg rm -f conftest.$ac_objext
1688 1.1.1.3 snj if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
1689 1.1 mrg (eval $ac_compile) 2>&5
1690 1.1 mrg ac_status=$?
1691 1.1.1.3 snj echo "$as_me:1691: \$? = $ac_status" >&5
1692 1.1 mrg (exit $ac_status); } &&
1693 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1694 1.1.1.3 snj { (eval echo "$as_me:1694: \"$ac_try\"") >&5
1695 1.1 mrg (eval $ac_try) 2>&5
1696 1.1 mrg ac_status=$?
1697 1.1.1.3 snj echo "$as_me:1697: \$? = $ac_status" >&5
1698 1.1 mrg (exit $ac_status); }; }; then
1699 1.1 mrg ac_compiler_gnu=yes
1700 1.1 mrg else
1701 1.1 mrg echo "$as_me: failed program was:" >&5
1702 1.1 mrg cat conftest.$ac_ext >&5
1703 1.1 mrg ac_compiler_gnu=no
1704 1.1 mrg fi
1705 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1706 1.1 mrg ac_cv_c_compiler_gnu=$ac_compiler_gnu
1707 1.1 mrg
1708 1.1 mrg fi
1709 1.1.1.3 snj echo "$as_me:1709: result: $ac_cv_c_compiler_gnu" >&5
1710 1.1 mrg echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1711 1.1 mrg GCC=`test $ac_compiler_gnu = yes && echo yes`
1712 1.1 mrg ac_test_CFLAGS=${CFLAGS+set}
1713 1.1 mrg ac_save_CFLAGS=$CFLAGS
1714 1.1 mrg CFLAGS="-g"
1715 1.1.1.3 snj echo "$as_me:1715: checking whether $CC accepts -g" >&5
1716 1.1 mrg echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1717 1.1 mrg if test "${ac_cv_prog_cc_g+set}" = set; then
1718 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1719 1.1 mrg else
1720 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1721 1.1.1.3 snj #line 1721 "configure"
1722 1.1 mrg #include "confdefs.h"
1723 1.1 mrg
1724 1.1 mrg int
1725 1.1 mrg main ()
1726 1.1 mrg {
1727 1.1 mrg
1728 1.1 mrg ;
1729 1.1 mrg return 0;
1730 1.1 mrg }
1731 1.1 mrg _ACEOF
1732 1.1 mrg rm -f conftest.$ac_objext
1733 1.1.1.3 snj if { (eval echo "$as_me:1733: \"$ac_compile\"") >&5
1734 1.1 mrg (eval $ac_compile) 2>&5
1735 1.1 mrg ac_status=$?
1736 1.1.1.3 snj echo "$as_me:1736: \$? = $ac_status" >&5
1737 1.1 mrg (exit $ac_status); } &&
1738 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1739 1.1.1.3 snj { (eval echo "$as_me:1739: \"$ac_try\"") >&5
1740 1.1 mrg (eval $ac_try) 2>&5
1741 1.1 mrg ac_status=$?
1742 1.1.1.3 snj echo "$as_me:1742: \$? = $ac_status" >&5
1743 1.1 mrg (exit $ac_status); }; }; then
1744 1.1 mrg ac_cv_prog_cc_g=yes
1745 1.1 mrg else
1746 1.1 mrg echo "$as_me: failed program was:" >&5
1747 1.1 mrg cat conftest.$ac_ext >&5
1748 1.1 mrg ac_cv_prog_cc_g=no
1749 1.1 mrg fi
1750 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1751 1.1 mrg fi
1752 1.1.1.3 snj echo "$as_me:1752: result: $ac_cv_prog_cc_g" >&5
1753 1.1 mrg echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1754 1.1 mrg if test "$ac_test_CFLAGS" = set; then
1755 1.1 mrg CFLAGS=$ac_save_CFLAGS
1756 1.1 mrg elif test $ac_cv_prog_cc_g = yes; then
1757 1.1 mrg if test "$GCC" = yes; then
1758 1.1 mrg CFLAGS="-g -O2"
1759 1.1 mrg else
1760 1.1 mrg CFLAGS="-g"
1761 1.1 mrg fi
1762 1.1 mrg else
1763 1.1 mrg if test "$GCC" = yes; then
1764 1.1 mrg CFLAGS="-O2"
1765 1.1 mrg else
1766 1.1 mrg CFLAGS=
1767 1.1 mrg fi
1768 1.1 mrg fi
1769 1.1 mrg # Some people use a C++ compiler to compile C. Since we use `exit',
1770 1.1 mrg # in C++ we need to declare it. In case someone uses the same compiler
1771 1.1 mrg # for both compiling C and C++ we need to have the C++ compiler decide
1772 1.1 mrg # the declaration of exit, since it's the most demanding environment.
1773 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1774 1.1 mrg #ifndef __cplusplus
1775 1.1 mrg choke me
1776 1.1 mrg #endif
1777 1.1 mrg _ACEOF
1778 1.1 mrg rm -f conftest.$ac_objext
1779 1.1.1.3 snj if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 1.1 mrg (eval $ac_compile) 2>&5
1781 1.1 mrg ac_status=$?
1782 1.1.1.3 snj echo "$as_me:1782: \$? = $ac_status" >&5
1783 1.1 mrg (exit $ac_status); } &&
1784 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1785 1.1.1.3 snj { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1786 1.1 mrg (eval $ac_try) 2>&5
1787 1.1 mrg ac_status=$?
1788 1.1.1.3 snj echo "$as_me:1788: \$? = $ac_status" >&5
1789 1.1 mrg (exit $ac_status); }; }; then
1790 1.1 mrg for ac_declaration in \
1791 1.1 mrg ''\
1792 1.1 mrg '#include <stdlib.h>' \
1793 1.1 mrg 'extern "C" void std::exit (int) throw (); using std::exit;' \
1794 1.1 mrg 'extern "C" void std::exit (int); using std::exit;' \
1795 1.1 mrg 'extern "C" void exit (int) throw ();' \
1796 1.1 mrg 'extern "C" void exit (int);' \
1797 1.1 mrg 'void exit (int);'
1798 1.1 mrg do
1799 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1800 1.1.1.3 snj #line 1800 "configure"
1801 1.1 mrg #include "confdefs.h"
1802 1.1 mrg #include <stdlib.h>
1803 1.1 mrg $ac_declaration
1804 1.1 mrg int
1805 1.1 mrg main ()
1806 1.1 mrg {
1807 1.1 mrg exit (42);
1808 1.1 mrg ;
1809 1.1 mrg return 0;
1810 1.1 mrg }
1811 1.1 mrg _ACEOF
1812 1.1 mrg rm -f conftest.$ac_objext
1813 1.1.1.3 snj if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
1814 1.1 mrg (eval $ac_compile) 2>&5
1815 1.1 mrg ac_status=$?
1816 1.1.1.3 snj echo "$as_me:1816: \$? = $ac_status" >&5
1817 1.1 mrg (exit $ac_status); } &&
1818 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1819 1.1.1.3 snj { (eval echo "$as_me:1819: \"$ac_try\"") >&5
1820 1.1 mrg (eval $ac_try) 2>&5
1821 1.1 mrg ac_status=$?
1822 1.1.1.3 snj echo "$as_me:1822: \$? = $ac_status" >&5
1823 1.1 mrg (exit $ac_status); }; }; then
1824 1.1 mrg :
1825 1.1 mrg else
1826 1.1 mrg echo "$as_me: failed program was:" >&5
1827 1.1 mrg cat conftest.$ac_ext >&5
1828 1.1 mrg continue
1829 1.1 mrg fi
1830 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1831 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1832 1.1.1.3 snj #line 1832 "configure"
1833 1.1 mrg #include "confdefs.h"
1834 1.1 mrg $ac_declaration
1835 1.1 mrg int
1836 1.1 mrg main ()
1837 1.1 mrg {
1838 1.1 mrg exit (42);
1839 1.1 mrg ;
1840 1.1 mrg return 0;
1841 1.1 mrg }
1842 1.1 mrg _ACEOF
1843 1.1 mrg rm -f conftest.$ac_objext
1844 1.1.1.3 snj if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 1.1 mrg (eval $ac_compile) 2>&5
1846 1.1 mrg ac_status=$?
1847 1.1.1.3 snj echo "$as_me:1847: \$? = $ac_status" >&5
1848 1.1 mrg (exit $ac_status); } &&
1849 1.1 mrg { ac_try='test -s conftest.$ac_objext'
1850 1.1.1.3 snj { (eval echo "$as_me:1850: \"$ac_try\"") >&5
1851 1.1 mrg (eval $ac_try) 2>&5
1852 1.1 mrg ac_status=$?
1853 1.1.1.3 snj echo "$as_me:1853: \$? = $ac_status" >&5
1854 1.1 mrg (exit $ac_status); }; }; then
1855 1.1 mrg break
1856 1.1 mrg else
1857 1.1 mrg echo "$as_me: failed program was:" >&5
1858 1.1 mrg cat conftest.$ac_ext >&5
1859 1.1 mrg fi
1860 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1861 1.1 mrg done
1862 1.1 mrg rm -f conftest*
1863 1.1 mrg if test -n "$ac_declaration"; then
1864 1.1 mrg echo '#ifdef __cplusplus' >>confdefs.h
1865 1.1 mrg echo $ac_declaration >>confdefs.h
1866 1.1 mrg echo '#endif' >>confdefs.h
1867 1.1 mrg fi
1868 1.1 mrg
1869 1.1 mrg else
1870 1.1 mrg echo "$as_me: failed program was:" >&5
1871 1.1 mrg cat conftest.$ac_ext >&5
1872 1.1 mrg fi
1873 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
1874 1.1 mrg ac_ext=c
1875 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1876 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879 1.1 mrg ac_main_return=return
1880 1.1 mrg
1881 1.1 mrg ac_ext=c
1882 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
1883 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1884 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1885 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
1886 1.1 mrg ac_main_return=return
1887 1.1.1.3 snj echo "$as_me:1887: checking how to run the C preprocessor" >&5
1888 1.1 mrg echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1889 1.1 mrg # On Suns, sometimes $CPP names a directory.
1890 1.1 mrg if test -n "$CPP" && test -d "$CPP"; then
1891 1.1 mrg CPP=
1892 1.1 mrg fi
1893 1.1 mrg if test -z "$CPP"; then
1894 1.1 mrg if test "${ac_cv_prog_CPP+set}" = set; then
1895 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
1896 1.1 mrg else
1897 1.1 mrg # Double quotes because CPP needs to be expanded
1898 1.1 mrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1899 1.1 mrg do
1900 1.1 mrg ac_preproc_ok=false
1901 1.1 mrg for ac_c_preproc_warn_flag in '' yes
1902 1.1 mrg do
1903 1.1 mrg # Use a header file that comes with gcc, so configuring glibc
1904 1.1 mrg # with a fresh cross-compiler works.
1905 1.1 mrg # On the NeXT, cc -E runs the code through the compiler's parser,
1906 1.1 mrg # not just through cpp. "Syntax error" is here to catch this case.
1907 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1908 1.1.1.3 snj #line 1908 "configure"
1909 1.1 mrg #include "confdefs.h"
1910 1.1 mrg #include <assert.h>
1911 1.1 mrg Syntax error
1912 1.1 mrg _ACEOF
1913 1.1.1.3 snj if { (eval echo "$as_me:1913: \"$ac_cpp conftest.$ac_ext\"") >&5
1914 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1915 1.1 mrg ac_status=$?
1916 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
1917 1.1 mrg rm -f conftest.er1
1918 1.1 mrg cat conftest.err >&5
1919 1.1.1.3 snj echo "$as_me:1919: \$? = $ac_status" >&5
1920 1.1 mrg (exit $ac_status); } >/dev/null; then
1921 1.1 mrg if test -s conftest.err; then
1922 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
1923 1.1 mrg else
1924 1.1 mrg ac_cpp_err=
1925 1.1 mrg fi
1926 1.1 mrg else
1927 1.1 mrg ac_cpp_err=yes
1928 1.1 mrg fi
1929 1.1 mrg if test -z "$ac_cpp_err"; then
1930 1.1 mrg :
1931 1.1 mrg else
1932 1.1 mrg echo "$as_me: failed program was:" >&5
1933 1.1 mrg cat conftest.$ac_ext >&5
1934 1.1 mrg # Broken: fails on valid input.
1935 1.1 mrg continue
1936 1.1 mrg fi
1937 1.1 mrg rm -f conftest.err conftest.$ac_ext
1938 1.1 mrg
1939 1.1 mrg # OK, works on sane cases. Now check whether non-existent headers
1940 1.1 mrg # can be detected and how.
1941 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1942 1.1.1.3 snj #line 1942 "configure"
1943 1.1 mrg #include "confdefs.h"
1944 1.1 mrg #include <ac_nonexistent.h>
1945 1.1 mrg _ACEOF
1946 1.1.1.3 snj if { (eval echo "$as_me:1946: \"$ac_cpp conftest.$ac_ext\"") >&5
1947 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1948 1.1 mrg ac_status=$?
1949 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
1950 1.1 mrg rm -f conftest.er1
1951 1.1 mrg cat conftest.err >&5
1952 1.1.1.3 snj echo "$as_me:1952: \$? = $ac_status" >&5
1953 1.1 mrg (exit $ac_status); } >/dev/null; then
1954 1.1 mrg if test -s conftest.err; then
1955 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
1956 1.1 mrg else
1957 1.1 mrg ac_cpp_err=
1958 1.1 mrg fi
1959 1.1 mrg else
1960 1.1 mrg ac_cpp_err=yes
1961 1.1 mrg fi
1962 1.1 mrg if test -z "$ac_cpp_err"; then
1963 1.1 mrg # Broken: success on invalid input.
1964 1.1 mrg continue
1965 1.1 mrg else
1966 1.1 mrg echo "$as_me: failed program was:" >&5
1967 1.1 mrg cat conftest.$ac_ext >&5
1968 1.1 mrg # Passes both tests.
1969 1.1 mrg ac_preproc_ok=:
1970 1.1 mrg break
1971 1.1 mrg fi
1972 1.1 mrg rm -f conftest.err conftest.$ac_ext
1973 1.1 mrg
1974 1.1 mrg done
1975 1.1 mrg # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1976 1.1 mrg rm -f conftest.err conftest.$ac_ext
1977 1.1 mrg if $ac_preproc_ok; then
1978 1.1 mrg break
1979 1.1 mrg fi
1980 1.1 mrg
1981 1.1 mrg done
1982 1.1 mrg ac_cv_prog_CPP=$CPP
1983 1.1 mrg
1984 1.1 mrg fi
1985 1.1 mrg CPP=$ac_cv_prog_CPP
1986 1.1 mrg else
1987 1.1 mrg ac_cv_prog_CPP=$CPP
1988 1.1 mrg fi
1989 1.1.1.3 snj echo "$as_me:1989: result: $CPP" >&5
1990 1.1 mrg echo "${ECHO_T}$CPP" >&6
1991 1.1 mrg ac_preproc_ok=false
1992 1.1 mrg for ac_c_preproc_warn_flag in '' yes
1993 1.1 mrg do
1994 1.1 mrg # Use a header file that comes with gcc, so configuring glibc
1995 1.1 mrg # with a fresh cross-compiler works.
1996 1.1 mrg # On the NeXT, cc -E runs the code through the compiler's parser,
1997 1.1 mrg # not just through cpp. "Syntax error" is here to catch this case.
1998 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
1999 1.1.1.3 snj #line 1999 "configure"
2000 1.1 mrg #include "confdefs.h"
2001 1.1 mrg #include <assert.h>
2002 1.1 mrg Syntax error
2003 1.1 mrg _ACEOF
2004 1.1.1.3 snj if { (eval echo "$as_me:2004: \"$ac_cpp conftest.$ac_ext\"") >&5
2005 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2006 1.1 mrg ac_status=$?
2007 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
2008 1.1 mrg rm -f conftest.er1
2009 1.1 mrg cat conftest.err >&5
2010 1.1.1.3 snj echo "$as_me:2010: \$? = $ac_status" >&5
2011 1.1 mrg (exit $ac_status); } >/dev/null; then
2012 1.1 mrg if test -s conftest.err; then
2013 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
2014 1.1 mrg else
2015 1.1 mrg ac_cpp_err=
2016 1.1 mrg fi
2017 1.1 mrg else
2018 1.1 mrg ac_cpp_err=yes
2019 1.1 mrg fi
2020 1.1 mrg if test -z "$ac_cpp_err"; then
2021 1.1 mrg :
2022 1.1 mrg else
2023 1.1 mrg echo "$as_me: failed program was:" >&5
2024 1.1 mrg cat conftest.$ac_ext >&5
2025 1.1 mrg # Broken: fails on valid input.
2026 1.1 mrg continue
2027 1.1 mrg fi
2028 1.1 mrg rm -f conftest.err conftest.$ac_ext
2029 1.1 mrg
2030 1.1 mrg # OK, works on sane cases. Now check whether non-existent headers
2031 1.1 mrg # can be detected and how.
2032 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2033 1.1.1.3 snj #line 2033 "configure"
2034 1.1 mrg #include "confdefs.h"
2035 1.1 mrg #include <ac_nonexistent.h>
2036 1.1 mrg _ACEOF
2037 1.1.1.3 snj if { (eval echo "$as_me:2037: \"$ac_cpp conftest.$ac_ext\"") >&5
2038 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2039 1.1 mrg ac_status=$?
2040 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
2041 1.1 mrg rm -f conftest.er1
2042 1.1 mrg cat conftest.err >&5
2043 1.1.1.3 snj echo "$as_me:2043: \$? = $ac_status" >&5
2044 1.1 mrg (exit $ac_status); } >/dev/null; then
2045 1.1 mrg if test -s conftest.err; then
2046 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
2047 1.1 mrg else
2048 1.1 mrg ac_cpp_err=
2049 1.1 mrg fi
2050 1.1 mrg else
2051 1.1 mrg ac_cpp_err=yes
2052 1.1 mrg fi
2053 1.1 mrg if test -z "$ac_cpp_err"; then
2054 1.1 mrg # Broken: success on invalid input.
2055 1.1 mrg continue
2056 1.1 mrg else
2057 1.1 mrg echo "$as_me: failed program was:" >&5
2058 1.1 mrg cat conftest.$ac_ext >&5
2059 1.1 mrg # Passes both tests.
2060 1.1 mrg ac_preproc_ok=:
2061 1.1 mrg break
2062 1.1 mrg fi
2063 1.1 mrg rm -f conftest.err conftest.$ac_ext
2064 1.1 mrg
2065 1.1 mrg done
2066 1.1 mrg # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2067 1.1 mrg rm -f conftest.err conftest.$ac_ext
2068 1.1 mrg if $ac_preproc_ok; then
2069 1.1 mrg :
2070 1.1 mrg else
2071 1.1.1.3 snj { { echo "$as_me:2071: error: C preprocessor \"$CPP\" fails sanity check" >&5
2072 1.1 mrg echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2073 1.1 mrg { (exit 1); exit 1; }; }
2074 1.1 mrg fi
2075 1.1 mrg
2076 1.1 mrg ac_ext=c
2077 1.1 mrg ac_cpp='$CPP $CPPFLAGS'
2078 1.1 mrg ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 1.1 mrg ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 1.1 mrg ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 1.1 mrg ac_main_return=return
2082 1.1 mrg
2083 1.1 mrg if test $ac_cv_c_compiler_gnu = yes; then
2084 1.1.1.3 snj echo "$as_me:2084: checking whether $CC needs -traditional" >&5
2085 1.1 mrg echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2086 1.1 mrg if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2087 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2088 1.1 mrg else
2089 1.1 mrg ac_pattern="Autoconf.*'x'"
2090 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2091 1.1.1.3 snj #line 2091 "configure"
2092 1.1 mrg #include "confdefs.h"
2093 1.1 mrg #include <sgtty.h>
2094 1.1 mrg int Autoconf = TIOCGETP;
2095 1.1 mrg _ACEOF
2096 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2097 1.1 mrg egrep "$ac_pattern" >/dev/null 2>&1; then
2098 1.1 mrg ac_cv_prog_gcc_traditional=yes
2099 1.1 mrg else
2100 1.1 mrg ac_cv_prog_gcc_traditional=no
2101 1.1 mrg fi
2102 1.1 mrg rm -f conftest*
2103 1.1 mrg
2104 1.1 mrg if test $ac_cv_prog_gcc_traditional = no; then
2105 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2106 1.1.1.3 snj #line 2106 "configure"
2107 1.1 mrg #include "confdefs.h"
2108 1.1 mrg #include <termio.h>
2109 1.1 mrg int Autoconf = TCGETA;
2110 1.1 mrg _ACEOF
2111 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2112 1.1 mrg egrep "$ac_pattern" >/dev/null 2>&1; then
2113 1.1 mrg ac_cv_prog_gcc_traditional=yes
2114 1.1 mrg fi
2115 1.1 mrg rm -f conftest*
2116 1.1 mrg
2117 1.1 mrg fi
2118 1.1 mrg fi
2119 1.1.1.3 snj echo "$as_me:2119: result: $ac_cv_prog_gcc_traditional" >&5
2120 1.1 mrg echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2121 1.1 mrg if test $ac_cv_prog_gcc_traditional = yes; then
2122 1.1 mrg CC="$CC -traditional"
2123 1.1 mrg fi
2124 1.1 mrg fi
2125 1.1 mrg
2126 1.1 mrg for ac_prog in mawk gawk nawk awk
2127 1.1 mrg do
2128 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 1.1 mrg set dummy $ac_prog; ac_word=$2
2130 1.1.1.3 snj echo "$as_me:2130: checking for $ac_word" >&5
2131 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 1.1 mrg if test "${ac_cv_prog_AWK+set}" = set; then
2133 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2134 1.1 mrg else
2135 1.1 mrg if test -n "$AWK"; then
2136 1.1 mrg ac_cv_prog_AWK="$AWK" # Let the user override the test.
2137 1.1 mrg else
2138 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
2139 1.1 mrg ac_dummy="$PATH"
2140 1.1 mrg for ac_dir in $ac_dummy; do
2141 1.1 mrg IFS=$ac_save_IFS
2142 1.1 mrg test -z "$ac_dir" && ac_dir=.
2143 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
2144 1.1 mrg ac_cv_prog_AWK="$ac_prog"
2145 1.1.1.3 snj echo "$as_me:2145: found $ac_dir/$ac_word" >&5
2146 1.1 mrg break
2147 1.1 mrg done
2148 1.1 mrg
2149 1.1 mrg fi
2150 1.1 mrg fi
2151 1.1 mrg AWK=$ac_cv_prog_AWK
2152 1.1 mrg if test -n "$AWK"; then
2153 1.1.1.3 snj echo "$as_me:2153: result: $AWK" >&5
2154 1.1 mrg echo "${ECHO_T}$AWK" >&6
2155 1.1 mrg else
2156 1.1.1.3 snj echo "$as_me:2156: result: no" >&5
2157 1.1 mrg echo "${ECHO_T}no" >&6
2158 1.1 mrg fi
2159 1.1 mrg
2160 1.1 mrg test -n "$AWK" && break
2161 1.1 mrg done
2162 1.1 mrg
2163 1.1 mrg # Find a good install program. We prefer a C program (faster),
2164 1.1 mrg # so one script is as good as another. But avoid the broken or
2165 1.1 mrg # incompatible versions:
2166 1.1 mrg # SysV /etc/install, /usr/sbin/install
2167 1.1 mrg # SunOS /usr/etc/install
2168 1.1 mrg # IRIX /sbin/install
2169 1.1 mrg # AIX /bin/install
2170 1.1 mrg # AmigaOS /C/install, which installs bootblocks on floppy discs
2171 1.1 mrg # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2172 1.1 mrg # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2173 1.1 mrg # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2174 1.1 mrg # ./install, which can be erroneously created by make from ./install.sh.
2175 1.1.1.3 snj echo "$as_me:2175: checking for a BSD compatible install" >&5
2176 1.1 mrg echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2177 1.1 mrg if test -z "$INSTALL"; then
2178 1.1 mrg if test "${ac_cv_path_install+set}" = set; then
2179 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2180 1.1 mrg else
2181 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
2182 1.1 mrg for ac_dir in $PATH; do
2183 1.1 mrg IFS=$ac_save_IFS
2184 1.1 mrg # Account for people who put trailing slashes in PATH elements.
2185 1.1 mrg case $ac_dir/ in
2186 1.1 mrg / | ./ | .// | /cC/* \
2187 1.1 mrg | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2188 1.1 mrg | /usr/ucb/* ) ;;
2189 1.1 mrg *)
2190 1.1 mrg # OSF1 and SCO ODT 3.0 have their own names for install.
2191 1.1 mrg # Don't use installbsd from OSF since it installs stuff as root
2192 1.1 mrg # by default.
2193 1.1 mrg for ac_prog in ginstall scoinst install; do
2194 1.1 mrg if $as_executable_p "$ac_dir/$ac_prog"; then
2195 1.1 mrg if test $ac_prog = install &&
2196 1.1 mrg grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2197 1.1 mrg # AIX install. It has an incompatible calling convention.
2198 1.1 mrg :
2199 1.1 mrg elif test $ac_prog = install &&
2200 1.1 mrg grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2201 1.1 mrg # program-specific install script used by HP pwplus--don't use.
2202 1.1 mrg :
2203 1.1 mrg else
2204 1.1 mrg ac_cv_path_install="$ac_dir/$ac_prog -c"
2205 1.1 mrg break 2
2206 1.1 mrg fi
2207 1.1 mrg fi
2208 1.1 mrg done
2209 1.1 mrg ;;
2210 1.1 mrg esac
2211 1.1 mrg done
2212 1.1 mrg
2213 1.1 mrg fi
2214 1.1 mrg if test "${ac_cv_path_install+set}" = set; then
2215 1.1 mrg INSTALL=$ac_cv_path_install
2216 1.1 mrg else
2217 1.1 mrg # As a last resort, use the slow shell script. We don't cache a
2218 1.1 mrg # path for INSTALL within a source directory, because that will
2219 1.1 mrg # break other packages using the cache if that directory is
2220 1.1 mrg # removed, or if the path is relative.
2221 1.1 mrg INSTALL=$ac_install_sh
2222 1.1 mrg fi
2223 1.1 mrg fi
2224 1.1.1.3 snj echo "$as_me:2224: result: $INSTALL" >&5
2225 1.1 mrg echo "${ECHO_T}$INSTALL" >&6
2226 1.1 mrg
2227 1.1 mrg # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2228 1.1 mrg # It thinks the first close brace ends the variable substitution.
2229 1.1 mrg test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2230 1.1 mrg
2231 1.1 mrg test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2232 1.1 mrg
2233 1.1 mrg test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2234 1.1 mrg
2235 1.1.1.3 snj echo "$as_me:2235: checking whether ln -s works" >&5
2236 1.1 mrg echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2237 1.1 mrg LN_S=$as_ln_s
2238 1.1 mrg if test "$LN_S" = "ln -s"; then
2239 1.1.1.3 snj echo "$as_me:2239: result: yes" >&5
2240 1.1 mrg echo "${ECHO_T}yes" >&6
2241 1.1 mrg else
2242 1.1.1.3 snj echo "$as_me:2242: result: no, using $LN_S" >&5
2243 1.1 mrg echo "${ECHO_T}no, using $LN_S" >&6
2244 1.1 mrg fi
2245 1.1 mrg
2246 1.1 mrg test "$program_prefix" != NONE &&
2247 1.1 mrg program_transform_name="s,^,$program_prefix,;$program_transform_name"
2248 1.1 mrg # Use a double $ so make ignores it.
2249 1.1 mrg test "$program_suffix" != NONE &&
2250 1.1 mrg program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2251 1.1 mrg # Double any \ or $. echo might interpret backslashes.
2252 1.1 mrg # By default was `s,x,x', remove it if useless.
2253 1.1 mrg cat <<\_ACEOF >conftest.sed
2254 1.1 mrg s/[\\$]/&&/g;s/;s,x,x,$//
2255 1.1 mrg _ACEOF
2256 1.1 mrg program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2257 1.1 mrg rm conftest.sed
2258 1.1 mrg
2259 1.1 mrg for ac_prog in tdlint lint alint
2260 1.1 mrg do
2261 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 1.1 mrg set dummy $ac_prog; ac_word=$2
2263 1.1.1.3 snj echo "$as_me:2263: checking for $ac_word" >&5
2264 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 1.1 mrg if test "${ac_cv_prog_LINT+set}" = set; then
2266 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2267 1.1 mrg else
2268 1.1 mrg if test -n "$LINT"; then
2269 1.1 mrg ac_cv_prog_LINT="$LINT" # Let the user override the test.
2270 1.1 mrg else
2271 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
2272 1.1 mrg ac_dummy="$PATH"
2273 1.1 mrg for ac_dir in $ac_dummy; do
2274 1.1 mrg IFS=$ac_save_IFS
2275 1.1 mrg test -z "$ac_dir" && ac_dir=.
2276 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
2277 1.1 mrg ac_cv_prog_LINT="$ac_prog"
2278 1.1.1.3 snj echo "$as_me:2278: found $ac_dir/$ac_word" >&5
2279 1.1 mrg break
2280 1.1 mrg done
2281 1.1 mrg
2282 1.1 mrg fi
2283 1.1 mrg fi
2284 1.1 mrg LINT=$ac_cv_prog_LINT
2285 1.1 mrg if test -n "$LINT"; then
2286 1.1.1.3 snj echo "$as_me:2286: result: $LINT" >&5
2287 1.1 mrg echo "${ECHO_T}$LINT" >&6
2288 1.1 mrg else
2289 1.1.1.3 snj echo "$as_me:2289: result: no" >&5
2290 1.1 mrg echo "${ECHO_T}no" >&6
2291 1.1 mrg fi
2292 1.1 mrg
2293 1.1 mrg test -n "$LINT" && break
2294 1.1 mrg done
2295 1.1 mrg
2296 1.1 mrg ### checks for UNIX variants that set C preprocessor variables
2297 1.1 mrg
2298 1.1.1.3 snj echo "$as_me:2298: checking for AIX" >&5
2299 1.1 mrg echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2300 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2301 1.1.1.3 snj #line 2301 "configure"
2302 1.1 mrg #include "confdefs.h"
2303 1.1 mrg #ifdef _AIX
2304 1.1 mrg yes
2305 1.1 mrg #endif
2306 1.1 mrg
2307 1.1 mrg _ACEOF
2308 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2309 1.1 mrg egrep "yes" >/dev/null 2>&1; then
2310 1.1.1.3 snj echo "$as_me:2310: result: yes" >&5
2311 1.1 mrg echo "${ECHO_T}yes" >&6
2312 1.1 mrg cat >>confdefs.h <<\EOF
2313 1.1 mrg #define _ALL_SOURCE 1
2314 1.1 mrg EOF
2315 1.1 mrg
2316 1.1 mrg else
2317 1.1.1.3 snj echo "$as_me:2317: result: no" >&5
2318 1.1 mrg echo "${ECHO_T}no" >&6
2319 1.1 mrg fi
2320 1.1 mrg rm -f conftest*
2321 1.1 mrg
2322 1.1.1.3 snj echo "$as_me:2322: checking for POSIXized ISC" >&5
2323 1.1 mrg echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2324 1.1 mrg if test -d /etc/conf/kconfig.d &&
2325 1.1 mrg grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2326 1.1 mrg then
2327 1.1.1.3 snj echo "$as_me:2327: result: yes" >&5
2328 1.1 mrg echo "${ECHO_T}yes" >&6
2329 1.1 mrg ISC=yes # If later tests want to check for ISC.
2330 1.1 mrg
2331 1.1 mrg cat >>confdefs.h <<\EOF
2332 1.1 mrg #define _POSIX_SOURCE 1
2333 1.1 mrg EOF
2334 1.1 mrg
2335 1.1 mrg if test "$GCC" = yes; then
2336 1.1 mrg CC="$CC -posix"
2337 1.1 mrg else
2338 1.1 mrg CC="$CC -Xp"
2339 1.1 mrg fi
2340 1.1 mrg else
2341 1.1.1.3 snj echo "$as_me:2341: result: no" >&5
2342 1.1 mrg echo "${ECHO_T}no" >&6
2343 1.1 mrg ISC=
2344 1.1 mrg fi
2345 1.1 mrg
2346 1.1 mrg ### checks for compiler characteristics
2347 1.1 mrg
2348 1.1.1.3 snj echo "$as_me:2348: checking for ${CC-cc} option to accept ANSI C" >&5
2349 1.1 mrg echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2350 1.1 mrg if test "${cf_cv_ansi_cc+set}" = set; then
2351 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2352 1.1 mrg else
2353 1.1 mrg
2354 1.1 mrg cf_cv_ansi_cc=no
2355 1.1 mrg cf_save_CFLAGS="$CFLAGS"
2356 1.1 mrg cf_save_CPPFLAGS="$CPPFLAGS"
2357 1.1 mrg # Don't try gcc -ansi; that turns off useful extensions and
2358 1.1 mrg # breaks some systems' header files.
2359 1.1 mrg # AIX -qlanglvl=ansi
2360 1.1 mrg # Ultrix and OSF/1 -std1
2361 1.1 mrg # HP-UX -Aa -D_HPUX_SOURCE
2362 1.1 mrg # SVR4 -Xc
2363 1.1 mrg # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2364 1.1 mrg for cf_arg in "-DCC_HAS_PROTOS" \
2365 1.1 mrg "" \
2366 1.1 mrg -qlanglvl=ansi \
2367 1.1 mrg -std1 \
2368 1.1 mrg -Ae \
2369 1.1 mrg "-Aa -D_HPUX_SOURCE" \
2370 1.1 mrg -Xc
2371 1.1 mrg do
2372 1.1 mrg
2373 1.1 mrg cf_fix_cppflags=no
2374 1.1 mrg cf_new_cflags=
2375 1.1 mrg cf_new_cppflags=
2376 1.1 mrg cf_new_extra_cppflags=
2377 1.1 mrg
2378 1.1 mrg for cf_add_cflags in $cf_arg
2379 1.1 mrg do
2380 1.1 mrg case $cf_fix_cppflags in
2381 1.1 mrg no)
2382 1.1 mrg case $cf_add_cflags in #(vi
2383 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2384 1.1 mrg case $cf_add_cflags in
2385 1.1 mrg -D*)
2386 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2387 1.1 mrg
2388 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2389 1.1 mrg && test -z "${cf_tst_cflags}" \
2390 1.1 mrg && cf_fix_cppflags=yes
2391 1.1 mrg
2392 1.1 mrg if test $cf_fix_cppflags = yes ; 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 elif test "${cf_tst_cflags}" = "\"'" ; then
2396 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2397 1.1 mrg continue
2398 1.1 mrg fi
2399 1.1 mrg ;;
2400 1.1 mrg esac
2401 1.1 mrg case "$CPPFLAGS" in
2402 1.1 mrg *$cf_add_cflags) #(vi
2403 1.1 mrg ;;
2404 1.1 mrg *) #(vi
2405 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2406 1.1 mrg ;;
2407 1.1 mrg esac
2408 1.1 mrg ;;
2409 1.1 mrg *)
2410 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2411 1.1 mrg ;;
2412 1.1 mrg esac
2413 1.1 mrg ;;
2414 1.1 mrg yes)
2415 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2416 1.1 mrg
2417 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2418 1.1 mrg
2419 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2420 1.1 mrg && test -z "${cf_tst_cflags}" \
2421 1.1 mrg && cf_fix_cppflags=no
2422 1.1 mrg ;;
2423 1.1 mrg esac
2424 1.1 mrg done
2425 1.1 mrg
2426 1.1 mrg if test -n "$cf_new_cflags" ; then
2427 1.1 mrg
2428 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
2429 1.1 mrg fi
2430 1.1 mrg
2431 1.1 mrg if test -n "$cf_new_cppflags" ; then
2432 1.1 mrg
2433 1.1.1.3 snj CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2434 1.1 mrg fi
2435 1.1 mrg
2436 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
2437 1.1 mrg
2438 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2439 1.1 mrg fi
2440 1.1 mrg
2441 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2442 1.1.1.3 snj #line 2442 "configure"
2443 1.1 mrg #include "confdefs.h"
2444 1.1 mrg
2445 1.1 mrg #ifndef CC_HAS_PROTOS
2446 1.1 mrg #if !defined(__STDC__) || (__STDC__ != 1)
2447 1.1 mrg choke me
2448 1.1 mrg #endif
2449 1.1 mrg #endif
2450 1.1 mrg
2451 1.1 mrg int
2452 1.1 mrg main ()
2453 1.1 mrg {
2454 1.1 mrg
2455 1.1 mrg int test (int i, double x);
2456 1.1 mrg struct s1 {int (*f) (int a);};
2457 1.1 mrg struct s2 {int (*f) (double a);};
2458 1.1 mrg ;
2459 1.1 mrg return 0;
2460 1.1 mrg }
2461 1.1 mrg _ACEOF
2462 1.1 mrg rm -f conftest.$ac_objext
2463 1.1.1.3 snj if { (eval echo "$as_me:2463: \"$ac_compile\"") >&5
2464 1.1 mrg (eval $ac_compile) 2>&5
2465 1.1 mrg ac_status=$?
2466 1.1.1.3 snj echo "$as_me:2466: \$? = $ac_status" >&5
2467 1.1 mrg (exit $ac_status); } &&
2468 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2469 1.1.1.3 snj { (eval echo "$as_me:2469: \"$ac_try\"") >&5
2470 1.1 mrg (eval $ac_try) 2>&5
2471 1.1 mrg ac_status=$?
2472 1.1.1.3 snj echo "$as_me:2472: \$? = $ac_status" >&5
2473 1.1 mrg (exit $ac_status); }; }; then
2474 1.1 mrg cf_cv_ansi_cc="$cf_arg"; break
2475 1.1 mrg else
2476 1.1 mrg echo "$as_me: failed program was:" >&5
2477 1.1 mrg cat conftest.$ac_ext >&5
2478 1.1 mrg fi
2479 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2480 1.1 mrg done
2481 1.1 mrg CFLAGS="$cf_save_CFLAGS"
2482 1.1 mrg CPPFLAGS="$cf_save_CPPFLAGS"
2483 1.1 mrg
2484 1.1 mrg fi
2485 1.1.1.3 snj echo "$as_me:2485: result: $cf_cv_ansi_cc" >&5
2486 1.1 mrg echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2487 1.1 mrg
2488 1.1 mrg if test "$cf_cv_ansi_cc" != "no"; then
2489 1.1 mrg if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2490 1.1 mrg
2491 1.1 mrg cf_fix_cppflags=no
2492 1.1 mrg cf_new_cflags=
2493 1.1 mrg cf_new_cppflags=
2494 1.1 mrg cf_new_extra_cppflags=
2495 1.1 mrg
2496 1.1 mrg for cf_add_cflags in $cf_cv_ansi_cc
2497 1.1 mrg do
2498 1.1 mrg case $cf_fix_cppflags in
2499 1.1 mrg no)
2500 1.1 mrg case $cf_add_cflags in #(vi
2501 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2502 1.1 mrg case $cf_add_cflags in
2503 1.1 mrg -D*)
2504 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2505 1.1 mrg
2506 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2507 1.1 mrg && test -z "${cf_tst_cflags}" \
2508 1.1 mrg && cf_fix_cppflags=yes
2509 1.1 mrg
2510 1.1 mrg if test $cf_fix_cppflags = yes ; 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 elif test "${cf_tst_cflags}" = "\"'" ; then
2514 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2515 1.1 mrg continue
2516 1.1 mrg fi
2517 1.1 mrg ;;
2518 1.1 mrg esac
2519 1.1 mrg case "$CPPFLAGS" in
2520 1.1 mrg *$cf_add_cflags) #(vi
2521 1.1 mrg ;;
2522 1.1 mrg *) #(vi
2523 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2524 1.1 mrg ;;
2525 1.1 mrg esac
2526 1.1 mrg ;;
2527 1.1 mrg *)
2528 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2529 1.1 mrg ;;
2530 1.1 mrg esac
2531 1.1 mrg ;;
2532 1.1 mrg yes)
2533 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2534 1.1 mrg
2535 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2536 1.1 mrg
2537 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2538 1.1 mrg && test -z "${cf_tst_cflags}" \
2539 1.1 mrg && cf_fix_cppflags=no
2540 1.1 mrg ;;
2541 1.1 mrg esac
2542 1.1 mrg done
2543 1.1 mrg
2544 1.1 mrg if test -n "$cf_new_cflags" ; then
2545 1.1 mrg
2546 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
2547 1.1 mrg fi
2548 1.1 mrg
2549 1.1 mrg if test -n "$cf_new_cppflags" ; then
2550 1.1 mrg
2551 1.1.1.3 snj CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2552 1.1 mrg fi
2553 1.1 mrg
2554 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
2555 1.1 mrg
2556 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2557 1.1 mrg fi
2558 1.1 mrg
2559 1.1 mrg else
2560 1.1 mrg cat >>confdefs.h <<\EOF
2561 1.1 mrg #define CC_HAS_PROTOS 1
2562 1.1 mrg EOF
2563 1.1 mrg
2564 1.1 mrg fi
2565 1.1 mrg fi
2566 1.1 mrg
2567 1.1.1.3 snj echo "$as_me:2567: checking for $CC option to accept ANSI C" >&5
2568 1.1 mrg echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2569 1.1 mrg if test "${ac_cv_prog_cc_stdc+set}" = set; then
2570 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2571 1.1 mrg else
2572 1.1 mrg ac_cv_prog_cc_stdc=no
2573 1.1 mrg ac_save_CC=$CC
2574 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2575 1.1.1.3 snj #line 2575 "configure"
2576 1.1 mrg #include "confdefs.h"
2577 1.1 mrg #include <stdarg.h>
2578 1.1 mrg #include <stdio.h>
2579 1.1 mrg #include <sys/types.h>
2580 1.1 mrg #include <sys/stat.h>
2581 1.1 mrg /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2582 1.1 mrg struct buf { int x; };
2583 1.1 mrg FILE * (*rcsopen) (struct buf *, struct stat *, int);
2584 1.1 mrg static char *e (p, i)
2585 1.1 mrg char **p;
2586 1.1 mrg int i;
2587 1.1 mrg {
2588 1.1 mrg return p[i];
2589 1.1 mrg }
2590 1.1 mrg static char *f (char * (*g) (char **, int), char **p, ...)
2591 1.1 mrg {
2592 1.1 mrg char *s;
2593 1.1 mrg va_list v;
2594 1.1 mrg va_start (v,p);
2595 1.1 mrg s = g (p, va_arg (v,int));
2596 1.1 mrg va_end (v);
2597 1.1 mrg return s;
2598 1.1 mrg }
2599 1.1 mrg int test (int i, double x);
2600 1.1 mrg struct s1 {int (*f) (int a);};
2601 1.1 mrg struct s2 {int (*f) (double a);};
2602 1.1 mrg int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2603 1.1 mrg int argc;
2604 1.1 mrg char **argv;
2605 1.1 mrg int
2606 1.1 mrg main ()
2607 1.1 mrg {
2608 1.1 mrg return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2609 1.1 mrg ;
2610 1.1 mrg return 0;
2611 1.1 mrg }
2612 1.1 mrg _ACEOF
2613 1.1 mrg # Don't try gcc -ansi; that turns off useful extensions and
2614 1.1 mrg # breaks some systems' header files.
2615 1.1 mrg # AIX -qlanglvl=ansi
2616 1.1 mrg # Ultrix and OSF/1 -std1
2617 1.1 mrg # HP-UX 10.20 and later -Ae
2618 1.1 mrg # HP-UX older versions -Aa -D_HPUX_SOURCE
2619 1.1 mrg # SVR4 -Xc -D__EXTENSIONS__
2620 1.1 mrg for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2621 1.1 mrg do
2622 1.1 mrg CC="$ac_save_CC $ac_arg"
2623 1.1 mrg rm -f conftest.$ac_objext
2624 1.1.1.3 snj if { (eval echo "$as_me:2624: \"$ac_compile\"") >&5
2625 1.1 mrg (eval $ac_compile) 2>&5
2626 1.1 mrg ac_status=$?
2627 1.1.1.3 snj echo "$as_me:2627: \$? = $ac_status" >&5
2628 1.1 mrg (exit $ac_status); } &&
2629 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2630 1.1.1.3 snj { (eval echo "$as_me:2630: \"$ac_try\"") >&5
2631 1.1 mrg (eval $ac_try) 2>&5
2632 1.1 mrg ac_status=$?
2633 1.1.1.3 snj echo "$as_me:2633: \$? = $ac_status" >&5
2634 1.1 mrg (exit $ac_status); }; }; then
2635 1.1 mrg ac_cv_prog_cc_stdc=$ac_arg
2636 1.1 mrg break
2637 1.1 mrg else
2638 1.1 mrg echo "$as_me: failed program was:" >&5
2639 1.1 mrg cat conftest.$ac_ext >&5
2640 1.1 mrg fi
2641 1.1 mrg rm -f conftest.$ac_objext
2642 1.1 mrg done
2643 1.1 mrg rm -f conftest.$ac_ext conftest.$ac_objext
2644 1.1 mrg CC=$ac_save_CC
2645 1.1 mrg
2646 1.1 mrg fi
2647 1.1 mrg
2648 1.1 mrg case "x$ac_cv_prog_cc_stdc" in
2649 1.1 mrg x|xno)
2650 1.1.1.3 snj echo "$as_me:2650: result: none needed" >&5
2651 1.1 mrg echo "${ECHO_T}none needed" >&6 ;;
2652 1.1 mrg *)
2653 1.1.1.3 snj echo "$as_me:2653: result: $ac_cv_prog_cc_stdc" >&5
2654 1.1 mrg echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2655 1.1 mrg CC="$CC $ac_cv_prog_cc_stdc" ;;
2656 1.1 mrg esac
2657 1.1 mrg
2658 1.1.1.3 snj echo "$as_me:2658: checking for an ANSI C-conforming const" >&5
2659 1.1 mrg echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2660 1.1 mrg if test "${ac_cv_c_const+set}" = set; then
2661 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2662 1.1 mrg else
2663 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2664 1.1.1.3 snj #line 2664 "configure"
2665 1.1 mrg #include "confdefs.h"
2666 1.1 mrg
2667 1.1 mrg int
2668 1.1 mrg main ()
2669 1.1 mrg {
2670 1.1 mrg /* FIXME: Include the comments suggested by Paul. */
2671 1.1 mrg #ifndef __cplusplus
2672 1.1 mrg /* Ultrix mips cc rejects this. */
2673 1.1 mrg typedef int charset[2];
2674 1.1 mrg const charset x;
2675 1.1 mrg /* SunOS 4.1.1 cc rejects this. */
2676 1.1 mrg char const *const *ccp;
2677 1.1 mrg char **p;
2678 1.1 mrg /* NEC SVR4.0.2 mips cc rejects this. */
2679 1.1 mrg struct point {int x, y;};
2680 1.1 mrg static struct point const zero = {0,0};
2681 1.1 mrg /* AIX XL C 1.02.0.0 rejects this.
2682 1.1 mrg It does not let you subtract one const X* pointer from another in
2683 1.1 mrg an arm of an if-expression whose if-part is not a constant
2684 1.1 mrg expression */
2685 1.1 mrg const char *g = "string";
2686 1.1 mrg ccp = &g + (g ? g-g : 0);
2687 1.1 mrg /* HPUX 7.0 cc rejects these. */
2688 1.1 mrg ++ccp;
2689 1.1 mrg p = (char**) ccp;
2690 1.1 mrg ccp = (char const *const *) p;
2691 1.1 mrg { /* SCO 3.2v4 cc rejects this. */
2692 1.1 mrg char *t;
2693 1.1 mrg char const *s = 0 ? (char *) 0 : (char const *) 0;
2694 1.1 mrg
2695 1.1 mrg *t++ = 0;
2696 1.1 mrg }
2697 1.1 mrg { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2698 1.1 mrg int x[] = {25, 17};
2699 1.1 mrg const int *foo = &x[0];
2700 1.1 mrg ++foo;
2701 1.1 mrg }
2702 1.1 mrg { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2703 1.1 mrg typedef const int *iptr;
2704 1.1 mrg iptr p = 0;
2705 1.1 mrg ++p;
2706 1.1 mrg }
2707 1.1 mrg { /* AIX XL C 1.02.0.0 rejects this saying
2708 1.1 mrg "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2709 1.1 mrg struct s { int j; const int *ap[3]; };
2710 1.1 mrg struct s *b; b->j = 5;
2711 1.1 mrg }
2712 1.1 mrg { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2713 1.1 mrg const int foo = 10;
2714 1.1 mrg }
2715 1.1 mrg #endif
2716 1.1 mrg
2717 1.1 mrg ;
2718 1.1 mrg return 0;
2719 1.1 mrg }
2720 1.1 mrg _ACEOF
2721 1.1 mrg rm -f conftest.$ac_objext
2722 1.1.1.3 snj if { (eval echo "$as_me:2722: \"$ac_compile\"") >&5
2723 1.1 mrg (eval $ac_compile) 2>&5
2724 1.1 mrg ac_status=$?
2725 1.1.1.3 snj echo "$as_me:2725: \$? = $ac_status" >&5
2726 1.1 mrg (exit $ac_status); } &&
2727 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2728 1.1.1.3 snj { (eval echo "$as_me:2728: \"$ac_try\"") >&5
2729 1.1 mrg (eval $ac_try) 2>&5
2730 1.1 mrg ac_status=$?
2731 1.1.1.3 snj echo "$as_me:2731: \$? = $ac_status" >&5
2732 1.1 mrg (exit $ac_status); }; }; then
2733 1.1 mrg ac_cv_c_const=yes
2734 1.1 mrg else
2735 1.1 mrg echo "$as_me: failed program was:" >&5
2736 1.1 mrg cat conftest.$ac_ext >&5
2737 1.1 mrg ac_cv_c_const=no
2738 1.1 mrg fi
2739 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2740 1.1 mrg fi
2741 1.1.1.3 snj echo "$as_me:2741: result: $ac_cv_c_const" >&5
2742 1.1 mrg echo "${ECHO_T}$ac_cv_c_const" >&6
2743 1.1 mrg if test $ac_cv_c_const = no; then
2744 1.1 mrg
2745 1.1 mrg cat >>confdefs.h <<\EOF
2746 1.1 mrg #define const
2747 1.1 mrg EOF
2748 1.1 mrg
2749 1.1 mrg fi
2750 1.1 mrg
2751 1.1 mrg case $cf_cv_system_name in
2752 1.1 mrg os2*)
2753 1.1 mrg CFLAGS="$CFLAGS -Zmt"
2754 1.1 mrg CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2755 1.1 mrg CXXFLAGS="$CXXFLAGS -Zmt"
2756 1.1 mrg # autoconf's macro sets -Zexe and suffix both, which conflict:w
2757 1.1 mrg LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2758 1.1 mrg ac_cv_exeext=.exe
2759 1.1 mrg ;;
2760 1.1 mrg esac
2761 1.1 mrg
2762 1.1 mrg PROG_EXT="$EXEEXT"
2763 1.1 mrg
2764 1.1 mrg test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2765 1.1 mrg #define PROG_EXT "$PROG_EXT"
2766 1.1 mrg EOF
2767 1.1 mrg
2768 1.1.1.3 snj echo "$as_me:2768: checking if $CC -U and -D options work together" >&5
2769 1.1 mrg echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
2770 1.1 mrg if test "${cf_cv_cc_u_d_options+set}" = set; then
2771 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2772 1.1 mrg else
2773 1.1 mrg
2774 1.1 mrg cf_save_CPPFLAGS="$CPPFLAGS"
2775 1.1 mrg CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
2776 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2777 1.1.1.3 snj #line 2777 "configure"
2778 1.1 mrg #include "confdefs.h"
2779 1.1 mrg
2780 1.1 mrg int
2781 1.1 mrg main ()
2782 1.1 mrg {
2783 1.1 mrg
2784 1.1 mrg #ifndef U_D_OPTIONS
2785 1.1 mrg make an undefined-error
2786 1.1 mrg #endif
2787 1.1 mrg #ifdef D_U_OPTIONS
2788 1.1 mrg make a defined-error
2789 1.1 mrg #endif
2790 1.1 mrg
2791 1.1 mrg ;
2792 1.1 mrg return 0;
2793 1.1 mrg }
2794 1.1 mrg _ACEOF
2795 1.1 mrg rm -f conftest.$ac_objext
2796 1.1.1.3 snj if { (eval echo "$as_me:2796: \"$ac_compile\"") >&5
2797 1.1 mrg (eval $ac_compile) 2>&5
2798 1.1 mrg ac_status=$?
2799 1.1.1.3 snj echo "$as_me:2799: \$? = $ac_status" >&5
2800 1.1 mrg (exit $ac_status); } &&
2801 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2802 1.1.1.3 snj { (eval echo "$as_me:2802: \"$ac_try\"") >&5
2803 1.1 mrg (eval $ac_try) 2>&5
2804 1.1 mrg ac_status=$?
2805 1.1.1.3 snj echo "$as_me:2805: \$? = $ac_status" >&5
2806 1.1 mrg (exit $ac_status); }; }; then
2807 1.1 mrg
2808 1.1 mrg cf_cv_cc_u_d_options=yes
2809 1.1 mrg else
2810 1.1 mrg echo "$as_me: failed program was:" >&5
2811 1.1 mrg cat conftest.$ac_ext >&5
2812 1.1 mrg
2813 1.1 mrg cf_cv_cc_u_d_options=no
2814 1.1 mrg fi
2815 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2816 1.1 mrg CPPFLAGS="$cf_save_CPPFLAGS"
2817 1.1 mrg
2818 1.1 mrg fi
2819 1.1.1.3 snj echo "$as_me:2819: result: $cf_cv_cc_u_d_options" >&5
2820 1.1 mrg echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
2821 1.1 mrg
2822 1.1 mrg cf_XOPEN_SOURCE=500
2823 1.1 mrg cf_POSIX_C_SOURCE=199506L
2824 1.1 mrg
2825 1.1 mrg case $host_os in #(vi
2826 1.1.1.2 christos aix[456]*) #(vi
2827 1.1 mrg CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
2828 1.1 mrg ;;
2829 1.1.1.2 christos freebsd*|dragonfly*) #(vi
2830 1.1 mrg # 5.x headers associate
2831 1.1 mrg # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2832 1.1 mrg # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2833 1.1 mrg cf_POSIX_C_SOURCE=200112L
2834 1.1 mrg cf_XOPEN_SOURCE=600
2835 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"
2836 1.1 mrg ;;
2837 1.1 mrg hpux*) #(vi
2838 1.1 mrg CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
2839 1.1 mrg ;;
2840 1.1 mrg irix[56].*) #(vi
2841 1.1 mrg CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
2842 1.1 mrg ;;
2843 1.1.1.2 christos linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2844 1.1 mrg
2845 1.1.1.3 snj echo "$as_me:2845: checking if we must define _GNU_SOURCE" >&5
2846 1.1 mrg echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2847 1.1 mrg if test "${cf_cv_gnu_source+set}" = set; then
2848 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2849 1.1 mrg else
2850 1.1 mrg
2851 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2852 1.1.1.3 snj #line 2852 "configure"
2853 1.1 mrg #include "confdefs.h"
2854 1.1 mrg #include <sys/types.h>
2855 1.1 mrg int
2856 1.1 mrg main ()
2857 1.1 mrg {
2858 1.1 mrg
2859 1.1 mrg #ifndef _XOPEN_SOURCE
2860 1.1 mrg make an error
2861 1.1 mrg #endif
2862 1.1 mrg ;
2863 1.1 mrg return 0;
2864 1.1 mrg }
2865 1.1 mrg _ACEOF
2866 1.1 mrg rm -f conftest.$ac_objext
2867 1.1.1.3 snj if { (eval echo "$as_me:2867: \"$ac_compile\"") >&5
2868 1.1 mrg (eval $ac_compile) 2>&5
2869 1.1 mrg ac_status=$?
2870 1.1.1.3 snj echo "$as_me:2870: \$? = $ac_status" >&5
2871 1.1 mrg (exit $ac_status); } &&
2872 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2873 1.1.1.3 snj { (eval echo "$as_me:2873: \"$ac_try\"") >&5
2874 1.1 mrg (eval $ac_try) 2>&5
2875 1.1 mrg ac_status=$?
2876 1.1.1.3 snj echo "$as_me:2876: \$? = $ac_status" >&5
2877 1.1 mrg (exit $ac_status); }; }; then
2878 1.1 mrg cf_cv_gnu_source=no
2879 1.1 mrg else
2880 1.1 mrg echo "$as_me: failed program was:" >&5
2881 1.1 mrg cat conftest.$ac_ext >&5
2882 1.1 mrg cf_save="$CPPFLAGS"
2883 1.1 mrg CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2884 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2885 1.1.1.3 snj #line 2885 "configure"
2886 1.1 mrg #include "confdefs.h"
2887 1.1 mrg #include <sys/types.h>
2888 1.1 mrg int
2889 1.1 mrg main ()
2890 1.1 mrg {
2891 1.1 mrg
2892 1.1 mrg #ifdef _XOPEN_SOURCE
2893 1.1 mrg make an error
2894 1.1 mrg #endif
2895 1.1 mrg ;
2896 1.1 mrg return 0;
2897 1.1 mrg }
2898 1.1 mrg _ACEOF
2899 1.1 mrg rm -f conftest.$ac_objext
2900 1.1.1.3 snj if { (eval echo "$as_me:2900: \"$ac_compile\"") >&5
2901 1.1 mrg (eval $ac_compile) 2>&5
2902 1.1 mrg ac_status=$?
2903 1.1.1.3 snj echo "$as_me:2903: \$? = $ac_status" >&5
2904 1.1 mrg (exit $ac_status); } &&
2905 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2906 1.1.1.3 snj { (eval echo "$as_me:2906: \"$ac_try\"") >&5
2907 1.1 mrg (eval $ac_try) 2>&5
2908 1.1 mrg ac_status=$?
2909 1.1.1.3 snj echo "$as_me:2909: \$? = $ac_status" >&5
2910 1.1 mrg (exit $ac_status); }; }; then
2911 1.1 mrg cf_cv_gnu_source=no
2912 1.1 mrg else
2913 1.1 mrg echo "$as_me: failed program was:" >&5
2914 1.1 mrg cat conftest.$ac_ext >&5
2915 1.1 mrg cf_cv_gnu_source=yes
2916 1.1 mrg fi
2917 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2918 1.1 mrg CPPFLAGS="$cf_save"
2919 1.1 mrg
2920 1.1 mrg fi
2921 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
2922 1.1 mrg
2923 1.1 mrg fi
2924 1.1.1.3 snj echo "$as_me:2924: result: $cf_cv_gnu_source" >&5
2925 1.1 mrg echo "${ECHO_T}$cf_cv_gnu_source" >&6
2926 1.1 mrg test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2927 1.1 mrg
2928 1.1 mrg ;;
2929 1.1 mrg mirbsd*) #(vi
2930 1.1 mrg # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2931 1.1 mrg ;;
2932 1.1 mrg netbsd*) #(vi
2933 1.1 mrg # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2934 1.1 mrg ;;
2935 1.1 mrg openbsd*) #(vi
2936 1.1 mrg # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2937 1.1 mrg ;;
2938 1.1 mrg osf[45]*) #(vi
2939 1.1 mrg CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
2940 1.1 mrg ;;
2941 1.1 mrg nto-qnx*) #(vi
2942 1.1 mrg CPPFLAGS="$CPPFLAGS -D_QNX_SOURCE"
2943 1.1 mrg ;;
2944 1.1 mrg sco*) #(vi
2945 1.1 mrg # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2946 1.1 mrg ;;
2947 1.1 mrg solaris*) #(vi
2948 1.1 mrg CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
2949 1.1 mrg ;;
2950 1.1 mrg *)
2951 1.1.1.3 snj echo "$as_me:2951: checking if we should define _XOPEN_SOURCE" >&5
2952 1.1 mrg echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2953 1.1 mrg if test "${cf_cv_xopen_source+set}" = set; then
2954 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
2955 1.1 mrg else
2956 1.1 mrg
2957 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2958 1.1.1.3 snj #line 2958 "configure"
2959 1.1 mrg #include "confdefs.h"
2960 1.1 mrg #include <sys/types.h>
2961 1.1 mrg int
2962 1.1 mrg main ()
2963 1.1 mrg {
2964 1.1 mrg
2965 1.1 mrg #ifndef _XOPEN_SOURCE
2966 1.1 mrg make an error
2967 1.1 mrg #endif
2968 1.1 mrg ;
2969 1.1 mrg return 0;
2970 1.1 mrg }
2971 1.1 mrg _ACEOF
2972 1.1 mrg rm -f conftest.$ac_objext
2973 1.1.1.3 snj if { (eval echo "$as_me:2973: \"$ac_compile\"") >&5
2974 1.1 mrg (eval $ac_compile) 2>&5
2975 1.1 mrg ac_status=$?
2976 1.1.1.3 snj echo "$as_me:2976: \$? = $ac_status" >&5
2977 1.1 mrg (exit $ac_status); } &&
2978 1.1 mrg { ac_try='test -s conftest.$ac_objext'
2979 1.1.1.3 snj { (eval echo "$as_me:2979: \"$ac_try\"") >&5
2980 1.1 mrg (eval $ac_try) 2>&5
2981 1.1 mrg ac_status=$?
2982 1.1.1.3 snj echo "$as_me:2982: \$? = $ac_status" >&5
2983 1.1 mrg (exit $ac_status); }; }; then
2984 1.1 mrg cf_cv_xopen_source=no
2985 1.1 mrg else
2986 1.1 mrg echo "$as_me: failed program was:" >&5
2987 1.1 mrg cat conftest.$ac_ext >&5
2988 1.1 mrg cf_save="$CPPFLAGS"
2989 1.1 mrg CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2990 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
2991 1.1.1.3 snj #line 2991 "configure"
2992 1.1 mrg #include "confdefs.h"
2993 1.1 mrg #include <sys/types.h>
2994 1.1 mrg int
2995 1.1 mrg main ()
2996 1.1 mrg {
2997 1.1 mrg
2998 1.1 mrg #ifdef _XOPEN_SOURCE
2999 1.1 mrg make an error
3000 1.1 mrg #endif
3001 1.1 mrg ;
3002 1.1 mrg return 0;
3003 1.1 mrg }
3004 1.1 mrg _ACEOF
3005 1.1 mrg rm -f conftest.$ac_objext
3006 1.1.1.3 snj if { (eval echo "$as_me:3006: \"$ac_compile\"") >&5
3007 1.1 mrg (eval $ac_compile) 2>&5
3008 1.1 mrg ac_status=$?
3009 1.1.1.3 snj echo "$as_me:3009: \$? = $ac_status" >&5
3010 1.1 mrg (exit $ac_status); } &&
3011 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3012 1.1.1.3 snj { (eval echo "$as_me:3012: \"$ac_try\"") >&5
3013 1.1 mrg (eval $ac_try) 2>&5
3014 1.1 mrg ac_status=$?
3015 1.1.1.3 snj echo "$as_me:3015: \$? = $ac_status" >&5
3016 1.1 mrg (exit $ac_status); }; }; then
3017 1.1 mrg cf_cv_xopen_source=no
3018 1.1 mrg else
3019 1.1 mrg echo "$as_me: failed program was:" >&5
3020 1.1 mrg cat conftest.$ac_ext >&5
3021 1.1 mrg cf_cv_xopen_source=$cf_XOPEN_SOURCE
3022 1.1 mrg fi
3023 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3024 1.1 mrg CPPFLAGS="$cf_save"
3025 1.1 mrg
3026 1.1 mrg fi
3027 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3028 1.1 mrg
3029 1.1 mrg fi
3030 1.1.1.3 snj echo "$as_me:3030: result: $cf_cv_xopen_source" >&5
3031 1.1 mrg echo "${ECHO_T}$cf_cv_xopen_source" >&6
3032 1.1 mrg if test "$cf_cv_xopen_source" != no ; then
3033 1.1 mrg
3034 1.1 mrg # remove _XOPEN_SOURCE symbol from $CFLAGS
3035 1.1 mrg CFLAGS=`echo "$CFLAGS" | \
3036 1.1 mrg sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3037 1.1 mrg -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
3038 1.1 mrg
3039 1.1 mrg # remove _XOPEN_SOURCE symbol from $CPPFLAGS
3040 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | \
3041 1.1 mrg sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3042 1.1 mrg -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
3043 1.1 mrg
3044 1.1 mrg test "$cf_cv_cc_u_d_options" = yes && \
3045 1.1 mrg CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
3046 1.1 mrg CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
3047 1.1 mrg fi
3048 1.1 mrg
3049 1.1 mrg cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3050 1.1 mrg
3051 1.1 mrg cf_save_CFLAGS="$CFLAGS"
3052 1.1 mrg cf_save_CPPFLAGS="$CPPFLAGS"
3053 1.1 mrg
3054 1.1 mrg # remove _POSIX_C_SOURCE symbol from $cf_save_CFLAGS
3055 1.1 mrg cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3056 1.1 mrg sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3057 1.1 mrg -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
3058 1.1 mrg
3059 1.1 mrg # remove _POSIX_C_SOURCE symbol from $cf_save_CPPFLAGS
3060 1.1 mrg cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3061 1.1 mrg sed -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3062 1.1 mrg -e 's/-[UD]_POSIX_C_SOURCE\(=[^ ]*\)\?$//g'`
3063 1.1 mrg
3064 1.1.1.3 snj echo "$as_me:3064: checking if we should define _POSIX_C_SOURCE" >&5
3065 1.1 mrg echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3066 1.1 mrg if test "${cf_cv_posix_c_source+set}" = set; then
3067 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3068 1.1 mrg else
3069 1.1 mrg
3070 1.1.1.3 snj echo "${as_me-configure}:3070: testing if the symbol is already defined go no further ..." 1>&5
3071 1.1 mrg
3072 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3073 1.1.1.3 snj #line 3073 "configure"
3074 1.1 mrg #include "confdefs.h"
3075 1.1 mrg #include <sys/types.h>
3076 1.1 mrg int
3077 1.1 mrg main ()
3078 1.1 mrg {
3079 1.1 mrg
3080 1.1 mrg #ifndef _POSIX_C_SOURCE
3081 1.1 mrg make an error
3082 1.1 mrg #endif
3083 1.1 mrg ;
3084 1.1 mrg return 0;
3085 1.1 mrg }
3086 1.1 mrg _ACEOF
3087 1.1 mrg rm -f conftest.$ac_objext
3088 1.1.1.3 snj if { (eval echo "$as_me:3088: \"$ac_compile\"") >&5
3089 1.1 mrg (eval $ac_compile) 2>&5
3090 1.1 mrg ac_status=$?
3091 1.1.1.3 snj echo "$as_me:3091: \$? = $ac_status" >&5
3092 1.1 mrg (exit $ac_status); } &&
3093 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3094 1.1.1.3 snj { (eval echo "$as_me:3094: \"$ac_try\"") >&5
3095 1.1 mrg (eval $ac_try) 2>&5
3096 1.1 mrg ac_status=$?
3097 1.1.1.3 snj echo "$as_me:3097: \$? = $ac_status" >&5
3098 1.1 mrg (exit $ac_status); }; }; then
3099 1.1 mrg cf_cv_posix_c_source=no
3100 1.1 mrg else
3101 1.1 mrg echo "$as_me: failed program was:" >&5
3102 1.1 mrg cat conftest.$ac_ext >&5
3103 1.1 mrg cf_want_posix_source=no
3104 1.1 mrg case .$cf_POSIX_C_SOURCE in #(vi
3105 1.1 mrg .[12]??*) #(vi
3106 1.1 mrg cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3107 1.1 mrg ;;
3108 1.1 mrg .2) #(vi
3109 1.1 mrg cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3110 1.1 mrg cf_want_posix_source=yes
3111 1.1 mrg ;;
3112 1.1 mrg .*)
3113 1.1 mrg cf_want_posix_source=yes
3114 1.1 mrg ;;
3115 1.1 mrg esac
3116 1.1 mrg if test "$cf_want_posix_source" = yes ; then
3117 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3118 1.1.1.3 snj #line 3118 "configure"
3119 1.1 mrg #include "confdefs.h"
3120 1.1 mrg #include <sys/types.h>
3121 1.1 mrg int
3122 1.1 mrg main ()
3123 1.1 mrg {
3124 1.1 mrg
3125 1.1 mrg #ifdef _POSIX_SOURCE
3126 1.1 mrg make an error
3127 1.1 mrg #endif
3128 1.1 mrg ;
3129 1.1 mrg return 0;
3130 1.1 mrg }
3131 1.1 mrg _ACEOF
3132 1.1 mrg rm -f conftest.$ac_objext
3133 1.1.1.3 snj if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5
3134 1.1 mrg (eval $ac_compile) 2>&5
3135 1.1 mrg ac_status=$?
3136 1.1.1.3 snj echo "$as_me:3136: \$? = $ac_status" >&5
3137 1.1 mrg (exit $ac_status); } &&
3138 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3139 1.1.1.3 snj { (eval echo "$as_me:3139: \"$ac_try\"") >&5
3140 1.1 mrg (eval $ac_try) 2>&5
3141 1.1 mrg ac_status=$?
3142 1.1.1.3 snj echo "$as_me:3142: \$? = $ac_status" >&5
3143 1.1 mrg (exit $ac_status); }; }; then
3144 1.1 mrg :
3145 1.1 mrg else
3146 1.1 mrg echo "$as_me: failed program was:" >&5
3147 1.1 mrg cat conftest.$ac_ext >&5
3148 1.1 mrg cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3149 1.1 mrg fi
3150 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3151 1.1 mrg fi
3152 1.1 mrg
3153 1.1.1.3 snj echo "${as_me-configure}:3153: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3154 1.1 mrg
3155 1.1 mrg CFLAGS="$cf_trim_CFLAGS"
3156 1.1 mrg CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3157 1.1 mrg
3158 1.1.1.3 snj echo "${as_me-configure}:3158: testing if the second compile does not leave our definition intact error ..." 1>&5
3159 1.1 mrg
3160 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3161 1.1.1.3 snj #line 3161 "configure"
3162 1.1 mrg #include "confdefs.h"
3163 1.1 mrg #include <sys/types.h>
3164 1.1 mrg int
3165 1.1 mrg main ()
3166 1.1 mrg {
3167 1.1 mrg
3168 1.1 mrg #ifndef _POSIX_C_SOURCE
3169 1.1 mrg make an error
3170 1.1 mrg #endif
3171 1.1 mrg ;
3172 1.1 mrg return 0;
3173 1.1 mrg }
3174 1.1 mrg _ACEOF
3175 1.1 mrg rm -f conftest.$ac_objext
3176 1.1.1.3 snj if { (eval echo "$as_me:3176: \"$ac_compile\"") >&5
3177 1.1 mrg (eval $ac_compile) 2>&5
3178 1.1 mrg ac_status=$?
3179 1.1.1.3 snj echo "$as_me:3179: \$? = $ac_status" >&5
3180 1.1 mrg (exit $ac_status); } &&
3181 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3182 1.1.1.3 snj { (eval echo "$as_me:3182: \"$ac_try\"") >&5
3183 1.1 mrg (eval $ac_try) 2>&5
3184 1.1 mrg ac_status=$?
3185 1.1.1.3 snj echo "$as_me:3185: \$? = $ac_status" >&5
3186 1.1 mrg (exit $ac_status); }; }; then
3187 1.1 mrg :
3188 1.1 mrg else
3189 1.1 mrg echo "$as_me: failed program was:" >&5
3190 1.1 mrg cat conftest.$ac_ext >&5
3191 1.1 mrg cf_cv_posix_c_source=no
3192 1.1 mrg fi
3193 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3194 1.1 mrg CFLAGS="$cf_save_CFLAGS"
3195 1.1 mrg CPPFLAGS="$cf_save_CPPFLAGS"
3196 1.1 mrg
3197 1.1 mrg fi
3198 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3199 1.1 mrg
3200 1.1 mrg fi
3201 1.1.1.3 snj echo "$as_me:3201: result: $cf_cv_posix_c_source" >&5
3202 1.1 mrg echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3203 1.1 mrg
3204 1.1 mrg if test "$cf_cv_posix_c_source" != no ; then
3205 1.1 mrg CFLAGS="$cf_trim_CFLAGS"
3206 1.1 mrg CPPFLAGS="$cf_trim_CPPFLAGS"
3207 1.1 mrg if test "$cf_cv_cc_u_d_options" = yes ; then
3208 1.1 mrg cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
3209 1.1 mrg sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
3210 1.1 mrg CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
3211 1.1 mrg fi
3212 1.1 mrg CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
3213 1.1 mrg fi
3214 1.1 mrg
3215 1.1 mrg ;;
3216 1.1 mrg esac
3217 1.1 mrg
3218 1.1.1.3 snj echo "$as_me:3218: checking if SIGWINCH is defined" >&5
3219 1.1 mrg echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
3220 1.1 mrg if test "${cf_cv_define_sigwinch+set}" = set; then
3221 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3222 1.1 mrg else
3223 1.1 mrg
3224 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3225 1.1.1.3 snj #line 3225 "configure"
3226 1.1 mrg #include "confdefs.h"
3227 1.1 mrg
3228 1.1 mrg #include <sys/types.h>
3229 1.1 mrg #include <sys/signal.h>
3230 1.1 mrg
3231 1.1 mrg int
3232 1.1 mrg main ()
3233 1.1 mrg {
3234 1.1 mrg int x = SIGWINCH
3235 1.1 mrg ;
3236 1.1 mrg return 0;
3237 1.1 mrg }
3238 1.1 mrg _ACEOF
3239 1.1 mrg rm -f conftest.$ac_objext
3240 1.1.1.3 snj if { (eval echo "$as_me:3240: \"$ac_compile\"") >&5
3241 1.1 mrg (eval $ac_compile) 2>&5
3242 1.1 mrg ac_status=$?
3243 1.1.1.3 snj echo "$as_me:3243: \$? = $ac_status" >&5
3244 1.1 mrg (exit $ac_status); } &&
3245 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3246 1.1.1.3 snj { (eval echo "$as_me:3246: \"$ac_try\"") >&5
3247 1.1 mrg (eval $ac_try) 2>&5
3248 1.1 mrg ac_status=$?
3249 1.1.1.3 snj echo "$as_me:3249: \$? = $ac_status" >&5
3250 1.1 mrg (exit $ac_status); }; }; then
3251 1.1 mrg cf_cv_define_sigwinch=yes
3252 1.1 mrg else
3253 1.1 mrg echo "$as_me: failed program was:" >&5
3254 1.1 mrg cat conftest.$ac_ext >&5
3255 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3256 1.1.1.3 snj #line 3256 "configure"
3257 1.1 mrg #include "confdefs.h"
3258 1.1 mrg
3259 1.1 mrg #undef _XOPEN_SOURCE
3260 1.1 mrg #undef _POSIX_SOURCE
3261 1.1 mrg #undef _POSIX_C_SOURCE
3262 1.1 mrg #include <sys/types.h>
3263 1.1 mrg #include <sys/signal.h>
3264 1.1 mrg
3265 1.1 mrg int
3266 1.1 mrg main ()
3267 1.1 mrg {
3268 1.1 mrg int x = SIGWINCH
3269 1.1 mrg ;
3270 1.1 mrg return 0;
3271 1.1 mrg }
3272 1.1 mrg _ACEOF
3273 1.1 mrg rm -f conftest.$ac_objext
3274 1.1.1.3 snj if { (eval echo "$as_me:3274: \"$ac_compile\"") >&5
3275 1.1 mrg (eval $ac_compile) 2>&5
3276 1.1 mrg ac_status=$?
3277 1.1.1.3 snj echo "$as_me:3277: \$? = $ac_status" >&5
3278 1.1 mrg (exit $ac_status); } &&
3279 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3280 1.1.1.3 snj { (eval echo "$as_me:3280: \"$ac_try\"") >&5
3281 1.1 mrg (eval $ac_try) 2>&5
3282 1.1 mrg ac_status=$?
3283 1.1.1.3 snj echo "$as_me:3283: \$? = $ac_status" >&5
3284 1.1 mrg (exit $ac_status); }; }; then
3285 1.1 mrg cf_cv_define_sigwinch=maybe
3286 1.1 mrg else
3287 1.1 mrg echo "$as_me: failed program was:" >&5
3288 1.1 mrg cat conftest.$ac_ext >&5
3289 1.1 mrg cf_cv_define_sigwinch=no
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 rm -f conftest.$ac_objext conftest.$ac_ext
3295 1.1 mrg
3296 1.1 mrg fi
3297 1.1.1.3 snj echo "$as_me:3297: result: $cf_cv_define_sigwinch" >&5
3298 1.1 mrg echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
3299 1.1 mrg
3300 1.1 mrg if test "$cf_cv_define_sigwinch" = maybe ; then
3301 1.1.1.3 snj echo "$as_me:3301: checking for actual SIGWINCH definition" >&5
3302 1.1 mrg echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
3303 1.1 mrg if test "${cf_cv_fixup_sigwinch+set}" = set; then
3304 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3305 1.1 mrg else
3306 1.1 mrg
3307 1.1 mrg cf_cv_fixup_sigwinch=unknown
3308 1.1 mrg cf_sigwinch=32
3309 1.1 mrg while test $cf_sigwinch != 1
3310 1.1 mrg do
3311 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3312 1.1.1.3 snj #line 3312 "configure"
3313 1.1 mrg #include "confdefs.h"
3314 1.1 mrg
3315 1.1 mrg #undef _XOPEN_SOURCE
3316 1.1 mrg #undef _POSIX_SOURCE
3317 1.1 mrg #undef _POSIX_C_SOURCE
3318 1.1 mrg #include <sys/types.h>
3319 1.1 mrg #include <sys/signal.h>
3320 1.1 mrg
3321 1.1 mrg int
3322 1.1 mrg main ()
3323 1.1 mrg {
3324 1.1 mrg
3325 1.1 mrg #if SIGWINCH != $cf_sigwinch
3326 1.1 mrg make an error
3327 1.1 mrg #endif
3328 1.1 mrg int x = SIGWINCH
3329 1.1 mrg ;
3330 1.1 mrg return 0;
3331 1.1 mrg }
3332 1.1 mrg _ACEOF
3333 1.1 mrg rm -f conftest.$ac_objext
3334 1.1.1.3 snj if { (eval echo "$as_me:3334: \"$ac_compile\"") >&5
3335 1.1 mrg (eval $ac_compile) 2>&5
3336 1.1 mrg ac_status=$?
3337 1.1.1.3 snj echo "$as_me:3337: \$? = $ac_status" >&5
3338 1.1 mrg (exit $ac_status); } &&
3339 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3340 1.1.1.3 snj { (eval echo "$as_me:3340: \"$ac_try\"") >&5
3341 1.1 mrg (eval $ac_try) 2>&5
3342 1.1 mrg ac_status=$?
3343 1.1.1.3 snj echo "$as_me:3343: \$? = $ac_status" >&5
3344 1.1 mrg (exit $ac_status); }; }; then
3345 1.1 mrg cf_cv_fixup_sigwinch=$cf_sigwinch
3346 1.1 mrg break
3347 1.1 mrg else
3348 1.1 mrg echo "$as_me: failed program was:" >&5
3349 1.1 mrg cat conftest.$ac_ext >&5
3350 1.1 mrg fi
3351 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3352 1.1 mrg
3353 1.1 mrg cf_sigwinch=`expr $cf_sigwinch - 1`
3354 1.1 mrg done
3355 1.1 mrg
3356 1.1 mrg fi
3357 1.1.1.3 snj echo "$as_me:3357: result: $cf_cv_fixup_sigwinch" >&5
3358 1.1 mrg echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
3359 1.1 mrg
3360 1.1 mrg if test "$cf_cv_fixup_sigwinch" != unknown ; then
3361 1.1 mrg CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
3362 1.1 mrg fi
3363 1.1 mrg fi
3364 1.1 mrg
3365 1.1 mrg ### checks for header files
3366 1.1 mrg
3367 1.1 mrg for ac_header in \
3368 1.1 mrg ncurses/term.h \
3369 1.1 mrg stdlib.h \
3370 1.1 mrg sys/ttydefaults.h \
3371 1.1 mrg term.h \
3372 1.1 mrg termios.h \
3373 1.1 mrg unistd.h \
3374 1.1 mrg wchar.h \
3375 1.1 mrg
3376 1.1 mrg do
3377 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3378 1.1.1.3 snj echo "$as_me:3378: checking for $ac_header" >&5
3379 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3380 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
3381 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3382 1.1 mrg else
3383 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3384 1.1.1.3 snj #line 3384 "configure"
3385 1.1 mrg #include "confdefs.h"
3386 1.1 mrg #include <$ac_header>
3387 1.1 mrg _ACEOF
3388 1.1.1.3 snj if { (eval echo "$as_me:3388: \"$ac_cpp conftest.$ac_ext\"") >&5
3389 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3390 1.1 mrg ac_status=$?
3391 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
3392 1.1 mrg rm -f conftest.er1
3393 1.1 mrg cat conftest.err >&5
3394 1.1.1.3 snj echo "$as_me:3394: \$? = $ac_status" >&5
3395 1.1 mrg (exit $ac_status); } >/dev/null; then
3396 1.1 mrg if test -s conftest.err; then
3397 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
3398 1.1 mrg else
3399 1.1 mrg ac_cpp_err=
3400 1.1 mrg fi
3401 1.1 mrg else
3402 1.1 mrg ac_cpp_err=yes
3403 1.1 mrg fi
3404 1.1 mrg if test -z "$ac_cpp_err"; then
3405 1.1 mrg eval "$as_ac_Header=yes"
3406 1.1 mrg else
3407 1.1 mrg echo "$as_me: failed program was:" >&5
3408 1.1 mrg cat conftest.$ac_ext >&5
3409 1.1 mrg eval "$as_ac_Header=no"
3410 1.1 mrg fi
3411 1.1 mrg rm -f conftest.err conftest.$ac_ext
3412 1.1 mrg fi
3413 1.1.1.3 snj echo "$as_me:3413: result: `eval echo '${'$as_ac_Header'}'`" >&5
3414 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3415 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
3416 1.1 mrg cat >>confdefs.h <<EOF
3417 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3418 1.1 mrg EOF
3419 1.1 mrg
3420 1.1 mrg fi
3421 1.1 mrg done
3422 1.1 mrg
3423 1.1.1.3 snj echo "$as_me:3423: checking whether time.h and sys/time.h may both be included" >&5
3424 1.1 mrg echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3425 1.1 mrg if test "${ac_cv_header_time+set}" = set; then
3426 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3427 1.1 mrg else
3428 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3429 1.1.1.3 snj #line 3429 "configure"
3430 1.1 mrg #include "confdefs.h"
3431 1.1 mrg #include <sys/types.h>
3432 1.1 mrg #include <sys/time.h>
3433 1.1 mrg #include <time.h>
3434 1.1 mrg
3435 1.1 mrg int
3436 1.1 mrg main ()
3437 1.1 mrg {
3438 1.1 mrg if ((struct tm *) 0)
3439 1.1 mrg return 0;
3440 1.1 mrg ;
3441 1.1 mrg return 0;
3442 1.1 mrg }
3443 1.1 mrg _ACEOF
3444 1.1 mrg rm -f conftest.$ac_objext
3445 1.1.1.3 snj if { (eval echo "$as_me:3445: \"$ac_compile\"") >&5
3446 1.1 mrg (eval $ac_compile) 2>&5
3447 1.1 mrg ac_status=$?
3448 1.1.1.3 snj echo "$as_me:3448: \$? = $ac_status" >&5
3449 1.1 mrg (exit $ac_status); } &&
3450 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3451 1.1.1.3 snj { (eval echo "$as_me:3451: \"$ac_try\"") >&5
3452 1.1 mrg (eval $ac_try) 2>&5
3453 1.1 mrg ac_status=$?
3454 1.1.1.3 snj echo "$as_me:3454: \$? = $ac_status" >&5
3455 1.1 mrg (exit $ac_status); }; }; then
3456 1.1 mrg ac_cv_header_time=yes
3457 1.1 mrg else
3458 1.1 mrg echo "$as_me: failed program was:" >&5
3459 1.1 mrg cat conftest.$ac_ext >&5
3460 1.1 mrg ac_cv_header_time=no
3461 1.1 mrg fi
3462 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3463 1.1 mrg fi
3464 1.1.1.3 snj echo "$as_me:3464: result: $ac_cv_header_time" >&5
3465 1.1 mrg echo "${ECHO_T}$ac_cv_header_time" >&6
3466 1.1 mrg if test $ac_cv_header_time = yes; then
3467 1.1 mrg
3468 1.1 mrg cat >>confdefs.h <<\EOF
3469 1.1 mrg #define TIME_WITH_SYS_TIME 1
3470 1.1 mrg EOF
3471 1.1 mrg
3472 1.1 mrg fi
3473 1.1 mrg
3474 1.1.1.3 snj echo "$as_me:3474: checking for nl_langinfo and CODESET" >&5
3475 1.1 mrg echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3476 1.1 mrg if test "${am_cv_langinfo_codeset+set}" = set; then
3477 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3478 1.1 mrg else
3479 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3480 1.1.1.3 snj #line 3480 "configure"
3481 1.1 mrg #include "confdefs.h"
3482 1.1 mrg #include <langinfo.h>
3483 1.1 mrg int
3484 1.1 mrg main ()
3485 1.1 mrg {
3486 1.1 mrg char* cs = nl_langinfo(CODESET);
3487 1.1 mrg ;
3488 1.1 mrg return 0;
3489 1.1 mrg }
3490 1.1 mrg _ACEOF
3491 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
3492 1.1.1.3 snj if { (eval echo "$as_me:3492: \"$ac_link\"") >&5
3493 1.1 mrg (eval $ac_link) 2>&5
3494 1.1 mrg ac_status=$?
3495 1.1.1.3 snj echo "$as_me:3495: \$? = $ac_status" >&5
3496 1.1 mrg (exit $ac_status); } &&
3497 1.1 mrg { ac_try='test -s conftest$ac_exeext'
3498 1.1.1.3 snj { (eval echo "$as_me:3498: \"$ac_try\"") >&5
3499 1.1 mrg (eval $ac_try) 2>&5
3500 1.1 mrg ac_status=$?
3501 1.1.1.3 snj echo "$as_me:3501: \$? = $ac_status" >&5
3502 1.1 mrg (exit $ac_status); }; }; then
3503 1.1 mrg am_cv_langinfo_codeset=yes
3504 1.1 mrg else
3505 1.1 mrg echo "$as_me: failed program was:" >&5
3506 1.1 mrg cat conftest.$ac_ext >&5
3507 1.1 mrg am_cv_langinfo_codeset=no
3508 1.1 mrg fi
3509 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3510 1.1 mrg
3511 1.1 mrg fi
3512 1.1.1.3 snj echo "$as_me:3512: result: $am_cv_langinfo_codeset" >&5
3513 1.1 mrg echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3514 1.1 mrg if test $am_cv_langinfo_codeset = yes; then
3515 1.1 mrg
3516 1.1 mrg cat >>confdefs.h <<\EOF
3517 1.1 mrg #define HAVE_LANGINFO_CODESET 1
3518 1.1 mrg EOF
3519 1.1 mrg
3520 1.1 mrg fi
3521 1.1 mrg
3522 1.1 mrg ### checks for typedefs
3523 1.1 mrg
3524 1.1.1.3 snj echo "$as_me:3524: checking for signal global datatype" >&5
3525 1.1 mrg echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3526 1.1 mrg if test "${cf_cv_sig_atomic_t+set}" = set; then
3527 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3528 1.1 mrg else
3529 1.1 mrg
3530 1.1 mrg for cf_type in \
3531 1.1 mrg "volatile sig_atomic_t" \
3532 1.1 mrg "sig_atomic_t" \
3533 1.1 mrg "int"
3534 1.1 mrg do
3535 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3536 1.1.1.3 snj #line 3536 "configure"
3537 1.1 mrg #include "confdefs.h"
3538 1.1 mrg
3539 1.1 mrg #include <sys/types.h>
3540 1.1 mrg #include <signal.h>
3541 1.1 mrg #include <stdio.h>
3542 1.1 mrg
3543 1.1 mrg extern $cf_type x;
3544 1.1 mrg $cf_type x;
3545 1.1 mrg static void handler(int sig)
3546 1.1 mrg {
3547 1.1 mrg x = 5;
3548 1.1 mrg }
3549 1.1 mrg int
3550 1.1 mrg main ()
3551 1.1 mrg {
3552 1.1 mrg signal(SIGINT, handler);
3553 1.1 mrg x = 1
3554 1.1 mrg ;
3555 1.1 mrg return 0;
3556 1.1 mrg }
3557 1.1 mrg _ACEOF
3558 1.1 mrg rm -f conftest.$ac_objext
3559 1.1.1.3 snj if { (eval echo "$as_me:3559: \"$ac_compile\"") >&5
3560 1.1 mrg (eval $ac_compile) 2>&5
3561 1.1 mrg ac_status=$?
3562 1.1.1.3 snj echo "$as_me:3562: \$? = $ac_status" >&5
3563 1.1 mrg (exit $ac_status); } &&
3564 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3565 1.1.1.3 snj { (eval echo "$as_me:3565: \"$ac_try\"") >&5
3566 1.1 mrg (eval $ac_try) 2>&5
3567 1.1 mrg ac_status=$?
3568 1.1.1.3 snj echo "$as_me:3568: \$? = $ac_status" >&5
3569 1.1 mrg (exit $ac_status); }; }; then
3570 1.1 mrg cf_cv_sig_atomic_t=$cf_type
3571 1.1 mrg else
3572 1.1 mrg echo "$as_me: failed program was:" >&5
3573 1.1 mrg cat conftest.$ac_ext >&5
3574 1.1 mrg cf_cv_sig_atomic_t=no
3575 1.1 mrg fi
3576 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3577 1.1 mrg test "$cf_cv_sig_atomic_t" != no && break
3578 1.1 mrg done
3579 1.1 mrg
3580 1.1 mrg fi
3581 1.1 mrg
3582 1.1.1.3 snj echo "$as_me:3582: result: $cf_cv_sig_atomic_t" >&5
3583 1.1 mrg echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3584 1.1 mrg test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3585 1.1 mrg #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3586 1.1 mrg EOF
3587 1.1 mrg
3588 1.1.1.3 snj echo "$as_me:3588: checking for size_t in <sys/types.h> or <stdio.h>" >&5
3589 1.1 mrg echo $ECHO_N "checking for size_t in <sys/types.h> or <stdio.h>... $ECHO_C" >&6
3590 1.1 mrg if test "${cf_cv_type_size_t+set}" = set; then
3591 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3592 1.1 mrg else
3593 1.1 mrg
3594 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3595 1.1.1.3 snj #line 3595 "configure"
3596 1.1 mrg #include "confdefs.h"
3597 1.1 mrg
3598 1.1 mrg #include <sys/types.h>
3599 1.1 mrg #ifdef STDC_HEADERS
3600 1.1 mrg #include <stdlib.h>
3601 1.1 mrg #include <stddef.h>
3602 1.1 mrg #endif
3603 1.1 mrg #include <stdio.h>
3604 1.1 mrg int
3605 1.1 mrg main ()
3606 1.1 mrg {
3607 1.1 mrg size_t x
3608 1.1 mrg ;
3609 1.1 mrg return 0;
3610 1.1 mrg }
3611 1.1 mrg _ACEOF
3612 1.1 mrg rm -f conftest.$ac_objext
3613 1.1.1.3 snj if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
3614 1.1 mrg (eval $ac_compile) 2>&5
3615 1.1 mrg ac_status=$?
3616 1.1.1.3 snj echo "$as_me:3616: \$? = $ac_status" >&5
3617 1.1 mrg (exit $ac_status); } &&
3618 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3619 1.1.1.3 snj { (eval echo "$as_me:3619: \"$ac_try\"") >&5
3620 1.1 mrg (eval $ac_try) 2>&5
3621 1.1 mrg ac_status=$?
3622 1.1.1.3 snj echo "$as_me:3622: \$? = $ac_status" >&5
3623 1.1 mrg (exit $ac_status); }; }; then
3624 1.1 mrg cf_cv_type_size_t=yes
3625 1.1 mrg else
3626 1.1 mrg echo "$as_me: failed program was:" >&5
3627 1.1 mrg cat conftest.$ac_ext >&5
3628 1.1 mrg cf_cv_type_size_t=no
3629 1.1 mrg fi
3630 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3631 1.1 mrg
3632 1.1 mrg fi
3633 1.1 mrg
3634 1.1.1.3 snj echo "$as_me:3634: result: $cf_cv_type_size_t" >&5
3635 1.1 mrg echo "${ECHO_T}$cf_cv_type_size_t" >&6
3636 1.1 mrg test $cf_cv_type_size_t = no && cat >>confdefs.h <<\EOF
3637 1.1 mrg #define size_t unsigned
3638 1.1 mrg EOF
3639 1.1 mrg
3640 1.1.1.3 snj echo "$as_me:3640: checking for ANSI C header files" >&5
3641 1.1 mrg echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3642 1.1 mrg if test "${ac_cv_header_stdc+set}" = set; then
3643 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3644 1.1 mrg else
3645 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3646 1.1.1.3 snj #line 3646 "configure"
3647 1.1 mrg #include "confdefs.h"
3648 1.1 mrg #include <stdlib.h>
3649 1.1 mrg #include <stdarg.h>
3650 1.1 mrg #include <string.h>
3651 1.1 mrg #include <float.h>
3652 1.1 mrg
3653 1.1 mrg _ACEOF
3654 1.1.1.3 snj if { (eval echo "$as_me:3654: \"$ac_cpp conftest.$ac_ext\"") >&5
3655 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3656 1.1 mrg ac_status=$?
3657 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
3658 1.1 mrg rm -f conftest.er1
3659 1.1 mrg cat conftest.err >&5
3660 1.1.1.3 snj echo "$as_me:3660: \$? = $ac_status" >&5
3661 1.1 mrg (exit $ac_status); } >/dev/null; then
3662 1.1 mrg if test -s conftest.err; then
3663 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
3664 1.1 mrg else
3665 1.1 mrg ac_cpp_err=
3666 1.1 mrg fi
3667 1.1 mrg else
3668 1.1 mrg ac_cpp_err=yes
3669 1.1 mrg fi
3670 1.1 mrg if test -z "$ac_cpp_err"; then
3671 1.1 mrg ac_cv_header_stdc=yes
3672 1.1 mrg else
3673 1.1 mrg echo "$as_me: failed program was:" >&5
3674 1.1 mrg cat conftest.$ac_ext >&5
3675 1.1 mrg ac_cv_header_stdc=no
3676 1.1 mrg fi
3677 1.1 mrg rm -f conftest.err conftest.$ac_ext
3678 1.1 mrg
3679 1.1 mrg if test $ac_cv_header_stdc = yes; then
3680 1.1 mrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3681 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3682 1.1.1.3 snj #line 3682 "configure"
3683 1.1 mrg #include "confdefs.h"
3684 1.1 mrg #include <string.h>
3685 1.1 mrg
3686 1.1 mrg _ACEOF
3687 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688 1.1 mrg egrep "memchr" >/dev/null 2>&1; then
3689 1.1 mrg :
3690 1.1 mrg else
3691 1.1 mrg ac_cv_header_stdc=no
3692 1.1 mrg fi
3693 1.1 mrg rm -f conftest*
3694 1.1 mrg
3695 1.1 mrg fi
3696 1.1 mrg
3697 1.1 mrg if test $ac_cv_header_stdc = yes; then
3698 1.1 mrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3699 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3700 1.1.1.3 snj #line 3700 "configure"
3701 1.1 mrg #include "confdefs.h"
3702 1.1 mrg #include <stdlib.h>
3703 1.1 mrg
3704 1.1 mrg _ACEOF
3705 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706 1.1 mrg egrep "free" >/dev/null 2>&1; then
3707 1.1 mrg :
3708 1.1 mrg else
3709 1.1 mrg ac_cv_header_stdc=no
3710 1.1 mrg fi
3711 1.1 mrg rm -f conftest*
3712 1.1 mrg
3713 1.1 mrg fi
3714 1.1 mrg
3715 1.1 mrg if test $ac_cv_header_stdc = yes; then
3716 1.1 mrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3717 1.1 mrg if test "$cross_compiling" = yes; then
3718 1.1 mrg :
3719 1.1 mrg else
3720 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3721 1.1.1.3 snj #line 3721 "configure"
3722 1.1 mrg #include "confdefs.h"
3723 1.1 mrg #include <ctype.h>
3724 1.1 mrg #if ((' ' & 0x0FF) == 0x020)
3725 1.1 mrg # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3726 1.1 mrg # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3727 1.1 mrg #else
3728 1.1 mrg # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3729 1.1 mrg || ('j' <= (c) && (c) <= 'r') \
3730 1.1 mrg || ('s' <= (c) && (c) <= 'z'))
3731 1.1 mrg # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3732 1.1 mrg #endif
3733 1.1 mrg
3734 1.1 mrg #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3735 1.1 mrg int
3736 1.1 mrg main ()
3737 1.1 mrg {
3738 1.1 mrg int i;
3739 1.1 mrg for (i = 0; i < 256; i++)
3740 1.1 mrg if (XOR (islower (i), ISLOWER (i))
3741 1.1 mrg || toupper (i) != TOUPPER (i))
3742 1.1 mrg $ac_main_return(2);
3743 1.1 mrg $ac_main_return (0);
3744 1.1 mrg }
3745 1.1 mrg _ACEOF
3746 1.1 mrg rm -f conftest$ac_exeext
3747 1.1.1.3 snj if { (eval echo "$as_me:3747: \"$ac_link\"") >&5
3748 1.1 mrg (eval $ac_link) 2>&5
3749 1.1 mrg ac_status=$?
3750 1.1.1.3 snj echo "$as_me:3750: \$? = $ac_status" >&5
3751 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3752 1.1.1.3 snj { (eval echo "$as_me:3752: \"$ac_try\"") >&5
3753 1.1 mrg (eval $ac_try) 2>&5
3754 1.1 mrg ac_status=$?
3755 1.1.1.3 snj echo "$as_me:3755: \$? = $ac_status" >&5
3756 1.1 mrg (exit $ac_status); }; }; then
3757 1.1 mrg :
3758 1.1 mrg else
3759 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
3760 1.1 mrg echo "$as_me: failed program was:" >&5
3761 1.1 mrg cat conftest.$ac_ext >&5
3762 1.1 mrg ac_cv_header_stdc=no
3763 1.1 mrg fi
3764 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3765 1.1 mrg fi
3766 1.1 mrg fi
3767 1.1 mrg fi
3768 1.1.1.3 snj echo "$as_me:3768: result: $ac_cv_header_stdc" >&5
3769 1.1 mrg echo "${ECHO_T}$ac_cv_header_stdc" >&6
3770 1.1 mrg if test $ac_cv_header_stdc = yes; then
3771 1.1 mrg
3772 1.1 mrg cat >>confdefs.h <<\EOF
3773 1.1 mrg #define STDC_HEADERS 1
3774 1.1 mrg EOF
3775 1.1 mrg
3776 1.1 mrg fi
3777 1.1 mrg
3778 1.1 mrg # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3779 1.1 mrg
3780 1.1 mrg for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3781 1.1 mrg inttypes.h stdint.h unistd.h
3782 1.1 mrg do
3783 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3784 1.1.1.3 snj echo "$as_me:3784: checking for $ac_header" >&5
3785 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3786 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
3787 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3788 1.1 mrg else
3789 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3790 1.1.1.3 snj #line 3790 "configure"
3791 1.1 mrg #include "confdefs.h"
3792 1.1 mrg $ac_includes_default
3793 1.1 mrg #include <$ac_header>
3794 1.1 mrg _ACEOF
3795 1.1 mrg rm -f conftest.$ac_objext
3796 1.1.1.3 snj if { (eval echo "$as_me:3796: \"$ac_compile\"") >&5
3797 1.1 mrg (eval $ac_compile) 2>&5
3798 1.1 mrg ac_status=$?
3799 1.1.1.3 snj echo "$as_me:3799: \$? = $ac_status" >&5
3800 1.1 mrg (exit $ac_status); } &&
3801 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3802 1.1.1.3 snj { (eval echo "$as_me:3802: \"$ac_try\"") >&5
3803 1.1 mrg (eval $ac_try) 2>&5
3804 1.1 mrg ac_status=$?
3805 1.1.1.3 snj echo "$as_me:3805: \$? = $ac_status" >&5
3806 1.1 mrg (exit $ac_status); }; }; then
3807 1.1 mrg eval "$as_ac_Header=yes"
3808 1.1 mrg else
3809 1.1 mrg echo "$as_me: failed program was:" >&5
3810 1.1 mrg cat conftest.$ac_ext >&5
3811 1.1 mrg eval "$as_ac_Header=no"
3812 1.1 mrg fi
3813 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3814 1.1 mrg fi
3815 1.1.1.3 snj echo "$as_me:3815: result: `eval echo '${'$as_ac_Header'}'`" >&5
3816 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3817 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
3818 1.1 mrg cat >>confdefs.h <<EOF
3819 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3820 1.1 mrg EOF
3821 1.1 mrg
3822 1.1 mrg fi
3823 1.1 mrg done
3824 1.1 mrg
3825 1.1.1.3 snj echo "$as_me:3825: checking for time_t" >&5
3826 1.1 mrg echo $ECHO_N "checking for time_t... $ECHO_C" >&6
3827 1.1 mrg if test "${ac_cv_type_time_t+set}" = set; then
3828 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3829 1.1 mrg else
3830 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3831 1.1.1.3 snj #line 3831 "configure"
3832 1.1 mrg #include "confdefs.h"
3833 1.1 mrg $ac_includes_default
3834 1.1 mrg int
3835 1.1 mrg main ()
3836 1.1 mrg {
3837 1.1 mrg if ((time_t *) 0)
3838 1.1 mrg return 0;
3839 1.1 mrg if (sizeof (time_t))
3840 1.1 mrg return 0;
3841 1.1 mrg ;
3842 1.1 mrg return 0;
3843 1.1 mrg }
3844 1.1 mrg _ACEOF
3845 1.1 mrg rm -f conftest.$ac_objext
3846 1.1.1.3 snj if { (eval echo "$as_me:3846: \"$ac_compile\"") >&5
3847 1.1 mrg (eval $ac_compile) 2>&5
3848 1.1 mrg ac_status=$?
3849 1.1.1.3 snj echo "$as_me:3849: \$? = $ac_status" >&5
3850 1.1 mrg (exit $ac_status); } &&
3851 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3852 1.1.1.3 snj { (eval echo "$as_me:3852: \"$ac_try\"") >&5
3853 1.1 mrg (eval $ac_try) 2>&5
3854 1.1 mrg ac_status=$?
3855 1.1.1.3 snj echo "$as_me:3855: \$? = $ac_status" >&5
3856 1.1 mrg (exit $ac_status); }; }; then
3857 1.1 mrg ac_cv_type_time_t=yes
3858 1.1 mrg else
3859 1.1 mrg echo "$as_me: failed program was:" >&5
3860 1.1 mrg cat conftest.$ac_ext >&5
3861 1.1 mrg ac_cv_type_time_t=no
3862 1.1 mrg fi
3863 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3864 1.1 mrg fi
3865 1.1.1.3 snj echo "$as_me:3865: result: $ac_cv_type_time_t" >&5
3866 1.1 mrg echo "${ECHO_T}$ac_cv_type_time_t" >&6
3867 1.1 mrg if test $ac_cv_type_time_t = yes; then
3868 1.1 mrg :
3869 1.1 mrg else
3870 1.1 mrg
3871 1.1 mrg cat >>confdefs.h <<EOF
3872 1.1 mrg #define time_t long
3873 1.1 mrg EOF
3874 1.1 mrg
3875 1.1 mrg fi
3876 1.1 mrg
3877 1.1.1.3 snj echo "$as_me:3877: checking for mode_t" >&5
3878 1.1 mrg echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3879 1.1 mrg if test "${ac_cv_type_mode_t+set}" = set; then
3880 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3881 1.1 mrg else
3882 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3883 1.1.1.3 snj #line 3883 "configure"
3884 1.1 mrg #include "confdefs.h"
3885 1.1 mrg $ac_includes_default
3886 1.1 mrg int
3887 1.1 mrg main ()
3888 1.1 mrg {
3889 1.1 mrg if ((mode_t *) 0)
3890 1.1 mrg return 0;
3891 1.1 mrg if (sizeof (mode_t))
3892 1.1 mrg return 0;
3893 1.1 mrg ;
3894 1.1 mrg return 0;
3895 1.1 mrg }
3896 1.1 mrg _ACEOF
3897 1.1 mrg rm -f conftest.$ac_objext
3898 1.1.1.3 snj if { (eval echo "$as_me:3898: \"$ac_compile\"") >&5
3899 1.1 mrg (eval $ac_compile) 2>&5
3900 1.1 mrg ac_status=$?
3901 1.1.1.3 snj echo "$as_me:3901: \$? = $ac_status" >&5
3902 1.1 mrg (exit $ac_status); } &&
3903 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3904 1.1.1.3 snj { (eval echo "$as_me:3904: \"$ac_try\"") >&5
3905 1.1 mrg (eval $ac_try) 2>&5
3906 1.1 mrg ac_status=$?
3907 1.1.1.3 snj echo "$as_me:3907: \$? = $ac_status" >&5
3908 1.1 mrg (exit $ac_status); }; }; then
3909 1.1 mrg ac_cv_type_mode_t=yes
3910 1.1 mrg else
3911 1.1 mrg echo "$as_me: failed program was:" >&5
3912 1.1 mrg cat conftest.$ac_ext >&5
3913 1.1 mrg ac_cv_type_mode_t=no
3914 1.1 mrg fi
3915 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3916 1.1 mrg fi
3917 1.1.1.3 snj echo "$as_me:3917: result: $ac_cv_type_mode_t" >&5
3918 1.1 mrg echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3919 1.1 mrg if test $ac_cv_type_mode_t = yes; then
3920 1.1 mrg :
3921 1.1 mrg else
3922 1.1 mrg
3923 1.1 mrg cat >>confdefs.h <<EOF
3924 1.1 mrg #define mode_t int
3925 1.1 mrg EOF
3926 1.1 mrg
3927 1.1 mrg fi
3928 1.1 mrg
3929 1.1.1.3 snj echo "$as_me:3929: checking for pid_t" >&5
3930 1.1 mrg echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3931 1.1 mrg if test "${ac_cv_type_pid_t+set}" = set; then
3932 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3933 1.1 mrg else
3934 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3935 1.1.1.3 snj #line 3935 "configure"
3936 1.1 mrg #include "confdefs.h"
3937 1.1 mrg $ac_includes_default
3938 1.1 mrg int
3939 1.1 mrg main ()
3940 1.1 mrg {
3941 1.1 mrg if ((pid_t *) 0)
3942 1.1 mrg return 0;
3943 1.1 mrg if (sizeof (pid_t))
3944 1.1 mrg return 0;
3945 1.1 mrg ;
3946 1.1 mrg return 0;
3947 1.1 mrg }
3948 1.1 mrg _ACEOF
3949 1.1 mrg rm -f conftest.$ac_objext
3950 1.1.1.3 snj if { (eval echo "$as_me:3950: \"$ac_compile\"") >&5
3951 1.1 mrg (eval $ac_compile) 2>&5
3952 1.1 mrg ac_status=$?
3953 1.1.1.3 snj echo "$as_me:3953: \$? = $ac_status" >&5
3954 1.1 mrg (exit $ac_status); } &&
3955 1.1 mrg { ac_try='test -s conftest.$ac_objext'
3956 1.1.1.3 snj { (eval echo "$as_me:3956: \"$ac_try\"") >&5
3957 1.1 mrg (eval $ac_try) 2>&5
3958 1.1 mrg ac_status=$?
3959 1.1.1.3 snj echo "$as_me:3959: \$? = $ac_status" >&5
3960 1.1 mrg (exit $ac_status); }; }; then
3961 1.1 mrg ac_cv_type_pid_t=yes
3962 1.1 mrg else
3963 1.1 mrg echo "$as_me: failed program was:" >&5
3964 1.1 mrg cat conftest.$ac_ext >&5
3965 1.1 mrg ac_cv_type_pid_t=no
3966 1.1 mrg fi
3967 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
3968 1.1 mrg fi
3969 1.1.1.3 snj echo "$as_me:3969: result: $ac_cv_type_pid_t" >&5
3970 1.1 mrg echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3971 1.1 mrg if test $ac_cv_type_pid_t = yes; then
3972 1.1 mrg :
3973 1.1 mrg else
3974 1.1 mrg
3975 1.1 mrg cat >>confdefs.h <<EOF
3976 1.1 mrg #define pid_t int
3977 1.1 mrg EOF
3978 1.1 mrg
3979 1.1 mrg fi
3980 1.1 mrg
3981 1.1.1.3 snj echo "$as_me:3981: checking for uid_t in sys/types.h" >&5
3982 1.1 mrg echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3983 1.1 mrg if test "${ac_cv_type_uid_t+set}" = set; then
3984 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
3985 1.1 mrg else
3986 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
3987 1.1.1.3 snj #line 3987 "configure"
3988 1.1 mrg #include "confdefs.h"
3989 1.1 mrg #include <sys/types.h>
3990 1.1 mrg
3991 1.1 mrg _ACEOF
3992 1.1 mrg if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 1.1 mrg egrep "uid_t" >/dev/null 2>&1; then
3994 1.1 mrg ac_cv_type_uid_t=yes
3995 1.1 mrg else
3996 1.1 mrg ac_cv_type_uid_t=no
3997 1.1 mrg fi
3998 1.1 mrg rm -f conftest*
3999 1.1 mrg
4000 1.1 mrg fi
4001 1.1.1.3 snj echo "$as_me:4001: result: $ac_cv_type_uid_t" >&5
4002 1.1 mrg echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4003 1.1 mrg if test $ac_cv_type_uid_t = no; then
4004 1.1 mrg
4005 1.1 mrg cat >>confdefs.h <<\EOF
4006 1.1 mrg #define uid_t int
4007 1.1 mrg EOF
4008 1.1 mrg
4009 1.1 mrg cat >>confdefs.h <<\EOF
4010 1.1 mrg #define gid_t int
4011 1.1 mrg EOF
4012 1.1 mrg
4013 1.1 mrg fi
4014 1.1 mrg
4015 1.1.1.3 snj echo "$as_me:4015: checking for off_t" >&5
4016 1.1 mrg echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4017 1.1 mrg if test "${ac_cv_type_off_t+set}" = set; then
4018 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4019 1.1 mrg else
4020 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4021 1.1.1.3 snj #line 4021 "configure"
4022 1.1 mrg #include "confdefs.h"
4023 1.1 mrg $ac_includes_default
4024 1.1 mrg int
4025 1.1 mrg main ()
4026 1.1 mrg {
4027 1.1 mrg if ((off_t *) 0)
4028 1.1 mrg return 0;
4029 1.1 mrg if (sizeof (off_t))
4030 1.1 mrg return 0;
4031 1.1 mrg ;
4032 1.1 mrg return 0;
4033 1.1 mrg }
4034 1.1 mrg _ACEOF
4035 1.1 mrg rm -f conftest.$ac_objext
4036 1.1.1.3 snj if { (eval echo "$as_me:4036: \"$ac_compile\"") >&5
4037 1.1 mrg (eval $ac_compile) 2>&5
4038 1.1 mrg ac_status=$?
4039 1.1.1.3 snj echo "$as_me:4039: \$? = $ac_status" >&5
4040 1.1 mrg (exit $ac_status); } &&
4041 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4042 1.1.1.3 snj { (eval echo "$as_me:4042: \"$ac_try\"") >&5
4043 1.1 mrg (eval $ac_try) 2>&5
4044 1.1 mrg ac_status=$?
4045 1.1.1.3 snj echo "$as_me:4045: \$? = $ac_status" >&5
4046 1.1 mrg (exit $ac_status); }; }; then
4047 1.1 mrg ac_cv_type_off_t=yes
4048 1.1 mrg else
4049 1.1 mrg echo "$as_me: failed program was:" >&5
4050 1.1 mrg cat conftest.$ac_ext >&5
4051 1.1 mrg ac_cv_type_off_t=no
4052 1.1 mrg fi
4053 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4054 1.1 mrg fi
4055 1.1.1.3 snj echo "$as_me:4055: result: $ac_cv_type_off_t" >&5
4056 1.1 mrg echo "${ECHO_T}$ac_cv_type_off_t" >&6
4057 1.1 mrg if test $ac_cv_type_off_t = yes; then
4058 1.1 mrg :
4059 1.1 mrg else
4060 1.1 mrg
4061 1.1 mrg cat >>confdefs.h <<EOF
4062 1.1 mrg #define off_t long
4063 1.1 mrg EOF
4064 1.1 mrg
4065 1.1 mrg fi
4066 1.1 mrg
4067 1.1 mrg ### checks for library functions
4068 1.1 mrg
4069 1.1 mrg for ac_func in \
4070 1.1 mrg bcopy \
4071 1.1 mrg gethostname \
4072 1.1 mrg getlogin \
4073 1.1 mrg memmove \
4074 1.1 mrg putenv \
4075 1.1 mrg sched_yield \
4076 1.1 mrg strerror \
4077 1.1 mrg strftime \
4078 1.1 mrg tcgetattr \
4079 1.1 mrg waitpid \
4080 1.1 mrg wcswidth \
4081 1.1 mrg wcwidth
4082 1.1 mrg do
4083 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4084 1.1.1.3 snj echo "$as_me:4084: checking for $ac_func" >&5
4085 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4086 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
4087 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4088 1.1 mrg else
4089 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4090 1.1.1.3 snj #line 4090 "configure"
4091 1.1 mrg #include "confdefs.h"
4092 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
4093 1.1 mrg which can conflict with char $ac_func (); below. */
4094 1.1 mrg #include <assert.h>
4095 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
4096 1.1 mrg #ifdef __cplusplus
4097 1.1 mrg extern "C"
4098 1.1 mrg #endif
4099 1.1 mrg /* We use char because int might match the return type of a gcc2
4100 1.1 mrg builtin and then its argument prototype would still apply. */
4101 1.1 mrg char $ac_func ();
4102 1.1 mrg char (*f) ();
4103 1.1 mrg
4104 1.1 mrg int
4105 1.1 mrg main ()
4106 1.1 mrg {
4107 1.1 mrg /* The GNU C library defines this for functions which it implements
4108 1.1 mrg to always fail with ENOSYS. Some functions are actually named
4109 1.1 mrg something starting with __ and the normal name is an alias. */
4110 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4111 1.1 mrg choke me
4112 1.1 mrg #else
4113 1.1 mrg f = $ac_func;
4114 1.1 mrg #endif
4115 1.1 mrg
4116 1.1 mrg ;
4117 1.1 mrg return 0;
4118 1.1 mrg }
4119 1.1 mrg _ACEOF
4120 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4121 1.1.1.3 snj if { (eval echo "$as_me:4121: \"$ac_link\"") >&5
4122 1.1 mrg (eval $ac_link) 2>&5
4123 1.1 mrg ac_status=$?
4124 1.1.1.3 snj echo "$as_me:4124: \$? = $ac_status" >&5
4125 1.1 mrg (exit $ac_status); } &&
4126 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4127 1.1.1.3 snj { (eval echo "$as_me:4127: \"$ac_try\"") >&5
4128 1.1 mrg (eval $ac_try) 2>&5
4129 1.1 mrg ac_status=$?
4130 1.1.1.3 snj echo "$as_me:4130: \$? = $ac_status" >&5
4131 1.1 mrg (exit $ac_status); }; }; then
4132 1.1 mrg eval "$as_ac_var=yes"
4133 1.1 mrg else
4134 1.1 mrg echo "$as_me: failed program was:" >&5
4135 1.1 mrg cat conftest.$ac_ext >&5
4136 1.1 mrg eval "$as_ac_var=no"
4137 1.1 mrg fi
4138 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4139 1.1 mrg fi
4140 1.1.1.3 snj echo "$as_me:4140: result: `eval echo '${'$as_ac_var'}'`" >&5
4141 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4142 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
4143 1.1 mrg cat >>confdefs.h <<EOF
4144 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4145 1.1 mrg EOF
4146 1.1 mrg
4147 1.1 mrg fi
4148 1.1 mrg done
4149 1.1 mrg
4150 1.1.1.3 snj echo "$as_me:4150: checking for memmove" >&5
4151 1.1 mrg echo $ECHO_N "checking for memmove... $ECHO_C" >&6
4152 1.1 mrg if test "${ac_cv_func_memmove+set}" = set; then
4153 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4154 1.1 mrg else
4155 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4156 1.1.1.3 snj #line 4156 "configure"
4157 1.1 mrg #include "confdefs.h"
4158 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
4159 1.1 mrg which can conflict with char memmove (); below. */
4160 1.1 mrg #include <assert.h>
4161 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
4162 1.1 mrg #ifdef __cplusplus
4163 1.1 mrg extern "C"
4164 1.1 mrg #endif
4165 1.1 mrg /* We use char because int might match the return type of a gcc2
4166 1.1 mrg builtin and then its argument prototype would still apply. */
4167 1.1 mrg char memmove ();
4168 1.1 mrg char (*f) ();
4169 1.1 mrg
4170 1.1 mrg int
4171 1.1 mrg main ()
4172 1.1 mrg {
4173 1.1 mrg /* The GNU C library defines this for functions which it implements
4174 1.1 mrg to always fail with ENOSYS. Some functions are actually named
4175 1.1 mrg something starting with __ and the normal name is an alias. */
4176 1.1 mrg #if defined (__stub_memmove) || defined (__stub___memmove)
4177 1.1 mrg choke me
4178 1.1 mrg #else
4179 1.1 mrg f = memmove;
4180 1.1 mrg #endif
4181 1.1 mrg
4182 1.1 mrg ;
4183 1.1 mrg return 0;
4184 1.1 mrg }
4185 1.1 mrg _ACEOF
4186 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4187 1.1.1.3 snj if { (eval echo "$as_me:4187: \"$ac_link\"") >&5
4188 1.1 mrg (eval $ac_link) 2>&5
4189 1.1 mrg ac_status=$?
4190 1.1.1.3 snj echo "$as_me:4190: \$? = $ac_status" >&5
4191 1.1 mrg (exit $ac_status); } &&
4192 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4193 1.1.1.3 snj { (eval echo "$as_me:4193: \"$ac_try\"") >&5
4194 1.1 mrg (eval $ac_try) 2>&5
4195 1.1 mrg ac_status=$?
4196 1.1.1.3 snj echo "$as_me:4196: \$? = $ac_status" >&5
4197 1.1 mrg (exit $ac_status); }; }; then
4198 1.1 mrg ac_cv_func_memmove=yes
4199 1.1 mrg else
4200 1.1 mrg echo "$as_me: failed program was:" >&5
4201 1.1 mrg cat conftest.$ac_ext >&5
4202 1.1 mrg ac_cv_func_memmove=no
4203 1.1 mrg fi
4204 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4205 1.1 mrg fi
4206 1.1.1.3 snj echo "$as_me:4206: result: $ac_cv_func_memmove" >&5
4207 1.1 mrg echo "${ECHO_T}$ac_cv_func_memmove" >&6
4208 1.1 mrg if test $ac_cv_func_memmove = yes; then
4209 1.1 mrg :
4210 1.1 mrg else
4211 1.1 mrg
4212 1.1.1.3 snj echo "$as_me:4212: checking for bcopy" >&5
4213 1.1 mrg echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
4214 1.1 mrg if test "${ac_cv_func_bcopy+set}" = set; then
4215 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4216 1.1 mrg else
4217 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4218 1.1.1.3 snj #line 4218 "configure"
4219 1.1 mrg #include "confdefs.h"
4220 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
4221 1.1 mrg which can conflict with char bcopy (); below. */
4222 1.1 mrg #include <assert.h>
4223 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
4224 1.1 mrg #ifdef __cplusplus
4225 1.1 mrg extern "C"
4226 1.1 mrg #endif
4227 1.1 mrg /* We use char because int might match the return type of a gcc2
4228 1.1 mrg builtin and then its argument prototype would still apply. */
4229 1.1 mrg char bcopy ();
4230 1.1 mrg char (*f) ();
4231 1.1 mrg
4232 1.1 mrg int
4233 1.1 mrg main ()
4234 1.1 mrg {
4235 1.1 mrg /* The GNU C library defines this for functions which it implements
4236 1.1 mrg to always fail with ENOSYS. Some functions are actually named
4237 1.1 mrg something starting with __ and the normal name is an alias. */
4238 1.1 mrg #if defined (__stub_bcopy) || defined (__stub___bcopy)
4239 1.1 mrg choke me
4240 1.1 mrg #else
4241 1.1 mrg f = bcopy;
4242 1.1 mrg #endif
4243 1.1 mrg
4244 1.1 mrg ;
4245 1.1 mrg return 0;
4246 1.1 mrg }
4247 1.1 mrg _ACEOF
4248 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4249 1.1.1.3 snj if { (eval echo "$as_me:4249: \"$ac_link\"") >&5
4250 1.1 mrg (eval $ac_link) 2>&5
4251 1.1 mrg ac_status=$?
4252 1.1.1.3 snj echo "$as_me:4252: \$? = $ac_status" >&5
4253 1.1 mrg (exit $ac_status); } &&
4254 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4255 1.1.1.3 snj { (eval echo "$as_me:4255: \"$ac_try\"") >&5
4256 1.1 mrg (eval $ac_try) 2>&5
4257 1.1 mrg ac_status=$?
4258 1.1.1.3 snj echo "$as_me:4258: \$? = $ac_status" >&5
4259 1.1 mrg (exit $ac_status); }; }; then
4260 1.1 mrg ac_cv_func_bcopy=yes
4261 1.1 mrg else
4262 1.1 mrg echo "$as_me: failed program was:" >&5
4263 1.1 mrg cat conftest.$ac_ext >&5
4264 1.1 mrg ac_cv_func_bcopy=no
4265 1.1 mrg fi
4266 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4267 1.1 mrg fi
4268 1.1.1.3 snj echo "$as_me:4268: result: $ac_cv_func_bcopy" >&5
4269 1.1 mrg echo "${ECHO_T}$ac_cv_func_bcopy" >&6
4270 1.1 mrg if test $ac_cv_func_bcopy = yes; then
4271 1.1 mrg
4272 1.1.1.3 snj echo "$as_me:4272: checking if bcopy does overlapping moves" >&5
4273 1.1 mrg echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
4274 1.1 mrg if test "${cf_cv_good_bcopy+set}" = set; then
4275 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4276 1.1 mrg else
4277 1.1 mrg
4278 1.1 mrg if test "$cross_compiling" = yes; then
4279 1.1 mrg cf_cv_good_bcopy=unknown
4280 1.1 mrg else
4281 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4282 1.1.1.3 snj #line 4282 "configure"
4283 1.1 mrg #include "confdefs.h"
4284 1.1 mrg
4285 1.1 mrg int main() {
4286 1.1 mrg static char data[] = "abcdefghijklmnopqrstuwwxyz";
4287 1.1 mrg char temp[40];
4288 1.1 mrg bcopy(data, temp, sizeof(data));
4289 1.1 mrg bcopy(temp+10, temp, 15);
4290 1.1 mrg bcopy(temp+5, temp+15, 10);
4291 1.1 mrg ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
4292 1.1 mrg }
4293 1.1 mrg
4294 1.1 mrg _ACEOF
4295 1.1 mrg rm -f conftest$ac_exeext
4296 1.1.1.3 snj if { (eval echo "$as_me:4296: \"$ac_link\"") >&5
4297 1.1 mrg (eval $ac_link) 2>&5
4298 1.1 mrg ac_status=$?
4299 1.1.1.3 snj echo "$as_me:4299: \$? = $ac_status" >&5
4300 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4301 1.1.1.3 snj { (eval echo "$as_me:4301: \"$ac_try\"") >&5
4302 1.1 mrg (eval $ac_try) 2>&5
4303 1.1 mrg ac_status=$?
4304 1.1.1.3 snj echo "$as_me:4304: \$? = $ac_status" >&5
4305 1.1 mrg (exit $ac_status); }; }; then
4306 1.1 mrg cf_cv_good_bcopy=yes
4307 1.1 mrg else
4308 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
4309 1.1 mrg echo "$as_me: failed program was:" >&5
4310 1.1 mrg cat conftest.$ac_ext >&5
4311 1.1 mrg cf_cv_good_bcopy=no
4312 1.1 mrg fi
4313 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4314 1.1 mrg fi
4315 1.1 mrg
4316 1.1 mrg fi
4317 1.1.1.3 snj echo "$as_me:4317: result: $cf_cv_good_bcopy" >&5
4318 1.1 mrg echo "${ECHO_T}$cf_cv_good_bcopy" >&6
4319 1.1 mrg
4320 1.1 mrg else
4321 1.1 mrg cf_cv_good_bcopy=no
4322 1.1 mrg fi
4323 1.1 mrg
4324 1.1 mrg if test "$cf_cv_good_bcopy" = yes ; then
4325 1.1 mrg cat >>confdefs.h <<\EOF
4326 1.1 mrg #define USE_OK_BCOPY 1
4327 1.1 mrg EOF
4328 1.1 mrg
4329 1.1 mrg else
4330 1.1 mrg cat >>confdefs.h <<\EOF
4331 1.1 mrg #define USE_MY_MEMMOVE 1
4332 1.1 mrg EOF
4333 1.1 mrg
4334 1.1 mrg fi
4335 1.1 mrg
4336 1.1 mrg fi
4337 1.1 mrg
4338 1.1 mrg for ac_header in lastlog.h paths.h
4339 1.1 mrg do
4340 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 1.1.1.3 snj echo "$as_me:4341: checking for $ac_header" >&5
4342 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4343 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4345 1.1 mrg else
4346 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4347 1.1.1.3 snj #line 4347 "configure"
4348 1.1 mrg #include "confdefs.h"
4349 1.1 mrg #include <$ac_header>
4350 1.1 mrg _ACEOF
4351 1.1.1.3 snj if { (eval echo "$as_me:4351: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 1.1 mrg ac_status=$?
4354 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
4355 1.1 mrg rm -f conftest.er1
4356 1.1 mrg cat conftest.err >&5
4357 1.1.1.3 snj echo "$as_me:4357: \$? = $ac_status" >&5
4358 1.1 mrg (exit $ac_status); } >/dev/null; then
4359 1.1 mrg if test -s conftest.err; then
4360 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
4361 1.1 mrg else
4362 1.1 mrg ac_cpp_err=
4363 1.1 mrg fi
4364 1.1 mrg else
4365 1.1 mrg ac_cpp_err=yes
4366 1.1 mrg fi
4367 1.1 mrg if test -z "$ac_cpp_err"; then
4368 1.1 mrg eval "$as_ac_Header=yes"
4369 1.1 mrg else
4370 1.1 mrg echo "$as_me: failed program was:" >&5
4371 1.1 mrg cat conftest.$ac_ext >&5
4372 1.1 mrg eval "$as_ac_Header=no"
4373 1.1 mrg fi
4374 1.1 mrg rm -f conftest.err conftest.$ac_ext
4375 1.1 mrg fi
4376 1.1.1.3 snj echo "$as_me:4376: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
4379 1.1 mrg cat >>confdefs.h <<EOF
4380 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4381 1.1 mrg EOF
4382 1.1 mrg
4383 1.1 mrg fi
4384 1.1 mrg done
4385 1.1 mrg
4386 1.1.1.3 snj echo "$as_me:4386: checking for lastlog path" >&5
4387 1.1 mrg echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
4388 1.1 mrg if test "${cf_cv_path_lastlog+set}" = set; then
4389 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4390 1.1 mrg else
4391 1.1 mrg
4392 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4393 1.1.1.3 snj #line 4393 "configure"
4394 1.1 mrg #include "confdefs.h"
4395 1.1 mrg
4396 1.1 mrg #include <sys/types.h>
4397 1.1 mrg #ifdef HAVE_LASTLOG_H
4398 1.1 mrg #include <lastlog.h>
4399 1.1 mrg #else
4400 1.1 mrg #ifdef HAVE_PATHS_H
4401 1.1 mrg #include <paths.h>
4402 1.1 mrg #endif
4403 1.1 mrg #endif
4404 1.1 mrg int
4405 1.1 mrg main ()
4406 1.1 mrg {
4407 1.1 mrg char *path = _PATH_LASTLOG
4408 1.1 mrg ;
4409 1.1 mrg return 0;
4410 1.1 mrg }
4411 1.1 mrg _ACEOF
4412 1.1 mrg rm -f conftest.$ac_objext
4413 1.1.1.3 snj if { (eval echo "$as_me:4413: \"$ac_compile\"") >&5
4414 1.1 mrg (eval $ac_compile) 2>&5
4415 1.1 mrg ac_status=$?
4416 1.1.1.3 snj echo "$as_me:4416: \$? = $ac_status" >&5
4417 1.1 mrg (exit $ac_status); } &&
4418 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4419 1.1.1.3 snj { (eval echo "$as_me:4419: \"$ac_try\"") >&5
4420 1.1 mrg (eval $ac_try) 2>&5
4421 1.1 mrg ac_status=$?
4422 1.1.1.3 snj echo "$as_me:4422: \$? = $ac_status" >&5
4423 1.1 mrg (exit $ac_status); }; }; then
4424 1.1 mrg cf_cv_path_lastlog="_PATH_LASTLOG"
4425 1.1 mrg else
4426 1.1 mrg echo "$as_me: failed program was:" >&5
4427 1.1 mrg cat conftest.$ac_ext >&5
4428 1.1 mrg if test -f /usr/adm/lastlog ; then
4429 1.1 mrg cf_cv_path_lastlog=/usr/adm/lastlog
4430 1.1 mrg else
4431 1.1 mrg cf_cv_path_lastlog=no
4432 1.1 mrg fi
4433 1.1 mrg fi
4434 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4435 1.1 mrg
4436 1.1 mrg fi
4437 1.1.1.3 snj echo "$as_me:4437: result: $cf_cv_path_lastlog" >&5
4438 1.1 mrg echo "${ECHO_T}$cf_cv_path_lastlog" >&6
4439 1.1 mrg test $cf_cv_path_lastlog != no && cat >>confdefs.h <<\EOF
4440 1.1 mrg #define USE_LASTLOG 1
4441 1.1 mrg EOF
4442 1.1 mrg
4443 1.1.1.3 snj echo "$as_me:4443: checking for utmp implementation" >&5
4444 1.1 mrg echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
4445 1.1 mrg if test "${cf_cv_have_utmp+set}" = set; then
4446 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4447 1.1 mrg else
4448 1.1 mrg
4449 1.1 mrg cf_cv_have_utmp=no
4450 1.1 mrg for cf_header in utmpx utmp ; do
4451 1.1 mrg cf_utmp_includes="
4452 1.1 mrg #include <sys/types.h>
4453 1.1 mrg #include <${cf_header}.h>
4454 1.1 mrg #define getutent getutxent
4455 1.1 mrg #ifdef USE_LASTLOG
4456 1.1 mrg #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4457 1.1 mrg #endif
4458 1.1 mrg "
4459 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4460 1.1.1.3 snj #line 4460 "configure"
4461 1.1 mrg #include "confdefs.h"
4462 1.1 mrg $cf_utmp_includes
4463 1.1 mrg int
4464 1.1 mrg main ()
4465 1.1 mrg {
4466 1.1 mrg struct $cf_header x;
4467 1.1 mrg char *name = x.ut_name; /* utmp.h and compatible definitions */
4468 1.1 mrg
4469 1.1 mrg ;
4470 1.1 mrg return 0;
4471 1.1 mrg }
4472 1.1 mrg _ACEOF
4473 1.1 mrg rm -f conftest.$ac_objext
4474 1.1.1.3 snj if { (eval echo "$as_me:4474: \"$ac_compile\"") >&5
4475 1.1 mrg (eval $ac_compile) 2>&5
4476 1.1 mrg ac_status=$?
4477 1.1.1.3 snj echo "$as_me:4477: \$? = $ac_status" >&5
4478 1.1 mrg (exit $ac_status); } &&
4479 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4480 1.1.1.3 snj { (eval echo "$as_me:4480: \"$ac_try\"") >&5
4481 1.1 mrg (eval $ac_try) 2>&5
4482 1.1 mrg ac_status=$?
4483 1.1.1.3 snj echo "$as_me:4483: \$? = $ac_status" >&5
4484 1.1 mrg (exit $ac_status); }; }; then
4485 1.1 mrg cf_cv_have_utmp=$cf_header
4486 1.1 mrg break
4487 1.1 mrg else
4488 1.1 mrg echo "$as_me: failed program was:" >&5
4489 1.1 mrg cat conftest.$ac_ext >&5
4490 1.1 mrg
4491 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4492 1.1.1.3 snj #line 4492 "configure"
4493 1.1 mrg #include "confdefs.h"
4494 1.1 mrg $cf_utmp_includes
4495 1.1 mrg int
4496 1.1 mrg main ()
4497 1.1 mrg {
4498 1.1 mrg struct $cf_header x;
4499 1.1 mrg char *name = x.ut_user; /* utmpx.h must declare this */
4500 1.1 mrg
4501 1.1 mrg ;
4502 1.1 mrg return 0;
4503 1.1 mrg }
4504 1.1 mrg _ACEOF
4505 1.1 mrg rm -f conftest.$ac_objext
4506 1.1.1.3 snj if { (eval echo "$as_me:4506: \"$ac_compile\"") >&5
4507 1.1 mrg (eval $ac_compile) 2>&5
4508 1.1 mrg ac_status=$?
4509 1.1.1.3 snj echo "$as_me:4509: \$? = $ac_status" >&5
4510 1.1 mrg (exit $ac_status); } &&
4511 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4512 1.1.1.3 snj { (eval echo "$as_me:4512: \"$ac_try\"") >&5
4513 1.1 mrg (eval $ac_try) 2>&5
4514 1.1 mrg ac_status=$?
4515 1.1.1.3 snj echo "$as_me:4515: \$? = $ac_status" >&5
4516 1.1 mrg (exit $ac_status); }; }; then
4517 1.1 mrg cf_cv_have_utmp=$cf_header
4518 1.1 mrg break
4519 1.1 mrg
4520 1.1 mrg else
4521 1.1 mrg echo "$as_me: failed program was:" >&5
4522 1.1 mrg cat conftest.$ac_ext >&5
4523 1.1 mrg fi
4524 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4525 1.1 mrg fi
4526 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4527 1.1 mrg done
4528 1.1 mrg
4529 1.1 mrg fi
4530 1.1.1.3 snj echo "$as_me:4530: result: $cf_cv_have_utmp" >&5
4531 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp" >&6
4532 1.1 mrg
4533 1.1 mrg if test $cf_cv_have_utmp != no ; then
4534 1.1 mrg cat >>confdefs.h <<\EOF
4535 1.1 mrg #define HAVE_UTMP 1
4536 1.1 mrg EOF
4537 1.1 mrg
4538 1.1 mrg test $cf_cv_have_utmp = utmpx && cat >>confdefs.h <<\EOF
4539 1.1 mrg #define UTMPX_FOR_UTMP 1
4540 1.1 mrg EOF
4541 1.1 mrg
4542 1.1 mrg if test $cf_cv_have_utmp != no ; then
4543 1.1.1.3 snj echo "$as_me:4543: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
4544 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
4545 1.1 mrg if test "${cf_cv_have_utmp_ut_host+set}" = set; then
4546 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4547 1.1 mrg else
4548 1.1 mrg
4549 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4550 1.1.1.3 snj #line 4550 "configure"
4551 1.1 mrg #include "confdefs.h"
4552 1.1 mrg
4553 1.1 mrg #include <sys/types.h>
4554 1.1 mrg #include <${cf_cv_have_utmp}.h>
4555 1.1 mrg int
4556 1.1 mrg main ()
4557 1.1 mrg {
4558 1.1 mrg struct $cf_cv_have_utmp x; char *y = &x.ut_host[0]
4559 1.1 mrg ;
4560 1.1 mrg return 0;
4561 1.1 mrg }
4562 1.1 mrg _ACEOF
4563 1.1 mrg rm -f conftest.$ac_objext
4564 1.1.1.3 snj if { (eval echo "$as_me:4564: \"$ac_compile\"") >&5
4565 1.1 mrg (eval $ac_compile) 2>&5
4566 1.1 mrg ac_status=$?
4567 1.1.1.3 snj echo "$as_me:4567: \$? = $ac_status" >&5
4568 1.1 mrg (exit $ac_status); } &&
4569 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4570 1.1.1.3 snj { (eval echo "$as_me:4570: \"$ac_try\"") >&5
4571 1.1 mrg (eval $ac_try) 2>&5
4572 1.1 mrg ac_status=$?
4573 1.1.1.3 snj echo "$as_me:4573: \$? = $ac_status" >&5
4574 1.1 mrg (exit $ac_status); }; }; then
4575 1.1 mrg cf_cv_have_utmp_ut_host=yes
4576 1.1 mrg else
4577 1.1 mrg echo "$as_me: failed program was:" >&5
4578 1.1 mrg cat conftest.$ac_ext >&5
4579 1.1 mrg cf_cv_have_utmp_ut_host=no
4580 1.1 mrg fi
4581 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4582 1.1 mrg
4583 1.1 mrg fi
4584 1.1 mrg
4585 1.1.1.3 snj echo "$as_me:4585: result: $cf_cv_have_utmp_ut_host" >&5
4586 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
4587 1.1 mrg test $cf_cv_have_utmp_ut_host != no && cat >>confdefs.h <<\EOF
4588 1.1 mrg #define HAVE_UTMP_UT_HOST 1
4589 1.1 mrg EOF
4590 1.1 mrg
4591 1.1 mrg fi
4592 1.1 mrg
4593 1.1 mrg if test $cf_cv_have_utmp != no ; then
4594 1.1.1.3 snj echo "$as_me:4594: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
4595 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" >&6
4596 1.1 mrg if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
4597 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4598 1.1 mrg else
4599 1.1 mrg
4600 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4601 1.1.1.3 snj #line 4601 "configure"
4602 1.1 mrg #include "confdefs.h"
4603 1.1 mrg
4604 1.1 mrg #include <sys/types.h>
4605 1.1 mrg #include <${cf_cv_have_utmp}.h>
4606 1.1 mrg int
4607 1.1 mrg main ()
4608 1.1 mrg {
4609 1.1 mrg struct $cf_cv_have_utmp x; int y = x.ut_syslen
4610 1.1 mrg ;
4611 1.1 mrg return 0;
4612 1.1 mrg }
4613 1.1 mrg _ACEOF
4614 1.1 mrg rm -f conftest.$ac_objext
4615 1.1.1.3 snj if { (eval echo "$as_me:4615: \"$ac_compile\"") >&5
4616 1.1 mrg (eval $ac_compile) 2>&5
4617 1.1 mrg ac_status=$?
4618 1.1.1.3 snj echo "$as_me:4618: \$? = $ac_status" >&5
4619 1.1 mrg (exit $ac_status); } &&
4620 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4621 1.1.1.3 snj { (eval echo "$as_me:4621: \"$ac_try\"") >&5
4622 1.1 mrg (eval $ac_try) 2>&5
4623 1.1 mrg ac_status=$?
4624 1.1.1.3 snj echo "$as_me:4624: \$? = $ac_status" >&5
4625 1.1 mrg (exit $ac_status); }; }; then
4626 1.1 mrg cf_cv_have_utmp_ut_syslen=yes
4627 1.1 mrg else
4628 1.1 mrg echo "$as_me: failed program was:" >&5
4629 1.1 mrg cat conftest.$ac_ext >&5
4630 1.1 mrg cf_cv_have_utmp_ut_syslen=no
4631 1.1 mrg fi
4632 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4633 1.1 mrg
4634 1.1 mrg fi
4635 1.1 mrg
4636 1.1.1.3 snj echo "$as_me:4636: result: $cf_cv_have_utmp_ut_syslen" >&5
4637 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
4638 1.1 mrg test $cf_cv_have_utmp_ut_syslen != no && cat >>confdefs.h <<\EOF
4639 1.1 mrg #define HAVE_UTMP_UT_SYSLEN 1
4640 1.1 mrg EOF
4641 1.1 mrg
4642 1.1 mrg fi
4643 1.1 mrg
4644 1.1 mrg if test $cf_cv_have_utmp != no ; then
4645 1.1.1.3 snj echo "$as_me:4645: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
4646 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
4647 1.1 mrg if test "${cf_cv_have_utmp_ut_name+set}" = set; then
4648 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4649 1.1 mrg else
4650 1.1 mrg
4651 1.1 mrg cf_cv_have_utmp_ut_name=no
4652 1.1 mrg cf_utmp_includes="
4653 1.1 mrg #include <sys/types.h>
4654 1.1 mrg #include <${cf_cv_have_utmp}.h>
4655 1.1 mrg #define getutent getutxent
4656 1.1 mrg #ifdef USE_LASTLOG
4657 1.1 mrg #include <lastlog.h> /* may conflict with utmpx.h on Linux */
4658 1.1 mrg #endif
4659 1.1 mrg "
4660 1.1 mrg for cf_header in ut_name ut_user ; do
4661 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4662 1.1.1.3 snj #line 4662 "configure"
4663 1.1 mrg #include "confdefs.h"
4664 1.1 mrg $cf_utmp_includes
4665 1.1 mrg int
4666 1.1 mrg main ()
4667 1.1 mrg {
4668 1.1 mrg struct $cf_cv_have_utmp x;
4669 1.1 mrg char *name = x.$cf_header;
4670 1.1 mrg
4671 1.1 mrg ;
4672 1.1 mrg return 0;
4673 1.1 mrg }
4674 1.1 mrg _ACEOF
4675 1.1 mrg rm -f conftest.$ac_objext
4676 1.1.1.3 snj if { (eval echo "$as_me:4676: \"$ac_compile\"") >&5
4677 1.1 mrg (eval $ac_compile) 2>&5
4678 1.1 mrg ac_status=$?
4679 1.1.1.3 snj echo "$as_me:4679: \$? = $ac_status" >&5
4680 1.1 mrg (exit $ac_status); } &&
4681 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4682 1.1.1.3 snj { (eval echo "$as_me:4682: \"$ac_try\"") >&5
4683 1.1 mrg (eval $ac_try) 2>&5
4684 1.1 mrg ac_status=$?
4685 1.1.1.3 snj echo "$as_me:4685: \$? = $ac_status" >&5
4686 1.1 mrg (exit $ac_status); }; }; then
4687 1.1 mrg cf_cv_have_utmp_ut_name=$cf_header
4688 1.1 mrg break
4689 1.1 mrg else
4690 1.1 mrg echo "$as_me: failed program was:" >&5
4691 1.1 mrg cat conftest.$ac_ext >&5
4692 1.1 mrg fi
4693 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4694 1.1 mrg done
4695 1.1 mrg
4696 1.1 mrg fi
4697 1.1.1.3 snj echo "$as_me:4697: result: $cf_cv_have_utmp_ut_name" >&5
4698 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
4699 1.1 mrg
4700 1.1 mrg case $cf_cv_have_utmp_ut_name in #(vi
4701 1.1 mrg no) #(vi
4702 1.1.1.3 snj { { echo "$as_me:4702: error: Cannot find declaration for ut.ut_name" >&5
4703 1.1 mrg echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
4704 1.1 mrg { (exit 1); exit 1; }; }
4705 1.1 mrg ;;
4706 1.1 mrg ut_user)
4707 1.1 mrg cat >>confdefs.h <<\EOF
4708 1.1 mrg #define ut_name ut_user
4709 1.1 mrg EOF
4710 1.1 mrg
4711 1.1 mrg ;;
4712 1.1 mrg esac
4713 1.1 mrg fi
4714 1.1 mrg
4715 1.1 mrg if test $cf_cv_have_utmp != no ; then
4716 1.1.1.3 snj echo "$as_me:4716: checking for exit-status in $cf_cv_have_utmp" >&5
4717 1.1 mrg echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
4718 1.1 mrg if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
4719 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4720 1.1 mrg else
4721 1.1 mrg
4722 1.1 mrg for cf_result in \
4723 1.1 mrg ut_exit.__e_exit \
4724 1.1 mrg ut_exit.e_exit \
4725 1.1 mrg ut_exit.ut_e_exit \
4726 1.1 mrg ut_exit.ut_exit
4727 1.1 mrg do
4728 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4729 1.1.1.3 snj #line 4729 "configure"
4730 1.1 mrg #include "confdefs.h"
4731 1.1 mrg
4732 1.1 mrg #include <sys/types.h>
4733 1.1 mrg #include <${cf_cv_have_utmp}.h>
4734 1.1 mrg int
4735 1.1 mrg main ()
4736 1.1 mrg {
4737 1.1 mrg struct $cf_cv_have_utmp x; long y = x.$cf_result = 0
4738 1.1 mrg ;
4739 1.1 mrg return 0;
4740 1.1 mrg }
4741 1.1 mrg _ACEOF
4742 1.1 mrg rm -f conftest.$ac_objext
4743 1.1.1.3 snj if { (eval echo "$as_me:4743: \"$ac_compile\"") >&5
4744 1.1 mrg (eval $ac_compile) 2>&5
4745 1.1 mrg ac_status=$?
4746 1.1.1.3 snj echo "$as_me:4746: \$? = $ac_status" >&5
4747 1.1 mrg (exit $ac_status); } &&
4748 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4749 1.1.1.3 snj { (eval echo "$as_me:4749: \"$ac_try\"") >&5
4750 1.1 mrg (eval $ac_try) 2>&5
4751 1.1 mrg ac_status=$?
4752 1.1.1.3 snj echo "$as_me:4752: \$? = $ac_status" >&5
4753 1.1 mrg (exit $ac_status); }; }; then
4754 1.1 mrg cf_cv_have_utmp_ut_xstatus=$cf_result
4755 1.1 mrg break
4756 1.1 mrg else
4757 1.1 mrg echo "$as_me: failed program was:" >&5
4758 1.1 mrg cat conftest.$ac_ext >&5
4759 1.1 mrg cf_cv_have_utmp_ut_xstatus=no
4760 1.1 mrg fi
4761 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4762 1.1 mrg done
4763 1.1 mrg
4764 1.1 mrg fi
4765 1.1.1.3 snj echo "$as_me:4765: result: $cf_cv_have_utmp_ut_xstatus" >&5
4766 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
4767 1.1 mrg if test $cf_cv_have_utmp_ut_xstatus != no ; then
4768 1.1 mrg cat >>confdefs.h <<\EOF
4769 1.1 mrg #define HAVE_UTMP_UT_XSTATUS 1
4770 1.1 mrg EOF
4771 1.1 mrg
4772 1.1 mrg cat >>confdefs.h <<EOF
4773 1.1 mrg #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
4774 1.1 mrg EOF
4775 1.1 mrg
4776 1.1 mrg fi
4777 1.1 mrg fi
4778 1.1 mrg
4779 1.1 mrg if test $cf_cv_have_utmp != no ; then
4780 1.1.1.3 snj echo "$as_me:4780: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
4781 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >&6
4782 1.1 mrg if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
4783 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4784 1.1 mrg else
4785 1.1 mrg
4786 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4787 1.1.1.3 snj #line 4787 "configure"
4788 1.1 mrg #include "confdefs.h"
4789 1.1 mrg
4790 1.1 mrg #include <sys/types.h>
4791 1.1 mrg #include <${cf_cv_have_utmp}.h>
4792 1.1 mrg int
4793 1.1 mrg main ()
4794 1.1 mrg {
4795 1.1 mrg struct $cf_cv_have_utmp x; long y = x.ut_xtime = 0
4796 1.1 mrg ;
4797 1.1 mrg return 0;
4798 1.1 mrg }
4799 1.1 mrg _ACEOF
4800 1.1 mrg rm -f conftest.$ac_objext
4801 1.1.1.3 snj if { (eval echo "$as_me:4801: \"$ac_compile\"") >&5
4802 1.1 mrg (eval $ac_compile) 2>&5
4803 1.1 mrg ac_status=$?
4804 1.1.1.3 snj echo "$as_me:4804: \$? = $ac_status" >&5
4805 1.1 mrg (exit $ac_status); } &&
4806 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4807 1.1.1.3 snj { (eval echo "$as_me:4807: \"$ac_try\"") >&5
4808 1.1 mrg (eval $ac_try) 2>&5
4809 1.1 mrg ac_status=$?
4810 1.1.1.3 snj echo "$as_me:4810: \$? = $ac_status" >&5
4811 1.1 mrg (exit $ac_status); }; }; then
4812 1.1 mrg cf_cv_have_utmp_ut_xtime=yes
4813 1.1 mrg else
4814 1.1 mrg echo "$as_me: failed program was:" >&5
4815 1.1 mrg cat conftest.$ac_ext >&5
4816 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4817 1.1.1.3 snj #line 4817 "configure"
4818 1.1 mrg #include "confdefs.h"
4819 1.1 mrg
4820 1.1 mrg #include <sys/types.h>
4821 1.1 mrg #include <${cf_cv_have_utmp}.h>
4822 1.1 mrg int
4823 1.1 mrg main ()
4824 1.1 mrg {
4825 1.1 mrg struct $cf_cv_have_utmp x; long y = x.ut_tv.tv_sec
4826 1.1 mrg ;
4827 1.1 mrg return 0;
4828 1.1 mrg }
4829 1.1 mrg _ACEOF
4830 1.1 mrg rm -f conftest.$ac_objext
4831 1.1.1.3 snj if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5
4832 1.1 mrg (eval $ac_compile) 2>&5
4833 1.1 mrg ac_status=$?
4834 1.1.1.3 snj echo "$as_me:4834: \$? = $ac_status" >&5
4835 1.1 mrg (exit $ac_status); } &&
4836 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4837 1.1.1.3 snj { (eval echo "$as_me:4837: \"$ac_try\"") >&5
4838 1.1 mrg (eval $ac_try) 2>&5
4839 1.1 mrg ac_status=$?
4840 1.1.1.3 snj echo "$as_me:4840: \$? = $ac_status" >&5
4841 1.1 mrg (exit $ac_status); }; }; then
4842 1.1 mrg cf_cv_have_utmp_ut_xtime=define
4843 1.1 mrg else
4844 1.1 mrg echo "$as_me: failed program was:" >&5
4845 1.1 mrg cat conftest.$ac_ext >&5
4846 1.1 mrg cf_cv_have_utmp_ut_xtime=no
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 rm -f conftest.$ac_objext conftest.$ac_ext
4852 1.1 mrg
4853 1.1 mrg fi
4854 1.1.1.3 snj echo "$as_me:4854: result: $cf_cv_have_utmp_ut_xtime" >&5
4855 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
4856 1.1 mrg if test $cf_cv_have_utmp_ut_xtime != no ; then
4857 1.1 mrg cat >>confdefs.h <<\EOF
4858 1.1 mrg #define HAVE_UTMP_UT_XTIME 1
4859 1.1 mrg EOF
4860 1.1 mrg
4861 1.1 mrg if test $cf_cv_have_utmp_ut_xtime = define ; then
4862 1.1 mrg cat >>confdefs.h <<\EOF
4863 1.1 mrg #define ut_xtime ut_tv.tv_sec
4864 1.1 mrg EOF
4865 1.1 mrg
4866 1.1 mrg fi
4867 1.1 mrg fi
4868 1.1 mrg fi
4869 1.1 mrg
4870 1.1 mrg if test $cf_cv_have_utmp != no ; then
4871 1.1.1.3 snj echo "$as_me:4871: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
4872 1.1 mrg echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
4873 1.1 mrg if test "${cf_cv_have_utmp_ut_session+set}" = set; then
4874 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4875 1.1 mrg else
4876 1.1 mrg
4877 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4878 1.1.1.3 snj #line 4878 "configure"
4879 1.1 mrg #include "confdefs.h"
4880 1.1 mrg
4881 1.1 mrg #include <sys/types.h>
4882 1.1 mrg #include <${cf_cv_have_utmp}.h>
4883 1.1 mrg int
4884 1.1 mrg main ()
4885 1.1 mrg {
4886 1.1 mrg struct $cf_cv_have_utmp x; long y = x.ut_session
4887 1.1 mrg ;
4888 1.1 mrg return 0;
4889 1.1 mrg }
4890 1.1 mrg _ACEOF
4891 1.1 mrg rm -f conftest.$ac_objext
4892 1.1.1.3 snj if { (eval echo "$as_me:4892: \"$ac_compile\"") >&5
4893 1.1 mrg (eval $ac_compile) 2>&5
4894 1.1 mrg ac_status=$?
4895 1.1.1.3 snj echo "$as_me:4895: \$? = $ac_status" >&5
4896 1.1 mrg (exit $ac_status); } &&
4897 1.1 mrg { ac_try='test -s conftest.$ac_objext'
4898 1.1.1.3 snj { (eval echo "$as_me:4898: \"$ac_try\"") >&5
4899 1.1 mrg (eval $ac_try) 2>&5
4900 1.1 mrg ac_status=$?
4901 1.1.1.3 snj echo "$as_me:4901: \$? = $ac_status" >&5
4902 1.1 mrg (exit $ac_status); }; }; then
4903 1.1 mrg cf_cv_have_utmp_ut_session=yes
4904 1.1 mrg else
4905 1.1 mrg echo "$as_me: failed program was:" >&5
4906 1.1 mrg cat conftest.$ac_ext >&5
4907 1.1 mrg cf_cv_have_utmp_ut_session=no
4908 1.1 mrg fi
4909 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
4910 1.1 mrg
4911 1.1 mrg fi
4912 1.1.1.3 snj echo "$as_me:4912: result: $cf_cv_have_utmp_ut_session" >&5
4913 1.1 mrg echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
4914 1.1 mrg if test $cf_cv_have_utmp_ut_session != no ; then
4915 1.1 mrg cat >>confdefs.h <<\EOF
4916 1.1 mrg #define HAVE_UTMP_UT_SESSION 1
4917 1.1 mrg EOF
4918 1.1 mrg
4919 1.1 mrg fi
4920 1.1 mrg fi
4921 1.1 mrg
4922 1.1.1.3 snj echo "$as_me:4922: checking if $cf_cv_have_utmp is SYSV flavor" >&5
4923 1.1 mrg echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
4924 1.1 mrg if test "${cf_cv_sysv_utmp+set}" = set; then
4925 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4926 1.1 mrg else
4927 1.1 mrg
4928 1.1 mrg test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
4929 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4930 1.1.1.3 snj #line 4930 "configure"
4931 1.1 mrg #include "confdefs.h"
4932 1.1 mrg
4933 1.1 mrg #include <sys/types.h>
4934 1.1 mrg #include <${cf_cv_have_utmp}.h>
4935 1.1 mrg int
4936 1.1 mrg main ()
4937 1.1 mrg {
4938 1.1 mrg
4939 1.1 mrg struct $cf_cv_have_utmp x;
4940 1.1 mrg set${cf_prefix}ent ();
4941 1.1 mrg get${cf_prefix}id(&x);
4942 1.1 mrg put${cf_prefix}line(&x);
4943 1.1 mrg end${cf_prefix}ent();
4944 1.1 mrg ;
4945 1.1 mrg return 0;
4946 1.1 mrg }
4947 1.1 mrg _ACEOF
4948 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
4949 1.1.1.3 snj if { (eval echo "$as_me:4949: \"$ac_link\"") >&5
4950 1.1 mrg (eval $ac_link) 2>&5
4951 1.1 mrg ac_status=$?
4952 1.1.1.3 snj echo "$as_me:4952: \$? = $ac_status" >&5
4953 1.1 mrg (exit $ac_status); } &&
4954 1.1 mrg { ac_try='test -s conftest$ac_exeext'
4955 1.1.1.3 snj { (eval echo "$as_me:4955: \"$ac_try\"") >&5
4956 1.1 mrg (eval $ac_try) 2>&5
4957 1.1 mrg ac_status=$?
4958 1.1.1.3 snj echo "$as_me:4958: \$? = $ac_status" >&5
4959 1.1 mrg (exit $ac_status); }; }; then
4960 1.1 mrg cf_cv_sysv_utmp=yes
4961 1.1 mrg else
4962 1.1 mrg echo "$as_me: failed program was:" >&5
4963 1.1 mrg cat conftest.$ac_ext >&5
4964 1.1 mrg cf_cv_sysv_utmp=no
4965 1.1 mrg fi
4966 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4967 1.1 mrg
4968 1.1 mrg fi
4969 1.1.1.3 snj echo "$as_me:4969: result: $cf_cv_sysv_utmp" >&5
4970 1.1 mrg echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
4971 1.1 mrg test $cf_cv_sysv_utmp = yes && cat >>confdefs.h <<\EOF
4972 1.1 mrg #define USE_SYSV_UTMP 1
4973 1.1 mrg EOF
4974 1.1 mrg
4975 1.1 mrg fi
4976 1.1 mrg
4977 1.1 mrg for ac_header in lastlog.h
4978 1.1 mrg do
4979 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 1.1.1.3 snj echo "$as_me:4980: checking for $ac_header" >&5
4981 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4982 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
4983 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
4984 1.1 mrg else
4985 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
4986 1.1.1.3 snj #line 4986 "configure"
4987 1.1 mrg #include "confdefs.h"
4988 1.1 mrg #include <$ac_header>
4989 1.1 mrg _ACEOF
4990 1.1.1.3 snj if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5
4991 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 1.1 mrg ac_status=$?
4993 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
4994 1.1 mrg rm -f conftest.er1
4995 1.1 mrg cat conftest.err >&5
4996 1.1.1.3 snj echo "$as_me:4996: \$? = $ac_status" >&5
4997 1.1 mrg (exit $ac_status); } >/dev/null; then
4998 1.1 mrg if test -s conftest.err; then
4999 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
5000 1.1 mrg else
5001 1.1 mrg ac_cpp_err=
5002 1.1 mrg fi
5003 1.1 mrg else
5004 1.1 mrg ac_cpp_err=yes
5005 1.1 mrg fi
5006 1.1 mrg if test -z "$ac_cpp_err"; then
5007 1.1 mrg eval "$as_ac_Header=yes"
5008 1.1 mrg else
5009 1.1 mrg echo "$as_me: failed program was:" >&5
5010 1.1 mrg cat conftest.$ac_ext >&5
5011 1.1 mrg eval "$as_ac_Header=no"
5012 1.1 mrg fi
5013 1.1 mrg rm -f conftest.err conftest.$ac_ext
5014 1.1 mrg fi
5015 1.1.1.3 snj echo "$as_me:5015: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5017 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
5018 1.1 mrg cat >>confdefs.h <<EOF
5019 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5020 1.1 mrg EOF
5021 1.1 mrg
5022 1.1 mrg fi
5023 1.1 mrg done
5024 1.1 mrg
5025 1.1.1.3 snj echo "$as_me:5025: checking for struct lastlog" >&5
5026 1.1 mrg echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
5027 1.1 mrg if test "${cf_cv_struct_lastlog+set}" = set; then
5028 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5029 1.1 mrg else
5030 1.1 mrg
5031 1.1 mrg if test "$cross_compiling" = yes; then
5032 1.1 mrg
5033 1.1 mrg cf_cv_struct_lastlog=unknown
5034 1.1 mrg else
5035 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5036 1.1.1.3 snj #line 5036 "configure"
5037 1.1 mrg #include "confdefs.h"
5038 1.1 mrg
5039 1.1 mrg #include <sys/types.h>
5040 1.1 mrg #include <time.h>
5041 1.1 mrg #include <lastlog.h>
5042 1.1 mrg
5043 1.1 mrg int main()
5044 1.1 mrg {
5045 1.1 mrg struct lastlog data;
5046 1.1 mrg return (sizeof(data.ll_time) != sizeof(time_t));
5047 1.1 mrg }
5048 1.1 mrg _ACEOF
5049 1.1 mrg rm -f conftest$ac_exeext
5050 1.1.1.3 snj if { (eval echo "$as_me:5050: \"$ac_link\"") >&5
5051 1.1 mrg (eval $ac_link) 2>&5
5052 1.1 mrg ac_status=$?
5053 1.1.1.3 snj echo "$as_me:5053: \$? = $ac_status" >&5
5054 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5055 1.1.1.3 snj { (eval echo "$as_me:5055: \"$ac_try\"") >&5
5056 1.1 mrg (eval $ac_try) 2>&5
5057 1.1 mrg ac_status=$?
5058 1.1.1.3 snj echo "$as_me:5058: \$? = $ac_status" >&5
5059 1.1 mrg (exit $ac_status); }; }; then
5060 1.1 mrg
5061 1.1 mrg cf_cv_struct_lastlog=yes
5062 1.1 mrg else
5063 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
5064 1.1 mrg echo "$as_me: failed program was:" >&5
5065 1.1 mrg cat conftest.$ac_ext >&5
5066 1.1 mrg
5067 1.1 mrg cf_cv_struct_lastlog=no
5068 1.1 mrg fi
5069 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5070 1.1 mrg fi
5071 1.1 mrg fi
5072 1.1.1.3 snj echo "$as_me:5072: result: $cf_cv_struct_lastlog" >&5
5073 1.1 mrg echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
5074 1.1 mrg
5075 1.1 mrg test $cf_cv_struct_lastlog != no && cat >>confdefs.h <<\EOF
5076 1.1 mrg #define USE_STRUCT_LASTLOG 1
5077 1.1 mrg EOF
5078 1.1 mrg
5079 1.1 mrg for ac_header in \
5080 1.1 mrg sys/param.h \
5081 1.1 mrg
5082 1.1 mrg do
5083 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5084 1.1.1.3 snj echo "$as_me:5084: checking for $ac_header" >&5
5085 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5086 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
5087 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5088 1.1 mrg else
5089 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5090 1.1.1.3 snj #line 5090 "configure"
5091 1.1 mrg #include "confdefs.h"
5092 1.1 mrg #include <$ac_header>
5093 1.1 mrg _ACEOF
5094 1.1.1.3 snj if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 1.1 mrg ac_status=$?
5097 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
5098 1.1 mrg rm -f conftest.er1
5099 1.1 mrg cat conftest.err >&5
5100 1.1.1.3 snj echo "$as_me:5100: \$? = $ac_status" >&5
5101 1.1 mrg (exit $ac_status); } >/dev/null; then
5102 1.1 mrg if test -s conftest.err; then
5103 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
5104 1.1 mrg else
5105 1.1 mrg ac_cpp_err=
5106 1.1 mrg fi
5107 1.1 mrg else
5108 1.1 mrg ac_cpp_err=yes
5109 1.1 mrg fi
5110 1.1 mrg if test -z "$ac_cpp_err"; then
5111 1.1 mrg eval "$as_ac_Header=yes"
5112 1.1 mrg else
5113 1.1 mrg echo "$as_me: failed program was:" >&5
5114 1.1 mrg cat conftest.$ac_ext >&5
5115 1.1 mrg eval "$as_ac_Header=no"
5116 1.1 mrg fi
5117 1.1 mrg rm -f conftest.err conftest.$ac_ext
5118 1.1 mrg fi
5119 1.1.1.3 snj echo "$as_me:5119: result: `eval echo '${'$as_ac_Header'}'`" >&5
5120 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5121 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
5122 1.1 mrg cat >>confdefs.h <<EOF
5123 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5124 1.1 mrg EOF
5125 1.1 mrg
5126 1.1 mrg fi
5127 1.1 mrg done
5128 1.1 mrg
5129 1.1.1.3 snj echo "$as_me:5129: checking if POSIX saved-ids are supported" >&5
5130 1.1 mrg echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
5131 1.1 mrg if test "${cf_cv_posix_saved_ids+set}" = set; then
5132 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5133 1.1 mrg else
5134 1.1 mrg
5135 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5136 1.1.1.3 snj #line 5136 "configure"
5137 1.1 mrg #include "confdefs.h"
5138 1.1 mrg
5139 1.1 mrg #include <unistd.h>
5140 1.1 mrg #ifdef HAVE_SYS_PARAM_H
5141 1.1 mrg #include <sys/param.h> /* this may define "BSD" */
5142 1.1 mrg #endif
5143 1.1 mrg
5144 1.1 mrg int
5145 1.1 mrg main ()
5146 1.1 mrg {
5147 1.1 mrg
5148 1.1 mrg #if defined(_POSIX_SAVED_IDS) && (_POSIX_SAVED_IDS > 0)
5149 1.1 mrg void *p = (void *) seteuid;
5150 1.1 mrg int x = seteuid(geteuid());
5151 1.1 mrg #elif defined(BSD) && (BSD >= 199103)
5152 1.1 mrg /* The BSD's may implement the runtime check - and it fails.
5153 1.1 mrg * However, saved-ids work almost like POSIX (close enough for most uses).
5154 1.1 mrg */
5155 1.1 mrg #else
5156 1.1 mrg make an error
5157 1.1 mrg #endif
5158 1.1 mrg
5159 1.1 mrg ;
5160 1.1 mrg return 0;
5161 1.1 mrg }
5162 1.1 mrg _ACEOF
5163 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
5164 1.1.1.3 snj if { (eval echo "$as_me:5164: \"$ac_link\"") >&5
5165 1.1 mrg (eval $ac_link) 2>&5
5166 1.1 mrg ac_status=$?
5167 1.1.1.3 snj echo "$as_me:5167: \$? = $ac_status" >&5
5168 1.1 mrg (exit $ac_status); } &&
5169 1.1 mrg { ac_try='test -s conftest$ac_exeext'
5170 1.1.1.3 snj { (eval echo "$as_me:5170: \"$ac_try\"") >&5
5171 1.1 mrg (eval $ac_try) 2>&5
5172 1.1 mrg ac_status=$?
5173 1.1.1.3 snj echo "$as_me:5173: \$? = $ac_status" >&5
5174 1.1 mrg (exit $ac_status); }; }; then
5175 1.1 mrg cf_cv_posix_saved_ids=yes
5176 1.1 mrg
5177 1.1 mrg else
5178 1.1 mrg echo "$as_me: failed program was:" >&5
5179 1.1 mrg cat conftest.$ac_ext >&5
5180 1.1 mrg
5181 1.1 mrg if test "$cross_compiling" = yes; then
5182 1.1 mrg cf_cv_posix_saved_ids=unknown
5183 1.1 mrg else
5184 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5185 1.1.1.3 snj #line 5185 "configure"
5186 1.1 mrg #include "confdefs.h"
5187 1.1 mrg
5188 1.1 mrg #ifdef HAVE_STDLIB_H
5189 1.1 mrg #include <stdlib.h>
5190 1.1 mrg #endif
5191 1.1 mrg #include <unistd.h>
5192 1.1 mrg int main()
5193 1.1 mrg {
5194 1.1 mrg void *p = (void *) seteuid;
5195 1.1 mrg long code = sysconf(_SC_SAVED_IDS);
5196 1.1 mrg ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
5197 1.1 mrg }
5198 1.1 mrg _ACEOF
5199 1.1 mrg rm -f conftest$ac_exeext
5200 1.1.1.3 snj if { (eval echo "$as_me:5200: \"$ac_link\"") >&5
5201 1.1 mrg (eval $ac_link) 2>&5
5202 1.1 mrg ac_status=$?
5203 1.1.1.3 snj echo "$as_me:5203: \$? = $ac_status" >&5
5204 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5205 1.1.1.3 snj { (eval echo "$as_me:5205: \"$ac_try\"") >&5
5206 1.1 mrg (eval $ac_try) 2>&5
5207 1.1 mrg ac_status=$?
5208 1.1.1.3 snj echo "$as_me:5208: \$? = $ac_status" >&5
5209 1.1 mrg (exit $ac_status); }; }; then
5210 1.1 mrg cf_cv_posix_saved_ids=yes
5211 1.1 mrg else
5212 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
5213 1.1 mrg echo "$as_me: failed program was:" >&5
5214 1.1 mrg cat conftest.$ac_ext >&5
5215 1.1 mrg cf_cv_posix_saved_ids=no
5216 1.1 mrg fi
5217 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5218 1.1 mrg fi
5219 1.1 mrg
5220 1.1 mrg fi
5221 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5222 1.1 mrg
5223 1.1 mrg fi
5224 1.1.1.3 snj echo "$as_me:5224: result: $cf_cv_posix_saved_ids" >&5
5225 1.1 mrg echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
5226 1.1 mrg
5227 1.1 mrg test "$cf_cv_posix_saved_ids" = yes && cat >>confdefs.h <<\EOF
5228 1.1 mrg #define HAVE_POSIX_SAVED_IDS 1
5229 1.1 mrg EOF
5230 1.1 mrg
5231 1.1 mrg # compute a reasonable value for $TERM to give tgetent(), since we may be
5232 1.1 mrg # running in 'screen', which sets $TERMCAP to a specific entry that is not
5233 1.1 mrg # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
5234 1.1 mrg # discard $TERMCAP.
5235 1.1 mrg cf_TERMVAR=vt100
5236 1.1 mrg test -n "$TERMCAP" && cf_TERMVAR="$TERM"
5237 1.1 mrg test -z "$cf_TERMVAR" && cf_TERMVAR=vt100
5238 1.1 mrg
5239 1.1.1.3 snj echo "$as_me:5239: checking if we want full tgetent function" >&5
5240 1.1 mrg echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
5241 1.1 mrg
5242 1.1 mrg # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
5243 1.1 mrg if test "${enable_full_tgetent+set}" = set; then
5244 1.1 mrg enableval="$enable_full_tgetent"
5245 1.1 mrg test "$enableval" != no && enableval=yes
5246 1.1 mrg if test "$enableval" != "yes" ; then
5247 1.1 mrg cf_full_tgetent=no
5248 1.1 mrg else
5249 1.1 mrg cf_full_tgetent=yes
5250 1.1 mrg fi
5251 1.1 mrg else
5252 1.1 mrg enableval=yes
5253 1.1 mrg cf_full_tgetent=yes
5254 1.1 mrg
5255 1.1 mrg fi;
5256 1.1.1.3 snj echo "$as_me:5256: result: $cf_full_tgetent" >&5
5257 1.1 mrg echo "${ECHO_T}$cf_full_tgetent" >&6
5258 1.1 mrg
5259 1.1 mrg if test "$cf_full_tgetent" = yes ; then
5260 1.1 mrg cf_test_message="full tgetent"
5261 1.1 mrg else
5262 1.1 mrg cf_test_message="tgetent"
5263 1.1 mrg fi
5264 1.1 mrg
5265 1.1.1.3 snj echo "$as_me:5265: checking for $cf_test_message function" >&5
5266 1.1 mrg echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
5267 1.1 mrg if test "${cf_cv_lib_tgetent+set}" = set; then
5268 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5269 1.1 mrg else
5270 1.1 mrg
5271 1.1 mrg cf_save_LIBS="$LIBS"
5272 1.1 mrg cf_cv_lib_tgetent=no
5273 1.1 mrg if test "$cf_full_tgetent" = yes ; then
5274 1.1 mrg cf_TERMLIB="termcap termlib ncurses curses"
5275 1.1 mrg cf_TERMTST="buffer[0] == 0"
5276 1.1 mrg else
5277 1.1 mrg cf_TERMLIB="termlib ncurses curses"
5278 1.1 mrg cf_TERMTST="0"
5279 1.1 mrg fi
5280 1.1 mrg for cf_termlib in '' $cf_TERMLIB ; do
5281 1.1 mrg LIBS="$cf_save_LIBS"
5282 1.1 mrg test -n "$cf_termlib" && LIBS="$LIBS -l$cf_termlib"
5283 1.1 mrg if test "$cross_compiling" = yes; then
5284 1.1 mrg echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_termlib" 1>&5
5285 1.1 mrg else
5286 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5287 1.1.1.3 snj #line 5287 "configure"
5288 1.1 mrg #include "confdefs.h"
5289 1.1 mrg
5290 1.1 mrg /* terminfo implementations ignore the buffer argument, making it useless for
5291 1.1 mrg * the xterm application, which uses this information to make a new TERMCAP
5292 1.1 mrg * environment variable.
5293 1.1 mrg */
5294 1.1 mrg int main()
5295 1.1 mrg {
5296 1.1 mrg char buffer[1024];
5297 1.1 mrg buffer[0] = 0;
5298 1.1 mrg tgetent(buffer, "$cf_TERMVAR");
5299 1.1 mrg ${cf_cv_main_return:-return} ($cf_TERMTST); }
5300 1.1 mrg _ACEOF
5301 1.1 mrg rm -f conftest$ac_exeext
5302 1.1.1.3 snj if { (eval echo "$as_me:5302: \"$ac_link\"") >&5
5303 1.1 mrg (eval $ac_link) 2>&5
5304 1.1 mrg ac_status=$?
5305 1.1.1.3 snj echo "$as_me:5305: \$? = $ac_status" >&5
5306 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5307 1.1.1.3 snj { (eval echo "$as_me:5307: \"$ac_try\"") >&5
5308 1.1 mrg (eval $ac_try) 2>&5
5309 1.1 mrg ac_status=$?
5310 1.1.1.3 snj echo "$as_me:5310: \$? = $ac_status" >&5
5311 1.1 mrg (exit $ac_status); }; }; then
5312 1.1 mrg echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
5313 1.1 mrg if test -n "$cf_termlib" ; then
5314 1.1 mrg cf_cv_lib_tgetent="-l$cf_termlib"
5315 1.1 mrg else
5316 1.1 mrg cf_cv_lib_tgetent=yes
5317 1.1 mrg fi
5318 1.1 mrg break
5319 1.1 mrg else
5320 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
5321 1.1 mrg echo "$as_me: failed program was:" >&5
5322 1.1 mrg cat conftest.$ac_ext >&5
5323 1.1 mrg echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
5324 1.1 mrg fi
5325 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5326 1.1 mrg fi
5327 1.1 mrg done
5328 1.1 mrg LIBS="$cf_save_LIBS"
5329 1.1 mrg
5330 1.1 mrg fi
5331 1.1.1.3 snj echo "$as_me:5331: result: $cf_cv_lib_tgetent" >&5
5332 1.1 mrg echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
5333 1.1 mrg
5334 1.1 mrg # If we found a working tgetent(), set LIBS and check for termcap.h.
5335 1.1 mrg # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
5336 1.1 mrg # not have side effects other than setting the cache variable, because
5337 1.1 mrg # they are not executed when a cached value exists.)
5338 1.1 mrg if test "$cf_cv_lib_tgetent" != no ; then
5339 1.1 mrg test "$cf_cv_lib_tgetent" != yes && LIBS="$LIBS $cf_cv_lib_tgetent"
5340 1.1 mrg cat >>confdefs.h <<\EOF
5341 1.1 mrg #define USE_TERMCAP 1
5342 1.1 mrg EOF
5343 1.1 mrg
5344 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5345 1.1.1.3 snj #line 5345 "configure"
5346 1.1 mrg #include "confdefs.h"
5347 1.1 mrg
5348 1.1 mrg #include <termcap.h>
5349 1.1 mrg int
5350 1.1 mrg main ()
5351 1.1 mrg {
5352 1.1 mrg
5353 1.1 mrg #ifdef NCURSES_VERSION
5354 1.1 mrg make an error
5355 1.1 mrg #endif
5356 1.1 mrg ;
5357 1.1 mrg return 0;
5358 1.1 mrg }
5359 1.1 mrg _ACEOF
5360 1.1 mrg rm -f conftest.$ac_objext
5361 1.1.1.3 snj if { (eval echo "$as_me:5361: \"$ac_compile\"") >&5
5362 1.1 mrg (eval $ac_compile) 2>&5
5363 1.1 mrg ac_status=$?
5364 1.1.1.3 snj echo "$as_me:5364: \$? = $ac_status" >&5
5365 1.1 mrg (exit $ac_status); } &&
5366 1.1 mrg { ac_try='test -s conftest.$ac_objext'
5367 1.1.1.3 snj { (eval echo "$as_me:5367: \"$ac_try\"") >&5
5368 1.1 mrg (eval $ac_try) 2>&5
5369 1.1 mrg ac_status=$?
5370 1.1.1.3 snj echo "$as_me:5370: \$? = $ac_status" >&5
5371 1.1 mrg (exit $ac_status); }; }; then
5372 1.1 mrg cat >>confdefs.h <<\EOF
5373 1.1 mrg #define HAVE_TERMCAP_H 1
5374 1.1 mrg EOF
5375 1.1 mrg
5376 1.1 mrg else
5377 1.1 mrg echo "$as_me: failed program was:" >&5
5378 1.1 mrg cat conftest.$ac_ext >&5
5379 1.1 mrg fi
5380 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
5381 1.1 mrg else
5382 1.1 mrg # If we didn't find a tgetent() that supports the buffer
5383 1.1 mrg # argument, look again to see whether we can find even
5384 1.1 mrg # a crippled one. A crippled tgetent() is still useful to
5385 1.1 mrg # validate values for the TERM environment variable given to
5386 1.1 mrg # child processes.
5387 1.1.1.3 snj echo "$as_me:5387: checking for partial tgetent function" >&5
5388 1.1 mrg echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
5389 1.1 mrg if test "${cf_cv_lib_part_tgetent+set}" = set; then
5390 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5391 1.1 mrg else
5392 1.1 mrg
5393 1.1 mrg cf_cv_lib_part_tgetent=no
5394 1.1 mrg for cf_termlib in $cf_TERMLIB ; do
5395 1.1 mrg LIBS="$cf_save_LIBS -l$cf_termlib"
5396 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5397 1.1.1.3 snj #line 5397 "configure"
5398 1.1 mrg #include "confdefs.h"
5399 1.1 mrg
5400 1.1 mrg int
5401 1.1 mrg main ()
5402 1.1 mrg {
5403 1.1 mrg tgetent(0, "$cf_TERMVAR")
5404 1.1 mrg ;
5405 1.1 mrg return 0;
5406 1.1 mrg }
5407 1.1 mrg _ACEOF
5408 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
5409 1.1.1.3 snj if { (eval echo "$as_me:5409: \"$ac_link\"") >&5
5410 1.1 mrg (eval $ac_link) 2>&5
5411 1.1 mrg ac_status=$?
5412 1.1.1.3 snj echo "$as_me:5412: \$? = $ac_status" >&5
5413 1.1 mrg (exit $ac_status); } &&
5414 1.1 mrg { ac_try='test -s conftest$ac_exeext'
5415 1.1.1.3 snj { (eval echo "$as_me:5415: \"$ac_try\"") >&5
5416 1.1 mrg (eval $ac_try) 2>&5
5417 1.1 mrg ac_status=$?
5418 1.1.1.3 snj echo "$as_me:5418: \$? = $ac_status" >&5
5419 1.1 mrg (exit $ac_status); }; }; then
5420 1.1 mrg echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
5421 1.1 mrg cf_cv_lib_part_tgetent="-l$cf_termlib"
5422 1.1 mrg break
5423 1.1 mrg else
5424 1.1 mrg echo "$as_me: failed program was:" >&5
5425 1.1 mrg cat conftest.$ac_ext >&5
5426 1.1 mrg fi
5427 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5428 1.1 mrg done
5429 1.1 mrg LIBS="$cf_save_LIBS"
5430 1.1 mrg
5431 1.1 mrg fi
5432 1.1.1.3 snj echo "$as_me:5432: result: $cf_cv_lib_part_tgetent" >&5
5433 1.1 mrg echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
5434 1.1 mrg
5435 1.1 mrg if test "$cf_cv_lib_part_tgetent" != no ; then
5436 1.1 mrg LIBS="$LIBS $cf_cv_lib_part_tgetent"
5437 1.1 mrg
5438 1.1 mrg for ac_header in termcap.h
5439 1.1 mrg do
5440 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 1.1.1.3 snj echo "$as_me:5441: checking for $ac_header" >&5
5442 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5443 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5445 1.1 mrg else
5446 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5447 1.1.1.3 snj #line 5447 "configure"
5448 1.1 mrg #include "confdefs.h"
5449 1.1 mrg #include <$ac_header>
5450 1.1 mrg _ACEOF
5451 1.1.1.3 snj if { (eval echo "$as_me:5451: \"$ac_cpp conftest.$ac_ext\"") >&5
5452 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5453 1.1 mrg ac_status=$?
5454 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
5455 1.1 mrg rm -f conftest.er1
5456 1.1 mrg cat conftest.err >&5
5457 1.1.1.3 snj echo "$as_me:5457: \$? = $ac_status" >&5
5458 1.1 mrg (exit $ac_status); } >/dev/null; then
5459 1.1 mrg if test -s conftest.err; then
5460 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
5461 1.1 mrg else
5462 1.1 mrg ac_cpp_err=
5463 1.1 mrg fi
5464 1.1 mrg else
5465 1.1 mrg ac_cpp_err=yes
5466 1.1 mrg fi
5467 1.1 mrg if test -z "$ac_cpp_err"; then
5468 1.1 mrg eval "$as_ac_Header=yes"
5469 1.1 mrg else
5470 1.1 mrg echo "$as_me: failed program was:" >&5
5471 1.1 mrg cat conftest.$ac_ext >&5
5472 1.1 mrg eval "$as_ac_Header=no"
5473 1.1 mrg fi
5474 1.1 mrg rm -f conftest.err conftest.$ac_ext
5475 1.1 mrg fi
5476 1.1.1.3 snj echo "$as_me:5476: result: `eval echo '${'$as_ac_Header'}'`" >&5
5477 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5478 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
5479 1.1 mrg cat >>confdefs.h <<EOF
5480 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5481 1.1 mrg EOF
5482 1.1 mrg
5483 1.1 mrg fi
5484 1.1 mrg done
5485 1.1 mrg
5486 1.1 mrg # If this is linking against ncurses, we'll trigger the
5487 1.1 mrg # ifdef in resize.c that turns the termcap stuff back off.
5488 1.1 mrg cat >>confdefs.h <<\EOF
5489 1.1 mrg #define USE_TERMINFO 1
5490 1.1 mrg EOF
5491 1.1 mrg
5492 1.1 mrg fi
5493 1.1 mrg fi
5494 1.1 mrg
5495 1.1.1.3 snj echo "$as_me:5495: checking for directory to install resource files" >&5
5496 1.1 mrg echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
5497 1.1 mrg
5498 1.1 mrg # Check whether --with-app-defaults or --without-app-defaults was given.
5499 1.1 mrg if test "${with_app_defaults+set}" = set; then
5500 1.1 mrg withval="$with_app_defaults"
5501 1.1 mrg
5502 1.1 mrg else
5503 1.1 mrg withval="${appsdir-'\$(exec_prefix)/lib/X11/app-defaults'}"
5504 1.1 mrg fi; if test -n "'\$(exec_prefix)/lib/X11/app-defaults'" ; then
5505 1.1 mrg
5506 1.1 mrg if test "x$prefix" != xNONE; then
5507 1.1 mrg cf_path_syntax="$prefix"
5508 1.1 mrg else
5509 1.1 mrg cf_path_syntax="$ac_default_prefix"
5510 1.1 mrg fi
5511 1.1 mrg
5512 1.1 mrg case ".$withval" in #(vi
5513 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
5514 1.1 mrg ;;
5515 1.1 mrg ..|./*|.\\*) #(vi
5516 1.1 mrg ;;
5517 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5518 1.1 mrg ;;
5519 1.1 mrg .\${*prefix}*) #(vi
5520 1.1 mrg eval withval="$withval"
5521 1.1 mrg case ".$withval" in #(vi
5522 1.1 mrg .NONE/*)
5523 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5524 1.1 mrg ;;
5525 1.1 mrg esac
5526 1.1 mrg ;; #(vi
5527 1.1 mrg .no|.NONE/*)
5528 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5529 1.1 mrg ;;
5530 1.1 mrg *)
5531 1.1.1.3 snj { { echo "$as_me:5531: error: expected a pathname, not \"$withval\"" >&5
5532 1.1 mrg echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5533 1.1 mrg { (exit 1); exit 1; }; }
5534 1.1 mrg ;;
5535 1.1 mrg esac
5536 1.1 mrg
5537 1.1 mrg fi
5538 1.1 mrg appsdir="$withval"
5539 1.1 mrg
5540 1.1.1.3 snj echo "$as_me:5540: result: $appsdir" >&5
5541 1.1 mrg echo "${ECHO_T}$appsdir" >&6
5542 1.1 mrg
5543 1.1 mrg no_appsdir=
5544 1.1 mrg test "$appsdir" = no && no_appsdir="#"
5545 1.1 mrg
5546 1.1.1.3 snj echo "$as_me:5546: checking for directory to install icons" >&5
5547 1.1 mrg echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
5548 1.1 mrg
5549 1.1 mrg # Check whether --with-icondir or --without-icondir was given.
5550 1.1 mrg if test "${with_icondir+set}" = set; then
5551 1.1 mrg withval="$with_icondir"
5552 1.1 mrg
5553 1.1 mrg else
5554 1.1 mrg withval="${icondir-'\$(exec_prefix)/share/pixmaps'}"
5555 1.1 mrg fi; if test -n "'\$(exec_prefix)/share/pixmaps'" ; then
5556 1.1 mrg
5557 1.1 mrg if test "x$prefix" != xNONE; then
5558 1.1 mrg cf_path_syntax="$prefix"
5559 1.1 mrg else
5560 1.1 mrg cf_path_syntax="$ac_default_prefix"
5561 1.1 mrg fi
5562 1.1 mrg
5563 1.1 mrg case ".$withval" in #(vi
5564 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
5565 1.1 mrg ;;
5566 1.1 mrg ..|./*|.\\*) #(vi
5567 1.1 mrg ;;
5568 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5569 1.1 mrg ;;
5570 1.1 mrg .\${*prefix}*) #(vi
5571 1.1 mrg eval withval="$withval"
5572 1.1 mrg case ".$withval" in #(vi
5573 1.1 mrg .NONE/*)
5574 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5575 1.1 mrg ;;
5576 1.1 mrg esac
5577 1.1 mrg ;; #(vi
5578 1.1 mrg .no|.NONE/*)
5579 1.1 mrg withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5580 1.1 mrg ;;
5581 1.1 mrg *)
5582 1.1.1.3 snj { { echo "$as_me:5582: error: expected a pathname, not \"$withval\"" >&5
5583 1.1 mrg echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5584 1.1 mrg { (exit 1); exit 1; }; }
5585 1.1 mrg ;;
5586 1.1 mrg esac
5587 1.1 mrg
5588 1.1 mrg fi
5589 1.1 mrg icondir="$withval"
5590 1.1 mrg
5591 1.1.1.3 snj echo "$as_me:5591: result: $icondir" >&5
5592 1.1 mrg echo "${ECHO_T}$icondir" >&6
5593 1.1 mrg
5594 1.1 mrg no_icondir=
5595 1.1 mrg test "$icondir" = no && no_icondir="#"
5596 1.1 mrg
5597 1.1 mrg # Comment-out the install-desktop rule if the desktop-utils are not found.
5598 1.1.1.3 snj echo "$as_me:5598: checking if you want to install desktop files" >&5
5599 1.1 mrg echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
5600 1.1 mrg
5601 1.1 mrg # Check whether --enable-desktop or --disable-desktop was given.
5602 1.1 mrg if test "${enable_desktop+set}" = set; then
5603 1.1 mrg enableval="$enable_desktop"
5604 1.1 mrg test "$enableval" != no && enableval=yes
5605 1.1 mrg if test "$enableval" != "yes" ; then
5606 1.1 mrg enable_desktop=$enableval
5607 1.1 mrg else
5608 1.1 mrg enable_desktop=$enableval
5609 1.1 mrg fi
5610 1.1 mrg else
5611 1.1 mrg enableval=yes
5612 1.1 mrg enable_desktop=$enableval
5613 1.1 mrg
5614 1.1 mrg fi;
5615 1.1.1.3 snj echo "$as_me:5615: result: $enable_desktop" >&5
5616 1.1 mrg echo "${ECHO_T}$enable_desktop" >&6
5617 1.1 mrg
5618 1.1 mrg desktop_utils=
5619 1.1 mrg if test "$enable_desktop" = yes ; then
5620 1.1 mrg # Extract the first word of "desktop-file-install", so it can be a program name with args.
5621 1.1 mrg set dummy desktop-file-install; ac_word=$2
5622 1.1.1.3 snj echo "$as_me:5622: checking for $ac_word" >&5
5623 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624 1.1 mrg if test "${ac_cv_prog_desktop_utils+set}" = set; then
5625 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5626 1.1 mrg else
5627 1.1 mrg if test -n "$desktop_utils"; then
5628 1.1 mrg ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
5629 1.1 mrg else
5630 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
5631 1.1 mrg ac_dummy="$PATH"
5632 1.1 mrg for ac_dir in $ac_dummy; do
5633 1.1 mrg IFS=$ac_save_IFS
5634 1.1 mrg test -z "$ac_dir" && ac_dir=.
5635 1.1 mrg $as_executable_p "$ac_dir/$ac_word" || continue
5636 1.1 mrg ac_cv_prog_desktop_utils="yes"
5637 1.1.1.3 snj echo "$as_me:5637: found $ac_dir/$ac_word" >&5
5638 1.1 mrg break
5639 1.1 mrg done
5640 1.1 mrg
5641 1.1 mrg test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
5642 1.1 mrg fi
5643 1.1 mrg fi
5644 1.1 mrg desktop_utils=$ac_cv_prog_desktop_utils
5645 1.1 mrg if test -n "$desktop_utils"; then
5646 1.1.1.3 snj echo "$as_me:5646: result: $desktop_utils" >&5
5647 1.1 mrg echo "${ECHO_T}$desktop_utils" >&6
5648 1.1 mrg else
5649 1.1.1.3 snj echo "$as_me:5649: result: no" >&5
5650 1.1 mrg echo "${ECHO_T}no" >&6
5651 1.1 mrg fi
5652 1.1 mrg
5653 1.1 mrg fi
5654 1.1 mrg
5655 1.1 mrg test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
5656 1.1 mrg
5657 1.1 mrg # inherit SINSTALL_OPTS from environment to allow packager to customize it.
5658 1.1 mrg
5659 1.1.1.3 snj echo "$as_me:5659: checking for install-permissions reference" >&5
5660 1.1 mrg echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
5661 1.1 mrg
5662 1.1 mrg # Check whether --with-reference or --without-reference was given.
5663 1.1 mrg if test "${with_reference+set}" = set; then
5664 1.1 mrg withval="$with_reference"
5665 1.1 mrg with_reference=$withval
5666 1.1 mrg else
5667 1.1 mrg with_reference=xterm
5668 1.1 mrg fi;
5669 1.1.1.3 snj echo "$as_me:5669: result: $with_reference" >&5
5670 1.1 mrg echo "${ECHO_T}$with_reference" >&6
5671 1.1 mrg
5672 1.1 mrg with_full_paths=yes
5673 1.1 mrg
5674 1.1.1.3 snj case $cf_cv_system_name in
5675 1.1.1.3 snj os2*) PATH_SEPARATOR=';' ;;
5676 1.1.1.3 snj *) PATH_SEPARATOR=':' ;;
5677 1.1.1.3 snj esac
5678 1.1.1.3 snj
5679 1.1 mrg test -z "$XTERM_PATH" && XTERM_PATH=$with_reference
5680 1.1 mrg for ac_prog in $XTERM_PATH $with_reference
5681 1.1 mrg do
5682 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 1.1 mrg set dummy $ac_prog; ac_word=$2
5684 1.1.1.3 snj echo "$as_me:5684: checking for $ac_word" >&5
5685 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 1.1 mrg if test "${ac_cv_path_XTERM_PATH+set}" = set; then
5687 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5688 1.1 mrg else
5689 1.1 mrg case $XTERM_PATH in
5690 1.1 mrg [\\/]* | ?:[\\/]*)
5691 1.1 mrg ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a path.
5692 1.1 mrg ;;
5693 1.1 mrg *)
5694 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
5695 1.1 mrg ac_dummy="$PATH"
5696 1.1 mrg for ac_dir in $ac_dummy; do
5697 1.1 mrg IFS=$ac_save_IFS
5698 1.1 mrg test -z "$ac_dir" && ac_dir=.
5699 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
5700 1.1 mrg ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
5701 1.1.1.3 snj echo "$as_me:5701: found $ac_dir/$ac_word" >&5
5702 1.1 mrg break
5703 1.1 mrg fi
5704 1.1 mrg done
5705 1.1 mrg
5706 1.1 mrg ;;
5707 1.1 mrg esac
5708 1.1 mrg fi
5709 1.1 mrg XTERM_PATH=$ac_cv_path_XTERM_PATH
5710 1.1 mrg
5711 1.1 mrg if test -n "$XTERM_PATH"; then
5712 1.1.1.3 snj echo "$as_me:5712: result: $XTERM_PATH" >&5
5713 1.1 mrg echo "${ECHO_T}$XTERM_PATH" >&6
5714 1.1 mrg else
5715 1.1.1.3 snj echo "$as_me:5715: result: no" >&5
5716 1.1 mrg echo "${ECHO_T}no" >&6
5717 1.1 mrg fi
5718 1.1 mrg
5719 1.1 mrg test -n "$XTERM_PATH" && break
5720 1.1 mrg done
5721 1.1 mrg test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
5722 1.1 mrg
5723 1.1 mrg cf_path_prog=""
5724 1.1 mrg cf_path_args=""
5725 1.1.1.3 snj IFS="${IFS= }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
5726 1.1 mrg for cf_temp in $ac_cv_path_XTERM_PATH
5727 1.1 mrg do
5728 1.1 mrg if test -z "$cf_path_prog" ; then
5729 1.1 mrg if test "$with_full_paths" = yes ; then
5730 1.1 mrg
5731 1.1 mrg if test "x$prefix" != xNONE; then
5732 1.1 mrg cf_path_syntax="$prefix"
5733 1.1 mrg else
5734 1.1 mrg cf_path_syntax="$ac_default_prefix"
5735 1.1 mrg fi
5736 1.1 mrg
5737 1.1 mrg case ".$cf_temp" in #(vi
5738 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
5739 1.1 mrg ;;
5740 1.1 mrg ..|./*|.\\*) #(vi
5741 1.1 mrg ;;
5742 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
5743 1.1 mrg ;;
5744 1.1 mrg .\${*prefix}*) #(vi
5745 1.1 mrg eval cf_temp="$cf_temp"
5746 1.1 mrg case ".$cf_temp" in #(vi
5747 1.1 mrg .NONE/*)
5748 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
5749 1.1 mrg ;;
5750 1.1 mrg esac
5751 1.1 mrg ;; #(vi
5752 1.1 mrg .no|.NONE/*)
5753 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
5754 1.1 mrg ;;
5755 1.1 mrg *)
5756 1.1 mrg break
5757 1.1 mrg ;;
5758 1.1 mrg esac
5759 1.1 mrg
5760 1.1 mrg cf_path_prog="$cf_temp"
5761 1.1 mrg else
5762 1.1 mrg cf_path_prog="`basename $cf_temp`"
5763 1.1 mrg fi
5764 1.1 mrg elif test -z "$cf_path_args" ; then
5765 1.1 mrg cf_path_args="$cf_temp"
5766 1.1 mrg else
5767 1.1 mrg cf_path_args="$cf_path_args $cf_temp"
5768 1.1 mrg fi
5769 1.1 mrg done
5770 1.1 mrg IFS="$cf_save_ifs"
5771 1.1 mrg
5772 1.1 mrg if test -n "$cf_path_prog" ; then
5773 1.1 mrg
5774 1.1.1.3 snj echo "${as_me-configure}:5774: testing defining path for ${cf_path_prog} ..." 1>&5
5775 1.1 mrg
5776 1.1 mrg cat >>confdefs.h <<EOF
5777 1.1 mrg #define XTERM_PATH_PATH "$cf_path_prog"
5778 1.1 mrg EOF
5779 1.1 mrg
5780 1.1 mrg test -n "$cf_path_args" && cat >>confdefs.h <<EOF
5781 1.1 mrg #define XTERM_PATH_ARGS "$cf_path_args"
5782 1.1 mrg EOF
5783 1.1 mrg
5784 1.1 mrg fi
5785 1.1 mrg
5786 1.1 mrg # If any of --program-prefix, --program-suffix or --program-transform-name is
5787 1.1 mrg # given, accept an option tell the makefile to create a symbolic link, e.g.,
5788 1.1 mrg # to "xterm" on install.
5789 1.1 mrg XTERM_SYMLINK=NONE
5790 1.1 mrg
5791 1.1 mrg if test "$program_transform_name" != "'s,,,'" ; then
5792 1.1 mrg cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
5793 1.1 mrg cf_name=`echo xterm |sed -e "$cf_name"`
5794 1.1.1.3 snj echo "$as_me:5794: checking for symbolic link to create to $cf_name" >&5
5795 1.1 mrg echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
5796 1.1 mrg
5797 1.1 mrg # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
5798 1.1 mrg if test "${with_xterm_symlink+set}" = set; then
5799 1.1 mrg withval="$with_xterm_symlink"
5800 1.1 mrg with_symlink=$withval
5801 1.1 mrg else
5802 1.1 mrg with_symlink=xterm
5803 1.1 mrg fi;
5804 1.1.1.3 snj echo "$as_me:5804: result: $with_symlink" >&5
5805 1.1 mrg echo "${ECHO_T}$with_symlink" >&6
5806 1.1 mrg test "$with_symlink" = yes && with_symlink=xterm
5807 1.1 mrg test -n "$with_symlink" && \
5808 1.1 mrg test "$with_symlink" != no && \
5809 1.1 mrg test "$with_symlink" != $cf_name && \
5810 1.1 mrg XTERM_SYMLINK="$with_symlink"
5811 1.1 mrg fi
5812 1.1 mrg
5813 1.1.1.3 snj echo "$as_me:5813: checking if you want to disable setuid" >&5
5814 1.1 mrg echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
5815 1.1 mrg
5816 1.1 mrg # Check whether --enable-setuid or --disable-setuid was given.
5817 1.1 mrg if test "${enable_setuid+set}" = set; then
5818 1.1 mrg enableval="$enable_setuid"
5819 1.1 mrg test "$enableval" != no && enableval=yes
5820 1.1 mrg if test "$enableval" != "yes" ; then
5821 1.1 mrg disable_setuid=yes
5822 1.1 mrg else
5823 1.1 mrg disable_setuid=no
5824 1.1 mrg fi
5825 1.1 mrg else
5826 1.1 mrg enableval=yes
5827 1.1 mrg disable_setuid=no
5828 1.1 mrg
5829 1.1 mrg fi;
5830 1.1.1.3 snj echo "$as_me:5830: result: $disable_setuid" >&5
5831 1.1 mrg echo "${ECHO_T}$disable_setuid" >&6
5832 1.1 mrg
5833 1.1.1.3 snj echo "$as_me:5833: checking if you want to disable setgid" >&5
5834 1.1 mrg echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
5835 1.1 mrg
5836 1.1 mrg # Check whether --enable-setgid or --disable-setgid was given.
5837 1.1 mrg if test "${enable_setgid+set}" = set; then
5838 1.1 mrg enableval="$enable_setgid"
5839 1.1 mrg test "$enableval" != no && enableval=yes
5840 1.1 mrg if test "$enableval" != "yes" ; then
5841 1.1 mrg disable_setgid=yes
5842 1.1 mrg else
5843 1.1 mrg disable_setgid=no
5844 1.1 mrg fi
5845 1.1 mrg else
5846 1.1 mrg enableval=yes
5847 1.1 mrg disable_setgid=no
5848 1.1 mrg
5849 1.1 mrg fi;
5850 1.1.1.3 snj echo "$as_me:5850: result: $disable_setgid" >&5
5851 1.1 mrg echo "${ECHO_T}$disable_setgid" >&6
5852 1.1 mrg
5853 1.1.1.3 snj echo "$as_me:5853: checking if you want to run xterm setuid to a given user" >&5
5854 1.1 mrg echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_C" >&6
5855 1.1 mrg
5856 1.1 mrg # Check whether --with-setuid or --without-setuid was given.
5857 1.1 mrg if test "${with_setuid+set}" = set; then
5858 1.1 mrg withval="$with_setuid"
5859 1.1 mrg use_given_setuid=$withval
5860 1.1 mrg else
5861 1.1 mrg use_given_setuid=no
5862 1.1 mrg fi;
5863 1.1.1.3 snj echo "$as_me:5863: result: $use_given_setuid" >&5
5864 1.1 mrg echo "${ECHO_T}$use_given_setuid" >&6
5865 1.1 mrg
5866 1.1 mrg if test "$use_given_setuid" != no ; then
5867 1.1 mrg if test "$use_given_setuid" = yes ; then
5868 1.1 mrg cf_cv_given_setuid=root
5869 1.1 mrg else
5870 1.1 mrg cf_cv_given_setuid=$use_given_setuid
5871 1.1 mrg fi
5872 1.1 mrg SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
5873 1.1 mrg fi
5874 1.1 mrg
5875 1.1.1.3 snj echo "$as_me:5875: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
5876 1.1 mrg echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file... $ECHO_C" >&6
5877 1.1 mrg
5878 1.1 mrg # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
5879 1.1 mrg if test "${with_utmp_setgid+set}" = set; then
5880 1.1 mrg withval="$with_utmp_setgid"
5881 1.1 mrg use_utmp_setgid=$withval
5882 1.1 mrg else
5883 1.1 mrg use_utmp_setgid=no
5884 1.1 mrg fi;
5885 1.1.1.3 snj echo "$as_me:5885: result: $use_utmp_setgid" >&5
5886 1.1 mrg echo "${ECHO_T}$use_utmp_setgid" >&6
5887 1.1 mrg
5888 1.1 mrg if test "$use_utmp_setgid" != no ; then
5889 1.1 mrg if test "$use_utmp_setgid" = yes ; then
5890 1.1 mrg
5891 1.1 mrg if test $cf_cv_have_utmp != no ; then
5892 1.1.1.3 snj echo "$as_me:5892: checking for utmp/utmpx group" >&5
5893 1.1 mrg echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
5894 1.1 mrg if test "${cf_cv_utmp_group+set}" = set; then
5895 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5896 1.1 mrg else
5897 1.1 mrg
5898 1.1 mrg for cf_utmp_path in /var/adm /var/run
5899 1.1 mrg do
5900 1.1 mrg for cf_utmp_file in utmpx utmp
5901 1.1 mrg do
5902 1.1 mrg if test -f $cf_utmp_path/$cf_utmp_file
5903 1.1 mrg then
5904 1.1 mrg cf_cv_utmp_group=root
5905 1.1 mrg
5906 1.1 mrg cf_option="-l -L"
5907 1.1 mrg
5908 1.1 mrg # Expect listing to have fields like this:
5909 1.1 mrg #-r--r--r-- 1 user group 34293 Jul 18 16:29 pathname
5910 1.1 mrg ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
5911 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
5912 1.1 mrg if test -z "$cf_rest" ; then
5913 1.1 mrg cf_option="$cf_option -g"
5914 1.1 mrg ls $cf_option $cf_utmp_path/$cf_utmp_file >conftest
5915 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest
5916 1.1 mrg fi
5917 1.1 mrg rm -f conftest
5918 1.1 mrg
5919 1.1 mrg # If we have a pathname, and the date fields look right, assume we've
5920 1.1 mrg # captured the group as well.
5921 1.1 mrg if test -n "$cf_rest" ; then
5922 1.1 mrg cf_test=`echo "${cf_date2}${cf_date3}" | sed -e 's/[0-9:]//g'`
5923 1.1 mrg if test -z "$cf_test" ; then
5924 1.1 mrg cf_cv_utmp_group=$cf_grp;
5925 1.1 mrg fi
5926 1.1 mrg fi
5927 1.1 mrg break
5928 1.1 mrg fi
5929 1.1 mrg done
5930 1.1 mrg test -n "$cf_cv_utmp_group" && break
5931 1.1 mrg done
5932 1.1 mrg
5933 1.1 mrg fi
5934 1.1.1.3 snj echo "$as_me:5934: result: $cf_cv_utmp_group" >&5
5935 1.1 mrg echo "${ECHO_T}$cf_cv_utmp_group" >&6
5936 1.1 mrg else
5937 1.1.1.3 snj { { echo "$as_me:5937: error: cannot find utmp group" >&5
5938 1.1 mrg echo "$as_me: error: cannot find utmp group" >&2;}
5939 1.1 mrg { (exit 1); exit 1; }; }
5940 1.1 mrg fi
5941 1.1 mrg
5942 1.1 mrg else
5943 1.1 mrg cf_cv_utmp_group=$use_utmp_setgid
5944 1.1 mrg fi
5945 1.1 mrg if test "$cf_cv_posix_saved_ids" != yes ; then
5946 1.1.1.3 snj { { echo "$as_me:5946: error: Your system does not support POSIX saved-ids" >&5
5947 1.1 mrg echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
5948 1.1 mrg { (exit 1); exit 1; }; }
5949 1.1 mrg fi
5950 1.1 mrg cat >>confdefs.h <<\EOF
5951 1.1 mrg #define USE_UTMP_SETGID 1
5952 1.1 mrg EOF
5953 1.1 mrg
5954 1.1 mrg SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
5955 1.1 mrg fi
5956 1.1 mrg
5957 1.1.1.3 snj echo "$as_me:5957: checking if you want to link with utempter" >&5
5958 1.1 mrg echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
5959 1.1 mrg
5960 1.1 mrg # Check whether --with-utempter or --without-utempter was given.
5961 1.1 mrg if test "${with_utempter+set}" = set; then
5962 1.1 mrg withval="$with_utempter"
5963 1.1 mrg use_utempter=$withval
5964 1.1 mrg else
5965 1.1 mrg use_utempter=no
5966 1.1 mrg fi;
5967 1.1.1.3 snj echo "$as_me:5967: result: $use_utempter" >&5
5968 1.1 mrg echo "${ECHO_T}$use_utempter" >&6
5969 1.1 mrg
5970 1.1 mrg if test "$use_utempter" = yes ; then
5971 1.1 mrg
5972 1.1.1.3 snj echo "$as_me:5972: checking if we can link with utempter library" >&5
5973 1.1 mrg echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
5974 1.1 mrg if test "${cf_cv_have_utempter+set}" = set; then
5975 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
5976 1.1 mrg else
5977 1.1 mrg
5978 1.1 mrg cf_save_LIBS="$LIBS"
5979 1.1 mrg LIBS="-lutempter $LIBS"
5980 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
5981 1.1.1.3 snj #line 5981 "configure"
5982 1.1 mrg #include "confdefs.h"
5983 1.1 mrg
5984 1.1 mrg #include <utempter.h>
5985 1.1 mrg
5986 1.1 mrg int
5987 1.1 mrg main ()
5988 1.1 mrg {
5989 1.1 mrg
5990 1.1 mrg addToUtmp("/dev/tty", 0, 1);
5991 1.1 mrg removeFromUtmp();
5992 1.1 mrg
5993 1.1 mrg ;
5994 1.1 mrg return 0;
5995 1.1 mrg }
5996 1.1 mrg _ACEOF
5997 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
5998 1.1.1.3 snj if { (eval echo "$as_me:5998: \"$ac_link\"") >&5
5999 1.1 mrg (eval $ac_link) 2>&5
6000 1.1 mrg ac_status=$?
6001 1.1.1.3 snj echo "$as_me:6001: \$? = $ac_status" >&5
6002 1.1 mrg (exit $ac_status); } &&
6003 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6004 1.1.1.3 snj { (eval echo "$as_me:6004: \"$ac_try\"") >&5
6005 1.1 mrg (eval $ac_try) 2>&5
6006 1.1 mrg ac_status=$?
6007 1.1.1.3 snj echo "$as_me:6007: \$? = $ac_status" >&5
6008 1.1 mrg (exit $ac_status); }; }; then
6009 1.1 mrg
6010 1.1 mrg cf_cv_have_utempter=yes
6011 1.1 mrg else
6012 1.1 mrg echo "$as_me: failed program was:" >&5
6013 1.1 mrg cat conftest.$ac_ext >&5
6014 1.1 mrg
6015 1.1 mrg cf_cv_have_utempter=no
6016 1.1 mrg fi
6017 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6018 1.1 mrg LIBS="$cf_save_LIBS"
6019 1.1 mrg
6020 1.1 mrg fi
6021 1.1.1.3 snj echo "$as_me:6021: result: $cf_cv_have_utempter" >&5
6022 1.1 mrg echo "${ECHO_T}$cf_cv_have_utempter" >&6
6023 1.1 mrg if test "$cf_cv_have_utempter" = yes ; then
6024 1.1 mrg cat >>confdefs.h <<\EOF
6025 1.1 mrg #define USE_UTEMPTER 1
6026 1.1 mrg EOF
6027 1.1 mrg
6028 1.1 mrg LIBS="-lutempter $LIBS"
6029 1.1 mrg fi
6030 1.1 mrg
6031 1.1 mrg test "$cf_cv_have_utempter" != yes && use_utempter=no
6032 1.1 mrg else
6033 1.1 mrg use_utempter=no
6034 1.1 mrg fi
6035 1.1 mrg
6036 1.1 mrg # Some configurations permit (or require) either setuid or setgid mode.
6037 1.1 mrg # Let the user decide.
6038 1.1 mrg if test "$use_utempter" = yes ; then
6039 1.1 mrg if test "${enable_setuid+set}" != set ; then
6040 1.1 mrg disable_setuid=yes
6041 1.1 mrg test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
6042 1.1 mrg
6043 1.1.1.3 snj echo "${as_me-configure}:6043: testing No --disable-setuid option given, force to yes ..." 1>&5
6044 1.1 mrg
6045 1.1 mrg fi
6046 1.1 mrg fi
6047 1.1 mrg
6048 1.1 mrg ### checks for external data
6049 1.1 mrg
6050 1.1.1.3 snj echo "$as_me:6050: checking if external errno is declared" >&5
6051 1.1 mrg echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
6052 1.1 mrg if test "${cf_cv_dcl_errno+set}" = set; then
6053 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6054 1.1 mrg else
6055 1.1 mrg
6056 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6057 1.1.1.3 snj #line 6057 "configure"
6058 1.1 mrg #include "confdefs.h"
6059 1.1 mrg
6060 1.1 mrg #ifdef HAVE_STDLIB_H
6061 1.1 mrg #include <stdlib.h>
6062 1.1 mrg #endif
6063 1.1 mrg #include <stdio.h>
6064 1.1 mrg #include <sys/types.h>
6065 1.1 mrg #include <errno.h>
6066 1.1 mrg int
6067 1.1 mrg main ()
6068 1.1 mrg {
6069 1.1.1.2 christos int x = (int) errno
6070 1.1 mrg ;
6071 1.1 mrg return 0;
6072 1.1 mrg }
6073 1.1 mrg _ACEOF
6074 1.1 mrg rm -f conftest.$ac_objext
6075 1.1.1.3 snj if { (eval echo "$as_me:6075: \"$ac_compile\"") >&5
6076 1.1 mrg (eval $ac_compile) 2>&5
6077 1.1 mrg ac_status=$?
6078 1.1.1.3 snj echo "$as_me:6078: \$? = $ac_status" >&5
6079 1.1 mrg (exit $ac_status); } &&
6080 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6081 1.1.1.3 snj { (eval echo "$as_me:6081: \"$ac_try\"") >&5
6082 1.1 mrg (eval $ac_try) 2>&5
6083 1.1 mrg ac_status=$?
6084 1.1.1.3 snj echo "$as_me:6084: \$? = $ac_status" >&5
6085 1.1 mrg (exit $ac_status); }; }; then
6086 1.1 mrg cf_cv_dcl_errno=yes
6087 1.1 mrg else
6088 1.1 mrg echo "$as_me: failed program was:" >&5
6089 1.1 mrg cat conftest.$ac_ext >&5
6090 1.1 mrg cf_cv_dcl_errno=no
6091 1.1 mrg fi
6092 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6093 1.1 mrg
6094 1.1 mrg fi
6095 1.1.1.3 snj echo "$as_me:6095: result: $cf_cv_dcl_errno" >&5
6096 1.1 mrg echo "${ECHO_T}$cf_cv_dcl_errno" >&6
6097 1.1 mrg
6098 1.1 mrg if test "$cf_cv_dcl_errno" = no ; then
6099 1.1 mrg
6100 1.1 mrg cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6101 1.1 mrg
6102 1.1 mrg cat >>confdefs.h <<EOF
6103 1.1 mrg #define $cf_result 1
6104 1.1 mrg EOF
6105 1.1 mrg
6106 1.1 mrg fi
6107 1.1 mrg
6108 1.1 mrg # It's possible (for near-UNIX clones) that the data doesn't exist
6109 1.1 mrg
6110 1.1.1.3 snj echo "$as_me:6110: checking if external errno exists" >&5
6111 1.1 mrg echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
6112 1.1 mrg if test "${cf_cv_have_errno+set}" = set; then
6113 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6114 1.1 mrg else
6115 1.1 mrg
6116 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6117 1.1.1.3 snj #line 6117 "configure"
6118 1.1 mrg #include "confdefs.h"
6119 1.1 mrg
6120 1.1 mrg #undef errno
6121 1.1 mrg extern int errno;
6122 1.1 mrg
6123 1.1 mrg int
6124 1.1 mrg main ()
6125 1.1 mrg {
6126 1.1 mrg errno = 2
6127 1.1 mrg ;
6128 1.1 mrg return 0;
6129 1.1 mrg }
6130 1.1 mrg _ACEOF
6131 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6132 1.1.1.3 snj if { (eval echo "$as_me:6132: \"$ac_link\"") >&5
6133 1.1 mrg (eval $ac_link) 2>&5
6134 1.1 mrg ac_status=$?
6135 1.1.1.3 snj echo "$as_me:6135: \$? = $ac_status" >&5
6136 1.1 mrg (exit $ac_status); } &&
6137 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6138 1.1.1.3 snj { (eval echo "$as_me:6138: \"$ac_try\"") >&5
6139 1.1 mrg (eval $ac_try) 2>&5
6140 1.1 mrg ac_status=$?
6141 1.1.1.3 snj echo "$as_me:6141: \$? = $ac_status" >&5
6142 1.1 mrg (exit $ac_status); }; }; then
6143 1.1 mrg cf_cv_have_errno=yes
6144 1.1 mrg else
6145 1.1 mrg echo "$as_me: failed program was:" >&5
6146 1.1 mrg cat conftest.$ac_ext >&5
6147 1.1 mrg cf_cv_have_errno=no
6148 1.1 mrg fi
6149 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150 1.1 mrg
6151 1.1 mrg fi
6152 1.1.1.3 snj echo "$as_me:6152: result: $cf_cv_have_errno" >&5
6153 1.1 mrg echo "${ECHO_T}$cf_cv_have_errno" >&6
6154 1.1 mrg
6155 1.1 mrg if test "$cf_cv_have_errno" = yes ; then
6156 1.1 mrg
6157 1.1 mrg cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6158 1.1 mrg
6159 1.1 mrg cat >>confdefs.h <<EOF
6160 1.1 mrg #define $cf_result 1
6161 1.1 mrg EOF
6162 1.1 mrg
6163 1.1 mrg fi
6164 1.1 mrg
6165 1.1.1.3 snj echo "$as_me:6165: checking for explicit tty group name" >&5
6166 1.1 mrg echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
6167 1.1 mrg
6168 1.1 mrg # Check whether --with-tty-group or --without-tty-group was given.
6169 1.1 mrg if test "${with_tty_group+set}" = set; then
6170 1.1 mrg withval="$with_tty_group"
6171 1.1 mrg cf_tty_group=$withval
6172 1.1 mrg else
6173 1.1 mrg cf_tty_group=auto...
6174 1.1 mrg fi;
6175 1.1 mrg test -z "$cf_tty_group" && cf_tty_group=auto...
6176 1.1 mrg test "$cf_tty_group" = yes && cf_tty_group=auto...
6177 1.1.1.3 snj echo "$as_me:6177: result: $cf_tty_group" >&5
6178 1.1 mrg echo "${ECHO_T}$cf_tty_group" >&6
6179 1.1 mrg
6180 1.1 mrg if test "$cf_tty_group" = "auto..." ; then
6181 1.1.1.3 snj echo "$as_me:6181: checking for tty group name" >&5
6182 1.1 mrg echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
6183 1.1 mrg if test "${cf_cv_tty_group_name+set}" = set; then
6184 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6185 1.1 mrg else
6186 1.1 mrg
6187 1.1 mrg # If we are configuring as root, it is hard to get a clue about the tty group.
6188 1.1 mrg # But we'll guess based on how our connection is set up - assuming it is done
6189 1.1 mrg # properly.
6190 1.1 mrg
6191 1.1 mrg cf_uid=`id | sed -e 's/^^=*=//' -e 's/(.*$//'`
6192 1.1 mrg # )vi
6193 1.1 mrg if test "$cf_uid" != 0 ; then
6194 1.1 mrg cf_cv_tty_group_name=
6195 1.1 mrg cf_tty_name=`tty`
6196 1.1 mrg test "$cf_tty_name" = "not a tty" && cf_tty_name=/dev/tty
6197 1.1 mrg test -z "$cf_tty_name" && cf_tty_name=/dev/tty
6198 1.1 mrg if test -c "$cf_tty_name"
6199 1.1 mrg then
6200 1.1 mrg cf_option="-l -L"
6201 1.1 mrg
6202 1.1 mrg # Expect listing to have fields like this:
6203 1.1 mrg #-rwxrwxrwx 1 user group 34293 Jul 18 16:29 pathname
6204 1.1 mrg ls $cf_option $cf_tty_name >conftest.out
6205 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
6206 1.1 mrg if test -z "$cf_rest" ; then
6207 1.1 mrg cf_option="$cf_option -g"
6208 1.1 mrg ls $cf_option $cf_tty_name >conftest.out
6209 1.1 mrg read cf_mode cf_links cf_usr cf_grp cf_size cf_date1 cf_date2 cf_date3 cf_rest <conftest.out
6210 1.1 mrg fi
6211 1.1 mrg rm -f conftest.out
6212 1.1 mrg cf_cv_tty_group_name=$cf_grp
6213 1.1 mrg fi
6214 1.1 mrg fi
6215 1.1 mrg
6216 1.1 mrg # If we cannot deduce the tty group, fall back on hardcoded cases
6217 1.1 mrg
6218 1.1 mrg if test -z "$cf_cv_tty_group_name"
6219 1.1 mrg then
6220 1.1 mrg case $host_os in #(vi
6221 1.1 mrg osf*) #(vi
6222 1.1 mrg cf_cv_tty_group_name="terminal"
6223 1.1 mrg ;;
6224 1.1 mrg *)
6225 1.1 mrg cf_cv_tty_group_name="unknown"
6226 1.1 mrg if ( egrep '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
6227 1.1 mrg cf_cv_tty_group_name="tty"
6228 1.1 mrg fi
6229 1.1 mrg ;;
6230 1.1 mrg esac
6231 1.1 mrg fi
6232 1.1 mrg
6233 1.1 mrg fi
6234 1.1.1.3 snj echo "$as_me:6234: result: $cf_cv_tty_group_name" >&5
6235 1.1 mrg echo "${ECHO_T}$cf_cv_tty_group_name" >&6
6236 1.1 mrg cf_tty_group="$cf_cv_tty_group_name"
6237 1.1 mrg else
6238 1.1 mrg # if configure option, always do this
6239 1.1 mrg cat >>confdefs.h <<\EOF
6240 1.1 mrg #define USE_TTY_GROUP 1
6241 1.1 mrg EOF
6242 1.1 mrg
6243 1.1 mrg fi
6244 1.1 mrg
6245 1.1 mrg cat >>confdefs.h <<EOF
6246 1.1 mrg #define TTY_GROUP_NAME "$cf_tty_group"
6247 1.1 mrg EOF
6248 1.1 mrg
6249 1.1 mrg # This is only a double-check that the group-name we obtained above really
6250 1.1 mrg # does apply to the device. We cannot perform this test if we are in batch
6251 1.1 mrg # mode, or if we are cross-compiling.
6252 1.1 mrg
6253 1.1.1.3 snj echo "$as_me:6253: checking if we may use the $cf_tty_group group" >&5
6254 1.1 mrg echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
6255 1.1 mrg if test "${cf_cv_tty_group+set}" = set; then
6256 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6257 1.1 mrg else
6258 1.1 mrg
6259 1.1 mrg cf_tty_name=`tty`
6260 1.1 mrg if test "$cf_tty_name" != "not a tty"
6261 1.1 mrg then
6262 1.1 mrg if test "$cross_compiling" = yes; then
6263 1.1 mrg cf_cv_tty_group=unknown
6264 1.1 mrg else
6265 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6266 1.1.1.3 snj #line 6266 "configure"
6267 1.1 mrg #include "confdefs.h"
6268 1.1 mrg
6269 1.1 mrg #include <unistd.h>
6270 1.1 mrg #include <sys/types.h>
6271 1.1 mrg #include <sys/stat.h>
6272 1.1 mrg #include <grp.h>
6273 1.1 mrg int main()
6274 1.1 mrg {
6275 1.1 mrg struct stat sb;
6276 1.1 mrg struct group *ttygrp = getgrnam(TTY_GROUP_NAME);
6277 1.1 mrg char *name = ttyname(0);
6278 1.1 mrg
6279 1.1 mrg endgrent();
6280 1.1 mrg if (ttygrp != 0
6281 1.1 mrg && name != 0
6282 1.1 mrg && stat(name, &sb) == 0
6283 1.1 mrg && sb.st_gid != getgid()
6284 1.1 mrg && sb.st_gid == ttygrp->gr_gid) {
6285 1.1 mrg ${cf_cv_main_return:-return} (0);
6286 1.1 mrg }
6287 1.1 mrg ${cf_cv_main_return:-return} (1);
6288 1.1 mrg }
6289 1.1 mrg
6290 1.1 mrg _ACEOF
6291 1.1 mrg rm -f conftest$ac_exeext
6292 1.1.1.3 snj if { (eval echo "$as_me:6292: \"$ac_link\"") >&5
6293 1.1 mrg (eval $ac_link) 2>&5
6294 1.1 mrg ac_status=$?
6295 1.1.1.3 snj echo "$as_me:6295: \$? = $ac_status" >&5
6296 1.1 mrg (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6297 1.1.1.3 snj { (eval echo "$as_me:6297: \"$ac_try\"") >&5
6298 1.1 mrg (eval $ac_try) 2>&5
6299 1.1 mrg ac_status=$?
6300 1.1.1.3 snj echo "$as_me:6300: \$? = $ac_status" >&5
6301 1.1 mrg (exit $ac_status); }; }; then
6302 1.1 mrg cf_cv_tty_group=yes
6303 1.1 mrg else
6304 1.1 mrg echo "$as_me: program exited with status $ac_status" >&5
6305 1.1 mrg echo "$as_me: failed program was:" >&5
6306 1.1 mrg cat conftest.$ac_ext >&5
6307 1.1 mrg cf_cv_tty_group=no
6308 1.1 mrg fi
6309 1.1 mrg rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6310 1.1 mrg fi
6311 1.1 mrg elif test "$cross_compiling" = yes; then
6312 1.1 mrg cf_cv_tty_group=unknown
6313 1.1 mrg else
6314 1.1 mrg cf_cv_tty_group=yes
6315 1.1 mrg fi
6316 1.1 mrg
6317 1.1 mrg fi
6318 1.1.1.3 snj echo "$as_me:6318: result: $cf_cv_tty_group" >&5
6319 1.1 mrg echo "${ECHO_T}$cf_cv_tty_group" >&6
6320 1.1 mrg
6321 1.1 mrg if test $cf_cv_tty_group = no ; then
6322 1.1.1.3 snj { echo "$as_me:6322: WARNING: Cannot use $cf_tty_group group" >&5
6323 1.1 mrg echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
6324 1.1 mrg else
6325 1.1 mrg cat >>confdefs.h <<\EOF
6326 1.1 mrg #define USE_TTY_GROUP 1
6327 1.1 mrg EOF
6328 1.1 mrg
6329 1.1 mrg fi
6330 1.1 mrg
6331 1.1 mrg ### checks for system services and user specified options
6332 1.1 mrg
6333 1.1.1.3 snj echo "$as_me:6333: checking for sys/wait.h that is POSIX.1 compatible" >&5
6334 1.1 mrg echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6335 1.1 mrg if test "${ac_cv_header_sys_wait_h+set}" = set; then
6336 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6337 1.1 mrg else
6338 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6339 1.1.1.3 snj #line 6339 "configure"
6340 1.1 mrg #include "confdefs.h"
6341 1.1 mrg #include <sys/types.h>
6342 1.1 mrg #include <sys/wait.h>
6343 1.1 mrg #ifndef WEXITSTATUS
6344 1.1 mrg # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6345 1.1 mrg #endif
6346 1.1 mrg #ifndef WIFEXITED
6347 1.1 mrg # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6348 1.1 mrg #endif
6349 1.1 mrg
6350 1.1 mrg int
6351 1.1 mrg main ()
6352 1.1 mrg {
6353 1.1 mrg int s;
6354 1.1 mrg wait (&s);
6355 1.1 mrg s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6356 1.1 mrg ;
6357 1.1 mrg return 0;
6358 1.1 mrg }
6359 1.1 mrg _ACEOF
6360 1.1 mrg rm -f conftest.$ac_objext
6361 1.1.1.3 snj if { (eval echo "$as_me:6361: \"$ac_compile\"") >&5
6362 1.1 mrg (eval $ac_compile) 2>&5
6363 1.1 mrg ac_status=$?
6364 1.1.1.3 snj echo "$as_me:6364: \$? = $ac_status" >&5
6365 1.1 mrg (exit $ac_status); } &&
6366 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6367 1.1.1.3 snj { (eval echo "$as_me:6367: \"$ac_try\"") >&5
6368 1.1 mrg (eval $ac_try) 2>&5
6369 1.1 mrg ac_status=$?
6370 1.1.1.3 snj echo "$as_me:6370: \$? = $ac_status" >&5
6371 1.1 mrg (exit $ac_status); }; }; then
6372 1.1 mrg ac_cv_header_sys_wait_h=yes
6373 1.1 mrg else
6374 1.1 mrg echo "$as_me: failed program was:" >&5
6375 1.1 mrg cat conftest.$ac_ext >&5
6376 1.1 mrg ac_cv_header_sys_wait_h=no
6377 1.1 mrg fi
6378 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6379 1.1 mrg fi
6380 1.1.1.3 snj echo "$as_me:6380: result: $ac_cv_header_sys_wait_h" >&5
6381 1.1 mrg echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6382 1.1 mrg if test $ac_cv_header_sys_wait_h = yes; then
6383 1.1 mrg
6384 1.1 mrg cat >>confdefs.h <<\EOF
6385 1.1 mrg #define HAVE_SYS_WAIT_H 1
6386 1.1 mrg EOF
6387 1.1 mrg
6388 1.1 mrg fi
6389 1.1 mrg
6390 1.1.1.3 snj echo "$as_me:6390: checking for POSIX wait functions" >&5
6391 1.1 mrg echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
6392 1.1 mrg if test "${cf_cv_posix_wait+set}" = set; then
6393 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6394 1.1 mrg else
6395 1.1 mrg
6396 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6397 1.1.1.3 snj #line 6397 "configure"
6398 1.1 mrg #include "confdefs.h"
6399 1.1 mrg
6400 1.1 mrg #include <stdlib.h>
6401 1.1 mrg #include <stdio.h>
6402 1.1 mrg #include <sys/types.h>
6403 1.1 mrg #ifdef HAVE_SYS_WAIT_H
6404 1.1 mrg #include <sys/wait.h>
6405 1.1 mrg #endif
6406 1.1 mrg
6407 1.1 mrg int
6408 1.1 mrg main ()
6409 1.1 mrg {
6410 1.1 mrg
6411 1.1 mrg int stat_loc;
6412 1.1 mrg pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
6413 1.1 mrg pid_t pid2 = wait(&stat_loc);
6414 1.1 mrg
6415 1.1 mrg ;
6416 1.1 mrg return 0;
6417 1.1 mrg }
6418 1.1 mrg _ACEOF
6419 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6420 1.1.1.3 snj if { (eval echo "$as_me:6420: \"$ac_link\"") >&5
6421 1.1 mrg (eval $ac_link) 2>&5
6422 1.1 mrg ac_status=$?
6423 1.1.1.3 snj echo "$as_me:6423: \$? = $ac_status" >&5
6424 1.1 mrg (exit $ac_status); } &&
6425 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6426 1.1.1.3 snj { (eval echo "$as_me:6426: \"$ac_try\"") >&5
6427 1.1 mrg (eval $ac_try) 2>&5
6428 1.1 mrg ac_status=$?
6429 1.1.1.3 snj echo "$as_me:6429: \$? = $ac_status" >&5
6430 1.1 mrg (exit $ac_status); }; }; then
6431 1.1 mrg cf_cv_posix_wait=yes
6432 1.1 mrg else
6433 1.1 mrg echo "$as_me: failed program was:" >&5
6434 1.1 mrg cat conftest.$ac_ext >&5
6435 1.1 mrg cf_cv_posix_wait=no
6436 1.1 mrg fi
6437 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6438 1.1 mrg
6439 1.1 mrg fi
6440 1.1.1.3 snj echo "$as_me:6440: result: $cf_cv_posix_wait" >&5
6441 1.1 mrg echo "${ECHO_T}$cf_cv_posix_wait" >&6
6442 1.1 mrg test "$cf_cv_posix_wait" = yes && cat >>confdefs.h <<\EOF
6443 1.1 mrg #define USE_POSIX_WAIT 1
6444 1.1 mrg EOF
6445 1.1 mrg
6446 1.1.1.3 snj echo "$as_me:6446: checking if external sys_nerr is declared" >&5
6447 1.1 mrg echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
6448 1.1 mrg if test "${cf_cv_dcl_sys_nerr+set}" = set; then
6449 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6450 1.1 mrg else
6451 1.1 mrg
6452 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6453 1.1.1.3 snj #line 6453 "configure"
6454 1.1 mrg #include "confdefs.h"
6455 1.1 mrg
6456 1.1 mrg #ifdef HAVE_STDLIB_H
6457 1.1 mrg #include <stdlib.h>
6458 1.1 mrg #endif
6459 1.1 mrg #include <stdio.h>
6460 1.1 mrg #include <sys/types.h>
6461 1.1 mrg #include <errno.h>
6462 1.1 mrg int
6463 1.1 mrg main ()
6464 1.1 mrg {
6465 1.1.1.2 christos int x = (int) sys_nerr
6466 1.1 mrg ;
6467 1.1 mrg return 0;
6468 1.1 mrg }
6469 1.1 mrg _ACEOF
6470 1.1 mrg rm -f conftest.$ac_objext
6471 1.1.1.3 snj if { (eval echo "$as_me:6471: \"$ac_compile\"") >&5
6472 1.1 mrg (eval $ac_compile) 2>&5
6473 1.1 mrg ac_status=$?
6474 1.1.1.3 snj echo "$as_me:6474: \$? = $ac_status" >&5
6475 1.1 mrg (exit $ac_status); } &&
6476 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6477 1.1.1.3 snj { (eval echo "$as_me:6477: \"$ac_try\"") >&5
6478 1.1 mrg (eval $ac_try) 2>&5
6479 1.1 mrg ac_status=$?
6480 1.1.1.3 snj echo "$as_me:6480: \$? = $ac_status" >&5
6481 1.1 mrg (exit $ac_status); }; }; then
6482 1.1 mrg cf_cv_dcl_sys_nerr=yes
6483 1.1 mrg else
6484 1.1 mrg echo "$as_me: failed program was:" >&5
6485 1.1 mrg cat conftest.$ac_ext >&5
6486 1.1 mrg cf_cv_dcl_sys_nerr=no
6487 1.1 mrg fi
6488 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6489 1.1 mrg
6490 1.1 mrg fi
6491 1.1.1.3 snj echo "$as_me:6491: result: $cf_cv_dcl_sys_nerr" >&5
6492 1.1 mrg echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
6493 1.1 mrg
6494 1.1 mrg if test "$cf_cv_dcl_sys_nerr" = no ; then
6495 1.1 mrg
6496 1.1 mrg cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6497 1.1 mrg
6498 1.1 mrg cat >>confdefs.h <<EOF
6499 1.1 mrg #define $cf_result 1
6500 1.1 mrg EOF
6501 1.1 mrg
6502 1.1 mrg fi
6503 1.1 mrg
6504 1.1 mrg # It's possible (for near-UNIX clones) that the data doesn't exist
6505 1.1 mrg
6506 1.1.1.3 snj echo "$as_me:6506: checking if external sys_nerr exists" >&5
6507 1.1 mrg echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
6508 1.1 mrg if test "${cf_cv_have_sys_nerr+set}" = set; then
6509 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6510 1.1 mrg else
6511 1.1 mrg
6512 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6513 1.1.1.3 snj #line 6513 "configure"
6514 1.1 mrg #include "confdefs.h"
6515 1.1 mrg
6516 1.1 mrg #undef sys_nerr
6517 1.1 mrg extern int sys_nerr;
6518 1.1 mrg
6519 1.1 mrg int
6520 1.1 mrg main ()
6521 1.1 mrg {
6522 1.1 mrg sys_nerr = 2
6523 1.1 mrg ;
6524 1.1 mrg return 0;
6525 1.1 mrg }
6526 1.1 mrg _ACEOF
6527 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6528 1.1.1.3 snj if { (eval echo "$as_me:6528: \"$ac_link\"") >&5
6529 1.1 mrg (eval $ac_link) 2>&5
6530 1.1 mrg ac_status=$?
6531 1.1.1.3 snj echo "$as_me:6531: \$? = $ac_status" >&5
6532 1.1 mrg (exit $ac_status); } &&
6533 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6534 1.1.1.3 snj { (eval echo "$as_me:6534: \"$ac_try\"") >&5
6535 1.1 mrg (eval $ac_try) 2>&5
6536 1.1 mrg ac_status=$?
6537 1.1.1.3 snj echo "$as_me:6537: \$? = $ac_status" >&5
6538 1.1 mrg (exit $ac_status); }; }; then
6539 1.1 mrg cf_cv_have_sys_nerr=yes
6540 1.1 mrg else
6541 1.1 mrg echo "$as_me: failed program was:" >&5
6542 1.1 mrg cat conftest.$ac_ext >&5
6543 1.1 mrg cf_cv_have_sys_nerr=no
6544 1.1 mrg fi
6545 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6546 1.1 mrg
6547 1.1 mrg fi
6548 1.1.1.3 snj echo "$as_me:6548: result: $cf_cv_have_sys_nerr" >&5
6549 1.1 mrg echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
6550 1.1 mrg
6551 1.1 mrg if test "$cf_cv_have_sys_nerr" = yes ; then
6552 1.1 mrg
6553 1.1 mrg cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6554 1.1 mrg
6555 1.1 mrg cat >>confdefs.h <<EOF
6556 1.1 mrg #define $cf_result 1
6557 1.1 mrg EOF
6558 1.1 mrg
6559 1.1 mrg fi
6560 1.1 mrg
6561 1.1.1.3 snj echo "$as_me:6561: checking if external sys_errlist is declared" >&5
6562 1.1 mrg echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
6563 1.1 mrg if test "${cf_cv_dcl_sys_errlist+set}" = set; then
6564 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6565 1.1 mrg else
6566 1.1 mrg
6567 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6568 1.1.1.3 snj #line 6568 "configure"
6569 1.1 mrg #include "confdefs.h"
6570 1.1 mrg
6571 1.1 mrg #ifdef HAVE_STDLIB_H
6572 1.1 mrg #include <stdlib.h>
6573 1.1 mrg #endif
6574 1.1 mrg #include <stdio.h>
6575 1.1 mrg #include <sys/types.h>
6576 1.1 mrg #include <errno.h>
6577 1.1 mrg int
6578 1.1 mrg main ()
6579 1.1 mrg {
6580 1.1.1.2 christos int x = (int) sys_errlist
6581 1.1 mrg ;
6582 1.1 mrg return 0;
6583 1.1 mrg }
6584 1.1 mrg _ACEOF
6585 1.1 mrg rm -f conftest.$ac_objext
6586 1.1.1.3 snj if { (eval echo "$as_me:6586: \"$ac_compile\"") >&5
6587 1.1 mrg (eval $ac_compile) 2>&5
6588 1.1 mrg ac_status=$?
6589 1.1.1.3 snj echo "$as_me:6589: \$? = $ac_status" >&5
6590 1.1 mrg (exit $ac_status); } &&
6591 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6592 1.1.1.3 snj { (eval echo "$as_me:6592: \"$ac_try\"") >&5
6593 1.1 mrg (eval $ac_try) 2>&5
6594 1.1 mrg ac_status=$?
6595 1.1.1.3 snj echo "$as_me:6595: \$? = $ac_status" >&5
6596 1.1 mrg (exit $ac_status); }; }; then
6597 1.1 mrg cf_cv_dcl_sys_errlist=yes
6598 1.1 mrg else
6599 1.1 mrg echo "$as_me: failed program was:" >&5
6600 1.1 mrg cat conftest.$ac_ext >&5
6601 1.1 mrg cf_cv_dcl_sys_errlist=no
6602 1.1 mrg fi
6603 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6604 1.1 mrg
6605 1.1 mrg fi
6606 1.1.1.3 snj echo "$as_me:6606: result: $cf_cv_dcl_sys_errlist" >&5
6607 1.1 mrg echo "${ECHO_T}$cf_cv_dcl_sys_errlist" >&6
6608 1.1 mrg
6609 1.1 mrg if test "$cf_cv_dcl_sys_errlist" = no ; then
6610 1.1 mrg
6611 1.1 mrg cf_result=`echo "decl_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6612 1.1 mrg
6613 1.1 mrg cat >>confdefs.h <<EOF
6614 1.1 mrg #define $cf_result 1
6615 1.1 mrg EOF
6616 1.1 mrg
6617 1.1 mrg fi
6618 1.1 mrg
6619 1.1 mrg # It's possible (for near-UNIX clones) that the data doesn't exist
6620 1.1 mrg
6621 1.1.1.3 snj echo "$as_me:6621: checking if external sys_errlist exists" >&5
6622 1.1 mrg echo $ECHO_N "checking if external sys_errlist exists... $ECHO_C" >&6
6623 1.1 mrg if test "${cf_cv_have_sys_errlist+set}" = set; then
6624 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6625 1.1 mrg else
6626 1.1 mrg
6627 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6628 1.1.1.3 snj #line 6628 "configure"
6629 1.1 mrg #include "confdefs.h"
6630 1.1 mrg
6631 1.1 mrg #undef sys_errlist
6632 1.1 mrg extern int sys_errlist;
6633 1.1 mrg
6634 1.1 mrg int
6635 1.1 mrg main ()
6636 1.1 mrg {
6637 1.1 mrg sys_errlist = 2
6638 1.1 mrg ;
6639 1.1 mrg return 0;
6640 1.1 mrg }
6641 1.1 mrg _ACEOF
6642 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6643 1.1.1.3 snj if { (eval echo "$as_me:6643: \"$ac_link\"") >&5
6644 1.1 mrg (eval $ac_link) 2>&5
6645 1.1 mrg ac_status=$?
6646 1.1.1.3 snj echo "$as_me:6646: \$? = $ac_status" >&5
6647 1.1 mrg (exit $ac_status); } &&
6648 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6649 1.1.1.3 snj { (eval echo "$as_me:6649: \"$ac_try\"") >&5
6650 1.1 mrg (eval $ac_try) 2>&5
6651 1.1 mrg ac_status=$?
6652 1.1.1.3 snj echo "$as_me:6652: \$? = $ac_status" >&5
6653 1.1 mrg (exit $ac_status); }; }; then
6654 1.1 mrg cf_cv_have_sys_errlist=yes
6655 1.1 mrg else
6656 1.1 mrg echo "$as_me: failed program was:" >&5
6657 1.1 mrg cat conftest.$ac_ext >&5
6658 1.1 mrg cf_cv_have_sys_errlist=no
6659 1.1 mrg fi
6660 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6661 1.1 mrg
6662 1.1 mrg fi
6663 1.1.1.3 snj echo "$as_me:6663: result: $cf_cv_have_sys_errlist" >&5
6664 1.1 mrg echo "${ECHO_T}$cf_cv_have_sys_errlist" >&6
6665 1.1 mrg
6666 1.1 mrg if test "$cf_cv_have_sys_errlist" = yes ; then
6667 1.1 mrg
6668 1.1 mrg cf_result=`echo "have_sys_errlist" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6669 1.1 mrg
6670 1.1 mrg cat >>confdefs.h <<EOF
6671 1.1 mrg #define $cf_result 1
6672 1.1 mrg EOF
6673 1.1 mrg
6674 1.1 mrg fi
6675 1.1 mrg
6676 1.1 mrg for ac_header in \
6677 1.1 mrg termios.h \
6678 1.1 mrg stdlib.h \
6679 1.1 mrg X11/Intrinsic.h \
6680 1.1 mrg
6681 1.1 mrg do
6682 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6683 1.1.1.3 snj echo "$as_me:6683: checking for $ac_header" >&5
6684 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6685 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
6686 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6687 1.1 mrg else
6688 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6689 1.1.1.3 snj #line 6689 "configure"
6690 1.1 mrg #include "confdefs.h"
6691 1.1 mrg #include <$ac_header>
6692 1.1 mrg _ACEOF
6693 1.1.1.3 snj if { (eval echo "$as_me:6693: \"$ac_cpp conftest.$ac_ext\"") >&5
6694 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6695 1.1 mrg ac_status=$?
6696 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
6697 1.1 mrg rm -f conftest.er1
6698 1.1 mrg cat conftest.err >&5
6699 1.1.1.3 snj echo "$as_me:6699: \$? = $ac_status" >&5
6700 1.1 mrg (exit $ac_status); } >/dev/null; then
6701 1.1 mrg if test -s conftest.err; then
6702 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
6703 1.1 mrg else
6704 1.1 mrg ac_cpp_err=
6705 1.1 mrg fi
6706 1.1 mrg else
6707 1.1 mrg ac_cpp_err=yes
6708 1.1 mrg fi
6709 1.1 mrg if test -z "$ac_cpp_err"; then
6710 1.1 mrg eval "$as_ac_Header=yes"
6711 1.1 mrg else
6712 1.1 mrg echo "$as_me: failed program was:" >&5
6713 1.1 mrg cat conftest.$ac_ext >&5
6714 1.1 mrg eval "$as_ac_Header=no"
6715 1.1 mrg fi
6716 1.1 mrg rm -f conftest.err conftest.$ac_ext
6717 1.1 mrg fi
6718 1.1.1.3 snj echo "$as_me:6718: result: `eval echo '${'$as_ac_Header'}'`" >&5
6719 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6720 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
6721 1.1 mrg cat >>confdefs.h <<EOF
6722 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6723 1.1 mrg EOF
6724 1.1 mrg
6725 1.1 mrg fi
6726 1.1 mrg done
6727 1.1 mrg
6728 1.1.1.3 snj echo "$as_me:6728: checking if we should define SYSV" >&5
6729 1.1 mrg echo $ECHO_N "checking if we should define SYSV... $ECHO_C" >&6
6730 1.1 mrg if test "${cf_cv_sysv+set}" = set; then
6731 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6732 1.1 mrg else
6733 1.1 mrg
6734 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6735 1.1.1.3 snj #line 6735 "configure"
6736 1.1 mrg #include "confdefs.h"
6737 1.1 mrg
6738 1.1 mrg #undef SYSV
6739 1.1 mrg #define SYSV 1 /* get Xos.h to declare sys_errlist[] */
6740 1.1 mrg #ifdef HAVE_STDLIB_H
6741 1.1 mrg #include <stdlib.h> /* look for wchar_t */
6742 1.1 mrg #endif
6743 1.1 mrg #ifdef HAVE_X11_INTRINSIC_H
6744 1.1 mrg #include <X11/Intrinsic.h> /* Intrinsic.h has other traps... */
6745 1.1 mrg #endif
6746 1.1 mrg #ifdef HAVE_TERMIOS_H /* needed for HPUX 10.20 */
6747 1.1 mrg #include <termios.h>
6748 1.1 mrg #define STRUCT_TERMIOS struct termios
6749 1.1 mrg #else
6750 1.1 mrg #define STRUCT_TERMIOS struct termio
6751 1.1 mrg #endif
6752 1.1 mrg #include <curses.h>
6753 1.1 mrg #include <term.h> /* eliminate most BSD hacks */
6754 1.1 mrg #include <errno.h> /* declare sys_errlist on older systems */
6755 1.1 mrg #include <sys/termio.h> /* eliminate most of the remaining ones */
6756 1.1 mrg
6757 1.1 mrg int
6758 1.1 mrg main ()
6759 1.1 mrg {
6760 1.1 mrg
6761 1.1 mrg static STRUCT_TERMIOS d_tio;
6762 1.1 mrg d_tio.c_cc[VINTR] = 0;
6763 1.1 mrg d_tio.c_cc[VQUIT] = 0;
6764 1.1 mrg d_tio.c_cc[VERASE] = 0;
6765 1.1 mrg d_tio.c_cc[VKILL] = 0;
6766 1.1 mrg d_tio.c_cc[VEOF] = 0;
6767 1.1 mrg d_tio.c_cc[VEOL] = 0;
6768 1.1 mrg d_tio.c_cc[VMIN] = 0;
6769 1.1 mrg d_tio.c_cc[VTIME] = 0;
6770 1.1 mrg #if defined(HAVE_SYS_ERRLIST) && !defined(DECL_SYS_ERRLIST)
6771 1.1 mrg sys_errlist[0] = ""; /* Cygwin mis-declares this */
6772 1.1 mrg #endif
6773 1.1 mrg
6774 1.1 mrg ;
6775 1.1 mrg return 0;
6776 1.1 mrg }
6777 1.1 mrg _ACEOF
6778 1.1 mrg rm -f conftest.$ac_objext
6779 1.1.1.3 snj if { (eval echo "$as_me:6779: \"$ac_compile\"") >&5
6780 1.1 mrg (eval $ac_compile) 2>&5
6781 1.1 mrg ac_status=$?
6782 1.1.1.3 snj echo "$as_me:6782: \$? = $ac_status" >&5
6783 1.1 mrg (exit $ac_status); } &&
6784 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6785 1.1.1.3 snj { (eval echo "$as_me:6785: \"$ac_try\"") >&5
6786 1.1 mrg (eval $ac_try) 2>&5
6787 1.1 mrg ac_status=$?
6788 1.1.1.3 snj echo "$as_me:6788: \$? = $ac_status" >&5
6789 1.1 mrg (exit $ac_status); }; }; then
6790 1.1 mrg cf_cv_sysv=yes
6791 1.1 mrg else
6792 1.1 mrg echo "$as_me: failed program was:" >&5
6793 1.1 mrg cat conftest.$ac_ext >&5
6794 1.1 mrg cf_cv_sysv=no
6795 1.1 mrg fi
6796 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6797 1.1 mrg
6798 1.1 mrg fi
6799 1.1.1.3 snj echo "$as_me:6799: result: $cf_cv_sysv" >&5
6800 1.1 mrg echo "${ECHO_T}$cf_cv_sysv" >&6
6801 1.1 mrg test "$cf_cv_sysv" = yes && cat >>confdefs.h <<\EOF
6802 1.1 mrg #define SYSV 1
6803 1.1 mrg EOF
6804 1.1 mrg
6805 1.1.1.3 snj echo "$as_me:6805: checking for elf_begin in -lelf" >&5
6806 1.1 mrg echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
6807 1.1 mrg if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
6808 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6809 1.1 mrg else
6810 1.1 mrg ac_check_lib_save_LIBS=$LIBS
6811 1.1 mrg LIBS="-lelf $LIBS"
6812 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6813 1.1.1.3 snj #line 6813 "configure"
6814 1.1 mrg #include "confdefs.h"
6815 1.1 mrg
6816 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
6817 1.1 mrg #ifdef __cplusplus
6818 1.1 mrg extern "C"
6819 1.1 mrg #endif
6820 1.1 mrg /* We use char because int might match the return type of a gcc2
6821 1.1 mrg builtin and then its argument prototype would still apply. */
6822 1.1 mrg char elf_begin ();
6823 1.1 mrg int
6824 1.1 mrg main ()
6825 1.1 mrg {
6826 1.1 mrg elf_begin ();
6827 1.1 mrg ;
6828 1.1 mrg return 0;
6829 1.1 mrg }
6830 1.1 mrg _ACEOF
6831 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
6832 1.1.1.3 snj if { (eval echo "$as_me:6832: \"$ac_link\"") >&5
6833 1.1 mrg (eval $ac_link) 2>&5
6834 1.1 mrg ac_status=$?
6835 1.1.1.3 snj echo "$as_me:6835: \$? = $ac_status" >&5
6836 1.1 mrg (exit $ac_status); } &&
6837 1.1 mrg { ac_try='test -s conftest$ac_exeext'
6838 1.1.1.3 snj { (eval echo "$as_me:6838: \"$ac_try\"") >&5
6839 1.1 mrg (eval $ac_try) 2>&5
6840 1.1 mrg ac_status=$?
6841 1.1.1.3 snj echo "$as_me:6841: \$? = $ac_status" >&5
6842 1.1 mrg (exit $ac_status); }; }; then
6843 1.1 mrg ac_cv_lib_elf_elf_begin=yes
6844 1.1 mrg else
6845 1.1 mrg echo "$as_me: failed program was:" >&5
6846 1.1 mrg cat conftest.$ac_ext >&5
6847 1.1 mrg ac_cv_lib_elf_elf_begin=no
6848 1.1 mrg fi
6849 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6850 1.1 mrg LIBS=$ac_check_lib_save_LIBS
6851 1.1 mrg fi
6852 1.1.1.3 snj echo "$as_me:6852: result: $ac_cv_lib_elf_elf_begin" >&5
6853 1.1 mrg echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
6854 1.1 mrg if test $ac_cv_lib_elf_elf_begin = yes; then
6855 1.1 mrg
6856 1.1.1.3 snj echo "$as_me:6856: checking if this is an SVR4 system" >&5
6857 1.1 mrg echo $ECHO_N "checking if this is an SVR4 system... $ECHO_C" >&6
6858 1.1 mrg if test "${cf_cv_svr4+set}" = set; then
6859 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6860 1.1 mrg else
6861 1.1 mrg
6862 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
6863 1.1.1.3 snj #line 6863 "configure"
6864 1.1 mrg #include "confdefs.h"
6865 1.1 mrg
6866 1.1 mrg #include <elf.h>
6867 1.1 mrg #include <sys/termio.h>
6868 1.1 mrg
6869 1.1 mrg int
6870 1.1 mrg main ()
6871 1.1 mrg {
6872 1.1 mrg
6873 1.1 mrg static struct termio d_tio;
6874 1.1 mrg d_tio.c_cc[VINTR] = 0;
6875 1.1 mrg d_tio.c_cc[VQUIT] = 0;
6876 1.1 mrg d_tio.c_cc[VERASE] = 0;
6877 1.1 mrg d_tio.c_cc[VKILL] = 0;
6878 1.1 mrg d_tio.c_cc[VEOF] = 0;
6879 1.1 mrg d_tio.c_cc[VEOL] = 0;
6880 1.1 mrg d_tio.c_cc[VMIN] = 0;
6881 1.1 mrg d_tio.c_cc[VTIME] = 0;
6882 1.1 mrg d_tio.c_cc[VLNEXT] = 0;
6883 1.1 mrg
6884 1.1 mrg ;
6885 1.1 mrg return 0;
6886 1.1 mrg }
6887 1.1 mrg _ACEOF
6888 1.1 mrg rm -f conftest.$ac_objext
6889 1.1.1.3 snj if { (eval echo "$as_me:6889: \"$ac_compile\"") >&5
6890 1.1 mrg (eval $ac_compile) 2>&5
6891 1.1 mrg ac_status=$?
6892 1.1.1.3 snj echo "$as_me:6892: \$? = $ac_status" >&5
6893 1.1 mrg (exit $ac_status); } &&
6894 1.1 mrg { ac_try='test -s conftest.$ac_objext'
6895 1.1.1.3 snj { (eval echo "$as_me:6895: \"$ac_try\"") >&5
6896 1.1 mrg (eval $ac_try) 2>&5
6897 1.1 mrg ac_status=$?
6898 1.1.1.3 snj echo "$as_me:6898: \$? = $ac_status" >&5
6899 1.1 mrg (exit $ac_status); }; }; then
6900 1.1 mrg cf_cv_svr4=yes
6901 1.1 mrg else
6902 1.1 mrg echo "$as_me: failed program was:" >&5
6903 1.1 mrg cat conftest.$ac_ext >&5
6904 1.1 mrg cf_cv_svr4=no
6905 1.1 mrg fi
6906 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
6907 1.1 mrg
6908 1.1 mrg fi
6909 1.1.1.3 snj echo "$as_me:6909: result: $cf_cv_svr4" >&5
6910 1.1 mrg echo "${ECHO_T}$cf_cv_svr4" >&6
6911 1.1 mrg
6912 1.1 mrg fi
6913 1.1 mrg
6914 1.1 mrg test "$cf_cv_svr4" = yes && cat >>confdefs.h <<\EOF
6915 1.1 mrg #define SVR4 1
6916 1.1 mrg EOF
6917 1.1 mrg
6918 1.1.1.3 snj echo "$as_me:6918: checking for X" >&5
6919 1.1 mrg echo $ECHO_N "checking for X... $ECHO_C" >&6
6920 1.1 mrg
6921 1.1 mrg # Check whether --with-x or --without-x was given.
6922 1.1 mrg if test "${with_x+set}" = set; then
6923 1.1 mrg withval="$with_x"
6924 1.1 mrg
6925 1.1 mrg fi;
6926 1.1 mrg # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6927 1.1 mrg if test "x$with_x" = xno; then
6928 1.1 mrg # The user explicitly disabled X.
6929 1.1 mrg have_x=disabled
6930 1.1 mrg else
6931 1.1 mrg if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6932 1.1 mrg # Both variables are already set.
6933 1.1 mrg have_x=yes
6934 1.1 mrg else
6935 1.1 mrg if test "${ac_cv_have_x+set}" = set; then
6936 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
6937 1.1 mrg else
6938 1.1 mrg # One or both of the vars are not set, and there is no cached value.
6939 1.1 mrg ac_x_includes=no ac_x_libraries=no
6940 1.1 mrg rm -fr conftest.dir
6941 1.1 mrg if mkdir conftest.dir; then
6942 1.1 mrg cd conftest.dir
6943 1.1 mrg # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6944 1.1 mrg cat >Imakefile <<'EOF'
6945 1.1 mrg acfindx:
6946 1.1 mrg @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6947 1.1 mrg EOF
6948 1.1 mrg if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6949 1.1 mrg # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6950 1.1 mrg eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6951 1.1 mrg # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6952 1.1 mrg for ac_extension in a so sl dylib dll; do
6953 1.1 mrg if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6954 1.1 mrg test -f $ac_im_libdir/libX11.$ac_extension; then
6955 1.1 mrg ac_im_usrlibdir=$ac_im_libdir; break
6956 1.1 mrg fi
6957 1.1 mrg done
6958 1.1 mrg # Screen out bogus values from the imake configuration. They are
6959 1.1 mrg # bogus both because they are the default anyway, and because
6960 1.1 mrg # using them would break gcc on systems where it needs fixed includes.
6961 1.1 mrg case $ac_im_incroot in
6962 1.1 mrg /usr/include) ;;
6963 1.1 mrg *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6964 1.1 mrg esac
6965 1.1 mrg case $ac_im_usrlibdir in
6966 1.1 mrg /usr/lib | /lib) ;;
6967 1.1 mrg *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6968 1.1 mrg esac
6969 1.1 mrg fi
6970 1.1 mrg cd ..
6971 1.1 mrg rm -fr conftest.dir
6972 1.1 mrg fi
6973 1.1 mrg
6974 1.1 mrg # Standard set of common directories for X headers.
6975 1.1 mrg # Check X11 before X11Rn because it is often a symlink to the current release.
6976 1.1 mrg ac_x_header_dirs='
6977 1.1 mrg /usr/X11/include
6978 1.1 mrg /usr/X11R6/include
6979 1.1 mrg /usr/X11R5/include
6980 1.1 mrg /usr/X11R4/include
6981 1.1 mrg
6982 1.1 mrg /usr/include/X11
6983 1.1 mrg /usr/include/X11R6
6984 1.1 mrg /usr/include/X11R5
6985 1.1 mrg /usr/include/X11R4
6986 1.1 mrg
6987 1.1 mrg /usr/local/X11/include
6988 1.1 mrg /usr/local/X11R6/include
6989 1.1 mrg /usr/local/X11R5/include
6990 1.1 mrg /usr/local/X11R4/include
6991 1.1 mrg
6992 1.1 mrg /usr/local/include/X11
6993 1.1 mrg /usr/local/include/X11R6
6994 1.1 mrg /usr/local/include/X11R5
6995 1.1 mrg /usr/local/include/X11R4
6996 1.1 mrg
6997 1.1 mrg /usr/X386/include
6998 1.1 mrg /usr/x386/include
6999 1.1 mrg /usr/XFree86/include/X11
7000 1.1 mrg
7001 1.1 mrg /usr/include
7002 1.1 mrg /usr/local/include
7003 1.1 mrg /usr/unsupported/include
7004 1.1 mrg /usr/athena/include
7005 1.1 mrg /usr/local/x11r5/include
7006 1.1 mrg /usr/lpp/Xamples/include
7007 1.1 mrg
7008 1.1 mrg /usr/openwin/include
7009 1.1 mrg /usr/openwin/share/include'
7010 1.1 mrg
7011 1.1 mrg if test "$ac_x_includes" = no; then
7012 1.1 mrg # Guess where to find include files, by looking for Intrinsic.h.
7013 1.1 mrg # First, try using that file with no special directory specified.
7014 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7015 1.1.1.3 snj #line 7015 "configure"
7016 1.1 mrg #include "confdefs.h"
7017 1.1 mrg #include <X11/Intrinsic.h>
7018 1.1 mrg _ACEOF
7019 1.1.1.3 snj if { (eval echo "$as_me:7019: \"$ac_cpp conftest.$ac_ext\"") >&5
7020 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7021 1.1 mrg ac_status=$?
7022 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
7023 1.1 mrg rm -f conftest.er1
7024 1.1 mrg cat conftest.err >&5
7025 1.1.1.3 snj echo "$as_me:7025: \$? = $ac_status" >&5
7026 1.1 mrg (exit $ac_status); } >/dev/null; then
7027 1.1 mrg if test -s conftest.err; then
7028 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
7029 1.1 mrg else
7030 1.1 mrg ac_cpp_err=
7031 1.1 mrg fi
7032 1.1 mrg else
7033 1.1 mrg ac_cpp_err=yes
7034 1.1 mrg fi
7035 1.1 mrg if test -z "$ac_cpp_err"; then
7036 1.1 mrg # We can compile using X headers with no special include directory.
7037 1.1 mrg ac_x_includes=
7038 1.1 mrg else
7039 1.1 mrg echo "$as_me: failed program was:" >&5
7040 1.1 mrg cat conftest.$ac_ext >&5
7041 1.1 mrg for ac_dir in $ac_x_header_dirs; do
7042 1.1 mrg if test -r "$ac_dir/X11/Intrinsic.h"; then
7043 1.1 mrg ac_x_includes=$ac_dir
7044 1.1 mrg break
7045 1.1 mrg fi
7046 1.1 mrg done
7047 1.1 mrg fi
7048 1.1 mrg rm -f conftest.err conftest.$ac_ext
7049 1.1 mrg fi # $ac_x_includes = no
7050 1.1 mrg
7051 1.1 mrg if test "$ac_x_libraries" = no; then
7052 1.1 mrg # Check for the libraries.
7053 1.1 mrg # See if we find them without any special options.
7054 1.1 mrg # Don't add to $LIBS permanently.
7055 1.1 mrg ac_save_LIBS=$LIBS
7056 1.1 mrg LIBS="-lXt $LIBS"
7057 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7058 1.1.1.3 snj #line 7058 "configure"
7059 1.1 mrg #include "confdefs.h"
7060 1.1 mrg #include <X11/Intrinsic.h>
7061 1.1 mrg int
7062 1.1 mrg main ()
7063 1.1 mrg {
7064 1.1 mrg XtMalloc (0)
7065 1.1 mrg ;
7066 1.1 mrg return 0;
7067 1.1 mrg }
7068 1.1 mrg _ACEOF
7069 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7070 1.1.1.3 snj if { (eval echo "$as_me:7070: \"$ac_link\"") >&5
7071 1.1 mrg (eval $ac_link) 2>&5
7072 1.1 mrg ac_status=$?
7073 1.1.1.3 snj echo "$as_me:7073: \$? = $ac_status" >&5
7074 1.1 mrg (exit $ac_status); } &&
7075 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7076 1.1.1.3 snj { (eval echo "$as_me:7076: \"$ac_try\"") >&5
7077 1.1 mrg (eval $ac_try) 2>&5
7078 1.1 mrg ac_status=$?
7079 1.1.1.3 snj echo "$as_me:7079: \$? = $ac_status" >&5
7080 1.1 mrg (exit $ac_status); }; }; then
7081 1.1 mrg LIBS=$ac_save_LIBS
7082 1.1 mrg # We can link X programs with no special library path.
7083 1.1 mrg ac_x_libraries=
7084 1.1 mrg else
7085 1.1 mrg echo "$as_me: failed program was:" >&5
7086 1.1 mrg cat conftest.$ac_ext >&5
7087 1.1 mrg LIBS=$ac_save_LIBS
7088 1.1 mrg for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7089 1.1 mrg do
7090 1.1 mrg # Don't even attempt the hair of trying to link an X program!
7091 1.1 mrg for ac_extension in a so sl dylib dll; do
7092 1.1 mrg if test -r $ac_dir/libXt.$ac_extension; then
7093 1.1 mrg ac_x_libraries=$ac_dir
7094 1.1 mrg break 2
7095 1.1 mrg fi
7096 1.1 mrg done
7097 1.1 mrg done
7098 1.1 mrg fi
7099 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7100 1.1 mrg fi # $ac_x_libraries = no
7101 1.1 mrg
7102 1.1 mrg if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7103 1.1 mrg # Didn't find X anywhere. Cache the known absence of X.
7104 1.1 mrg ac_cv_have_x="have_x=no"
7105 1.1 mrg else
7106 1.1 mrg # Record where we found X for the cache.
7107 1.1 mrg ac_cv_have_x="have_x=yes \
7108 1.1 mrg ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7109 1.1 mrg fi
7110 1.1 mrg fi
7111 1.1 mrg
7112 1.1 mrg fi
7113 1.1 mrg eval "$ac_cv_have_x"
7114 1.1 mrg fi # $with_x != no
7115 1.1 mrg
7116 1.1 mrg if test "$have_x" != yes; then
7117 1.1.1.3 snj echo "$as_me:7117: result: $have_x" >&5
7118 1.1 mrg echo "${ECHO_T}$have_x" >&6
7119 1.1 mrg no_x=yes
7120 1.1 mrg else
7121 1.1 mrg # If each of the values was on the command line, it overrides each guess.
7122 1.1 mrg test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7123 1.1 mrg test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7124 1.1 mrg # Update the cache value to reflect the command line values.
7125 1.1 mrg ac_cv_have_x="have_x=yes \
7126 1.1 mrg ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7127 1.1.1.3 snj echo "$as_me:7127: result: libraries $x_libraries, headers $x_includes" >&5
7128 1.1 mrg echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7129 1.1 mrg fi
7130 1.1 mrg
7131 1.1 mrg if test "$no_x" = yes; then
7132 1.1 mrg # Not all programs may use this symbol, but it does not hurt to define it.
7133 1.1 mrg
7134 1.1 mrg cat >>confdefs.h <<\EOF
7135 1.1 mrg #define X_DISPLAY_MISSING 1
7136 1.1 mrg EOF
7137 1.1 mrg
7138 1.1 mrg X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7139 1.1 mrg else
7140 1.1 mrg if test -n "$x_includes"; then
7141 1.1 mrg X_CFLAGS="$X_CFLAGS -I$x_includes"
7142 1.1 mrg fi
7143 1.1 mrg
7144 1.1 mrg # It would also be nice to do this for all -L options, not just this one.
7145 1.1 mrg if test -n "$x_libraries"; then
7146 1.1 mrg X_LIBS="$X_LIBS -L$x_libraries"
7147 1.1 mrg # For Solaris; some versions of Sun CC require a space after -R and
7148 1.1 mrg # others require no space. Words are not sufficient . . . .
7149 1.1 mrg case `(uname -sr) 2>/dev/null` in
7150 1.1 mrg "SunOS 5"*)
7151 1.1.1.3 snj echo "$as_me:7151: checking whether -R must be followed by a space" >&5
7152 1.1 mrg echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7153 1.1 mrg ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7154 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7155 1.1.1.3 snj #line 7155 "configure"
7156 1.1 mrg #include "confdefs.h"
7157 1.1 mrg
7158 1.1 mrg int
7159 1.1 mrg main ()
7160 1.1 mrg {
7161 1.1 mrg
7162 1.1 mrg ;
7163 1.1 mrg return 0;
7164 1.1 mrg }
7165 1.1 mrg _ACEOF
7166 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7167 1.1.1.3 snj if { (eval echo "$as_me:7167: \"$ac_link\"") >&5
7168 1.1 mrg (eval $ac_link) 2>&5
7169 1.1 mrg ac_status=$?
7170 1.1.1.3 snj echo "$as_me:7170: \$? = $ac_status" >&5
7171 1.1 mrg (exit $ac_status); } &&
7172 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7173 1.1.1.3 snj { (eval echo "$as_me:7173: \"$ac_try\"") >&5
7174 1.1 mrg (eval $ac_try) 2>&5
7175 1.1 mrg ac_status=$?
7176 1.1.1.3 snj echo "$as_me:7176: \$? = $ac_status" >&5
7177 1.1 mrg (exit $ac_status); }; }; then
7178 1.1 mrg ac_R_nospace=yes
7179 1.1 mrg else
7180 1.1 mrg echo "$as_me: failed program was:" >&5
7181 1.1 mrg cat conftest.$ac_ext >&5
7182 1.1 mrg ac_R_nospace=no
7183 1.1 mrg fi
7184 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7185 1.1 mrg if test $ac_R_nospace = yes; then
7186 1.1.1.3 snj echo "$as_me:7186: result: no" >&5
7187 1.1 mrg echo "${ECHO_T}no" >&6
7188 1.1 mrg X_LIBS="$X_LIBS -R$x_libraries"
7189 1.1 mrg else
7190 1.1 mrg LIBS="$ac_xsave_LIBS -R $x_libraries"
7191 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7192 1.1.1.3 snj #line 7192 "configure"
7193 1.1 mrg #include "confdefs.h"
7194 1.1 mrg
7195 1.1 mrg int
7196 1.1 mrg main ()
7197 1.1 mrg {
7198 1.1 mrg
7199 1.1 mrg ;
7200 1.1 mrg return 0;
7201 1.1 mrg }
7202 1.1 mrg _ACEOF
7203 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7204 1.1.1.3 snj if { (eval echo "$as_me:7204: \"$ac_link\"") >&5
7205 1.1 mrg (eval $ac_link) 2>&5
7206 1.1 mrg ac_status=$?
7207 1.1.1.3 snj echo "$as_me:7207: \$? = $ac_status" >&5
7208 1.1 mrg (exit $ac_status); } &&
7209 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7210 1.1.1.3 snj { (eval echo "$as_me:7210: \"$ac_try\"") >&5
7211 1.1 mrg (eval $ac_try) 2>&5
7212 1.1 mrg ac_status=$?
7213 1.1.1.3 snj echo "$as_me:7213: \$? = $ac_status" >&5
7214 1.1 mrg (exit $ac_status); }; }; then
7215 1.1 mrg ac_R_space=yes
7216 1.1 mrg else
7217 1.1 mrg echo "$as_me: failed program was:" >&5
7218 1.1 mrg cat conftest.$ac_ext >&5
7219 1.1 mrg ac_R_space=no
7220 1.1 mrg fi
7221 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7222 1.1 mrg if test $ac_R_space = yes; then
7223 1.1.1.3 snj echo "$as_me:7223: result: yes" >&5
7224 1.1 mrg echo "${ECHO_T}yes" >&6
7225 1.1 mrg X_LIBS="$X_LIBS -R $x_libraries"
7226 1.1 mrg else
7227 1.1.1.3 snj echo "$as_me:7227: result: neither works" >&5
7228 1.1 mrg echo "${ECHO_T}neither works" >&6
7229 1.1 mrg fi
7230 1.1 mrg fi
7231 1.1 mrg LIBS=$ac_xsave_LIBS
7232 1.1 mrg esac
7233 1.1 mrg fi
7234 1.1 mrg
7235 1.1 mrg # Check for system-dependent libraries X programs must link with.
7236 1.1 mrg # Do this before checking for the system-independent R6 libraries
7237 1.1 mrg # (-lICE), since we may need -lsocket or whatever for X linking.
7238 1.1 mrg
7239 1.1 mrg if test "$ISC" = yes; then
7240 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7241 1.1 mrg else
7242 1.1 mrg # Martyn Johnson says this is needed for Ultrix, if the X
7243 1.1 mrg # libraries were built with DECnet support. And Karl Berry says
7244 1.1 mrg # the Alpha needs dnet_stub (dnet does not exist).
7245 1.1 mrg ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7246 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7247 1.1.1.3 snj #line 7247 "configure"
7248 1.1 mrg #include "confdefs.h"
7249 1.1 mrg
7250 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7251 1.1 mrg #ifdef __cplusplus
7252 1.1 mrg extern "C"
7253 1.1 mrg #endif
7254 1.1 mrg /* We use char because int might match the return type of a gcc2
7255 1.1 mrg builtin and then its argument prototype would still apply. */
7256 1.1 mrg char XOpenDisplay ();
7257 1.1 mrg int
7258 1.1 mrg main ()
7259 1.1 mrg {
7260 1.1 mrg XOpenDisplay ();
7261 1.1 mrg ;
7262 1.1 mrg return 0;
7263 1.1 mrg }
7264 1.1 mrg _ACEOF
7265 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7266 1.1.1.3 snj if { (eval echo "$as_me:7266: \"$ac_link\"") >&5
7267 1.1 mrg (eval $ac_link) 2>&5
7268 1.1 mrg ac_status=$?
7269 1.1.1.3 snj echo "$as_me:7269: \$? = $ac_status" >&5
7270 1.1 mrg (exit $ac_status); } &&
7271 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7272 1.1.1.3 snj { (eval echo "$as_me:7272: \"$ac_try\"") >&5
7273 1.1 mrg (eval $ac_try) 2>&5
7274 1.1 mrg ac_status=$?
7275 1.1.1.3 snj echo "$as_me:7275: \$? = $ac_status" >&5
7276 1.1 mrg (exit $ac_status); }; }; then
7277 1.1 mrg :
7278 1.1 mrg else
7279 1.1 mrg echo "$as_me: failed program was:" >&5
7280 1.1 mrg cat conftest.$ac_ext >&5
7281 1.1.1.3 snj echo "$as_me:7281: checking for dnet_ntoa in -ldnet" >&5
7282 1.1 mrg echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7283 1.1 mrg if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7284 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7285 1.1 mrg else
7286 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7287 1.1 mrg LIBS="-ldnet $LIBS"
7288 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7289 1.1.1.3 snj #line 7289 "configure"
7290 1.1 mrg #include "confdefs.h"
7291 1.1 mrg
7292 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7293 1.1 mrg #ifdef __cplusplus
7294 1.1 mrg extern "C"
7295 1.1 mrg #endif
7296 1.1 mrg /* We use char because int might match the return type of a gcc2
7297 1.1 mrg builtin and then its argument prototype would still apply. */
7298 1.1 mrg char dnet_ntoa ();
7299 1.1 mrg int
7300 1.1 mrg main ()
7301 1.1 mrg {
7302 1.1 mrg dnet_ntoa ();
7303 1.1 mrg ;
7304 1.1 mrg return 0;
7305 1.1 mrg }
7306 1.1 mrg _ACEOF
7307 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7308 1.1.1.3 snj if { (eval echo "$as_me:7308: \"$ac_link\"") >&5
7309 1.1 mrg (eval $ac_link) 2>&5
7310 1.1 mrg ac_status=$?
7311 1.1.1.3 snj echo "$as_me:7311: \$? = $ac_status" >&5
7312 1.1 mrg (exit $ac_status); } &&
7313 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7314 1.1.1.3 snj { (eval echo "$as_me:7314: \"$ac_try\"") >&5
7315 1.1 mrg (eval $ac_try) 2>&5
7316 1.1 mrg ac_status=$?
7317 1.1.1.3 snj echo "$as_me:7317: \$? = $ac_status" >&5
7318 1.1 mrg (exit $ac_status); }; }; then
7319 1.1 mrg ac_cv_lib_dnet_dnet_ntoa=yes
7320 1.1 mrg else
7321 1.1 mrg echo "$as_me: failed program was:" >&5
7322 1.1 mrg cat conftest.$ac_ext >&5
7323 1.1 mrg ac_cv_lib_dnet_dnet_ntoa=no
7324 1.1 mrg fi
7325 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7326 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7327 1.1 mrg fi
7328 1.1.1.3 snj echo "$as_me:7328: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7329 1.1 mrg echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7330 1.1 mrg if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7331 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7332 1.1 mrg fi
7333 1.1 mrg
7334 1.1 mrg if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7335 1.1.1.3 snj echo "$as_me:7335: checking for dnet_ntoa in -ldnet_stub" >&5
7336 1.1 mrg echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7337 1.1 mrg if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7338 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7339 1.1 mrg else
7340 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7341 1.1 mrg LIBS="-ldnet_stub $LIBS"
7342 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7343 1.1.1.3 snj #line 7343 "configure"
7344 1.1 mrg #include "confdefs.h"
7345 1.1 mrg
7346 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7347 1.1 mrg #ifdef __cplusplus
7348 1.1 mrg extern "C"
7349 1.1 mrg #endif
7350 1.1 mrg /* We use char because int might match the return type of a gcc2
7351 1.1 mrg builtin and then its argument prototype would still apply. */
7352 1.1 mrg char dnet_ntoa ();
7353 1.1 mrg int
7354 1.1 mrg main ()
7355 1.1 mrg {
7356 1.1 mrg dnet_ntoa ();
7357 1.1 mrg ;
7358 1.1 mrg return 0;
7359 1.1 mrg }
7360 1.1 mrg _ACEOF
7361 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7362 1.1.1.3 snj if { (eval echo "$as_me:7362: \"$ac_link\"") >&5
7363 1.1 mrg (eval $ac_link) 2>&5
7364 1.1 mrg ac_status=$?
7365 1.1.1.3 snj echo "$as_me:7365: \$? = $ac_status" >&5
7366 1.1 mrg (exit $ac_status); } &&
7367 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7368 1.1.1.3 snj { (eval echo "$as_me:7368: \"$ac_try\"") >&5
7369 1.1 mrg (eval $ac_try) 2>&5
7370 1.1 mrg ac_status=$?
7371 1.1.1.3 snj echo "$as_me:7371: \$? = $ac_status" >&5
7372 1.1 mrg (exit $ac_status); }; }; then
7373 1.1 mrg ac_cv_lib_dnet_stub_dnet_ntoa=yes
7374 1.1 mrg else
7375 1.1 mrg echo "$as_me: failed program was:" >&5
7376 1.1 mrg cat conftest.$ac_ext >&5
7377 1.1 mrg ac_cv_lib_dnet_stub_dnet_ntoa=no
7378 1.1 mrg fi
7379 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7380 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7381 1.1 mrg fi
7382 1.1.1.3 snj echo "$as_me:7382: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7383 1.1 mrg echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7384 1.1 mrg if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7385 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7386 1.1 mrg fi
7387 1.1 mrg
7388 1.1 mrg fi
7389 1.1 mrg fi
7390 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7391 1.1 mrg LIBS="$ac_xsave_LIBS"
7392 1.1 mrg
7393 1.1 mrg # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7394 1.1 mrg # to get the SysV transport functions.
7395 1.1 mrg # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7396 1.1 mrg # needs -lnsl.
7397 1.1 mrg # The nsl library prevents programs from opening the X display
7398 1.1 mrg # on Irix 5.2, according to T.E. Dickey.
7399 1.1 mrg # The functions gethostbyname, getservbyname, and inet_addr are
7400 1.1 mrg # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7401 1.1.1.3 snj echo "$as_me:7401: checking for gethostbyname" >&5
7402 1.1 mrg echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7403 1.1 mrg if test "${ac_cv_func_gethostbyname+set}" = set; then
7404 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7405 1.1 mrg else
7406 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7407 1.1.1.3 snj #line 7407 "configure"
7408 1.1 mrg #include "confdefs.h"
7409 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7410 1.1 mrg which can conflict with char gethostbyname (); below. */
7411 1.1 mrg #include <assert.h>
7412 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7413 1.1 mrg #ifdef __cplusplus
7414 1.1 mrg extern "C"
7415 1.1 mrg #endif
7416 1.1 mrg /* We use char because int might match the return type of a gcc2
7417 1.1 mrg builtin and then its argument prototype would still apply. */
7418 1.1 mrg char gethostbyname ();
7419 1.1 mrg char (*f) ();
7420 1.1 mrg
7421 1.1 mrg int
7422 1.1 mrg main ()
7423 1.1 mrg {
7424 1.1 mrg /* The GNU C library defines this for functions which it implements
7425 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7426 1.1 mrg something starting with __ and the normal name is an alias. */
7427 1.1 mrg #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7428 1.1 mrg choke me
7429 1.1 mrg #else
7430 1.1 mrg f = gethostbyname;
7431 1.1 mrg #endif
7432 1.1 mrg
7433 1.1 mrg ;
7434 1.1 mrg return 0;
7435 1.1 mrg }
7436 1.1 mrg _ACEOF
7437 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7438 1.1.1.3 snj if { (eval echo "$as_me:7438: \"$ac_link\"") >&5
7439 1.1 mrg (eval $ac_link) 2>&5
7440 1.1 mrg ac_status=$?
7441 1.1.1.3 snj echo "$as_me:7441: \$? = $ac_status" >&5
7442 1.1 mrg (exit $ac_status); } &&
7443 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7444 1.1.1.3 snj { (eval echo "$as_me:7444: \"$ac_try\"") >&5
7445 1.1 mrg (eval $ac_try) 2>&5
7446 1.1 mrg ac_status=$?
7447 1.1.1.3 snj echo "$as_me:7447: \$? = $ac_status" >&5
7448 1.1 mrg (exit $ac_status); }; }; then
7449 1.1 mrg ac_cv_func_gethostbyname=yes
7450 1.1 mrg else
7451 1.1 mrg echo "$as_me: failed program was:" >&5
7452 1.1 mrg cat conftest.$ac_ext >&5
7453 1.1 mrg ac_cv_func_gethostbyname=no
7454 1.1 mrg fi
7455 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7456 1.1 mrg fi
7457 1.1.1.3 snj echo "$as_me:7457: result: $ac_cv_func_gethostbyname" >&5
7458 1.1 mrg echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7459 1.1 mrg
7460 1.1 mrg if test $ac_cv_func_gethostbyname = no; then
7461 1.1.1.3 snj echo "$as_me:7461: checking for gethostbyname in -lnsl" >&5
7462 1.1 mrg echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7463 1.1 mrg if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7464 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7465 1.1 mrg else
7466 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7467 1.1 mrg LIBS="-lnsl $LIBS"
7468 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7469 1.1.1.3 snj #line 7469 "configure"
7470 1.1 mrg #include "confdefs.h"
7471 1.1 mrg
7472 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7473 1.1 mrg #ifdef __cplusplus
7474 1.1 mrg extern "C"
7475 1.1 mrg #endif
7476 1.1 mrg /* We use char because int might match the return type of a gcc2
7477 1.1 mrg builtin and then its argument prototype would still apply. */
7478 1.1 mrg char gethostbyname ();
7479 1.1 mrg int
7480 1.1 mrg main ()
7481 1.1 mrg {
7482 1.1 mrg gethostbyname ();
7483 1.1 mrg ;
7484 1.1 mrg return 0;
7485 1.1 mrg }
7486 1.1 mrg _ACEOF
7487 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7488 1.1.1.3 snj if { (eval echo "$as_me:7488: \"$ac_link\"") >&5
7489 1.1 mrg (eval $ac_link) 2>&5
7490 1.1 mrg ac_status=$?
7491 1.1.1.3 snj echo "$as_me:7491: \$? = $ac_status" >&5
7492 1.1 mrg (exit $ac_status); } &&
7493 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7494 1.1.1.3 snj { (eval echo "$as_me:7494: \"$ac_try\"") >&5
7495 1.1 mrg (eval $ac_try) 2>&5
7496 1.1 mrg ac_status=$?
7497 1.1.1.3 snj echo "$as_me:7497: \$? = $ac_status" >&5
7498 1.1 mrg (exit $ac_status); }; }; then
7499 1.1 mrg ac_cv_lib_nsl_gethostbyname=yes
7500 1.1 mrg else
7501 1.1 mrg echo "$as_me: failed program was:" >&5
7502 1.1 mrg cat conftest.$ac_ext >&5
7503 1.1 mrg ac_cv_lib_nsl_gethostbyname=no
7504 1.1 mrg fi
7505 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7506 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7507 1.1 mrg fi
7508 1.1.1.3 snj echo "$as_me:7508: result: $ac_cv_lib_nsl_gethostbyname" >&5
7509 1.1 mrg echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7510 1.1 mrg if test $ac_cv_lib_nsl_gethostbyname = yes; then
7511 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7512 1.1 mrg fi
7513 1.1 mrg
7514 1.1 mrg if test $ac_cv_lib_nsl_gethostbyname = no; then
7515 1.1.1.3 snj echo "$as_me:7515: checking for gethostbyname in -lbsd" >&5
7516 1.1 mrg echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7517 1.1 mrg if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7518 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7519 1.1 mrg else
7520 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7521 1.1 mrg LIBS="-lbsd $LIBS"
7522 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7523 1.1.1.3 snj #line 7523 "configure"
7524 1.1 mrg #include "confdefs.h"
7525 1.1 mrg
7526 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7527 1.1 mrg #ifdef __cplusplus
7528 1.1 mrg extern "C"
7529 1.1 mrg #endif
7530 1.1 mrg /* We use char because int might match the return type of a gcc2
7531 1.1 mrg builtin and then its argument prototype would still apply. */
7532 1.1 mrg char gethostbyname ();
7533 1.1 mrg int
7534 1.1 mrg main ()
7535 1.1 mrg {
7536 1.1 mrg gethostbyname ();
7537 1.1 mrg ;
7538 1.1 mrg return 0;
7539 1.1 mrg }
7540 1.1 mrg _ACEOF
7541 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7542 1.1.1.3 snj if { (eval echo "$as_me:7542: \"$ac_link\"") >&5
7543 1.1 mrg (eval $ac_link) 2>&5
7544 1.1 mrg ac_status=$?
7545 1.1.1.3 snj echo "$as_me:7545: \$? = $ac_status" >&5
7546 1.1 mrg (exit $ac_status); } &&
7547 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7548 1.1.1.3 snj { (eval echo "$as_me:7548: \"$ac_try\"") >&5
7549 1.1 mrg (eval $ac_try) 2>&5
7550 1.1 mrg ac_status=$?
7551 1.1.1.3 snj echo "$as_me:7551: \$? = $ac_status" >&5
7552 1.1 mrg (exit $ac_status); }; }; then
7553 1.1 mrg ac_cv_lib_bsd_gethostbyname=yes
7554 1.1 mrg else
7555 1.1 mrg echo "$as_me: failed program was:" >&5
7556 1.1 mrg cat conftest.$ac_ext >&5
7557 1.1 mrg ac_cv_lib_bsd_gethostbyname=no
7558 1.1 mrg fi
7559 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7560 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7561 1.1 mrg fi
7562 1.1.1.3 snj echo "$as_me:7562: result: $ac_cv_lib_bsd_gethostbyname" >&5
7563 1.1 mrg echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7564 1.1 mrg if test $ac_cv_lib_bsd_gethostbyname = yes; then
7565 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7566 1.1 mrg fi
7567 1.1 mrg
7568 1.1 mrg fi
7569 1.1 mrg fi
7570 1.1 mrg
7571 1.1 mrg # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
7572 1.1 mrg # socket/setsockopt and other routines are undefined under SCO ODT
7573 1.1 mrg # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7574 1.1 mrg # on later versions), says Simon Leinen: it contains gethostby*
7575 1.1 mrg # variants that don't use the nameserver (or something). -lsocket
7576 1.1 mrg # must be given before -lnsl if both are needed. We assume that
7577 1.1 mrg # if connect needs -lnsl, so does gethostbyname.
7578 1.1.1.3 snj echo "$as_me:7578: checking for connect" >&5
7579 1.1 mrg echo $ECHO_N "checking for connect... $ECHO_C" >&6
7580 1.1 mrg if test "${ac_cv_func_connect+set}" = set; then
7581 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7582 1.1 mrg else
7583 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7584 1.1.1.3 snj #line 7584 "configure"
7585 1.1 mrg #include "confdefs.h"
7586 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7587 1.1 mrg which can conflict with char connect (); below. */
7588 1.1 mrg #include <assert.h>
7589 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7590 1.1 mrg #ifdef __cplusplus
7591 1.1 mrg extern "C"
7592 1.1 mrg #endif
7593 1.1 mrg /* We use char because int might match the return type of a gcc2
7594 1.1 mrg builtin and then its argument prototype would still apply. */
7595 1.1 mrg char connect ();
7596 1.1 mrg char (*f) ();
7597 1.1 mrg
7598 1.1 mrg int
7599 1.1 mrg main ()
7600 1.1 mrg {
7601 1.1 mrg /* The GNU C library defines this for functions which it implements
7602 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7603 1.1 mrg something starting with __ and the normal name is an alias. */
7604 1.1 mrg #if defined (__stub_connect) || defined (__stub___connect)
7605 1.1 mrg choke me
7606 1.1 mrg #else
7607 1.1 mrg f = connect;
7608 1.1 mrg #endif
7609 1.1 mrg
7610 1.1 mrg ;
7611 1.1 mrg return 0;
7612 1.1 mrg }
7613 1.1 mrg _ACEOF
7614 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7615 1.1.1.3 snj if { (eval echo "$as_me:7615: \"$ac_link\"") >&5
7616 1.1 mrg (eval $ac_link) 2>&5
7617 1.1 mrg ac_status=$?
7618 1.1.1.3 snj echo "$as_me:7618: \$? = $ac_status" >&5
7619 1.1 mrg (exit $ac_status); } &&
7620 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7621 1.1.1.3 snj { (eval echo "$as_me:7621: \"$ac_try\"") >&5
7622 1.1 mrg (eval $ac_try) 2>&5
7623 1.1 mrg ac_status=$?
7624 1.1.1.3 snj echo "$as_me:7624: \$? = $ac_status" >&5
7625 1.1 mrg (exit $ac_status); }; }; then
7626 1.1 mrg ac_cv_func_connect=yes
7627 1.1 mrg else
7628 1.1 mrg echo "$as_me: failed program was:" >&5
7629 1.1 mrg cat conftest.$ac_ext >&5
7630 1.1 mrg ac_cv_func_connect=no
7631 1.1 mrg fi
7632 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7633 1.1 mrg fi
7634 1.1.1.3 snj echo "$as_me:7634: result: $ac_cv_func_connect" >&5
7635 1.1 mrg echo "${ECHO_T}$ac_cv_func_connect" >&6
7636 1.1 mrg
7637 1.1 mrg if test $ac_cv_func_connect = no; then
7638 1.1.1.3 snj echo "$as_me:7638: checking for connect in -lsocket" >&5
7639 1.1 mrg echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7640 1.1 mrg if test "${ac_cv_lib_socket_connect+set}" = set; then
7641 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7642 1.1 mrg else
7643 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7644 1.1 mrg LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7645 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7646 1.1.1.3 snj #line 7646 "configure"
7647 1.1 mrg #include "confdefs.h"
7648 1.1 mrg
7649 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7650 1.1 mrg #ifdef __cplusplus
7651 1.1 mrg extern "C"
7652 1.1 mrg #endif
7653 1.1 mrg /* We use char because int might match the return type of a gcc2
7654 1.1 mrg builtin and then its argument prototype would still apply. */
7655 1.1 mrg char connect ();
7656 1.1 mrg int
7657 1.1 mrg main ()
7658 1.1 mrg {
7659 1.1 mrg connect ();
7660 1.1 mrg ;
7661 1.1 mrg return 0;
7662 1.1 mrg }
7663 1.1 mrg _ACEOF
7664 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7665 1.1.1.3 snj if { (eval echo "$as_me:7665: \"$ac_link\"") >&5
7666 1.1 mrg (eval $ac_link) 2>&5
7667 1.1 mrg ac_status=$?
7668 1.1.1.3 snj echo "$as_me:7668: \$? = $ac_status" >&5
7669 1.1 mrg (exit $ac_status); } &&
7670 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7671 1.1.1.3 snj { (eval echo "$as_me:7671: \"$ac_try\"") >&5
7672 1.1 mrg (eval $ac_try) 2>&5
7673 1.1 mrg ac_status=$?
7674 1.1.1.3 snj echo "$as_me:7674: \$? = $ac_status" >&5
7675 1.1 mrg (exit $ac_status); }; }; then
7676 1.1 mrg ac_cv_lib_socket_connect=yes
7677 1.1 mrg else
7678 1.1 mrg echo "$as_me: failed program was:" >&5
7679 1.1 mrg cat conftest.$ac_ext >&5
7680 1.1 mrg ac_cv_lib_socket_connect=no
7681 1.1 mrg fi
7682 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7684 1.1 mrg fi
7685 1.1.1.3 snj echo "$as_me:7685: result: $ac_cv_lib_socket_connect" >&5
7686 1.1 mrg echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7687 1.1 mrg if test $ac_cv_lib_socket_connect = yes; then
7688 1.1 mrg X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7689 1.1 mrg fi
7690 1.1 mrg
7691 1.1 mrg fi
7692 1.1 mrg
7693 1.1 mrg # Guillermo Gomez says -lposix is necessary on A/UX.
7694 1.1.1.3 snj echo "$as_me:7694: checking for remove" >&5
7695 1.1 mrg echo $ECHO_N "checking for remove... $ECHO_C" >&6
7696 1.1 mrg if test "${ac_cv_func_remove+set}" = set; then
7697 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7698 1.1 mrg else
7699 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7700 1.1.1.3 snj #line 7700 "configure"
7701 1.1 mrg #include "confdefs.h"
7702 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7703 1.1 mrg which can conflict with char remove (); below. */
7704 1.1 mrg #include <assert.h>
7705 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7706 1.1 mrg #ifdef __cplusplus
7707 1.1 mrg extern "C"
7708 1.1 mrg #endif
7709 1.1 mrg /* We use char because int might match the return type of a gcc2
7710 1.1 mrg builtin and then its argument prototype would still apply. */
7711 1.1 mrg char remove ();
7712 1.1 mrg char (*f) ();
7713 1.1 mrg
7714 1.1 mrg int
7715 1.1 mrg main ()
7716 1.1 mrg {
7717 1.1 mrg /* The GNU C library defines this for functions which it implements
7718 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7719 1.1 mrg something starting with __ and the normal name is an alias. */
7720 1.1 mrg #if defined (__stub_remove) || defined (__stub___remove)
7721 1.1 mrg choke me
7722 1.1 mrg #else
7723 1.1 mrg f = remove;
7724 1.1 mrg #endif
7725 1.1 mrg
7726 1.1 mrg ;
7727 1.1 mrg return 0;
7728 1.1 mrg }
7729 1.1 mrg _ACEOF
7730 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7731 1.1.1.3 snj if { (eval echo "$as_me:7731: \"$ac_link\"") >&5
7732 1.1 mrg (eval $ac_link) 2>&5
7733 1.1 mrg ac_status=$?
7734 1.1.1.3 snj echo "$as_me:7734: \$? = $ac_status" >&5
7735 1.1 mrg (exit $ac_status); } &&
7736 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7737 1.1.1.3 snj { (eval echo "$as_me:7737: \"$ac_try\"") >&5
7738 1.1 mrg (eval $ac_try) 2>&5
7739 1.1 mrg ac_status=$?
7740 1.1.1.3 snj echo "$as_me:7740: \$? = $ac_status" >&5
7741 1.1 mrg (exit $ac_status); }; }; then
7742 1.1 mrg ac_cv_func_remove=yes
7743 1.1 mrg else
7744 1.1 mrg echo "$as_me: failed program was:" >&5
7745 1.1 mrg cat conftest.$ac_ext >&5
7746 1.1 mrg ac_cv_func_remove=no
7747 1.1 mrg fi
7748 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7749 1.1 mrg fi
7750 1.1.1.3 snj echo "$as_me:7750: result: $ac_cv_func_remove" >&5
7751 1.1 mrg echo "${ECHO_T}$ac_cv_func_remove" >&6
7752 1.1 mrg
7753 1.1 mrg if test $ac_cv_func_remove = no; then
7754 1.1.1.3 snj echo "$as_me:7754: checking for remove in -lposix" >&5
7755 1.1 mrg echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7756 1.1 mrg if test "${ac_cv_lib_posix_remove+set}" = set; then
7757 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7758 1.1 mrg else
7759 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7760 1.1 mrg LIBS="-lposix $LIBS"
7761 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7762 1.1.1.3 snj #line 7762 "configure"
7763 1.1 mrg #include "confdefs.h"
7764 1.1 mrg
7765 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7766 1.1 mrg #ifdef __cplusplus
7767 1.1 mrg extern "C"
7768 1.1 mrg #endif
7769 1.1 mrg /* We use char because int might match the return type of a gcc2
7770 1.1 mrg builtin and then its argument prototype would still apply. */
7771 1.1 mrg char remove ();
7772 1.1 mrg int
7773 1.1 mrg main ()
7774 1.1 mrg {
7775 1.1 mrg remove ();
7776 1.1 mrg ;
7777 1.1 mrg return 0;
7778 1.1 mrg }
7779 1.1 mrg _ACEOF
7780 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7781 1.1.1.3 snj if { (eval echo "$as_me:7781: \"$ac_link\"") >&5
7782 1.1 mrg (eval $ac_link) 2>&5
7783 1.1 mrg ac_status=$?
7784 1.1.1.3 snj echo "$as_me:7784: \$? = $ac_status" >&5
7785 1.1 mrg (exit $ac_status); } &&
7786 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7787 1.1.1.3 snj { (eval echo "$as_me:7787: \"$ac_try\"") >&5
7788 1.1 mrg (eval $ac_try) 2>&5
7789 1.1 mrg ac_status=$?
7790 1.1.1.3 snj echo "$as_me:7790: \$? = $ac_status" >&5
7791 1.1 mrg (exit $ac_status); }; }; then
7792 1.1 mrg ac_cv_lib_posix_remove=yes
7793 1.1 mrg else
7794 1.1 mrg echo "$as_me: failed program was:" >&5
7795 1.1 mrg cat conftest.$ac_ext >&5
7796 1.1 mrg ac_cv_lib_posix_remove=no
7797 1.1 mrg fi
7798 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7799 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7800 1.1 mrg fi
7801 1.1.1.3 snj echo "$as_me:7801: result: $ac_cv_lib_posix_remove" >&5
7802 1.1 mrg echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7803 1.1 mrg if test $ac_cv_lib_posix_remove = yes; then
7804 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7805 1.1 mrg fi
7806 1.1 mrg
7807 1.1 mrg fi
7808 1.1 mrg
7809 1.1 mrg # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7810 1.1.1.3 snj echo "$as_me:7810: checking for shmat" >&5
7811 1.1 mrg echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7812 1.1 mrg if test "${ac_cv_func_shmat+set}" = set; then
7813 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7814 1.1 mrg else
7815 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7816 1.1.1.3 snj #line 7816 "configure"
7817 1.1 mrg #include "confdefs.h"
7818 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
7819 1.1 mrg which can conflict with char shmat (); below. */
7820 1.1 mrg #include <assert.h>
7821 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7822 1.1 mrg #ifdef __cplusplus
7823 1.1 mrg extern "C"
7824 1.1 mrg #endif
7825 1.1 mrg /* We use char because int might match the return type of a gcc2
7826 1.1 mrg builtin and then its argument prototype would still apply. */
7827 1.1 mrg char shmat ();
7828 1.1 mrg char (*f) ();
7829 1.1 mrg
7830 1.1 mrg int
7831 1.1 mrg main ()
7832 1.1 mrg {
7833 1.1 mrg /* The GNU C library defines this for functions which it implements
7834 1.1 mrg to always fail with ENOSYS. Some functions are actually named
7835 1.1 mrg something starting with __ and the normal name is an alias. */
7836 1.1 mrg #if defined (__stub_shmat) || defined (__stub___shmat)
7837 1.1 mrg choke me
7838 1.1 mrg #else
7839 1.1 mrg f = shmat;
7840 1.1 mrg #endif
7841 1.1 mrg
7842 1.1 mrg ;
7843 1.1 mrg return 0;
7844 1.1 mrg }
7845 1.1 mrg _ACEOF
7846 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7847 1.1.1.3 snj if { (eval echo "$as_me:7847: \"$ac_link\"") >&5
7848 1.1 mrg (eval $ac_link) 2>&5
7849 1.1 mrg ac_status=$?
7850 1.1.1.3 snj echo "$as_me:7850: \$? = $ac_status" >&5
7851 1.1 mrg (exit $ac_status); } &&
7852 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7853 1.1.1.3 snj { (eval echo "$as_me:7853: \"$ac_try\"") >&5
7854 1.1 mrg (eval $ac_try) 2>&5
7855 1.1 mrg ac_status=$?
7856 1.1.1.3 snj echo "$as_me:7856: \$? = $ac_status" >&5
7857 1.1 mrg (exit $ac_status); }; }; then
7858 1.1 mrg ac_cv_func_shmat=yes
7859 1.1 mrg else
7860 1.1 mrg echo "$as_me: failed program was:" >&5
7861 1.1 mrg cat conftest.$ac_ext >&5
7862 1.1 mrg ac_cv_func_shmat=no
7863 1.1 mrg fi
7864 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7865 1.1 mrg fi
7866 1.1.1.3 snj echo "$as_me:7866: result: $ac_cv_func_shmat" >&5
7867 1.1 mrg echo "${ECHO_T}$ac_cv_func_shmat" >&6
7868 1.1 mrg
7869 1.1 mrg if test $ac_cv_func_shmat = no; then
7870 1.1.1.3 snj echo "$as_me:7870: checking for shmat in -lipc" >&5
7871 1.1 mrg echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7872 1.1 mrg if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7873 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7874 1.1 mrg else
7875 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7876 1.1 mrg LIBS="-lipc $LIBS"
7877 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7878 1.1.1.3 snj #line 7878 "configure"
7879 1.1 mrg #include "confdefs.h"
7880 1.1 mrg
7881 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7882 1.1 mrg #ifdef __cplusplus
7883 1.1 mrg extern "C"
7884 1.1 mrg #endif
7885 1.1 mrg /* We use char because int might match the return type of a gcc2
7886 1.1 mrg builtin and then its argument prototype would still apply. */
7887 1.1 mrg char shmat ();
7888 1.1 mrg int
7889 1.1 mrg main ()
7890 1.1 mrg {
7891 1.1 mrg shmat ();
7892 1.1 mrg ;
7893 1.1 mrg return 0;
7894 1.1 mrg }
7895 1.1 mrg _ACEOF
7896 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7897 1.1.1.3 snj if { (eval echo "$as_me:7897: \"$ac_link\"") >&5
7898 1.1 mrg (eval $ac_link) 2>&5
7899 1.1 mrg ac_status=$?
7900 1.1.1.3 snj echo "$as_me:7900: \$? = $ac_status" >&5
7901 1.1 mrg (exit $ac_status); } &&
7902 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7903 1.1.1.3 snj { (eval echo "$as_me:7903: \"$ac_try\"") >&5
7904 1.1 mrg (eval $ac_try) 2>&5
7905 1.1 mrg ac_status=$?
7906 1.1.1.3 snj echo "$as_me:7906: \$? = $ac_status" >&5
7907 1.1 mrg (exit $ac_status); }; }; then
7908 1.1 mrg ac_cv_lib_ipc_shmat=yes
7909 1.1 mrg else
7910 1.1 mrg echo "$as_me: failed program was:" >&5
7911 1.1 mrg cat conftest.$ac_ext >&5
7912 1.1 mrg ac_cv_lib_ipc_shmat=no
7913 1.1 mrg fi
7914 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7915 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7916 1.1 mrg fi
7917 1.1.1.3 snj echo "$as_me:7917: result: $ac_cv_lib_ipc_shmat" >&5
7918 1.1 mrg echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7919 1.1 mrg if test $ac_cv_lib_ipc_shmat = yes; then
7920 1.1 mrg X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7921 1.1 mrg fi
7922 1.1 mrg
7923 1.1 mrg fi
7924 1.1 mrg fi
7925 1.1 mrg
7926 1.1 mrg # Check for libraries that X11R6 Xt/Xaw programs need.
7927 1.1 mrg ac_save_LDFLAGS=$LDFLAGS
7928 1.1 mrg test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7929 1.1 mrg # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7930 1.1 mrg # check for ICE first), but we must link in the order -lSM -lICE or
7931 1.1 mrg # we get undefined symbols. So assume we have SM if we have ICE.
7932 1.1 mrg # These have to be linked with before -lX11, unlike the other
7933 1.1 mrg # libraries we check for below, so use a different variable.
7934 1.1 mrg # John Interrante, Karl Berry
7935 1.1.1.3 snj echo "$as_me:7935: checking for IceConnectionNumber in -lICE" >&5
7936 1.1 mrg echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7937 1.1 mrg if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7938 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
7939 1.1 mrg else
7940 1.1 mrg ac_check_lib_save_LIBS=$LIBS
7941 1.1 mrg LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7942 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
7943 1.1.1.3 snj #line 7943 "configure"
7944 1.1 mrg #include "confdefs.h"
7945 1.1 mrg
7946 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
7947 1.1 mrg #ifdef __cplusplus
7948 1.1 mrg extern "C"
7949 1.1 mrg #endif
7950 1.1 mrg /* We use char because int might match the return type of a gcc2
7951 1.1 mrg builtin and then its argument prototype would still apply. */
7952 1.1 mrg char IceConnectionNumber ();
7953 1.1 mrg int
7954 1.1 mrg main ()
7955 1.1 mrg {
7956 1.1 mrg IceConnectionNumber ();
7957 1.1 mrg ;
7958 1.1 mrg return 0;
7959 1.1 mrg }
7960 1.1 mrg _ACEOF
7961 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
7962 1.1.1.3 snj if { (eval echo "$as_me:7962: \"$ac_link\"") >&5
7963 1.1 mrg (eval $ac_link) 2>&5
7964 1.1 mrg ac_status=$?
7965 1.1.1.3 snj echo "$as_me:7965: \$? = $ac_status" >&5
7966 1.1 mrg (exit $ac_status); } &&
7967 1.1 mrg { ac_try='test -s conftest$ac_exeext'
7968 1.1.1.3 snj { (eval echo "$as_me:7968: \"$ac_try\"") >&5
7969 1.1 mrg (eval $ac_try) 2>&5
7970 1.1 mrg ac_status=$?
7971 1.1.1.3 snj echo "$as_me:7971: \$? = $ac_status" >&5
7972 1.1 mrg (exit $ac_status); }; }; then
7973 1.1 mrg ac_cv_lib_ICE_IceConnectionNumber=yes
7974 1.1 mrg else
7975 1.1 mrg echo "$as_me: failed program was:" >&5
7976 1.1 mrg cat conftest.$ac_ext >&5
7977 1.1 mrg ac_cv_lib_ICE_IceConnectionNumber=no
7978 1.1 mrg fi
7979 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7980 1.1 mrg LIBS=$ac_check_lib_save_LIBS
7981 1.1 mrg fi
7982 1.1.1.3 snj echo "$as_me:7982: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7983 1.1 mrg echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7984 1.1 mrg if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7985 1.1 mrg X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7986 1.1 mrg fi
7987 1.1 mrg
7988 1.1 mrg LDFLAGS=$ac_save_LDFLAGS
7989 1.1 mrg
7990 1.1 mrg fi
7991 1.1 mrg
7992 1.1 mrg # SYSTEM_NAME=`echo "$cf_cv_system_name"|tr ' ' -`
7993 1.1 mrg
7994 1.1 mrg cf_have_X_LIBS=no
7995 1.1 mrg
7996 1.1 mrg LDFLAGS="$X_LIBS $LDFLAGS"
7997 1.1 mrg
7998 1.1 mrg test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
7999 1.1 mrg
8000 1.1.1.3 snj echo "${as_me-configure}:8000: testing checking additions to CFLAGS ..." 1>&5
8001 1.1 mrg
8002 1.1 mrg cf_check_cflags="$CFLAGS"
8003 1.1 mrg cf_check_cppflags="$CPPFLAGS"
8004 1.1 mrg
8005 1.1 mrg cf_fix_cppflags=no
8006 1.1 mrg cf_new_cflags=
8007 1.1 mrg cf_new_cppflags=
8008 1.1 mrg cf_new_extra_cppflags=
8009 1.1 mrg
8010 1.1 mrg for cf_add_cflags in $X_CFLAGS
8011 1.1 mrg do
8012 1.1 mrg case $cf_fix_cppflags in
8013 1.1 mrg no)
8014 1.1 mrg case $cf_add_cflags in #(vi
8015 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8016 1.1 mrg case $cf_add_cflags in
8017 1.1 mrg -D*)
8018 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8019 1.1 mrg
8020 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8021 1.1 mrg && test -z "${cf_tst_cflags}" \
8022 1.1 mrg && cf_fix_cppflags=yes
8023 1.1 mrg
8024 1.1 mrg if test $cf_fix_cppflags = yes ; then
8025 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8026 1.1 mrg continue
8027 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
8028 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8029 1.1 mrg continue
8030 1.1 mrg fi
8031 1.1 mrg ;;
8032 1.1 mrg esac
8033 1.1 mrg case "$CPPFLAGS" in
8034 1.1 mrg *$cf_add_cflags) #(vi
8035 1.1 mrg ;;
8036 1.1 mrg *) #(vi
8037 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8038 1.1 mrg ;;
8039 1.1 mrg esac
8040 1.1 mrg ;;
8041 1.1 mrg *)
8042 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8043 1.1 mrg ;;
8044 1.1 mrg esac
8045 1.1 mrg ;;
8046 1.1 mrg yes)
8047 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8048 1.1 mrg
8049 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8050 1.1 mrg
8051 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8052 1.1 mrg && test -z "${cf_tst_cflags}" \
8053 1.1 mrg && cf_fix_cppflags=no
8054 1.1 mrg ;;
8055 1.1 mrg esac
8056 1.1 mrg done
8057 1.1 mrg
8058 1.1 mrg if test -n "$cf_new_cflags" ; then
8059 1.1 mrg test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8060 1.1 mrg
8061 1.1.1.3 snj echo "${as_me-configure}:8061: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8062 1.1 mrg
8063 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
8064 1.1 mrg fi
8065 1.1 mrg
8066 1.1 mrg if test -n "$cf_new_cppflags" ; then
8067 1.1 mrg test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8068 1.1 mrg
8069 1.1.1.3 snj echo "${as_me-configure}:8069: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8070 1.1 mrg
8071 1.1.1.3 snj CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8072 1.1 mrg fi
8073 1.1 mrg
8074 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
8075 1.1 mrg test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8076 1.1 mrg
8077 1.1.1.3 snj echo "${as_me-configure}:8077: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8078 1.1 mrg
8079 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8080 1.1 mrg fi
8081 1.1 mrg
8082 1.1 mrg if test "$cf_check_cflags" != "$CFLAGS" ; then
8083 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8084 1.1.1.3 snj #line 8084 "configure"
8085 1.1 mrg #include "confdefs.h"
8086 1.1 mrg #include <stdio.h>
8087 1.1 mrg int
8088 1.1 mrg main ()
8089 1.1 mrg {
8090 1.1 mrg printf("Hello world");
8091 1.1 mrg ;
8092 1.1 mrg return 0;
8093 1.1 mrg }
8094 1.1 mrg _ACEOF
8095 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8096 1.1.1.3 snj if { (eval echo "$as_me:8096: \"$ac_link\"") >&5
8097 1.1 mrg (eval $ac_link) 2>&5
8098 1.1 mrg ac_status=$?
8099 1.1.1.3 snj echo "$as_me:8099: \$? = $ac_status" >&5
8100 1.1 mrg (exit $ac_status); } &&
8101 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8102 1.1.1.3 snj { (eval echo "$as_me:8102: \"$ac_try\"") >&5
8103 1.1 mrg (eval $ac_try) 2>&5
8104 1.1 mrg ac_status=$?
8105 1.1.1.3 snj echo "$as_me:8105: \$? = $ac_status" >&5
8106 1.1 mrg (exit $ac_status); }; }; then
8107 1.1 mrg :
8108 1.1 mrg else
8109 1.1 mrg echo "$as_me: failed program was:" >&5
8110 1.1 mrg cat conftest.$ac_ext >&5
8111 1.1 mrg test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
8112 1.1 mrg
8113 1.1.1.3 snj echo "${as_me-configure}:8113: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
8114 1.1 mrg
8115 1.1 mrg if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
8116 1.1 mrg test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
8117 1.1 mrg
8118 1.1.1.3 snj echo "${as_me-configure}:8118: testing but keeping change to \$CPPFLAGS ..." 1>&5
8119 1.1 mrg
8120 1.1 mrg fi
8121 1.1 mrg CFLAGS="$cf_check_flags"
8122 1.1 mrg fi
8123 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8124 1.1 mrg fi
8125 1.1 mrg
8126 1.1.1.3 snj echo "$as_me:8126: checking for XOpenDisplay" >&5
8127 1.1 mrg echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
8128 1.1 mrg if test "${ac_cv_func_XOpenDisplay+set}" = set; then
8129 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8130 1.1 mrg else
8131 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8132 1.1.1.3 snj #line 8132 "configure"
8133 1.1 mrg #include "confdefs.h"
8134 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
8135 1.1 mrg which can conflict with char XOpenDisplay (); below. */
8136 1.1 mrg #include <assert.h>
8137 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8138 1.1 mrg #ifdef __cplusplus
8139 1.1 mrg extern "C"
8140 1.1 mrg #endif
8141 1.1 mrg /* We use char because int might match the return type of a gcc2
8142 1.1 mrg builtin and then its argument prototype would still apply. */
8143 1.1 mrg char XOpenDisplay ();
8144 1.1 mrg char (*f) ();
8145 1.1 mrg
8146 1.1 mrg int
8147 1.1 mrg main ()
8148 1.1 mrg {
8149 1.1 mrg /* The GNU C library defines this for functions which it implements
8150 1.1 mrg to always fail with ENOSYS. Some functions are actually named
8151 1.1 mrg something starting with __ and the normal name is an alias. */
8152 1.1 mrg #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
8153 1.1 mrg choke me
8154 1.1 mrg #else
8155 1.1 mrg f = XOpenDisplay;
8156 1.1 mrg #endif
8157 1.1 mrg
8158 1.1 mrg ;
8159 1.1 mrg return 0;
8160 1.1 mrg }
8161 1.1 mrg _ACEOF
8162 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8163 1.1.1.3 snj if { (eval echo "$as_me:8163: \"$ac_link\"") >&5
8164 1.1 mrg (eval $ac_link) 2>&5
8165 1.1 mrg ac_status=$?
8166 1.1.1.3 snj echo "$as_me:8166: \$? = $ac_status" >&5
8167 1.1 mrg (exit $ac_status); } &&
8168 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8169 1.1.1.3 snj { (eval echo "$as_me:8169: \"$ac_try\"") >&5
8170 1.1 mrg (eval $ac_try) 2>&5
8171 1.1 mrg ac_status=$?
8172 1.1.1.3 snj echo "$as_me:8172: \$? = $ac_status" >&5
8173 1.1 mrg (exit $ac_status); }; }; then
8174 1.1 mrg ac_cv_func_XOpenDisplay=yes
8175 1.1 mrg else
8176 1.1 mrg echo "$as_me: failed program was:" >&5
8177 1.1 mrg cat conftest.$ac_ext >&5
8178 1.1 mrg ac_cv_func_XOpenDisplay=no
8179 1.1 mrg fi
8180 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8181 1.1 mrg fi
8182 1.1.1.3 snj echo "$as_me:8182: result: $ac_cv_func_XOpenDisplay" >&5
8183 1.1 mrg echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
8184 1.1 mrg if test $ac_cv_func_XOpenDisplay = yes; then
8185 1.1 mrg :
8186 1.1 mrg else
8187 1.1 mrg
8188 1.1.1.3 snj echo "$as_me:8188: checking for XOpenDisplay in -lX11" >&5
8189 1.1 mrg echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
8190 1.1 mrg if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
8191 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8192 1.1 mrg else
8193 1.1 mrg ac_check_lib_save_LIBS=$LIBS
8194 1.1 mrg LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
8195 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8196 1.1.1.3 snj #line 8196 "configure"
8197 1.1 mrg #include "confdefs.h"
8198 1.1 mrg
8199 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8200 1.1 mrg #ifdef __cplusplus
8201 1.1 mrg extern "C"
8202 1.1 mrg #endif
8203 1.1 mrg /* We use char because int might match the return type of a gcc2
8204 1.1 mrg builtin and then its argument prototype would still apply. */
8205 1.1 mrg char XOpenDisplay ();
8206 1.1 mrg int
8207 1.1 mrg main ()
8208 1.1 mrg {
8209 1.1 mrg XOpenDisplay ();
8210 1.1 mrg ;
8211 1.1 mrg return 0;
8212 1.1 mrg }
8213 1.1 mrg _ACEOF
8214 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8215 1.1.1.3 snj if { (eval echo "$as_me:8215: \"$ac_link\"") >&5
8216 1.1 mrg (eval $ac_link) 2>&5
8217 1.1 mrg ac_status=$?
8218 1.1.1.3 snj echo "$as_me:8218: \$? = $ac_status" >&5
8219 1.1 mrg (exit $ac_status); } &&
8220 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8221 1.1.1.3 snj { (eval echo "$as_me:8221: \"$ac_try\"") >&5
8222 1.1 mrg (eval $ac_try) 2>&5
8223 1.1 mrg ac_status=$?
8224 1.1.1.3 snj echo "$as_me:8224: \$? = $ac_status" >&5
8225 1.1 mrg (exit $ac_status); }; }; then
8226 1.1 mrg ac_cv_lib_X11_XOpenDisplay=yes
8227 1.1 mrg else
8228 1.1 mrg echo "$as_me: failed program was:" >&5
8229 1.1 mrg cat conftest.$ac_ext >&5
8230 1.1 mrg ac_cv_lib_X11_XOpenDisplay=no
8231 1.1 mrg fi
8232 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8233 1.1 mrg LIBS=$ac_check_lib_save_LIBS
8234 1.1 mrg fi
8235 1.1.1.3 snj echo "$as_me:8235: result: $ac_cv_lib_X11_XOpenDisplay" >&5
8236 1.1 mrg echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
8237 1.1 mrg if test $ac_cv_lib_X11_XOpenDisplay = yes; then
8238 1.1 mrg LIBS="-lX11 $LIBS"
8239 1.1 mrg fi
8240 1.1 mrg
8241 1.1 mrg fi
8242 1.1 mrg
8243 1.1.1.3 snj echo "$as_me:8243: checking for XtAppInitialize" >&5
8244 1.1 mrg echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
8245 1.1 mrg if test "${ac_cv_func_XtAppInitialize+set}" = set; then
8246 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8247 1.1 mrg else
8248 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8249 1.1.1.3 snj #line 8249 "configure"
8250 1.1 mrg #include "confdefs.h"
8251 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
8252 1.1 mrg which can conflict with char XtAppInitialize (); below. */
8253 1.1 mrg #include <assert.h>
8254 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8255 1.1 mrg #ifdef __cplusplus
8256 1.1 mrg extern "C"
8257 1.1 mrg #endif
8258 1.1 mrg /* We use char because int might match the return type of a gcc2
8259 1.1 mrg builtin and then its argument prototype would still apply. */
8260 1.1 mrg char XtAppInitialize ();
8261 1.1 mrg char (*f) ();
8262 1.1 mrg
8263 1.1 mrg int
8264 1.1 mrg main ()
8265 1.1 mrg {
8266 1.1 mrg /* The GNU C library defines this for functions which it implements
8267 1.1 mrg to always fail with ENOSYS. Some functions are actually named
8268 1.1 mrg something starting with __ and the normal name is an alias. */
8269 1.1 mrg #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
8270 1.1 mrg choke me
8271 1.1 mrg #else
8272 1.1 mrg f = XtAppInitialize;
8273 1.1 mrg #endif
8274 1.1 mrg
8275 1.1 mrg ;
8276 1.1 mrg return 0;
8277 1.1 mrg }
8278 1.1 mrg _ACEOF
8279 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8280 1.1.1.3 snj if { (eval echo "$as_me:8280: \"$ac_link\"") >&5
8281 1.1 mrg (eval $ac_link) 2>&5
8282 1.1 mrg ac_status=$?
8283 1.1.1.3 snj echo "$as_me:8283: \$? = $ac_status" >&5
8284 1.1 mrg (exit $ac_status); } &&
8285 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8286 1.1.1.3 snj { (eval echo "$as_me:8286: \"$ac_try\"") >&5
8287 1.1 mrg (eval $ac_try) 2>&5
8288 1.1 mrg ac_status=$?
8289 1.1.1.3 snj echo "$as_me:8289: \$? = $ac_status" >&5
8290 1.1 mrg (exit $ac_status); }; }; then
8291 1.1 mrg ac_cv_func_XtAppInitialize=yes
8292 1.1 mrg else
8293 1.1 mrg echo "$as_me: failed program was:" >&5
8294 1.1 mrg cat conftest.$ac_ext >&5
8295 1.1 mrg ac_cv_func_XtAppInitialize=no
8296 1.1 mrg fi
8297 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 1.1 mrg fi
8299 1.1.1.3 snj echo "$as_me:8299: result: $ac_cv_func_XtAppInitialize" >&5
8300 1.1 mrg echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
8301 1.1 mrg if test $ac_cv_func_XtAppInitialize = yes; then
8302 1.1 mrg :
8303 1.1 mrg else
8304 1.1 mrg
8305 1.1.1.3 snj echo "$as_me:8305: checking for XtAppInitialize in -lXt" >&5
8306 1.1 mrg echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
8307 1.1 mrg if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
8308 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8309 1.1 mrg else
8310 1.1 mrg ac_check_lib_save_LIBS=$LIBS
8311 1.1 mrg LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
8312 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8313 1.1.1.3 snj #line 8313 "configure"
8314 1.1 mrg #include "confdefs.h"
8315 1.1 mrg
8316 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8317 1.1 mrg #ifdef __cplusplus
8318 1.1 mrg extern "C"
8319 1.1 mrg #endif
8320 1.1 mrg /* We use char because int might match the return type of a gcc2
8321 1.1 mrg builtin and then its argument prototype would still apply. */
8322 1.1 mrg char XtAppInitialize ();
8323 1.1 mrg int
8324 1.1 mrg main ()
8325 1.1 mrg {
8326 1.1 mrg XtAppInitialize ();
8327 1.1 mrg ;
8328 1.1 mrg return 0;
8329 1.1 mrg }
8330 1.1 mrg _ACEOF
8331 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8332 1.1.1.3 snj if { (eval echo "$as_me:8332: \"$ac_link\"") >&5
8333 1.1 mrg (eval $ac_link) 2>&5
8334 1.1 mrg ac_status=$?
8335 1.1.1.3 snj echo "$as_me:8335: \$? = $ac_status" >&5
8336 1.1 mrg (exit $ac_status); } &&
8337 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8338 1.1.1.3 snj { (eval echo "$as_me:8338: \"$ac_try\"") >&5
8339 1.1 mrg (eval $ac_try) 2>&5
8340 1.1 mrg ac_status=$?
8341 1.1.1.3 snj echo "$as_me:8341: \$? = $ac_status" >&5
8342 1.1 mrg (exit $ac_status); }; }; then
8343 1.1 mrg ac_cv_lib_Xt_XtAppInitialize=yes
8344 1.1 mrg else
8345 1.1 mrg echo "$as_me: failed program was:" >&5
8346 1.1 mrg cat conftest.$ac_ext >&5
8347 1.1 mrg ac_cv_lib_Xt_XtAppInitialize=no
8348 1.1 mrg fi
8349 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8350 1.1 mrg LIBS=$ac_check_lib_save_LIBS
8351 1.1 mrg fi
8352 1.1.1.3 snj echo "$as_me:8352: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
8353 1.1 mrg echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
8354 1.1 mrg if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
8355 1.1 mrg cat >>confdefs.h <<\EOF
8356 1.1 mrg #define HAVE_LIBXT 1
8357 1.1 mrg EOF
8358 1.1 mrg
8359 1.1 mrg cf_have_X_LIBS=Xt
8360 1.1 mrg LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
8361 1.1 mrg fi
8362 1.1 mrg
8363 1.1 mrg fi
8364 1.1 mrg
8365 1.1 mrg if test $cf_have_X_LIBS = no ; then
8366 1.1.1.3 snj { echo "$as_me:8366: WARNING: Unable to successfully link X Toolkit library (-lXt) with
8367 1.1 mrg test program. You will have to check and add the proper libraries by hand
8368 1.1 mrg to makefile." >&5
8369 1.1 mrg echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
8370 1.1 mrg test program. You will have to check and add the proper libraries by hand
8371 1.1 mrg to makefile." >&2;}
8372 1.1 mrg fi
8373 1.1 mrg
8374 1.1 mrg for ac_header in \
8375 1.1 mrg X11/DECkeysym.h \
8376 1.1 mrg X11/Sunkeysym.h \
8377 1.1 mrg X11/XF86keysym.h \
8378 1.1 mrg X11/Xpoll.h \
8379 1.1 mrg
8380 1.1 mrg do
8381 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8382 1.1.1.3 snj echo "$as_me:8382: checking for $ac_header" >&5
8383 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8384 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
8385 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8386 1.1 mrg else
8387 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8388 1.1.1.3 snj #line 8388 "configure"
8389 1.1 mrg #include "confdefs.h"
8390 1.1 mrg #include <$ac_header>
8391 1.1 mrg _ACEOF
8392 1.1.1.3 snj if { (eval echo "$as_me:8392: \"$ac_cpp conftest.$ac_ext\"") >&5
8393 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8394 1.1 mrg ac_status=$?
8395 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
8396 1.1 mrg rm -f conftest.er1
8397 1.1 mrg cat conftest.err >&5
8398 1.1.1.3 snj echo "$as_me:8398: \$? = $ac_status" >&5
8399 1.1 mrg (exit $ac_status); } >/dev/null; then
8400 1.1 mrg if test -s conftest.err; then
8401 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
8402 1.1 mrg else
8403 1.1 mrg ac_cpp_err=
8404 1.1 mrg fi
8405 1.1 mrg else
8406 1.1 mrg ac_cpp_err=yes
8407 1.1 mrg fi
8408 1.1 mrg if test -z "$ac_cpp_err"; then
8409 1.1 mrg eval "$as_ac_Header=yes"
8410 1.1 mrg else
8411 1.1 mrg echo "$as_me: failed program was:" >&5
8412 1.1 mrg cat conftest.$ac_ext >&5
8413 1.1 mrg eval "$as_ac_Header=no"
8414 1.1 mrg fi
8415 1.1 mrg rm -f conftest.err conftest.$ac_ext
8416 1.1 mrg fi
8417 1.1.1.3 snj echo "$as_me:8417: result: `eval echo '${'$as_ac_Header'}'`" >&5
8418 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8419 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
8420 1.1 mrg cat >>confdefs.h <<EOF
8421 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8422 1.1 mrg EOF
8423 1.1 mrg
8424 1.1 mrg fi
8425 1.1 mrg done
8426 1.1 mrg
8427 1.1 mrg cf_x_athena=${cf_x_athena-Xaw}
8428 1.1 mrg
8429 1.1.1.3 snj echo "$as_me:8429: checking if you want to link with Xaw 3d library" >&5
8430 1.1 mrg echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
8431 1.1 mrg withval=
8432 1.1 mrg
8433 1.1 mrg # Check whether --with-Xaw3d or --without-Xaw3d was given.
8434 1.1 mrg if test "${with_Xaw3d+set}" = set; then
8435 1.1 mrg withval="$with_Xaw3d"
8436 1.1 mrg
8437 1.1 mrg fi;
8438 1.1 mrg if test "$withval" = yes ; then
8439 1.1 mrg cf_x_athena=Xaw3d
8440 1.1.1.3 snj echo "$as_me:8440: result: yes" >&5
8441 1.1 mrg echo "${ECHO_T}yes" >&6
8442 1.1 mrg else
8443 1.1.1.3 snj echo "$as_me:8443: result: no" >&5
8444 1.1 mrg echo "${ECHO_T}no" >&6
8445 1.1 mrg fi
8446 1.1 mrg
8447 1.1.1.3 snj echo "$as_me:8447: checking if you want to link with neXT Athena library" >&5
8448 1.1 mrg echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
8449 1.1 mrg withval=
8450 1.1 mrg
8451 1.1 mrg # Check whether --with-neXtaw or --without-neXtaw was given.
8452 1.1 mrg if test "${with_neXtaw+set}" = set; then
8453 1.1 mrg withval="$with_neXtaw"
8454 1.1 mrg
8455 1.1 mrg fi;
8456 1.1 mrg if test "$withval" = yes ; then
8457 1.1 mrg cf_x_athena=neXtaw
8458 1.1.1.3 snj echo "$as_me:8458: result: yes" >&5
8459 1.1 mrg echo "${ECHO_T}yes" >&6
8460 1.1 mrg else
8461 1.1.1.3 snj echo "$as_me:8461: result: no" >&5
8462 1.1 mrg echo "${ECHO_T}no" >&6
8463 1.1 mrg fi
8464 1.1 mrg
8465 1.1.1.3 snj echo "$as_me:8465: checking if you want to link with Athena-Plus library" >&5
8466 1.1 mrg echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
8467 1.1 mrg withval=
8468 1.1 mrg
8469 1.1 mrg # Check whether --with-XawPlus or --without-XawPlus was given.
8470 1.1 mrg if test "${with_XawPlus+set}" = set; then
8471 1.1 mrg withval="$with_XawPlus"
8472 1.1 mrg
8473 1.1 mrg fi;
8474 1.1 mrg if test "$withval" = yes ; then
8475 1.1 mrg cf_x_athena=XawPlus
8476 1.1.1.3 snj echo "$as_me:8476: result: yes" >&5
8477 1.1 mrg echo "${ECHO_T}yes" >&6
8478 1.1 mrg else
8479 1.1.1.3 snj echo "$as_me:8479: result: no" >&5
8480 1.1 mrg echo "${ECHO_T}no" >&6
8481 1.1 mrg fi
8482 1.1 mrg
8483 1.1.1.3 snj echo "$as_me:8483: checking for XextCreateExtension in -lXext" >&5
8484 1.1 mrg echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
8485 1.1 mrg if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
8486 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8487 1.1 mrg else
8488 1.1 mrg ac_check_lib_save_LIBS=$LIBS
8489 1.1 mrg LIBS="-lXext $LIBS"
8490 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8491 1.1.1.3 snj #line 8491 "configure"
8492 1.1 mrg #include "confdefs.h"
8493 1.1 mrg
8494 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
8495 1.1 mrg #ifdef __cplusplus
8496 1.1 mrg extern "C"
8497 1.1 mrg #endif
8498 1.1 mrg /* We use char because int might match the return type of a gcc2
8499 1.1 mrg builtin and then its argument prototype would still apply. */
8500 1.1 mrg char XextCreateExtension ();
8501 1.1 mrg int
8502 1.1 mrg main ()
8503 1.1 mrg {
8504 1.1 mrg XextCreateExtension ();
8505 1.1 mrg ;
8506 1.1 mrg return 0;
8507 1.1 mrg }
8508 1.1 mrg _ACEOF
8509 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8510 1.1.1.3 snj if { (eval echo "$as_me:8510: \"$ac_link\"") >&5
8511 1.1 mrg (eval $ac_link) 2>&5
8512 1.1 mrg ac_status=$?
8513 1.1.1.3 snj echo "$as_me:8513: \$? = $ac_status" >&5
8514 1.1 mrg (exit $ac_status); } &&
8515 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8516 1.1.1.3 snj { (eval echo "$as_me:8516: \"$ac_try\"") >&5
8517 1.1 mrg (eval $ac_try) 2>&5
8518 1.1 mrg ac_status=$?
8519 1.1.1.3 snj echo "$as_me:8519: \$? = $ac_status" >&5
8520 1.1 mrg (exit $ac_status); }; }; then
8521 1.1 mrg ac_cv_lib_Xext_XextCreateExtension=yes
8522 1.1 mrg else
8523 1.1 mrg echo "$as_me: failed program was:" >&5
8524 1.1 mrg cat conftest.$ac_ext >&5
8525 1.1 mrg ac_cv_lib_Xext_XextCreateExtension=no
8526 1.1 mrg fi
8527 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8528 1.1 mrg LIBS=$ac_check_lib_save_LIBS
8529 1.1 mrg fi
8530 1.1.1.3 snj echo "$as_me:8530: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
8531 1.1 mrg echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
8532 1.1 mrg if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
8533 1.1 mrg LIBS="-lXext $LIBS"
8534 1.1 mrg fi
8535 1.1 mrg
8536 1.1 mrg cf_x_athena_lib=""
8537 1.1 mrg
8538 1.1 mrg cf_x_athena_root=$cf_x_athena
8539 1.1 mrg cf_x_athena_include=""
8540 1.1 mrg
8541 1.1 mrg for cf_path in default \
8542 1.1 mrg /usr/contrib/X11R6 \
8543 1.1 mrg /usr/contrib/X11R5 \
8544 1.1 mrg /usr/lib/X11R5 \
8545 1.1 mrg /usr/local
8546 1.1 mrg do
8547 1.1 mrg if test -z "$cf_x_athena_include" ; then
8548 1.1 mrg cf_save="$CPPFLAGS"
8549 1.1 mrg cf_test=X11/$cf_x_athena_root/SimpleMenu.h
8550 1.1 mrg if test $cf_path != default ; then
8551 1.1.1.3 snj CPPFLAGS="$cf_save -I$cf_path/include"
8552 1.1.1.3 snj echo "$as_me:8552: checking for $cf_test in $cf_path" >&5
8553 1.1 mrg echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
8554 1.1 mrg else
8555 1.1.1.3 snj echo "$as_me:8555: checking for $cf_test" >&5
8556 1.1 mrg echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
8557 1.1 mrg fi
8558 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8559 1.1.1.3 snj #line 8559 "configure"
8560 1.1 mrg #include "confdefs.h"
8561 1.1 mrg
8562 1.1 mrg #include <X11/Intrinsic.h>
8563 1.1 mrg #include <$cf_test>
8564 1.1 mrg int
8565 1.1 mrg main ()
8566 1.1 mrg {
8567 1.1 mrg
8568 1.1 mrg ;
8569 1.1 mrg return 0;
8570 1.1 mrg }
8571 1.1 mrg _ACEOF
8572 1.1 mrg rm -f conftest.$ac_objext
8573 1.1.1.3 snj if { (eval echo "$as_me:8573: \"$ac_compile\"") >&5
8574 1.1 mrg (eval $ac_compile) 2>&5
8575 1.1 mrg ac_status=$?
8576 1.1.1.3 snj echo "$as_me:8576: \$? = $ac_status" >&5
8577 1.1 mrg (exit $ac_status); } &&
8578 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8579 1.1.1.3 snj { (eval echo "$as_me:8579: \"$ac_try\"") >&5
8580 1.1 mrg (eval $ac_try) 2>&5
8581 1.1 mrg ac_status=$?
8582 1.1.1.3 snj echo "$as_me:8582: \$? = $ac_status" >&5
8583 1.1 mrg (exit $ac_status); }; }; then
8584 1.1 mrg cf_result=yes
8585 1.1 mrg else
8586 1.1 mrg echo "$as_me: failed program was:" >&5
8587 1.1 mrg cat conftest.$ac_ext >&5
8588 1.1 mrg cf_result=no
8589 1.1 mrg fi
8590 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8591 1.1.1.3 snj echo "$as_me:8591: result: $cf_result" >&5
8592 1.1 mrg echo "${ECHO_T}$cf_result" >&6
8593 1.1 mrg if test "$cf_result" = yes ; then
8594 1.1 mrg cf_x_athena_include=$cf_path
8595 1.1 mrg break
8596 1.1 mrg else
8597 1.1 mrg CPPFLAGS="$cf_save"
8598 1.1 mrg fi
8599 1.1 mrg fi
8600 1.1 mrg done
8601 1.1 mrg
8602 1.1 mrg if test -z "$cf_x_athena_include" ; then
8603 1.1.1.3 snj { echo "$as_me:8603: WARNING: Unable to successfully find Athena header files with test program" >&5
8604 1.1 mrg echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
8605 1.1 mrg elif test "$cf_x_athena_include" != default ; then
8606 1.1 mrg CPPFLAGS="$CPPFLAGS -I$cf_x_athena_include"
8607 1.1 mrg fi
8608 1.1 mrg
8609 1.1 mrg cf_x_athena_root=$cf_x_athena
8610 1.1 mrg cf_x_athena_lib=""
8611 1.1 mrg
8612 1.1 mrg for cf_path in default \
8613 1.1 mrg /usr/contrib/X11R6 \
8614 1.1 mrg /usr/contrib/X11R5 \
8615 1.1 mrg /usr/lib/X11R5 \
8616 1.1 mrg /usr/local
8617 1.1 mrg do
8618 1.1 mrg for cf_lib in \
8619 1.1 mrg "-l$cf_x_athena_root -lXmu" \
8620 1.1 mrg "-l$cf_x_athena_root -lXpm -lXmu" \
8621 1.1 mrg "-l${cf_x_athena_root}_s -lXmu_s"
8622 1.1 mrg do
8623 1.1 mrg if test -z "$cf_x_athena_lib" ; then
8624 1.1 mrg cf_save="$LIBS"
8625 1.1 mrg cf_test=XawSimpleMenuAddGlobalActions
8626 1.1 mrg if test $cf_path != default ; then
8627 1.1 mrg LIBS="-L$cf_path/lib $cf_lib $LIBS"
8628 1.1.1.3 snj echo "$as_me:8628: checking for $cf_lib in $cf_path" >&5
8629 1.1 mrg echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6
8630 1.1 mrg else
8631 1.1 mrg LIBS="$cf_lib $LIBS"
8632 1.1.1.3 snj echo "$as_me:8632: checking for $cf_test in $cf_lib" >&5
8633 1.1 mrg echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6
8634 1.1 mrg fi
8635 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8636 1.1.1.3 snj #line 8636 "configure"
8637 1.1 mrg #include "confdefs.h"
8638 1.1 mrg
8639 1.1 mrg int
8640 1.1 mrg main ()
8641 1.1 mrg {
8642 1.1 mrg $cf_test()
8643 1.1 mrg ;
8644 1.1 mrg return 0;
8645 1.1 mrg }
8646 1.1 mrg _ACEOF
8647 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
8648 1.1.1.3 snj if { (eval echo "$as_me:8648: \"$ac_link\"") >&5
8649 1.1 mrg (eval $ac_link) 2>&5
8650 1.1 mrg ac_status=$?
8651 1.1.1.3 snj echo "$as_me:8651: \$? = $ac_status" >&5
8652 1.1 mrg (exit $ac_status); } &&
8653 1.1 mrg { ac_try='test -s conftest$ac_exeext'
8654 1.1.1.3 snj { (eval echo "$as_me:8654: \"$ac_try\"") >&5
8655 1.1 mrg (eval $ac_try) 2>&5
8656 1.1 mrg ac_status=$?
8657 1.1.1.3 snj echo "$as_me:8657: \$? = $ac_status" >&5
8658 1.1 mrg (exit $ac_status); }; }; then
8659 1.1 mrg cf_result=yes
8660 1.1 mrg else
8661 1.1 mrg echo "$as_me: failed program was:" >&5
8662 1.1 mrg cat conftest.$ac_ext >&5
8663 1.1 mrg cf_result=no
8664 1.1 mrg fi
8665 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8666 1.1.1.3 snj echo "$as_me:8666: result: $cf_result" >&5
8667 1.1 mrg echo "${ECHO_T}$cf_result" >&6
8668 1.1 mrg if test "$cf_result" = yes ; then
8669 1.1 mrg cf_x_athena_lib="$cf_lib"
8670 1.1 mrg break
8671 1.1 mrg fi
8672 1.1 mrg LIBS="$cf_save"
8673 1.1 mrg fi
8674 1.1 mrg done
8675 1.1 mrg done
8676 1.1 mrg
8677 1.1 mrg if test -z "$cf_x_athena_lib" ; then
8678 1.1.1.3 snj { { echo "$as_me:8678: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
8679 1.1 mrg echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
8680 1.1 mrg { (exit 1); exit 1; }; }
8681 1.1 mrg fi
8682 1.1 mrg
8683 1.1 mrg cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8684 1.1 mrg
8685 1.1 mrg cat >>confdefs.h <<EOF
8686 1.1 mrg #define $cf_x_athena_LIBS 1
8687 1.1 mrg EOF
8688 1.1 mrg
8689 1.1 mrg for ac_header in X11/Xpoll.h
8690 1.1 mrg do
8691 1.1 mrg as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8692 1.1.1.3 snj echo "$as_me:8692: checking for $ac_header" >&5
8693 1.1 mrg echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694 1.1 mrg if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8696 1.1 mrg else
8697 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8698 1.1.1.3 snj #line 8698 "configure"
8699 1.1 mrg #include "confdefs.h"
8700 1.1 mrg #include <$ac_header>
8701 1.1 mrg _ACEOF
8702 1.1.1.3 snj if { (eval echo "$as_me:8702: \"$ac_cpp conftest.$ac_ext\"") >&5
8703 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8704 1.1 mrg ac_status=$?
8705 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
8706 1.1 mrg rm -f conftest.er1
8707 1.1 mrg cat conftest.err >&5
8708 1.1.1.3 snj echo "$as_me:8708: \$? = $ac_status" >&5
8709 1.1 mrg (exit $ac_status); } >/dev/null; then
8710 1.1 mrg if test -s conftest.err; then
8711 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
8712 1.1 mrg else
8713 1.1 mrg ac_cpp_err=
8714 1.1 mrg fi
8715 1.1 mrg else
8716 1.1 mrg ac_cpp_err=yes
8717 1.1 mrg fi
8718 1.1 mrg if test -z "$ac_cpp_err"; then
8719 1.1 mrg eval "$as_ac_Header=yes"
8720 1.1 mrg else
8721 1.1 mrg echo "$as_me: failed program was:" >&5
8722 1.1 mrg cat conftest.$ac_ext >&5
8723 1.1 mrg eval "$as_ac_Header=no"
8724 1.1 mrg fi
8725 1.1 mrg rm -f conftest.err conftest.$ac_ext
8726 1.1 mrg fi
8727 1.1.1.3 snj echo "$as_me:8727: result: `eval echo '${'$as_ac_Header'}'`" >&5
8728 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8729 1.1 mrg if test `eval echo '${'$as_ac_Header'}'` = yes; then
8730 1.1 mrg cat >>confdefs.h <<EOF
8731 1.1 mrg #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8732 1.1 mrg EOF
8733 1.1 mrg
8734 1.1 mrg fi
8735 1.1 mrg done
8736 1.1 mrg
8737 1.1.1.3 snj echo "$as_me:8737: checking for declaration of fd_set" >&5
8738 1.1 mrg echo $ECHO_N "checking for declaration of fd_set... $ECHO_C" >&6
8739 1.1 mrg if test "${cf_cv_type_fd_set+set}" = set; then
8740 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8741 1.1 mrg else
8742 1.1 mrg
8743 1.1.1.3 snj echo "${as_me-configure}:8743: testing sys/types alone ..." 1>&5
8744 1.1 mrg
8745 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8746 1.1.1.3 snj #line 8746 "configure"
8747 1.1 mrg #include "confdefs.h"
8748 1.1 mrg
8749 1.1 mrg #include <sys/types.h>
8750 1.1 mrg int
8751 1.1 mrg main ()
8752 1.1 mrg {
8753 1.1 mrg fd_set x
8754 1.1 mrg ;
8755 1.1 mrg return 0;
8756 1.1 mrg }
8757 1.1 mrg _ACEOF
8758 1.1 mrg rm -f conftest.$ac_objext
8759 1.1.1.3 snj if { (eval echo "$as_me:8759: \"$ac_compile\"") >&5
8760 1.1 mrg (eval $ac_compile) 2>&5
8761 1.1 mrg ac_status=$?
8762 1.1.1.3 snj echo "$as_me:8762: \$? = $ac_status" >&5
8763 1.1 mrg (exit $ac_status); } &&
8764 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8765 1.1.1.3 snj { (eval echo "$as_me:8765: \"$ac_try\"") >&5
8766 1.1 mrg (eval $ac_try) 2>&5
8767 1.1 mrg ac_status=$?
8768 1.1.1.3 snj echo "$as_me:8768: \$? = $ac_status" >&5
8769 1.1 mrg (exit $ac_status); }; }; then
8770 1.1 mrg cf_cv_type_fd_set=sys/types.h
8771 1.1 mrg else
8772 1.1 mrg echo "$as_me: failed program was:" >&5
8773 1.1 mrg cat conftest.$ac_ext >&5
8774 1.1 mrg
8775 1.1.1.3 snj echo "${as_me-configure}:8775: testing X11/Xpoll.h ..." 1>&5
8776 1.1 mrg
8777 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8778 1.1.1.3 snj #line 8778 "configure"
8779 1.1 mrg #include "confdefs.h"
8780 1.1 mrg
8781 1.1 mrg #ifdef HAVE_X11_XPOLL_H
8782 1.1 mrg #include <X11/Xpoll.h>
8783 1.1 mrg #endif
8784 1.1 mrg int
8785 1.1 mrg main ()
8786 1.1 mrg {
8787 1.1 mrg fd_set x
8788 1.1 mrg ;
8789 1.1 mrg return 0;
8790 1.1 mrg }
8791 1.1 mrg _ACEOF
8792 1.1 mrg rm -f conftest.$ac_objext
8793 1.1.1.3 snj if { (eval echo "$as_me:8793: \"$ac_compile\"") >&5
8794 1.1 mrg (eval $ac_compile) 2>&5
8795 1.1 mrg ac_status=$?
8796 1.1.1.3 snj echo "$as_me:8796: \$? = $ac_status" >&5
8797 1.1 mrg (exit $ac_status); } &&
8798 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8799 1.1.1.3 snj { (eval echo "$as_me:8799: \"$ac_try\"") >&5
8800 1.1 mrg (eval $ac_try) 2>&5
8801 1.1 mrg ac_status=$?
8802 1.1.1.3 snj echo "$as_me:8802: \$? = $ac_status" >&5
8803 1.1 mrg (exit $ac_status); }; }; then
8804 1.1 mrg cf_cv_type_fd_set=X11/Xpoll.h
8805 1.1 mrg else
8806 1.1 mrg echo "$as_me: failed program was:" >&5
8807 1.1 mrg cat conftest.$ac_ext >&5
8808 1.1 mrg
8809 1.1.1.3 snj echo "${as_me-configure}:8809: testing sys/select.h ..." 1>&5
8810 1.1 mrg
8811 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8812 1.1.1.3 snj #line 8812 "configure"
8813 1.1 mrg #include "confdefs.h"
8814 1.1 mrg
8815 1.1 mrg #include <sys/types.h>
8816 1.1 mrg #include <sys/select.h>
8817 1.1 mrg int
8818 1.1 mrg main ()
8819 1.1 mrg {
8820 1.1 mrg fd_set x
8821 1.1 mrg ;
8822 1.1 mrg return 0;
8823 1.1 mrg }
8824 1.1 mrg _ACEOF
8825 1.1 mrg rm -f conftest.$ac_objext
8826 1.1.1.3 snj if { (eval echo "$as_me:8826: \"$ac_compile\"") >&5
8827 1.1 mrg (eval $ac_compile) 2>&5
8828 1.1 mrg ac_status=$?
8829 1.1.1.3 snj echo "$as_me:8829: \$? = $ac_status" >&5
8830 1.1 mrg (exit $ac_status); } &&
8831 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8832 1.1.1.3 snj { (eval echo "$as_me:8832: \"$ac_try\"") >&5
8833 1.1 mrg (eval $ac_try) 2>&5
8834 1.1 mrg ac_status=$?
8835 1.1.1.3 snj echo "$as_me:8835: \$? = $ac_status" >&5
8836 1.1 mrg (exit $ac_status); }; }; then
8837 1.1 mrg cf_cv_type_fd_set=sys/select.h
8838 1.1 mrg else
8839 1.1 mrg echo "$as_me: failed program was:" >&5
8840 1.1 mrg cat conftest.$ac_ext >&5
8841 1.1 mrg cf_cv_type_fd_set=unknown
8842 1.1 mrg fi
8843 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8844 1.1 mrg fi
8845 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8846 1.1 mrg fi
8847 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8848 1.1 mrg fi
8849 1.1.1.3 snj echo "$as_me:8849: result: $cf_cv_type_fd_set" >&5
8850 1.1 mrg echo "${ECHO_T}$cf_cv_type_fd_set" >&6
8851 1.1 mrg if test $cf_cv_type_fd_set = sys/select.h ; then
8852 1.1 mrg cat >>confdefs.h <<\EOF
8853 1.1 mrg #define USE_SYS_SELECT_H 1
8854 1.1 mrg EOF
8855 1.1 mrg
8856 1.1 mrg fi
8857 1.1 mrg
8858 1.1.1.3 snj echo "$as_me:8858: checking for declaration of fd_mask" >&5
8859 1.1 mrg echo $ECHO_N "checking for declaration of fd_mask... $ECHO_C" >&6
8860 1.1 mrg if test "${cf_cv_type_fd_mask+set}" = set; then
8861 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8862 1.1 mrg else
8863 1.1 mrg
8864 1.1 mrg if test x$cf_cv_type_fd_set = xX11/Xpoll.h ; then
8865 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8866 1.1.1.3 snj #line 8866 "configure"
8867 1.1 mrg #include "confdefs.h"
8868 1.1 mrg
8869 1.1 mrg #include <X11/Xpoll.h>
8870 1.1 mrg int
8871 1.1 mrg main ()
8872 1.1 mrg {
8873 1.1 mrg fd_mask x
8874 1.1 mrg ;
8875 1.1 mrg return 0;
8876 1.1 mrg }
8877 1.1 mrg _ACEOF
8878 1.1 mrg rm -f conftest.$ac_objext
8879 1.1.1.3 snj if { (eval echo "$as_me:8879: \"$ac_compile\"") >&5
8880 1.1 mrg (eval $ac_compile) 2>&5
8881 1.1 mrg ac_status=$?
8882 1.1.1.3 snj echo "$as_me:8882: \$? = $ac_status" >&5
8883 1.1 mrg (exit $ac_status); } &&
8884 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8885 1.1.1.3 snj { (eval echo "$as_me:8885: \"$ac_try\"") >&5
8886 1.1 mrg (eval $ac_try) 2>&5
8887 1.1 mrg ac_status=$?
8888 1.1.1.3 snj echo "$as_me:8888: \$? = $ac_status" >&5
8889 1.1 mrg (exit $ac_status); }; }; then
8890 1.1 mrg :
8891 1.1 mrg else
8892 1.1 mrg echo "$as_me: failed program was:" >&5
8893 1.1 mrg cat conftest.$ac_ext >&5
8894 1.1 mrg
8895 1.1.1.3 snj echo "${as_me-configure}:8895: testing if we must define CSRG_BASED ..." 1>&5
8896 1.1 mrg
8897 1.1 mrg # Xosdefs.h on Mac OS X may not define this (but it should).
8898 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8899 1.1.1.3 snj #line 8899 "configure"
8900 1.1 mrg #include "confdefs.h"
8901 1.1 mrg
8902 1.1 mrg #define CSRG_BASED
8903 1.1 mrg #include <X11/Xpoll.h>
8904 1.1 mrg int
8905 1.1 mrg main ()
8906 1.1 mrg {
8907 1.1 mrg fd_mask x
8908 1.1 mrg ;
8909 1.1 mrg return 0;
8910 1.1 mrg }
8911 1.1 mrg _ACEOF
8912 1.1 mrg rm -f conftest.$ac_objext
8913 1.1.1.3 snj if { (eval echo "$as_me:8913: \"$ac_compile\"") >&5
8914 1.1 mrg (eval $ac_compile) 2>&5
8915 1.1 mrg ac_status=$?
8916 1.1.1.3 snj echo "$as_me:8916: \$? = $ac_status" >&5
8917 1.1 mrg (exit $ac_status); } &&
8918 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8919 1.1.1.3 snj { (eval echo "$as_me:8919: \"$ac_try\"") >&5
8920 1.1 mrg (eval $ac_try) 2>&5
8921 1.1 mrg ac_status=$?
8922 1.1.1.3 snj echo "$as_me:8922: \$? = $ac_status" >&5
8923 1.1 mrg (exit $ac_status); }; }; then
8924 1.1 mrg cf_cv_type_fd_mask=CSRG_BASED
8925 1.1 mrg else
8926 1.1 mrg echo "$as_me: failed program was:" >&5
8927 1.1 mrg cat conftest.$ac_ext >&5
8928 1.1 mrg fi
8929 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8930 1.1 mrg fi
8931 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8932 1.1 mrg else
8933 1.1 mrg cf_cv_type_fd_mask=$cf_cv_type_fd_set
8934 1.1 mrg fi
8935 1.1 mrg
8936 1.1 mrg fi
8937 1.1.1.3 snj echo "$as_me:8937: result: $cf_cv_type_fd_mask" >&5
8938 1.1 mrg echo "${ECHO_T}$cf_cv_type_fd_mask" >&6
8939 1.1 mrg if test x$cf_cv_type_fd_mask = xCSRG_BASED ; then
8940 1.1 mrg cat >>confdefs.h <<\EOF
8941 1.1 mrg #define CSRG_BASED 1
8942 1.1 mrg EOF
8943 1.1 mrg
8944 1.1 mrg fi
8945 1.1 mrg
8946 1.1.1.3 snj echo "$as_me:8946: checking for IRIX 6.5 baud-rate redefinitions" >&5
8947 1.1 mrg echo $ECHO_N "checking for IRIX 6.5 baud-rate redefinitions... $ECHO_C" >&6
8948 1.1 mrg if test "${cf_cv_termio_c_ispeed+set}" = set; then
8949 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
8950 1.1 mrg else
8951 1.1 mrg
8952 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
8953 1.1.1.3 snj #line 8953 "configure"
8954 1.1 mrg #include "confdefs.h"
8955 1.1 mrg
8956 1.1 mrg #include <sys/types.h>
8957 1.1 mrg #include <sys/termio.h>
8958 1.1 mrg int
8959 1.1 mrg main ()
8960 1.1 mrg {
8961 1.1 mrg
8962 1.1 mrg struct termio foo;
8963 1.1 mrg foo.c_ispeed = B38400;
8964 1.1 mrg foo.c_ospeed = B9600;
8965 1.1 mrg
8966 1.1 mrg ;
8967 1.1 mrg return 0;
8968 1.1 mrg }
8969 1.1 mrg _ACEOF
8970 1.1 mrg rm -f conftest.$ac_objext
8971 1.1.1.3 snj if { (eval echo "$as_me:8971: \"$ac_compile\"") >&5
8972 1.1 mrg (eval $ac_compile) 2>&5
8973 1.1 mrg ac_status=$?
8974 1.1.1.3 snj echo "$as_me:8974: \$? = $ac_status" >&5
8975 1.1 mrg (exit $ac_status); } &&
8976 1.1 mrg { ac_try='test -s conftest.$ac_objext'
8977 1.1.1.3 snj { (eval echo "$as_me:8977: \"$ac_try\"") >&5
8978 1.1 mrg (eval $ac_try) 2>&5
8979 1.1 mrg ac_status=$?
8980 1.1.1.3 snj echo "$as_me:8980: \$? = $ac_status" >&5
8981 1.1 mrg (exit $ac_status); }; }; then
8982 1.1 mrg cf_cv_termio_c_ispeed=yes
8983 1.1 mrg
8984 1.1 mrg else
8985 1.1 mrg echo "$as_me: failed program was:" >&5
8986 1.1 mrg cat conftest.$ac_ext >&5
8987 1.1 mrg cf_cv_termio_c_ispeed=no
8988 1.1 mrg fi
8989 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
8990 1.1 mrg
8991 1.1 mrg fi
8992 1.1.1.3 snj echo "$as_me:8992: result: $cf_cv_termio_c_ispeed" >&5
8993 1.1 mrg echo "${ECHO_T}$cf_cv_termio_c_ispeed" >&6
8994 1.1 mrg test "$cf_cv_termio_c_ispeed" = yes && cat >>confdefs.h <<\EOF
8995 1.1 mrg #define HAVE_TERMIO_C_ISPEED 1
8996 1.1 mrg EOF
8997 1.1 mrg
8998 1.1 mrg LIBS="$LIBS $X_EXTRA_LIBS"
8999 1.1 mrg
9000 1.1 mrg # Check for openpty() in -lutil if the UNIX98-style pty functions are not
9001 1.1 mrg # available. E.g. for GNU libc 2.0.
9002 1.1 mrg case $host_os in #(vi
9003 1.1.1.3 snj freebsd*|netbsd*|dragonfly*) # 2004/8/15 - revisit this if/when grantpt is known to work.
9004 1.1 mrg
9005 1.1.1.3 snj echo "$as_me:9005: checking for openpty in -lutil" >&5
9006 1.1 mrg echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9007 1.1 mrg if test "${ac_cv_lib_util_openpty+set}" = set; then
9008 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9009 1.1 mrg else
9010 1.1 mrg ac_check_lib_save_LIBS=$LIBS
9011 1.1 mrg LIBS="-lutil $LIBS"
9012 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9013 1.1.1.3 snj #line 9013 "configure"
9014 1.1 mrg #include "confdefs.h"
9015 1.1 mrg
9016 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9017 1.1 mrg #ifdef __cplusplus
9018 1.1 mrg extern "C"
9019 1.1 mrg #endif
9020 1.1 mrg /* We use char because int might match the return type of a gcc2
9021 1.1 mrg builtin and then its argument prototype would still apply. */
9022 1.1 mrg char openpty ();
9023 1.1 mrg int
9024 1.1 mrg main ()
9025 1.1 mrg {
9026 1.1 mrg openpty ();
9027 1.1 mrg ;
9028 1.1 mrg return 0;
9029 1.1 mrg }
9030 1.1 mrg _ACEOF
9031 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9032 1.1.1.3 snj if { (eval echo "$as_me:9032: \"$ac_link\"") >&5
9033 1.1 mrg (eval $ac_link) 2>&5
9034 1.1 mrg ac_status=$?
9035 1.1.1.3 snj echo "$as_me:9035: \$? = $ac_status" >&5
9036 1.1 mrg (exit $ac_status); } &&
9037 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9038 1.1.1.3 snj { (eval echo "$as_me:9038: \"$ac_try\"") >&5
9039 1.1 mrg (eval $ac_try) 2>&5
9040 1.1 mrg ac_status=$?
9041 1.1.1.3 snj echo "$as_me:9041: \$? = $ac_status" >&5
9042 1.1 mrg (exit $ac_status); }; }; then
9043 1.1 mrg ac_cv_lib_util_openpty=yes
9044 1.1 mrg else
9045 1.1 mrg echo "$as_me: failed program was:" >&5
9046 1.1 mrg cat conftest.$ac_ext >&5
9047 1.1 mrg ac_cv_lib_util_openpty=no
9048 1.1 mrg fi
9049 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9050 1.1 mrg LIBS=$ac_check_lib_save_LIBS
9051 1.1 mrg fi
9052 1.1.1.3 snj echo "$as_me:9052: result: $ac_cv_lib_util_openpty" >&5
9053 1.1 mrg echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9054 1.1 mrg if test $ac_cv_lib_util_openpty = yes; then
9055 1.1 mrg cat >>confdefs.h <<EOF
9056 1.1 mrg #define HAVE_LIBUTIL 1
9057 1.1 mrg EOF
9058 1.1 mrg
9059 1.1 mrg LIBS="-lutil $LIBS"
9060 1.1 mrg
9061 1.1 mrg fi
9062 1.1 mrg
9063 1.1 mrg ;;
9064 1.1 mrg *)
9065 1.1 mrg
9066 1.1 mrg for ac_func in grantpt
9067 1.1 mrg do
9068 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9069 1.1.1.3 snj echo "$as_me:9069: checking for $ac_func" >&5
9070 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9071 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
9072 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9073 1.1 mrg else
9074 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9075 1.1.1.3 snj #line 9075 "configure"
9076 1.1 mrg #include "confdefs.h"
9077 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
9078 1.1 mrg which can conflict with char $ac_func (); below. */
9079 1.1 mrg #include <assert.h>
9080 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9081 1.1 mrg #ifdef __cplusplus
9082 1.1 mrg extern "C"
9083 1.1 mrg #endif
9084 1.1 mrg /* We use char because int might match the return type of a gcc2
9085 1.1 mrg builtin and then its argument prototype would still apply. */
9086 1.1 mrg char $ac_func ();
9087 1.1 mrg char (*f) ();
9088 1.1 mrg
9089 1.1 mrg int
9090 1.1 mrg main ()
9091 1.1 mrg {
9092 1.1 mrg /* The GNU C library defines this for functions which it implements
9093 1.1 mrg to always fail with ENOSYS. Some functions are actually named
9094 1.1 mrg something starting with __ and the normal name is an alias. */
9095 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9096 1.1 mrg choke me
9097 1.1 mrg #else
9098 1.1 mrg f = $ac_func;
9099 1.1 mrg #endif
9100 1.1 mrg
9101 1.1 mrg ;
9102 1.1 mrg return 0;
9103 1.1 mrg }
9104 1.1 mrg _ACEOF
9105 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9106 1.1.1.3 snj if { (eval echo "$as_me:9106: \"$ac_link\"") >&5
9107 1.1 mrg (eval $ac_link) 2>&5
9108 1.1 mrg ac_status=$?
9109 1.1.1.3 snj echo "$as_me:9109: \$? = $ac_status" >&5
9110 1.1 mrg (exit $ac_status); } &&
9111 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9112 1.1.1.3 snj { (eval echo "$as_me:9112: \"$ac_try\"") >&5
9113 1.1 mrg (eval $ac_try) 2>&5
9114 1.1 mrg ac_status=$?
9115 1.1.1.3 snj echo "$as_me:9115: \$? = $ac_status" >&5
9116 1.1 mrg (exit $ac_status); }; }; then
9117 1.1 mrg eval "$as_ac_var=yes"
9118 1.1 mrg else
9119 1.1 mrg echo "$as_me: failed program was:" >&5
9120 1.1 mrg cat conftest.$ac_ext >&5
9121 1.1 mrg eval "$as_ac_var=no"
9122 1.1 mrg fi
9123 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9124 1.1 mrg fi
9125 1.1.1.3 snj echo "$as_me:9125: result: `eval echo '${'$as_ac_var'}'`" >&5
9126 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9127 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
9128 1.1 mrg cat >>confdefs.h <<EOF
9129 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9130 1.1 mrg EOF
9131 1.1 mrg
9132 1.1 mrg else
9133 1.1 mrg
9134 1.1.1.3 snj echo "$as_me:9134: checking for openpty in -lutil" >&5
9135 1.1 mrg echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9136 1.1 mrg if test "${ac_cv_lib_util_openpty+set}" = set; then
9137 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9138 1.1 mrg else
9139 1.1 mrg ac_check_lib_save_LIBS=$LIBS
9140 1.1 mrg LIBS="-lutil $LIBS"
9141 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9142 1.1.1.3 snj #line 9142 "configure"
9143 1.1 mrg #include "confdefs.h"
9144 1.1 mrg
9145 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9146 1.1 mrg #ifdef __cplusplus
9147 1.1 mrg extern "C"
9148 1.1 mrg #endif
9149 1.1 mrg /* We use char because int might match the return type of a gcc2
9150 1.1 mrg builtin and then its argument prototype would still apply. */
9151 1.1 mrg char openpty ();
9152 1.1 mrg int
9153 1.1 mrg main ()
9154 1.1 mrg {
9155 1.1 mrg openpty ();
9156 1.1 mrg ;
9157 1.1 mrg return 0;
9158 1.1 mrg }
9159 1.1 mrg _ACEOF
9160 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9161 1.1.1.3 snj if { (eval echo "$as_me:9161: \"$ac_link\"") >&5
9162 1.1 mrg (eval $ac_link) 2>&5
9163 1.1 mrg ac_status=$?
9164 1.1.1.3 snj echo "$as_me:9164: \$? = $ac_status" >&5
9165 1.1 mrg (exit $ac_status); } &&
9166 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9167 1.1.1.3 snj { (eval echo "$as_me:9167: \"$ac_try\"") >&5
9168 1.1 mrg (eval $ac_try) 2>&5
9169 1.1 mrg ac_status=$?
9170 1.1.1.3 snj echo "$as_me:9170: \$? = $ac_status" >&5
9171 1.1 mrg (exit $ac_status); }; }; then
9172 1.1 mrg ac_cv_lib_util_openpty=yes
9173 1.1 mrg else
9174 1.1 mrg echo "$as_me: failed program was:" >&5
9175 1.1 mrg cat conftest.$ac_ext >&5
9176 1.1 mrg ac_cv_lib_util_openpty=no
9177 1.1 mrg fi
9178 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9179 1.1 mrg LIBS=$ac_check_lib_save_LIBS
9180 1.1 mrg fi
9181 1.1.1.3 snj echo "$as_me:9181: result: $ac_cv_lib_util_openpty" >&5
9182 1.1 mrg echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9183 1.1 mrg if test $ac_cv_lib_util_openpty = yes; then
9184 1.1 mrg cat >>confdefs.h <<EOF
9185 1.1 mrg #define HAVE_LIBUTIL 1
9186 1.1 mrg EOF
9187 1.1 mrg
9188 1.1 mrg LIBS="-lutil $LIBS"
9189 1.1 mrg
9190 1.1 mrg fi
9191 1.1 mrg
9192 1.1 mrg fi
9193 1.1 mrg done
9194 1.1 mrg
9195 1.1 mrg ;;
9196 1.1 mrg esac
9197 1.1 mrg
9198 1.1.1.3 snj echo "$as_me:9198: checking for XKB Bell extension" >&5
9199 1.1 mrg echo $ECHO_N "checking for XKB Bell extension... $ECHO_C" >&6
9200 1.1 mrg if test "${cf_cv_xkb_bell_ext+set}" = set; then
9201 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9202 1.1 mrg else
9203 1.1 mrg
9204 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9205 1.1.1.3 snj #line 9205 "configure"
9206 1.1 mrg #include "confdefs.h"
9207 1.1 mrg
9208 1.1.1.3 snj #include <X11/Intrinsic.h>
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.1.3 snj int x = (XkbBI_Info |XkbBI_MinorError |XkbBI_MajorError |XkbBI_TerminalBell |XkbBI_MarginBell);
9217 1.1.1.3 snj Atom y;
9218 1.1.1.3 snj XkbBell((Display *)0, (Widget)0, 0, y);
9219 1.1 mrg
9220 1.1 mrg ;
9221 1.1 mrg return 0;
9222 1.1 mrg }
9223 1.1 mrg _ACEOF
9224 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9225 1.1.1.3 snj if { (eval echo "$as_me:9225: \"$ac_link\"") >&5
9226 1.1 mrg (eval $ac_link) 2>&5
9227 1.1 mrg ac_status=$?
9228 1.1.1.3 snj echo "$as_me:9228: \$? = $ac_status" >&5
9229 1.1 mrg (exit $ac_status); } &&
9230 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9231 1.1.1.3 snj { (eval echo "$as_me:9231: \"$ac_try\"") >&5
9232 1.1 mrg (eval $ac_try) 2>&5
9233 1.1 mrg ac_status=$?
9234 1.1.1.3 snj echo "$as_me:9234: \$? = $ac_status" >&5
9235 1.1 mrg (exit $ac_status); }; }; then
9236 1.1 mrg cf_cv_xkb_bell_ext=yes
9237 1.1 mrg else
9238 1.1 mrg echo "$as_me: failed program was:" >&5
9239 1.1 mrg cat conftest.$ac_ext >&5
9240 1.1 mrg cf_cv_xkb_bell_ext=no
9241 1.1 mrg fi
9242 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9243 1.1 mrg
9244 1.1 mrg fi
9245 1.1.1.3 snj echo "$as_me:9245: result: $cf_cv_xkb_bell_ext" >&5
9246 1.1 mrg echo "${ECHO_T}$cf_cv_xkb_bell_ext" >&6
9247 1.1 mrg test "$cf_cv_xkb_bell_ext" = yes && cat >>confdefs.h <<\EOF
9248 1.1 mrg #define HAVE_XKB_BELL_EXT 1
9249 1.1 mrg EOF
9250 1.1 mrg
9251 1.1 mrg for ac_func in Xutf8LookupString
9252 1.1 mrg do
9253 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9254 1.1.1.3 snj echo "$as_me:9254: checking for $ac_func" >&5
9255 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9256 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
9257 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9258 1.1 mrg else
9259 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
9260 1.1.1.3 snj #line 9260 "configure"
9261 1.1 mrg #include "confdefs.h"
9262 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
9263 1.1 mrg which can conflict with char $ac_func (); below. */
9264 1.1 mrg #include <assert.h>
9265 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
9266 1.1 mrg #ifdef __cplusplus
9267 1.1 mrg extern "C"
9268 1.1 mrg #endif
9269 1.1 mrg /* We use char because int might match the return type of a gcc2
9270 1.1 mrg builtin and then its argument prototype would still apply. */
9271 1.1 mrg char $ac_func ();
9272 1.1 mrg char (*f) ();
9273 1.1 mrg
9274 1.1 mrg int
9275 1.1 mrg main ()
9276 1.1 mrg {
9277 1.1 mrg /* The GNU C library defines this for functions which it implements
9278 1.1 mrg to always fail with ENOSYS. Some functions are actually named
9279 1.1 mrg something starting with __ and the normal name is an alias. */
9280 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9281 1.1 mrg choke me
9282 1.1 mrg #else
9283 1.1 mrg f = $ac_func;
9284 1.1 mrg #endif
9285 1.1 mrg
9286 1.1 mrg ;
9287 1.1 mrg return 0;
9288 1.1 mrg }
9289 1.1 mrg _ACEOF
9290 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
9291 1.1.1.3 snj if { (eval echo "$as_me:9291: \"$ac_link\"") >&5
9292 1.1 mrg (eval $ac_link) 2>&5
9293 1.1 mrg ac_status=$?
9294 1.1.1.3 snj echo "$as_me:9294: \$? = $ac_status" >&5
9295 1.1 mrg (exit $ac_status); } &&
9296 1.1 mrg { ac_try='test -s conftest$ac_exeext'
9297 1.1.1.3 snj { (eval echo "$as_me:9297: \"$ac_try\"") >&5
9298 1.1 mrg (eval $ac_try) 2>&5
9299 1.1 mrg ac_status=$?
9300 1.1.1.3 snj echo "$as_me:9300: \$? = $ac_status" >&5
9301 1.1 mrg (exit $ac_status); }; }; then
9302 1.1 mrg eval "$as_ac_var=yes"
9303 1.1 mrg else
9304 1.1 mrg echo "$as_me: failed program was:" >&5
9305 1.1 mrg cat conftest.$ac_ext >&5
9306 1.1 mrg eval "$as_ac_var=no"
9307 1.1 mrg fi
9308 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9309 1.1 mrg fi
9310 1.1.1.3 snj echo "$as_me:9310: result: `eval echo '${'$as_ac_var'}'`" >&5
9311 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9312 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
9313 1.1 mrg cat >>confdefs.h <<EOF
9314 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9315 1.1 mrg EOF
9316 1.1 mrg
9317 1.1 mrg else
9318 1.1 mrg
9319 1.1 mrg EXTRAHDRS="$EXTRAHDRS xutf8.h"
9320 1.1 mrg EXTRASRCS="$EXTRASRCS xutf8.c"
9321 1.1 mrg EXTRAOBJS="$EXTRAOBJS xutf8.o"
9322 1.1 mrg
9323 1.1 mrg fi
9324 1.1 mrg done
9325 1.1 mrg
9326 1.1.1.3 snj echo "$as_me:9326: checking if you want narrow prototypes for X libraries" >&5
9327 1.1 mrg echo $ECHO_N "checking if you want narrow prototypes for X libraries... $ECHO_C" >&6
9328 1.1 mrg
9329 1.1 mrg case `$ac_config_guess` in #(vi
9330 1.1 mrg *cygwin*|*freebsd*|*gnu*|*irix5*|*irix6*|*linux-gnu*|*netbsd*|*openbsd*|*qnx*|*sco*|*sgi*) #(vi
9331 1.1 mrg cf_default_narrowproto=yes
9332 1.1 mrg ;;
9333 1.1 mrg *)
9334 1.1 mrg cf_default_narrowproto=no
9335 1.1 mrg ;;
9336 1.1 mrg esac
9337 1.1 mrg
9338 1.1 mrg # Check whether --enable-narrowproto or --disable-narrowproto was given.
9339 1.1 mrg if test "${enable_narrowproto+set}" = set; then
9340 1.1 mrg enableval="$enable_narrowproto"
9341 1.1 mrg test "$enableval" != no && enableval=yes
9342 1.1 mrg if test "$enableval" != "$cf_default_narrowproto" ; then
9343 1.1 mrg enable_narrowproto=$enableval
9344 1.1 mrg else
9345 1.1 mrg enable_narrowproto=$cf_default_narrowproto
9346 1.1 mrg fi
9347 1.1 mrg else
9348 1.1 mrg enableval=$cf_default_narrowproto
9349 1.1 mrg enable_narrowproto=$cf_default_narrowproto
9350 1.1 mrg
9351 1.1 mrg fi;
9352 1.1.1.3 snj echo "$as_me:9352: result: $enable_narrowproto" >&5
9353 1.1 mrg echo "${ECHO_T}$enable_narrowproto" >&6
9354 1.1 mrg
9355 1.1.1.3 snj echo "$as_me:9355: checking if we should use imake to help" >&5
9356 1.1 mrg echo $ECHO_N "checking if we should use imake to help... $ECHO_C" >&6
9357 1.1 mrg
9358 1.1 mrg # Check whether --enable-imake or --disable-imake was given.
9359 1.1 mrg if test "${enable_imake+set}" = set; then
9360 1.1 mrg enableval="$enable_imake"
9361 1.1 mrg test "$enableval" != no && enableval=yes
9362 1.1 mrg if test "$enableval" != "yes" ; then
9363 1.1 mrg enable_imake=no
9364 1.1 mrg else
9365 1.1 mrg enable_imake=yes
9366 1.1 mrg fi
9367 1.1 mrg else
9368 1.1 mrg enableval=yes
9369 1.1 mrg enable_imake=yes
9370 1.1 mrg
9371 1.1 mrg fi;
9372 1.1.1.3 snj echo "$as_me:9372: result: $enable_imake" >&5
9373 1.1 mrg echo "${ECHO_T}$enable_imake" >&6
9374 1.1 mrg
9375 1.1 mrg if test "$enable_imake" = yes ; then
9376 1.1 mrg
9377 1.1 mrg for ac_prog in xmkmf imake
9378 1.1 mrg do
9379 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
9380 1.1 mrg set dummy $ac_prog; ac_word=$2
9381 1.1.1.3 snj echo "$as_me:9381: checking for $ac_word" >&5
9382 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383 1.1 mrg if test "${ac_cv_path_IMAKE+set}" = set; then
9384 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
9385 1.1 mrg else
9386 1.1 mrg case $IMAKE in
9387 1.1 mrg [\\/]* | ?:[\\/]*)
9388 1.1 mrg ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
9389 1.1 mrg ;;
9390 1.1 mrg *)
9391 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
9392 1.1 mrg ac_dummy="$PATH"
9393 1.1 mrg for ac_dir in $ac_dummy; do
9394 1.1 mrg IFS=$ac_save_IFS
9395 1.1 mrg test -z "$ac_dir" && ac_dir=.
9396 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
9397 1.1 mrg ac_cv_path_IMAKE="$ac_dir/$ac_word"
9398 1.1.1.3 snj echo "$as_me:9398: found $ac_dir/$ac_word" >&5
9399 1.1 mrg break
9400 1.1 mrg fi
9401 1.1 mrg done
9402 1.1 mrg
9403 1.1 mrg ;;
9404 1.1 mrg esac
9405 1.1 mrg fi
9406 1.1 mrg IMAKE=$ac_cv_path_IMAKE
9407 1.1 mrg
9408 1.1 mrg if test -n "$IMAKE"; then
9409 1.1.1.3 snj echo "$as_me:9409: result: $IMAKE" >&5
9410 1.1 mrg echo "${ECHO_T}$IMAKE" >&6
9411 1.1 mrg else
9412 1.1.1.3 snj echo "$as_me:9412: result: no" >&5
9413 1.1 mrg echo "${ECHO_T}no" >&6
9414 1.1 mrg fi
9415 1.1 mrg
9416 1.1 mrg test -n "$IMAKE" && break
9417 1.1 mrg done
9418 1.1 mrg
9419 1.1 mrg if test -n "$IMAKE" ; then
9420 1.1 mrg
9421 1.1 mrg case $IMAKE in # (vi
9422 1.1 mrg */imake)
9423 1.1 mrg cf_imake_opts="-DUseInstalled=YES" # (vi
9424 1.1 mrg ;;
9425 1.1 mrg */util/xmkmf)
9426 1.1 mrg # A single parameter tells xmkmf where the config-files are:
9427 1.1 mrg cf_imake_opts="`echo $IMAKE|sed -e s,/config/util/xmkmf,,`" # (vi
9428 1.1 mrg ;;
9429 1.1 mrg *)
9430 1.1 mrg cf_imake_opts=
9431 1.1 mrg ;;
9432 1.1 mrg esac
9433 1.1 mrg
9434 1.1 mrg # If it's installed properly, imake (or its wrapper, xmkmf) will point to the
9435 1.1 mrg # config directory.
9436 1.1 mrg if mkdir conftestdir; then
9437 1.1 mrg CDPATH=; export CDPATH
9438 1.1 mrg cf_makefile=`cd $srcdir;pwd`/Imakefile
9439 1.1 mrg cd conftestdir
9440 1.1 mrg
9441 1.1 mrg cat >fix_cflags.sed <<'CF_EOF'
9442 1.1 mrg s/\\//g
9443 1.1 mrg s/[ ][ ]*/ /g
9444 1.1 mrg s/"//g
9445 1.1 mrg :pack
9446 1.1 mrg s/\(=[^ ][^ ]*\) \([^-]\)/\1 \2/g
9447 1.1 mrg t pack
9448 1.1 mrg s/\(-D[a-zA-Z0-9_][a-zA-Z0-9_]*\)=\([^\'0-9 ][^ ]*\)/\1='\\"\2\\"'/g
9449 1.1 mrg s/^IMAKE[ ]/IMAKE_CFLAGS="/
9450 1.1 mrg s/ / /g
9451 1.1 mrg s/$/"/
9452 1.1 mrg CF_EOF
9453 1.1 mrg
9454 1.1 mrg cat >fix_lflags.sed <<'CF_EOF'
9455 1.1 mrg s/^IMAKE[ ]*/IMAKE_LOADFLAGS="/
9456 1.1 mrg s/$/"/
9457 1.1 mrg CF_EOF
9458 1.1 mrg
9459 1.1 mrg echo >./Imakefile
9460 1.1 mrg test -f $cf_makefile && cat $cf_makefile >>./Imakefile
9461 1.1 mrg
9462 1.1 mrg cat >> ./Imakefile <<'CF_EOF'
9463 1.1 mrg findstddefs:
9464 1.1 mrg @echo IMAKE ${ALLDEFINES} $(MAIN_DEFINES) $(VENDORMANDEFS) | sed -f fix_cflags.sed
9465 1.1 mrg @echo IMAKE ${EXTRA_LOAD_FLAGS} | sed -f fix_lflags.sed
9466 1.1 mrg CF_EOF
9467 1.1 mrg
9468 1.1 mrg if ( $IMAKE $cf_imake_opts 1>/dev/null 2>&5 && test -f Makefile)
9469 1.1 mrg then
9470 1.1 mrg test -n "$verbose" && echo " Using $IMAKE $cf_imake_opts" 1>&6
9471 1.1 mrg
9472 1.1.1.3 snj echo "${as_me-configure}:9472: testing Using $IMAKE $cf_imake_opts ..." 1>&5
9473 1.1 mrg
9474 1.1 mrg else
9475 1.1 mrg # sometimes imake doesn't have the config path compiled in. Find it.
9476 1.1 mrg cf_config=
9477 1.1 mrg for cf_libpath in $X_LIBS $LIBS ; do
9478 1.1 mrg case $cf_libpath in # (vi
9479 1.1 mrg -L*)
9480 1.1 mrg cf_libpath=`echo .$cf_libpath | sed -e 's/^...//'`
9481 1.1 mrg cf_libpath=$cf_libpath/X11/config
9482 1.1 mrg if test -d $cf_libpath ; then
9483 1.1 mrg cf_config=$cf_libpath
9484 1.1 mrg break
9485 1.1 mrg fi
9486 1.1 mrg ;;
9487 1.1 mrg esac
9488 1.1 mrg done
9489 1.1 mrg if test -z "$cf_config" ; then
9490 1.1.1.3 snj { echo "$as_me:9490: WARNING: Could not find imake config-directory" >&5
9491 1.1 mrg echo "$as_me: WARNING: Could not find imake config-directory" >&2;}
9492 1.1 mrg else
9493 1.1 mrg cf_imake_opts="$cf_imake_opts -I$cf_config"
9494 1.1 mrg if ( $IMAKE -v $cf_imake_opts 2>&5)
9495 1.1 mrg then
9496 1.1 mrg test -n "$verbose" && echo " Using $IMAKE $cf_config" 1>&6
9497 1.1 mrg
9498 1.1.1.3 snj echo "${as_me-configure}:9498: testing Using $IMAKE $cf_config ..." 1>&5
9499 1.1 mrg
9500 1.1 mrg else
9501 1.1.1.3 snj { echo "$as_me:9501: WARNING: Cannot run $IMAKE" >&5
9502 1.1 mrg echo "$as_me: WARNING: Cannot run $IMAKE" >&2;}
9503 1.1 mrg fi
9504 1.1 mrg fi
9505 1.1 mrg fi
9506 1.1 mrg
9507 1.1 mrg # GNU make sometimes prints "make[1]: Entering...", which
9508 1.1 mrg # would confuse us.
9509 1.1 mrg eval `make findstddefs 2>/dev/null | grep -v make`
9510 1.1 mrg
9511 1.1 mrg cd ..
9512 1.1 mrg rm -rf conftestdir
9513 1.1 mrg
9514 1.1 mrg # We use ${ALLDEFINES} rather than ${STD_DEFINES} because the former
9515 1.1 mrg # declares XTFUNCPROTO there. However, some vendors (e.g., SGI) have
9516 1.1 mrg # modified it to support site.cf, adding a kludge for the /usr/include
9517 1.1 mrg # directory. Try to filter that out, otherwise gcc won't find its
9518 1.1 mrg # headers.
9519 1.1 mrg if test -n "$GCC" ; then
9520 1.1 mrg if test -n "$IMAKE_CFLAGS" ; then
9521 1.1 mrg cf_nostdinc=""
9522 1.1 mrg cf_std_incl=""
9523 1.1 mrg cf_cpp_opts=""
9524 1.1 mrg for cf_opt in $IMAKE_CFLAGS
9525 1.1 mrg do
9526 1.1 mrg case "$cf_opt" in
9527 1.1 mrg -nostdinc) #(vi
9528 1.1 mrg cf_nostdinc="$cf_opt"
9529 1.1 mrg ;;
9530 1.1 mrg -I/usr/include) #(vi
9531 1.1 mrg cf_std_incl="$cf_opt"
9532 1.1 mrg ;;
9533 1.1 mrg *) #(vi
9534 1.1 mrg cf_cpp_opts="$cf_cpp_opts $cf_opt"
9535 1.1 mrg ;;
9536 1.1 mrg esac
9537 1.1 mrg done
9538 1.1 mrg if test -z "$cf_nostdinc" ; then
9539 1.1 mrg IMAKE_CFLAGS="$cf_cpp_opts $cf_std_incl"
9540 1.1 mrg elif test -z "$cf_std_incl" ; then
9541 1.1 mrg IMAKE_CFLAGS="$cf_cpp_opts $cf_nostdinc"
9542 1.1 mrg else
9543 1.1 mrg test -n "$verbose" && echo " suppressed \"$cf_nostdinc\" and \"$cf_std_incl\"" 1>&6
9544 1.1 mrg
9545 1.1.1.3 snj echo "${as_me-configure}:9545: testing suppressed \"$cf_nostdinc\" and \"$cf_std_incl\" ..." 1>&5
9546 1.1 mrg
9547 1.1 mrg IMAKE_CFLAGS="$cf_cpp_opts"
9548 1.1 mrg fi
9549 1.1 mrg fi
9550 1.1 mrg fi
9551 1.1 mrg fi
9552 1.1 mrg
9553 1.1 mrg # Some imake configurations define PROJECTROOT with an empty value. Remove
9554 1.1 mrg # the empty definition.
9555 1.1 mrg case $IMAKE_CFLAGS in
9556 1.1 mrg *-DPROJECTROOT=/*)
9557 1.1 mrg ;;
9558 1.1 mrg *)
9559 1.1 mrg IMAKE_CFLAGS=`echo "$IMAKE_CFLAGS" |sed -e "s,-DPROJECTROOT=[ ], ,"`
9560 1.1 mrg ;;
9561 1.1 mrg esac
9562 1.1 mrg
9563 1.1 mrg fi
9564 1.1 mrg
9565 1.1 mrg test -n "$verbose" && echo " IMAKE_CFLAGS $IMAKE_CFLAGS" 1>&6
9566 1.1 mrg
9567 1.1.1.3 snj echo "${as_me-configure}:9567: testing IMAKE_CFLAGS $IMAKE_CFLAGS ..." 1>&5
9568 1.1 mrg
9569 1.1 mrg test -n "$verbose" && echo " IMAKE_LOADFLAGS $IMAKE_LOADFLAGS" 1>&6
9570 1.1 mrg
9571 1.1.1.3 snj echo "${as_me-configure}:9571: testing IMAKE_LOADFLAGS $IMAKE_LOADFLAGS ..." 1>&5
9572 1.1 mrg
9573 1.1 mrg fi
9574 1.1 mrg
9575 1.1 mrg if test -n "$IMAKE" && test -n "$IMAKE_CFLAGS" ; then
9576 1.1 mrg
9577 1.1 mrg cf_fix_cppflags=no
9578 1.1 mrg cf_new_cflags=
9579 1.1 mrg cf_new_cppflags=
9580 1.1 mrg cf_new_extra_cppflags=
9581 1.1 mrg
9582 1.1 mrg for cf_add_cflags in $IMAKE_CFLAGS
9583 1.1 mrg do
9584 1.1 mrg case $cf_fix_cppflags in
9585 1.1 mrg no)
9586 1.1 mrg case $cf_add_cflags in #(vi
9587 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9588 1.1 mrg case $cf_add_cflags in
9589 1.1 mrg -D*)
9590 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9591 1.1 mrg
9592 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9593 1.1 mrg && test -z "${cf_tst_cflags}" \
9594 1.1 mrg && cf_fix_cppflags=yes
9595 1.1 mrg
9596 1.1 mrg if test $cf_fix_cppflags = yes ; then
9597 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9598 1.1 mrg continue
9599 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; 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 fi
9603 1.1 mrg ;;
9604 1.1 mrg esac
9605 1.1 mrg case "$CPPFLAGS" in
9606 1.1 mrg *$cf_add_cflags) #(vi
9607 1.1 mrg ;;
9608 1.1 mrg *) #(vi
9609 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9610 1.1 mrg ;;
9611 1.1 mrg esac
9612 1.1 mrg ;;
9613 1.1 mrg *)
9614 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9615 1.1 mrg ;;
9616 1.1 mrg esac
9617 1.1 mrg ;;
9618 1.1 mrg yes)
9619 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9620 1.1 mrg
9621 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9622 1.1 mrg
9623 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9624 1.1 mrg && test -z "${cf_tst_cflags}" \
9625 1.1 mrg && cf_fix_cppflags=no
9626 1.1 mrg ;;
9627 1.1 mrg esac
9628 1.1 mrg done
9629 1.1 mrg
9630 1.1 mrg if test -n "$cf_new_cflags" ; then
9631 1.1 mrg
9632 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
9633 1.1 mrg fi
9634 1.1 mrg
9635 1.1 mrg if test -n "$cf_new_cppflags" ; then
9636 1.1 mrg
9637 1.1.1.3 snj CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9638 1.1 mrg fi
9639 1.1 mrg
9640 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
9641 1.1 mrg
9642 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9643 1.1 mrg fi
9644 1.1 mrg
9645 1.1 mrg else
9646 1.1 mrg IMAKE_CFLAGS=
9647 1.1 mrg IMAKE_LOADFLAGS=
9648 1.1 mrg test -n "$verbose" && echo " make fallback definitions" 1>&6
9649 1.1 mrg
9650 1.1.1.3 snj echo "${as_me-configure}:9650: testing make fallback definitions ..." 1>&5
9651 1.1 mrg
9652 1.1 mrg # We prefer config.guess' values when we can get them, to avoid
9653 1.1 mrg # inconsistent results with uname (AIX for instance). However,
9654 1.1 mrg # config.guess is not always consistent either.
9655 1.1 mrg case $host_os in
9656 1.1 mrg *[0-9].[0-9]*)
9657 1.1 mrg UNAME_RELEASE="$host_os"
9658 1.1 mrg ;;
9659 1.1 mrg *)
9660 1.1 mrg UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
9661 1.1 mrg ;;
9662 1.1 mrg esac
9663 1.1 mrg
9664 1.1 mrg case .$UNAME_RELEASE in
9665 1.1 mrg *[0-9].[0-9]*)
9666 1.1 mrg OSMAJORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/\..*//'`
9667 1.1 mrg OSMINORVERSION=`echo "$UNAME_RELEASE" |sed -e 's/^[^0-9]*//' -e 's/^[^.]*\.//' -e 's/\..*//' -e 's/[^0-9].*//' `
9668 1.1 mrg test -z "$OSMAJORVERSION" && OSMAJORVERSION=1
9669 1.1 mrg test -z "$OSMINORVERSION" && OSMINORVERSION=0
9670 1.1 mrg IMAKE_CFLAGS="-DOSMAJORVERSION=$OSMAJORVERSION -DOSMINORVERSION=$OSMINORVERSION $IMAKE_CFLAGS"
9671 1.1 mrg ;;
9672 1.1 mrg esac
9673 1.1 mrg
9674 1.1 mrg # FUNCPROTO is standard with X11R6, but XFree86 drops it, leaving some
9675 1.1 mrg # fallback/fragments for NeedPrototypes, etc.
9676 1.1 mrg IMAKE_CFLAGS="-DFUNCPROTO=15 $IMAKE_CFLAGS"
9677 1.1 mrg
9678 1.1 mrg # If this is not set properly, Xaw's scrollbars will not work
9679 1.1 mrg if test "$enable_narrowproto" = yes ; then
9680 1.1 mrg IMAKE_CFLAGS="-DNARROWPROTO=1 $IMAKE_CFLAGS"
9681 1.1 mrg fi
9682 1.1 mrg
9683 1.1 mrg # Other special definitions:
9684 1.1 mrg case $host_os in
9685 1.1 mrg aix*)
9686 1.1 mrg # imake on AIX 5.1 defines AIXV3. really.
9687 1.1 mrg IMAKE_CFLAGS="-DAIXV3 -DAIXV4 $IMAKE_CFLAGS"
9688 1.1 mrg ;;
9689 1.1 mrg irix[56].*) #(vi
9690 1.1 mrg # these are needed to make SIGWINCH work in xterm
9691 1.1 mrg IMAKE_CFLAGS="-DSYSV -DSVR4 $IMAKE_CFLAGS"
9692 1.1 mrg ;;
9693 1.1 mrg esac
9694 1.1 mrg
9695 1.1 mrg cf_fix_cppflags=no
9696 1.1 mrg cf_new_cflags=
9697 1.1 mrg cf_new_cppflags=
9698 1.1 mrg cf_new_extra_cppflags=
9699 1.1 mrg
9700 1.1 mrg for cf_add_cflags in $IMAKE_CFLAGS
9701 1.1 mrg do
9702 1.1 mrg case $cf_fix_cppflags in
9703 1.1 mrg no)
9704 1.1 mrg case $cf_add_cflags in #(vi
9705 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9706 1.1 mrg case $cf_add_cflags in
9707 1.1 mrg -D*)
9708 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9709 1.1 mrg
9710 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9711 1.1 mrg && test -z "${cf_tst_cflags}" \
9712 1.1 mrg && cf_fix_cppflags=yes
9713 1.1 mrg
9714 1.1 mrg if test $cf_fix_cppflags = yes ; then
9715 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9716 1.1 mrg continue
9717 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; 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 fi
9721 1.1 mrg ;;
9722 1.1 mrg esac
9723 1.1 mrg case "$CPPFLAGS" in
9724 1.1 mrg *$cf_add_cflags) #(vi
9725 1.1 mrg ;;
9726 1.1 mrg *) #(vi
9727 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9728 1.1 mrg ;;
9729 1.1 mrg esac
9730 1.1 mrg ;;
9731 1.1 mrg *)
9732 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9733 1.1 mrg ;;
9734 1.1 mrg esac
9735 1.1 mrg ;;
9736 1.1 mrg yes)
9737 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9738 1.1 mrg
9739 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9740 1.1 mrg
9741 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9742 1.1 mrg && test -z "${cf_tst_cflags}" \
9743 1.1 mrg && cf_fix_cppflags=no
9744 1.1 mrg ;;
9745 1.1 mrg esac
9746 1.1 mrg done
9747 1.1 mrg
9748 1.1 mrg if test -n "$cf_new_cflags" ; then
9749 1.1 mrg
9750 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
9751 1.1 mrg fi
9752 1.1 mrg
9753 1.1 mrg if test -n "$cf_new_cppflags" ; then
9754 1.1 mrg
9755 1.1.1.3 snj CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9756 1.1 mrg fi
9757 1.1 mrg
9758 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
9759 1.1 mrg
9760 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9761 1.1 mrg fi
9762 1.1 mrg
9763 1.1 mrg fi
9764 1.1 mrg
9765 1.1.1.3 snj echo "$as_me:9765: checking for default terminal-id" >&5
9766 1.1 mrg echo $ECHO_N "checking for default terminal-id... $ECHO_C" >&6
9767 1.1 mrg
9768 1.1 mrg # Check whether --with-terminal-id or --without-terminal-id was given.
9769 1.1 mrg if test "${with_terminal_id+set}" = set; then
9770 1.1 mrg withval="$with_terminal_id"
9771 1.1 mrg default_termid=$withval
9772 1.1 mrg else
9773 1.1 mrg default_termid=vt100
9774 1.1 mrg fi;
9775 1.1.1.3 snj echo "$as_me:9775: result: $default_termid" >&5
9776 1.1 mrg echo "${ECHO_T}$default_termid" >&6
9777 1.1 mrg case $default_termid in
9778 1.1 mrg vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
9779 1.1 mrg ;;
9780 1.1 mrg esac
9781 1.1 mrg cat >>confdefs.h <<EOF
9782 1.1 mrg #define DFT_DECID "$default_termid"
9783 1.1 mrg EOF
9784 1.1 mrg
9785 1.1.1.3 snj echo "$as_me:9785: checking for default terminal-type" >&5
9786 1.1 mrg echo $ECHO_N "checking for default terminal-type... $ECHO_C" >&6
9787 1.1 mrg
9788 1.1 mrg # Check whether --with-terminal-type or --without-terminal-type was given.
9789 1.1 mrg if test "${with_terminal_type+set}" = set; then
9790 1.1 mrg withval="$with_terminal_type"
9791 1.1 mrg default_TERM=$withval
9792 1.1 mrg else
9793 1.1 mrg default_TERM=xterm
9794 1.1 mrg fi;
9795 1.1.1.3 snj echo "$as_me:9795: result: $default_TERM" >&5
9796 1.1 mrg echo "${ECHO_T}$default_TERM" >&6
9797 1.1 mrg cat >>confdefs.h <<EOF
9798 1.1 mrg #define DFT_TERMTYPE "$default_TERM"
9799 1.1 mrg EOF
9800 1.1 mrg
9801 1.1.1.3 snj echo "$as_me:9801: checking for private terminfo-directory" >&5
9802 1.1 mrg echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
9803 1.1 mrg
9804 1.1 mrg # Check whether --with-own-terminfo or --without-own-terminfo was given.
9805 1.1 mrg if test "${with_own_terminfo+set}" = set; then
9806 1.1 mrg withval="$with_own_terminfo"
9807 1.1 mrg TERMINFO_DIR=$withval
9808 1.1 mrg else
9809 1.1 mrg TERMINFO_DIR=${TERMINFO-none}
9810 1.1 mrg fi;
9811 1.1.1.3 snj echo "$as_me:9811: result: $TERMINFO_DIR" >&5
9812 1.1 mrg echo "${ECHO_T}$TERMINFO_DIR" >&6
9813 1.1 mrg if test "$TERMINFO_DIR" = yes ; then
9814 1.1.1.3 snj { echo "$as_me:9814: WARNING: no value given" >&5
9815 1.1 mrg echo "$as_me: WARNING: no value given" >&2;}
9816 1.1 mrg elif test "$TERMINFO_DIR" != none ; then
9817 1.1 mrg if test -d $TERMINFO_DIR ; then
9818 1.1 mrg cat >>confdefs.h <<EOF
9819 1.1 mrg #define OWN_TERMINFO_DIR "$TERMINFO_DIR"
9820 1.1 mrg EOF
9821 1.1 mrg
9822 1.1 mrg else
9823 1.1.1.3 snj { echo "$as_me:9823: WARNING: not a directory" >&5
9824 1.1 mrg echo "$as_me: WARNING: not a directory" >&2;}
9825 1.1 mrg fi
9826 1.1 mrg elif test "$prefix" != NONE ; then
9827 1.1 mrg TERMINFO_DIR='${prefix}/lib/terminfo'
9828 1.1 mrg elif test -d /usr/lib/terminfo ; then
9829 1.1 mrg TERMINFO_DIR=/usr/lib/terminfo
9830 1.1 mrg else
9831 1.1 mrg TERMINFO_DIR=
9832 1.1 mrg fi
9833 1.1 mrg SET_TERMINFO=
9834 1.1 mrg if test -n "$TERMINFO_DIR" ; then
9835 1.1 mrg TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
9836 1.1 mrg SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
9837 1.1 mrg fi
9838 1.1 mrg
9839 1.1 mrg ###############################################################################
9840 1.1 mrg
9841 1.1.1.3 snj echo "$as_me:9841: checking if you want active-icons" >&5
9842 1.1 mrg echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
9843 1.1 mrg
9844 1.1 mrg # Check whether --enable-active-icon or --disable-active-icon was given.
9845 1.1 mrg if test "${enable_active_icon+set}" = set; then
9846 1.1 mrg enableval="$enable_active_icon"
9847 1.1 mrg test "$enableval" != no && enableval=yes
9848 1.1 mrg if test "$enableval" != "yes" ; then
9849 1.1 mrg enable_active_icon=no
9850 1.1 mrg else
9851 1.1 mrg enable_active_icon=yes
9852 1.1 mrg fi
9853 1.1 mrg else
9854 1.1 mrg enableval=yes
9855 1.1 mrg enable_active_icon=yes
9856 1.1 mrg
9857 1.1 mrg fi;
9858 1.1.1.3 snj echo "$as_me:9858: result: $enable_active_icon" >&5
9859 1.1 mrg echo "${ECHO_T}$enable_active_icon" >&6
9860 1.1 mrg if test "$enable_active_icon" = no ; then
9861 1.1 mrg cat >>confdefs.h <<\EOF
9862 1.1 mrg #define NO_ACTIVE_ICON 1
9863 1.1 mrg EOF
9864 1.1 mrg
9865 1.1 mrg fi
9866 1.1 mrg
9867 1.1.1.3 snj echo "$as_me:9867: checking if you want ANSI color" >&5
9868 1.1 mrg echo $ECHO_N "checking if you want ANSI color... $ECHO_C" >&6
9869 1.1 mrg
9870 1.1 mrg # Check whether --enable-ansi-color or --disable-ansi-color was given.
9871 1.1 mrg if test "${enable_ansi_color+set}" = set; then
9872 1.1 mrg enableval="$enable_ansi_color"
9873 1.1 mrg test "$enableval" != no && enableval=yes
9874 1.1 mrg if test "$enableval" != "yes" ; then
9875 1.1 mrg enable_ansi_color=no
9876 1.1 mrg else
9877 1.1 mrg enable_ansi_color=yes
9878 1.1 mrg fi
9879 1.1 mrg else
9880 1.1 mrg enableval=yes
9881 1.1 mrg enable_ansi_color=yes
9882 1.1 mrg
9883 1.1 mrg fi;
9884 1.1.1.3 snj echo "$as_me:9884: result: $enable_ansi_color" >&5
9885 1.1 mrg echo "${ECHO_T}$enable_ansi_color" >&6
9886 1.1 mrg test "$enable_ansi_color" = no && cat >>confdefs.h <<\EOF
9887 1.1 mrg #define OPT_ISO_COLORS 0
9888 1.1 mrg EOF
9889 1.1 mrg
9890 1.1 mrg if test "$enable_ansi_color" = yes ; then
9891 1.1 mrg
9892 1.1.1.3 snj echo "$as_me:9892: checking if you want 16 colors like aixterm" >&5
9893 1.1 mrg echo $ECHO_N "checking if you want 16 colors like aixterm... $ECHO_C" >&6
9894 1.1 mrg
9895 1.1 mrg # Check whether --enable-16-color or --disable-16-color was given.
9896 1.1 mrg if test "${enable_16_color+set}" = set; then
9897 1.1 mrg enableval="$enable_16_color"
9898 1.1 mrg test "$enableval" != no && enableval=yes
9899 1.1 mrg if test "$enableval" != "yes" ; then
9900 1.1 mrg enable_16_color=no
9901 1.1 mrg else
9902 1.1 mrg enable_16_color=yes
9903 1.1 mrg fi
9904 1.1 mrg else
9905 1.1 mrg enableval=yes
9906 1.1 mrg enable_16_color=yes
9907 1.1 mrg
9908 1.1 mrg fi;
9909 1.1.1.3 snj echo "$as_me:9909: result: $enable_16_color" >&5
9910 1.1 mrg echo "${ECHO_T}$enable_16_color" >&6
9911 1.1 mrg test "$enable_16_color" = no && cat >>confdefs.h <<\EOF
9912 1.1 mrg #define OPT_AIX_COLORS 0
9913 1.1 mrg EOF
9914 1.1 mrg
9915 1.1.1.3 snj echo "$as_me:9915: checking if you want 256 colors" >&5
9916 1.1 mrg echo $ECHO_N "checking if you want 256 colors... $ECHO_C" >&6
9917 1.1 mrg
9918 1.1 mrg # Check whether --enable-256-color or --disable-256-color was given.
9919 1.1 mrg if test "${enable_256_color+set}" = set; then
9920 1.1 mrg enableval="$enable_256_color"
9921 1.1 mrg test "$enableval" != yes && enableval=no
9922 1.1 mrg if test "$enableval" != "no" ; then
9923 1.1 mrg enable_256_color=yes
9924 1.1 mrg else
9925 1.1 mrg enable_256_color=no
9926 1.1 mrg fi
9927 1.1 mrg else
9928 1.1 mrg enableval=no
9929 1.1 mrg enable_256_color=no
9930 1.1 mrg
9931 1.1 mrg fi;
9932 1.1.1.3 snj echo "$as_me:9932: result: $enable_256_color" >&5
9933 1.1 mrg echo "${ECHO_T}$enable_256_color" >&6
9934 1.1 mrg if test "$enable_256_color" = yes ; then
9935 1.1 mrg CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h"
9936 1.1 mrg EXTRAHDRS="$EXTRAHDRS 256colres.h"
9937 1.1 mrg cat >>confdefs.h <<\EOF
9938 1.1 mrg #define OPT_256_COLORS 1
9939 1.1 mrg EOF
9940 1.1 mrg
9941 1.1 mrg else
9942 1.1.1.3 snj echo "$as_me:9942: checking if you want 88 colors" >&5
9943 1.1 mrg echo $ECHO_N "checking if you want 88 colors... $ECHO_C" >&6
9944 1.1 mrg
9945 1.1 mrg # Check whether --enable-88-color or --disable-88-color was given.
9946 1.1 mrg if test "${enable_88_color+set}" = set; then
9947 1.1 mrg enableval="$enable_88_color"
9948 1.1 mrg test "$enableval" != yes && enableval=no
9949 1.1 mrg if test "$enableval" != "no" ; then
9950 1.1 mrg enable_88_color=yes
9951 1.1 mrg else
9952 1.1 mrg enable_88_color=no
9953 1.1 mrg fi
9954 1.1 mrg else
9955 1.1 mrg enableval=no
9956 1.1 mrg enable_88_color=no
9957 1.1 mrg
9958 1.1 mrg fi;
9959 1.1.1.3 snj echo "$as_me:9959: result: $enable_88_color" >&5
9960 1.1 mrg echo "${ECHO_T}$enable_88_color" >&6
9961 1.1 mrg if test "$enable_88_color" = yes ; then
9962 1.1 mrg CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h"
9963 1.1 mrg EXTRAHDRS="$EXTRAHDRS 88colres.h"
9964 1.1 mrg cat >>confdefs.h <<\EOF
9965 1.1 mrg #define OPT_88_COLORS 1
9966 1.1 mrg EOF
9967 1.1 mrg
9968 1.1 mrg fi
9969 1.1 mrg fi
9970 1.1 mrg
9971 1.1 mrg fi
9972 1.1 mrg
9973 1.1.1.3 snj echo "$as_me:9973: checking if you want blinking cursor" >&5
9974 1.1 mrg echo $ECHO_N "checking if you want blinking cursor... $ECHO_C" >&6
9975 1.1 mrg
9976 1.1 mrg # Check whether --enable-blink-cursor or --disable-blink-cursor was given.
9977 1.1 mrg if test "${enable_blink_cursor+set}" = set; then
9978 1.1 mrg enableval="$enable_blink_cursor"
9979 1.1 mrg test "$enableval" != no && enableval=yes
9980 1.1 mrg if test "$enableval" != "yes" ; then
9981 1.1 mrg enable_blink_curs=no
9982 1.1 mrg else
9983 1.1 mrg enable_blink_curs=yes
9984 1.1 mrg fi
9985 1.1 mrg else
9986 1.1 mrg enableval=yes
9987 1.1 mrg enable_blink_curs=yes
9988 1.1 mrg
9989 1.1 mrg fi;
9990 1.1.1.3 snj echo "$as_me:9990: result: $enable_blink_curs" >&5
9991 1.1 mrg echo "${ECHO_T}$enable_blink_curs" >&6
9992 1.1 mrg test "$enable_blink_curs" = no && cat >>confdefs.h <<\EOF
9993 1.1 mrg #define OPT_BLINK_CURS 0
9994 1.1 mrg EOF
9995 1.1 mrg
9996 1.1.1.3 snj echo "$as_me:9996: checking if you want to ignore Linux's broken palette-strings" >&5
9997 1.1 mrg echo $ECHO_N "checking if you want to ignore Linux's broken palette-strings... $ECHO_C" >&6
9998 1.1 mrg
9999 1.1 mrg case $host_os in #(vi
10000 1.1 mrg linux*)
10001 1.1 mrg assume_broken_osc=yes ;; #(vi
10002 1.1 mrg *)
10003 1.1 mrg assume_broken_osc=no ;;
10004 1.1 mrg esac
10005 1.1 mrg
10006 1.1 mrg # Check whether --enable-broken-osc or --disable-broken-osc was given.
10007 1.1 mrg if test "${enable_broken_osc+set}" = set; then
10008 1.1 mrg enableval="$enable_broken_osc"
10009 1.1 mrg test "$enableval" != no && enableval=yes
10010 1.1 mrg if test "$enableval" != "$assume_broken_osc" ; then
10011 1.1 mrg enable_broken_osc=$enableval
10012 1.1 mrg else
10013 1.1 mrg enable_broken_osc=$enableval
10014 1.1 mrg fi
10015 1.1 mrg else
10016 1.1 mrg enableval=$assume_broken_osc
10017 1.1 mrg enable_broken_osc=$enableval
10018 1.1 mrg
10019 1.1 mrg fi;
10020 1.1.1.3 snj echo "$as_me:10020: result: $enable_broken_osc" >&5
10021 1.1 mrg echo "${ECHO_T}$enable_broken_osc" >&6
10022 1.1 mrg if test "$enable_broken_osc" = yes ; then
10023 1.1 mrg cat >>confdefs.h <<\EOF
10024 1.1 mrg #define OPT_BROKEN_OSC 1
10025 1.1 mrg EOF
10026 1.1 mrg
10027 1.1 mrg else
10028 1.1 mrg cat >>confdefs.h <<\EOF
10029 1.1 mrg #define OPT_BROKEN_OSC 0
10030 1.1 mrg EOF
10031 1.1 mrg
10032 1.1 mrg fi
10033 1.1 mrg
10034 1.1.1.3 snj echo "$as_me:10034: checking if you want to allow broken string-terminators" >&5
10035 1.1 mrg echo $ECHO_N "checking if you want to allow broken string-terminators... $ECHO_C" >&6
10036 1.1 mrg
10037 1.1 mrg # Check whether --enable-broken-st or --disable-broken-st was given.
10038 1.1 mrg if test "${enable_broken_st+set}" = set; then
10039 1.1 mrg enableval="$enable_broken_st"
10040 1.1 mrg test "$enableval" != yes && enableval=no
10041 1.1 mrg if test "$enableval" != "no" ; then
10042 1.1 mrg enable_broken_st=yes
10043 1.1 mrg else
10044 1.1 mrg enable_broken_st=no
10045 1.1 mrg fi
10046 1.1 mrg else
10047 1.1 mrg enableval=no
10048 1.1 mrg enable_broken_st=no
10049 1.1 mrg
10050 1.1 mrg fi;
10051 1.1.1.3 snj echo "$as_me:10051: result: $enable_broken_st" >&5
10052 1.1 mrg echo "${ECHO_T}$enable_broken_st" >&6
10053 1.1 mrg test "$enable_broken_st" = no && cat >>confdefs.h <<\EOF
10054 1.1 mrg #define OPT_BROKEN_ST 0
10055 1.1 mrg EOF
10056 1.1 mrg
10057 1.1.1.3 snj echo "$as_me:10057: checking if you want printable 128-159" >&5
10058 1.1 mrg echo $ECHO_N "checking if you want printable 128-159... $ECHO_C" >&6
10059 1.1 mrg
10060 1.1 mrg # Check whether --enable-c1-print or --disable-c1-print was given.
10061 1.1 mrg if test "${enable_c1_print+set}" = set; then
10062 1.1 mrg enableval="$enable_c1_print"
10063 1.1 mrg test "$enableval" != no && enableval=yes
10064 1.1 mrg if test "$enableval" != "yes" ; then
10065 1.1 mrg enable_c1_print=no
10066 1.1 mrg else
10067 1.1 mrg enable_c1_print=yes
10068 1.1 mrg fi
10069 1.1 mrg else
10070 1.1 mrg enableval=yes
10071 1.1 mrg enable_c1_print=yes
10072 1.1 mrg
10073 1.1 mrg fi;
10074 1.1.1.3 snj echo "$as_me:10074: result: $enable_c1_print" >&5
10075 1.1 mrg echo "${ECHO_T}$enable_c1_print" >&6
10076 1.1 mrg test "$enable_c1_print" = no && cat >>confdefs.h <<\EOF
10077 1.1 mrg #define OPT_C1_PRINT 0
10078 1.1 mrg EOF
10079 1.1 mrg
10080 1.1 mrg if test "$enable_ansi_color" = yes ; then
10081 1.1 mrg
10082 1.1.1.3 snj echo "$as_me:10082: checking if you want bold colors mapped like IBM PC" >&5
10083 1.1 mrg echo $ECHO_N "checking if you want bold colors mapped like IBM PC... $ECHO_C" >&6
10084 1.1 mrg
10085 1.1 mrg # Check whether --enable-bold-color or --disable-bold-color was given.
10086 1.1 mrg if test "${enable_bold_color+set}" = set; then
10087 1.1 mrg enableval="$enable_bold_color"
10088 1.1 mrg test "$enableval" != no && enableval=yes
10089 1.1 mrg if test "$enableval" != "yes" ; then
10090 1.1 mrg enable_pc_color=no
10091 1.1 mrg else
10092 1.1 mrg enable_pc_color=yes
10093 1.1 mrg fi
10094 1.1 mrg else
10095 1.1 mrg enableval=yes
10096 1.1 mrg enable_pc_color=yes
10097 1.1 mrg
10098 1.1 mrg fi;
10099 1.1.1.3 snj echo "$as_me:10099: result: $enable_pc_color" >&5
10100 1.1 mrg echo "${ECHO_T}$enable_pc_color" >&6
10101 1.1 mrg test "$enable_pc_color" = no && cat >>confdefs.h <<\EOF
10102 1.1 mrg #define OPT_PC_COLORS 0
10103 1.1 mrg EOF
10104 1.1 mrg
10105 1.1.1.3 snj echo "$as_me:10105: checking if you want separate color-classes" >&5
10106 1.1 mrg echo $ECHO_N "checking if you want separate color-classes... $ECHO_C" >&6
10107 1.1 mrg
10108 1.1 mrg # Check whether --enable-color-class or --disable-color-class was given.
10109 1.1 mrg if test "${enable_color_class+set}" = set; then
10110 1.1 mrg enableval="$enable_color_class"
10111 1.1 mrg test "$enableval" != no && enableval=yes
10112 1.1 mrg if test "$enableval" != "yes" ; then
10113 1.1 mrg enable_color_class=no
10114 1.1 mrg else
10115 1.1 mrg enable_color_class=yes
10116 1.1 mrg fi
10117 1.1 mrg else
10118 1.1 mrg enableval=yes
10119 1.1 mrg enable_color_class=yes
10120 1.1 mrg
10121 1.1 mrg fi;
10122 1.1.1.3 snj echo "$as_me:10122: result: $enable_color_class" >&5
10123 1.1 mrg echo "${ECHO_T}$enable_color_class" >&6
10124 1.1 mrg test "$enable_color_class" = no && cat >>confdefs.h <<\EOF
10125 1.1 mrg #define OPT_COLOR_CLASS FALSE
10126 1.1 mrg EOF
10127 1.1 mrg
10128 1.1.1.3 snj echo "$as_me:10128: checking if you want color-mode enabled by default" >&5
10129 1.1 mrg echo $ECHO_N "checking if you want color-mode enabled by default... $ECHO_C" >&6
10130 1.1 mrg
10131 1.1 mrg # Check whether --enable-color-mode or --disable-color-mode was given.
10132 1.1 mrg if test "${enable_color_mode+set}" = set; then
10133 1.1 mrg enableval="$enable_color_mode"
10134 1.1 mrg test "$enableval" != no && enableval=yes
10135 1.1 mrg if test "$enableval" != "yes" ; then
10136 1.1 mrg default_colormode=no
10137 1.1 mrg else
10138 1.1 mrg default_colormode=yes
10139 1.1 mrg fi
10140 1.1 mrg else
10141 1.1 mrg enableval=yes
10142 1.1 mrg default_colormode=yes
10143 1.1 mrg
10144 1.1 mrg fi;
10145 1.1.1.3 snj echo "$as_me:10145: result: $default_colormode" >&5
10146 1.1 mrg echo "${ECHO_T}$default_colormode" >&6
10147 1.1 mrg test "$default_colormode" = no && cat >>confdefs.h <<\EOF
10148 1.1 mrg #define DFT_COLORMODE FALSE
10149 1.1 mrg EOF
10150 1.1 mrg
10151 1.1 mrg fi
10152 1.1 mrg
10153 1.1.1.3 snj echo "$as_me:10153: checking if you want support for color highlighting" >&5
10154 1.1 mrg echo $ECHO_N "checking if you want support for color highlighting... $ECHO_C" >&6
10155 1.1 mrg
10156 1.1 mrg # Check whether --enable-highlighting or --disable-highlighting was given.
10157 1.1 mrg if test "${enable_highlighting+set}" = set; then
10158 1.1 mrg enableval="$enable_highlighting"
10159 1.1 mrg test "$enableval" != no && enableval=yes
10160 1.1 mrg if test "$enableval" != "yes" ; then
10161 1.1 mrg default_highlight=no
10162 1.1 mrg else
10163 1.1 mrg default_highlight=yes
10164 1.1 mrg fi
10165 1.1 mrg else
10166 1.1 mrg enableval=yes
10167 1.1 mrg default_highlight=yes
10168 1.1 mrg
10169 1.1 mrg fi;
10170 1.1.1.3 snj echo "$as_me:10170: result: $default_highlight" >&5
10171 1.1 mrg echo "${ECHO_T}$default_highlight" >&6
10172 1.1 mrg test "$default_highlight" = no && cat >>confdefs.h <<\EOF
10173 1.1 mrg #define OPT_HIGHLIGHT_COLOR 0
10174 1.1 mrg EOF
10175 1.1 mrg
10176 1.1.1.3 snj echo "$as_me:10176: checking if you want support for doublesize characters" >&5
10177 1.1 mrg echo $ECHO_N "checking if you want support for doublesize characters... $ECHO_C" >&6
10178 1.1 mrg
10179 1.1 mrg # Check whether --enable-doublechars or --disable-doublechars was given.
10180 1.1 mrg if test "${enable_doublechars+set}" = set; then
10181 1.1 mrg enableval="$enable_doublechars"
10182 1.1 mrg test "$enableval" != no && enableval=yes
10183 1.1 mrg if test "$enableval" != "yes" ; then
10184 1.1 mrg enable_doublechars=no
10185 1.1 mrg else
10186 1.1 mrg enable_doublechars=yes
10187 1.1 mrg fi
10188 1.1 mrg else
10189 1.1 mrg enableval=yes
10190 1.1 mrg enable_doublechars=yes
10191 1.1 mrg
10192 1.1 mrg fi;
10193 1.1.1.3 snj echo "$as_me:10193: result: $enable_doublechars" >&5
10194 1.1 mrg echo "${ECHO_T}$enable_doublechars" >&6
10195 1.1 mrg test "$enable_doublechars" = no && cat >>confdefs.h <<\EOF
10196 1.1 mrg #define OPT_DEC_CHRSET 0
10197 1.1 mrg EOF
10198 1.1 mrg
10199 1.1.1.3 snj echo "$as_me:10199: checking if you want fallback-support for box characters" >&5
10200 1.1 mrg echo $ECHO_N "checking if you want fallback-support for box characters... $ECHO_C" >&6
10201 1.1 mrg
10202 1.1 mrg # Check whether --enable-boxchars or --disable-boxchars was given.
10203 1.1 mrg if test "${enable_boxchars+set}" = set; then
10204 1.1 mrg enableval="$enable_boxchars"
10205 1.1 mrg test "$enableval" != no && enableval=yes
10206 1.1 mrg if test "$enableval" != "yes" ; then
10207 1.1 mrg enable_boxchars=no
10208 1.1 mrg else
10209 1.1 mrg enable_boxchars=yes
10210 1.1 mrg fi
10211 1.1 mrg else
10212 1.1 mrg enableval=yes
10213 1.1 mrg enable_boxchars=yes
10214 1.1 mrg
10215 1.1 mrg fi;
10216 1.1.1.3 snj echo "$as_me:10216: result: $enable_boxchars" >&5
10217 1.1 mrg echo "${ECHO_T}$enable_boxchars" >&6
10218 1.1 mrg test "$enable_boxchars" = no && cat >>confdefs.h <<\EOF
10219 1.1 mrg #define OPT_BOX_CHARS 0
10220 1.1 mrg EOF
10221 1.1 mrg
10222 1.1.1.3 snj echo "$as_me:10222: checking if you want to allow spawning new xterms" >&5
10223 1.1 mrg echo $ECHO_N "checking if you want to allow spawning new xterms... $ECHO_C" >&6
10224 1.1 mrg
10225 1.1 mrg # Check whether --enable-exec-xterm or --disable-exec-xterm was given.
10226 1.1 mrg if test "${enable_exec_xterm+set}" = set; then
10227 1.1 mrg enableval="$enable_exec_xterm"
10228 1.1 mrg test "$enableval" != yes && enableval=no
10229 1.1 mrg if test "$enableval" != "no" ; then
10230 1.1 mrg enable_exec_xterm=yes
10231 1.1 mrg else
10232 1.1 mrg enable_exec_xterm=no
10233 1.1 mrg fi
10234 1.1 mrg else
10235 1.1 mrg enableval=no
10236 1.1 mrg enable_exec_xterm=no
10237 1.1 mrg
10238 1.1 mrg fi;
10239 1.1.1.3 snj echo "$as_me:10239: result: $enable_exec_xterm" >&5
10240 1.1 mrg echo "${ECHO_T}$enable_exec_xterm" >&6
10241 1.1 mrg if test "$enable_exec_xterm" = yes ; then
10242 1.1 mrg
10243 1.1.1.3 snj echo "$as_me:10243: checking for proc tree with cwd-support" >&5
10244 1.1 mrg echo $ECHO_N "checking for proc tree with cwd-support... $ECHO_C" >&6
10245 1.1 mrg if test "${cf_cv_procfs_cwd+set}" = set; then
10246 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10247 1.1 mrg else
10248 1.1 mrg
10249 1.1 mrg cf_cv_procfs_cwd=no
10250 1.1 mrg for cf_path in /proc /compat/linux/proc /usr/compat/linux/proc
10251 1.1 mrg do
10252 1.1 mrg if test -d $cf_path && \
10253 1.1 mrg test -d $cf_path/$$ && \
10254 1.1 mrg ( test -d $cf_path/$$/cwd || \
10255 1.1 mrg test -L $cf_path/$$/cwd ); then
10256 1.1 mrg cf_cv_procfs_cwd=$cf_path
10257 1.1 mrg break
10258 1.1 mrg fi
10259 1.1 mrg done
10260 1.1 mrg
10261 1.1 mrg fi
10262 1.1.1.3 snj echo "$as_me:10262: result: $cf_cv_procfs_cwd" >&5
10263 1.1 mrg echo "${ECHO_T}$cf_cv_procfs_cwd" >&6
10264 1.1 mrg
10265 1.1 mrg if test "$cf_cv_procfs_cwd" = no ; then
10266 1.1.1.3 snj { echo "$as_me:10266: WARNING: no suitable proc filesystem found" >&5
10267 1.1 mrg echo "$as_me: WARNING: no suitable proc filesystem found" >&2;}
10268 1.1 mrg else
10269 1.1 mrg cat >>confdefs.h <<EOF
10270 1.1 mrg #define PROCFS_ROOT "$cf_cv_procfs_cwd"
10271 1.1 mrg EOF
10272 1.1 mrg
10273 1.1 mrg cat >>confdefs.h <<\EOF
10274 1.1 mrg #define OPT_EXEC_XTERM 1
10275 1.1 mrg EOF
10276 1.1 mrg
10277 1.1 mrg fi
10278 1.1 mrg fi
10279 1.1 mrg
10280 1.1.1.3 snj echo "$as_me:10280: checking if you want to use FreeType library" >&5
10281 1.1 mrg echo $ECHO_N "checking if you want to use FreeType library... $ECHO_C" >&6
10282 1.1 mrg
10283 1.1 mrg # Check whether --enable-freetype or --disable-freetype was given.
10284 1.1 mrg if test "${enable_freetype+set}" = set; then
10285 1.1 mrg enableval="$enable_freetype"
10286 1.1 mrg test "$enableval" != no && enableval=yes
10287 1.1 mrg if test "$enableval" != "yes" ; then
10288 1.1 mrg enable_freetype=no
10289 1.1 mrg else
10290 1.1 mrg enable_freetype=yes
10291 1.1 mrg fi
10292 1.1 mrg else
10293 1.1 mrg enableval=yes
10294 1.1 mrg enable_freetype=yes
10295 1.1 mrg
10296 1.1 mrg fi;
10297 1.1.1.3 snj echo "$as_me:10297: result: $enable_freetype" >&5
10298 1.1 mrg echo "${ECHO_T}$enable_freetype" >&6
10299 1.1 mrg if test "$enable_freetype" = yes ; then
10300 1.1 mrg
10301 1.1.1.3 snj echo "$as_me:10301: checking if you want to use pkg-config" >&5
10302 1.1.1.3 snj echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
10303 1.1 mrg
10304 1.1.1.3 snj # Check whether --with-pkg-config or --without-pkg-config was given.
10305 1.1.1.3 snj if test "${with_pkg_config+set}" = set; then
10306 1.1.1.3 snj withval="$with_pkg_config"
10307 1.1.1.3 snj cf_pkg_config=$withval
10308 1.1 mrg else
10309 1.1.1.3 snj cf_pkg_config=yes
10310 1.1 mrg fi;
10311 1.1.1.3 snj echo "$as_me:10311: result: $cf_pkg_config" >&5
10312 1.1.1.3 snj echo "${ECHO_T}$cf_pkg_config" >&6
10313 1.1 mrg
10314 1.1.1.3 snj case $cf_pkg_config in #(vi
10315 1.1.1.3 snj no) #(vi
10316 1.1.1.3 snj PKG_CONFIG=none
10317 1.1.1.3 snj ;;
10318 1.1.1.3 snj yes) #(vi
10319 1.1.1.3 snj # Extract the first word of "pkg-config", so it can be a program name with args.
10320 1.1 mrg set dummy pkg-config; ac_word=$2
10321 1.1.1.3 snj echo "$as_me:10321: checking for $ac_word" >&5
10322 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10323 1.1.1.3 snj if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10324 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10325 1.1 mrg else
10326 1.1.1.3 snj case $PKG_CONFIG in
10327 1.1 mrg [\\/]* | ?:[\\/]*)
10328 1.1.1.3 snj ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10329 1.1 mrg ;;
10330 1.1 mrg *)
10331 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
10332 1.1 mrg ac_dummy="$PATH"
10333 1.1 mrg for ac_dir in $ac_dummy; do
10334 1.1 mrg IFS=$ac_save_IFS
10335 1.1 mrg test -z "$ac_dir" && ac_dir=.
10336 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
10337 1.1.1.3 snj ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
10338 1.1.1.3 snj echo "$as_me:10338: found $ac_dir/$ac_word" >&5
10339 1.1 mrg break
10340 1.1 mrg fi
10341 1.1 mrg done
10342 1.1 mrg
10343 1.1.1.3 snj test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
10344 1.1 mrg ;;
10345 1.1 mrg esac
10346 1.1 mrg fi
10347 1.1.1.3 snj PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10348 1.1 mrg
10349 1.1.1.3 snj if test -n "$PKG_CONFIG"; then
10350 1.1.1.3 snj echo "$as_me:10350: result: $PKG_CONFIG" >&5
10351 1.1.1.3 snj echo "${ECHO_T}$PKG_CONFIG" >&6
10352 1.1 mrg else
10353 1.1.1.3 snj echo "$as_me:10353: result: no" >&5
10354 1.1 mrg echo "${ECHO_T}no" >&6
10355 1.1 mrg fi
10356 1.1 mrg
10357 1.1.1.3 snj ;;
10358 1.1.1.3 snj *)
10359 1.1.1.3 snj PKG_CONFIG=$withval
10360 1.1.1.3 snj ;;
10361 1.1.1.3 snj esac
10362 1.1.1.3 snj
10363 1.1.1.3 snj test -z "$PKG_CONFIG" && PKG_CONFIG=none
10364 1.1.1.3 snj if test "$PKG_CONFIG" != none ; then
10365 1.1.1.3 snj
10366 1.1.1.3 snj if test "x$prefix" != xNONE; then
10367 1.1.1.3 snj cf_path_syntax="$prefix"
10368 1.1.1.3 snj else
10369 1.1.1.3 snj cf_path_syntax="$ac_default_prefix"
10370 1.1.1.3 snj fi
10371 1.1.1.3 snj
10372 1.1.1.3 snj case ".$PKG_CONFIG" in #(vi
10373 1.1.1.3 snj .\$\(*\)*|.\'*\'*) #(vi
10374 1.1.1.3 snj ;;
10375 1.1.1.3 snj ..|./*|.\\*) #(vi
10376 1.1.1.3 snj ;;
10377 1.1.1.3 snj .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10378 1.1.1.3 snj ;;
10379 1.1.1.3 snj .\${*prefix}*) #(vi
10380 1.1.1.3 snj eval PKG_CONFIG="$PKG_CONFIG"
10381 1.1.1.3 snj case ".$PKG_CONFIG" in #(vi
10382 1.1.1.3 snj .NONE/*)
10383 1.1.1.3 snj PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
10384 1.1.1.3 snj ;;
10385 1.1.1.3 snj esac
10386 1.1.1.3 snj ;; #(vi
10387 1.1.1.3 snj .no|.NONE/*)
10388 1.1.1.3 snj PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
10389 1.1.1.3 snj ;;
10390 1.1.1.3 snj *)
10391 1.1.1.3 snj { { echo "$as_me:10391: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
10392 1.1.1.3 snj echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
10393 1.1.1.3 snj { (exit 1); exit 1; }; }
10394 1.1.1.3 snj ;;
10395 1.1.1.3 snj esac
10396 1.1.1.3 snj
10397 1.1.1.3 snj fi
10398 1.1.1.3 snj
10399 1.1.1.3 snj cf_extra_freetype_libs=
10400 1.1.1.3 snj FREETYPE_CONFIG=none
10401 1.1.1.3 snj FREETYPE_PARAMS=
10402 1.1.1.3 snj
10403 1.1.1.3 snj echo "$as_me:10403: checking if you specified -D/-I options for FreeType" >&5
10404 1.1.1.3 snj echo $ECHO_N "checking if you specified -D/-I options for FreeType... $ECHO_C" >&6
10405 1.1.1.3 snj
10406 1.1.1.3 snj # Check whether --with-freetype-cflags or --without-freetype-cflags was given.
10407 1.1.1.3 snj if test "${with_freetype_cflags+set}" = set; then
10408 1.1.1.3 snj withval="$with_freetype_cflags"
10409 1.1.1.3 snj cf_cv_x_freetype_incs="$with_freetype_cflags"
10410 1.1.1.3 snj else
10411 1.1.1.3 snj cf_cv_x_freetype_incs=no
10412 1.1.1.3 snj fi;
10413 1.1.1.3 snj echo "$as_me:10413: result: $cf_cv_x_freetype_incs" >&5
10414 1.1.1.3 snj echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
10415 1.1.1.3 snj
10416 1.1.1.3 snj echo "$as_me:10416: checking if you specified -L/-l options for FreeType" >&5
10417 1.1.1.3 snj echo $ECHO_N "checking if you specified -L/-l options for FreeType... $ECHO_C" >&6
10418 1.1.1.3 snj
10419 1.1.1.3 snj # Check whether --with-freetype-libs or --without-freetype-libs was given.
10420 1.1.1.3 snj if test "${with_freetype_libs+set}" = set; then
10421 1.1.1.3 snj withval="$with_freetype_libs"
10422 1.1.1.3 snj cf_cv_x_freetype_libs="$with_freetype_libs"
10423 1.1.1.3 snj else
10424 1.1.1.3 snj cf_cv_x_freetype_libs=no
10425 1.1.1.3 snj fi;
10426 1.1.1.3 snj echo "$as_me:10426: result: $cf_cv_x_freetype_libs" >&5
10427 1.1.1.3 snj echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
10428 1.1.1.3 snj
10429 1.1.1.3 snj if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xft; then
10430 1.1.1.3 snj FREETYPE_CONFIG=$PKG_CONFIG
10431 1.1 mrg FREETYPE_PARAMS=xft
10432 1.1 mrg else
10433 1.1 mrg # Extract the first word of "xft-config", so it can be a program name with args.
10434 1.1 mrg set dummy xft-config; ac_word=$2
10435 1.1.1.3 snj echo "$as_me:10435: checking for $ac_word" >&5
10436 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10437 1.1 mrg if test "${ac_cv_path_FREETYPE_XFT_CONFIG+set}" = set; then
10438 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10439 1.1 mrg else
10440 1.1 mrg case $FREETYPE_XFT_CONFIG in
10441 1.1 mrg [\\/]* | ?:[\\/]*)
10442 1.1 mrg ac_cv_path_FREETYPE_XFT_CONFIG="$FREETYPE_XFT_CONFIG" # Let the user override the test with a path.
10443 1.1 mrg ;;
10444 1.1 mrg *)
10445 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
10446 1.1 mrg ac_dummy="$PATH"
10447 1.1 mrg for ac_dir in $ac_dummy; do
10448 1.1 mrg IFS=$ac_save_IFS
10449 1.1 mrg test -z "$ac_dir" && ac_dir=.
10450 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
10451 1.1 mrg ac_cv_path_FREETYPE_XFT_CONFIG="$ac_dir/$ac_word"
10452 1.1.1.3 snj echo "$as_me:10452: found $ac_dir/$ac_word" >&5
10453 1.1 mrg break
10454 1.1 mrg fi
10455 1.1 mrg done
10456 1.1 mrg
10457 1.1 mrg test -z "$ac_cv_path_FREETYPE_XFT_CONFIG" && ac_cv_path_FREETYPE_XFT_CONFIG="none"
10458 1.1 mrg ;;
10459 1.1 mrg esac
10460 1.1 mrg fi
10461 1.1 mrg FREETYPE_XFT_CONFIG=$ac_cv_path_FREETYPE_XFT_CONFIG
10462 1.1 mrg
10463 1.1 mrg if test -n "$FREETYPE_XFT_CONFIG"; then
10464 1.1.1.3 snj echo "$as_me:10464: result: $FREETYPE_XFT_CONFIG" >&5
10465 1.1 mrg echo "${ECHO_T}$FREETYPE_XFT_CONFIG" >&6
10466 1.1 mrg else
10467 1.1.1.3 snj echo "$as_me:10467: result: no" >&5
10468 1.1 mrg echo "${ECHO_T}no" >&6
10469 1.1 mrg fi
10470 1.1 mrg
10471 1.1 mrg if test "$FREETYPE_XFT_CONFIG" != none; then
10472 1.1 mrg FREETYPE_CONFIG=$FREETYPE_XFT_CONFIG
10473 1.1 mrg else
10474 1.1 mrg cf_extra_freetype_libs="-lXft"
10475 1.1 mrg # Extract the first word of "freetype-config", so it can be a program name with args.
10476 1.1 mrg set dummy freetype-config; ac_word=$2
10477 1.1.1.3 snj echo "$as_me:10477: checking for $ac_word" >&5
10478 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10479 1.1 mrg if test "${ac_cv_path_FREETYPE_OLD_CONFIG+set}" = set; then
10480 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10481 1.1 mrg else
10482 1.1 mrg case $FREETYPE_OLD_CONFIG in
10483 1.1 mrg [\\/]* | ?:[\\/]*)
10484 1.1 mrg ac_cv_path_FREETYPE_OLD_CONFIG="$FREETYPE_OLD_CONFIG" # Let the user override the test with a path.
10485 1.1 mrg ;;
10486 1.1 mrg *)
10487 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
10488 1.1 mrg ac_dummy="$PATH"
10489 1.1 mrg for ac_dir in $ac_dummy; do
10490 1.1 mrg IFS=$ac_save_IFS
10491 1.1 mrg test -z "$ac_dir" && ac_dir=.
10492 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
10493 1.1 mrg ac_cv_path_FREETYPE_OLD_CONFIG="$ac_dir/$ac_word"
10494 1.1.1.3 snj echo "$as_me:10494: found $ac_dir/$ac_word" >&5
10495 1.1 mrg break
10496 1.1 mrg fi
10497 1.1 mrg done
10498 1.1 mrg
10499 1.1 mrg test -z "$ac_cv_path_FREETYPE_OLD_CONFIG" && ac_cv_path_FREETYPE_OLD_CONFIG="none"
10500 1.1 mrg ;;
10501 1.1 mrg esac
10502 1.1 mrg fi
10503 1.1 mrg FREETYPE_OLD_CONFIG=$ac_cv_path_FREETYPE_OLD_CONFIG
10504 1.1 mrg
10505 1.1 mrg if test -n "$FREETYPE_OLD_CONFIG"; then
10506 1.1.1.3 snj echo "$as_me:10506: result: $FREETYPE_OLD_CONFIG" >&5
10507 1.1 mrg echo "${ECHO_T}$FREETYPE_OLD_CONFIG" >&6
10508 1.1 mrg else
10509 1.1.1.3 snj echo "$as_me:10509: result: no" >&5
10510 1.1 mrg echo "${ECHO_T}no" >&6
10511 1.1 mrg fi
10512 1.1 mrg
10513 1.1 mrg if test "$FREETYPE_OLD_CONFIG" != none; then
10514 1.1 mrg FREETYPE_CONFIG=$FREETYPE_OLD_CONFIG
10515 1.1 mrg fi
10516 1.1 mrg fi
10517 1.1 mrg fi
10518 1.1.1.3 snj echo "$as_me:10518: checking for FreeType config" >&5
10519 1.1.1.3 snj echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
10520 1.1.1.3 snj echo "$as_me:10520: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
10521 1.1.1.3 snj echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
10522 1.1 mrg
10523 1.1.1.3 snj if test "$FREETYPE_CONFIG" != none ; then
10524 1.1 mrg
10525 1.1.1.3 snj if test "$cf_cv_x_freetype_incs" = no ; then
10526 1.1.1.3 snj echo "$as_me:10526: checking for $FREETYPE_CONFIG cflags" >&5
10527 1.1 mrg echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
10528 1.1.1.3 snj cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
10529 1.1.1.3 snj echo "$as_me:10529: result: $cf_cv_x_freetype_incs" >&5
10530 1.1 mrg echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
10531 1.1.1.3 snj fi
10532 1.1 mrg
10533 1.1.1.3 snj if test "$cf_cv_x_freetype_libs" = no ; then
10534 1.1.1.3 snj echo "$as_me:10534: checking for $FREETYPE_CONFIG libs" >&5
10535 1.1 mrg echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
10536 1.1.1.3 snj cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
10537 1.1.1.3 snj echo "$as_me:10537: result: $cf_cv_x_freetype_libs" >&5
10538 1.1 mrg echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
10539 1.1.1.3 snj fi
10540 1.1 mrg
10541 1.1 mrg fi
10542 1.1 mrg
10543 1.1 mrg if test "$cf_cv_x_freetype_incs" = no ; then
10544 1.1 mrg cf_cv_x_freetype_incs=
10545 1.1 mrg fi
10546 1.1 mrg
10547 1.1 mrg if test "$cf_cv_x_freetype_libs" = no ; then
10548 1.1 mrg cf_cv_x_freetype_libs=-lXft
10549 1.1 mrg fi
10550 1.1 mrg
10551 1.1.1.3 snj echo "$as_me:10551: checking if we can link with FreeType libraries" >&5
10552 1.1 mrg echo $ECHO_N "checking if we can link with FreeType libraries... $ECHO_C" >&6
10553 1.1 mrg
10554 1.1 mrg cf_save_LIBS="$LIBS"
10555 1.1 mrg cf_save_INCS="$CPPFLAGS"
10556 1.1 mrg
10557 1.1 mrg LIBS="$cf_cv_x_freetype_libs $LIBS"
10558 1.1.1.3 snj CPPFLAGS="$CPPFLAGS $cf_cv_x_freetype_incs"
10559 1.1 mrg
10560 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
10561 1.1.1.3 snj #line 10561 "configure"
10562 1.1 mrg #include "confdefs.h"
10563 1.1 mrg
10564 1.1 mrg #include <X11/Xlib.h>
10565 1.1 mrg #include <X11/extensions/Xrender.h>
10566 1.1 mrg #include <X11/Xft/Xft.h>
10567 1.1 mrg int
10568 1.1 mrg main ()
10569 1.1 mrg {
10570 1.1 mrg
10571 1.1 mrg XftPattern *pat = XftNameParse ("name");
10572 1.1 mrg ;
10573 1.1 mrg return 0;
10574 1.1 mrg }
10575 1.1 mrg _ACEOF
10576 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
10577 1.1.1.3 snj if { (eval echo "$as_me:10577: \"$ac_link\"") >&5
10578 1.1 mrg (eval $ac_link) 2>&5
10579 1.1 mrg ac_status=$?
10580 1.1.1.3 snj echo "$as_me:10580: \$? = $ac_status" >&5
10581 1.1 mrg (exit $ac_status); } &&
10582 1.1 mrg { ac_try='test -s conftest$ac_exeext'
10583 1.1.1.3 snj { (eval echo "$as_me:10583: \"$ac_try\"") >&5
10584 1.1 mrg (eval $ac_try) 2>&5
10585 1.1 mrg ac_status=$?
10586 1.1.1.3 snj echo "$as_me:10586: \$? = $ac_status" >&5
10587 1.1 mrg (exit $ac_status); }; }; then
10588 1.1 mrg cf_cv_found_freetype=yes
10589 1.1 mrg else
10590 1.1 mrg echo "$as_me: failed program was:" >&5
10591 1.1 mrg cat conftest.$ac_ext >&5
10592 1.1 mrg cf_cv_found_freetype=no
10593 1.1 mrg fi
10594 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10595 1.1.1.3 snj echo "$as_me:10595: result: $cf_cv_found_freetype" >&5
10596 1.1 mrg echo "${ECHO_T}$cf_cv_found_freetype" >&6
10597 1.1 mrg
10598 1.1 mrg LIBS="$cf_save_LIBS"
10599 1.1 mrg CPPFLAGS="$cf_save_INCS"
10600 1.1 mrg
10601 1.1 mrg if test "$cf_cv_found_freetype" = yes ; then
10602 1.1 mrg LIBS="$cf_cv_x_freetype_libs $LIBS"
10603 1.1 mrg
10604 1.1 mrg cf_fix_cppflags=no
10605 1.1 mrg cf_new_cflags=
10606 1.1 mrg cf_new_cppflags=
10607 1.1 mrg cf_new_extra_cppflags=
10608 1.1 mrg
10609 1.1 mrg for cf_add_cflags in $cf_cv_x_freetype_incs
10610 1.1 mrg do
10611 1.1 mrg case $cf_fix_cppflags in
10612 1.1 mrg no)
10613 1.1 mrg case $cf_add_cflags in #(vi
10614 1.1 mrg -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10615 1.1 mrg case $cf_add_cflags in
10616 1.1 mrg -D*)
10617 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10618 1.1 mrg
10619 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10620 1.1 mrg && test -z "${cf_tst_cflags}" \
10621 1.1 mrg && cf_fix_cppflags=yes
10622 1.1 mrg
10623 1.1 mrg if test $cf_fix_cppflags = yes ; then
10624 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10625 1.1 mrg continue
10626 1.1 mrg elif test "${cf_tst_cflags}" = "\"'" ; then
10627 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10628 1.1 mrg continue
10629 1.1 mrg fi
10630 1.1 mrg ;;
10631 1.1 mrg esac
10632 1.1 mrg case "$CPPFLAGS" in
10633 1.1 mrg *$cf_add_cflags) #(vi
10634 1.1 mrg ;;
10635 1.1 mrg *) #(vi
10636 1.1 mrg cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10637 1.1 mrg ;;
10638 1.1 mrg esac
10639 1.1 mrg ;;
10640 1.1 mrg *)
10641 1.1 mrg cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10642 1.1 mrg ;;
10643 1.1 mrg esac
10644 1.1 mrg ;;
10645 1.1 mrg yes)
10646 1.1 mrg cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10647 1.1 mrg
10648 1.1 mrg cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10649 1.1 mrg
10650 1.1 mrg test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10651 1.1 mrg && test -z "${cf_tst_cflags}" \
10652 1.1 mrg && cf_fix_cppflags=no
10653 1.1 mrg ;;
10654 1.1 mrg esac
10655 1.1 mrg done
10656 1.1 mrg
10657 1.1 mrg if test -n "$cf_new_cflags" ; then
10658 1.1 mrg
10659 1.1 mrg CFLAGS="$CFLAGS $cf_new_cflags"
10660 1.1 mrg fi
10661 1.1 mrg
10662 1.1 mrg if test -n "$cf_new_cppflags" ; then
10663 1.1 mrg
10664 1.1.1.3 snj CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10665 1.1 mrg fi
10666 1.1 mrg
10667 1.1 mrg if test -n "$cf_new_extra_cppflags" ; then
10668 1.1 mrg
10669 1.1 mrg EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10670 1.1 mrg fi
10671 1.1 mrg
10672 1.1 mrg cat >>confdefs.h <<\EOF
10673 1.1 mrg #define XRENDERFONT 1
10674 1.1 mrg EOF
10675 1.1 mrg
10676 1.1 mrg for ac_func in \
10677 1.1 mrg XftDrawCharSpec \
10678 1.1 mrg XftDrawSetClip \
10679 1.1 mrg XftDrawSetClipRectangles \
10680 1.1 mrg
10681 1.1 mrg do
10682 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 1.1.1.3 snj echo "$as_me:10683: checking for $ac_func" >&5
10684 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10685 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
10686 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10687 1.1 mrg else
10688 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
10689 1.1.1.3 snj #line 10689 "configure"
10690 1.1 mrg #include "confdefs.h"
10691 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
10692 1.1 mrg which can conflict with char $ac_func (); below. */
10693 1.1 mrg #include <assert.h>
10694 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
10695 1.1 mrg #ifdef __cplusplus
10696 1.1 mrg extern "C"
10697 1.1 mrg #endif
10698 1.1 mrg /* We use char because int might match the return type of a gcc2
10699 1.1 mrg builtin and then its argument prototype would still apply. */
10700 1.1 mrg char $ac_func ();
10701 1.1 mrg char (*f) ();
10702 1.1 mrg
10703 1.1 mrg int
10704 1.1 mrg main ()
10705 1.1 mrg {
10706 1.1 mrg /* The GNU C library defines this for functions which it implements
10707 1.1 mrg to always fail with ENOSYS. Some functions are actually named
10708 1.1 mrg something starting with __ and the normal name is an alias. */
10709 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10710 1.1 mrg choke me
10711 1.1 mrg #else
10712 1.1 mrg f = $ac_func;
10713 1.1 mrg #endif
10714 1.1 mrg
10715 1.1 mrg ;
10716 1.1 mrg return 0;
10717 1.1 mrg }
10718 1.1 mrg _ACEOF
10719 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
10720 1.1.1.3 snj if { (eval echo "$as_me:10720: \"$ac_link\"") >&5
10721 1.1 mrg (eval $ac_link) 2>&5
10722 1.1 mrg ac_status=$?
10723 1.1.1.3 snj echo "$as_me:10723: \$? = $ac_status" >&5
10724 1.1 mrg (exit $ac_status); } &&
10725 1.1 mrg { ac_try='test -s conftest$ac_exeext'
10726 1.1.1.3 snj { (eval echo "$as_me:10726: \"$ac_try\"") >&5
10727 1.1 mrg (eval $ac_try) 2>&5
10728 1.1 mrg ac_status=$?
10729 1.1.1.3 snj echo "$as_me:10729: \$? = $ac_status" >&5
10730 1.1 mrg (exit $ac_status); }; }; then
10731 1.1 mrg eval "$as_ac_var=yes"
10732 1.1 mrg else
10733 1.1 mrg echo "$as_me: failed program was:" >&5
10734 1.1 mrg cat conftest.$ac_ext >&5
10735 1.1 mrg eval "$as_ac_var=no"
10736 1.1 mrg fi
10737 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10738 1.1 mrg fi
10739 1.1.1.3 snj echo "$as_me:10739: result: `eval echo '${'$as_ac_var'}'`" >&5
10740 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10741 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
10742 1.1 mrg cat >>confdefs.h <<EOF
10743 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10744 1.1 mrg EOF
10745 1.1 mrg
10746 1.1 mrg fi
10747 1.1 mrg done
10748 1.1 mrg
10749 1.1 mrg else
10750 1.1.1.3 snj { echo "$as_me:10750: WARNING: No libraries found for FreeType" >&5
10751 1.1 mrg echo "$as_me: WARNING: No libraries found for FreeType" >&2;}
10752 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
10753 1.1 mrg fi
10754 1.1 mrg
10755 1.1 mrg # FIXME: revisit this if needed
10756 1.1 mrg
10757 1.1 mrg else
10758 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//`
10759 1.1 mrg fi
10760 1.1 mrg
10761 1.1.1.3 snj echo "$as_me:10761: checking if you want support for HP-style function keys" >&5
10762 1.1 mrg echo $ECHO_N "checking if you want support for HP-style function keys... $ECHO_C" >&6
10763 1.1 mrg
10764 1.1 mrg # Check whether --enable-hp-fkeys or --disable-hp-fkeys was given.
10765 1.1 mrg if test "${enable_hp_fkeys+set}" = set; then
10766 1.1 mrg enableval="$enable_hp_fkeys"
10767 1.1 mrg test "$enableval" != yes && enableval=no
10768 1.1 mrg if test "$enableval" != "no" ; then
10769 1.1 mrg enable_hp_fkeys=yes
10770 1.1 mrg else
10771 1.1 mrg enable_hp_fkeys=no
10772 1.1 mrg fi
10773 1.1 mrg else
10774 1.1 mrg enableval=no
10775 1.1 mrg enable_hp_fkeys=no
10776 1.1 mrg
10777 1.1 mrg fi;
10778 1.1.1.3 snj echo "$as_me:10778: result: $enable_hp_fkeys" >&5
10779 1.1 mrg echo "${ECHO_T}$enable_hp_fkeys" >&6
10780 1.1 mrg if test "$enable_hp_fkeys" = yes ; then
10781 1.1 mrg cat >>confdefs.h <<\EOF
10782 1.1 mrg #define OPT_HP_FUNC_KEYS 1
10783 1.1 mrg EOF
10784 1.1 mrg
10785 1.1 mrg fi
10786 1.1 mrg
10787 1.1.1.3 snj echo "$as_me:10787: checking if you want support for SCO-style function keys" >&5
10788 1.1 mrg echo $ECHO_N "checking if you want support for SCO-style function keys... $ECHO_C" >&6
10789 1.1 mrg
10790 1.1 mrg # Check whether --enable-sco-fkeys or --disable-sco-fkeys was given.
10791 1.1 mrg if test "${enable_sco_fkeys+set}" = set; then
10792 1.1 mrg enableval="$enable_sco_fkeys"
10793 1.1 mrg test "$enableval" != yes && enableval=no
10794 1.1 mrg if test "$enableval" != "no" ; then
10795 1.1 mrg enable_sco_fkeys=yes
10796 1.1 mrg else
10797 1.1 mrg enable_sco_fkeys=no
10798 1.1 mrg fi
10799 1.1 mrg else
10800 1.1 mrg enableval=no
10801 1.1 mrg enable_sco_fkeys=no
10802 1.1 mrg
10803 1.1 mrg fi;
10804 1.1.1.3 snj echo "$as_me:10804: result: $enable_sco_fkeys" >&5
10805 1.1 mrg echo "${ECHO_T}$enable_sco_fkeys" >&6
10806 1.1 mrg if test "$enable_sco_fkeys" = yes ; then
10807 1.1 mrg cat >>confdefs.h <<\EOF
10808 1.1 mrg #define OPT_SCO_FUNC_KEYS 1
10809 1.1 mrg EOF
10810 1.1 mrg
10811 1.1 mrg fi
10812 1.1 mrg
10813 1.1.1.3 snj echo "$as_me:10813: checking if you want support for Sun-style function keys" >&5
10814 1.1 mrg echo $ECHO_N "checking if you want support for Sun-style function keys... $ECHO_C" >&6
10815 1.1 mrg
10816 1.1 mrg # Check whether --enable-sun-fkeys or --disable-sun-fkeys was given.
10817 1.1 mrg if test "${enable_sun_fkeys+set}" = set; then
10818 1.1 mrg enableval="$enable_sun_fkeys"
10819 1.1 mrg test "$enableval" != no && enableval=yes
10820 1.1 mrg if test "$enableval" != "yes" ; then
10821 1.1 mrg enable_sun_fkeys=no
10822 1.1 mrg else
10823 1.1 mrg enable_sun_fkeys=yes
10824 1.1 mrg fi
10825 1.1 mrg else
10826 1.1 mrg enableval=yes
10827 1.1 mrg enable_sun_fkeys=yes
10828 1.1 mrg
10829 1.1 mrg fi;
10830 1.1.1.3 snj echo "$as_me:10830: result: $enable_sun_fkeys" >&5
10831 1.1 mrg echo "${ECHO_T}$enable_sun_fkeys" >&6
10832 1.1 mrg if test "$enable_sun_fkeys" = no ; then
10833 1.1 mrg cat >>confdefs.h <<\EOF
10834 1.1 mrg #define OPT_SUN_FUNC_KEYS 0
10835 1.1 mrg EOF
10836 1.1 mrg
10837 1.1 mrg fi
10838 1.1 mrg
10839 1.1.1.3 snj echo "$as_me:10839: checking if you want saved-lines stored as a FIFO" >&5
10840 1.1.1.3 snj echo $ECHO_N "checking if you want saved-lines stored as a FIFO... $ECHO_C" >&6
10841 1.1.1.3 snj
10842 1.1.1.3 snj # Check whether --enable-fifo-lines or --disable-fifo-lines was given.
10843 1.1.1.3 snj if test "${enable_fifo_lines+set}" = set; then
10844 1.1.1.3 snj enableval="$enable_fifo_lines"
10845 1.1.1.3 snj test "$enableval" != no && enableval=yes
10846 1.1.1.3 snj if test "$enableval" != "yes" ; then
10847 1.1.1.3 snj enable_fifo_lines=no
10848 1.1.1.3 snj else
10849 1.1.1.3 snj enable_fifo_lines=yes
10850 1.1.1.3 snj fi
10851 1.1.1.3 snj else
10852 1.1.1.3 snj enableval=yes
10853 1.1.1.3 snj enable_fifo_lines=yes
10854 1.1.1.3 snj
10855 1.1.1.3 snj fi;
10856 1.1.1.3 snj echo "$as_me:10856: result: $enable_fifo_lines" >&5
10857 1.1.1.3 snj echo "${ECHO_T}$enable_fifo_lines" >&6
10858 1.1.1.3 snj if test "$enable_fifo_lines" = yes ; then
10859 1.1.1.3 snj cat >>confdefs.h <<\EOF
10860 1.1.1.3 snj #define OPT_FIFO_LINES 1
10861 1.1.1.3 snj EOF
10862 1.1.1.3 snj
10863 1.1.1.3 snj fi
10864 1.1.1.3 snj
10865 1.1.1.3 snj echo "$as_me:10865: checking if you want support for internationalization" >&5
10866 1.1 mrg echo $ECHO_N "checking if you want support for internationalization... $ECHO_C" >&6
10867 1.1 mrg
10868 1.1 mrg # Check whether --enable-i18n or --disable-i18n was given.
10869 1.1 mrg if test "${enable_i18n+set}" = set; then
10870 1.1 mrg enableval="$enable_i18n"
10871 1.1 mrg test "$enableval" != no && enableval=yes
10872 1.1 mrg if test "$enableval" != "yes" ; then
10873 1.1 mrg enable_i18n=no
10874 1.1 mrg else
10875 1.1 mrg enable_i18n=yes
10876 1.1 mrg fi
10877 1.1 mrg else
10878 1.1 mrg enableval=yes
10879 1.1 mrg enable_i18n=yes
10880 1.1 mrg
10881 1.1 mrg fi;
10882 1.1.1.3 snj echo "$as_me:10882: result: $enable_i18n" >&5
10883 1.1 mrg echo "${ECHO_T}$enable_i18n" >&6
10884 1.1 mrg if test "$enable_i18n" = no ; then
10885 1.1 mrg cat >>confdefs.h <<\EOF
10886 1.1 mrg #define OPT_I18N_SUPPORT 0
10887 1.1 mrg EOF
10888 1.1 mrg
10889 1.1 mrg fi
10890 1.1 mrg
10891 1.1.1.3 snj echo "$as_me:10891: checking if you want support for initial-erase setup" >&5
10892 1.1 mrg echo $ECHO_N "checking if you want support for initial-erase setup... $ECHO_C" >&6
10893 1.1 mrg
10894 1.1 mrg # Check whether --enable-initial-erase or --disable-initial-erase was given.
10895 1.1 mrg if test "${enable_initial_erase+set}" = set; then
10896 1.1 mrg enableval="$enable_initial_erase"
10897 1.1 mrg test "$enableval" != no && enableval=yes
10898 1.1 mrg if test "$enableval" != "yes" ; then
10899 1.1 mrg enable_ie=no
10900 1.1 mrg else
10901 1.1 mrg enable_ie=yes
10902 1.1 mrg fi
10903 1.1 mrg else
10904 1.1 mrg enableval=yes
10905 1.1 mrg enable_ie=yes
10906 1.1 mrg
10907 1.1 mrg fi;
10908 1.1.1.3 snj echo "$as_me:10908: result: $enable_ie" >&5
10909 1.1 mrg echo "${ECHO_T}$enable_ie" >&6
10910 1.1 mrg if test "$enable_ie" = no ; then
10911 1.1 mrg cat >>confdefs.h <<\EOF
10912 1.1 mrg #define OPT_INITIAL_ERASE 0
10913 1.1 mrg EOF
10914 1.1 mrg
10915 1.1 mrg fi
10916 1.1 mrg
10917 1.1.1.3 snj echo "$as_me:10917: checking if you want support for input-method" >&5
10918 1.1 mrg echo $ECHO_N "checking if you want support for input-method... $ECHO_C" >&6
10919 1.1 mrg
10920 1.1 mrg # Check whether --enable-input-method or --disable-input-method was given.
10921 1.1 mrg if test "${enable_input_method+set}" = set; then
10922 1.1 mrg enableval="$enable_input_method"
10923 1.1 mrg test "$enableval" != no && enableval=yes
10924 1.1 mrg if test "$enableval" != "yes" ; then
10925 1.1 mrg enable_ximp=no
10926 1.1 mrg else
10927 1.1 mrg enable_ximp=yes
10928 1.1 mrg fi
10929 1.1 mrg else
10930 1.1 mrg enableval=yes
10931 1.1 mrg enable_ximp=yes
10932 1.1 mrg
10933 1.1 mrg fi;
10934 1.1.1.3 snj echo "$as_me:10934: result: $enable_ximp" >&5
10935 1.1 mrg echo "${ECHO_T}$enable_ximp" >&6
10936 1.1 mrg
10937 1.1.1.3 snj echo "$as_me:10937: checking if X libraries support input-method" >&5
10938 1.1 mrg echo $ECHO_N "checking if X libraries support input-method... $ECHO_C" >&6
10939 1.1 mrg if test "${cf_cv_input_method+set}" = set; then
10940 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
10941 1.1 mrg else
10942 1.1 mrg
10943 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
10944 1.1.1.3 snj #line 10944 "configure"
10945 1.1 mrg #include "confdefs.h"
10946 1.1 mrg
10947 1.1 mrg #include <X11/IntrinsicP.h>
10948 1.1 mrg #include <X11/Xatom.h>
10949 1.1 mrg #include <X11/Xutil.h>
10950 1.1 mrg #include <X11/Xmu/Atoms.h>
10951 1.1 mrg #include <X11/Xmu/Converters.h>
10952 1.1 mrg #include <X11/Xaw/XawImP.h>
10953 1.1 mrg
10954 1.1 mrg int
10955 1.1 mrg main ()
10956 1.1 mrg {
10957 1.1 mrg
10958 1.1 mrg {
10959 1.1 mrg XIM xim;
10960 1.1 mrg XIMStyles *xim_styles = 0;
10961 1.1 mrg XIMStyle input_style;
10962 1.1 mrg Widget w = 0;
10963 1.1 mrg
10964 1.1 mrg XSetLocaleModifiers("@im=none");
10965 1.1 mrg xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
10966 1.1 mrg XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
10967 1.1 mrg XCloseIM(xim);
10968 1.1 mrg input_style = (XIMPreeditNothing | XIMStatusNothing);
10969 1.1 mrg }
10970 1.1 mrg
10971 1.1 mrg ;
10972 1.1 mrg return 0;
10973 1.1 mrg }
10974 1.1 mrg _ACEOF
10975 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
10976 1.1.1.3 snj if { (eval echo "$as_me:10976: \"$ac_link\"") >&5
10977 1.1 mrg (eval $ac_link) 2>&5
10978 1.1 mrg ac_status=$?
10979 1.1.1.3 snj echo "$as_me:10979: \$? = $ac_status" >&5
10980 1.1 mrg (exit $ac_status); } &&
10981 1.1 mrg { ac_try='test -s conftest$ac_exeext'
10982 1.1.1.3 snj { (eval echo "$as_me:10982: \"$ac_try\"") >&5
10983 1.1 mrg (eval $ac_try) 2>&5
10984 1.1 mrg ac_status=$?
10985 1.1.1.3 snj echo "$as_me:10985: \$? = $ac_status" >&5
10986 1.1 mrg (exit $ac_status); }; }; then
10987 1.1 mrg cf_cv_input_method=yes
10988 1.1 mrg else
10989 1.1 mrg echo "$as_me: failed program was:" >&5
10990 1.1 mrg cat conftest.$ac_ext >&5
10991 1.1 mrg cf_cv_input_method=no
10992 1.1 mrg fi
10993 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10994 1.1 mrg fi
10995 1.1.1.3 snj echo "$as_me:10995: result: $cf_cv_input_method" >&5
10996 1.1 mrg echo "${ECHO_T}$cf_cv_input_method" >&6
10997 1.1 mrg
10998 1.1 mrg test "$cf_cv_input_method" = no && enable_ximp=no
10999 1.1 mrg if test "$enable_ximp" = no ; then
11000 1.1 mrg cat >>confdefs.h <<\EOF
11001 1.1 mrg #define OPT_INPUT_METHOD 0
11002 1.1 mrg EOF
11003 1.1 mrg
11004 1.1 mrg fi
11005 1.1 mrg
11006 1.1.1.3 snj echo "$as_me:11006: checking if you want support for load-vt-fonts" >&5
11007 1.1 mrg echo $ECHO_N "checking if you want support for load-vt-fonts... $ECHO_C" >&6
11008 1.1 mrg
11009 1.1 mrg # Check whether --enable-load-vt-fonts or --disable-load-vt-fonts was given.
11010 1.1 mrg if test "${enable_load_vt_fonts+set}" = set; then
11011 1.1 mrg enableval="$enable_load_vt_fonts"
11012 1.1 mrg test "$enableval" != yes && enableval=no
11013 1.1 mrg if test "$enableval" != "no" ; then
11014 1.1 mrg enable_load_vt_fonts=yes
11015 1.1 mrg else
11016 1.1 mrg enable_load_vt_fonts=no
11017 1.1 mrg fi
11018 1.1 mrg else
11019 1.1 mrg enableval=no
11020 1.1 mrg enable_load_vt_fonts=no
11021 1.1 mrg
11022 1.1 mrg fi;
11023 1.1.1.3 snj echo "$as_me:11023: result: $enable_load_vt_fonts" >&5
11024 1.1 mrg echo "${ECHO_T}$enable_load_vt_fonts" >&6
11025 1.1 mrg if test "$enable_load_vt_fonts" = yes ; then
11026 1.1 mrg cat >>confdefs.h <<\EOF
11027 1.1 mrg #define OPT_LOAD_VTFONTS 1
11028 1.1 mrg EOF
11029 1.1 mrg
11030 1.1 mrg fi
11031 1.1 mrg
11032 1.1.1.3 snj echo "$as_me:11032: checking if you want support for logging" >&5
11033 1.1 mrg echo $ECHO_N "checking if you want support for logging... $ECHO_C" >&6
11034 1.1 mrg
11035 1.1 mrg # Check whether --enable-logging or --disable-logging was given.
11036 1.1 mrg if test "${enable_logging+set}" = set; then
11037 1.1 mrg enableval="$enable_logging"
11038 1.1 mrg test "$enableval" != yes && enableval=no
11039 1.1 mrg if test "$enableval" != "no" ; then
11040 1.1 mrg enable_logging=yes
11041 1.1 mrg else
11042 1.1 mrg enable_logging=no
11043 1.1 mrg fi
11044 1.1 mrg else
11045 1.1 mrg enableval=no
11046 1.1 mrg enable_logging=no
11047 1.1 mrg
11048 1.1 mrg fi;
11049 1.1.1.3 snj echo "$as_me:11049: result: $enable_logging" >&5
11050 1.1 mrg echo "${ECHO_T}$enable_logging" >&6
11051 1.1 mrg if test "$enable_logging" = yes ; then
11052 1.1 mrg cat >>confdefs.h <<\EOF
11053 1.1 mrg #define ALLOWLOGGING 1
11054 1.1 mrg EOF
11055 1.1 mrg
11056 1.1.1.3 snj echo "$as_me:11056: checking if you want to allow logging via a pipe" >&5
11057 1.1 mrg echo $ECHO_N "checking if you want to allow logging via a pipe... $ECHO_C" >&6
11058 1.1 mrg
11059 1.1 mrg # Check whether --enable-logfile-exec or --disable-logfile-exec was given.
11060 1.1 mrg if test "${enable_logfile_exec+set}" = set; then
11061 1.1 mrg enableval="$enable_logfile_exec"
11062 1.1 mrg test "$enableval" != yes && enableval=no
11063 1.1 mrg if test "$enableval" != "no" ; then
11064 1.1 mrg enable_log_exec=yes
11065 1.1 mrg else
11066 1.1 mrg enable_log_exec=no
11067 1.1 mrg fi
11068 1.1 mrg else
11069 1.1 mrg enableval=no
11070 1.1 mrg enable_log_exec=no
11071 1.1 mrg
11072 1.1 mrg fi;
11073 1.1.1.3 snj echo "$as_me:11073: result: $enable_log_exec" >&5
11074 1.1 mrg echo "${ECHO_T}$enable_log_exec" >&6
11075 1.1 mrg if test "$enable_log_exec" = yes ; then
11076 1.1 mrg cat >>confdefs.h <<\EOF
11077 1.1 mrg #define ALLOWLOGFILEEXEC 1
11078 1.1 mrg EOF
11079 1.1 mrg
11080 1.1 mrg fi
11081 1.1 mrg fi
11082 1.1 mrg
11083 1.1.1.3 snj echo "$as_me:11083: checking if you want support for iconify/maximize translations" >&5
11084 1.1 mrg echo $ECHO_N "checking if you want support for iconify/maximize translations... $ECHO_C" >&6
11085 1.1 mrg
11086 1.1 mrg # Check whether --enable-maximize or --disable-maximize was given.
11087 1.1 mrg if test "${enable_maximize+set}" = set; then
11088 1.1 mrg enableval="$enable_maximize"
11089 1.1 mrg test "$enableval" != no && enableval=yes
11090 1.1 mrg if test "$enableval" != "yes" ; then
11091 1.1 mrg enable_maximize=no
11092 1.1 mrg else
11093 1.1 mrg enable_maximize=yes
11094 1.1 mrg fi
11095 1.1 mrg else
11096 1.1 mrg enableval=yes
11097 1.1 mrg enable_maximize=yes
11098 1.1 mrg
11099 1.1 mrg fi;
11100 1.1.1.3 snj echo "$as_me:11100: result: $enable_maximize" >&5
11101 1.1 mrg echo "${ECHO_T}$enable_maximize" >&6
11102 1.1 mrg test "$enable_maximize" = no && cat >>confdefs.h <<\EOF
11103 1.1 mrg #define OPT_MAXIMIZE 0
11104 1.1 mrg EOF
11105 1.1 mrg
11106 1.1.1.3 snj echo "$as_me:11106: checking if you want NumLock to override keyboard tables" >&5
11107 1.1 mrg echo $ECHO_N "checking if you want NumLock to override keyboard tables... $ECHO_C" >&6
11108 1.1 mrg
11109 1.1 mrg # Check whether --enable-num-lock or --disable-num-lock was given.
11110 1.1 mrg if test "${enable_num_lock+set}" = set; then
11111 1.1 mrg enableval="$enable_num_lock"
11112 1.1 mrg test "$enableval" != no && enableval=yes
11113 1.1 mrg if test "$enableval" != "yes" ; then
11114 1.1 mrg enable_numlock=no
11115 1.1 mrg else
11116 1.1 mrg enable_numlock=yes
11117 1.1 mrg fi
11118 1.1 mrg else
11119 1.1 mrg enableval=yes
11120 1.1 mrg enable_numlock=yes
11121 1.1 mrg
11122 1.1 mrg fi;
11123 1.1.1.3 snj echo "$as_me:11123: result: $enable_numlock" >&5
11124 1.1 mrg echo "${ECHO_T}$enable_numlock" >&6
11125 1.1 mrg test "$enable_numlock" = no && cat >>confdefs.h <<\EOF
11126 1.1 mrg #define OPT_NUM_LOCK 0
11127 1.1 mrg EOF
11128 1.1 mrg
11129 1.1.1.3 snj echo "$as_me:11129: checking if you want support for get/set of base64 selection data" >&5
11130 1.1 mrg echo $ECHO_N "checking if you want support for get/set of base64 selection data... $ECHO_C" >&6
11131 1.1 mrg
11132 1.1 mrg # Check whether --enable-paste64 or --disable-paste64 was given.
11133 1.1 mrg if test "${enable_paste64+set}" = set; then
11134 1.1 mrg enableval="$enable_paste64"
11135 1.1.1.2 christos test "$enableval" != no && enableval=yes
11136 1.1.1.2 christos if test "$enableval" != "yes" ; then
11137 1.1 mrg enable_paste64=no
11138 1.1.1.2 christos else
11139 1.1.1.2 christos enable_paste64=yes
11140 1.1 mrg fi
11141 1.1 mrg else
11142 1.1.1.2 christos enableval=yes
11143 1.1.1.2 christos enable_paste64=yes
11144 1.1 mrg
11145 1.1 mrg fi;
11146 1.1.1.3 snj echo "$as_me:11146: result: $enable_paste64" >&5
11147 1.1 mrg echo "${ECHO_T}$enable_paste64" >&6
11148 1.1 mrg if test "$enable_paste64" = yes ; then
11149 1.1 mrg cat >>confdefs.h <<\EOF
11150 1.1 mrg #define OPT_PASTE64 1
11151 1.1 mrg EOF
11152 1.1 mrg
11153 1.1 mrg else
11154 1.1 mrg cat >>confdefs.h <<\EOF
11155 1.1 mrg #define OPT_PASTE64 0
11156 1.1 mrg EOF
11157 1.1 mrg
11158 1.1 mrg fi
11159 1.1 mrg
11160 1.1.1.3 snj echo "$as_me:11160: checking if you want support for pty-handshaking" >&5
11161 1.1 mrg echo $ECHO_N "checking if you want support for pty-handshaking... $ECHO_C" >&6
11162 1.1 mrg
11163 1.1 mrg # Check whether --enable-pty-handshake or --disable-pty-handshake was given.
11164 1.1 mrg if test "${enable_pty_handshake+set}" = set; then
11165 1.1 mrg enableval="$enable_pty_handshake"
11166 1.1 mrg test "$enableval" != no && enableval=yes
11167 1.1 mrg if test "$enableval" != "yes" ; then
11168 1.1 mrg enable_pty_handshake=no
11169 1.1 mrg else
11170 1.1 mrg enable_pty_handshake=yes
11171 1.1 mrg fi
11172 1.1 mrg else
11173 1.1 mrg enableval=yes
11174 1.1 mrg enable_pty_handshake=yes
11175 1.1 mrg
11176 1.1 mrg fi;
11177 1.1.1.3 snj echo "$as_me:11177: result: $enable_pty_handshake" >&5
11178 1.1 mrg echo "${ECHO_T}$enable_pty_handshake" >&6
11179 1.1 mrg if test "$enable_pty_handshake" = yes ; then
11180 1.1 mrg cat >>confdefs.h <<\EOF
11181 1.1 mrg #define OPT_PTY_HANDSHAKE 1
11182 1.1 mrg EOF
11183 1.1 mrg
11184 1.1 mrg else
11185 1.1 mrg cat >>confdefs.h <<\EOF
11186 1.1 mrg #define OPT_PTY_HANDSHAKE 0
11187 1.1 mrg EOF
11188 1.1 mrg
11189 1.1 mrg fi
11190 1.1 mrg
11191 1.1.1.3 snj echo "$as_me:11191: checking if you want support for mouse in readline applications" >&5
11192 1.1 mrg echo $ECHO_N "checking if you want support for mouse in readline applications... $ECHO_C" >&6
11193 1.1 mrg
11194 1.1 mrg # Check whether --enable-readline-mouse or --disable-readline-mouse was given.
11195 1.1 mrg if test "${enable_readline_mouse+set}" = set; then
11196 1.1 mrg enableval="$enable_readline_mouse"
11197 1.1 mrg test "$enableval" != yes && enableval=no
11198 1.1 mrg if test "$enableval" != "no" ; then
11199 1.1 mrg enable_readline_mouse=yes
11200 1.1 mrg else
11201 1.1 mrg enable_readline_mouse=no
11202 1.1 mrg fi
11203 1.1 mrg else
11204 1.1 mrg enableval=no
11205 1.1 mrg enable_readline_mouse=no
11206 1.1 mrg
11207 1.1 mrg fi;
11208 1.1.1.3 snj echo "$as_me:11208: result: $enable_readline_mouse" >&5
11209 1.1 mrg echo "${ECHO_T}$enable_readline_mouse" >&6
11210 1.1 mrg if test "$enable_readline_mouse" = yes ; then
11211 1.1 mrg cat >>confdefs.h <<\EOF
11212 1.1 mrg #define OPT_READLINE 1
11213 1.1 mrg EOF
11214 1.1 mrg
11215 1.1 mrg fi
11216 1.1 mrg
11217 1.1.1.3 snj echo "$as_me:11217: checking if you want support for regular-expression selections" >&5
11218 1.1 mrg echo $ECHO_N "checking if you want support for regular-expression selections... $ECHO_C" >&6
11219 1.1 mrg
11220 1.1 mrg # Check whether --enable-regex or --disable-regex was given.
11221 1.1 mrg if test "${enable_regex+set}" = set; then
11222 1.1 mrg enableval="$enable_regex"
11223 1.1 mrg test "$enableval" != no && enableval=yes
11224 1.1 mrg if test "$enableval" != "yes" ; then
11225 1.1 mrg enable_regex=no
11226 1.1 mrg else
11227 1.1 mrg enable_regex=yes
11228 1.1 mrg fi
11229 1.1 mrg else
11230 1.1 mrg enableval=yes
11231 1.1 mrg enable_regex=yes
11232 1.1 mrg
11233 1.1 mrg fi;
11234 1.1.1.3 snj echo "$as_me:11234: result: $enable_regex" >&5
11235 1.1 mrg echo "${ECHO_T}$enable_regex" >&6
11236 1.1 mrg if test "$enable_regex" = yes ; then
11237 1.1 mrg
11238 1.1.1.3 snj echo "$as_me:11238: checking if you want to use PCRE for regular-expressions" >&5
11239 1.1 mrg echo $ECHO_N "checking if you want to use PCRE for regular-expressions... $ECHO_C" >&6
11240 1.1 mrg
11241 1.1 mrg # Check whether --with-pcre or --without-pcre was given.
11242 1.1 mrg if test "${with_pcre+set}" = set; then
11243 1.1 mrg withval="$with_pcre"
11244 1.1 mrg
11245 1.1 mrg fi;
11246 1.1 mrg test -z "$with_pcre" && with_pcre=no
11247 1.1.1.3 snj echo "$as_me:11247: result: $with_pcre" >&5
11248 1.1 mrg echo "${ECHO_T}$with_pcre" >&6
11249 1.1 mrg
11250 1.1 mrg if test "$with_pcre" != no ; then
11251 1.1.1.3 snj echo "$as_me:11251: checking for pcre_compile in -lpcre" >&5
11252 1.1 mrg echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
11253 1.1 mrg if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
11254 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11255 1.1 mrg else
11256 1.1 mrg ac_check_lib_save_LIBS=$LIBS
11257 1.1 mrg LIBS="-lpcre $LIBS"
11258 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11259 1.1.1.3 snj #line 11259 "configure"
11260 1.1 mrg #include "confdefs.h"
11261 1.1 mrg
11262 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
11263 1.1 mrg #ifdef __cplusplus
11264 1.1 mrg extern "C"
11265 1.1 mrg #endif
11266 1.1 mrg /* We use char because int might match the return type of a gcc2
11267 1.1 mrg builtin and then its argument prototype would still apply. */
11268 1.1 mrg char pcre_compile ();
11269 1.1 mrg int
11270 1.1 mrg main ()
11271 1.1 mrg {
11272 1.1 mrg pcre_compile ();
11273 1.1 mrg ;
11274 1.1 mrg return 0;
11275 1.1 mrg }
11276 1.1 mrg _ACEOF
11277 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11278 1.1.1.3 snj if { (eval echo "$as_me:11278: \"$ac_link\"") >&5
11279 1.1 mrg (eval $ac_link) 2>&5
11280 1.1 mrg ac_status=$?
11281 1.1.1.3 snj echo "$as_me:11281: \$? = $ac_status" >&5
11282 1.1 mrg (exit $ac_status); } &&
11283 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11284 1.1.1.3 snj { (eval echo "$as_me:11284: \"$ac_try\"") >&5
11285 1.1 mrg (eval $ac_try) 2>&5
11286 1.1 mrg ac_status=$?
11287 1.1.1.3 snj echo "$as_me:11287: \$? = $ac_status" >&5
11288 1.1 mrg (exit $ac_status); }; }; then
11289 1.1 mrg ac_cv_lib_pcre_pcre_compile=yes
11290 1.1 mrg else
11291 1.1 mrg echo "$as_me: failed program was:" >&5
11292 1.1 mrg cat conftest.$ac_ext >&5
11293 1.1 mrg ac_cv_lib_pcre_pcre_compile=no
11294 1.1 mrg fi
11295 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11296 1.1 mrg LIBS=$ac_check_lib_save_LIBS
11297 1.1 mrg fi
11298 1.1.1.3 snj echo "$as_me:11298: result: $ac_cv_lib_pcre_pcre_compile" >&5
11299 1.1 mrg echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
11300 1.1 mrg if test $ac_cv_lib_pcre_pcre_compile = yes; then
11301 1.1.1.3 snj echo "$as_me:11301: checking for pcreposix.h" >&5
11302 1.1 mrg echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
11303 1.1 mrg if test "${ac_cv_header_pcreposix_h+set}" = set; then
11304 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11305 1.1 mrg else
11306 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11307 1.1.1.3 snj #line 11307 "configure"
11308 1.1 mrg #include "confdefs.h"
11309 1.1 mrg #include <pcreposix.h>
11310 1.1 mrg _ACEOF
11311 1.1.1.3 snj if { (eval echo "$as_me:11311: \"$ac_cpp conftest.$ac_ext\"") >&5
11312 1.1 mrg (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11313 1.1 mrg ac_status=$?
11314 1.1 mrg egrep -v '^ *\+' conftest.er1 >conftest.err
11315 1.1 mrg rm -f conftest.er1
11316 1.1 mrg cat conftest.err >&5
11317 1.1.1.3 snj echo "$as_me:11317: \$? = $ac_status" >&5
11318 1.1 mrg (exit $ac_status); } >/dev/null; then
11319 1.1 mrg if test -s conftest.err; then
11320 1.1 mrg ac_cpp_err=$ac_c_preproc_warn_flag
11321 1.1 mrg else
11322 1.1 mrg ac_cpp_err=
11323 1.1 mrg fi
11324 1.1 mrg else
11325 1.1 mrg ac_cpp_err=yes
11326 1.1 mrg fi
11327 1.1 mrg if test -z "$ac_cpp_err"; then
11328 1.1 mrg ac_cv_header_pcreposix_h=yes
11329 1.1 mrg else
11330 1.1 mrg echo "$as_me: failed program was:" >&5
11331 1.1 mrg cat conftest.$ac_ext >&5
11332 1.1 mrg ac_cv_header_pcreposix_h=no
11333 1.1 mrg fi
11334 1.1 mrg rm -f conftest.err conftest.$ac_ext
11335 1.1 mrg fi
11336 1.1.1.3 snj echo "$as_me:11336: result: $ac_cv_header_pcreposix_h" >&5
11337 1.1 mrg echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
11338 1.1 mrg if test $ac_cv_header_pcreposix_h = yes; then
11339 1.1.1.3 snj echo "$as_me:11339: checking for pcreposix_regcomp in -lpcreposix" >&5
11340 1.1 mrg echo $ECHO_N "checking for pcreposix_regcomp in -lpcreposix... $ECHO_C" >&6
11341 1.1 mrg if test "${ac_cv_lib_pcreposix_pcreposix_regcomp+set}" = set; then
11342 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11343 1.1 mrg else
11344 1.1 mrg ac_check_lib_save_LIBS=$LIBS
11345 1.1 mrg LIBS="-lpcreposix "-lpcre" $LIBS"
11346 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11347 1.1.1.3 snj #line 11347 "configure"
11348 1.1 mrg #include "confdefs.h"
11349 1.1 mrg
11350 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
11351 1.1 mrg #ifdef __cplusplus
11352 1.1 mrg extern "C"
11353 1.1 mrg #endif
11354 1.1 mrg /* We use char because int might match the return type of a gcc2
11355 1.1 mrg builtin and then its argument prototype would still apply. */
11356 1.1 mrg char pcreposix_regcomp ();
11357 1.1 mrg int
11358 1.1 mrg main ()
11359 1.1 mrg {
11360 1.1 mrg pcreposix_regcomp ();
11361 1.1 mrg ;
11362 1.1 mrg return 0;
11363 1.1 mrg }
11364 1.1 mrg _ACEOF
11365 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11366 1.1.1.3 snj if { (eval echo "$as_me:11366: \"$ac_link\"") >&5
11367 1.1 mrg (eval $ac_link) 2>&5
11368 1.1 mrg ac_status=$?
11369 1.1.1.3 snj echo "$as_me:11369: \$? = $ac_status" >&5
11370 1.1 mrg (exit $ac_status); } &&
11371 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11372 1.1.1.3 snj { (eval echo "$as_me:11372: \"$ac_try\"") >&5
11373 1.1 mrg (eval $ac_try) 2>&5
11374 1.1 mrg ac_status=$?
11375 1.1.1.3 snj echo "$as_me:11375: \$? = $ac_status" >&5
11376 1.1 mrg (exit $ac_status); }; }; then
11377 1.1 mrg ac_cv_lib_pcreposix_pcreposix_regcomp=yes
11378 1.1 mrg else
11379 1.1 mrg echo "$as_me: failed program was:" >&5
11380 1.1 mrg cat conftest.$ac_ext >&5
11381 1.1 mrg ac_cv_lib_pcreposix_pcreposix_regcomp=no
11382 1.1 mrg fi
11383 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11384 1.1 mrg LIBS=$ac_check_lib_save_LIBS
11385 1.1 mrg fi
11386 1.1.1.3 snj echo "$as_me:11386: result: $ac_cv_lib_pcreposix_pcreposix_regcomp" >&5
11387 1.1 mrg echo "${ECHO_T}$ac_cv_lib_pcreposix_pcreposix_regcomp" >&6
11388 1.1 mrg if test $ac_cv_lib_pcreposix_pcreposix_regcomp = yes; then
11389 1.1 mrg cat >>confdefs.h <<\EOF
11390 1.1 mrg #define HAVE_LIB_PCRE 1
11391 1.1 mrg EOF
11392 1.1 mrg
11393 1.1 mrg cat >>confdefs.h <<\EOF
11394 1.1 mrg #define HAVE_PCREPOSIX_H 1
11395 1.1 mrg EOF
11396 1.1 mrg
11397 1.1 mrg LIBS="-lpcreposix -lpcre $LIBS"
11398 1.1 mrg else
11399 1.1.1.3 snj { { echo "$as_me:11399: error: Cannot find PCRE POSIX library" >&5
11400 1.1 mrg echo "$as_me: error: Cannot find PCRE POSIX library" >&2;}
11401 1.1 mrg { (exit 1); exit 1; }; }
11402 1.1 mrg fi
11403 1.1 mrg
11404 1.1 mrg else
11405 1.1.1.3 snj { { echo "$as_me:11405: error: Cannot find PCRE POSIX header" >&5
11406 1.1 mrg echo "$as_me: error: Cannot find PCRE POSIX header" >&2;}
11407 1.1 mrg { (exit 1); exit 1; }; }
11408 1.1 mrg fi
11409 1.1 mrg
11410 1.1 mrg else
11411 1.1.1.3 snj { { echo "$as_me:11411: error: Cannot find PCRE library" >&5
11412 1.1 mrg echo "$as_me: error: Cannot find PCRE library" >&2;}
11413 1.1 mrg { (exit 1); exit 1; }; }
11414 1.1 mrg fi
11415 1.1 mrg
11416 1.1 mrg fi
11417 1.1 mrg
11418 1.1 mrg if test "$with_pcre" = no ; then
11419 1.1 mrg
11420 1.1.1.3 snj echo "$as_me:11420: checking for regular-expression headers" >&5
11421 1.1 mrg echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
11422 1.1 mrg if test "${cf_cv_regex+set}" = set; then
11423 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11424 1.1 mrg else
11425 1.1 mrg
11426 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11427 1.1.1.3 snj #line 11427 "configure"
11428 1.1 mrg #include "confdefs.h"
11429 1.1 mrg #include <sys/types.h>
11430 1.1 mrg #include <regex.h>
11431 1.1 mrg int
11432 1.1 mrg main ()
11433 1.1 mrg {
11434 1.1 mrg
11435 1.1 mrg regex_t *p;
11436 1.1 mrg int x = regcomp(p, "", 0);
11437 1.1 mrg int y = regexec(p, "", 0, 0, 0);
11438 1.1 mrg regfree(p);
11439 1.1 mrg
11440 1.1 mrg ;
11441 1.1 mrg return 0;
11442 1.1 mrg }
11443 1.1 mrg _ACEOF
11444 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11445 1.1.1.3 snj if { (eval echo "$as_me:11445: \"$ac_link\"") >&5
11446 1.1 mrg (eval $ac_link) 2>&5
11447 1.1 mrg ac_status=$?
11448 1.1.1.3 snj echo "$as_me:11448: \$? = $ac_status" >&5
11449 1.1 mrg (exit $ac_status); } &&
11450 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11451 1.1.1.3 snj { (eval echo "$as_me:11451: \"$ac_try\"") >&5
11452 1.1 mrg (eval $ac_try) 2>&5
11453 1.1 mrg ac_status=$?
11454 1.1.1.3 snj echo "$as_me:11454: \$? = $ac_status" >&5
11455 1.1 mrg (exit $ac_status); }; }; then
11456 1.1 mrg cf_cv_regex="regex.h"
11457 1.1 mrg else
11458 1.1 mrg echo "$as_me: failed program was:" >&5
11459 1.1 mrg cat conftest.$ac_ext >&5
11460 1.1 mrg
11461 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11462 1.1.1.3 snj #line 11462 "configure"
11463 1.1 mrg #include "confdefs.h"
11464 1.1 mrg #include <regexp.h>
11465 1.1 mrg int
11466 1.1 mrg main ()
11467 1.1 mrg {
11468 1.1 mrg
11469 1.1 mrg char *p = compile("", "", "", 0);
11470 1.1 mrg int x = step("", "");
11471 1.1 mrg
11472 1.1 mrg ;
11473 1.1 mrg return 0;
11474 1.1 mrg }
11475 1.1 mrg _ACEOF
11476 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11477 1.1.1.3 snj if { (eval echo "$as_me:11477: \"$ac_link\"") >&5
11478 1.1 mrg (eval $ac_link) 2>&5
11479 1.1 mrg ac_status=$?
11480 1.1.1.3 snj echo "$as_me:11480: \$? = $ac_status" >&5
11481 1.1 mrg (exit $ac_status); } &&
11482 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11483 1.1.1.3 snj { (eval echo "$as_me:11483: \"$ac_try\"") >&5
11484 1.1 mrg (eval $ac_try) 2>&5
11485 1.1 mrg ac_status=$?
11486 1.1.1.3 snj echo "$as_me:11486: \$? = $ac_status" >&5
11487 1.1 mrg (exit $ac_status); }; }; then
11488 1.1 mrg cf_cv_regex="regexp.h"
11489 1.1 mrg else
11490 1.1 mrg echo "$as_me: failed program was:" >&5
11491 1.1 mrg cat conftest.$ac_ext >&5
11492 1.1 mrg
11493 1.1 mrg cf_save_LIBS="$LIBS"
11494 1.1 mrg LIBS="-lgen $LIBS"
11495 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
11496 1.1.1.3 snj #line 11496 "configure"
11497 1.1 mrg #include "confdefs.h"
11498 1.1 mrg #include <regexpr.h>
11499 1.1 mrg int
11500 1.1 mrg main ()
11501 1.1 mrg {
11502 1.1 mrg
11503 1.1 mrg char *p = compile("", "", "");
11504 1.1 mrg int x = step("", "");
11505 1.1 mrg
11506 1.1 mrg ;
11507 1.1 mrg return 0;
11508 1.1 mrg }
11509 1.1 mrg _ACEOF
11510 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
11511 1.1.1.3 snj if { (eval echo "$as_me:11511: \"$ac_link\"") >&5
11512 1.1 mrg (eval $ac_link) 2>&5
11513 1.1 mrg ac_status=$?
11514 1.1.1.3 snj echo "$as_me:11514: \$? = $ac_status" >&5
11515 1.1 mrg (exit $ac_status); } &&
11516 1.1 mrg { ac_try='test -s conftest$ac_exeext'
11517 1.1.1.3 snj { (eval echo "$as_me:11517: \"$ac_try\"") >&5
11518 1.1 mrg (eval $ac_try) 2>&5
11519 1.1 mrg ac_status=$?
11520 1.1.1.3 snj echo "$as_me:11520: \$? = $ac_status" >&5
11521 1.1 mrg (exit $ac_status); }; }; then
11522 1.1 mrg cf_cv_regex="regexpr.h"
11523 1.1 mrg else
11524 1.1 mrg echo "$as_me: failed program was:" >&5
11525 1.1 mrg cat conftest.$ac_ext >&5
11526 1.1 mrg LIBS="$cf_save_LIBS"
11527 1.1 mrg fi
11528 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11529 1.1 mrg fi
11530 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11531 1.1 mrg fi
11532 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11533 1.1 mrg
11534 1.1 mrg fi
11535 1.1 mrg
11536 1.1.1.3 snj echo "$as_me:11536: result: $cf_cv_regex" >&5
11537 1.1 mrg echo "${ECHO_T}$cf_cv_regex" >&6
11538 1.1 mrg case $cf_cv_regex in
11539 1.1 mrg regex.h) cat >>confdefs.h <<\EOF
11540 1.1 mrg #define HAVE_REGEX_H_FUNCS 1
11541 1.1 mrg EOF
11542 1.1 mrg ;;
11543 1.1 mrg regexp.h) cat >>confdefs.h <<\EOF
11544 1.1 mrg #define HAVE_REGEXP_H_FUNCS 1
11545 1.1 mrg EOF
11546 1.1 mrg ;;
11547 1.1 mrg regexpr.h) cat >>confdefs.h <<\EOF
11548 1.1 mrg #define HAVE_REGEXPR_H_FUNCS 1
11549 1.1 mrg EOF
11550 1.1 mrg ;;
11551 1.1 mrg esac
11552 1.1 mrg
11553 1.1 mrg if test "X$cf_cv_regex" != "Xregex.h" ; then
11554 1.1.1.3 snj { { echo "$as_me:11554: error: Only POSIX or PCRE regular expressions are supported" >&5
11555 1.1 mrg echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
11556 1.1 mrg { (exit 1); exit 1; }; }
11557 1.1 mrg fi
11558 1.1 mrg fi
11559 1.1 mrg cat >>confdefs.h <<\EOF
11560 1.1 mrg #define OPT_SELECT_REGEX 1
11561 1.1 mrg EOF
11562 1.1 mrg
11563 1.1 mrg fi
11564 1.1 mrg
11565 1.1.1.3 snj echo "$as_me:11565: checking if you want support for right-scrollbar" >&5
11566 1.1 mrg echo $ECHO_N "checking if you want support for right-scrollbar... $ECHO_C" >&6
11567 1.1 mrg
11568 1.1 mrg # Check whether --enable-rightbar or --disable-rightbar was given.
11569 1.1 mrg if test "${enable_rightbar+set}" = set; then
11570 1.1 mrg enableval="$enable_rightbar"
11571 1.1 mrg test "$enableval" != no && enableval=yes
11572 1.1 mrg if test "$enableval" != "yes" ; then
11573 1.1 mrg enable_rightbar=no
11574 1.1 mrg else
11575 1.1 mrg enable_rightbar=yes
11576 1.1 mrg fi
11577 1.1 mrg else
11578 1.1 mrg enableval=yes
11579 1.1 mrg enable_rightbar=yes
11580 1.1 mrg
11581 1.1 mrg fi;
11582 1.1.1.3 snj echo "$as_me:11582: result: $enable_rightbar" >&5
11583 1.1 mrg echo "${ECHO_T}$enable_rightbar" >&6
11584 1.1 mrg if test "$enable_rightbar" = yes ; then
11585 1.1 mrg cat >>confdefs.h <<\EOF
11586 1.1 mrg #define SCROLLBAR_RIGHT 1
11587 1.1 mrg EOF
11588 1.1 mrg
11589 1.1 mrg fi
11590 1.1 mrg
11591 1.1.1.3 snj echo "$as_me:11591: checking if you want check for redundant name-change" >&5
11592 1.1 mrg echo $ECHO_N "checking if you want check for redundant name-change... $ECHO_C" >&6
11593 1.1 mrg
11594 1.1 mrg # Check whether --enable-samename or --disable-samename was given.
11595 1.1 mrg if test "${enable_samename+set}" = set; then
11596 1.1 mrg enableval="$enable_samename"
11597 1.1 mrg test "$enableval" != no && enableval=yes
11598 1.1 mrg if test "$enableval" != "yes" ; then
11599 1.1 mrg enable_samename=no
11600 1.1 mrg else
11601 1.1 mrg enable_samename=yes
11602 1.1 mrg fi
11603 1.1 mrg else
11604 1.1 mrg enableval=yes
11605 1.1 mrg enable_samename=yes
11606 1.1 mrg
11607 1.1 mrg fi;
11608 1.1.1.3 snj echo "$as_me:11608: result: $enable_samename" >&5
11609 1.1 mrg echo "${ECHO_T}$enable_samename" >&6
11610 1.1 mrg test "$enable_samename" = no && cat >>confdefs.h <<\EOF
11611 1.1 mrg #define OPT_SAME_NAME 0
11612 1.1 mrg EOF
11613 1.1 mrg
11614 1.1.1.3 snj echo "$as_me:11614: checking if you want support for session management" >&5
11615 1.1 mrg echo $ECHO_N "checking if you want support for session management... $ECHO_C" >&6
11616 1.1 mrg
11617 1.1 mrg # Check whether --enable-session-mgt or --disable-session-mgt was given.
11618 1.1 mrg if test "${enable_session_mgt+set}" = set; then
11619 1.1 mrg enableval="$enable_session_mgt"
11620 1.1 mrg test "$enableval" != no && enableval=yes
11621 1.1 mrg if test "$enableval" != "yes" ; then
11622 1.1 mrg enable_session_mgt=no
11623 1.1 mrg else
11624 1.1 mrg enable_session_mgt=yes
11625 1.1 mrg fi
11626 1.1 mrg else
11627 1.1 mrg enableval=yes
11628 1.1 mrg enable_session_mgt=yes
11629 1.1 mrg
11630 1.1 mrg fi;
11631 1.1.1.3 snj echo "$as_me:11631: result: $enable_session_mgt" >&5
11632 1.1 mrg echo "${ECHO_T}$enable_session_mgt" >&6
11633 1.1 mrg test "$enable_session_mgt" = no && cat >>confdefs.h <<\EOF
11634 1.1 mrg #define OPT_SESSION_MGT 0
11635 1.1 mrg EOF
11636 1.1 mrg
11637 1.1.1.3 snj echo "$as_me:11637: checking if you want to use termcap function-keys" >&5
11638 1.1 mrg echo $ECHO_N "checking if you want to use termcap function-keys... $ECHO_C" >&6
11639 1.1 mrg
11640 1.1 mrg # Check whether --enable-tcap-fkeys or --disable-tcap-fkeys was given.
11641 1.1 mrg if test "${enable_tcap_fkeys+set}" = set; then
11642 1.1 mrg enableval="$enable_tcap_fkeys"
11643 1.1 mrg test "$enableval" != no && enableval=yes
11644 1.1 mrg if test "$enableval" != "yes" ; then
11645 1.1 mrg enable_tcap_fkeys=no
11646 1.1 mrg else
11647 1.1 mrg enable_tcap_fkeys=yes
11648 1.1 mrg fi
11649 1.1 mrg else
11650 1.1 mrg enableval=yes
11651 1.1 mrg enable_tcap_fkeys=yes
11652 1.1 mrg
11653 1.1 mrg fi;
11654 1.1.1.3 snj echo "$as_me:11654: result: $enable_tcap_fkeys" >&5
11655 1.1 mrg echo "${ECHO_T}$enable_tcap_fkeys" >&6
11656 1.1 mrg test "$enable_tcap_fkeys" = yes && cat >>confdefs.h <<\EOF
11657 1.1 mrg #define OPT_TCAP_FKEYS 1
11658 1.1 mrg EOF
11659 1.1 mrg
11660 1.1.1.3 snj echo "$as_me:11660: checking if you want to use termcap-query/report" >&5
11661 1.1 mrg echo $ECHO_N "checking if you want to use termcap-query/report... $ECHO_C" >&6
11662 1.1 mrg
11663 1.1 mrg # Check whether --enable-tcap-query or --disable-tcap-query was given.
11664 1.1 mrg if test "${enable_tcap_query+set}" = set; then
11665 1.1 mrg enableval="$enable_tcap_query"
11666 1.1.1.2 christos test "$enableval" != no && enableval=yes
11667 1.1.1.2 christos if test "$enableval" != "yes" ; then
11668 1.1 mrg enable_tcap_query=no
11669 1.1.1.2 christos else
11670 1.1.1.2 christos enable_tcap_query=yes
11671 1.1 mrg fi
11672 1.1 mrg else
11673 1.1.1.2 christos enableval=yes
11674 1.1.1.2 christos enable_tcap_query=yes
11675 1.1 mrg
11676 1.1 mrg fi;
11677 1.1.1.3 snj echo "$as_me:11677: result: $enable_tcap_query" >&5
11678 1.1 mrg echo "${ECHO_T}$enable_tcap_query" >&6
11679 1.1 mrg test "$enable_tcap_query" = yes && cat >>confdefs.h <<\EOF
11680 1.1 mrg #define OPT_TCAP_QUERY 1
11681 1.1 mrg EOF
11682 1.1 mrg
11683 1.1.1.3 snj echo "$as_me:11683: checking if you want support for tek4014" >&5
11684 1.1 mrg echo $ECHO_N "checking if you want support for tek4014... $ECHO_C" >&6
11685 1.1 mrg
11686 1.1 mrg # Check whether --enable-tek4014 or --disable-tek4014 was given.
11687 1.1 mrg if test "${enable_tek4014+set}" = set; then
11688 1.1 mrg enableval="$enable_tek4014"
11689 1.1 mrg test "$enableval" != no && enableval=yes
11690 1.1 mrg if test "$enableval" != "yes" ; then
11691 1.1 mrg enable_tek4014=no
11692 1.1 mrg else
11693 1.1 mrg enable_tek4014=yes
11694 1.1 mrg fi
11695 1.1 mrg else
11696 1.1 mrg enableval=yes
11697 1.1 mrg enable_tek4014=yes
11698 1.1 mrg
11699 1.1 mrg fi;
11700 1.1.1.3 snj echo "$as_me:11700: result: $enable_tek4014" >&5
11701 1.1 mrg echo "${ECHO_T}$enable_tek4014" >&6
11702 1.1 mrg if test "$enable_tek4014" = no ; then
11703 1.1 mrg cat >>confdefs.h <<\EOF
11704 1.1 mrg #define OPT_TEK4014 0
11705 1.1 mrg EOF
11706 1.1 mrg
11707 1.1 mrg else
11708 1.1 mrg EXTRAHDRS="$EXTRAHDRS Tekparse.h"
11709 1.1 mrg EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c"
11710 1.1 mrg EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o"
11711 1.1 mrg fi
11712 1.1 mrg
11713 1.1.1.3 snj echo "$as_me:11713: checking if you want pulldown menus with a toolbar" >&5
11714 1.1 mrg echo $ECHO_N "checking if you want pulldown menus with a toolbar... $ECHO_C" >&6
11715 1.1 mrg
11716 1.1 mrg # Check whether --enable-toolbar or --disable-toolbar was given.
11717 1.1 mrg if test "${enable_toolbar+set}" = set; then
11718 1.1 mrg enableval="$enable_toolbar"
11719 1.1 mrg test "$enableval" != yes && enableval=no
11720 1.1 mrg if test "$enableval" != "no" ; then
11721 1.1 mrg enable_toolbar=yes
11722 1.1 mrg else
11723 1.1 mrg enable_toolbar=no
11724 1.1 mrg fi
11725 1.1 mrg else
11726 1.1 mrg enableval=no
11727 1.1 mrg enable_toolbar=no
11728 1.1 mrg
11729 1.1 mrg fi;
11730 1.1.1.3 snj echo "$as_me:11730: result: $enable_toolbar" >&5
11731 1.1 mrg echo "${ECHO_T}$enable_toolbar" >&6
11732 1.1 mrg if test "$enable_toolbar" = yes ; then
11733 1.1 mrg cat >>confdefs.h <<\EOF
11734 1.1 mrg #define OPT_TOOLBAR 1
11735 1.1 mrg EOF
11736 1.1 mrg
11737 1.1 mrg fi
11738 1.1 mrg
11739 1.1.1.3 snj echo "$as_me:11739: checking if you want VT52 emulation" >&5
11740 1.1 mrg echo $ECHO_N "checking if you want VT52 emulation... $ECHO_C" >&6
11741 1.1 mrg
11742 1.1 mrg # Check whether --enable-vt52 or --disable-vt52 was given.
11743 1.1 mrg if test "${enable_vt52+set}" = set; then
11744 1.1 mrg enableval="$enable_vt52"
11745 1.1 mrg test "$enableval" != no && enableval=yes
11746 1.1 mrg if test "$enableval" != "yes" ; then
11747 1.1 mrg enable_vt52=no
11748 1.1 mrg else
11749 1.1 mrg enable_vt52=yes
11750 1.1 mrg fi
11751 1.1 mrg else
11752 1.1 mrg enableval=yes
11753 1.1 mrg enable_vt52=yes
11754 1.1 mrg
11755 1.1 mrg fi;
11756 1.1.1.3 snj echo "$as_me:11756: result: $enable_vt52" >&5
11757 1.1 mrg echo "${ECHO_T}$enable_vt52" >&6
11758 1.1 mrg test "$enable_vt52" = no && cat >>confdefs.h <<\EOF
11759 1.1 mrg #define OPT_VT52_MODE 0
11760 1.1 mrg EOF
11761 1.1 mrg
11762 1.1.1.3 snj echo "$as_me:11762: checking if you want to use mini-luit/Latin9 built-in support" >&5
11763 1.1 mrg echo $ECHO_N "checking if you want to use mini-luit/Latin9 built-in support... $ECHO_C" >&6
11764 1.1 mrg
11765 1.1 mrg # Check whether --enable-mini-luit or --disable-mini-luit was given.
11766 1.1 mrg if test "${enable_mini_luit+set}" = set; then
11767 1.1 mrg enableval="$enable_mini_luit"
11768 1.1 mrg test "$enableval" != yes && enableval=no
11769 1.1 mrg if test "$enableval" != "no" ; then
11770 1.1 mrg enable_mini_luit=yes
11771 1.1 mrg else
11772 1.1 mrg enable_mini_luit=no
11773 1.1 mrg fi
11774 1.1 mrg else
11775 1.1 mrg enableval=no
11776 1.1 mrg enable_mini_luit=no
11777 1.1 mrg
11778 1.1 mrg fi;
11779 1.1.1.3 snj echo "$as_me:11779: result: $enable_mini_luit" >&5
11780 1.1 mrg echo "${ECHO_T}$enable_mini_luit" >&6
11781 1.1 mrg if test "$enable_mini_luit" = yes ; then
11782 1.1 mrg cat >>confdefs.h <<\EOF
11783 1.1 mrg #define OPT_MINI_LUIT 1
11784 1.1 mrg EOF
11785 1.1 mrg
11786 1.1 mrg fi
11787 1.1 mrg
11788 1.1.1.3 snj echo "$as_me:11788: checking if you want to use luit" >&5
11789 1.1 mrg echo $ECHO_N "checking if you want to use luit... $ECHO_C" >&6
11790 1.1 mrg
11791 1.1 mrg # Check whether --enable-luit or --disable-luit was given.
11792 1.1 mrg if test "${enable_luit+set}" = set; then
11793 1.1 mrg enableval="$enable_luit"
11794 1.1 mrg test "$enableval" != yes && enableval=no
11795 1.1 mrg if test "$enableval" != "no" ; then
11796 1.1 mrg enable_luit=yes
11797 1.1 mrg else
11798 1.1 mrg enable_luit=$enable_mini_luit
11799 1.1 mrg fi
11800 1.1 mrg else
11801 1.1 mrg enableval=no
11802 1.1 mrg enable_luit=$enable_mini_luit
11803 1.1 mrg
11804 1.1 mrg fi;
11805 1.1.1.3 snj echo "$as_me:11805: result: $enable_luit" >&5
11806 1.1 mrg echo "${ECHO_T}$enable_luit" >&6
11807 1.1 mrg if test "$enable_luit" = yes ; then
11808 1.1 mrg cat >>confdefs.h <<\EOF
11809 1.1 mrg #define OPT_LUIT_PROG 1
11810 1.1 mrg EOF
11811 1.1 mrg
11812 1.1 mrg test -z "$LUIT" && LUIT=luit
11813 1.1 mrg for ac_prog in $LUIT luit
11814 1.1 mrg do
11815 1.1 mrg # Extract the first word of "$ac_prog", so it can be a program name with args.
11816 1.1 mrg set dummy $ac_prog; ac_word=$2
11817 1.1.1.3 snj echo "$as_me:11817: checking for $ac_word" >&5
11818 1.1 mrg echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819 1.1 mrg if test "${ac_cv_path_LUIT+set}" = set; then
11820 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
11821 1.1 mrg else
11822 1.1 mrg case $LUIT in
11823 1.1 mrg [\\/]* | ?:[\\/]*)
11824 1.1 mrg ac_cv_path_LUIT="$LUIT" # Let the user override the test with a path.
11825 1.1 mrg ;;
11826 1.1 mrg *)
11827 1.1 mrg ac_save_IFS=$IFS; IFS=$ac_path_separator
11828 1.1 mrg ac_dummy="$PATH"
11829 1.1 mrg for ac_dir in $ac_dummy; do
11830 1.1 mrg IFS=$ac_save_IFS
11831 1.1 mrg test -z "$ac_dir" && ac_dir=.
11832 1.1 mrg if $as_executable_p "$ac_dir/$ac_word"; then
11833 1.1 mrg ac_cv_path_LUIT="$ac_dir/$ac_word"
11834 1.1.1.3 snj echo "$as_me:11834: found $ac_dir/$ac_word" >&5
11835 1.1 mrg break
11836 1.1 mrg fi
11837 1.1 mrg done
11838 1.1 mrg
11839 1.1 mrg ;;
11840 1.1 mrg esac
11841 1.1 mrg fi
11842 1.1 mrg LUIT=$ac_cv_path_LUIT
11843 1.1 mrg
11844 1.1 mrg if test -n "$LUIT"; then
11845 1.1.1.3 snj echo "$as_me:11845: result: $LUIT" >&5
11846 1.1 mrg echo "${ECHO_T}$LUIT" >&6
11847 1.1 mrg else
11848 1.1.1.3 snj echo "$as_me:11848: result: no" >&5
11849 1.1 mrg echo "${ECHO_T}no" >&6
11850 1.1 mrg fi
11851 1.1 mrg
11852 1.1 mrg test -n "$LUIT" && break
11853 1.1 mrg done
11854 1.1 mrg test -n "$LUIT" || LUIT="$LUIT"
11855 1.1 mrg
11856 1.1 mrg cf_path_prog=""
11857 1.1 mrg cf_path_args=""
11858 1.1.1.3 snj IFS="${IFS= }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
11859 1.1 mrg for cf_temp in $ac_cv_path_LUIT
11860 1.1 mrg do
11861 1.1 mrg if test -z "$cf_path_prog" ; then
11862 1.1 mrg if test "$with_full_paths" = yes ; then
11863 1.1 mrg
11864 1.1 mrg if test "x$prefix" != xNONE; then
11865 1.1 mrg cf_path_syntax="$prefix"
11866 1.1 mrg else
11867 1.1 mrg cf_path_syntax="$ac_default_prefix"
11868 1.1 mrg fi
11869 1.1 mrg
11870 1.1 mrg case ".$cf_temp" in #(vi
11871 1.1 mrg .\$\(*\)*|.\'*\'*) #(vi
11872 1.1 mrg ;;
11873 1.1 mrg ..|./*|.\\*) #(vi
11874 1.1 mrg ;;
11875 1.1 mrg .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11876 1.1 mrg ;;
11877 1.1 mrg .\${*prefix}*) #(vi
11878 1.1 mrg eval cf_temp="$cf_temp"
11879 1.1 mrg case ".$cf_temp" in #(vi
11880 1.1 mrg .NONE/*)
11881 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
11882 1.1 mrg ;;
11883 1.1 mrg esac
11884 1.1 mrg ;; #(vi
11885 1.1 mrg .no|.NONE/*)
11886 1.1 mrg cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
11887 1.1 mrg ;;
11888 1.1 mrg *)
11889 1.1 mrg break
11890 1.1 mrg ;;
11891 1.1 mrg esac
11892 1.1 mrg
11893 1.1 mrg cf_path_prog="$cf_temp"
11894 1.1 mrg else
11895 1.1 mrg cf_path_prog="`basename $cf_temp`"
11896 1.1 mrg fi
11897 1.1 mrg elif test -z "$cf_path_args" ; then
11898 1.1 mrg cf_path_args="$cf_temp"
11899 1.1 mrg else
11900 1.1 mrg cf_path_args="$cf_path_args $cf_temp"
11901 1.1 mrg fi
11902 1.1 mrg done
11903 1.1 mrg IFS="$cf_save_ifs"
11904 1.1 mrg
11905 1.1 mrg if test -n "$cf_path_prog" ; then
11906 1.1 mrg
11907 1.1.1.3 snj echo "${as_me-configure}:11907: testing defining path for ${cf_path_prog} ..." 1>&5
11908 1.1 mrg
11909 1.1 mrg cat >>confdefs.h <<EOF
11910 1.1 mrg #define LUIT_PATH "$cf_path_prog"
11911 1.1 mrg EOF
11912 1.1 mrg
11913 1.1 mrg test -n "$cf_path_args" && cat >>confdefs.h <<EOF
11914 1.1 mrg #define LUIT_ARGS "$cf_path_args"
11915 1.1 mrg EOF
11916 1.1 mrg
11917 1.1 mrg fi
11918 1.1 mrg
11919 1.1 mrg fi
11920 1.1 mrg
11921 1.1.1.3 snj echo "$as_me:11921: checking if you want wide-character support" >&5
11922 1.1 mrg echo $ECHO_N "checking if you want wide-character support... $ECHO_C" >&6
11923 1.1 mrg
11924 1.1 mrg # Check whether --enable-wide-chars or --disable-wide-chars was given.
11925 1.1 mrg if test "${enable_wide_chars+set}" = set; then
11926 1.1 mrg enableval="$enable_wide_chars"
11927 1.1 mrg test "$enableval" != no && enableval=yes
11928 1.1 mrg if test "$enableval" != "$enable_luit" ; then
11929 1.1 mrg enable_wchar=yes
11930 1.1 mrg else
11931 1.1 mrg enable_wchar=$enable_luit
11932 1.1 mrg fi
11933 1.1 mrg else
11934 1.1 mrg enableval=$enable_luit
11935 1.1 mrg enable_wchar=$enable_luit
11936 1.1 mrg
11937 1.1 mrg fi;
11938 1.1.1.3 snj echo "$as_me:11938: result: $enable_wchar" >&5
11939 1.1 mrg echo "${ECHO_T}$enable_wchar" >&6
11940 1.1.1.3 snj
11941 1.1.1.3 snj echo "$as_me:11941: checking if you want only 16-bit character support" >&5
11942 1.1.1.3 snj echo $ECHO_N "checking if you want only 16-bit character support... $ECHO_C" >&6
11943 1.1.1.3 snj
11944 1.1.1.3 snj # Check whether --enable-16bit-chars or --disable-16bit-chars was given.
11945 1.1.1.3 snj if test "${enable_16bit_chars+set}" = set; then
11946 1.1.1.3 snj enableval="$enable_16bit_chars"
11947 1.1.1.3 snj test "$enableval" != yes && enableval=no
11948 1.1.1.3 snj if test "$enableval" != "no" ; then
11949 1.1.1.3 snj enable_16bit_chars=yes
11950 1.1.1.3 snj else
11951 1.1.1.3 snj enable_16bit_chars=no
11952 1.1.1.3 snj fi
11953 1.1.1.3 snj else
11954 1.1.1.3 snj enableval=no
11955 1.1.1.3 snj enable_16bit_chars=no
11956 1.1.1.3 snj
11957 1.1.1.3 snj fi;
11958 1.1.1.3 snj echo "$as_me:11958: result: $enable_16bit_chars" >&5
11959 1.1.1.3 snj echo "${ECHO_T}$enable_16bit_chars" >&6
11960 1.1.1.3 snj
11961 1.1.1.3 snj if test "$enable_16bit_chars" = yes ; then
11962 1.1.1.3 snj cat >>confdefs.h <<\EOF
11963 1.1.1.3 snj #define OPT_WIDER_ICHAR 0
11964 1.1.1.3 snj EOF
11965 1.1.1.3 snj
11966 1.1.1.3 snj enable_wchar=yes
11967 1.1.1.3 snj fi
11968 1.1.1.3 snj
11969 1.1 mrg if test "$enable_wchar" = yes ; then
11970 1.1 mrg cat >>confdefs.h <<\EOF
11971 1.1 mrg #define OPT_WIDE_CHARS 1
11972 1.1 mrg EOF
11973 1.1 mrg
11974 1.1 mrg EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h"
11975 1.1 mrg EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c"
11976 1.1 mrg EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o"
11977 1.1 mrg fi
11978 1.1 mrg
11979 1.1.1.3 snj echo "$as_me:11979: checking if you want dynamic-abbreviation support" >&5
11980 1.1 mrg echo $ECHO_N "checking if you want dynamic-abbreviation support... $ECHO_C" >&6
11981 1.1 mrg
11982 1.1 mrg # Check whether --enable-dabbrev or --disable-dabbrev was given.
11983 1.1 mrg if test "${enable_dabbrev+set}" = set; then
11984 1.1 mrg enableval="$enable_dabbrev"
11985 1.1 mrg test "$enableval" != yes && enableval=no
11986 1.1 mrg if test "$enableval" != "no" ; then
11987 1.1 mrg enable_dabbrev=yes
11988 1.1 mrg else
11989 1.1 mrg enable_dabbrev=no
11990 1.1 mrg fi
11991 1.1 mrg else
11992 1.1 mrg enableval=no
11993 1.1 mrg enable_dabbrev=no
11994 1.1 mrg
11995 1.1 mrg fi;
11996 1.1.1.3 snj echo "$as_me:11996: result: $enable_dabbrev" >&5
11997 1.1 mrg echo "${ECHO_T}$enable_dabbrev" >&6
11998 1.1 mrg if test "$enable_dabbrev" = yes ; then
11999 1.1 mrg cat >>confdefs.h <<\EOF
12000 1.1 mrg #define OPT_DABBREV 1
12001 1.1 mrg EOF
12002 1.1 mrg
12003 1.1 mrg fi
12004 1.1 mrg
12005 1.1.1.3 snj echo "$as_me:12005: checking if you want DECterm Locator support" >&5
12006 1.1 mrg echo $ECHO_N "checking if you want DECterm Locator support... $ECHO_C" >&6
12007 1.1 mrg
12008 1.1 mrg # Check whether --enable-dec-locator or --disable-dec-locator was given.
12009 1.1 mrg if test "${enable_dec_locator+set}" = set; then
12010 1.1 mrg enableval="$enable_dec_locator"
12011 1.1 mrg test "$enableval" != yes && enableval=no
12012 1.1 mrg if test "$enableval" != "no" ; then
12013 1.1 mrg enable_dec_locator=yes
12014 1.1 mrg else
12015 1.1 mrg enable_dec_locator=no
12016 1.1 mrg fi
12017 1.1 mrg else
12018 1.1 mrg enableval=no
12019 1.1 mrg enable_dec_locator=no
12020 1.1 mrg
12021 1.1 mrg fi;
12022 1.1.1.3 snj echo "$as_me:12022: result: $enable_dec_locator" >&5
12023 1.1 mrg echo "${ECHO_T}$enable_dec_locator" >&6
12024 1.1 mrg if test "$enable_dec_locator" = yes ; then
12025 1.1 mrg cat >>confdefs.h <<\EOF
12026 1.1 mrg #define OPT_DEC_LOCATOR 1
12027 1.1 mrg EOF
12028 1.1 mrg
12029 1.1 mrg fi
12030 1.1 mrg
12031 1.1.1.3 snj echo "$as_me:12031: checking if you want VT420 rectangle support" >&5
12032 1.1 mrg echo $ECHO_N "checking if you want VT420 rectangle support... $ECHO_C" >&6
12033 1.1 mrg
12034 1.1 mrg # Check whether --enable-rectangles or --disable-rectangles was given.
12035 1.1 mrg if test "${enable_rectangles+set}" = set; then
12036 1.1 mrg enableval="$enable_rectangles"
12037 1.1 mrg test "$enableval" != no && enableval=yes
12038 1.1 mrg if test "$enableval" != "yes" ; then
12039 1.1 mrg enable_rectangles=no
12040 1.1 mrg else
12041 1.1 mrg enable_rectangles=yes
12042 1.1 mrg fi
12043 1.1 mrg else
12044 1.1 mrg enableval=yes
12045 1.1 mrg enable_rectangles=yes
12046 1.1 mrg
12047 1.1 mrg fi;
12048 1.1.1.3 snj echo "$as_me:12048: result: $enable_rectangles" >&5
12049 1.1 mrg echo "${ECHO_T}$enable_rectangles" >&6
12050 1.1 mrg if test "$enable_rectangles" = yes ; then
12051 1.1 mrg cat >>confdefs.h <<\EOF
12052 1.1 mrg #define OPT_DEC_RECTOPS 1
12053 1.1 mrg EOF
12054 1.1 mrg
12055 1.1 mrg fi
12056 1.1 mrg
12057 1.1.1.3 snj echo "$as_me:12057: checking if you want -ziconbeep option" >&5
12058 1.1 mrg echo $ECHO_N "checking if you want -ziconbeep option... $ECHO_C" >&6
12059 1.1 mrg
12060 1.1 mrg # Check whether --enable-ziconbeep or --disable-ziconbeep was given.
12061 1.1 mrg if test "${enable_ziconbeep+set}" = set; then
12062 1.1 mrg enableval="$enable_ziconbeep"
12063 1.1 mrg test "$enableval" != no && enableval=yes
12064 1.1 mrg if test "$enableval" != "yes" ; then
12065 1.1 mrg enable_ziconbeep=no
12066 1.1 mrg else
12067 1.1 mrg enable_ziconbeep=yes
12068 1.1 mrg fi
12069 1.1 mrg else
12070 1.1 mrg enableval=yes
12071 1.1 mrg enable_ziconbeep=yes
12072 1.1 mrg
12073 1.1 mrg fi;
12074 1.1.1.3 snj echo "$as_me:12074: result: $enable_ziconbeep" >&5
12075 1.1 mrg echo "${ECHO_T}$enable_ziconbeep" >&6
12076 1.1 mrg test "$enable_ziconbeep" = no && cat >>confdefs.h <<\EOF
12077 1.1 mrg #define OPT_ZICONBEEP 0
12078 1.1 mrg EOF
12079 1.1 mrg
12080 1.1 mrg ###############################################################################
12081 1.1 mrg
12082 1.1.1.3 snj echo "$as_me:12082: checking if you want debugging traces" >&5
12083 1.1 mrg echo $ECHO_N "checking if you want debugging traces... $ECHO_C" >&6
12084 1.1 mrg
12085 1.1 mrg # Check whether --enable-trace or --disable-trace was given.
12086 1.1 mrg if test "${enable_trace+set}" = set; then
12087 1.1 mrg enableval="$enable_trace"
12088 1.1 mrg test "$enableval" != yes && enableval=no
12089 1.1 mrg if test "$enableval" != "no" ; then
12090 1.1 mrg enable_trace=yes
12091 1.1 mrg else
12092 1.1 mrg enable_trace=no
12093 1.1 mrg fi
12094 1.1 mrg else
12095 1.1 mrg enableval=no
12096 1.1 mrg enable_trace=no
12097 1.1 mrg
12098 1.1 mrg fi;
12099 1.1.1.3 snj echo "$as_me:12099: result: $enable_trace" >&5
12100 1.1 mrg echo "${ECHO_T}$enable_trace" >&6
12101 1.1 mrg if test "$enable_trace" = yes ; then
12102 1.1 mrg cat >>confdefs.h <<\EOF
12103 1.1 mrg #define OPT_TRACE 1
12104 1.1 mrg EOF
12105 1.1 mrg
12106 1.1 mrg EXTRASRCS="$EXTRASRCS trace.c"
12107 1.1 mrg EXTRAOBJS="$EXTRAOBJS trace.o"
12108 1.1 mrg fi
12109 1.1 mrg
12110 1.1.1.3 snj echo "$as_me:12110: checking if you want to test memory leaks" >&5
12111 1.1 mrg echo $ECHO_N "checking if you want to test memory leaks... $ECHO_C" >&6
12112 1.1 mrg
12113 1.1 mrg # Check whether --enable-leaks or --disable-leaks was given.
12114 1.1 mrg if test "${enable_leaks+set}" = set; then
12115 1.1 mrg enableval="$enable_leaks"
12116 1.1 mrg test "$enableval" != no && enableval=yes
12117 1.1 mrg if test "$enableval" != "yes" ; then
12118 1.1 mrg disable_leaks=yes
12119 1.1 mrg else
12120 1.1 mrg disable_leaks=no
12121 1.1 mrg fi
12122 1.1 mrg else
12123 1.1 mrg enableval=yes
12124 1.1 mrg disable_leaks=no
12125 1.1 mrg
12126 1.1 mrg fi;
12127 1.1.1.3 snj echo "$as_me:12127: result: $disable_leaks" >&5
12128 1.1 mrg echo "${ECHO_T}$disable_leaks" >&6
12129 1.1 mrg if test "$disable_leaks" = yes ; then
12130 1.1 mrg cat >>confdefs.h <<\EOF
12131 1.1 mrg #define NO_LEAKS 1
12132 1.1 mrg EOF
12133 1.1 mrg
12134 1.1 mrg fi
12135 1.1 mrg
12136 1.1.1.3 snj echo "$as_me:12136: checking if you want to see long compiling messages" >&5
12137 1.1 mrg echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
12138 1.1 mrg
12139 1.1 mrg # Check whether --enable-echo or --disable-echo was given.
12140 1.1 mrg if test "${enable_echo+set}" = set; then
12141 1.1 mrg enableval="$enable_echo"
12142 1.1 mrg test "$enableval" != no && enableval=yes
12143 1.1 mrg if test "$enableval" != "yes" ; then
12144 1.1 mrg
12145 1.1 mrg ECHO_LT='--silent'
12146 1.1 mrg ECHO_LD='@echo linking $@;'
12147 1.1 mrg RULE_CC=' @echo compiling $<'
12148 1.1 mrg SHOW_CC=' @echo compiling $@'
12149 1.1 mrg ECHO_CC='@'
12150 1.1 mrg
12151 1.1 mrg else
12152 1.1 mrg
12153 1.1 mrg ECHO_LT=''
12154 1.1 mrg ECHO_LD=''
12155 1.1 mrg RULE_CC='# compiling'
12156 1.1 mrg SHOW_CC='# compiling'
12157 1.1 mrg ECHO_CC=''
12158 1.1 mrg
12159 1.1 mrg fi
12160 1.1 mrg else
12161 1.1 mrg enableval=yes
12162 1.1 mrg
12163 1.1 mrg ECHO_LT=''
12164 1.1 mrg ECHO_LD=''
12165 1.1 mrg RULE_CC='# compiling'
12166 1.1 mrg SHOW_CC='# compiling'
12167 1.1 mrg ECHO_CC=''
12168 1.1 mrg
12169 1.1 mrg fi;
12170 1.1.1.3 snj echo "$as_me:12170: result: $enableval" >&5
12171 1.1 mrg echo "${ECHO_T}$enableval" >&6
12172 1.1 mrg
12173 1.1.1.3 snj echo "$as_me:12173: checking if you want magic cookie emulation" >&5
12174 1.1 mrg echo $ECHO_N "checking if you want magic cookie emulation... $ECHO_C" >&6
12175 1.1 mrg
12176 1.1 mrg # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12177 1.1 mrg if test "${enable_xmc_glitch+set}" = set; then
12178 1.1 mrg enableval="$enable_xmc_glitch"
12179 1.1 mrg test "$enableval" != yes && enableval=no
12180 1.1 mrg if test "$enableval" != "no" ; then
12181 1.1 mrg enable_xmc=yes
12182 1.1 mrg else
12183 1.1 mrg enable_xmc=no
12184 1.1 mrg fi
12185 1.1 mrg else
12186 1.1 mrg enableval=no
12187 1.1 mrg enable_xmc=no
12188 1.1 mrg
12189 1.1 mrg fi;
12190 1.1.1.3 snj echo "$as_me:12190: result: $enable_xmc" >&5
12191 1.1 mrg echo "${ECHO_T}$enable_xmc" >&6
12192 1.1 mrg if test "$enable_xmc" = yes ; then
12193 1.1 mrg cat >>confdefs.h <<\EOF
12194 1.1 mrg #define OPT_XMC_GLITCH 1
12195 1.1 mrg EOF
12196 1.1 mrg
12197 1.1 mrg EXTRASRCS="$EXTRASRCS testxmc.c"
12198 1.1 mrg EXTRAOBJS="$EXTRAOBJS testxmc.o"
12199 1.1 mrg fi
12200 1.1 mrg
12201 1.1 mrg for ac_func in tigetstr
12202 1.1 mrg do
12203 1.1 mrg as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12204 1.1.1.3 snj echo "$as_me:12204: checking for $ac_func" >&5
12205 1.1 mrg echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12206 1.1 mrg if eval "test \"\${$as_ac_var+set}\" = set"; then
12207 1.1 mrg echo $ECHO_N "(cached) $ECHO_C" >&6
12208 1.1 mrg else
12209 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
12210 1.1.1.3 snj #line 12210 "configure"
12211 1.1 mrg #include "confdefs.h"
12212 1.1 mrg /* System header to define __stub macros and hopefully few prototypes,
12213 1.1 mrg which can conflict with char $ac_func (); below. */
12214 1.1 mrg #include <assert.h>
12215 1.1 mrg /* Override any gcc2 internal prototype to avoid an error. */
12216 1.1 mrg #ifdef __cplusplus
12217 1.1 mrg extern "C"
12218 1.1 mrg #endif
12219 1.1 mrg /* We use char because int might match the return type of a gcc2
12220 1.1 mrg builtin and then its argument prototype would still apply. */
12221 1.1 mrg char $ac_func ();
12222 1.1 mrg char (*f) ();
12223 1.1 mrg
12224 1.1 mrg int
12225 1.1 mrg main ()
12226 1.1 mrg {
12227 1.1 mrg /* The GNU C library defines this for functions which it implements
12228 1.1 mrg to always fail with ENOSYS. Some functions are actually named
12229 1.1 mrg something starting with __ and the normal name is an alias. */
12230 1.1 mrg #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12231 1.1 mrg choke me
12232 1.1 mrg #else
12233 1.1 mrg f = $ac_func;
12234 1.1 mrg #endif
12235 1.1 mrg
12236 1.1 mrg ;
12237 1.1 mrg return 0;
12238 1.1 mrg }
12239 1.1 mrg _ACEOF
12240 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext
12241 1.1.1.3 snj if { (eval echo "$as_me:12241: \"$ac_link\"") >&5
12242 1.1 mrg (eval $ac_link) 2>&5
12243 1.1 mrg ac_status=$?
12244 1.1.1.3 snj echo "$as_me:12244: \$? = $ac_status" >&5
12245 1.1 mrg (exit $ac_status); } &&
12246 1.1 mrg { ac_try='test -s conftest$ac_exeext'
12247 1.1.1.3 snj { (eval echo "$as_me:12247: \"$ac_try\"") >&5
12248 1.1 mrg (eval $ac_try) 2>&5
12249 1.1 mrg ac_status=$?
12250 1.1.1.3 snj echo "$as_me:12250: \$? = $ac_status" >&5
12251 1.1 mrg (exit $ac_status); }; }; then
12252 1.1 mrg eval "$as_ac_var=yes"
12253 1.1 mrg else
12254 1.1 mrg echo "$as_me: failed program was:" >&5
12255 1.1 mrg cat conftest.$ac_ext >&5
12256 1.1 mrg eval "$as_ac_var=no"
12257 1.1 mrg fi
12258 1.1 mrg rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12259 1.1 mrg fi
12260 1.1.1.3 snj echo "$as_me:12260: result: `eval echo '${'$as_ac_var'}'`" >&5
12261 1.1 mrg echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12262 1.1 mrg if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 1.1 mrg cat >>confdefs.h <<EOF
12264 1.1 mrg #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 1.1 mrg EOF
12266 1.1 mrg
12267 1.1 mrg fi
12268 1.1 mrg done
12269 1.1 mrg
12270 1.1.1.2 christos if test -n "$cf_cv_lib_part_tgetent"; then
12271 1.1.1.2 christos
12272 1.1.1.2 christos for ac_func in use_extended_names
12273 1.1.1.2 christos do
12274 1.1.1.2 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275 1.1.1.3 snj echo "$as_me:12275: checking for $ac_func" >&5
12276 1.1.1.2 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12277 1.1.1.2 christos if eval "test \"\${$as_ac_var+set}\" = set"; then
12278 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
12279 1.1.1.2 christos else
12280 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
12281 1.1.1.3 snj #line 12281 "configure"
12282 1.1.1.2 christos #include "confdefs.h"
12283 1.1.1.2 christos /* System header to define __stub macros and hopefully few prototypes,
12284 1.1.1.2 christos which can conflict with char $ac_func (); below. */
12285 1.1.1.2 christos #include <assert.h>
12286 1.1.1.2 christos /* Override any gcc2 internal prototype to avoid an error. */
12287 1.1.1.2 christos #ifdef __cplusplus
12288 1.1.1.2 christos extern "C"
12289 1.1.1.2 christos #endif
12290 1.1.1.2 christos /* We use char because int might match the return type of a gcc2
12291 1.1.1.2 christos builtin and then its argument prototype would still apply. */
12292 1.1.1.2 christos char $ac_func ();
12293 1.1.1.2 christos char (*f) ();
12294 1.1.1.2 christos
12295 1.1.1.2 christos int
12296 1.1.1.2 christos main ()
12297 1.1.1.2 christos {
12298 1.1.1.2 christos /* The GNU C library defines this for functions which it implements
12299 1.1.1.2 christos to always fail with ENOSYS. Some functions are actually named
12300 1.1.1.2 christos something starting with __ and the normal name is an alias. */
12301 1.1.1.2 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12302 1.1.1.2 christos choke me
12303 1.1.1.2 christos #else
12304 1.1.1.2 christos f = $ac_func;
12305 1.1.1.2 christos #endif
12306 1.1.1.2 christos
12307 1.1.1.2 christos ;
12308 1.1.1.2 christos return 0;
12309 1.1.1.2 christos }
12310 1.1.1.2 christos _ACEOF
12311 1.1.1.2 christos rm -f conftest.$ac_objext conftest$ac_exeext
12312 1.1.1.3 snj if { (eval echo "$as_me:12312: \"$ac_link\"") >&5
12313 1.1.1.2 christos (eval $ac_link) 2>&5
12314 1.1.1.2 christos ac_status=$?
12315 1.1.1.3 snj echo "$as_me:12315: \$? = $ac_status" >&5
12316 1.1.1.2 christos (exit $ac_status); } &&
12317 1.1.1.2 christos { ac_try='test -s conftest$ac_exeext'
12318 1.1.1.3 snj { (eval echo "$as_me:12318: \"$ac_try\"") >&5
12319 1.1.1.2 christos (eval $ac_try) 2>&5
12320 1.1.1.2 christos ac_status=$?
12321 1.1.1.3 snj echo "$as_me:12321: \$? = $ac_status" >&5
12322 1.1.1.2 christos (exit $ac_status); }; }; then
12323 1.1.1.2 christos eval "$as_ac_var=yes"
12324 1.1.1.2 christos else
12325 1.1.1.2 christos echo "$as_me: failed program was:" >&5
12326 1.1.1.2 christos cat conftest.$ac_ext >&5
12327 1.1.1.2 christos eval "$as_ac_var=no"
12328 1.1.1.2 christos fi
12329 1.1.1.2 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12330 1.1.1.2 christos fi
12331 1.1.1.3 snj echo "$as_me:12331: result: `eval echo '${'$as_ac_var'}'`" >&5
12332 1.1.1.2 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12333 1.1.1.2 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
12334 1.1.1.2 christos cat >>confdefs.h <<EOF
12335 1.1.1.2 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12336 1.1.1.2 christos EOF
12337 1.1.1.2 christos
12338 1.1.1.2 christos fi
12339 1.1.1.2 christos done
12340 1.1.1.2 christos
12341 1.1.1.2 christos fi
12342 1.1.1.2 christos
12343 1.1 mrg if test -n "$GCC" ; then
12344 1.1.1.3 snj echo "$as_me:12344: checking if you want to turn on gcc warnings" >&5
12345 1.1 mrg echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
12346 1.1 mrg
12347 1.1 mrg # Check whether --enable-warnings or --disable-warnings was given.
12348 1.1 mrg if test "${enable_warnings+set}" = set; then
12349 1.1 mrg enableval="$enable_warnings"
12350 1.1 mrg test "$enableval" != yes && enableval=no
12351 1.1 mrg if test "$enableval" != "no" ; then
12352 1.1 mrg with_warnings=yes
12353 1.1 mrg else
12354 1.1 mrg with_warnings=no
12355 1.1 mrg fi
12356 1.1 mrg else
12357 1.1 mrg enableval=no
12358 1.1 mrg with_warnings=no
12359 1.1 mrg
12360 1.1 mrg fi;
12361 1.1.1.3 snj echo "$as_me:12361: result: $with_warnings" >&5
12362 1.1 mrg echo "${ECHO_T}$with_warnings" >&6
12363 1.1 mrg if test "$with_warnings" = yes
12364 1.1 mrg then
12365 1.1 mrg
12366 1.1 mrg if test "$GCC" = yes
12367 1.1 mrg then
12368 1.1 mrg cat > conftest.i <<EOF
12369 1.1 mrg #ifndef GCC_PRINTF
12370 1.1 mrg #define GCC_PRINTF 0
12371 1.1 mrg #endif
12372 1.1 mrg #ifndef GCC_SCANF
12373 1.1 mrg #define GCC_SCANF 0
12374 1.1 mrg #endif
12375 1.1 mrg #ifndef GCC_NORETURN
12376 1.1 mrg #define GCC_NORETURN /* nothing */
12377 1.1 mrg #endif
12378 1.1 mrg #ifndef GCC_UNUSED
12379 1.1 mrg #define GCC_UNUSED /* nothing */
12380 1.1 mrg #endif
12381 1.1 mrg EOF
12382 1.1 mrg if test "$GCC" = yes
12383 1.1 mrg then
12384 1.1.1.3 snj { echo "$as_me:12384: checking for $CC __attribute__ directives..." >&5
12385 1.1 mrg echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
12386 1.1 mrg cat > conftest.$ac_ext <<EOF
12387 1.1.1.3 snj #line 12387 "${as_me-configure}"
12388 1.1 mrg #include "confdefs.h"
12389 1.1 mrg #include "conftest.h"
12390 1.1 mrg #include "conftest.i"
12391 1.1 mrg #if GCC_PRINTF
12392 1.1 mrg #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
12393 1.1 mrg #else
12394 1.1 mrg #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
12395 1.1 mrg #endif
12396 1.1 mrg #if GCC_SCANF
12397 1.1 mrg #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
12398 1.1 mrg #else
12399 1.1 mrg #define GCC_SCANFLIKE(fmt,var) /*nothing*/
12400 1.1 mrg #endif
12401 1.1 mrg extern void wow(char *,...) GCC_SCANFLIKE(1,2);
12402 1.1 mrg extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
12403 1.1 mrg extern void foo(void) GCC_NORETURN;
12404 1.1 mrg int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
12405 1.1 mrg EOF
12406 1.1 mrg for cf_attribute in scanf printf unused noreturn
12407 1.1 mrg do
12408 1.1 mrg
12409 1.1 mrg cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12410 1.1 mrg
12411 1.1 mrg cf_directive="__attribute__(($cf_attribute))"
12412 1.1 mrg echo "checking for $CC $cf_directive" 1>&5
12413 1.1 mrg case $cf_attribute in
12414 1.1 mrg scanf|printf)
12415 1.1 mrg cat >conftest.h <<EOF
12416 1.1 mrg #define GCC_$cf_ATTRIBUTE 1
12417 1.1 mrg EOF
12418 1.1 mrg ;;
12419 1.1 mrg *)
12420 1.1 mrg cat >conftest.h <<EOF
12421 1.1 mrg #define GCC_$cf_ATTRIBUTE $cf_directive
12422 1.1 mrg EOF
12423 1.1 mrg ;;
12424 1.1 mrg esac
12425 1.1.1.3 snj if { (eval echo "$as_me:12425: \"$ac_compile\"") >&5
12426 1.1 mrg (eval $ac_compile) 2>&5
12427 1.1 mrg ac_status=$?
12428 1.1.1.3 snj echo "$as_me:12428: \$? = $ac_status" >&5
12429 1.1 mrg (exit $ac_status); }; then
12430 1.1.1.3 snj test -n "$verbose" && echo "$as_me:12430: result: ... $cf_attribute" >&5
12431 1.1 mrg echo "${ECHO_T}... $cf_attribute" >&6
12432 1.1 mrg cat conftest.h >>confdefs.h
12433 1.1 mrg fi
12434 1.1 mrg done
12435 1.1 mrg else
12436 1.1 mrg fgrep define conftest.i >>confdefs.h
12437 1.1 mrg fi
12438 1.1 mrg rm -rf conftest*
12439 1.1 mrg fi
12440 1.1 mrg
12441 1.1 mrg GCC_VERSION=none
12442 1.1 mrg if test "$GCC" = yes ; then
12443 1.1.1.3 snj echo "$as_me:12443: checking version of $CC" >&5
12444 1.1 mrg echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
12445 1.1 mrg GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
12446 1.1 mrg test -z "$GCC_VERSION" && GCC_VERSION=unknown
12447 1.1.1.3 snj echo "$as_me:12447: result: $GCC_VERSION" >&5
12448 1.1 mrg echo "${ECHO_T}$GCC_VERSION" >&6
12449 1.1 mrg fi
12450 1.1 mrg
12451 1.1 mrg INTEL_COMPILER=no
12452 1.1 mrg
12453 1.1 mrg if test "$GCC" = yes ; then
12454 1.1 mrg case $host_os in
12455 1.1 mrg linux*|gnu*)
12456 1.1.1.3 snj echo "$as_me:12456: checking if this is really Intel C compiler" >&5
12457 1.1 mrg echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
12458 1.1 mrg cf_save_CFLAGS="$CFLAGS"
12459 1.1 mrg CFLAGS="$CFLAGS -no-gcc"
12460 1.1 mrg cat >conftest.$ac_ext <<_ACEOF
12461 1.1.1.3 snj #line 12461 "configure"
12462 1.1 mrg #include "confdefs.h"
12463 1.1 mrg
12464 1.1 mrg int
12465 1.1 mrg main ()
12466 1.1 mrg {
12467 1.1 mrg
12468 1.1 mrg #ifdef __INTEL_COMPILER
12469 1.1 mrg #else
12470 1.1 mrg make an error
12471 1.1 mrg #endif
12472 1.1 mrg
12473 1.1 mrg ;
12474 1.1 mrg return 0;
12475 1.1 mrg }
12476 1.1 mrg _ACEOF
12477 1.1 mrg rm -f conftest.$ac_objext
12478 1.1.1.3 snj if { (eval echo "$as_me:12478: \"$ac_compile\"") >&5
12479 1.1 mrg (eval $ac_compile) 2>&5
12480 1.1 mrg ac_status=$?
12481 1.1.1.3 snj echo "$as_me:12481: \$? = $ac_status" >&5
12482 1.1 mrg (exit $ac_status); } &&
12483 1.1 mrg { ac_try='test -s conftest.$ac_objext'
12484 1.1.1.3 snj { (eval echo "$as_me:12484: \"$ac_try\"") >&5
12485 1.1 mrg (eval $ac_try) 2>&5
12486 1.1 mrg ac_status=$?
12487 1.1.1.3 snj echo "$as_me:12487: \$? = $ac_status" >&5
12488 1.1 mrg (exit $ac_status); }; }; then
12489 1.1 mrg INTEL_COMPILER=yes
12490 1.1 mrg cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
12491 1.1 mrg
12492 1.1 mrg else
12493 1.1 mrg echo "$as_me: failed program was:" >&5
12494 1.1 mrg cat conftest.$ac_ext >&5
12495 1.1 mrg fi
12496 1.1 mrg rm -f conftest.$ac_objext conftest.$ac_ext
12497 1.1 mrg CFLAGS="$cf_save_CFLAGS"
12498 1.1.1.3 snj echo "$as_me:12498: result: $INTEL_COMPILER" >&5
12499 1.1 mrg echo "${ECHO_T}$INTEL_COMPILER" >&6
12500 1.1 mrg ;;
12501 1.1 mrg esac
12502 1.1 mrg fi
12503 1.1 mrg
12504 1.1 mrg cat > conftest.$ac_ext <<EOF
12505 1.1.1.3 snj #line 12505 "${as_me-configure}"
12506 1.1 mrg int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
12507 1.1 mrg EOF
12508 1.1 mrg
12509 1.1 mrg if test "$INTEL_COMPILER" = yes
12510 1.1 mrg then
12511 1.1 mrg # The "-wdXXX" options suppress warnings:
12512 1.1 mrg # remark #1419: external declaration in primary source file
12513 1.1 mrg # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
12514 1.1 mrg # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
12515 1.1 mrg # remark #193: zero used for undefined preprocessing identifier
12516 1.1 mrg # remark #593: variable "curs_sb_left_arrow" was set but never used
12517 1.1 mrg # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
12518 1.1 mrg # remark #869: parameter "tw" was never referenced
12519 1.1 mrg # remark #981: operands are evaluated in unspecified order
12520 1.1.1.3 snj # warning #279: controlling expression is constant
12521 1.1 mrg
12522 1.1.1.3 snj { echo "$as_me:12522: checking for $CC warning options..." >&5
12523 1.1 mrg echo "$as_me: checking for $CC warning options..." >&6;}
12524 1.1 mrg cf_save_CFLAGS="$CFLAGS"
12525 1.1 mrg EXTRA_CFLAGS="-Wall"
12526 1.1 mrg for cf_opt in \
12527 1.1 mrg wd1419 \
12528 1.1 mrg wd1683 \
12529 1.1 mrg wd1684 \
12530 1.1 mrg wd193 \
12531 1.1 mrg wd593 \
12532 1.1.1.3 snj wd279 \
12533 1.1 mrg wd810 \
12534 1.1 mrg wd869 \
12535 1.1 mrg wd981
12536 1.1 mrg do
12537 1.1 mrg CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12538 1.1.1.3 snj if { (eval echo "$as_me:12538: \"$ac_compile\"") >&5
12539 1.1 mrg (eval $ac_compile) 2>&5
12540 1.1 mrg ac_status=$?
12541 1.1.1.3 snj echo "$as_me:12541: \$? = $ac_status" >&5
12542 1.1 mrg (exit $ac_status); }; then
12543 1.1.1.3 snj test -n "$verbose" && echo "$as_me:12543: result: ... -$cf_opt" >&5
12544 1.1 mrg echo "${ECHO_T}... -$cf_opt" >&6
12545 1.1 mrg EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12546 1.1 mrg fi
12547 1.1 mrg done
12548 1.1 mrg CFLAGS="$cf_save_CFLAGS"
12549 1.1 mrg
12550 1.1 mrg elif test "$GCC" = yes
12551 1.1 mrg then
12552 1.1.1.3 snj { echo "$as_me:12552: checking for $CC warning options..." >&5
12553 1.1 mrg echo "$as_me: checking for $CC warning options..." >&6;}
12554 1.1 mrg cf_save_CFLAGS="$CFLAGS"
12555 1.1 mrg EXTRA_CFLAGS="-W -Wall"
12556 1.1 mrg cf_warn_CONST=""
12557 1.1 mrg test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
12558 1.1 mrg for cf_opt in \
12559 1.1 mrg Wbad-function-cast \
12560 1.1 mrg Wcast-align \
12561 1.1 mrg Wcast-qual \
12562 1.1 mrg Winline \
12563 1.1 mrg Wmissing-declarations \
12564 1.1 mrg Wmissing-prototypes \
12565 1.1 mrg Wnested-externs \
12566 1.1 mrg Wpointer-arith \
12567 1.1 mrg Wshadow \
12568 1.1 mrg Wstrict-prototypes \
12569 1.1 mrg Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
12570 1.1 mrg do
12571 1.1 mrg CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
12572 1.1.1.3 snj if { (eval echo "$as_me:12572: \"$ac_compile\"") >&5
12573 1.1 mrg (eval $ac_compile) 2>&5
12574 1.1 mrg ac_status=$?
12575 1.1.1.3 snj echo "$as_me:12575: \$? = $ac_status" >&5
12576 1.1 mrg (exit $ac_status); }; then
12577 1.1.1.3 snj test -n "$verbose" && echo "$as_me:12577: result: ... -$cf_opt" >&5
12578 1.1 mrg echo "${ECHO_T}... -$cf_opt" >&6
12579 1.1 mrg case $cf_opt in #(vi
12580 1.1 mrg Wcast-qual) #(vi
12581 1.1 mrg CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
12582 1.1 mrg ;;
12583 1.1 mrg Winline) #(vi
12584 1.1 mrg case $GCC_VERSION in
12585 1.1.1.2 christos [34].*)
12586 1.1 mrg test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
12587 1.1 mrg
12588 1.1.1.3 snj echo "${as_me-configure}:12588: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
12589 1.1 mrg
12590 1.1 mrg continue;;
12591 1.1 mrg esac
12592 1.1 mrg ;;
12593 1.1 mrg esac
12594 1.1 mrg EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
12595 1.1 mrg fi
12596 1.1 mrg done
12597 1.1 mrg CFLAGS="$cf_save_CFLAGS"
12598 1.1 mrg fi
12599 1.1 mrg rm -f conftest*
12600 1.1 mrg
12601 1.1 mrg fi
12602 1.1 mrg fi
12603 1.1 mrg
12604 1.1 mrg test "$disable_setuid" = yes && cat >>confdefs.h <<\EOF
12605 1.1 mrg #define DISABLE_SETUID 1
12606 1.1 mrg EOF
12607 1.1 mrg
12608 1.1 mrg test "$disable_setgid" = yes && cat >>confdefs.h <<\EOF
12609 1.1 mrg #define DISABLE_SETGID 1
12610 1.1 mrg EOF
12611 1.1 mrg
12612 1.1 mrg if test $disable_setuid = yes ; then
12613 1.1 mrg MAY_SETUID="#"
12614 1.1 mrg NOT_SETUID=
12615 1.1 mrg elif test $disable_setgid = yes ; then
12616 1.1 mrg MAY_SETUID="#"
12617 1.1 mrg NOT_SETUID=
12618 1.1 mrg else
12619 1.1 mrg MAY_SETUID=
12620 1.1 mrg NOT_SETUID="#"
12621 1.1 mrg fi
12622 1.1 mrg
12623 1.1 mrg ### remove from CPPFLAGS the optional features we define in xtermcfg.h
12624 1.1 mrg ### or other conflicting symbols that may be defined via imake:
12625 1.1 mrg for cf_def in \
12626 1.1 mrg __STDC__ \
12627 1.1 mrg ALLOWLOGGING \
12628 1.1 mrg ALLOWLOGFILEEXEC \
12629 1.1 mrg OPT_LUIT_PROG \
12630 1.1 mrg OPT_WIDE_CHARS \
12631 1.1 mrg SCROLLBAR_RIGHT \
12632 1.1 mrg USE_TTY_GROUP \
12633 1.1 mrg USE_UTEMPTER \
12634 1.1 mrg XRENDERFONT
12635 1.1 mrg do
12636 1.1 mrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//`
12637 1.1 mrg done
12638 1.1 mrg
12639 1.1 mrg ### output Makefile and xtermcfg.h
12640 1.1 mrg ac_config_files="$ac_config_files Makefile"
12641 1.1 mrg cat >confcache <<\_ACEOF
12642 1.1 mrg # This file is a shell script that caches the results of configure
12643 1.1 mrg # tests run on this system so they can be shared between configure
12644 1.1 mrg # scripts and configure runs, see configure's option --config-cache.
12645 1.1 mrg # It is not useful on other systems. If it contains results you don't
12646 1.1 mrg # want to keep, you may remove or edit it.
12647 1.1 mrg #
12648 1.1 mrg # config.status only pays attention to the cache file if you give it
12649 1.1 mrg # the --recheck option to rerun configure.
12650 1.1 mrg #
12651 1.1 mrg # `ac_cv_env_foo' variables (set or unset) will be overriden when
12652 1.1 mrg # loading this file, other *unset* `ac_cv_foo' will be assigned the
12653 1.1 mrg # following values.
12654 1.1 mrg
12655 1.1 mrg _ACEOF
12656 1.1 mrg
12657 1.1 mrg # The following way of writing the cache mishandles newlines in values,
12658 1.1 mrg # but we know of no workaround that is simple, portable, and efficient.
12659 1.1 mrg # So, don't put newlines in cache variables' values.
12660 1.1 mrg # Ultrix sh set writes to stderr and can't be redirected directly,
12661 1.1 mrg # and sets the high bit in the cache file unless we assign to the vars.
12662 1.1 mrg {
12663 1.1 mrg (set) 2>&1 |
12664 1.1 mrg case `(ac_space=' '; set | grep ac_space) 2>&1` in
12665 1.1 mrg *ac_space=\ *)
12666 1.1 mrg # `set' does not quote correctly, so add quotes (double-quote
12667 1.1 mrg # substitution turns \\\\ into \\, and sed turns \\ into \).
12668 1.1 mrg sed -n \
12669 1.1 mrg "s/'/'\\\\''/g;
12670 1.1 mrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12671 1.1 mrg ;;
12672 1.1 mrg *)
12673 1.1 mrg # `set' quotes correctly as required by POSIX, so do not add quotes.
12674 1.1 mrg sed -n \
12675 1.1 mrg "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12676 1.1 mrg ;;
12677 1.1 mrg esac;
12678 1.1 mrg } |
12679 1.1 mrg sed '
12680 1.1 mrg t clear
12681 1.1 mrg : clear
12682 1.1 mrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12683 1.1 mrg t end
12684 1.1 mrg /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12685 1.1 mrg : end' >>confcache
12686 1.1 mrg if cmp -s $cache_file confcache; then :; else
12687 1.1 mrg if test -w $cache_file; then
12688 1.1 mrg test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12689 1.1 mrg cat confcache >$cache_file
12690 1.1 mrg else
12691 1.1 mrg echo "not updating unwritable cache $cache_file"
12692 1.1 mrg fi
12693 1.1 mrg fi
12694 1.1 mrg rm -f confcache
12695 1.1 mrg
12696 1.1 mrg test "x$prefix" = xNONE && prefix=$ac_default_prefix
12697 1.1 mrg # Let make expand exec_prefix.
12698 1.1 mrg test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12699 1.1 mrg
12700 1.1 mrg # VPATH may cause trouble with some makes, so we remove $(srcdir),
12701 1.1 mrg # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12702 1.1 mrg # trailing colons and then remove the whole line if VPATH becomes empty
12703 1.1 mrg # (actually we leave an empty line to preserve line numbers).
12704 1.1 mrg if test "x$srcdir" = x.; then
12705 1.1 mrg ac_vpsub='/^[ ]*VPATH[ ]*=/{
12706 1.1 mrg s/:*\$(srcdir):*/:/;
12707 1.1 mrg s/:*\${srcdir}:*/:/;
12708 1.1 mrg s/:*@srcdir@:*/:/;
12709 1.1 mrg s/^\([^=]*=[ ]*\):*/\1/;
12710 1.1 mrg s/:*$//;
12711 1.1 mrg s/^[^=]*=[ ]*$//;
12712 1.1 mrg }'
12713 1.1 mrg fi
12714 1.1 mrg
12715 1.1 mrg DEFS=-DHAVE_CONFIG_H
12716 1.1 mrg
12717 1.1 mrg : ${CONFIG_STATUS=./config.status}
12718 1.1 mrg ac_clean_files_save=$ac_clean_files
12719 1.1 mrg ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12720 1.1.1.3 snj { echo "$as_me:12720: creating $CONFIG_STATUS" >&5
12721 1.1 mrg echo "$as_me: creating $CONFIG_STATUS" >&6;}
12722 1.1 mrg cat >$CONFIG_STATUS <<_ACEOF
12723 1.1 mrg #! $SHELL
12724 1.1 mrg # Generated automatically by configure.
12725 1.1 mrg # Run this file to recreate the current configuration.
12726 1.1 mrg # Compiler output produced by configure, useful for debugging
12727 1.1 mrg # configure, is in config.log if it exists.
12728 1.1 mrg
12729 1.1 mrg debug=false
12730 1.1 mrg SHELL=\${CONFIG_SHELL-$SHELL}
12731 1.1 mrg ac_cs_invocation="\$0 \$@"
12732 1.1 mrg
12733 1.1 mrg _ACEOF
12734 1.1 mrg
12735 1.1 mrg cat >>$CONFIG_STATUS <<\_ACEOF
12736 1.1 mrg # Be Bourne compatible
12737 1.1 mrg if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12738 1.1 mrg emulate sh
12739 1.1 mrg NULLCMD=:
12740 1.1 mrg elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12741 1.1 mrg set -o posix
12742 1.1 mrg fi
12743 1.1 mrg
12744 1.1 mrg # Name of the executable.
12745 1.1 mrg as_me=`echo "$0" |sed 's,.*[\\/],,'`
12746 1.1 mrg
12747 1.1 mrg if expr a : '\(a\)' >/dev/null 2>&1; then
12748 1.1 mrg as_expr=expr
12749 1.1 mrg else
12750 1.1 mrg as_expr=false
12751 1.1 mrg fi
12752 1.1 mrg
12753 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
12754 1.1 mrg echo >conf$$.file
12755 1.1 mrg if ln -s conf$$.file conf$$ 2>/dev/null; then
12756 1.1 mrg # We could just check for DJGPP; but this test a) works b) is more generic
12757 1.1 mrg # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12758 1.1 mrg if test -f conf$$.exe; then
12759 1.1 mrg # Don't use ln at all; we don't have any links
12760 1.1 mrg as_ln_s='cp -p'
12761 1.1 mrg else
12762 1.1 mrg as_ln_s='ln -s'
12763 1.1 mrg fi
12764 1.1 mrg elif ln conf$$.file conf$$ 2>/dev/null; then
12765 1.1 mrg as_ln_s=ln
12766 1.1 mrg else
12767 1.1 mrg as_ln_s='cp -p'
12768 1.1 mrg fi
12769 1.1 mrg rm -f conf$$ conf$$.exe conf$$.file
12770 1.1 mrg
12771 1.1 mrg as_executable_p="test -f"
12772 1.1 mrg
12773 1.1 mrg # Support unset when possible.
12774 1.1 mrg if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12775 1.1 mrg as_unset=unset
12776 1.1 mrg else
12777 1.1 mrg as_unset=false
12778 1.1 mrg fi
12779 1.1 mrg
12780 1.1 mrg # NLS nuisances.
12781 1.1 mrg $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12782 1.1 mrg $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12783 1.1 mrg $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12784 1.1 mrg $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12785 1.1 mrg $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12786 1.1 mrg $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12787 1.1 mrg $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12788 1.1 mrg $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12789 1.1 mrg
12790 1.1 mrg # IFS
12791 1.1 mrg # We need space, tab and new line, in precisely that order.
12792 1.1 mrg as_nl='
12793 1.1 mrg '
12794 1.1 mrg IFS=" $as_nl"
12795 1.1 mrg
12796 1.1 mrg # CDPATH.
12797 1.1 mrg $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12798 1.1 mrg
12799 1.1 mrg exec 6>&1
12800 1.1 mrg
12801 1.1 mrg _ACEOF
12802 1.1 mrg
12803 1.1 mrg # Files that config.status was made for.
12804 1.1 mrg if test -n "$ac_config_files"; then
12805 1.1 mrg echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12806 1.1 mrg fi
12807 1.1 mrg
12808 1.1 mrg if test -n "$ac_config_headers"; then
12809 1.1 mrg echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12810 1.1 mrg fi
12811 1.1 mrg
12812 1.1 mrg if test -n "$ac_config_links"; then
12813 1.1 mrg echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12814 1.1 mrg fi
12815 1.1 mrg
12816 1.1 mrg if test -n "$ac_config_commands"; then
12817 1.1 mrg echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12818 1.1 mrg fi
12819 1.1 mrg
12820 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12821 1.1 mrg
12822 1.1 mrg ac_cs_usage="\
12823 1.1 mrg \`$as_me' instantiates files from templates according to the
12824 1.1 mrg current configuration.
12825 1.1 mrg
12826 1.1 mrg Usage: $0 [OPTIONS] [FILE]...
12827 1.1 mrg
12828 1.1 mrg -h, --help print this help, then exit
12829 1.1 mrg -V, --version print version number, then exit
12830 1.1 mrg -d, --debug don't remove temporary files
12831 1.1 mrg --recheck update $as_me by reconfiguring in the same conditions
12832 1.1 mrg --file=FILE[:TEMPLATE]
12833 1.1 mrg instantiate the configuration file FILE
12834 1.1 mrg --header=FILE[:TEMPLATE]
12835 1.1 mrg instantiate the configuration header FILE
12836 1.1 mrg
12837 1.1 mrg Configuration files:
12838 1.1 mrg $config_files
12839 1.1 mrg
12840 1.1 mrg Configuration headers:
12841 1.1 mrg $config_headers
12842 1.1 mrg
12843 1.1 mrg Report bugs to <bug-autoconf@gnu.org>."
12844 1.1 mrg EOF
12845 1.1 mrg
12846 1.1 mrg cat >>$CONFIG_STATUS <<EOF
12847 1.1 mrg ac_cs_version="\\
12848 1.1 mrg config.status
12849 1.1.1.2 christos configured by $0, generated by GNU Autoconf 2.52.20081225,
12850 1.1 mrg with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12851 1.1 mrg
12852 1.1 mrg Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12853 1.1 mrg Free Software Foundation, Inc.
12854 1.1 mrg This config.status script is free software; the Free Software Foundation
12855 1.1 mrg gives unlimited permission to copy, distribute and modify it."
12856 1.1 mrg srcdir=$srcdir
12857 1.1 mrg INSTALL="$INSTALL"
12858 1.1 mrg EOF
12859 1.1 mrg
12860 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12861 1.1 mrg # If no file are specified by the user, then we need to provide default
12862 1.1 mrg # value. By we need to know if files were specified by the user.
12863 1.1 mrg ac_need_defaults=:
12864 1.1 mrg while test $# != 0
12865 1.1 mrg do
12866 1.1 mrg case $1 in
12867 1.1 mrg --*=*)
12868 1.1 mrg ac_option=`expr "x$1" : 'x\([^=]*\)='`
12869 1.1 mrg ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12870 1.1 mrg shift
12871 1.1 mrg set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12872 1.1 mrg shift
12873 1.1 mrg ;;
12874 1.1 mrg -*);;
12875 1.1 mrg *) # This is not an option, so the user has probably given explicit
12876 1.1 mrg # arguments.
12877 1.1 mrg ac_need_defaults=false;;
12878 1.1 mrg esac
12879 1.1 mrg
12880 1.1 mrg case $1 in
12881 1.1 mrg # Handling of the options.
12882 1.1 mrg EOF
12883 1.1 mrg cat >>$CONFIG_STATUS <<EOF
12884 1.1 mrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12885 1.1 mrg echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12886 1.1 mrg exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12887 1.1 mrg EOF
12888 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12889 1.1 mrg --version | --vers* | -V )
12890 1.1 mrg echo "$ac_cs_version"; exit 0 ;;
12891 1.1 mrg --he | --h)
12892 1.1 mrg # Conflict between --help and --header
12893 1.1.1.3 snj { { echo "$as_me:12893: error: ambiguous option: $1
12894 1.1 mrg Try \`$0 --help' for more information." >&5
12895 1.1 mrg echo "$as_me: error: ambiguous option: $1
12896 1.1 mrg Try \`$0 --help' for more information." >&2;}
12897 1.1 mrg { (exit 1); exit 1; }; };;
12898 1.1 mrg --help | --hel | -h )
12899 1.1 mrg echo "$ac_cs_usage"; exit 0 ;;
12900 1.1 mrg --debug | --d* | -d )
12901 1.1 mrg debug=: ;;
12902 1.1 mrg --file | --fil | --fi | --f )
12903 1.1 mrg shift
12904 1.1 mrg CONFIG_FILES="$CONFIG_FILES $1"
12905 1.1 mrg ac_need_defaults=false;;
12906 1.1 mrg --header | --heade | --head | --hea )
12907 1.1 mrg shift
12908 1.1 mrg CONFIG_HEADERS="$CONFIG_HEADERS $1"
12909 1.1 mrg ac_need_defaults=false;;
12910 1.1 mrg
12911 1.1 mrg # This is an error.
12912 1.1.1.3 snj -*) { { echo "$as_me:12912: error: unrecognized option: $1
12913 1.1 mrg Try \`$0 --help' for more information." >&5
12914 1.1 mrg echo "$as_me: error: unrecognized option: $1
12915 1.1 mrg Try \`$0 --help' for more information." >&2;}
12916 1.1 mrg { (exit 1); exit 1; }; } ;;
12917 1.1 mrg
12918 1.1 mrg *) ac_config_targets="$ac_config_targets $1" ;;
12919 1.1 mrg
12920 1.1 mrg esac
12921 1.1 mrg shift
12922 1.1 mrg done
12923 1.1 mrg
12924 1.1 mrg exec 5>>config.log
12925 1.1 mrg cat >&5 << _ACEOF
12926 1.1 mrg
12927 1.1 mrg ## ----------------------- ##
12928 1.1 mrg ## Running config.status. ##
12929 1.1 mrg ## ----------------------- ##
12930 1.1 mrg
12931 1.1.1.2 christos This file was extended by $as_me 2.52.20081225, executed with
12932 1.1 mrg CONFIG_FILES = $CONFIG_FILES
12933 1.1 mrg CONFIG_HEADERS = $CONFIG_HEADERS
12934 1.1 mrg CONFIG_LINKS = $CONFIG_LINKS
12935 1.1 mrg CONFIG_COMMANDS = $CONFIG_COMMANDS
12936 1.1 mrg > $ac_cs_invocation
12937 1.1 mrg on `(hostname || uname -n) 2>/dev/null | sed 1q`
12938 1.1 mrg
12939 1.1 mrg _ACEOF
12940 1.1 mrg EOF
12941 1.1 mrg
12942 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
12943 1.1 mrg for ac_config_target in $ac_config_targets
12944 1.1 mrg do
12945 1.1 mrg case "$ac_config_target" in
12946 1.1 mrg # Handling of arguments.
12947 1.1 mrg "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12948 1.1 mrg "xtermcfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xtermcfg.h:xtermcfg.hin" ;;
12949 1.1.1.3 snj *) { { echo "$as_me:12949: error: invalid argument: $ac_config_target" >&5
12950 1.1 mrg echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12951 1.1 mrg { (exit 1); exit 1; }; };;
12952 1.1 mrg esac
12953 1.1 mrg done
12954 1.1 mrg
12955 1.1 mrg # If the user did not use the arguments to specify the items to instantiate,
12956 1.1 mrg # then the envvar interface is used. Set only those that are not.
12957 1.1 mrg # We use the long form for the default assignment because of an extremely
12958 1.1 mrg # bizarre bug on SunOS 4.1.3.
12959 1.1 mrg if $ac_need_defaults; then
12960 1.1 mrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12961 1.1 mrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12962 1.1 mrg fi
12963 1.1 mrg
12964 1.1 mrg # Create a temporary directory, and hook for its removal unless debugging.
12965 1.1 mrg $debug ||
12966 1.1 mrg {
12967 1.1 mrg trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12968 1.1 mrg trap '{ (exit 1); exit 1; }' 1 2 13 15
12969 1.1 mrg }
12970 1.1 mrg
12971 1.1 mrg # Create a (secure) tmp directory for tmp files.
12972 1.1 mrg : ${TMPDIR=/tmp}
12973 1.1 mrg {
12974 1.1 mrg tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12975 1.1 mrg test -n "$tmp" && test -d "$tmp"
12976 1.1 mrg } ||
12977 1.1 mrg {
12978 1.1 mrg tmp=$TMPDIR/cs$$-$RANDOM
12979 1.1 mrg (umask 077 && mkdir $tmp)
12980 1.1 mrg } ||
12981 1.1 mrg {
12982 1.1 mrg echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12983 1.1 mrg { (exit 1); exit 1; }
12984 1.1 mrg }
12985 1.1 mrg
12986 1.1 mrg EOF
12987 1.1 mrg
12988 1.1 mrg cat >>$CONFIG_STATUS <<EOF
12989 1.1 mrg
12990 1.1 mrg #
12991 1.1 mrg # CONFIG_FILES section.
12992 1.1 mrg #
12993 1.1 mrg
12994 1.1 mrg # No need to generate the scripts if there are no CONFIG_FILES.
12995 1.1 mrg # This happens for instance when ./config.status config.h
12996 1.1 mrg if test -n "\$CONFIG_FILES"; then
12997 1.1 mrg # Protect against being on the right side of a sed subst in config.status.
12998 1.1 mrg sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12999 1.1 mrg s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13000 1.1 mrg s,@SHELL@,$SHELL,;t t
13001 1.1 mrg s,@exec_prefix@,$exec_prefix,;t t
13002 1.1 mrg s,@prefix@,$prefix,;t t
13003 1.1 mrg s,@program_transform_name@,$program_transform_name,;t t
13004 1.1 mrg s,@bindir@,$bindir,;t t
13005 1.1 mrg s,@sbindir@,$sbindir,;t t
13006 1.1 mrg s,@libexecdir@,$libexecdir,;t t
13007 1.1 mrg s,@datadir@,$datadir,;t t
13008 1.1 mrg s,@sysconfdir@,$sysconfdir,;t t
13009 1.1 mrg s,@sharedstatedir@,$sharedstatedir,;t t
13010 1.1 mrg s,@localstatedir@,$localstatedir,;t t
13011 1.1 mrg s,@libdir@,$libdir,;t t
13012 1.1 mrg s,@includedir@,$includedir,;t t
13013 1.1 mrg s,@oldincludedir@,$oldincludedir,;t t
13014 1.1 mrg s,@infodir@,$infodir,;t t
13015 1.1 mrg s,@mandir@,$mandir,;t t
13016 1.1 mrg s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13017 1.1 mrg s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13018 1.1 mrg s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13019 1.1 mrg s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13020 1.1 mrg s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13021 1.1 mrg s,@build_alias@,$build_alias,;t t
13022 1.1 mrg s,@host_alias@,$host_alias,;t t
13023 1.1 mrg s,@target_alias@,$target_alias,;t t
13024 1.1 mrg s,@ECHO_C@,$ECHO_C,;t t
13025 1.1 mrg s,@ECHO_N@,$ECHO_N,;t t
13026 1.1 mrg s,@ECHO_T@,$ECHO_T,;t t
13027 1.1 mrg s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13028 1.1 mrg s,@DEFS@,$DEFS,;t t
13029 1.1 mrg s,@LIBS@,$LIBS,;t t
13030 1.1 mrg s,@build@,$build,;t t
13031 1.1 mrg s,@build_cpu@,$build_cpu,;t t
13032 1.1 mrg s,@build_vendor@,$build_vendor,;t t
13033 1.1 mrg s,@build_os@,$build_os,;t t
13034 1.1 mrg s,@host@,$host,;t t
13035 1.1 mrg s,@host_cpu@,$host_cpu,;t t
13036 1.1 mrg s,@host_vendor@,$host_vendor,;t t
13037 1.1 mrg s,@host_os@,$host_os,;t t
13038 1.1 mrg s,@CC@,$CC,;t t
13039 1.1 mrg s,@CFLAGS@,$CFLAGS,;t t
13040 1.1 mrg s,@LDFLAGS@,$LDFLAGS,;t t
13041 1.1 mrg s,@CPPFLAGS@,$CPPFLAGS,;t t
13042 1.1 mrg s,@ac_ct_CC@,$ac_ct_CC,;t t
13043 1.1 mrg s,@EXEEXT@,$EXEEXT,;t t
13044 1.1 mrg s,@OBJEXT@,$OBJEXT,;t t
13045 1.1 mrg s,@CPP@,$CPP,;t t
13046 1.1 mrg s,@AWK@,$AWK,;t t
13047 1.1 mrg s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13048 1.1 mrg s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13049 1.1 mrg s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13050 1.1 mrg s,@LN_S@,$LN_S,;t t
13051 1.1 mrg s,@LINT@,$LINT,;t t
13052 1.1 mrg s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
13053 1.1 mrg s,@PROG_EXT@,$PROG_EXT,;t t
13054 1.1 mrg s,@appsdir@,$appsdir,;t t
13055 1.1 mrg s,@no_appsdir@,$no_appsdir,;t t
13056 1.1 mrg s,@icondir@,$icondir,;t t
13057 1.1 mrg s,@no_icondir@,$no_icondir,;t t
13058 1.1 mrg s,@desktop_utils@,$desktop_utils,;t t
13059 1.1 mrg s,@DESKTOP_FLAGS@,$DESKTOP_FLAGS,;t t
13060 1.1 mrg s,@XTERM_PATH@,$XTERM_PATH,;t t
13061 1.1 mrg s,@XTERM_SYMLINK@,$XTERM_SYMLINK,;t t
13062 1.1 mrg s,@SINSTALL_OPTS@,$SINSTALL_OPTS,;t t
13063 1.1 mrg s,@X_CFLAGS@,$X_CFLAGS,;t t
13064 1.1 mrg s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13065 1.1 mrg s,@X_LIBS@,$X_LIBS,;t t
13066 1.1 mrg s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13067 1.1 mrg s,@IMAKE@,$IMAKE,;t t
13068 1.1 mrg s,@IMAKE_CFLAGS@,$IMAKE_CFLAGS,;t t
13069 1.1 mrg s,@IMAKE_LOADFLAGS@,$IMAKE_LOADFLAGS,;t t
13070 1.1 mrg s,@TERMINFO_DIR@,$TERMINFO_DIR,;t t
13071 1.1 mrg s,@SET_TERMINFO@,$SET_TERMINFO,;t t
13072 1.1.1.3 snj s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13073 1.1 mrg s,@FREETYPE_XFT_CONFIG@,$FREETYPE_XFT_CONFIG,;t t
13074 1.1 mrg s,@FREETYPE_OLD_CONFIG@,$FREETYPE_OLD_CONFIG,;t t
13075 1.1 mrg s,@XRENDERFONT@,$XRENDERFONT,;t t
13076 1.1 mrg s,@HAVE_TYPE_FCCHAR32@,$HAVE_TYPE_FCCHAR32,;t t
13077 1.1 mrg s,@HAVE_TYPE_XFTCHARSPEC@,$HAVE_TYPE_XFTCHARSPEC,;t t
13078 1.1 mrg s,@LUIT@,$LUIT,;t t
13079 1.1 mrg s,@ECHO_LT@,$ECHO_LT,;t t
13080 1.1 mrg s,@ECHO_LD@,$ECHO_LD,;t t
13081 1.1 mrg s,@RULE_CC@,$RULE_CC,;t t
13082 1.1 mrg s,@SHOW_CC@,$SHOW_CC,;t t
13083 1.1 mrg s,@ECHO_CC@,$ECHO_CC,;t t
13084 1.1 mrg s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
13085 1.1 mrg s,@CHARPROC_DEPS@,$CHARPROC_DEPS,;t t
13086 1.1 mrg s,@EXTRAHDRS@,$EXTRAHDRS,;t t
13087 1.1 mrg s,@EXTRASRCS@,$EXTRASRCS,;t t
13088 1.1 mrg s,@EXTRAOBJS@,$EXTRAOBJS,;t t
13089 1.1 mrg s,@MAY_SETUID@,$MAY_SETUID,;t t
13090 1.1 mrg s,@NOT_SETUID@,$NOT_SETUID,;t t
13091 1.1 mrg CEOF
13092 1.1 mrg
13093 1.1 mrg EOF
13094 1.1 mrg
13095 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13096 1.1 mrg # Split the substitutions into bite-sized pieces for seds with
13097 1.1 mrg # small command number limits, like on Digital OSF/1 and HP-UX.
13098 1.1 mrg ac_max_sed_lines=48
13099 1.1 mrg ac_sed_frag=1 # Number of current file.
13100 1.1 mrg ac_beg=1 # First line for current file.
13101 1.1 mrg ac_end=$ac_max_sed_lines # Line after last line for current file.
13102 1.1 mrg ac_more_lines=:
13103 1.1 mrg ac_sed_cmds=
13104 1.1 mrg while $ac_more_lines; do
13105 1.1 mrg if test $ac_beg -gt 1; then
13106 1.1 mrg sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13107 1.1 mrg else
13108 1.1 mrg sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13109 1.1 mrg fi
13110 1.1 mrg if test ! -s $tmp/subs.frag; then
13111 1.1 mrg ac_more_lines=false
13112 1.1 mrg else
13113 1.1 mrg # The purpose of the label and of the branching condition is to
13114 1.1 mrg # speed up the sed processing (if there are no `@' at all, there
13115 1.1 mrg # is no need to browse any of the substitutions).
13116 1.1 mrg # These are the two extra sed commands mentioned above.
13117 1.1 mrg (echo ':t
13118 1.1 mrg /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13119 1.1 mrg if test -z "$ac_sed_cmds"; then
13120 1.1 mrg ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13121 1.1 mrg else
13122 1.1 mrg ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13123 1.1 mrg fi
13124 1.1 mrg ac_sed_frag=`expr $ac_sed_frag + 1`
13125 1.1 mrg ac_beg=$ac_end
13126 1.1 mrg ac_end=`expr $ac_end + $ac_max_sed_lines`
13127 1.1 mrg fi
13128 1.1 mrg done
13129 1.1 mrg if test -z "$ac_sed_cmds"; then
13130 1.1 mrg ac_sed_cmds=cat
13131 1.1 mrg fi
13132 1.1 mrg fi # test -n "$CONFIG_FILES"
13133 1.1 mrg
13134 1.1 mrg EOF
13135 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13136 1.1 mrg for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13137 1.1 mrg # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13138 1.1 mrg case $ac_file in
13139 1.1 mrg - | *:- | *:-:* ) # input from stdin
13140 1.1 mrg cat >$tmp/stdin
13141 1.1 mrg ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13142 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13143 1.1 mrg *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13144 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13145 1.1 mrg * ) ac_file_in=$ac_file.in ;;
13146 1.1 mrg esac
13147 1.1 mrg
13148 1.1 mrg # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13149 1.1 mrg ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13150 1.1 mrg X"$ac_file" : 'X\(//\)[^/]' \| \
13151 1.1 mrg X"$ac_file" : 'X\(//\)$' \| \
13152 1.1 mrg X"$ac_file" : 'X\(/\)' \| \
13153 1.1 mrg . : '\(.\)' 2>/dev/null ||
13154 1.1 mrg echo X"$ac_file" |
13155 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13156 1.1 mrg /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13157 1.1 mrg /^X\(\/\/\)$/{ s//\1/; q; }
13158 1.1 mrg /^X\(\/\).*/{ s//\1/; q; }
13159 1.1 mrg s/.*/./; q'`
13160 1.1 mrg if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13161 1.1 mrg { case "$ac_dir" in
13162 1.1 mrg [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13163 1.1 mrg *) as_incr_dir=.;;
13164 1.1 mrg esac
13165 1.1 mrg as_dummy="$ac_dir"
13166 1.1 mrg for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13167 1.1 mrg case $as_mkdir_dir in
13168 1.1 mrg # Skip DOS drivespec
13169 1.1 mrg ?:) as_incr_dir=$as_mkdir_dir ;;
13170 1.1 mrg *)
13171 1.1 mrg as_incr_dir=$as_incr_dir/$as_mkdir_dir
13172 1.1 mrg test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13173 1.1 mrg ;;
13174 1.1 mrg esac
13175 1.1 mrg done; }
13176 1.1 mrg
13177 1.1 mrg ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13178 1.1 mrg # A "../" for each directory in $ac_dir_suffix.
13179 1.1 mrg ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13180 1.1 mrg else
13181 1.1 mrg ac_dir_suffix= ac_dots=
13182 1.1 mrg fi
13183 1.1 mrg
13184 1.1 mrg case $srcdir in
13185 1.1 mrg .) ac_srcdir=.
13186 1.1 mrg if test -z "$ac_dots"; then
13187 1.1 mrg ac_top_srcdir=.
13188 1.1 mrg else
13189 1.1 mrg ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13190 1.1 mrg fi ;;
13191 1.1 mrg [\\/]* | ?:[\\/]* )
13192 1.1 mrg ac_srcdir=$srcdir$ac_dir_suffix;
13193 1.1 mrg ac_top_srcdir=$srcdir ;;
13194 1.1 mrg *) # Relative path.
13195 1.1 mrg ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13196 1.1 mrg ac_top_srcdir=$ac_dots$srcdir ;;
13197 1.1 mrg esac
13198 1.1 mrg
13199 1.1 mrg case $INSTALL in
13200 1.1 mrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13201 1.1 mrg *) ac_INSTALL=$ac_dots$INSTALL ;;
13202 1.1 mrg esac
13203 1.1 mrg
13204 1.1 mrg if test x"$ac_file" != x-; then
13205 1.1.1.3 snj { echo "$as_me:13205: creating $ac_file" >&5
13206 1.1 mrg echo "$as_me: creating $ac_file" >&6;}
13207 1.1 mrg rm -f "$ac_file"
13208 1.1 mrg fi
13209 1.1 mrg # Let's still pretend it is `configure' which instantiates (i.e., don't
13210 1.1 mrg # use $as_me), people would be surprised to read:
13211 1.1 mrg # /* config.h. Generated automatically by config.status. */
13212 1.1 mrg configure_input="Generated automatically from `echo $ac_file_in |
13213 1.1 mrg sed 's,.*/,,'` by configure."
13214 1.1 mrg
13215 1.1 mrg # First look for the input files in the build tree, otherwise in the
13216 1.1 mrg # src tree.
13217 1.1 mrg ac_file_inputs=`IFS=:
13218 1.1 mrg for f in $ac_file_in; do
13219 1.1 mrg case $f in
13220 1.1 mrg -) echo $tmp/stdin ;;
13221 1.1 mrg [\\/$]*)
13222 1.1 mrg # Absolute (can't be DOS-style, as IFS=:)
13223 1.1.1.3 snj test -f "$f" || { { echo "$as_me:13223: error: cannot find input file: $f" >&5
13224 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13225 1.1 mrg { (exit 1); exit 1; }; }
13226 1.1 mrg echo $f;;
13227 1.1 mrg *) # Relative
13228 1.1 mrg if test -f "$f"; then
13229 1.1 mrg # Build tree
13230 1.1 mrg echo $f
13231 1.1 mrg elif test -f "$srcdir/$f"; then
13232 1.1 mrg # Source tree
13233 1.1 mrg echo $srcdir/$f
13234 1.1 mrg else
13235 1.1 mrg # /dev/null tree
13236 1.1.1.3 snj { { echo "$as_me:13236: error: cannot find input file: $f" >&5
13237 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13238 1.1 mrg { (exit 1); exit 1; }; }
13239 1.1 mrg fi;;
13240 1.1 mrg esac
13241 1.1 mrg done` || { (exit 1); exit 1; }
13242 1.1 mrg EOF
13243 1.1 mrg cat >>$CONFIG_STATUS <<EOF
13244 1.1 mrg sed "$ac_vpsub
13245 1.1 mrg $extrasub
13246 1.1 mrg EOF
13247 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13248 1.1 mrg :t
13249 1.1 mrg /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13250 1.1 mrg s,@configure_input@,$configure_input,;t t
13251 1.1 mrg s,@srcdir@,$ac_srcdir,;t t
13252 1.1 mrg s,@top_srcdir@,$ac_top_srcdir,;t t
13253 1.1 mrg s,@INSTALL@,$ac_INSTALL,;t t
13254 1.1 mrg " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13255 1.1 mrg rm -f $tmp/stdin
13256 1.1 mrg if test x"$ac_file" != x-; then
13257 1.1 mrg mv $tmp/out $ac_file
13258 1.1 mrg else
13259 1.1 mrg cat $tmp/out
13260 1.1 mrg rm -f $tmp/out
13261 1.1 mrg fi
13262 1.1 mrg
13263 1.1 mrg done
13264 1.1 mrg EOF
13265 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13266 1.1 mrg
13267 1.1 mrg #
13268 1.1 mrg # CONFIG_HEADER section.
13269 1.1 mrg #
13270 1.1 mrg
13271 1.1 mrg # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13272 1.1 mrg # NAME is the cpp macro being defined and VALUE is the value it is being given.
13273 1.1 mrg #
13274 1.1 mrg # ac_d sets the value in "#define NAME VALUE" lines.
13275 1.1 mrg ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13276 1.1 mrg ac_dB='[ ].*$,\1#\2'
13277 1.1 mrg ac_dC=' '
13278 1.1 mrg ac_dD=',;t'
13279 1.1 mrg # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13280 1.1 mrg ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13281 1.1 mrg ac_iB='\([ ]\),\1#\2define\3'
13282 1.1 mrg ac_iC=' '
13283 1.1 mrg ac_iD='\4,;t'
13284 1.1 mrg # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13285 1.1 mrg ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13286 1.1 mrg ac_uB='$,\1#\2define\3'
13287 1.1 mrg ac_uC=' '
13288 1.1 mrg ac_uD=',;t'
13289 1.1 mrg
13290 1.1 mrg for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13291 1.1 mrg # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13292 1.1 mrg case $ac_file in
13293 1.1 mrg - | *:- | *:-:* ) # input from stdin
13294 1.1 mrg cat >$tmp/stdin
13295 1.1 mrg ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13296 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13297 1.1 mrg *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13298 1.1 mrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13299 1.1 mrg * ) ac_file_in=$ac_file.in ;;
13300 1.1 mrg esac
13301 1.1 mrg
13302 1.1.1.3 snj test x"$ac_file" != x- && { echo "$as_me:13302: creating $ac_file" >&5
13303 1.1 mrg echo "$as_me: creating $ac_file" >&6;}
13304 1.1 mrg
13305 1.1 mrg # First look for the input files in the build tree, otherwise in the
13306 1.1 mrg # src tree.
13307 1.1 mrg ac_file_inputs=`IFS=:
13308 1.1 mrg for f in $ac_file_in; do
13309 1.1 mrg case $f in
13310 1.1 mrg -) echo $tmp/stdin ;;
13311 1.1 mrg [\\/$]*)
13312 1.1 mrg # Absolute (can't be DOS-style, as IFS=:)
13313 1.1.1.3 snj test -f "$f" || { { echo "$as_me:13313: error: cannot find input file: $f" >&5
13314 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13315 1.1 mrg { (exit 1); exit 1; }; }
13316 1.1 mrg echo $f;;
13317 1.1 mrg *) # Relative
13318 1.1 mrg if test -f "$f"; then
13319 1.1 mrg # Build tree
13320 1.1 mrg echo $f
13321 1.1 mrg elif test -f "$srcdir/$f"; then
13322 1.1 mrg # Source tree
13323 1.1 mrg echo $srcdir/$f
13324 1.1 mrg else
13325 1.1 mrg # /dev/null tree
13326 1.1.1.3 snj { { echo "$as_me:13326: error: cannot find input file: $f" >&5
13327 1.1 mrg echo "$as_me: error: cannot find input file: $f" >&2;}
13328 1.1 mrg { (exit 1); exit 1; }; }
13329 1.1 mrg fi;;
13330 1.1 mrg esac
13331 1.1 mrg done` || { (exit 1); exit 1; }
13332 1.1 mrg # Remove the trailing spaces.
13333 1.1 mrg sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13334 1.1 mrg
13335 1.1 mrg EOF
13336 1.1 mrg
13337 1.1 mrg # Transform confdefs.h into two sed scripts, `conftest.defines' and
13338 1.1 mrg # `conftest.undefs', that substitutes the proper values into
13339 1.1 mrg # config.h.in to produce config.h. The first handles `#define'
13340 1.1 mrg # templates, and the second `#undef' templates.
13341 1.1 mrg # And first: Protect against being on the right side of a sed subst in
13342 1.1 mrg # config.status. Protect against being in an unquoted here document
13343 1.1 mrg # in config.status.
13344 1.1 mrg rm -f conftest.defines conftest.undefs
13345 1.1 mrg # Using a here document instead of a string reduces the quoting nightmare.
13346 1.1 mrg # Putting comments in sed scripts is not portable.
13347 1.1 mrg #
13348 1.1 mrg # `end' is used to avoid that the second main sed command (meant for
13349 1.1 mrg # 0-ary CPP macros) applies to n-ary macro definitions.
13350 1.1 mrg # See the Autoconf documentation for `clear'.
13351 1.1 mrg cat >confdef2sed.sed <<\EOF
13352 1.1 mrg s/[\\&,]/\\&/g
13353 1.1 mrg s,[\\$`],\\&,g
13354 1.1 mrg t clear
13355 1.1 mrg : clear
13356 1.1 mrg s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13357 1.1 mrg t end
13358 1.1 mrg s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13359 1.1 mrg : end
13360 1.1 mrg EOF
13361 1.1 mrg # If some macros were called several times there might be several times
13362 1.1 mrg # the same #defines, which is useless. Nevertheless, we may not want to
13363 1.1 mrg # sort them, since we want the *last* AC-DEFINE to be honored.
13364 1.1 mrg uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13365 1.1 mrg sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13366 1.1 mrg sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
13367 1.1 mrg rm -f confdef2sed.sed
13368 1.1 mrg
13369 1.1 mrg # This sed command replaces #undef with comments. This is necessary, for
13370 1.1 mrg # example, in the case of _POSIX_SOURCE, which is predefined and required
13371 1.1 mrg # on some systems where configure will not decide to define it.
13372 1.1 mrg cat >>conftest.undefs <<\EOF
13373 1.1 mrg s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13374 1.1 mrg EOF
13375 1.1 mrg
13376 1.1 mrg # Break up conftest.defines because some shells have a limit on the size
13377 1.1 mrg # of here documents, and old seds have small limits too (100 cmds).
13378 1.1 mrg echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13379 1.1 mrg echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13380 1.1 mrg echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13381 1.1 mrg echo ' :' >>$CONFIG_STATUS
13382 1.1 mrg rm -f conftest.tail
13383 1.1 mrg while grep . conftest.defines >/dev/null
13384 1.1 mrg do
13385 1.1 mrg # Write a limited-size here document to $tmp/defines.sed.
13386 1.1 mrg echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13387 1.1 mrg # Speed up: don't consider the non `#define' lines.
13388 1.1 mrg echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13389 1.1 mrg # Work around the forget-to-reset-the-flag bug.
13390 1.1 mrg echo 't clr' >>$CONFIG_STATUS
13391 1.1 mrg echo ': clr' >>$CONFIG_STATUS
13392 1.1 mrg sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13393 1.1 mrg echo 'CEOF
13394 1.1 mrg sed -f $tmp/defines.sed $tmp/in >$tmp/out
13395 1.1 mrg rm -f $tmp/in
13396 1.1 mrg mv $tmp/out $tmp/in
13397 1.1 mrg ' >>$CONFIG_STATUS
13398 1.1 mrg sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13399 1.1 mrg rm -f conftest.defines
13400 1.1 mrg mv conftest.tail conftest.defines
13401 1.1 mrg done
13402 1.1 mrg rm -f conftest.defines
13403 1.1 mrg echo ' fi # egrep' >>$CONFIG_STATUS
13404 1.1 mrg echo >>$CONFIG_STATUS
13405 1.1 mrg
13406 1.1 mrg # Break up conftest.undefs because some shells have a limit on the size
13407 1.1 mrg # of here documents, and old seds have small limits too (100 cmds).
13408 1.1 mrg echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13409 1.1 mrg rm -f conftest.tail
13410 1.1 mrg while grep . conftest.undefs >/dev/null
13411 1.1 mrg do
13412 1.1 mrg # Write a limited-size here document to $tmp/undefs.sed.
13413 1.1 mrg echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13414 1.1 mrg # Speed up: don't consider the non `#undef'
13415 1.1 mrg echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13416 1.1 mrg # Work around the forget-to-reset-the-flag bug.
13417 1.1 mrg echo 't clr' >>$CONFIG_STATUS
13418 1.1 mrg echo ': clr' >>$CONFIG_STATUS
13419 1.1 mrg sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13420 1.1 mrg echo 'CEOF
13421 1.1 mrg sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13422 1.1 mrg rm -f $tmp/in
13423 1.1 mrg mv $tmp/out $tmp/in
13424 1.1 mrg ' >>$CONFIG_STATUS
13425 1.1 mrg sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13426 1.1 mrg rm -f conftest.undefs
13427 1.1 mrg mv conftest.tail conftest.undefs
13428 1.1 mrg done
13429 1.1 mrg rm -f conftest.undefs
13430 1.1 mrg
13431 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13432 1.1 mrg # Let's still pretend it is `configure' which instantiates (i.e., don't
13433 1.1 mrg # use $as_me), people would be surprised to read:
13434 1.1 mrg # /* config.h. Generated automatically by config.status. */
13435 1.1 mrg if test x"$ac_file" = x-; then
13436 1.1 mrg echo "/* Generated automatically by configure. */" >$tmp/config.h
13437 1.1 mrg else
13438 1.1 mrg echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13439 1.1 mrg fi
13440 1.1 mrg cat $tmp/in >>$tmp/config.h
13441 1.1 mrg rm -f $tmp/in
13442 1.1 mrg if test x"$ac_file" != x-; then
13443 1.1 mrg if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13444 1.1.1.3 snj { echo "$as_me:13444: $ac_file is unchanged" >&5
13445 1.1 mrg echo "$as_me: $ac_file is unchanged" >&6;}
13446 1.1 mrg else
13447 1.1 mrg ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13448 1.1 mrg X"$ac_file" : 'X\(//\)[^/]' \| \
13449 1.1 mrg X"$ac_file" : 'X\(//\)$' \| \
13450 1.1 mrg X"$ac_file" : 'X\(/\)' \| \
13451 1.1 mrg . : '\(.\)' 2>/dev/null ||
13452 1.1 mrg echo X"$ac_file" |
13453 1.1 mrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13454 1.1 mrg /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13455 1.1 mrg /^X\(\/\/\)$/{ s//\1/; q; }
13456 1.1 mrg /^X\(\/\).*/{ s//\1/; q; }
13457 1.1 mrg s/.*/./; q'`
13458 1.1 mrg if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13459 1.1 mrg { case "$ac_dir" in
13460 1.1 mrg [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13461 1.1 mrg *) as_incr_dir=.;;
13462 1.1 mrg esac
13463 1.1 mrg as_dummy="$ac_dir"
13464 1.1 mrg for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13465 1.1 mrg case $as_mkdir_dir in
13466 1.1 mrg # Skip DOS drivespec
13467 1.1 mrg ?:) as_incr_dir=$as_mkdir_dir ;;
13468 1.1 mrg *)
13469 1.1 mrg as_incr_dir=$as_incr_dir/$as_mkdir_dir
13470 1.1 mrg test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13471 1.1 mrg ;;
13472 1.1 mrg esac
13473 1.1 mrg done; }
13474 1.1 mrg
13475 1.1 mrg fi
13476 1.1 mrg rm -f $ac_file
13477 1.1 mrg mv $tmp/config.h $ac_file
13478 1.1 mrg fi
13479 1.1 mrg else
13480 1.1 mrg cat $tmp/config.h
13481 1.1 mrg rm -f $tmp/config.h
13482 1.1 mrg fi
13483 1.1 mrg done
13484 1.1 mrg EOF
13485 1.1 mrg
13486 1.1 mrg cat >>$CONFIG_STATUS <<\EOF
13487 1.1 mrg
13488 1.1 mrg { (exit 0); exit 0; }
13489 1.1 mrg EOF
13490 1.1 mrg chmod +x $CONFIG_STATUS
13491 1.1 mrg ac_clean_files=$ac_clean_files_save
13492 1.1 mrg
13493 1.1 mrg # configure is writing to config.log, and then calls config.status.
13494 1.1 mrg # config.status does its own redirection, appending to config.log.
13495 1.1 mrg # Unfortunately, on DOS this fails, as config.log is still kept open
13496 1.1 mrg # by configure, so config.status won't be able to write to it; its
13497 1.1 mrg # output is simply discarded. So we exec the FD to /dev/null,
13498 1.1 mrg # effectively closing config.log, so it can be properly (re)opened and
13499 1.1 mrg # appended to by config.status. When coming back to configure, we
13500 1.1 mrg # need to make the FD available again.
13501 1.1 mrg if test "$no_create" != yes; then
13502 1.1 mrg ac_cs_success=:
13503 1.1 mrg exec 5>/dev/null
13504 1.1 mrg $SHELL $CONFIG_STATUS || ac_cs_success=false
13505 1.1 mrg exec 5>>config.log
13506 1.1 mrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13507 1.1 mrg # would make configure fail if this is the last instruction.
13508 1.1 mrg $ac_cs_success || { (exit 1); exit 1; }
13509 1.1 mrg fi
13510 1.1 mrg
13511