1 | #! /bin/sh |
---|
2 | |
---|
3 | # From configure.in Id: configure.in,v 1.4 2001/04/04 00:04:41 ghudson Exp |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | # The following is taken from automake 1.4, |
---|
35 | # except that it prefers the compiler option -Ae to "-Aa -D_HPUX_SOURCE" |
---|
36 | # because only the former supports 64-bit integral types on HP-UX 10.20. |
---|
37 | |
---|
38 | |
---|
39 | # serial 2 |
---|
40 | |
---|
41 | # @defmac AC_PROG_CC_STDC |
---|
42 | # @maindex PROG_CC_STDC |
---|
43 | # @ovindex CC |
---|
44 | # If the C compiler in not in ANSI C mode by default, try to add an option |
---|
45 | # to output variable @code{CC} to make it so. This macro tries various |
---|
46 | # options that select ANSI C on some system or another. It considers the |
---|
47 | # compiler to be in ANSI C mode if it handles function prototypes correctly. |
---|
48 | # |
---|
49 | # If you use this macro, you should check after calling it whether the C |
---|
50 | # compiler has been set to accept ANSI C; if not, the shell variable |
---|
51 | # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source |
---|
52 | # code in ANSI C, you can make an un-ANSIfied copy of it by using the |
---|
53 | # program @code{ansi2knr}, which comes with Ghostscript. |
---|
54 | # @end defmac |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | # Define a conditional. |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | # Check whether LC_MESSAGES is available in <locale.h>. |
---|
68 | # Ulrich Drepper <drepper@cygnus.com>, 1995. |
---|
69 | # |
---|
70 | # This file can be copied and used freely without restrictions. It can |
---|
71 | # be used in projects which are not available under the GNU Public License |
---|
72 | # but which still want to provide support for the GNU gettext functionality. |
---|
73 | # Please note that the actual code is *not* freely available. |
---|
74 | |
---|
75 | # serial 1 |
---|
76 | |
---|
77 | |
---|
78 | |
---|
79 | # Do all the work for Automake. This macro actually does too much -- |
---|
80 | # some checks are only needed if your package does certain things. |
---|
81 | # But this isn't really a big deal. |
---|
82 | |
---|
83 | # serial 1 |
---|
84 | |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | # |
---|
89 | # Check to make sure that the build environment is sane. |
---|
90 | # |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | # Like AC_CONFIG_HEADER, but automatically create stamp file. |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | # Guess values for system-dependent variables and create Makefiles. |
---|
101 | # Generated automatically using autoconf version 2.13 |
---|
102 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
103 | # |
---|
104 | # This configure script is free software; the Free Software Foundation |
---|
105 | # gives unlimited permission to copy, distribute and modify it. |
---|
106 | |
---|
107 | # Defaults: |
---|
108 | ac_help= |
---|
109 | ac_default_prefix=/usr/local |
---|
110 | # Any additions from configure.in: |
---|
111 | ac_help="$ac_help |
---|
112 | --disable-largefile omit support for large files" |
---|
113 | ac_help="$ac_help |
---|
114 | --disable-nls disallow Native Language Support" |
---|
115 | ac_help="$ac_help |
---|
116 | --with-included-gettext use the GNU gettext library included here" |
---|
117 | ac_help="$ac_help |
---|
118 | --disable-nsec-timestamps disable use of sub-second timestamps" |
---|
119 | ac_help="$ac_help |
---|
120 | --with-customs=DIR Enable remote jobs via Customs--see README.customs" |
---|
121 | ac_help="$ac_help |
---|
122 | --disable-job-server Disallow recursive make communication during -jN" |
---|
123 | ac_help="$ac_help |
---|
124 | --enable-dmalloc Enable support for the dmalloc debugging library" |
---|
125 | |
---|
126 | # Initialize some variables set by options. |
---|
127 | # The variables have the same names as the options, with |
---|
128 | # dashes changed to underlines. |
---|
129 | build=NONE |
---|
130 | cache_file=./config.cache |
---|
131 | exec_prefix=NONE |
---|
132 | host=NONE |
---|
133 | no_create= |
---|
134 | nonopt=NONE |
---|
135 | no_recursion= |
---|
136 | prefix=NONE |
---|
137 | program_prefix=NONE |
---|
138 | program_suffix=NONE |
---|
139 | program_transform_name=s,x,x, |
---|
140 | silent= |
---|
141 | site= |
---|
142 | srcdir= |
---|
143 | target=NONE |
---|
144 | verbose= |
---|
145 | x_includes=NONE |
---|
146 | x_libraries=NONE |
---|
147 | bindir='${exec_prefix}/bin' |
---|
148 | sbindir='${exec_prefix}/sbin' |
---|
149 | libexecdir='${exec_prefix}/libexec' |
---|
150 | datadir='${prefix}/share' |
---|
151 | sysconfdir='${prefix}/etc' |
---|
152 | sharedstatedir='${prefix}/com' |
---|
153 | localstatedir='${prefix}/var' |
---|
154 | libdir='${exec_prefix}/lib' |
---|
155 | includedir='${prefix}/include' |
---|
156 | oldincludedir='/usr/include' |
---|
157 | infodir='${prefix}/info' |
---|
158 | mandir='${prefix}/man' |
---|
159 | |
---|
160 | # Initialize some other variables. |
---|
161 | subdirs= |
---|
162 | MFLAGS= MAKEFLAGS= |
---|
163 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
164 | # Maximum number of lines to put in a shell here document. |
---|
165 | ac_max_here_lines=12 |
---|
166 | |
---|
167 | ac_prev= |
---|
168 | for ac_option |
---|
169 | do |
---|
170 | |
---|
171 | # If the previous option needs an argument, assign it. |
---|
172 | if test -n "$ac_prev"; then |
---|
173 | eval "$ac_prev=\$ac_option" |
---|
174 | ac_prev= |
---|
175 | continue |
---|
176 | fi |
---|
177 | |
---|
178 | case "$ac_option" in |
---|
179 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
180 | *) ac_optarg= ;; |
---|
181 | esac |
---|
182 | |
---|
183 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
184 | |
---|
185 | case "$ac_option" in |
---|
186 | |
---|
187 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
188 | ac_prev=bindir ;; |
---|
189 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
190 | bindir="$ac_optarg" ;; |
---|
191 | |
---|
192 | -build | --build | --buil | --bui | --bu) |
---|
193 | ac_prev=build ;; |
---|
194 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
195 | build="$ac_optarg" ;; |
---|
196 | |
---|
197 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
198 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
199 | ac_prev=cache_file ;; |
---|
200 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
201 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
202 | cache_file="$ac_optarg" ;; |
---|
203 | |
---|
204 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
205 | ac_prev=datadir ;; |
---|
206 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
207 | | --da=*) |
---|
208 | datadir="$ac_optarg" ;; |
---|
209 | |
---|
210 | -disable-* | --disable-*) |
---|
211 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
212 | # Reject names that are not valid shell variable names. |
---|
213 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
214 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
215 | fi |
---|
216 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
217 | eval "enable_${ac_feature}=no" ;; |
---|
218 | |
---|
219 | -enable-* | --enable-*) |
---|
220 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
221 | # Reject names that are not valid shell variable names. |
---|
222 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
223 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
224 | fi |
---|
225 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
226 | case "$ac_option" in |
---|
227 | *=*) ;; |
---|
228 | *) ac_optarg=yes ;; |
---|
229 | esac |
---|
230 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
231 | |
---|
232 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
233 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
234 | | --exec | --exe | --ex) |
---|
235 | ac_prev=exec_prefix ;; |
---|
236 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
237 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
238 | | --exec=* | --exe=* | --ex=*) |
---|
239 | exec_prefix="$ac_optarg" ;; |
---|
240 | |
---|
241 | -gas | --gas | --ga | --g) |
---|
242 | # Obsolete; use --with-gas. |
---|
243 | with_gas=yes ;; |
---|
244 | |
---|
245 | -help | --help | --hel | --he) |
---|
246 | # Omit some internal or obsolete options to make the list less imposing. |
---|
247 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
248 | cat << EOF |
---|
249 | Usage: configure [options] [host] |
---|
250 | Options: [defaults in brackets after descriptions] |
---|
251 | Configuration: |
---|
252 | --cache-file=FILE cache test results in FILE |
---|
253 | --help print this message |
---|
254 | --no-create do not create output files |
---|
255 | --quiet, --silent do not print \`checking...' messages |
---|
256 | --version print the version of autoconf that created configure |
---|
257 | Directory and file names: |
---|
258 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
259 | [$ac_default_prefix] |
---|
260 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
261 | [same as prefix] |
---|
262 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
263 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
264 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
265 | --datadir=DIR read-only architecture-independent data in DIR |
---|
266 | [PREFIX/share] |
---|
267 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
268 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
269 | [PREFIX/com] |
---|
270 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
271 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
272 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
273 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
274 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
275 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
276 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
277 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
278 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
279 | --program-transform-name=PROGRAM |
---|
280 | run sed PROGRAM on installed program names |
---|
281 | EOF |
---|
282 | cat << EOF |
---|
283 | Host type: |
---|
284 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
285 | --host=HOST configure for HOST [guessed] |
---|
286 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
287 | Features and packages: |
---|
288 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
289 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
290 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
291 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
292 | --x-includes=DIR X include files are in DIR |
---|
293 | --x-libraries=DIR X library files are in DIR |
---|
294 | EOF |
---|
295 | if test -n "$ac_help"; then |
---|
296 | echo "--enable and --with options recognized:$ac_help" |
---|
297 | fi |
---|
298 | exit 0 ;; |
---|
299 | |
---|
300 | -host | --host | --hos | --ho) |
---|
301 | ac_prev=host ;; |
---|
302 | -host=* | --host=* | --hos=* | --ho=*) |
---|
303 | host="$ac_optarg" ;; |
---|
304 | |
---|
305 | -includedir | --includedir | --includedi | --included | --include \ |
---|
306 | | --includ | --inclu | --incl | --inc) |
---|
307 | ac_prev=includedir ;; |
---|
308 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
309 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
310 | includedir="$ac_optarg" ;; |
---|
311 | |
---|
312 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
313 | ac_prev=infodir ;; |
---|
314 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
315 | infodir="$ac_optarg" ;; |
---|
316 | |
---|
317 | -libdir | --libdir | --libdi | --libd) |
---|
318 | ac_prev=libdir ;; |
---|
319 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
320 | libdir="$ac_optarg" ;; |
---|
321 | |
---|
322 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
323 | | --libexe | --libex | --libe) |
---|
324 | ac_prev=libexecdir ;; |
---|
325 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
326 | | --libexe=* | --libex=* | --libe=*) |
---|
327 | libexecdir="$ac_optarg" ;; |
---|
328 | |
---|
329 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
330 | | --localstate | --localstat | --localsta | --localst \ |
---|
331 | | --locals | --local | --loca | --loc | --lo) |
---|
332 | ac_prev=localstatedir ;; |
---|
333 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
334 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
335 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
336 | localstatedir="$ac_optarg" ;; |
---|
337 | |
---|
338 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
339 | ac_prev=mandir ;; |
---|
340 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
341 | mandir="$ac_optarg" ;; |
---|
342 | |
---|
343 | -nfp | --nfp | --nf) |
---|
344 | # Obsolete; use --without-fp. |
---|
345 | with_fp=no ;; |
---|
346 | |
---|
347 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
348 | | --no-cr | --no-c) |
---|
349 | no_create=yes ;; |
---|
350 | |
---|
351 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
352 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
353 | no_recursion=yes ;; |
---|
354 | |
---|
355 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
356 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
357 | | --oldin | --oldi | --old | --ol | --o) |
---|
358 | ac_prev=oldincludedir ;; |
---|
359 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
360 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
361 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
362 | oldincludedir="$ac_optarg" ;; |
---|
363 | |
---|
364 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
365 | ac_prev=prefix ;; |
---|
366 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
367 | prefix="$ac_optarg" ;; |
---|
368 | |
---|
369 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
370 | | --program-pre | --program-pr | --program-p) |
---|
371 | ac_prev=program_prefix ;; |
---|
372 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
373 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
374 | program_prefix="$ac_optarg" ;; |
---|
375 | |
---|
376 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
377 | | --program-suf | --program-su | --program-s) |
---|
378 | ac_prev=program_suffix ;; |
---|
379 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
380 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
381 | program_suffix="$ac_optarg" ;; |
---|
382 | |
---|
383 | -program-transform-name | --program-transform-name \ |
---|
384 | | --program-transform-nam | --program-transform-na \ |
---|
385 | | --program-transform-n | --program-transform- \ |
---|
386 | | --program-transform | --program-transfor \ |
---|
387 | | --program-transfo | --program-transf \ |
---|
388 | | --program-trans | --program-tran \ |
---|
389 | | --progr-tra | --program-tr | --program-t) |
---|
390 | ac_prev=program_transform_name ;; |
---|
391 | -program-transform-name=* | --program-transform-name=* \ |
---|
392 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
393 | | --program-transform-n=* | --program-transform-=* \ |
---|
394 | | --program-transform=* | --program-transfor=* \ |
---|
395 | | --program-transfo=* | --program-transf=* \ |
---|
396 | | --program-trans=* | --program-tran=* \ |
---|
397 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
398 | program_transform_name="$ac_optarg" ;; |
---|
399 | |
---|
400 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
401 | | -silent | --silent | --silen | --sile | --sil) |
---|
402 | silent=yes ;; |
---|
403 | |
---|
404 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
405 | ac_prev=sbindir ;; |
---|
406 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
407 | | --sbi=* | --sb=*) |
---|
408 | sbindir="$ac_optarg" ;; |
---|
409 | |
---|
410 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
411 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
412 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
413 | | --sha | --sh) |
---|
414 | ac_prev=sharedstatedir ;; |
---|
415 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
416 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
417 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
418 | | --sha=* | --sh=*) |
---|
419 | sharedstatedir="$ac_optarg" ;; |
---|
420 | |
---|
421 | -site | --site | --sit) |
---|
422 | ac_prev=site ;; |
---|
423 | -site=* | --site=* | --sit=*) |
---|
424 | site="$ac_optarg" ;; |
---|
425 | |
---|
426 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
427 | ac_prev=srcdir ;; |
---|
428 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
429 | srcdir="$ac_optarg" ;; |
---|
430 | |
---|
431 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
432 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
433 | ac_prev=sysconfdir ;; |
---|
434 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
435 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
436 | sysconfdir="$ac_optarg" ;; |
---|
437 | |
---|
438 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
439 | ac_prev=target ;; |
---|
440 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
441 | target="$ac_optarg" ;; |
---|
442 | |
---|
443 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
444 | verbose=yes ;; |
---|
445 | |
---|
446 | -version | --version | --versio | --versi | --vers) |
---|
447 | echo "configure generated by autoconf version 2.13" |
---|
448 | exit 0 ;; |
---|
449 | |
---|
450 | -with-* | --with-*) |
---|
451 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
452 | # Reject names that are not valid shell variable names. |
---|
453 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
454 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
455 | fi |
---|
456 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
457 | case "$ac_option" in |
---|
458 | *=*) ;; |
---|
459 | *) ac_optarg=yes ;; |
---|
460 | esac |
---|
461 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
462 | |
---|
463 | -without-* | --without-*) |
---|
464 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
465 | # Reject names that are not valid shell variable names. |
---|
466 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
467 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
468 | fi |
---|
469 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
470 | eval "with_${ac_package}=no" ;; |
---|
471 | |
---|
472 | --x) |
---|
473 | # Obsolete; use --with-x. |
---|
474 | with_x=yes ;; |
---|
475 | |
---|
476 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
477 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
478 | ac_prev=x_includes ;; |
---|
479 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
480 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
481 | x_includes="$ac_optarg" ;; |
---|
482 | |
---|
483 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
484 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
485 | ac_prev=x_libraries ;; |
---|
486 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
487 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
488 | x_libraries="$ac_optarg" ;; |
---|
489 | |
---|
490 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
491 | ;; |
---|
492 | |
---|
493 | *) |
---|
494 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
495 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
496 | fi |
---|
497 | if test "x$nonopt" != xNONE; then |
---|
498 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
499 | fi |
---|
500 | nonopt="$ac_option" |
---|
501 | ;; |
---|
502 | |
---|
503 | esac |
---|
504 | done |
---|
505 | |
---|
506 | if test -n "$ac_prev"; then |
---|
507 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
508 | fi |
---|
509 | |
---|
510 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
511 | |
---|
512 | # File descriptor usage: |
---|
513 | # 0 standard input |
---|
514 | # 1 file creation |
---|
515 | # 2 errors and warnings |
---|
516 | # 3 some systems may open it to /dev/tty |
---|
517 | # 4 used on the Kubota Titan |
---|
518 | # 6 checking for... messages and results |
---|
519 | # 5 compiler messages saved in config.log |
---|
520 | if test "$silent" = yes; then |
---|
521 | exec 6>/dev/null |
---|
522 | else |
---|
523 | exec 6>&1 |
---|
524 | fi |
---|
525 | exec 5>./config.log |
---|
526 | |
---|
527 | echo "\ |
---|
528 | This file contains any messages produced by compilers while |
---|
529 | running configure, to aid debugging if configure makes a mistake. |
---|
530 | " 1>&5 |
---|
531 | |
---|
532 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
533 | # Also quote any args containing shell metacharacters. |
---|
534 | ac_configure_args= |
---|
535 | for ac_arg |
---|
536 | do |
---|
537 | case "$ac_arg" in |
---|
538 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
539 | | --no-cr | --no-c) ;; |
---|
540 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
541 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
542 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
543 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
544 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
545 | esac |
---|
546 | done |
---|
547 | |
---|
548 | # NLS nuisances. |
---|
549 | # Only set these to C if already set. These must not be set unconditionally |
---|
550 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
551 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
552 | # Non-C LC_CTYPE values break the ctype check. |
---|
553 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
554 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
555 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
556 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
557 | |
---|
558 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
559 | rm -rf conftest* confdefs.h |
---|
560 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
561 | echo > confdefs.h |
---|
562 | |
---|
563 | # A filename unique to this package, relative to the directory that |
---|
564 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
565 | ac_unique_file=vpath.c |
---|
566 | |
---|
567 | # Find the source files, if location was not specified. |
---|
568 | if test -z "$srcdir"; then |
---|
569 | ac_srcdir_defaulted=yes |
---|
570 | # Try the directory containing this script, then its parent. |
---|
571 | ac_prog=$0 |
---|
572 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
573 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
574 | srcdir=$ac_confdir |
---|
575 | if test ! -r $srcdir/$ac_unique_file; then |
---|
576 | srcdir=.. |
---|
577 | fi |
---|
578 | else |
---|
579 | ac_srcdir_defaulted=no |
---|
580 | fi |
---|
581 | if test ! -r $srcdir/$ac_unique_file; then |
---|
582 | if test "$ac_srcdir_defaulted" = yes; then |
---|
583 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
584 | else |
---|
585 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
586 | fi |
---|
587 | fi |
---|
588 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
589 | |
---|
590 | # Prefer explicitly selected file to automatically selected ones. |
---|
591 | if test -z "$CONFIG_SITE"; then |
---|
592 | if test "x$prefix" != xNONE; then |
---|
593 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
594 | else |
---|
595 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
596 | fi |
---|
597 | fi |
---|
598 | for ac_site_file in $CONFIG_SITE; do |
---|
599 | if test -r "$ac_site_file"; then |
---|
600 | echo "loading site script $ac_site_file" |
---|
601 | . "$ac_site_file" |
---|
602 | fi |
---|
603 | done |
---|
604 | |
---|
605 | if test -r "$cache_file"; then |
---|
606 | echo "loading cache $cache_file" |
---|
607 | . $cache_file |
---|
608 | else |
---|
609 | echo "creating cache $cache_file" |
---|
610 | > $cache_file |
---|
611 | fi |
---|
612 | |
---|
613 | ac_ext=c |
---|
614 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
615 | ac_cpp='$CPP $CPPFLAGS' |
---|
616 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
617 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
618 | cross_compiling=$ac_cv_prog_cc_cross |
---|
619 | |
---|
620 | ac_exeext= |
---|
621 | ac_objext=o |
---|
622 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
623 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
624 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
625 | ac_n= ac_c=' |
---|
626 | ' ac_t=' ' |
---|
627 | else |
---|
628 | ac_n=-n ac_c= ac_t= |
---|
629 | fi |
---|
630 | else |
---|
631 | ac_n= ac_c='\c' ac_t= |
---|
632 | fi |
---|
633 | |
---|
634 | |
---|
635 | ac_aux_dir= |
---|
636 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
637 | if test -f $ac_dir/install-sh; then |
---|
638 | ac_aux_dir=$ac_dir |
---|
639 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
640 | break |
---|
641 | elif test -f $ac_dir/install.sh; then |
---|
642 | ac_aux_dir=$ac_dir |
---|
643 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
644 | break |
---|
645 | fi |
---|
646 | done |
---|
647 | if test -z "$ac_aux_dir"; then |
---|
648 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
649 | fi |
---|
650 | ac_config_guess=$ac_aux_dir/config.guess |
---|
651 | ac_config_sub=$ac_aux_dir/config.sub |
---|
652 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
653 | |
---|
654 | # Find a good install program. We prefer a C program (faster), |
---|
655 | # so one script is as good as another. But avoid the broken or |
---|
656 | # incompatible versions: |
---|
657 | # SysV /etc/install, /usr/sbin/install |
---|
658 | # SunOS /usr/etc/install |
---|
659 | # IRIX /sbin/install |
---|
660 | # AIX /bin/install |
---|
661 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
662 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
663 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
664 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
665 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
666 | echo "configure:667: checking for a BSD compatible install" >&5 |
---|
667 | if test -z "$INSTALL"; then |
---|
668 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
669 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
670 | else |
---|
671 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
672 | for ac_dir in $PATH; do |
---|
673 | # Account for people who put trailing slashes in PATH elements. |
---|
674 | case "$ac_dir/" in |
---|
675 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
676 | *) |
---|
677 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
678 | # Don't use installbsd from OSF since it installs stuff as root |
---|
679 | # by default. |
---|
680 | for ac_prog in ginstall scoinst install; do |
---|
681 | if test -f $ac_dir/$ac_prog; then |
---|
682 | if test $ac_prog = install && |
---|
683 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
684 | # AIX install. It has an incompatible calling convention. |
---|
685 | : |
---|
686 | else |
---|
687 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
688 | break 2 |
---|
689 | fi |
---|
690 | fi |
---|
691 | done |
---|
692 | ;; |
---|
693 | esac |
---|
694 | done |
---|
695 | IFS="$ac_save_IFS" |
---|
696 | |
---|
697 | fi |
---|
698 | if test "${ac_cv_path_install+set}" = set; then |
---|
699 | INSTALL="$ac_cv_path_install" |
---|
700 | else |
---|
701 | # As a last resort, use the slow shell script. We don't cache a |
---|
702 | # path for INSTALL within a source directory, because that will |
---|
703 | # break other packages using the cache if that directory is |
---|
704 | # removed, or if the path is relative. |
---|
705 | INSTALL="$ac_install_sh" |
---|
706 | fi |
---|
707 | fi |
---|
708 | echo "$ac_t""$INSTALL" 1>&6 |
---|
709 | |
---|
710 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
711 | # It thinks the first close brace ends the variable substitution. |
---|
712 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
713 | |
---|
714 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
715 | |
---|
716 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
717 | |
---|
718 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
719 | echo "configure:720: checking whether build environment is sane" >&5 |
---|
720 | # Just in case |
---|
721 | sleep 1 |
---|
722 | echo timestamp > conftestfile |
---|
723 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
724 | # arguments. Must try -L first in case configure is actually a |
---|
725 | # symlink; some systems play weird games with the mod time of symlinks |
---|
726 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
727 | # directory). |
---|
728 | if ( |
---|
729 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
730 | if test "$*" = "X"; then |
---|
731 | # -L didn't work. |
---|
732 | set X `ls -t $srcdir/configure conftestfile` |
---|
733 | fi |
---|
734 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
735 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
736 | |
---|
737 | # If neither matched, then we have a broken ls. This can happen |
---|
738 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
739 | # broken ls alias from the environment. This has actually |
---|
740 | # happened. Such a system could not be considered "sane". |
---|
741 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
742 | alias in your environment" 1>&2; exit 1; } |
---|
743 | fi |
---|
744 | |
---|
745 | test "$2" = conftestfile |
---|
746 | ) |
---|
747 | then |
---|
748 | # Ok. |
---|
749 | : |
---|
750 | else |
---|
751 | { echo "configure: error: newly created file is older than distributed files! |
---|
752 | Check your system clock" 1>&2; exit 1; } |
---|
753 | fi |
---|
754 | rm -f conftest* |
---|
755 | echo "$ac_t""yes" 1>&6 |
---|
756 | if test "$program_transform_name" = s,x,x,; then |
---|
757 | program_transform_name= |
---|
758 | else |
---|
759 | # Double any \ or $. echo might interpret backslashes. |
---|
760 | cat <<\EOF_SED > conftestsed |
---|
761 | s,\\,\\\\,g; s,\$,$$,g |
---|
762 | EOF_SED |
---|
763 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
764 | rm -f conftestsed |
---|
765 | fi |
---|
766 | test "$program_prefix" != NONE && |
---|
767 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
768 | # Use a double $ so make ignores it. |
---|
769 | test "$program_suffix" != NONE && |
---|
770 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
771 | |
---|
772 | # sed with no file args requires a program. |
---|
773 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
774 | |
---|
775 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
776 | echo "configure:777: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
777 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
778 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
779 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
780 | else |
---|
781 | cat > conftestmake <<\EOF |
---|
782 | all: |
---|
783 | @echo 'ac_maketemp="${MAKE}"' |
---|
784 | EOF |
---|
785 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
786 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
787 | if test -n "$ac_maketemp"; then |
---|
788 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
789 | else |
---|
790 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
791 | fi |
---|
792 | rm -f conftestmake |
---|
793 | fi |
---|
794 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
795 | echo "$ac_t""yes" 1>&6 |
---|
796 | SET_MAKE= |
---|
797 | else |
---|
798 | echo "$ac_t""no" 1>&6 |
---|
799 | SET_MAKE="MAKE=${MAKE-make}" |
---|
800 | fi |
---|
801 | |
---|
802 | |
---|
803 | PACKAGE=make |
---|
804 | |
---|
805 | VERSION=3.79.1 |
---|
806 | |
---|
807 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
808 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
809 | fi |
---|
810 | cat >> confdefs.h <<EOF |
---|
811 | #define PACKAGE "$PACKAGE" |
---|
812 | EOF |
---|
813 | |
---|
814 | cat >> confdefs.h <<EOF |
---|
815 | #define VERSION "$VERSION" |
---|
816 | EOF |
---|
817 | |
---|
818 | |
---|
819 | |
---|
820 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
821 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
822 | echo "configure:823: checking for working aclocal" >&5 |
---|
823 | # Run test in a subshell; some versions of sh will print an error if |
---|
824 | # an executable is not found, even if stderr is redirected. |
---|
825 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
826 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
827 | ACLOCAL=aclocal |
---|
828 | echo "$ac_t""found" 1>&6 |
---|
829 | else |
---|
830 | ACLOCAL="$missing_dir/missing aclocal" |
---|
831 | echo "$ac_t""missing" 1>&6 |
---|
832 | fi |
---|
833 | |
---|
834 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
835 | echo "configure:836: checking for working autoconf" >&5 |
---|
836 | # Run test in a subshell; some versions of sh will print an error if |
---|
837 | # an executable is not found, even if stderr is redirected. |
---|
838 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
839 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
840 | AUTOCONF=autoconf |
---|
841 | echo "$ac_t""found" 1>&6 |
---|
842 | else |
---|
843 | AUTOCONF="$missing_dir/missing autoconf" |
---|
844 | echo "$ac_t""missing" 1>&6 |
---|
845 | fi |
---|
846 | |
---|
847 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
848 | echo "configure:849: checking for working automake" >&5 |
---|
849 | # Run test in a subshell; some versions of sh will print an error if |
---|
850 | # an executable is not found, even if stderr is redirected. |
---|
851 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
852 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
853 | AUTOMAKE=automake |
---|
854 | echo "$ac_t""found" 1>&6 |
---|
855 | else |
---|
856 | AUTOMAKE="$missing_dir/missing automake" |
---|
857 | echo "$ac_t""missing" 1>&6 |
---|
858 | fi |
---|
859 | |
---|
860 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
861 | echo "configure:862: checking for working autoheader" >&5 |
---|
862 | # Run test in a subshell; some versions of sh will print an error if |
---|
863 | # an executable is not found, even if stderr is redirected. |
---|
864 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
865 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
866 | AUTOHEADER=autoheader |
---|
867 | echo "$ac_t""found" 1>&6 |
---|
868 | else |
---|
869 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
870 | echo "$ac_t""missing" 1>&6 |
---|
871 | fi |
---|
872 | |
---|
873 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
874 | echo "configure:875: checking for working makeinfo" >&5 |
---|
875 | # Run test in a subshell; some versions of sh will print an error if |
---|
876 | # an executable is not found, even if stderr is redirected. |
---|
877 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
878 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
879 | MAKEINFO=makeinfo |
---|
880 | echo "$ac_t""found" 1>&6 |
---|
881 | else |
---|
882 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
883 | echo "$ac_t""missing" 1>&6 |
---|
884 | fi |
---|
885 | |
---|
886 | |
---|
887 | |
---|
888 | |
---|
889 | |
---|
890 | |
---|
891 | |
---|
892 | |
---|
893 | # Make sure we can run config.sub. |
---|
894 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
895 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
896 | fi |
---|
897 | |
---|
898 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
899 | echo "configure:900: checking host system type" >&5 |
---|
900 | |
---|
901 | host_alias=$host |
---|
902 | case "$host_alias" in |
---|
903 | NONE) |
---|
904 | case $nonopt in |
---|
905 | NONE) |
---|
906 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
907 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
908 | fi ;; |
---|
909 | *) host_alias=$nonopt ;; |
---|
910 | esac ;; |
---|
911 | esac |
---|
912 | |
---|
913 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
914 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
915 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
916 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
917 | echo "$ac_t""$host" 1>&6 |
---|
918 | |
---|
919 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
920 | echo "configure:921: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
921 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
922 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
923 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
924 | else |
---|
925 | cat > conftestmake <<\EOF |
---|
926 | all: |
---|
927 | @echo 'ac_maketemp="${MAKE}"' |
---|
928 | EOF |
---|
929 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
930 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
931 | if test -n "$ac_maketemp"; then |
---|
932 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
933 | else |
---|
934 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
935 | fi |
---|
936 | rm -f conftestmake |
---|
937 | fi |
---|
938 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
939 | echo "$ac_t""yes" 1>&6 |
---|
940 | SET_MAKE= |
---|
941 | else |
---|
942 | echo "$ac_t""no" 1>&6 |
---|
943 | SET_MAKE="MAKE=${MAKE-make}" |
---|
944 | fi |
---|
945 | |
---|
946 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
947 | set dummy gcc; ac_word=$2 |
---|
948 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
949 | echo "configure:950: checking for $ac_word" >&5 |
---|
950 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
951 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
952 | else |
---|
953 | if test -n "$CC"; then |
---|
954 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
955 | else |
---|
956 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
957 | ac_dummy="$PATH" |
---|
958 | for ac_dir in $ac_dummy; do |
---|
959 | test -z "$ac_dir" && ac_dir=. |
---|
960 | if test -f $ac_dir/$ac_word; then |
---|
961 | ac_cv_prog_CC="gcc" |
---|
962 | break |
---|
963 | fi |
---|
964 | done |
---|
965 | IFS="$ac_save_ifs" |
---|
966 | fi |
---|
967 | fi |
---|
968 | CC="$ac_cv_prog_CC" |
---|
969 | if test -n "$CC"; then |
---|
970 | echo "$ac_t""$CC" 1>&6 |
---|
971 | else |
---|
972 | echo "$ac_t""no" 1>&6 |
---|
973 | fi |
---|
974 | |
---|
975 | if test -z "$CC"; then |
---|
976 | # Extract the first word of "cc", so it can be a program name with args. |
---|
977 | set dummy cc; ac_word=$2 |
---|
978 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
979 | echo "configure:980: checking for $ac_word" >&5 |
---|
980 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
981 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
982 | else |
---|
983 | if test -n "$CC"; then |
---|
984 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
985 | else |
---|
986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
987 | ac_prog_rejected=no |
---|
988 | ac_dummy="$PATH" |
---|
989 | for ac_dir in $ac_dummy; do |
---|
990 | test -z "$ac_dir" && ac_dir=. |
---|
991 | if test -f $ac_dir/$ac_word; then |
---|
992 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
993 | ac_prog_rejected=yes |
---|
994 | continue |
---|
995 | fi |
---|
996 | ac_cv_prog_CC="cc" |
---|
997 | break |
---|
998 | fi |
---|
999 | done |
---|
1000 | IFS="$ac_save_ifs" |
---|
1001 | if test $ac_prog_rejected = yes; then |
---|
1002 | # We found a bogon in the path, so make sure we never use it. |
---|
1003 | set dummy $ac_cv_prog_CC |
---|
1004 | shift |
---|
1005 | if test $# -gt 0; then |
---|
1006 | # We chose a different compiler from the bogus one. |
---|
1007 | # However, it has the same basename, so the bogon will be chosen |
---|
1008 | # first if we set CC to just the basename; use the full file name. |
---|
1009 | shift |
---|
1010 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1011 | shift |
---|
1012 | ac_cv_prog_CC="$@" |
---|
1013 | fi |
---|
1014 | fi |
---|
1015 | fi |
---|
1016 | fi |
---|
1017 | CC="$ac_cv_prog_CC" |
---|
1018 | if test -n "$CC"; then |
---|
1019 | echo "$ac_t""$CC" 1>&6 |
---|
1020 | else |
---|
1021 | echo "$ac_t""no" 1>&6 |
---|
1022 | fi |
---|
1023 | |
---|
1024 | if test -z "$CC"; then |
---|
1025 | case "`uname -s`" in |
---|
1026 | *win32* | *WIN32*) |
---|
1027 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1028 | set dummy cl; ac_word=$2 |
---|
1029 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1030 | echo "configure:1031: checking for $ac_word" >&5 |
---|
1031 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1032 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1033 | else |
---|
1034 | if test -n "$CC"; then |
---|
1035 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1036 | else |
---|
1037 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1038 | ac_dummy="$PATH" |
---|
1039 | for ac_dir in $ac_dummy; do |
---|
1040 | test -z "$ac_dir" && ac_dir=. |
---|
1041 | if test -f $ac_dir/$ac_word; then |
---|
1042 | ac_cv_prog_CC="cl" |
---|
1043 | break |
---|
1044 | fi |
---|
1045 | done |
---|
1046 | IFS="$ac_save_ifs" |
---|
1047 | fi |
---|
1048 | fi |
---|
1049 | CC="$ac_cv_prog_CC" |
---|
1050 | if test -n "$CC"; then |
---|
1051 | echo "$ac_t""$CC" 1>&6 |
---|
1052 | else |
---|
1053 | echo "$ac_t""no" 1>&6 |
---|
1054 | fi |
---|
1055 | ;; |
---|
1056 | esac |
---|
1057 | fi |
---|
1058 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1059 | fi |
---|
1060 | |
---|
1061 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1062 | echo "configure:1063: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1063 | |
---|
1064 | ac_ext=c |
---|
1065 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1066 | ac_cpp='$CPP $CPPFLAGS' |
---|
1067 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1068 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1069 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1070 | |
---|
1071 | cat > conftest.$ac_ext << EOF |
---|
1072 | |
---|
1073 | #line 1074 "configure" |
---|
1074 | #include "confdefs.h" |
---|
1075 | |
---|
1076 | main(){return(0);} |
---|
1077 | EOF |
---|
1078 | if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1079 | ac_cv_prog_cc_works=yes |
---|
1080 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1081 | if (./conftest; exit) 2>/dev/null; then |
---|
1082 | ac_cv_prog_cc_cross=no |
---|
1083 | else |
---|
1084 | ac_cv_prog_cc_cross=yes |
---|
1085 | fi |
---|
1086 | else |
---|
1087 | echo "configure: failed program was:" >&5 |
---|
1088 | cat conftest.$ac_ext >&5 |
---|
1089 | ac_cv_prog_cc_works=no |
---|
1090 | fi |
---|
1091 | rm -fr conftest* |
---|
1092 | ac_ext=c |
---|
1093 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1094 | ac_cpp='$CPP $CPPFLAGS' |
---|
1095 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1096 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1097 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1098 | |
---|
1099 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1100 | if test $ac_cv_prog_cc_works = no; then |
---|
1101 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1102 | fi |
---|
1103 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1104 | echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1105 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1106 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1107 | |
---|
1108 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1109 | echo "configure:1110: checking whether we are using GNU C" >&5 |
---|
1110 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1111 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1112 | else |
---|
1113 | cat > conftest.c <<EOF |
---|
1114 | #ifdef __GNUC__ |
---|
1115 | yes; |
---|
1116 | #endif |
---|
1117 | EOF |
---|
1118 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1119 | ac_cv_prog_gcc=yes |
---|
1120 | else |
---|
1121 | ac_cv_prog_gcc=no |
---|
1122 | fi |
---|
1123 | fi |
---|
1124 | |
---|
1125 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1126 | |
---|
1127 | if test $ac_cv_prog_gcc = yes; then |
---|
1128 | GCC=yes |
---|
1129 | else |
---|
1130 | GCC= |
---|
1131 | fi |
---|
1132 | |
---|
1133 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1134 | ac_save_CFLAGS="$CFLAGS" |
---|
1135 | CFLAGS= |
---|
1136 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1137 | echo "configure:1138: checking whether ${CC-cc} accepts -g" >&5 |
---|
1138 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1139 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1140 | else |
---|
1141 | echo 'void f(){}' > conftest.c |
---|
1142 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1143 | ac_cv_prog_cc_g=yes |
---|
1144 | else |
---|
1145 | ac_cv_prog_cc_g=no |
---|
1146 | fi |
---|
1147 | rm -f conftest* |
---|
1148 | |
---|
1149 | fi |
---|
1150 | |
---|
1151 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1152 | if test "$ac_test_CFLAGS" = set; then |
---|
1153 | CFLAGS="$ac_save_CFLAGS" |
---|
1154 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1155 | if test "$GCC" = yes; then |
---|
1156 | CFLAGS="-g -O2" |
---|
1157 | else |
---|
1158 | CFLAGS="-g" |
---|
1159 | fi |
---|
1160 | else |
---|
1161 | if test "$GCC" = yes; then |
---|
1162 | CFLAGS="-O2" |
---|
1163 | else |
---|
1164 | CFLAGS= |
---|
1165 | fi |
---|
1166 | fi |
---|
1167 | |
---|
1168 | # Find a good install program. We prefer a C program (faster), |
---|
1169 | # so one script is as good as another. But avoid the broken or |
---|
1170 | # incompatible versions: |
---|
1171 | # SysV /etc/install, /usr/sbin/install |
---|
1172 | # SunOS /usr/etc/install |
---|
1173 | # IRIX /sbin/install |
---|
1174 | # AIX /bin/install |
---|
1175 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1176 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1177 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1178 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1179 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1180 | echo "configure:1181: checking for a BSD compatible install" >&5 |
---|
1181 | if test -z "$INSTALL"; then |
---|
1182 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1183 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1184 | else |
---|
1185 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
1186 | for ac_dir in $PATH; do |
---|
1187 | # Account for people who put trailing slashes in PATH elements. |
---|
1188 | case "$ac_dir/" in |
---|
1189 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1190 | *) |
---|
1191 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1192 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1193 | # by default. |
---|
1194 | for ac_prog in ginstall scoinst install; do |
---|
1195 | if test -f $ac_dir/$ac_prog; then |
---|
1196 | if test $ac_prog = install && |
---|
1197 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1198 | # AIX install. It has an incompatible calling convention. |
---|
1199 | : |
---|
1200 | else |
---|
1201 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1202 | break 2 |
---|
1203 | fi |
---|
1204 | fi |
---|
1205 | done |
---|
1206 | ;; |
---|
1207 | esac |
---|
1208 | done |
---|
1209 | IFS="$ac_save_IFS" |
---|
1210 | |
---|
1211 | fi |
---|
1212 | if test "${ac_cv_path_install+set}" = set; then |
---|
1213 | INSTALL="$ac_cv_path_install" |
---|
1214 | else |
---|
1215 | # As a last resort, use the slow shell script. We don't cache a |
---|
1216 | # path for INSTALL within a source directory, because that will |
---|
1217 | # break other packages using the cache if that directory is |
---|
1218 | # removed, or if the path is relative. |
---|
1219 | INSTALL="$ac_install_sh" |
---|
1220 | fi |
---|
1221 | fi |
---|
1222 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1223 | |
---|
1224 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1225 | # It thinks the first close brace ends the variable substitution. |
---|
1226 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1227 | |
---|
1228 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
1229 | |
---|
1230 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1231 | |
---|
1232 | # Extract the first word of "ar", so it can be a program name with args. |
---|
1233 | set dummy ar; ac_word=$2 |
---|
1234 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1235 | echo "configure:1236: checking for $ac_word" >&5 |
---|
1236 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
---|
1237 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1238 | else |
---|
1239 | if test -n "$AR"; then |
---|
1240 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
1241 | else |
---|
1242 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1243 | ac_dummy="$PATH" |
---|
1244 | for ac_dir in $ac_dummy; do |
---|
1245 | test -z "$ac_dir" && ac_dir=. |
---|
1246 | if test -f $ac_dir/$ac_word; then |
---|
1247 | ac_cv_prog_AR="ar" |
---|
1248 | break |
---|
1249 | fi |
---|
1250 | done |
---|
1251 | IFS="$ac_save_ifs" |
---|
1252 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
---|
1253 | fi |
---|
1254 | fi |
---|
1255 | AR="$ac_cv_prog_AR" |
---|
1256 | if test -n "$AR"; then |
---|
1257 | echo "$ac_t""$AR" 1>&6 |
---|
1258 | else |
---|
1259 | echo "$ac_t""no" 1>&6 |
---|
1260 | fi |
---|
1261 | |
---|
1262 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
1263 | set dummy ranlib; ac_word=$2 |
---|
1264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1265 | echo "configure:1266: checking for $ac_word" >&5 |
---|
1266 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
1267 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1268 | else |
---|
1269 | if test -n "$RANLIB"; then |
---|
1270 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
1271 | else |
---|
1272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1273 | ac_dummy="$PATH" |
---|
1274 | for ac_dir in $ac_dummy; do |
---|
1275 | test -z "$ac_dir" && ac_dir=. |
---|
1276 | if test -f $ac_dir/$ac_word; then |
---|
1277 | ac_cv_prog_RANLIB="ranlib" |
---|
1278 | break |
---|
1279 | fi |
---|
1280 | done |
---|
1281 | IFS="$ac_save_ifs" |
---|
1282 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
1283 | fi |
---|
1284 | fi |
---|
1285 | RANLIB="$ac_cv_prog_RANLIB" |
---|
1286 | if test -n "$RANLIB"; then |
---|
1287 | echo "$ac_t""$RANLIB" 1>&6 |
---|
1288 | else |
---|
1289 | echo "$ac_t""no" 1>&6 |
---|
1290 | fi |
---|
1291 | |
---|
1292 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
1293 | echo "configure:1294: checking how to run the C preprocessor" >&5 |
---|
1294 | # On Suns, sometimes $CPP names a directory. |
---|
1295 | if test -n "$CPP" && test -d "$CPP"; then |
---|
1296 | CPP= |
---|
1297 | fi |
---|
1298 | if test -z "$CPP"; then |
---|
1299 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
1300 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1301 | else |
---|
1302 | # This must be in double quotes, not single quotes, because CPP may get |
---|
1303 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
1304 | CPP="${CC-cc} -E" |
---|
1305 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
1306 | # not just through cpp. |
---|
1307 | cat > conftest.$ac_ext <<EOF |
---|
1308 | #line 1309 "configure" |
---|
1309 | #include "confdefs.h" |
---|
1310 | #include <assert.h> |
---|
1311 | Syntax Error |
---|
1312 | EOF |
---|
1313 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1314 | { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1315 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1316 | if test -z "$ac_err"; then |
---|
1317 | : |
---|
1318 | else |
---|
1319 | echo "$ac_err" >&5 |
---|
1320 | echo "configure: failed program was:" >&5 |
---|
1321 | cat conftest.$ac_ext >&5 |
---|
1322 | rm -rf conftest* |
---|
1323 | CPP="${CC-cc} -E -traditional-cpp" |
---|
1324 | cat > conftest.$ac_ext <<EOF |
---|
1325 | #line 1326 "configure" |
---|
1326 | #include "confdefs.h" |
---|
1327 | #include <assert.h> |
---|
1328 | Syntax Error |
---|
1329 | EOF |
---|
1330 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1331 | { (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1332 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1333 | if test -z "$ac_err"; then |
---|
1334 | : |
---|
1335 | else |
---|
1336 | echo "$ac_err" >&5 |
---|
1337 | echo "configure: failed program was:" >&5 |
---|
1338 | cat conftest.$ac_ext >&5 |
---|
1339 | rm -rf conftest* |
---|
1340 | CPP="${CC-cc} -nologo -E" |
---|
1341 | cat > conftest.$ac_ext <<EOF |
---|
1342 | #line 1343 "configure" |
---|
1343 | #include "confdefs.h" |
---|
1344 | #include <assert.h> |
---|
1345 | Syntax Error |
---|
1346 | EOF |
---|
1347 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1348 | { (eval echo configure:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1349 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1350 | if test -z "$ac_err"; then |
---|
1351 | : |
---|
1352 | else |
---|
1353 | echo "$ac_err" >&5 |
---|
1354 | echo "configure: failed program was:" >&5 |
---|
1355 | cat conftest.$ac_ext >&5 |
---|
1356 | rm -rf conftest* |
---|
1357 | CPP=/lib/cpp |
---|
1358 | fi |
---|
1359 | rm -f conftest* |
---|
1360 | fi |
---|
1361 | rm -f conftest* |
---|
1362 | fi |
---|
1363 | rm -f conftest* |
---|
1364 | ac_cv_prog_CPP="$CPP" |
---|
1365 | fi |
---|
1366 | CPP="$ac_cv_prog_CPP" |
---|
1367 | else |
---|
1368 | ac_cv_prog_CPP="$CPP" |
---|
1369 | fi |
---|
1370 | echo "$ac_t""$CPP" 1>&6 |
---|
1371 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
1372 | echo "configure:1373: checking for AIX" >&5 |
---|
1373 | cat > conftest.$ac_ext <<EOF |
---|
1374 | #line 1375 "configure" |
---|
1375 | #include "confdefs.h" |
---|
1376 | #ifdef _AIX |
---|
1377 | yes |
---|
1378 | #endif |
---|
1379 | |
---|
1380 | EOF |
---|
1381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1382 | egrep "yes" >/dev/null 2>&1; then |
---|
1383 | rm -rf conftest* |
---|
1384 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
1385 | #define _ALL_SOURCE 1 |
---|
1386 | EOF |
---|
1387 | |
---|
1388 | else |
---|
1389 | rm -rf conftest* |
---|
1390 | echo "$ac_t""no" 1>&6 |
---|
1391 | fi |
---|
1392 | rm -f conftest* |
---|
1393 | |
---|
1394 | |
---|
1395 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
---|
1396 | echo "configure:1397: checking for POSIXized ISC" >&5 |
---|
1397 | if test -d /etc/conf/kconfig.d && |
---|
1398 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
---|
1399 | then |
---|
1400 | echo "$ac_t""yes" 1>&6 |
---|
1401 | ISC=yes # If later tests want to check for ISC. |
---|
1402 | cat >> confdefs.h <<\EOF |
---|
1403 | #define _POSIX_SOURCE 1 |
---|
1404 | EOF |
---|
1405 | |
---|
1406 | if test "$GCC" = yes; then |
---|
1407 | CC="$CC -posix" |
---|
1408 | else |
---|
1409 | CC="$CC -Xp" |
---|
1410 | fi |
---|
1411 | else |
---|
1412 | echo "$ac_t""no" 1>&6 |
---|
1413 | ISC= |
---|
1414 | fi |
---|
1415 | |
---|
1416 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
---|
1417 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
---|
1418 | echo "configure:1419: checking for minix/config.h" >&5 |
---|
1419 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1420 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1421 | else |
---|
1422 | cat > conftest.$ac_ext <<EOF |
---|
1423 | #line 1424 "configure" |
---|
1424 | #include "confdefs.h" |
---|
1425 | #include <minix/config.h> |
---|
1426 | EOF |
---|
1427 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1428 | { (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1429 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1430 | if test -z "$ac_err"; then |
---|
1431 | rm -rf conftest* |
---|
1432 | eval "ac_cv_header_$ac_safe=yes" |
---|
1433 | else |
---|
1434 | echo "$ac_err" >&5 |
---|
1435 | echo "configure: failed program was:" >&5 |
---|
1436 | cat conftest.$ac_ext >&5 |
---|
1437 | rm -rf conftest* |
---|
1438 | eval "ac_cv_header_$ac_safe=no" |
---|
1439 | fi |
---|
1440 | rm -f conftest* |
---|
1441 | fi |
---|
1442 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1443 | echo "$ac_t""yes" 1>&6 |
---|
1444 | MINIX=yes |
---|
1445 | else |
---|
1446 | echo "$ac_t""no" 1>&6 |
---|
1447 | MINIX= |
---|
1448 | fi |
---|
1449 | |
---|
1450 | if test "$MINIX" = yes; then |
---|
1451 | cat >> confdefs.h <<\EOF |
---|
1452 | #define _POSIX_SOURCE 1 |
---|
1453 | EOF |
---|
1454 | |
---|
1455 | cat >> confdefs.h <<\EOF |
---|
1456 | #define _POSIX_1_SOURCE 2 |
---|
1457 | EOF |
---|
1458 | |
---|
1459 | cat >> confdefs.h <<\EOF |
---|
1460 | #define _MINIX 1 |
---|
1461 | EOF |
---|
1462 | |
---|
1463 | fi |
---|
1464 | |
---|
1465 | |
---|
1466 | # Extract the first word of "perl", so it can be a program name with args. |
---|
1467 | set dummy perl; ac_word=$2 |
---|
1468 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1469 | echo "configure:1470: checking for $ac_word" >&5 |
---|
1470 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then |
---|
1471 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1472 | else |
---|
1473 | if test -n "$PERL"; then |
---|
1474 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
---|
1475 | else |
---|
1476 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1477 | ac_dummy="$PATH" |
---|
1478 | for ac_dir in $ac_dummy; do |
---|
1479 | test -z "$ac_dir" && ac_dir=. |
---|
1480 | if test -f $ac_dir/$ac_word; then |
---|
1481 | ac_cv_prog_PERL="perl" |
---|
1482 | break |
---|
1483 | fi |
---|
1484 | done |
---|
1485 | IFS="$ac_save_ifs" |
---|
1486 | test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl" |
---|
1487 | fi |
---|
1488 | fi |
---|
1489 | PERL="$ac_cv_prog_PERL" |
---|
1490 | if test -n "$PERL"; then |
---|
1491 | echo "$ac_t""$PERL" 1>&6 |
---|
1492 | else |
---|
1493 | echo "$ac_t""no" 1>&6 |
---|
1494 | fi |
---|
1495 | |
---|
1496 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
1497 | echo "configure:1498: checking build system type" >&5 |
---|
1498 | |
---|
1499 | build_alias=$build |
---|
1500 | case "$build_alias" in |
---|
1501 | NONE) |
---|
1502 | case $nonopt in |
---|
1503 | NONE) build_alias=$host_alias ;; |
---|
1504 | *) build_alias=$nonopt ;; |
---|
1505 | esac ;; |
---|
1506 | esac |
---|
1507 | |
---|
1508 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
1509 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1510 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1511 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1512 | echo "$ac_t""$build" 1>&6 |
---|
1513 | |
---|
1514 | if test $host != $build; then |
---|
1515 | ac_tool_prefix=${host_alias}- |
---|
1516 | else |
---|
1517 | ac_tool_prefix= |
---|
1518 | fi |
---|
1519 | |
---|
1520 | |
---|
1521 | # Check whether --enable-largefile or --disable-largefile was given. |
---|
1522 | if test "${enable_largefile+set}" = set; then |
---|
1523 | enableval="$enable_largefile" |
---|
1524 | : |
---|
1525 | fi |
---|
1526 | |
---|
1527 | if test "$enable_largefile" != no; then |
---|
1528 | # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args. |
---|
1529 | set dummy ${ac_tool_prefix}getconf; ac_word=$2 |
---|
1530 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1531 | echo "configure:1532: checking for $ac_word" >&5 |
---|
1532 | if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then |
---|
1533 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1534 | else |
---|
1535 | if test -n "$GETCONF"; then |
---|
1536 | ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. |
---|
1537 | else |
---|
1538 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1539 | ac_dummy="$PATH" |
---|
1540 | for ac_dir in $ac_dummy; do |
---|
1541 | test -z "$ac_dir" && ac_dir=. |
---|
1542 | if test -f $ac_dir/$ac_word; then |
---|
1543 | ac_cv_prog_GETCONF="${ac_tool_prefix}getconf" |
---|
1544 | break |
---|
1545 | fi |
---|
1546 | done |
---|
1547 | IFS="$ac_save_ifs" |
---|
1548 | test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf" |
---|
1549 | fi |
---|
1550 | fi |
---|
1551 | GETCONF="$ac_cv_prog_GETCONF" |
---|
1552 | if test -n "$GETCONF"; then |
---|
1553 | echo "$ac_t""$GETCONF" 1>&6 |
---|
1554 | else |
---|
1555 | echo "$ac_t""no" 1>&6 |
---|
1556 | fi |
---|
1557 | |
---|
1558 | |
---|
1559 | |
---|
1560 | echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6 |
---|
1561 | echo "configure:1562: checking for CFLAGS value to request large file support" >&5 |
---|
1562 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then |
---|
1563 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1564 | else |
---|
1565 | if ($GETCONF LFS_CFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2 |
---|
1566 | then |
---|
1567 | ac_cv_sys_largefile_CFLAGS=`cat conftest.1` |
---|
1568 | else |
---|
1569 | ac_cv_sys_largefile_CFLAGS=no |
---|
1570 | case "$host_os" in |
---|
1571 | # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1. |
---|
1572 | hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) |
---|
1573 | if test "$GCC" = yes; then |
---|
1574 | ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__ |
---|
1575 | fi |
---|
1576 | ;; |
---|
1577 | # IRIX 6.2 and later require cc -n32. |
---|
1578 | irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) |
---|
1579 | if test "$GCC" != yes; then |
---|
1580 | ac_cv_sys_largefile_CFLAGS=-n32 |
---|
1581 | fi |
---|
1582 | esac |
---|
1583 | if test "$ac_cv_sys_largefile_CFLAGS" != no; then |
---|
1584 | ac_save_CC="$CC" |
---|
1585 | CC="$CC $ac_cv_sys_largefile_CFLAGS" |
---|
1586 | cat > conftest.$ac_ext <<EOF |
---|
1587 | #line 1588 "configure" |
---|
1588 | #include "confdefs.h" |
---|
1589 | |
---|
1590 | int main() { |
---|
1591 | |
---|
1592 | ; return 0; } |
---|
1593 | EOF |
---|
1594 | if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1595 | : |
---|
1596 | else |
---|
1597 | echo "configure: failed program was:" >&5 |
---|
1598 | cat conftest.$ac_ext >&5 |
---|
1599 | rm -rf conftest* |
---|
1600 | ac_cv_sys_largefile_CFLAGS=no |
---|
1601 | fi |
---|
1602 | rm -f conftest* |
---|
1603 | CC="$ac_save_CC" |
---|
1604 | fi |
---|
1605 | fi |
---|
1606 | rm -f conftest* |
---|
1607 | fi |
---|
1608 | |
---|
1609 | echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6 |
---|
1610 | echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6 |
---|
1611 | echo "configure:1612: checking for LDFLAGS value to request large file support" >&5 |
---|
1612 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then |
---|
1613 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1614 | else |
---|
1615 | if ($GETCONF LFS_LDFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2 |
---|
1616 | then |
---|
1617 | ac_cv_sys_largefile_LDFLAGS=`cat conftest.1` |
---|
1618 | else |
---|
1619 | ac_cv_sys_largefile_LDFLAGS=no |
---|
1620 | |
---|
1621 | fi |
---|
1622 | rm -f conftest* |
---|
1623 | fi |
---|
1624 | |
---|
1625 | echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6 |
---|
1626 | echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6 |
---|
1627 | echo "configure:1628: checking for LIBS value to request large file support" >&5 |
---|
1628 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then |
---|
1629 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1630 | else |
---|
1631 | if ($GETCONF LFS_LIBS) >conftest.1 2>conftest.2 && test ! -s conftest.2 |
---|
1632 | then |
---|
1633 | ac_cv_sys_largefile_LIBS=`cat conftest.1` |
---|
1634 | else |
---|
1635 | ac_cv_sys_largefile_LIBS=no |
---|
1636 | |
---|
1637 | fi |
---|
1638 | rm -f conftest* |
---|
1639 | fi |
---|
1640 | |
---|
1641 | echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6 |
---|
1642 | |
---|
1643 | for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do |
---|
1644 | case "$ac_flag" in |
---|
1645 | no) ;; |
---|
1646 | -D_FILE_OFFSET_BITS=*) ;; |
---|
1647 | -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; |
---|
1648 | -D_LARGE_FILES | -D_LARGE_FILES=*) ;; |
---|
1649 | -D?* | -I?*) |
---|
1650 | case "$ac_flag" in |
---|
1651 | no) ;; |
---|
1652 | ?*) |
---|
1653 | case "$CPPFLAGS" in |
---|
1654 | '') CPPFLAGS="$ac_flag" ;; |
---|
1655 | *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;; |
---|
1656 | esac ;; |
---|
1657 | esac ;; |
---|
1658 | *) |
---|
1659 | case "$ac_flag" in |
---|
1660 | no) ;; |
---|
1661 | ?*) |
---|
1662 | case "$CFLAGS" in |
---|
1663 | '') CFLAGS="$ac_flag" ;; |
---|
1664 | *) CFLAGS=$CFLAGS' '"$ac_flag" ;; |
---|
1665 | esac ;; |
---|
1666 | esac ;; |
---|
1667 | esac |
---|
1668 | done |
---|
1669 | case "$ac_cv_sys_largefile_LDFLAGS" in |
---|
1670 | no) ;; |
---|
1671 | ?*) |
---|
1672 | case "$LDFLAGS" in |
---|
1673 | '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;; |
---|
1674 | *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;; |
---|
1675 | esac ;; |
---|
1676 | esac |
---|
1677 | case "$ac_cv_sys_largefile_LIBS" in |
---|
1678 | no) ;; |
---|
1679 | ?*) |
---|
1680 | case "$LIBS" in |
---|
1681 | '') LIBS="$ac_cv_sys_largefile_LIBS" ;; |
---|
1682 | *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;; |
---|
1683 | esac ;; |
---|
1684 | esac |
---|
1685 | echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6 |
---|
1686 | echo "configure:1687: checking for _FILE_OFFSET_BITS" >&5 |
---|
1687 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
---|
1688 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1689 | else |
---|
1690 | ac_cv_sys_file_offset_bits=no |
---|
1691 | case "$host_os" in |
---|
1692 | # HP-UX 10.20 and later |
---|
1693 | hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) |
---|
1694 | ac_cv_sys_file_offset_bits=64 ;; |
---|
1695 | esac |
---|
1696 | for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do |
---|
1697 | case "$ac_flag" in |
---|
1698 | -D_FILE_OFFSET_BITS) |
---|
1699 | ac_cv_sys_file_offset_bits=1 ;; |
---|
1700 | -D_FILE_OFFSET_BITS=*) |
---|
1701 | ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; |
---|
1702 | esac |
---|
1703 | done |
---|
1704 | |
---|
1705 | fi |
---|
1706 | |
---|
1707 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 |
---|
1708 | if test "$ac_cv_sys_file_offset_bits" != no; then |
---|
1709 | cat >> confdefs.h <<EOF |
---|
1710 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
---|
1711 | EOF |
---|
1712 | |
---|
1713 | fi |
---|
1714 | echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6 |
---|
1715 | echo "configure:1716: checking for _LARGEFILE_SOURCE" >&5 |
---|
1716 | if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
---|
1717 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1718 | else |
---|
1719 | ac_cv_sys_largefile_source=no |
---|
1720 | case "$host_os" in |
---|
1721 | # HP-UX 10.20 and later |
---|
1722 | hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) |
---|
1723 | ac_cv_sys_largefile_source=1 ;; |
---|
1724 | esac |
---|
1725 | for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do |
---|
1726 | case "$ac_flag" in |
---|
1727 | -D_LARGEFILE_SOURCE) |
---|
1728 | ac_cv_sys_largefile_source=1 ;; |
---|
1729 | -D_LARGEFILE_SOURCE=*) |
---|
1730 | ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; |
---|
1731 | esac |
---|
1732 | done |
---|
1733 | |
---|
1734 | fi |
---|
1735 | |
---|
1736 | echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 |
---|
1737 | if test "$ac_cv_sys_largefile_source" != no; then |
---|
1738 | cat >> confdefs.h <<EOF |
---|
1739 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
---|
1740 | EOF |
---|
1741 | |
---|
1742 | fi |
---|
1743 | echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6 |
---|
1744 | echo "configure:1745: checking for _LARGE_FILES" >&5 |
---|
1745 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
---|
1746 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1747 | else |
---|
1748 | ac_cv_sys_large_files=no |
---|
1749 | case "$host_os" in |
---|
1750 | # AIX 4.2 and later |
---|
1751 | aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) |
---|
1752 | ac_cv_sys_large_files=1 ;; |
---|
1753 | esac |
---|
1754 | for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do |
---|
1755 | case "$ac_flag" in |
---|
1756 | -D_LARGE_FILES) |
---|
1757 | ac_cv_sys_large_files=1 ;; |
---|
1758 | -D_LARGE_FILES=*) |
---|
1759 | ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; |
---|
1760 | esac |
---|
1761 | done |
---|
1762 | |
---|
1763 | fi |
---|
1764 | |
---|
1765 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 |
---|
1766 | if test "$ac_cv_sys_large_files" != no; then |
---|
1767 | cat >> confdefs.h <<EOF |
---|
1768 | #define _LARGE_FILES $ac_cv_sys_large_files |
---|
1769 | EOF |
---|
1770 | |
---|
1771 | fi |
---|
1772 | fi |
---|
1773 | |
---|
1774 | |
---|
1775 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
1776 | echo "configure:1777: checking for ANSI C header files" >&5 |
---|
1777 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
1778 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1779 | else |
---|
1780 | cat > conftest.$ac_ext <<EOF |
---|
1781 | #line 1782 "configure" |
---|
1782 | #include "confdefs.h" |
---|
1783 | #include <stdlib.h> |
---|
1784 | #include <stdarg.h> |
---|
1785 | #include <string.h> |
---|
1786 | #include <float.h> |
---|
1787 | EOF |
---|
1788 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1789 | { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1790 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1791 | if test -z "$ac_err"; then |
---|
1792 | rm -rf conftest* |
---|
1793 | ac_cv_header_stdc=yes |
---|
1794 | else |
---|
1795 | echo "$ac_err" >&5 |
---|
1796 | echo "configure: failed program was:" >&5 |
---|
1797 | cat conftest.$ac_ext >&5 |
---|
1798 | rm -rf conftest* |
---|
1799 | ac_cv_header_stdc=no |
---|
1800 | fi |
---|
1801 | rm -f conftest* |
---|
1802 | |
---|
1803 | if test $ac_cv_header_stdc = yes; then |
---|
1804 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
1805 | cat > conftest.$ac_ext <<EOF |
---|
1806 | #line 1807 "configure" |
---|
1807 | #include "confdefs.h" |
---|
1808 | #include <string.h> |
---|
1809 | EOF |
---|
1810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1811 | egrep "memchr" >/dev/null 2>&1; then |
---|
1812 | : |
---|
1813 | else |
---|
1814 | rm -rf conftest* |
---|
1815 | ac_cv_header_stdc=no |
---|
1816 | fi |
---|
1817 | rm -f conftest* |
---|
1818 | |
---|
1819 | fi |
---|
1820 | |
---|
1821 | if test $ac_cv_header_stdc = yes; then |
---|
1822 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
1823 | cat > conftest.$ac_ext <<EOF |
---|
1824 | #line 1825 "configure" |
---|
1825 | #include "confdefs.h" |
---|
1826 | #include <stdlib.h> |
---|
1827 | EOF |
---|
1828 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1829 | egrep "free" >/dev/null 2>&1; then |
---|
1830 | : |
---|
1831 | else |
---|
1832 | rm -rf conftest* |
---|
1833 | ac_cv_header_stdc=no |
---|
1834 | fi |
---|
1835 | rm -f conftest* |
---|
1836 | |
---|
1837 | fi |
---|
1838 | |
---|
1839 | if test $ac_cv_header_stdc = yes; then |
---|
1840 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
1841 | if test "$cross_compiling" = yes; then |
---|
1842 | : |
---|
1843 | else |
---|
1844 | cat > conftest.$ac_ext <<EOF |
---|
1845 | #line 1846 "configure" |
---|
1846 | #include "confdefs.h" |
---|
1847 | #include <ctype.h> |
---|
1848 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
1849 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
1850 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
1851 | int main () { int i; for (i = 0; i < 256; i++) |
---|
1852 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
1853 | exit (0); } |
---|
1854 | |
---|
1855 | EOF |
---|
1856 | if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1857 | then |
---|
1858 | : |
---|
1859 | else |
---|
1860 | echo "configure: failed program was:" >&5 |
---|
1861 | cat conftest.$ac_ext >&5 |
---|
1862 | rm -fr conftest* |
---|
1863 | ac_cv_header_stdc=no |
---|
1864 | fi |
---|
1865 | rm -fr conftest* |
---|
1866 | fi |
---|
1867 | |
---|
1868 | fi |
---|
1869 | fi |
---|
1870 | |
---|
1871 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
1872 | if test $ac_cv_header_stdc = yes; then |
---|
1873 | cat >> confdefs.h <<\EOF |
---|
1874 | #define STDC_HEADERS 1 |
---|
1875 | EOF |
---|
1876 | |
---|
1877 | fi |
---|
1878 | |
---|
1879 | ac_header_dirent=no |
---|
1880 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
---|
1881 | do |
---|
1882 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
1883 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
---|
1884 | echo "configure:1885: checking for $ac_hdr that defines DIR" >&5 |
---|
1885 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
---|
1886 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1887 | else |
---|
1888 | cat > conftest.$ac_ext <<EOF |
---|
1889 | #line 1890 "configure" |
---|
1890 | #include "confdefs.h" |
---|
1891 | #include <sys/types.h> |
---|
1892 | #include <$ac_hdr> |
---|
1893 | int main() { |
---|
1894 | DIR *dirp = 0; |
---|
1895 | ; return 0; } |
---|
1896 | EOF |
---|
1897 | if { (eval echo configure:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1898 | rm -rf conftest* |
---|
1899 | eval "ac_cv_header_dirent_$ac_safe=yes" |
---|
1900 | else |
---|
1901 | echo "configure: failed program was:" >&5 |
---|
1902 | cat conftest.$ac_ext >&5 |
---|
1903 | rm -rf conftest* |
---|
1904 | eval "ac_cv_header_dirent_$ac_safe=no" |
---|
1905 | fi |
---|
1906 | rm -f conftest* |
---|
1907 | fi |
---|
1908 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
---|
1909 | echo "$ac_t""yes" 1>&6 |
---|
1910 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
1911 | cat >> confdefs.h <<EOF |
---|
1912 | #define $ac_tr_hdr 1 |
---|
1913 | EOF |
---|
1914 | ac_header_dirent=$ac_hdr; break |
---|
1915 | else |
---|
1916 | echo "$ac_t""no" 1>&6 |
---|
1917 | fi |
---|
1918 | done |
---|
1919 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
1920 | if test $ac_header_dirent = dirent.h; then |
---|
1921 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
---|
1922 | echo "configure:1923: checking for opendir in -ldir" >&5 |
---|
1923 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
---|
1924 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1925 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1926 | else |
---|
1927 | ac_save_LIBS="$LIBS" |
---|
1928 | LIBS="-ldir $LIBS" |
---|
1929 | cat > conftest.$ac_ext <<EOF |
---|
1930 | #line 1931 "configure" |
---|
1931 | #include "confdefs.h" |
---|
1932 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1933 | /* We use char because int might match the return type of a gcc2 |
---|
1934 | builtin and then its argument prototype would still apply. */ |
---|
1935 | char opendir(); |
---|
1936 | |
---|
1937 | int main() { |
---|
1938 | opendir() |
---|
1939 | ; return 0; } |
---|
1940 | EOF |
---|
1941 | if { (eval echo configure:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1942 | rm -rf conftest* |
---|
1943 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1944 | else |
---|
1945 | echo "configure: failed program was:" >&5 |
---|
1946 | cat conftest.$ac_ext >&5 |
---|
1947 | rm -rf conftest* |
---|
1948 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1949 | fi |
---|
1950 | rm -f conftest* |
---|
1951 | LIBS="$ac_save_LIBS" |
---|
1952 | |
---|
1953 | fi |
---|
1954 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1955 | echo "$ac_t""yes" 1>&6 |
---|
1956 | LIBS="$LIBS -ldir" |
---|
1957 | else |
---|
1958 | echo "$ac_t""no" 1>&6 |
---|
1959 | fi |
---|
1960 | |
---|
1961 | else |
---|
1962 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
---|
1963 | echo "configure:1964: checking for opendir in -lx" >&5 |
---|
1964 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
---|
1965 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1966 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1967 | else |
---|
1968 | ac_save_LIBS="$LIBS" |
---|
1969 | LIBS="-lx $LIBS" |
---|
1970 | cat > conftest.$ac_ext <<EOF |
---|
1971 | #line 1972 "configure" |
---|
1972 | #include "confdefs.h" |
---|
1973 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1974 | /* We use char because int might match the return type of a gcc2 |
---|
1975 | builtin and then its argument prototype would still apply. */ |
---|
1976 | char opendir(); |
---|
1977 | |
---|
1978 | int main() { |
---|
1979 | opendir() |
---|
1980 | ; return 0; } |
---|
1981 | EOF |
---|
1982 | if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1983 | rm -rf conftest* |
---|
1984 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1985 | else |
---|
1986 | echo "configure: failed program was:" >&5 |
---|
1987 | cat conftest.$ac_ext >&5 |
---|
1988 | rm -rf conftest* |
---|
1989 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1990 | fi |
---|
1991 | rm -f conftest* |
---|
1992 | LIBS="$ac_save_LIBS" |
---|
1993 | |
---|
1994 | fi |
---|
1995 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1996 | echo "$ac_t""yes" 1>&6 |
---|
1997 | LIBS="$LIBS -lx" |
---|
1998 | else |
---|
1999 | echo "$ac_t""no" 1>&6 |
---|
2000 | fi |
---|
2001 | |
---|
2002 | fi |
---|
2003 | |
---|
2004 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
---|
2005 | echo "configure:2006: checking for uid_t in sys/types.h" >&5 |
---|
2006 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
---|
2007 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2008 | else |
---|
2009 | cat > conftest.$ac_ext <<EOF |
---|
2010 | #line 2011 "configure" |
---|
2011 | #include "confdefs.h" |
---|
2012 | #include <sys/types.h> |
---|
2013 | EOF |
---|
2014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2015 | egrep "uid_t" >/dev/null 2>&1; then |
---|
2016 | rm -rf conftest* |
---|
2017 | ac_cv_type_uid_t=yes |
---|
2018 | else |
---|
2019 | rm -rf conftest* |
---|
2020 | ac_cv_type_uid_t=no |
---|
2021 | fi |
---|
2022 | rm -f conftest* |
---|
2023 | |
---|
2024 | fi |
---|
2025 | |
---|
2026 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
---|
2027 | if test $ac_cv_type_uid_t = no; then |
---|
2028 | cat >> confdefs.h <<\EOF |
---|
2029 | #define uid_t int |
---|
2030 | EOF |
---|
2031 | |
---|
2032 | cat >> confdefs.h <<\EOF |
---|
2033 | #define gid_t int |
---|
2034 | EOF |
---|
2035 | |
---|
2036 | fi |
---|
2037 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
---|
2038 | echo "configure:2039: checking for pid_t" >&5 |
---|
2039 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
---|
2040 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2041 | else |
---|
2042 | cat > conftest.$ac_ext <<EOF |
---|
2043 | #line 2044 "configure" |
---|
2044 | #include "confdefs.h" |
---|
2045 | #include <sys/types.h> |
---|
2046 | #if STDC_HEADERS |
---|
2047 | #include <stdlib.h> |
---|
2048 | #include <stddef.h> |
---|
2049 | #endif |
---|
2050 | EOF |
---|
2051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2052 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2053 | rm -rf conftest* |
---|
2054 | ac_cv_type_pid_t=yes |
---|
2055 | else |
---|
2056 | rm -rf conftest* |
---|
2057 | ac_cv_type_pid_t=no |
---|
2058 | fi |
---|
2059 | rm -f conftest* |
---|
2060 | |
---|
2061 | fi |
---|
2062 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
---|
2063 | if test $ac_cv_type_pid_t = no; then |
---|
2064 | cat >> confdefs.h <<\EOF |
---|
2065 | #define pid_t int |
---|
2066 | EOF |
---|
2067 | |
---|
2068 | fi |
---|
2069 | |
---|
2070 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
---|
2071 | echo "configure:2072: checking return type of signal handlers" >&5 |
---|
2072 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
---|
2073 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2074 | else |
---|
2075 | cat > conftest.$ac_ext <<EOF |
---|
2076 | #line 2077 "configure" |
---|
2077 | #include "confdefs.h" |
---|
2078 | #include <sys/types.h> |
---|
2079 | #include <signal.h> |
---|
2080 | #ifdef signal |
---|
2081 | #undef signal |
---|
2082 | #endif |
---|
2083 | #ifdef __cplusplus |
---|
2084 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
2085 | #else |
---|
2086 | void (*signal ()) (); |
---|
2087 | #endif |
---|
2088 | |
---|
2089 | int main() { |
---|
2090 | int i; |
---|
2091 | ; return 0; } |
---|
2092 | EOF |
---|
2093 | if { (eval echo configure:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2094 | rm -rf conftest* |
---|
2095 | ac_cv_type_signal=void |
---|
2096 | else |
---|
2097 | echo "configure: failed program was:" >&5 |
---|
2098 | cat conftest.$ac_ext >&5 |
---|
2099 | rm -rf conftest* |
---|
2100 | ac_cv_type_signal=int |
---|
2101 | fi |
---|
2102 | rm -f conftest* |
---|
2103 | fi |
---|
2104 | |
---|
2105 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
---|
2106 | cat >> confdefs.h <<EOF |
---|
2107 | #define RETSIGTYPE $ac_cv_type_signal |
---|
2108 | EOF |
---|
2109 | |
---|
2110 | |
---|
2111 | for ac_hdr in stdlib.h unistd.h limits.h sys/param.h fcntl.h string.h \ |
---|
2112 | memory.h sys/time.h sys/timeb.h |
---|
2113 | do |
---|
2114 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2115 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2116 | echo "configure:2117: checking for $ac_hdr" >&5 |
---|
2117 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2118 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2119 | else |
---|
2120 | cat > conftest.$ac_ext <<EOF |
---|
2121 | #line 2122 "configure" |
---|
2122 | #include "confdefs.h" |
---|
2123 | #include <$ac_hdr> |
---|
2124 | EOF |
---|
2125 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2126 | { (eval echo configure:2127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2127 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2128 | if test -z "$ac_err"; then |
---|
2129 | rm -rf conftest* |
---|
2130 | eval "ac_cv_header_$ac_safe=yes" |
---|
2131 | else |
---|
2132 | echo "$ac_err" >&5 |
---|
2133 | echo "configure: failed program was:" >&5 |
---|
2134 | cat conftest.$ac_ext >&5 |
---|
2135 | rm -rf conftest* |
---|
2136 | eval "ac_cv_header_$ac_safe=no" |
---|
2137 | fi |
---|
2138 | rm -f conftest* |
---|
2139 | fi |
---|
2140 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2141 | echo "$ac_t""yes" 1>&6 |
---|
2142 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2143 | cat >> confdefs.h <<EOF |
---|
2144 | #define $ac_tr_hdr 1 |
---|
2145 | EOF |
---|
2146 | |
---|
2147 | else |
---|
2148 | echo "$ac_t""no" 1>&6 |
---|
2149 | fi |
---|
2150 | done |
---|
2151 | |
---|
2152 | if test "x$CC" != xcc; then |
---|
2153 | echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 |
---|
2154 | echo "configure:2155: checking whether $CC and cc understand -c and -o together" >&5 |
---|
2155 | else |
---|
2156 | echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 |
---|
2157 | echo "configure:2158: checking whether cc understands -c and -o together" >&5 |
---|
2158 | fi |
---|
2159 | set dummy $CC; ac_cc="`echo $2 | |
---|
2160 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" |
---|
2161 | if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then |
---|
2162 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2163 | else |
---|
2164 | echo 'foo(){}' > conftest.c |
---|
2165 | # Make sure it works both with $CC and with simple cc. |
---|
2166 | # We do the test twice because some compilers refuse to overwrite an |
---|
2167 | # existing .o file with -o, though they will create one. |
---|
2168 | ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' |
---|
2169 | if { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
---|
2170 | test -f conftest.o && { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; |
---|
2171 | then |
---|
2172 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
2173 | if test "x$CC" != xcc; then |
---|
2174 | # Test first that cc exists at all. |
---|
2175 | if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
---|
2176 | ac_try='cc -c conftest.c -o conftest.o 1>&5' |
---|
2177 | if { (eval echo configure:2178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
---|
2178 | test -f conftest.o && { (eval echo configure:2179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; |
---|
2179 | then |
---|
2180 | # cc works too. |
---|
2181 | : |
---|
2182 | else |
---|
2183 | # cc exists but doesn't like -o. |
---|
2184 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
2185 | fi |
---|
2186 | fi |
---|
2187 | fi |
---|
2188 | else |
---|
2189 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
2190 | fi |
---|
2191 | rm -f conftest* |
---|
2192 | |
---|
2193 | fi |
---|
2194 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then |
---|
2195 | echo "$ac_t""yes" 1>&6 |
---|
2196 | else |
---|
2197 | echo "$ac_t""no" 1>&6 |
---|
2198 | cat >> confdefs.h <<\EOF |
---|
2199 | #define NO_MINUS_C_MINUS_O 1 |
---|
2200 | EOF |
---|
2201 | |
---|
2202 | fi |
---|
2203 | |
---|
2204 | |
---|
2205 | |
---|
2206 | |
---|
2207 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
---|
2208 | echo "configure:2209: checking for ${CC-cc} option to accept ANSI C" >&5 |
---|
2209 | if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then |
---|
2210 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2211 | else |
---|
2212 | am_cv_prog_cc_stdc=no |
---|
2213 | ac_save_CC="$CC" |
---|
2214 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2215 | # breaks some systems' header files. |
---|
2216 | # AIX -qlanglvl=ansi |
---|
2217 | # Ultrix and OSF/1 -std1 |
---|
2218 | # HP-UX -Aa -D_HPUX_SOURCE |
---|
2219 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2220 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2221 | do |
---|
2222 | CC="$ac_save_CC $ac_arg" |
---|
2223 | cat > conftest.$ac_ext <<EOF |
---|
2224 | #line 2225 "configure" |
---|
2225 | #include "confdefs.h" |
---|
2226 | #include <stdarg.h> |
---|
2227 | #include <stdio.h> |
---|
2228 | #include <sys/types.h> |
---|
2229 | #include <sys/stat.h> |
---|
2230 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2231 | struct buf { int x; }; |
---|
2232 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2233 | static char *e (p, i) |
---|
2234 | char **p; |
---|
2235 | int i; |
---|
2236 | { |
---|
2237 | return p[i]; |
---|
2238 | } |
---|
2239 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2240 | { |
---|
2241 | char *s; |
---|
2242 | va_list v; |
---|
2243 | va_start (v,p); |
---|
2244 | s = g (p, va_arg (v,int)); |
---|
2245 | va_end (v); |
---|
2246 | return s; |
---|
2247 | } |
---|
2248 | int test (int i, double x); |
---|
2249 | struct s1 {int (*f) (int a);}; |
---|
2250 | struct s2 {int (*f) (double a);}; |
---|
2251 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2252 | int argc; |
---|
2253 | char **argv; |
---|
2254 | |
---|
2255 | int main() { |
---|
2256 | |
---|
2257 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2258 | |
---|
2259 | ; return 0; } |
---|
2260 | EOF |
---|
2261 | if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2262 | rm -rf conftest* |
---|
2263 | am_cv_prog_cc_stdc="$ac_arg"; break |
---|
2264 | else |
---|
2265 | echo "configure: failed program was:" >&5 |
---|
2266 | cat conftest.$ac_ext >&5 |
---|
2267 | fi |
---|
2268 | rm -f conftest* |
---|
2269 | done |
---|
2270 | CC="$ac_save_CC" |
---|
2271 | |
---|
2272 | fi |
---|
2273 | |
---|
2274 | if test -z "$am_cv_prog_cc_stdc"; then |
---|
2275 | echo "$ac_t""none needed" 1>&6 |
---|
2276 | else |
---|
2277 | echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 |
---|
2278 | fi |
---|
2279 | case "x$am_cv_prog_cc_stdc" in |
---|
2280 | x|xno) ;; |
---|
2281 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
---|
2282 | esac |
---|
2283 | |
---|
2284 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
2285 | echo "configure:2286: checking for working const" >&5 |
---|
2286 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
2287 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2288 | else |
---|
2289 | cat > conftest.$ac_ext <<EOF |
---|
2290 | #line 2291 "configure" |
---|
2291 | #include "confdefs.h" |
---|
2292 | |
---|
2293 | int main() { |
---|
2294 | |
---|
2295 | /* Ultrix mips cc rejects this. */ |
---|
2296 | typedef int charset[2]; const charset x; |
---|
2297 | /* SunOS 4.1.1 cc rejects this. */ |
---|
2298 | char const *const *ccp; |
---|
2299 | char **p; |
---|
2300 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
2301 | struct point {int x, y;}; |
---|
2302 | static struct point const zero = {0,0}; |
---|
2303 | /* AIX XL C 1.02.0.0 rejects this. |
---|
2304 | It does not let you subtract one const X* pointer from another in an arm |
---|
2305 | of an if-expression whose if-part is not a constant expression */ |
---|
2306 | const char *g = "string"; |
---|
2307 | ccp = &g + (g ? g-g : 0); |
---|
2308 | /* HPUX 7.0 cc rejects these. */ |
---|
2309 | ++ccp; |
---|
2310 | p = (char**) ccp; |
---|
2311 | ccp = (char const *const *) p; |
---|
2312 | { /* SCO 3.2v4 cc rejects this. */ |
---|
2313 | char *t; |
---|
2314 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
2315 | |
---|
2316 | *t++ = 0; |
---|
2317 | } |
---|
2318 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
2319 | int x[] = {25, 17}; |
---|
2320 | const int *foo = &x[0]; |
---|
2321 | ++foo; |
---|
2322 | } |
---|
2323 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
2324 | typedef const int *iptr; |
---|
2325 | iptr p = 0; |
---|
2326 | ++p; |
---|
2327 | } |
---|
2328 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
2329 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
2330 | struct s { int j; const int *ap[3]; }; |
---|
2331 | struct s *b; b->j = 5; |
---|
2332 | } |
---|
2333 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
2334 | const int foo = 10; |
---|
2335 | } |
---|
2336 | |
---|
2337 | ; return 0; } |
---|
2338 | EOF |
---|
2339 | if { (eval echo configure:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2340 | rm -rf conftest* |
---|
2341 | ac_cv_c_const=yes |
---|
2342 | else |
---|
2343 | echo "configure: failed program was:" >&5 |
---|
2344 | cat conftest.$ac_ext >&5 |
---|
2345 | rm -rf conftest* |
---|
2346 | ac_cv_c_const=no |
---|
2347 | fi |
---|
2348 | rm -f conftest* |
---|
2349 | fi |
---|
2350 | |
---|
2351 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
2352 | if test $ac_cv_c_const = no; then |
---|
2353 | cat >> confdefs.h <<\EOF |
---|
2354 | #define const |
---|
2355 | EOF |
---|
2356 | |
---|
2357 | fi |
---|
2358 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
2359 | echo "configure:2360: checking for inline" >&5 |
---|
2360 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
2361 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2362 | else |
---|
2363 | ac_cv_c_inline=no |
---|
2364 | for ac_kw in inline __inline__ __inline; do |
---|
2365 | cat > conftest.$ac_ext <<EOF |
---|
2366 | #line 2367 "configure" |
---|
2367 | #include "confdefs.h" |
---|
2368 | |
---|
2369 | int main() { |
---|
2370 | } $ac_kw foo() { |
---|
2371 | ; return 0; } |
---|
2372 | EOF |
---|
2373 | if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2374 | rm -rf conftest* |
---|
2375 | ac_cv_c_inline=$ac_kw; break |
---|
2376 | else |
---|
2377 | echo "configure: failed program was:" >&5 |
---|
2378 | cat conftest.$ac_ext >&5 |
---|
2379 | fi |
---|
2380 | rm -f conftest* |
---|
2381 | done |
---|
2382 | |
---|
2383 | fi |
---|
2384 | |
---|
2385 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
2386 | case "$ac_cv_c_inline" in |
---|
2387 | inline | yes) ;; |
---|
2388 | no) cat >> confdefs.h <<\EOF |
---|
2389 | #define inline |
---|
2390 | EOF |
---|
2391 | ;; |
---|
2392 | *) cat >> confdefs.h <<EOF |
---|
2393 | #define inline $ac_cv_c_inline |
---|
2394 | EOF |
---|
2395 | ;; |
---|
2396 | esac |
---|
2397 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
---|
2398 | echo "configure:2399: checking whether stat file-mode macros are broken" >&5 |
---|
2399 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
---|
2400 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2401 | else |
---|
2402 | cat > conftest.$ac_ext <<EOF |
---|
2403 | #line 2404 "configure" |
---|
2404 | #include "confdefs.h" |
---|
2405 | #include <sys/types.h> |
---|
2406 | #include <sys/stat.h> |
---|
2407 | |
---|
2408 | #if defined(S_ISBLK) && defined(S_IFDIR) |
---|
2409 | # if S_ISBLK (S_IFDIR) |
---|
2410 | You lose. |
---|
2411 | # endif |
---|
2412 | #endif |
---|
2413 | |
---|
2414 | #if defined(S_ISBLK) && defined(S_IFCHR) |
---|
2415 | # if S_ISBLK (S_IFCHR) |
---|
2416 | You lose. |
---|
2417 | # endif |
---|
2418 | #endif |
---|
2419 | |
---|
2420 | #if defined(S_ISLNK) && defined(S_IFREG) |
---|
2421 | # if S_ISLNK (S_IFREG) |
---|
2422 | You lose. |
---|
2423 | # endif |
---|
2424 | #endif |
---|
2425 | |
---|
2426 | #if defined(S_ISSOCK) && defined(S_IFREG) |
---|
2427 | # if S_ISSOCK (S_IFREG) |
---|
2428 | You lose. |
---|
2429 | # endif |
---|
2430 | #endif |
---|
2431 | |
---|
2432 | EOF |
---|
2433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2434 | egrep "You lose" >/dev/null 2>&1; then |
---|
2435 | rm -rf conftest* |
---|
2436 | ac_cv_header_stat_broken=yes |
---|
2437 | else |
---|
2438 | rm -rf conftest* |
---|
2439 | ac_cv_header_stat_broken=no |
---|
2440 | fi |
---|
2441 | rm -f conftest* |
---|
2442 | |
---|
2443 | fi |
---|
2444 | |
---|
2445 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
---|
2446 | if test $ac_cv_header_stat_broken = yes; then |
---|
2447 | cat >> confdefs.h <<\EOF |
---|
2448 | #define STAT_MACROS_BROKEN 1 |
---|
2449 | EOF |
---|
2450 | |
---|
2451 | fi |
---|
2452 | |
---|
2453 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
---|
2454 | echo "configure:2455: checking whether time.h and sys/time.h may both be included" >&5 |
---|
2455 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
---|
2456 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2457 | else |
---|
2458 | cat > conftest.$ac_ext <<EOF |
---|
2459 | #line 2460 "configure" |
---|
2460 | #include "confdefs.h" |
---|
2461 | #include <sys/types.h> |
---|
2462 | #include <sys/time.h> |
---|
2463 | #include <time.h> |
---|
2464 | int main() { |
---|
2465 | struct tm *tp; |
---|
2466 | ; return 0; } |
---|
2467 | EOF |
---|
2468 | if { (eval echo configure:2469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2469 | rm -rf conftest* |
---|
2470 | ac_cv_header_time=yes |
---|
2471 | else |
---|
2472 | echo "configure: failed program was:" >&5 |
---|
2473 | cat conftest.$ac_ext >&5 |
---|
2474 | rm -rf conftest* |
---|
2475 | ac_cv_header_time=no |
---|
2476 | fi |
---|
2477 | rm -f conftest* |
---|
2478 | fi |
---|
2479 | |
---|
2480 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
---|
2481 | if test $ac_cv_header_time = yes; then |
---|
2482 | cat >> confdefs.h <<\EOF |
---|
2483 | #define TIME_WITH_SYS_TIME 1 |
---|
2484 | EOF |
---|
2485 | |
---|
2486 | fi |
---|
2487 | |
---|
2488 | |
---|
2489 | |
---|
2490 | ALL_LINGUAS="de es fr ja ko nl pl pt_BR ru" |
---|
2491 | |
---|
2492 | |
---|
2493 | echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6 |
---|
2494 | echo "configure:2495: checking whether NLS is wanted" >&5 |
---|
2495 | # Check whether --enable-nls or --disable-nls was given. |
---|
2496 | if test "${enable_nls+set}" = set; then |
---|
2497 | enableval="$enable_nls" |
---|
2498 | enable_nls=$enableval |
---|
2499 | else |
---|
2500 | enable_nls=yes |
---|
2501 | fi |
---|
2502 | |
---|
2503 | echo "$ac_t""$enable_nls" 1>&6 |
---|
2504 | use_nls=$enable_nls |
---|
2505 | |
---|
2506 | |
---|
2507 | if test $use_nls = yes; then |
---|
2508 | USE_NLS_TRUE= |
---|
2509 | USE_NLS_FALSE='#' |
---|
2510 | else |
---|
2511 | USE_NLS_TRUE='#' |
---|
2512 | USE_NLS_FALSE= |
---|
2513 | fi |
---|
2514 | |
---|
2515 | if test $enable_nls = yes; then |
---|
2516 | cat >> confdefs.h <<\EOF |
---|
2517 | #define ENABLE_NLS 1 |
---|
2518 | EOF |
---|
2519 | |
---|
2520 | |
---|
2521 | # We don't support catgets at all |
---|
2522 | if test "x$with_catgets" != x; then |
---|
2523 | echo "configure: warning: catgets not supported; --with-catgets ignored" 1>&2 |
---|
2524 | fi |
---|
2525 | |
---|
2526 | # Find out what the user wants. |
---|
2527 | |
---|
2528 | # Check whether --with-included-gettext or --without-included-gettext was given. |
---|
2529 | if test "${with_included_gettext+set}" = set; then |
---|
2530 | withval="$with_included_gettext" |
---|
2531 | with_included_gettext=yes |
---|
2532 | else |
---|
2533 | with_included_gettext=maybe |
---|
2534 | fi |
---|
2535 | |
---|
2536 | |
---|
2537 | if test "x$with_included_gettext" != xyes; then |
---|
2538 | |
---|
2539 | |
---|
2540 | # OK. What we're going to do is see if the system gettext is really |
---|
2541 | # GNU gettext, and we're going to make _sure_ (as we can) that if |
---|
2542 | # it's not we'll use the included gettext. |
---|
2543 | |
---|
2544 | pds_keep_LIBS="$LIBS" |
---|
2545 | |
---|
2546 | # Look around for gettext() and libintl.h on the system |
---|
2547 | for ac_hdr in locale.h |
---|
2548 | do |
---|
2549 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2550 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2551 | echo "configure:2552: checking for $ac_hdr" >&5 |
---|
2552 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2553 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2554 | else |
---|
2555 | cat > conftest.$ac_ext <<EOF |
---|
2556 | #line 2557 "configure" |
---|
2557 | #include "confdefs.h" |
---|
2558 | #include <$ac_hdr> |
---|
2559 | EOF |
---|
2560 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2561 | { (eval echo configure:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2562 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2563 | if test -z "$ac_err"; then |
---|
2564 | rm -rf conftest* |
---|
2565 | eval "ac_cv_header_$ac_safe=yes" |
---|
2566 | else |
---|
2567 | echo "$ac_err" >&5 |
---|
2568 | echo "configure: failed program was:" >&5 |
---|
2569 | cat conftest.$ac_ext >&5 |
---|
2570 | rm -rf conftest* |
---|
2571 | eval "ac_cv_header_$ac_safe=no" |
---|
2572 | fi |
---|
2573 | rm -f conftest* |
---|
2574 | fi |
---|
2575 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2576 | echo "$ac_t""yes" 1>&6 |
---|
2577 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2578 | cat >> confdefs.h <<EOF |
---|
2579 | #define $ac_tr_hdr 1 |
---|
2580 | EOF |
---|
2581 | |
---|
2582 | else |
---|
2583 | echo "$ac_t""no" 1>&6 |
---|
2584 | fi |
---|
2585 | done |
---|
2586 | |
---|
2587 | |
---|
2588 | echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6 |
---|
2589 | echo "configure:2590: checking for library containing gettext" >&5 |
---|
2590 | if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then |
---|
2591 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2592 | else |
---|
2593 | ac_func_search_save_LIBS="$LIBS" |
---|
2594 | ac_cv_search_gettext="no" |
---|
2595 | cat > conftest.$ac_ext <<EOF |
---|
2596 | #line 2597 "configure" |
---|
2597 | #include "confdefs.h" |
---|
2598 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2599 | /* We use char because int might match the return type of a gcc2 |
---|
2600 | builtin and then its argument prototype would still apply. */ |
---|
2601 | char gettext(); |
---|
2602 | |
---|
2603 | int main() { |
---|
2604 | gettext() |
---|
2605 | ; return 0; } |
---|
2606 | EOF |
---|
2607 | if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2608 | rm -rf conftest* |
---|
2609 | ac_cv_search_gettext="none required" |
---|
2610 | else |
---|
2611 | echo "configure: failed program was:" >&5 |
---|
2612 | cat conftest.$ac_ext >&5 |
---|
2613 | fi |
---|
2614 | rm -f conftest* |
---|
2615 | test "$ac_cv_search_gettext" = "no" && for i in intl; do |
---|
2616 | LIBS="-l$i $ac_func_search_save_LIBS" |
---|
2617 | cat > conftest.$ac_ext <<EOF |
---|
2618 | #line 2619 "configure" |
---|
2619 | #include "confdefs.h" |
---|
2620 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2621 | /* We use char because int might match the return type of a gcc2 |
---|
2622 | builtin and then its argument prototype would still apply. */ |
---|
2623 | char gettext(); |
---|
2624 | |
---|
2625 | int main() { |
---|
2626 | gettext() |
---|
2627 | ; return 0; } |
---|
2628 | EOF |
---|
2629 | if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2630 | rm -rf conftest* |
---|
2631 | ac_cv_search_gettext="-l$i" |
---|
2632 | break |
---|
2633 | else |
---|
2634 | echo "configure: failed program was:" >&5 |
---|
2635 | cat conftest.$ac_ext >&5 |
---|
2636 | fi |
---|
2637 | rm -f conftest* |
---|
2638 | done |
---|
2639 | LIBS="$ac_func_search_save_LIBS" |
---|
2640 | fi |
---|
2641 | |
---|
2642 | echo "$ac_t""$ac_cv_search_gettext" 1>&6 |
---|
2643 | if test "$ac_cv_search_gettext" != "no"; then |
---|
2644 | test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS" |
---|
2645 | |
---|
2646 | else : |
---|
2647 | |
---|
2648 | fi |
---|
2649 | if test "$ac_cv_search_gettext" = no; then |
---|
2650 | with_included_gettext=yes |
---|
2651 | |
---|
2652 | else |
---|
2653 | # We only want to deal with GNU's gettext; if we don't have that |
---|
2654 | # we'll just use our own, thanks very much. |
---|
2655 | echo $ac_n "checking whether the system has GNU gettext""... $ac_c" 1>&6 |
---|
2656 | echo "configure:2657: checking whether the system has GNU gettext" >&5 |
---|
2657 | if eval "test \"`echo '$''{'pds_cv_system_gnu_gettext'+set}'`\" = set"; then |
---|
2658 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2659 | else |
---|
2660 | |
---|
2661 | cat > conftest.$ac_ext <<EOF |
---|
2662 | #line 2663 "configure" |
---|
2663 | #include "confdefs.h" |
---|
2664 | |
---|
2665 | #include <libintl.h> |
---|
2666 | #ifdef HAVE_LOCALE_H |
---|
2667 | #include <locale.h> |
---|
2668 | #endif |
---|
2669 | |
---|
2670 | int main() { |
---|
2671 | |
---|
2672 | #if __USE_GNU_GETTEXT |
---|
2673 | extern int _nl_msg_cat_cntr; |
---|
2674 | return _nl_msg_cat_cntr; |
---|
2675 | #else |
---|
2676 | not GNU gettext |
---|
2677 | #endif |
---|
2678 | |
---|
2679 | ; return 0; } |
---|
2680 | EOF |
---|
2681 | if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2682 | rm -rf conftest* |
---|
2683 | pds_cv_system_gnu_gettext=yes |
---|
2684 | else |
---|
2685 | echo "configure: failed program was:" >&5 |
---|
2686 | cat conftest.$ac_ext >&5 |
---|
2687 | rm -rf conftest* |
---|
2688 | pds_cv_system_gnu_gettext=no |
---|
2689 | fi |
---|
2690 | rm -f conftest* |
---|
2691 | fi |
---|
2692 | |
---|
2693 | echo "$ac_t""$pds_cv_system_gnu_gettext" 1>&6 |
---|
2694 | |
---|
2695 | if test "x$pds_cv_system_gnu_gettext" = xyes; then |
---|
2696 | with_included_gettext=no |
---|
2697 | cat >> confdefs.h <<\EOF |
---|
2698 | #define HAVE_LIBINTL_H 1 |
---|
2699 | EOF |
---|
2700 | |
---|
2701 | else |
---|
2702 | with_included_gettext=yes |
---|
2703 | LIBS="$pds_keep_LIBS" |
---|
2704 | fi |
---|
2705 | fi |
---|
2706 | |
---|
2707 | fi |
---|
2708 | |
---|
2709 | echo $ac_n "checking whether to use included gettext""... $ac_c" 1>&6 |
---|
2710 | echo "configure:2711: checking whether to use included gettext" >&5 |
---|
2711 | echo "$ac_t""$with_included_gettext" 1>&6 |
---|
2712 | |
---|
2713 | if test "$with_included_gettext" = yes; then |
---|
2714 | LIBOBJS="$LIBOBJS gettext.o" |
---|
2715 | fi |
---|
2716 | |
---|
2717 | cat >> confdefs.h <<\EOF |
---|
2718 | #define HAVE_GETTEXT 1 |
---|
2719 | EOF |
---|
2720 | |
---|
2721 | cat >> confdefs.h <<\EOF |
---|
2722 | #define HAVE_DCGETTEXT 1 |
---|
2723 | EOF |
---|
2724 | |
---|
2725 | |
---|
2726 | for ac_func in getcwd setlocale stpcpy |
---|
2727 | do |
---|
2728 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2729 | echo "configure:2730: checking for $ac_func" >&5 |
---|
2730 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2731 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2732 | else |
---|
2733 | cat > conftest.$ac_ext <<EOF |
---|
2734 | #line 2735 "configure" |
---|
2735 | #include "confdefs.h" |
---|
2736 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2737 | which can conflict with char $ac_func(); below. */ |
---|
2738 | #include <assert.h> |
---|
2739 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2740 | /* We use char because int might match the return type of a gcc2 |
---|
2741 | builtin and then its argument prototype would still apply. */ |
---|
2742 | char $ac_func(); |
---|
2743 | |
---|
2744 | int main() { |
---|
2745 | |
---|
2746 | /* The GNU C library defines this for functions which it implements |
---|
2747 | to always fail with ENOSYS. Some functions are actually named |
---|
2748 | something starting with __ and the normal name is an alias. */ |
---|
2749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2750 | choke me |
---|
2751 | #else |
---|
2752 | $ac_func(); |
---|
2753 | #endif |
---|
2754 | |
---|
2755 | ; return 0; } |
---|
2756 | EOF |
---|
2757 | if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2758 | rm -rf conftest* |
---|
2759 | eval "ac_cv_func_$ac_func=yes" |
---|
2760 | else |
---|
2761 | echo "configure: failed program was:" >&5 |
---|
2762 | cat conftest.$ac_ext >&5 |
---|
2763 | rm -rf conftest* |
---|
2764 | eval "ac_cv_func_$ac_func=no" |
---|
2765 | fi |
---|
2766 | rm -f conftest* |
---|
2767 | fi |
---|
2768 | |
---|
2769 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2770 | echo "$ac_t""yes" 1>&6 |
---|
2771 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
2772 | cat >> confdefs.h <<EOF |
---|
2773 | #define $ac_tr_func 1 |
---|
2774 | EOF |
---|
2775 | |
---|
2776 | else |
---|
2777 | echo "$ac_t""no" 1>&6 |
---|
2778 | fi |
---|
2779 | done |
---|
2780 | |
---|
2781 | if test $ac_cv_header_locale_h = yes; then |
---|
2782 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
---|
2783 | echo "configure:2784: checking for LC_MESSAGES" >&5 |
---|
2784 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
---|
2785 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2786 | else |
---|
2787 | cat > conftest.$ac_ext <<EOF |
---|
2788 | #line 2789 "configure" |
---|
2789 | #include "confdefs.h" |
---|
2790 | #include <locale.h> |
---|
2791 | int main() { |
---|
2792 | return LC_MESSAGES |
---|
2793 | ; return 0; } |
---|
2794 | EOF |
---|
2795 | if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2796 | rm -rf conftest* |
---|
2797 | am_cv_val_LC_MESSAGES=yes |
---|
2798 | else |
---|
2799 | echo "configure: failed program was:" >&5 |
---|
2800 | cat conftest.$ac_ext >&5 |
---|
2801 | rm -rf conftest* |
---|
2802 | am_cv_val_LC_MESSAGES=no |
---|
2803 | fi |
---|
2804 | rm -f conftest* |
---|
2805 | fi |
---|
2806 | |
---|
2807 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
---|
2808 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
2809 | cat >> confdefs.h <<\EOF |
---|
2810 | #define HAVE_LC_MESSAGES 1 |
---|
2811 | EOF |
---|
2812 | |
---|
2813 | fi |
---|
2814 | fi |
---|
2815 | |
---|
2816 | if test -z "$ALL_LINGUAS"; then |
---|
2817 | echo "configure: warning: This package does not install translations yet." 1>&2 |
---|
2818 | else |
---|
2819 | ac_items="$ALL_LINGUAS" |
---|
2820 | for ac_item in $ac_items; do |
---|
2821 | ALL_POFILES="$ALL_POFILES $ac_item.po" |
---|
2822 | ALL_MOFILES="$ALL_MOFILES $ac_item.mo" |
---|
2823 | done |
---|
2824 | fi |
---|
2825 | |
---|
2826 | |
---|
2827 | |
---|
2828 | |
---|
2829 | echo $ac_n "checking which translations to install""... $ac_c" 1>&6 |
---|
2830 | echo "configure:2831: checking which translations to install" >&5 |
---|
2831 | if test -z "$LINGUAS"; then |
---|
2832 | ac_print="$ALL_LINGUAS" |
---|
2833 | MOFILES="$ALL_MOFILES" |
---|
2834 | else |
---|
2835 | ac_items="$LINGUAS" |
---|
2836 | for ac_item in $ac_items; do |
---|
2837 | case "$ALL_LINGUAS" in |
---|
2838 | *$ac_item*) |
---|
2839 | ac_print="$ac_print $ac_item" |
---|
2840 | MOFILES="$MOFILES $ac_item.mo" |
---|
2841 | ;; |
---|
2842 | esac |
---|
2843 | done |
---|
2844 | fi |
---|
2845 | |
---|
2846 | if test -z "$ac_print"; then |
---|
2847 | echo "$ac_t""none" 1>&6 |
---|
2848 | else |
---|
2849 | echo "$ac_t""$ac_print" 1>&6 |
---|
2850 | fi |
---|
2851 | |
---|
2852 | if test "x$prefix" = xNONE; then |
---|
2853 | cat >> confdefs.h <<EOF |
---|
2854 | #define LOCALEDIR "$ac_default_prefix/share/locale" |
---|
2855 | EOF |
---|
2856 | |
---|
2857 | else |
---|
2858 | cat >> confdefs.h <<EOF |
---|
2859 | #define LOCALEDIR "$prefix/share/locale" |
---|
2860 | EOF |
---|
2861 | |
---|
2862 | fi |
---|
2863 | fi |
---|
2864 | |
---|
2865 | |
---|
2866 | |
---|
2867 | # Check whether --enable-nsec-timestamps or --disable-nsec-timestamps was given. |
---|
2868 | if test "${enable_nsec_timestamps+set}" = set; then |
---|
2869 | enableval="$enable_nsec_timestamps" |
---|
2870 | make_cv_nsec_timestamps="$enableval" |
---|
2871 | else |
---|
2872 | make_cv_nsec_timestamps="yes" |
---|
2873 | fi |
---|
2874 | |
---|
2875 | |
---|
2876 | if test "x$make_cv_nsec_timestamps" != xno; then |
---|
2877 | echo $ac_n "checking for nanoseconds member of struct stat.st_mtim""... $ac_c" 1>&6 |
---|
2878 | echo "configure:2879: checking for nanoseconds member of struct stat.st_mtim" >&5 |
---|
2879 | if eval "test \"`echo '$''{'ac_cv_struct_st_mtim_nsec'+set}'`\" = set"; then |
---|
2880 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2881 | else |
---|
2882 | ac_save_CPPFLAGS="$CPPFLAGS" |
---|
2883 | ac_cv_struct_st_mtim_nsec=no |
---|
2884 | # tv_nsec -- the usual case |
---|
2885 | # _tv_nsec -- Solaris 2.6, if |
---|
2886 | # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 |
---|
2887 | # && !defined __EXTENSIONS__) |
---|
2888 | # st__tim.tv_nsec -- UnixWare 2.1.2 |
---|
2889 | for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do |
---|
2890 | CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" |
---|
2891 | cat > conftest.$ac_ext <<EOF |
---|
2892 | #line 2893 "configure" |
---|
2893 | #include "confdefs.h" |
---|
2894 | #include <sys/types.h> |
---|
2895 | #include <sys/stat.h> |
---|
2896 | int main() { |
---|
2897 | struct stat s; s.st_mtim.ST_MTIM_NSEC; |
---|
2898 | ; return 0; } |
---|
2899 | EOF |
---|
2900 | if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2901 | rm -rf conftest* |
---|
2902 | ac_cv_struct_st_mtim_nsec=$ac_val; break |
---|
2903 | else |
---|
2904 | echo "configure: failed program was:" >&5 |
---|
2905 | cat conftest.$ac_ext >&5 |
---|
2906 | fi |
---|
2907 | rm -f conftest* |
---|
2908 | done |
---|
2909 | CPPFLAGS="$ac_save_CPPFLAGS" |
---|
2910 | fi |
---|
2911 | |
---|
2912 | echo "$ac_t""$ac_cv_struct_st_mtim_nsec" 1>&6 |
---|
2913 | |
---|
2914 | if test $ac_cv_struct_st_mtim_nsec != no; then |
---|
2915 | cat >> confdefs.h <<EOF |
---|
2916 | #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec |
---|
2917 | EOF |
---|
2918 | |
---|
2919 | fi |
---|
2920 | |
---|
2921 | |
---|
2922 | fi |
---|
2923 | |
---|
2924 | if test x = y; then |
---|
2925 | for ac_func in INTTYPES_H |
---|
2926 | do |
---|
2927 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2928 | echo "configure:2929: checking for $ac_func" >&5 |
---|
2929 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2930 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2931 | else |
---|
2932 | cat > conftest.$ac_ext <<EOF |
---|
2933 | #line 2934 "configure" |
---|
2934 | #include "confdefs.h" |
---|
2935 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2936 | which can conflict with char $ac_func(); below. */ |
---|
2937 | #include <assert.h> |
---|
2938 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2939 | /* We use char because int might match the return type of a gcc2 |
---|
2940 | builtin and then its argument prototype would still apply. */ |
---|
2941 | char $ac_func(); |
---|
2942 | |
---|
2943 | int main() { |
---|
2944 | |
---|
2945 | /* The GNU C library defines this for functions which it implements |
---|
2946 | to always fail with ENOSYS. Some functions are actually named |
---|
2947 | something starting with __ and the normal name is an alias. */ |
---|
2948 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2949 | choke me |
---|
2950 | #else |
---|
2951 | $ac_func(); |
---|
2952 | #endif |
---|
2953 | |
---|
2954 | ; return 0; } |
---|
2955 | EOF |
---|
2956 | if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2957 | rm -rf conftest* |
---|
2958 | eval "ac_cv_func_$ac_func=yes" |
---|
2959 | else |
---|
2960 | echo "configure: failed program was:" >&5 |
---|
2961 | cat conftest.$ac_ext >&5 |
---|
2962 | rm -rf conftest* |
---|
2963 | eval "ac_cv_func_$ac_func=no" |
---|
2964 | fi |
---|
2965 | rm -f conftest* |
---|
2966 | fi |
---|
2967 | |
---|
2968 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2969 | echo "$ac_t""yes" 1>&6 |
---|
2970 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
2971 | cat >> confdefs.h <<EOF |
---|
2972 | #define $ac_tr_func 1 |
---|
2973 | EOF |
---|
2974 | |
---|
2975 | else |
---|
2976 | echo "$ac_t""no" 1>&6 |
---|
2977 | fi |
---|
2978 | done |
---|
2979 | |
---|
2980 | fi |
---|
2981 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
---|
2982 | echo "configure:2983: checking for inttypes.h" >&5 |
---|
2983 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
---|
2984 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2985 | else |
---|
2986 | cat > conftest.$ac_ext <<EOF |
---|
2987 | #line 2988 "configure" |
---|
2988 | #include "confdefs.h" |
---|
2989 | #include <sys/types.h> |
---|
2990 | #include <inttypes.h> |
---|
2991 | int main() { |
---|
2992 | uintmax_t i = (uintmax_t) -1; |
---|
2993 | ; return 0; } |
---|
2994 | EOF |
---|
2995 | if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2996 | rm -rf conftest* |
---|
2997 | jm_ac_cv_header_inttypes_h=yes |
---|
2998 | else |
---|
2999 | echo "configure: failed program was:" >&5 |
---|
3000 | cat conftest.$ac_ext >&5 |
---|
3001 | rm -rf conftest* |
---|
3002 | jm_ac_cv_header_inttypes_h=no |
---|
3003 | fi |
---|
3004 | rm -f conftest* |
---|
3005 | fi |
---|
3006 | |
---|
3007 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 |
---|
3008 | if test $jm_ac_cv_header_inttypes_h = yes; then |
---|
3009 | ac_kludge=HAVE_INTTYPES_H |
---|
3010 | cat >> confdefs.h <<EOF |
---|
3011 | #define $ac_kludge 1 |
---|
3012 | EOF |
---|
3013 | |
---|
3014 | fi |
---|
3015 | |
---|
3016 | |
---|
3017 | |
---|
3018 | if test $jm_ac_cv_header_inttypes_h = no; then |
---|
3019 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 |
---|
3020 | echo "configure:3021: checking for unsigned long long" >&5 |
---|
3021 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
---|
3022 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3023 | else |
---|
3024 | cat > conftest.$ac_ext <<EOF |
---|
3025 | #line 3026 "configure" |
---|
3026 | #include "confdefs.h" |
---|
3027 | unsigned long long ull = 1; int i = 63; |
---|
3028 | int main() { |
---|
3029 | unsigned long long ullmax = (unsigned long long) -1; |
---|
3030 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
---|
3031 | ; return 0; } |
---|
3032 | EOF |
---|
3033 | if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3034 | rm -rf conftest* |
---|
3035 | ac_cv_type_unsigned_long_long=yes |
---|
3036 | else |
---|
3037 | echo "configure: failed program was:" >&5 |
---|
3038 | cat conftest.$ac_ext >&5 |
---|
3039 | rm -rf conftest* |
---|
3040 | ac_cv_type_unsigned_long_long=no |
---|
3041 | fi |
---|
3042 | rm -f conftest* |
---|
3043 | fi |
---|
3044 | |
---|
3045 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 |
---|
3046 | if test $ac_cv_type_unsigned_long_long = yes; then |
---|
3047 | cat >> confdefs.h <<\EOF |
---|
3048 | #define uintmax_t unsigned long long |
---|
3049 | EOF |
---|
3050 | |
---|
3051 | else |
---|
3052 | cat >> confdefs.h <<\EOF |
---|
3053 | #define uintmax_t unsigned long |
---|
3054 | EOF |
---|
3055 | |
---|
3056 | fi |
---|
3057 | fi |
---|
3058 | |
---|
3059 | |
---|
3060 | |
---|
3061 | |
---|
3062 | |
---|
3063 | # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. |
---|
3064 | # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. |
---|
3065 | |
---|
3066 | echo $ac_n "checking for library containing clock_gettime""... $ac_c" 1>&6 |
---|
3067 | echo "configure:3068: checking for library containing clock_gettime" >&5 |
---|
3068 | if eval "test \"`echo '$''{'ac_cv_search_clock_gettime'+set}'`\" = set"; then |
---|
3069 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3070 | else |
---|
3071 | ac_func_search_save_LIBS="$LIBS" |
---|
3072 | ac_cv_search_clock_gettime="no" |
---|
3073 | cat > conftest.$ac_ext <<EOF |
---|
3074 | #line 3075 "configure" |
---|
3075 | #include "confdefs.h" |
---|
3076 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3077 | /* We use char because int might match the return type of a gcc2 |
---|
3078 | builtin and then its argument prototype would still apply. */ |
---|
3079 | char clock_gettime(); |
---|
3080 | |
---|
3081 | int main() { |
---|
3082 | clock_gettime() |
---|
3083 | ; return 0; } |
---|
3084 | EOF |
---|
3085 | if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3086 | rm -rf conftest* |
---|
3087 | ac_cv_search_clock_gettime="none required" |
---|
3088 | else |
---|
3089 | echo "configure: failed program was:" >&5 |
---|
3090 | cat conftest.$ac_ext >&5 |
---|
3091 | fi |
---|
3092 | rm -f conftest* |
---|
3093 | test "$ac_cv_search_clock_gettime" = "no" && for i in rt posix4; do |
---|
3094 | LIBS="-l$i $ac_func_search_save_LIBS" |
---|
3095 | cat > conftest.$ac_ext <<EOF |
---|
3096 | #line 3097 "configure" |
---|
3097 | #include "confdefs.h" |
---|
3098 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3099 | /* We use char because int might match the return type of a gcc2 |
---|
3100 | builtin and then its argument prototype would still apply. */ |
---|
3101 | char clock_gettime(); |
---|
3102 | |
---|
3103 | int main() { |
---|
3104 | clock_gettime() |
---|
3105 | ; return 0; } |
---|
3106 | EOF |
---|
3107 | if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3108 | rm -rf conftest* |
---|
3109 | ac_cv_search_clock_gettime="-l$i" |
---|
3110 | break |
---|
3111 | else |
---|
3112 | echo "configure: failed program was:" >&5 |
---|
3113 | cat conftest.$ac_ext >&5 |
---|
3114 | fi |
---|
3115 | rm -f conftest* |
---|
3116 | done |
---|
3117 | LIBS="$ac_func_search_save_LIBS" |
---|
3118 | fi |
---|
3119 | |
---|
3120 | echo "$ac_t""$ac_cv_search_clock_gettime" 1>&6 |
---|
3121 | if test "$ac_cv_search_clock_gettime" != "no"; then |
---|
3122 | test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS" |
---|
3123 | |
---|
3124 | else : |
---|
3125 | |
---|
3126 | fi |
---|
3127 | if test "$ac_cv_search_clock_gettime" != no; then |
---|
3128 | cat >> confdefs.h <<\EOF |
---|
3129 | #define HAVE_CLOCK_GETTIME 1 |
---|
3130 | EOF |
---|
3131 | |
---|
3132 | fi |
---|
3133 | |
---|
3134 | # See if we have a standard version of gettimeofday(). Since actual |
---|
3135 | # implementations can differ, just make sure we have the most common |
---|
3136 | # one. |
---|
3137 | echo $ac_n "checking for standard gettimeofday""... $ac_c" 1>&6 |
---|
3138 | echo "configure:3139: checking for standard gettimeofday" >&5 |
---|
3139 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
---|
3140 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3141 | else |
---|
3142 | ac_cv_func_gettimeofday=no |
---|
3143 | if test "$cross_compiling" = yes; then |
---|
3144 | ac_cv_func_gettimeofday="no (cross-compiling)" |
---|
3145 | else |
---|
3146 | cat > conftest.$ac_ext <<EOF |
---|
3147 | #line 3148 "configure" |
---|
3148 | #include "confdefs.h" |
---|
3149 | #include <sys/time.h> |
---|
3150 | int main () |
---|
3151 | { |
---|
3152 | struct timeval t; t.tv_sec = -1; t.tv_usec = -1; |
---|
3153 | exit (gettimeofday (&t, 0) != 0 |
---|
3154 | || t.tv_sec < 0 || t.tv_usec < 0); |
---|
3155 | } |
---|
3156 | EOF |
---|
3157 | if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3158 | then |
---|
3159 | ac_cv_func_gettimeofday=yes |
---|
3160 | else |
---|
3161 | echo "configure: failed program was:" >&5 |
---|
3162 | cat conftest.$ac_ext >&5 |
---|
3163 | rm -fr conftest* |
---|
3164 | ac_cv_func_gettimeofday=no |
---|
3165 | fi |
---|
3166 | rm -fr conftest* |
---|
3167 | fi |
---|
3168 | |
---|
3169 | fi |
---|
3170 | |
---|
3171 | echo "$ac_t""$ac_cv_func_gettimeofday" 1>&6 |
---|
3172 | if test $ac_cv_func_gettimeofday = yes; then |
---|
3173 | cat >> confdefs.h <<\EOF |
---|
3174 | #define HAVE_GETTIMEOFDAY 1 |
---|
3175 | EOF |
---|
3176 | |
---|
3177 | fi |
---|
3178 | |
---|
3179 | for ac_func in memmove memcpy strchr strdup psignal mkstemp mktemp fdopen \ |
---|
3180 | dup2 getcwd sigsetmask sigaction getgroups setlinebuf \ |
---|
3181 | seteuid setegid setreuid setregid pipe strerror strsignal |
---|
3182 | do |
---|
3183 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3184 | echo "configure:3185: checking for $ac_func" >&5 |
---|
3185 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3186 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3187 | else |
---|
3188 | cat > conftest.$ac_ext <<EOF |
---|
3189 | #line 3190 "configure" |
---|
3190 | #include "confdefs.h" |
---|
3191 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3192 | which can conflict with char $ac_func(); below. */ |
---|
3193 | #include <assert.h> |
---|
3194 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3195 | /* We use char because int might match the return type of a gcc2 |
---|
3196 | builtin and then its argument prototype would still apply. */ |
---|
3197 | char $ac_func(); |
---|
3198 | |
---|
3199 | int main() { |
---|
3200 | |
---|
3201 | /* The GNU C library defines this for functions which it implements |
---|
3202 | to always fail with ENOSYS. Some functions are actually named |
---|
3203 | something starting with __ and the normal name is an alias. */ |
---|
3204 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3205 | choke me |
---|
3206 | #else |
---|
3207 | $ac_func(); |
---|
3208 | #endif |
---|
3209 | |
---|
3210 | ; return 0; } |
---|
3211 | EOF |
---|
3212 | if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3213 | rm -rf conftest* |
---|
3214 | eval "ac_cv_func_$ac_func=yes" |
---|
3215 | else |
---|
3216 | echo "configure: failed program was:" >&5 |
---|
3217 | cat conftest.$ac_ext >&5 |
---|
3218 | rm -rf conftest* |
---|
3219 | eval "ac_cv_func_$ac_func=no" |
---|
3220 | fi |
---|
3221 | rm -f conftest* |
---|
3222 | fi |
---|
3223 | |
---|
3224 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3225 | echo "$ac_t""yes" 1>&6 |
---|
3226 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3227 | cat >> confdefs.h <<EOF |
---|
3228 | #define $ac_tr_func 1 |
---|
3229 | EOF |
---|
3230 | |
---|
3231 | else |
---|
3232 | echo "$ac_t""no" 1>&6 |
---|
3233 | fi |
---|
3234 | done |
---|
3235 | |
---|
3236 | |
---|
3237 | echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6 |
---|
3238 | echo "configure:3239: checking for sys_siglist" >&5 |
---|
3239 | if eval "test \"`echo '$''{'ac_cv_check_symbol_sys_siglist'+set}'`\" = set"; then |
---|
3240 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3241 | else |
---|
3242 | cat > conftest.$ac_ext <<EOF |
---|
3243 | #line 3244 "configure" |
---|
3244 | #include "confdefs.h" |
---|
3245 | |
---|
3246 | int main() { |
---|
3247 | extern char *sys_siglist[]; puts(*sys_siglist); |
---|
3248 | ; return 0; } |
---|
3249 | EOF |
---|
3250 | if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3251 | rm -rf conftest* |
---|
3252 | ac_cv_check_symbol_sys_siglist=yes |
---|
3253 | else |
---|
3254 | echo "configure: failed program was:" >&5 |
---|
3255 | cat conftest.$ac_ext >&5 |
---|
3256 | rm -rf conftest* |
---|
3257 | ac_cv_check_symbol_sys_siglist=no |
---|
3258 | fi |
---|
3259 | rm -f conftest* |
---|
3260 | fi |
---|
3261 | |
---|
3262 | if test "$ac_cv_check_symbol_sys_siglist" = yes; then |
---|
3263 | ac_tr_symbol=`echo sys_siglist | tr '[a-z]' '[A-Z]'` |
---|
3264 | cat >> confdefs.h <<EOF |
---|
3265 | #define HAVE_${ac_tr_symbol} 1 |
---|
3266 | EOF |
---|
3267 | |
---|
3268 | fi |
---|
3269 | echo "$ac_t""$ac_cv_check_symbol_sys_siglist" 1>&6 |
---|
3270 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
3271 | # for constant arguments. Useless! |
---|
3272 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
3273 | echo "configure:3274: checking for working alloca.h" >&5 |
---|
3274 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
3275 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3276 | else |
---|
3277 | cat > conftest.$ac_ext <<EOF |
---|
3278 | #line 3279 "configure" |
---|
3279 | #include "confdefs.h" |
---|
3280 | #include <alloca.h> |
---|
3281 | int main() { |
---|
3282 | char *p = alloca(2 * sizeof(int)); |
---|
3283 | ; return 0; } |
---|
3284 | EOF |
---|
3285 | if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3286 | rm -rf conftest* |
---|
3287 | ac_cv_header_alloca_h=yes |
---|
3288 | else |
---|
3289 | echo "configure: failed program was:" >&5 |
---|
3290 | cat conftest.$ac_ext >&5 |
---|
3291 | rm -rf conftest* |
---|
3292 | ac_cv_header_alloca_h=no |
---|
3293 | fi |
---|
3294 | rm -f conftest* |
---|
3295 | fi |
---|
3296 | |
---|
3297 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
3298 | if test $ac_cv_header_alloca_h = yes; then |
---|
3299 | cat >> confdefs.h <<\EOF |
---|
3300 | #define HAVE_ALLOCA_H 1 |
---|
3301 | EOF |
---|
3302 | |
---|
3303 | fi |
---|
3304 | |
---|
3305 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
3306 | echo "configure:3307: checking for alloca" >&5 |
---|
3307 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
3308 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3309 | else |
---|
3310 | cat > conftest.$ac_ext <<EOF |
---|
3311 | #line 3312 "configure" |
---|
3312 | #include "confdefs.h" |
---|
3313 | |
---|
3314 | #ifdef __GNUC__ |
---|
3315 | # define alloca __builtin_alloca |
---|
3316 | #else |
---|
3317 | # ifdef _MSC_VER |
---|
3318 | # include <malloc.h> |
---|
3319 | # define alloca _alloca |
---|
3320 | # else |
---|
3321 | # if HAVE_ALLOCA_H |
---|
3322 | # include <alloca.h> |
---|
3323 | # else |
---|
3324 | # ifdef _AIX |
---|
3325 | #pragma alloca |
---|
3326 | # else |
---|
3327 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
3328 | char *alloca (); |
---|
3329 | # endif |
---|
3330 | # endif |
---|
3331 | # endif |
---|
3332 | # endif |
---|
3333 | #endif |
---|
3334 | |
---|
3335 | int main() { |
---|
3336 | char *p = (char *) alloca(1); |
---|
3337 | ; return 0; } |
---|
3338 | EOF |
---|
3339 | if { (eval echo configure:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3340 | rm -rf conftest* |
---|
3341 | ac_cv_func_alloca_works=yes |
---|
3342 | else |
---|
3343 | echo "configure: failed program was:" >&5 |
---|
3344 | cat conftest.$ac_ext >&5 |
---|
3345 | rm -rf conftest* |
---|
3346 | ac_cv_func_alloca_works=no |
---|
3347 | fi |
---|
3348 | rm -f conftest* |
---|
3349 | fi |
---|
3350 | |
---|
3351 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
3352 | if test $ac_cv_func_alloca_works = yes; then |
---|
3353 | cat >> confdefs.h <<\EOF |
---|
3354 | #define HAVE_ALLOCA 1 |
---|
3355 | EOF |
---|
3356 | |
---|
3357 | fi |
---|
3358 | |
---|
3359 | if test $ac_cv_func_alloca_works = no; then |
---|
3360 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
3361 | # that cause trouble. Some versions do not even contain alloca or |
---|
3362 | # contain a buggy version. If you still want to use their alloca, |
---|
3363 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
3364 | ALLOCA=alloca.${ac_objext} |
---|
3365 | cat >> confdefs.h <<\EOF |
---|
3366 | #define C_ALLOCA 1 |
---|
3367 | EOF |
---|
3368 | |
---|
3369 | |
---|
3370 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
3371 | echo "configure:3372: checking whether alloca needs Cray hooks" >&5 |
---|
3372 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
3373 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3374 | else |
---|
3375 | cat > conftest.$ac_ext <<EOF |
---|
3376 | #line 3377 "configure" |
---|
3377 | #include "confdefs.h" |
---|
3378 | #if defined(CRAY) && ! defined(CRAY2) |
---|
3379 | webecray |
---|
3380 | #else |
---|
3381 | wenotbecray |
---|
3382 | #endif |
---|
3383 | |
---|
3384 | EOF |
---|
3385 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3386 | egrep "webecray" >/dev/null 2>&1; then |
---|
3387 | rm -rf conftest* |
---|
3388 | ac_cv_os_cray=yes |
---|
3389 | else |
---|
3390 | rm -rf conftest* |
---|
3391 | ac_cv_os_cray=no |
---|
3392 | fi |
---|
3393 | rm -f conftest* |
---|
3394 | |
---|
3395 | fi |
---|
3396 | |
---|
3397 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
3398 | if test $ac_cv_os_cray = yes; then |
---|
3399 | for ac_func in _getb67 GETB67 getb67; do |
---|
3400 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3401 | echo "configure:3402: checking for $ac_func" >&5 |
---|
3402 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3403 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3404 | else |
---|
3405 | cat > conftest.$ac_ext <<EOF |
---|
3406 | #line 3407 "configure" |
---|
3407 | #include "confdefs.h" |
---|
3408 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3409 | which can conflict with char $ac_func(); below. */ |
---|
3410 | #include <assert.h> |
---|
3411 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3412 | /* We use char because int might match the return type of a gcc2 |
---|
3413 | builtin and then its argument prototype would still apply. */ |
---|
3414 | char $ac_func(); |
---|
3415 | |
---|
3416 | int main() { |
---|
3417 | |
---|
3418 | /* The GNU C library defines this for functions which it implements |
---|
3419 | to always fail with ENOSYS. Some functions are actually named |
---|
3420 | something starting with __ and the normal name is an alias. */ |
---|
3421 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3422 | choke me |
---|
3423 | #else |
---|
3424 | $ac_func(); |
---|
3425 | #endif |
---|
3426 | |
---|
3427 | ; return 0; } |
---|
3428 | EOF |
---|
3429 | if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3430 | rm -rf conftest* |
---|
3431 | eval "ac_cv_func_$ac_func=yes" |
---|
3432 | else |
---|
3433 | echo "configure: failed program was:" >&5 |
---|
3434 | cat conftest.$ac_ext >&5 |
---|
3435 | rm -rf conftest* |
---|
3436 | eval "ac_cv_func_$ac_func=no" |
---|
3437 | fi |
---|
3438 | rm -f conftest* |
---|
3439 | fi |
---|
3440 | |
---|
3441 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3442 | echo "$ac_t""yes" 1>&6 |
---|
3443 | cat >> confdefs.h <<EOF |
---|
3444 | #define CRAY_STACKSEG_END $ac_func |
---|
3445 | EOF |
---|
3446 | |
---|
3447 | break |
---|
3448 | else |
---|
3449 | echo "$ac_t""no" 1>&6 |
---|
3450 | fi |
---|
3451 | |
---|
3452 | done |
---|
3453 | fi |
---|
3454 | |
---|
3455 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
3456 | echo "configure:3457: checking stack direction for C alloca" >&5 |
---|
3457 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
3458 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3459 | else |
---|
3460 | if test "$cross_compiling" = yes; then |
---|
3461 | ac_cv_c_stack_direction=0 |
---|
3462 | else |
---|
3463 | cat > conftest.$ac_ext <<EOF |
---|
3464 | #line 3465 "configure" |
---|
3465 | #include "confdefs.h" |
---|
3466 | find_stack_direction () |
---|
3467 | { |
---|
3468 | static char *addr = 0; |
---|
3469 | auto char dummy; |
---|
3470 | if (addr == 0) |
---|
3471 | { |
---|
3472 | addr = &dummy; |
---|
3473 | return find_stack_direction (); |
---|
3474 | } |
---|
3475 | else |
---|
3476 | return (&dummy > addr) ? 1 : -1; |
---|
3477 | } |
---|
3478 | main () |
---|
3479 | { |
---|
3480 | exit (find_stack_direction() < 0); |
---|
3481 | } |
---|
3482 | EOF |
---|
3483 | if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3484 | then |
---|
3485 | ac_cv_c_stack_direction=1 |
---|
3486 | else |
---|
3487 | echo "configure: failed program was:" >&5 |
---|
3488 | cat conftest.$ac_ext >&5 |
---|
3489 | rm -fr conftest* |
---|
3490 | ac_cv_c_stack_direction=-1 |
---|
3491 | fi |
---|
3492 | rm -fr conftest* |
---|
3493 | fi |
---|
3494 | |
---|
3495 | fi |
---|
3496 | |
---|
3497 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
3498 | cat >> confdefs.h <<EOF |
---|
3499 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
3500 | EOF |
---|
3501 | |
---|
3502 | fi |
---|
3503 | |
---|
3504 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
---|
3505 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
---|
3506 | echo "configure:3507: checking for vfork.h" >&5 |
---|
3507 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3508 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3509 | else |
---|
3510 | cat > conftest.$ac_ext <<EOF |
---|
3511 | #line 3512 "configure" |
---|
3512 | #include "confdefs.h" |
---|
3513 | #include <vfork.h> |
---|
3514 | EOF |
---|
3515 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3516 | { (eval echo configure:3517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3517 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3518 | if test -z "$ac_err"; then |
---|
3519 | rm -rf conftest* |
---|
3520 | eval "ac_cv_header_$ac_safe=yes" |
---|
3521 | else |
---|
3522 | echo "$ac_err" >&5 |
---|
3523 | echo "configure: failed program was:" >&5 |
---|
3524 | cat conftest.$ac_ext >&5 |
---|
3525 | rm -rf conftest* |
---|
3526 | eval "ac_cv_header_$ac_safe=no" |
---|
3527 | fi |
---|
3528 | rm -f conftest* |
---|
3529 | fi |
---|
3530 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3531 | echo "$ac_t""yes" 1>&6 |
---|
3532 | cat >> confdefs.h <<\EOF |
---|
3533 | #define HAVE_VFORK_H 1 |
---|
3534 | EOF |
---|
3535 | |
---|
3536 | else |
---|
3537 | echo "$ac_t""no" 1>&6 |
---|
3538 | fi |
---|
3539 | |
---|
3540 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
---|
3541 | echo "configure:3542: checking for working vfork" >&5 |
---|
3542 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
---|
3543 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3544 | else |
---|
3545 | if test "$cross_compiling" = yes; then |
---|
3546 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
---|
3547 | echo "configure:3548: checking for vfork" >&5 |
---|
3548 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
---|
3549 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3550 | else |
---|
3551 | cat > conftest.$ac_ext <<EOF |
---|
3552 | #line 3553 "configure" |
---|
3553 | #include "confdefs.h" |
---|
3554 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3555 | which can conflict with char vfork(); below. */ |
---|
3556 | #include <assert.h> |
---|
3557 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3558 | /* We use char because int might match the return type of a gcc2 |
---|
3559 | builtin and then its argument prototype would still apply. */ |
---|
3560 | char vfork(); |
---|
3561 | |
---|
3562 | int main() { |
---|
3563 | |
---|
3564 | /* The GNU C library defines this for functions which it implements |
---|
3565 | to always fail with ENOSYS. Some functions are actually named |
---|
3566 | something starting with __ and the normal name is an alias. */ |
---|
3567 | #if defined (__stub_vfork) || defined (__stub___vfork) |
---|
3568 | choke me |
---|
3569 | #else |
---|
3570 | vfork(); |
---|
3571 | #endif |
---|
3572 | |
---|
3573 | ; return 0; } |
---|
3574 | EOF |
---|
3575 | if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3576 | rm -rf conftest* |
---|
3577 | eval "ac_cv_func_vfork=yes" |
---|
3578 | else |
---|
3579 | echo "configure: failed program was:" >&5 |
---|
3580 | cat conftest.$ac_ext >&5 |
---|
3581 | rm -rf conftest* |
---|
3582 | eval "ac_cv_func_vfork=no" |
---|
3583 | fi |
---|
3584 | rm -f conftest* |
---|
3585 | fi |
---|
3586 | |
---|
3587 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then |
---|
3588 | echo "$ac_t""yes" 1>&6 |
---|
3589 | : |
---|
3590 | else |
---|
3591 | echo "$ac_t""no" 1>&6 |
---|
3592 | fi |
---|
3593 | |
---|
3594 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
---|
3595 | else |
---|
3596 | cat > conftest.$ac_ext <<EOF |
---|
3597 | #line 3598 "configure" |
---|
3598 | #include "confdefs.h" |
---|
3599 | /* Thanks to Paul Eggert for this test. */ |
---|
3600 | #include <stdio.h> |
---|
3601 | #include <sys/types.h> |
---|
3602 | #include <sys/stat.h> |
---|
3603 | #ifdef HAVE_UNISTD_H |
---|
3604 | #include <unistd.h> |
---|
3605 | #endif |
---|
3606 | #ifdef HAVE_VFORK_H |
---|
3607 | #include <vfork.h> |
---|
3608 | #endif |
---|
3609 | /* On some sparc systems, changes by the child to local and incoming |
---|
3610 | argument registers are propagated back to the parent. |
---|
3611 | The compiler is told about this with #include <vfork.h>, |
---|
3612 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. |
---|
3613 | Test for this by using a static variable whose address |
---|
3614 | is put into a register that is clobbered by the vfork. */ |
---|
3615 | static |
---|
3616 | #ifdef __cplusplus |
---|
3617 | sparc_address_test (int arg) |
---|
3618 | #else |
---|
3619 | sparc_address_test (arg) int arg; |
---|
3620 | #endif |
---|
3621 | { |
---|
3622 | static pid_t child; |
---|
3623 | if (!child) { |
---|
3624 | child = vfork (); |
---|
3625 | if (child < 0) { |
---|
3626 | perror ("vfork"); |
---|
3627 | _exit(2); |
---|
3628 | } |
---|
3629 | if (!child) { |
---|
3630 | arg = getpid(); |
---|
3631 | write(-1, "", 0); |
---|
3632 | _exit (arg); |
---|
3633 | } |
---|
3634 | } |
---|
3635 | } |
---|
3636 | main() { |
---|
3637 | pid_t parent = getpid (); |
---|
3638 | pid_t child; |
---|
3639 | |
---|
3640 | sparc_address_test (); |
---|
3641 | |
---|
3642 | child = vfork (); |
---|
3643 | |
---|
3644 | if (child == 0) { |
---|
3645 | /* Here is another test for sparc vfork register problems. |
---|
3646 | This test uses lots of local variables, at least |
---|
3647 | as many local variables as main has allocated so far |
---|
3648 | including compiler temporaries. 4 locals are enough for |
---|
3649 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. |
---|
3650 | A buggy compiler should reuse the register of parent |
---|
3651 | for one of the local variables, since it will think that |
---|
3652 | parent can't possibly be used any more in this routine. |
---|
3653 | Assigning to the local variable will thus munge parent |
---|
3654 | in the parent process. */ |
---|
3655 | pid_t |
---|
3656 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
---|
3657 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
---|
3658 | /* Convince the compiler that p..p7 are live; otherwise, it might |
---|
3659 | use the same hardware register for all 8 local variables. */ |
---|
3660 | if (p != p1 || p != p2 || p != p3 || p != p4 |
---|
3661 | || p != p5 || p != p6 || p != p7) |
---|
3662 | _exit(1); |
---|
3663 | |
---|
3664 | /* On some systems (e.g. IRIX 3.3), |
---|
3665 | vfork doesn't separate parent from child file descriptors. |
---|
3666 | If the child closes a descriptor before it execs or exits, |
---|
3667 | this munges the parent's descriptor as well. |
---|
3668 | Test for this by closing stdout in the child. */ |
---|
3669 | _exit(close(fileno(stdout)) != 0); |
---|
3670 | } else { |
---|
3671 | int status; |
---|
3672 | struct stat st; |
---|
3673 | |
---|
3674 | while (wait(&status) != child) |
---|
3675 | ; |
---|
3676 | exit( |
---|
3677 | /* Was there some problem with vforking? */ |
---|
3678 | child < 0 |
---|
3679 | |
---|
3680 | /* Did the child fail? (This shouldn't happen.) */ |
---|
3681 | || status |
---|
3682 | |
---|
3683 | /* Did the vfork/compiler bug occur? */ |
---|
3684 | || parent != getpid() |
---|
3685 | |
---|
3686 | /* Did the file descriptor bug occur? */ |
---|
3687 | || fstat(fileno(stdout), &st) != 0 |
---|
3688 | ); |
---|
3689 | } |
---|
3690 | } |
---|
3691 | EOF |
---|
3692 | if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3693 | then |
---|
3694 | ac_cv_func_vfork_works=yes |
---|
3695 | else |
---|
3696 | echo "configure: failed program was:" >&5 |
---|
3697 | cat conftest.$ac_ext >&5 |
---|
3698 | rm -fr conftest* |
---|
3699 | ac_cv_func_vfork_works=no |
---|
3700 | fi |
---|
3701 | rm -fr conftest* |
---|
3702 | fi |
---|
3703 | |
---|
3704 | fi |
---|
3705 | |
---|
3706 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 |
---|
3707 | if test $ac_cv_func_vfork_works = no; then |
---|
3708 | cat >> confdefs.h <<\EOF |
---|
3709 | #define vfork fork |
---|
3710 | EOF |
---|
3711 | |
---|
3712 | fi |
---|
3713 | |
---|
3714 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
3715 | echo "configure:3716: checking for vprintf" >&5 |
---|
3716 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
3717 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3718 | else |
---|
3719 | cat > conftest.$ac_ext <<EOF |
---|
3720 | #line 3721 "configure" |
---|
3721 | #include "confdefs.h" |
---|
3722 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3723 | which can conflict with char vprintf(); below. */ |
---|
3724 | #include <assert.h> |
---|
3725 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3726 | /* We use char because int might match the return type of a gcc2 |
---|
3727 | builtin and then its argument prototype would still apply. */ |
---|
3728 | char vprintf(); |
---|
3729 | |
---|
3730 | int main() { |
---|
3731 | |
---|
3732 | /* The GNU C library defines this for functions which it implements |
---|
3733 | to always fail with ENOSYS. Some functions are actually named |
---|
3734 | something starting with __ and the normal name is an alias. */ |
---|
3735 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
3736 | choke me |
---|
3737 | #else |
---|
3738 | vprintf(); |
---|
3739 | #endif |
---|
3740 | |
---|
3741 | ; return 0; } |
---|
3742 | EOF |
---|
3743 | if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3744 | rm -rf conftest* |
---|
3745 | eval "ac_cv_func_vprintf=yes" |
---|
3746 | else |
---|
3747 | echo "configure: failed program was:" >&5 |
---|
3748 | cat conftest.$ac_ext >&5 |
---|
3749 | rm -rf conftest* |
---|
3750 | eval "ac_cv_func_vprintf=no" |
---|
3751 | fi |
---|
3752 | rm -f conftest* |
---|
3753 | fi |
---|
3754 | |
---|
3755 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
3756 | echo "$ac_t""yes" 1>&6 |
---|
3757 | cat >> confdefs.h <<\EOF |
---|
3758 | #define HAVE_VPRINTF 1 |
---|
3759 | EOF |
---|
3760 | |
---|
3761 | else |
---|
3762 | echo "$ac_t""no" 1>&6 |
---|
3763 | fi |
---|
3764 | |
---|
3765 | if test "$ac_cv_func_vprintf" != yes; then |
---|
3766 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
3767 | echo "configure:3768: checking for _doprnt" >&5 |
---|
3768 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
3769 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3770 | else |
---|
3771 | cat > conftest.$ac_ext <<EOF |
---|
3772 | #line 3773 "configure" |
---|
3773 | #include "confdefs.h" |
---|
3774 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3775 | which can conflict with char _doprnt(); below. */ |
---|
3776 | #include <assert.h> |
---|
3777 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3778 | /* We use char because int might match the return type of a gcc2 |
---|
3779 | builtin and then its argument prototype would still apply. */ |
---|
3780 | char _doprnt(); |
---|
3781 | |
---|
3782 | int main() { |
---|
3783 | |
---|
3784 | /* The GNU C library defines this for functions which it implements |
---|
3785 | to always fail with ENOSYS. Some functions are actually named |
---|
3786 | something starting with __ and the normal name is an alias. */ |
---|
3787 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
3788 | choke me |
---|
3789 | #else |
---|
3790 | _doprnt(); |
---|
3791 | #endif |
---|
3792 | |
---|
3793 | ; return 0; } |
---|
3794 | EOF |
---|
3795 | if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3796 | rm -rf conftest* |
---|
3797 | eval "ac_cv_func__doprnt=yes" |
---|
3798 | else |
---|
3799 | echo "configure: failed program was:" >&5 |
---|
3800 | cat conftest.$ac_ext >&5 |
---|
3801 | rm -rf conftest* |
---|
3802 | eval "ac_cv_func__doprnt=no" |
---|
3803 | fi |
---|
3804 | rm -f conftest* |
---|
3805 | fi |
---|
3806 | |
---|
3807 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
3808 | echo "$ac_t""yes" 1>&6 |
---|
3809 | cat >> confdefs.h <<\EOF |
---|
3810 | #define HAVE_DOPRNT 1 |
---|
3811 | EOF |
---|
3812 | |
---|
3813 | else |
---|
3814 | echo "$ac_t""no" 1>&6 |
---|
3815 | fi |
---|
3816 | |
---|
3817 | fi |
---|
3818 | |
---|
3819 | echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 |
---|
3820 | echo "configure:3821: checking for working strcoll" >&5 |
---|
3821 | if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then |
---|
3822 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3823 | else |
---|
3824 | if test "$cross_compiling" = yes; then |
---|
3825 | ac_cv_func_strcoll_works=no |
---|
3826 | else |
---|
3827 | cat > conftest.$ac_ext <<EOF |
---|
3828 | #line 3829 "configure" |
---|
3829 | #include "confdefs.h" |
---|
3830 | #include <string.h> |
---|
3831 | main () |
---|
3832 | { |
---|
3833 | exit (strcoll ("abc", "def") >= 0 || |
---|
3834 | strcoll ("ABC", "DEF") >= 0 || |
---|
3835 | strcoll ("123", "456") >= 0); |
---|
3836 | } |
---|
3837 | EOF |
---|
3838 | if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3839 | then |
---|
3840 | ac_cv_func_strcoll_works=yes |
---|
3841 | else |
---|
3842 | echo "configure: failed program was:" >&5 |
---|
3843 | cat conftest.$ac_ext >&5 |
---|
3844 | rm -fr conftest* |
---|
3845 | ac_cv_func_strcoll_works=no |
---|
3846 | fi |
---|
3847 | rm -fr conftest* |
---|
3848 | fi |
---|
3849 | |
---|
3850 | fi |
---|
3851 | |
---|
3852 | echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6 |
---|
3853 | if test $ac_cv_func_strcoll_works = yes; then |
---|
3854 | cat >> confdefs.h <<\EOF |
---|
3855 | #define HAVE_STRCOLL 1 |
---|
3856 | EOF |
---|
3857 | |
---|
3858 | fi |
---|
3859 | |
---|
3860 | echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6 |
---|
3861 | echo "configure:3862: checking whether closedir returns void" >&5 |
---|
3862 | if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then |
---|
3863 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3864 | else |
---|
3865 | if test "$cross_compiling" = yes; then |
---|
3866 | ac_cv_func_closedir_void=yes |
---|
3867 | else |
---|
3868 | cat > conftest.$ac_ext <<EOF |
---|
3869 | #line 3870 "configure" |
---|
3870 | #include "confdefs.h" |
---|
3871 | #include <sys/types.h> |
---|
3872 | #include <$ac_header_dirent> |
---|
3873 | int closedir(); main() { exit(closedir(opendir(".")) != 0); } |
---|
3874 | EOF |
---|
3875 | if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3876 | then |
---|
3877 | ac_cv_func_closedir_void=no |
---|
3878 | else |
---|
3879 | echo "configure: failed program was:" >&5 |
---|
3880 | cat conftest.$ac_ext >&5 |
---|
3881 | rm -fr conftest* |
---|
3882 | ac_cv_func_closedir_void=yes |
---|
3883 | fi |
---|
3884 | rm -fr conftest* |
---|
3885 | fi |
---|
3886 | |
---|
3887 | fi |
---|
3888 | |
---|
3889 | echo "$ac_t""$ac_cv_func_closedir_void" 1>&6 |
---|
3890 | if test $ac_cv_func_closedir_void = yes; then |
---|
3891 | cat >> confdefs.h <<\EOF |
---|
3892 | #define CLOSEDIR_VOID 1 |
---|
3893 | EOF |
---|
3894 | |
---|
3895 | fi |
---|
3896 | |
---|
3897 | echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 |
---|
3898 | echo "configure:3899: checking whether setvbuf arguments are reversed" >&5 |
---|
3899 | if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then |
---|
3900 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3901 | else |
---|
3902 | if test "$cross_compiling" = yes; then |
---|
3903 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
3904 | else |
---|
3905 | cat > conftest.$ac_ext <<EOF |
---|
3906 | #line 3907 "configure" |
---|
3907 | #include "confdefs.h" |
---|
3908 | #include <stdio.h> |
---|
3909 | /* If setvbuf has the reversed format, exit 0. */ |
---|
3910 | main () { |
---|
3911 | /* This call has the arguments reversed. |
---|
3912 | A reversed system may check and see that the address of main |
---|
3913 | is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ |
---|
3914 | if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) |
---|
3915 | exit(1); |
---|
3916 | putc('\r', stdout); |
---|
3917 | exit(0); /* Non-reversed systems segv here. */ |
---|
3918 | } |
---|
3919 | EOF |
---|
3920 | if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3921 | then |
---|
3922 | ac_cv_func_setvbuf_reversed=yes |
---|
3923 | else |
---|
3924 | echo "configure: failed program was:" >&5 |
---|
3925 | cat conftest.$ac_ext >&5 |
---|
3926 | rm -fr conftest* |
---|
3927 | ac_cv_func_setvbuf_reversed=no |
---|
3928 | fi |
---|
3929 | rm -fr conftest* |
---|
3930 | fi |
---|
3931 | |
---|
3932 | rm -f core core.* *.core |
---|
3933 | fi |
---|
3934 | |
---|
3935 | echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6 |
---|
3936 | if test $ac_cv_func_setvbuf_reversed = yes; then |
---|
3937 | cat >> confdefs.h <<\EOF |
---|
3938 | #define SETVBUF_REVERSED 1 |
---|
3939 | EOF |
---|
3940 | |
---|
3941 | fi |
---|
3942 | |
---|
3943 | |
---|
3944 | echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 |
---|
3945 | echo "configure:3946: checking for kstat_open in -lkstat" >&5 |
---|
3946 | ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` |
---|
3947 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3948 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3949 | else |
---|
3950 | ac_save_LIBS="$LIBS" |
---|
3951 | LIBS="-lkstat $LIBS" |
---|
3952 | cat > conftest.$ac_ext <<EOF |
---|
3953 | #line 3954 "configure" |
---|
3954 | #include "confdefs.h" |
---|
3955 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3956 | /* We use char because int might match the return type of a gcc2 |
---|
3957 | builtin and then its argument prototype would still apply. */ |
---|
3958 | char kstat_open(); |
---|
3959 | |
---|
3960 | int main() { |
---|
3961 | kstat_open() |
---|
3962 | ; return 0; } |
---|
3963 | EOF |
---|
3964 | if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3965 | rm -rf conftest* |
---|
3966 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3967 | else |
---|
3968 | echo "configure: failed program was:" >&5 |
---|
3969 | cat conftest.$ac_ext >&5 |
---|
3970 | rm -rf conftest* |
---|
3971 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3972 | fi |
---|
3973 | rm -f conftest* |
---|
3974 | LIBS="$ac_save_LIBS" |
---|
3975 | |
---|
3976 | fi |
---|
3977 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3978 | echo "$ac_t""yes" 1>&6 |
---|
3979 | ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3980 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3981 | cat >> confdefs.h <<EOF |
---|
3982 | #define $ac_tr_lib 1 |
---|
3983 | EOF |
---|
3984 | |
---|
3985 | LIBS="-lkstat $LIBS" |
---|
3986 | |
---|
3987 | else |
---|
3988 | echo "$ac_t""no" 1>&6 |
---|
3989 | fi |
---|
3990 | for ac_func in pstat_getdynamic |
---|
3991 | do |
---|
3992 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3993 | echo "configure:3994: checking for $ac_func" >&5 |
---|
3994 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3995 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3996 | else |
---|
3997 | cat > conftest.$ac_ext <<EOF |
---|
3998 | #line 3999 "configure" |
---|
3999 | #include "confdefs.h" |
---|
4000 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4001 | which can conflict with char $ac_func(); below. */ |
---|
4002 | #include <assert.h> |
---|
4003 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4004 | /* We use char because int might match the return type of a gcc2 |
---|
4005 | builtin and then its argument prototype would still apply. */ |
---|
4006 | char $ac_func(); |
---|
4007 | |
---|
4008 | int main() { |
---|
4009 | |
---|
4010 | /* The GNU C library defines this for functions which it implements |
---|
4011 | to always fail with ENOSYS. Some functions are actually named |
---|
4012 | something starting with __ and the normal name is an alias. */ |
---|
4013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4014 | choke me |
---|
4015 | #else |
---|
4016 | $ac_func(); |
---|
4017 | #endif |
---|
4018 | |
---|
4019 | ; return 0; } |
---|
4020 | EOF |
---|
4021 | if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4022 | rm -rf conftest* |
---|
4023 | eval "ac_cv_func_$ac_func=yes" |
---|
4024 | else |
---|
4025 | echo "configure: failed program was:" >&5 |
---|
4026 | cat conftest.$ac_ext >&5 |
---|
4027 | rm -rf conftest* |
---|
4028 | eval "ac_cv_func_$ac_func=no" |
---|
4029 | fi |
---|
4030 | rm -f conftest* |
---|
4031 | fi |
---|
4032 | |
---|
4033 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4034 | echo "$ac_t""yes" 1>&6 |
---|
4035 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4036 | cat >> confdefs.h <<EOF |
---|
4037 | #define $ac_tr_func 1 |
---|
4038 | EOF |
---|
4039 | |
---|
4040 | else |
---|
4041 | echo "$ac_t""no" 1>&6 |
---|
4042 | fi |
---|
4043 | done |
---|
4044 | ac_have_func=no # yes means we've found a way to get the load average. |
---|
4045 | |
---|
4046 | # Some systems with -lutil have (and need) -lkvm as well, some do not. |
---|
4047 | # On Solaris, -lkvm requires nlist from -lelf, so check that first |
---|
4048 | # to get the right answer into the cache. |
---|
4049 | echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 |
---|
4050 | echo "configure:4051: checking for elf_begin in -lelf" >&5 |
---|
4051 | ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
---|
4052 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4053 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4054 | else |
---|
4055 | ac_save_LIBS="$LIBS" |
---|
4056 | LIBS="-lelf $LIBS" |
---|
4057 | cat > conftest.$ac_ext <<EOF |
---|
4058 | #line 4059 "configure" |
---|
4059 | #include "confdefs.h" |
---|
4060 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4061 | /* We use char because int might match the return type of a gcc2 |
---|
4062 | builtin and then its argument prototype would still apply. */ |
---|
4063 | char elf_begin(); |
---|
4064 | |
---|
4065 | int main() { |
---|
4066 | elf_begin() |
---|
4067 | ; return 0; } |
---|
4068 | EOF |
---|
4069 | if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4070 | rm -rf conftest* |
---|
4071 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4072 | else |
---|
4073 | echo "configure: failed program was:" >&5 |
---|
4074 | cat conftest.$ac_ext >&5 |
---|
4075 | rm -rf conftest* |
---|
4076 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4077 | fi |
---|
4078 | rm -f conftest* |
---|
4079 | LIBS="$ac_save_LIBS" |
---|
4080 | |
---|
4081 | fi |
---|
4082 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4083 | echo "$ac_t""yes" 1>&6 |
---|
4084 | LIBS="-lelf $LIBS" |
---|
4085 | else |
---|
4086 | echo "$ac_t""no" 1>&6 |
---|
4087 | fi |
---|
4088 | |
---|
4089 | echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 |
---|
4090 | echo "configure:4091: checking for kvm_open in -lkvm" >&5 |
---|
4091 | ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
---|
4092 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4093 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4094 | else |
---|
4095 | ac_save_LIBS="$LIBS" |
---|
4096 | LIBS="-lkvm $LIBS" |
---|
4097 | cat > conftest.$ac_ext <<EOF |
---|
4098 | #line 4099 "configure" |
---|
4099 | #include "confdefs.h" |
---|
4100 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4101 | /* We use char because int might match the return type of a gcc2 |
---|
4102 | builtin and then its argument prototype would still apply. */ |
---|
4103 | char kvm_open(); |
---|
4104 | |
---|
4105 | int main() { |
---|
4106 | kvm_open() |
---|
4107 | ; return 0; } |
---|
4108 | EOF |
---|
4109 | if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4110 | rm -rf conftest* |
---|
4111 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4112 | else |
---|
4113 | echo "configure: failed program was:" >&5 |
---|
4114 | cat conftest.$ac_ext >&5 |
---|
4115 | rm -rf conftest* |
---|
4116 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4117 | fi |
---|
4118 | rm -f conftest* |
---|
4119 | LIBS="$ac_save_LIBS" |
---|
4120 | |
---|
4121 | fi |
---|
4122 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4123 | echo "$ac_t""yes" 1>&6 |
---|
4124 | LIBS="-lkvm $LIBS" |
---|
4125 | else |
---|
4126 | echo "$ac_t""no" 1>&6 |
---|
4127 | fi |
---|
4128 | |
---|
4129 | # Check for the 4.4BSD definition of getloadavg. |
---|
4130 | echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 |
---|
4131 | echo "configure:4132: checking for getloadavg in -lutil" >&5 |
---|
4132 | ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
---|
4133 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4134 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4135 | else |
---|
4136 | ac_save_LIBS="$LIBS" |
---|
4137 | LIBS="-lutil $LIBS" |
---|
4138 | cat > conftest.$ac_ext <<EOF |
---|
4139 | #line 4140 "configure" |
---|
4140 | #include "confdefs.h" |
---|
4141 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4142 | /* We use char because int might match the return type of a gcc2 |
---|
4143 | builtin and then its argument prototype would still apply. */ |
---|
4144 | char getloadavg(); |
---|
4145 | |
---|
4146 | int main() { |
---|
4147 | getloadavg() |
---|
4148 | ; return 0; } |
---|
4149 | EOF |
---|
4150 | if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4151 | rm -rf conftest* |
---|
4152 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4153 | else |
---|
4154 | echo "configure: failed program was:" >&5 |
---|
4155 | cat conftest.$ac_ext >&5 |
---|
4156 | rm -rf conftest* |
---|
4157 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4158 | fi |
---|
4159 | rm -f conftest* |
---|
4160 | LIBS="$ac_save_LIBS" |
---|
4161 | |
---|
4162 | fi |
---|
4163 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4164 | echo "$ac_t""yes" 1>&6 |
---|
4165 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
---|
4166 | else |
---|
4167 | echo "$ac_t""no" 1>&6 |
---|
4168 | fi |
---|
4169 | |
---|
4170 | |
---|
4171 | if test $ac_have_func = no; then |
---|
4172 | # There is a commonly available library for RS/6000 AIX. |
---|
4173 | # Since it is not a standard part of AIX, it might be installed locally. |
---|
4174 | ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" |
---|
4175 | echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 |
---|
4176 | echo "configure:4177: checking for getloadavg in -lgetloadavg" >&5 |
---|
4177 | ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
---|
4178 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4179 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4180 | else |
---|
4181 | ac_save_LIBS="$LIBS" |
---|
4182 | LIBS="-lgetloadavg $LIBS" |
---|
4183 | cat > conftest.$ac_ext <<EOF |
---|
4184 | #line 4185 "configure" |
---|
4185 | #include "confdefs.h" |
---|
4186 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4187 | /* We use char because int might match the return type of a gcc2 |
---|
4188 | builtin and then its argument prototype would still apply. */ |
---|
4189 | char getloadavg(); |
---|
4190 | |
---|
4191 | int main() { |
---|
4192 | getloadavg() |
---|
4193 | ; return 0; } |
---|
4194 | EOF |
---|
4195 | if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4196 | rm -rf conftest* |
---|
4197 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4198 | else |
---|
4199 | echo "configure: failed program was:" >&5 |
---|
4200 | cat conftest.$ac_ext >&5 |
---|
4201 | rm -rf conftest* |
---|
4202 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4203 | fi |
---|
4204 | rm -f conftest* |
---|
4205 | LIBS="$ac_save_LIBS" |
---|
4206 | |
---|
4207 | fi |
---|
4208 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4209 | echo "$ac_t""yes" 1>&6 |
---|
4210 | LIBS="-lgetloadavg $LIBS" |
---|
4211 | else |
---|
4212 | echo "$ac_t""no" 1>&6 |
---|
4213 | LIBS="$ac_getloadavg_LIBS" |
---|
4214 | fi |
---|
4215 | |
---|
4216 | fi |
---|
4217 | |
---|
4218 | # Make sure it is really in the library, if we think we found it. |
---|
4219 | for ac_func in getloadavg |
---|
4220 | do |
---|
4221 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4222 | echo "configure:4223: checking for $ac_func" >&5 |
---|
4223 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4224 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4225 | else |
---|
4226 | cat > conftest.$ac_ext <<EOF |
---|
4227 | #line 4228 "configure" |
---|
4228 | #include "confdefs.h" |
---|
4229 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4230 | which can conflict with char $ac_func(); below. */ |
---|
4231 | #include <assert.h> |
---|
4232 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4233 | /* We use char because int might match the return type of a gcc2 |
---|
4234 | builtin and then its argument prototype would still apply. */ |
---|
4235 | char $ac_func(); |
---|
4236 | |
---|
4237 | int main() { |
---|
4238 | |
---|
4239 | /* The GNU C library defines this for functions which it implements |
---|
4240 | to always fail with ENOSYS. Some functions are actually named |
---|
4241 | something starting with __ and the normal name is an alias. */ |
---|
4242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4243 | choke me |
---|
4244 | #else |
---|
4245 | $ac_func(); |
---|
4246 | #endif |
---|
4247 | |
---|
4248 | ; return 0; } |
---|
4249 | EOF |
---|
4250 | if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4251 | rm -rf conftest* |
---|
4252 | eval "ac_cv_func_$ac_func=yes" |
---|
4253 | else |
---|
4254 | echo "configure: failed program was:" >&5 |
---|
4255 | cat conftest.$ac_ext >&5 |
---|
4256 | rm -rf conftest* |
---|
4257 | eval "ac_cv_func_$ac_func=no" |
---|
4258 | fi |
---|
4259 | rm -f conftest* |
---|
4260 | fi |
---|
4261 | |
---|
4262 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4263 | echo "$ac_t""yes" 1>&6 |
---|
4264 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4265 | cat >> confdefs.h <<EOF |
---|
4266 | #define $ac_tr_func 1 |
---|
4267 | EOF |
---|
4268 | |
---|
4269 | else |
---|
4270 | echo "$ac_t""no" 1>&6 |
---|
4271 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
---|
4272 | fi |
---|
4273 | done |
---|
4274 | |
---|
4275 | |
---|
4276 | |
---|
4277 | if test $ac_cv_func_getloadavg = yes; then |
---|
4278 | cat >> confdefs.h <<\EOF |
---|
4279 | #define HAVE_GETLOADAVG 1 |
---|
4280 | EOF |
---|
4281 | |
---|
4282 | ac_have_func=yes |
---|
4283 | else |
---|
4284 | # Figure out what our getloadavg.c needs. |
---|
4285 | ac_have_func=no |
---|
4286 | ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` |
---|
4287 | echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 |
---|
4288 | echo "configure:4289: checking for sys/dg_sys_info.h" >&5 |
---|
4289 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4290 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4291 | else |
---|
4292 | cat > conftest.$ac_ext <<EOF |
---|
4293 | #line 4294 "configure" |
---|
4294 | #include "confdefs.h" |
---|
4295 | #include <sys/dg_sys_info.h> |
---|
4296 | EOF |
---|
4297 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4298 | { (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4299 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4300 | if test -z "$ac_err"; then |
---|
4301 | rm -rf conftest* |
---|
4302 | eval "ac_cv_header_$ac_safe=yes" |
---|
4303 | else |
---|
4304 | echo "$ac_err" >&5 |
---|
4305 | echo "configure: failed program was:" >&5 |
---|
4306 | cat conftest.$ac_ext >&5 |
---|
4307 | rm -rf conftest* |
---|
4308 | eval "ac_cv_header_$ac_safe=no" |
---|
4309 | fi |
---|
4310 | rm -f conftest* |
---|
4311 | fi |
---|
4312 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4313 | echo "$ac_t""yes" 1>&6 |
---|
4314 | ac_have_func=yes; cat >> confdefs.h <<\EOF |
---|
4315 | #define DGUX 1 |
---|
4316 | EOF |
---|
4317 | |
---|
4318 | echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 |
---|
4319 | echo "configure:4320: checking for dg_sys_info in -ldgc" >&5 |
---|
4320 | ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
---|
4321 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4322 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4323 | else |
---|
4324 | ac_save_LIBS="$LIBS" |
---|
4325 | LIBS="-ldgc $LIBS" |
---|
4326 | cat > conftest.$ac_ext <<EOF |
---|
4327 | #line 4328 "configure" |
---|
4328 | #include "confdefs.h" |
---|
4329 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4330 | /* We use char because int might match the return type of a gcc2 |
---|
4331 | builtin and then its argument prototype would still apply. */ |
---|
4332 | char dg_sys_info(); |
---|
4333 | |
---|
4334 | int main() { |
---|
4335 | dg_sys_info() |
---|
4336 | ; return 0; } |
---|
4337 | EOF |
---|
4338 | if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4339 | rm -rf conftest* |
---|
4340 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4341 | else |
---|
4342 | echo "configure: failed program was:" >&5 |
---|
4343 | cat conftest.$ac_ext >&5 |
---|
4344 | rm -rf conftest* |
---|
4345 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4346 | fi |
---|
4347 | rm -f conftest* |
---|
4348 | LIBS="$ac_save_LIBS" |
---|
4349 | |
---|
4350 | fi |
---|
4351 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4352 | echo "$ac_t""yes" 1>&6 |
---|
4353 | ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4354 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4355 | cat >> confdefs.h <<EOF |
---|
4356 | #define $ac_tr_lib 1 |
---|
4357 | EOF |
---|
4358 | |
---|
4359 | LIBS="-ldgc $LIBS" |
---|
4360 | |
---|
4361 | else |
---|
4362 | echo "$ac_t""no" 1>&6 |
---|
4363 | fi |
---|
4364 | |
---|
4365 | else |
---|
4366 | echo "$ac_t""no" 1>&6 |
---|
4367 | fi |
---|
4368 | |
---|
4369 | |
---|
4370 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
---|
4371 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because |
---|
4372 | # Irix 4.0.5F has the header but not the library. |
---|
4373 | if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then |
---|
4374 | ac_have_func=yes; cat >> confdefs.h <<\EOF |
---|
4375 | #define SVR4 1 |
---|
4376 | EOF |
---|
4377 | |
---|
4378 | fi |
---|
4379 | |
---|
4380 | if test $ac_have_func = no; then |
---|
4381 | ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` |
---|
4382 | echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 |
---|
4383 | echo "configure:4384: checking for inq_stats/cpustats.h" >&5 |
---|
4384 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4385 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4386 | else |
---|
4387 | cat > conftest.$ac_ext <<EOF |
---|
4388 | #line 4389 "configure" |
---|
4389 | #include "confdefs.h" |
---|
4390 | #include <inq_stats/cpustats.h> |
---|
4391 | EOF |
---|
4392 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4393 | { (eval echo configure:4394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4394 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4395 | if test -z "$ac_err"; then |
---|
4396 | rm -rf conftest* |
---|
4397 | eval "ac_cv_header_$ac_safe=yes" |
---|
4398 | else |
---|
4399 | echo "$ac_err" >&5 |
---|
4400 | echo "configure: failed program was:" >&5 |
---|
4401 | cat conftest.$ac_ext >&5 |
---|
4402 | rm -rf conftest* |
---|
4403 | eval "ac_cv_header_$ac_safe=no" |
---|
4404 | fi |
---|
4405 | rm -f conftest* |
---|
4406 | fi |
---|
4407 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4408 | echo "$ac_t""yes" 1>&6 |
---|
4409 | ac_have_func=yes; cat >> confdefs.h <<\EOF |
---|
4410 | #define UMAX 1 |
---|
4411 | EOF |
---|
4412 | |
---|
4413 | cat >> confdefs.h <<\EOF |
---|
4414 | #define UMAX4_3 1 |
---|
4415 | EOF |
---|
4416 | |
---|
4417 | else |
---|
4418 | echo "$ac_t""no" 1>&6 |
---|
4419 | fi |
---|
4420 | |
---|
4421 | fi |
---|
4422 | |
---|
4423 | if test $ac_have_func = no; then |
---|
4424 | ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` |
---|
4425 | echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 |
---|
4426 | echo "configure:4427: checking for sys/cpustats.h" >&5 |
---|
4427 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4428 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4429 | else |
---|
4430 | cat > conftest.$ac_ext <<EOF |
---|
4431 | #line 4432 "configure" |
---|
4432 | #include "confdefs.h" |
---|
4433 | #include <sys/cpustats.h> |
---|
4434 | EOF |
---|
4435 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4436 | { (eval echo configure:4437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4437 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4438 | if test -z "$ac_err"; then |
---|
4439 | rm -rf conftest* |
---|
4440 | eval "ac_cv_header_$ac_safe=yes" |
---|
4441 | else |
---|
4442 | echo "$ac_err" >&5 |
---|
4443 | echo "configure: failed program was:" >&5 |
---|
4444 | cat conftest.$ac_ext >&5 |
---|
4445 | rm -rf conftest* |
---|
4446 | eval "ac_cv_header_$ac_safe=no" |
---|
4447 | fi |
---|
4448 | rm -f conftest* |
---|
4449 | fi |
---|
4450 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4451 | echo "$ac_t""yes" 1>&6 |
---|
4452 | ac_have_func=yes; cat >> confdefs.h <<\EOF |
---|
4453 | #define UMAX 1 |
---|
4454 | EOF |
---|
4455 | |
---|
4456 | else |
---|
4457 | echo "$ac_t""no" 1>&6 |
---|
4458 | fi |
---|
4459 | |
---|
4460 | fi |
---|
4461 | |
---|
4462 | if test $ac_have_func = no; then |
---|
4463 | for ac_hdr in mach/mach.h |
---|
4464 | do |
---|
4465 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4466 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4467 | echo "configure:4468: checking for $ac_hdr" >&5 |
---|
4468 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4469 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4470 | else |
---|
4471 | cat > conftest.$ac_ext <<EOF |
---|
4472 | #line 4473 "configure" |
---|
4473 | #include "confdefs.h" |
---|
4474 | #include <$ac_hdr> |
---|
4475 | EOF |
---|
4476 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4477 | { (eval echo configure:4478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4478 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4479 | if test -z "$ac_err"; then |
---|
4480 | rm -rf conftest* |
---|
4481 | eval "ac_cv_header_$ac_safe=yes" |
---|
4482 | else |
---|
4483 | echo "$ac_err" >&5 |
---|
4484 | echo "configure: failed program was:" >&5 |
---|
4485 | cat conftest.$ac_ext >&5 |
---|
4486 | rm -rf conftest* |
---|
4487 | eval "ac_cv_header_$ac_safe=no" |
---|
4488 | fi |
---|
4489 | rm -f conftest* |
---|
4490 | fi |
---|
4491 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4492 | echo "$ac_t""yes" 1>&6 |
---|
4493 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4494 | cat >> confdefs.h <<EOF |
---|
4495 | #define $ac_tr_hdr 1 |
---|
4496 | EOF |
---|
4497 | |
---|
4498 | else |
---|
4499 | echo "$ac_t""no" 1>&6 |
---|
4500 | fi |
---|
4501 | done |
---|
4502 | |
---|
4503 | fi |
---|
4504 | |
---|
4505 | ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
---|
4506 | echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
---|
4507 | echo "configure:4508: checking for nlist.h" >&5 |
---|
4508 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4509 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4510 | else |
---|
4511 | cat > conftest.$ac_ext <<EOF |
---|
4512 | #line 4513 "configure" |
---|
4513 | #include "confdefs.h" |
---|
4514 | #include <nlist.h> |
---|
4515 | EOF |
---|
4516 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4517 | { (eval echo configure:4518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4518 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4519 | if test -z "$ac_err"; then |
---|
4520 | rm -rf conftest* |
---|
4521 | eval "ac_cv_header_$ac_safe=yes" |
---|
4522 | else |
---|
4523 | echo "$ac_err" >&5 |
---|
4524 | echo "configure: failed program was:" >&5 |
---|
4525 | cat conftest.$ac_ext >&5 |
---|
4526 | rm -rf conftest* |
---|
4527 | eval "ac_cv_header_$ac_safe=no" |
---|
4528 | fi |
---|
4529 | rm -f conftest* |
---|
4530 | fi |
---|
4531 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4532 | echo "$ac_t""yes" 1>&6 |
---|
4533 | cat >> confdefs.h <<\EOF |
---|
4534 | #define NLIST_STRUCT 1 |
---|
4535 | EOF |
---|
4536 | |
---|
4537 | echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 |
---|
4538 | echo "configure:4539: checking for n_un in struct nlist" >&5 |
---|
4539 | if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
---|
4540 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4541 | else |
---|
4542 | cat > conftest.$ac_ext <<EOF |
---|
4543 | #line 4544 "configure" |
---|
4544 | #include "confdefs.h" |
---|
4545 | #include <nlist.h> |
---|
4546 | int main() { |
---|
4547 | struct nlist n; n.n_un.n_name = 0; |
---|
4548 | ; return 0; } |
---|
4549 | EOF |
---|
4550 | if { (eval echo configure:4551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4551 | rm -rf conftest* |
---|
4552 | ac_cv_struct_nlist_n_un=yes |
---|
4553 | else |
---|
4554 | echo "configure: failed program was:" >&5 |
---|
4555 | cat conftest.$ac_ext >&5 |
---|
4556 | rm -rf conftest* |
---|
4557 | ac_cv_struct_nlist_n_un=no |
---|
4558 | fi |
---|
4559 | rm -f conftest* |
---|
4560 | fi |
---|
4561 | |
---|
4562 | echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 |
---|
4563 | if test $ac_cv_struct_nlist_n_un = yes; then |
---|
4564 | cat >> confdefs.h <<\EOF |
---|
4565 | #define NLIST_NAME_UNION 1 |
---|
4566 | EOF |
---|
4567 | |
---|
4568 | fi |
---|
4569 | |
---|
4570 | else |
---|
4571 | echo "$ac_t""no" 1>&6 |
---|
4572 | fi |
---|
4573 | fi # Do not have getloadavg in system libraries. |
---|
4574 | |
---|
4575 | # Some definitions of getloadavg require that the program be installed setgid. |
---|
4576 | echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 |
---|
4577 | echo "configure:4578: checking whether getloadavg requires setgid" >&5 |
---|
4578 | if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
---|
4579 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4580 | else |
---|
4581 | cat > conftest.$ac_ext <<EOF |
---|
4582 | #line 4583 "configure" |
---|
4583 | #include "confdefs.h" |
---|
4584 | #include "$srcdir/getloadavg.c" |
---|
4585 | #ifdef LDAV_PRIVILEGED |
---|
4586 | Yowza Am I SETGID yet |
---|
4587 | #endif |
---|
4588 | EOF |
---|
4589 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4590 | egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
---|
4591 | rm -rf conftest* |
---|
4592 | ac_cv_func_getloadavg_setgid=yes |
---|
4593 | else |
---|
4594 | rm -rf conftest* |
---|
4595 | ac_cv_func_getloadavg_setgid=no |
---|
4596 | fi |
---|
4597 | rm -f conftest* |
---|
4598 | |
---|
4599 | fi |
---|
4600 | |
---|
4601 | echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 |
---|
4602 | if test $ac_cv_func_getloadavg_setgid = yes; then |
---|
4603 | NEED_SETGID=true; cat >> confdefs.h <<\EOF |
---|
4604 | #define GETLOADAVG_PRIVILEGED 1 |
---|
4605 | EOF |
---|
4606 | |
---|
4607 | else |
---|
4608 | NEED_SETGID=false |
---|
4609 | fi |
---|
4610 | |
---|
4611 | if test $ac_cv_func_getloadavg_setgid = yes; then |
---|
4612 | echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 |
---|
4613 | echo "configure:4614: checking group of /dev/kmem" >&5 |
---|
4614 | if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
---|
4615 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4616 | else |
---|
4617 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
---|
4618 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
---|
4619 | # If we got an error (system does not support symlinks), try without -L. |
---|
4620 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` |
---|
4621 | ac_cv_group_kmem=`echo $ac_ls_output \ |
---|
4622 | | sed -ne 's/[ ][ ]*/ /g; |
---|
4623 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
---|
4624 | / /s/.* //;p;'` |
---|
4625 | |
---|
4626 | fi |
---|
4627 | |
---|
4628 | echo "$ac_t""$ac_cv_group_kmem" 1>&6 |
---|
4629 | KMEM_GROUP=$ac_cv_group_kmem |
---|
4630 | fi |
---|
4631 | |
---|
4632 | |
---|
4633 | # Check out the wait reality. |
---|
4634 | for ac_hdr in sys/wait.h |
---|
4635 | do |
---|
4636 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4637 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4638 | echo "configure:4639: checking for $ac_hdr" >&5 |
---|
4639 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4640 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4641 | else |
---|
4642 | cat > conftest.$ac_ext <<EOF |
---|
4643 | #line 4644 "configure" |
---|
4644 | #include "confdefs.h" |
---|
4645 | #include <$ac_hdr> |
---|
4646 | EOF |
---|
4647 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4648 | { (eval echo configure:4649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4649 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4650 | if test -z "$ac_err"; then |
---|
4651 | rm -rf conftest* |
---|
4652 | eval "ac_cv_header_$ac_safe=yes" |
---|
4653 | else |
---|
4654 | echo "$ac_err" >&5 |
---|
4655 | echo "configure: failed program was:" >&5 |
---|
4656 | cat conftest.$ac_ext >&5 |
---|
4657 | rm -rf conftest* |
---|
4658 | eval "ac_cv_header_$ac_safe=no" |
---|
4659 | fi |
---|
4660 | rm -f conftest* |
---|
4661 | fi |
---|
4662 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4663 | echo "$ac_t""yes" 1>&6 |
---|
4664 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4665 | cat >> confdefs.h <<EOF |
---|
4666 | #define $ac_tr_hdr 1 |
---|
4667 | EOF |
---|
4668 | |
---|
4669 | else |
---|
4670 | echo "$ac_t""no" 1>&6 |
---|
4671 | fi |
---|
4672 | done |
---|
4673 | |
---|
4674 | for ac_func in waitpid wait3 |
---|
4675 | do |
---|
4676 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4677 | echo "configure:4678: checking for $ac_func" >&5 |
---|
4678 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4679 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4680 | else |
---|
4681 | cat > conftest.$ac_ext <<EOF |
---|
4682 | #line 4683 "configure" |
---|
4683 | #include "confdefs.h" |
---|
4684 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4685 | which can conflict with char $ac_func(); below. */ |
---|
4686 | #include <assert.h> |
---|
4687 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4688 | /* We use char because int might match the return type of a gcc2 |
---|
4689 | builtin and then its argument prototype would still apply. */ |
---|
4690 | char $ac_func(); |
---|
4691 | |
---|
4692 | int main() { |
---|
4693 | |
---|
4694 | /* The GNU C library defines this for functions which it implements |
---|
4695 | to always fail with ENOSYS. Some functions are actually named |
---|
4696 | something starting with __ and the normal name is an alias. */ |
---|
4697 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4698 | choke me |
---|
4699 | #else |
---|
4700 | $ac_func(); |
---|
4701 | #endif |
---|
4702 | |
---|
4703 | ; return 0; } |
---|
4704 | EOF |
---|
4705 | if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4706 | rm -rf conftest* |
---|
4707 | eval "ac_cv_func_$ac_func=yes" |
---|
4708 | else |
---|
4709 | echo "configure: failed program was:" >&5 |
---|
4710 | cat conftest.$ac_ext >&5 |
---|
4711 | rm -rf conftest* |
---|
4712 | eval "ac_cv_func_$ac_func=no" |
---|
4713 | fi |
---|
4714 | rm -f conftest* |
---|
4715 | fi |
---|
4716 | |
---|
4717 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4718 | echo "$ac_t""yes" 1>&6 |
---|
4719 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4720 | cat >> confdefs.h <<EOF |
---|
4721 | #define $ac_tr_func 1 |
---|
4722 | EOF |
---|
4723 | |
---|
4724 | else |
---|
4725 | echo "$ac_t""no" 1>&6 |
---|
4726 | fi |
---|
4727 | done |
---|
4728 | |
---|
4729 | echo $ac_n "checking for union wait""... $ac_c" 1>&6 |
---|
4730 | echo "configure:4731: checking for union wait" >&5 |
---|
4731 | if eval "test \"`echo '$''{'make_cv_union_wait'+set}'`\" = set"; then |
---|
4732 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4733 | else |
---|
4734 | cat > conftest.$ac_ext <<EOF |
---|
4735 | #line 4736 "configure" |
---|
4736 | #include "confdefs.h" |
---|
4737 | #include <sys/types.h> |
---|
4738 | #include <sys/wait.h> |
---|
4739 | int main() { |
---|
4740 | union wait status; int pid; pid = wait (&status); |
---|
4741 | #ifdef WEXITSTATUS |
---|
4742 | /* Some POSIXoid systems have both the new-style macros and the old |
---|
4743 | union wait type, and they do not work together. If union wait |
---|
4744 | conflicts with WEXITSTATUS et al, we don't want to use it at all. */ |
---|
4745 | if (WEXITSTATUS (status) != 0) pid = -1; |
---|
4746 | #ifdef WTERMSIG |
---|
4747 | /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */ |
---|
4748 | -- blow chunks here -- |
---|
4749 | #endif |
---|
4750 | #endif |
---|
4751 | #ifdef HAVE_WAITPID |
---|
4752 | /* Make sure union wait works with waitpid. */ |
---|
4753 | pid = waitpid (-1, &status, 0); |
---|
4754 | #endif |
---|
4755 | |
---|
4756 | ; return 0; } |
---|
4757 | EOF |
---|
4758 | if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4759 | rm -rf conftest* |
---|
4760 | make_cv_union_wait=yes |
---|
4761 | else |
---|
4762 | echo "configure: failed program was:" >&5 |
---|
4763 | cat conftest.$ac_ext >&5 |
---|
4764 | rm -rf conftest* |
---|
4765 | make_cv_union_wait=no |
---|
4766 | fi |
---|
4767 | rm -f conftest* |
---|
4768 | fi |
---|
4769 | |
---|
4770 | if test "$make_cv_union_wait" = yes; then |
---|
4771 | cat >> confdefs.h <<\EOF |
---|
4772 | #define HAVE_UNION_WAIT 1 |
---|
4773 | EOF |
---|
4774 | |
---|
4775 | fi |
---|
4776 | echo "$ac_t""$make_cv_union_wait" 1>&6 |
---|
4777 | |
---|
4778 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
---|
4779 | echo "configure:4780: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
---|
4780 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
---|
4781 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4782 | else |
---|
4783 | cat > conftest.$ac_ext <<EOF |
---|
4784 | #line 4785 "configure" |
---|
4785 | #include "confdefs.h" |
---|
4786 | #include <sys/types.h> |
---|
4787 | #include <signal.h> |
---|
4788 | /* NetBSD declares sys_siglist in unistd.h. */ |
---|
4789 | #ifdef HAVE_UNISTD_H |
---|
4790 | #include <unistd.h> |
---|
4791 | #endif |
---|
4792 | int main() { |
---|
4793 | char *msg = *(sys_siglist + 1); |
---|
4794 | ; return 0; } |
---|
4795 | EOF |
---|
4796 | if { (eval echo configure:4797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4797 | rm -rf conftest* |
---|
4798 | ac_cv_decl_sys_siglist=yes |
---|
4799 | else |
---|
4800 | echo "configure: failed program was:" >&5 |
---|
4801 | cat conftest.$ac_ext >&5 |
---|
4802 | rm -rf conftest* |
---|
4803 | ac_cv_decl_sys_siglist=no |
---|
4804 | fi |
---|
4805 | rm -f conftest* |
---|
4806 | fi |
---|
4807 | |
---|
4808 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 |
---|
4809 | if test $ac_cv_decl_sys_siglist = yes; then |
---|
4810 | cat >> confdefs.h <<\EOF |
---|
4811 | #define SYS_SIGLIST_DECLARED 1 |
---|
4812 | EOF |
---|
4813 | |
---|
4814 | fi |
---|
4815 | |
---|
4816 | |
---|
4817 | # The presence of the following is not meant to imply |
---|
4818 | # that make necessarily works on those systems. |
---|
4819 | |
---|
4820 | echo $ac_n "checking for library containing getpwnam""... $ac_c" 1>&6 |
---|
4821 | echo "configure:4822: checking for library containing getpwnam" >&5 |
---|
4822 | if eval "test \"`echo '$''{'ac_cv_search_getpwnam'+set}'`\" = set"; then |
---|
4823 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4824 | else |
---|
4825 | ac_func_search_save_LIBS="$LIBS" |
---|
4826 | ac_cv_search_getpwnam="no" |
---|
4827 | cat > conftest.$ac_ext <<EOF |
---|
4828 | #line 4829 "configure" |
---|
4829 | #include "confdefs.h" |
---|
4830 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4831 | /* We use char because int might match the return type of a gcc2 |
---|
4832 | builtin and then its argument prototype would still apply. */ |
---|
4833 | char getpwnam(); |
---|
4834 | |
---|
4835 | int main() { |
---|
4836 | getpwnam() |
---|
4837 | ; return 0; } |
---|
4838 | EOF |
---|
4839 | if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4840 | rm -rf conftest* |
---|
4841 | ac_cv_search_getpwnam="none required" |
---|
4842 | else |
---|
4843 | echo "configure: failed program was:" >&5 |
---|
4844 | cat conftest.$ac_ext >&5 |
---|
4845 | fi |
---|
4846 | rm -f conftest* |
---|
4847 | test "$ac_cv_search_getpwnam" = "no" && for i in sun; do |
---|
4848 | LIBS="-l$i $ac_func_search_save_LIBS" |
---|
4849 | cat > conftest.$ac_ext <<EOF |
---|
4850 | #line 4851 "configure" |
---|
4851 | #include "confdefs.h" |
---|
4852 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4853 | /* We use char because int might match the return type of a gcc2 |
---|
4854 | builtin and then its argument prototype would still apply. */ |
---|
4855 | char getpwnam(); |
---|
4856 | |
---|
4857 | int main() { |
---|
4858 | getpwnam() |
---|
4859 | ; return 0; } |
---|
4860 | EOF |
---|
4861 | if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4862 | rm -rf conftest* |
---|
4863 | ac_cv_search_getpwnam="-l$i" |
---|
4864 | break |
---|
4865 | else |
---|
4866 | echo "configure: failed program was:" >&5 |
---|
4867 | cat conftest.$ac_ext >&5 |
---|
4868 | fi |
---|
4869 | rm -f conftest* |
---|
4870 | done |
---|
4871 | LIBS="$ac_func_search_save_LIBS" |
---|
4872 | fi |
---|
4873 | |
---|
4874 | echo "$ac_t""$ac_cv_search_getpwnam" 1>&6 |
---|
4875 | if test "$ac_cv_search_getpwnam" != "no"; then |
---|
4876 | test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS" |
---|
4877 | |
---|
4878 | else : |
---|
4879 | |
---|
4880 | fi |
---|
4881 | |
---|
4882 | REMOTE=stub |
---|
4883 | make_try_customs=no |
---|
4884 | # Check whether --with-customs or --without-customs was given. |
---|
4885 | if test "${with_customs+set}" = set; then |
---|
4886 | withval="$with_customs" |
---|
4887 | case "$withval" in |
---|
4888 | n|no) ;; |
---|
4889 | *) make_cppflags="$CPPFLAGS" |
---|
4890 | case "$withval" in |
---|
4891 | y|ye|yes) ;; |
---|
4892 | *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs" |
---|
4893 | make_ldflags="$LDFLAGS -L$with_customs/lib" ;; |
---|
4894 | esac |
---|
4895 | |
---|
4896 | cf_test_netlibs=no |
---|
4897 | echo $ac_n "checking for network libraries""... $ac_c" 1>&6 |
---|
4898 | echo "configure:4899: checking for network libraries" >&5 |
---|
4899 | if eval "test \"`echo '$''{'cf_cv_netlibs'+set}'`\" = set"; then |
---|
4900 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4901 | else |
---|
4902 | |
---|
4903 | echo "$ac_t""working..." 1>&6 |
---|
4904 | cf_cv_netlibs="" |
---|
4905 | cf_test_netlibs=yes |
---|
4906 | for ac_func in gethostname |
---|
4907 | do |
---|
4908 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4909 | echo "configure:4910: checking for $ac_func" >&5 |
---|
4910 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4911 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4912 | else |
---|
4913 | cat > conftest.$ac_ext <<EOF |
---|
4914 | #line 4915 "configure" |
---|
4915 | #include "confdefs.h" |
---|
4916 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4917 | which can conflict with char $ac_func(); below. */ |
---|
4918 | #include <assert.h> |
---|
4919 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4920 | /* We use char because int might match the return type of a gcc2 |
---|
4921 | builtin and then its argument prototype would still apply. */ |
---|
4922 | char $ac_func(); |
---|
4923 | |
---|
4924 | int main() { |
---|
4925 | |
---|
4926 | /* The GNU C library defines this for functions which it implements |
---|
4927 | to always fail with ENOSYS. Some functions are actually named |
---|
4928 | something starting with __ and the normal name is an alias. */ |
---|
4929 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4930 | choke me |
---|
4931 | #else |
---|
4932 | $ac_func(); |
---|
4933 | #endif |
---|
4934 | |
---|
4935 | ; return 0; } |
---|
4936 | EOF |
---|
4937 | if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4938 | rm -rf conftest* |
---|
4939 | eval "ac_cv_func_$ac_func=yes" |
---|
4940 | else |
---|
4941 | echo "configure: failed program was:" >&5 |
---|
4942 | cat conftest.$ac_ext >&5 |
---|
4943 | rm -rf conftest* |
---|
4944 | eval "ac_cv_func_$ac_func=no" |
---|
4945 | fi |
---|
4946 | rm -f conftest* |
---|
4947 | fi |
---|
4948 | |
---|
4949 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4950 | echo "$ac_t""yes" 1>&6 |
---|
4951 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4952 | cat >> confdefs.h <<EOF |
---|
4953 | #define $ac_tr_func 1 |
---|
4954 | EOF |
---|
4955 | |
---|
4956 | else |
---|
4957 | echo "$ac_t""no" 1>&6 |
---|
4958 | |
---|
4959 | echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6 |
---|
4960 | echo "configure:4961: checking for gethostname in -lnsl" >&5 |
---|
4961 | ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'` |
---|
4962 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4963 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4964 | else |
---|
4965 | ac_save_LIBS="$LIBS" |
---|
4966 | LIBS="-lnsl $cf_cv_netlibs $LIBS" |
---|
4967 | cat > conftest.$ac_ext <<EOF |
---|
4968 | #line 4969 "configure" |
---|
4969 | #include "confdefs.h" |
---|
4970 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4971 | /* We use char because int might match the return type of a gcc2 |
---|
4972 | builtin and then its argument prototype would still apply. */ |
---|
4973 | char gethostname(); |
---|
4974 | |
---|
4975 | int main() { |
---|
4976 | gethostname() |
---|
4977 | ; return 0; } |
---|
4978 | EOF |
---|
4979 | if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4980 | rm -rf conftest* |
---|
4981 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4982 | else |
---|
4983 | echo "configure: failed program was:" >&5 |
---|
4984 | cat conftest.$ac_ext >&5 |
---|
4985 | rm -rf conftest* |
---|
4986 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4987 | fi |
---|
4988 | rm -f conftest* |
---|
4989 | LIBS="$ac_save_LIBS" |
---|
4990 | |
---|
4991 | fi |
---|
4992 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4993 | echo "$ac_t""yes" 1>&6 |
---|
4994 | |
---|
4995 | |
---|
4996 | cf_tr_func=`echo gethostname | tr 'a-z' 'A-Z'` |
---|
4997 | |
---|
4998 | cat >> confdefs.h <<EOF |
---|
4999 | #define HAVE_$cf_tr_func 1 |
---|
5000 | EOF |
---|
5001 | |
---|
5002 | ac_cv_func_gethostname=yes |
---|
5003 | cf_cv_netlibs="-lnsl $cf_cv_netlibs" |
---|
5004 | else |
---|
5005 | echo "$ac_t""no" 1>&6 |
---|
5006 | |
---|
5007 | ac_cv_func_gethostname=unknown |
---|
5008 | unset ac_cv_func_gethostname 2>/dev/null |
---|
5009 | |
---|
5010 | |
---|
5011 | echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6 |
---|
5012 | echo "configure:5013: checking for gethostname in -lsocket" >&5 |
---|
5013 | ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'` |
---|
5014 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5015 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5016 | else |
---|
5017 | ac_save_LIBS="$LIBS" |
---|
5018 | LIBS="-lsocket $cf_cv_netlibs $LIBS" |
---|
5019 | cat > conftest.$ac_ext <<EOF |
---|
5020 | #line 5021 "configure" |
---|
5021 | #include "confdefs.h" |
---|
5022 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5023 | /* We use char because int might match the return type of a gcc2 |
---|
5024 | builtin and then its argument prototype would still apply. */ |
---|
5025 | char gethostname(); |
---|
5026 | |
---|
5027 | int main() { |
---|
5028 | gethostname() |
---|
5029 | ; return 0; } |
---|
5030 | EOF |
---|
5031 | if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5032 | rm -rf conftest* |
---|
5033 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5034 | else |
---|
5035 | echo "configure: failed program was:" >&5 |
---|
5036 | cat conftest.$ac_ext >&5 |
---|
5037 | rm -rf conftest* |
---|
5038 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5039 | fi |
---|
5040 | rm -f conftest* |
---|
5041 | LIBS="$ac_save_LIBS" |
---|
5042 | |
---|
5043 | fi |
---|
5044 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5045 | echo "$ac_t""yes" 1>&6 |
---|
5046 | |
---|
5047 | |
---|
5048 | cf_tr_func=`echo gethostname | tr 'a-z' 'A-Z'` |
---|
5049 | |
---|
5050 | cat >> confdefs.h <<EOF |
---|
5051 | #define HAVE_$cf_tr_func 1 |
---|
5052 | EOF |
---|
5053 | |
---|
5054 | ac_cv_func_gethostname=yes |
---|
5055 | cf_cv_netlibs="-lsocket $cf_cv_netlibs" |
---|
5056 | else |
---|
5057 | echo "$ac_t""no" 1>&6 |
---|
5058 | |
---|
5059 | ac_cv_func_gethostname=unknown |
---|
5060 | unset ac_cv_func_gethostname 2>/dev/null |
---|
5061 | |
---|
5062 | fi |
---|
5063 | |
---|
5064 | |
---|
5065 | fi |
---|
5066 | |
---|
5067 | |
---|
5068 | fi |
---|
5069 | done |
---|
5070 | |
---|
5071 | # |
---|
5072 | # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but |
---|
5073 | # I don't know the entrypoints - 97/7/22 TD |
---|
5074 | echo $ac_n "checking for main in -linet""... $ac_c" 1>&6 |
---|
5075 | echo "configure:5076: checking for main in -linet" >&5 |
---|
5076 | ac_lib_var=`echo inet'_'main | sed 'y%./+-%__p_%'` |
---|
5077 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5078 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5079 | else |
---|
5080 | ac_save_LIBS="$LIBS" |
---|
5081 | LIBS="-linet $LIBS" |
---|
5082 | cat > conftest.$ac_ext <<EOF |
---|
5083 | #line 5084 "configure" |
---|
5084 | #include "confdefs.h" |
---|
5085 | |
---|
5086 | int main() { |
---|
5087 | main() |
---|
5088 | ; return 0; } |
---|
5089 | EOF |
---|
5090 | if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5091 | rm -rf conftest* |
---|
5092 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5093 | else |
---|
5094 | echo "configure: failed program was:" >&5 |
---|
5095 | cat conftest.$ac_ext >&5 |
---|
5096 | rm -rf conftest* |
---|
5097 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5098 | fi |
---|
5099 | rm -f conftest* |
---|
5100 | LIBS="$ac_save_LIBS" |
---|
5101 | |
---|
5102 | fi |
---|
5103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5104 | echo "$ac_t""yes" 1>&6 |
---|
5105 | cf_cv_netlibs="-linet $cf_cv_netlibs" |
---|
5106 | else |
---|
5107 | echo "$ac_t""no" 1>&6 |
---|
5108 | fi |
---|
5109 | |
---|
5110 | # |
---|
5111 | if test "$ac_cv_func_lsocket" != no ; then |
---|
5112 | for ac_func in socket |
---|
5113 | do |
---|
5114 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5115 | echo "configure:5116: checking for $ac_func" >&5 |
---|
5116 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5117 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5118 | else |
---|
5119 | cat > conftest.$ac_ext <<EOF |
---|
5120 | #line 5121 "configure" |
---|
5121 | #include "confdefs.h" |
---|
5122 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5123 | which can conflict with char $ac_func(); below. */ |
---|
5124 | #include <assert.h> |
---|
5125 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5126 | /* We use char because int might match the return type of a gcc2 |
---|
5127 | builtin and then its argument prototype would still apply. */ |
---|
5128 | char $ac_func(); |
---|
5129 | |
---|
5130 | int main() { |
---|
5131 | |
---|
5132 | /* The GNU C library defines this for functions which it implements |
---|
5133 | to always fail with ENOSYS. Some functions are actually named |
---|
5134 | something starting with __ and the normal name is an alias. */ |
---|
5135 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5136 | choke me |
---|
5137 | #else |
---|
5138 | $ac_func(); |
---|
5139 | #endif |
---|
5140 | |
---|
5141 | ; return 0; } |
---|
5142 | EOF |
---|
5143 | if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5144 | rm -rf conftest* |
---|
5145 | eval "ac_cv_func_$ac_func=yes" |
---|
5146 | else |
---|
5147 | echo "configure: failed program was:" >&5 |
---|
5148 | cat conftest.$ac_ext >&5 |
---|
5149 | rm -rf conftest* |
---|
5150 | eval "ac_cv_func_$ac_func=no" |
---|
5151 | fi |
---|
5152 | rm -f conftest* |
---|
5153 | fi |
---|
5154 | |
---|
5155 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5156 | echo "$ac_t""yes" 1>&6 |
---|
5157 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5158 | cat >> confdefs.h <<EOF |
---|
5159 | #define $ac_tr_func 1 |
---|
5160 | EOF |
---|
5161 | |
---|
5162 | else |
---|
5163 | echo "$ac_t""no" 1>&6 |
---|
5164 | |
---|
5165 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
---|
5166 | echo "configure:5167: checking for socket in -lsocket" >&5 |
---|
5167 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
---|
5168 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5169 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5170 | else |
---|
5171 | ac_save_LIBS="$LIBS" |
---|
5172 | LIBS="-lsocket $cf_cv_netlibs $LIBS" |
---|
5173 | cat > conftest.$ac_ext <<EOF |
---|
5174 | #line 5175 "configure" |
---|
5175 | #include "confdefs.h" |
---|
5176 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5177 | /* We use char because int might match the return type of a gcc2 |
---|
5178 | builtin and then its argument prototype would still apply. */ |
---|
5179 | char socket(); |
---|
5180 | |
---|
5181 | int main() { |
---|
5182 | socket() |
---|
5183 | ; return 0; } |
---|
5184 | EOF |
---|
5185 | if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5186 | rm -rf conftest* |
---|
5187 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5188 | else |
---|
5189 | echo "configure: failed program was:" >&5 |
---|
5190 | cat conftest.$ac_ext >&5 |
---|
5191 | rm -rf conftest* |
---|
5192 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5193 | fi |
---|
5194 | rm -f conftest* |
---|
5195 | LIBS="$ac_save_LIBS" |
---|
5196 | |
---|
5197 | fi |
---|
5198 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5199 | echo "$ac_t""yes" 1>&6 |
---|
5200 | |
---|
5201 | |
---|
5202 | cf_tr_func=`echo socket | tr 'a-z' 'A-Z'` |
---|
5203 | |
---|
5204 | cat >> confdefs.h <<EOF |
---|
5205 | #define HAVE_$cf_tr_func 1 |
---|
5206 | EOF |
---|
5207 | |
---|
5208 | ac_cv_func_socket=yes |
---|
5209 | cf_cv_netlibs="-lsocket $cf_cv_netlibs" |
---|
5210 | else |
---|
5211 | echo "$ac_t""no" 1>&6 |
---|
5212 | |
---|
5213 | ac_cv_func_socket=unknown |
---|
5214 | unset ac_cv_func_socket 2>/dev/null |
---|
5215 | |
---|
5216 | |
---|
5217 | echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 |
---|
5218 | echo "configure:5219: checking for socket in -lbsd" >&5 |
---|
5219 | ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` |
---|
5220 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5221 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5222 | else |
---|
5223 | ac_save_LIBS="$LIBS" |
---|
5224 | LIBS="-lbsd $cf_cv_netlibs $LIBS" |
---|
5225 | cat > conftest.$ac_ext <<EOF |
---|
5226 | #line 5227 "configure" |
---|
5227 | #include "confdefs.h" |
---|
5228 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5229 | /* We use char because int might match the return type of a gcc2 |
---|
5230 | builtin and then its argument prototype would still apply. */ |
---|
5231 | char socket(); |
---|
5232 | |
---|
5233 | int main() { |
---|
5234 | socket() |
---|
5235 | ; return 0; } |
---|
5236 | EOF |
---|
5237 | if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5238 | rm -rf conftest* |
---|
5239 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5240 | else |
---|
5241 | echo "configure: failed program was:" >&5 |
---|
5242 | cat conftest.$ac_ext >&5 |
---|
5243 | rm -rf conftest* |
---|
5244 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5245 | fi |
---|
5246 | rm -f conftest* |
---|
5247 | LIBS="$ac_save_LIBS" |
---|
5248 | |
---|
5249 | fi |
---|
5250 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5251 | echo "$ac_t""yes" 1>&6 |
---|
5252 | |
---|
5253 | |
---|
5254 | cf_tr_func=`echo socket | tr 'a-z' 'A-Z'` |
---|
5255 | |
---|
5256 | cat >> confdefs.h <<EOF |
---|
5257 | #define HAVE_$cf_tr_func 1 |
---|
5258 | EOF |
---|
5259 | |
---|
5260 | ac_cv_func_socket=yes |
---|
5261 | cf_cv_netlibs="-lbsd $cf_cv_netlibs" |
---|
5262 | else |
---|
5263 | echo "$ac_t""no" 1>&6 |
---|
5264 | |
---|
5265 | ac_cv_func_socket=unknown |
---|
5266 | unset ac_cv_func_socket 2>/dev/null |
---|
5267 | |
---|
5268 | fi |
---|
5269 | |
---|
5270 | |
---|
5271 | fi |
---|
5272 | |
---|
5273 | |
---|
5274 | fi |
---|
5275 | done |
---|
5276 | |
---|
5277 | fi |
---|
5278 | # |
---|
5279 | for ac_func in gethostbyname |
---|
5280 | do |
---|
5281 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5282 | echo "configure:5283: checking for $ac_func" >&5 |
---|
5283 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5284 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5285 | else |
---|
5286 | cat > conftest.$ac_ext <<EOF |
---|
5287 | #line 5288 "configure" |
---|
5288 | #include "confdefs.h" |
---|
5289 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5290 | which can conflict with char $ac_func(); below. */ |
---|
5291 | #include <assert.h> |
---|
5292 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5293 | /* We use char because int might match the return type of a gcc2 |
---|
5294 | builtin and then its argument prototype would still apply. */ |
---|
5295 | char $ac_func(); |
---|
5296 | |
---|
5297 | int main() { |
---|
5298 | |
---|
5299 | /* The GNU C library defines this for functions which it implements |
---|
5300 | to always fail with ENOSYS. Some functions are actually named |
---|
5301 | something starting with __ and the normal name is an alias. */ |
---|
5302 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5303 | choke me |
---|
5304 | #else |
---|
5305 | $ac_func(); |
---|
5306 | #endif |
---|
5307 | |
---|
5308 | ; return 0; } |
---|
5309 | EOF |
---|
5310 | if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5311 | rm -rf conftest* |
---|
5312 | eval "ac_cv_func_$ac_func=yes" |
---|
5313 | else |
---|
5314 | echo "configure: failed program was:" >&5 |
---|
5315 | cat conftest.$ac_ext >&5 |
---|
5316 | rm -rf conftest* |
---|
5317 | eval "ac_cv_func_$ac_func=no" |
---|
5318 | fi |
---|
5319 | rm -f conftest* |
---|
5320 | fi |
---|
5321 | |
---|
5322 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5323 | echo "$ac_t""yes" 1>&6 |
---|
5324 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5325 | cat >> confdefs.h <<EOF |
---|
5326 | #define $ac_tr_func 1 |
---|
5327 | EOF |
---|
5328 | |
---|
5329 | else |
---|
5330 | echo "$ac_t""no" 1>&6 |
---|
5331 | |
---|
5332 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
5333 | echo "configure:5334: checking for gethostbyname in -lnsl" >&5 |
---|
5334 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
5335 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5336 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5337 | else |
---|
5338 | ac_save_LIBS="$LIBS" |
---|
5339 | LIBS="-lnsl $cf_cv_netlibs $LIBS" |
---|
5340 | cat > conftest.$ac_ext <<EOF |
---|
5341 | #line 5342 "configure" |
---|
5342 | #include "confdefs.h" |
---|
5343 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5344 | /* We use char because int might match the return type of a gcc2 |
---|
5345 | builtin and then its argument prototype would still apply. */ |
---|
5346 | char gethostbyname(); |
---|
5347 | |
---|
5348 | int main() { |
---|
5349 | gethostbyname() |
---|
5350 | ; return 0; } |
---|
5351 | EOF |
---|
5352 | if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5353 | rm -rf conftest* |
---|
5354 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5355 | else |
---|
5356 | echo "configure: failed program was:" >&5 |
---|
5357 | cat conftest.$ac_ext >&5 |
---|
5358 | rm -rf conftest* |
---|
5359 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5360 | fi |
---|
5361 | rm -f conftest* |
---|
5362 | LIBS="$ac_save_LIBS" |
---|
5363 | |
---|
5364 | fi |
---|
5365 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5366 | echo "$ac_t""yes" 1>&6 |
---|
5367 | |
---|
5368 | |
---|
5369 | cf_tr_func=`echo gethostbyname | tr 'a-z' 'A-Z'` |
---|
5370 | |
---|
5371 | cat >> confdefs.h <<EOF |
---|
5372 | #define HAVE_$cf_tr_func 1 |
---|
5373 | EOF |
---|
5374 | |
---|
5375 | ac_cv_func_gethostbyname=yes |
---|
5376 | cf_cv_netlibs="-lnsl $cf_cv_netlibs" |
---|
5377 | else |
---|
5378 | echo "$ac_t""no" 1>&6 |
---|
5379 | |
---|
5380 | ac_cv_func_gethostbyname=unknown |
---|
5381 | unset ac_cv_func_gethostbyname 2>/dev/null |
---|
5382 | |
---|
5383 | fi |
---|
5384 | |
---|
5385 | |
---|
5386 | fi |
---|
5387 | done |
---|
5388 | |
---|
5389 | # |
---|
5390 | for ac_func in strcasecmp |
---|
5391 | do |
---|
5392 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5393 | echo "configure:5394: checking for $ac_func" >&5 |
---|
5394 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5395 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5396 | else |
---|
5397 | cat > conftest.$ac_ext <<EOF |
---|
5398 | #line 5399 "configure" |
---|
5399 | #include "confdefs.h" |
---|
5400 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5401 | which can conflict with char $ac_func(); below. */ |
---|
5402 | #include <assert.h> |
---|
5403 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5404 | /* We use char because int might match the return type of a gcc2 |
---|
5405 | builtin and then its argument prototype would still apply. */ |
---|
5406 | char $ac_func(); |
---|
5407 | |
---|
5408 | int main() { |
---|
5409 | |
---|
5410 | /* The GNU C library defines this for functions which it implements |
---|
5411 | to always fail with ENOSYS. Some functions are actually named |
---|
5412 | something starting with __ and the normal name is an alias. */ |
---|
5413 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5414 | choke me |
---|
5415 | #else |
---|
5416 | $ac_func(); |
---|
5417 | #endif |
---|
5418 | |
---|
5419 | ; return 0; } |
---|
5420 | EOF |
---|
5421 | if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5422 | rm -rf conftest* |
---|
5423 | eval "ac_cv_func_$ac_func=yes" |
---|
5424 | else |
---|
5425 | echo "configure: failed program was:" >&5 |
---|
5426 | cat conftest.$ac_ext >&5 |
---|
5427 | rm -rf conftest* |
---|
5428 | eval "ac_cv_func_$ac_func=no" |
---|
5429 | fi |
---|
5430 | rm -f conftest* |
---|
5431 | fi |
---|
5432 | |
---|
5433 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5434 | echo "$ac_t""yes" 1>&6 |
---|
5435 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5436 | cat >> confdefs.h <<EOF |
---|
5437 | #define $ac_tr_func 1 |
---|
5438 | EOF |
---|
5439 | |
---|
5440 | else |
---|
5441 | echo "$ac_t""no" 1>&6 |
---|
5442 | |
---|
5443 | echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6 |
---|
5444 | echo "configure:5445: checking for strcasecmp in -lresolv" >&5 |
---|
5445 | ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'` |
---|
5446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5447 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5448 | else |
---|
5449 | ac_save_LIBS="$LIBS" |
---|
5450 | LIBS="-lresolv $cf_cv_netlibs $LIBS" |
---|
5451 | cat > conftest.$ac_ext <<EOF |
---|
5452 | #line 5453 "configure" |
---|
5453 | #include "confdefs.h" |
---|
5454 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5455 | /* We use char because int might match the return type of a gcc2 |
---|
5456 | builtin and then its argument prototype would still apply. */ |
---|
5457 | char strcasecmp(); |
---|
5458 | |
---|
5459 | int main() { |
---|
5460 | strcasecmp() |
---|
5461 | ; return 0; } |
---|
5462 | EOF |
---|
5463 | if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5464 | rm -rf conftest* |
---|
5465 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5466 | else |
---|
5467 | echo "configure: failed program was:" >&5 |
---|
5468 | cat conftest.$ac_ext >&5 |
---|
5469 | rm -rf conftest* |
---|
5470 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5471 | fi |
---|
5472 | rm -f conftest* |
---|
5473 | LIBS="$ac_save_LIBS" |
---|
5474 | |
---|
5475 | fi |
---|
5476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5477 | echo "$ac_t""yes" 1>&6 |
---|
5478 | |
---|
5479 | |
---|
5480 | cf_tr_func=`echo strcasecmp | tr 'a-z' 'A-Z'` |
---|
5481 | |
---|
5482 | cat >> confdefs.h <<EOF |
---|
5483 | #define HAVE_$cf_tr_func 1 |
---|
5484 | EOF |
---|
5485 | |
---|
5486 | ac_cv_func_strcasecmp=yes |
---|
5487 | cf_cv_netlibs="-lresolv $cf_cv_netlibs" |
---|
5488 | else |
---|
5489 | echo "$ac_t""no" 1>&6 |
---|
5490 | |
---|
5491 | ac_cv_func_strcasecmp=unknown |
---|
5492 | unset ac_cv_func_strcasecmp 2>/dev/null |
---|
5493 | |
---|
5494 | fi |
---|
5495 | |
---|
5496 | |
---|
5497 | fi |
---|
5498 | done |
---|
5499 | |
---|
5500 | |
---|
5501 | fi |
---|
5502 | |
---|
5503 | LIBS="$LIBS $cf_cv_netlibs" |
---|
5504 | test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6 |
---|
5505 | |
---|
5506 | ac_safe=`echo "customs.h" | sed 'y%./+-%__p_%'` |
---|
5507 | echo $ac_n "checking for customs.h""... $ac_c" 1>&6 |
---|
5508 | echo "configure:5509: checking for customs.h" >&5 |
---|
5509 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5510 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5511 | else |
---|
5512 | cat > conftest.$ac_ext <<EOF |
---|
5513 | #line 5514 "configure" |
---|
5514 | #include "confdefs.h" |
---|
5515 | #include <customs.h> |
---|
5516 | EOF |
---|
5517 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5518 | { (eval echo configure:5519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5519 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5520 | if test -z "$ac_err"; then |
---|
5521 | rm -rf conftest* |
---|
5522 | eval "ac_cv_header_$ac_safe=yes" |
---|
5523 | else |
---|
5524 | echo "$ac_err" >&5 |
---|
5525 | echo "configure: failed program was:" >&5 |
---|
5526 | cat conftest.$ac_ext >&5 |
---|
5527 | rm -rf conftest* |
---|
5528 | eval "ac_cv_header_$ac_safe=no" |
---|
5529 | fi |
---|
5530 | rm -f conftest* |
---|
5531 | fi |
---|
5532 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5533 | echo "$ac_t""yes" 1>&6 |
---|
5534 | REMOTE=cstms |
---|
5535 | LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags" |
---|
5536 | else |
---|
5537 | echo "$ac_t""no" 1>&6 |
---|
5538 | with_customs=no |
---|
5539 | CPPFLAGS="$make_cppflags" make_badcust=yes |
---|
5540 | fi |
---|
5541 | |
---|
5542 | ;; |
---|
5543 | esac |
---|
5544 | fi |
---|
5545 | |
---|
5546 | |
---|
5547 | |
---|
5548 | # Check whether --enable-job-server or --disable-job-server was given. |
---|
5549 | if test "${enable_job_server+set}" = set; then |
---|
5550 | enableval="$enable_job_server" |
---|
5551 | make_cv_job_server="$enableval" user_job_server="$enableval" |
---|
5552 | else |
---|
5553 | make_cv_job_server="yes" |
---|
5554 | fi |
---|
5555 | |
---|
5556 | |
---|
5557 | has_wait_nohang=yes |
---|
5558 | case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in |
---|
5559 | no/no) has_wait_nohang=no ;; |
---|
5560 | esac |
---|
5561 | |
---|
5562 | case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$has_wait_nohang/$make_cv_job_server" in |
---|
5563 | yes/yes/yes/yes) cat >> confdefs.h <<\EOF |
---|
5564 | #define MAKE_JOBSERVER 1 |
---|
5565 | EOF |
---|
5566 | ;; |
---|
5567 | esac |
---|
5568 | |
---|
5569 | |
---|
5570 | # Check whether --enable-dmalloc or --disable-dmalloc was given. |
---|
5571 | if test "${enable_dmalloc+set}" = set; then |
---|
5572 | enableval="$enable_dmalloc" |
---|
5573 | make_cv_dmalloc="$enableval" |
---|
5574 | else |
---|
5575 | make_cv_dmalloc="no" |
---|
5576 | fi |
---|
5577 | |
---|
5578 | |
---|
5579 | case "$make_cv_dmalloc" in |
---|
5580 | yes) for ac_hdr in dmalloc.h |
---|
5581 | do |
---|
5582 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5583 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5584 | echo "configure:5585: checking for $ac_hdr" >&5 |
---|
5585 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5586 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5587 | else |
---|
5588 | cat > conftest.$ac_ext <<EOF |
---|
5589 | #line 5590 "configure" |
---|
5590 | #include "confdefs.h" |
---|
5591 | #include <$ac_hdr> |
---|
5592 | EOF |
---|
5593 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5594 | { (eval echo configure:5595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5595 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5596 | if test -z "$ac_err"; then |
---|
5597 | rm -rf conftest* |
---|
5598 | eval "ac_cv_header_$ac_safe=yes" |
---|
5599 | else |
---|
5600 | echo "$ac_err" >&5 |
---|
5601 | echo "configure: failed program was:" >&5 |
---|
5602 | cat conftest.$ac_ext >&5 |
---|
5603 | rm -rf conftest* |
---|
5604 | eval "ac_cv_header_$ac_safe=no" |
---|
5605 | fi |
---|
5606 | rm -f conftest* |
---|
5607 | fi |
---|
5608 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5609 | echo "$ac_t""yes" 1>&6 |
---|
5610 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5611 | cat >> confdefs.h <<EOF |
---|
5612 | #define $ac_tr_hdr 1 |
---|
5613 | EOF |
---|
5614 | |
---|
5615 | else |
---|
5616 | echo "$ac_t""no" 1>&6 |
---|
5617 | fi |
---|
5618 | done |
---|
5619 | |
---|
5620 | echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6 |
---|
5621 | echo "configure:5622: checking for dmalloc_shutdown in -ldmalloc" >&5 |
---|
5622 | ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'` |
---|
5623 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5624 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5625 | else |
---|
5626 | ac_save_LIBS="$LIBS" |
---|
5627 | LIBS="-ldmalloc $LIBS" |
---|
5628 | cat > conftest.$ac_ext <<EOF |
---|
5629 | #line 5630 "configure" |
---|
5630 | #include "confdefs.h" |
---|
5631 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5632 | /* We use char because int might match the return type of a gcc2 |
---|
5633 | builtin and then its argument prototype would still apply. */ |
---|
5634 | char dmalloc_shutdown(); |
---|
5635 | |
---|
5636 | int main() { |
---|
5637 | dmalloc_shutdown() |
---|
5638 | ; return 0; } |
---|
5639 | EOF |
---|
5640 | if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5641 | rm -rf conftest* |
---|
5642 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5643 | else |
---|
5644 | echo "configure: failed program was:" >&5 |
---|
5645 | cat conftest.$ac_ext >&5 |
---|
5646 | rm -rf conftest* |
---|
5647 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5648 | fi |
---|
5649 | rm -f conftest* |
---|
5650 | LIBS="$ac_save_LIBS" |
---|
5651 | |
---|
5652 | fi |
---|
5653 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5654 | echo "$ac_t""yes" 1>&6 |
---|
5655 | ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5656 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5657 | cat >> confdefs.h <<EOF |
---|
5658 | #define $ac_tr_lib 1 |
---|
5659 | EOF |
---|
5660 | |
---|
5661 | LIBS="-ldmalloc $LIBS" |
---|
5662 | |
---|
5663 | else |
---|
5664 | echo "$ac_t""no" 1>&6 |
---|
5665 | fi |
---|
5666 | |
---|
5667 | CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" ;; |
---|
5668 | esac |
---|
5669 | |
---|
5670 | echo $ac_n "checking for location of SCCS get command""... $ac_c" 1>&6 |
---|
5671 | echo "configure:5672: checking for location of SCCS get command" >&5 |
---|
5672 | if eval "test \"`echo '$''{'make_cv_path_sccs_get'+set}'`\" = set"; then |
---|
5673 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5674 | else |
---|
5675 | |
---|
5676 | if test -f /usr/sccs/get; then |
---|
5677 | make_cv_path_sccs_get=/usr/sccs/get |
---|
5678 | else |
---|
5679 | make_cv_path_sccs_get=get |
---|
5680 | fi |
---|
5681 | fi |
---|
5682 | |
---|
5683 | echo "$ac_t""$make_cv_path_sccs_get" 1>&6 |
---|
5684 | cat >> confdefs.h <<EOF |
---|
5685 | #define SCCS_GET "$make_cv_path_sccs_get" |
---|
5686 | EOF |
---|
5687 | |
---|
5688 | |
---|
5689 | ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later. |
---|
5690 | if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 && |
---|
5691 | test -f s.conftest; then |
---|
5692 | # We successfully created an SCCS file. |
---|
5693 | echo $ac_n "checking if SCCS get command understands -G""... $ac_c" 1>&6 |
---|
5694 | echo "configure:5695: checking if SCCS get command understands -G" >&5 |
---|
5695 | if eval "test \"`echo '$''{'make_cv_sys_get_minus_G'+set}'`\" = set"; then |
---|
5696 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5697 | else |
---|
5698 | |
---|
5699 | if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 && |
---|
5700 | test -f conftoast; then |
---|
5701 | make_cv_sys_get_minus_G=yes |
---|
5702 | else |
---|
5703 | make_cv_sys_get_minus_G=no |
---|
5704 | fi |
---|
5705 | fi |
---|
5706 | |
---|
5707 | echo "$ac_t""$make_cv_sys_get_minus_G" 1>&6 |
---|
5708 | case "$make_cv_sys_get_minus_G" in |
---|
5709 | yes) cat >> confdefs.h <<\EOF |
---|
5710 | #define SCCS_GET_MINUS_G 1 |
---|
5711 | EOF |
---|
5712 | ;; |
---|
5713 | esac |
---|
5714 | fi |
---|
5715 | rm -f s.conftest conftoast |
---|
5716 | |
---|
5717 | echo $ac_n "checking if system libc has GNU glob""... $ac_c" 1>&6 |
---|
5718 | echo "configure:5719: checking if system libc has GNU glob" >&5 |
---|
5719 | if eval "test \"`echo '$''{'make_cv_sys_gnu_glob'+set}'`\" = set"; then |
---|
5720 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5721 | else |
---|
5722 | |
---|
5723 | cat > conftest.$ac_ext <<EOF |
---|
5724 | #line 5725 "configure" |
---|
5725 | #include "confdefs.h" |
---|
5726 | |
---|
5727 | #include <features.h> |
---|
5728 | #include <glob.h> |
---|
5729 | #include <fnmatch.h> |
---|
5730 | |
---|
5731 | #define GLOB_INTERFACE_VERSION 1 |
---|
5732 | #if defined _LIBC || !defined __GNU_LIBRARY__ || __GNU_LIBRARY__ <= 1 |
---|
5733 | # error no gnu glob |
---|
5734 | #else |
---|
5735 | # include <gnu-versions.h> |
---|
5736 | # if _GNU_GLOB_INTERFACE_VERSION != GLOB_INTERFACE_VERSION |
---|
5737 | # error no gnu glob |
---|
5738 | # endif |
---|
5739 | #endif |
---|
5740 | |
---|
5741 | EOF |
---|
5742 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5743 | { (eval echo configure:5744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5744 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5745 | if test -z "$ac_err"; then |
---|
5746 | rm -rf conftest* |
---|
5747 | make_cv_sys_gnu_glob=yes |
---|
5748 | else |
---|
5749 | echo "$ac_err" >&5 |
---|
5750 | echo "configure: failed program was:" >&5 |
---|
5751 | cat conftest.$ac_ext >&5 |
---|
5752 | rm -rf conftest* |
---|
5753 | make_cv_sys_gnu_glob=no |
---|
5754 | fi |
---|
5755 | rm -f conftest* |
---|
5756 | fi |
---|
5757 | |
---|
5758 | case "$make_cv_sys_gnu_glob" in |
---|
5759 | yes) echo "$ac_t""yes; using local copy anyway" 1>&6 |
---|
5760 | GLOBDIR=glob |
---|
5761 | GLOBINC='-I$(srcdir)/glob' |
---|
5762 | GLOBLIB=glob/libglob.a |
---|
5763 | ;; |
---|
5764 | no) echo "$ac_t""no; using local copy" 1>&6 |
---|
5765 | GLOBDIR=glob |
---|
5766 | GLOBINC='-I$(srcdir)/glob' |
---|
5767 | GLOBLIB=glob/libglob.a |
---|
5768 | ;; |
---|
5769 | esac |
---|
5770 | |
---|
5771 | cat >> confdefs.h <<EOF |
---|
5772 | #define MAKE_HOST "$host" |
---|
5773 | EOF |
---|
5774 | |
---|
5775 | MAKE_HOST="$host" |
---|
5776 | |
---|
5777 | |
---|
5778 | MAINT_MAKEFILE=/dev/null |
---|
5779 | if test -r "$srcdir/maintMakefile"; then |
---|
5780 | MAINT_MAKEFILE="$srcdir/maintMakefile" |
---|
5781 | fi |
---|
5782 | |
---|
5783 | |
---|
5784 | trap '' 1 2 15 |
---|
5785 | cat > confcache <<\EOF |
---|
5786 | # This file is a shell script that caches the results of configure |
---|
5787 | # tests run on this system so they can be shared between configure |
---|
5788 | # scripts and configure runs. It is not useful on other systems. |
---|
5789 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
5790 | # |
---|
5791 | # By default, configure uses ./config.cache as the cache file, |
---|
5792 | # creating it if it does not exist already. You can give configure |
---|
5793 | # the --cache-file=FILE option to use a different cache file; that is |
---|
5794 | # what configure does when it calls configure scripts in |
---|
5795 | # subdirectories, so they share the cache. |
---|
5796 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
5797 | # config.status only pays attention to the cache file if you give it the |
---|
5798 | # --recheck option to rerun configure. |
---|
5799 | # |
---|
5800 | EOF |
---|
5801 | # The following way of writing the cache mishandles newlines in values, |
---|
5802 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5803 | # So, don't put newlines in cache variables' values. |
---|
5804 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5805 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5806 | (set) 2>&1 | |
---|
5807 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
5808 | *ac_space=\ *) |
---|
5809 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
5810 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
5811 | sed -n \ |
---|
5812 | -e "s/'/'\\\\''/g" \ |
---|
5813 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
5814 | ;; |
---|
5815 | *) |
---|
5816 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5817 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
5818 | ;; |
---|
5819 | esac >> confcache |
---|
5820 | if cmp -s $cache_file confcache; then |
---|
5821 | : |
---|
5822 | else |
---|
5823 | if test -w $cache_file; then |
---|
5824 | echo "updating cache $cache_file" |
---|
5825 | cat confcache > $cache_file |
---|
5826 | else |
---|
5827 | echo "not updating unwritable cache $cache_file" |
---|
5828 | fi |
---|
5829 | fi |
---|
5830 | rm -f confcache |
---|
5831 | |
---|
5832 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
5833 | |
---|
5834 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5835 | # Let make expand exec_prefix. |
---|
5836 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5837 | |
---|
5838 | # Any assignment to VPATH causes Sun make to only execute |
---|
5839 | # the first set of double-colon rules, so remove it if not needed. |
---|
5840 | # If there is a colon in the path, we need to keep it. |
---|
5841 | if test "x$srcdir" = x.; then |
---|
5842 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
5843 | fi |
---|
5844 | |
---|
5845 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
5846 | |
---|
5847 | DEFS=-DHAVE_CONFIG_H |
---|
5848 | |
---|
5849 | # Without the "./", some shells look in PATH for config.status. |
---|
5850 | : ${CONFIG_STATUS=./config.status} |
---|
5851 | |
---|
5852 | echo creating $CONFIG_STATUS |
---|
5853 | rm -f $CONFIG_STATUS |
---|
5854 | cat > $CONFIG_STATUS <<EOF |
---|
5855 | #! /bin/sh |
---|
5856 | # Generated automatically by configure. |
---|
5857 | # Run this file to recreate the current configuration. |
---|
5858 | # This directory was configured as follows, |
---|
5859 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
5860 | # |
---|
5861 | # $0 $ac_configure_args |
---|
5862 | # |
---|
5863 | # Compiler output produced by configure, useful for debugging |
---|
5864 | # configure, is in ./config.log if it exists. |
---|
5865 | |
---|
5866 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
5867 | for ac_option |
---|
5868 | do |
---|
5869 | case "\$ac_option" in |
---|
5870 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5871 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
5872 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
5873 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
5874 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
5875 | exit 0 ;; |
---|
5876 | -help | --help | --hel | --he | --h) |
---|
5877 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
5878 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
5879 | esac |
---|
5880 | done |
---|
5881 | |
---|
5882 | ac_given_srcdir=$srcdir |
---|
5883 | ac_given_INSTALL="$INSTALL" |
---|
5884 | |
---|
5885 | trap 'rm -fr `echo "build.sh Makefile glob/Makefile i18n/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
5886 | EOF |
---|
5887 | cat >> $CONFIG_STATUS <<EOF |
---|
5888 | |
---|
5889 | # Protect against being on the right side of a sed subst in config.status. |
---|
5890 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
5891 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
5892 | $ac_vpsub |
---|
5893 | $extrasub |
---|
5894 | s%@SHELL@%$SHELL%g |
---|
5895 | s%@CFLAGS@%$CFLAGS%g |
---|
5896 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
5897 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
5898 | s%@FFLAGS@%$FFLAGS%g |
---|
5899 | s%@DEFS@%$DEFS%g |
---|
5900 | s%@LDFLAGS@%$LDFLAGS%g |
---|
5901 | s%@LIBS@%$LIBS%g |
---|
5902 | s%@exec_prefix@%$exec_prefix%g |
---|
5903 | s%@prefix@%$prefix%g |
---|
5904 | s%@program_transform_name@%$program_transform_name%g |
---|
5905 | s%@bindir@%$bindir%g |
---|
5906 | s%@sbindir@%$sbindir%g |
---|
5907 | s%@libexecdir@%$libexecdir%g |
---|
5908 | s%@datadir@%$datadir%g |
---|
5909 | s%@sysconfdir@%$sysconfdir%g |
---|
5910 | s%@sharedstatedir@%$sharedstatedir%g |
---|
5911 | s%@localstatedir@%$localstatedir%g |
---|
5912 | s%@libdir@%$libdir%g |
---|
5913 | s%@includedir@%$includedir%g |
---|
5914 | s%@oldincludedir@%$oldincludedir%g |
---|
5915 | s%@infodir@%$infodir%g |
---|
5916 | s%@mandir@%$mandir%g |
---|
5917 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
5918 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
5919 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
5920 | s%@PACKAGE@%$PACKAGE%g |
---|
5921 | s%@VERSION@%$VERSION%g |
---|
5922 | s%@ACLOCAL@%$ACLOCAL%g |
---|
5923 | s%@AUTOCONF@%$AUTOCONF%g |
---|
5924 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
5925 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
5926 | s%@MAKEINFO@%$MAKEINFO%g |
---|
5927 | s%@SET_MAKE@%$SET_MAKE%g |
---|
5928 | s%@host@%$host%g |
---|
5929 | s%@host_alias@%$host_alias%g |
---|
5930 | s%@host_cpu@%$host_cpu%g |
---|
5931 | s%@host_vendor@%$host_vendor%g |
---|
5932 | s%@host_os@%$host_os%g |
---|
5933 | s%@CC@%$CC%g |
---|
5934 | s%@AR@%$AR%g |
---|
5935 | s%@RANLIB@%$RANLIB%g |
---|
5936 | s%@CPP@%$CPP%g |
---|
5937 | s%@PERL@%$PERL%g |
---|
5938 | s%@build@%$build%g |
---|
5939 | s%@build_alias@%$build_alias%g |
---|
5940 | s%@build_cpu@%$build_cpu%g |
---|
5941 | s%@build_vendor@%$build_vendor%g |
---|
5942 | s%@build_os@%$build_os%g |
---|
5943 | s%@GETCONF@%$GETCONF%g |
---|
5944 | s%@USE_NLS_TRUE@%$USE_NLS_TRUE%g |
---|
5945 | s%@USE_NLS_FALSE@%$USE_NLS_FALSE%g |
---|
5946 | s%@ALL_LINGUAS@%$ALL_LINGUAS%g |
---|
5947 | s%@ALL_POFILES@%$ALL_POFILES%g |
---|
5948 | s%@ALL_MOFILES@%$ALL_MOFILES%g |
---|
5949 | s%@MOFILES@%$MOFILES%g |
---|
5950 | s%@LIBOBJS@%$LIBOBJS%g |
---|
5951 | s%@ALLOCA@%$ALLOCA%g |
---|
5952 | s%@NEED_SETGID@%$NEED_SETGID%g |
---|
5953 | s%@KMEM_GROUP@%$KMEM_GROUP%g |
---|
5954 | s%@REMOTE@%$REMOTE%g |
---|
5955 | s%@GLOBDIR@%$GLOBDIR%g |
---|
5956 | s%@GLOBINC@%$GLOBINC%g |
---|
5957 | s%@GLOBLIB@%$GLOBLIB%g |
---|
5958 | s%@MAKE_HOST@%$MAKE_HOST%g |
---|
5959 | /@MAINT_MAKEFILE@/r $MAINT_MAKEFILE |
---|
5960 | s%@MAINT_MAKEFILE@%%g |
---|
5961 | |
---|
5962 | CEOF |
---|
5963 | EOF |
---|
5964 | |
---|
5965 | cat >> $CONFIG_STATUS <<\EOF |
---|
5966 | |
---|
5967 | # Split the substitutions into bite-sized pieces for seds with |
---|
5968 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
5969 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
5970 | ac_file=1 # Number of current file. |
---|
5971 | ac_beg=1 # First line for current file. |
---|
5972 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
5973 | ac_more_lines=: |
---|
5974 | ac_sed_cmds="" |
---|
5975 | while $ac_more_lines; do |
---|
5976 | if test $ac_beg -gt 1; then |
---|
5977 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
5978 | else |
---|
5979 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
5980 | fi |
---|
5981 | if test ! -s conftest.s$ac_file; then |
---|
5982 | ac_more_lines=false |
---|
5983 | rm -f conftest.s$ac_file |
---|
5984 | else |
---|
5985 | if test -z "$ac_sed_cmds"; then |
---|
5986 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
5987 | else |
---|
5988 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
5989 | fi |
---|
5990 | ac_file=`expr $ac_file + 1` |
---|
5991 | ac_beg=$ac_end |
---|
5992 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
5993 | fi |
---|
5994 | done |
---|
5995 | if test -z "$ac_sed_cmds"; then |
---|
5996 | ac_sed_cmds=cat |
---|
5997 | fi |
---|
5998 | EOF |
---|
5999 | |
---|
6000 | cat >> $CONFIG_STATUS <<EOF |
---|
6001 | |
---|
6002 | CONFIG_FILES=\${CONFIG_FILES-"build.sh Makefile glob/Makefile i18n/Makefile"} |
---|
6003 | EOF |
---|
6004 | cat >> $CONFIG_STATUS <<\EOF |
---|
6005 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
6006 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6007 | case "$ac_file" in |
---|
6008 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
6009 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
6010 | *) ac_file_in="${ac_file}.in" ;; |
---|
6011 | esac |
---|
6012 | |
---|
6013 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
6014 | |
---|
6015 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
6016 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
6017 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
6018 | # The file is in a subdirectory. |
---|
6019 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
6020 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
6021 | # A "../" for each directory in $ac_dir_suffix. |
---|
6022 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
6023 | else |
---|
6024 | ac_dir_suffix= ac_dots= |
---|
6025 | fi |
---|
6026 | |
---|
6027 | case "$ac_given_srcdir" in |
---|
6028 | .) srcdir=. |
---|
6029 | if test -z "$ac_dots"; then top_srcdir=. |
---|
6030 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
6031 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
6032 | *) # Relative path. |
---|
6033 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
6034 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
6035 | esac |
---|
6036 | |
---|
6037 | case "$ac_given_INSTALL" in |
---|
6038 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
6039 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
6040 | esac |
---|
6041 | |
---|
6042 | echo creating "$ac_file" |
---|
6043 | rm -f "$ac_file" |
---|
6044 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
6045 | case "$ac_file" in |
---|
6046 | *Makefile*) ac_comsub="1i\\ |
---|
6047 | # $configure_input" ;; |
---|
6048 | *) ac_comsub= ;; |
---|
6049 | esac |
---|
6050 | |
---|
6051 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
6052 | sed -e "$ac_comsub |
---|
6053 | s%@configure_input@%$configure_input%g |
---|
6054 | s%@srcdir@%$srcdir%g |
---|
6055 | s%@top_srcdir@%$top_srcdir%g |
---|
6056 | s%@INSTALL@%$INSTALL%g |
---|
6057 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
6058 | fi; done |
---|
6059 | rm -f conftest.s* |
---|
6060 | |
---|
6061 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
6062 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
6063 | # |
---|
6064 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
6065 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
6066 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
6067 | ac_dC='\3' |
---|
6068 | ac_dD='%g' |
---|
6069 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
6070 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
6071 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
6072 | ac_uC=' ' |
---|
6073 | ac_uD='\4%g' |
---|
6074 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
6075 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
6076 | ac_eB='$%\1#\2define\3' |
---|
6077 | ac_eC=' ' |
---|
6078 | ac_eD='%g' |
---|
6079 | |
---|
6080 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
6081 | EOF |
---|
6082 | cat >> $CONFIG_STATUS <<EOF |
---|
6083 | CONFIG_HEADERS="config.h" |
---|
6084 | EOF |
---|
6085 | cat >> $CONFIG_STATUS <<\EOF |
---|
6086 | fi |
---|
6087 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
6088 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6089 | case "$ac_file" in |
---|
6090 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
6091 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
6092 | *) ac_file_in="${ac_file}.in" ;; |
---|
6093 | esac |
---|
6094 | |
---|
6095 | echo creating $ac_file |
---|
6096 | |
---|
6097 | rm -f conftest.frag conftest.in conftest.out |
---|
6098 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
6099 | cat $ac_file_inputs > conftest.in |
---|
6100 | |
---|
6101 | EOF |
---|
6102 | |
---|
6103 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
6104 | # the proper values into config.h.in to produce config.h. And first: |
---|
6105 | # Protect against being on the right side of a sed subst in config.status. |
---|
6106 | # Protect against being in an unquoted here document in config.status. |
---|
6107 | rm -f conftest.vals |
---|
6108 | cat > conftest.hdr <<\EOF |
---|
6109 | s/[\\&%]/\\&/g |
---|
6110 | s%[\\$`]%\\&%g |
---|
6111 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
6112 | s%ac_d%ac_u%gp |
---|
6113 | s%ac_u%ac_e%gp |
---|
6114 | EOF |
---|
6115 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
6116 | rm -f conftest.hdr |
---|
6117 | |
---|
6118 | # This sed command replaces #undef with comments. This is necessary, for |
---|
6119 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
6120 | # on some systems where configure will not decide to define it. |
---|
6121 | cat >> conftest.vals <<\EOF |
---|
6122 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
6123 | EOF |
---|
6124 | |
---|
6125 | # Break up conftest.vals because some shells have a limit on |
---|
6126 | # the size of here documents, and old seds have small limits too. |
---|
6127 | |
---|
6128 | rm -f conftest.tail |
---|
6129 | while : |
---|
6130 | do |
---|
6131 | ac_lines=`grep -c . conftest.vals` |
---|
6132 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
6133 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
6134 | # Write a limited-size here document to conftest.frag. |
---|
6135 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
6136 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
6137 | echo 'CEOF |
---|
6138 | sed -f conftest.frag conftest.in > conftest.out |
---|
6139 | rm -f conftest.in |
---|
6140 | mv conftest.out conftest.in |
---|
6141 | ' >> $CONFIG_STATUS |
---|
6142 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
6143 | rm -f conftest.vals |
---|
6144 | mv conftest.tail conftest.vals |
---|
6145 | done |
---|
6146 | rm -f conftest.vals |
---|
6147 | |
---|
6148 | cat >> $CONFIG_STATUS <<\EOF |
---|
6149 | rm -f conftest.frag conftest.h |
---|
6150 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
6151 | cat conftest.in >> conftest.h |
---|
6152 | rm -f conftest.in |
---|
6153 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
6154 | echo "$ac_file is unchanged" |
---|
6155 | rm -f conftest.h |
---|
6156 | else |
---|
6157 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
6158 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
6159 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
6160 | # The file is in a subdirectory. |
---|
6161 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
6162 | fi |
---|
6163 | rm -f $ac_file |
---|
6164 | mv conftest.h $ac_file |
---|
6165 | fi |
---|
6166 | fi; done |
---|
6167 | |
---|
6168 | EOF |
---|
6169 | cat >> $CONFIG_STATUS <<EOF |
---|
6170 | |
---|
6171 | |
---|
6172 | EOF |
---|
6173 | cat >> $CONFIG_STATUS <<\EOF |
---|
6174 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
6175 | |
---|
6176 | exit 0 |
---|
6177 | EOF |
---|
6178 | chmod +x $CONFIG_STATUS |
---|
6179 | rm -fr confdefs* $ac_clean_files |
---|
6180 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
6181 | |
---|
6182 | |
---|
6183 | |
---|
6184 | |
---|
6185 | case "$make_badcust" in |
---|
6186 | yes) echo |
---|
6187 | echo "WARNING: --with-customs specified but no customs.h could be found;" |
---|
6188 | echo " disabling Customs support." |
---|
6189 | echo ;; |
---|
6190 | esac |
---|
6191 | |
---|
6192 | case "$with_customs" in |
---|
6193 | ""|n|no|y|ye|yes) ;; |
---|
6194 | *) if test -f "$with_customs/lib/libcustoms.a"; then |
---|
6195 | : |
---|
6196 | else |
---|
6197 | echo |
---|
6198 | echo "WARNING: \`$with_customs/lib' does not appear to contain the" |
---|
6199 | echo " Customs library. You must build and install Customs" |
---|
6200 | echo " before compiling GNU make." |
---|
6201 | echo |
---|
6202 | fi ;; |
---|
6203 | esac |
---|
6204 | |
---|
6205 | case "$has_wait_nohang" in |
---|
6206 | no) echo |
---|
6207 | echo "WARNING: Your system has neither waitpid() nor wait3()." |
---|
6208 | echo " Without one of these, signal handling is unreliable." |
---|
6209 | echo " You should be aware that running GNU make with -j" |
---|
6210 | echo " could result in erratic behavior." |
---|
6211 | echo ;; |
---|
6212 | esac |
---|
6213 | |
---|
6214 | case "$make_cv_job_server/$user_job_server" in |
---|
6215 | no/yes) echo |
---|
6216 | echo "WARNING: Make job server requires a POSIX-ish system that" |
---|
6217 | echo " supports the pipe(), sigaction(), and either" |
---|
6218 | echo " waitpid() or wait3() functions. Your system doesn't" |
---|
6219 | echo " appear to provide one or more of those." |
---|
6220 | echo " Disabling job server support." |
---|
6221 | echo ;; |
---|
6222 | esac |
---|
6223 | |
---|