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