configure revision 1.1.1.3 1 1.1 christos #! /bin/sh
2 1.1.1.3 christos # From configure.in Revision: 1.10 .
3 1.1 christos # Guess values for system-dependent variables and create Makefiles.
4 1.1.1.3 christos # Generated by Autoconf 2.52.20101002.
5 1.1 christos #
6 1.1 christos # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 1.1 christos # Free Software Foundation, Inc.
8 1.1 christos # This configure script is free software; the Free Software Foundation
9 1.1 christos # gives unlimited permission to copy, distribute and modify it.
10 1.1 christos
11 1.1 christos # Avoid depending upon Character Ranges.
12 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 1.1 christos as_cr_digits='0123456789'
16 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
17 1.1 christos
18 1.1 christos # Sed expression to map a string onto a valid variable name.
19 1.1 christos as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 1.1 christos
21 1.1 christos # Sed expression to map a string onto a valid CPP name.
22 1.1 christos as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 1.1 christos
24 1.1 christos # Be Bourne compatible
25 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 1.1 christos emulate sh
27 1.1 christos NULLCMD=:
28 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 1.1 christos set -o posix
30 1.1 christos fi
31 1.1 christos
32 1.1 christos # Name of the executable.
33 1.1 christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 1.1 christos
35 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then
36 1.1 christos as_expr=expr
37 1.1 christos else
38 1.1 christos as_expr=false
39 1.1 christos fi
40 1.1 christos
41 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
42 1.1 christos echo >conf$$.file
43 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
44 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic
45 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 1.1 christos if test -f conf$$.exe; then
47 1.1 christos # Don't use ln at all; we don't have any links
48 1.1 christos as_ln_s='cp -p'
49 1.1 christos else
50 1.1 christos as_ln_s='ln -s'
51 1.1 christos fi
52 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
53 1.1 christos as_ln_s=ln
54 1.1 christos else
55 1.1 christos as_ln_s='cp -p'
56 1.1 christos fi
57 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
58 1.1 christos
59 1.1 christos as_executable_p="test -f"
60 1.1 christos
61 1.1 christos # Support unset when possible.
62 1.1 christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 1.1 christos as_unset=unset
64 1.1 christos else
65 1.1 christos as_unset=false
66 1.1 christos fi
67 1.1 christos
68 1.1 christos # NLS nuisances.
69 1.1 christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 1.1 christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 1.1 christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 1.1 christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 1.1 christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 1.1 christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 1.1 christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 1.1 christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 1.1 christos
78 1.1 christos # IFS
79 1.1 christos # We need space, tab and new line, in precisely that order.
80 1.1 christos as_nl='
81 1.1 christos '
82 1.1 christos IFS=" $as_nl"
83 1.1 christos
84 1.1 christos # CDPATH.
85 1.1 christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 1.1 christos
87 1.1 christos # Name of the host.
88 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 1.1 christos # so uname gets run too.
90 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91 1.1 christos
92 1.1 christos exec 6>&1
93 1.1 christos
94 1.1 christos #
95 1.1 christos # Initializations.
96 1.1 christos #
97 1.1 christos ac_default_prefix=/usr/local
98 1.1 christos cross_compiling=no
99 1.1 christos subdirs=
100 1.1 christos MFLAGS= MAKEFLAGS=
101 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh}
102 1.1 christos
103 1.1 christos # Maximum number of lines to put in a shell here document.
104 1.1 christos # This variable seems obsolete. It should probably be removed, and
105 1.1 christos # only ac_max_sed_lines should be used.
106 1.1 christos : ${ac_max_here_lines=38}
107 1.1 christos
108 1.1 christos ac_unique_file="main.c"
109 1.1 christos
110 1.1 christos # Initialize some variables set by options.
111 1.1 christos ac_init_help=
112 1.1 christos ac_init_version=false
113 1.1 christos # The variables have the same names as the options, with
114 1.1 christos # dashes changed to underlines.
115 1.1 christos cache_file=/dev/null
116 1.1 christos exec_prefix=NONE
117 1.1 christos no_create=
118 1.1 christos no_recursion=
119 1.1 christos prefix=NONE
120 1.1 christos program_prefix=NONE
121 1.1 christos program_suffix=NONE
122 1.1 christos program_transform_name=s,x,x,
123 1.1 christos silent=
124 1.1 christos site=
125 1.1 christos srcdir=
126 1.1 christos verbose=
127 1.1 christos x_includes=NONE
128 1.1 christos x_libraries=NONE
129 1.1 christos
130 1.1 christos # Installation directory options.
131 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo"
132 1.1 christos # and all the variables that are supposed to be based on exec_prefix
133 1.1 christos # by default will actually change.
134 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them.
135 1.1 christos bindir='${exec_prefix}/bin'
136 1.1 christos sbindir='${exec_prefix}/sbin'
137 1.1 christos libexecdir='${exec_prefix}/libexec'
138 1.1 christos datadir='${prefix}/share'
139 1.1 christos sysconfdir='${prefix}/etc'
140 1.1 christos sharedstatedir='${prefix}/com'
141 1.1 christos localstatedir='${prefix}/var'
142 1.1 christos libdir='${exec_prefix}/lib'
143 1.1 christos includedir='${prefix}/include'
144 1.1 christos oldincludedir='/usr/include'
145 1.1 christos infodir='${prefix}/info'
146 1.1 christos mandir='${prefix}/man'
147 1.1 christos
148 1.1 christos # Identity of this package.
149 1.1 christos PACKAGE_NAME=
150 1.1 christos PACKAGE_TARNAME=
151 1.1 christos PACKAGE_VERSION=
152 1.1 christos PACKAGE_STRING=
153 1.1 christos PACKAGE_BUGREPORT=
154 1.1 christos
155 1.1 christos ac_prev=
156 1.1 christos for ac_option
157 1.1 christos do
158 1.1 christos # If the previous option needs an argument, assign it.
159 1.1 christos if test -n "$ac_prev"; then
160 1.1 christos eval "$ac_prev=\$ac_option"
161 1.1 christos ac_prev=
162 1.1 christos continue
163 1.1 christos fi
164 1.1 christos
165 1.1 christos ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 1.1 christos
167 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos.
168 1.1 christos
169 1.1 christos case $ac_option in
170 1.1 christos
171 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 1.1 christos ac_prev=bindir ;;
173 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
174 1.1 christos bindir=$ac_optarg ;;
175 1.1 christos
176 1.1 christos -build | --build | --buil | --bui | --bu)
177 1.1 christos ac_prev=build_alias ;;
178 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 1.1 christos build_alias=$ac_optarg ;;
180 1.1 christos
181 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \
182 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 1.1 christos ac_prev=cache_file ;;
184 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 1.1 christos cache_file=$ac_optarg ;;
187 1.1 christos
188 1.1 christos --config-cache | -C)
189 1.1 christos cache_file=config.cache ;;
190 1.1 christos
191 1.1 christos -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192 1.1 christos ac_prev=datadir ;;
193 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194 1.1 christos | --da=*)
195 1.1 christos datadir=$ac_optarg ;;
196 1.1 christos
197 1.1 christos -disable-* | --disable-*)
198 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 1.1 christos # Reject names that are not valid shell variable names.
200 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 1.1 christos { (exit 1); exit 1; }; }
203 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 1.1 christos eval "enable_$ac_feature=no" ;;
205 1.1 christos
206 1.1 christos -enable-* | --enable-*)
207 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 1.1 christos # Reject names that are not valid shell variable names.
209 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 1.1 christos { (exit 1); exit 1; }; }
212 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'`
213 1.1 christos case $ac_option in
214 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
215 1.1 christos *) ac_optarg=yes ;;
216 1.1 christos esac
217 1.1 christos eval "enable_$ac_feature='$ac_optarg'" ;;
218 1.1 christos
219 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 1.1 christos | --exec | --exe | --ex)
222 1.1 christos ac_prev=exec_prefix ;;
223 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 1.1 christos | --exec=* | --exe=* | --ex=*)
226 1.1 christos exec_prefix=$ac_optarg ;;
227 1.1 christos
228 1.1 christos -gas | --gas | --ga | --g)
229 1.1 christos # Obsolete; use --with-gas.
230 1.1 christos with_gas=yes ;;
231 1.1 christos
232 1.1 christos -help | --help | --hel | --he | -h)
233 1.1 christos ac_init_help=long ;;
234 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 1.1 christos ac_init_help=recursive ;;
236 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 1.1 christos ac_init_help=short ;;
238 1.1 christos
239 1.1 christos -host | --host | --hos | --ho)
240 1.1 christos ac_prev=host_alias ;;
241 1.1 christos -host=* | --host=* | --hos=* | --ho=*)
242 1.1 christos host_alias=$ac_optarg ;;
243 1.1 christos
244 1.1 christos -includedir | --includedir | --includedi | --included | --include \
245 1.1 christos | --includ | --inclu | --incl | --inc)
246 1.1 christos ac_prev=includedir ;;
247 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*)
249 1.1 christos includedir=$ac_optarg ;;
250 1.1 christos
251 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf)
252 1.1 christos ac_prev=infodir ;;
253 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 1.1 christos infodir=$ac_optarg ;;
255 1.1 christos
256 1.1 christos -libdir | --libdir | --libdi | --libd)
257 1.1 christos ac_prev=libdir ;;
258 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 1.1 christos libdir=$ac_optarg ;;
260 1.1 christos
261 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 1.1 christos | --libexe | --libex | --libe)
263 1.1 christos ac_prev=libexecdir ;;
264 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 1.1 christos | --libexe=* | --libex=* | --libe=*)
266 1.1 christos libexecdir=$ac_optarg ;;
267 1.1 christos
268 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \
269 1.1 christos | --localstate | --localstat | --localsta | --localst \
270 1.1 christos | --locals | --local | --loca | --loc | --lo)
271 1.1 christos ac_prev=localstatedir ;;
272 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 1.1 christos | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 1.1 christos localstatedir=$ac_optarg ;;
276 1.1 christos
277 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 1.1 christos ac_prev=mandir ;;
279 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 1.1 christos mandir=$ac_optarg ;;
281 1.1 christos
282 1.1 christos -nfp | --nfp | --nf)
283 1.1 christos # Obsolete; use --without-fp.
284 1.1 christos with_fp=no ;;
285 1.1 christos
286 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 1.1 christos | --no-cr | --no-c)
288 1.1 christos no_create=yes ;;
289 1.1 christos
290 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 1.1 christos no_recursion=yes ;;
293 1.1 christos
294 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 1.1 christos | --oldin | --oldi | --old | --ol | --o)
297 1.1 christos ac_prev=oldincludedir ;;
298 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 1.1 christos oldincludedir=$ac_optarg ;;
302 1.1 christos
303 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 1.1 christos ac_prev=prefix ;;
305 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 1.1 christos prefix=$ac_optarg ;;
307 1.1 christos
308 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 1.1 christos | --program-pre | --program-pr | --program-p)
310 1.1 christos ac_prev=program_prefix ;;
311 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 1.1 christos program_prefix=$ac_optarg ;;
314 1.1 christos
315 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 1.1 christos | --program-suf | --program-su | --program-s)
317 1.1 christos ac_prev=program_suffix ;;
318 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 1.1 christos program_suffix=$ac_optarg ;;
321 1.1 christos
322 1.1 christos -program-transform-name | --program-transform-name \
323 1.1 christos | --program-transform-nam | --program-transform-na \
324 1.1 christos | --program-transform-n | --program-transform- \
325 1.1 christos | --program-transform | --program-transfor \
326 1.1 christos | --program-transfo | --program-transf \
327 1.1 christos | --program-trans | --program-tran \
328 1.1 christos | --progr-tra | --program-tr | --program-t)
329 1.1 christos ac_prev=program_transform_name ;;
330 1.1 christos -program-transform-name=* | --program-transform-name=* \
331 1.1 christos | --program-transform-nam=* | --program-transform-na=* \
332 1.1 christos | --program-transform-n=* | --program-transform-=* \
333 1.1 christos | --program-transform=* | --program-transfor=* \
334 1.1 christos | --program-transfo=* | --program-transf=* \
335 1.1 christos | --program-trans=* | --program-tran=* \
336 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*)
337 1.1 christos program_transform_name=$ac_optarg ;;
338 1.1 christos
339 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 1.1 christos | -silent | --silent | --silen | --sile | --sil)
341 1.1 christos silent=yes ;;
342 1.1 christos
343 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 1.1 christos ac_prev=sbindir ;;
345 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 1.1 christos | --sbi=* | --sb=*)
347 1.1 christos sbindir=$ac_optarg ;;
348 1.1 christos
349 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \
352 1.1 christos | --sha | --sh)
353 1.1 christos ac_prev=sharedstatedir ;;
354 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 1.1 christos | --sha=* | --sh=*)
358 1.1 christos sharedstatedir=$ac_optarg ;;
359 1.1 christos
360 1.1 christos -site | --site | --sit)
361 1.1 christos ac_prev=site ;;
362 1.1 christos -site=* | --site=* | --sit=*)
363 1.1 christos site=$ac_optarg ;;
364 1.1 christos
365 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 1.1 christos ac_prev=srcdir ;;
367 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 1.1 christos srcdir=$ac_optarg ;;
369 1.1 christos
370 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy)
372 1.1 christos ac_prev=sysconfdir ;;
373 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 1.1 christos sysconfdir=$ac_optarg ;;
376 1.1 christos
377 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t)
378 1.1 christos ac_prev=target_alias ;;
379 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 1.1 christos target_alias=$ac_optarg ;;
381 1.1 christos
382 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 1.1 christos verbose=yes ;;
384 1.1 christos
385 1.1 christos -version | --version | --versio | --versi | --vers | -V)
386 1.1 christos ac_init_version=: ;;
387 1.1 christos
388 1.1 christos -with-* | --with-*)
389 1.1 christos ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 1.1 christos # Reject names that are not valid shell variable names.
391 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
393 1.1 christos { (exit 1); exit 1; }; }
394 1.1 christos ac_package=`echo $ac_package| sed 's/-/_/g'`
395 1.1 christos case $ac_option in
396 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
397 1.1 christos *) ac_optarg=yes ;;
398 1.1 christos esac
399 1.1 christos eval "with_$ac_package='$ac_optarg'" ;;
400 1.1 christos
401 1.1 christos -without-* | --without-*)
402 1.1 christos ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 1.1 christos # Reject names that are not valid shell variable names.
404 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2
406 1.1 christos { (exit 1); exit 1; }; }
407 1.1 christos ac_package=`echo $ac_package | sed 's/-/_/g'`
408 1.1 christos eval "with_$ac_package=no" ;;
409 1.1 christos
410 1.1 christos --x)
411 1.1 christos # Obsolete; use --with-x.
412 1.1 christos with_x=yes ;;
413 1.1 christos
414 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 1.1 christos | --x-incl | --x-inc | --x-in | --x-i)
416 1.1 christos ac_prev=x_includes ;;
417 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 1.1 christos x_includes=$ac_optarg ;;
420 1.1 christos
421 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 1.1 christos ac_prev=x_libraries ;;
424 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 1.1 christos x_libraries=$ac_optarg ;;
427 1.1 christos
428 1.1 christos -*) { echo "$as_me: error: unrecognized option: $ac_option
429 1.1 christos Try \`$0 --help' for more information." >&2
430 1.1 christos { (exit 1); exit 1; }; }
431 1.1 christos ;;
432 1.1 christos
433 1.1 christos *=*)
434 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 1.1 christos # Reject names that are not valid shell variable names.
436 1.1 christos expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 1.1 christos { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 1.1 christos { (exit 1); exit 1; }; }
439 1.1 christos ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 1.1 christos eval "$ac_envvar='$ac_optarg'"
441 1.1 christos export $ac_envvar ;;
442 1.1 christos
443 1.1 christos *)
444 1.1 christos # FIXME: should be removed in autoconf 3.0.
445 1.1 christos echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 1.1 christos echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
449 1.1 christos ;;
450 1.1 christos
451 1.1 christos esac
452 1.1 christos done
453 1.1 christos
454 1.1 christos if test -n "$ac_prev"; then
455 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 1.1 christos { echo "$as_me: error: missing argument to $ac_option" >&2
457 1.1 christos { (exit 1); exit 1; }; }
458 1.1 christos fi
459 1.1 christos
460 1.1 christos # Be sure to have absolute paths.
461 1.1 christos for ac_var in exec_prefix prefix
462 1.1 christos do
463 1.1 christos eval ac_val=$`echo $ac_var`
464 1.1 christos case $ac_val in
465 1.1 christos [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 1.1 christos *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 1.1 christos { (exit 1); exit 1; }; };;
468 1.1 christos esac
469 1.1 christos done
470 1.1 christos
471 1.1 christos # Be sure to have absolute paths.
472 1.1 christos for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 1.1 christos localstatedir libdir includedir oldincludedir infodir mandir
474 1.1 christos do
475 1.1 christos eval ac_val=$`echo $ac_var`
476 1.1 christos case $ac_val in
477 1.1 christos [\\/$]* | ?:[\\/]* ) ;;
478 1.1 christos *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 1.1 christos { (exit 1); exit 1; }; };;
480 1.1 christos esac
481 1.1 christos done
482 1.1 christos
483 1.1 christos # There might be people who depend on the old broken behavior: `$host'
484 1.1 christos # used to hold the argument of --host etc.
485 1.1 christos build=$build_alias
486 1.1 christos host=$host_alias
487 1.1 christos target=$target_alias
488 1.1 christos
489 1.1 christos # FIXME: should be removed in autoconf 3.0.
490 1.1 christos if test "x$host_alias" != x; then
491 1.1 christos if test "x$build_alias" = x; then
492 1.1 christos cross_compiling=maybe
493 1.1 christos echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2
495 1.1 christos elif test "x$build_alias" != "x$host_alias"; then
496 1.1 christos cross_compiling=yes
497 1.1 christos fi
498 1.1 christos fi
499 1.1 christos
500 1.1 christos ac_tool_prefix=
501 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 1.1 christos
503 1.1 christos test "$silent" = yes && exec 6>/dev/null
504 1.1 christos
505 1.1 christos # Find the source files, if location was not specified.
506 1.1 christos if test -z "$srcdir"; then
507 1.1 christos ac_srcdir_defaulted=yes
508 1.1 christos # Try the directory containing this script, then its parent.
509 1.1 christos ac_prog=$0
510 1.1 christos ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 1.1 christos test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 1.1 christos srcdir=$ac_confdir
513 1.1 christos if test ! -r $srcdir/$ac_unique_file; then
514 1.1 christos srcdir=..
515 1.1 christos fi
516 1.1 christos else
517 1.1 christos ac_srcdir_defaulted=no
518 1.1 christos fi
519 1.1 christos if test ! -r $srcdir/$ac_unique_file; then
520 1.1 christos if test "$ac_srcdir_defaulted" = yes; then
521 1.1 christos { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 1.1 christos { (exit 1); exit 1; }; }
523 1.1 christos else
524 1.1 christos { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 1.1 christos { (exit 1); exit 1; }; }
526 1.1 christos fi
527 1.1 christos fi
528 1.1 christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 1.1 christos ac_env_build_alias_set=${build_alias+set}
530 1.1 christos ac_env_build_alias_value=$build_alias
531 1.1 christos ac_cv_env_build_alias_set=${build_alias+set}
532 1.1 christos ac_cv_env_build_alias_value=$build_alias
533 1.1 christos ac_env_host_alias_set=${host_alias+set}
534 1.1 christos ac_env_host_alias_value=$host_alias
535 1.1 christos ac_cv_env_host_alias_set=${host_alias+set}
536 1.1 christos ac_cv_env_host_alias_value=$host_alias
537 1.1 christos ac_env_target_alias_set=${target_alias+set}
538 1.1 christos ac_env_target_alias_value=$target_alias
539 1.1 christos ac_cv_env_target_alias_set=${target_alias+set}
540 1.1 christos ac_cv_env_target_alias_value=$target_alias
541 1.1 christos ac_env_CC_set=${CC+set}
542 1.1 christos ac_env_CC_value=$CC
543 1.1 christos ac_cv_env_CC_set=${CC+set}
544 1.1 christos ac_cv_env_CC_value=$CC
545 1.1 christos ac_env_CFLAGS_set=${CFLAGS+set}
546 1.1 christos ac_env_CFLAGS_value=$CFLAGS
547 1.1 christos ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 1.1 christos ac_cv_env_CFLAGS_value=$CFLAGS
549 1.1 christos ac_env_LDFLAGS_set=${LDFLAGS+set}
550 1.1 christos ac_env_LDFLAGS_value=$LDFLAGS
551 1.1 christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 1.1 christos ac_cv_env_LDFLAGS_value=$LDFLAGS
553 1.1 christos ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 1.1 christos ac_env_CPPFLAGS_value=$CPPFLAGS
555 1.1 christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 1.1 christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 1.1 christos ac_env_CPP_set=${CPP+set}
558 1.1 christos ac_env_CPP_value=$CPP
559 1.1 christos ac_cv_env_CPP_set=${CPP+set}
560 1.1 christos ac_cv_env_CPP_value=$CPP
561 1.1 christos
562 1.1 christos #
563 1.1 christos # Report the --help message.
564 1.1 christos #
565 1.1 christos if test "$ac_init_help" = "long"; then
566 1.1 christos # Omit some internal or obsolete options to make the list less imposing.
567 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh.
568 1.1 christos cat <<EOF
569 1.1 christos \`configure' configures this package to adapt to many kinds of systems.
570 1.1 christos
571 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]...
572 1.1 christos
573 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
574 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables.
575 1.1 christos
576 1.1 christos Defaults for the options are specified in brackets.
577 1.1 christos
578 1.1 christos Configuration:
579 1.1 christos -h, --help display this help and exit
580 1.1 christos --help=short display options specific to this package
581 1.1 christos --help=recursive display the short help of all the included packages
582 1.1 christos -V, --version display version information and exit
583 1.1 christos -q, --quiet, --silent do not print \`checking...' messages
584 1.1 christos --cache-file=FILE cache test results in FILE [disabled]
585 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache'
586 1.1 christos -n, --no-create do not create output files
587 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..']
588 1.1 christos
589 1.1 christos EOF
590 1.1 christos
591 1.1 christos cat <<EOF
592 1.1 christos Installation directories:
593 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX
594 1.1 christos [$ac_default_prefix]
595 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
596 1.1 christos [PREFIX]
597 1.1 christos
598 1.1 christos By default, \`make install' will install all the files in
599 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
600 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601 1.1 christos for instance \`--prefix=\$HOME'.
602 1.1 christos
603 1.1 christos For better control, use the options below.
604 1.1 christos
605 1.1 christos Fine tuning of the installation directories:
606 1.1 christos --bindir=DIR user executables [EPREFIX/bin]
607 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
608 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec]
609 1.1 christos --datadir=DIR read-only architecture-independent data [PREFIX/share]
610 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
611 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
612 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
613 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib]
614 1.1 christos --includedir=DIR C header files [PREFIX/include]
615 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
616 1.1 christos --infodir=DIR info documentation [PREFIX/info]
617 1.1 christos --mandir=DIR man documentation [PREFIX/man]
618 1.1 christos EOF
619 1.1 christos
620 1.1 christos cat <<\EOF
621 1.1 christos
622 1.1 christos Program names:
623 1.1 christos --program-prefix=PREFIX prepend PREFIX to installed program names
624 1.1 christos --program-suffix=SUFFIX append SUFFIX to installed program names
625 1.1 christos --program-transform-name=PROGRAM run sed PROGRAM on installed program names
626 1.1 christos
627 1.1 christos System types:
628 1.1 christos --build=BUILD configure for building on BUILD [guessed]
629 1.1 christos --host=HOST build programs to run on HOST [BUILD]
630 1.1 christos --target=TARGET configure for building compilers for TARGET [HOST]
631 1.1 christos EOF
632 1.1 christos fi
633 1.1 christos
634 1.1 christos if test -n "$ac_init_help"; then
635 1.1 christos
636 1.1 christos cat <<\EOF
637 1.1 christos
638 1.1 christos Optional Packages:
639 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
640 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
641 1.1 christos
642 1.1 christos Optional Features:
643 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
644 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
645 1.1 christos
646 1.1 christos --with-warnings test: turn on gcc warnings
647 1.1 christos --disable-echo display "compiling" commands
648 1.1 christos --with-dmalloc test: use Gray Watson's dmalloc library
649 1.1 christos --with-dbmalloc test: use Conor Cahill's dbmalloc library
650 1.1 christos --with-valgrind test: use valgrind
651 1.1 christos --disable-leaks test: free permanent memory, analyze leaks
652 1.1 christos
653 1.1 christos Some influential environment variables:
654 1.1 christos CC C compiler command
655 1.1 christos CFLAGS C compiler flags
656 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
657 1.1 christos nonstandard directory <lib dir>
658 1.1 christos CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
659 1.1 christos headers in a nonstandard directory <include dir>
660 1.1 christos CPP C preprocessor
661 1.1 christos
662 1.1 christos Use these variables to override the choices made by `configure' or to help
663 1.1 christos it to find libraries and programs with nonstandard names/locations.
664 1.1 christos
665 1.1 christos EOF
666 1.1 christos fi
667 1.1 christos
668 1.1 christos if test "$ac_init_help" = "recursive"; then
669 1.1 christos # If there are subdirs, report their specific --help.
670 1.1 christos ac_popdir=`pwd`
671 1.1 christos for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
672 1.1 christos cd $ac_subdir
673 1.1 christos # A "../" for each directory in /$ac_subdir.
674 1.1 christos ac_dots=`echo $ac_subdir |
675 1.1 christos sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
676 1.1 christos
677 1.1 christos case $srcdir in
678 1.1 christos .) # No --srcdir option. We are building in place.
679 1.1 christos ac_sub_srcdir=$srcdir ;;
680 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path.
681 1.1 christos ac_sub_srcdir=$srcdir/$ac_subdir ;;
682 1.1 christos *) # Relative path.
683 1.1 christos ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
684 1.1 christos esac
685 1.1 christos
686 1.1 christos # Check for guested configure; otherwise get Cygnus style configure.
687 1.1 christos if test -f $ac_sub_srcdir/configure.gnu; then
688 1.1 christos echo
689 1.1 christos $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
690 1.1 christos elif test -f $ac_sub_srcdir/configure; then
691 1.1 christos echo
692 1.1 christos $SHELL $ac_sub_srcdir/configure --help=recursive
693 1.1 christos elif test -f $ac_sub_srcdir/configure.ac ||
694 1.1 christos test -f $ac_sub_srcdir/configure.in; then
695 1.1 christos echo
696 1.1 christos $ac_configure --help
697 1.1 christos else
698 1.1 christos echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
699 1.1 christos fi
700 1.1 christos cd $ac_popdir
701 1.1 christos done
702 1.1 christos fi
703 1.1 christos
704 1.1 christos test -n "$ac_init_help" && exit 0
705 1.1 christos if $ac_init_version; then
706 1.1 christos cat <<\EOF
707 1.1 christos
708 1.1 christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
709 1.1 christos Free Software Foundation, Inc.
710 1.1 christos This configure script is free software; the Free Software Foundation
711 1.1 christos gives unlimited permission to copy, distribute and modify it.
712 1.1 christos EOF
713 1.1 christos exit 0
714 1.1 christos fi
715 1.1 christos exec 5>config.log
716 1.1 christos cat >&5 <<EOF
717 1.1 christos This file contains any messages produced by compilers while
718 1.1 christos running configure, to aid debugging if configure makes a mistake.
719 1.1 christos
720 1.1 christos It was created by $as_me, which was
721 1.1.1.3 christos generated by GNU Autoconf 2.52.20101002. Invocation command line was
722 1.1 christos
723 1.1 christos $ $0 $@
724 1.1 christos
725 1.1 christos EOF
726 1.1 christos {
727 1.1 christos cat <<_ASUNAME
728 1.1 christos ## ---------- ##
729 1.1 christos ## Platform. ##
730 1.1 christos ## ---------- ##
731 1.1 christos
732 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
733 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
734 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
735 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
736 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
737 1.1 christos
738 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
739 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
740 1.1 christos
741 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
742 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
743 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
744 1.1 christos hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
745 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
746 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
747 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
748 1.1 christos
749 1.1 christos PATH = $PATH
750 1.1 christos
751 1.1 christos _ASUNAME
752 1.1 christos } >&5
753 1.1 christos
754 1.1 christos cat >&5 <<EOF
755 1.1 christos ## ------------ ##
756 1.1 christos ## Core tests. ##
757 1.1 christos ## ------------ ##
758 1.1 christos
759 1.1 christos EOF
760 1.1 christos
761 1.1 christos # Keep a trace of the command line.
762 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up.
763 1.1 christos # Also quote any args containing shell meta-characters.
764 1.1 christos ac_configure_args=
765 1.1 christos ac_sep=
766 1.1 christos for ac_arg
767 1.1 christos do
768 1.1 christos case $ac_arg in
769 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
770 1.1 christos | --no-cr | --no-c) ;;
771 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
772 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
773 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
774 1.1 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
775 1.1 christos ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
776 1.1 christos ac_sep=" " ;;
777 1.1 christos *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
778 1.1 christos ac_sep=" " ;;
779 1.1 christos esac
780 1.1 christos # Get rid of the leading space.
781 1.1 christos done
782 1.1 christos
783 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete
784 1.1 christos # config.log. We remove comments because anyway the quotes in there
785 1.1 christos # would cause problems or look ugly.
786 1.1 christos trap 'exit_status=$?
787 1.1 christos # Save into config.log some information that might help in debugging.
788 1.1 christos echo >&5
789 1.1 christos echo "## ----------------- ##" >&5
790 1.1 christos echo "## Cache variables. ##" >&5
791 1.1 christos echo "## ----------------- ##" >&5
792 1.1 christos echo >&5
793 1.1 christos # The following way of writing the cache mishandles newlines in values,
794 1.1 christos {
795 1.1 christos (set) 2>&1 |
796 1.1 christos case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
797 1.1 christos *ac_space=\ *)
798 1.1 christos sed -n \
799 1.1 christos "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
800 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
801 1.1 christos ;;
802 1.1 christos *)
803 1.1 christos sed -n \
804 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
805 1.1 christos ;;
806 1.1 christos esac;
807 1.1 christos } >&5
808 1.1 christos sed "/^$/d" confdefs.h >conftest.log
809 1.1 christos if test -s conftest.log; then
810 1.1 christos echo >&5
811 1.1 christos echo "## ------------ ##" >&5
812 1.1 christos echo "## confdefs.h. ##" >&5
813 1.1 christos echo "## ------------ ##" >&5
814 1.1 christos echo >&5
815 1.1 christos cat conftest.log >&5
816 1.1 christos fi
817 1.1 christos (echo; echo) >&5
818 1.1 christos test "$ac_signal" != 0 &&
819 1.1 christos echo "$as_me: caught signal $ac_signal" >&5
820 1.1 christos echo "$as_me: exit $exit_status" >&5
821 1.1 christos rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
822 1.1 christos exit $exit_status
823 1.1 christos ' 0
824 1.1 christos for ac_signal in 1 2 13 15; do
825 1.1 christos trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
826 1.1 christos done
827 1.1 christos ac_signal=0
828 1.1 christos
829 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
830 1.1 christos rm -rf conftest* confdefs.h
831 1.1 christos # AIX cpp loses on an empty file, so make sure it contains at least a newline.
832 1.1 christos echo >confdefs.h
833 1.1 christos
834 1.1 christos # Let the site file select an alternate cache file if it wants to.
835 1.1 christos # Prefer explicitly selected file to automatically selected ones.
836 1.1 christos if test -z "$CONFIG_SITE"; then
837 1.1 christos if test "x$prefix" != xNONE; then
838 1.1 christos CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
839 1.1 christos else
840 1.1 christos CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
841 1.1 christos fi
842 1.1 christos fi
843 1.1 christos for ac_site_file in $CONFIG_SITE; do
844 1.1 christos if test -r "$ac_site_file"; then
845 1.1 christos { echo "$as_me:845: loading site script $ac_site_file" >&5
846 1.1 christos echo "$as_me: loading site script $ac_site_file" >&6;}
847 1.1 christos cat "$ac_site_file" >&5
848 1.1 christos . "$ac_site_file"
849 1.1 christos fi
850 1.1 christos done
851 1.1 christos
852 1.1 christos if test -r "$cache_file"; then
853 1.1 christos # Some versions of bash will fail to source /dev/null (special
854 1.1 christos # files actually), so we avoid doing that.
855 1.1 christos if test -f "$cache_file"; then
856 1.1 christos { echo "$as_me:856: loading cache $cache_file" >&5
857 1.1 christos echo "$as_me: loading cache $cache_file" >&6;}
858 1.1 christos case $cache_file in
859 1.1 christos [\\/]* | ?:[\\/]* ) . $cache_file;;
860 1.1 christos *) . ./$cache_file;;
861 1.1 christos esac
862 1.1 christos fi
863 1.1 christos else
864 1.1 christos { echo "$as_me:864: creating cache $cache_file" >&5
865 1.1 christos echo "$as_me: creating cache $cache_file" >&6;}
866 1.1 christos >$cache_file
867 1.1 christos fi
868 1.1 christos
869 1.1 christos # Check that the precious variables saved in the cache have kept the same
870 1.1 christos # value.
871 1.1 christos ac_cache_corrupted=false
872 1.1 christos for ac_var in `(set) 2>&1 |
873 1.1 christos sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
874 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set
875 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set
876 1.1 christos eval ac_old_val="\$ac_cv_env_${ac_var}_value"
877 1.1 christos eval ac_new_val="\$ac_env_${ac_var}_value"
878 1.1 christos case $ac_old_set,$ac_new_set in
879 1.1 christos set,)
880 1.1 christos { echo "$as_me:880: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
881 1.1 christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
882 1.1 christos ac_cache_corrupted=: ;;
883 1.1 christos ,set)
884 1.1 christos { echo "$as_me:884: error: \`$ac_var' was not set in the previous run" >&5
885 1.1 christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
886 1.1 christos ac_cache_corrupted=: ;;
887 1.1 christos ,);;
888 1.1 christos *)
889 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then
890 1.1 christos { echo "$as_me:890: error: \`$ac_var' has changed since the previous run:" >&5
891 1.1 christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
892 1.1 christos { echo "$as_me:892: former value: $ac_old_val" >&5
893 1.1 christos echo "$as_me: former value: $ac_old_val" >&2;}
894 1.1 christos { echo "$as_me:894: current value: $ac_new_val" >&5
895 1.1 christos echo "$as_me: current value: $ac_new_val" >&2;}
896 1.1 christos ac_cache_corrupted=:
897 1.1 christos fi;;
898 1.1 christos esac
899 1.1 christos # Pass precious variables to config.status. It doesn't matter if
900 1.1 christos # we pass some twice (in addition to the command line arguments).
901 1.1 christos if test "$ac_new_set" = set; then
902 1.1 christos case $ac_new_val in
903 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
904 1.1 christos ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
905 1.1 christos ac_configure_args="$ac_configure_args '$ac_arg'"
906 1.1 christos ;;
907 1.1 christos *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
908 1.1 christos ;;
909 1.1 christos esac
910 1.1 christos fi
911 1.1 christos done
912 1.1 christos if $ac_cache_corrupted; then
913 1.1 christos { echo "$as_me:913: error: changes in the environment can compromise the build" >&5
914 1.1 christos echo "$as_me: error: changes in the environment can compromise the build" >&2;}
915 1.1 christos { { echo "$as_me:915: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
916 1.1 christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
917 1.1 christos { (exit 1); exit 1; }; }
918 1.1 christos fi
919 1.1 christos
920 1.1 christos ac_ext=c
921 1.1 christos ac_cpp='$CPP $CPPFLAGS'
922 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
923 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
924 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
925 1.1 christos ac_main_return=return
926 1.1 christos
927 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
928 1.1 christos *c*,-n*) ECHO_N= ECHO_C='
929 1.1 christos ' ECHO_T=' ' ;;
930 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
931 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
932 1.1 christos esac
933 1.1 christos echo "#! $SHELL" >conftest.sh
934 1.1 christos echo "exit 0" >>conftest.sh
935 1.1 christos chmod +x conftest.sh
936 1.1 christos if { (echo "$as_me:936: PATH=\".;.\"; conftest.sh") >&5
937 1.1 christos (PATH=".;."; conftest.sh) 2>&5
938 1.1 christos ac_status=$?
939 1.1 christos echo "$as_me:939: \$? = $ac_status" >&5
940 1.1 christos (exit $ac_status); }; then
941 1.1 christos ac_path_separator=';'
942 1.1 christos else
943 1.1 christos ac_path_separator=:
944 1.1 christos fi
945 1.1 christos PATH_SEPARATOR="$ac_path_separator"
946 1.1 christos rm -f conftest.sh
947 1.1 christos
948 1.1 christos ac_config_headers="$ac_config_headers config.h:config_h.in"
949 1.1 christos
950 1.1 christos ac_aux_dir=
951 1.1 christos for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
952 1.1 christos if test -f $ac_dir/install-sh; then
953 1.1 christos ac_aux_dir=$ac_dir
954 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c"
955 1.1 christos break
956 1.1 christos elif test -f $ac_dir/install.sh; then
957 1.1 christos ac_aux_dir=$ac_dir
958 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c"
959 1.1 christos break
960 1.1 christos elif test -f $ac_dir/shtool; then
961 1.1 christos ac_aux_dir=$ac_dir
962 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c"
963 1.1 christos break
964 1.1 christos fi
965 1.1 christos done
966 1.1 christos if test -z "$ac_aux_dir"; then
967 1.1 christos { { echo "$as_me:967: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
968 1.1 christos echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
969 1.1 christos { (exit 1); exit 1; }; }
970 1.1 christos fi
971 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess"
972 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub"
973 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
974 1.1 christos
975 1.1 christos # Make sure we can run config.sub.
976 1.1 christos $ac_config_sub sun4 >/dev/null 2>&1 ||
977 1.1 christos { { echo "$as_me:977: error: cannot run $ac_config_sub" >&5
978 1.1 christos echo "$as_me: error: cannot run $ac_config_sub" >&2;}
979 1.1 christos { (exit 1); exit 1; }; }
980 1.1 christos
981 1.1 christos echo "$as_me:981: checking build system type" >&5
982 1.1 christos echo $ECHO_N "checking build system type... $ECHO_C" >&6
983 1.1 christos if test "${ac_cv_build+set}" = set; then
984 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
985 1.1 christos else
986 1.1 christos ac_cv_build_alias=$build_alias
987 1.1 christos test -z "$ac_cv_build_alias" &&
988 1.1 christos ac_cv_build_alias=`$ac_config_guess`
989 1.1 christos test -z "$ac_cv_build_alias" &&
990 1.1 christos { { echo "$as_me:990: error: cannot guess build type; you must specify one" >&5
991 1.1 christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
992 1.1 christos { (exit 1); exit 1; }; }
993 1.1 christos ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
994 1.1 christos { { echo "$as_me:994: error: $ac_config_sub $ac_cv_build_alias failed." >&5
995 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
996 1.1 christos { (exit 1); exit 1; }; }
997 1.1 christos
998 1.1 christos fi
999 1.1 christos echo "$as_me:999: result: $ac_cv_build" >&5
1000 1.1 christos echo "${ECHO_T}$ac_cv_build" >&6
1001 1.1 christos build=$ac_cv_build
1002 1.1 christos build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1003 1.1 christos build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1004 1.1 christos build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1005 1.1 christos
1006 1.1 christos echo "$as_me:1006: checking host system type" >&5
1007 1.1 christos echo $ECHO_N "checking host system type... $ECHO_C" >&6
1008 1.1 christos if test "${ac_cv_host+set}" = set; then
1009 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1010 1.1 christos else
1011 1.1 christos ac_cv_host_alias=$host_alias
1012 1.1 christos test -z "$ac_cv_host_alias" &&
1013 1.1 christos ac_cv_host_alias=$ac_cv_build_alias
1014 1.1 christos ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1015 1.1 christos { { echo "$as_me:1015: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1016 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1017 1.1 christos { (exit 1); exit 1; }; }
1018 1.1 christos
1019 1.1 christos fi
1020 1.1 christos echo "$as_me:1020: result: $ac_cv_host" >&5
1021 1.1 christos echo "${ECHO_T}$ac_cv_host" >&6
1022 1.1 christos host=$ac_cv_host
1023 1.1 christos host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1024 1.1 christos host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1025 1.1 christos host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1026 1.1 christos
1027 1.1 christos if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1028 1.1 christos echo "$as_me:1028: checking target system type" >&5
1029 1.1 christos echo $ECHO_N "checking target system type... $ECHO_C" >&6
1030 1.1 christos if test "${ac_cv_target+set}" = set; then
1031 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1032 1.1 christos else
1033 1.1 christos ac_cv_target_alias=$target_alias
1034 1.1 christos test "x$ac_cv_target_alias" = "x" &&
1035 1.1 christos ac_cv_target_alias=$ac_cv_host_alias
1036 1.1 christos ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1037 1.1 christos { { echo "$as_me:1037: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1038 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1039 1.1 christos { (exit 1); exit 1; }; }
1040 1.1 christos
1041 1.1 christos fi
1042 1.1 christos echo "$as_me:1042: result: $ac_cv_target" >&5
1043 1.1 christos echo "${ECHO_T}$ac_cv_target" >&6
1044 1.1 christos target=$ac_cv_target
1045 1.1 christos target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1046 1.1 christos target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1047 1.1 christos target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1048 1.1 christos
1049 1.1 christos # The aliases save the names the user supplied, while $host etc.
1050 1.1 christos # will get canonicalized.
1051 1.1 christos test -n "$target_alias" &&
1052 1.1 christos test "$program_prefix$program_suffix$program_transform_name" = \
1053 1.1 christos NONENONEs,x,x, &&
1054 1.1 christos program_prefix=${target_alias}-
1055 1.1 christos system_name="$host_os"
1056 1.1 christos else
1057 1.1 christos system_name="`(uname -s -r) 2>/dev/null`"
1058 1.1 christos if test -z "$system_name" ; then
1059 1.1 christos system_name="`(hostname) 2>/dev/null`"
1060 1.1 christos fi
1061 1.1 christos fi
1062 1.1 christos test -n "$system_name" && cat >>confdefs.h <<EOF
1063 1.1 christos #define SYSTEM_NAME "$system_name"
1064 1.1 christos EOF
1065 1.1 christos
1066 1.1 christos if test "${cf_cv_system_name+set}" = set; then
1067 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1068 1.1 christos else
1069 1.1 christos cf_cv_system_name="$system_name"
1070 1.1 christos fi
1071 1.1 christos
1072 1.1 christos test -z "$system_name" && system_name="$cf_cv_system_name"
1073 1.1 christos test -n "$cf_cv_system_name" && echo "$as_me:1073: result: Configuring for $cf_cv_system_name" >&5
1074 1.1 christos echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1075 1.1 christos
1076 1.1 christos if test ".$system_name" != ".$cf_cv_system_name" ; then
1077 1.1 christos echo "$as_me:1077: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1078 1.1 christos echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1079 1.1 christos { { echo "$as_me:1079: error: \"Please remove config.cache and try again.\"" >&5
1080 1.1 christos echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1081 1.1 christos { (exit 1); exit 1; }; }
1082 1.1 christos fi
1083 1.1 christos
1084 1.1 christos test "$program_prefix" != NONE &&
1085 1.1 christos program_transform_name="s,^,$program_prefix,;$program_transform_name"
1086 1.1 christos # Use a double $ so make ignores it.
1087 1.1 christos test "$program_suffix" != NONE &&
1088 1.1 christos program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1089 1.1 christos # Double any \ or $. echo might interpret backslashes.
1090 1.1 christos # By default was `s,x,x', remove it if useless.
1091 1.1 christos cat <<\_ACEOF >conftest.sed
1092 1.1 christos s/[\\$]/&&/g;s/;s,x,x,$//
1093 1.1 christos _ACEOF
1094 1.1 christos program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1095 1.1 christos rm conftest.sed
1096 1.1 christos
1097 1.1 christos ac_ext=c
1098 1.1 christos ac_cpp='$CPP $CPPFLAGS'
1099 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1100 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1101 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
1102 1.1 christos ac_main_return=return
1103 1.1 christos if test -n "$ac_tool_prefix"; then
1104 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1105 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
1106 1.1 christos echo "$as_me:1106: checking for $ac_word" >&5
1107 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1108 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1109 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1110 1.1 christos else
1111 1.1 christos if test -n "$CC"; then
1112 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1113 1.1 christos else
1114 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
1115 1.1 christos ac_dummy="$PATH"
1116 1.1 christos for ac_dir in $ac_dummy; do
1117 1.1 christos IFS=$ac_save_IFS
1118 1.1 christos test -z "$ac_dir" && ac_dir=.
1119 1.1 christos $as_executable_p "$ac_dir/$ac_word" || continue
1120 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
1121 1.1 christos echo "$as_me:1121: found $ac_dir/$ac_word" >&5
1122 1.1 christos break
1123 1.1 christos done
1124 1.1 christos
1125 1.1 christos fi
1126 1.1 christos fi
1127 1.1 christos CC=$ac_cv_prog_CC
1128 1.1 christos if test -n "$CC"; then
1129 1.1 christos echo "$as_me:1129: result: $CC" >&5
1130 1.1 christos echo "${ECHO_T}$CC" >&6
1131 1.1 christos else
1132 1.1 christos echo "$as_me:1132: result: no" >&5
1133 1.1 christos echo "${ECHO_T}no" >&6
1134 1.1 christos fi
1135 1.1 christos
1136 1.1 christos fi
1137 1.1 christos if test -z "$ac_cv_prog_CC"; then
1138 1.1 christos ac_ct_CC=$CC
1139 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
1140 1.1 christos set dummy gcc; ac_word=$2
1141 1.1 christos echo "$as_me:1141: checking for $ac_word" >&5
1142 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1143 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1144 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1145 1.1 christos else
1146 1.1 christos if test -n "$ac_ct_CC"; then
1147 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1148 1.1 christos else
1149 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
1150 1.1 christos ac_dummy="$PATH"
1151 1.1 christos for ac_dir in $ac_dummy; do
1152 1.1 christos IFS=$ac_save_IFS
1153 1.1 christos test -z "$ac_dir" && ac_dir=.
1154 1.1 christos $as_executable_p "$ac_dir/$ac_word" || continue
1155 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
1156 1.1 christos echo "$as_me:1156: found $ac_dir/$ac_word" >&5
1157 1.1 christos break
1158 1.1 christos done
1159 1.1 christos
1160 1.1 christos fi
1161 1.1 christos fi
1162 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
1163 1.1 christos if test -n "$ac_ct_CC"; then
1164 1.1 christos echo "$as_me:1164: result: $ac_ct_CC" >&5
1165 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6
1166 1.1 christos else
1167 1.1 christos echo "$as_me:1167: result: no" >&5
1168 1.1 christos echo "${ECHO_T}no" >&6
1169 1.1 christos fi
1170 1.1 christos
1171 1.1 christos CC=$ac_ct_CC
1172 1.1 christos else
1173 1.1 christos CC="$ac_cv_prog_CC"
1174 1.1 christos fi
1175 1.1 christos
1176 1.1 christos if test -z "$CC"; then
1177 1.1 christos if test -n "$ac_tool_prefix"; then
1178 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1179 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
1180 1.1 christos echo "$as_me:1180: checking for $ac_word" >&5
1181 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1182 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1183 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1184 1.1 christos else
1185 1.1 christos if test -n "$CC"; then
1186 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1187 1.1 christos else
1188 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
1189 1.1 christos ac_dummy="$PATH"
1190 1.1 christos for ac_dir in $ac_dummy; do
1191 1.1 christos IFS=$ac_save_IFS
1192 1.1 christos test -z "$ac_dir" && ac_dir=.
1193 1.1 christos $as_executable_p "$ac_dir/$ac_word" || continue
1194 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
1195 1.1 christos echo "$as_me:1195: found $ac_dir/$ac_word" >&5
1196 1.1 christos break
1197 1.1 christos done
1198 1.1 christos
1199 1.1 christos fi
1200 1.1 christos fi
1201 1.1 christos CC=$ac_cv_prog_CC
1202 1.1 christos if test -n "$CC"; then
1203 1.1 christos echo "$as_me:1203: result: $CC" >&5
1204 1.1 christos echo "${ECHO_T}$CC" >&6
1205 1.1 christos else
1206 1.1 christos echo "$as_me:1206: result: no" >&5
1207 1.1 christos echo "${ECHO_T}no" >&6
1208 1.1 christos fi
1209 1.1 christos
1210 1.1 christos fi
1211 1.1 christos if test -z "$ac_cv_prog_CC"; then
1212 1.1 christos ac_ct_CC=$CC
1213 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
1214 1.1 christos set dummy cc; ac_word=$2
1215 1.1 christos echo "$as_me:1215: checking for $ac_word" >&5
1216 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1217 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1218 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1219 1.1 christos else
1220 1.1 christos if test -n "$ac_ct_CC"; then
1221 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1222 1.1 christos else
1223 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
1224 1.1 christos ac_dummy="$PATH"
1225 1.1 christos for ac_dir in $ac_dummy; do
1226 1.1 christos IFS=$ac_save_IFS
1227 1.1 christos test -z "$ac_dir" && ac_dir=.
1228 1.1 christos $as_executable_p "$ac_dir/$ac_word" || continue
1229 1.1 christos ac_cv_prog_ac_ct_CC="cc"
1230 1.1 christos echo "$as_me:1230: found $ac_dir/$ac_word" >&5
1231 1.1 christos break
1232 1.1 christos done
1233 1.1 christos
1234 1.1 christos fi
1235 1.1 christos fi
1236 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
1237 1.1 christos if test -n "$ac_ct_CC"; then
1238 1.1 christos echo "$as_me:1238: result: $ac_ct_CC" >&5
1239 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6
1240 1.1 christos else
1241 1.1 christos echo "$as_me:1241: result: no" >&5
1242 1.1 christos echo "${ECHO_T}no" >&6
1243 1.1 christos fi
1244 1.1 christos
1245 1.1 christos CC=$ac_ct_CC
1246 1.1 christos else
1247 1.1 christos CC="$ac_cv_prog_CC"
1248 1.1 christos fi
1249 1.1 christos
1250 1.1 christos fi
1251 1.1 christos if test -z "$CC"; then
1252 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
1253 1.1 christos set dummy cc; ac_word=$2
1254 1.1 christos echo "$as_me:1254: checking for $ac_word" >&5
1255 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1256 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1257 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1258 1.1 christos else
1259 1.1 christos if test -n "$CC"; then
1260 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1261 1.1 christos else
1262 1.1 christos ac_prog_rejected=no
1263 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
1264 1.1 christos ac_dummy="$PATH"
1265 1.1 christos for ac_dir in $ac_dummy; do
1266 1.1 christos IFS=$ac_save_IFS
1267 1.1 christos test -z "$ac_dir" && ac_dir=.
1268 1.1 christos $as_executable_p "$ac_dir/$ac_word" || continue
1269 1.1 christos if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1270 1.1 christos ac_prog_rejected=yes
1271 1.1 christos continue
1272 1.1 christos fi
1273 1.1 christos ac_cv_prog_CC="cc"
1274 1.1 christos echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1275 1.1 christos break
1276 1.1 christos done
1277 1.1 christos
1278 1.1 christos if test $ac_prog_rejected = yes; then
1279 1.1 christos # We found a bogon in the path, so make sure we never use it.
1280 1.1 christos set dummy $ac_cv_prog_CC
1281 1.1 christos shift
1282 1.1 christos if test $# != 0; then
1283 1.1 christos # We chose a different compiler from the bogus one.
1284 1.1 christos # However, it has the same basename, so the bogon will be chosen
1285 1.1 christos # first if we set CC to just the basename; use the full file name.
1286 1.1 christos shift
1287 1.1 christos set dummy "$ac_dir/$ac_word" ${1+"$@"}
1288 1.1 christos shift
1289 1.1 christos ac_cv_prog_CC="$@"
1290 1.1 christos fi
1291 1.1 christos fi
1292 1.1 christos fi
1293 1.1 christos fi
1294 1.1 christos CC=$ac_cv_prog_CC
1295 1.1 christos if test -n "$CC"; then
1296 1.1 christos echo "$as_me:1296: result: $CC" >&5
1297 1.1 christos echo "${ECHO_T}$CC" >&6
1298 1.1 christos else
1299 1.1 christos echo "$as_me:1299: result: no" >&5
1300 1.1 christos echo "${ECHO_T}no" >&6
1301 1.1 christos fi
1302 1.1 christos
1303 1.1 christos fi
1304 1.1 christos if test -z "$CC"; then
1305 1.1 christos if test -n "$ac_tool_prefix"; then
1306 1.1 christos for ac_prog in cl
1307 1.1 christos do
1308 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1309 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1310 1.1 christos echo "$as_me:1310: checking for $ac_word" >&5
1311 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1312 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then
1313 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1314 1.1 christos else
1315 1.1 christos if test -n "$CC"; then
1316 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
1317 1.1 christos else
1318 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
1319 1.1 christos ac_dummy="$PATH"
1320 1.1 christos for ac_dir in $ac_dummy; do
1321 1.1 christos IFS=$ac_save_IFS
1322 1.1 christos test -z "$ac_dir" && ac_dir=.
1323 1.1 christos $as_executable_p "$ac_dir/$ac_word" || continue
1324 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1325 1.1 christos echo "$as_me:1325: found $ac_dir/$ac_word" >&5
1326 1.1 christos break
1327 1.1 christos done
1328 1.1 christos
1329 1.1 christos fi
1330 1.1 christos fi
1331 1.1 christos CC=$ac_cv_prog_CC
1332 1.1 christos if test -n "$CC"; then
1333 1.1 christos echo "$as_me:1333: result: $CC" >&5
1334 1.1 christos echo "${ECHO_T}$CC" >&6
1335 1.1 christos else
1336 1.1 christos echo "$as_me:1336: result: no" >&5
1337 1.1 christos echo "${ECHO_T}no" >&6
1338 1.1 christos fi
1339 1.1 christos
1340 1.1 christos test -n "$CC" && break
1341 1.1 christos done
1342 1.1 christos fi
1343 1.1 christos if test -z "$CC"; then
1344 1.1 christos ac_ct_CC=$CC
1345 1.1 christos for ac_prog in cl
1346 1.1 christos do
1347 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
1348 1.1 christos set dummy $ac_prog; ac_word=$2
1349 1.1 christos echo "$as_me:1349: checking for $ac_word" >&5
1350 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1351 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1352 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1353 1.1 christos else
1354 1.1 christos if test -n "$ac_ct_CC"; then
1355 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1356 1.1 christos else
1357 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
1358 1.1 christos ac_dummy="$PATH"
1359 1.1 christos for ac_dir in $ac_dummy; do
1360 1.1 christos IFS=$ac_save_IFS
1361 1.1 christos test -z "$ac_dir" && ac_dir=.
1362 1.1 christos $as_executable_p "$ac_dir/$ac_word" || continue
1363 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
1364 1.1 christos echo "$as_me:1364: found $ac_dir/$ac_word" >&5
1365 1.1 christos break
1366 1.1 christos done
1367 1.1 christos
1368 1.1 christos fi
1369 1.1 christos fi
1370 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
1371 1.1 christos if test -n "$ac_ct_CC"; then
1372 1.1 christos echo "$as_me:1372: result: $ac_ct_CC" >&5
1373 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6
1374 1.1 christos else
1375 1.1 christos echo "$as_me:1375: result: no" >&5
1376 1.1 christos echo "${ECHO_T}no" >&6
1377 1.1 christos fi
1378 1.1 christos
1379 1.1 christos test -n "$ac_ct_CC" && break
1380 1.1 christos done
1381 1.1 christos
1382 1.1 christos CC=$ac_ct_CC
1383 1.1 christos fi
1384 1.1 christos
1385 1.1 christos fi
1386 1.1 christos
1387 1.1 christos test -z "$CC" && { { echo "$as_me:1387: error: no acceptable cc found in \$PATH" >&5
1388 1.1 christos echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1389 1.1 christos { (exit 1); exit 1; }; }
1390 1.1 christos
1391 1.1 christos # Provide some information about the compiler.
1392 1.1 christos echo "$as_me:1392:" \
1393 1.1 christos "checking for C compiler version" >&5
1394 1.1 christos ac_compiler=`set X $ac_compile; echo $2`
1395 1.1 christos { (eval echo "$as_me:1395: \"$ac_compiler --version </dev/null >&5\"") >&5
1396 1.1 christos (eval $ac_compiler --version </dev/null >&5) 2>&5
1397 1.1 christos ac_status=$?
1398 1.1 christos echo "$as_me:1398: \$? = $ac_status" >&5
1399 1.1 christos (exit $ac_status); }
1400 1.1 christos { (eval echo "$as_me:1400: \"$ac_compiler -v </dev/null >&5\"") >&5
1401 1.1 christos (eval $ac_compiler -v </dev/null >&5) 2>&5
1402 1.1 christos ac_status=$?
1403 1.1 christos echo "$as_me:1403: \$? = $ac_status" >&5
1404 1.1 christos (exit $ac_status); }
1405 1.1 christos { (eval echo "$as_me:1405: \"$ac_compiler -V </dev/null >&5\"") >&5
1406 1.1 christos (eval $ac_compiler -V </dev/null >&5) 2>&5
1407 1.1 christos ac_status=$?
1408 1.1 christos echo "$as_me:1408: \$? = $ac_status" >&5
1409 1.1 christos (exit $ac_status); }
1410 1.1 christos
1411 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1412 1.1 christos #line 1412 "configure"
1413 1.1 christos #include "confdefs.h"
1414 1.1 christos
1415 1.1 christos int
1416 1.1 christos main ()
1417 1.1 christos {
1418 1.1 christos
1419 1.1 christos ;
1420 1.1 christos return 0;
1421 1.1 christos }
1422 1.1 christos _ACEOF
1423 1.1 christos ac_clean_files_save=$ac_clean_files
1424 1.1 christos ac_clean_files="$ac_clean_files a.out a.exe"
1425 1.1 christos # Try to create an executable without -o first, disregard a.out.
1426 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition
1427 1.1 christos # of exeext.
1428 1.1 christos echo "$as_me:1428: checking for C compiler default output" >&5
1429 1.1 christos echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1430 1.1 christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1431 1.1 christos if { (eval echo "$as_me:1431: \"$ac_link_default\"") >&5
1432 1.1 christos (eval $ac_link_default) 2>&5
1433 1.1 christos ac_status=$?
1434 1.1 christos echo "$as_me:1434: \$? = $ac_status" >&5
1435 1.1 christos (exit $ac_status); }; then
1436 1.1 christos # Find the output, starting from the most likely. This scheme is
1437 1.1 christos # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1438 1.1 christos # resort.
1439 1.1 christos for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1440 1.1 christos ls a.out conftest 2>/dev/null;
1441 1.1 christos ls a.* conftest.* 2>/dev/null`; do
1442 1.1 christos case $ac_file in
1443 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1444 1.1 christos a.out ) # We found the default executable, but exeext='' is most
1445 1.1 christos # certainly right.
1446 1.1 christos break;;
1447 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1448 1.1 christos # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1449 1.1 christos export ac_cv_exeext
1450 1.1 christos break;;
1451 1.1 christos * ) break;;
1452 1.1 christos esac
1453 1.1 christos done
1454 1.1 christos else
1455 1.1 christos echo "$as_me: failed program was:" >&5
1456 1.1 christos cat conftest.$ac_ext >&5
1457 1.1 christos { { echo "$as_me:1457: error: C compiler cannot create executables" >&5
1458 1.1 christos echo "$as_me: error: C compiler cannot create executables" >&2;}
1459 1.1 christos { (exit 77); exit 77; }; }
1460 1.1 christos fi
1461 1.1 christos
1462 1.1 christos ac_exeext=$ac_cv_exeext
1463 1.1 christos echo "$as_me:1463: result: $ac_file" >&5
1464 1.1 christos echo "${ECHO_T}$ac_file" >&6
1465 1.1 christos
1466 1.1 christos # Check the compiler produces executables we can run. If not, either
1467 1.1 christos # the compiler is broken, or we cross compile.
1468 1.1 christos echo "$as_me:1468: checking whether the C compiler works" >&5
1469 1.1 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1470 1.1 christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1471 1.1 christos # If not cross compiling, check that we can run a simple program.
1472 1.1 christos if test "$cross_compiling" != yes; then
1473 1.1 christos if { ac_try='./$ac_file'
1474 1.1 christos { (eval echo "$as_me:1474: \"$ac_try\"") >&5
1475 1.1 christos (eval $ac_try) 2>&5
1476 1.1 christos ac_status=$?
1477 1.1 christos echo "$as_me:1477: \$? = $ac_status" >&5
1478 1.1 christos (exit $ac_status); }; }; then
1479 1.1 christos cross_compiling=no
1480 1.1 christos else
1481 1.1 christos if test "$cross_compiling" = maybe; then
1482 1.1 christos cross_compiling=yes
1483 1.1 christos else
1484 1.1 christos { { echo "$as_me:1484: error: cannot run C compiled programs.
1485 1.1 christos If you meant to cross compile, use \`--host'." >&5
1486 1.1 christos echo "$as_me: error: cannot run C compiled programs.
1487 1.1 christos If you meant to cross compile, use \`--host'." >&2;}
1488 1.1 christos { (exit 1); exit 1; }; }
1489 1.1 christos fi
1490 1.1 christos fi
1491 1.1 christos fi
1492 1.1 christos echo "$as_me:1492: result: yes" >&5
1493 1.1 christos echo "${ECHO_T}yes" >&6
1494 1.1 christos
1495 1.1 christos rm -f a.out a.exe conftest$ac_cv_exeext
1496 1.1 christos ac_clean_files=$ac_clean_files_save
1497 1.1 christos # Check the compiler produces executables we can run. If not, either
1498 1.1 christos # the compiler is broken, or we cross compile.
1499 1.1 christos echo "$as_me:1499: checking whether we are cross compiling" >&5
1500 1.1 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1501 1.1 christos echo "$as_me:1501: result: $cross_compiling" >&5
1502 1.1 christos echo "${ECHO_T}$cross_compiling" >&6
1503 1.1 christos
1504 1.1 christos echo "$as_me:1504: checking for executable suffix" >&5
1505 1.1 christos echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1506 1.1 christos if { (eval echo "$as_me:1506: \"$ac_link\"") >&5
1507 1.1 christos (eval $ac_link) 2>&5
1508 1.1 christos ac_status=$?
1509 1.1 christos echo "$as_me:1509: \$? = $ac_status" >&5
1510 1.1 christos (exit $ac_status); }; then
1511 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable)
1512 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1513 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with
1514 1.1 christos # `rm'.
1515 1.1 christos for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1516 1.1 christos case $ac_file in
1517 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1518 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1519 1.1 christos export ac_cv_exeext
1520 1.1 christos break;;
1521 1.1 christos * ) break;;
1522 1.1 christos esac
1523 1.1 christos done
1524 1.1 christos else
1525 1.1 christos { { echo "$as_me:1525: error: cannot compute EXEEXT: cannot compile and link" >&5
1526 1.1 christos echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1527 1.1 christos { (exit 1); exit 1; }; }
1528 1.1 christos fi
1529 1.1 christos
1530 1.1 christos rm -f conftest$ac_cv_exeext
1531 1.1 christos echo "$as_me:1531: result: $ac_cv_exeext" >&5
1532 1.1 christos echo "${ECHO_T}$ac_cv_exeext" >&6
1533 1.1 christos
1534 1.1 christos rm -f conftest.$ac_ext
1535 1.1 christos EXEEXT=$ac_cv_exeext
1536 1.1 christos ac_exeext=$EXEEXT
1537 1.1 christos echo "$as_me:1537: checking for object suffix" >&5
1538 1.1 christos echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1539 1.1 christos if test "${ac_cv_objext+set}" = set; then
1540 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1541 1.1 christos else
1542 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1543 1.1 christos #line 1543 "configure"
1544 1.1 christos #include "confdefs.h"
1545 1.1 christos
1546 1.1 christos int
1547 1.1 christos main ()
1548 1.1 christos {
1549 1.1 christos
1550 1.1 christos ;
1551 1.1 christos return 0;
1552 1.1 christos }
1553 1.1 christos _ACEOF
1554 1.1 christos rm -f conftest.o conftest.obj
1555 1.1 christos if { (eval echo "$as_me:1555: \"$ac_compile\"") >&5
1556 1.1 christos (eval $ac_compile) 2>&5
1557 1.1 christos ac_status=$?
1558 1.1 christos echo "$as_me:1558: \$? = $ac_status" >&5
1559 1.1 christos (exit $ac_status); }; then
1560 1.1 christos for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1561 1.1 christos case $ac_file in
1562 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1563 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1564 1.1 christos break;;
1565 1.1 christos esac
1566 1.1 christos done
1567 1.1 christos else
1568 1.1 christos echo "$as_me: failed program was:" >&5
1569 1.1 christos cat conftest.$ac_ext >&5
1570 1.1 christos { { echo "$as_me:1570: error: cannot compute OBJEXT: cannot compile" >&5
1571 1.1 christos echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1572 1.1 christos { (exit 1); exit 1; }; }
1573 1.1 christos fi
1574 1.1 christos
1575 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
1576 1.1 christos fi
1577 1.1 christos echo "$as_me:1577: result: $ac_cv_objext" >&5
1578 1.1 christos echo "${ECHO_T}$ac_cv_objext" >&6
1579 1.1 christos OBJEXT=$ac_cv_objext
1580 1.1 christos ac_objext=$OBJEXT
1581 1.1 christos echo "$as_me:1581: checking whether we are using the GNU C compiler" >&5
1582 1.1 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1583 1.1 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then
1584 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1585 1.1 christos else
1586 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1587 1.1 christos #line 1587 "configure"
1588 1.1 christos #include "confdefs.h"
1589 1.1 christos
1590 1.1 christos int
1591 1.1 christos main ()
1592 1.1 christos {
1593 1.1 christos #ifndef __GNUC__
1594 1.1 christos choke me
1595 1.1 christos #endif
1596 1.1 christos
1597 1.1 christos ;
1598 1.1 christos return 0;
1599 1.1 christos }
1600 1.1 christos _ACEOF
1601 1.1 christos rm -f conftest.$ac_objext
1602 1.1 christos if { (eval echo "$as_me:1602: \"$ac_compile\"") >&5
1603 1.1 christos (eval $ac_compile) 2>&5
1604 1.1 christos ac_status=$?
1605 1.1 christos echo "$as_me:1605: \$? = $ac_status" >&5
1606 1.1 christos (exit $ac_status); } &&
1607 1.1 christos { ac_try='test -s conftest.$ac_objext'
1608 1.1 christos { (eval echo "$as_me:1608: \"$ac_try\"") >&5
1609 1.1 christos (eval $ac_try) 2>&5
1610 1.1 christos ac_status=$?
1611 1.1 christos echo "$as_me:1611: \$? = $ac_status" >&5
1612 1.1 christos (exit $ac_status); }; }; then
1613 1.1 christos ac_compiler_gnu=yes
1614 1.1 christos else
1615 1.1 christos echo "$as_me: failed program was:" >&5
1616 1.1 christos cat conftest.$ac_ext >&5
1617 1.1 christos ac_compiler_gnu=no
1618 1.1 christos fi
1619 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
1620 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
1621 1.1 christos
1622 1.1 christos fi
1623 1.1 christos echo "$as_me:1623: result: $ac_cv_c_compiler_gnu" >&5
1624 1.1 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1625 1.1 christos GCC=`test $ac_compiler_gnu = yes && echo yes`
1626 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
1627 1.1 christos ac_save_CFLAGS=$CFLAGS
1628 1.1 christos CFLAGS="-g"
1629 1.1 christos echo "$as_me:1629: checking whether $CC accepts -g" >&5
1630 1.1 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1631 1.1 christos if test "${ac_cv_prog_cc_g+set}" = set; then
1632 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1633 1.1 christos else
1634 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1635 1.1 christos #line 1635 "configure"
1636 1.1 christos #include "confdefs.h"
1637 1.1 christos
1638 1.1 christos int
1639 1.1 christos main ()
1640 1.1 christos {
1641 1.1 christos
1642 1.1 christos ;
1643 1.1 christos return 0;
1644 1.1 christos }
1645 1.1 christos _ACEOF
1646 1.1 christos rm -f conftest.$ac_objext
1647 1.1 christos if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5
1648 1.1 christos (eval $ac_compile) 2>&5
1649 1.1 christos ac_status=$?
1650 1.1 christos echo "$as_me:1650: \$? = $ac_status" >&5
1651 1.1 christos (exit $ac_status); } &&
1652 1.1 christos { ac_try='test -s conftest.$ac_objext'
1653 1.1 christos { (eval echo "$as_me:1653: \"$ac_try\"") >&5
1654 1.1 christos (eval $ac_try) 2>&5
1655 1.1 christos ac_status=$?
1656 1.1 christos echo "$as_me:1656: \$? = $ac_status" >&5
1657 1.1 christos (exit $ac_status); }; }; then
1658 1.1 christos ac_cv_prog_cc_g=yes
1659 1.1 christos else
1660 1.1 christos echo "$as_me: failed program was:" >&5
1661 1.1 christos cat conftest.$ac_ext >&5
1662 1.1 christos ac_cv_prog_cc_g=no
1663 1.1 christos fi
1664 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
1665 1.1 christos fi
1666 1.1 christos echo "$as_me:1666: result: $ac_cv_prog_cc_g" >&5
1667 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1668 1.1 christos if test "$ac_test_CFLAGS" = set; then
1669 1.1 christos CFLAGS=$ac_save_CFLAGS
1670 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
1671 1.1 christos if test "$GCC" = yes; then
1672 1.1 christos CFLAGS="-g -O2"
1673 1.1 christos else
1674 1.1 christos CFLAGS="-g"
1675 1.1 christos fi
1676 1.1 christos else
1677 1.1 christos if test "$GCC" = yes; then
1678 1.1 christos CFLAGS="-O2"
1679 1.1 christos else
1680 1.1 christos CFLAGS=
1681 1.1 christos fi
1682 1.1 christos fi
1683 1.1 christos # Some people use a C++ compiler to compile C. Since we use `exit',
1684 1.1 christos # in C++ we need to declare it. In case someone uses the same compiler
1685 1.1 christos # for both compiling C and C++ we need to have the C++ compiler decide
1686 1.1 christos # the declaration of exit, since it's the most demanding environment.
1687 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1688 1.1 christos #ifndef __cplusplus
1689 1.1 christos choke me
1690 1.1 christos #endif
1691 1.1 christos _ACEOF
1692 1.1 christos rm -f conftest.$ac_objext
1693 1.1 christos if { (eval echo "$as_me:1693: \"$ac_compile\"") >&5
1694 1.1 christos (eval $ac_compile) 2>&5
1695 1.1 christos ac_status=$?
1696 1.1 christos echo "$as_me:1696: \$? = $ac_status" >&5
1697 1.1 christos (exit $ac_status); } &&
1698 1.1 christos { ac_try='test -s conftest.$ac_objext'
1699 1.1 christos { (eval echo "$as_me:1699: \"$ac_try\"") >&5
1700 1.1 christos (eval $ac_try) 2>&5
1701 1.1 christos ac_status=$?
1702 1.1 christos echo "$as_me:1702: \$? = $ac_status" >&5
1703 1.1 christos (exit $ac_status); }; }; then
1704 1.1 christos for ac_declaration in \
1705 1.1 christos ''\
1706 1.1 christos '#include <stdlib.h>' \
1707 1.1 christos 'extern "C" void std::exit (int) throw (); using std::exit;' \
1708 1.1 christos 'extern "C" void std::exit (int); using std::exit;' \
1709 1.1 christos 'extern "C" void exit (int) throw ();' \
1710 1.1 christos 'extern "C" void exit (int);' \
1711 1.1 christos 'void exit (int);'
1712 1.1 christos do
1713 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1714 1.1 christos #line 1714 "configure"
1715 1.1 christos #include "confdefs.h"
1716 1.1 christos #include <stdlib.h>
1717 1.1 christos $ac_declaration
1718 1.1 christos int
1719 1.1 christos main ()
1720 1.1 christos {
1721 1.1 christos exit (42);
1722 1.1 christos ;
1723 1.1 christos return 0;
1724 1.1 christos }
1725 1.1 christos _ACEOF
1726 1.1 christos rm -f conftest.$ac_objext
1727 1.1 christos if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
1728 1.1 christos (eval $ac_compile) 2>&5
1729 1.1 christos ac_status=$?
1730 1.1 christos echo "$as_me:1730: \$? = $ac_status" >&5
1731 1.1 christos (exit $ac_status); } &&
1732 1.1 christos { ac_try='test -s conftest.$ac_objext'
1733 1.1 christos { (eval echo "$as_me:1733: \"$ac_try\"") >&5
1734 1.1 christos (eval $ac_try) 2>&5
1735 1.1 christos ac_status=$?
1736 1.1 christos echo "$as_me:1736: \$? = $ac_status" >&5
1737 1.1 christos (exit $ac_status); }; }; then
1738 1.1 christos :
1739 1.1 christos else
1740 1.1 christos echo "$as_me: failed program was:" >&5
1741 1.1 christos cat conftest.$ac_ext >&5
1742 1.1 christos continue
1743 1.1 christos fi
1744 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
1745 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1746 1.1 christos #line 1746 "configure"
1747 1.1 christos #include "confdefs.h"
1748 1.1 christos $ac_declaration
1749 1.1 christos int
1750 1.1 christos main ()
1751 1.1 christos {
1752 1.1 christos exit (42);
1753 1.1 christos ;
1754 1.1 christos return 0;
1755 1.1 christos }
1756 1.1 christos _ACEOF
1757 1.1 christos rm -f conftest.$ac_objext
1758 1.1 christos if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
1759 1.1 christos (eval $ac_compile) 2>&5
1760 1.1 christos ac_status=$?
1761 1.1 christos echo "$as_me:1761: \$? = $ac_status" >&5
1762 1.1 christos (exit $ac_status); } &&
1763 1.1 christos { ac_try='test -s conftest.$ac_objext'
1764 1.1 christos { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1765 1.1 christos (eval $ac_try) 2>&5
1766 1.1 christos ac_status=$?
1767 1.1 christos echo "$as_me:1767: \$? = $ac_status" >&5
1768 1.1 christos (exit $ac_status); }; }; then
1769 1.1 christos break
1770 1.1 christos else
1771 1.1 christos echo "$as_me: failed program was:" >&5
1772 1.1 christos cat conftest.$ac_ext >&5
1773 1.1 christos fi
1774 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
1775 1.1 christos done
1776 1.1.1.3 christos rm -rf conftest*
1777 1.1 christos if test -n "$ac_declaration"; then
1778 1.1 christos echo '#ifdef __cplusplus' >>confdefs.h
1779 1.1 christos echo $ac_declaration >>confdefs.h
1780 1.1 christos echo '#endif' >>confdefs.h
1781 1.1 christos fi
1782 1.1 christos
1783 1.1 christos else
1784 1.1 christos echo "$as_me: failed program was:" >&5
1785 1.1 christos cat conftest.$ac_ext >&5
1786 1.1 christos fi
1787 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
1788 1.1 christos ac_ext=c
1789 1.1 christos ac_cpp='$CPP $CPPFLAGS'
1790 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793 1.1 christos ac_main_return=return
1794 1.1 christos
1795 1.1 christos echo "$as_me:1795: checking for $CC option to accept ANSI C" >&5
1796 1.1 christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1797 1.1 christos if test "${ac_cv_prog_cc_stdc+set}" = set; then
1798 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1799 1.1 christos else
1800 1.1 christos ac_cv_prog_cc_stdc=no
1801 1.1 christos ac_save_CC=$CC
1802 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1803 1.1 christos #line 1803 "configure"
1804 1.1 christos #include "confdefs.h"
1805 1.1 christos #include <stdarg.h>
1806 1.1 christos #include <stdio.h>
1807 1.1 christos #include <sys/types.h>
1808 1.1 christos #include <sys/stat.h>
1809 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1810 1.1 christos struct buf { int x; };
1811 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
1812 1.1 christos static char *e (p, i)
1813 1.1 christos char **p;
1814 1.1 christos int i;
1815 1.1 christos {
1816 1.1 christos return p[i];
1817 1.1 christos }
1818 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
1819 1.1 christos {
1820 1.1 christos char *s;
1821 1.1 christos va_list v;
1822 1.1 christos va_start (v,p);
1823 1.1 christos s = g (p, va_arg (v,int));
1824 1.1 christos va_end (v);
1825 1.1 christos return s;
1826 1.1 christos }
1827 1.1 christos int test (int i, double x);
1828 1.1 christos struct s1 {int (*f) (int a);};
1829 1.1 christos struct s2 {int (*f) (double a);};
1830 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1831 1.1 christos int argc;
1832 1.1 christos char **argv;
1833 1.1 christos int
1834 1.1 christos main ()
1835 1.1 christos {
1836 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1837 1.1 christos ;
1838 1.1 christos return 0;
1839 1.1 christos }
1840 1.1 christos _ACEOF
1841 1.1 christos # Don't try gcc -ansi; that turns off useful extensions and
1842 1.1 christos # breaks some systems' header files.
1843 1.1 christos # AIX -qlanglvl=ansi
1844 1.1 christos # Ultrix and OSF/1 -std1
1845 1.1 christos # HP-UX 10.20 and later -Ae
1846 1.1 christos # HP-UX older versions -Aa -D_HPUX_SOURCE
1847 1.1 christos # SVR4 -Xc -D__EXTENSIONS__
1848 1.1 christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1849 1.1 christos do
1850 1.1 christos CC="$ac_save_CC $ac_arg"
1851 1.1 christos rm -f conftest.$ac_objext
1852 1.1 christos if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 1.1 christos (eval $ac_compile) 2>&5
1854 1.1 christos ac_status=$?
1855 1.1 christos echo "$as_me:1855: \$? = $ac_status" >&5
1856 1.1 christos (exit $ac_status); } &&
1857 1.1 christos { ac_try='test -s conftest.$ac_objext'
1858 1.1 christos { (eval echo "$as_me:1858: \"$ac_try\"") >&5
1859 1.1 christos (eval $ac_try) 2>&5
1860 1.1 christos ac_status=$?
1861 1.1 christos echo "$as_me:1861: \$? = $ac_status" >&5
1862 1.1 christos (exit $ac_status); }; }; then
1863 1.1 christos ac_cv_prog_cc_stdc=$ac_arg
1864 1.1 christos break
1865 1.1 christos else
1866 1.1 christos echo "$as_me: failed program was:" >&5
1867 1.1 christos cat conftest.$ac_ext >&5
1868 1.1 christos fi
1869 1.1 christos rm -f conftest.$ac_objext
1870 1.1 christos done
1871 1.1 christos rm -f conftest.$ac_ext conftest.$ac_objext
1872 1.1 christos CC=$ac_save_CC
1873 1.1 christos
1874 1.1 christos fi
1875 1.1 christos
1876 1.1 christos case "x$ac_cv_prog_cc_stdc" in
1877 1.1 christos x|xno)
1878 1.1 christos echo "$as_me:1878: result: none needed" >&5
1879 1.1 christos echo "${ECHO_T}none needed" >&6 ;;
1880 1.1 christos *)
1881 1.1 christos echo "$as_me:1881: result: $ac_cv_prog_cc_stdc" >&5
1882 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1883 1.1 christos CC="$CC $ac_cv_prog_cc_stdc" ;;
1884 1.1 christos esac
1885 1.1 christos
1886 1.1 christos echo "$as_me:1886: checking for an ANSI C-conforming const" >&5
1887 1.1 christos echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1888 1.1 christos if test "${ac_cv_c_const+set}" = set; then
1889 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1890 1.1 christos else
1891 1.1 christos cat >conftest.$ac_ext <<_ACEOF
1892 1.1 christos #line 1892 "configure"
1893 1.1 christos #include "confdefs.h"
1894 1.1 christos
1895 1.1 christos int
1896 1.1 christos main ()
1897 1.1 christos {
1898 1.1 christos /* FIXME: Include the comments suggested by Paul. */
1899 1.1 christos #ifndef __cplusplus
1900 1.1 christos /* Ultrix mips cc rejects this. */
1901 1.1 christos typedef int charset[2];
1902 1.1 christos const charset x;
1903 1.1 christos /* SunOS 4.1.1 cc rejects this. */
1904 1.1 christos char const *const *ccp;
1905 1.1 christos char **p;
1906 1.1 christos /* NEC SVR4.0.2 mips cc rejects this. */
1907 1.1 christos struct point {int x, y;};
1908 1.1 christos static struct point const zero = {0,0};
1909 1.1 christos /* AIX XL C 1.02.0.0 rejects this.
1910 1.1 christos It does not let you subtract one const X* pointer from another in
1911 1.1 christos an arm of an if-expression whose if-part is not a constant
1912 1.1 christos expression */
1913 1.1 christos const char *g = "string";
1914 1.1 christos ccp = &g + (g ? g-g : 0);
1915 1.1 christos /* HPUX 7.0 cc rejects these. */
1916 1.1 christos ++ccp;
1917 1.1 christos p = (char**) ccp;
1918 1.1 christos ccp = (char const *const *) p;
1919 1.1 christos { /* SCO 3.2v4 cc rejects this. */
1920 1.1 christos char *t;
1921 1.1 christos char const *s = 0 ? (char *) 0 : (char const *) 0;
1922 1.1 christos
1923 1.1 christos *t++ = 0;
1924 1.1 christos }
1925 1.1 christos { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1926 1.1 christos int x[] = {25, 17};
1927 1.1 christos const int *foo = &x[0];
1928 1.1 christos ++foo;
1929 1.1 christos }
1930 1.1 christos { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1931 1.1 christos typedef const int *iptr;
1932 1.1 christos iptr p = 0;
1933 1.1 christos ++p;
1934 1.1 christos }
1935 1.1 christos { /* AIX XL C 1.02.0.0 rejects this saying
1936 1.1 christos "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1937 1.1 christos struct s { int j; const int *ap[3]; };
1938 1.1 christos struct s *b; b->j = 5;
1939 1.1 christos }
1940 1.1 christos { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1941 1.1 christos const int foo = 10;
1942 1.1 christos }
1943 1.1 christos #endif
1944 1.1 christos
1945 1.1 christos ;
1946 1.1 christos return 0;
1947 1.1 christos }
1948 1.1 christos _ACEOF
1949 1.1 christos rm -f conftest.$ac_objext
1950 1.1 christos if { (eval echo "$as_me:1950: \"$ac_compile\"") >&5
1951 1.1 christos (eval $ac_compile) 2>&5
1952 1.1 christos ac_status=$?
1953 1.1 christos echo "$as_me:1953: \$? = $ac_status" >&5
1954 1.1 christos (exit $ac_status); } &&
1955 1.1 christos { ac_try='test -s conftest.$ac_objext'
1956 1.1 christos { (eval echo "$as_me:1956: \"$ac_try\"") >&5
1957 1.1 christos (eval $ac_try) 2>&5
1958 1.1 christos ac_status=$?
1959 1.1 christos echo "$as_me:1959: \$? = $ac_status" >&5
1960 1.1 christos (exit $ac_status); }; }; then
1961 1.1 christos ac_cv_c_const=yes
1962 1.1 christos else
1963 1.1 christos echo "$as_me: failed program was:" >&5
1964 1.1 christos cat conftest.$ac_ext >&5
1965 1.1 christos ac_cv_c_const=no
1966 1.1 christos fi
1967 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
1968 1.1 christos fi
1969 1.1 christos echo "$as_me:1969: result: $ac_cv_c_const" >&5
1970 1.1 christos echo "${ECHO_T}$ac_cv_c_const" >&6
1971 1.1 christos if test $ac_cv_c_const = no; then
1972 1.1 christos
1973 1.1 christos cat >>confdefs.h <<\EOF
1974 1.1 christos #define const
1975 1.1 christos EOF
1976 1.1 christos
1977 1.1 christos fi
1978 1.1 christos
1979 1.1 christos echo "$as_me:1979: checking whether ${MAKE-make} sets \${MAKE}" >&5
1980 1.1 christos echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1981 1.1 christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1982 1.1 christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1983 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
1984 1.1 christos else
1985 1.1 christos cat >conftest.make <<\EOF
1986 1.1 christos all:
1987 1.1 christos @echo 'ac_maketemp="${MAKE}"'
1988 1.1 christos EOF
1989 1.1 christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1990 1.1 christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1991 1.1 christos if test -n "$ac_maketemp"; then
1992 1.1 christos eval ac_cv_prog_make_${ac_make}_set=yes
1993 1.1 christos else
1994 1.1 christos eval ac_cv_prog_make_${ac_make}_set=no
1995 1.1 christos fi
1996 1.1 christos rm -f conftest.make
1997 1.1 christos fi
1998 1.1 christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1999 1.1 christos echo "$as_me:1999: result: yes" >&5
2000 1.1 christos echo "${ECHO_T}yes" >&6
2001 1.1 christos SET_MAKE=
2002 1.1 christos else
2003 1.1 christos echo "$as_me:2003: result: no" >&5
2004 1.1 christos echo "${ECHO_T}no" >&6
2005 1.1 christos SET_MAKE="MAKE=${MAKE-make}"
2006 1.1 christos fi
2007 1.1 christos
2008 1.1 christos # Find a good install program. We prefer a C program (faster),
2009 1.1 christos # so one script is as good as another. But avoid the broken or
2010 1.1 christos # incompatible versions:
2011 1.1 christos # SysV /etc/install, /usr/sbin/install
2012 1.1 christos # SunOS /usr/etc/install
2013 1.1 christos # IRIX /sbin/install
2014 1.1 christos # AIX /bin/install
2015 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs
2016 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2017 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2018 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2019 1.1 christos # ./install, which can be erroneously created by make from ./install.sh.
2020 1.1 christos echo "$as_me:2020: checking for a BSD compatible install" >&5
2021 1.1 christos echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2022 1.1 christos if test -z "$INSTALL"; then
2023 1.1 christos if test "${ac_cv_path_install+set}" = set; then
2024 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2025 1.1 christos else
2026 1.1 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
2027 1.1 christos for ac_dir in $PATH; do
2028 1.1 christos IFS=$ac_save_IFS
2029 1.1 christos # Account for people who put trailing slashes in PATH elements.
2030 1.1 christos case $ac_dir/ in
2031 1.1 christos / | ./ | .// | /cC/* \
2032 1.1 christos | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2033 1.1 christos | /usr/ucb/* ) ;;
2034 1.1 christos *)
2035 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install.
2036 1.1 christos # Don't use installbsd from OSF since it installs stuff as root
2037 1.1 christos # by default.
2038 1.1 christos for ac_prog in ginstall scoinst install; do
2039 1.1 christos if $as_executable_p "$ac_dir/$ac_prog"; then
2040 1.1 christos if test $ac_prog = install &&
2041 1.1 christos grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2042 1.1 christos # AIX install. It has an incompatible calling convention.
2043 1.1 christos :
2044 1.1 christos elif test $ac_prog = install &&
2045 1.1 christos grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2046 1.1 christos # program-specific install script used by HP pwplus--don't use.
2047 1.1 christos :
2048 1.1 christos else
2049 1.1 christos ac_cv_path_install="$ac_dir/$ac_prog -c"
2050 1.1 christos break 2
2051 1.1 christos fi
2052 1.1 christos fi
2053 1.1 christos done
2054 1.1 christos ;;
2055 1.1 christos esac
2056 1.1 christos done
2057 1.1 christos
2058 1.1 christos fi
2059 1.1 christos if test "${ac_cv_path_install+set}" = set; then
2060 1.1 christos INSTALL=$ac_cv_path_install
2061 1.1 christos else
2062 1.1 christos # As a last resort, use the slow shell script. We don't cache a
2063 1.1 christos # path for INSTALL within a source directory, because that will
2064 1.1 christos # break other packages using the cache if that directory is
2065 1.1 christos # removed, or if the path is relative.
2066 1.1 christos INSTALL=$ac_install_sh
2067 1.1 christos fi
2068 1.1 christos fi
2069 1.1 christos echo "$as_me:2069: result: $INSTALL" >&5
2070 1.1 christos echo "${ECHO_T}$INSTALL" >&6
2071 1.1 christos
2072 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2073 1.1 christos # It thinks the first close brace ends the variable substitution.
2074 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2075 1.1 christos
2076 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2077 1.1 christos
2078 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2079 1.1 christos
2080 1.1.1.2 christos echo "$as_me:2080: checking if filesystem supports mixed-case filenames" >&5
2081 1.1.1.2 christos echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2082 1.1.1.2 christos if test "${cf_cv_mixedcase+set}" = set; then
2083 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2084 1.1.1.2 christos else
2085 1.1.1.2 christos
2086 1.1.1.2 christos if test "$cross_compiling" = yes ; then
2087 1.1.1.2 christos case $target_alias in #(vi
2088 1.1.1.2 christos *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2089 1.1.1.2 christos cf_cv_mixedcase=no
2090 1.1.1.2 christos ;;
2091 1.1.1.2 christos *)
2092 1.1.1.2 christos cf_cv_mixedcase=yes
2093 1.1.1.2 christos ;;
2094 1.1.1.2 christos esac
2095 1.1.1.2 christos else
2096 1.1.1.2 christos rm -f conftest CONFTEST
2097 1.1.1.2 christos echo test >conftest
2098 1.1.1.2 christos if test -f CONFTEST ; then
2099 1.1.1.2 christos cf_cv_mixedcase=no
2100 1.1.1.2 christos else
2101 1.1.1.2 christos cf_cv_mixedcase=yes
2102 1.1.1.2 christos fi
2103 1.1.1.2 christos rm -f conftest CONFTEST
2104 1.1.1.2 christos fi
2105 1.1.1.2 christos
2106 1.1.1.2 christos fi
2107 1.1.1.2 christos echo "$as_me:2107: result: $cf_cv_mixedcase" >&5
2108 1.1.1.2 christos echo "${ECHO_T}$cf_cv_mixedcase" >&6
2109 1.1.1.2 christos test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2110 1.1.1.2 christos #define MIXEDCASE_FILENAMES 1
2111 1.1.1.2 christos EOF
2112 1.1.1.2 christos
2113 1.1.1.2 christos for ac_prog in exctags ctags
2114 1.1.1.2 christos do
2115 1.1.1.2 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 1.1.1.2 christos set dummy $ac_prog; ac_word=$2
2117 1.1.1.2 christos echo "$as_me:2117: checking for $ac_word" >&5
2118 1.1.1.2 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 1.1.1.2 christos if test "${ac_cv_prog_CTAGS+set}" = set; then
2120 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2121 1.1.1.2 christos else
2122 1.1.1.2 christos if test -n "$CTAGS"; then
2123 1.1.1.2 christos ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2124 1.1.1.2 christos else
2125 1.1.1.2 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
2126 1.1.1.2 christos ac_dummy="$PATH"
2127 1.1.1.2 christos for ac_dir in $ac_dummy; do
2128 1.1.1.2 christos IFS=$ac_save_IFS
2129 1.1.1.2 christos test -z "$ac_dir" && ac_dir=.
2130 1.1.1.2 christos $as_executable_p "$ac_dir/$ac_word" || continue
2131 1.1.1.2 christos ac_cv_prog_CTAGS="$ac_prog"
2132 1.1.1.2 christos echo "$as_me:2132: found $ac_dir/$ac_word" >&5
2133 1.1.1.2 christos break
2134 1.1.1.2 christos done
2135 1.1.1.2 christos
2136 1.1.1.2 christos fi
2137 1.1.1.2 christos fi
2138 1.1.1.2 christos CTAGS=$ac_cv_prog_CTAGS
2139 1.1.1.2 christos if test -n "$CTAGS"; then
2140 1.1.1.2 christos echo "$as_me:2140: result: $CTAGS" >&5
2141 1.1.1.2 christos echo "${ECHO_T}$CTAGS" >&6
2142 1.1.1.2 christos else
2143 1.1.1.2 christos echo "$as_me:2143: result: no" >&5
2144 1.1.1.2 christos echo "${ECHO_T}no" >&6
2145 1.1.1.2 christos fi
2146 1.1.1.2 christos
2147 1.1.1.2 christos test -n "$CTAGS" && break
2148 1.1.1.2 christos done
2149 1.1.1.2 christos
2150 1.1.1.2 christos for ac_prog in exetags etags
2151 1.1.1.2 christos do
2152 1.1.1.2 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2153 1.1.1.2 christos set dummy $ac_prog; ac_word=$2
2154 1.1.1.2 christos echo "$as_me:2154: checking for $ac_word" >&5
2155 1.1.1.2 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 1.1.1.2 christos if test "${ac_cv_prog_ETAGS+set}" = set; then
2157 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2158 1.1.1.2 christos else
2159 1.1.1.2 christos if test -n "$ETAGS"; then
2160 1.1.1.2 christos ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2161 1.1.1.2 christos else
2162 1.1.1.2 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
2163 1.1.1.2 christos ac_dummy="$PATH"
2164 1.1.1.2 christos for ac_dir in $ac_dummy; do
2165 1.1.1.2 christos IFS=$ac_save_IFS
2166 1.1.1.2 christos test -z "$ac_dir" && ac_dir=.
2167 1.1.1.2 christos $as_executable_p "$ac_dir/$ac_word" || continue
2168 1.1.1.2 christos ac_cv_prog_ETAGS="$ac_prog"
2169 1.1.1.2 christos echo "$as_me:2169: found $ac_dir/$ac_word" >&5
2170 1.1.1.2 christos break
2171 1.1.1.2 christos done
2172 1.1.1.2 christos
2173 1.1.1.2 christos fi
2174 1.1.1.2 christos fi
2175 1.1.1.2 christos ETAGS=$ac_cv_prog_ETAGS
2176 1.1.1.2 christos if test -n "$ETAGS"; then
2177 1.1.1.2 christos echo "$as_me:2177: result: $ETAGS" >&5
2178 1.1.1.2 christos echo "${ECHO_T}$ETAGS" >&6
2179 1.1.1.2 christos else
2180 1.1.1.2 christos echo "$as_me:2180: result: no" >&5
2181 1.1.1.2 christos echo "${ECHO_T}no" >&6
2182 1.1.1.2 christos fi
2183 1.1.1.2 christos
2184 1.1.1.2 christos test -n "$ETAGS" && break
2185 1.1.1.2 christos done
2186 1.1.1.2 christos
2187 1.1.1.3 christos # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2188 1.1.1.3 christos set dummy ${CTAGS:-ctags}; ac_word=$2
2189 1.1.1.2 christos echo "$as_me:2189: checking for $ac_word" >&5
2190 1.1.1.2 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 1.1.1.2 christos if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2192 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2193 1.1.1.2 christos else
2194 1.1.1.2 christos if test -n "$MAKE_LOWER_TAGS"; then
2195 1.1.1.2 christos ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2196 1.1.1.2 christos else
2197 1.1.1.2 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
2198 1.1.1.2 christos ac_dummy="$PATH"
2199 1.1.1.2 christos for ac_dir in $ac_dummy; do
2200 1.1.1.2 christos IFS=$ac_save_IFS
2201 1.1.1.2 christos test -z "$ac_dir" && ac_dir=.
2202 1.1.1.2 christos $as_executable_p "$ac_dir/$ac_word" || continue
2203 1.1.1.2 christos ac_cv_prog_MAKE_LOWER_TAGS="yes"
2204 1.1.1.2 christos echo "$as_me:2204: found $ac_dir/$ac_word" >&5
2205 1.1.1.2 christos break
2206 1.1.1.2 christos done
2207 1.1.1.2 christos
2208 1.1.1.2 christos test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2209 1.1.1.2 christos fi
2210 1.1.1.2 christos fi
2211 1.1.1.2 christos MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2212 1.1.1.2 christos if test -n "$MAKE_LOWER_TAGS"; then
2213 1.1.1.2 christos echo "$as_me:2213: result: $MAKE_LOWER_TAGS" >&5
2214 1.1.1.2 christos echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2215 1.1.1.2 christos else
2216 1.1.1.2 christos echo "$as_me:2216: result: no" >&5
2217 1.1.1.2 christos echo "${ECHO_T}no" >&6
2218 1.1.1.2 christos fi
2219 1.1.1.2 christos
2220 1.1.1.2 christos if test "$cf_cv_mixedcase" = yes ; then
2221 1.1.1.3 christos # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2222 1.1.1.3 christos set dummy ${ETAGS:-etags}; ac_word=$2
2223 1.1.1.2 christos echo "$as_me:2223: checking for $ac_word" >&5
2224 1.1.1.2 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 1.1.1.2 christos if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2226 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2227 1.1.1.2 christos else
2228 1.1.1.2 christos if test -n "$MAKE_UPPER_TAGS"; then
2229 1.1.1.2 christos ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2230 1.1.1.2 christos else
2231 1.1.1.2 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
2232 1.1.1.2 christos ac_dummy="$PATH"
2233 1.1.1.2 christos for ac_dir in $ac_dummy; do
2234 1.1.1.2 christos IFS=$ac_save_IFS
2235 1.1.1.2 christos test -z "$ac_dir" && ac_dir=.
2236 1.1.1.2 christos $as_executable_p "$ac_dir/$ac_word" || continue
2237 1.1.1.2 christos ac_cv_prog_MAKE_UPPER_TAGS="yes"
2238 1.1.1.2 christos echo "$as_me:2238: found $ac_dir/$ac_word" >&5
2239 1.1.1.2 christos break
2240 1.1.1.2 christos done
2241 1.1.1.2 christos
2242 1.1.1.2 christos test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2243 1.1.1.2 christos fi
2244 1.1.1.2 christos fi
2245 1.1.1.2 christos MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2246 1.1.1.2 christos if test -n "$MAKE_UPPER_TAGS"; then
2247 1.1.1.2 christos echo "$as_me:2247: result: $MAKE_UPPER_TAGS" >&5
2248 1.1.1.2 christos echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2249 1.1.1.2 christos else
2250 1.1.1.2 christos echo "$as_me:2250: result: no" >&5
2251 1.1.1.2 christos echo "${ECHO_T}no" >&6
2252 1.1.1.2 christos fi
2253 1.1.1.2 christos
2254 1.1.1.2 christos else
2255 1.1.1.2 christos MAKE_UPPER_TAGS=no
2256 1.1.1.2 christos fi
2257 1.1.1.2 christos
2258 1.1.1.2 christos if test "$MAKE_UPPER_TAGS" = yes ; then
2259 1.1.1.2 christos MAKE_UPPER_TAGS=
2260 1.1.1.2 christos else
2261 1.1.1.2 christos MAKE_UPPER_TAGS="#"
2262 1.1.1.2 christos fi
2263 1.1.1.2 christos
2264 1.1.1.2 christos if test "$MAKE_LOWER_TAGS" = yes ; then
2265 1.1.1.2 christos MAKE_LOWER_TAGS=
2266 1.1.1.2 christos else
2267 1.1.1.2 christos MAKE_LOWER_TAGS="#"
2268 1.1.1.2 christos fi
2269 1.1.1.2 christos
2270 1.1.1.2 christos for ac_prog in tdlint lint alint splint lclint
2271 1.1.1.2 christos do
2272 1.1.1.2 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 1.1.1.2 christos set dummy $ac_prog; ac_word=$2
2274 1.1.1.2 christos echo "$as_me:2274: checking for $ac_word" >&5
2275 1.1.1.2 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 1.1.1.2 christos if test "${ac_cv_prog_LINT+set}" = set; then
2277 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2278 1.1.1.2 christos else
2279 1.1.1.2 christos if test -n "$LINT"; then
2280 1.1.1.2 christos ac_cv_prog_LINT="$LINT" # Let the user override the test.
2281 1.1.1.2 christos else
2282 1.1.1.2 christos ac_save_IFS=$IFS; IFS=$ac_path_separator
2283 1.1.1.2 christos ac_dummy="$PATH"
2284 1.1.1.2 christos for ac_dir in $ac_dummy; do
2285 1.1.1.2 christos IFS=$ac_save_IFS
2286 1.1.1.2 christos test -z "$ac_dir" && ac_dir=.
2287 1.1.1.2 christos $as_executable_p "$ac_dir/$ac_word" || continue
2288 1.1.1.2 christos ac_cv_prog_LINT="$ac_prog"
2289 1.1.1.2 christos echo "$as_me:2289: found $ac_dir/$ac_word" >&5
2290 1.1.1.2 christos break
2291 1.1.1.2 christos done
2292 1.1.1.2 christos
2293 1.1.1.2 christos fi
2294 1.1.1.2 christos fi
2295 1.1.1.2 christos LINT=$ac_cv_prog_LINT
2296 1.1.1.2 christos if test -n "$LINT"; then
2297 1.1.1.2 christos echo "$as_me:2297: result: $LINT" >&5
2298 1.1.1.2 christos echo "${ECHO_T}$LINT" >&6
2299 1.1.1.2 christos else
2300 1.1.1.2 christos echo "$as_me:2300: result: no" >&5
2301 1.1.1.2 christos echo "${ECHO_T}no" >&6
2302 1.1.1.2 christos fi
2303 1.1.1.2 christos
2304 1.1.1.2 christos test -n "$LINT" && break
2305 1.1.1.2 christos done
2306 1.1.1.2 christos
2307 1.1.1.3 christos # This should have been defined by AC_PROG_CC
2308 1.1.1.3 christos : ${CC:=cc}
2309 1.1.1.3 christos
2310 1.1.1.3 christos # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2311 1.1.1.3 christos # into CC. This will not help with broken scripts that wrap the compiler with
2312 1.1.1.3 christos # options, but eliminates a more common category of user confusion.
2313 1.1.1.3 christos echo "$as_me:2313: checking \$CC variable" >&5
2314 1.1.1.3 christos echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2315 1.1.1.3 christos case "$CC" in #(vi
2316 1.1.1.3 christos *[\ \ ]-[IUD]*)
2317 1.1.1.3 christos echo "$as_me:2317: result: broken" >&5
2318 1.1.1.3 christos echo "${ECHO_T}broken" >&6
2319 1.1.1.3 christos { echo "$as_me:2319: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2320 1.1.1.3 christos echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2321 1.1.1.3 christos # humor him...
2322 1.1.1.3 christos cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2323 1.1.1.3 christos CC=`echo "$CC" | sed -e 's/[ ].*//'`
2324 1.1.1.3 christos
2325 1.1.1.3 christos cf_fix_cppflags=no
2326 1.1.1.3 christos cf_new_cflags=
2327 1.1.1.3 christos cf_new_cppflags=
2328 1.1.1.3 christos cf_new_extra_cppflags=
2329 1.1.1.3 christos
2330 1.1.1.3 christos for cf_add_cflags in $cf_flags
2331 1.1.1.3 christos do
2332 1.1.1.3 christos case $cf_fix_cppflags in
2333 1.1.1.3 christos no)
2334 1.1.1.3 christos case $cf_add_cflags in #(vi
2335 1.1.1.3 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2336 1.1.1.3 christos case $cf_add_cflags in
2337 1.1.1.3 christos -D*)
2338 1.1.1.3 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2339 1.1.1.3 christos
2340 1.1.1.3 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2341 1.1.1.3 christos && test -z "${cf_tst_cflags}" \
2342 1.1.1.3 christos && cf_fix_cppflags=yes
2343 1.1.1.3 christos
2344 1.1.1.3 christos if test $cf_fix_cppflags = yes ; then
2345 1.1.1.3 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2346 1.1.1.3 christos continue
2347 1.1.1.3 christos elif test "${cf_tst_cflags}" = "\"'" ; then
2348 1.1.1.3 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2349 1.1.1.3 christos continue
2350 1.1.1.3 christos fi
2351 1.1.1.3 christos ;;
2352 1.1.1.3 christos esac
2353 1.1.1.3 christos case "$CPPFLAGS" in
2354 1.1.1.3 christos *$cf_add_cflags) #(vi
2355 1.1.1.3 christos ;;
2356 1.1.1.3 christos *) #(vi
2357 1.1.1.3 christos case $cf_add_cflags in #(vi
2358 1.1.1.3 christos -D*)
2359 1.1.1.3 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2360 1.1.1.3 christos
2361 1.1.1.3 christos CPPFLAGS=`echo "$CPPFLAGS" | \
2362 1.1.1.3 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2363 1.1.1.3 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2364 1.1.1.3 christos
2365 1.1.1.3 christos ;;
2366 1.1.1.3 christos esac
2367 1.1.1.3 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2368 1.1.1.3 christos ;;
2369 1.1.1.3 christos esac
2370 1.1.1.3 christos ;;
2371 1.1.1.3 christos *)
2372 1.1.1.3 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2373 1.1.1.3 christos ;;
2374 1.1.1.3 christos esac
2375 1.1.1.3 christos ;;
2376 1.1.1.3 christos yes)
2377 1.1.1.3 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2378 1.1.1.3 christos
2379 1.1.1.3 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2380 1.1.1.3 christos
2381 1.1.1.3 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2382 1.1.1.3 christos && test -z "${cf_tst_cflags}" \
2383 1.1.1.3 christos && cf_fix_cppflags=no
2384 1.1.1.3 christos ;;
2385 1.1.1.3 christos esac
2386 1.1.1.3 christos done
2387 1.1.1.3 christos
2388 1.1.1.3 christos if test -n "$cf_new_cflags" ; then
2389 1.1.1.3 christos
2390 1.1.1.3 christos CFLAGS="$CFLAGS $cf_new_cflags"
2391 1.1.1.3 christos fi
2392 1.1.1.3 christos
2393 1.1.1.3 christos if test -n "$cf_new_cppflags" ; then
2394 1.1.1.3 christos
2395 1.1.1.3 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2396 1.1.1.3 christos fi
2397 1.1.1.3 christos
2398 1.1.1.3 christos if test -n "$cf_new_extra_cppflags" ; then
2399 1.1.1.3 christos
2400 1.1.1.3 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2401 1.1.1.3 christos fi
2402 1.1.1.3 christos
2403 1.1.1.3 christos ;;
2404 1.1.1.3 christos *)
2405 1.1.1.3 christos echo "$as_me:2405: result: ok" >&5
2406 1.1.1.3 christos echo "${ECHO_T}ok" >&6
2407 1.1.1.3 christos ;;
2408 1.1.1.3 christos esac
2409 1.1.1.3 christos
2410 1.1.1.3 christos echo "$as_me:2410: checking for ${CC:-cc} option to accept ANSI C" >&5
2411 1.1.1.3 christos echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2412 1.1 christos if test "${cf_cv_ansi_cc+set}" = set; then
2413 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2414 1.1 christos else
2415 1.1 christos
2416 1.1.1.2 christos cf_cv_ansi_cc=no
2417 1.1.1.2 christos cf_save_CFLAGS="$CFLAGS"
2418 1.1.1.2 christos cf_save_CPPFLAGS="$CPPFLAGS"
2419 1.1.1.2 christos # Don't try gcc -ansi; that turns off useful extensions and
2420 1.1.1.2 christos # breaks some systems' header files.
2421 1.1.1.2 christos # AIX -qlanglvl=ansi
2422 1.1.1.2 christos # Ultrix and OSF/1 -std1
2423 1.1.1.2 christos # HP-UX -Aa -D_HPUX_SOURCE
2424 1.1.1.2 christos # SVR4 -Xc
2425 1.1.1.2 christos # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2426 1.1.1.2 christos for cf_arg in "-DCC_HAS_PROTOS" \
2427 1.1.1.2 christos "" \
2428 1.1.1.2 christos -qlanglvl=ansi \
2429 1.1.1.2 christos -std1 \
2430 1.1.1.2 christos -Ae \
2431 1.1.1.2 christos "-Aa -D_HPUX_SOURCE" \
2432 1.1.1.2 christos -Xc
2433 1.1.1.2 christos do
2434 1.1.1.2 christos
2435 1.1.1.2 christos cf_fix_cppflags=no
2436 1.1.1.2 christos cf_new_cflags=
2437 1.1.1.2 christos cf_new_cppflags=
2438 1.1.1.2 christos cf_new_extra_cppflags=
2439 1.1.1.2 christos
2440 1.1.1.2 christos for cf_add_cflags in $cf_arg
2441 1.1.1.2 christos do
2442 1.1.1.2 christos case $cf_fix_cppflags in
2443 1.1.1.2 christos no)
2444 1.1.1.2 christos case $cf_add_cflags in #(vi
2445 1.1.1.2 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2446 1.1.1.2 christos case $cf_add_cflags in
2447 1.1.1.2 christos -D*)
2448 1.1.1.2 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2449 1.1.1.2 christos
2450 1.1.1.2 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2451 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
2452 1.1.1.2 christos && cf_fix_cppflags=yes
2453 1.1.1.2 christos
2454 1.1.1.2 christos if test $cf_fix_cppflags = yes ; then
2455 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2456 1.1.1.2 christos continue
2457 1.1.1.2 christos elif test "${cf_tst_cflags}" = "\"'" ; then
2458 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2459 1.1.1.2 christos continue
2460 1.1.1.2 christos fi
2461 1.1.1.2 christos ;;
2462 1.1.1.2 christos esac
2463 1.1.1.2 christos case "$CPPFLAGS" in
2464 1.1.1.2 christos *$cf_add_cflags) #(vi
2465 1.1.1.2 christos ;;
2466 1.1.1.2 christos *) #(vi
2467 1.1.1.2 christos case $cf_add_cflags in #(vi
2468 1.1.1.2 christos -D*)
2469 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2470 1.1.1.2 christos
2471 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
2472 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2473 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2474 1.1.1.2 christos
2475 1.1.1.2 christos ;;
2476 1.1.1.2 christos esac
2477 1.1.1.2 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2478 1.1.1.2 christos ;;
2479 1.1.1.2 christos esac
2480 1.1.1.2 christos ;;
2481 1.1.1.2 christos *)
2482 1.1.1.2 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2483 1.1.1.2 christos ;;
2484 1.1.1.2 christos esac
2485 1.1.1.2 christos ;;
2486 1.1.1.2 christos yes)
2487 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2488 1.1.1.2 christos
2489 1.1.1.2 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2490 1.1.1.2 christos
2491 1.1.1.2 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2492 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
2493 1.1.1.2 christos && cf_fix_cppflags=no
2494 1.1.1.2 christos ;;
2495 1.1.1.2 christos esac
2496 1.1.1.2 christos done
2497 1.1.1.2 christos
2498 1.1.1.2 christos if test -n "$cf_new_cflags" ; then
2499 1.1.1.2 christos
2500 1.1.1.2 christos CFLAGS="$CFLAGS $cf_new_cflags"
2501 1.1.1.2 christos fi
2502 1.1.1.2 christos
2503 1.1.1.2 christos if test -n "$cf_new_cppflags" ; then
2504 1.1.1.2 christos
2505 1.1.1.2 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2506 1.1.1.2 christos fi
2507 1.1.1.2 christos
2508 1.1.1.2 christos if test -n "$cf_new_extra_cppflags" ; then
2509 1.1.1.2 christos
2510 1.1.1.2 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2511 1.1.1.2 christos fi
2512 1.1.1.2 christos
2513 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
2514 1.1.1.3 christos #line 2514 "configure"
2515 1.1.1.2 christos #include "confdefs.h"
2516 1.1.1.2 christos
2517 1.1.1.2 christos #ifndef CC_HAS_PROTOS
2518 1.1.1.2 christos #if !defined(__STDC__) || (__STDC__ != 1)
2519 1.1.1.2 christos choke me
2520 1.1.1.2 christos #endif
2521 1.1.1.2 christos #endif
2522 1.1.1.2 christos
2523 1.1.1.2 christos int
2524 1.1.1.2 christos main ()
2525 1.1.1.2 christos {
2526 1.1.1.2 christos
2527 1.1.1.2 christos int test (int i, double x);
2528 1.1.1.2 christos struct s1 {int (*f) (int a);};
2529 1.1.1.2 christos struct s2 {int (*f) (double a);};
2530 1.1.1.2 christos ;
2531 1.1.1.2 christos return 0;
2532 1.1.1.2 christos }
2533 1.1.1.2 christos _ACEOF
2534 1.1.1.2 christos rm -f conftest.$ac_objext
2535 1.1.1.3 christos if { (eval echo "$as_me:2535: \"$ac_compile\"") >&5
2536 1.1.1.2 christos (eval $ac_compile) 2>&5
2537 1.1.1.2 christos ac_status=$?
2538 1.1.1.3 christos echo "$as_me:2538: \$? = $ac_status" >&5
2539 1.1.1.2 christos (exit $ac_status); } &&
2540 1.1.1.2 christos { ac_try='test -s conftest.$ac_objext'
2541 1.1.1.3 christos { (eval echo "$as_me:2541: \"$ac_try\"") >&5
2542 1.1.1.2 christos (eval $ac_try) 2>&5
2543 1.1.1.2 christos ac_status=$?
2544 1.1.1.3 christos echo "$as_me:2544: \$? = $ac_status" >&5
2545 1.1.1.2 christos (exit $ac_status); }; }; then
2546 1.1.1.2 christos cf_cv_ansi_cc="$cf_arg"; break
2547 1.1.1.2 christos else
2548 1.1.1.2 christos echo "$as_me: failed program was:" >&5
2549 1.1.1.2 christos cat conftest.$ac_ext >&5
2550 1.1.1.2 christos fi
2551 1.1.1.2 christos rm -f conftest.$ac_objext conftest.$ac_ext
2552 1.1.1.2 christos done
2553 1.1.1.2 christos CFLAGS="$cf_save_CFLAGS"
2554 1.1.1.2 christos CPPFLAGS="$cf_save_CPPFLAGS"
2555 1.1.1.2 christos
2556 1.1.1.2 christos fi
2557 1.1.1.3 christos echo "$as_me:2557: result: $cf_cv_ansi_cc" >&5
2558 1.1.1.2 christos echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2559 1.1.1.2 christos
2560 1.1.1.2 christos if test "$cf_cv_ansi_cc" != "no"; then
2561 1.1.1.2 christos if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2562 1.1.1.2 christos
2563 1.1.1.2 christos cf_fix_cppflags=no
2564 1.1.1.2 christos cf_new_cflags=
2565 1.1.1.2 christos cf_new_cppflags=
2566 1.1.1.2 christos cf_new_extra_cppflags=
2567 1.1.1.2 christos
2568 1.1.1.2 christos for cf_add_cflags in $cf_cv_ansi_cc
2569 1.1.1.2 christos do
2570 1.1.1.2 christos case $cf_fix_cppflags in
2571 1.1.1.2 christos no)
2572 1.1.1.2 christos case $cf_add_cflags in #(vi
2573 1.1.1.2 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2574 1.1.1.2 christos case $cf_add_cflags in
2575 1.1.1.2 christos -D*)
2576 1.1.1.2 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2577 1.1.1.2 christos
2578 1.1.1.2 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2579 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
2580 1.1.1.2 christos && cf_fix_cppflags=yes
2581 1.1.1.2 christos
2582 1.1.1.2 christos if test $cf_fix_cppflags = yes ; then
2583 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2584 1.1.1.2 christos continue
2585 1.1.1.2 christos elif test "${cf_tst_cflags}" = "\"'" ; then
2586 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2587 1.1.1.2 christos continue
2588 1.1.1.2 christos fi
2589 1.1.1.2 christos ;;
2590 1.1.1.2 christos esac
2591 1.1.1.2 christos case "$CPPFLAGS" in
2592 1.1.1.2 christos *$cf_add_cflags) #(vi
2593 1.1.1.2 christos ;;
2594 1.1.1.2 christos *) #(vi
2595 1.1.1.2 christos case $cf_add_cflags in #(vi
2596 1.1.1.2 christos -D*)
2597 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2598 1.1.1.2 christos
2599 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
2600 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2601 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2602 1.1.1.2 christos
2603 1.1.1.2 christos ;;
2604 1.1.1.2 christos esac
2605 1.1.1.2 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2606 1.1.1.2 christos ;;
2607 1.1.1.2 christos esac
2608 1.1.1.2 christos ;;
2609 1.1.1.2 christos *)
2610 1.1.1.2 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2611 1.1.1.2 christos ;;
2612 1.1.1.2 christos esac
2613 1.1.1.2 christos ;;
2614 1.1.1.2 christos yes)
2615 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2616 1.1.1.2 christos
2617 1.1.1.2 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2618 1.1.1.2 christos
2619 1.1.1.2 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2620 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
2621 1.1.1.2 christos && cf_fix_cppflags=no
2622 1.1.1.2 christos ;;
2623 1.1.1.2 christos esac
2624 1.1.1.2 christos done
2625 1.1.1.2 christos
2626 1.1.1.2 christos if test -n "$cf_new_cflags" ; then
2627 1.1.1.2 christos
2628 1.1.1.2 christos CFLAGS="$CFLAGS $cf_new_cflags"
2629 1.1.1.2 christos fi
2630 1.1.1.2 christos
2631 1.1.1.2 christos if test -n "$cf_new_cppflags" ; then
2632 1.1.1.2 christos
2633 1.1.1.2 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2634 1.1.1.2 christos fi
2635 1.1.1.2 christos
2636 1.1.1.2 christos if test -n "$cf_new_extra_cppflags" ; then
2637 1.1.1.2 christos
2638 1.1.1.2 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2639 1.1.1.2 christos fi
2640 1.1.1.2 christos
2641 1.1.1.2 christos else
2642 1.1.1.2 christos cat >>confdefs.h <<\EOF
2643 1.1.1.2 christos #define CC_HAS_PROTOS 1
2644 1.1.1.2 christos EOF
2645 1.1.1.2 christos
2646 1.1.1.2 christos fi
2647 1.1.1.2 christos fi
2648 1.1.1.2 christos
2649 1.1.1.2 christos if test "$cf_cv_ansi_cc" = "no"; then
2650 1.1.1.3 christos { { echo "$as_me:2650: error: Your compiler does not appear to recognize prototypes.
2651 1.1.1.2 christos You have the following choices:
2652 1.1.1.2 christos a. adjust your compiler options
2653 1.1.1.2 christos b. get an up-to-date compiler
2654 1.1.1.2 christos c. use a wrapper such as unproto" >&5
2655 1.1.1.2 christos echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2656 1.1.1.2 christos You have the following choices:
2657 1.1.1.2 christos a. adjust your compiler options
2658 1.1.1.2 christos b. get an up-to-date compiler
2659 1.1.1.2 christos c. use a wrapper such as unproto" >&2;}
2660 1.1.1.2 christos { (exit 1); exit 1; }; }
2661 1.1.1.2 christos fi
2662 1.1.1.2 christos
2663 1.1.1.2 christos cf_XOPEN_SOURCE=500
2664 1.1.1.2 christos cf_POSIX_C_SOURCE=199506L
2665 1.1.1.2 christos cf_xopen_source=
2666 1.1.1.2 christos
2667 1.1.1.2 christos case $host_os in #(vi
2668 1.1.1.3 christos aix[4-7]*) #(vi
2669 1.1.1.2 christos cf_xopen_source="-D_ALL_SOURCE"
2670 1.1.1.2 christos ;;
2671 1.1.1.3 christos cygwin) #(vi
2672 1.1.1.3 christos cf_XOPEN_SOURCE=600
2673 1.1.1.3 christos ;;
2674 1.1.1.2 christos darwin[0-8].*) #(vi
2675 1.1.1.2 christos cf_xopen_source="-D_APPLE_C_SOURCE"
2676 1.1.1.2 christos ;;
2677 1.1.1.2 christos darwin*) #(vi
2678 1.1.1.2 christos cf_xopen_source="-D_DARWIN_C_SOURCE"
2679 1.1.1.2 christos ;;
2680 1.1.1.2 christos freebsd*|dragonfly*) #(vi
2681 1.1.1.2 christos # 5.x headers associate
2682 1.1.1.2 christos # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2683 1.1.1.2 christos # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2684 1.1.1.2 christos cf_POSIX_C_SOURCE=200112L
2685 1.1.1.2 christos cf_XOPEN_SOURCE=600
2686 1.1.1.2 christos cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2687 1.1.1.2 christos ;;
2688 1.1.1.2 christos hpux11*) #(vi
2689 1.1.1.2 christos cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2690 1.1.1.2 christos ;;
2691 1.1.1.2 christos hpux*) #(vi
2692 1.1.1.2 christos cf_xopen_source="-D_HPUX_SOURCE"
2693 1.1.1.2 christos ;;
2694 1.1.1.2 christos irix[56].*) #(vi
2695 1.1.1.2 christos cf_xopen_source="-D_SGI_SOURCE"
2696 1.1.1.2 christos ;;
2697 1.1.1.2 christos linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2698 1.1.1.2 christos
2699 1.1.1.3 christos echo "$as_me:2699: checking if we must define _GNU_SOURCE" >&5
2700 1.1.1.2 christos echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2701 1.1.1.2 christos if test "${cf_cv_gnu_source+set}" = set; then
2702 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2703 1.1.1.2 christos else
2704 1.1.1.2 christos
2705 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
2706 1.1.1.3 christos #line 2706 "configure"
2707 1.1.1.2 christos #include "confdefs.h"
2708 1.1.1.2 christos #include <sys/types.h>
2709 1.1.1.2 christos int
2710 1.1.1.2 christos main ()
2711 1.1.1.2 christos {
2712 1.1.1.2 christos
2713 1.1.1.2 christos #ifndef _XOPEN_SOURCE
2714 1.1.1.2 christos make an error
2715 1.1.1.2 christos #endif
2716 1.1.1.2 christos ;
2717 1.1.1.2 christos return 0;
2718 1.1.1.2 christos }
2719 1.1.1.2 christos _ACEOF
2720 1.1.1.2 christos rm -f conftest.$ac_objext
2721 1.1.1.3 christos if { (eval echo "$as_me:2721: \"$ac_compile\"") >&5
2722 1.1.1.2 christos (eval $ac_compile) 2>&5
2723 1.1.1.2 christos ac_status=$?
2724 1.1.1.3 christos echo "$as_me:2724: \$? = $ac_status" >&5
2725 1.1.1.2 christos (exit $ac_status); } &&
2726 1.1.1.2 christos { ac_try='test -s conftest.$ac_objext'
2727 1.1.1.3 christos { (eval echo "$as_me:2727: \"$ac_try\"") >&5
2728 1.1.1.2 christos (eval $ac_try) 2>&5
2729 1.1.1.2 christos ac_status=$?
2730 1.1.1.3 christos echo "$as_me:2730: \$? = $ac_status" >&5
2731 1.1.1.2 christos (exit $ac_status); }; }; then
2732 1.1.1.2 christos cf_cv_gnu_source=no
2733 1.1.1.2 christos else
2734 1.1.1.2 christos echo "$as_me: failed program was:" >&5
2735 1.1.1.2 christos cat conftest.$ac_ext >&5
2736 1.1.1.2 christos cf_save="$CPPFLAGS"
2737 1.1.1.2 christos CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2738 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
2739 1.1.1.3 christos #line 2739 "configure"
2740 1.1.1.2 christos #include "confdefs.h"
2741 1.1.1.2 christos #include <sys/types.h>
2742 1.1.1.2 christos int
2743 1.1.1.2 christos main ()
2744 1.1.1.2 christos {
2745 1.1.1.2 christos
2746 1.1.1.2 christos #ifdef _XOPEN_SOURCE
2747 1.1.1.2 christos make an error
2748 1.1.1.2 christos #endif
2749 1.1.1.2 christos ;
2750 1.1.1.2 christos return 0;
2751 1.1.1.2 christos }
2752 1.1.1.2 christos _ACEOF
2753 1.1.1.2 christos rm -f conftest.$ac_objext
2754 1.1.1.3 christos if { (eval echo "$as_me:2754: \"$ac_compile\"") >&5
2755 1.1.1.2 christos (eval $ac_compile) 2>&5
2756 1.1.1.2 christos ac_status=$?
2757 1.1.1.3 christos echo "$as_me:2757: \$? = $ac_status" >&5
2758 1.1.1.2 christos (exit $ac_status); } &&
2759 1.1.1.2 christos { ac_try='test -s conftest.$ac_objext'
2760 1.1.1.3 christos { (eval echo "$as_me:2760: \"$ac_try\"") >&5
2761 1.1.1.2 christos (eval $ac_try) 2>&5
2762 1.1.1.2 christos ac_status=$?
2763 1.1.1.3 christos echo "$as_me:2763: \$? = $ac_status" >&5
2764 1.1.1.2 christos (exit $ac_status); }; }; then
2765 1.1.1.2 christos cf_cv_gnu_source=no
2766 1.1.1.2 christos else
2767 1.1.1.2 christos echo "$as_me: failed program was:" >&5
2768 1.1.1.2 christos cat conftest.$ac_ext >&5
2769 1.1.1.2 christos cf_cv_gnu_source=yes
2770 1.1.1.2 christos fi
2771 1.1.1.2 christos rm -f conftest.$ac_objext conftest.$ac_ext
2772 1.1.1.2 christos CPPFLAGS="$cf_save"
2773 1.1.1.2 christos
2774 1.1.1.2 christos fi
2775 1.1.1.2 christos rm -f conftest.$ac_objext conftest.$ac_ext
2776 1.1.1.2 christos
2777 1.1.1.2 christos fi
2778 1.1.1.3 christos echo "$as_me:2778: result: $cf_cv_gnu_source" >&5
2779 1.1.1.2 christos echo "${ECHO_T}$cf_cv_gnu_source" >&6
2780 1.1.1.2 christos test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2781 1.1.1.2 christos
2782 1.1.1.2 christos ;;
2783 1.1.1.2 christos mirbsd*) #(vi
2784 1.1.1.2 christos # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2785 1.1.1.2 christos ;;
2786 1.1.1.2 christos netbsd*) #(vi
2787 1.1.1.3 christos cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2788 1.1.1.2 christos ;;
2789 1.1.1.2 christos openbsd*) #(vi
2790 1.1.1.2 christos # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2791 1.1.1.2 christos ;;
2792 1.1.1.2 christos osf[45]*) #(vi
2793 1.1.1.2 christos cf_xopen_source="-D_OSF_SOURCE"
2794 1.1.1.2 christos ;;
2795 1.1.1.2 christos nto-qnx*) #(vi
2796 1.1.1.2 christos cf_xopen_source="-D_QNX_SOURCE"
2797 1.1.1.2 christos ;;
2798 1.1.1.2 christos sco*) #(vi
2799 1.1.1.2 christos # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2800 1.1.1.2 christos ;;
2801 1.1.1.2 christos solaris2.1[0-9]) #(vi
2802 1.1.1.2 christos cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2803 1.1.1.2 christos ;;
2804 1.1.1.2 christos solaris2.[1-9]) #(vi
2805 1.1.1.2 christos cf_xopen_source="-D__EXTENSIONS__"
2806 1.1.1.2 christos ;;
2807 1.1.1.2 christos *)
2808 1.1.1.3 christos echo "$as_me:2808: checking if we should define _XOPEN_SOURCE" >&5
2809 1.1.1.2 christos echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2810 1.1.1.2 christos if test "${cf_cv_xopen_source+set}" = set; then
2811 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2812 1.1.1.2 christos else
2813 1.1.1.2 christos
2814 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
2815 1.1.1.3 christos #line 2815 "configure"
2816 1.1.1.2 christos #include "confdefs.h"
2817 1.1.1.2 christos #include <sys/types.h>
2818 1.1.1.2 christos int
2819 1.1.1.2 christos main ()
2820 1.1.1.2 christos {
2821 1.1.1.2 christos
2822 1.1.1.2 christos #ifndef _XOPEN_SOURCE
2823 1.1.1.2 christos make an error
2824 1.1.1.2 christos #endif
2825 1.1.1.2 christos ;
2826 1.1.1.2 christos return 0;
2827 1.1.1.2 christos }
2828 1.1.1.2 christos _ACEOF
2829 1.1.1.2 christos rm -f conftest.$ac_objext
2830 1.1.1.3 christos if { (eval echo "$as_me:2830: \"$ac_compile\"") >&5
2831 1.1.1.2 christos (eval $ac_compile) 2>&5
2832 1.1.1.2 christos ac_status=$?
2833 1.1.1.3 christos echo "$as_me:2833: \$? = $ac_status" >&5
2834 1.1.1.2 christos (exit $ac_status); } &&
2835 1.1.1.2 christos { ac_try='test -s conftest.$ac_objext'
2836 1.1.1.3 christos { (eval echo "$as_me:2836: \"$ac_try\"") >&5
2837 1.1.1.2 christos (eval $ac_try) 2>&5
2838 1.1.1.2 christos ac_status=$?
2839 1.1.1.3 christos echo "$as_me:2839: \$? = $ac_status" >&5
2840 1.1.1.2 christos (exit $ac_status); }; }; then
2841 1.1.1.2 christos cf_cv_xopen_source=no
2842 1.1.1.2 christos else
2843 1.1.1.2 christos echo "$as_me: failed program was:" >&5
2844 1.1.1.2 christos cat conftest.$ac_ext >&5
2845 1.1.1.2 christos cf_save="$CPPFLAGS"
2846 1.1.1.2 christos CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2847 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
2848 1.1.1.3 christos #line 2848 "configure"
2849 1.1.1.2 christos #include "confdefs.h"
2850 1.1.1.2 christos #include <sys/types.h>
2851 1.1.1.2 christos int
2852 1.1.1.2 christos main ()
2853 1.1.1.2 christos {
2854 1.1.1.2 christos
2855 1.1.1.2 christos #ifdef _XOPEN_SOURCE
2856 1.1.1.2 christos make an error
2857 1.1.1.2 christos #endif
2858 1.1.1.2 christos ;
2859 1.1.1.2 christos return 0;
2860 1.1.1.2 christos }
2861 1.1.1.2 christos _ACEOF
2862 1.1.1.2 christos rm -f conftest.$ac_objext
2863 1.1.1.3 christos if { (eval echo "$as_me:2863: \"$ac_compile\"") >&5
2864 1.1.1.2 christos (eval $ac_compile) 2>&5
2865 1.1.1.2 christos ac_status=$?
2866 1.1.1.3 christos echo "$as_me:2866: \$? = $ac_status" >&5
2867 1.1.1.2 christos (exit $ac_status); } &&
2868 1.1.1.2 christos { ac_try='test -s conftest.$ac_objext'
2869 1.1.1.3 christos { (eval echo "$as_me:2869: \"$ac_try\"") >&5
2870 1.1.1.2 christos (eval $ac_try) 2>&5
2871 1.1.1.2 christos ac_status=$?
2872 1.1.1.3 christos echo "$as_me:2872: \$? = $ac_status" >&5
2873 1.1.1.2 christos (exit $ac_status); }; }; then
2874 1.1.1.2 christos cf_cv_xopen_source=no
2875 1.1.1.2 christos else
2876 1.1.1.2 christos echo "$as_me: failed program was:" >&5
2877 1.1.1.2 christos cat conftest.$ac_ext >&5
2878 1.1.1.2 christos cf_cv_xopen_source=$cf_XOPEN_SOURCE
2879 1.1.1.2 christos fi
2880 1.1.1.2 christos rm -f conftest.$ac_objext conftest.$ac_ext
2881 1.1.1.2 christos CPPFLAGS="$cf_save"
2882 1.1.1.2 christos
2883 1.1.1.2 christos fi
2884 1.1.1.2 christos rm -f conftest.$ac_objext conftest.$ac_ext
2885 1.1.1.2 christos
2886 1.1.1.2 christos fi
2887 1.1.1.3 christos echo "$as_me:2887: result: $cf_cv_xopen_source" >&5
2888 1.1.1.2 christos echo "${ECHO_T}$cf_cv_xopen_source" >&6
2889 1.1.1.2 christos if test "$cf_cv_xopen_source" != no ; then
2890 1.1.1.2 christos
2891 1.1.1.2 christos CFLAGS=`echo "$CFLAGS" | \
2892 1.1.1.2 christos sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2893 1.1.1.2 christos -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2894 1.1.1.2 christos
2895 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
2896 1.1.1.2 christos sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2897 1.1.1.2 christos -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
2898 1.1.1.2 christos
2899 1.1.1.2 christos cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
2900 1.1 christos
2901 1.1 christos cf_fix_cppflags=no
2902 1.1 christos cf_new_cflags=
2903 1.1 christos cf_new_cppflags=
2904 1.1 christos cf_new_extra_cppflags=
2905 1.1 christos
2906 1.1.1.2 christos for cf_add_cflags in $cf_temp_xopen_source
2907 1.1 christos do
2908 1.1 christos case $cf_fix_cppflags in
2909 1.1 christos no)
2910 1.1 christos case $cf_add_cflags in #(vi
2911 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2912 1.1 christos case $cf_add_cflags in
2913 1.1 christos -D*)
2914 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2915 1.1 christos
2916 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2917 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
2918 1.1.1.2 christos && cf_fix_cppflags=yes
2919 1.1 christos
2920 1.1 christos if test $cf_fix_cppflags = yes ; then
2921 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2922 1.1 christos continue
2923 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
2924 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2925 1.1 christos continue
2926 1.1 christos fi
2927 1.1 christos ;;
2928 1.1 christos esac
2929 1.1 christos case "$CPPFLAGS" in
2930 1.1 christos *$cf_add_cflags) #(vi
2931 1.1 christos ;;
2932 1.1 christos *) #(vi
2933 1.1.1.2 christos case $cf_add_cflags in #(vi
2934 1.1.1.2 christos -D*)
2935 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2936 1.1.1.2 christos
2937 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
2938 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2939 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2940 1.1.1.2 christos
2941 1.1.1.2 christos ;;
2942 1.1.1.2 christos esac
2943 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2944 1.1 christos ;;
2945 1.1 christos esac
2946 1.1 christos ;;
2947 1.1 christos *)
2948 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2949 1.1 christos ;;
2950 1.1 christos esac
2951 1.1 christos ;;
2952 1.1 christos yes)
2953 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2954 1.1 christos
2955 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2956 1.1 christos
2957 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2958 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
2959 1.1.1.2 christos && cf_fix_cppflags=no
2960 1.1 christos ;;
2961 1.1 christos esac
2962 1.1 christos done
2963 1.1 christos
2964 1.1 christos if test -n "$cf_new_cflags" ; then
2965 1.1 christos
2966 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
2967 1.1 christos fi
2968 1.1 christos
2969 1.1 christos if test -n "$cf_new_cppflags" ; then
2970 1.1 christos
2971 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2972 1.1 christos fi
2973 1.1 christos
2974 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
2975 1.1 christos
2976 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2977 1.1 christos fi
2978 1.1 christos
2979 1.1.1.2 christos fi
2980 1.1.1.2 christos
2981 1.1.1.2 christos cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2982 1.1.1.2 christos
2983 1.1.1.2 christos cf_save_CFLAGS="$CFLAGS"
2984 1.1.1.2 christos cf_save_CPPFLAGS="$CPPFLAGS"
2985 1.1.1.2 christos
2986 1.1.1.2 christos cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2987 1.1.1.2 christos sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2988 1.1.1.2 christos -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2989 1.1.1.2 christos
2990 1.1.1.2 christos cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2991 1.1.1.2 christos sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2992 1.1.1.2 christos -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2993 1.1.1.2 christos
2994 1.1.1.3 christos echo "$as_me:2994: checking if we should define _POSIX_C_SOURCE" >&5
2995 1.1.1.2 christos echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2996 1.1.1.2 christos if test "${cf_cv_posix_c_source+set}" = set; then
2997 1.1.1.2 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2998 1.1.1.2 christos else
2999 1.1.1.2 christos
3000 1.1.1.3 christos echo "${as_me:-configure}:3000: testing if the symbol is already defined go no further ..." 1>&5
3001 1.1.1.2 christos
3002 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3003 1.1.1.3 christos #line 3003 "configure"
3004 1.1 christos #include "confdefs.h"
3005 1.1.1.2 christos #include <sys/types.h>
3006 1.1.1.2 christos int
3007 1.1.1.2 christos main ()
3008 1.1.1.2 christos {
3009 1.1 christos
3010 1.1.1.2 christos #ifndef _POSIX_C_SOURCE
3011 1.1.1.2 christos make an error
3012 1.1 christos #endif
3013 1.1.1.2 christos ;
3014 1.1.1.2 christos return 0;
3015 1.1.1.2 christos }
3016 1.1.1.2 christos _ACEOF
3017 1.1.1.2 christos rm -f conftest.$ac_objext
3018 1.1.1.3 christos if { (eval echo "$as_me:3018: \"$ac_compile\"") >&5
3019 1.1.1.2 christos (eval $ac_compile) 2>&5
3020 1.1.1.2 christos ac_status=$?
3021 1.1.1.3 christos echo "$as_me:3021: \$? = $ac_status" >&5
3022 1.1.1.2 christos (exit $ac_status); } &&
3023 1.1.1.2 christos { ac_try='test -s conftest.$ac_objext'
3024 1.1.1.3 christos { (eval echo "$as_me:3024: \"$ac_try\"") >&5
3025 1.1.1.2 christos (eval $ac_try) 2>&5
3026 1.1.1.2 christos ac_status=$?
3027 1.1.1.3 christos echo "$as_me:3027: \$? = $ac_status" >&5
3028 1.1.1.2 christos (exit $ac_status); }; }; then
3029 1.1.1.2 christos cf_cv_posix_c_source=no
3030 1.1.1.2 christos else
3031 1.1.1.2 christos echo "$as_me: failed program was:" >&5
3032 1.1.1.2 christos cat conftest.$ac_ext >&5
3033 1.1.1.2 christos cf_want_posix_source=no
3034 1.1.1.2 christos case .$cf_POSIX_C_SOURCE in #(vi
3035 1.1.1.2 christos .[12]??*) #(vi
3036 1.1.1.2 christos cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3037 1.1.1.2 christos ;;
3038 1.1.1.2 christos .2) #(vi
3039 1.1.1.2 christos cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3040 1.1.1.2 christos cf_want_posix_source=yes
3041 1.1.1.2 christos ;;
3042 1.1.1.2 christos .*)
3043 1.1.1.2 christos cf_want_posix_source=yes
3044 1.1.1.2 christos ;;
3045 1.1.1.2 christos esac
3046 1.1.1.2 christos if test "$cf_want_posix_source" = yes ; then
3047 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
3048 1.1.1.3 christos #line 3048 "configure"
3049 1.1.1.2 christos #include "confdefs.h"
3050 1.1.1.2 christos #include <sys/types.h>
3051 1.1.1.2 christos int
3052 1.1.1.2 christos main ()
3053 1.1.1.2 christos {
3054 1.1.1.2 christos
3055 1.1.1.2 christos #ifdef _POSIX_SOURCE
3056 1.1.1.2 christos make an error
3057 1.1 christos #endif
3058 1.1.1.2 christos ;
3059 1.1.1.2 christos return 0;
3060 1.1.1.2 christos }
3061 1.1.1.2 christos _ACEOF
3062 1.1.1.2 christos rm -f conftest.$ac_objext
3063 1.1.1.3 christos if { (eval echo "$as_me:3063: \"$ac_compile\"") >&5
3064 1.1.1.2 christos (eval $ac_compile) 2>&5
3065 1.1.1.2 christos ac_status=$?
3066 1.1.1.3 christos echo "$as_me:3066: \$? = $ac_status" >&5
3067 1.1.1.2 christos (exit $ac_status); } &&
3068 1.1.1.2 christos { ac_try='test -s conftest.$ac_objext'
3069 1.1.1.3 christos { (eval echo "$as_me:3069: \"$ac_try\"") >&5
3070 1.1.1.2 christos (eval $ac_try) 2>&5
3071 1.1.1.2 christos ac_status=$?
3072 1.1.1.3 christos echo "$as_me:3072: \$? = $ac_status" >&5
3073 1.1.1.2 christos (exit $ac_status); }; }; then
3074 1.1.1.2 christos :
3075 1.1.1.2 christos else
3076 1.1.1.2 christos echo "$as_me: failed program was:" >&5
3077 1.1.1.2 christos cat conftest.$ac_ext >&5
3078 1.1.1.2 christos cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3079 1.1.1.2 christos fi
3080 1.1.1.2 christos rm -f conftest.$ac_objext conftest.$ac_ext
3081 1.1.1.2 christos fi
3082 1.1.1.2 christos
3083 1.1.1.3 christos echo "${as_me:-configure}:3083: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3084 1.1.1.2 christos
3085 1.1.1.2 christos CFLAGS="$cf_trim_CFLAGS"
3086 1.1.1.2 christos CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3087 1.1.1.2 christos
3088 1.1.1.3 christos echo "${as_me:-configure}:3088: testing if the second compile does not leave our definition intact error ..." 1>&5
3089 1.1 christos
3090 1.1.1.2 christos cat >conftest.$ac_ext <<_ACEOF
3091 1.1.1.3 christos #line 3091 "configure"
3092 1.1.1.2 christos #include "confdefs.h"
3093 1.1.1.2 christos #include <sys/types.h>
3094 1.1 christos int
3095 1.1 christos main ()
3096 1.1 christos {
3097 1.1 christos
3098 1.1.1.2 christos #ifndef _POSIX_C_SOURCE
3099 1.1.1.2 christos make an error
3100 1.1.1.2 christos #endif
3101 1.1 christos ;
3102 1.1 christos return 0;
3103 1.1 christos }
3104 1.1 christos _ACEOF
3105 1.1 christos rm -f conftest.$ac_objext
3106 1.1.1.3 christos if { (eval echo "$as_me:3106: \"$ac_compile\"") >&5
3107 1.1 christos (eval $ac_compile) 2>&5
3108 1.1 christos ac_status=$?
3109 1.1.1.3 christos echo "$as_me:3109: \$? = $ac_status" >&5
3110 1.1 christos (exit $ac_status); } &&
3111 1.1 christos { ac_try='test -s conftest.$ac_objext'
3112 1.1.1.3 christos { (eval echo "$as_me:3112: \"$ac_try\"") >&5
3113 1.1 christos (eval $ac_try) 2>&5
3114 1.1 christos ac_status=$?
3115 1.1.1.3 christos echo "$as_me:3115: \$? = $ac_status" >&5
3116 1.1 christos (exit $ac_status); }; }; then
3117 1.1.1.2 christos :
3118 1.1 christos else
3119 1.1 christos echo "$as_me: failed program was:" >&5
3120 1.1 christos cat conftest.$ac_ext >&5
3121 1.1.1.2 christos cf_cv_posix_c_source=no
3122 1.1 christos fi
3123 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
3124 1.1.1.2 christos CFLAGS="$cf_save_CFLAGS"
3125 1.1.1.2 christos CPPFLAGS="$cf_save_CPPFLAGS"
3126 1.1 christos
3127 1.1 christos fi
3128 1.1.1.2 christos rm -f conftest.$ac_objext conftest.$ac_ext
3129 1.1 christos
3130 1.1.1.2 christos fi
3131 1.1.1.3 christos echo "$as_me:3131: result: $cf_cv_posix_c_source" >&5
3132 1.1.1.2 christos echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3133 1.1.1.2 christos
3134 1.1.1.2 christos if test "$cf_cv_posix_c_source" != no ; then
3135 1.1.1.2 christos CFLAGS="$cf_trim_CFLAGS"
3136 1.1.1.2 christos CPPFLAGS="$cf_trim_CPPFLAGS"
3137 1.1 christos
3138 1.1 christos cf_fix_cppflags=no
3139 1.1 christos cf_new_cflags=
3140 1.1 christos cf_new_cppflags=
3141 1.1 christos cf_new_extra_cppflags=
3142 1.1 christos
3143 1.1.1.2 christos for cf_add_cflags in $cf_cv_posix_c_source
3144 1.1 christos do
3145 1.1 christos case $cf_fix_cppflags in
3146 1.1 christos no)
3147 1.1 christos case $cf_add_cflags in #(vi
3148 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3149 1.1 christos case $cf_add_cflags in
3150 1.1 christos -D*)
3151 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3152 1.1 christos
3153 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3154 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
3155 1.1.1.2 christos && cf_fix_cppflags=yes
3156 1.1 christos
3157 1.1 christos if test $cf_fix_cppflags = yes ; then
3158 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3159 1.1 christos continue
3160 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
3161 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3162 1.1 christos continue
3163 1.1 christos fi
3164 1.1 christos ;;
3165 1.1 christos esac
3166 1.1 christos case "$CPPFLAGS" in
3167 1.1 christos *$cf_add_cflags) #(vi
3168 1.1 christos ;;
3169 1.1 christos *) #(vi
3170 1.1.1.2 christos case $cf_add_cflags in #(vi
3171 1.1.1.2 christos -D*)
3172 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3173 1.1.1.2 christos
3174 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
3175 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3176 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3177 1.1.1.2 christos
3178 1.1.1.2 christos ;;
3179 1.1.1.2 christos esac
3180 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3181 1.1 christos ;;
3182 1.1 christos esac
3183 1.1 christos ;;
3184 1.1 christos *)
3185 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3186 1.1 christos ;;
3187 1.1 christos esac
3188 1.1 christos ;;
3189 1.1 christos yes)
3190 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3191 1.1 christos
3192 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3193 1.1 christos
3194 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3195 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
3196 1.1.1.2 christos && cf_fix_cppflags=no
3197 1.1 christos ;;
3198 1.1 christos esac
3199 1.1 christos done
3200 1.1 christos
3201 1.1 christos if test -n "$cf_new_cflags" ; then
3202 1.1 christos
3203 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
3204 1.1 christos fi
3205 1.1 christos
3206 1.1 christos if test -n "$cf_new_cppflags" ; then
3207 1.1 christos
3208 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3209 1.1 christos fi
3210 1.1 christos
3211 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
3212 1.1 christos
3213 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3214 1.1 christos fi
3215 1.1 christos
3216 1.1.1.2 christos fi
3217 1.1.1.2 christos
3218 1.1.1.2 christos ;;
3219 1.1.1.2 christos esac
3220 1.1.1.2 christos
3221 1.1.1.2 christos if test -n "$cf_xopen_source" ; then
3222 1.1.1.2 christos
3223 1.1.1.2 christos cf_fix_cppflags=no
3224 1.1.1.2 christos cf_new_cflags=
3225 1.1.1.2 christos cf_new_cppflags=
3226 1.1.1.2 christos cf_new_extra_cppflags=
3227 1.1.1.2 christos
3228 1.1.1.2 christos for cf_add_cflags in $cf_xopen_source
3229 1.1.1.2 christos do
3230 1.1.1.2 christos case $cf_fix_cppflags in
3231 1.1.1.2 christos no)
3232 1.1.1.2 christos case $cf_add_cflags in #(vi
3233 1.1.1.2 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3234 1.1.1.2 christos case $cf_add_cflags in
3235 1.1.1.2 christos -D*)
3236 1.1.1.2 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3237 1.1.1.2 christos
3238 1.1.1.2 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3239 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
3240 1.1.1.2 christos && cf_fix_cppflags=yes
3241 1.1.1.2 christos
3242 1.1.1.2 christos if test $cf_fix_cppflags = yes ; then
3243 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3244 1.1.1.2 christos continue
3245 1.1.1.2 christos elif test "${cf_tst_cflags}" = "\"'" ; then
3246 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3247 1.1.1.2 christos continue
3248 1.1.1.2 christos fi
3249 1.1.1.2 christos ;;
3250 1.1.1.2 christos esac
3251 1.1.1.2 christos case "$CPPFLAGS" in
3252 1.1.1.2 christos *$cf_add_cflags) #(vi
3253 1.1.1.2 christos ;;
3254 1.1.1.2 christos *) #(vi
3255 1.1.1.2 christos case $cf_add_cflags in #(vi
3256 1.1.1.2 christos -D*)
3257 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3258 1.1.1.2 christos
3259 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
3260 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3261 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3262 1.1.1.2 christos
3263 1.1.1.2 christos ;;
3264 1.1.1.2 christos esac
3265 1.1.1.2 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3266 1.1.1.2 christos ;;
3267 1.1.1.2 christos esac
3268 1.1.1.2 christos ;;
3269 1.1.1.2 christos *)
3270 1.1.1.2 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3271 1.1.1.2 christos ;;
3272 1.1.1.2 christos esac
3273 1.1.1.2 christos ;;
3274 1.1.1.2 christos yes)
3275 1.1.1.2 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3276 1.1.1.2 christos
3277 1.1.1.2 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3278 1.1.1.2 christos
3279 1.1.1.2 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3280 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
3281 1.1.1.2 christos && cf_fix_cppflags=no
3282 1.1.1.2 christos ;;
3283 1.1.1.2 christos esac
3284 1.1.1.2 christos done
3285 1.1.1.2 christos
3286 1.1.1.2 christos if test -n "$cf_new_cflags" ; then
3287 1.1 christos
3288 1.1.1.2 christos CFLAGS="$CFLAGS $cf_new_cflags"
3289 1.1 christos fi
3290 1.1.1.2 christos
3291 1.1.1.2 christos if test -n "$cf_new_cppflags" ; then
3292 1.1.1.2 christos
3293 1.1.1.2 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3294 1.1.1.2 christos fi
3295 1.1.1.2 christos
3296 1.1.1.2 christos if test -n "$cf_new_extra_cppflags" ; then
3297 1.1.1.2 christos
3298 1.1.1.2 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3299 1.1 christos fi
3300 1.1 christos
3301 1.1 christos fi
3302 1.1 christos
3303 1.1.1.3 christos ac_ext=c
3304 1.1.1.3 christos ac_cpp='$CPP $CPPFLAGS'
3305 1.1.1.3 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 1.1.1.3 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 1.1.1.3 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 1.1.1.3 christos ac_main_return=return
3309 1.1.1.3 christos echo "$as_me:3309: checking how to run the C preprocessor" >&5
3310 1.1.1.3 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3311 1.1.1.3 christos # On Suns, sometimes $CPP names a directory.
3312 1.1.1.3 christos if test -n "$CPP" && test -d "$CPP"; then
3313 1.1.1.3 christos CPP=
3314 1.1 christos fi
3315 1.1.1.3 christos if test -z "$CPP"; then
3316 1.1.1.3 christos if test "${ac_cv_prog_CPP+set}" = set; then
3317 1.1.1.3 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3318 1.1 christos else
3319 1.1.1.3 christos # Double quotes because CPP needs to be expanded
3320 1.1.1.3 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3321 1.1.1.3 christos do
3322 1.1.1.3 christos ac_preproc_ok=false
3323 1.1.1.3 christos for ac_c_preproc_warn_flag in '' yes
3324 1.1.1.3 christos do
3325 1.1.1.3 christos # Use a header file that comes with gcc, so configuring glibc
3326 1.1.1.3 christos # with a fresh cross-compiler works.
3327 1.1.1.3 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3328 1.1.1.3 christos # not just through cpp. "Syntax error" is here to catch this case.
3329 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3330 1.1.1.3 christos #line 3330 "configure"
3331 1.1 christos #include "confdefs.h"
3332 1.1.1.3 christos #include <assert.h>
3333 1.1.1.3 christos Syntax error
3334 1.1.1.3 christos _ACEOF
3335 1.1.1.3 christos if { (eval echo "$as_me:3335: \"$ac_cpp conftest.$ac_ext\"") >&5
3336 1.1.1.3 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3337 1.1 christos ac_status=$?
3338 1.1.1.3 christos egrep -v '^ *\+' conftest.er1 >conftest.err
3339 1.1.1.3 christos rm -f conftest.er1
3340 1.1.1.3 christos cat conftest.err >&5
3341 1.1.1.3 christos echo "$as_me:3341: \$? = $ac_status" >&5
3342 1.1.1.3 christos (exit $ac_status); } >/dev/null; then
3343 1.1.1.3 christos if test -s conftest.err; then
3344 1.1.1.3 christos ac_cpp_err=$ac_c_preproc_warn_flag
3345 1.1.1.3 christos else
3346 1.1.1.3 christos ac_cpp_err=
3347 1.1.1.3 christos fi
3348 1.1 christos else
3349 1.1.1.3 christos ac_cpp_err=yes
3350 1.1 christos fi
3351 1.1.1.3 christos if test -z "$ac_cpp_err"; then
3352 1.1.1.3 christos :
3353 1.1.1.3 christos else
3354 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3355 1.1.1.3 christos cat conftest.$ac_ext >&5
3356 1.1.1.3 christos # Broken: fails on valid input.
3357 1.1.1.3 christos continue
3358 1.1 christos fi
3359 1.1.1.3 christos rm -f conftest.err conftest.$ac_ext
3360 1.1 christos
3361 1.1.1.3 christos # OK, works on sane cases. Now check whether non-existent headers
3362 1.1.1.3 christos # can be detected and how.
3363 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3364 1.1.1.3 christos #line 3364 "configure"
3365 1.1.1.3 christos #include "confdefs.h"
3366 1.1.1.3 christos #include <ac_nonexistent.h>
3367 1.1.1.3 christos _ACEOF
3368 1.1.1.3 christos if { (eval echo "$as_me:3368: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 1.1.1.3 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 1.1.1.3 christos ac_status=$?
3371 1.1.1.3 christos egrep -v '^ *\+' conftest.er1 >conftest.err
3372 1.1.1.3 christos rm -f conftest.er1
3373 1.1.1.3 christos cat conftest.err >&5
3374 1.1.1.3 christos echo "$as_me:3374: \$? = $ac_status" >&5
3375 1.1.1.3 christos (exit $ac_status); } >/dev/null; then
3376 1.1.1.3 christos if test -s conftest.err; then
3377 1.1.1.3 christos ac_cpp_err=$ac_c_preproc_warn_flag
3378 1.1.1.3 christos else
3379 1.1.1.3 christos ac_cpp_err=
3380 1.1.1.3 christos fi
3381 1.1.1.3 christos else
3382 1.1.1.3 christos ac_cpp_err=yes
3383 1.1.1.3 christos fi
3384 1.1.1.3 christos if test -z "$ac_cpp_err"; then
3385 1.1.1.3 christos # Broken: success on invalid input.
3386 1.1.1.3 christos continue
3387 1.1.1.3 christos else
3388 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3389 1.1.1.3 christos cat conftest.$ac_ext >&5
3390 1.1.1.3 christos # Passes both tests.
3391 1.1.1.3 christos ac_preproc_ok=:
3392 1.1.1.3 christos break
3393 1.1.1.3 christos fi
3394 1.1.1.3 christos rm -f conftest.err conftest.$ac_ext
3395 1.1.1.3 christos
3396 1.1.1.3 christos done
3397 1.1.1.3 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3398 1.1.1.3 christos rm -f conftest.err conftest.$ac_ext
3399 1.1.1.3 christos if $ac_preproc_ok; then
3400 1.1.1.3 christos break
3401 1.1.1.3 christos fi
3402 1.1.1.3 christos
3403 1.1.1.3 christos done
3404 1.1.1.3 christos ac_cv_prog_CPP=$CPP
3405 1.1.1.3 christos
3406 1.1.1.3 christos fi
3407 1.1.1.3 christos CPP=$ac_cv_prog_CPP
3408 1.1.1.3 christos else
3409 1.1.1.3 christos ac_cv_prog_CPP=$CPP
3410 1.1.1.3 christos fi
3411 1.1.1.3 christos echo "$as_me:3411: result: $CPP" >&5
3412 1.1.1.3 christos echo "${ECHO_T}$CPP" >&6
3413 1.1.1.3 christos ac_preproc_ok=false
3414 1.1.1.3 christos for ac_c_preproc_warn_flag in '' yes
3415 1.1.1.3 christos do
3416 1.1.1.3 christos # Use a header file that comes with gcc, so configuring glibc
3417 1.1.1.3 christos # with a fresh cross-compiler works.
3418 1.1.1.3 christos # On the NeXT, cc -E runs the code through the compiler's parser,
3419 1.1.1.3 christos # not just through cpp. "Syntax error" is here to catch this case.
3420 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3421 1.1.1.3 christos #line 3421 "configure"
3422 1.1.1.3 christos #include "confdefs.h"
3423 1.1.1.3 christos #include <assert.h>
3424 1.1.1.3 christos Syntax error
3425 1.1.1.3 christos _ACEOF
3426 1.1.1.3 christos if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5
3427 1.1.1.3 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3428 1.1.1.3 christos ac_status=$?
3429 1.1.1.3 christos egrep -v '^ *\+' conftest.er1 >conftest.err
3430 1.1.1.3 christos rm -f conftest.er1
3431 1.1.1.3 christos cat conftest.err >&5
3432 1.1.1.3 christos echo "$as_me:3432: \$? = $ac_status" >&5
3433 1.1.1.3 christos (exit $ac_status); } >/dev/null; then
3434 1.1.1.3 christos if test -s conftest.err; then
3435 1.1.1.3 christos ac_cpp_err=$ac_c_preproc_warn_flag
3436 1.1.1.3 christos else
3437 1.1.1.3 christos ac_cpp_err=
3438 1.1.1.3 christos fi
3439 1.1.1.3 christos else
3440 1.1.1.3 christos ac_cpp_err=yes
3441 1.1.1.3 christos fi
3442 1.1.1.3 christos if test -z "$ac_cpp_err"; then
3443 1.1.1.3 christos :
3444 1.1.1.3 christos else
3445 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3446 1.1.1.3 christos cat conftest.$ac_ext >&5
3447 1.1.1.3 christos # Broken: fails on valid input.
3448 1.1.1.3 christos continue
3449 1.1.1.3 christos fi
3450 1.1.1.3 christos rm -f conftest.err conftest.$ac_ext
3451 1.1.1.3 christos
3452 1.1.1.3 christos # OK, works on sane cases. Now check whether non-existent headers
3453 1.1.1.3 christos # can be detected and how.
3454 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3455 1.1.1.3 christos #line 3455 "configure"
3456 1.1.1.3 christos #include "confdefs.h"
3457 1.1.1.3 christos #include <ac_nonexistent.h>
3458 1.1.1.3 christos _ACEOF
3459 1.1.1.3 christos if { (eval echo "$as_me:3459: \"$ac_cpp conftest.$ac_ext\"") >&5
3460 1.1.1.3 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3461 1.1.1.3 christos ac_status=$?
3462 1.1.1.3 christos egrep -v '^ *\+' conftest.er1 >conftest.err
3463 1.1.1.3 christos rm -f conftest.er1
3464 1.1.1.3 christos cat conftest.err >&5
3465 1.1.1.3 christos echo "$as_me:3465: \$? = $ac_status" >&5
3466 1.1.1.3 christos (exit $ac_status); } >/dev/null; then
3467 1.1.1.3 christos if test -s conftest.err; then
3468 1.1.1.3 christos ac_cpp_err=$ac_c_preproc_warn_flag
3469 1.1.1.3 christos else
3470 1.1.1.3 christos ac_cpp_err=
3471 1.1.1.3 christos fi
3472 1.1.1.3 christos else
3473 1.1.1.3 christos ac_cpp_err=yes
3474 1.1.1.3 christos fi
3475 1.1.1.3 christos if test -z "$ac_cpp_err"; then
3476 1.1.1.3 christos # Broken: success on invalid input.
3477 1.1.1.3 christos continue
3478 1.1.1.3 christos else
3479 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3480 1.1.1.3 christos cat conftest.$ac_ext >&5
3481 1.1.1.3 christos # Passes both tests.
3482 1.1.1.3 christos ac_preproc_ok=:
3483 1.1.1.3 christos break
3484 1.1.1.3 christos fi
3485 1.1.1.3 christos rm -f conftest.err conftest.$ac_ext
3486 1.1.1.3 christos
3487 1.1.1.3 christos done
3488 1.1.1.3 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3489 1.1.1.3 christos rm -f conftest.err conftest.$ac_ext
3490 1.1.1.3 christos if $ac_preproc_ok; then
3491 1.1.1.3 christos :
3492 1.1.1.3 christos else
3493 1.1.1.3 christos { { echo "$as_me:3493: error: C preprocessor \"$CPP\" fails sanity check" >&5
3494 1.1.1.3 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3495 1.1.1.3 christos { (exit 1); exit 1; }; }
3496 1.1.1.3 christos fi
3497 1.1.1.3 christos
3498 1.1.1.3 christos ac_ext=c
3499 1.1.1.3 christos ac_cpp='$CPP $CPPFLAGS'
3500 1.1.1.3 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 1.1.1.3 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 1.1.1.3 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 1.1.1.3 christos ac_main_return=return
3504 1.1.1.3 christos
3505 1.1.1.3 christos for ac_header in fcntl.h
3506 1.1.1.3 christos do
3507 1.1.1.3 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3508 1.1.1.3 christos echo "$as_me:3508: checking for $ac_header" >&5
3509 1.1.1.3 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3510 1.1.1.3 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then
3511 1.1.1.3 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3512 1.1.1.3 christos else
3513 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3514 1.1.1.3 christos #line 3514 "configure"
3515 1.1.1.3 christos #include "confdefs.h"
3516 1.1.1.3 christos #include <$ac_header>
3517 1.1.1.3 christos _ACEOF
3518 1.1.1.3 christos if { (eval echo "$as_me:3518: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 1.1.1.3 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520 1.1.1.3 christos ac_status=$?
3521 1.1.1.3 christos egrep -v '^ *\+' conftest.er1 >conftest.err
3522 1.1.1.3 christos rm -f conftest.er1
3523 1.1.1.3 christos cat conftest.err >&5
3524 1.1.1.3 christos echo "$as_me:3524: \$? = $ac_status" >&5
3525 1.1.1.3 christos (exit $ac_status); } >/dev/null; then
3526 1.1.1.3 christos if test -s conftest.err; then
3527 1.1.1.3 christos ac_cpp_err=$ac_c_preproc_warn_flag
3528 1.1.1.3 christos else
3529 1.1.1.3 christos ac_cpp_err=
3530 1.1.1.3 christos fi
3531 1.1.1.3 christos else
3532 1.1.1.3 christos ac_cpp_err=yes
3533 1.1.1.3 christos fi
3534 1.1.1.3 christos if test -z "$ac_cpp_err"; then
3535 1.1.1.3 christos eval "$as_ac_Header=yes"
3536 1.1.1.3 christos else
3537 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3538 1.1.1.3 christos cat conftest.$ac_ext >&5
3539 1.1.1.3 christos eval "$as_ac_Header=no"
3540 1.1.1.3 christos fi
3541 1.1.1.3 christos rm -f conftest.err conftest.$ac_ext
3542 1.1.1.3 christos fi
3543 1.1.1.3 christos echo "$as_me:3543: result: `eval echo '${'$as_ac_Header'}'`" >&5
3544 1.1.1.3 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3545 1.1.1.3 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then
3546 1.1.1.3 christos cat >>confdefs.h <<EOF
3547 1.1.1.3 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548 1.1.1.3 christos EOF
3549 1.1.1.3 christos
3550 1.1.1.3 christos fi
3551 1.1.1.3 christos done
3552 1.1.1.3 christos
3553 1.1.1.3 christos for ac_func in atexit
3554 1.1.1.3 christos do
3555 1.1.1.3 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3556 1.1.1.3 christos echo "$as_me:3556: checking for $ac_func" >&5
3557 1.1.1.3 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3558 1.1.1.3 christos if eval "test \"\${$as_ac_var+set}\" = set"; then
3559 1.1.1.3 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3560 1.1.1.3 christos else
3561 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3562 1.1.1.3 christos #line 3562 "configure"
3563 1.1.1.3 christos #include "confdefs.h"
3564 1.1.1.3 christos /* System header to define __stub macros and hopefully few prototypes,
3565 1.1.1.3 christos which can conflict with char $ac_func (); below. */
3566 1.1.1.3 christos #include <assert.h>
3567 1.1.1.3 christos /* Override any gcc2 internal prototype to avoid an error. */
3568 1.1.1.3 christos #ifdef __cplusplus
3569 1.1.1.3 christos extern "C"
3570 1.1.1.3 christos #endif
3571 1.1.1.3 christos /* We use char because int might match the return type of a gcc2
3572 1.1.1.3 christos builtin and then its argument prototype would still apply. */
3573 1.1.1.3 christos char $ac_func ();
3574 1.1.1.3 christos char (*f) ();
3575 1.1.1.3 christos
3576 1.1.1.3 christos int
3577 1.1.1.3 christos main ()
3578 1.1.1.3 christos {
3579 1.1.1.3 christos /* The GNU C library defines this for functions which it implements
3580 1.1.1.3 christos to always fail with ENOSYS. Some functions are actually named
3581 1.1.1.3 christos something starting with __ and the normal name is an alias. */
3582 1.1.1.3 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3583 1.1.1.3 christos choke me
3584 1.1.1.3 christos #else
3585 1.1.1.3 christos f = $ac_func;
3586 1.1.1.3 christos #endif
3587 1.1.1.3 christos
3588 1.1.1.3 christos ;
3589 1.1.1.3 christos return 0;
3590 1.1.1.3 christos }
3591 1.1.1.3 christos _ACEOF
3592 1.1.1.3 christos rm -f conftest.$ac_objext conftest$ac_exeext
3593 1.1.1.3 christos if { (eval echo "$as_me:3593: \"$ac_link\"") >&5
3594 1.1.1.3 christos (eval $ac_link) 2>&5
3595 1.1.1.3 christos ac_status=$?
3596 1.1.1.3 christos echo "$as_me:3596: \$? = $ac_status" >&5
3597 1.1.1.3 christos (exit $ac_status); } &&
3598 1.1.1.3 christos { ac_try='test -s conftest$ac_exeext'
3599 1.1.1.3 christos { (eval echo "$as_me:3599: \"$ac_try\"") >&5
3600 1.1.1.3 christos (eval $ac_try) 2>&5
3601 1.1.1.3 christos ac_status=$?
3602 1.1.1.3 christos echo "$as_me:3602: \$? = $ac_status" >&5
3603 1.1.1.3 christos (exit $ac_status); }; }; then
3604 1.1.1.3 christos eval "$as_ac_var=yes"
3605 1.1.1.3 christos else
3606 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3607 1.1.1.3 christos cat conftest.$ac_ext >&5
3608 1.1.1.3 christos eval "$as_ac_var=no"
3609 1.1.1.3 christos fi
3610 1.1.1.3 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3611 1.1.1.3 christos fi
3612 1.1.1.3 christos echo "$as_me:3612: result: `eval echo '${'$as_ac_var'}'`" >&5
3613 1.1.1.3 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3614 1.1.1.3 christos if test `eval echo '${'$as_ac_var'}'` = yes; then
3615 1.1.1.3 christos cat >>confdefs.h <<EOF
3616 1.1.1.3 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3617 1.1.1.3 christos EOF
3618 1.1.1.3 christos
3619 1.1.1.3 christos fi
3620 1.1.1.3 christos done
3621 1.1.1.3 christos
3622 1.1.1.3 christos echo "$as_me:3622: checking for working mkstemp" >&5
3623 1.1.1.3 christos echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3624 1.1.1.3 christos if test "${cf_cv_func_mkstemp+set}" = set; then
3625 1.1.1.3 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3626 1.1.1.3 christos else
3627 1.1.1.3 christos
3628 1.1.1.3 christos rm -rf conftest*
3629 1.1.1.3 christos if test "$cross_compiling" = yes; then
3630 1.1.1.3 christos echo "$as_me:3630: checking for mkstemp" >&5
3631 1.1.1.3 christos echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3632 1.1.1.3 christos if test "${ac_cv_func_mkstemp+set}" = set; then
3633 1.1.1.3 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3634 1.1.1.3 christos else
3635 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3636 1.1.1.3 christos #line 3636 "configure"
3637 1.1.1.3 christos #include "confdefs.h"
3638 1.1.1.3 christos /* System header to define __stub macros and hopefully few prototypes,
3639 1.1.1.3 christos which can conflict with char mkstemp (); below. */
3640 1.1.1.3 christos #include <assert.h>
3641 1.1.1.3 christos /* Override any gcc2 internal prototype to avoid an error. */
3642 1.1.1.3 christos #ifdef __cplusplus
3643 1.1.1.3 christos extern "C"
3644 1.1.1.3 christos #endif
3645 1.1.1.3 christos /* We use char because int might match the return type of a gcc2
3646 1.1.1.3 christos builtin and then its argument prototype would still apply. */
3647 1.1.1.3 christos char mkstemp ();
3648 1.1.1.3 christos char (*f) ();
3649 1.1.1.3 christos
3650 1.1.1.3 christos int
3651 1.1.1.3 christos main ()
3652 1.1.1.3 christos {
3653 1.1.1.3 christos /* The GNU C library defines this for functions which it implements
3654 1.1.1.3 christos to always fail with ENOSYS. Some functions are actually named
3655 1.1.1.3 christos something starting with __ and the normal name is an alias. */
3656 1.1.1.3 christos #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3657 1.1.1.3 christos choke me
3658 1.1.1.3 christos #else
3659 1.1.1.3 christos f = mkstemp;
3660 1.1.1.3 christos #endif
3661 1.1.1.3 christos
3662 1.1.1.3 christos ;
3663 1.1.1.3 christos return 0;
3664 1.1.1.3 christos }
3665 1.1.1.3 christos _ACEOF
3666 1.1.1.3 christos rm -f conftest.$ac_objext conftest$ac_exeext
3667 1.1.1.3 christos if { (eval echo "$as_me:3667: \"$ac_link\"") >&5
3668 1.1.1.3 christos (eval $ac_link) 2>&5
3669 1.1.1.3 christos ac_status=$?
3670 1.1.1.3 christos echo "$as_me:3670: \$? = $ac_status" >&5
3671 1.1.1.3 christos (exit $ac_status); } &&
3672 1.1.1.3 christos { ac_try='test -s conftest$ac_exeext'
3673 1.1.1.3 christos { (eval echo "$as_me:3673: \"$ac_try\"") >&5
3674 1.1.1.3 christos (eval $ac_try) 2>&5
3675 1.1.1.3 christos ac_status=$?
3676 1.1.1.3 christos echo "$as_me:3676: \$? = $ac_status" >&5
3677 1.1.1.3 christos (exit $ac_status); }; }; then
3678 1.1.1.3 christos ac_cv_func_mkstemp=yes
3679 1.1.1.3 christos else
3680 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3681 1.1.1.3 christos cat conftest.$ac_ext >&5
3682 1.1.1.3 christos ac_cv_func_mkstemp=no
3683 1.1.1.3 christos fi
3684 1.1.1.3 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3685 1.1.1.3 christos fi
3686 1.1.1.3 christos echo "$as_me:3686: result: $ac_cv_func_mkstemp" >&5
3687 1.1.1.3 christos echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3688 1.1.1.3 christos
3689 1.1.1.3 christos else
3690 1.1.1.3 christos cat >conftest.$ac_ext <<_ACEOF
3691 1.1.1.3 christos #line 3691 "configure"
3692 1.1.1.3 christos #include "confdefs.h"
3693 1.1.1.3 christos
3694 1.1.1.3 christos #include <sys/types.h>
3695 1.1.1.3 christos #include <stdlib.h>
3696 1.1.1.3 christos #include <stdio.h>
3697 1.1.1.3 christos #include <string.h>
3698 1.1.1.3 christos #include <sys/stat.h>
3699 1.1.1.3 christos int main()
3700 1.1.1.3 christos {
3701 1.1.1.3 christos char *tmpl = "conftestXXXXXX";
3702 1.1.1.3 christos char name[2][80];
3703 1.1.1.3 christos int n;
3704 1.1.1.3 christos int result = 0;
3705 1.1.1.3 christos int fd;
3706 1.1.1.3 christos struct stat sb;
3707 1.1.1.3 christos
3708 1.1.1.3 christos umask(077);
3709 1.1.1.3 christos for (n = 0; n < 2; ++n) {
3710 1.1.1.3 christos strcpy(name[n], tmpl);
3711 1.1.1.3 christos if ((fd = mkstemp(name[n])) >= 0) {
3712 1.1.1.3 christos if (!strcmp(name[n], tmpl)
3713 1.1.1.3 christos || stat(name[n], &sb) != 0
3714 1.1.1.3 christos || (sb.st_mode & S_IFMT) != S_IFREG
3715 1.1.1.3 christos || (sb.st_mode & 077) != 0) {
3716 1.1.1.3 christos result = 1;
3717 1.1.1.3 christos }
3718 1.1.1.3 christos close(fd);
3719 1.1.1.3 christos }
3720 1.1.1.3 christos }
3721 1.1.1.3 christos if (result == 0
3722 1.1.1.3 christos && !strcmp(name[0], name[1]))
3723 1.1.1.3 christos result = 1;
3724 1.1.1.3 christos ${cf_cv_main_return:-return}(result);
3725 1.1.1.3 christos }
3726 1.1.1.3 christos
3727 1.1.1.3 christos _ACEOF
3728 1.1.1.3 christos rm -f conftest$ac_exeext
3729 1.1.1.3 christos if { (eval echo "$as_me:3729: \"$ac_link\"") >&5
3730 1.1.1.3 christos (eval $ac_link) 2>&5
3731 1.1.1.3 christos ac_status=$?
3732 1.1.1.3 christos echo "$as_me:3732: \$? = $ac_status" >&5
3733 1.1.1.3 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3734 1.1.1.3 christos { (eval echo "$as_me:3734: \"$ac_try\"") >&5
3735 1.1.1.3 christos (eval $ac_try) 2>&5
3736 1.1.1.3 christos ac_status=$?
3737 1.1.1.3 christos echo "$as_me:3737: \$? = $ac_status" >&5
3738 1.1.1.3 christos (exit $ac_status); }; }; then
3739 1.1.1.3 christos cf_cv_func_mkstemp=yes
3740 1.1.1.3 christos
3741 1.1.1.3 christos else
3742 1.1.1.3 christos echo "$as_me: program exited with status $ac_status" >&5
3743 1.1.1.3 christos echo "$as_me: failed program was:" >&5
3744 1.1.1.3 christos cat conftest.$ac_ext >&5
3745 1.1.1.3 christos cf_cv_func_mkstemp=no
3746 1.1.1.3 christos
3747 1.1.1.3 christos fi
3748 1.1.1.3 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3749 1.1.1.3 christos fi
3750 1.1.1.3 christos
3751 1.1.1.3 christos fi
3752 1.1.1.3 christos echo "$as_me:3752: result: $cf_cv_func_mkstemp" >&5
3753 1.1.1.3 christos echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3754 1.1.1.3 christos if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
3755 1.1.1.3 christos cat >>confdefs.h <<\EOF
3756 1.1.1.3 christos #define HAVE_MKSTEMP 1
3757 1.1.1.3 christos EOF
3758 1.1.1.3 christos
3759 1.1.1.3 christos fi
3760 1.1.1.3 christos
3761 1.1.1.3 christos GCC_VERSION=none
3762 1.1.1.3 christos if test "$GCC" = yes ; then
3763 1.1.1.3 christos echo "$as_me:3763: checking version of $CC" >&5
3764 1.1.1.3 christos echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3765 1.1.1.3 christos GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3766 1.1.1.3 christos test -z "$GCC_VERSION" && GCC_VERSION=unknown
3767 1.1.1.3 christos echo "$as_me:3767: result: $GCC_VERSION" >&5
3768 1.1.1.3 christos echo "${ECHO_T}$GCC_VERSION" >&6
3769 1.1.1.3 christos fi
3770 1.1.1.3 christos
3771 1.1.1.3 christos if ( test "$GCC" = yes || test "$GXX" = yes )
3772 1.1.1.3 christos then
3773 1.1.1.3 christos echo "$as_me:3773: checking if you want to check for gcc warnings" >&5
3774 1.1.1.3 christos echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
3775 1.1.1.3 christos
3776 1.1.1.3 christos # Check whether --with-warnings or --without-warnings was given.
3777 1.1.1.3 christos if test "${with_warnings+set}" = set; then
3778 1.1.1.3 christos withval="$with_warnings"
3779 1.1.1.3 christos cf_opt_with_warnings=$withval
3780 1.1.1.3 christos else
3781 1.1.1.3 christos cf_opt_with_warnings=no
3782 1.1.1.3 christos fi;
3783 1.1.1.3 christos echo "$as_me:3783: result: $cf_opt_with_warnings" >&5
3784 1.1.1.3 christos echo "${ECHO_T}$cf_opt_with_warnings" >&6
3785 1.1.1.3 christos if test "$cf_opt_with_warnings" != no ; then
3786 1.1.1.3 christos
3787 1.1.1.3 christos if test "$GCC" = yes
3788 1.1.1.3 christos then
3789 1.1.1.3 christos cat > conftest.i <<EOF
3790 1.1.1.3 christos #ifndef GCC_PRINTF
3791 1.1.1.3 christos #define GCC_PRINTF 0
3792 1.1.1.3 christos #endif
3793 1.1.1.3 christos #ifndef GCC_SCANF
3794 1.1.1.3 christos #define GCC_SCANF 0
3795 1.1.1.3 christos #endif
3796 1.1.1.3 christos #ifndef GCC_NORETURN
3797 1.1.1.3 christos #define GCC_NORETURN /* nothing */
3798 1.1.1.3 christos #endif
3799 1.1.1.3 christos #ifndef GCC_UNUSED
3800 1.1.1.3 christos #define GCC_UNUSED /* nothing */
3801 1.1.1.3 christos #endif
3802 1.1.1.3 christos EOF
3803 1.1.1.3 christos if test "$GCC" = yes
3804 1.1.1.3 christos then
3805 1.1.1.3 christos { echo "$as_me:3805: checking for $CC __attribute__ directives..." >&5
3806 1.1.1.3 christos echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3807 1.1.1.3 christos cat > conftest.$ac_ext <<EOF
3808 1.1.1.3 christos #line 3808 "${as_me:-configure}"
3809 1.1.1.3 christos #include "confdefs.h"
3810 1.1.1.3 christos #include "conftest.h"
3811 1.1.1.3 christos #include "conftest.i"
3812 1.1.1.3 christos #if GCC_PRINTF
3813 1.1.1.3 christos #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3814 1.1.1.3 christos #else
3815 1.1.1.3 christos #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3816 1.1.1.3 christos #endif
3817 1.1.1.3 christos #if GCC_SCANF
3818 1.1.1.3 christos #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3819 1.1.1.3 christos #else
3820 1.1.1.3 christos #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3821 1.1.1.3 christos #endif
3822 1.1.1.3 christos extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3823 1.1.1.3 christos extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3824 1.1.1.3 christos extern void foo(void) GCC_NORETURN;
3825 1.1.1.3 christos int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3826 1.1.1.3 christos EOF
3827 1.1.1.3 christos cf_printf_attribute=no
3828 1.1.1.3 christos cf_scanf_attribute=no
3829 1.1.1.3 christos for cf_attribute in scanf printf unused noreturn
3830 1.1.1.3 christos do
3831 1.1.1.3 christos
3832 1.1.1.3 christos cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3833 1.1.1.3 christos
3834 1.1.1.3 christos cf_directive="__attribute__(($cf_attribute))"
3835 1.1.1.3 christos echo "checking for $CC $cf_directive" 1>&5
3836 1.1.1.3 christos
3837 1.1.1.3 christos case $cf_attribute in #(vi
3838 1.1.1.3 christos printf) #(vi
3839 1.1.1.3 christos cf_printf_attribute=yes
3840 1.1.1.3 christos cat >conftest.h <<EOF
3841 1.1.1.3 christos #define GCC_$cf_ATTRIBUTE 1
3842 1.1.1.3 christos EOF
3843 1.1.1.3 christos ;;
3844 1.1.1.3 christos scanf) #(vi
3845 1.1.1.3 christos cf_scanf_attribute=yes
3846 1.1.1.3 christos cat >conftest.h <<EOF
3847 1.1.1.3 christos #define GCC_$cf_ATTRIBUTE 1
3848 1.1.1.3 christos EOF
3849 1.1.1.3 christos ;;
3850 1.1.1.3 christos *) #(vi
3851 1.1.1.3 christos cat >conftest.h <<EOF
3852 1.1.1.3 christos #define GCC_$cf_ATTRIBUTE $cf_directive
3853 1.1.1.3 christos EOF
3854 1.1.1.3 christos ;;
3855 1.1.1.3 christos esac
3856 1.1.1.3 christos
3857 1.1.1.3 christos if { (eval echo "$as_me:3857: \"$ac_compile\"") >&5
3858 1.1.1.3 christos (eval $ac_compile) 2>&5
3859 1.1.1.3 christos ac_status=$?
3860 1.1.1.3 christos echo "$as_me:3860: \$? = $ac_status" >&5
3861 1.1.1.3 christos (exit $ac_status); }; then
3862 1.1.1.3 christos test -n "$verbose" && echo "$as_me:3862: result: ... $cf_attribute" >&5
3863 1.1.1.3 christos echo "${ECHO_T}... $cf_attribute" >&6
3864 1.1.1.3 christos cat conftest.h >>confdefs.h
3865 1.1.1.3 christos case $cf_attribute in #(vi
3866 1.1.1.3 christos printf) #(vi
3867 1.1.1.3 christos if test "$cf_printf_attribute" = no ; then
3868 1.1.1.3 christos cat >>confdefs.h <<EOF
3869 1.1.1.3 christos #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3870 1.1.1.3 christos EOF
3871 1.1.1.3 christos else
3872 1.1.1.3 christos cat >>confdefs.h <<EOF
3873 1.1.1.3 christos #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3874 1.1.1.3 christos EOF
3875 1.1.1.3 christos fi
3876 1.1.1.3 christos ;;
3877 1.1.1.3 christos scanf) #(vi
3878 1.1.1.3 christos if test "$cf_scanf_attribute" = no ; then
3879 1.1.1.3 christos cat >>confdefs.h <<EOF
3880 1.1.1.3 christos #define GCC_SCANFLIKE(fmt,var) /* nothing */
3881 1.1.1.3 christos EOF
3882 1.1.1.3 christos else
3883 1.1.1.3 christos cat >>confdefs.h <<EOF
3884 1.1.1.3 christos #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3885 1.1.1.3 christos EOF
3886 1.1.1.3 christos fi
3887 1.1.1.3 christos ;;
3888 1.1.1.3 christos esac
3889 1.1.1.3 christos fi
3890 1.1.1.3 christos done
3891 1.1.1.3 christos else
3892 1.1.1.3 christos fgrep define conftest.i >>confdefs.h
3893 1.1.1.3 christos fi
3894 1.1.1.3 christos rm -rf conftest*
3895 1.1.1.3 christos fi
3896 1.1.1.3 christos
3897 1.1.1.3 christos INTEL_COMPILER=no
3898 1.1.1.3 christos
3899 1.1.1.3 christos if test "$GCC" = yes ; then
3900 1.1.1.3 christos case $host_os in
3901 1.1 christos linux*|gnu*)
3902 1.1.1.3 christos echo "$as_me:3902: checking if this is really Intel C compiler" >&5
3903 1.1 christos echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3904 1.1 christos cf_save_CFLAGS="$CFLAGS"
3905 1.1 christos CFLAGS="$CFLAGS -no-gcc"
3906 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3907 1.1.1.3 christos #line 3907 "configure"
3908 1.1 christos #include "confdefs.h"
3909 1.1 christos
3910 1.1 christos int
3911 1.1 christos main ()
3912 1.1 christos {
3913 1.1 christos
3914 1.1 christos #ifdef __INTEL_COMPILER
3915 1.1 christos #else
3916 1.1 christos make an error
3917 1.1 christos #endif
3918 1.1 christos
3919 1.1 christos ;
3920 1.1 christos return 0;
3921 1.1 christos }
3922 1.1 christos _ACEOF
3923 1.1 christos rm -f conftest.$ac_objext
3924 1.1.1.3 christos if { (eval echo "$as_me:3924: \"$ac_compile\"") >&5
3925 1.1 christos (eval $ac_compile) 2>&5
3926 1.1 christos ac_status=$?
3927 1.1.1.3 christos echo "$as_me:3927: \$? = $ac_status" >&5
3928 1.1 christos (exit $ac_status); } &&
3929 1.1 christos { ac_try='test -s conftest.$ac_objext'
3930 1.1.1.3 christos { (eval echo "$as_me:3930: \"$ac_try\"") >&5
3931 1.1 christos (eval $ac_try) 2>&5
3932 1.1 christos ac_status=$?
3933 1.1.1.3 christos echo "$as_me:3933: \$? = $ac_status" >&5
3934 1.1 christos (exit $ac_status); }; }; then
3935 1.1 christos INTEL_COMPILER=yes
3936 1.1 christos cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3937 1.1 christos
3938 1.1 christos else
3939 1.1 christos echo "$as_me: failed program was:" >&5
3940 1.1 christos cat conftest.$ac_ext >&5
3941 1.1 christos fi
3942 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
3943 1.1 christos CFLAGS="$cf_save_CFLAGS"
3944 1.1.1.3 christos echo "$as_me:3944: result: $INTEL_COMPILER" >&5
3945 1.1 christos echo "${ECHO_T}$INTEL_COMPILER" >&6
3946 1.1 christos ;;
3947 1.1 christos esac
3948 1.1 christos fi
3949 1.1 christos
3950 1.1 christos cat > conftest.$ac_ext <<EOF
3951 1.1.1.3 christos #line 3951 "${as_me:-configure}"
3952 1.1 christos int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3953 1.1 christos EOF
3954 1.1 christos
3955 1.1 christos if test "$INTEL_COMPILER" = yes
3956 1.1 christos then
3957 1.1 christos # The "-wdXXX" options suppress warnings:
3958 1.1 christos # remark #1419: external declaration in primary source file
3959 1.1 christos # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3960 1.1 christos # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3961 1.1 christos # remark #193: zero used for undefined preprocessing identifier
3962 1.1 christos # remark #593: variable "curs_sb_left_arrow" was set but never used
3963 1.1 christos # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3964 1.1 christos # remark #869: parameter "tw" was never referenced
3965 1.1 christos # remark #981: operands are evaluated in unspecified order
3966 1.1 christos # warning #279: controlling expression is constant
3967 1.1 christos
3968 1.1.1.3 christos { echo "$as_me:3968: checking for $CC warning options..." >&5
3969 1.1 christos echo "$as_me: checking for $CC warning options..." >&6;}
3970 1.1 christos cf_save_CFLAGS="$CFLAGS"
3971 1.1 christos EXTRA_CFLAGS="-Wall"
3972 1.1 christos for cf_opt in \
3973 1.1 christos wd1419 \
3974 1.1 christos wd1683 \
3975 1.1 christos wd1684 \
3976 1.1 christos wd193 \
3977 1.1 christos wd593 \
3978 1.1 christos wd279 \
3979 1.1 christos wd810 \
3980 1.1 christos wd869 \
3981 1.1 christos wd981
3982 1.1 christos do
3983 1.1 christos CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3984 1.1.1.3 christos if { (eval echo "$as_me:3984: \"$ac_compile\"") >&5
3985 1.1 christos (eval $ac_compile) 2>&5
3986 1.1 christos ac_status=$?
3987 1.1.1.3 christos echo "$as_me:3987: \$? = $ac_status" >&5
3988 1.1 christos (exit $ac_status); }; then
3989 1.1.1.3 christos test -n "$verbose" && echo "$as_me:3989: result: ... -$cf_opt" >&5
3990 1.1 christos echo "${ECHO_T}... -$cf_opt" >&6
3991 1.1 christos EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3992 1.1 christos fi
3993 1.1 christos done
3994 1.1 christos CFLAGS="$cf_save_CFLAGS"
3995 1.1 christos
3996 1.1 christos elif test "$GCC" = yes
3997 1.1 christos then
3998 1.1.1.3 christos { echo "$as_me:3998: checking for $CC warning options..." >&5
3999 1.1 christos echo "$as_me: checking for $CC warning options..." >&6;}
4000 1.1 christos cf_save_CFLAGS="$CFLAGS"
4001 1.1.1.2 christos EXTRA_CFLAGS=
4002 1.1 christos cf_warn_CONST=""
4003 1.1 christos test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4004 1.1.1.2 christos for cf_opt in W Wall \
4005 1.1 christos Wbad-function-cast \
4006 1.1 christos Wcast-align \
4007 1.1 christos Wcast-qual \
4008 1.1 christos Winline \
4009 1.1 christos Wmissing-declarations \
4010 1.1 christos Wmissing-prototypes \
4011 1.1 christos Wnested-externs \
4012 1.1 christos Wpointer-arith \
4013 1.1 christos Wshadow \
4014 1.1 christos Wstrict-prototypes \
4015 1.1 christos Wundef $cf_warn_CONST Wwrite-strings
4016 1.1 christos do
4017 1.1 christos CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4018 1.1.1.3 christos if { (eval echo "$as_me:4018: \"$ac_compile\"") >&5
4019 1.1 christos (eval $ac_compile) 2>&5
4020 1.1 christos ac_status=$?
4021 1.1.1.3 christos echo "$as_me:4021: \$? = $ac_status" >&5
4022 1.1 christos (exit $ac_status); }; then
4023 1.1.1.3 christos test -n "$verbose" && echo "$as_me:4023: result: ... -$cf_opt" >&5
4024 1.1 christos echo "${ECHO_T}... -$cf_opt" >&6
4025 1.1 christos case $cf_opt in #(vi
4026 1.1 christos Wcast-qual) #(vi
4027 1.1 christos CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4028 1.1 christos ;;
4029 1.1 christos Winline) #(vi
4030 1.1 christos case $GCC_VERSION in
4031 1.1 christos [34].*)
4032 1.1 christos test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4033 1.1 christos
4034 1.1.1.3 christos echo "${as_me:-configure}:4034: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4035 1.1 christos
4036 1.1 christos continue;;
4037 1.1 christos esac
4038 1.1 christos ;;
4039 1.1 christos esac
4040 1.1 christos EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4041 1.1 christos fi
4042 1.1 christos done
4043 1.1 christos CFLAGS="$cf_save_CFLAGS"
4044 1.1 christos fi
4045 1.1.1.3 christos rm -rf conftest*
4046 1.1 christos
4047 1.1 christos fi
4048 1.1 christos fi
4049 1.1 christos
4050 1.1.1.3 christos echo "$as_me:4050: checking if you want to see long compiling messages" >&5
4051 1.1 christos echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4052 1.1 christos
4053 1.1 christos # Check whether --enable-echo or --disable-echo was given.
4054 1.1 christos if test "${enable_echo+set}" = set; then
4055 1.1 christos enableval="$enable_echo"
4056 1.1 christos test "$enableval" != no && enableval=yes
4057 1.1 christos if test "$enableval" != "yes" ; then
4058 1.1 christos
4059 1.1 christos ECHO_LT='--silent'
4060 1.1 christos ECHO_LD='@echo linking $@;'
4061 1.1.1.2 christos RULE_CC='@echo compiling $<'
4062 1.1.1.2 christos SHOW_CC='@echo compiling $@'
4063 1.1 christos ECHO_CC='@'
4064 1.1 christos
4065 1.1 christos else
4066 1.1 christos
4067 1.1 christos ECHO_LT=''
4068 1.1 christos ECHO_LD=''
4069 1.1.1.2 christos RULE_CC=''
4070 1.1.1.2 christos SHOW_CC=''
4071 1.1 christos ECHO_CC=''
4072 1.1 christos
4073 1.1 christos fi
4074 1.1 christos else
4075 1.1 christos enableval=yes
4076 1.1 christos
4077 1.1 christos ECHO_LT=''
4078 1.1 christos ECHO_LD=''
4079 1.1.1.2 christos RULE_CC=''
4080 1.1.1.2 christos SHOW_CC=''
4081 1.1 christos ECHO_CC=''
4082 1.1 christos
4083 1.1 christos fi;
4084 1.1.1.3 christos echo "$as_me:4084: result: $enableval" >&5
4085 1.1 christos echo "${ECHO_T}$enableval" >&6
4086 1.1 christos
4087 1.1 christos case $cf_cv_system_name in
4088 1.1 christos os2*)
4089 1.1 christos CFLAGS="$CFLAGS -Zmt"
4090 1.1 christos CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
4091 1.1 christos CXXFLAGS="$CXXFLAGS -Zmt"
4092 1.1 christos # autoconf's macro sets -Zexe and suffix both, which conflict:w
4093 1.1 christos LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
4094 1.1 christos ac_cv_exeext=.exe
4095 1.1 christos ;;
4096 1.1 christos esac
4097 1.1 christos
4098 1.1 christos PROG_EXT="$EXEEXT"
4099 1.1 christos
4100 1.1 christos test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
4101 1.1 christos #define PROG_EXT "$PROG_EXT"
4102 1.1 christos EOF
4103 1.1 christos
4104 1.1.1.3 christos echo "$as_me:4104: checking if you want to use dmalloc for testing" >&5
4105 1.1 christos echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4106 1.1 christos
4107 1.1 christos # Check whether --with-dmalloc or --without-dmalloc was given.
4108 1.1 christos if test "${with_dmalloc+set}" = set; then
4109 1.1 christos withval="$with_dmalloc"
4110 1.1 christos cat >>confdefs.h <<\EOF
4111 1.1 christos #define USE_DMALLOC 1
4112 1.1 christos EOF
4113 1.1 christos
4114 1.1 christos : ${with_cflags:=-g}
4115 1.1 christos : ${with_no_leaks:=yes}
4116 1.1 christos with_dmalloc=yes
4117 1.1 christos else
4118 1.1 christos with_dmalloc=
4119 1.1 christos fi;
4120 1.1.1.3 christos echo "$as_me:4120: result: ${with_dmalloc:-no}" >&5
4121 1.1 christos echo "${ECHO_T}${with_dmalloc:-no}" >&6
4122 1.1 christos
4123 1.1 christos case .$with_cflags in #(vi
4124 1.1 christos .*-g*)
4125 1.1 christos case .$CFLAGS in #(vi
4126 1.1 christos .*-g*) #(vi
4127 1.1 christos ;;
4128 1.1 christos *)
4129 1.1 christos
4130 1.1 christos cf_fix_cppflags=no
4131 1.1 christos cf_new_cflags=
4132 1.1 christos cf_new_cppflags=
4133 1.1 christos cf_new_extra_cppflags=
4134 1.1 christos
4135 1.1 christos for cf_add_cflags in -g
4136 1.1 christos do
4137 1.1 christos case $cf_fix_cppflags in
4138 1.1 christos no)
4139 1.1 christos case $cf_add_cflags in #(vi
4140 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4141 1.1 christos case $cf_add_cflags in
4142 1.1 christos -D*)
4143 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4144 1.1 christos
4145 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4146 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
4147 1.1.1.2 christos && cf_fix_cppflags=yes
4148 1.1 christos
4149 1.1 christos if test $cf_fix_cppflags = yes ; then
4150 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4151 1.1 christos continue
4152 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
4153 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4154 1.1 christos continue
4155 1.1 christos fi
4156 1.1 christos ;;
4157 1.1 christos esac
4158 1.1 christos case "$CPPFLAGS" in
4159 1.1 christos *$cf_add_cflags) #(vi
4160 1.1 christos ;;
4161 1.1 christos *) #(vi
4162 1.1.1.2 christos case $cf_add_cflags in #(vi
4163 1.1.1.2 christos -D*)
4164 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4165 1.1.1.2 christos
4166 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
4167 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4168 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4169 1.1.1.2 christos
4170 1.1.1.2 christos ;;
4171 1.1.1.2 christos esac
4172 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4173 1.1 christos ;;
4174 1.1 christos esac
4175 1.1 christos ;;
4176 1.1 christos *)
4177 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4178 1.1 christos ;;
4179 1.1 christos esac
4180 1.1 christos ;;
4181 1.1 christos yes)
4182 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4183 1.1 christos
4184 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4185 1.1 christos
4186 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4187 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
4188 1.1.1.2 christos && cf_fix_cppflags=no
4189 1.1 christos ;;
4190 1.1 christos esac
4191 1.1 christos done
4192 1.1 christos
4193 1.1 christos if test -n "$cf_new_cflags" ; then
4194 1.1 christos
4195 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
4196 1.1 christos fi
4197 1.1 christos
4198 1.1 christos if test -n "$cf_new_cppflags" ; then
4199 1.1 christos
4200 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4201 1.1 christos fi
4202 1.1 christos
4203 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
4204 1.1 christos
4205 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4206 1.1 christos fi
4207 1.1 christos
4208 1.1 christos ;;
4209 1.1 christos esac
4210 1.1 christos ;;
4211 1.1 christos esac
4212 1.1 christos
4213 1.1 christos if test "$with_dmalloc" = yes ; then
4214 1.1.1.3 christos echo "$as_me:4214: checking for dmalloc.h" >&5
4215 1.1 christos echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4216 1.1 christos if test "${ac_cv_header_dmalloc_h+set}" = set; then
4217 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4218 1.1 christos else
4219 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4220 1.1.1.3 christos #line 4220 "configure"
4221 1.1 christos #include "confdefs.h"
4222 1.1 christos #include <dmalloc.h>
4223 1.1 christos _ACEOF
4224 1.1.1.3 christos if { (eval echo "$as_me:4224: \"$ac_cpp conftest.$ac_ext\"") >&5
4225 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4226 1.1 christos ac_status=$?
4227 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
4228 1.1 christos rm -f conftest.er1
4229 1.1 christos cat conftest.err >&5
4230 1.1.1.3 christos echo "$as_me:4230: \$? = $ac_status" >&5
4231 1.1 christos (exit $ac_status); } >/dev/null; then
4232 1.1 christos if test -s conftest.err; then
4233 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
4234 1.1 christos else
4235 1.1 christos ac_cpp_err=
4236 1.1 christos fi
4237 1.1 christos else
4238 1.1 christos ac_cpp_err=yes
4239 1.1 christos fi
4240 1.1 christos if test -z "$ac_cpp_err"; then
4241 1.1 christos ac_cv_header_dmalloc_h=yes
4242 1.1 christos else
4243 1.1 christos echo "$as_me: failed program was:" >&5
4244 1.1 christos cat conftest.$ac_ext >&5
4245 1.1 christos ac_cv_header_dmalloc_h=no
4246 1.1 christos fi
4247 1.1 christos rm -f conftest.err conftest.$ac_ext
4248 1.1 christos fi
4249 1.1.1.3 christos echo "$as_me:4249: result: $ac_cv_header_dmalloc_h" >&5
4250 1.1 christos echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4251 1.1 christos if test $ac_cv_header_dmalloc_h = yes; then
4252 1.1 christos
4253 1.1.1.3 christos echo "$as_me:4253: checking for dmalloc_debug in -ldmalloc" >&5
4254 1.1 christos echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4255 1.1 christos if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4256 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4257 1.1 christos else
4258 1.1 christos ac_check_lib_save_LIBS=$LIBS
4259 1.1 christos LIBS="-ldmalloc $LIBS"
4260 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4261 1.1.1.3 christos #line 4261 "configure"
4262 1.1 christos #include "confdefs.h"
4263 1.1 christos
4264 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4265 1.1 christos #ifdef __cplusplus
4266 1.1 christos extern "C"
4267 1.1 christos #endif
4268 1.1 christos /* We use char because int might match the return type of a gcc2
4269 1.1 christos builtin and then its argument prototype would still apply. */
4270 1.1 christos char dmalloc_debug ();
4271 1.1 christos int
4272 1.1 christos main ()
4273 1.1 christos {
4274 1.1 christos dmalloc_debug ();
4275 1.1 christos ;
4276 1.1 christos return 0;
4277 1.1 christos }
4278 1.1 christos _ACEOF
4279 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4280 1.1.1.3 christos if { (eval echo "$as_me:4280: \"$ac_link\"") >&5
4281 1.1 christos (eval $ac_link) 2>&5
4282 1.1 christos ac_status=$?
4283 1.1.1.3 christos echo "$as_me:4283: \$? = $ac_status" >&5
4284 1.1 christos (exit $ac_status); } &&
4285 1.1 christos { ac_try='test -s conftest$ac_exeext'
4286 1.1.1.3 christos { (eval echo "$as_me:4286: \"$ac_try\"") >&5
4287 1.1 christos (eval $ac_try) 2>&5
4288 1.1 christos ac_status=$?
4289 1.1.1.3 christos echo "$as_me:4289: \$? = $ac_status" >&5
4290 1.1 christos (exit $ac_status); }; }; then
4291 1.1 christos ac_cv_lib_dmalloc_dmalloc_debug=yes
4292 1.1 christos else
4293 1.1 christos echo "$as_me: failed program was:" >&5
4294 1.1 christos cat conftest.$ac_ext >&5
4295 1.1 christos ac_cv_lib_dmalloc_dmalloc_debug=no
4296 1.1 christos fi
4297 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4298 1.1 christos LIBS=$ac_check_lib_save_LIBS
4299 1.1 christos fi
4300 1.1.1.3 christos echo "$as_me:4300: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4301 1.1 christos echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4302 1.1 christos if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4303 1.1 christos cat >>confdefs.h <<EOF
4304 1.1 christos #define HAVE_LIBDMALLOC 1
4305 1.1 christos EOF
4306 1.1 christos
4307 1.1 christos LIBS="-ldmalloc $LIBS"
4308 1.1 christos
4309 1.1 christos fi
4310 1.1 christos
4311 1.1 christos fi
4312 1.1 christos
4313 1.1 christos fi
4314 1.1 christos
4315 1.1.1.3 christos echo "$as_me:4315: checking if you want to use dbmalloc for testing" >&5
4316 1.1 christos echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4317 1.1 christos
4318 1.1 christos # Check whether --with-dbmalloc or --without-dbmalloc was given.
4319 1.1 christos if test "${with_dbmalloc+set}" = set; then
4320 1.1 christos withval="$with_dbmalloc"
4321 1.1 christos cat >>confdefs.h <<\EOF
4322 1.1 christos #define USE_DBMALLOC 1
4323 1.1 christos EOF
4324 1.1 christos
4325 1.1 christos : ${with_cflags:=-g}
4326 1.1 christos : ${with_no_leaks:=yes}
4327 1.1 christos with_dbmalloc=yes
4328 1.1 christos else
4329 1.1 christos with_dbmalloc=
4330 1.1 christos fi;
4331 1.1.1.3 christos echo "$as_me:4331: result: ${with_dbmalloc:-no}" >&5
4332 1.1 christos echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4333 1.1 christos
4334 1.1 christos case .$with_cflags in #(vi
4335 1.1 christos .*-g*)
4336 1.1 christos case .$CFLAGS in #(vi
4337 1.1 christos .*-g*) #(vi
4338 1.1 christos ;;
4339 1.1 christos *)
4340 1.1 christos
4341 1.1 christos cf_fix_cppflags=no
4342 1.1 christos cf_new_cflags=
4343 1.1 christos cf_new_cppflags=
4344 1.1 christos cf_new_extra_cppflags=
4345 1.1 christos
4346 1.1 christos for cf_add_cflags in -g
4347 1.1 christos do
4348 1.1 christos case $cf_fix_cppflags in
4349 1.1 christos no)
4350 1.1 christos case $cf_add_cflags in #(vi
4351 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4352 1.1 christos case $cf_add_cflags in
4353 1.1 christos -D*)
4354 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4355 1.1 christos
4356 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4357 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
4358 1.1.1.2 christos && cf_fix_cppflags=yes
4359 1.1 christos
4360 1.1 christos if test $cf_fix_cppflags = yes ; then
4361 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4362 1.1 christos continue
4363 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
4364 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4365 1.1 christos continue
4366 1.1 christos fi
4367 1.1 christos ;;
4368 1.1 christos esac
4369 1.1 christos case "$CPPFLAGS" in
4370 1.1 christos *$cf_add_cflags) #(vi
4371 1.1 christos ;;
4372 1.1 christos *) #(vi
4373 1.1.1.2 christos case $cf_add_cflags in #(vi
4374 1.1.1.2 christos -D*)
4375 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4376 1.1.1.2 christos
4377 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
4378 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4379 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4380 1.1.1.2 christos
4381 1.1.1.2 christos ;;
4382 1.1.1.2 christos esac
4383 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4384 1.1 christos ;;
4385 1.1 christos esac
4386 1.1 christos ;;
4387 1.1 christos *)
4388 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4389 1.1 christos ;;
4390 1.1 christos esac
4391 1.1 christos ;;
4392 1.1 christos yes)
4393 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4394 1.1 christos
4395 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4396 1.1 christos
4397 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4398 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
4399 1.1.1.2 christos && cf_fix_cppflags=no
4400 1.1 christos ;;
4401 1.1 christos esac
4402 1.1 christos done
4403 1.1 christos
4404 1.1 christos if test -n "$cf_new_cflags" ; then
4405 1.1 christos
4406 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
4407 1.1 christos fi
4408 1.1 christos
4409 1.1 christos if test -n "$cf_new_cppflags" ; then
4410 1.1 christos
4411 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4412 1.1 christos fi
4413 1.1 christos
4414 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
4415 1.1 christos
4416 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4417 1.1 christos fi
4418 1.1 christos
4419 1.1 christos ;;
4420 1.1 christos esac
4421 1.1 christos ;;
4422 1.1 christos esac
4423 1.1 christos
4424 1.1 christos if test "$with_dbmalloc" = yes ; then
4425 1.1.1.3 christos echo "$as_me:4425: checking for dbmalloc.h" >&5
4426 1.1 christos echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4427 1.1 christos if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4428 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4429 1.1 christos else
4430 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4431 1.1.1.3 christos #line 4431 "configure"
4432 1.1 christos #include "confdefs.h"
4433 1.1 christos #include <dbmalloc.h>
4434 1.1 christos _ACEOF
4435 1.1.1.3 christos if { (eval echo "$as_me:4435: \"$ac_cpp conftest.$ac_ext\"") >&5
4436 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4437 1.1 christos ac_status=$?
4438 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
4439 1.1 christos rm -f conftest.er1
4440 1.1 christos cat conftest.err >&5
4441 1.1.1.3 christos echo "$as_me:4441: \$? = $ac_status" >&5
4442 1.1 christos (exit $ac_status); } >/dev/null; then
4443 1.1 christos if test -s conftest.err; then
4444 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
4445 1.1 christos else
4446 1.1 christos ac_cpp_err=
4447 1.1 christos fi
4448 1.1 christos else
4449 1.1 christos ac_cpp_err=yes
4450 1.1 christos fi
4451 1.1 christos if test -z "$ac_cpp_err"; then
4452 1.1 christos ac_cv_header_dbmalloc_h=yes
4453 1.1 christos else
4454 1.1 christos echo "$as_me: failed program was:" >&5
4455 1.1 christos cat conftest.$ac_ext >&5
4456 1.1 christos ac_cv_header_dbmalloc_h=no
4457 1.1 christos fi
4458 1.1 christos rm -f conftest.err conftest.$ac_ext
4459 1.1 christos fi
4460 1.1.1.3 christos echo "$as_me:4460: result: $ac_cv_header_dbmalloc_h" >&5
4461 1.1 christos echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4462 1.1 christos if test $ac_cv_header_dbmalloc_h = yes; then
4463 1.1 christos
4464 1.1.1.3 christos echo "$as_me:4464: checking for debug_malloc in -ldbmalloc" >&5
4465 1.1 christos echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4466 1.1 christos if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4467 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4468 1.1 christos else
4469 1.1 christos ac_check_lib_save_LIBS=$LIBS
4470 1.1 christos LIBS="-ldbmalloc $LIBS"
4471 1.1 christos cat >conftest.$ac_ext <<_ACEOF
4472 1.1.1.3 christos #line 4472 "configure"
4473 1.1 christos #include "confdefs.h"
4474 1.1 christos
4475 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
4476 1.1 christos #ifdef __cplusplus
4477 1.1 christos extern "C"
4478 1.1 christos #endif
4479 1.1 christos /* We use char because int might match the return type of a gcc2
4480 1.1 christos builtin and then its argument prototype would still apply. */
4481 1.1 christos char debug_malloc ();
4482 1.1 christos int
4483 1.1 christos main ()
4484 1.1 christos {
4485 1.1 christos debug_malloc ();
4486 1.1 christos ;
4487 1.1 christos return 0;
4488 1.1 christos }
4489 1.1 christos _ACEOF
4490 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
4491 1.1.1.3 christos if { (eval echo "$as_me:4491: \"$ac_link\"") >&5
4492 1.1 christos (eval $ac_link) 2>&5
4493 1.1 christos ac_status=$?
4494 1.1.1.3 christos echo "$as_me:4494: \$? = $ac_status" >&5
4495 1.1 christos (exit $ac_status); } &&
4496 1.1 christos { ac_try='test -s conftest$ac_exeext'
4497 1.1.1.3 christos { (eval echo "$as_me:4497: \"$ac_try\"") >&5
4498 1.1 christos (eval $ac_try) 2>&5
4499 1.1 christos ac_status=$?
4500 1.1.1.3 christos echo "$as_me:4500: \$? = $ac_status" >&5
4501 1.1 christos (exit $ac_status); }; }; then
4502 1.1 christos ac_cv_lib_dbmalloc_debug_malloc=yes
4503 1.1 christos else
4504 1.1 christos echo "$as_me: failed program was:" >&5
4505 1.1 christos cat conftest.$ac_ext >&5
4506 1.1 christos ac_cv_lib_dbmalloc_debug_malloc=no
4507 1.1 christos fi
4508 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509 1.1 christos LIBS=$ac_check_lib_save_LIBS
4510 1.1 christos fi
4511 1.1.1.3 christos echo "$as_me:4511: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4512 1.1 christos echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4513 1.1 christos if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4514 1.1 christos cat >>confdefs.h <<EOF
4515 1.1 christos #define HAVE_LIBDBMALLOC 1
4516 1.1 christos EOF
4517 1.1 christos
4518 1.1 christos LIBS="-ldbmalloc $LIBS"
4519 1.1 christos
4520 1.1 christos fi
4521 1.1 christos
4522 1.1 christos fi
4523 1.1 christos
4524 1.1 christos fi
4525 1.1 christos
4526 1.1.1.3 christos echo "$as_me:4526: checking if you want to use valgrind for testing" >&5
4527 1.1 christos echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4528 1.1 christos
4529 1.1 christos # Check whether --with-valgrind or --without-valgrind was given.
4530 1.1 christos if test "${with_valgrind+set}" = set; then
4531 1.1 christos withval="$with_valgrind"
4532 1.1 christos cat >>confdefs.h <<\EOF
4533 1.1 christos #define USE_VALGRIND 1
4534 1.1 christos EOF
4535 1.1 christos
4536 1.1 christos : ${with_cflags:=-g}
4537 1.1 christos : ${with_no_leaks:=yes}
4538 1.1 christos with_valgrind=yes
4539 1.1 christos else
4540 1.1 christos with_valgrind=
4541 1.1 christos fi;
4542 1.1.1.3 christos echo "$as_me:4542: result: ${with_valgrind:-no}" >&5
4543 1.1 christos echo "${ECHO_T}${with_valgrind:-no}" >&6
4544 1.1 christos
4545 1.1 christos case .$with_cflags in #(vi
4546 1.1 christos .*-g*)
4547 1.1 christos case .$CFLAGS in #(vi
4548 1.1 christos .*-g*) #(vi
4549 1.1 christos ;;
4550 1.1 christos *)
4551 1.1 christos
4552 1.1 christos cf_fix_cppflags=no
4553 1.1 christos cf_new_cflags=
4554 1.1 christos cf_new_cppflags=
4555 1.1 christos cf_new_extra_cppflags=
4556 1.1 christos
4557 1.1 christos for cf_add_cflags in -g
4558 1.1 christos do
4559 1.1 christos case $cf_fix_cppflags in
4560 1.1 christos no)
4561 1.1 christos case $cf_add_cflags in #(vi
4562 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4563 1.1 christos case $cf_add_cflags in
4564 1.1 christos -D*)
4565 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4566 1.1 christos
4567 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4568 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
4569 1.1.1.2 christos && cf_fix_cppflags=yes
4570 1.1 christos
4571 1.1 christos if test $cf_fix_cppflags = yes ; then
4572 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4573 1.1 christos continue
4574 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
4575 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4576 1.1 christos continue
4577 1.1 christos fi
4578 1.1 christos ;;
4579 1.1 christos esac
4580 1.1 christos case "$CPPFLAGS" in
4581 1.1 christos *$cf_add_cflags) #(vi
4582 1.1 christos ;;
4583 1.1 christos *) #(vi
4584 1.1.1.2 christos case $cf_add_cflags in #(vi
4585 1.1.1.2 christos -D*)
4586 1.1.1.2 christos cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4587 1.1.1.2 christos
4588 1.1.1.2 christos CPPFLAGS=`echo "$CPPFLAGS" | \
4589 1.1.1.2 christos sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4590 1.1.1.2 christos -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4591 1.1.1.2 christos
4592 1.1.1.2 christos ;;
4593 1.1.1.2 christos esac
4594 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4595 1.1 christos ;;
4596 1.1 christos esac
4597 1.1 christos ;;
4598 1.1 christos *)
4599 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4600 1.1 christos ;;
4601 1.1 christos esac
4602 1.1 christos ;;
4603 1.1 christos yes)
4604 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4605 1.1 christos
4606 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4607 1.1 christos
4608 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4609 1.1.1.2 christos && test -z "${cf_tst_cflags}" \
4610 1.1.1.2 christos && cf_fix_cppflags=no
4611 1.1 christos ;;
4612 1.1 christos esac
4613 1.1 christos done
4614 1.1 christos
4615 1.1 christos if test -n "$cf_new_cflags" ; then
4616 1.1 christos
4617 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
4618 1.1 christos fi
4619 1.1 christos
4620 1.1 christos if test -n "$cf_new_cppflags" ; then
4621 1.1 christos
4622 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4623 1.1 christos fi
4624 1.1 christos
4625 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
4626 1.1 christos
4627 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4628 1.1 christos fi
4629 1.1 christos
4630 1.1 christos ;;
4631 1.1 christos esac
4632 1.1 christos ;;
4633 1.1 christos esac
4634 1.1 christos
4635 1.1.1.3 christos echo "$as_me:4635: checking if you want to perform memory-leak testing" >&5
4636 1.1 christos echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4637 1.1 christos
4638 1.1 christos # Check whether --enable-leaks or --disable-leaks was given.
4639 1.1 christos if test "${enable_leaks+set}" = set; then
4640 1.1 christos enableval="$enable_leaks"
4641 1.1.1.2 christos if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4642 1.1 christos else
4643 1.1 christos : ${with_no_leaks:=no}
4644 1.1 christos fi;
4645 1.1.1.3 christos echo "$as_me:4645: result: $with_no_leaks" >&5
4646 1.1 christos echo "${ECHO_T}$with_no_leaks" >&6
4647 1.1 christos
4648 1.1 christos if test "$with_no_leaks" = yes ; then
4649 1.1 christos cat >>confdefs.h <<\EOF
4650 1.1 christos #define NO_LEAKS 1
4651 1.1 christos EOF
4652 1.1 christos
4653 1.1.1.3 christos cat >>confdefs.h <<\EOF
4654 1.1.1.3 christos #define YY_NO_LEAKS 1
4655 1.1.1.3 christos EOF
4656 1.1.1.3 christos
4657 1.1 christos fi
4658 1.1 christos
4659 1.1 christos ### output makefile
4660 1.1 christos ac_config_files="$ac_config_files makefile"
4661 1.1 christos ac_config_commands="$ac_config_commands default"
4662 1.1 christos cat >confcache <<\_ACEOF
4663 1.1 christos # This file is a shell script that caches the results of configure
4664 1.1 christos # tests run on this system so they can be shared between configure
4665 1.1 christos # scripts and configure runs, see configure's option --config-cache.
4666 1.1 christos # It is not useful on other systems. If it contains results you don't
4667 1.1 christos # want to keep, you may remove or edit it.
4668 1.1 christos #
4669 1.1 christos # config.status only pays attention to the cache file if you give it
4670 1.1 christos # the --recheck option to rerun configure.
4671 1.1 christos #
4672 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overriden when
4673 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
4674 1.1 christos # following values.
4675 1.1 christos
4676 1.1 christos _ACEOF
4677 1.1 christos
4678 1.1 christos # The following way of writing the cache mishandles newlines in values,
4679 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
4680 1.1 christos # So, don't put newlines in cache variables' values.
4681 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
4682 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
4683 1.1 christos {
4684 1.1 christos (set) 2>&1 |
4685 1.1 christos case `(ac_space=' '; set | grep ac_space) 2>&1` in
4686 1.1 christos *ac_space=\ *)
4687 1.1 christos # `set' does not quote correctly, so add quotes (double-quote
4688 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \).
4689 1.1 christos sed -n \
4690 1.1 christos "s/'/'\\\\''/g;
4691 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4692 1.1 christos ;;
4693 1.1 christos *)
4694 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
4695 1.1 christos sed -n \
4696 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4697 1.1 christos ;;
4698 1.1 christos esac;
4699 1.1 christos } |
4700 1.1 christos sed '
4701 1.1 christos t clear
4702 1.1 christos : clear
4703 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4704 1.1 christos t end
4705 1.1 christos /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4706 1.1 christos : end' >>confcache
4707 1.1 christos if cmp -s $cache_file confcache; then :; else
4708 1.1 christos if test -w $cache_file; then
4709 1.1 christos test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4710 1.1 christos cat confcache >$cache_file
4711 1.1 christos else
4712 1.1 christos echo "not updating unwritable cache $cache_file"
4713 1.1 christos fi
4714 1.1 christos fi
4715 1.1 christos rm -f confcache
4716 1.1 christos
4717 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
4718 1.1 christos # Let make expand exec_prefix.
4719 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4720 1.1 christos
4721 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
4722 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4723 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty
4724 1.1 christos # (actually we leave an empty line to preserve line numbers).
4725 1.1 christos if test "x$srcdir" = x.; then
4726 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
4727 1.1 christos s/:*\$(srcdir):*/:/;
4728 1.1 christos s/:*\${srcdir}:*/:/;
4729 1.1 christos s/:*@srcdir@:*/:/;
4730 1.1 christos s/^\([^=]*=[ ]*\):*/\1/;
4731 1.1 christos s/:*$//;
4732 1.1 christos s/^[^=]*=[ ]*$//;
4733 1.1 christos }'
4734 1.1 christos fi
4735 1.1 christos
4736 1.1 christos DEFS=-DHAVE_CONFIG_H
4737 1.1 christos
4738 1.1 christos : ${CONFIG_STATUS=./config.status}
4739 1.1 christos ac_clean_files_save=$ac_clean_files
4740 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4741 1.1.1.3 christos { echo "$as_me:4741: creating $CONFIG_STATUS" >&5
4742 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
4743 1.1 christos cat >$CONFIG_STATUS <<_ACEOF
4744 1.1 christos #! $SHELL
4745 1.1 christos # Generated automatically by configure.
4746 1.1 christos # Run this file to recreate the current configuration.
4747 1.1 christos # Compiler output produced by configure, useful for debugging
4748 1.1 christos # configure, is in config.log if it exists.
4749 1.1 christos
4750 1.1 christos debug=false
4751 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL}
4752 1.1 christos ac_cs_invocation="\$0 \$@"
4753 1.1 christos
4754 1.1 christos _ACEOF
4755 1.1 christos
4756 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
4757 1.1 christos # Be Bourne compatible
4758 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4759 1.1 christos emulate sh
4760 1.1 christos NULLCMD=:
4761 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4762 1.1 christos set -o posix
4763 1.1 christos fi
4764 1.1 christos
4765 1.1 christos # Name of the executable.
4766 1.1 christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
4767 1.1 christos
4768 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then
4769 1.1 christos as_expr=expr
4770 1.1 christos else
4771 1.1 christos as_expr=false
4772 1.1 christos fi
4773 1.1 christos
4774 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
4775 1.1 christos echo >conf$$.file
4776 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
4777 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic
4778 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4779 1.1 christos if test -f conf$$.exe; then
4780 1.1 christos # Don't use ln at all; we don't have any links
4781 1.1 christos as_ln_s='cp -p'
4782 1.1 christos else
4783 1.1 christos as_ln_s='ln -s'
4784 1.1 christos fi
4785 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
4786 1.1 christos as_ln_s=ln
4787 1.1 christos else
4788 1.1 christos as_ln_s='cp -p'
4789 1.1 christos fi
4790 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
4791 1.1 christos
4792 1.1 christos as_executable_p="test -f"
4793 1.1 christos
4794 1.1 christos # Support unset when possible.
4795 1.1 christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4796 1.1 christos as_unset=unset
4797 1.1 christos else
4798 1.1 christos as_unset=false
4799 1.1 christos fi
4800 1.1 christos
4801 1.1 christos # NLS nuisances.
4802 1.1 christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4803 1.1 christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4804 1.1 christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4805 1.1 christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4806 1.1 christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4807 1.1 christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4808 1.1 christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4809 1.1 christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4810 1.1 christos
4811 1.1 christos # IFS
4812 1.1 christos # We need space, tab and new line, in precisely that order.
4813 1.1 christos as_nl='
4814 1.1 christos '
4815 1.1 christos IFS=" $as_nl"
4816 1.1 christos
4817 1.1 christos # CDPATH.
4818 1.1 christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4819 1.1 christos
4820 1.1 christos exec 6>&1
4821 1.1 christos
4822 1.1 christos _ACEOF
4823 1.1 christos
4824 1.1 christos # Files that config.status was made for.
4825 1.1 christos if test -n "$ac_config_files"; then
4826 1.1 christos echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4827 1.1 christos fi
4828 1.1 christos
4829 1.1 christos if test -n "$ac_config_headers"; then
4830 1.1 christos echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4831 1.1 christos fi
4832 1.1 christos
4833 1.1 christos if test -n "$ac_config_links"; then
4834 1.1 christos echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4835 1.1 christos fi
4836 1.1 christos
4837 1.1 christos if test -n "$ac_config_commands"; then
4838 1.1 christos echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4839 1.1 christos fi
4840 1.1 christos
4841 1.1 christos cat >>$CONFIG_STATUS <<\EOF
4842 1.1 christos
4843 1.1 christos ac_cs_usage="\
4844 1.1 christos \`$as_me' instantiates files from templates according to the
4845 1.1 christos current configuration.
4846 1.1 christos
4847 1.1 christos Usage: $0 [OPTIONS] [FILE]...
4848 1.1 christos
4849 1.1 christos -h, --help print this help, then exit
4850 1.1 christos -V, --version print version number, then exit
4851 1.1 christos -d, --debug don't remove temporary files
4852 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
4853 1.1 christos --file=FILE[:TEMPLATE]
4854 1.1 christos instantiate the configuration file FILE
4855 1.1 christos --header=FILE[:TEMPLATE]
4856 1.1 christos instantiate the configuration header FILE
4857 1.1 christos
4858 1.1 christos Configuration files:
4859 1.1 christos $config_files
4860 1.1 christos
4861 1.1 christos Configuration headers:
4862 1.1 christos $config_headers
4863 1.1 christos
4864 1.1 christos Configuration commands:
4865 1.1 christos $config_commands
4866 1.1 christos
4867 1.1.1.3 christos Report bugs to <dickey@invisible-island.net>."
4868 1.1 christos EOF
4869 1.1 christos
4870 1.1 christos cat >>$CONFIG_STATUS <<EOF
4871 1.1 christos ac_cs_version="\\
4872 1.1 christos config.status
4873 1.1.1.3 christos configured by $0, generated by GNU Autoconf 2.52.20101002,
4874 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4875 1.1 christos
4876 1.1 christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4877 1.1 christos Free Software Foundation, Inc.
4878 1.1 christos This config.status script is free software; the Free Software Foundation
4879 1.1 christos gives unlimited permission to copy, distribute and modify it."
4880 1.1 christos srcdir=$srcdir
4881 1.1 christos INSTALL="$INSTALL"
4882 1.1 christos EOF
4883 1.1 christos
4884 1.1 christos cat >>$CONFIG_STATUS <<\EOF
4885 1.1 christos # If no file are specified by the user, then we need to provide default
4886 1.1 christos # value. By we need to know if files were specified by the user.
4887 1.1 christos ac_need_defaults=:
4888 1.1 christos while test $# != 0
4889 1.1 christos do
4890 1.1 christos case $1 in
4891 1.1 christos --*=*)
4892 1.1 christos ac_option=`expr "x$1" : 'x\([^=]*\)='`
4893 1.1 christos ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4894 1.1 christos shift
4895 1.1 christos set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4896 1.1 christos shift
4897 1.1 christos ;;
4898 1.1 christos -*);;
4899 1.1 christos *) # This is not an option, so the user has probably given explicit
4900 1.1 christos # arguments.
4901 1.1 christos ac_need_defaults=false;;
4902 1.1 christos esac
4903 1.1 christos
4904 1.1 christos case $1 in
4905 1.1 christos # Handling of the options.
4906 1.1 christos EOF
4907 1.1 christos cat >>$CONFIG_STATUS <<EOF
4908 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4909 1.1 christos echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4910 1.1 christos exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4911 1.1 christos EOF
4912 1.1 christos cat >>$CONFIG_STATUS <<\EOF
4913 1.1 christos --version | --vers* | -V )
4914 1.1 christos echo "$ac_cs_version"; exit 0 ;;
4915 1.1 christos --he | --h)
4916 1.1 christos # Conflict between --help and --header
4917 1.1.1.3 christos { { echo "$as_me:4917: error: ambiguous option: $1
4918 1.1 christos Try \`$0 --help' for more information." >&5
4919 1.1 christos echo "$as_me: error: ambiguous option: $1
4920 1.1 christos Try \`$0 --help' for more information." >&2;}
4921 1.1 christos { (exit 1); exit 1; }; };;
4922 1.1 christos --help | --hel | -h )
4923 1.1 christos echo "$ac_cs_usage"; exit 0 ;;
4924 1.1 christos --debug | --d* | -d )
4925 1.1 christos debug=: ;;
4926 1.1 christos --file | --fil | --fi | --f )
4927 1.1 christos shift
4928 1.1 christos CONFIG_FILES="$CONFIG_FILES $1"
4929 1.1 christos ac_need_defaults=false;;
4930 1.1 christos --header | --heade | --head | --hea )
4931 1.1 christos shift
4932 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $1"
4933 1.1 christos ac_need_defaults=false;;
4934 1.1 christos
4935 1.1 christos # This is an error.
4936 1.1.1.3 christos -*) { { echo "$as_me:4936: error: unrecognized option: $1
4937 1.1 christos Try \`$0 --help' for more information." >&5
4938 1.1 christos echo "$as_me: error: unrecognized option: $1
4939 1.1 christos Try \`$0 --help' for more information." >&2;}
4940 1.1 christos { (exit 1); exit 1; }; } ;;
4941 1.1 christos
4942 1.1 christos *) ac_config_targets="$ac_config_targets $1" ;;
4943 1.1 christos
4944 1.1 christos esac
4945 1.1 christos shift
4946 1.1 christos done
4947 1.1 christos
4948 1.1 christos exec 5>>config.log
4949 1.1 christos cat >&5 << _ACEOF
4950 1.1 christos
4951 1.1 christos ## ----------------------- ##
4952 1.1 christos ## Running config.status. ##
4953 1.1 christos ## ----------------------- ##
4954 1.1 christos
4955 1.1.1.3 christos This file was extended by $as_me 2.52.20101002, executed with
4956 1.1 christos CONFIG_FILES = $CONFIG_FILES
4957 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
4958 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
4959 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
4960 1.1 christos > $ac_cs_invocation
4961 1.1 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
4962 1.1 christos
4963 1.1 christos _ACEOF
4964 1.1 christos EOF
4965 1.1 christos
4966 1.1 christos cat >>$CONFIG_STATUS <<\EOF
4967 1.1 christos for ac_config_target in $ac_config_targets
4968 1.1 christos do
4969 1.1 christos case "$ac_config_target" in
4970 1.1 christos # Handling of arguments.
4971 1.1 christos "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
4972 1.1 christos "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4973 1.1 christos "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
4974 1.1.1.3 christos *) { { echo "$as_me:4974: error: invalid argument: $ac_config_target" >&5
4975 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4976 1.1 christos { (exit 1); exit 1; }; };;
4977 1.1 christos esac
4978 1.1 christos done
4979 1.1 christos
4980 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
4981 1.1 christos # then the envvar interface is used. Set only those that are not.
4982 1.1 christos # We use the long form for the default assignment because of an extremely
4983 1.1 christos # bizarre bug on SunOS 4.1.3.
4984 1.1 christos if $ac_need_defaults; then
4985 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4986 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4987 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4988 1.1 christos fi
4989 1.1 christos
4990 1.1 christos # Create a temporary directory, and hook for its removal unless debugging.
4991 1.1 christos $debug ||
4992 1.1 christos {
4993 1.1 christos trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4994 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15
4995 1.1 christos }
4996 1.1 christos
4997 1.1 christos # Create a (secure) tmp directory for tmp files.
4998 1.1 christos : ${TMPDIR=/tmp}
4999 1.1 christos {
5000 1.1 christos tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5001 1.1 christos test -n "$tmp" && test -d "$tmp"
5002 1.1 christos } ||
5003 1.1 christos {
5004 1.1 christos tmp=$TMPDIR/cs$$-$RANDOM
5005 1.1 christos (umask 077 && mkdir $tmp)
5006 1.1 christos } ||
5007 1.1 christos {
5008 1.1 christos echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5009 1.1 christos { (exit 1); exit 1; }
5010 1.1 christos }
5011 1.1 christos
5012 1.1 christos EOF
5013 1.1 christos
5014 1.1 christos cat >>$CONFIG_STATUS <<EOF
5015 1.1 christos
5016 1.1 christos #
5017 1.1 christos # CONFIG_FILES section.
5018 1.1 christos #
5019 1.1 christos
5020 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES.
5021 1.1 christos # This happens for instance when ./config.status config.h
5022 1.1 christos if test -n "\$CONFIG_FILES"; then
5023 1.1 christos # Protect against being on the right side of a sed subst in config.status.
5024 1.1 christos sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5025 1.1 christos s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5026 1.1 christos s,@SHELL@,$SHELL,;t t
5027 1.1 christos s,@exec_prefix@,$exec_prefix,;t t
5028 1.1 christos s,@prefix@,$prefix,;t t
5029 1.1 christos s,@program_transform_name@,$program_transform_name,;t t
5030 1.1 christos s,@bindir@,$bindir,;t t
5031 1.1 christos s,@sbindir@,$sbindir,;t t
5032 1.1 christos s,@libexecdir@,$libexecdir,;t t
5033 1.1 christos s,@datadir@,$datadir,;t t
5034 1.1 christos s,@sysconfdir@,$sysconfdir,;t t
5035 1.1 christos s,@sharedstatedir@,$sharedstatedir,;t t
5036 1.1 christos s,@localstatedir@,$localstatedir,;t t
5037 1.1 christos s,@libdir@,$libdir,;t t
5038 1.1 christos s,@includedir@,$includedir,;t t
5039 1.1 christos s,@oldincludedir@,$oldincludedir,;t t
5040 1.1 christos s,@infodir@,$infodir,;t t
5041 1.1 christos s,@mandir@,$mandir,;t t
5042 1.1 christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5043 1.1 christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5044 1.1 christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5045 1.1 christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5046 1.1 christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5047 1.1 christos s,@build_alias@,$build_alias,;t t
5048 1.1 christos s,@host_alias@,$host_alias,;t t
5049 1.1 christos s,@target_alias@,$target_alias,;t t
5050 1.1 christos s,@ECHO_C@,$ECHO_C,;t t
5051 1.1 christos s,@ECHO_N@,$ECHO_N,;t t
5052 1.1 christos s,@ECHO_T@,$ECHO_T,;t t
5053 1.1 christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5054 1.1 christos s,@DEFS@,$DEFS,;t t
5055 1.1 christos s,@LIBS@,$LIBS,;t t
5056 1.1 christos s,@build@,$build,;t t
5057 1.1 christos s,@build_cpu@,$build_cpu,;t t
5058 1.1 christos s,@build_vendor@,$build_vendor,;t t
5059 1.1 christos s,@build_os@,$build_os,;t t
5060 1.1 christos s,@host@,$host,;t t
5061 1.1 christos s,@host_cpu@,$host_cpu,;t t
5062 1.1 christos s,@host_vendor@,$host_vendor,;t t
5063 1.1 christos s,@host_os@,$host_os,;t t
5064 1.1 christos s,@target@,$target,;t t
5065 1.1 christos s,@target_cpu@,$target_cpu,;t t
5066 1.1 christos s,@target_vendor@,$target_vendor,;t t
5067 1.1 christos s,@target_os@,$target_os,;t t
5068 1.1 christos s,@CC@,$CC,;t t
5069 1.1 christos s,@CFLAGS@,$CFLAGS,;t t
5070 1.1 christos s,@LDFLAGS@,$LDFLAGS,;t t
5071 1.1 christos s,@CPPFLAGS@,$CPPFLAGS,;t t
5072 1.1 christos s,@ac_ct_CC@,$ac_ct_CC,;t t
5073 1.1 christos s,@EXEEXT@,$EXEEXT,;t t
5074 1.1 christos s,@OBJEXT@,$OBJEXT,;t t
5075 1.1 christos s,@SET_MAKE@,$SET_MAKE,;t t
5076 1.1 christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5077 1.1 christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5078 1.1 christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5079 1.1.1.2 christos s,@CTAGS@,$CTAGS,;t t
5080 1.1.1.2 christos s,@ETAGS@,$ETAGS,;t t
5081 1.1.1.2 christos s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
5082 1.1.1.2 christos s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
5083 1.1.1.2 christos s,@LINT@,$LINT,;t t
5084 1.1.1.2 christos s,@LINT_OPTS@,$LINT_OPTS,;t t
5085 1.1 christos s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
5086 1.1.1.3 christos s,@CPP@,$CPP,;t t
5087 1.1 christos s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5088 1.1 christos s,@ECHO_LT@,$ECHO_LT,;t t
5089 1.1 christos s,@ECHO_LD@,$ECHO_LD,;t t
5090 1.1 christos s,@RULE_CC@,$RULE_CC,;t t
5091 1.1 christos s,@SHOW_CC@,$SHOW_CC,;t t
5092 1.1 christos s,@ECHO_CC@,$ECHO_CC,;t t
5093 1.1 christos s,@PROG_EXT@,$PROG_EXT,;t t
5094 1.1 christos CEOF
5095 1.1 christos
5096 1.1 christos EOF
5097 1.1 christos
5098 1.1 christos cat >>$CONFIG_STATUS <<\EOF
5099 1.1 christos # Split the substitutions into bite-sized pieces for seds with
5100 1.1 christos # small command number limits, like on Digital OSF/1 and HP-UX.
5101 1.1 christos ac_max_sed_lines=48
5102 1.1 christos ac_sed_frag=1 # Number of current file.
5103 1.1 christos ac_beg=1 # First line for current file.
5104 1.1 christos ac_end=$ac_max_sed_lines # Line after last line for current file.
5105 1.1 christos ac_more_lines=:
5106 1.1 christos ac_sed_cmds=
5107 1.1 christos while $ac_more_lines; do
5108 1.1 christos if test $ac_beg -gt 1; then
5109 1.1 christos sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5110 1.1 christos else
5111 1.1 christos sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5112 1.1 christos fi
5113 1.1 christos if test ! -s $tmp/subs.frag; then
5114 1.1 christos ac_more_lines=false
5115 1.1 christos else
5116 1.1 christos # The purpose of the label and of the branching condition is to
5117 1.1 christos # speed up the sed processing (if there are no `@' at all, there
5118 1.1 christos # is no need to browse any of the substitutions).
5119 1.1 christos # These are the two extra sed commands mentioned above.
5120 1.1 christos (echo ':t
5121 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5122 1.1 christos if test -z "$ac_sed_cmds"; then
5123 1.1 christos ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5124 1.1 christos else
5125 1.1 christos ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5126 1.1 christos fi
5127 1.1 christos ac_sed_frag=`expr $ac_sed_frag + 1`
5128 1.1 christos ac_beg=$ac_end
5129 1.1 christos ac_end=`expr $ac_end + $ac_max_sed_lines`
5130 1.1 christos fi
5131 1.1 christos done
5132 1.1 christos if test -z "$ac_sed_cmds"; then
5133 1.1 christos ac_sed_cmds=cat
5134 1.1 christos fi
5135 1.1 christos fi # test -n "$CONFIG_FILES"
5136 1.1 christos
5137 1.1 christos EOF
5138 1.1 christos cat >>$CONFIG_STATUS <<\EOF
5139 1.1 christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5140 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5141 1.1 christos case $ac_file in
5142 1.1 christos - | *:- | *:-:* ) # input from stdin
5143 1.1 christos cat >$tmp/stdin
5144 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5145 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5146 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5147 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5148 1.1 christos * ) ac_file_in=$ac_file.in ;;
5149 1.1 christos esac
5150 1.1 christos
5151 1.1 christos # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5152 1.1 christos ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5153 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
5154 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
5155 1.1 christos X"$ac_file" : 'X\(/\)' \| \
5156 1.1 christos . : '\(.\)' 2>/dev/null ||
5157 1.1 christos echo X"$ac_file" |
5158 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5159 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5160 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
5161 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
5162 1.1 christos s/.*/./; q'`
5163 1.1 christos if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5164 1.1 christos { case "$ac_dir" in
5165 1.1 christos [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5166 1.1 christos *) as_incr_dir=.;;
5167 1.1 christos esac
5168 1.1 christos as_dummy="$ac_dir"
5169 1.1 christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5170 1.1 christos case $as_mkdir_dir in
5171 1.1 christos # Skip DOS drivespec
5172 1.1 christos ?:) as_incr_dir=$as_mkdir_dir ;;
5173 1.1 christos *)
5174 1.1 christos as_incr_dir=$as_incr_dir/$as_mkdir_dir
5175 1.1 christos test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5176 1.1 christos ;;
5177 1.1 christos esac
5178 1.1 christos done; }
5179 1.1 christos
5180 1.1 christos ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5181 1.1 christos # A "../" for each directory in $ac_dir_suffix.
5182 1.1 christos ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5183 1.1 christos else
5184 1.1 christos ac_dir_suffix= ac_dots=
5185 1.1 christos fi
5186 1.1 christos
5187 1.1 christos case $srcdir in
5188 1.1 christos .) ac_srcdir=.
5189 1.1 christos if test -z "$ac_dots"; then
5190 1.1 christos ac_top_srcdir=.
5191 1.1 christos else
5192 1.1 christos ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5193 1.1 christos fi ;;
5194 1.1 christos [\\/]* | ?:[\\/]* )
5195 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
5196 1.1 christos ac_top_srcdir=$srcdir ;;
5197 1.1 christos *) # Relative path.
5198 1.1 christos ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5199 1.1 christos ac_top_srcdir=$ac_dots$srcdir ;;
5200 1.1 christos esac
5201 1.1 christos
5202 1.1 christos case $INSTALL in
5203 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5204 1.1 christos *) ac_INSTALL=$ac_dots$INSTALL ;;
5205 1.1 christos esac
5206 1.1 christos
5207 1.1 christos if test x"$ac_file" != x-; then
5208 1.1.1.3 christos { echo "$as_me:5208: creating $ac_file" >&5
5209 1.1 christos echo "$as_me: creating $ac_file" >&6;}
5210 1.1 christos rm -f "$ac_file"
5211 1.1 christos fi
5212 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
5213 1.1 christos # use $as_me), people would be surprised to read:
5214 1.1 christos # /* config.h. Generated automatically by config.status. */
5215 1.1 christos configure_input="Generated automatically from `echo $ac_file_in |
5216 1.1 christos sed 's,.*/,,'` by configure."
5217 1.1 christos
5218 1.1 christos # First look for the input files in the build tree, otherwise in the
5219 1.1 christos # src tree.
5220 1.1 christos ac_file_inputs=`IFS=:
5221 1.1 christos for f in $ac_file_in; do
5222 1.1 christos case $f in
5223 1.1 christos -) echo $tmp/stdin ;;
5224 1.1 christos [\\/$]*)
5225 1.1 christos # Absolute (can't be DOS-style, as IFS=:)
5226 1.1.1.3 christos test -f "$f" || { { echo "$as_me:5226: error: cannot find input file: $f" >&5
5227 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
5228 1.1 christos { (exit 1); exit 1; }; }
5229 1.1 christos echo $f;;
5230 1.1 christos *) # Relative
5231 1.1 christos if test -f "$f"; then
5232 1.1 christos # Build tree
5233 1.1 christos echo $f
5234 1.1 christos elif test -f "$srcdir/$f"; then
5235 1.1 christos # Source tree
5236 1.1 christos echo $srcdir/$f
5237 1.1 christos else
5238 1.1 christos # /dev/null tree
5239 1.1.1.3 christos { { echo "$as_me:5239: error: cannot find input file: $f" >&5
5240 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
5241 1.1 christos { (exit 1); exit 1; }; }
5242 1.1 christos fi;;
5243 1.1 christos esac
5244 1.1 christos done` || { (exit 1); exit 1; }
5245 1.1 christos EOF
5246 1.1 christos cat >>$CONFIG_STATUS <<EOF
5247 1.1 christos sed "$ac_vpsub
5248 1.1 christos $extrasub
5249 1.1 christos EOF
5250 1.1 christos cat >>$CONFIG_STATUS <<\EOF
5251 1.1 christos :t
5252 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5253 1.1 christos s,@configure_input@,$configure_input,;t t
5254 1.1 christos s,@srcdir@,$ac_srcdir,;t t
5255 1.1 christos s,@top_srcdir@,$ac_top_srcdir,;t t
5256 1.1 christos s,@INSTALL@,$ac_INSTALL,;t t
5257 1.1 christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5258 1.1 christos rm -f $tmp/stdin
5259 1.1 christos if test x"$ac_file" != x-; then
5260 1.1 christos mv $tmp/out $ac_file
5261 1.1 christos else
5262 1.1 christos cat $tmp/out
5263 1.1 christos rm -f $tmp/out
5264 1.1 christos fi
5265 1.1 christos
5266 1.1 christos done
5267 1.1 christos EOF
5268 1.1 christos cat >>$CONFIG_STATUS <<\EOF
5269 1.1 christos
5270 1.1 christos #
5271 1.1 christos # CONFIG_HEADER section.
5272 1.1 christos #
5273 1.1 christos
5274 1.1 christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5275 1.1 christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
5276 1.1 christos #
5277 1.1 christos # ac_d sets the value in "#define NAME VALUE" lines.
5278 1.1 christos ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5279 1.1 christos ac_dB='[ ].*$,\1#\2'
5280 1.1 christos ac_dC=' '
5281 1.1 christos ac_dD=',;t'
5282 1.1 christos # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5283 1.1 christos ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5284 1.1 christos ac_iB='\([ ]\),\1#\2define\3'
5285 1.1 christos ac_iC=' '
5286 1.1 christos ac_iD='\4,;t'
5287 1.1 christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5288 1.1 christos ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5289 1.1 christos ac_uB='$,\1#\2define\3'
5290 1.1 christos ac_uC=' '
5291 1.1 christos ac_uD=',;t'
5292 1.1 christos
5293 1.1 christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5294 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5295 1.1 christos case $ac_file in
5296 1.1 christos - | *:- | *:-:* ) # input from stdin
5297 1.1 christos cat >$tmp/stdin
5298 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5299 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5300 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5301 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5302 1.1 christos * ) ac_file_in=$ac_file.in ;;
5303 1.1 christos esac
5304 1.1 christos
5305 1.1.1.3 christos test x"$ac_file" != x- && { echo "$as_me:5305: creating $ac_file" >&5
5306 1.1 christos echo "$as_me: creating $ac_file" >&6;}
5307 1.1 christos
5308 1.1 christos # First look for the input files in the build tree, otherwise in the
5309 1.1 christos # src tree.
5310 1.1 christos ac_file_inputs=`IFS=:
5311 1.1 christos for f in $ac_file_in; do
5312 1.1 christos case $f in
5313 1.1 christos -) echo $tmp/stdin ;;
5314 1.1 christos [\\/$]*)
5315 1.1 christos # Absolute (can't be DOS-style, as IFS=:)
5316 1.1.1.3 christos test -f "$f" || { { echo "$as_me:5316: error: cannot find input file: $f" >&5
5317 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
5318 1.1 christos { (exit 1); exit 1; }; }
5319 1.1 christos echo $f;;
5320 1.1 christos *) # Relative
5321 1.1 christos if test -f "$f"; then
5322 1.1 christos # Build tree
5323 1.1 christos echo $f
5324 1.1 christos elif test -f "$srcdir/$f"; then
5325 1.1 christos # Source tree
5326 1.1 christos echo $srcdir/$f
5327 1.1 christos else
5328 1.1 christos # /dev/null tree
5329 1.1.1.3 christos { { echo "$as_me:5329: error: cannot find input file: $f" >&5
5330 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
5331 1.1 christos { (exit 1); exit 1; }; }
5332 1.1 christos fi;;
5333 1.1 christos esac
5334 1.1 christos done` || { (exit 1); exit 1; }
5335 1.1 christos # Remove the trailing spaces.
5336 1.1 christos sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5337 1.1 christos
5338 1.1 christos EOF
5339 1.1 christos
5340 1.1 christos # Transform confdefs.h into a list of #define's. We won't use it as a sed
5341 1.1 christos # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
5342 1.1 christos # be either 'cat' or 'sort'.
5343 1.1 christos cat confdefs.h | uniq >conftest.vals
5344 1.1 christos
5345 1.1 christos # Break up conftest.vals because some shells have a limit on
5346 1.1 christos # the size of here documents, and old seds have small limits too.
5347 1.1 christos
5348 1.1 christos rm -f conftest.tail
5349 1.1 christos echo ' rm -f conftest.frag' >> $CONFIG_STATUS
5350 1.1 christos while grep . conftest.vals >/dev/null
5351 1.1 christos do
5352 1.1 christos # Write chunks of a limited-size here document to conftest.frag.
5353 1.1 christos echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
5354 1.1 christos sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
5355 1.1 christos echo 'CEOF' >> $CONFIG_STATUS
5356 1.1 christos sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5357 1.1 christos rm -f conftest.vals
5358 1.1 christos mv conftest.tail conftest.vals
5359 1.1 christos done
5360 1.1 christos rm -f conftest.vals
5361 1.1 christos
5362 1.1 christos # Run sed to substitute the contents of conftest.frag into $tmp/in at the
5363 1.1 christos # marker @DEFS@.
5364 1.1 christos echo ' cat >> conftest.edit <<CEOF
5365 1.1 christos /@DEFS@/r conftest.frag
5366 1.1 christos /@DEFS@/d
5367 1.1 christos CEOF
5368 1.1 christos sed -f conftest.edit $tmp/in > $tmp/out
5369 1.1 christos rm -f $tmp/in
5370 1.1 christos mv $tmp/out $tmp/in
5371 1.1 christos rm -f conftest.edit conftest.frag
5372 1.1 christos ' >> $CONFIG_STATUS
5373 1.1 christos
5374 1.1 christos cat >>$CONFIG_STATUS <<\EOF
5375 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
5376 1.1 christos # use $as_me), people would be surprised to read:
5377 1.1 christos # /* config.h. Generated automatically by config.status. */
5378 1.1 christos if test x"$ac_file" = x-; then
5379 1.1 christos echo "/* Generated automatically by configure. */" >$tmp/config.h
5380 1.1 christos else
5381 1.1 christos echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5382 1.1 christos fi
5383 1.1 christos cat $tmp/in >>$tmp/config.h
5384 1.1 christos rm -f $tmp/in
5385 1.1 christos if test x"$ac_file" != x-; then
5386 1.1 christos if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5387 1.1.1.3 christos { echo "$as_me:5387: $ac_file is unchanged" >&5
5388 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;}
5389 1.1 christos else
5390 1.1 christos ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5391 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
5392 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
5393 1.1 christos X"$ac_file" : 'X\(/\)' \| \
5394 1.1 christos . : '\(.\)' 2>/dev/null ||
5395 1.1 christos echo X"$ac_file" |
5396 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5397 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5398 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
5399 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
5400 1.1 christos s/.*/./; q'`
5401 1.1 christos if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5402 1.1 christos { case "$ac_dir" in
5403 1.1 christos [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5404 1.1 christos *) as_incr_dir=.;;
5405 1.1 christos esac
5406 1.1 christos as_dummy="$ac_dir"
5407 1.1 christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5408 1.1 christos case $as_mkdir_dir in
5409 1.1 christos # Skip DOS drivespec
5410 1.1 christos ?:) as_incr_dir=$as_mkdir_dir ;;
5411 1.1 christos *)
5412 1.1 christos as_incr_dir=$as_incr_dir/$as_mkdir_dir
5413 1.1 christos test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5414 1.1 christos ;;
5415 1.1 christos esac
5416 1.1 christos done; }
5417 1.1 christos
5418 1.1 christos fi
5419 1.1 christos rm -f $ac_file
5420 1.1 christos mv $tmp/config.h $ac_file
5421 1.1 christos fi
5422 1.1 christos else
5423 1.1 christos cat $tmp/config.h
5424 1.1 christos rm -f $tmp/config.h
5425 1.1 christos fi
5426 1.1 christos done
5427 1.1 christos EOF
5428 1.1 christos
5429 1.1 christos cat >>$CONFIG_STATUS <<\EOF
5430 1.1 christos
5431 1.1 christos { (exit 0); exit 0; }
5432 1.1 christos EOF
5433 1.1 christos chmod +x $CONFIG_STATUS
5434 1.1 christos ac_clean_files=$ac_clean_files_save
5435 1.1 christos
5436 1.1 christos # configure is writing to config.log, and then calls config.status.
5437 1.1 christos # config.status does its own redirection, appending to config.log.
5438 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
5439 1.1 christos # by configure, so config.status won't be able to write to it; its
5440 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
5441 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
5442 1.1 christos # appended to by config.status. When coming back to configure, we
5443 1.1 christos # need to make the FD available again.
5444 1.1 christos if test "$no_create" != yes; then
5445 1.1 christos ac_cs_success=:
5446 1.1 christos exec 5>/dev/null
5447 1.1 christos $SHELL $CONFIG_STATUS || ac_cs_success=false
5448 1.1 christos exec 5>>config.log
5449 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5450 1.1 christos # would make configure fail if this is the last instruction.
5451 1.1 christos $ac_cs_success || { (exit 1); exit 1; }
5452 1.1 christos fi
5453 1.1 christos
5454