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