1 |
578 |
markom |
#! /bin/sh
|
2 |
|
|
|
3 |
|
|
# Guess values for system-dependent variables and create Makefiles.
|
4 |
|
|
# Generated automatically using autoconf version 2.13
|
5 |
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
6 |
|
|
#
|
7 |
|
|
# This configure script is free software; the Free Software Foundation
|
8 |
|
|
# gives unlimited permission to copy, distribute and modify it.
|
9 |
|
|
|
10 |
|
|
# Defaults:
|
11 |
|
|
ac_help=
|
12 |
|
|
ac_default_prefix=/usr/local
|
13 |
|
|
# Any additions from configure.in:
|
14 |
|
|
ac_help="$ac_help
|
15 |
|
|
--enable-maintainer-mode enable make rules and dependencies not useful
|
16 |
|
|
(and sometimes confusing) to the casual installer"
|
17 |
|
|
ac_help="$ac_help
|
18 |
|
|
--disable-nls do not use Native Language Support"
|
19 |
|
|
ac_help="$ac_help
|
20 |
|
|
--with-included-gettext use the GNU gettext library included here"
|
21 |
|
|
ac_help="$ac_help
|
22 |
|
|
--enable-multi-ice Build the multi-ice-gdb-server"
|
23 |
|
|
ac_help="$ac_help
|
24 |
|
|
--enable-gdbcli Enable GDB-CLI interface"
|
25 |
|
|
ac_help="$ac_help
|
26 |
|
|
--enable-gdbmi Enable GDB-MI interface"
|
27 |
|
|
ac_help="$ac_help
|
28 |
|
|
--with-uiout Use new uiout functions instead of *printf's"
|
29 |
|
|
ac_help="$ac_help
|
30 |
|
|
--enable-tui Enable full-screen terminal user interface"
|
31 |
|
|
ac_help="$ac_help
|
32 |
|
|
--enable-netrom Enable NetROM support"
|
33 |
|
|
ac_help="$ac_help
|
34 |
|
|
--enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
35 |
|
|
ac_help="$ac_help
|
36 |
|
|
--enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
|
37 |
|
|
ac_help="$ac_help
|
38 |
|
|
--with-mmalloc Use memory mapped malloc package"
|
39 |
|
|
ac_help="$ac_help
|
40 |
|
|
--with-included-regex Use included regex"
|
41 |
|
|
ac_help="$ac_help
|
42 |
|
|
--with-cpu=CPU Set the default CPU variant to debug"
|
43 |
|
|
ac_help="$ac_help
|
44 |
|
|
--enable-gdbtk Enable GDBTK GUI front end"
|
45 |
|
|
ac_help="$ac_help
|
46 |
|
|
--with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
|
47 |
|
|
ac_help="$ac_help
|
48 |
|
|
--with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
|
49 |
|
|
ac_help="$ac_help
|
50 |
|
|
--with-tclinclude=DIR Directory where tcl private headers are"
|
51 |
|
|
ac_help="$ac_help
|
52 |
|
|
--with-tkinclude=DIR Directory where tk private headers are"
|
53 |
|
|
ac_help="$ac_help
|
54 |
|
|
--with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
|
55 |
|
|
ac_help="$ac_help
|
56 |
|
|
--with-itkconfig Directory containing itk configuration (itkConfig.sh)"
|
57 |
|
|
ac_help="$ac_help
|
58 |
|
|
--with-tixconfig Directory containing tix configuration (tixConfig.sh)"
|
59 |
|
|
ac_help="$ac_help
|
60 |
|
|
--with-x use the X Window System"
|
61 |
|
|
ac_help="$ac_help
|
62 |
|
|
--enable-sim Link gdb with simulator"
|
63 |
|
|
ac_help="$ac_help
|
64 |
|
|
--enable-shared Use shared libraries"
|
65 |
|
|
|
66 |
|
|
# Initialize some variables set by options.
|
67 |
|
|
# The variables have the same names as the options, with
|
68 |
|
|
# dashes changed to underlines.
|
69 |
|
|
build=NONE
|
70 |
|
|
cache_file=./config.cache
|
71 |
|
|
exec_prefix=NONE
|
72 |
|
|
host=NONE
|
73 |
|
|
no_create=
|
74 |
|
|
nonopt=NONE
|
75 |
|
|
no_recursion=
|
76 |
|
|
prefix=NONE
|
77 |
|
|
program_prefix=NONE
|
78 |
|
|
program_suffix=NONE
|
79 |
|
|
program_transform_name=s,x,x,
|
80 |
|
|
silent=
|
81 |
|
|
site=
|
82 |
|
|
sitefile=
|
83 |
|
|
srcdir=
|
84 |
|
|
target=NONE
|
85 |
|
|
verbose=
|
86 |
|
|
x_includes=NONE
|
87 |
|
|
x_libraries=NONE
|
88 |
|
|
bindir='${exec_prefix}/bin'
|
89 |
|
|
sbindir='${exec_prefix}/sbin'
|
90 |
|
|
libexecdir='${exec_prefix}/libexec'
|
91 |
|
|
datadir='${prefix}/share'
|
92 |
|
|
sysconfdir='${prefix}/etc'
|
93 |
|
|
sharedstatedir='${prefix}/com'
|
94 |
|
|
localstatedir='${prefix}/var'
|
95 |
|
|
libdir='${exec_prefix}/lib'
|
96 |
|
|
includedir='${prefix}/include'
|
97 |
|
|
oldincludedir='/usr/include'
|
98 |
|
|
infodir='${prefix}/info'
|
99 |
|
|
mandir='${prefix}/man'
|
100 |
|
|
|
101 |
|
|
# Initialize some other variables.
|
102 |
|
|
subdirs=
|
103 |
|
|
MFLAGS= MAKEFLAGS=
|
104 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
105 |
|
|
# Maximum number of lines to put in a shell here document.
|
106 |
|
|
ac_max_here_lines=12
|
107 |
|
|
|
108 |
|
|
ac_prev=
|
109 |
|
|
for ac_option
|
110 |
|
|
do
|
111 |
|
|
|
112 |
|
|
# If the previous option needs an argument, assign it.
|
113 |
|
|
if test -n "$ac_prev"; then
|
114 |
|
|
eval "$ac_prev=\$ac_option"
|
115 |
|
|
ac_prev=
|
116 |
|
|
continue
|
117 |
|
|
fi
|
118 |
|
|
|
119 |
|
|
case "$ac_option" in
|
120 |
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
121 |
|
|
*) ac_optarg= ;;
|
122 |
|
|
esac
|
123 |
|
|
|
124 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
125 |
|
|
|
126 |
|
|
case "$ac_option" in
|
127 |
|
|
|
128 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
129 |
|
|
ac_prev=bindir ;;
|
130 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
131 |
|
|
bindir="$ac_optarg" ;;
|
132 |
|
|
|
133 |
|
|
-build | --build | --buil | --bui | --bu)
|
134 |
|
|
ac_prev=build ;;
|
135 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
136 |
|
|
build="$ac_optarg" ;;
|
137 |
|
|
|
138 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
139 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
140 |
|
|
ac_prev=cache_file ;;
|
141 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
142 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
143 |
|
|
cache_file="$ac_optarg" ;;
|
144 |
|
|
|
145 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
146 |
|
|
ac_prev=datadir ;;
|
147 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
148 |
|
|
| --da=*)
|
149 |
|
|
datadir="$ac_optarg" ;;
|
150 |
|
|
|
151 |
|
|
-disable-* | --disable-*)
|
152 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
153 |
|
|
# Reject names that are not valid shell variable names.
|
154 |
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
155 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
156 |
|
|
fi
|
157 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
158 |
|
|
eval "enable_${ac_feature}=no" ;;
|
159 |
|
|
|
160 |
|
|
-enable-* | --enable-*)
|
161 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
162 |
|
|
# Reject names that are not valid shell variable names.
|
163 |
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
164 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
165 |
|
|
fi
|
166 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
167 |
|
|
case "$ac_option" in
|
168 |
|
|
*=*) ;;
|
169 |
|
|
*) ac_optarg=yes ;;
|
170 |
|
|
esac
|
171 |
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
172 |
|
|
|
173 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
174 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
175 |
|
|
| --exec | --exe | --ex)
|
176 |
|
|
ac_prev=exec_prefix ;;
|
177 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
178 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
179 |
|
|
| --exec=* | --exe=* | --ex=*)
|
180 |
|
|
exec_prefix="$ac_optarg" ;;
|
181 |
|
|
|
182 |
|
|
-gas | --gas | --ga | --g)
|
183 |
|
|
# Obsolete; use --with-gas.
|
184 |
|
|
with_gas=yes ;;
|
185 |
|
|
|
186 |
|
|
-help | --help | --hel | --he)
|
187 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
188 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
189 |
|
|
cat << EOF
|
190 |
|
|
Usage: configure [options] [host]
|
191 |
|
|
Options: [defaults in brackets after descriptions]
|
192 |
|
|
Configuration:
|
193 |
|
|
--cache-file=FILE cache test results in FILE
|
194 |
|
|
--help print this message
|
195 |
|
|
--no-create do not create output files
|
196 |
|
|
--quiet, --silent do not print \`checking...' messages
|
197 |
|
|
--site-file=FILE use FILE as the site file
|
198 |
|
|
--version print the version of autoconf that created configure
|
199 |
|
|
Directory and file names:
|
200 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
201 |
|
|
[$ac_default_prefix]
|
202 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
203 |
|
|
[same as prefix]
|
204 |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
205 |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
206 |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
207 |
|
|
--datadir=DIR read-only architecture-independent data in DIR
|
208 |
|
|
[PREFIX/share]
|
209 |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
210 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
211 |
|
|
[PREFIX/com]
|
212 |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
213 |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
214 |
|
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
215 |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
216 |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
217 |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
218 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
219 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
220 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
221 |
|
|
--program-transform-name=PROGRAM
|
222 |
|
|
run sed PROGRAM on installed program names
|
223 |
|
|
EOF
|
224 |
|
|
cat << EOF
|
225 |
|
|
Host type:
|
226 |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
227 |
|
|
--host=HOST configure for HOST [guessed]
|
228 |
|
|
--target=TARGET configure for TARGET [TARGET=HOST]
|
229 |
|
|
Features and packages:
|
230 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
231 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
232 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
233 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
234 |
|
|
--x-includes=DIR X include files are in DIR
|
235 |
|
|
--x-libraries=DIR X library files are in DIR
|
236 |
|
|
EOF
|
237 |
|
|
if test -n "$ac_help"; then
|
238 |
|
|
echo "--enable and --with options recognized:$ac_help"
|
239 |
|
|
fi
|
240 |
|
|
exit 0 ;;
|
241 |
|
|
|
242 |
|
|
-host | --host | --hos | --ho)
|
243 |
|
|
ac_prev=host ;;
|
244 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
245 |
|
|
host="$ac_optarg" ;;
|
246 |
|
|
|
247 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
248 |
|
|
| --includ | --inclu | --incl | --inc)
|
249 |
|
|
ac_prev=includedir ;;
|
250 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
251 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
252 |
|
|
includedir="$ac_optarg" ;;
|
253 |
|
|
|
254 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
255 |
|
|
ac_prev=infodir ;;
|
256 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
257 |
|
|
infodir="$ac_optarg" ;;
|
258 |
|
|
|
259 |
|
|
-libdir | --libdir | --libdi | --libd)
|
260 |
|
|
ac_prev=libdir ;;
|
261 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
262 |
|
|
libdir="$ac_optarg" ;;
|
263 |
|
|
|
264 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
265 |
|
|
| --libexe | --libex | --libe)
|
266 |
|
|
ac_prev=libexecdir ;;
|
267 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
268 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
269 |
|
|
libexecdir="$ac_optarg" ;;
|
270 |
|
|
|
271 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
272 |
|
|
| --localstate | --localstat | --localsta | --localst \
|
273 |
|
|
| --locals | --local | --loca | --loc | --lo)
|
274 |
|
|
ac_prev=localstatedir ;;
|
275 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
276 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
277 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
278 |
|
|
localstatedir="$ac_optarg" ;;
|
279 |
|
|
|
280 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
281 |
|
|
ac_prev=mandir ;;
|
282 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
283 |
|
|
mandir="$ac_optarg" ;;
|
284 |
|
|
|
285 |
|
|
-nfp | --nfp | --nf)
|
286 |
|
|
# Obsolete; use --without-fp.
|
287 |
|
|
with_fp=no ;;
|
288 |
|
|
|
289 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
290 |
|
|
| --no-cr | --no-c)
|
291 |
|
|
no_create=yes ;;
|
292 |
|
|
|
293 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
294 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
295 |
|
|
no_recursion=yes ;;
|
296 |
|
|
|
297 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
298 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
299 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
300 |
|
|
ac_prev=oldincludedir ;;
|
301 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
302 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
303 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
304 |
|
|
oldincludedir="$ac_optarg" ;;
|
305 |
|
|
|
306 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
307 |
|
|
ac_prev=prefix ;;
|
308 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
309 |
|
|
prefix="$ac_optarg" ;;
|
310 |
|
|
|
311 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
312 |
|
|
| --program-pre | --program-pr | --program-p)
|
313 |
|
|
ac_prev=program_prefix ;;
|
314 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
315 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
316 |
|
|
program_prefix="$ac_optarg" ;;
|
317 |
|
|
|
318 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
319 |
|
|
| --program-suf | --program-su | --program-s)
|
320 |
|
|
ac_prev=program_suffix ;;
|
321 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
322 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
323 |
|
|
program_suffix="$ac_optarg" ;;
|
324 |
|
|
|
325 |
|
|
-program-transform-name | --program-transform-name \
|
326 |
|
|
| --program-transform-nam | --program-transform-na \
|
327 |
|
|
| --program-transform-n | --program-transform- \
|
328 |
|
|
| --program-transform | --program-transfor \
|
329 |
|
|
| --program-transfo | --program-transf \
|
330 |
|
|
| --program-trans | --program-tran \
|
331 |
|
|
| --progr-tra | --program-tr | --program-t)
|
332 |
|
|
ac_prev=program_transform_name ;;
|
333 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
334 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
335 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
336 |
|
|
| --program-transform=* | --program-transfor=* \
|
337 |
|
|
| --program-transfo=* | --program-transf=* \
|
338 |
|
|
| --program-trans=* | --program-tran=* \
|
339 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
340 |
|
|
program_transform_name="$ac_optarg" ;;
|
341 |
|
|
|
342 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
343 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
344 |
|
|
silent=yes ;;
|
345 |
|
|
|
346 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
347 |
|
|
ac_prev=sbindir ;;
|
348 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
349 |
|
|
| --sbi=* | --sb=*)
|
350 |
|
|
sbindir="$ac_optarg" ;;
|
351 |
|
|
|
352 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
353 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
354 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
355 |
|
|
| --sha | --sh)
|
356 |
|
|
ac_prev=sharedstatedir ;;
|
357 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
358 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
359 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
360 |
|
|
| --sha=* | --sh=*)
|
361 |
|
|
sharedstatedir="$ac_optarg" ;;
|
362 |
|
|
|
363 |
|
|
-site | --site | --sit)
|
364 |
|
|
ac_prev=site ;;
|
365 |
|
|
-site=* | --site=* | --sit=*)
|
366 |
|
|
site="$ac_optarg" ;;
|
367 |
|
|
|
368 |
|
|
-site-file | --site-file | --site-fil | --site-fi | --site-f)
|
369 |
|
|
ac_prev=sitefile ;;
|
370 |
|
|
-site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
|
371 |
|
|
sitefile="$ac_optarg" ;;
|
372 |
|
|
|
373 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
374 |
|
|
ac_prev=srcdir ;;
|
375 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
376 |
|
|
srcdir="$ac_optarg" ;;
|
377 |
|
|
|
378 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
379 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
380 |
|
|
ac_prev=sysconfdir ;;
|
381 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
382 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
383 |
|
|
sysconfdir="$ac_optarg" ;;
|
384 |
|
|
|
385 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
386 |
|
|
ac_prev=target ;;
|
387 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
388 |
|
|
target="$ac_optarg" ;;
|
389 |
|
|
|
390 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
391 |
|
|
verbose=yes ;;
|
392 |
|
|
|
393 |
|
|
-version | --version | --versio | --versi | --vers)
|
394 |
|
|
echo "configure generated by autoconf version 2.13"
|
395 |
|
|
exit 0 ;;
|
396 |
|
|
|
397 |
|
|
-with-* | --with-*)
|
398 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
399 |
|
|
# Reject names that are not valid shell variable names.
|
400 |
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
401 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
402 |
|
|
fi
|
403 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
404 |
|
|
case "$ac_option" in
|
405 |
|
|
*=*) ;;
|
406 |
|
|
*) ac_optarg=yes ;;
|
407 |
|
|
esac
|
408 |
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
409 |
|
|
|
410 |
|
|
-without-* | --without-*)
|
411 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
412 |
|
|
# Reject names that are not valid shell variable names.
|
413 |
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
414 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
415 |
|
|
fi
|
416 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
417 |
|
|
eval "with_${ac_package}=no" ;;
|
418 |
|
|
|
419 |
|
|
--x)
|
420 |
|
|
# Obsolete; use --with-x.
|
421 |
|
|
with_x=yes ;;
|
422 |
|
|
|
423 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
424 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
425 |
|
|
ac_prev=x_includes ;;
|
426 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
427 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
428 |
|
|
x_includes="$ac_optarg" ;;
|
429 |
|
|
|
430 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
431 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
432 |
|
|
ac_prev=x_libraries ;;
|
433 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
434 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
435 |
|
|
x_libraries="$ac_optarg" ;;
|
436 |
|
|
|
437 |
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
438 |
|
|
;;
|
439 |
|
|
|
440 |
|
|
*)
|
441 |
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
442 |
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
443 |
|
|
fi
|
444 |
|
|
if test "x$nonopt" != xNONE; then
|
445 |
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
446 |
|
|
fi
|
447 |
|
|
nonopt="$ac_option"
|
448 |
|
|
;;
|
449 |
|
|
|
450 |
|
|
esac
|
451 |
|
|
done
|
452 |
|
|
|
453 |
|
|
if test -n "$ac_prev"; then
|
454 |
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
455 |
|
|
fi
|
456 |
|
|
|
457 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
458 |
|
|
|
459 |
|
|
# File descriptor usage:
|
460 |
|
|
# 0 standard input
|
461 |
|
|
# 1 file creation
|
462 |
|
|
# 2 errors and warnings
|
463 |
|
|
# 3 some systems may open it to /dev/tty
|
464 |
|
|
# 4 used on the Kubota Titan
|
465 |
|
|
# 6 checking for... messages and results
|
466 |
|
|
# 5 compiler messages saved in config.log
|
467 |
|
|
if test "$silent" = yes; then
|
468 |
|
|
exec 6>/dev/null
|
469 |
|
|
else
|
470 |
|
|
exec 6>&1
|
471 |
|
|
fi
|
472 |
|
|
exec 5>./config.log
|
473 |
|
|
|
474 |
|
|
echo "\
|
475 |
|
|
This file contains any messages produced by compilers while
|
476 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
477 |
|
|
" 1>&5
|
478 |
|
|
|
479 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
480 |
|
|
# Also quote any args containing shell metacharacters.
|
481 |
|
|
ac_configure_args=
|
482 |
|
|
for ac_arg
|
483 |
|
|
do
|
484 |
|
|
case "$ac_arg" in
|
485 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
486 |
|
|
| --no-cr | --no-c) ;;
|
487 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
488 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
489 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
490 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
491 |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
492 |
|
|
esac
|
493 |
|
|
done
|
494 |
|
|
|
495 |
|
|
# NLS nuisances.
|
496 |
|
|
# Only set these to C if already set. These must not be set unconditionally
|
497 |
|
|
# because not all systems understand e.g. LANG=C (notably SCO).
|
498 |
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
499 |
|
|
# Non-C LC_CTYPE values break the ctype check.
|
500 |
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
501 |
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
502 |
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
503 |
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
504 |
|
|
|
505 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
506 |
|
|
rm -rf conftest* confdefs.h
|
507 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
508 |
|
|
echo > confdefs.h
|
509 |
|
|
|
510 |
|
|
# A filename unique to this package, relative to the directory that
|
511 |
|
|
# configure is in, which we can look for to find out if srcdir is correct.
|
512 |
|
|
ac_unique_file=main.c
|
513 |
|
|
|
514 |
|
|
# Find the source files, if location was not specified.
|
515 |
|
|
if test -z "$srcdir"; then
|
516 |
|
|
ac_srcdir_defaulted=yes
|
517 |
|
|
# Try the directory containing this script, then its parent.
|
518 |
|
|
ac_prog=$0
|
519 |
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
520 |
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
521 |
|
|
srcdir=$ac_confdir
|
522 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
523 |
|
|
srcdir=..
|
524 |
|
|
fi
|
525 |
|
|
else
|
526 |
|
|
ac_srcdir_defaulted=no
|
527 |
|
|
fi
|
528 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
529 |
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
530 |
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
531 |
|
|
else
|
532 |
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
533 |
|
|
fi
|
534 |
|
|
fi
|
535 |
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
536 |
|
|
|
537 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
538 |
|
|
if test -z "$sitefile"; then
|
539 |
|
|
if test -z "$CONFIG_SITE"; then
|
540 |
|
|
if test "x$prefix" != xNONE; then
|
541 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
542 |
|
|
else
|
543 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
544 |
|
|
fi
|
545 |
|
|
fi
|
546 |
|
|
else
|
547 |
|
|
CONFIG_SITE="$sitefile"
|
548 |
|
|
fi
|
549 |
|
|
for ac_site_file in $CONFIG_SITE; do
|
550 |
|
|
if test -r "$ac_site_file"; then
|
551 |
|
|
echo "loading site script $ac_site_file"
|
552 |
|
|
. "$ac_site_file"
|
553 |
|
|
fi
|
554 |
|
|
done
|
555 |
|
|
|
556 |
|
|
if test -r "$cache_file"; then
|
557 |
|
|
echo "loading cache $cache_file"
|
558 |
|
|
. $cache_file
|
559 |
|
|
else
|
560 |
|
|
echo "creating cache $cache_file"
|
561 |
|
|
> $cache_file
|
562 |
|
|
fi
|
563 |
|
|
|
564 |
|
|
ac_ext=c
|
565 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
566 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
567 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
568 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
569 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
570 |
|
|
|
571 |
|
|
ac_exeext=
|
572 |
|
|
ac_objext=o
|
573 |
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
574 |
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
575 |
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
576 |
|
|
ac_n= ac_c='
|
577 |
|
|
' ac_t=' '
|
578 |
|
|
else
|
579 |
|
|
ac_n=-n ac_c= ac_t=
|
580 |
|
|
fi
|
581 |
|
|
else
|
582 |
|
|
ac_n= ac_c='\c' ac_t=
|
583 |
|
|
fi
|
584 |
|
|
|
585 |
|
|
|
586 |
|
|
|
587 |
|
|
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
588 |
|
|
echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
589 |
|
|
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
590 |
|
|
if test "${enable_maintainer_mode+set}" = set; then
|
591 |
|
|
enableval="$enable_maintainer_mode"
|
592 |
|
|
USE_MAINTAINER_MODE=$enableval
|
593 |
|
|
else
|
594 |
|
|
USE_MAINTAINER_MODE=no
|
595 |
|
|
fi
|
596 |
|
|
|
597 |
|
|
echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
598 |
|
|
|
599 |
|
|
|
600 |
|
|
if test $USE_MAINTAINER_MODE = yes; then
|
601 |
|
|
MAINTAINER_MODE_TRUE=
|
602 |
|
|
MAINTAINER_MODE_FALSE='#'
|
603 |
|
|
else
|
604 |
|
|
MAINTAINER_MODE_TRUE='#'
|
605 |
|
|
MAINTAINER_MODE_FALSE=
|
606 |
|
|
fi
|
607 |
|
|
MAINT=$MAINTAINER_MODE_TRUE
|
608 |
|
|
|
609 |
|
|
|
610 |
|
|
|
611 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
612 |
|
|
set dummy gcc; ac_word=$2
|
613 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
614 |
|
|
echo "configure:615: checking for $ac_word" >&5
|
615 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
616 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
617 |
|
|
else
|
618 |
|
|
if test -n "$CC"; then
|
619 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
620 |
|
|
else
|
621 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
622 |
|
|
ac_dummy="$PATH"
|
623 |
|
|
for ac_dir in $ac_dummy; do
|
624 |
|
|
test -z "$ac_dir" && ac_dir=.
|
625 |
|
|
if test -f $ac_dir/$ac_word; then
|
626 |
|
|
ac_cv_prog_CC="gcc"
|
627 |
|
|
break
|
628 |
|
|
fi
|
629 |
|
|
done
|
630 |
|
|
IFS="$ac_save_ifs"
|
631 |
|
|
fi
|
632 |
|
|
fi
|
633 |
|
|
CC="$ac_cv_prog_CC"
|
634 |
|
|
if test -n "$CC"; then
|
635 |
|
|
echo "$ac_t""$CC" 1>&6
|
636 |
|
|
else
|
637 |
|
|
echo "$ac_t""no" 1>&6
|
638 |
|
|
fi
|
639 |
|
|
|
640 |
|
|
if test -z "$CC"; then
|
641 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
642 |
|
|
set dummy cc; ac_word=$2
|
643 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
644 |
|
|
echo "configure:645: checking for $ac_word" >&5
|
645 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
646 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
647 |
|
|
else
|
648 |
|
|
if test -n "$CC"; then
|
649 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
650 |
|
|
else
|
651 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
652 |
|
|
ac_prog_rejected=no
|
653 |
|
|
ac_dummy="$PATH"
|
654 |
|
|
for ac_dir in $ac_dummy; do
|
655 |
|
|
test -z "$ac_dir" && ac_dir=.
|
656 |
|
|
if test -f $ac_dir/$ac_word; then
|
657 |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
658 |
|
|
ac_prog_rejected=yes
|
659 |
|
|
continue
|
660 |
|
|
fi
|
661 |
|
|
ac_cv_prog_CC="cc"
|
662 |
|
|
break
|
663 |
|
|
fi
|
664 |
|
|
done
|
665 |
|
|
IFS="$ac_save_ifs"
|
666 |
|
|
if test $ac_prog_rejected = yes; then
|
667 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
668 |
|
|
set dummy $ac_cv_prog_CC
|
669 |
|
|
shift
|
670 |
|
|
if test $# -gt 0; then
|
671 |
|
|
# We chose a different compiler from the bogus one.
|
672 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
673 |
|
|
# first if we set CC to just the basename; use the full file name.
|
674 |
|
|
shift
|
675 |
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
676 |
|
|
shift
|
677 |
|
|
ac_cv_prog_CC="$@"
|
678 |
|
|
fi
|
679 |
|
|
fi
|
680 |
|
|
fi
|
681 |
|
|
fi
|
682 |
|
|
CC="$ac_cv_prog_CC"
|
683 |
|
|
if test -n "$CC"; then
|
684 |
|
|
echo "$ac_t""$CC" 1>&6
|
685 |
|
|
else
|
686 |
|
|
echo "$ac_t""no" 1>&6
|
687 |
|
|
fi
|
688 |
|
|
|
689 |
|
|
if test -z "$CC"; then
|
690 |
|
|
case "`uname -s`" in
|
691 |
|
|
*win32* | *WIN32*)
|
692 |
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
693 |
|
|
set dummy cl; ac_word=$2
|
694 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
695 |
|
|
echo "configure:696: checking for $ac_word" >&5
|
696 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
697 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
698 |
|
|
else
|
699 |
|
|
if test -n "$CC"; then
|
700 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
701 |
|
|
else
|
702 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
703 |
|
|
ac_dummy="$PATH"
|
704 |
|
|
for ac_dir in $ac_dummy; do
|
705 |
|
|
test -z "$ac_dir" && ac_dir=.
|
706 |
|
|
if test -f $ac_dir/$ac_word; then
|
707 |
|
|
ac_cv_prog_CC="cl"
|
708 |
|
|
break
|
709 |
|
|
fi
|
710 |
|
|
done
|
711 |
|
|
IFS="$ac_save_ifs"
|
712 |
|
|
fi
|
713 |
|
|
fi
|
714 |
|
|
CC="$ac_cv_prog_CC"
|
715 |
|
|
if test -n "$CC"; then
|
716 |
|
|
echo "$ac_t""$CC" 1>&6
|
717 |
|
|
else
|
718 |
|
|
echo "$ac_t""no" 1>&6
|
719 |
|
|
fi
|
720 |
|
|
;;
|
721 |
|
|
esac
|
722 |
|
|
fi
|
723 |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
724 |
|
|
fi
|
725 |
|
|
|
726 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
727 |
|
|
echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
728 |
|
|
|
729 |
|
|
ac_ext=c
|
730 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
731 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
732 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
733 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
734 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
735 |
|
|
|
736 |
|
|
cat > conftest.$ac_ext << EOF
|
737 |
|
|
|
738 |
|
|
#line 739 "configure"
|
739 |
|
|
#include "confdefs.h"
|
740 |
|
|
|
741 |
|
|
main(){return(0);}
|
742 |
|
|
EOF
|
743 |
|
|
if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
744 |
|
|
ac_cv_prog_cc_works=yes
|
745 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
746 |
|
|
if (./conftest; exit) 2>/dev/null; then
|
747 |
|
|
ac_cv_prog_cc_cross=no
|
748 |
|
|
else
|
749 |
|
|
ac_cv_prog_cc_cross=yes
|
750 |
|
|
fi
|
751 |
|
|
else
|
752 |
|
|
echo "configure: failed program was:" >&5
|
753 |
|
|
cat conftest.$ac_ext >&5
|
754 |
|
|
ac_cv_prog_cc_works=no
|
755 |
|
|
fi
|
756 |
|
|
rm -fr conftest*
|
757 |
|
|
ac_ext=c
|
758 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
759 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
760 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
761 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
762 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
763 |
|
|
|
764 |
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
765 |
|
|
if test $ac_cv_prog_cc_works = no; then
|
766 |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
767 |
|
|
fi
|
768 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
769 |
|
|
echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
770 |
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
771 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
772 |
|
|
|
773 |
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
774 |
|
|
echo "configure:775: checking whether we are using GNU C" >&5
|
775 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
776 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
777 |
|
|
else
|
778 |
|
|
cat > conftest.c <
|
779 |
|
|
#ifdef __GNUC__
|
780 |
|
|
yes;
|
781 |
|
|
#endif
|
782 |
|
|
EOF
|
783 |
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
784 |
|
|
ac_cv_prog_gcc=yes
|
785 |
|
|
else
|
786 |
|
|
ac_cv_prog_gcc=no
|
787 |
|
|
fi
|
788 |
|
|
fi
|
789 |
|
|
|
790 |
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
791 |
|
|
|
792 |
|
|
if test $ac_cv_prog_gcc = yes; then
|
793 |
|
|
GCC=yes
|
794 |
|
|
else
|
795 |
|
|
GCC=
|
796 |
|
|
fi
|
797 |
|
|
|
798 |
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
799 |
|
|
ac_save_CFLAGS="$CFLAGS"
|
800 |
|
|
CFLAGS=
|
801 |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
802 |
|
|
echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
|
803 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
804 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
805 |
|
|
else
|
806 |
|
|
echo 'void f(){}' > conftest.c
|
807 |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
808 |
|
|
ac_cv_prog_cc_g=yes
|
809 |
|
|
else
|
810 |
|
|
ac_cv_prog_cc_g=no
|
811 |
|
|
fi
|
812 |
|
|
rm -f conftest*
|
813 |
|
|
|
814 |
|
|
fi
|
815 |
|
|
|
816 |
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
817 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
818 |
|
|
CFLAGS="$ac_save_CFLAGS"
|
819 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
820 |
|
|
if test "$GCC" = yes; then
|
821 |
|
|
CFLAGS="-g -O2"
|
822 |
|
|
else
|
823 |
|
|
CFLAGS="-g"
|
824 |
|
|
fi
|
825 |
|
|
else
|
826 |
|
|
if test "$GCC" = yes; then
|
827 |
|
|
CFLAGS="-O2"
|
828 |
|
|
else
|
829 |
|
|
CFLAGS=
|
830 |
|
|
fi
|
831 |
|
|
fi
|
832 |
|
|
|
833 |
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
834 |
|
|
echo "configure:835: checking how to run the C preprocessor" >&5
|
835 |
|
|
# On Suns, sometimes $CPP names a directory.
|
836 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
837 |
|
|
CPP=
|
838 |
|
|
fi
|
839 |
|
|
if test -z "$CPP"; then
|
840 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
841 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
842 |
|
|
else
|
843 |
|
|
# This must be in double quotes, not single quotes, because CPP may get
|
844 |
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
845 |
|
|
CPP="${CC-cc} -E"
|
846 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
847 |
|
|
# not just through cpp.
|
848 |
|
|
cat > conftest.$ac_ext <
|
849 |
|
|
#line 850 "configure"
|
850 |
|
|
#include "confdefs.h"
|
851 |
|
|
#include
|
852 |
|
|
Syntax Error
|
853 |
|
|
EOF
|
854 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
855 |
|
|
{ (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
856 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
857 |
|
|
if test -z "$ac_err"; then
|
858 |
|
|
:
|
859 |
|
|
else
|
860 |
|
|
echo "$ac_err" >&5
|
861 |
|
|
echo "configure: failed program was:" >&5
|
862 |
|
|
cat conftest.$ac_ext >&5
|
863 |
|
|
rm -rf conftest*
|
864 |
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
865 |
|
|
cat > conftest.$ac_ext <
|
866 |
|
|
#line 867 "configure"
|
867 |
|
|
#include "confdefs.h"
|
868 |
|
|
#include
|
869 |
|
|
Syntax Error
|
870 |
|
|
EOF
|
871 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
872 |
|
|
{ (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
873 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
874 |
|
|
if test -z "$ac_err"; then
|
875 |
|
|
:
|
876 |
|
|
else
|
877 |
|
|
echo "$ac_err" >&5
|
878 |
|
|
echo "configure: failed program was:" >&5
|
879 |
|
|
cat conftest.$ac_ext >&5
|
880 |
|
|
rm -rf conftest*
|
881 |
|
|
CPP="${CC-cc} -nologo -E"
|
882 |
|
|
cat > conftest.$ac_ext <
|
883 |
|
|
#line 884 "configure"
|
884 |
|
|
#include "confdefs.h"
|
885 |
|
|
#include
|
886 |
|
|
Syntax Error
|
887 |
|
|
EOF
|
888 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
889 |
|
|
{ (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
890 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
891 |
|
|
if test -z "$ac_err"; then
|
892 |
|
|
:
|
893 |
|
|
else
|
894 |
|
|
echo "$ac_err" >&5
|
895 |
|
|
echo "configure: failed program was:" >&5
|
896 |
|
|
cat conftest.$ac_ext >&5
|
897 |
|
|
rm -rf conftest*
|
898 |
|
|
CPP=/lib/cpp
|
899 |
|
|
fi
|
900 |
|
|
rm -f conftest*
|
901 |
|
|
fi
|
902 |
|
|
rm -f conftest*
|
903 |
|
|
fi
|
904 |
|
|
rm -f conftest*
|
905 |
|
|
ac_cv_prog_CPP="$CPP"
|
906 |
|
|
fi
|
907 |
|
|
CPP="$ac_cv_prog_CPP"
|
908 |
|
|
else
|
909 |
|
|
ac_cv_prog_CPP="$CPP"
|
910 |
|
|
fi
|
911 |
|
|
echo "$ac_t""$CPP" 1>&6
|
912 |
|
|
|
913 |
|
|
echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
914 |
|
|
echo "configure:915: checking for AIX" >&5
|
915 |
|
|
cat > conftest.$ac_ext <
|
916 |
|
|
#line 917 "configure"
|
917 |
|
|
#include "confdefs.h"
|
918 |
|
|
#ifdef _AIX
|
919 |
|
|
yes
|
920 |
|
|
#endif
|
921 |
|
|
|
922 |
|
|
EOF
|
923 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
924 |
|
|
egrep "yes" >/dev/null 2>&1; then
|
925 |
|
|
rm -rf conftest*
|
926 |
|
|
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
927 |
|
|
#define _ALL_SOURCE 1
|
928 |
|
|
EOF
|
929 |
|
|
|
930 |
|
|
else
|
931 |
|
|
rm -rf conftest*
|
932 |
|
|
echo "$ac_t""no" 1>&6
|
933 |
|
|
fi
|
934 |
|
|
rm -f conftest*
|
935 |
|
|
|
936 |
|
|
|
937 |
|
|
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
938 |
|
|
echo "configure:939: checking for POSIXized ISC" >&5
|
939 |
|
|
if test -d /etc/conf/kconfig.d &&
|
940 |
|
|
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
941 |
|
|
then
|
942 |
|
|
echo "$ac_t""yes" 1>&6
|
943 |
|
|
ISC=yes # If later tests want to check for ISC.
|
944 |
|
|
cat >> confdefs.h <<\EOF
|
945 |
|
|
#define _POSIX_SOURCE 1
|
946 |
|
|
EOF
|
947 |
|
|
|
948 |
|
|
if test "$GCC" = yes; then
|
949 |
|
|
CC="$CC -posix"
|
950 |
|
|
else
|
951 |
|
|
CC="$CC -Xp"
|
952 |
|
|
fi
|
953 |
|
|
else
|
954 |
|
|
echo "$ac_t""no" 1>&6
|
955 |
|
|
ISC=
|
956 |
|
|
fi
|
957 |
|
|
|
958 |
|
|
|
959 |
|
|
|
960 |
|
|
|
961 |
|
|
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
|
962 |
|
|
echo "configure:963: checking for ${CC-cc} option to accept ANSI C" >&5
|
963 |
|
|
if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
|
964 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
965 |
|
|
else
|
966 |
|
|
am_cv_prog_cc_stdc=no
|
967 |
|
|
ac_save_CC="$CC"
|
968 |
|
|
# Don't try gcc -ansi; that turns off useful extensions and
|
969 |
|
|
# breaks some systems' header files.
|
970 |
|
|
# AIX -qlanglvl=ansi
|
971 |
|
|
# Ultrix and OSF/1 -std1
|
972 |
|
|
# HP-UX -Aa -D_HPUX_SOURCE
|
973 |
|
|
# SVR4 -Xc -D__EXTENSIONS__
|
974 |
|
|
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
975 |
|
|
do
|
976 |
|
|
CC="$ac_save_CC $ac_arg"
|
977 |
|
|
cat > conftest.$ac_ext <
|
978 |
|
|
#line 979 "configure"
|
979 |
|
|
#include "confdefs.h"
|
980 |
|
|
#include
|
981 |
|
|
#include
|
982 |
|
|
#include
|
983 |
|
|
#include
|
984 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
985 |
|
|
struct buf { int x; };
|
986 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
987 |
|
|
static char *e (p, i)
|
988 |
|
|
char **p;
|
989 |
|
|
int i;
|
990 |
|
|
{
|
991 |
|
|
return p[i];
|
992 |
|
|
}
|
993 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
994 |
|
|
{
|
995 |
|
|
char *s;
|
996 |
|
|
va_list v;
|
997 |
|
|
va_start (v,p);
|
998 |
|
|
s = g (p, va_arg (v,int));
|
999 |
|
|
va_end (v);
|
1000 |
|
|
return s;
|
1001 |
|
|
}
|
1002 |
|
|
int test (int i, double x);
|
1003 |
|
|
struct s1 {int (*f) (int a);};
|
1004 |
|
|
struct s2 {int (*f) (double a);};
|
1005 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
1006 |
|
|
int argc;
|
1007 |
|
|
char **argv;
|
1008 |
|
|
|
1009 |
|
|
int main() {
|
1010 |
|
|
|
1011 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
1012 |
|
|
|
1013 |
|
|
; return 0; }
|
1014 |
|
|
EOF
|
1015 |
|
|
if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1016 |
|
|
rm -rf conftest*
|
1017 |
|
|
am_cv_prog_cc_stdc="$ac_arg"; break
|
1018 |
|
|
else
|
1019 |
|
|
echo "configure: failed program was:" >&5
|
1020 |
|
|
cat conftest.$ac_ext >&5
|
1021 |
|
|
fi
|
1022 |
|
|
rm -f conftest*
|
1023 |
|
|
done
|
1024 |
|
|
CC="$ac_save_CC"
|
1025 |
|
|
|
1026 |
|
|
fi
|
1027 |
|
|
|
1028 |
|
|
if test -z "$am_cv_prog_cc_stdc"; then
|
1029 |
|
|
echo "$ac_t""none needed" 1>&6
|
1030 |
|
|
else
|
1031 |
|
|
echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
|
1032 |
|
|
fi
|
1033 |
|
|
case "x$am_cv_prog_cc_stdc" in
|
1034 |
|
|
x|xno) ;;
|
1035 |
|
|
*) CC="$CC $am_cv_prog_cc_stdc" ;;
|
1036 |
|
|
esac
|
1037 |
|
|
|
1038 |
|
|
|
1039 |
|
|
ac_aux_dir=
|
1040 |
|
|
for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
|
1041 |
|
|
if test -f $ac_dir/install-sh; then
|
1042 |
|
|
ac_aux_dir=$ac_dir
|
1043 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
1044 |
|
|
break
|
1045 |
|
|
elif test -f $ac_dir/install.sh; then
|
1046 |
|
|
ac_aux_dir=$ac_dir
|
1047 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
1048 |
|
|
break
|
1049 |
|
|
fi
|
1050 |
|
|
done
|
1051 |
|
|
if test -z "$ac_aux_dir"; then
|
1052 |
|
|
{ echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
|
1053 |
|
|
fi
|
1054 |
|
|
ac_config_guess=$ac_aux_dir/config.guess
|
1055 |
|
|
ac_config_sub=$ac_aux_dir/config.sub
|
1056 |
|
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
1057 |
|
|
|
1058 |
|
|
|
1059 |
|
|
# Do some error checking and defaulting for the host and target type.
|
1060 |
|
|
# The inputs are:
|
1061 |
|
|
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
1062 |
|
|
#
|
1063 |
|
|
# The rules are:
|
1064 |
|
|
# 1. You are not allowed to specify --host, --target, and nonopt at the
|
1065 |
|
|
# same time.
|
1066 |
|
|
# 2. Host defaults to nonopt.
|
1067 |
|
|
# 3. If nonopt is not specified, then host defaults to the current host,
|
1068 |
|
|
# as determined by config.guess.
|
1069 |
|
|
# 4. Target and build default to nonopt.
|
1070 |
|
|
# 5. If nonopt is not specified, then target and build default to host.
|
1071 |
|
|
|
1072 |
|
|
# The aliases save the names the user supplied, while $host etc.
|
1073 |
|
|
# will get canonicalized.
|
1074 |
|
|
case $host---$target---$nonopt in
|
1075 |
|
|
NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
1076 |
|
|
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
1077 |
|
|
esac
|
1078 |
|
|
|
1079 |
|
|
|
1080 |
|
|
# Make sure we can run config.sub.
|
1081 |
|
|
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
1082 |
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
1083 |
|
|
fi
|
1084 |
|
|
|
1085 |
|
|
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
1086 |
|
|
echo "configure:1087: checking host system type" >&5
|
1087 |
|
|
|
1088 |
|
|
host_alias=$host
|
1089 |
|
|
case "$host_alias" in
|
1090 |
|
|
NONE)
|
1091 |
|
|
case $nonopt in
|
1092 |
|
|
NONE)
|
1093 |
|
|
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
1094 |
|
|
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
1095 |
|
|
fi ;;
|
1096 |
|
|
*) host_alias=$nonopt ;;
|
1097 |
|
|
esac ;;
|
1098 |
|
|
esac
|
1099 |
|
|
|
1100 |
|
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
1101 |
|
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
1102 |
|
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
1103 |
|
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
1104 |
|
|
echo "$ac_t""$host" 1>&6
|
1105 |
|
|
|
1106 |
|
|
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
1107 |
|
|
echo "configure:1108: checking target system type" >&5
|
1108 |
|
|
|
1109 |
|
|
target_alias=$target
|
1110 |
|
|
case "$target_alias" in
|
1111 |
|
|
NONE)
|
1112 |
|
|
case $nonopt in
|
1113 |
|
|
NONE) target_alias=$host_alias ;;
|
1114 |
|
|
*) target_alias=$nonopt ;;
|
1115 |
|
|
esac ;;
|
1116 |
|
|
esac
|
1117 |
|
|
|
1118 |
|
|
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
1119 |
|
|
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
1120 |
|
|
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
1121 |
|
|
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
1122 |
|
|
echo "$ac_t""$target" 1>&6
|
1123 |
|
|
|
1124 |
|
|
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
1125 |
|
|
echo "configure:1126: checking build system type" >&5
|
1126 |
|
|
|
1127 |
|
|
build_alias=$build
|
1128 |
|
|
case "$build_alias" in
|
1129 |
|
|
NONE)
|
1130 |
|
|
case $nonopt in
|
1131 |
|
|
NONE) build_alias=$host_alias ;;
|
1132 |
|
|
*) build_alias=$nonopt ;;
|
1133 |
|
|
esac ;;
|
1134 |
|
|
esac
|
1135 |
|
|
|
1136 |
|
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
1137 |
|
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
1138 |
|
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
1139 |
|
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
1140 |
|
|
echo "$ac_t""$build" 1>&6
|
1141 |
|
|
|
1142 |
|
|
test "$host_alias" != "$target_alias" &&
|
1143 |
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
1144 |
|
|
NONENONEs,x,x, &&
|
1145 |
|
|
program_prefix=${target_alias}-
|
1146 |
|
|
|
1147 |
|
|
|
1148 |
|
|
ALL_LINGUAS=
|
1149 |
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
1150 |
|
|
echo "configure:1151: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
1151 |
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
1152 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
1153 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1154 |
|
|
else
|
1155 |
|
|
cat > conftestmake <<\EOF
|
1156 |
|
|
all:
|
1157 |
|
|
@echo 'ac_maketemp="${MAKE}"'
|
1158 |
|
|
EOF
|
1159 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
1160 |
|
|
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
1161 |
|
|
if test -n "$ac_maketemp"; then
|
1162 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
1163 |
|
|
else
|
1164 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
1165 |
|
|
fi
|
1166 |
|
|
rm -f conftestmake
|
1167 |
|
|
fi
|
1168 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
1169 |
|
|
echo "$ac_t""yes" 1>&6
|
1170 |
|
|
SET_MAKE=
|
1171 |
|
|
else
|
1172 |
|
|
echo "$ac_t""no" 1>&6
|
1173 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
1174 |
|
|
fi
|
1175 |
|
|
|
1176 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
1177 |
|
|
set dummy ranlib; ac_word=$2
|
1178 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1179 |
|
|
echo "configure:1180: checking for $ac_word" >&5
|
1180 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
1181 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1182 |
|
|
else
|
1183 |
|
|
if test -n "$RANLIB"; then
|
1184 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
1185 |
|
|
else
|
1186 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1187 |
|
|
ac_dummy="$PATH"
|
1188 |
|
|
for ac_dir in $ac_dummy; do
|
1189 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1190 |
|
|
if test -f $ac_dir/$ac_word; then
|
1191 |
|
|
ac_cv_prog_RANLIB="ranlib"
|
1192 |
|
|
break
|
1193 |
|
|
fi
|
1194 |
|
|
done
|
1195 |
|
|
IFS="$ac_save_ifs"
|
1196 |
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
1197 |
|
|
fi
|
1198 |
|
|
fi
|
1199 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
1200 |
|
|
if test -n "$RANLIB"; then
|
1201 |
|
|
echo "$ac_t""$RANLIB" 1>&6
|
1202 |
|
|
else
|
1203 |
|
|
echo "$ac_t""no" 1>&6
|
1204 |
|
|
fi
|
1205 |
|
|
|
1206 |
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
1207 |
|
|
echo "configure:1208: checking for ANSI C header files" >&5
|
1208 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
1209 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1210 |
|
|
else
|
1211 |
|
|
cat > conftest.$ac_ext <
|
1212 |
|
|
#line 1213 "configure"
|
1213 |
|
|
#include "confdefs.h"
|
1214 |
|
|
#include
|
1215 |
|
|
#include
|
1216 |
|
|
#include
|
1217 |
|
|
#include
|
1218 |
|
|
EOF
|
1219 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1220 |
|
|
{ (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1221 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1222 |
|
|
if test -z "$ac_err"; then
|
1223 |
|
|
rm -rf conftest*
|
1224 |
|
|
ac_cv_header_stdc=yes
|
1225 |
|
|
else
|
1226 |
|
|
echo "$ac_err" >&5
|
1227 |
|
|
echo "configure: failed program was:" >&5
|
1228 |
|
|
cat conftest.$ac_ext >&5
|
1229 |
|
|
rm -rf conftest*
|
1230 |
|
|
ac_cv_header_stdc=no
|
1231 |
|
|
fi
|
1232 |
|
|
rm -f conftest*
|
1233 |
|
|
|
1234 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1235 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
1236 |
|
|
cat > conftest.$ac_ext <
|
1237 |
|
|
#line 1238 "configure"
|
1238 |
|
|
#include "confdefs.h"
|
1239 |
|
|
#include
|
1240 |
|
|
EOF
|
1241 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1242 |
|
|
egrep "memchr" >/dev/null 2>&1; then
|
1243 |
|
|
:
|
1244 |
|
|
else
|
1245 |
|
|
rm -rf conftest*
|
1246 |
|
|
ac_cv_header_stdc=no
|
1247 |
|
|
fi
|
1248 |
|
|
rm -f conftest*
|
1249 |
|
|
|
1250 |
|
|
fi
|
1251 |
|
|
|
1252 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1253 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
1254 |
|
|
cat > conftest.$ac_ext <
|
1255 |
|
|
#line 1256 "configure"
|
1256 |
|
|
#include "confdefs.h"
|
1257 |
|
|
#include
|
1258 |
|
|
EOF
|
1259 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1260 |
|
|
egrep "free" >/dev/null 2>&1; then
|
1261 |
|
|
:
|
1262 |
|
|
else
|
1263 |
|
|
rm -rf conftest*
|
1264 |
|
|
ac_cv_header_stdc=no
|
1265 |
|
|
fi
|
1266 |
|
|
rm -f conftest*
|
1267 |
|
|
|
1268 |
|
|
fi
|
1269 |
|
|
|
1270 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1271 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
1272 |
|
|
if test "$cross_compiling" = yes; then
|
1273 |
|
|
:
|
1274 |
|
|
else
|
1275 |
|
|
cat > conftest.$ac_ext <
|
1276 |
|
|
#line 1277 "configure"
|
1277 |
|
|
#include "confdefs.h"
|
1278 |
|
|
#include
|
1279 |
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
1280 |
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
1281 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
1282 |
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
1283 |
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
1284 |
|
|
exit (0); }
|
1285 |
|
|
|
1286 |
|
|
EOF
|
1287 |
|
|
if { (eval echo configure:1288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1288 |
|
|
then
|
1289 |
|
|
:
|
1290 |
|
|
else
|
1291 |
|
|
echo "configure: failed program was:" >&5
|
1292 |
|
|
cat conftest.$ac_ext >&5
|
1293 |
|
|
rm -fr conftest*
|
1294 |
|
|
ac_cv_header_stdc=no
|
1295 |
|
|
fi
|
1296 |
|
|
rm -fr conftest*
|
1297 |
|
|
fi
|
1298 |
|
|
|
1299 |
|
|
fi
|
1300 |
|
|
fi
|
1301 |
|
|
|
1302 |
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
1303 |
|
|
if test $ac_cv_header_stdc = yes; then
|
1304 |
|
|
cat >> confdefs.h <<\EOF
|
1305 |
|
|
#define STDC_HEADERS 1
|
1306 |
|
|
EOF
|
1307 |
|
|
|
1308 |
|
|
fi
|
1309 |
|
|
|
1310 |
|
|
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
1311 |
|
|
echo "configure:1312: checking for working const" >&5
|
1312 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
1313 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1314 |
|
|
else
|
1315 |
|
|
cat > conftest.$ac_ext <
|
1316 |
|
|
#line 1317 "configure"
|
1317 |
|
|
#include "confdefs.h"
|
1318 |
|
|
|
1319 |
|
|
int main() {
|
1320 |
|
|
|
1321 |
|
|
/* Ultrix mips cc rejects this. */
|
1322 |
|
|
typedef int charset[2]; const charset x;
|
1323 |
|
|
/* SunOS 4.1.1 cc rejects this. */
|
1324 |
|
|
char const *const *ccp;
|
1325 |
|
|
char **p;
|
1326 |
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
1327 |
|
|
struct point {int x, y;};
|
1328 |
|
|
static struct point const zero = {0,0};
|
1329 |
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
1330 |
|
|
It does not let you subtract one const X* pointer from another in an arm
|
1331 |
|
|
of an if-expression whose if-part is not a constant expression */
|
1332 |
|
|
const char *g = "string";
|
1333 |
|
|
ccp = &g + (g ? g-g : 0);
|
1334 |
|
|
/* HPUX 7.0 cc rejects these. */
|
1335 |
|
|
++ccp;
|
1336 |
|
|
p = (char**) ccp;
|
1337 |
|
|
ccp = (char const *const *) p;
|
1338 |
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
1339 |
|
|
char *t;
|
1340 |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
1341 |
|
|
|
1342 |
|
|
*t++ = 0;
|
1343 |
|
|
}
|
1344 |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
1345 |
|
|
int x[] = {25, 17};
|
1346 |
|
|
const int *foo = &x[0];
|
1347 |
|
|
++foo;
|
1348 |
|
|
}
|
1349 |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
1350 |
|
|
typedef const int *iptr;
|
1351 |
|
|
iptr p = 0;
|
1352 |
|
|
++p;
|
1353 |
|
|
}
|
1354 |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
1355 |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
1356 |
|
|
struct s { int j; const int *ap[3]; };
|
1357 |
|
|
struct s *b; b->j = 5;
|
1358 |
|
|
}
|
1359 |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
1360 |
|
|
const int foo = 10;
|
1361 |
|
|
}
|
1362 |
|
|
|
1363 |
|
|
; return 0; }
|
1364 |
|
|
EOF
|
1365 |
|
|
if { (eval echo configure:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1366 |
|
|
rm -rf conftest*
|
1367 |
|
|
ac_cv_c_const=yes
|
1368 |
|
|
else
|
1369 |
|
|
echo "configure: failed program was:" >&5
|
1370 |
|
|
cat conftest.$ac_ext >&5
|
1371 |
|
|
rm -rf conftest*
|
1372 |
|
|
ac_cv_c_const=no
|
1373 |
|
|
fi
|
1374 |
|
|
rm -f conftest*
|
1375 |
|
|
fi
|
1376 |
|
|
|
1377 |
|
|
echo "$ac_t""$ac_cv_c_const" 1>&6
|
1378 |
|
|
if test $ac_cv_c_const = no; then
|
1379 |
|
|
cat >> confdefs.h <<\EOF
|
1380 |
|
|
#define const
|
1381 |
|
|
EOF
|
1382 |
|
|
|
1383 |
|
|
fi
|
1384 |
|
|
|
1385 |
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
1386 |
|
|
echo "configure:1387: checking for inline" >&5
|
1387 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
1388 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1389 |
|
|
else
|
1390 |
|
|
ac_cv_c_inline=no
|
1391 |
|
|
for ac_kw in inline __inline__ __inline; do
|
1392 |
|
|
cat > conftest.$ac_ext <
|
1393 |
|
|
#line 1394 "configure"
|
1394 |
|
|
#include "confdefs.h"
|
1395 |
|
|
|
1396 |
|
|
int main() {
|
1397 |
|
|
} $ac_kw foo() {
|
1398 |
|
|
; return 0; }
|
1399 |
|
|
EOF
|
1400 |
|
|
if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1401 |
|
|
rm -rf conftest*
|
1402 |
|
|
ac_cv_c_inline=$ac_kw; break
|
1403 |
|
|
else
|
1404 |
|
|
echo "configure: failed program was:" >&5
|
1405 |
|
|
cat conftest.$ac_ext >&5
|
1406 |
|
|
fi
|
1407 |
|
|
rm -f conftest*
|
1408 |
|
|
done
|
1409 |
|
|
|
1410 |
|
|
fi
|
1411 |
|
|
|
1412 |
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
1413 |
|
|
case "$ac_cv_c_inline" in
|
1414 |
|
|
inline | yes) ;;
|
1415 |
|
|
no) cat >> confdefs.h <<\EOF
|
1416 |
|
|
#define inline
|
1417 |
|
|
EOF
|
1418 |
|
|
;;
|
1419 |
|
|
*) cat >> confdefs.h <
|
1420 |
|
|
#define inline $ac_cv_c_inline
|
1421 |
|
|
EOF
|
1422 |
|
|
;;
|
1423 |
|
|
esac
|
1424 |
|
|
|
1425 |
|
|
echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
1426 |
|
|
echo "configure:1427: checking for off_t" >&5
|
1427 |
|
|
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
1428 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1429 |
|
|
else
|
1430 |
|
|
cat > conftest.$ac_ext <
|
1431 |
|
|
#line 1432 "configure"
|
1432 |
|
|
#include "confdefs.h"
|
1433 |
|
|
#include
|
1434 |
|
|
#if STDC_HEADERS
|
1435 |
|
|
#include
|
1436 |
|
|
#include
|
1437 |
|
|
#endif
|
1438 |
|
|
EOF
|
1439 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1440 |
|
|
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
1441 |
|
|
rm -rf conftest*
|
1442 |
|
|
ac_cv_type_off_t=yes
|
1443 |
|
|
else
|
1444 |
|
|
rm -rf conftest*
|
1445 |
|
|
ac_cv_type_off_t=no
|
1446 |
|
|
fi
|
1447 |
|
|
rm -f conftest*
|
1448 |
|
|
|
1449 |
|
|
fi
|
1450 |
|
|
echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
1451 |
|
|
if test $ac_cv_type_off_t = no; then
|
1452 |
|
|
cat >> confdefs.h <<\EOF
|
1453 |
|
|
#define off_t long
|
1454 |
|
|
EOF
|
1455 |
|
|
|
1456 |
|
|
fi
|
1457 |
|
|
|
1458 |
|
|
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
1459 |
|
|
echo "configure:1460: checking for size_t" >&5
|
1460 |
|
|
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
1461 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1462 |
|
|
else
|
1463 |
|
|
cat > conftest.$ac_ext <
|
1464 |
|
|
#line 1465 "configure"
|
1465 |
|
|
#include "confdefs.h"
|
1466 |
|
|
#include
|
1467 |
|
|
#if STDC_HEADERS
|
1468 |
|
|
#include
|
1469 |
|
|
#include
|
1470 |
|
|
#endif
|
1471 |
|
|
EOF
|
1472 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1473 |
|
|
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
1474 |
|
|
rm -rf conftest*
|
1475 |
|
|
ac_cv_type_size_t=yes
|
1476 |
|
|
else
|
1477 |
|
|
rm -rf conftest*
|
1478 |
|
|
ac_cv_type_size_t=no
|
1479 |
|
|
fi
|
1480 |
|
|
rm -f conftest*
|
1481 |
|
|
|
1482 |
|
|
fi
|
1483 |
|
|
echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
1484 |
|
|
if test $ac_cv_type_size_t = no; then
|
1485 |
|
|
cat >> confdefs.h <<\EOF
|
1486 |
|
|
#define size_t unsigned
|
1487 |
|
|
EOF
|
1488 |
|
|
|
1489 |
|
|
fi
|
1490 |
|
|
|
1491 |
|
|
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
1492 |
|
|
# for constant arguments. Useless!
|
1493 |
|
|
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
1494 |
|
|
echo "configure:1495: checking for working alloca.h" >&5
|
1495 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
1496 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1497 |
|
|
else
|
1498 |
|
|
cat > conftest.$ac_ext <
|
1499 |
|
|
#line 1500 "configure"
|
1500 |
|
|
#include "confdefs.h"
|
1501 |
|
|
#include
|
1502 |
|
|
int main() {
|
1503 |
|
|
char *p = alloca(2 * sizeof(int));
|
1504 |
|
|
; return 0; }
|
1505 |
|
|
EOF
|
1506 |
|
|
if { (eval echo configure:1507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1507 |
|
|
rm -rf conftest*
|
1508 |
|
|
ac_cv_header_alloca_h=yes
|
1509 |
|
|
else
|
1510 |
|
|
echo "configure: failed program was:" >&5
|
1511 |
|
|
cat conftest.$ac_ext >&5
|
1512 |
|
|
rm -rf conftest*
|
1513 |
|
|
ac_cv_header_alloca_h=no
|
1514 |
|
|
fi
|
1515 |
|
|
rm -f conftest*
|
1516 |
|
|
fi
|
1517 |
|
|
|
1518 |
|
|
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
1519 |
|
|
if test $ac_cv_header_alloca_h = yes; then
|
1520 |
|
|
cat >> confdefs.h <<\EOF
|
1521 |
|
|
#define HAVE_ALLOCA_H 1
|
1522 |
|
|
EOF
|
1523 |
|
|
|
1524 |
|
|
fi
|
1525 |
|
|
|
1526 |
|
|
echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
1527 |
|
|
echo "configure:1528: checking for alloca" >&5
|
1528 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
1529 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1530 |
|
|
else
|
1531 |
|
|
cat > conftest.$ac_ext <
|
1532 |
|
|
#line 1533 "configure"
|
1533 |
|
|
#include "confdefs.h"
|
1534 |
|
|
|
1535 |
|
|
#ifdef __GNUC__
|
1536 |
|
|
# define alloca __builtin_alloca
|
1537 |
|
|
#else
|
1538 |
|
|
# ifdef _MSC_VER
|
1539 |
|
|
# include
|
1540 |
|
|
# define alloca _alloca
|
1541 |
|
|
# else
|
1542 |
|
|
# if HAVE_ALLOCA_H
|
1543 |
|
|
# include
|
1544 |
|
|
# else
|
1545 |
|
|
# ifdef _AIX
|
1546 |
|
|
#pragma alloca
|
1547 |
|
|
# else
|
1548 |
|
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
1549 |
|
|
char *alloca ();
|
1550 |
|
|
# endif
|
1551 |
|
|
# endif
|
1552 |
|
|
# endif
|
1553 |
|
|
# endif
|
1554 |
|
|
#endif
|
1555 |
|
|
|
1556 |
|
|
int main() {
|
1557 |
|
|
char *p = (char *) alloca(1);
|
1558 |
|
|
; return 0; }
|
1559 |
|
|
EOF
|
1560 |
|
|
if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1561 |
|
|
rm -rf conftest*
|
1562 |
|
|
ac_cv_func_alloca_works=yes
|
1563 |
|
|
else
|
1564 |
|
|
echo "configure: failed program was:" >&5
|
1565 |
|
|
cat conftest.$ac_ext >&5
|
1566 |
|
|
rm -rf conftest*
|
1567 |
|
|
ac_cv_func_alloca_works=no
|
1568 |
|
|
fi
|
1569 |
|
|
rm -f conftest*
|
1570 |
|
|
fi
|
1571 |
|
|
|
1572 |
|
|
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
1573 |
|
|
if test $ac_cv_func_alloca_works = yes; then
|
1574 |
|
|
cat >> confdefs.h <<\EOF
|
1575 |
|
|
#define HAVE_ALLOCA 1
|
1576 |
|
|
EOF
|
1577 |
|
|
|
1578 |
|
|
fi
|
1579 |
|
|
|
1580 |
|
|
if test $ac_cv_func_alloca_works = no; then
|
1581 |
|
|
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
1582 |
|
|
# that cause trouble. Some versions do not even contain alloca or
|
1583 |
|
|
# contain a buggy version. If you still want to use their alloca,
|
1584 |
|
|
# use ar to extract alloca.o from them instead of compiling alloca.c.
|
1585 |
|
|
ALLOCA=alloca.${ac_objext}
|
1586 |
|
|
cat >> confdefs.h <<\EOF
|
1587 |
|
|
#define C_ALLOCA 1
|
1588 |
|
|
EOF
|
1589 |
|
|
|
1590 |
|
|
|
1591 |
|
|
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
1592 |
|
|
echo "configure:1593: checking whether alloca needs Cray hooks" >&5
|
1593 |
|
|
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
1594 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1595 |
|
|
else
|
1596 |
|
|
cat > conftest.$ac_ext <
|
1597 |
|
|
#line 1598 "configure"
|
1598 |
|
|
#include "confdefs.h"
|
1599 |
|
|
#if defined(CRAY) && ! defined(CRAY2)
|
1600 |
|
|
webecray
|
1601 |
|
|
#else
|
1602 |
|
|
wenotbecray
|
1603 |
|
|
#endif
|
1604 |
|
|
|
1605 |
|
|
EOF
|
1606 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1607 |
|
|
egrep "webecray" >/dev/null 2>&1; then
|
1608 |
|
|
rm -rf conftest*
|
1609 |
|
|
ac_cv_os_cray=yes
|
1610 |
|
|
else
|
1611 |
|
|
rm -rf conftest*
|
1612 |
|
|
ac_cv_os_cray=no
|
1613 |
|
|
fi
|
1614 |
|
|
rm -f conftest*
|
1615 |
|
|
|
1616 |
|
|
fi
|
1617 |
|
|
|
1618 |
|
|
echo "$ac_t""$ac_cv_os_cray" 1>&6
|
1619 |
|
|
if test $ac_cv_os_cray = yes; then
|
1620 |
|
|
for ac_func in _getb67 GETB67 getb67; do
|
1621 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1622 |
|
|
echo "configure:1623: checking for $ac_func" >&5
|
1623 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1624 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1625 |
|
|
else
|
1626 |
|
|
cat > conftest.$ac_ext <
|
1627 |
|
|
#line 1628 "configure"
|
1628 |
|
|
#include "confdefs.h"
|
1629 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
1630 |
|
|
which can conflict with char $ac_func(); below. */
|
1631 |
|
|
#include
|
1632 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
1633 |
|
|
/* We use char because int might match the return type of a gcc2
|
1634 |
|
|
builtin and then its argument prototype would still apply. */
|
1635 |
|
|
char $ac_func();
|
1636 |
|
|
|
1637 |
|
|
int main() {
|
1638 |
|
|
|
1639 |
|
|
/* The GNU C library defines this for functions which it implements
|
1640 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
1641 |
|
|
something starting with __ and the normal name is an alias. */
|
1642 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
1643 |
|
|
choke me
|
1644 |
|
|
#else
|
1645 |
|
|
$ac_func();
|
1646 |
|
|
#endif
|
1647 |
|
|
|
1648 |
|
|
; return 0; }
|
1649 |
|
|
EOF
|
1650 |
|
|
if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1651 |
|
|
rm -rf conftest*
|
1652 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
1653 |
|
|
else
|
1654 |
|
|
echo "configure: failed program was:" >&5
|
1655 |
|
|
cat conftest.$ac_ext >&5
|
1656 |
|
|
rm -rf conftest*
|
1657 |
|
|
eval "ac_cv_func_$ac_func=no"
|
1658 |
|
|
fi
|
1659 |
|
|
rm -f conftest*
|
1660 |
|
|
fi
|
1661 |
|
|
|
1662 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
1663 |
|
|
echo "$ac_t""yes" 1>&6
|
1664 |
|
|
cat >> confdefs.h <
|
1665 |
|
|
#define CRAY_STACKSEG_END $ac_func
|
1666 |
|
|
EOF
|
1667 |
|
|
|
1668 |
|
|
break
|
1669 |
|
|
else
|
1670 |
|
|
echo "$ac_t""no" 1>&6
|
1671 |
|
|
fi
|
1672 |
|
|
|
1673 |
|
|
done
|
1674 |
|
|
fi
|
1675 |
|
|
|
1676 |
|
|
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
1677 |
|
|
echo "configure:1678: checking stack direction for C alloca" >&5
|
1678 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
1679 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1680 |
|
|
else
|
1681 |
|
|
if test "$cross_compiling" = yes; then
|
1682 |
|
|
ac_cv_c_stack_direction=0
|
1683 |
|
|
else
|
1684 |
|
|
cat > conftest.$ac_ext <
|
1685 |
|
|
#line 1686 "configure"
|
1686 |
|
|
#include "confdefs.h"
|
1687 |
|
|
find_stack_direction ()
|
1688 |
|
|
{
|
1689 |
|
|
static char *addr = 0;
|
1690 |
|
|
auto char dummy;
|
1691 |
|
|
if (addr == 0)
|
1692 |
|
|
{
|
1693 |
|
|
addr = &dummy;
|
1694 |
|
|
return find_stack_direction ();
|
1695 |
|
|
}
|
1696 |
|
|
else
|
1697 |
|
|
return (&dummy > addr) ? 1 : -1;
|
1698 |
|
|
}
|
1699 |
|
|
main ()
|
1700 |
|
|
{
|
1701 |
|
|
exit (find_stack_direction() < 0);
|
1702 |
|
|
}
|
1703 |
|
|
EOF
|
1704 |
|
|
if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1705 |
|
|
then
|
1706 |
|
|
ac_cv_c_stack_direction=1
|
1707 |
|
|
else
|
1708 |
|
|
echo "configure: failed program was:" >&5
|
1709 |
|
|
cat conftest.$ac_ext >&5
|
1710 |
|
|
rm -fr conftest*
|
1711 |
|
|
ac_cv_c_stack_direction=-1
|
1712 |
|
|
fi
|
1713 |
|
|
rm -fr conftest*
|
1714 |
|
|
fi
|
1715 |
|
|
|
1716 |
|
|
fi
|
1717 |
|
|
|
1718 |
|
|
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
1719 |
|
|
cat >> confdefs.h <
|
1720 |
|
|
#define STACK_DIRECTION $ac_cv_c_stack_direction
|
1721 |
|
|
EOF
|
1722 |
|
|
|
1723 |
|
|
fi
|
1724 |
|
|
|
1725 |
|
|
for ac_hdr in unistd.h
|
1726 |
|
|
do
|
1727 |
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
1728 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1729 |
|
|
echo "configure:1730: checking for $ac_hdr" >&5
|
1730 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1731 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1732 |
|
|
else
|
1733 |
|
|
cat > conftest.$ac_ext <
|
1734 |
|
|
#line 1735 "configure"
|
1735 |
|
|
#include "confdefs.h"
|
1736 |
|
|
#include <$ac_hdr>
|
1737 |
|
|
EOF
|
1738 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1739 |
|
|
{ (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1740 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1741 |
|
|
if test -z "$ac_err"; then
|
1742 |
|
|
rm -rf conftest*
|
1743 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
1744 |
|
|
else
|
1745 |
|
|
echo "$ac_err" >&5
|
1746 |
|
|
echo "configure: failed program was:" >&5
|
1747 |
|
|
cat conftest.$ac_ext >&5
|
1748 |
|
|
rm -rf conftest*
|
1749 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
1750 |
|
|
fi
|
1751 |
|
|
rm -f conftest*
|
1752 |
|
|
fi
|
1753 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
1754 |
|
|
echo "$ac_t""yes" 1>&6
|
1755 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
1756 |
|
|
cat >> confdefs.h <
|
1757 |
|
|
#define $ac_tr_hdr 1
|
1758 |
|
|
EOF
|
1759 |
|
|
|
1760 |
|
|
else
|
1761 |
|
|
echo "$ac_t""no" 1>&6
|
1762 |
|
|
fi
|
1763 |
|
|
done
|
1764 |
|
|
|
1765 |
|
|
for ac_func in getpagesize
|
1766 |
|
|
do
|
1767 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
1768 |
|
|
echo "configure:1769: checking for $ac_func" >&5
|
1769 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1770 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1771 |
|
|
else
|
1772 |
|
|
cat > conftest.$ac_ext <
|
1773 |
|
|
#line 1774 "configure"
|
1774 |
|
|
#include "confdefs.h"
|
1775 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
1776 |
|
|
which can conflict with char $ac_func(); below. */
|
1777 |
|
|
#include
|
1778 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
1779 |
|
|
/* We use char because int might match the return type of a gcc2
|
1780 |
|
|
builtin and then its argument prototype would still apply. */
|
1781 |
|
|
char $ac_func();
|
1782 |
|
|
|
1783 |
|
|
int main() {
|
1784 |
|
|
|
1785 |
|
|
/* The GNU C library defines this for functions which it implements
|
1786 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
1787 |
|
|
something starting with __ and the normal name is an alias. */
|
1788 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
1789 |
|
|
choke me
|
1790 |
|
|
#else
|
1791 |
|
|
$ac_func();
|
1792 |
|
|
#endif
|
1793 |
|
|
|
1794 |
|
|
; return 0; }
|
1795 |
|
|
EOF
|
1796 |
|
|
if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1797 |
|
|
rm -rf conftest*
|
1798 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
1799 |
|
|
else
|
1800 |
|
|
echo "configure: failed program was:" >&5
|
1801 |
|
|
cat conftest.$ac_ext >&5
|
1802 |
|
|
rm -rf conftest*
|
1803 |
|
|
eval "ac_cv_func_$ac_func=no"
|
1804 |
|
|
fi
|
1805 |
|
|
rm -f conftest*
|
1806 |
|
|
fi
|
1807 |
|
|
|
1808 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
1809 |
|
|
echo "$ac_t""yes" 1>&6
|
1810 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
1811 |
|
|
cat >> confdefs.h <
|
1812 |
|
|
#define $ac_tr_func 1
|
1813 |
|
|
EOF
|
1814 |
|
|
|
1815 |
|
|
else
|
1816 |
|
|
echo "$ac_t""no" 1>&6
|
1817 |
|
|
fi
|
1818 |
|
|
done
|
1819 |
|
|
|
1820 |
|
|
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
1821 |
|
|
echo "configure:1822: checking for working mmap" >&5
|
1822 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
1823 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1824 |
|
|
else
|
1825 |
|
|
if test "$cross_compiling" = yes; then
|
1826 |
|
|
ac_cv_func_mmap_fixed_mapped=no
|
1827 |
|
|
else
|
1828 |
|
|
cat > conftest.$ac_ext <
|
1829 |
|
|
#line 1830 "configure"
|
1830 |
|
|
#include "confdefs.h"
|
1831 |
|
|
|
1832 |
|
|
/* Thanks to Mike Haertel and Jim Avera for this test.
|
1833 |
|
|
Here is a matrix of mmap possibilities:
|
1834 |
|
|
mmap private not fixed
|
1835 |
|
|
mmap private fixed at somewhere currently unmapped
|
1836 |
|
|
mmap private fixed at somewhere already mapped
|
1837 |
|
|
mmap shared not fixed
|
1838 |
|
|
mmap shared fixed at somewhere currently unmapped
|
1839 |
|
|
mmap shared fixed at somewhere already mapped
|
1840 |
|
|
For private mappings, we should verify that changes cannot be read()
|
1841 |
|
|
back from the file, nor mmap's back from the file at a different
|
1842 |
|
|
address. (There have been systems where private was not correctly
|
1843 |
|
|
implemented like the infamous i386 svr4.0, and systems where the
|
1844 |
|
|
VM page cache was not coherent with the filesystem buffer cache
|
1845 |
|
|
like early versions of FreeBSD and possibly contemporary NetBSD.)
|
1846 |
|
|
For shared mappings, we should conversely verify that changes get
|
1847 |
|
|
propogated back to all the places they're supposed to be.
|
1848 |
|
|
|
1849 |
|
|
Grep wants private fixed already mapped.
|
1850 |
|
|
The main things grep needs to know about mmap are:
|
1851 |
|
|
* does it exist and is it safe to write into the mmap'd area
|
1852 |
|
|
* how to use it (BSD variants) */
|
1853 |
|
|
#include
|
1854 |
|
|
#include
|
1855 |
|
|
#include
|
1856 |
|
|
|
1857 |
|
|
/* This mess was copied from the GNU getpagesize.h. */
|
1858 |
|
|
#ifndef HAVE_GETPAGESIZE
|
1859 |
|
|
# ifdef HAVE_UNISTD_H
|
1860 |
|
|
# include
|
1861 |
|
|
# endif
|
1862 |
|
|
|
1863 |
|
|
/* Assume that all systems that can run configure have sys/param.h. */
|
1864 |
|
|
# ifndef HAVE_SYS_PARAM_H
|
1865 |
|
|
# define HAVE_SYS_PARAM_H 1
|
1866 |
|
|
# endif
|
1867 |
|
|
|
1868 |
|
|
# ifdef _SC_PAGESIZE
|
1869 |
|
|
# define getpagesize() sysconf(_SC_PAGESIZE)
|
1870 |
|
|
# else /* no _SC_PAGESIZE */
|
1871 |
|
|
# ifdef HAVE_SYS_PARAM_H
|
1872 |
|
|
# include
|
1873 |
|
|
# ifdef EXEC_PAGESIZE
|
1874 |
|
|
# define getpagesize() EXEC_PAGESIZE
|
1875 |
|
|
# else /* no EXEC_PAGESIZE */
|
1876 |
|
|
# ifdef NBPG
|
1877 |
|
|
# define getpagesize() NBPG * CLSIZE
|
1878 |
|
|
# ifndef CLSIZE
|
1879 |
|
|
# define CLSIZE 1
|
1880 |
|
|
# endif /* no CLSIZE */
|
1881 |
|
|
# else /* no NBPG */
|
1882 |
|
|
# ifdef NBPC
|
1883 |
|
|
# define getpagesize() NBPC
|
1884 |
|
|
# else /* no NBPC */
|
1885 |
|
|
# ifdef PAGESIZE
|
1886 |
|
|
# define getpagesize() PAGESIZE
|
1887 |
|
|
# endif /* PAGESIZE */
|
1888 |
|
|
# endif /* no NBPC */
|
1889 |
|
|
# endif /* no NBPG */
|
1890 |
|
|
# endif /* no EXEC_PAGESIZE */
|
1891 |
|
|
# else /* no HAVE_SYS_PARAM_H */
|
1892 |
|
|
# define getpagesize() 8192 /* punt totally */
|
1893 |
|
|
# endif /* no HAVE_SYS_PARAM_H */
|
1894 |
|
|
# endif /* no _SC_PAGESIZE */
|
1895 |
|
|
|
1896 |
|
|
#endif /* no HAVE_GETPAGESIZE */
|
1897 |
|
|
|
1898 |
|
|
#ifdef __cplusplus
|
1899 |
|
|
extern "C" { void *malloc(unsigned); }
|
1900 |
|
|
#else
|
1901 |
|
|
char *malloc();
|
1902 |
|
|
#endif
|
1903 |
|
|
|
1904 |
|
|
int
|
1905 |
|
|
main()
|
1906 |
|
|
{
|
1907 |
|
|
char *data, *data2, *data3;
|
1908 |
|
|
int i, pagesize;
|
1909 |
|
|
int fd;
|
1910 |
|
|
|
1911 |
|
|
pagesize = getpagesize();
|
1912 |
|
|
|
1913 |
|
|
/*
|
1914 |
|
|
* First, make a file with some known garbage in it.
|
1915 |
|
|
*/
|
1916 |
|
|
data = malloc(pagesize);
|
1917 |
|
|
if (!data)
|
1918 |
|
|
exit(1);
|
1919 |
|
|
for (i = 0; i < pagesize; ++i)
|
1920 |
|
|
*(data + i) = rand();
|
1921 |
|
|
umask(0);
|
1922 |
|
|
fd = creat("conftestmmap", 0600);
|
1923 |
|
|
if (fd < 0)
|
1924 |
|
|
exit(1);
|
1925 |
|
|
if (write(fd, data, pagesize) != pagesize)
|
1926 |
|
|
exit(1);
|
1927 |
|
|
close(fd);
|
1928 |
|
|
|
1929 |
|
|
/*
|
1930 |
|
|
* Next, try to mmap the file at a fixed address which
|
1931 |
|
|
* already has something else allocated at it. If we can,
|
1932 |
|
|
* also make sure that we see the same garbage.
|
1933 |
|
|
*/
|
1934 |
|
|
fd = open("conftestmmap", O_RDWR);
|
1935 |
|
|
if (fd < 0)
|
1936 |
|
|
exit(1);
|
1937 |
|
|
data2 = malloc(2 * pagesize);
|
1938 |
|
|
if (!data2)
|
1939 |
|
|
exit(1);
|
1940 |
|
|
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
1941 |
|
|
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
1942 |
|
|
MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
1943 |
|
|
exit(1);
|
1944 |
|
|
for (i = 0; i < pagesize; ++i)
|
1945 |
|
|
if (*(data + i) != *(data2 + i))
|
1946 |
|
|
exit(1);
|
1947 |
|
|
|
1948 |
|
|
/*
|
1949 |
|
|
* Finally, make sure that changes to the mapped area
|
1950 |
|
|
* do not percolate back to the file as seen by read().
|
1951 |
|
|
* (This is a bug on some variants of i386 svr4.0.)
|
1952 |
|
|
*/
|
1953 |
|
|
for (i = 0; i < pagesize; ++i)
|
1954 |
|
|
*(data2 + i) = *(data2 + i) + 1;
|
1955 |
|
|
data3 = malloc(pagesize);
|
1956 |
|
|
if (!data3)
|
1957 |
|
|
exit(1);
|
1958 |
|
|
if (read(fd, data3, pagesize) != pagesize)
|
1959 |
|
|
exit(1);
|
1960 |
|
|
for (i = 0; i < pagesize; ++i)
|
1961 |
|
|
if (*(data + i) != *(data3 + i))
|
1962 |
|
|
exit(1);
|
1963 |
|
|
close(fd);
|
1964 |
|
|
unlink("conftestmmap");
|
1965 |
|
|
exit(0);
|
1966 |
|
|
}
|
1967 |
|
|
|
1968 |
|
|
EOF
|
1969 |
|
|
if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1970 |
|
|
then
|
1971 |
|
|
ac_cv_func_mmap_fixed_mapped=yes
|
1972 |
|
|
else
|
1973 |
|
|
echo "configure: failed program was:" >&5
|
1974 |
|
|
cat conftest.$ac_ext >&5
|
1975 |
|
|
rm -fr conftest*
|
1976 |
|
|
ac_cv_func_mmap_fixed_mapped=no
|
1977 |
|
|
fi
|
1978 |
|
|
rm -fr conftest*
|
1979 |
|
|
fi
|
1980 |
|
|
|
1981 |
|
|
fi
|
1982 |
|
|
|
1983 |
|
|
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
1984 |
|
|
if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
1985 |
|
|
cat >> confdefs.h <<\EOF
|
1986 |
|
|
#define HAVE_MMAP 1
|
1987 |
|
|
EOF
|
1988 |
|
|
|
1989 |
|
|
fi
|
1990 |
|
|
|
1991 |
|
|
|
1992 |
|
|
for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
1993 |
|
|
unistd.h values.h sys/param.h
|
1994 |
|
|
do
|
1995 |
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
1996 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1997 |
|
|
echo "configure:1998: checking for $ac_hdr" >&5
|
1998 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1999 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2000 |
|
|
else
|
2001 |
|
|
cat > conftest.$ac_ext <
|
2002 |
|
|
#line 2003 "configure"
|
2003 |
|
|
#include "confdefs.h"
|
2004 |
|
|
#include <$ac_hdr>
|
2005 |
|
|
EOF
|
2006 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2007 |
|
|
{ (eval echo configure:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2008 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
2009 |
|
|
if test -z "$ac_err"; then
|
2010 |
|
|
rm -rf conftest*
|
2011 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
2012 |
|
|
else
|
2013 |
|
|
echo "$ac_err" >&5
|
2014 |
|
|
echo "configure: failed program was:" >&5
|
2015 |
|
|
cat conftest.$ac_ext >&5
|
2016 |
|
|
rm -rf conftest*
|
2017 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
2018 |
|
|
fi
|
2019 |
|
|
rm -f conftest*
|
2020 |
|
|
fi
|
2021 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
2022 |
|
|
echo "$ac_t""yes" 1>&6
|
2023 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
2024 |
|
|
cat >> confdefs.h <
|
2025 |
|
|
#define $ac_tr_hdr 1
|
2026 |
|
|
EOF
|
2027 |
|
|
|
2028 |
|
|
else
|
2029 |
|
|
echo "$ac_t""no" 1>&6
|
2030 |
|
|
fi
|
2031 |
|
|
done
|
2032 |
|
|
|
2033 |
|
|
for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
2034 |
|
|
__argz_count __argz_stringify __argz_next
|
2035 |
|
|
do
|
2036 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2037 |
|
|
echo "configure:2038: checking for $ac_func" >&5
|
2038 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
2039 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2040 |
|
|
else
|
2041 |
|
|
cat > conftest.$ac_ext <
|
2042 |
|
|
#line 2043 "configure"
|
2043 |
|
|
#include "confdefs.h"
|
2044 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2045 |
|
|
which can conflict with char $ac_func(); below. */
|
2046 |
|
|
#include
|
2047 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2048 |
|
|
/* We use char because int might match the return type of a gcc2
|
2049 |
|
|
builtin and then its argument prototype would still apply. */
|
2050 |
|
|
char $ac_func();
|
2051 |
|
|
|
2052 |
|
|
int main() {
|
2053 |
|
|
|
2054 |
|
|
/* The GNU C library defines this for functions which it implements
|
2055 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
2056 |
|
|
something starting with __ and the normal name is an alias. */
|
2057 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
2058 |
|
|
choke me
|
2059 |
|
|
#else
|
2060 |
|
|
$ac_func();
|
2061 |
|
|
#endif
|
2062 |
|
|
|
2063 |
|
|
; return 0; }
|
2064 |
|
|
EOF
|
2065 |
|
|
if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2066 |
|
|
rm -rf conftest*
|
2067 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
2068 |
|
|
else
|
2069 |
|
|
echo "configure: failed program was:" >&5
|
2070 |
|
|
cat conftest.$ac_ext >&5
|
2071 |
|
|
rm -rf conftest*
|
2072 |
|
|
eval "ac_cv_func_$ac_func=no"
|
2073 |
|
|
fi
|
2074 |
|
|
rm -f conftest*
|
2075 |
|
|
fi
|
2076 |
|
|
|
2077 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
2078 |
|
|
echo "$ac_t""yes" 1>&6
|
2079 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
2080 |
|
|
cat >> confdefs.h <
|
2081 |
|
|
#define $ac_tr_func 1
|
2082 |
|
|
EOF
|
2083 |
|
|
|
2084 |
|
|
else
|
2085 |
|
|
echo "$ac_t""no" 1>&6
|
2086 |
|
|
fi
|
2087 |
|
|
done
|
2088 |
|
|
|
2089 |
|
|
|
2090 |
|
|
if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
2091 |
|
|
for ac_func in stpcpy
|
2092 |
|
|
do
|
2093 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2094 |
|
|
echo "configure:2095: checking for $ac_func" >&5
|
2095 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
2096 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2097 |
|
|
else
|
2098 |
|
|
cat > conftest.$ac_ext <
|
2099 |
|
|
#line 2100 "configure"
|
2100 |
|
|
#include "confdefs.h"
|
2101 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2102 |
|
|
which can conflict with char $ac_func(); below. */
|
2103 |
|
|
#include
|
2104 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2105 |
|
|
/* We use char because int might match the return type of a gcc2
|
2106 |
|
|
builtin and then its argument prototype would still apply. */
|
2107 |
|
|
char $ac_func();
|
2108 |
|
|
|
2109 |
|
|
int main() {
|
2110 |
|
|
|
2111 |
|
|
/* The GNU C library defines this for functions which it implements
|
2112 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
2113 |
|
|
something starting with __ and the normal name is an alias. */
|
2114 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
2115 |
|
|
choke me
|
2116 |
|
|
#else
|
2117 |
|
|
$ac_func();
|
2118 |
|
|
#endif
|
2119 |
|
|
|
2120 |
|
|
; return 0; }
|
2121 |
|
|
EOF
|
2122 |
|
|
if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2123 |
|
|
rm -rf conftest*
|
2124 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
2125 |
|
|
else
|
2126 |
|
|
echo "configure: failed program was:" >&5
|
2127 |
|
|
cat conftest.$ac_ext >&5
|
2128 |
|
|
rm -rf conftest*
|
2129 |
|
|
eval "ac_cv_func_$ac_func=no"
|
2130 |
|
|
fi
|
2131 |
|
|
rm -f conftest*
|
2132 |
|
|
fi
|
2133 |
|
|
|
2134 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
2135 |
|
|
echo "$ac_t""yes" 1>&6
|
2136 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
2137 |
|
|
cat >> confdefs.h <
|
2138 |
|
|
#define $ac_tr_func 1
|
2139 |
|
|
EOF
|
2140 |
|
|
|
2141 |
|
|
else
|
2142 |
|
|
echo "$ac_t""no" 1>&6
|
2143 |
|
|
fi
|
2144 |
|
|
done
|
2145 |
|
|
|
2146 |
|
|
fi
|
2147 |
|
|
if test "${ac_cv_func_stpcpy}" = "yes"; then
|
2148 |
|
|
cat >> confdefs.h <<\EOF
|
2149 |
|
|
#define HAVE_STPCPY 1
|
2150 |
|
|
EOF
|
2151 |
|
|
|
2152 |
|
|
fi
|
2153 |
|
|
|
2154 |
|
|
if test $ac_cv_header_locale_h = yes; then
|
2155 |
|
|
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
2156 |
|
|
echo "configure:2157: checking for LC_MESSAGES" >&5
|
2157 |
|
|
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
2158 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2159 |
|
|
else
|
2160 |
|
|
cat > conftest.$ac_ext <
|
2161 |
|
|
#line 2162 "configure"
|
2162 |
|
|
#include "confdefs.h"
|
2163 |
|
|
#include
|
2164 |
|
|
int main() {
|
2165 |
|
|
return LC_MESSAGES
|
2166 |
|
|
; return 0; }
|
2167 |
|
|
EOF
|
2168 |
|
|
if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2169 |
|
|
rm -rf conftest*
|
2170 |
|
|
am_cv_val_LC_MESSAGES=yes
|
2171 |
|
|
else
|
2172 |
|
|
echo "configure: failed program was:" >&5
|
2173 |
|
|
cat conftest.$ac_ext >&5
|
2174 |
|
|
rm -rf conftest*
|
2175 |
|
|
am_cv_val_LC_MESSAGES=no
|
2176 |
|
|
fi
|
2177 |
|
|
rm -f conftest*
|
2178 |
|
|
fi
|
2179 |
|
|
|
2180 |
|
|
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
2181 |
|
|
if test $am_cv_val_LC_MESSAGES = yes; then
|
2182 |
|
|
cat >> confdefs.h <<\EOF
|
2183 |
|
|
#define HAVE_LC_MESSAGES 1
|
2184 |
|
|
EOF
|
2185 |
|
|
|
2186 |
|
|
fi
|
2187 |
|
|
fi
|
2188 |
|
|
echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
2189 |
|
|
echo "configure:2190: checking whether NLS is requested" >&5
|
2190 |
|
|
# Check whether --enable-nls or --disable-nls was given.
|
2191 |
|
|
if test "${enable_nls+set}" = set; then
|
2192 |
|
|
enableval="$enable_nls"
|
2193 |
|
|
USE_NLS=$enableval
|
2194 |
|
|
else
|
2195 |
|
|
USE_NLS=yes
|
2196 |
|
|
fi
|
2197 |
|
|
|
2198 |
|
|
echo "$ac_t""$USE_NLS" 1>&6
|
2199 |
|
|
|
2200 |
|
|
|
2201 |
|
|
USE_INCLUDED_LIBINTL=no
|
2202 |
|
|
|
2203 |
|
|
if test "$USE_NLS" = "yes"; then
|
2204 |
|
|
cat >> confdefs.h <<\EOF
|
2205 |
|
|
#define ENABLE_NLS 1
|
2206 |
|
|
EOF
|
2207 |
|
|
|
2208 |
|
|
echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
2209 |
|
|
echo "configure:2210: checking whether included gettext is requested" >&5
|
2210 |
|
|
# Check whether --with-included-gettext or --without-included-gettext was given.
|
2211 |
|
|
if test "${with_included_gettext+set}" = set; then
|
2212 |
|
|
withval="$with_included_gettext"
|
2213 |
|
|
nls_cv_force_use_gnu_gettext=$withval
|
2214 |
|
|
else
|
2215 |
|
|
nls_cv_force_use_gnu_gettext=no
|
2216 |
|
|
fi
|
2217 |
|
|
|
2218 |
|
|
echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
2219 |
|
|
|
2220 |
|
|
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
2221 |
|
|
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
2222 |
|
|
nls_cv_header_intl=
|
2223 |
|
|
nls_cv_header_libgt=
|
2224 |
|
|
CATOBJEXT=NONE
|
2225 |
|
|
|
2226 |
|
|
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
2227 |
|
|
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
2228 |
|
|
echo "configure:2229: checking for libintl.h" >&5
|
2229 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
2230 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2231 |
|
|
else
|
2232 |
|
|
cat > conftest.$ac_ext <
|
2233 |
|
|
#line 2234 "configure"
|
2234 |
|
|
#include "confdefs.h"
|
2235 |
|
|
#include
|
2236 |
|
|
EOF
|
2237 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2238 |
|
|
{ (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2239 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
2240 |
|
|
if test -z "$ac_err"; then
|
2241 |
|
|
rm -rf conftest*
|
2242 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
2243 |
|
|
else
|
2244 |
|
|
echo "$ac_err" >&5
|
2245 |
|
|
echo "configure: failed program was:" >&5
|
2246 |
|
|
cat conftest.$ac_ext >&5
|
2247 |
|
|
rm -rf conftest*
|
2248 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
2249 |
|
|
fi
|
2250 |
|
|
rm -f conftest*
|
2251 |
|
|
fi
|
2252 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
2253 |
|
|
echo "$ac_t""yes" 1>&6
|
2254 |
|
|
echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
2255 |
|
|
echo "configure:2256: checking for gettext in libc" >&5
|
2256 |
|
|
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
2257 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2258 |
|
|
else
|
2259 |
|
|
cat > conftest.$ac_ext <
|
2260 |
|
|
#line 2261 "configure"
|
2261 |
|
|
#include "confdefs.h"
|
2262 |
|
|
#include
|
2263 |
|
|
int main() {
|
2264 |
|
|
return (int) gettext ("")
|
2265 |
|
|
; return 0; }
|
2266 |
|
|
EOF
|
2267 |
|
|
if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2268 |
|
|
rm -rf conftest*
|
2269 |
|
|
gt_cv_func_gettext_libc=yes
|
2270 |
|
|
else
|
2271 |
|
|
echo "configure: failed program was:" >&5
|
2272 |
|
|
cat conftest.$ac_ext >&5
|
2273 |
|
|
rm -rf conftest*
|
2274 |
|
|
gt_cv_func_gettext_libc=no
|
2275 |
|
|
fi
|
2276 |
|
|
rm -f conftest*
|
2277 |
|
|
fi
|
2278 |
|
|
|
2279 |
|
|
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
2280 |
|
|
|
2281 |
|
|
if test "$gt_cv_func_gettext_libc" != "yes"; then
|
2282 |
|
|
echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
2283 |
|
|
echo "configure:2284: checking for bindtextdomain in -lintl" >&5
|
2284 |
|
|
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
2285 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
2286 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2287 |
|
|
else
|
2288 |
|
|
ac_save_LIBS="$LIBS"
|
2289 |
|
|
LIBS="-lintl $LIBS"
|
2290 |
|
|
cat > conftest.$ac_ext <
|
2291 |
|
|
#line 2292 "configure"
|
2292 |
|
|
#include "confdefs.h"
|
2293 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2294 |
|
|
/* We use char because int might match the return type of a gcc2
|
2295 |
|
|
builtin and then its argument prototype would still apply. */
|
2296 |
|
|
char bindtextdomain();
|
2297 |
|
|
|
2298 |
|
|
int main() {
|
2299 |
|
|
bindtextdomain()
|
2300 |
|
|
; return 0; }
|
2301 |
|
|
EOF
|
2302 |
|
|
if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2303 |
|
|
rm -rf conftest*
|
2304 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
2305 |
|
|
else
|
2306 |
|
|
echo "configure: failed program was:" >&5
|
2307 |
|
|
cat conftest.$ac_ext >&5
|
2308 |
|
|
rm -rf conftest*
|
2309 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
2310 |
|
|
fi
|
2311 |
|
|
rm -f conftest*
|
2312 |
|
|
LIBS="$ac_save_LIBS"
|
2313 |
|
|
|
2314 |
|
|
fi
|
2315 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
2316 |
|
|
echo "$ac_t""yes" 1>&6
|
2317 |
|
|
echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
2318 |
|
|
echo "configure:2319: checking for gettext in libintl" >&5
|
2319 |
|
|
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
2320 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2321 |
|
|
else
|
2322 |
|
|
cat > conftest.$ac_ext <
|
2323 |
|
|
#line 2324 "configure"
|
2324 |
|
|
#include "confdefs.h"
|
2325 |
|
|
|
2326 |
|
|
int main() {
|
2327 |
|
|
return (int) gettext ("")
|
2328 |
|
|
; return 0; }
|
2329 |
|
|
EOF
|
2330 |
|
|
if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2331 |
|
|
rm -rf conftest*
|
2332 |
|
|
gt_cv_func_gettext_libintl=yes
|
2333 |
|
|
else
|
2334 |
|
|
echo "configure: failed program was:" >&5
|
2335 |
|
|
cat conftest.$ac_ext >&5
|
2336 |
|
|
rm -rf conftest*
|
2337 |
|
|
gt_cv_func_gettext_libintl=no
|
2338 |
|
|
fi
|
2339 |
|
|
rm -f conftest*
|
2340 |
|
|
fi
|
2341 |
|
|
|
2342 |
|
|
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
2343 |
|
|
else
|
2344 |
|
|
echo "$ac_t""no" 1>&6
|
2345 |
|
|
fi
|
2346 |
|
|
|
2347 |
|
|
fi
|
2348 |
|
|
|
2349 |
|
|
if test "$gt_cv_func_gettext_libc" = "yes" \
|
2350 |
|
|
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
|
2351 |
|
|
cat >> confdefs.h <<\EOF
|
2352 |
|
|
#define HAVE_GETTEXT 1
|
2353 |
|
|
EOF
|
2354 |
|
|
|
2355 |
|
|
# Extract the first word of "msgfmt", so it can be a program name with args.
|
2356 |
|
|
set dummy msgfmt; ac_word=$2
|
2357 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2358 |
|
|
echo "configure:2359: checking for $ac_word" >&5
|
2359 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
2360 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2361 |
|
|
else
|
2362 |
|
|
case "$MSGFMT" in
|
2363 |
|
|
/*)
|
2364 |
|
|
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
2365 |
|
|
;;
|
2366 |
|
|
*)
|
2367 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
2368 |
|
|
for ac_dir in $PATH; do
|
2369 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2370 |
|
|
if test -f $ac_dir/$ac_word; then
|
2371 |
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
2372 |
|
|
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
2373 |
|
|
break
|
2374 |
|
|
fi
|
2375 |
|
|
fi
|
2376 |
|
|
done
|
2377 |
|
|
IFS="$ac_save_ifs"
|
2378 |
|
|
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
2379 |
|
|
;;
|
2380 |
|
|
esac
|
2381 |
|
|
fi
|
2382 |
|
|
MSGFMT="$ac_cv_path_MSGFMT"
|
2383 |
|
|
if test -n "$MSGFMT"; then
|
2384 |
|
|
echo "$ac_t""$MSGFMT" 1>&6
|
2385 |
|
|
else
|
2386 |
|
|
echo "$ac_t""no" 1>&6
|
2387 |
|
|
fi
|
2388 |
|
|
if test "$MSGFMT" != "no"; then
|
2389 |
|
|
for ac_func in dcgettext
|
2390 |
|
|
do
|
2391 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2392 |
|
|
echo "configure:2393: checking for $ac_func" >&5
|
2393 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
2394 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2395 |
|
|
else
|
2396 |
|
|
cat > conftest.$ac_ext <
|
2397 |
|
|
#line 2398 "configure"
|
2398 |
|
|
#include "confdefs.h"
|
2399 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2400 |
|
|
which can conflict with char $ac_func(); below. */
|
2401 |
|
|
#include
|
2402 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2403 |
|
|
/* We use char because int might match the return type of a gcc2
|
2404 |
|
|
builtin and then its argument prototype would still apply. */
|
2405 |
|
|
char $ac_func();
|
2406 |
|
|
|
2407 |
|
|
int main() {
|
2408 |
|
|
|
2409 |
|
|
/* The GNU C library defines this for functions which it implements
|
2410 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
2411 |
|
|
something starting with __ and the normal name is an alias. */
|
2412 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
2413 |
|
|
choke me
|
2414 |
|
|
#else
|
2415 |
|
|
$ac_func();
|
2416 |
|
|
#endif
|
2417 |
|
|
|
2418 |
|
|
; return 0; }
|
2419 |
|
|
EOF
|
2420 |
|
|
if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2421 |
|
|
rm -rf conftest*
|
2422 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
2423 |
|
|
else
|
2424 |
|
|
echo "configure: failed program was:" >&5
|
2425 |
|
|
cat conftest.$ac_ext >&5
|
2426 |
|
|
rm -rf conftest*
|
2427 |
|
|
eval "ac_cv_func_$ac_func=no"
|
2428 |
|
|
fi
|
2429 |
|
|
rm -f conftest*
|
2430 |
|
|
fi
|
2431 |
|
|
|
2432 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
2433 |
|
|
echo "$ac_t""yes" 1>&6
|
2434 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
2435 |
|
|
cat >> confdefs.h <
|
2436 |
|
|
#define $ac_tr_func 1
|
2437 |
|
|
EOF
|
2438 |
|
|
|
2439 |
|
|
else
|
2440 |
|
|
echo "$ac_t""no" 1>&6
|
2441 |
|
|
fi
|
2442 |
|
|
done
|
2443 |
|
|
|
2444 |
|
|
# Extract the first word of "gmsgfmt", so it can be a program name with args.
|
2445 |
|
|
set dummy gmsgfmt; ac_word=$2
|
2446 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2447 |
|
|
echo "configure:2448: checking for $ac_word" >&5
|
2448 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
2449 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2450 |
|
|
else
|
2451 |
|
|
case "$GMSGFMT" in
|
2452 |
|
|
/*)
|
2453 |
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
2454 |
|
|
;;
|
2455 |
|
|
?:/*)
|
2456 |
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
2457 |
|
|
;;
|
2458 |
|
|
*)
|
2459 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
2460 |
|
|
ac_dummy="$PATH"
|
2461 |
|
|
for ac_dir in $ac_dummy; do
|
2462 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2463 |
|
|
if test -f $ac_dir/$ac_word; then
|
2464 |
|
|
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
2465 |
|
|
break
|
2466 |
|
|
fi
|
2467 |
|
|
done
|
2468 |
|
|
IFS="$ac_save_ifs"
|
2469 |
|
|
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
2470 |
|
|
;;
|
2471 |
|
|
esac
|
2472 |
|
|
fi
|
2473 |
|
|
GMSGFMT="$ac_cv_path_GMSGFMT"
|
2474 |
|
|
if test -n "$GMSGFMT"; then
|
2475 |
|
|
echo "$ac_t""$GMSGFMT" 1>&6
|
2476 |
|
|
else
|
2477 |
|
|
echo "$ac_t""no" 1>&6
|
2478 |
|
|
fi
|
2479 |
|
|
|
2480 |
|
|
# Extract the first word of "xgettext", so it can be a program name with args.
|
2481 |
|
|
set dummy xgettext; ac_word=$2
|
2482 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2483 |
|
|
echo "configure:2484: checking for $ac_word" >&5
|
2484 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
2485 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2486 |
|
|
else
|
2487 |
|
|
case "$XGETTEXT" in
|
2488 |
|
|
/*)
|
2489 |
|
|
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
2490 |
|
|
;;
|
2491 |
|
|
*)
|
2492 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
2493 |
|
|
for ac_dir in $PATH; do
|
2494 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2495 |
|
|
if test -f $ac_dir/$ac_word; then
|
2496 |
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
2497 |
|
|
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
2498 |
|
|
break
|
2499 |
|
|
fi
|
2500 |
|
|
fi
|
2501 |
|
|
done
|
2502 |
|
|
IFS="$ac_save_ifs"
|
2503 |
|
|
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
2504 |
|
|
;;
|
2505 |
|
|
esac
|
2506 |
|
|
fi
|
2507 |
|
|
XGETTEXT="$ac_cv_path_XGETTEXT"
|
2508 |
|
|
if test -n "$XGETTEXT"; then
|
2509 |
|
|
echo "$ac_t""$XGETTEXT" 1>&6
|
2510 |
|
|
else
|
2511 |
|
|
echo "$ac_t""no" 1>&6
|
2512 |
|
|
fi
|
2513 |
|
|
|
2514 |
|
|
cat > conftest.$ac_ext <
|
2515 |
|
|
#line 2516 "configure"
|
2516 |
|
|
#include "confdefs.h"
|
2517 |
|
|
|
2518 |
|
|
int main() {
|
2519 |
|
|
extern int _nl_msg_cat_cntr;
|
2520 |
|
|
return _nl_msg_cat_cntr
|
2521 |
|
|
; return 0; }
|
2522 |
|
|
EOF
|
2523 |
|
|
if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2524 |
|
|
rm -rf conftest*
|
2525 |
|
|
CATOBJEXT=.gmo
|
2526 |
|
|
DATADIRNAME=share
|
2527 |
|
|
else
|
2528 |
|
|
echo "configure: failed program was:" >&5
|
2529 |
|
|
cat conftest.$ac_ext >&5
|
2530 |
|
|
rm -rf conftest*
|
2531 |
|
|
CATOBJEXT=.mo
|
2532 |
|
|
DATADIRNAME=lib
|
2533 |
|
|
fi
|
2534 |
|
|
rm -f conftest*
|
2535 |
|
|
INSTOBJEXT=.mo
|
2536 |
|
|
fi
|
2537 |
|
|
fi
|
2538 |
|
|
|
2539 |
|
|
else
|
2540 |
|
|
echo "$ac_t""no" 1>&6
|
2541 |
|
|
fi
|
2542 |
|
|
|
2543 |
|
|
|
2544 |
|
|
|
2545 |
|
|
if test "$CATOBJEXT" = "NONE"; then
|
2546 |
|
|
nls_cv_use_gnu_gettext=yes
|
2547 |
|
|
fi
|
2548 |
|
|
fi
|
2549 |
|
|
|
2550 |
|
|
if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
2551 |
|
|
INTLOBJS="\$(GETTOBJS)"
|
2552 |
|
|
# Extract the first word of "msgfmt", so it can be a program name with args.
|
2553 |
|
|
set dummy msgfmt; ac_word=$2
|
2554 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2555 |
|
|
echo "configure:2556: checking for $ac_word" >&5
|
2556 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
2557 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2558 |
|
|
else
|
2559 |
|
|
case "$MSGFMT" in
|
2560 |
|
|
/*)
|
2561 |
|
|
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
2562 |
|
|
;;
|
2563 |
|
|
*)
|
2564 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
2565 |
|
|
for ac_dir in $PATH; do
|
2566 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2567 |
|
|
if test -f $ac_dir/$ac_word; then
|
2568 |
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
2569 |
|
|
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
2570 |
|
|
break
|
2571 |
|
|
fi
|
2572 |
|
|
fi
|
2573 |
|
|
done
|
2574 |
|
|
IFS="$ac_save_ifs"
|
2575 |
|
|
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
2576 |
|
|
;;
|
2577 |
|
|
esac
|
2578 |
|
|
fi
|
2579 |
|
|
MSGFMT="$ac_cv_path_MSGFMT"
|
2580 |
|
|
if test -n "$MSGFMT"; then
|
2581 |
|
|
echo "$ac_t""$MSGFMT" 1>&6
|
2582 |
|
|
else
|
2583 |
|
|
echo "$ac_t""no" 1>&6
|
2584 |
|
|
fi
|
2585 |
|
|
|
2586 |
|
|
# Extract the first word of "gmsgfmt", so it can be a program name with args.
|
2587 |
|
|
set dummy gmsgfmt; ac_word=$2
|
2588 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2589 |
|
|
echo "configure:2590: checking for $ac_word" >&5
|
2590 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
2591 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2592 |
|
|
else
|
2593 |
|
|
case "$GMSGFMT" in
|
2594 |
|
|
/*)
|
2595 |
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
2596 |
|
|
;;
|
2597 |
|
|
?:/*)
|
2598 |
|
|
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
2599 |
|
|
;;
|
2600 |
|
|
*)
|
2601 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
2602 |
|
|
ac_dummy="$PATH"
|
2603 |
|
|
for ac_dir in $ac_dummy; do
|
2604 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2605 |
|
|
if test -f $ac_dir/$ac_word; then
|
2606 |
|
|
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
2607 |
|
|
break
|
2608 |
|
|
fi
|
2609 |
|
|
done
|
2610 |
|
|
IFS="$ac_save_ifs"
|
2611 |
|
|
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
2612 |
|
|
;;
|
2613 |
|
|
esac
|
2614 |
|
|
fi
|
2615 |
|
|
GMSGFMT="$ac_cv_path_GMSGFMT"
|
2616 |
|
|
if test -n "$GMSGFMT"; then
|
2617 |
|
|
echo "$ac_t""$GMSGFMT" 1>&6
|
2618 |
|
|
else
|
2619 |
|
|
echo "$ac_t""no" 1>&6
|
2620 |
|
|
fi
|
2621 |
|
|
|
2622 |
|
|
# Extract the first word of "xgettext", so it can be a program name with args.
|
2623 |
|
|
set dummy xgettext; ac_word=$2
|
2624 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2625 |
|
|
echo "configure:2626: checking for $ac_word" >&5
|
2626 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
2627 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2628 |
|
|
else
|
2629 |
|
|
case "$XGETTEXT" in
|
2630 |
|
|
/*)
|
2631 |
|
|
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
2632 |
|
|
;;
|
2633 |
|
|
*)
|
2634 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
2635 |
|
|
for ac_dir in $PATH; do
|
2636 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2637 |
|
|
if test -f $ac_dir/$ac_word; then
|
2638 |
|
|
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
2639 |
|
|
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
2640 |
|
|
break
|
2641 |
|
|
fi
|
2642 |
|
|
fi
|
2643 |
|
|
done
|
2644 |
|
|
IFS="$ac_save_ifs"
|
2645 |
|
|
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
2646 |
|
|
;;
|
2647 |
|
|
esac
|
2648 |
|
|
fi
|
2649 |
|
|
XGETTEXT="$ac_cv_path_XGETTEXT"
|
2650 |
|
|
if test -n "$XGETTEXT"; then
|
2651 |
|
|
echo "$ac_t""$XGETTEXT" 1>&6
|
2652 |
|
|
else
|
2653 |
|
|
echo "$ac_t""no" 1>&6
|
2654 |
|
|
fi
|
2655 |
|
|
|
2656 |
|
|
|
2657 |
|
|
USE_INCLUDED_LIBINTL=yes
|
2658 |
|
|
CATOBJEXT=.gmo
|
2659 |
|
|
INSTOBJEXT=.mo
|
2660 |
|
|
DATADIRNAME=share
|
2661 |
|
|
INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
2662 |
|
|
INTLLIBS=$INTLDEPS
|
2663 |
|
|
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
2664 |
|
|
nls_cv_header_intl=libintl.h
|
2665 |
|
|
nls_cv_header_libgt=libgettext.h
|
2666 |
|
|
fi
|
2667 |
|
|
|
2668 |
|
|
if test "$XGETTEXT" != ":"; then
|
2669 |
|
|
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
2670 |
|
|
: ;
|
2671 |
|
|
else
|
2672 |
|
|
echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
2673 |
|
|
XGETTEXT=":"
|
2674 |
|
|
fi
|
2675 |
|
|
fi
|
2676 |
|
|
|
2677 |
|
|
# We need to process the po/ directory.
|
2678 |
|
|
POSUB=po
|
2679 |
|
|
else
|
2680 |
|
|
DATADIRNAME=share
|
2681 |
|
|
nls_cv_header_intl=libintl.h
|
2682 |
|
|
nls_cv_header_libgt=libgettext.h
|
2683 |
|
|
fi
|
2684 |
|
|
|
2685 |
|
|
# If this is used in GNU gettext we have to set USE_NLS to `yes'
|
2686 |
|
|
# because some of the sources are only built for this goal.
|
2687 |
|
|
if test "$PACKAGE" = gettext; then
|
2688 |
|
|
USE_NLS=yes
|
2689 |
|
|
USE_INCLUDED_LIBINTL=yes
|
2690 |
|
|
fi
|
2691 |
|
|
|
2692 |
|
|
for lang in $ALL_LINGUAS; do
|
2693 |
|
|
GMOFILES="$GMOFILES $lang.gmo"
|
2694 |
|
|
POFILES="$POFILES $lang.po"
|
2695 |
|
|
done
|
2696 |
|
|
|
2697 |
|
|
|
2698 |
|
|
|
2699 |
|
|
|
2700 |
|
|
|
2701 |
|
|
|
2702 |
|
|
|
2703 |
|
|
|
2704 |
|
|
|
2705 |
|
|
|
2706 |
|
|
|
2707 |
|
|
|
2708 |
|
|
|
2709 |
|
|
|
2710 |
|
|
if test "x$CATOBJEXT" != "x"; then
|
2711 |
|
|
if test "x$ALL_LINGUAS" = "x"; then
|
2712 |
|
|
LINGUAS=
|
2713 |
|
|
else
|
2714 |
|
|
echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
2715 |
|
|
echo "configure:2716: checking for catalogs to be installed" >&5
|
2716 |
|
|
NEW_LINGUAS=
|
2717 |
|
|
for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
2718 |
|
|
case "$ALL_LINGUAS" in
|
2719 |
|
|
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
2720 |
|
|
esac
|
2721 |
|
|
done
|
2722 |
|
|
LINGUAS=$NEW_LINGUAS
|
2723 |
|
|
echo "$ac_t""$LINGUAS" 1>&6
|
2724 |
|
|
fi
|
2725 |
|
|
|
2726 |
|
|
if test -n "$LINGUAS"; then
|
2727 |
|
|
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
2728 |
|
|
fi
|
2729 |
|
|
fi
|
2730 |
|
|
|
2731 |
|
|
if test $ac_cv_header_locale_h = yes; then
|
2732 |
|
|
INCLUDE_LOCALE_H="#include "
|
2733 |
|
|
else
|
2734 |
|
|
INCLUDE_LOCALE_H="\
|
2735 |
|
|
/* The system does not provide the header . Take care yourself. */"
|
2736 |
|
|
fi
|
2737 |
|
|
|
2738 |
|
|
|
2739 |
|
|
if test -f $srcdir/po2tbl.sed.in; then
|
2740 |
|
|
if test "$CATOBJEXT" = ".cat"; then
|
2741 |
|
|
ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
2742 |
|
|
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
2743 |
|
|
echo "configure:2744: checking for linux/version.h" >&5
|
2744 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
2745 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2746 |
|
|
else
|
2747 |
|
|
cat > conftest.$ac_ext <
|
2748 |
|
|
#line 2749 "configure"
|
2749 |
|
|
#include "confdefs.h"
|
2750 |
|
|
#include
|
2751 |
|
|
EOF
|
2752 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2753 |
|
|
{ (eval echo configure:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2754 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
2755 |
|
|
if test -z "$ac_err"; then
|
2756 |
|
|
rm -rf conftest*
|
2757 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
2758 |
|
|
else
|
2759 |
|
|
echo "$ac_err" >&5
|
2760 |
|
|
echo "configure: failed program was:" >&5
|
2761 |
|
|
cat conftest.$ac_ext >&5
|
2762 |
|
|
rm -rf conftest*
|
2763 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
2764 |
|
|
fi
|
2765 |
|
|
rm -f conftest*
|
2766 |
|
|
fi
|
2767 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
2768 |
|
|
echo "$ac_t""yes" 1>&6
|
2769 |
|
|
msgformat=linux
|
2770 |
|
|
else
|
2771 |
|
|
echo "$ac_t""no" 1>&6
|
2772 |
|
|
msgformat=xopen
|
2773 |
|
|
fi
|
2774 |
|
|
|
2775 |
|
|
|
2776 |
|
|
sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
2777 |
|
|
fi
|
2778 |
|
|
sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
2779 |
|
|
$srcdir/po2tbl.sed.in > po2tbl.sed
|
2780 |
|
|
fi
|
2781 |
|
|
|
2782 |
|
|
if test "$PACKAGE" = "gettext"; then
|
2783 |
|
|
GT_NO="#NO#"
|
2784 |
|
|
GT_YES=
|
2785 |
|
|
else
|
2786 |
|
|
GT_NO=
|
2787 |
|
|
GT_YES="#YES#"
|
2788 |
|
|
fi
|
2789 |
|
|
|
2790 |
|
|
|
2791 |
|
|
|
2792 |
|
|
MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
2793 |
|
|
|
2794 |
|
|
|
2795 |
|
|
l=
|
2796 |
|
|
|
2797 |
|
|
|
2798 |
|
|
if test -d $srcdir/po; then
|
2799 |
|
|
test -d po || mkdir po
|
2800 |
|
|
if test "x$srcdir" != "x."; then
|
2801 |
|
|
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
2802 |
|
|
posrcprefix="$srcdir/"
|
2803 |
|
|
else
|
2804 |
|
|
posrcprefix="../$srcdir/"
|
2805 |
|
|
fi
|
2806 |
|
|
else
|
2807 |
|
|
posrcprefix="../"
|
2808 |
|
|
fi
|
2809 |
|
|
rm -f po/POTFILES
|
2810 |
|
|
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
2811 |
|
|
< $srcdir/po/POTFILES.in > po/POTFILES
|
2812 |
|
|
fi
|
2813 |
|
|
|
2814 |
|
|
|
2815 |
|
|
|
2816 |
|
|
CONFIG_OBS=
|
2817 |
|
|
CONFIG_LIB_OBS=
|
2818 |
|
|
CONFIG_DEPS=
|
2819 |
|
|
CONFIG_SRCS=
|
2820 |
|
|
CONFIG_INITS=
|
2821 |
|
|
ENABLE_CFLAGS=
|
2822 |
|
|
CONFIG_ALL=
|
2823 |
|
|
CONFIG_CLEAN=
|
2824 |
|
|
CONFIG_INSTALL=
|
2825 |
|
|
CONFIG_UNINSTALL=
|
2826 |
|
|
|
2827 |
|
|
configdirs="doc testsuite"
|
2828 |
|
|
|
2829 |
|
|
# Check whether --enable-multi-ice or --disable-multi-ice was given.
|
2830 |
|
|
if test "${enable_multi_ice+set}" = set; then
|
2831 |
|
|
enableval="$enable_multi_ice"
|
2832 |
|
|
case "${enableval}" in
|
2833 |
|
|
yes ) enable_multi_ice="yes" ;;
|
2834 |
|
|
no) enable_multi_ice="no" ;;
|
2835 |
|
|
*) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
|
2836 |
|
|
esac
|
2837 |
|
|
|
2838 |
|
|
fi
|
2839 |
|
|
|
2840 |
|
|
|
2841 |
|
|
if test "${enable_multi_ice}" = "yes"; then
|
2842 |
|
|
configdirs="${configdirs} multi-ice"
|
2843 |
|
|
fi
|
2844 |
|
|
|
2845 |
|
|
|
2846 |
|
|
. ${srcdir}/configure.host
|
2847 |
|
|
|
2848 |
|
|
. ${srcdir}/configure.tgt
|
2849 |
|
|
|
2850 |
|
|
targ=${target} ; . ${srcdir}/../bfd/config.bfd
|
2851 |
|
|
|
2852 |
|
|
|
2853 |
|
|
targ=${target}
|
2854 |
|
|
. ${srcdir}/../bfd/config.bfd
|
2855 |
|
|
|
2856 |
|
|
targ_archs=`echo ${targ_archs} | sed -e 's/ .*//;'`
|
2857 |
|
|
|
2858 |
|
|
if test x"${targ_archs}" != x ; then
|
2859 |
|
|
cat >> confdefs.h <
|
2860 |
|
|
#define DEFAULT_BFD_ARCH ${targ_archs}
|
2861 |
|
|
EOF
|
2862 |
|
|
|
2863 |
|
|
fi
|
2864 |
|
|
if test x"${targ_defvec}" != x ; then
|
2865 |
|
|
cat >> confdefs.h <
|
2866 |
|
|
#define DEFAULT_BFD_VEC ${targ_defvec}
|
2867 |
|
|
EOF
|
2868 |
|
|
|
2869 |
|
|
fi
|
2870 |
|
|
|
2871 |
|
|
for ac_prog in mawk gawk nawk awk
|
2872 |
|
|
do
|
2873 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
2874 |
|
|
set dummy $ac_prog; ac_word=$2
|
2875 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2876 |
|
|
echo "configure:2877: checking for $ac_word" >&5
|
2877 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
2878 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2879 |
|
|
else
|
2880 |
|
|
if test -n "$AWK"; then
|
2881 |
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
2882 |
|
|
else
|
2883 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
2884 |
|
|
ac_dummy="$PATH"
|
2885 |
|
|
for ac_dir in $ac_dummy; do
|
2886 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2887 |
|
|
if test -f $ac_dir/$ac_word; then
|
2888 |
|
|
ac_cv_prog_AWK="$ac_prog"
|
2889 |
|
|
break
|
2890 |
|
|
fi
|
2891 |
|
|
done
|
2892 |
|
|
IFS="$ac_save_ifs"
|
2893 |
|
|
fi
|
2894 |
|
|
fi
|
2895 |
|
|
AWK="$ac_cv_prog_AWK"
|
2896 |
|
|
if test -n "$AWK"; then
|
2897 |
|
|
echo "$ac_t""$AWK" 1>&6
|
2898 |
|
|
else
|
2899 |
|
|
echo "$ac_t""no" 1>&6
|
2900 |
|
|
fi
|
2901 |
|
|
|
2902 |
|
|
test -n "$AWK" && break
|
2903 |
|
|
done
|
2904 |
|
|
|
2905 |
|
|
# Find a good install program. We prefer a C program (faster),
|
2906 |
|
|
# so one script is as good as another. But avoid the broken or
|
2907 |
|
|
# incompatible versions:
|
2908 |
|
|
# SysV /etc/install, /usr/sbin/install
|
2909 |
|
|
# SunOS /usr/etc/install
|
2910 |
|
|
# IRIX /sbin/install
|
2911 |
|
|
# AIX /bin/install
|
2912 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
2913 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
2914 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
2915 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
2916 |
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
2917 |
|
|
echo "configure:2918: checking for a BSD compatible install" >&5
|
2918 |
|
|
if test -z "$INSTALL"; then
|
2919 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
2920 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2921 |
|
|
else
|
2922 |
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
2923 |
|
|
for ac_dir in $PATH; do
|
2924 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
2925 |
|
|
case "$ac_dir/" in
|
2926 |
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
2927 |
|
|
*)
|
2928 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
2929 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
2930 |
|
|
# by default.
|
2931 |
|
|
for ac_prog in ginstall scoinst install; do
|
2932 |
|
|
if test -f $ac_dir/$ac_prog; then
|
2933 |
|
|
if test $ac_prog = install &&
|
2934 |
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
2935 |
|
|
# AIX install. It has an incompatible calling convention.
|
2936 |
|
|
:
|
2937 |
|
|
else
|
2938 |
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
2939 |
|
|
break 2
|
2940 |
|
|
fi
|
2941 |
|
|
fi
|
2942 |
|
|
done
|
2943 |
|
|
;;
|
2944 |
|
|
esac
|
2945 |
|
|
done
|
2946 |
|
|
IFS="$ac_save_IFS"
|
2947 |
|
|
|
2948 |
|
|
fi
|
2949 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
2950 |
|
|
INSTALL="$ac_cv_path_install"
|
2951 |
|
|
else
|
2952 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
2953 |
|
|
# path for INSTALL within a source directory, because that will
|
2954 |
|
|
# break other packages using the cache if that directory is
|
2955 |
|
|
# removed, or if the path is relative.
|
2956 |
|
|
INSTALL="$ac_install_sh"
|
2957 |
|
|
fi
|
2958 |
|
|
fi
|
2959 |
|
|
echo "$ac_t""$INSTALL" 1>&6
|
2960 |
|
|
|
2961 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
2962 |
|
|
# It thinks the first close brace ends the variable substitution.
|
2963 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
2964 |
|
|
|
2965 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
2966 |
|
|
|
2967 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
2968 |
|
|
|
2969 |
|
|
if test $host != $build; then
|
2970 |
|
|
ac_tool_prefix=${host_alias}-
|
2971 |
|
|
else
|
2972 |
|
|
ac_tool_prefix=
|
2973 |
|
|
fi
|
2974 |
|
|
|
2975 |
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
2976 |
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
2977 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2978 |
|
|
echo "configure:2979: checking for $ac_word" >&5
|
2979 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
2980 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2981 |
|
|
else
|
2982 |
|
|
if test -n "$AR"; then
|
2983 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
2984 |
|
|
else
|
2985 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
2986 |
|
|
ac_dummy="$PATH"
|
2987 |
|
|
for ac_dir in $ac_dummy; do
|
2988 |
|
|
test -z "$ac_dir" && ac_dir=.
|
2989 |
|
|
if test -f $ac_dir/$ac_word; then
|
2990 |
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
2991 |
|
|
break
|
2992 |
|
|
fi
|
2993 |
|
|
done
|
2994 |
|
|
IFS="$ac_save_ifs"
|
2995 |
|
|
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
2996 |
|
|
fi
|
2997 |
|
|
fi
|
2998 |
|
|
AR="$ac_cv_prog_AR"
|
2999 |
|
|
if test -n "$AR"; then
|
3000 |
|
|
echo "$ac_t""$AR" 1>&6
|
3001 |
|
|
else
|
3002 |
|
|
echo "$ac_t""no" 1>&6
|
3003 |
|
|
fi
|
3004 |
|
|
|
3005 |
|
|
|
3006 |
|
|
|
3007 |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
3008 |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
3009 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
3010 |
|
|
echo "configure:3011: checking for $ac_word" >&5
|
3011 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
3012 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3013 |
|
|
else
|
3014 |
|
|
if test -n "$RANLIB"; then
|
3015 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
3016 |
|
|
else
|
3017 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
3018 |
|
|
ac_dummy="$PATH"
|
3019 |
|
|
for ac_dir in $ac_dummy; do
|
3020 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3021 |
|
|
if test -f $ac_dir/$ac_word; then
|
3022 |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
3023 |
|
|
break
|
3024 |
|
|
fi
|
3025 |
|
|
done
|
3026 |
|
|
IFS="$ac_save_ifs"
|
3027 |
|
|
fi
|
3028 |
|
|
fi
|
3029 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
3030 |
|
|
if test -n "$RANLIB"; then
|
3031 |
|
|
echo "$ac_t""$RANLIB" 1>&6
|
3032 |
|
|
else
|
3033 |
|
|
echo "$ac_t""no" 1>&6
|
3034 |
|
|
fi
|
3035 |
|
|
|
3036 |
|
|
|
3037 |
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
3038 |
|
|
if test -n "$ac_tool_prefix"; then
|
3039 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
3040 |
|
|
set dummy ranlib; ac_word=$2
|
3041 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
3042 |
|
|
echo "configure:3043: checking for $ac_word" >&5
|
3043 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
3044 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3045 |
|
|
else
|
3046 |
|
|
if test -n "$RANLIB"; then
|
3047 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
3048 |
|
|
else
|
3049 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
3050 |
|
|
ac_dummy="$PATH"
|
3051 |
|
|
for ac_dir in $ac_dummy; do
|
3052 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3053 |
|
|
if test -f $ac_dir/$ac_word; then
|
3054 |
|
|
ac_cv_prog_RANLIB="ranlib"
|
3055 |
|
|
break
|
3056 |
|
|
fi
|
3057 |
|
|
done
|
3058 |
|
|
IFS="$ac_save_ifs"
|
3059 |
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
3060 |
|
|
fi
|
3061 |
|
|
fi
|
3062 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
3063 |
|
|
if test -n "$RANLIB"; then
|
3064 |
|
|
echo "$ac_t""$RANLIB" 1>&6
|
3065 |
|
|
else
|
3066 |
|
|
echo "$ac_t""no" 1>&6
|
3067 |
|
|
fi
|
3068 |
|
|
|
3069 |
|
|
else
|
3070 |
|
|
RANLIB=":"
|
3071 |
|
|
fi
|
3072 |
|
|
fi
|
3073 |
|
|
|
3074 |
|
|
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
3075 |
|
|
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
3076 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
3077 |
|
|
echo "configure:3078: checking for $ac_word" >&5
|
3078 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
3079 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3080 |
|
|
else
|
3081 |
|
|
if test -n "$DLLTOOL"; then
|
3082 |
|
|
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
3083 |
|
|
else
|
3084 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
3085 |
|
|
ac_dummy="$PATH"
|
3086 |
|
|
for ac_dir in $ac_dummy; do
|
3087 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3088 |
|
|
if test -f $ac_dir/$ac_word; then
|
3089 |
|
|
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
3090 |
|
|
break
|
3091 |
|
|
fi
|
3092 |
|
|
done
|
3093 |
|
|
IFS="$ac_save_ifs"
|
3094 |
|
|
test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
|
3095 |
|
|
fi
|
3096 |
|
|
fi
|
3097 |
|
|
DLLTOOL="$ac_cv_prog_DLLTOOL"
|
3098 |
|
|
if test -n "$DLLTOOL"; then
|
3099 |
|
|
echo "$ac_t""$DLLTOOL" 1>&6
|
3100 |
|
|
else
|
3101 |
|
|
echo "$ac_t""no" 1>&6
|
3102 |
|
|
fi
|
3103 |
|
|
|
3104 |
|
|
|
3105 |
|
|
|
3106 |
|
|
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
|
3107 |
|
|
set dummy ${ac_tool_prefix}windres; ac_word=$2
|
3108 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
3109 |
|
|
echo "configure:3110: checking for $ac_word" >&5
|
3110 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
|
3111 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3112 |
|
|
else
|
3113 |
|
|
if test -n "$WINDRES"; then
|
3114 |
|
|
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
|
3115 |
|
|
else
|
3116 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
3117 |
|
|
ac_dummy="$PATH"
|
3118 |
|
|
for ac_dir in $ac_dummy; do
|
3119 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3120 |
|
|
if test -f $ac_dir/$ac_word; then
|
3121 |
|
|
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
|
3122 |
|
|
break
|
3123 |
|
|
fi
|
3124 |
|
|
done
|
3125 |
|
|
IFS="$ac_save_ifs"
|
3126 |
|
|
test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
|
3127 |
|
|
fi
|
3128 |
|
|
fi
|
3129 |
|
|
WINDRES="$ac_cv_prog_WINDRES"
|
3130 |
|
|
if test -n "$WINDRES"; then
|
3131 |
|
|
echo "$ac_t""$WINDRES" 1>&6
|
3132 |
|
|
else
|
3133 |
|
|
echo "$ac_t""no" 1>&6
|
3134 |
|
|
fi
|
3135 |
|
|
|
3136 |
|
|
|
3137 |
|
|
|
3138 |
|
|
for ac_prog in 'bison -y' byacc
|
3139 |
|
|
do
|
3140 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
3141 |
|
|
set dummy $ac_prog; ac_word=$2
|
3142 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
3143 |
|
|
echo "configure:3144: checking for $ac_word" >&5
|
3144 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
3145 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3146 |
|
|
else
|
3147 |
|
|
if test -n "$YACC"; then
|
3148 |
|
|
ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
3149 |
|
|
else
|
3150 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
3151 |
|
|
ac_dummy="$PATH"
|
3152 |
|
|
for ac_dir in $ac_dummy; do
|
3153 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3154 |
|
|
if test -f $ac_dir/$ac_word; then
|
3155 |
|
|
ac_cv_prog_YACC="$ac_prog"
|
3156 |
|
|
break
|
3157 |
|
|
fi
|
3158 |
|
|
done
|
3159 |
|
|
IFS="$ac_save_ifs"
|
3160 |
|
|
fi
|
3161 |
|
|
fi
|
3162 |
|
|
YACC="$ac_cv_prog_YACC"
|
3163 |
|
|
if test -n "$YACC"; then
|
3164 |
|
|
echo "$ac_t""$YACC" 1>&6
|
3165 |
|
|
else
|
3166 |
|
|
echo "$ac_t""no" 1>&6
|
3167 |
|
|
fi
|
3168 |
|
|
|
3169 |
|
|
test -n "$YACC" && break
|
3170 |
|
|
done
|
3171 |
|
|
test -n "$YACC" || YACC="yacc"
|
3172 |
|
|
|
3173 |
|
|
|
3174 |
|
|
# Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
|
3175 |
|
|
set dummy ${ac_tool_prefix}mig; ac_word=$2
|
3176 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
3177 |
|
|
echo "configure:3178: checking for $ac_word" >&5
|
3178 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
|
3179 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3180 |
|
|
else
|
3181 |
|
|
if test -n "$MIG"; then
|
3182 |
|
|
ac_cv_prog_MIG="$MIG" # Let the user override the test.
|
3183 |
|
|
else
|
3184 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
3185 |
|
|
ac_dummy="$PATH"
|
3186 |
|
|
for ac_dir in $ac_dummy; do
|
3187 |
|
|
test -z "$ac_dir" && ac_dir=.
|
3188 |
|
|
if test -f $ac_dir/$ac_word; then
|
3189 |
|
|
ac_cv_prog_MIG="${ac_tool_prefix}mig"
|
3190 |
|
|
break
|
3191 |
|
|
fi
|
3192 |
|
|
done
|
3193 |
|
|
IFS="$ac_save_ifs"
|
3194 |
|
|
test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
|
3195 |
|
|
fi
|
3196 |
|
|
fi
|
3197 |
|
|
MIG="$ac_cv_prog_MIG"
|
3198 |
|
|
if test -n "$MIG"; then
|
3199 |
|
|
echo "$ac_t""$MIG" 1>&6
|
3200 |
|
|
else
|
3201 |
|
|
echo "$ac_t""no" 1>&6
|
3202 |
|
|
fi
|
3203 |
|
|
|
3204 |
|
|
|
3205 |
|
|
|
3206 |
|
|
|
3207 |
|
|
if test "$program_transform_name" = s,x,x,; then
|
3208 |
|
|
program_transform_name=
|
3209 |
|
|
else
|
3210 |
|
|
# Double any \ or $. echo might interpret backslashes.
|
3211 |
|
|
cat <<\EOF_SED > conftestsed
|
3212 |
|
|
s,\\,\\\\,g; s,\$,$$,g
|
3213 |
|
|
EOF_SED
|
3214 |
|
|
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
3215 |
|
|
rm -f conftestsed
|
3216 |
|
|
fi
|
3217 |
|
|
test "$program_prefix" != NONE &&
|
3218 |
|
|
program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
3219 |
|
|
# Use a double $ so make ignores it.
|
3220 |
|
|
test "$program_suffix" != NONE &&
|
3221 |
|
|
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
3222 |
|
|
|
3223 |
|
|
# sed with no file args requires a program.
|
3224 |
|
|
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
3225 |
|
|
|
3226 |
|
|
|
3227 |
|
|
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
3228 |
|
|
echo "configure:3229: checking return type of signal handlers" >&5
|
3229 |
|
|
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
3230 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3231 |
|
|
else
|
3232 |
|
|
cat > conftest.$ac_ext <
|
3233 |
|
|
#line 3234 "configure"
|
3234 |
|
|
#include "confdefs.h"
|
3235 |
|
|
#include
|
3236 |
|
|
#include
|
3237 |
|
|
#ifdef signal
|
3238 |
|
|
#undef signal
|
3239 |
|
|
#endif
|
3240 |
|
|
#ifdef __cplusplus
|
3241 |
|
|
extern "C" void (*signal (int, void (*)(int)))(int);
|
3242 |
|
|
#else
|
3243 |
|
|
void (*signal ()) ();
|
3244 |
|
|
#endif
|
3245 |
|
|
|
3246 |
|
|
int main() {
|
3247 |
|
|
int i;
|
3248 |
|
|
; return 0; }
|
3249 |
|
|
EOF
|
3250 |
|
|
if { (eval echo configure:3251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
3251 |
|
|
rm -rf conftest*
|
3252 |
|
|
ac_cv_type_signal=void
|
3253 |
|
|
else
|
3254 |
|
|
echo "configure: failed program was:" >&5
|
3255 |
|
|
cat conftest.$ac_ext >&5
|
3256 |
|
|
rm -rf conftest*
|
3257 |
|
|
ac_cv_type_signal=int
|
3258 |
|
|
fi
|
3259 |
|
|
rm -f conftest*
|
3260 |
|
|
fi
|
3261 |
|
|
|
3262 |
|
|
echo "$ac_t""$ac_cv_type_signal" 1>&6
|
3263 |
|
|
cat >> confdefs.h <
|
3264 |
|
|
#define RETSIGTYPE $ac_cv_type_signal
|
3265 |
|
|
EOF
|
3266 |
|
|
|
3267 |
|
|
|
3268 |
|
|
|
3269 |
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
3270 |
|
|
echo "configure:3271: checking for ANSI C header files" >&5
|
3271 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
3272 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3273 |
|
|
else
|
3274 |
|
|
cat > conftest.$ac_ext <
|
3275 |
|
|
#line 3276 "configure"
|
3276 |
|
|
#include "confdefs.h"
|
3277 |
|
|
#include
|
3278 |
|
|
#include
|
3279 |
|
|
#include
|
3280 |
|
|
#include
|
3281 |
|
|
EOF
|
3282 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
3283 |
|
|
{ (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
3284 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
3285 |
|
|
if test -z "$ac_err"; then
|
3286 |
|
|
rm -rf conftest*
|
3287 |
|
|
ac_cv_header_stdc=yes
|
3288 |
|
|
else
|
3289 |
|
|
echo "$ac_err" >&5
|
3290 |
|
|
echo "configure: failed program was:" >&5
|
3291 |
|
|
cat conftest.$ac_ext >&5
|
3292 |
|
|
rm -rf conftest*
|
3293 |
|
|
ac_cv_header_stdc=no
|
3294 |
|
|
fi
|
3295 |
|
|
rm -f conftest*
|
3296 |
|
|
|
3297 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3298 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
3299 |
|
|
cat > conftest.$ac_ext <
|
3300 |
|
|
#line 3301 "configure"
|
3301 |
|
|
#include "confdefs.h"
|
3302 |
|
|
#include
|
3303 |
|
|
EOF
|
3304 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3305 |
|
|
egrep "memchr" >/dev/null 2>&1; then
|
3306 |
|
|
:
|
3307 |
|
|
else
|
3308 |
|
|
rm -rf conftest*
|
3309 |
|
|
ac_cv_header_stdc=no
|
3310 |
|
|
fi
|
3311 |
|
|
rm -f conftest*
|
3312 |
|
|
|
3313 |
|
|
fi
|
3314 |
|
|
|
3315 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3316 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
3317 |
|
|
cat > conftest.$ac_ext <
|
3318 |
|
|
#line 3319 "configure"
|
3319 |
|
|
#include "confdefs.h"
|
3320 |
|
|
#include
|
3321 |
|
|
EOF
|
3322 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3323 |
|
|
egrep "free" >/dev/null 2>&1; then
|
3324 |
|
|
:
|
3325 |
|
|
else
|
3326 |
|
|
rm -rf conftest*
|
3327 |
|
|
ac_cv_header_stdc=no
|
3328 |
|
|
fi
|
3329 |
|
|
rm -f conftest*
|
3330 |
|
|
|
3331 |
|
|
fi
|
3332 |
|
|
|
3333 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3334 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
3335 |
|
|
if test "$cross_compiling" = yes; then
|
3336 |
|
|
:
|
3337 |
|
|
else
|
3338 |
|
|
cat > conftest.$ac_ext <
|
3339 |
|
|
#line 3340 "configure"
|
3340 |
|
|
#include "confdefs.h"
|
3341 |
|
|
#include
|
3342 |
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
3343 |
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
3344 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
3345 |
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
3346 |
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
3347 |
|
|
exit (0); }
|
3348 |
|
|
|
3349 |
|
|
EOF
|
3350 |
|
|
if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
3351 |
|
|
then
|
3352 |
|
|
:
|
3353 |
|
|
else
|
3354 |
|
|
echo "configure: failed program was:" >&5
|
3355 |
|
|
cat conftest.$ac_ext >&5
|
3356 |
|
|
rm -fr conftest*
|
3357 |
|
|
ac_cv_header_stdc=no
|
3358 |
|
|
fi
|
3359 |
|
|
rm -fr conftest*
|
3360 |
|
|
fi
|
3361 |
|
|
|
3362 |
|
|
fi
|
3363 |
|
|
fi
|
3364 |
|
|
|
3365 |
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
3366 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3367 |
|
|
cat >> confdefs.h <<\EOF
|
3368 |
|
|
#define STDC_HEADERS 1
|
3369 |
|
|
EOF
|
3370 |
|
|
|
3371 |
|
|
fi
|
3372 |
|
|
|
3373 |
|
|
|
3374 |
|
|
|
3375 |
|
|
case $host_os in solaris2.7 | solaris2.8) case "$GCC" in yes)
|
3376 |
|
|
cat >> confdefs.h <<\EOF
|
3377 |
|
|
#define _MSE_INT_H 1
|
3378 |
|
|
EOF
|
3379 |
|
|
|
3380 |
|
|
esac; esac
|
3381 |
|
|
|
3382 |
|
|
for ac_hdr in ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
|
3383 |
|
|
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
|
3384 |
|
|
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
|
3385 |
|
|
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
|
3386 |
|
|
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
|
3387 |
|
|
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
|
3388 |
|
|
dirent.h sys/ndir.h sys/dir.h ndir.h \
|
3389 |
|
|
curses.h ncurses.h \
|
3390 |
|
|
poll.h sys/poll.h
|
3391 |
|
|
do
|
3392 |
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
3393 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
3394 |
|
|
echo "configure:3395: checking for $ac_hdr" >&5
|
3395 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
3396 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3397 |
|
|
else
|
3398 |
|
|
cat > conftest.$ac_ext <
|
3399 |
|
|
#line 3400 "configure"
|
3400 |
|
|
#include "confdefs.h"
|
3401 |
|
|
#include <$ac_hdr>
|
3402 |
|
|
EOF
|
3403 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
3404 |
|
|
{ (eval echo configure:3405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
3405 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
3406 |
|
|
if test -z "$ac_err"; then
|
3407 |
|
|
rm -rf conftest*
|
3408 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
3409 |
|
|
else
|
3410 |
|
|
echo "$ac_err" >&5
|
3411 |
|
|
echo "configure: failed program was:" >&5
|
3412 |
|
|
cat conftest.$ac_ext >&5
|
3413 |
|
|
rm -rf conftest*
|
3414 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
3415 |
|
|
fi
|
3416 |
|
|
rm -f conftest*
|
3417 |
|
|
fi
|
3418 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
3419 |
|
|
echo "$ac_t""yes" 1>&6
|
3420 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
3421 |
|
|
cat >> confdefs.h <
|
3422 |
|
|
#define $ac_tr_hdr 1
|
3423 |
|
|
EOF
|
3424 |
|
|
|
3425 |
|
|
else
|
3426 |
|
|
echo "$ac_t""no" 1>&6
|
3427 |
|
|
fi
|
3428 |
|
|
done
|
3429 |
|
|
|
3430 |
|
|
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
|
3431 |
|
|
echo "configure:3432: checking whether stat file-mode macros are broken" >&5
|
3432 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
|
3433 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3434 |
|
|
else
|
3435 |
|
|
cat > conftest.$ac_ext <
|
3436 |
|
|
#line 3437 "configure"
|
3437 |
|
|
#include "confdefs.h"
|
3438 |
|
|
#include
|
3439 |
|
|
#include
|
3440 |
|
|
|
3441 |
|
|
#if defined(S_ISBLK) && defined(S_IFDIR)
|
3442 |
|
|
# if S_ISBLK (S_IFDIR)
|
3443 |
|
|
You lose.
|
3444 |
|
|
# endif
|
3445 |
|
|
#endif
|
3446 |
|
|
|
3447 |
|
|
#if defined(S_ISBLK) && defined(S_IFCHR)
|
3448 |
|
|
# if S_ISBLK (S_IFCHR)
|
3449 |
|
|
You lose.
|
3450 |
|
|
# endif
|
3451 |
|
|
#endif
|
3452 |
|
|
|
3453 |
|
|
#if defined(S_ISLNK) && defined(S_IFREG)
|
3454 |
|
|
# if S_ISLNK (S_IFREG)
|
3455 |
|
|
You lose.
|
3456 |
|
|
# endif
|
3457 |
|
|
#endif
|
3458 |
|
|
|
3459 |
|
|
#if defined(S_ISSOCK) && defined(S_IFREG)
|
3460 |
|
|
# if S_ISSOCK (S_IFREG)
|
3461 |
|
|
You lose.
|
3462 |
|
|
# endif
|
3463 |
|
|
#endif
|
3464 |
|
|
|
3465 |
|
|
EOF
|
3466 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3467 |
|
|
egrep "You lose" >/dev/null 2>&1; then
|
3468 |
|
|
rm -rf conftest*
|
3469 |
|
|
ac_cv_header_stat_broken=yes
|
3470 |
|
|
else
|
3471 |
|
|
rm -rf conftest*
|
3472 |
|
|
ac_cv_header_stat_broken=no
|
3473 |
|
|
fi
|
3474 |
|
|
rm -f conftest*
|
3475 |
|
|
|
3476 |
|
|
fi
|
3477 |
|
|
|
3478 |
|
|
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
|
3479 |
|
|
if test $ac_cv_header_stat_broken = yes; then
|
3480 |
|
|
cat >> confdefs.h <<\EOF
|
3481 |
|
|
#define STAT_MACROS_BROKEN 1
|
3482 |
|
|
EOF
|
3483 |
|
|
|
3484 |
|
|
fi
|
3485 |
|
|
|
3486 |
|
|
|
3487 |
|
|
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
3488 |
|
|
echo "configure:3489: checking for working const" >&5
|
3489 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
3490 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3491 |
|
|
else
|
3492 |
|
|
cat > conftest.$ac_ext <
|
3493 |
|
|
#line 3494 "configure"
|
3494 |
|
|
#include "confdefs.h"
|
3495 |
|
|
|
3496 |
|
|
int main() {
|
3497 |
|
|
|
3498 |
|
|
/* Ultrix mips cc rejects this. */
|
3499 |
|
|
typedef int charset[2]; const charset x;
|
3500 |
|
|
/* SunOS 4.1.1 cc rejects this. */
|
3501 |
|
|
char const *const *ccp;
|
3502 |
|
|
char **p;
|
3503 |
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
3504 |
|
|
struct point {int x, y;};
|
3505 |
|
|
static struct point const zero = {0,0};
|
3506 |
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
3507 |
|
|
It does not let you subtract one const X* pointer from another in an arm
|
3508 |
|
|
of an if-expression whose if-part is not a constant expression */
|
3509 |
|
|
const char *g = "string";
|
3510 |
|
|
ccp = &g + (g ? g-g : 0);
|
3511 |
|
|
/* HPUX 7.0 cc rejects these. */
|
3512 |
|
|
++ccp;
|
3513 |
|
|
p = (char**) ccp;
|
3514 |
|
|
ccp = (char const *const *) p;
|
3515 |
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
3516 |
|
|
char *t;
|
3517 |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
3518 |
|
|
|
3519 |
|
|
*t++ = 0;
|
3520 |
|
|
}
|
3521 |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
3522 |
|
|
int x[] = {25, 17};
|
3523 |
|
|
const int *foo = &x[0];
|
3524 |
|
|
++foo;
|
3525 |
|
|
}
|
3526 |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
3527 |
|
|
typedef const int *iptr;
|
3528 |
|
|
iptr p = 0;
|
3529 |
|
|
++p;
|
3530 |
|
|
}
|
3531 |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
3532 |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
3533 |
|
|
struct s { int j; const int *ap[3]; };
|
3534 |
|
|
struct s *b; b->j = 5;
|
3535 |
|
|
}
|
3536 |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
3537 |
|
|
const int foo = 10;
|
3538 |
|
|
}
|
3539 |
|
|
|
3540 |
|
|
; return 0; }
|
3541 |
|
|
EOF
|
3542 |
|
|
if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
3543 |
|
|
rm -rf conftest*
|
3544 |
|
|
ac_cv_c_const=yes
|
3545 |
|
|
else
|
3546 |
|
|
echo "configure: failed program was:" >&5
|
3547 |
|
|
cat conftest.$ac_ext >&5
|
3548 |
|
|
rm -rf conftest*
|
3549 |
|
|
ac_cv_c_const=no
|
3550 |
|
|
fi
|
3551 |
|
|
rm -f conftest*
|
3552 |
|
|
fi
|
3553 |
|
|
|
3554 |
|
|
echo "$ac_t""$ac_cv_c_const" 1>&6
|
3555 |
|
|
if test $ac_cv_c_const = no; then
|
3556 |
|
|
cat >> confdefs.h <<\EOF
|
3557 |
|
|
#define const
|
3558 |
|
|
EOF
|
3559 |
|
|
|
3560 |
|
|
fi
|
3561 |
|
|
|
3562 |
|
|
|
3563 |
|
|
for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
|
3564 |
|
|
do
|
3565 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
3566 |
|
|
echo "configure:3567: checking for $ac_func" >&5
|
3567 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
3568 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3569 |
|
|
else
|
3570 |
|
|
cat > conftest.$ac_ext <
|
3571 |
|
|
#line 3572 "configure"
|
3572 |
|
|
#include "confdefs.h"
|
3573 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
3574 |
|
|
which can conflict with char $ac_func(); below. */
|
3575 |
|
|
#include
|
3576 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
3577 |
|
|
/* We use char because int might match the return type of a gcc2
|
3578 |
|
|
builtin and then its argument prototype would still apply. */
|
3579 |
|
|
char $ac_func();
|
3580 |
|
|
|
3581 |
|
|
int main() {
|
3582 |
|
|
|
3583 |
|
|
/* The GNU C library defines this for functions which it implements
|
3584 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
3585 |
|
|
something starting with __ and the normal name is an alias. */
|
3586 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
3587 |
|
|
choke me
|
3588 |
|
|
#else
|
3589 |
|
|
$ac_func();
|
3590 |
|
|
#endif
|
3591 |
|
|
|
3592 |
|
|
; return 0; }
|
3593 |
|
|
EOF
|
3594 |
|
|
if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
3595 |
|
|
rm -rf conftest*
|
3596 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
3597 |
|
|
else
|
3598 |
|
|
echo "configure: failed program was:" >&5
|
3599 |
|
|
cat conftest.$ac_ext >&5
|
3600 |
|
|
rm -rf conftest*
|
3601 |
|
|
eval "ac_cv_func_$ac_func=no"
|
3602 |
|
|
fi
|
3603 |
|
|
rm -f conftest*
|
3604 |
|
|
fi
|
3605 |
|
|
|
3606 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
3607 |
|
|
echo "$ac_t""yes" 1>&6
|
3608 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
3609 |
|
|
cat >> confdefs.h <
|
3610 |
|
|
#define $ac_tr_func 1
|
3611 |
|
|
EOF
|
3612 |
|
|
|
3613 |
|
|
else
|
3614 |
|
|
echo "$ac_t""no" 1>&6
|
3615 |
|
|
fi
|
3616 |
|
|
done
|
3617 |
|
|
|
3618 |
|
|
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
3619 |
|
|
echo "configure:3620: checking for pid_t" >&5
|
3620 |
|
|
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
3621 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3622 |
|
|
else
|
3623 |
|
|
cat > conftest.$ac_ext <
|
3624 |
|
|
#line 3625 "configure"
|
3625 |
|
|
#include "confdefs.h"
|
3626 |
|
|
#include
|
3627 |
|
|
#if STDC_HEADERS
|
3628 |
|
|
#include
|
3629 |
|
|
#include
|
3630 |
|
|
#endif
|
3631 |
|
|
EOF
|
3632 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3633 |
|
|
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
3634 |
|
|
rm -rf conftest*
|
3635 |
|
|
ac_cv_type_pid_t=yes
|
3636 |
|
|
else
|
3637 |
|
|
rm -rf conftest*
|
3638 |
|
|
ac_cv_type_pid_t=no
|
3639 |
|
|
fi
|
3640 |
|
|
rm -f conftest*
|
3641 |
|
|
|
3642 |
|
|
fi
|
3643 |
|
|
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
3644 |
|
|
if test $ac_cv_type_pid_t = no; then
|
3645 |
|
|
cat >> confdefs.h <<\EOF
|
3646 |
|
|
#define pid_t int
|
3647 |
|
|
EOF
|
3648 |
|
|
|
3649 |
|
|
fi
|
3650 |
|
|
|
3651 |
|
|
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
|
3652 |
|
|
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
|
3653 |
|
|
echo "configure:3654: checking for vfork.h" >&5
|
3654 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
3655 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3656 |
|
|
else
|
3657 |
|
|
cat > conftest.$ac_ext <
|
3658 |
|
|
#line 3659 "configure"
|
3659 |
|
|
#include "confdefs.h"
|
3660 |
|
|
#include
|
3661 |
|
|
EOF
|
3662 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
3663 |
|
|
{ (eval echo configure:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
3664 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
3665 |
|
|
if test -z "$ac_err"; then
|
3666 |
|
|
rm -rf conftest*
|
3667 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
3668 |
|
|
else
|
3669 |
|
|
echo "$ac_err" >&5
|
3670 |
|
|
echo "configure: failed program was:" >&5
|
3671 |
|
|
cat conftest.$ac_ext >&5
|
3672 |
|
|
rm -rf conftest*
|
3673 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
3674 |
|
|
fi
|
3675 |
|
|
rm -f conftest*
|
3676 |
|
|
fi
|
3677 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
3678 |
|
|
echo "$ac_t""yes" 1>&6
|
3679 |
|
|
cat >> confdefs.h <<\EOF
|
3680 |
|
|
#define HAVE_VFORK_H 1
|
3681 |
|
|
EOF
|
3682 |
|
|
|
3683 |
|
|
else
|
3684 |
|
|
echo "$ac_t""no" 1>&6
|
3685 |
|
|
fi
|
3686 |
|
|
|
3687 |
|
|
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
|
3688 |
|
|
echo "configure:3689: checking for working vfork" >&5
|
3689 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
|
3690 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3691 |
|
|
else
|
3692 |
|
|
if test "$cross_compiling" = yes; then
|
3693 |
|
|
echo $ac_n "checking for vfork""... $ac_c" 1>&6
|
3694 |
|
|
echo "configure:3695: checking for vfork" >&5
|
3695 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
|
3696 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3697 |
|
|
else
|
3698 |
|
|
cat > conftest.$ac_ext <
|
3699 |
|
|
#line 3700 "configure"
|
3700 |
|
|
#include "confdefs.h"
|
3701 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
3702 |
|
|
which can conflict with char vfork(); below. */
|
3703 |
|
|
#include
|
3704 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
3705 |
|
|
/* We use char because int might match the return type of a gcc2
|
3706 |
|
|
builtin and then its argument prototype would still apply. */
|
3707 |
|
|
char vfork();
|
3708 |
|
|
|
3709 |
|
|
int main() {
|
3710 |
|
|
|
3711 |
|
|
/* The GNU C library defines this for functions which it implements
|
3712 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
3713 |
|
|
something starting with __ and the normal name is an alias. */
|
3714 |
|
|
#if defined (__stub_vfork) || defined (__stub___vfork)
|
3715 |
|
|
choke me
|
3716 |
|
|
#else
|
3717 |
|
|
vfork();
|
3718 |
|
|
#endif
|
3719 |
|
|
|
3720 |
|
|
; return 0; }
|
3721 |
|
|
EOF
|
3722 |
|
|
if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
3723 |
|
|
rm -rf conftest*
|
3724 |
|
|
eval "ac_cv_func_vfork=yes"
|
3725 |
|
|
else
|
3726 |
|
|
echo "configure: failed program was:" >&5
|
3727 |
|
|
cat conftest.$ac_ext >&5
|
3728 |
|
|
rm -rf conftest*
|
3729 |
|
|
eval "ac_cv_func_vfork=no"
|
3730 |
|
|
fi
|
3731 |
|
|
rm -f conftest*
|
3732 |
|
|
fi
|
3733 |
|
|
|
3734 |
|
|
if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
|
3735 |
|
|
echo "$ac_t""yes" 1>&6
|
3736 |
|
|
:
|
3737 |
|
|
else
|
3738 |
|
|
echo "$ac_t""no" 1>&6
|
3739 |
|
|
fi
|
3740 |
|
|
|
3741 |
|
|
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
3742 |
|
|
else
|
3743 |
|
|
cat > conftest.$ac_ext <
|
3744 |
|
|
#line 3745 "configure"
|
3745 |
|
|
#include "confdefs.h"
|
3746 |
|
|
/* Thanks to Paul Eggert for this test. */
|
3747 |
|
|
#include
|
3748 |
|
|
#include
|
3749 |
|
|
#include
|
3750 |
|
|
#ifdef HAVE_UNISTD_H
|
3751 |
|
|
#include
|
3752 |
|
|
#endif
|
3753 |
|
|
#ifdef HAVE_VFORK_H
|
3754 |
|
|
#include
|
3755 |
|
|
#endif
|
3756 |
|
|
/* On some sparc systems, changes by the child to local and incoming
|
3757 |
|
|
argument registers are propagated back to the parent.
|
3758 |
|
|
The compiler is told about this with #include ,
|
3759 |
|
|
but some compilers (e.g. gcc -O) don't grok .
|
3760 |
|
|
Test for this by using a static variable whose address
|
3761 |
|
|
is put into a register that is clobbered by the vfork. */
|
3762 |
|
|
static
|
3763 |
|
|
#ifdef __cplusplus
|
3764 |
|
|
sparc_address_test (int arg)
|
3765 |
|
|
#else
|
3766 |
|
|
sparc_address_test (arg) int arg;
|
3767 |
|
|
#endif
|
3768 |
|
|
{
|
3769 |
|
|
static pid_t child;
|
3770 |
|
|
if (!child) {
|
3771 |
|
|
child = vfork ();
|
3772 |
|
|
if (child < 0) {
|
3773 |
|
|
perror ("vfork");
|
3774 |
|
|
_exit(2);
|
3775 |
|
|
}
|
3776 |
|
|
if (!child) {
|
3777 |
|
|
arg = getpid();
|
3778 |
|
|
write(-1, "", 0);
|
3779 |
|
|
_exit (arg);
|
3780 |
|
|
}
|
3781 |
|
|
}
|
3782 |
|
|
}
|
3783 |
|
|
main() {
|
3784 |
|
|
pid_t parent = getpid ();
|
3785 |
|
|
pid_t child;
|
3786 |
|
|
|
3787 |
|
|
sparc_address_test ();
|
3788 |
|
|
|
3789 |
|
|
child = vfork ();
|
3790 |
|
|
|
3791 |
|
|
if (child == 0) {
|
3792 |
|
|
/* Here is another test for sparc vfork register problems.
|
3793 |
|
|
This test uses lots of local variables, at least
|
3794 |
|
|
as many local variables as main has allocated so far
|
3795 |
|
|
including compiler temporaries. 4 locals are enough for
|
3796 |
|
|
gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
|
3797 |
|
|
A buggy compiler should reuse the register of parent
|
3798 |
|
|
for one of the local variables, since it will think that
|
3799 |
|
|
parent can't possibly be used any more in this routine.
|
3800 |
|
|
Assigning to the local variable will thus munge parent
|
3801 |
|
|
in the parent process. */
|
3802 |
|
|
pid_t
|
3803 |
|
|
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
3804 |
|
|
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
3805 |
|
|
/* Convince the compiler that p..p7 are live; otherwise, it might
|
3806 |
|
|
use the same hardware register for all 8 local variables. */
|
3807 |
|
|
if (p != p1 || p != p2 || p != p3 || p != p4
|
3808 |
|
|
|| p != p5 || p != p6 || p != p7)
|
3809 |
|
|
_exit(1);
|
3810 |
|
|
|
3811 |
|
|
/* On some systems (e.g. IRIX 3.3),
|
3812 |
|
|
vfork doesn't separate parent from child file descriptors.
|
3813 |
|
|
If the child closes a descriptor before it execs or exits,
|
3814 |
|
|
this munges the parent's descriptor as well.
|
3815 |
|
|
Test for this by closing stdout in the child. */
|
3816 |
|
|
_exit(close(fileno(stdout)) != 0);
|
3817 |
|
|
} else {
|
3818 |
|
|
int status;
|
3819 |
|
|
struct stat st;
|
3820 |
|
|
|
3821 |
|
|
while (wait(&status) != child)
|
3822 |
|
|
;
|
3823 |
|
|
exit(
|
3824 |
|
|
/* Was there some problem with vforking? */
|
3825 |
|
|
child < 0
|
3826 |
|
|
|
3827 |
|
|
/* Did the child fail? (This shouldn't happen.) */
|
3828 |
|
|
|| status
|
3829 |
|
|
|
3830 |
|
|
/* Did the vfork/compiler bug occur? */
|
3831 |
|
|
|| parent != getpid()
|
3832 |
|
|
|
3833 |
|
|
/* Did the file descriptor bug occur? */
|
3834 |
|
|
|| fstat(fileno(stdout), &st) != 0
|
3835 |
|
|
);
|
3836 |
|
|
}
|
3837 |
|
|
}
|
3838 |
|
|
EOF
|
3839 |
|
|
if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
3840 |
|
|
then
|
3841 |
|
|
ac_cv_func_vfork_works=yes
|
3842 |
|
|
else
|
3843 |
|
|
echo "configure: failed program was:" >&5
|
3844 |
|
|
cat conftest.$ac_ext >&5
|
3845 |
|
|
rm -fr conftest*
|
3846 |
|
|
ac_cv_func_vfork_works=no
|
3847 |
|
|
fi
|
3848 |
|
|
rm -fr conftest*
|
3849 |
|
|
fi
|
3850 |
|
|
|
3851 |
|
|
fi
|
3852 |
|
|
|
3853 |
|
|
echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
|
3854 |
|
|
if test $ac_cv_func_vfork_works = no; then
|
3855 |
|
|
cat >> confdefs.h <<\EOF
|
3856 |
|
|
#define vfork fork
|
3857 |
|
|
EOF
|
3858 |
|
|
|
3859 |
|
|
fi
|
3860 |
|
|
|
3861 |
|
|
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
3862 |
|
|
# for constant arguments. Useless!
|
3863 |
|
|
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
3864 |
|
|
echo "configure:3865: checking for working alloca.h" >&5
|
3865 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
3866 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3867 |
|
|
else
|
3868 |
|
|
cat > conftest.$ac_ext <
|
3869 |
|
|
#line 3870 "configure"
|
3870 |
|
|
#include "confdefs.h"
|
3871 |
|
|
#include
|
3872 |
|
|
int main() {
|
3873 |
|
|
char *p = alloca(2 * sizeof(int));
|
3874 |
|
|
; return 0; }
|
3875 |
|
|
EOF
|
3876 |
|
|
if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
3877 |
|
|
rm -rf conftest*
|
3878 |
|
|
ac_cv_header_alloca_h=yes
|
3879 |
|
|
else
|
3880 |
|
|
echo "configure: failed program was:" >&5
|
3881 |
|
|
cat conftest.$ac_ext >&5
|
3882 |
|
|
rm -rf conftest*
|
3883 |
|
|
ac_cv_header_alloca_h=no
|
3884 |
|
|
fi
|
3885 |
|
|
rm -f conftest*
|
3886 |
|
|
fi
|
3887 |
|
|
|
3888 |
|
|
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
3889 |
|
|
if test $ac_cv_header_alloca_h = yes; then
|
3890 |
|
|
cat >> confdefs.h <<\EOF
|
3891 |
|
|
#define HAVE_ALLOCA_H 1
|
3892 |
|
|
EOF
|
3893 |
|
|
|
3894 |
|
|
fi
|
3895 |
|
|
|
3896 |
|
|
echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
3897 |
|
|
echo "configure:3898: checking for alloca" >&5
|
3898 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
3899 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3900 |
|
|
else
|
3901 |
|
|
cat > conftest.$ac_ext <
|
3902 |
|
|
#line 3903 "configure"
|
3903 |
|
|
#include "confdefs.h"
|
3904 |
|
|
|
3905 |
|
|
#ifdef __GNUC__
|
3906 |
|
|
# define alloca __builtin_alloca
|
3907 |
|
|
#else
|
3908 |
|
|
# ifdef _MSC_VER
|
3909 |
|
|
# include
|
3910 |
|
|
# define alloca _alloca
|
3911 |
|
|
# else
|
3912 |
|
|
# if HAVE_ALLOCA_H
|
3913 |
|
|
# include
|
3914 |
|
|
# else
|
3915 |
|
|
# ifdef _AIX
|
3916 |
|
|
#pragma alloca
|
3917 |
|
|
# else
|
3918 |
|
|
# ifndef alloca /* predefined by HP cc +Olibcalls */
|
3919 |
|
|
char *alloca ();
|
3920 |
|
|
# endif
|
3921 |
|
|
# endif
|
3922 |
|
|
# endif
|
3923 |
|
|
# endif
|
3924 |
|
|
#endif
|
3925 |
|
|
|
3926 |
|
|
int main() {
|
3927 |
|
|
char *p = (char *) alloca(1);
|
3928 |
|
|
; return 0; }
|
3929 |
|
|
EOF
|
3930 |
|
|
if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
3931 |
|
|
rm -rf conftest*
|
3932 |
|
|
ac_cv_func_alloca_works=yes
|
3933 |
|
|
else
|
3934 |
|
|
echo "configure: failed program was:" >&5
|
3935 |
|
|
cat conftest.$ac_ext >&5
|
3936 |
|
|
rm -rf conftest*
|
3937 |
|
|
ac_cv_func_alloca_works=no
|
3938 |
|
|
fi
|
3939 |
|
|
rm -f conftest*
|
3940 |
|
|
fi
|
3941 |
|
|
|
3942 |
|
|
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
3943 |
|
|
if test $ac_cv_func_alloca_works = yes; then
|
3944 |
|
|
cat >> confdefs.h <<\EOF
|
3945 |
|
|
#define HAVE_ALLOCA 1
|
3946 |
|
|
EOF
|
3947 |
|
|
|
3948 |
|
|
fi
|
3949 |
|
|
|
3950 |
|
|
if test $ac_cv_func_alloca_works = no; then
|
3951 |
|
|
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
3952 |
|
|
# that cause trouble. Some versions do not even contain alloca or
|
3953 |
|
|
# contain a buggy version. If you still want to use their alloca,
|
3954 |
|
|
# use ar to extract alloca.o from them instead of compiling alloca.c.
|
3955 |
|
|
ALLOCA=alloca.${ac_objext}
|
3956 |
|
|
cat >> confdefs.h <<\EOF
|
3957 |
|
|
#define C_ALLOCA 1
|
3958 |
|
|
EOF
|
3959 |
|
|
|
3960 |
|
|
|
3961 |
|
|
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
3962 |
|
|
echo "configure:3963: checking whether alloca needs Cray hooks" >&5
|
3963 |
|
|
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
3964 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3965 |
|
|
else
|
3966 |
|
|
cat > conftest.$ac_ext <
|
3967 |
|
|
#line 3968 "configure"
|
3968 |
|
|
#include "confdefs.h"
|
3969 |
|
|
#if defined(CRAY) && ! defined(CRAY2)
|
3970 |
|
|
webecray
|
3971 |
|
|
#else
|
3972 |
|
|
wenotbecray
|
3973 |
|
|
#endif
|
3974 |
|
|
|
3975 |
|
|
EOF
|
3976 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3977 |
|
|
egrep "webecray" >/dev/null 2>&1; then
|
3978 |
|
|
rm -rf conftest*
|
3979 |
|
|
ac_cv_os_cray=yes
|
3980 |
|
|
else
|
3981 |
|
|
rm -rf conftest*
|
3982 |
|
|
ac_cv_os_cray=no
|
3983 |
|
|
fi
|
3984 |
|
|
rm -f conftest*
|
3985 |
|
|
|
3986 |
|
|
fi
|
3987 |
|
|
|
3988 |
|
|
echo "$ac_t""$ac_cv_os_cray" 1>&6
|
3989 |
|
|
if test $ac_cv_os_cray = yes; then
|
3990 |
|
|
for ac_func in _getb67 GETB67 getb67; do
|
3991 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
3992 |
|
|
echo "configure:3993: checking for $ac_func" >&5
|
3993 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
3994 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
3995 |
|
|
else
|
3996 |
|
|
cat > conftest.$ac_ext <
|
3997 |
|
|
#line 3998 "configure"
|
3998 |
|
|
#include "confdefs.h"
|
3999 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
4000 |
|
|
which can conflict with char $ac_func(); below. */
|
4001 |
|
|
#include
|
4002 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4003 |
|
|
/* We use char because int might match the return type of a gcc2
|
4004 |
|
|
builtin and then its argument prototype would still apply. */
|
4005 |
|
|
char $ac_func();
|
4006 |
|
|
|
4007 |
|
|
int main() {
|
4008 |
|
|
|
4009 |
|
|
/* The GNU C library defines this for functions which it implements
|
4010 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
4011 |
|
|
something starting with __ and the normal name is an alias. */
|
4012 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
4013 |
|
|
choke me
|
4014 |
|
|
#else
|
4015 |
|
|
$ac_func();
|
4016 |
|
|
#endif
|
4017 |
|
|
|
4018 |
|
|
; return 0; }
|
4019 |
|
|
EOF
|
4020 |
|
|
if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
4021 |
|
|
rm -rf conftest*
|
4022 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
4023 |
|
|
else
|
4024 |
|
|
echo "configure: failed program was:" >&5
|
4025 |
|
|
cat conftest.$ac_ext >&5
|
4026 |
|
|
rm -rf conftest*
|
4027 |
|
|
eval "ac_cv_func_$ac_func=no"
|
4028 |
|
|
fi
|
4029 |
|
|
rm -f conftest*
|
4030 |
|
|
fi
|
4031 |
|
|
|
4032 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
4033 |
|
|
echo "$ac_t""yes" 1>&6
|
4034 |
|
|
cat >> confdefs.h <
|
4035 |
|
|
#define CRAY_STACKSEG_END $ac_func
|
4036 |
|
|
EOF
|
4037 |
|
|
|
4038 |
|
|
break
|
4039 |
|
|
else
|
4040 |
|
|
echo "$ac_t""no" 1>&6
|
4041 |
|
|
fi
|
4042 |
|
|
|
4043 |
|
|
done
|
4044 |
|
|
fi
|
4045 |
|
|
|
4046 |
|
|
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
4047 |
|
|
echo "configure:4048: checking stack direction for C alloca" >&5
|
4048 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
4049 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4050 |
|
|
else
|
4051 |
|
|
if test "$cross_compiling" = yes; then
|
4052 |
|
|
ac_cv_c_stack_direction=0
|
4053 |
|
|
else
|
4054 |
|
|
cat > conftest.$ac_ext <
|
4055 |
|
|
#line 4056 "configure"
|
4056 |
|
|
#include "confdefs.h"
|
4057 |
|
|
find_stack_direction ()
|
4058 |
|
|
{
|
4059 |
|
|
static char *addr = 0;
|
4060 |
|
|
auto char dummy;
|
4061 |
|
|
if (addr == 0)
|
4062 |
|
|
{
|
4063 |
|
|
addr = &dummy;
|
4064 |
|
|
return find_stack_direction ();
|
4065 |
|
|
}
|
4066 |
|
|
else
|
4067 |
|
|
return (&dummy > addr) ? 1 : -1;
|
4068 |
|
|
}
|
4069 |
|
|
main ()
|
4070 |
|
|
{
|
4071 |
|
|
exit (find_stack_direction() < 0);
|
4072 |
|
|
}
|
4073 |
|
|
EOF
|
4074 |
|
|
if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
4075 |
|
|
then
|
4076 |
|
|
ac_cv_c_stack_direction=1
|
4077 |
|
|
else
|
4078 |
|
|
echo "configure: failed program was:" >&5
|
4079 |
|
|
cat conftest.$ac_ext >&5
|
4080 |
|
|
rm -fr conftest*
|
4081 |
|
|
ac_cv_c_stack_direction=-1
|
4082 |
|
|
fi
|
4083 |
|
|
rm -fr conftest*
|
4084 |
|
|
fi
|
4085 |
|
|
|
4086 |
|
|
fi
|
4087 |
|
|
|
4088 |
|
|
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
4089 |
|
|
cat >> confdefs.h <
|
4090 |
|
|
#define STACK_DIRECTION $ac_cv_c_stack_direction
|
4091 |
|
|
EOF
|
4092 |
|
|
|
4093 |
|
|
fi
|
4094 |
|
|
|
4095 |
|
|
|
4096 |
|
|
# See if supports the %fs and %gs i386 segment registers.
|
4097 |
|
|
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
|
4098 |
|
|
echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
|
4099 |
|
|
echo "configure:4100: checking for r_fs in struct reg" >&5
|
4100 |
|
|
if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
|
4101 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4102 |
|
|
else
|
4103 |
|
|
cat > conftest.$ac_ext <
|
4104 |
|
|
#line 4105 "configure"
|
4105 |
|
|
#include "confdefs.h"
|
4106 |
|
|
#include
|
4107 |
|
|
int main() {
|
4108 |
|
|
struct reg r; r.r_fs;
|
4109 |
|
|
; return 0; }
|
4110 |
|
|
EOF
|
4111 |
|
|
if { (eval echo configure:4112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4112 |
|
|
rm -rf conftest*
|
4113 |
|
|
gdb_cv_struct_reg_r_fs=yes
|
4114 |
|
|
else
|
4115 |
|
|
echo "configure: failed program was:" >&5
|
4116 |
|
|
cat conftest.$ac_ext >&5
|
4117 |
|
|
rm -rf conftest*
|
4118 |
|
|
gdb_cv_struct_reg_r_fs=no
|
4119 |
|
|
fi
|
4120 |
|
|
rm -f conftest*
|
4121 |
|
|
fi
|
4122 |
|
|
|
4123 |
|
|
echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
|
4124 |
|
|
if test $gdb_cv_struct_reg_r_fs = yes; then
|
4125 |
|
|
cat >> confdefs.h <<\EOF
|
4126 |
|
|
#define HAVE_STRUCT_REG_R_FS 1
|
4127 |
|
|
EOF
|
4128 |
|
|
|
4129 |
|
|
fi
|
4130 |
|
|
echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
|
4131 |
|
|
echo "configure:4132: checking for r_gs in struct reg" >&5
|
4132 |
|
|
if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
|
4133 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4134 |
|
|
else
|
4135 |
|
|
cat > conftest.$ac_ext <
|
4136 |
|
|
#line 4137 "configure"
|
4137 |
|
|
#include "confdefs.h"
|
4138 |
|
|
#include
|
4139 |
|
|
int main() {
|
4140 |
|
|
struct reg r; r.r_gs;
|
4141 |
|
|
; return 0; }
|
4142 |
|
|
EOF
|
4143 |
|
|
if { (eval echo configure:4144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4144 |
|
|
rm -rf conftest*
|
4145 |
|
|
gdb_cv_struct_reg_r_gs=yes
|
4146 |
|
|
else
|
4147 |
|
|
echo "configure: failed program was:" >&5
|
4148 |
|
|
cat conftest.$ac_ext >&5
|
4149 |
|
|
rm -rf conftest*
|
4150 |
|
|
gdb_cv_struct_reg_r_gs=no
|
4151 |
|
|
fi
|
4152 |
|
|
rm -f conftest*
|
4153 |
|
|
fi
|
4154 |
|
|
|
4155 |
|
|
echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
|
4156 |
|
|
if test $gdb_cv_struct_reg_r_gs = yes; then
|
4157 |
|
|
cat >> confdefs.h <<\EOF
|
4158 |
|
|
#define HAVE_STRUCT_REG_R_GS 1
|
4159 |
|
|
EOF
|
4160 |
|
|
|
4161 |
|
|
fi
|
4162 |
|
|
|
4163 |
|
|
# See if provides the PTRACE_GETREGS request.
|
4164 |
|
|
echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
|
4165 |
|
|
echo "configure:4166: checking for PTRACE_GETREGS" >&5
|
4166 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
|
4167 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4168 |
|
|
else
|
4169 |
|
|
cat > conftest.$ac_ext <
|
4170 |
|
|
#line 4171 "configure"
|
4171 |
|
|
#include "confdefs.h"
|
4172 |
|
|
#include
|
4173 |
|
|
int main() {
|
4174 |
|
|
PTRACE_GETREGS;
|
4175 |
|
|
; return 0; }
|
4176 |
|
|
EOF
|
4177 |
|
|
if { (eval echo configure:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4178 |
|
|
rm -rf conftest*
|
4179 |
|
|
gdb_cv_have_ptrace_getregs=yes
|
4180 |
|
|
else
|
4181 |
|
|
echo "configure: failed program was:" >&5
|
4182 |
|
|
cat conftest.$ac_ext >&5
|
4183 |
|
|
rm -rf conftest*
|
4184 |
|
|
gdb_cv_have_ptrace_getregs=no
|
4185 |
|
|
fi
|
4186 |
|
|
rm -f conftest*
|
4187 |
|
|
fi
|
4188 |
|
|
|
4189 |
|
|
echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
|
4190 |
|
|
if test $gdb_cv_have_ptrace_getregs = yes; then
|
4191 |
|
|
cat >> confdefs.h <<\EOF
|
4192 |
|
|
#define HAVE_PTRACE_GETREGS 1
|
4193 |
|
|
EOF
|
4194 |
|
|
|
4195 |
|
|
fi
|
4196 |
|
|
|
4197 |
|
|
# See if provides the PTRACE_GETFPXREGS request.
|
4198 |
|
|
echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
|
4199 |
|
|
echo "configure:4200: checking for PTRACE_GETFPXREGS" >&5
|
4200 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
|
4201 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4202 |
|
|
else
|
4203 |
|
|
cat > conftest.$ac_ext <
|
4204 |
|
|
#line 4205 "configure"
|
4205 |
|
|
#include "confdefs.h"
|
4206 |
|
|
#include
|
4207 |
|
|
int main() {
|
4208 |
|
|
PTRACE_GETFPXREGS;
|
4209 |
|
|
; return 0; }
|
4210 |
|
|
EOF
|
4211 |
|
|
if { (eval echo configure:4212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4212 |
|
|
rm -rf conftest*
|
4213 |
|
|
gdb_cv_have_ptrace_getfpxregs=yes
|
4214 |
|
|
else
|
4215 |
|
|
echo "configure: failed program was:" >&5
|
4216 |
|
|
cat conftest.$ac_ext >&5
|
4217 |
|
|
rm -rf conftest*
|
4218 |
|
|
gdb_cv_have_ptrace_getfpxregs=no
|
4219 |
|
|
fi
|
4220 |
|
|
rm -f conftest*
|
4221 |
|
|
fi
|
4222 |
|
|
|
4223 |
|
|
echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
|
4224 |
|
|
if test $gdb_cv_have_ptrace_getfpxregs = yes; then
|
4225 |
|
|
cat >> confdefs.h <<\EOF
|
4226 |
|
|
#define HAVE_PTRACE_GETFPXREGS 1
|
4227 |
|
|
EOF
|
4228 |
|
|
|
4229 |
|
|
fi
|
4230 |
|
|
|
4231 |
|
|
# See if provides the PT_GETDBREGS request.
|
4232 |
|
|
echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
|
4233 |
|
|
echo "configure:4234: checking for PT_GETDBREGS" >&5
|
4234 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
|
4235 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4236 |
|
|
else
|
4237 |
|
|
cat > conftest.$ac_ext <
|
4238 |
|
|
#line 4239 "configure"
|
4239 |
|
|
#include "confdefs.h"
|
4240 |
|
|
#include
|
4241 |
|
|
#include
|
4242 |
|
|
int main() {
|
4243 |
|
|
PT_GETDBREGS;
|
4244 |
|
|
; return 0; }
|
4245 |
|
|
EOF
|
4246 |
|
|
if { (eval echo configure:4247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4247 |
|
|
rm -rf conftest*
|
4248 |
|
|
gdb_cv_have_pt_getdbregs=yes
|
4249 |
|
|
else
|
4250 |
|
|
echo "configure: failed program was:" >&5
|
4251 |
|
|
cat conftest.$ac_ext >&5
|
4252 |
|
|
rm -rf conftest*
|
4253 |
|
|
gdb_cv_have_pt_getdbregs=no
|
4254 |
|
|
fi
|
4255 |
|
|
rm -f conftest*
|
4256 |
|
|
fi
|
4257 |
|
|
|
4258 |
|
|
echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
|
4259 |
|
|
if test $gdb_cv_have_pt_getdbregs = yes; then
|
4260 |
|
|
cat >> confdefs.h <<\EOF
|
4261 |
|
|
#define HAVE_PT_GETDBREGS 1
|
4262 |
|
|
EOF
|
4263 |
|
|
|
4264 |
|
|
fi
|
4265 |
|
|
|
4266 |
|
|
|
4267 |
|
|
echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
|
4268 |
|
|
echo "configure:4269: checking for socketpair in -lsocket" >&5
|
4269 |
|
|
ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
|
4270 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
4271 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4272 |
|
|
else
|
4273 |
|
|
ac_save_LIBS="$LIBS"
|
4274 |
|
|
LIBS="-lsocket $LIBS"
|
4275 |
|
|
cat > conftest.$ac_ext <
|
4276 |
|
|
#line 4277 "configure"
|
4277 |
|
|
#include "confdefs.h"
|
4278 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4279 |
|
|
/* We use char because int might match the return type of a gcc2
|
4280 |
|
|
builtin and then its argument prototype would still apply. */
|
4281 |
|
|
char socketpair();
|
4282 |
|
|
|
4283 |
|
|
int main() {
|
4284 |
|
|
socketpair()
|
4285 |
|
|
; return 0; }
|
4286 |
|
|
EOF
|
4287 |
|
|
if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
4288 |
|
|
rm -rf conftest*
|
4289 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
4290 |
|
|
else
|
4291 |
|
|
echo "configure: failed program was:" >&5
|
4292 |
|
|
cat conftest.$ac_ext >&5
|
4293 |
|
|
rm -rf conftest*
|
4294 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
4295 |
|
|
fi
|
4296 |
|
|
rm -f conftest*
|
4297 |
|
|
LIBS="$ac_save_LIBS"
|
4298 |
|
|
|
4299 |
|
|
fi
|
4300 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
4301 |
|
|
echo "$ac_t""yes" 1>&6
|
4302 |
|
|
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
4303 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
4304 |
|
|
cat >> confdefs.h <
|
4305 |
|
|
#define $ac_tr_lib 1
|
4306 |
|
|
EOF
|
4307 |
|
|
|
4308 |
|
|
LIBS="-lsocket $LIBS"
|
4309 |
|
|
|
4310 |
|
|
else
|
4311 |
|
|
echo "$ac_t""no" 1>&6
|
4312 |
|
|
fi
|
4313 |
|
|
|
4314 |
|
|
for ac_func in socketpair
|
4315 |
|
|
do
|
4316 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
4317 |
|
|
echo "configure:4318: checking for $ac_func" >&5
|
4318 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
4319 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4320 |
|
|
else
|
4321 |
|
|
cat > conftest.$ac_ext <
|
4322 |
|
|
#line 4323 "configure"
|
4323 |
|
|
#include "confdefs.h"
|
4324 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
4325 |
|
|
which can conflict with char $ac_func(); below. */
|
4326 |
|
|
#include
|
4327 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4328 |
|
|
/* We use char because int might match the return type of a gcc2
|
4329 |
|
|
builtin and then its argument prototype would still apply. */
|
4330 |
|
|
char $ac_func();
|
4331 |
|
|
|
4332 |
|
|
int main() {
|
4333 |
|
|
|
4334 |
|
|
/* The GNU C library defines this for functions which it implements
|
4335 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
4336 |
|
|
something starting with __ and the normal name is an alias. */
|
4337 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
4338 |
|
|
choke me
|
4339 |
|
|
#else
|
4340 |
|
|
$ac_func();
|
4341 |
|
|
#endif
|
4342 |
|
|
|
4343 |
|
|
; return 0; }
|
4344 |
|
|
EOF
|
4345 |
|
|
if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
4346 |
|
|
rm -rf conftest*
|
4347 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
4348 |
|
|
else
|
4349 |
|
|
echo "configure: failed program was:" >&5
|
4350 |
|
|
cat conftest.$ac_ext >&5
|
4351 |
|
|
rm -rf conftest*
|
4352 |
|
|
eval "ac_cv_func_$ac_func=no"
|
4353 |
|
|
fi
|
4354 |
|
|
rm -f conftest*
|
4355 |
|
|
fi
|
4356 |
|
|
|
4357 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
4358 |
|
|
echo "$ac_t""yes" 1>&6
|
4359 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
4360 |
|
|
cat >> confdefs.h <
|
4361 |
|
|
#define $ac_tr_func 1
|
4362 |
|
|
EOF
|
4363 |
|
|
|
4364 |
|
|
else
|
4365 |
|
|
echo "$ac_t""no" 1>&6
|
4366 |
|
|
fi
|
4367 |
|
|
done
|
4368 |
|
|
|
4369 |
|
|
|
4370 |
|
|
|
4371 |
|
|
echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
4372 |
|
|
echo "configure:4373: checking whether malloc must be declared" >&5
|
4373 |
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
4374 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4375 |
|
|
else
|
4376 |
|
|
cat > conftest.$ac_ext <
|
4377 |
|
|
#line 4378 "configure"
|
4378 |
|
|
#include "confdefs.h"
|
4379 |
|
|
|
4380 |
|
|
#include
|
4381 |
|
|
#ifdef HAVE_STRING_H
|
4382 |
|
|
#include
|
4383 |
|
|
#else
|
4384 |
|
|
#ifdef HAVE_STRINGS_H
|
4385 |
|
|
#include
|
4386 |
|
|
#endif
|
4387 |
|
|
#endif
|
4388 |
|
|
#ifdef HAVE_STDLIB_H
|
4389 |
|
|
#include
|
4390 |
|
|
#endif
|
4391 |
|
|
#ifdef HAVE_UNISTD_H
|
4392 |
|
|
#include
|
4393 |
|
|
#endif
|
4394 |
|
|
int main() {
|
4395 |
|
|
char *(*pfn) = (char *(*)) malloc
|
4396 |
|
|
; return 0; }
|
4397 |
|
|
EOF
|
4398 |
|
|
if { (eval echo configure:4399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4399 |
|
|
rm -rf conftest*
|
4400 |
|
|
bfd_cv_decl_needed_malloc=no
|
4401 |
|
|
else
|
4402 |
|
|
echo "configure: failed program was:" >&5
|
4403 |
|
|
cat conftest.$ac_ext >&5
|
4404 |
|
|
rm -rf conftest*
|
4405 |
|
|
bfd_cv_decl_needed_malloc=yes
|
4406 |
|
|
fi
|
4407 |
|
|
rm -f conftest*
|
4408 |
|
|
fi
|
4409 |
|
|
|
4410 |
|
|
echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
4411 |
|
|
if test $bfd_cv_decl_needed_malloc = yes; then
|
4412 |
|
|
cat >> confdefs.h <<\EOF
|
4413 |
|
|
#define NEED_DECLARATION_MALLOC 1
|
4414 |
|
|
EOF
|
4415 |
|
|
|
4416 |
|
|
fi
|
4417 |
|
|
|
4418 |
|
|
echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
4419 |
|
|
echo "configure:4420: checking whether realloc must be declared" >&5
|
4420 |
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
4421 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4422 |
|
|
else
|
4423 |
|
|
cat > conftest.$ac_ext <
|
4424 |
|
|
#line 4425 "configure"
|
4425 |
|
|
#include "confdefs.h"
|
4426 |
|
|
|
4427 |
|
|
#include
|
4428 |
|
|
#ifdef HAVE_STRING_H
|
4429 |
|
|
#include
|
4430 |
|
|
#else
|
4431 |
|
|
#ifdef HAVE_STRINGS_H
|
4432 |
|
|
#include
|
4433 |
|
|
#endif
|
4434 |
|
|
#endif
|
4435 |
|
|
#ifdef HAVE_STDLIB_H
|
4436 |
|
|
#include
|
4437 |
|
|
#endif
|
4438 |
|
|
#ifdef HAVE_UNISTD_H
|
4439 |
|
|
#include
|
4440 |
|
|
#endif
|
4441 |
|
|
int main() {
|
4442 |
|
|
char *(*pfn) = (char *(*)) realloc
|
4443 |
|
|
; return 0; }
|
4444 |
|
|
EOF
|
4445 |
|
|
if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4446 |
|
|
rm -rf conftest*
|
4447 |
|
|
bfd_cv_decl_needed_realloc=no
|
4448 |
|
|
else
|
4449 |
|
|
echo "configure: failed program was:" >&5
|
4450 |
|
|
cat conftest.$ac_ext >&5
|
4451 |
|
|
rm -rf conftest*
|
4452 |
|
|
bfd_cv_decl_needed_realloc=yes
|
4453 |
|
|
fi
|
4454 |
|
|
rm -f conftest*
|
4455 |
|
|
fi
|
4456 |
|
|
|
4457 |
|
|
echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
4458 |
|
|
if test $bfd_cv_decl_needed_realloc = yes; then
|
4459 |
|
|
cat >> confdefs.h <<\EOF
|
4460 |
|
|
#define NEED_DECLARATION_REALLOC 1
|
4461 |
|
|
EOF
|
4462 |
|
|
|
4463 |
|
|
fi
|
4464 |
|
|
|
4465 |
|
|
echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
4466 |
|
|
echo "configure:4467: checking whether free must be declared" >&5
|
4467 |
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
4468 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4469 |
|
|
else
|
4470 |
|
|
cat > conftest.$ac_ext <
|
4471 |
|
|
#line 4472 "configure"
|
4472 |
|
|
#include "confdefs.h"
|
4473 |
|
|
|
4474 |
|
|
#include
|
4475 |
|
|
#ifdef HAVE_STRING_H
|
4476 |
|
|
#include
|
4477 |
|
|
#else
|
4478 |
|
|
#ifdef HAVE_STRINGS_H
|
4479 |
|
|
#include
|
4480 |
|
|
#endif
|
4481 |
|
|
#endif
|
4482 |
|
|
#ifdef HAVE_STDLIB_H
|
4483 |
|
|
#include
|
4484 |
|
|
#endif
|
4485 |
|
|
#ifdef HAVE_UNISTD_H
|
4486 |
|
|
#include
|
4487 |
|
|
#endif
|
4488 |
|
|
int main() {
|
4489 |
|
|
char *(*pfn) = (char *(*)) free
|
4490 |
|
|
; return 0; }
|
4491 |
|
|
EOF
|
4492 |
|
|
if { (eval echo configure:4493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4493 |
|
|
rm -rf conftest*
|
4494 |
|
|
bfd_cv_decl_needed_free=no
|
4495 |
|
|
else
|
4496 |
|
|
echo "configure: failed program was:" >&5
|
4497 |
|
|
cat conftest.$ac_ext >&5
|
4498 |
|
|
rm -rf conftest*
|
4499 |
|
|
bfd_cv_decl_needed_free=yes
|
4500 |
|
|
fi
|
4501 |
|
|
rm -f conftest*
|
4502 |
|
|
fi
|
4503 |
|
|
|
4504 |
|
|
echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
4505 |
|
|
if test $bfd_cv_decl_needed_free = yes; then
|
4506 |
|
|
cat >> confdefs.h <<\EOF
|
4507 |
|
|
#define NEED_DECLARATION_FREE 1
|
4508 |
|
|
EOF
|
4509 |
|
|
|
4510 |
|
|
fi
|
4511 |
|
|
|
4512 |
|
|
echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
|
4513 |
|
|
echo "configure:4514: checking whether strerror must be declared" >&5
|
4514 |
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
|
4515 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4516 |
|
|
else
|
4517 |
|
|
cat > conftest.$ac_ext <
|
4518 |
|
|
#line 4519 "configure"
|
4519 |
|
|
#include "confdefs.h"
|
4520 |
|
|
|
4521 |
|
|
#include
|
4522 |
|
|
#ifdef HAVE_STRING_H
|
4523 |
|
|
#include
|
4524 |
|
|
#else
|
4525 |
|
|
#ifdef HAVE_STRINGS_H
|
4526 |
|
|
#include
|
4527 |
|
|
#endif
|
4528 |
|
|
#endif
|
4529 |
|
|
#ifdef HAVE_STDLIB_H
|
4530 |
|
|
#include
|
4531 |
|
|
#endif
|
4532 |
|
|
#ifdef HAVE_UNISTD_H
|
4533 |
|
|
#include
|
4534 |
|
|
#endif
|
4535 |
|
|
int main() {
|
4536 |
|
|
char *(*pfn) = (char *(*)) strerror
|
4537 |
|
|
; return 0; }
|
4538 |
|
|
EOF
|
4539 |
|
|
if { (eval echo configure:4540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4540 |
|
|
rm -rf conftest*
|
4541 |
|
|
bfd_cv_decl_needed_strerror=no
|
4542 |
|
|
else
|
4543 |
|
|
echo "configure: failed program was:" >&5
|
4544 |
|
|
cat conftest.$ac_ext >&5
|
4545 |
|
|
rm -rf conftest*
|
4546 |
|
|
bfd_cv_decl_needed_strerror=yes
|
4547 |
|
|
fi
|
4548 |
|
|
rm -f conftest*
|
4549 |
|
|
fi
|
4550 |
|
|
|
4551 |
|
|
echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
|
4552 |
|
|
if test $bfd_cv_decl_needed_strerror = yes; then
|
4553 |
|
|
cat >> confdefs.h <<\EOF
|
4554 |
|
|
#define NEED_DECLARATION_STRERROR 1
|
4555 |
|
|
EOF
|
4556 |
|
|
|
4557 |
|
|
fi
|
4558 |
|
|
|
4559 |
|
|
echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
|
4560 |
|
|
echo "configure:4561: checking whether strdup must be declared" >&5
|
4561 |
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
|
4562 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4563 |
|
|
else
|
4564 |
|
|
cat > conftest.$ac_ext <
|
4565 |
|
|
#line 4566 "configure"
|
4566 |
|
|
#include "confdefs.h"
|
4567 |
|
|
|
4568 |
|
|
#include
|
4569 |
|
|
#ifdef HAVE_STRING_H
|
4570 |
|
|
#include
|
4571 |
|
|
#else
|
4572 |
|
|
#ifdef HAVE_STRINGS_H
|
4573 |
|
|
#include
|
4574 |
|
|
#endif
|
4575 |
|
|
#endif
|
4576 |
|
|
#ifdef HAVE_STDLIB_H
|
4577 |
|
|
#include
|
4578 |
|
|
#endif
|
4579 |
|
|
#ifdef HAVE_UNISTD_H
|
4580 |
|
|
#include
|
4581 |
|
|
#endif
|
4582 |
|
|
int main() {
|
4583 |
|
|
char *(*pfn) = (char *(*)) strdup
|
4584 |
|
|
; return 0; }
|
4585 |
|
|
EOF
|
4586 |
|
|
if { (eval echo configure:4587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4587 |
|
|
rm -rf conftest*
|
4588 |
|
|
bfd_cv_decl_needed_strdup=no
|
4589 |
|
|
else
|
4590 |
|
|
echo "configure: failed program was:" >&5
|
4591 |
|
|
cat conftest.$ac_ext >&5
|
4592 |
|
|
rm -rf conftest*
|
4593 |
|
|
bfd_cv_decl_needed_strdup=yes
|
4594 |
|
|
fi
|
4595 |
|
|
rm -f conftest*
|
4596 |
|
|
fi
|
4597 |
|
|
|
4598 |
|
|
echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
|
4599 |
|
|
if test $bfd_cv_decl_needed_strdup = yes; then
|
4600 |
|
|
cat >> confdefs.h <<\EOF
|
4601 |
|
|
#define NEED_DECLARATION_STRDUP 1
|
4602 |
|
|
EOF
|
4603 |
|
|
|
4604 |
|
|
fi
|
4605 |
|
|
|
4606 |
|
|
echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
4607 |
|
|
echo "configure:4608: checking whether strstr must be declared" >&5
|
4608 |
|
|
if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
4609 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4610 |
|
|
else
|
4611 |
|
|
cat > conftest.$ac_ext <
|
4612 |
|
|
#line 4613 "configure"
|
4613 |
|
|
#include "confdefs.h"
|
4614 |
|
|
|
4615 |
|
|
#include
|
4616 |
|
|
#ifdef HAVE_STRING_H
|
4617 |
|
|
#include
|
4618 |
|
|
#else
|
4619 |
|
|
#ifdef HAVE_STRINGS_H
|
4620 |
|
|
#include
|
4621 |
|
|
#endif
|
4622 |
|
|
#endif
|
4623 |
|
|
#ifdef HAVE_STDLIB_H
|
4624 |
|
|
#include
|
4625 |
|
|
#endif
|
4626 |
|
|
#ifdef HAVE_UNISTD_H
|
4627 |
|
|
#include
|
4628 |
|
|
#endif
|
4629 |
|
|
int main() {
|
4630 |
|
|
char *(*pfn) = (char *(*)) strstr
|
4631 |
|
|
; return 0; }
|
4632 |
|
|
EOF
|
4633 |
|
|
if { (eval echo configure:4634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4634 |
|
|
rm -rf conftest*
|
4635 |
|
|
bfd_cv_decl_needed_strstr=no
|
4636 |
|
|
else
|
4637 |
|
|
echo "configure: failed program was:" >&5
|
4638 |
|
|
cat conftest.$ac_ext >&5
|
4639 |
|
|
rm -rf conftest*
|
4640 |
|
|
bfd_cv_decl_needed_strstr=yes
|
4641 |
|
|
fi
|
4642 |
|
|
rm -f conftest*
|
4643 |
|
|
fi
|
4644 |
|
|
|
4645 |
|
|
echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
4646 |
|
|
if test $bfd_cv_decl_needed_strstr = yes; then
|
4647 |
|
|
cat >> confdefs.h <<\EOF
|
4648 |
|
|
#define NEED_DECLARATION_STRSTR 1
|
4649 |
|
|
EOF
|
4650 |
|
|
|
4651 |
|
|
fi
|
4652 |
|
|
|
4653 |
|
|
|
4654 |
|
|
|
4655 |
|
|
# The following save_state_t checkery is only necessary for HPUX
|
4656 |
|
|
# versions earlier than 10.20. When those fade from memory, this
|
4657 |
|
|
# could be expunged. --jsm 1999-03-22
|
4658 |
|
|
|
4659 |
|
|
echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
|
4660 |
|
|
echo "configure:4661: checking for HPUX save_state structure" >&5
|
4661 |
|
|
cat > conftest.$ac_ext <
|
4662 |
|
|
#line 4663 "configure"
|
4663 |
|
|
#include "confdefs.h"
|
4664 |
|
|
#include
|
4665 |
|
|
EOF
|
4666 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4667 |
|
|
egrep "save_state_t" >/dev/null 2>&1; then
|
4668 |
|
|
rm -rf conftest*
|
4669 |
|
|
gdb_cv_hpux_savestate=yes
|
4670 |
|
|
else
|
4671 |
|
|
rm -rf conftest*
|
4672 |
|
|
gdb_cv_hpux_savestate=no
|
4673 |
|
|
fi
|
4674 |
|
|
rm -f conftest*
|
4675 |
|
|
|
4676 |
|
|
cat > conftest.$ac_ext <
|
4677 |
|
|
#line 4678 "configure"
|
4678 |
|
|
#include "confdefs.h"
|
4679 |
|
|
#include
|
4680 |
|
|
EOF
|
4681 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
4682 |
|
|
egrep "ss_wide" >/dev/null 2>&1; then
|
4683 |
|
|
rm -rf conftest*
|
4684 |
|
|
gdb_cv_hpux_sswide=yes
|
4685 |
|
|
else
|
4686 |
|
|
rm -rf conftest*
|
4687 |
|
|
gdb_cv_hpux_sswide=no
|
4688 |
|
|
fi
|
4689 |
|
|
rm -f conftest*
|
4690 |
|
|
|
4691 |
|
|
if test $gdb_cv_hpux_savestate = yes
|
4692 |
|
|
then
|
4693 |
|
|
cat >> confdefs.h <<\EOF
|
4694 |
|
|
#define HAVE_STRUCT_SAVE_STATE_T 1
|
4695 |
|
|
EOF
|
4696 |
|
|
|
4697 |
|
|
fi
|
4698 |
|
|
if test $gdb_cv_hpux_sswide = yes
|
4699 |
|
|
then
|
4700 |
|
|
cat >> confdefs.h <<\EOF
|
4701 |
|
|
#define HAVE_STRUCT_MEMBER_SS_WIDE 1
|
4702 |
|
|
EOF
|
4703 |
|
|
|
4704 |
|
|
fi
|
4705 |
|
|
echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
|
4706 |
|
|
|
4707 |
|
|
|
4708 |
|
|
# If we are configured native on GNU/Linux, work around problems with
|
4709 |
|
|
# sys/procfs.h
|
4710 |
|
|
# Also detect which type of /proc is in use, such as for Unixware or Solaris.
|
4711 |
|
|
|
4712 |
|
|
if test "${target}" = "${host}"; then
|
4713 |
|
|
case "${host}" in
|
4714 |
|
|
i[3456]86-*-linux*)
|
4715 |
|
|
cat >> confdefs.h <<\EOF
|
4716 |
|
|
#define START_INFERIOR_TRAPS_EXPECTED 2
|
4717 |
|
|
EOF
|
4718 |
|
|
|
4719 |
|
|
cat >> confdefs.h <<\EOF
|
4720 |
|
|
#define sys_quotactl 1
|
4721 |
|
|
EOF
|
4722 |
|
|
|
4723 |
|
|
;;
|
4724 |
|
|
ia64-*-aix*)
|
4725 |
|
|
cat >> confdefs.h <<\EOF
|
4726 |
|
|
#define NEW_PROC_API 1
|
4727 |
|
|
EOF
|
4728 |
|
|
|
4729 |
|
|
;;
|
4730 |
|
|
*-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
|
4731 |
|
|
cat >> confdefs.h <<\EOF
|
4732 |
|
|
#define NEW_PROC_API 1
|
4733 |
|
|
EOF
|
4734 |
|
|
|
4735 |
|
|
;;
|
4736 |
|
|
*-*-solaris2.[678])
|
4737 |
|
|
cat >> confdefs.h <<\EOF
|
4738 |
|
|
#define NEW_PROC_API 1
|
4739 |
|
|
EOF
|
4740 |
|
|
|
4741 |
|
|
;;
|
4742 |
|
|
esac
|
4743 |
|
|
fi
|
4744 |
|
|
|
4745 |
|
|
if test "$ac_cv_header_sys_procfs_h" = yes; then
|
4746 |
|
|
echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
4747 |
|
|
echo "configure:4748: checking for pstatus_t in sys/procfs.h" >&5
|
4748 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
|
4749 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4750 |
|
|
else
|
4751 |
|
|
cat > conftest.$ac_ext <
|
4752 |
|
|
#line 4753 "configure"
|
4753 |
|
|
#include "confdefs.h"
|
4754 |
|
|
|
4755 |
|
|
#define _SYSCALL32
|
4756 |
|
|
#include
|
4757 |
|
|
int main() {
|
4758 |
|
|
pstatus_t avar
|
4759 |
|
|
; return 0; }
|
4760 |
|
|
EOF
|
4761 |
|
|
if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4762 |
|
|
rm -rf conftest*
|
4763 |
|
|
bfd_cv_have_sys_procfs_type_pstatus_t=yes
|
4764 |
|
|
else
|
4765 |
|
|
echo "configure: failed program was:" >&5
|
4766 |
|
|
cat conftest.$ac_ext >&5
|
4767 |
|
|
rm -rf conftest*
|
4768 |
|
|
bfd_cv_have_sys_procfs_type_pstatus_t=no
|
4769 |
|
|
|
4770 |
|
|
fi
|
4771 |
|
|
rm -f conftest*
|
4772 |
|
|
fi
|
4773 |
|
|
|
4774 |
|
|
if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
|
4775 |
|
|
cat >> confdefs.h <<\EOF
|
4776 |
|
|
#define HAVE_PSTATUS_T 1
|
4777 |
|
|
EOF
|
4778 |
|
|
|
4779 |
|
|
fi
|
4780 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
|
4781 |
|
|
|
4782 |
|
|
echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
|
4783 |
|
|
echo "configure:4784: checking for prrun_t in sys/procfs.h" >&5
|
4784 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
|
4785 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4786 |
|
|
else
|
4787 |
|
|
cat > conftest.$ac_ext <
|
4788 |
|
|
#line 4789 "configure"
|
4789 |
|
|
#include "confdefs.h"
|
4790 |
|
|
|
4791 |
|
|
#define _SYSCALL32
|
4792 |
|
|
#include
|
4793 |
|
|
int main() {
|
4794 |
|
|
prrun_t avar
|
4795 |
|
|
; return 0; }
|
4796 |
|
|
EOF
|
4797 |
|
|
if { (eval echo configure:4798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4798 |
|
|
rm -rf conftest*
|
4799 |
|
|
bfd_cv_have_sys_procfs_type_prrun_t=yes
|
4800 |
|
|
else
|
4801 |
|
|
echo "configure: failed program was:" >&5
|
4802 |
|
|
cat conftest.$ac_ext >&5
|
4803 |
|
|
rm -rf conftest*
|
4804 |
|
|
bfd_cv_have_sys_procfs_type_prrun_t=no
|
4805 |
|
|
|
4806 |
|
|
fi
|
4807 |
|
|
rm -f conftest*
|
4808 |
|
|
fi
|
4809 |
|
|
|
4810 |
|
|
if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
|
4811 |
|
|
cat >> confdefs.h <<\EOF
|
4812 |
|
|
#define HAVE_PRRUN_T 1
|
4813 |
|
|
EOF
|
4814 |
|
|
|
4815 |
|
|
fi
|
4816 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
|
4817 |
|
|
|
4818 |
|
|
echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
|
4819 |
|
|
echo "configure:4820: checking for gregset_t in sys/procfs.h" >&5
|
4820 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
|
4821 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4822 |
|
|
else
|
4823 |
|
|
cat > conftest.$ac_ext <
|
4824 |
|
|
#line 4825 "configure"
|
4825 |
|
|
#include "confdefs.h"
|
4826 |
|
|
|
4827 |
|
|
#define _SYSCALL32
|
4828 |
|
|
#include
|
4829 |
|
|
int main() {
|
4830 |
|
|
gregset_t avar
|
4831 |
|
|
; return 0; }
|
4832 |
|
|
EOF
|
4833 |
|
|
if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4834 |
|
|
rm -rf conftest*
|
4835 |
|
|
bfd_cv_have_sys_procfs_type_gregset_t=yes
|
4836 |
|
|
else
|
4837 |
|
|
echo "configure: failed program was:" >&5
|
4838 |
|
|
cat conftest.$ac_ext >&5
|
4839 |
|
|
rm -rf conftest*
|
4840 |
|
|
bfd_cv_have_sys_procfs_type_gregset_t=no
|
4841 |
|
|
|
4842 |
|
|
fi
|
4843 |
|
|
rm -f conftest*
|
4844 |
|
|
fi
|
4845 |
|
|
|
4846 |
|
|
if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
|
4847 |
|
|
cat >> confdefs.h <<\EOF
|
4848 |
|
|
#define HAVE_GREGSET_T 1
|
4849 |
|
|
EOF
|
4850 |
|
|
|
4851 |
|
|
fi
|
4852 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
|
4853 |
|
|
|
4854 |
|
|
echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
|
4855 |
|
|
echo "configure:4856: checking for fpregset_t in sys/procfs.h" >&5
|
4856 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
|
4857 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4858 |
|
|
else
|
4859 |
|
|
cat > conftest.$ac_ext <
|
4860 |
|
|
#line 4861 "configure"
|
4861 |
|
|
#include "confdefs.h"
|
4862 |
|
|
|
4863 |
|
|
#define _SYSCALL32
|
4864 |
|
|
#include
|
4865 |
|
|
int main() {
|
4866 |
|
|
fpregset_t avar
|
4867 |
|
|
; return 0; }
|
4868 |
|
|
EOF
|
4869 |
|
|
if { (eval echo configure:4870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4870 |
|
|
rm -rf conftest*
|
4871 |
|
|
bfd_cv_have_sys_procfs_type_fpregset_t=yes
|
4872 |
|
|
else
|
4873 |
|
|
echo "configure: failed program was:" >&5
|
4874 |
|
|
cat conftest.$ac_ext >&5
|
4875 |
|
|
rm -rf conftest*
|
4876 |
|
|
bfd_cv_have_sys_procfs_type_fpregset_t=no
|
4877 |
|
|
|
4878 |
|
|
fi
|
4879 |
|
|
rm -f conftest*
|
4880 |
|
|
fi
|
4881 |
|
|
|
4882 |
|
|
if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
|
4883 |
|
|
cat >> confdefs.h <<\EOF
|
4884 |
|
|
#define HAVE_FPREGSET_T 1
|
4885 |
|
|
EOF
|
4886 |
|
|
|
4887 |
|
|
fi
|
4888 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
|
4889 |
|
|
|
4890 |
|
|
echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
|
4891 |
|
|
echo "configure:4892: checking for prgregset_t in sys/procfs.h" >&5
|
4892 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
|
4893 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4894 |
|
|
else
|
4895 |
|
|
cat > conftest.$ac_ext <
|
4896 |
|
|
#line 4897 "configure"
|
4897 |
|
|
#include "confdefs.h"
|
4898 |
|
|
|
4899 |
|
|
#define _SYSCALL32
|
4900 |
|
|
#include
|
4901 |
|
|
int main() {
|
4902 |
|
|
prgregset_t avar
|
4903 |
|
|
; return 0; }
|
4904 |
|
|
EOF
|
4905 |
|
|
if { (eval echo configure:4906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4906 |
|
|
rm -rf conftest*
|
4907 |
|
|
bfd_cv_have_sys_procfs_type_prgregset_t=yes
|
4908 |
|
|
else
|
4909 |
|
|
echo "configure: failed program was:" >&5
|
4910 |
|
|
cat conftest.$ac_ext >&5
|
4911 |
|
|
rm -rf conftest*
|
4912 |
|
|
bfd_cv_have_sys_procfs_type_prgregset_t=no
|
4913 |
|
|
|
4914 |
|
|
fi
|
4915 |
|
|
rm -f conftest*
|
4916 |
|
|
fi
|
4917 |
|
|
|
4918 |
|
|
if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
|
4919 |
|
|
cat >> confdefs.h <<\EOF
|
4920 |
|
|
#define HAVE_PRGREGSET_T 1
|
4921 |
|
|
EOF
|
4922 |
|
|
|
4923 |
|
|
fi
|
4924 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
|
4925 |
|
|
|
4926 |
|
|
echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
|
4927 |
|
|
echo "configure:4928: checking for prfpregset_t in sys/procfs.h" >&5
|
4928 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
|
4929 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4930 |
|
|
else
|
4931 |
|
|
cat > conftest.$ac_ext <
|
4932 |
|
|
#line 4933 "configure"
|
4933 |
|
|
#include "confdefs.h"
|
4934 |
|
|
|
4935 |
|
|
#define _SYSCALL32
|
4936 |
|
|
#include
|
4937 |
|
|
int main() {
|
4938 |
|
|
prfpregset_t avar
|
4939 |
|
|
; return 0; }
|
4940 |
|
|
EOF
|
4941 |
|
|
if { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4942 |
|
|
rm -rf conftest*
|
4943 |
|
|
bfd_cv_have_sys_procfs_type_prfpregset_t=yes
|
4944 |
|
|
else
|
4945 |
|
|
echo "configure: failed program was:" >&5
|
4946 |
|
|
cat conftest.$ac_ext >&5
|
4947 |
|
|
rm -rf conftest*
|
4948 |
|
|
bfd_cv_have_sys_procfs_type_prfpregset_t=no
|
4949 |
|
|
|
4950 |
|
|
fi
|
4951 |
|
|
rm -f conftest*
|
4952 |
|
|
fi
|
4953 |
|
|
|
4954 |
|
|
if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
|
4955 |
|
|
cat >> confdefs.h <<\EOF
|
4956 |
|
|
#define HAVE_PRFPREGSET_T 1
|
4957 |
|
|
EOF
|
4958 |
|
|
|
4959 |
|
|
fi
|
4960 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
|
4961 |
|
|
|
4962 |
|
|
echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
|
4963 |
|
|
echo "configure:4964: checking for prgregset32_t in sys/procfs.h" >&5
|
4964 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
|
4965 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
4966 |
|
|
else
|
4967 |
|
|
cat > conftest.$ac_ext <
|
4968 |
|
|
#line 4969 "configure"
|
4969 |
|
|
#include "confdefs.h"
|
4970 |
|
|
|
4971 |
|
|
#define _SYSCALL32
|
4972 |
|
|
#include
|
4973 |
|
|
int main() {
|
4974 |
|
|
prgregset32_t avar
|
4975 |
|
|
; return 0; }
|
4976 |
|
|
EOF
|
4977 |
|
|
if { (eval echo configure:4978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
4978 |
|
|
rm -rf conftest*
|
4979 |
|
|
bfd_cv_have_sys_procfs_type_prgregset32_t=yes
|
4980 |
|
|
else
|
4981 |
|
|
echo "configure: failed program was:" >&5
|
4982 |
|
|
cat conftest.$ac_ext >&5
|
4983 |
|
|
rm -rf conftest*
|
4984 |
|
|
bfd_cv_have_sys_procfs_type_prgregset32_t=no
|
4985 |
|
|
|
4986 |
|
|
fi
|
4987 |
|
|
rm -f conftest*
|
4988 |
|
|
fi
|
4989 |
|
|
|
4990 |
|
|
if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
|
4991 |
|
|
cat >> confdefs.h <<\EOF
|
4992 |
|
|
#define HAVE_PRGREGSET32_T 1
|
4993 |
|
|
EOF
|
4994 |
|
|
|
4995 |
|
|
fi
|
4996 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
|
4997 |
|
|
|
4998 |
|
|
echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
|
4999 |
|
|
echo "configure:5000: checking for prfpregset32_t in sys/procfs.h" >&5
|
5000 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
|
5001 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5002 |
|
|
else
|
5003 |
|
|
cat > conftest.$ac_ext <
|
5004 |
|
|
#line 5005 "configure"
|
5005 |
|
|
#include "confdefs.h"
|
5006 |
|
|
|
5007 |
|
|
#define _SYSCALL32
|
5008 |
|
|
#include
|
5009 |
|
|
int main() {
|
5010 |
|
|
prfpregset32_t avar
|
5011 |
|
|
; return 0; }
|
5012 |
|
|
EOF
|
5013 |
|
|
if { (eval echo configure:5014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5014 |
|
|
rm -rf conftest*
|
5015 |
|
|
bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
|
5016 |
|
|
else
|
5017 |
|
|
echo "configure: failed program was:" >&5
|
5018 |
|
|
cat conftest.$ac_ext >&5
|
5019 |
|
|
rm -rf conftest*
|
5020 |
|
|
bfd_cv_have_sys_procfs_type_prfpregset32_t=no
|
5021 |
|
|
|
5022 |
|
|
fi
|
5023 |
|
|
rm -f conftest*
|
5024 |
|
|
fi
|
5025 |
|
|
|
5026 |
|
|
if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
|
5027 |
|
|
cat >> confdefs.h <<\EOF
|
5028 |
|
|
#define HAVE_PRFPREGSET32_T 1
|
5029 |
|
|
EOF
|
5030 |
|
|
|
5031 |
|
|
fi
|
5032 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
|
5033 |
|
|
|
5034 |
|
|
echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
|
5035 |
|
|
echo "configure:5036: checking for lwpid_t in sys/procfs.h" >&5
|
5036 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
|
5037 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5038 |
|
|
else
|
5039 |
|
|
cat > conftest.$ac_ext <
|
5040 |
|
|
#line 5041 "configure"
|
5041 |
|
|
#include "confdefs.h"
|
5042 |
|
|
|
5043 |
|
|
#define _SYSCALL32
|
5044 |
|
|
#include
|
5045 |
|
|
int main() {
|
5046 |
|
|
lwpid_t avar
|
5047 |
|
|
; return 0; }
|
5048 |
|
|
EOF
|
5049 |
|
|
if { (eval echo configure:5050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5050 |
|
|
rm -rf conftest*
|
5051 |
|
|
bfd_cv_have_sys_procfs_type_lwpid_t=yes
|
5052 |
|
|
else
|
5053 |
|
|
echo "configure: failed program was:" >&5
|
5054 |
|
|
cat conftest.$ac_ext >&5
|
5055 |
|
|
rm -rf conftest*
|
5056 |
|
|
bfd_cv_have_sys_procfs_type_lwpid_t=no
|
5057 |
|
|
|
5058 |
|
|
fi
|
5059 |
|
|
rm -f conftest*
|
5060 |
|
|
fi
|
5061 |
|
|
|
5062 |
|
|
if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
|
5063 |
|
|
cat >> confdefs.h <<\EOF
|
5064 |
|
|
#define HAVE_LWPID_T 1
|
5065 |
|
|
EOF
|
5066 |
|
|
|
5067 |
|
|
fi
|
5068 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
|
5069 |
|
|
|
5070 |
|
|
echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
|
5071 |
|
|
echo "configure:5072: checking for psaddr_t in sys/procfs.h" >&5
|
5072 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
|
5073 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5074 |
|
|
else
|
5075 |
|
|
cat > conftest.$ac_ext <
|
5076 |
|
|
#line 5077 "configure"
|
5077 |
|
|
#include "confdefs.h"
|
5078 |
|
|
|
5079 |
|
|
#define _SYSCALL32
|
5080 |
|
|
#include
|
5081 |
|
|
int main() {
|
5082 |
|
|
psaddr_t avar
|
5083 |
|
|
; return 0; }
|
5084 |
|
|
EOF
|
5085 |
|
|
if { (eval echo configure:5086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5086 |
|
|
rm -rf conftest*
|
5087 |
|
|
bfd_cv_have_sys_procfs_type_psaddr_t=yes
|
5088 |
|
|
else
|
5089 |
|
|
echo "configure: failed program was:" >&5
|
5090 |
|
|
cat conftest.$ac_ext >&5
|
5091 |
|
|
rm -rf conftest*
|
5092 |
|
|
bfd_cv_have_sys_procfs_type_psaddr_t=no
|
5093 |
|
|
|
5094 |
|
|
fi
|
5095 |
|
|
rm -f conftest*
|
5096 |
|
|
fi
|
5097 |
|
|
|
5098 |
|
|
if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
|
5099 |
|
|
cat >> confdefs.h <<\EOF
|
5100 |
|
|
#define HAVE_PSADDR_T 1
|
5101 |
|
|
EOF
|
5102 |
|
|
|
5103 |
|
|
fi
|
5104 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
|
5105 |
|
|
|
5106 |
|
|
echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
|
5107 |
|
|
echo "configure:5108: checking for prsysent_t in sys/procfs.h" >&5
|
5108 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
|
5109 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5110 |
|
|
else
|
5111 |
|
|
cat > conftest.$ac_ext <
|
5112 |
|
|
#line 5113 "configure"
|
5113 |
|
|
#include "confdefs.h"
|
5114 |
|
|
|
5115 |
|
|
#define _SYSCALL32
|
5116 |
|
|
#include
|
5117 |
|
|
int main() {
|
5118 |
|
|
prsysent_t avar
|
5119 |
|
|
; return 0; }
|
5120 |
|
|
EOF
|
5121 |
|
|
if { (eval echo configure:5122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5122 |
|
|
rm -rf conftest*
|
5123 |
|
|
bfd_cv_have_sys_procfs_type_prsysent_t=yes
|
5124 |
|
|
else
|
5125 |
|
|
echo "configure: failed program was:" >&5
|
5126 |
|
|
cat conftest.$ac_ext >&5
|
5127 |
|
|
rm -rf conftest*
|
5128 |
|
|
bfd_cv_have_sys_procfs_type_prsysent_t=no
|
5129 |
|
|
|
5130 |
|
|
fi
|
5131 |
|
|
rm -f conftest*
|
5132 |
|
|
fi
|
5133 |
|
|
|
5134 |
|
|
if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
|
5135 |
|
|
cat >> confdefs.h <<\EOF
|
5136 |
|
|
#define HAVE_PRSYSENT_T 1
|
5137 |
|
|
EOF
|
5138 |
|
|
|
5139 |
|
|
fi
|
5140 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
|
5141 |
|
|
|
5142 |
|
|
echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
|
5143 |
|
|
echo "configure:5144: checking for pr_sigset_t in sys/procfs.h" >&5
|
5144 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
|
5145 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5146 |
|
|
else
|
5147 |
|
|
cat > conftest.$ac_ext <
|
5148 |
|
|
#line 5149 "configure"
|
5149 |
|
|
#include "confdefs.h"
|
5150 |
|
|
|
5151 |
|
|
#define _SYSCALL32
|
5152 |
|
|
#include
|
5153 |
|
|
int main() {
|
5154 |
|
|
pr_sigset_t avar
|
5155 |
|
|
; return 0; }
|
5156 |
|
|
EOF
|
5157 |
|
|
if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5158 |
|
|
rm -rf conftest*
|
5159 |
|
|
bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
|
5160 |
|
|
else
|
5161 |
|
|
echo "configure: failed program was:" >&5
|
5162 |
|
|
cat conftest.$ac_ext >&5
|
5163 |
|
|
rm -rf conftest*
|
5164 |
|
|
bfd_cv_have_sys_procfs_type_pr_sigset_t=no
|
5165 |
|
|
|
5166 |
|
|
fi
|
5167 |
|
|
rm -f conftest*
|
5168 |
|
|
fi
|
5169 |
|
|
|
5170 |
|
|
if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
|
5171 |
|
|
cat >> confdefs.h <<\EOF
|
5172 |
|
|
#define HAVE_PR_SIGSET_T 1
|
5173 |
|
|
EOF
|
5174 |
|
|
|
5175 |
|
|
fi
|
5176 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
|
5177 |
|
|
|
5178 |
|
|
echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
|
5179 |
|
|
echo "configure:5180: checking for pr_sigaction64_t in sys/procfs.h" >&5
|
5180 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
|
5181 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5182 |
|
|
else
|
5183 |
|
|
cat > conftest.$ac_ext <
|
5184 |
|
|
#line 5185 "configure"
|
5185 |
|
|
#include "confdefs.h"
|
5186 |
|
|
|
5187 |
|
|
#define _SYSCALL32
|
5188 |
|
|
#include
|
5189 |
|
|
int main() {
|
5190 |
|
|
pr_sigaction64_t avar
|
5191 |
|
|
; return 0; }
|
5192 |
|
|
EOF
|
5193 |
|
|
if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5194 |
|
|
rm -rf conftest*
|
5195 |
|
|
bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
|
5196 |
|
|
else
|
5197 |
|
|
echo "configure: failed program was:" >&5
|
5198 |
|
|
cat conftest.$ac_ext >&5
|
5199 |
|
|
rm -rf conftest*
|
5200 |
|
|
bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
|
5201 |
|
|
|
5202 |
|
|
fi
|
5203 |
|
|
rm -f conftest*
|
5204 |
|
|
fi
|
5205 |
|
|
|
5206 |
|
|
if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
|
5207 |
|
|
cat >> confdefs.h <<\EOF
|
5208 |
|
|
#define HAVE_PR_SIGACTION64_T 1
|
5209 |
|
|
EOF
|
5210 |
|
|
|
5211 |
|
|
fi
|
5212 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
|
5213 |
|
|
|
5214 |
|
|
echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
|
5215 |
|
|
echo "configure:5216: checking for pr_siginfo64_t in sys/procfs.h" >&5
|
5216 |
|
|
if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
|
5217 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5218 |
|
|
else
|
5219 |
|
|
cat > conftest.$ac_ext <
|
5220 |
|
|
#line 5221 "configure"
|
5221 |
|
|
#include "confdefs.h"
|
5222 |
|
|
|
5223 |
|
|
#define _SYSCALL32
|
5224 |
|
|
#include
|
5225 |
|
|
int main() {
|
5226 |
|
|
pr_siginfo64_t avar
|
5227 |
|
|
; return 0; }
|
5228 |
|
|
EOF
|
5229 |
|
|
if { (eval echo configure:5230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5230 |
|
|
rm -rf conftest*
|
5231 |
|
|
bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
|
5232 |
|
|
else
|
5233 |
|
|
echo "configure: failed program was:" >&5
|
5234 |
|
|
cat conftest.$ac_ext >&5
|
5235 |
|
|
rm -rf conftest*
|
5236 |
|
|
bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
|
5237 |
|
|
|
5238 |
|
|
fi
|
5239 |
|
|
rm -f conftest*
|
5240 |
|
|
fi
|
5241 |
|
|
|
5242 |
|
|
if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
|
5243 |
|
|
cat >> confdefs.h <<\EOF
|
5244 |
|
|
#define HAVE_PR_SIGINFO64_T 1
|
5245 |
|
|
EOF
|
5246 |
|
|
|
5247 |
|
|
fi
|
5248 |
|
|
echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
|
5249 |
|
|
|
5250 |
|
|
|
5251 |
|
|
|
5252 |
|
|
|
5253 |
|
|
|
5254 |
|
|
if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
|
5255 |
|
|
echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
|
5256 |
|
|
echo "configure:5257: checking whether prfpregset_t type is broken" >&5
|
5257 |
|
|
if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
|
5258 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5259 |
|
|
else
|
5260 |
|
|
if test "$cross_compiling" = yes; then
|
5261 |
|
|
gdb_cv_prfpregset_t_broken=yes
|
5262 |
|
|
else
|
5263 |
|
|
cat > conftest.$ac_ext <
|
5264 |
|
|
#line 5265 "configure"
|
5265 |
|
|
#include "confdefs.h"
|
5266 |
|
|
#include
|
5267 |
|
|
int main ()
|
5268 |
|
|
{
|
5269 |
|
|
if (sizeof (prfpregset_t) == sizeof (void *))
|
5270 |
|
|
return 1;
|
5271 |
|
|
return 0;
|
5272 |
|
|
}
|
5273 |
|
|
EOF
|
5274 |
|
|
if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
5275 |
|
|
then
|
5276 |
|
|
gdb_cv_prfpregset_t_broken=no
|
5277 |
|
|
else
|
5278 |
|
|
echo "configure: failed program was:" >&5
|
5279 |
|
|
cat conftest.$ac_ext >&5
|
5280 |
|
|
rm -fr conftest*
|
5281 |
|
|
gdb_cv_prfpregset_t_broken=yes
|
5282 |
|
|
fi
|
5283 |
|
|
rm -fr conftest*
|
5284 |
|
|
fi
|
5285 |
|
|
|
5286 |
|
|
fi
|
5287 |
|
|
|
5288 |
|
|
echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
|
5289 |
|
|
if test $gdb_cv_prfpregset_t_broken = yes; then
|
5290 |
|
|
cat >> confdefs.h <<\EOF
|
5291 |
|
|
#define PRFPREGSET_T_BROKEN 1
|
5292 |
|
|
EOF
|
5293 |
|
|
|
5294 |
|
|
fi
|
5295 |
|
|
fi
|
5296 |
|
|
|
5297 |
|
|
|
5298 |
|
|
echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
|
5299 |
|
|
echo "configure:5300: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
|
5300 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
|
5301 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5302 |
|
|
else
|
5303 |
|
|
cat > conftest.$ac_ext <
|
5304 |
|
|
#line 5305 "configure"
|
5305 |
|
|
#include "confdefs.h"
|
5306 |
|
|
#include
|
5307 |
|
|
#include
|
5308 |
|
|
#include
|
5309 |
|
|
|
5310 |
|
|
int main() {
|
5311 |
|
|
|
5312 |
|
|
int dummy;;
|
5313 |
|
|
dummy = ioctl(0, PIOCSET, &dummy);
|
5314 |
|
|
|
5315 |
|
|
; return 0; }
|
5316 |
|
|
EOF
|
5317 |
|
|
if { (eval echo configure:5318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5318 |
|
|
rm -rf conftest*
|
5319 |
|
|
gdb_cv_have_procfs_piocset=yes
|
5320 |
|
|
else
|
5321 |
|
|
echo "configure: failed program was:" >&5
|
5322 |
|
|
cat conftest.$ac_ext >&5
|
5323 |
|
|
rm -rf conftest*
|
5324 |
|
|
gdb_cv_have_procfs_piocset=no
|
5325 |
|
|
fi
|
5326 |
|
|
rm -f conftest*
|
5327 |
|
|
fi
|
5328 |
|
|
|
5329 |
|
|
echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
|
5330 |
|
|
if test $gdb_cv_have_procfs_piocset = yes; then
|
5331 |
|
|
cat >> confdefs.h <<\EOF
|
5332 |
|
|
#define HAVE_PROCFS_PIOCSET 1
|
5333 |
|
|
EOF
|
5334 |
|
|
|
5335 |
|
|
fi
|
5336 |
|
|
fi
|
5337 |
|
|
|
5338 |
|
|
if test ${host} = ${target} ; then
|
5339 |
|
|
|
5340 |
|
|
echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
|
5341 |
|
|
echo "configure:5342: checking for member l_addr in struct link_map" >&5
|
5342 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
|
5343 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5344 |
|
|
else
|
5345 |
|
|
cat > conftest.$ac_ext <
|
5346 |
|
|
#line 5347 "configure"
|
5347 |
|
|
#include "confdefs.h"
|
5348 |
|
|
#include
|
5349 |
|
|
int main() {
|
5350 |
|
|
struct link_map lm; (void) lm.l_addr;
|
5351 |
|
|
; return 0; }
|
5352 |
|
|
EOF
|
5353 |
|
|
if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5354 |
|
|
rm -rf conftest*
|
5355 |
|
|
gdb_cv_have_struct_link_map_with_l_members=yes
|
5356 |
|
|
else
|
5357 |
|
|
echo "configure: failed program was:" >&5
|
5358 |
|
|
cat conftest.$ac_ext >&5
|
5359 |
|
|
rm -rf conftest*
|
5360 |
|
|
gdb_cv_have_struct_link_map_with_l_members=no
|
5361 |
|
|
fi
|
5362 |
|
|
rm -f conftest*
|
5363 |
|
|
fi
|
5364 |
|
|
|
5365 |
|
|
echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
|
5366 |
|
|
if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
|
5367 |
|
|
cat >> confdefs.h <<\EOF
|
5368 |
|
|
#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
|
5369 |
|
|
EOF
|
5370 |
|
|
|
5371 |
|
|
fi
|
5372 |
|
|
|
5373 |
|
|
|
5374 |
|
|
echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
|
5375 |
|
|
echo "configure:5376: checking for member lm_addr in struct link_map" >&5
|
5376 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
|
5377 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5378 |
|
|
else
|
5379 |
|
|
cat > conftest.$ac_ext <
|
5380 |
|
|
#line 5381 "configure"
|
5381 |
|
|
#include "confdefs.h"
|
5382 |
|
|
#include
|
5383 |
|
|
#include
|
5384 |
|
|
int main() {
|
5385 |
|
|
struct link_map lm; (void) lm.lm_addr;
|
5386 |
|
|
; return 0; }
|
5387 |
|
|
EOF
|
5388 |
|
|
if { (eval echo configure:5389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5389 |
|
|
rm -rf conftest*
|
5390 |
|
|
gdb_cv_have_struct_link_map_with_lm_members=yes
|
5391 |
|
|
else
|
5392 |
|
|
echo "configure: failed program was:" >&5
|
5393 |
|
|
cat conftest.$ac_ext >&5
|
5394 |
|
|
rm -rf conftest*
|
5395 |
|
|
gdb_cv_have_struct_link_map_with_lm_members=no
|
5396 |
|
|
fi
|
5397 |
|
|
rm -f conftest*
|
5398 |
|
|
fi
|
5399 |
|
|
|
5400 |
|
|
echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
|
5401 |
|
|
if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
|
5402 |
|
|
cat >> confdefs.h <<\EOF
|
5403 |
|
|
#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
|
5404 |
|
|
EOF
|
5405 |
|
|
|
5406 |
|
|
fi
|
5407 |
|
|
|
5408 |
|
|
|
5409 |
|
|
echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
|
5410 |
|
|
echo "configure:5411: checking for member som_addr in struct so_map" >&5
|
5411 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
|
5412 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5413 |
|
|
else
|
5414 |
|
|
cat > conftest.$ac_ext <
|
5415 |
|
|
#line 5416 "configure"
|
5416 |
|
|
#include "confdefs.h"
|
5417 |
|
|
#include
|
5418 |
|
|
#ifdef HAVE_NLIST_H
|
5419 |
|
|
#include
|
5420 |
|
|
#endif
|
5421 |
|
|
#include
|
5422 |
|
|
int main() {
|
5423 |
|
|
struct so_map lm; (void) lm.som_addr;
|
5424 |
|
|
; return 0; }
|
5425 |
|
|
EOF
|
5426 |
|
|
if { (eval echo configure:5427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5427 |
|
|
rm -rf conftest*
|
5428 |
|
|
gdb_cv_have_struct_so_map_with_som_members=yes
|
5429 |
|
|
else
|
5430 |
|
|
echo "configure: failed program was:" >&5
|
5431 |
|
|
cat conftest.$ac_ext >&5
|
5432 |
|
|
rm -rf conftest*
|
5433 |
|
|
gdb_cv_have_struct_so_map_with_som_members=no
|
5434 |
|
|
fi
|
5435 |
|
|
rm -f conftest*
|
5436 |
|
|
fi
|
5437 |
|
|
|
5438 |
|
|
echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
|
5439 |
|
|
if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
|
5440 |
|
|
cat >> confdefs.h <<\EOF
|
5441 |
|
|
#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
|
5442 |
|
|
EOF
|
5443 |
|
|
|
5444 |
|
|
fi
|
5445 |
|
|
|
5446 |
|
|
|
5447 |
|
|
echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
|
5448 |
|
|
echo "configure:5449: checking for struct link_map32 in sys/link.h" >&5
|
5449 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
|
5450 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5451 |
|
|
else
|
5452 |
|
|
cat > conftest.$ac_ext <
|
5453 |
|
|
#line 5454 "configure"
|
5454 |
|
|
#include "confdefs.h"
|
5455 |
|
|
#define _SYSCALL32
|
5456 |
|
|
#include
|
5457 |
|
|
int main() {
|
5458 |
|
|
struct link_map32 l;
|
5459 |
|
|
; return 0; }
|
5460 |
|
|
EOF
|
5461 |
|
|
if { (eval echo configure:5462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5462 |
|
|
rm -rf conftest*
|
5463 |
|
|
gdb_cv_have_struct_link_map32=yes
|
5464 |
|
|
else
|
5465 |
|
|
echo "configure: failed program was:" >&5
|
5466 |
|
|
cat conftest.$ac_ext >&5
|
5467 |
|
|
rm -rf conftest*
|
5468 |
|
|
gdb_cv_have_struct_link_map32=no
|
5469 |
|
|
fi
|
5470 |
|
|
rm -f conftest*
|
5471 |
|
|
fi
|
5472 |
|
|
|
5473 |
|
|
echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
|
5474 |
|
|
if test $gdb_cv_have_struct_link_map32 = yes; then
|
5475 |
|
|
cat >> confdefs.h <<\EOF
|
5476 |
|
|
#define HAVE_STRUCT_LINK_MAP32 1
|
5477 |
|
|
EOF
|
5478 |
|
|
|
5479 |
|
|
fi
|
5480 |
|
|
fi
|
5481 |
|
|
|
5482 |
|
|
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
5483 |
|
|
echo "configure:5484: checking for main in -lm" >&5
|
5484 |
|
|
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
5485 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
5486 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5487 |
|
|
else
|
5488 |
|
|
ac_save_LIBS="$LIBS"
|
5489 |
|
|
LIBS="-lm $LIBS"
|
5490 |
|
|
cat > conftest.$ac_ext <
|
5491 |
|
|
#line 5492 "configure"
|
5492 |
|
|
#include "confdefs.h"
|
5493 |
|
|
|
5494 |
|
|
int main() {
|
5495 |
|
|
main()
|
5496 |
|
|
; return 0; }
|
5497 |
|
|
EOF
|
5498 |
|
|
if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
5499 |
|
|
rm -rf conftest*
|
5500 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
5501 |
|
|
else
|
5502 |
|
|
echo "configure: failed program was:" >&5
|
5503 |
|
|
cat conftest.$ac_ext >&5
|
5504 |
|
|
rm -rf conftest*
|
5505 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
5506 |
|
|
fi
|
5507 |
|
|
rm -f conftest*
|
5508 |
|
|
LIBS="$ac_save_LIBS"
|
5509 |
|
|
|
5510 |
|
|
fi
|
5511 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
5512 |
|
|
echo "$ac_t""yes" 1>&6
|
5513 |
|
|
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
5514 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
5515 |
|
|
cat >> confdefs.h <
|
5516 |
|
|
#define $ac_tr_lib 1
|
5517 |
|
|
EOF
|
5518 |
|
|
|
5519 |
|
|
LIBS="-lm $LIBS"
|
5520 |
|
|
|
5521 |
|
|
else
|
5522 |
|
|
echo "$ac_t""no" 1>&6
|
5523 |
|
|
fi
|
5524 |
|
|
|
5525 |
|
|
|
5526 |
|
|
echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
|
5527 |
|
|
echo "configure:5528: checking for wctype in -lc" >&5
|
5528 |
|
|
ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
|
5529 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
5530 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5531 |
|
|
else
|
5532 |
|
|
ac_save_LIBS="$LIBS"
|
5533 |
|
|
LIBS="-lc $LIBS"
|
5534 |
|
|
cat > conftest.$ac_ext <
|
5535 |
|
|
#line 5536 "configure"
|
5536 |
|
|
#include "confdefs.h"
|
5537 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
5538 |
|
|
/* We use char because int might match the return type of a gcc2
|
5539 |
|
|
builtin and then its argument prototype would still apply. */
|
5540 |
|
|
char wctype();
|
5541 |
|
|
|
5542 |
|
|
int main() {
|
5543 |
|
|
wctype()
|
5544 |
|
|
; return 0; }
|
5545 |
|
|
EOF
|
5546 |
|
|
if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
5547 |
|
|
rm -rf conftest*
|
5548 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
5549 |
|
|
else
|
5550 |
|
|
echo "configure: failed program was:" >&5
|
5551 |
|
|
cat conftest.$ac_ext >&5
|
5552 |
|
|
rm -rf conftest*
|
5553 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
5554 |
|
|
fi
|
5555 |
|
|
rm -f conftest*
|
5556 |
|
|
LIBS="$ac_save_LIBS"
|
5557 |
|
|
|
5558 |
|
|
fi
|
5559 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
5560 |
|
|
echo "$ac_t""yes" 1>&6
|
5561 |
|
|
:
|
5562 |
|
|
else
|
5563 |
|
|
echo "$ac_t""no" 1>&6
|
5564 |
|
|
echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
|
5565 |
|
|
echo "configure:5566: checking for wctype in -lw" >&5
|
5566 |
|
|
ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
|
5567 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
5568 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5569 |
|
|
else
|
5570 |
|
|
ac_save_LIBS="$LIBS"
|
5571 |
|
|
LIBS="-lw $LIBS"
|
5572 |
|
|
cat > conftest.$ac_ext <
|
5573 |
|
|
#line 5574 "configure"
|
5574 |
|
|
#include "confdefs.h"
|
5575 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
5576 |
|
|
/* We use char because int might match the return type of a gcc2
|
5577 |
|
|
builtin and then its argument prototype would still apply. */
|
5578 |
|
|
char wctype();
|
5579 |
|
|
|
5580 |
|
|
int main() {
|
5581 |
|
|
wctype()
|
5582 |
|
|
; return 0; }
|
5583 |
|
|
EOF
|
5584 |
|
|
if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
5585 |
|
|
rm -rf conftest*
|
5586 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
5587 |
|
|
else
|
5588 |
|
|
echo "configure: failed program was:" >&5
|
5589 |
|
|
cat conftest.$ac_ext >&5
|
5590 |
|
|
rm -rf conftest*
|
5591 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
5592 |
|
|
fi
|
5593 |
|
|
rm -f conftest*
|
5594 |
|
|
LIBS="$ac_save_LIBS"
|
5595 |
|
|
|
5596 |
|
|
fi
|
5597 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
5598 |
|
|
echo "$ac_t""yes" 1>&6
|
5599 |
|
|
ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
|
5600 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
5601 |
|
|
cat >> confdefs.h <
|
5602 |
|
|
#define $ac_tr_lib 1
|
5603 |
|
|
EOF
|
5604 |
|
|
|
5605 |
|
|
LIBS="-lw $LIBS"
|
5606 |
|
|
|
5607 |
|
|
else
|
5608 |
|
|
echo "$ac_t""no" 1>&6
|
5609 |
|
|
fi
|
5610 |
|
|
|
5611 |
|
|
fi
|
5612 |
|
|
|
5613 |
|
|
|
5614 |
|
|
|
5615 |
|
|
echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
|
5616 |
|
|
echo "configure:5617: checking for long long support in compiler" >&5
|
5617 |
|
|
if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
|
5618 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5619 |
|
|
else
|
5620 |
|
|
cat > conftest.$ac_ext <
|
5621 |
|
|
#line 5622 "configure"
|
5622 |
|
|
#include "confdefs.h"
|
5623 |
|
|
|
5624 |
|
|
int main() {
|
5625 |
|
|
|
5626 |
|
|
extern long long foo;
|
5627 |
|
|
switch (foo & 2) { case 0: return 1; }
|
5628 |
|
|
|
5629 |
|
|
; return 0; }
|
5630 |
|
|
EOF
|
5631 |
|
|
if { (eval echo configure:5632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5632 |
|
|
rm -rf conftest*
|
5633 |
|
|
gdb_cv_c_long_long=yes
|
5634 |
|
|
else
|
5635 |
|
|
echo "configure: failed program was:" >&5
|
5636 |
|
|
cat conftest.$ac_ext >&5
|
5637 |
|
|
rm -rf conftest*
|
5638 |
|
|
gdb_cv_c_long_long=no
|
5639 |
|
|
fi
|
5640 |
|
|
rm -f conftest*
|
5641 |
|
|
fi
|
5642 |
|
|
|
5643 |
|
|
echo "$ac_t""$gdb_cv_c_long_long" 1>&6
|
5644 |
|
|
if test $gdb_cv_c_long_long = yes; then
|
5645 |
|
|
cat >> confdefs.h <<\EOF
|
5646 |
|
|
#define CC_HAS_LONG_LONG 1
|
5647 |
|
|
EOF
|
5648 |
|
|
|
5649 |
|
|
fi
|
5650 |
|
|
|
5651 |
|
|
|
5652 |
|
|
echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
|
5653 |
|
|
echo "configure:5654: checking for long long support in printf" >&5
|
5654 |
|
|
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
|
5655 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5656 |
|
|
else
|
5657 |
|
|
if test "$cross_compiling" = yes; then
|
5658 |
|
|
gdb_cv_printf_has_long_long=no
|
5659 |
|
|
else
|
5660 |
|
|
cat > conftest.$ac_ext <
|
5661 |
|
|
#line 5662 "configure"
|
5662 |
|
|
#include "confdefs.h"
|
5663 |
|
|
|
5664 |
|
|
int main () {
|
5665 |
|
|
char buf[32];
|
5666 |
|
|
long long l = 0;
|
5667 |
|
|
l = (l << 16) + 0x0123;
|
5668 |
|
|
l = (l << 16) + 0x4567;
|
5669 |
|
|
l = (l << 16) + 0x89ab;
|
5670 |
|
|
l = (l << 16) + 0xcdef;
|
5671 |
|
|
sprintf (buf, "0x%016llx", l);
|
5672 |
|
|
return (strcmp ("0x0123456789abcdef", buf));
|
5673 |
|
|
}
|
5674 |
|
|
EOF
|
5675 |
|
|
if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
5676 |
|
|
then
|
5677 |
|
|
gdb_cv_printf_has_long_long=yes
|
5678 |
|
|
else
|
5679 |
|
|
echo "configure: failed program was:" >&5
|
5680 |
|
|
cat conftest.$ac_ext >&5
|
5681 |
|
|
rm -fr conftest*
|
5682 |
|
|
gdb_cv_printf_has_long_long=no
|
5683 |
|
|
fi
|
5684 |
|
|
rm -fr conftest*
|
5685 |
|
|
fi
|
5686 |
|
|
|
5687 |
|
|
fi
|
5688 |
|
|
|
5689 |
|
|
if test $gdb_cv_printf_has_long_long = yes; then
|
5690 |
|
|
cat >> confdefs.h <<\EOF
|
5691 |
|
|
#define PRINTF_HAS_LONG_LONG 1
|
5692 |
|
|
EOF
|
5693 |
|
|
|
5694 |
|
|
fi
|
5695 |
|
|
echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
|
5696 |
|
|
|
5697 |
|
|
|
5698 |
|
|
echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
|
5699 |
|
|
echo "configure:5700: checking for long double support in compiler" >&5
|
5700 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
|
5701 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5702 |
|
|
else
|
5703 |
|
|
cat > conftest.$ac_ext <
|
5704 |
|
|
#line 5705 "configure"
|
5705 |
|
|
#include "confdefs.h"
|
5706 |
|
|
|
5707 |
|
|
int main() {
|
5708 |
|
|
long double foo;
|
5709 |
|
|
; return 0; }
|
5710 |
|
|
EOF
|
5711 |
|
|
if { (eval echo configure:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
5712 |
|
|
rm -rf conftest*
|
5713 |
|
|
ac_cv_c_long_double=yes
|
5714 |
|
|
else
|
5715 |
|
|
echo "configure: failed program was:" >&5
|
5716 |
|
|
cat conftest.$ac_ext >&5
|
5717 |
|
|
rm -rf conftest*
|
5718 |
|
|
ac_cv_c_long_double=no
|
5719 |
|
|
fi
|
5720 |
|
|
rm -f conftest*
|
5721 |
|
|
fi
|
5722 |
|
|
|
5723 |
|
|
echo "$ac_t""$ac_cv_c_long_double" 1>&6
|
5724 |
|
|
if test $ac_cv_c_long_double = yes; then
|
5725 |
|
|
cat >> confdefs.h <<\EOF
|
5726 |
|
|
#define HAVE_LONG_DOUBLE 1
|
5727 |
|
|
EOF
|
5728 |
|
|
|
5729 |
|
|
fi
|
5730 |
|
|
|
5731 |
|
|
|
5732 |
|
|
echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
|
5733 |
|
|
echo "configure:5734: checking for long double support in printf" >&5
|
5734 |
|
|
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
|
5735 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5736 |
|
|
else
|
5737 |
|
|
if test "$cross_compiling" = yes; then
|
5738 |
|
|
gdb_cv_printf_has_long_double=no
|
5739 |
|
|
else
|
5740 |
|
|
cat > conftest.$ac_ext <
|
5741 |
|
|
#line 5742 "configure"
|
5742 |
|
|
#include "confdefs.h"
|
5743 |
|
|
|
5744 |
|
|
int main () {
|
5745 |
|
|
char buf[16];
|
5746 |
|
|
long double f = 3.141592653;
|
5747 |
|
|
sprintf (buf, "%Lg", f);
|
5748 |
|
|
return (strncmp ("3.14159", buf, 7));
|
5749 |
|
|
}
|
5750 |
|
|
EOF
|
5751 |
|
|
if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
5752 |
|
|
then
|
5753 |
|
|
gdb_cv_printf_has_long_double=yes
|
5754 |
|
|
else
|
5755 |
|
|
echo "configure: failed program was:" >&5
|
5756 |
|
|
cat conftest.$ac_ext >&5
|
5757 |
|
|
rm -fr conftest*
|
5758 |
|
|
gdb_cv_printf_has_long_double=no
|
5759 |
|
|
fi
|
5760 |
|
|
rm -fr conftest*
|
5761 |
|
|
fi
|
5762 |
|
|
|
5763 |
|
|
fi
|
5764 |
|
|
|
5765 |
|
|
if test $gdb_cv_printf_has_long_double = yes; then
|
5766 |
|
|
cat >> confdefs.h <<\EOF
|
5767 |
|
|
#define PRINTF_HAS_LONG_DOUBLE 1
|
5768 |
|
|
EOF
|
5769 |
|
|
|
5770 |
|
|
fi
|
5771 |
|
|
echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
|
5772 |
|
|
|
5773 |
|
|
|
5774 |
|
|
echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
|
5775 |
|
|
echo "configure:5776: checking for long double support in scanf" >&5
|
5776 |
|
|
if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
|
5777 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5778 |
|
|
else
|
5779 |
|
|
if test "$cross_compiling" = yes; then
|
5780 |
|
|
gdb_cv_scanf_has_long_double=no
|
5781 |
|
|
else
|
5782 |
|
|
cat > conftest.$ac_ext <
|
5783 |
|
|
#line 5784 "configure"
|
5784 |
|
|
#include "confdefs.h"
|
5785 |
|
|
|
5786 |
|
|
int main () {
|
5787 |
|
|
char *buf = "3.141592653";
|
5788 |
|
|
long double f = 0;
|
5789 |
|
|
sscanf (buf, "%Lg", &f);
|
5790 |
|
|
return !(f > 3.14159 && f < 3.14160);
|
5791 |
|
|
}
|
5792 |
|
|
EOF
|
5793 |
|
|
if { (eval echo configure:5794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
5794 |
|
|
then
|
5795 |
|
|
gdb_cv_scanf_has_long_double=yes
|
5796 |
|
|
else
|
5797 |
|
|
echo "configure: failed program was:" >&5
|
5798 |
|
|
cat conftest.$ac_ext >&5
|
5799 |
|
|
rm -fr conftest*
|
5800 |
|
|
gdb_cv_scanf_has_long_double=no
|
5801 |
|
|
fi
|
5802 |
|
|
rm -fr conftest*
|
5803 |
|
|
fi
|
5804 |
|
|
|
5805 |
|
|
fi
|
5806 |
|
|
|
5807 |
|
|
if test $gdb_cv_scanf_has_long_double = yes; then
|
5808 |
|
|
cat >> confdefs.h <<\EOF
|
5809 |
|
|
#define SCANF_HAS_LONG_DOUBLE 1
|
5810 |
|
|
EOF
|
5811 |
|
|
|
5812 |
|
|
fi
|
5813 |
|
|
echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
|
5814 |
|
|
|
5815 |
|
|
for ac_hdr in unistd.h
|
5816 |
|
|
do
|
5817 |
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
5818 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
5819 |
|
|
echo "configure:5820: checking for $ac_hdr" >&5
|
5820 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
5821 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5822 |
|
|
else
|
5823 |
|
|
cat > conftest.$ac_ext <
|
5824 |
|
|
#line 5825 "configure"
|
5825 |
|
|
#include "confdefs.h"
|
5826 |
|
|
#include <$ac_hdr>
|
5827 |
|
|
EOF
|
5828 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
5829 |
|
|
{ (eval echo configure:5830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
5830 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
5831 |
|
|
if test -z "$ac_err"; then
|
5832 |
|
|
rm -rf conftest*
|
5833 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
5834 |
|
|
else
|
5835 |
|
|
echo "$ac_err" >&5
|
5836 |
|
|
echo "configure: failed program was:" >&5
|
5837 |
|
|
cat conftest.$ac_ext >&5
|
5838 |
|
|
rm -rf conftest*
|
5839 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
5840 |
|
|
fi
|
5841 |
|
|
rm -f conftest*
|
5842 |
|
|
fi
|
5843 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
5844 |
|
|
echo "$ac_t""yes" 1>&6
|
5845 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
5846 |
|
|
cat >> confdefs.h <
|
5847 |
|
|
#define $ac_tr_hdr 1
|
5848 |
|
|
EOF
|
5849 |
|
|
|
5850 |
|
|
else
|
5851 |
|
|
echo "$ac_t""no" 1>&6
|
5852 |
|
|
fi
|
5853 |
|
|
done
|
5854 |
|
|
|
5855 |
|
|
for ac_func in getpagesize
|
5856 |
|
|
do
|
5857 |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
5858 |
|
|
echo "configure:5859: checking for $ac_func" >&5
|
5859 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
5860 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5861 |
|
|
else
|
5862 |
|
|
cat > conftest.$ac_ext <
|
5863 |
|
|
#line 5864 "configure"
|
5864 |
|
|
#include "confdefs.h"
|
5865 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
5866 |
|
|
which can conflict with char $ac_func(); below. */
|
5867 |
|
|
#include
|
5868 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
5869 |
|
|
/* We use char because int might match the return type of a gcc2
|
5870 |
|
|
builtin and then its argument prototype would still apply. */
|
5871 |
|
|
char $ac_func();
|
5872 |
|
|
|
5873 |
|
|
int main() {
|
5874 |
|
|
|
5875 |
|
|
/* The GNU C library defines this for functions which it implements
|
5876 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
5877 |
|
|
something starting with __ and the normal name is an alias. */
|
5878 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
5879 |
|
|
choke me
|
5880 |
|
|
#else
|
5881 |
|
|
$ac_func();
|
5882 |
|
|
#endif
|
5883 |
|
|
|
5884 |
|
|
; return 0; }
|
5885 |
|
|
EOF
|
5886 |
|
|
if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
5887 |
|
|
rm -rf conftest*
|
5888 |
|
|
eval "ac_cv_func_$ac_func=yes"
|
5889 |
|
|
else
|
5890 |
|
|
echo "configure: failed program was:" >&5
|
5891 |
|
|
cat conftest.$ac_ext >&5
|
5892 |
|
|
rm -rf conftest*
|
5893 |
|
|
eval "ac_cv_func_$ac_func=no"
|
5894 |
|
|
fi
|
5895 |
|
|
rm -f conftest*
|
5896 |
|
|
fi
|
5897 |
|
|
|
5898 |
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
5899 |
|
|
echo "$ac_t""yes" 1>&6
|
5900 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
5901 |
|
|
cat >> confdefs.h <
|
5902 |
|
|
#define $ac_tr_func 1
|
5903 |
|
|
EOF
|
5904 |
|
|
|
5905 |
|
|
else
|
5906 |
|
|
echo "$ac_t""no" 1>&6
|
5907 |
|
|
fi
|
5908 |
|
|
done
|
5909 |
|
|
|
5910 |
|
|
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
5911 |
|
|
echo "configure:5912: checking for working mmap" >&5
|
5912 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
5913 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
5914 |
|
|
else
|
5915 |
|
|
if test "$cross_compiling" = yes; then
|
5916 |
|
|
ac_cv_func_mmap_fixed_mapped=no
|
5917 |
|
|
else
|
5918 |
|
|
cat > conftest.$ac_ext <
|
5919 |
|
|
#line 5920 "configure"
|
5920 |
|
|
#include "confdefs.h"
|
5921 |
|
|
|
5922 |
|
|
/* Thanks to Mike Haertel and Jim Avera for this test.
|
5923 |
|
|
Here is a matrix of mmap possibilities:
|
5924 |
|
|
mmap private not fixed
|
5925 |
|
|
mmap private fixed at somewhere currently unmapped
|
5926 |
|
|
mmap private fixed at somewhere already mapped
|
5927 |
|
|
mmap shared not fixed
|
5928 |
|
|
mmap shared fixed at somewhere currently unmapped
|
5929 |
|
|
mmap shared fixed at somewhere already mapped
|
5930 |
|
|
For private mappings, we should verify that changes cannot be read()
|
5931 |
|
|
back from the file, nor mmap's back from the file at a different
|
5932 |
|
|
address. (There have been systems where private was not correctly
|
5933 |
|
|
implemented like the infamous i386 svr4.0, and systems where the
|
5934 |
|
|
VM page cache was not coherent with the filesystem buffer cache
|
5935 |
|
|
like early versions of FreeBSD and possibly contemporary NetBSD.)
|
5936 |
|
|
For shared mappings, we should conversely verify that changes get
|
5937 |
|
|
propogated back to all the places they're supposed to be.
|
5938 |
|
|
|
5939 |
|
|
Grep wants private fixed already mapped.
|
5940 |
|
|
The main things grep needs to know about mmap are:
|
5941 |
|
|
* does it exist and is it safe to write into the mmap'd area
|
5942 |
|
|
* how to use it (BSD variants) */
|
5943 |
|
|
#include
|
5944 |
|
|
#include
|
5945 |
|
|
#include
|
5946 |
|
|
|
5947 |
|
|
/* This mess was copied from the GNU getpagesize.h. */
|
5948 |
|
|
#ifndef HAVE_GETPAGESIZE
|
5949 |
|
|
# ifdef HAVE_UNISTD_H
|
5950 |
|
|
# include
|
5951 |
|
|
# endif
|
5952 |
|
|
|
5953 |
|
|
/* Assume that all systems that can run configure have sys/param.h. */
|
5954 |
|
|
# ifndef HAVE_SYS_PARAM_H
|
5955 |
|
|
# define HAVE_SYS_PARAM_H 1
|
5956 |
|
|
# endif
|
5957 |
|
|
|
5958 |
|
|
# ifdef _SC_PAGESIZE
|
5959 |
|
|
# define getpagesize() sysconf(_SC_PAGESIZE)
|
5960 |
|
|
# else /* no _SC_PAGESIZE */
|
5961 |
|
|
# ifdef HAVE_SYS_PARAM_H
|
5962 |
|
|
# include
|
5963 |
|
|
# ifdef EXEC_PAGESIZE
|
5964 |
|
|
# define getpagesize() EXEC_PAGESIZE
|
5965 |
|
|
# else /* no EXEC_PAGESIZE */
|
5966 |
|
|
# ifdef NBPG
|
5967 |
|
|
# define getpagesize() NBPG * CLSIZE
|
5968 |
|
|
# ifndef CLSIZE
|
5969 |
|
|
# define CLSIZE 1
|
5970 |
|
|
# endif /* no CLSIZE */
|
5971 |
|
|
# else /* no NBPG */
|
5972 |
|
|
# ifdef NBPC
|
5973 |
|
|
# define getpagesize() NBPC
|
5974 |
|
|
# else /* no NBPC */
|
5975 |
|
|
# ifdef PAGESIZE
|
5976 |
|
|
# define getpagesize() PAGESIZE
|
5977 |
|
|
# endif /* PAGESIZE */
|
5978 |
|
|
# endif /* no NBPC */
|
5979 |
|
|
# endif /* no NBPG */
|
5980 |
|
|
# endif /* no EXEC_PAGESIZE */
|
5981 |
|
|
# else /* no HAVE_SYS_PARAM_H */
|
5982 |
|
|
# define getpagesize() 8192 /* punt totally */
|
5983 |
|
|
# endif /* no HAVE_SYS_PARAM_H */
|
5984 |
|
|
# endif /* no _SC_PAGESIZE */
|
5985 |
|
|
|
5986 |
|
|
#endif /* no HAVE_GETPAGESIZE */
|
5987 |
|
|
|
5988 |
|
|
#ifdef __cplusplus
|
5989 |
|
|
extern "C" { void *malloc(unsigned); }
|
5990 |
|
|
#else
|
5991 |
|
|
char *malloc();
|
5992 |
|
|
#endif
|
5993 |
|
|
|
5994 |
|
|
int
|
5995 |
|
|
main()
|
5996 |
|
|
{
|
5997 |
|
|
char *data, *data2, *data3;
|
5998 |
|
|
int i, pagesize;
|
5999 |
|
|
int fd;
|
6000 |
|
|
|
6001 |
|
|
pagesize = getpagesize();
|
6002 |
|
|
|
6003 |
|
|
/*
|
6004 |
|
|
* First, make a file with some known garbage in it.
|
6005 |
|
|
*/
|
6006 |
|
|
data = malloc(pagesize);
|
6007 |
|
|
if (!data)
|
6008 |
|
|
exit(1);
|
6009 |
|
|
for (i = 0; i < pagesize; ++i)
|
6010 |
|
|
*(data + i) = rand();
|
6011 |
|
|
umask(0);
|
6012 |
|
|
fd = creat("conftestmmap", 0600);
|
6013 |
|
|
if (fd < 0)
|
6014 |
|
|
exit(1);
|
6015 |
|
|
if (write(fd, data, pagesize) != pagesize)
|
6016 |
|
|
exit(1);
|
6017 |
|
|
close(fd);
|
6018 |
|
|
|
6019 |
|
|
/*
|
6020 |
|
|
* Next, try to mmap the file at a fixed address which
|
6021 |
|
|
* already has something else allocated at it. If we can,
|
6022 |
|
|
* also make sure that we see the same garbage.
|
6023 |
|
|
*/
|
6024 |
|
|
fd = open("conftestmmap", O_RDWR);
|
6025 |
|
|
if (fd < 0)
|
6026 |
|
|
exit(1);
|
6027 |
|
|
data2 = malloc(2 * pagesize);
|
6028 |
|
|
if (!data2)
|
6029 |
|
|
exit(1);
|
6030 |
|
|
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
6031 |
|
|
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
6032 |
|
|
MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
6033 |
|
|
exit(1);
|
6034 |
|
|
for (i = 0; i < pagesize; ++i)
|
6035 |
|
|
if (*(data + i) != *(data2 + i))
|
6036 |
|
|
exit(1);
|
6037 |
|
|
|
6038 |
|
|
/*
|
6039 |
|
|
* Finally, make sure that changes to the mapped area
|
6040 |
|
|
* do not percolate back to the file as seen by read().
|
6041 |
|
|
* (This is a bug on some variants of i386 svr4.0.)
|
6042 |
|
|
*/
|
6043 |
|
|
for (i = 0; i < pagesize; ++i)
|
6044 |
|
|
*(data2 + i) = *(data2 + i) + 1;
|
6045 |
|
|
data3 = malloc(pagesize);
|
6046 |
|
|
if (!data3)
|
6047 |
|
|
exit(1);
|
6048 |
|
|
if (read(fd, data3, pagesize) != pagesize)
|
6049 |
|
|
exit(1);
|
6050 |
|
|
for (i = 0; i < pagesize; ++i)
|
6051 |
|
|
if (*(data + i) != *(data3 + i))
|
6052 |
|
|
exit(1);
|
6053 |
|
|
close(fd);
|
6054 |
|
|
unlink("conftestmmap");
|
6055 |
|
|
exit(0);
|
6056 |
|
|
}
|
6057 |
|
|
|
6058 |
|
|
EOF
|
6059 |
|
|
if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
6060 |
|
|
then
|
6061 |
|
|
ac_cv_func_mmap_fixed_mapped=yes
|
6062 |
|
|
else
|
6063 |
|
|
echo "configure: failed program was:" >&5
|
6064 |
|
|
cat conftest.$ac_ext >&5
|
6065 |
|
|
rm -fr conftest*
|
6066 |
|
|
ac_cv_func_mmap_fixed_mapped=no
|
6067 |
|
|
fi
|
6068 |
|
|
rm -fr conftest*
|
6069 |
|
|
fi
|
6070 |
|
|
|
6071 |
|
|
fi
|
6072 |
|
|
|
6073 |
|
|
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
6074 |
|
|
if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
6075 |
|
|
cat >> confdefs.h <<\EOF
|
6076 |
|
|
#define HAVE_MMAP 1
|
6077 |
|
|
EOF
|
6078 |
|
|
|
6079 |
|
|
fi
|
6080 |
|
|
|
6081 |
|
|
|
6082 |
|
|
|
6083 |
|
|
|
6084 |
|
|
if test ${build} = ${host} -a ${host} = ${target} ; then
|
6085 |
|
|
case ${host_os} in
|
6086 |
|
|
hpux*)
|
6087 |
|
|
echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
|
6088 |
|
|
echo "configure:6089: checking for HPUX/OSF thread support" >&5
|
6089 |
|
|
if test -f /usr/include/dce/cma_config.h ; then
|
6090 |
|
|
if test "$GCC" = "yes" ; then
|
6091 |
|
|
echo "$ac_t""yes" 1>&6
|
6092 |
|
|
cat >> confdefs.h <<\EOF
|
6093 |
|
|
#define HAVE_HPUX_THREAD_SUPPORT 1
|
6094 |
|
|
EOF
|
6095 |
|
|
|
6096 |
|
|
CONFIG_LIB_OBS="${CONFIG_LIB_OBS} hpux-thread.o"
|
6097 |
|
|
CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
|
6098 |
|
|
else
|
6099 |
|
|
echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
|
6100 |
|
|
fi
|
6101 |
|
|
else
|
6102 |
|
|
echo "$ac_t""no" 1>&6
|
6103 |
|
|
fi
|
6104 |
|
|
;;
|
6105 |
|
|
solaris*)
|
6106 |
|
|
echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
|
6107 |
|
|
echo "configure:6108: checking for Solaris thread debugging library" >&5
|
6108 |
|
|
if test -f /usr/lib/libthread_db.so.1 ; then
|
6109 |
|
|
echo "$ac_t""yes" 1>&6
|
6110 |
|
|
cat >> confdefs.h <<\EOF
|
6111 |
|
|
#define HAVE_THREAD_DB_LIB 1
|
6112 |
|
|
EOF
|
6113 |
|
|
|
6114 |
|
|
CONFIG_LIB_OBS="${CONFIG_LIB_OBS} sol-thread.o"
|
6115 |
|
|
CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
|
6116 |
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
6117 |
|
|
echo "configure:6118: checking for dlopen in -ldl" >&5
|
6118 |
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
6119 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
6120 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6121 |
|
|
else
|
6122 |
|
|
ac_save_LIBS="$LIBS"
|
6123 |
|
|
LIBS="-ldl $LIBS"
|
6124 |
|
|
cat > conftest.$ac_ext <
|
6125 |
|
|
#line 6126 "configure"
|
6126 |
|
|
#include "confdefs.h"
|
6127 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6128 |
|
|
/* We use char because int might match the return type of a gcc2
|
6129 |
|
|
builtin and then its argument prototype would still apply. */
|
6130 |
|
|
char dlopen();
|
6131 |
|
|
|
6132 |
|
|
int main() {
|
6133 |
|
|
dlopen()
|
6134 |
|
|
; return 0; }
|
6135 |
|
|
EOF
|
6136 |
|
|
if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6137 |
|
|
rm -rf conftest*
|
6138 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
6139 |
|
|
else
|
6140 |
|
|
echo "configure: failed program was:" >&5
|
6141 |
|
|
cat conftest.$ac_ext >&5
|
6142 |
|
|
rm -rf conftest*
|
6143 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
6144 |
|
|
fi
|
6145 |
|
|
rm -f conftest*
|
6146 |
|
|
LIBS="$ac_save_LIBS"
|
6147 |
|
|
|
6148 |
|
|
fi
|
6149 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
6150 |
|
|
echo "$ac_t""yes" 1>&6
|
6151 |
|
|
ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
6152 |
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
6153 |
|
|
cat >> confdefs.h <
|
6154 |
|
|
#define $ac_tr_lib 1
|
6155 |
|
|
EOF
|
6156 |
|
|
|
6157 |
|
|
LIBS="-ldl $LIBS"
|
6158 |
|
|
|
6159 |
|
|
else
|
6160 |
|
|
echo "$ac_t""no" 1>&6
|
6161 |
|
|
fi
|
6162 |
|
|
|
6163 |
|
|
if test "$GCC" = "yes" ; then
|
6164 |
|
|
# The GNU linker requires the -export-dynamic option to make
|
6165 |
|
|
# all symbols visible in the dynamic symbol table.
|
6166 |
|
|
hold_ldflags=$LDFLAGS
|
6167 |
|
|
echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
|
6168 |
|
|
echo "configure:6169: checking for the ld -export-dynamic flag" >&5
|
6169 |
|
|
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
|
6170 |
|
|
cat > conftest.$ac_ext <
|
6171 |
|
|
#line 6172 "configure"
|
6172 |
|
|
#include "confdefs.h"
|
6173 |
|
|
|
6174 |
|
|
int main() {
|
6175 |
|
|
int i;
|
6176 |
|
|
; return 0; }
|
6177 |
|
|
EOF
|
6178 |
|
|
if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6179 |
|
|
rm -rf conftest*
|
6180 |
|
|
found=yes
|
6181 |
|
|
else
|
6182 |
|
|
echo "configure: failed program was:" >&5
|
6183 |
|
|
cat conftest.$ac_ext >&5
|
6184 |
|
|
rm -rf conftest*
|
6185 |
|
|
found=no
|
6186 |
|
|
fi
|
6187 |
|
|
rm -f conftest*
|
6188 |
|
|
LDFLAGS=$hold_ldflags
|
6189 |
|
|
echo "$ac_t""$found" 1>&6
|
6190 |
|
|
if test $found = yes; then
|
6191 |
|
|
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
|
6192 |
|
|
fi
|
6193 |
|
|
fi
|
6194 |
|
|
# Sun randomly tweaked the prototypes in
|
6195 |
|
|
# at one point.
|
6196 |
|
|
echo $ac_n "checking if is old""... $ac_c" 1>&6
|
6197 |
|
|
echo "configure:6198: checking if is old" >&5
|
6198 |
|
|
if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
|
6199 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6200 |
|
|
else
|
6201 |
|
|
|
6202 |
|
|
cat > conftest.$ac_ext <
|
6203 |
|
|
#line 6204 "configure"
|
6204 |
|
|
#include "confdefs.h"
|
6205 |
|
|
|
6206 |
|
|
#include
|
6207 |
|
|
ps_err_e ps_pdwrite
|
6208 |
|
|
(struct ps_prochandle*, psaddr_t, const void*, size_t);
|
6209 |
|
|
|
6210 |
|
|
int main() {
|
6211 |
|
|
|
6212 |
|
|
; return 0; }
|
6213 |
|
|
EOF
|
6214 |
|
|
if { (eval echo configure:6215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
6215 |
|
|
rm -rf conftest*
|
6216 |
|
|
gdb_cv_proc_service_is_old=no
|
6217 |
|
|
else
|
6218 |
|
|
echo "configure: failed program was:" >&5
|
6219 |
|
|
cat conftest.$ac_ext >&5
|
6220 |
|
|
rm -rf conftest*
|
6221 |
|
|
gdb_cv_proc_service_is_old=yes
|
6222 |
|
|
fi
|
6223 |
|
|
rm -f conftest*
|
6224 |
|
|
|
6225 |
|
|
fi
|
6226 |
|
|
|
6227 |
|
|
echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
|
6228 |
|
|
if test $gdb_cv_proc_service_is_old = yes; then
|
6229 |
|
|
cat >> confdefs.h <<\EOF
|
6230 |
|
|
#define PROC_SERVICE_IS_OLD 1
|
6231 |
|
|
EOF
|
6232 |
|
|
|
6233 |
|
|
fi
|
6234 |
|
|
else
|
6235 |
|
|
echo "$ac_t""no" 1>&6
|
6236 |
|
|
fi
|
6237 |
|
|
;;
|
6238 |
|
|
esac
|
6239 |
|
|
|
6240 |
|
|
fi
|
6241 |
|
|
|
6242 |
|
|
|
6243 |
|
|
# Check whether --enable-gdbcli or --disable-gdbcli was given.
|
6244 |
|
|
if test "${enable_gdbcli+set}" = set; then
|
6245 |
|
|
enableval="$enable_gdbcli"
|
6246 |
|
|
|
6247 |
|
|
case "${enableval}" in
|
6248 |
|
|
yes) enable_gdbcli=yes ;;
|
6249 |
|
|
"") enable_gdbcli=yes ;;
|
6250 |
|
|
no)
|
6251 |
|
|
{ echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
|
6252 |
|
|
;;
|
6253 |
|
|
*)
|
6254 |
|
|
{ echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
|
6255 |
|
|
;;
|
6256 |
|
|
esac
|
6257 |
|
|
|
6258 |
|
|
else
|
6259 |
|
|
enable_gdbcli=yes
|
6260 |
|
|
fi
|
6261 |
|
|
|
6262 |
|
|
case ${enable_gdbcli} in
|
6263 |
|
|
"yes" )
|
6264 |
|
|
if test -d "${srcdir}/cli" ; then
|
6265 |
|
|
CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
|
6266 |
|
|
CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
|
6267 |
|
|
CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
|
6268 |
|
|
CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
|
6269 |
|
|
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
|
6270 |
|
|
CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
|
6271 |
|
|
CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
|
6272 |
|
|
CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
|
6273 |
|
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
|
6274 |
|
|
fi
|
6275 |
|
|
;;
|
6276 |
|
|
esac
|
6277 |
|
|
|
6278 |
|
|
|
6279 |
|
|
# Check whether --enable-gdbmi or --disable-gdbmi was given.
|
6280 |
|
|
if test "${enable_gdbmi+set}" = set; then
|
6281 |
|
|
enableval="$enable_gdbmi"
|
6282 |
|
|
|
6283 |
|
|
case "${enable_gdbmi}" in
|
6284 |
|
|
yes | no) ;;
|
6285 |
|
|
"") enable_gdbmi=yes ;;
|
6286 |
|
|
*)
|
6287 |
|
|
{ echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
|
6288 |
|
|
;;
|
6289 |
|
|
esac
|
6290 |
|
|
|
6291 |
|
|
else
|
6292 |
|
|
enable_gdbmi=yes
|
6293 |
|
|
fi
|
6294 |
|
|
|
6295 |
|
|
case ${enable_gdbmi} in
|
6296 |
|
|
"yes" )
|
6297 |
|
|
if test -d "${srcdir}/mi" ; then
|
6298 |
|
|
CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
|
6299 |
|
|
CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
|
6300 |
|
|
CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
|
6301 |
|
|
CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
|
6302 |
|
|
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
|
6303 |
|
|
CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
|
6304 |
|
|
CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
|
6305 |
|
|
CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
|
6306 |
|
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
|
6307 |
|
|
fi
|
6308 |
|
|
;;
|
6309 |
|
|
esac
|
6310 |
|
|
|
6311 |
|
|
# Configure UI_OUT by default (before 5.2 it can be disabled)
|
6312 |
|
|
# It must be configured if gdbmi is configured
|
6313 |
|
|
|
6314 |
|
|
UIOUT_CFLAGS=
|
6315 |
|
|
|
6316 |
|
|
|
6317 |
|
|
# Check whether --with-uiout or --without-uiout was given.
|
6318 |
|
|
if test "${with_uiout+set}" = set; then
|
6319 |
|
|
withval="$with_uiout"
|
6320 |
|
|
case "${withval}" in
|
6321 |
|
|
yes) want_uiout=true ;;
|
6322 |
|
|
no) if test $enable_gdbmi = yes; then
|
6323 |
|
|
{ echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
|
6324 |
|
|
else
|
6325 |
|
|
want_uiout=false
|
6326 |
|
|
fi ;;
|
6327 |
|
|
*) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
|
6328 |
|
|
esac
|
6329 |
|
|
else
|
6330 |
|
|
want_uiout=true
|
6331 |
|
|
fi
|
6332 |
|
|
|
6333 |
|
|
if test $want_uiout = true; then
|
6334 |
|
|
UIOUT_CFLAGS="-DUI_OUT=1"
|
6335 |
|
|
fi
|
6336 |
|
|
|
6337 |
|
|
# Check whether --enable-tui or --disable-tui was given.
|
6338 |
|
|
if test "${enable_tui+set}" = set; then
|
6339 |
|
|
enableval="$enable_tui"
|
6340 |
|
|
|
6341 |
|
|
case "${enable_tui}" in
|
6342 |
|
|
yes | no) ;;
|
6343 |
|
|
"") enable_tui=yes ;;
|
6344 |
|
|
*)
|
6345 |
|
|
{ echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
|
6346 |
|
|
;;
|
6347 |
|
|
esac
|
6348 |
|
|
|
6349 |
|
|
fi
|
6350 |
|
|
|
6351 |
|
|
case ${enable_tui} in
|
6352 |
|
|
"yes" )
|
6353 |
|
|
if test -d "${srcdir}/tui" ; then
|
6354 |
|
|
CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
|
6355 |
|
|
CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
|
6356 |
|
|
CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
|
6357 |
|
|
CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
|
6358 |
|
|
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
|
6359 |
|
|
CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
|
6360 |
|
|
CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
|
6361 |
|
|
CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
|
6362 |
|
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
|
6363 |
|
|
fi
|
6364 |
|
|
;;
|
6365 |
|
|
esac
|
6366 |
|
|
|
6367 |
|
|
# Check whether --enable-netrom or --disable-netrom was given.
|
6368 |
|
|
if test "${enable_netrom+set}" = set; then
|
6369 |
|
|
enableval="$enable_netrom"
|
6370 |
|
|
case "${enableval}" in
|
6371 |
|
|
yes) enable_netrom=yes ;;
|
6372 |
|
|
no) enable_netrom=no ;;
|
6373 |
|
|
*) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
|
6374 |
|
|
esac
|
6375 |
|
|
fi
|
6376 |
|
|
|
6377 |
|
|
|
6378 |
|
|
if test "${enable_netrom}" = "yes"; then
|
6379 |
|
|
CONFIG_LIB_OBS="${CONFIG_LIB_OBS} remote-nrom.o"
|
6380 |
|
|
CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
|
6381 |
|
|
fi
|
6382 |
|
|
|
6383 |
|
|
|
6384 |
|
|
# NOTE: Don't add -Wall or -Wunused, they both include
|
6385 |
|
|
# -Wunused-parameter which reports bogus warnings.
|
6386 |
|
|
# NOTE: If you add to this list, remember to update
|
6387 |
|
|
# gdb/doc/gdbint.texinfo.
|
6388 |
|
|
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
|
6389 |
|
|
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
|
6390 |
|
|
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
|
6391 |
|
|
# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
|
6392 |
|
|
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
|
6393 |
|
|
# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
|
6394 |
|
|
# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
|
6395 |
|
|
# -Woverloaded-virtual -Winline -Werror"
|
6396 |
|
|
# Check whether --enable-build-warnings or --disable-build-warnings was given.
|
6397 |
|
|
if test "${enable_build_warnings+set}" = set; then
|
6398 |
|
|
enableval="$enable_build_warnings"
|
6399 |
|
|
case "${enableval}" in
|
6400 |
|
|
yes) ;;
|
6401 |
|
|
no) build_warnings="-w";;
|
6402 |
|
|
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
6403 |
|
|
build_warnings="${build_warnings} ${t}";;
|
6404 |
|
|
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
6405 |
|
|
build_warnings="${t} ${build_warnings}";;
|
6406 |
|
|
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
6407 |
|
|
esac
|
6408 |
|
|
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
6409 |
|
|
echo "Setting compiler warning flags = $build_warnings" 6>&1
|
6410 |
|
|
fi
|
6411 |
|
|
fi
|
6412 |
|
|
# Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
|
6413 |
|
|
if test "${enable_gdb_build_warnings+set}" = set; then
|
6414 |
|
|
enableval="$enable_gdb_build_warnings"
|
6415 |
|
|
case "${enableval}" in
|
6416 |
|
|
yes) ;;
|
6417 |
|
|
no) build_warnings="-w";;
|
6418 |
|
|
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
6419 |
|
|
build_warnings="${build_warnings} ${t}";;
|
6420 |
|
|
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
6421 |
|
|
build_warnings="${t} ${build_warnings}";;
|
6422 |
|
|
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
6423 |
|
|
esac
|
6424 |
|
|
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
6425 |
|
|
echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
|
6426 |
|
|
fi
|
6427 |
|
|
fi
|
6428 |
|
|
WARN_CFLAGS=""
|
6429 |
|
|
WERROR_CFLAGS=""
|
6430 |
|
|
if test "x${build_warnings}" != x -a "x$GCC" = xyes
|
6431 |
|
|
then
|
6432 |
|
|
echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
|
6433 |
|
|
echo "configure:6434: checking compiler warning flags" >&5
|
6434 |
|
|
# Separate out the -Werror flag as some files just cannot be
|
6435 |
|
|
# compiled with it enabled.
|
6436 |
|
|
for w in ${build_warnings}; do
|
6437 |
|
|
case $w in
|
6438 |
|
|
-Werr*) WERROR_CFLAGS=-Werror ;;
|
6439 |
|
|
*) # Check that GCC accepts it
|
6440 |
|
|
if $CC $w 2>&1 | grep 'unrecognized option' > /dev/null; then
|
6441 |
|
|
:
|
6442 |
|
|
else
|
6443 |
|
|
WARN_CFLAGS="${WARN_CFLAGS} $w"
|
6444 |
|
|
fi
|
6445 |
|
|
esac
|
6446 |
|
|
done
|
6447 |
|
|
echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
|
6448 |
|
|
fi
|
6449 |
|
|
|
6450 |
|
|
|
6451 |
|
|
|
6452 |
|
|
MMALLOC_CFLAGS=
|
6453 |
|
|
MMALLOC=
|
6454 |
|
|
|
6455 |
|
|
|
6456 |
|
|
|
6457 |
|
|
# Check whether --with-mmalloc or --without-mmalloc was given.
|
6458 |
|
|
if test "${with_mmalloc+set}" = set; then
|
6459 |
|
|
withval="$with_mmalloc"
|
6460 |
|
|
case "${withval}" in
|
6461 |
|
|
yes) want_mmalloc=true ;;
|
6462 |
|
|
no) want_mmalloc=false;;
|
6463 |
|
|
*) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
|
6464 |
|
|
esac
|
6465 |
|
|
else
|
6466 |
|
|
want_mmalloc=false
|
6467 |
|
|
fi
|
6468 |
|
|
|
6469 |
|
|
if test x$want_mmalloc = xtrue; then
|
6470 |
|
|
cat >> confdefs.h <<\EOF
|
6471 |
|
|
#define USE_MMALLOC 1
|
6472 |
|
|
EOF
|
6473 |
|
|
|
6474 |
|
|
cat >> confdefs.h <<\EOF
|
6475 |
|
|
#define MMCHECK_FORCE 1
|
6476 |
|
|
EOF
|
6477 |
|
|
|
6478 |
|
|
MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
|
6479 |
|
|
MMALLOC='../mmalloc/libmmalloc.a'
|
6480 |
|
|
fi
|
6481 |
|
|
|
6482 |
|
|
# Check whether --with-included-regex or --without-included-regex was given.
|
6483 |
|
|
if test "${with_included_regex+set}" = set; then
|
6484 |
|
|
withval="$with_included_regex"
|
6485 |
|
|
case "${withval}" in
|
6486 |
|
|
yes) want_included_regex=true ;;
|
6487 |
|
|
no) want_included_regex=false;;
|
6488 |
|
|
*) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
|
6489 |
|
|
esac
|
6490 |
|
|
else
|
6491 |
|
|
want_included_regex=true
|
6492 |
|
|
fi
|
6493 |
|
|
|
6494 |
|
|
if test $want_included_regex = false; then
|
6495 |
|
|
echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
|
6496 |
|
|
echo "configure:6497: checking for GNU regex" >&5
|
6497 |
|
|
if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
|
6498 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6499 |
|
|
else
|
6500 |
|
|
cat > conftest.$ac_ext <
|
6501 |
|
|
#line 6502 "configure"
|
6502 |
|
|
#include "confdefs.h"
|
6503 |
|
|
#include
|
6504 |
|
|
#include
|
6505 |
|
|
#include
|
6506 |
|
|
int main() {
|
6507 |
|
|
#if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
|
6508 |
|
|
#error No valid GNU regex.
|
6509 |
|
|
#endif
|
6510 |
|
|
|
6511 |
|
|
; return 0; }
|
6512 |
|
|
EOF
|
6513 |
|
|
if { (eval echo configure:6514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
6514 |
|
|
rm -rf conftest*
|
6515 |
|
|
gdb_cv_have_gnu_regex=yes
|
6516 |
|
|
else
|
6517 |
|
|
echo "configure: failed program was:" >&5
|
6518 |
|
|
cat conftest.$ac_ext >&5
|
6519 |
|
|
rm -rf conftest*
|
6520 |
|
|
gdb_cv_have_gnu_regex=no
|
6521 |
|
|
fi
|
6522 |
|
|
rm -f conftest*
|
6523 |
|
|
fi
|
6524 |
|
|
|
6525 |
|
|
echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
|
6526 |
|
|
if test $gdb_cv_have_gnu_regex = no; then
|
6527 |
|
|
want_included_regex=true
|
6528 |
|
|
fi
|
6529 |
|
|
fi
|
6530 |
|
|
|
6531 |
|
|
if test x${want_included_regex} = xtrue; then
|
6532 |
|
|
REGEX="gnu-regex.o"
|
6533 |
|
|
cat >> confdefs.h <<\EOF
|
6534 |
|
|
#define USE_INCLUDED_REGEX 1
|
6535 |
|
|
EOF
|
6536 |
|
|
|
6537 |
|
|
fi
|
6538 |
|
|
|
6539 |
|
|
|
6540 |
|
|
# In the Cygwin environment, we need some additional flags.
|
6541 |
|
|
echo $ac_n "checking for cygwin""... $ac_c" 1>&6
|
6542 |
|
|
echo "configure:6543: checking for cygwin" >&5
|
6543 |
|
|
if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
|
6544 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6545 |
|
|
else
|
6546 |
|
|
cat > conftest.$ac_ext <
|
6547 |
|
|
#line 6548 "configure"
|
6548 |
|
|
#include "confdefs.h"
|
6549 |
|
|
|
6550 |
|
|
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
|
6551 |
|
|
lose
|
6552 |
|
|
#endif
|
6553 |
|
|
EOF
|
6554 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
6555 |
|
|
egrep "lose" >/dev/null 2>&1; then
|
6556 |
|
|
rm -rf conftest*
|
6557 |
|
|
gdb_cv_os_cygwin=yes
|
6558 |
|
|
else
|
6559 |
|
|
rm -rf conftest*
|
6560 |
|
|
gdb_cv_os_cygwin=no
|
6561 |
|
|
fi
|
6562 |
|
|
rm -f conftest*
|
6563 |
|
|
|
6564 |
|
|
fi
|
6565 |
|
|
|
6566 |
|
|
echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
|
6567 |
|
|
|
6568 |
|
|
|
6569 |
|
|
SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
|
6570 |
|
|
case ${host} in
|
6571 |
|
|
*go32* ) SER_HARDWIRE=ser-go32.o ;;
|
6572 |
|
|
*djgpp* ) SER_HARDWIRE=ser-go32.o ;;
|
6573 |
|
|
esac
|
6574 |
|
|
|
6575 |
|
|
|
6576 |
|
|
|
6577 |
|
|
if test x$gdb_host = xgo32; then
|
6578 |
|
|
TERM_LIB=
|
6579 |
|
|
else
|
6580 |
|
|
if test x$gdb_cv_os_cygwin = xyes; then
|
6581 |
|
|
TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
|
6582 |
|
|
else
|
6583 |
|
|
TERM_LIB=
|
6584 |
|
|
echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
6585 |
|
|
echo "configure:6586: checking for tgetent in -lncurses" >&5
|
6586 |
|
|
ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
6587 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
6588 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6589 |
|
|
else
|
6590 |
|
|
ac_save_LIBS="$LIBS"
|
6591 |
|
|
LIBS="-lncurses $LIBS"
|
6592 |
|
|
cat > conftest.$ac_ext <
|
6593 |
|
|
#line 6594 "configure"
|
6594 |
|
|
#include "confdefs.h"
|
6595 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6596 |
|
|
/* We use char because int might match the return type of a gcc2
|
6597 |
|
|
builtin and then its argument prototype would still apply. */
|
6598 |
|
|
char tgetent();
|
6599 |
|
|
|
6600 |
|
|
int main() {
|
6601 |
|
|
tgetent()
|
6602 |
|
|
; return 0; }
|
6603 |
|
|
EOF
|
6604 |
|
|
if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6605 |
|
|
rm -rf conftest*
|
6606 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
6607 |
|
|
else
|
6608 |
|
|
echo "configure: failed program was:" >&5
|
6609 |
|
|
cat conftest.$ac_ext >&5
|
6610 |
|
|
rm -rf conftest*
|
6611 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
6612 |
|
|
fi
|
6613 |
|
|
rm -f conftest*
|
6614 |
|
|
LIBS="$ac_save_LIBS"
|
6615 |
|
|
|
6616 |
|
|
fi
|
6617 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
6618 |
|
|
echo "$ac_t""yes" 1>&6
|
6619 |
|
|
TERM_LIB=-lncurses
|
6620 |
|
|
else
|
6621 |
|
|
echo "$ac_t""no" 1>&6
|
6622 |
|
|
echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
|
6623 |
|
|
echo "configure:6624: checking for tgetent in -lHcurses" >&5
|
6624 |
|
|
ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
|
6625 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
6626 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6627 |
|
|
else
|
6628 |
|
|
ac_save_LIBS="$LIBS"
|
6629 |
|
|
LIBS="-lHcurses $LIBS"
|
6630 |
|
|
cat > conftest.$ac_ext <
|
6631 |
|
|
#line 6632 "configure"
|
6632 |
|
|
#include "confdefs.h"
|
6633 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6634 |
|
|
/* We use char because int might match the return type of a gcc2
|
6635 |
|
|
builtin and then its argument prototype would still apply. */
|
6636 |
|
|
char tgetent();
|
6637 |
|
|
|
6638 |
|
|
int main() {
|
6639 |
|
|
tgetent()
|
6640 |
|
|
; return 0; }
|
6641 |
|
|
EOF
|
6642 |
|
|
if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6643 |
|
|
rm -rf conftest*
|
6644 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
6645 |
|
|
else
|
6646 |
|
|
echo "configure: failed program was:" >&5
|
6647 |
|
|
cat conftest.$ac_ext >&5
|
6648 |
|
|
rm -rf conftest*
|
6649 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
6650 |
|
|
fi
|
6651 |
|
|
rm -f conftest*
|
6652 |
|
|
LIBS="$ac_save_LIBS"
|
6653 |
|
|
|
6654 |
|
|
fi
|
6655 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
6656 |
|
|
echo "$ac_t""yes" 1>&6
|
6657 |
|
|
TERM_LIB=-lHcurses
|
6658 |
|
|
else
|
6659 |
|
|
echo "$ac_t""no" 1>&6
|
6660 |
|
|
echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
|
6661 |
|
|
echo "configure:6662: checking for tgetent in -ltermlib" >&5
|
6662 |
|
|
ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
|
6663 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
6664 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6665 |
|
|
else
|
6666 |
|
|
ac_save_LIBS="$LIBS"
|
6667 |
|
|
LIBS="-ltermlib $LIBS"
|
6668 |
|
|
cat > conftest.$ac_ext <
|
6669 |
|
|
#line 6670 "configure"
|
6670 |
|
|
#include "confdefs.h"
|
6671 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6672 |
|
|
/* We use char because int might match the return type of a gcc2
|
6673 |
|
|
builtin and then its argument prototype would still apply. */
|
6674 |
|
|
char tgetent();
|
6675 |
|
|
|
6676 |
|
|
int main() {
|
6677 |
|
|
tgetent()
|
6678 |
|
|
; return 0; }
|
6679 |
|
|
EOF
|
6680 |
|
|
if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6681 |
|
|
rm -rf conftest*
|
6682 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
6683 |
|
|
else
|
6684 |
|
|
echo "configure: failed program was:" >&5
|
6685 |
|
|
cat conftest.$ac_ext >&5
|
6686 |
|
|
rm -rf conftest*
|
6687 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
6688 |
|
|
fi
|
6689 |
|
|
rm -f conftest*
|
6690 |
|
|
LIBS="$ac_save_LIBS"
|
6691 |
|
|
|
6692 |
|
|
fi
|
6693 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
6694 |
|
|
echo "$ac_t""yes" 1>&6
|
6695 |
|
|
TERM_LIB=-ltermlib
|
6696 |
|
|
else
|
6697 |
|
|
echo "$ac_t""no" 1>&6
|
6698 |
|
|
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
6699 |
|
|
echo "configure:6700: checking for tgetent in -ltermcap" >&5
|
6700 |
|
|
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
6701 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
6702 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6703 |
|
|
else
|
6704 |
|
|
ac_save_LIBS="$LIBS"
|
6705 |
|
|
LIBS="-ltermcap $LIBS"
|
6706 |
|
|
cat > conftest.$ac_ext <
|
6707 |
|
|
#line 6708 "configure"
|
6708 |
|
|
#include "confdefs.h"
|
6709 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6710 |
|
|
/* We use char because int might match the return type of a gcc2
|
6711 |
|
|
builtin and then its argument prototype would still apply. */
|
6712 |
|
|
char tgetent();
|
6713 |
|
|
|
6714 |
|
|
int main() {
|
6715 |
|
|
tgetent()
|
6716 |
|
|
; return 0; }
|
6717 |
|
|
EOF
|
6718 |
|
|
if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6719 |
|
|
rm -rf conftest*
|
6720 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
6721 |
|
|
else
|
6722 |
|
|
echo "configure: failed program was:" >&5
|
6723 |
|
|
cat conftest.$ac_ext >&5
|
6724 |
|
|
rm -rf conftest*
|
6725 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
6726 |
|
|
fi
|
6727 |
|
|
rm -f conftest*
|
6728 |
|
|
LIBS="$ac_save_LIBS"
|
6729 |
|
|
|
6730 |
|
|
fi
|
6731 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
6732 |
|
|
echo "$ac_t""yes" 1>&6
|
6733 |
|
|
TERM_LIB=-ltermcap
|
6734 |
|
|
else
|
6735 |
|
|
echo "$ac_t""no" 1>&6
|
6736 |
|
|
echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
6737 |
|
|
echo "configure:6738: checking for tgetent in -lcurses" >&5
|
6738 |
|
|
ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
6739 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
6740 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6741 |
|
|
else
|
6742 |
|
|
ac_save_LIBS="$LIBS"
|
6743 |
|
|
LIBS="-lcurses $LIBS"
|
6744 |
|
|
cat > conftest.$ac_ext <
|
6745 |
|
|
#line 6746 "configure"
|
6746 |
|
|
#include "confdefs.h"
|
6747 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6748 |
|
|
/* We use char because int might match the return type of a gcc2
|
6749 |
|
|
builtin and then its argument prototype would still apply. */
|
6750 |
|
|
char tgetent();
|
6751 |
|
|
|
6752 |
|
|
int main() {
|
6753 |
|
|
tgetent()
|
6754 |
|
|
; return 0; }
|
6755 |
|
|
EOF
|
6756 |
|
|
if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6757 |
|
|
rm -rf conftest*
|
6758 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
6759 |
|
|
else
|
6760 |
|
|
echo "configure: failed program was:" >&5
|
6761 |
|
|
cat conftest.$ac_ext >&5
|
6762 |
|
|
rm -rf conftest*
|
6763 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
6764 |
|
|
fi
|
6765 |
|
|
rm -f conftest*
|
6766 |
|
|
LIBS="$ac_save_LIBS"
|
6767 |
|
|
|
6768 |
|
|
fi
|
6769 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
6770 |
|
|
echo "$ac_t""yes" 1>&6
|
6771 |
|
|
TERM_LIB=-lcurses
|
6772 |
|
|
else
|
6773 |
|
|
echo "$ac_t""no" 1>&6
|
6774 |
|
|
echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
|
6775 |
|
|
echo "configure:6776: checking for tgetent in -lterminfo" >&5
|
6776 |
|
|
ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
|
6777 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
6778 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6779 |
|
|
else
|
6780 |
|
|
ac_save_LIBS="$LIBS"
|
6781 |
|
|
LIBS="-lterminfo $LIBS"
|
6782 |
|
|
cat > conftest.$ac_ext <
|
6783 |
|
|
#line 6784 "configure"
|
6784 |
|
|
#include "confdefs.h"
|
6785 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6786 |
|
|
/* We use char because int might match the return type of a gcc2
|
6787 |
|
|
builtin and then its argument prototype would still apply. */
|
6788 |
|
|
char tgetent();
|
6789 |
|
|
|
6790 |
|
|
int main() {
|
6791 |
|
|
tgetent()
|
6792 |
|
|
; return 0; }
|
6793 |
|
|
EOF
|
6794 |
|
|
if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
6795 |
|
|
rm -rf conftest*
|
6796 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
6797 |
|
|
else
|
6798 |
|
|
echo "configure: failed program was:" >&5
|
6799 |
|
|
cat conftest.$ac_ext >&5
|
6800 |
|
|
rm -rf conftest*
|
6801 |
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
6802 |
|
|
fi
|
6803 |
|
|
rm -f conftest*
|
6804 |
|
|
LIBS="$ac_save_LIBS"
|
6805 |
|
|
|
6806 |
|
|
fi
|
6807 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
6808 |
|
|
echo "$ac_t""yes" 1>&6
|
6809 |
|
|
TERM_LIB=-lterminfo
|
6810 |
|
|
else
|
6811 |
|
|
echo "$ac_t""no" 1>&6
|
6812 |
|
|
fi
|
6813 |
|
|
|
6814 |
|
|
fi
|
6815 |
|
|
|
6816 |
|
|
fi
|
6817 |
|
|
|
6818 |
|
|
fi
|
6819 |
|
|
|
6820 |
|
|
fi
|
6821 |
|
|
|
6822 |
|
|
fi
|
6823 |
|
|
|
6824 |
|
|
|
6825 |
|
|
if test "x$TERM_LIB" = x
|
6826 |
|
|
then
|
6827 |
|
|
{ echo "configure: error: Could not find a term library" 1>&2; exit 1; }
|
6828 |
|
|
fi
|
6829 |
|
|
fi
|
6830 |
|
|
fi
|
6831 |
|
|
|
6832 |
|
|
|
6833 |
|
|
# libreadline needs libuser32.a in a cygwin environment
|
6834 |
|
|
WIN32LIBS=
|
6835 |
|
|
if test x$gdb_cv_os_cygwin = xyes; then
|
6836 |
|
|
WIN32LIBS="-luser32"
|
6837 |
|
|
case "${target}" in
|
6838 |
|
|
*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
|
6839 |
|
|
;;
|
6840 |
|
|
esac
|
6841 |
|
|
fi
|
6842 |
|
|
|
6843 |
|
|
|
6844 |
|
|
LIBGUI="../libgui/src/libgui.a"
|
6845 |
|
|
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
|
6846 |
|
|
|
6847 |
|
|
|
6848 |
|
|
|
6849 |
|
|
# Check whether --with-cpu or --without-cpu was given.
|
6850 |
|
|
if test "${with_cpu+set}" = set; then
|
6851 |
|
|
withval="$with_cpu"
|
6852 |
|
|
case "${target}" in
|
6853 |
|
|
powerpc-* | powerpcle-* )
|
6854 |
|
|
## It would be nice to keep this table in sync with the one in
|
6855 |
|
|
## gcc/configure.
|
6856 |
|
|
case "${with_cpu}" in
|
6857 |
|
|
ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
|
6858 |
|
|
| 604 | 750 )
|
6859 |
|
|
## Those are all handled in variants in rs6000-tdep.c, so they're fine.
|
6860 |
|
|
;;
|
6861 |
|
|
common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
|
6862 |
|
|
## These are all RS6000 variants, as far as GDB is concerned.
|
6863 |
|
|
with_cpu=rs6000
|
6864 |
|
|
;;
|
6865 |
|
|
603e | ec603e )
|
6866 |
|
|
with_cpu=603
|
6867 |
|
|
;;
|
6868 |
|
|
604e )
|
6869 |
|
|
with_cpu=604
|
6870 |
|
|
;;
|
6871 |
|
|
* )
|
6872 |
|
|
echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
|
6873 |
|
|
with_cpu=ppc-uisa
|
6874 |
|
|
;;
|
6875 |
|
|
esac
|
6876 |
|
|
;;
|
6877 |
|
|
* )
|
6878 |
|
|
echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
|
6879 |
|
|
;;
|
6880 |
|
|
esac
|
6881 |
|
|
cat >> confdefs.h <
|
6882 |
|
|
#define TARGET_CPU_DEFAULT "${with_cpu}"
|
6883 |
|
|
EOF
|
6884 |
|
|
|
6885 |
|
|
|
6886 |
|
|
fi
|
6887 |
|
|
|
6888 |
|
|
|
6889 |
|
|
|
6890 |
|
|
# Check whether --enable-gdbtk or --disable-gdbtk was given.
|
6891 |
|
|
if test "${enable_gdbtk+set}" = set; then
|
6892 |
|
|
enableval="$enable_gdbtk"
|
6893 |
|
|
case "${enableval}" in
|
6894 |
|
|
yes)
|
6895 |
|
|
case "$host" in
|
6896 |
|
|
*go32*)
|
6897 |
|
|
echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
|
6898 |
|
|
enable_gdbtk=no ;;
|
6899 |
|
|
*windows*)
|
6900 |
|
|
echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
|
6901 |
|
|
enable_gdbtk=no ;;
|
6902 |
|
|
*)
|
6903 |
|
|
enable_gdbtk=yes ;;
|
6904 |
|
|
esac ;;
|
6905 |
|
|
no)
|
6906 |
|
|
enable_gdbtk=no ;;
|
6907 |
|
|
*)
|
6908 |
|
|
{ echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
|
6909 |
|
|
esac
|
6910 |
|
|
else
|
6911 |
|
|
|
6912 |
|
|
# Default is on for everything but go32 and Cygwin
|
6913 |
|
|
case "$host" in
|
6914 |
|
|
*go32* | *windows*)
|
6915 |
|
|
;;
|
6916 |
|
|
*)
|
6917 |
|
|
if test -d "${srcdir}/gdbtk" ; then
|
6918 |
|
|
enable_gdbtk=yes
|
6919 |
|
|
fi
|
6920 |
|
|
;;
|
6921 |
|
|
esac
|
6922 |
|
|
|
6923 |
|
|
fi
|
6924 |
|
|
|
6925 |
|
|
|
6926 |
|
|
WIN32LDAPP=
|
6927 |
|
|
|
6928 |
|
|
|
6929 |
|
|
|
6930 |
|
|
configdir="unix"
|
6931 |
|
|
|
6932 |
|
|
GDBTKLIBS=
|
6933 |
|
|
if test "${enable_gdbtk}" = "yes"; then
|
6934 |
|
|
|
6935 |
|
|
|
6936 |
|
|
#
|
6937 |
|
|
# Ok, lets find the tcl configuration
|
6938 |
|
|
# First, look for one uninstalled.
|
6939 |
|
|
# the alternative search directory is invoked by --with-tclconfig
|
6940 |
|
|
#
|
6941 |
|
|
|
6942 |
|
|
if test x"${no_tcl}" = x ; then
|
6943 |
|
|
# we reset no_tcl in case something fails here
|
6944 |
|
|
no_tcl=true
|
6945 |
|
|
# Check whether --with-tclconfig or --without-tclconfig was given.
|
6946 |
|
|
if test "${with_tclconfig+set}" = set; then
|
6947 |
|
|
withval="$with_tclconfig"
|
6948 |
|
|
with_tclconfig=${withval}
|
6949 |
|
|
fi
|
6950 |
|
|
|
6951 |
|
|
echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
|
6952 |
|
|
echo "configure:6953: checking for Tcl configuration" >&5
|
6953 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
|
6954 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
6955 |
|
|
else
|
6956 |
|
|
|
6957 |
|
|
|
6958 |
|
|
# First check to see if --with-tclconfig was specified.
|
6959 |
|
|
if test x"${with_tclconfig}" != x ; then
|
6960 |
|
|
if test -f "${with_tclconfig}/tclConfig.sh" ; then
|
6961 |
|
|
ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
|
6962 |
|
|
else
|
6963 |
|
|
{ echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
|
6964 |
|
|
fi
|
6965 |
|
|
fi
|
6966 |
|
|
|
6967 |
|
|
# then check for a private Tcl installation
|
6968 |
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
6969 |
|
|
for i in \
|
6970 |
|
|
../tcl \
|
6971 |
|
|
`ls -dr ../tcl[7-9]* 2>/dev/null` \
|
6972 |
|
|
../../tcl \
|
6973 |
|
|
`ls -dr ../../tcl[7-9]* 2>/dev/null` \
|
6974 |
|
|
../../../tcl \
|
6975 |
|
|
`ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
|
6976 |
|
|
if test -f "$i/${configdir}/tclConfig.sh" ; then
|
6977 |
|
|
ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
|
6978 |
|
|
break
|
6979 |
|
|
fi
|
6980 |
|
|
done
|
6981 |
|
|
fi
|
6982 |
|
|
# check in a few common install locations
|
6983 |
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
6984 |
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
6985 |
|
|
if test -f "$i/tclConfig.sh" ; then
|
6986 |
|
|
ac_cv_c_tclconfig=`(cd $i; pwd)`
|
6987 |
|
|
break
|
6988 |
|
|
fi
|
6989 |
|
|
done
|
6990 |
|
|
fi
|
6991 |
|
|
# check in a few other private locations
|
6992 |
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
6993 |
|
|
for i in \
|
6994 |
|
|
${srcdir}/../tcl \
|
6995 |
|
|
`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
|
6996 |
|
|
if test -f "$i/${configdir}/tclConfig.sh" ; then
|
6997 |
|
|
ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
|
6998 |
|
|
break
|
6999 |
|
|
fi
|
7000 |
|
|
done
|
7001 |
|
|
fi
|
7002 |
|
|
|
7003 |
|
|
fi
|
7004 |
|
|
|
7005 |
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
7006 |
|
|
TCLCONFIG="# no Tcl configs found"
|
7007 |
|
|
echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
|
7008 |
|
|
else
|
7009 |
|
|
no_tcl=
|
7010 |
|
|
TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
|
7011 |
|
|
echo "$ac_t""found $TCLCONFIG" 1>&6
|
7012 |
|
|
fi
|
7013 |
|
|
fi
|
7014 |
|
|
|
7015 |
|
|
if test -z "${no_tcl}"; then
|
7016 |
|
|
|
7017 |
|
|
. $TCLCONFIG
|
7018 |
|
|
|
7019 |
|
|
|
7020 |
|
|
|
7021 |
|
|
|
7022 |
|
|
|
7023 |
|
|
|
7024 |
|
|
|
7025 |
|
|
|
7026 |
|
|
|
7027 |
|
|
|
7028 |
|
|
|
7029 |
|
|
|
7030 |
|
|
|
7031 |
|
|
|
7032 |
|
|
|
7033 |
|
|
|
7034 |
|
|
|
7035 |
|
|
|
7036 |
|
|
|
7037 |
|
|
|
7038 |
|
|
|
7039 |
|
|
|
7040 |
|
|
|
7041 |
|
|
|
7042 |
|
|
|
7043 |
|
|
|
7044 |
|
|
#
|
7045 |
|
|
# Ok, lets find the tk configuration
|
7046 |
|
|
# First, look for one uninstalled.
|
7047 |
|
|
# the alternative search directory is invoked by --with-tkconfig
|
7048 |
|
|
#
|
7049 |
|
|
|
7050 |
|
|
if test x"${no_tk}" = x ; then
|
7051 |
|
|
# we reset no_tk in case something fails here
|
7052 |
|
|
no_tk=true
|
7053 |
|
|
# Check whether --with-tkconfig or --without-tkconfig was given.
|
7054 |
|
|
if test "${with_tkconfig+set}" = set; then
|
7055 |
|
|
withval="$with_tkconfig"
|
7056 |
|
|
with_tkconfig=${withval}
|
7057 |
|
|
fi
|
7058 |
|
|
|
7059 |
|
|
echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
|
7060 |
|
|
echo "configure:7061: checking for Tk configuration" >&5
|
7061 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
|
7062 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7063 |
|
|
else
|
7064 |
|
|
|
7065 |
|
|
|
7066 |
|
|
# First check to see if --with-tkconfig was specified.
|
7067 |
|
|
if test x"${with_tkconfig}" != x ; then
|
7068 |
|
|
if test -f "${with_tkconfig}/tkConfig.sh" ; then
|
7069 |
|
|
ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
|
7070 |
|
|
else
|
7071 |
|
|
{ echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
|
7072 |
|
|
fi
|
7073 |
|
|
fi
|
7074 |
|
|
|
7075 |
|
|
# then check for a private Tk library
|
7076 |
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
7077 |
|
|
for i in \
|
7078 |
|
|
../tk \
|
7079 |
|
|
`ls -dr ../tk[4-9]* 2>/dev/null` \
|
7080 |
|
|
../../tk \
|
7081 |
|
|
`ls -dr ../../tk[4-9]* 2>/dev/null` \
|
7082 |
|
|
../../../tk \
|
7083 |
|
|
`ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
|
7084 |
|
|
if test -f "$i/${configdir}/tkConfig.sh" ; then
|
7085 |
|
|
ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
|
7086 |
|
|
break
|
7087 |
|
|
fi
|
7088 |
|
|
done
|
7089 |
|
|
fi
|
7090 |
|
|
# check in a few common install locations
|
7091 |
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
7092 |
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
7093 |
|
|
if test -f "$i/tkConfig.sh" ; then
|
7094 |
|
|
ac_cv_c_tkconfig=`(cd $i; pwd)`
|
7095 |
|
|
break
|
7096 |
|
|
fi
|
7097 |
|
|
done
|
7098 |
|
|
fi
|
7099 |
|
|
# check in a few other private locations
|
7100 |
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
7101 |
|
|
for i in \
|
7102 |
|
|
${srcdir}/../tk \
|
7103 |
|
|
`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
|
7104 |
|
|
if test -f "$i/${configdir}/tkConfig.sh" ; then
|
7105 |
|
|
ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
|
7106 |
|
|
break
|
7107 |
|
|
fi
|
7108 |
|
|
done
|
7109 |
|
|
fi
|
7110 |
|
|
|
7111 |
|
|
fi
|
7112 |
|
|
|
7113 |
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
7114 |
|
|
TKCONFIG="# no Tk configs found"
|
7115 |
|
|
echo "configure: warning: Can't find Tk configuration definitions" 1>&2
|
7116 |
|
|
else
|
7117 |
|
|
no_tk=
|
7118 |
|
|
TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
|
7119 |
|
|
echo "$ac_t""found $TKCONFIG" 1>&6
|
7120 |
|
|
fi
|
7121 |
|
|
fi
|
7122 |
|
|
|
7123 |
|
|
|
7124 |
|
|
|
7125 |
|
|
# If $no_tk is nonempty, then we can't do Tk, and there is no
|
7126 |
|
|
# point to doing Tcl.
|
7127 |
|
|
if test -z "${no_tk}"; then
|
7128 |
|
|
|
7129 |
|
|
if test -f "$TKCONFIG" ; then
|
7130 |
|
|
. $TKCONFIG
|
7131 |
|
|
fi
|
7132 |
|
|
|
7133 |
|
|
|
7134 |
|
|
|
7135 |
|
|
|
7136 |
|
|
|
7137 |
|
|
|
7138 |
|
|
|
7139 |
|
|
|
7140 |
|
|
|
7141 |
|
|
|
7142 |
|
|
|
7143 |
|
|
|
7144 |
|
|
|
7145 |
|
|
|
7146 |
|
|
#
|
7147 |
|
|
# Ok, lets find the tcl source trees so we can use the headers
|
7148 |
|
|
# Warning: transition of version 9 to 10 will break this algorithm
|
7149 |
|
|
# because 10 sorts before 9. We also look for just tcl. We have to
|
7150 |
|
|
# be careful that we don't match stuff like tclX by accident.
|
7151 |
|
|
# the alternative search directory is involked by --with-tclinclude
|
7152 |
|
|
#
|
7153 |
|
|
|
7154 |
|
|
no_tcl=true
|
7155 |
|
|
echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
|
7156 |
|
|
echo "configure:7157: checking for Tcl private headers. dir=${configdir}" >&5
|
7157 |
|
|
# Check whether --with-tclinclude or --without-tclinclude was given.
|
7158 |
|
|
if test "${with_tclinclude+set}" = set; then
|
7159 |
|
|
withval="$with_tclinclude"
|
7160 |
|
|
with_tclinclude=${withval}
|
7161 |
|
|
fi
|
7162 |
|
|
|
7163 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
|
7164 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7165 |
|
|
else
|
7166 |
|
|
|
7167 |
|
|
# first check to see if --with-tclinclude was specified
|
7168 |
|
|
if test x"${with_tclinclude}" != x ; then
|
7169 |
|
|
if test -f ${with_tclinclude}/tclInt.h ; then
|
7170 |
|
|
ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
|
7171 |
|
|
elif test -f ${with_tclinclude}/generic/tclInt.h ; then
|
7172 |
|
|
ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
|
7173 |
|
|
else
|
7174 |
|
|
{ echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
|
7175 |
|
|
fi
|
7176 |
|
|
fi
|
7177 |
|
|
|
7178 |
|
|
# next check if it came with Tcl configuration file
|
7179 |
|
|
if test x"${ac_cv_c_tclconfig}" = x ; then
|
7180 |
|
|
if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
|
7181 |
|
|
ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
|
7182 |
|
|
fi
|
7183 |
|
|
fi
|
7184 |
|
|
|
7185 |
|
|
# next check in private source directory
|
7186 |
|
|
#
|
7187 |
|
|
# since ls returns lowest version numbers first, reverse its output
|
7188 |
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
7189 |
|
|
for i in \
|
7190 |
|
|
${srcdir}/../tcl \
|
7191 |
|
|
`ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
|
7192 |
|
|
${srcdir}/../../tcl \
|
7193 |
|
|
`ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
|
7194 |
|
|
${srcdir}/../../../tcl \
|
7195 |
|
|
`ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
|
7196 |
|
|
if test -f $i/generic/tclInt.h ; then
|
7197 |
|
|
ac_cv_c_tclh=`(cd $i/generic; pwd)`
|
7198 |
|
|
break
|
7199 |
|
|
fi
|
7200 |
|
|
done
|
7201 |
|
|
fi
|
7202 |
|
|
# finally check in a few common install locations
|
7203 |
|
|
#
|
7204 |
|
|
# since ls returns lowest version numbers first, reverse its output
|
7205 |
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
7206 |
|
|
for i in \
|
7207 |
|
|
`ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
|
7208 |
|
|
`ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
|
7209 |
|
|
/usr/local/src/tcl \
|
7210 |
|
|
/usr/local/lib/tcl \
|
7211 |
|
|
${prefix}/include ; do
|
7212 |
|
|
if test -f $i/generic/tclInt.h ; then
|
7213 |
|
|
ac_cv_c_tclh=`(cd $i/generic; pwd)`
|
7214 |
|
|
break
|
7215 |
|
|
fi
|
7216 |
|
|
done
|
7217 |
|
|
fi
|
7218 |
|
|
# see if one is installed
|
7219 |
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
7220 |
|
|
ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
|
7221 |
|
|
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
|
7222 |
|
|
echo "configure:7223: checking for tclInt.h" >&5
|
7223 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
7224 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7225 |
|
|
else
|
7226 |
|
|
cat > conftest.$ac_ext <
|
7227 |
|
|
#line 7228 "configure"
|
7228 |
|
|
#include "confdefs.h"
|
7229 |
|
|
#include
|
7230 |
|
|
EOF
|
7231 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
7232 |
|
|
{ (eval echo configure:7233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7233 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
7234 |
|
|
if test -z "$ac_err"; then
|
7235 |
|
|
rm -rf conftest*
|
7236 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
7237 |
|
|
else
|
7238 |
|
|
echo "$ac_err" >&5
|
7239 |
|
|
echo "configure: failed program was:" >&5
|
7240 |
|
|
cat conftest.$ac_ext >&5
|
7241 |
|
|
rm -rf conftest*
|
7242 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
7243 |
|
|
fi
|
7244 |
|
|
rm -f conftest*
|
7245 |
|
|
fi
|
7246 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
7247 |
|
|
echo "$ac_t""yes" 1>&6
|
7248 |
|
|
ac_cv_c_tclh=installed
|
7249 |
|
|
else
|
7250 |
|
|
echo "$ac_t""no" 1>&6
|
7251 |
|
|
ac_cv_c_tclh=""
|
7252 |
|
|
fi
|
7253 |
|
|
|
7254 |
|
|
fi
|
7255 |
|
|
|
7256 |
|
|
fi
|
7257 |
|
|
|
7258 |
|
|
if test x"${ac_cv_c_tclh}" = x ; then
|
7259 |
|
|
TCLHDIR="# no Tcl private headers found"
|
7260 |
|
|
{ echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
|
7261 |
|
|
fi
|
7262 |
|
|
if test x"${ac_cv_c_tclh}" != x ; then
|
7263 |
|
|
no_tcl=""
|
7264 |
|
|
if test x"${ac_cv_c_tclh}" = x"installed" ; then
|
7265 |
|
|
echo "$ac_t""is installed" 1>&6
|
7266 |
|
|
TCLHDIR=""
|
7267 |
|
|
else
|
7268 |
|
|
echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
|
7269 |
|
|
# this hack is cause the TCLHDIR won't print if there is a "-I" in it.
|
7270 |
|
|
TCLHDIR="-I${ac_cv_c_tclh}"
|
7271 |
|
|
fi
|
7272 |
|
|
fi
|
7273 |
|
|
|
7274 |
|
|
|
7275 |
|
|
|
7276 |
|
|
|
7277 |
|
|
#
|
7278 |
|
|
# Ok, lets find the tk source trees so we can use the headers
|
7279 |
|
|
# If the directory (presumably symlink) named "tk" exists, use that one
|
7280 |
|
|
# in preference to any others. Same logic is used when choosing library
|
7281 |
|
|
# and again with Tcl. The search order is the best place to look first, then in
|
7282 |
|
|
# decreasing significance. The loop breaks if the trigger file is found.
|
7283 |
|
|
# Note the gross little conversion here of srcdir by cd'ing to the found
|
7284 |
|
|
# directory. This converts the path from a relative to an absolute, so
|
7285 |
|
|
# recursive cache variables for the path will work right. We check all
|
7286 |
|
|
# the possible paths in one loop rather than many seperate loops to speed
|
7287 |
|
|
# things up.
|
7288 |
|
|
# the alternative search directory is involked by --with-tkinclude
|
7289 |
|
|
#
|
7290 |
|
|
no_tk=true
|
7291 |
|
|
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
|
7292 |
|
|
echo "configure:7293: checking for Tk private headers" >&5
|
7293 |
|
|
# Check whether --with-tkinclude or --without-tkinclude was given.
|
7294 |
|
|
if test "${with_tkinclude+set}" = set; then
|
7295 |
|
|
withval="$with_tkinclude"
|
7296 |
|
|
with_tkinclude=${withval}
|
7297 |
|
|
fi
|
7298 |
|
|
|
7299 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
|
7300 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7301 |
|
|
else
|
7302 |
|
|
|
7303 |
|
|
# first check to see if --with-tkinclude was specified
|
7304 |
|
|
if test x"${with_tkinclude}" != x ; then
|
7305 |
|
|
if test -f ${with_tkinclude}/tk.h ; then
|
7306 |
|
|
ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
|
7307 |
|
|
elif test -f ${with_tkinclude}/generic/tk.h ; then
|
7308 |
|
|
ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
|
7309 |
|
|
else
|
7310 |
|
|
{ echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
|
7311 |
|
|
fi
|
7312 |
|
|
fi
|
7313 |
|
|
|
7314 |
|
|
# next check if it came with Tk configuration file
|
7315 |
|
|
if test x"${ac_cv_c_tkconfig}" = x ; then
|
7316 |
|
|
if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
|
7317 |
|
|
ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
|
7318 |
|
|
fi
|
7319 |
|
|
fi
|
7320 |
|
|
|
7321 |
|
|
# next check in private source directory
|
7322 |
|
|
#
|
7323 |
|
|
# since ls returns lowest version numbers first, reverse its output
|
7324 |
|
|
if test x"${ac_cv_c_tkh}" = x ; then
|
7325 |
|
|
for i in \
|
7326 |
|
|
${srcdir}/../tk \
|
7327 |
|
|
`ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
|
7328 |
|
|
${srcdir}/../../tk \
|
7329 |
|
|
`ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
|
7330 |
|
|
${srcdir}/../../../tk \
|
7331 |
|
|
`ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
|
7332 |
|
|
if test -f $i/generic/tk.h ; then
|
7333 |
|
|
ac_cv_c_tkh=`(cd $i/generic; pwd)`
|
7334 |
|
|
break
|
7335 |
|
|
fi
|
7336 |
|
|
done
|
7337 |
|
|
fi
|
7338 |
|
|
# finally check in a few common install locations
|
7339 |
|
|
#
|
7340 |
|
|
# since ls returns lowest version numbers first, reverse its output
|
7341 |
|
|
if test x"${ac_cv_c_tkh}" = x ; then
|
7342 |
|
|
for i in \
|
7343 |
|
|
`ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
|
7344 |
|
|
`ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
|
7345 |
|
|
/usr/local/src/tk \
|
7346 |
|
|
/usr/local/lib/tk \
|
7347 |
|
|
${prefix}/include ; do
|
7348 |
|
|
if test -f $i/generic/tk.h ; then
|
7349 |
|
|
ac_cv_c_tkh=`(cd $i/generic; pwd)`
|
7350 |
|
|
break
|
7351 |
|
|
fi
|
7352 |
|
|
done
|
7353 |
|
|
fi
|
7354 |
|
|
# see if one is installed
|
7355 |
|
|
if test x"${ac_cv_c_tkh}" = x ; then
|
7356 |
|
|
ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
|
7357 |
|
|
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
|
7358 |
|
|
echo "configure:7359: checking for tk.h" >&5
|
7359 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
7360 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7361 |
|
|
else
|
7362 |
|
|
cat > conftest.$ac_ext <
|
7363 |
|
|
#line 7364 "configure"
|
7364 |
|
|
#include "confdefs.h"
|
7365 |
|
|
#include
|
7366 |
|
|
EOF
|
7367 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
7368 |
|
|
{ (eval echo configure:7369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7369 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
7370 |
|
|
if test -z "$ac_err"; then
|
7371 |
|
|
rm -rf conftest*
|
7372 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
7373 |
|
|
else
|
7374 |
|
|
echo "$ac_err" >&5
|
7375 |
|
|
echo "configure: failed program was:" >&5
|
7376 |
|
|
cat conftest.$ac_ext >&5
|
7377 |
|
|
rm -rf conftest*
|
7378 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
7379 |
|
|
fi
|
7380 |
|
|
rm -f conftest*
|
7381 |
|
|
fi
|
7382 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
7383 |
|
|
echo "$ac_t""yes" 1>&6
|
7384 |
|
|
ac_cv_c_tkh=installed
|
7385 |
|
|
else
|
7386 |
|
|
echo "$ac_t""no" 1>&6
|
7387 |
|
|
ac_cv_c_tkh=""
|
7388 |
|
|
fi
|
7389 |
|
|
|
7390 |
|
|
fi
|
7391 |
|
|
|
7392 |
|
|
fi
|
7393 |
|
|
|
7394 |
|
|
if test x"${ac_cv_c_tkh}" != x ; then
|
7395 |
|
|
no_tk=""
|
7396 |
|
|
if test x"${ac_cv_c_tkh}" = x"installed" ; then
|
7397 |
|
|
echo "$ac_t""is installed" 1>&6
|
7398 |
|
|
TKHDIR=""
|
7399 |
|
|
else
|
7400 |
|
|
echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
|
7401 |
|
|
# this hack is cause the TKHDIR won't print if there is a "-I" in it.
|
7402 |
|
|
TKHDIR="-I${ac_cv_c_tkh}"
|
7403 |
|
|
fi
|
7404 |
|
|
else
|
7405 |
|
|
TKHDIR="# no Tk directory found"
|
7406 |
|
|
echo "configure: warning: Can't find Tk private headers" 1>&2
|
7407 |
|
|
no_tk=true
|
7408 |
|
|
fi
|
7409 |
|
|
|
7410 |
|
|
|
7411 |
|
|
|
7412 |
|
|
|
7413 |
|
|
echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
|
7414 |
|
|
echo "configure:7415: checking for Itcl private headers. srcdir=${srcdir}" >&5
|
7415 |
|
|
if test x"${ac_cv_c_itclh}" = x ; then
|
7416 |
|
|
for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
|
7417 |
|
|
if test -f $i/generic/itcl.h ; then
|
7418 |
|
|
ac_cv_c_itclh=`(cd $i/generic; pwd)`
|
7419 |
|
|
break
|
7420 |
|
|
fi
|
7421 |
|
|
done
|
7422 |
|
|
fi
|
7423 |
|
|
if test x"${ac_cv_c_itclh}" = x ; then
|
7424 |
|
|
ITCLHDIR="# no Itcl private headers found"
|
7425 |
|
|
{ echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
|
7426 |
|
|
fi
|
7427 |
|
|
if test x"${ac_cv_c_itclh}" != x ; then
|
7428 |
|
|
ITCLHDIR="-I${ac_cv_c_itclh}"
|
7429 |
|
|
fi
|
7430 |
|
|
# should always be here
|
7431 |
|
|
# ITCLLIB="../itcl/itcl/unix/libitcl.a"
|
7432 |
|
|
|
7433 |
|
|
#AC_SUBST(ITCLLIB)
|
7434 |
|
|
|
7435 |
|
|
|
7436 |
|
|
echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
|
7437 |
|
|
echo "configure:7438: checking for Itk private headers. srcdir=${srcdir}" >&5
|
7438 |
|
|
if test x"${ac_cv_c_itkh}" = x ; then
|
7439 |
|
|
for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
|
7440 |
|
|
if test -f $i/generic/itk.h ; then
|
7441 |
|
|
ac_cv_c_itkh=`(cd $i/generic; pwd)`
|
7442 |
|
|
break
|
7443 |
|
|
fi
|
7444 |
|
|
done
|
7445 |
|
|
fi
|
7446 |
|
|
if test x"${ac_cv_c_itkh}" = x ; then
|
7447 |
|
|
ITKHDIR="# no Itk private headers found"
|
7448 |
|
|
{ echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
|
7449 |
|
|
fi
|
7450 |
|
|
if test x"${ac_cv_c_itkh}" != x ; then
|
7451 |
|
|
ITKHDIR="-I${ac_cv_c_itkh}"
|
7452 |
|
|
fi
|
7453 |
|
|
# should always be here
|
7454 |
|
|
# ITKLIB="../itcl/itk/unix/libitk.a"
|
7455 |
|
|
|
7456 |
|
|
#AC_SUBST(ITKLIB)
|
7457 |
|
|
|
7458 |
|
|
|
7459 |
|
|
echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
|
7460 |
|
|
echo "configure:7461: checking for Tix private headers. srcdir=${srcdir}" >&5
|
7461 |
|
|
if test x"${ac_cv_c_tixh}" = x ; then
|
7462 |
|
|
for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
|
7463 |
|
|
if test -f $i/generic/tix.h ; then
|
7464 |
|
|
ac_cv_c_tixh=`(cd $i/generic; pwd)`
|
7465 |
|
|
break
|
7466 |
|
|
fi
|
7467 |
|
|
done
|
7468 |
|
|
fi
|
7469 |
|
|
if test x"${ac_cv_c_tixh}" = x ; then
|
7470 |
|
|
TIXHDIR="# no Tix private headers found"
|
7471 |
|
|
{ echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
|
7472 |
|
|
fi
|
7473 |
|
|
if test x"${ac_cv_c_tixh}" != x ; then
|
7474 |
|
|
TIXHDIR="-I${ac_cv_c_tixh}"
|
7475 |
|
|
fi
|
7476 |
|
|
|
7477 |
|
|
|
7478 |
|
|
|
7479 |
|
|
# now look for Itcl library stuff
|
7480 |
|
|
|
7481 |
|
|
|
7482 |
|
|
#
|
7483 |
|
|
# Ok, lets find the itcl configuration
|
7484 |
|
|
# First, look for one uninstalled.
|
7485 |
|
|
# the alternative search directory is invoked by --with-itclconfig
|
7486 |
|
|
#
|
7487 |
|
|
|
7488 |
|
|
if test x"${no_itcl}" = x ; then
|
7489 |
|
|
# we reset no_itcl in case something fails here
|
7490 |
|
|
no_itcl=true
|
7491 |
|
|
# Check whether --with-itclconfig or --without-itclconfig was given.
|
7492 |
|
|
if test "${with_itclconfig+set}" = set; then
|
7493 |
|
|
withval="$with_itclconfig"
|
7494 |
|
|
with_itclconfig=${withval}
|
7495 |
|
|
fi
|
7496 |
|
|
|
7497 |
|
|
echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
|
7498 |
|
|
echo "configure:7499: checking for Itcl configuration" >&5
|
7499 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
|
7500 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7501 |
|
|
else
|
7502 |
|
|
|
7503 |
|
|
|
7504 |
|
|
# First check to see if --with-itclconfig was specified.
|
7505 |
|
|
if test x"${with_itclconfig}" != x ; then
|
7506 |
|
|
if test -f "${with_itclconfig}/itclConfig.sh" ; then
|
7507 |
|
|
ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
|
7508 |
|
|
else
|
7509 |
|
|
{ echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
|
7510 |
|
|
fi
|
7511 |
|
|
fi
|
7512 |
|
|
|
7513 |
|
|
# then check for a private Itcl library
|
7514 |
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
7515 |
|
|
for i in \
|
7516 |
|
|
../itcl/itcl \
|
7517 |
|
|
`ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
|
7518 |
|
|
../../itcl \
|
7519 |
|
|
`ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
|
7520 |
|
|
../../../itcl \
|
7521 |
|
|
`ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
|
7522 |
|
|
if test -f "$i/itclConfig.sh" ; then
|
7523 |
|
|
ac_cv_c_itclconfig=`(cd $i; pwd)`
|
7524 |
|
|
break
|
7525 |
|
|
fi
|
7526 |
|
|
done
|
7527 |
|
|
fi
|
7528 |
|
|
# check in a few common install locations
|
7529 |
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
7530 |
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
7531 |
|
|
if test -f "$i/itclConfig.sh" ; then
|
7532 |
|
|
ac_cv_c_itclconfig=`(cd $i; pwd)`
|
7533 |
|
|
break
|
7534 |
|
|
fi
|
7535 |
|
|
done
|
7536 |
|
|
fi
|
7537 |
|
|
# check in a few other private locations
|
7538 |
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
7539 |
|
|
for i in \
|
7540 |
|
|
${srcdir}/../itcl/itcl \
|
7541 |
|
|
`ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
|
7542 |
|
|
if test -f "$i/itclConfig.sh" ; then
|
7543 |
|
|
ac_cv_c_itclconfig=`(cd $i; pwd)`
|
7544 |
|
|
break
|
7545 |
|
|
fi
|
7546 |
|
|
done
|
7547 |
|
|
fi
|
7548 |
|
|
|
7549 |
|
|
fi
|
7550 |
|
|
|
7551 |
|
|
if test x"${ac_cv_c_itclconfig}" = x ; then
|
7552 |
|
|
ITCLCONFIG="# no Itcl configs found"
|
7553 |
|
|
echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
|
7554 |
|
|
else
|
7555 |
|
|
no_itcl=
|
7556 |
|
|
ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
|
7557 |
|
|
echo "$ac_t""found $ITCLCONFIG" 1>&6
|
7558 |
|
|
fi
|
7559 |
|
|
fi
|
7560 |
|
|
|
7561 |
|
|
if test -z "${no_itcl}"; then
|
7562 |
|
|
|
7563 |
|
|
if test -f "$ITCLCONFIG" ; then
|
7564 |
|
|
. $ITCLCONFIG
|
7565 |
|
|
fi
|
7566 |
|
|
|
7567 |
|
|
|
7568 |
|
|
|
7569 |
|
|
|
7570 |
|
|
|
7571 |
|
|
|
7572 |
|
|
|
7573 |
|
|
|
7574 |
|
|
|
7575 |
|
|
|
7576 |
|
|
|
7577 |
|
|
case "${host}" in
|
7578 |
|
|
*-*-cygwin*)
|
7579 |
|
|
itcldir=../itcl/itcl/win/
|
7580 |
|
|
;;
|
7581 |
|
|
*)
|
7582 |
|
|
itcldir=../itcl/itcl/unix/
|
7583 |
|
|
;;
|
7584 |
|
|
esac
|
7585 |
|
|
|
7586 |
|
|
|
7587 |
|
|
ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
|
7588 |
|
|
ITCL_DEPS="${itcldir}${ITCL_LIB_FILE}"
|
7589 |
|
|
fi
|
7590 |
|
|
|
7591 |
|
|
|
7592 |
|
|
# now look for Itk library stuff
|
7593 |
|
|
|
7594 |
|
|
#
|
7595 |
|
|
# Ok, lets find the itk configuration
|
7596 |
|
|
# First, look for one uninstalled.
|
7597 |
|
|
# the alternative search directory is invoked by --with-itkconfig
|
7598 |
|
|
#
|
7599 |
|
|
|
7600 |
|
|
if test x"${no_itk}" = x ; then
|
7601 |
|
|
# we reset no_itk in case something fails here
|
7602 |
|
|
no_itk=true
|
7603 |
|
|
# Check whether --with-itkconfig or --without-itkconfig was given.
|
7604 |
|
|
if test "${with_itkconfig+set}" = set; then
|
7605 |
|
|
withval="$with_itkconfig"
|
7606 |
|
|
with_itkconfig=${withval}
|
7607 |
|
|
fi
|
7608 |
|
|
|
7609 |
|
|
echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
|
7610 |
|
|
echo "configure:7611: checking for Itk configuration" >&5
|
7611 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
|
7612 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7613 |
|
|
else
|
7614 |
|
|
|
7615 |
|
|
|
7616 |
|
|
# First check to see if --with-itkconfig was specified.
|
7617 |
|
|
if test x"${with_itkconfig}" != x ; then
|
7618 |
|
|
if test -f "${with_itkconfig}/itkConfig.sh" ; then
|
7619 |
|
|
ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
|
7620 |
|
|
else
|
7621 |
|
|
{ echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
|
7622 |
|
|
fi
|
7623 |
|
|
fi
|
7624 |
|
|
|
7625 |
|
|
# then check for a private Itk library
|
7626 |
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
7627 |
|
|
for i in \
|
7628 |
|
|
../itcl/itk \
|
7629 |
|
|
`ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
|
7630 |
|
|
../../itk \
|
7631 |
|
|
`ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
|
7632 |
|
|
../../../itk \
|
7633 |
|
|
`ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
|
7634 |
|
|
if test -f "$i/itkConfig.sh" ; then
|
7635 |
|
|
ac_cv_c_itkconfig=`(cd $i; pwd)`
|
7636 |
|
|
break
|
7637 |
|
|
fi
|
7638 |
|
|
done
|
7639 |
|
|
fi
|
7640 |
|
|
# check in a few common install locations
|
7641 |
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
7642 |
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
7643 |
|
|
if test -f "$i/itkConfig.sh" ; then
|
7644 |
|
|
ac_cv_c_itkconfig=`(cd $i; pwd)`
|
7645 |
|
|
break
|
7646 |
|
|
fi
|
7647 |
|
|
done
|
7648 |
|
|
fi
|
7649 |
|
|
# check in a few other private locations
|
7650 |
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
7651 |
|
|
for i in \
|
7652 |
|
|
${srcdir}/../itcl/itk \
|
7653 |
|
|
`ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
|
7654 |
|
|
if test -f "$i/itkConfig.sh" ; then
|
7655 |
|
|
ac_cv_c_itkconfig=`(cd $i; pwd)`
|
7656 |
|
|
break
|
7657 |
|
|
fi
|
7658 |
|
|
done
|
7659 |
|
|
fi
|
7660 |
|
|
|
7661 |
|
|
fi
|
7662 |
|
|
|
7663 |
|
|
if test x"${ac_cv_c_itkconfig}" = x ; then
|
7664 |
|
|
ITKCONFIG="# no Itk configs found"
|
7665 |
|
|
echo "configure: warning: Can't find Itk configuration definitions" 1>&2
|
7666 |
|
|
else
|
7667 |
|
|
no_itk=
|
7668 |
|
|
ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
|
7669 |
|
|
echo "$ac_t""found $ITKCONFIG" 1>&6
|
7670 |
|
|
fi
|
7671 |
|
|
fi
|
7672 |
|
|
|
7673 |
|
|
|
7674 |
|
|
if test -z "${no_itcl}"; then
|
7675 |
|
|
|
7676 |
|
|
if test -f "$ITKCONFIG" ; then
|
7677 |
|
|
. $ITKCONFIG
|
7678 |
|
|
fi
|
7679 |
|
|
|
7680 |
|
|
|
7681 |
|
|
|
7682 |
|
|
|
7683 |
|
|
|
7684 |
|
|
|
7685 |
|
|
|
7686 |
|
|
|
7687 |
|
|
|
7688 |
|
|
|
7689 |
|
|
|
7690 |
|
|
|
7691 |
|
|
case "${host}" in
|
7692 |
|
|
*-*-cygwin*)
|
7693 |
|
|
itkdir=../itcl/itk/win/
|
7694 |
|
|
;;
|
7695 |
|
|
*)
|
7696 |
|
|
itkdir=../itcl/itk/unix/
|
7697 |
|
|
;;
|
7698 |
|
|
esac
|
7699 |
|
|
|
7700 |
|
|
ITKLIB="${ITK_BUILD_LIB_SPEC}"
|
7701 |
|
|
ITK_DEPS="${itkdir}${ITK_LIB_FILE}"
|
7702 |
|
|
fi
|
7703 |
|
|
|
7704 |
|
|
# now look for Tix library stuff
|
7705 |
|
|
|
7706 |
|
|
#
|
7707 |
|
|
# Ok, lets find the tix configuration
|
7708 |
|
|
# First, look for one uninstalled.
|
7709 |
|
|
# the alternative search directory is invoked by --with-itkconfig
|
7710 |
|
|
#
|
7711 |
|
|
|
7712 |
|
|
if test x"${no_tix}" = x ; then
|
7713 |
|
|
# we reset no_tix in case something fails here
|
7714 |
|
|
no_tix=true
|
7715 |
|
|
# Check whether --with-tixconfig or --without-tixconfig was given.
|
7716 |
|
|
if test "${with_tixconfig+set}" = set; then
|
7717 |
|
|
withval="$with_tixconfig"
|
7718 |
|
|
with_tixconfig=${withval}
|
7719 |
|
|
fi
|
7720 |
|
|
|
7721 |
|
|
echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
|
7722 |
|
|
echo "configure:7723: checking for Tix configuration" >&5
|
7723 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
|
7724 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7725 |
|
|
else
|
7726 |
|
|
|
7727 |
|
|
|
7728 |
|
|
# First check to see if --with-tixconfig was specified.
|
7729 |
|
|
if test x"${with_tixconfig}" != x ; then
|
7730 |
|
|
if test -f "${with_tixconfig}/tixConfig.sh" ; then
|
7731 |
|
|
ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
|
7732 |
|
|
else
|
7733 |
|
|
{ echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
|
7734 |
|
|
fi
|
7735 |
|
|
fi
|
7736 |
|
|
|
7737 |
|
|
# then check for a private Tix library
|
7738 |
|
|
if test x"${ac_cv_c_tixconfig}" = x ; then
|
7739 |
|
|
for i in \
|
7740 |
|
|
../tix \
|
7741 |
|
|
`ls -dr ../tix 2>/dev/null` \
|
7742 |
|
|
../../tix \
|
7743 |
|
|
`ls -dr ../../tix 2>/dev/null` \
|
7744 |
|
|
../../../tix \
|
7745 |
|
|
`ls -dr ../../../tix 2>/dev/null` ; do
|
7746 |
|
|
echo "**** Looking at $i - with ${configdir}"
|
7747 |
|
|
if test -f "$i/tixConfig.sh" ; then
|
7748 |
|
|
ac_cv_c_tixconfig=`(cd $i; pwd)`
|
7749 |
|
|
break
|
7750 |
|
|
fi
|
7751 |
|
|
done
|
7752 |
|
|
fi
|
7753 |
|
|
# check in a few common install locations
|
7754 |
|
|
if test x"${ac_cv_c_tixconfig}" = x ; then
|
7755 |
|
|
for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
|
7756 |
|
|
echo "**** Looking at $i"
|
7757 |
|
|
if test -f "$i/tixConfig.sh" ; then
|
7758 |
|
|
ac_cv_c_tixconfig=`(cd $i; pwd)`
|
7759 |
|
|
break
|
7760 |
|
|
fi
|
7761 |
|
|
done
|
7762 |
|
|
fi
|
7763 |
|
|
# check in a few other private locations
|
7764 |
|
|
echo "**** Other private locations"
|
7765 |
|
|
if test x"${ac_cv_c_tixconfig}" = x ; then
|
7766 |
|
|
for i in \
|
7767 |
|
|
${srcdir}/../tix \
|
7768 |
|
|
`ls -dr ${srcdir}/../tix 2>/dev/null` ; do
|
7769 |
|
|
echo "**** Looking at $i - with ${configdir}"
|
7770 |
|
|
if test -f "$i/${configdir}/tixConfig.sh" ; then
|
7771 |
|
|
ac_cv_c_tixconfig=`(cd $i/${configdir}; pwd)`
|
7772 |
|
|
break
|
7773 |
|
|
fi
|
7774 |
|
|
done
|
7775 |
|
|
fi
|
7776 |
|
|
|
7777 |
|
|
fi
|
7778 |
|
|
|
7779 |
|
|
if test x"${ac_cv_c_tixconfig}" = x ; then
|
7780 |
|
|
TIXCONFIG="# no Tix configs found"
|
7781 |
|
|
echo "configure: warning: Can't find Tix configuration definitions" 1>&2
|
7782 |
|
|
else
|
7783 |
|
|
no_tix=
|
7784 |
|
|
TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
|
7785 |
|
|
echo "$ac_t""found $TIXCONFIG" 1>&6
|
7786 |
|
|
fi
|
7787 |
|
|
fi
|
7788 |
|
|
|
7789 |
|
|
|
7790 |
|
|
if test -z "${no_tix}"; then
|
7791 |
|
|
|
7792 |
|
|
if test -f "$TIXCONFIG" ; then
|
7793 |
|
|
. $TIXCONFIG
|
7794 |
|
|
fi
|
7795 |
|
|
|
7796 |
|
|
|
7797 |
|
|
|
7798 |
|
|
|
7799 |
|
|
|
7800 |
|
|
|
7801 |
|
|
|
7802 |
|
|
|
7803 |
|
|
TIXLIB="${TIX_BUILD_LIB_SPEC}"
|
7804 |
|
|
TIX_DEPS="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
|
7805 |
|
|
fi
|
7806 |
|
|
|
7807 |
|
|
ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
|
7808 |
|
|
# Tcl/Tk 8.1 require -fwritable strings. I don't
|
7809 |
|
|
# know whether 8.2 will or not, but I bet it will.
|
7810 |
|
|
# I don't have to worry about 7.x since we don't support it.
|
7811 |
|
|
GDBTK_CFLAGS=""
|
7812 |
|
|
if test "$GCC" = "yes"; then
|
7813 |
|
|
if test "$TCL_VERSION" != "8.0" ; then
|
7814 |
|
|
GDBTK_CFLAGS="-fwritable-strings"
|
7815 |
|
|
fi
|
7816 |
|
|
fi
|
7817 |
|
|
|
7818 |
|
|
# Include some libraries that Tcl and Tk want.
|
7819 |
|
|
TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
|
7820 |
|
|
# Yes, the ordering seems wrong here. But it isn't.
|
7821 |
|
|
# TK_LIBS is the list of libraries that need to be linked
|
7822 |
|
|
# after Tcl/Tk. Note that this isn't put into LIBS. If it
|
7823 |
|
|
# were in LIBS then any link tests after this point would
|
7824 |
|
|
# try to include things like `$(LIBGUI)', which wouldn't work.
|
7825 |
|
|
GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
|
7826 |
|
|
|
7827 |
|
|
CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
|
7828 |
|
|
CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
|
7829 |
|
|
CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
|
7830 |
|
|
CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
|
7831 |
|
|
CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
|
7832 |
|
|
CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
|
7833 |
|
|
CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
|
7834 |
|
|
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
|
7835 |
|
|
|
7836 |
|
|
if test x$gdb_cv_os_cygwin = xyes; then
|
7837 |
|
|
WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
|
7838 |
|
|
WIN32LDAPP="-Wl,--subsystem,console"
|
7839 |
|
|
CONFIG_OBS="${CONFIG_OBS} gdbres.o"
|
7840 |
|
|
fi
|
7841 |
|
|
fi
|
7842 |
|
|
fi
|
7843 |
|
|
fi
|
7844 |
|
|
|
7845 |
|
|
|
7846 |
|
|
|
7847 |
|
|
|
7848 |
|
|
|
7849 |
|
|
|
7850 |
|
|
|
7851 |
|
|
|
7852 |
|
|
|
7853 |
|
|
|
7854 |
|
|
|
7855 |
|
|
|
7856 |
|
|
|
7857 |
|
|
# If we find X, set shell vars x_includes and x_libraries to the
|
7858 |
|
|
# paths, otherwise set no_x=yes.
|
7859 |
|
|
# Uses ac_ vars as temps to allow command line to override cache and checks.
|
7860 |
|
|
# --without-x overrides everything else, but does not touch the cache.
|
7861 |
|
|
echo $ac_n "checking for X""... $ac_c" 1>&6
|
7862 |
|
|
echo "configure:7863: checking for X" >&5
|
7863 |
|
|
|
7864 |
|
|
# Check whether --with-x or --without-x was given.
|
7865 |
|
|
if test "${with_x+set}" = set; then
|
7866 |
|
|
withval="$with_x"
|
7867 |
|
|
:
|
7868 |
|
|
fi
|
7869 |
|
|
|
7870 |
|
|
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
7871 |
|
|
if test "x$with_x" = xno; then
|
7872 |
|
|
# The user explicitly disabled X.
|
7873 |
|
|
have_x=disabled
|
7874 |
|
|
else
|
7875 |
|
|
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
7876 |
|
|
# Both variables are already set.
|
7877 |
|
|
have_x=yes
|
7878 |
|
|
else
|
7879 |
|
|
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
|
7880 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
7881 |
|
|
else
|
7882 |
|
|
# One or both of the vars are not set, and there is no cached value.
|
7883 |
|
|
ac_x_includes=NO ac_x_libraries=NO
|
7884 |
|
|
rm -fr conftestdir
|
7885 |
|
|
if mkdir conftestdir; then
|
7886 |
|
|
cd conftestdir
|
7887 |
|
|
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
7888 |
|
|
cat > Imakefile <<'EOF'
|
7889 |
|
|
acfindx:
|
7890 |
|
|
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
7891 |
|
|
EOF
|
7892 |
|
|
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
7893 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
7894 |
|
|
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
7895 |
|
|
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
7896 |
|
|
for ac_extension in a so sl; do
|
7897 |
|
|
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
7898 |
|
|
test -f $ac_im_libdir/libX11.$ac_extension; then
|
7899 |
|
|
ac_im_usrlibdir=$ac_im_libdir; break
|
7900 |
|
|
fi
|
7901 |
|
|
done
|
7902 |
|
|
# Screen out bogus values from the imake configuration. They are
|
7903 |
|
|
# bogus both because they are the default anyway, and because
|
7904 |
|
|
# using them would break gcc on systems where it needs fixed includes.
|
7905 |
|
|
case "$ac_im_incroot" in
|
7906 |
|
|
/usr/include) ;;
|
7907 |
|
|
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
7908 |
|
|
esac
|
7909 |
|
|
case "$ac_im_usrlibdir" in
|
7910 |
|
|
/usr/lib | /lib) ;;
|
7911 |
|
|
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
7912 |
|
|
esac
|
7913 |
|
|
fi
|
7914 |
|
|
cd ..
|
7915 |
|
|
rm -fr conftestdir
|
7916 |
|
|
fi
|
7917 |
|
|
|
7918 |
|
|
if test "$ac_x_includes" = NO; then
|
7919 |
|
|
# Guess where to find include files, by looking for this one X11 .h file.
|
7920 |
|
|
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
7921 |
|
|
|
7922 |
|
|
# First, try using that file with no special directory specified.
|
7923 |
|
|
cat > conftest.$ac_ext <
|
7924 |
|
|
#line 7925 "configure"
|
7925 |
|
|
#include "confdefs.h"
|
7926 |
|
|
#include <$x_direct_test_include>
|
7927 |
|
|
EOF
|
7928 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
7929 |
|
|
{ (eval echo configure:7930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
7930 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
7931 |
|
|
if test -z "$ac_err"; then
|
7932 |
|
|
rm -rf conftest*
|
7933 |
|
|
# We can compile using X headers with no special include directory.
|
7934 |
|
|
ac_x_includes=
|
7935 |
|
|
else
|
7936 |
|
|
echo "$ac_err" >&5
|
7937 |
|
|
echo "configure: failed program was:" >&5
|
7938 |
|
|
cat conftest.$ac_ext >&5
|
7939 |
|
|
rm -rf conftest*
|
7940 |
|
|
# Look for the header file in a standard set of common directories.
|
7941 |
|
|
# Check X11 before X11Rn because it is often a symlink to the current release.
|
7942 |
|
|
for ac_dir in \
|
7943 |
|
|
/usr/X11/include \
|
7944 |
|
|
/usr/X11R6/include \
|
7945 |
|
|
/usr/X11R5/include \
|
7946 |
|
|
/usr/X11R4/include \
|
7947 |
|
|
\
|
7948 |
|
|
/usr/include/X11 \
|
7949 |
|
|
/usr/include/X11R6 \
|
7950 |
|
|
/usr/include/X11R5 \
|
7951 |
|
|
/usr/include/X11R4 \
|
7952 |
|
|
\
|
7953 |
|
|
/usr/local/X11/include \
|
7954 |
|
|
/usr/local/X11R6/include \
|
7955 |
|
|
/usr/local/X11R5/include \
|
7956 |
|
|
/usr/local/X11R4/include \
|
7957 |
|
|
\
|
7958 |
|
|
/usr/local/include/X11 \
|
7959 |
|
|
/usr/local/include/X11R6 \
|
7960 |
|
|
/usr/local/include/X11R5 \
|
7961 |
|
|
/usr/local/include/X11R4 \
|
7962 |
|
|
\
|
7963 |
|
|
/usr/X386/include \
|
7964 |
|
|
/usr/x386/include \
|
7965 |
|
|
/usr/XFree86/include/X11 \
|
7966 |
|
|
\
|
7967 |
|
|
/usr/include \
|
7968 |
|
|
/usr/local/include \
|
7969 |
|
|
/usr/unsupported/include \
|
7970 |
|
|
/usr/athena/include \
|
7971 |
|
|
/usr/local/x11r5/include \
|
7972 |
|
|
/usr/lpp/Xamples/include \
|
7973 |
|
|
\
|
7974 |
|
|
/usr/openwin/include \
|
7975 |
|
|
/usr/openwin/share/include \
|
7976 |
|
|
; \
|
7977 |
|
|
do
|
7978 |
|
|
if test -r "$ac_dir/$x_direct_test_include"; then
|
7979 |
|
|
ac_x_includes=$ac_dir
|
7980 |
|
|
break
|
7981 |
|
|
fi
|
7982 |
|
|
done
|
7983 |
|
|
fi
|
7984 |
|
|
rm -f conftest*
|
7985 |
|
|
fi # $ac_x_includes = NO
|
7986 |
|
|
|
7987 |
|
|
if test "$ac_x_libraries" = NO; then
|
7988 |
|
|
# Check for the libraries.
|
7989 |
|
|
|
7990 |
|
|
test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
7991 |
|
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
7992 |
|
|
|
7993 |
|
|
# See if we find them without any special options.
|
7994 |
|
|
# Don't add to $LIBS permanently.
|
7995 |
|
|
ac_save_LIBS="$LIBS"
|
7996 |
|
|
LIBS="-l$x_direct_test_library $LIBS"
|
7997 |
|
|
cat > conftest.$ac_ext <
|
7998 |
|
|
#line 7999 "configure"
|
7999 |
|
|
#include "confdefs.h"
|
8000 |
|
|
|
8001 |
|
|
int main() {
|
8002 |
|
|
${x_direct_test_function}()
|
8003 |
|
|
; return 0; }
|
8004 |
|
|
EOF
|
8005 |
|
|
if { (eval echo configure:8006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
8006 |
|
|
rm -rf conftest*
|
8007 |
|
|
LIBS="$ac_save_LIBS"
|
8008 |
|
|
# We can link X programs with no special library path.
|
8009 |
|
|
ac_x_libraries=
|
8010 |
|
|
else
|
8011 |
|
|
echo "configure: failed program was:" >&5
|
8012 |
|
|
cat conftest.$ac_ext >&5
|
8013 |
|
|
rm -rf conftest*
|
8014 |
|
|
LIBS="$ac_save_LIBS"
|
8015 |
|
|
# First see if replacing the include by lib works.
|
8016 |
|
|
# Check X11 before X11Rn because it is often a symlink to the current release.
|
8017 |
|
|
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
8018 |
|
|
/usr/X11/lib \
|
8019 |
|
|
/usr/X11R6/lib \
|
8020 |
|
|
/usr/X11R5/lib \
|
8021 |
|
|
/usr/X11R4/lib \
|
8022 |
|
|
\
|
8023 |
|
|
/usr/lib/X11 \
|
8024 |
|
|
/usr/lib/X11R6 \
|
8025 |
|
|
/usr/lib/X11R5 \
|
8026 |
|
|
/usr/lib/X11R4 \
|
8027 |
|
|
\
|
8028 |
|
|
/usr/local/X11/lib \
|
8029 |
|
|
/usr/local/X11R6/lib \
|
8030 |
|
|
/usr/local/X11R5/lib \
|
8031 |
|
|
/usr/local/X11R4/lib \
|
8032 |
|
|
\
|
8033 |
|
|
/usr/local/lib/X11 \
|
8034 |
|
|
/usr/local/lib/X11R6 \
|
8035 |
|
|
/usr/local/lib/X11R5 \
|
8036 |
|
|
/usr/local/lib/X11R4 \
|
8037 |
|
|
\
|
8038 |
|
|
/usr/X386/lib \
|
8039 |
|
|
/usr/x386/lib \
|
8040 |
|
|
/usr/XFree86/lib/X11 \
|
8041 |
|
|
\
|
8042 |
|
|
/usr/lib \
|
8043 |
|
|
/usr/local/lib \
|
8044 |
|
|
/usr/unsupported/lib \
|
8045 |
|
|
/usr/athena/lib \
|
8046 |
|
|
/usr/local/x11r5/lib \
|
8047 |
|
|
/usr/lpp/Xamples/lib \
|
8048 |
|
|
/lib/usr/lib/X11 \
|
8049 |
|
|
\
|
8050 |
|
|
/usr/openwin/lib \
|
8051 |
|
|
/usr/openwin/share/lib \
|
8052 |
|
|
; \
|
8053 |
|
|
do
|
8054 |
|
|
for ac_extension in a so sl; do
|
8055 |
|
|
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
8056 |
|
|
ac_x_libraries=$ac_dir
|
8057 |
|
|
break 2
|
8058 |
|
|
fi
|
8059 |
|
|
done
|
8060 |
|
|
done
|
8061 |
|
|
fi
|
8062 |
|
|
rm -f conftest*
|
8063 |
|
|
fi # $ac_x_libraries = NO
|
8064 |
|
|
|
8065 |
|
|
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
8066 |
|
|
# Didn't find X anywhere. Cache the known absence of X.
|
8067 |
|
|
ac_cv_have_x="have_x=no"
|
8068 |
|
|
else
|
8069 |
|
|
# Record where we found X for the cache.
|
8070 |
|
|
ac_cv_have_x="have_x=yes \
|
8071 |
|
|
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
8072 |
|
|
fi
|
8073 |
|
|
fi
|
8074 |
|
|
fi
|
8075 |
|
|
eval "$ac_cv_have_x"
|
8076 |
|
|
fi # $with_x != no
|
8077 |
|
|
|
8078 |
|
|
if test "$have_x" != yes; then
|
8079 |
|
|
echo "$ac_t""$have_x" 1>&6
|
8080 |
|
|
no_x=yes
|
8081 |
|
|
else
|
8082 |
|
|
# If each of the values was on the command line, it overrides each guess.
|
8083 |
|
|
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
8084 |
|
|
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
8085 |
|
|
# Update the cache value to reflect the command line values.
|
8086 |
|
|
ac_cv_have_x="have_x=yes \
|
8087 |
|
|
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
8088 |
|
|
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
8089 |
|
|
fi
|
8090 |
|
|
|
8091 |
|
|
|
8092 |
|
|
|
8093 |
|
|
# Unlike the sim directory, whether a simulator is linked is controlled by
|
8094 |
|
|
# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
|
8095 |
|
|
# This code just checks for a few cases where we'd like to ignore those
|
8096 |
|
|
# definitions, even when they're present in the '.mt' file. These cases
|
8097 |
|
|
# are when --disable-sim is specified, or if the simulator directory is
|
8098 |
|
|
# not part of the source tree.
|
8099 |
|
|
#
|
8100 |
|
|
# Check whether --enable-sim or --disable-sim was given.
|
8101 |
|
|
if test "${enable_sim+set}" = set; then
|
8102 |
|
|
enableval="$enable_sim"
|
8103 |
|
|
echo "enable_sim = $enable_sim";
|
8104 |
|
|
echo "enableval = ${enableval}";
|
8105 |
|
|
case "${enableval}" in
|
8106 |
|
|
yes) ignore_sim=false ;;
|
8107 |
|
|
no) ignore_sim=true ;;
|
8108 |
|
|
*) ignore_sim=false ;;
|
8109 |
|
|
esac
|
8110 |
|
|
else
|
8111 |
|
|
ignore_sim=false
|
8112 |
|
|
fi
|
8113 |
|
|
|
8114 |
|
|
|
8115 |
|
|
if test ! -d "${srcdir}/../sim"; then
|
8116 |
|
|
ignore_sim=true
|
8117 |
|
|
fi
|
8118 |
|
|
|
8119 |
|
|
if test "${ignore_sim}" = "true"; then
|
8120 |
|
|
IGNORE_SIM="SIM="
|
8121 |
|
|
IGNORE_SIM_OBS="SIM_OBS="
|
8122 |
|
|
else
|
8123 |
|
|
IGNORE_SIM=""
|
8124 |
|
|
IGNORE_SIM_OBS=""
|
8125 |
|
|
cat >> confdefs.h <<\EOF
|
8126 |
|
|
#define WITH_SIM 1
|
8127 |
|
|
EOF
|
8128 |
|
|
|
8129 |
|
|
fi
|
8130 |
|
|
|
8131 |
|
|
|
8132 |
|
|
|
8133 |
|
|
|
8134 |
|
|
|
8135 |
|
|
|
8136 |
|
|
|
8137 |
|
|
|
8138 |
|
|
|
8139 |
|
|
|
8140 |
|
|
|
8141 |
|
|
|
8142 |
|
|
|
8143 |
|
|
|
8144 |
|
|
|
8145 |
|
|
# Begin stuff to support --enable-shared
|
8146 |
|
|
# Check whether --enable-shared or --disable-shared was given.
|
8147 |
|
|
if test "${enable_shared+set}" = set; then
|
8148 |
|
|
enableval="$enable_shared"
|
8149 |
|
|
case "${enableval}" in
|
8150 |
|
|
yes) shared=true ;;
|
8151 |
|
|
no) shared=false ;;
|
8152 |
|
|
*) shared=true ;;
|
8153 |
|
|
esac
|
8154 |
|
|
fi
|
8155 |
|
|
|
8156 |
|
|
HLDFLAGS=
|
8157 |
|
|
HLDENV=
|
8158 |
|
|
# If we have shared libraries, try to set rpath reasonably.
|
8159 |
|
|
if test "${shared}" = "true"; then
|
8160 |
|
|
case "${host}" in
|
8161 |
|
|
*-*-hpux*)
|
8162 |
|
|
HLDFLAGS='-Wl,+s,+b,$(libdir)'
|
8163 |
|
|
;;
|
8164 |
|
|
*-*-irix5* | *-*-irix6*)
|
8165 |
|
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
8166 |
|
|
;;
|
8167 |
|
|
*-*-linux*aout*)
|
8168 |
|
|
;;
|
8169 |
|
|
*-*-linux* | *-pc-linux-gnu*)
|
8170 |
|
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
8171 |
|
|
;;
|
8172 |
|
|
*-*-solaris*)
|
8173 |
|
|
HLDFLAGS='-R $(libdir)'
|
8174 |
|
|
;;
|
8175 |
|
|
*-*-sysv4*)
|
8176 |
|
|
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;'
|
8177 |
|
|
;;
|
8178 |
|
|
esac
|
8179 |
|
|
fi
|
8180 |
|
|
|
8181 |
|
|
# On SunOS, if the linker supports the -rpath option, use it to
|
8182 |
|
|
# prevent ../bfd and ../opcodes from being included in the run time
|
8183 |
|
|
# search path.
|
8184 |
|
|
case "${host}" in
|
8185 |
|
|
*-*-sunos*)
|
8186 |
|
|
echo 'main () { }' > conftest.c
|
8187 |
|
|
${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
|
8188 |
|
|
if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
|
8189 |
|
|
:
|
8190 |
|
|
elif grep 'No such file' conftest.t >/dev/null 2>&1; then
|
8191 |
|
|
:
|
8192 |
|
|
elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
|
8193 |
|
|
:
|
8194 |
|
|
elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
|
8195 |
|
|
:
|
8196 |
|
|
elif test "${shared}" = "true"; then
|
8197 |
|
|
HLDFLAGS='-Wl,-rpath=$(libdir)'
|
8198 |
|
|
else
|
8199 |
|
|
HLDFLAGS='-Wl,-rpath='
|
8200 |
|
|
fi
|
8201 |
|
|
rm -f conftest.t conftest.c conftest
|
8202 |
|
|
;;
|
8203 |
|
|
esac
|
8204 |
|
|
|
8205 |
|
|
|
8206 |
|
|
# End stuff to support --enable-shared
|
8207 |
|
|
|
8208 |
|
|
# target_subdir is used by the testsuite to find the target libraries.
|
8209 |
|
|
target_subdir=
|
8210 |
|
|
if test "${host}" != "${target}"; then
|
8211 |
|
|
target_subdir="${target_alias}/"
|
8212 |
|
|
fi
|
8213 |
|
|
|
8214 |
|
|
|
8215 |
|
|
frags=
|
8216 |
|
|
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
|
8217 |
|
|
if test ! -f ${host_makefile_frag}; then
|
8218 |
|
|
{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
|
8219 |
|
|
fi
|
8220 |
|
|
frags="$frags $host_makefile_frag"
|
8221 |
|
|
|
8222 |
|
|
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
|
8223 |
|
|
if test ! -f ${target_makefile_frag}; then
|
8224 |
|
|
{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
|
8225 |
|
|
fi
|
8226 |
|
|
frags="$frags $target_makefile_frag"
|
8227 |
|
|
|
8228 |
|
|
|
8229 |
|
|
|
8230 |
|
|
|
8231 |
|
|
|
8232 |
|
|
hostfile=`sed -n '
|
8233 |
|
|
s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
8234 |
|
|
' ${host_makefile_frag}`
|
8235 |
|
|
|
8236 |
|
|
targetfile=`sed -n '
|
8237 |
|
|
s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
8238 |
|
|
' ${target_makefile_frag}`
|
8239 |
|
|
|
8240 |
|
|
GDB_MULTI_ARCH=`sed -n '
|
8241 |
|
|
s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
|
8242 |
|
|
' ${target_makefile_frag}`
|
8243 |
|
|
|
8244 |
|
|
# these really aren't orthogonal true/false values of the same condition,
|
8245 |
|
|
# but shells are slow enough that I like to reuse the test conditions
|
8246 |
|
|
# whenever possible
|
8247 |
|
|
if test "${target}" = "${host}"; then
|
8248 |
|
|
nativefile=`sed -n '
|
8249 |
|
|
s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
|
8250 |
|
|
' ${host_makefile_frag}`
|
8251 |
|
|
# else
|
8252 |
|
|
# GDBserver is only useful in a "native" environment
|
8253 |
|
|
# configdirs=`echo $configdirs | sed 's/gdbserver//'`
|
8254 |
|
|
fi
|
8255 |
|
|
|
8256 |
|
|
|
8257 |
|
|
# New targets should just set gdb_multi_arch=yes in configure.tgt.
|
8258 |
|
|
# Old targets being converted can either do that or set GDB_MULTI_ARCH
|
8259 |
|
|
# in the target specific makefile frag. Eventually gdb_multi_arch=yes
|
8260 |
|
|
# will be the default.
|
8261 |
|
|
if test x"${GDB_MULTI_ARCH}" = x ; then
|
8262 |
|
|
case "${gdb_multi_arch}" in
|
8263 |
|
|
yes ) GDB_MULTI_ARCH=GDB_MULTI_ARCH_PURE ;;
|
8264 |
|
|
no ) GDB_MULTI_ARCH=0 ;;
|
8265 |
|
|
0|1|2 ) GDB_MULTI_ARCH=${gdb_multi_arch} ;;
|
8266 |
|
|
esac
|
8267 |
|
|
fi
|
8268 |
|
|
if test x"${GDB_MULTI_ARCH}" != x ; then
|
8269 |
|
|
cat >> confdefs.h <
|
8270 |
|
|
#define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
|
8271 |
|
|
EOF
|
8272 |
|
|
|
8273 |
|
|
fi
|
8274 |
|
|
# Warn the user when they use an old practice
|
8275 |
|
|
case "${GDB_MULTI_ARCH}" in
|
8276 |
|
|
"" ) ;;
|
8277 |
|
|
|
8278 |
|
|
echo "configure: warning: "GDB: Target is not pure multi-arch"" 1>&2 ;;
|
8279 |
|
|
GDB_MULTI_ARCH_PURE )
|
8280 |
|
|
if test x"${targetfile}" != x ; then
|
8281 |
|
|
echo "configure: warning: "GDB: Ignoring TM_FILE in ${target_makefile_frag}"" 1>&2
|
8282 |
|
|
targetfile=""
|
8283 |
|
|
fi ;;
|
8284 |
|
|
*) { echo "configure: error: "GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
|
8285 |
|
|
esac
|
8286 |
|
|
|
8287 |
|
|
|
8288 |
|
|
SUBDIRS="doc testsuite nlm"
|
8289 |
|
|
if test "${enable_multi_ice}" = "yes"; then
|
8290 |
|
|
SUBDIRS="${SUBDIRS} multi-ice"
|
8291 |
|
|
fi
|
8292 |
|
|
|
8293 |
|
|
|
8294 |
|
|
|
8295 |
|
|
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
|
8296 |
|
|
# (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
|
8297 |
|
|
# version.
|
8298 |
|
|
|
8299 |
|
|
files=
|
8300 |
|
|
links=
|
8301 |
|
|
|
8302 |
|
|
rm -f xm.h
|
8303 |
|
|
xm_h=""
|
8304 |
|
|
if test "${hostfile}" != ""; then
|
8305 |
|
|
xm_h=xm.h
|
8306 |
|
|
GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
|
8307 |
|
|
files="${files} ${GDB_XM_FILE}"
|
8308 |
|
|
links="${links} xm.h"
|
8309 |
|
|
cat >> confdefs.h <
|
8310 |
|
|
#define GDB_XM_FILE ${GDB_XM_FILE}
|
8311 |
|
|
EOF
|
8312 |
|
|
|
8313 |
|
|
fi
|
8314 |
|
|
|
8315 |
|
|
|
8316 |
|
|
rm -f tm.h
|
8317 |
|
|
tm_h=""
|
8318 |
|
|
if test "${targetfile}" != ""; then
|
8319 |
|
|
tm_h=tm.h
|
8320 |
|
|
GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
|
8321 |
|
|
files="${files} ${GDB_TM_FILE}"
|
8322 |
|
|
links="${links} tm.h"
|
8323 |
|
|
cat >> confdefs.h <
|
8324 |
|
|
#define GDB_TM_FILE ${GDB_TM_FILE}
|
8325 |
|
|
EOF
|
8326 |
|
|
|
8327 |
|
|
fi
|
8328 |
|
|
|
8329 |
|
|
|
8330 |
|
|
rm -f nm.h
|
8331 |
|
|
nm_h=""
|
8332 |
|
|
if test "${nativefile}" != ""; then
|
8333 |
|
|
nm_h=nm.h
|
8334 |
|
|
GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
|
8335 |
|
|
files="${files} ${GDB_NM_FILE}"
|
8336 |
|
|
links="${links} nm.h"
|
8337 |
|
|
cat >> confdefs.h <
|
8338 |
|
|
#define GDB_NM_FILE ${GDB_NM_FILE}
|
8339 |
|
|
EOF
|
8340 |
|
|
|
8341 |
|
|
fi
|
8342 |
|
|
|
8343 |
|
|
|
8344 |
|
|
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
8345 |
|
|
echo "configure:8346: checking whether ln -s works" >&5
|
8346 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
8347 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
8348 |
|
|
else
|
8349 |
|
|
rm -f conftestdata
|
8350 |
|
|
if ln -s X conftestdata 2>/dev/null
|
8351 |
|
|
then
|
8352 |
|
|
rm -f conftestdata
|
8353 |
|
|
ac_cv_prog_LN_S="ln -s"
|
8354 |
|
|
else
|
8355 |
|
|
ac_cv_prog_LN_S=ln
|
8356 |
|
|
fi
|
8357 |
|
|
fi
|
8358 |
|
|
LN_S="$ac_cv_prog_LN_S"
|
8359 |
|
|
if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
8360 |
|
|
echo "$ac_t""yes" 1>&6
|
8361 |
|
|
else
|
8362 |
|
|
echo "$ac_t""no" 1>&6
|
8363 |
|
|
fi
|
8364 |
|
|
|
8365 |
|
|
|
8366 |
|
|
|
8367 |
|
|
|
8368 |
|
|
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
8369 |
|
|
echo "configure:8370: checking for Cygwin environment" >&5
|
8370 |
|
|
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
8371 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
8372 |
|
|
else
|
8373 |
|
|
cat > conftest.$ac_ext <
|
8374 |
|
|
#line 8375 "configure"
|
8375 |
|
|
#include "confdefs.h"
|
8376 |
|
|
|
8377 |
|
|
int main() {
|
8378 |
|
|
|
8379 |
|
|
#ifndef __CYGWIN__
|
8380 |
|
|
#define __CYGWIN__ __CYGWIN32__
|
8381 |
|
|
#endif
|
8382 |
|
|
return __CYGWIN__;
|
8383 |
|
|
; return 0; }
|
8384 |
|
|
EOF
|
8385 |
|
|
if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
8386 |
|
|
rm -rf conftest*
|
8387 |
|
|
ac_cv_cygwin=yes
|
8388 |
|
|
else
|
8389 |
|
|
echo "configure: failed program was:" >&5
|
8390 |
|
|
cat conftest.$ac_ext >&5
|
8391 |
|
|
rm -rf conftest*
|
8392 |
|
|
ac_cv_cygwin=no
|
8393 |
|
|
fi
|
8394 |
|
|
rm -f conftest*
|
8395 |
|
|
rm -f conftest*
|
8396 |
|
|
fi
|
8397 |
|
|
|
8398 |
|
|
echo "$ac_t""$ac_cv_cygwin" 1>&6
|
8399 |
|
|
CYGWIN=
|
8400 |
|
|
test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
8401 |
|
|
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
8402 |
|
|
echo "configure:8403: checking for mingw32 environment" >&5
|
8403 |
|
|
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
8404 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
8405 |
|
|
else
|
8406 |
|
|
cat > conftest.$ac_ext <
|
8407 |
|
|
#line 8408 "configure"
|
8408 |
|
|
#include "confdefs.h"
|
8409 |
|
|
|
8410 |
|
|
int main() {
|
8411 |
|
|
return __MINGW32__;
|
8412 |
|
|
; return 0; }
|
8413 |
|
|
EOF
|
8414 |
|
|
if { (eval echo configure:8415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
8415 |
|
|
rm -rf conftest*
|
8416 |
|
|
ac_cv_mingw32=yes
|
8417 |
|
|
else
|
8418 |
|
|
echo "configure: failed program was:" >&5
|
8419 |
|
|
cat conftest.$ac_ext >&5
|
8420 |
|
|
rm -rf conftest*
|
8421 |
|
|
ac_cv_mingw32=no
|
8422 |
|
|
fi
|
8423 |
|
|
rm -f conftest*
|
8424 |
|
|
rm -f conftest*
|
8425 |
|
|
fi
|
8426 |
|
|
|
8427 |
|
|
echo "$ac_t""$ac_cv_mingw32" 1>&6
|
8428 |
|
|
MINGW32=
|
8429 |
|
|
test "$ac_cv_mingw32" = yes && MINGW32=yes
|
8430 |
|
|
|
8431 |
|
|
|
8432 |
|
|
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
8433 |
|
|
echo "configure:8434: checking for executable suffix" >&5
|
8434 |
|
|
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
8435 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
8436 |
|
|
else
|
8437 |
|
|
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
8438 |
|
|
ac_cv_exeext=.exe
|
8439 |
|
|
else
|
8440 |
|
|
rm -f conftest*
|
8441 |
|
|
echo 'int main () { return 0; }' > conftest.$ac_ext
|
8442 |
|
|
ac_cv_exeext=
|
8443 |
|
|
if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
8444 |
|
|
for file in conftest.*; do
|
8445 |
|
|
case $file in
|
8446 |
|
|
*.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
8447 |
|
|
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
8448 |
|
|
esac
|
8449 |
|
|
done
|
8450 |
|
|
else
|
8451 |
|
|
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
8452 |
|
|
fi
|
8453 |
|
|
rm -f conftest*
|
8454 |
|
|
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
8455 |
|
|
fi
|
8456 |
|
|
fi
|
8457 |
|
|
|
8458 |
|
|
EXEEXT=""
|
8459 |
|
|
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
8460 |
|
|
echo "$ac_t""${ac_cv_exeext}" 1>&6
|
8461 |
|
|
ac_exeext=$EXEEXT
|
8462 |
|
|
|
8463 |
|
|
|
8464 |
|
|
subdirs="$configdirs"
|
8465 |
|
|
|
8466 |
|
|
trap '' 1 2 15
|
8467 |
|
|
cat > confcache <<\EOF
|
8468 |
|
|
# This file is a shell script that caches the results of configure
|
8469 |
|
|
# tests run on this system so they can be shared between configure
|
8470 |
|
|
# scripts and configure runs. It is not useful on other systems.
|
8471 |
|
|
# If it contains results you don't want to keep, you may remove or edit it.
|
8472 |
|
|
#
|
8473 |
|
|
# By default, configure uses ./config.cache as the cache file,
|
8474 |
|
|
# creating it if it does not exist already. You can give configure
|
8475 |
|
|
# the --cache-file=FILE option to use a different cache file; that is
|
8476 |
|
|
# what configure does when it calls configure scripts in
|
8477 |
|
|
# subdirectories, so they share the cache.
|
8478 |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
8479 |
|
|
# config.status only pays attention to the cache file if you give it the
|
8480 |
|
|
# --recheck option to rerun configure.
|
8481 |
|
|
#
|
8482 |
|
|
EOF
|
8483 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
8484 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
8485 |
|
|
# So, don't put newlines in cache variables' values.
|
8486 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
8487 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
8488 |
|
|
(set) 2>&1 |
|
8489 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
8490 |
|
|
*ac_space=\ *)
|
8491 |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
8492 |
|
|
# turns \\\\ into \\, and sed turns \\ into \).
|
8493 |
|
|
sed -n \
|
8494 |
|
|
-e "s/'/'\\\\''/g" \
|
8495 |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
8496 |
|
|
;;
|
8497 |
|
|
*)
|
8498 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
8499 |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
8500 |
|
|
;;
|
8501 |
|
|
esac >> confcache
|
8502 |
|
|
if cmp -s $cache_file confcache; then
|
8503 |
|
|
:
|
8504 |
|
|
else
|
8505 |
|
|
if test -w $cache_file; then
|
8506 |
|
|
echo "updating cache $cache_file"
|
8507 |
|
|
cat confcache > $cache_file
|
8508 |
|
|
else
|
8509 |
|
|
echo "not updating unwritable cache $cache_file"
|
8510 |
|
|
fi
|
8511 |
|
|
fi
|
8512 |
|
|
rm -f confcache
|
8513 |
|
|
|
8514 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
8515 |
|
|
|
8516 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
8517 |
|
|
# Let make expand exec_prefix.
|
8518 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
8519 |
|
|
|
8520 |
|
|
# Any assignment to VPATH causes Sun make to only execute
|
8521 |
|
|
# the first set of double-colon rules, so remove it if not needed.
|
8522 |
|
|
# If there is a colon in the path, we need to keep it.
|
8523 |
|
|
if test "x$srcdir" = x.; then
|
8524 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
8525 |
|
|
fi
|
8526 |
|
|
|
8527 |
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
8528 |
|
|
|
8529 |
|
|
DEFS=-DHAVE_CONFIG_H
|
8530 |
|
|
|
8531 |
|
|
# Without the "./", some shells look in PATH for config.status.
|
8532 |
|
|
: ${CONFIG_STATUS=./config.status}
|
8533 |
|
|
|
8534 |
|
|
echo creating $CONFIG_STATUS
|
8535 |
|
|
rm -f $CONFIG_STATUS
|
8536 |
|
|
cat > $CONFIG_STATUS <
|
8537 |
|
|
#! /bin/sh
|
8538 |
|
|
# Generated automatically by configure.
|
8539 |
|
|
# Run this file to recreate the current configuration.
|
8540 |
|
|
# This directory was configured as follows,
|
8541 |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
8542 |
|
|
#
|
8543 |
|
|
# $0 $ac_configure_args
|
8544 |
|
|
#
|
8545 |
|
|
# Compiler output produced by configure, useful for debugging
|
8546 |
|
|
# configure, is in ./config.log if it exists.
|
8547 |
|
|
|
8548 |
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
8549 |
|
|
for ac_option
|
8550 |
|
|
do
|
8551 |
|
|
case "\$ac_option" in
|
8552 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
8553 |
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
8554 |
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
8555 |
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
8556 |
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
8557 |
|
|
exit 0 ;;
|
8558 |
|
|
-help | --help | --hel | --he | --h)
|
8559 |
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
8560 |
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
8561 |
|
|
esac
|
8562 |
|
|
done
|
8563 |
|
|
|
8564 |
|
|
ac_given_srcdir=$srcdir
|
8565 |
|
|
ac_given_INSTALL="$INSTALL"
|
8566 |
|
|
|
8567 |
|
|
trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
8568 |
|
|
EOF
|
8569 |
|
|
cat >> $CONFIG_STATUS <
|
8570 |
|
|
|
8571 |
|
|
# Protect against being on the right side of a sed subst in config.status.
|
8572 |
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
8573 |
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
8574 |
|
|
$ac_vpsub
|
8575 |
|
|
$extrasub
|
8576 |
|
|
s%@SHELL@%$SHELL%g
|
8577 |
|
|
s%@CFLAGS@%$CFLAGS%g
|
8578 |
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
8579 |
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
8580 |
|
|
s%@FFLAGS@%$FFLAGS%g
|
8581 |
|
|
s%@DEFS@%$DEFS%g
|
8582 |
|
|
s%@LDFLAGS@%$LDFLAGS%g
|
8583 |
|
|
s%@LIBS@%$LIBS%g
|
8584 |
|
|
s%@exec_prefix@%$exec_prefix%g
|
8585 |
|
|
s%@prefix@%$prefix%g
|
8586 |
|
|
s%@program_transform_name@%$program_transform_name%g
|
8587 |
|
|
s%@bindir@%$bindir%g
|
8588 |
|
|
s%@sbindir@%$sbindir%g
|
8589 |
|
|
s%@libexecdir@%$libexecdir%g
|
8590 |
|
|
s%@datadir@%$datadir%g
|
8591 |
|
|
s%@sysconfdir@%$sysconfdir%g
|
8592 |
|
|
s%@sharedstatedir@%$sharedstatedir%g
|
8593 |
|
|
s%@localstatedir@%$localstatedir%g
|
8594 |
|
|
s%@libdir@%$libdir%g
|
8595 |
|
|
s%@includedir@%$includedir%g
|
8596 |
|
|
s%@oldincludedir@%$oldincludedir%g
|
8597 |
|
|
s%@infodir@%$infodir%g
|
8598 |
|
|
s%@mandir@%$mandir%g
|
8599 |
|
|
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
8600 |
|
|
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
8601 |
|
|
s%@MAINT@%$MAINT%g
|
8602 |
|
|
s%@CC@%$CC%g
|
8603 |
|
|
s%@CPP@%$CPP%g
|
8604 |
|
|
s%@host@%$host%g
|
8605 |
|
|
s%@host_alias@%$host_alias%g
|
8606 |
|
|
s%@host_cpu@%$host_cpu%g
|
8607 |
|
|
s%@host_vendor@%$host_vendor%g
|
8608 |
|
|
s%@host_os@%$host_os%g
|
8609 |
|
|
s%@target@%$target%g
|
8610 |
|
|
s%@target_alias@%$target_alias%g
|
8611 |
|
|
s%@target_cpu@%$target_cpu%g
|
8612 |
|
|
s%@target_vendor@%$target_vendor%g
|
8613 |
|
|
s%@target_os@%$target_os%g
|
8614 |
|
|
s%@build@%$build%g
|
8615 |
|
|
s%@build_alias@%$build_alias%g
|
8616 |
|
|
s%@build_cpu@%$build_cpu%g
|
8617 |
|
|
s%@build_vendor@%$build_vendor%g
|
8618 |
|
|
s%@build_os@%$build_os%g
|
8619 |
|
|
s%@SET_MAKE@%$SET_MAKE%g
|
8620 |
|
|
s%@RANLIB@%$RANLIB%g
|
8621 |
|
|
s%@ALLOCA@%$ALLOCA%g
|
8622 |
|
|
s%@USE_NLS@%$USE_NLS%g
|
8623 |
|
|
s%@MSGFMT@%$MSGFMT%g
|
8624 |
|
|
s%@GMSGFMT@%$GMSGFMT%g
|
8625 |
|
|
s%@XGETTEXT@%$XGETTEXT%g
|
8626 |
|
|
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
8627 |
|
|
s%@CATALOGS@%$CATALOGS%g
|
8628 |
|
|
s%@CATOBJEXT@%$CATOBJEXT%g
|
8629 |
|
|
s%@DATADIRNAME@%$DATADIRNAME%g
|
8630 |
|
|
s%@GMOFILES@%$GMOFILES%g
|
8631 |
|
|
s%@INSTOBJEXT@%$INSTOBJEXT%g
|
8632 |
|
|
s%@INTLDEPS@%$INTLDEPS%g
|
8633 |
|
|
s%@INTLLIBS@%$INTLLIBS%g
|
8634 |
|
|
s%@INTLOBJS@%$INTLOBJS%g
|
8635 |
|
|
s%@POFILES@%$POFILES%g
|
8636 |
|
|
s%@POSUB@%$POSUB%g
|
8637 |
|
|
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
8638 |
|
|
s%@GT_NO@%$GT_NO%g
|
8639 |
|
|
s%@GT_YES@%$GT_YES%g
|
8640 |
|
|
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
8641 |
|
|
s%@l@%$l%g
|
8642 |
|
|
s%@AWK@%$AWK%g
|
8643 |
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
8644 |
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
8645 |
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
8646 |
|
|
s%@AR@%$AR%g
|
8647 |
|
|
s%@DLLTOOL@%$DLLTOOL%g
|
8648 |
|
|
s%@WINDRES@%$WINDRES%g
|
8649 |
|
|
s%@YACC@%$YACC%g
|
8650 |
|
|
s%@MIG@%$MIG%g
|
8651 |
|
|
s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
|
8652 |
|
|
s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
|
8653 |
|
|
s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
8654 |
|
|
s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
|
8655 |
|
|
s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
|
8656 |
|
|
s%@MMALLOC@%$MMALLOC%g
|
8657 |
|
|
s%@REGEX@%$REGEX%g
|
8658 |
|
|
s%@SER_HARDWIRE@%$SER_HARDWIRE%g
|
8659 |
|
|
s%@TERM_LIB@%$TERM_LIB%g
|
8660 |
|
|
s%@WIN32LIBS@%$WIN32LIBS%g
|
8661 |
|
|
s%@LIBGUI@%$LIBGUI%g
|
8662 |
|
|
s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
|
8663 |
|
|
s%@WIN32LDAPP@%$WIN32LDAPP%g
|
8664 |
|
|
s%@TCL_VERSION@%$TCL_VERSION%g
|
8665 |
|
|
s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
|
8666 |
|
|
s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
|
8667 |
|
|
s%@TCL_CC@%$TCL_CC%g
|
8668 |
|
|
s%@TCL_DEFS@%$TCL_DEFS%g
|
8669 |
|
|
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
|
8670 |
|
|
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
|
8671 |
|
|
s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
|
8672 |
|
|
s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
|
8673 |
|
|
s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
|
8674 |
|
|
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
|
8675 |
|
|
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
|
8676 |
|
|
s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
|
8677 |
|
|
s%@TCL_RANLIB@%$TCL_RANLIB%g
|
8678 |
|
|
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
|
8679 |
|
|
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
|
8680 |
|
|
s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
|
8681 |
|
|
s%@TK_VERSION@%$TK_VERSION%g
|
8682 |
|
|
s%@TK_DEFS@%$TK_DEFS%g
|
8683 |
|
|
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
|
8684 |
|
|
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
|
8685 |
|
|
s%@TK_XLIBSW@%$TK_XLIBSW%g
|
8686 |
|
|
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
|
8687 |
|
|
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
|
8688 |
|
|
s%@TCLHDIR@%$TCLHDIR%g
|
8689 |
|
|
s%@TKHDIR@%$TKHDIR%g
|
8690 |
|
|
s%@ITCLHDIR@%$ITCLHDIR%g
|
8691 |
|
|
s%@ITKHDIR@%$ITKHDIR%g
|
8692 |
|
|
s%@TIXHDIR@%$TIXHDIR%g
|
8693 |
|
|
s%@ITCL_VERSION@%$ITCL_VERSION%g
|
8694 |
|
|
s%@ITCL_DEFS@%$ITCL_DEFS%g
|
8695 |
|
|
s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
|
8696 |
|
|
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
|
8697 |
|
|
s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
|
8698 |
|
|
s%@ITK_VERSION@%$ITK_VERSION%g
|
8699 |
|
|
s%@ITK_DEFS@%$ITK_DEFS%g
|
8700 |
|
|
s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
|
8701 |
|
|
s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
|
8702 |
|
|
s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
|
8703 |
|
|
s%@TIX_VERSION@%$TIX_VERSION%g
|
8704 |
|
|
s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
|
8705 |
|
|
s%@X_CFLAGS@%$X_CFLAGS%g
|
8706 |
|
|
s%@X_LDFLAGS@%$X_LDFLAGS%g
|
8707 |
|
|
s%@X_LIBS@%$X_LIBS%g
|
8708 |
|
|
s%@ITCLLIB@%$ITCLLIB%g
|
8709 |
|
|
s%@ITCL_DEPS@%$ITCL_DEPS%g
|
8710 |
|
|
s%@ITKLIB@%$ITKLIB%g
|
8711 |
|
|
s%@ITK_DEPS@%$ITK_DEPS%g
|
8712 |
|
|
s%@TIXLIB@%$TIXLIB%g
|
8713 |
|
|
s%@TIX_DEPS@%$TIX_DEPS%g
|
8714 |
|
|
s%@GDBTKLIBS@%$GDBTKLIBS%g
|
8715 |
|
|
s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
|
8716 |
|
|
s%@IGNORE_SIM@%$IGNORE_SIM%g
|
8717 |
|
|
s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
|
8718 |
|
|
s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
|
8719 |
|
|
s%@CONFIG_OBS@%$CONFIG_OBS%g
|
8720 |
|
|
s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
|
8721 |
|
|
s%@CONFIG_DEPS@%$CONFIG_DEPS%g
|
8722 |
|
|
s%@CONFIG_SRCS@%$CONFIG_SRCS%g
|
8723 |
|
|
s%@CONFIG_INITS@%$CONFIG_INITS%g
|
8724 |
|
|
s%@CONFIG_ALL@%$CONFIG_ALL%g
|
8725 |
|
|
s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
|
8726 |
|
|
s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
|
8727 |
|
|
s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
|
8728 |
|
|
s%@HLDFLAGS@%$HLDFLAGS%g
|
8729 |
|
|
s%@HLDENV@%$HLDENV%g
|
8730 |
|
|
s%@target_subdir@%$target_subdir%g
|
8731 |
|
|
/@host_makefile_frag@/r $host_makefile_frag
|
8732 |
|
|
s%@host_makefile_frag@%%g
|
8733 |
|
|
/@target_makefile_frag@/r $target_makefile_frag
|
8734 |
|
|
s%@target_makefile_frag@%%g
|
8735 |
|
|
s%@frags@%$frags%g
|
8736 |
|
|
s%@SUBDIRS@%$SUBDIRS%g
|
8737 |
|
|
s%@xm_h@%$xm_h%g
|
8738 |
|
|
s%@tm_h@%$tm_h%g
|
8739 |
|
|
s%@nm_h@%$nm_h%g
|
8740 |
|
|
s%@LN_S@%$LN_S%g
|
8741 |
|
|
s%@EXEEXT@%$EXEEXT%g
|
8742 |
|
|
s%@subdirs@%$subdirs%g
|
8743 |
|
|
|
8744 |
|
|
CEOF
|
8745 |
|
|
EOF
|
8746 |
|
|
|
8747 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
8748 |
|
|
|
8749 |
|
|
# Split the substitutions into bite-sized pieces for seds with
|
8750 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
8751 |
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
8752 |
|
|
ac_file=1 # Number of current file.
|
8753 |
|
|
ac_beg=1 # First line for current file.
|
8754 |
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
8755 |
|
|
ac_more_lines=:
|
8756 |
|
|
ac_sed_cmds=""
|
8757 |
|
|
while $ac_more_lines; do
|
8758 |
|
|
if test $ac_beg -gt 1; then
|
8759 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
8760 |
|
|
else
|
8761 |
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
8762 |
|
|
fi
|
8763 |
|
|
if test ! -s conftest.s$ac_file; then
|
8764 |
|
|
ac_more_lines=false
|
8765 |
|
|
rm -f conftest.s$ac_file
|
8766 |
|
|
else
|
8767 |
|
|
if test -z "$ac_sed_cmds"; then
|
8768 |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
8769 |
|
|
else
|
8770 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
8771 |
|
|
fi
|
8772 |
|
|
ac_file=`expr $ac_file + 1`
|
8773 |
|
|
ac_beg=$ac_end
|
8774 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
8775 |
|
|
fi
|
8776 |
|
|
done
|
8777 |
|
|
if test -z "$ac_sed_cmds"; then
|
8778 |
|
|
ac_sed_cmds=cat
|
8779 |
|
|
fi
|
8780 |
|
|
EOF
|
8781 |
|
|
|
8782 |
|
|
cat >> $CONFIG_STATUS <
|
8783 |
|
|
|
8784 |
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
|
8785 |
|
|
EOF
|
8786 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
8787 |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
8788 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
8789 |
|
|
case "$ac_file" in
|
8790 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
8791 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
8792 |
|
|
*) ac_file_in="${ac_file}.in" ;;
|
8793 |
|
|
esac
|
8794 |
|
|
|
8795 |
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
8796 |
|
|
|
8797 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
8798 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
8799 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
8800 |
|
|
# The file is in a subdirectory.
|
8801 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
8802 |
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
8803 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
8804 |
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
8805 |
|
|
else
|
8806 |
|
|
ac_dir_suffix= ac_dots=
|
8807 |
|
|
fi
|
8808 |
|
|
|
8809 |
|
|
case "$ac_given_srcdir" in
|
8810 |
|
|
.) srcdir=.
|
8811 |
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
8812 |
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
8813 |
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
8814 |
|
|
*) # Relative path.
|
8815 |
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
8816 |
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
8817 |
|
|
esac
|
8818 |
|
|
|
8819 |
|
|
case "$ac_given_INSTALL" in
|
8820 |
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
8821 |
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
8822 |
|
|
esac
|
8823 |
|
|
|
8824 |
|
|
echo creating "$ac_file"
|
8825 |
|
|
rm -f "$ac_file"
|
8826 |
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
8827 |
|
|
case "$ac_file" in
|
8828 |
|
|
*Makefile*) ac_comsub="1i\\
|
8829 |
|
|
# $configure_input" ;;
|
8830 |
|
|
*) ac_comsub= ;;
|
8831 |
|
|
esac
|
8832 |
|
|
|
8833 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
8834 |
|
|
sed -e "$ac_comsub
|
8835 |
|
|
s%@configure_input@%$configure_input%g
|
8836 |
|
|
s%@srcdir@%$srcdir%g
|
8837 |
|
|
s%@top_srcdir@%$top_srcdir%g
|
8838 |
|
|
s%@INSTALL@%$INSTALL%g
|
8839 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
8840 |
|
|
fi; done
|
8841 |
|
|
rm -f conftest.s*
|
8842 |
|
|
|
8843 |
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
8844 |
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
8845 |
|
|
#
|
8846 |
|
|
# ac_d sets the value in "#define NAME VALUE" lines.
|
8847 |
|
|
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
8848 |
|
|
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
8849 |
|
|
ac_dC='\3'
|
8850 |
|
|
ac_dD='%g'
|
8851 |
|
|
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
8852 |
|
|
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
8853 |
|
|
ac_uB='\([ ]\)%\1#\2define\3'
|
8854 |
|
|
ac_uC=' '
|
8855 |
|
|
ac_uD='\4%g'
|
8856 |
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
8857 |
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
8858 |
|
|
ac_eB='$%\1#\2define\3'
|
8859 |
|
|
ac_eC=' '
|
8860 |
|
|
ac_eD='%g'
|
8861 |
|
|
|
8862 |
|
|
if test "${CONFIG_HEADERS+set}" != set; then
|
8863 |
|
|
EOF
|
8864 |
|
|
cat >> $CONFIG_STATUS <
|
8865 |
|
|
CONFIG_HEADERS="config.h:config.in"
|
8866 |
|
|
EOF
|
8867 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
8868 |
|
|
fi
|
8869 |
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
8870 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
8871 |
|
|
case "$ac_file" in
|
8872 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
8873 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
8874 |
|
|
*) ac_file_in="${ac_file}.in" ;;
|
8875 |
|
|
esac
|
8876 |
|
|
|
8877 |
|
|
echo creating $ac_file
|
8878 |
|
|
|
8879 |
|
|
rm -f conftest.frag conftest.in conftest.out
|
8880 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
8881 |
|
|
cat $ac_file_inputs > conftest.in
|
8882 |
|
|
|
8883 |
|
|
EOF
|
8884 |
|
|
|
8885 |
|
|
# Transform confdefs.h into a sed script conftest.vals that substitutes
|
8886 |
|
|
# the proper values into config.h.in to produce config.h. And first:
|
8887 |
|
|
# Protect against being on the right side of a sed subst in config.status.
|
8888 |
|
|
# Protect against being in an unquoted here document in config.status.
|
8889 |
|
|
rm -f conftest.vals
|
8890 |
|
|
cat > conftest.hdr <<\EOF
|
8891 |
|
|
s/[\\&%]/\\&/g
|
8892 |
|
|
s%[\\$`]%\\&%g
|
8893 |
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
8894 |
|
|
s%ac_d%ac_u%gp
|
8895 |
|
|
s%ac_u%ac_e%gp
|
8896 |
|
|
EOF
|
8897 |
|
|
sed -n -f conftest.hdr confdefs.h > conftest.vals
|
8898 |
|
|
rm -f conftest.hdr
|
8899 |
|
|
|
8900 |
|
|
# This sed command replaces #undef with comments. This is necessary, for
|
8901 |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
8902 |
|
|
# on some systems where configure will not decide to define it.
|
8903 |
|
|
cat >> conftest.vals <<\EOF
|
8904 |
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
8905 |
|
|
EOF
|
8906 |
|
|
|
8907 |
|
|
# Break up conftest.vals because some shells have a limit on
|
8908 |
|
|
# the size of here documents, and old seds have small limits too.
|
8909 |
|
|
|
8910 |
|
|
rm -f conftest.tail
|
8911 |
|
|
while :
|
8912 |
|
|
do
|
8913 |
|
|
ac_lines=`grep -c . conftest.vals`
|
8914 |
|
|
# grep -c gives empty output for an empty file on some AIX systems.
|
8915 |
|
|
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
8916 |
|
|
# Write a limited-size here document to conftest.frag.
|
8917 |
|
|
echo ' cat > conftest.frag <> $CONFIG_STATUS
|
8918 |
|
|
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
8919 |
|
|
echo 'CEOF
|
8920 |
|
|
sed -f conftest.frag conftest.in > conftest.out
|
8921 |
|
|
rm -f conftest.in
|
8922 |
|
|
mv conftest.out conftest.in
|
8923 |
|
|
' >> $CONFIG_STATUS
|
8924 |
|
|
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
8925 |
|
|
rm -f conftest.vals
|
8926 |
|
|
mv conftest.tail conftest.vals
|
8927 |
|
|
done
|
8928 |
|
|
rm -f conftest.vals
|
8929 |
|
|
|
8930 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
8931 |
|
|
rm -f conftest.frag conftest.h
|
8932 |
|
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
8933 |
|
|
cat conftest.in >> conftest.h
|
8934 |
|
|
rm -f conftest.in
|
8935 |
|
|
if cmp -s $ac_file conftest.h 2>/dev/null; then
|
8936 |
|
|
echo "$ac_file is unchanged"
|
8937 |
|
|
rm -f conftest.h
|
8938 |
|
|
else
|
8939 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
8940 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
8941 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
8942 |
|
|
# The file is in a subdirectory.
|
8943 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
8944 |
|
|
fi
|
8945 |
|
|
rm -f $ac_file
|
8946 |
|
|
mv conftest.h $ac_file
|
8947 |
|
|
fi
|
8948 |
|
|
fi; done
|
8949 |
|
|
|
8950 |
|
|
EOF
|
8951 |
|
|
|
8952 |
|
|
cat >> $CONFIG_STATUS <
|
8953 |
|
|
ac_sources="$files"
|
8954 |
|
|
ac_dests="$links"
|
8955 |
|
|
EOF
|
8956 |
|
|
|
8957 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
8958 |
|
|
srcdir=$ac_given_srcdir
|
8959 |
|
|
while test -n "$ac_sources"; do
|
8960 |
|
|
set $ac_dests; ac_dest=$1; shift; ac_dests=$*
|
8961 |
|
|
set $ac_sources; ac_source=$1; shift; ac_sources=$*
|
8962 |
|
|
|
8963 |
|
|
echo "linking $srcdir/$ac_source to $ac_dest"
|
8964 |
|
|
|
8965 |
|
|
if test ! -r $srcdir/$ac_source; then
|
8966 |
|
|
{ echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
|
8967 |
|
|
fi
|
8968 |
|
|
rm -f $ac_dest
|
8969 |
|
|
|
8970 |
|
|
# Make relative symlinks.
|
8971 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
8972 |
|
|
ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
|
8973 |
|
|
if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
|
8974 |
|
|
# The dest file is in a subdirectory.
|
8975 |
|
|
test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
|
8976 |
|
|
ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
|
8977 |
|
|
# A "../" for each directory in $ac_dest_dir_suffix.
|
8978 |
|
|
ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
|
8979 |
|
|
else
|
8980 |
|
|
ac_dest_dir_suffix= ac_dots=
|
8981 |
|
|
fi
|
8982 |
|
|
|
8983 |
|
|
case "$srcdir" in
|
8984 |
|
|
[/$]*) ac_rel_source="$srcdir/$ac_source" ;;
|
8985 |
|
|
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
|
8986 |
|
|
esac
|
8987 |
|
|
|
8988 |
|
|
# Make a symlink if possible; otherwise try a hard link.
|
8989 |
|
|
if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
|
8990 |
|
|
ln $srcdir/$ac_source $ac_dest; then :
|
8991 |
|
|
else
|
8992 |
|
|
{ echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
|
8993 |
|
|
fi
|
8994 |
|
|
done
|
8995 |
|
|
EOF
|
8996 |
|
|
cat >> $CONFIG_STATUS <
|
8997 |
|
|
|
8998 |
|
|
gdb_host_cpu=$gdb_host_cpu
|
8999 |
|
|
gdb_target_cpu=$gdb_target_cpu
|
9000 |
|
|
nativefile=$nativefile
|
9001 |
|
|
|
9002 |
|
|
EOF
|
9003 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
9004 |
|
|
|
9005 |
|
|
if test "${nativefile}" = ""; then
|
9006 |
|
|
sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
|
9007 |
|
|
< Makefile > Makefile.tem
|
9008 |
|
|
mv -f Makefile.tem Makefile
|
9009 |
|
|
fi
|
9010 |
|
|
|
9011 |
|
|
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
|
9012 |
|
|
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
|
9013 |
|
|
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' Makefile.tmp
|
9014 |
|
|
mv -f Makefile.tmp Makefile
|
9015 |
|
|
|
9016 |
|
|
|
9017 |
|
|
case x$CONFIG_HEADERS in
|
9018 |
|
|
xconfig.h:config.in)
|
9019 |
|
|
echo > stamp-h ;;
|
9020 |
|
|
esac
|
9021 |
|
|
|
9022 |
|
|
exit 0
|
9023 |
|
|
EOF
|
9024 |
|
|
chmod +x $CONFIG_STATUS
|
9025 |
|
|
rm -fr confdefs* $ac_clean_files
|
9026 |
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
9027 |
|
|
|
9028 |
|
|
if test "$no_recursion" != yes; then
|
9029 |
|
|
|
9030 |
|
|
# Remove --cache-file and --srcdir arguments so they do not pile up.
|
9031 |
|
|
ac_sub_configure_args=
|
9032 |
|
|
ac_prev=
|
9033 |
|
|
for ac_arg in $ac_configure_args; do
|
9034 |
|
|
if test -n "$ac_prev"; then
|
9035 |
|
|
ac_prev=
|
9036 |
|
|
continue
|
9037 |
|
|
fi
|
9038 |
|
|
case "$ac_arg" in
|
9039 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
9040 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
9041 |
|
|
ac_prev=cache_file ;;
|
9042 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
9043 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
9044 |
|
|
;;
|
9045 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
9046 |
|
|
ac_prev=srcdir ;;
|
9047 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
9048 |
|
|
;;
|
9049 |
|
|
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
9050 |
|
|
esac
|
9051 |
|
|
done
|
9052 |
|
|
|
9053 |
|
|
for ac_config_dir in $configdirs; do
|
9054 |
|
|
|
9055 |
|
|
# Do not complain, so a configure script can configure whichever
|
9056 |
|
|
# parts of a large source tree are present.
|
9057 |
|
|
if test ! -d $srcdir/$ac_config_dir; then
|
9058 |
|
|
continue
|
9059 |
|
|
fi
|
9060 |
|
|
|
9061 |
|
|
echo configuring in $ac_config_dir
|
9062 |
|
|
|
9063 |
|
|
case "$srcdir" in
|
9064 |
|
|
.) ;;
|
9065 |
|
|
*)
|
9066 |
|
|
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
|
9067 |
|
|
else
|
9068 |
|
|
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
|
9069 |
|
|
fi
|
9070 |
|
|
;;
|
9071 |
|
|
esac
|
9072 |
|
|
|
9073 |
|
|
ac_popdir=`pwd`
|
9074 |
|
|
cd $ac_config_dir
|
9075 |
|
|
|
9076 |
|
|
# A "../" for each directory in /$ac_config_dir.
|
9077 |
|
|
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
9078 |
|
|
|
9079 |
|
|
case "$srcdir" in
|
9080 |
|
|
.) # No --srcdir option. We are building in place.
|
9081 |
|
|
ac_sub_srcdir=$srcdir ;;
|
9082 |
|
|
/*) # Absolute path.
|
9083 |
|
|
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
9084 |
|
|
*) # Relative path.
|
9085 |
|
|
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
9086 |
|
|
esac
|
9087 |
|
|
|
9088 |
|
|
# Check for guested configure; otherwise get Cygnus style configure.
|
9089 |
|
|
if test -f $ac_sub_srcdir/configure; then
|
9090 |
|
|
ac_sub_configure=$ac_sub_srcdir/configure
|
9091 |
|
|
elif test -f $ac_sub_srcdir/configure.in; then
|
9092 |
|
|
ac_sub_configure=$ac_configure
|
9093 |
|
|
else
|
9094 |
|
|
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
|
9095 |
|
|
ac_sub_configure=
|
9096 |
|
|
fi
|
9097 |
|
|
|
9098 |
|
|
# The recursion is here.
|
9099 |
|
|
if test -n "$ac_sub_configure"; then
|
9100 |
|
|
|
9101 |
|
|
# Make the cache file name correct relative to the subdirectory.
|
9102 |
|
|
case "$cache_file" in
|
9103 |
|
|
/*) ac_sub_cache_file=$cache_file ;;
|
9104 |
|
|
*) # Relative path.
|
9105 |
|
|
ac_sub_cache_file="$ac_dots$cache_file" ;;
|
9106 |
|
|
esac
|
9107 |
|
|
case "$ac_given_INSTALL" in
|
9108 |
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
9109 |
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
9110 |
|
|
esac
|
9111 |
|
|
|
9112 |
|
|
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
|
9113 |
|
|
# The eval makes quoting arguments work.
|
9114 |
|
|
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
|
9115 |
|
|
then :
|
9116 |
|
|
else
|
9117 |
|
|
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
|
9118 |
|
|
fi
|
9119 |
|
|
fi
|
9120 |
|
|
|
9121 |
|
|
cd $ac_popdir
|
9122 |
|
|
done
|
9123 |
|
|
fi
|
9124 |
|
|
|
9125 |
|
|
|
9126 |
|
|
exit 0
|