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