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 | --disable-nls do not use Native Language Support"
|
---|
41 | ac_help="$ac_help
|
---|
42 | --with-included-gettext use the GNU gettext library included here"
|
---|
43 |
|
---|
44 | # Initialize some variables set by options.
|
---|
45 | # The variables have the same names as the options, with
|
---|
46 | # dashes changed to underlines.
|
---|
47 | build=NONE
|
---|
48 | cache_file=./config.cache
|
---|
49 | exec_prefix=NONE
|
---|
50 | host=NONE
|
---|
51 | no_create=
|
---|
52 | nonopt=NONE
|
---|
53 | no_recursion=
|
---|
54 | prefix=NONE
|
---|
55 | program_prefix=NONE
|
---|
56 | program_suffix=NONE
|
---|
57 | program_transform_name=s,x,x,
|
---|
58 | silent=
|
---|
59 | site=
|
---|
60 | sitefile=
|
---|
61 | srcdir=
|
---|
62 | target=NONE
|
---|
63 | verbose=
|
---|
64 | x_includes=NONE
|
---|
65 | x_libraries=NONE
|
---|
66 | bindir='${exec_prefix}/bin'
|
---|
67 | sbindir='${exec_prefix}/sbin'
|
---|
68 | libexecdir='${exec_prefix}/libexec'
|
---|
69 | datadir='${prefix}/share'
|
---|
70 | sysconfdir='${prefix}/etc'
|
---|
71 | sharedstatedir='${prefix}/com'
|
---|
72 | localstatedir='${prefix}/var'
|
---|
73 | libdir='${exec_prefix}/lib'
|
---|
74 | includedir='${prefix}/include'
|
---|
75 | oldincludedir='/usr/include'
|
---|
76 | infodir='${prefix}/info'
|
---|
77 | mandir='${prefix}/man'
|
---|
78 |
|
---|
79 | # Initialize some other variables.
|
---|
80 | subdirs=
|
---|
81 | MFLAGS= MAKEFLAGS=
|
---|
82 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
83 | # Maximum number of lines to put in a shell here document.
|
---|
84 | ac_max_here_lines=12
|
---|
85 |
|
---|
86 | ac_prev=
|
---|
87 | for ac_option
|
---|
88 | do
|
---|
89 |
|
---|
90 | # If the previous option needs an argument, assign it.
|
---|
91 | if test -n "$ac_prev"; then
|
---|
92 | eval "$ac_prev=\$ac_option"
|
---|
93 | ac_prev=
|
---|
94 | continue
|
---|
95 | fi
|
---|
96 |
|
---|
97 | case "$ac_option" in
|
---|
98 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
99 | *) ac_optarg= ;;
|
---|
100 | esac
|
---|
101 |
|
---|
102 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
103 |
|
---|
104 | case "$ac_option" in
|
---|
105 |
|
---|
106 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
107 | ac_prev=bindir ;;
|
---|
108 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
109 | bindir="$ac_optarg" ;;
|
---|
110 |
|
---|
111 | -build | --build | --buil | --bui | --bu)
|
---|
112 | ac_prev=build ;;
|
---|
113 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
114 | build="$ac_optarg" ;;
|
---|
115 |
|
---|
116 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
117 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
118 | ac_prev=cache_file ;;
|
---|
119 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
120 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
121 | cache_file="$ac_optarg" ;;
|
---|
122 |
|
---|
123 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
124 | ac_prev=datadir ;;
|
---|
125 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
126 | | --da=*)
|
---|
127 | datadir="$ac_optarg" ;;
|
---|
128 |
|
---|
129 | -disable-* | --disable-*)
|
---|
130 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
131 | # Reject names that are not valid shell variable names.
|
---|
132 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
134 | fi
|
---|
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
136 | eval "enable_${ac_feature}=no" ;;
|
---|
137 |
|
---|
138 | -enable-* | --enable-*)
|
---|
139 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
140 | # Reject names that are not valid shell variable names.
|
---|
141 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
142 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
143 | fi
|
---|
144 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
145 | case "$ac_option" in
|
---|
146 | *=*) ;;
|
---|
147 | *) ac_optarg=yes ;;
|
---|
148 | esac
|
---|
149 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
150 |
|
---|
151 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
152 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
153 | | --exec | --exe | --ex)
|
---|
154 | ac_prev=exec_prefix ;;
|
---|
155 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
156 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
157 | | --exec=* | --exe=* | --ex=*)
|
---|
158 | exec_prefix="$ac_optarg" ;;
|
---|
159 |
|
---|
160 | -gas | --gas | --ga | --g)
|
---|
161 | # Obsolete; use --with-gas.
|
---|
162 | with_gas=yes ;;
|
---|
163 |
|
---|
164 | -help | --help | --hel | --he)
|
---|
165 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
166 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
167 | cat << EOF
|
---|
168 | Usage: configure [options] [host]
|
---|
169 | Options: [defaults in brackets after descriptions]
|
---|
170 | Configuration:
|
---|
171 | --cache-file=FILE cache test results in FILE
|
---|
172 | --help print this message
|
---|
173 | --no-create do not create output files
|
---|
174 | --quiet, --silent do not print \`checking...' messages
|
---|
175 | --site-file=FILE use FILE as the site file
|
---|
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 | -site-file | --site-file | --site-fil | --site-fi | --site-f)
|
---|
347 | ac_prev=sitefile ;;
|
---|
348 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
|
---|
349 | sitefile="$ac_optarg" ;;
|
---|
350 |
|
---|
351 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
352 | ac_prev=srcdir ;;
|
---|
353 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
354 | srcdir="$ac_optarg" ;;
|
---|
355 |
|
---|
356 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
357 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
358 | ac_prev=sysconfdir ;;
|
---|
359 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
360 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
361 | sysconfdir="$ac_optarg" ;;
|
---|
362 |
|
---|
363 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
364 | ac_prev=target ;;
|
---|
365 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
366 | target="$ac_optarg" ;;
|
---|
367 |
|
---|
368 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
369 | verbose=yes ;;
|
---|
370 |
|
---|
371 | -version | --version | --versio | --versi | --vers)
|
---|
372 | echo "configure generated by autoconf version 2.13"
|
---|
373 | exit 0 ;;
|
---|
374 |
|
---|
375 | -with-* | --with-*)
|
---|
376 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
377 | # Reject names that are not valid shell variable names.
|
---|
378 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
379 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
380 | fi
|
---|
381 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
382 | case "$ac_option" in
|
---|
383 | *=*) ;;
|
---|
384 | *) ac_optarg=yes ;;
|
---|
385 | esac
|
---|
386 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
387 |
|
---|
388 | -without-* | --without-*)
|
---|
389 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
390 | # Reject names that are not valid shell variable names.
|
---|
391 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
393 | fi
|
---|
394 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
395 | eval "with_${ac_package}=no" ;;
|
---|
396 |
|
---|
397 | --x)
|
---|
398 | # Obsolete; use --with-x.
|
---|
399 | with_x=yes ;;
|
---|
400 |
|
---|
401 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
402 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
403 | ac_prev=x_includes ;;
|
---|
404 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
405 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
406 | x_includes="$ac_optarg" ;;
|
---|
407 |
|
---|
408 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
409 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
410 | ac_prev=x_libraries ;;
|
---|
411 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
412 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
413 | x_libraries="$ac_optarg" ;;
|
---|
414 |
|
---|
415 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
416 | ;;
|
---|
417 |
|
---|
418 | *)
|
---|
419 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
420 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
421 | fi
|
---|
422 | if test "x$nonopt" != xNONE; then
|
---|
423 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
424 | fi
|
---|
425 | nonopt="$ac_option"
|
---|
426 | ;;
|
---|
427 |
|
---|
428 | esac
|
---|
429 | done
|
---|
430 |
|
---|
431 | if test -n "$ac_prev"; then
|
---|
432 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
433 | fi
|
---|
434 |
|
---|
435 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
436 |
|
---|
437 | # File descriptor usage:
|
---|
438 | # 0 standard input
|
---|
439 | # 1 file creation
|
---|
440 | # 2 errors and warnings
|
---|
441 | # 3 some systems may open it to /dev/tty
|
---|
442 | # 4 used on the Kubota Titan
|
---|
443 | # 6 checking for... messages and results
|
---|
444 | # 5 compiler messages saved in config.log
|
---|
445 | if test "$silent" = yes; then
|
---|
446 | exec 6>/dev/null
|
---|
447 | else
|
---|
448 | exec 6>&1
|
---|
449 | fi
|
---|
450 | exec 5>./config.log
|
---|
451 |
|
---|
452 | echo "\
|
---|
453 | This file contains any messages produced by compilers while
|
---|
454 | running configure, to aid debugging if configure makes a mistake.
|
---|
455 | " 1>&5
|
---|
456 |
|
---|
457 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
458 | # Also quote any args containing shell metacharacters.
|
---|
459 | ac_configure_args=
|
---|
460 | for ac_arg
|
---|
461 | do
|
---|
462 | case "$ac_arg" in
|
---|
463 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
464 | | --no-cr | --no-c) ;;
|
---|
465 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
466 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
467 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
468 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
469 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
470 | esac
|
---|
471 | done
|
---|
472 |
|
---|
473 | # NLS nuisances.
|
---|
474 | # Only set these to C if already set. These must not be set unconditionally
|
---|
475 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
476 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
477 | # Non-C LC_CTYPE values break the ctype check.
|
---|
478 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
479 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
480 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
481 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
482 |
|
---|
483 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
484 | rm -rf conftest* confdefs.h
|
---|
485 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
486 | echo > confdefs.h
|
---|
487 |
|
---|
488 | # A filename unique to this package, relative to the directory that
|
---|
489 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
490 | ac_unique_file=libbfd.c
|
---|
491 |
|
---|
492 | # Find the source files, if location was not specified.
|
---|
493 | if test -z "$srcdir"; then
|
---|
494 | ac_srcdir_defaulted=yes
|
---|
495 | # Try the directory containing this script, then its parent.
|
---|
496 | ac_prog=$0
|
---|
497 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
498 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
499 | srcdir=$ac_confdir
|
---|
500 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
501 | srcdir=..
|
---|
502 | fi
|
---|
503 | else
|
---|
504 | ac_srcdir_defaulted=no
|
---|
505 | fi
|
---|
506 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
507 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
508 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
509 | else
|
---|
510 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
511 | fi
|
---|
512 | fi
|
---|
513 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
514 |
|
---|
515 | # Prefer explicitly selected file to automatically selected ones.
|
---|
516 | if test -z "$sitefile"; then
|
---|
517 | if test -z "$CONFIG_SITE"; then
|
---|
518 | if test "x$prefix" != xNONE; then
|
---|
519 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
520 | else
|
---|
521 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
522 | fi
|
---|
523 | fi
|
---|
524 | else
|
---|
525 | CONFIG_SITE="$sitefile"
|
---|
526 | fi
|
---|
527 | for ac_site_file in $CONFIG_SITE; do
|
---|
528 | if test -r "$ac_site_file"; then
|
---|
529 | echo "loading site script $ac_site_file"
|
---|
530 | . "$ac_site_file"
|
---|
531 | fi
|
---|
532 | done
|
---|
533 |
|
---|
534 | if test -r "$cache_file"; then
|
---|
535 | echo "loading cache $cache_file"
|
---|
536 | . $cache_file
|
---|
537 | else
|
---|
538 | echo "creating cache $cache_file"
|
---|
539 | > $cache_file
|
---|
540 | fi
|
---|
541 |
|
---|
542 | ac_ext=c
|
---|
543 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
544 | ac_cpp='$CPP $CPPFLAGS'
|
---|
545 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
546 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
547 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
548 |
|
---|
549 | ac_exeext=
|
---|
550 | ac_objext=o
|
---|
551 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
552 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
553 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
554 | ac_n= ac_c='
|
---|
555 | ' ac_t=' '
|
---|
556 | else
|
---|
557 | ac_n=-n ac_c= ac_t=
|
---|
558 | fi
|
---|
559 | else
|
---|
560 | ac_n= ac_c='\c' ac_t=
|
---|
561 | fi
|
---|
562 |
|
---|
563 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
564 | echo "configure:565: checking for Cygwin environment" >&5
|
---|
565 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
566 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
567 | else
|
---|
568 | cat > conftest.$ac_ext <<EOF
|
---|
569 | #line 570 "configure"
|
---|
570 | #include "confdefs.h"
|
---|
571 |
|
---|
572 | int main() {
|
---|
573 |
|
---|
574 | #ifndef __CYGWIN__
|
---|
575 | #define __CYGWIN__ __CYGWIN32__
|
---|
576 | #endif
|
---|
577 | return __CYGWIN__;
|
---|
578 | ; return 0; }
|
---|
579 | EOF
|
---|
580 | if { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
581 | rm -rf conftest*
|
---|
582 | ac_cv_cygwin=yes
|
---|
583 | else
|
---|
584 | echo "configure: failed program was:" >&5
|
---|
585 | cat conftest.$ac_ext >&5
|
---|
586 | rm -rf conftest*
|
---|
587 | ac_cv_cygwin=no
|
---|
588 | fi
|
---|
589 | rm -f conftest*
|
---|
590 | rm -f conftest*
|
---|
591 | fi
|
---|
592 |
|
---|
593 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
594 | CYGWIN=
|
---|
595 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
596 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
597 | echo "configure:598: checking for mingw32 environment" >&5
|
---|
598 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
599 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
600 | else
|
---|
601 | cat > conftest.$ac_ext <<EOF
|
---|
602 | #line 603 "configure"
|
---|
603 | #include "confdefs.h"
|
---|
604 |
|
---|
605 | int main() {
|
---|
606 | return __MINGW32__;
|
---|
607 | ; return 0; }
|
---|
608 | EOF
|
---|
609 | if { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
610 | rm -rf conftest*
|
---|
611 | ac_cv_mingw32=yes
|
---|
612 | else
|
---|
613 | echo "configure: failed program was:" >&5
|
---|
614 | cat conftest.$ac_ext >&5
|
---|
615 | rm -rf conftest*
|
---|
616 | ac_cv_mingw32=no
|
---|
617 | fi
|
---|
618 | rm -f conftest*
|
---|
619 | rm -f conftest*
|
---|
620 | fi
|
---|
621 |
|
---|
622 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
623 | MINGW32=
|
---|
624 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
625 |
|
---|
626 |
|
---|
627 | ac_aux_dir=
|
---|
628 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
629 | if test -f $ac_dir/install-sh; then
|
---|
630 | ac_aux_dir=$ac_dir
|
---|
631 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
632 | break
|
---|
633 | elif test -f $ac_dir/install.sh; then
|
---|
634 | ac_aux_dir=$ac_dir
|
---|
635 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
636 | break
|
---|
637 | fi
|
---|
638 | done
|
---|
639 | if test -z "$ac_aux_dir"; then
|
---|
640 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
641 | fi
|
---|
642 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
643 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
644 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
645 |
|
---|
646 |
|
---|
647 | # Do some error checking and defaulting for the host and target type.
|
---|
648 | # The inputs are:
|
---|
649 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
650 | #
|
---|
651 | # The rules are:
|
---|
652 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
653 | # same time.
|
---|
654 | # 2. Host defaults to nonopt.
|
---|
655 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
656 | # as determined by config.guess.
|
---|
657 | # 4. Target and build default to nonopt.
|
---|
658 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
659 |
|
---|
660 | # The aliases save the names the user supplied, while $host etc.
|
---|
661 | # will get canonicalized.
|
---|
662 | case $host---$target---$nonopt in
|
---|
663 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
664 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
665 | esac
|
---|
666 |
|
---|
667 |
|
---|
668 | # Make sure we can run config.sub.
|
---|
669 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
670 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
671 | fi
|
---|
672 |
|
---|
673 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
674 | echo "configure:675: checking host system type" >&5
|
---|
675 |
|
---|
676 | host_alias=$host
|
---|
677 | case "$host_alias" in
|
---|
678 | NONE)
|
---|
679 | case $nonopt in
|
---|
680 | NONE)
|
---|
681 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
682 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
683 | fi ;;
|
---|
684 | *) host_alias=$nonopt ;;
|
---|
685 | esac ;;
|
---|
686 | esac
|
---|
687 |
|
---|
688 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
689 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
690 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
691 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
692 | echo "$ac_t""$host" 1>&6
|
---|
693 |
|
---|
694 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
695 | echo "configure:696: checking target system type" >&5
|
---|
696 |
|
---|
697 | target_alias=$target
|
---|
698 | case "$target_alias" in
|
---|
699 | NONE)
|
---|
700 | case $nonopt in
|
---|
701 | NONE) target_alias=$host_alias ;;
|
---|
702 | *) target_alias=$nonopt ;;
|
---|
703 | esac ;;
|
---|
704 | esac
|
---|
705 |
|
---|
706 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
707 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
708 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
709 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
710 | echo "$ac_t""$target" 1>&6
|
---|
711 |
|
---|
712 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
713 | echo "configure:714: checking build system type" >&5
|
---|
714 |
|
---|
715 | build_alias=$build
|
---|
716 | case "$build_alias" in
|
---|
717 | NONE)
|
---|
718 | case $nonopt in
|
---|
719 | NONE) build_alias=$host_alias ;;
|
---|
720 | *) build_alias=$nonopt ;;
|
---|
721 | esac ;;
|
---|
722 | esac
|
---|
723 |
|
---|
724 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
725 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
726 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
727 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
728 | echo "$ac_t""$build" 1>&6
|
---|
729 |
|
---|
730 | test "$host_alias" != "$target_alias" &&
|
---|
731 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
732 | NONENONEs,x,x, &&
|
---|
733 | program_prefix=${target_alias}-
|
---|
734 |
|
---|
735 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
736 | set dummy gcc; ac_word=$2
|
---|
737 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
738 | echo "configure:739: checking for $ac_word" >&5
|
---|
739 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
740 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
741 | else
|
---|
742 | if test -n "$CC"; then
|
---|
743 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
744 | else
|
---|
745 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
746 | ac_dummy="$PATH"
|
---|
747 | for ac_dir in $ac_dummy; do
|
---|
748 | test -z "$ac_dir" && ac_dir=.
|
---|
749 | if test -f $ac_dir/$ac_word; then
|
---|
750 | ac_cv_prog_CC="gcc"
|
---|
751 | break
|
---|
752 | fi
|
---|
753 | done
|
---|
754 | IFS="$ac_save_ifs"
|
---|
755 | fi
|
---|
756 | fi
|
---|
757 | CC="$ac_cv_prog_CC"
|
---|
758 | if test -n "$CC"; then
|
---|
759 | echo "$ac_t""$CC" 1>&6
|
---|
760 | else
|
---|
761 | echo "$ac_t""no" 1>&6
|
---|
762 | fi
|
---|
763 |
|
---|
764 | if test -z "$CC"; then
|
---|
765 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
766 | set dummy cc; ac_word=$2
|
---|
767 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
768 | echo "configure:769: checking for $ac_word" >&5
|
---|
769 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
770 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
771 | else
|
---|
772 | if test -n "$CC"; then
|
---|
773 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
774 | else
|
---|
775 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
776 | ac_prog_rejected=no
|
---|
777 | ac_dummy="$PATH"
|
---|
778 | for ac_dir in $ac_dummy; do
|
---|
779 | test -z "$ac_dir" && ac_dir=.
|
---|
780 | if test -f $ac_dir/$ac_word; then
|
---|
781 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
782 | ac_prog_rejected=yes
|
---|
783 | continue
|
---|
784 | fi
|
---|
785 | ac_cv_prog_CC="cc"
|
---|
786 | break
|
---|
787 | fi
|
---|
788 | done
|
---|
789 | IFS="$ac_save_ifs"
|
---|
790 | if test $ac_prog_rejected = yes; then
|
---|
791 | # We found a bogon in the path, so make sure we never use it.
|
---|
792 | set dummy $ac_cv_prog_CC
|
---|
793 | shift
|
---|
794 | if test $# -gt 0; then
|
---|
795 | # We chose a different compiler from the bogus one.
|
---|
796 | # However, it has the same basename, so the bogon will be chosen
|
---|
797 | # first if we set CC to just the basename; use the full file name.
|
---|
798 | shift
|
---|
799 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
800 | shift
|
---|
801 | ac_cv_prog_CC="$@"
|
---|
802 | fi
|
---|
803 | fi
|
---|
804 | fi
|
---|
805 | fi
|
---|
806 | CC="$ac_cv_prog_CC"
|
---|
807 | if test -n "$CC"; then
|
---|
808 | echo "$ac_t""$CC" 1>&6
|
---|
809 | else
|
---|
810 | echo "$ac_t""no" 1>&6
|
---|
811 | fi
|
---|
812 |
|
---|
813 | if test -z "$CC"; then
|
---|
814 | case "`uname -s`" in
|
---|
815 | *win32* | *WIN32*)
|
---|
816 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
817 | set dummy cl; ac_word=$2
|
---|
818 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
819 | echo "configure:820: checking for $ac_word" >&5
|
---|
820 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
821 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
822 | else
|
---|
823 | if test -n "$CC"; then
|
---|
824 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
825 | else
|
---|
826 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
827 | ac_dummy="$PATH"
|
---|
828 | for ac_dir in $ac_dummy; do
|
---|
829 | test -z "$ac_dir" && ac_dir=.
|
---|
830 | if test -f $ac_dir/$ac_word; then
|
---|
831 | ac_cv_prog_CC="cl"
|
---|
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 | esac
|
---|
846 | fi
|
---|
847 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
848 | fi
|
---|
849 |
|
---|
850 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
851 | echo "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
852 |
|
---|
853 | ac_ext=c
|
---|
854 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
855 | ac_cpp='$CPP $CPPFLAGS'
|
---|
856 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
857 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
858 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
859 |
|
---|
860 | cat > conftest.$ac_ext << EOF
|
---|
861 |
|
---|
862 | #line 863 "configure"
|
---|
863 | #include "confdefs.h"
|
---|
864 |
|
---|
865 | main(){return(0);}
|
---|
866 | EOF
|
---|
867 | if { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
868 | ac_cv_prog_cc_works=yes
|
---|
869 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
870 | if (./conftest; exit) 2>/dev/null; then
|
---|
871 | ac_cv_prog_cc_cross=no
|
---|
872 | else
|
---|
873 | ac_cv_prog_cc_cross=yes
|
---|
874 | fi
|
---|
875 | else
|
---|
876 | echo "configure: failed program was:" >&5
|
---|
877 | cat conftest.$ac_ext >&5
|
---|
878 | ac_cv_prog_cc_works=no
|
---|
879 | fi
|
---|
880 | rm -fr conftest*
|
---|
881 | ac_ext=c
|
---|
882 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
883 | ac_cpp='$CPP $CPPFLAGS'
|
---|
884 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
885 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
886 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
887 |
|
---|
888 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
889 | if test $ac_cv_prog_cc_works = no; then
|
---|
890 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
891 | fi
|
---|
892 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
893 | echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
894 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
895 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
896 |
|
---|
897 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
898 | echo "configure:899: checking whether we are using GNU C" >&5
|
---|
899 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
900 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
901 | else
|
---|
902 | cat > conftest.c <<EOF
|
---|
903 | #ifdef __GNUC__
|
---|
904 | yes;
|
---|
905 | #endif
|
---|
906 | EOF
|
---|
907 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
908 | ac_cv_prog_gcc=yes
|
---|
909 | else
|
---|
910 | ac_cv_prog_gcc=no
|
---|
911 | fi
|
---|
912 | fi
|
---|
913 |
|
---|
914 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
915 |
|
---|
916 | if test $ac_cv_prog_gcc = yes; then
|
---|
917 | GCC=yes
|
---|
918 | else
|
---|
919 | GCC=
|
---|
920 | fi
|
---|
921 |
|
---|
922 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
923 | ac_save_CFLAGS="$CFLAGS"
|
---|
924 | CFLAGS=
|
---|
925 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
926 | echo "configure:927: checking whether ${CC-cc} accepts -g" >&5
|
---|
927 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
928 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
929 | else
|
---|
930 | echo 'void f(){}' > conftest.c
|
---|
931 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
932 | ac_cv_prog_cc_g=yes
|
---|
933 | else
|
---|
934 | ac_cv_prog_cc_g=no
|
---|
935 | fi
|
---|
936 | rm -f conftest*
|
---|
937 |
|
---|
938 | fi
|
---|
939 |
|
---|
940 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
941 | if test "$ac_test_CFLAGS" = set; then
|
---|
942 | CFLAGS="$ac_save_CFLAGS"
|
---|
943 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
944 | if test "$GCC" = yes; then
|
---|
945 | CFLAGS="-g -O2"
|
---|
946 | else
|
---|
947 | CFLAGS="-g"
|
---|
948 | fi
|
---|
949 | else
|
---|
950 | if test "$GCC" = yes; then
|
---|
951 | CFLAGS="-O2"
|
---|
952 | else
|
---|
953 | CFLAGS=
|
---|
954 | fi
|
---|
955 | fi
|
---|
956 |
|
---|
957 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
958 | echo "configure:959: checking for POSIXized ISC" >&5
|
---|
959 | if test -d /etc/conf/kconfig.d &&
|
---|
960 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
961 | then
|
---|
962 | echo "$ac_t""yes" 1>&6
|
---|
963 | ISC=yes # If later tests want to check for ISC.
|
---|
964 | cat >> confdefs.h <<\EOF
|
---|
965 | #define _POSIX_SOURCE 1
|
---|
966 | EOF
|
---|
967 |
|
---|
968 | if test "$GCC" = yes; then
|
---|
969 | CC="$CC -posix"
|
---|
970 | else
|
---|
971 | CC="$CC -Xp"
|
---|
972 | fi
|
---|
973 | else
|
---|
974 | echo "$ac_t""no" 1>&6
|
---|
975 | ISC=
|
---|
976 | fi
|
---|
977 |
|
---|
978 |
|
---|
979 | # Find a good install program. We prefer a C program (faster),
|
---|
980 | # so one script is as good as another. But avoid the broken or
|
---|
981 | # incompatible versions:
|
---|
982 | # SysV /etc/install, /usr/sbin/install
|
---|
983 | # SunOS /usr/etc/install
|
---|
984 | # IRIX /sbin/install
|
---|
985 | # AIX /bin/install
|
---|
986 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
987 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
988 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
989 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
990 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
991 | echo "configure:992: checking for a BSD compatible install" >&5
|
---|
992 | if test -z "$INSTALL"; then
|
---|
993 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
994 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
995 | else
|
---|
996 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
997 | for ac_dir in $PATH; do
|
---|
998 | # Account for people who put trailing slashes in PATH elements.
|
---|
999 | case "$ac_dir/" in
|
---|
1000 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1001 | *)
|
---|
1002 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1003 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1004 | # by default.
|
---|
1005 | for ac_prog in ginstall scoinst install; do
|
---|
1006 | if test -f $ac_dir/$ac_prog; then
|
---|
1007 | if test $ac_prog = install &&
|
---|
1008 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1009 | # AIX install. It has an incompatible calling convention.
|
---|
1010 | :
|
---|
1011 | else
|
---|
1012 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
1013 | break 2
|
---|
1014 | fi
|
---|
1015 | fi
|
---|
1016 | done
|
---|
1017 | ;;
|
---|
1018 | esac
|
---|
1019 | done
|
---|
1020 | IFS="$ac_save_IFS"
|
---|
1021 |
|
---|
1022 | fi
|
---|
1023 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1024 | INSTALL="$ac_cv_path_install"
|
---|
1025 | else
|
---|
1026 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1027 | # path for INSTALL within a source directory, because that will
|
---|
1028 | # break other packages using the cache if that directory is
|
---|
1029 | # removed, or if the path is relative.
|
---|
1030 | INSTALL="$ac_install_sh"
|
---|
1031 | fi
|
---|
1032 | fi
|
---|
1033 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1034 |
|
---|
1035 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1036 | # It thinks the first close brace ends the variable substitution.
|
---|
1037 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1038 |
|
---|
1039 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1040 |
|
---|
1041 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1042 |
|
---|
1043 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
1044 | echo "configure:1045: checking whether build environment is sane" >&5
|
---|
1045 | # Just in case
|
---|
1046 | sleep 1
|
---|
1047 | echo timestamp > conftestfile
|
---|
1048 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1049 | # arguments. Must try -L first in case configure is actually a
|
---|
1050 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1051 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1052 | # directory).
|
---|
1053 | if (
|
---|
1054 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
1055 | if test "$*" = "X"; then
|
---|
1056 | # -L didn't work.
|
---|
1057 | set X `ls -t $srcdir/configure conftestfile`
|
---|
1058 | fi
|
---|
1059 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
1060 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
1061 |
|
---|
1062 | # If neither matched, then we have a broken ls. This can happen
|
---|
1063 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1064 | # broken ls alias from the environment. This has actually
|
---|
1065 | # happened. Such a system could not be considered "sane".
|
---|
1066 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1067 | alias in your environment" 1>&2; exit 1; }
|
---|
1068 | fi
|
---|
1069 |
|
---|
1070 | test "$2" = conftestfile
|
---|
1071 | )
|
---|
1072 | then
|
---|
1073 | # Ok.
|
---|
1074 | :
|
---|
1075 | else
|
---|
1076 | { echo "configure: error: newly created file is older than distributed files!
|
---|
1077 | Check your system clock" 1>&2; exit 1; }
|
---|
1078 | fi
|
---|
1079 | rm -f conftest*
|
---|
1080 | echo "$ac_t""yes" 1>&6
|
---|
1081 | if test "$program_transform_name" = s,x,x,; then
|
---|
1082 | program_transform_name=
|
---|
1083 | else
|
---|
1084 | # Double any \ or $. echo might interpret backslashes.
|
---|
1085 | cat <<\EOF_SED > conftestsed
|
---|
1086 | s,\\,\\\\,g; s,\$,$$,g
|
---|
1087 | EOF_SED
|
---|
1088 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
1089 | rm -f conftestsed
|
---|
1090 | fi
|
---|
1091 | test "$program_prefix" != NONE &&
|
---|
1092 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
1093 | # Use a double $ so make ignores it.
|
---|
1094 | test "$program_suffix" != NONE &&
|
---|
1095 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
1096 |
|
---|
1097 | # sed with no file args requires a program.
|
---|
1098 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
1099 |
|
---|
1100 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1101 | echo "configure:1102: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1102 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1103 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1104 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1105 | else
|
---|
1106 | cat > conftestmake <<\EOF
|
---|
1107 | all:
|
---|
1108 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1109 | EOF
|
---|
1110 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1111 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1112 | if test -n "$ac_maketemp"; then
|
---|
1113 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1114 | else
|
---|
1115 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1116 | fi
|
---|
1117 | rm -f conftestmake
|
---|
1118 | fi
|
---|
1119 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1120 | echo "$ac_t""yes" 1>&6
|
---|
1121 | SET_MAKE=
|
---|
1122 | else
|
---|
1123 | echo "$ac_t""no" 1>&6
|
---|
1124 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1125 | fi
|
---|
1126 |
|
---|
1127 |
|
---|
1128 | PACKAGE=bfd
|
---|
1129 |
|
---|
1130 | VERSION=2.11.2
|
---|
1131 |
|
---|
1132 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1133 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1134 | fi
|
---|
1135 | cat >> confdefs.h <<EOF
|
---|
1136 | #define PACKAGE "$PACKAGE"
|
---|
1137 | EOF
|
---|
1138 |
|
---|
1139 | cat >> confdefs.h <<EOF
|
---|
1140 | #define VERSION "$VERSION"
|
---|
1141 | EOF
|
---|
1142 |
|
---|
1143 |
|
---|
1144 |
|
---|
1145 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1146 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
1147 | echo "configure:1148: checking for working aclocal" >&5
|
---|
1148 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1149 | # an executable is not found, even if stderr is redirected.
|
---|
1150 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1151 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
1152 | ACLOCAL=aclocal
|
---|
1153 | echo "$ac_t""found" 1>&6
|
---|
1154 | else
|
---|
1155 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
1156 | echo "$ac_t""missing" 1>&6
|
---|
1157 | fi
|
---|
1158 |
|
---|
1159 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1160 | echo "configure:1161: checking for working autoconf" >&5
|
---|
1161 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1162 | # an executable is not found, even if stderr is redirected.
|
---|
1163 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1164 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1165 | AUTOCONF=autoconf
|
---|
1166 | echo "$ac_t""found" 1>&6
|
---|
1167 | else
|
---|
1168 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1169 | echo "$ac_t""missing" 1>&6
|
---|
1170 | fi
|
---|
1171 |
|
---|
1172 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
1173 | echo "configure:1174: checking for working automake" >&5
|
---|
1174 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1175 | # an executable is not found, even if stderr is redirected.
|
---|
1176 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1177 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
1178 | AUTOMAKE=automake
|
---|
1179 | echo "$ac_t""found" 1>&6
|
---|
1180 | else
|
---|
1181 | AUTOMAKE="$missing_dir/missing automake"
|
---|
1182 | echo "$ac_t""missing" 1>&6
|
---|
1183 | fi
|
---|
1184 |
|
---|
1185 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1186 | echo "configure:1187: checking for working autoheader" >&5
|
---|
1187 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1188 | # an executable is not found, even if stderr is redirected.
|
---|
1189 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1190 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1191 | AUTOHEADER=autoheader
|
---|
1192 | echo "$ac_t""found" 1>&6
|
---|
1193 | else
|
---|
1194 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1195 | echo "$ac_t""missing" 1>&6
|
---|
1196 | fi
|
---|
1197 |
|
---|
1198 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1199 | echo "configure:1200: checking for working makeinfo" >&5
|
---|
1200 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1201 | # an executable is not found, even if stderr is redirected.
|
---|
1202 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1203 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1204 | MAKEINFO=makeinfo
|
---|
1205 | echo "$ac_t""found" 1>&6
|
---|
1206 | else
|
---|
1207 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1208 | echo "$ac_t""missing" 1>&6
|
---|
1209 | fi
|
---|
1210 |
|
---|
1211 |
|
---|
1212 |
|
---|
1213 | if test $host != $build; then
|
---|
1214 | ac_tool_prefix=${host_alias}-
|
---|
1215 | else
|
---|
1216 | ac_tool_prefix=
|
---|
1217 | fi
|
---|
1218 |
|
---|
1219 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
---|
1220 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
---|
1221 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1222 | echo "configure:1223: checking for $ac_word" >&5
|
---|
1223 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
---|
1224 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1225 | else
|
---|
1226 | if test -n "$AR"; then
|
---|
1227 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
1228 | else
|
---|
1229 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1230 | ac_dummy="$PATH"
|
---|
1231 | for ac_dir in $ac_dummy; do
|
---|
1232 | test -z "$ac_dir" && ac_dir=.
|
---|
1233 | if test -f $ac_dir/$ac_word; then
|
---|
1234 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
---|
1235 | break
|
---|
1236 | fi
|
---|
1237 | done
|
---|
1238 | IFS="$ac_save_ifs"
|
---|
1239 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
---|
1240 | fi
|
---|
1241 | fi
|
---|
1242 | AR="$ac_cv_prog_AR"
|
---|
1243 | if test -n "$AR"; then
|
---|
1244 | echo "$ac_t""$AR" 1>&6
|
---|
1245 | else
|
---|
1246 | echo "$ac_t""no" 1>&6
|
---|
1247 | fi
|
---|
1248 |
|
---|
1249 |
|
---|
1250 |
|
---|
1251 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1252 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1253 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1254 | echo "configure:1255: checking for $ac_word" >&5
|
---|
1255 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1256 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1257 | else
|
---|
1258 | if test -n "$RANLIB"; then
|
---|
1259 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1260 | else
|
---|
1261 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1262 | ac_dummy="$PATH"
|
---|
1263 | for ac_dir in $ac_dummy; do
|
---|
1264 | test -z "$ac_dir" && ac_dir=.
|
---|
1265 | if test -f $ac_dir/$ac_word; then
|
---|
1266 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1267 | break
|
---|
1268 | fi
|
---|
1269 | done
|
---|
1270 | IFS="$ac_save_ifs"
|
---|
1271 | fi
|
---|
1272 | fi
|
---|
1273 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1274 | if test -n "$RANLIB"; then
|
---|
1275 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1276 | else
|
---|
1277 | echo "$ac_t""no" 1>&6
|
---|
1278 | fi
|
---|
1279 |
|
---|
1280 |
|
---|
1281 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1282 | if test -n "$ac_tool_prefix"; then
|
---|
1283 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1284 | set dummy ranlib; ac_word=$2
|
---|
1285 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1286 | echo "configure:1287: checking for $ac_word" >&5
|
---|
1287 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1288 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1289 | else
|
---|
1290 | if test -n "$RANLIB"; then
|
---|
1291 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1292 | else
|
---|
1293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1294 | ac_dummy="$PATH"
|
---|
1295 | for ac_dir in $ac_dummy; do
|
---|
1296 | test -z "$ac_dir" && ac_dir=.
|
---|
1297 | if test -f $ac_dir/$ac_word; then
|
---|
1298 | ac_cv_prog_RANLIB="ranlib"
|
---|
1299 | break
|
---|
1300 | fi
|
---|
1301 | done
|
---|
1302 | IFS="$ac_save_ifs"
|
---|
1303 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1304 | fi
|
---|
1305 | fi
|
---|
1306 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1307 | if test -n "$RANLIB"; then
|
---|
1308 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1309 | else
|
---|
1310 | echo "$ac_t""no" 1>&6
|
---|
1311 | fi
|
---|
1312 |
|
---|
1313 | else
|
---|
1314 | RANLIB=":"
|
---|
1315 | fi
|
---|
1316 | fi
|
---|
1317 |
|
---|
1318 |
|
---|
1319 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1320 | if test "${enable_shared+set}" = set; then
|
---|
1321 | enableval="$enable_shared"
|
---|
1322 | p=${PACKAGE-default}
|
---|
1323 | case "$enableval" in
|
---|
1324 | yes) enable_shared=yes ;;
|
---|
1325 | no) enable_shared=no ;;
|
---|
1326 | *)
|
---|
1327 | enable_shared=no
|
---|
1328 | # Look at the argument we got. We use all the common list separators.
|
---|
1329 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1330 | for pkg in $enableval; do
|
---|
1331 | if test "X$pkg" = "X$p"; then
|
---|
1332 | enable_shared=yes
|
---|
1333 | fi
|
---|
1334 | done
|
---|
1335 | IFS="$ac_save_ifs"
|
---|
1336 | ;;
|
---|
1337 | esac
|
---|
1338 | else
|
---|
1339 | enable_shared=no
|
---|
1340 | fi
|
---|
1341 |
|
---|
1342 |
|
---|
1343 | # Check whether --enable-static or --disable-static was given.
|
---|
1344 | if test "${enable_static+set}" = set; then
|
---|
1345 | enableval="$enable_static"
|
---|
1346 | p=${PACKAGE-default}
|
---|
1347 | case "$enableval" in
|
---|
1348 | yes) enable_static=yes ;;
|
---|
1349 | no) enable_static=no ;;
|
---|
1350 | *)
|
---|
1351 | enable_static=no
|
---|
1352 | # Look at the argument we got. We use all the common list separators.
|
---|
1353 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1354 | for pkg in $enableval; do
|
---|
1355 | if test "X$pkg" = "X$p"; then
|
---|
1356 | enable_static=yes
|
---|
1357 | fi
|
---|
1358 | done
|
---|
1359 | IFS="$ac_save_ifs"
|
---|
1360 | ;;
|
---|
1361 | esac
|
---|
1362 | else
|
---|
1363 | enable_static=yes
|
---|
1364 | fi
|
---|
1365 |
|
---|
1366 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1367 | if test "${enable_fast_install+set}" = set; then
|
---|
1368 | enableval="$enable_fast_install"
|
---|
1369 | p=${PACKAGE-default}
|
---|
1370 | case "$enableval" in
|
---|
1371 | yes) enable_fast_install=yes ;;
|
---|
1372 | no) enable_fast_install=no ;;
|
---|
1373 | *)
|
---|
1374 | enable_fast_install=no
|
---|
1375 | # Look at the argument we got. We use all the common list separators.
|
---|
1376 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1377 | for pkg in $enableval; do
|
---|
1378 | if test "X$pkg" = "X$p"; then
|
---|
1379 | enable_fast_install=yes
|
---|
1380 | fi
|
---|
1381 | done
|
---|
1382 | IFS="$ac_save_ifs"
|
---|
1383 | ;;
|
---|
1384 | esac
|
---|
1385 | else
|
---|
1386 | enable_fast_install=yes
|
---|
1387 | fi
|
---|
1388 |
|
---|
1389 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1390 | if test "${with_gnu_ld+set}" = set; then
|
---|
1391 | withval="$with_gnu_ld"
|
---|
1392 | test "$withval" = no || with_gnu_ld=yes
|
---|
1393 | else
|
---|
1394 | with_gnu_ld=no
|
---|
1395 | fi
|
---|
1396 |
|
---|
1397 | ac_prog=ld
|
---|
1398 | if test "$ac_cv_prog_gcc" = yes; then
|
---|
1399 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1400 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1401 | echo "configure:1402: checking for ld used by GCC" >&5
|
---|
1402 | case $host in
|
---|
1403 | *-*-mingw*)
|
---|
1404 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1405 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1406 | *)
|
---|
1407 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1408 | esac
|
---|
1409 | case "$ac_prog" in
|
---|
1410 | # Accept absolute paths.
|
---|
1411 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1412 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1413 | # Canonicalize the path of ld
|
---|
1414 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1415 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1416 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1417 | done
|
---|
1418 | test -z "$LD" && LD="$ac_prog"
|
---|
1419 | ;;
|
---|
1420 | "")
|
---|
1421 | # If it fails, then pretend we aren't using GCC.
|
---|
1422 | ac_prog=ld
|
---|
1423 | ;;
|
---|
1424 | *)
|
---|
1425 | # If it is relative, then search for the first ld in PATH.
|
---|
1426 | with_gnu_ld=unknown
|
---|
1427 | ;;
|
---|
1428 | esac
|
---|
1429 | elif test "$with_gnu_ld" = yes; then
|
---|
1430 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1431 | echo "configure:1432: checking for GNU ld" >&5
|
---|
1432 | else
|
---|
1433 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1434 | echo "configure:1435: checking for non-GNU ld" >&5
|
---|
1435 | fi
|
---|
1436 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
---|
1437 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1438 | else
|
---|
1439 | if test -z "$LD"; then
|
---|
1440 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1441 | for ac_dir in $PATH; do
|
---|
1442 | test -z "$ac_dir" && ac_dir=.
|
---|
1443 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1444 | ac_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1445 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1446 | # but apparently some GNU ld's only accept -v.
|
---|
1447 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1448 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1449 | test "$with_gnu_ld" != no && break
|
---|
1450 | else
|
---|
1451 | test "$with_gnu_ld" != yes && break
|
---|
1452 | fi
|
---|
1453 | fi
|
---|
1454 | done
|
---|
1455 | IFS="$ac_save_ifs"
|
---|
1456 | else
|
---|
1457 | ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1458 | fi
|
---|
1459 | fi
|
---|
1460 |
|
---|
1461 | LD="$ac_cv_path_LD"
|
---|
1462 | if test -n "$LD"; then
|
---|
1463 | echo "$ac_t""$LD" 1>&6
|
---|
1464 | else
|
---|
1465 | echo "$ac_t""no" 1>&6
|
---|
1466 | fi
|
---|
1467 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1468 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1469 | echo "configure:1470: checking if the linker ($LD) is GNU ld" >&5
|
---|
1470 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1471 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1472 | else
|
---|
1473 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1474 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1475 | ac_cv_prog_gnu_ld=yes
|
---|
1476 | else
|
---|
1477 | ac_cv_prog_gnu_ld=no
|
---|
1478 | fi
|
---|
1479 | fi
|
---|
1480 |
|
---|
1481 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
---|
1482 | with_gnu_ld=$ac_cv_prog_gnu_ld
|
---|
1483 |
|
---|
1484 |
|
---|
1485 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1486 | echo "configure:1487: checking for $LD option to reload object files" >&5
|
---|
1487 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1488 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1489 | else
|
---|
1490 | lt_cv_ld_reload_flag='-r'
|
---|
1491 | fi
|
---|
1492 |
|
---|
1493 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1494 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1495 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1496 |
|
---|
1497 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1498 | echo "configure:1499: checking for BSD-compatible nm" >&5
|
---|
1499 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
|
---|
1500 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1501 | else
|
---|
1502 | if test -n "$NM"; then
|
---|
1503 | # Let the user override the test.
|
---|
1504 | ac_cv_path_NM="$NM"
|
---|
1505 | else
|
---|
1506 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1507 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1508 | test -z "$ac_dir" && ac_dir=.
|
---|
1509 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1510 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1511 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1512 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1513 | # nm: unknown option "B" ignored
|
---|
1514 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1515 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1516 | ac_cv_path_NM="$tmp_nm -B"
|
---|
1517 | break
|
---|
1518 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1519 | ac_cv_path_NM="$tmp_nm -p"
|
---|
1520 | break
|
---|
1521 | else
|
---|
1522 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1523 | continue # so that we can try to find one that supports BSD flags
|
---|
1524 | fi
|
---|
1525 | fi
|
---|
1526 | done
|
---|
1527 | IFS="$ac_save_ifs"
|
---|
1528 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
---|
1529 | fi
|
---|
1530 | fi
|
---|
1531 |
|
---|
1532 | NM="$ac_cv_path_NM"
|
---|
1533 | echo "$ac_t""$NM" 1>&6
|
---|
1534 |
|
---|
1535 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1536 | echo "configure:1537: checking whether ln -s works" >&5
|
---|
1537 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1538 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1539 | else
|
---|
1540 | rm -f conftestdata
|
---|
1541 | if ln -s X conftestdata 2>/dev/null
|
---|
1542 | then
|
---|
1543 | rm -f conftestdata
|
---|
1544 | ac_cv_prog_LN_S="ln -s"
|
---|
1545 | else
|
---|
1546 | ac_cv_prog_LN_S=ln
|
---|
1547 | fi
|
---|
1548 | fi
|
---|
1549 | LN_S="$ac_cv_prog_LN_S"
|
---|
1550 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1551 | echo "$ac_t""yes" 1>&6
|
---|
1552 | else
|
---|
1553 | echo "$ac_t""no" 1>&6
|
---|
1554 | fi
|
---|
1555 |
|
---|
1556 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1557 | echo "configure:1558: checking how to recognise dependant libraries" >&5
|
---|
1558 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1559 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1560 | else
|
---|
1561 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1562 | lt_cv_file_magic_test_file=
|
---|
1563 | lt_cv_deplibs_check_method='unknown'
|
---|
1564 | # Need to set the preceding variable on all platforms that support
|
---|
1565 | # interlibrary dependencies.
|
---|
1566 | # 'none' -- dependencies not supported.
|
---|
1567 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1568 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1569 | # 'test_compile' -- check by making test program.
|
---|
1570 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1571 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1572 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1573 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1574 |
|
---|
1575 | case "$host_os" in
|
---|
1576 | aix4*)
|
---|
1577 | lt_cv_deplibs_check_method=pass_all
|
---|
1578 | ;;
|
---|
1579 |
|
---|
1580 | beos*)
|
---|
1581 | lt_cv_deplibs_check_method=pass_all
|
---|
1582 | ;;
|
---|
1583 |
|
---|
1584 | bsdi4*)
|
---|
1585 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1586 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1587 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1588 | ;;
|
---|
1589 |
|
---|
1590 | cygwin* | mingw* |pw32*)
|
---|
1591 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1592 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1593 | ;;
|
---|
1594 |
|
---|
1595 | freebsd* )
|
---|
1596 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1597 | case "$host_cpu" in
|
---|
1598 | i*86 )
|
---|
1599 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1600 | # Let's accept both of them until this is cleared up.
|
---|
1601 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1602 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1603 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1604 | ;;
|
---|
1605 | esac
|
---|
1606 | else
|
---|
1607 | lt_cv_deplibs_check_method=pass_all
|
---|
1608 | fi
|
---|
1609 | ;;
|
---|
1610 |
|
---|
1611 | gnu*)
|
---|
1612 | lt_cv_deplibs_check_method=pass_all
|
---|
1613 | ;;
|
---|
1614 |
|
---|
1615 | hpux10.20*)
|
---|
1616 | # TODO: Does this work for hpux-11 too?
|
---|
1617 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
|
---|
1618 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1619 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1620 | ;;
|
---|
1621 |
|
---|
1622 | irix5* | irix6*)
|
---|
1623 | case "$host_os" in
|
---|
1624 | irix5*)
|
---|
1625 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1626 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1627 | ;;
|
---|
1628 | *)
|
---|
1629 | case "$LD" in
|
---|
1630 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1631 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1632 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1633 | *) libmagic=never-match;;
|
---|
1634 | esac
|
---|
1635 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1636 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1637 | ;;
|
---|
1638 | esac
|
---|
1639 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1640 | lt_cv_deplibs_check_method=pass_all
|
---|
1641 | ;;
|
---|
1642 |
|
---|
1643 | # This must be Linux ELF.
|
---|
1644 | linux-gnu*)
|
---|
1645 | case "$host_cpu" in
|
---|
1646 | alpha* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1647 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1648 | *)
|
---|
1649 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1650 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1651 | esac
|
---|
1652 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1653 | ;;
|
---|
1654 |
|
---|
1655 | netbsd*)
|
---|
1656 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
|
---|
1657 | else
|
---|
1658 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
---|
1659 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1660 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1661 | fi
|
---|
1662 | ;;
|
---|
1663 |
|
---|
1664 | osf3* | osf4* | osf5*)
|
---|
1665 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1666 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1667 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1668 | lt_cv_deplibs_check_method=pass_all
|
---|
1669 | ;;
|
---|
1670 |
|
---|
1671 | sco3.2v5*)
|
---|
1672 | lt_cv_deplibs_check_method=pass_all
|
---|
1673 | ;;
|
---|
1674 |
|
---|
1675 | solaris*)
|
---|
1676 | lt_cv_deplibs_check_method=pass_all
|
---|
1677 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1678 | ;;
|
---|
1679 |
|
---|
1680 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1681 | case "$host_vendor" in
|
---|
1682 | ncr)
|
---|
1683 | lt_cv_deplibs_check_method=pass_all
|
---|
1684 | ;;
|
---|
1685 | motorola)
|
---|
1686 | 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]'
|
---|
1687 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1688 | ;;
|
---|
1689 | esac
|
---|
1690 | ;;
|
---|
1691 | esac
|
---|
1692 |
|
---|
1693 | fi
|
---|
1694 |
|
---|
1695 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1696 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1697 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1698 |
|
---|
1699 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1700 | echo "configure:1701: checking for object suffix" >&5
|
---|
1701 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1702 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1703 | else
|
---|
1704 | rm -f conftest*
|
---|
1705 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1706 | if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1707 | for ac_file in conftest.*; do
|
---|
1708 | case $ac_file in
|
---|
1709 | *.c) ;;
|
---|
1710 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1711 | esac
|
---|
1712 | done
|
---|
1713 | else
|
---|
1714 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1715 | fi
|
---|
1716 | rm -f conftest*
|
---|
1717 | fi
|
---|
1718 |
|
---|
1719 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1720 | OBJEXT=$ac_cv_objext
|
---|
1721 | ac_objext=$ac_cv_objext
|
---|
1722 |
|
---|
1723 |
|
---|
1724 |
|
---|
1725 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
1726 | echo "configure:1727: checking for executable suffix" >&5
|
---|
1727 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
1728 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1729 | else
|
---|
1730 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
---|
1731 | ac_cv_exeext=.exe
|
---|
1732 | else
|
---|
1733 | rm -f conftest*
|
---|
1734 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
1735 | ac_cv_exeext=
|
---|
1736 | if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
1737 | for file in conftest.*; do
|
---|
1738 | case $file in
|
---|
1739 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
---|
1740 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
1741 | esac
|
---|
1742 | done
|
---|
1743 | else
|
---|
1744 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
1745 | fi
|
---|
1746 | rm -f conftest*
|
---|
1747 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
1748 | fi
|
---|
1749 | fi
|
---|
1750 |
|
---|
1751 | EXEEXT=""
|
---|
1752 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
1753 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
1754 | ac_exeext=$EXEEXT
|
---|
1755 |
|
---|
1756 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1757 |
|
---|
1758 | # Only perform the check for file, if the check method requires it
|
---|
1759 | case "$deplibs_check_method" in
|
---|
1760 | file_magic*)
|
---|
1761 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
1762 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1763 | echo "configure:1764: checking for ${ac_tool_prefix}file" >&5
|
---|
1764 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1765 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1766 | else
|
---|
1767 | case "$MAGIC_CMD" in
|
---|
1768 | /*)
|
---|
1769 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1770 | ;;
|
---|
1771 | ?:/*)
|
---|
1772 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1773 | ;;
|
---|
1774 | *)
|
---|
1775 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1776 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1777 | ac_dummy="/usr/bin:$PATH"
|
---|
1778 | for ac_dir in $ac_dummy; do
|
---|
1779 | test -z "$ac_dir" && ac_dir=.
|
---|
1780 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1781 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
1782 | if test -n "$file_magic_test_file"; then
|
---|
1783 | case "$deplibs_check_method" in
|
---|
1784 | "file_magic "*)
|
---|
1785 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1786 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1787 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1788 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1789 | :
|
---|
1790 | else
|
---|
1791 | cat <<EOF 1>&2
|
---|
1792 |
|
---|
1793 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1794 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1795 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1796 | *** as such. This will affect the creation of libtool libraries that
|
---|
1797 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1798 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1799 | *** may want to report the problem to your system manager and/or to
|
---|
1800 | *** bug-libtool@gnu.org
|
---|
1801 |
|
---|
1802 | EOF
|
---|
1803 | fi ;;
|
---|
1804 | esac
|
---|
1805 | fi
|
---|
1806 | break
|
---|
1807 | fi
|
---|
1808 | done
|
---|
1809 | IFS="$ac_save_ifs"
|
---|
1810 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1811 | ;;
|
---|
1812 | esac
|
---|
1813 | fi
|
---|
1814 |
|
---|
1815 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1816 | if test -n "$MAGIC_CMD"; then
|
---|
1817 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1818 | else
|
---|
1819 | echo "$ac_t""no" 1>&6
|
---|
1820 | fi
|
---|
1821 |
|
---|
1822 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
1823 | if test -n "$ac_tool_prefix"; then
|
---|
1824 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1825 | echo "configure:1826: checking for file" >&5
|
---|
1826 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1827 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1828 | else
|
---|
1829 | case "$MAGIC_CMD" in
|
---|
1830 | /*)
|
---|
1831 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1832 | ;;
|
---|
1833 | ?:/*)
|
---|
1834 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1835 | ;;
|
---|
1836 | *)
|
---|
1837 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1838 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1839 | ac_dummy="/usr/bin:$PATH"
|
---|
1840 | for ac_dir in $ac_dummy; do
|
---|
1841 | test -z "$ac_dir" && ac_dir=.
|
---|
1842 | if test -f $ac_dir/file; then
|
---|
1843 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
1844 | if test -n "$file_magic_test_file"; then
|
---|
1845 | case "$deplibs_check_method" in
|
---|
1846 | "file_magic "*)
|
---|
1847 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1848 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1849 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1850 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1851 | :
|
---|
1852 | else
|
---|
1853 | cat <<EOF 1>&2
|
---|
1854 |
|
---|
1855 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1856 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1857 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1858 | *** as such. This will affect the creation of libtool libraries that
|
---|
1859 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1860 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1861 | *** may want to report the problem to your system manager and/or to
|
---|
1862 | *** bug-libtool@gnu.org
|
---|
1863 |
|
---|
1864 | EOF
|
---|
1865 | fi ;;
|
---|
1866 | esac
|
---|
1867 | fi
|
---|
1868 | break
|
---|
1869 | fi
|
---|
1870 | done
|
---|
1871 | IFS="$ac_save_ifs"
|
---|
1872 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1873 | ;;
|
---|
1874 | esac
|
---|
1875 | fi
|
---|
1876 |
|
---|
1877 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1878 | if test -n "$MAGIC_CMD"; then
|
---|
1879 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1880 | else
|
---|
1881 | echo "$ac_t""no" 1>&6
|
---|
1882 | fi
|
---|
1883 |
|
---|
1884 | else
|
---|
1885 | MAGIC_CMD=:
|
---|
1886 | fi
|
---|
1887 | fi
|
---|
1888 |
|
---|
1889 | fi
|
---|
1890 | ;;
|
---|
1891 | esac
|
---|
1892 |
|
---|
1893 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1894 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1895 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1896 | echo "configure:1897: checking for $ac_word" >&5
|
---|
1897 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1898 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1899 | else
|
---|
1900 | if test -n "$RANLIB"; then
|
---|
1901 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1902 | else
|
---|
1903 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1904 | ac_dummy="$PATH"
|
---|
1905 | for ac_dir in $ac_dummy; do
|
---|
1906 | test -z "$ac_dir" && ac_dir=.
|
---|
1907 | if test -f $ac_dir/$ac_word; then
|
---|
1908 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1909 | break
|
---|
1910 | fi
|
---|
1911 | done
|
---|
1912 | IFS="$ac_save_ifs"
|
---|
1913 | fi
|
---|
1914 | fi
|
---|
1915 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1916 | if test -n "$RANLIB"; then
|
---|
1917 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1918 | else
|
---|
1919 | echo "$ac_t""no" 1>&6
|
---|
1920 | fi
|
---|
1921 |
|
---|
1922 |
|
---|
1923 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1924 | if test -n "$ac_tool_prefix"; then
|
---|
1925 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1926 | set dummy ranlib; ac_word=$2
|
---|
1927 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1928 | echo "configure:1929: checking for $ac_word" >&5
|
---|
1929 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1930 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1931 | else
|
---|
1932 | if test -n "$RANLIB"; then
|
---|
1933 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1934 | else
|
---|
1935 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1936 | ac_dummy="$PATH"
|
---|
1937 | for ac_dir in $ac_dummy; do
|
---|
1938 | test -z "$ac_dir" && ac_dir=.
|
---|
1939 | if test -f $ac_dir/$ac_word; then
|
---|
1940 | ac_cv_prog_RANLIB="ranlib"
|
---|
1941 | break
|
---|
1942 | fi
|
---|
1943 | done
|
---|
1944 | IFS="$ac_save_ifs"
|
---|
1945 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1946 | fi
|
---|
1947 | fi
|
---|
1948 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1949 | if test -n "$RANLIB"; then
|
---|
1950 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1951 | else
|
---|
1952 | echo "$ac_t""no" 1>&6
|
---|
1953 | fi
|
---|
1954 |
|
---|
1955 | else
|
---|
1956 | RANLIB=":"
|
---|
1957 | fi
|
---|
1958 | fi
|
---|
1959 |
|
---|
1960 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
1961 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
1962 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1963 | echo "configure:1964: checking for $ac_word" >&5
|
---|
1964 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
1965 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1966 | else
|
---|
1967 | if test -n "$STRIP"; then
|
---|
1968 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1969 | else
|
---|
1970 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1971 | ac_dummy="$PATH"
|
---|
1972 | for ac_dir in $ac_dummy; do
|
---|
1973 | test -z "$ac_dir" && ac_dir=.
|
---|
1974 | if test -f $ac_dir/$ac_word; then
|
---|
1975 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
1976 | break
|
---|
1977 | fi
|
---|
1978 | done
|
---|
1979 | IFS="$ac_save_ifs"
|
---|
1980 | fi
|
---|
1981 | fi
|
---|
1982 | STRIP="$ac_cv_prog_STRIP"
|
---|
1983 | if test -n "$STRIP"; then
|
---|
1984 | echo "$ac_t""$STRIP" 1>&6
|
---|
1985 | else
|
---|
1986 | echo "$ac_t""no" 1>&6
|
---|
1987 | fi
|
---|
1988 |
|
---|
1989 |
|
---|
1990 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
1991 | if test -n "$ac_tool_prefix"; then
|
---|
1992 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
1993 | set dummy strip; ac_word=$2
|
---|
1994 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1995 | echo "configure:1996: checking for $ac_word" >&5
|
---|
1996 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
1997 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1998 | else
|
---|
1999 | if test -n "$STRIP"; then
|
---|
2000 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2001 | else
|
---|
2002 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2003 | ac_dummy="$PATH"
|
---|
2004 | for ac_dir in $ac_dummy; do
|
---|
2005 | test -z "$ac_dir" && ac_dir=.
|
---|
2006 | if test -f $ac_dir/$ac_word; then
|
---|
2007 | ac_cv_prog_STRIP="strip"
|
---|
2008 | break
|
---|
2009 | fi
|
---|
2010 | done
|
---|
2011 | IFS="$ac_save_ifs"
|
---|
2012 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2013 | fi
|
---|
2014 | fi
|
---|
2015 | STRIP="$ac_cv_prog_STRIP"
|
---|
2016 | if test -n "$STRIP"; then
|
---|
2017 | echo "$ac_t""$STRIP" 1>&6
|
---|
2018 | else
|
---|
2019 | echo "$ac_t""no" 1>&6
|
---|
2020 | fi
|
---|
2021 |
|
---|
2022 | else
|
---|
2023 | STRIP=":"
|
---|
2024 | fi
|
---|
2025 | fi
|
---|
2026 |
|
---|
2027 |
|
---|
2028 | # Check for any special flags to pass to ltconfig.
|
---|
2029 | libtool_flags="--cache-file=$cache_file"
|
---|
2030 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2031 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2032 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2033 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2034 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2035 |
|
---|
2036 |
|
---|
2037 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2038 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2039 | enableval="$enable_libtool_lock"
|
---|
2040 | :
|
---|
2041 | fi
|
---|
2042 |
|
---|
2043 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2044 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2045 |
|
---|
2046 | # Check whether --with-pic or --without-pic was given.
|
---|
2047 | if test "${with_pic+set}" = set; then
|
---|
2048 | withval="$with_pic"
|
---|
2049 | pic_mode="$withval"
|
---|
2050 | else
|
---|
2051 | pic_mode=default
|
---|
2052 | fi
|
---|
2053 |
|
---|
2054 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2055 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2056 |
|
---|
2057 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2058 | # libtool support.
|
---|
2059 | case "$host" in
|
---|
2060 | *-*-irix6*)
|
---|
2061 | # Find out which ABI we are using.
|
---|
2062 | echo '#line 2063 "configure"' > conftest.$ac_ext
|
---|
2063 | if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2064 | case "`/usr/bin/file conftest.o`" in
|
---|
2065 | *32-bit*)
|
---|
2066 | LD="${LD-ld} -32"
|
---|
2067 | ;;
|
---|
2068 | *N32*)
|
---|
2069 | LD="${LD-ld} -n32"
|
---|
2070 | ;;
|
---|
2071 | *64-bit*)
|
---|
2072 | LD="${LD-ld} -64"
|
---|
2073 | ;;
|
---|
2074 | esac
|
---|
2075 | fi
|
---|
2076 | rm -rf conftest*
|
---|
2077 | ;;
|
---|
2078 |
|
---|
2079 | *-*-sco3.2v5*)
|
---|
2080 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2081 | SAVE_CFLAGS="$CFLAGS"
|
---|
2082 | CFLAGS="$CFLAGS -belf"
|
---|
2083 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2084 | echo "configure:2085: checking whether the C compiler needs -belf" >&5
|
---|
2085 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2086 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2087 | else
|
---|
2088 |
|
---|
2089 | ac_ext=c
|
---|
2090 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2091 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2092 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2093 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2094 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2095 |
|
---|
2096 | cat > conftest.$ac_ext <<EOF
|
---|
2097 | #line 2098 "configure"
|
---|
2098 | #include "confdefs.h"
|
---|
2099 |
|
---|
2100 | int main() {
|
---|
2101 |
|
---|
2102 | ; return 0; }
|
---|
2103 | EOF
|
---|
2104 | if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2105 | rm -rf conftest*
|
---|
2106 | lt_cv_cc_needs_belf=yes
|
---|
2107 | else
|
---|
2108 | echo "configure: failed program was:" >&5
|
---|
2109 | cat conftest.$ac_ext >&5
|
---|
2110 | rm -rf conftest*
|
---|
2111 | lt_cv_cc_needs_belf=no
|
---|
2112 | fi
|
---|
2113 | rm -f conftest*
|
---|
2114 | ac_ext=c
|
---|
2115 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2116 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2117 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2118 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2119 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2120 |
|
---|
2121 | fi
|
---|
2122 |
|
---|
2123 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2124 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2125 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2126 | CFLAGS="$SAVE_CFLAGS"
|
---|
2127 | fi
|
---|
2128 | ;;
|
---|
2129 |
|
---|
2130 |
|
---|
2131 | esac
|
---|
2132 |
|
---|
2133 |
|
---|
2134 | # Save cache, so that ltconfig can load it
|
---|
2135 | cat > confcache <<\EOF
|
---|
2136 | # This file is a shell script that caches the results of configure
|
---|
2137 | # tests run on this system so they can be shared between configure
|
---|
2138 | # scripts and configure runs. It is not useful on other systems.
|
---|
2139 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2140 | #
|
---|
2141 | # By default, configure uses ./config.cache as the cache file,
|
---|
2142 | # creating it if it does not exist already. You can give configure
|
---|
2143 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2144 | # what configure does when it calls configure scripts in
|
---|
2145 | # subdirectories, so they share the cache.
|
---|
2146 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2147 | # config.status only pays attention to the cache file if you give it the
|
---|
2148 | # --recheck option to rerun configure.
|
---|
2149 | #
|
---|
2150 | EOF
|
---|
2151 | # The following way of writing the cache mishandles newlines in values,
|
---|
2152 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2153 | # So, don't put newlines in cache variables' values.
|
---|
2154 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2155 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2156 | (set) 2>&1 |
|
---|
2157 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2158 | *ac_space=\ *)
|
---|
2159 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2160 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2161 | sed -n \
|
---|
2162 | -e "s/'/'\\\\''/g" \
|
---|
2163 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2164 | ;;
|
---|
2165 | *)
|
---|
2166 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2167 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2168 | ;;
|
---|
2169 | esac >> confcache
|
---|
2170 | if cmp -s $cache_file confcache; then
|
---|
2171 | :
|
---|
2172 | else
|
---|
2173 | if test -w $cache_file; then
|
---|
2174 | echo "updating cache $cache_file"
|
---|
2175 | cat confcache > $cache_file
|
---|
2176 | else
|
---|
2177 | echo "not updating unwritable cache $cache_file"
|
---|
2178 | fi
|
---|
2179 | fi
|
---|
2180 | rm -f confcache
|
---|
2181 |
|
---|
2182 |
|
---|
2183 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2184 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2185 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2186 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2187 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2188 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2189 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2190 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2191 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2192 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2193 |
|
---|
2194 | # Reload cache, that may have been modified by ltconfig
|
---|
2195 | if test -r "$cache_file"; then
|
---|
2196 | echo "loading cache $cache_file"
|
---|
2197 | . $cache_file
|
---|
2198 | else
|
---|
2199 | echo "creating cache $cache_file"
|
---|
2200 | > $cache_file
|
---|
2201 | fi
|
---|
2202 |
|
---|
2203 |
|
---|
2204 | # This can be used to rebuild libtool when needed
|
---|
2205 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2206 |
|
---|
2207 | # Always use our own libtool.
|
---|
2208 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2209 |
|
---|
2210 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2211 | # clobbered by the next message.
|
---|
2212 | exec 5>>./config.log
|
---|
2213 |
|
---|
2214 |
|
---|
2215 |
|
---|
2216 |
|
---|
2217 |
|
---|
2218 |
|
---|
2219 |
|
---|
2220 |
|
---|
2221 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
|
---|
2222 | if test "${enable_64_bit_bfd+set}" = set; then
|
---|
2223 | enableval="$enable_64_bit_bfd"
|
---|
2224 | case "${enableval}" in
|
---|
2225 | yes) want64=true ;;
|
---|
2226 | no) want64=false ;;
|
---|
2227 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
|
---|
2228 | esac
|
---|
2229 | else
|
---|
2230 | want64=false
|
---|
2231 | fi
|
---|
2232 | # Check whether --enable-targets or --disable-targets was given.
|
---|
2233 | if test "${enable_targets+set}" = set; then
|
---|
2234 | enableval="$enable_targets"
|
---|
2235 | case "${enableval}" in
|
---|
2236 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
---|
2237 | ;;
|
---|
2238 | no) enable_targets= ;;
|
---|
2239 | *) enable_targets=$enableval ;;
|
---|
2240 | esac
|
---|
2241 | fi
|
---|
2242 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
---|
2243 | if test "${enable_commonbfdlib+set}" = set; then
|
---|
2244 | enableval="$enable_commonbfdlib"
|
---|
2245 | case "${enableval}" in
|
---|
2246 | yes) commonbfdlib=true ;;
|
---|
2247 | no) commonbfdlib=false ;;
|
---|
2248 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
|
---|
2249 | esac
|
---|
2250 | fi
|
---|
2251 | # Check whether --with-mmap or --without-mmap was given.
|
---|
2252 | if test "${with_mmap+set}" = set; then
|
---|
2253 | withval="$with_mmap"
|
---|
2254 | case "${withval}" in
|
---|
2255 | yes) want_mmap=true ;;
|
---|
2256 | no) want_mmap=false ;;
|
---|
2257 | *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
|
---|
2258 | esac
|
---|
2259 | else
|
---|
2260 | want_mmap=false
|
---|
2261 | fi
|
---|
2262 |
|
---|
2263 | build_warnings="-W -Wall"
|
---|
2264 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
---|
2265 | if test "${enable_build_warnings+set}" = set; then
|
---|
2266 | enableval="$enable_build_warnings"
|
---|
2267 | case "${enableval}" in
|
---|
2268 | yes) ;;
|
---|
2269 | no) build_warnings="-w";;
|
---|
2270 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2271 | build_warnings="${build_warnings} ${t}";;
|
---|
2272 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2273 | build_warnings="${t} ${build_warnings}";;
|
---|
2274 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
---|
2275 | esac
|
---|
2276 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
---|
2277 | echo "Setting warning flags = $build_warnings" 6>&1
|
---|
2278 | fi
|
---|
2279 | fi
|
---|
2280 | WARN_CFLAGS=""
|
---|
2281 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
---|
2282 | WARN_CFLAGS="${build_warnings}"
|
---|
2283 | fi
|
---|
2284 |
|
---|
2285 |
|
---|
2286 |
|
---|
2287 |
|
---|
2288 |
|
---|
2289 |
|
---|
2290 | if test -z "$target" ; then
|
---|
2291 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
---|
2292 | fi
|
---|
2293 | if test "$program_transform_name" = s,x,x,; then
|
---|
2294 | program_transform_name=
|
---|
2295 | else
|
---|
2296 | # Double any \ or $. echo might interpret backslashes.
|
---|
2297 | cat <<\EOF_SED > conftestsed
|
---|
2298 | s,\\,\\\\,g; s,\$,$$,g
|
---|
2299 | EOF_SED
|
---|
2300 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
2301 | rm -f conftestsed
|
---|
2302 | fi
|
---|
2303 | test "$program_prefix" != NONE &&
|
---|
2304 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
2305 | # Use a double $ so make ignores it.
|
---|
2306 | test "$program_suffix" != NONE &&
|
---|
2307 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
2308 |
|
---|
2309 | # sed with no file args requires a program.
|
---|
2310 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
2311 |
|
---|
2312 |
|
---|
2313 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
2314 | echo "configure:2315: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
2315 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
2316 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
2317 | enableval="$enable_maintainer_mode"
|
---|
2318 | USE_MAINTAINER_MODE=$enableval
|
---|
2319 | else
|
---|
2320 | USE_MAINTAINER_MODE=no
|
---|
2321 | fi
|
---|
2322 |
|
---|
2323 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
2324 |
|
---|
2325 |
|
---|
2326 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
2327 | MAINTAINER_MODE_TRUE=
|
---|
2328 | MAINTAINER_MODE_FALSE='#'
|
---|
2329 | else
|
---|
2330 | MAINTAINER_MODE_TRUE='#'
|
---|
2331 | MAINTAINER_MODE_FALSE=
|
---|
2332 | fi
|
---|
2333 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
2334 |
|
---|
2335 |
|
---|
2336 |
|
---|
2337 |
|
---|
2338 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
2339 | echo "configure:2340: checking for executable suffix" >&5
|
---|
2340 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
2341 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2342 | else
|
---|
2343 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
---|
2344 | ac_cv_exeext=.exe
|
---|
2345 | else
|
---|
2346 | rm -f conftest*
|
---|
2347 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
2348 | ac_cv_exeext=
|
---|
2349 | if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
2350 | for file in conftest.*; do
|
---|
2351 | case $file in
|
---|
2352 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
---|
2353 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
2354 | esac
|
---|
2355 | done
|
---|
2356 | else
|
---|
2357 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
2358 | fi
|
---|
2359 | rm -f conftest*
|
---|
2360 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
2361 | fi
|
---|
2362 | fi
|
---|
2363 |
|
---|
2364 | EXEEXT=""
|
---|
2365 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
2366 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
2367 | ac_exeext=$EXEEXT
|
---|
2368 |
|
---|
2369 |
|
---|
2370 | host64=false
|
---|
2371 | target64=false
|
---|
2372 |
|
---|
2373 | # host stuff:
|
---|
2374 |
|
---|
2375 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2376 | set dummy gcc; ac_word=$2
|
---|
2377 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2378 | echo "configure:2379: checking for $ac_word" >&5
|
---|
2379 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2380 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2381 | else
|
---|
2382 | if test -n "$CC"; then
|
---|
2383 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2384 | else
|
---|
2385 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2386 | ac_dummy="$PATH"
|
---|
2387 | for ac_dir in $ac_dummy; do
|
---|
2388 | test -z "$ac_dir" && ac_dir=.
|
---|
2389 | if test -f $ac_dir/$ac_word; then
|
---|
2390 | ac_cv_prog_CC="gcc"
|
---|
2391 | break
|
---|
2392 | fi
|
---|
2393 | done
|
---|
2394 | IFS="$ac_save_ifs"
|
---|
2395 | fi
|
---|
2396 | fi
|
---|
2397 | CC="$ac_cv_prog_CC"
|
---|
2398 | if test -n "$CC"; then
|
---|
2399 | echo "$ac_t""$CC" 1>&6
|
---|
2400 | else
|
---|
2401 | echo "$ac_t""no" 1>&6
|
---|
2402 | fi
|
---|
2403 |
|
---|
2404 | if test -z "$CC"; then
|
---|
2405 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2406 | set dummy cc; ac_word=$2
|
---|
2407 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2408 | echo "configure:2409: checking for $ac_word" >&5
|
---|
2409 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2410 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2411 | else
|
---|
2412 | if test -n "$CC"; then
|
---|
2413 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2414 | else
|
---|
2415 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2416 | ac_prog_rejected=no
|
---|
2417 | ac_dummy="$PATH"
|
---|
2418 | for ac_dir in $ac_dummy; do
|
---|
2419 | test -z "$ac_dir" && ac_dir=.
|
---|
2420 | if test -f $ac_dir/$ac_word; then
|
---|
2421 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
2422 | ac_prog_rejected=yes
|
---|
2423 | continue
|
---|
2424 | fi
|
---|
2425 | ac_cv_prog_CC="cc"
|
---|
2426 | break
|
---|
2427 | fi
|
---|
2428 | done
|
---|
2429 | IFS="$ac_save_ifs"
|
---|
2430 | if test $ac_prog_rejected = yes; then
|
---|
2431 | # We found a bogon in the path, so make sure we never use it.
|
---|
2432 | set dummy $ac_cv_prog_CC
|
---|
2433 | shift
|
---|
2434 | if test $# -gt 0; then
|
---|
2435 | # We chose a different compiler from the bogus one.
|
---|
2436 | # However, it has the same basename, so the bogon will be chosen
|
---|
2437 | # first if we set CC to just the basename; use the full file name.
|
---|
2438 | shift
|
---|
2439 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
2440 | shift
|
---|
2441 | ac_cv_prog_CC="$@"
|
---|
2442 | fi
|
---|
2443 | fi
|
---|
2444 | fi
|
---|
2445 | fi
|
---|
2446 | CC="$ac_cv_prog_CC"
|
---|
2447 | if test -n "$CC"; then
|
---|
2448 | echo "$ac_t""$CC" 1>&6
|
---|
2449 | else
|
---|
2450 | echo "$ac_t""no" 1>&6
|
---|
2451 | fi
|
---|
2452 |
|
---|
2453 | if test -z "$CC"; then
|
---|
2454 | case "`uname -s`" in
|
---|
2455 | *win32* | *WIN32*)
|
---|
2456 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
2457 | set dummy cl; ac_word=$2
|
---|
2458 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2459 | echo "configure:2460: checking for $ac_word" >&5
|
---|
2460 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2461 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2462 | else
|
---|
2463 | if test -n "$CC"; then
|
---|
2464 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2465 | else
|
---|
2466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2467 | ac_dummy="$PATH"
|
---|
2468 | for ac_dir in $ac_dummy; do
|
---|
2469 | test -z "$ac_dir" && ac_dir=.
|
---|
2470 | if test -f $ac_dir/$ac_word; then
|
---|
2471 | ac_cv_prog_CC="cl"
|
---|
2472 | break
|
---|
2473 | fi
|
---|
2474 | done
|
---|
2475 | IFS="$ac_save_ifs"
|
---|
2476 | fi
|
---|
2477 | fi
|
---|
2478 | CC="$ac_cv_prog_CC"
|
---|
2479 | if test -n "$CC"; then
|
---|
2480 | echo "$ac_t""$CC" 1>&6
|
---|
2481 | else
|
---|
2482 | echo "$ac_t""no" 1>&6
|
---|
2483 | fi
|
---|
2484 | ;;
|
---|
2485 | esac
|
---|
2486 | fi
|
---|
2487 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
2488 | fi
|
---|
2489 |
|
---|
2490 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
2491 | echo "configure:2492: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
2492 |
|
---|
2493 | ac_ext=c
|
---|
2494 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2495 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2496 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2497 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2498 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2499 |
|
---|
2500 | cat > conftest.$ac_ext << EOF
|
---|
2501 |
|
---|
2502 | #line 2503 "configure"
|
---|
2503 | #include "confdefs.h"
|
---|
2504 |
|
---|
2505 | main(){return(0);}
|
---|
2506 | EOF
|
---|
2507 | if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2508 | ac_cv_prog_cc_works=yes
|
---|
2509 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
2510 | if (./conftest; exit) 2>/dev/null; then
|
---|
2511 | ac_cv_prog_cc_cross=no
|
---|
2512 | else
|
---|
2513 | ac_cv_prog_cc_cross=yes
|
---|
2514 | fi
|
---|
2515 | else
|
---|
2516 | echo "configure: failed program was:" >&5
|
---|
2517 | cat conftest.$ac_ext >&5
|
---|
2518 | ac_cv_prog_cc_works=no
|
---|
2519 | fi
|
---|
2520 | rm -fr conftest*
|
---|
2521 | ac_ext=c
|
---|
2522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2523 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2525 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2526 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2527 |
|
---|
2528 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
2529 | if test $ac_cv_prog_cc_works = no; then
|
---|
2530 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
2531 | fi
|
---|
2532 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
2533 | echo "configure:2534: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
2534 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
2535 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2536 |
|
---|
2537 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
2538 | echo "configure:2539: checking whether we are using GNU C" >&5
|
---|
2539 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
2540 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2541 | else
|
---|
2542 | cat > conftest.c <<EOF
|
---|
2543 | #ifdef __GNUC__
|
---|
2544 | yes;
|
---|
2545 | #endif
|
---|
2546 | EOF
|
---|
2547 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
2548 | ac_cv_prog_gcc=yes
|
---|
2549 | else
|
---|
2550 | ac_cv_prog_gcc=no
|
---|
2551 | fi
|
---|
2552 | fi
|
---|
2553 |
|
---|
2554 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
2555 |
|
---|
2556 | if test $ac_cv_prog_gcc = yes; then
|
---|
2557 | GCC=yes
|
---|
2558 | else
|
---|
2559 | GCC=
|
---|
2560 | fi
|
---|
2561 |
|
---|
2562 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
2563 | ac_save_CFLAGS="$CFLAGS"
|
---|
2564 | CFLAGS=
|
---|
2565 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
2566 | echo "configure:2567: checking whether ${CC-cc} accepts -g" >&5
|
---|
2567 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
2568 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2569 | else
|
---|
2570 | echo 'void f(){}' > conftest.c
|
---|
2571 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
2572 | ac_cv_prog_cc_g=yes
|
---|
2573 | else
|
---|
2574 | ac_cv_prog_cc_g=no
|
---|
2575 | fi
|
---|
2576 | rm -f conftest*
|
---|
2577 |
|
---|
2578 | fi
|
---|
2579 |
|
---|
2580 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
2581 | if test "$ac_test_CFLAGS" = set; then
|
---|
2582 | CFLAGS="$ac_save_CFLAGS"
|
---|
2583 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2584 | if test "$GCC" = yes; then
|
---|
2585 | CFLAGS="-g -O2"
|
---|
2586 | else
|
---|
2587 | CFLAGS="-g"
|
---|
2588 | fi
|
---|
2589 | else
|
---|
2590 | if test "$GCC" = yes; then
|
---|
2591 | CFLAGS="-O2"
|
---|
2592 | else
|
---|
2593 | CFLAGS=
|
---|
2594 | fi
|
---|
2595 | fi
|
---|
2596 |
|
---|
2597 |
|
---|
2598 | ALL_LINGUAS=
|
---|
2599 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2600 | echo "configure:2601: checking how to run the C preprocessor" >&5
|
---|
2601 | # On Suns, sometimes $CPP names a directory.
|
---|
2602 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2603 | CPP=
|
---|
2604 | fi
|
---|
2605 | if test -z "$CPP"; then
|
---|
2606 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2607 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2608 | else
|
---|
2609 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2610 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2611 | CPP="${CC-cc} -E"
|
---|
2612 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2613 | # not just through cpp.
|
---|
2614 | cat > conftest.$ac_ext <<EOF
|
---|
2615 | #line 2616 "configure"
|
---|
2616 | #include "confdefs.h"
|
---|
2617 | #include <assert.h>
|
---|
2618 | Syntax Error
|
---|
2619 | EOF
|
---|
2620 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2621 | { (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2622 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2623 | if test -z "$ac_err"; then
|
---|
2624 | :
|
---|
2625 | else
|
---|
2626 | echo "$ac_err" >&5
|
---|
2627 | echo "configure: failed program was:" >&5
|
---|
2628 | cat conftest.$ac_ext >&5
|
---|
2629 | rm -rf conftest*
|
---|
2630 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2631 | cat > conftest.$ac_ext <<EOF
|
---|
2632 | #line 2633 "configure"
|
---|
2633 | #include "confdefs.h"
|
---|
2634 | #include <assert.h>
|
---|
2635 | Syntax Error
|
---|
2636 | EOF
|
---|
2637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2638 | { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2640 | if test -z "$ac_err"; then
|
---|
2641 | :
|
---|
2642 | else
|
---|
2643 | echo "$ac_err" >&5
|
---|
2644 | echo "configure: failed program was:" >&5
|
---|
2645 | cat conftest.$ac_ext >&5
|
---|
2646 | rm -rf conftest*
|
---|
2647 | CPP="${CC-cc} -nologo -E"
|
---|
2648 | cat > conftest.$ac_ext <<EOF
|
---|
2649 | #line 2650 "configure"
|
---|
2650 | #include "confdefs.h"
|
---|
2651 | #include <assert.h>
|
---|
2652 | Syntax Error
|
---|
2653 | EOF
|
---|
2654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2655 | { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2656 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2657 | if test -z "$ac_err"; then
|
---|
2658 | :
|
---|
2659 | else
|
---|
2660 | echo "$ac_err" >&5
|
---|
2661 | echo "configure: failed program was:" >&5
|
---|
2662 | cat conftest.$ac_ext >&5
|
---|
2663 | rm -rf conftest*
|
---|
2664 | CPP=/lib/cpp
|
---|
2665 | fi
|
---|
2666 | rm -f conftest*
|
---|
2667 | fi
|
---|
2668 | rm -f conftest*
|
---|
2669 | fi
|
---|
2670 | rm -f conftest*
|
---|
2671 | ac_cv_prog_CPP="$CPP"
|
---|
2672 | fi
|
---|
2673 | CPP="$ac_cv_prog_CPP"
|
---|
2674 | else
|
---|
2675 | ac_cv_prog_CPP="$CPP"
|
---|
2676 | fi
|
---|
2677 | echo "$ac_t""$CPP" 1>&6
|
---|
2678 |
|
---|
2679 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2680 | set dummy ranlib; ac_word=$2
|
---|
2681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2682 | echo "configure:2683: checking for $ac_word" >&5
|
---|
2683 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2684 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2685 | else
|
---|
2686 | if test -n "$RANLIB"; then
|
---|
2687 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2688 | else
|
---|
2689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2690 | ac_dummy="$PATH"
|
---|
2691 | for ac_dir in $ac_dummy; do
|
---|
2692 | test -z "$ac_dir" && ac_dir=.
|
---|
2693 | if test -f $ac_dir/$ac_word; then
|
---|
2694 | ac_cv_prog_RANLIB="ranlib"
|
---|
2695 | break
|
---|
2696 | fi
|
---|
2697 | done
|
---|
2698 | IFS="$ac_save_ifs"
|
---|
2699 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2700 | fi
|
---|
2701 | fi
|
---|
2702 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2703 | if test -n "$RANLIB"; then
|
---|
2704 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2705 | else
|
---|
2706 | echo "$ac_t""no" 1>&6
|
---|
2707 | fi
|
---|
2708 |
|
---|
2709 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2710 | echo "configure:2711: checking for ANSI C header files" >&5
|
---|
2711 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2712 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2713 | else
|
---|
2714 | cat > conftest.$ac_ext <<EOF
|
---|
2715 | #line 2716 "configure"
|
---|
2716 | #include "confdefs.h"
|
---|
2717 | #include <stdlib.h>
|
---|
2718 | #include <stdarg.h>
|
---|
2719 | #include <string.h>
|
---|
2720 | #include <float.h>
|
---|
2721 | EOF
|
---|
2722 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2723 | { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2724 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2725 | if test -z "$ac_err"; then
|
---|
2726 | rm -rf conftest*
|
---|
2727 | ac_cv_header_stdc=yes
|
---|
2728 | else
|
---|
2729 | echo "$ac_err" >&5
|
---|
2730 | echo "configure: failed program was:" >&5
|
---|
2731 | cat conftest.$ac_ext >&5
|
---|
2732 | rm -rf conftest*
|
---|
2733 | ac_cv_header_stdc=no
|
---|
2734 | fi
|
---|
2735 | rm -f conftest*
|
---|
2736 |
|
---|
2737 | if test $ac_cv_header_stdc = yes; then
|
---|
2738 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2739 | cat > conftest.$ac_ext <<EOF
|
---|
2740 | #line 2741 "configure"
|
---|
2741 | #include "confdefs.h"
|
---|
2742 | #include <string.h>
|
---|
2743 | EOF
|
---|
2744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2745 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2746 | :
|
---|
2747 | else
|
---|
2748 | rm -rf conftest*
|
---|
2749 | ac_cv_header_stdc=no
|
---|
2750 | fi
|
---|
2751 | rm -f conftest*
|
---|
2752 |
|
---|
2753 | fi
|
---|
2754 |
|
---|
2755 | if test $ac_cv_header_stdc = yes; then
|
---|
2756 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2757 | cat > conftest.$ac_ext <<EOF
|
---|
2758 | #line 2759 "configure"
|
---|
2759 | #include "confdefs.h"
|
---|
2760 | #include <stdlib.h>
|
---|
2761 | EOF
|
---|
2762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2763 | egrep "free" >/dev/null 2>&1; then
|
---|
2764 | :
|
---|
2765 | else
|
---|
2766 | rm -rf conftest*
|
---|
2767 | ac_cv_header_stdc=no
|
---|
2768 | fi
|
---|
2769 | rm -f conftest*
|
---|
2770 |
|
---|
2771 | fi
|
---|
2772 |
|
---|
2773 | if test $ac_cv_header_stdc = yes; then
|
---|
2774 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2775 | if test "$cross_compiling" = yes; then
|
---|
2776 | :
|
---|
2777 | else
|
---|
2778 | cat > conftest.$ac_ext <<EOF
|
---|
2779 | #line 2780 "configure"
|
---|
2780 | #include "confdefs.h"
|
---|
2781 | #include <ctype.h>
|
---|
2782 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2783 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2784 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2785 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2786 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2787 | exit (0); }
|
---|
2788 |
|
---|
2789 | EOF
|
---|
2790 | if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2791 | then
|
---|
2792 | :
|
---|
2793 | else
|
---|
2794 | echo "configure: failed program was:" >&5
|
---|
2795 | cat conftest.$ac_ext >&5
|
---|
2796 | rm -fr conftest*
|
---|
2797 | ac_cv_header_stdc=no
|
---|
2798 | fi
|
---|
2799 | rm -fr conftest*
|
---|
2800 | fi
|
---|
2801 |
|
---|
2802 | fi
|
---|
2803 | fi
|
---|
2804 |
|
---|
2805 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2806 | if test $ac_cv_header_stdc = yes; then
|
---|
2807 | cat >> confdefs.h <<\EOF
|
---|
2808 | #define STDC_HEADERS 1
|
---|
2809 | EOF
|
---|
2810 |
|
---|
2811 | fi
|
---|
2812 |
|
---|
2813 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
2814 | echo "configure:2815: checking for working const" >&5
|
---|
2815 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
2816 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2817 | else
|
---|
2818 | cat > conftest.$ac_ext <<EOF
|
---|
2819 | #line 2820 "configure"
|
---|
2820 | #include "confdefs.h"
|
---|
2821 |
|
---|
2822 | int main() {
|
---|
2823 |
|
---|
2824 | /* Ultrix mips cc rejects this. */
|
---|
2825 | typedef int charset[2]; const charset x;
|
---|
2826 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2827 | char const *const *ccp;
|
---|
2828 | char **p;
|
---|
2829 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2830 | struct point {int x, y;};
|
---|
2831 | static struct point const zero = {0,0};
|
---|
2832 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
2833 | It does not let you subtract one const X* pointer from another in an arm
|
---|
2834 | of an if-expression whose if-part is not a constant expression */
|
---|
2835 | const char *g = "string";
|
---|
2836 | ccp = &g + (g ? g-g : 0);
|
---|
2837 | /* HPUX 7.0 cc rejects these. */
|
---|
2838 | ++ccp;
|
---|
2839 | p = (char**) ccp;
|
---|
2840 | ccp = (char const *const *) p;
|
---|
2841 | { /* SCO 3.2v4 cc rejects this. */
|
---|
2842 | char *t;
|
---|
2843 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
2844 |
|
---|
2845 | *t++ = 0;
|
---|
2846 | }
|
---|
2847 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
2848 | int x[] = {25, 17};
|
---|
2849 | const int *foo = &x[0];
|
---|
2850 | ++foo;
|
---|
2851 | }
|
---|
2852 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
2853 | typedef const int *iptr;
|
---|
2854 | iptr p = 0;
|
---|
2855 | ++p;
|
---|
2856 | }
|
---|
2857 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
2858 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
2859 | struct s { int j; const int *ap[3]; };
|
---|
2860 | struct s *b; b->j = 5;
|
---|
2861 | }
|
---|
2862 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
2863 | const int foo = 10;
|
---|
2864 | }
|
---|
2865 |
|
---|
2866 | ; return 0; }
|
---|
2867 | EOF
|
---|
2868 | if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2869 | rm -rf conftest*
|
---|
2870 | ac_cv_c_const=yes
|
---|
2871 | else
|
---|
2872 | echo "configure: failed program was:" >&5
|
---|
2873 | cat conftest.$ac_ext >&5
|
---|
2874 | rm -rf conftest*
|
---|
2875 | ac_cv_c_const=no
|
---|
2876 | fi
|
---|
2877 | rm -f conftest*
|
---|
2878 | fi
|
---|
2879 |
|
---|
2880 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
2881 | if test $ac_cv_c_const = no; then
|
---|
2882 | cat >> confdefs.h <<\EOF
|
---|
2883 | #define const
|
---|
2884 | EOF
|
---|
2885 |
|
---|
2886 | fi
|
---|
2887 |
|
---|
2888 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
2889 | echo "configure:2890: checking for inline" >&5
|
---|
2890 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
2891 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2892 | else
|
---|
2893 | ac_cv_c_inline=no
|
---|
2894 | for ac_kw in inline __inline__ __inline; do
|
---|
2895 | cat > conftest.$ac_ext <<EOF
|
---|
2896 | #line 2897 "configure"
|
---|
2897 | #include "confdefs.h"
|
---|
2898 |
|
---|
2899 | int main() {
|
---|
2900 | } $ac_kw foo() {
|
---|
2901 | ; return 0; }
|
---|
2902 | EOF
|
---|
2903 | if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2904 | rm -rf conftest*
|
---|
2905 | ac_cv_c_inline=$ac_kw; break
|
---|
2906 | else
|
---|
2907 | echo "configure: failed program was:" >&5
|
---|
2908 | cat conftest.$ac_ext >&5
|
---|
2909 | fi
|
---|
2910 | rm -f conftest*
|
---|
2911 | done
|
---|
2912 |
|
---|
2913 | fi
|
---|
2914 |
|
---|
2915 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
2916 | case "$ac_cv_c_inline" in
|
---|
2917 | inline | yes) ;;
|
---|
2918 | no) cat >> confdefs.h <<\EOF
|
---|
2919 | #define inline
|
---|
2920 | EOF
|
---|
2921 | ;;
|
---|
2922 | *) cat >> confdefs.h <<EOF
|
---|
2923 | #define inline $ac_cv_c_inline
|
---|
2924 | EOF
|
---|
2925 | ;;
|
---|
2926 | esac
|
---|
2927 |
|
---|
2928 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
2929 | echo "configure:2930: checking for off_t" >&5
|
---|
2930 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
2931 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2932 | else
|
---|
2933 | cat > conftest.$ac_ext <<EOF
|
---|
2934 | #line 2935 "configure"
|
---|
2935 | #include "confdefs.h"
|
---|
2936 | #include <sys/types.h>
|
---|
2937 | #if STDC_HEADERS
|
---|
2938 | #include <stdlib.h>
|
---|
2939 | #include <stddef.h>
|
---|
2940 | #endif
|
---|
2941 | EOF
|
---|
2942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2943 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
2944 | rm -rf conftest*
|
---|
2945 | ac_cv_type_off_t=yes
|
---|
2946 | else
|
---|
2947 | rm -rf conftest*
|
---|
2948 | ac_cv_type_off_t=no
|
---|
2949 | fi
|
---|
2950 | rm -f conftest*
|
---|
2951 |
|
---|
2952 | fi
|
---|
2953 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
2954 | if test $ac_cv_type_off_t = no; then
|
---|
2955 | cat >> confdefs.h <<\EOF
|
---|
2956 | #define off_t long
|
---|
2957 | EOF
|
---|
2958 |
|
---|
2959 | fi
|
---|
2960 |
|
---|
2961 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
2962 | echo "configure:2963: checking for size_t" >&5
|
---|
2963 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
2964 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2965 | else
|
---|
2966 | cat > conftest.$ac_ext <<EOF
|
---|
2967 | #line 2968 "configure"
|
---|
2968 | #include "confdefs.h"
|
---|
2969 | #include <sys/types.h>
|
---|
2970 | #if STDC_HEADERS
|
---|
2971 | #include <stdlib.h>
|
---|
2972 | #include <stddef.h>
|
---|
2973 | #endif
|
---|
2974 | EOF
|
---|
2975 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2976 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
2977 | rm -rf conftest*
|
---|
2978 | ac_cv_type_size_t=yes
|
---|
2979 | else
|
---|
2980 | rm -rf conftest*
|
---|
2981 | ac_cv_type_size_t=no
|
---|
2982 | fi
|
---|
2983 | rm -f conftest*
|
---|
2984 |
|
---|
2985 | fi
|
---|
2986 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
2987 | if test $ac_cv_type_size_t = no; then
|
---|
2988 | cat >> confdefs.h <<\EOF
|
---|
2989 | #define size_t unsigned
|
---|
2990 | EOF
|
---|
2991 |
|
---|
2992 | fi
|
---|
2993 |
|
---|
2994 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
2995 | # for constant arguments. Useless!
|
---|
2996 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
2997 | echo "configure:2998: checking for working alloca.h" >&5
|
---|
2998 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
2999 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3000 | else
|
---|
3001 | cat > conftest.$ac_ext <<EOF
|
---|
3002 | #line 3003 "configure"
|
---|
3003 | #include "confdefs.h"
|
---|
3004 | #include <alloca.h>
|
---|
3005 | int main() {
|
---|
3006 | char *p = alloca(2 * sizeof(int));
|
---|
3007 | ; return 0; }
|
---|
3008 | EOF
|
---|
3009 | if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3010 | rm -rf conftest*
|
---|
3011 | ac_cv_header_alloca_h=yes
|
---|
3012 | else
|
---|
3013 | echo "configure: failed program was:" >&5
|
---|
3014 | cat conftest.$ac_ext >&5
|
---|
3015 | rm -rf conftest*
|
---|
3016 | ac_cv_header_alloca_h=no
|
---|
3017 | fi
|
---|
3018 | rm -f conftest*
|
---|
3019 | fi
|
---|
3020 |
|
---|
3021 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
3022 | if test $ac_cv_header_alloca_h = yes; then
|
---|
3023 | cat >> confdefs.h <<\EOF
|
---|
3024 | #define HAVE_ALLOCA_H 1
|
---|
3025 | EOF
|
---|
3026 |
|
---|
3027 | fi
|
---|
3028 |
|
---|
3029 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
3030 | echo "configure:3031: checking for alloca" >&5
|
---|
3031 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
3032 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3033 | else
|
---|
3034 | cat > conftest.$ac_ext <<EOF
|
---|
3035 | #line 3036 "configure"
|
---|
3036 | #include "confdefs.h"
|
---|
3037 |
|
---|
3038 | #ifdef __GNUC__
|
---|
3039 | # define alloca __builtin_alloca
|
---|
3040 | #else
|
---|
3041 | # ifdef _MSC_VER
|
---|
3042 | # include <malloc.h>
|
---|
3043 | # define alloca _alloca
|
---|
3044 | # else
|
---|
3045 | # if HAVE_ALLOCA_H
|
---|
3046 | # include <alloca.h>
|
---|
3047 | # else
|
---|
3048 | # ifdef _AIX
|
---|
3049 | #pragma alloca
|
---|
3050 | # else
|
---|
3051 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
3052 | char *alloca ();
|
---|
3053 | # endif
|
---|
3054 | # endif
|
---|
3055 | # endif
|
---|
3056 | # endif
|
---|
3057 | #endif
|
---|
3058 |
|
---|
3059 | int main() {
|
---|
3060 | char *p = (char *) alloca(1);
|
---|
3061 | ; return 0; }
|
---|
3062 | EOF
|
---|
3063 | if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3064 | rm -rf conftest*
|
---|
3065 | ac_cv_func_alloca_works=yes
|
---|
3066 | else
|
---|
3067 | echo "configure: failed program was:" >&5
|
---|
3068 | cat conftest.$ac_ext >&5
|
---|
3069 | rm -rf conftest*
|
---|
3070 | ac_cv_func_alloca_works=no
|
---|
3071 | fi
|
---|
3072 | rm -f conftest*
|
---|
3073 | fi
|
---|
3074 |
|
---|
3075 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
3076 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3077 | cat >> confdefs.h <<\EOF
|
---|
3078 | #define HAVE_ALLOCA 1
|
---|
3079 | EOF
|
---|
3080 |
|
---|
3081 | fi
|
---|
3082 |
|
---|
3083 | if test $ac_cv_func_alloca_works = no; then
|
---|
3084 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3085 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3086 | # contain a buggy version. If you still want to use their alloca,
|
---|
3087 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3088 | ALLOCA=alloca.${ac_objext}
|
---|
3089 | cat >> confdefs.h <<\EOF
|
---|
3090 | #define C_ALLOCA 1
|
---|
3091 | EOF
|
---|
3092 |
|
---|
3093 |
|
---|
3094 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
3095 | echo "configure:3096: checking whether alloca needs Cray hooks" >&5
|
---|
3096 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
3097 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3098 | else
|
---|
3099 | cat > conftest.$ac_ext <<EOF
|
---|
3100 | #line 3101 "configure"
|
---|
3101 | #include "confdefs.h"
|
---|
3102 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3103 | webecray
|
---|
3104 | #else
|
---|
3105 | wenotbecray
|
---|
3106 | #endif
|
---|
3107 |
|
---|
3108 | EOF
|
---|
3109 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3110 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3111 | rm -rf conftest*
|
---|
3112 | ac_cv_os_cray=yes
|
---|
3113 | else
|
---|
3114 | rm -rf conftest*
|
---|
3115 | ac_cv_os_cray=no
|
---|
3116 | fi
|
---|
3117 | rm -f conftest*
|
---|
3118 |
|
---|
3119 | fi
|
---|
3120 |
|
---|
3121 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
3122 | if test $ac_cv_os_cray = yes; then
|
---|
3123 | for ac_func in _getb67 GETB67 getb67; do
|
---|
3124 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3125 | echo "configure:3126: checking for $ac_func" >&5
|
---|
3126 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3127 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3128 | else
|
---|
3129 | cat > conftest.$ac_ext <<EOF
|
---|
3130 | #line 3131 "configure"
|
---|
3131 | #include "confdefs.h"
|
---|
3132 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3133 | which can conflict with char $ac_func(); below. */
|
---|
3134 | #include <assert.h>
|
---|
3135 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3136 | /* We use char because int might match the return type of a gcc2
|
---|
3137 | builtin and then its argument prototype would still apply. */
|
---|
3138 | char $ac_func();
|
---|
3139 |
|
---|
3140 | int main() {
|
---|
3141 |
|
---|
3142 | /* The GNU C library defines this for functions which it implements
|
---|
3143 | to always fail with ENOSYS. Some functions are actually named
|
---|
3144 | something starting with __ and the normal name is an alias. */
|
---|
3145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3146 | choke me
|
---|
3147 | #else
|
---|
3148 | $ac_func();
|
---|
3149 | #endif
|
---|
3150 |
|
---|
3151 | ; return 0; }
|
---|
3152 | EOF
|
---|
3153 | if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3154 | rm -rf conftest*
|
---|
3155 | eval "ac_cv_func_$ac_func=yes"
|
---|
3156 | else
|
---|
3157 | echo "configure: failed program was:" >&5
|
---|
3158 | cat conftest.$ac_ext >&5
|
---|
3159 | rm -rf conftest*
|
---|
3160 | eval "ac_cv_func_$ac_func=no"
|
---|
3161 | fi
|
---|
3162 | rm -f conftest*
|
---|
3163 | fi
|
---|
3164 |
|
---|
3165 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3166 | echo "$ac_t""yes" 1>&6
|
---|
3167 | cat >> confdefs.h <<EOF
|
---|
3168 | #define CRAY_STACKSEG_END $ac_func
|
---|
3169 | EOF
|
---|
3170 |
|
---|
3171 | break
|
---|
3172 | else
|
---|
3173 | echo "$ac_t""no" 1>&6
|
---|
3174 | fi
|
---|
3175 |
|
---|
3176 | done
|
---|
3177 | fi
|
---|
3178 |
|
---|
3179 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
3180 | echo "configure:3181: checking stack direction for C alloca" >&5
|
---|
3181 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
3182 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3183 | else
|
---|
3184 | if test "$cross_compiling" = yes; then
|
---|
3185 | ac_cv_c_stack_direction=0
|
---|
3186 | else
|
---|
3187 | cat > conftest.$ac_ext <<EOF
|
---|
3188 | #line 3189 "configure"
|
---|
3189 | #include "confdefs.h"
|
---|
3190 | find_stack_direction ()
|
---|
3191 | {
|
---|
3192 | static char *addr = 0;
|
---|
3193 | auto char dummy;
|
---|
3194 | if (addr == 0)
|
---|
3195 | {
|
---|
3196 | addr = &dummy;
|
---|
3197 | return find_stack_direction ();
|
---|
3198 | }
|
---|
3199 | else
|
---|
3200 | return (&dummy > addr) ? 1 : -1;
|
---|
3201 | }
|
---|
3202 | main ()
|
---|
3203 | {
|
---|
3204 | exit (find_stack_direction() < 0);
|
---|
3205 | }
|
---|
3206 | EOF
|
---|
3207 | if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3208 | then
|
---|
3209 | ac_cv_c_stack_direction=1
|
---|
3210 | else
|
---|
3211 | echo "configure: failed program was:" >&5
|
---|
3212 | cat conftest.$ac_ext >&5
|
---|
3213 | rm -fr conftest*
|
---|
3214 | ac_cv_c_stack_direction=-1
|
---|
3215 | fi
|
---|
3216 | rm -fr conftest*
|
---|
3217 | fi
|
---|
3218 |
|
---|
3219 | fi
|
---|
3220 |
|
---|
3221 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
3222 | cat >> confdefs.h <<EOF
|
---|
3223 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
3224 | EOF
|
---|
3225 |
|
---|
3226 | fi
|
---|
3227 |
|
---|
3228 | for ac_hdr in unistd.h
|
---|
3229 | do
|
---|
3230 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3231 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3232 | echo "configure:3233: checking for $ac_hdr" >&5
|
---|
3233 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3234 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3235 | else
|
---|
3236 | cat > conftest.$ac_ext <<EOF
|
---|
3237 | #line 3238 "configure"
|
---|
3238 | #include "confdefs.h"
|
---|
3239 | #include <$ac_hdr>
|
---|
3240 | EOF
|
---|
3241 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3242 | { (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3243 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3244 | if test -z "$ac_err"; then
|
---|
3245 | rm -rf conftest*
|
---|
3246 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3247 | else
|
---|
3248 | echo "$ac_err" >&5
|
---|
3249 | echo "configure: failed program was:" >&5
|
---|
3250 | cat conftest.$ac_ext >&5
|
---|
3251 | rm -rf conftest*
|
---|
3252 | eval "ac_cv_header_$ac_safe=no"
|
---|
3253 | fi
|
---|
3254 | rm -f conftest*
|
---|
3255 | fi
|
---|
3256 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3257 | echo "$ac_t""yes" 1>&6
|
---|
3258 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3259 | cat >> confdefs.h <<EOF
|
---|
3260 | #define $ac_tr_hdr 1
|
---|
3261 | EOF
|
---|
3262 |
|
---|
3263 | else
|
---|
3264 | echo "$ac_t""no" 1>&6
|
---|
3265 | fi
|
---|
3266 | done
|
---|
3267 |
|
---|
3268 | for ac_func in getpagesize
|
---|
3269 | do
|
---|
3270 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3271 | echo "configure:3272: checking for $ac_func" >&5
|
---|
3272 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3273 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3274 | else
|
---|
3275 | cat > conftest.$ac_ext <<EOF
|
---|
3276 | #line 3277 "configure"
|
---|
3277 | #include "confdefs.h"
|
---|
3278 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3279 | which can conflict with char $ac_func(); below. */
|
---|
3280 | #include <assert.h>
|
---|
3281 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3282 | /* We use char because int might match the return type of a gcc2
|
---|
3283 | builtin and then its argument prototype would still apply. */
|
---|
3284 | char $ac_func();
|
---|
3285 |
|
---|
3286 | int main() {
|
---|
3287 |
|
---|
3288 | /* The GNU C library defines this for functions which it implements
|
---|
3289 | to always fail with ENOSYS. Some functions are actually named
|
---|
3290 | something starting with __ and the normal name is an alias. */
|
---|
3291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3292 | choke me
|
---|
3293 | #else
|
---|
3294 | $ac_func();
|
---|
3295 | #endif
|
---|
3296 |
|
---|
3297 | ; return 0; }
|
---|
3298 | EOF
|
---|
3299 | if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3300 | rm -rf conftest*
|
---|
3301 | eval "ac_cv_func_$ac_func=yes"
|
---|
3302 | else
|
---|
3303 | echo "configure: failed program was:" >&5
|
---|
3304 | cat conftest.$ac_ext >&5
|
---|
3305 | rm -rf conftest*
|
---|
3306 | eval "ac_cv_func_$ac_func=no"
|
---|
3307 | fi
|
---|
3308 | rm -f conftest*
|
---|
3309 | fi
|
---|
3310 |
|
---|
3311 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3312 | echo "$ac_t""yes" 1>&6
|
---|
3313 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3314 | cat >> confdefs.h <<EOF
|
---|
3315 | #define $ac_tr_func 1
|
---|
3316 | EOF
|
---|
3317 |
|
---|
3318 | else
|
---|
3319 | echo "$ac_t""no" 1>&6
|
---|
3320 | fi
|
---|
3321 | done
|
---|
3322 |
|
---|
3323 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
3324 | echo "configure:3325: checking for working mmap" >&5
|
---|
3325 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
3326 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3327 | else
|
---|
3328 | if test "$cross_compiling" = yes; then
|
---|
3329 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3330 | else
|
---|
3331 | cat > conftest.$ac_ext <<EOF
|
---|
3332 | #line 3333 "configure"
|
---|
3333 | #include "confdefs.h"
|
---|
3334 |
|
---|
3335 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
3336 | Here is a matrix of mmap possibilities:
|
---|
3337 | mmap private not fixed
|
---|
3338 | mmap private fixed at somewhere currently unmapped
|
---|
3339 | mmap private fixed at somewhere already mapped
|
---|
3340 | mmap shared not fixed
|
---|
3341 | mmap shared fixed at somewhere currently unmapped
|
---|
3342 | mmap shared fixed at somewhere already mapped
|
---|
3343 | For private mappings, we should verify that changes cannot be read()
|
---|
3344 | back from the file, nor mmap's back from the file at a different
|
---|
3345 | address. (There have been systems where private was not correctly
|
---|
3346 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
3347 | VM page cache was not coherent with the filesystem buffer cache
|
---|
3348 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
3349 | For shared mappings, we should conversely verify that changes get
|
---|
3350 | propogated back to all the places they're supposed to be.
|
---|
3351 |
|
---|
3352 | Grep wants private fixed already mapped.
|
---|
3353 | The main things grep needs to know about mmap are:
|
---|
3354 | * does it exist and is it safe to write into the mmap'd area
|
---|
3355 | * how to use it (BSD variants) */
|
---|
3356 | #include <sys/types.h>
|
---|
3357 | #include <fcntl.h>
|
---|
3358 | #include <sys/mman.h>
|
---|
3359 |
|
---|
3360 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
3361 | #ifndef HAVE_GETPAGESIZE
|
---|
3362 | # ifdef HAVE_UNISTD_H
|
---|
3363 | # include <unistd.h>
|
---|
3364 | # endif
|
---|
3365 |
|
---|
3366 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
3367 | # ifndef HAVE_SYS_PARAM_H
|
---|
3368 | # define HAVE_SYS_PARAM_H 1
|
---|
3369 | # endif
|
---|
3370 |
|
---|
3371 | # ifdef _SC_PAGESIZE
|
---|
3372 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
3373 | # else /* no _SC_PAGESIZE */
|
---|
3374 | # ifdef HAVE_SYS_PARAM_H
|
---|
3375 | # include <sys/param.h>
|
---|
3376 | # ifdef EXEC_PAGESIZE
|
---|
3377 | # define getpagesize() EXEC_PAGESIZE
|
---|
3378 | # else /* no EXEC_PAGESIZE */
|
---|
3379 | # ifdef NBPG
|
---|
3380 | # define getpagesize() NBPG * CLSIZE
|
---|
3381 | # ifndef CLSIZE
|
---|
3382 | # define CLSIZE 1
|
---|
3383 | # endif /* no CLSIZE */
|
---|
3384 | # else /* no NBPG */
|
---|
3385 | # ifdef NBPC
|
---|
3386 | # define getpagesize() NBPC
|
---|
3387 | # else /* no NBPC */
|
---|
3388 | # ifdef PAGESIZE
|
---|
3389 | # define getpagesize() PAGESIZE
|
---|
3390 | # endif /* PAGESIZE */
|
---|
3391 | # endif /* no NBPC */
|
---|
3392 | # endif /* no NBPG */
|
---|
3393 | # endif /* no EXEC_PAGESIZE */
|
---|
3394 | # else /* no HAVE_SYS_PARAM_H */
|
---|
3395 | # define getpagesize() 8192 /* punt totally */
|
---|
3396 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
3397 | # endif /* no _SC_PAGESIZE */
|
---|
3398 |
|
---|
3399 | #endif /* no HAVE_GETPAGESIZE */
|
---|
3400 |
|
---|
3401 | #ifdef __cplusplus
|
---|
3402 | extern "C" { void *malloc(unsigned); }
|
---|
3403 | #else
|
---|
3404 | char *malloc();
|
---|
3405 | #endif
|
---|
3406 |
|
---|
3407 | int
|
---|
3408 | main()
|
---|
3409 | {
|
---|
3410 | char *data, *data2, *data3;
|
---|
3411 | int i, pagesize;
|
---|
3412 | int fd;
|
---|
3413 |
|
---|
3414 | pagesize = getpagesize();
|
---|
3415 |
|
---|
3416 | /*
|
---|
3417 | * First, make a file with some known garbage in it.
|
---|
3418 | */
|
---|
3419 | data = malloc(pagesize);
|
---|
3420 | if (!data)
|
---|
3421 | exit(1);
|
---|
3422 | for (i = 0; i < pagesize; ++i)
|
---|
3423 | *(data + i) = rand();
|
---|
3424 | umask(0);
|
---|
3425 | fd = creat("conftestmmap", 0600);
|
---|
3426 | if (fd < 0)
|
---|
3427 | exit(1);
|
---|
3428 | if (write(fd, data, pagesize) != pagesize)
|
---|
3429 | exit(1);
|
---|
3430 | close(fd);
|
---|
3431 |
|
---|
3432 | /*
|
---|
3433 | * Next, try to mmap the file at a fixed address which
|
---|
3434 | * already has something else allocated at it. If we can,
|
---|
3435 | * also make sure that we see the same garbage.
|
---|
3436 | */
|
---|
3437 | fd = open("conftestmmap", O_RDWR);
|
---|
3438 | if (fd < 0)
|
---|
3439 | exit(1);
|
---|
3440 | data2 = malloc(2 * pagesize);
|
---|
3441 | if (!data2)
|
---|
3442 | exit(1);
|
---|
3443 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
3444 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
3445 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
3446 | exit(1);
|
---|
3447 | for (i = 0; i < pagesize; ++i)
|
---|
3448 | if (*(data + i) != *(data2 + i))
|
---|
3449 | exit(1);
|
---|
3450 |
|
---|
3451 | /*
|
---|
3452 | * Finally, make sure that changes to the mapped area
|
---|
3453 | * do not percolate back to the file as seen by read().
|
---|
3454 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
3455 | */
|
---|
3456 | for (i = 0; i < pagesize; ++i)
|
---|
3457 | *(data2 + i) = *(data2 + i) + 1;
|
---|
3458 | data3 = malloc(pagesize);
|
---|
3459 | if (!data3)
|
---|
3460 | exit(1);
|
---|
3461 | if (read(fd, data3, pagesize) != pagesize)
|
---|
3462 | exit(1);
|
---|
3463 | for (i = 0; i < pagesize; ++i)
|
---|
3464 | if (*(data + i) != *(data3 + i))
|
---|
3465 | exit(1);
|
---|
3466 | close(fd);
|
---|
3467 | unlink("conftestmmap");
|
---|
3468 | exit(0);
|
---|
3469 | }
|
---|
3470 |
|
---|
3471 | EOF
|
---|
3472 | if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3473 | then
|
---|
3474 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
3475 | else
|
---|
3476 | echo "configure: failed program was:" >&5
|
---|
3477 | cat conftest.$ac_ext >&5
|
---|
3478 | rm -fr conftest*
|
---|
3479 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3480 | fi
|
---|
3481 | rm -fr conftest*
|
---|
3482 | fi
|
---|
3483 |
|
---|
3484 | fi
|
---|
3485 |
|
---|
3486 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
3487 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
3488 | cat >> confdefs.h <<\EOF
|
---|
3489 | #define HAVE_MMAP 1
|
---|
3490 | EOF
|
---|
3491 |
|
---|
3492 | fi
|
---|
3493 |
|
---|
3494 |
|
---|
3495 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
3496 | unistd.h values.h sys/param.h
|
---|
3497 | do
|
---|
3498 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3499 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3500 | echo "configure:3501: checking for $ac_hdr" >&5
|
---|
3501 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3502 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3503 | else
|
---|
3504 | cat > conftest.$ac_ext <<EOF
|
---|
3505 | #line 3506 "configure"
|
---|
3506 | #include "confdefs.h"
|
---|
3507 | #include <$ac_hdr>
|
---|
3508 | EOF
|
---|
3509 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3510 | { (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3511 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3512 | if test -z "$ac_err"; then
|
---|
3513 | rm -rf conftest*
|
---|
3514 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3515 | else
|
---|
3516 | echo "$ac_err" >&5
|
---|
3517 | echo "configure: failed program was:" >&5
|
---|
3518 | cat conftest.$ac_ext >&5
|
---|
3519 | rm -rf conftest*
|
---|
3520 | eval "ac_cv_header_$ac_safe=no"
|
---|
3521 | fi
|
---|
3522 | rm -f conftest*
|
---|
3523 | fi
|
---|
3524 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3525 | echo "$ac_t""yes" 1>&6
|
---|
3526 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3527 | cat >> confdefs.h <<EOF
|
---|
3528 | #define $ac_tr_hdr 1
|
---|
3529 | EOF
|
---|
3530 |
|
---|
3531 | else
|
---|
3532 | echo "$ac_t""no" 1>&6
|
---|
3533 | fi
|
---|
3534 | done
|
---|
3535 |
|
---|
3536 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
3537 | __argz_count __argz_stringify __argz_next
|
---|
3538 | do
|
---|
3539 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3540 | echo "configure:3541: checking for $ac_func" >&5
|
---|
3541 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3542 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3543 | else
|
---|
3544 | cat > conftest.$ac_ext <<EOF
|
---|
3545 | #line 3546 "configure"
|
---|
3546 | #include "confdefs.h"
|
---|
3547 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3548 | which can conflict with char $ac_func(); below. */
|
---|
3549 | #include <assert.h>
|
---|
3550 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3551 | /* We use char because int might match the return type of a gcc2
|
---|
3552 | builtin and then its argument prototype would still apply. */
|
---|
3553 | char $ac_func();
|
---|
3554 |
|
---|
3555 | int main() {
|
---|
3556 |
|
---|
3557 | /* The GNU C library defines this for functions which it implements
|
---|
3558 | to always fail with ENOSYS. Some functions are actually named
|
---|
3559 | something starting with __ and the normal name is an alias. */
|
---|
3560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3561 | choke me
|
---|
3562 | #else
|
---|
3563 | $ac_func();
|
---|
3564 | #endif
|
---|
3565 |
|
---|
3566 | ; return 0; }
|
---|
3567 | EOF
|
---|
3568 | if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3569 | rm -rf conftest*
|
---|
3570 | eval "ac_cv_func_$ac_func=yes"
|
---|
3571 | else
|
---|
3572 | echo "configure: failed program was:" >&5
|
---|
3573 | cat conftest.$ac_ext >&5
|
---|
3574 | rm -rf conftest*
|
---|
3575 | eval "ac_cv_func_$ac_func=no"
|
---|
3576 | fi
|
---|
3577 | rm -f conftest*
|
---|
3578 | fi
|
---|
3579 |
|
---|
3580 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3581 | echo "$ac_t""yes" 1>&6
|
---|
3582 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3583 | cat >> confdefs.h <<EOF
|
---|
3584 | #define $ac_tr_func 1
|
---|
3585 | EOF
|
---|
3586 |
|
---|
3587 | else
|
---|
3588 | echo "$ac_t""no" 1>&6
|
---|
3589 | fi
|
---|
3590 | done
|
---|
3591 |
|
---|
3592 |
|
---|
3593 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
3594 | for ac_func in stpcpy
|
---|
3595 | do
|
---|
3596 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3597 | echo "configure:3598: checking for $ac_func" >&5
|
---|
3598 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3599 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3600 | else
|
---|
3601 | cat > conftest.$ac_ext <<EOF
|
---|
3602 | #line 3603 "configure"
|
---|
3603 | #include "confdefs.h"
|
---|
3604 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3605 | which can conflict with char $ac_func(); below. */
|
---|
3606 | #include <assert.h>
|
---|
3607 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3608 | /* We use char because int might match the return type of a gcc2
|
---|
3609 | builtin and then its argument prototype would still apply. */
|
---|
3610 | char $ac_func();
|
---|
3611 |
|
---|
3612 | int main() {
|
---|
3613 |
|
---|
3614 | /* The GNU C library defines this for functions which it implements
|
---|
3615 | to always fail with ENOSYS. Some functions are actually named
|
---|
3616 | something starting with __ and the normal name is an alias. */
|
---|
3617 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3618 | choke me
|
---|
3619 | #else
|
---|
3620 | $ac_func();
|
---|
3621 | #endif
|
---|
3622 |
|
---|
3623 | ; return 0; }
|
---|
3624 | EOF
|
---|
3625 | if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3626 | rm -rf conftest*
|
---|
3627 | eval "ac_cv_func_$ac_func=yes"
|
---|
3628 | else
|
---|
3629 | echo "configure: failed program was:" >&5
|
---|
3630 | cat conftest.$ac_ext >&5
|
---|
3631 | rm -rf conftest*
|
---|
3632 | eval "ac_cv_func_$ac_func=no"
|
---|
3633 | fi
|
---|
3634 | rm -f conftest*
|
---|
3635 | fi
|
---|
3636 |
|
---|
3637 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3638 | echo "$ac_t""yes" 1>&6
|
---|
3639 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3640 | cat >> confdefs.h <<EOF
|
---|
3641 | #define $ac_tr_func 1
|
---|
3642 | EOF
|
---|
3643 |
|
---|
3644 | else
|
---|
3645 | echo "$ac_t""no" 1>&6
|
---|
3646 | fi
|
---|
3647 | done
|
---|
3648 |
|
---|
3649 | fi
|
---|
3650 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
3651 | cat >> confdefs.h <<\EOF
|
---|
3652 | #define HAVE_STPCPY 1
|
---|
3653 | EOF
|
---|
3654 |
|
---|
3655 | fi
|
---|
3656 |
|
---|
3657 | if test $ac_cv_header_locale_h = yes; then
|
---|
3658 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
3659 | echo "configure:3660: checking for LC_MESSAGES" >&5
|
---|
3660 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
3661 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3662 | else
|
---|
3663 | cat > conftest.$ac_ext <<EOF
|
---|
3664 | #line 3665 "configure"
|
---|
3665 | #include "confdefs.h"
|
---|
3666 | #include <locale.h>
|
---|
3667 | int main() {
|
---|
3668 | return LC_MESSAGES
|
---|
3669 | ; return 0; }
|
---|
3670 | EOF
|
---|
3671 | if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3672 | rm -rf conftest*
|
---|
3673 | am_cv_val_LC_MESSAGES=yes
|
---|
3674 | else
|
---|
3675 | echo "configure: failed program was:" >&5
|
---|
3676 | cat conftest.$ac_ext >&5
|
---|
3677 | rm -rf conftest*
|
---|
3678 | am_cv_val_LC_MESSAGES=no
|
---|
3679 | fi
|
---|
3680 | rm -f conftest*
|
---|
3681 | fi
|
---|
3682 |
|
---|
3683 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
3684 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
3685 | cat >> confdefs.h <<\EOF
|
---|
3686 | #define HAVE_LC_MESSAGES 1
|
---|
3687 | EOF
|
---|
3688 |
|
---|
3689 | fi
|
---|
3690 | fi
|
---|
3691 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
3692 | echo "configure:3693: checking whether NLS is requested" >&5
|
---|
3693 | # Check whether --enable-nls or --disable-nls was given.
|
---|
3694 | if test "${enable_nls+set}" = set; then
|
---|
3695 | enableval="$enable_nls"
|
---|
3696 | USE_NLS=$enableval
|
---|
3697 | else
|
---|
3698 | USE_NLS=yes
|
---|
3699 | fi
|
---|
3700 |
|
---|
3701 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
3702 |
|
---|
3703 |
|
---|
3704 | USE_INCLUDED_LIBINTL=no
|
---|
3705 |
|
---|
3706 | if test "$USE_NLS" = "yes"; then
|
---|
3707 | cat >> confdefs.h <<\EOF
|
---|
3708 | #define ENABLE_NLS 1
|
---|
3709 | EOF
|
---|
3710 |
|
---|
3711 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
3712 | echo "configure:3713: checking whether included gettext is requested" >&5
|
---|
3713 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
3714 | if test "${with_included_gettext+set}" = set; then
|
---|
3715 | withval="$with_included_gettext"
|
---|
3716 | nls_cv_force_use_gnu_gettext=$withval
|
---|
3717 | else
|
---|
3718 | nls_cv_force_use_gnu_gettext=no
|
---|
3719 | fi
|
---|
3720 |
|
---|
3721 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
3722 |
|
---|
3723 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
3724 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
3725 | nls_cv_header_intl=
|
---|
3726 | nls_cv_header_libgt=
|
---|
3727 | CATOBJEXT=NONE
|
---|
3728 |
|
---|
3729 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
3730 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
3731 | echo "configure:3732: checking for libintl.h" >&5
|
---|
3732 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3733 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3734 | else
|
---|
3735 | cat > conftest.$ac_ext <<EOF
|
---|
3736 | #line 3737 "configure"
|
---|
3737 | #include "confdefs.h"
|
---|
3738 | #include <libintl.h>
|
---|
3739 | EOF
|
---|
3740 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3741 | { (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3742 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3743 | if test -z "$ac_err"; then
|
---|
3744 | rm -rf conftest*
|
---|
3745 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3746 | else
|
---|
3747 | echo "$ac_err" >&5
|
---|
3748 | echo "configure: failed program was:" >&5
|
---|
3749 | cat conftest.$ac_ext >&5
|
---|
3750 | rm -rf conftest*
|
---|
3751 | eval "ac_cv_header_$ac_safe=no"
|
---|
3752 | fi
|
---|
3753 | rm -f conftest*
|
---|
3754 | fi
|
---|
3755 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3756 | echo "$ac_t""yes" 1>&6
|
---|
3757 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
3758 | echo "configure:3759: checking for gettext in libc" >&5
|
---|
3759 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
3760 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3761 | else
|
---|
3762 | cat > conftest.$ac_ext <<EOF
|
---|
3763 | #line 3764 "configure"
|
---|
3764 | #include "confdefs.h"
|
---|
3765 | #include <libintl.h>
|
---|
3766 | int main() {
|
---|
3767 | return (int) gettext ("")
|
---|
3768 | ; return 0; }
|
---|
3769 | EOF
|
---|
3770 | if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3771 | rm -rf conftest*
|
---|
3772 | gt_cv_func_gettext_libc=yes
|
---|
3773 | else
|
---|
3774 | echo "configure: failed program was:" >&5
|
---|
3775 | cat conftest.$ac_ext >&5
|
---|
3776 | rm -rf conftest*
|
---|
3777 | gt_cv_func_gettext_libc=no
|
---|
3778 | fi
|
---|
3779 | rm -f conftest*
|
---|
3780 | fi
|
---|
3781 |
|
---|
3782 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
3783 |
|
---|
3784 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
3785 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
3786 | echo "configure:3787: checking for bindtextdomain in -lintl" >&5
|
---|
3787 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
3788 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3789 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3790 | else
|
---|
3791 | ac_save_LIBS="$LIBS"
|
---|
3792 | LIBS="-lintl $LIBS"
|
---|
3793 | cat > conftest.$ac_ext <<EOF
|
---|
3794 | #line 3795 "configure"
|
---|
3795 | #include "confdefs.h"
|
---|
3796 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3797 | /* We use char because int might match the return type of a gcc2
|
---|
3798 | builtin and then its argument prototype would still apply. */
|
---|
3799 | char bindtextdomain();
|
---|
3800 |
|
---|
3801 | int main() {
|
---|
3802 | bindtextdomain()
|
---|
3803 | ; return 0; }
|
---|
3804 | EOF
|
---|
3805 | if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3806 | rm -rf conftest*
|
---|
3807 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3808 | else
|
---|
3809 | echo "configure: failed program was:" >&5
|
---|
3810 | cat conftest.$ac_ext >&5
|
---|
3811 | rm -rf conftest*
|
---|
3812 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3813 | fi
|
---|
3814 | rm -f conftest*
|
---|
3815 | LIBS="$ac_save_LIBS"
|
---|
3816 |
|
---|
3817 | fi
|
---|
3818 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3819 | echo "$ac_t""yes" 1>&6
|
---|
3820 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
3821 | echo "configure:3822: checking for gettext in libintl" >&5
|
---|
3822 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
3823 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3824 | else
|
---|
3825 | cat > conftest.$ac_ext <<EOF
|
---|
3826 | #line 3827 "configure"
|
---|
3827 | #include "confdefs.h"
|
---|
3828 |
|
---|
3829 | int main() {
|
---|
3830 | return (int) gettext ("")
|
---|
3831 | ; return 0; }
|
---|
3832 | EOF
|
---|
3833 | if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3834 | rm -rf conftest*
|
---|
3835 | gt_cv_func_gettext_libintl=yes
|
---|
3836 | else
|
---|
3837 | echo "configure: failed program was:" >&5
|
---|
3838 | cat conftest.$ac_ext >&5
|
---|
3839 | rm -rf conftest*
|
---|
3840 | gt_cv_func_gettext_libintl=no
|
---|
3841 | fi
|
---|
3842 | rm -f conftest*
|
---|
3843 | fi
|
---|
3844 |
|
---|
3845 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
3846 | else
|
---|
3847 | echo "$ac_t""no" 1>&6
|
---|
3848 | fi
|
---|
3849 |
|
---|
3850 | fi
|
---|
3851 |
|
---|
3852 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
3853 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
3854 | cat >> confdefs.h <<\EOF
|
---|
3855 | #define HAVE_GETTEXT 1
|
---|
3856 | EOF
|
---|
3857 |
|
---|
3858 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3859 | set dummy msgfmt; ac_word=$2
|
---|
3860 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3861 | echo "configure:3862: checking for $ac_word" >&5
|
---|
3862 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
3863 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3864 | else
|
---|
3865 | case "$MSGFMT" in
|
---|
3866 | /*)
|
---|
3867 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
3868 | ;;
|
---|
3869 | *)
|
---|
3870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
3871 | for ac_dir in $PATH; do
|
---|
3872 | test -z "$ac_dir" && ac_dir=.
|
---|
3873 | if test -f $ac_dir/$ac_word; then
|
---|
3874 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
3875 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
3876 | break
|
---|
3877 | fi
|
---|
3878 | fi
|
---|
3879 | done
|
---|
3880 | IFS="$ac_save_ifs"
|
---|
3881 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
3882 | ;;
|
---|
3883 | esac
|
---|
3884 | fi
|
---|
3885 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
3886 | if test -n "$MSGFMT"; then
|
---|
3887 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
3888 | else
|
---|
3889 | echo "$ac_t""no" 1>&6
|
---|
3890 | fi
|
---|
3891 | if test "$MSGFMT" != "no"; then
|
---|
3892 | for ac_func in dcgettext
|
---|
3893 | do
|
---|
3894 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3895 | echo "configure:3896: checking for $ac_func" >&5
|
---|
3896 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3897 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3898 | else
|
---|
3899 | cat > conftest.$ac_ext <<EOF
|
---|
3900 | #line 3901 "configure"
|
---|
3901 | #include "confdefs.h"
|
---|
3902 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3903 | which can conflict with char $ac_func(); below. */
|
---|
3904 | #include <assert.h>
|
---|
3905 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3906 | /* We use char because int might match the return type of a gcc2
|
---|
3907 | builtin and then its argument prototype would still apply. */
|
---|
3908 | char $ac_func();
|
---|
3909 |
|
---|
3910 | int main() {
|
---|
3911 |
|
---|
3912 | /* The GNU C library defines this for functions which it implements
|
---|
3913 | to always fail with ENOSYS. Some functions are actually named
|
---|
3914 | something starting with __ and the normal name is an alias. */
|
---|
3915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3916 | choke me
|
---|
3917 | #else
|
---|
3918 | $ac_func();
|
---|
3919 | #endif
|
---|
3920 |
|
---|
3921 | ; return 0; }
|
---|
3922 | EOF
|
---|
3923 | if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3924 | rm -rf conftest*
|
---|
3925 | eval "ac_cv_func_$ac_func=yes"
|
---|
3926 | else
|
---|
3927 | echo "configure: failed program was:" >&5
|
---|
3928 | cat conftest.$ac_ext >&5
|
---|
3929 | rm -rf conftest*
|
---|
3930 | eval "ac_cv_func_$ac_func=no"
|
---|
3931 | fi
|
---|
3932 | rm -f conftest*
|
---|
3933 | fi
|
---|
3934 |
|
---|
3935 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3936 | echo "$ac_t""yes" 1>&6
|
---|
3937 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3938 | cat >> confdefs.h <<EOF
|
---|
3939 | #define $ac_tr_func 1
|
---|
3940 | EOF
|
---|
3941 |
|
---|
3942 | else
|
---|
3943 | echo "$ac_t""no" 1>&6
|
---|
3944 | fi
|
---|
3945 | done
|
---|
3946 |
|
---|
3947 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
3948 | set dummy gmsgfmt; ac_word=$2
|
---|
3949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3950 | echo "configure:3951: checking for $ac_word" >&5
|
---|
3951 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
3952 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3953 | else
|
---|
3954 | case "$GMSGFMT" in
|
---|
3955 | /*)
|
---|
3956 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
3957 | ;;
|
---|
3958 | ?:/*)
|
---|
3959 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
3960 | ;;
|
---|
3961 | *)
|
---|
3962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
3963 | ac_dummy="$PATH"
|
---|
3964 | for ac_dir in $ac_dummy; do
|
---|
3965 | test -z "$ac_dir" && ac_dir=.
|
---|
3966 | if test -f $ac_dir/$ac_word; then
|
---|
3967 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
3968 | break
|
---|
3969 | fi
|
---|
3970 | done
|
---|
3971 | IFS="$ac_save_ifs"
|
---|
3972 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
3973 | ;;
|
---|
3974 | esac
|
---|
3975 | fi
|
---|
3976 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
3977 | if test -n "$GMSGFMT"; then
|
---|
3978 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
3979 | else
|
---|
3980 | echo "$ac_t""no" 1>&6
|
---|
3981 | fi
|
---|
3982 |
|
---|
3983 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
3984 | set dummy xgettext; ac_word=$2
|
---|
3985 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3986 | echo "configure:3987: checking for $ac_word" >&5
|
---|
3987 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
3988 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3989 | else
|
---|
3990 | case "$XGETTEXT" in
|
---|
3991 | /*)
|
---|
3992 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
3993 | ;;
|
---|
3994 | *)
|
---|
3995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
3996 | for ac_dir in $PATH; do
|
---|
3997 | test -z "$ac_dir" && ac_dir=.
|
---|
3998 | if test -f $ac_dir/$ac_word; then
|
---|
3999 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4000 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4001 | break
|
---|
4002 | fi
|
---|
4003 | fi
|
---|
4004 | done
|
---|
4005 | IFS="$ac_save_ifs"
|
---|
4006 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4007 | ;;
|
---|
4008 | esac
|
---|
4009 | fi
|
---|
4010 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4011 | if test -n "$XGETTEXT"; then
|
---|
4012 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4013 | else
|
---|
4014 | echo "$ac_t""no" 1>&6
|
---|
4015 | fi
|
---|
4016 |
|
---|
4017 | cat > conftest.$ac_ext <<EOF
|
---|
4018 | #line 4019 "configure"
|
---|
4019 | #include "confdefs.h"
|
---|
4020 |
|
---|
4021 | int main() {
|
---|
4022 | extern int _nl_msg_cat_cntr;
|
---|
4023 | return _nl_msg_cat_cntr
|
---|
4024 | ; return 0; }
|
---|
4025 | EOF
|
---|
4026 | if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4027 | rm -rf conftest*
|
---|
4028 | CATOBJEXT=.gmo
|
---|
4029 | DATADIRNAME=share
|
---|
4030 | else
|
---|
4031 | echo "configure: failed program was:" >&5
|
---|
4032 | cat conftest.$ac_ext >&5
|
---|
4033 | rm -rf conftest*
|
---|
4034 | CATOBJEXT=.mo
|
---|
4035 | DATADIRNAME=lib
|
---|
4036 | fi
|
---|
4037 | rm -f conftest*
|
---|
4038 | INSTOBJEXT=.mo
|
---|
4039 | fi
|
---|
4040 | fi
|
---|
4041 |
|
---|
4042 | else
|
---|
4043 | echo "$ac_t""no" 1>&6
|
---|
4044 | fi
|
---|
4045 |
|
---|
4046 |
|
---|
4047 |
|
---|
4048 | if test "$CATOBJEXT" = "NONE"; then
|
---|
4049 | nls_cv_use_gnu_gettext=yes
|
---|
4050 | fi
|
---|
4051 | fi
|
---|
4052 |
|
---|
4053 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
4054 | INTLOBJS="\$(GETTOBJS)"
|
---|
4055 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4056 | set dummy msgfmt; ac_word=$2
|
---|
4057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4058 | echo "configure:4059: checking for $ac_word" >&5
|
---|
4059 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4060 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4061 | else
|
---|
4062 | case "$MSGFMT" in
|
---|
4063 | /*)
|
---|
4064 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4065 | ;;
|
---|
4066 | *)
|
---|
4067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
4068 | for ac_dir in $PATH; do
|
---|
4069 | test -z "$ac_dir" && ac_dir=.
|
---|
4070 | if test -f $ac_dir/$ac_word; then
|
---|
4071 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4072 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4073 | break
|
---|
4074 | fi
|
---|
4075 | fi
|
---|
4076 | done
|
---|
4077 | IFS="$ac_save_ifs"
|
---|
4078 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
4079 | ;;
|
---|
4080 | esac
|
---|
4081 | fi
|
---|
4082 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4083 | if test -n "$MSGFMT"; then
|
---|
4084 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4085 | else
|
---|
4086 | echo "$ac_t""no" 1>&6
|
---|
4087 | fi
|
---|
4088 |
|
---|
4089 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4090 | set dummy gmsgfmt; ac_word=$2
|
---|
4091 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4092 | echo "configure:4093: checking for $ac_word" >&5
|
---|
4093 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4094 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4095 | else
|
---|
4096 | case "$GMSGFMT" in
|
---|
4097 | /*)
|
---|
4098 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4099 | ;;
|
---|
4100 | ?:/*)
|
---|
4101 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4102 | ;;
|
---|
4103 | *)
|
---|
4104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
4105 | ac_dummy="$PATH"
|
---|
4106 | for ac_dir in $ac_dummy; do
|
---|
4107 | test -z "$ac_dir" && ac_dir=.
|
---|
4108 | if test -f $ac_dir/$ac_word; then
|
---|
4109 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4110 | break
|
---|
4111 | fi
|
---|
4112 | done
|
---|
4113 | IFS="$ac_save_ifs"
|
---|
4114 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4115 | ;;
|
---|
4116 | esac
|
---|
4117 | fi
|
---|
4118 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4119 | if test -n "$GMSGFMT"; then
|
---|
4120 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4121 | else
|
---|
4122 | echo "$ac_t""no" 1>&6
|
---|
4123 | fi
|
---|
4124 |
|
---|
4125 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4126 | set dummy xgettext; ac_word=$2
|
---|
4127 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4128 | echo "configure:4129: checking for $ac_word" >&5
|
---|
4129 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4130 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4131 | else
|
---|
4132 | case "$XGETTEXT" in
|
---|
4133 | /*)
|
---|
4134 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4135 | ;;
|
---|
4136 | *)
|
---|
4137 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
4138 | for ac_dir in $PATH; do
|
---|
4139 | test -z "$ac_dir" && ac_dir=.
|
---|
4140 | if test -f $ac_dir/$ac_word; then
|
---|
4141 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4142 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4143 | break
|
---|
4144 | fi
|
---|
4145 | fi
|
---|
4146 | done
|
---|
4147 | IFS="$ac_save_ifs"
|
---|
4148 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4149 | ;;
|
---|
4150 | esac
|
---|
4151 | fi
|
---|
4152 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4153 | if test -n "$XGETTEXT"; then
|
---|
4154 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4155 | else
|
---|
4156 | echo "$ac_t""no" 1>&6
|
---|
4157 | fi
|
---|
4158 |
|
---|
4159 |
|
---|
4160 | USE_INCLUDED_LIBINTL=yes
|
---|
4161 | CATOBJEXT=.gmo
|
---|
4162 | INSTOBJEXT=.mo
|
---|
4163 | DATADIRNAME=share
|
---|
4164 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
4165 | INTLLIBS=$INTLDEPS
|
---|
4166 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
4167 | nls_cv_header_intl=libintl.h
|
---|
4168 | nls_cv_header_libgt=libgettext.h
|
---|
4169 | fi
|
---|
4170 |
|
---|
4171 | if test "$XGETTEXT" != ":"; then
|
---|
4172 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
4173 | : ;
|
---|
4174 | else
|
---|
4175 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
4176 | XGETTEXT=":"
|
---|
4177 | fi
|
---|
4178 | fi
|
---|
4179 |
|
---|
4180 | # We need to process the po/ directory.
|
---|
4181 | POSUB=po
|
---|
4182 | else
|
---|
4183 | DATADIRNAME=share
|
---|
4184 | nls_cv_header_intl=libintl.h
|
---|
4185 | nls_cv_header_libgt=libgettext.h
|
---|
4186 | fi
|
---|
4187 |
|
---|
4188 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
4189 | # because some of the sources are only built for this goal.
|
---|
4190 | if test "$PACKAGE" = gettext; then
|
---|
4191 | USE_NLS=yes
|
---|
4192 | USE_INCLUDED_LIBINTL=yes
|
---|
4193 | fi
|
---|
4194 |
|
---|
4195 | for lang in $ALL_LINGUAS; do
|
---|
4196 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
4197 | POFILES="$POFILES $lang.po"
|
---|
4198 | done
|
---|
4199 |
|
---|
4200 |
|
---|
4201 |
|
---|
4202 |
|
---|
4203 |
|
---|
4204 |
|
---|
4205 |
|
---|
4206 |
|
---|
4207 |
|
---|
4208 |
|
---|
4209 |
|
---|
4210 |
|
---|
4211 |
|
---|
4212 |
|
---|
4213 | if test "x$CATOBJEXT" != "x"; then
|
---|
4214 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
4215 | LINGUAS=
|
---|
4216 | else
|
---|
4217 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
4218 | echo "configure:4219: checking for catalogs to be installed" >&5
|
---|
4219 | NEW_LINGUAS=
|
---|
4220 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
4221 | case "$ALL_LINGUAS" in
|
---|
4222 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
4223 | esac
|
---|
4224 | done
|
---|
4225 | LINGUAS=$NEW_LINGUAS
|
---|
4226 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
4227 | fi
|
---|
4228 |
|
---|
4229 | if test -n "$LINGUAS"; then
|
---|
4230 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
4231 | fi
|
---|
4232 | fi
|
---|
4233 |
|
---|
4234 | if test $ac_cv_header_locale_h = yes; then
|
---|
4235 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
4236 | else
|
---|
4237 | INCLUDE_LOCALE_H="\
|
---|
4238 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
4239 | fi
|
---|
4240 |
|
---|
4241 |
|
---|
4242 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
4243 | if test "$CATOBJEXT" = ".cat"; then
|
---|
4244 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
4245 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
4246 | echo "configure:4247: checking for linux/version.h" >&5
|
---|
4247 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4248 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4249 | else
|
---|
4250 | cat > conftest.$ac_ext <<EOF
|
---|
4251 | #line 4252 "configure"
|
---|
4252 | #include "confdefs.h"
|
---|
4253 | #include <linux/version.h>
|
---|
4254 | EOF
|
---|
4255 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4256 | { (eval echo configure:4257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4257 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4258 | if test -z "$ac_err"; then
|
---|
4259 | rm -rf conftest*
|
---|
4260 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4261 | else
|
---|
4262 | echo "$ac_err" >&5
|
---|
4263 | echo "configure: failed program was:" >&5
|
---|
4264 | cat conftest.$ac_ext >&5
|
---|
4265 | rm -rf conftest*
|
---|
4266 | eval "ac_cv_header_$ac_safe=no"
|
---|
4267 | fi
|
---|
4268 | rm -f conftest*
|
---|
4269 | fi
|
---|
4270 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4271 | echo "$ac_t""yes" 1>&6
|
---|
4272 | msgformat=linux
|
---|
4273 | else
|
---|
4274 | echo "$ac_t""no" 1>&6
|
---|
4275 | msgformat=xopen
|
---|
4276 | fi
|
---|
4277 |
|
---|
4278 |
|
---|
4279 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
4280 | fi
|
---|
4281 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
4282 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
4283 | fi
|
---|
4284 |
|
---|
4285 | if test "$PACKAGE" = "gettext"; then
|
---|
4286 | GT_NO="#NO#"
|
---|
4287 | GT_YES=
|
---|
4288 | else
|
---|
4289 | GT_NO=
|
---|
4290 | GT_YES="#YES#"
|
---|
4291 | fi
|
---|
4292 |
|
---|
4293 |
|
---|
4294 |
|
---|
4295 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
4296 |
|
---|
4297 |
|
---|
4298 | l=
|
---|
4299 |
|
---|
4300 |
|
---|
4301 | if test -d $srcdir/po; then
|
---|
4302 | test -d po || mkdir po
|
---|
4303 | if test "x$srcdir" != "x."; then
|
---|
4304 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
---|
4305 | posrcprefix="$srcdir/"
|
---|
4306 | else
|
---|
4307 | posrcprefix="../$srcdir/"
|
---|
4308 | fi
|
---|
4309 | else
|
---|
4310 | posrcprefix="../"
|
---|
4311 | fi
|
---|
4312 | rm -f po/POTFILES
|
---|
4313 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
4314 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
4315 | fi
|
---|
4316 |
|
---|
4317 |
|
---|
4318 | # Permit host specific settings.
|
---|
4319 | . ${srcdir}/configure.host
|
---|
4320 |
|
---|
4321 |
|
---|
4322 | # Find a good install program. We prefer a C program (faster),
|
---|
4323 | # so one script is as good as another. But avoid the broken or
|
---|
4324 | # incompatible versions:
|
---|
4325 | # SysV /etc/install, /usr/sbin/install
|
---|
4326 | # SunOS /usr/etc/install
|
---|
4327 | # IRIX /sbin/install
|
---|
4328 | # AIX /bin/install
|
---|
4329 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4330 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4331 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4332 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4333 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
4334 | echo "configure:4335: checking for a BSD compatible install" >&5
|
---|
4335 | if test -z "$INSTALL"; then
|
---|
4336 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
4337 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4338 | else
|
---|
4339 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
4340 | for ac_dir in $PATH; do
|
---|
4341 | # Account for people who put trailing slashes in PATH elements.
|
---|
4342 | case "$ac_dir/" in
|
---|
4343 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
4344 | *)
|
---|
4345 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4346 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4347 | # by default.
|
---|
4348 | for ac_prog in ginstall scoinst install; do
|
---|
4349 | if test -f $ac_dir/$ac_prog; then
|
---|
4350 | if test $ac_prog = install &&
|
---|
4351 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
4352 | # AIX install. It has an incompatible calling convention.
|
---|
4353 | :
|
---|
4354 | else
|
---|
4355 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
4356 | break 2
|
---|
4357 | fi
|
---|
4358 | fi
|
---|
4359 | done
|
---|
4360 | ;;
|
---|
4361 | esac
|
---|
4362 | done
|
---|
4363 | IFS="$ac_save_IFS"
|
---|
4364 |
|
---|
4365 | fi
|
---|
4366 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4367 | INSTALL="$ac_cv_path_install"
|
---|
4368 | else
|
---|
4369 | # As a last resort, use the slow shell script. We don't cache a
|
---|
4370 | # path for INSTALL within a source directory, because that will
|
---|
4371 | # break other packages using the cache if that directory is
|
---|
4372 | # removed, or if the path is relative.
|
---|
4373 | INSTALL="$ac_install_sh"
|
---|
4374 | fi
|
---|
4375 | fi
|
---|
4376 | echo "$ac_t""$INSTALL" 1>&6
|
---|
4377 |
|
---|
4378 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4379 | # It thinks the first close brace ends the variable substitution.
|
---|
4380 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4381 |
|
---|
4382 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
4383 |
|
---|
4384 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4385 |
|
---|
4386 |
|
---|
4387 | BFD_HOST_64BIT_LONG=0
|
---|
4388 | BFD_HOST_64_BIT_DEFINED=0
|
---|
4389 | BFD_HOST_64_BIT=
|
---|
4390 | BFD_HOST_U_64_BIT=
|
---|
4391 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then
|
---|
4392 | BFD_HOST_64BIT_LONG=1
|
---|
4393 | elif test "x${HOST_64BIT_TYPE}" != "x"; then
|
---|
4394 | BFD_HOST_64_BIT_DEFINED=1
|
---|
4395 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
|
---|
4396 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
|
---|
4397 | fi
|
---|
4398 |
|
---|
4399 |
|
---|
4400 |
|
---|
4401 |
|
---|
4402 |
|
---|
4403 | # Put a plausible default for CC_FOR_BUILD in Makefile.
|
---|
4404 | if test -z "$CC_FOR_BUILD"; then
|
---|
4405 | if test "x$cross_compiling" = "xno"; then
|
---|
4406 | CC_FOR_BUILD='$(CC)'
|
---|
4407 | else
|
---|
4408 | CC_FOR_BUILD=gcc
|
---|
4409 | fi
|
---|
4410 | fi
|
---|
4411 |
|
---|
4412 | # Also set EXEEXT_FOR_BUILD.
|
---|
4413 | if test "x$cross_compiling" = "xno"; then
|
---|
4414 | EXEEXT_FOR_BUILD='$(EXEEXT)'
|
---|
4415 | else
|
---|
4416 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
|
---|
4417 | echo "configure:4418: checking for build system executable suffix" >&5
|
---|
4418 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
|
---|
4419 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4420 | else
|
---|
4421 | rm -f conftest*
|
---|
4422 | echo 'int main () { return 0; }' > conftest.c
|
---|
4423 | bfd_cv_build_exeext=
|
---|
4424 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
|
---|
4425 | for file in conftest.*; do
|
---|
4426 | case $file in
|
---|
4427 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
---|
4428 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
4429 | esac
|
---|
4430 | done
|
---|
4431 | rm -f conftest*
|
---|
4432 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
|
---|
4433 | fi
|
---|
4434 |
|
---|
4435 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6
|
---|
4436 | EXEEXT_FOR_BUILD=""
|
---|
4437 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
---|
4438 | fi
|
---|
4439 |
|
---|
4440 |
|
---|
4441 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
|
---|
4442 | do
|
---|
4443 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4444 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4445 | echo "configure:4446: checking for $ac_hdr" >&5
|
---|
4446 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4447 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4448 | else
|
---|
4449 | cat > conftest.$ac_ext <<EOF
|
---|
4450 | #line 4451 "configure"
|
---|
4451 | #include "confdefs.h"
|
---|
4452 | #include <$ac_hdr>
|
---|
4453 | EOF
|
---|
4454 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4455 | { (eval echo configure:4456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4456 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4457 | if test -z "$ac_err"; then
|
---|
4458 | rm -rf conftest*
|
---|
4459 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4460 | else
|
---|
4461 | echo "$ac_err" >&5
|
---|
4462 | echo "configure: failed program was:" >&5
|
---|
4463 | cat conftest.$ac_ext >&5
|
---|
4464 | rm -rf conftest*
|
---|
4465 | eval "ac_cv_header_$ac_safe=no"
|
---|
4466 | fi
|
---|
4467 | rm -f conftest*
|
---|
4468 | fi
|
---|
4469 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4470 | echo "$ac_t""yes" 1>&6
|
---|
4471 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4472 | cat >> confdefs.h <<EOF
|
---|
4473 | #define $ac_tr_hdr 1
|
---|
4474 | EOF
|
---|
4475 |
|
---|
4476 | else
|
---|
4477 | echo "$ac_t""no" 1>&6
|
---|
4478 | fi
|
---|
4479 | done
|
---|
4480 |
|
---|
4481 | for ac_hdr in fcntl.h sys/file.h sys/time.h
|
---|
4482 | do
|
---|
4483 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4484 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4485 | echo "configure:4486: checking for $ac_hdr" >&5
|
---|
4486 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4487 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4488 | else
|
---|
4489 | cat > conftest.$ac_ext <<EOF
|
---|
4490 | #line 4491 "configure"
|
---|
4491 | #include "confdefs.h"
|
---|
4492 | #include <$ac_hdr>
|
---|
4493 | EOF
|
---|
4494 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4495 | { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4496 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4497 | if test -z "$ac_err"; then
|
---|
4498 | rm -rf conftest*
|
---|
4499 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4500 | else
|
---|
4501 | echo "$ac_err" >&5
|
---|
4502 | echo "configure: failed program was:" >&5
|
---|
4503 | cat conftest.$ac_ext >&5
|
---|
4504 | rm -rf conftest*
|
---|
4505 | eval "ac_cv_header_$ac_safe=no"
|
---|
4506 | fi
|
---|
4507 | rm -f conftest*
|
---|
4508 | fi
|
---|
4509 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4510 | echo "$ac_t""yes" 1>&6
|
---|
4511 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4512 | cat >> confdefs.h <<EOF
|
---|
4513 | #define $ac_tr_hdr 1
|
---|
4514 | EOF
|
---|
4515 |
|
---|
4516 | else
|
---|
4517 | echo "$ac_t""no" 1>&6
|
---|
4518 | fi
|
---|
4519 | done
|
---|
4520 |
|
---|
4521 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
4522 | echo "configure:4523: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4523 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
4524 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4525 | else
|
---|
4526 | cat > conftest.$ac_ext <<EOF
|
---|
4527 | #line 4528 "configure"
|
---|
4528 | #include "confdefs.h"
|
---|
4529 | #include <sys/types.h>
|
---|
4530 | #include <sys/time.h>
|
---|
4531 | #include <time.h>
|
---|
4532 | int main() {
|
---|
4533 | struct tm *tp;
|
---|
4534 | ; return 0; }
|
---|
4535 | EOF
|
---|
4536 | if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4537 | rm -rf conftest*
|
---|
4538 | ac_cv_header_time=yes
|
---|
4539 | else
|
---|
4540 | echo "configure: failed program was:" >&5
|
---|
4541 | cat conftest.$ac_ext >&5
|
---|
4542 | rm -rf conftest*
|
---|
4543 | ac_cv_header_time=no
|
---|
4544 | fi
|
---|
4545 | rm -f conftest*
|
---|
4546 | fi
|
---|
4547 |
|
---|
4548 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
4549 | if test $ac_cv_header_time = yes; then
|
---|
4550 | cat >> confdefs.h <<\EOF
|
---|
4551 | #define TIME_WITH_SYS_TIME 1
|
---|
4552 | EOF
|
---|
4553 |
|
---|
4554 | fi
|
---|
4555 |
|
---|
4556 | ac_header_dirent=no
|
---|
4557 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
4558 | do
|
---|
4559 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4560 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
4561 | echo "configure:4562: checking for $ac_hdr that defines DIR" >&5
|
---|
4562 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
4563 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4564 | else
|
---|
4565 | cat > conftest.$ac_ext <<EOF
|
---|
4566 | #line 4567 "configure"
|
---|
4567 | #include "confdefs.h"
|
---|
4568 | #include <sys/types.h>
|
---|
4569 | #include <$ac_hdr>
|
---|
4570 | int main() {
|
---|
4571 | DIR *dirp = 0;
|
---|
4572 | ; return 0; }
|
---|
4573 | EOF
|
---|
4574 | if { (eval echo configure:4575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4575 | rm -rf conftest*
|
---|
4576 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
4577 | else
|
---|
4578 | echo "configure: failed program was:" >&5
|
---|
4579 | cat conftest.$ac_ext >&5
|
---|
4580 | rm -rf conftest*
|
---|
4581 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
4582 | fi
|
---|
4583 | rm -f conftest*
|
---|
4584 | fi
|
---|
4585 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
4586 | echo "$ac_t""yes" 1>&6
|
---|
4587 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4588 | cat >> confdefs.h <<EOF
|
---|
4589 | #define $ac_tr_hdr 1
|
---|
4590 | EOF
|
---|
4591 | ac_header_dirent=$ac_hdr; break
|
---|
4592 | else
|
---|
4593 | echo "$ac_t""no" 1>&6
|
---|
4594 | fi
|
---|
4595 | done
|
---|
4596 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4597 | if test $ac_header_dirent = dirent.h; then
|
---|
4598 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
4599 | echo "configure:4600: checking for opendir in -ldir" >&5
|
---|
4600 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4601 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4602 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4603 | else
|
---|
4604 | ac_save_LIBS="$LIBS"
|
---|
4605 | LIBS="-ldir $LIBS"
|
---|
4606 | cat > conftest.$ac_ext <<EOF
|
---|
4607 | #line 4608 "configure"
|
---|
4608 | #include "confdefs.h"
|
---|
4609 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4610 | /* We use char because int might match the return type of a gcc2
|
---|
4611 | builtin and then its argument prototype would still apply. */
|
---|
4612 | char opendir();
|
---|
4613 |
|
---|
4614 | int main() {
|
---|
4615 | opendir()
|
---|
4616 | ; return 0; }
|
---|
4617 | EOF
|
---|
4618 | if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4619 | rm -rf conftest*
|
---|
4620 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4621 | else
|
---|
4622 | echo "configure: failed program was:" >&5
|
---|
4623 | cat conftest.$ac_ext >&5
|
---|
4624 | rm -rf conftest*
|
---|
4625 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4626 | fi
|
---|
4627 | rm -f conftest*
|
---|
4628 | LIBS="$ac_save_LIBS"
|
---|
4629 |
|
---|
4630 | fi
|
---|
4631 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4632 | echo "$ac_t""yes" 1>&6
|
---|
4633 | LIBS="$LIBS -ldir"
|
---|
4634 | else
|
---|
4635 | echo "$ac_t""no" 1>&6
|
---|
4636 | fi
|
---|
4637 |
|
---|
4638 | else
|
---|
4639 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
4640 | echo "configure:4641: checking for opendir in -lx" >&5
|
---|
4641 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4642 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4643 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4644 | else
|
---|
4645 | ac_save_LIBS="$LIBS"
|
---|
4646 | LIBS="-lx $LIBS"
|
---|
4647 | cat > conftest.$ac_ext <<EOF
|
---|
4648 | #line 4649 "configure"
|
---|
4649 | #include "confdefs.h"
|
---|
4650 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4651 | /* We use char because int might match the return type of a gcc2
|
---|
4652 | builtin and then its argument prototype would still apply. */
|
---|
4653 | char opendir();
|
---|
4654 |
|
---|
4655 | int main() {
|
---|
4656 | opendir()
|
---|
4657 | ; return 0; }
|
---|
4658 | EOF
|
---|
4659 | if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4660 | rm -rf conftest*
|
---|
4661 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4662 | else
|
---|
4663 | echo "configure: failed program was:" >&5
|
---|
4664 | cat conftest.$ac_ext >&5
|
---|
4665 | rm -rf conftest*
|
---|
4666 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4667 | fi
|
---|
4668 | rm -f conftest*
|
---|
4669 | LIBS="$ac_save_LIBS"
|
---|
4670 |
|
---|
4671 | fi
|
---|
4672 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4673 | echo "$ac_t""yes" 1>&6
|
---|
4674 | LIBS="$LIBS -lx"
|
---|
4675 | else
|
---|
4676 | echo "$ac_t""no" 1>&6
|
---|
4677 | fi
|
---|
4678 |
|
---|
4679 | fi
|
---|
4680 |
|
---|
4681 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
|
---|
4682 | do
|
---|
4683 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4684 | echo "configure:4685: checking for $ac_func" >&5
|
---|
4685 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4686 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4687 | else
|
---|
4688 | cat > conftest.$ac_ext <<EOF
|
---|
4689 | #line 4690 "configure"
|
---|
4690 | #include "confdefs.h"
|
---|
4691 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4692 | which can conflict with char $ac_func(); below. */
|
---|
4693 | #include <assert.h>
|
---|
4694 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4695 | /* We use char because int might match the return type of a gcc2
|
---|
4696 | builtin and then its argument prototype would still apply. */
|
---|
4697 | char $ac_func();
|
---|
4698 |
|
---|
4699 | int main() {
|
---|
4700 |
|
---|
4701 | /* The GNU C library defines this for functions which it implements
|
---|
4702 | to always fail with ENOSYS. Some functions are actually named
|
---|
4703 | something starting with __ and the normal name is an alias. */
|
---|
4704 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4705 | choke me
|
---|
4706 | #else
|
---|
4707 | $ac_func();
|
---|
4708 | #endif
|
---|
4709 |
|
---|
4710 | ; return 0; }
|
---|
4711 | EOF
|
---|
4712 | if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4713 | rm -rf conftest*
|
---|
4714 | eval "ac_cv_func_$ac_func=yes"
|
---|
4715 | else
|
---|
4716 | echo "configure: failed program was:" >&5
|
---|
4717 | cat conftest.$ac_ext >&5
|
---|
4718 | rm -rf conftest*
|
---|
4719 | eval "ac_cv_func_$ac_func=no"
|
---|
4720 | fi
|
---|
4721 | rm -f conftest*
|
---|
4722 | fi
|
---|
4723 |
|
---|
4724 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4725 | echo "$ac_t""yes" 1>&6
|
---|
4726 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4727 | cat >> confdefs.h <<EOF
|
---|
4728 | #define $ac_tr_func 1
|
---|
4729 | EOF
|
---|
4730 |
|
---|
4731 | else
|
---|
4732 | echo "$ac_t""no" 1>&6
|
---|
4733 | fi
|
---|
4734 | done
|
---|
4735 |
|
---|
4736 |
|
---|
4737 |
|
---|
4738 | case "${host}" in
|
---|
4739 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
|
---|
4740 | cat >> confdefs.h <<\EOF
|
---|
4741 | #define USE_BINARY_FOPEN 1
|
---|
4742 | EOF
|
---|
4743 | ;;
|
---|
4744 | esac
|
---|
4745 |
|
---|
4746 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
---|
4747 | echo "configure:4748: checking whether strstr must be declared" >&5
|
---|
4748 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
---|
4749 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4750 | else
|
---|
4751 | cat > conftest.$ac_ext <<EOF
|
---|
4752 | #line 4753 "configure"
|
---|
4753 | #include "confdefs.h"
|
---|
4754 |
|
---|
4755 | #include <stdio.h>
|
---|
4756 | #ifdef HAVE_STRING_H
|
---|
4757 | #include <string.h>
|
---|
4758 | #else
|
---|
4759 | #ifdef HAVE_STRINGS_H
|
---|
4760 | #include <strings.h>
|
---|
4761 | #endif
|
---|
4762 | #endif
|
---|
4763 | #ifdef HAVE_STDLIB_H
|
---|
4764 | #include <stdlib.h>
|
---|
4765 | #endif
|
---|
4766 | #ifdef HAVE_UNISTD_H
|
---|
4767 | #include <unistd.h>
|
---|
4768 | #endif
|
---|
4769 | int main() {
|
---|
4770 | char *(*pfn) = (char *(*)) strstr
|
---|
4771 | ; return 0; }
|
---|
4772 | EOF
|
---|
4773 | if { (eval echo configure:4774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4774 | rm -rf conftest*
|
---|
4775 | bfd_cv_decl_needed_strstr=no
|
---|
4776 | else
|
---|
4777 | echo "configure: failed program was:" >&5
|
---|
4778 | cat conftest.$ac_ext >&5
|
---|
4779 | rm -rf conftest*
|
---|
4780 | bfd_cv_decl_needed_strstr=yes
|
---|
4781 | fi
|
---|
4782 | rm -f conftest*
|
---|
4783 | fi
|
---|
4784 |
|
---|
4785 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
---|
4786 | if test $bfd_cv_decl_needed_strstr = yes; then
|
---|
4787 | cat >> confdefs.h <<\EOF
|
---|
4788 | #define NEED_DECLARATION_STRSTR 1
|
---|
4789 | EOF
|
---|
4790 |
|
---|
4791 | fi
|
---|
4792 |
|
---|
4793 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
---|
4794 | echo "configure:4795: checking whether malloc must be declared" >&5
|
---|
4795 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
---|
4796 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4797 | else
|
---|
4798 | cat > conftest.$ac_ext <<EOF
|
---|
4799 | #line 4800 "configure"
|
---|
4800 | #include "confdefs.h"
|
---|
4801 |
|
---|
4802 | #include <stdio.h>
|
---|
4803 | #ifdef HAVE_STRING_H
|
---|
4804 | #include <string.h>
|
---|
4805 | #else
|
---|
4806 | #ifdef HAVE_STRINGS_H
|
---|
4807 | #include <strings.h>
|
---|
4808 | #endif
|
---|
4809 | #endif
|
---|
4810 | #ifdef HAVE_STDLIB_H
|
---|
4811 | #include <stdlib.h>
|
---|
4812 | #endif
|
---|
4813 | #ifdef HAVE_UNISTD_H
|
---|
4814 | #include <unistd.h>
|
---|
4815 | #endif
|
---|
4816 | int main() {
|
---|
4817 | char *(*pfn) = (char *(*)) malloc
|
---|
4818 | ; return 0; }
|
---|
4819 | EOF
|
---|
4820 | if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4821 | rm -rf conftest*
|
---|
4822 | bfd_cv_decl_needed_malloc=no
|
---|
4823 | else
|
---|
4824 | echo "configure: failed program was:" >&5
|
---|
4825 | cat conftest.$ac_ext >&5
|
---|
4826 | rm -rf conftest*
|
---|
4827 | bfd_cv_decl_needed_malloc=yes
|
---|
4828 | fi
|
---|
4829 | rm -f conftest*
|
---|
4830 | fi
|
---|
4831 |
|
---|
4832 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
---|
4833 | if test $bfd_cv_decl_needed_malloc = yes; then
|
---|
4834 | cat >> confdefs.h <<\EOF
|
---|
4835 | #define NEED_DECLARATION_MALLOC 1
|
---|
4836 | EOF
|
---|
4837 |
|
---|
4838 | fi
|
---|
4839 |
|
---|
4840 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
---|
4841 | echo "configure:4842: checking whether realloc must be declared" >&5
|
---|
4842 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
---|
4843 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4844 | else
|
---|
4845 | cat > conftest.$ac_ext <<EOF
|
---|
4846 | #line 4847 "configure"
|
---|
4847 | #include "confdefs.h"
|
---|
4848 |
|
---|
4849 | #include <stdio.h>
|
---|
4850 | #ifdef HAVE_STRING_H
|
---|
4851 | #include <string.h>
|
---|
4852 | #else
|
---|
4853 | #ifdef HAVE_STRINGS_H
|
---|
4854 | #include <strings.h>
|
---|
4855 | #endif
|
---|
4856 | #endif
|
---|
4857 | #ifdef HAVE_STDLIB_H
|
---|
4858 | #include <stdlib.h>
|
---|
4859 | #endif
|
---|
4860 | #ifdef HAVE_UNISTD_H
|
---|
4861 | #include <unistd.h>
|
---|
4862 | #endif
|
---|
4863 | int main() {
|
---|
4864 | char *(*pfn) = (char *(*)) realloc
|
---|
4865 | ; return 0; }
|
---|
4866 | EOF
|
---|
4867 | if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4868 | rm -rf conftest*
|
---|
4869 | bfd_cv_decl_needed_realloc=no
|
---|
4870 | else
|
---|
4871 | echo "configure: failed program was:" >&5
|
---|
4872 | cat conftest.$ac_ext >&5
|
---|
4873 | rm -rf conftest*
|
---|
4874 | bfd_cv_decl_needed_realloc=yes
|
---|
4875 | fi
|
---|
4876 | rm -f conftest*
|
---|
4877 | fi
|
---|
4878 |
|
---|
4879 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
---|
4880 | if test $bfd_cv_decl_needed_realloc = yes; then
|
---|
4881 | cat >> confdefs.h <<\EOF
|
---|
4882 | #define NEED_DECLARATION_REALLOC 1
|
---|
4883 | EOF
|
---|
4884 |
|
---|
4885 | fi
|
---|
4886 |
|
---|
4887 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
---|
4888 | echo "configure:4889: checking whether free must be declared" >&5
|
---|
4889 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
---|
4890 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4891 | else
|
---|
4892 | cat > conftest.$ac_ext <<EOF
|
---|
4893 | #line 4894 "configure"
|
---|
4894 | #include "confdefs.h"
|
---|
4895 |
|
---|
4896 | #include <stdio.h>
|
---|
4897 | #ifdef HAVE_STRING_H
|
---|
4898 | #include <string.h>
|
---|
4899 | #else
|
---|
4900 | #ifdef HAVE_STRINGS_H
|
---|
4901 | #include <strings.h>
|
---|
4902 | #endif
|
---|
4903 | #endif
|
---|
4904 | #ifdef HAVE_STDLIB_H
|
---|
4905 | #include <stdlib.h>
|
---|
4906 | #endif
|
---|
4907 | #ifdef HAVE_UNISTD_H
|
---|
4908 | #include <unistd.h>
|
---|
4909 | #endif
|
---|
4910 | int main() {
|
---|
4911 | char *(*pfn) = (char *(*)) free
|
---|
4912 | ; return 0; }
|
---|
4913 | EOF
|
---|
4914 | if { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4915 | rm -rf conftest*
|
---|
4916 | bfd_cv_decl_needed_free=no
|
---|
4917 | else
|
---|
4918 | echo "configure: failed program was:" >&5
|
---|
4919 | cat conftest.$ac_ext >&5
|
---|
4920 | rm -rf conftest*
|
---|
4921 | bfd_cv_decl_needed_free=yes
|
---|
4922 | fi
|
---|
4923 | rm -f conftest*
|
---|
4924 | fi
|
---|
4925 |
|
---|
4926 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
---|
4927 | if test $bfd_cv_decl_needed_free = yes; then
|
---|
4928 | cat >> confdefs.h <<\EOF
|
---|
4929 | #define NEED_DECLARATION_FREE 1
|
---|
4930 | EOF
|
---|
4931 |
|
---|
4932 | fi
|
---|
4933 |
|
---|
4934 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
|
---|
4935 | echo "configure:4936: checking whether getenv must be declared" >&5
|
---|
4936 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
|
---|
4937 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4938 | else
|
---|
4939 | cat > conftest.$ac_ext <<EOF
|
---|
4940 | #line 4941 "configure"
|
---|
4941 | #include "confdefs.h"
|
---|
4942 |
|
---|
4943 | #include <stdio.h>
|
---|
4944 | #ifdef HAVE_STRING_H
|
---|
4945 | #include <string.h>
|
---|
4946 | #else
|
---|
4947 | #ifdef HAVE_STRINGS_H
|
---|
4948 | #include <strings.h>
|
---|
4949 | #endif
|
---|
4950 | #endif
|
---|
4951 | #ifdef HAVE_STDLIB_H
|
---|
4952 | #include <stdlib.h>
|
---|
4953 | #endif
|
---|
4954 | #ifdef HAVE_UNISTD_H
|
---|
4955 | #include <unistd.h>
|
---|
4956 | #endif
|
---|
4957 | int main() {
|
---|
4958 | char *(*pfn) = (char *(*)) getenv
|
---|
4959 | ; return 0; }
|
---|
4960 | EOF
|
---|
4961 | if { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4962 | rm -rf conftest*
|
---|
4963 | bfd_cv_decl_needed_getenv=no
|
---|
4964 | else
|
---|
4965 | echo "configure: failed program was:" >&5
|
---|
4966 | cat conftest.$ac_ext >&5
|
---|
4967 | rm -rf conftest*
|
---|
4968 | bfd_cv_decl_needed_getenv=yes
|
---|
4969 | fi
|
---|
4970 | rm -f conftest*
|
---|
4971 | fi
|
---|
4972 |
|
---|
4973 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
|
---|
4974 | if test $bfd_cv_decl_needed_getenv = yes; then
|
---|
4975 | cat >> confdefs.h <<\EOF
|
---|
4976 | #define NEED_DECLARATION_GETENV 1
|
---|
4977 | EOF
|
---|
4978 |
|
---|
4979 | fi
|
---|
4980 |
|
---|
4981 |
|
---|
4982 | # If we are configured native, pick a core file support file.
|
---|
4983 | COREFILE=
|
---|
4984 | COREFLAG=
|
---|
4985 | TRAD_HEADER=
|
---|
4986 | if test "${target}" = "${host}"; then
|
---|
4987 | case "${host}" in
|
---|
4988 | alpha*-*-freebsd*)
|
---|
4989 | COREFILE=''
|
---|
4990 | ;;
|
---|
4991 | alpha*-*-linux-gnu*)
|
---|
4992 | COREFILE=trad-core.lo
|
---|
4993 | TRAD_HEADER='"hosts/alphalinux.h"'
|
---|
4994 | ;;
|
---|
4995 | alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
4996 | alpha*-*-*) COREFILE=osf-core.lo ;;
|
---|
4997 | arm-*-freebsd*) COREFILE='' ;;
|
---|
4998 | arm-*-riscix) COREFILE=trad-core.lo ;;
|
---|
4999 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
|
---|
5000 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
|
---|
5001 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
|
---|
5002 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
|
---|
5003 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
|
---|
5004 | i370-*-*)
|
---|
5005 | COREFILE=trad-core.lo
|
---|
5006 | TRAD_HEADER='"hosts/i370linux.h"'
|
---|
5007 | ;;
|
---|
5008 |
|
---|
5009 | i[3456]86-sequent-bsd*)
|
---|
5010 | COREFILE=trad-core.lo
|
---|
5011 | TRAD_HEADER='"hosts/symmetry.h"'
|
---|
5012 | ;;
|
---|
5013 | i[3456]86-sequent-sysv4*) ;;
|
---|
5014 | i[3456]86-sequent-sysv*)
|
---|
5015 | COREFILE=trad-core.lo
|
---|
5016 | TRAD_HEADER='"hosts/symmetry.h"'
|
---|
5017 | ;;
|
---|
5018 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
|
---|
5019 | COREFILE=trad-core.lo
|
---|
5020 | TRAD_HEADER='"hosts/i386bsd.h"'
|
---|
5021 | ;;
|
---|
5022 | i[3456]86-*-freebsd*)
|
---|
5023 | COREFILE=''
|
---|
5024 | TRAD_HEADER='"hosts/i386bsd.h"'
|
---|
5025 | ;;
|
---|
5026 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
|
---|
5027 | COREFILE=netbsd-core.lo
|
---|
5028 | ;;
|
---|
5029 | i[3456]86-esix-sysv3*)
|
---|
5030 | COREFILE=trad-core.lo
|
---|
5031 | TRAD_HEADER='"hosts/esix.h"'
|
---|
5032 | ;;
|
---|
5033 | i[3456]86-*-sco3.2v5*)
|
---|
5034 | COREFILE=sco5-core.lo
|
---|
5035 | ;;
|
---|
5036 | i[3456]86-*-sco* | i[3456]86-*-isc*)
|
---|
5037 | COREFILE=trad-core.lo
|
---|
5038 | TRAD_HEADER='"hosts/i386sco.h"'
|
---|
5039 | ;;
|
---|
5040 | i[3456]86-*-mach3*)
|
---|
5041 | COREFILE=trad-core.lo
|
---|
5042 | TRAD_HEADER='"hosts/i386mach3.h"'
|
---|
5043 | ;;
|
---|
5044 | i[3456]86-*-linux-gnu*)
|
---|
5045 | COREFILE=trad-core.lo
|
---|
5046 | TRAD_HEADER='"hosts/i386linux.h"'
|
---|
5047 | ;;
|
---|
5048 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
|
---|
5049 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
|
---|
5050 | i860-*-mach3* | i860-*-osf1*)
|
---|
5051 | COREFILE=trad-core.lo
|
---|
5052 | TRAD_HEADER='"hosts/i860mach3.h"'
|
---|
5053 | ;;
|
---|
5054 | mips-dec-bsd*)
|
---|
5055 | COREFILE=trad-core.lo
|
---|
5056 | TRAD_HEADER='"hosts/mipsbsd.h"'
|
---|
5057 | ;;
|
---|
5058 | mips-dec-mach3*)
|
---|
5059 | COREFILE=trad-core.lo
|
---|
5060 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
---|
5061 | ;;
|
---|
5062 | mips-*-netbsd* | mips*-*-openbsd*)
|
---|
5063 | COREFILE=netbsd-core.lo
|
---|
5064 | ;;
|
---|
5065 | mips-dec-*)
|
---|
5066 | COREFILE=trad-core.lo
|
---|
5067 | TRAD_HEADER='"hosts/decstation.h"'
|
---|
5068 | ;;
|
---|
5069 | mips-sgi-irix4*) COREFILE=irix-core.lo ;;
|
---|
5070 | mips-sgi-irix5*) COREFILE=irix-core.lo ;;
|
---|
5071 | mips-sgi-irix6*) COREFILE=irix-core.lo ;;
|
---|
5072 | mips-*-mach3*)
|
---|
5073 | COREFILE=trad-core.lo
|
---|
5074 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
---|
5075 | ;;
|
---|
5076 | mips-*-sysv4*) ;;
|
---|
5077 | mips-*-sysv* | mips-*-riscos*)
|
---|
5078 | COREFILE=trad-core.lo
|
---|
5079 | TRAD_HEADER='"hosts/riscos.h"'
|
---|
5080 | ;;
|
---|
5081 | mips-sony-bsd*)
|
---|
5082 | COREFILE=trad-core.lo
|
---|
5083 | TRAD_HEADER='"hosts/news-mips.h"'
|
---|
5084 | ;;
|
---|
5085 | m68*-bull*-sysv*)
|
---|
5086 | COREFILE=trad-core.lo
|
---|
5087 | TRAD_HEADER='"hosts/dpx2.h"'
|
---|
5088 | ;;
|
---|
5089 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
|
---|
5090 | m68*-hp-bsd*)
|
---|
5091 | COREFILE=trad-core.lo
|
---|
5092 | TRAD_HEADER='"hosts/hp300bsd.h"'
|
---|
5093 | ;;
|
---|
5094 | m68*-*-linux-gnu*)
|
---|
5095 | COREFILE=trad-core.lo
|
---|
5096 | TRAD_HEADER='"hosts/m68klinux.h"'
|
---|
5097 | ;;
|
---|
5098 | m68*-motorola-sysv*)
|
---|
5099 | COREFILE=trad-core.lo
|
---|
5100 | TRAD_HEADER='"hosts/delta68.h"'
|
---|
5101 | ;;
|
---|
5102 | m68*-sony-*)
|
---|
5103 | COREFILE=trad-core.lo
|
---|
5104 | TRAD_HEADER='"hosts/news.h"'
|
---|
5105 | ;;
|
---|
5106 | m68*-*-netbsd* | m68*-*-openbsd*)
|
---|
5107 | COREFILE=netbsd-core.lo
|
---|
5108 | ;;
|
---|
5109 | m68*-apple-aux*)
|
---|
5110 | COREFILE=trad-core.lo
|
---|
5111 | TRAD_HEADER='"hosts/m68kaux.h"'
|
---|
5112 | ;;
|
---|
5113 | m88*-*-sysv4*) ;;
|
---|
5114 | m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
|
---|
5115 | m88*-*-mach3*)
|
---|
5116 | COREFILE=trad-core.lo
|
---|
5117 | TRAD_HEADER='"hosts/m88kmach3.h"'
|
---|
5118 | ;;
|
---|
5119 | ns32k-pc532-mach)
|
---|
5120 | COREFILE=trad-core.lo
|
---|
5121 | TRAD_HEADER='"hosts/pc532mach.h"'
|
---|
5122 | ;;
|
---|
5123 | ns32k-*-netbsd* | ns32k-*-openbsd*)
|
---|
5124 | COREFILE=netbsd-core.lo
|
---|
5125 | ;;
|
---|
5126 | rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
|
---|
5127 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
|
---|
5128 | COREFILE=rs6000-core.lo
|
---|
5129 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
|
---|
5130 | ;;
|
---|
5131 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
|
---|
5132 | rs6000-*-*) COREFILE=rs6000-core.lo ;;
|
---|
5133 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
|
---|
5134 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
|
---|
5135 | powerpc-*-beos*) ;;
|
---|
5136 | powerpc-*-freebsd*) COREFILE='' ;;
|
---|
5137 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5138 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
---|
5139 | sparc-*-netbsd* | sparc-*-openbsd*)
|
---|
5140 | COREFILE=netbsd-core.lo
|
---|
5141 | ;;
|
---|
5142 | tahoe-*-*)
|
---|
5143 | COREFILE=trad-core.lo
|
---|
5144 | TRAD_HEADER='"hosts/tahoe.h"'
|
---|
5145 | ;;
|
---|
5146 | vax-*-ultrix2*)
|
---|
5147 | COREFILE=trad-core.lo
|
---|
5148 | TRAD_HEADER='"hosts/vaxult2.h"'
|
---|
5149 | ;;
|
---|
5150 | vax-*-ultrix*)
|
---|
5151 | COREFILE=trad-core.lo
|
---|
5152 | TRAD_HEADER='"hosts/vaxult2.h"'
|
---|
5153 | ;;
|
---|
5154 | vax-*-*)
|
---|
5155 | COREFILE=trad-core.lo
|
---|
5156 | TRAD_HEADER='"hosts/vaxbsd.h"'
|
---|
5157 | ;;
|
---|
5158 | esac
|
---|
5159 |
|
---|
5160 | case "$COREFILE" in
|
---|
5161 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
|
---|
5162 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
|
---|
5163 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
|
---|
5164 | irix-core.lo) COREFLAG=-DIRIX_CORE ;;
|
---|
5165 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
|
---|
5166 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
|
---|
5167 | osf-core.lo) COREFLAG=-DOSF_CORE ;;
|
---|
5168 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
|
---|
5169 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
|
---|
5170 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
|
---|
5171 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
|
---|
5172 | esac
|
---|
5173 |
|
---|
5174 | # ELF corefile support has several flavors, but all of
|
---|
5175 | # them use something called <sys/procfs.h>
|
---|
5176 | for ac_hdr in sys/procfs.h
|
---|
5177 | do
|
---|
5178 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5179 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5180 | echo "configure:5181: checking for $ac_hdr" >&5
|
---|
5181 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5182 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5183 | else
|
---|
5184 | cat > conftest.$ac_ext <<EOF
|
---|
5185 | #line 5186 "configure"
|
---|
5186 | #include "confdefs.h"
|
---|
5187 | #include <$ac_hdr>
|
---|
5188 | EOF
|
---|
5189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5190 | { (eval echo configure:5191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5192 | if test -z "$ac_err"; then
|
---|
5193 | rm -rf conftest*
|
---|
5194 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5195 | else
|
---|
5196 | echo "$ac_err" >&5
|
---|
5197 | echo "configure: failed program was:" >&5
|
---|
5198 | cat conftest.$ac_ext >&5
|
---|
5199 | rm -rf conftest*
|
---|
5200 | eval "ac_cv_header_$ac_safe=no"
|
---|
5201 | fi
|
---|
5202 | rm -f conftest*
|
---|
5203 | fi
|
---|
5204 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5205 | echo "$ac_t""yes" 1>&6
|
---|
5206 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5207 | cat >> confdefs.h <<EOF
|
---|
5208 | #define $ac_tr_hdr 1
|
---|
5209 | EOF
|
---|
5210 |
|
---|
5211 | else
|
---|
5212 | echo "$ac_t""no" 1>&6
|
---|
5213 | fi
|
---|
5214 | done
|
---|
5215 |
|
---|
5216 | if test "$ac_cv_header_sys_procfs_h" = yes; then
|
---|
5217 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5218 | echo "configure:5219: checking for prstatus_t in sys/procfs.h" >&5
|
---|
5219 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
|
---|
5220 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5221 | else
|
---|
5222 | cat > conftest.$ac_ext <<EOF
|
---|
5223 | #line 5224 "configure"
|
---|
5224 | #include "confdefs.h"
|
---|
5225 |
|
---|
5226 | #define _SYSCALL32
|
---|
5227 | #include <sys/procfs.h>
|
---|
5228 | int main() {
|
---|
5229 | prstatus_t avar
|
---|
5230 | ; return 0; }
|
---|
5231 | EOF
|
---|
5232 | if { (eval echo configure:5233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5233 | rm -rf conftest*
|
---|
5234 | bfd_cv_have_sys_procfs_type_prstatus_t=yes
|
---|
5235 | else
|
---|
5236 | echo "configure: failed program was:" >&5
|
---|
5237 | cat conftest.$ac_ext >&5
|
---|
5238 | rm -rf conftest*
|
---|
5239 | bfd_cv_have_sys_procfs_type_prstatus_t=no
|
---|
5240 |
|
---|
5241 | fi
|
---|
5242 | rm -f conftest*
|
---|
5243 | fi
|
---|
5244 |
|
---|
5245 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
|
---|
5246 | cat >> confdefs.h <<\EOF
|
---|
5247 | #define HAVE_PRSTATUS_T 1
|
---|
5248 | EOF
|
---|
5249 |
|
---|
5250 | fi
|
---|
5251 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
|
---|
5252 |
|
---|
5253 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5254 | echo "configure:5255: checking for prstatus32_t in sys/procfs.h" >&5
|
---|
5255 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
|
---|
5256 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5257 | else
|
---|
5258 | cat > conftest.$ac_ext <<EOF
|
---|
5259 | #line 5260 "configure"
|
---|
5260 | #include "confdefs.h"
|
---|
5261 |
|
---|
5262 | #define _SYSCALL32
|
---|
5263 | #include <sys/procfs.h>
|
---|
5264 | int main() {
|
---|
5265 | prstatus32_t avar
|
---|
5266 | ; return 0; }
|
---|
5267 | EOF
|
---|
5268 | if { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5269 | rm -rf conftest*
|
---|
5270 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes
|
---|
5271 | else
|
---|
5272 | echo "configure: failed program was:" >&5
|
---|
5273 | cat conftest.$ac_ext >&5
|
---|
5274 | rm -rf conftest*
|
---|
5275 | bfd_cv_have_sys_procfs_type_prstatus32_t=no
|
---|
5276 |
|
---|
5277 | fi
|
---|
5278 | rm -f conftest*
|
---|
5279 | fi
|
---|
5280 |
|
---|
5281 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
|
---|
5282 | cat >> confdefs.h <<\EOF
|
---|
5283 | #define HAVE_PRSTATUS32_T 1
|
---|
5284 | EOF
|
---|
5285 |
|
---|
5286 | fi
|
---|
5287 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
|
---|
5288 |
|
---|
5289 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
---|
5290 | echo "configure:5291: checking for prstatus_t.pr_who in sys/procfs.h" >&5
|
---|
5291 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
|
---|
5292 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5293 | else
|
---|
5294 | cat > conftest.$ac_ext <<EOF
|
---|
5295 | #line 5296 "configure"
|
---|
5296 | #include "confdefs.h"
|
---|
5297 |
|
---|
5298 | #define _SYSCALL32
|
---|
5299 | #include <sys/procfs.h>
|
---|
5300 | int main() {
|
---|
5301 | prstatus_t avar; void* aref = (void*) &avar.pr_who
|
---|
5302 | ; return 0; }
|
---|
5303 | EOF
|
---|
5304 | if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5305 | rm -rf conftest*
|
---|
5306 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
|
---|
5307 | else
|
---|
5308 | echo "configure: failed program was:" >&5
|
---|
5309 | cat conftest.$ac_ext >&5
|
---|
5310 | rm -rf conftest*
|
---|
5311 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
|
---|
5312 |
|
---|
5313 | fi
|
---|
5314 | rm -f conftest*
|
---|
5315 | fi
|
---|
5316 |
|
---|
5317 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
|
---|
5318 | cat >> confdefs.h <<\EOF
|
---|
5319 | #define HAVE_PRSTATUS_T_PR_WHO 1
|
---|
5320 | EOF
|
---|
5321 |
|
---|
5322 | fi
|
---|
5323 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
|
---|
5324 |
|
---|
5325 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
---|
5326 | echo "configure:5327: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
|
---|
5327 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
|
---|
5328 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5329 | else
|
---|
5330 | cat > conftest.$ac_ext <<EOF
|
---|
5331 | #line 5332 "configure"
|
---|
5332 | #include "confdefs.h"
|
---|
5333 |
|
---|
5334 | #define _SYSCALL32
|
---|
5335 | #include <sys/procfs.h>
|
---|
5336 | int main() {
|
---|
5337 | prstatus32_t avar; void* aref = (void*) &avar.pr_who
|
---|
5338 | ; return 0; }
|
---|
5339 | EOF
|
---|
5340 | if { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5341 | rm -rf conftest*
|
---|
5342 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
|
---|
5343 | else
|
---|
5344 | echo "configure: failed program was:" >&5
|
---|
5345 | cat conftest.$ac_ext >&5
|
---|
5346 | rm -rf conftest*
|
---|
5347 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
|
---|
5348 |
|
---|
5349 | fi
|
---|
5350 | rm -f conftest*
|
---|
5351 | fi
|
---|
5352 |
|
---|
5353 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
|
---|
5354 | cat >> confdefs.h <<\EOF
|
---|
5355 | #define HAVE_PRSTATUS32_T_PR_WHO 1
|
---|
5356 | EOF
|
---|
5357 |
|
---|
5358 | fi
|
---|
5359 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
|
---|
5360 |
|
---|
5361 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5362 | echo "configure:5363: checking for pstatus_t in sys/procfs.h" >&5
|
---|
5363 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
|
---|
5364 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5365 | else
|
---|
5366 | cat > conftest.$ac_ext <<EOF
|
---|
5367 | #line 5368 "configure"
|
---|
5368 | #include "confdefs.h"
|
---|
5369 |
|
---|
5370 | #define _SYSCALL32
|
---|
5371 | #include <sys/procfs.h>
|
---|
5372 | int main() {
|
---|
5373 | pstatus_t avar
|
---|
5374 | ; return 0; }
|
---|
5375 | EOF
|
---|
5376 | if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5377 | rm -rf conftest*
|
---|
5378 | bfd_cv_have_sys_procfs_type_pstatus_t=yes
|
---|
5379 | else
|
---|
5380 | echo "configure: failed program was:" >&5
|
---|
5381 | cat conftest.$ac_ext >&5
|
---|
5382 | rm -rf conftest*
|
---|
5383 | bfd_cv_have_sys_procfs_type_pstatus_t=no
|
---|
5384 |
|
---|
5385 | fi
|
---|
5386 | rm -f conftest*
|
---|
5387 | fi
|
---|
5388 |
|
---|
5389 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
|
---|
5390 | cat >> confdefs.h <<\EOF
|
---|
5391 | #define HAVE_PSTATUS_T 1
|
---|
5392 | EOF
|
---|
5393 |
|
---|
5394 | fi
|
---|
5395 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
|
---|
5396 |
|
---|
5397 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5398 | echo "configure:5399: checking for pxstatus_t in sys/procfs.h" >&5
|
---|
5399 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
|
---|
5400 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5401 | else
|
---|
5402 | cat > conftest.$ac_ext <<EOF
|
---|
5403 | #line 5404 "configure"
|
---|
5404 | #include "confdefs.h"
|
---|
5405 |
|
---|
5406 | #define _SYSCALL32
|
---|
5407 | #include <sys/procfs.h>
|
---|
5408 | int main() {
|
---|
5409 | pxstatus_t avar
|
---|
5410 | ; return 0; }
|
---|
5411 | EOF
|
---|
5412 | if { (eval echo configure:5413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5413 | rm -rf conftest*
|
---|
5414 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes
|
---|
5415 | else
|
---|
5416 | echo "configure: failed program was:" >&5
|
---|
5417 | cat conftest.$ac_ext >&5
|
---|
5418 | rm -rf conftest*
|
---|
5419 | bfd_cv_have_sys_procfs_type_pxstatus_t=no
|
---|
5420 |
|
---|
5421 | fi
|
---|
5422 | rm -f conftest*
|
---|
5423 | fi
|
---|
5424 |
|
---|
5425 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
|
---|
5426 | cat >> confdefs.h <<\EOF
|
---|
5427 | #define HAVE_PXSTATUS_T 1
|
---|
5428 | EOF
|
---|
5429 |
|
---|
5430 | fi
|
---|
5431 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
|
---|
5432 |
|
---|
5433 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5434 | echo "configure:5435: checking for pstatus32_t in sys/procfs.h" >&5
|
---|
5435 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
|
---|
5436 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5437 | else
|
---|
5438 | cat > conftest.$ac_ext <<EOF
|
---|
5439 | #line 5440 "configure"
|
---|
5440 | #include "confdefs.h"
|
---|
5441 |
|
---|
5442 | #define _SYSCALL32
|
---|
5443 | #include <sys/procfs.h>
|
---|
5444 | int main() {
|
---|
5445 | pstatus32_t avar
|
---|
5446 | ; return 0; }
|
---|
5447 | EOF
|
---|
5448 | if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5449 | rm -rf conftest*
|
---|
5450 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes
|
---|
5451 | else
|
---|
5452 | echo "configure: failed program was:" >&5
|
---|
5453 | cat conftest.$ac_ext >&5
|
---|
5454 | rm -rf conftest*
|
---|
5455 | bfd_cv_have_sys_procfs_type_pstatus32_t=no
|
---|
5456 |
|
---|
5457 | fi
|
---|
5458 | rm -f conftest*
|
---|
5459 | fi
|
---|
5460 |
|
---|
5461 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
|
---|
5462 | cat >> confdefs.h <<\EOF
|
---|
5463 | #define HAVE_PSTATUS32_T 1
|
---|
5464 | EOF
|
---|
5465 |
|
---|
5466 | fi
|
---|
5467 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
|
---|
5468 |
|
---|
5469 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5470 | echo "configure:5471: checking for prpsinfo_t in sys/procfs.h" >&5
|
---|
5471 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
|
---|
5472 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5473 | else
|
---|
5474 | cat > conftest.$ac_ext <<EOF
|
---|
5475 | #line 5476 "configure"
|
---|
5476 | #include "confdefs.h"
|
---|
5477 |
|
---|
5478 | #define _SYSCALL32
|
---|
5479 | #include <sys/procfs.h>
|
---|
5480 | int main() {
|
---|
5481 | prpsinfo_t avar
|
---|
5482 | ; return 0; }
|
---|
5483 | EOF
|
---|
5484 | if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5485 | rm -rf conftest*
|
---|
5486 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
|
---|
5487 | else
|
---|
5488 | echo "configure: failed program was:" >&5
|
---|
5489 | cat conftest.$ac_ext >&5
|
---|
5490 | rm -rf conftest*
|
---|
5491 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no
|
---|
5492 |
|
---|
5493 | fi
|
---|
5494 | rm -f conftest*
|
---|
5495 | fi
|
---|
5496 |
|
---|
5497 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
|
---|
5498 | cat >> confdefs.h <<\EOF
|
---|
5499 | #define HAVE_PRPSINFO_T 1
|
---|
5500 | EOF
|
---|
5501 |
|
---|
5502 | fi
|
---|
5503 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
|
---|
5504 |
|
---|
5505 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5506 | echo "configure:5507: checking for prpsinfo32_t in sys/procfs.h" >&5
|
---|
5507 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
|
---|
5508 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5509 | else
|
---|
5510 | cat > conftest.$ac_ext <<EOF
|
---|
5511 | #line 5512 "configure"
|
---|
5512 | #include "confdefs.h"
|
---|
5513 |
|
---|
5514 | #define _SYSCALL32
|
---|
5515 | #include <sys/procfs.h>
|
---|
5516 | int main() {
|
---|
5517 | prpsinfo32_t avar
|
---|
5518 | ; return 0; }
|
---|
5519 | EOF
|
---|
5520 | if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5521 | rm -rf conftest*
|
---|
5522 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
|
---|
5523 | else
|
---|
5524 | echo "configure: failed program was:" >&5
|
---|
5525 | cat conftest.$ac_ext >&5
|
---|
5526 | rm -rf conftest*
|
---|
5527 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
|
---|
5528 |
|
---|
5529 | fi
|
---|
5530 | rm -f conftest*
|
---|
5531 | fi
|
---|
5532 |
|
---|
5533 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
|
---|
5534 | cat >> confdefs.h <<\EOF
|
---|
5535 | #define HAVE_PRPSINFO32_T 1
|
---|
5536 | EOF
|
---|
5537 |
|
---|
5538 | fi
|
---|
5539 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
|
---|
5540 |
|
---|
5541 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5542 | echo "configure:5543: checking for psinfo_t in sys/procfs.h" >&5
|
---|
5543 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
|
---|
5544 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5545 | else
|
---|
5546 | cat > conftest.$ac_ext <<EOF
|
---|
5547 | #line 5548 "configure"
|
---|
5548 | #include "confdefs.h"
|
---|
5549 |
|
---|
5550 | #define _SYSCALL32
|
---|
5551 | #include <sys/procfs.h>
|
---|
5552 | int main() {
|
---|
5553 | psinfo_t avar
|
---|
5554 | ; return 0; }
|
---|
5555 | EOF
|
---|
5556 | if { (eval echo configure:5557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5557 | rm -rf conftest*
|
---|
5558 | bfd_cv_have_sys_procfs_type_psinfo_t=yes
|
---|
5559 | else
|
---|
5560 | echo "configure: failed program was:" >&5
|
---|
5561 | cat conftest.$ac_ext >&5
|
---|
5562 | rm -rf conftest*
|
---|
5563 | bfd_cv_have_sys_procfs_type_psinfo_t=no
|
---|
5564 |
|
---|
5565 | fi
|
---|
5566 | rm -f conftest*
|
---|
5567 | fi
|
---|
5568 |
|
---|
5569 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
|
---|
5570 | cat >> confdefs.h <<\EOF
|
---|
5571 | #define HAVE_PSINFO_T 1
|
---|
5572 | EOF
|
---|
5573 |
|
---|
5574 | fi
|
---|
5575 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
|
---|
5576 |
|
---|
5577 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5578 | echo "configure:5579: checking for psinfo32_t in sys/procfs.h" >&5
|
---|
5579 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
|
---|
5580 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5581 | else
|
---|
5582 | cat > conftest.$ac_ext <<EOF
|
---|
5583 | #line 5584 "configure"
|
---|
5584 | #include "confdefs.h"
|
---|
5585 |
|
---|
5586 | #define _SYSCALL32
|
---|
5587 | #include <sys/procfs.h>
|
---|
5588 | int main() {
|
---|
5589 | psinfo32_t avar
|
---|
5590 | ; return 0; }
|
---|
5591 | EOF
|
---|
5592 | if { (eval echo configure:5593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5593 | rm -rf conftest*
|
---|
5594 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes
|
---|
5595 | else
|
---|
5596 | echo "configure: failed program was:" >&5
|
---|
5597 | cat conftest.$ac_ext >&5
|
---|
5598 | rm -rf conftest*
|
---|
5599 | bfd_cv_have_sys_procfs_type_psinfo32_t=no
|
---|
5600 |
|
---|
5601 | fi
|
---|
5602 | rm -f conftest*
|
---|
5603 | fi
|
---|
5604 |
|
---|
5605 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
|
---|
5606 | cat >> confdefs.h <<\EOF
|
---|
5607 | #define HAVE_PSINFO32_T 1
|
---|
5608 | EOF
|
---|
5609 |
|
---|
5610 | fi
|
---|
5611 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
|
---|
5612 |
|
---|
5613 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5614 | echo "configure:5615: checking for lwpstatus_t in sys/procfs.h" >&5
|
---|
5615 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
|
---|
5616 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5617 | else
|
---|
5618 | cat > conftest.$ac_ext <<EOF
|
---|
5619 | #line 5620 "configure"
|
---|
5620 | #include "confdefs.h"
|
---|
5621 |
|
---|
5622 | #define _SYSCALL32
|
---|
5623 | #include <sys/procfs.h>
|
---|
5624 | int main() {
|
---|
5625 | lwpstatus_t avar
|
---|
5626 | ; return 0; }
|
---|
5627 | EOF
|
---|
5628 | if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5629 | rm -rf conftest*
|
---|
5630 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
|
---|
5631 | else
|
---|
5632 | echo "configure: failed program was:" >&5
|
---|
5633 | cat conftest.$ac_ext >&5
|
---|
5634 | rm -rf conftest*
|
---|
5635 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no
|
---|
5636 |
|
---|
5637 | fi
|
---|
5638 | rm -f conftest*
|
---|
5639 | fi
|
---|
5640 |
|
---|
5641 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
|
---|
5642 | cat >> confdefs.h <<\EOF
|
---|
5643 | #define HAVE_LWPSTATUS_T 1
|
---|
5644 | EOF
|
---|
5645 |
|
---|
5646 | fi
|
---|
5647 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
|
---|
5648 |
|
---|
5649 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5650 | echo "configure:5651: checking for lwpxstatus_t in sys/procfs.h" >&5
|
---|
5651 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
|
---|
5652 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5653 | else
|
---|
5654 | cat > conftest.$ac_ext <<EOF
|
---|
5655 | #line 5656 "configure"
|
---|
5656 | #include "confdefs.h"
|
---|
5657 |
|
---|
5658 | #define _SYSCALL32
|
---|
5659 | #include <sys/procfs.h>
|
---|
5660 | int main() {
|
---|
5661 | lwpxstatus_t avar
|
---|
5662 | ; return 0; }
|
---|
5663 | EOF
|
---|
5664 | if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5665 | rm -rf conftest*
|
---|
5666 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
|
---|
5667 | else
|
---|
5668 | echo "configure: failed program was:" >&5
|
---|
5669 | cat conftest.$ac_ext >&5
|
---|
5670 | rm -rf conftest*
|
---|
5671 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
|
---|
5672 |
|
---|
5673 | fi
|
---|
5674 | rm -f conftest*
|
---|
5675 | fi
|
---|
5676 |
|
---|
5677 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
|
---|
5678 | cat >> confdefs.h <<\EOF
|
---|
5679 | #define HAVE_LWPXSTATUS_T 1
|
---|
5680 | EOF
|
---|
5681 |
|
---|
5682 | fi
|
---|
5683 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
|
---|
5684 |
|
---|
5685 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
|
---|
5686 | echo "configure:5687: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
|
---|
5687 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
|
---|
5688 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5689 | else
|
---|
5690 | cat > conftest.$ac_ext <<EOF
|
---|
5691 | #line 5692 "configure"
|
---|
5692 | #include "confdefs.h"
|
---|
5693 |
|
---|
5694 | #define _SYSCALL32
|
---|
5695 | #include <sys/procfs.h>
|
---|
5696 | int main() {
|
---|
5697 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context
|
---|
5698 | ; return 0; }
|
---|
5699 | EOF
|
---|
5700 | if { (eval echo configure:5701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5701 | rm -rf conftest*
|
---|
5702 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
|
---|
5703 | else
|
---|
5704 | echo "configure: failed program was:" >&5
|
---|
5705 | cat conftest.$ac_ext >&5
|
---|
5706 | rm -rf conftest*
|
---|
5707 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
|
---|
5708 |
|
---|
5709 | fi
|
---|
5710 | rm -f conftest*
|
---|
5711 | fi
|
---|
5712 |
|
---|
5713 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
|
---|
5714 | cat >> confdefs.h <<\EOF
|
---|
5715 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
|
---|
5716 | EOF
|
---|
5717 |
|
---|
5718 | fi
|
---|
5719 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
|
---|
5720 |
|
---|
5721 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
|
---|
5722 | echo "configure:5723: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
|
---|
5723 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
|
---|
5724 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5725 | else
|
---|
5726 | cat > conftest.$ac_ext <<EOF
|
---|
5727 | #line 5728 "configure"
|
---|
5728 | #include "confdefs.h"
|
---|
5729 |
|
---|
5730 | #define _SYSCALL32
|
---|
5731 | #include <sys/procfs.h>
|
---|
5732 | int main() {
|
---|
5733 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
|
---|
5734 | ; return 0; }
|
---|
5735 | EOF
|
---|
5736 | if { (eval echo configure:5737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5737 | rm -rf conftest*
|
---|
5738 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
|
---|
5739 | else
|
---|
5740 | echo "configure: failed program was:" >&5
|
---|
5741 | cat conftest.$ac_ext >&5
|
---|
5742 | rm -rf conftest*
|
---|
5743 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
|
---|
5744 |
|
---|
5745 | fi
|
---|
5746 | rm -f conftest*
|
---|
5747 | fi
|
---|
5748 |
|
---|
5749 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
|
---|
5750 | cat >> confdefs.h <<\EOF
|
---|
5751 | #define HAVE_LWPSTATUS_T_PR_REG 1
|
---|
5752 | EOF
|
---|
5753 |
|
---|
5754 | fi
|
---|
5755 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
|
---|
5756 |
|
---|
5757 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5758 | echo "configure:5759: checking for win32_pstatus_t in sys/procfs.h" >&5
|
---|
5759 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
|
---|
5760 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5761 | else
|
---|
5762 | cat > conftest.$ac_ext <<EOF
|
---|
5763 | #line 5764 "configure"
|
---|
5764 | #include "confdefs.h"
|
---|
5765 |
|
---|
5766 | #define _SYSCALL32
|
---|
5767 | #include <sys/procfs.h>
|
---|
5768 | int main() {
|
---|
5769 | win32_pstatus_t avar
|
---|
5770 | ; return 0; }
|
---|
5771 | EOF
|
---|
5772 | if { (eval echo configure:5773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5773 | rm -rf conftest*
|
---|
5774 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
|
---|
5775 | else
|
---|
5776 | echo "configure: failed program was:" >&5
|
---|
5777 | cat conftest.$ac_ext >&5
|
---|
5778 | rm -rf conftest*
|
---|
5779 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
|
---|
5780 |
|
---|
5781 | fi
|
---|
5782 | rm -f conftest*
|
---|
5783 | fi
|
---|
5784 |
|
---|
5785 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
|
---|
5786 | cat >> confdefs.h <<\EOF
|
---|
5787 | #define HAVE_WIN32_PSTATUS_T 1
|
---|
5788 | EOF
|
---|
5789 |
|
---|
5790 | fi
|
---|
5791 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
|
---|
5792 |
|
---|
5793 | fi
|
---|
5794 | fi
|
---|
5795 |
|
---|
5796 |
|
---|
5797 | if test -n "$TRAD_HEADER"; then
|
---|
5798 | cat >> confdefs.h <<EOF
|
---|
5799 | #define TRAD_HEADER $TRAD_HEADER
|
---|
5800 | EOF
|
---|
5801 |
|
---|
5802 | fi
|
---|
5803 |
|
---|
5804 | # Horrible hacks to build DLLs on Windows.
|
---|
5805 | WIN32LDFLAGS=
|
---|
5806 | WIN32LIBADD=
|
---|
5807 | case "${host}" in
|
---|
5808 | *-*-cygwin*)
|
---|
5809 | if test "$enable_shared" = "yes"; then
|
---|
5810 | WIN32LDFLAGS="-no-undefined"
|
---|
5811 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
|
---|
5812 | fi
|
---|
5813 | ;;
|
---|
5814 | esac
|
---|
5815 |
|
---|
5816 |
|
---|
5817 |
|
---|
5818 | # target stuff:
|
---|
5819 |
|
---|
5820 | # Canonicalize the secondary target names.
|
---|
5821 | if test -n "$enable_targets" ; then
|
---|
5822 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
---|
5823 | do
|
---|
5824 | result=`$ac_config_sub $targ 2>/dev/null`
|
---|
5825 | if test -n "$result" ; then
|
---|
5826 | canon_targets="$canon_targets $result"
|
---|
5827 | else
|
---|
5828 | # Allow targets that config.sub doesn't recognize, like "all".
|
---|
5829 | canon_targets="$canon_targets $targ"
|
---|
5830 | fi
|
---|
5831 | done
|
---|
5832 | fi
|
---|
5833 |
|
---|
5834 | all_targets=false
|
---|
5835 | defvec=
|
---|
5836 | selvecs=
|
---|
5837 | selarchs=
|
---|
5838 | TDEFINES=
|
---|
5839 | for targ in $target $canon_targets
|
---|
5840 | do
|
---|
5841 | if test "x$targ" = "xall"; then
|
---|
5842 | all_targets=true
|
---|
5843 | else
|
---|
5844 | . $srcdir/config.bfd
|
---|
5845 | if test "x$targ" = "x$target"; then
|
---|
5846 | defvec=$targ_defvec
|
---|
5847 | fi
|
---|
5848 | selvecs="$selvecs $targ_defvec $targ_selvecs"
|
---|
5849 | selarchs="$selarchs $targ_archs"
|
---|
5850 | TDEFINES="$TDEFINES $targ_cflags"
|
---|
5851 | fi
|
---|
5852 | done
|
---|
5853 |
|
---|
5854 |
|
---|
5855 | # This processing still needs to be done if we're to decide properly whether
|
---|
5856 | # 64-bit support needs to be compiled in. Currently, it will be included if
|
---|
5857 | # the default or any other explicitly requested target requires it; it
|
---|
5858 | # will not be included on a 32-bit host if no 64-bit target is requested, and
|
---|
5859 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
|
---|
5860 | # used.
|
---|
5861 |
|
---|
5862 | # uniq the default and selected vectors in all the configured targets.
|
---|
5863 | f=""
|
---|
5864 | for i in $selvecs ; do
|
---|
5865 | case " $f " in
|
---|
5866 | *" $i "*) ;;
|
---|
5867 | *) f="$f $i" ;;
|
---|
5868 | esac
|
---|
5869 | done
|
---|
5870 | selvecs="$f"
|
---|
5871 |
|
---|
5872 |
|
---|
5873 | # uniq the architectures in all the configured targets.
|
---|
5874 | f=""
|
---|
5875 | for i in $selarchs ; do
|
---|
5876 | case " $f " in
|
---|
5877 | *" $i "*) ;;
|
---|
5878 | *) f="$f $i" ;;
|
---|
5879 | esac
|
---|
5880 | done
|
---|
5881 | selarchs="$f"
|
---|
5882 |
|
---|
5883 | # Target backend .o files.
|
---|
5884 | tb=
|
---|
5885 |
|
---|
5886 | elf="elf.lo elflink.lo dwarf1.lo"
|
---|
5887 |
|
---|
5888 | for vec in $selvecs
|
---|
5889 | do
|
---|
5890 | case "$vec" in
|
---|
5891 | # This list is alphabetized to make it easy to compare
|
---|
5892 | # with the two vector lists in targets.c.
|
---|
5893 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
|
---|
5894 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
|
---|
5895 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
---|
5896 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
---|
5897 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
|
---|
5898 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5899 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5900 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5901 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5902 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5903 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5904 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5905 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5906 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
|
---|
5907 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
---|
5908 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
---|
5909 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
---|
5910 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
---|
5911 | apollocoff_vec) tb="$tb coff-apollo.lo" ;;
|
---|
5912 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
|
---|
5913 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
|
---|
5914 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
|
---|
5915 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
|
---|
5916 | target64=true ;;
|
---|
5917 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
|
---|
5918 | target64=true ;;
|
---|
5919 | bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec)
|
---|
5920 | tb="$tb elf64-hppa.lo elf64.lo $elf"
|
---|
5921 | target64=true ;;
|
---|
5922 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
|
---|
5923 | target64=true ;;
|
---|
5924 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
|
---|
5925 | target64=true ;;
|
---|
5926 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
|
---|
5927 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
|
---|
5928 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
---|
5929 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
---|
5930 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
---|
5931 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
---|
5932 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
---|
5933 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
---|
5934 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
---|
5935 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
5936 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
|
---|
5937 | target64=true ;;
|
---|
5938 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
---|
5939 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
---|
5940 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
---|
5941 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
|
---|
5942 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
|
---|
5943 | bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec)
|
---|
5944 | tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
---|
5945 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
---|
5946 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
---|
5947 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"
|
---|
5948 | target64=true ;;
|
---|
5949 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
---|
5950 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
---|
5951 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
---|
5952 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
---|
5953 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
5954 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
|
---|
5955 | target64=true ;;
|
---|
5956 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
---|
5957 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
---|
5958 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
|
---|
5959 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
|
---|
5960 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
|
---|
5961 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
---|
5962 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
---|
5963 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
|
---|
5964 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
|
---|
5965 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
---|
5966 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
---|
5967 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
---|
5968 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
---|
5969 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
---|
5970 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
---|
5971 | bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
5972 | bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
5973 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
---|
5974 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
5975 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
5976 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
|
---|
5977 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
|
---|
5978 | target64=true ;;
|
---|
5979 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
|
---|
5980 | target64=true ;;
|
---|
5981 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
|
---|
5982 | target64=true ;;
|
---|
5983 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
|
---|
5984 | target64=true ;;
|
---|
5985 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
|
---|
5986 | target64=true ;;
|
---|
5987 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
|
---|
5988 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
|
---|
5989 | cris_aout_vec) tb="$tb aout-cris.lo" ;;
|
---|
5990 | demo_64_vec) tb="$tb demo64.lo aout64.lo"
|
---|
5991 | target64=true ;;
|
---|
5992 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
5993 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
5994 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
5995 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
|
---|
5996 | target64=true ;;
|
---|
5997 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
|
---|
5998 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
|
---|
5999 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
|
---|
6000 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
|
---|
6001 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
|
---|
6002 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
|
---|
6003 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
|
---|
6004 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
|
---|
6005 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
|
---|
6006 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
|
---|
6007 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
|
---|
6008 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
|
---|
6009 | i386msdos_vec) tb="$tb i386msdos.lo" ;;
|
---|
6010 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
|
---|
6011 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
|
---|
6012 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
|
---|
6013 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6014 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
|
---|
6015 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
|
---|
6016 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
|
---|
6017 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
|
---|
6018 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
|
---|
6019 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
---|
6020 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
---|
6021 | ieee_vec) tb="$tb ieee.lo" ;;
|
---|
6022 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
|
---|
6023 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
|
---|
6024 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
|
---|
6025 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6026 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
|
---|
6027 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
|
---|
6028 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
|
---|
6029 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
|
---|
6030 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
|
---|
6031 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
|
---|
6032 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
|
---|
6033 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
|
---|
6034 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6035 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6036 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6037 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6038 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
|
---|
6039 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
|
---|
6040 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
|
---|
6041 | target64=true ;;
|
---|
6042 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
|
---|
6043 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
|
---|
6044 | target64=true ;;
|
---|
6045 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
|
---|
6046 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
|
---|
6047 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
|
---|
6048 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
|
---|
6049 | pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
|
---|
6050 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
---|
6051 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6052 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6053 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6054 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6055 | ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
---|
6056 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6057 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6058 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6059 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6060 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
---|
6061 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
---|
6062 | som_vec) tb="$tb som.lo" ;;
|
---|
6063 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
---|
6064 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
|
---|
6065 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6066 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
|
---|
6067 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
|
---|
6068 | sparccoff_vec) tb="$tb coff-sparc.lo" ;;
|
---|
6069 | srec_vec) tb="$tb srec.lo" ;;
|
---|
6070 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
|
---|
6071 | symbolsrec_vec) tb="$tb srec.lo" ;;
|
---|
6072 | tekhex_vec) tb="$tb tekhex.lo" ;;
|
---|
6073 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
|
---|
6074 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
|
---|
6075 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6076 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6077 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6078 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6079 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6080 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6081 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
|
---|
6082 | versados_vec) tb="$tb versados.lo" ;;
|
---|
6083 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
|
---|
6084 | target64=true ;;
|
---|
6085 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
|
---|
6086 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
|
---|
6087 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
|
---|
6088 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
|
---|
6089 |
|
---|
6090 | "") ;;
|
---|
6091 | *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
|
---|
6092 | esac
|
---|
6093 | done
|
---|
6094 |
|
---|
6095 | # Target architecture .o files.
|
---|
6096 | # A couple of CPUs use shorter file names to avoid problems on DOS
|
---|
6097 | # filesystems.
|
---|
6098 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
|
---|
6099 |
|
---|
6100 | # Weed out duplicate .o files.
|
---|
6101 | f=""
|
---|
6102 | for i in $tb ; do
|
---|
6103 | case " $f " in
|
---|
6104 | *" $i "*) ;;
|
---|
6105 | *) f="$f $i" ;;
|
---|
6106 | esac
|
---|
6107 | done
|
---|
6108 | tb="$f"
|
---|
6109 |
|
---|
6110 | f=""
|
---|
6111 | for i in $ta ; do
|
---|
6112 | case " $f " in
|
---|
6113 | *" $i "*) ;;
|
---|
6114 | *) f="$f $i" ;;
|
---|
6115 | esac
|
---|
6116 | done
|
---|
6117 | ta="$f"
|
---|
6118 |
|
---|
6119 | bfd_backends="$tb"
|
---|
6120 | bfd_machines="$ta"
|
---|
6121 |
|
---|
6122 | if test x${all_targets} = xtrue ; then
|
---|
6123 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
---|
6124 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
---|
6125 | selvecs=
|
---|
6126 | havevecs=
|
---|
6127 | selarchs=
|
---|
6128 | else # all_targets is true
|
---|
6129 | # Only set these if they will be nonempty, for the clever echo.
|
---|
6130 | havevecs=
|
---|
6131 | test -n "$selvecs" &&
|
---|
6132 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
|
---|
6133 | test -n "$selvecs" &&
|
---|
6134 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
---|
6135 | test -n "$selarchs" &&
|
---|
6136 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
---|
6137 | fi # all_targets is true
|
---|
6138 |
|
---|
6139 | case ${host64}-${target64}-${want64} in
|
---|
6140 | *true*)
|
---|
6141 | wordsize=64
|
---|
6142 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
|
---|
6143 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
|
---|
6144 | echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
|
---|
6145 | echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
|
---|
6146 | fi
|
---|
6147 | ;;
|
---|
6148 | false-false-false)
|
---|
6149 | wordsize=32
|
---|
6150 | all_backends='$(BFD32_BACKENDS)'
|
---|
6151 | ;;
|
---|
6152 | esac
|
---|
6153 |
|
---|
6154 |
|
---|
6155 |
|
---|
6156 |
|
---|
6157 |
|
---|
6158 |
|
---|
6159 | tdefaults=""
|
---|
6160 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
|
---|
6161 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
|
---|
6162 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
|
---|
6163 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
|
---|
6164 |
|
---|
6165 |
|
---|
6166 | for ac_hdr in unistd.h
|
---|
6167 | do
|
---|
6168 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
6169 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
6170 | echo "configure:6171: checking for $ac_hdr" >&5
|
---|
6171 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
6172 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6173 | else
|
---|
6174 | cat > conftest.$ac_ext <<EOF
|
---|
6175 | #line 6176 "configure"
|
---|
6176 | #include "confdefs.h"
|
---|
6177 | #include <$ac_hdr>
|
---|
6178 | EOF
|
---|
6179 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
6180 | { (eval echo configure:6181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
6181 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
6182 | if test -z "$ac_err"; then
|
---|
6183 | rm -rf conftest*
|
---|
6184 | eval "ac_cv_header_$ac_safe=yes"
|
---|
6185 | else
|
---|
6186 | echo "$ac_err" >&5
|
---|
6187 | echo "configure: failed program was:" >&5
|
---|
6188 | cat conftest.$ac_ext >&5
|
---|
6189 | rm -rf conftest*
|
---|
6190 | eval "ac_cv_header_$ac_safe=no"
|
---|
6191 | fi
|
---|
6192 | rm -f conftest*
|
---|
6193 | fi
|
---|
6194 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
6195 | echo "$ac_t""yes" 1>&6
|
---|
6196 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
6197 | cat >> confdefs.h <<EOF
|
---|
6198 | #define $ac_tr_hdr 1
|
---|
6199 | EOF
|
---|
6200 |
|
---|
6201 | else
|
---|
6202 | echo "$ac_t""no" 1>&6
|
---|
6203 | fi
|
---|
6204 | done
|
---|
6205 |
|
---|
6206 | for ac_func in getpagesize
|
---|
6207 | do
|
---|
6208 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6209 | echo "configure:6210: checking for $ac_func" >&5
|
---|
6210 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6211 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6212 | else
|
---|
6213 | cat > conftest.$ac_ext <<EOF
|
---|
6214 | #line 6215 "configure"
|
---|
6215 | #include "confdefs.h"
|
---|
6216 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6217 | which can conflict with char $ac_func(); below. */
|
---|
6218 | #include <assert.h>
|
---|
6219 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6220 | /* We use char because int might match the return type of a gcc2
|
---|
6221 | builtin and then its argument prototype would still apply. */
|
---|
6222 | char $ac_func();
|
---|
6223 |
|
---|
6224 | int main() {
|
---|
6225 |
|
---|
6226 | /* The GNU C library defines this for functions which it implements
|
---|
6227 | to always fail with ENOSYS. Some functions are actually named
|
---|
6228 | something starting with __ and the normal name is an alias. */
|
---|
6229 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6230 | choke me
|
---|
6231 | #else
|
---|
6232 | $ac_func();
|
---|
6233 | #endif
|
---|
6234 |
|
---|
6235 | ; return 0; }
|
---|
6236 | EOF
|
---|
6237 | if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6238 | rm -rf conftest*
|
---|
6239 | eval "ac_cv_func_$ac_func=yes"
|
---|
6240 | else
|
---|
6241 | echo "configure: failed program was:" >&5
|
---|
6242 | cat conftest.$ac_ext >&5
|
---|
6243 | rm -rf conftest*
|
---|
6244 | eval "ac_cv_func_$ac_func=no"
|
---|
6245 | fi
|
---|
6246 | rm -f conftest*
|
---|
6247 | fi
|
---|
6248 |
|
---|
6249 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6250 | echo "$ac_t""yes" 1>&6
|
---|
6251 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
6252 | cat >> confdefs.h <<EOF
|
---|
6253 | #define $ac_tr_func 1
|
---|
6254 | EOF
|
---|
6255 |
|
---|
6256 | else
|
---|
6257 | echo "$ac_t""no" 1>&6
|
---|
6258 | fi
|
---|
6259 | done
|
---|
6260 |
|
---|
6261 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
6262 | echo "configure:6263: checking for working mmap" >&5
|
---|
6263 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
6264 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6265 | else
|
---|
6266 | if test "$cross_compiling" = yes; then
|
---|
6267 | ac_cv_func_mmap_fixed_mapped=no
|
---|
6268 | else
|
---|
6269 | cat > conftest.$ac_ext <<EOF
|
---|
6270 | #line 6271 "configure"
|
---|
6271 | #include "confdefs.h"
|
---|
6272 |
|
---|
6273 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
6274 | Here is a matrix of mmap possibilities:
|
---|
6275 | mmap private not fixed
|
---|
6276 | mmap private fixed at somewhere currently unmapped
|
---|
6277 | mmap private fixed at somewhere already mapped
|
---|
6278 | mmap shared not fixed
|
---|
6279 | mmap shared fixed at somewhere currently unmapped
|
---|
6280 | mmap shared fixed at somewhere already mapped
|
---|
6281 | For private mappings, we should verify that changes cannot be read()
|
---|
6282 | back from the file, nor mmap's back from the file at a different
|
---|
6283 | address. (There have been systems where private was not correctly
|
---|
6284 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
6285 | VM page cache was not coherent with the filesystem buffer cache
|
---|
6286 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
6287 | For shared mappings, we should conversely verify that changes get
|
---|
6288 | propogated back to all the places they're supposed to be.
|
---|
6289 |
|
---|
6290 | Grep wants private fixed already mapped.
|
---|
6291 | The main things grep needs to know about mmap are:
|
---|
6292 | * does it exist and is it safe to write into the mmap'd area
|
---|
6293 | * how to use it (BSD variants) */
|
---|
6294 | #include <sys/types.h>
|
---|
6295 | #include <fcntl.h>
|
---|
6296 | #include <sys/mman.h>
|
---|
6297 |
|
---|
6298 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
6299 | #ifndef HAVE_GETPAGESIZE
|
---|
6300 | # ifdef HAVE_UNISTD_H
|
---|
6301 | # include <unistd.h>
|
---|
6302 | # endif
|
---|
6303 |
|
---|
6304 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
6305 | # ifndef HAVE_SYS_PARAM_H
|
---|
6306 | # define HAVE_SYS_PARAM_H 1
|
---|
6307 | # endif
|
---|
6308 |
|
---|
6309 | # ifdef _SC_PAGESIZE
|
---|
6310 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
6311 | # else /* no _SC_PAGESIZE */
|
---|
6312 | # ifdef HAVE_SYS_PARAM_H
|
---|
6313 | # include <sys/param.h>
|
---|
6314 | # ifdef EXEC_PAGESIZE
|
---|
6315 | # define getpagesize() EXEC_PAGESIZE
|
---|
6316 | # else /* no EXEC_PAGESIZE */
|
---|
6317 | # ifdef NBPG
|
---|
6318 | # define getpagesize() NBPG * CLSIZE
|
---|
6319 | # ifndef CLSIZE
|
---|
6320 | # define CLSIZE 1
|
---|
6321 | # endif /* no CLSIZE */
|
---|
6322 | # else /* no NBPG */
|
---|
6323 | # ifdef NBPC
|
---|
6324 | # define getpagesize() NBPC
|
---|
6325 | # else /* no NBPC */
|
---|
6326 | # ifdef PAGESIZE
|
---|
6327 | # define getpagesize() PAGESIZE
|
---|
6328 | # endif /* PAGESIZE */
|
---|
6329 | # endif /* no NBPC */
|
---|
6330 | # endif /* no NBPG */
|
---|
6331 | # endif /* no EXEC_PAGESIZE */
|
---|
6332 | # else /* no HAVE_SYS_PARAM_H */
|
---|
6333 | # define getpagesize() 8192 /* punt totally */
|
---|
6334 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
6335 | # endif /* no _SC_PAGESIZE */
|
---|
6336 |
|
---|
6337 | #endif /* no HAVE_GETPAGESIZE */
|
---|
6338 |
|
---|
6339 | #ifdef __cplusplus
|
---|
6340 | extern "C" { void *malloc(unsigned); }
|
---|
6341 | #else
|
---|
6342 | char *malloc();
|
---|
6343 | #endif
|
---|
6344 |
|
---|
6345 | int
|
---|
6346 | main()
|
---|
6347 | {
|
---|
6348 | char *data, *data2, *data3;
|
---|
6349 | int i, pagesize;
|
---|
6350 | int fd;
|
---|
6351 |
|
---|
6352 | pagesize = getpagesize();
|
---|
6353 |
|
---|
6354 | /*
|
---|
6355 | * First, make a file with some known garbage in it.
|
---|
6356 | */
|
---|
6357 | data = malloc(pagesize);
|
---|
6358 | if (!data)
|
---|
6359 | exit(1);
|
---|
6360 | for (i = 0; i < pagesize; ++i)
|
---|
6361 | *(data + i) = rand();
|
---|
6362 | umask(0);
|
---|
6363 | fd = creat("conftestmmap", 0600);
|
---|
6364 | if (fd < 0)
|
---|
6365 | exit(1);
|
---|
6366 | if (write(fd, data, pagesize) != pagesize)
|
---|
6367 | exit(1);
|
---|
6368 | close(fd);
|
---|
6369 |
|
---|
6370 | /*
|
---|
6371 | * Next, try to mmap the file at a fixed address which
|
---|
6372 | * already has something else allocated at it. If we can,
|
---|
6373 | * also make sure that we see the same garbage.
|
---|
6374 | */
|
---|
6375 | fd = open("conftestmmap", O_RDWR);
|
---|
6376 | if (fd < 0)
|
---|
6377 | exit(1);
|
---|
6378 | data2 = malloc(2 * pagesize);
|
---|
6379 | if (!data2)
|
---|
6380 | exit(1);
|
---|
6381 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
6382 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
6383 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
6384 | exit(1);
|
---|
6385 | for (i = 0; i < pagesize; ++i)
|
---|
6386 | if (*(data + i) != *(data2 + i))
|
---|
6387 | exit(1);
|
---|
6388 |
|
---|
6389 | /*
|
---|
6390 | * Finally, make sure that changes to the mapped area
|
---|
6391 | * do not percolate back to the file as seen by read().
|
---|
6392 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
6393 | */
|
---|
6394 | for (i = 0; i < pagesize; ++i)
|
---|
6395 | *(data2 + i) = *(data2 + i) + 1;
|
---|
6396 | data3 = malloc(pagesize);
|
---|
6397 | if (!data3)
|
---|
6398 | exit(1);
|
---|
6399 | if (read(fd, data3, pagesize) != pagesize)
|
---|
6400 | exit(1);
|
---|
6401 | for (i = 0; i < pagesize; ++i)
|
---|
6402 | if (*(data + i) != *(data3 + i))
|
---|
6403 | exit(1);
|
---|
6404 | close(fd);
|
---|
6405 | unlink("conftestmmap");
|
---|
6406 | exit(0);
|
---|
6407 | }
|
---|
6408 |
|
---|
6409 | EOF
|
---|
6410 | if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
6411 | then
|
---|
6412 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
6413 | else
|
---|
6414 | echo "configure: failed program was:" >&5
|
---|
6415 | cat conftest.$ac_ext >&5
|
---|
6416 | rm -fr conftest*
|
---|
6417 | ac_cv_func_mmap_fixed_mapped=no
|
---|
6418 | fi
|
---|
6419 | rm -fr conftest*
|
---|
6420 | fi
|
---|
6421 |
|
---|
6422 | fi
|
---|
6423 |
|
---|
6424 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
6425 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
6426 | cat >> confdefs.h <<\EOF
|
---|
6427 | #define HAVE_MMAP 1
|
---|
6428 | EOF
|
---|
6429 |
|
---|
6430 | fi
|
---|
6431 |
|
---|
6432 | for ac_func in madvise mprotect
|
---|
6433 | do
|
---|
6434 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6435 | echo "configure:6436: checking for $ac_func" >&5
|
---|
6436 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6437 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6438 | else
|
---|
6439 | cat > conftest.$ac_ext <<EOF
|
---|
6440 | #line 6441 "configure"
|
---|
6441 | #include "confdefs.h"
|
---|
6442 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6443 | which can conflict with char $ac_func(); below. */
|
---|
6444 | #include <assert.h>
|
---|
6445 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6446 | /* We use char because int might match the return type of a gcc2
|
---|
6447 | builtin and then its argument prototype would still apply. */
|
---|
6448 | char $ac_func();
|
---|
6449 |
|
---|
6450 | int main() {
|
---|
6451 |
|
---|
6452 | /* The GNU C library defines this for functions which it implements
|
---|
6453 | to always fail with ENOSYS. Some functions are actually named
|
---|
6454 | something starting with __ and the normal name is an alias. */
|
---|
6455 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6456 | choke me
|
---|
6457 | #else
|
---|
6458 | $ac_func();
|
---|
6459 | #endif
|
---|
6460 |
|
---|
6461 | ; return 0; }
|
---|
6462 | EOF
|
---|
6463 | if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6464 | rm -rf conftest*
|
---|
6465 | eval "ac_cv_func_$ac_func=yes"
|
---|
6466 | else
|
---|
6467 | echo "configure: failed program was:" >&5
|
---|
6468 | cat conftest.$ac_ext >&5
|
---|
6469 | rm -rf conftest*
|
---|
6470 | eval "ac_cv_func_$ac_func=no"
|
---|
6471 | fi
|
---|
6472 | rm -f conftest*
|
---|
6473 | fi
|
---|
6474 |
|
---|
6475 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6476 | echo "$ac_t""yes" 1>&6
|
---|
6477 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
6478 | cat >> confdefs.h <<EOF
|
---|
6479 | #define $ac_tr_func 1
|
---|
6480 | EOF
|
---|
6481 |
|
---|
6482 | else
|
---|
6483 | echo "$ac_t""no" 1>&6
|
---|
6484 | fi
|
---|
6485 | done
|
---|
6486 |
|
---|
6487 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
---|
6488 | true+yes ) cat >> confdefs.h <<\EOF
|
---|
6489 | #define USE_MMAP 1
|
---|
6490 | EOF
|
---|
6491 | ;;
|
---|
6492 | esac
|
---|
6493 |
|
---|
6494 | rm -f doc/config.status
|
---|
6495 | trap '' 1 2 15
|
---|
6496 | cat > confcache <<\EOF
|
---|
6497 | # This file is a shell script that caches the results of configure
|
---|
6498 | # tests run on this system so they can be shared between configure
|
---|
6499 | # scripts and configure runs. It is not useful on other systems.
|
---|
6500 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
6501 | #
|
---|
6502 | # By default, configure uses ./config.cache as the cache file,
|
---|
6503 | # creating it if it does not exist already. You can give configure
|
---|
6504 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
6505 | # what configure does when it calls configure scripts in
|
---|
6506 | # subdirectories, so they share the cache.
|
---|
6507 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
6508 | # config.status only pays attention to the cache file if you give it the
|
---|
6509 | # --recheck option to rerun configure.
|
---|
6510 | #
|
---|
6511 | EOF
|
---|
6512 | # The following way of writing the cache mishandles newlines in values,
|
---|
6513 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6514 | # So, don't put newlines in cache variables' values.
|
---|
6515 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6516 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6517 | (set) 2>&1 |
|
---|
6518 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
6519 | *ac_space=\ *)
|
---|
6520 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
6521 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
6522 | sed -n \
|
---|
6523 | -e "s/'/'\\\\''/g" \
|
---|
6524 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
6525 | ;;
|
---|
6526 | *)
|
---|
6527 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6528 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
6529 | ;;
|
---|
6530 | esac >> confcache
|
---|
6531 | if cmp -s $cache_file confcache; then
|
---|
6532 | :
|
---|
6533 | else
|
---|
6534 | if test -w $cache_file; then
|
---|
6535 | echo "updating cache $cache_file"
|
---|
6536 | cat confcache > $cache_file
|
---|
6537 | else
|
---|
6538 | echo "not updating unwritable cache $cache_file"
|
---|
6539 | fi
|
---|
6540 | fi
|
---|
6541 | rm -f confcache
|
---|
6542 |
|
---|
6543 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
6544 |
|
---|
6545 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6546 | # Let make expand exec_prefix.
|
---|
6547 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6548 |
|
---|
6549 | # Any assignment to VPATH causes Sun make to only execute
|
---|
6550 | # the first set of double-colon rules, so remove it if not needed.
|
---|
6551 | # If there is a colon in the path, we need to keep it.
|
---|
6552 | if test "x$srcdir" = x.; then
|
---|
6553 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
6554 | fi
|
---|
6555 |
|
---|
6556 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
6557 |
|
---|
6558 | DEFS=-DHAVE_CONFIG_H
|
---|
6559 |
|
---|
6560 | # Without the "./", some shells look in PATH for config.status.
|
---|
6561 | : ${CONFIG_STATUS=./config.status}
|
---|
6562 |
|
---|
6563 | echo creating $CONFIG_STATUS
|
---|
6564 | rm -f $CONFIG_STATUS
|
---|
6565 | cat > $CONFIG_STATUS <<EOF
|
---|
6566 | #! /bin/sh
|
---|
6567 | # Generated automatically by configure.
|
---|
6568 | # Run this file to recreate the current configuration.
|
---|
6569 | # This directory was configured as follows,
|
---|
6570 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
6571 | #
|
---|
6572 | # $0 $ac_configure_args
|
---|
6573 | #
|
---|
6574 | # Compiler output produced by configure, useful for debugging
|
---|
6575 | # configure, is in ./config.log if it exists.
|
---|
6576 |
|
---|
6577 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
6578 | for ac_option
|
---|
6579 | do
|
---|
6580 | case "\$ac_option" in
|
---|
6581 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
6582 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
6583 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
6584 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
6585 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
6586 | exit 0 ;;
|
---|
6587 | -help | --help | --hel | --he | --h)
|
---|
6588 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
6589 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
6590 | esac
|
---|
6591 | done
|
---|
6592 |
|
---|
6593 | ac_given_srcdir=$srcdir
|
---|
6594 | ac_given_INSTALL="$INSTALL"
|
---|
6595 |
|
---|
6596 | trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
6597 | EOF
|
---|
6598 | cat >> $CONFIG_STATUS <<EOF
|
---|
6599 |
|
---|
6600 | # Protect against being on the right side of a sed subst in config.status.
|
---|
6601 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
6602 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
6603 | $ac_vpsub
|
---|
6604 | $extrasub
|
---|
6605 | s%@SHELL@%$SHELL%g
|
---|
6606 | s%@CFLAGS@%$CFLAGS%g
|
---|
6607 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
6608 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
6609 | s%@FFLAGS@%$FFLAGS%g
|
---|
6610 | s%@DEFS@%$DEFS%g
|
---|
6611 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
6612 | s%@LIBS@%$LIBS%g
|
---|
6613 | s%@exec_prefix@%$exec_prefix%g
|
---|
6614 | s%@prefix@%$prefix%g
|
---|
6615 | s%@program_transform_name@%$program_transform_name%g
|
---|
6616 | s%@bindir@%$bindir%g
|
---|
6617 | s%@sbindir@%$sbindir%g
|
---|
6618 | s%@libexecdir@%$libexecdir%g
|
---|
6619 | s%@datadir@%$datadir%g
|
---|
6620 | s%@sysconfdir@%$sysconfdir%g
|
---|
6621 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
6622 | s%@localstatedir@%$localstatedir%g
|
---|
6623 | s%@libdir@%$libdir%g
|
---|
6624 | s%@includedir@%$includedir%g
|
---|
6625 | s%@oldincludedir@%$oldincludedir%g
|
---|
6626 | s%@infodir@%$infodir%g
|
---|
6627 | s%@mandir@%$mandir%g
|
---|
6628 | s%@host@%$host%g
|
---|
6629 | s%@host_alias@%$host_alias%g
|
---|
6630 | s%@host_cpu@%$host_cpu%g
|
---|
6631 | s%@host_vendor@%$host_vendor%g
|
---|
6632 | s%@host_os@%$host_os%g
|
---|
6633 | s%@target@%$target%g
|
---|
6634 | s%@target_alias@%$target_alias%g
|
---|
6635 | s%@target_cpu@%$target_cpu%g
|
---|
6636 | s%@target_vendor@%$target_vendor%g
|
---|
6637 | s%@target_os@%$target_os%g
|
---|
6638 | s%@build@%$build%g
|
---|
6639 | s%@build_alias@%$build_alias%g
|
---|
6640 | s%@build_cpu@%$build_cpu%g
|
---|
6641 | s%@build_vendor@%$build_vendor%g
|
---|
6642 | s%@build_os@%$build_os%g
|
---|
6643 | s%@CC@%$CC%g
|
---|
6644 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
6645 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
6646 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
6647 | s%@PACKAGE@%$PACKAGE%g
|
---|
6648 | s%@VERSION@%$VERSION%g
|
---|
6649 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
6650 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
6651 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
6652 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
6653 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
6654 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
6655 | s%@AR@%$AR%g
|
---|
6656 | s%@RANLIB@%$RANLIB%g
|
---|
6657 | s%@LN_S@%$LN_S%g
|
---|
6658 | s%@OBJEXT@%$OBJEXT%g
|
---|
6659 | s%@EXEEXT@%$EXEEXT%g
|
---|
6660 | s%@STRIP@%$STRIP%g
|
---|
6661 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
6662 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
---|
6663 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
6664 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
6665 | s%@MAINT@%$MAINT%g
|
---|
6666 | s%@CPP@%$CPP%g
|
---|
6667 | s%@ALLOCA@%$ALLOCA%g
|
---|
6668 | s%@USE_NLS@%$USE_NLS%g
|
---|
6669 | s%@MSGFMT@%$MSGFMT%g
|
---|
6670 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
6671 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
6672 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
6673 | s%@CATALOGS@%$CATALOGS%g
|
---|
6674 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
6675 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
6676 | s%@GMOFILES@%$GMOFILES%g
|
---|
6677 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
6678 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
6679 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
6680 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
6681 | s%@POFILES@%$POFILES%g
|
---|
6682 | s%@POSUB@%$POSUB%g
|
---|
6683 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
6684 | s%@GT_NO@%$GT_NO%g
|
---|
6685 | s%@GT_YES@%$GT_YES%g
|
---|
6686 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
6687 | s%@l@%$l%g
|
---|
6688 | s%@HDEFINES@%$HDEFINES%g
|
---|
6689 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
|
---|
6690 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
|
---|
6691 | s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
|
---|
6692 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
|
---|
6693 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
|
---|
6694 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
|
---|
6695 | s%@COREFILE@%$COREFILE%g
|
---|
6696 | s%@COREFLAG@%$COREFLAG%g
|
---|
6697 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
---|
6698 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
---|
6699 | s%@TDEFINES@%$TDEFINES%g
|
---|
6700 | s%@wordsize@%$wordsize%g
|
---|
6701 | s%@all_backends@%$all_backends%g
|
---|
6702 | s%@bfd_backends@%$bfd_backends%g
|
---|
6703 | s%@bfd_machines@%$bfd_machines%g
|
---|
6704 | s%@tdefaults@%$tdefaults%g
|
---|
6705 |
|
---|
6706 | CEOF
|
---|
6707 | EOF
|
---|
6708 |
|
---|
6709 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6710 |
|
---|
6711 | # Split the substitutions into bite-sized pieces for seds with
|
---|
6712 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
6713 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
6714 | ac_file=1 # Number of current file.
|
---|
6715 | ac_beg=1 # First line for current file.
|
---|
6716 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
6717 | ac_more_lines=:
|
---|
6718 | ac_sed_cmds=""
|
---|
6719 | while $ac_more_lines; do
|
---|
6720 | if test $ac_beg -gt 1; then
|
---|
6721 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
6722 | else
|
---|
6723 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
6724 | fi
|
---|
6725 | if test ! -s conftest.s$ac_file; then
|
---|
6726 | ac_more_lines=false
|
---|
6727 | rm -f conftest.s$ac_file
|
---|
6728 | else
|
---|
6729 | if test -z "$ac_sed_cmds"; then
|
---|
6730 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
6731 | else
|
---|
6732 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
6733 | fi
|
---|
6734 | ac_file=`expr $ac_file + 1`
|
---|
6735 | ac_beg=$ac_end
|
---|
6736 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
6737 | fi
|
---|
6738 | done
|
---|
6739 | if test -z "$ac_sed_cmds"; then
|
---|
6740 | ac_sed_cmds=cat
|
---|
6741 | fi
|
---|
6742 | EOF
|
---|
6743 |
|
---|
6744 | cat >> $CONFIG_STATUS <<EOF
|
---|
6745 |
|
---|
6746 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
|
---|
6747 | EOF
|
---|
6748 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6749 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
6750 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
6751 | case "$ac_file" in
|
---|
6752 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
6753 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
6754 | *) ac_file_in="${ac_file}.in" ;;
|
---|
6755 | esac
|
---|
6756 |
|
---|
6757 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
6758 |
|
---|
6759 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
6760 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
6761 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
6762 | # The file is in a subdirectory.
|
---|
6763 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
6764 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
6765 | # A "../" for each directory in $ac_dir_suffix.
|
---|
6766 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
6767 | else
|
---|
6768 | ac_dir_suffix= ac_dots=
|
---|
6769 | fi
|
---|
6770 |
|
---|
6771 | case "$ac_given_srcdir" in
|
---|
6772 | .) srcdir=.
|
---|
6773 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
6774 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
6775 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
6776 | *) # Relative path.
|
---|
6777 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
6778 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
6779 | esac
|
---|
6780 |
|
---|
6781 | case "$ac_given_INSTALL" in
|
---|
6782 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
6783 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
6784 | esac
|
---|
6785 |
|
---|
6786 | echo creating "$ac_file"
|
---|
6787 | rm -f "$ac_file"
|
---|
6788 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
6789 | case "$ac_file" in
|
---|
6790 | *Makefile*) ac_comsub="1i\\
|
---|
6791 | # $configure_input" ;;
|
---|
6792 | *) ac_comsub= ;;
|
---|
6793 | esac
|
---|
6794 |
|
---|
6795 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
6796 | sed -e "$ac_comsub
|
---|
6797 | s%@configure_input@%$configure_input%g
|
---|
6798 | s%@srcdir@%$srcdir%g
|
---|
6799 | s%@top_srcdir@%$top_srcdir%g
|
---|
6800 | s%@INSTALL@%$INSTALL%g
|
---|
6801 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
6802 | fi; done
|
---|
6803 | rm -f conftest.s*
|
---|
6804 |
|
---|
6805 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
6806 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
6807 | #
|
---|
6808 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
6809 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
6810 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
6811 | ac_dC='\3'
|
---|
6812 | ac_dD='%g'
|
---|
6813 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
6814 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
6815 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
6816 | ac_uC=' '
|
---|
6817 | ac_uD='\4%g'
|
---|
6818 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
6819 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
6820 | ac_eB='$%\1#\2define\3'
|
---|
6821 | ac_eC=' '
|
---|
6822 | ac_eD='%g'
|
---|
6823 |
|
---|
6824 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
6825 | EOF
|
---|
6826 | cat >> $CONFIG_STATUS <<EOF
|
---|
6827 | CONFIG_HEADERS="config.h:config.in"
|
---|
6828 | EOF
|
---|
6829 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6830 | fi
|
---|
6831 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
6832 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
6833 | case "$ac_file" in
|
---|
6834 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
6835 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
6836 | *) ac_file_in="${ac_file}.in" ;;
|
---|
6837 | esac
|
---|
6838 |
|
---|
6839 | echo creating $ac_file
|
---|
6840 |
|
---|
6841 | rm -f conftest.frag conftest.in conftest.out
|
---|
6842 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
6843 | cat $ac_file_inputs > conftest.in
|
---|
6844 |
|
---|
6845 | EOF
|
---|
6846 |
|
---|
6847 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
6848 | # the proper values into config.h.in to produce config.h. And first:
|
---|
6849 | # Protect against being on the right side of a sed subst in config.status.
|
---|
6850 | # Protect against being in an unquoted here document in config.status.
|
---|
6851 | rm -f conftest.vals
|
---|
6852 | cat > conftest.hdr <<\EOF
|
---|
6853 | s/[\\&%]/\\&/g
|
---|
6854 | s%[\\$`]%\\&%g
|
---|
6855 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
6856 | s%ac_d%ac_u%gp
|
---|
6857 | s%ac_u%ac_e%gp
|
---|
6858 | EOF
|
---|
6859 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
6860 | rm -f conftest.hdr
|
---|
6861 |
|
---|
6862 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
6863 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
6864 | # on some systems where configure will not decide to define it.
|
---|
6865 | cat >> conftest.vals <<\EOF
|
---|
6866 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
6867 | EOF
|
---|
6868 |
|
---|
6869 | # Break up conftest.vals because some shells have a limit on
|
---|
6870 | # the size of here documents, and old seds have small limits too.
|
---|
6871 |
|
---|
6872 | rm -f conftest.tail
|
---|
6873 | while :
|
---|
6874 | do
|
---|
6875 | ac_lines=`grep -c . conftest.vals`
|
---|
6876 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
6877 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
6878 | # Write a limited-size here document to conftest.frag.
|
---|
6879 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
6880 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
6881 | echo 'CEOF
|
---|
6882 | sed -f conftest.frag conftest.in > conftest.out
|
---|
6883 | rm -f conftest.in
|
---|
6884 | mv conftest.out conftest.in
|
---|
6885 | ' >> $CONFIG_STATUS
|
---|
6886 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
6887 | rm -f conftest.vals
|
---|
6888 | mv conftest.tail conftest.vals
|
---|
6889 | done
|
---|
6890 | rm -f conftest.vals
|
---|
6891 |
|
---|
6892 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6893 | rm -f conftest.frag conftest.h
|
---|
6894 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
6895 | cat conftest.in >> conftest.h
|
---|
6896 | rm -f conftest.in
|
---|
6897 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
6898 | echo "$ac_file is unchanged"
|
---|
6899 | rm -f conftest.h
|
---|
6900 | else
|
---|
6901 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
6902 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
6903 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
6904 | # The file is in a subdirectory.
|
---|
6905 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
6906 | fi
|
---|
6907 | rm -f $ac_file
|
---|
6908 | mv conftest.h $ac_file
|
---|
6909 | fi
|
---|
6910 | fi; done
|
---|
6911 |
|
---|
6912 | EOF
|
---|
6913 | cat >> $CONFIG_STATUS <<EOF
|
---|
6914 |
|
---|
6915 |
|
---|
6916 | EOF
|
---|
6917 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6918 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
6919 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
|
---|
6920 | exit 0
|
---|
6921 | EOF
|
---|
6922 | chmod +x $CONFIG_STATUS
|
---|
6923 | rm -fr confdefs* $ac_clean_files
|
---|
6924 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
6925 |
|
---|
6926 |
|
---|