1 | #! /bin/sh
|
---|
2 |
|
---|
3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
4 | # Generated automatically using autoconf version 2.13
|
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
---|
6 | #
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 |
|
---|
10 | # Defaults:
|
---|
11 | ac_help=
|
---|
12 | ac_default_prefix=/usr/local
|
---|
13 | # Any additions from configure.in:
|
---|
14 |
|
---|
15 | # Initialize some variables set by options.
|
---|
16 | # The variables have the same names as the options, with
|
---|
17 | # dashes changed to underlines.
|
---|
18 | build=NONE
|
---|
19 | cache_file=./config.cache
|
---|
20 | exec_prefix=NONE
|
---|
21 | host=NONE
|
---|
22 | no_create=
|
---|
23 | nonopt=NONE
|
---|
24 | no_recursion=
|
---|
25 | prefix=NONE
|
---|
26 | program_prefix=NONE
|
---|
27 | program_suffix=NONE
|
---|
28 | program_transform_name=s,x,x,
|
---|
29 | silent=
|
---|
30 | site=
|
---|
31 | srcdir=
|
---|
32 | target=NONE
|
---|
33 | verbose=
|
---|
34 | x_includes=NONE
|
---|
35 | x_libraries=NONE
|
---|
36 | bindir='${exec_prefix}/bin'
|
---|
37 | sbindir='${exec_prefix}/sbin'
|
---|
38 | libexecdir='${exec_prefix}/libexec'
|
---|
39 | datadir='${prefix}/share'
|
---|
40 | sysconfdir='${prefix}/etc'
|
---|
41 | sharedstatedir='${prefix}/com'
|
---|
42 | localstatedir='${prefix}/var'
|
---|
43 | libdir='${exec_prefix}/lib'
|
---|
44 | includedir='${prefix}/include'
|
---|
45 | oldincludedir='/usr/include'
|
---|
46 | infodir='${prefix}/info'
|
---|
47 | mandir='${prefix}/man'
|
---|
48 |
|
---|
49 | # Initialize some other variables.
|
---|
50 | subdirs=
|
---|
51 | MFLAGS= MAKEFLAGS=
|
---|
52 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
53 | # Maximum number of lines to put in a shell here document.
|
---|
54 | ac_max_here_lines=12
|
---|
55 |
|
---|
56 | ac_prev=
|
---|
57 | for ac_option
|
---|
58 | do
|
---|
59 |
|
---|
60 | # If the previous option needs an argument, assign it.
|
---|
61 | if test -n "$ac_prev"; then
|
---|
62 | eval "$ac_prev=\$ac_option"
|
---|
63 | ac_prev=
|
---|
64 | continue
|
---|
65 | fi
|
---|
66 |
|
---|
67 | case "$ac_option" in
|
---|
68 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
69 | *) ac_optarg= ;;
|
---|
70 | esac
|
---|
71 |
|
---|
72 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
73 |
|
---|
74 | case "$ac_option" in
|
---|
75 |
|
---|
76 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
77 | ac_prev=bindir ;;
|
---|
78 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
79 | bindir="$ac_optarg" ;;
|
---|
80 |
|
---|
81 | -build | --build | --buil | --bui | --bu)
|
---|
82 | ac_prev=build ;;
|
---|
83 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
84 | build="$ac_optarg" ;;
|
---|
85 |
|
---|
86 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
87 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
88 | ac_prev=cache_file ;;
|
---|
89 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
90 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
91 | cache_file="$ac_optarg" ;;
|
---|
92 |
|
---|
93 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
94 | ac_prev=datadir ;;
|
---|
95 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
96 | | --da=*)
|
---|
97 | datadir="$ac_optarg" ;;
|
---|
98 |
|
---|
99 | -disable-* | --disable-*)
|
---|
100 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
101 | # Reject names that are not valid shell variable names.
|
---|
102 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
103 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
104 | fi
|
---|
105 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
106 | eval "enable_${ac_feature}=no" ;;
|
---|
107 |
|
---|
108 | -enable-* | --enable-*)
|
---|
109 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
110 | # Reject names that are not valid shell variable names.
|
---|
111 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
112 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
113 | fi
|
---|
114 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
115 | case "$ac_option" in
|
---|
116 | *=*) ;;
|
---|
117 | *) ac_optarg=yes ;;
|
---|
118 | esac
|
---|
119 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
120 |
|
---|
121 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
122 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
123 | | --exec | --exe | --ex)
|
---|
124 | ac_prev=exec_prefix ;;
|
---|
125 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
126 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
127 | | --exec=* | --exe=* | --ex=*)
|
---|
128 | exec_prefix="$ac_optarg" ;;
|
---|
129 |
|
---|
130 | -gas | --gas | --ga | --g)
|
---|
131 | # Obsolete; use --with-gas.
|
---|
132 | with_gas=yes ;;
|
---|
133 |
|
---|
134 | -help | --help | --hel | --he)
|
---|
135 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
136 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
137 | cat << EOF
|
---|
138 | Usage: configure [options] [host]
|
---|
139 | Options: [defaults in brackets after descriptions]
|
---|
140 | Configuration:
|
---|
141 | --cache-file=FILE cache test results in FILE
|
---|
142 | --help print this message
|
---|
143 | --no-create do not create output files
|
---|
144 | --quiet, --silent do not print \`checking...' messages
|
---|
145 | --version print the version of autoconf that created configure
|
---|
146 | Directory and file names:
|
---|
147 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
148 | [$ac_default_prefix]
|
---|
149 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
150 | [same as prefix]
|
---|
151 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
152 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
153 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
154 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
155 | [PREFIX/share]
|
---|
156 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
157 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
158 | [PREFIX/com]
|
---|
159 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
160 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
161 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
162 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
163 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
164 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
165 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
166 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
167 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
168 | --program-transform-name=PROGRAM
|
---|
169 | run sed PROGRAM on installed program names
|
---|
170 | EOF
|
---|
171 | cat << EOF
|
---|
172 | Host type:
|
---|
173 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
174 | --host=HOST configure for HOST [guessed]
|
---|
175 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
176 | Features and packages:
|
---|
177 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
178 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
179 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
180 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
181 | --x-includes=DIR X include files are in DIR
|
---|
182 | --x-libraries=DIR X library files are in DIR
|
---|
183 | EOF
|
---|
184 | if test -n "$ac_help"; then
|
---|
185 | echo "--enable and --with options recognized:$ac_help"
|
---|
186 | fi
|
---|
187 | exit 0 ;;
|
---|
188 |
|
---|
189 | -host | --host | --hos | --ho)
|
---|
190 | ac_prev=host ;;
|
---|
191 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
192 | host="$ac_optarg" ;;
|
---|
193 |
|
---|
194 | -includedir | --includedir | --includedi | --included | --include \
|
---|
195 | | --includ | --inclu | --incl | --inc)
|
---|
196 | ac_prev=includedir ;;
|
---|
197 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
198 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
199 | includedir="$ac_optarg" ;;
|
---|
200 |
|
---|
201 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
202 | ac_prev=infodir ;;
|
---|
203 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
204 | infodir="$ac_optarg" ;;
|
---|
205 |
|
---|
206 | -libdir | --libdir | --libdi | --libd)
|
---|
207 | ac_prev=libdir ;;
|
---|
208 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
209 | libdir="$ac_optarg" ;;
|
---|
210 |
|
---|
211 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
212 | | --libexe | --libex | --libe)
|
---|
213 | ac_prev=libexecdir ;;
|
---|
214 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
215 | | --libexe=* | --libex=* | --libe=*)
|
---|
216 | libexecdir="$ac_optarg" ;;
|
---|
217 |
|
---|
218 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
219 | | --localstate | --localstat | --localsta | --localst \
|
---|
220 | | --locals | --local | --loca | --loc | --lo)
|
---|
221 | ac_prev=localstatedir ;;
|
---|
222 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
223 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
224 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
225 | localstatedir="$ac_optarg" ;;
|
---|
226 |
|
---|
227 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
228 | ac_prev=mandir ;;
|
---|
229 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
230 | mandir="$ac_optarg" ;;
|
---|
231 |
|
---|
232 | -nfp | --nfp | --nf)
|
---|
233 | # Obsolete; use --without-fp.
|
---|
234 | with_fp=no ;;
|
---|
235 |
|
---|
236 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
237 | | --no-cr | --no-c)
|
---|
238 | no_create=yes ;;
|
---|
239 |
|
---|
240 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
241 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
242 | no_recursion=yes ;;
|
---|
243 |
|
---|
244 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
245 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
246 | | --oldin | --oldi | --old | --ol | --o)
|
---|
247 | ac_prev=oldincludedir ;;
|
---|
248 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
249 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
250 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
251 | oldincludedir="$ac_optarg" ;;
|
---|
252 |
|
---|
253 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
254 | ac_prev=prefix ;;
|
---|
255 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
256 | prefix="$ac_optarg" ;;
|
---|
257 |
|
---|
258 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
259 | | --program-pre | --program-pr | --program-p)
|
---|
260 | ac_prev=program_prefix ;;
|
---|
261 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
262 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
263 | program_prefix="$ac_optarg" ;;
|
---|
264 |
|
---|
265 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
266 | | --program-suf | --program-su | --program-s)
|
---|
267 | ac_prev=program_suffix ;;
|
---|
268 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
269 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
270 | program_suffix="$ac_optarg" ;;
|
---|
271 |
|
---|
272 | -program-transform-name | --program-transform-name \
|
---|
273 | | --program-transform-nam | --program-transform-na \
|
---|
274 | | --program-transform-n | --program-transform- \
|
---|
275 | | --program-transform | --program-transfor \
|
---|
276 | | --program-transfo | --program-transf \
|
---|
277 | | --program-trans | --program-tran \
|
---|
278 | | --progr-tra | --program-tr | --program-t)
|
---|
279 | ac_prev=program_transform_name ;;
|
---|
280 | -program-transform-name=* | --program-transform-name=* \
|
---|
281 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
282 | | --program-transform-n=* | --program-transform-=* \
|
---|
283 | | --program-transform=* | --program-transfor=* \
|
---|
284 | | --program-transfo=* | --program-transf=* \
|
---|
285 | | --program-trans=* | --program-tran=* \
|
---|
286 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
287 | program_transform_name="$ac_optarg" ;;
|
---|
288 |
|
---|
289 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
290 | | -silent | --silent | --silen | --sile | --sil)
|
---|
291 | silent=yes ;;
|
---|
292 |
|
---|
293 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
294 | ac_prev=sbindir ;;
|
---|
295 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
296 | | --sbi=* | --sb=*)
|
---|
297 | sbindir="$ac_optarg" ;;
|
---|
298 |
|
---|
299 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
300 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
301 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
302 | | --sha | --sh)
|
---|
303 | ac_prev=sharedstatedir ;;
|
---|
304 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
305 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
306 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
307 | | --sha=* | --sh=*)
|
---|
308 | sharedstatedir="$ac_optarg" ;;
|
---|
309 |
|
---|
310 | -site | --site | --sit)
|
---|
311 | ac_prev=site ;;
|
---|
312 | -site=* | --site=* | --sit=*)
|
---|
313 | site="$ac_optarg" ;;
|
---|
314 |
|
---|
315 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
316 | ac_prev=srcdir ;;
|
---|
317 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
318 | srcdir="$ac_optarg" ;;
|
---|
319 |
|
---|
320 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
321 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
322 | ac_prev=sysconfdir ;;
|
---|
323 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
324 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
325 | sysconfdir="$ac_optarg" ;;
|
---|
326 |
|
---|
327 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
328 | ac_prev=target ;;
|
---|
329 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
330 | target="$ac_optarg" ;;
|
---|
331 |
|
---|
332 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
333 | verbose=yes ;;
|
---|
334 |
|
---|
335 | -version | --version | --versio | --versi | --vers)
|
---|
336 | echo "configure generated by autoconf version 2.13"
|
---|
337 | exit 0 ;;
|
---|
338 |
|
---|
339 | -with-* | --with-*)
|
---|
340 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
341 | # Reject names that are not valid shell variable names.
|
---|
342 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
343 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
344 | fi
|
---|
345 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
346 | case "$ac_option" in
|
---|
347 | *=*) ;;
|
---|
348 | *) ac_optarg=yes ;;
|
---|
349 | esac
|
---|
350 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
351 |
|
---|
352 | -without-* | --without-*)
|
---|
353 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
354 | # Reject names that are not valid shell variable names.
|
---|
355 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
356 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
357 | fi
|
---|
358 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
359 | eval "with_${ac_package}=no" ;;
|
---|
360 |
|
---|
361 | --x)
|
---|
362 | # Obsolete; use --with-x.
|
---|
363 | with_x=yes ;;
|
---|
364 |
|
---|
365 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
366 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
367 | ac_prev=x_includes ;;
|
---|
368 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
369 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
370 | x_includes="$ac_optarg" ;;
|
---|
371 |
|
---|
372 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
373 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
374 | ac_prev=x_libraries ;;
|
---|
375 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
376 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
377 | x_libraries="$ac_optarg" ;;
|
---|
378 |
|
---|
379 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
380 | ;;
|
---|
381 |
|
---|
382 | *)
|
---|
383 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
384 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
385 | fi
|
---|
386 | if test "x$nonopt" != xNONE; then
|
---|
387 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
388 | fi
|
---|
389 | nonopt="$ac_option"
|
---|
390 | ;;
|
---|
391 |
|
---|
392 | esac
|
---|
393 | done
|
---|
394 |
|
---|
395 | if test -n "$ac_prev"; then
|
---|
396 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
397 | fi
|
---|
398 |
|
---|
399 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
400 |
|
---|
401 | # File descriptor usage:
|
---|
402 | # 0 standard input
|
---|
403 | # 1 file creation
|
---|
404 | # 2 errors and warnings
|
---|
405 | # 3 some systems may open it to /dev/tty
|
---|
406 | # 4 used on the Kubota Titan
|
---|
407 | # 6 checking for... messages and results
|
---|
408 | # 5 compiler messages saved in config.log
|
---|
409 | if test "$silent" = yes; then
|
---|
410 | exec 6>/dev/null
|
---|
411 | else
|
---|
412 | exec 6>&1
|
---|
413 | fi
|
---|
414 | exec 5>./config.log
|
---|
415 |
|
---|
416 | echo "\
|
---|
417 | This file contains any messages produced by compilers while
|
---|
418 | running configure, to aid debugging if configure makes a mistake.
|
---|
419 | " 1>&5
|
---|
420 |
|
---|
421 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
422 | # Also quote any args containing shell metacharacters.
|
---|
423 | ac_configure_args=
|
---|
424 | for ac_arg
|
---|
425 | do
|
---|
426 | case "$ac_arg" in
|
---|
427 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
428 | | --no-cr | --no-c) ;;
|
---|
429 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
430 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
431 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
432 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
433 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
434 | esac
|
---|
435 | done
|
---|
436 |
|
---|
437 | # NLS nuisances.
|
---|
438 | # Only set these to C if already set. These must not be set unconditionally
|
---|
439 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
440 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
441 | # Non-C LC_CTYPE values break the ctype check.
|
---|
442 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
443 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
444 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
445 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
446 |
|
---|
447 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
448 | rm -rf conftest* confdefs.h
|
---|
449 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
450 | echo > confdefs.h
|
---|
451 |
|
---|
452 | # A filename unique to this package, relative to the directory that
|
---|
453 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
454 | ac_unique_file=lib/text_t.h
|
---|
455 |
|
---|
456 | # Find the source files, if location was not specified.
|
---|
457 | if test -z "$srcdir"; then
|
---|
458 | ac_srcdir_defaulted=yes
|
---|
459 | # Try the directory containing this script, then its parent.
|
---|
460 | ac_prog=$0
|
---|
461 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
462 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
463 | srcdir=$ac_confdir
|
---|
464 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
465 | srcdir=..
|
---|
466 | fi
|
---|
467 | else
|
---|
468 | ac_srcdir_defaulted=no
|
---|
469 | fi
|
---|
470 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
471 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
472 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
473 | else
|
---|
474 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
475 | fi
|
---|
476 | fi
|
---|
477 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
478 |
|
---|
479 | # Prefer explicitly selected file to automatically selected ones.
|
---|
480 | if test -z "$CONFIG_SITE"; then
|
---|
481 | if test "x$prefix" != xNONE; then
|
---|
482 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
483 | else
|
---|
484 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
485 | fi
|
---|
486 | fi
|
---|
487 | for ac_site_file in $CONFIG_SITE; do
|
---|
488 | if test -r "$ac_site_file"; then
|
---|
489 | echo "loading site script $ac_site_file"
|
---|
490 | . "$ac_site_file"
|
---|
491 | fi
|
---|
492 | done
|
---|
493 |
|
---|
494 | if test -r "$cache_file"; then
|
---|
495 | echo "loading cache $cache_file"
|
---|
496 | . $cache_file
|
---|
497 | else
|
---|
498 | echo "creating cache $cache_file"
|
---|
499 | > $cache_file
|
---|
500 | fi
|
---|
501 |
|
---|
502 | ac_ext=c
|
---|
503 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
504 | ac_cpp='$CPP $CPPFLAGS'
|
---|
505 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
506 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
507 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
508 |
|
---|
509 | ac_exeext=
|
---|
510 | ac_objext=o
|
---|
511 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
512 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
513 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
514 | ac_n= ac_c='
|
---|
515 | ' ac_t=' '
|
---|
516 | else
|
---|
517 | ac_n=-n ac_c= ac_t=
|
---|
518 | fi
|
---|
519 | else
|
---|
520 | ac_n= ac_c='\c' ac_t=
|
---|
521 | fi
|
---|
522 |
|
---|
523 |
|
---|
524 |
|
---|
525 | PACKAGE=gsdl
|
---|
526 | VERSION=2.1
|
---|
527 | cat >> confdefs.h <<EOF
|
---|
528 | #define PACKAGE "$PACKAGE"
|
---|
529 | EOF
|
---|
530 |
|
---|
531 | cat >> confdefs.h <<EOF
|
---|
532 | #define VERSION "$VERSION"
|
---|
533 | EOF
|
---|
534 |
|
---|
535 |
|
---|
536 |
|
---|
537 |
|
---|
538 | USE_FASTCGI=0
|
---|
539 | if test USE_FASTCGI = 1; then
|
---|
540 | cat >> confdefs.h <<\EOF
|
---|
541 | #define USE_FASTCGI 1
|
---|
542 | EOF
|
---|
543 |
|
---|
544 |
|
---|
545 | fi
|
---|
546 |
|
---|
547 | CFLAGS=-g
|
---|
548 |
|
---|
549 |
|
---|
550 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
551 | set dummy gcc; ac_word=$2
|
---|
552 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
553 | echo "configure:554: checking for $ac_word" >&5
|
---|
554 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
555 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
556 | else
|
---|
557 | if test -n "$CC"; then
|
---|
558 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
559 | else
|
---|
560 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
561 | ac_dummy="$PATH"
|
---|
562 | for ac_dir in $ac_dummy; do
|
---|
563 | test -z "$ac_dir" && ac_dir=.
|
---|
564 | if test -f $ac_dir/$ac_word; then
|
---|
565 | ac_cv_prog_CC="gcc"
|
---|
566 | break
|
---|
567 | fi
|
---|
568 | done
|
---|
569 | IFS="$ac_save_ifs"
|
---|
570 | fi
|
---|
571 | fi
|
---|
572 | CC="$ac_cv_prog_CC"
|
---|
573 | if test -n "$CC"; then
|
---|
574 | echo "$ac_t""$CC" 1>&6
|
---|
575 | else
|
---|
576 | echo "$ac_t""no" 1>&6
|
---|
577 | fi
|
---|
578 |
|
---|
579 | if test -z "$CC"; then
|
---|
580 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
581 | set dummy cc; ac_word=$2
|
---|
582 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
583 | echo "configure:584: checking for $ac_word" >&5
|
---|
584 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
585 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
586 | else
|
---|
587 | if test -n "$CC"; then
|
---|
588 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
589 | else
|
---|
590 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
591 | ac_prog_rejected=no
|
---|
592 | ac_dummy="$PATH"
|
---|
593 | for ac_dir in $ac_dummy; do
|
---|
594 | test -z "$ac_dir" && ac_dir=.
|
---|
595 | if test -f $ac_dir/$ac_word; then
|
---|
596 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
597 | ac_prog_rejected=yes
|
---|
598 | continue
|
---|
599 | fi
|
---|
600 | ac_cv_prog_CC="cc"
|
---|
601 | break
|
---|
602 | fi
|
---|
603 | done
|
---|
604 | IFS="$ac_save_ifs"
|
---|
605 | if test $ac_prog_rejected = yes; then
|
---|
606 | # We found a bogon in the path, so make sure we never use it.
|
---|
607 | set dummy $ac_cv_prog_CC
|
---|
608 | shift
|
---|
609 | if test $# -gt 0; then
|
---|
610 | # We chose a different compiler from the bogus one.
|
---|
611 | # However, it has the same basename, so the bogon will be chosen
|
---|
612 | # first if we set CC to just the basename; use the full file name.
|
---|
613 | shift
|
---|
614 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
615 | shift
|
---|
616 | ac_cv_prog_CC="$@"
|
---|
617 | fi
|
---|
618 | fi
|
---|
619 | fi
|
---|
620 | fi
|
---|
621 | CC="$ac_cv_prog_CC"
|
---|
622 | if test -n "$CC"; then
|
---|
623 | echo "$ac_t""$CC" 1>&6
|
---|
624 | else
|
---|
625 | echo "$ac_t""no" 1>&6
|
---|
626 | fi
|
---|
627 |
|
---|
628 | if test -z "$CC"; then
|
---|
629 | case "`uname -s`" in
|
---|
630 | *win32* | *WIN32*)
|
---|
631 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
632 | set dummy cl; ac_word=$2
|
---|
633 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
634 | echo "configure:635: checking for $ac_word" >&5
|
---|
635 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
636 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
637 | else
|
---|
638 | if test -n "$CC"; then
|
---|
639 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
640 | else
|
---|
641 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
642 | ac_dummy="$PATH"
|
---|
643 | for ac_dir in $ac_dummy; do
|
---|
644 | test -z "$ac_dir" && ac_dir=.
|
---|
645 | if test -f $ac_dir/$ac_word; then
|
---|
646 | ac_cv_prog_CC="cl"
|
---|
647 | break
|
---|
648 | fi
|
---|
649 | done
|
---|
650 | IFS="$ac_save_ifs"
|
---|
651 | fi
|
---|
652 | fi
|
---|
653 | CC="$ac_cv_prog_CC"
|
---|
654 | if test -n "$CC"; then
|
---|
655 | echo "$ac_t""$CC" 1>&6
|
---|
656 | else
|
---|
657 | echo "$ac_t""no" 1>&6
|
---|
658 | fi
|
---|
659 | ;;
|
---|
660 | esac
|
---|
661 | fi
|
---|
662 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
663 | fi
|
---|
664 |
|
---|
665 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
666 | echo "configure:667: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
667 |
|
---|
668 | ac_ext=c
|
---|
669 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
670 | ac_cpp='$CPP $CPPFLAGS'
|
---|
671 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
672 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
673 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
674 |
|
---|
675 | cat > conftest.$ac_ext << EOF
|
---|
676 |
|
---|
677 | #line 678 "configure"
|
---|
678 | #include "confdefs.h"
|
---|
679 |
|
---|
680 | main(){return(0);}
|
---|
681 | EOF
|
---|
682 | if { (eval echo configure:683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
683 | ac_cv_prog_cc_works=yes
|
---|
684 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
685 | if (./conftest; exit) 2>/dev/null; then
|
---|
686 | ac_cv_prog_cc_cross=no
|
---|
687 | else
|
---|
688 | ac_cv_prog_cc_cross=yes
|
---|
689 | fi
|
---|
690 | else
|
---|
691 | echo "configure: failed program was:" >&5
|
---|
692 | cat conftest.$ac_ext >&5
|
---|
693 | ac_cv_prog_cc_works=no
|
---|
694 | fi
|
---|
695 | rm -fr conftest*
|
---|
696 | ac_ext=c
|
---|
697 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
698 | ac_cpp='$CPP $CPPFLAGS'
|
---|
699 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
700 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
701 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
702 |
|
---|
703 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
704 | if test $ac_cv_prog_cc_works = no; then
|
---|
705 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
706 | fi
|
---|
707 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
708 | echo "configure:709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
709 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
710 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
711 |
|
---|
712 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
713 | echo "configure:714: checking whether we are using GNU C" >&5
|
---|
714 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
715 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
716 | else
|
---|
717 | cat > conftest.c <<EOF
|
---|
718 | #ifdef __GNUC__
|
---|
719 | yes;
|
---|
720 | #endif
|
---|
721 | EOF
|
---|
722 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
723 | ac_cv_prog_gcc=yes
|
---|
724 | else
|
---|
725 | ac_cv_prog_gcc=no
|
---|
726 | fi
|
---|
727 | fi
|
---|
728 |
|
---|
729 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
730 |
|
---|
731 | if test $ac_cv_prog_gcc = yes; then
|
---|
732 | GCC=yes
|
---|
733 | else
|
---|
734 | GCC=
|
---|
735 | fi
|
---|
736 |
|
---|
737 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
738 | ac_save_CFLAGS="$CFLAGS"
|
---|
739 | CFLAGS=
|
---|
740 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
741 | echo "configure:742: checking whether ${CC-cc} accepts -g" >&5
|
---|
742 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
743 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
744 | else
|
---|
745 | echo 'void f(){}' > conftest.c
|
---|
746 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
747 | ac_cv_prog_cc_g=yes
|
---|
748 | else
|
---|
749 | ac_cv_prog_cc_g=no
|
---|
750 | fi
|
---|
751 | rm -f conftest*
|
---|
752 |
|
---|
753 | fi
|
---|
754 |
|
---|
755 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
756 | if test "$ac_test_CFLAGS" = set; then
|
---|
757 | CFLAGS="$ac_save_CFLAGS"
|
---|
758 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
759 | if test "$GCC" = yes; then
|
---|
760 | CFLAGS="-g -O2"
|
---|
761 | else
|
---|
762 | CFLAGS="-g"
|
---|
763 | fi
|
---|
764 | else
|
---|
765 | if test "$GCC" = yes; then
|
---|
766 | CFLAGS="-O2"
|
---|
767 | else
|
---|
768 | CFLAGS=
|
---|
769 | fi
|
---|
770 | fi
|
---|
771 |
|
---|
772 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
773 | do
|
---|
774 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
775 | set dummy $ac_prog; ac_word=$2
|
---|
776 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
777 | echo "configure:778: checking for $ac_word" >&5
|
---|
778 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
779 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
780 | else
|
---|
781 | if test -n "$CXX"; then
|
---|
782 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
783 | else
|
---|
784 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
785 | ac_dummy="$PATH"
|
---|
786 | for ac_dir in $ac_dummy; do
|
---|
787 | test -z "$ac_dir" && ac_dir=.
|
---|
788 | if test -f $ac_dir/$ac_word; then
|
---|
789 | ac_cv_prog_CXX="$ac_prog"
|
---|
790 | break
|
---|
791 | fi
|
---|
792 | done
|
---|
793 | IFS="$ac_save_ifs"
|
---|
794 | fi
|
---|
795 | fi
|
---|
796 | CXX="$ac_cv_prog_CXX"
|
---|
797 | if test -n "$CXX"; then
|
---|
798 | echo "$ac_t""$CXX" 1>&6
|
---|
799 | else
|
---|
800 | echo "$ac_t""no" 1>&6
|
---|
801 | fi
|
---|
802 |
|
---|
803 | test -n "$CXX" && break
|
---|
804 | done
|
---|
805 | test -n "$CXX" || CXX="gcc"
|
---|
806 |
|
---|
807 |
|
---|
808 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
809 | echo "configure:810: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
810 |
|
---|
811 | ac_ext=C
|
---|
812 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
813 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
814 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
815 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
816 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
817 |
|
---|
818 | cat > conftest.$ac_ext << EOF
|
---|
819 |
|
---|
820 | #line 821 "configure"
|
---|
821 | #include "confdefs.h"
|
---|
822 |
|
---|
823 | int main(){return(0);}
|
---|
824 | EOF
|
---|
825 | if { (eval echo configure:826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
826 | ac_cv_prog_cxx_works=yes
|
---|
827 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
828 | if (./conftest; exit) 2>/dev/null; then
|
---|
829 | ac_cv_prog_cxx_cross=no
|
---|
830 | else
|
---|
831 | ac_cv_prog_cxx_cross=yes
|
---|
832 | fi
|
---|
833 | else
|
---|
834 | echo "configure: failed program was:" >&5
|
---|
835 | cat conftest.$ac_ext >&5
|
---|
836 | ac_cv_prog_cxx_works=no
|
---|
837 | fi
|
---|
838 | rm -fr conftest*
|
---|
839 | ac_ext=c
|
---|
840 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
841 | ac_cpp='$CPP $CPPFLAGS'
|
---|
842 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
843 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
844 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
845 |
|
---|
846 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
847 | if test $ac_cv_prog_cxx_works = no; then
|
---|
848 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
849 | fi
|
---|
850 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
851 | echo "configure:852: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
852 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
853 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
854 |
|
---|
855 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
856 | echo "configure:857: checking whether we are using GNU C++" >&5
|
---|
857 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
858 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
859 | else
|
---|
860 | cat > conftest.C <<EOF
|
---|
861 | #ifdef __GNUC__
|
---|
862 | yes;
|
---|
863 | #endif
|
---|
864 | EOF
|
---|
865 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
866 | ac_cv_prog_gxx=yes
|
---|
867 | else
|
---|
868 | ac_cv_prog_gxx=no
|
---|
869 | fi
|
---|
870 | fi
|
---|
871 |
|
---|
872 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
873 |
|
---|
874 | if test $ac_cv_prog_gxx = yes; then
|
---|
875 | GXX=yes
|
---|
876 | else
|
---|
877 | GXX=
|
---|
878 | fi
|
---|
879 |
|
---|
880 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
881 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
882 | CXXFLAGS=
|
---|
883 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
884 | echo "configure:885: checking whether ${CXX-g++} accepts -g" >&5
|
---|
885 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
886 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
887 | else
|
---|
888 | echo 'void f(){}' > conftest.cc
|
---|
889 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
890 | ac_cv_prog_cxx_g=yes
|
---|
891 | else
|
---|
892 | ac_cv_prog_cxx_g=no
|
---|
893 | fi
|
---|
894 | rm -f conftest*
|
---|
895 |
|
---|
896 | fi
|
---|
897 |
|
---|
898 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
899 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
900 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
901 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
902 | if test "$GXX" = yes; then
|
---|
903 | CXXFLAGS="-g -O2"
|
---|
904 | else
|
---|
905 | CXXFLAGS="-g"
|
---|
906 | fi
|
---|
907 | else
|
---|
908 | if test "$GXX" = yes; then
|
---|
909 | CXXFLAGS="-O2"
|
---|
910 | else
|
---|
911 | CXXFLAGS=
|
---|
912 | fi
|
---|
913 | fi
|
---|
914 |
|
---|
915 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
916 | echo "configure:917: checking whether ln -s works" >&5
|
---|
917 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
918 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
919 | else
|
---|
920 | rm -f conftestdata
|
---|
921 | if ln -s X conftestdata 2>/dev/null
|
---|
922 | then
|
---|
923 | rm -f conftestdata
|
---|
924 | ac_cv_prog_LN_S="ln -s"
|
---|
925 | else
|
---|
926 | ac_cv_prog_LN_S=ln
|
---|
927 | fi
|
---|
928 | fi
|
---|
929 | LN_S="$ac_cv_prog_LN_S"
|
---|
930 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
931 | echo "$ac_t""yes" 1>&6
|
---|
932 | else
|
---|
933 | echo "$ac_t""no" 1>&6
|
---|
934 | fi
|
---|
935 |
|
---|
936 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
937 | echo "configure:938: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
938 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
939 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
940 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
941 | else
|
---|
942 | cat > conftestmake <<\EOF
|
---|
943 | all:
|
---|
944 | @echo 'ac_maketemp="${MAKE}"'
|
---|
945 | EOF
|
---|
946 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
947 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
948 | if test -n "$ac_maketemp"; then
|
---|
949 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
950 | else
|
---|
951 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
952 | fi
|
---|
953 | rm -f conftestmake
|
---|
954 | fi
|
---|
955 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
956 | echo "$ac_t""yes" 1>&6
|
---|
957 | SET_MAKE=
|
---|
958 | else
|
---|
959 | echo "$ac_t""no" 1>&6
|
---|
960 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
961 | fi
|
---|
962 |
|
---|
963 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
964 | set dummy ranlib; ac_word=$2
|
---|
965 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
966 | echo "configure:967: checking for $ac_word" >&5
|
---|
967 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
968 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
969 | else
|
---|
970 | if test -n "$RANLIB"; then
|
---|
971 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
972 | else
|
---|
973 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
974 | ac_dummy="$PATH"
|
---|
975 | for ac_dir in $ac_dummy; do
|
---|
976 | test -z "$ac_dir" && ac_dir=.
|
---|
977 | if test -f $ac_dir/$ac_word; then
|
---|
978 | ac_cv_prog_RANLIB="ranlib"
|
---|
979 | break
|
---|
980 | fi
|
---|
981 | done
|
---|
982 | IFS="$ac_save_ifs"
|
---|
983 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
984 | fi
|
---|
985 | fi
|
---|
986 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
987 | if test -n "$RANLIB"; then
|
---|
988 | echo "$ac_t""$RANLIB" 1>&6
|
---|
989 | else
|
---|
990 | echo "$ac_t""no" 1>&6
|
---|
991 | fi
|
---|
992 |
|
---|
993 |
|
---|
994 | echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
|
---|
995 | echo "configure:996: checking for main in -lg" >&5
|
---|
996 | ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
|
---|
997 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
998 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
999 | else
|
---|
1000 | ac_save_LIBS="$LIBS"
|
---|
1001 | LIBS="-lg $LIBS"
|
---|
1002 | cat > conftest.$ac_ext <<EOF
|
---|
1003 | #line 1004 "configure"
|
---|
1004 | #include "confdefs.h"
|
---|
1005 |
|
---|
1006 | int main() {
|
---|
1007 | main()
|
---|
1008 | ; return 0; }
|
---|
1009 | EOF
|
---|
1010 | if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1011 | rm -rf conftest*
|
---|
1012 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1013 | else
|
---|
1014 | echo "configure: failed program was:" >&5
|
---|
1015 | cat conftest.$ac_ext >&5
|
---|
1016 | rm -rf conftest*
|
---|
1017 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1018 | fi
|
---|
1019 | rm -f conftest*
|
---|
1020 | LIBS="$ac_save_LIBS"
|
---|
1021 |
|
---|
1022 | fi
|
---|
1023 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1024 | echo "$ac_t""yes" 1>&6
|
---|
1025 | ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1026 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1027 | cat >> confdefs.h <<EOF
|
---|
1028 | #define $ac_tr_lib 1
|
---|
1029 | EOF
|
---|
1030 |
|
---|
1031 | LIBS="-lg $LIBS"
|
---|
1032 |
|
---|
1033 | else
|
---|
1034 | echo "$ac_t""no" 1>&6
|
---|
1035 | fi
|
---|
1036 |
|
---|
1037 | echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
|
---|
1038 | echo "configure:1039: checking for main in -lgdbm" >&5
|
---|
1039 | ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
|
---|
1040 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1041 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1042 | else
|
---|
1043 | ac_save_LIBS="$LIBS"
|
---|
1044 | LIBS="-lgdbm $LIBS"
|
---|
1045 | cat > conftest.$ac_ext <<EOF
|
---|
1046 | #line 1047 "configure"
|
---|
1047 | #include "confdefs.h"
|
---|
1048 |
|
---|
1049 | int main() {
|
---|
1050 | main()
|
---|
1051 | ; return 0; }
|
---|
1052 | EOF
|
---|
1053 | if { (eval echo configure:1054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1054 | rm -rf conftest*
|
---|
1055 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1056 | else
|
---|
1057 | echo "configure: failed program was:" >&5
|
---|
1058 | cat conftest.$ac_ext >&5
|
---|
1059 | rm -rf conftest*
|
---|
1060 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1061 | fi
|
---|
1062 | rm -f conftest*
|
---|
1063 | LIBS="$ac_save_LIBS"
|
---|
1064 |
|
---|
1065 | fi
|
---|
1066 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1067 | echo "$ac_t""yes" 1>&6
|
---|
1068 | ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1069 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1070 | cat >> confdefs.h <<EOF
|
---|
1071 | #define $ac_tr_lib 1
|
---|
1072 | EOF
|
---|
1073 |
|
---|
1074 | LIBS="-lgdbm $LIBS"
|
---|
1075 |
|
---|
1076 | else
|
---|
1077 | echo "$ac_t""no" 1>&6
|
---|
1078 | fi
|
---|
1079 |
|
---|
1080 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
---|
1081 | echo "configure:1082: checking for main in -lm" >&5
|
---|
1082 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
---|
1083 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1084 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1085 | else
|
---|
1086 | ac_save_LIBS="$LIBS"
|
---|
1087 | LIBS="-lm $LIBS"
|
---|
1088 | cat > conftest.$ac_ext <<EOF
|
---|
1089 | #line 1090 "configure"
|
---|
1090 | #include "confdefs.h"
|
---|
1091 |
|
---|
1092 | int main() {
|
---|
1093 | main()
|
---|
1094 | ; return 0; }
|
---|
1095 | EOF
|
---|
1096 | if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1097 | rm -rf conftest*
|
---|
1098 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1099 | else
|
---|
1100 | echo "configure: failed program was:" >&5
|
---|
1101 | cat conftest.$ac_ext >&5
|
---|
1102 | rm -rf conftest*
|
---|
1103 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1104 | fi
|
---|
1105 | rm -f conftest*
|
---|
1106 | LIBS="$ac_save_LIBS"
|
---|
1107 |
|
---|
1108 | fi
|
---|
1109 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1110 | echo "$ac_t""yes" 1>&6
|
---|
1111 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1112 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1113 | cat >> confdefs.h <<EOF
|
---|
1114 | #define $ac_tr_lib 1
|
---|
1115 | EOF
|
---|
1116 |
|
---|
1117 | LIBS="-lm $LIBS"
|
---|
1118 |
|
---|
1119 | else
|
---|
1120 | echo "$ac_t""no" 1>&6
|
---|
1121 | fi
|
---|
1122 |
|
---|
1123 | echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&6
|
---|
1124 | echo "configure:1125: checking for main in -lstdc" >&5
|
---|
1125 | ac_lib_var=`echo stdc'_'main | sed 'y%./+-%__p_%'`
|
---|
1126 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1127 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1128 | else
|
---|
1129 | ac_save_LIBS="$LIBS"
|
---|
1130 | LIBS="-lstdc $LIBS"
|
---|
1131 | cat > conftest.$ac_ext <<EOF
|
---|
1132 | #line 1133 "configure"
|
---|
1133 | #include "confdefs.h"
|
---|
1134 |
|
---|
1135 | int main() {
|
---|
1136 | main()
|
---|
1137 | ; return 0; }
|
---|
1138 | EOF
|
---|
1139 | if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1140 | rm -rf conftest*
|
---|
1141 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1142 | else
|
---|
1143 | echo "configure: failed program was:" >&5
|
---|
1144 | cat conftest.$ac_ext >&5
|
---|
1145 | rm -rf conftest*
|
---|
1146 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1147 | fi
|
---|
1148 | rm -f conftest*
|
---|
1149 | LIBS="$ac_save_LIBS"
|
---|
1150 |
|
---|
1151 | fi
|
---|
1152 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1153 | echo "$ac_t""yes" 1>&6
|
---|
1154 | ac_tr_lib=HAVE_LIB`echo stdc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1155 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1156 | cat >> confdefs.h <<EOF
|
---|
1157 | #define $ac_tr_lib 1
|
---|
1158 | EOF
|
---|
1159 |
|
---|
1160 | LIBS="-lstdc $LIBS"
|
---|
1161 |
|
---|
1162 | else
|
---|
1163 | echo "$ac_t""no" 1>&6
|
---|
1164 | fi
|
---|
1165 |
|
---|
1166 |
|
---|
1167 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
1168 | echo "configure:1169: checking how to run the C preprocessor" >&5
|
---|
1169 | # On Suns, sometimes $CPP names a directory.
|
---|
1170 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
1171 | CPP=
|
---|
1172 | fi
|
---|
1173 | if test -z "$CPP"; then
|
---|
1174 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
1175 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1176 | else
|
---|
1177 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
1178 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
1179 | CPP="${CC-cc} -E"
|
---|
1180 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
1181 | # not just through cpp.
|
---|
1182 | cat > conftest.$ac_ext <<EOF
|
---|
1183 | #line 1184 "configure"
|
---|
1184 | #include "confdefs.h"
|
---|
1185 | #include <assert.h>
|
---|
1186 | Syntax Error
|
---|
1187 | EOF
|
---|
1188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1189 | { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1191 | if test -z "$ac_err"; then
|
---|
1192 | :
|
---|
1193 | else
|
---|
1194 | echo "$ac_err" >&5
|
---|
1195 | echo "configure: failed program was:" >&5
|
---|
1196 | cat conftest.$ac_ext >&5
|
---|
1197 | rm -rf conftest*
|
---|
1198 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
1199 | cat > conftest.$ac_ext <<EOF
|
---|
1200 | #line 1201 "configure"
|
---|
1201 | #include "confdefs.h"
|
---|
1202 | #include <assert.h>
|
---|
1203 | Syntax Error
|
---|
1204 | EOF
|
---|
1205 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1206 | { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1207 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1208 | if test -z "$ac_err"; then
|
---|
1209 | :
|
---|
1210 | else
|
---|
1211 | echo "$ac_err" >&5
|
---|
1212 | echo "configure: failed program was:" >&5
|
---|
1213 | cat conftest.$ac_ext >&5
|
---|
1214 | rm -rf conftest*
|
---|
1215 | CPP="${CC-cc} -nologo -E"
|
---|
1216 | cat > conftest.$ac_ext <<EOF
|
---|
1217 | #line 1218 "configure"
|
---|
1218 | #include "confdefs.h"
|
---|
1219 | #include <assert.h>
|
---|
1220 | Syntax Error
|
---|
1221 | EOF
|
---|
1222 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1223 | { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1224 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1225 | if test -z "$ac_err"; then
|
---|
1226 | :
|
---|
1227 | else
|
---|
1228 | echo "$ac_err" >&5
|
---|
1229 | echo "configure: failed program was:" >&5
|
---|
1230 | cat conftest.$ac_ext >&5
|
---|
1231 | rm -rf conftest*
|
---|
1232 | CPP=/lib/cpp
|
---|
1233 | fi
|
---|
1234 | rm -f conftest*
|
---|
1235 | fi
|
---|
1236 | rm -f conftest*
|
---|
1237 | fi
|
---|
1238 | rm -f conftest*
|
---|
1239 | ac_cv_prog_CPP="$CPP"
|
---|
1240 | fi
|
---|
1241 | CPP="$ac_cv_prog_CPP"
|
---|
1242 | else
|
---|
1243 | ac_cv_prog_CPP="$CPP"
|
---|
1244 | fi
|
---|
1245 | echo "$ac_t""$CPP" 1>&6
|
---|
1246 |
|
---|
1247 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1248 | echo "configure:1249: checking for ANSI C header files" >&5
|
---|
1249 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1250 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1251 | else
|
---|
1252 | cat > conftest.$ac_ext <<EOF
|
---|
1253 | #line 1254 "configure"
|
---|
1254 | #include "confdefs.h"
|
---|
1255 | #include <stdlib.h>
|
---|
1256 | #include <stdarg.h>
|
---|
1257 | #include <string.h>
|
---|
1258 | #include <float.h>
|
---|
1259 | EOF
|
---|
1260 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1261 | { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1262 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1263 | if test -z "$ac_err"; then
|
---|
1264 | rm -rf conftest*
|
---|
1265 | ac_cv_header_stdc=yes
|
---|
1266 | else
|
---|
1267 | echo "$ac_err" >&5
|
---|
1268 | echo "configure: failed program was:" >&5
|
---|
1269 | cat conftest.$ac_ext >&5
|
---|
1270 | rm -rf conftest*
|
---|
1271 | ac_cv_header_stdc=no
|
---|
1272 | fi
|
---|
1273 | rm -f conftest*
|
---|
1274 |
|
---|
1275 | if test $ac_cv_header_stdc = yes; then
|
---|
1276 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1277 | cat > conftest.$ac_ext <<EOF
|
---|
1278 | #line 1279 "configure"
|
---|
1279 | #include "confdefs.h"
|
---|
1280 | #include <string.h>
|
---|
1281 | EOF
|
---|
1282 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1283 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1284 | :
|
---|
1285 | else
|
---|
1286 | rm -rf conftest*
|
---|
1287 | ac_cv_header_stdc=no
|
---|
1288 | fi
|
---|
1289 | rm -f conftest*
|
---|
1290 |
|
---|
1291 | fi
|
---|
1292 |
|
---|
1293 | if test $ac_cv_header_stdc = yes; then
|
---|
1294 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1295 | cat > conftest.$ac_ext <<EOF
|
---|
1296 | #line 1297 "configure"
|
---|
1297 | #include "confdefs.h"
|
---|
1298 | #include <stdlib.h>
|
---|
1299 | EOF
|
---|
1300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1301 | egrep "free" >/dev/null 2>&1; then
|
---|
1302 | :
|
---|
1303 | else
|
---|
1304 | rm -rf conftest*
|
---|
1305 | ac_cv_header_stdc=no
|
---|
1306 | fi
|
---|
1307 | rm -f conftest*
|
---|
1308 |
|
---|
1309 | fi
|
---|
1310 |
|
---|
1311 | if test $ac_cv_header_stdc = yes; then
|
---|
1312 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1313 | if test "$cross_compiling" = yes; then
|
---|
1314 | :
|
---|
1315 | else
|
---|
1316 | cat > conftest.$ac_ext <<EOF
|
---|
1317 | #line 1318 "configure"
|
---|
1318 | #include "confdefs.h"
|
---|
1319 | #include <ctype.h>
|
---|
1320 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1321 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1322 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1323 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1324 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1325 | exit (0); }
|
---|
1326 |
|
---|
1327 | EOF
|
---|
1328 | if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1329 | then
|
---|
1330 | :
|
---|
1331 | else
|
---|
1332 | echo "configure: failed program was:" >&5
|
---|
1333 | cat conftest.$ac_ext >&5
|
---|
1334 | rm -fr conftest*
|
---|
1335 | ac_cv_header_stdc=no
|
---|
1336 | fi
|
---|
1337 | rm -fr conftest*
|
---|
1338 | fi
|
---|
1339 |
|
---|
1340 | fi
|
---|
1341 | fi
|
---|
1342 |
|
---|
1343 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1344 | if test $ac_cv_header_stdc = yes; then
|
---|
1345 | cat >> confdefs.h <<\EOF
|
---|
1346 | #define STDC_HEADERS 1
|
---|
1347 | EOF
|
---|
1348 |
|
---|
1349 | fi
|
---|
1350 |
|
---|
1351 | for ac_hdr in fcntl.h
|
---|
1352 | do
|
---|
1353 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
1354 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
1355 | echo "configure:1356: checking for $ac_hdr" >&5
|
---|
1356 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1357 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1358 | else
|
---|
1359 | cat > conftest.$ac_ext <<EOF
|
---|
1360 | #line 1361 "configure"
|
---|
1361 | #include "confdefs.h"
|
---|
1362 | #include <$ac_hdr>
|
---|
1363 | EOF
|
---|
1364 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1365 | { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1366 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1367 | if test -z "$ac_err"; then
|
---|
1368 | rm -rf conftest*
|
---|
1369 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1370 | else
|
---|
1371 | echo "$ac_err" >&5
|
---|
1372 | echo "configure: failed program was:" >&5
|
---|
1373 | cat conftest.$ac_ext >&5
|
---|
1374 | rm -rf conftest*
|
---|
1375 | eval "ac_cv_header_$ac_safe=no"
|
---|
1376 | fi
|
---|
1377 | rm -f conftest*
|
---|
1378 | fi
|
---|
1379 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1380 | echo "$ac_t""yes" 1>&6
|
---|
1381 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
1382 | cat >> confdefs.h <<EOF
|
---|
1383 | #define $ac_tr_hdr 1
|
---|
1384 | EOF
|
---|
1385 |
|
---|
1386 | else
|
---|
1387 | echo "$ac_t""no" 1>&6
|
---|
1388 | fi
|
---|
1389 | done
|
---|
1390 |
|
---|
1391 |
|
---|
1392 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
1393 | echo "configure:1394: checking for working const" >&5
|
---|
1394 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
1395 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1396 | else
|
---|
1397 | cat > conftest.$ac_ext <<EOF
|
---|
1398 | #line 1399 "configure"
|
---|
1399 | #include "confdefs.h"
|
---|
1400 |
|
---|
1401 | int main() {
|
---|
1402 |
|
---|
1403 | /* Ultrix mips cc rejects this. */
|
---|
1404 | typedef int charset[2]; const charset x;
|
---|
1405 | /* SunOS 4.1.1 cc rejects this. */
|
---|
1406 | char const *const *ccp;
|
---|
1407 | char **p;
|
---|
1408 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
1409 | struct point {int x, y;};
|
---|
1410 | static struct point const zero = {0,0};
|
---|
1411 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
1412 | It does not let you subtract one const X* pointer from another in an arm
|
---|
1413 | of an if-expression whose if-part is not a constant expression */
|
---|
1414 | const char *g = "string";
|
---|
1415 | ccp = &g + (g ? g-g : 0);
|
---|
1416 | /* HPUX 7.0 cc rejects these. */
|
---|
1417 | ++ccp;
|
---|
1418 | p = (char**) ccp;
|
---|
1419 | ccp = (char const *const *) p;
|
---|
1420 | { /* SCO 3.2v4 cc rejects this. */
|
---|
1421 | char *t;
|
---|
1422 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
1423 |
|
---|
1424 | *t++ = 0;
|
---|
1425 | }
|
---|
1426 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
1427 | int x[] = {25, 17};
|
---|
1428 | const int *foo = &x[0];
|
---|
1429 | ++foo;
|
---|
1430 | }
|
---|
1431 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
1432 | typedef const int *iptr;
|
---|
1433 | iptr p = 0;
|
---|
1434 | ++p;
|
---|
1435 | }
|
---|
1436 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
1437 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
1438 | struct s { int j; const int *ap[3]; };
|
---|
1439 | struct s *b; b->j = 5;
|
---|
1440 | }
|
---|
1441 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
1442 | const int foo = 10;
|
---|
1443 | }
|
---|
1444 |
|
---|
1445 | ; return 0; }
|
---|
1446 | EOF
|
---|
1447 | if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1448 | rm -rf conftest*
|
---|
1449 | ac_cv_c_const=yes
|
---|
1450 | else
|
---|
1451 | echo "configure: failed program was:" >&5
|
---|
1452 | cat conftest.$ac_ext >&5
|
---|
1453 | rm -rf conftest*
|
---|
1454 | ac_cv_c_const=no
|
---|
1455 | fi
|
---|
1456 | rm -f conftest*
|
---|
1457 | fi
|
---|
1458 |
|
---|
1459 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
1460 | if test $ac_cv_c_const = no; then
|
---|
1461 | cat >> confdefs.h <<\EOF
|
---|
1462 | #define const
|
---|
1463 | EOF
|
---|
1464 |
|
---|
1465 | fi
|
---|
1466 |
|
---|
1467 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
1468 | echo "configure:1469: checking whether time.h and sys/time.h may both be included" >&5
|
---|
1469 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
1470 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1471 | else
|
---|
1472 | cat > conftest.$ac_ext <<EOF
|
---|
1473 | #line 1474 "configure"
|
---|
1474 | #include "confdefs.h"
|
---|
1475 | #include <sys/types.h>
|
---|
1476 | #include <sys/time.h>
|
---|
1477 | #include <time.h>
|
---|
1478 | int main() {
|
---|
1479 | struct tm *tp;
|
---|
1480 | ; return 0; }
|
---|
1481 | EOF
|
---|
1482 | if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1483 | rm -rf conftest*
|
---|
1484 | ac_cv_header_time=yes
|
---|
1485 | else
|
---|
1486 | echo "configure: failed program was:" >&5
|
---|
1487 | cat conftest.$ac_ext >&5
|
---|
1488 | rm -rf conftest*
|
---|
1489 | ac_cv_header_time=no
|
---|
1490 | fi
|
---|
1491 | rm -f conftest*
|
---|
1492 | fi
|
---|
1493 |
|
---|
1494 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
1495 | if test $ac_cv_header_time = yes; then
|
---|
1496 | cat >> confdefs.h <<\EOF
|
---|
1497 | #define TIME_WITH_SYS_TIME 1
|
---|
1498 | EOF
|
---|
1499 |
|
---|
1500 | fi
|
---|
1501 |
|
---|
1502 |
|
---|
1503 |
|
---|
1504 | ac_ext=C
|
---|
1505 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1506 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
1507 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1508 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1509 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
1510 |
|
---|
1511 | success=no
|
---|
1512 | echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
|
---|
1513 | echo "configure:1514: checking "whether STL library has known faults"" >&5
|
---|
1514 |
|
---|
1515 | cat > conftest.$ac_ext <<EOF
|
---|
1516 | #line 1517 "configure"
|
---|
1517 | #include "confdefs.h"
|
---|
1518 | #include <vector>
|
---|
1519 |
|
---|
1520 | int main() {
|
---|
1521 |
|
---|
1522 | ; return 0; }
|
---|
1523 | EOF
|
---|
1524 | if { (eval echo configure:1525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1525 | rm -rf conftest*
|
---|
1526 | success=yes
|
---|
1527 | else
|
---|
1528 | echo "configure: failed program was:" >&5
|
---|
1529 | cat conftest.$ac_ext >&5
|
---|
1530 | fi
|
---|
1531 | rm -f conftest*
|
---|
1532 |
|
---|
1533 | if test $success = "no"; then
|
---|
1534 | cat > conftest.$ac_ext <<EOF
|
---|
1535 | #line 1536 "configure"
|
---|
1536 | #include "confdefs.h"
|
---|
1537 | #include <vector.h>
|
---|
1538 |
|
---|
1539 | int main() {
|
---|
1540 |
|
---|
1541 | ; return 0; }
|
---|
1542 | EOF
|
---|
1543 | if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1544 | rm -rf conftest*
|
---|
1545 | success="yes"
|
---|
1546 | else
|
---|
1547 | echo "configure: failed program was:" >&5
|
---|
1548 | cat conftest.$ac_ext >&5
|
---|
1549 | fi
|
---|
1550 | rm -f conftest*
|
---|
1551 | fi
|
---|
1552 |
|
---|
1553 | if test $success = "no"; then
|
---|
1554 | cat > conftest.$ac_ext <<EOF
|
---|
1555 | #line 1556 "configure"
|
---|
1556 | #include "confdefs.h"
|
---|
1557 | #include <ospace\\std\\vector>
|
---|
1558 |
|
---|
1559 | int main() {
|
---|
1560 |
|
---|
1561 | ; return 0; }
|
---|
1562 | EOF
|
---|
1563 | if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1564 | rm -rf conftest*
|
---|
1565 | success="yes"
|
---|
1566 | else
|
---|
1567 | echo "configure: failed program was:" >&5
|
---|
1568 | cat conftest.$ac_ext >&5
|
---|
1569 | fi
|
---|
1570 | rm -f conftest*
|
---|
1571 | fi
|
---|
1572 |
|
---|
1573 | if test $success = yes; then
|
---|
1574 | echo "$ac_t"""no"" 1>&6
|
---|
1575 | else
|
---|
1576 | echo "$ac_t"""yes"" 1>&6
|
---|
1577 | { echo "configure: error: "STL Broken - new not found in vector header file"" 1>&2; exit 1; }
|
---|
1578 | fi
|
---|
1579 |
|
---|
1580 | gsdlos=`uname | tr A-Z a-z`
|
---|
1581 |
|
---|
1582 |
|
---|
1583 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6
|
---|
1584 | echo "configure:1585: checking for vprintf" >&5
|
---|
1585 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
|
---|
1586 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1587 | else
|
---|
1588 | cat > conftest.$ac_ext <<EOF
|
---|
1589 | #line 1590 "configure"
|
---|
1590 | #include "confdefs.h"
|
---|
1591 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1592 | which can conflict with char vprintf(); below. */
|
---|
1593 | #include <assert.h>
|
---|
1594 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1595 | #ifdef __cplusplus
|
---|
1596 | extern "C"
|
---|
1597 | #endif
|
---|
1598 | /* We use char because int might match the return type of a gcc2
|
---|
1599 | builtin and then its argument prototype would still apply. */
|
---|
1600 | char vprintf();
|
---|
1601 |
|
---|
1602 | int main() {
|
---|
1603 |
|
---|
1604 | /* The GNU C library defines this for functions which it implements
|
---|
1605 | to always fail with ENOSYS. Some functions are actually named
|
---|
1606 | something starting with __ and the normal name is an alias. */
|
---|
1607 | #if defined (__stub_vprintf) || defined (__stub___vprintf)
|
---|
1608 | choke me
|
---|
1609 | #else
|
---|
1610 | vprintf();
|
---|
1611 | #endif
|
---|
1612 |
|
---|
1613 | ; return 0; }
|
---|
1614 | EOF
|
---|
1615 | if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1616 | rm -rf conftest*
|
---|
1617 | eval "ac_cv_func_vprintf=yes"
|
---|
1618 | else
|
---|
1619 | echo "configure: failed program was:" >&5
|
---|
1620 | cat conftest.$ac_ext >&5
|
---|
1621 | rm -rf conftest*
|
---|
1622 | eval "ac_cv_func_vprintf=no"
|
---|
1623 | fi
|
---|
1624 | rm -f conftest*
|
---|
1625 | fi
|
---|
1626 |
|
---|
1627 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
|
---|
1628 | echo "$ac_t""yes" 1>&6
|
---|
1629 | cat >> confdefs.h <<\EOF
|
---|
1630 | #define HAVE_VPRINTF 1
|
---|
1631 | EOF
|
---|
1632 |
|
---|
1633 | else
|
---|
1634 | echo "$ac_t""no" 1>&6
|
---|
1635 | fi
|
---|
1636 |
|
---|
1637 | if test "$ac_cv_func_vprintf" != yes; then
|
---|
1638 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
|
---|
1639 | echo "configure:1640: checking for _doprnt" >&5
|
---|
1640 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
|
---|
1641 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1642 | else
|
---|
1643 | cat > conftest.$ac_ext <<EOF
|
---|
1644 | #line 1645 "configure"
|
---|
1645 | #include "confdefs.h"
|
---|
1646 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1647 | which can conflict with char _doprnt(); below. */
|
---|
1648 | #include <assert.h>
|
---|
1649 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1650 | #ifdef __cplusplus
|
---|
1651 | extern "C"
|
---|
1652 | #endif
|
---|
1653 | /* We use char because int might match the return type of a gcc2
|
---|
1654 | builtin and then its argument prototype would still apply. */
|
---|
1655 | char _doprnt();
|
---|
1656 |
|
---|
1657 | int main() {
|
---|
1658 |
|
---|
1659 | /* The GNU C library defines this for functions which it implements
|
---|
1660 | to always fail with ENOSYS. Some functions are actually named
|
---|
1661 | something starting with __ and the normal name is an alias. */
|
---|
1662 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
1663 | choke me
|
---|
1664 | #else
|
---|
1665 | _doprnt();
|
---|
1666 | #endif
|
---|
1667 |
|
---|
1668 | ; return 0; }
|
---|
1669 | EOF
|
---|
1670 | if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1671 | rm -rf conftest*
|
---|
1672 | eval "ac_cv_func__doprnt=yes"
|
---|
1673 | else
|
---|
1674 | echo "configure: failed program was:" >&5
|
---|
1675 | cat conftest.$ac_ext >&5
|
---|
1676 | rm -rf conftest*
|
---|
1677 | eval "ac_cv_func__doprnt=no"
|
---|
1678 | fi
|
---|
1679 | rm -f conftest*
|
---|
1680 | fi
|
---|
1681 |
|
---|
1682 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
|
---|
1683 | echo "$ac_t""yes" 1>&6
|
---|
1684 | cat >> confdefs.h <<\EOF
|
---|
1685 | #define HAVE_DOPRNT 1
|
---|
1686 | EOF
|
---|
1687 |
|
---|
1688 | else
|
---|
1689 | echo "$ac_t""no" 1>&6
|
---|
1690 | fi
|
---|
1691 |
|
---|
1692 | fi
|
---|
1693 |
|
---|
1694 |
|
---|
1695 | trap '' 1 2 15
|
---|
1696 | cat > confcache <<\EOF
|
---|
1697 | # This file is a shell script that caches the results of configure
|
---|
1698 | # tests run on this system so they can be shared between configure
|
---|
1699 | # scripts and configure runs. It is not useful on other systems.
|
---|
1700 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
1701 | #
|
---|
1702 | # By default, configure uses ./config.cache as the cache file,
|
---|
1703 | # creating it if it does not exist already. You can give configure
|
---|
1704 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
1705 | # what configure does when it calls configure scripts in
|
---|
1706 | # subdirectories, so they share the cache.
|
---|
1707 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
1708 | # config.status only pays attention to the cache file if you give it the
|
---|
1709 | # --recheck option to rerun configure.
|
---|
1710 | #
|
---|
1711 | EOF
|
---|
1712 | # The following way of writing the cache mishandles newlines in values,
|
---|
1713 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
1714 | # So, don't put newlines in cache variables' values.
|
---|
1715 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
1716 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
1717 | (set) 2>&1 |
|
---|
1718 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
1719 | *ac_space=\ *)
|
---|
1720 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
1721 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
1722 | sed -n \
|
---|
1723 | -e "s/'/'\\\\''/g" \
|
---|
1724 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
1725 | ;;
|
---|
1726 | *)
|
---|
1727 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
1728 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
1729 | ;;
|
---|
1730 | esac >> confcache
|
---|
1731 | if cmp -s $cache_file confcache; then
|
---|
1732 | :
|
---|
1733 | else
|
---|
1734 | if test -w $cache_file; then
|
---|
1735 | echo "updating cache $cache_file"
|
---|
1736 | cat confcache > $cache_file
|
---|
1737 | else
|
---|
1738 | echo "not updating unwritable cache $cache_file"
|
---|
1739 | fi
|
---|
1740 | fi
|
---|
1741 | rm -f confcache
|
---|
1742 |
|
---|
1743 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
1744 |
|
---|
1745 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
1746 | # Let make expand exec_prefix.
|
---|
1747 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
1748 |
|
---|
1749 | # Any assignment to VPATH causes Sun make to only execute
|
---|
1750 | # the first set of double-colon rules, so remove it if not needed.
|
---|
1751 | # If there is a colon in the path, we need to keep it.
|
---|
1752 | if test "x$srcdir" = x.; then
|
---|
1753 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
1754 | fi
|
---|
1755 |
|
---|
1756 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
1757 |
|
---|
1758 | # Transform confdefs.h into DEFS.
|
---|
1759 | # Protect against shell expansion while executing Makefile rules.
|
---|
1760 | # Protect against Makefile macro expansion.
|
---|
1761 | cat > conftest.defs <<\EOF
|
---|
1762 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
---|
1763 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
---|
1764 | s%\[%\\&%g
|
---|
1765 | s%\]%\\&%g
|
---|
1766 | s%\$%$$%g
|
---|
1767 | EOF
|
---|
1768 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
---|
1769 | rm -f conftest.defs
|
---|
1770 |
|
---|
1771 |
|
---|
1772 | # Without the "./", some shells look in PATH for config.status.
|
---|
1773 | : ${CONFIG_STATUS=./config.status}
|
---|
1774 |
|
---|
1775 | echo creating $CONFIG_STATUS
|
---|
1776 | rm -f $CONFIG_STATUS
|
---|
1777 | cat > $CONFIG_STATUS <<EOF
|
---|
1778 | #! /bin/sh
|
---|
1779 | # Generated automatically by configure.
|
---|
1780 | # Run this file to recreate the current configuration.
|
---|
1781 | # This directory was configured as follows,
|
---|
1782 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
1783 | #
|
---|
1784 | # $0 $ac_configure_args
|
---|
1785 | #
|
---|
1786 | # Compiler output produced by configure, useful for debugging
|
---|
1787 | # configure, is in ./config.log if it exists.
|
---|
1788 |
|
---|
1789 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
1790 | for ac_option
|
---|
1791 | do
|
---|
1792 | case "\$ac_option" in
|
---|
1793 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
1794 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
1795 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
1796 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
1797 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
1798 | exit 0 ;;
|
---|
1799 | -help | --help | --hel | --he | --h)
|
---|
1800 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
1801 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
1802 | esac
|
---|
1803 | done
|
---|
1804 |
|
---|
1805 | ac_given_srcdir=$srcdir
|
---|
1806 |
|
---|
1807 | trap 'rm -fr `echo "src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile collect/niupepa/src/recpt/Makefile Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
1808 | EOF
|
---|
1809 | cat >> $CONFIG_STATUS <<EOF
|
---|
1810 |
|
---|
1811 | # Protect against being on the right side of a sed subst in config.status.
|
---|
1812 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
1813 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
1814 | $ac_vpsub
|
---|
1815 | $extrasub
|
---|
1816 | s%@SHELL@%$SHELL%g
|
---|
1817 | s%@CFLAGS@%$CFLAGS%g
|
---|
1818 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
1819 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
1820 | s%@FFLAGS@%$FFLAGS%g
|
---|
1821 | s%@DEFS@%$DEFS%g
|
---|
1822 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
1823 | s%@LIBS@%$LIBS%g
|
---|
1824 | s%@exec_prefix@%$exec_prefix%g
|
---|
1825 | s%@prefix@%$prefix%g
|
---|
1826 | s%@program_transform_name@%$program_transform_name%g
|
---|
1827 | s%@bindir@%$bindir%g
|
---|
1828 | s%@sbindir@%$sbindir%g
|
---|
1829 | s%@libexecdir@%$libexecdir%g
|
---|
1830 | s%@datadir@%$datadir%g
|
---|
1831 | s%@sysconfdir@%$sysconfdir%g
|
---|
1832 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
1833 | s%@localstatedir@%$localstatedir%g
|
---|
1834 | s%@libdir@%$libdir%g
|
---|
1835 | s%@includedir@%$includedir%g
|
---|
1836 | s%@oldincludedir@%$oldincludedir%g
|
---|
1837 | s%@infodir@%$infodir%g
|
---|
1838 | s%@mandir@%$mandir%g
|
---|
1839 | s%@PACKAGE@%$PACKAGE%g
|
---|
1840 | s%@VERSION@%$VERSION%g
|
---|
1841 | s%@USE_FASTCGI@%$USE_FASTCGI%g
|
---|
1842 | s%@CC@%$CC%g
|
---|
1843 | s%@CXX@%$CXX%g
|
---|
1844 | s%@LN_S@%$LN_S%g
|
---|
1845 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
1846 | s%@RANLIB@%$RANLIB%g
|
---|
1847 | s%@CPP@%$CPP%g
|
---|
1848 | s%@gsdlos@%$gsdlos%g
|
---|
1849 |
|
---|
1850 | CEOF
|
---|
1851 | EOF
|
---|
1852 |
|
---|
1853 | cat >> $CONFIG_STATUS <<\EOF
|
---|
1854 |
|
---|
1855 | # Split the substitutions into bite-sized pieces for seds with
|
---|
1856 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
1857 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
1858 | ac_file=1 # Number of current file.
|
---|
1859 | ac_beg=1 # First line for current file.
|
---|
1860 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
1861 | ac_more_lines=:
|
---|
1862 | ac_sed_cmds=""
|
---|
1863 | while $ac_more_lines; do
|
---|
1864 | if test $ac_beg -gt 1; then
|
---|
1865 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
1866 | else
|
---|
1867 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
1868 | fi
|
---|
1869 | if test ! -s conftest.s$ac_file; then
|
---|
1870 | ac_more_lines=false
|
---|
1871 | rm -f conftest.s$ac_file
|
---|
1872 | else
|
---|
1873 | if test -z "$ac_sed_cmds"; then
|
---|
1874 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
1875 | else
|
---|
1876 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
1877 | fi
|
---|
1878 | ac_file=`expr $ac_file + 1`
|
---|
1879 | ac_beg=$ac_end
|
---|
1880 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
1881 | fi
|
---|
1882 | done
|
---|
1883 | if test -z "$ac_sed_cmds"; then
|
---|
1884 | ac_sed_cmds=cat
|
---|
1885 | fi
|
---|
1886 | EOF
|
---|
1887 |
|
---|
1888 | cat >> $CONFIG_STATUS <<EOF
|
---|
1889 |
|
---|
1890 | CONFIG_FILES=\${CONFIG_FILES-"src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile collect/niupepa/src/recpt/Makefile Makefile"}
|
---|
1891 | EOF
|
---|
1892 | cat >> $CONFIG_STATUS <<\EOF
|
---|
1893 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
1894 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
1895 | case "$ac_file" in
|
---|
1896 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
1897 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
1898 | *) ac_file_in="${ac_file}.in" ;;
|
---|
1899 | esac
|
---|
1900 |
|
---|
1901 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
1902 |
|
---|
1903 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
1904 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
1905 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
1906 | # The file is in a subdirectory.
|
---|
1907 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
1908 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
1909 | # A "../" for each directory in $ac_dir_suffix.
|
---|
1910 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
1911 | else
|
---|
1912 | ac_dir_suffix= ac_dots=
|
---|
1913 | fi
|
---|
1914 |
|
---|
1915 | case "$ac_given_srcdir" in
|
---|
1916 | .) srcdir=.
|
---|
1917 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
1918 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
1919 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
1920 | *) # Relative path.
|
---|
1921 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
1922 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
1923 | esac
|
---|
1924 |
|
---|
1925 |
|
---|
1926 | echo creating "$ac_file"
|
---|
1927 | rm -f "$ac_file"
|
---|
1928 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
1929 | case "$ac_file" in
|
---|
1930 | *Makefile*) ac_comsub="1i\\
|
---|
1931 | # $configure_input" ;;
|
---|
1932 | *) ac_comsub= ;;
|
---|
1933 | esac
|
---|
1934 |
|
---|
1935 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
1936 | sed -e "$ac_comsub
|
---|
1937 | s%@configure_input@%$configure_input%g
|
---|
1938 | s%@srcdir@%$srcdir%g
|
---|
1939 | s%@top_srcdir@%$top_srcdir%g
|
---|
1940 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
1941 | fi; done
|
---|
1942 | rm -f conftest.s*
|
---|
1943 |
|
---|
1944 | EOF
|
---|
1945 | cat >> $CONFIG_STATUS <<EOF
|
---|
1946 |
|
---|
1947 | EOF
|
---|
1948 | cat >> $CONFIG_STATUS <<\EOF
|
---|
1949 |
|
---|
1950 | exit 0
|
---|
1951 | EOF
|
---|
1952 | chmod +x $CONFIG_STATUS
|
---|
1953 | rm -fr confdefs* $ac_clean_files
|
---|
1954 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
1955 |
|
---|
1956 |
|
---|
1957 |
|
---|
1958 |
|
---|
1959 |
|
---|