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 | ac_help="$ac_help
|
---|
15 | --with-dmalloc use dmalloc, as in
|
---|
16 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
|
---|
17 | ac_help="$ac_help
|
---|
18 | --with-regex use older regex in lieu of GNU rx for matching"
|
---|
19 | ac_help="$ac_help
|
---|
20 | --with-dmalloc use dmalloc, as in
|
---|
21 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
|
---|
22 | ac_help="$ac_help
|
---|
23 | --with-regex use older regex in lieu of GNU rx for matching"
|
---|
24 |
|
---|
25 | # Initialize some variables set by options.
|
---|
26 | # The variables have the same names as the options, with
|
---|
27 | # dashes changed to underlines.
|
---|
28 | build=NONE
|
---|
29 | cache_file=./config.cache
|
---|
30 | exec_prefix=NONE
|
---|
31 | host=NONE
|
---|
32 | no_create=
|
---|
33 | nonopt=NONE
|
---|
34 | no_recursion=
|
---|
35 | prefix=NONE
|
---|
36 | program_prefix=NONE
|
---|
37 | program_suffix=NONE
|
---|
38 | program_transform_name=s,x,x,
|
---|
39 | silent=
|
---|
40 | site=
|
---|
41 | srcdir=
|
---|
42 | target=NONE
|
---|
43 | verbose=
|
---|
44 | x_includes=NONE
|
---|
45 | x_libraries=NONE
|
---|
46 | bindir='${exec_prefix}/bin'
|
---|
47 | sbindir='${exec_prefix}/sbin'
|
---|
48 | libexecdir='${exec_prefix}/libexec'
|
---|
49 | datadir='${prefix}/share'
|
---|
50 | sysconfdir='${prefix}/etc'
|
---|
51 | sharedstatedir='${prefix}/com'
|
---|
52 | localstatedir='${prefix}/var'
|
---|
53 | libdir='${exec_prefix}/lib'
|
---|
54 | includedir='${prefix}/include'
|
---|
55 | oldincludedir='/usr/include'
|
---|
56 | infodir='${prefix}/info'
|
---|
57 | mandir='${prefix}/man'
|
---|
58 |
|
---|
59 | # Initialize some other variables.
|
---|
60 | subdirs=
|
---|
61 | MFLAGS= MAKEFLAGS=
|
---|
62 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
63 | # Maximum number of lines to put in a shell here document.
|
---|
64 | ac_max_here_lines=12
|
---|
65 |
|
---|
66 | ac_prev=
|
---|
67 | for ac_option
|
---|
68 | do
|
---|
69 |
|
---|
70 | # If the previous option needs an argument, assign it.
|
---|
71 | if test -n "$ac_prev"; then
|
---|
72 | eval "$ac_prev=\$ac_option"
|
---|
73 | ac_prev=
|
---|
74 | continue
|
---|
75 | fi
|
---|
76 |
|
---|
77 | case "$ac_option" in
|
---|
78 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
79 | *) ac_optarg= ;;
|
---|
80 | esac
|
---|
81 |
|
---|
82 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
83 |
|
---|
84 | case "$ac_option" in
|
---|
85 |
|
---|
86 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
87 | ac_prev=bindir ;;
|
---|
88 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
89 | bindir="$ac_optarg" ;;
|
---|
90 |
|
---|
91 | -build | --build | --buil | --bui | --bu)
|
---|
92 | ac_prev=build ;;
|
---|
93 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
94 | build="$ac_optarg" ;;
|
---|
95 |
|
---|
96 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
97 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
98 | ac_prev=cache_file ;;
|
---|
99 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
100 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
101 | cache_file="$ac_optarg" ;;
|
---|
102 |
|
---|
103 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
104 | ac_prev=datadir ;;
|
---|
105 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
106 | | --da=*)
|
---|
107 | datadir="$ac_optarg" ;;
|
---|
108 |
|
---|
109 | -disable-* | --disable-*)
|
---|
110 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
111 | # Reject names that are not valid shell variable names.
|
---|
112 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
113 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
114 | fi
|
---|
115 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
116 | eval "enable_${ac_feature}=no" ;;
|
---|
117 |
|
---|
118 | -enable-* | --enable-*)
|
---|
119 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
120 | # Reject names that are not valid shell variable names.
|
---|
121 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
122 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
123 | fi
|
---|
124 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
125 | case "$ac_option" in
|
---|
126 | *=*) ;;
|
---|
127 | *) ac_optarg=yes ;;
|
---|
128 | esac
|
---|
129 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
130 |
|
---|
131 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
132 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
133 | | --exec | --exe | --ex)
|
---|
134 | ac_prev=exec_prefix ;;
|
---|
135 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
136 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
137 | | --exec=* | --exe=* | --ex=*)
|
---|
138 | exec_prefix="$ac_optarg" ;;
|
---|
139 |
|
---|
140 | -gas | --gas | --ga | --g)
|
---|
141 | # Obsolete; use --with-gas.
|
---|
142 | with_gas=yes ;;
|
---|
143 |
|
---|
144 | -help | --help | --hel | --he)
|
---|
145 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
146 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
147 | cat << EOF
|
---|
148 | Usage: configure [options] [host]
|
---|
149 | Options: [defaults in brackets after descriptions]
|
---|
150 | Configuration:
|
---|
151 | --cache-file=FILE cache test results in FILE
|
---|
152 | --help print this message
|
---|
153 | --no-create do not create output files
|
---|
154 | --quiet, --silent do not print \`checking...' messages
|
---|
155 | --version print the version of autoconf that created configure
|
---|
156 | Directory and file names:
|
---|
157 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
158 | [$ac_default_prefix]
|
---|
159 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
160 | [same as prefix]
|
---|
161 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
162 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
163 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
164 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
165 | [PREFIX/share]
|
---|
166 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
167 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
168 | [PREFIX/com]
|
---|
169 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
170 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
171 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
172 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
173 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
174 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
175 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
176 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
177 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
178 | --program-transform-name=PROGRAM
|
---|
179 | run sed PROGRAM on installed program names
|
---|
180 | EOF
|
---|
181 | cat << EOF
|
---|
182 | Host type:
|
---|
183 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
184 | --host=HOST configure for HOST [guessed]
|
---|
185 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
186 | Features and packages:
|
---|
187 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
188 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
189 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
190 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
191 | --x-includes=DIR X include files are in DIR
|
---|
192 | --x-libraries=DIR X library files are in DIR
|
---|
193 | EOF
|
---|
194 | if test -n "$ac_help"; then
|
---|
195 | echo "--enable and --with options recognized:$ac_help"
|
---|
196 | fi
|
---|
197 | exit 0 ;;
|
---|
198 |
|
---|
199 | -host | --host | --hos | --ho)
|
---|
200 | ac_prev=host ;;
|
---|
201 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
202 | host="$ac_optarg" ;;
|
---|
203 |
|
---|
204 | -includedir | --includedir | --includedi | --included | --include \
|
---|
205 | | --includ | --inclu | --incl | --inc)
|
---|
206 | ac_prev=includedir ;;
|
---|
207 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
208 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
209 | includedir="$ac_optarg" ;;
|
---|
210 |
|
---|
211 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
212 | ac_prev=infodir ;;
|
---|
213 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
214 | infodir="$ac_optarg" ;;
|
---|
215 |
|
---|
216 | -libdir | --libdir | --libdi | --libd)
|
---|
217 | ac_prev=libdir ;;
|
---|
218 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
219 | libdir="$ac_optarg" ;;
|
---|
220 |
|
---|
221 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
222 | | --libexe | --libex | --libe)
|
---|
223 | ac_prev=libexecdir ;;
|
---|
224 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
225 | | --libexe=* | --libex=* | --libe=*)
|
---|
226 | libexecdir="$ac_optarg" ;;
|
---|
227 |
|
---|
228 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
229 | | --localstate | --localstat | --localsta | --localst \
|
---|
230 | | --locals | --local | --loca | --loc | --lo)
|
---|
231 | ac_prev=localstatedir ;;
|
---|
232 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
233 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
234 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
235 | localstatedir="$ac_optarg" ;;
|
---|
236 |
|
---|
237 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
238 | ac_prev=mandir ;;
|
---|
239 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
240 | mandir="$ac_optarg" ;;
|
---|
241 |
|
---|
242 | -nfp | --nfp | --nf)
|
---|
243 | # Obsolete; use --without-fp.
|
---|
244 | with_fp=no ;;
|
---|
245 |
|
---|
246 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
247 | | --no-cr | --no-c)
|
---|
248 | no_create=yes ;;
|
---|
249 |
|
---|
250 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
251 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
252 | no_recursion=yes ;;
|
---|
253 |
|
---|
254 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
255 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
256 | | --oldin | --oldi | --old | --ol | --o)
|
---|
257 | ac_prev=oldincludedir ;;
|
---|
258 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
259 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
260 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
261 | oldincludedir="$ac_optarg" ;;
|
---|
262 |
|
---|
263 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
264 | ac_prev=prefix ;;
|
---|
265 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
266 | prefix="$ac_optarg" ;;
|
---|
267 |
|
---|
268 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
269 | | --program-pre | --program-pr | --program-p)
|
---|
270 | ac_prev=program_prefix ;;
|
---|
271 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
272 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
273 | program_prefix="$ac_optarg" ;;
|
---|
274 |
|
---|
275 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
276 | | --program-suf | --program-su | --program-s)
|
---|
277 | ac_prev=program_suffix ;;
|
---|
278 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
279 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
280 | program_suffix="$ac_optarg" ;;
|
---|
281 |
|
---|
282 | -program-transform-name | --program-transform-name \
|
---|
283 | | --program-transform-nam | --program-transform-na \
|
---|
284 | | --program-transform-n | --program-transform- \
|
---|
285 | | --program-transform | --program-transfor \
|
---|
286 | | --program-transfo | --program-transf \
|
---|
287 | | --program-trans | --program-tran \
|
---|
288 | | --progr-tra | --program-tr | --program-t)
|
---|
289 | ac_prev=program_transform_name ;;
|
---|
290 | -program-transform-name=* | --program-transform-name=* \
|
---|
291 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
292 | | --program-transform-n=* | --program-transform-=* \
|
---|
293 | | --program-transform=* | --program-transfor=* \
|
---|
294 | | --program-transfo=* | --program-transf=* \
|
---|
295 | | --program-trans=* | --program-tran=* \
|
---|
296 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
297 | program_transform_name="$ac_optarg" ;;
|
---|
298 |
|
---|
299 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
300 | | -silent | --silent | --silen | --sile | --sil)
|
---|
301 | silent=yes ;;
|
---|
302 |
|
---|
303 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
304 | ac_prev=sbindir ;;
|
---|
305 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
306 | | --sbi=* | --sb=*)
|
---|
307 | sbindir="$ac_optarg" ;;
|
---|
308 |
|
---|
309 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
310 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
311 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
312 | | --sha | --sh)
|
---|
313 | ac_prev=sharedstatedir ;;
|
---|
314 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
315 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
316 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
317 | | --sha=* | --sh=*)
|
---|
318 | sharedstatedir="$ac_optarg" ;;
|
---|
319 |
|
---|
320 | -site | --site | --sit)
|
---|
321 | ac_prev=site ;;
|
---|
322 | -site=* | --site=* | --sit=*)
|
---|
323 | site="$ac_optarg" ;;
|
---|
324 |
|
---|
325 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
326 | ac_prev=srcdir ;;
|
---|
327 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
328 | srcdir="$ac_optarg" ;;
|
---|
329 |
|
---|
330 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
331 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
332 | ac_prev=sysconfdir ;;
|
---|
333 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
334 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
335 | sysconfdir="$ac_optarg" ;;
|
---|
336 |
|
---|
337 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
338 | ac_prev=target ;;
|
---|
339 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
340 | target="$ac_optarg" ;;
|
---|
341 |
|
---|
342 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
343 | verbose=yes ;;
|
---|
344 |
|
---|
345 | -version | --version | --versio | --versi | --vers)
|
---|
346 | echo "configure generated by autoconf version 2.13"
|
---|
347 | exit 0 ;;
|
---|
348 |
|
---|
349 | -with-* | --with-*)
|
---|
350 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
351 | # Reject names that are not valid shell variable names.
|
---|
352 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
353 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
354 | fi
|
---|
355 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
356 | case "$ac_option" in
|
---|
357 | *=*) ;;
|
---|
358 | *) ac_optarg=yes ;;
|
---|
359 | esac
|
---|
360 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
361 |
|
---|
362 | -without-* | --without-*)
|
---|
363 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
364 | # Reject names that are not valid shell variable names.
|
---|
365 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
366 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
367 | fi
|
---|
368 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
369 | eval "with_${ac_package}=no" ;;
|
---|
370 |
|
---|
371 | --x)
|
---|
372 | # Obsolete; use --with-x.
|
---|
373 | with_x=yes ;;
|
---|
374 |
|
---|
375 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
376 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
377 | ac_prev=x_includes ;;
|
---|
378 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
379 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
380 | x_includes="$ac_optarg" ;;
|
---|
381 |
|
---|
382 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
383 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
384 | ac_prev=x_libraries ;;
|
---|
385 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
386 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
387 | x_libraries="$ac_optarg" ;;
|
---|
388 |
|
---|
389 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
390 | ;;
|
---|
391 |
|
---|
392 | *)
|
---|
393 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
394 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
395 | fi
|
---|
396 | if test "x$nonopt" != xNONE; then
|
---|
397 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
398 | fi
|
---|
399 | nonopt="$ac_option"
|
---|
400 | ;;
|
---|
401 |
|
---|
402 | esac
|
---|
403 | done
|
---|
404 |
|
---|
405 | if test -n "$ac_prev"; then
|
---|
406 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
407 | fi
|
---|
408 |
|
---|
409 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
410 |
|
---|
411 | # File descriptor usage:
|
---|
412 | # 0 standard input
|
---|
413 | # 1 file creation
|
---|
414 | # 2 errors and warnings
|
---|
415 | # 3 some systems may open it to /dev/tty
|
---|
416 | # 4 used on the Kubota Titan
|
---|
417 | # 6 checking for... messages and results
|
---|
418 | # 5 compiler messages saved in config.log
|
---|
419 | if test "$silent" = yes; then
|
---|
420 | exec 6>/dev/null
|
---|
421 | else
|
---|
422 | exec 6>&1
|
---|
423 | fi
|
---|
424 | exec 5>./config.log
|
---|
425 |
|
---|
426 | echo "\
|
---|
427 | This file contains any messages produced by compilers while
|
---|
428 | running configure, to aid debugging if configure makes a mistake.
|
---|
429 | " 1>&5
|
---|
430 |
|
---|
431 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
432 | # Also quote any args containing shell metacharacters.
|
---|
433 | ac_configure_args=
|
---|
434 | for ac_arg
|
---|
435 | do
|
---|
436 | case "$ac_arg" in
|
---|
437 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
438 | | --no-cr | --no-c) ;;
|
---|
439 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
440 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
441 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
442 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
443 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
444 | esac
|
---|
445 | done
|
---|
446 |
|
---|
447 | # NLS nuisances.
|
---|
448 | # Only set these to C if already set. These must not be set unconditionally
|
---|
449 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
450 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
451 | # Non-C LC_CTYPE values break the ctype check.
|
---|
452 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
453 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
454 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
455 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
456 |
|
---|
457 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
458 | rm -rf conftest* confdefs.h
|
---|
459 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
460 | echo > confdefs.h
|
---|
461 |
|
---|
462 | # A filename unique to this package, relative to the directory that
|
---|
463 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
464 | ac_unique_file=lib/text_t.h
|
---|
465 |
|
---|
466 | # Find the source files, if location was not specified.
|
---|
467 | if test -z "$srcdir"; then
|
---|
468 | ac_srcdir_defaulted=yes
|
---|
469 | # Try the directory containing this script, then its parent.
|
---|
470 | ac_prog=$0
|
---|
471 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
472 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
473 | srcdir=$ac_confdir
|
---|
474 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
475 | srcdir=..
|
---|
476 | fi
|
---|
477 | else
|
---|
478 | ac_srcdir_defaulted=no
|
---|
479 | fi
|
---|
480 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
481 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
482 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
483 | else
|
---|
484 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
485 | fi
|
---|
486 | fi
|
---|
487 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
488 |
|
---|
489 | # Prefer explicitly selected file to automatically selected ones.
|
---|
490 | if test -z "$CONFIG_SITE"; then
|
---|
491 | if test "x$prefix" != xNONE; then
|
---|
492 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
493 | else
|
---|
494 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
495 | fi
|
---|
496 | fi
|
---|
497 | for ac_site_file in $CONFIG_SITE; do
|
---|
498 | if test -r "$ac_site_file"; then
|
---|
499 | echo "loading site script $ac_site_file"
|
---|
500 | . "$ac_site_file"
|
---|
501 | fi
|
---|
502 | done
|
---|
503 |
|
---|
504 | if test -r "$cache_file"; then
|
---|
505 | echo "loading cache $cache_file"
|
---|
506 | . $cache_file
|
---|
507 | else
|
---|
508 | echo "creating cache $cache_file"
|
---|
509 | > $cache_file
|
---|
510 | fi
|
---|
511 |
|
---|
512 | ac_ext=c
|
---|
513 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
514 | ac_cpp='$CPP $CPPFLAGS'
|
---|
515 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
516 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
517 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
518 |
|
---|
519 | ac_exeext=
|
---|
520 | ac_objext=o
|
---|
521 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
522 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
---|
523 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
524 | ac_n= ac_c='
|
---|
525 | ' ac_t=' '
|
---|
526 | else
|
---|
527 | ac_n=-n ac_c= ac_t=
|
---|
528 | fi
|
---|
529 | else
|
---|
530 | ac_n= ac_c='\c' ac_t=
|
---|
531 | fi
|
---|
532 |
|
---|
533 |
|
---|
534 |
|
---|
535 | if test "$program_transform_name" = s,x,x,; then
|
---|
536 | program_transform_name=
|
---|
537 | else
|
---|
538 | # Double any \ or $. echo might interpret backslashes.
|
---|
539 | cat <<\EOF_SED > conftestsed
|
---|
540 | s,\\,\\\\,g; s,\$,$$,g
|
---|
541 | EOF_SED
|
---|
542 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
543 | rm -f conftestsed
|
---|
544 | fi
|
---|
545 | test "$program_prefix" != NONE &&
|
---|
546 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
547 | # Use a double $ so make ignores it.
|
---|
548 | test "$program_suffix" != NONE &&
|
---|
549 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
550 |
|
---|
551 | # sed with no file args requires a program.
|
---|
552 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
553 |
|
---|
554 |
|
---|
555 | PACKAGE=gsdl
|
---|
556 | VERSION=2.1
|
---|
557 | cat >> confdefs.h <<EOF
|
---|
558 | #define PACKAGE "$PACKAGE"
|
---|
559 | EOF
|
---|
560 |
|
---|
561 | cat >> confdefs.h <<EOF
|
---|
562 | #define VERSION "$VERSION"
|
---|
563 | EOF
|
---|
564 |
|
---|
565 |
|
---|
566 |
|
---|
567 |
|
---|
568 | USE_FASTCGI=0
|
---|
569 | if test USE_FASTCGI = 1; then
|
---|
570 | cat >> confdefs.h <<\EOF
|
---|
571 | #define USE_FASTCGI 1
|
---|
572 | EOF
|
---|
573 |
|
---|
574 |
|
---|
575 | fi
|
---|
576 |
|
---|
577 | CFLAGS=-g
|
---|
578 |
|
---|
579 |
|
---|
580 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
581 | set dummy gcc; ac_word=$2
|
---|
582 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
583 | echo "configure:584: checking for $ac_word" >&5
|
---|
584 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
585 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
586 | else
|
---|
587 | if test -n "$CC"; then
|
---|
588 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
589 | else
|
---|
590 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
591 | ac_dummy="$PATH"
|
---|
592 | for ac_dir in $ac_dummy; do
|
---|
593 | test -z "$ac_dir" && ac_dir=.
|
---|
594 | if test -f $ac_dir/$ac_word; then
|
---|
595 | ac_cv_prog_CC="gcc"
|
---|
596 | break
|
---|
597 | fi
|
---|
598 | done
|
---|
599 | IFS="$ac_save_ifs"
|
---|
600 | fi
|
---|
601 | fi
|
---|
602 | CC="$ac_cv_prog_CC"
|
---|
603 | if test -n "$CC"; then
|
---|
604 | echo "$ac_t""$CC" 1>&6
|
---|
605 | else
|
---|
606 | echo "$ac_t""no" 1>&6
|
---|
607 | fi
|
---|
608 |
|
---|
609 | if test -z "$CC"; then
|
---|
610 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
611 | set dummy cc; ac_word=$2
|
---|
612 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
613 | echo "configure:614: checking for $ac_word" >&5
|
---|
614 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
615 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
616 | else
|
---|
617 | if test -n "$CC"; then
|
---|
618 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
619 | else
|
---|
620 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
621 | ac_prog_rejected=no
|
---|
622 | ac_dummy="$PATH"
|
---|
623 | for ac_dir in $ac_dummy; do
|
---|
624 | test -z "$ac_dir" && ac_dir=.
|
---|
625 | if test -f $ac_dir/$ac_word; then
|
---|
626 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
627 | ac_prog_rejected=yes
|
---|
628 | continue
|
---|
629 | fi
|
---|
630 | ac_cv_prog_CC="cc"
|
---|
631 | break
|
---|
632 | fi
|
---|
633 | done
|
---|
634 | IFS="$ac_save_ifs"
|
---|
635 | if test $ac_prog_rejected = yes; then
|
---|
636 | # We found a bogon in the path, so make sure we never use it.
|
---|
637 | set dummy $ac_cv_prog_CC
|
---|
638 | shift
|
---|
639 | if test $# -gt 0; then
|
---|
640 | # We chose a different compiler from the bogus one.
|
---|
641 | # However, it has the same basename, so the bogon will be chosen
|
---|
642 | # first if we set CC to just the basename; use the full file name.
|
---|
643 | shift
|
---|
644 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
645 | shift
|
---|
646 | ac_cv_prog_CC="$@"
|
---|
647 | fi
|
---|
648 | fi
|
---|
649 | fi
|
---|
650 | fi
|
---|
651 | CC="$ac_cv_prog_CC"
|
---|
652 | if test -n "$CC"; then
|
---|
653 | echo "$ac_t""$CC" 1>&6
|
---|
654 | else
|
---|
655 | echo "$ac_t""no" 1>&6
|
---|
656 | fi
|
---|
657 |
|
---|
658 | if test -z "$CC"; then
|
---|
659 | case "`uname -s`" in
|
---|
660 | *win32* | *WIN32*)
|
---|
661 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
662 | set dummy cl; ac_word=$2
|
---|
663 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
664 | echo "configure:665: checking for $ac_word" >&5
|
---|
665 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
666 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
667 | else
|
---|
668 | if test -n "$CC"; then
|
---|
669 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
670 | else
|
---|
671 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
672 | ac_dummy="$PATH"
|
---|
673 | for ac_dir in $ac_dummy; do
|
---|
674 | test -z "$ac_dir" && ac_dir=.
|
---|
675 | if test -f $ac_dir/$ac_word; then
|
---|
676 | ac_cv_prog_CC="cl"
|
---|
677 | break
|
---|
678 | fi
|
---|
679 | done
|
---|
680 | IFS="$ac_save_ifs"
|
---|
681 | fi
|
---|
682 | fi
|
---|
683 | CC="$ac_cv_prog_CC"
|
---|
684 | if test -n "$CC"; then
|
---|
685 | echo "$ac_t""$CC" 1>&6
|
---|
686 | else
|
---|
687 | echo "$ac_t""no" 1>&6
|
---|
688 | fi
|
---|
689 | ;;
|
---|
690 | esac
|
---|
691 | fi
|
---|
692 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
693 | fi
|
---|
694 |
|
---|
695 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
696 | echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
697 |
|
---|
698 | ac_ext=c
|
---|
699 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
700 | ac_cpp='$CPP $CPPFLAGS'
|
---|
701 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
702 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
703 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
704 |
|
---|
705 | cat > conftest.$ac_ext << EOF
|
---|
706 |
|
---|
707 | #line 708 "configure"
|
---|
708 | #include "confdefs.h"
|
---|
709 |
|
---|
710 | main(){return(0);}
|
---|
711 | EOF
|
---|
712 | if { (eval echo configure:713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
713 | ac_cv_prog_cc_works=yes
|
---|
714 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
715 | if (./conftest; exit) 2>/dev/null; then
|
---|
716 | ac_cv_prog_cc_cross=no
|
---|
717 | else
|
---|
718 | ac_cv_prog_cc_cross=yes
|
---|
719 | fi
|
---|
720 | else
|
---|
721 | echo "configure: failed program was:" >&5
|
---|
722 | cat conftest.$ac_ext >&5
|
---|
723 | ac_cv_prog_cc_works=no
|
---|
724 | fi
|
---|
725 | rm -fr conftest*
|
---|
726 | ac_ext=c
|
---|
727 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
728 | ac_cpp='$CPP $CPPFLAGS'
|
---|
729 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
730 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
731 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
732 |
|
---|
733 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
734 | if test $ac_cv_prog_cc_works = no; then
|
---|
735 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
736 | fi
|
---|
737 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
738 | echo "configure:739: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
739 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
740 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
741 |
|
---|
742 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
743 | echo "configure:744: checking whether we are using GNU C" >&5
|
---|
744 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
745 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
746 | else
|
---|
747 | cat > conftest.c <<EOF
|
---|
748 | #ifdef __GNUC__
|
---|
749 | yes;
|
---|
750 | #endif
|
---|
751 | EOF
|
---|
752 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
753 | ac_cv_prog_gcc=yes
|
---|
754 | else
|
---|
755 | ac_cv_prog_gcc=no
|
---|
756 | fi
|
---|
757 | fi
|
---|
758 |
|
---|
759 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
760 |
|
---|
761 | if test $ac_cv_prog_gcc = yes; then
|
---|
762 | GCC=yes
|
---|
763 | else
|
---|
764 | GCC=
|
---|
765 | fi
|
---|
766 |
|
---|
767 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
768 | ac_save_CFLAGS="$CFLAGS"
|
---|
769 | CFLAGS=
|
---|
770 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
771 | echo "configure:772: checking whether ${CC-cc} accepts -g" >&5
|
---|
772 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
773 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
774 | else
|
---|
775 | echo 'void f(){}' > conftest.c
|
---|
776 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
777 | ac_cv_prog_cc_g=yes
|
---|
778 | else
|
---|
779 | ac_cv_prog_cc_g=no
|
---|
780 | fi
|
---|
781 | rm -f conftest*
|
---|
782 |
|
---|
783 | fi
|
---|
784 |
|
---|
785 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
786 | if test "$ac_test_CFLAGS" = set; then
|
---|
787 | CFLAGS="$ac_save_CFLAGS"
|
---|
788 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
789 | if test "$GCC" = yes; then
|
---|
790 | CFLAGS="-g -O2"
|
---|
791 | else
|
---|
792 | CFLAGS="-g"
|
---|
793 | fi
|
---|
794 | else
|
---|
795 | if test "$GCC" = yes; then
|
---|
796 | CFLAGS="-O2"
|
---|
797 | else
|
---|
798 | CFLAGS=
|
---|
799 | fi
|
---|
800 | fi
|
---|
801 |
|
---|
802 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
803 | do
|
---|
804 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
805 | set dummy $ac_prog; ac_word=$2
|
---|
806 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
807 | echo "configure:808: checking for $ac_word" >&5
|
---|
808 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
809 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
810 | else
|
---|
811 | if test -n "$CXX"; then
|
---|
812 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
813 | else
|
---|
814 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
815 | ac_dummy="$PATH"
|
---|
816 | for ac_dir in $ac_dummy; do
|
---|
817 | test -z "$ac_dir" && ac_dir=.
|
---|
818 | if test -f $ac_dir/$ac_word; then
|
---|
819 | ac_cv_prog_CXX="$ac_prog"
|
---|
820 | break
|
---|
821 | fi
|
---|
822 | done
|
---|
823 | IFS="$ac_save_ifs"
|
---|
824 | fi
|
---|
825 | fi
|
---|
826 | CXX="$ac_cv_prog_CXX"
|
---|
827 | if test -n "$CXX"; then
|
---|
828 | echo "$ac_t""$CXX" 1>&6
|
---|
829 | else
|
---|
830 | echo "$ac_t""no" 1>&6
|
---|
831 | fi
|
---|
832 |
|
---|
833 | test -n "$CXX" && break
|
---|
834 | done
|
---|
835 | test -n "$CXX" || CXX="gcc"
|
---|
836 |
|
---|
837 |
|
---|
838 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
839 | echo "configure:840: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
840 |
|
---|
841 | ac_ext=C
|
---|
842 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
843 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
844 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
845 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
846 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
847 |
|
---|
848 | cat > conftest.$ac_ext << EOF
|
---|
849 |
|
---|
850 | #line 851 "configure"
|
---|
851 | #include "confdefs.h"
|
---|
852 |
|
---|
853 | int main(){return(0);}
|
---|
854 | EOF
|
---|
855 | if { (eval echo configure:856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
856 | ac_cv_prog_cxx_works=yes
|
---|
857 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
858 | if (./conftest; exit) 2>/dev/null; then
|
---|
859 | ac_cv_prog_cxx_cross=no
|
---|
860 | else
|
---|
861 | ac_cv_prog_cxx_cross=yes
|
---|
862 | fi
|
---|
863 | else
|
---|
864 | echo "configure: failed program was:" >&5
|
---|
865 | cat conftest.$ac_ext >&5
|
---|
866 | ac_cv_prog_cxx_works=no
|
---|
867 | fi
|
---|
868 | rm -fr conftest*
|
---|
869 | ac_ext=c
|
---|
870 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
871 | ac_cpp='$CPP $CPPFLAGS'
|
---|
872 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
873 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
874 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
875 |
|
---|
876 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
877 | if test $ac_cv_prog_cxx_works = no; then
|
---|
878 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
879 | fi
|
---|
880 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
881 | echo "configure:882: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
882 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
883 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
884 |
|
---|
885 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
886 | echo "configure:887: checking whether we are using GNU C++" >&5
|
---|
887 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
888 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
889 | else
|
---|
890 | cat > conftest.C <<EOF
|
---|
891 | #ifdef __GNUC__
|
---|
892 | yes;
|
---|
893 | #endif
|
---|
894 | EOF
|
---|
895 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
896 | ac_cv_prog_gxx=yes
|
---|
897 | else
|
---|
898 | ac_cv_prog_gxx=no
|
---|
899 | fi
|
---|
900 | fi
|
---|
901 |
|
---|
902 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
903 |
|
---|
904 | if test $ac_cv_prog_gxx = yes; then
|
---|
905 | GXX=yes
|
---|
906 | else
|
---|
907 | GXX=
|
---|
908 | fi
|
---|
909 |
|
---|
910 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
911 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
912 | CXXFLAGS=
|
---|
913 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
914 | echo "configure:915: checking whether ${CXX-g++} accepts -g" >&5
|
---|
915 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
916 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
917 | else
|
---|
918 | echo 'void f(){}' > conftest.cc
|
---|
919 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
920 | ac_cv_prog_cxx_g=yes
|
---|
921 | else
|
---|
922 | ac_cv_prog_cxx_g=no
|
---|
923 | fi
|
---|
924 | rm -f conftest*
|
---|
925 |
|
---|
926 | fi
|
---|
927 |
|
---|
928 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
929 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
930 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
931 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
932 | if test "$GXX" = yes; then
|
---|
933 | CXXFLAGS="-g -O2"
|
---|
934 | else
|
---|
935 | CXXFLAGS="-g"
|
---|
936 | fi
|
---|
937 | else
|
---|
938 | if test "$GXX" = yes; then
|
---|
939 | CXXFLAGS="-O2"
|
---|
940 | else
|
---|
941 | CXXFLAGS=
|
---|
942 | fi
|
---|
943 | fi
|
---|
944 |
|
---|
945 | for ac_prog in mawk gawk nawk awk
|
---|
946 | do
|
---|
947 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
948 | set dummy $ac_prog; ac_word=$2
|
---|
949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
950 | echo "configure:951: checking for $ac_word" >&5
|
---|
951 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
---|
952 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
953 | else
|
---|
954 | if test -n "$AWK"; then
|
---|
955 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
956 | else
|
---|
957 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
958 | ac_dummy="$PATH"
|
---|
959 | for ac_dir in $ac_dummy; do
|
---|
960 | test -z "$ac_dir" && ac_dir=.
|
---|
961 | if test -f $ac_dir/$ac_word; then
|
---|
962 | ac_cv_prog_AWK="$ac_prog"
|
---|
963 | break
|
---|
964 | fi
|
---|
965 | done
|
---|
966 | IFS="$ac_save_ifs"
|
---|
967 | fi
|
---|
968 | fi
|
---|
969 | AWK="$ac_cv_prog_AWK"
|
---|
970 | if test -n "$AWK"; then
|
---|
971 | echo "$ac_t""$AWK" 1>&6
|
---|
972 | else
|
---|
973 | echo "$ac_t""no" 1>&6
|
---|
974 | fi
|
---|
975 |
|
---|
976 | test -n "$AWK" && break
|
---|
977 | done
|
---|
978 |
|
---|
979 | for ac_prog in 'bison -y' byacc
|
---|
980 | do
|
---|
981 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
982 | set dummy $ac_prog; ac_word=$2
|
---|
983 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
984 | echo "configure:985: checking for $ac_word" >&5
|
---|
985 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
---|
986 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
987 | else
|
---|
988 | if test -n "$YACC"; then
|
---|
989 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
990 | else
|
---|
991 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
992 | ac_dummy="$PATH"
|
---|
993 | for ac_dir in $ac_dummy; do
|
---|
994 | test -z "$ac_dir" && ac_dir=.
|
---|
995 | if test -f $ac_dir/$ac_word; then
|
---|
996 | ac_cv_prog_YACC="$ac_prog"
|
---|
997 | break
|
---|
998 | fi
|
---|
999 | done
|
---|
1000 | IFS="$ac_save_ifs"
|
---|
1001 | fi
|
---|
1002 | fi
|
---|
1003 | YACC="$ac_cv_prog_YACC"
|
---|
1004 | if test -n "$YACC"; then
|
---|
1005 | echo "$ac_t""$YACC" 1>&6
|
---|
1006 | else
|
---|
1007 | echo "$ac_t""no" 1>&6
|
---|
1008 | fi
|
---|
1009 |
|
---|
1010 | test -n "$YACC" && break
|
---|
1011 | done
|
---|
1012 | test -n "$YACC" || YACC="yacc"
|
---|
1013 |
|
---|
1014 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1015 | echo "configure:1016: checking whether ln -s works" >&5
|
---|
1016 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1017 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1018 | else
|
---|
1019 | rm -f conftestdata
|
---|
1020 | if ln -s X conftestdata 2>/dev/null
|
---|
1021 | then
|
---|
1022 | rm -f conftestdata
|
---|
1023 | ac_cv_prog_LN_S="ln -s"
|
---|
1024 | else
|
---|
1025 | ac_cv_prog_LN_S=ln
|
---|
1026 | fi
|
---|
1027 | fi
|
---|
1028 | LN_S="$ac_cv_prog_LN_S"
|
---|
1029 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1030 | echo "$ac_t""yes" 1>&6
|
---|
1031 | else
|
---|
1032 | echo "$ac_t""no" 1>&6
|
---|
1033 | fi
|
---|
1034 |
|
---|
1035 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1036 | echo "configure:1037: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1037 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1038 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1039 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1040 | else
|
---|
1041 | cat > conftestmake <<\EOF
|
---|
1042 | all:
|
---|
1043 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1044 | EOF
|
---|
1045 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1046 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1047 | if test -n "$ac_maketemp"; then
|
---|
1048 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1049 | else
|
---|
1050 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1051 | fi
|
---|
1052 | rm -f conftestmake
|
---|
1053 | fi
|
---|
1054 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1055 | echo "$ac_t""yes" 1>&6
|
---|
1056 | SET_MAKE=
|
---|
1057 | else
|
---|
1058 | echo "$ac_t""no" 1>&6
|
---|
1059 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1060 | fi
|
---|
1061 |
|
---|
1062 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1063 | set dummy ranlib; ac_word=$2
|
---|
1064 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1065 | echo "configure:1066: checking for $ac_word" >&5
|
---|
1066 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1067 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1068 | else
|
---|
1069 | if test -n "$RANLIB"; then
|
---|
1070 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1071 | else
|
---|
1072 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1073 | ac_dummy="$PATH"
|
---|
1074 | for ac_dir in $ac_dummy; do
|
---|
1075 | test -z "$ac_dir" && ac_dir=.
|
---|
1076 | if test -f $ac_dir/$ac_word; then
|
---|
1077 | ac_cv_prog_RANLIB="ranlib"
|
---|
1078 | break
|
---|
1079 | fi
|
---|
1080 | done
|
---|
1081 | IFS="$ac_save_ifs"
|
---|
1082 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1083 | fi
|
---|
1084 | fi
|
---|
1085 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1086 | if test -n "$RANLIB"; then
|
---|
1087 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1088 | else
|
---|
1089 | echo "$ac_t""no" 1>&6
|
---|
1090 | fi
|
---|
1091 |
|
---|
1092 |
|
---|
1093 |
|
---|
1094 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
1095 | echo "configure:1096: checking how to run the C preprocessor" >&5
|
---|
1096 | # On Suns, sometimes $CPP names a directory.
|
---|
1097 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
1098 | CPP=
|
---|
1099 | fi
|
---|
1100 | if test -z "$CPP"; then
|
---|
1101 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
1102 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1103 | else
|
---|
1104 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
1105 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
1106 | CPP="${CC-cc} -E"
|
---|
1107 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
1108 | # not just through cpp.
|
---|
1109 | cat > conftest.$ac_ext <<EOF
|
---|
1110 | #line 1111 "configure"
|
---|
1111 | #include "confdefs.h"
|
---|
1112 | #include <assert.h>
|
---|
1113 | Syntax Error
|
---|
1114 | EOF
|
---|
1115 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1116 | { (eval echo configure:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1117 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1118 | if test -z "$ac_err"; then
|
---|
1119 | :
|
---|
1120 | else
|
---|
1121 | echo "$ac_err" >&5
|
---|
1122 | echo "configure: failed program was:" >&5
|
---|
1123 | cat conftest.$ac_ext >&5
|
---|
1124 | rm -rf conftest*
|
---|
1125 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
1126 | cat > conftest.$ac_ext <<EOF
|
---|
1127 | #line 1128 "configure"
|
---|
1128 | #include "confdefs.h"
|
---|
1129 | #include <assert.h>
|
---|
1130 | Syntax Error
|
---|
1131 | EOF
|
---|
1132 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1133 | { (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1134 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1135 | if test -z "$ac_err"; then
|
---|
1136 | :
|
---|
1137 | else
|
---|
1138 | echo "$ac_err" >&5
|
---|
1139 | echo "configure: failed program was:" >&5
|
---|
1140 | cat conftest.$ac_ext >&5
|
---|
1141 | rm -rf conftest*
|
---|
1142 | CPP="${CC-cc} -nologo -E"
|
---|
1143 | cat > conftest.$ac_ext <<EOF
|
---|
1144 | #line 1145 "configure"
|
---|
1145 | #include "confdefs.h"
|
---|
1146 | #include <assert.h>
|
---|
1147 | Syntax Error
|
---|
1148 | EOF
|
---|
1149 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1150 | { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1151 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1152 | if test -z "$ac_err"; then
|
---|
1153 | :
|
---|
1154 | else
|
---|
1155 | echo "$ac_err" >&5
|
---|
1156 | echo "configure: failed program was:" >&5
|
---|
1157 | cat conftest.$ac_ext >&5
|
---|
1158 | rm -rf conftest*
|
---|
1159 | CPP=/lib/cpp
|
---|
1160 | fi
|
---|
1161 | rm -f conftest*
|
---|
1162 | fi
|
---|
1163 | rm -f conftest*
|
---|
1164 | fi
|
---|
1165 | rm -f conftest*
|
---|
1166 | ac_cv_prog_CPP="$CPP"
|
---|
1167 | fi
|
---|
1168 | CPP="$ac_cv_prog_CPP"
|
---|
1169 | else
|
---|
1170 | ac_cv_prog_CPP="$CPP"
|
---|
1171 | fi
|
---|
1172 | echo "$ac_t""$CPP" 1>&6
|
---|
1173 |
|
---|
1174 | echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
---|
1175 | echo "configure:1176: checking for AIX" >&5
|
---|
1176 | cat > conftest.$ac_ext <<EOF
|
---|
1177 | #line 1178 "configure"
|
---|
1178 | #include "confdefs.h"
|
---|
1179 | #ifdef _AIX
|
---|
1180 | yes
|
---|
1181 | #endif
|
---|
1182 |
|
---|
1183 | EOF
|
---|
1184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1185 | egrep "yes" >/dev/null 2>&1; then
|
---|
1186 | rm -rf conftest*
|
---|
1187 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
---|
1188 | #define _ALL_SOURCE 1
|
---|
1189 | EOF
|
---|
1190 |
|
---|
1191 | else
|
---|
1192 | rm -rf conftest*
|
---|
1193 | echo "$ac_t""no" 1>&6
|
---|
1194 | fi
|
---|
1195 | rm -f conftest*
|
---|
1196 |
|
---|
1197 |
|
---|
1198 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
1199 | echo "configure:1200: checking for POSIXized ISC" >&5
|
---|
1200 | if test -d /etc/conf/kconfig.d &&
|
---|
1201 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
1202 | then
|
---|
1203 | echo "$ac_t""yes" 1>&6
|
---|
1204 | ISC=yes # If later tests want to check for ISC.
|
---|
1205 | cat >> confdefs.h <<\EOF
|
---|
1206 | #define _POSIX_SOURCE 1
|
---|
1207 | EOF
|
---|
1208 |
|
---|
1209 | if test "$GCC" = yes; then
|
---|
1210 | CC="$CC -posix"
|
---|
1211 | else
|
---|
1212 | CC="$CC -Xp"
|
---|
1213 | fi
|
---|
1214 | else
|
---|
1215 | echo "$ac_t""no" 1>&6
|
---|
1216 | ISC=
|
---|
1217 | fi
|
---|
1218 |
|
---|
1219 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
|
---|
1220 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
|
---|
1221 | echo "configure:1222: checking for minix/config.h" >&5
|
---|
1222 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1223 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1224 | else
|
---|
1225 | cat > conftest.$ac_ext <<EOF
|
---|
1226 | #line 1227 "configure"
|
---|
1227 | #include "confdefs.h"
|
---|
1228 | #include <minix/config.h>
|
---|
1229 | EOF
|
---|
1230 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1231 | { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1232 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1233 | if test -z "$ac_err"; then
|
---|
1234 | rm -rf conftest*
|
---|
1235 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1236 | else
|
---|
1237 | echo "$ac_err" >&5
|
---|
1238 | echo "configure: failed program was:" >&5
|
---|
1239 | cat conftest.$ac_ext >&5
|
---|
1240 | rm -rf conftest*
|
---|
1241 | eval "ac_cv_header_$ac_safe=no"
|
---|
1242 | fi
|
---|
1243 | rm -f conftest*
|
---|
1244 | fi
|
---|
1245 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1246 | echo "$ac_t""yes" 1>&6
|
---|
1247 | MINIX=yes
|
---|
1248 | else
|
---|
1249 | echo "$ac_t""no" 1>&6
|
---|
1250 | MINIX=
|
---|
1251 | fi
|
---|
1252 |
|
---|
1253 | if test "$MINIX" = yes; then
|
---|
1254 | cat >> confdefs.h <<\EOF
|
---|
1255 | #define _POSIX_SOURCE 1
|
---|
1256 | EOF
|
---|
1257 |
|
---|
1258 | cat >> confdefs.h <<\EOF
|
---|
1259 | #define _POSIX_1_SOURCE 2
|
---|
1260 | EOF
|
---|
1261 |
|
---|
1262 | cat >> confdefs.h <<\EOF
|
---|
1263 | #define _MINIX 1
|
---|
1264 | EOF
|
---|
1265 |
|
---|
1266 | fi
|
---|
1267 |
|
---|
1268 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
|
---|
1269 | echo "configure:1270: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
1270 | if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
|
---|
1271 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1272 | else
|
---|
1273 | ac_cv_prog_cc_stdc=no
|
---|
1274 | ac_save_CFLAGS="$CFLAGS"
|
---|
1275 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
1276 | # breaks some systems' header files.
|
---|
1277 | # AIX -qlanglvl=ansi
|
---|
1278 | # Ultrix and OSF/1 -std1
|
---|
1279 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
1280 | # SVR4 -Xc
|
---|
1281 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
1282 | do
|
---|
1283 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
1284 | cat > conftest.$ac_ext <<EOF
|
---|
1285 | #line 1286 "configure"
|
---|
1286 | #include "confdefs.h"
|
---|
1287 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
1288 | choke me
|
---|
1289 | #endif
|
---|
1290 |
|
---|
1291 | int main() {
|
---|
1292 | int test (int i, double x);
|
---|
1293 | struct s1 {int (*f) (int a);};
|
---|
1294 | struct s2 {int (*f) (double a);};
|
---|
1295 | ; return 0; }
|
---|
1296 | EOF
|
---|
1297 | if { (eval echo configure:1298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1298 | rm -rf conftest*
|
---|
1299 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
1300 | else
|
---|
1301 | echo "configure: failed program was:" >&5
|
---|
1302 | cat conftest.$ac_ext >&5
|
---|
1303 | fi
|
---|
1304 | rm -f conftest*
|
---|
1305 | done
|
---|
1306 | CFLAGS="$ac_save_CFLAGS"
|
---|
1307 |
|
---|
1308 | fi
|
---|
1309 |
|
---|
1310 | echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
|
---|
1311 | case "x$ac_cv_prog_cc_stdc" in
|
---|
1312 | x|xno) ;;
|
---|
1313 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
1314 | esac
|
---|
1315 |
|
---|
1316 |
|
---|
1317 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
|
---|
1318 | echo "configure:1319: checking for function prototypes" >&5
|
---|
1319 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
1320 | echo "$ac_t""yes" 1>&6
|
---|
1321 | cat >> confdefs.h <<\EOF
|
---|
1322 | #define PROTOTYPES 1
|
---|
1323 | EOF
|
---|
1324 |
|
---|
1325 | U= ANSI2KNR=
|
---|
1326 | else
|
---|
1327 | echo "$ac_t""no" 1>&6
|
---|
1328 | U=_ ANSI2KNR=ansi2knr
|
---|
1329 | fi
|
---|
1330 |
|
---|
1331 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
1332 | echo "configure:1333: checking for working const" >&5
|
---|
1333 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
1334 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1335 | else
|
---|
1336 | cat > conftest.$ac_ext <<EOF
|
---|
1337 | #line 1338 "configure"
|
---|
1338 | #include "confdefs.h"
|
---|
1339 |
|
---|
1340 | int main() {
|
---|
1341 |
|
---|
1342 | /* Ultrix mips cc rejects this. */
|
---|
1343 | typedef int charset[2]; const charset x;
|
---|
1344 | /* SunOS 4.1.1 cc rejects this. */
|
---|
1345 | char const *const *ccp;
|
---|
1346 | char **p;
|
---|
1347 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
1348 | struct point {int x, y;};
|
---|
1349 | static struct point const zero = {0,0};
|
---|
1350 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
1351 | It does not let you subtract one const X* pointer from another in an arm
|
---|
1352 | of an if-expression whose if-part is not a constant expression */
|
---|
1353 | const char *g = "string";
|
---|
1354 | ccp = &g + (g ? g-g : 0);
|
---|
1355 | /* HPUX 7.0 cc rejects these. */
|
---|
1356 | ++ccp;
|
---|
1357 | p = (char**) ccp;
|
---|
1358 | ccp = (char const *const *) p;
|
---|
1359 | { /* SCO 3.2v4 cc rejects this. */
|
---|
1360 | char *t;
|
---|
1361 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
1362 |
|
---|
1363 | *t++ = 0;
|
---|
1364 | }
|
---|
1365 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
1366 | int x[] = {25, 17};
|
---|
1367 | const int *foo = &x[0];
|
---|
1368 | ++foo;
|
---|
1369 | }
|
---|
1370 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
1371 | typedef const int *iptr;
|
---|
1372 | iptr p = 0;
|
---|
1373 | ++p;
|
---|
1374 | }
|
---|
1375 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
1376 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
1377 | struct s { int j; const int *ap[3]; };
|
---|
1378 | struct s *b; b->j = 5;
|
---|
1379 | }
|
---|
1380 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
1381 | const int foo = 10;
|
---|
1382 | }
|
---|
1383 |
|
---|
1384 | ; return 0; }
|
---|
1385 | EOF
|
---|
1386 | if { (eval echo configure:1387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1387 | rm -rf conftest*
|
---|
1388 | ac_cv_c_const=yes
|
---|
1389 | else
|
---|
1390 | echo "configure: failed program was:" >&5
|
---|
1391 | cat conftest.$ac_ext >&5
|
---|
1392 | rm -rf conftest*
|
---|
1393 | ac_cv_c_const=no
|
---|
1394 | fi
|
---|
1395 | rm -f conftest*
|
---|
1396 | fi
|
---|
1397 |
|
---|
1398 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
1399 | if test $ac_cv_c_const = no; then
|
---|
1400 | cat >> confdefs.h <<\EOF
|
---|
1401 | #define const
|
---|
1402 | EOF
|
---|
1403 |
|
---|
1404 | fi
|
---|
1405 |
|
---|
1406 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1407 | echo "configure:1408: checking for ANSI C header files" >&5
|
---|
1408 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1409 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1410 | else
|
---|
1411 | cat > conftest.$ac_ext <<EOF
|
---|
1412 | #line 1413 "configure"
|
---|
1413 | #include "confdefs.h"
|
---|
1414 | #include <stdlib.h>
|
---|
1415 | #include <stdarg.h>
|
---|
1416 | #include <string.h>
|
---|
1417 | #include <float.h>
|
---|
1418 | EOF
|
---|
1419 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1420 | { (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1421 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1422 | if test -z "$ac_err"; then
|
---|
1423 | rm -rf conftest*
|
---|
1424 | ac_cv_header_stdc=yes
|
---|
1425 | else
|
---|
1426 | echo "$ac_err" >&5
|
---|
1427 | echo "configure: failed program was:" >&5
|
---|
1428 | cat conftest.$ac_ext >&5
|
---|
1429 | rm -rf conftest*
|
---|
1430 | ac_cv_header_stdc=no
|
---|
1431 | fi
|
---|
1432 | rm -f conftest*
|
---|
1433 |
|
---|
1434 | if test $ac_cv_header_stdc = yes; then
|
---|
1435 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1436 | cat > conftest.$ac_ext <<EOF
|
---|
1437 | #line 1438 "configure"
|
---|
1438 | #include "confdefs.h"
|
---|
1439 | #include <string.h>
|
---|
1440 | EOF
|
---|
1441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1442 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1443 | :
|
---|
1444 | else
|
---|
1445 | rm -rf conftest*
|
---|
1446 | ac_cv_header_stdc=no
|
---|
1447 | fi
|
---|
1448 | rm -f conftest*
|
---|
1449 |
|
---|
1450 | fi
|
---|
1451 |
|
---|
1452 | if test $ac_cv_header_stdc = yes; then
|
---|
1453 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1454 | cat > conftest.$ac_ext <<EOF
|
---|
1455 | #line 1456 "configure"
|
---|
1456 | #include "confdefs.h"
|
---|
1457 | #include <stdlib.h>
|
---|
1458 | EOF
|
---|
1459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1460 | egrep "free" >/dev/null 2>&1; then
|
---|
1461 | :
|
---|
1462 | else
|
---|
1463 | rm -rf conftest*
|
---|
1464 | ac_cv_header_stdc=no
|
---|
1465 | fi
|
---|
1466 | rm -f conftest*
|
---|
1467 |
|
---|
1468 | fi
|
---|
1469 |
|
---|
1470 | if test $ac_cv_header_stdc = yes; then
|
---|
1471 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1472 | if test "$cross_compiling" = yes; then
|
---|
1473 | :
|
---|
1474 | else
|
---|
1475 | cat > conftest.$ac_ext <<EOF
|
---|
1476 | #line 1477 "configure"
|
---|
1477 | #include "confdefs.h"
|
---|
1478 | #include <ctype.h>
|
---|
1479 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1480 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1481 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1482 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1483 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1484 | exit (0); }
|
---|
1485 |
|
---|
1486 | EOF
|
---|
1487 | if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1488 | then
|
---|
1489 | :
|
---|
1490 | else
|
---|
1491 | echo "configure: failed program was:" >&5
|
---|
1492 | cat conftest.$ac_ext >&5
|
---|
1493 | rm -fr conftest*
|
---|
1494 | ac_cv_header_stdc=no
|
---|
1495 | fi
|
---|
1496 | rm -fr conftest*
|
---|
1497 | fi
|
---|
1498 |
|
---|
1499 | fi
|
---|
1500 | fi
|
---|
1501 |
|
---|
1502 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1503 | if test $ac_cv_header_stdc = yes; then
|
---|
1504 | cat >> confdefs.h <<\EOF
|
---|
1505 | #define STDC_HEADERS 1
|
---|
1506 | EOF
|
---|
1507 |
|
---|
1508 | fi
|
---|
1509 |
|
---|
1510 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
1511 | echo "configure:1512: checking for off_t" >&5
|
---|
1512 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
1513 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1514 | else
|
---|
1515 | cat > conftest.$ac_ext <<EOF
|
---|
1516 | #line 1517 "configure"
|
---|
1517 | #include "confdefs.h"
|
---|
1518 | #include <sys/types.h>
|
---|
1519 | #if STDC_HEADERS
|
---|
1520 | #include <stdlib.h>
|
---|
1521 | #include <stddef.h>
|
---|
1522 | #endif
|
---|
1523 | EOF
|
---|
1524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1525 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1526 | rm -rf conftest*
|
---|
1527 | ac_cv_type_off_t=yes
|
---|
1528 | else
|
---|
1529 | rm -rf conftest*
|
---|
1530 | ac_cv_type_off_t=no
|
---|
1531 | fi
|
---|
1532 | rm -f conftest*
|
---|
1533 |
|
---|
1534 | fi
|
---|
1535 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
1536 | if test $ac_cv_type_off_t = no; then
|
---|
1537 | cat >> confdefs.h <<\EOF
|
---|
1538 | #define off_t long
|
---|
1539 | EOF
|
---|
1540 |
|
---|
1541 | fi
|
---|
1542 |
|
---|
1543 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
1544 | echo "configure:1545: checking for size_t" >&5
|
---|
1545 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
1546 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1547 | else
|
---|
1548 | cat > conftest.$ac_ext <<EOF
|
---|
1549 | #line 1550 "configure"
|
---|
1550 | #include "confdefs.h"
|
---|
1551 | #include <sys/types.h>
|
---|
1552 | #if STDC_HEADERS
|
---|
1553 | #include <stdlib.h>
|
---|
1554 | #include <stddef.h>
|
---|
1555 | #endif
|
---|
1556 | EOF
|
---|
1557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1558 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1559 | rm -rf conftest*
|
---|
1560 | ac_cv_type_size_t=yes
|
---|
1561 | else
|
---|
1562 | rm -rf conftest*
|
---|
1563 | ac_cv_type_size_t=no
|
---|
1564 | fi
|
---|
1565 | rm -f conftest*
|
---|
1566 |
|
---|
1567 | fi
|
---|
1568 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
1569 | if test $ac_cv_type_size_t = no; then
|
---|
1570 | cat >> confdefs.h <<\EOF
|
---|
1571 | #define size_t unsigned
|
---|
1572 | EOF
|
---|
1573 |
|
---|
1574 | fi
|
---|
1575 |
|
---|
1576 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
1577 | echo "configure:1578: checking whether time.h and sys/time.h may both be included" >&5
|
---|
1578 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
1579 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1580 | else
|
---|
1581 | cat > conftest.$ac_ext <<EOF
|
---|
1582 | #line 1583 "configure"
|
---|
1583 | #include "confdefs.h"
|
---|
1584 | #include <sys/types.h>
|
---|
1585 | #include <sys/time.h>
|
---|
1586 | #include <time.h>
|
---|
1587 | int main() {
|
---|
1588 | struct tm *tp;
|
---|
1589 | ; return 0; }
|
---|
1590 | EOF
|
---|
1591 | if { (eval echo configure:1592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1592 | rm -rf conftest*
|
---|
1593 | ac_cv_header_time=yes
|
---|
1594 | else
|
---|
1595 | echo "configure: failed program was:" >&5
|
---|
1596 | cat conftest.$ac_ext >&5
|
---|
1597 | rm -rf conftest*
|
---|
1598 | ac_cv_header_time=no
|
---|
1599 | fi
|
---|
1600 | rm -f conftest*
|
---|
1601 | fi
|
---|
1602 |
|
---|
1603 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
1604 | if test $ac_cv_header_time = yes; then
|
---|
1605 | cat >> confdefs.h <<\EOF
|
---|
1606 | #define TIME_WITH_SYS_TIME 1
|
---|
1607 | EOF
|
---|
1608 |
|
---|
1609 | fi
|
---|
1610 |
|
---|
1611 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
---|
1612 | echo "configure:1613: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
1613 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
---|
1614 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1615 | else
|
---|
1616 | cat > conftest.$ac_ext <<EOF
|
---|
1617 | #line 1618 "configure"
|
---|
1618 | #include "confdefs.h"
|
---|
1619 | #include <sys/types.h>
|
---|
1620 | #include <time.h>
|
---|
1621 | int main() {
|
---|
1622 | struct tm *tp; tp->tm_sec;
|
---|
1623 | ; return 0; }
|
---|
1624 | EOF
|
---|
1625 | if { (eval echo configure:1626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1626 | rm -rf conftest*
|
---|
1627 | ac_cv_struct_tm=time.h
|
---|
1628 | else
|
---|
1629 | echo "configure: failed program was:" >&5
|
---|
1630 | cat conftest.$ac_ext >&5
|
---|
1631 | rm -rf conftest*
|
---|
1632 | ac_cv_struct_tm=sys/time.h
|
---|
1633 | fi
|
---|
1634 | rm -f conftest*
|
---|
1635 | fi
|
---|
1636 |
|
---|
1637 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
---|
1638 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
1639 | cat >> confdefs.h <<\EOF
|
---|
1640 | #define TM_IN_SYS_TIME 1
|
---|
1641 | EOF
|
---|
1642 |
|
---|
1643 | fi
|
---|
1644 |
|
---|
1645 |
|
---|
1646 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
1647 | cat > conftest.$ac_ext <<EOF
|
---|
1648 | #line 1649 "configure"
|
---|
1649 | #include "confdefs.h"
|
---|
1650 | #include <stdio.h>
|
---|
1651 |
|
---|
1652 | int main() {
|
---|
1653 | FILE *rubbish = popen("yes", "r");
|
---|
1654 | ; return 0; }
|
---|
1655 | EOF
|
---|
1656 | if { (eval echo configure:1657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1657 | :
|
---|
1658 | else
|
---|
1659 | echo "configure: failed program was:" >&5
|
---|
1660 | cat conftest.$ac_ext >&5
|
---|
1661 | rm -rf conftest*
|
---|
1662 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
1663 | fi
|
---|
1664 | rm -f conftest*
|
---|
1665 | fi
|
---|
1666 |
|
---|
1667 |
|
---|
1668 | echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
|
---|
1669 | echo "configure:1670: checking for main in -lg" >&5
|
---|
1670 | ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
|
---|
1671 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1672 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1673 | else
|
---|
1674 | ac_save_LIBS="$LIBS"
|
---|
1675 | LIBS="-lg $LIBS"
|
---|
1676 | cat > conftest.$ac_ext <<EOF
|
---|
1677 | #line 1678 "configure"
|
---|
1678 | #include "confdefs.h"
|
---|
1679 |
|
---|
1680 | int main() {
|
---|
1681 | main()
|
---|
1682 | ; return 0; }
|
---|
1683 | EOF
|
---|
1684 | if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1685 | rm -rf conftest*
|
---|
1686 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1687 | else
|
---|
1688 | echo "configure: failed program was:" >&5
|
---|
1689 | cat conftest.$ac_ext >&5
|
---|
1690 | rm -rf conftest*
|
---|
1691 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1692 | fi
|
---|
1693 | rm -f conftest*
|
---|
1694 | LIBS="$ac_save_LIBS"
|
---|
1695 |
|
---|
1696 | fi
|
---|
1697 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1698 | echo "$ac_t""yes" 1>&6
|
---|
1699 | ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1700 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1701 | cat >> confdefs.h <<EOF
|
---|
1702 | #define $ac_tr_lib 1
|
---|
1703 | EOF
|
---|
1704 |
|
---|
1705 | LIBS="-lg $LIBS"
|
---|
1706 |
|
---|
1707 | else
|
---|
1708 | echo "$ac_t""no" 1>&6
|
---|
1709 | fi
|
---|
1710 |
|
---|
1711 | echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
|
---|
1712 | echo "configure:1713: checking for main in -lgdbm" >&5
|
---|
1713 | ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
|
---|
1714 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1715 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1716 | else
|
---|
1717 | ac_save_LIBS="$LIBS"
|
---|
1718 | LIBS="-lgdbm $LIBS"
|
---|
1719 | cat > conftest.$ac_ext <<EOF
|
---|
1720 | #line 1721 "configure"
|
---|
1721 | #include "confdefs.h"
|
---|
1722 |
|
---|
1723 | int main() {
|
---|
1724 | main()
|
---|
1725 | ; return 0; }
|
---|
1726 | EOF
|
---|
1727 | if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1728 | rm -rf conftest*
|
---|
1729 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1730 | else
|
---|
1731 | echo "configure: failed program was:" >&5
|
---|
1732 | cat conftest.$ac_ext >&5
|
---|
1733 | rm -rf conftest*
|
---|
1734 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1735 | fi
|
---|
1736 | rm -f conftest*
|
---|
1737 | LIBS="$ac_save_LIBS"
|
---|
1738 |
|
---|
1739 | fi
|
---|
1740 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1741 | echo "$ac_t""yes" 1>&6
|
---|
1742 | ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1743 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1744 | cat >> confdefs.h <<EOF
|
---|
1745 | #define $ac_tr_lib 1
|
---|
1746 | EOF
|
---|
1747 |
|
---|
1748 | LIBS="-lgdbm $LIBS"
|
---|
1749 |
|
---|
1750 | else
|
---|
1751 | echo "$ac_t""no" 1>&6
|
---|
1752 | fi
|
---|
1753 |
|
---|
1754 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
---|
1755 | echo "configure:1756: checking for main in -lm" >&5
|
---|
1756 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
---|
1757 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1758 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1759 | else
|
---|
1760 | ac_save_LIBS="$LIBS"
|
---|
1761 | LIBS="-lm $LIBS"
|
---|
1762 | cat > conftest.$ac_ext <<EOF
|
---|
1763 | #line 1764 "configure"
|
---|
1764 | #include "confdefs.h"
|
---|
1765 |
|
---|
1766 | int main() {
|
---|
1767 | main()
|
---|
1768 | ; return 0; }
|
---|
1769 | EOF
|
---|
1770 | if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1771 | rm -rf conftest*
|
---|
1772 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1773 | else
|
---|
1774 | echo "configure: failed program was:" >&5
|
---|
1775 | cat conftest.$ac_ext >&5
|
---|
1776 | rm -rf conftest*
|
---|
1777 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1778 | fi
|
---|
1779 | rm -f conftest*
|
---|
1780 | LIBS="$ac_save_LIBS"
|
---|
1781 |
|
---|
1782 | fi
|
---|
1783 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1784 | echo "$ac_t""yes" 1>&6
|
---|
1785 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1786 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1787 | cat >> confdefs.h <<EOF
|
---|
1788 | #define $ac_tr_lib 1
|
---|
1789 | EOF
|
---|
1790 |
|
---|
1791 | LIBS="-lm $LIBS"
|
---|
1792 |
|
---|
1793 | else
|
---|
1794 | echo "$ac_t""no" 1>&6
|
---|
1795 | fi
|
---|
1796 |
|
---|
1797 | echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&6
|
---|
1798 | echo "configure:1799: checking for main in -lstdc" >&5
|
---|
1799 | ac_lib_var=`echo stdc'_'main | sed 'y%./+-%__p_%'`
|
---|
1800 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1801 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1802 | else
|
---|
1803 | ac_save_LIBS="$LIBS"
|
---|
1804 | LIBS="-lstdc $LIBS"
|
---|
1805 | cat > conftest.$ac_ext <<EOF
|
---|
1806 | #line 1807 "configure"
|
---|
1807 | #include "confdefs.h"
|
---|
1808 |
|
---|
1809 | int main() {
|
---|
1810 | main()
|
---|
1811 | ; return 0; }
|
---|
1812 | EOF
|
---|
1813 | if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1814 | rm -rf conftest*
|
---|
1815 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1816 | else
|
---|
1817 | echo "configure: failed program was:" >&5
|
---|
1818 | cat conftest.$ac_ext >&5
|
---|
1819 | rm -rf conftest*
|
---|
1820 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1821 | fi
|
---|
1822 | rm -f conftest*
|
---|
1823 | LIBS="$ac_save_LIBS"
|
---|
1824 |
|
---|
1825 | fi
|
---|
1826 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1827 | echo "$ac_t""yes" 1>&6
|
---|
1828 | ac_tr_lib=HAVE_LIB`echo stdc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1829 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1830 | cat >> confdefs.h <<EOF
|
---|
1831 | #define $ac_tr_lib 1
|
---|
1832 | EOF
|
---|
1833 |
|
---|
1834 | LIBS="-lstdc $LIBS"
|
---|
1835 |
|
---|
1836 | else
|
---|
1837 | echo "$ac_t""no" 1>&6
|
---|
1838 | fi
|
---|
1839 |
|
---|
1840 |
|
---|
1841 | ac_header_dirent=no
|
---|
1842 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
1843 | do
|
---|
1844 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
1845 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
1846 | echo "configure:1847: checking for $ac_hdr that defines DIR" >&5
|
---|
1847 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
1848 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1849 | else
|
---|
1850 | cat > conftest.$ac_ext <<EOF
|
---|
1851 | #line 1852 "configure"
|
---|
1852 | #include "confdefs.h"
|
---|
1853 | #include <sys/types.h>
|
---|
1854 | #include <$ac_hdr>
|
---|
1855 | int main() {
|
---|
1856 | DIR *dirp = 0;
|
---|
1857 | ; return 0; }
|
---|
1858 | EOF
|
---|
1859 | if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1860 | rm -rf conftest*
|
---|
1861 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
1862 | else
|
---|
1863 | echo "configure: failed program was:" >&5
|
---|
1864 | cat conftest.$ac_ext >&5
|
---|
1865 | rm -rf conftest*
|
---|
1866 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
1867 | fi
|
---|
1868 | rm -f conftest*
|
---|
1869 | fi
|
---|
1870 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
1871 | echo "$ac_t""yes" 1>&6
|
---|
1872 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
1873 | cat >> confdefs.h <<EOF
|
---|
1874 | #define $ac_tr_hdr 1
|
---|
1875 | EOF
|
---|
1876 | ac_header_dirent=$ac_hdr; break
|
---|
1877 | else
|
---|
1878 | echo "$ac_t""no" 1>&6
|
---|
1879 | fi
|
---|
1880 | done
|
---|
1881 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
1882 | if test $ac_header_dirent = dirent.h; then
|
---|
1883 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
1884 | echo "configure:1885: checking for opendir in -ldir" >&5
|
---|
1885 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
1886 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1887 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1888 | else
|
---|
1889 | ac_save_LIBS="$LIBS"
|
---|
1890 | LIBS="-ldir $LIBS"
|
---|
1891 | cat > conftest.$ac_ext <<EOF
|
---|
1892 | #line 1893 "configure"
|
---|
1893 | #include "confdefs.h"
|
---|
1894 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1895 | /* We use char because int might match the return type of a gcc2
|
---|
1896 | builtin and then its argument prototype would still apply. */
|
---|
1897 | char opendir();
|
---|
1898 |
|
---|
1899 | int main() {
|
---|
1900 | opendir()
|
---|
1901 | ; return 0; }
|
---|
1902 | EOF
|
---|
1903 | if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1904 | rm -rf conftest*
|
---|
1905 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1906 | else
|
---|
1907 | echo "configure: failed program was:" >&5
|
---|
1908 | cat conftest.$ac_ext >&5
|
---|
1909 | rm -rf conftest*
|
---|
1910 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1911 | fi
|
---|
1912 | rm -f conftest*
|
---|
1913 | LIBS="$ac_save_LIBS"
|
---|
1914 |
|
---|
1915 | fi
|
---|
1916 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1917 | echo "$ac_t""yes" 1>&6
|
---|
1918 | LIBS="$LIBS -ldir"
|
---|
1919 | else
|
---|
1920 | echo "$ac_t""no" 1>&6
|
---|
1921 | fi
|
---|
1922 |
|
---|
1923 | else
|
---|
1924 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
1925 | echo "configure:1926: checking for opendir in -lx" >&5
|
---|
1926 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
1927 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1928 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1929 | else
|
---|
1930 | ac_save_LIBS="$LIBS"
|
---|
1931 | LIBS="-lx $LIBS"
|
---|
1932 | cat > conftest.$ac_ext <<EOF
|
---|
1933 | #line 1934 "configure"
|
---|
1934 | #include "confdefs.h"
|
---|
1935 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1936 | /* We use char because int might match the return type of a gcc2
|
---|
1937 | builtin and then its argument prototype would still apply. */
|
---|
1938 | char opendir();
|
---|
1939 |
|
---|
1940 | int main() {
|
---|
1941 | opendir()
|
---|
1942 | ; return 0; }
|
---|
1943 | EOF
|
---|
1944 | if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1945 | rm -rf conftest*
|
---|
1946 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1947 | else
|
---|
1948 | echo "configure: failed program was:" >&5
|
---|
1949 | cat conftest.$ac_ext >&5
|
---|
1950 | rm -rf conftest*
|
---|
1951 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1952 | fi
|
---|
1953 | rm -f conftest*
|
---|
1954 | LIBS="$ac_save_LIBS"
|
---|
1955 |
|
---|
1956 | fi
|
---|
1957 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1958 | echo "$ac_t""yes" 1>&6
|
---|
1959 | LIBS="$LIBS -lx"
|
---|
1960 | else
|
---|
1961 | echo "$ac_t""no" 1>&6
|
---|
1962 | fi
|
---|
1963 |
|
---|
1964 | fi
|
---|
1965 |
|
---|
1966 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1967 | echo "configure:1968: checking for ANSI C header files" >&5
|
---|
1968 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1969 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1970 | else
|
---|
1971 | cat > conftest.$ac_ext <<EOF
|
---|
1972 | #line 1973 "configure"
|
---|
1973 | #include "confdefs.h"
|
---|
1974 | #include <stdlib.h>
|
---|
1975 | #include <stdarg.h>
|
---|
1976 | #include <string.h>
|
---|
1977 | #include <float.h>
|
---|
1978 | EOF
|
---|
1979 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1980 | { (eval echo configure:1981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1981 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1982 | if test -z "$ac_err"; then
|
---|
1983 | rm -rf conftest*
|
---|
1984 | ac_cv_header_stdc=yes
|
---|
1985 | else
|
---|
1986 | echo "$ac_err" >&5
|
---|
1987 | echo "configure: failed program was:" >&5
|
---|
1988 | cat conftest.$ac_ext >&5
|
---|
1989 | rm -rf conftest*
|
---|
1990 | ac_cv_header_stdc=no
|
---|
1991 | fi
|
---|
1992 | rm -f conftest*
|
---|
1993 |
|
---|
1994 | if test $ac_cv_header_stdc = yes; then
|
---|
1995 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1996 | cat > conftest.$ac_ext <<EOF
|
---|
1997 | #line 1998 "configure"
|
---|
1998 | #include "confdefs.h"
|
---|
1999 | #include <string.h>
|
---|
2000 | EOF
|
---|
2001 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2002 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2003 | :
|
---|
2004 | else
|
---|
2005 | rm -rf conftest*
|
---|
2006 | ac_cv_header_stdc=no
|
---|
2007 | fi
|
---|
2008 | rm -f conftest*
|
---|
2009 |
|
---|
2010 | fi
|
---|
2011 |
|
---|
2012 | if test $ac_cv_header_stdc = yes; then
|
---|
2013 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2014 | cat > conftest.$ac_ext <<EOF
|
---|
2015 | #line 2016 "configure"
|
---|
2016 | #include "confdefs.h"
|
---|
2017 | #include <stdlib.h>
|
---|
2018 | EOF
|
---|
2019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2020 | egrep "free" >/dev/null 2>&1; then
|
---|
2021 | :
|
---|
2022 | else
|
---|
2023 | rm -rf conftest*
|
---|
2024 | ac_cv_header_stdc=no
|
---|
2025 | fi
|
---|
2026 | rm -f conftest*
|
---|
2027 |
|
---|
2028 | fi
|
---|
2029 |
|
---|
2030 | if test $ac_cv_header_stdc = yes; then
|
---|
2031 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2032 | if test "$cross_compiling" = yes; then
|
---|
2033 | :
|
---|
2034 | else
|
---|
2035 | cat > conftest.$ac_ext <<EOF
|
---|
2036 | #line 2037 "configure"
|
---|
2037 | #include "confdefs.h"
|
---|
2038 | #include <ctype.h>
|
---|
2039 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2040 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2041 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2042 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2043 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2044 | exit (0); }
|
---|
2045 |
|
---|
2046 | EOF
|
---|
2047 | if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2048 | then
|
---|
2049 | :
|
---|
2050 | else
|
---|
2051 | echo "configure: failed program was:" >&5
|
---|
2052 | cat conftest.$ac_ext >&5
|
---|
2053 | rm -fr conftest*
|
---|
2054 | ac_cv_header_stdc=no
|
---|
2055 | fi
|
---|
2056 | rm -fr conftest*
|
---|
2057 | fi
|
---|
2058 |
|
---|
2059 | fi
|
---|
2060 | fi
|
---|
2061 |
|
---|
2062 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2063 | if test $ac_cv_header_stdc = yes; then
|
---|
2064 | cat >> confdefs.h <<\EOF
|
---|
2065 | #define STDC_HEADERS 1
|
---|
2066 | EOF
|
---|
2067 |
|
---|
2068 | fi
|
---|
2069 |
|
---|
2070 | for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
2071 | do
|
---|
2072 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
2073 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
2074 | echo "configure:2075: checking for $ac_hdr" >&5
|
---|
2075 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
2076 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2077 | else
|
---|
2078 | cat > conftest.$ac_ext <<EOF
|
---|
2079 | #line 2080 "configure"
|
---|
2080 | #include "confdefs.h"
|
---|
2081 | #include <$ac_hdr>
|
---|
2082 | EOF
|
---|
2083 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2084 | { (eval echo configure:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2085 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2086 | if test -z "$ac_err"; then
|
---|
2087 | rm -rf conftest*
|
---|
2088 | eval "ac_cv_header_$ac_safe=yes"
|
---|
2089 | else
|
---|
2090 | echo "$ac_err" >&5
|
---|
2091 | echo "configure: failed program was:" >&5
|
---|
2092 | cat conftest.$ac_ext >&5
|
---|
2093 | rm -rf conftest*
|
---|
2094 | eval "ac_cv_header_$ac_safe=no"
|
---|
2095 | fi
|
---|
2096 | rm -f conftest*
|
---|
2097 | fi
|
---|
2098 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
2099 | echo "$ac_t""yes" 1>&6
|
---|
2100 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
2101 | cat >> confdefs.h <<EOF
|
---|
2102 | #define $ac_tr_hdr 1
|
---|
2103 | EOF
|
---|
2104 |
|
---|
2105 | else
|
---|
2106 | echo "$ac_t""no" 1>&6
|
---|
2107 | fi
|
---|
2108 | done
|
---|
2109 |
|
---|
2110 | cat > conftest.$ac_ext <<EOF
|
---|
2111 | #line 2112 "configure"
|
---|
2112 | #include "confdefs.h"
|
---|
2113 | #include <stdio.h>
|
---|
2114 | EOF
|
---|
2115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2116 | egrep "fread" >/dev/null 2>&1; then
|
---|
2117 | rm -rf conftest*
|
---|
2118 | cat >> confdefs.h <<\EOF
|
---|
2119 | #define HAVE_FREAD_DECL 1
|
---|
2120 | EOF
|
---|
2121 |
|
---|
2122 | fi
|
---|
2123 | rm -f conftest*
|
---|
2124 |
|
---|
2125 | cat > conftest.$ac_ext <<EOF
|
---|
2126 | #line 2127 "configure"
|
---|
2127 | #include "confdefs.h"
|
---|
2128 | #include <stdio.h>
|
---|
2129 | EOF
|
---|
2130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2131 | egrep "fgetc" >/dev/null 2>&1; then
|
---|
2132 | rm -rf conftest*
|
---|
2133 | cat >> confdefs.h <<\EOF
|
---|
2134 | #define HAVE_FGETC_DECL 1
|
---|
2135 | EOF
|
---|
2136 |
|
---|
2137 | fi
|
---|
2138 | rm -f conftest*
|
---|
2139 |
|
---|
2140 | cat > conftest.$ac_ext <<EOF
|
---|
2141 | #line 2142 "configure"
|
---|
2142 | #include "confdefs.h"
|
---|
2143 | #include <sys/procfs.h>
|
---|
2144 | EOF
|
---|
2145 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2146 | egrep "pr_brksize" >/dev/null 2>&1; then
|
---|
2147 | rm -rf conftest*
|
---|
2148 | cat >> confdefs.h <<\EOF
|
---|
2149 | #define HAVE_PR_BRKSIZE 1
|
---|
2150 | EOF
|
---|
2151 |
|
---|
2152 | fi
|
---|
2153 | rm -f conftest*
|
---|
2154 |
|
---|
2155 |
|
---|
2156 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
2157 | # for constant arguments. Useless!
|
---|
2158 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
2159 | echo "configure:2160: checking for working alloca.h" >&5
|
---|
2160 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
2161 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2162 | else
|
---|
2163 | cat > conftest.$ac_ext <<EOF
|
---|
2164 | #line 2165 "configure"
|
---|
2165 | #include "confdefs.h"
|
---|
2166 | #include <alloca.h>
|
---|
2167 | int main() {
|
---|
2168 | char *p = alloca(2 * sizeof(int));
|
---|
2169 | ; return 0; }
|
---|
2170 | EOF
|
---|
2171 | if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2172 | rm -rf conftest*
|
---|
2173 | ac_cv_header_alloca_h=yes
|
---|
2174 | else
|
---|
2175 | echo "configure: failed program was:" >&5
|
---|
2176 | cat conftest.$ac_ext >&5
|
---|
2177 | rm -rf conftest*
|
---|
2178 | ac_cv_header_alloca_h=no
|
---|
2179 | fi
|
---|
2180 | rm -f conftest*
|
---|
2181 | fi
|
---|
2182 |
|
---|
2183 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
2184 | if test $ac_cv_header_alloca_h = yes; then
|
---|
2185 | cat >> confdefs.h <<\EOF
|
---|
2186 | #define HAVE_ALLOCA_H 1
|
---|
2187 | EOF
|
---|
2188 |
|
---|
2189 | fi
|
---|
2190 |
|
---|
2191 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
2192 | echo "configure:2193: checking for alloca" >&5
|
---|
2193 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
2194 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2195 | else
|
---|
2196 | cat > conftest.$ac_ext <<EOF
|
---|
2197 | #line 2198 "configure"
|
---|
2198 | #include "confdefs.h"
|
---|
2199 |
|
---|
2200 | #ifdef __GNUC__
|
---|
2201 | # define alloca __builtin_alloca
|
---|
2202 | #else
|
---|
2203 | # ifdef _MSC_VER
|
---|
2204 | # include <malloc.h>
|
---|
2205 | # define alloca _alloca
|
---|
2206 | # else
|
---|
2207 | # if HAVE_ALLOCA_H
|
---|
2208 | # include <alloca.h>
|
---|
2209 | # else
|
---|
2210 | # ifdef _AIX
|
---|
2211 | #pragma alloca
|
---|
2212 | # else
|
---|
2213 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
2214 | char *alloca ();
|
---|
2215 | # endif
|
---|
2216 | # endif
|
---|
2217 | # endif
|
---|
2218 | # endif
|
---|
2219 | #endif
|
---|
2220 |
|
---|
2221 | int main() {
|
---|
2222 | char *p = (char *) alloca(1);
|
---|
2223 | ; return 0; }
|
---|
2224 | EOF
|
---|
2225 | if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2226 | rm -rf conftest*
|
---|
2227 | ac_cv_func_alloca_works=yes
|
---|
2228 | else
|
---|
2229 | echo "configure: failed program was:" >&5
|
---|
2230 | cat conftest.$ac_ext >&5
|
---|
2231 | rm -rf conftest*
|
---|
2232 | ac_cv_func_alloca_works=no
|
---|
2233 | fi
|
---|
2234 | rm -f conftest*
|
---|
2235 | fi
|
---|
2236 |
|
---|
2237 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
2238 | if test $ac_cv_func_alloca_works = yes; then
|
---|
2239 | cat >> confdefs.h <<\EOF
|
---|
2240 | #define HAVE_ALLOCA 1
|
---|
2241 | EOF
|
---|
2242 |
|
---|
2243 | fi
|
---|
2244 |
|
---|
2245 | if test $ac_cv_func_alloca_works = no; then
|
---|
2246 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
2247 | # that cause trouble. Some versions do not even contain alloca or
|
---|
2248 | # contain a buggy version. If you still want to use their alloca,
|
---|
2249 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
2250 | ALLOCA=alloca.${ac_objext}
|
---|
2251 | cat >> confdefs.h <<\EOF
|
---|
2252 | #define C_ALLOCA 1
|
---|
2253 | EOF
|
---|
2254 |
|
---|
2255 |
|
---|
2256 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
2257 | echo "configure:2258: checking whether alloca needs Cray hooks" >&5
|
---|
2258 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
2259 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2260 | else
|
---|
2261 | cat > conftest.$ac_ext <<EOF
|
---|
2262 | #line 2263 "configure"
|
---|
2263 | #include "confdefs.h"
|
---|
2264 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
2265 | webecray
|
---|
2266 | #else
|
---|
2267 | wenotbecray
|
---|
2268 | #endif
|
---|
2269 |
|
---|
2270 | EOF
|
---|
2271 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2272 | egrep "webecray" >/dev/null 2>&1; then
|
---|
2273 | rm -rf conftest*
|
---|
2274 | ac_cv_os_cray=yes
|
---|
2275 | else
|
---|
2276 | rm -rf conftest*
|
---|
2277 | ac_cv_os_cray=no
|
---|
2278 | fi
|
---|
2279 | rm -f conftest*
|
---|
2280 |
|
---|
2281 | fi
|
---|
2282 |
|
---|
2283 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
2284 | if test $ac_cv_os_cray = yes; then
|
---|
2285 | for ac_func in _getb67 GETB67 getb67; do
|
---|
2286 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2287 | echo "configure:2288: checking for $ac_func" >&5
|
---|
2288 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2289 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2290 | else
|
---|
2291 | cat > conftest.$ac_ext <<EOF
|
---|
2292 | #line 2293 "configure"
|
---|
2293 | #include "confdefs.h"
|
---|
2294 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2295 | which can conflict with char $ac_func(); below. */
|
---|
2296 | #include <assert.h>
|
---|
2297 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2298 | /* We use char because int might match the return type of a gcc2
|
---|
2299 | builtin and then its argument prototype would still apply. */
|
---|
2300 | char $ac_func();
|
---|
2301 |
|
---|
2302 | int main() {
|
---|
2303 |
|
---|
2304 | /* The GNU C library defines this for functions which it implements
|
---|
2305 | to always fail with ENOSYS. Some functions are actually named
|
---|
2306 | something starting with __ and the normal name is an alias. */
|
---|
2307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2308 | choke me
|
---|
2309 | #else
|
---|
2310 | $ac_func();
|
---|
2311 | #endif
|
---|
2312 |
|
---|
2313 | ; return 0; }
|
---|
2314 | EOF
|
---|
2315 | if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2316 | rm -rf conftest*
|
---|
2317 | eval "ac_cv_func_$ac_func=yes"
|
---|
2318 | else
|
---|
2319 | echo "configure: failed program was:" >&5
|
---|
2320 | cat conftest.$ac_ext >&5
|
---|
2321 | rm -rf conftest*
|
---|
2322 | eval "ac_cv_func_$ac_func=no"
|
---|
2323 | fi
|
---|
2324 | rm -f conftest*
|
---|
2325 | fi
|
---|
2326 |
|
---|
2327 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2328 | echo "$ac_t""yes" 1>&6
|
---|
2329 | cat >> confdefs.h <<EOF
|
---|
2330 | #define CRAY_STACKSEG_END $ac_func
|
---|
2331 | EOF
|
---|
2332 |
|
---|
2333 | break
|
---|
2334 | else
|
---|
2335 | echo "$ac_t""no" 1>&6
|
---|
2336 | fi
|
---|
2337 |
|
---|
2338 | done
|
---|
2339 | fi
|
---|
2340 |
|
---|
2341 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
2342 | echo "configure:2343: checking stack direction for C alloca" >&5
|
---|
2343 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
2344 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2345 | else
|
---|
2346 | if test "$cross_compiling" = yes; then
|
---|
2347 | ac_cv_c_stack_direction=0
|
---|
2348 | else
|
---|
2349 | cat > conftest.$ac_ext <<EOF
|
---|
2350 | #line 2351 "configure"
|
---|
2351 | #include "confdefs.h"
|
---|
2352 | find_stack_direction ()
|
---|
2353 | {
|
---|
2354 | static char *addr = 0;
|
---|
2355 | auto char dummy;
|
---|
2356 | if (addr == 0)
|
---|
2357 | {
|
---|
2358 | addr = &dummy;
|
---|
2359 | return find_stack_direction ();
|
---|
2360 | }
|
---|
2361 | else
|
---|
2362 | return (&dummy > addr) ? 1 : -1;
|
---|
2363 | }
|
---|
2364 | main ()
|
---|
2365 | {
|
---|
2366 | exit (find_stack_direction() < 0);
|
---|
2367 | }
|
---|
2368 | EOF
|
---|
2369 | if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2370 | then
|
---|
2371 | ac_cv_c_stack_direction=1
|
---|
2372 | else
|
---|
2373 | echo "configure: failed program was:" >&5
|
---|
2374 | cat conftest.$ac_ext >&5
|
---|
2375 | rm -fr conftest*
|
---|
2376 | ac_cv_c_stack_direction=-1
|
---|
2377 | fi
|
---|
2378 | rm -fr conftest*
|
---|
2379 | fi
|
---|
2380 |
|
---|
2381 | fi
|
---|
2382 |
|
---|
2383 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
2384 | cat >> confdefs.h <<EOF
|
---|
2385 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
2386 | EOF
|
---|
2387 |
|
---|
2388 | fi
|
---|
2389 |
|
---|
2390 | if test $ac_cv_prog_gcc = yes; then
|
---|
2391 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
---|
2392 | echo "configure:2393: checking whether ${CC-cc} needs -traditional" >&5
|
---|
2393 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
---|
2394 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2395 | else
|
---|
2396 | ac_pattern="Autoconf.*'x'"
|
---|
2397 | cat > conftest.$ac_ext <<EOF
|
---|
2398 | #line 2399 "configure"
|
---|
2399 | #include "confdefs.h"
|
---|
2400 | #include <sgtty.h>
|
---|
2401 | Autoconf TIOCGETP
|
---|
2402 | EOF
|
---|
2403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2404 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
2405 | rm -rf conftest*
|
---|
2406 | ac_cv_prog_gcc_traditional=yes
|
---|
2407 | else
|
---|
2408 | rm -rf conftest*
|
---|
2409 | ac_cv_prog_gcc_traditional=no
|
---|
2410 | fi
|
---|
2411 | rm -f conftest*
|
---|
2412 |
|
---|
2413 |
|
---|
2414 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
2415 | cat > conftest.$ac_ext <<EOF
|
---|
2416 | #line 2417 "configure"
|
---|
2417 | #include "confdefs.h"
|
---|
2418 | #include <termio.h>
|
---|
2419 | Autoconf TCGETA
|
---|
2420 | EOF
|
---|
2421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2422 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
2423 | rm -rf conftest*
|
---|
2424 | ac_cv_prog_gcc_traditional=yes
|
---|
2425 | fi
|
---|
2426 | rm -f conftest*
|
---|
2427 |
|
---|
2428 | fi
|
---|
2429 | fi
|
---|
2430 |
|
---|
2431 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
---|
2432 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
2433 | CC="$CC -traditional"
|
---|
2434 | fi
|
---|
2435 | fi
|
---|
2436 |
|
---|
2437 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
---|
2438 | echo "configure:2439: checking return type of signal handlers" >&5
|
---|
2439 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
---|
2440 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2441 | else
|
---|
2442 | cat > conftest.$ac_ext <<EOF
|
---|
2443 | #line 2444 "configure"
|
---|
2444 | #include "confdefs.h"
|
---|
2445 | #include <sys/types.h>
|
---|
2446 | #include <signal.h>
|
---|
2447 | #ifdef signal
|
---|
2448 | #undef signal
|
---|
2449 | #endif
|
---|
2450 | #ifdef __cplusplus
|
---|
2451 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
2452 | #else
|
---|
2453 | void (*signal ()) ();
|
---|
2454 | #endif
|
---|
2455 |
|
---|
2456 | int main() {
|
---|
2457 | int i;
|
---|
2458 | ; return 0; }
|
---|
2459 | EOF
|
---|
2460 | if { (eval echo configure:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2461 | rm -rf conftest*
|
---|
2462 | ac_cv_type_signal=void
|
---|
2463 | else
|
---|
2464 | echo "configure: failed program was:" >&5
|
---|
2465 | cat conftest.$ac_ext >&5
|
---|
2466 | rm -rf conftest*
|
---|
2467 | ac_cv_type_signal=int
|
---|
2468 | fi
|
---|
2469 | rm -f conftest*
|
---|
2470 | fi
|
---|
2471 |
|
---|
2472 | echo "$ac_t""$ac_cv_type_signal" 1>&6
|
---|
2473 | cat >> confdefs.h <<EOF
|
---|
2474 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
2475 | EOF
|
---|
2476 |
|
---|
2477 |
|
---|
2478 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6
|
---|
2479 | echo "configure:2480: checking for vprintf" >&5
|
---|
2480 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
|
---|
2481 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2482 | else
|
---|
2483 | cat > conftest.$ac_ext <<EOF
|
---|
2484 | #line 2485 "configure"
|
---|
2485 | #include "confdefs.h"
|
---|
2486 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2487 | which can conflict with char vprintf(); below. */
|
---|
2488 | #include <assert.h>
|
---|
2489 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2490 | /* We use char because int might match the return type of a gcc2
|
---|
2491 | builtin and then its argument prototype would still apply. */
|
---|
2492 | char vprintf();
|
---|
2493 |
|
---|
2494 | int main() {
|
---|
2495 |
|
---|
2496 | /* The GNU C library defines this for functions which it implements
|
---|
2497 | to always fail with ENOSYS. Some functions are actually named
|
---|
2498 | something starting with __ and the normal name is an alias. */
|
---|
2499 | #if defined (__stub_vprintf) || defined (__stub___vprintf)
|
---|
2500 | choke me
|
---|
2501 | #else
|
---|
2502 | vprintf();
|
---|
2503 | #endif
|
---|
2504 |
|
---|
2505 | ; return 0; }
|
---|
2506 | EOF
|
---|
2507 | if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2508 | rm -rf conftest*
|
---|
2509 | eval "ac_cv_func_vprintf=yes"
|
---|
2510 | else
|
---|
2511 | echo "configure: failed program was:" >&5
|
---|
2512 | cat conftest.$ac_ext >&5
|
---|
2513 | rm -rf conftest*
|
---|
2514 | eval "ac_cv_func_vprintf=no"
|
---|
2515 | fi
|
---|
2516 | rm -f conftest*
|
---|
2517 | fi
|
---|
2518 |
|
---|
2519 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
|
---|
2520 | echo "$ac_t""yes" 1>&6
|
---|
2521 | cat >> confdefs.h <<\EOF
|
---|
2522 | #define HAVE_VPRINTF 1
|
---|
2523 | EOF
|
---|
2524 |
|
---|
2525 | else
|
---|
2526 | echo "$ac_t""no" 1>&6
|
---|
2527 | fi
|
---|
2528 |
|
---|
2529 | if test "$ac_cv_func_vprintf" != yes; then
|
---|
2530 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
|
---|
2531 | echo "configure:2532: checking for _doprnt" >&5
|
---|
2532 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
|
---|
2533 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2534 | else
|
---|
2535 | cat > conftest.$ac_ext <<EOF
|
---|
2536 | #line 2537 "configure"
|
---|
2537 | #include "confdefs.h"
|
---|
2538 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2539 | which can conflict with char _doprnt(); below. */
|
---|
2540 | #include <assert.h>
|
---|
2541 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2542 | /* We use char because int might match the return type of a gcc2
|
---|
2543 | builtin and then its argument prototype would still apply. */
|
---|
2544 | char _doprnt();
|
---|
2545 |
|
---|
2546 | int main() {
|
---|
2547 |
|
---|
2548 | /* The GNU C library defines this for functions which it implements
|
---|
2549 | to always fail with ENOSYS. Some functions are actually named
|
---|
2550 | something starting with __ and the normal name is an alias. */
|
---|
2551 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
2552 | choke me
|
---|
2553 | #else
|
---|
2554 | _doprnt();
|
---|
2555 | #endif
|
---|
2556 |
|
---|
2557 | ; return 0; }
|
---|
2558 | EOF
|
---|
2559 | if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2560 | rm -rf conftest*
|
---|
2561 | eval "ac_cv_func__doprnt=yes"
|
---|
2562 | else
|
---|
2563 | echo "configure: failed program was:" >&5
|
---|
2564 | cat conftest.$ac_ext >&5
|
---|
2565 | rm -rf conftest*
|
---|
2566 | eval "ac_cv_func__doprnt=no"
|
---|
2567 | fi
|
---|
2568 | rm -f conftest*
|
---|
2569 | fi
|
---|
2570 |
|
---|
2571 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
|
---|
2572 | echo "$ac_t""yes" 1>&6
|
---|
2573 | cat >> confdefs.h <<\EOF
|
---|
2574 | #define HAVE_DOPRNT 1
|
---|
2575 | EOF
|
---|
2576 |
|
---|
2577 | else
|
---|
2578 | echo "$ac_t""no" 1>&6
|
---|
2579 | fi
|
---|
2580 |
|
---|
2581 | fi
|
---|
2582 |
|
---|
2583 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
|
---|
2584 | do
|
---|
2585 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2586 | echo "configure:2587: checking for $ac_func" >&5
|
---|
2587 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2588 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2589 | else
|
---|
2590 | cat > conftest.$ac_ext <<EOF
|
---|
2591 | #line 2592 "configure"
|
---|
2592 | #include "confdefs.h"
|
---|
2593 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2594 | which can conflict with char $ac_func(); below. */
|
---|
2595 | #include <assert.h>
|
---|
2596 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2597 | /* We use char because int might match the return type of a gcc2
|
---|
2598 | builtin and then its argument prototype would still apply. */
|
---|
2599 | char $ac_func();
|
---|
2600 |
|
---|
2601 | int main() {
|
---|
2602 |
|
---|
2603 | /* The GNU C library defines this for functions which it implements
|
---|
2604 | to always fail with ENOSYS. Some functions are actually named
|
---|
2605 | something starting with __ and the normal name is an alias. */
|
---|
2606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2607 | choke me
|
---|
2608 | #else
|
---|
2609 | $ac_func();
|
---|
2610 | #endif
|
---|
2611 |
|
---|
2612 | ; return 0; }
|
---|
2613 | EOF
|
---|
2614 | if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2615 | rm -rf conftest*
|
---|
2616 | eval "ac_cv_func_$ac_func=yes"
|
---|
2617 | else
|
---|
2618 | echo "configure: failed program was:" >&5
|
---|
2619 | cat conftest.$ac_ext >&5
|
---|
2620 | rm -rf conftest*
|
---|
2621 | eval "ac_cv_func_$ac_func=no"
|
---|
2622 | fi
|
---|
2623 | rm -f conftest*
|
---|
2624 | fi
|
---|
2625 |
|
---|
2626 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2627 | echo "$ac_t""yes" 1>&6
|
---|
2628 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2629 | cat >> confdefs.h <<EOF
|
---|
2630 | #define $ac_tr_func 1
|
---|
2631 | EOF
|
---|
2632 |
|
---|
2633 | else
|
---|
2634 | echo "$ac_t""no" 1>&6
|
---|
2635 | fi
|
---|
2636 | done
|
---|
2637 |
|
---|
2638 | for ac_func in ftruncate strstr strcasecmp
|
---|
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 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
|
---|
2691 | fi
|
---|
2692 | done
|
---|
2693 |
|
---|
2694 |
|
---|
2695 |
|
---|
2696 |
|
---|
2697 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
2698 | # ---------------------------------------------------------------------------
|
---|
2699 | echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
|
---|
2700 | echo "configure:2701: checking for HP-UX needing gmalloc" >&5
|
---|
2701 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
2702 | echo "$ac_t""yes" 1>&6
|
---|
2703 | LIBOBJS="$LIBOBJS gmalloc.o"
|
---|
2704 | cat >> confdefs.h <<\EOF
|
---|
2705 | #define HAVE_VALLOC 1
|
---|
2706 | EOF
|
---|
2707 |
|
---|
2708 | else
|
---|
2709 | echo "$ac_t""no" 1>&6
|
---|
2710 | for ac_func in valloc
|
---|
2711 | do
|
---|
2712 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2713 | echo "configure:2714: checking for $ac_func" >&5
|
---|
2714 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2715 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2716 | else
|
---|
2717 | cat > conftest.$ac_ext <<EOF
|
---|
2718 | #line 2719 "configure"
|
---|
2719 | #include "confdefs.h"
|
---|
2720 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2721 | which can conflict with char $ac_func(); below. */
|
---|
2722 | #include <assert.h>
|
---|
2723 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2724 | /* We use char because int might match the return type of a gcc2
|
---|
2725 | builtin and then its argument prototype would still apply. */
|
---|
2726 | char $ac_func();
|
---|
2727 |
|
---|
2728 | int main() {
|
---|
2729 |
|
---|
2730 | /* The GNU C library defines this for functions which it implements
|
---|
2731 | to always fail with ENOSYS. Some functions are actually named
|
---|
2732 | something starting with __ and the normal name is an alias. */
|
---|
2733 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2734 | choke me
|
---|
2735 | #else
|
---|
2736 | $ac_func();
|
---|
2737 | #endif
|
---|
2738 |
|
---|
2739 | ; return 0; }
|
---|
2740 | EOF
|
---|
2741 | if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2742 | rm -rf conftest*
|
---|
2743 | eval "ac_cv_func_$ac_func=yes"
|
---|
2744 | else
|
---|
2745 | echo "configure: failed program was:" >&5
|
---|
2746 | cat conftest.$ac_ext >&5
|
---|
2747 | rm -rf conftest*
|
---|
2748 | eval "ac_cv_func_$ac_func=no"
|
---|
2749 | fi
|
---|
2750 | rm -f conftest*
|
---|
2751 | fi
|
---|
2752 |
|
---|
2753 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2754 | echo "$ac_t""yes" 1>&6
|
---|
2755 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2756 | cat >> confdefs.h <<EOF
|
---|
2757 | #define $ac_tr_func 1
|
---|
2758 | EOF
|
---|
2759 |
|
---|
2760 | else
|
---|
2761 | echo "$ac_t""no" 1>&6
|
---|
2762 | fi
|
---|
2763 | done
|
---|
2764 |
|
---|
2765 | fi
|
---|
2766 |
|
---|
2767 | echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
|
---|
2768 | echo "configure:2769: checking if malloc debugging is wanted" >&5
|
---|
2769 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
2770 | if test "${with_dmalloc+set}" = set; then
|
---|
2771 | withval="$with_dmalloc"
|
---|
2772 | if test "$withval" = yes; then
|
---|
2773 | echo "$ac_t""yes" 1>&6
|
---|
2774 | cat >> confdefs.h <<\EOF
|
---|
2775 | #define WITH_DMALLOC 1
|
---|
2776 | EOF
|
---|
2777 |
|
---|
2778 | LIBS="$LIBS -ldmalloc"
|
---|
2779 | LDFLAGS="$LDFLAGS -g"
|
---|
2780 | else
|
---|
2781 | echo "$ac_t""no" 1>&6
|
---|
2782 | fi
|
---|
2783 | else
|
---|
2784 | echo "$ac_t""no" 1>&6
|
---|
2785 | fi
|
---|
2786 |
|
---|
2787 |
|
---|
2788 | echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
|
---|
2789 | echo "configure:2790: checking which of rx or regex is wanted" >&5
|
---|
2790 | # Check whether --with-regex or --without-regex was given.
|
---|
2791 | if test "${with_regex+set}" = set; then
|
---|
2792 | withval="$with_regex"
|
---|
2793 | if test "$withval" = yes; then
|
---|
2794 | ac_with_regex=1
|
---|
2795 | echo "$ac_t""regex" 1>&6
|
---|
2796 | cat >> confdefs.h <<\EOF
|
---|
2797 | #define WITH_REGEX 1
|
---|
2798 | EOF
|
---|
2799 |
|
---|
2800 | LIBOBJS="$LIBOBJS regex.o"
|
---|
2801 | fi
|
---|
2802 | fi
|
---|
2803 |
|
---|
2804 | if test -z "$ac_with_regex"; then
|
---|
2805 | echo "$ac_t""rx" 1>&6
|
---|
2806 | echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
|
---|
2807 | echo "configure:2808: checking for re_rx_search" >&5
|
---|
2808 | if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
|
---|
2809 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2810 | else
|
---|
2811 | cat > conftest.$ac_ext <<EOF
|
---|
2812 | #line 2813 "configure"
|
---|
2813 | #include "confdefs.h"
|
---|
2814 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2815 | which can conflict with char re_rx_search(); below. */
|
---|
2816 | #include <assert.h>
|
---|
2817 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2818 | /* We use char because int might match the return type of a gcc2
|
---|
2819 | builtin and then its argument prototype would still apply. */
|
---|
2820 | char re_rx_search();
|
---|
2821 |
|
---|
2822 | int main() {
|
---|
2823 |
|
---|
2824 | /* The GNU C library defines this for functions which it implements
|
---|
2825 | to always fail with ENOSYS. Some functions are actually named
|
---|
2826 | something starting with __ and the normal name is an alias. */
|
---|
2827 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
2828 | choke me
|
---|
2829 | #else
|
---|
2830 | re_rx_search();
|
---|
2831 | #endif
|
---|
2832 |
|
---|
2833 | ; return 0; }
|
---|
2834 | EOF
|
---|
2835 | if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2836 | rm -rf conftest*
|
---|
2837 | eval "ac_cv_func_re_rx_search=yes"
|
---|
2838 | else
|
---|
2839 | echo "configure: failed program was:" >&5
|
---|
2840 | cat conftest.$ac_ext >&5
|
---|
2841 | rm -rf conftest*
|
---|
2842 | eval "ac_cv_func_re_rx_search=no"
|
---|
2843 | fi
|
---|
2844 | rm -f conftest*
|
---|
2845 | fi
|
---|
2846 |
|
---|
2847 | if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
|
---|
2848 | echo "$ac_t""yes" 1>&6
|
---|
2849 | :
|
---|
2850 | else
|
---|
2851 | echo "$ac_t""no" 1>&6
|
---|
2852 | LIBOBJS="$LIBOBJS rx.o"
|
---|
2853 | fi
|
---|
2854 |
|
---|
2855 | fi
|
---|
2856 |
|
---|
2857 |
|
---|
2858 | # ---------------------------------------------------------------------------
|
---|
2859 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
2860 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
2861 | fi
|
---|
2862 |
|
---|
2863 |
|
---|
2864 | # ---------------------------------------------------------------------------
|
---|
2865 |
|
---|
2866 | ac_ext=C
|
---|
2867 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2868 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2869 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2870 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2871 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
2872 |
|
---|
2873 |
|
---|
2874 | echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6
|
---|
2875 | echo "configure:2876: checking "that the GDBM library is available"" >&5
|
---|
2876 | cat > conftest.$ac_ext <<EOF
|
---|
2877 | #line 2878 "configure"
|
---|
2878 | #include "confdefs.h"
|
---|
2879 | #include <gdbm.h>
|
---|
2880 |
|
---|
2881 | int main() {
|
---|
2882 |
|
---|
2883 | ; return 0; }
|
---|
2884 | EOF
|
---|
2885 | if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2886 | rm -rf conftest*
|
---|
2887 | success=yes
|
---|
2888 | else
|
---|
2889 | echo "configure: failed program was:" >&5
|
---|
2890 | cat conftest.$ac_ext >&5
|
---|
2891 | rm -rf conftest*
|
---|
2892 | success=no
|
---|
2893 |
|
---|
2894 | fi
|
---|
2895 | rm -f conftest*
|
---|
2896 | echo "$ac_t""$success" 1>&6
|
---|
2897 | if test $success = "no"; then
|
---|
2898 | { echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; }
|
---|
2899 | fi
|
---|
2900 |
|
---|
2901 | echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6
|
---|
2902 | echo "configure:2903: checking "that Perl 5 is available"" >&5
|
---|
2903 | success="no"
|
---|
2904 | pl_path="$PATH"
|
---|
2905 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
2906 | for pl_dir in $pl_path; do
|
---|
2907 | test -z "$pl_dir" && pl_dir=.
|
---|
2908 | if test -x $pl_dir/perl; then
|
---|
2909 | success="yes"
|
---|
2910 | break
|
---|
2911 | fi
|
---|
2912 | done
|
---|
2913 | IFS="$pl_save_ifs"
|
---|
2914 |
|
---|
2915 | if test $success = "yes"; then
|
---|
2916 | try=`perl configtest.pl` || try="0"
|
---|
2917 | try=`expr $try \> 5.000`
|
---|
2918 | if test $try = "1"; then
|
---|
2919 | echo "$ac_t"""yes"" 1>&6
|
---|
2920 | else
|
---|
2921 | success="no"
|
---|
2922 | fi
|
---|
2923 | fi
|
---|
2924 |
|
---|
2925 | if test $success = "no"; then
|
---|
2926 | echo "$ac_t"""no"" 1>&6
|
---|
2927 | { echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
|
---|
2928 | fi
|
---|
2929 |
|
---|
2930 | success=no
|
---|
2931 | echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
|
---|
2932 | echo "configure:2933: checking "whether STL library has known faults"" >&5
|
---|
2933 |
|
---|
2934 | cat > conftest.$ac_ext <<EOF
|
---|
2935 | #line 2936 "configure"
|
---|
2936 | #include "confdefs.h"
|
---|
2937 | #include <vector>
|
---|
2938 |
|
---|
2939 | int main() {
|
---|
2940 |
|
---|
2941 | ; return 0; }
|
---|
2942 | EOF
|
---|
2943 | if { (eval echo configure:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2944 | rm -rf conftest*
|
---|
2945 | success=yes
|
---|
2946 | else
|
---|
2947 | echo "configure: failed program was:" >&5
|
---|
2948 | cat conftest.$ac_ext >&5
|
---|
2949 | fi
|
---|
2950 | rm -f conftest*
|
---|
2951 |
|
---|
2952 | if test $success = "no"; then
|
---|
2953 | cat > conftest.$ac_ext <<EOF
|
---|
2954 | #line 2955 "configure"
|
---|
2955 | #include "confdefs.h"
|
---|
2956 | #include <vector.h>
|
---|
2957 |
|
---|
2958 | int main() {
|
---|
2959 |
|
---|
2960 | ; return 0; }
|
---|
2961 | EOF
|
---|
2962 | if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2963 | rm -rf conftest*
|
---|
2964 | success="yes"
|
---|
2965 | else
|
---|
2966 | echo "configure: failed program was:" >&5
|
---|
2967 | cat conftest.$ac_ext >&5
|
---|
2968 | fi
|
---|
2969 | rm -f conftest*
|
---|
2970 | fi
|
---|
2971 |
|
---|
2972 | if test $success = "no"; then
|
---|
2973 | cat > conftest.$ac_ext <<EOF
|
---|
2974 | #line 2975 "configure"
|
---|
2975 | #include "confdefs.h"
|
---|
2976 | #include <ospace\\std\\vector>
|
---|
2977 |
|
---|
2978 | int main() {
|
---|
2979 |
|
---|
2980 | ; return 0; }
|
---|
2981 | EOF
|
---|
2982 | if { (eval echo configure:2983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2983 | rm -rf conftest*
|
---|
2984 | success="yes"
|
---|
2985 | else
|
---|
2986 | echo "configure: failed program was:" >&5
|
---|
2987 | cat conftest.$ac_ext >&5
|
---|
2988 | fi
|
---|
2989 | rm -f conftest*
|
---|
2990 | fi
|
---|
2991 |
|
---|
2992 | if test $success = yes; then
|
---|
2993 | echo "$ac_t"""no"" 1>&6
|
---|
2994 | else
|
---|
2995 | echo "$ac_t"""yes"" 1>&6
|
---|
2996 | { echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
|
---|
2997 | fi
|
---|
2998 |
|
---|
2999 | gsdlos=`uname | tr A-Z a-z`
|
---|
3000 |
|
---|
3001 |
|
---|
3002 | echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
|
---|
3003 | echo "configure:3004: checking for HP-UX needing gmalloc" >&5
|
---|
3004 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
3005 | echo "$ac_t""yes" 1>&6
|
---|
3006 | LIBOBJS="$LIBOBJS gmalloc.o"
|
---|
3007 | cat >> confdefs.h <<\EOF
|
---|
3008 | #define HAVE_VALLOC 1
|
---|
3009 | EOF
|
---|
3010 |
|
---|
3011 | else
|
---|
3012 | echo "$ac_t""no" 1>&6
|
---|
3013 | for ac_func in valloc
|
---|
3014 | do
|
---|
3015 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3016 | echo "configure:3017: checking for $ac_func" >&5
|
---|
3017 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3018 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3019 | else
|
---|
3020 | cat > conftest.$ac_ext <<EOF
|
---|
3021 | #line 3022 "configure"
|
---|
3022 | #include "confdefs.h"
|
---|
3023 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3024 | which can conflict with char $ac_func(); below. */
|
---|
3025 | #include <assert.h>
|
---|
3026 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3027 | #ifdef __cplusplus
|
---|
3028 | extern "C"
|
---|
3029 | #endif
|
---|
3030 | /* We use char because int might match the return type of a gcc2
|
---|
3031 | builtin and then its argument prototype would still apply. */
|
---|
3032 | char $ac_func();
|
---|
3033 |
|
---|
3034 | int main() {
|
---|
3035 |
|
---|
3036 | /* The GNU C library defines this for functions which it implements
|
---|
3037 | to always fail with ENOSYS. Some functions are actually named
|
---|
3038 | something starting with __ and the normal name is an alias. */
|
---|
3039 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3040 | choke me
|
---|
3041 | #else
|
---|
3042 | $ac_func();
|
---|
3043 | #endif
|
---|
3044 |
|
---|
3045 | ; return 0; }
|
---|
3046 | EOF
|
---|
3047 | if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3048 | rm -rf conftest*
|
---|
3049 | eval "ac_cv_func_$ac_func=yes"
|
---|
3050 | else
|
---|
3051 | echo "configure: failed program was:" >&5
|
---|
3052 | cat conftest.$ac_ext >&5
|
---|
3053 | rm -rf conftest*
|
---|
3054 | eval "ac_cv_func_$ac_func=no"
|
---|
3055 | fi
|
---|
3056 | rm -f conftest*
|
---|
3057 | fi
|
---|
3058 |
|
---|
3059 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3060 | echo "$ac_t""yes" 1>&6
|
---|
3061 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3062 | cat >> confdefs.h <<EOF
|
---|
3063 | #define $ac_tr_func 1
|
---|
3064 | EOF
|
---|
3065 |
|
---|
3066 | else
|
---|
3067 | echo "$ac_t""no" 1>&6
|
---|
3068 | fi
|
---|
3069 | done
|
---|
3070 |
|
---|
3071 | fi
|
---|
3072 |
|
---|
3073 | echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
|
---|
3074 | echo "configure:3075: checking if malloc debugging is wanted" >&5
|
---|
3075 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
3076 | if test "${with_dmalloc+set}" = set; then
|
---|
3077 | withval="$with_dmalloc"
|
---|
3078 | if test "$withval" = yes; then
|
---|
3079 | echo "$ac_t""yes" 1>&6
|
---|
3080 | cat >> confdefs.h <<\EOF
|
---|
3081 | #define WITH_DMALLOC 1
|
---|
3082 | EOF
|
---|
3083 |
|
---|
3084 | LIBS="$LIBS -ldmalloc"
|
---|
3085 | LDFLAGS="$LDFLAGS -g"
|
---|
3086 | else
|
---|
3087 | echo "$ac_t""no" 1>&6
|
---|
3088 | fi
|
---|
3089 | else
|
---|
3090 | echo "$ac_t""no" 1>&6
|
---|
3091 | fi
|
---|
3092 |
|
---|
3093 |
|
---|
3094 | echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
|
---|
3095 | echo "configure:3096: checking which of rx or regex is wanted" >&5
|
---|
3096 | # Check whether --with-regex or --without-regex was given.
|
---|
3097 | if test "${with_regex+set}" = set; then
|
---|
3098 | withval="$with_regex"
|
---|
3099 | if test "$withval" = yes; then
|
---|
3100 | ac_with_regex=1
|
---|
3101 | echo "$ac_t""regex" 1>&6
|
---|
3102 | cat >> confdefs.h <<\EOF
|
---|
3103 | #define WITH_REGEX 1
|
---|
3104 | EOF
|
---|
3105 |
|
---|
3106 | LIBOBJS="$LIBOBJS regex.o"
|
---|
3107 | fi
|
---|
3108 | fi
|
---|
3109 |
|
---|
3110 | if test -z "$ac_with_regex"; then
|
---|
3111 | echo "$ac_t""rx" 1>&6
|
---|
3112 | echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
|
---|
3113 | echo "configure:3114: checking for re_rx_search" >&5
|
---|
3114 | if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
|
---|
3115 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3116 | else
|
---|
3117 | cat > conftest.$ac_ext <<EOF
|
---|
3118 | #line 3119 "configure"
|
---|
3119 | #include "confdefs.h"
|
---|
3120 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3121 | which can conflict with char re_rx_search(); below. */
|
---|
3122 | #include <assert.h>
|
---|
3123 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3124 | #ifdef __cplusplus
|
---|
3125 | extern "C"
|
---|
3126 | #endif
|
---|
3127 | /* We use char because int might match the return type of a gcc2
|
---|
3128 | builtin and then its argument prototype would still apply. */
|
---|
3129 | char re_rx_search();
|
---|
3130 |
|
---|
3131 | int main() {
|
---|
3132 |
|
---|
3133 | /* The GNU C library defines this for functions which it implements
|
---|
3134 | to always fail with ENOSYS. Some functions are actually named
|
---|
3135 | something starting with __ and the normal name is an alias. */
|
---|
3136 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
3137 | choke me
|
---|
3138 | #else
|
---|
3139 | re_rx_search();
|
---|
3140 | #endif
|
---|
3141 |
|
---|
3142 | ; return 0; }
|
---|
3143 | EOF
|
---|
3144 | if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3145 | rm -rf conftest*
|
---|
3146 | eval "ac_cv_func_re_rx_search=yes"
|
---|
3147 | else
|
---|
3148 | echo "configure: failed program was:" >&5
|
---|
3149 | cat conftest.$ac_ext >&5
|
---|
3150 | rm -rf conftest*
|
---|
3151 | eval "ac_cv_func_re_rx_search=no"
|
---|
3152 | fi
|
---|
3153 | rm -f conftest*
|
---|
3154 | fi
|
---|
3155 |
|
---|
3156 | if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
|
---|
3157 | echo "$ac_t""yes" 1>&6
|
---|
3158 | :
|
---|
3159 | else
|
---|
3160 | echo "$ac_t""no" 1>&6
|
---|
3161 | LIBOBJS="$LIBOBJS rx.o"
|
---|
3162 | fi
|
---|
3163 |
|
---|
3164 | fi
|
---|
3165 |
|
---|
3166 |
|
---|
3167 | # ---------------------------------------------------------------------------
|
---|
3168 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
3169 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
3170 | fi
|
---|
3171 |
|
---|
3172 |
|
---|
3173 | # ---------------------------------------------------------------------------
|
---|
3174 |
|
---|
3175 | trap '' 1 2 15
|
---|
3176 | cat > confcache <<\EOF
|
---|
3177 | # This file is a shell script that caches the results of configure
|
---|
3178 | # tests run on this system so they can be shared between configure
|
---|
3179 | # scripts and configure runs. It is not useful on other systems.
|
---|
3180 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
3181 | #
|
---|
3182 | # By default, configure uses ./config.cache as the cache file,
|
---|
3183 | # creating it if it does not exist already. You can give configure
|
---|
3184 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
3185 | # what configure does when it calls configure scripts in
|
---|
3186 | # subdirectories, so they share the cache.
|
---|
3187 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
3188 | # config.status only pays attention to the cache file if you give it the
|
---|
3189 | # --recheck option to rerun configure.
|
---|
3190 | #
|
---|
3191 | EOF
|
---|
3192 | # The following way of writing the cache mishandles newlines in values,
|
---|
3193 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
3194 | # So, don't put newlines in cache variables' values.
|
---|
3195 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
3196 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
3197 | (set) 2>&1 |
|
---|
3198 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
3199 | *ac_space=\ *)
|
---|
3200 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
3201 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
3202 | sed -n \
|
---|
3203 | -e "s/'/'\\\\''/g" \
|
---|
3204 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
3205 | ;;
|
---|
3206 | *)
|
---|
3207 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
3208 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
3209 | ;;
|
---|
3210 | esac >> confcache
|
---|
3211 | if cmp -s $cache_file confcache; then
|
---|
3212 | :
|
---|
3213 | else
|
---|
3214 | if test -w $cache_file; then
|
---|
3215 | echo "updating cache $cache_file"
|
---|
3216 | cat confcache > $cache_file
|
---|
3217 | else
|
---|
3218 | echo "not updating unwritable cache $cache_file"
|
---|
3219 | fi
|
---|
3220 | fi
|
---|
3221 | rm -f confcache
|
---|
3222 |
|
---|
3223 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
3224 |
|
---|
3225 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
3226 | # Let make expand exec_prefix.
|
---|
3227 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
3228 |
|
---|
3229 | # Any assignment to VPATH causes Sun make to only execute
|
---|
3230 | # the first set of double-colon rules, so remove it if not needed.
|
---|
3231 | # If there is a colon in the path, we need to keep it.
|
---|
3232 | if test "x$srcdir" = x.; then
|
---|
3233 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
3234 | fi
|
---|
3235 |
|
---|
3236 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
3237 |
|
---|
3238 | DEFS=-DHAVE_CONFIG_H
|
---|
3239 |
|
---|
3240 | # Without the "./", some shells look in PATH for config.status.
|
---|
3241 | : ${CONFIG_STATUS=./config.status}
|
---|
3242 |
|
---|
3243 | echo creating $CONFIG_STATUS
|
---|
3244 | rm -f $CONFIG_STATUS
|
---|
3245 | cat > $CONFIG_STATUS <<EOF
|
---|
3246 | #! /bin/sh
|
---|
3247 | # Generated automatically by configure.
|
---|
3248 | # Run this file to recreate the current configuration.
|
---|
3249 | # This directory was configured as follows,
|
---|
3250 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
3251 | #
|
---|
3252 | # $0 $ac_configure_args
|
---|
3253 | #
|
---|
3254 | # Compiler output produced by configure, useful for debugging
|
---|
3255 | # configure, is in ./config.log if it exists.
|
---|
3256 |
|
---|
3257 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
3258 | for ac_option
|
---|
3259 | do
|
---|
3260 | case "\$ac_option" in
|
---|
3261 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
3262 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
3263 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
3264 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
3265 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
3266 | exit 0 ;;
|
---|
3267 | -help | --help | --hel | --he | --h)
|
---|
3268 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
3269 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
3270 | esac
|
---|
3271 | done
|
---|
3272 |
|
---|
3273 | ac_given_srcdir=$srcdir
|
---|
3274 |
|
---|
3275 | trap 'rm -fr `echo "packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
|
---|
3276 | packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
|
---|
3277 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
|
---|
3278 | src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
|
---|
3279 | collect/niupepa/src/recpt/Makefile Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
3280 | EOF
|
---|
3281 | cat >> $CONFIG_STATUS <<EOF
|
---|
3282 |
|
---|
3283 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3284 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
3285 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
3286 | $ac_vpsub
|
---|
3287 | $extrasub
|
---|
3288 | s%@SHELL@%$SHELL%g
|
---|
3289 | s%@CFLAGS@%$CFLAGS%g
|
---|
3290 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
3291 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
3292 | s%@FFLAGS@%$FFLAGS%g
|
---|
3293 | s%@DEFS@%$DEFS%g
|
---|
3294 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
3295 | s%@LIBS@%$LIBS%g
|
---|
3296 | s%@exec_prefix@%$exec_prefix%g
|
---|
3297 | s%@prefix@%$prefix%g
|
---|
3298 | s%@program_transform_name@%$program_transform_name%g
|
---|
3299 | s%@bindir@%$bindir%g
|
---|
3300 | s%@sbindir@%$sbindir%g
|
---|
3301 | s%@libexecdir@%$libexecdir%g
|
---|
3302 | s%@datadir@%$datadir%g
|
---|
3303 | s%@sysconfdir@%$sysconfdir%g
|
---|
3304 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
3305 | s%@localstatedir@%$localstatedir%g
|
---|
3306 | s%@libdir@%$libdir%g
|
---|
3307 | s%@includedir@%$includedir%g
|
---|
3308 | s%@oldincludedir@%$oldincludedir%g
|
---|
3309 | s%@infodir@%$infodir%g
|
---|
3310 | s%@mandir@%$mandir%g
|
---|
3311 | s%@PACKAGE@%$PACKAGE%g
|
---|
3312 | s%@VERSION@%$VERSION%g
|
---|
3313 | s%@USE_FASTCGI@%$USE_FASTCGI%g
|
---|
3314 | s%@CC@%$CC%g
|
---|
3315 | s%@CXX@%$CXX%g
|
---|
3316 | s%@AWK@%$AWK%g
|
---|
3317 | s%@YACC@%$YACC%g
|
---|
3318 | s%@LN_S@%$LN_S%g
|
---|
3319 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
3320 | s%@RANLIB@%$RANLIB%g
|
---|
3321 | s%@CPP@%$CPP%g
|
---|
3322 | s%@U@%$U%g
|
---|
3323 | s%@ANSI2KNR@%$ANSI2KNR%g
|
---|
3324 | s%@ALLOCA@%$ALLOCA%g
|
---|
3325 | s%@LIBOBJS@%$LIBOBJS%g
|
---|
3326 | s%@gsdlos@%$gsdlos%g
|
---|
3327 |
|
---|
3328 | CEOF
|
---|
3329 | EOF
|
---|
3330 |
|
---|
3331 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3332 |
|
---|
3333 | # Split the substitutions into bite-sized pieces for seds with
|
---|
3334 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
3335 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
3336 | ac_file=1 # Number of current file.
|
---|
3337 | ac_beg=1 # First line for current file.
|
---|
3338 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
3339 | ac_more_lines=:
|
---|
3340 | ac_sed_cmds=""
|
---|
3341 | while $ac_more_lines; do
|
---|
3342 | if test $ac_beg -gt 1; then
|
---|
3343 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
3344 | else
|
---|
3345 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
3346 | fi
|
---|
3347 | if test ! -s conftest.s$ac_file; then
|
---|
3348 | ac_more_lines=false
|
---|
3349 | rm -f conftest.s$ac_file
|
---|
3350 | else
|
---|
3351 | if test -z "$ac_sed_cmds"; then
|
---|
3352 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
3353 | else
|
---|
3354 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
3355 | fi
|
---|
3356 | ac_file=`expr $ac_file + 1`
|
---|
3357 | ac_beg=$ac_end
|
---|
3358 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
3359 | fi
|
---|
3360 | done
|
---|
3361 | if test -z "$ac_sed_cmds"; then
|
---|
3362 | ac_sed_cmds=cat
|
---|
3363 | fi
|
---|
3364 | EOF
|
---|
3365 |
|
---|
3366 | cat >> $CONFIG_STATUS <<EOF
|
---|
3367 |
|
---|
3368 | CONFIG_FILES=\${CONFIG_FILES-"packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
|
---|
3369 | packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
|
---|
3370 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
|
---|
3371 | src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
|
---|
3372 | collect/niupepa/src/recpt/Makefile Makefile"}
|
---|
3373 | EOF
|
---|
3374 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3375 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
3376 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3377 | case "$ac_file" in
|
---|
3378 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
3379 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
3380 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3381 | esac
|
---|
3382 |
|
---|
3383 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
3384 |
|
---|
3385 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3386 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3387 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3388 | # The file is in a subdirectory.
|
---|
3389 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3390 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
3391 | # A "../" for each directory in $ac_dir_suffix.
|
---|
3392 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
3393 | else
|
---|
3394 | ac_dir_suffix= ac_dots=
|
---|
3395 | fi
|
---|
3396 |
|
---|
3397 | case "$ac_given_srcdir" in
|
---|
3398 | .) srcdir=.
|
---|
3399 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
3400 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
3401 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
3402 | *) # Relative path.
|
---|
3403 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
3404 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
3405 | esac
|
---|
3406 |
|
---|
3407 |
|
---|
3408 | echo creating "$ac_file"
|
---|
3409 | rm -f "$ac_file"
|
---|
3410 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
3411 | case "$ac_file" in
|
---|
3412 | *Makefile*) ac_comsub="1i\\
|
---|
3413 | # $configure_input" ;;
|
---|
3414 | *) ac_comsub= ;;
|
---|
3415 | esac
|
---|
3416 |
|
---|
3417 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
3418 | sed -e "$ac_comsub
|
---|
3419 | s%@configure_input@%$configure_input%g
|
---|
3420 | s%@srcdir@%$srcdir%g
|
---|
3421 | s%@top_srcdir@%$top_srcdir%g
|
---|
3422 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
3423 | fi; done
|
---|
3424 | rm -f conftest.s*
|
---|
3425 |
|
---|
3426 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
3427 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
3428 | #
|
---|
3429 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
3430 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
3431 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
3432 | ac_dC='\3'
|
---|
3433 | ac_dD='%g'
|
---|
3434 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
3435 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3436 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
3437 | ac_uC=' '
|
---|
3438 | ac_uD='\4%g'
|
---|
3439 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
3440 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3441 | ac_eB='$%\1#\2define\3'
|
---|
3442 | ac_eC=' '
|
---|
3443 | ac_eD='%g'
|
---|
3444 |
|
---|
3445 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
3446 | EOF
|
---|
3447 | cat >> $CONFIG_STATUS <<EOF
|
---|
3448 | CONFIG_HEADERS="config.h"
|
---|
3449 | EOF
|
---|
3450 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3451 | fi
|
---|
3452 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
3453 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3454 | case "$ac_file" in
|
---|
3455 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
3456 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
3457 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3458 | esac
|
---|
3459 |
|
---|
3460 | echo creating $ac_file
|
---|
3461 |
|
---|
3462 | rm -f conftest.frag conftest.in conftest.out
|
---|
3463 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
3464 | cat $ac_file_inputs > conftest.in
|
---|
3465 |
|
---|
3466 | EOF
|
---|
3467 |
|
---|
3468 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
3469 | # the proper values into config.h.in to produce config.h. And first:
|
---|
3470 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3471 | # Protect against being in an unquoted here document in config.status.
|
---|
3472 | rm -f conftest.vals
|
---|
3473 | cat > conftest.hdr <<\EOF
|
---|
3474 | s/[\\&%]/\\&/g
|
---|
3475 | s%[\\$`]%\\&%g
|
---|
3476 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
3477 | s%ac_d%ac_u%gp
|
---|
3478 | s%ac_u%ac_e%gp
|
---|
3479 | EOF
|
---|
3480 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
3481 | rm -f conftest.hdr
|
---|
3482 |
|
---|
3483 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
3484 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
3485 | # on some systems where configure will not decide to define it.
|
---|
3486 | cat >> conftest.vals <<\EOF
|
---|
3487 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
3488 | EOF
|
---|
3489 |
|
---|
3490 | # Break up conftest.vals because some shells have a limit on
|
---|
3491 | # the size of here documents, and old seds have small limits too.
|
---|
3492 |
|
---|
3493 | rm -f conftest.tail
|
---|
3494 | while :
|
---|
3495 | do
|
---|
3496 | ac_lines=`grep -c . conftest.vals`
|
---|
3497 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
3498 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
3499 | # Write a limited-size here document to conftest.frag.
|
---|
3500 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
3501 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
3502 | echo 'CEOF
|
---|
3503 | sed -f conftest.frag conftest.in > conftest.out
|
---|
3504 | rm -f conftest.in
|
---|
3505 | mv conftest.out conftest.in
|
---|
3506 | ' >> $CONFIG_STATUS
|
---|
3507 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
3508 | rm -f conftest.vals
|
---|
3509 | mv conftest.tail conftest.vals
|
---|
3510 | done
|
---|
3511 | rm -f conftest.vals
|
---|
3512 |
|
---|
3513 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3514 | rm -f conftest.frag conftest.h
|
---|
3515 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
3516 | cat conftest.in >> conftest.h
|
---|
3517 | rm -f conftest.in
|
---|
3518 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
3519 | echo "$ac_file is unchanged"
|
---|
3520 | rm -f conftest.h
|
---|
3521 | else
|
---|
3522 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3523 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3524 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3525 | # The file is in a subdirectory.
|
---|
3526 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3527 | fi
|
---|
3528 | rm -f $ac_file
|
---|
3529 | mv conftest.h $ac_file
|
---|
3530 | fi
|
---|
3531 | fi; done
|
---|
3532 |
|
---|
3533 | EOF
|
---|
3534 | cat >> $CONFIG_STATUS <<EOF
|
---|
3535 |
|
---|
3536 | EOF
|
---|
3537 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3538 |
|
---|
3539 | exit 0
|
---|
3540 | EOF
|
---|
3541 | chmod +x $CONFIG_STATUS
|
---|
3542 | rm -fr confdefs* $ac_clean_files
|
---|
3543 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
3544 |
|
---|
3545 |
|
---|
3546 |
|
---|
3547 |
|
---|
3548 |
|
---|