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