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 | if test "$program_transform_name" = s,x,x,; then
|
---|
526 | program_transform_name=
|
---|
527 | else
|
---|
528 | # Double any \ or $. echo might interpret backslashes.
|
---|
529 | cat <<\EOF_SED > conftestsed
|
---|
530 | s,\\,\\\\,g; s,\$,$$,g
|
---|
531 | EOF_SED
|
---|
532 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
533 | rm -f conftestsed
|
---|
534 | fi
|
---|
535 | test "$program_prefix" != NONE &&
|
---|
536 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
537 | # Use a double $ so make ignores it.
|
---|
538 | test "$program_suffix" != NONE &&
|
---|
539 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
540 |
|
---|
541 | # sed with no file args requires a program.
|
---|
542 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
543 |
|
---|
544 |
|
---|
545 | PACKAGE=gsdl
|
---|
546 | VERSION=2.1
|
---|
547 | cat >> confdefs.h <<EOF
|
---|
548 | #define PACKAGE "$PACKAGE"
|
---|
549 | EOF
|
---|
550 |
|
---|
551 | cat >> confdefs.h <<EOF
|
---|
552 | #define VERSION "$VERSION"
|
---|
553 | EOF
|
---|
554 |
|
---|
555 |
|
---|
556 |
|
---|
557 |
|
---|
558 | USE_FASTCGI=0
|
---|
559 | if test USE_FASTCGI = 1; then
|
---|
560 | cat >> confdefs.h <<\EOF
|
---|
561 | #define USE_FASTCGI 1
|
---|
562 | EOF
|
---|
563 |
|
---|
564 |
|
---|
565 | fi
|
---|
566 |
|
---|
567 | CFLAGS=-g
|
---|
568 |
|
---|
569 |
|
---|
570 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
571 | set dummy gcc; ac_word=$2
|
---|
572 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
573 | echo "configure:574: checking for $ac_word" >&5
|
---|
574 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
575 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
576 | else
|
---|
577 | if test -n "$CC"; then
|
---|
578 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
579 | else
|
---|
580 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
581 | ac_dummy="$PATH"
|
---|
582 | for ac_dir in $ac_dummy; do
|
---|
583 | test -z "$ac_dir" && ac_dir=.
|
---|
584 | if test -f $ac_dir/$ac_word; then
|
---|
585 | ac_cv_prog_CC="gcc"
|
---|
586 | break
|
---|
587 | fi
|
---|
588 | done
|
---|
589 | IFS="$ac_save_ifs"
|
---|
590 | fi
|
---|
591 | fi
|
---|
592 | CC="$ac_cv_prog_CC"
|
---|
593 | if test -n "$CC"; then
|
---|
594 | echo "$ac_t""$CC" 1>&6
|
---|
595 | else
|
---|
596 | echo "$ac_t""no" 1>&6
|
---|
597 | fi
|
---|
598 |
|
---|
599 | if test -z "$CC"; then
|
---|
600 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
601 | set dummy cc; ac_word=$2
|
---|
602 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
603 | echo "configure:604: checking for $ac_word" >&5
|
---|
604 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
605 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
606 | else
|
---|
607 | if test -n "$CC"; then
|
---|
608 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
609 | else
|
---|
610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
611 | ac_prog_rejected=no
|
---|
612 | ac_dummy="$PATH"
|
---|
613 | for ac_dir in $ac_dummy; do
|
---|
614 | test -z "$ac_dir" && ac_dir=.
|
---|
615 | if test -f $ac_dir/$ac_word; then
|
---|
616 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
617 | ac_prog_rejected=yes
|
---|
618 | continue
|
---|
619 | fi
|
---|
620 | ac_cv_prog_CC="cc"
|
---|
621 | break
|
---|
622 | fi
|
---|
623 | done
|
---|
624 | IFS="$ac_save_ifs"
|
---|
625 | if test $ac_prog_rejected = yes; then
|
---|
626 | # We found a bogon in the path, so make sure we never use it.
|
---|
627 | set dummy $ac_cv_prog_CC
|
---|
628 | shift
|
---|
629 | if test $# -gt 0; then
|
---|
630 | # We chose a different compiler from the bogus one.
|
---|
631 | # However, it has the same basename, so the bogon will be chosen
|
---|
632 | # first if we set CC to just the basename; use the full file name.
|
---|
633 | shift
|
---|
634 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
635 | shift
|
---|
636 | ac_cv_prog_CC="$@"
|
---|
637 | fi
|
---|
638 | fi
|
---|
639 | fi
|
---|
640 | fi
|
---|
641 | CC="$ac_cv_prog_CC"
|
---|
642 | if test -n "$CC"; then
|
---|
643 | echo "$ac_t""$CC" 1>&6
|
---|
644 | else
|
---|
645 | echo "$ac_t""no" 1>&6
|
---|
646 | fi
|
---|
647 |
|
---|
648 | if test -z "$CC"; then
|
---|
649 | case "`uname -s`" in
|
---|
650 | *win32* | *WIN32*)
|
---|
651 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
652 | set dummy cl; ac_word=$2
|
---|
653 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
654 | echo "configure:655: checking for $ac_word" >&5
|
---|
655 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
656 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
657 | else
|
---|
658 | if test -n "$CC"; then
|
---|
659 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
660 | else
|
---|
661 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
662 | ac_dummy="$PATH"
|
---|
663 | for ac_dir in $ac_dummy; do
|
---|
664 | test -z "$ac_dir" && ac_dir=.
|
---|
665 | if test -f $ac_dir/$ac_word; then
|
---|
666 | ac_cv_prog_CC="cl"
|
---|
667 | break
|
---|
668 | fi
|
---|
669 | done
|
---|
670 | IFS="$ac_save_ifs"
|
---|
671 | fi
|
---|
672 | fi
|
---|
673 | CC="$ac_cv_prog_CC"
|
---|
674 | if test -n "$CC"; then
|
---|
675 | echo "$ac_t""$CC" 1>&6
|
---|
676 | else
|
---|
677 | echo "$ac_t""no" 1>&6
|
---|
678 | fi
|
---|
679 | ;;
|
---|
680 | esac
|
---|
681 | fi
|
---|
682 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
683 | fi
|
---|
684 |
|
---|
685 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
686 | echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
687 |
|
---|
688 | ac_ext=c
|
---|
689 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
690 | ac_cpp='$CPP $CPPFLAGS'
|
---|
691 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
692 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
693 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
694 |
|
---|
695 | cat > conftest.$ac_ext << EOF
|
---|
696 |
|
---|
697 | #line 698 "configure"
|
---|
698 | #include "confdefs.h"
|
---|
699 |
|
---|
700 | main(){return(0);}
|
---|
701 | EOF
|
---|
702 | if { (eval echo configure:703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
703 | ac_cv_prog_cc_works=yes
|
---|
704 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
705 | if (./conftest; exit) 2>/dev/null; then
|
---|
706 | ac_cv_prog_cc_cross=no
|
---|
707 | else
|
---|
708 | ac_cv_prog_cc_cross=yes
|
---|
709 | fi
|
---|
710 | else
|
---|
711 | echo "configure: failed program was:" >&5
|
---|
712 | cat conftest.$ac_ext >&5
|
---|
713 | ac_cv_prog_cc_works=no
|
---|
714 | fi
|
---|
715 | rm -fr conftest*
|
---|
716 | ac_ext=c
|
---|
717 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
718 | ac_cpp='$CPP $CPPFLAGS'
|
---|
719 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
720 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
721 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
722 |
|
---|
723 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
724 | if test $ac_cv_prog_cc_works = no; then
|
---|
725 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
726 | fi
|
---|
727 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
728 | echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
729 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
730 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
731 |
|
---|
732 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
733 | echo "configure:734: checking whether we are using GNU C" >&5
|
---|
734 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
735 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
736 | else
|
---|
737 | cat > conftest.c <<EOF
|
---|
738 | #ifdef __GNUC__
|
---|
739 | yes;
|
---|
740 | #endif
|
---|
741 | EOF
|
---|
742 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
743 | ac_cv_prog_gcc=yes
|
---|
744 | else
|
---|
745 | ac_cv_prog_gcc=no
|
---|
746 | fi
|
---|
747 | fi
|
---|
748 |
|
---|
749 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
750 |
|
---|
751 | if test $ac_cv_prog_gcc = yes; then
|
---|
752 | GCC=yes
|
---|
753 | else
|
---|
754 | GCC=
|
---|
755 | fi
|
---|
756 |
|
---|
757 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
758 | ac_save_CFLAGS="$CFLAGS"
|
---|
759 | CFLAGS=
|
---|
760 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
761 | echo "configure:762: checking whether ${CC-cc} accepts -g" >&5
|
---|
762 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
763 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
764 | else
|
---|
765 | echo 'void f(){}' > conftest.c
|
---|
766 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
767 | ac_cv_prog_cc_g=yes
|
---|
768 | else
|
---|
769 | ac_cv_prog_cc_g=no
|
---|
770 | fi
|
---|
771 | rm -f conftest*
|
---|
772 |
|
---|
773 | fi
|
---|
774 |
|
---|
775 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
776 | if test "$ac_test_CFLAGS" = set; then
|
---|
777 | CFLAGS="$ac_save_CFLAGS"
|
---|
778 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
779 | if test "$GCC" = yes; then
|
---|
780 | CFLAGS="-g -O2"
|
---|
781 | else
|
---|
782 | CFLAGS="-g"
|
---|
783 | fi
|
---|
784 | else
|
---|
785 | if test "$GCC" = yes; then
|
---|
786 | CFLAGS="-O2"
|
---|
787 | else
|
---|
788 | CFLAGS=
|
---|
789 | fi
|
---|
790 | fi
|
---|
791 |
|
---|
792 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
793 | do
|
---|
794 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
795 | set dummy $ac_prog; ac_word=$2
|
---|
796 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
797 | echo "configure:798: checking for $ac_word" >&5
|
---|
798 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
799 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
800 | else
|
---|
801 | if test -n "$CXX"; then
|
---|
802 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
803 | else
|
---|
804 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
805 | ac_dummy="$PATH"
|
---|
806 | for ac_dir in $ac_dummy; do
|
---|
807 | test -z "$ac_dir" && ac_dir=.
|
---|
808 | if test -f $ac_dir/$ac_word; then
|
---|
809 | ac_cv_prog_CXX="$ac_prog"
|
---|
810 | break
|
---|
811 | fi
|
---|
812 | done
|
---|
813 | IFS="$ac_save_ifs"
|
---|
814 | fi
|
---|
815 | fi
|
---|
816 | CXX="$ac_cv_prog_CXX"
|
---|
817 | if test -n "$CXX"; then
|
---|
818 | echo "$ac_t""$CXX" 1>&6
|
---|
819 | else
|
---|
820 | echo "$ac_t""no" 1>&6
|
---|
821 | fi
|
---|
822 |
|
---|
823 | test -n "$CXX" && break
|
---|
824 | done
|
---|
825 | test -n "$CXX" || CXX="gcc"
|
---|
826 |
|
---|
827 |
|
---|
828 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
829 | echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
830 |
|
---|
831 | ac_ext=C
|
---|
832 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
833 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
834 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
835 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
836 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
837 |
|
---|
838 | cat > conftest.$ac_ext << EOF
|
---|
839 |
|
---|
840 | #line 841 "configure"
|
---|
841 | #include "confdefs.h"
|
---|
842 |
|
---|
843 | int main(){return(0);}
|
---|
844 | EOF
|
---|
845 | if { (eval echo configure:846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
846 | ac_cv_prog_cxx_works=yes
|
---|
847 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
848 | if (./conftest; exit) 2>/dev/null; then
|
---|
849 | ac_cv_prog_cxx_cross=no
|
---|
850 | else
|
---|
851 | ac_cv_prog_cxx_cross=yes
|
---|
852 | fi
|
---|
853 | else
|
---|
854 | echo "configure: failed program was:" >&5
|
---|
855 | cat conftest.$ac_ext >&5
|
---|
856 | ac_cv_prog_cxx_works=no
|
---|
857 | fi
|
---|
858 | rm -fr conftest*
|
---|
859 | ac_ext=c
|
---|
860 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
861 | ac_cpp='$CPP $CPPFLAGS'
|
---|
862 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
863 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
864 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
865 |
|
---|
866 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
867 | if test $ac_cv_prog_cxx_works = no; then
|
---|
868 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
869 | fi
|
---|
870 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
871 | echo "configure:872: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
872 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
873 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
874 |
|
---|
875 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
876 | echo "configure:877: checking whether we are using GNU C++" >&5
|
---|
877 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
878 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
879 | else
|
---|
880 | cat > conftest.C <<EOF
|
---|
881 | #ifdef __GNUC__
|
---|
882 | yes;
|
---|
883 | #endif
|
---|
884 | EOF
|
---|
885 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
886 | ac_cv_prog_gxx=yes
|
---|
887 | else
|
---|
888 | ac_cv_prog_gxx=no
|
---|
889 | fi
|
---|
890 | fi
|
---|
891 |
|
---|
892 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
893 |
|
---|
894 | if test $ac_cv_prog_gxx = yes; then
|
---|
895 | GXX=yes
|
---|
896 | else
|
---|
897 | GXX=
|
---|
898 | fi
|
---|
899 |
|
---|
900 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
901 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
902 | CXXFLAGS=
|
---|
903 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
904 | echo "configure:905: checking whether ${CXX-g++} accepts -g" >&5
|
---|
905 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
906 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
907 | else
|
---|
908 | echo 'void f(){}' > conftest.cc
|
---|
909 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
910 | ac_cv_prog_cxx_g=yes
|
---|
911 | else
|
---|
912 | ac_cv_prog_cxx_g=no
|
---|
913 | fi
|
---|
914 | rm -f conftest*
|
---|
915 |
|
---|
916 | fi
|
---|
917 |
|
---|
918 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
919 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
920 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
921 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
922 | if test "$GXX" = yes; then
|
---|
923 | CXXFLAGS="-g -O2"
|
---|
924 | else
|
---|
925 | CXXFLAGS="-g"
|
---|
926 | fi
|
---|
927 | else
|
---|
928 | if test "$GXX" = yes; then
|
---|
929 | CXXFLAGS="-O2"
|
---|
930 | else
|
---|
931 | CXXFLAGS=
|
---|
932 | fi
|
---|
933 | fi
|
---|
934 |
|
---|
935 | for ac_prog in mawk gawk nawk awk
|
---|
936 | do
|
---|
937 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
938 | set dummy $ac_prog; ac_word=$2
|
---|
939 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
940 | echo "configure:941: checking for $ac_word" >&5
|
---|
941 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
---|
942 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
943 | else
|
---|
944 | if test -n "$AWK"; then
|
---|
945 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
946 | else
|
---|
947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
948 | ac_dummy="$PATH"
|
---|
949 | for ac_dir in $ac_dummy; do
|
---|
950 | test -z "$ac_dir" && ac_dir=.
|
---|
951 | if test -f $ac_dir/$ac_word; then
|
---|
952 | ac_cv_prog_AWK="$ac_prog"
|
---|
953 | break
|
---|
954 | fi
|
---|
955 | done
|
---|
956 | IFS="$ac_save_ifs"
|
---|
957 | fi
|
---|
958 | fi
|
---|
959 | AWK="$ac_cv_prog_AWK"
|
---|
960 | if test -n "$AWK"; then
|
---|
961 | echo "$ac_t""$AWK" 1>&6
|
---|
962 | else
|
---|
963 | echo "$ac_t""no" 1>&6
|
---|
964 | fi
|
---|
965 |
|
---|
966 | test -n "$AWK" && break
|
---|
967 | done
|
---|
968 |
|
---|
969 | for ac_prog in 'bison -y' byacc
|
---|
970 | do
|
---|
971 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
972 | set dummy $ac_prog; ac_word=$2
|
---|
973 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
974 | echo "configure:975: checking for $ac_word" >&5
|
---|
975 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
---|
976 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
977 | else
|
---|
978 | if test -n "$YACC"; then
|
---|
979 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
980 | else
|
---|
981 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
982 | ac_dummy="$PATH"
|
---|
983 | for ac_dir in $ac_dummy; do
|
---|
984 | test -z "$ac_dir" && ac_dir=.
|
---|
985 | if test -f $ac_dir/$ac_word; then
|
---|
986 | ac_cv_prog_YACC="$ac_prog"
|
---|
987 | break
|
---|
988 | fi
|
---|
989 | done
|
---|
990 | IFS="$ac_save_ifs"
|
---|
991 | fi
|
---|
992 | fi
|
---|
993 | YACC="$ac_cv_prog_YACC"
|
---|
994 | if test -n "$YACC"; then
|
---|
995 | echo "$ac_t""$YACC" 1>&6
|
---|
996 | else
|
---|
997 | echo "$ac_t""no" 1>&6
|
---|
998 | fi
|
---|
999 |
|
---|
1000 | test -n "$YACC" && break
|
---|
1001 | done
|
---|
1002 | test -n "$YACC" || YACC="yacc"
|
---|
1003 |
|
---|
1004 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1005 | echo "configure:1006: checking whether ln -s works" >&5
|
---|
1006 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1007 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1008 | else
|
---|
1009 | rm -f conftestdata
|
---|
1010 | if ln -s X conftestdata 2>/dev/null
|
---|
1011 | then
|
---|
1012 | rm -f conftestdata
|
---|
1013 | ac_cv_prog_LN_S="ln -s"
|
---|
1014 | else
|
---|
1015 | ac_cv_prog_LN_S=ln
|
---|
1016 | fi
|
---|
1017 | fi
|
---|
1018 | LN_S="$ac_cv_prog_LN_S"
|
---|
1019 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1020 | echo "$ac_t""yes" 1>&6
|
---|
1021 | else
|
---|
1022 | echo "$ac_t""no" 1>&6
|
---|
1023 | fi
|
---|
1024 |
|
---|
1025 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1026 | echo "configure:1027: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1027 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1028 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1029 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1030 | else
|
---|
1031 | cat > conftestmake <<\EOF
|
---|
1032 | all:
|
---|
1033 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1034 | EOF
|
---|
1035 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1036 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1037 | if test -n "$ac_maketemp"; then
|
---|
1038 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1039 | else
|
---|
1040 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1041 | fi
|
---|
1042 | rm -f conftestmake
|
---|
1043 | fi
|
---|
1044 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1045 | echo "$ac_t""yes" 1>&6
|
---|
1046 | SET_MAKE=
|
---|
1047 | else
|
---|
1048 | echo "$ac_t""no" 1>&6
|
---|
1049 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1050 | fi
|
---|
1051 |
|
---|
1052 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1053 | set dummy ranlib; ac_word=$2
|
---|
1054 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1055 | echo "configure:1056: checking for $ac_word" >&5
|
---|
1056 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1057 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1058 | else
|
---|
1059 | if test -n "$RANLIB"; then
|
---|
1060 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1061 | else
|
---|
1062 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1063 | ac_dummy="$PATH"
|
---|
1064 | for ac_dir in $ac_dummy; do
|
---|
1065 | test -z "$ac_dir" && ac_dir=.
|
---|
1066 | if test -f $ac_dir/$ac_word; then
|
---|
1067 | ac_cv_prog_RANLIB="ranlib"
|
---|
1068 | break
|
---|
1069 | fi
|
---|
1070 | done
|
---|
1071 | IFS="$ac_save_ifs"
|
---|
1072 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1073 | fi
|
---|
1074 | fi
|
---|
1075 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1076 | if test -n "$RANLIB"; then
|
---|
1077 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1078 | else
|
---|
1079 | echo "$ac_t""no" 1>&6
|
---|
1080 | fi
|
---|
1081 |
|
---|
1082 |
|
---|
1083 |
|
---|
1084 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
1085 | echo "configure:1086: checking how to run the C preprocessor" >&5
|
---|
1086 | # On Suns, sometimes $CPP names a directory.
|
---|
1087 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
1088 | CPP=
|
---|
1089 | fi
|
---|
1090 | if test -z "$CPP"; then
|
---|
1091 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
1092 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1093 | else
|
---|
1094 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
1095 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
1096 | CPP="${CC-cc} -E"
|
---|
1097 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
1098 | # not just through cpp.
|
---|
1099 | cat > conftest.$ac_ext <<EOF
|
---|
1100 | #line 1101 "configure"
|
---|
1101 | #include "confdefs.h"
|
---|
1102 | #include <assert.h>
|
---|
1103 | Syntax Error
|
---|
1104 | EOF
|
---|
1105 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1106 | { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1107 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1108 | if test -z "$ac_err"; then
|
---|
1109 | :
|
---|
1110 | else
|
---|
1111 | echo "$ac_err" >&5
|
---|
1112 | echo "configure: failed program was:" >&5
|
---|
1113 | cat conftest.$ac_ext >&5
|
---|
1114 | rm -rf conftest*
|
---|
1115 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
1116 | cat > conftest.$ac_ext <<EOF
|
---|
1117 | #line 1118 "configure"
|
---|
1118 | #include "confdefs.h"
|
---|
1119 | #include <assert.h>
|
---|
1120 | Syntax Error
|
---|
1121 | EOF
|
---|
1122 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1123 | { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1124 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1125 | if test -z "$ac_err"; then
|
---|
1126 | :
|
---|
1127 | else
|
---|
1128 | echo "$ac_err" >&5
|
---|
1129 | echo "configure: failed program was:" >&5
|
---|
1130 | cat conftest.$ac_ext >&5
|
---|
1131 | rm -rf conftest*
|
---|
1132 | CPP="${CC-cc} -nologo -E"
|
---|
1133 | cat > conftest.$ac_ext <<EOF
|
---|
1134 | #line 1135 "configure"
|
---|
1135 | #include "confdefs.h"
|
---|
1136 | #include <assert.h>
|
---|
1137 | Syntax Error
|
---|
1138 | EOF
|
---|
1139 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1140 | { (eval echo configure:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1141 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1142 | if test -z "$ac_err"; then
|
---|
1143 | :
|
---|
1144 | else
|
---|
1145 | echo "$ac_err" >&5
|
---|
1146 | echo "configure: failed program was:" >&5
|
---|
1147 | cat conftest.$ac_ext >&5
|
---|
1148 | rm -rf conftest*
|
---|
1149 | CPP=/lib/cpp
|
---|
1150 | fi
|
---|
1151 | rm -f conftest*
|
---|
1152 | fi
|
---|
1153 | rm -f conftest*
|
---|
1154 | fi
|
---|
1155 | rm -f conftest*
|
---|
1156 | ac_cv_prog_CPP="$CPP"
|
---|
1157 | fi
|
---|
1158 | CPP="$ac_cv_prog_CPP"
|
---|
1159 | else
|
---|
1160 | ac_cv_prog_CPP="$CPP"
|
---|
1161 | fi
|
---|
1162 | echo "$ac_t""$CPP" 1>&6
|
---|
1163 |
|
---|
1164 | echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
---|
1165 | echo "configure:1166: checking for AIX" >&5
|
---|
1166 | cat > conftest.$ac_ext <<EOF
|
---|
1167 | #line 1168 "configure"
|
---|
1168 | #include "confdefs.h"
|
---|
1169 | #ifdef _AIX
|
---|
1170 | yes
|
---|
1171 | #endif
|
---|
1172 |
|
---|
1173 | EOF
|
---|
1174 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1175 | egrep "yes" >/dev/null 2>&1; then
|
---|
1176 | rm -rf conftest*
|
---|
1177 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
---|
1178 | #define _ALL_SOURCE 1
|
---|
1179 | EOF
|
---|
1180 |
|
---|
1181 | else
|
---|
1182 | rm -rf conftest*
|
---|
1183 | echo "$ac_t""no" 1>&6
|
---|
1184 | fi
|
---|
1185 | rm -f conftest*
|
---|
1186 |
|
---|
1187 |
|
---|
1188 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
1189 | echo "configure:1190: checking for POSIXized ISC" >&5
|
---|
1190 | if test -d /etc/conf/kconfig.d &&
|
---|
1191 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
1192 | then
|
---|
1193 | echo "$ac_t""yes" 1>&6
|
---|
1194 | ISC=yes # If later tests want to check for ISC.
|
---|
1195 | cat >> confdefs.h <<\EOF
|
---|
1196 | #define _POSIX_SOURCE 1
|
---|
1197 | EOF
|
---|
1198 |
|
---|
1199 | if test "$GCC" = yes; then
|
---|
1200 | CC="$CC -posix"
|
---|
1201 | else
|
---|
1202 | CC="$CC -Xp"
|
---|
1203 | fi
|
---|
1204 | else
|
---|
1205 | echo "$ac_t""no" 1>&6
|
---|
1206 | ISC=
|
---|
1207 | fi
|
---|
1208 |
|
---|
1209 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
|
---|
1210 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
|
---|
1211 | echo "configure:1212: checking for minix/config.h" >&5
|
---|
1212 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1213 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1214 | else
|
---|
1215 | cat > conftest.$ac_ext <<EOF
|
---|
1216 | #line 1217 "configure"
|
---|
1217 | #include "confdefs.h"
|
---|
1218 | #include <minix/config.h>
|
---|
1219 | EOF
|
---|
1220 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1221 | { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1222 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1223 | if test -z "$ac_err"; then
|
---|
1224 | rm -rf conftest*
|
---|
1225 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1226 | else
|
---|
1227 | echo "$ac_err" >&5
|
---|
1228 | echo "configure: failed program was:" >&5
|
---|
1229 | cat conftest.$ac_ext >&5
|
---|
1230 | rm -rf conftest*
|
---|
1231 | eval "ac_cv_header_$ac_safe=no"
|
---|
1232 | fi
|
---|
1233 | rm -f conftest*
|
---|
1234 | fi
|
---|
1235 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1236 | echo "$ac_t""yes" 1>&6
|
---|
1237 | MINIX=yes
|
---|
1238 | else
|
---|
1239 | echo "$ac_t""no" 1>&6
|
---|
1240 | MINIX=
|
---|
1241 | fi
|
---|
1242 |
|
---|
1243 | if test "$MINIX" = yes; then
|
---|
1244 | cat >> confdefs.h <<\EOF
|
---|
1245 | #define _POSIX_SOURCE 1
|
---|
1246 | EOF
|
---|
1247 |
|
---|
1248 | cat >> confdefs.h <<\EOF
|
---|
1249 | #define _POSIX_1_SOURCE 2
|
---|
1250 | EOF
|
---|
1251 |
|
---|
1252 | cat >> confdefs.h <<\EOF
|
---|
1253 | #define _MINIX 1
|
---|
1254 | EOF
|
---|
1255 |
|
---|
1256 | fi
|
---|
1257 |
|
---|
1258 | fp_C_PROTOTYPES
|
---|
1259 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
1260 | echo "configure:1261: checking for working const" >&5
|
---|
1261 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
1262 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1263 | else
|
---|
1264 | cat > conftest.$ac_ext <<EOF
|
---|
1265 | #line 1266 "configure"
|
---|
1266 | #include "confdefs.h"
|
---|
1267 |
|
---|
1268 | int main() {
|
---|
1269 |
|
---|
1270 | /* Ultrix mips cc rejects this. */
|
---|
1271 | typedef int charset[2]; const charset x;
|
---|
1272 | /* SunOS 4.1.1 cc rejects this. */
|
---|
1273 | char const *const *ccp;
|
---|
1274 | char **p;
|
---|
1275 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
1276 | struct point {int x, y;};
|
---|
1277 | static struct point const zero = {0,0};
|
---|
1278 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
1279 | It does not let you subtract one const X* pointer from another in an arm
|
---|
1280 | of an if-expression whose if-part is not a constant expression */
|
---|
1281 | const char *g = "string";
|
---|
1282 | ccp = &g + (g ? g-g : 0);
|
---|
1283 | /* HPUX 7.0 cc rejects these. */
|
---|
1284 | ++ccp;
|
---|
1285 | p = (char**) ccp;
|
---|
1286 | ccp = (char const *const *) p;
|
---|
1287 | { /* SCO 3.2v4 cc rejects this. */
|
---|
1288 | char *t;
|
---|
1289 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
1290 |
|
---|
1291 | *t++ = 0;
|
---|
1292 | }
|
---|
1293 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
1294 | int x[] = {25, 17};
|
---|
1295 | const int *foo = &x[0];
|
---|
1296 | ++foo;
|
---|
1297 | }
|
---|
1298 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
1299 | typedef const int *iptr;
|
---|
1300 | iptr p = 0;
|
---|
1301 | ++p;
|
---|
1302 | }
|
---|
1303 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
1304 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
1305 | struct s { int j; const int *ap[3]; };
|
---|
1306 | struct s *b; b->j = 5;
|
---|
1307 | }
|
---|
1308 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
1309 | const int foo = 10;
|
---|
1310 | }
|
---|
1311 |
|
---|
1312 | ; return 0; }
|
---|
1313 | EOF
|
---|
1314 | if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1315 | rm -rf conftest*
|
---|
1316 | ac_cv_c_const=yes
|
---|
1317 | else
|
---|
1318 | echo "configure: failed program was:" >&5
|
---|
1319 | cat conftest.$ac_ext >&5
|
---|
1320 | rm -rf conftest*
|
---|
1321 | ac_cv_c_const=no
|
---|
1322 | fi
|
---|
1323 | rm -f conftest*
|
---|
1324 | fi
|
---|
1325 |
|
---|
1326 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
1327 | if test $ac_cv_c_const = no; then
|
---|
1328 | cat >> confdefs.h <<\EOF
|
---|
1329 | #define const
|
---|
1330 | EOF
|
---|
1331 |
|
---|
1332 | fi
|
---|
1333 |
|
---|
1334 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1335 | echo "configure:1336: checking for ANSI C header files" >&5
|
---|
1336 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1337 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1338 | else
|
---|
1339 | cat > conftest.$ac_ext <<EOF
|
---|
1340 | #line 1341 "configure"
|
---|
1341 | #include "confdefs.h"
|
---|
1342 | #include <stdlib.h>
|
---|
1343 | #include <stdarg.h>
|
---|
1344 | #include <string.h>
|
---|
1345 | #include <float.h>
|
---|
1346 | EOF
|
---|
1347 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1348 | { (eval echo configure:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1349 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1350 | if test -z "$ac_err"; then
|
---|
1351 | rm -rf conftest*
|
---|
1352 | ac_cv_header_stdc=yes
|
---|
1353 | else
|
---|
1354 | echo "$ac_err" >&5
|
---|
1355 | echo "configure: failed program was:" >&5
|
---|
1356 | cat conftest.$ac_ext >&5
|
---|
1357 | rm -rf conftest*
|
---|
1358 | ac_cv_header_stdc=no
|
---|
1359 | fi
|
---|
1360 | rm -f conftest*
|
---|
1361 |
|
---|
1362 | if test $ac_cv_header_stdc = yes; then
|
---|
1363 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1364 | cat > conftest.$ac_ext <<EOF
|
---|
1365 | #line 1366 "configure"
|
---|
1366 | #include "confdefs.h"
|
---|
1367 | #include <string.h>
|
---|
1368 | EOF
|
---|
1369 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1370 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1371 | :
|
---|
1372 | else
|
---|
1373 | rm -rf conftest*
|
---|
1374 | ac_cv_header_stdc=no
|
---|
1375 | fi
|
---|
1376 | rm -f conftest*
|
---|
1377 |
|
---|
1378 | fi
|
---|
1379 |
|
---|
1380 | if test $ac_cv_header_stdc = yes; then
|
---|
1381 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1382 | cat > conftest.$ac_ext <<EOF
|
---|
1383 | #line 1384 "configure"
|
---|
1384 | #include "confdefs.h"
|
---|
1385 | #include <stdlib.h>
|
---|
1386 | EOF
|
---|
1387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1388 | egrep "free" >/dev/null 2>&1; then
|
---|
1389 | :
|
---|
1390 | else
|
---|
1391 | rm -rf conftest*
|
---|
1392 | ac_cv_header_stdc=no
|
---|
1393 | fi
|
---|
1394 | rm -f conftest*
|
---|
1395 |
|
---|
1396 | fi
|
---|
1397 |
|
---|
1398 | if test $ac_cv_header_stdc = yes; then
|
---|
1399 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1400 | if test "$cross_compiling" = yes; then
|
---|
1401 | :
|
---|
1402 | else
|
---|
1403 | cat > conftest.$ac_ext <<EOF
|
---|
1404 | #line 1405 "configure"
|
---|
1405 | #include "confdefs.h"
|
---|
1406 | #include <ctype.h>
|
---|
1407 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1408 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1409 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1410 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1411 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1412 | exit (0); }
|
---|
1413 |
|
---|
1414 | EOF
|
---|
1415 | if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1416 | then
|
---|
1417 | :
|
---|
1418 | else
|
---|
1419 | echo "configure: failed program was:" >&5
|
---|
1420 | cat conftest.$ac_ext >&5
|
---|
1421 | rm -fr conftest*
|
---|
1422 | ac_cv_header_stdc=no
|
---|
1423 | fi
|
---|
1424 | rm -fr conftest*
|
---|
1425 | fi
|
---|
1426 |
|
---|
1427 | fi
|
---|
1428 | fi
|
---|
1429 |
|
---|
1430 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1431 | if test $ac_cv_header_stdc = yes; then
|
---|
1432 | cat >> confdefs.h <<\EOF
|
---|
1433 | #define STDC_HEADERS 1
|
---|
1434 | EOF
|
---|
1435 |
|
---|
1436 | fi
|
---|
1437 |
|
---|
1438 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
1439 | echo "configure:1440: checking for off_t" >&5
|
---|
1440 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
1441 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1442 | else
|
---|
1443 | cat > conftest.$ac_ext <<EOF
|
---|
1444 | #line 1445 "configure"
|
---|
1445 | #include "confdefs.h"
|
---|
1446 | #include <sys/types.h>
|
---|
1447 | #if STDC_HEADERS
|
---|
1448 | #include <stdlib.h>
|
---|
1449 | #include <stddef.h>
|
---|
1450 | #endif
|
---|
1451 | EOF
|
---|
1452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1453 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1454 | rm -rf conftest*
|
---|
1455 | ac_cv_type_off_t=yes
|
---|
1456 | else
|
---|
1457 | rm -rf conftest*
|
---|
1458 | ac_cv_type_off_t=no
|
---|
1459 | fi
|
---|
1460 | rm -f conftest*
|
---|
1461 |
|
---|
1462 | fi
|
---|
1463 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
1464 | if test $ac_cv_type_off_t = no; then
|
---|
1465 | cat >> confdefs.h <<\EOF
|
---|
1466 | #define off_t long
|
---|
1467 | EOF
|
---|
1468 |
|
---|
1469 | fi
|
---|
1470 |
|
---|
1471 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
1472 | echo "configure:1473: checking for size_t" >&5
|
---|
1473 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
1474 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1475 | else
|
---|
1476 | cat > conftest.$ac_ext <<EOF
|
---|
1477 | #line 1478 "configure"
|
---|
1478 | #include "confdefs.h"
|
---|
1479 | #include <sys/types.h>
|
---|
1480 | #if STDC_HEADERS
|
---|
1481 | #include <stdlib.h>
|
---|
1482 | #include <stddef.h>
|
---|
1483 | #endif
|
---|
1484 | EOF
|
---|
1485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1486 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1487 | rm -rf conftest*
|
---|
1488 | ac_cv_type_size_t=yes
|
---|
1489 | else
|
---|
1490 | rm -rf conftest*
|
---|
1491 | ac_cv_type_size_t=no
|
---|
1492 | fi
|
---|
1493 | rm -f conftest*
|
---|
1494 |
|
---|
1495 | fi
|
---|
1496 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
1497 | if test $ac_cv_type_size_t = no; then
|
---|
1498 | cat >> confdefs.h <<\EOF
|
---|
1499 | #define size_t unsigned
|
---|
1500 | EOF
|
---|
1501 |
|
---|
1502 | fi
|
---|
1503 |
|
---|
1504 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
1505 | echo "configure:1506: checking whether time.h and sys/time.h may both be included" >&5
|
---|
1506 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
1507 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1508 | else
|
---|
1509 | cat > conftest.$ac_ext <<EOF
|
---|
1510 | #line 1511 "configure"
|
---|
1511 | #include "confdefs.h"
|
---|
1512 | #include <sys/types.h>
|
---|
1513 | #include <sys/time.h>
|
---|
1514 | #include <time.h>
|
---|
1515 | int main() {
|
---|
1516 | struct tm *tp;
|
---|
1517 | ; return 0; }
|
---|
1518 | EOF
|
---|
1519 | if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1520 | rm -rf conftest*
|
---|
1521 | ac_cv_header_time=yes
|
---|
1522 | else
|
---|
1523 | echo "configure: failed program was:" >&5
|
---|
1524 | cat conftest.$ac_ext >&5
|
---|
1525 | rm -rf conftest*
|
---|
1526 | ac_cv_header_time=no
|
---|
1527 | fi
|
---|
1528 | rm -f conftest*
|
---|
1529 | fi
|
---|
1530 |
|
---|
1531 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
1532 | if test $ac_cv_header_time = yes; then
|
---|
1533 | cat >> confdefs.h <<\EOF
|
---|
1534 | #define TIME_WITH_SYS_TIME 1
|
---|
1535 | EOF
|
---|
1536 |
|
---|
1537 | fi
|
---|
1538 |
|
---|
1539 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
---|
1540 | echo "configure:1541: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
1541 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
---|
1542 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1543 | else
|
---|
1544 | cat > conftest.$ac_ext <<EOF
|
---|
1545 | #line 1546 "configure"
|
---|
1546 | #include "confdefs.h"
|
---|
1547 | #include <sys/types.h>
|
---|
1548 | #include <time.h>
|
---|
1549 | int main() {
|
---|
1550 | struct tm *tp; tp->tm_sec;
|
---|
1551 | ; return 0; }
|
---|
1552 | EOF
|
---|
1553 | if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1554 | rm -rf conftest*
|
---|
1555 | ac_cv_struct_tm=time.h
|
---|
1556 | else
|
---|
1557 | echo "configure: failed program was:" >&5
|
---|
1558 | cat conftest.$ac_ext >&5
|
---|
1559 | rm -rf conftest*
|
---|
1560 | ac_cv_struct_tm=sys/time.h
|
---|
1561 | fi
|
---|
1562 | rm -f conftest*
|
---|
1563 | fi
|
---|
1564 |
|
---|
1565 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
---|
1566 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
1567 | cat >> confdefs.h <<\EOF
|
---|
1568 | #define TM_IN_SYS_TIME 1
|
---|
1569 | EOF
|
---|
1570 |
|
---|
1571 | fi
|
---|
1572 |
|
---|
1573 |
|
---|
1574 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
1575 | cat > conftest.$ac_ext <<EOF
|
---|
1576 | #line 1577 "configure"
|
---|
1577 | #include "confdefs.h"
|
---|
1578 | #include <stdio.h>
|
---|
1579 |
|
---|
1580 | int main() {
|
---|
1581 | FILE *rubbish = popen("yes", "r");
|
---|
1582 | ; return 0; }
|
---|
1583 | EOF
|
---|
1584 | if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1585 | :
|
---|
1586 | else
|
---|
1587 | echo "configure: failed program was:" >&5
|
---|
1588 | cat conftest.$ac_ext >&5
|
---|
1589 | rm -rf conftest*
|
---|
1590 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
1591 | fi
|
---|
1592 | rm -f conftest*
|
---|
1593 | fi
|
---|
1594 |
|
---|
1595 |
|
---|
1596 | echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
|
---|
1597 | echo "configure:1598: checking for main in -lg" >&5
|
---|
1598 | ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
|
---|
1599 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1600 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1601 | else
|
---|
1602 | ac_save_LIBS="$LIBS"
|
---|
1603 | LIBS="-lg $LIBS"
|
---|
1604 | cat > conftest.$ac_ext <<EOF
|
---|
1605 | #line 1606 "configure"
|
---|
1606 | #include "confdefs.h"
|
---|
1607 |
|
---|
1608 | int main() {
|
---|
1609 | main()
|
---|
1610 | ; return 0; }
|
---|
1611 | EOF
|
---|
1612 | if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1613 | rm -rf conftest*
|
---|
1614 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1615 | else
|
---|
1616 | echo "configure: failed program was:" >&5
|
---|
1617 | cat conftest.$ac_ext >&5
|
---|
1618 | rm -rf conftest*
|
---|
1619 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1620 | fi
|
---|
1621 | rm -f conftest*
|
---|
1622 | LIBS="$ac_save_LIBS"
|
---|
1623 |
|
---|
1624 | fi
|
---|
1625 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1626 | echo "$ac_t""yes" 1>&6
|
---|
1627 | ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1628 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1629 | cat >> confdefs.h <<EOF
|
---|
1630 | #define $ac_tr_lib 1
|
---|
1631 | EOF
|
---|
1632 |
|
---|
1633 | LIBS="-lg $LIBS"
|
---|
1634 |
|
---|
1635 | else
|
---|
1636 | echo "$ac_t""no" 1>&6
|
---|
1637 | fi
|
---|
1638 |
|
---|
1639 | echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
|
---|
1640 | echo "configure:1641: checking for main in -lgdbm" >&5
|
---|
1641 | ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
|
---|
1642 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1643 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1644 | else
|
---|
1645 | ac_save_LIBS="$LIBS"
|
---|
1646 | LIBS="-lgdbm $LIBS"
|
---|
1647 | cat > conftest.$ac_ext <<EOF
|
---|
1648 | #line 1649 "configure"
|
---|
1649 | #include "confdefs.h"
|
---|
1650 |
|
---|
1651 | int main() {
|
---|
1652 | main()
|
---|
1653 | ; return 0; }
|
---|
1654 | EOF
|
---|
1655 | if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1656 | rm -rf conftest*
|
---|
1657 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1658 | else
|
---|
1659 | echo "configure: failed program was:" >&5
|
---|
1660 | cat conftest.$ac_ext >&5
|
---|
1661 | rm -rf conftest*
|
---|
1662 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1663 | fi
|
---|
1664 | rm -f conftest*
|
---|
1665 | LIBS="$ac_save_LIBS"
|
---|
1666 |
|
---|
1667 | fi
|
---|
1668 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1669 | echo "$ac_t""yes" 1>&6
|
---|
1670 | ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1671 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1672 | cat >> confdefs.h <<EOF
|
---|
1673 | #define $ac_tr_lib 1
|
---|
1674 | EOF
|
---|
1675 |
|
---|
1676 | LIBS="-lgdbm $LIBS"
|
---|
1677 |
|
---|
1678 | else
|
---|
1679 | echo "$ac_t""no" 1>&6
|
---|
1680 | fi
|
---|
1681 |
|
---|
1682 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
---|
1683 | echo "configure:1684: checking for main in -lm" >&5
|
---|
1684 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
---|
1685 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1686 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1687 | else
|
---|
1688 | ac_save_LIBS="$LIBS"
|
---|
1689 | LIBS="-lm $LIBS"
|
---|
1690 | cat > conftest.$ac_ext <<EOF
|
---|
1691 | #line 1692 "configure"
|
---|
1692 | #include "confdefs.h"
|
---|
1693 |
|
---|
1694 | int main() {
|
---|
1695 | main()
|
---|
1696 | ; return 0; }
|
---|
1697 | EOF
|
---|
1698 | if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1699 | rm -rf conftest*
|
---|
1700 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1701 | else
|
---|
1702 | echo "configure: failed program was:" >&5
|
---|
1703 | cat conftest.$ac_ext >&5
|
---|
1704 | rm -rf conftest*
|
---|
1705 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1706 | fi
|
---|
1707 | rm -f conftest*
|
---|
1708 | LIBS="$ac_save_LIBS"
|
---|
1709 |
|
---|
1710 | fi
|
---|
1711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1712 | echo "$ac_t""yes" 1>&6
|
---|
1713 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1714 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1715 | cat >> confdefs.h <<EOF
|
---|
1716 | #define $ac_tr_lib 1
|
---|
1717 | EOF
|
---|
1718 |
|
---|
1719 | LIBS="-lm $LIBS"
|
---|
1720 |
|
---|
1721 | else
|
---|
1722 | echo "$ac_t""no" 1>&6
|
---|
1723 | fi
|
---|
1724 |
|
---|
1725 | echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&6
|
---|
1726 | echo "configure:1727: checking for main in -lstdc" >&5
|
---|
1727 | ac_lib_var=`echo stdc'_'main | sed 'y%./+-%__p_%'`
|
---|
1728 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1729 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1730 | else
|
---|
1731 | ac_save_LIBS="$LIBS"
|
---|
1732 | LIBS="-lstdc $LIBS"
|
---|
1733 | cat > conftest.$ac_ext <<EOF
|
---|
1734 | #line 1735 "configure"
|
---|
1735 | #include "confdefs.h"
|
---|
1736 |
|
---|
1737 | int main() {
|
---|
1738 | main()
|
---|
1739 | ; return 0; }
|
---|
1740 | EOF
|
---|
1741 | if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1742 | rm -rf conftest*
|
---|
1743 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1744 | else
|
---|
1745 | echo "configure: failed program was:" >&5
|
---|
1746 | cat conftest.$ac_ext >&5
|
---|
1747 | rm -rf conftest*
|
---|
1748 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1749 | fi
|
---|
1750 | rm -f conftest*
|
---|
1751 | LIBS="$ac_save_LIBS"
|
---|
1752 |
|
---|
1753 | fi
|
---|
1754 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1755 | echo "$ac_t""yes" 1>&6
|
---|
1756 | ac_tr_lib=HAVE_LIB`echo stdc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1757 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1758 | cat >> confdefs.h <<EOF
|
---|
1759 | #define $ac_tr_lib 1
|
---|
1760 | EOF
|
---|
1761 |
|
---|
1762 | LIBS="-lstdc $LIBS"
|
---|
1763 |
|
---|
1764 | else
|
---|
1765 | echo "$ac_t""no" 1>&6
|
---|
1766 | fi
|
---|
1767 |
|
---|
1768 |
|
---|
1769 | ac_header_dirent=no
|
---|
1770 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
1771 | do
|
---|
1772 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
1773 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
1774 | echo "configure:1775: checking for $ac_hdr that defines DIR" >&5
|
---|
1775 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
1776 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1777 | else
|
---|
1778 | cat > conftest.$ac_ext <<EOF
|
---|
1779 | #line 1780 "configure"
|
---|
1780 | #include "confdefs.h"
|
---|
1781 | #include <sys/types.h>
|
---|
1782 | #include <$ac_hdr>
|
---|
1783 | int main() {
|
---|
1784 | DIR *dirp = 0;
|
---|
1785 | ; return 0; }
|
---|
1786 | EOF
|
---|
1787 | if { (eval echo configure:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1788 | rm -rf conftest*
|
---|
1789 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
1790 | else
|
---|
1791 | echo "configure: failed program was:" >&5
|
---|
1792 | cat conftest.$ac_ext >&5
|
---|
1793 | rm -rf conftest*
|
---|
1794 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
1795 | fi
|
---|
1796 | rm -f conftest*
|
---|
1797 | fi
|
---|
1798 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
1799 | echo "$ac_t""yes" 1>&6
|
---|
1800 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
1801 | cat >> confdefs.h <<EOF
|
---|
1802 | #define $ac_tr_hdr 1
|
---|
1803 | EOF
|
---|
1804 | ac_header_dirent=$ac_hdr; break
|
---|
1805 | else
|
---|
1806 | echo "$ac_t""no" 1>&6
|
---|
1807 | fi
|
---|
1808 | done
|
---|
1809 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
1810 | if test $ac_header_dirent = dirent.h; then
|
---|
1811 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
1812 | echo "configure:1813: checking for opendir in -ldir" >&5
|
---|
1813 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
1814 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1815 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1816 | else
|
---|
1817 | ac_save_LIBS="$LIBS"
|
---|
1818 | LIBS="-ldir $LIBS"
|
---|
1819 | cat > conftest.$ac_ext <<EOF
|
---|
1820 | #line 1821 "configure"
|
---|
1821 | #include "confdefs.h"
|
---|
1822 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1823 | /* We use char because int might match the return type of a gcc2
|
---|
1824 | builtin and then its argument prototype would still apply. */
|
---|
1825 | char opendir();
|
---|
1826 |
|
---|
1827 | int main() {
|
---|
1828 | opendir()
|
---|
1829 | ; return 0; }
|
---|
1830 | EOF
|
---|
1831 | if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1832 | rm -rf conftest*
|
---|
1833 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1834 | else
|
---|
1835 | echo "configure: failed program was:" >&5
|
---|
1836 | cat conftest.$ac_ext >&5
|
---|
1837 | rm -rf conftest*
|
---|
1838 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1839 | fi
|
---|
1840 | rm -f conftest*
|
---|
1841 | LIBS="$ac_save_LIBS"
|
---|
1842 |
|
---|
1843 | fi
|
---|
1844 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1845 | echo "$ac_t""yes" 1>&6
|
---|
1846 | LIBS="$LIBS -ldir"
|
---|
1847 | else
|
---|
1848 | echo "$ac_t""no" 1>&6
|
---|
1849 | fi
|
---|
1850 |
|
---|
1851 | else
|
---|
1852 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
1853 | echo "configure:1854: checking for opendir in -lx" >&5
|
---|
1854 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
1855 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1856 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1857 | else
|
---|
1858 | ac_save_LIBS="$LIBS"
|
---|
1859 | LIBS="-lx $LIBS"
|
---|
1860 | cat > conftest.$ac_ext <<EOF
|
---|
1861 | #line 1862 "configure"
|
---|
1862 | #include "confdefs.h"
|
---|
1863 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1864 | /* We use char because int might match the return type of a gcc2
|
---|
1865 | builtin and then its argument prototype would still apply. */
|
---|
1866 | char opendir();
|
---|
1867 |
|
---|
1868 | int main() {
|
---|
1869 | opendir()
|
---|
1870 | ; return 0; }
|
---|
1871 | EOF
|
---|
1872 | if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1873 | rm -rf conftest*
|
---|
1874 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1875 | else
|
---|
1876 | echo "configure: failed program was:" >&5
|
---|
1877 | cat conftest.$ac_ext >&5
|
---|
1878 | rm -rf conftest*
|
---|
1879 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1880 | fi
|
---|
1881 | rm -f conftest*
|
---|
1882 | LIBS="$ac_save_LIBS"
|
---|
1883 |
|
---|
1884 | fi
|
---|
1885 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1886 | echo "$ac_t""yes" 1>&6
|
---|
1887 | LIBS="$LIBS -lx"
|
---|
1888 | else
|
---|
1889 | echo "$ac_t""no" 1>&6
|
---|
1890 | fi
|
---|
1891 |
|
---|
1892 | fi
|
---|
1893 |
|
---|
1894 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1895 | echo "configure:1896: checking for ANSI C header files" >&5
|
---|
1896 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1897 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1898 | else
|
---|
1899 | cat > conftest.$ac_ext <<EOF
|
---|
1900 | #line 1901 "configure"
|
---|
1901 | #include "confdefs.h"
|
---|
1902 | #include <stdlib.h>
|
---|
1903 | #include <stdarg.h>
|
---|
1904 | #include <string.h>
|
---|
1905 | #include <float.h>
|
---|
1906 | EOF
|
---|
1907 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1908 | { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1909 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1910 | if test -z "$ac_err"; then
|
---|
1911 | rm -rf conftest*
|
---|
1912 | ac_cv_header_stdc=yes
|
---|
1913 | else
|
---|
1914 | echo "$ac_err" >&5
|
---|
1915 | echo "configure: failed program was:" >&5
|
---|
1916 | cat conftest.$ac_ext >&5
|
---|
1917 | rm -rf conftest*
|
---|
1918 | ac_cv_header_stdc=no
|
---|
1919 | fi
|
---|
1920 | rm -f conftest*
|
---|
1921 |
|
---|
1922 | if test $ac_cv_header_stdc = yes; then
|
---|
1923 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1924 | cat > conftest.$ac_ext <<EOF
|
---|
1925 | #line 1926 "configure"
|
---|
1926 | #include "confdefs.h"
|
---|
1927 | #include <string.h>
|
---|
1928 | EOF
|
---|
1929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1930 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1931 | :
|
---|
1932 | else
|
---|
1933 | rm -rf conftest*
|
---|
1934 | ac_cv_header_stdc=no
|
---|
1935 | fi
|
---|
1936 | rm -f conftest*
|
---|
1937 |
|
---|
1938 | fi
|
---|
1939 |
|
---|
1940 | if test $ac_cv_header_stdc = yes; then
|
---|
1941 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1942 | cat > conftest.$ac_ext <<EOF
|
---|
1943 | #line 1944 "configure"
|
---|
1944 | #include "confdefs.h"
|
---|
1945 | #include <stdlib.h>
|
---|
1946 | EOF
|
---|
1947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1948 | egrep "free" >/dev/null 2>&1; then
|
---|
1949 | :
|
---|
1950 | else
|
---|
1951 | rm -rf conftest*
|
---|
1952 | ac_cv_header_stdc=no
|
---|
1953 | fi
|
---|
1954 | rm -f conftest*
|
---|
1955 |
|
---|
1956 | fi
|
---|
1957 |
|
---|
1958 | if test $ac_cv_header_stdc = yes; then
|
---|
1959 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1960 | if test "$cross_compiling" = yes; then
|
---|
1961 | :
|
---|
1962 | else
|
---|
1963 | cat > conftest.$ac_ext <<EOF
|
---|
1964 | #line 1965 "configure"
|
---|
1965 | #include "confdefs.h"
|
---|
1966 | #include <ctype.h>
|
---|
1967 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1968 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1969 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1970 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1971 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1972 | exit (0); }
|
---|
1973 |
|
---|
1974 | EOF
|
---|
1975 | if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1976 | then
|
---|
1977 | :
|
---|
1978 | else
|
---|
1979 | echo "configure: failed program was:" >&5
|
---|
1980 | cat conftest.$ac_ext >&5
|
---|
1981 | rm -fr conftest*
|
---|
1982 | ac_cv_header_stdc=no
|
---|
1983 | fi
|
---|
1984 | rm -fr conftest*
|
---|
1985 | fi
|
---|
1986 |
|
---|
1987 | fi
|
---|
1988 | fi
|
---|
1989 |
|
---|
1990 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1991 | if test $ac_cv_header_stdc = yes; then
|
---|
1992 | cat >> confdefs.h <<\EOF
|
---|
1993 | #define STDC_HEADERS 1
|
---|
1994 | EOF
|
---|
1995 |
|
---|
1996 | fi
|
---|
1997 |
|
---|
1998 | for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
1999 | do
|
---|
2000 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
2001 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
2002 | echo "configure:2003: checking for $ac_hdr" >&5
|
---|
2003 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
2004 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2005 | else
|
---|
2006 | cat > conftest.$ac_ext <<EOF
|
---|
2007 | #line 2008 "configure"
|
---|
2008 | #include "confdefs.h"
|
---|
2009 | #include <$ac_hdr>
|
---|
2010 | EOF
|
---|
2011 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2012 | { (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2013 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2014 | if test -z "$ac_err"; then
|
---|
2015 | rm -rf conftest*
|
---|
2016 | eval "ac_cv_header_$ac_safe=yes"
|
---|
2017 | else
|
---|
2018 | echo "$ac_err" >&5
|
---|
2019 | echo "configure: failed program was:" >&5
|
---|
2020 | cat conftest.$ac_ext >&5
|
---|
2021 | rm -rf conftest*
|
---|
2022 | eval "ac_cv_header_$ac_safe=no"
|
---|
2023 | fi
|
---|
2024 | rm -f conftest*
|
---|
2025 | fi
|
---|
2026 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
2027 | echo "$ac_t""yes" 1>&6
|
---|
2028 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
2029 | cat >> confdefs.h <<EOF
|
---|
2030 | #define $ac_tr_hdr 1
|
---|
2031 | EOF
|
---|
2032 |
|
---|
2033 | else
|
---|
2034 | echo "$ac_t""no" 1>&6
|
---|
2035 | fi
|
---|
2036 | done
|
---|
2037 |
|
---|
2038 | cat > conftest.$ac_ext <<EOF
|
---|
2039 | #line 2040 "configure"
|
---|
2040 | #include "confdefs.h"
|
---|
2041 | #include <stdio.h>
|
---|
2042 | EOF
|
---|
2043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2044 | egrep "fread" >/dev/null 2>&1; then
|
---|
2045 | rm -rf conftest*
|
---|
2046 | cat >> confdefs.h <<\EOF
|
---|
2047 | #define HAVE_FREAD_DECL 1
|
---|
2048 | EOF
|
---|
2049 |
|
---|
2050 | fi
|
---|
2051 | rm -f conftest*
|
---|
2052 |
|
---|
2053 | cat > conftest.$ac_ext <<EOF
|
---|
2054 | #line 2055 "configure"
|
---|
2055 | #include "confdefs.h"
|
---|
2056 | #include <stdio.h>
|
---|
2057 | EOF
|
---|
2058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2059 | egrep "fgetc" >/dev/null 2>&1; then
|
---|
2060 | rm -rf conftest*
|
---|
2061 | cat >> confdefs.h <<\EOF
|
---|
2062 | #define HAVE_FGETC_DECL 1
|
---|
2063 | EOF
|
---|
2064 |
|
---|
2065 | fi
|
---|
2066 | rm -f conftest*
|
---|
2067 |
|
---|
2068 | cat > conftest.$ac_ext <<EOF
|
---|
2069 | #line 2070 "configure"
|
---|
2070 | #include "confdefs.h"
|
---|
2071 | #include <sys/procfs.h>
|
---|
2072 | EOF
|
---|
2073 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2074 | egrep "pr_brksize" >/dev/null 2>&1; then
|
---|
2075 | rm -rf conftest*
|
---|
2076 | cat >> confdefs.h <<\EOF
|
---|
2077 | #define HAVE_PR_BRKSIZE 1
|
---|
2078 | EOF
|
---|
2079 |
|
---|
2080 | fi
|
---|
2081 | rm -f conftest*
|
---|
2082 |
|
---|
2083 |
|
---|
2084 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
2085 | # for constant arguments. Useless!
|
---|
2086 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
2087 | echo "configure:2088: checking for working alloca.h" >&5
|
---|
2088 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
2089 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2090 | else
|
---|
2091 | cat > conftest.$ac_ext <<EOF
|
---|
2092 | #line 2093 "configure"
|
---|
2093 | #include "confdefs.h"
|
---|
2094 | #include <alloca.h>
|
---|
2095 | int main() {
|
---|
2096 | char *p = alloca(2 * sizeof(int));
|
---|
2097 | ; return 0; }
|
---|
2098 | EOF
|
---|
2099 | if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2100 | rm -rf conftest*
|
---|
2101 | ac_cv_header_alloca_h=yes
|
---|
2102 | else
|
---|
2103 | echo "configure: failed program was:" >&5
|
---|
2104 | cat conftest.$ac_ext >&5
|
---|
2105 | rm -rf conftest*
|
---|
2106 | ac_cv_header_alloca_h=no
|
---|
2107 | fi
|
---|
2108 | rm -f conftest*
|
---|
2109 | fi
|
---|
2110 |
|
---|
2111 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
2112 | if test $ac_cv_header_alloca_h = yes; then
|
---|
2113 | cat >> confdefs.h <<\EOF
|
---|
2114 | #define HAVE_ALLOCA_H 1
|
---|
2115 | EOF
|
---|
2116 |
|
---|
2117 | fi
|
---|
2118 |
|
---|
2119 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
2120 | echo "configure:2121: checking for alloca" >&5
|
---|
2121 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
2122 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2123 | else
|
---|
2124 | cat > conftest.$ac_ext <<EOF
|
---|
2125 | #line 2126 "configure"
|
---|
2126 | #include "confdefs.h"
|
---|
2127 |
|
---|
2128 | #ifdef __GNUC__
|
---|
2129 | # define alloca __builtin_alloca
|
---|
2130 | #else
|
---|
2131 | # ifdef _MSC_VER
|
---|
2132 | # include <malloc.h>
|
---|
2133 | # define alloca _alloca
|
---|
2134 | # else
|
---|
2135 | # if HAVE_ALLOCA_H
|
---|
2136 | # include <alloca.h>
|
---|
2137 | # else
|
---|
2138 | # ifdef _AIX
|
---|
2139 | #pragma alloca
|
---|
2140 | # else
|
---|
2141 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
2142 | char *alloca ();
|
---|
2143 | # endif
|
---|
2144 | # endif
|
---|
2145 | # endif
|
---|
2146 | # endif
|
---|
2147 | #endif
|
---|
2148 |
|
---|
2149 | int main() {
|
---|
2150 | char *p = (char *) alloca(1);
|
---|
2151 | ; return 0; }
|
---|
2152 | EOF
|
---|
2153 | if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2154 | rm -rf conftest*
|
---|
2155 | ac_cv_func_alloca_works=yes
|
---|
2156 | else
|
---|
2157 | echo "configure: failed program was:" >&5
|
---|
2158 | cat conftest.$ac_ext >&5
|
---|
2159 | rm -rf conftest*
|
---|
2160 | ac_cv_func_alloca_works=no
|
---|
2161 | fi
|
---|
2162 | rm -f conftest*
|
---|
2163 | fi
|
---|
2164 |
|
---|
2165 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
2166 | if test $ac_cv_func_alloca_works = yes; then
|
---|
2167 | cat >> confdefs.h <<\EOF
|
---|
2168 | #define HAVE_ALLOCA 1
|
---|
2169 | EOF
|
---|
2170 |
|
---|
2171 | fi
|
---|
2172 |
|
---|
2173 | if test $ac_cv_func_alloca_works = no; then
|
---|
2174 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
2175 | # that cause trouble. Some versions do not even contain alloca or
|
---|
2176 | # contain a buggy version. If you still want to use their alloca,
|
---|
2177 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
2178 | ALLOCA=alloca.${ac_objext}
|
---|
2179 | cat >> confdefs.h <<\EOF
|
---|
2180 | #define C_ALLOCA 1
|
---|
2181 | EOF
|
---|
2182 |
|
---|
2183 |
|
---|
2184 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
2185 | echo "configure:2186: checking whether alloca needs Cray hooks" >&5
|
---|
2186 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
2187 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2188 | else
|
---|
2189 | cat > conftest.$ac_ext <<EOF
|
---|
2190 | #line 2191 "configure"
|
---|
2191 | #include "confdefs.h"
|
---|
2192 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
2193 | webecray
|
---|
2194 | #else
|
---|
2195 | wenotbecray
|
---|
2196 | #endif
|
---|
2197 |
|
---|
2198 | EOF
|
---|
2199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2200 | egrep "webecray" >/dev/null 2>&1; then
|
---|
2201 | rm -rf conftest*
|
---|
2202 | ac_cv_os_cray=yes
|
---|
2203 | else
|
---|
2204 | rm -rf conftest*
|
---|
2205 | ac_cv_os_cray=no
|
---|
2206 | fi
|
---|
2207 | rm -f conftest*
|
---|
2208 |
|
---|
2209 | fi
|
---|
2210 |
|
---|
2211 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
2212 | if test $ac_cv_os_cray = yes; then
|
---|
2213 | for ac_func in _getb67 GETB67 getb67; do
|
---|
2214 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2215 | echo "configure:2216: checking for $ac_func" >&5
|
---|
2216 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2217 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2218 | else
|
---|
2219 | cat > conftest.$ac_ext <<EOF
|
---|
2220 | #line 2221 "configure"
|
---|
2221 | #include "confdefs.h"
|
---|
2222 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2223 | which can conflict with char $ac_func(); below. */
|
---|
2224 | #include <assert.h>
|
---|
2225 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2226 | /* We use char because int might match the return type of a gcc2
|
---|
2227 | builtin and then its argument prototype would still apply. */
|
---|
2228 | char $ac_func();
|
---|
2229 |
|
---|
2230 | int main() {
|
---|
2231 |
|
---|
2232 | /* The GNU C library defines this for functions which it implements
|
---|
2233 | to always fail with ENOSYS. Some functions are actually named
|
---|
2234 | something starting with __ and the normal name is an alias. */
|
---|
2235 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2236 | choke me
|
---|
2237 | #else
|
---|
2238 | $ac_func();
|
---|
2239 | #endif
|
---|
2240 |
|
---|
2241 | ; return 0; }
|
---|
2242 | EOF
|
---|
2243 | if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2244 | rm -rf conftest*
|
---|
2245 | eval "ac_cv_func_$ac_func=yes"
|
---|
2246 | else
|
---|
2247 | echo "configure: failed program was:" >&5
|
---|
2248 | cat conftest.$ac_ext >&5
|
---|
2249 | rm -rf conftest*
|
---|
2250 | eval "ac_cv_func_$ac_func=no"
|
---|
2251 | fi
|
---|
2252 | rm -f conftest*
|
---|
2253 | fi
|
---|
2254 |
|
---|
2255 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2256 | echo "$ac_t""yes" 1>&6
|
---|
2257 | cat >> confdefs.h <<EOF
|
---|
2258 | #define CRAY_STACKSEG_END $ac_func
|
---|
2259 | EOF
|
---|
2260 |
|
---|
2261 | break
|
---|
2262 | else
|
---|
2263 | echo "$ac_t""no" 1>&6
|
---|
2264 | fi
|
---|
2265 |
|
---|
2266 | done
|
---|
2267 | fi
|
---|
2268 |
|
---|
2269 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
2270 | echo "configure:2271: checking stack direction for C alloca" >&5
|
---|
2271 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
2272 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2273 | else
|
---|
2274 | if test "$cross_compiling" = yes; then
|
---|
2275 | ac_cv_c_stack_direction=0
|
---|
2276 | else
|
---|
2277 | cat > conftest.$ac_ext <<EOF
|
---|
2278 | #line 2279 "configure"
|
---|
2279 | #include "confdefs.h"
|
---|
2280 | find_stack_direction ()
|
---|
2281 | {
|
---|
2282 | static char *addr = 0;
|
---|
2283 | auto char dummy;
|
---|
2284 | if (addr == 0)
|
---|
2285 | {
|
---|
2286 | addr = &dummy;
|
---|
2287 | return find_stack_direction ();
|
---|
2288 | }
|
---|
2289 | else
|
---|
2290 | return (&dummy > addr) ? 1 : -1;
|
---|
2291 | }
|
---|
2292 | main ()
|
---|
2293 | {
|
---|
2294 | exit (find_stack_direction() < 0);
|
---|
2295 | }
|
---|
2296 | EOF
|
---|
2297 | if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2298 | then
|
---|
2299 | ac_cv_c_stack_direction=1
|
---|
2300 | else
|
---|
2301 | echo "configure: failed program was:" >&5
|
---|
2302 | cat conftest.$ac_ext >&5
|
---|
2303 | rm -fr conftest*
|
---|
2304 | ac_cv_c_stack_direction=-1
|
---|
2305 | fi
|
---|
2306 | rm -fr conftest*
|
---|
2307 | fi
|
---|
2308 |
|
---|
2309 | fi
|
---|
2310 |
|
---|
2311 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
2312 | cat >> confdefs.h <<EOF
|
---|
2313 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
2314 | EOF
|
---|
2315 |
|
---|
2316 | fi
|
---|
2317 |
|
---|
2318 | if test $ac_cv_prog_gcc = yes; then
|
---|
2319 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
---|
2320 | echo "configure:2321: checking whether ${CC-cc} needs -traditional" >&5
|
---|
2321 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
---|
2322 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2323 | else
|
---|
2324 | ac_pattern="Autoconf.*'x'"
|
---|
2325 | cat > conftest.$ac_ext <<EOF
|
---|
2326 | #line 2327 "configure"
|
---|
2327 | #include "confdefs.h"
|
---|
2328 | #include <sgtty.h>
|
---|
2329 | Autoconf TIOCGETP
|
---|
2330 | EOF
|
---|
2331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2332 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
2333 | rm -rf conftest*
|
---|
2334 | ac_cv_prog_gcc_traditional=yes
|
---|
2335 | else
|
---|
2336 | rm -rf conftest*
|
---|
2337 | ac_cv_prog_gcc_traditional=no
|
---|
2338 | fi
|
---|
2339 | rm -f conftest*
|
---|
2340 |
|
---|
2341 |
|
---|
2342 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
2343 | cat > conftest.$ac_ext <<EOF
|
---|
2344 | #line 2345 "configure"
|
---|
2345 | #include "confdefs.h"
|
---|
2346 | #include <termio.h>
|
---|
2347 | Autoconf TCGETA
|
---|
2348 | EOF
|
---|
2349 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2350 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
2351 | rm -rf conftest*
|
---|
2352 | ac_cv_prog_gcc_traditional=yes
|
---|
2353 | fi
|
---|
2354 | rm -f conftest*
|
---|
2355 |
|
---|
2356 | fi
|
---|
2357 | fi
|
---|
2358 |
|
---|
2359 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
---|
2360 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
2361 | CC="$CC -traditional"
|
---|
2362 | fi
|
---|
2363 | fi
|
---|
2364 |
|
---|
2365 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
---|
2366 | echo "configure:2367: checking return type of signal handlers" >&5
|
---|
2367 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
---|
2368 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2369 | else
|
---|
2370 | cat > conftest.$ac_ext <<EOF
|
---|
2371 | #line 2372 "configure"
|
---|
2372 | #include "confdefs.h"
|
---|
2373 | #include <sys/types.h>
|
---|
2374 | #include <signal.h>
|
---|
2375 | #ifdef signal
|
---|
2376 | #undef signal
|
---|
2377 | #endif
|
---|
2378 | #ifdef __cplusplus
|
---|
2379 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
2380 | #else
|
---|
2381 | void (*signal ()) ();
|
---|
2382 | #endif
|
---|
2383 |
|
---|
2384 | int main() {
|
---|
2385 | int i;
|
---|
2386 | ; return 0; }
|
---|
2387 | EOF
|
---|
2388 | if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2389 | rm -rf conftest*
|
---|
2390 | ac_cv_type_signal=void
|
---|
2391 | else
|
---|
2392 | echo "configure: failed program was:" >&5
|
---|
2393 | cat conftest.$ac_ext >&5
|
---|
2394 | rm -rf conftest*
|
---|
2395 | ac_cv_type_signal=int
|
---|
2396 | fi
|
---|
2397 | rm -f conftest*
|
---|
2398 | fi
|
---|
2399 |
|
---|
2400 | echo "$ac_t""$ac_cv_type_signal" 1>&6
|
---|
2401 | cat >> confdefs.h <<EOF
|
---|
2402 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
2403 | EOF
|
---|
2404 |
|
---|
2405 |
|
---|
2406 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6
|
---|
2407 | echo "configure:2408: checking for vprintf" >&5
|
---|
2408 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
|
---|
2409 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2410 | else
|
---|
2411 | cat > conftest.$ac_ext <<EOF
|
---|
2412 | #line 2413 "configure"
|
---|
2413 | #include "confdefs.h"
|
---|
2414 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2415 | which can conflict with char vprintf(); below. */
|
---|
2416 | #include <assert.h>
|
---|
2417 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2418 | /* We use char because int might match the return type of a gcc2
|
---|
2419 | builtin and then its argument prototype would still apply. */
|
---|
2420 | char vprintf();
|
---|
2421 |
|
---|
2422 | int main() {
|
---|
2423 |
|
---|
2424 | /* The GNU C library defines this for functions which it implements
|
---|
2425 | to always fail with ENOSYS. Some functions are actually named
|
---|
2426 | something starting with __ and the normal name is an alias. */
|
---|
2427 | #if defined (__stub_vprintf) || defined (__stub___vprintf)
|
---|
2428 | choke me
|
---|
2429 | #else
|
---|
2430 | vprintf();
|
---|
2431 | #endif
|
---|
2432 |
|
---|
2433 | ; return 0; }
|
---|
2434 | EOF
|
---|
2435 | if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2436 | rm -rf conftest*
|
---|
2437 | eval "ac_cv_func_vprintf=yes"
|
---|
2438 | else
|
---|
2439 | echo "configure: failed program was:" >&5
|
---|
2440 | cat conftest.$ac_ext >&5
|
---|
2441 | rm -rf conftest*
|
---|
2442 | eval "ac_cv_func_vprintf=no"
|
---|
2443 | fi
|
---|
2444 | rm -f conftest*
|
---|
2445 | fi
|
---|
2446 |
|
---|
2447 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
|
---|
2448 | echo "$ac_t""yes" 1>&6
|
---|
2449 | cat >> confdefs.h <<\EOF
|
---|
2450 | #define HAVE_VPRINTF 1
|
---|
2451 | EOF
|
---|
2452 |
|
---|
2453 | else
|
---|
2454 | echo "$ac_t""no" 1>&6
|
---|
2455 | fi
|
---|
2456 |
|
---|
2457 | if test "$ac_cv_func_vprintf" != yes; then
|
---|
2458 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
|
---|
2459 | echo "configure:2460: checking for _doprnt" >&5
|
---|
2460 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
|
---|
2461 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2462 | else
|
---|
2463 | cat > conftest.$ac_ext <<EOF
|
---|
2464 | #line 2465 "configure"
|
---|
2465 | #include "confdefs.h"
|
---|
2466 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2467 | which can conflict with char _doprnt(); below. */
|
---|
2468 | #include <assert.h>
|
---|
2469 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2470 | /* We use char because int might match the return type of a gcc2
|
---|
2471 | builtin and then its argument prototype would still apply. */
|
---|
2472 | char _doprnt();
|
---|
2473 |
|
---|
2474 | int main() {
|
---|
2475 |
|
---|
2476 | /* The GNU C library defines this for functions which it implements
|
---|
2477 | to always fail with ENOSYS. Some functions are actually named
|
---|
2478 | something starting with __ and the normal name is an alias. */
|
---|
2479 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
2480 | choke me
|
---|
2481 | #else
|
---|
2482 | _doprnt();
|
---|
2483 | #endif
|
---|
2484 |
|
---|
2485 | ; return 0; }
|
---|
2486 | EOF
|
---|
2487 | if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2488 | rm -rf conftest*
|
---|
2489 | eval "ac_cv_func__doprnt=yes"
|
---|
2490 | else
|
---|
2491 | echo "configure: failed program was:" >&5
|
---|
2492 | cat conftest.$ac_ext >&5
|
---|
2493 | rm -rf conftest*
|
---|
2494 | eval "ac_cv_func__doprnt=no"
|
---|
2495 | fi
|
---|
2496 | rm -f conftest*
|
---|
2497 | fi
|
---|
2498 |
|
---|
2499 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
|
---|
2500 | echo "$ac_t""yes" 1>&6
|
---|
2501 | cat >> confdefs.h <<\EOF
|
---|
2502 | #define HAVE_DOPRNT 1
|
---|
2503 | EOF
|
---|
2504 |
|
---|
2505 | else
|
---|
2506 | echo "$ac_t""no" 1>&6
|
---|
2507 | fi
|
---|
2508 |
|
---|
2509 | fi
|
---|
2510 |
|
---|
2511 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
|
---|
2512 | do
|
---|
2513 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2514 | echo "configure:2515: checking for $ac_func" >&5
|
---|
2515 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2516 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2517 | else
|
---|
2518 | cat > conftest.$ac_ext <<EOF
|
---|
2519 | #line 2520 "configure"
|
---|
2520 | #include "confdefs.h"
|
---|
2521 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2522 | which can conflict with char $ac_func(); below. */
|
---|
2523 | #include <assert.h>
|
---|
2524 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2525 | /* We use char because int might match the return type of a gcc2
|
---|
2526 | builtin and then its argument prototype would still apply. */
|
---|
2527 | char $ac_func();
|
---|
2528 |
|
---|
2529 | int main() {
|
---|
2530 |
|
---|
2531 | /* The GNU C library defines this for functions which it implements
|
---|
2532 | to always fail with ENOSYS. Some functions are actually named
|
---|
2533 | something starting with __ and the normal name is an alias. */
|
---|
2534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2535 | choke me
|
---|
2536 | #else
|
---|
2537 | $ac_func();
|
---|
2538 | #endif
|
---|
2539 |
|
---|
2540 | ; return 0; }
|
---|
2541 | EOF
|
---|
2542 | if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2543 | rm -rf conftest*
|
---|
2544 | eval "ac_cv_func_$ac_func=yes"
|
---|
2545 | else
|
---|
2546 | echo "configure: failed program was:" >&5
|
---|
2547 | cat conftest.$ac_ext >&5
|
---|
2548 | rm -rf conftest*
|
---|
2549 | eval "ac_cv_func_$ac_func=no"
|
---|
2550 | fi
|
---|
2551 | rm -f conftest*
|
---|
2552 | fi
|
---|
2553 |
|
---|
2554 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2555 | echo "$ac_t""yes" 1>&6
|
---|
2556 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2557 | cat >> confdefs.h <<EOF
|
---|
2558 | #define $ac_tr_func 1
|
---|
2559 | EOF
|
---|
2560 |
|
---|
2561 | else
|
---|
2562 | echo "$ac_t""no" 1>&6
|
---|
2563 | fi
|
---|
2564 | done
|
---|
2565 |
|
---|
2566 | for ac_func in ftruncate strstr strcasecmp
|
---|
2567 | do
|
---|
2568 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2569 | echo "configure:2570: checking for $ac_func" >&5
|
---|
2570 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2571 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2572 | else
|
---|
2573 | cat > conftest.$ac_ext <<EOF
|
---|
2574 | #line 2575 "configure"
|
---|
2575 | #include "confdefs.h"
|
---|
2576 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2577 | which can conflict with char $ac_func(); below. */
|
---|
2578 | #include <assert.h>
|
---|
2579 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2580 | /* We use char because int might match the return type of a gcc2
|
---|
2581 | builtin and then its argument prototype would still apply. */
|
---|
2582 | char $ac_func();
|
---|
2583 |
|
---|
2584 | int main() {
|
---|
2585 |
|
---|
2586 | /* The GNU C library defines this for functions which it implements
|
---|
2587 | to always fail with ENOSYS. Some functions are actually named
|
---|
2588 | something starting with __ and the normal name is an alias. */
|
---|
2589 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2590 | choke me
|
---|
2591 | #else
|
---|
2592 | $ac_func();
|
---|
2593 | #endif
|
---|
2594 |
|
---|
2595 | ; return 0; }
|
---|
2596 | EOF
|
---|
2597 | if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2598 | rm -rf conftest*
|
---|
2599 | eval "ac_cv_func_$ac_func=yes"
|
---|
2600 | else
|
---|
2601 | echo "configure: failed program was:" >&5
|
---|
2602 | cat conftest.$ac_ext >&5
|
---|
2603 | rm -rf conftest*
|
---|
2604 | eval "ac_cv_func_$ac_func=no"
|
---|
2605 | fi
|
---|
2606 | rm -f conftest*
|
---|
2607 | fi
|
---|
2608 |
|
---|
2609 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2610 | echo "$ac_t""yes" 1>&6
|
---|
2611 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2612 | cat >> confdefs.h <<EOF
|
---|
2613 | #define $ac_tr_func 1
|
---|
2614 | EOF
|
---|
2615 |
|
---|
2616 | else
|
---|
2617 | echo "$ac_t""no" 1>&6
|
---|
2618 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
|
---|
2619 | fi
|
---|
2620 | done
|
---|
2621 |
|
---|
2622 |
|
---|
2623 |
|
---|
2624 |
|
---|
2625 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
2626 | # ---------------------------------------------------------------------------
|
---|
2627 | echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
|
---|
2628 | echo "configure:2629: checking for HP-UX needing gmalloc" >&5
|
---|
2629 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
2630 | echo "$ac_t""yes" 1>&6
|
---|
2631 | LIBOBJS="$LIBOBJS gmalloc.o"
|
---|
2632 | cat >> confdefs.h <<\EOF
|
---|
2633 | #define HAVE_VALLOC 1
|
---|
2634 | EOF
|
---|
2635 |
|
---|
2636 | else
|
---|
2637 | echo "$ac_t""no" 1>&6
|
---|
2638 | for ac_func in valloc
|
---|
2639 | do
|
---|
2640 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2641 | echo "configure:2642: checking for $ac_func" >&5
|
---|
2642 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2643 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2644 | else
|
---|
2645 | cat > conftest.$ac_ext <<EOF
|
---|
2646 | #line 2647 "configure"
|
---|
2647 | #include "confdefs.h"
|
---|
2648 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2649 | which can conflict with char $ac_func(); below. */
|
---|
2650 | #include <assert.h>
|
---|
2651 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2652 | /* We use char because int might match the return type of a gcc2
|
---|
2653 | builtin and then its argument prototype would still apply. */
|
---|
2654 | char $ac_func();
|
---|
2655 |
|
---|
2656 | int main() {
|
---|
2657 |
|
---|
2658 | /* The GNU C library defines this for functions which it implements
|
---|
2659 | to always fail with ENOSYS. Some functions are actually named
|
---|
2660 | something starting with __ and the normal name is an alias. */
|
---|
2661 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2662 | choke me
|
---|
2663 | #else
|
---|
2664 | $ac_func();
|
---|
2665 | #endif
|
---|
2666 |
|
---|
2667 | ; return 0; }
|
---|
2668 | EOF
|
---|
2669 | if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2670 | rm -rf conftest*
|
---|
2671 | eval "ac_cv_func_$ac_func=yes"
|
---|
2672 | else
|
---|
2673 | echo "configure: failed program was:" >&5
|
---|
2674 | cat conftest.$ac_ext >&5
|
---|
2675 | rm -rf conftest*
|
---|
2676 | eval "ac_cv_func_$ac_func=no"
|
---|
2677 | fi
|
---|
2678 | rm -f conftest*
|
---|
2679 | fi
|
---|
2680 |
|
---|
2681 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2682 | echo "$ac_t""yes" 1>&6
|
---|
2683 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2684 | cat >> confdefs.h <<EOF
|
---|
2685 | #define $ac_tr_func 1
|
---|
2686 | EOF
|
---|
2687 |
|
---|
2688 | else
|
---|
2689 | echo "$ac_t""no" 1>&6
|
---|
2690 | fi
|
---|
2691 | done
|
---|
2692 |
|
---|
2693 | fi
|
---|
2694 |
|
---|
2695 | fp_WITH_DMALLOC
|
---|
2696 | fp_WITH_REGEX
|
---|
2697 |
|
---|
2698 | # ---------------------------------------------------------------------------
|
---|
2699 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
2700 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
2701 | fi
|
---|
2702 |
|
---|
2703 |
|
---|
2704 | # ---------------------------------------------------------------------------
|
---|
2705 |
|
---|
2706 | ac_ext=C
|
---|
2707 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2708 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2709 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2710 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2711 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
2712 |
|
---|
2713 |
|
---|
2714 | echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6
|
---|
2715 | echo "configure:2716: checking "that the GDBM library is available"" >&5
|
---|
2716 | cat > conftest.$ac_ext <<EOF
|
---|
2717 | #line 2718 "configure"
|
---|
2718 | #include "confdefs.h"
|
---|
2719 | #include <gdbm.h>
|
---|
2720 |
|
---|
2721 | int main() {
|
---|
2722 |
|
---|
2723 | ; return 0; }
|
---|
2724 | EOF
|
---|
2725 | if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2726 | rm -rf conftest*
|
---|
2727 | success=yes
|
---|
2728 | else
|
---|
2729 | echo "configure: failed program was:" >&5
|
---|
2730 | cat conftest.$ac_ext >&5
|
---|
2731 | rm -rf conftest*
|
---|
2732 | success=no
|
---|
2733 |
|
---|
2734 | fi
|
---|
2735 | rm -f conftest*
|
---|
2736 | echo "$ac_t""$success" 1>&6
|
---|
2737 | if test $success = "no"; then
|
---|
2738 | { echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; }
|
---|
2739 | fi
|
---|
2740 |
|
---|
2741 | echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6
|
---|
2742 | echo "configure:2743: checking "that Perl 5 is available"" >&5
|
---|
2743 | success="no"
|
---|
2744 | pl_path="$PATH"
|
---|
2745 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
2746 | for pl_dir in $pl_path; do
|
---|
2747 | test -z "$pl_dir" && pl_dir=.
|
---|
2748 | if test -x $pl_dir/perl; then
|
---|
2749 | success="yes"
|
---|
2750 | break
|
---|
2751 | fi
|
---|
2752 | done
|
---|
2753 | IFS="$pl_save_ifs"
|
---|
2754 |
|
---|
2755 | if test $success = "yes"; then
|
---|
2756 | try=`perl configtest.pl` || try="0"
|
---|
2757 | try=`expr $try \> 5.000`
|
---|
2758 | if test $try = "1"; then
|
---|
2759 | echo "$ac_t"""yes"" 1>&6
|
---|
2760 | else
|
---|
2761 | success="no"
|
---|
2762 | fi
|
---|
2763 | fi
|
---|
2764 |
|
---|
2765 | if test $success = "no"; then
|
---|
2766 | echo "$ac_t"""no"" 1>&6
|
---|
2767 | { echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
|
---|
2768 | fi
|
---|
2769 |
|
---|
2770 | success=no
|
---|
2771 | echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
|
---|
2772 | echo "configure:2773: checking "whether STL library has known faults"" >&5
|
---|
2773 |
|
---|
2774 | cat > conftest.$ac_ext <<EOF
|
---|
2775 | #line 2776 "configure"
|
---|
2776 | #include "confdefs.h"
|
---|
2777 | #include <vector>
|
---|
2778 |
|
---|
2779 | int main() {
|
---|
2780 |
|
---|
2781 | ; return 0; }
|
---|
2782 | EOF
|
---|
2783 | if { (eval echo configure:2784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2784 | rm -rf conftest*
|
---|
2785 | success=yes
|
---|
2786 | else
|
---|
2787 | echo "configure: failed program was:" >&5
|
---|
2788 | cat conftest.$ac_ext >&5
|
---|
2789 | fi
|
---|
2790 | rm -f conftest*
|
---|
2791 |
|
---|
2792 | if test $success = "no"; then
|
---|
2793 | cat > conftest.$ac_ext <<EOF
|
---|
2794 | #line 2795 "configure"
|
---|
2795 | #include "confdefs.h"
|
---|
2796 | #include <vector.h>
|
---|
2797 |
|
---|
2798 | int main() {
|
---|
2799 |
|
---|
2800 | ; return 0; }
|
---|
2801 | EOF
|
---|
2802 | if { (eval echo configure:2803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2803 | rm -rf conftest*
|
---|
2804 | success="yes"
|
---|
2805 | else
|
---|
2806 | echo "configure: failed program was:" >&5
|
---|
2807 | cat conftest.$ac_ext >&5
|
---|
2808 | fi
|
---|
2809 | rm -f conftest*
|
---|
2810 | fi
|
---|
2811 |
|
---|
2812 | if test $success = "no"; then
|
---|
2813 | cat > conftest.$ac_ext <<EOF
|
---|
2814 | #line 2815 "configure"
|
---|
2815 | #include "confdefs.h"
|
---|
2816 | #include <ospace\\std\\vector>
|
---|
2817 |
|
---|
2818 | int main() {
|
---|
2819 |
|
---|
2820 | ; return 0; }
|
---|
2821 | EOF
|
---|
2822 | if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2823 | rm -rf conftest*
|
---|
2824 | success="yes"
|
---|
2825 | else
|
---|
2826 | echo "configure: failed program was:" >&5
|
---|
2827 | cat conftest.$ac_ext >&5
|
---|
2828 | fi
|
---|
2829 | rm -f conftest*
|
---|
2830 | fi
|
---|
2831 |
|
---|
2832 | if test $success = yes; then
|
---|
2833 | echo "$ac_t"""no"" 1>&6
|
---|
2834 | else
|
---|
2835 | echo "$ac_t"""yes"" 1>&6
|
---|
2836 | { echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
|
---|
2837 | fi
|
---|
2838 |
|
---|
2839 | gsdlos=`uname | tr A-Z a-z`
|
---|
2840 |
|
---|
2841 |
|
---|
2842 | echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
|
---|
2843 | echo "configure:2844: checking for HP-UX needing gmalloc" >&5
|
---|
2844 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
2845 | echo "$ac_t""yes" 1>&6
|
---|
2846 | LIBOBJS="$LIBOBJS gmalloc.o"
|
---|
2847 | cat >> confdefs.h <<\EOF
|
---|
2848 | #define HAVE_VALLOC 1
|
---|
2849 | EOF
|
---|
2850 |
|
---|
2851 | else
|
---|
2852 | echo "$ac_t""no" 1>&6
|
---|
2853 | for ac_func in valloc
|
---|
2854 | do
|
---|
2855 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2856 | echo "configure:2857: checking for $ac_func" >&5
|
---|
2857 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2858 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2859 | else
|
---|
2860 | cat > conftest.$ac_ext <<EOF
|
---|
2861 | #line 2862 "configure"
|
---|
2862 | #include "confdefs.h"
|
---|
2863 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2864 | which can conflict with char $ac_func(); below. */
|
---|
2865 | #include <assert.h>
|
---|
2866 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2867 | #ifdef __cplusplus
|
---|
2868 | extern "C"
|
---|
2869 | #endif
|
---|
2870 | /* We use char because int might match the return type of a gcc2
|
---|
2871 | builtin and then its argument prototype would still apply. */
|
---|
2872 | char $ac_func();
|
---|
2873 |
|
---|
2874 | int main() {
|
---|
2875 |
|
---|
2876 | /* The GNU C library defines this for functions which it implements
|
---|
2877 | to always fail with ENOSYS. Some functions are actually named
|
---|
2878 | something starting with __ and the normal name is an alias. */
|
---|
2879 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2880 | choke me
|
---|
2881 | #else
|
---|
2882 | $ac_func();
|
---|
2883 | #endif
|
---|
2884 |
|
---|
2885 | ; return 0; }
|
---|
2886 | EOF
|
---|
2887 | if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2888 | rm -rf conftest*
|
---|
2889 | eval "ac_cv_func_$ac_func=yes"
|
---|
2890 | else
|
---|
2891 | echo "configure: failed program was:" >&5
|
---|
2892 | cat conftest.$ac_ext >&5
|
---|
2893 | rm -rf conftest*
|
---|
2894 | eval "ac_cv_func_$ac_func=no"
|
---|
2895 | fi
|
---|
2896 | rm -f conftest*
|
---|
2897 | fi
|
---|
2898 |
|
---|
2899 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2900 | echo "$ac_t""yes" 1>&6
|
---|
2901 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2902 | cat >> confdefs.h <<EOF
|
---|
2903 | #define $ac_tr_func 1
|
---|
2904 | EOF
|
---|
2905 |
|
---|
2906 | else
|
---|
2907 | echo "$ac_t""no" 1>&6
|
---|
2908 | fi
|
---|
2909 | done
|
---|
2910 |
|
---|
2911 | fi
|
---|
2912 |
|
---|
2913 | fp_WITH_DMALLOC
|
---|
2914 | fp_WITH_REGEX
|
---|
2915 |
|
---|
2916 | # ---------------------------------------------------------------------------
|
---|
2917 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
2918 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
2919 | fi
|
---|
2920 |
|
---|
2921 |
|
---|
2922 | # ---------------------------------------------------------------------------
|
---|
2923 |
|
---|
2924 | trap '' 1 2 15
|
---|
2925 | cat > confcache <<\EOF
|
---|
2926 | # This file is a shell script that caches the results of configure
|
---|
2927 | # tests run on this system so they can be shared between configure
|
---|
2928 | # scripts and configure runs. It is not useful on other systems.
|
---|
2929 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2930 | #
|
---|
2931 | # By default, configure uses ./config.cache as the cache file,
|
---|
2932 | # creating it if it does not exist already. You can give configure
|
---|
2933 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2934 | # what configure does when it calls configure scripts in
|
---|
2935 | # subdirectories, so they share the cache.
|
---|
2936 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2937 | # config.status only pays attention to the cache file if you give it the
|
---|
2938 | # --recheck option to rerun configure.
|
---|
2939 | #
|
---|
2940 | EOF
|
---|
2941 | # The following way of writing the cache mishandles newlines in values,
|
---|
2942 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2943 | # So, don't put newlines in cache variables' values.
|
---|
2944 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2945 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2946 | (set) 2>&1 |
|
---|
2947 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2948 | *ac_space=\ *)
|
---|
2949 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2950 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2951 | sed -n \
|
---|
2952 | -e "s/'/'\\\\''/g" \
|
---|
2953 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2954 | ;;
|
---|
2955 | *)
|
---|
2956 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2957 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2958 | ;;
|
---|
2959 | esac >> confcache
|
---|
2960 | if cmp -s $cache_file confcache; then
|
---|
2961 | :
|
---|
2962 | else
|
---|
2963 | if test -w $cache_file; then
|
---|
2964 | echo "updating cache $cache_file"
|
---|
2965 | cat confcache > $cache_file
|
---|
2966 | else
|
---|
2967 | echo "not updating unwritable cache $cache_file"
|
---|
2968 | fi
|
---|
2969 | fi
|
---|
2970 | rm -f confcache
|
---|
2971 |
|
---|
2972 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
2973 |
|
---|
2974 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
2975 | # Let make expand exec_prefix.
|
---|
2976 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
2977 |
|
---|
2978 | # Any assignment to VPATH causes Sun make to only execute
|
---|
2979 | # the first set of double-colon rules, so remove it if not needed.
|
---|
2980 | # If there is a colon in the path, we need to keep it.
|
---|
2981 | if test "x$srcdir" = x.; then
|
---|
2982 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
2983 | fi
|
---|
2984 |
|
---|
2985 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
2986 |
|
---|
2987 | DEFS=-DHAVE_CONFIG_H
|
---|
2988 |
|
---|
2989 | # Without the "./", some shells look in PATH for config.status.
|
---|
2990 | : ${CONFIG_STATUS=./config.status}
|
---|
2991 |
|
---|
2992 | echo creating $CONFIG_STATUS
|
---|
2993 | rm -f $CONFIG_STATUS
|
---|
2994 | cat > $CONFIG_STATUS <<EOF
|
---|
2995 | #! /bin/sh
|
---|
2996 | # Generated automatically by configure.
|
---|
2997 | # Run this file to recreate the current configuration.
|
---|
2998 | # This directory was configured as follows,
|
---|
2999 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
3000 | #
|
---|
3001 | # $0 $ac_configure_args
|
---|
3002 | #
|
---|
3003 | # Compiler output produced by configure, useful for debugging
|
---|
3004 | # configure, is in ./config.log if it exists.
|
---|
3005 |
|
---|
3006 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
3007 | for ac_option
|
---|
3008 | do
|
---|
3009 | case "\$ac_option" in
|
---|
3010 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
3011 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
3012 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
3013 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
3014 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
3015 | exit 0 ;;
|
---|
3016 | -help | --help | --hel | --he | --h)
|
---|
3017 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
3018 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
3019 | esac
|
---|
3020 | done
|
---|
3021 |
|
---|
3022 | ac_given_srcdir=$srcdir
|
---|
3023 |
|
---|
3024 | trap 'rm -fr `echo "packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
|
---|
3025 | packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
|
---|
3026 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
|
---|
3027 | src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
|
---|
3028 | collect/niupepa/src/recpt/Makefile Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
3029 | EOF
|
---|
3030 | cat >> $CONFIG_STATUS <<EOF
|
---|
3031 |
|
---|
3032 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3033 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
3034 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
3035 | $ac_vpsub
|
---|
3036 | $extrasub
|
---|
3037 | s%@SHELL@%$SHELL%g
|
---|
3038 | s%@CFLAGS@%$CFLAGS%g
|
---|
3039 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
3040 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
3041 | s%@FFLAGS@%$FFLAGS%g
|
---|
3042 | s%@DEFS@%$DEFS%g
|
---|
3043 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
3044 | s%@LIBS@%$LIBS%g
|
---|
3045 | s%@exec_prefix@%$exec_prefix%g
|
---|
3046 | s%@prefix@%$prefix%g
|
---|
3047 | s%@program_transform_name@%$program_transform_name%g
|
---|
3048 | s%@bindir@%$bindir%g
|
---|
3049 | s%@sbindir@%$sbindir%g
|
---|
3050 | s%@libexecdir@%$libexecdir%g
|
---|
3051 | s%@datadir@%$datadir%g
|
---|
3052 | s%@sysconfdir@%$sysconfdir%g
|
---|
3053 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
3054 | s%@localstatedir@%$localstatedir%g
|
---|
3055 | s%@libdir@%$libdir%g
|
---|
3056 | s%@includedir@%$includedir%g
|
---|
3057 | s%@oldincludedir@%$oldincludedir%g
|
---|
3058 | s%@infodir@%$infodir%g
|
---|
3059 | s%@mandir@%$mandir%g
|
---|
3060 | s%@PACKAGE@%$PACKAGE%g
|
---|
3061 | s%@VERSION@%$VERSION%g
|
---|
3062 | s%@USE_FASTCGI@%$USE_FASTCGI%g
|
---|
3063 | s%@CC@%$CC%g
|
---|
3064 | s%@CXX@%$CXX%g
|
---|
3065 | s%@AWK@%$AWK%g
|
---|
3066 | s%@YACC@%$YACC%g
|
---|
3067 | s%@LN_S@%$LN_S%g
|
---|
3068 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
3069 | s%@RANLIB@%$RANLIB%g
|
---|
3070 | s%@CPP@%$CPP%g
|
---|
3071 | s%@ALLOCA@%$ALLOCA%g
|
---|
3072 | s%@LIBOBJS@%$LIBOBJS%g
|
---|
3073 | s%@gsdlos@%$gsdlos%g
|
---|
3074 |
|
---|
3075 | CEOF
|
---|
3076 | EOF
|
---|
3077 |
|
---|
3078 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3079 |
|
---|
3080 | # Split the substitutions into bite-sized pieces for seds with
|
---|
3081 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
3082 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
3083 | ac_file=1 # Number of current file.
|
---|
3084 | ac_beg=1 # First line for current file.
|
---|
3085 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
3086 | ac_more_lines=:
|
---|
3087 | ac_sed_cmds=""
|
---|
3088 | while $ac_more_lines; do
|
---|
3089 | if test $ac_beg -gt 1; then
|
---|
3090 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
3091 | else
|
---|
3092 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
3093 | fi
|
---|
3094 | if test ! -s conftest.s$ac_file; then
|
---|
3095 | ac_more_lines=false
|
---|
3096 | rm -f conftest.s$ac_file
|
---|
3097 | else
|
---|
3098 | if test -z "$ac_sed_cmds"; then
|
---|
3099 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
3100 | else
|
---|
3101 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
3102 | fi
|
---|
3103 | ac_file=`expr $ac_file + 1`
|
---|
3104 | ac_beg=$ac_end
|
---|
3105 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
3106 | fi
|
---|
3107 | done
|
---|
3108 | if test -z "$ac_sed_cmds"; then
|
---|
3109 | ac_sed_cmds=cat
|
---|
3110 | fi
|
---|
3111 | EOF
|
---|
3112 |
|
---|
3113 | cat >> $CONFIG_STATUS <<EOF
|
---|
3114 |
|
---|
3115 | CONFIG_FILES=\${CONFIG_FILES-"packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
|
---|
3116 | packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
|
---|
3117 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
|
---|
3118 | src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
|
---|
3119 | collect/niupepa/src/recpt/Makefile Makefile"}
|
---|
3120 | EOF
|
---|
3121 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3122 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
3123 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3124 | case "$ac_file" in
|
---|
3125 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
3126 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
3127 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3128 | esac
|
---|
3129 |
|
---|
3130 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
3131 |
|
---|
3132 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3133 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3134 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3135 | # The file is in a subdirectory.
|
---|
3136 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3137 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
3138 | # A "../" for each directory in $ac_dir_suffix.
|
---|
3139 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
3140 | else
|
---|
3141 | ac_dir_suffix= ac_dots=
|
---|
3142 | fi
|
---|
3143 |
|
---|
3144 | case "$ac_given_srcdir" in
|
---|
3145 | .) srcdir=.
|
---|
3146 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
3147 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
3148 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
3149 | *) # Relative path.
|
---|
3150 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
3151 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
3152 | esac
|
---|
3153 |
|
---|
3154 |
|
---|
3155 | echo creating "$ac_file"
|
---|
3156 | rm -f "$ac_file"
|
---|
3157 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
3158 | case "$ac_file" in
|
---|
3159 | *Makefile*) ac_comsub="1i\\
|
---|
3160 | # $configure_input" ;;
|
---|
3161 | *) ac_comsub= ;;
|
---|
3162 | esac
|
---|
3163 |
|
---|
3164 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
3165 | sed -e "$ac_comsub
|
---|
3166 | s%@configure_input@%$configure_input%g
|
---|
3167 | s%@srcdir@%$srcdir%g
|
---|
3168 | s%@top_srcdir@%$top_srcdir%g
|
---|
3169 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
3170 | fi; done
|
---|
3171 | rm -f conftest.s*
|
---|
3172 |
|
---|
3173 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
3174 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
3175 | #
|
---|
3176 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
3177 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
3178 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
3179 | ac_dC='\3'
|
---|
3180 | ac_dD='%g'
|
---|
3181 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
3182 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3183 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
3184 | ac_uC=' '
|
---|
3185 | ac_uD='\4%g'
|
---|
3186 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
3187 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3188 | ac_eB='$%\1#\2define\3'
|
---|
3189 | ac_eC=' '
|
---|
3190 | ac_eD='%g'
|
---|
3191 |
|
---|
3192 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
3193 | EOF
|
---|
3194 | cat >> $CONFIG_STATUS <<EOF
|
---|
3195 | CONFIG_HEADERS="config.h"
|
---|
3196 | EOF
|
---|
3197 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3198 | fi
|
---|
3199 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
3200 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3201 | case "$ac_file" in
|
---|
3202 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
3203 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
3204 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3205 | esac
|
---|
3206 |
|
---|
3207 | echo creating $ac_file
|
---|
3208 |
|
---|
3209 | rm -f conftest.frag conftest.in conftest.out
|
---|
3210 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
3211 | cat $ac_file_inputs > conftest.in
|
---|
3212 |
|
---|
3213 | EOF
|
---|
3214 |
|
---|
3215 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
3216 | # the proper values into config.h.in to produce config.h. And first:
|
---|
3217 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3218 | # Protect against being in an unquoted here document in config.status.
|
---|
3219 | rm -f conftest.vals
|
---|
3220 | cat > conftest.hdr <<\EOF
|
---|
3221 | s/[\\&%]/\\&/g
|
---|
3222 | s%[\\$`]%\\&%g
|
---|
3223 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
3224 | s%ac_d%ac_u%gp
|
---|
3225 | s%ac_u%ac_e%gp
|
---|
3226 | EOF
|
---|
3227 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
3228 | rm -f conftest.hdr
|
---|
3229 |
|
---|
3230 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
3231 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
3232 | # on some systems where configure will not decide to define it.
|
---|
3233 | cat >> conftest.vals <<\EOF
|
---|
3234 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
3235 | EOF
|
---|
3236 |
|
---|
3237 | # Break up conftest.vals because some shells have a limit on
|
---|
3238 | # the size of here documents, and old seds have small limits too.
|
---|
3239 |
|
---|
3240 | rm -f conftest.tail
|
---|
3241 | while :
|
---|
3242 | do
|
---|
3243 | ac_lines=`grep -c . conftest.vals`
|
---|
3244 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
3245 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
3246 | # Write a limited-size here document to conftest.frag.
|
---|
3247 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
3248 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
3249 | echo 'CEOF
|
---|
3250 | sed -f conftest.frag conftest.in > conftest.out
|
---|
3251 | rm -f conftest.in
|
---|
3252 | mv conftest.out conftest.in
|
---|
3253 | ' >> $CONFIG_STATUS
|
---|
3254 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
3255 | rm -f conftest.vals
|
---|
3256 | mv conftest.tail conftest.vals
|
---|
3257 | done
|
---|
3258 | rm -f conftest.vals
|
---|
3259 |
|
---|
3260 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3261 | rm -f conftest.frag conftest.h
|
---|
3262 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
3263 | cat conftest.in >> conftest.h
|
---|
3264 | rm -f conftest.in
|
---|
3265 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
3266 | echo "$ac_file is unchanged"
|
---|
3267 | rm -f conftest.h
|
---|
3268 | else
|
---|
3269 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3270 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3271 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3272 | # The file is in a subdirectory.
|
---|
3273 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3274 | fi
|
---|
3275 | rm -f $ac_file
|
---|
3276 | mv conftest.h $ac_file
|
---|
3277 | fi
|
---|
3278 | fi; done
|
---|
3279 |
|
---|
3280 | EOF
|
---|
3281 | cat >> $CONFIG_STATUS <<EOF
|
---|
3282 |
|
---|
3283 | EOF
|
---|
3284 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3285 |
|
---|
3286 | exit 0
|
---|
3287 | EOF
|
---|
3288 | chmod +x $CONFIG_STATUS
|
---|
3289 | rm -fr confdefs* $ac_clean_files
|
---|
3290 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
3291 |
|
---|
3292 |
|
---|
3293 |
|
---|
3294 |
|
---|
3295 |
|
---|