]>
Commit | Line | Data |
---|---|---|
9af9ec33 EW |
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_default_prefix=~/praxis | |
15 | ac_help="$ac_help | |
16 | --enable-hard-assert Enable hard asserts. | |
17 | --disable-hard-assert Disable hard asserts. " | |
18 | ac_help="$ac_help | |
19 | --enable-large-net Enable large network support. | |
20 | --disable-large-net Disable large network support. " | |
21 | ac_help="$ac_help | |
22 | --enable-shared-modules Enable shared module support. | |
23 | --disable-shared-modules Disable shared module support. " | |
24 | ||
25 | # Initialize some variables set by options. | |
26 | # The variables have the same names as the options, with | |
27 | # dashes changed to underlines. | |
28 | build=NONE | |
29 | cache_file=./config.cache | |
30 | exec_prefix=NONE | |
31 | host=NONE | |
32 | no_create= | |
33 | nonopt=NONE | |
34 | no_recursion= | |
35 | prefix=NONE | |
36 | program_prefix=NONE | |
37 | program_suffix=NONE | |
38 | program_transform_name=s,x,x, | |
39 | silent= | |
40 | site= | |
9af9ec33 EW |
41 | srcdir= |
42 | target=NONE | |
43 | verbose= | |
44 | x_includes=NONE | |
45 | x_libraries=NONE | |
46 | bindir='${exec_prefix}/bin' | |
47 | sbindir='${exec_prefix}/sbin' | |
48 | libexecdir='${exec_prefix}/libexec' | |
49 | datadir='${prefix}/share' | |
50 | sysconfdir='${prefix}/etc' | |
51 | sharedstatedir='${prefix}/com' | |
52 | localstatedir='${prefix}/var' | |
53 | libdir='${exec_prefix}/lib' | |
54 | includedir='${prefix}/include' | |
55 | oldincludedir='/usr/include' | |
56 | infodir='${prefix}/info' | |
57 | mandir='${prefix}/man' | |
58 | ||
59 | # Initialize some other variables. | |
60 | subdirs= | |
61 | MFLAGS= MAKEFLAGS= | |
62 | SHELL=${CONFIG_SHELL-/bin/sh} | |
63 | # Maximum number of lines to put in a shell here document. | |
64 | ac_max_here_lines=12 | |
65 | ||
66 | ac_prev= | |
67 | for ac_option | |
68 | do | |
69 | ||
70 | # If the previous option needs an argument, assign it. | |
71 | if test -n "$ac_prev"; then | |
72 | eval "$ac_prev=\$ac_option" | |
73 | ac_prev= | |
74 | continue | |
75 | fi | |
76 | ||
77 | case "$ac_option" in | |
78 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
79 | *) ac_optarg= ;; | |
80 | esac | |
81 | ||
82 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
83 | ||
84 | case "$ac_option" in | |
85 | ||
86 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
87 | ac_prev=bindir ;; | |
88 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
89 | bindir="$ac_optarg" ;; | |
90 | ||
91 | -build | --build | --buil | --bui | --bu) | |
92 | ac_prev=build ;; | |
93 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
94 | build="$ac_optarg" ;; | |
95 | ||
96 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
97 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
98 | ac_prev=cache_file ;; | |
99 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
100 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
101 | cache_file="$ac_optarg" ;; | |
102 | ||
103 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
104 | ac_prev=datadir ;; | |
105 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
106 | | --da=*) | |
107 | datadir="$ac_optarg" ;; | |
108 | ||
109 | -disable-* | --disable-*) | |
110 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
111 | # Reject names that are not valid shell variable names. | |
112 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
113 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
114 | fi | |
115 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
116 | eval "enable_${ac_feature}=no" ;; | |
117 | ||
118 | -enable-* | --enable-*) | |
119 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
120 | # Reject names that are not valid shell variable names. | |
121 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
122 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
123 | fi | |
124 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
125 | case "$ac_option" in | |
126 | *=*) ;; | |
127 | *) ac_optarg=yes ;; | |
128 | esac | |
129 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
130 | ||
131 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
132 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
133 | | --exec | --exe | --ex) | |
134 | ac_prev=exec_prefix ;; | |
135 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
136 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
137 | | --exec=* | --exe=* | --ex=*) | |
138 | exec_prefix="$ac_optarg" ;; | |
139 | ||
140 | -gas | --gas | --ga | --g) | |
141 | # Obsolete; use --with-gas. | |
142 | with_gas=yes ;; | |
143 | ||
144 | -help | --help | --hel | --he) | |
145 | # Omit some internal or obsolete options to make the list less imposing. | |
146 | # This message is too long to be a string in the A/UX 3.1 sh. | |
147 | cat << EOF | |
148 | Usage: configure [options] [host] | |
149 | Options: [defaults in brackets after descriptions] | |
150 | Configuration: | |
151 | --cache-file=FILE cache test results in FILE | |
152 | --help print this message | |
153 | --no-create do not create output files | |
154 | --quiet, --silent do not print \`checking...' messages | |
9af9ec33 EW |
155 | --version print the version of autoconf that created configure |
156 | Directory and file names: | |
157 | --prefix=PREFIX install architecture-independent files in PREFIX | |
158 | [$ac_default_prefix] | |
159 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
160 | [same as prefix] | |
161 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
162 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
163 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
164 | --datadir=DIR read-only architecture-independent data in DIR | |
165 | [PREFIX/share] | |
166 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
167 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
168 | [PREFIX/com] | |
169 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
170 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
171 | --includedir=DIR C header files in DIR [PREFIX/include] | |
172 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
173 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
174 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
175 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
176 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
177 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
178 | --program-transform-name=PROGRAM | |
179 | run sed PROGRAM on installed program names | |
180 | EOF | |
181 | cat << EOF | |
182 | Host type: | |
183 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
184 | --host=HOST configure for HOST [guessed] | |
185 | --target=TARGET configure for TARGET [TARGET=HOST] | |
186 | Features and packages: | |
187 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
188 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
189 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
190 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
191 | --x-includes=DIR X include files are in DIR | |
192 | --x-libraries=DIR X library files are in DIR | |
193 | EOF | |
194 | if test -n "$ac_help"; then | |
195 | echo "--enable and --with options recognized:$ac_help" | |
196 | fi | |
197 | exit 0 ;; | |
198 | ||
199 | -host | --host | --hos | --ho) | |
200 | ac_prev=host ;; | |
201 | -host=* | --host=* | --hos=* | --ho=*) | |
202 | host="$ac_optarg" ;; | |
203 | ||
204 | -includedir | --includedir | --includedi | --included | --include \ | |
205 | | --includ | --inclu | --incl | --inc) | |
206 | ac_prev=includedir ;; | |
207 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
208 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
209 | includedir="$ac_optarg" ;; | |
210 | ||
211 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
212 | ac_prev=infodir ;; | |
213 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
214 | infodir="$ac_optarg" ;; | |
215 | ||
216 | -libdir | --libdir | --libdi | --libd) | |
217 | ac_prev=libdir ;; | |
218 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
219 | libdir="$ac_optarg" ;; | |
220 | ||
221 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
222 | | --libexe | --libex | --libe) | |
223 | ac_prev=libexecdir ;; | |
224 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
225 | | --libexe=* | --libex=* | --libe=*) | |
226 | libexecdir="$ac_optarg" ;; | |
227 | ||
228 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
229 | | --localstate | --localstat | --localsta | --localst \ | |
230 | | --locals | --local | --loca | --loc | --lo) | |
231 | ac_prev=localstatedir ;; | |
232 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
233 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
234 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
235 | localstatedir="$ac_optarg" ;; | |
236 | ||
237 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
238 | ac_prev=mandir ;; | |
239 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
240 | mandir="$ac_optarg" ;; | |
241 | ||
242 | -nfp | --nfp | --nf) | |
243 | # Obsolete; use --without-fp. | |
244 | with_fp=no ;; | |
245 | ||
246 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
247 | | --no-cr | --no-c) | |
248 | no_create=yes ;; | |
249 | ||
250 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
251 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
252 | no_recursion=yes ;; | |
253 | ||
254 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
255 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
256 | | --oldin | --oldi | --old | --ol | --o) | |
257 | ac_prev=oldincludedir ;; | |
258 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
259 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
260 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
261 | oldincludedir="$ac_optarg" ;; | |
262 | ||
263 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
264 | ac_prev=prefix ;; | |
265 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
266 | prefix="$ac_optarg" ;; | |
267 | ||
268 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
269 | | --program-pre | --program-pr | --program-p) | |
270 | ac_prev=program_prefix ;; | |
271 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
272 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
273 | program_prefix="$ac_optarg" ;; | |
274 | ||
275 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
276 | | --program-suf | --program-su | --program-s) | |
277 | ac_prev=program_suffix ;; | |
278 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
279 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
280 | program_suffix="$ac_optarg" ;; | |
281 | ||
282 | -program-transform-name | --program-transform-name \ | |
283 | | --program-transform-nam | --program-transform-na \ | |
284 | | --program-transform-n | --program-transform- \ | |
285 | | --program-transform | --program-transfor \ | |
286 | | --program-transfo | --program-transf \ | |
287 | | --program-trans | --program-tran \ | |
288 | | --progr-tra | --program-tr | --program-t) | |
289 | ac_prev=program_transform_name ;; | |
290 | -program-transform-name=* | --program-transform-name=* \ | |
291 | | --program-transform-nam=* | --program-transform-na=* \ | |
292 | | --program-transform-n=* | --program-transform-=* \ | |
293 | | --program-transform=* | --program-transfor=* \ | |
294 | | --program-transfo=* | --program-transf=* \ | |
295 | | --program-trans=* | --program-tran=* \ | |
296 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
297 | program_transform_name="$ac_optarg" ;; | |
298 | ||
299 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
300 | | -silent | --silent | --silen | --sile | --sil) | |
301 | silent=yes ;; | |
302 | ||
303 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
304 | ac_prev=sbindir ;; | |
305 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
306 | | --sbi=* | --sb=*) | |
307 | sbindir="$ac_optarg" ;; | |
308 | ||
309 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
310 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
311 | | --sharedst | --shareds | --shared | --share | --shar \ | |
312 | | --sha | --sh) | |
313 | ac_prev=sharedstatedir ;; | |
314 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
315 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
316 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
317 | | --sha=* | --sh=*) | |
318 | sharedstatedir="$ac_optarg" ;; | |
319 | ||
320 | -site | --site | --sit) | |
321 | ac_prev=site ;; | |
322 | -site=* | --site=* | --sit=*) | |
323 | site="$ac_optarg" ;; | |
324 | ||
9af9ec33 EW |
325 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
326 | ac_prev=srcdir ;; | |
327 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
328 | srcdir="$ac_optarg" ;; | |
329 | ||
330 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
331 | | --syscon | --sysco | --sysc | --sys | --sy) | |
332 | ac_prev=sysconfdir ;; | |
333 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
334 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
335 | sysconfdir="$ac_optarg" ;; | |
336 | ||
337 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
338 | ac_prev=target ;; | |
339 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
340 | target="$ac_optarg" ;; | |
341 | ||
342 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
343 | verbose=yes ;; | |
344 | ||
345 | -version | --version | --versio | --versi | --vers) | |
346 | echo "configure generated by autoconf version 2.13" | |
347 | exit 0 ;; | |
348 | ||
349 | -with-* | --with-*) | |
350 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
351 | # Reject names that are not valid shell variable names. | |
352 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
353 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
354 | fi | |
355 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
356 | case "$ac_option" in | |
357 | *=*) ;; | |
358 | *) ac_optarg=yes ;; | |
359 | esac | |
360 | eval "with_${ac_package}='$ac_optarg'" ;; | |
361 | ||
362 | -without-* | --without-*) | |
363 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
364 | # Reject names that are not valid shell variable names. | |
365 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
366 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
367 | fi | |
368 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
369 | eval "with_${ac_package}=no" ;; | |
370 | ||
371 | --x) | |
372 | # Obsolete; use --with-x. | |
373 | with_x=yes ;; | |
374 | ||
375 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
376 | | --x-incl | --x-inc | --x-in | --x-i) | |
377 | ac_prev=x_includes ;; | |
378 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
379 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
380 | x_includes="$ac_optarg" ;; | |
381 | ||
382 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
383 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
384 | ac_prev=x_libraries ;; | |
385 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
386 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
387 | x_libraries="$ac_optarg" ;; | |
388 | ||
389 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
390 | ;; | |
391 | ||
392 | *) | |
393 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
394 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
395 | fi | |
396 | if test "x$nonopt" != xNONE; then | |
397 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
398 | fi | |
399 | nonopt="$ac_option" | |
400 | ;; | |
401 | ||
402 | esac | |
403 | done | |
404 | ||
405 | if test -n "$ac_prev"; then | |
406 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
407 | fi | |
408 | ||
409 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
410 | ||
411 | # File descriptor usage: | |
412 | # 0 standard input | |
413 | # 1 file creation | |
414 | # 2 errors and warnings | |
415 | # 3 some systems may open it to /dev/tty | |
416 | # 4 used on the Kubota Titan | |
417 | # 6 checking for... messages and results | |
418 | # 5 compiler messages saved in config.log | |
419 | if test "$silent" = yes; then | |
420 | exec 6>/dev/null | |
421 | else | |
422 | exec 6>&1 | |
423 | fi | |
424 | exec 5>./config.log | |
425 | ||
426 | echo "\ | |
427 | This file contains any messages produced by compilers while | |
428 | running configure, to aid debugging if configure makes a mistake. | |
429 | " 1>&5 | |
430 | ||
431 | # Strip out --no-create and --no-recursion so they do not pile up. | |
432 | # Also quote any args containing shell metacharacters. | |
433 | ac_configure_args= | |
434 | for ac_arg | |
435 | do | |
436 | case "$ac_arg" in | |
437 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
438 | | --no-cr | --no-c) ;; | |
439 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
440 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
441 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
442 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
443 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
444 | esac | |
445 | done | |
446 | ||
447 | # NLS nuisances. | |
448 | # Only set these to C if already set. These must not be set unconditionally | |
449 | # because not all systems understand e.g. LANG=C (notably SCO). | |
450 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
451 | # Non-C LC_CTYPE values break the ctype check. | |
452 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
453 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
454 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
455 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
456 | ||
457 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
458 | rm -rf conftest* confdefs.h | |
459 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
460 | echo > confdefs.h | |
461 | ||
462 | # A filename unique to this package, relative to the directory that | |
463 | # configure is in, which we can look for to find out if srcdir is correct. | |
464 | ac_unique_file= | |
465 | ||
466 | # Find the source files, if location was not specified. | |
467 | if test -z "$srcdir"; then | |
468 | ac_srcdir_defaulted=yes | |
469 | # Try the directory containing this script, then its parent. | |
470 | ac_prog=$0 | |
471 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
472 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
473 | srcdir=$ac_confdir | |
474 | if test ! -r $srcdir/$ac_unique_file; then | |
475 | srcdir=.. | |
476 | fi | |
477 | else | |
478 | ac_srcdir_defaulted=no | |
479 | fi | |
480 | if test ! -r $srcdir/$ac_unique_file; then | |
481 | if test "$ac_srcdir_defaulted" = yes; then | |
482 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
483 | else | |
484 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
485 | fi | |
486 | fi | |
487 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
488 | ||
489 | # Prefer explicitly selected file to automatically selected ones. | |
de0dff5f EW |
490 | if test -z "$CONFIG_SITE"; then |
491 | if test "x$prefix" != xNONE; then | |
492 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
493 | else | |
494 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
9af9ec33 | 495 | fi |
9af9ec33 EW |
496 | fi |
497 | for ac_site_file in $CONFIG_SITE; do | |
498 | if test -r "$ac_site_file"; then | |
499 | echo "loading site script $ac_site_file" | |
500 | . "$ac_site_file" | |
501 | fi | |
502 | done | |
503 | ||
504 | if test -r "$cache_file"; then | |
505 | echo "loading cache $cache_file" | |
506 | . $cache_file | |
507 | else | |
508 | echo "creating cache $cache_file" | |
509 | > $cache_file | |
510 | fi | |
511 | ||
512 | ac_ext=c | |
513 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
514 | ac_cpp='$CPP $CPPFLAGS' | |
515 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
516 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
517 | cross_compiling=$ac_cv_prog_cc_cross | |
518 | ||
519 | ac_exeext= | |
520 | ac_objext=o | |
521 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
522 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
523 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
524 | ac_n= ac_c=' | |
525 | ' ac_t=' ' | |
526 | else | |
527 | ac_n=-n ac_c= ac_t= | |
528 | fi | |
529 | else | |
530 | ac_n= ac_c='\c' ac_t= | |
531 | fi | |
532 | ||
533 | ||
534 | ||
535 | ac_aux_dir= | |
536 | for ac_dir in autoconf $srcdir/autoconf; do | |
537 | if test -f $ac_dir/install-sh; then | |
538 | ac_aux_dir=$ac_dir | |
539 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
540 | break | |
541 | elif test -f $ac_dir/install.sh; then | |
542 | ac_aux_dir=$ac_dir | |
543 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
544 | break | |
545 | fi | |
546 | done | |
547 | if test -z "$ac_aux_dir"; then | |
548 | { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; } | |
549 | fi | |
550 | ac_config_guess=$ac_aux_dir/config.guess | |
551 | ac_config_sub=$ac_aux_dir/config.sub | |
552 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
553 | ||
554 | ||
555 | ||
556 | SOURCE_ROOT=`pwd` | |
557 | MOD_TARGET=shared_modules | |
558 | MOD_INSTALL_TARGET=install_shared_modules | |
559 | ||
560 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
de0dff5f | 561 | echo "configure:562: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
9af9ec33 EW |
562 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
563 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
565 | else | |
566 | cat > conftestmake <<\EOF | |
567 | all: | |
568 | @echo 'ac_maketemp="${MAKE}"' | |
569 | EOF | |
570 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
571 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
572 | if test -n "$ac_maketemp"; then | |
573 | eval ac_cv_prog_make_${ac_make}_set=yes | |
574 | else | |
575 | eval ac_cv_prog_make_${ac_make}_set=no | |
576 | fi | |
577 | rm -f conftestmake | |
578 | fi | |
579 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
580 | echo "$ac_t""yes" 1>&6 | |
581 | SET_MAKE= | |
582 | else | |
583 | echo "$ac_t""no" 1>&6 | |
584 | SET_MAKE="MAKE=${MAKE-make}" | |
585 | fi | |
586 | ||
587 | # Extract the first word of "gcc", so it can be a program name with args. | |
588 | set dummy gcc; ac_word=$2 | |
589 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 590 | echo "configure:591: checking for $ac_word" >&5 |
9af9ec33 EW |
591 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
593 | else | |
594 | if test -n "$CC"; then | |
595 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
596 | else | |
597 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
598 | ac_dummy="$PATH" | |
599 | for ac_dir in $ac_dummy; do | |
600 | test -z "$ac_dir" && ac_dir=. | |
601 | if test -f $ac_dir/$ac_word; then | |
602 | ac_cv_prog_CC="gcc" | |
603 | break | |
604 | fi | |
605 | done | |
606 | IFS="$ac_save_ifs" | |
607 | fi | |
608 | fi | |
609 | CC="$ac_cv_prog_CC" | |
610 | if test -n "$CC"; then | |
611 | echo "$ac_t""$CC" 1>&6 | |
612 | else | |
613 | echo "$ac_t""no" 1>&6 | |
614 | fi | |
615 | ||
616 | if test -z "$CC"; then | |
617 | # Extract the first word of "cc", so it can be a program name with args. | |
618 | set dummy cc; ac_word=$2 | |
619 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 620 | echo "configure:621: checking for $ac_word" >&5 |
9af9ec33 EW |
621 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
623 | else | |
624 | if test -n "$CC"; then | |
625 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
626 | else | |
627 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
628 | ac_prog_rejected=no | |
629 | ac_dummy="$PATH" | |
630 | for ac_dir in $ac_dummy; do | |
631 | test -z "$ac_dir" && ac_dir=. | |
632 | if test -f $ac_dir/$ac_word; then | |
633 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
634 | ac_prog_rejected=yes | |
635 | continue | |
636 | fi | |
637 | ac_cv_prog_CC="cc" | |
638 | break | |
639 | fi | |
640 | done | |
641 | IFS="$ac_save_ifs" | |
642 | if test $ac_prog_rejected = yes; then | |
643 | # We found a bogon in the path, so make sure we never use it. | |
644 | set dummy $ac_cv_prog_CC | |
645 | shift | |
646 | if test $# -gt 0; then | |
647 | # We chose a different compiler from the bogus one. | |
648 | # However, it has the same basename, so the bogon will be chosen | |
649 | # first if we set CC to just the basename; use the full file name. | |
650 | shift | |
651 | set dummy "$ac_dir/$ac_word" "$@" | |
652 | shift | |
653 | ac_cv_prog_CC="$@" | |
654 | fi | |
655 | fi | |
656 | fi | |
657 | fi | |
658 | CC="$ac_cv_prog_CC" | |
659 | if test -n "$CC"; then | |
660 | echo "$ac_t""$CC" 1>&6 | |
661 | else | |
662 | echo "$ac_t""no" 1>&6 | |
663 | fi | |
664 | ||
665 | if test -z "$CC"; then | |
666 | case "`uname -s`" in | |
667 | *win32* | *WIN32*) | |
668 | # Extract the first word of "cl", so it can be a program name with args. | |
669 | set dummy cl; ac_word=$2 | |
670 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 671 | echo "configure:672: checking for $ac_word" >&5 |
9af9ec33 EW |
672 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
674 | else | |
675 | if test -n "$CC"; then | |
676 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
677 | else | |
678 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
679 | ac_dummy="$PATH" | |
680 | for ac_dir in $ac_dummy; do | |
681 | test -z "$ac_dir" && ac_dir=. | |
682 | if test -f $ac_dir/$ac_word; then | |
683 | ac_cv_prog_CC="cl" | |
684 | break | |
685 | fi | |
686 | done | |
687 | IFS="$ac_save_ifs" | |
688 | fi | |
689 | fi | |
690 | CC="$ac_cv_prog_CC" | |
691 | if test -n "$CC"; then | |
692 | echo "$ac_t""$CC" 1>&6 | |
693 | else | |
694 | echo "$ac_t""no" 1>&6 | |
695 | fi | |
696 | ;; | |
697 | esac | |
698 | fi | |
699 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
700 | fi | |
701 | ||
702 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
de0dff5f | 703 | echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
9af9ec33 EW |
704 | |
705 | ac_ext=c | |
706 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
707 | ac_cpp='$CPP $CPPFLAGS' | |
708 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
709 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
710 | cross_compiling=$ac_cv_prog_cc_cross | |
711 | ||
712 | cat > conftest.$ac_ext << EOF | |
713 | ||
de0dff5f | 714 | #line 715 "configure" |
9af9ec33 EW |
715 | #include "confdefs.h" |
716 | ||
717 | main(){return(0);} | |
718 | EOF | |
de0dff5f | 719 | if { (eval echo configure:720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
720 | ac_cv_prog_cc_works=yes |
721 | # If we can't run a trivial program, we are probably using a cross compiler. | |
722 | if (./conftest; exit) 2>/dev/null; then | |
723 | ac_cv_prog_cc_cross=no | |
724 | else | |
725 | ac_cv_prog_cc_cross=yes | |
726 | fi | |
727 | else | |
728 | echo "configure: failed program was:" >&5 | |
729 | cat conftest.$ac_ext >&5 | |
730 | ac_cv_prog_cc_works=no | |
731 | fi | |
732 | rm -fr conftest* | |
733 | ac_ext=c | |
734 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
735 | ac_cpp='$CPP $CPPFLAGS' | |
736 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
737 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
738 | cross_compiling=$ac_cv_prog_cc_cross | |
739 | ||
740 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
741 | if test $ac_cv_prog_cc_works = no; then | |
742 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
743 | fi | |
744 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
de0dff5f | 745 | echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
9af9ec33 EW |
746 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
747 | cross_compiling=$ac_cv_prog_cc_cross | |
748 | ||
749 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
de0dff5f | 750 | echo "configure:751: checking whether we are using GNU C" >&5 |
9af9ec33 EW |
751 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
753 | else | |
754 | cat > conftest.c <<EOF | |
755 | #ifdef __GNUC__ | |
756 | yes; | |
757 | #endif | |
758 | EOF | |
de0dff5f | 759 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
9af9ec33 EW |
760 | ac_cv_prog_gcc=yes |
761 | else | |
762 | ac_cv_prog_gcc=no | |
763 | fi | |
764 | fi | |
765 | ||
766 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
767 | ||
768 | if test $ac_cv_prog_gcc = yes; then | |
769 | GCC=yes | |
770 | else | |
771 | GCC= | |
772 | fi | |
773 | ||
774 | ac_test_CFLAGS="${CFLAGS+set}" | |
775 | ac_save_CFLAGS="$CFLAGS" | |
776 | CFLAGS= | |
777 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
de0dff5f | 778 | echo "configure:779: checking whether ${CC-cc} accepts -g" >&5 |
9af9ec33 EW |
779 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
781 | else | |
782 | echo 'void f(){}' > conftest.c | |
783 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
784 | ac_cv_prog_cc_g=yes | |
785 | else | |
786 | ac_cv_prog_cc_g=no | |
787 | fi | |
788 | rm -f conftest* | |
789 | ||
790 | fi | |
791 | ||
792 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
793 | if test "$ac_test_CFLAGS" = set; then | |
794 | CFLAGS="$ac_save_CFLAGS" | |
795 | elif test $ac_cv_prog_cc_g = yes; then | |
796 | if test "$GCC" = yes; then | |
797 | CFLAGS="-g -O2" | |
798 | else | |
799 | CFLAGS="-g" | |
800 | fi | |
801 | else | |
802 | if test "$GCC" = yes; then | |
803 | CFLAGS="-O2" | |
804 | else | |
805 | CFLAGS= | |
806 | fi | |
807 | fi | |
808 | ||
809 | # Find a good install program. We prefer a C program (faster), | |
810 | # so one script is as good as another. But avoid the broken or | |
811 | # incompatible versions: | |
812 | # SysV /etc/install, /usr/sbin/install | |
813 | # SunOS /usr/etc/install | |
814 | # IRIX /sbin/install | |
815 | # AIX /bin/install | |
816 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
817 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
818 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
819 | # ./install, which can be erroneously created by make from ./install.sh. | |
820 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
de0dff5f | 821 | echo "configure:822: checking for a BSD compatible install" >&5 |
9af9ec33 EW |
822 | if test -z "$INSTALL"; then |
823 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
825 | else | |
826 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
827 | for ac_dir in $PATH; do | |
828 | # Account for people who put trailing slashes in PATH elements. | |
829 | case "$ac_dir/" in | |
830 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
831 | *) | |
832 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
833 | # Don't use installbsd from OSF since it installs stuff as root | |
834 | # by default. | |
835 | for ac_prog in ginstall scoinst install; do | |
836 | if test -f $ac_dir/$ac_prog; then | |
837 | if test $ac_prog = install && | |
838 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
839 | # AIX install. It has an incompatible calling convention. | |
840 | : | |
841 | else | |
842 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
843 | break 2 | |
844 | fi | |
845 | fi | |
846 | done | |
847 | ;; | |
848 | esac | |
849 | done | |
850 | IFS="$ac_save_IFS" | |
851 | ||
852 | fi | |
853 | if test "${ac_cv_path_install+set}" = set; then | |
854 | INSTALL="$ac_cv_path_install" | |
855 | else | |
856 | # As a last resort, use the slow shell script. We don't cache a | |
857 | # path for INSTALL within a source directory, because that will | |
858 | # break other packages using the cache if that directory is | |
859 | # removed, or if the path is relative. | |
860 | INSTALL="$ac_install_sh" | |
861 | fi | |
862 | fi | |
863 | echo "$ac_t""$INSTALL" 1>&6 | |
864 | ||
865 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
866 | # It thinks the first close brace ends the variable substitution. | |
867 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
868 | ||
869 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
870 | ||
871 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
872 | ||
873 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
de0dff5f | 874 | echo "configure:875: checking for Cygwin environment" >&5 |
9af9ec33 EW |
875 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
877 | else | |
878 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 879 | #line 880 "configure" |
9af9ec33 EW |
880 | #include "confdefs.h" |
881 | ||
882 | int main() { | |
883 | ||
884 | #ifndef __CYGWIN__ | |
885 | #define __CYGWIN__ __CYGWIN32__ | |
886 | #endif | |
887 | return __CYGWIN__; | |
888 | ; return 0; } | |
889 | EOF | |
de0dff5f | 890 | if { (eval echo configure:891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9af9ec33 EW |
891 | rm -rf conftest* |
892 | ac_cv_cygwin=yes | |
893 | else | |
894 | echo "configure: failed program was:" >&5 | |
895 | cat conftest.$ac_ext >&5 | |
896 | rm -rf conftest* | |
897 | ac_cv_cygwin=no | |
898 | fi | |
899 | rm -f conftest* | |
900 | rm -f conftest* | |
901 | fi | |
902 | ||
903 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
904 | CYGWIN= | |
905 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
906 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
de0dff5f | 907 | echo "configure:908: checking for mingw32 environment" >&5 |
9af9ec33 EW |
908 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
910 | else | |
911 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 912 | #line 913 "configure" |
9af9ec33 EW |
913 | #include "confdefs.h" |
914 | ||
915 | int main() { | |
916 | return __MINGW32__; | |
917 | ; return 0; } | |
918 | EOF | |
de0dff5f | 919 | if { (eval echo configure:920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9af9ec33 EW |
920 | rm -rf conftest* |
921 | ac_cv_mingw32=yes | |
922 | else | |
923 | echo "configure: failed program was:" >&5 | |
924 | cat conftest.$ac_ext >&5 | |
925 | rm -rf conftest* | |
926 | ac_cv_mingw32=no | |
927 | fi | |
928 | rm -f conftest* | |
929 | rm -f conftest* | |
930 | fi | |
931 | ||
932 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
933 | MINGW32= | |
934 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
935 | ||
936 | ||
937 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
de0dff5f | 938 | echo "configure:939: checking for executable suffix" >&5 |
9af9ec33 EW |
939 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
941 | else | |
942 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
943 | ac_cv_exeext=.exe | |
944 | else | |
945 | rm -f conftest* | |
946 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
947 | ac_cv_exeext= | |
de0dff5f | 948 | if { (eval echo configure:949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
9af9ec33 EW |
949 | for file in conftest.*; do |
950 | case $file in | |
de0dff5f | 951 | *.c | *.o | *.obj) ;; |
9af9ec33 EW |
952 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
953 | esac | |
954 | done | |
955 | else | |
956 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
957 | fi | |
958 | rm -f conftest* | |
959 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
960 | fi | |
961 | fi | |
962 | ||
963 | EXEEXT="" | |
964 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
965 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
966 | ac_exeext=$EXEEXT | |
967 | ||
968 | # Extract the first word of "rm", so it can be a program name with args. | |
969 | set dummy rm; ac_word=$2 | |
970 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 971 | echo "configure:972: checking for $ac_word" >&5 |
9af9ec33 EW |
972 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
974 | else | |
975 | case "$RM" in | |
976 | /*) | |
977 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
978 | ;; | |
979 | ?:/*) | |
980 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. | |
981 | ;; | |
982 | *) | |
983 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
984 | ac_dummy="$PATH" | |
985 | for ac_dir in $ac_dummy; do | |
986 | test -z "$ac_dir" && ac_dir=. | |
987 | if test -f $ac_dir/$ac_word; then | |
988 | ac_cv_path_RM="$ac_dir/$ac_word" | |
989 | break | |
990 | fi | |
991 | done | |
992 | IFS="$ac_save_ifs" | |
993 | ;; | |
994 | esac | |
995 | fi | |
996 | RM="$ac_cv_path_RM" | |
997 | if test -n "$RM"; then | |
998 | echo "$ac_t""$RM" 1>&6 | |
999 | else | |
1000 | echo "$ac_t""no" 1>&6 | |
1001 | fi | |
1002 | ||
1003 | # Extract the first word of "mv", so it can be a program name with args. | |
1004 | set dummy mv; ac_word=$2 | |
1005 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 1006 | echo "configure:1007: checking for $ac_word" >&5 |
9af9ec33 EW |
1007 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
1008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1009 | else | |
1010 | case "$MV" in | |
1011 | /*) | |
1012 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
1013 | ;; | |
1014 | ?:/*) | |
1015 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. | |
1016 | ;; | |
1017 | *) | |
1018 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1019 | ac_dummy="$PATH" | |
1020 | for ac_dir in $ac_dummy; do | |
1021 | test -z "$ac_dir" && ac_dir=. | |
1022 | if test -f $ac_dir/$ac_word; then | |
1023 | ac_cv_path_MV="$ac_dir/$ac_word" | |
1024 | break | |
1025 | fi | |
1026 | done | |
1027 | IFS="$ac_save_ifs" | |
1028 | ;; | |
1029 | esac | |
1030 | fi | |
1031 | MV="$ac_cv_path_MV" | |
1032 | if test -n "$MV"; then | |
1033 | echo "$ac_t""$MV" 1>&6 | |
1034 | else | |
1035 | echo "$ac_t""no" 1>&6 | |
1036 | fi | |
1037 | ||
1038 | # Extract the first word of "cp", so it can be a program name with args. | |
1039 | set dummy cp; ac_word=$2 | |
1040 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 1041 | echo "configure:1042: checking for $ac_word" >&5 |
9af9ec33 EW |
1042 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
1043 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1044 | else | |
1045 | case "$CP" in | |
1046 | /*) | |
1047 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
1048 | ;; | |
1049 | ?:/*) | |
1050 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. | |
1051 | ;; | |
1052 | *) | |
1053 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1054 | ac_dummy="$PATH" | |
1055 | for ac_dir in $ac_dummy; do | |
1056 | test -z "$ac_dir" && ac_dir=. | |
1057 | if test -f $ac_dir/$ac_word; then | |
1058 | ac_cv_path_CP="$ac_dir/$ac_word" | |
1059 | break | |
1060 | fi | |
1061 | done | |
1062 | IFS="$ac_save_ifs" | |
1063 | ;; | |
1064 | esac | |
1065 | fi | |
1066 | CP="$ac_cv_path_CP" | |
1067 | if test -n "$CP"; then | |
1068 | echo "$ac_t""$CP" 1>&6 | |
1069 | else | |
1070 | echo "$ac_t""no" 1>&6 | |
1071 | fi | |
1072 | ||
1073 | # Extract the first word of "ar", so it can be a program name with args. | |
1074 | set dummy ar; ac_word=$2 | |
1075 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 1076 | echo "configure:1077: checking for $ac_word" >&5 |
9af9ec33 EW |
1077 | if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then |
1078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1079 | else | |
1080 | case "$AR" in | |
1081 | /*) | |
1082 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
1083 | ;; | |
1084 | ?:/*) | |
1085 | ac_cv_path_AR="$AR" # Let the user override the test with a dos path. | |
1086 | ;; | |
1087 | *) | |
1088 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1089 | ac_dummy="$PATH" | |
1090 | for ac_dir in $ac_dummy; do | |
1091 | test -z "$ac_dir" && ac_dir=. | |
1092 | if test -f $ac_dir/$ac_word; then | |
1093 | ac_cv_path_AR="$ac_dir/$ac_word" | |
1094 | break | |
1095 | fi | |
1096 | done | |
1097 | IFS="$ac_save_ifs" | |
1098 | ;; | |
1099 | esac | |
1100 | fi | |
1101 | AR="$ac_cv_path_AR" | |
1102 | if test -n "$AR"; then | |
1103 | echo "$ac_t""$AR" 1>&6 | |
1104 | else | |
1105 | echo "$ac_t""no" 1>&6 | |
1106 | fi | |
1107 | ||
1108 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1109 | set dummy ranlib; ac_word=$2 | |
1110 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
de0dff5f | 1111 | echo "configure:1112: checking for $ac_word" >&5 |
9af9ec33 EW |
1112 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then |
1113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1114 | else | |
1115 | case "$RANLIB" in | |
1116 | /*) | |
1117 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
1118 | ;; | |
1119 | ?:/*) | |
1120 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path. | |
1121 | ;; | |
1122 | *) | |
1123 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1124 | ac_dummy="$PATH" | |
1125 | for ac_dir in $ac_dummy; do | |
1126 | test -z "$ac_dir" && ac_dir=. | |
1127 | if test -f $ac_dir/$ac_word; then | |
1128 | ac_cv_path_RANLIB="$ac_dir/$ac_word" | |
1129 | break | |
1130 | fi | |
1131 | done | |
1132 | IFS="$ac_save_ifs" | |
1133 | ;; | |
1134 | esac | |
1135 | fi | |
1136 | RANLIB="$ac_cv_path_RANLIB" | |
1137 | if test -n "$RANLIB"; then | |
1138 | echo "$ac_t""$RANLIB" 1>&6 | |
1139 | else | |
1140 | echo "$ac_t""no" 1>&6 | |
1141 | fi | |
1142 | ||
1143 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
de0dff5f | 1144 | echo "configure:1145: checking for inline" >&5 |
9af9ec33 EW |
1145 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
1146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1147 | else | |
1148 | ac_cv_c_inline=no | |
1149 | for ac_kw in inline __inline__ __inline; do | |
1150 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1151 | #line 1152 "configure" |
9af9ec33 EW |
1152 | #include "confdefs.h" |
1153 | ||
1154 | int main() { | |
1155 | } $ac_kw foo() { | |
1156 | ; return 0; } | |
1157 | EOF | |
de0dff5f | 1158 | if { (eval echo configure:1159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9af9ec33 EW |
1159 | rm -rf conftest* |
1160 | ac_cv_c_inline=$ac_kw; break | |
1161 | else | |
1162 | echo "configure: failed program was:" >&5 | |
1163 | cat conftest.$ac_ext >&5 | |
1164 | fi | |
1165 | rm -f conftest* | |
1166 | done | |
1167 | ||
1168 | fi | |
1169 | ||
1170 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
1171 | case "$ac_cv_c_inline" in | |
1172 | inline | yes) ;; | |
1173 | no) cat >> confdefs.h <<\EOF | |
1174 | #define inline | |
1175 | EOF | |
1176 | ;; | |
1177 | *) cat >> confdefs.h <<EOF | |
1178 | #define inline $ac_cv_c_inline | |
1179 | EOF | |
1180 | ;; | |
1181 | esac | |
1182 | ||
1183 | ||
1184 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
de0dff5f | 1185 | echo "configure:1186: checking how to run the C preprocessor" >&5 |
9af9ec33 EW |
1186 | # On Suns, sometimes $CPP names a directory. |
1187 | if test -n "$CPP" && test -d "$CPP"; then | |
1188 | CPP= | |
1189 | fi | |
1190 | if test -z "$CPP"; then | |
1191 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1193 | else | |
1194 | # This must be in double quotes, not single quotes, because CPP may get | |
1195 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1196 | CPP="${CC-cc} -E" | |
1197 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1198 | # not just through cpp. | |
1199 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1200 | #line 1201 "configure" |
9af9ec33 EW |
1201 | #include "confdefs.h" |
1202 | #include <assert.h> | |
1203 | Syntax Error | |
1204 | EOF | |
1205 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de0dff5f | 1206 | { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9af9ec33 EW |
1207 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1208 | if test -z "$ac_err"; then | |
1209 | : | |
1210 | else | |
1211 | echo "$ac_err" >&5 | |
1212 | echo "configure: failed program was:" >&5 | |
1213 | cat conftest.$ac_ext >&5 | |
1214 | rm -rf conftest* | |
1215 | CPP="${CC-cc} -E -traditional-cpp" | |
1216 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1217 | #line 1218 "configure" |
9af9ec33 EW |
1218 | #include "confdefs.h" |
1219 | #include <assert.h> | |
1220 | Syntax Error | |
1221 | EOF | |
1222 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de0dff5f | 1223 | { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9af9ec33 EW |
1224 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1225 | if test -z "$ac_err"; then | |
1226 | : | |
1227 | else | |
1228 | echo "$ac_err" >&5 | |
1229 | echo "configure: failed program was:" >&5 | |
1230 | cat conftest.$ac_ext >&5 | |
1231 | rm -rf conftest* | |
1232 | CPP="${CC-cc} -nologo -E" | |
1233 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1234 | #line 1235 "configure" |
9af9ec33 EW |
1235 | #include "confdefs.h" |
1236 | #include <assert.h> | |
1237 | Syntax Error | |
1238 | EOF | |
1239 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de0dff5f | 1240 | { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9af9ec33 EW |
1241 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1242 | if test -z "$ac_err"; then | |
1243 | : | |
1244 | else | |
1245 | echo "$ac_err" >&5 | |
1246 | echo "configure: failed program was:" >&5 | |
1247 | cat conftest.$ac_ext >&5 | |
1248 | rm -rf conftest* | |
1249 | CPP=/lib/cpp | |
1250 | fi | |
1251 | rm -f conftest* | |
1252 | fi | |
1253 | rm -f conftest* | |
1254 | fi | |
1255 | rm -f conftest* | |
1256 | ac_cv_prog_CPP="$CPP" | |
1257 | fi | |
1258 | CPP="$ac_cv_prog_CPP" | |
1259 | else | |
1260 | ac_cv_prog_CPP="$CPP" | |
1261 | fi | |
1262 | echo "$ac_t""$CPP" 1>&6 | |
1263 | ||
1264 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
de0dff5f | 1265 | echo "configure:1266: checking for ANSI C header files" >&5 |
9af9ec33 EW |
1266 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1268 | else | |
1269 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1270 | #line 1271 "configure" |
9af9ec33 EW |
1271 | #include "confdefs.h" |
1272 | #include <stdlib.h> | |
1273 | #include <stdarg.h> | |
1274 | #include <string.h> | |
1275 | #include <float.h> | |
1276 | EOF | |
1277 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de0dff5f | 1278 | { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9af9ec33 EW |
1279 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1280 | if test -z "$ac_err"; then | |
1281 | rm -rf conftest* | |
1282 | ac_cv_header_stdc=yes | |
1283 | else | |
1284 | echo "$ac_err" >&5 | |
1285 | echo "configure: failed program was:" >&5 | |
1286 | cat conftest.$ac_ext >&5 | |
1287 | rm -rf conftest* | |
1288 | ac_cv_header_stdc=no | |
1289 | fi | |
1290 | rm -f conftest* | |
1291 | ||
1292 | if test $ac_cv_header_stdc = yes; then | |
1293 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1294 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1295 | #line 1296 "configure" |
9af9ec33 EW |
1296 | #include "confdefs.h" |
1297 | #include <string.h> | |
1298 | EOF | |
1299 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1300 | egrep "memchr" >/dev/null 2>&1; then | |
1301 | : | |
1302 | else | |
1303 | rm -rf conftest* | |
1304 | ac_cv_header_stdc=no | |
1305 | fi | |
1306 | rm -f conftest* | |
1307 | ||
1308 | fi | |
1309 | ||
1310 | if test $ac_cv_header_stdc = yes; then | |
1311 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1312 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1313 | #line 1314 "configure" |
9af9ec33 EW |
1314 | #include "confdefs.h" |
1315 | #include <stdlib.h> | |
1316 | EOF | |
1317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1318 | egrep "free" >/dev/null 2>&1; then | |
1319 | : | |
1320 | else | |
1321 | rm -rf conftest* | |
1322 | ac_cv_header_stdc=no | |
1323 | fi | |
1324 | rm -f conftest* | |
1325 | ||
1326 | fi | |
1327 | ||
1328 | if test $ac_cv_header_stdc = yes; then | |
1329 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1330 | if test "$cross_compiling" = yes; then | |
1331 | : | |
1332 | else | |
1333 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1334 | #line 1335 "configure" |
9af9ec33 EW |
1335 | #include "confdefs.h" |
1336 | #include <ctype.h> | |
1337 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1338 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1339 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1340 | int main () { int i; for (i = 0; i < 256; i++) | |
1341 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1342 | exit (0); } | |
1343 | ||
1344 | EOF | |
de0dff5f | 1345 | if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9af9ec33 EW |
1346 | then |
1347 | : | |
1348 | else | |
1349 | echo "configure: failed program was:" >&5 | |
1350 | cat conftest.$ac_ext >&5 | |
1351 | rm -fr conftest* | |
1352 | ac_cv_header_stdc=no | |
1353 | fi | |
1354 | rm -fr conftest* | |
1355 | fi | |
1356 | ||
1357 | fi | |
1358 | fi | |
1359 | ||
1360 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1361 | if test $ac_cv_header_stdc = yes; then | |
1362 | cat >> confdefs.h <<\EOF | |
1363 | #define STDC_HEADERS 1 | |
1364 | EOF | |
1365 | ||
1366 | fi | |
1367 | ||
1368 | for ac_hdr in sys/time.h sys/select.h getopt.h | |
1369 | do | |
1370 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1371 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de0dff5f | 1372 | echo "configure:1373: checking for $ac_hdr" >&5 |
9af9ec33 EW |
1373 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1375 | else | |
1376 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1377 | #line 1378 "configure" |
9af9ec33 EW |
1378 | #include "confdefs.h" |
1379 | #include <$ac_hdr> | |
1380 | EOF | |
1381 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de0dff5f | 1382 | { (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9af9ec33 EW |
1383 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1384 | if test -z "$ac_err"; then | |
1385 | rm -rf conftest* | |
1386 | eval "ac_cv_header_$ac_safe=yes" | |
1387 | else | |
1388 | echo "$ac_err" >&5 | |
1389 | echo "configure: failed program was:" >&5 | |
1390 | cat conftest.$ac_ext >&5 | |
1391 | rm -rf conftest* | |
1392 | eval "ac_cv_header_$ac_safe=no" | |
1393 | fi | |
1394 | rm -f conftest* | |
1395 | fi | |
1396 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1397 | echo "$ac_t""yes" 1>&6 | |
1398 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1399 | cat >> confdefs.h <<EOF | |
1400 | #define $ac_tr_hdr 1 | |
1401 | EOF | |
1402 | ||
1403 | else | |
1404 | echo "$ac_t""no" 1>&6 | |
1405 | fi | |
1406 | done | |
1407 | ||
1408 | ||
1409 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
de0dff5f | 1410 | echo "configure:1411: checking for working const" >&5 |
9af9ec33 EW |
1411 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1413 | else | |
1414 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1415 | #line 1416 "configure" |
9af9ec33 EW |
1416 | #include "confdefs.h" |
1417 | ||
1418 | int main() { | |
1419 | ||
1420 | /* Ultrix mips cc rejects this. */ | |
1421 | typedef int charset[2]; const charset x; | |
1422 | /* SunOS 4.1.1 cc rejects this. */ | |
1423 | char const *const *ccp; | |
1424 | char **p; | |
1425 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1426 | struct point {int x, y;}; | |
1427 | static struct point const zero = {0,0}; | |
1428 | /* AIX XL C 1.02.0.0 rejects this. | |
1429 | It does not let you subtract one const X* pointer from another in an arm | |
1430 | of an if-expression whose if-part is not a constant expression */ | |
1431 | const char *g = "string"; | |
1432 | ccp = &g + (g ? g-g : 0); | |
1433 | /* HPUX 7.0 cc rejects these. */ | |
1434 | ++ccp; | |
1435 | p = (char**) ccp; | |
1436 | ccp = (char const *const *) p; | |
1437 | { /* SCO 3.2v4 cc rejects this. */ | |
1438 | char *t; | |
1439 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1440 | ||
1441 | *t++ = 0; | |
1442 | } | |
1443 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1444 | int x[] = {25, 17}; | |
1445 | const int *foo = &x[0]; | |
1446 | ++foo; | |
1447 | } | |
1448 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1449 | typedef const int *iptr; | |
1450 | iptr p = 0; | |
1451 | ++p; | |
1452 | } | |
1453 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1454 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1455 | struct s { int j; const int *ap[3]; }; | |
1456 | struct s *b; b->j = 5; | |
1457 | } | |
1458 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1459 | const int foo = 10; | |
1460 | } | |
1461 | ||
1462 | ; return 0; } | |
1463 | EOF | |
de0dff5f | 1464 | if { (eval echo configure:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9af9ec33 EW |
1465 | rm -rf conftest* |
1466 | ac_cv_c_const=yes | |
1467 | else | |
1468 | echo "configure: failed program was:" >&5 | |
1469 | cat conftest.$ac_ext >&5 | |
1470 | rm -rf conftest* | |
1471 | ac_cv_c_const=no | |
1472 | fi | |
1473 | rm -f conftest* | |
1474 | fi | |
1475 | ||
1476 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
1477 | if test $ac_cv_c_const = no; then | |
1478 | cat >> confdefs.h <<\EOF | |
1479 | #define const | |
1480 | EOF | |
1481 | ||
1482 | fi | |
1483 | ||
1484 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
de0dff5f | 1485 | echo "configure:1486: checking for size_t" >&5 |
9af9ec33 EW |
1486 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1488 | else | |
1489 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1490 | #line 1491 "configure" |
9af9ec33 EW |
1491 | #include "confdefs.h" |
1492 | #include <sys/types.h> | |
1493 | #if STDC_HEADERS | |
1494 | #include <stdlib.h> | |
1495 | #include <stddef.h> | |
1496 | #endif | |
1497 | EOF | |
1498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1499 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1500 | rm -rf conftest* | |
1501 | ac_cv_type_size_t=yes | |
1502 | else | |
1503 | rm -rf conftest* | |
1504 | ac_cv_type_size_t=no | |
1505 | fi | |
1506 | rm -f conftest* | |
1507 | ||
1508 | fi | |
1509 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
1510 | if test $ac_cv_type_size_t = no; then | |
1511 | cat >> confdefs.h <<\EOF | |
1512 | #define size_t unsigned | |
1513 | EOF | |
1514 | ||
1515 | fi | |
1516 | ||
1517 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
de0dff5f | 1518 | echo "configure:1519: checking whether time.h and sys/time.h may both be included" >&5 |
9af9ec33 EW |
1519 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1521 | else | |
1522 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1523 | #line 1524 "configure" |
9af9ec33 EW |
1524 | #include "confdefs.h" |
1525 | #include <sys/types.h> | |
1526 | #include <sys/time.h> | |
1527 | #include <time.h> | |
1528 | int main() { | |
1529 | struct tm *tp; | |
1530 | ; return 0; } | |
1531 | EOF | |
de0dff5f | 1532 | if { (eval echo configure:1533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9af9ec33 EW |
1533 | rm -rf conftest* |
1534 | ac_cv_header_time=yes | |
1535 | else | |
1536 | echo "configure: failed program was:" >&5 | |
1537 | cat conftest.$ac_ext >&5 | |
1538 | rm -rf conftest* | |
1539 | ac_cv_header_time=no | |
1540 | fi | |
1541 | rm -f conftest* | |
1542 | fi | |
1543 | ||
1544 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1545 | if test $ac_cv_header_time = yes; then | |
1546 | cat >> confdefs.h <<\EOF | |
1547 | #define TIME_WITH_SYS_TIME 1 | |
1548 | EOF | |
1549 | ||
1550 | fi | |
1551 | ||
1552 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | |
de0dff5f | 1553 | echo "configure:1554: checking whether struct tm is in sys/time.h or time.h" >&5 |
9af9ec33 EW |
1554 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
1555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1556 | else | |
1557 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1558 | #line 1559 "configure" |
9af9ec33 EW |
1559 | #include "confdefs.h" |
1560 | #include <sys/types.h> | |
1561 | #include <time.h> | |
1562 | int main() { | |
1563 | struct tm *tp; tp->tm_sec; | |
1564 | ; return 0; } | |
1565 | EOF | |
de0dff5f | 1566 | if { (eval echo configure:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9af9ec33 EW |
1567 | rm -rf conftest* |
1568 | ac_cv_struct_tm=time.h | |
1569 | else | |
1570 | echo "configure: failed program was:" >&5 | |
1571 | cat conftest.$ac_ext >&5 | |
1572 | rm -rf conftest* | |
1573 | ac_cv_struct_tm=sys/time.h | |
1574 | fi | |
1575 | rm -f conftest* | |
1576 | fi | |
1577 | ||
1578 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
1579 | if test $ac_cv_struct_tm = sys/time.h; then | |
1580 | cat >> confdefs.h <<\EOF | |
1581 | #define TM_IN_SYS_TIME 1 | |
1582 | EOF | |
1583 | ||
1584 | fi | |
1585 | ||
1586 | ||
1587 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
de0dff5f | 1588 | echo "configure:1589: checking return type of signal handlers" >&5 |
9af9ec33 EW |
1589 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
1590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1591 | else | |
1592 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1593 | #line 1594 "configure" |
9af9ec33 EW |
1594 | #include "confdefs.h" |
1595 | #include <sys/types.h> | |
1596 | #include <signal.h> | |
1597 | #ifdef signal | |
1598 | #undef signal | |
1599 | #endif | |
1600 | #ifdef __cplusplus | |
1601 | extern "C" void (*signal (int, void (*)(int)))(int); | |
1602 | #else | |
1603 | void (*signal ()) (); | |
1604 | #endif | |
1605 | ||
1606 | int main() { | |
1607 | int i; | |
1608 | ; return 0; } | |
1609 | EOF | |
de0dff5f | 1610 | if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
9af9ec33 EW |
1611 | rm -rf conftest* |
1612 | ac_cv_type_signal=void | |
1613 | else | |
1614 | echo "configure: failed program was:" >&5 | |
1615 | cat conftest.$ac_ext >&5 | |
1616 | rm -rf conftest* | |
1617 | ac_cv_type_signal=int | |
1618 | fi | |
1619 | rm -f conftest* | |
1620 | fi | |
1621 | ||
1622 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
1623 | cat >> confdefs.h <<EOF | |
1624 | #define RETSIGTYPE $ac_cv_type_signal | |
1625 | EOF | |
1626 | ||
1627 | ||
1628 | echo $ac_n "checking for strftime""... $ac_c" 1>&6 | |
de0dff5f | 1629 | echo "configure:1630: checking for strftime" >&5 |
9af9ec33 EW |
1630 | if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then |
1631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1632 | else | |
1633 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1634 | #line 1635 "configure" |
9af9ec33 EW |
1635 | #include "confdefs.h" |
1636 | /* System header to define __stub macros and hopefully few prototypes, | |
1637 | which can conflict with char strftime(); below. */ | |
1638 | #include <assert.h> | |
1639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1640 | /* We use char because int might match the return type of a gcc2 | |
1641 | builtin and then its argument prototype would still apply. */ | |
1642 | char strftime(); | |
1643 | ||
1644 | int main() { | |
1645 | ||
1646 | /* The GNU C library defines this for functions which it implements | |
1647 | to always fail with ENOSYS. Some functions are actually named | |
1648 | something starting with __ and the normal name is an alias. */ | |
1649 | #if defined (__stub_strftime) || defined (__stub___strftime) | |
1650 | choke me | |
1651 | #else | |
1652 | strftime(); | |
1653 | #endif | |
1654 | ||
1655 | ; return 0; } | |
1656 | EOF | |
de0dff5f | 1657 | if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
1658 | rm -rf conftest* |
1659 | eval "ac_cv_func_strftime=yes" | |
1660 | else | |
1661 | echo "configure: failed program was:" >&5 | |
1662 | cat conftest.$ac_ext >&5 | |
1663 | rm -rf conftest* | |
1664 | eval "ac_cv_func_strftime=no" | |
1665 | fi | |
1666 | rm -f conftest* | |
1667 | fi | |
1668 | ||
1669 | if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then | |
1670 | echo "$ac_t""yes" 1>&6 | |
1671 | cat >> confdefs.h <<\EOF | |
1672 | #define HAVE_STRFTIME 1 | |
1673 | EOF | |
1674 | ||
1675 | else | |
1676 | echo "$ac_t""no" 1>&6 | |
1677 | # strftime is in -lintl on SCO UNIX. | |
1678 | echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 | |
de0dff5f | 1679 | echo "configure:1680: checking for strftime in -lintl" >&5 |
9af9ec33 EW |
1680 | ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` |
1681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1683 | else | |
1684 | ac_save_LIBS="$LIBS" | |
1685 | LIBS="-lintl $LIBS" | |
1686 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1687 | #line 1688 "configure" |
9af9ec33 EW |
1688 | #include "confdefs.h" |
1689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1690 | /* We use char because int might match the return type of a gcc2 | |
1691 | builtin and then its argument prototype would still apply. */ | |
1692 | char strftime(); | |
1693 | ||
1694 | int main() { | |
1695 | strftime() | |
1696 | ; return 0; } | |
1697 | EOF | |
de0dff5f | 1698 | if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
1699 | rm -rf conftest* |
1700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1701 | else | |
1702 | echo "configure: failed program was:" >&5 | |
1703 | cat conftest.$ac_ext >&5 | |
1704 | rm -rf conftest* | |
1705 | eval "ac_cv_lib_$ac_lib_var=no" | |
1706 | fi | |
1707 | rm -f conftest* | |
1708 | LIBS="$ac_save_LIBS" | |
1709 | ||
1710 | fi | |
1711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1712 | echo "$ac_t""yes" 1>&6 | |
1713 | cat >> confdefs.h <<\EOF | |
1714 | #define HAVE_STRFTIME 1 | |
1715 | EOF | |
1716 | ||
1717 | LIBS="-lintl $LIBS" | |
1718 | else | |
1719 | echo "$ac_t""no" 1>&6 | |
1720 | fi | |
1721 | ||
1722 | fi | |
1723 | ||
de0dff5f | 1724 | for ac_func in select strlcpy strlcat getaddrinfo gettimeofday umask mmap |
9af9ec33 EW |
1725 | do |
1726 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
de0dff5f | 1727 | echo "configure:1728: checking for $ac_func" >&5 |
9af9ec33 EW |
1728 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1730 | else | |
1731 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1732 | #line 1733 "configure" |
9af9ec33 EW |
1733 | #include "confdefs.h" |
1734 | /* System header to define __stub macros and hopefully few prototypes, | |
1735 | which can conflict with char $ac_func(); below. */ | |
1736 | #include <assert.h> | |
1737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1738 | /* We use char because int might match the return type of a gcc2 | |
1739 | builtin and then its argument prototype would still apply. */ | |
1740 | char $ac_func(); | |
1741 | ||
1742 | int main() { | |
1743 | ||
1744 | /* The GNU C library defines this for functions which it implements | |
1745 | to always fail with ENOSYS. Some functions are actually named | |
1746 | something starting with __ and the normal name is an alias. */ | |
1747 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1748 | choke me | |
1749 | #else | |
1750 | $ac_func(); | |
1751 | #endif | |
1752 | ||
1753 | ; return 0; } | |
1754 | EOF | |
de0dff5f | 1755 | if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
1756 | rm -rf conftest* |
1757 | eval "ac_cv_func_$ac_func=yes" | |
1758 | else | |
1759 | echo "configure: failed program was:" >&5 | |
1760 | cat conftest.$ac_ext >&5 | |
1761 | rm -rf conftest* | |
1762 | eval "ac_cv_func_$ac_func=no" | |
1763 | fi | |
1764 | rm -f conftest* | |
1765 | fi | |
1766 | ||
1767 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1768 | echo "$ac_t""yes" 1>&6 | |
1769 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1770 | cat >> confdefs.h <<EOF | |
1771 | #define $ac_tr_func 1 | |
1772 | EOF | |
1773 | ||
1774 | else | |
1775 | echo "$ac_t""no" 1>&6 | |
1776 | fi | |
1777 | done | |
1778 | ||
1779 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
de0dff5f | 1780 | echo "configure:1781: checking for socket" >&5 |
9af9ec33 EW |
1781 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
1782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1783 | else | |
1784 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1785 | #line 1786 "configure" |
9af9ec33 EW |
1786 | #include "confdefs.h" |
1787 | /* System header to define __stub macros and hopefully few prototypes, | |
1788 | which can conflict with char socket(); below. */ | |
1789 | #include <assert.h> | |
1790 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1791 | /* We use char because int might match the return type of a gcc2 | |
1792 | builtin and then its argument prototype would still apply. */ | |
1793 | char socket(); | |
1794 | ||
1795 | int main() { | |
1796 | ||
1797 | /* The GNU C library defines this for functions which it implements | |
1798 | to always fail with ENOSYS. Some functions are actually named | |
1799 | something starting with __ and the normal name is an alias. */ | |
1800 | #if defined (__stub_socket) || defined (__stub___socket) | |
1801 | choke me | |
1802 | #else | |
1803 | socket(); | |
1804 | #endif | |
1805 | ||
1806 | ; return 0; } | |
1807 | EOF | |
de0dff5f | 1808 | if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
1809 | rm -rf conftest* |
1810 | eval "ac_cv_func_socket=yes" | |
1811 | else | |
1812 | echo "configure: failed program was:" >&5 | |
1813 | cat conftest.$ac_ext >&5 | |
1814 | rm -rf conftest* | |
1815 | eval "ac_cv_func_socket=no" | |
1816 | fi | |
1817 | rm -f conftest* | |
1818 | fi | |
1819 | ||
1820 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
1821 | echo "$ac_t""yes" 1>&6 | |
1822 | : | |
1823 | else | |
1824 | echo "$ac_t""no" 1>&6 | |
1825 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
de0dff5f | 1826 | echo "configure:1827: checking for socket in -lsocket" >&5 |
9af9ec33 EW |
1827 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
1828 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1830 | else | |
1831 | ac_save_LIBS="$LIBS" | |
1832 | LIBS="-lsocket $LIBS" | |
1833 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1834 | #line 1835 "configure" |
9af9ec33 EW |
1835 | #include "confdefs.h" |
1836 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1837 | /* We use char because int might match the return type of a gcc2 | |
1838 | builtin and then its argument prototype would still apply. */ | |
1839 | char socket(); | |
1840 | ||
1841 | int main() { | |
1842 | socket() | |
1843 | ; return 0; } | |
1844 | EOF | |
de0dff5f | 1845 | if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
1846 | rm -rf conftest* |
1847 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1848 | else | |
1849 | echo "configure: failed program was:" >&5 | |
1850 | cat conftest.$ac_ext >&5 | |
1851 | rm -rf conftest* | |
1852 | eval "ac_cv_lib_$ac_lib_var=no" | |
1853 | fi | |
1854 | rm -f conftest* | |
1855 | LIBS="$ac_save_LIBS" | |
1856 | ||
1857 | fi | |
1858 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1859 | echo "$ac_t""yes" 1>&6 | |
1860 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ | |
1861 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1862 | cat >> confdefs.h <<EOF | |
1863 | #define $ac_tr_lib 1 | |
1864 | EOF | |
1865 | ||
1866 | LIBS="-lsocket $LIBS" | |
1867 | ||
1868 | else | |
1869 | echo "$ac_t""no" 1>&6 | |
1870 | fi | |
1871 | ||
1872 | fi | |
1873 | ||
1874 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
de0dff5f | 1875 | echo "configure:1876: checking for gethostbyname" >&5 |
9af9ec33 EW |
1876 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1878 | else | |
1879 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1880 | #line 1881 "configure" |
9af9ec33 EW |
1881 | #include "confdefs.h" |
1882 | /* System header to define __stub macros and hopefully few prototypes, | |
1883 | which can conflict with char gethostbyname(); below. */ | |
1884 | #include <assert.h> | |
1885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1886 | /* We use char because int might match the return type of a gcc2 | |
1887 | builtin and then its argument prototype would still apply. */ | |
1888 | char gethostbyname(); | |
1889 | ||
1890 | int main() { | |
1891 | ||
1892 | /* The GNU C library defines this for functions which it implements | |
1893 | to always fail with ENOSYS. Some functions are actually named | |
1894 | something starting with __ and the normal name is an alias. */ | |
1895 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
1896 | choke me | |
1897 | #else | |
1898 | gethostbyname(); | |
1899 | #endif | |
1900 | ||
1901 | ; return 0; } | |
1902 | EOF | |
de0dff5f | 1903 | if { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
1904 | rm -rf conftest* |
1905 | eval "ac_cv_func_gethostbyname=yes" | |
1906 | else | |
1907 | echo "configure: failed program was:" >&5 | |
1908 | cat conftest.$ac_ext >&5 | |
1909 | rm -rf conftest* | |
1910 | eval "ac_cv_func_gethostbyname=no" | |
1911 | fi | |
1912 | rm -f conftest* | |
1913 | fi | |
1914 | ||
1915 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
1916 | echo "$ac_t""yes" 1>&6 | |
1917 | : | |
1918 | else | |
1919 | echo "$ac_t""no" 1>&6 | |
1920 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
de0dff5f | 1921 | echo "configure:1922: checking for gethostbyname in -lnsl" >&5 |
9af9ec33 EW |
1922 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
1923 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1925 | else | |
1926 | ac_save_LIBS="$LIBS" | |
1927 | LIBS="-lnsl $LIBS" | |
1928 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 1929 | #line 1930 "configure" |
9af9ec33 EW |
1930 | #include "confdefs.h" |
1931 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1932 | /* We use char because int might match the return type of a gcc2 | |
1933 | builtin and then its argument prototype would still apply. */ | |
1934 | char gethostbyname(); | |
1935 | ||
1936 | int main() { | |
1937 | gethostbyname() | |
1938 | ; return 0; } | |
1939 | EOF | |
de0dff5f | 1940 | if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
1941 | rm -rf conftest* |
1942 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1943 | else | |
1944 | echo "configure: failed program was:" >&5 | |
1945 | cat conftest.$ac_ext >&5 | |
1946 | rm -rf conftest* | |
1947 | eval "ac_cv_lib_$ac_lib_var=no" | |
1948 | fi | |
1949 | rm -f conftest* | |
1950 | LIBS="$ac_save_LIBS" | |
1951 | ||
1952 | fi | |
1953 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1954 | echo "$ac_t""yes" 1>&6 | |
1955 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ | |
1956 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
1957 | cat >> confdefs.h <<EOF | |
1958 | #define $ac_tr_lib 1 | |
1959 | EOF | |
1960 | ||
1961 | LIBS="-lnsl $LIBS" | |
1962 | ||
1963 | else | |
1964 | echo "$ac_t""no" 1>&6 | |
1965 | fi | |
1966 | ||
1967 | fi | |
1968 | ||
9af9ec33 EW |
1969 | |
1970 | HARDASSERT="no" | |
1971 | echo $ac_n "checking if you want hard asserts""... $ac_c" 1>&6 | |
de0dff5f | 1972 | echo "configure:1973: checking if you want hard asserts" >&5 |
9af9ec33 EW |
1973 | # Check whether --enable-hard-assert or --disable-hard-assert was given. |
1974 | if test "${enable_hard_assert+set}" = set; then | |
1975 | enableval="$enable_hard_assert" | |
1976 | ||
1977 | case "$enableval" in | |
1978 | yes) | |
1979 | HARDASSERT="yes" | |
1980 | cat >> confdefs.h <<\EOF | |
1981 | #define HARD_ASSERT 1 | |
1982 | EOF | |
1983 | ||
1984 | ;; | |
1985 | no) | |
1986 | HARDASSERT="no" | |
1987 | ;; | |
1988 | esac | |
1989 | ||
1990 | fi | |
1991 | ||
1992 | echo "$ac_t""$HARDASSERT" 1>&6 | |
1993 | ||
1994 | LARGENET="no" | |
1995 | echo $ac_n "checking if you want large network support""... $ac_c" 1>&6 | |
de0dff5f | 1996 | echo "configure:1997: checking if you want large network support" >&5 |
9af9ec33 EW |
1997 | # Check whether --enable-large-net or --disable-large-net was given. |
1998 | if test "${enable_large_net+set}" = set; then | |
1999 | enableval="$enable_large_net" | |
2000 | ||
2001 | case "$enableval" in | |
2002 | yes) | |
2003 | LARGENET="yes" | |
2004 | cat >> confdefs.h <<\EOF | |
2005 | #define LARGE_NETWORK 1 | |
2006 | EOF | |
2007 | ||
2008 | ;; | |
2009 | no) | |
2010 | LARGENET="no" | |
2011 | ;; | |
2012 | esac | |
2013 | ||
2014 | fi | |
2015 | ||
2016 | echo "$ac_t""$LARGENET" 1>&6 | |
2017 | ||
2018 | SHARED_MODULES="yes" | |
2019 | echo $ac_n "checking if you want shared modules""... $ac_c" 1>&6 | |
de0dff5f | 2020 | echo "configure:2021: checking if you want shared modules" >&5 |
9af9ec33 EW |
2021 | # Check whether --enable-shared-modules or --disable-shared-modules was given. |
2022 | if test "${enable_shared_modules+set}" = set; then | |
2023 | enableval="$enable_shared_modules" | |
2024 | ||
2025 | case "$enableval" in | |
2026 | yes) | |
2027 | SHARED_MODULES="yes" | |
2028 | ;; | |
2029 | no) | |
2030 | SHARED_MODULES="no" | |
2031 | ;; | |
2032 | esac | |
2033 | ||
2034 | fi | |
2035 | ||
2036 | echo "$ac_t""$SHARED_MODULES" 1>&6 | |
2037 | ||
2038 | if test "$SHARED_MODULES" = yes; then | |
2039 | for ac_hdr in dlfcn.h | |
2040 | do | |
2041 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2042 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
de0dff5f | 2043 | echo "configure:2044: checking for $ac_hdr" >&5 |
9af9ec33 EW |
2044 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2046 | else | |
2047 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 2048 | #line 2049 "configure" |
9af9ec33 EW |
2049 | #include "confdefs.h" |
2050 | #include <$ac_hdr> | |
2051 | EOF | |
2052 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
de0dff5f | 2053 | { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9af9ec33 EW |
2054 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2055 | if test -z "$ac_err"; then | |
2056 | rm -rf conftest* | |
2057 | eval "ac_cv_header_$ac_safe=yes" | |
2058 | else | |
2059 | echo "$ac_err" >&5 | |
2060 | echo "configure: failed program was:" >&5 | |
2061 | cat conftest.$ac_ext >&5 | |
2062 | rm -rf conftest* | |
2063 | eval "ac_cv_header_$ac_safe=no" | |
2064 | fi | |
2065 | rm -f conftest* | |
2066 | fi | |
2067 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2068 | echo "$ac_t""yes" 1>&6 | |
2069 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2070 | cat >> confdefs.h <<EOF | |
2071 | #define $ac_tr_hdr 1 | |
2072 | EOF | |
2073 | ||
2074 | else | |
2075 | echo "$ac_t""no" 1>&6 | |
2076 | fi | |
2077 | done | |
2078 | ||
2079 | ||
2080 | echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6 | |
de0dff5f | 2081 | echo "configure:2082: checking for library containing dlopen" >&5 |
9af9ec33 EW |
2082 | if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then |
2083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2084 | else | |
2085 | ac_func_search_save_LIBS="$LIBS" | |
2086 | ac_cv_search_dlopen="no" | |
2087 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 2088 | #line 2089 "configure" |
9af9ec33 EW |
2089 | #include "confdefs.h" |
2090 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2091 | /* We use char because int might match the return type of a gcc2 | |
2092 | builtin and then its argument prototype would still apply. */ | |
2093 | char dlopen(); | |
2094 | ||
2095 | int main() { | |
2096 | dlopen() | |
2097 | ; return 0; } | |
2098 | EOF | |
de0dff5f | 2099 | if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
2100 | rm -rf conftest* |
2101 | ac_cv_search_dlopen="none required" | |
2102 | else | |
2103 | echo "configure: failed program was:" >&5 | |
2104 | cat conftest.$ac_ext >&5 | |
2105 | fi | |
2106 | rm -f conftest* | |
2107 | test "$ac_cv_search_dlopen" = "no" && for i in dl c_r; do | |
2108 | LIBS="-l$i $ac_func_search_save_LIBS" | |
2109 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 2110 | #line 2111 "configure" |
9af9ec33 EW |
2111 | #include "confdefs.h" |
2112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2113 | /* We use char because int might match the return type of a gcc2 | |
2114 | builtin and then its argument prototype would still apply. */ | |
2115 | char dlopen(); | |
2116 | ||
2117 | int main() { | |
2118 | dlopen() | |
2119 | ; return 0; } | |
2120 | EOF | |
de0dff5f | 2121 | if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
2122 | rm -rf conftest* |
2123 | ac_cv_search_dlopen="-l$i" | |
2124 | break | |
2125 | else | |
2126 | echo "configure: failed program was:" >&5 | |
2127 | cat conftest.$ac_ext >&5 | |
2128 | fi | |
2129 | rm -f conftest* | |
2130 | done | |
2131 | LIBS="$ac_func_search_save_LIBS" | |
2132 | fi | |
2133 | ||
2134 | echo "$ac_t""$ac_cv_search_dlopen" 1>&6 | |
2135 | if test "$ac_cv_search_dlopen" != "no"; then | |
2136 | test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" | |
2137 | ||
2138 | cat >> confdefs.h <<\EOF | |
2139 | #define HAVE_DLOPEN 1 | |
2140 | EOF | |
2141 | ||
2142 | MOD_TARGET="shared_modules" | |
2143 | MOD_INSTALL_TARGET="install_shared_modules" | |
2144 | echo $ac_n "checking for dlsym""... $ac_c" 1>&6 | |
de0dff5f | 2145 | echo "configure:2146: checking for dlsym" >&5 |
9af9ec33 EW |
2146 | if eval "test \"`echo '$''{'ac_cv_func_dlsym'+set}'`\" = set"; then |
2147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2148 | else | |
2149 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 2150 | #line 2151 "configure" |
9af9ec33 EW |
2151 | #include "confdefs.h" |
2152 | /* System header to define __stub macros and hopefully few prototypes, | |
2153 | which can conflict with char dlsym(); below. */ | |
2154 | #include <assert.h> | |
2155 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2156 | /* We use char because int might match the return type of a gcc2 | |
2157 | builtin and then its argument prototype would still apply. */ | |
2158 | char dlsym(); | |
2159 | ||
2160 | int main() { | |
2161 | ||
2162 | /* The GNU C library defines this for functions which it implements | |
2163 | to always fail with ENOSYS. Some functions are actually named | |
2164 | something starting with __ and the normal name is an alias. */ | |
2165 | #if defined (__stub_dlsym) || defined (__stub___dlsym) | |
2166 | choke me | |
2167 | #else | |
2168 | dlsym(); | |
2169 | #endif | |
2170 | ||
2171 | ; return 0; } | |
2172 | EOF | |
de0dff5f | 2173 | if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
2174 | rm -rf conftest* |
2175 | eval "ac_cv_func_dlsym=yes" | |
2176 | else | |
2177 | echo "configure: failed program was:" >&5 | |
2178 | cat conftest.$ac_ext >&5 | |
2179 | rm -rf conftest* | |
2180 | eval "ac_cv_func_dlsym=no" | |
2181 | fi | |
2182 | rm -f conftest* | |
2183 | fi | |
2184 | ||
2185 | if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then | |
2186 | echo "$ac_t""yes" 1>&6 | |
2187 | : | |
2188 | else | |
2189 | echo "$ac_t""no" 1>&6 | |
2190 | ||
2191 | echo "configure: warning: dlsym is not available, shared modules disabled" 1>&2 | |
2192 | SHARED_MODULES="no" | |
2193 | ||
2194 | fi | |
2195 | ||
2196 | for ac_func in dlfunc | |
2197 | do | |
2198 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
de0dff5f | 2199 | echo "configure:2200: checking for $ac_func" >&5 |
9af9ec33 EW |
2200 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2202 | else | |
2203 | cat > conftest.$ac_ext <<EOF | |
de0dff5f | 2204 | #line 2205 "configure" |
9af9ec33 EW |
2205 | #include "confdefs.h" |
2206 | /* System header to define __stub macros and hopefully few prototypes, | |
2207 | which can conflict with char $ac_func(); below. */ | |
2208 | #include <assert.h> | |
2209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2210 | /* We use char because int might match the return type of a gcc2 | |
2211 | builtin and then its argument prototype would still apply. */ | |
2212 | char $ac_func(); | |
2213 | ||
2214 | int main() { | |
2215 | ||
2216 | /* The GNU C library defines this for functions which it implements | |
2217 | to always fail with ENOSYS. Some functions are actually named | |
2218 | something starting with __ and the normal name is an alias. */ | |
2219 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2220 | choke me | |
2221 | #else | |
2222 | $ac_func(); | |
2223 | #endif | |
2224 | ||
2225 | ; return 0; } | |
2226 | EOF | |
de0dff5f | 2227 | if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9af9ec33 EW |
2228 | rm -rf conftest* |
2229 | eval "ac_cv_func_$ac_func=yes" | |
2230 | else | |
2231 | echo "configure: failed program was:" >&5 | |
2232 | cat conftest.$ac_ext >&5 | |
2233 | rm -rf conftest* | |
2234 | eval "ac_cv_func_$ac_func=no" | |
2235 | fi | |
2236 | rm -f conftest* | |
2237 | fi | |
2238 | ||
2239 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2240 | echo "$ac_t""yes" 1>&6 | |
2241 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2242 | cat >> confdefs.h <<EOF | |
2243 | #define $ac_tr_func 1 | |
2244 | EOF | |
2245 | ||
2246 | else | |
2247 | echo "$ac_t""no" 1>&6 | |
2248 | fi | |
2249 | done | |
2250 | ||
2251 | ||
2252 | else : | |
2253 | ||
2254 | SHARED_MODULES="no" | |
2255 | ||
2256 | fi | |
2257 | fi | |
2258 | ||
2259 | if test "$SHARED_MODULES" = yes; then | |
2260 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
2261 | MY_CFLAGS="-shared -fPIC -DPIC" | |
2262 | fi | |
2263 | ||
2264 | if test "$SHARED_MODULES" = no; then | |
2265 | cat >> confdefs.h <<\EOF | |
2266 | #define STATIC_MODULES 1 | |
2267 | EOF | |
2268 | ||
2269 | MOD_TARGET="static_modules" | |
2270 | MOD_INSTALL_TARGET= | |
2271 | LIBS="${LIBS} ../modules/libmodules.a userserv/libuserserv.a" | |
2272 | LDFLAGS="${LDFLAGS} -L../modules -Luserserv -lmodules -luserserv" | |
2273 | fi | |
2274 | ||
2275 | ||
2276 | ||
2277 | ||
2278 | ||
2279 | ||
2280 | ||
2281 | if test "$SHARED_MODULES" = no; then | |
2282 | tmp_mod=static | |
2283 | else | |
2284 | tmp_mod=shared | |
2285 | fi | |
2286 | ||
2287 | if test "$HARDASSERT" = no; then | |
2288 | tmp_assert=soft | |
2289 | else | |
2290 | tmp_assert=hard | |
2291 | fi | |
2292 | ||
2293 | trap '' 1 2 15 | |
2294 | cat > confcache <<\EOF | |
2295 | # This file is a shell script that caches the results of configure | |
2296 | # tests run on this system so they can be shared between configure | |
2297 | # scripts and configure runs. It is not useful on other systems. | |
2298 | # If it contains results you don't want to keep, you may remove or edit it. | |
2299 | # | |
2300 | # By default, configure uses ./config.cache as the cache file, | |
2301 | # creating it if it does not exist already. You can give configure | |
2302 | # the --cache-file=FILE option to use a different cache file; that is | |
2303 | # what configure does when it calls configure scripts in | |
2304 | # subdirectories, so they share the cache. | |
2305 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2306 | # config.status only pays attention to the cache file if you give it the | |
2307 | # --recheck option to rerun configure. | |
2308 | # | |
2309 | EOF | |
2310 | # The following way of writing the cache mishandles newlines in values, | |
2311 | # but we know of no workaround that is simple, portable, and efficient. | |
2312 | # So, don't put newlines in cache variables' values. | |
2313 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2314 | # and sets the high bit in the cache file unless we assign to the vars. | |
2315 | (set) 2>&1 | | |
2316 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2317 | *ac_space=\ *) | |
2318 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2319 | # turns \\\\ into \\, and sed turns \\ into \). | |
2320 | sed -n \ | |
2321 | -e "s/'/'\\\\''/g" \ | |
2322 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2323 | ;; | |
2324 | *) | |
2325 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2326 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2327 | ;; | |
2328 | esac >> confcache | |
2329 | if cmp -s $cache_file confcache; then | |
2330 | : | |
2331 | else | |
2332 | if test -w $cache_file; then | |
2333 | echo "updating cache $cache_file" | |
2334 | cat confcache > $cache_file | |
2335 | else | |
2336 | echo "not updating unwritable cache $cache_file" | |
2337 | fi | |
2338 | fi | |
2339 | rm -f confcache | |
2340 | ||
2341 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2342 | ||
2343 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2344 | # Let make expand exec_prefix. | |
2345 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2346 | ||
2347 | # Any assignment to VPATH causes Sun make to only execute | |
2348 | # the first set of double-colon rules, so remove it if not needed. | |
2349 | # If there is a colon in the path, we need to keep it. | |
2350 | if test "x$srcdir" = x.; then | |
2351 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2352 | fi | |
2353 | ||
2354 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2355 | ||
2356 | DEFS=-DHAVE_CONFIG_H | |
2357 | ||
2358 | # Without the "./", some shells look in PATH for config.status. | |
2359 | : ${CONFIG_STATUS=./config.status} | |
2360 | ||
2361 | echo creating $CONFIG_STATUS | |
2362 | rm -f $CONFIG_STATUS | |
2363 | cat > $CONFIG_STATUS <<EOF | |
2364 | #! /bin/sh | |
2365 | # Generated automatically by configure. | |
2366 | # Run this file to recreate the current configuration. | |
2367 | # This directory was configured as follows, | |
2368 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2369 | # | |
2370 | # $0 $ac_configure_args | |
2371 | # | |
2372 | # Compiler output produced by configure, useful for debugging | |
2373 | # configure, is in ./config.log if it exists. | |
2374 | ||
2375 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2376 | for ac_option | |
2377 | do | |
2378 | case "\$ac_option" in | |
2379 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2380 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2381 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2382 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
2383 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
2384 | exit 0 ;; | |
2385 | -help | --help | --hel | --he | --h) | |
2386 | echo "\$ac_cs_usage"; exit 0 ;; | |
2387 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2388 | esac | |
2389 | done | |
2390 | ||
2391 | ac_given_srcdir=$srcdir | |
2392 | ac_given_INSTALL="$INSTALL" | |
2393 | ||
2394 | trap 'rm -fr `echo "Makefile sqlite/Makefile src/Makefile modules/Makefile include/setup.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
2395 | EOF | |
2396 | cat >> $CONFIG_STATUS <<EOF | |
2397 | ||
2398 | # Protect against being on the right side of a sed subst in config.status. | |
2399 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2400 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2401 | $ac_vpsub | |
2402 | $extrasub | |
2403 | s%@SHELL@%$SHELL%g | |
2404 | s%@CFLAGS@%$CFLAGS%g | |
2405 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2406 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2407 | s%@FFLAGS@%$FFLAGS%g | |
2408 | s%@DEFS@%$DEFS%g | |
2409 | s%@LDFLAGS@%$LDFLAGS%g | |
2410 | s%@LIBS@%$LIBS%g | |
2411 | s%@exec_prefix@%$exec_prefix%g | |
2412 | s%@prefix@%$prefix%g | |
2413 | s%@program_transform_name@%$program_transform_name%g | |
2414 | s%@bindir@%$bindir%g | |
2415 | s%@sbindir@%$sbindir%g | |
2416 | s%@libexecdir@%$libexecdir%g | |
2417 | s%@datadir@%$datadir%g | |
2418 | s%@sysconfdir@%$sysconfdir%g | |
2419 | s%@sharedstatedir@%$sharedstatedir%g | |
2420 | s%@localstatedir@%$localstatedir%g | |
2421 | s%@libdir@%$libdir%g | |
2422 | s%@includedir@%$includedir%g | |
2423 | s%@oldincludedir@%$oldincludedir%g | |
2424 | s%@infodir@%$infodir%g | |
2425 | s%@mandir@%$mandir%g | |
2426 | s%@SET_MAKE@%$SET_MAKE%g | |
2427 | s%@CC@%$CC%g | |
2428 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2429 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
2430 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2431 | s%@EXEEXT@%$EXEEXT%g | |
2432 | s%@RM@%$RM%g | |
2433 | s%@MV@%$MV%g | |
2434 | s%@CP@%$CP%g | |
2435 | s%@AR@%$AR%g | |
2436 | s%@RANLIB@%$RANLIB%g | |
2437 | s%@CPP@%$CPP%g | |
2438 | s%@MOD_TARGET@%$MOD_TARGET%g | |
2439 | s%@MOD_INSTALL_TARGET@%$MOD_INSTALL_TARGET%g | |
2440 | s%@MY_CFLAGS@%$MY_CFLAGS%g | |
2441 | s%@HARDASSERT@%$HARDASSERT%g | |
2442 | s%@LARGENET@%$LARGENET%g | |
2443 | ||
2444 | CEOF | |
2445 | EOF | |
2446 | ||
2447 | cat >> $CONFIG_STATUS <<\EOF | |
2448 | ||
2449 | # Split the substitutions into bite-sized pieces for seds with | |
2450 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2451 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2452 | ac_file=1 # Number of current file. | |
2453 | ac_beg=1 # First line for current file. | |
2454 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2455 | ac_more_lines=: | |
2456 | ac_sed_cmds="" | |
2457 | while $ac_more_lines; do | |
2458 | if test $ac_beg -gt 1; then | |
2459 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2460 | else | |
2461 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2462 | fi | |
2463 | if test ! -s conftest.s$ac_file; then | |
2464 | ac_more_lines=false | |
2465 | rm -f conftest.s$ac_file | |
2466 | else | |
2467 | if test -z "$ac_sed_cmds"; then | |
2468 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2469 | else | |
2470 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2471 | fi | |
2472 | ac_file=`expr $ac_file + 1` | |
2473 | ac_beg=$ac_end | |
2474 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
2475 | fi | |
2476 | done | |
2477 | if test -z "$ac_sed_cmds"; then | |
2478 | ac_sed_cmds=cat | |
2479 | fi | |
2480 | EOF | |
2481 | ||
2482 | cat >> $CONFIG_STATUS <<EOF | |
2483 | ||
2484 | CONFIG_FILES=\${CONFIG_FILES-"Makefile sqlite/Makefile src/Makefile modules/Makefile"} | |
2485 | EOF | |
2486 | cat >> $CONFIG_STATUS <<\EOF | |
2487 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2488 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2489 | case "$ac_file" in | |
2490 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2491 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2492 | *) ac_file_in="${ac_file}.in" ;; | |
2493 | esac | |
2494 | ||
2495 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
2496 | ||
2497 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2498 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2499 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2500 | # The file is in a subdirectory. | |
2501 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2502 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2503 | # A "../" for each directory in $ac_dir_suffix. | |
2504 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2505 | else | |
2506 | ac_dir_suffix= ac_dots= | |
2507 | fi | |
2508 | ||
2509 | case "$ac_given_srcdir" in | |
2510 | .) srcdir=. | |
2511 | if test -z "$ac_dots"; then top_srcdir=. | |
2512 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2513 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2514 | *) # Relative path. | |
2515 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2516 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2517 | esac | |
2518 | ||
2519 | case "$ac_given_INSTALL" in | |
2520 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2521 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2522 | esac | |
2523 | ||
2524 | echo creating "$ac_file" | |
2525 | rm -f "$ac_file" | |
2526 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2527 | case "$ac_file" in | |
2528 | *Makefile*) ac_comsub="1i\\ | |
2529 | # $configure_input" ;; | |
2530 | *) ac_comsub= ;; | |
2531 | esac | |
2532 | ||
2533 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2534 | sed -e "$ac_comsub | |
2535 | s%@configure_input@%$configure_input%g | |
2536 | s%@srcdir@%$srcdir%g | |
2537 | s%@top_srcdir@%$top_srcdir%g | |
2538 | s%@INSTALL@%$INSTALL%g | |
2539 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
2540 | fi; done | |
2541 | rm -f conftest.s* | |
2542 | ||
2543 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
2544 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
2545 | # | |
2546 | # ac_d sets the value in "#define NAME VALUE" lines. | |
2547 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
2548 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
2549 | ac_dC='\3' | |
2550 | ac_dD='%g' | |
2551 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
2552 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2553 | ac_uB='\([ ]\)%\1#\2define\3' | |
2554 | ac_uC=' ' | |
2555 | ac_uD='\4%g' | |
2556 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
2557 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2558 | ac_eB='$%\1#\2define\3' | |
2559 | ac_eC=' ' | |
2560 | ac_eD='%g' | |
2561 | ||
2562 | if test "${CONFIG_HEADERS+set}" != set; then | |
2563 | EOF | |
2564 | cat >> $CONFIG_STATUS <<EOF | |
2565 | CONFIG_HEADERS="include/setup.h" | |
2566 | EOF | |
2567 | cat >> $CONFIG_STATUS <<\EOF | |
2568 | fi | |
2569 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
2570 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2571 | case "$ac_file" in | |
2572 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2573 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2574 | *) ac_file_in="${ac_file}.in" ;; | |
2575 | esac | |
2576 | ||
2577 | echo creating $ac_file | |
2578 | ||
2579 | rm -f conftest.frag conftest.in conftest.out | |
2580 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2581 | cat $ac_file_inputs > conftest.in | |
2582 | ||
2583 | EOF | |
2584 | ||
2585 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
2586 | # the proper values into config.h.in to produce config.h. And first: | |
2587 | # Protect against being on the right side of a sed subst in config.status. | |
2588 | # Protect against being in an unquoted here document in config.status. | |
2589 | rm -f conftest.vals | |
2590 | cat > conftest.hdr <<\EOF | |
2591 | s/[\\&%]/\\&/g | |
2592 | s%[\\$`]%\\&%g | |
2593 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
2594 | s%ac_d%ac_u%gp | |
2595 | s%ac_u%ac_e%gp | |
2596 | EOF | |
2597 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
2598 | rm -f conftest.hdr | |
2599 | ||
2600 | # This sed command replaces #undef with comments. This is necessary, for | |
2601 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
2602 | # on some systems where configure will not decide to define it. | |
2603 | cat >> conftest.vals <<\EOF | |
2604 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
2605 | EOF | |
2606 | ||
2607 | # Break up conftest.vals because some shells have a limit on | |
2608 | # the size of here documents, and old seds have small limits too. | |
2609 | ||
2610 | rm -f conftest.tail | |
2611 | while : | |
2612 | do | |
2613 | ac_lines=`grep -c . conftest.vals` | |
2614 | # grep -c gives empty output for an empty file on some AIX systems. | |
2615 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
2616 | # Write a limited-size here document to conftest.frag. | |
2617 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
2618 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
2619 | echo 'CEOF | |
2620 | sed -f conftest.frag conftest.in > conftest.out | |
2621 | rm -f conftest.in | |
2622 | mv conftest.out conftest.in | |
2623 | ' >> $CONFIG_STATUS | |
2624 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
2625 | rm -f conftest.vals | |
2626 | mv conftest.tail conftest.vals | |
2627 | done | |
2628 | rm -f conftest.vals | |
2629 | ||
2630 | cat >> $CONFIG_STATUS <<\EOF | |
2631 | rm -f conftest.frag conftest.h | |
2632 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
2633 | cat conftest.in >> conftest.h | |
2634 | rm -f conftest.in | |
2635 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
2636 | echo "$ac_file is unchanged" | |
2637 | rm -f conftest.h | |
2638 | else | |
2639 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2640 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2641 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2642 | # The file is in a subdirectory. | |
2643 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2644 | fi | |
2645 | rm -f $ac_file | |
2646 | mv conftest.h $ac_file | |
2647 | fi | |
2648 | fi; done | |
2649 | ||
2650 | EOF | |
2651 | cat >> $CONFIG_STATUS <<EOF | |
2652 | ||
2653 | EOF | |
2654 | cat >> $CONFIG_STATUS <<\EOF | |
2655 | ||
2656 | exit 0 | |
2657 | EOF | |
2658 | chmod +x $CONFIG_STATUS | |
2659 | rm -fr confdefs* $ac_clean_files | |
2660 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2661 | ||
2662 | ||
2663 | echo "" | |
2664 | echo "Modules ................. $tmp_mod" | |
2665 | echo "Assert debugging ........ $tmp_assert" | |
2666 | echo "Large network support ... $LARGENET" | |
2667 | echo "" |