1 | #! /bin/sh
|
---|
2 |
|
---|
3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
4 | # Generated automatically using autoconf version 2.13
|
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
---|
6 | #
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 |
|
---|
10 | # Defaults:
|
---|
11 | ac_help=
|
---|
12 | ac_default_prefix=/usr/local
|
---|
13 | # Any additions from configure.in:
|
---|
14 | ac_help="$ac_help
|
---|
15 | --enable-shared[=PKGS] build shared libraries [default=no]"
|
---|
16 | ac_help="$ac_help
|
---|
17 | --enable-static[=PKGS] build static libraries [default=yes]"
|
---|
18 | ac_help="$ac_help
|
---|
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
---|
20 | ac_help="$ac_help
|
---|
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
---|
22 | ac_help="$ac_help
|
---|
23 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
---|
24 | ac_help="$ac_help
|
---|
25 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
---|
26 | ac_help="$ac_help
|
---|
27 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
|
---|
28 | ac_help="$ac_help
|
---|
29 | --enable-targets alternative target configurations"
|
---|
30 | ac_help="$ac_help
|
---|
31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
---|
32 | ac_help="$ac_help
|
---|
33 | --with-mmap try using mmap for BFD input files if available"
|
---|
34 | ac_help="$ac_help
|
---|
35 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
---|
36 | ac_help="$ac_help
|
---|
37 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
38 | (and sometimes confusing) to the casual installer"
|
---|
39 | ac_help="$ac_help
|
---|
40 | --enable-install-libbfd controls installation of libbfd and related headers"
|
---|
41 | ac_help="$ac_help
|
---|
42 | --disable-nls do not use Native Language Support"
|
---|
43 | ac_help="$ac_help
|
---|
44 | --with-included-gettext use the GNU gettext library included here"
|
---|
45 |
|
---|
46 | # Initialize some variables set by options.
|
---|
47 | # The variables have the same names as the options, with
|
---|
48 | # dashes changed to underlines.
|
---|
49 | build=NONE
|
---|
50 | cache_file=./config.cache
|
---|
51 | exec_prefix=NONE
|
---|
52 | host=NONE
|
---|
53 | no_create=
|
---|
54 | nonopt=NONE
|
---|
55 | no_recursion=
|
---|
56 | prefix=NONE
|
---|
57 | program_prefix=NONE
|
---|
58 | program_suffix=NONE
|
---|
59 | program_transform_name=s,x,x,
|
---|
60 | silent=
|
---|
61 | site=
|
---|
62 | srcdir=
|
---|
63 | target=NONE
|
---|
64 | verbose=
|
---|
65 | x_includes=NONE
|
---|
66 | x_libraries=NONE
|
---|
67 | bindir='${exec_prefix}/bin'
|
---|
68 | sbindir='${exec_prefix}/sbin'
|
---|
69 | libexecdir='${exec_prefix}/libexec'
|
---|
70 | datadir='${prefix}/share'
|
---|
71 | sysconfdir='${prefix}/etc'
|
---|
72 | sharedstatedir='${prefix}/com'
|
---|
73 | localstatedir='${prefix}/var'
|
---|
74 | libdir='${exec_prefix}/lib'
|
---|
75 | includedir='${prefix}/include'
|
---|
76 | oldincludedir='/usr/include'
|
---|
77 | infodir='${prefix}/info'
|
---|
78 | mandir='${prefix}/man'
|
---|
79 |
|
---|
80 | # Initialize some other variables.
|
---|
81 | subdirs=
|
---|
82 | MFLAGS= MAKEFLAGS=
|
---|
83 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
84 | # Maximum number of lines to put in a shell here document.
|
---|
85 | ac_max_here_lines=12
|
---|
86 |
|
---|
87 | ac_prev=
|
---|
88 | for ac_option
|
---|
89 | do
|
---|
90 |
|
---|
91 | # If the previous option needs an argument, assign it.
|
---|
92 | if test -n "$ac_prev"; then
|
---|
93 | eval "$ac_prev=\$ac_option"
|
---|
94 | ac_prev=
|
---|
95 | continue
|
---|
96 | fi
|
---|
97 |
|
---|
98 | case "$ac_option" in
|
---|
99 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
100 | *) ac_optarg= ;;
|
---|
101 | esac
|
---|
102 |
|
---|
103 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
104 |
|
---|
105 | case "$ac_option" in
|
---|
106 |
|
---|
107 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
108 | ac_prev=bindir ;;
|
---|
109 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
110 | bindir="$ac_optarg" ;;
|
---|
111 |
|
---|
112 | -build | --build | --buil | --bui | --bu)
|
---|
113 | ac_prev=build ;;
|
---|
114 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
115 | build="$ac_optarg" ;;
|
---|
116 |
|
---|
117 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
118 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
119 | ac_prev=cache_file ;;
|
---|
120 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
121 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
122 | cache_file="$ac_optarg" ;;
|
---|
123 |
|
---|
124 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
125 | ac_prev=datadir ;;
|
---|
126 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
127 | | --da=*)
|
---|
128 | datadir="$ac_optarg" ;;
|
---|
129 |
|
---|
130 | -disable-* | --disable-*)
|
---|
131 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
132 | # Reject names that are not valid shell variable names.
|
---|
133 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
134 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
135 | fi
|
---|
136 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
137 | eval "enable_${ac_feature}=no" ;;
|
---|
138 |
|
---|
139 | -enable-* | --enable-*)
|
---|
140 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
141 | # Reject names that are not valid shell variable names.
|
---|
142 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
143 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
144 | fi
|
---|
145 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
146 | case "$ac_option" in
|
---|
147 | *=*) ;;
|
---|
148 | *) ac_optarg=yes ;;
|
---|
149 | esac
|
---|
150 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
151 |
|
---|
152 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
153 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
154 | | --exec | --exe | --ex)
|
---|
155 | ac_prev=exec_prefix ;;
|
---|
156 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
157 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
158 | | --exec=* | --exe=* | --ex=*)
|
---|
159 | exec_prefix="$ac_optarg" ;;
|
---|
160 |
|
---|
161 | -gas | --gas | --ga | --g)
|
---|
162 | # Obsolete; use --with-gas.
|
---|
163 | with_gas=yes ;;
|
---|
164 |
|
---|
165 | -help | --help | --hel | --he)
|
---|
166 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
167 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
168 | cat << EOF
|
---|
169 | Usage: configure [options] [host]
|
---|
170 | Options: [defaults in brackets after descriptions]
|
---|
171 | Configuration:
|
---|
172 | --cache-file=FILE cache test results in FILE
|
---|
173 | --help print this message
|
---|
174 | --no-create do not create output files
|
---|
175 | --quiet, --silent do not print \`checking...' messages
|
---|
176 | --version print the version of autoconf that created configure
|
---|
177 | Directory and file names:
|
---|
178 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
179 | [$ac_default_prefix]
|
---|
180 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
181 | [same as prefix]
|
---|
182 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
183 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
184 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
185 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
186 | [PREFIX/share]
|
---|
187 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
188 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
189 | [PREFIX/com]
|
---|
190 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
191 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
192 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
193 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
194 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
195 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
196 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
197 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
198 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
199 | --program-transform-name=PROGRAM
|
---|
200 | run sed PROGRAM on installed program names
|
---|
201 | EOF
|
---|
202 | cat << EOF
|
---|
203 | Host type:
|
---|
204 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
205 | --host=HOST configure for HOST [guessed]
|
---|
206 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
207 | Features and packages:
|
---|
208 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
209 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
210 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
211 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
212 | --x-includes=DIR X include files are in DIR
|
---|
213 | --x-libraries=DIR X library files are in DIR
|
---|
214 | EOF
|
---|
215 | if test -n "$ac_help"; then
|
---|
216 | echo "--enable and --with options recognized:$ac_help"
|
---|
217 | fi
|
---|
218 | exit 0 ;;
|
---|
219 |
|
---|
220 | -host | --host | --hos | --ho)
|
---|
221 | ac_prev=host ;;
|
---|
222 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
223 | host="$ac_optarg" ;;
|
---|
224 |
|
---|
225 | -includedir | --includedir | --includedi | --included | --include \
|
---|
226 | | --includ | --inclu | --incl | --inc)
|
---|
227 | ac_prev=includedir ;;
|
---|
228 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
229 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
230 | includedir="$ac_optarg" ;;
|
---|
231 |
|
---|
232 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
233 | ac_prev=infodir ;;
|
---|
234 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
235 | infodir="$ac_optarg" ;;
|
---|
236 |
|
---|
237 | -libdir | --libdir | --libdi | --libd)
|
---|
238 | ac_prev=libdir ;;
|
---|
239 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
240 | libdir="$ac_optarg" ;;
|
---|
241 |
|
---|
242 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
243 | | --libexe | --libex | --libe)
|
---|
244 | ac_prev=libexecdir ;;
|
---|
245 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
246 | | --libexe=* | --libex=* | --libe=*)
|
---|
247 | libexecdir="$ac_optarg" ;;
|
---|
248 |
|
---|
249 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
250 | | --localstate | --localstat | --localsta | --localst \
|
---|
251 | | --locals | --local | --loca | --loc | --lo)
|
---|
252 | ac_prev=localstatedir ;;
|
---|
253 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
254 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
255 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
256 | localstatedir="$ac_optarg" ;;
|
---|
257 |
|
---|
258 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
259 | ac_prev=mandir ;;
|
---|
260 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
261 | mandir="$ac_optarg" ;;
|
---|
262 |
|
---|
263 | -nfp | --nfp | --nf)
|
---|
264 | # Obsolete; use --without-fp.
|
---|
265 | with_fp=no ;;
|
---|
266 |
|
---|
267 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
268 | | --no-cr | --no-c)
|
---|
269 | no_create=yes ;;
|
---|
270 |
|
---|
271 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
272 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
273 | no_recursion=yes ;;
|
---|
274 |
|
---|
275 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
276 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
277 | | --oldin | --oldi | --old | --ol | --o)
|
---|
278 | ac_prev=oldincludedir ;;
|
---|
279 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
280 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
281 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
282 | oldincludedir="$ac_optarg" ;;
|
---|
283 |
|
---|
284 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
285 | ac_prev=prefix ;;
|
---|
286 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
287 | prefix="$ac_optarg" ;;
|
---|
288 |
|
---|
289 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
290 | | --program-pre | --program-pr | --program-p)
|
---|
291 | ac_prev=program_prefix ;;
|
---|
292 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
293 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
294 | program_prefix="$ac_optarg" ;;
|
---|
295 |
|
---|
296 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
297 | | --program-suf | --program-su | --program-s)
|
---|
298 | ac_prev=program_suffix ;;
|
---|
299 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
300 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
301 | program_suffix="$ac_optarg" ;;
|
---|
302 |
|
---|
303 | -program-transform-name | --program-transform-name \
|
---|
304 | | --program-transform-nam | --program-transform-na \
|
---|
305 | | --program-transform-n | --program-transform- \
|
---|
306 | | --program-transform | --program-transfor \
|
---|
307 | | --program-transfo | --program-transf \
|
---|
308 | | --program-trans | --program-tran \
|
---|
309 | | --progr-tra | --program-tr | --program-t)
|
---|
310 | ac_prev=program_transform_name ;;
|
---|
311 | -program-transform-name=* | --program-transform-name=* \
|
---|
312 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
313 | | --program-transform-n=* | --program-transform-=* \
|
---|
314 | | --program-transform=* | --program-transfor=* \
|
---|
315 | | --program-transfo=* | --program-transf=* \
|
---|
316 | | --program-trans=* | --program-tran=* \
|
---|
317 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
318 | program_transform_name="$ac_optarg" ;;
|
---|
319 |
|
---|
320 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
321 | | -silent | --silent | --silen | --sile | --sil)
|
---|
322 | silent=yes ;;
|
---|
323 |
|
---|
324 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
325 | ac_prev=sbindir ;;
|
---|
326 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
327 | | --sbi=* | --sb=*)
|
---|
328 | sbindir="$ac_optarg" ;;
|
---|
329 |
|
---|
330 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
331 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
332 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
333 | | --sha | --sh)
|
---|
334 | ac_prev=sharedstatedir ;;
|
---|
335 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
336 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
337 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
338 | | --sha=* | --sh=*)
|
---|
339 | sharedstatedir="$ac_optarg" ;;
|
---|
340 |
|
---|
341 | -site | --site | --sit)
|
---|
342 | ac_prev=site ;;
|
---|
343 | -site=* | --site=* | --sit=*)
|
---|
344 | site="$ac_optarg" ;;
|
---|
345 |
|
---|
346 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
347 | ac_prev=srcdir ;;
|
---|
348 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
349 | srcdir="$ac_optarg" ;;
|
---|
350 |
|
---|
351 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
352 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
353 | ac_prev=sysconfdir ;;
|
---|
354 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
355 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
356 | sysconfdir="$ac_optarg" ;;
|
---|
357 |
|
---|
358 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
359 | ac_prev=target ;;
|
---|
360 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
361 | target="$ac_optarg" ;;
|
---|
362 |
|
---|
363 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
364 | verbose=yes ;;
|
---|
365 |
|
---|
366 | -version | --version | --versio | --versi | --vers)
|
---|
367 | echo "configure generated by autoconf version 2.13"
|
---|
368 | exit 0 ;;
|
---|
369 |
|
---|
370 | -with-* | --with-*)
|
---|
371 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
372 | # Reject names that are not valid shell variable names.
|
---|
373 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
374 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
375 | fi
|
---|
376 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
377 | case "$ac_option" in
|
---|
378 | *=*) ;;
|
---|
379 | *) ac_optarg=yes ;;
|
---|
380 | esac
|
---|
381 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
382 |
|
---|
383 | -without-* | --without-*)
|
---|
384 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
385 | # Reject names that are not valid shell variable names.
|
---|
386 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
387 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
388 | fi
|
---|
389 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
390 | eval "with_${ac_package}=no" ;;
|
---|
391 |
|
---|
392 | --x)
|
---|
393 | # Obsolete; use --with-x.
|
---|
394 | with_x=yes ;;
|
---|
395 |
|
---|
396 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
397 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
398 | ac_prev=x_includes ;;
|
---|
399 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
400 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
401 | x_includes="$ac_optarg" ;;
|
---|
402 |
|
---|
403 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
404 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
405 | ac_prev=x_libraries ;;
|
---|
406 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
407 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
408 | x_libraries="$ac_optarg" ;;
|
---|
409 |
|
---|
410 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
411 | ;;
|
---|
412 |
|
---|
413 | *)
|
---|
414 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
415 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
416 | fi
|
---|
417 | if test "x$nonopt" != xNONE; then
|
---|
418 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
419 | fi
|
---|
420 | nonopt="$ac_option"
|
---|
421 | ;;
|
---|
422 |
|
---|
423 | esac
|
---|
424 | done
|
---|
425 |
|
---|
426 | if test -n "$ac_prev"; then
|
---|
427 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
428 | fi
|
---|
429 |
|
---|
430 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
431 |
|
---|
432 | # File descriptor usage:
|
---|
433 | # 0 standard input
|
---|
434 | # 1 file creation
|
---|
435 | # 2 errors and warnings
|
---|
436 | # 3 some systems may open it to /dev/tty
|
---|
437 | # 4 used on the Kubota Titan
|
---|
438 | # 6 checking for... messages and results
|
---|
439 | # 5 compiler messages saved in config.log
|
---|
440 | if test "$silent" = yes; then
|
---|
441 | exec 6>/dev/null
|
---|
442 | else
|
---|
443 | exec 6>&1
|
---|
444 | fi
|
---|
445 | exec 5>./config.log
|
---|
446 |
|
---|
447 | echo "\
|
---|
448 | This file contains any messages produced by compilers while
|
---|
449 | running configure, to aid debugging if configure makes a mistake.
|
---|
450 | " 1>&5
|
---|
451 |
|
---|
452 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
453 | # Also quote any args containing shell metacharacters.
|
---|
454 | ac_configure_args=
|
---|
455 | for ac_arg
|
---|
456 | do
|
---|
457 | case "$ac_arg" in
|
---|
458 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
459 | | --no-cr | --no-c) ;;
|
---|
460 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
461 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
463 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
464 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
465 | esac
|
---|
466 | done
|
---|
467 |
|
---|
468 | # NLS nuisances.
|
---|
469 | # Only set these to C if already set. These must not be set unconditionally
|
---|
470 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
471 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
472 | # Non-C LC_CTYPE values break the ctype check.
|
---|
473 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
474 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
475 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
476 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
477 |
|
---|
478 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
479 | rm -rf conftest* confdefs.h
|
---|
480 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
481 | echo > confdefs.h
|
---|
482 |
|
---|
483 | # A filename unique to this package, relative to the directory that
|
---|
484 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
485 | ac_unique_file=libbfd.c
|
---|
486 |
|
---|
487 | # Find the source files, if location was not specified.
|
---|
488 | if test -z "$srcdir"; then
|
---|
489 | ac_srcdir_defaulted=yes
|
---|
490 | # Try the directory containing this script, then its parent.
|
---|
491 | ac_prog=$0
|
---|
492 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
493 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
494 | srcdir=$ac_confdir
|
---|
495 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
496 | srcdir=..
|
---|
497 | fi
|
---|
498 | else
|
---|
499 | ac_srcdir_defaulted=no
|
---|
500 | fi
|
---|
501 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
502 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
503 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
504 | else
|
---|
505 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
506 | fi
|
---|
507 | fi
|
---|
508 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
509 |
|
---|
510 | # Prefer explicitly selected file to automatically selected ones.
|
---|
511 | if test -z "$CONFIG_SITE"; then
|
---|
512 | if test "x$prefix" != xNONE; then
|
---|
513 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
514 | else
|
---|
515 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
516 | fi
|
---|
517 | fi
|
---|
518 | for ac_site_file in $CONFIG_SITE; do
|
---|
519 | if test -r "$ac_site_file"; then
|
---|
520 | echo "loading site script $ac_site_file"
|
---|
521 | . "$ac_site_file"
|
---|
522 | fi
|
---|
523 | done
|
---|
524 |
|
---|
525 | if test -r "$cache_file"; then
|
---|
526 | echo "loading cache $cache_file"
|
---|
527 | . $cache_file
|
---|
528 | else
|
---|
529 | echo "creating cache $cache_file"
|
---|
530 | > $cache_file
|
---|
531 | fi
|
---|
532 |
|
---|
533 | ac_ext=c
|
---|
534 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
535 | ac_cpp='$CPP $CPPFLAGS'
|
---|
536 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
537 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
538 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
539 |
|
---|
540 | ac_exeext=
|
---|
541 | ac_objext=o
|
---|
542 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
543 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
544 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
545 | ac_n= ac_c='
|
---|
546 | ' ac_t=' '
|
---|
547 | else
|
---|
548 | ac_n=-n ac_c= ac_t=
|
---|
549 | fi
|
---|
550 | else
|
---|
551 | ac_n= ac_c='\c' ac_t=
|
---|
552 | fi
|
---|
553 |
|
---|
554 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
---|
555 | echo "configure:556: checking for path separator" >&5
|
---|
556 | # Filter path to get backslahes into forwardslashes
|
---|
557 | case "`uname -s 2> /dev/null`" in
|
---|
558 | OS/2)
|
---|
559 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
---|
560 | PATH_IFS=';'
|
---|
561 | ;;
|
---|
562 | *)
|
---|
563 | PATH_IFS=':'
|
---|
564 | ;;
|
---|
565 | esac
|
---|
566 | echo "$ac_t""${PATH_IFS}" 1>&6
|
---|
567 |
|
---|
568 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
569 | echo "configure:570: checking for Cygwin environment" >&5
|
---|
570 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
571 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
572 | else
|
---|
573 | cat > conftest.$ac_ext <<EOF
|
---|
574 | #line 575 "configure"
|
---|
575 | #include "confdefs.h"
|
---|
576 |
|
---|
577 | int main() {
|
---|
578 |
|
---|
579 | #ifndef __CYGWIN__
|
---|
580 | #define __CYGWIN__ __CYGWIN32__
|
---|
581 | #endif
|
---|
582 | return __CYGWIN__;
|
---|
583 | ; return 0; }
|
---|
584 | EOF
|
---|
585 | if { (eval echo configure:586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
586 | rm -rf conftest*
|
---|
587 | ac_cv_cygwin=yes
|
---|
588 | else
|
---|
589 | echo "configure: failed program was:" >&5
|
---|
590 | cat conftest.$ac_ext >&5
|
---|
591 | rm -rf conftest*
|
---|
592 | ac_cv_cygwin=no
|
---|
593 | fi
|
---|
594 | rm -f conftest*
|
---|
595 | rm -f conftest*
|
---|
596 | fi
|
---|
597 |
|
---|
598 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
599 | CYGWIN=
|
---|
600 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
601 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
602 | echo "configure:603: checking for mingw32 environment" >&5
|
---|
603 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
604 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
605 | else
|
---|
606 | cat > conftest.$ac_ext <<EOF
|
---|
607 | #line 608 "configure"
|
---|
608 | #include "confdefs.h"
|
---|
609 |
|
---|
610 | int main() {
|
---|
611 | return __MINGW32__;
|
---|
612 | ; return 0; }
|
---|
613 | EOF
|
---|
614 | if { (eval echo configure:615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
615 | rm -rf conftest*
|
---|
616 | ac_cv_mingw32=yes
|
---|
617 | else
|
---|
618 | echo "configure: failed program was:" >&5
|
---|
619 | cat conftest.$ac_ext >&5
|
---|
620 | rm -rf conftest*
|
---|
621 | ac_cv_mingw32=no
|
---|
622 | fi
|
---|
623 | rm -f conftest*
|
---|
624 | rm -f conftest*
|
---|
625 | fi
|
---|
626 |
|
---|
627 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
628 | MINGW32=
|
---|
629 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
630 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
---|
631 | echo "configure:632: checking for EMX/OS2 environment" >&5
|
---|
632 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
---|
633 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
634 | else
|
---|
635 | : ${CC=gcc.exe}
|
---|
636 | cat > conftest.$ac_ext <<EOF
|
---|
637 | #line 638 "configure"
|
---|
638 | #include "confdefs.h"
|
---|
639 |
|
---|
640 | int main() {
|
---|
641 | return __EMX__;
|
---|
642 | ; return 0; }
|
---|
643 | EOF
|
---|
644 | if { (eval echo configure:645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
645 | rm -rf conftest*
|
---|
646 | ac_cv_emxos2=yes
|
---|
647 | else
|
---|
648 | echo "configure: failed program was:" >&5
|
---|
649 | cat conftest.$ac_ext >&5
|
---|
650 | rm -rf conftest*
|
---|
651 | ac_cv_emxos2=no
|
---|
652 | fi
|
---|
653 | rm -f conftest*
|
---|
654 | rm -f conftest*
|
---|
655 | fi
|
---|
656 |
|
---|
657 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
---|
658 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
---|
659 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
660 | else
|
---|
661 | if test "$ac_cv_emxos2" = yes ; then
|
---|
662 | ac_cv_libpre=
|
---|
663 | else
|
---|
664 | ac_cv_libpre=lib
|
---|
665 | fi
|
---|
666 |
|
---|
667 | fi
|
---|
668 |
|
---|
669 | EMXOS2=
|
---|
670 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
---|
671 |
|
---|
672 |
|
---|
673 |
|
---|
674 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
675 | echo "configure:676: checking for executable suffix" >&5
|
---|
676 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
677 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
678 | else
|
---|
679 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
680 | ac_cv_exeext=.exe
|
---|
681 | else
|
---|
682 | rm -f conftest*
|
---|
683 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
684 | ac_cv_exeext=
|
---|
685 | if { (eval echo configure:686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
686 | for file in conftest.*; do
|
---|
687 | case $file in
|
---|
688 | *.c | *.o | *.obj) ;;
|
---|
689 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
690 | esac
|
---|
691 | done
|
---|
692 | else
|
---|
693 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
694 | fi
|
---|
695 | rm -f conftest*
|
---|
696 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
697 | fi
|
---|
698 | fi
|
---|
699 |
|
---|
700 | EXEEXT=""
|
---|
701 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
702 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
703 | ac_exeext=$EXEEXT
|
---|
704 |
|
---|
705 |
|
---|
706 |
|
---|
707 | ac_aux_dir=
|
---|
708 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
709 | if test -f $ac_dir/install-sh; then
|
---|
710 | ac_aux_dir=$ac_dir
|
---|
711 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
712 | break
|
---|
713 | elif test -f $ac_dir/install.sh; then
|
---|
714 | ac_aux_dir=$ac_dir
|
---|
715 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
716 | break
|
---|
717 | fi
|
---|
718 | done
|
---|
719 | if test -z "$ac_aux_dir"; then
|
---|
720 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
721 | fi
|
---|
722 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
723 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
724 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
725 |
|
---|
726 |
|
---|
727 | # Do some error checking and defaulting for the host and target type.
|
---|
728 | # The inputs are:
|
---|
729 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
730 | #
|
---|
731 | # The rules are:
|
---|
732 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
733 | # same time.
|
---|
734 | # 2. Host defaults to nonopt.
|
---|
735 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
736 | # as determined by config.guess.
|
---|
737 | # 4. Target and build default to nonopt.
|
---|
738 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
739 |
|
---|
740 | # The aliases save the names the user supplied, while $host etc.
|
---|
741 | # will get canonicalized.
|
---|
742 | case $host---$target---$nonopt in
|
---|
743 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
744 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
745 | esac
|
---|
746 |
|
---|
747 |
|
---|
748 | # Make sure we can run config.sub.
|
---|
749 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
750 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
751 | fi
|
---|
752 |
|
---|
753 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
754 | echo "configure:755: checking host system type" >&5
|
---|
755 |
|
---|
756 | host_alias=$host
|
---|
757 | case "$host_alias" in
|
---|
758 | NONE)
|
---|
759 | case $nonopt in
|
---|
760 | NONE)
|
---|
761 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
762 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
763 | fi ;;
|
---|
764 | *) host_alias=$nonopt ;;
|
---|
765 | esac ;;
|
---|
766 | esac
|
---|
767 |
|
---|
768 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
769 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
770 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
771 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
772 | echo "$ac_t""$host" 1>&6
|
---|
773 |
|
---|
774 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
775 | echo "configure:776: checking target system type" >&5
|
---|
776 |
|
---|
777 | target_alias=$target
|
---|
778 | case "$target_alias" in
|
---|
779 | NONE)
|
---|
780 | case $nonopt in
|
---|
781 | NONE) target_alias=$host_alias ;;
|
---|
782 | *) target_alias=$nonopt ;;
|
---|
783 | esac ;;
|
---|
784 | esac
|
---|
785 |
|
---|
786 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
787 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
788 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
789 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
790 | echo "$ac_t""$target" 1>&6
|
---|
791 |
|
---|
792 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
793 | echo "configure:794: checking build system type" >&5
|
---|
794 |
|
---|
795 | build_alias=$build
|
---|
796 | case "$build_alias" in
|
---|
797 | NONE)
|
---|
798 | case $nonopt in
|
---|
799 | NONE) build_alias=$host_alias ;;
|
---|
800 | *) build_alias=$nonopt ;;
|
---|
801 | esac ;;
|
---|
802 | esac
|
---|
803 |
|
---|
804 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
805 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
806 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
807 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
808 | echo "$ac_t""$build" 1>&6
|
---|
809 |
|
---|
810 | test "$host_alias" != "$target_alias" &&
|
---|
811 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
812 | NONENONEs,x,x, &&
|
---|
813 | program_prefix=${target_alias}-
|
---|
814 |
|
---|
815 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
816 | set dummy gcc; ac_word=$2
|
---|
817 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
818 | echo "configure:819: checking for $ac_word" >&5
|
---|
819 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
820 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
821 | else
|
---|
822 | if test -n "$CC"; then
|
---|
823 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
824 | else
|
---|
825 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
826 | ac_dummy="$PATH"
|
---|
827 | for ac_dir in $ac_dummy; do
|
---|
828 | test -z "$ac_dir" && ac_dir=.
|
---|
829 | if test -f $ac_dir/$ac_word -o \
|
---|
830 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
831 | ac_cv_prog_CC="gcc"
|
---|
832 | break
|
---|
833 | fi
|
---|
834 | done
|
---|
835 | IFS="$ac_save_ifs"
|
---|
836 | fi
|
---|
837 | fi
|
---|
838 | CC="$ac_cv_prog_CC"
|
---|
839 | if test -n "$CC"; then
|
---|
840 | echo "$ac_t""$CC" 1>&6
|
---|
841 | else
|
---|
842 | echo "$ac_t""no" 1>&6
|
---|
843 | fi
|
---|
844 |
|
---|
845 | if test -z "$CC"; then
|
---|
846 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
847 | set dummy cc; ac_word=$2
|
---|
848 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
849 | echo "configure:850: checking for $ac_word" >&5
|
---|
850 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
851 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
852 | else
|
---|
853 | if test -n "$CC"; then
|
---|
854 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
855 | else
|
---|
856 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
857 | ac_prog_rejected=no
|
---|
858 | ac_dummy="$PATH"
|
---|
859 | for ac_dir in $ac_dummy; do
|
---|
860 | test -z "$ac_dir" && ac_dir=.
|
---|
861 | if test -f $ac_dir/$ac_word -o \
|
---|
862 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
863 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
864 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
865 | ac_prog_rejected=yes
|
---|
866 | continue
|
---|
867 | fi
|
---|
868 | ac_cv_prog_CC="cc"
|
---|
869 | break
|
---|
870 | fi
|
---|
871 | done
|
---|
872 | IFS="$ac_save_ifs"
|
---|
873 | if test $ac_prog_rejected = yes; then
|
---|
874 | # We found a bogon in the path, so make sure we never use it.
|
---|
875 | set dummy $ac_cv_prog_CC
|
---|
876 | shift
|
---|
877 | if test $# -gt 0; then
|
---|
878 | # We chose a different compiler from the bogus one.
|
---|
879 | # However, it has the same basename, so the bogon will be chosen
|
---|
880 | # first if we set CC to just the basename; use the full file name.
|
---|
881 | shift
|
---|
882 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
883 | shift
|
---|
884 | ac_cv_prog_CC="$@"
|
---|
885 | fi
|
---|
886 | fi
|
---|
887 | fi
|
---|
888 | fi
|
---|
889 | CC="$ac_cv_prog_CC"
|
---|
890 | if test -n "$CC"; then
|
---|
891 | echo "$ac_t""$CC" 1>&6
|
---|
892 | else
|
---|
893 | echo "$ac_t""no" 1>&6
|
---|
894 | fi
|
---|
895 |
|
---|
896 | if test -z "$CC"; then
|
---|
897 | case "`uname -s`" in
|
---|
898 | *win32* | *WIN32*)
|
---|
899 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
900 | set dummy cl; ac_word=$2
|
---|
901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
902 | echo "configure:903: checking for $ac_word" >&5
|
---|
903 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
904 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
905 | else
|
---|
906 | if test -n "$CC"; then
|
---|
907 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
908 | else
|
---|
909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
910 | ac_dummy="$PATH"
|
---|
911 | for ac_dir in $ac_dummy; do
|
---|
912 | test -z "$ac_dir" && ac_dir=.
|
---|
913 | if test -f $ac_dir/$ac_word -o \
|
---|
914 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
915 | ac_cv_prog_CC="cl"
|
---|
916 | break
|
---|
917 | fi
|
---|
918 | done
|
---|
919 | IFS="$ac_save_ifs"
|
---|
920 | fi
|
---|
921 | fi
|
---|
922 | CC="$ac_cv_prog_CC"
|
---|
923 | if test -n "$CC"; then
|
---|
924 | echo "$ac_t""$CC" 1>&6
|
---|
925 | else
|
---|
926 | echo "$ac_t""no" 1>&6
|
---|
927 | fi
|
---|
928 | ;;
|
---|
929 | esac
|
---|
930 | fi
|
---|
931 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
932 | fi
|
---|
933 |
|
---|
934 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
935 | echo "configure:936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
936 |
|
---|
937 | ac_ext=c
|
---|
938 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
939 | ac_cpp='$CPP $CPPFLAGS'
|
---|
940 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
941 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
942 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
943 |
|
---|
944 | cat > conftest.$ac_ext << EOF
|
---|
945 |
|
---|
946 | #line 947 "configure"
|
---|
947 | #include "confdefs.h"
|
---|
948 |
|
---|
949 | main(){return(0);}
|
---|
950 | EOF
|
---|
951 | if { (eval echo configure:952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
952 | ac_cv_prog_cc_works=yes
|
---|
953 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
954 | if (./conftest; exit) 2>/dev/null; then
|
---|
955 | ac_cv_prog_cc_cross=no
|
---|
956 | else
|
---|
957 | ac_cv_prog_cc_cross=yes
|
---|
958 | fi
|
---|
959 | else
|
---|
960 | echo "configure: failed program was:" >&5
|
---|
961 | cat conftest.$ac_ext >&5
|
---|
962 | ac_cv_prog_cc_works=no
|
---|
963 | fi
|
---|
964 | rm -fr conftest*
|
---|
965 | ac_ext=c
|
---|
966 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
967 | ac_cpp='$CPP $CPPFLAGS'
|
---|
968 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
969 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
970 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
971 |
|
---|
972 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
973 | if test $ac_cv_prog_cc_works = no; then
|
---|
974 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
975 | fi
|
---|
976 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
977 | echo "configure:978: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
978 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
979 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
980 |
|
---|
981 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
982 | echo "configure:983: checking whether we are using GNU C" >&5
|
---|
983 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
984 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
985 | else
|
---|
986 | cat > conftest.c <<EOF
|
---|
987 | #ifdef __GNUC__
|
---|
988 | yes;
|
---|
989 | #endif
|
---|
990 | EOF
|
---|
991 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
992 | ac_cv_prog_gcc=yes
|
---|
993 | else
|
---|
994 | ac_cv_prog_gcc=no
|
---|
995 | fi
|
---|
996 | fi
|
---|
997 |
|
---|
998 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
999 |
|
---|
1000 | if test $ac_cv_prog_gcc = yes; then
|
---|
1001 | GCC=yes
|
---|
1002 | else
|
---|
1003 | GCC=
|
---|
1004 | fi
|
---|
1005 |
|
---|
1006 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
1007 | ac_save_CFLAGS="$CFLAGS"
|
---|
1008 | CFLAGS=
|
---|
1009 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1010 | echo "configure:1011: checking whether ${CC-cc} accepts -g" >&5
|
---|
1011 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1012 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1013 | else
|
---|
1014 | echo 'void f(){}' > conftest.c
|
---|
1015 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1016 | ac_cv_prog_cc_g=yes
|
---|
1017 | else
|
---|
1018 | ac_cv_prog_cc_g=no
|
---|
1019 | fi
|
---|
1020 | rm -f conftest*
|
---|
1021 |
|
---|
1022 | fi
|
---|
1023 |
|
---|
1024 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1025 | if test "$ac_test_CFLAGS" = set; then
|
---|
1026 | CFLAGS="$ac_save_CFLAGS"
|
---|
1027 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1028 | if test "$GCC" = yes; then
|
---|
1029 | CFLAGS="-g -O2"
|
---|
1030 | else
|
---|
1031 | CFLAGS="-g"
|
---|
1032 | fi
|
---|
1033 | else
|
---|
1034 | if test "$GCC" = yes; then
|
---|
1035 | CFLAGS="-O2"
|
---|
1036 | else
|
---|
1037 | CFLAGS=
|
---|
1038 | fi
|
---|
1039 | fi
|
---|
1040 |
|
---|
1041 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
1042 | echo "configure:1043: checking for POSIXized ISC" >&5
|
---|
1043 | if test -d /etc/conf/kconfig.d &&
|
---|
1044 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
1045 | then
|
---|
1046 | echo "$ac_t""yes" 1>&6
|
---|
1047 | ISC=yes # If later tests want to check for ISC.
|
---|
1048 | cat >> confdefs.h <<\EOF
|
---|
1049 | #define _POSIX_SOURCE 1
|
---|
1050 | EOF
|
---|
1051 |
|
---|
1052 | if test "$GCC" = yes; then
|
---|
1053 | CC="$CC -posix"
|
---|
1054 | else
|
---|
1055 | CC="$CC -Xp"
|
---|
1056 | fi
|
---|
1057 | else
|
---|
1058 | echo "$ac_t""no" 1>&6
|
---|
1059 | ISC=
|
---|
1060 | fi
|
---|
1061 |
|
---|
1062 |
|
---|
1063 | am__api_version="1.4"
|
---|
1064 | # Find a good install program. We prefer a C program (faster),
|
---|
1065 | # so one script is as good as another. But avoid the broken or
|
---|
1066 | # incompatible versions:
|
---|
1067 | # SysV /etc/install, /usr/sbin/install
|
---|
1068 | # SunOS /usr/etc/install
|
---|
1069 | # IRIX /sbin/install
|
---|
1070 | # AIX /bin/install
|
---|
1071 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1072 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1073 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1074 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1075 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1076 | echo "configure:1077: checking for a BSD compatible install" >&5
|
---|
1077 | if test -z "$INSTALL"; then
|
---|
1078 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1079 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1080 | else
|
---|
1081 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
1082 | for ac_dir in $PATH; do
|
---|
1083 | # Account for people who put trailing slashes in PATH elements.
|
---|
1084 | case "$ac_dir/" in
|
---|
1085 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1086 | # We reject the install program from OS/2 or W3.1
|
---|
1087 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
1088 | *)
|
---|
1089 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1090 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1091 | # by default.
|
---|
1092 | for ac_prog in ginstall scoinst install; do
|
---|
1093 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
1094 | if test $ac_prog = install &&
|
---|
1095 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1096 | # AIX install. It has an incompatible calling convention.
|
---|
1097 | :
|
---|
1098 | else
|
---|
1099 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
1100 | break 2
|
---|
1101 | fi
|
---|
1102 | fi
|
---|
1103 | done
|
---|
1104 | ;;
|
---|
1105 | esac
|
---|
1106 | done
|
---|
1107 | IFS="$ac_save_IFS"
|
---|
1108 |
|
---|
1109 | fi
|
---|
1110 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1111 | INSTALL="$ac_cv_path_install"
|
---|
1112 | else
|
---|
1113 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1114 | # path for INSTALL within a source directory, because that will
|
---|
1115 | # break other packages using the cache if that directory is
|
---|
1116 | # removed, or if the path is relative.
|
---|
1117 | INSTALL="$ac_install_sh"
|
---|
1118 | fi
|
---|
1119 | fi
|
---|
1120 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1121 |
|
---|
1122 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1123 | # It thinks the first close brace ends the variable substitution.
|
---|
1124 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1125 |
|
---|
1126 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1127 |
|
---|
1128 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1129 |
|
---|
1130 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
1131 | echo "configure:1132: checking whether build environment is sane" >&5
|
---|
1132 | # Just in case
|
---|
1133 | sleep 1
|
---|
1134 | echo timestamp > conftestfile
|
---|
1135 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1136 | # arguments. Must try -L first in case configure is actually a
|
---|
1137 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1138 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1139 | # directory).
|
---|
1140 | if (
|
---|
1141 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
1142 | if test "$*" = "X"; then
|
---|
1143 | # -L didn't work.
|
---|
1144 | set X `ls -t $srcdir/configure conftestfile`
|
---|
1145 | fi
|
---|
1146 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
1147 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
1148 |
|
---|
1149 | # If neither matched, then we have a broken ls. This can happen
|
---|
1150 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1151 | # broken ls alias from the environment. This has actually
|
---|
1152 | # happened. Such a system could not be considered "sane".
|
---|
1153 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1154 | alias in your environment" 1>&2; exit 1; }
|
---|
1155 | fi
|
---|
1156 |
|
---|
1157 | test "$2" = conftestfile
|
---|
1158 | )
|
---|
1159 | then
|
---|
1160 | # Ok.
|
---|
1161 | :
|
---|
1162 | else
|
---|
1163 | { echo "configure: error: newly created file is older than distributed files!
|
---|
1164 | Check your system clock" 1>&2; exit 1; }
|
---|
1165 | fi
|
---|
1166 | rm -f conftest*
|
---|
1167 | echo "$ac_t""yes" 1>&6
|
---|
1168 | if test "$program_transform_name" = s,x,x,; then
|
---|
1169 | program_transform_name=
|
---|
1170 | else
|
---|
1171 | # Double any \ or $. echo might interpret backslashes.
|
---|
1172 | cat <<\EOF_SED > conftestsed
|
---|
1173 | s,\\,\\\\,g; s,\$,$$,g
|
---|
1174 | EOF_SED
|
---|
1175 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
1176 | rm -f conftestsed
|
---|
1177 | fi
|
---|
1178 | test "$program_prefix" != NONE &&
|
---|
1179 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
1180 | # Use a double $ so make ignores it.
|
---|
1181 | test "$program_suffix" != NONE &&
|
---|
1182 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
1183 |
|
---|
1184 | # sed with no file args requires a program.
|
---|
1185 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
1186 |
|
---|
1187 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1188 | echo "configure:1189: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1189 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1190 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1191 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1192 | else
|
---|
1193 | cat > conftestmake <<\EOF
|
---|
1194 | all:
|
---|
1195 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1196 | EOF
|
---|
1197 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1198 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1199 | if test -n "$ac_maketemp"; then
|
---|
1200 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1201 | else
|
---|
1202 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1203 | fi
|
---|
1204 | rm -f conftestmake
|
---|
1205 | fi
|
---|
1206 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1207 | echo "$ac_t""yes" 1>&6
|
---|
1208 | SET_MAKE=
|
---|
1209 | else
|
---|
1210 | echo "$ac_t""no" 1>&6
|
---|
1211 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1212 | fi
|
---|
1213 |
|
---|
1214 |
|
---|
1215 | PACKAGE=bfd
|
---|
1216 |
|
---|
1217 | VERSION=2.14
|
---|
1218 |
|
---|
1219 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1220 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1221 | fi
|
---|
1222 | cat >> confdefs.h <<EOF
|
---|
1223 | #define PACKAGE "$PACKAGE"
|
---|
1224 | EOF
|
---|
1225 |
|
---|
1226 | cat >> confdefs.h <<EOF
|
---|
1227 | #define VERSION "$VERSION"
|
---|
1228 | EOF
|
---|
1229 |
|
---|
1230 |
|
---|
1231 |
|
---|
1232 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1233 | echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
|
---|
1234 | echo "configure:1235: checking for working aclocal-${am__api_version}" >&5
|
---|
1235 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1236 | # an executable is not found, even if stderr is redirected.
|
---|
1237 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1238 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
---|
1239 | ACLOCAL=aclocal-${am__api_version}
|
---|
1240 | echo "$ac_t""found" 1>&6
|
---|
1241 | else
|
---|
1242 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
|
---|
1243 | echo "$ac_t""missing" 1>&6
|
---|
1244 | fi
|
---|
1245 |
|
---|
1246 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1247 | echo "configure:1248: checking for working autoconf" >&5
|
---|
1248 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1249 | # an executable is not found, even if stderr is redirected.
|
---|
1250 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1251 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1252 | AUTOCONF=autoconf
|
---|
1253 | echo "$ac_t""found" 1>&6
|
---|
1254 | else
|
---|
1255 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1256 | echo "$ac_t""missing" 1>&6
|
---|
1257 | fi
|
---|
1258 |
|
---|
1259 | echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
|
---|
1260 | echo "configure:1261: checking for working automake-${am__api_version}" >&5
|
---|
1261 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1262 | # an executable is not found, even if stderr is redirected.
|
---|
1263 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1264 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
---|
1265 | AUTOMAKE=automake-${am__api_version}
|
---|
1266 | echo "$ac_t""found" 1>&6
|
---|
1267 | else
|
---|
1268 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
|
---|
1269 | echo "$ac_t""missing" 1>&6
|
---|
1270 | fi
|
---|
1271 |
|
---|
1272 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1273 | echo "configure:1274: checking for working autoheader" >&5
|
---|
1274 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1275 | # an executable is not found, even if stderr is redirected.
|
---|
1276 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1277 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1278 | AUTOHEADER=autoheader
|
---|
1279 | echo "$ac_t""found" 1>&6
|
---|
1280 | else
|
---|
1281 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1282 | echo "$ac_t""missing" 1>&6
|
---|
1283 | fi
|
---|
1284 |
|
---|
1285 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1286 | echo "configure:1287: checking for working makeinfo" >&5
|
---|
1287 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1288 | # an executable is not found, even if stderr is redirected.
|
---|
1289 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1290 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1291 | MAKEINFO=makeinfo
|
---|
1292 | echo "$ac_t""found" 1>&6
|
---|
1293 | else
|
---|
1294 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1295 | echo "$ac_t""missing" 1>&6
|
---|
1296 | fi
|
---|
1297 |
|
---|
1298 |
|
---|
1299 | # Uncomment the next line to remove the date from the reported bfd version
|
---|
1300 | #is_release=y
|
---|
1301 |
|
---|
1302 | bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
|
---|
1303 |
|
---|
1304 | bfd_version_string="\"${VERSION}\""
|
---|
1305 | if test x${is_release} = x; then
|
---|
1306 | bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
|
---|
1307 | bfd_version_string="\"${VERSION} ${bfd_version_date}\""
|
---|
1308 | fi
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 | if test $host != $build; then
|
---|
1313 | ac_tool_prefix=${host_alias}-
|
---|
1314 | else
|
---|
1315 | ac_tool_prefix=
|
---|
1316 | fi
|
---|
1317 |
|
---|
1318 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
---|
1319 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
---|
1320 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1321 | echo "configure:1322: checking for $ac_word" >&5
|
---|
1322 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
---|
1323 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1324 | else
|
---|
1325 | if test -n "$AR"; then
|
---|
1326 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
1327 | else
|
---|
1328 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1329 | ac_dummy="$PATH"
|
---|
1330 | for ac_dir in $ac_dummy; do
|
---|
1331 | test -z "$ac_dir" && ac_dir=.
|
---|
1332 | if test -f $ac_dir/$ac_word -o \
|
---|
1333 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1334 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
---|
1335 | break
|
---|
1336 | fi
|
---|
1337 | done
|
---|
1338 | IFS="$ac_save_ifs"
|
---|
1339 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
---|
1340 | fi
|
---|
1341 | fi
|
---|
1342 | AR="$ac_cv_prog_AR"
|
---|
1343 | if test -n "$AR"; then
|
---|
1344 | echo "$ac_t""$AR" 1>&6
|
---|
1345 | else
|
---|
1346 | echo "$ac_t""no" 1>&6
|
---|
1347 | fi
|
---|
1348 |
|
---|
1349 |
|
---|
1350 |
|
---|
1351 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1352 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1353 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1354 | echo "configure:1355: checking for $ac_word" >&5
|
---|
1355 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1356 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1357 | else
|
---|
1358 | if test -n "$RANLIB"; then
|
---|
1359 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1360 | else
|
---|
1361 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1362 | ac_dummy="$PATH"
|
---|
1363 | for ac_dir in $ac_dummy; do
|
---|
1364 | test -z "$ac_dir" && ac_dir=.
|
---|
1365 | if test -f $ac_dir/$ac_word -o \
|
---|
1366 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1367 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1368 | break
|
---|
1369 | fi
|
---|
1370 | done
|
---|
1371 | IFS="$ac_save_ifs"
|
---|
1372 | fi
|
---|
1373 | fi
|
---|
1374 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1375 | if test -n "$RANLIB"; then
|
---|
1376 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1377 | else
|
---|
1378 | echo "$ac_t""no" 1>&6
|
---|
1379 | fi
|
---|
1380 |
|
---|
1381 |
|
---|
1382 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1383 | if test -n "$ac_tool_prefix"; then
|
---|
1384 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1385 | set dummy ranlib; ac_word=$2
|
---|
1386 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1387 | echo "configure:1388: checking for $ac_word" >&5
|
---|
1388 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1389 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1390 | else
|
---|
1391 | if test -n "$RANLIB"; then
|
---|
1392 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1393 | else
|
---|
1394 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1395 | ac_dummy="$PATH"
|
---|
1396 | for ac_dir in $ac_dummy; do
|
---|
1397 | test -z "$ac_dir" && ac_dir=.
|
---|
1398 | if test -f $ac_dir/$ac_word -o \
|
---|
1399 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1400 | ac_cv_prog_RANLIB="ranlib"
|
---|
1401 | break
|
---|
1402 | fi
|
---|
1403 | done
|
---|
1404 | IFS="$ac_save_ifs"
|
---|
1405 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1406 | fi
|
---|
1407 | fi
|
---|
1408 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1409 | if test -n "$RANLIB"; then
|
---|
1410 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1411 | else
|
---|
1412 | echo "$ac_t""no" 1>&6
|
---|
1413 | fi
|
---|
1414 |
|
---|
1415 | else
|
---|
1416 | RANLIB=":"
|
---|
1417 | fi
|
---|
1418 | fi
|
---|
1419 |
|
---|
1420 |
|
---|
1421 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1422 | if test "${enable_shared+set}" = set; then
|
---|
1423 | enableval="$enable_shared"
|
---|
1424 | p=${PACKAGE-default}
|
---|
1425 | case $enableval in
|
---|
1426 | yes) enable_shared=yes ;;
|
---|
1427 | no) enable_shared=no ;;
|
---|
1428 | *)
|
---|
1429 | enable_shared=no
|
---|
1430 | # Look at the argument we got. We use all the common list separators.
|
---|
1431 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1432 | for pkg in $enableval; do
|
---|
1433 | if test "X$pkg" = "X$p"; then
|
---|
1434 | enable_shared=yes
|
---|
1435 | fi
|
---|
1436 | done
|
---|
1437 | IFS="$ac_save_ifs"
|
---|
1438 | ;;
|
---|
1439 | esac
|
---|
1440 | else
|
---|
1441 | enable_shared=no
|
---|
1442 | fi
|
---|
1443 |
|
---|
1444 |
|
---|
1445 | # Check whether --enable-static or --disable-static was given.
|
---|
1446 | if test "${enable_static+set}" = set; then
|
---|
1447 | enableval="$enable_static"
|
---|
1448 | p=${PACKAGE-default}
|
---|
1449 | case $enableval in
|
---|
1450 | yes) enable_static=yes ;;
|
---|
1451 | no) enable_static=no ;;
|
---|
1452 | *)
|
---|
1453 | enable_static=no
|
---|
1454 | # Look at the argument we got. We use all the common list separators.
|
---|
1455 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1456 | for pkg in $enableval; do
|
---|
1457 | if test "X$pkg" = "X$p"; then
|
---|
1458 | enable_static=yes
|
---|
1459 | fi
|
---|
1460 | done
|
---|
1461 | IFS="$ac_save_ifs"
|
---|
1462 | ;;
|
---|
1463 | esac
|
---|
1464 | else
|
---|
1465 | enable_static=yes
|
---|
1466 | fi
|
---|
1467 |
|
---|
1468 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1469 | if test "${enable_fast_install+set}" = set; then
|
---|
1470 | enableval="$enable_fast_install"
|
---|
1471 | p=${PACKAGE-default}
|
---|
1472 | case $enableval in
|
---|
1473 | yes) enable_fast_install=yes ;;
|
---|
1474 | no) enable_fast_install=no ;;
|
---|
1475 | *)
|
---|
1476 | enable_fast_install=no
|
---|
1477 | # Look at the argument we got. We use all the common list separators.
|
---|
1478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1479 | for pkg in $enableval; do
|
---|
1480 | if test "X$pkg" = "X$p"; then
|
---|
1481 | enable_fast_install=yes
|
---|
1482 | fi
|
---|
1483 | done
|
---|
1484 | IFS="$ac_save_ifs"
|
---|
1485 | ;;
|
---|
1486 | esac
|
---|
1487 | else
|
---|
1488 | enable_fast_install=yes
|
---|
1489 | fi
|
---|
1490 |
|
---|
1491 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1492 | if test "${with_gnu_ld+set}" = set; then
|
---|
1493 | withval="$with_gnu_ld"
|
---|
1494 | test "$withval" = no || with_gnu_ld=yes
|
---|
1495 | else
|
---|
1496 | with_gnu_ld=no
|
---|
1497 | fi
|
---|
1498 |
|
---|
1499 | ac_prog=ld
|
---|
1500 | if test "$GCC" = yes; then
|
---|
1501 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1502 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1503 | echo "configure:1504: checking for ld used by GCC" >&5
|
---|
1504 | case $host in
|
---|
1505 | *-*-mingw*)
|
---|
1506 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1507 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1508 | *)
|
---|
1509 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1510 | esac
|
---|
1511 | case $ac_prog in
|
---|
1512 | # Accept absolute paths.
|
---|
1513 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1514 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1515 | # Canonicalize the path of ld
|
---|
1516 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1517 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1518 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1519 | done
|
---|
1520 | test -z "$LD" && LD="$ac_prog"
|
---|
1521 | ;;
|
---|
1522 | "")
|
---|
1523 | # If it fails, then pretend we aren't using GCC.
|
---|
1524 | ac_prog=ld
|
---|
1525 | ;;
|
---|
1526 | *)
|
---|
1527 | # If it is relative, then search for the first ld in PATH.
|
---|
1528 | with_gnu_ld=unknown
|
---|
1529 | ;;
|
---|
1530 | esac
|
---|
1531 | elif test "$with_gnu_ld" = yes; then
|
---|
1532 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1533 | echo "configure:1534: checking for GNU ld" >&5
|
---|
1534 | else
|
---|
1535 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1536 | echo "configure:1537: checking for non-GNU ld" >&5
|
---|
1537 | fi
|
---|
1538 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
---|
1539 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1540 | else
|
---|
1541 | if test -z "$LD"; then
|
---|
1542 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1543 | for ac_dir in $PATH; do
|
---|
1544 | test -z "$ac_dir" && ac_dir=.
|
---|
1545 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1546 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1547 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1548 | # but apparently some GNU ld's only accept -v.
|
---|
1549 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1550 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1551 | test "$with_gnu_ld" != no && break
|
---|
1552 | else
|
---|
1553 | test "$with_gnu_ld" != yes && break
|
---|
1554 | fi
|
---|
1555 | fi
|
---|
1556 | done
|
---|
1557 | IFS="$ac_save_ifs"
|
---|
1558 | else
|
---|
1559 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1560 | fi
|
---|
1561 | fi
|
---|
1562 |
|
---|
1563 | LD="$lt_cv_path_LD"
|
---|
1564 | if test -n "$LD"; then
|
---|
1565 | echo "$ac_t""$LD" 1>&6
|
---|
1566 | else
|
---|
1567 | echo "$ac_t""no" 1>&6
|
---|
1568 | fi
|
---|
1569 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1570 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1571 | echo "configure:1572: checking if the linker ($LD) is GNU ld" >&5
|
---|
1572 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1573 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1574 | else
|
---|
1575 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1576 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1577 | lt_cv_prog_gnu_ld=yes
|
---|
1578 | else
|
---|
1579 | lt_cv_prog_gnu_ld=no
|
---|
1580 | fi
|
---|
1581 | fi
|
---|
1582 |
|
---|
1583 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
---|
1584 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
1585 |
|
---|
1586 |
|
---|
1587 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1588 | echo "configure:1589: checking for $LD option to reload object files" >&5
|
---|
1589 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1590 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1591 | else
|
---|
1592 | lt_cv_ld_reload_flag='-r'
|
---|
1593 | fi
|
---|
1594 |
|
---|
1595 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1596 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1597 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1598 |
|
---|
1599 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1600 | echo "configure:1601: checking for BSD-compatible nm" >&5
|
---|
1601 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
---|
1602 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1603 | else
|
---|
1604 | if test -n "$NM"; then
|
---|
1605 | # Let the user override the test.
|
---|
1606 | lt_cv_path_NM="$NM"
|
---|
1607 | else
|
---|
1608 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1609 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1610 | test -z "$ac_dir" && ac_dir=.
|
---|
1611 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1612 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1613 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1614 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1615 | # nm: unknown option "B" ignored
|
---|
1616 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1617 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1618 | lt_cv_path_NM="$tmp_nm -B"
|
---|
1619 | break
|
---|
1620 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1621 | lt_cv_path_NM="$tmp_nm -p"
|
---|
1622 | break
|
---|
1623 | else
|
---|
1624 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1625 | continue # so that we can try to find one that supports BSD flags
|
---|
1626 | fi
|
---|
1627 | fi
|
---|
1628 | done
|
---|
1629 | IFS="$ac_save_ifs"
|
---|
1630 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
1631 | fi
|
---|
1632 | fi
|
---|
1633 |
|
---|
1634 | NM="$lt_cv_path_NM"
|
---|
1635 | echo "$ac_t""$NM" 1>&6
|
---|
1636 |
|
---|
1637 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1638 | echo "configure:1639: checking whether ln -s works" >&5
|
---|
1639 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1640 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1641 | else
|
---|
1642 | rm -f conftestdata
|
---|
1643 | if ln -s X conftestdata 2>/dev/null
|
---|
1644 | then
|
---|
1645 | rm -f conftestdata
|
---|
1646 | ac_cv_prog_LN_S="ln -s"
|
---|
1647 | else
|
---|
1648 | echo A > conftestdata;
|
---|
1649 | if ln conftestdata conftestdata2 2>/dev/null; then
|
---|
1650 | ac_cv_prog_LN_S=ln
|
---|
1651 | else
|
---|
1652 | ac_cv_prog_LN_S=cp
|
---|
1653 | fi
|
---|
1654 | fi
|
---|
1655 | rm -f conftestdata*
|
---|
1656 | fi
|
---|
1657 | LN_S="$ac_cv_prog_LN_S"
|
---|
1658 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1659 | echo "$ac_t""yes" 1>&6
|
---|
1660 | else
|
---|
1661 | echo "$ac_t""no" 1>&6
|
---|
1662 | fi
|
---|
1663 |
|
---|
1664 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1665 | echo "configure:1666: checking how to recognise dependant libraries" >&5
|
---|
1666 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1667 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1668 | else
|
---|
1669 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1670 | lt_cv_file_magic_test_file=
|
---|
1671 | lt_cv_deplibs_check_method='unknown'
|
---|
1672 | # Need to set the preceding variable on all platforms that support
|
---|
1673 | # interlibrary dependencies.
|
---|
1674 | # 'none' -- dependencies not supported.
|
---|
1675 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1676 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1677 | # 'test_compile' -- check by making test program.
|
---|
1678 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1679 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1680 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1681 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1682 |
|
---|
1683 | case $host_os in
|
---|
1684 | aix*)
|
---|
1685 | lt_cv_deplibs_check_method=pass_all
|
---|
1686 | ;;
|
---|
1687 |
|
---|
1688 | beos*)
|
---|
1689 | lt_cv_deplibs_check_method=pass_all
|
---|
1690 | ;;
|
---|
1691 |
|
---|
1692 | bsdi4*)
|
---|
1693 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1694 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1695 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1696 | ;;
|
---|
1697 |
|
---|
1698 | cygwin* | mingw* |pw32*)
|
---|
1699 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1700 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1701 | ;;
|
---|
1702 |
|
---|
1703 | darwin* | rhapsody*)
|
---|
1704 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
---|
1705 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1706 | case "$host_os" in
|
---|
1707 | rhapsody* | darwin1.012)
|
---|
1708 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
---|
1709 | ;;
|
---|
1710 | *) # Darwin 1.3 on
|
---|
1711 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
---|
1712 | ;;
|
---|
1713 | esac
|
---|
1714 | ;;
|
---|
1715 |
|
---|
1716 | freebsd* )
|
---|
1717 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1718 | case $host_cpu in
|
---|
1719 | i*86 )
|
---|
1720 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1721 | # Let's accept both of them until this is cleared up.
|
---|
1722 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1723 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1724 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1725 | ;;
|
---|
1726 | esac
|
---|
1727 | else
|
---|
1728 | lt_cv_deplibs_check_method=pass_all
|
---|
1729 | fi
|
---|
1730 | ;;
|
---|
1731 |
|
---|
1732 | gnu*)
|
---|
1733 | lt_cv_deplibs_check_method=pass_all
|
---|
1734 | ;;
|
---|
1735 |
|
---|
1736 | hpux10.20*|hpux11*)
|
---|
1737 | case $host_cpu in
|
---|
1738 | hppa*)
|
---|
1739 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
1740 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1741 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1742 | ;;
|
---|
1743 | ia64*)
|
---|
1744 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
1745 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1746 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
1747 | ;;
|
---|
1748 | esac
|
---|
1749 | ;;
|
---|
1750 |
|
---|
1751 | irix5* | irix6*)
|
---|
1752 | case $host_os in
|
---|
1753 | irix5*)
|
---|
1754 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1755 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1756 | ;;
|
---|
1757 | *)
|
---|
1758 | case $LD in
|
---|
1759 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1760 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1761 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1762 | *) libmagic=never-match;;
|
---|
1763 | esac
|
---|
1764 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1765 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1766 | ;;
|
---|
1767 | esac
|
---|
1768 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1769 | lt_cv_deplibs_check_method=pass_all
|
---|
1770 | ;;
|
---|
1771 |
|
---|
1772 | # This must be Linux ELF.
|
---|
1773 | linux-gnu*)
|
---|
1774 | case $host_cpu in
|
---|
1775 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1776 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1777 | *)
|
---|
1778 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1779 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1780 | esac
|
---|
1781 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1782 | ;;
|
---|
1783 |
|
---|
1784 | netbsd*)
|
---|
1785 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1786 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
---|
1787 | else
|
---|
1788 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
---|
1789 | fi
|
---|
1790 | ;;
|
---|
1791 |
|
---|
1792 | newsos6)
|
---|
1793 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
1794 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1795 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
1796 | ;;
|
---|
1797 |
|
---|
1798 | os2*)
|
---|
1799 | lt_cv_deplibs_check_method=pass_all
|
---|
1800 | ;;
|
---|
1801 |
|
---|
1802 | osf3* | osf4* | osf5*)
|
---|
1803 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1804 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1805 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1806 | lt_cv_deplibs_check_method=pass_all
|
---|
1807 | ;;
|
---|
1808 |
|
---|
1809 | sco3.2v5*)
|
---|
1810 | lt_cv_deplibs_check_method=pass_all
|
---|
1811 | ;;
|
---|
1812 |
|
---|
1813 | solaris*)
|
---|
1814 | lt_cv_deplibs_check_method=pass_all
|
---|
1815 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1816 | ;;
|
---|
1817 |
|
---|
1818 | sysv5uw[78]* | sysv4*uw2*)
|
---|
1819 | lt_cv_deplibs_check_method=pass_all
|
---|
1820 | ;;
|
---|
1821 |
|
---|
1822 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1823 | case $host_vendor in
|
---|
1824 | ncr)
|
---|
1825 | lt_cv_deplibs_check_method=pass_all
|
---|
1826 | ;;
|
---|
1827 | motorola)
|
---|
1828 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
---|
1829 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1830 | ;;
|
---|
1831 | esac
|
---|
1832 | ;;
|
---|
1833 | esac
|
---|
1834 |
|
---|
1835 | fi
|
---|
1836 |
|
---|
1837 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1838 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1839 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1840 |
|
---|
1841 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1842 | echo "configure:1843: checking for object suffix" >&5
|
---|
1843 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1844 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1845 | else
|
---|
1846 | rm -f conftest*
|
---|
1847 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1848 | if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1849 | for ac_file in conftest.*; do
|
---|
1850 | case $ac_file in
|
---|
1851 | *.c) ;;
|
---|
1852 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1853 | esac
|
---|
1854 | done
|
---|
1855 | else
|
---|
1856 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1857 | fi
|
---|
1858 | rm -f conftest*
|
---|
1859 | fi
|
---|
1860 |
|
---|
1861 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1862 | OBJEXT=$ac_cv_objext
|
---|
1863 | ac_objext=$ac_cv_objext
|
---|
1864 |
|
---|
1865 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1866 |
|
---|
1867 | # Only perform the check for file, if the check method requires it
|
---|
1868 | case $deplibs_check_method in
|
---|
1869 | file_magic*)
|
---|
1870 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
1871 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1872 | echo "configure:1873: checking for ${ac_tool_prefix}file" >&5
|
---|
1873 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1874 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1875 | else
|
---|
1876 | case $MAGIC_CMD in
|
---|
1877 | /*)
|
---|
1878 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1879 | ;;
|
---|
1880 | ?:/*)
|
---|
1881 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1882 | ;;
|
---|
1883 | *)
|
---|
1884 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1885 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1886 | ac_dummy="/usr/bin:$PATH"
|
---|
1887 | for ac_dir in $ac_dummy; do
|
---|
1888 | test -z "$ac_dir" && ac_dir=.
|
---|
1889 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1890 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
1891 | if test -n "$file_magic_test_file"; then
|
---|
1892 | case $deplibs_check_method in
|
---|
1893 | "file_magic "*)
|
---|
1894 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1895 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1896 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1897 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1898 | :
|
---|
1899 | else
|
---|
1900 | cat <<EOF 1>&2
|
---|
1901 |
|
---|
1902 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1903 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1904 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1905 | *** as such. This will affect the creation of libtool libraries that
|
---|
1906 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1907 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1908 | *** may want to report the problem to your system manager and/or to
|
---|
1909 | *** bug-libtool@gnu.org
|
---|
1910 |
|
---|
1911 | EOF
|
---|
1912 | fi ;;
|
---|
1913 | esac
|
---|
1914 | fi
|
---|
1915 | break
|
---|
1916 | fi
|
---|
1917 | done
|
---|
1918 | IFS="$ac_save_ifs"
|
---|
1919 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1920 | ;;
|
---|
1921 | esac
|
---|
1922 | fi
|
---|
1923 |
|
---|
1924 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1925 | if test -n "$MAGIC_CMD"; then
|
---|
1926 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1927 | else
|
---|
1928 | echo "$ac_t""no" 1>&6
|
---|
1929 | fi
|
---|
1930 |
|
---|
1931 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
1932 | if test -n "$ac_tool_prefix"; then
|
---|
1933 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1934 | echo "configure:1935: checking for file" >&5
|
---|
1935 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1936 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1937 | else
|
---|
1938 | case $MAGIC_CMD in
|
---|
1939 | /*)
|
---|
1940 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1941 | ;;
|
---|
1942 | ?:/*)
|
---|
1943 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1944 | ;;
|
---|
1945 | *)
|
---|
1946 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1948 | ac_dummy="/usr/bin:$PATH"
|
---|
1949 | for ac_dir in $ac_dummy; do
|
---|
1950 | test -z "$ac_dir" && ac_dir=.
|
---|
1951 | if test -f $ac_dir/file; then
|
---|
1952 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
1953 | if test -n "$file_magic_test_file"; then
|
---|
1954 | case $deplibs_check_method in
|
---|
1955 | "file_magic "*)
|
---|
1956 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1957 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1958 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1959 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1960 | :
|
---|
1961 | else
|
---|
1962 | cat <<EOF 1>&2
|
---|
1963 |
|
---|
1964 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1965 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1966 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1967 | *** as such. This will affect the creation of libtool libraries that
|
---|
1968 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1969 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1970 | *** may want to report the problem to your system manager and/or to
|
---|
1971 | *** bug-libtool@gnu.org
|
---|
1972 |
|
---|
1973 | EOF
|
---|
1974 | fi ;;
|
---|
1975 | esac
|
---|
1976 | fi
|
---|
1977 | break
|
---|
1978 | fi
|
---|
1979 | done
|
---|
1980 | IFS="$ac_save_ifs"
|
---|
1981 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1982 | ;;
|
---|
1983 | esac
|
---|
1984 | fi
|
---|
1985 |
|
---|
1986 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1987 | if test -n "$MAGIC_CMD"; then
|
---|
1988 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1989 | else
|
---|
1990 | echo "$ac_t""no" 1>&6
|
---|
1991 | fi
|
---|
1992 |
|
---|
1993 | else
|
---|
1994 | MAGIC_CMD=:
|
---|
1995 | fi
|
---|
1996 | fi
|
---|
1997 |
|
---|
1998 | fi
|
---|
1999 | ;;
|
---|
2000 | esac
|
---|
2001 |
|
---|
2002 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
2003 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
2004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2005 | echo "configure:2006: checking for $ac_word" >&5
|
---|
2006 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2007 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2008 | else
|
---|
2009 | if test -n "$RANLIB"; then
|
---|
2010 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2011 | else
|
---|
2012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2013 | ac_dummy="$PATH"
|
---|
2014 | for ac_dir in $ac_dummy; do
|
---|
2015 | test -z "$ac_dir" && ac_dir=.
|
---|
2016 | if test -f $ac_dir/$ac_word -o \
|
---|
2017 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2018 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2019 | break
|
---|
2020 | fi
|
---|
2021 | done
|
---|
2022 | IFS="$ac_save_ifs"
|
---|
2023 | fi
|
---|
2024 | fi
|
---|
2025 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2026 | if test -n "$RANLIB"; then
|
---|
2027 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2028 | else
|
---|
2029 | echo "$ac_t""no" 1>&6
|
---|
2030 | fi
|
---|
2031 |
|
---|
2032 |
|
---|
2033 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2034 | if test -n "$ac_tool_prefix"; then
|
---|
2035 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2036 | set dummy ranlib; ac_word=$2
|
---|
2037 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2038 | echo "configure:2039: checking for $ac_word" >&5
|
---|
2039 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2040 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2041 | else
|
---|
2042 | if test -n "$RANLIB"; then
|
---|
2043 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2044 | else
|
---|
2045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2046 | ac_dummy="$PATH"
|
---|
2047 | for ac_dir in $ac_dummy; do
|
---|
2048 | test -z "$ac_dir" && ac_dir=.
|
---|
2049 | if test -f $ac_dir/$ac_word -o \
|
---|
2050 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2051 | ac_cv_prog_RANLIB="ranlib"
|
---|
2052 | break
|
---|
2053 | fi
|
---|
2054 | done
|
---|
2055 | IFS="$ac_save_ifs"
|
---|
2056 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2057 | fi
|
---|
2058 | fi
|
---|
2059 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2060 | if test -n "$RANLIB"; then
|
---|
2061 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2062 | else
|
---|
2063 | echo "$ac_t""no" 1>&6
|
---|
2064 | fi
|
---|
2065 |
|
---|
2066 | else
|
---|
2067 | RANLIB=":"
|
---|
2068 | fi
|
---|
2069 | fi
|
---|
2070 |
|
---|
2071 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2072 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2073 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2074 | echo "configure:2075: checking for $ac_word" >&5
|
---|
2075 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2076 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2077 | else
|
---|
2078 | if test -n "$STRIP"; then
|
---|
2079 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2080 | else
|
---|
2081 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2082 | ac_dummy="$PATH"
|
---|
2083 | for ac_dir in $ac_dummy; do
|
---|
2084 | test -z "$ac_dir" && ac_dir=.
|
---|
2085 | if test -f $ac_dir/$ac_word -o \
|
---|
2086 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2087 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2088 | break
|
---|
2089 | fi
|
---|
2090 | done
|
---|
2091 | IFS="$ac_save_ifs"
|
---|
2092 | fi
|
---|
2093 | fi
|
---|
2094 | STRIP="$ac_cv_prog_STRIP"
|
---|
2095 | if test -n "$STRIP"; then
|
---|
2096 | echo "$ac_t""$STRIP" 1>&6
|
---|
2097 | else
|
---|
2098 | echo "$ac_t""no" 1>&6
|
---|
2099 | fi
|
---|
2100 |
|
---|
2101 |
|
---|
2102 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2103 | if test -n "$ac_tool_prefix"; then
|
---|
2104 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2105 | set dummy strip; ac_word=$2
|
---|
2106 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2107 | echo "configure:2108: checking for $ac_word" >&5
|
---|
2108 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2109 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2110 | else
|
---|
2111 | if test -n "$STRIP"; then
|
---|
2112 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2113 | else
|
---|
2114 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2115 | ac_dummy="$PATH"
|
---|
2116 | for ac_dir in $ac_dummy; do
|
---|
2117 | test -z "$ac_dir" && ac_dir=.
|
---|
2118 | if test -f $ac_dir/$ac_word -o \
|
---|
2119 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2120 | ac_cv_prog_STRIP="strip"
|
---|
2121 | break
|
---|
2122 | fi
|
---|
2123 | done
|
---|
2124 | IFS="$ac_save_ifs"
|
---|
2125 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2126 | fi
|
---|
2127 | fi
|
---|
2128 | STRIP="$ac_cv_prog_STRIP"
|
---|
2129 | if test -n "$STRIP"; then
|
---|
2130 | echo "$ac_t""$STRIP" 1>&6
|
---|
2131 | else
|
---|
2132 | echo "$ac_t""no" 1>&6
|
---|
2133 | fi
|
---|
2134 |
|
---|
2135 | else
|
---|
2136 | STRIP=":"
|
---|
2137 | fi
|
---|
2138 | fi
|
---|
2139 |
|
---|
2140 |
|
---|
2141 | # Check for any special flags to pass to ltconfig.
|
---|
2142 | libtool_flags="--cache-file=$cache_file"
|
---|
2143 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2144 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2145 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2146 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2147 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2148 |
|
---|
2149 |
|
---|
2150 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2151 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2152 | enableval="$enable_libtool_lock"
|
---|
2153 | :
|
---|
2154 | fi
|
---|
2155 |
|
---|
2156 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2157 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2158 |
|
---|
2159 | # Check whether --with-pic or --without-pic was given.
|
---|
2160 | if test "${with_pic+set}" = set; then
|
---|
2161 | withval="$with_pic"
|
---|
2162 | pic_mode="$withval"
|
---|
2163 | else
|
---|
2164 | pic_mode=default
|
---|
2165 | fi
|
---|
2166 |
|
---|
2167 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2168 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2169 |
|
---|
2170 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2171 | # libtool support.
|
---|
2172 | case $host in
|
---|
2173 | *-*-irix6*)
|
---|
2174 | # Find out which ABI we are using.
|
---|
2175 | echo '#line 2176 "configure"' > conftest.$ac_ext
|
---|
2176 | if { (eval echo configure:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2177 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
2178 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2179 | *32-bit*)
|
---|
2180 | LD="${LD-ld} -melf32bsmip"
|
---|
2181 | ;;
|
---|
2182 | *N32*)
|
---|
2183 | LD="${LD-ld} -melf32bmipn32"
|
---|
2184 | ;;
|
---|
2185 | *64-bit*)
|
---|
2186 | LD="${LD-ld} -melf64bmip"
|
---|
2187 | ;;
|
---|
2188 | esac
|
---|
2189 | else
|
---|
2190 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2191 | *32-bit*)
|
---|
2192 | LD="${LD-ld} -32"
|
---|
2193 | ;;
|
---|
2194 | *N32*)
|
---|
2195 | LD="${LD-ld} -n32"
|
---|
2196 | ;;
|
---|
2197 | *64-bit*)
|
---|
2198 | LD="${LD-ld} -64"
|
---|
2199 | ;;
|
---|
2200 | esac
|
---|
2201 | fi
|
---|
2202 | fi
|
---|
2203 | rm -rf conftest*
|
---|
2204 | ;;
|
---|
2205 |
|
---|
2206 | ia64-*-hpux*)
|
---|
2207 | # Find out which ABI we are using.
|
---|
2208 | echo 'int i;' > conftest.$ac_ext
|
---|
2209 | if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2210 | case "`/usr/bin/file conftest.o`" in
|
---|
2211 | *ELF-32*)
|
---|
2212 | HPUX_IA64_MODE="32"
|
---|
2213 | ;;
|
---|
2214 | *ELF-64*)
|
---|
2215 | HPUX_IA64_MODE="64"
|
---|
2216 | ;;
|
---|
2217 | esac
|
---|
2218 | fi
|
---|
2219 | rm -rf conftest*
|
---|
2220 | ;;
|
---|
2221 |
|
---|
2222 | *-*-sco3.2v5*)
|
---|
2223 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2224 | SAVE_CFLAGS="$CFLAGS"
|
---|
2225 | CFLAGS="$CFLAGS -belf"
|
---|
2226 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2227 | echo "configure:2228: checking whether the C compiler needs -belf" >&5
|
---|
2228 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2229 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2230 | else
|
---|
2231 |
|
---|
2232 | ac_ext=c
|
---|
2233 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2234 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2235 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2236 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2237 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2238 |
|
---|
2239 | cat > conftest.$ac_ext <<EOF
|
---|
2240 | #line 2241 "configure"
|
---|
2241 | #include "confdefs.h"
|
---|
2242 |
|
---|
2243 | int main() {
|
---|
2244 |
|
---|
2245 | ; return 0; }
|
---|
2246 | EOF
|
---|
2247 | if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2248 | rm -rf conftest*
|
---|
2249 | lt_cv_cc_needs_belf=yes
|
---|
2250 | else
|
---|
2251 | echo "configure: failed program was:" >&5
|
---|
2252 | cat conftest.$ac_ext >&5
|
---|
2253 | rm -rf conftest*
|
---|
2254 | lt_cv_cc_needs_belf=no
|
---|
2255 | fi
|
---|
2256 | rm -f conftest*
|
---|
2257 | ac_ext=c
|
---|
2258 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2259 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2260 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2261 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2262 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2263 |
|
---|
2264 | fi
|
---|
2265 |
|
---|
2266 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2267 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2268 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2269 | CFLAGS="$SAVE_CFLAGS"
|
---|
2270 | fi
|
---|
2271 | ;;
|
---|
2272 |
|
---|
2273 |
|
---|
2274 | esac
|
---|
2275 |
|
---|
2276 |
|
---|
2277 | # Save cache, so that ltconfig can load it
|
---|
2278 | cat > confcache <<\EOF
|
---|
2279 | # This file is a shell script that caches the results of configure
|
---|
2280 | # tests run on this system so they can be shared between configure
|
---|
2281 | # scripts and configure runs. It is not useful on other systems.
|
---|
2282 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2283 | #
|
---|
2284 | # By default, configure uses ./config.cache as the cache file,
|
---|
2285 | # creating it if it does not exist already. You can give configure
|
---|
2286 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2287 | # what configure does when it calls configure scripts in
|
---|
2288 | # subdirectories, so they share the cache.
|
---|
2289 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2290 | # config.status only pays attention to the cache file if you give it the
|
---|
2291 | # --recheck option to rerun configure.
|
---|
2292 | #
|
---|
2293 | EOF
|
---|
2294 | # The following way of writing the cache mishandles newlines in values,
|
---|
2295 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2296 | # So, don't put newlines in cache variables' values.
|
---|
2297 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2298 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2299 | (set) 2>&1 |
|
---|
2300 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2301 | *ac_space=\ *)
|
---|
2302 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2303 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2304 | sed -n \
|
---|
2305 | -e "s/'/'\\\\''/g" \
|
---|
2306 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2307 | ;;
|
---|
2308 | *)
|
---|
2309 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2310 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2311 | ;;
|
---|
2312 | esac >> confcache
|
---|
2313 | if cmp -s $cache_file confcache; then
|
---|
2314 | :
|
---|
2315 | else
|
---|
2316 | if test -w $cache_file; then
|
---|
2317 | echo "updating cache $cache_file"
|
---|
2318 | cat confcache > $cache_file
|
---|
2319 | else
|
---|
2320 | echo "not updating unwritable cache $cache_file"
|
---|
2321 | fi
|
---|
2322 | fi
|
---|
2323 | rm -f confcache
|
---|
2324 |
|
---|
2325 |
|
---|
2326 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2327 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2328 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2329 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2330 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2331 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2332 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2333 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2334 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2335 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2336 |
|
---|
2337 | # Reload cache, that may have been modified by ltconfig
|
---|
2338 | if test -r "$cache_file"; then
|
---|
2339 | echo "loading cache $cache_file"
|
---|
2340 | . $cache_file
|
---|
2341 | else
|
---|
2342 | echo "creating cache $cache_file"
|
---|
2343 | > $cache_file
|
---|
2344 | fi
|
---|
2345 |
|
---|
2346 |
|
---|
2347 | # This can be used to rebuild libtool when needed
|
---|
2348 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2349 |
|
---|
2350 | # Always use our own libtool.
|
---|
2351 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2352 |
|
---|
2353 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2354 | # clobbered by the next message.
|
---|
2355 | exec 5>>./config.log
|
---|
2356 |
|
---|
2357 |
|
---|
2358 |
|
---|
2359 |
|
---|
2360 |
|
---|
2361 |
|
---|
2362 |
|
---|
2363 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
|
---|
2364 | if test "${enable_64_bit_bfd+set}" = set; then
|
---|
2365 | enableval="$enable_64_bit_bfd"
|
---|
2366 | case "${enableval}" in
|
---|
2367 | yes) want64=true ;;
|
---|
2368 | no) want64=false ;;
|
---|
2369 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
|
---|
2370 | esac
|
---|
2371 | else
|
---|
2372 | want64=false
|
---|
2373 | fi
|
---|
2374 | # Check whether --enable-targets or --disable-targets was given.
|
---|
2375 | if test "${enable_targets+set}" = set; then
|
---|
2376 | enableval="$enable_targets"
|
---|
2377 | case "${enableval}" in
|
---|
2378 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
---|
2379 | ;;
|
---|
2380 | no) enable_targets= ;;
|
---|
2381 | *) enable_targets=$enableval ;;
|
---|
2382 | esac
|
---|
2383 | fi
|
---|
2384 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
---|
2385 | if test "${enable_commonbfdlib+set}" = set; then
|
---|
2386 | enableval="$enable_commonbfdlib"
|
---|
2387 | case "${enableval}" in
|
---|
2388 | yes) commonbfdlib=true ;;
|
---|
2389 | no) commonbfdlib=false ;;
|
---|
2390 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
|
---|
2391 | esac
|
---|
2392 | fi
|
---|
2393 | # Check whether --with-mmap or --without-mmap was given.
|
---|
2394 | if test "${with_mmap+set}" = set; then
|
---|
2395 | withval="$with_mmap"
|
---|
2396 | case "${withval}" in
|
---|
2397 | yes) want_mmap=true ;;
|
---|
2398 | no) want_mmap=false ;;
|
---|
2399 | *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
|
---|
2400 | esac
|
---|
2401 | else
|
---|
2402 | want_mmap=false
|
---|
2403 | fi
|
---|
2404 |
|
---|
2405 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
---|
2406 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
---|
2407 | if test "${enable_build_warnings+set}" = set; then
|
---|
2408 | enableval="$enable_build_warnings"
|
---|
2409 | case "${enableval}" in
|
---|
2410 | yes) ;;
|
---|
2411 | no) build_warnings="-w";;
|
---|
2412 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2413 | build_warnings="${build_warnings} ${t}";;
|
---|
2414 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2415 | build_warnings="${t} ${build_warnings}";;
|
---|
2416 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
---|
2417 | esac
|
---|
2418 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
---|
2419 | echo "Setting warning flags = $build_warnings" 6>&1
|
---|
2420 | fi
|
---|
2421 | fi
|
---|
2422 | WARN_CFLAGS=""
|
---|
2423 | if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
|
---|
2424 | WARN_CFLAGS="${build_warnings}"
|
---|
2425 | fi
|
---|
2426 |
|
---|
2427 |
|
---|
2428 |
|
---|
2429 |
|
---|
2430 |
|
---|
2431 |
|
---|
2432 | if test -z "$target" ; then
|
---|
2433 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
---|
2434 | fi
|
---|
2435 |
|
---|
2436 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
2437 | echo "configure:2438: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
2438 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
2439 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
2440 | enableval="$enable_maintainer_mode"
|
---|
2441 | USE_MAINTAINER_MODE=$enableval
|
---|
2442 | else
|
---|
2443 | USE_MAINTAINER_MODE=no
|
---|
2444 | fi
|
---|
2445 |
|
---|
2446 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
2447 |
|
---|
2448 |
|
---|
2449 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
2450 | MAINTAINER_MODE_TRUE=
|
---|
2451 | MAINTAINER_MODE_FALSE='#'
|
---|
2452 | else
|
---|
2453 | MAINTAINER_MODE_TRUE='#'
|
---|
2454 | MAINTAINER_MODE_FALSE=
|
---|
2455 | fi
|
---|
2456 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
2457 |
|
---|
2458 |
|
---|
2459 | echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
|
---|
2460 | echo "configure:2461: checking whether to install libbfd" >&5
|
---|
2461 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
|
---|
2462 | if test "${enable_install_libbfd+set}" = set; then
|
---|
2463 | enableval="$enable_install_libbfd"
|
---|
2464 | install_libbfd_p=$enableval
|
---|
2465 | else
|
---|
2466 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
|
---|
2467 | install_libbfd_p=yes
|
---|
2468 | else
|
---|
2469 | install_libbfd_p=no
|
---|
2470 | fi
|
---|
2471 | fi
|
---|
2472 |
|
---|
2473 | echo "$ac_t""$install_libbfd_p" 1>&6
|
---|
2474 |
|
---|
2475 |
|
---|
2476 | if test $install_libbfd_p = yes; then
|
---|
2477 | INSTALL_LIBBFD_TRUE=
|
---|
2478 | INSTALL_LIBBFD_FALSE='#'
|
---|
2479 | else
|
---|
2480 | INSTALL_LIBBFD_TRUE='#'
|
---|
2481 | INSTALL_LIBBFD_FALSE=
|
---|
2482 | fi
|
---|
2483 | # libbfd.a is a host library containing target dependent code
|
---|
2484 | bfdlibdir='$(libdir)'
|
---|
2485 | bfdincludedir='$(includedir)'
|
---|
2486 | if test "${host}" != "${target}"; then
|
---|
2487 | bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
|
---|
2488 | bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
|
---|
2489 | fi
|
---|
2490 |
|
---|
2491 |
|
---|
2492 |
|
---|
2493 |
|
---|
2494 |
|
---|
2495 |
|
---|
2496 |
|
---|
2497 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
2498 | echo "configure:2499: checking for executable suffix" >&5
|
---|
2499 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
2500 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2501 | else
|
---|
2502 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
2503 | ac_cv_exeext=.exe
|
---|
2504 | else
|
---|
2505 | rm -f conftest*
|
---|
2506 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
2507 | ac_cv_exeext=
|
---|
2508 | if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
2509 | for file in conftest.*; do
|
---|
2510 | case $file in
|
---|
2511 | *.c | *.o | *.obj) ;;
|
---|
2512 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
2513 | esac
|
---|
2514 | done
|
---|
2515 | else
|
---|
2516 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
2517 | fi
|
---|
2518 | rm -f conftest*
|
---|
2519 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
2520 | fi
|
---|
2521 | fi
|
---|
2522 |
|
---|
2523 | EXEEXT=""
|
---|
2524 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
2525 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
2526 | ac_exeext=$EXEEXT
|
---|
2527 |
|
---|
2528 |
|
---|
2529 | host64=false
|
---|
2530 | target64=false
|
---|
2531 | bfd_default_target_size=32
|
---|
2532 |
|
---|
2533 | # host stuff:
|
---|
2534 |
|
---|
2535 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2536 | set dummy gcc; ac_word=$2
|
---|
2537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2538 | echo "configure:2539: checking for $ac_word" >&5
|
---|
2539 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2540 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2541 | else
|
---|
2542 | if test -n "$CC"; then
|
---|
2543 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2544 | else
|
---|
2545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2546 | ac_dummy="$PATH"
|
---|
2547 | for ac_dir in $ac_dummy; do
|
---|
2548 | test -z "$ac_dir" && ac_dir=.
|
---|
2549 | if test -f $ac_dir/$ac_word -o \
|
---|
2550 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2551 | ac_cv_prog_CC="gcc"
|
---|
2552 | break
|
---|
2553 | fi
|
---|
2554 | done
|
---|
2555 | IFS="$ac_save_ifs"
|
---|
2556 | fi
|
---|
2557 | fi
|
---|
2558 | CC="$ac_cv_prog_CC"
|
---|
2559 | if test -n "$CC"; then
|
---|
2560 | echo "$ac_t""$CC" 1>&6
|
---|
2561 | else
|
---|
2562 | echo "$ac_t""no" 1>&6
|
---|
2563 | fi
|
---|
2564 |
|
---|
2565 | if test -z "$CC"; then
|
---|
2566 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2567 | set dummy cc; ac_word=$2
|
---|
2568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2569 | echo "configure:2570: checking for $ac_word" >&5
|
---|
2570 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2571 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2572 | else
|
---|
2573 | if test -n "$CC"; then
|
---|
2574 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2575 | else
|
---|
2576 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2577 | ac_prog_rejected=no
|
---|
2578 | ac_dummy="$PATH"
|
---|
2579 | for ac_dir in $ac_dummy; do
|
---|
2580 | test -z "$ac_dir" && ac_dir=.
|
---|
2581 | if test -f $ac_dir/$ac_word -o \
|
---|
2582 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2583 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
2584 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
2585 | ac_prog_rejected=yes
|
---|
2586 | continue
|
---|
2587 | fi
|
---|
2588 | ac_cv_prog_CC="cc"
|
---|
2589 | break
|
---|
2590 | fi
|
---|
2591 | done
|
---|
2592 | IFS="$ac_save_ifs"
|
---|
2593 | if test $ac_prog_rejected = yes; then
|
---|
2594 | # We found a bogon in the path, so make sure we never use it.
|
---|
2595 | set dummy $ac_cv_prog_CC
|
---|
2596 | shift
|
---|
2597 | if test $# -gt 0; then
|
---|
2598 | # We chose a different compiler from the bogus one.
|
---|
2599 | # However, it has the same basename, so the bogon will be chosen
|
---|
2600 | # first if we set CC to just the basename; use the full file name.
|
---|
2601 | shift
|
---|
2602 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
2603 | shift
|
---|
2604 | ac_cv_prog_CC="$@"
|
---|
2605 | fi
|
---|
2606 | fi
|
---|
2607 | fi
|
---|
2608 | fi
|
---|
2609 | CC="$ac_cv_prog_CC"
|
---|
2610 | if test -n "$CC"; then
|
---|
2611 | echo "$ac_t""$CC" 1>&6
|
---|
2612 | else
|
---|
2613 | echo "$ac_t""no" 1>&6
|
---|
2614 | fi
|
---|
2615 |
|
---|
2616 | if test -z "$CC"; then
|
---|
2617 | case "`uname -s`" in
|
---|
2618 | *win32* | *WIN32*)
|
---|
2619 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
2620 | set dummy cl; ac_word=$2
|
---|
2621 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2622 | echo "configure:2623: checking for $ac_word" >&5
|
---|
2623 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2624 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2625 | else
|
---|
2626 | if test -n "$CC"; then
|
---|
2627 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2628 | else
|
---|
2629 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2630 | ac_dummy="$PATH"
|
---|
2631 | for ac_dir in $ac_dummy; do
|
---|
2632 | test -z "$ac_dir" && ac_dir=.
|
---|
2633 | if test -f $ac_dir/$ac_word -o \
|
---|
2634 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2635 | ac_cv_prog_CC="cl"
|
---|
2636 | break
|
---|
2637 | fi
|
---|
2638 | done
|
---|
2639 | IFS="$ac_save_ifs"
|
---|
2640 | fi
|
---|
2641 | fi
|
---|
2642 | CC="$ac_cv_prog_CC"
|
---|
2643 | if test -n "$CC"; then
|
---|
2644 | echo "$ac_t""$CC" 1>&6
|
---|
2645 | else
|
---|
2646 | echo "$ac_t""no" 1>&6
|
---|
2647 | fi
|
---|
2648 | ;;
|
---|
2649 | esac
|
---|
2650 | fi
|
---|
2651 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
2652 | fi
|
---|
2653 |
|
---|
2654 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
2655 | echo "configure:2656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
2656 |
|
---|
2657 | ac_ext=c
|
---|
2658 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2659 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2660 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2661 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2662 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2663 |
|
---|
2664 | cat > conftest.$ac_ext << EOF
|
---|
2665 |
|
---|
2666 | #line 2667 "configure"
|
---|
2667 | #include "confdefs.h"
|
---|
2668 |
|
---|
2669 | main(){return(0);}
|
---|
2670 | EOF
|
---|
2671 | if { (eval echo configure:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2672 | ac_cv_prog_cc_works=yes
|
---|
2673 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
2674 | if (./conftest; exit) 2>/dev/null; then
|
---|
2675 | ac_cv_prog_cc_cross=no
|
---|
2676 | else
|
---|
2677 | ac_cv_prog_cc_cross=yes
|
---|
2678 | fi
|
---|
2679 | else
|
---|
2680 | echo "configure: failed program was:" >&5
|
---|
2681 | cat conftest.$ac_ext >&5
|
---|
2682 | ac_cv_prog_cc_works=no
|
---|
2683 | fi
|
---|
2684 | rm -fr conftest*
|
---|
2685 | ac_ext=c
|
---|
2686 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2687 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2688 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2689 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2690 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2691 |
|
---|
2692 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
2693 | if test $ac_cv_prog_cc_works = no; then
|
---|
2694 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
2695 | fi
|
---|
2696 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
2697 | echo "configure:2698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
2698 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
2699 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2700 |
|
---|
2701 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
2702 | echo "configure:2703: checking whether we are using GNU C" >&5
|
---|
2703 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
2704 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2705 | else
|
---|
2706 | cat > conftest.c <<EOF
|
---|
2707 | #ifdef __GNUC__
|
---|
2708 | yes;
|
---|
2709 | #endif
|
---|
2710 | EOF
|
---|
2711 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
2712 | ac_cv_prog_gcc=yes
|
---|
2713 | else
|
---|
2714 | ac_cv_prog_gcc=no
|
---|
2715 | fi
|
---|
2716 | fi
|
---|
2717 |
|
---|
2718 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
2719 |
|
---|
2720 | if test $ac_cv_prog_gcc = yes; then
|
---|
2721 | GCC=yes
|
---|
2722 | else
|
---|
2723 | GCC=
|
---|
2724 | fi
|
---|
2725 |
|
---|
2726 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
2727 | ac_save_CFLAGS="$CFLAGS"
|
---|
2728 | CFLAGS=
|
---|
2729 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
2730 | echo "configure:2731: checking whether ${CC-cc} accepts -g" >&5
|
---|
2731 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
2732 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2733 | else
|
---|
2734 | echo 'void f(){}' > conftest.c
|
---|
2735 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
2736 | ac_cv_prog_cc_g=yes
|
---|
2737 | else
|
---|
2738 | ac_cv_prog_cc_g=no
|
---|
2739 | fi
|
---|
2740 | rm -f conftest*
|
---|
2741 |
|
---|
2742 | fi
|
---|
2743 |
|
---|
2744 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
2745 | if test "$ac_test_CFLAGS" = set; then
|
---|
2746 | CFLAGS="$ac_save_CFLAGS"
|
---|
2747 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2748 | if test "$GCC" = yes; then
|
---|
2749 | CFLAGS="-g -O2"
|
---|
2750 | else
|
---|
2751 | CFLAGS="-g"
|
---|
2752 | fi
|
---|
2753 | else
|
---|
2754 | if test "$GCC" = yes; then
|
---|
2755 | CFLAGS="-O2"
|
---|
2756 | else
|
---|
2757 | CFLAGS=
|
---|
2758 | fi
|
---|
2759 | fi
|
---|
2760 |
|
---|
2761 |
|
---|
2762 | ALL_LINGUAS="fr ja es sv da zh_CN"
|
---|
2763 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2764 | echo "configure:2765: checking how to run the C preprocessor" >&5
|
---|
2765 | # On Suns, sometimes $CPP names a directory.
|
---|
2766 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2767 | CPP=
|
---|
2768 | fi
|
---|
2769 | if test -z "$CPP"; then
|
---|
2770 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2771 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2772 | else
|
---|
2773 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2774 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2775 | CPP="${CC-cc} -E"
|
---|
2776 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2777 | # not just through cpp.
|
---|
2778 | cat > conftest.$ac_ext <<EOF
|
---|
2779 | #include <sys/types.h>
|
---|
2780 | #line 2781 "configure"
|
---|
2781 | #include "confdefs.h"
|
---|
2782 | #include <assert.h>
|
---|
2783 | Syntax Error
|
---|
2784 | EOF
|
---|
2785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2786 | { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2787 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2788 | if test -z "$ac_err"; then
|
---|
2789 | :
|
---|
2790 | else
|
---|
2791 | echo "$ac_err" >&5
|
---|
2792 | echo "configure: failed program was:" >&5
|
---|
2793 | cat conftest.$ac_ext >&5
|
---|
2794 | rm -rf conftest*
|
---|
2795 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2796 | cat > conftest.$ac_ext <<EOF
|
---|
2797 | #include <sys/types.h>
|
---|
2798 | #line 2799 "configure"
|
---|
2799 | #include "confdefs.h"
|
---|
2800 | #include <assert.h>
|
---|
2801 | Syntax Error
|
---|
2802 | EOF
|
---|
2803 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2804 | { (eval echo configure:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2805 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2806 | if test -z "$ac_err"; then
|
---|
2807 | :
|
---|
2808 | else
|
---|
2809 | echo "$ac_err" >&5
|
---|
2810 | echo "configure: failed program was:" >&5
|
---|
2811 | cat conftest.$ac_ext >&5
|
---|
2812 | rm -rf conftest*
|
---|
2813 | CPP="${CC-cc} -nologo -E"
|
---|
2814 | cat > conftest.$ac_ext <<EOF
|
---|
2815 | #include <sys/types.h>
|
---|
2816 | #line 2817 "configure"
|
---|
2817 | #include "confdefs.h"
|
---|
2818 | #include <assert.h>
|
---|
2819 | Syntax Error
|
---|
2820 | EOF
|
---|
2821 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2822 | { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2823 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2824 | if test -z "$ac_err"; then
|
---|
2825 | :
|
---|
2826 | else
|
---|
2827 | echo "$ac_err" >&5
|
---|
2828 | echo "configure: failed program was:" >&5
|
---|
2829 | cat conftest.$ac_ext >&5
|
---|
2830 | rm -rf conftest*
|
---|
2831 | CPP=/lib/cpp
|
---|
2832 | fi
|
---|
2833 | rm -f conftest*
|
---|
2834 | fi
|
---|
2835 | rm -f conftest*
|
---|
2836 | fi
|
---|
2837 | rm -f conftest*
|
---|
2838 | ac_cv_prog_CPP="$CPP"
|
---|
2839 | fi
|
---|
2840 | CPP="$ac_cv_prog_CPP"
|
---|
2841 | else
|
---|
2842 | ac_cv_prog_CPP="$CPP"
|
---|
2843 | fi
|
---|
2844 | echo "$ac_t""$CPP" 1>&6
|
---|
2845 |
|
---|
2846 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2847 | set dummy ranlib; ac_word=$2
|
---|
2848 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2849 | echo "configure:2850: checking for $ac_word" >&5
|
---|
2850 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2851 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2852 | else
|
---|
2853 | if test -n "$RANLIB"; then
|
---|
2854 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2855 | else
|
---|
2856 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2857 | ac_dummy="$PATH"
|
---|
2858 | for ac_dir in $ac_dummy; do
|
---|
2859 | test -z "$ac_dir" && ac_dir=.
|
---|
2860 | if test -f $ac_dir/$ac_word -o \
|
---|
2861 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2862 | ac_cv_prog_RANLIB="ranlib"
|
---|
2863 | break
|
---|
2864 | fi
|
---|
2865 | done
|
---|
2866 | IFS="$ac_save_ifs"
|
---|
2867 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2868 | fi
|
---|
2869 | fi
|
---|
2870 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2871 | if test -n "$RANLIB"; then
|
---|
2872 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2873 | else
|
---|
2874 | echo "$ac_t""no" 1>&6
|
---|
2875 | fi
|
---|
2876 |
|
---|
2877 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2878 | echo "configure:2879: checking for ANSI C header files" >&5
|
---|
2879 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2880 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2881 | else
|
---|
2882 | cat > conftest.$ac_ext <<EOF
|
---|
2883 | #include <sys/types.h>
|
---|
2884 | #line 2885 "configure"
|
---|
2885 | #include "confdefs.h"
|
---|
2886 | #include <stdlib.h>
|
---|
2887 | #include <stdarg.h>
|
---|
2888 | #include <string.h>
|
---|
2889 | #include <float.h>
|
---|
2890 | EOF
|
---|
2891 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2892 | { (eval echo configure:2893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2893 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2894 | if test -z "$ac_err"; then
|
---|
2895 | rm -rf conftest*
|
---|
2896 | ac_cv_header_stdc=yes
|
---|
2897 | else
|
---|
2898 | echo "$ac_err" >&5
|
---|
2899 | echo "configure: failed program was:" >&5
|
---|
2900 | cat conftest.$ac_ext >&5
|
---|
2901 | rm -rf conftest*
|
---|
2902 | ac_cv_header_stdc=no
|
---|
2903 | fi
|
---|
2904 | rm -f conftest*
|
---|
2905 |
|
---|
2906 | if test $ac_cv_header_stdc = yes; then
|
---|
2907 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2908 | cat > conftest.$ac_ext <<EOF
|
---|
2909 | #line 2910 "configure"
|
---|
2910 | #include "confdefs.h"
|
---|
2911 | #include <string.h>
|
---|
2912 | EOF
|
---|
2913 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2914 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2915 | :
|
---|
2916 | else
|
---|
2917 | rm -rf conftest*
|
---|
2918 | ac_cv_header_stdc=no
|
---|
2919 | fi
|
---|
2920 | rm -f conftest*
|
---|
2921 |
|
---|
2922 | fi
|
---|
2923 |
|
---|
2924 | if test $ac_cv_header_stdc = yes; then
|
---|
2925 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2926 | cat > conftest.$ac_ext <<EOF
|
---|
2927 | #line 2928 "configure"
|
---|
2928 | #include "confdefs.h"
|
---|
2929 | #include <stdlib.h>
|
---|
2930 | EOF
|
---|
2931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2932 | egrep "free" >/dev/null 2>&1; then
|
---|
2933 | :
|
---|
2934 | else
|
---|
2935 | rm -rf conftest*
|
---|
2936 | ac_cv_header_stdc=no
|
---|
2937 | fi
|
---|
2938 | rm -f conftest*
|
---|
2939 |
|
---|
2940 | fi
|
---|
2941 |
|
---|
2942 | if test $ac_cv_header_stdc = yes; then
|
---|
2943 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2944 | if test "$cross_compiling" = yes; then
|
---|
2945 | :
|
---|
2946 | else
|
---|
2947 | cat > conftest.$ac_ext <<EOF
|
---|
2948 | #line 2949 "configure"
|
---|
2949 | #include "confdefs.h"
|
---|
2950 | #include <ctype.h>
|
---|
2951 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2952 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2953 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2954 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2955 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2956 | exit (0); }
|
---|
2957 |
|
---|
2958 | EOF
|
---|
2959 | if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2960 | then
|
---|
2961 | :
|
---|
2962 | else
|
---|
2963 | echo "configure: failed program was:" >&5
|
---|
2964 | cat conftest.$ac_ext >&5
|
---|
2965 | rm -fr conftest*
|
---|
2966 | ac_cv_header_stdc=no
|
---|
2967 | fi
|
---|
2968 | rm -fr conftest*
|
---|
2969 | fi
|
---|
2970 |
|
---|
2971 | fi
|
---|
2972 | fi
|
---|
2973 |
|
---|
2974 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2975 | if test $ac_cv_header_stdc = yes; then
|
---|
2976 | cat >> confdefs.h <<\EOF
|
---|
2977 | #define STDC_HEADERS 1
|
---|
2978 | EOF
|
---|
2979 |
|
---|
2980 | fi
|
---|
2981 |
|
---|
2982 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
2983 | echo "configure:2984: checking for working const" >&5
|
---|
2984 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
2985 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2986 | else
|
---|
2987 | cat > conftest.$ac_ext <<EOF
|
---|
2988 | #line 2989 "configure"
|
---|
2989 | #include "confdefs.h"
|
---|
2990 |
|
---|
2991 | int main() {
|
---|
2992 |
|
---|
2993 | /* Ultrix mips cc rejects this. */
|
---|
2994 | typedef int charset[2]; const charset x;
|
---|
2995 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2996 | char const *const *ccp;
|
---|
2997 | char **p;
|
---|
2998 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2999 | struct point {int x, y;};
|
---|
3000 | static struct point const zero = {0,0};
|
---|
3001 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
3002 | It does not let you subtract one const X* pointer from another in an arm
|
---|
3003 | of an if-expression whose if-part is not a constant expression */
|
---|
3004 | const char *g = "string";
|
---|
3005 | ccp = &g + (g ? g-g : 0);
|
---|
3006 | /* HPUX 7.0 cc rejects these. */
|
---|
3007 | ++ccp;
|
---|
3008 | p = (char**) ccp;
|
---|
3009 | ccp = (char const *const *) p;
|
---|
3010 | { /* SCO 3.2v4 cc rejects this. */
|
---|
3011 | char *t;
|
---|
3012 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
3013 |
|
---|
3014 | *t++ = 0;
|
---|
3015 | }
|
---|
3016 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
3017 | int x[] = {25, 17};
|
---|
3018 | const int *foo = &x[0];
|
---|
3019 | ++foo;
|
---|
3020 | }
|
---|
3021 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
3022 | typedef const int *iptr;
|
---|
3023 | iptr p = 0;
|
---|
3024 | ++p;
|
---|
3025 | }
|
---|
3026 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
3027 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
3028 | struct s { int j; const int *ap[3]; };
|
---|
3029 | struct s *b; b->j = 5;
|
---|
3030 | }
|
---|
3031 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
3032 | const int foo = 10;
|
---|
3033 | }
|
---|
3034 |
|
---|
3035 | ; return 0; }
|
---|
3036 | EOF
|
---|
3037 | if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3038 | rm -rf conftest*
|
---|
3039 | ac_cv_c_const=yes
|
---|
3040 | else
|
---|
3041 | echo "configure: failed program was:" >&5
|
---|
3042 | cat conftest.$ac_ext >&5
|
---|
3043 | rm -rf conftest*
|
---|
3044 | ac_cv_c_const=no
|
---|
3045 | fi
|
---|
3046 | rm -f conftest*
|
---|
3047 | fi
|
---|
3048 |
|
---|
3049 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
3050 | if test $ac_cv_c_const = no; then
|
---|
3051 | cat >> confdefs.h <<\EOF
|
---|
3052 | #define const
|
---|
3053 | EOF
|
---|
3054 |
|
---|
3055 | fi
|
---|
3056 |
|
---|
3057 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
3058 | echo "configure:3059: checking for inline" >&5
|
---|
3059 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
3060 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3061 | else
|
---|
3062 | ac_cv_c_inline=no
|
---|
3063 | for ac_kw in inline __inline__ __inline; do
|
---|
3064 | cat > conftest.$ac_ext <<EOF
|
---|
3065 | #line 3066 "configure"
|
---|
3066 | #include "confdefs.h"
|
---|
3067 |
|
---|
3068 | int main() {
|
---|
3069 | } $ac_kw foo() {
|
---|
3070 | ; return 0; }
|
---|
3071 | EOF
|
---|
3072 | if { (eval echo configure:3073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3073 | rm -rf conftest*
|
---|
3074 | ac_cv_c_inline=$ac_kw; break
|
---|
3075 | else
|
---|
3076 | echo "configure: failed program was:" >&5
|
---|
3077 | cat conftest.$ac_ext >&5
|
---|
3078 | fi
|
---|
3079 | rm -f conftest*
|
---|
3080 | done
|
---|
3081 |
|
---|
3082 | fi
|
---|
3083 |
|
---|
3084 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
3085 | case "$ac_cv_c_inline" in
|
---|
3086 | inline | yes) ;;
|
---|
3087 | no) cat >> confdefs.h <<\EOF
|
---|
3088 | #define inline
|
---|
3089 | EOF
|
---|
3090 | ;;
|
---|
3091 | *) cat >> confdefs.h <<EOF
|
---|
3092 | #define inline $ac_cv_c_inline
|
---|
3093 | EOF
|
---|
3094 | ;;
|
---|
3095 | esac
|
---|
3096 |
|
---|
3097 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
3098 | echo "configure:3099: checking for off_t" >&5
|
---|
3099 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
3100 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3101 | else
|
---|
3102 | cat > conftest.$ac_ext <<EOF
|
---|
3103 | #line 3104 "configure"
|
---|
3104 | #include "confdefs.h"
|
---|
3105 | #include <sys/types.h>
|
---|
3106 | #if STDC_HEADERS
|
---|
3107 | #include <stdlib.h>
|
---|
3108 | #include <stddef.h>
|
---|
3109 | #endif
|
---|
3110 | EOF
|
---|
3111 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3112 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3113 | rm -rf conftest*
|
---|
3114 | ac_cv_type_off_t=yes
|
---|
3115 | else
|
---|
3116 | rm -rf conftest*
|
---|
3117 | ac_cv_type_off_t=no
|
---|
3118 | fi
|
---|
3119 | rm -f conftest*
|
---|
3120 |
|
---|
3121 | fi
|
---|
3122 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
3123 | if test $ac_cv_type_off_t = no; then
|
---|
3124 | cat >> confdefs.h <<\EOF
|
---|
3125 | #define off_t long
|
---|
3126 | EOF
|
---|
3127 |
|
---|
3128 | fi
|
---|
3129 |
|
---|
3130 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
3131 | echo "configure:3132: checking for size_t" >&5
|
---|
3132 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
3133 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3134 | else
|
---|
3135 | cat > conftest.$ac_ext <<EOF
|
---|
3136 | #line 3137 "configure"
|
---|
3137 | #include "confdefs.h"
|
---|
3138 | #include <sys/types.h>
|
---|
3139 | #if STDC_HEADERS
|
---|
3140 | #include <stdlib.h>
|
---|
3141 | #include <stddef.h>
|
---|
3142 | #endif
|
---|
3143 | EOF
|
---|
3144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3145 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3146 | rm -rf conftest*
|
---|
3147 | ac_cv_type_size_t=yes
|
---|
3148 | else
|
---|
3149 | rm -rf conftest*
|
---|
3150 | ac_cv_type_size_t=no
|
---|
3151 | fi
|
---|
3152 | rm -f conftest*
|
---|
3153 |
|
---|
3154 | fi
|
---|
3155 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
3156 | if test $ac_cv_type_size_t = no; then
|
---|
3157 | cat >> confdefs.h <<\EOF
|
---|
3158 | #define size_t unsigned
|
---|
3159 | EOF
|
---|
3160 |
|
---|
3161 | fi
|
---|
3162 |
|
---|
3163 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
3164 | # for constant arguments. Useless!
|
---|
3165 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
3166 | echo "configure:3167: checking for working alloca.h" >&5
|
---|
3167 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
3168 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3169 | else
|
---|
3170 | cat > conftest.$ac_ext <<EOF
|
---|
3171 | #line 3172 "configure"
|
---|
3172 | #include "confdefs.h"
|
---|
3173 | #include <alloca.h>
|
---|
3174 | int main() {
|
---|
3175 | char *p = alloca(2 * sizeof(int));
|
---|
3176 | ; return 0; }
|
---|
3177 | EOF
|
---|
3178 | if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3179 | rm -rf conftest*
|
---|
3180 | ac_cv_header_alloca_h=yes
|
---|
3181 | else
|
---|
3182 | echo "configure: failed program was:" >&5
|
---|
3183 | cat conftest.$ac_ext >&5
|
---|
3184 | rm -rf conftest*
|
---|
3185 | ac_cv_header_alloca_h=no
|
---|
3186 | fi
|
---|
3187 | rm -f conftest*
|
---|
3188 | fi
|
---|
3189 |
|
---|
3190 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
3191 | if test $ac_cv_header_alloca_h = yes; then
|
---|
3192 | cat >> confdefs.h <<\EOF
|
---|
3193 | #define HAVE_ALLOCA_H 1
|
---|
3194 | EOF
|
---|
3195 |
|
---|
3196 | fi
|
---|
3197 |
|
---|
3198 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
3199 | echo "configure:3200: checking for alloca" >&5
|
---|
3200 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
3201 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3202 | else
|
---|
3203 | cat > conftest.$ac_ext <<EOF
|
---|
3204 | #line 3205 "configure"
|
---|
3205 | #include "confdefs.h"
|
---|
3206 |
|
---|
3207 | #ifdef __GNUC__
|
---|
3208 | # define alloca __builtin_alloca
|
---|
3209 | #else
|
---|
3210 | # ifdef _MSC_VER
|
---|
3211 | # include <malloc.h>
|
---|
3212 | # define alloca _alloca
|
---|
3213 | # else
|
---|
3214 | # if HAVE_ALLOCA_H
|
---|
3215 | # include <alloca.h>
|
---|
3216 | # else
|
---|
3217 | # ifdef _AIX
|
---|
3218 | #pragma alloca
|
---|
3219 | # else
|
---|
3220 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
3221 | char *alloca ();
|
---|
3222 | # endif
|
---|
3223 | # endif
|
---|
3224 | # endif
|
---|
3225 | # endif
|
---|
3226 | #endif
|
---|
3227 |
|
---|
3228 | int main() {
|
---|
3229 | char *p = (char *) alloca(1);
|
---|
3230 | ; return 0; }
|
---|
3231 | EOF
|
---|
3232 | if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3233 | rm -rf conftest*
|
---|
3234 | ac_cv_func_alloca_works=yes
|
---|
3235 | else
|
---|
3236 | echo "configure: failed program was:" >&5
|
---|
3237 | cat conftest.$ac_ext >&5
|
---|
3238 | rm -rf conftest*
|
---|
3239 | ac_cv_func_alloca_works=no
|
---|
3240 | fi
|
---|
3241 | rm -f conftest*
|
---|
3242 | fi
|
---|
3243 |
|
---|
3244 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
3245 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3246 | cat >> confdefs.h <<\EOF
|
---|
3247 | #define HAVE_ALLOCA 1
|
---|
3248 | EOF
|
---|
3249 |
|
---|
3250 | fi
|
---|
3251 |
|
---|
3252 | if test $ac_cv_func_alloca_works = no; then
|
---|
3253 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3254 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3255 | # contain a buggy version. If you still want to use their alloca,
|
---|
3256 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3257 | ALLOCA=alloca.${ac_objext}
|
---|
3258 | cat >> confdefs.h <<\EOF
|
---|
3259 | #define C_ALLOCA 1
|
---|
3260 | EOF
|
---|
3261 |
|
---|
3262 |
|
---|
3263 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
3264 | echo "configure:3265: checking whether alloca needs Cray hooks" >&5
|
---|
3265 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
3266 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3267 | else
|
---|
3268 | cat > conftest.$ac_ext <<EOF
|
---|
3269 | #line 3270 "configure"
|
---|
3270 | #include "confdefs.h"
|
---|
3271 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3272 | webecray
|
---|
3273 | #else
|
---|
3274 | wenotbecray
|
---|
3275 | #endif
|
---|
3276 |
|
---|
3277 | EOF
|
---|
3278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3279 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3280 | rm -rf conftest*
|
---|
3281 | ac_cv_os_cray=yes
|
---|
3282 | else
|
---|
3283 | rm -rf conftest*
|
---|
3284 | ac_cv_os_cray=no
|
---|
3285 | fi
|
---|
3286 | rm -f conftest*
|
---|
3287 |
|
---|
3288 | fi
|
---|
3289 |
|
---|
3290 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
3291 | if test $ac_cv_os_cray = yes; then
|
---|
3292 | for ac_func in _getb67 GETB67 getb67; do
|
---|
3293 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3294 | echo "configure:3295: checking for $ac_func" >&5
|
---|
3295 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3296 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3297 | else
|
---|
3298 | cat > conftest.$ac_ext <<EOF
|
---|
3299 | #line 3300 "configure"
|
---|
3300 | #include "confdefs.h"
|
---|
3301 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3302 | which can conflict with char $ac_func(); below. */
|
---|
3303 | #include <assert.h>
|
---|
3304 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3305 | /* We use char because int might match the return type of a gcc2
|
---|
3306 | builtin and then its argument prototype would still apply. */
|
---|
3307 | char $ac_func();
|
---|
3308 |
|
---|
3309 | int main() {
|
---|
3310 |
|
---|
3311 | /* The GNU C library defines this for functions which it implements
|
---|
3312 | to always fail with ENOSYS. Some functions are actually named
|
---|
3313 | something starting with __ and the normal name is an alias. */
|
---|
3314 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3315 | choke me
|
---|
3316 | #else
|
---|
3317 | $ac_func();
|
---|
3318 | #endif
|
---|
3319 |
|
---|
3320 | ; return 0; }
|
---|
3321 | EOF
|
---|
3322 | if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3323 | rm -rf conftest*
|
---|
3324 | eval "ac_cv_func_$ac_func=yes"
|
---|
3325 | else
|
---|
3326 | echo "configure: failed program was:" >&5
|
---|
3327 | cat conftest.$ac_ext >&5
|
---|
3328 | rm -rf conftest*
|
---|
3329 | eval "ac_cv_func_$ac_func=no"
|
---|
3330 | fi
|
---|
3331 | rm -f conftest*
|
---|
3332 | fi
|
---|
3333 |
|
---|
3334 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3335 | echo "$ac_t""yes" 1>&6
|
---|
3336 | cat >> confdefs.h <<EOF
|
---|
3337 | #define CRAY_STACKSEG_END $ac_func
|
---|
3338 | EOF
|
---|
3339 |
|
---|
3340 | break
|
---|
3341 | else
|
---|
3342 | echo "$ac_t""no" 1>&6
|
---|
3343 | fi
|
---|
3344 |
|
---|
3345 | done
|
---|
3346 | fi
|
---|
3347 |
|
---|
3348 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
3349 | echo "configure:3350: checking stack direction for C alloca" >&5
|
---|
3350 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
3351 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3352 | else
|
---|
3353 | if test "$cross_compiling" = yes; then
|
---|
3354 | ac_cv_c_stack_direction=0
|
---|
3355 | else
|
---|
3356 | cat > conftest.$ac_ext <<EOF
|
---|
3357 | #line 3358 "configure"
|
---|
3358 | #include "confdefs.h"
|
---|
3359 | find_stack_direction ()
|
---|
3360 | {
|
---|
3361 | static char *addr = 0;
|
---|
3362 | auto char dummy;
|
---|
3363 | if (addr == 0)
|
---|
3364 | {
|
---|
3365 | addr = &dummy;
|
---|
3366 | return find_stack_direction ();
|
---|
3367 | }
|
---|
3368 | else
|
---|
3369 | return (&dummy > addr) ? 1 : -1;
|
---|
3370 | }
|
---|
3371 | main ()
|
---|
3372 | {
|
---|
3373 | exit (find_stack_direction() < 0);
|
---|
3374 | }
|
---|
3375 | EOF
|
---|
3376 | if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3377 | then
|
---|
3378 | ac_cv_c_stack_direction=1
|
---|
3379 | else
|
---|
3380 | echo "configure: failed program was:" >&5
|
---|
3381 | cat conftest.$ac_ext >&5
|
---|
3382 | rm -fr conftest*
|
---|
3383 | ac_cv_c_stack_direction=-1
|
---|
3384 | fi
|
---|
3385 | rm -fr conftest*
|
---|
3386 | fi
|
---|
3387 |
|
---|
3388 | fi
|
---|
3389 |
|
---|
3390 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
3391 | cat >> confdefs.h <<EOF
|
---|
3392 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
3393 | EOF
|
---|
3394 |
|
---|
3395 | fi
|
---|
3396 |
|
---|
3397 | for ac_hdr in unistd.h
|
---|
3398 | do
|
---|
3399 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3400 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3401 | echo "configure:3402: checking for $ac_hdr" >&5
|
---|
3402 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3403 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3404 | else
|
---|
3405 | cat > conftest.$ac_ext <<EOF
|
---|
3406 | #include <sys/types.h>
|
---|
3407 | #line 3408 "configure"
|
---|
3408 | #include "confdefs.h"
|
---|
3409 | #include <$ac_hdr>
|
---|
3410 | EOF
|
---|
3411 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3412 | { (eval echo configure:3413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3413 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3414 | if test -z "$ac_err"; then
|
---|
3415 | rm -rf conftest*
|
---|
3416 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3417 | else
|
---|
3418 | echo "$ac_err" >&5
|
---|
3419 | echo "configure: failed program was:" >&5
|
---|
3420 | cat conftest.$ac_ext >&5
|
---|
3421 | rm -rf conftest*
|
---|
3422 | eval "ac_cv_header_$ac_safe=no"
|
---|
3423 | fi
|
---|
3424 | rm -f conftest*
|
---|
3425 | fi
|
---|
3426 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3427 | echo "$ac_t""yes" 1>&6
|
---|
3428 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3429 | cat >> confdefs.h <<EOF
|
---|
3430 | #define $ac_tr_hdr 1
|
---|
3431 | EOF
|
---|
3432 |
|
---|
3433 | else
|
---|
3434 | echo "$ac_t""no" 1>&6
|
---|
3435 | fi
|
---|
3436 | done
|
---|
3437 |
|
---|
3438 | for ac_func in getpagesize
|
---|
3439 | do
|
---|
3440 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3441 | echo "configure:3442: checking for $ac_func" >&5
|
---|
3442 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3443 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3444 | else
|
---|
3445 | cat > conftest.$ac_ext <<EOF
|
---|
3446 | #line 3447 "configure"
|
---|
3447 | #include "confdefs.h"
|
---|
3448 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3449 | which can conflict with char $ac_func(); below. */
|
---|
3450 | #include <assert.h>
|
---|
3451 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3452 | /* We use char because int might match the return type of a gcc2
|
---|
3453 | builtin and then its argument prototype would still apply. */
|
---|
3454 | char $ac_func();
|
---|
3455 |
|
---|
3456 | int main() {
|
---|
3457 |
|
---|
3458 | /* The GNU C library defines this for functions which it implements
|
---|
3459 | to always fail with ENOSYS. Some functions are actually named
|
---|
3460 | something starting with __ and the normal name is an alias. */
|
---|
3461 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3462 | choke me
|
---|
3463 | #else
|
---|
3464 | $ac_func();
|
---|
3465 | #endif
|
---|
3466 |
|
---|
3467 | ; return 0; }
|
---|
3468 | EOF
|
---|
3469 | if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3470 | rm -rf conftest*
|
---|
3471 | eval "ac_cv_func_$ac_func=yes"
|
---|
3472 | else
|
---|
3473 | echo "configure: failed program was:" >&5
|
---|
3474 | cat conftest.$ac_ext >&5
|
---|
3475 | rm -rf conftest*
|
---|
3476 | eval "ac_cv_func_$ac_func=no"
|
---|
3477 | fi
|
---|
3478 | rm -f conftest*
|
---|
3479 | fi
|
---|
3480 |
|
---|
3481 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3482 | echo "$ac_t""yes" 1>&6
|
---|
3483 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3484 | cat >> confdefs.h <<EOF
|
---|
3485 | #define $ac_tr_func 1
|
---|
3486 | EOF
|
---|
3487 |
|
---|
3488 | else
|
---|
3489 | echo "$ac_t""no" 1>&6
|
---|
3490 | fi
|
---|
3491 | done
|
---|
3492 |
|
---|
3493 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
3494 | echo "configure:3495: checking for working mmap" >&5
|
---|
3495 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
3496 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3497 | else
|
---|
3498 | if test "$cross_compiling" = yes; then
|
---|
3499 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3500 | else
|
---|
3501 | cat > conftest.$ac_ext <<EOF
|
---|
3502 | #line 3503 "configure"
|
---|
3503 | #include "confdefs.h"
|
---|
3504 |
|
---|
3505 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
3506 | Here is a matrix of mmap possibilities:
|
---|
3507 | mmap private not fixed
|
---|
3508 | mmap private fixed at somewhere currently unmapped
|
---|
3509 | mmap private fixed at somewhere already mapped
|
---|
3510 | mmap shared not fixed
|
---|
3511 | mmap shared fixed at somewhere currently unmapped
|
---|
3512 | mmap shared fixed at somewhere already mapped
|
---|
3513 | For private mappings, we should verify that changes cannot be read()
|
---|
3514 | back from the file, nor mmap's back from the file at a different
|
---|
3515 | address. (There have been systems where private was not correctly
|
---|
3516 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
3517 | VM page cache was not coherent with the filesystem buffer cache
|
---|
3518 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
3519 | For shared mappings, we should conversely verify that changes get
|
---|
3520 | propogated back to all the places they're supposed to be.
|
---|
3521 |
|
---|
3522 | Grep wants private fixed already mapped.
|
---|
3523 | The main things grep needs to know about mmap are:
|
---|
3524 | * does it exist and is it safe to write into the mmap'd area
|
---|
3525 | * how to use it (BSD variants) */
|
---|
3526 | #include <sys/types.h>
|
---|
3527 | #include <fcntl.h>
|
---|
3528 | #include <sys/mman.h>
|
---|
3529 |
|
---|
3530 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
3531 | #ifndef HAVE_GETPAGESIZE
|
---|
3532 | # ifdef HAVE_UNISTD_H
|
---|
3533 | # include <unistd.h>
|
---|
3534 | # endif
|
---|
3535 |
|
---|
3536 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
3537 | # ifndef HAVE_SYS_PARAM_H
|
---|
3538 | # define HAVE_SYS_PARAM_H 1
|
---|
3539 | # endif
|
---|
3540 |
|
---|
3541 | # ifdef _SC_PAGESIZE
|
---|
3542 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
3543 | # else /* no _SC_PAGESIZE */
|
---|
3544 | # ifdef HAVE_SYS_PARAM_H
|
---|
3545 | # include <sys/param.h>
|
---|
3546 | # ifdef EXEC_PAGESIZE
|
---|
3547 | # define getpagesize() EXEC_PAGESIZE
|
---|
3548 | # else /* no EXEC_PAGESIZE */
|
---|
3549 | # ifdef NBPG
|
---|
3550 | # define getpagesize() NBPG * CLSIZE
|
---|
3551 | # ifndef CLSIZE
|
---|
3552 | # define CLSIZE 1
|
---|
3553 | # endif /* no CLSIZE */
|
---|
3554 | # else /* no NBPG */
|
---|
3555 | # ifdef NBPC
|
---|
3556 | # define getpagesize() NBPC
|
---|
3557 | # else /* no NBPC */
|
---|
3558 | # ifdef PAGESIZE
|
---|
3559 | # define getpagesize() PAGESIZE
|
---|
3560 | # endif /* PAGESIZE */
|
---|
3561 | # endif /* no NBPC */
|
---|
3562 | # endif /* no NBPG */
|
---|
3563 | # endif /* no EXEC_PAGESIZE */
|
---|
3564 | # else /* no HAVE_SYS_PARAM_H */
|
---|
3565 | # define getpagesize() 8192 /* punt totally */
|
---|
3566 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
3567 | # endif /* no _SC_PAGESIZE */
|
---|
3568 |
|
---|
3569 | #endif /* no HAVE_GETPAGESIZE */
|
---|
3570 |
|
---|
3571 | #ifdef __cplusplus
|
---|
3572 | extern "C" { void *malloc(unsigned); }
|
---|
3573 | #else
|
---|
3574 | char *malloc();
|
---|
3575 | #endif
|
---|
3576 |
|
---|
3577 | int
|
---|
3578 | main()
|
---|
3579 | {
|
---|
3580 | char *data, *data2, *data3;
|
---|
3581 | int i, pagesize;
|
---|
3582 | int fd;
|
---|
3583 |
|
---|
3584 | pagesize = getpagesize();
|
---|
3585 |
|
---|
3586 | /*
|
---|
3587 | * First, make a file with some known garbage in it.
|
---|
3588 | */
|
---|
3589 | data = malloc(pagesize);
|
---|
3590 | if (!data)
|
---|
3591 | exit(1);
|
---|
3592 | for (i = 0; i < pagesize; ++i)
|
---|
3593 | *(data + i) = rand();
|
---|
3594 | umask(0);
|
---|
3595 | fd = creat("conftestmmap", 0600);
|
---|
3596 | if (fd < 0)
|
---|
3597 | exit(1);
|
---|
3598 | if (write(fd, data, pagesize) != pagesize)
|
---|
3599 | exit(1);
|
---|
3600 | close(fd);
|
---|
3601 |
|
---|
3602 | /*
|
---|
3603 | * Next, try to mmap the file at a fixed address which
|
---|
3604 | * already has something else allocated at it. If we can,
|
---|
3605 | * also make sure that we see the same garbage.
|
---|
3606 | */
|
---|
3607 | fd = open("conftestmmap", O_RDWR);
|
---|
3608 | if (fd < 0)
|
---|
3609 | exit(1);
|
---|
3610 | data2 = malloc(2 * pagesize);
|
---|
3611 | if (!data2)
|
---|
3612 | exit(1);
|
---|
3613 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
3614 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
3615 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
3616 | exit(1);
|
---|
3617 | for (i = 0; i < pagesize; ++i)
|
---|
3618 | if (*(data + i) != *(data2 + i))
|
---|
3619 | exit(1);
|
---|
3620 |
|
---|
3621 | /*
|
---|
3622 | * Finally, make sure that changes to the mapped area
|
---|
3623 | * do not percolate back to the file as seen by read().
|
---|
3624 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
3625 | */
|
---|
3626 | for (i = 0; i < pagesize; ++i)
|
---|
3627 | *(data2 + i) = *(data2 + i) + 1;
|
---|
3628 | data3 = malloc(pagesize);
|
---|
3629 | if (!data3)
|
---|
3630 | exit(1);
|
---|
3631 | if (read(fd, data3, pagesize) != pagesize)
|
---|
3632 | exit(1);
|
---|
3633 | for (i = 0; i < pagesize; ++i)
|
---|
3634 | if (*(data + i) != *(data3 + i))
|
---|
3635 | exit(1);
|
---|
3636 | close(fd);
|
---|
3637 | unlink("conftestmmap");
|
---|
3638 | exit(0);
|
---|
3639 | }
|
---|
3640 |
|
---|
3641 | EOF
|
---|
3642 | if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3643 | then
|
---|
3644 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
3645 | else
|
---|
3646 | echo "configure: failed program was:" >&5
|
---|
3647 | cat conftest.$ac_ext >&5
|
---|
3648 | rm -fr conftest*
|
---|
3649 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3650 | fi
|
---|
3651 | rm -fr conftest*
|
---|
3652 | fi
|
---|
3653 |
|
---|
3654 | fi
|
---|
3655 |
|
---|
3656 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
3657 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
3658 | cat >> confdefs.h <<\EOF
|
---|
3659 | #define HAVE_MMAP 1
|
---|
3660 | EOF
|
---|
3661 |
|
---|
3662 | fi
|
---|
3663 |
|
---|
3664 |
|
---|
3665 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
3666 | unistd.h values.h sys/param.h
|
---|
3667 | do
|
---|
3668 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3669 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3670 | echo "configure:3671: checking for $ac_hdr" >&5
|
---|
3671 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3672 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3673 | else
|
---|
3674 | cat > conftest.$ac_ext <<EOF
|
---|
3675 | #include <sys/types.h>
|
---|
3676 | #line 3677 "configure"
|
---|
3677 | #include "confdefs.h"
|
---|
3678 | #include <$ac_hdr>
|
---|
3679 | EOF
|
---|
3680 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3681 | { (eval echo configure:3682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3682 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3683 | if test -z "$ac_err"; then
|
---|
3684 | rm -rf conftest*
|
---|
3685 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3686 | else
|
---|
3687 | echo "$ac_err" >&5
|
---|
3688 | echo "configure: failed program was:" >&5
|
---|
3689 | cat conftest.$ac_ext >&5
|
---|
3690 | rm -rf conftest*
|
---|
3691 | eval "ac_cv_header_$ac_safe=no"
|
---|
3692 | fi
|
---|
3693 | rm -f conftest*
|
---|
3694 | fi
|
---|
3695 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3696 | echo "$ac_t""yes" 1>&6
|
---|
3697 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3698 | cat >> confdefs.h <<EOF
|
---|
3699 | #define $ac_tr_hdr 1
|
---|
3700 | EOF
|
---|
3701 |
|
---|
3702 | else
|
---|
3703 | echo "$ac_t""no" 1>&6
|
---|
3704 | fi
|
---|
3705 | done
|
---|
3706 |
|
---|
3707 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
3708 | __argz_count __argz_stringify __argz_next
|
---|
3709 | do
|
---|
3710 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3711 | echo "configure:3712: checking for $ac_func" >&5
|
---|
3712 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3713 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3714 | else
|
---|
3715 | cat > conftest.$ac_ext <<EOF
|
---|
3716 | #line 3717 "configure"
|
---|
3717 | #include "confdefs.h"
|
---|
3718 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3719 | which can conflict with char $ac_func(); below. */
|
---|
3720 | #include <assert.h>
|
---|
3721 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3722 | /* We use char because int might match the return type of a gcc2
|
---|
3723 | builtin and then its argument prototype would still apply. */
|
---|
3724 | char $ac_func();
|
---|
3725 |
|
---|
3726 | int main() {
|
---|
3727 |
|
---|
3728 | /* The GNU C library defines this for functions which it implements
|
---|
3729 | to always fail with ENOSYS. Some functions are actually named
|
---|
3730 | something starting with __ and the normal name is an alias. */
|
---|
3731 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3732 | choke me
|
---|
3733 | #else
|
---|
3734 | $ac_func();
|
---|
3735 | #endif
|
---|
3736 |
|
---|
3737 | ; return 0; }
|
---|
3738 | EOF
|
---|
3739 | if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3740 | rm -rf conftest*
|
---|
3741 | eval "ac_cv_func_$ac_func=yes"
|
---|
3742 | else
|
---|
3743 | echo "configure: failed program was:" >&5
|
---|
3744 | cat conftest.$ac_ext >&5
|
---|
3745 | rm -rf conftest*
|
---|
3746 | eval "ac_cv_func_$ac_func=no"
|
---|
3747 | fi
|
---|
3748 | rm -f conftest*
|
---|
3749 | fi
|
---|
3750 |
|
---|
3751 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3752 | echo "$ac_t""yes" 1>&6
|
---|
3753 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3754 | cat >> confdefs.h <<EOF
|
---|
3755 | #define $ac_tr_func 1
|
---|
3756 | EOF
|
---|
3757 |
|
---|
3758 | else
|
---|
3759 | echo "$ac_t""no" 1>&6
|
---|
3760 | fi
|
---|
3761 | done
|
---|
3762 |
|
---|
3763 |
|
---|
3764 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
3765 | for ac_func in stpcpy
|
---|
3766 | do
|
---|
3767 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3768 | echo "configure:3769: checking for $ac_func" >&5
|
---|
3769 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3770 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3771 | else
|
---|
3772 | cat > conftest.$ac_ext <<EOF
|
---|
3773 | #line 3774 "configure"
|
---|
3774 | #include "confdefs.h"
|
---|
3775 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3776 | which can conflict with char $ac_func(); below. */
|
---|
3777 | #include <assert.h>
|
---|
3778 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3779 | /* We use char because int might match the return type of a gcc2
|
---|
3780 | builtin and then its argument prototype would still apply. */
|
---|
3781 | char $ac_func();
|
---|
3782 |
|
---|
3783 | int main() {
|
---|
3784 |
|
---|
3785 | /* The GNU C library defines this for functions which it implements
|
---|
3786 | to always fail with ENOSYS. Some functions are actually named
|
---|
3787 | something starting with __ and the normal name is an alias. */
|
---|
3788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3789 | choke me
|
---|
3790 | #else
|
---|
3791 | $ac_func();
|
---|
3792 | #endif
|
---|
3793 |
|
---|
3794 | ; return 0; }
|
---|
3795 | EOF
|
---|
3796 | if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3797 | rm -rf conftest*
|
---|
3798 | eval "ac_cv_func_$ac_func=yes"
|
---|
3799 | else
|
---|
3800 | echo "configure: failed program was:" >&5
|
---|
3801 | cat conftest.$ac_ext >&5
|
---|
3802 | rm -rf conftest*
|
---|
3803 | eval "ac_cv_func_$ac_func=no"
|
---|
3804 | fi
|
---|
3805 | rm -f conftest*
|
---|
3806 | fi
|
---|
3807 |
|
---|
3808 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3809 | echo "$ac_t""yes" 1>&6
|
---|
3810 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3811 | cat >> confdefs.h <<EOF
|
---|
3812 | #define $ac_tr_func 1
|
---|
3813 | EOF
|
---|
3814 |
|
---|
3815 | else
|
---|
3816 | echo "$ac_t""no" 1>&6
|
---|
3817 | fi
|
---|
3818 | done
|
---|
3819 |
|
---|
3820 | fi
|
---|
3821 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
3822 | cat >> confdefs.h <<\EOF
|
---|
3823 | #define HAVE_STPCPY 1
|
---|
3824 | EOF
|
---|
3825 |
|
---|
3826 | fi
|
---|
3827 |
|
---|
3828 | if test $ac_cv_header_locale_h = yes; then
|
---|
3829 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
3830 | echo "configure:3831: checking for LC_MESSAGES" >&5
|
---|
3831 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
3832 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3833 | else
|
---|
3834 | cat > conftest.$ac_ext <<EOF
|
---|
3835 | #line 3836 "configure"
|
---|
3836 | #include "confdefs.h"
|
---|
3837 | #include <locale.h>
|
---|
3838 | int main() {
|
---|
3839 | return LC_MESSAGES
|
---|
3840 | ; return 0; }
|
---|
3841 | EOF
|
---|
3842 | if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3843 | rm -rf conftest*
|
---|
3844 | am_cv_val_LC_MESSAGES=yes
|
---|
3845 | else
|
---|
3846 | echo "configure: failed program was:" >&5
|
---|
3847 | cat conftest.$ac_ext >&5
|
---|
3848 | rm -rf conftest*
|
---|
3849 | am_cv_val_LC_MESSAGES=no
|
---|
3850 | fi
|
---|
3851 | rm -f conftest*
|
---|
3852 | fi
|
---|
3853 |
|
---|
3854 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
3855 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
3856 | cat >> confdefs.h <<\EOF
|
---|
3857 | #define HAVE_LC_MESSAGES 1
|
---|
3858 | EOF
|
---|
3859 |
|
---|
3860 | fi
|
---|
3861 | fi
|
---|
3862 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
3863 | echo "configure:3864: checking whether NLS is requested" >&5
|
---|
3864 | # Check whether --enable-nls or --disable-nls was given.
|
---|
3865 | if test "${enable_nls+set}" = set; then
|
---|
3866 | enableval="$enable_nls"
|
---|
3867 | USE_NLS=$enableval
|
---|
3868 | else
|
---|
3869 | USE_NLS=yes
|
---|
3870 | fi
|
---|
3871 |
|
---|
3872 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
3873 |
|
---|
3874 |
|
---|
3875 | USE_INCLUDED_LIBINTL=no
|
---|
3876 |
|
---|
3877 | if test "$USE_NLS" = "yes"; then
|
---|
3878 | cat >> confdefs.h <<\EOF
|
---|
3879 | #define ENABLE_NLS 1
|
---|
3880 | EOF
|
---|
3881 |
|
---|
3882 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
3883 | echo "configure:3884: checking whether included gettext is requested" >&5
|
---|
3884 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
3885 | if test "${with_included_gettext+set}" = set; then
|
---|
3886 | withval="$with_included_gettext"
|
---|
3887 | nls_cv_force_use_gnu_gettext=$withval
|
---|
3888 | else
|
---|
3889 | nls_cv_force_use_gnu_gettext=no
|
---|
3890 | fi
|
---|
3891 |
|
---|
3892 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
3893 |
|
---|
3894 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
3895 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5
|
---|
3896 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
3897 | nls_cv_header_intl=
|
---|
3898 | nls_cv_header_libgt=
|
---|
3899 | CATOBJEXT=NONE
|
---|
3900 |
|
---|
3901 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
3902 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
3903 | echo "configure:3904: checking for libintl.h" >&5
|
---|
3904 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3905 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3906 | else
|
---|
3907 | cat > conftest.$ac_ext <<EOF
|
---|
3908 | #include <sys/types.h>
|
---|
3909 | #line 3910 "configure"
|
---|
3910 | #include "confdefs.h"
|
---|
3911 | #include <libintl.h>
|
---|
3912 | EOF
|
---|
3913 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3914 | { (eval echo configure:3915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3915 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3916 | if test -z "$ac_err"; then
|
---|
3917 | rm -rf conftest*
|
---|
3918 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3919 | else
|
---|
3920 | echo "$ac_err" >&5
|
---|
3921 | echo "configure: failed program was:" >&5
|
---|
3922 | cat conftest.$ac_ext >&5
|
---|
3923 | rm -rf conftest*
|
---|
3924 | eval "ac_cv_header_$ac_safe=no"
|
---|
3925 | fi
|
---|
3926 | rm -f conftest*
|
---|
3927 | fi
|
---|
3928 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3929 | echo "$ac_t""yes" 1>&6
|
---|
3930 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
3931 | echo "configure:3932: checking for gettext in libc" >&5
|
---|
3932 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
3933 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3934 | else
|
---|
3935 | cat > conftest.$ac_ext <<EOF
|
---|
3936 | #line 3937 "configure"
|
---|
3937 | #include "confdefs.h"
|
---|
3938 | #include <libintl.h>
|
---|
3939 | int main() {
|
---|
3940 | return (int) gettext ("")
|
---|
3941 | ; return 0; }
|
---|
3942 | EOF
|
---|
3943 | if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3944 | rm -rf conftest*
|
---|
3945 | gt_cv_func_gettext_libc=yes
|
---|
3946 | else
|
---|
3947 | echo "configure: failed program was:" >&5
|
---|
3948 | cat conftest.$ac_ext >&5
|
---|
3949 | rm -rf conftest*
|
---|
3950 | gt_cv_func_gettext_libc=no
|
---|
3951 | fi
|
---|
3952 | rm -f conftest*
|
---|
3953 | fi
|
---|
3954 |
|
---|
3955 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
3956 |
|
---|
3957 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
3958 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
3959 | echo "configure:3960: checking for bindtextdomain in -lintl" >&5
|
---|
3960 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
3961 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3962 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3963 | else
|
---|
3964 | ac_save_LIBS="$LIBS"
|
---|
3965 | LIBS="-lintl $LIBS"
|
---|
3966 | cat > conftest.$ac_ext <<EOF
|
---|
3967 | #line 3968 "configure"
|
---|
3968 | #include "confdefs.h"
|
---|
3969 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3970 | /* We use char because int might match the return type of a gcc2
|
---|
3971 | builtin and then its argument prototype would still apply. */
|
---|
3972 | char bindtextdomain();
|
---|
3973 |
|
---|
3974 | int main() {
|
---|
3975 | bindtextdomain()
|
---|
3976 | ; return 0; }
|
---|
3977 | EOF
|
---|
3978 | if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3979 | rm -rf conftest*
|
---|
3980 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3981 | else
|
---|
3982 | echo "configure: failed program was:" >&5
|
---|
3983 | cat conftest.$ac_ext >&5
|
---|
3984 | rm -rf conftest*
|
---|
3985 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3986 | fi
|
---|
3987 | rm -f conftest*
|
---|
3988 | LIBS="$ac_save_LIBS"
|
---|
3989 |
|
---|
3990 | fi
|
---|
3991 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3992 | echo "$ac_t""yes" 1>&6
|
---|
3993 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
3994 | echo "configure:3995: checking for gettext in libintl" >&5
|
---|
3995 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
3996 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3997 | else
|
---|
3998 | ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
|
---|
3999 | cat > conftest.$ac_ext <<EOF
|
---|
4000 | #line 4001 "configure"
|
---|
4001 | #include "confdefs.h"
|
---|
4002 | #include <libintl.h>
|
---|
4003 | int main() {
|
---|
4004 | return (int) gettext ("")
|
---|
4005 | ; return 0; }
|
---|
4006 | EOF
|
---|
4007 | if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4008 | rm -rf conftest*
|
---|
4009 | gt_cv_func_gettext_libintl=yes
|
---|
4010 | else
|
---|
4011 | echo "configure: failed program was:" >&5
|
---|
4012 | cat conftest.$ac_ext >&5
|
---|
4013 | rm -rf conftest*
|
---|
4014 | gt_cv_func_gettext_libintl=no
|
---|
4015 | fi
|
---|
4016 | rm -f conftest*
|
---|
4017 | LIBS="$ac_save_LIBS";
|
---|
4018 | fi
|
---|
4019 |
|
---|
4020 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
4021 | else
|
---|
4022 | echo "$ac_t""no" 1>&6
|
---|
4023 | fi
|
---|
4024 |
|
---|
4025 | fi
|
---|
4026 |
|
---|
4027 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
4028 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
4029 | cat >> confdefs.h <<\EOF
|
---|
4030 | #define HAVE_GETTEXT 1
|
---|
4031 | EOF
|
---|
4032 |
|
---|
4033 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4034 | set dummy msgfmt; ac_word=$2
|
---|
4035 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4036 | echo "configure:4037: checking for $ac_word" >&5
|
---|
4037 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4038 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4039 | else
|
---|
4040 | case "$MSGFMT" in
|
---|
4041 | [/\\]*|[a-zA-Z]:*)
|
---|
4042 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4043 | ;;
|
---|
4044 | *)
|
---|
4045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4046 | for ac_dir in $PATH; do
|
---|
4047 | test -z "$ac_dir" && ac_dir=.
|
---|
4048 | if test -f $ac_dir/$ac_word; then
|
---|
4049 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4050 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4051 | break
|
---|
4052 | fi
|
---|
4053 | fi
|
---|
4054 | ac_word_saved="$ac_word"
|
---|
4055 | ac_word=$ac_word$ac_cv_exeext
|
---|
4056 | if test -f $ac_dir/$ac_word; then
|
---|
4057 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4058 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4059 | break
|
---|
4060 | fi
|
---|
4061 | fi
|
---|
4062 | ac_word="$ac_word_saved"
|
---|
4063 | done
|
---|
4064 | IFS="$ac_save_ifs"
|
---|
4065 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
4066 | ;;
|
---|
4067 | esac
|
---|
4068 | fi
|
---|
4069 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4070 | if test -n "$MSGFMT"; then
|
---|
4071 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4072 | else
|
---|
4073 | echo "$ac_t""no" 1>&6
|
---|
4074 | fi
|
---|
4075 | if test "$MSGFMT" != "no"; then
|
---|
4076 | for ac_func in dcgettext
|
---|
4077 | do
|
---|
4078 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4079 | echo "configure:4080: checking for $ac_func" >&5
|
---|
4080 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4081 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4082 | else
|
---|
4083 | cat > conftest.$ac_ext <<EOF
|
---|
4084 | #line 4085 "configure"
|
---|
4085 | #include "confdefs.h"
|
---|
4086 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4087 | which can conflict with char $ac_func(); below. */
|
---|
4088 | #include <assert.h>
|
---|
4089 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4090 | /* We use char because int might match the return type of a gcc2
|
---|
4091 | builtin and then its argument prototype would still apply. */
|
---|
4092 | char $ac_func();
|
---|
4093 |
|
---|
4094 | int main() {
|
---|
4095 |
|
---|
4096 | /* The GNU C library defines this for functions which it implements
|
---|
4097 | to always fail with ENOSYS. Some functions are actually named
|
---|
4098 | something starting with __ and the normal name is an alias. */
|
---|
4099 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4100 | choke me
|
---|
4101 | #else
|
---|
4102 | $ac_func();
|
---|
4103 | #endif
|
---|
4104 |
|
---|
4105 | ; return 0; }
|
---|
4106 | EOF
|
---|
4107 | if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4108 | rm -rf conftest*
|
---|
4109 | eval "ac_cv_func_$ac_func=yes"
|
---|
4110 | else
|
---|
4111 | echo "configure: failed program was:" >&5
|
---|
4112 | cat conftest.$ac_ext >&5
|
---|
4113 | rm -rf conftest*
|
---|
4114 | eval "ac_cv_func_$ac_func=no"
|
---|
4115 | fi
|
---|
4116 | rm -f conftest*
|
---|
4117 | fi
|
---|
4118 |
|
---|
4119 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4120 | echo "$ac_t""yes" 1>&6
|
---|
4121 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4122 | cat >> confdefs.h <<EOF
|
---|
4123 | #define $ac_tr_func 1
|
---|
4124 | EOF
|
---|
4125 |
|
---|
4126 | else
|
---|
4127 | echo "$ac_t""no" 1>&6
|
---|
4128 | fi
|
---|
4129 | done
|
---|
4130 |
|
---|
4131 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4132 | set dummy gmsgfmt; ac_word=$2
|
---|
4133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4134 | echo "configure:4135: checking for $ac_word" >&5
|
---|
4135 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4136 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4137 | else
|
---|
4138 | case "$GMSGFMT" in
|
---|
4139 | [/\\]* | [a-zA-Z]:*)
|
---|
4140 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4141 | ;;
|
---|
4142 | ?:/*)
|
---|
4143 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4144 | ;;
|
---|
4145 | *)
|
---|
4146 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4147 | ac_dummy="$PATH"
|
---|
4148 | for ac_dir in $ac_dummy; do
|
---|
4149 | test -z "$ac_dir" && ac_dir=.
|
---|
4150 | if test -f $ac_dir/$ac_word; then
|
---|
4151 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4152 | break
|
---|
4153 | fi
|
---|
4154 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4155 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4156 | break
|
---|
4157 | fi
|
---|
4158 | done
|
---|
4159 | IFS="$ac_save_ifs"
|
---|
4160 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4161 | ;;
|
---|
4162 | esac
|
---|
4163 | fi
|
---|
4164 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4165 | if test -n "$GMSGFMT"; then
|
---|
4166 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4167 | else
|
---|
4168 | echo "$ac_t""no" 1>&6
|
---|
4169 | fi
|
---|
4170 |
|
---|
4171 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4172 | set dummy xgettext; ac_word=$2
|
---|
4173 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4174 | echo "configure:4175: checking for $ac_word" >&5
|
---|
4175 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4176 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4177 | else
|
---|
4178 | case "$XGETTEXT" in
|
---|
4179 | [/\\]*|[a-zA-Z]:*)
|
---|
4180 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4181 | ;;
|
---|
4182 | *)
|
---|
4183 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4184 | for ac_dir in $PATH; do
|
---|
4185 | test -z "$ac_dir" && ac_dir=.
|
---|
4186 | if test -f $ac_dir/$ac_word; then
|
---|
4187 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4188 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4189 | break
|
---|
4190 | fi
|
---|
4191 | fi
|
---|
4192 | ac_word_saved="$ac_word"
|
---|
4193 | ac_word=$ac_word$ac_cv_exeext
|
---|
4194 | if test -f $ac_dir/$ac_word; then
|
---|
4195 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4196 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4197 | break
|
---|
4198 | fi
|
---|
4199 | fi
|
---|
4200 | ac_word="$ac_word_saved"
|
---|
4201 | done
|
---|
4202 | IFS="$ac_save_ifs"
|
---|
4203 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4204 | ;;
|
---|
4205 | esac
|
---|
4206 | fi
|
---|
4207 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4208 | if test -n "$XGETTEXT"; then
|
---|
4209 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4210 | else
|
---|
4211 | echo "$ac_t""no" 1>&6
|
---|
4212 | fi
|
---|
4213 |
|
---|
4214 |
|
---|
4215 | cat > conftest.$ac_ext <<EOF
|
---|
4216 | #line 4217 "configure"
|
---|
4217 | #include "confdefs.h"
|
---|
4218 |
|
---|
4219 | int main() {
|
---|
4220 | extern int _nl_msg_cat_cntr;
|
---|
4221 | return _nl_msg_cat_cntr
|
---|
4222 | ; return 0; }
|
---|
4223 | EOF
|
---|
4224 | if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4225 | rm -rf conftest*
|
---|
4226 | CATOBJEXT=.gmo
|
---|
4227 | DATADIRNAME=share
|
---|
4228 | else
|
---|
4229 | echo "configure: failed program was:" >&5
|
---|
4230 | cat conftest.$ac_ext >&5
|
---|
4231 | rm -rf conftest*
|
---|
4232 | CATOBJEXT=.mo
|
---|
4233 | DATADIRNAME=lib
|
---|
4234 | fi
|
---|
4235 | rm -f conftest*
|
---|
4236 | INSTOBJEXT=.mo
|
---|
4237 | fi
|
---|
4238 | fi
|
---|
4239 |
|
---|
4240 | else
|
---|
4241 | echo "$ac_t""no" 1>&6
|
---|
4242 | fi
|
---|
4243 |
|
---|
4244 |
|
---|
4245 |
|
---|
4246 | if test "$CATOBJEXT" = "NONE"; then
|
---|
4247 | nls_cv_use_gnu_gettext=yes
|
---|
4248 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5
|
---|
4249 | fi
|
---|
4250 | fi
|
---|
4251 |
|
---|
4252 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
4253 | INTLOBJS="\$(GETTOBJS)"
|
---|
4254 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4255 | set dummy msgfmt; ac_word=$2
|
---|
4256 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4257 | echo "configure:4258: checking for $ac_word" >&5
|
---|
4258 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4259 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4260 | else
|
---|
4261 | case "$MSGFMT" in
|
---|
4262 | [/\\]*|[a-zA-Z]:*)
|
---|
4263 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4264 | ;;
|
---|
4265 | *)
|
---|
4266 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4267 | for ac_dir in $PATH; do
|
---|
4268 | test -z "$ac_dir" && ac_dir=.
|
---|
4269 | if test -f $ac_dir/$ac_word; then
|
---|
4270 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4271 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4272 | break
|
---|
4273 | fi
|
---|
4274 | fi
|
---|
4275 | ac_word_saved="$ac_word"
|
---|
4276 | ac_word=$ac_word$ac_cv_exeext
|
---|
4277 | if test -f $ac_dir/$ac_word; then
|
---|
4278 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4279 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4280 | break
|
---|
4281 | fi
|
---|
4282 | fi
|
---|
4283 | ac_word="$ac_word_saved"
|
---|
4284 | done
|
---|
4285 | IFS="$ac_save_ifs"
|
---|
4286 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
4287 | ;;
|
---|
4288 | esac
|
---|
4289 | fi
|
---|
4290 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4291 | if test -n "$MSGFMT"; then
|
---|
4292 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4293 | else
|
---|
4294 | echo "$ac_t""no" 1>&6
|
---|
4295 | fi
|
---|
4296 |
|
---|
4297 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4298 | set dummy gmsgfmt; ac_word=$2
|
---|
4299 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4300 | echo "configure:4301: checking for $ac_word" >&5
|
---|
4301 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4302 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4303 | else
|
---|
4304 | case "$GMSGFMT" in
|
---|
4305 | [/\\]* | [a-zA-Z]:*)
|
---|
4306 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4307 | ;;
|
---|
4308 | ?:/*)
|
---|
4309 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4310 | ;;
|
---|
4311 | *)
|
---|
4312 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4313 | ac_dummy="$PATH"
|
---|
4314 | for ac_dir in $ac_dummy; do
|
---|
4315 | test -z "$ac_dir" && ac_dir=.
|
---|
4316 | if test -f $ac_dir/$ac_word; then
|
---|
4317 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4318 | break
|
---|
4319 | fi
|
---|
4320 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4321 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4322 | break
|
---|
4323 | fi
|
---|
4324 | done
|
---|
4325 | IFS="$ac_save_ifs"
|
---|
4326 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4327 | ;;
|
---|
4328 | esac
|
---|
4329 | fi
|
---|
4330 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4331 | if test -n "$GMSGFMT"; then
|
---|
4332 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4333 | else
|
---|
4334 | echo "$ac_t""no" 1>&6
|
---|
4335 | fi
|
---|
4336 |
|
---|
4337 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4338 | set dummy xgettext; ac_word=$2
|
---|
4339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4340 | echo "configure:4341: checking for $ac_word" >&5
|
---|
4341 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4342 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4343 | else
|
---|
4344 | case "$XGETTEXT" in
|
---|
4345 | [/\\]*|[a-zA-Z]:*)
|
---|
4346 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4347 | ;;
|
---|
4348 | *)
|
---|
4349 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4350 | for ac_dir in $PATH; do
|
---|
4351 | test -z "$ac_dir" && ac_dir=.
|
---|
4352 | if test -f $ac_dir/$ac_word; then
|
---|
4353 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4354 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4355 | break
|
---|
4356 | fi
|
---|
4357 | fi
|
---|
4358 | ac_word_saved="$ac_word"
|
---|
4359 | ac_word=$ac_word$ac_cv_exeext
|
---|
4360 | if test -f $ac_dir/$ac_word; then
|
---|
4361 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4362 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4363 | break
|
---|
4364 | fi
|
---|
4365 | fi
|
---|
4366 | ac_word="$ac_word_saved"
|
---|
4367 | done
|
---|
4368 | IFS="$ac_save_ifs"
|
---|
4369 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4370 | ;;
|
---|
4371 | esac
|
---|
4372 | fi
|
---|
4373 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4374 | if test -n "$XGETTEXT"; then
|
---|
4375 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4376 | else
|
---|
4377 | echo "$ac_t""no" 1>&6
|
---|
4378 | fi
|
---|
4379 |
|
---|
4380 |
|
---|
4381 | USE_INCLUDED_LIBINTL=yes
|
---|
4382 | CATOBJEXT=.gmo
|
---|
4383 | INSTOBJEXT=.mo
|
---|
4384 | DATADIRNAME=share
|
---|
4385 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
4386 | INTLLIBS=$INTLDEPS
|
---|
4387 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
4388 | nls_cv_header_intl=libintl.h
|
---|
4389 | nls_cv_header_libgt=libgettext.h
|
---|
4390 | fi
|
---|
4391 |
|
---|
4392 | if test "$XGETTEXT" != ":"; then
|
---|
4393 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
4394 | : ;
|
---|
4395 | else
|
---|
4396 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
4397 | XGETTEXT=":"
|
---|
4398 | fi
|
---|
4399 | fi
|
---|
4400 |
|
---|
4401 | # We need to process the po/ directory.
|
---|
4402 | POSUB=po
|
---|
4403 | else
|
---|
4404 | DATADIRNAME=share
|
---|
4405 | nls_cv_header_intl=libintl.h
|
---|
4406 | nls_cv_header_libgt=libgettext.h
|
---|
4407 | fi
|
---|
4408 |
|
---|
4409 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
4410 | # because some of the sources are only built for this goal.
|
---|
4411 | if test "$PACKAGE" = gettext; then
|
---|
4412 | USE_NLS=yes
|
---|
4413 | USE_INCLUDED_LIBINTL=yes
|
---|
4414 | fi
|
---|
4415 |
|
---|
4416 | for lang in $ALL_LINGUAS; do
|
---|
4417 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
4418 | POFILES="$POFILES $lang.po"
|
---|
4419 | done
|
---|
4420 |
|
---|
4421 |
|
---|
4422 |
|
---|
4423 |
|
---|
4424 |
|
---|
4425 |
|
---|
4426 |
|
---|
4427 |
|
---|
4428 |
|
---|
4429 |
|
---|
4430 |
|
---|
4431 |
|
---|
4432 |
|
---|
4433 |
|
---|
4434 | if test "x$CATOBJEXT" != "x"; then
|
---|
4435 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
4436 | LINGUAS=
|
---|
4437 | else
|
---|
4438 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
4439 | echo "configure:4440: checking for catalogs to be installed" >&5
|
---|
4440 | NEW_LINGUAS=
|
---|
4441 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
4442 | case "$ALL_LINGUAS" in
|
---|
4443 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
4444 | esac
|
---|
4445 | done
|
---|
4446 | LINGUAS=$NEW_LINGUAS
|
---|
4447 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
4448 | fi
|
---|
4449 |
|
---|
4450 | if test -n "$LINGUAS"; then
|
---|
4451 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
4452 | fi
|
---|
4453 | fi
|
---|
4454 |
|
---|
4455 | if test $ac_cv_header_locale_h = yes; then
|
---|
4456 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
4457 | else
|
---|
4458 | INCLUDE_LOCALE_H="\
|
---|
4459 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
4460 | fi
|
---|
4461 |
|
---|
4462 |
|
---|
4463 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
4464 | if test "$CATOBJEXT" = ".cat"; then
|
---|
4465 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
4466 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
4467 | echo "configure:4468: checking for linux/version.h" >&5
|
---|
4468 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4469 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4470 | else
|
---|
4471 | cat > conftest.$ac_ext <<EOF
|
---|
4472 | #include <sys/types.h>
|
---|
4473 | #line 4474 "configure"
|
---|
4474 | #include "confdefs.h"
|
---|
4475 | #include <linux/version.h>
|
---|
4476 | EOF
|
---|
4477 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4478 | { (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4479 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4480 | if test -z "$ac_err"; then
|
---|
4481 | rm -rf conftest*
|
---|
4482 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4483 | else
|
---|
4484 | echo "$ac_err" >&5
|
---|
4485 | echo "configure: failed program was:" >&5
|
---|
4486 | cat conftest.$ac_ext >&5
|
---|
4487 | rm -rf conftest*
|
---|
4488 | eval "ac_cv_header_$ac_safe=no"
|
---|
4489 | fi
|
---|
4490 | rm -f conftest*
|
---|
4491 | fi
|
---|
4492 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4493 | echo "$ac_t""yes" 1>&6
|
---|
4494 | msgformat=linux
|
---|
4495 | else
|
---|
4496 | echo "$ac_t""no" 1>&6
|
---|
4497 | msgformat=xopen
|
---|
4498 | fi
|
---|
4499 |
|
---|
4500 |
|
---|
4501 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
4502 | fi
|
---|
4503 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
4504 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
4505 | fi
|
---|
4506 |
|
---|
4507 | if test "$PACKAGE" = "gettext"; then
|
---|
4508 | GT_NO="#NO#"
|
---|
4509 | GT_YES=
|
---|
4510 | else
|
---|
4511 | GT_NO=
|
---|
4512 | GT_YES="#YES#"
|
---|
4513 | fi
|
---|
4514 |
|
---|
4515 |
|
---|
4516 |
|
---|
4517 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
4518 |
|
---|
4519 |
|
---|
4520 | l=
|
---|
4521 |
|
---|
4522 |
|
---|
4523 | if test -f $srcdir/po/POTFILES.in; then
|
---|
4524 | test -d po || mkdir po
|
---|
4525 | if test "x$srcdir" != "x."; then
|
---|
4526 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
---|
4527 | posrcprefix="$srcdir/"
|
---|
4528 | else
|
---|
4529 | posrcprefix="../$srcdir/"
|
---|
4530 | fi
|
---|
4531 | else
|
---|
4532 | posrcprefix="../"
|
---|
4533 | fi
|
---|
4534 | rm -f po/POTFILES
|
---|
4535 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
4536 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
4537 | fi
|
---|
4538 |
|
---|
4539 |
|
---|
4540 | # Permit host specific settings.
|
---|
4541 | . ${srcdir}/configure.host
|
---|
4542 |
|
---|
4543 |
|
---|
4544 | # Find a good install program. We prefer a C program (faster),
|
---|
4545 | # so one script is as good as another. But avoid the broken or
|
---|
4546 | # incompatible versions:
|
---|
4547 | # SysV /etc/install, /usr/sbin/install
|
---|
4548 | # SunOS /usr/etc/install
|
---|
4549 | # IRIX /sbin/install
|
---|
4550 | # AIX /bin/install
|
---|
4551 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4552 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4553 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4554 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4555 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
4556 | echo "configure:4557: checking for a BSD compatible install" >&5
|
---|
4557 | if test -z "$INSTALL"; then
|
---|
4558 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
4559 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4560 | else
|
---|
4561 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
4562 | for ac_dir in $PATH; do
|
---|
4563 | # Account for people who put trailing slashes in PATH elements.
|
---|
4564 | case "$ac_dir/" in
|
---|
4565 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
4566 | # We reject the install program from OS/2 or W3.1
|
---|
4567 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
4568 | *)
|
---|
4569 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4570 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4571 | # by default.
|
---|
4572 | for ac_prog in ginstall scoinst install; do
|
---|
4573 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
4574 | if test $ac_prog = install &&
|
---|
4575 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
4576 | # AIX install. It has an incompatible calling convention.
|
---|
4577 | :
|
---|
4578 | else
|
---|
4579 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
4580 | break 2
|
---|
4581 | fi
|
---|
4582 | fi
|
---|
4583 | done
|
---|
4584 | ;;
|
---|
4585 | esac
|
---|
4586 | done
|
---|
4587 | IFS="$ac_save_IFS"
|
---|
4588 |
|
---|
4589 | fi
|
---|
4590 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4591 | INSTALL="$ac_cv_path_install"
|
---|
4592 | else
|
---|
4593 | # As a last resort, use the slow shell script. We don't cache a
|
---|
4594 | # path for INSTALL within a source directory, because that will
|
---|
4595 | # break other packages using the cache if that directory is
|
---|
4596 | # removed, or if the path is relative.
|
---|
4597 | INSTALL="$ac_install_sh"
|
---|
4598 | fi
|
---|
4599 | fi
|
---|
4600 | echo "$ac_t""$INSTALL" 1>&6
|
---|
4601 |
|
---|
4602 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4603 | # It thinks the first close brace ends the variable substitution.
|
---|
4604 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4605 |
|
---|
4606 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
4607 |
|
---|
4608 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4609 |
|
---|
4610 |
|
---|
4611 | BFD_HOST_64BIT_LONG=0
|
---|
4612 | BFD_HOST_64_BIT_DEFINED=0
|
---|
4613 | BFD_HOST_64_BIT=
|
---|
4614 | BFD_HOST_U_64_BIT=
|
---|
4615 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then
|
---|
4616 | BFD_HOST_64BIT_LONG=1
|
---|
4617 | elif test "x${HOST_64BIT_TYPE}" != "x"; then
|
---|
4618 | BFD_HOST_64_BIT_DEFINED=1
|
---|
4619 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
|
---|
4620 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
|
---|
4621 | fi
|
---|
4622 |
|
---|
4623 |
|
---|
4624 |
|
---|
4625 |
|
---|
4626 |
|
---|
4627 | # Put a plausible default for CC_FOR_BUILD in Makefile.
|
---|
4628 | if test -z "$CC_FOR_BUILD"; then
|
---|
4629 | if test "x$cross_compiling" = "xno"; then
|
---|
4630 | CC_FOR_BUILD='$(CC)'
|
---|
4631 | else
|
---|
4632 | CC_FOR_BUILD=gcc
|
---|
4633 | fi
|
---|
4634 | fi
|
---|
4635 |
|
---|
4636 | # Also set EXEEXT_FOR_BUILD.
|
---|
4637 | if test "x$cross_compiling" = "xno"; then
|
---|
4638 | EXEEXT_FOR_BUILD='$(EXEEXT)'
|
---|
4639 | else
|
---|
4640 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
|
---|
4641 | echo "configure:4642: checking for build system executable suffix" >&5
|
---|
4642 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
|
---|
4643 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4644 | else
|
---|
4645 | rm -f conftest*
|
---|
4646 | echo 'int main () { return 0; }' > conftest.c
|
---|
4647 | bfd_cv_build_exeext=
|
---|
4648 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
|
---|
4649 | for file in conftest.*; do
|
---|
4650 | case $file in
|
---|
4651 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
---|
4652 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
4653 | esac
|
---|
4654 | done
|
---|
4655 | rm -f conftest*
|
---|
4656 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
|
---|
4657 | fi
|
---|
4658 |
|
---|
4659 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6
|
---|
4660 | EXEEXT_FOR_BUILD=""
|
---|
4661 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
---|
4662 | fi
|
---|
4663 |
|
---|
4664 |
|
---|
4665 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
|
---|
4666 | do
|
---|
4667 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4668 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4669 | echo "configure:4670: checking for $ac_hdr" >&5
|
---|
4670 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4671 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4672 | else
|
---|
4673 | cat > conftest.$ac_ext <<EOF
|
---|
4674 | #include <sys/types.h>
|
---|
4675 | #line 4676 "configure"
|
---|
4676 | #include "confdefs.h"
|
---|
4677 | #include <$ac_hdr>
|
---|
4678 | EOF
|
---|
4679 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4680 | { (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4681 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4682 | if test -z "$ac_err"; then
|
---|
4683 | rm -rf conftest*
|
---|
4684 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4685 | else
|
---|
4686 | echo "$ac_err" >&5
|
---|
4687 | echo "configure: failed program was:" >&5
|
---|
4688 | cat conftest.$ac_ext >&5
|
---|
4689 | rm -rf conftest*
|
---|
4690 | eval "ac_cv_header_$ac_safe=no"
|
---|
4691 | fi
|
---|
4692 | rm -f conftest*
|
---|
4693 | fi
|
---|
4694 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4695 | echo "$ac_t""yes" 1>&6
|
---|
4696 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4697 | cat >> confdefs.h <<EOF
|
---|
4698 | #define $ac_tr_hdr 1
|
---|
4699 | EOF
|
---|
4700 |
|
---|
4701 | else
|
---|
4702 | echo "$ac_t""no" 1>&6
|
---|
4703 | fi
|
---|
4704 | done
|
---|
4705 |
|
---|
4706 | for ac_hdr in fcntl.h sys/file.h sys/time.h
|
---|
4707 | do
|
---|
4708 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4709 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4710 | echo "configure:4711: checking for $ac_hdr" >&5
|
---|
4711 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4712 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4713 | else
|
---|
4714 | cat > conftest.$ac_ext <<EOF
|
---|
4715 | #include <sys/types.h>
|
---|
4716 | #line 4717 "configure"
|
---|
4717 | #include "confdefs.h"
|
---|
4718 | #include <$ac_hdr>
|
---|
4719 | EOF
|
---|
4720 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4721 | { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4722 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4723 | if test -z "$ac_err"; then
|
---|
4724 | rm -rf conftest*
|
---|
4725 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4726 | else
|
---|
4727 | echo "$ac_err" >&5
|
---|
4728 | echo "configure: failed program was:" >&5
|
---|
4729 | cat conftest.$ac_ext >&5
|
---|
4730 | rm -rf conftest*
|
---|
4731 | eval "ac_cv_header_$ac_safe=no"
|
---|
4732 | fi
|
---|
4733 | rm -f conftest*
|
---|
4734 | fi
|
---|
4735 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4736 | echo "$ac_t""yes" 1>&6
|
---|
4737 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4738 | cat >> confdefs.h <<EOF
|
---|
4739 | #define $ac_tr_hdr 1
|
---|
4740 | EOF
|
---|
4741 |
|
---|
4742 | else
|
---|
4743 | echo "$ac_t""no" 1>&6
|
---|
4744 | fi
|
---|
4745 | done
|
---|
4746 |
|
---|
4747 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
4748 | echo "configure:4749: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4749 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
4750 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4751 | else
|
---|
4752 | cat > conftest.$ac_ext <<EOF
|
---|
4753 | #line 4754 "configure"
|
---|
4754 | #include "confdefs.h"
|
---|
4755 | #include <sys/types.h>
|
---|
4756 | #include <sys/time.h>
|
---|
4757 | #include <time.h>
|
---|
4758 | int main() {
|
---|
4759 | struct tm *tp;
|
---|
4760 | ; return 0; }
|
---|
4761 | EOF
|
---|
4762 | if { (eval echo configure:4763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4763 | rm -rf conftest*
|
---|
4764 | ac_cv_header_time=yes
|
---|
4765 | else
|
---|
4766 | echo "configure: failed program was:" >&5
|
---|
4767 | cat conftest.$ac_ext >&5
|
---|
4768 | rm -rf conftest*
|
---|
4769 | ac_cv_header_time=no
|
---|
4770 | fi
|
---|
4771 | rm -f conftest*
|
---|
4772 | fi
|
---|
4773 |
|
---|
4774 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
4775 | if test $ac_cv_header_time = yes; then
|
---|
4776 | cat >> confdefs.h <<\EOF
|
---|
4777 | #define TIME_WITH_SYS_TIME 1
|
---|
4778 | EOF
|
---|
4779 |
|
---|
4780 | fi
|
---|
4781 |
|
---|
4782 | ac_header_dirent=no
|
---|
4783 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
4784 | do
|
---|
4785 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4786 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
4787 | echo "configure:4788: checking for $ac_hdr that defines DIR" >&5
|
---|
4788 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
4789 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4790 | else
|
---|
4791 | cat > conftest.$ac_ext <<EOF
|
---|
4792 | #line 4793 "configure"
|
---|
4793 | #include "confdefs.h"
|
---|
4794 | #include <sys/types.h>
|
---|
4795 | #include <$ac_hdr>
|
---|
4796 | int main() {
|
---|
4797 | DIR *dirp = 0;
|
---|
4798 | ; return 0; }
|
---|
4799 | EOF
|
---|
4800 | if { (eval echo configure:4801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4801 | rm -rf conftest*
|
---|
4802 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
4803 | else
|
---|
4804 | echo "configure: failed program was:" >&5
|
---|
4805 | cat conftest.$ac_ext >&5
|
---|
4806 | rm -rf conftest*
|
---|
4807 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
4808 | fi
|
---|
4809 | rm -f conftest*
|
---|
4810 | fi
|
---|
4811 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
4812 | echo "$ac_t""yes" 1>&6
|
---|
4813 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4814 | cat >> confdefs.h <<EOF
|
---|
4815 | #define $ac_tr_hdr 1
|
---|
4816 | EOF
|
---|
4817 | ac_header_dirent=$ac_hdr; break
|
---|
4818 | else
|
---|
4819 | echo "$ac_t""no" 1>&6
|
---|
4820 | fi
|
---|
4821 | done
|
---|
4822 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4823 | if test $ac_header_dirent = dirent.h; then
|
---|
4824 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
4825 | echo "configure:4826: checking for opendir in -ldir" >&5
|
---|
4826 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4828 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4829 | else
|
---|
4830 | ac_save_LIBS="$LIBS"
|
---|
4831 | LIBS="-ldir $LIBS"
|
---|
4832 | cat > conftest.$ac_ext <<EOF
|
---|
4833 | #line 4834 "configure"
|
---|
4834 | #include "confdefs.h"
|
---|
4835 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4836 | /* We use char because int might match the return type of a gcc2
|
---|
4837 | builtin and then its argument prototype would still apply. */
|
---|
4838 | char opendir();
|
---|
4839 |
|
---|
4840 | int main() {
|
---|
4841 | opendir()
|
---|
4842 | ; return 0; }
|
---|
4843 | EOF
|
---|
4844 | if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4845 | rm -rf conftest*
|
---|
4846 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4847 | else
|
---|
4848 | echo "configure: failed program was:" >&5
|
---|
4849 | cat conftest.$ac_ext >&5
|
---|
4850 | rm -rf conftest*
|
---|
4851 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4852 | fi
|
---|
4853 | rm -f conftest*
|
---|
4854 | LIBS="$ac_save_LIBS"
|
---|
4855 |
|
---|
4856 | fi
|
---|
4857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4858 | echo "$ac_t""yes" 1>&6
|
---|
4859 | LIBS="$LIBS -ldir"
|
---|
4860 | else
|
---|
4861 | echo "$ac_t""no" 1>&6
|
---|
4862 | fi
|
---|
4863 |
|
---|
4864 | else
|
---|
4865 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
4866 | echo "configure:4867: checking for opendir in -lx" >&5
|
---|
4867 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4868 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4869 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4870 | else
|
---|
4871 | ac_save_LIBS="$LIBS"
|
---|
4872 | LIBS="-lx $LIBS"
|
---|
4873 | cat > conftest.$ac_ext <<EOF
|
---|
4874 | #line 4875 "configure"
|
---|
4875 | #include "confdefs.h"
|
---|
4876 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4877 | /* We use char because int might match the return type of a gcc2
|
---|
4878 | builtin and then its argument prototype would still apply. */
|
---|
4879 | char opendir();
|
---|
4880 |
|
---|
4881 | int main() {
|
---|
4882 | opendir()
|
---|
4883 | ; return 0; }
|
---|
4884 | EOF
|
---|
4885 | if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4886 | rm -rf conftest*
|
---|
4887 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4888 | else
|
---|
4889 | echo "configure: failed program was:" >&5
|
---|
4890 | cat conftest.$ac_ext >&5
|
---|
4891 | rm -rf conftest*
|
---|
4892 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4893 | fi
|
---|
4894 | rm -f conftest*
|
---|
4895 | LIBS="$ac_save_LIBS"
|
---|
4896 |
|
---|
4897 | fi
|
---|
4898 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4899 | echo "$ac_t""yes" 1>&6
|
---|
4900 | LIBS="$LIBS -lx"
|
---|
4901 | else
|
---|
4902 | echo "$ac_t""no" 1>&6
|
---|
4903 | fi
|
---|
4904 |
|
---|
4905 | fi
|
---|
4906 |
|
---|
4907 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
|
---|
4908 | do
|
---|
4909 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4910 | echo "configure:4911: checking for $ac_func" >&5
|
---|
4911 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4912 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4913 | else
|
---|
4914 | cat > conftest.$ac_ext <<EOF
|
---|
4915 | #line 4916 "configure"
|
---|
4916 | #include "confdefs.h"
|
---|
4917 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4918 | which can conflict with char $ac_func(); below. */
|
---|
4919 | #include <assert.h>
|
---|
4920 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4921 | /* We use char because int might match the return type of a gcc2
|
---|
4922 | builtin and then its argument prototype would still apply. */
|
---|
4923 | char $ac_func();
|
---|
4924 |
|
---|
4925 | int main() {
|
---|
4926 |
|
---|
4927 | /* The GNU C library defines this for functions which it implements
|
---|
4928 | to always fail with ENOSYS. Some functions are actually named
|
---|
4929 | something starting with __ and the normal name is an alias. */
|
---|
4930 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4931 | choke me
|
---|
4932 | #else
|
---|
4933 | $ac_func();
|
---|
4934 | #endif
|
---|
4935 |
|
---|
4936 | ; return 0; }
|
---|
4937 | EOF
|
---|
4938 | if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4939 | rm -rf conftest*
|
---|
4940 | eval "ac_cv_func_$ac_func=yes"
|
---|
4941 | else
|
---|
4942 | echo "configure: failed program was:" >&5
|
---|
4943 | cat conftest.$ac_ext >&5
|
---|
4944 | rm -rf conftest*
|
---|
4945 | eval "ac_cv_func_$ac_func=no"
|
---|
4946 | fi
|
---|
4947 | rm -f conftest*
|
---|
4948 | fi
|
---|
4949 |
|
---|
4950 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4951 | echo "$ac_t""yes" 1>&6
|
---|
4952 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4953 | cat >> confdefs.h <<EOF
|
---|
4954 | #define $ac_tr_func 1
|
---|
4955 | EOF
|
---|
4956 |
|
---|
4957 | else
|
---|
4958 | echo "$ac_t""no" 1>&6
|
---|
4959 | fi
|
---|
4960 | done
|
---|
4961 |
|
---|
4962 |
|
---|
4963 |
|
---|
4964 | case "${host}" in
|
---|
4965 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*)
|
---|
4966 | cat >> confdefs.h <<\EOF
|
---|
4967 | #define USE_BINARY_FOPEN 1
|
---|
4968 | EOF
|
---|
4969 | ;;
|
---|
4970 | esac
|
---|
4971 |
|
---|
4972 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
---|
4973 | echo "configure:4974: checking whether strstr must be declared" >&5
|
---|
4974 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
---|
4975 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4976 | else
|
---|
4977 | cat > conftest.$ac_ext <<EOF
|
---|
4978 | #line 4979 "configure"
|
---|
4979 | #include "confdefs.h"
|
---|
4980 |
|
---|
4981 | #include <stdio.h>
|
---|
4982 | #ifdef HAVE_STRING_H
|
---|
4983 | #include <string.h>
|
---|
4984 | #else
|
---|
4985 | #ifdef HAVE_STRINGS_H
|
---|
4986 | #include <strings.h>
|
---|
4987 | #endif
|
---|
4988 | #endif
|
---|
4989 | #ifdef HAVE_STDLIB_H
|
---|
4990 | #include <stdlib.h>
|
---|
4991 | #endif
|
---|
4992 | #ifdef HAVE_UNISTD_H
|
---|
4993 | #include <unistd.h>
|
---|
4994 | #endif
|
---|
4995 | int main() {
|
---|
4996 | char *(*pfn) = (char *(*)) strstr
|
---|
4997 | ; return 0; }
|
---|
4998 | EOF
|
---|
4999 | if { (eval echo configure:5000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5000 | rm -rf conftest*
|
---|
5001 | bfd_cv_decl_needed_strstr=no
|
---|
5002 | else
|
---|
5003 | echo "configure: failed program was:" >&5
|
---|
5004 | cat conftest.$ac_ext >&5
|
---|
5005 | rm -rf conftest*
|
---|
5006 | bfd_cv_decl_needed_strstr=yes
|
---|
5007 | fi
|
---|
5008 | rm -f conftest*
|
---|
5009 | fi
|
---|
5010 |
|
---|
5011 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
---|
5012 | if test $bfd_cv_decl_needed_strstr = yes; then
|
---|
5013 | cat >> confdefs.h <<\EOF
|
---|
5014 | #define NEED_DECLARATION_STRSTR 1
|
---|
5015 | EOF
|
---|
5016 |
|
---|
5017 | fi
|
---|
5018 |
|
---|
5019 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
---|
5020 | echo "configure:5021: checking whether malloc must be declared" >&5
|
---|
5021 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
---|
5022 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5023 | else
|
---|
5024 | cat > conftest.$ac_ext <<EOF
|
---|
5025 | #line 5026 "configure"
|
---|
5026 | #include "confdefs.h"
|
---|
5027 |
|
---|
5028 | #include <stdio.h>
|
---|
5029 | #ifdef HAVE_STRING_H
|
---|
5030 | #include <string.h>
|
---|
5031 | #else
|
---|
5032 | #ifdef HAVE_STRINGS_H
|
---|
5033 | #include <strings.h>
|
---|
5034 | #endif
|
---|
5035 | #endif
|
---|
5036 | #ifdef HAVE_STDLIB_H
|
---|
5037 | #include <stdlib.h>
|
---|
5038 | #endif
|
---|
5039 | #ifdef HAVE_UNISTD_H
|
---|
5040 | #include <unistd.h>
|
---|
5041 | #endif
|
---|
5042 | int main() {
|
---|
5043 | char *(*pfn) = (char *(*)) malloc
|
---|
5044 | ; return 0; }
|
---|
5045 | EOF
|
---|
5046 | if { (eval echo configure:5047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5047 | rm -rf conftest*
|
---|
5048 | bfd_cv_decl_needed_malloc=no
|
---|
5049 | else
|
---|
5050 | echo "configure: failed program was:" >&5
|
---|
5051 | cat conftest.$ac_ext >&5
|
---|
5052 | rm -rf conftest*
|
---|
5053 | bfd_cv_decl_needed_malloc=yes
|
---|
5054 | fi
|
---|
5055 | rm -f conftest*
|
---|
5056 | fi
|
---|
5057 |
|
---|
5058 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
---|
5059 | if test $bfd_cv_decl_needed_malloc = yes; then
|
---|
5060 | cat >> confdefs.h <<\EOF
|
---|
5061 | #define NEED_DECLARATION_MALLOC 1
|
---|
5062 | EOF
|
---|
5063 |
|
---|
5064 | fi
|
---|
5065 |
|
---|
5066 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
---|
5067 | echo "configure:5068: checking whether realloc must be declared" >&5
|
---|
5068 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
---|
5069 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5070 | else
|
---|
5071 | cat > conftest.$ac_ext <<EOF
|
---|
5072 | #line 5073 "configure"
|
---|
5073 | #include "confdefs.h"
|
---|
5074 |
|
---|
5075 | #include <stdio.h>
|
---|
5076 | #ifdef HAVE_STRING_H
|
---|
5077 | #include <string.h>
|
---|
5078 | #else
|
---|
5079 | #ifdef HAVE_STRINGS_H
|
---|
5080 | #include <strings.h>
|
---|
5081 | #endif
|
---|
5082 | #endif
|
---|
5083 | #ifdef HAVE_STDLIB_H
|
---|
5084 | #include <stdlib.h>
|
---|
5085 | #endif
|
---|
5086 | #ifdef HAVE_UNISTD_H
|
---|
5087 | #include <unistd.h>
|
---|
5088 | #endif
|
---|
5089 | int main() {
|
---|
5090 | char *(*pfn) = (char *(*)) realloc
|
---|
5091 | ; return 0; }
|
---|
5092 | EOF
|
---|
5093 | if { (eval echo configure:5094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5094 | rm -rf conftest*
|
---|
5095 | bfd_cv_decl_needed_realloc=no
|
---|
5096 | else
|
---|
5097 | echo "configure: failed program was:" >&5
|
---|
5098 | cat conftest.$ac_ext >&5
|
---|
5099 | rm -rf conftest*
|
---|
5100 | bfd_cv_decl_needed_realloc=yes
|
---|
5101 | fi
|
---|
5102 | rm -f conftest*
|
---|
5103 | fi
|
---|
5104 |
|
---|
5105 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
---|
5106 | if test $bfd_cv_decl_needed_realloc = yes; then
|
---|
5107 | cat >> confdefs.h <<\EOF
|
---|
5108 | #define NEED_DECLARATION_REALLOC 1
|
---|
5109 | EOF
|
---|
5110 |
|
---|
5111 | fi
|
---|
5112 |
|
---|
5113 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
---|
5114 | echo "configure:5115: checking whether free must be declared" >&5
|
---|
5115 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
---|
5116 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5117 | else
|
---|
5118 | cat > conftest.$ac_ext <<EOF
|
---|
5119 | #line 5120 "configure"
|
---|
5120 | #include "confdefs.h"
|
---|
5121 |
|
---|
5122 | #include <stdio.h>
|
---|
5123 | #ifdef HAVE_STRING_H
|
---|
5124 | #include <string.h>
|
---|
5125 | #else
|
---|
5126 | #ifdef HAVE_STRINGS_H
|
---|
5127 | #include <strings.h>
|
---|
5128 | #endif
|
---|
5129 | #endif
|
---|
5130 | #ifdef HAVE_STDLIB_H
|
---|
5131 | #include <stdlib.h>
|
---|
5132 | #endif
|
---|
5133 | #ifdef HAVE_UNISTD_H
|
---|
5134 | #include <unistd.h>
|
---|
5135 | #endif
|
---|
5136 | int main() {
|
---|
5137 | char *(*pfn) = (char *(*)) free
|
---|
5138 | ; return 0; }
|
---|
5139 | EOF
|
---|
5140 | if { (eval echo configure:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5141 | rm -rf conftest*
|
---|
5142 | bfd_cv_decl_needed_free=no
|
---|
5143 | else
|
---|
5144 | echo "configure: failed program was:" >&5
|
---|
5145 | cat conftest.$ac_ext >&5
|
---|
5146 | rm -rf conftest*
|
---|
5147 | bfd_cv_decl_needed_free=yes
|
---|
5148 | fi
|
---|
5149 | rm -f conftest*
|
---|
5150 | fi
|
---|
5151 |
|
---|
5152 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
---|
5153 | if test $bfd_cv_decl_needed_free = yes; then
|
---|
5154 | cat >> confdefs.h <<\EOF
|
---|
5155 | #define NEED_DECLARATION_FREE 1
|
---|
5156 | EOF
|
---|
5157 |
|
---|
5158 | fi
|
---|
5159 |
|
---|
5160 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
|
---|
5161 | echo "configure:5162: checking whether getenv must be declared" >&5
|
---|
5162 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
|
---|
5163 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5164 | else
|
---|
5165 | cat > conftest.$ac_ext <<EOF
|
---|
5166 | #line 5167 "configure"
|
---|
5167 | #include "confdefs.h"
|
---|
5168 |
|
---|
5169 | #include <stdio.h>
|
---|
5170 | #ifdef HAVE_STRING_H
|
---|
5171 | #include <string.h>
|
---|
5172 | #else
|
---|
5173 | #ifdef HAVE_STRINGS_H
|
---|
5174 | #include <strings.h>
|
---|
5175 | #endif
|
---|
5176 | #endif
|
---|
5177 | #ifdef HAVE_STDLIB_H
|
---|
5178 | #include <stdlib.h>
|
---|
5179 | #endif
|
---|
5180 | #ifdef HAVE_UNISTD_H
|
---|
5181 | #include <unistd.h>
|
---|
5182 | #endif
|
---|
5183 | int main() {
|
---|
5184 | char *(*pfn) = (char *(*)) getenv
|
---|
5185 | ; return 0; }
|
---|
5186 | EOF
|
---|
5187 | if { (eval echo configure:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5188 | rm -rf conftest*
|
---|
5189 | bfd_cv_decl_needed_getenv=no
|
---|
5190 | else
|
---|
5191 | echo "configure: failed program was:" >&5
|
---|
5192 | cat conftest.$ac_ext >&5
|
---|
5193 | rm -rf conftest*
|
---|
5194 | bfd_cv_decl_needed_getenv=yes
|
---|
5195 | fi
|
---|
5196 | rm -f conftest*
|
---|
5197 | fi
|
---|
5198 |
|
---|
5199 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
|
---|
5200 | if test $bfd_cv_decl_needed_getenv = yes; then
|
---|
5201 | cat >> confdefs.h <<\EOF
|
---|
5202 | #define NEED_DECLARATION_GETENV 1
|
---|
5203 | EOF
|
---|
5204 |
|
---|
5205 | fi
|
---|
5206 |
|
---|
5207 |
|
---|
5208 | # If we are configured native, pick a core file support file.
|
---|
5209 | COREFILE=
|
---|
5210 | COREFLAG=
|
---|
5211 | TRAD_HEADER=
|
---|
5212 | if test "${target}" = "${host}"; then
|
---|
5213 | case "${host}" in
|
---|
5214 | alpha*-*-freebsd*)
|
---|
5215 | COREFILE=''
|
---|
5216 | ;;
|
---|
5217 | alpha*-*-linux-gnu*)
|
---|
5218 | COREFILE=trad-core.lo
|
---|
5219 | TRAD_HEADER='"hosts/alphalinux.h"'
|
---|
5220 | ;;
|
---|
5221 | alpha*-*-netbsd* | alpha*-*-openbsd*)
|
---|
5222 | COREFILE=netbsd-core.lo
|
---|
5223 | ;;
|
---|
5224 | alpha*-*-*) COREFILE=osf-core.lo ;;
|
---|
5225 | arm-*-freebsd*) COREFILE='' ;;
|
---|
5226 | arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5227 | arm-*-riscix) COREFILE=trad-core.lo ;;
|
---|
5228 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
|
---|
5229 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
|
---|
5230 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
|
---|
5231 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
|
---|
5232 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
|
---|
5233 | i370-*-*)
|
---|
5234 | COREFILE=trad-core.lo
|
---|
5235 | TRAD_HEADER='"hosts/i370linux.h"'
|
---|
5236 | ;;
|
---|
5237 |
|
---|
5238 | i[3456]86-sequent-bsd*)
|
---|
5239 | COREFILE=trad-core.lo
|
---|
5240 | TRAD_HEADER='"hosts/symmetry.h"'
|
---|
5241 | ;;
|
---|
5242 | i[3456]86-sequent-sysv4*) ;;
|
---|
5243 | i[3456]86-sequent-sysv*)
|
---|
5244 | COREFILE=trad-core.lo
|
---|
5245 | TRAD_HEADER='"hosts/symmetry.h"'
|
---|
5246 | ;;
|
---|
5247 | i[3456]86-*-bsdi)
|
---|
5248 | COREFILE=
|
---|
5249 | ;;
|
---|
5250 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
|
---|
5251 | COREFILE=trad-core.lo
|
---|
5252 | TRAD_HEADER='"hosts/i386bsd.h"'
|
---|
5253 | ;;
|
---|
5254 | i[3456]86-*-freebsd*)
|
---|
5255 | COREFILE=''
|
---|
5256 | TRAD_HEADER='"hosts/i386bsd.h"'
|
---|
5257 | ;;
|
---|
5258 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
|
---|
5259 | COREFILE=netbsd-core.lo
|
---|
5260 | ;;
|
---|
5261 | i[3456]86-esix-sysv3*)
|
---|
5262 | COREFILE=trad-core.lo
|
---|
5263 | TRAD_HEADER='"hosts/esix.h"'
|
---|
5264 | ;;
|
---|
5265 | i[3456]86-*-sco3.2v5*)
|
---|
5266 | COREFILE=sco5-core.lo
|
---|
5267 | ;;
|
---|
5268 | i[3456]86-*-sco* | i[3456]86-*-isc*)
|
---|
5269 | COREFILE=trad-core.lo
|
---|
5270 | TRAD_HEADER='"hosts/i386sco.h"'
|
---|
5271 | ;;
|
---|
5272 | i[3456]86-*-mach3*)
|
---|
5273 | COREFILE=trad-core.lo
|
---|
5274 | TRAD_HEADER='"hosts/i386mach3.h"'
|
---|
5275 | ;;
|
---|
5276 | i[3456]86-*-linux-gnu*)
|
---|
5277 | COREFILE=trad-core.lo
|
---|
5278 | TRAD_HEADER='"hosts/i386linux.h"'
|
---|
5279 | ;;
|
---|
5280 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
|
---|
5281 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
|
---|
5282 | i[3456]86-*-os2*)
|
---|
5283 | COREFILE=trad-core.lo
|
---|
5284 | TRAD_HEADER='"hosts/i386emx.h"'
|
---|
5285 | ;;
|
---|
5286 | i860-*-mach3* | i860-*-osf1*)
|
---|
5287 | COREFILE=trad-core.lo
|
---|
5288 | TRAD_HEADER='"hosts/i860mach3.h"'
|
---|
5289 | ;;
|
---|
5290 | mips-dec-bsd*)
|
---|
5291 | COREFILE=trad-core.lo
|
---|
5292 | TRAD_HEADER='"hosts/mipsbsd.h"'
|
---|
5293 | ;;
|
---|
5294 | mips-dec-mach3*)
|
---|
5295 | COREFILE=trad-core.lo
|
---|
5296 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
---|
5297 | ;;
|
---|
5298 | mips-*-netbsd* | mips*-*-openbsd*)
|
---|
5299 | COREFILE=netbsd-core.lo
|
---|
5300 | ;;
|
---|
5301 | mips-dec-*)
|
---|
5302 | COREFILE=trad-core.lo
|
---|
5303 | TRAD_HEADER='"hosts/decstation.h"'
|
---|
5304 | ;;
|
---|
5305 | mips-sgi-irix4*) COREFILE=irix-core.lo ;;
|
---|
5306 | mips-sgi-irix5*) COREFILE=irix-core.lo ;;
|
---|
5307 | mips-sgi-irix6*) COREFILE=irix-core.lo ;;
|
---|
5308 | mips-*-mach3*)
|
---|
5309 | COREFILE=trad-core.lo
|
---|
5310 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
---|
5311 | ;;
|
---|
5312 | mips-*-sysv4*) ;;
|
---|
5313 | mips-*-sysv* | mips-*-riscos*)
|
---|
5314 | COREFILE=trad-core.lo
|
---|
5315 | TRAD_HEADER='"hosts/riscos.h"'
|
---|
5316 | ;;
|
---|
5317 | mips-sony-bsd*)
|
---|
5318 | COREFILE=trad-core.lo
|
---|
5319 | TRAD_HEADER='"hosts/news-mips.h"'
|
---|
5320 | ;;
|
---|
5321 | m68*-bull*-sysv*)
|
---|
5322 | COREFILE=trad-core.lo
|
---|
5323 | TRAD_HEADER='"hosts/dpx2.h"'
|
---|
5324 | ;;
|
---|
5325 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
|
---|
5326 | m68*-hp-bsd*)
|
---|
5327 | COREFILE=trad-core.lo
|
---|
5328 | TRAD_HEADER='"hosts/hp300bsd.h"'
|
---|
5329 | ;;
|
---|
5330 | m68*-*-linux-gnu*)
|
---|
5331 | COREFILE=trad-core.lo
|
---|
5332 | TRAD_HEADER='"hosts/m68klinux.h"'
|
---|
5333 | ;;
|
---|
5334 | m68*-motorola-sysv*)
|
---|
5335 | COREFILE=trad-core.lo
|
---|
5336 | TRAD_HEADER='"hosts/delta68.h"'
|
---|
5337 | ;;
|
---|
5338 | m68*-sony-*)
|
---|
5339 | COREFILE=trad-core.lo
|
---|
5340 | TRAD_HEADER='"hosts/news.h"'
|
---|
5341 | ;;
|
---|
5342 | m68*-*-netbsd* | m68*-*-openbsd*)
|
---|
5343 | COREFILE=netbsd-core.lo
|
---|
5344 | ;;
|
---|
5345 | m68*-apple-aux*)
|
---|
5346 | COREFILE=trad-core.lo
|
---|
5347 | TRAD_HEADER='"hosts/m68kaux.h"'
|
---|
5348 | ;;
|
---|
5349 | m88*-*-sysv4*)
|
---|
5350 | ;;
|
---|
5351 | m88*-motorola-sysv*)
|
---|
5352 | COREFILE=ptrace-core.lo
|
---|
5353 | ;;
|
---|
5354 | m88*-*-mach3*)
|
---|
5355 | COREFILE=trad-core.lo
|
---|
5356 | TRAD_HEADER='"hosts/m88kmach3.h"'
|
---|
5357 | ;;
|
---|
5358 | ns32k-pc532-mach)
|
---|
5359 | COREFILE=trad-core.lo
|
---|
5360 | TRAD_HEADER='"hosts/pc532mach.h"'
|
---|
5361 | ;;
|
---|
5362 | ns32k-*-netbsd* | ns32k-*-openbsd*)
|
---|
5363 | COREFILE=netbsd-core.lo
|
---|
5364 | ;;
|
---|
5365 | rs6000-*-lynx*)
|
---|
5366 | COREFILE=lynx-core.lo
|
---|
5367 | ;;
|
---|
5368 | rs6000-*-aix5.* | powerpc-*-aix5.*)
|
---|
5369 | COREFILE=rs6000-core.lo
|
---|
5370 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
|
---|
5371 | ;;
|
---|
5372 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
|
---|
5373 | COREFILE=rs6000-core.lo
|
---|
5374 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
|
---|
5375 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
|
---|
5376 | # have c_impl as a member of struct core_dumpx
|
---|
5377 | echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
|
---|
5378 | echo "configure:5379: checking for c_impl in struct core_dumpx" >&5
|
---|
5379 | cat > conftest.$ac_ext <<EOF
|
---|
5380 | #line 5381 "configure"
|
---|
5381 | #include "confdefs.h"
|
---|
5382 | #include <core.h>
|
---|
5383 | int main() {
|
---|
5384 | struct core_dumpx c; c.c_impl = 0;
|
---|
5385 | ; return 0; }
|
---|
5386 | EOF
|
---|
5387 | if { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5388 | rm -rf conftest*
|
---|
5389 | cat >> confdefs.h <<\EOF
|
---|
5390 | #define HAVE_ST_C_IMPL 1
|
---|
5391 | EOF
|
---|
5392 |
|
---|
5393 | echo "$ac_t""yes" 1>&6
|
---|
5394 | else
|
---|
5395 | echo "configure: failed program was:" >&5
|
---|
5396 | cat conftest.$ac_ext >&5
|
---|
5397 | rm -rf conftest*
|
---|
5398 | echo "$ac_t""no" 1>&6
|
---|
5399 | fi
|
---|
5400 | rm -f conftest*
|
---|
5401 | ;;
|
---|
5402 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
|
---|
5403 | rs6000-*-*) COREFILE=rs6000-core.lo ;;
|
---|
5404 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
|
---|
5405 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
|
---|
5406 | powerpc-*-beos*) ;;
|
---|
5407 | powerpc-*-freebsd*) COREFILE='' ;;
|
---|
5408 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5409 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
---|
5410 | s390*-*-*) COREFILE=trad-core.lo ;;
|
---|
5411 | sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5412 | sparc-*-netbsd* | sparc*-*-openbsd*)
|
---|
5413 | COREFILE=netbsd-core.lo
|
---|
5414 | ;;
|
---|
5415 | tahoe-*-*)
|
---|
5416 | COREFILE=trad-core.lo
|
---|
5417 | TRAD_HEADER='"hosts/tahoe.h"'
|
---|
5418 | ;;
|
---|
5419 | vax-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5420 | vax-*-ultrix2*)
|
---|
5421 | COREFILE=trad-core.lo
|
---|
5422 | TRAD_HEADER='"hosts/vaxult2.h"'
|
---|
5423 | ;;
|
---|
5424 | vax-*-ultrix*)
|
---|
5425 | COREFILE=trad-core.lo
|
---|
5426 | TRAD_HEADER='"hosts/vaxult2.h"'
|
---|
5427 | ;;
|
---|
5428 | vax-*-*)
|
---|
5429 | COREFILE=trad-core.lo
|
---|
5430 | TRAD_HEADER='"hosts/vaxbsd.h"'
|
---|
5431 | ;;
|
---|
5432 | x86_64-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5433 | esac
|
---|
5434 |
|
---|
5435 | case "$COREFILE" in
|
---|
5436 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
|
---|
5437 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
|
---|
5438 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
|
---|
5439 | irix-core.lo) COREFLAG=-DIRIX_CORE ;;
|
---|
5440 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
|
---|
5441 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
|
---|
5442 | osf-core.lo) COREFLAG=-DOSF_CORE ;;
|
---|
5443 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
|
---|
5444 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
|
---|
5445 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
|
---|
5446 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
|
---|
5447 | esac
|
---|
5448 |
|
---|
5449 | # ELF corefile support has several flavors, but all of
|
---|
5450 | # them use something called <sys/procfs.h>
|
---|
5451 | for ac_hdr in sys/procfs.h
|
---|
5452 | do
|
---|
5453 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5454 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5455 | echo "configure:5456: checking for $ac_hdr" >&5
|
---|
5456 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5457 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5458 | else
|
---|
5459 | cat > conftest.$ac_ext <<EOF
|
---|
5460 | #include <sys/types.h>
|
---|
5461 | #line 5462 "configure"
|
---|
5462 | #include "confdefs.h"
|
---|
5463 | #include <$ac_hdr>
|
---|
5464 | EOF
|
---|
5465 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5466 | { (eval echo configure:5467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5467 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5468 | if test -z "$ac_err"; then
|
---|
5469 | rm -rf conftest*
|
---|
5470 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5471 | else
|
---|
5472 | echo "$ac_err" >&5
|
---|
5473 | echo "configure: failed program was:" >&5
|
---|
5474 | cat conftest.$ac_ext >&5
|
---|
5475 | rm -rf conftest*
|
---|
5476 | eval "ac_cv_header_$ac_safe=no"
|
---|
5477 | fi
|
---|
5478 | rm -f conftest*
|
---|
5479 | fi
|
---|
5480 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5481 | echo "$ac_t""yes" 1>&6
|
---|
5482 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5483 | cat >> confdefs.h <<EOF
|
---|
5484 | #define $ac_tr_hdr 1
|
---|
5485 | EOF
|
---|
5486 |
|
---|
5487 | else
|
---|
5488 | echo "$ac_t""no" 1>&6
|
---|
5489 | fi
|
---|
5490 | done
|
---|
5491 |
|
---|
5492 | if test "$ac_cv_header_sys_procfs_h" = yes; then
|
---|
5493 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5494 | echo "configure:5495: checking for prstatus_t in sys/procfs.h" >&5
|
---|
5495 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
|
---|
5496 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5497 | else
|
---|
5498 | cat > conftest.$ac_ext <<EOF
|
---|
5499 | #line 5500 "configure"
|
---|
5500 | #include "confdefs.h"
|
---|
5501 |
|
---|
5502 | #define _SYSCALL32
|
---|
5503 | #include <sys/procfs.h>
|
---|
5504 | int main() {
|
---|
5505 | prstatus_t avar
|
---|
5506 | ; return 0; }
|
---|
5507 | EOF
|
---|
5508 | if { (eval echo configure:5509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5509 | rm -rf conftest*
|
---|
5510 | bfd_cv_have_sys_procfs_type_prstatus_t=yes
|
---|
5511 | else
|
---|
5512 | echo "configure: failed program was:" >&5
|
---|
5513 | cat conftest.$ac_ext >&5
|
---|
5514 | rm -rf conftest*
|
---|
5515 | bfd_cv_have_sys_procfs_type_prstatus_t=no
|
---|
5516 |
|
---|
5517 | fi
|
---|
5518 | rm -f conftest*
|
---|
5519 | fi
|
---|
5520 |
|
---|
5521 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
|
---|
5522 | cat >> confdefs.h <<\EOF
|
---|
5523 | #define HAVE_PRSTATUS_T 1
|
---|
5524 | EOF
|
---|
5525 |
|
---|
5526 | fi
|
---|
5527 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
|
---|
5528 |
|
---|
5529 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5530 | echo "configure:5531: checking for prstatus32_t in sys/procfs.h" >&5
|
---|
5531 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
|
---|
5532 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5533 | else
|
---|
5534 | cat > conftest.$ac_ext <<EOF
|
---|
5535 | #line 5536 "configure"
|
---|
5536 | #include "confdefs.h"
|
---|
5537 |
|
---|
5538 | #define _SYSCALL32
|
---|
5539 | #include <sys/procfs.h>
|
---|
5540 | int main() {
|
---|
5541 | prstatus32_t avar
|
---|
5542 | ; return 0; }
|
---|
5543 | EOF
|
---|
5544 | if { (eval echo configure:5545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5545 | rm -rf conftest*
|
---|
5546 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes
|
---|
5547 | else
|
---|
5548 | echo "configure: failed program was:" >&5
|
---|
5549 | cat conftest.$ac_ext >&5
|
---|
5550 | rm -rf conftest*
|
---|
5551 | bfd_cv_have_sys_procfs_type_prstatus32_t=no
|
---|
5552 |
|
---|
5553 | fi
|
---|
5554 | rm -f conftest*
|
---|
5555 | fi
|
---|
5556 |
|
---|
5557 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
|
---|
5558 | cat >> confdefs.h <<\EOF
|
---|
5559 | #define HAVE_PRSTATUS32_T 1
|
---|
5560 | EOF
|
---|
5561 |
|
---|
5562 | fi
|
---|
5563 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
|
---|
5564 |
|
---|
5565 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
---|
5566 | echo "configure:5567: checking for prstatus_t.pr_who in sys/procfs.h" >&5
|
---|
5567 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
|
---|
5568 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5569 | else
|
---|
5570 | cat > conftest.$ac_ext <<EOF
|
---|
5571 | #line 5572 "configure"
|
---|
5572 | #include "confdefs.h"
|
---|
5573 |
|
---|
5574 | #define _SYSCALL32
|
---|
5575 | #include <sys/procfs.h>
|
---|
5576 | int main() {
|
---|
5577 | prstatus_t avar; void* aref = (void*) &avar.pr_who
|
---|
5578 | ; return 0; }
|
---|
5579 | EOF
|
---|
5580 | if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5581 | rm -rf conftest*
|
---|
5582 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
|
---|
5583 | else
|
---|
5584 | echo "configure: failed program was:" >&5
|
---|
5585 | cat conftest.$ac_ext >&5
|
---|
5586 | rm -rf conftest*
|
---|
5587 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
|
---|
5588 |
|
---|
5589 | fi
|
---|
5590 | rm -f conftest*
|
---|
5591 | fi
|
---|
5592 |
|
---|
5593 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
|
---|
5594 | cat >> confdefs.h <<\EOF
|
---|
5595 | #define HAVE_PRSTATUS_T_PR_WHO 1
|
---|
5596 | EOF
|
---|
5597 |
|
---|
5598 | fi
|
---|
5599 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
|
---|
5600 |
|
---|
5601 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
---|
5602 | echo "configure:5603: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
|
---|
5603 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
|
---|
5604 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5605 | else
|
---|
5606 | cat > conftest.$ac_ext <<EOF
|
---|
5607 | #line 5608 "configure"
|
---|
5608 | #include "confdefs.h"
|
---|
5609 |
|
---|
5610 | #define _SYSCALL32
|
---|
5611 | #include <sys/procfs.h>
|
---|
5612 | int main() {
|
---|
5613 | prstatus32_t avar; void* aref = (void*) &avar.pr_who
|
---|
5614 | ; return 0; }
|
---|
5615 | EOF
|
---|
5616 | if { (eval echo configure:5617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5617 | rm -rf conftest*
|
---|
5618 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
|
---|
5619 | else
|
---|
5620 | echo "configure: failed program was:" >&5
|
---|
5621 | cat conftest.$ac_ext >&5
|
---|
5622 | rm -rf conftest*
|
---|
5623 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
|
---|
5624 |
|
---|
5625 | fi
|
---|
5626 | rm -f conftest*
|
---|
5627 | fi
|
---|
5628 |
|
---|
5629 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
|
---|
5630 | cat >> confdefs.h <<\EOF
|
---|
5631 | #define HAVE_PRSTATUS32_T_PR_WHO 1
|
---|
5632 | EOF
|
---|
5633 |
|
---|
5634 | fi
|
---|
5635 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
|
---|
5636 |
|
---|
5637 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5638 | echo "configure:5639: checking for pstatus_t in sys/procfs.h" >&5
|
---|
5639 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
|
---|
5640 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5641 | else
|
---|
5642 | cat > conftest.$ac_ext <<EOF
|
---|
5643 | #line 5644 "configure"
|
---|
5644 | #include "confdefs.h"
|
---|
5645 |
|
---|
5646 | #define _SYSCALL32
|
---|
5647 | #include <sys/procfs.h>
|
---|
5648 | int main() {
|
---|
5649 | pstatus_t avar
|
---|
5650 | ; return 0; }
|
---|
5651 | EOF
|
---|
5652 | if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5653 | rm -rf conftest*
|
---|
5654 | bfd_cv_have_sys_procfs_type_pstatus_t=yes
|
---|
5655 | else
|
---|
5656 | echo "configure: failed program was:" >&5
|
---|
5657 | cat conftest.$ac_ext >&5
|
---|
5658 | rm -rf conftest*
|
---|
5659 | bfd_cv_have_sys_procfs_type_pstatus_t=no
|
---|
5660 |
|
---|
5661 | fi
|
---|
5662 | rm -f conftest*
|
---|
5663 | fi
|
---|
5664 |
|
---|
5665 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
|
---|
5666 | cat >> confdefs.h <<\EOF
|
---|
5667 | #define HAVE_PSTATUS_T 1
|
---|
5668 | EOF
|
---|
5669 |
|
---|
5670 | fi
|
---|
5671 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
|
---|
5672 |
|
---|
5673 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5674 | echo "configure:5675: checking for pxstatus_t in sys/procfs.h" >&5
|
---|
5675 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
|
---|
5676 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5677 | else
|
---|
5678 | cat > conftest.$ac_ext <<EOF
|
---|
5679 | #line 5680 "configure"
|
---|
5680 | #include "confdefs.h"
|
---|
5681 |
|
---|
5682 | #define _SYSCALL32
|
---|
5683 | #include <sys/procfs.h>
|
---|
5684 | int main() {
|
---|
5685 | pxstatus_t avar
|
---|
5686 | ; return 0; }
|
---|
5687 | EOF
|
---|
5688 | if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5689 | rm -rf conftest*
|
---|
5690 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes
|
---|
5691 | else
|
---|
5692 | echo "configure: failed program was:" >&5
|
---|
5693 | cat conftest.$ac_ext >&5
|
---|
5694 | rm -rf conftest*
|
---|
5695 | bfd_cv_have_sys_procfs_type_pxstatus_t=no
|
---|
5696 |
|
---|
5697 | fi
|
---|
5698 | rm -f conftest*
|
---|
5699 | fi
|
---|
5700 |
|
---|
5701 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
|
---|
5702 | cat >> confdefs.h <<\EOF
|
---|
5703 | #define HAVE_PXSTATUS_T 1
|
---|
5704 | EOF
|
---|
5705 |
|
---|
5706 | fi
|
---|
5707 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
|
---|
5708 |
|
---|
5709 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5710 | echo "configure:5711: checking for pstatus32_t in sys/procfs.h" >&5
|
---|
5711 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
|
---|
5712 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5713 | else
|
---|
5714 | cat > conftest.$ac_ext <<EOF
|
---|
5715 | #line 5716 "configure"
|
---|
5716 | #include "confdefs.h"
|
---|
5717 |
|
---|
5718 | #define _SYSCALL32
|
---|
5719 | #include <sys/procfs.h>
|
---|
5720 | int main() {
|
---|
5721 | pstatus32_t avar
|
---|
5722 | ; return 0; }
|
---|
5723 | EOF
|
---|
5724 | if { (eval echo configure:5725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5725 | rm -rf conftest*
|
---|
5726 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes
|
---|
5727 | else
|
---|
5728 | echo "configure: failed program was:" >&5
|
---|
5729 | cat conftest.$ac_ext >&5
|
---|
5730 | rm -rf conftest*
|
---|
5731 | bfd_cv_have_sys_procfs_type_pstatus32_t=no
|
---|
5732 |
|
---|
5733 | fi
|
---|
5734 | rm -f conftest*
|
---|
5735 | fi
|
---|
5736 |
|
---|
5737 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
|
---|
5738 | cat >> confdefs.h <<\EOF
|
---|
5739 | #define HAVE_PSTATUS32_T 1
|
---|
5740 | EOF
|
---|
5741 |
|
---|
5742 | fi
|
---|
5743 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
|
---|
5744 |
|
---|
5745 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5746 | echo "configure:5747: checking for prpsinfo_t in sys/procfs.h" >&5
|
---|
5747 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
|
---|
5748 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5749 | else
|
---|
5750 | cat > conftest.$ac_ext <<EOF
|
---|
5751 | #line 5752 "configure"
|
---|
5752 | #include "confdefs.h"
|
---|
5753 |
|
---|
5754 | #define _SYSCALL32
|
---|
5755 | #include <sys/procfs.h>
|
---|
5756 | int main() {
|
---|
5757 | prpsinfo_t avar
|
---|
5758 | ; return 0; }
|
---|
5759 | EOF
|
---|
5760 | if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5761 | rm -rf conftest*
|
---|
5762 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
|
---|
5763 | else
|
---|
5764 | echo "configure: failed program was:" >&5
|
---|
5765 | cat conftest.$ac_ext >&5
|
---|
5766 | rm -rf conftest*
|
---|
5767 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no
|
---|
5768 |
|
---|
5769 | fi
|
---|
5770 | rm -f conftest*
|
---|
5771 | fi
|
---|
5772 |
|
---|
5773 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
|
---|
5774 | cat >> confdefs.h <<\EOF
|
---|
5775 | #define HAVE_PRPSINFO_T 1
|
---|
5776 | EOF
|
---|
5777 |
|
---|
5778 | fi
|
---|
5779 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
|
---|
5780 |
|
---|
5781 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5782 | echo "configure:5783: checking for prpsinfo32_t in sys/procfs.h" >&5
|
---|
5783 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
|
---|
5784 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5785 | else
|
---|
5786 | cat > conftest.$ac_ext <<EOF
|
---|
5787 | #line 5788 "configure"
|
---|
5788 | #include "confdefs.h"
|
---|
5789 |
|
---|
5790 | #define _SYSCALL32
|
---|
5791 | #include <sys/procfs.h>
|
---|
5792 | int main() {
|
---|
5793 | prpsinfo32_t avar
|
---|
5794 | ; return 0; }
|
---|
5795 | EOF
|
---|
5796 | if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5797 | rm -rf conftest*
|
---|
5798 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
|
---|
5799 | else
|
---|
5800 | echo "configure: failed program was:" >&5
|
---|
5801 | cat conftest.$ac_ext >&5
|
---|
5802 | rm -rf conftest*
|
---|
5803 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
|
---|
5804 |
|
---|
5805 | fi
|
---|
5806 | rm -f conftest*
|
---|
5807 | fi
|
---|
5808 |
|
---|
5809 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
|
---|
5810 | cat >> confdefs.h <<\EOF
|
---|
5811 | #define HAVE_PRPSINFO32_T 1
|
---|
5812 | EOF
|
---|
5813 |
|
---|
5814 | fi
|
---|
5815 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
|
---|
5816 |
|
---|
5817 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5818 | echo "configure:5819: checking for psinfo_t in sys/procfs.h" >&5
|
---|
5819 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
|
---|
5820 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5821 | else
|
---|
5822 | cat > conftest.$ac_ext <<EOF
|
---|
5823 | #line 5824 "configure"
|
---|
5824 | #include "confdefs.h"
|
---|
5825 |
|
---|
5826 | #define _SYSCALL32
|
---|
5827 | #include <sys/procfs.h>
|
---|
5828 | int main() {
|
---|
5829 | psinfo_t avar
|
---|
5830 | ; return 0; }
|
---|
5831 | EOF
|
---|
5832 | if { (eval echo configure:5833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5833 | rm -rf conftest*
|
---|
5834 | bfd_cv_have_sys_procfs_type_psinfo_t=yes
|
---|
5835 | else
|
---|
5836 | echo "configure: failed program was:" >&5
|
---|
5837 | cat conftest.$ac_ext >&5
|
---|
5838 | rm -rf conftest*
|
---|
5839 | bfd_cv_have_sys_procfs_type_psinfo_t=no
|
---|
5840 |
|
---|
5841 | fi
|
---|
5842 | rm -f conftest*
|
---|
5843 | fi
|
---|
5844 |
|
---|
5845 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
|
---|
5846 | cat >> confdefs.h <<\EOF
|
---|
5847 | #define HAVE_PSINFO_T 1
|
---|
5848 | EOF
|
---|
5849 |
|
---|
5850 | fi
|
---|
5851 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
|
---|
5852 |
|
---|
5853 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5854 | echo "configure:5855: checking for psinfo32_t in sys/procfs.h" >&5
|
---|
5855 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
|
---|
5856 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5857 | else
|
---|
5858 | cat > conftest.$ac_ext <<EOF
|
---|
5859 | #line 5860 "configure"
|
---|
5860 | #include "confdefs.h"
|
---|
5861 |
|
---|
5862 | #define _SYSCALL32
|
---|
5863 | #include <sys/procfs.h>
|
---|
5864 | int main() {
|
---|
5865 | psinfo32_t avar
|
---|
5866 | ; return 0; }
|
---|
5867 | EOF
|
---|
5868 | if { (eval echo configure:5869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5869 | rm -rf conftest*
|
---|
5870 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes
|
---|
5871 | else
|
---|
5872 | echo "configure: failed program was:" >&5
|
---|
5873 | cat conftest.$ac_ext >&5
|
---|
5874 | rm -rf conftest*
|
---|
5875 | bfd_cv_have_sys_procfs_type_psinfo32_t=no
|
---|
5876 |
|
---|
5877 | fi
|
---|
5878 | rm -f conftest*
|
---|
5879 | fi
|
---|
5880 |
|
---|
5881 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
|
---|
5882 | cat >> confdefs.h <<\EOF
|
---|
5883 | #define HAVE_PSINFO32_T 1
|
---|
5884 | EOF
|
---|
5885 |
|
---|
5886 | fi
|
---|
5887 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
|
---|
5888 |
|
---|
5889 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5890 | echo "configure:5891: checking for lwpstatus_t in sys/procfs.h" >&5
|
---|
5891 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
|
---|
5892 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5893 | else
|
---|
5894 | cat > conftest.$ac_ext <<EOF
|
---|
5895 | #line 5896 "configure"
|
---|
5896 | #include "confdefs.h"
|
---|
5897 |
|
---|
5898 | #define _SYSCALL32
|
---|
5899 | #include <sys/procfs.h>
|
---|
5900 | int main() {
|
---|
5901 | lwpstatus_t avar
|
---|
5902 | ; return 0; }
|
---|
5903 | EOF
|
---|
5904 | if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5905 | rm -rf conftest*
|
---|
5906 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
|
---|
5907 | else
|
---|
5908 | echo "configure: failed program was:" >&5
|
---|
5909 | cat conftest.$ac_ext >&5
|
---|
5910 | rm -rf conftest*
|
---|
5911 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no
|
---|
5912 |
|
---|
5913 | fi
|
---|
5914 | rm -f conftest*
|
---|
5915 | fi
|
---|
5916 |
|
---|
5917 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
|
---|
5918 | cat >> confdefs.h <<\EOF
|
---|
5919 | #define HAVE_LWPSTATUS_T 1
|
---|
5920 | EOF
|
---|
5921 |
|
---|
5922 | fi
|
---|
5923 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
|
---|
5924 |
|
---|
5925 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5926 | echo "configure:5927: checking for lwpxstatus_t in sys/procfs.h" >&5
|
---|
5927 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
|
---|
5928 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5929 | else
|
---|
5930 | cat > conftest.$ac_ext <<EOF
|
---|
5931 | #line 5932 "configure"
|
---|
5932 | #include "confdefs.h"
|
---|
5933 |
|
---|
5934 | #define _SYSCALL32
|
---|
5935 | #include <sys/procfs.h>
|
---|
5936 | int main() {
|
---|
5937 | lwpxstatus_t avar
|
---|
5938 | ; return 0; }
|
---|
5939 | EOF
|
---|
5940 | if { (eval echo configure:5941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5941 | rm -rf conftest*
|
---|
5942 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
|
---|
5943 | else
|
---|
5944 | echo "configure: failed program was:" >&5
|
---|
5945 | cat conftest.$ac_ext >&5
|
---|
5946 | rm -rf conftest*
|
---|
5947 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
|
---|
5948 |
|
---|
5949 | fi
|
---|
5950 | rm -f conftest*
|
---|
5951 | fi
|
---|
5952 |
|
---|
5953 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
|
---|
5954 | cat >> confdefs.h <<\EOF
|
---|
5955 | #define HAVE_LWPXSTATUS_T 1
|
---|
5956 | EOF
|
---|
5957 |
|
---|
5958 | fi
|
---|
5959 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
|
---|
5960 |
|
---|
5961 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
|
---|
5962 | echo "configure:5963: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
|
---|
5963 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
|
---|
5964 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5965 | else
|
---|
5966 | cat > conftest.$ac_ext <<EOF
|
---|
5967 | #line 5968 "configure"
|
---|
5968 | #include "confdefs.h"
|
---|
5969 |
|
---|
5970 | #define _SYSCALL32
|
---|
5971 | #include <sys/procfs.h>
|
---|
5972 | int main() {
|
---|
5973 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context
|
---|
5974 | ; return 0; }
|
---|
5975 | EOF
|
---|
5976 | if { (eval echo configure:5977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5977 | rm -rf conftest*
|
---|
5978 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
|
---|
5979 | else
|
---|
5980 | echo "configure: failed program was:" >&5
|
---|
5981 | cat conftest.$ac_ext >&5
|
---|
5982 | rm -rf conftest*
|
---|
5983 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
|
---|
5984 |
|
---|
5985 | fi
|
---|
5986 | rm -f conftest*
|
---|
5987 | fi
|
---|
5988 |
|
---|
5989 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
|
---|
5990 | cat >> confdefs.h <<\EOF
|
---|
5991 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
|
---|
5992 | EOF
|
---|
5993 |
|
---|
5994 | fi
|
---|
5995 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
|
---|
5996 |
|
---|
5997 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
|
---|
5998 | echo "configure:5999: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
|
---|
5999 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
|
---|
6000 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6001 | else
|
---|
6002 | cat > conftest.$ac_ext <<EOF
|
---|
6003 | #line 6004 "configure"
|
---|
6004 | #include "confdefs.h"
|
---|
6005 |
|
---|
6006 | #define _SYSCALL32
|
---|
6007 | #include <sys/procfs.h>
|
---|
6008 | int main() {
|
---|
6009 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
|
---|
6010 | ; return 0; }
|
---|
6011 | EOF
|
---|
6012 | if { (eval echo configure:6013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6013 | rm -rf conftest*
|
---|
6014 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
|
---|
6015 | else
|
---|
6016 | echo "configure: failed program was:" >&5
|
---|
6017 | cat conftest.$ac_ext >&5
|
---|
6018 | rm -rf conftest*
|
---|
6019 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
|
---|
6020 |
|
---|
6021 | fi
|
---|
6022 | rm -f conftest*
|
---|
6023 | fi
|
---|
6024 |
|
---|
6025 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
|
---|
6026 | cat >> confdefs.h <<\EOF
|
---|
6027 | #define HAVE_LWPSTATUS_T_PR_REG 1
|
---|
6028 | EOF
|
---|
6029 |
|
---|
6030 | fi
|
---|
6031 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
|
---|
6032 |
|
---|
6033 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
6034 | echo "configure:6035: checking for win32_pstatus_t in sys/procfs.h" >&5
|
---|
6035 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
|
---|
6036 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6037 | else
|
---|
6038 | cat > conftest.$ac_ext <<EOF
|
---|
6039 | #line 6040 "configure"
|
---|
6040 | #include "confdefs.h"
|
---|
6041 |
|
---|
6042 | #define _SYSCALL32
|
---|
6043 | #include <sys/procfs.h>
|
---|
6044 | int main() {
|
---|
6045 | win32_pstatus_t avar
|
---|
6046 | ; return 0; }
|
---|
6047 | EOF
|
---|
6048 | if { (eval echo configure:6049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6049 | rm -rf conftest*
|
---|
6050 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
|
---|
6051 | else
|
---|
6052 | echo "configure: failed program was:" >&5
|
---|
6053 | cat conftest.$ac_ext >&5
|
---|
6054 | rm -rf conftest*
|
---|
6055 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
|
---|
6056 |
|
---|
6057 | fi
|
---|
6058 | rm -f conftest*
|
---|
6059 | fi
|
---|
6060 |
|
---|
6061 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
|
---|
6062 | cat >> confdefs.h <<\EOF
|
---|
6063 | #define HAVE_WIN32_PSTATUS_T 1
|
---|
6064 | EOF
|
---|
6065 |
|
---|
6066 | fi
|
---|
6067 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
|
---|
6068 |
|
---|
6069 | fi
|
---|
6070 | fi
|
---|
6071 |
|
---|
6072 |
|
---|
6073 | if test -n "$TRAD_HEADER"; then
|
---|
6074 | cat >> confdefs.h <<EOF
|
---|
6075 | #define TRAD_HEADER $TRAD_HEADER
|
---|
6076 | EOF
|
---|
6077 |
|
---|
6078 | fi
|
---|
6079 |
|
---|
6080 | # Horrible hacks to build DLLs on Windows.
|
---|
6081 | WIN32LDFLAGS=
|
---|
6082 | WIN32LIBADD=
|
---|
6083 | case "${host}" in
|
---|
6084 | *-*-cygwin*)
|
---|
6085 | if test "$enable_shared" = "yes"; then
|
---|
6086 | WIN32LDFLAGS="-no-undefined"
|
---|
6087 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
|
---|
6088 | fi
|
---|
6089 | ;;
|
---|
6090 | *-*-os2*)
|
---|
6091 | if test "$enable_shared" = "yes"; then
|
---|
6092 | WIN32LDFLAGS="-no-undefined"
|
---|
6093 | WIN32LIBADD="-L`pwd`/../libiberty -liberty"
|
---|
6094 | # WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl"
|
---|
6095 | fi
|
---|
6096 | ;;
|
---|
6097 | *-*-linux*)
|
---|
6098 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on
|
---|
6099 | # libiberty.a.
|
---|
6100 | case "${host}" in
|
---|
6101 | mips*-*-linux*)
|
---|
6102 | # Linux/MIPS uses PIC by default.
|
---|
6103 | if test "$enable_shared" = "yes"; then
|
---|
6104 | WIN32LIBADD="-L../libiberty -liberty"
|
---|
6105 | fi
|
---|
6106 | ;;
|
---|
6107 | *)
|
---|
6108 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
|
---|
6109 | if test -n "$x"; then
|
---|
6110 | WIN32LIBADD="-L../libiberty/pic -liberty"
|
---|
6111 | fi
|
---|
6112 | ;;
|
---|
6113 | esac
|
---|
6114 | ;;
|
---|
6115 | esac
|
---|
6116 |
|
---|
6117 |
|
---|
6118 |
|
---|
6119 | # target stuff:
|
---|
6120 |
|
---|
6121 | # Canonicalize the secondary target names.
|
---|
6122 | if test -n "$enable_targets" ; then
|
---|
6123 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
---|
6124 | do
|
---|
6125 | result=`$ac_config_sub $targ 2>/dev/null`
|
---|
6126 | if test -n "$result" ; then
|
---|
6127 | canon_targets="$canon_targets $result"
|
---|
6128 | else
|
---|
6129 | # Allow targets that config.sub doesn't recognize, like "all".
|
---|
6130 | canon_targets="$canon_targets $targ"
|
---|
6131 | fi
|
---|
6132 | done
|
---|
6133 | fi
|
---|
6134 |
|
---|
6135 | all_targets=false
|
---|
6136 | defvec=
|
---|
6137 | selvecs=
|
---|
6138 | assocvecs=
|
---|
6139 | selarchs=
|
---|
6140 | TDEFINES=
|
---|
6141 | for targ in $target $canon_targets
|
---|
6142 | do
|
---|
6143 | if test "x$targ" = "xall"; then
|
---|
6144 | all_targets=true
|
---|
6145 | assocvecs="$assocvecs $targ_defvec $targ_selvecs"
|
---|
6146 | else
|
---|
6147 | . $srcdir/config.bfd
|
---|
6148 | if test "x$targ" = "x$target"; then
|
---|
6149 | defvec=$targ_defvec
|
---|
6150 | fi
|
---|
6151 | selvecs="$selvecs $targ_defvec $targ_selvecs"
|
---|
6152 | selarchs="$selarchs $targ_archs"
|
---|
6153 | TDEFINES="$TDEFINES $targ_cflags"
|
---|
6154 | fi
|
---|
6155 | done
|
---|
6156 |
|
---|
6157 |
|
---|
6158 | # This processing still needs to be done if we're to decide properly whether
|
---|
6159 | # 64-bit support needs to be compiled in. Currently, it will be included if
|
---|
6160 | # the default or any other explicitly requested target requires it; it
|
---|
6161 | # will not be included on a 32-bit host if no 64-bit target is requested, and
|
---|
6162 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
|
---|
6163 | # used.
|
---|
6164 |
|
---|
6165 | # uniq the default and selected vectors in all the configured targets.
|
---|
6166 | f=""
|
---|
6167 | for i in $selvecs ; do
|
---|
6168 | case " $f " in
|
---|
6169 | *" $i "*) ;;
|
---|
6170 | *) f="$f $i" ;;
|
---|
6171 | esac
|
---|
6172 | done
|
---|
6173 | selvecs="$f"
|
---|
6174 |
|
---|
6175 |
|
---|
6176 | # uniq the associated vectors in all the configured targets.
|
---|
6177 | f=""
|
---|
6178 | for i in $assocvecs ; do
|
---|
6179 | case " $f " in
|
---|
6180 | *" $i "*) ;;
|
---|
6181 | *) f="$f $i" ;;
|
---|
6182 | esac
|
---|
6183 | done
|
---|
6184 | assocvecs="$f"
|
---|
6185 |
|
---|
6186 |
|
---|
6187 | # uniq the architectures in all the configured targets.
|
---|
6188 | f=""
|
---|
6189 | for i in $selarchs ; do
|
---|
6190 | case " $f " in
|
---|
6191 | *" $i "*) ;;
|
---|
6192 | *) f="$f $i" ;;
|
---|
6193 | esac
|
---|
6194 | done
|
---|
6195 | selarchs="$f"
|
---|
6196 |
|
---|
6197 | # Target backend .o files.
|
---|
6198 | tb=
|
---|
6199 |
|
---|
6200 | elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
|
---|
6201 |
|
---|
6202 | for vec in $selvecs
|
---|
6203 | do
|
---|
6204 | target_size=32
|
---|
6205 | case "$vec" in
|
---|
6206 | # This list is alphabetized to make it easy to compare
|
---|
6207 | # with the two vector lists in targets.c. For the same reason,
|
---|
6208 | # use one entry per line, even though this leads to long lines.
|
---|
6209 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
|
---|
6210 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
|
---|
6211 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
|
---|
6212 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
|
---|
6213 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
---|
6214 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
---|
6215 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
---|
6216 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
---|
6217 | apollocoff_vec) tb="$tb coff-apollo.lo" ;;
|
---|
6218 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6219 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6220 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6221 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6222 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
---|
6223 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
---|
6224 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
|
---|
6225 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6226 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6227 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6228 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6229 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
|
---|
6230 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
|
---|
6231 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
|
---|
6232 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
|
---|
6233 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
|
---|
6234 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
---|
6235 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
---|
6236 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
---|
6237 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
---|
6238 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6239 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
---|
6240 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
---|
6241 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
|
---|
6242 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
|
---|
6243 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
|
---|
6244 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
|
---|
6245 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
|
---|
6246 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
---|
6247 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
---|
6248 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
---|
6249 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
---|
6250 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
---|
6251 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
---|
6252 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
---|
6253 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
---|
6254 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
|
---|
6255 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
|
---|
6256 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
|
---|
6257 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
|
---|
6258 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
---|
6259 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
---|
6260 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
---|
6261 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
---|
6262 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6263 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
---|
6264 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
|
---|
6265 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
|
---|
6266 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
|
---|
6267 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
|
---|
6268 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
---|
6269 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
---|
6270 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
|
---|
6271 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
|
---|
6272 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
|
---|
6273 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6274 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6275 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6276 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6277 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
|
---|
6278 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
|
---|
6279 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
---|
6280 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
---|
6281 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
---|
6282 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
---|
6283 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
|
---|
6284 | # FIXME: We include cofflink.lo not because it's needed for
|
---|
6285 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
|
---|
6286 | # which needs it but does not list it. Should be fixed in right place.
|
---|
6287 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
---|
6288 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
---|
6289 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
---|
6290 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
|
---|
6291 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
---|
6292 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
|
---|
6293 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
---|
6294 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
6295 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
---|
6296 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
6297 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
6298 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
6299 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
---|
6300 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6301 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6302 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
---|
6303 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
|
---|
6304 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
|
---|
6305 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
|
---|
6306 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
|
---|
6307 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
|
---|
6308 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6309 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6310 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6311 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6312 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6313 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6314 | bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6315 | bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6316 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6317 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6318 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6319 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6320 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6321 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
|
---|
6322 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6323 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
|
---|
6324 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6325 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
---|
6326 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
---|
6327 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
---|
6328 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
---|
6329 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
---|
6330 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
|
---|
6331 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6332 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6333 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
|
---|
6334 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
|
---|
6335 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
|
---|
6336 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6337 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6338 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6339 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6340 | cris_aout_vec) tb="$tb aout-cris.lo" ;;
|
---|
6341 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
|
---|
6342 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
6343 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
6344 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
6345 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
|
---|
6346 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
|
---|
6347 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
|
---|
6348 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
|
---|
6349 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
|
---|
6350 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
|
---|
6351 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
|
---|
6352 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
|
---|
6353 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
|
---|
6354 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
|
---|
6355 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
|
---|
6356 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
|
---|
6357 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
|
---|
6358 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
|
---|
6359 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6360 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
|
---|
6361 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
|
---|
6362 | i386msdos_vec) tb="$tb i386msdos.lo" ;;
|
---|
6363 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
|
---|
6364 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
|
---|
6365 | i386aout_emx_vec) tb="$tb i386aoutemx.lo aout32.lo" ;;
|
---|
6366 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
|
---|
6367 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
|
---|
6368 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
|
---|
6369 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
---|
6370 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
---|
6371 | ieee_vec) tb="$tb ieee.lo" ;;
|
---|
6372 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
|
---|
6373 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
|
---|
6374 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
|
---|
6375 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
|
---|
6376 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
|
---|
6377 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6378 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
|
---|
6379 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
|
---|
6380 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
|
---|
6381 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
|
---|
6382 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
|
---|
6383 | mach_o_be_vec) tb="$tb mach-o.lo" ;;
|
---|
6384 | mach_o_le_vec) tb="$tb mach-o.lo" ;;
|
---|
6385 | mach_o_fat_vec) tb="$tb mach-o.lo" ;;
|
---|
6386 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6387 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6388 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6389 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6390 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
|
---|
6391 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
|
---|
6392 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
|
---|
6393 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
|
---|
6394 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
|
---|
6395 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
|
---|
6396 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
|
---|
6397 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
|
---|
6398 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
|
---|
6399 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
|
---|
6400 | pef_vec) tb="$tb pef.lo" ;;
|
---|
6401 | pef_xlib_vec) tb="$tb pef.lo" ;;
|
---|
6402 | pdp11_aout_vec) tb="$tb pdp11.lo" ;;
|
---|
6403 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
---|
6404 | ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
---|
6405 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
|
---|
6406 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
|
---|
6407 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
---|
6408 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6409 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6410 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6411 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6412 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
---|
6413 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
---|
6414 | som_vec) tb="$tb som.lo" ;;
|
---|
6415 | sparccoff_vec) tb="$tb coff-sparc.lo" ;;
|
---|
6416 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
---|
6417 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
|
---|
6418 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6419 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
|
---|
6420 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
|
---|
6421 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
|
---|
6422 | sym_vec) tb="$tb xsym.lo" ;;
|
---|
6423 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
|
---|
6424 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
|
---|
6425 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
|
---|
6426 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
---|
6427 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
|
---|
6428 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
---|
6429 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
|
---|
6430 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
|
---|
6431 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6432 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6433 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6434 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6435 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6436 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6437 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
|
---|
6438 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
|
---|
6439 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
|
---|
6440 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
|
---|
6441 | versados_vec) tb="$tb versados.lo" ;;
|
---|
6442 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
|
---|
6443 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
|
---|
6444 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
|
---|
6445 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
|
---|
6446 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
|
---|
6447 |
|
---|
6448 | # These appear out of order in targets.c
|
---|
6449 | srec_vec) tb="$tb srec.lo" ;;
|
---|
6450 | symbolsrec_vec) tb="$tb srec.lo" ;;
|
---|
6451 | tekhex_vec) tb="$tb tekhex.lo" ;;
|
---|
6452 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
|
---|
6453 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
|
---|
6454 |
|
---|
6455 | "") ;;
|
---|
6456 | *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
|
---|
6457 | esac
|
---|
6458 |
|
---|
6459 | if test ${target_size} = 64; then
|
---|
6460 | target64=true
|
---|
6461 | fi
|
---|
6462 | if test x"${vec}" = x"${defvec}"; then
|
---|
6463 | bfd_default_target_size=${target_size}
|
---|
6464 | fi
|
---|
6465 | done
|
---|
6466 |
|
---|
6467 | # Target architecture .o files.
|
---|
6468 | # A couple of CPUs use shorter file names to avoid problems on DOS
|
---|
6469 | # filesystems.
|
---|
6470 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
|
---|
6471 |
|
---|
6472 | # Weed out duplicate .o files.
|
---|
6473 | f=""
|
---|
6474 | for i in $tb ; do
|
---|
6475 | case " $f " in
|
---|
6476 | *" $i "*) ;;
|
---|
6477 | *) f="$f $i" ;;
|
---|
6478 | esac
|
---|
6479 | done
|
---|
6480 | tb="$f"
|
---|
6481 |
|
---|
6482 | f=""
|
---|
6483 | for i in $ta ; do
|
---|
6484 | case " $f " in
|
---|
6485 | *" $i "*) ;;
|
---|
6486 | *) f="$f $i" ;;
|
---|
6487 | esac
|
---|
6488 | done
|
---|
6489 | ta="$f"
|
---|
6490 |
|
---|
6491 | bfd_backends="$tb"
|
---|
6492 | bfd_machines="$ta"
|
---|
6493 |
|
---|
6494 | if test x${all_targets} = xtrue ; then
|
---|
6495 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
---|
6496 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
---|
6497 | selvecs=
|
---|
6498 | havevecs=
|
---|
6499 | selarchs=
|
---|
6500 | test -n "$assocvecs" &&
|
---|
6501 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
---|
6502 | else # all_targets is true
|
---|
6503 | # Only set these if they will be nonempty, for the clever echo.
|
---|
6504 | havevecs=
|
---|
6505 | assocvecs=
|
---|
6506 | test -n "$selvecs" &&
|
---|
6507 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
|
---|
6508 | test -n "$selvecs" &&
|
---|
6509 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
---|
6510 | test -n "$selarchs" &&
|
---|
6511 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
---|
6512 | fi # all_targets is true
|
---|
6513 |
|
---|
6514 | case ${host64}-${target64}-${want64} in
|
---|
6515 | *true*)
|
---|
6516 | wordsize=64
|
---|
6517 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
|
---|
6518 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
|
---|
6519 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
|
---|
6520 | echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
|
---|
6521 | echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
|
---|
6522 | fi
|
---|
6523 | if test -n "$GCC" ; then
|
---|
6524 | bad_64bit_gcc=no;
|
---|
6525 | echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
|
---|
6526 | echo "configure:6527: checking for gcc version with buggy 64-bit support" >&5
|
---|
6527 | # Add more tests for gcc versions with non-working 64-bit support here.
|
---|
6528 | cat > conftest.$ac_ext <<EOF
|
---|
6529 | #line 6530 "configure"
|
---|
6530 | #include "confdefs.h"
|
---|
6531 | :__GNUC__:__GNUC_MINOR__:__i386__:
|
---|
6532 | EOF
|
---|
6533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6534 | egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
|
---|
6535 | rm -rf conftest*
|
---|
6536 | bad_64bit_gcc=yes;
|
---|
6537 | echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
|
---|
6538 | else
|
---|
6539 | rm -rf conftest*
|
---|
6540 | echo "$ac_t""no" 1>&6
|
---|
6541 | fi
|
---|
6542 | rm -f conftest*
|
---|
6543 |
|
---|
6544 | if test $bad_64bit_gcc = yes ; then
|
---|
6545 | { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
|
---|
6546 | fi
|
---|
6547 | fi
|
---|
6548 | ;;
|
---|
6549 | false-false-false)
|
---|
6550 | wordsize=32
|
---|
6551 | bfd_libs='$(BFD32_LIBS)'
|
---|
6552 | all_backends='$(BFD32_BACKENDS)'
|
---|
6553 | ;;
|
---|
6554 | esac
|
---|
6555 |
|
---|
6556 |
|
---|
6557 |
|
---|
6558 |
|
---|
6559 |
|
---|
6560 |
|
---|
6561 |
|
---|
6562 |
|
---|
6563 | tdefaults=""
|
---|
6564 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
|
---|
6565 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
|
---|
6566 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
|
---|
6567 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
|
---|
6568 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
|
---|
6569 |
|
---|
6570 |
|
---|
6571 | for ac_hdr in unistd.h
|
---|
6572 | do
|
---|
6573 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
6574 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
6575 | echo "configure:6576: checking for $ac_hdr" >&5
|
---|
6576 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
6577 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6578 | else
|
---|
6579 | cat > conftest.$ac_ext <<EOF
|
---|
6580 | #include <sys/types.h>
|
---|
6581 | #line 6582 "configure"
|
---|
6582 | #include "confdefs.h"
|
---|
6583 | #include <$ac_hdr>
|
---|
6584 | EOF
|
---|
6585 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
6586 | { (eval echo configure:6587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
6587 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
6588 | if test -z "$ac_err"; then
|
---|
6589 | rm -rf conftest*
|
---|
6590 | eval "ac_cv_header_$ac_safe=yes"
|
---|
6591 | else
|
---|
6592 | echo "$ac_err" >&5
|
---|
6593 | echo "configure: failed program was:" >&5
|
---|
6594 | cat conftest.$ac_ext >&5
|
---|
6595 | rm -rf conftest*
|
---|
6596 | eval "ac_cv_header_$ac_safe=no"
|
---|
6597 | fi
|
---|
6598 | rm -f conftest*
|
---|
6599 | fi
|
---|
6600 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
6601 | echo "$ac_t""yes" 1>&6
|
---|
6602 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
6603 | cat >> confdefs.h <<EOF
|
---|
6604 | #define $ac_tr_hdr 1
|
---|
6605 | EOF
|
---|
6606 |
|
---|
6607 | else
|
---|
6608 | echo "$ac_t""no" 1>&6
|
---|
6609 | fi
|
---|
6610 | done
|
---|
6611 |
|
---|
6612 | for ac_func in getpagesize
|
---|
6613 | do
|
---|
6614 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6615 | echo "configure:6616: checking for $ac_func" >&5
|
---|
6616 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6617 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6618 | else
|
---|
6619 | cat > conftest.$ac_ext <<EOF
|
---|
6620 | #line 6621 "configure"
|
---|
6621 | #include "confdefs.h"
|
---|
6622 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6623 | which can conflict with char $ac_func(); below. */
|
---|
6624 | #include <assert.h>
|
---|
6625 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6626 | /* We use char because int might match the return type of a gcc2
|
---|
6627 | builtin and then its argument prototype would still apply. */
|
---|
6628 | char $ac_func();
|
---|
6629 |
|
---|
6630 | int main() {
|
---|
6631 |
|
---|
6632 | /* The GNU C library defines this for functions which it implements
|
---|
6633 | to always fail with ENOSYS. Some functions are actually named
|
---|
6634 | something starting with __ and the normal name is an alias. */
|
---|
6635 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6636 | choke me
|
---|
6637 | #else
|
---|
6638 | $ac_func();
|
---|
6639 | #endif
|
---|
6640 |
|
---|
6641 | ; return 0; }
|
---|
6642 | EOF
|
---|
6643 | if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6644 | rm -rf conftest*
|
---|
6645 | eval "ac_cv_func_$ac_func=yes"
|
---|
6646 | else
|
---|
6647 | echo "configure: failed program was:" >&5
|
---|
6648 | cat conftest.$ac_ext >&5
|
---|
6649 | rm -rf conftest*
|
---|
6650 | eval "ac_cv_func_$ac_func=no"
|
---|
6651 | fi
|
---|
6652 | rm -f conftest*
|
---|
6653 | fi
|
---|
6654 |
|
---|
6655 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6656 | echo "$ac_t""yes" 1>&6
|
---|
6657 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
6658 | cat >> confdefs.h <<EOF
|
---|
6659 | #define $ac_tr_func 1
|
---|
6660 | EOF
|
---|
6661 |
|
---|
6662 | else
|
---|
6663 | echo "$ac_t""no" 1>&6
|
---|
6664 | fi
|
---|
6665 | done
|
---|
6666 |
|
---|
6667 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
6668 | echo "configure:6669: checking for working mmap" >&5
|
---|
6669 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
6670 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6671 | else
|
---|
6672 | if test "$cross_compiling" = yes; then
|
---|
6673 | ac_cv_func_mmap_fixed_mapped=no
|
---|
6674 | else
|
---|
6675 | cat > conftest.$ac_ext <<EOF
|
---|
6676 | #line 6677 "configure"
|
---|
6677 | #include "confdefs.h"
|
---|
6678 |
|
---|
6679 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
6680 | Here is a matrix of mmap possibilities:
|
---|
6681 | mmap private not fixed
|
---|
6682 | mmap private fixed at somewhere currently unmapped
|
---|
6683 | mmap private fixed at somewhere already mapped
|
---|
6684 | mmap shared not fixed
|
---|
6685 | mmap shared fixed at somewhere currently unmapped
|
---|
6686 | mmap shared fixed at somewhere already mapped
|
---|
6687 | For private mappings, we should verify that changes cannot be read()
|
---|
6688 | back from the file, nor mmap's back from the file at a different
|
---|
6689 | address. (There have been systems where private was not correctly
|
---|
6690 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
6691 | VM page cache was not coherent with the filesystem buffer cache
|
---|
6692 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
6693 | For shared mappings, we should conversely verify that changes get
|
---|
6694 | propogated back to all the places they're supposed to be.
|
---|
6695 |
|
---|
6696 | Grep wants private fixed already mapped.
|
---|
6697 | The main things grep needs to know about mmap are:
|
---|
6698 | * does it exist and is it safe to write into the mmap'd area
|
---|
6699 | * how to use it (BSD variants) */
|
---|
6700 | #include <sys/types.h>
|
---|
6701 | #include <fcntl.h>
|
---|
6702 | #include <sys/mman.h>
|
---|
6703 |
|
---|
6704 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
6705 | #ifndef HAVE_GETPAGESIZE
|
---|
6706 | # ifdef HAVE_UNISTD_H
|
---|
6707 | # include <unistd.h>
|
---|
6708 | # endif
|
---|
6709 |
|
---|
6710 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
6711 | # ifndef HAVE_SYS_PARAM_H
|
---|
6712 | # define HAVE_SYS_PARAM_H 1
|
---|
6713 | # endif
|
---|
6714 |
|
---|
6715 | # ifdef _SC_PAGESIZE
|
---|
6716 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
6717 | # else /* no _SC_PAGESIZE */
|
---|
6718 | # ifdef HAVE_SYS_PARAM_H
|
---|
6719 | # include <sys/param.h>
|
---|
6720 | # ifdef EXEC_PAGESIZE
|
---|
6721 | # define getpagesize() EXEC_PAGESIZE
|
---|
6722 | # else /* no EXEC_PAGESIZE */
|
---|
6723 | # ifdef NBPG
|
---|
6724 | # define getpagesize() NBPG * CLSIZE
|
---|
6725 | # ifndef CLSIZE
|
---|
6726 | # define CLSIZE 1
|
---|
6727 | # endif /* no CLSIZE */
|
---|
6728 | # else /* no NBPG */
|
---|
6729 | # ifdef NBPC
|
---|
6730 | # define getpagesize() NBPC
|
---|
6731 | # else /* no NBPC */
|
---|
6732 | # ifdef PAGESIZE
|
---|
6733 | # define getpagesize() PAGESIZE
|
---|
6734 | # endif /* PAGESIZE */
|
---|
6735 | # endif /* no NBPC */
|
---|
6736 | # endif /* no NBPG */
|
---|
6737 | # endif /* no EXEC_PAGESIZE */
|
---|
6738 | # else /* no HAVE_SYS_PARAM_H */
|
---|
6739 | # define getpagesize() 8192 /* punt totally */
|
---|
6740 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
6741 | # endif /* no _SC_PAGESIZE */
|
---|
6742 |
|
---|
6743 | #endif /* no HAVE_GETPAGESIZE */
|
---|
6744 |
|
---|
6745 | #ifdef __cplusplus
|
---|
6746 | extern "C" { void *malloc(unsigned); }
|
---|
6747 | #else
|
---|
6748 | char *malloc();
|
---|
6749 | #endif
|
---|
6750 |
|
---|
6751 | int
|
---|
6752 | main()
|
---|
6753 | {
|
---|
6754 | char *data, *data2, *data3;
|
---|
6755 | int i, pagesize;
|
---|
6756 | int fd;
|
---|
6757 |
|
---|
6758 | pagesize = getpagesize();
|
---|
6759 |
|
---|
6760 | /*
|
---|
6761 | * First, make a file with some known garbage in it.
|
---|
6762 | */
|
---|
6763 | data = malloc(pagesize);
|
---|
6764 | if (!data)
|
---|
6765 | exit(1);
|
---|
6766 | for (i = 0; i < pagesize; ++i)
|
---|
6767 | *(data + i) = rand();
|
---|
6768 | umask(0);
|
---|
6769 | fd = creat("conftestmmap", 0600);
|
---|
6770 | if (fd < 0)
|
---|
6771 | exit(1);
|
---|
6772 | if (write(fd, data, pagesize) != pagesize)
|
---|
6773 | exit(1);
|
---|
6774 | close(fd);
|
---|
6775 |
|
---|
6776 | /*
|
---|
6777 | * Next, try to mmap the file at a fixed address which
|
---|
6778 | * already has something else allocated at it. If we can,
|
---|
6779 | * also make sure that we see the same garbage.
|
---|
6780 | */
|
---|
6781 | fd = open("conftestmmap", O_RDWR);
|
---|
6782 | if (fd < 0)
|
---|
6783 | exit(1);
|
---|
6784 | data2 = malloc(2 * pagesize);
|
---|
6785 | if (!data2)
|
---|
6786 | exit(1);
|
---|
6787 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
6788 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
6789 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
6790 | exit(1);
|
---|
6791 | for (i = 0; i < pagesize; ++i)
|
---|
6792 | if (*(data + i) != *(data2 + i))
|
---|
6793 | exit(1);
|
---|
6794 |
|
---|
6795 | /*
|
---|
6796 | * Finally, make sure that changes to the mapped area
|
---|
6797 | * do not percolate back to the file as seen by read().
|
---|
6798 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
6799 | */
|
---|
6800 | for (i = 0; i < pagesize; ++i)
|
---|
6801 | *(data2 + i) = *(data2 + i) + 1;
|
---|
6802 | data3 = malloc(pagesize);
|
---|
6803 | if (!data3)
|
---|
6804 | exit(1);
|
---|
6805 | if (read(fd, data3, pagesize) != pagesize)
|
---|
6806 | exit(1);
|
---|
6807 | for (i = 0; i < pagesize; ++i)
|
---|
6808 | if (*(data + i) != *(data3 + i))
|
---|
6809 | exit(1);
|
---|
6810 | close(fd);
|
---|
6811 | unlink("conftestmmap");
|
---|
6812 | exit(0);
|
---|
6813 | }
|
---|
6814 |
|
---|
6815 | EOF
|
---|
6816 | if { (eval echo configure:6817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
6817 | then
|
---|
6818 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
6819 | else
|
---|
6820 | echo "configure: failed program was:" >&5
|
---|
6821 | cat conftest.$ac_ext >&5
|
---|
6822 | rm -fr conftest*
|
---|
6823 | ac_cv_func_mmap_fixed_mapped=no
|
---|
6824 | fi
|
---|
6825 | rm -fr conftest*
|
---|
6826 | fi
|
---|
6827 |
|
---|
6828 | fi
|
---|
6829 |
|
---|
6830 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
6831 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
6832 | cat >> confdefs.h <<\EOF
|
---|
6833 | #define HAVE_MMAP 1
|
---|
6834 | EOF
|
---|
6835 |
|
---|
6836 | fi
|
---|
6837 |
|
---|
6838 | for ac_func in madvise mprotect
|
---|
6839 | do
|
---|
6840 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6841 | echo "configure:6842: checking for $ac_func" >&5
|
---|
6842 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6843 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6844 | else
|
---|
6845 | cat > conftest.$ac_ext <<EOF
|
---|
6846 | #line 6847 "configure"
|
---|
6847 | #include "confdefs.h"
|
---|
6848 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6849 | which can conflict with char $ac_func(); below. */
|
---|
6850 | #include <assert.h>
|
---|
6851 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6852 | /* We use char because int might match the return type of a gcc2
|
---|
6853 | builtin and then its argument prototype would still apply. */
|
---|
6854 | char $ac_func();
|
---|
6855 |
|
---|
6856 | int main() {
|
---|
6857 |
|
---|
6858 | /* The GNU C library defines this for functions which it implements
|
---|
6859 | to always fail with ENOSYS. Some functions are actually named
|
---|
6860 | something starting with __ and the normal name is an alias. */
|
---|
6861 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6862 | choke me
|
---|
6863 | #else
|
---|
6864 | $ac_func();
|
---|
6865 | #endif
|
---|
6866 |
|
---|
6867 | ; return 0; }
|
---|
6868 | EOF
|
---|
6869 | if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6870 | rm -rf conftest*
|
---|
6871 | eval "ac_cv_func_$ac_func=yes"
|
---|
6872 | else
|
---|
6873 | echo "configure: failed program was:" >&5
|
---|
6874 | cat conftest.$ac_ext >&5
|
---|
6875 | rm -rf conftest*
|
---|
6876 | eval "ac_cv_func_$ac_func=no"
|
---|
6877 | fi
|
---|
6878 | rm -f conftest*
|
---|
6879 | fi
|
---|
6880 |
|
---|
6881 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6882 | echo "$ac_t""yes" 1>&6
|
---|
6883 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
6884 | cat >> confdefs.h <<EOF
|
---|
6885 | #define $ac_tr_func 1
|
---|
6886 | EOF
|
---|
6887 |
|
---|
6888 | else
|
---|
6889 | echo "$ac_t""no" 1>&6
|
---|
6890 | fi
|
---|
6891 | done
|
---|
6892 |
|
---|
6893 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
---|
6894 | true+yes ) cat >> confdefs.h <<\EOF
|
---|
6895 | #define USE_MMAP 1
|
---|
6896 | EOF
|
---|
6897 | ;;
|
---|
6898 | esac
|
---|
6899 |
|
---|
6900 | rm -f doc/config.status
|
---|
6901 | trap '' 1 2 15
|
---|
6902 | cat > confcache <<\EOF
|
---|
6903 | # This file is a shell script that caches the results of configure
|
---|
6904 | # tests run on this system so they can be shared between configure
|
---|
6905 | # scripts and configure runs. It is not useful on other systems.
|
---|
6906 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
6907 | #
|
---|
6908 | # By default, configure uses ./config.cache as the cache file,
|
---|
6909 | # creating it if it does not exist already. You can give configure
|
---|
6910 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
6911 | # what configure does when it calls configure scripts in
|
---|
6912 | # subdirectories, so they share the cache.
|
---|
6913 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
6914 | # config.status only pays attention to the cache file if you give it the
|
---|
6915 | # --recheck option to rerun configure.
|
---|
6916 | #
|
---|
6917 | EOF
|
---|
6918 | # The following way of writing the cache mishandles newlines in values,
|
---|
6919 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6920 | # So, don't put newlines in cache variables' values.
|
---|
6921 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6922 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6923 | (set) 2>&1 |
|
---|
6924 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
6925 | *ac_space=\ *)
|
---|
6926 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
6927 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
6928 | sed -n \
|
---|
6929 | -e "s/'/'\\\\''/g" \
|
---|
6930 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
6931 | ;;
|
---|
6932 | *)
|
---|
6933 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6934 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
6935 | ;;
|
---|
6936 | esac >> confcache
|
---|
6937 | if cmp -s $cache_file confcache; then
|
---|
6938 | :
|
---|
6939 | else
|
---|
6940 | if test -w $cache_file; then
|
---|
6941 | echo "updating cache $cache_file"
|
---|
6942 | cat confcache > $cache_file
|
---|
6943 | else
|
---|
6944 | echo "not updating unwritable cache $cache_file"
|
---|
6945 | fi
|
---|
6946 | fi
|
---|
6947 | rm -f confcache
|
---|
6948 |
|
---|
6949 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
6950 |
|
---|
6951 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6952 | # Let make expand exec_prefix.
|
---|
6953 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6954 |
|
---|
6955 | # Any assignment to VPATH causes Sun make to only execute
|
---|
6956 | # the first set of double-colon rules, so remove it if not needed.
|
---|
6957 | # If there is a colon in the path, we need to keep it.
|
---|
6958 | if test "x$srcdir" = x.; then
|
---|
6959 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
6960 | fi
|
---|
6961 |
|
---|
6962 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
6963 |
|
---|
6964 | DEFS=-DHAVE_CONFIG_H
|
---|
6965 |
|
---|
6966 | # Without the "./", some shells look in PATH for config.status.
|
---|
6967 | : ${CONFIG_STATUS=./config.status}
|
---|
6968 |
|
---|
6969 | echo creating $CONFIG_STATUS
|
---|
6970 | rm -f $CONFIG_STATUS
|
---|
6971 | cat > $CONFIG_STATUS <<EOF
|
---|
6972 | #! /bin/sh
|
---|
6973 | # Generated automatically by configure.
|
---|
6974 | # Run this file to recreate the current configuration.
|
---|
6975 | # This directory was configured as follows,
|
---|
6976 | EOF
|
---|
6977 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
6978 | cat >> $CONFIG_STATUS <<EOF
|
---|
6979 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
6980 | #
|
---|
6981 | # $0 $ac_configure_args
|
---|
6982 | #
|
---|
6983 | # Compiler output produced by configure, useful for debugging
|
---|
6984 | # configure, is in ./config.log if it exists.
|
---|
6985 |
|
---|
6986 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
6987 | for ac_option
|
---|
6988 | do
|
---|
6989 | case "\$ac_option" in
|
---|
6990 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
6991 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
6992 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
6993 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
6994 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
6995 | exit 0 ;;
|
---|
6996 | -help | --help | --hel | --he | --h)
|
---|
6997 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
6998 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
6999 | esac
|
---|
7000 | done
|
---|
7001 |
|
---|
7002 | ac_given_srcdir=$srcdir
|
---|
7003 | ac_given_INSTALL="$INSTALL"
|
---|
7004 | PATHIFS="$PATH_IFS"
|
---|
7005 |
|
---|
7006 | trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
7007 | EOF
|
---|
7008 | cat >> $CONFIG_STATUS <<EOF
|
---|
7009 |
|
---|
7010 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7011 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
7012 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
7013 | $ac_vpsub
|
---|
7014 | $extrasub
|
---|
7015 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
7016 | s%@SHELL@%$SHELL%g
|
---|
7017 | s%@CFLAGS@%$CFLAGS%g
|
---|
7018 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
7019 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
7020 | s%@FFLAGS@%$FFLAGS%g
|
---|
7021 | s%@DEFS@%$DEFS%g
|
---|
7022 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
7023 | s%@LIBS@%$LIBS%g
|
---|
7024 | s%@exec_prefix@%$exec_prefix%g
|
---|
7025 | s%@prefix@%$prefix%g
|
---|
7026 | s%@program_transform_name@%$program_transform_name%g
|
---|
7027 | s%@bindir@%$bindir%g
|
---|
7028 | s%@sbindir@%$sbindir%g
|
---|
7029 | s%@libexecdir@%$libexecdir%g
|
---|
7030 | s%@datadir@%$datadir%g
|
---|
7031 | s%@sysconfdir@%$sysconfdir%g
|
---|
7032 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
7033 | s%@localstatedir@%$localstatedir%g
|
---|
7034 | s%@libdir@%$libdir%g
|
---|
7035 | s%@includedir@%$includedir%g
|
---|
7036 | s%@oldincludedir@%$oldincludedir%g
|
---|
7037 | s%@infodir@%$infodir%g
|
---|
7038 | s%@mandir@%$mandir%g
|
---|
7039 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
7040 | s%@EXEEXT@%$EXEEXT%g
|
---|
7041 | s%@host@%$host%g
|
---|
7042 | s%@host_alias@%$host_alias%g
|
---|
7043 | s%@host_cpu@%$host_cpu%g
|
---|
7044 | s%@host_vendor@%$host_vendor%g
|
---|
7045 | s%@host_os@%$host_os%g
|
---|
7046 | s%@target@%$target%g
|
---|
7047 | s%@target_alias@%$target_alias%g
|
---|
7048 | s%@target_cpu@%$target_cpu%g
|
---|
7049 | s%@target_vendor@%$target_vendor%g
|
---|
7050 | s%@target_os@%$target_os%g
|
---|
7051 | s%@build@%$build%g
|
---|
7052 | s%@build_alias@%$build_alias%g
|
---|
7053 | s%@build_cpu@%$build_cpu%g
|
---|
7054 | s%@build_vendor@%$build_vendor%g
|
---|
7055 | s%@build_os@%$build_os%g
|
---|
7056 | s%@CC@%$CC%g
|
---|
7057 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
7058 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
7059 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
7060 | s%@PACKAGE@%$PACKAGE%g
|
---|
7061 | s%@VERSION@%$VERSION%g
|
---|
7062 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
7063 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
7064 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
7065 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
7066 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
7067 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
7068 | s%@bfd_version@%$bfd_version%g
|
---|
7069 | s%@bfd_version_string@%$bfd_version_string%g
|
---|
7070 | s%@AR@%$AR%g
|
---|
7071 | s%@RANLIB@%$RANLIB%g
|
---|
7072 | s%@LN_S@%$LN_S%g
|
---|
7073 | s%@OBJEXT@%$OBJEXT%g
|
---|
7074 | s%@STRIP@%$STRIP%g
|
---|
7075 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
7076 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
---|
7077 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
7078 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
7079 | s%@MAINT@%$MAINT%g
|
---|
7080 | s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
|
---|
7081 | s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
|
---|
7082 | s%@bfdlibdir@%$bfdlibdir%g
|
---|
7083 | s%@bfdincludedir@%$bfdincludedir%g
|
---|
7084 | s%@CPP@%$CPP%g
|
---|
7085 | s%@ALLOCA@%$ALLOCA%g
|
---|
7086 | s%@USE_NLS@%$USE_NLS%g
|
---|
7087 | s%@MSGFMT@%$MSGFMT%g
|
---|
7088 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
7089 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
7090 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
7091 | s%@CATALOGS@%$CATALOGS%g
|
---|
7092 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
7093 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
7094 | s%@GMOFILES@%$GMOFILES%g
|
---|
7095 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
7096 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
7097 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
7098 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
7099 | s%@POFILES@%$POFILES%g
|
---|
7100 | s%@POSUB@%$POSUB%g
|
---|
7101 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
7102 | s%@GT_NO@%$GT_NO%g
|
---|
7103 | s%@GT_YES@%$GT_YES%g
|
---|
7104 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
7105 | s%@l@%$l%g
|
---|
7106 | s%@HDEFINES@%$HDEFINES%g
|
---|
7107 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
|
---|
7108 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
|
---|
7109 | s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
|
---|
7110 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
|
---|
7111 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
|
---|
7112 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
|
---|
7113 | s%@COREFILE@%$COREFILE%g
|
---|
7114 | s%@COREFLAG@%$COREFLAG%g
|
---|
7115 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
---|
7116 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
---|
7117 | s%@TDEFINES@%$TDEFINES%g
|
---|
7118 | s%@wordsize@%$wordsize%g
|
---|
7119 | s%@bfd_libs@%$bfd_libs%g
|
---|
7120 | s%@all_backends@%$all_backends%g
|
---|
7121 | s%@bfd_backends@%$bfd_backends%g
|
---|
7122 | s%@bfd_machines@%$bfd_machines%g
|
---|
7123 | s%@bfd_default_target_size@%$bfd_default_target_size%g
|
---|
7124 | s%@tdefaults@%$tdefaults%g
|
---|
7125 |
|
---|
7126 | CEOF
|
---|
7127 | EOF
|
---|
7128 |
|
---|
7129 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7130 |
|
---|
7131 | # Split the substitutions into bite-sized pieces for seds with
|
---|
7132 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
7133 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
7134 | ac_file=1 # Number of current file.
|
---|
7135 | ac_beg=1 # First line for current file.
|
---|
7136 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
7137 | ac_more_lines=:
|
---|
7138 | ac_sed_cmds=""
|
---|
7139 | while $ac_more_lines; do
|
---|
7140 | if test $ac_beg -gt 1; then
|
---|
7141 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7142 | else
|
---|
7143 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7144 | fi
|
---|
7145 | if test ! -s conftest.s$ac_file; then
|
---|
7146 | ac_more_lines=false
|
---|
7147 | rm -f conftest.s$ac_file
|
---|
7148 | else
|
---|
7149 | if test -z "$ac_sed_cmds"; then
|
---|
7150 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
7151 | else
|
---|
7152 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
7153 | fi
|
---|
7154 | ac_file=`expr $ac_file + 1`
|
---|
7155 | ac_beg=$ac_end
|
---|
7156 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
7157 | fi
|
---|
7158 | done
|
---|
7159 | if test -z "$ac_sed_cmds"; then
|
---|
7160 | ac_sed_cmds=cat
|
---|
7161 | fi
|
---|
7162 | EOF
|
---|
7163 |
|
---|
7164 | cat >> $CONFIG_STATUS <<EOF
|
---|
7165 |
|
---|
7166 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
|
---|
7167 | EOF
|
---|
7168 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7169 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
7170 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7171 | case "$ac_file" in
|
---|
7172 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7173 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7174 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7175 | esac
|
---|
7176 |
|
---|
7177 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
7178 |
|
---|
7179 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7180 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7181 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7182 | # The file is in a subdirectory.
|
---|
7183 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7184 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
7185 | # A "../" for each directory in $ac_dir_suffix.
|
---|
7186 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
7187 | else
|
---|
7188 | ac_dir_suffix= ac_dots=
|
---|
7189 | fi
|
---|
7190 |
|
---|
7191 | case "$ac_given_srcdir" in
|
---|
7192 | .) srcdir=.
|
---|
7193 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
7194 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
7195 | [/\\]* | [a-zA-Z]:*)
|
---|
7196 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
7197 | *) # Relative path.
|
---|
7198 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
7199 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
7200 | esac
|
---|
7201 |
|
---|
7202 | case "$ac_given_INSTALL" in
|
---|
7203 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
7204 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
7205 | esac
|
---|
7206 |
|
---|
7207 | echo creating "$ac_file"
|
---|
7208 | rm -f "$ac_file"
|
---|
7209 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
7210 | case "$ac_file" in
|
---|
7211 | *Makefile*) ac_comsub="1i\\
|
---|
7212 | # $configure_input" ;;
|
---|
7213 | *) ac_comsub= ;;
|
---|
7214 | esac
|
---|
7215 |
|
---|
7216 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
7217 | sed -e "$ac_comsub
|
---|
7218 | s%@configure_input@%$configure_input%g
|
---|
7219 | s%@srcdir@%$srcdir%g
|
---|
7220 | s%@top_srcdir@%$top_srcdir%g
|
---|
7221 | s%@INSTALL@%$INSTALL%g
|
---|
7222 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
7223 | fi; done
|
---|
7224 | rm -f conftest.s*
|
---|
7225 |
|
---|
7226 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
7227 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
7228 | #
|
---|
7229 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
7230 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
7231 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
7232 | ac_dC='\3'
|
---|
7233 | ac_dD='%g'
|
---|
7234 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
7235 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7236 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
7237 | ac_uC=' '
|
---|
7238 | ac_uD='\4%g'
|
---|
7239 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
7240 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7241 | ac_eB='$%\1#\2define\3'
|
---|
7242 | ac_eC=' '
|
---|
7243 | ac_eD='%g'
|
---|
7244 |
|
---|
7245 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
7246 | EOF
|
---|
7247 | cat >> $CONFIG_STATUS <<EOF
|
---|
7248 | CONFIG_HEADERS="config.h:config.in"
|
---|
7249 | EOF
|
---|
7250 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7251 | fi
|
---|
7252 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
7253 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7254 | case "$ac_file" in
|
---|
7255 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7256 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7257 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7258 | esac
|
---|
7259 |
|
---|
7260 | echo creating $ac_file
|
---|
7261 |
|
---|
7262 | rm -f conftest.frag conftest.in conftest.out
|
---|
7263 | # kso the other way around might work better with drive letters and such.
|
---|
7264 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
7265 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
7266 | cat $ac_file_inputs > conftest.in
|
---|
7267 |
|
---|
7268 | EOF
|
---|
7269 |
|
---|
7270 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
7271 | # the proper values into config.h.in to produce config.h. And first:
|
---|
7272 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7273 | # Protect against being in an unquoted here document in config.status.
|
---|
7274 | rm -f conftest.vals
|
---|
7275 | cat > conftest.hdr <<\EOF
|
---|
7276 | s/[\\&%]/\\&/g
|
---|
7277 | s%[\\$`]%\\&%g
|
---|
7278 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
7279 | s%ac_d%ac_u%gp
|
---|
7280 | s%ac_u%ac_e%gp
|
---|
7281 | EOF
|
---|
7282 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
7283 | rm -f conftest.hdr
|
---|
7284 |
|
---|
7285 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
7286 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7287 | # on some systems where configure will not decide to define it.
|
---|
7288 | cat >> conftest.vals <<\EOF
|
---|
7289 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
7290 | EOF
|
---|
7291 |
|
---|
7292 | # Break up conftest.vals because some shells have a limit on
|
---|
7293 | # the size of here documents, and old seds have small limits too.
|
---|
7294 |
|
---|
7295 | rm -f conftest.tail
|
---|
7296 | while :
|
---|
7297 | do
|
---|
7298 | ac_lines=`grep -c . conftest.vals`
|
---|
7299 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
7300 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
7301 | # Write a limited-size here document to conftest.frag.
|
---|
7302 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
7303 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
7304 | echo 'CEOF
|
---|
7305 | sed -f conftest.frag conftest.in > conftest.out
|
---|
7306 | rm -f conftest.in
|
---|
7307 | mv conftest.out conftest.in
|
---|
7308 | ' >> $CONFIG_STATUS
|
---|
7309 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
7310 | rm -f conftest.vals
|
---|
7311 | mv conftest.tail conftest.vals
|
---|
7312 | done
|
---|
7313 | rm -f conftest.vals
|
---|
7314 |
|
---|
7315 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7316 | rm -f conftest.frag conftest.h
|
---|
7317 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
7318 | cat conftest.in >> conftest.h
|
---|
7319 | rm -f conftest.in
|
---|
7320 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
7321 | echo "$ac_file is unchanged"
|
---|
7322 | rm -f conftest.h
|
---|
7323 | else
|
---|
7324 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7325 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7326 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7327 | # The file is in a subdirectory.
|
---|
7328 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7329 | fi
|
---|
7330 | rm -f $ac_file
|
---|
7331 | mv conftest.h $ac_file
|
---|
7332 | fi
|
---|
7333 | fi; done
|
---|
7334 |
|
---|
7335 | EOF
|
---|
7336 | cat >> $CONFIG_STATUS <<EOF
|
---|
7337 |
|
---|
7338 |
|
---|
7339 | EOF
|
---|
7340 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7341 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
7342 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
|
---|
7343 | exit 0
|
---|
7344 | EOF
|
---|
7345 | chmod +x $CONFIG_STATUS
|
---|
7346 | rm -fr confdefs* $ac_clean_files
|
---|
7347 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
7348 |
|
---|
7349 |
|
---|