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