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