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