configure revision 1.1.1.1 1 1.1 christos #! /bin/sh
2 1.1 christos # From configure.in Revision: 1.6 .
3 1.1 christos # Guess values for system-dependent variables and create Makefiles.
4 1.1 christos # Generated by Autoconf 2.52.20081225.
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 christos generated by GNU Autoconf 2.52.20081225. 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 christos rm -f 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 christos echo "$as_me:2080: checking for ${CC-cc} option to accept ANSI C" >&5
2081 1.1 christos echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2082 1.1 christos if test "${cf_cv_ansi_cc+set}" = set; then
2083 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2084 1.1 christos else
2085 1.1 christos
2086 1.1 christos cf_cv_ansi_cc=no
2087 1.1 christos cf_save_CFLAGS="$CFLAGS"
2088 1.1 christos cf_save_CPPFLAGS="$CPPFLAGS"
2089 1.1 christos # Don't try gcc -ansi; that turns off useful extensions and
2090 1.1 christos # breaks some systems' header files.
2091 1.1 christos # AIX -qlanglvl=ansi
2092 1.1 christos # Ultrix and OSF/1 -std1
2093 1.1 christos # HP-UX -Aa -D_HPUX_SOURCE
2094 1.1 christos # SVR4 -Xc
2095 1.1 christos # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2096 1.1 christos for cf_arg in "-DCC_HAS_PROTOS" \
2097 1.1 christos "" \
2098 1.1 christos -qlanglvl=ansi \
2099 1.1 christos -std1 \
2100 1.1 christos -Ae \
2101 1.1 christos "-Aa -D_HPUX_SOURCE" \
2102 1.1 christos -Xc
2103 1.1 christos do
2104 1.1 christos
2105 1.1 christos cf_fix_cppflags=no
2106 1.1 christos cf_new_cflags=
2107 1.1 christos cf_new_cppflags=
2108 1.1 christos cf_new_extra_cppflags=
2109 1.1 christos
2110 1.1 christos for cf_add_cflags in $cf_arg
2111 1.1 christos do
2112 1.1 christos case $cf_fix_cppflags in
2113 1.1 christos no)
2114 1.1 christos case $cf_add_cflags in #(vi
2115 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2116 1.1 christos case $cf_add_cflags in
2117 1.1 christos -D*)
2118 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2119 1.1 christos
2120 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2121 1.1 christos && test -z "${cf_tst_cflags}" \
2122 1.1 christos && cf_fix_cppflags=yes
2123 1.1 christos
2124 1.1 christos if test $cf_fix_cppflags = yes ; then
2125 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2126 1.1 christos continue
2127 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
2128 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2129 1.1 christos continue
2130 1.1 christos fi
2131 1.1 christos ;;
2132 1.1 christos esac
2133 1.1 christos case "$CPPFLAGS" in
2134 1.1 christos *$cf_add_cflags) #(vi
2135 1.1 christos ;;
2136 1.1 christos *) #(vi
2137 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2138 1.1 christos ;;
2139 1.1 christos esac
2140 1.1 christos ;;
2141 1.1 christos *)
2142 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2143 1.1 christos ;;
2144 1.1 christos esac
2145 1.1 christos ;;
2146 1.1 christos yes)
2147 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2148 1.1 christos
2149 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2150 1.1 christos
2151 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2152 1.1 christos && test -z "${cf_tst_cflags}" \
2153 1.1 christos && cf_fix_cppflags=no
2154 1.1 christos ;;
2155 1.1 christos esac
2156 1.1 christos done
2157 1.1 christos
2158 1.1 christos if test -n "$cf_new_cflags" ; then
2159 1.1 christos
2160 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
2161 1.1 christos fi
2162 1.1 christos
2163 1.1 christos if test -n "$cf_new_cppflags" ; then
2164 1.1 christos
2165 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2166 1.1 christos fi
2167 1.1 christos
2168 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
2169 1.1 christos
2170 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2171 1.1 christos fi
2172 1.1 christos
2173 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2174 1.1 christos #line 2174 "configure"
2175 1.1 christos #include "confdefs.h"
2176 1.1 christos
2177 1.1 christos #ifndef CC_HAS_PROTOS
2178 1.1 christos #if !defined(__STDC__) || (__STDC__ != 1)
2179 1.1 christos choke me
2180 1.1 christos #endif
2181 1.1 christos #endif
2182 1.1 christos
2183 1.1 christos int
2184 1.1 christos main ()
2185 1.1 christos {
2186 1.1 christos
2187 1.1 christos int test (int i, double x);
2188 1.1 christos struct s1 {int (*f) (int a);};
2189 1.1 christos struct s2 {int (*f) (double a);};
2190 1.1 christos ;
2191 1.1 christos return 0;
2192 1.1 christos }
2193 1.1 christos _ACEOF
2194 1.1 christos rm -f conftest.$ac_objext
2195 1.1 christos if { (eval echo "$as_me:2195: \"$ac_compile\"") >&5
2196 1.1 christos (eval $ac_compile) 2>&5
2197 1.1 christos ac_status=$?
2198 1.1 christos echo "$as_me:2198: \$? = $ac_status" >&5
2199 1.1 christos (exit $ac_status); } &&
2200 1.1 christos { ac_try='test -s conftest.$ac_objext'
2201 1.1 christos { (eval echo "$as_me:2201: \"$ac_try\"") >&5
2202 1.1 christos (eval $ac_try) 2>&5
2203 1.1 christos ac_status=$?
2204 1.1 christos echo "$as_me:2204: \$? = $ac_status" >&5
2205 1.1 christos (exit $ac_status); }; }; then
2206 1.1 christos cf_cv_ansi_cc="$cf_arg"; break
2207 1.1 christos else
2208 1.1 christos echo "$as_me: failed program was:" >&5
2209 1.1 christos cat conftest.$ac_ext >&5
2210 1.1 christos fi
2211 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
2212 1.1 christos done
2213 1.1 christos CFLAGS="$cf_save_CFLAGS"
2214 1.1 christos CPPFLAGS="$cf_save_CPPFLAGS"
2215 1.1 christos
2216 1.1 christos fi
2217 1.1 christos echo "$as_me:2217: result: $cf_cv_ansi_cc" >&5
2218 1.1 christos echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2219 1.1 christos
2220 1.1 christos if test "$cf_cv_ansi_cc" != "no"; then
2221 1.1 christos if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2222 1.1 christos
2223 1.1 christos cf_fix_cppflags=no
2224 1.1 christos cf_new_cflags=
2225 1.1 christos cf_new_cppflags=
2226 1.1 christos cf_new_extra_cppflags=
2227 1.1 christos
2228 1.1 christos for cf_add_cflags in $cf_cv_ansi_cc
2229 1.1 christos do
2230 1.1 christos case $cf_fix_cppflags in
2231 1.1 christos no)
2232 1.1 christos case $cf_add_cflags in #(vi
2233 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2234 1.1 christos case $cf_add_cflags in
2235 1.1 christos -D*)
2236 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2237 1.1 christos
2238 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2239 1.1 christos && test -z "${cf_tst_cflags}" \
2240 1.1 christos && cf_fix_cppflags=yes
2241 1.1 christos
2242 1.1 christos if test $cf_fix_cppflags = yes ; then
2243 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2244 1.1 christos continue
2245 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
2246 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2247 1.1 christos continue
2248 1.1 christos fi
2249 1.1 christos ;;
2250 1.1 christos esac
2251 1.1 christos case "$CPPFLAGS" in
2252 1.1 christos *$cf_add_cflags) #(vi
2253 1.1 christos ;;
2254 1.1 christos *) #(vi
2255 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2256 1.1 christos ;;
2257 1.1 christos esac
2258 1.1 christos ;;
2259 1.1 christos *)
2260 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2261 1.1 christos ;;
2262 1.1 christos esac
2263 1.1 christos ;;
2264 1.1 christos yes)
2265 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2266 1.1 christos
2267 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2268 1.1 christos
2269 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2270 1.1 christos && test -z "${cf_tst_cflags}" \
2271 1.1 christos && cf_fix_cppflags=no
2272 1.1 christos ;;
2273 1.1 christos esac
2274 1.1 christos done
2275 1.1 christos
2276 1.1 christos if test -n "$cf_new_cflags" ; then
2277 1.1 christos
2278 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
2279 1.1 christos fi
2280 1.1 christos
2281 1.1 christos if test -n "$cf_new_cppflags" ; then
2282 1.1 christos
2283 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2284 1.1 christos fi
2285 1.1 christos
2286 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
2287 1.1 christos
2288 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2289 1.1 christos fi
2290 1.1 christos
2291 1.1 christos else
2292 1.1 christos cat >>confdefs.h <<\EOF
2293 1.1 christos #define CC_HAS_PROTOS 1
2294 1.1 christos EOF
2295 1.1 christos
2296 1.1 christos fi
2297 1.1 christos fi
2298 1.1 christos
2299 1.1 christos if test "$cf_cv_ansi_cc" = "no"; then
2300 1.1 christos { { echo "$as_me:2300: error: Your compiler does not appear to recognize prototypes.
2301 1.1 christos You have the following choices:
2302 1.1 christos a. adjust your compiler options
2303 1.1 christos b. get an up-to-date compiler
2304 1.1 christos c. use a wrapper such as unproto" >&5
2305 1.1 christos echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2306 1.1 christos You have the following choices:
2307 1.1 christos a. adjust your compiler options
2308 1.1 christos b. get an up-to-date compiler
2309 1.1 christos c. use a wrapper such as unproto" >&2;}
2310 1.1 christos { (exit 1); exit 1; }; }
2311 1.1 christos fi
2312 1.1 christos
2313 1.1 christos GCC_VERSION=none
2314 1.1 christos if test "$GCC" = yes ; then
2315 1.1 christos echo "$as_me:2315: checking version of $CC" >&5
2316 1.1 christos echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2317 1.1 christos GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2318 1.1 christos test -z "$GCC_VERSION" && GCC_VERSION=unknown
2319 1.1 christos echo "$as_me:2319: result: $GCC_VERSION" >&5
2320 1.1 christos echo "${ECHO_T}$GCC_VERSION" >&6
2321 1.1 christos fi
2322 1.1 christos
2323 1.1 christos if ( test "$GCC" = yes || test "$GXX" = yes )
2324 1.1 christos then
2325 1.1 christos echo "$as_me:2325: checking if you want to check for gcc warnings" >&5
2326 1.1 christos echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
2327 1.1 christos
2328 1.1 christos # Check whether --with-warnings or --without-warnings was given.
2329 1.1 christos if test "${with_warnings+set}" = set; then
2330 1.1 christos withval="$with_warnings"
2331 1.1 christos cf_opt_with_warnings=$withval
2332 1.1 christos else
2333 1.1 christos cf_opt_with_warnings=no
2334 1.1 christos fi;
2335 1.1 christos echo "$as_me:2335: result: $cf_opt_with_warnings" >&5
2336 1.1 christos echo "${ECHO_T}$cf_opt_with_warnings" >&6
2337 1.1 christos if test "$cf_opt_with_warnings" != no ; then
2338 1.1 christos
2339 1.1 christos if test "$GCC" = yes
2340 1.1 christos then
2341 1.1 christos cat > conftest.i <<EOF
2342 1.1 christos #ifndef GCC_PRINTF
2343 1.1 christos #define GCC_PRINTF 0
2344 1.1 christos #endif
2345 1.1 christos #ifndef GCC_SCANF
2346 1.1 christos #define GCC_SCANF 0
2347 1.1 christos #endif
2348 1.1 christos #ifndef GCC_NORETURN
2349 1.1 christos #define GCC_NORETURN /* nothing */
2350 1.1 christos #endif
2351 1.1 christos #ifndef GCC_UNUSED
2352 1.1 christos #define GCC_UNUSED /* nothing */
2353 1.1 christos #endif
2354 1.1 christos EOF
2355 1.1 christos if test "$GCC" = yes
2356 1.1 christos then
2357 1.1 christos { echo "$as_me:2357: checking for $CC __attribute__ directives..." >&5
2358 1.1 christos echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2359 1.1 christos cat > conftest.$ac_ext <<EOF
2360 1.1 christos #line 2360 "${as_me-configure}"
2361 1.1 christos #include "confdefs.h"
2362 1.1 christos #include "conftest.h"
2363 1.1 christos #include "conftest.i"
2364 1.1 christos #if GCC_PRINTF
2365 1.1 christos #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2366 1.1 christos #else
2367 1.1 christos #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2368 1.1 christos #endif
2369 1.1 christos #if GCC_SCANF
2370 1.1 christos #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2371 1.1 christos #else
2372 1.1 christos #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2373 1.1 christos #endif
2374 1.1 christos extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2375 1.1 christos extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2376 1.1 christos extern void foo(void) GCC_NORETURN;
2377 1.1 christos int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2378 1.1 christos EOF
2379 1.1 christos cf_printf_attribute=no
2380 1.1 christos cf_scanf_attribute=no
2381 1.1 christos for cf_attribute in scanf printf unused noreturn
2382 1.1 christos do
2383 1.1 christos
2384 1.1 christos cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2385 1.1 christos
2386 1.1 christos cf_directive="__attribute__(($cf_attribute))"
2387 1.1 christos echo "checking for $CC $cf_directive" 1>&5
2388 1.1 christos
2389 1.1 christos case $cf_attribute in #(vi
2390 1.1 christos printf) #(vi
2391 1.1 christos cf_printf_attribute=yes
2392 1.1 christos cat >conftest.h <<EOF
2393 1.1 christos #define GCC_$cf_ATTRIBUTE 1
2394 1.1 christos EOF
2395 1.1 christos ;;
2396 1.1 christos scanf) #(vi
2397 1.1 christos cf_scanf_attribute=yes
2398 1.1 christos cat >conftest.h <<EOF
2399 1.1 christos #define GCC_$cf_ATTRIBUTE 1
2400 1.1 christos EOF
2401 1.1 christos ;;
2402 1.1 christos *) #(vi
2403 1.1 christos cat >conftest.h <<EOF
2404 1.1 christos #define GCC_$cf_ATTRIBUTE $cf_directive
2405 1.1 christos EOF
2406 1.1 christos ;;
2407 1.1 christos esac
2408 1.1 christos
2409 1.1 christos if { (eval echo "$as_me:2409: \"$ac_compile\"") >&5
2410 1.1 christos (eval $ac_compile) 2>&5
2411 1.1 christos ac_status=$?
2412 1.1 christos echo "$as_me:2412: \$? = $ac_status" >&5
2413 1.1 christos (exit $ac_status); }; then
2414 1.1 christos test -n "$verbose" && echo "$as_me:2414: result: ... $cf_attribute" >&5
2415 1.1 christos echo "${ECHO_T}... $cf_attribute" >&6
2416 1.1 christos cat conftest.h >>confdefs.h
2417 1.1 christos case $cf_attribute in #(vi
2418 1.1 christos printf) #(vi
2419 1.1 christos if test "$cf_printf_attribute" = no ; then
2420 1.1 christos cat >>confdefs.h <<EOF
2421 1.1 christos #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2422 1.1 christos EOF
2423 1.1 christos else
2424 1.1 christos cat >>confdefs.h <<EOF
2425 1.1 christos #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2426 1.1 christos EOF
2427 1.1 christos fi
2428 1.1 christos ;;
2429 1.1 christos scanf) #(vi
2430 1.1 christos if test "$cf_scanf_attribute" = no ; then
2431 1.1 christos cat >>confdefs.h <<EOF
2432 1.1 christos #define GCC_SCANFLIKE(fmt,var) /* nothing */
2433 1.1 christos EOF
2434 1.1 christos else
2435 1.1 christos cat >>confdefs.h <<EOF
2436 1.1 christos #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2437 1.1 christos EOF
2438 1.1 christos fi
2439 1.1 christos ;;
2440 1.1 christos esac
2441 1.1 christos fi
2442 1.1 christos done
2443 1.1 christos else
2444 1.1 christos fgrep define conftest.i >>confdefs.h
2445 1.1 christos fi
2446 1.1 christos rm -rf conftest*
2447 1.1 christos fi
2448 1.1 christos
2449 1.1 christos INTEL_COMPILER=no
2450 1.1 christos
2451 1.1 christos if test "$GCC" = yes ; then
2452 1.1 christos case $host_os in
2453 1.1 christos linux*|gnu*)
2454 1.1 christos echo "$as_me:2454: checking if this is really Intel C compiler" >&5
2455 1.1 christos echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2456 1.1 christos cf_save_CFLAGS="$CFLAGS"
2457 1.1 christos CFLAGS="$CFLAGS -no-gcc"
2458 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2459 1.1 christos #line 2459 "configure"
2460 1.1 christos #include "confdefs.h"
2461 1.1 christos
2462 1.1 christos int
2463 1.1 christos main ()
2464 1.1 christos {
2465 1.1 christos
2466 1.1 christos #ifdef __INTEL_COMPILER
2467 1.1 christos #else
2468 1.1 christos make an error
2469 1.1 christos #endif
2470 1.1 christos
2471 1.1 christos ;
2472 1.1 christos return 0;
2473 1.1 christos }
2474 1.1 christos _ACEOF
2475 1.1 christos rm -f conftest.$ac_objext
2476 1.1 christos if { (eval echo "$as_me:2476: \"$ac_compile\"") >&5
2477 1.1 christos (eval $ac_compile) 2>&5
2478 1.1 christos ac_status=$?
2479 1.1 christos echo "$as_me:2479: \$? = $ac_status" >&5
2480 1.1 christos (exit $ac_status); } &&
2481 1.1 christos { ac_try='test -s conftest.$ac_objext'
2482 1.1 christos { (eval echo "$as_me:2482: \"$ac_try\"") >&5
2483 1.1 christos (eval $ac_try) 2>&5
2484 1.1 christos ac_status=$?
2485 1.1 christos echo "$as_me:2485: \$? = $ac_status" >&5
2486 1.1 christos (exit $ac_status); }; }; then
2487 1.1 christos INTEL_COMPILER=yes
2488 1.1 christos cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
2489 1.1 christos
2490 1.1 christos else
2491 1.1 christos echo "$as_me: failed program was:" >&5
2492 1.1 christos cat conftest.$ac_ext >&5
2493 1.1 christos fi
2494 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext
2495 1.1 christos CFLAGS="$cf_save_CFLAGS"
2496 1.1 christos echo "$as_me:2496: result: $INTEL_COMPILER" >&5
2497 1.1 christos echo "${ECHO_T}$INTEL_COMPILER" >&6
2498 1.1 christos ;;
2499 1.1 christos esac
2500 1.1 christos fi
2501 1.1 christos
2502 1.1 christos cat > conftest.$ac_ext <<EOF
2503 1.1 christos #line 2503 "${as_me-configure}"
2504 1.1 christos int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
2505 1.1 christos EOF
2506 1.1 christos
2507 1.1 christos if test "$INTEL_COMPILER" = yes
2508 1.1 christos then
2509 1.1 christos # The "-wdXXX" options suppress warnings:
2510 1.1 christos # remark #1419: external declaration in primary source file
2511 1.1 christos # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
2512 1.1 christos # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
2513 1.1 christos # remark #193: zero used for undefined preprocessing identifier
2514 1.1 christos # remark #593: variable "curs_sb_left_arrow" was set but never used
2515 1.1 christos # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
2516 1.1 christos # remark #869: parameter "tw" was never referenced
2517 1.1 christos # remark #981: operands are evaluated in unspecified order
2518 1.1 christos # warning #279: controlling expression is constant
2519 1.1 christos
2520 1.1 christos { echo "$as_me:2520: checking for $CC warning options..." >&5
2521 1.1 christos echo "$as_me: checking for $CC warning options..." >&6;}
2522 1.1 christos cf_save_CFLAGS="$CFLAGS"
2523 1.1 christos EXTRA_CFLAGS="-Wall"
2524 1.1 christos for cf_opt in \
2525 1.1 christos wd1419 \
2526 1.1 christos wd1683 \
2527 1.1 christos wd1684 \
2528 1.1 christos wd193 \
2529 1.1 christos wd593 \
2530 1.1 christos wd279 \
2531 1.1 christos wd810 \
2532 1.1 christos wd869 \
2533 1.1 christos wd981
2534 1.1 christos do
2535 1.1 christos CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
2536 1.1 christos if { (eval echo "$as_me:2536: \"$ac_compile\"") >&5
2537 1.1 christos (eval $ac_compile) 2>&5
2538 1.1 christos ac_status=$?
2539 1.1 christos echo "$as_me:2539: \$? = $ac_status" >&5
2540 1.1 christos (exit $ac_status); }; then
2541 1.1 christos test -n "$verbose" && echo "$as_me:2541: result: ... -$cf_opt" >&5
2542 1.1 christos echo "${ECHO_T}... -$cf_opt" >&6
2543 1.1 christos EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
2544 1.1 christos fi
2545 1.1 christos done
2546 1.1 christos CFLAGS="$cf_save_CFLAGS"
2547 1.1 christos
2548 1.1 christos elif test "$GCC" = yes
2549 1.1 christos then
2550 1.1 christos { echo "$as_me:2550: checking for $CC warning options..." >&5
2551 1.1 christos echo "$as_me: checking for $CC warning options..." >&6;}
2552 1.1 christos cf_save_CFLAGS="$CFLAGS"
2553 1.1 christos EXTRA_CFLAGS="-W -Wall"
2554 1.1 christos cf_warn_CONST=""
2555 1.1 christos test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
2556 1.1 christos for cf_opt in \
2557 1.1 christos Wbad-function-cast \
2558 1.1 christos Wcast-align \
2559 1.1 christos Wcast-qual \
2560 1.1 christos Winline \
2561 1.1 christos Wmissing-declarations \
2562 1.1 christos Wmissing-prototypes \
2563 1.1 christos Wnested-externs \
2564 1.1 christos Wpointer-arith \
2565 1.1 christos Wshadow \
2566 1.1 christos Wstrict-prototypes \
2567 1.1 christos Wundef $cf_warn_CONST Wwrite-strings
2568 1.1 christos do
2569 1.1 christos CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
2570 1.1 christos if { (eval echo "$as_me:2570: \"$ac_compile\"") >&5
2571 1.1 christos (eval $ac_compile) 2>&5
2572 1.1 christos ac_status=$?
2573 1.1 christos echo "$as_me:2573: \$? = $ac_status" >&5
2574 1.1 christos (exit $ac_status); }; then
2575 1.1 christos test -n "$verbose" && echo "$as_me:2575: result: ... -$cf_opt" >&5
2576 1.1 christos echo "${ECHO_T}... -$cf_opt" >&6
2577 1.1 christos case $cf_opt in #(vi
2578 1.1 christos Wcast-qual) #(vi
2579 1.1 christos CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
2580 1.1 christos ;;
2581 1.1 christos Winline) #(vi
2582 1.1 christos case $GCC_VERSION in
2583 1.1 christos [34].*)
2584 1.1 christos test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
2585 1.1 christos
2586 1.1 christos echo "${as_me-configure}:2586: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
2587 1.1 christos
2588 1.1 christos continue;;
2589 1.1 christos esac
2590 1.1 christos ;;
2591 1.1 christos esac
2592 1.1 christos EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
2593 1.1 christos fi
2594 1.1 christos done
2595 1.1 christos CFLAGS="$cf_save_CFLAGS"
2596 1.1 christos fi
2597 1.1 christos rm -f conftest*
2598 1.1 christos
2599 1.1 christos fi
2600 1.1 christos fi
2601 1.1 christos
2602 1.1 christos echo "$as_me:2602: checking if you want to see long compiling messages" >&5
2603 1.1 christos echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
2604 1.1 christos
2605 1.1 christos # Check whether --enable-echo or --disable-echo was given.
2606 1.1 christos if test "${enable_echo+set}" = set; then
2607 1.1 christos enableval="$enable_echo"
2608 1.1 christos test "$enableval" != no && enableval=yes
2609 1.1 christos if test "$enableval" != "yes" ; then
2610 1.1 christos
2611 1.1 christos ECHO_LT='--silent'
2612 1.1 christos ECHO_LD='@echo linking $@;'
2613 1.1 christos RULE_CC=' @echo compiling $<'
2614 1.1 christos SHOW_CC=' @echo compiling $@'
2615 1.1 christos ECHO_CC='@'
2616 1.1 christos
2617 1.1 christos else
2618 1.1 christos
2619 1.1 christos ECHO_LT=''
2620 1.1 christos ECHO_LD=''
2621 1.1 christos RULE_CC='# compiling'
2622 1.1 christos SHOW_CC='# compiling'
2623 1.1 christos ECHO_CC=''
2624 1.1 christos
2625 1.1 christos fi
2626 1.1 christos else
2627 1.1 christos enableval=yes
2628 1.1 christos
2629 1.1 christos ECHO_LT=''
2630 1.1 christos ECHO_LD=''
2631 1.1 christos RULE_CC='# compiling'
2632 1.1 christos SHOW_CC='# compiling'
2633 1.1 christos ECHO_CC=''
2634 1.1 christos
2635 1.1 christos fi;
2636 1.1 christos echo "$as_me:2636: result: $enableval" >&5
2637 1.1 christos echo "${ECHO_T}$enableval" >&6
2638 1.1 christos
2639 1.1 christos case $cf_cv_system_name in
2640 1.1 christos os2*)
2641 1.1 christos CFLAGS="$CFLAGS -Zmt"
2642 1.1 christos CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2643 1.1 christos CXXFLAGS="$CXXFLAGS -Zmt"
2644 1.1 christos # autoconf's macro sets -Zexe and suffix both, which conflict:w
2645 1.1 christos LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2646 1.1 christos ac_cv_exeext=.exe
2647 1.1 christos ;;
2648 1.1 christos esac
2649 1.1 christos
2650 1.1 christos PROG_EXT="$EXEEXT"
2651 1.1 christos
2652 1.1 christos test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2653 1.1 christos #define PROG_EXT "$PROG_EXT"
2654 1.1 christos EOF
2655 1.1 christos
2656 1.1 christos ac_ext=c
2657 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2658 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661 1.1 christos ac_main_return=return
2662 1.1 christos echo "$as_me:2662: checking how to run the C preprocessor" >&5
2663 1.1 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2664 1.1 christos # On Suns, sometimes $CPP names a directory.
2665 1.1 christos if test -n "$CPP" && test -d "$CPP"; then
2666 1.1 christos CPP=
2667 1.1 christos fi
2668 1.1 christos if test -z "$CPP"; then
2669 1.1 christos if test "${ac_cv_prog_CPP+set}" = set; then
2670 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2671 1.1 christos else
2672 1.1 christos # Double quotes because CPP needs to be expanded
2673 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2674 1.1 christos do
2675 1.1 christos ac_preproc_ok=false
2676 1.1 christos for ac_c_preproc_warn_flag in '' yes
2677 1.1 christos do
2678 1.1 christos # Use a header file that comes with gcc, so configuring glibc
2679 1.1 christos # with a fresh cross-compiler works.
2680 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
2681 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
2682 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2683 1.1 christos #line 2683 "configure"
2684 1.1 christos #include "confdefs.h"
2685 1.1 christos #include <assert.h>
2686 1.1 christos Syntax error
2687 1.1 christos _ACEOF
2688 1.1 christos if { (eval echo "$as_me:2688: \"$ac_cpp conftest.$ac_ext\"") >&5
2689 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2690 1.1 christos ac_status=$?
2691 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
2692 1.1 christos rm -f conftest.er1
2693 1.1 christos cat conftest.err >&5
2694 1.1 christos echo "$as_me:2694: \$? = $ac_status" >&5
2695 1.1 christos (exit $ac_status); } >/dev/null; then
2696 1.1 christos if test -s conftest.err; then
2697 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
2698 1.1 christos else
2699 1.1 christos ac_cpp_err=
2700 1.1 christos fi
2701 1.1 christos else
2702 1.1 christos ac_cpp_err=yes
2703 1.1 christos fi
2704 1.1 christos if test -z "$ac_cpp_err"; then
2705 1.1 christos :
2706 1.1 christos else
2707 1.1 christos echo "$as_me: failed program was:" >&5
2708 1.1 christos cat conftest.$ac_ext >&5
2709 1.1 christos # Broken: fails on valid input.
2710 1.1 christos continue
2711 1.1 christos fi
2712 1.1 christos rm -f conftest.err conftest.$ac_ext
2713 1.1 christos
2714 1.1 christos # OK, works on sane cases. Now check whether non-existent headers
2715 1.1 christos # can be detected and how.
2716 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2717 1.1 christos #line 2717 "configure"
2718 1.1 christos #include "confdefs.h"
2719 1.1 christos #include <ac_nonexistent.h>
2720 1.1 christos _ACEOF
2721 1.1 christos if { (eval echo "$as_me:2721: \"$ac_cpp conftest.$ac_ext\"") >&5
2722 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2723 1.1 christos ac_status=$?
2724 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
2725 1.1 christos rm -f conftest.er1
2726 1.1 christos cat conftest.err >&5
2727 1.1 christos echo "$as_me:2727: \$? = $ac_status" >&5
2728 1.1 christos (exit $ac_status); } >/dev/null; then
2729 1.1 christos if test -s conftest.err; then
2730 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
2731 1.1 christos else
2732 1.1 christos ac_cpp_err=
2733 1.1 christos fi
2734 1.1 christos else
2735 1.1 christos ac_cpp_err=yes
2736 1.1 christos fi
2737 1.1 christos if test -z "$ac_cpp_err"; then
2738 1.1 christos # Broken: success on invalid input.
2739 1.1 christos continue
2740 1.1 christos else
2741 1.1 christos echo "$as_me: failed program was:" >&5
2742 1.1 christos cat conftest.$ac_ext >&5
2743 1.1 christos # Passes both tests.
2744 1.1 christos ac_preproc_ok=:
2745 1.1 christos break
2746 1.1 christos fi
2747 1.1 christos rm -f conftest.err conftest.$ac_ext
2748 1.1 christos
2749 1.1 christos done
2750 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2751 1.1 christos rm -f conftest.err conftest.$ac_ext
2752 1.1 christos if $ac_preproc_ok; then
2753 1.1 christos break
2754 1.1 christos fi
2755 1.1 christos
2756 1.1 christos done
2757 1.1 christos ac_cv_prog_CPP=$CPP
2758 1.1 christos
2759 1.1 christos fi
2760 1.1 christos CPP=$ac_cv_prog_CPP
2761 1.1 christos else
2762 1.1 christos ac_cv_prog_CPP=$CPP
2763 1.1 christos fi
2764 1.1 christos echo "$as_me:2764: result: $CPP" >&5
2765 1.1 christos echo "${ECHO_T}$CPP" >&6
2766 1.1 christos ac_preproc_ok=false
2767 1.1 christos for ac_c_preproc_warn_flag in '' yes
2768 1.1 christos do
2769 1.1 christos # Use a header file that comes with gcc, so configuring glibc
2770 1.1 christos # with a fresh cross-compiler works.
2771 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
2772 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
2773 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2774 1.1 christos #line 2774 "configure"
2775 1.1 christos #include "confdefs.h"
2776 1.1 christos #include <assert.h>
2777 1.1 christos Syntax error
2778 1.1 christos _ACEOF
2779 1.1 christos if { (eval echo "$as_me:2779: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2781 1.1 christos ac_status=$?
2782 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
2783 1.1 christos rm -f conftest.er1
2784 1.1 christos cat conftest.err >&5
2785 1.1 christos echo "$as_me:2785: \$? = $ac_status" >&5
2786 1.1 christos (exit $ac_status); } >/dev/null; then
2787 1.1 christos if test -s conftest.err; then
2788 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
2789 1.1 christos else
2790 1.1 christos ac_cpp_err=
2791 1.1 christos fi
2792 1.1 christos else
2793 1.1 christos ac_cpp_err=yes
2794 1.1 christos fi
2795 1.1 christos if test -z "$ac_cpp_err"; then
2796 1.1 christos :
2797 1.1 christos else
2798 1.1 christos echo "$as_me: failed program was:" >&5
2799 1.1 christos cat conftest.$ac_ext >&5
2800 1.1 christos # Broken: fails on valid input.
2801 1.1 christos continue
2802 1.1 christos fi
2803 1.1 christos rm -f conftest.err conftest.$ac_ext
2804 1.1 christos
2805 1.1 christos # OK, works on sane cases. Now check whether non-existent headers
2806 1.1 christos # can be detected and how.
2807 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2808 1.1 christos #line 2808 "configure"
2809 1.1 christos #include "confdefs.h"
2810 1.1 christos #include <ac_nonexistent.h>
2811 1.1 christos _ACEOF
2812 1.1 christos if { (eval echo "$as_me:2812: \"$ac_cpp conftest.$ac_ext\"") >&5
2813 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2814 1.1 christos ac_status=$?
2815 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
2816 1.1 christos rm -f conftest.er1
2817 1.1 christos cat conftest.err >&5
2818 1.1 christos echo "$as_me:2818: \$? = $ac_status" >&5
2819 1.1 christos (exit $ac_status); } >/dev/null; then
2820 1.1 christos if test -s conftest.err; then
2821 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
2822 1.1 christos else
2823 1.1 christos ac_cpp_err=
2824 1.1 christos fi
2825 1.1 christos else
2826 1.1 christos ac_cpp_err=yes
2827 1.1 christos fi
2828 1.1 christos if test -z "$ac_cpp_err"; then
2829 1.1 christos # Broken: success on invalid input.
2830 1.1 christos continue
2831 1.1 christos else
2832 1.1 christos echo "$as_me: failed program was:" >&5
2833 1.1 christos cat conftest.$ac_ext >&5
2834 1.1 christos # Passes both tests.
2835 1.1 christos ac_preproc_ok=:
2836 1.1 christos break
2837 1.1 christos fi
2838 1.1 christos rm -f conftest.err conftest.$ac_ext
2839 1.1 christos
2840 1.1 christos done
2841 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2842 1.1 christos rm -f conftest.err conftest.$ac_ext
2843 1.1 christos if $ac_preproc_ok; then
2844 1.1 christos :
2845 1.1 christos else
2846 1.1 christos { { echo "$as_me:2846: error: C preprocessor \"$CPP\" fails sanity check" >&5
2847 1.1 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2848 1.1 christos { (exit 1); exit 1; }; }
2849 1.1 christos fi
2850 1.1 christos
2851 1.1 christos ac_ext=c
2852 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2853 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 1.1 christos ac_main_return=return
2857 1.1 christos
2858 1.1 christos echo "$as_me:2858: checking if you want to use dmalloc for testing" >&5
2859 1.1 christos echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
2860 1.1 christos
2861 1.1 christos # Check whether --with-dmalloc or --without-dmalloc was given.
2862 1.1 christos if test "${with_dmalloc+set}" = set; then
2863 1.1 christos withval="$with_dmalloc"
2864 1.1 christos cat >>confdefs.h <<\EOF
2865 1.1 christos #define USE_DMALLOC 1
2866 1.1 christos EOF
2867 1.1 christos
2868 1.1 christos : ${with_cflags:=-g}
2869 1.1 christos : ${with_no_leaks:=yes}
2870 1.1 christos with_dmalloc=yes
2871 1.1 christos else
2872 1.1 christos with_dmalloc=
2873 1.1 christos fi;
2874 1.1 christos echo "$as_me:2874: result: ${with_dmalloc:-no}" >&5
2875 1.1 christos echo "${ECHO_T}${with_dmalloc:-no}" >&6
2876 1.1 christos
2877 1.1 christos case .$with_cflags in #(vi
2878 1.1 christos .*-g*)
2879 1.1 christos case .$CFLAGS in #(vi
2880 1.1 christos .*-g*) #(vi
2881 1.1 christos ;;
2882 1.1 christos *)
2883 1.1 christos
2884 1.1 christos cf_fix_cppflags=no
2885 1.1 christos cf_new_cflags=
2886 1.1 christos cf_new_cppflags=
2887 1.1 christos cf_new_extra_cppflags=
2888 1.1 christos
2889 1.1 christos for cf_add_cflags in -g
2890 1.1 christos do
2891 1.1 christos case $cf_fix_cppflags in
2892 1.1 christos no)
2893 1.1 christos case $cf_add_cflags in #(vi
2894 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2895 1.1 christos case $cf_add_cflags in
2896 1.1 christos -D*)
2897 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2898 1.1 christos
2899 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2900 1.1 christos && test -z "${cf_tst_cflags}" \
2901 1.1 christos && cf_fix_cppflags=yes
2902 1.1 christos
2903 1.1 christos if test $cf_fix_cppflags = yes ; then
2904 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2905 1.1 christos continue
2906 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
2907 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2908 1.1 christos continue
2909 1.1 christos fi
2910 1.1 christos ;;
2911 1.1 christos esac
2912 1.1 christos case "$CPPFLAGS" in
2913 1.1 christos *$cf_add_cflags) #(vi
2914 1.1 christos ;;
2915 1.1 christos *) #(vi
2916 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2917 1.1 christos ;;
2918 1.1 christos esac
2919 1.1 christos ;;
2920 1.1 christos *)
2921 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2922 1.1 christos ;;
2923 1.1 christos esac
2924 1.1 christos ;;
2925 1.1 christos yes)
2926 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2927 1.1 christos
2928 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2929 1.1 christos
2930 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2931 1.1 christos && test -z "${cf_tst_cflags}" \
2932 1.1 christos && cf_fix_cppflags=no
2933 1.1 christos ;;
2934 1.1 christos esac
2935 1.1 christos done
2936 1.1 christos
2937 1.1 christos if test -n "$cf_new_cflags" ; then
2938 1.1 christos
2939 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
2940 1.1 christos fi
2941 1.1 christos
2942 1.1 christos if test -n "$cf_new_cppflags" ; then
2943 1.1 christos
2944 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2945 1.1 christos fi
2946 1.1 christos
2947 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
2948 1.1 christos
2949 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2950 1.1 christos fi
2951 1.1 christos
2952 1.1 christos ;;
2953 1.1 christos esac
2954 1.1 christos ;;
2955 1.1 christos esac
2956 1.1 christos
2957 1.1 christos if test "$with_dmalloc" = yes ; then
2958 1.1 christos echo "$as_me:2958: checking for dmalloc.h" >&5
2959 1.1 christos echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
2960 1.1 christos if test "${ac_cv_header_dmalloc_h+set}" = set; then
2961 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
2962 1.1 christos else
2963 1.1 christos cat >conftest.$ac_ext <<_ACEOF
2964 1.1 christos #line 2964 "configure"
2965 1.1 christos #include "confdefs.h"
2966 1.1 christos #include <dmalloc.h>
2967 1.1 christos _ACEOF
2968 1.1 christos if { (eval echo "$as_me:2968: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970 1.1 christos ac_status=$?
2971 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
2972 1.1 christos rm -f conftest.er1
2973 1.1 christos cat conftest.err >&5
2974 1.1 christos echo "$as_me:2974: \$? = $ac_status" >&5
2975 1.1 christos (exit $ac_status); } >/dev/null; then
2976 1.1 christos if test -s conftest.err; then
2977 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
2978 1.1 christos else
2979 1.1 christos ac_cpp_err=
2980 1.1 christos fi
2981 1.1 christos else
2982 1.1 christos ac_cpp_err=yes
2983 1.1 christos fi
2984 1.1 christos if test -z "$ac_cpp_err"; then
2985 1.1 christos ac_cv_header_dmalloc_h=yes
2986 1.1 christos else
2987 1.1 christos echo "$as_me: failed program was:" >&5
2988 1.1 christos cat conftest.$ac_ext >&5
2989 1.1 christos ac_cv_header_dmalloc_h=no
2990 1.1 christos fi
2991 1.1 christos rm -f conftest.err conftest.$ac_ext
2992 1.1 christos fi
2993 1.1 christos echo "$as_me:2993: result: $ac_cv_header_dmalloc_h" >&5
2994 1.1 christos echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
2995 1.1 christos if test $ac_cv_header_dmalloc_h = yes; then
2996 1.1 christos
2997 1.1 christos echo "$as_me:2997: checking for dmalloc_debug in -ldmalloc" >&5
2998 1.1 christos echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
2999 1.1 christos if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
3000 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3001 1.1 christos else
3002 1.1 christos ac_check_lib_save_LIBS=$LIBS
3003 1.1 christos LIBS="-ldmalloc $LIBS"
3004 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3005 1.1 christos #line 3005 "configure"
3006 1.1 christos #include "confdefs.h"
3007 1.1 christos
3008 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
3009 1.1 christos #ifdef __cplusplus
3010 1.1 christos extern "C"
3011 1.1 christos #endif
3012 1.1 christos /* We use char because int might match the return type of a gcc2
3013 1.1 christos builtin and then its argument prototype would still apply. */
3014 1.1 christos char dmalloc_debug ();
3015 1.1 christos int
3016 1.1 christos main ()
3017 1.1 christos {
3018 1.1 christos dmalloc_debug ();
3019 1.1 christos ;
3020 1.1 christos return 0;
3021 1.1 christos }
3022 1.1 christos _ACEOF
3023 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3024 1.1 christos if { (eval echo "$as_me:3024: \"$ac_link\"") >&5
3025 1.1 christos (eval $ac_link) 2>&5
3026 1.1 christos ac_status=$?
3027 1.1 christos echo "$as_me:3027: \$? = $ac_status" >&5
3028 1.1 christos (exit $ac_status); } &&
3029 1.1 christos { ac_try='test -s conftest$ac_exeext'
3030 1.1 christos { (eval echo "$as_me:3030: \"$ac_try\"") >&5
3031 1.1 christos (eval $ac_try) 2>&5
3032 1.1 christos ac_status=$?
3033 1.1 christos echo "$as_me:3033: \$? = $ac_status" >&5
3034 1.1 christos (exit $ac_status); }; }; then
3035 1.1 christos ac_cv_lib_dmalloc_dmalloc_debug=yes
3036 1.1 christos else
3037 1.1 christos echo "$as_me: failed program was:" >&5
3038 1.1 christos cat conftest.$ac_ext >&5
3039 1.1 christos ac_cv_lib_dmalloc_dmalloc_debug=no
3040 1.1 christos fi
3041 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3042 1.1 christos LIBS=$ac_check_lib_save_LIBS
3043 1.1 christos fi
3044 1.1 christos echo "$as_me:3044: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
3045 1.1 christos echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
3046 1.1 christos if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
3047 1.1 christos cat >>confdefs.h <<EOF
3048 1.1 christos #define HAVE_LIBDMALLOC 1
3049 1.1 christos EOF
3050 1.1 christos
3051 1.1 christos LIBS="-ldmalloc $LIBS"
3052 1.1 christos
3053 1.1 christos fi
3054 1.1 christos
3055 1.1 christos fi
3056 1.1 christos
3057 1.1 christos fi
3058 1.1 christos
3059 1.1 christos echo "$as_me:3059: checking if you want to use dbmalloc for testing" >&5
3060 1.1 christos echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
3061 1.1 christos
3062 1.1 christos # Check whether --with-dbmalloc or --without-dbmalloc was given.
3063 1.1 christos if test "${with_dbmalloc+set}" = set; then
3064 1.1 christos withval="$with_dbmalloc"
3065 1.1 christos cat >>confdefs.h <<\EOF
3066 1.1 christos #define USE_DBMALLOC 1
3067 1.1 christos EOF
3068 1.1 christos
3069 1.1 christos : ${with_cflags:=-g}
3070 1.1 christos : ${with_no_leaks:=yes}
3071 1.1 christos with_dbmalloc=yes
3072 1.1 christos else
3073 1.1 christos with_dbmalloc=
3074 1.1 christos fi;
3075 1.1 christos echo "$as_me:3075: result: ${with_dbmalloc:-no}" >&5
3076 1.1 christos echo "${ECHO_T}${with_dbmalloc:-no}" >&6
3077 1.1 christos
3078 1.1 christos case .$with_cflags in #(vi
3079 1.1 christos .*-g*)
3080 1.1 christos case .$CFLAGS in #(vi
3081 1.1 christos .*-g*) #(vi
3082 1.1 christos ;;
3083 1.1 christos *)
3084 1.1 christos
3085 1.1 christos cf_fix_cppflags=no
3086 1.1 christos cf_new_cflags=
3087 1.1 christos cf_new_cppflags=
3088 1.1 christos cf_new_extra_cppflags=
3089 1.1 christos
3090 1.1 christos for cf_add_cflags in -g
3091 1.1 christos do
3092 1.1 christos case $cf_fix_cppflags in
3093 1.1 christos no)
3094 1.1 christos case $cf_add_cflags in #(vi
3095 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3096 1.1 christos case $cf_add_cflags in
3097 1.1 christos -D*)
3098 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3099 1.1 christos
3100 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3101 1.1 christos && test -z "${cf_tst_cflags}" \
3102 1.1 christos && cf_fix_cppflags=yes
3103 1.1 christos
3104 1.1 christos if test $cf_fix_cppflags = yes ; then
3105 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3106 1.1 christos continue
3107 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
3108 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3109 1.1 christos continue
3110 1.1 christos fi
3111 1.1 christos ;;
3112 1.1 christos esac
3113 1.1 christos case "$CPPFLAGS" in
3114 1.1 christos *$cf_add_cflags) #(vi
3115 1.1 christos ;;
3116 1.1 christos *) #(vi
3117 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3118 1.1 christos ;;
3119 1.1 christos esac
3120 1.1 christos ;;
3121 1.1 christos *)
3122 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3123 1.1 christos ;;
3124 1.1 christos esac
3125 1.1 christos ;;
3126 1.1 christos yes)
3127 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3128 1.1 christos
3129 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3130 1.1 christos
3131 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3132 1.1 christos && test -z "${cf_tst_cflags}" \
3133 1.1 christos && cf_fix_cppflags=no
3134 1.1 christos ;;
3135 1.1 christos esac
3136 1.1 christos done
3137 1.1 christos
3138 1.1 christos if test -n "$cf_new_cflags" ; then
3139 1.1 christos
3140 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
3141 1.1 christos fi
3142 1.1 christos
3143 1.1 christos if test -n "$cf_new_cppflags" ; then
3144 1.1 christos
3145 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3146 1.1 christos fi
3147 1.1 christos
3148 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
3149 1.1 christos
3150 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3151 1.1 christos fi
3152 1.1 christos
3153 1.1 christos ;;
3154 1.1 christos esac
3155 1.1 christos ;;
3156 1.1 christos esac
3157 1.1 christos
3158 1.1 christos if test "$with_dbmalloc" = yes ; then
3159 1.1 christos echo "$as_me:3159: checking for dbmalloc.h" >&5
3160 1.1 christos echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
3161 1.1 christos if test "${ac_cv_header_dbmalloc_h+set}" = set; then
3162 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3163 1.1 christos else
3164 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3165 1.1 christos #line 3165 "configure"
3166 1.1 christos #include "confdefs.h"
3167 1.1 christos #include <dbmalloc.h>
3168 1.1 christos _ACEOF
3169 1.1 christos if { (eval echo "$as_me:3169: \"$ac_cpp conftest.$ac_ext\"") >&5
3170 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 1.1 christos ac_status=$?
3172 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err
3173 1.1 christos rm -f conftest.er1
3174 1.1 christos cat conftest.err >&5
3175 1.1 christos echo "$as_me:3175: \$? = $ac_status" >&5
3176 1.1 christos (exit $ac_status); } >/dev/null; then
3177 1.1 christos if test -s conftest.err; then
3178 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag
3179 1.1 christos else
3180 1.1 christos ac_cpp_err=
3181 1.1 christos fi
3182 1.1 christos else
3183 1.1 christos ac_cpp_err=yes
3184 1.1 christos fi
3185 1.1 christos if test -z "$ac_cpp_err"; then
3186 1.1 christos ac_cv_header_dbmalloc_h=yes
3187 1.1 christos else
3188 1.1 christos echo "$as_me: failed program was:" >&5
3189 1.1 christos cat conftest.$ac_ext >&5
3190 1.1 christos ac_cv_header_dbmalloc_h=no
3191 1.1 christos fi
3192 1.1 christos rm -f conftest.err conftest.$ac_ext
3193 1.1 christos fi
3194 1.1 christos echo "$as_me:3194: result: $ac_cv_header_dbmalloc_h" >&5
3195 1.1 christos echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
3196 1.1 christos if test $ac_cv_header_dbmalloc_h = yes; then
3197 1.1 christos
3198 1.1 christos echo "$as_me:3198: checking for debug_malloc in -ldbmalloc" >&5
3199 1.1 christos echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
3200 1.1 christos if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
3201 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6
3202 1.1 christos else
3203 1.1 christos ac_check_lib_save_LIBS=$LIBS
3204 1.1 christos LIBS="-ldbmalloc $LIBS"
3205 1.1 christos cat >conftest.$ac_ext <<_ACEOF
3206 1.1 christos #line 3206 "configure"
3207 1.1 christos #include "confdefs.h"
3208 1.1 christos
3209 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */
3210 1.1 christos #ifdef __cplusplus
3211 1.1 christos extern "C"
3212 1.1 christos #endif
3213 1.1 christos /* We use char because int might match the return type of a gcc2
3214 1.1 christos builtin and then its argument prototype would still apply. */
3215 1.1 christos char debug_malloc ();
3216 1.1 christos int
3217 1.1 christos main ()
3218 1.1 christos {
3219 1.1 christos debug_malloc ();
3220 1.1 christos ;
3221 1.1 christos return 0;
3222 1.1 christos }
3223 1.1 christos _ACEOF
3224 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
3225 1.1 christos if { (eval echo "$as_me:3225: \"$ac_link\"") >&5
3226 1.1 christos (eval $ac_link) 2>&5
3227 1.1 christos ac_status=$?
3228 1.1 christos echo "$as_me:3228: \$? = $ac_status" >&5
3229 1.1 christos (exit $ac_status); } &&
3230 1.1 christos { ac_try='test -s conftest$ac_exeext'
3231 1.1 christos { (eval echo "$as_me:3231: \"$ac_try\"") >&5
3232 1.1 christos (eval $ac_try) 2>&5
3233 1.1 christos ac_status=$?
3234 1.1 christos echo "$as_me:3234: \$? = $ac_status" >&5
3235 1.1 christos (exit $ac_status); }; }; then
3236 1.1 christos ac_cv_lib_dbmalloc_debug_malloc=yes
3237 1.1 christos else
3238 1.1 christos echo "$as_me: failed program was:" >&5
3239 1.1 christos cat conftest.$ac_ext >&5
3240 1.1 christos ac_cv_lib_dbmalloc_debug_malloc=no
3241 1.1 christos fi
3242 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3243 1.1 christos LIBS=$ac_check_lib_save_LIBS
3244 1.1 christos fi
3245 1.1 christos echo "$as_me:3245: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
3246 1.1 christos echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
3247 1.1 christos if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
3248 1.1 christos cat >>confdefs.h <<EOF
3249 1.1 christos #define HAVE_LIBDBMALLOC 1
3250 1.1 christos EOF
3251 1.1 christos
3252 1.1 christos LIBS="-ldbmalloc $LIBS"
3253 1.1 christos
3254 1.1 christos fi
3255 1.1 christos
3256 1.1 christos fi
3257 1.1 christos
3258 1.1 christos fi
3259 1.1 christos
3260 1.1 christos echo "$as_me:3260: checking if you want to use valgrind for testing" >&5
3261 1.1 christos echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
3262 1.1 christos
3263 1.1 christos # Check whether --with-valgrind or --without-valgrind was given.
3264 1.1 christos if test "${with_valgrind+set}" = set; then
3265 1.1 christos withval="$with_valgrind"
3266 1.1 christos cat >>confdefs.h <<\EOF
3267 1.1 christos #define USE_VALGRIND 1
3268 1.1 christos EOF
3269 1.1 christos
3270 1.1 christos : ${with_cflags:=-g}
3271 1.1 christos : ${with_no_leaks:=yes}
3272 1.1 christos with_valgrind=yes
3273 1.1 christos else
3274 1.1 christos with_valgrind=
3275 1.1 christos fi;
3276 1.1 christos echo "$as_me:3276: result: ${with_valgrind:-no}" >&5
3277 1.1 christos echo "${ECHO_T}${with_valgrind:-no}" >&6
3278 1.1 christos
3279 1.1 christos case .$with_cflags in #(vi
3280 1.1 christos .*-g*)
3281 1.1 christos case .$CFLAGS in #(vi
3282 1.1 christos .*-g*) #(vi
3283 1.1 christos ;;
3284 1.1 christos *)
3285 1.1 christos
3286 1.1 christos cf_fix_cppflags=no
3287 1.1 christos cf_new_cflags=
3288 1.1 christos cf_new_cppflags=
3289 1.1 christos cf_new_extra_cppflags=
3290 1.1 christos
3291 1.1 christos for cf_add_cflags in -g
3292 1.1 christos do
3293 1.1 christos case $cf_fix_cppflags in
3294 1.1 christos no)
3295 1.1 christos case $cf_add_cflags in #(vi
3296 1.1 christos -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3297 1.1 christos case $cf_add_cflags in
3298 1.1 christos -D*)
3299 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3300 1.1 christos
3301 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3302 1.1 christos && test -z "${cf_tst_cflags}" \
3303 1.1 christos && cf_fix_cppflags=yes
3304 1.1 christos
3305 1.1 christos if test $cf_fix_cppflags = yes ; then
3306 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3307 1.1 christos continue
3308 1.1 christos elif test "${cf_tst_cflags}" = "\"'" ; then
3309 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3310 1.1 christos continue
3311 1.1 christos fi
3312 1.1 christos ;;
3313 1.1 christos esac
3314 1.1 christos case "$CPPFLAGS" in
3315 1.1 christos *$cf_add_cflags) #(vi
3316 1.1 christos ;;
3317 1.1 christos *) #(vi
3318 1.1 christos cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3319 1.1 christos ;;
3320 1.1 christos esac
3321 1.1 christos ;;
3322 1.1 christos *)
3323 1.1 christos cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3324 1.1 christos ;;
3325 1.1 christos esac
3326 1.1 christos ;;
3327 1.1 christos yes)
3328 1.1 christos cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3329 1.1 christos
3330 1.1 christos cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3331 1.1 christos
3332 1.1 christos test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3333 1.1 christos && test -z "${cf_tst_cflags}" \
3334 1.1 christos && cf_fix_cppflags=no
3335 1.1 christos ;;
3336 1.1 christos esac
3337 1.1 christos done
3338 1.1 christos
3339 1.1 christos if test -n "$cf_new_cflags" ; then
3340 1.1 christos
3341 1.1 christos CFLAGS="$CFLAGS $cf_new_cflags"
3342 1.1 christos fi
3343 1.1 christos
3344 1.1 christos if test -n "$cf_new_cppflags" ; then
3345 1.1 christos
3346 1.1 christos CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3347 1.1 christos fi
3348 1.1 christos
3349 1.1 christos if test -n "$cf_new_extra_cppflags" ; then
3350 1.1 christos
3351 1.1 christos EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3352 1.1 christos fi
3353 1.1 christos
3354 1.1 christos ;;
3355 1.1 christos esac
3356 1.1 christos ;;
3357 1.1 christos esac
3358 1.1 christos
3359 1.1 christos echo "$as_me:3359: checking if you want to perform memory-leak testing" >&5
3360 1.1 christos echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
3361 1.1 christos
3362 1.1 christos # Check whether --enable-leaks or --disable-leaks was given.
3363 1.1 christos if test "${enable_leaks+set}" = set; then
3364 1.1 christos enableval="$enable_leaks"
3365 1.1 christos with_no_leaks=yes
3366 1.1 christos else
3367 1.1 christos : ${with_no_leaks:=no}
3368 1.1 christos fi;
3369 1.1 christos echo "$as_me:3369: result: $with_no_leaks" >&5
3370 1.1 christos echo "${ECHO_T}$with_no_leaks" >&6
3371 1.1 christos
3372 1.1 christos if test "$with_no_leaks" = yes ; then
3373 1.1 christos cat >>confdefs.h <<\EOF
3374 1.1 christos #define NO_LEAKS 1
3375 1.1 christos EOF
3376 1.1 christos
3377 1.1 christos fi
3378 1.1 christos
3379 1.1 christos ### output makefile
3380 1.1 christos ac_config_files="$ac_config_files makefile"
3381 1.1 christos ac_config_commands="$ac_config_commands default"
3382 1.1 christos cat >confcache <<\_ACEOF
3383 1.1 christos # This file is a shell script that caches the results of configure
3384 1.1 christos # tests run on this system so they can be shared between configure
3385 1.1 christos # scripts and configure runs, see configure's option --config-cache.
3386 1.1 christos # It is not useful on other systems. If it contains results you don't
3387 1.1 christos # want to keep, you may remove or edit it.
3388 1.1 christos #
3389 1.1 christos # config.status only pays attention to the cache file if you give it
3390 1.1 christos # the --recheck option to rerun configure.
3391 1.1 christos #
3392 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overriden when
3393 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
3394 1.1 christos # following values.
3395 1.1 christos
3396 1.1 christos _ACEOF
3397 1.1 christos
3398 1.1 christos # The following way of writing the cache mishandles newlines in values,
3399 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
3400 1.1 christos # So, don't put newlines in cache variables' values.
3401 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
3402 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
3403 1.1 christos {
3404 1.1 christos (set) 2>&1 |
3405 1.1 christos case `(ac_space=' '; set | grep ac_space) 2>&1` in
3406 1.1 christos *ac_space=\ *)
3407 1.1 christos # `set' does not quote correctly, so add quotes (double-quote
3408 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \).
3409 1.1 christos sed -n \
3410 1.1 christos "s/'/'\\\\''/g;
3411 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3412 1.1 christos ;;
3413 1.1 christos *)
3414 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
3415 1.1 christos sed -n \
3416 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3417 1.1 christos ;;
3418 1.1 christos esac;
3419 1.1 christos } |
3420 1.1 christos sed '
3421 1.1 christos t clear
3422 1.1 christos : clear
3423 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3424 1.1 christos t end
3425 1.1 christos /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3426 1.1 christos : end' >>confcache
3427 1.1 christos if cmp -s $cache_file confcache; then :; else
3428 1.1 christos if test -w $cache_file; then
3429 1.1 christos test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3430 1.1 christos cat confcache >$cache_file
3431 1.1 christos else
3432 1.1 christos echo "not updating unwritable cache $cache_file"
3433 1.1 christos fi
3434 1.1 christos fi
3435 1.1 christos rm -f confcache
3436 1.1 christos
3437 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
3438 1.1 christos # Let make expand exec_prefix.
3439 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3440 1.1 christos
3441 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir),
3442 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3443 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty
3444 1.1 christos # (actually we leave an empty line to preserve line numbers).
3445 1.1 christos if test "x$srcdir" = x.; then
3446 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{
3447 1.1 christos s/:*\$(srcdir):*/:/;
3448 1.1 christos s/:*\${srcdir}:*/:/;
3449 1.1 christos s/:*@srcdir@:*/:/;
3450 1.1 christos s/^\([^=]*=[ ]*\):*/\1/;
3451 1.1 christos s/:*$//;
3452 1.1 christos s/^[^=]*=[ ]*$//;
3453 1.1 christos }'
3454 1.1 christos fi
3455 1.1 christos
3456 1.1 christos DEFS=-DHAVE_CONFIG_H
3457 1.1 christos
3458 1.1 christos : ${CONFIG_STATUS=./config.status}
3459 1.1 christos ac_clean_files_save=$ac_clean_files
3460 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3461 1.1 christos { echo "$as_me:3461: creating $CONFIG_STATUS" >&5
3462 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;}
3463 1.1 christos cat >$CONFIG_STATUS <<_ACEOF
3464 1.1 christos #! $SHELL
3465 1.1 christos # Generated automatically by configure.
3466 1.1 christos # Run this file to recreate the current configuration.
3467 1.1 christos # Compiler output produced by configure, useful for debugging
3468 1.1 christos # configure, is in config.log if it exists.
3469 1.1 christos
3470 1.1 christos debug=false
3471 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL}
3472 1.1 christos ac_cs_invocation="\$0 \$@"
3473 1.1 christos
3474 1.1 christos _ACEOF
3475 1.1 christos
3476 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF
3477 1.1 christos # Be Bourne compatible
3478 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3479 1.1 christos emulate sh
3480 1.1 christos NULLCMD=:
3481 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3482 1.1 christos set -o posix
3483 1.1 christos fi
3484 1.1 christos
3485 1.1 christos # Name of the executable.
3486 1.1 christos as_me=`echo "$0" |sed 's,.*[\\/],,'`
3487 1.1 christos
3488 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then
3489 1.1 christos as_expr=expr
3490 1.1 christos else
3491 1.1 christos as_expr=false
3492 1.1 christos fi
3493 1.1 christos
3494 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
3495 1.1 christos echo >conf$$.file
3496 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
3497 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic
3498 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3499 1.1 christos if test -f conf$$.exe; then
3500 1.1 christos # Don't use ln at all; we don't have any links
3501 1.1 christos as_ln_s='cp -p'
3502 1.1 christos else
3503 1.1 christos as_ln_s='ln -s'
3504 1.1 christos fi
3505 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
3506 1.1 christos as_ln_s=ln
3507 1.1 christos else
3508 1.1 christos as_ln_s='cp -p'
3509 1.1 christos fi
3510 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
3511 1.1 christos
3512 1.1 christos as_executable_p="test -f"
3513 1.1 christos
3514 1.1 christos # Support unset when possible.
3515 1.1 christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3516 1.1 christos as_unset=unset
3517 1.1 christos else
3518 1.1 christos as_unset=false
3519 1.1 christos fi
3520 1.1 christos
3521 1.1 christos # NLS nuisances.
3522 1.1 christos $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3523 1.1 christos $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3524 1.1 christos $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3525 1.1 christos $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3526 1.1 christos $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3527 1.1 christos $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3528 1.1 christos $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3529 1.1 christos $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3530 1.1 christos
3531 1.1 christos # IFS
3532 1.1 christos # We need space, tab and new line, in precisely that order.
3533 1.1 christos as_nl='
3534 1.1 christos '
3535 1.1 christos IFS=" $as_nl"
3536 1.1 christos
3537 1.1 christos # CDPATH.
3538 1.1 christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3539 1.1 christos
3540 1.1 christos exec 6>&1
3541 1.1 christos
3542 1.1 christos _ACEOF
3543 1.1 christos
3544 1.1 christos # Files that config.status was made for.
3545 1.1 christos if test -n "$ac_config_files"; then
3546 1.1 christos echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3547 1.1 christos fi
3548 1.1 christos
3549 1.1 christos if test -n "$ac_config_headers"; then
3550 1.1 christos echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3551 1.1 christos fi
3552 1.1 christos
3553 1.1 christos if test -n "$ac_config_links"; then
3554 1.1 christos echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3555 1.1 christos fi
3556 1.1 christos
3557 1.1 christos if test -n "$ac_config_commands"; then
3558 1.1 christos echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3559 1.1 christos fi
3560 1.1 christos
3561 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3562 1.1 christos
3563 1.1 christos ac_cs_usage="\
3564 1.1 christos \`$as_me' instantiates files from templates according to the
3565 1.1 christos current configuration.
3566 1.1 christos
3567 1.1 christos Usage: $0 [OPTIONS] [FILE]...
3568 1.1 christos
3569 1.1 christos -h, --help print this help, then exit
3570 1.1 christos -V, --version print version number, then exit
3571 1.1 christos -d, --debug don't remove temporary files
3572 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
3573 1.1 christos --file=FILE[:TEMPLATE]
3574 1.1 christos instantiate the configuration file FILE
3575 1.1 christos --header=FILE[:TEMPLATE]
3576 1.1 christos instantiate the configuration header FILE
3577 1.1 christos
3578 1.1 christos Configuration files:
3579 1.1 christos $config_files
3580 1.1 christos
3581 1.1 christos Configuration headers:
3582 1.1 christos $config_headers
3583 1.1 christos
3584 1.1 christos Configuration commands:
3585 1.1 christos $config_commands
3586 1.1 christos
3587 1.1 christos Report bugs to <bug-autoconf@gnu.org>."
3588 1.1 christos EOF
3589 1.1 christos
3590 1.1 christos cat >>$CONFIG_STATUS <<EOF
3591 1.1 christos ac_cs_version="\\
3592 1.1 christos config.status
3593 1.1 christos configured by $0, generated by GNU Autoconf 2.52.20081225,
3594 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3595 1.1 christos
3596 1.1 christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3597 1.1 christos Free Software Foundation, Inc.
3598 1.1 christos This config.status script is free software; the Free Software Foundation
3599 1.1 christos gives unlimited permission to copy, distribute and modify it."
3600 1.1 christos srcdir=$srcdir
3601 1.1 christos INSTALL="$INSTALL"
3602 1.1 christos EOF
3603 1.1 christos
3604 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3605 1.1 christos # If no file are specified by the user, then we need to provide default
3606 1.1 christos # value. By we need to know if files were specified by the user.
3607 1.1 christos ac_need_defaults=:
3608 1.1 christos while test $# != 0
3609 1.1 christos do
3610 1.1 christos case $1 in
3611 1.1 christos --*=*)
3612 1.1 christos ac_option=`expr "x$1" : 'x\([^=]*\)='`
3613 1.1 christos ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3614 1.1 christos shift
3615 1.1 christos set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3616 1.1 christos shift
3617 1.1 christos ;;
3618 1.1 christos -*);;
3619 1.1 christos *) # This is not an option, so the user has probably given explicit
3620 1.1 christos # arguments.
3621 1.1 christos ac_need_defaults=false;;
3622 1.1 christos esac
3623 1.1 christos
3624 1.1 christos case $1 in
3625 1.1 christos # Handling of the options.
3626 1.1 christos EOF
3627 1.1 christos cat >>$CONFIG_STATUS <<EOF
3628 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3629 1.1 christos echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3630 1.1 christos exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3631 1.1 christos EOF
3632 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3633 1.1 christos --version | --vers* | -V )
3634 1.1 christos echo "$ac_cs_version"; exit 0 ;;
3635 1.1 christos --he | --h)
3636 1.1 christos # Conflict between --help and --header
3637 1.1 christos { { echo "$as_me:3637: error: ambiguous option: $1
3638 1.1 christos Try \`$0 --help' for more information." >&5
3639 1.1 christos echo "$as_me: error: ambiguous option: $1
3640 1.1 christos Try \`$0 --help' for more information." >&2;}
3641 1.1 christos { (exit 1); exit 1; }; };;
3642 1.1 christos --help | --hel | -h )
3643 1.1 christos echo "$ac_cs_usage"; exit 0 ;;
3644 1.1 christos --debug | --d* | -d )
3645 1.1 christos debug=: ;;
3646 1.1 christos --file | --fil | --fi | --f )
3647 1.1 christos shift
3648 1.1 christos CONFIG_FILES="$CONFIG_FILES $1"
3649 1.1 christos ac_need_defaults=false;;
3650 1.1 christos --header | --heade | --head | --hea )
3651 1.1 christos shift
3652 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $1"
3653 1.1 christos ac_need_defaults=false;;
3654 1.1 christos
3655 1.1 christos # This is an error.
3656 1.1 christos -*) { { echo "$as_me:3656: error: unrecognized option: $1
3657 1.1 christos Try \`$0 --help' for more information." >&5
3658 1.1 christos echo "$as_me: error: unrecognized option: $1
3659 1.1 christos Try \`$0 --help' for more information." >&2;}
3660 1.1 christos { (exit 1); exit 1; }; } ;;
3661 1.1 christos
3662 1.1 christos *) ac_config_targets="$ac_config_targets $1" ;;
3663 1.1 christos
3664 1.1 christos esac
3665 1.1 christos shift
3666 1.1 christos done
3667 1.1 christos
3668 1.1 christos exec 5>>config.log
3669 1.1 christos cat >&5 << _ACEOF
3670 1.1 christos
3671 1.1 christos ## ----------------------- ##
3672 1.1 christos ## Running config.status. ##
3673 1.1 christos ## ----------------------- ##
3674 1.1 christos
3675 1.1 christos This file was extended by $as_me 2.52.20081225, executed with
3676 1.1 christos CONFIG_FILES = $CONFIG_FILES
3677 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
3678 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
3679 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
3680 1.1 christos > $ac_cs_invocation
3681 1.1 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
3682 1.1 christos
3683 1.1 christos _ACEOF
3684 1.1 christos EOF
3685 1.1 christos
3686 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3687 1.1 christos for ac_config_target in $ac_config_targets
3688 1.1 christos do
3689 1.1 christos case "$ac_config_target" in
3690 1.1 christos # Handling of arguments.
3691 1.1 christos "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
3692 1.1 christos "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
3693 1.1 christos "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
3694 1.1 christos *) { { echo "$as_me:3694: error: invalid argument: $ac_config_target" >&5
3695 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3696 1.1 christos { (exit 1); exit 1; }; };;
3697 1.1 christos esac
3698 1.1 christos done
3699 1.1 christos
3700 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
3701 1.1 christos # then the envvar interface is used. Set only those that are not.
3702 1.1 christos # We use the long form for the default assignment because of an extremely
3703 1.1 christos # bizarre bug on SunOS 4.1.3.
3704 1.1 christos if $ac_need_defaults; then
3705 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3706 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3707 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3708 1.1 christos fi
3709 1.1 christos
3710 1.1 christos # Create a temporary directory, and hook for its removal unless debugging.
3711 1.1 christos $debug ||
3712 1.1 christos {
3713 1.1 christos trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3714 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15
3715 1.1 christos }
3716 1.1 christos
3717 1.1 christos # Create a (secure) tmp directory for tmp files.
3718 1.1 christos : ${TMPDIR=/tmp}
3719 1.1 christos {
3720 1.1 christos tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3721 1.1 christos test -n "$tmp" && test -d "$tmp"
3722 1.1 christos } ||
3723 1.1 christos {
3724 1.1 christos tmp=$TMPDIR/cs$$-$RANDOM
3725 1.1 christos (umask 077 && mkdir $tmp)
3726 1.1 christos } ||
3727 1.1 christos {
3728 1.1 christos echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3729 1.1 christos { (exit 1); exit 1; }
3730 1.1 christos }
3731 1.1 christos
3732 1.1 christos EOF
3733 1.1 christos
3734 1.1 christos cat >>$CONFIG_STATUS <<EOF
3735 1.1 christos
3736 1.1 christos #
3737 1.1 christos # CONFIG_FILES section.
3738 1.1 christos #
3739 1.1 christos
3740 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES.
3741 1.1 christos # This happens for instance when ./config.status config.h
3742 1.1 christos if test -n "\$CONFIG_FILES"; then
3743 1.1 christos # Protect against being on the right side of a sed subst in config.status.
3744 1.1 christos sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3745 1.1 christos s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3746 1.1 christos s,@SHELL@,$SHELL,;t t
3747 1.1 christos s,@exec_prefix@,$exec_prefix,;t t
3748 1.1 christos s,@prefix@,$prefix,;t t
3749 1.1 christos s,@program_transform_name@,$program_transform_name,;t t
3750 1.1 christos s,@bindir@,$bindir,;t t
3751 1.1 christos s,@sbindir@,$sbindir,;t t
3752 1.1 christos s,@libexecdir@,$libexecdir,;t t
3753 1.1 christos s,@datadir@,$datadir,;t t
3754 1.1 christos s,@sysconfdir@,$sysconfdir,;t t
3755 1.1 christos s,@sharedstatedir@,$sharedstatedir,;t t
3756 1.1 christos s,@localstatedir@,$localstatedir,;t t
3757 1.1 christos s,@libdir@,$libdir,;t t
3758 1.1 christos s,@includedir@,$includedir,;t t
3759 1.1 christos s,@oldincludedir@,$oldincludedir,;t t
3760 1.1 christos s,@infodir@,$infodir,;t t
3761 1.1 christos s,@mandir@,$mandir,;t t
3762 1.1 christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3763 1.1 christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3764 1.1 christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3765 1.1 christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3766 1.1 christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3767 1.1 christos s,@build_alias@,$build_alias,;t t
3768 1.1 christos s,@host_alias@,$host_alias,;t t
3769 1.1 christos s,@target_alias@,$target_alias,;t t
3770 1.1 christos s,@ECHO_C@,$ECHO_C,;t t
3771 1.1 christos s,@ECHO_N@,$ECHO_N,;t t
3772 1.1 christos s,@ECHO_T@,$ECHO_T,;t t
3773 1.1 christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3774 1.1 christos s,@DEFS@,$DEFS,;t t
3775 1.1 christos s,@LIBS@,$LIBS,;t t
3776 1.1 christos s,@build@,$build,;t t
3777 1.1 christos s,@build_cpu@,$build_cpu,;t t
3778 1.1 christos s,@build_vendor@,$build_vendor,;t t
3779 1.1 christos s,@build_os@,$build_os,;t t
3780 1.1 christos s,@host@,$host,;t t
3781 1.1 christos s,@host_cpu@,$host_cpu,;t t
3782 1.1 christos s,@host_vendor@,$host_vendor,;t t
3783 1.1 christos s,@host_os@,$host_os,;t t
3784 1.1 christos s,@target@,$target,;t t
3785 1.1 christos s,@target_cpu@,$target_cpu,;t t
3786 1.1 christos s,@target_vendor@,$target_vendor,;t t
3787 1.1 christos s,@target_os@,$target_os,;t t
3788 1.1 christos s,@CC@,$CC,;t t
3789 1.1 christos s,@CFLAGS@,$CFLAGS,;t t
3790 1.1 christos s,@LDFLAGS@,$LDFLAGS,;t t
3791 1.1 christos s,@CPPFLAGS@,$CPPFLAGS,;t t
3792 1.1 christos s,@ac_ct_CC@,$ac_ct_CC,;t t
3793 1.1 christos s,@EXEEXT@,$EXEEXT,;t t
3794 1.1 christos s,@OBJEXT@,$OBJEXT,;t t
3795 1.1 christos s,@SET_MAKE@,$SET_MAKE,;t t
3796 1.1 christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3797 1.1 christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3798 1.1 christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3799 1.1 christos s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
3800 1.1 christos s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
3801 1.1 christos s,@ECHO_LT@,$ECHO_LT,;t t
3802 1.1 christos s,@ECHO_LD@,$ECHO_LD,;t t
3803 1.1 christos s,@RULE_CC@,$RULE_CC,;t t
3804 1.1 christos s,@SHOW_CC@,$SHOW_CC,;t t
3805 1.1 christos s,@ECHO_CC@,$ECHO_CC,;t t
3806 1.1 christos s,@PROG_EXT@,$PROG_EXT,;t t
3807 1.1 christos s,@CPP@,$CPP,;t t
3808 1.1 christos CEOF
3809 1.1 christos
3810 1.1 christos EOF
3811 1.1 christos
3812 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3813 1.1 christos # Split the substitutions into bite-sized pieces for seds with
3814 1.1 christos # small command number limits, like on Digital OSF/1 and HP-UX.
3815 1.1 christos ac_max_sed_lines=48
3816 1.1 christos ac_sed_frag=1 # Number of current file.
3817 1.1 christos ac_beg=1 # First line for current file.
3818 1.1 christos ac_end=$ac_max_sed_lines # Line after last line for current file.
3819 1.1 christos ac_more_lines=:
3820 1.1 christos ac_sed_cmds=
3821 1.1 christos while $ac_more_lines; do
3822 1.1 christos if test $ac_beg -gt 1; then
3823 1.1 christos sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3824 1.1 christos else
3825 1.1 christos sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3826 1.1 christos fi
3827 1.1 christos if test ! -s $tmp/subs.frag; then
3828 1.1 christos ac_more_lines=false
3829 1.1 christos else
3830 1.1 christos # The purpose of the label and of the branching condition is to
3831 1.1 christos # speed up the sed processing (if there are no `@' at all, there
3832 1.1 christos # is no need to browse any of the substitutions).
3833 1.1 christos # These are the two extra sed commands mentioned above.
3834 1.1 christos (echo ':t
3835 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3836 1.1 christos if test -z "$ac_sed_cmds"; then
3837 1.1 christos ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3838 1.1 christos else
3839 1.1 christos ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3840 1.1 christos fi
3841 1.1 christos ac_sed_frag=`expr $ac_sed_frag + 1`
3842 1.1 christos ac_beg=$ac_end
3843 1.1 christos ac_end=`expr $ac_end + $ac_max_sed_lines`
3844 1.1 christos fi
3845 1.1 christos done
3846 1.1 christos if test -z "$ac_sed_cmds"; then
3847 1.1 christos ac_sed_cmds=cat
3848 1.1 christos fi
3849 1.1 christos fi # test -n "$CONFIG_FILES"
3850 1.1 christos
3851 1.1 christos EOF
3852 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3853 1.1 christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3854 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3855 1.1 christos case $ac_file in
3856 1.1 christos - | *:- | *:-:* ) # input from stdin
3857 1.1 christos cat >$tmp/stdin
3858 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3859 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3860 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3861 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3862 1.1 christos * ) ac_file_in=$ac_file.in ;;
3863 1.1 christos esac
3864 1.1 christos
3865 1.1 christos # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3866 1.1 christos ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3867 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
3868 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
3869 1.1 christos X"$ac_file" : 'X\(/\)' \| \
3870 1.1 christos . : '\(.\)' 2>/dev/null ||
3871 1.1 christos echo X"$ac_file" |
3872 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3873 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3874 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
3875 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
3876 1.1 christos s/.*/./; q'`
3877 1.1 christos if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3878 1.1 christos { case "$ac_dir" in
3879 1.1 christos [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3880 1.1 christos *) as_incr_dir=.;;
3881 1.1 christos esac
3882 1.1 christos as_dummy="$ac_dir"
3883 1.1 christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3884 1.1 christos case $as_mkdir_dir in
3885 1.1 christos # Skip DOS drivespec
3886 1.1 christos ?:) as_incr_dir=$as_mkdir_dir ;;
3887 1.1 christos *)
3888 1.1 christos as_incr_dir=$as_incr_dir/$as_mkdir_dir
3889 1.1 christos test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3890 1.1 christos ;;
3891 1.1 christos esac
3892 1.1 christos done; }
3893 1.1 christos
3894 1.1 christos ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3895 1.1 christos # A "../" for each directory in $ac_dir_suffix.
3896 1.1 christos ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3897 1.1 christos else
3898 1.1 christos ac_dir_suffix= ac_dots=
3899 1.1 christos fi
3900 1.1 christos
3901 1.1 christos case $srcdir in
3902 1.1 christos .) ac_srcdir=.
3903 1.1 christos if test -z "$ac_dots"; then
3904 1.1 christos ac_top_srcdir=.
3905 1.1 christos else
3906 1.1 christos ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3907 1.1 christos fi ;;
3908 1.1 christos [\\/]* | ?:[\\/]* )
3909 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
3910 1.1 christos ac_top_srcdir=$srcdir ;;
3911 1.1 christos *) # Relative path.
3912 1.1 christos ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3913 1.1 christos ac_top_srcdir=$ac_dots$srcdir ;;
3914 1.1 christos esac
3915 1.1 christos
3916 1.1 christos case $INSTALL in
3917 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3918 1.1 christos *) ac_INSTALL=$ac_dots$INSTALL ;;
3919 1.1 christos esac
3920 1.1 christos
3921 1.1 christos if test x"$ac_file" != x-; then
3922 1.1 christos { echo "$as_me:3922: creating $ac_file" >&5
3923 1.1 christos echo "$as_me: creating $ac_file" >&6;}
3924 1.1 christos rm -f "$ac_file"
3925 1.1 christos fi
3926 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
3927 1.1 christos # use $as_me), people would be surprised to read:
3928 1.1 christos # /* config.h. Generated automatically by config.status. */
3929 1.1 christos configure_input="Generated automatically from `echo $ac_file_in |
3930 1.1 christos sed 's,.*/,,'` by configure."
3931 1.1 christos
3932 1.1 christos # First look for the input files in the build tree, otherwise in the
3933 1.1 christos # src tree.
3934 1.1 christos ac_file_inputs=`IFS=:
3935 1.1 christos for f in $ac_file_in; do
3936 1.1 christos case $f in
3937 1.1 christos -) echo $tmp/stdin ;;
3938 1.1 christos [\\/$]*)
3939 1.1 christos # Absolute (can't be DOS-style, as IFS=:)
3940 1.1 christos test -f "$f" || { { echo "$as_me:3940: error: cannot find input file: $f" >&5
3941 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
3942 1.1 christos { (exit 1); exit 1; }; }
3943 1.1 christos echo $f;;
3944 1.1 christos *) # Relative
3945 1.1 christos if test -f "$f"; then
3946 1.1 christos # Build tree
3947 1.1 christos echo $f
3948 1.1 christos elif test -f "$srcdir/$f"; then
3949 1.1 christos # Source tree
3950 1.1 christos echo $srcdir/$f
3951 1.1 christos else
3952 1.1 christos # /dev/null tree
3953 1.1 christos { { echo "$as_me:3953: error: cannot find input file: $f" >&5
3954 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
3955 1.1 christos { (exit 1); exit 1; }; }
3956 1.1 christos fi;;
3957 1.1 christos esac
3958 1.1 christos done` || { (exit 1); exit 1; }
3959 1.1 christos EOF
3960 1.1 christos cat >>$CONFIG_STATUS <<EOF
3961 1.1 christos sed "$ac_vpsub
3962 1.1 christos $extrasub
3963 1.1 christos EOF
3964 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3965 1.1 christos :t
3966 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3967 1.1 christos s,@configure_input@,$configure_input,;t t
3968 1.1 christos s,@srcdir@,$ac_srcdir,;t t
3969 1.1 christos s,@top_srcdir@,$ac_top_srcdir,;t t
3970 1.1 christos s,@INSTALL@,$ac_INSTALL,;t t
3971 1.1 christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3972 1.1 christos rm -f $tmp/stdin
3973 1.1 christos if test x"$ac_file" != x-; then
3974 1.1 christos mv $tmp/out $ac_file
3975 1.1 christos else
3976 1.1 christos cat $tmp/out
3977 1.1 christos rm -f $tmp/out
3978 1.1 christos fi
3979 1.1 christos
3980 1.1 christos done
3981 1.1 christos EOF
3982 1.1 christos cat >>$CONFIG_STATUS <<\EOF
3983 1.1 christos
3984 1.1 christos #
3985 1.1 christos # CONFIG_HEADER section.
3986 1.1 christos #
3987 1.1 christos
3988 1.1 christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3989 1.1 christos # NAME is the cpp macro being defined and VALUE is the value it is being given.
3990 1.1 christos #
3991 1.1 christos # ac_d sets the value in "#define NAME VALUE" lines.
3992 1.1 christos ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3993 1.1 christos ac_dB='[ ].*$,\1#\2'
3994 1.1 christos ac_dC=' '
3995 1.1 christos ac_dD=',;t'
3996 1.1 christos # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3997 1.1 christos ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3998 1.1 christos ac_iB='\([ ]\),\1#\2define\3'
3999 1.1 christos ac_iC=' '
4000 1.1 christos ac_iD='\4,;t'
4001 1.1 christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4002 1.1 christos ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4003 1.1 christos ac_uB='$,\1#\2define\3'
4004 1.1 christos ac_uC=' '
4005 1.1 christos ac_uD=',;t'
4006 1.1 christos
4007 1.1 christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4008 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4009 1.1 christos case $ac_file in
4010 1.1 christos - | *:- | *:-:* ) # input from stdin
4011 1.1 christos cat >$tmp/stdin
4012 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4013 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4014 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4015 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4016 1.1 christos * ) ac_file_in=$ac_file.in ;;
4017 1.1 christos esac
4018 1.1 christos
4019 1.1 christos test x"$ac_file" != x- && { echo "$as_me:4019: creating $ac_file" >&5
4020 1.1 christos echo "$as_me: creating $ac_file" >&6;}
4021 1.1 christos
4022 1.1 christos # First look for the input files in the build tree, otherwise in the
4023 1.1 christos # src tree.
4024 1.1 christos ac_file_inputs=`IFS=:
4025 1.1 christos for f in $ac_file_in; do
4026 1.1 christos case $f in
4027 1.1 christos -) echo $tmp/stdin ;;
4028 1.1 christos [\\/$]*)
4029 1.1 christos # Absolute (can't be DOS-style, as IFS=:)
4030 1.1 christos test -f "$f" || { { echo "$as_me:4030: error: cannot find input file: $f" >&5
4031 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
4032 1.1 christos { (exit 1); exit 1; }; }
4033 1.1 christos echo $f;;
4034 1.1 christos *) # Relative
4035 1.1 christos if test -f "$f"; then
4036 1.1 christos # Build tree
4037 1.1 christos echo $f
4038 1.1 christos elif test -f "$srcdir/$f"; then
4039 1.1 christos # Source tree
4040 1.1 christos echo $srcdir/$f
4041 1.1 christos else
4042 1.1 christos # /dev/null tree
4043 1.1 christos { { echo "$as_me:4043: error: cannot find input file: $f" >&5
4044 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;}
4045 1.1 christos { (exit 1); exit 1; }; }
4046 1.1 christos fi;;
4047 1.1 christos esac
4048 1.1 christos done` || { (exit 1); exit 1; }
4049 1.1 christos # Remove the trailing spaces.
4050 1.1 christos sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4051 1.1 christos
4052 1.1 christos EOF
4053 1.1 christos
4054 1.1 christos # Transform confdefs.h into a list of #define's. We won't use it as a sed
4055 1.1 christos # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
4056 1.1 christos # be either 'cat' or 'sort'.
4057 1.1 christos cat confdefs.h | uniq >conftest.vals
4058 1.1 christos
4059 1.1 christos # Break up conftest.vals because some shells have a limit on
4060 1.1 christos # the size of here documents, and old seds have small limits too.
4061 1.1 christos
4062 1.1 christos rm -f conftest.tail
4063 1.1 christos echo ' rm -f conftest.frag' >> $CONFIG_STATUS
4064 1.1 christos while grep . conftest.vals >/dev/null
4065 1.1 christos do
4066 1.1 christos # Write chunks of a limited-size here document to conftest.frag.
4067 1.1 christos echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
4068 1.1 christos sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
4069 1.1 christos echo 'CEOF' >> $CONFIG_STATUS
4070 1.1 christos sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4071 1.1 christos rm -f conftest.vals
4072 1.1 christos mv conftest.tail conftest.vals
4073 1.1 christos done
4074 1.1 christos rm -f conftest.vals
4075 1.1 christos
4076 1.1 christos # Run sed to substitute the contents of conftest.frag into $tmp/in at the
4077 1.1 christos # marker @DEFS@.
4078 1.1 christos echo ' cat >> conftest.edit <<CEOF
4079 1.1 christos /@DEFS@/r conftest.frag
4080 1.1 christos /@DEFS@/d
4081 1.1 christos CEOF
4082 1.1 christos sed -f conftest.edit $tmp/in > $tmp/out
4083 1.1 christos rm -f $tmp/in
4084 1.1 christos mv $tmp/out $tmp/in
4085 1.1 christos rm -f conftest.edit conftest.frag
4086 1.1 christos ' >> $CONFIG_STATUS
4087 1.1 christos
4088 1.1 christos cat >>$CONFIG_STATUS <<\EOF
4089 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
4090 1.1 christos # use $as_me), people would be surprised to read:
4091 1.1 christos # /* config.h. Generated automatically by config.status. */
4092 1.1 christos if test x"$ac_file" = x-; then
4093 1.1 christos echo "/* Generated automatically by configure. */" >$tmp/config.h
4094 1.1 christos else
4095 1.1 christos echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4096 1.1 christos fi
4097 1.1 christos cat $tmp/in >>$tmp/config.h
4098 1.1 christos rm -f $tmp/in
4099 1.1 christos if test x"$ac_file" != x-; then
4100 1.1 christos if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4101 1.1 christos { echo "$as_me:4101: $ac_file is unchanged" >&5
4102 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;}
4103 1.1 christos else
4104 1.1 christos ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4105 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
4106 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
4107 1.1 christos X"$ac_file" : 'X\(/\)' \| \
4108 1.1 christos . : '\(.\)' 2>/dev/null ||
4109 1.1 christos echo X"$ac_file" |
4110 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4111 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4112 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; }
4113 1.1 christos /^X\(\/\).*/{ s//\1/; q; }
4114 1.1 christos s/.*/./; q'`
4115 1.1 christos if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4116 1.1 christos { case "$ac_dir" in
4117 1.1 christos [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4118 1.1 christos *) as_incr_dir=.;;
4119 1.1 christos esac
4120 1.1 christos as_dummy="$ac_dir"
4121 1.1 christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4122 1.1 christos case $as_mkdir_dir in
4123 1.1 christos # Skip DOS drivespec
4124 1.1 christos ?:) as_incr_dir=$as_mkdir_dir ;;
4125 1.1 christos *)
4126 1.1 christos as_incr_dir=$as_incr_dir/$as_mkdir_dir
4127 1.1 christos test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4128 1.1 christos ;;
4129 1.1 christos esac
4130 1.1 christos done; }
4131 1.1 christos
4132 1.1 christos fi
4133 1.1 christos rm -f $ac_file
4134 1.1 christos mv $tmp/config.h $ac_file
4135 1.1 christos fi
4136 1.1 christos else
4137 1.1 christos cat $tmp/config.h
4138 1.1 christos rm -f $tmp/config.h
4139 1.1 christos fi
4140 1.1 christos done
4141 1.1 christos EOF
4142 1.1 christos cat >>$CONFIG_STATUS <<\EOF
4143 1.1 christos
4144 1.1 christos #
4145 1.1 christos # CONFIG_COMMANDS section.
4146 1.1 christos #
4147 1.1 christos for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4148 1.1 christos ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4149 1.1 christos ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4150 1.1 christos
4151 1.1 christos case $ac_dest in
4152 1.1 christos esac
4153 1.1 christos done
4154 1.1 christos EOF
4155 1.1 christos
4156 1.1 christos cat >>$CONFIG_STATUS <<\EOF
4157 1.1 christos
4158 1.1 christos { (exit 0); exit 0; }
4159 1.1 christos EOF
4160 1.1 christos chmod +x $CONFIG_STATUS
4161 1.1 christos ac_clean_files=$ac_clean_files_save
4162 1.1 christos
4163 1.1 christos # configure is writing to config.log, and then calls config.status.
4164 1.1 christos # config.status does its own redirection, appending to config.log.
4165 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
4166 1.1 christos # by configure, so config.status won't be able to write to it; its
4167 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
4168 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
4169 1.1 christos # appended to by config.status. When coming back to configure, we
4170 1.1 christos # need to make the FD available again.
4171 1.1 christos if test "$no_create" != yes; then
4172 1.1 christos ac_cs_success=:
4173 1.1 christos exec 5>/dev/null
4174 1.1 christos $SHELL $CONFIG_STATUS || ac_cs_success=false
4175 1.1 christos exec 5>>config.log
4176 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4177 1.1 christos # would make configure fail if this is the last instruction.
4178 1.1 christos $ac_cs_success || { (exit 1); exit 1; }
4179 1.1 christos fi
4180 1.1 christos
4181