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