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=yes]"
|
---|
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 | --with-lib-path=dir1:dir2... set default LIB_PATH"
|
---|
28 | ac_help="$ac_help
|
---|
29 | --enable-targets alternative target configurations"
|
---|
30 | ac_help="$ac_help
|
---|
31 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
|
---|
32 | ac_help="$ac_help
|
---|
33 | --with-sysroot[=DIR] Search for usr/lib et al within DIR."
|
---|
34 | ac_help="$ac_help
|
---|
35 | --enable-build-warnings enable build-time compiler warnings if gcc is used"
|
---|
36 | ac_help="$ac_help
|
---|
37 | --disable-nls do not use Native Language Support"
|
---|
38 | ac_help="$ac_help
|
---|
39 | --with-included-gettext use the GNU gettext library included here"
|
---|
40 | ac_help="$ac_help
|
---|
41 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
42 | (and sometimes confusing) to the casual installer"
|
---|
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 | srcdir=
|
---|
61 | target=NONE
|
---|
62 | verbose=
|
---|
63 | x_includes=NONE
|
---|
64 | x_libraries=NONE
|
---|
65 | bindir='${exec_prefix}/bin'
|
---|
66 | sbindir='${exec_prefix}/sbin'
|
---|
67 | libexecdir='${exec_prefix}/libexec'
|
---|
68 | datadir='${prefix}/share'
|
---|
69 | sysconfdir='${prefix}/etc'
|
---|
70 | sharedstatedir='${prefix}/com'
|
---|
71 | localstatedir='${prefix}/var'
|
---|
72 | libdir='${exec_prefix}/lib'
|
---|
73 | includedir='${prefix}/include'
|
---|
74 | oldincludedir='/usr/include'
|
---|
75 | infodir='${prefix}/info'
|
---|
76 | mandir='${prefix}/man'
|
---|
77 |
|
---|
78 | # Initialize some other variables.
|
---|
79 | subdirs=
|
---|
80 | MFLAGS= MAKEFLAGS=
|
---|
81 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
82 | # Maximum number of lines to put in a shell here document.
|
---|
83 | ac_max_here_lines=12
|
---|
84 |
|
---|
85 | ac_prev=
|
---|
86 | for ac_option
|
---|
87 | do
|
---|
88 |
|
---|
89 | # If the previous option needs an argument, assign it.
|
---|
90 | if test -n "$ac_prev"; then
|
---|
91 | eval "$ac_prev=\$ac_option"
|
---|
92 | ac_prev=
|
---|
93 | continue
|
---|
94 | fi
|
---|
95 |
|
---|
96 | case "$ac_option" in
|
---|
97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
98 | *) ac_optarg= ;;
|
---|
99 | esac
|
---|
100 |
|
---|
101 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
102 |
|
---|
103 | case "$ac_option" in
|
---|
104 |
|
---|
105 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
106 | ac_prev=bindir ;;
|
---|
107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
108 | bindir="$ac_optarg" ;;
|
---|
109 |
|
---|
110 | -build | --build | --buil | --bui | --bu)
|
---|
111 | ac_prev=build ;;
|
---|
112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
113 | build="$ac_optarg" ;;
|
---|
114 |
|
---|
115 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
117 | ac_prev=cache_file ;;
|
---|
118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
120 | cache_file="$ac_optarg" ;;
|
---|
121 |
|
---|
122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
123 | ac_prev=datadir ;;
|
---|
124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
125 | | --da=*)
|
---|
126 | datadir="$ac_optarg" ;;
|
---|
127 |
|
---|
128 | -disable-* | --disable-*)
|
---|
129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
130 | # Reject names that are not valid shell variable names.
|
---|
131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
133 | fi
|
---|
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
135 | eval "enable_${ac_feature}=no" ;;
|
---|
136 |
|
---|
137 | -enable-* | --enable-*)
|
---|
138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
139 | # Reject names that are not valid shell variable names.
|
---|
140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
142 | fi
|
---|
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
144 | case "$ac_option" in
|
---|
145 | *=*) ;;
|
---|
146 | *) ac_optarg=yes ;;
|
---|
147 | esac
|
---|
148 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
149 |
|
---|
150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
152 | | --exec | --exe | --ex)
|
---|
153 | ac_prev=exec_prefix ;;
|
---|
154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
156 | | --exec=* | --exe=* | --ex=*)
|
---|
157 | exec_prefix="$ac_optarg" ;;
|
---|
158 |
|
---|
159 | -gas | --gas | --ga | --g)
|
---|
160 | # Obsolete; use --with-gas.
|
---|
161 | with_gas=yes ;;
|
---|
162 |
|
---|
163 | -help | --help | --hel | --he)
|
---|
164 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
165 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
166 | cat << EOF
|
---|
167 | Usage: configure [options] [host]
|
---|
168 | Options: [defaults in brackets after descriptions]
|
---|
169 | Configuration:
|
---|
170 | --cache-file=FILE cache test results in FILE
|
---|
171 | --help print this message
|
---|
172 | --no-create do not create output files
|
---|
173 | --quiet, --silent do not print \`checking...' messages
|
---|
174 | --version print the version of autoconf that created configure
|
---|
175 | Directory and file names:
|
---|
176 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
177 | [$ac_default_prefix]
|
---|
178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
179 | [same as prefix]
|
---|
180 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
183 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
184 | [PREFIX/share]
|
---|
185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
187 | [PREFIX/com]
|
---|
188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
190 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
192 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
193 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
194 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
195 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
196 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
197 | --program-transform-name=PROGRAM
|
---|
198 | run sed PROGRAM on installed program names
|
---|
199 | EOF
|
---|
200 | cat << EOF
|
---|
201 | Host type:
|
---|
202 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
203 | --host=HOST configure for HOST [guessed]
|
---|
204 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
205 | Features and packages:
|
---|
206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
210 | --x-includes=DIR X include files are in DIR
|
---|
211 | --x-libraries=DIR X library files are in DIR
|
---|
212 | EOF
|
---|
213 | if test -n "$ac_help"; then
|
---|
214 | echo "--enable and --with options recognized:$ac_help"
|
---|
215 | fi
|
---|
216 | exit 0 ;;
|
---|
217 |
|
---|
218 | -host | --host | --hos | --ho)
|
---|
219 | ac_prev=host ;;
|
---|
220 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
221 | host="$ac_optarg" ;;
|
---|
222 |
|
---|
223 | -includedir | --includedir | --includedi | --included | --include \
|
---|
224 | | --includ | --inclu | --incl | --inc)
|
---|
225 | ac_prev=includedir ;;
|
---|
226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
227 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
228 | includedir="$ac_optarg" ;;
|
---|
229 |
|
---|
230 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
231 | ac_prev=infodir ;;
|
---|
232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
233 | infodir="$ac_optarg" ;;
|
---|
234 |
|
---|
235 | -libdir | --libdir | --libdi | --libd)
|
---|
236 | ac_prev=libdir ;;
|
---|
237 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
238 | libdir="$ac_optarg" ;;
|
---|
239 |
|
---|
240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
241 | | --libexe | --libex | --libe)
|
---|
242 | ac_prev=libexecdir ;;
|
---|
243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
244 | | --libexe=* | --libex=* | --libe=*)
|
---|
245 | libexecdir="$ac_optarg" ;;
|
---|
246 |
|
---|
247 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
248 | | --localstate | --localstat | --localsta | --localst \
|
---|
249 | | --locals | --local | --loca | --loc | --lo)
|
---|
250 | ac_prev=localstatedir ;;
|
---|
251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
254 | localstatedir="$ac_optarg" ;;
|
---|
255 |
|
---|
256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
257 | ac_prev=mandir ;;
|
---|
258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
259 | mandir="$ac_optarg" ;;
|
---|
260 |
|
---|
261 | -nfp | --nfp | --nf)
|
---|
262 | # Obsolete; use --without-fp.
|
---|
263 | with_fp=no ;;
|
---|
264 |
|
---|
265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
266 | | --no-cr | --no-c)
|
---|
267 | no_create=yes ;;
|
---|
268 |
|
---|
269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
271 | no_recursion=yes ;;
|
---|
272 |
|
---|
273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
275 | | --oldin | --oldi | --old | --ol | --o)
|
---|
276 | ac_prev=oldincludedir ;;
|
---|
277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
280 | oldincludedir="$ac_optarg" ;;
|
---|
281 |
|
---|
282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
283 | ac_prev=prefix ;;
|
---|
284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
285 | prefix="$ac_optarg" ;;
|
---|
286 |
|
---|
287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
288 | | --program-pre | --program-pr | --program-p)
|
---|
289 | ac_prev=program_prefix ;;
|
---|
290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
292 | program_prefix="$ac_optarg" ;;
|
---|
293 |
|
---|
294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
295 | | --program-suf | --program-su | --program-s)
|
---|
296 | ac_prev=program_suffix ;;
|
---|
297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
299 | program_suffix="$ac_optarg" ;;
|
---|
300 |
|
---|
301 | -program-transform-name | --program-transform-name \
|
---|
302 | | --program-transform-nam | --program-transform-na \
|
---|
303 | | --program-transform-n | --program-transform- \
|
---|
304 | | --program-transform | --program-transfor \
|
---|
305 | | --program-transfo | --program-transf \
|
---|
306 | | --program-trans | --program-tran \
|
---|
307 | | --progr-tra | --program-tr | --program-t)
|
---|
308 | ac_prev=program_transform_name ;;
|
---|
309 | -program-transform-name=* | --program-transform-name=* \
|
---|
310 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
311 | | --program-transform-n=* | --program-transform-=* \
|
---|
312 | | --program-transform=* | --program-transfor=* \
|
---|
313 | | --program-transfo=* | --program-transf=* \
|
---|
314 | | --program-trans=* | --program-tran=* \
|
---|
315 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
316 | program_transform_name="$ac_optarg" ;;
|
---|
317 |
|
---|
318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
319 | | -silent | --silent | --silen | --sile | --sil)
|
---|
320 | silent=yes ;;
|
---|
321 |
|
---|
322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
323 | ac_prev=sbindir ;;
|
---|
324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
325 | | --sbi=* | --sb=*)
|
---|
326 | sbindir="$ac_optarg" ;;
|
---|
327 |
|
---|
328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
330 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
331 | | --sha | --sh)
|
---|
332 | ac_prev=sharedstatedir ;;
|
---|
333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
336 | | --sha=* | --sh=*)
|
---|
337 | sharedstatedir="$ac_optarg" ;;
|
---|
338 |
|
---|
339 | -site | --site | --sit)
|
---|
340 | ac_prev=site ;;
|
---|
341 | -site=* | --site=* | --sit=*)
|
---|
342 | site="$ac_optarg" ;;
|
---|
343 |
|
---|
344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
345 | ac_prev=srcdir ;;
|
---|
346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
347 | srcdir="$ac_optarg" ;;
|
---|
348 |
|
---|
349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
350 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
351 | ac_prev=sysconfdir ;;
|
---|
352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
354 | sysconfdir="$ac_optarg" ;;
|
---|
355 |
|
---|
356 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
357 | ac_prev=target ;;
|
---|
358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
359 | target="$ac_optarg" ;;
|
---|
360 |
|
---|
361 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
362 | verbose=yes ;;
|
---|
363 |
|
---|
364 | -version | --version | --versio | --versi | --vers)
|
---|
365 | echo "configure generated by autoconf version 2.13"
|
---|
366 | exit 0 ;;
|
---|
367 |
|
---|
368 | -with-* | --with-*)
|
---|
369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
370 | # Reject names that are not valid shell variable names.
|
---|
371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
373 | fi
|
---|
374 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
375 | case "$ac_option" in
|
---|
376 | *=*) ;;
|
---|
377 | *) ac_optarg=yes ;;
|
---|
378 | esac
|
---|
379 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
380 |
|
---|
381 | -without-* | --without-*)
|
---|
382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
383 | # Reject names that are not valid shell variable names.
|
---|
384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
386 | fi
|
---|
387 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
388 | eval "with_${ac_package}=no" ;;
|
---|
389 |
|
---|
390 | --x)
|
---|
391 | # Obsolete; use --with-x.
|
---|
392 | with_x=yes ;;
|
---|
393 |
|
---|
394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
395 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
396 | ac_prev=x_includes ;;
|
---|
397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
399 | x_includes="$ac_optarg" ;;
|
---|
400 |
|
---|
401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
403 | ac_prev=x_libraries ;;
|
---|
404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
406 | x_libraries="$ac_optarg" ;;
|
---|
407 |
|
---|
408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
409 | ;;
|
---|
410 |
|
---|
411 | *)
|
---|
412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
413 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
414 | fi
|
---|
415 | if test "x$nonopt" != xNONE; then
|
---|
416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
417 | fi
|
---|
418 | nonopt="$ac_option"
|
---|
419 | ;;
|
---|
420 |
|
---|
421 | esac
|
---|
422 | done
|
---|
423 |
|
---|
424 | if test -n "$ac_prev"; then
|
---|
425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
426 | fi
|
---|
427 |
|
---|
428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
429 |
|
---|
430 | # File descriptor usage:
|
---|
431 | # 0 standard input
|
---|
432 | # 1 file creation
|
---|
433 | # 2 errors and warnings
|
---|
434 | # 3 some systems may open it to /dev/tty
|
---|
435 | # 4 used on the Kubota Titan
|
---|
436 | # 6 checking for... messages and results
|
---|
437 | # 5 compiler messages saved in config.log
|
---|
438 | if test "$silent" = yes; then
|
---|
439 | exec 6>/dev/null
|
---|
440 | else
|
---|
441 | exec 6>&1
|
---|
442 | fi
|
---|
443 | exec 5>./config.log
|
---|
444 |
|
---|
445 | echo "\
|
---|
446 | This file contains any messages produced by compilers while
|
---|
447 | running configure, to aid debugging if configure makes a mistake.
|
---|
448 | " 1>&5
|
---|
449 |
|
---|
450 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
451 | # Also quote any args containing shell metacharacters.
|
---|
452 | ac_configure_args=
|
---|
453 | for ac_arg
|
---|
454 | do
|
---|
455 | case "$ac_arg" in
|
---|
456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
457 | | --no-cr | --no-c) ;;
|
---|
458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
463 | esac
|
---|
464 | done
|
---|
465 |
|
---|
466 | # NLS nuisances.
|
---|
467 | # Only set these to C if already set. These must not be set unconditionally
|
---|
468 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
470 | # Non-C LC_CTYPE values break the ctype check.
|
---|
471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
475 |
|
---|
476 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
477 | rm -rf conftest* confdefs.h
|
---|
478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
479 | echo > confdefs.h
|
---|
480 |
|
---|
481 | # A filename unique to this package, relative to the directory that
|
---|
482 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
483 | ac_unique_file=ldmain.c
|
---|
484 |
|
---|
485 | # Find the source files, if location was not specified.
|
---|
486 | if test -z "$srcdir"; then
|
---|
487 | ac_srcdir_defaulted=yes
|
---|
488 | # Try the directory containing this script, then its parent.
|
---|
489 | ac_prog=$0
|
---|
490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
492 | srcdir=$ac_confdir
|
---|
493 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
494 | srcdir=..
|
---|
495 | fi
|
---|
496 | else
|
---|
497 | ac_srcdir_defaulted=no
|
---|
498 | fi
|
---|
499 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
500 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
502 | else
|
---|
503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
504 | fi
|
---|
505 | fi
|
---|
506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
507 |
|
---|
508 | # Prefer explicitly selected file to automatically selected ones.
|
---|
509 | if test -z "$CONFIG_SITE"; then
|
---|
510 | if test "x$prefix" != xNONE; then
|
---|
511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
512 | else
|
---|
513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
514 | fi
|
---|
515 | fi
|
---|
516 | for ac_site_file in $CONFIG_SITE; do
|
---|
517 | if test -r "$ac_site_file"; then
|
---|
518 | echo "loading site script $ac_site_file"
|
---|
519 | . "$ac_site_file"
|
---|
520 | fi
|
---|
521 | done
|
---|
522 |
|
---|
523 | if test -r "$cache_file"; then
|
---|
524 | echo "loading cache $cache_file"
|
---|
525 | . $cache_file
|
---|
526 | else
|
---|
527 | echo "creating cache $cache_file"
|
---|
528 | > $cache_file
|
---|
529 | fi
|
---|
530 |
|
---|
531 | ac_ext=c
|
---|
532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
533 | ac_cpp='$CPP $CPPFLAGS'
|
---|
534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
536 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
537 |
|
---|
538 | ac_exeext=
|
---|
539 | ac_objext=o
|
---|
540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
541 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
543 | ac_n= ac_c='
|
---|
544 | ' ac_t=' '
|
---|
545 | else
|
---|
546 | ac_n=-n ac_c= ac_t=
|
---|
547 | fi
|
---|
548 | else
|
---|
549 | ac_n= ac_c='\c' ac_t=
|
---|
550 | fi
|
---|
551 |
|
---|
552 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
---|
553 | echo "configure:554: checking for path separator" >&5
|
---|
554 | # Filter path to get backslahes into forwardslashes
|
---|
555 | case "`uname -s 2> /dev/null`" in
|
---|
556 | OS/2)
|
---|
557 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
---|
558 | PATH_IFS=';'
|
---|
559 | ;;
|
---|
560 | *)
|
---|
561 | PATH_IFS=':'
|
---|
562 | ;;
|
---|
563 | esac
|
---|
564 | echo "$ac_t""${PATH_IFS}" 1>&6
|
---|
565 |
|
---|
566 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
567 | echo "configure:568: checking for Cygwin environment" >&5
|
---|
568 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
569 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
570 | else
|
---|
571 | cat > conftest.$ac_ext <<EOF
|
---|
572 | #line 573 "configure"
|
---|
573 | #include "confdefs.h"
|
---|
574 |
|
---|
575 | int main() {
|
---|
576 |
|
---|
577 | #ifndef __CYGWIN__
|
---|
578 | #define __CYGWIN__ __CYGWIN32__
|
---|
579 | #endif
|
---|
580 | return __CYGWIN__;
|
---|
581 | ; return 0; }
|
---|
582 | EOF
|
---|
583 | if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
584 | rm -rf conftest*
|
---|
585 | ac_cv_cygwin=yes
|
---|
586 | else
|
---|
587 | echo "configure: failed program was:" >&5
|
---|
588 | cat conftest.$ac_ext >&5
|
---|
589 | rm -rf conftest*
|
---|
590 | ac_cv_cygwin=no
|
---|
591 | fi
|
---|
592 | rm -f conftest*
|
---|
593 | rm -f conftest*
|
---|
594 | fi
|
---|
595 |
|
---|
596 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
597 | CYGWIN=
|
---|
598 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
599 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
600 | echo "configure:601: checking for mingw32 environment" >&5
|
---|
601 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
602 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
603 | else
|
---|
604 | cat > conftest.$ac_ext <<EOF
|
---|
605 | #line 606 "configure"
|
---|
606 | #include "confdefs.h"
|
---|
607 |
|
---|
608 | int main() {
|
---|
609 | return __MINGW32__;
|
---|
610 | ; return 0; }
|
---|
611 | EOF
|
---|
612 | if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
613 | rm -rf conftest*
|
---|
614 | ac_cv_mingw32=yes
|
---|
615 | else
|
---|
616 | echo "configure: failed program was:" >&5
|
---|
617 | cat conftest.$ac_ext >&5
|
---|
618 | rm -rf conftest*
|
---|
619 | ac_cv_mingw32=no
|
---|
620 | fi
|
---|
621 | rm -f conftest*
|
---|
622 | rm -f conftest*
|
---|
623 | fi
|
---|
624 |
|
---|
625 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
626 | MINGW32=
|
---|
627 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
628 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
---|
629 | echo "configure:630: checking for EMX/OS2 environment" >&5
|
---|
630 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
---|
631 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
632 | else
|
---|
633 | : ${CC=gcc.exe}
|
---|
634 | cat > conftest.$ac_ext <<EOF
|
---|
635 | #line 636 "configure"
|
---|
636 | #include "confdefs.h"
|
---|
637 |
|
---|
638 | int main() {
|
---|
639 | return __EMX__;
|
---|
640 | ; return 0; }
|
---|
641 | EOF
|
---|
642 | if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
643 | rm -rf conftest*
|
---|
644 | ac_cv_emxos2=yes
|
---|
645 | else
|
---|
646 | echo "configure: failed program was:" >&5
|
---|
647 | cat conftest.$ac_ext >&5
|
---|
648 | rm -rf conftest*
|
---|
649 | ac_cv_emxos2=no
|
---|
650 | fi
|
---|
651 | rm -f conftest*
|
---|
652 | rm -f conftest*
|
---|
653 | fi
|
---|
654 |
|
---|
655 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
---|
656 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
---|
657 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
658 | else
|
---|
659 | if test "$ac_cv_emxos2" = yes ; then
|
---|
660 | ac_cv_libpre=
|
---|
661 | else
|
---|
662 | ac_cv_libpre=lib
|
---|
663 | fi
|
---|
664 |
|
---|
665 | fi
|
---|
666 |
|
---|
667 | EMXOS2=
|
---|
668 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
---|
669 |
|
---|
670 |
|
---|
671 |
|
---|
672 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
673 | echo "configure:674: checking for executable suffix" >&5
|
---|
674 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
675 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
676 | else
|
---|
677 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
678 | ac_cv_exeext=.exe
|
---|
679 | else
|
---|
680 | rm -f conftest*
|
---|
681 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
682 | ac_cv_exeext=
|
---|
683 | if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
684 | for file in conftest.*; do
|
---|
685 | case $file in
|
---|
686 | *.c | *.o | *.obj) ;;
|
---|
687 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
688 | esac
|
---|
689 | done
|
---|
690 | else
|
---|
691 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
692 | fi
|
---|
693 | rm -f conftest*
|
---|
694 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
695 | fi
|
---|
696 | fi
|
---|
697 |
|
---|
698 | EXEEXT=""
|
---|
699 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
700 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
701 | ac_exeext=$EXEEXT
|
---|
702 |
|
---|
703 |
|
---|
704 |
|
---|
705 | ac_aux_dir=
|
---|
706 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
707 | if test -f $ac_dir/install-sh; then
|
---|
708 | ac_aux_dir=$ac_dir
|
---|
709 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
710 | break
|
---|
711 | elif test -f $ac_dir/install.sh; then
|
---|
712 | ac_aux_dir=$ac_dir
|
---|
713 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
714 | break
|
---|
715 | fi
|
---|
716 | done
|
---|
717 | if test -z "$ac_aux_dir"; then
|
---|
718 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
719 | fi
|
---|
720 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
721 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
722 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
723 |
|
---|
724 |
|
---|
725 | # Do some error checking and defaulting for the host and target type.
|
---|
726 | # The inputs are:
|
---|
727 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
728 | #
|
---|
729 | # The rules are:
|
---|
730 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
731 | # same time.
|
---|
732 | # 2. Host defaults to nonopt.
|
---|
733 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
734 | # as determined by config.guess.
|
---|
735 | # 4. Target and build default to nonopt.
|
---|
736 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
737 |
|
---|
738 | # The aliases save the names the user supplied, while $host etc.
|
---|
739 | # will get canonicalized.
|
---|
740 | case $host---$target---$nonopt in
|
---|
741 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
742 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
743 | esac
|
---|
744 |
|
---|
745 |
|
---|
746 | # Make sure we can run config.sub.
|
---|
747 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
748 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
749 | fi
|
---|
750 |
|
---|
751 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
752 | echo "configure:753: checking host system type" >&5
|
---|
753 |
|
---|
754 | host_alias=$host
|
---|
755 | case "$host_alias" in
|
---|
756 | NONE)
|
---|
757 | case $nonopt in
|
---|
758 | NONE)
|
---|
759 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
760 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
761 | fi ;;
|
---|
762 | *) host_alias=$nonopt ;;
|
---|
763 | esac ;;
|
---|
764 | esac
|
---|
765 |
|
---|
766 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
767 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
768 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
769 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
770 | echo "$ac_t""$host" 1>&6
|
---|
771 |
|
---|
772 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
773 | echo "configure:774: checking target system type" >&5
|
---|
774 |
|
---|
775 | target_alias=$target
|
---|
776 | case "$target_alias" in
|
---|
777 | NONE)
|
---|
778 | case $nonopt in
|
---|
779 | NONE) target_alias=$host_alias ;;
|
---|
780 | *) target_alias=$nonopt ;;
|
---|
781 | esac ;;
|
---|
782 | esac
|
---|
783 |
|
---|
784 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
785 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
786 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
787 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
788 | echo "$ac_t""$target" 1>&6
|
---|
789 |
|
---|
790 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
791 | echo "configure:792: checking build system type" >&5
|
---|
792 |
|
---|
793 | build_alias=$build
|
---|
794 | case "$build_alias" in
|
---|
795 | NONE)
|
---|
796 | case $nonopt in
|
---|
797 | NONE) build_alias=$host_alias ;;
|
---|
798 | *) build_alias=$nonopt ;;
|
---|
799 | esac ;;
|
---|
800 | esac
|
---|
801 |
|
---|
802 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
803 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
804 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
805 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
806 | echo "$ac_t""$build" 1>&6
|
---|
807 |
|
---|
808 | test "$host_alias" != "$target_alias" &&
|
---|
809 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
810 | NONENONEs,x,x, &&
|
---|
811 | program_prefix=${target_alias}-
|
---|
812 |
|
---|
813 |
|
---|
814 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
|
---|
815 | echo "configure:816: checking for strerror in -lcposix" >&5
|
---|
816 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
|
---|
817 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
818 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
819 | else
|
---|
820 | ac_save_LIBS="$LIBS"
|
---|
821 | LIBS="-lcposix $LIBS"
|
---|
822 | cat > conftest.$ac_ext <<EOF
|
---|
823 | #line 824 "configure"
|
---|
824 | #include "confdefs.h"
|
---|
825 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
826 | /* We use char because int might match the return type of a gcc2
|
---|
827 | builtin and then its argument prototype would still apply. */
|
---|
828 | char strerror();
|
---|
829 |
|
---|
830 | int main() {
|
---|
831 | strerror()
|
---|
832 | ; return 0; }
|
---|
833 | EOF
|
---|
834 | if { (eval echo configure:835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
835 | rm -rf conftest*
|
---|
836 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
837 | else
|
---|
838 | echo "configure: failed program was:" >&5
|
---|
839 | cat conftest.$ac_ext >&5
|
---|
840 | rm -rf conftest*
|
---|
841 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
842 | fi
|
---|
843 | rm -f conftest*
|
---|
844 | LIBS="$ac_save_LIBS"
|
---|
845 |
|
---|
846 | fi
|
---|
847 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
848 | echo "$ac_t""yes" 1>&6
|
---|
849 | LIBS="$LIBS -lcposix"
|
---|
850 | else
|
---|
851 | echo "$ac_t""no" 1>&6
|
---|
852 | fi
|
---|
853 |
|
---|
854 |
|
---|
855 |
|
---|
856 |
|
---|
857 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
---|
858 | # Find a good install program. We prefer a C program (faster),
|
---|
859 | # so one script is as good as another. But avoid the broken or
|
---|
860 | # incompatible versions:
|
---|
861 | # SysV /etc/install, /usr/sbin/install
|
---|
862 | # SunOS /usr/etc/install
|
---|
863 | # IRIX /sbin/install
|
---|
864 | # AIX /bin/install
|
---|
865 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
866 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
867 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
868 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
869 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
870 | echo "configure:871: checking for a BSD compatible install" >&5
|
---|
871 | if test -z "$INSTALL"; then
|
---|
872 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
873 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
874 | else
|
---|
875 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
876 | for ac_dir in $PATH; do
|
---|
877 | # Account for people who put trailing slashes in PATH elements.
|
---|
878 | case "$ac_dir/" in
|
---|
879 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
880 | # We reject the install program from OS/2 or W3.1
|
---|
881 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
882 | *)
|
---|
883 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
884 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
885 | # by default.
|
---|
886 | for ac_prog in ginstall scoinst install; do
|
---|
887 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
888 | if test $ac_prog = install &&
|
---|
889 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
890 | # AIX install. It has an incompatible calling convention.
|
---|
891 | :
|
---|
892 | else
|
---|
893 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
894 | break 2
|
---|
895 | fi
|
---|
896 | fi
|
---|
897 | done
|
---|
898 | ;;
|
---|
899 | esac
|
---|
900 | done
|
---|
901 | IFS="$ac_save_IFS"
|
---|
902 |
|
---|
903 | fi
|
---|
904 | if test "${ac_cv_path_install+set}" = set; then
|
---|
905 | INSTALL="$ac_cv_path_install"
|
---|
906 | else
|
---|
907 | # As a last resort, use the slow shell script. We don't cache a
|
---|
908 | # path for INSTALL within a source directory, because that will
|
---|
909 | # break other packages using the cache if that directory is
|
---|
910 | # removed, or if the path is relative.
|
---|
911 | INSTALL="$ac_install_sh"
|
---|
912 | fi
|
---|
913 | fi
|
---|
914 | echo "$ac_t""$INSTALL" 1>&6
|
---|
915 |
|
---|
916 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
917 | # It thinks the first close brace ends the variable substitution.
|
---|
918 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
919 |
|
---|
920 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
921 |
|
---|
922 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
923 |
|
---|
924 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
925 | echo "configure:926: checking whether build environment is sane" >&5
|
---|
926 | # Just in case
|
---|
927 | sleep 1
|
---|
928 | echo timestamp > conftestfile
|
---|
929 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
930 | # arguments. Must try -L first in case configure is actually a
|
---|
931 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
932 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
933 | # directory).
|
---|
934 | if (
|
---|
935 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
936 | if test "$*" = "X"; then
|
---|
937 | # -L didn't work.
|
---|
938 | set X `ls -t $srcdir/configure conftestfile`
|
---|
939 | fi
|
---|
940 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
941 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
942 |
|
---|
943 | # If neither matched, then we have a broken ls. This can happen
|
---|
944 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
945 | # broken ls alias from the environment. This has actually
|
---|
946 | # happened. Such a system could not be considered "sane".
|
---|
947 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
948 | alias in your environment" 1>&2; exit 1; }
|
---|
949 | fi
|
---|
950 |
|
---|
951 | test "$2" = conftestfile
|
---|
952 | )
|
---|
953 | then
|
---|
954 | # Ok.
|
---|
955 | :
|
---|
956 | else
|
---|
957 | { echo "configure: error: newly created file is older than distributed files!
|
---|
958 | Check your system clock" 1>&2; exit 1; }
|
---|
959 | fi
|
---|
960 | rm -f conftest*
|
---|
961 | echo "$ac_t""yes" 1>&6
|
---|
962 | if test "$program_transform_name" = s,x,x,; then
|
---|
963 | program_transform_name=
|
---|
964 | else
|
---|
965 | # Double any \ or $. echo might interpret backslashes.
|
---|
966 | cat <<\EOF_SED > conftestsed
|
---|
967 | s,\\,\\\\,g; s,\$,$$,g
|
---|
968 | EOF_SED
|
---|
969 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
970 | rm -f conftestsed
|
---|
971 | fi
|
---|
972 | test "$program_prefix" != NONE &&
|
---|
973 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
974 | # Use a double $ so make ignores it.
|
---|
975 | test "$program_suffix" != NONE &&
|
---|
976 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
977 |
|
---|
978 | # sed with no file args requires a program.
|
---|
979 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
980 |
|
---|
981 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
982 | echo "configure:983: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
983 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
984 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
985 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
986 | else
|
---|
987 | cat > conftestmake <<\EOF
|
---|
988 | all:
|
---|
989 | @echo 'ac_maketemp="${MAKE}"'
|
---|
990 | EOF
|
---|
991 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
992 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
993 | if test -n "$ac_maketemp"; then
|
---|
994 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
995 | else
|
---|
996 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
997 | fi
|
---|
998 | rm -f conftestmake
|
---|
999 | fi
|
---|
1000 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1001 | echo "$ac_t""yes" 1>&6
|
---|
1002 | SET_MAKE=
|
---|
1003 | else
|
---|
1004 | echo "$ac_t""no" 1>&6
|
---|
1005 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1006 | fi
|
---|
1007 |
|
---|
1008 |
|
---|
1009 | PACKAGE=ld
|
---|
1010 |
|
---|
1011 | VERSION=${BFD_VERSION}
|
---|
1012 |
|
---|
1013 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1014 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1015 | fi
|
---|
1016 | cat >> confdefs.h <<EOF
|
---|
1017 | #define PACKAGE "$PACKAGE"
|
---|
1018 | EOF
|
---|
1019 |
|
---|
1020 | cat >> confdefs.h <<EOF
|
---|
1021 | #define VERSION "$VERSION"
|
---|
1022 | EOF
|
---|
1023 |
|
---|
1024 |
|
---|
1025 |
|
---|
1026 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1027 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
1028 | echo "configure:1029: checking for working aclocal" >&5
|
---|
1029 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1030 | # an executable is not found, even if stderr is redirected.
|
---|
1031 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1032 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
1033 | ACLOCAL=aclocal
|
---|
1034 | echo "$ac_t""found" 1>&6
|
---|
1035 | else
|
---|
1036 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
1037 | echo "$ac_t""missing" 1>&6
|
---|
1038 | fi
|
---|
1039 |
|
---|
1040 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1041 | echo "configure:1042: checking for working autoconf" >&5
|
---|
1042 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1043 | # an executable is not found, even if stderr is redirected.
|
---|
1044 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1045 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1046 | AUTOCONF=autoconf
|
---|
1047 | echo "$ac_t""found" 1>&6
|
---|
1048 | else
|
---|
1049 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1050 | echo "$ac_t""missing" 1>&6
|
---|
1051 | fi
|
---|
1052 |
|
---|
1053 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
1054 | echo "configure:1055: checking for working automake" >&5
|
---|
1055 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1056 | # an executable is not found, even if stderr is redirected.
|
---|
1057 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1058 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
1059 | AUTOMAKE=automake
|
---|
1060 | echo "$ac_t""found" 1>&6
|
---|
1061 | else
|
---|
1062 | AUTOMAKE="$missing_dir/missing automake"
|
---|
1063 | echo "$ac_t""missing" 1>&6
|
---|
1064 | fi
|
---|
1065 |
|
---|
1066 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1067 | echo "configure:1068: checking for working autoheader" >&5
|
---|
1068 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1069 | # an executable is not found, even if stderr is redirected.
|
---|
1070 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1071 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1072 | AUTOHEADER=autoheader
|
---|
1073 | echo "$ac_t""found" 1>&6
|
---|
1074 | else
|
---|
1075 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1076 | echo "$ac_t""missing" 1>&6
|
---|
1077 | fi
|
---|
1078 |
|
---|
1079 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1080 | echo "configure:1081: checking for working makeinfo" >&5
|
---|
1081 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1082 | # an executable is not found, even if stderr is redirected.
|
---|
1083 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1084 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1085 | MAKEINFO=makeinfo
|
---|
1086 | echo "$ac_t""found" 1>&6
|
---|
1087 | else
|
---|
1088 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1089 | echo "$ac_t""missing" 1>&6
|
---|
1090 | fi
|
---|
1091 |
|
---|
1092 |
|
---|
1093 |
|
---|
1094 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1095 | if test "${enable_shared+set}" = set; then
|
---|
1096 | enableval="$enable_shared"
|
---|
1097 | p=${PACKAGE-default}
|
---|
1098 | case $enableval in
|
---|
1099 | yes) enable_shared=yes ;;
|
---|
1100 | no) enable_shared=no ;;
|
---|
1101 | *)
|
---|
1102 | enable_shared=no
|
---|
1103 | # Look at the argument we got. We use all the common list separators.
|
---|
1104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1105 | for pkg in $enableval; do
|
---|
1106 | if test "X$pkg" = "X$p"; then
|
---|
1107 | enable_shared=yes
|
---|
1108 | fi
|
---|
1109 | done
|
---|
1110 | IFS="$ac_save_ifs"
|
---|
1111 | ;;
|
---|
1112 | esac
|
---|
1113 | else
|
---|
1114 | enable_shared=yes
|
---|
1115 | fi
|
---|
1116 |
|
---|
1117 | # Check whether --enable-static or --disable-static was given.
|
---|
1118 | if test "${enable_static+set}" = set; then
|
---|
1119 | enableval="$enable_static"
|
---|
1120 | p=${PACKAGE-default}
|
---|
1121 | case $enableval in
|
---|
1122 | yes) enable_static=yes ;;
|
---|
1123 | no) enable_static=no ;;
|
---|
1124 | *)
|
---|
1125 | enable_static=no
|
---|
1126 | # Look at the argument we got. We use all the common list separators.
|
---|
1127 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1128 | for pkg in $enableval; do
|
---|
1129 | if test "X$pkg" = "X$p"; then
|
---|
1130 | enable_static=yes
|
---|
1131 | fi
|
---|
1132 | done
|
---|
1133 | IFS="$ac_save_ifs"
|
---|
1134 | ;;
|
---|
1135 | esac
|
---|
1136 | else
|
---|
1137 | enable_static=yes
|
---|
1138 | fi
|
---|
1139 |
|
---|
1140 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1141 | if test "${enable_fast_install+set}" = set; then
|
---|
1142 | enableval="$enable_fast_install"
|
---|
1143 | p=${PACKAGE-default}
|
---|
1144 | case $enableval in
|
---|
1145 | yes) enable_fast_install=yes ;;
|
---|
1146 | no) enable_fast_install=no ;;
|
---|
1147 | *)
|
---|
1148 | enable_fast_install=no
|
---|
1149 | # Look at the argument we got. We use all the common list separators.
|
---|
1150 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1151 | for pkg in $enableval; do
|
---|
1152 | if test "X$pkg" = "X$p"; then
|
---|
1153 | enable_fast_install=yes
|
---|
1154 | fi
|
---|
1155 | done
|
---|
1156 | IFS="$ac_save_ifs"
|
---|
1157 | ;;
|
---|
1158 | esac
|
---|
1159 | else
|
---|
1160 | enable_fast_install=yes
|
---|
1161 | fi
|
---|
1162 |
|
---|
1163 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1164 | set dummy gcc; ac_word=$2
|
---|
1165 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1166 | echo "configure:1167: checking for $ac_word" >&5
|
---|
1167 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1168 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1169 | else
|
---|
1170 | if test -n "$CC"; then
|
---|
1171 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1172 | else
|
---|
1173 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1174 | ac_dummy="$PATH"
|
---|
1175 | for ac_dir in $ac_dummy; do
|
---|
1176 | test -z "$ac_dir" && ac_dir=.
|
---|
1177 | if test -f $ac_dir/$ac_word -o \
|
---|
1178 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1179 | ac_cv_prog_CC="gcc"
|
---|
1180 | break
|
---|
1181 | fi
|
---|
1182 | done
|
---|
1183 | IFS="$ac_save_ifs"
|
---|
1184 | fi
|
---|
1185 | fi
|
---|
1186 | CC="$ac_cv_prog_CC"
|
---|
1187 | if test -n "$CC"; then
|
---|
1188 | echo "$ac_t""$CC" 1>&6
|
---|
1189 | else
|
---|
1190 | echo "$ac_t""no" 1>&6
|
---|
1191 | fi
|
---|
1192 |
|
---|
1193 | if test -z "$CC"; then
|
---|
1194 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1195 | set dummy cc; ac_word=$2
|
---|
1196 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1197 | echo "configure:1198: checking for $ac_word" >&5
|
---|
1198 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1199 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1200 | else
|
---|
1201 | if test -n "$CC"; then
|
---|
1202 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1203 | else
|
---|
1204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1205 | ac_prog_rejected=no
|
---|
1206 | ac_dummy="$PATH"
|
---|
1207 | for ac_dir in $ac_dummy; do
|
---|
1208 | test -z "$ac_dir" && ac_dir=.
|
---|
1209 | if test -f $ac_dir/$ac_word -o \
|
---|
1210 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1211 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
1212 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
1213 | ac_prog_rejected=yes
|
---|
1214 | continue
|
---|
1215 | fi
|
---|
1216 | ac_cv_prog_CC="cc"
|
---|
1217 | break
|
---|
1218 | fi
|
---|
1219 | done
|
---|
1220 | IFS="$ac_save_ifs"
|
---|
1221 | if test $ac_prog_rejected = yes; then
|
---|
1222 | # We found a bogon in the path, so make sure we never use it.
|
---|
1223 | set dummy $ac_cv_prog_CC
|
---|
1224 | shift
|
---|
1225 | if test $# -gt 0; then
|
---|
1226 | # We chose a different compiler from the bogus one.
|
---|
1227 | # However, it has the same basename, so the bogon will be chosen
|
---|
1228 | # first if we set CC to just the basename; use the full file name.
|
---|
1229 | shift
|
---|
1230 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
1231 | shift
|
---|
1232 | ac_cv_prog_CC="$@"
|
---|
1233 | fi
|
---|
1234 | fi
|
---|
1235 | fi
|
---|
1236 | fi
|
---|
1237 | CC="$ac_cv_prog_CC"
|
---|
1238 | if test -n "$CC"; then
|
---|
1239 | echo "$ac_t""$CC" 1>&6
|
---|
1240 | else
|
---|
1241 | echo "$ac_t""no" 1>&6
|
---|
1242 | fi
|
---|
1243 |
|
---|
1244 | if test -z "$CC"; then
|
---|
1245 | case "`uname -s`" in
|
---|
1246 | *win32* | *WIN32*)
|
---|
1247 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
1248 | set dummy cl; ac_word=$2
|
---|
1249 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1250 | echo "configure:1251: checking for $ac_word" >&5
|
---|
1251 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1252 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1253 | else
|
---|
1254 | if test -n "$CC"; then
|
---|
1255 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1256 | else
|
---|
1257 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1258 | ac_dummy="$PATH"
|
---|
1259 | for ac_dir in $ac_dummy; do
|
---|
1260 | test -z "$ac_dir" && ac_dir=.
|
---|
1261 | if test -f $ac_dir/$ac_word -o \
|
---|
1262 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1263 | ac_cv_prog_CC="cl"
|
---|
1264 | break
|
---|
1265 | fi
|
---|
1266 | done
|
---|
1267 | IFS="$ac_save_ifs"
|
---|
1268 | fi
|
---|
1269 | fi
|
---|
1270 | CC="$ac_cv_prog_CC"
|
---|
1271 | if test -n "$CC"; then
|
---|
1272 | echo "$ac_t""$CC" 1>&6
|
---|
1273 | else
|
---|
1274 | echo "$ac_t""no" 1>&6
|
---|
1275 | fi
|
---|
1276 | ;;
|
---|
1277 | esac
|
---|
1278 | fi
|
---|
1279 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
1280 | fi
|
---|
1281 |
|
---|
1282 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
1283 | echo "configure:1284: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
1284 |
|
---|
1285 | ac_ext=c
|
---|
1286 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1287 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1288 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1289 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1290 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1291 |
|
---|
1292 | cat > conftest.$ac_ext << EOF
|
---|
1293 |
|
---|
1294 | #line 1295 "configure"
|
---|
1295 | #include "confdefs.h"
|
---|
1296 |
|
---|
1297 | main(){return(0);}
|
---|
1298 | EOF
|
---|
1299 | if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1300 | ac_cv_prog_cc_works=yes
|
---|
1301 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
1302 | if (./conftest; exit) 2>/dev/null; then
|
---|
1303 | ac_cv_prog_cc_cross=no
|
---|
1304 | else
|
---|
1305 | ac_cv_prog_cc_cross=yes
|
---|
1306 | fi
|
---|
1307 | else
|
---|
1308 | echo "configure: failed program was:" >&5
|
---|
1309 | cat conftest.$ac_ext >&5
|
---|
1310 | ac_cv_prog_cc_works=no
|
---|
1311 | fi
|
---|
1312 | rm -fr conftest*
|
---|
1313 | ac_ext=c
|
---|
1314 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1315 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1316 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1317 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1318 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1319 |
|
---|
1320 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
1321 | if test $ac_cv_prog_cc_works = no; then
|
---|
1322 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
1323 | fi
|
---|
1324 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
1325 | echo "configure:1326: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
1326 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
1327 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1328 |
|
---|
1329 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
1330 | echo "configure:1331: checking whether we are using GNU C" >&5
|
---|
1331 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
1332 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1333 | else
|
---|
1334 | cat > conftest.c <<EOF
|
---|
1335 | #ifdef __GNUC__
|
---|
1336 | yes;
|
---|
1337 | #endif
|
---|
1338 | EOF
|
---|
1339 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1340 | ac_cv_prog_gcc=yes
|
---|
1341 | else
|
---|
1342 | ac_cv_prog_gcc=no
|
---|
1343 | fi
|
---|
1344 | fi
|
---|
1345 |
|
---|
1346 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
1347 |
|
---|
1348 | if test $ac_cv_prog_gcc = yes; then
|
---|
1349 | GCC=yes
|
---|
1350 | else
|
---|
1351 | GCC=
|
---|
1352 | fi
|
---|
1353 |
|
---|
1354 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
1355 | ac_save_CFLAGS="$CFLAGS"
|
---|
1356 | CFLAGS=
|
---|
1357 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1358 | echo "configure:1359: checking whether ${CC-cc} accepts -g" >&5
|
---|
1359 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1360 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1361 | else
|
---|
1362 | echo 'void f(){}' > conftest.c
|
---|
1363 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1364 | ac_cv_prog_cc_g=yes
|
---|
1365 | else
|
---|
1366 | ac_cv_prog_cc_g=no
|
---|
1367 | fi
|
---|
1368 | rm -f conftest*
|
---|
1369 |
|
---|
1370 | fi
|
---|
1371 |
|
---|
1372 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1373 | if test "$ac_test_CFLAGS" = set; then
|
---|
1374 | CFLAGS="$ac_save_CFLAGS"
|
---|
1375 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1376 | if test "$GCC" = yes; then
|
---|
1377 | CFLAGS="-g -O2"
|
---|
1378 | else
|
---|
1379 | CFLAGS="-g"
|
---|
1380 | fi
|
---|
1381 | else
|
---|
1382 | if test "$GCC" = yes; then
|
---|
1383 | CFLAGS="-O2"
|
---|
1384 | else
|
---|
1385 | CFLAGS=
|
---|
1386 | fi
|
---|
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 "$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 '$''{'lt_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 | lt_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 "$lt_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 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1458 | fi
|
---|
1459 | fi
|
---|
1460 |
|
---|
1461 | LD="$lt_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 '$''{'lt_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 | lt_cv_prog_gnu_ld=yes
|
---|
1476 | else
|
---|
1477 | lt_cv_prog_gnu_ld=no
|
---|
1478 | fi
|
---|
1479 | fi
|
---|
1480 |
|
---|
1481 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
---|
1482 | with_gnu_ld=$lt_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 '$''{'lt_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 | lt_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 | lt_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 | lt_cv_path_NM="$tmp_nm -p"
|
---|
1520 | break
|
---|
1521 | else
|
---|
1522 | lt_cv_path_NM=${lt_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 "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
1529 | fi
|
---|
1530 | fi
|
---|
1531 |
|
---|
1532 | NM="$lt_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 | echo A > conftestdata;
|
---|
1547 | if ln conftestdata conftestdata2 2>/dev/null; then
|
---|
1548 | ac_cv_prog_LN_S=ln
|
---|
1549 | else
|
---|
1550 | ac_cv_prog_LN_S=cp
|
---|
1551 | fi
|
---|
1552 | fi
|
---|
1553 | rm -f conftestdata*
|
---|
1554 | fi
|
---|
1555 | LN_S="$ac_cv_prog_LN_S"
|
---|
1556 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1557 | echo "$ac_t""yes" 1>&6
|
---|
1558 | else
|
---|
1559 | echo "$ac_t""no" 1>&6
|
---|
1560 | fi
|
---|
1561 |
|
---|
1562 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1563 | echo "configure:1564: checking how to recognise dependant libraries" >&5
|
---|
1564 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1565 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1566 | else
|
---|
1567 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1568 | lt_cv_file_magic_test_file=
|
---|
1569 | lt_cv_deplibs_check_method='unknown'
|
---|
1570 | # Need to set the preceding variable on all platforms that support
|
---|
1571 | # interlibrary dependencies.
|
---|
1572 | # 'none' -- dependencies not supported.
|
---|
1573 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1574 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1575 | # 'test_compile' -- check by making test program.
|
---|
1576 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1577 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1578 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1579 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1580 |
|
---|
1581 | case $host_os in
|
---|
1582 | aix*)
|
---|
1583 | lt_cv_deplibs_check_method=pass_all
|
---|
1584 | ;;
|
---|
1585 |
|
---|
1586 | beos*)
|
---|
1587 | lt_cv_deplibs_check_method=pass_all
|
---|
1588 | ;;
|
---|
1589 |
|
---|
1590 | bsdi4*)
|
---|
1591 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1592 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1593 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1594 | ;;
|
---|
1595 |
|
---|
1596 | cygwin* | mingw* |pw32*)
|
---|
1597 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1598 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1599 | ;;
|
---|
1600 |
|
---|
1601 | darwin* | rhapsody*)
|
---|
1602 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
---|
1603 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1604 | case "$host_os" in
|
---|
1605 | rhapsody* | darwin1.012)
|
---|
1606 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
---|
1607 | ;;
|
---|
1608 | *) # Darwin 1.3 on
|
---|
1609 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
---|
1610 | ;;
|
---|
1611 | esac
|
---|
1612 | ;;
|
---|
1613 |
|
---|
1614 | freebsd* )
|
---|
1615 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1616 | case $host_cpu in
|
---|
1617 | i*86 )
|
---|
1618 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1619 | # Let's accept both of them until this is cleared up.
|
---|
1620 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1621 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1622 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1623 | ;;
|
---|
1624 | esac
|
---|
1625 | else
|
---|
1626 | lt_cv_deplibs_check_method=pass_all
|
---|
1627 | fi
|
---|
1628 | ;;
|
---|
1629 |
|
---|
1630 | gnu*)
|
---|
1631 | lt_cv_deplibs_check_method=pass_all
|
---|
1632 | ;;
|
---|
1633 |
|
---|
1634 | hpux10.20*|hpux11*)
|
---|
1635 | case $host_cpu in
|
---|
1636 | hppa*)
|
---|
1637 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
1638 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1639 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1640 | ;;
|
---|
1641 | ia64*)
|
---|
1642 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
1643 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1644 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
1645 | ;;
|
---|
1646 | esac
|
---|
1647 | ;;
|
---|
1648 |
|
---|
1649 | irix5* | irix6*)
|
---|
1650 | case $host_os in
|
---|
1651 | irix5*)
|
---|
1652 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1653 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1654 | ;;
|
---|
1655 | *)
|
---|
1656 | case $LD in
|
---|
1657 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1658 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1659 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1660 | *) libmagic=never-match;;
|
---|
1661 | esac
|
---|
1662 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1663 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1664 | ;;
|
---|
1665 | esac
|
---|
1666 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1667 | lt_cv_deplibs_check_method=pass_all
|
---|
1668 | ;;
|
---|
1669 |
|
---|
1670 | # This must be Linux ELF.
|
---|
1671 | linux-gnu*)
|
---|
1672 | case $host_cpu in
|
---|
1673 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1674 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1675 | *)
|
---|
1676 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1677 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1678 | esac
|
---|
1679 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1680 | ;;
|
---|
1681 |
|
---|
1682 | netbsd*)
|
---|
1683 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1684 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
---|
1685 | else
|
---|
1686 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
---|
1687 | fi
|
---|
1688 | ;;
|
---|
1689 |
|
---|
1690 | os2*)
|
---|
1691 | lt_cv_deplibs_check_method=pass_all
|
---|
1692 | ;;
|
---|
1693 |
|
---|
1694 | newsos6)
|
---|
1695 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
1696 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1697 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
1698 | ;;
|
---|
1699 |
|
---|
1700 | osf3* | osf4* | osf5*)
|
---|
1701 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1702 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1703 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1704 | lt_cv_deplibs_check_method=pass_all
|
---|
1705 | ;;
|
---|
1706 |
|
---|
1707 | sco3.2v5*)
|
---|
1708 | lt_cv_deplibs_check_method=pass_all
|
---|
1709 | ;;
|
---|
1710 |
|
---|
1711 | solaris*)
|
---|
1712 | lt_cv_deplibs_check_method=pass_all
|
---|
1713 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1714 | ;;
|
---|
1715 |
|
---|
1716 | sysv5uw[78]* | sysv4*uw2*)
|
---|
1717 | lt_cv_deplibs_check_method=pass_all
|
---|
1718 | ;;
|
---|
1719 |
|
---|
1720 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1721 | case $host_vendor in
|
---|
1722 | ncr)
|
---|
1723 | lt_cv_deplibs_check_method=pass_all
|
---|
1724 | ;;
|
---|
1725 | motorola)
|
---|
1726 | 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]'
|
---|
1727 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1728 | ;;
|
---|
1729 | esac
|
---|
1730 | ;;
|
---|
1731 | esac
|
---|
1732 |
|
---|
1733 | fi
|
---|
1734 |
|
---|
1735 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1736 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1737 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1738 |
|
---|
1739 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1740 | echo "configure:1741: checking for object suffix" >&5
|
---|
1741 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1742 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1743 | else
|
---|
1744 | rm -f conftest*
|
---|
1745 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1746 | if { (eval echo configure:1747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1747 | for ac_file in conftest.*; do
|
---|
1748 | case $ac_file in
|
---|
1749 | *.c) ;;
|
---|
1750 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1751 | esac
|
---|
1752 | done
|
---|
1753 | else
|
---|
1754 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1755 | fi
|
---|
1756 | rm -f conftest*
|
---|
1757 | fi
|
---|
1758 |
|
---|
1759 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1760 | OBJEXT=$ac_cv_objext
|
---|
1761 | ac_objext=$ac_cv_objext
|
---|
1762 |
|
---|
1763 | if test $host != $build; then
|
---|
1764 | ac_tool_prefix=${host_alias}-
|
---|
1765 | else
|
---|
1766 | ac_tool_prefix=
|
---|
1767 | fi
|
---|
1768 |
|
---|
1769 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1770 |
|
---|
1771 | # Only perform the check for file, if the check method requires it
|
---|
1772 | case $deplibs_check_method in
|
---|
1773 | file_magic*)
|
---|
1774 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
1775 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1776 | echo "configure:1777: checking for ${ac_tool_prefix}file" >&5
|
---|
1777 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1778 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1779 | else
|
---|
1780 | case $MAGIC_CMD in
|
---|
1781 | /*)
|
---|
1782 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1783 | ;;
|
---|
1784 | ?:/*)
|
---|
1785 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1786 | ;;
|
---|
1787 | *)
|
---|
1788 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1789 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1790 | ac_dummy="/usr/bin:$PATH"
|
---|
1791 | for ac_dir in $ac_dummy; do
|
---|
1792 | test -z "$ac_dir" && ac_dir=.
|
---|
1793 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1794 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
1795 | if test -n "$file_magic_test_file"; then
|
---|
1796 | case $deplibs_check_method in
|
---|
1797 | "file_magic "*)
|
---|
1798 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1799 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1800 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1801 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1802 | :
|
---|
1803 | else
|
---|
1804 | cat <<EOF 1>&2
|
---|
1805 |
|
---|
1806 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1807 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1808 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1809 | *** as such. This will affect the creation of libtool libraries that
|
---|
1810 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1811 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1812 | *** may want to report the problem to your system manager and/or to
|
---|
1813 | *** bug-libtool@gnu.org
|
---|
1814 |
|
---|
1815 | EOF
|
---|
1816 | fi ;;
|
---|
1817 | esac
|
---|
1818 | fi
|
---|
1819 | break
|
---|
1820 | fi
|
---|
1821 | done
|
---|
1822 | IFS="$ac_save_ifs"
|
---|
1823 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1824 | ;;
|
---|
1825 | esac
|
---|
1826 | fi
|
---|
1827 |
|
---|
1828 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1829 | if test -n "$MAGIC_CMD"; then
|
---|
1830 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1831 | else
|
---|
1832 | echo "$ac_t""no" 1>&6
|
---|
1833 | fi
|
---|
1834 |
|
---|
1835 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
1836 | if test -n "$ac_tool_prefix"; then
|
---|
1837 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1838 | echo "configure:1839: checking for file" >&5
|
---|
1839 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1840 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1841 | else
|
---|
1842 | case $MAGIC_CMD in
|
---|
1843 | /*)
|
---|
1844 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1845 | ;;
|
---|
1846 | ?:/*)
|
---|
1847 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1848 | ;;
|
---|
1849 | *)
|
---|
1850 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1851 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1852 | ac_dummy="/usr/bin:$PATH"
|
---|
1853 | for ac_dir in $ac_dummy; do
|
---|
1854 | test -z "$ac_dir" && ac_dir=.
|
---|
1855 | if test -f $ac_dir/file; then
|
---|
1856 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
1857 | if test -n "$file_magic_test_file"; then
|
---|
1858 | case $deplibs_check_method in
|
---|
1859 | "file_magic "*)
|
---|
1860 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1861 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1862 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1863 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1864 | :
|
---|
1865 | else
|
---|
1866 | cat <<EOF 1>&2
|
---|
1867 |
|
---|
1868 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1869 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1870 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1871 | *** as such. This will affect the creation of libtool libraries that
|
---|
1872 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1873 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1874 | *** may want to report the problem to your system manager and/or to
|
---|
1875 | *** bug-libtool@gnu.org
|
---|
1876 |
|
---|
1877 | EOF
|
---|
1878 | fi ;;
|
---|
1879 | esac
|
---|
1880 | fi
|
---|
1881 | break
|
---|
1882 | fi
|
---|
1883 | done
|
---|
1884 | IFS="$ac_save_ifs"
|
---|
1885 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1886 | ;;
|
---|
1887 | esac
|
---|
1888 | fi
|
---|
1889 |
|
---|
1890 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1891 | if test -n "$MAGIC_CMD"; then
|
---|
1892 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1893 | else
|
---|
1894 | echo "$ac_t""no" 1>&6
|
---|
1895 | fi
|
---|
1896 |
|
---|
1897 | else
|
---|
1898 | MAGIC_CMD=:
|
---|
1899 | fi
|
---|
1900 | fi
|
---|
1901 |
|
---|
1902 | fi
|
---|
1903 | ;;
|
---|
1904 | esac
|
---|
1905 |
|
---|
1906 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1907 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1908 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1909 | echo "configure:1910: checking for $ac_word" >&5
|
---|
1910 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1911 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1912 | else
|
---|
1913 | if test -n "$RANLIB"; then
|
---|
1914 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1915 | else
|
---|
1916 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1917 | ac_dummy="$PATH"
|
---|
1918 | for ac_dir in $ac_dummy; do
|
---|
1919 | test -z "$ac_dir" && ac_dir=.
|
---|
1920 | if test -f $ac_dir/$ac_word -o \
|
---|
1921 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1922 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1923 | break
|
---|
1924 | fi
|
---|
1925 | done
|
---|
1926 | IFS="$ac_save_ifs"
|
---|
1927 | fi
|
---|
1928 | fi
|
---|
1929 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1930 | if test -n "$RANLIB"; then
|
---|
1931 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1932 | else
|
---|
1933 | echo "$ac_t""no" 1>&6
|
---|
1934 | fi
|
---|
1935 |
|
---|
1936 |
|
---|
1937 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1938 | if test -n "$ac_tool_prefix"; then
|
---|
1939 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1940 | set dummy ranlib; ac_word=$2
|
---|
1941 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1942 | echo "configure:1943: checking for $ac_word" >&5
|
---|
1943 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1944 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1945 | else
|
---|
1946 | if test -n "$RANLIB"; then
|
---|
1947 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1948 | else
|
---|
1949 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1950 | ac_dummy="$PATH"
|
---|
1951 | for ac_dir in $ac_dummy; do
|
---|
1952 | test -z "$ac_dir" && ac_dir=.
|
---|
1953 | if test -f $ac_dir/$ac_word -o \
|
---|
1954 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1955 | ac_cv_prog_RANLIB="ranlib"
|
---|
1956 | break
|
---|
1957 | fi
|
---|
1958 | done
|
---|
1959 | IFS="$ac_save_ifs"
|
---|
1960 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1961 | fi
|
---|
1962 | fi
|
---|
1963 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1964 | if test -n "$RANLIB"; then
|
---|
1965 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1966 | else
|
---|
1967 | echo "$ac_t""no" 1>&6
|
---|
1968 | fi
|
---|
1969 |
|
---|
1970 | else
|
---|
1971 | RANLIB=":"
|
---|
1972 | fi
|
---|
1973 | fi
|
---|
1974 |
|
---|
1975 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
1976 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
1977 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1978 | echo "configure:1979: checking for $ac_word" >&5
|
---|
1979 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
1980 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1981 | else
|
---|
1982 | if test -n "$STRIP"; then
|
---|
1983 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1984 | else
|
---|
1985 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1986 | ac_dummy="$PATH"
|
---|
1987 | for ac_dir in $ac_dummy; do
|
---|
1988 | test -z "$ac_dir" && ac_dir=.
|
---|
1989 | if test -f $ac_dir/$ac_word -o \
|
---|
1990 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1991 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
1992 | break
|
---|
1993 | fi
|
---|
1994 | done
|
---|
1995 | IFS="$ac_save_ifs"
|
---|
1996 | fi
|
---|
1997 | fi
|
---|
1998 | STRIP="$ac_cv_prog_STRIP"
|
---|
1999 | if test -n "$STRIP"; then
|
---|
2000 | echo "$ac_t""$STRIP" 1>&6
|
---|
2001 | else
|
---|
2002 | echo "$ac_t""no" 1>&6
|
---|
2003 | fi
|
---|
2004 |
|
---|
2005 |
|
---|
2006 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2007 | if test -n "$ac_tool_prefix"; then
|
---|
2008 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2009 | set dummy strip; ac_word=$2
|
---|
2010 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2011 | echo "configure:2012: checking for $ac_word" >&5
|
---|
2012 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2013 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2014 | else
|
---|
2015 | if test -n "$STRIP"; then
|
---|
2016 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2017 | else
|
---|
2018 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2019 | ac_dummy="$PATH"
|
---|
2020 | for ac_dir in $ac_dummy; do
|
---|
2021 | test -z "$ac_dir" && ac_dir=.
|
---|
2022 | if test -f $ac_dir/$ac_word -o \
|
---|
2023 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2024 | ac_cv_prog_STRIP="strip"
|
---|
2025 | break
|
---|
2026 | fi
|
---|
2027 | done
|
---|
2028 | IFS="$ac_save_ifs"
|
---|
2029 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2030 | fi
|
---|
2031 | fi
|
---|
2032 | STRIP="$ac_cv_prog_STRIP"
|
---|
2033 | if test -n "$STRIP"; then
|
---|
2034 | echo "$ac_t""$STRIP" 1>&6
|
---|
2035 | else
|
---|
2036 | echo "$ac_t""no" 1>&6
|
---|
2037 | fi
|
---|
2038 |
|
---|
2039 | else
|
---|
2040 | STRIP=":"
|
---|
2041 | fi
|
---|
2042 | fi
|
---|
2043 |
|
---|
2044 |
|
---|
2045 | # Check for any special flags to pass to ltconfig.
|
---|
2046 | libtool_flags="--cache-file=$cache_file"
|
---|
2047 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2048 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2049 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2050 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2051 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2052 |
|
---|
2053 |
|
---|
2054 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2055 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2056 | enableval="$enable_libtool_lock"
|
---|
2057 | :
|
---|
2058 | fi
|
---|
2059 |
|
---|
2060 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2061 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2062 |
|
---|
2063 | # Check whether --with-pic or --without-pic was given.
|
---|
2064 | if test "${with_pic+set}" = set; then
|
---|
2065 | withval="$with_pic"
|
---|
2066 | pic_mode="$withval"
|
---|
2067 | else
|
---|
2068 | pic_mode=default
|
---|
2069 | fi
|
---|
2070 |
|
---|
2071 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2072 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2073 |
|
---|
2074 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2075 | # libtool support.
|
---|
2076 | case $host in
|
---|
2077 | *-*-irix6*)
|
---|
2078 | # Find out which ABI we are using.
|
---|
2079 | echo '#line 2080 "configure"' > conftest.$ac_ext
|
---|
2080 | if { (eval echo configure:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2081 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
2082 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2083 | *32-bit*)
|
---|
2084 | LD="${LD-ld} -melf32bsmip"
|
---|
2085 | ;;
|
---|
2086 | *N32*)
|
---|
2087 | LD="${LD-ld} -melf32bmipn32"
|
---|
2088 | ;;
|
---|
2089 | *64-bit*)
|
---|
2090 | LD="${LD-ld} -melf64bmip"
|
---|
2091 | ;;
|
---|
2092 | esac
|
---|
2093 | else
|
---|
2094 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2095 | *32-bit*)
|
---|
2096 | LD="${LD-ld} -32"
|
---|
2097 | ;;
|
---|
2098 | *N32*)
|
---|
2099 | LD="${LD-ld} -n32"
|
---|
2100 | ;;
|
---|
2101 | *64-bit*)
|
---|
2102 | LD="${LD-ld} -64"
|
---|
2103 | ;;
|
---|
2104 | esac
|
---|
2105 | fi
|
---|
2106 | fi
|
---|
2107 | rm -rf conftest*
|
---|
2108 | ;;
|
---|
2109 |
|
---|
2110 | ia64-*-hpux*)
|
---|
2111 | # Find out which ABI we are using.
|
---|
2112 | echo 'int i;' > conftest.$ac_ext
|
---|
2113 | if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2114 | case "`/usr/bin/file conftest.o`" in
|
---|
2115 | *ELF-32*)
|
---|
2116 | HPUX_IA64_MODE="32"
|
---|
2117 | ;;
|
---|
2118 | *ELF-64*)
|
---|
2119 | HPUX_IA64_MODE="64"
|
---|
2120 | ;;
|
---|
2121 | esac
|
---|
2122 | fi
|
---|
2123 | rm -rf conftest*
|
---|
2124 | ;;
|
---|
2125 |
|
---|
2126 | *-*-sco3.2v5*)
|
---|
2127 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2128 | SAVE_CFLAGS="$CFLAGS"
|
---|
2129 | CFLAGS="$CFLAGS -belf"
|
---|
2130 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2131 | echo "configure:2132: checking whether the C compiler needs -belf" >&5
|
---|
2132 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2133 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2134 | else
|
---|
2135 |
|
---|
2136 | ac_ext=c
|
---|
2137 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2138 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2139 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2140 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2141 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2142 |
|
---|
2143 | cat > conftest.$ac_ext <<EOF
|
---|
2144 | #line 2145 "configure"
|
---|
2145 | #include "confdefs.h"
|
---|
2146 |
|
---|
2147 | int main() {
|
---|
2148 |
|
---|
2149 | ; return 0; }
|
---|
2150 | EOF
|
---|
2151 | if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2152 | rm -rf conftest*
|
---|
2153 | lt_cv_cc_needs_belf=yes
|
---|
2154 | else
|
---|
2155 | echo "configure: failed program was:" >&5
|
---|
2156 | cat conftest.$ac_ext >&5
|
---|
2157 | rm -rf conftest*
|
---|
2158 | lt_cv_cc_needs_belf=no
|
---|
2159 | fi
|
---|
2160 | rm -f conftest*
|
---|
2161 | ac_ext=c
|
---|
2162 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2163 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2164 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2165 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2166 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2167 |
|
---|
2168 | fi
|
---|
2169 |
|
---|
2170 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2171 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2172 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2173 | CFLAGS="$SAVE_CFLAGS"
|
---|
2174 | fi
|
---|
2175 | ;;
|
---|
2176 |
|
---|
2177 |
|
---|
2178 | esac
|
---|
2179 |
|
---|
2180 |
|
---|
2181 | # Save cache, so that ltconfig can load it
|
---|
2182 | cat > confcache <<\EOF
|
---|
2183 | # This file is a shell script that caches the results of configure
|
---|
2184 | # tests run on this system so they can be shared between configure
|
---|
2185 | # scripts and configure runs. It is not useful on other systems.
|
---|
2186 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2187 | #
|
---|
2188 | # By default, configure uses ./config.cache as the cache file,
|
---|
2189 | # creating it if it does not exist already. You can give configure
|
---|
2190 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2191 | # what configure does when it calls configure scripts in
|
---|
2192 | # subdirectories, so they share the cache.
|
---|
2193 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2194 | # config.status only pays attention to the cache file if you give it the
|
---|
2195 | # --recheck option to rerun configure.
|
---|
2196 | #
|
---|
2197 | EOF
|
---|
2198 | # The following way of writing the cache mishandles newlines in values,
|
---|
2199 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2200 | # So, don't put newlines in cache variables' values.
|
---|
2201 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2202 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2203 | (set) 2>&1 |
|
---|
2204 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2205 | *ac_space=\ *)
|
---|
2206 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2207 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2208 | sed -n \
|
---|
2209 | -e "s/'/'\\\\''/g" \
|
---|
2210 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2211 | ;;
|
---|
2212 | *)
|
---|
2213 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2214 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2215 | ;;
|
---|
2216 | esac >> confcache
|
---|
2217 | if cmp -s $cache_file confcache; then
|
---|
2218 | :
|
---|
2219 | else
|
---|
2220 | if test -w $cache_file; then
|
---|
2221 | echo "updating cache $cache_file"
|
---|
2222 | cat confcache > $cache_file
|
---|
2223 | else
|
---|
2224 | echo "not updating unwritable cache $cache_file"
|
---|
2225 | fi
|
---|
2226 | fi
|
---|
2227 | rm -f confcache
|
---|
2228 |
|
---|
2229 |
|
---|
2230 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2231 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2232 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2233 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2234 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2235 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2236 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2237 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2238 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2239 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2240 |
|
---|
2241 | # Reload cache, that may have been modified by ltconfig
|
---|
2242 | if test -r "$cache_file"; then
|
---|
2243 | echo "loading cache $cache_file"
|
---|
2244 | . $cache_file
|
---|
2245 | else
|
---|
2246 | echo "creating cache $cache_file"
|
---|
2247 | > $cache_file
|
---|
2248 | fi
|
---|
2249 |
|
---|
2250 |
|
---|
2251 | # This can be used to rebuild libtool when needed
|
---|
2252 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2253 |
|
---|
2254 | # Always use our own libtool.
|
---|
2255 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2256 |
|
---|
2257 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2258 | # clobbered by the next message.
|
---|
2259 | exec 5>>./config.log
|
---|
2260 |
|
---|
2261 |
|
---|
2262 |
|
---|
2263 |
|
---|
2264 |
|
---|
2265 |
|
---|
2266 |
|
---|
2267 | # Check whether --with-lib-path or --without-lib-path was given.
|
---|
2268 | if test "${with_lib_path+set}" = set; then
|
---|
2269 | withval="$with_lib_path"
|
---|
2270 | LIB_PATH=$withval
|
---|
2271 | fi
|
---|
2272 |
|
---|
2273 | # Check whether --enable-targets or --disable-targets was given.
|
---|
2274 | if test "${enable_targets+set}" = set; then
|
---|
2275 | enableval="$enable_targets"
|
---|
2276 | case "${enableval}" in
|
---|
2277 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
---|
2278 | ;;
|
---|
2279 | no) enable_targets= ;;
|
---|
2280 | *) enable_targets=$enableval ;;
|
---|
2281 | esac
|
---|
2282 | fi
|
---|
2283 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
|
---|
2284 | if test "${enable_64_bit_bfd+set}" = set; then
|
---|
2285 | enableval="$enable_64_bit_bfd"
|
---|
2286 | case "${enableval}" in
|
---|
2287 | yes) want64=true ;;
|
---|
2288 | no) want64=false ;;
|
---|
2289 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
|
---|
2290 | esac
|
---|
2291 | else
|
---|
2292 | want64=false
|
---|
2293 | fi
|
---|
2294 |
|
---|
2295 | # Check whether --with-sysroot or --without-sysroot was given.
|
---|
2296 | if test "${with_sysroot+set}" = set; then
|
---|
2297 | withval="$with_sysroot"
|
---|
2298 |
|
---|
2299 | case ${with_sysroot} in
|
---|
2300 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
|
---|
2301 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
|
---|
2302 | esac
|
---|
2303 |
|
---|
2304 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
|
---|
2305 | use_sysroot=yes
|
---|
2306 |
|
---|
2307 | if test "x$exec_prefix" = xNONE; then
|
---|
2308 | if test "x$prefix" = xNONE; then
|
---|
2309 | test_prefix=/usr/local
|
---|
2310 | else
|
---|
2311 | test_prefix=$prefix
|
---|
2312 | fi
|
---|
2313 | else
|
---|
2314 | test_prefix=$exec_prefix
|
---|
2315 | fi
|
---|
2316 | case ${TARGET_SYSTEM_ROOT} in
|
---|
2317 | "${test_prefix}"|"${test_prefix}/"*|\
|
---|
2318 | '${exec_prefix}'|'${exec_prefix}/'*)
|
---|
2319 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
|
---|
2320 | TARGET_SYSTEM_ROOT_DEFINE="$t"
|
---|
2321 | ;;
|
---|
2322 | esac
|
---|
2323 |
|
---|
2324 | else
|
---|
2325 |
|
---|
2326 | use_sysroot=no
|
---|
2327 | TARGET_SYSTEM_ROOT=
|
---|
2328 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
|
---|
2329 |
|
---|
2330 | fi
|
---|
2331 |
|
---|
2332 |
|
---|
2333 |
|
---|
2334 |
|
---|
2335 |
|
---|
2336 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
---|
2337 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
---|
2338 | if test "${enable_build_warnings+set}" = set; then
|
---|
2339 | enableval="$enable_build_warnings"
|
---|
2340 | case "${enableval}" in
|
---|
2341 | yes) ;;
|
---|
2342 | no) build_warnings="-w";;
|
---|
2343 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2344 | build_warnings="${build_warnings} ${t}";;
|
---|
2345 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2346 | build_warnings="${t} ${build_warnings}";;
|
---|
2347 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
---|
2348 | esac
|
---|
2349 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
---|
2350 | echo "Setting warning flags = $build_warnings" 6>&1
|
---|
2351 | fi
|
---|
2352 | fi
|
---|
2353 | WARN_CFLAGS=""
|
---|
2354 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
---|
2355 | WARN_CFLAGS="${build_warnings}"
|
---|
2356 | fi
|
---|
2357 |
|
---|
2358 |
|
---|
2359 |
|
---|
2360 |
|
---|
2361 |
|
---|
2362 |
|
---|
2363 | if test -z "$target" ; then
|
---|
2364 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
---|
2365 | fi
|
---|
2366 | if test -z "$host" ; then
|
---|
2367 | { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
|
---|
2368 | fi
|
---|
2369 |
|
---|
2370 | # host-specific stuff:
|
---|
2371 |
|
---|
2372 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2373 | set dummy gcc; ac_word=$2
|
---|
2374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2375 | echo "configure:2376: checking for $ac_word" >&5
|
---|
2376 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2377 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2378 | else
|
---|
2379 | if test -n "$CC"; then
|
---|
2380 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2381 | else
|
---|
2382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2383 | ac_dummy="$PATH"
|
---|
2384 | for ac_dir in $ac_dummy; do
|
---|
2385 | test -z "$ac_dir" && ac_dir=.
|
---|
2386 | if test -f $ac_dir/$ac_word -o \
|
---|
2387 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2388 | ac_cv_prog_CC="gcc"
|
---|
2389 | break
|
---|
2390 | fi
|
---|
2391 | done
|
---|
2392 | IFS="$ac_save_ifs"
|
---|
2393 | fi
|
---|
2394 | fi
|
---|
2395 | CC="$ac_cv_prog_CC"
|
---|
2396 | if test -n "$CC"; then
|
---|
2397 | echo "$ac_t""$CC" 1>&6
|
---|
2398 | else
|
---|
2399 | echo "$ac_t""no" 1>&6
|
---|
2400 | fi
|
---|
2401 |
|
---|
2402 | if test -z "$CC"; then
|
---|
2403 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2404 | set dummy cc; ac_word=$2
|
---|
2405 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2406 | echo "configure:2407: checking for $ac_word" >&5
|
---|
2407 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2408 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2409 | else
|
---|
2410 | if test -n "$CC"; then
|
---|
2411 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2412 | else
|
---|
2413 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2414 | ac_prog_rejected=no
|
---|
2415 | ac_dummy="$PATH"
|
---|
2416 | for ac_dir in $ac_dummy; do
|
---|
2417 | test -z "$ac_dir" && ac_dir=.
|
---|
2418 | if test -f $ac_dir/$ac_word -o \
|
---|
2419 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2420 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
2421 | "$ac_dir/$ac_word$ac_exeext" = "/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="$PATH_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 -o \
|
---|
2471 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2472 | ac_cv_prog_CC="cl"
|
---|
2473 | break
|
---|
2474 | fi
|
---|
2475 | done
|
---|
2476 | IFS="$ac_save_ifs"
|
---|
2477 | fi
|
---|
2478 | fi
|
---|
2479 | CC="$ac_cv_prog_CC"
|
---|
2480 | if test -n "$CC"; then
|
---|
2481 | echo "$ac_t""$CC" 1>&6
|
---|
2482 | else
|
---|
2483 | echo "$ac_t""no" 1>&6
|
---|
2484 | fi
|
---|
2485 | ;;
|
---|
2486 | esac
|
---|
2487 | fi
|
---|
2488 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
2489 | fi
|
---|
2490 |
|
---|
2491 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
2492 | echo "configure:2493: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
2493 |
|
---|
2494 | ac_ext=c
|
---|
2495 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2496 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2497 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2498 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2499 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2500 |
|
---|
2501 | cat > conftest.$ac_ext << EOF
|
---|
2502 |
|
---|
2503 | #line 2504 "configure"
|
---|
2504 | #include "confdefs.h"
|
---|
2505 |
|
---|
2506 | main(){return(0);}
|
---|
2507 | EOF
|
---|
2508 | if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2509 | ac_cv_prog_cc_works=yes
|
---|
2510 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
2511 | if (./conftest; exit) 2>/dev/null; then
|
---|
2512 | ac_cv_prog_cc_cross=no
|
---|
2513 | else
|
---|
2514 | ac_cv_prog_cc_cross=yes
|
---|
2515 | fi
|
---|
2516 | else
|
---|
2517 | echo "configure: failed program was:" >&5
|
---|
2518 | cat conftest.$ac_ext >&5
|
---|
2519 | ac_cv_prog_cc_works=no
|
---|
2520 | fi
|
---|
2521 | rm -fr conftest*
|
---|
2522 | ac_ext=c
|
---|
2523 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2524 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2525 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2526 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2527 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2528 |
|
---|
2529 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
2530 | if test $ac_cv_prog_cc_works = no; then
|
---|
2531 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
2532 | fi
|
---|
2533 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
2534 | echo "configure:2535: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
2535 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
2536 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2537 |
|
---|
2538 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
2539 | echo "configure:2540: checking whether we are using GNU C" >&5
|
---|
2540 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
2541 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2542 | else
|
---|
2543 | cat > conftest.c <<EOF
|
---|
2544 | #ifdef __GNUC__
|
---|
2545 | yes;
|
---|
2546 | #endif
|
---|
2547 | EOF
|
---|
2548 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
2549 | ac_cv_prog_gcc=yes
|
---|
2550 | else
|
---|
2551 | ac_cv_prog_gcc=no
|
---|
2552 | fi
|
---|
2553 | fi
|
---|
2554 |
|
---|
2555 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
2556 |
|
---|
2557 | if test $ac_cv_prog_gcc = yes; then
|
---|
2558 | GCC=yes
|
---|
2559 | else
|
---|
2560 | GCC=
|
---|
2561 | fi
|
---|
2562 |
|
---|
2563 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
2564 | ac_save_CFLAGS="$CFLAGS"
|
---|
2565 | CFLAGS=
|
---|
2566 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
2567 | echo "configure:2568: checking whether ${CC-cc} accepts -g" >&5
|
---|
2568 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
2569 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2570 | else
|
---|
2571 | echo 'void f(){}' > conftest.c
|
---|
2572 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
2573 | ac_cv_prog_cc_g=yes
|
---|
2574 | else
|
---|
2575 | ac_cv_prog_cc_g=no
|
---|
2576 | fi
|
---|
2577 | rm -f conftest*
|
---|
2578 |
|
---|
2579 | fi
|
---|
2580 |
|
---|
2581 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
2582 | if test "$ac_test_CFLAGS" = set; then
|
---|
2583 | CFLAGS="$ac_save_CFLAGS"
|
---|
2584 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2585 | if test "$GCC" = yes; then
|
---|
2586 | CFLAGS="-g -O2"
|
---|
2587 | else
|
---|
2588 | CFLAGS="-g"
|
---|
2589 | fi
|
---|
2590 | else
|
---|
2591 | if test "$GCC" = yes; then
|
---|
2592 | CFLAGS="-O2"
|
---|
2593 | else
|
---|
2594 | CFLAGS=
|
---|
2595 | fi
|
---|
2596 | fi
|
---|
2597 |
|
---|
2598 | # Find a good install program. We prefer a C program (faster),
|
---|
2599 | # so one script is as good as another. But avoid the broken or
|
---|
2600 | # incompatible versions:
|
---|
2601 | # SysV /etc/install, /usr/sbin/install
|
---|
2602 | # SunOS /usr/etc/install
|
---|
2603 | # IRIX /sbin/install
|
---|
2604 | # AIX /bin/install
|
---|
2605 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2606 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2607 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2608 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2609 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
2610 | echo "configure:2611: checking for a BSD compatible install" >&5
|
---|
2611 | if test -z "$INSTALL"; then
|
---|
2612 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
2613 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2614 | else
|
---|
2615 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
2616 | for ac_dir in $PATH; do
|
---|
2617 | # Account for people who put trailing slashes in PATH elements.
|
---|
2618 | case "$ac_dir/" in
|
---|
2619 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
2620 | # We reject the install program from OS/2 or W3.1
|
---|
2621 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
2622 | *)
|
---|
2623 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2624 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2625 | # by default.
|
---|
2626 | for ac_prog in ginstall scoinst install; do
|
---|
2627 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
2628 | if test $ac_prog = install &&
|
---|
2629 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
2630 | # AIX install. It has an incompatible calling convention.
|
---|
2631 | :
|
---|
2632 | else
|
---|
2633 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
2634 | break 2
|
---|
2635 | fi
|
---|
2636 | fi
|
---|
2637 | done
|
---|
2638 | ;;
|
---|
2639 | esac
|
---|
2640 | done
|
---|
2641 | IFS="$ac_save_IFS"
|
---|
2642 |
|
---|
2643 | fi
|
---|
2644 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2645 | INSTALL="$ac_cv_path_install"
|
---|
2646 | else
|
---|
2647 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2648 | # path for INSTALL within a source directory, because that will
|
---|
2649 | # break other packages using the cache if that directory is
|
---|
2650 | # removed, or if the path is relative.
|
---|
2651 | INSTALL="$ac_install_sh"
|
---|
2652 | fi
|
---|
2653 | fi
|
---|
2654 | echo "$ac_t""$INSTALL" 1>&6
|
---|
2655 |
|
---|
2656 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2657 | # It thinks the first close brace ends the variable substitution.
|
---|
2658 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2659 |
|
---|
2660 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
2661 |
|
---|
2662 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2663 |
|
---|
2664 |
|
---|
2665 | ALL_LINGUAS="fr sv tr es da"
|
---|
2666 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2667 | echo "configure:2668: checking how to run the C preprocessor" >&5
|
---|
2668 | # On Suns, sometimes $CPP names a directory.
|
---|
2669 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2670 | CPP=
|
---|
2671 | fi
|
---|
2672 | if test -z "$CPP"; then
|
---|
2673 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2674 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2675 | else
|
---|
2676 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2677 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2678 | CPP="${CC-cc} -E"
|
---|
2679 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2680 | # not just through cpp.
|
---|
2681 | cat > conftest.$ac_ext <<EOF
|
---|
2682 | #include <sys/types.h>
|
---|
2683 | #line 2684 "configure"
|
---|
2684 | #include "confdefs.h"
|
---|
2685 | #include <assert.h>
|
---|
2686 | Syntax Error
|
---|
2687 | EOF
|
---|
2688 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2689 | { (eval echo configure:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2690 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2691 | if test -z "$ac_err"; then
|
---|
2692 | :
|
---|
2693 | else
|
---|
2694 | echo "$ac_err" >&5
|
---|
2695 | echo "configure: failed program was:" >&5
|
---|
2696 | cat conftest.$ac_ext >&5
|
---|
2697 | rm -rf conftest*
|
---|
2698 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2699 | cat > conftest.$ac_ext <<EOF
|
---|
2700 | #include <sys/types.h>
|
---|
2701 | #line 2702 "configure"
|
---|
2702 | #include "confdefs.h"
|
---|
2703 | #include <assert.h>
|
---|
2704 | Syntax Error
|
---|
2705 | EOF
|
---|
2706 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2707 | { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2708 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2709 | if test -z "$ac_err"; then
|
---|
2710 | :
|
---|
2711 | else
|
---|
2712 | echo "$ac_err" >&5
|
---|
2713 | echo "configure: failed program was:" >&5
|
---|
2714 | cat conftest.$ac_ext >&5
|
---|
2715 | rm -rf conftest*
|
---|
2716 | CPP="${CC-cc} -nologo -E"
|
---|
2717 | cat > conftest.$ac_ext <<EOF
|
---|
2718 | #include <sys/types.h>
|
---|
2719 | #line 2720 "configure"
|
---|
2720 | #include "confdefs.h"
|
---|
2721 | #include <assert.h>
|
---|
2722 | Syntax Error
|
---|
2723 | EOF
|
---|
2724 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2725 | { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2726 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2727 | if test -z "$ac_err"; then
|
---|
2728 | :
|
---|
2729 | else
|
---|
2730 | echo "$ac_err" >&5
|
---|
2731 | echo "configure: failed program was:" >&5
|
---|
2732 | cat conftest.$ac_ext >&5
|
---|
2733 | rm -rf conftest*
|
---|
2734 | CPP=/lib/cpp
|
---|
2735 | fi
|
---|
2736 | rm -f conftest*
|
---|
2737 | fi
|
---|
2738 | rm -f conftest*
|
---|
2739 | fi
|
---|
2740 | rm -f conftest*
|
---|
2741 | ac_cv_prog_CPP="$CPP"
|
---|
2742 | fi
|
---|
2743 | CPP="$ac_cv_prog_CPP"
|
---|
2744 | else
|
---|
2745 | ac_cv_prog_CPP="$CPP"
|
---|
2746 | fi
|
---|
2747 | echo "$ac_t""$CPP" 1>&6
|
---|
2748 |
|
---|
2749 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2750 | set dummy ranlib; ac_word=$2
|
---|
2751 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2752 | echo "configure:2753: checking for $ac_word" >&5
|
---|
2753 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2754 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2755 | else
|
---|
2756 | if test -n "$RANLIB"; then
|
---|
2757 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2758 | else
|
---|
2759 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2760 | ac_dummy="$PATH"
|
---|
2761 | for ac_dir in $ac_dummy; do
|
---|
2762 | test -z "$ac_dir" && ac_dir=.
|
---|
2763 | if test -f $ac_dir/$ac_word -o \
|
---|
2764 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2765 | ac_cv_prog_RANLIB="ranlib"
|
---|
2766 | break
|
---|
2767 | fi
|
---|
2768 | done
|
---|
2769 | IFS="$ac_save_ifs"
|
---|
2770 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2771 | fi
|
---|
2772 | fi
|
---|
2773 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2774 | if test -n "$RANLIB"; then
|
---|
2775 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2776 | else
|
---|
2777 | echo "$ac_t""no" 1>&6
|
---|
2778 | fi
|
---|
2779 |
|
---|
2780 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2781 | echo "configure:2782: checking for ANSI C header files" >&5
|
---|
2782 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2783 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2784 | else
|
---|
2785 | cat > conftest.$ac_ext <<EOF
|
---|
2786 | #include <sys/types.h>
|
---|
2787 | #line 2788 "configure"
|
---|
2788 | #include "confdefs.h"
|
---|
2789 | #include <stdlib.h>
|
---|
2790 | #include <stdarg.h>
|
---|
2791 | #include <string.h>
|
---|
2792 | #include <float.h>
|
---|
2793 | EOF
|
---|
2794 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2795 | { (eval echo configure:2796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2796 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2797 | if test -z "$ac_err"; then
|
---|
2798 | rm -rf conftest*
|
---|
2799 | ac_cv_header_stdc=yes
|
---|
2800 | else
|
---|
2801 | echo "$ac_err" >&5
|
---|
2802 | echo "configure: failed program was:" >&5
|
---|
2803 | cat conftest.$ac_ext >&5
|
---|
2804 | rm -rf conftest*
|
---|
2805 | ac_cv_header_stdc=no
|
---|
2806 | fi
|
---|
2807 | rm -f conftest*
|
---|
2808 |
|
---|
2809 | if test $ac_cv_header_stdc = yes; then
|
---|
2810 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2811 | cat > conftest.$ac_ext <<EOF
|
---|
2812 | #line 2813 "configure"
|
---|
2813 | #include "confdefs.h"
|
---|
2814 | #include <string.h>
|
---|
2815 | EOF
|
---|
2816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2817 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2818 | :
|
---|
2819 | else
|
---|
2820 | rm -rf conftest*
|
---|
2821 | ac_cv_header_stdc=no
|
---|
2822 | fi
|
---|
2823 | rm -f conftest*
|
---|
2824 |
|
---|
2825 | fi
|
---|
2826 |
|
---|
2827 | if test $ac_cv_header_stdc = yes; then
|
---|
2828 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2829 | cat > conftest.$ac_ext <<EOF
|
---|
2830 | #line 2831 "configure"
|
---|
2831 | #include "confdefs.h"
|
---|
2832 | #include <stdlib.h>
|
---|
2833 | EOF
|
---|
2834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2835 | egrep "free" >/dev/null 2>&1; then
|
---|
2836 | :
|
---|
2837 | else
|
---|
2838 | rm -rf conftest*
|
---|
2839 | ac_cv_header_stdc=no
|
---|
2840 | fi
|
---|
2841 | rm -f conftest*
|
---|
2842 |
|
---|
2843 | fi
|
---|
2844 |
|
---|
2845 | if test $ac_cv_header_stdc = yes; then
|
---|
2846 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2847 | if test "$cross_compiling" = yes; then
|
---|
2848 | :
|
---|
2849 | else
|
---|
2850 | cat > conftest.$ac_ext <<EOF
|
---|
2851 | #line 2852 "configure"
|
---|
2852 | #include "confdefs.h"
|
---|
2853 | #include <ctype.h>
|
---|
2854 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2855 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2856 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2857 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2858 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2859 | exit (0); }
|
---|
2860 |
|
---|
2861 | EOF
|
---|
2862 | if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2863 | then
|
---|
2864 | :
|
---|
2865 | else
|
---|
2866 | echo "configure: failed program was:" >&5
|
---|
2867 | cat conftest.$ac_ext >&5
|
---|
2868 | rm -fr conftest*
|
---|
2869 | ac_cv_header_stdc=no
|
---|
2870 | fi
|
---|
2871 | rm -fr conftest*
|
---|
2872 | fi
|
---|
2873 |
|
---|
2874 | fi
|
---|
2875 | fi
|
---|
2876 |
|
---|
2877 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2878 | if test $ac_cv_header_stdc = yes; then
|
---|
2879 | cat >> confdefs.h <<\EOF
|
---|
2880 | #define STDC_HEADERS 1
|
---|
2881 | EOF
|
---|
2882 |
|
---|
2883 | fi
|
---|
2884 |
|
---|
2885 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
2886 | echo "configure:2887: checking for working const" >&5
|
---|
2887 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
2888 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2889 | else
|
---|
2890 | cat > conftest.$ac_ext <<EOF
|
---|
2891 | #line 2892 "configure"
|
---|
2892 | #include "confdefs.h"
|
---|
2893 |
|
---|
2894 | int main() {
|
---|
2895 |
|
---|
2896 | /* Ultrix mips cc rejects this. */
|
---|
2897 | typedef int charset[2]; const charset x;
|
---|
2898 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2899 | char const *const *ccp;
|
---|
2900 | char **p;
|
---|
2901 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2902 | struct point {int x, y;};
|
---|
2903 | static struct point const zero = {0,0};
|
---|
2904 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
2905 | It does not let you subtract one const X* pointer from another in an arm
|
---|
2906 | of an if-expression whose if-part is not a constant expression */
|
---|
2907 | const char *g = "string";
|
---|
2908 | ccp = &g + (g ? g-g : 0);
|
---|
2909 | /* HPUX 7.0 cc rejects these. */
|
---|
2910 | ++ccp;
|
---|
2911 | p = (char**) ccp;
|
---|
2912 | ccp = (char const *const *) p;
|
---|
2913 | { /* SCO 3.2v4 cc rejects this. */
|
---|
2914 | char *t;
|
---|
2915 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
2916 |
|
---|
2917 | *t++ = 0;
|
---|
2918 | }
|
---|
2919 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
2920 | int x[] = {25, 17};
|
---|
2921 | const int *foo = &x[0];
|
---|
2922 | ++foo;
|
---|
2923 | }
|
---|
2924 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
2925 | typedef const int *iptr;
|
---|
2926 | iptr p = 0;
|
---|
2927 | ++p;
|
---|
2928 | }
|
---|
2929 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
2930 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
2931 | struct s { int j; const int *ap[3]; };
|
---|
2932 | struct s *b; b->j = 5;
|
---|
2933 | }
|
---|
2934 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
2935 | const int foo = 10;
|
---|
2936 | }
|
---|
2937 |
|
---|
2938 | ; return 0; }
|
---|
2939 | EOF
|
---|
2940 | if { (eval echo configure:2941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2941 | rm -rf conftest*
|
---|
2942 | ac_cv_c_const=yes
|
---|
2943 | else
|
---|
2944 | echo "configure: failed program was:" >&5
|
---|
2945 | cat conftest.$ac_ext >&5
|
---|
2946 | rm -rf conftest*
|
---|
2947 | ac_cv_c_const=no
|
---|
2948 | fi
|
---|
2949 | rm -f conftest*
|
---|
2950 | fi
|
---|
2951 |
|
---|
2952 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
2953 | if test $ac_cv_c_const = no; then
|
---|
2954 | cat >> confdefs.h <<\EOF
|
---|
2955 | #define const
|
---|
2956 | EOF
|
---|
2957 |
|
---|
2958 | fi
|
---|
2959 |
|
---|
2960 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
2961 | echo "configure:2962: checking for inline" >&5
|
---|
2962 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
2963 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2964 | else
|
---|
2965 | ac_cv_c_inline=no
|
---|
2966 | for ac_kw in inline __inline__ __inline; do
|
---|
2967 | cat > conftest.$ac_ext <<EOF
|
---|
2968 | #line 2969 "configure"
|
---|
2969 | #include "confdefs.h"
|
---|
2970 |
|
---|
2971 | int main() {
|
---|
2972 | } $ac_kw foo() {
|
---|
2973 | ; return 0; }
|
---|
2974 | EOF
|
---|
2975 | if { (eval echo configure:2976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2976 | rm -rf conftest*
|
---|
2977 | ac_cv_c_inline=$ac_kw; break
|
---|
2978 | else
|
---|
2979 | echo "configure: failed program was:" >&5
|
---|
2980 | cat conftest.$ac_ext >&5
|
---|
2981 | fi
|
---|
2982 | rm -f conftest*
|
---|
2983 | done
|
---|
2984 |
|
---|
2985 | fi
|
---|
2986 |
|
---|
2987 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
2988 | case "$ac_cv_c_inline" in
|
---|
2989 | inline | yes) ;;
|
---|
2990 | no) cat >> confdefs.h <<\EOF
|
---|
2991 | #define inline
|
---|
2992 | EOF
|
---|
2993 | ;;
|
---|
2994 | *) cat >> confdefs.h <<EOF
|
---|
2995 | #define inline $ac_cv_c_inline
|
---|
2996 | EOF
|
---|
2997 | ;;
|
---|
2998 | esac
|
---|
2999 |
|
---|
3000 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
3001 | echo "configure:3002: checking for off_t" >&5
|
---|
3002 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
3003 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3004 | else
|
---|
3005 | cat > conftest.$ac_ext <<EOF
|
---|
3006 | #line 3007 "configure"
|
---|
3007 | #include "confdefs.h"
|
---|
3008 | #include <sys/types.h>
|
---|
3009 | #if STDC_HEADERS
|
---|
3010 | #include <stdlib.h>
|
---|
3011 | #include <stddef.h>
|
---|
3012 | #endif
|
---|
3013 | EOF
|
---|
3014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3015 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3016 | rm -rf conftest*
|
---|
3017 | ac_cv_type_off_t=yes
|
---|
3018 | else
|
---|
3019 | rm -rf conftest*
|
---|
3020 | ac_cv_type_off_t=no
|
---|
3021 | fi
|
---|
3022 | rm -f conftest*
|
---|
3023 |
|
---|
3024 | fi
|
---|
3025 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
3026 | if test $ac_cv_type_off_t = no; then
|
---|
3027 | cat >> confdefs.h <<\EOF
|
---|
3028 | #define off_t long
|
---|
3029 | EOF
|
---|
3030 |
|
---|
3031 | fi
|
---|
3032 |
|
---|
3033 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
3034 | echo "configure:3035: checking for size_t" >&5
|
---|
3035 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
3036 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3037 | else
|
---|
3038 | cat > conftest.$ac_ext <<EOF
|
---|
3039 | #line 3040 "configure"
|
---|
3040 | #include "confdefs.h"
|
---|
3041 | #include <sys/types.h>
|
---|
3042 | #if STDC_HEADERS
|
---|
3043 | #include <stdlib.h>
|
---|
3044 | #include <stddef.h>
|
---|
3045 | #endif
|
---|
3046 | EOF
|
---|
3047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3048 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3049 | rm -rf conftest*
|
---|
3050 | ac_cv_type_size_t=yes
|
---|
3051 | else
|
---|
3052 | rm -rf conftest*
|
---|
3053 | ac_cv_type_size_t=no
|
---|
3054 | fi
|
---|
3055 | rm -f conftest*
|
---|
3056 |
|
---|
3057 | fi
|
---|
3058 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
3059 | if test $ac_cv_type_size_t = no; then
|
---|
3060 | cat >> confdefs.h <<\EOF
|
---|
3061 | #define size_t unsigned
|
---|
3062 | EOF
|
---|
3063 |
|
---|
3064 | fi
|
---|
3065 |
|
---|
3066 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
3067 | # for constant arguments. Useless!
|
---|
3068 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
3069 | echo "configure:3070: checking for working alloca.h" >&5
|
---|
3070 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
3071 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3072 | else
|
---|
3073 | cat > conftest.$ac_ext <<EOF
|
---|
3074 | #line 3075 "configure"
|
---|
3075 | #include "confdefs.h"
|
---|
3076 | #include <alloca.h>
|
---|
3077 | int main() {
|
---|
3078 | char *p = alloca(2 * sizeof(int));
|
---|
3079 | ; return 0; }
|
---|
3080 | EOF
|
---|
3081 | if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3082 | rm -rf conftest*
|
---|
3083 | ac_cv_header_alloca_h=yes
|
---|
3084 | else
|
---|
3085 | echo "configure: failed program was:" >&5
|
---|
3086 | cat conftest.$ac_ext >&5
|
---|
3087 | rm -rf conftest*
|
---|
3088 | ac_cv_header_alloca_h=no
|
---|
3089 | fi
|
---|
3090 | rm -f conftest*
|
---|
3091 | fi
|
---|
3092 |
|
---|
3093 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
3094 | if test $ac_cv_header_alloca_h = yes; then
|
---|
3095 | cat >> confdefs.h <<\EOF
|
---|
3096 | #define HAVE_ALLOCA_H 1
|
---|
3097 | EOF
|
---|
3098 |
|
---|
3099 | fi
|
---|
3100 |
|
---|
3101 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
3102 | echo "configure:3103: checking for alloca" >&5
|
---|
3103 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
3104 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3105 | else
|
---|
3106 | cat > conftest.$ac_ext <<EOF
|
---|
3107 | #line 3108 "configure"
|
---|
3108 | #include "confdefs.h"
|
---|
3109 |
|
---|
3110 | #ifdef __GNUC__
|
---|
3111 | # define alloca __builtin_alloca
|
---|
3112 | #else
|
---|
3113 | # ifdef _MSC_VER
|
---|
3114 | # include <malloc.h>
|
---|
3115 | # define alloca _alloca
|
---|
3116 | # else
|
---|
3117 | # if HAVE_ALLOCA_H
|
---|
3118 | # include <alloca.h>
|
---|
3119 | # else
|
---|
3120 | # ifdef _AIX
|
---|
3121 | #pragma alloca
|
---|
3122 | # else
|
---|
3123 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
3124 | char *alloca ();
|
---|
3125 | # endif
|
---|
3126 | # endif
|
---|
3127 | # endif
|
---|
3128 | # endif
|
---|
3129 | #endif
|
---|
3130 |
|
---|
3131 | int main() {
|
---|
3132 | char *p = (char *) alloca(1);
|
---|
3133 | ; return 0; }
|
---|
3134 | EOF
|
---|
3135 | if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3136 | rm -rf conftest*
|
---|
3137 | ac_cv_func_alloca_works=yes
|
---|
3138 | else
|
---|
3139 | echo "configure: failed program was:" >&5
|
---|
3140 | cat conftest.$ac_ext >&5
|
---|
3141 | rm -rf conftest*
|
---|
3142 | ac_cv_func_alloca_works=no
|
---|
3143 | fi
|
---|
3144 | rm -f conftest*
|
---|
3145 | fi
|
---|
3146 |
|
---|
3147 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
3148 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3149 | cat >> confdefs.h <<\EOF
|
---|
3150 | #define HAVE_ALLOCA 1
|
---|
3151 | EOF
|
---|
3152 |
|
---|
3153 | fi
|
---|
3154 |
|
---|
3155 | if test $ac_cv_func_alloca_works = no; then
|
---|
3156 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3157 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3158 | # contain a buggy version. If you still want to use their alloca,
|
---|
3159 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3160 | ALLOCA=alloca.${ac_objext}
|
---|
3161 | cat >> confdefs.h <<\EOF
|
---|
3162 | #define C_ALLOCA 1
|
---|
3163 | EOF
|
---|
3164 |
|
---|
3165 |
|
---|
3166 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
3167 | echo "configure:3168: checking whether alloca needs Cray hooks" >&5
|
---|
3168 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
3169 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3170 | else
|
---|
3171 | cat > conftest.$ac_ext <<EOF
|
---|
3172 | #line 3173 "configure"
|
---|
3173 | #include "confdefs.h"
|
---|
3174 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3175 | webecray
|
---|
3176 | #else
|
---|
3177 | wenotbecray
|
---|
3178 | #endif
|
---|
3179 |
|
---|
3180 | EOF
|
---|
3181 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3182 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3183 | rm -rf conftest*
|
---|
3184 | ac_cv_os_cray=yes
|
---|
3185 | else
|
---|
3186 | rm -rf conftest*
|
---|
3187 | ac_cv_os_cray=no
|
---|
3188 | fi
|
---|
3189 | rm -f conftest*
|
---|
3190 |
|
---|
3191 | fi
|
---|
3192 |
|
---|
3193 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
3194 | if test $ac_cv_os_cray = yes; then
|
---|
3195 | for ac_func in _getb67 GETB67 getb67; do
|
---|
3196 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3197 | echo "configure:3198: checking for $ac_func" >&5
|
---|
3198 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3199 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3200 | else
|
---|
3201 | cat > conftest.$ac_ext <<EOF
|
---|
3202 | #line 3203 "configure"
|
---|
3203 | #include "confdefs.h"
|
---|
3204 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3205 | which can conflict with char $ac_func(); below. */
|
---|
3206 | #include <assert.h>
|
---|
3207 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3208 | /* We use char because int might match the return type of a gcc2
|
---|
3209 | builtin and then its argument prototype would still apply. */
|
---|
3210 | char $ac_func();
|
---|
3211 |
|
---|
3212 | int main() {
|
---|
3213 |
|
---|
3214 | /* The GNU C library defines this for functions which it implements
|
---|
3215 | to always fail with ENOSYS. Some functions are actually named
|
---|
3216 | something starting with __ and the normal name is an alias. */
|
---|
3217 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3218 | choke me
|
---|
3219 | #else
|
---|
3220 | $ac_func();
|
---|
3221 | #endif
|
---|
3222 |
|
---|
3223 | ; return 0; }
|
---|
3224 | EOF
|
---|
3225 | if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3226 | rm -rf conftest*
|
---|
3227 | eval "ac_cv_func_$ac_func=yes"
|
---|
3228 | else
|
---|
3229 | echo "configure: failed program was:" >&5
|
---|
3230 | cat conftest.$ac_ext >&5
|
---|
3231 | rm -rf conftest*
|
---|
3232 | eval "ac_cv_func_$ac_func=no"
|
---|
3233 | fi
|
---|
3234 | rm -f conftest*
|
---|
3235 | fi
|
---|
3236 |
|
---|
3237 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3238 | echo "$ac_t""yes" 1>&6
|
---|
3239 | cat >> confdefs.h <<EOF
|
---|
3240 | #define CRAY_STACKSEG_END $ac_func
|
---|
3241 | EOF
|
---|
3242 |
|
---|
3243 | break
|
---|
3244 | else
|
---|
3245 | echo "$ac_t""no" 1>&6
|
---|
3246 | fi
|
---|
3247 |
|
---|
3248 | done
|
---|
3249 | fi
|
---|
3250 |
|
---|
3251 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
3252 | echo "configure:3253: checking stack direction for C alloca" >&5
|
---|
3253 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
3254 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3255 | else
|
---|
3256 | if test "$cross_compiling" = yes; then
|
---|
3257 | ac_cv_c_stack_direction=0
|
---|
3258 | else
|
---|
3259 | cat > conftest.$ac_ext <<EOF
|
---|
3260 | #line 3261 "configure"
|
---|
3261 | #include "confdefs.h"
|
---|
3262 | find_stack_direction ()
|
---|
3263 | {
|
---|
3264 | static char *addr = 0;
|
---|
3265 | auto char dummy;
|
---|
3266 | if (addr == 0)
|
---|
3267 | {
|
---|
3268 | addr = &dummy;
|
---|
3269 | return find_stack_direction ();
|
---|
3270 | }
|
---|
3271 | else
|
---|
3272 | return (&dummy > addr) ? 1 : -1;
|
---|
3273 | }
|
---|
3274 | main ()
|
---|
3275 | {
|
---|
3276 | exit (find_stack_direction() < 0);
|
---|
3277 | }
|
---|
3278 | EOF
|
---|
3279 | if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3280 | then
|
---|
3281 | ac_cv_c_stack_direction=1
|
---|
3282 | else
|
---|
3283 | echo "configure: failed program was:" >&5
|
---|
3284 | cat conftest.$ac_ext >&5
|
---|
3285 | rm -fr conftest*
|
---|
3286 | ac_cv_c_stack_direction=-1
|
---|
3287 | fi
|
---|
3288 | rm -fr conftest*
|
---|
3289 | fi
|
---|
3290 |
|
---|
3291 | fi
|
---|
3292 |
|
---|
3293 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
3294 | cat >> confdefs.h <<EOF
|
---|
3295 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
3296 | EOF
|
---|
3297 |
|
---|
3298 | fi
|
---|
3299 |
|
---|
3300 | for ac_hdr in unistd.h
|
---|
3301 | do
|
---|
3302 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3303 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3304 | echo "configure:3305: checking for $ac_hdr" >&5
|
---|
3305 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3306 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3307 | else
|
---|
3308 | cat > conftest.$ac_ext <<EOF
|
---|
3309 | #include <sys/types.h>
|
---|
3310 | #line 3311 "configure"
|
---|
3311 | #include "confdefs.h"
|
---|
3312 | #include <$ac_hdr>
|
---|
3313 | EOF
|
---|
3314 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3315 | { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3316 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3317 | if test -z "$ac_err"; then
|
---|
3318 | rm -rf conftest*
|
---|
3319 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3320 | else
|
---|
3321 | echo "$ac_err" >&5
|
---|
3322 | echo "configure: failed program was:" >&5
|
---|
3323 | cat conftest.$ac_ext >&5
|
---|
3324 | rm -rf conftest*
|
---|
3325 | eval "ac_cv_header_$ac_safe=no"
|
---|
3326 | fi
|
---|
3327 | rm -f conftest*
|
---|
3328 | fi
|
---|
3329 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3330 | echo "$ac_t""yes" 1>&6
|
---|
3331 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3332 | cat >> confdefs.h <<EOF
|
---|
3333 | #define $ac_tr_hdr 1
|
---|
3334 | EOF
|
---|
3335 |
|
---|
3336 | else
|
---|
3337 | echo "$ac_t""no" 1>&6
|
---|
3338 | fi
|
---|
3339 | done
|
---|
3340 |
|
---|
3341 | for ac_func in getpagesize
|
---|
3342 | do
|
---|
3343 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3344 | echo "configure:3345: checking for $ac_func" >&5
|
---|
3345 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3346 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3347 | else
|
---|
3348 | cat > conftest.$ac_ext <<EOF
|
---|
3349 | #line 3350 "configure"
|
---|
3350 | #include "confdefs.h"
|
---|
3351 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3352 | which can conflict with char $ac_func(); below. */
|
---|
3353 | #include <assert.h>
|
---|
3354 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3355 | /* We use char because int might match the return type of a gcc2
|
---|
3356 | builtin and then its argument prototype would still apply. */
|
---|
3357 | char $ac_func();
|
---|
3358 |
|
---|
3359 | int main() {
|
---|
3360 |
|
---|
3361 | /* The GNU C library defines this for functions which it implements
|
---|
3362 | to always fail with ENOSYS. Some functions are actually named
|
---|
3363 | something starting with __ and the normal name is an alias. */
|
---|
3364 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3365 | choke me
|
---|
3366 | #else
|
---|
3367 | $ac_func();
|
---|
3368 | #endif
|
---|
3369 |
|
---|
3370 | ; return 0; }
|
---|
3371 | EOF
|
---|
3372 | if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3373 | rm -rf conftest*
|
---|
3374 | eval "ac_cv_func_$ac_func=yes"
|
---|
3375 | else
|
---|
3376 | echo "configure: failed program was:" >&5
|
---|
3377 | cat conftest.$ac_ext >&5
|
---|
3378 | rm -rf conftest*
|
---|
3379 | eval "ac_cv_func_$ac_func=no"
|
---|
3380 | fi
|
---|
3381 | rm -f conftest*
|
---|
3382 | fi
|
---|
3383 |
|
---|
3384 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3385 | echo "$ac_t""yes" 1>&6
|
---|
3386 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3387 | cat >> confdefs.h <<EOF
|
---|
3388 | #define $ac_tr_func 1
|
---|
3389 | EOF
|
---|
3390 |
|
---|
3391 | else
|
---|
3392 | echo "$ac_t""no" 1>&6
|
---|
3393 | fi
|
---|
3394 | done
|
---|
3395 |
|
---|
3396 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
3397 | echo "configure:3398: checking for working mmap" >&5
|
---|
3398 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
3399 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3400 | else
|
---|
3401 | if test "$cross_compiling" = yes; then
|
---|
3402 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3403 | else
|
---|
3404 | cat > conftest.$ac_ext <<EOF
|
---|
3405 | #line 3406 "configure"
|
---|
3406 | #include "confdefs.h"
|
---|
3407 |
|
---|
3408 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
3409 | Here is a matrix of mmap possibilities:
|
---|
3410 | mmap private not fixed
|
---|
3411 | mmap private fixed at somewhere currently unmapped
|
---|
3412 | mmap private fixed at somewhere already mapped
|
---|
3413 | mmap shared not fixed
|
---|
3414 | mmap shared fixed at somewhere currently unmapped
|
---|
3415 | mmap shared fixed at somewhere already mapped
|
---|
3416 | For private mappings, we should verify that changes cannot be read()
|
---|
3417 | back from the file, nor mmap's back from the file at a different
|
---|
3418 | address. (There have been systems where private was not correctly
|
---|
3419 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
3420 | VM page cache was not coherent with the filesystem buffer cache
|
---|
3421 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
3422 | For shared mappings, we should conversely verify that changes get
|
---|
3423 | propogated back to all the places they're supposed to be.
|
---|
3424 |
|
---|
3425 | Grep wants private fixed already mapped.
|
---|
3426 | The main things grep needs to know about mmap are:
|
---|
3427 | * does it exist and is it safe to write into the mmap'd area
|
---|
3428 | * how to use it (BSD variants) */
|
---|
3429 | #include <sys/types.h>
|
---|
3430 | #include <fcntl.h>
|
---|
3431 | #include <sys/mman.h>
|
---|
3432 |
|
---|
3433 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
3434 | #ifndef HAVE_GETPAGESIZE
|
---|
3435 | # ifdef HAVE_UNISTD_H
|
---|
3436 | # include <unistd.h>
|
---|
3437 | # endif
|
---|
3438 |
|
---|
3439 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
3440 | # ifndef HAVE_SYS_PARAM_H
|
---|
3441 | # define HAVE_SYS_PARAM_H 1
|
---|
3442 | # endif
|
---|
3443 |
|
---|
3444 | # ifdef _SC_PAGESIZE
|
---|
3445 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
3446 | # else /* no _SC_PAGESIZE */
|
---|
3447 | # ifdef HAVE_SYS_PARAM_H
|
---|
3448 | # include <sys/param.h>
|
---|
3449 | # ifdef EXEC_PAGESIZE
|
---|
3450 | # define getpagesize() EXEC_PAGESIZE
|
---|
3451 | # else /* no EXEC_PAGESIZE */
|
---|
3452 | # ifdef NBPG
|
---|
3453 | # define getpagesize() NBPG * CLSIZE
|
---|
3454 | # ifndef CLSIZE
|
---|
3455 | # define CLSIZE 1
|
---|
3456 | # endif /* no CLSIZE */
|
---|
3457 | # else /* no NBPG */
|
---|
3458 | # ifdef NBPC
|
---|
3459 | # define getpagesize() NBPC
|
---|
3460 | # else /* no NBPC */
|
---|
3461 | # ifdef PAGESIZE
|
---|
3462 | # define getpagesize() PAGESIZE
|
---|
3463 | # endif /* PAGESIZE */
|
---|
3464 | # endif /* no NBPC */
|
---|
3465 | # endif /* no NBPG */
|
---|
3466 | # endif /* no EXEC_PAGESIZE */
|
---|
3467 | # else /* no HAVE_SYS_PARAM_H */
|
---|
3468 | # define getpagesize() 8192 /* punt totally */
|
---|
3469 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
3470 | # endif /* no _SC_PAGESIZE */
|
---|
3471 |
|
---|
3472 | #endif /* no HAVE_GETPAGESIZE */
|
---|
3473 |
|
---|
3474 | #ifdef __cplusplus
|
---|
3475 | extern "C" { void *malloc(unsigned); }
|
---|
3476 | #else
|
---|
3477 | char *malloc();
|
---|
3478 | #endif
|
---|
3479 |
|
---|
3480 | int
|
---|
3481 | main()
|
---|
3482 | {
|
---|
3483 | char *data, *data2, *data3;
|
---|
3484 | int i, pagesize;
|
---|
3485 | int fd;
|
---|
3486 |
|
---|
3487 | pagesize = getpagesize();
|
---|
3488 |
|
---|
3489 | /*
|
---|
3490 | * First, make a file with some known garbage in it.
|
---|
3491 | */
|
---|
3492 | data = malloc(pagesize);
|
---|
3493 | if (!data)
|
---|
3494 | exit(1);
|
---|
3495 | for (i = 0; i < pagesize; ++i)
|
---|
3496 | *(data + i) = rand();
|
---|
3497 | umask(0);
|
---|
3498 | fd = creat("conftestmmap", 0600);
|
---|
3499 | if (fd < 0)
|
---|
3500 | exit(1);
|
---|
3501 | if (write(fd, data, pagesize) != pagesize)
|
---|
3502 | exit(1);
|
---|
3503 | close(fd);
|
---|
3504 |
|
---|
3505 | /*
|
---|
3506 | * Next, try to mmap the file at a fixed address which
|
---|
3507 | * already has something else allocated at it. If we can,
|
---|
3508 | * also make sure that we see the same garbage.
|
---|
3509 | */
|
---|
3510 | fd = open("conftestmmap", O_RDWR);
|
---|
3511 | if (fd < 0)
|
---|
3512 | exit(1);
|
---|
3513 | data2 = malloc(2 * pagesize);
|
---|
3514 | if (!data2)
|
---|
3515 | exit(1);
|
---|
3516 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
3517 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
3518 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
3519 | exit(1);
|
---|
3520 | for (i = 0; i < pagesize; ++i)
|
---|
3521 | if (*(data + i) != *(data2 + i))
|
---|
3522 | exit(1);
|
---|
3523 |
|
---|
3524 | /*
|
---|
3525 | * Finally, make sure that changes to the mapped area
|
---|
3526 | * do not percolate back to the file as seen by read().
|
---|
3527 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
3528 | */
|
---|
3529 | for (i = 0; i < pagesize; ++i)
|
---|
3530 | *(data2 + i) = *(data2 + i) + 1;
|
---|
3531 | data3 = malloc(pagesize);
|
---|
3532 | if (!data3)
|
---|
3533 | exit(1);
|
---|
3534 | if (read(fd, data3, pagesize) != pagesize)
|
---|
3535 | exit(1);
|
---|
3536 | for (i = 0; i < pagesize; ++i)
|
---|
3537 | if (*(data + i) != *(data3 + i))
|
---|
3538 | exit(1);
|
---|
3539 | close(fd);
|
---|
3540 | unlink("conftestmmap");
|
---|
3541 | exit(0);
|
---|
3542 | }
|
---|
3543 |
|
---|
3544 | EOF
|
---|
3545 | if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3546 | then
|
---|
3547 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
3548 | else
|
---|
3549 | echo "configure: failed program was:" >&5
|
---|
3550 | cat conftest.$ac_ext >&5
|
---|
3551 | rm -fr conftest*
|
---|
3552 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3553 | fi
|
---|
3554 | rm -fr conftest*
|
---|
3555 | fi
|
---|
3556 |
|
---|
3557 | fi
|
---|
3558 |
|
---|
3559 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
3560 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
3561 | cat >> confdefs.h <<\EOF
|
---|
3562 | #define HAVE_MMAP 1
|
---|
3563 | EOF
|
---|
3564 |
|
---|
3565 | fi
|
---|
3566 |
|
---|
3567 |
|
---|
3568 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
3569 | unistd.h values.h sys/param.h
|
---|
3570 | do
|
---|
3571 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3572 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3573 | echo "configure:3574: checking for $ac_hdr" >&5
|
---|
3574 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3575 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3576 | else
|
---|
3577 | cat > conftest.$ac_ext <<EOF
|
---|
3578 | #include <sys/types.h>
|
---|
3579 | #line 3580 "configure"
|
---|
3580 | #include "confdefs.h"
|
---|
3581 | #include <$ac_hdr>
|
---|
3582 | EOF
|
---|
3583 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3584 | { (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3585 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3586 | if test -z "$ac_err"; then
|
---|
3587 | rm -rf conftest*
|
---|
3588 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3589 | else
|
---|
3590 | echo "$ac_err" >&5
|
---|
3591 | echo "configure: failed program was:" >&5
|
---|
3592 | cat conftest.$ac_ext >&5
|
---|
3593 | rm -rf conftest*
|
---|
3594 | eval "ac_cv_header_$ac_safe=no"
|
---|
3595 | fi
|
---|
3596 | rm -f conftest*
|
---|
3597 | fi
|
---|
3598 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3599 | echo "$ac_t""yes" 1>&6
|
---|
3600 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3601 | cat >> confdefs.h <<EOF
|
---|
3602 | #define $ac_tr_hdr 1
|
---|
3603 | EOF
|
---|
3604 |
|
---|
3605 | else
|
---|
3606 | echo "$ac_t""no" 1>&6
|
---|
3607 | fi
|
---|
3608 | done
|
---|
3609 |
|
---|
3610 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
3611 | __argz_count __argz_stringify __argz_next
|
---|
3612 | do
|
---|
3613 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3614 | echo "configure:3615: checking for $ac_func" >&5
|
---|
3615 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3616 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3617 | else
|
---|
3618 | cat > conftest.$ac_ext <<EOF
|
---|
3619 | #line 3620 "configure"
|
---|
3620 | #include "confdefs.h"
|
---|
3621 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3622 | which can conflict with char $ac_func(); below. */
|
---|
3623 | #include <assert.h>
|
---|
3624 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3625 | /* We use char because int might match the return type of a gcc2
|
---|
3626 | builtin and then its argument prototype would still apply. */
|
---|
3627 | char $ac_func();
|
---|
3628 |
|
---|
3629 | int main() {
|
---|
3630 |
|
---|
3631 | /* The GNU C library defines this for functions which it implements
|
---|
3632 | to always fail with ENOSYS. Some functions are actually named
|
---|
3633 | something starting with __ and the normal name is an alias. */
|
---|
3634 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3635 | choke me
|
---|
3636 | #else
|
---|
3637 | $ac_func();
|
---|
3638 | #endif
|
---|
3639 |
|
---|
3640 | ; return 0; }
|
---|
3641 | EOF
|
---|
3642 | if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3643 | rm -rf conftest*
|
---|
3644 | eval "ac_cv_func_$ac_func=yes"
|
---|
3645 | else
|
---|
3646 | echo "configure: failed program was:" >&5
|
---|
3647 | cat conftest.$ac_ext >&5
|
---|
3648 | rm -rf conftest*
|
---|
3649 | eval "ac_cv_func_$ac_func=no"
|
---|
3650 | fi
|
---|
3651 | rm -f conftest*
|
---|
3652 | fi
|
---|
3653 |
|
---|
3654 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3655 | echo "$ac_t""yes" 1>&6
|
---|
3656 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3657 | cat >> confdefs.h <<EOF
|
---|
3658 | #define $ac_tr_func 1
|
---|
3659 | EOF
|
---|
3660 |
|
---|
3661 | else
|
---|
3662 | echo "$ac_t""no" 1>&6
|
---|
3663 | fi
|
---|
3664 | done
|
---|
3665 |
|
---|
3666 |
|
---|
3667 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
3668 | for ac_func in stpcpy
|
---|
3669 | do
|
---|
3670 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3671 | echo "configure:3672: checking for $ac_func" >&5
|
---|
3672 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3673 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3674 | else
|
---|
3675 | cat > conftest.$ac_ext <<EOF
|
---|
3676 | #line 3677 "configure"
|
---|
3677 | #include "confdefs.h"
|
---|
3678 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3679 | which can conflict with char $ac_func(); below. */
|
---|
3680 | #include <assert.h>
|
---|
3681 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3682 | /* We use char because int might match the return type of a gcc2
|
---|
3683 | builtin and then its argument prototype would still apply. */
|
---|
3684 | char $ac_func();
|
---|
3685 |
|
---|
3686 | int main() {
|
---|
3687 |
|
---|
3688 | /* The GNU C library defines this for functions which it implements
|
---|
3689 | to always fail with ENOSYS. Some functions are actually named
|
---|
3690 | something starting with __ and the normal name is an alias. */
|
---|
3691 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3692 | choke me
|
---|
3693 | #else
|
---|
3694 | $ac_func();
|
---|
3695 | #endif
|
---|
3696 |
|
---|
3697 | ; return 0; }
|
---|
3698 | EOF
|
---|
3699 | if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3700 | rm -rf conftest*
|
---|
3701 | eval "ac_cv_func_$ac_func=yes"
|
---|
3702 | else
|
---|
3703 | echo "configure: failed program was:" >&5
|
---|
3704 | cat conftest.$ac_ext >&5
|
---|
3705 | rm -rf conftest*
|
---|
3706 | eval "ac_cv_func_$ac_func=no"
|
---|
3707 | fi
|
---|
3708 | rm -f conftest*
|
---|
3709 | fi
|
---|
3710 |
|
---|
3711 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3712 | echo "$ac_t""yes" 1>&6
|
---|
3713 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3714 | cat >> confdefs.h <<EOF
|
---|
3715 | #define $ac_tr_func 1
|
---|
3716 | EOF
|
---|
3717 |
|
---|
3718 | else
|
---|
3719 | echo "$ac_t""no" 1>&6
|
---|
3720 | fi
|
---|
3721 | done
|
---|
3722 |
|
---|
3723 | fi
|
---|
3724 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
3725 | cat >> confdefs.h <<\EOF
|
---|
3726 | #define HAVE_STPCPY 1
|
---|
3727 | EOF
|
---|
3728 |
|
---|
3729 | fi
|
---|
3730 |
|
---|
3731 | if test $ac_cv_header_locale_h = yes; then
|
---|
3732 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
3733 | echo "configure:3734: checking for LC_MESSAGES" >&5
|
---|
3734 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
3735 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3736 | else
|
---|
3737 | cat > conftest.$ac_ext <<EOF
|
---|
3738 | #line 3739 "configure"
|
---|
3739 | #include "confdefs.h"
|
---|
3740 | #include <locale.h>
|
---|
3741 | int main() {
|
---|
3742 | return LC_MESSAGES
|
---|
3743 | ; return 0; }
|
---|
3744 | EOF
|
---|
3745 | if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3746 | rm -rf conftest*
|
---|
3747 | am_cv_val_LC_MESSAGES=yes
|
---|
3748 | else
|
---|
3749 | echo "configure: failed program was:" >&5
|
---|
3750 | cat conftest.$ac_ext >&5
|
---|
3751 | rm -rf conftest*
|
---|
3752 | am_cv_val_LC_MESSAGES=no
|
---|
3753 | fi
|
---|
3754 | rm -f conftest*
|
---|
3755 | fi
|
---|
3756 |
|
---|
3757 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
3758 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
3759 | cat >> confdefs.h <<\EOF
|
---|
3760 | #define HAVE_LC_MESSAGES 1
|
---|
3761 | EOF
|
---|
3762 |
|
---|
3763 | fi
|
---|
3764 | fi
|
---|
3765 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
3766 | echo "configure:3767: checking whether NLS is requested" >&5
|
---|
3767 | # Check whether --enable-nls or --disable-nls was given.
|
---|
3768 | if test "${enable_nls+set}" = set; then
|
---|
3769 | enableval="$enable_nls"
|
---|
3770 | USE_NLS=$enableval
|
---|
3771 | else
|
---|
3772 | USE_NLS=yes
|
---|
3773 | fi
|
---|
3774 |
|
---|
3775 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
3776 |
|
---|
3777 |
|
---|
3778 | USE_INCLUDED_LIBINTL=no
|
---|
3779 |
|
---|
3780 | if test "$USE_NLS" = "yes"; then
|
---|
3781 | cat >> confdefs.h <<\EOF
|
---|
3782 | #define ENABLE_NLS 1
|
---|
3783 | EOF
|
---|
3784 |
|
---|
3785 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
3786 | echo "configure:3787: checking whether included gettext is requested" >&5
|
---|
3787 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
3788 | if test "${with_included_gettext+set}" = set; then
|
---|
3789 | withval="$with_included_gettext"
|
---|
3790 | nls_cv_force_use_gnu_gettext=$withval
|
---|
3791 | else
|
---|
3792 | nls_cv_force_use_gnu_gettext=no
|
---|
3793 | fi
|
---|
3794 |
|
---|
3795 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
3796 |
|
---|
3797 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
3798 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
3799 | nls_cv_header_intl=
|
---|
3800 | nls_cv_header_libgt=
|
---|
3801 | CATOBJEXT=NONE
|
---|
3802 |
|
---|
3803 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
3804 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
3805 | echo "configure:3806: checking for libintl.h" >&5
|
---|
3806 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3807 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3808 | else
|
---|
3809 | cat > conftest.$ac_ext <<EOF
|
---|
3810 | #include <sys/types.h>
|
---|
3811 | #line 3812 "configure"
|
---|
3812 | #include "confdefs.h"
|
---|
3813 | #include <libintl.h>
|
---|
3814 | EOF
|
---|
3815 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3816 | { (eval echo configure:3817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3817 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3818 | if test -z "$ac_err"; then
|
---|
3819 | rm -rf conftest*
|
---|
3820 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3821 | else
|
---|
3822 | echo "$ac_err" >&5
|
---|
3823 | echo "configure: failed program was:" >&5
|
---|
3824 | cat conftest.$ac_ext >&5
|
---|
3825 | rm -rf conftest*
|
---|
3826 | eval "ac_cv_header_$ac_safe=no"
|
---|
3827 | fi
|
---|
3828 | rm -f conftest*
|
---|
3829 | fi
|
---|
3830 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3831 | echo "$ac_t""yes" 1>&6
|
---|
3832 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
3833 | echo "configure:3834: checking for gettext in libc" >&5
|
---|
3834 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
3835 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3836 | else
|
---|
3837 | cat > conftest.$ac_ext <<EOF
|
---|
3838 | #line 3839 "configure"
|
---|
3839 | #include "confdefs.h"
|
---|
3840 | #include <libintl.h>
|
---|
3841 | int main() {
|
---|
3842 | return (int) gettext ("")
|
---|
3843 | ; return 0; }
|
---|
3844 | EOF
|
---|
3845 | if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3846 | rm -rf conftest*
|
---|
3847 | gt_cv_func_gettext_libc=yes
|
---|
3848 | else
|
---|
3849 | echo "configure: failed program was:" >&5
|
---|
3850 | cat conftest.$ac_ext >&5
|
---|
3851 | rm -rf conftest*
|
---|
3852 | gt_cv_func_gettext_libc=no
|
---|
3853 | fi
|
---|
3854 | rm -f conftest*
|
---|
3855 | fi
|
---|
3856 |
|
---|
3857 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
3858 |
|
---|
3859 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
3860 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
3861 | echo "configure:3862: checking for bindtextdomain in -lintl" >&5
|
---|
3862 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
3863 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3864 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3865 | else
|
---|
3866 | ac_save_LIBS="$LIBS"
|
---|
3867 | LIBS="-lintl $LIBS"
|
---|
3868 | cat > conftest.$ac_ext <<EOF
|
---|
3869 | #line 3870 "configure"
|
---|
3870 | #include "confdefs.h"
|
---|
3871 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3872 | /* We use char because int might match the return type of a gcc2
|
---|
3873 | builtin and then its argument prototype would still apply. */
|
---|
3874 | char bindtextdomain();
|
---|
3875 |
|
---|
3876 | int main() {
|
---|
3877 | bindtextdomain()
|
---|
3878 | ; return 0; }
|
---|
3879 | EOF
|
---|
3880 | if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3881 | rm -rf conftest*
|
---|
3882 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3883 | else
|
---|
3884 | echo "configure: failed program was:" >&5
|
---|
3885 | cat conftest.$ac_ext >&5
|
---|
3886 | rm -rf conftest*
|
---|
3887 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3888 | fi
|
---|
3889 | rm -f conftest*
|
---|
3890 | LIBS="$ac_save_LIBS"
|
---|
3891 |
|
---|
3892 | fi
|
---|
3893 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3894 | echo "$ac_t""yes" 1>&6
|
---|
3895 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
3896 | echo "configure:3897: checking for gettext in libintl" >&5
|
---|
3897 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
3898 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3899 | else
|
---|
3900 | cat > conftest.$ac_ext <<EOF
|
---|
3901 | #line 3902 "configure"
|
---|
3902 | #include "confdefs.h"
|
---|
3903 |
|
---|
3904 | int main() {
|
---|
3905 | return (int) gettext ("")
|
---|
3906 | ; return 0; }
|
---|
3907 | EOF
|
---|
3908 | if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3909 | rm -rf conftest*
|
---|
3910 | gt_cv_func_gettext_libintl=yes
|
---|
3911 | else
|
---|
3912 | echo "configure: failed program was:" >&5
|
---|
3913 | cat conftest.$ac_ext >&5
|
---|
3914 | rm -rf conftest*
|
---|
3915 | gt_cv_func_gettext_libintl=no
|
---|
3916 | fi
|
---|
3917 | rm -f conftest*
|
---|
3918 | fi
|
---|
3919 |
|
---|
3920 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
3921 | else
|
---|
3922 | echo "$ac_t""no" 1>&6
|
---|
3923 | fi
|
---|
3924 |
|
---|
3925 | fi
|
---|
3926 |
|
---|
3927 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
3928 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
3929 | cat >> confdefs.h <<\EOF
|
---|
3930 | #define HAVE_GETTEXT 1
|
---|
3931 | EOF
|
---|
3932 |
|
---|
3933 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3934 | set dummy msgfmt; ac_word=$2
|
---|
3935 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3936 | echo "configure:3937: checking for $ac_word" >&5
|
---|
3937 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
3938 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3939 | else
|
---|
3940 | case "$MSGFMT" in
|
---|
3941 | /*)
|
---|
3942 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
3943 | ;;
|
---|
3944 | *)
|
---|
3945 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
3946 | for ac_dir in $PATH; do
|
---|
3947 | test -z "$ac_dir" && ac_dir=.
|
---|
3948 | if test -f $ac_dir/$ac_word; then
|
---|
3949 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
3950 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
3951 | break
|
---|
3952 | fi
|
---|
3953 | fi
|
---|
3954 | done
|
---|
3955 | IFS="$ac_save_ifs"
|
---|
3956 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
3957 | ;;
|
---|
3958 | esac
|
---|
3959 | fi
|
---|
3960 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
3961 | if test -n "$MSGFMT"; then
|
---|
3962 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
3963 | else
|
---|
3964 | echo "$ac_t""no" 1>&6
|
---|
3965 | fi
|
---|
3966 | if test "$MSGFMT" != "no"; then
|
---|
3967 | for ac_func in dcgettext
|
---|
3968 | do
|
---|
3969 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3970 | echo "configure:3971: checking for $ac_func" >&5
|
---|
3971 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3972 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3973 | else
|
---|
3974 | cat > conftest.$ac_ext <<EOF
|
---|
3975 | #line 3976 "configure"
|
---|
3976 | #include "confdefs.h"
|
---|
3977 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3978 | which can conflict with char $ac_func(); below. */
|
---|
3979 | #include <assert.h>
|
---|
3980 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3981 | /* We use char because int might match the return type of a gcc2
|
---|
3982 | builtin and then its argument prototype would still apply. */
|
---|
3983 | char $ac_func();
|
---|
3984 |
|
---|
3985 | int main() {
|
---|
3986 |
|
---|
3987 | /* The GNU C library defines this for functions which it implements
|
---|
3988 | to always fail with ENOSYS. Some functions are actually named
|
---|
3989 | something starting with __ and the normal name is an alias. */
|
---|
3990 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3991 | choke me
|
---|
3992 | #else
|
---|
3993 | $ac_func();
|
---|
3994 | #endif
|
---|
3995 |
|
---|
3996 | ; return 0; }
|
---|
3997 | EOF
|
---|
3998 | if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3999 | rm -rf conftest*
|
---|
4000 | eval "ac_cv_func_$ac_func=yes"
|
---|
4001 | else
|
---|
4002 | echo "configure: failed program was:" >&5
|
---|
4003 | cat conftest.$ac_ext >&5
|
---|
4004 | rm -rf conftest*
|
---|
4005 | eval "ac_cv_func_$ac_func=no"
|
---|
4006 | fi
|
---|
4007 | rm -f conftest*
|
---|
4008 | fi
|
---|
4009 |
|
---|
4010 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4011 | echo "$ac_t""yes" 1>&6
|
---|
4012 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4013 | cat >> confdefs.h <<EOF
|
---|
4014 | #define $ac_tr_func 1
|
---|
4015 | EOF
|
---|
4016 |
|
---|
4017 | else
|
---|
4018 | echo "$ac_t""no" 1>&6
|
---|
4019 | fi
|
---|
4020 | done
|
---|
4021 |
|
---|
4022 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4023 | set dummy gmsgfmt; ac_word=$2
|
---|
4024 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4025 | echo "configure:4026: checking for $ac_word" >&5
|
---|
4026 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4027 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4028 | else
|
---|
4029 | case "$GMSGFMT" in
|
---|
4030 | /* | [a-zA-Z]:*)
|
---|
4031 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4032 | ;;
|
---|
4033 | ?:/*)
|
---|
4034 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4035 | ;;
|
---|
4036 | *)
|
---|
4037 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4038 | ac_dummy="$PATH"
|
---|
4039 | for ac_dir in $ac_dummy; do
|
---|
4040 | test -z "$ac_dir" && ac_dir=.
|
---|
4041 | if test -f $ac_dir/$ac_word; then
|
---|
4042 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4043 | break
|
---|
4044 | fi
|
---|
4045 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4046 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4047 | break
|
---|
4048 | fi
|
---|
4049 | done
|
---|
4050 | IFS="$ac_save_ifs"
|
---|
4051 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4052 | ;;
|
---|
4053 | esac
|
---|
4054 | fi
|
---|
4055 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4056 | if test -n "$GMSGFMT"; then
|
---|
4057 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4058 | else
|
---|
4059 | echo "$ac_t""no" 1>&6
|
---|
4060 | fi
|
---|
4061 |
|
---|
4062 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4063 | set dummy xgettext; ac_word=$2
|
---|
4064 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4065 | echo "configure:4066: checking for $ac_word" >&5
|
---|
4066 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4067 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4068 | else
|
---|
4069 | case "$XGETTEXT" in
|
---|
4070 | /*)
|
---|
4071 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4072 | ;;
|
---|
4073 | *)
|
---|
4074 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4075 | for ac_dir in $PATH; do
|
---|
4076 | test -z "$ac_dir" && ac_dir=.
|
---|
4077 | if test -f $ac_dir/$ac_word; then
|
---|
4078 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4079 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4080 | break
|
---|
4081 | fi
|
---|
4082 | fi
|
---|
4083 | done
|
---|
4084 | IFS="$ac_save_ifs"
|
---|
4085 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4086 | ;;
|
---|
4087 | esac
|
---|
4088 | fi
|
---|
4089 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4090 | if test -n "$XGETTEXT"; then
|
---|
4091 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4092 | else
|
---|
4093 | echo "$ac_t""no" 1>&6
|
---|
4094 | fi
|
---|
4095 |
|
---|
4096 | cat > conftest.$ac_ext <<EOF
|
---|
4097 | #line 4098 "configure"
|
---|
4098 | #include "confdefs.h"
|
---|
4099 |
|
---|
4100 | int main() {
|
---|
4101 | extern int _nl_msg_cat_cntr;
|
---|
4102 | return _nl_msg_cat_cntr
|
---|
4103 | ; return 0; }
|
---|
4104 | EOF
|
---|
4105 | if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4106 | rm -rf conftest*
|
---|
4107 | CATOBJEXT=.gmo
|
---|
4108 | DATADIRNAME=share
|
---|
4109 | else
|
---|
4110 | echo "configure: failed program was:" >&5
|
---|
4111 | cat conftest.$ac_ext >&5
|
---|
4112 | rm -rf conftest*
|
---|
4113 | CATOBJEXT=.mo
|
---|
4114 | DATADIRNAME=lib
|
---|
4115 | fi
|
---|
4116 | rm -f conftest*
|
---|
4117 | INSTOBJEXT=.mo
|
---|
4118 | fi
|
---|
4119 | fi
|
---|
4120 |
|
---|
4121 | else
|
---|
4122 | echo "$ac_t""no" 1>&6
|
---|
4123 | fi
|
---|
4124 |
|
---|
4125 |
|
---|
4126 |
|
---|
4127 | if test "$CATOBJEXT" = "NONE"; then
|
---|
4128 | nls_cv_use_gnu_gettext=yes
|
---|
4129 | fi
|
---|
4130 | fi
|
---|
4131 |
|
---|
4132 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
4133 | INTLOBJS="\$(GETTOBJS)"
|
---|
4134 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4135 | set dummy msgfmt; ac_word=$2
|
---|
4136 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4137 | echo "configure:4138: checking for $ac_word" >&5
|
---|
4138 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4139 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4140 | else
|
---|
4141 | case "$MSGFMT" in
|
---|
4142 | /*)
|
---|
4143 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4144 | ;;
|
---|
4145 | *)
|
---|
4146 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4147 | for ac_dir in $PATH; do
|
---|
4148 | test -z "$ac_dir" && ac_dir=.
|
---|
4149 | if test -f $ac_dir/$ac_word; then
|
---|
4150 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4151 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4152 | break
|
---|
4153 | fi
|
---|
4154 | fi
|
---|
4155 | done
|
---|
4156 | IFS="$ac_save_ifs"
|
---|
4157 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
4158 | ;;
|
---|
4159 | esac
|
---|
4160 | fi
|
---|
4161 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4162 | if test -n "$MSGFMT"; then
|
---|
4163 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4164 | else
|
---|
4165 | echo "$ac_t""no" 1>&6
|
---|
4166 | fi
|
---|
4167 |
|
---|
4168 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4169 | set dummy gmsgfmt; ac_word=$2
|
---|
4170 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4171 | echo "configure:4172: checking for $ac_word" >&5
|
---|
4172 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4173 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4174 | else
|
---|
4175 | case "$GMSGFMT" in
|
---|
4176 | /* | [a-zA-Z]:*)
|
---|
4177 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4178 | ;;
|
---|
4179 | ?:/*)
|
---|
4180 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4181 | ;;
|
---|
4182 | *)
|
---|
4183 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4184 | ac_dummy="$PATH"
|
---|
4185 | for ac_dir in $ac_dummy; do
|
---|
4186 | test -z "$ac_dir" && ac_dir=.
|
---|
4187 | if test -f $ac_dir/$ac_word; then
|
---|
4188 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4189 | break
|
---|
4190 | fi
|
---|
4191 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4192 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4193 | break
|
---|
4194 | fi
|
---|
4195 | done
|
---|
4196 | IFS="$ac_save_ifs"
|
---|
4197 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4198 | ;;
|
---|
4199 | esac
|
---|
4200 | fi
|
---|
4201 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4202 | if test -n "$GMSGFMT"; then
|
---|
4203 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4204 | else
|
---|
4205 | echo "$ac_t""no" 1>&6
|
---|
4206 | fi
|
---|
4207 |
|
---|
4208 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4209 | set dummy xgettext; ac_word=$2
|
---|
4210 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4211 | echo "configure:4212: checking for $ac_word" >&5
|
---|
4212 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4213 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4214 | else
|
---|
4215 | case "$XGETTEXT" in
|
---|
4216 | /*)
|
---|
4217 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4218 | ;;
|
---|
4219 | *)
|
---|
4220 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4221 | for ac_dir in $PATH; do
|
---|
4222 | test -z "$ac_dir" && ac_dir=.
|
---|
4223 | if test -f $ac_dir/$ac_word; then
|
---|
4224 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4225 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4226 | break
|
---|
4227 | fi
|
---|
4228 | fi
|
---|
4229 | done
|
---|
4230 | IFS="$ac_save_ifs"
|
---|
4231 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4232 | ;;
|
---|
4233 | esac
|
---|
4234 | fi
|
---|
4235 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4236 | if test -n "$XGETTEXT"; then
|
---|
4237 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4238 | else
|
---|
4239 | echo "$ac_t""no" 1>&6
|
---|
4240 | fi
|
---|
4241 |
|
---|
4242 |
|
---|
4243 | USE_INCLUDED_LIBINTL=yes
|
---|
4244 | CATOBJEXT=.gmo
|
---|
4245 | INSTOBJEXT=.mo
|
---|
4246 | DATADIRNAME=share
|
---|
4247 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
4248 | INTLLIBS=$INTLDEPS
|
---|
4249 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
4250 | nls_cv_header_intl=libintl.h
|
---|
4251 | nls_cv_header_libgt=libgettext.h
|
---|
4252 | fi
|
---|
4253 |
|
---|
4254 | if test "$XGETTEXT" != ":"; then
|
---|
4255 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
4256 | : ;
|
---|
4257 | else
|
---|
4258 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
4259 | XGETTEXT=":"
|
---|
4260 | fi
|
---|
4261 | fi
|
---|
4262 |
|
---|
4263 | # We need to process the po/ directory.
|
---|
4264 | POSUB=po
|
---|
4265 | else
|
---|
4266 | DATADIRNAME=share
|
---|
4267 | nls_cv_header_intl=libintl.h
|
---|
4268 | nls_cv_header_libgt=libgettext.h
|
---|
4269 | fi
|
---|
4270 |
|
---|
4271 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
4272 | # because some of the sources are only built for this goal.
|
---|
4273 | if test "$PACKAGE" = gettext; then
|
---|
4274 | USE_NLS=yes
|
---|
4275 | USE_INCLUDED_LIBINTL=yes
|
---|
4276 | fi
|
---|
4277 |
|
---|
4278 | for lang in $ALL_LINGUAS; do
|
---|
4279 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
4280 | POFILES="$POFILES $lang.po"
|
---|
4281 | done
|
---|
4282 |
|
---|
4283 |
|
---|
4284 |
|
---|
4285 |
|
---|
4286 |
|
---|
4287 |
|
---|
4288 |
|
---|
4289 |
|
---|
4290 |
|
---|
4291 |
|
---|
4292 |
|
---|
4293 |
|
---|
4294 |
|
---|
4295 |
|
---|
4296 | if test "x$CATOBJEXT" != "x"; then
|
---|
4297 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
4298 | LINGUAS=
|
---|
4299 | else
|
---|
4300 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
4301 | echo "configure:4302: checking for catalogs to be installed" >&5
|
---|
4302 | NEW_LINGUAS=
|
---|
4303 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
4304 | case "$ALL_LINGUAS" in
|
---|
4305 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
4306 | esac
|
---|
4307 | done
|
---|
4308 | LINGUAS=$NEW_LINGUAS
|
---|
4309 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
4310 | fi
|
---|
4311 |
|
---|
4312 | if test -n "$LINGUAS"; then
|
---|
4313 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
4314 | fi
|
---|
4315 | fi
|
---|
4316 |
|
---|
4317 | if test $ac_cv_header_locale_h = yes; then
|
---|
4318 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
4319 | else
|
---|
4320 | INCLUDE_LOCALE_H="\
|
---|
4321 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
4322 | fi
|
---|
4323 |
|
---|
4324 |
|
---|
4325 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
4326 | if test "$CATOBJEXT" = ".cat"; then
|
---|
4327 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
4328 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
4329 | echo "configure:4330: checking for linux/version.h" >&5
|
---|
4330 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4331 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4332 | else
|
---|
4333 | cat > conftest.$ac_ext <<EOF
|
---|
4334 | #include <sys/types.h>
|
---|
4335 | #line 4336 "configure"
|
---|
4336 | #include "confdefs.h"
|
---|
4337 | #include <linux/version.h>
|
---|
4338 | EOF
|
---|
4339 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4340 | { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4341 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4342 | if test -z "$ac_err"; then
|
---|
4343 | rm -rf conftest*
|
---|
4344 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4345 | else
|
---|
4346 | echo "$ac_err" >&5
|
---|
4347 | echo "configure: failed program was:" >&5
|
---|
4348 | cat conftest.$ac_ext >&5
|
---|
4349 | rm -rf conftest*
|
---|
4350 | eval "ac_cv_header_$ac_safe=no"
|
---|
4351 | fi
|
---|
4352 | rm -f conftest*
|
---|
4353 | fi
|
---|
4354 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4355 | echo "$ac_t""yes" 1>&6
|
---|
4356 | msgformat=linux
|
---|
4357 | else
|
---|
4358 | echo "$ac_t""no" 1>&6
|
---|
4359 | msgformat=xopen
|
---|
4360 | fi
|
---|
4361 |
|
---|
4362 |
|
---|
4363 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
4364 | fi
|
---|
4365 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
4366 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
4367 | fi
|
---|
4368 |
|
---|
4369 | if test "$PACKAGE" = "gettext"; then
|
---|
4370 | GT_NO="#NO#"
|
---|
4371 | GT_YES=
|
---|
4372 | else
|
---|
4373 | GT_NO=
|
---|
4374 | GT_YES="#YES#"
|
---|
4375 | fi
|
---|
4376 |
|
---|
4377 |
|
---|
4378 |
|
---|
4379 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
4380 |
|
---|
4381 |
|
---|
4382 | l=
|
---|
4383 |
|
---|
4384 |
|
---|
4385 | if test -f $srcdir/po/POTFILES.in; then
|
---|
4386 | test -d po || mkdir po
|
---|
4387 | if test "x$srcdir" != "x."; then
|
---|
4388 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
---|
4389 | posrcprefix="$srcdir/"
|
---|
4390 | else
|
---|
4391 | posrcprefix="../$srcdir/"
|
---|
4392 | fi
|
---|
4393 | else
|
---|
4394 | posrcprefix="../"
|
---|
4395 | fi
|
---|
4396 | rm -f po/POTFILES
|
---|
4397 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
4398 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
4399 | fi
|
---|
4400 |
|
---|
4401 |
|
---|
4402 |
|
---|
4403 |
|
---|
4404 |
|
---|
4405 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
4406 | echo "configure:4407: checking for executable suffix" >&5
|
---|
4407 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
4408 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4409 | else
|
---|
4410 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
4411 | ac_cv_exeext=.exe
|
---|
4412 | else
|
---|
4413 | rm -f conftest*
|
---|
4414 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
4415 | ac_cv_exeext=
|
---|
4416 | if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
4417 | for file in conftest.*; do
|
---|
4418 | case $file in
|
---|
4419 | *.c | *.o | *.obj) ;;
|
---|
4420 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
4421 | esac
|
---|
4422 | done
|
---|
4423 | else
|
---|
4424 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
4425 | fi
|
---|
4426 | rm -f conftest*
|
---|
4427 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
4428 | fi
|
---|
4429 | fi
|
---|
4430 |
|
---|
4431 | EXEEXT=""
|
---|
4432 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
4433 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
4434 | ac_exeext=$EXEEXT
|
---|
4435 |
|
---|
4436 |
|
---|
4437 | for ac_prog in 'bison -y' byacc
|
---|
4438 | do
|
---|
4439 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4440 | set dummy $ac_prog; ac_word=$2
|
---|
4441 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4442 | echo "configure:4443: checking for $ac_word" >&5
|
---|
4443 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
---|
4444 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4445 | else
|
---|
4446 | if test -n "$YACC"; then
|
---|
4447 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
4448 | else
|
---|
4449 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4450 | ac_dummy="$PATH"
|
---|
4451 | for ac_dir in $ac_dummy; do
|
---|
4452 | test -z "$ac_dir" && ac_dir=.
|
---|
4453 | if test -f $ac_dir/$ac_word -o \
|
---|
4454 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
4455 | ac_cv_prog_YACC="$ac_prog"
|
---|
4456 | break
|
---|
4457 | fi
|
---|
4458 | done
|
---|
4459 | IFS="$ac_save_ifs"
|
---|
4460 | fi
|
---|
4461 | fi
|
---|
4462 | YACC="$ac_cv_prog_YACC"
|
---|
4463 | if test -n "$YACC"; then
|
---|
4464 | echo "$ac_t""$YACC" 1>&6
|
---|
4465 | else
|
---|
4466 | echo "$ac_t""no" 1>&6
|
---|
4467 | fi
|
---|
4468 |
|
---|
4469 | test -n "$YACC" && break
|
---|
4470 | done
|
---|
4471 | test -n "$YACC" || YACC="yacc"
|
---|
4472 |
|
---|
4473 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
4474 | for ac_prog in flex lex
|
---|
4475 | do
|
---|
4476 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4477 | set dummy $ac_prog; ac_word=$2
|
---|
4478 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4479 | echo "configure:4480: checking for $ac_word" >&5
|
---|
4480 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
|
---|
4481 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4482 | else
|
---|
4483 | if test -n "$LEX"; then
|
---|
4484 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
---|
4485 | else
|
---|
4486 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4487 | ac_dummy="$PATH"
|
---|
4488 | for ac_dir in $ac_dummy; do
|
---|
4489 | test -z "$ac_dir" && ac_dir=.
|
---|
4490 | if test -f $ac_dir/$ac_word -o \
|
---|
4491 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
4492 | ac_cv_prog_LEX="$ac_prog"
|
---|
4493 | break
|
---|
4494 | fi
|
---|
4495 | done
|
---|
4496 | IFS="$ac_save_ifs"
|
---|
4497 | fi
|
---|
4498 | fi
|
---|
4499 | LEX="$ac_cv_prog_LEX"
|
---|
4500 | if test -n "$LEX"; then
|
---|
4501 | echo "$ac_t""$LEX" 1>&6
|
---|
4502 | else
|
---|
4503 | echo "$ac_t""no" 1>&6
|
---|
4504 | fi
|
---|
4505 |
|
---|
4506 | test -n "$LEX" && break
|
---|
4507 | done
|
---|
4508 | test -n "$LEX" || LEX=""$missing_dir/missing flex""
|
---|
4509 |
|
---|
4510 | # Extract the first word of "flex", so it can be a program name with args.
|
---|
4511 | set dummy flex; ac_word=$2
|
---|
4512 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4513 | echo "configure:4514: checking for $ac_word" >&5
|
---|
4514 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
|
---|
4515 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4516 | else
|
---|
4517 | if test -n "$LEX"; then
|
---|
4518 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
---|
4519 | else
|
---|
4520 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4521 | ac_dummy="$PATH"
|
---|
4522 | for ac_dir in $ac_dummy; do
|
---|
4523 | test -z "$ac_dir" && ac_dir=.
|
---|
4524 | if test -f $ac_dir/$ac_word -o \
|
---|
4525 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
4526 | ac_cv_prog_LEX="flex"
|
---|
4527 | break
|
---|
4528 | fi
|
---|
4529 | done
|
---|
4530 | IFS="$ac_save_ifs"
|
---|
4531 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
|
---|
4532 | fi
|
---|
4533 | fi
|
---|
4534 | LEX="$ac_cv_prog_LEX"
|
---|
4535 | if test -n "$LEX"; then
|
---|
4536 | echo "$ac_t""$LEX" 1>&6
|
---|
4537 | else
|
---|
4538 | echo "$ac_t""no" 1>&6
|
---|
4539 | fi
|
---|
4540 |
|
---|
4541 | if test -z "$LEXLIB"
|
---|
4542 | then
|
---|
4543 | case "$LEX" in
|
---|
4544 | flex*) ac_lib=fl ;;
|
---|
4545 | *) ac_lib=l ;;
|
---|
4546 | esac
|
---|
4547 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
|
---|
4548 | echo "configure:4549: checking for yywrap in -l$ac_lib" >&5
|
---|
4549 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
|
---|
4550 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4551 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4552 | else
|
---|
4553 | ac_save_LIBS="$LIBS"
|
---|
4554 | LIBS="-l$ac_lib $LIBS"
|
---|
4555 | cat > conftest.$ac_ext <<EOF
|
---|
4556 | #line 4557 "configure"
|
---|
4557 | #include "confdefs.h"
|
---|
4558 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4559 | /* We use char because int might match the return type of a gcc2
|
---|
4560 | builtin and then its argument prototype would still apply. */
|
---|
4561 | char yywrap();
|
---|
4562 |
|
---|
4563 | int main() {
|
---|
4564 | yywrap()
|
---|
4565 | ; return 0; }
|
---|
4566 | EOF
|
---|
4567 | if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4568 | rm -rf conftest*
|
---|
4569 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4570 | else
|
---|
4571 | echo "configure: failed program was:" >&5
|
---|
4572 | cat conftest.$ac_ext >&5
|
---|
4573 | rm -rf conftest*
|
---|
4574 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4575 | fi
|
---|
4576 | rm -f conftest*
|
---|
4577 | LIBS="$ac_save_LIBS"
|
---|
4578 |
|
---|
4579 | fi
|
---|
4580 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4581 | echo "$ac_t""yes" 1>&6
|
---|
4582 | LEXLIB="-l$ac_lib"
|
---|
4583 | else
|
---|
4584 | echo "$ac_t""no" 1>&6
|
---|
4585 | fi
|
---|
4586 |
|
---|
4587 | fi
|
---|
4588 |
|
---|
4589 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6
|
---|
4590 | echo "configure:4591: checking lex output file root" >&5
|
---|
4591 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
|
---|
4592 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4593 | else
|
---|
4594 | # The minimal lex program is just a single line: %%. But some broken lexes
|
---|
4595 | # (Solaris, I think it was) want two %% lines, so accommodate them.
|
---|
4596 | echo '%%
|
---|
4597 | %%' | $LEX
|
---|
4598 | if test -f lex.yy.c; then
|
---|
4599 | ac_cv_prog_lex_root=lex.yy
|
---|
4600 | elif test -f lexyy.c; then
|
---|
4601 | ac_cv_prog_lex_root=lexyy
|
---|
4602 | else
|
---|
4603 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
|
---|
4604 | fi
|
---|
4605 | fi
|
---|
4606 |
|
---|
4607 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
|
---|
4608 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
|
---|
4609 |
|
---|
4610 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
|
---|
4611 | echo "configure:4612: checking whether yytext is a pointer" >&5
|
---|
4612 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
|
---|
4613 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4614 | else
|
---|
4615 | # POSIX says lex can declare yytext either as a pointer or an array; the
|
---|
4616 | # default is implementation-dependent. Figure out which it is, since
|
---|
4617 | # not all implementations provide the %pointer and %array declarations.
|
---|
4618 | ac_cv_prog_lex_yytext_pointer=no
|
---|
4619 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
|
---|
4620 | ac_save_LIBS="$LIBS"
|
---|
4621 | LIBS="$LIBS $LEXLIB"
|
---|
4622 | cat > conftest.$ac_ext <<EOF
|
---|
4623 | #line 4624 "configure"
|
---|
4624 | #include "confdefs.h"
|
---|
4625 | `cat $LEX_OUTPUT_ROOT.c`
|
---|
4626 | int main() {
|
---|
4627 |
|
---|
4628 | ; return 0; }
|
---|
4629 | EOF
|
---|
4630 | if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4631 | rm -rf conftest*
|
---|
4632 | ac_cv_prog_lex_yytext_pointer=yes
|
---|
4633 | else
|
---|
4634 | echo "configure: failed program was:" >&5
|
---|
4635 | cat conftest.$ac_ext >&5
|
---|
4636 | fi
|
---|
4637 | rm -f conftest*
|
---|
4638 | LIBS="$ac_save_LIBS"
|
---|
4639 | rm -f "${LEX_OUTPUT_ROOT}.c"
|
---|
4640 |
|
---|
4641 | fi
|
---|
4642 |
|
---|
4643 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
|
---|
4644 | if test $ac_cv_prog_lex_yytext_pointer = yes; then
|
---|
4645 | cat >> confdefs.h <<\EOF
|
---|
4646 | #define YYTEXT_POINTER 1
|
---|
4647 | EOF
|
---|
4648 |
|
---|
4649 | fi
|
---|
4650 |
|
---|
4651 |
|
---|
4652 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
4653 | echo "configure:4654: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
4654 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
4655 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
4656 | enableval="$enable_maintainer_mode"
|
---|
4657 | USE_MAINTAINER_MODE=$enableval
|
---|
4658 | else
|
---|
4659 | USE_MAINTAINER_MODE=no
|
---|
4660 | fi
|
---|
4661 |
|
---|
4662 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
4663 |
|
---|
4664 |
|
---|
4665 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
4666 | MAINTAINER_MODE_TRUE=
|
---|
4667 | MAINTAINER_MODE_FALSE='#'
|
---|
4668 | else
|
---|
4669 | MAINTAINER_MODE_TRUE='#'
|
---|
4670 | MAINTAINER_MODE_FALSE=
|
---|
4671 | fi
|
---|
4672 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
4673 |
|
---|
4674 |
|
---|
4675 |
|
---|
4676 | . ${srcdir}/configure.host
|
---|
4677 |
|
---|
4678 |
|
---|
4679 |
|
---|
4680 |
|
---|
4681 |
|
---|
4682 |
|
---|
4683 | for ac_hdr in string.h strings.h stdlib.h unistd.h
|
---|
4684 | do
|
---|
4685 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4686 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4687 | echo "configure:4688: checking for $ac_hdr" >&5
|
---|
4688 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4689 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4690 | else
|
---|
4691 | cat > conftest.$ac_ext <<EOF
|
---|
4692 | #include <sys/types.h>
|
---|
4693 | #line 4694 "configure"
|
---|
4694 | #include "confdefs.h"
|
---|
4695 | #include <$ac_hdr>
|
---|
4696 | EOF
|
---|
4697 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4698 | { (eval echo configure:4699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4699 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4700 | if test -z "$ac_err"; then
|
---|
4701 | rm -rf conftest*
|
---|
4702 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4703 | else
|
---|
4704 | echo "$ac_err" >&5
|
---|
4705 | echo "configure: failed program was:" >&5
|
---|
4706 | cat conftest.$ac_ext >&5
|
---|
4707 | rm -rf conftest*
|
---|
4708 | eval "ac_cv_header_$ac_safe=no"
|
---|
4709 | fi
|
---|
4710 | rm -f conftest*
|
---|
4711 | fi
|
---|
4712 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4713 | echo "$ac_t""yes" 1>&6
|
---|
4714 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4715 | cat >> confdefs.h <<EOF
|
---|
4716 | #define $ac_tr_hdr 1
|
---|
4717 | EOF
|
---|
4718 |
|
---|
4719 | else
|
---|
4720 | echo "$ac_t""no" 1>&6
|
---|
4721 | fi
|
---|
4722 | done
|
---|
4723 |
|
---|
4724 | for ac_func in sbrk realpath
|
---|
4725 | do
|
---|
4726 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4727 | echo "configure:4728: checking for $ac_func" >&5
|
---|
4728 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4729 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4730 | else
|
---|
4731 | cat > conftest.$ac_ext <<EOF
|
---|
4732 | #line 4733 "configure"
|
---|
4733 | #include "confdefs.h"
|
---|
4734 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4735 | which can conflict with char $ac_func(); below. */
|
---|
4736 | #include <assert.h>
|
---|
4737 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4738 | /* We use char because int might match the return type of a gcc2
|
---|
4739 | builtin and then its argument prototype would still apply. */
|
---|
4740 | char $ac_func();
|
---|
4741 |
|
---|
4742 | int main() {
|
---|
4743 |
|
---|
4744 | /* The GNU C library defines this for functions which it implements
|
---|
4745 | to always fail with ENOSYS. Some functions are actually named
|
---|
4746 | something starting with __ and the normal name is an alias. */
|
---|
4747 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4748 | choke me
|
---|
4749 | #else
|
---|
4750 | $ac_func();
|
---|
4751 | #endif
|
---|
4752 |
|
---|
4753 | ; return 0; }
|
---|
4754 | EOF
|
---|
4755 | if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4756 | rm -rf conftest*
|
---|
4757 | eval "ac_cv_func_$ac_func=yes"
|
---|
4758 | else
|
---|
4759 | echo "configure: failed program was:" >&5
|
---|
4760 | cat conftest.$ac_ext >&5
|
---|
4761 | rm -rf conftest*
|
---|
4762 | eval "ac_cv_func_$ac_func=no"
|
---|
4763 | fi
|
---|
4764 | rm -f conftest*
|
---|
4765 | fi
|
---|
4766 |
|
---|
4767 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4768 | echo "$ac_t""yes" 1>&6
|
---|
4769 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4770 | cat >> confdefs.h <<EOF
|
---|
4771 | #define $ac_tr_func 1
|
---|
4772 | EOF
|
---|
4773 |
|
---|
4774 | else
|
---|
4775 | echo "$ac_t""no" 1>&6
|
---|
4776 | fi
|
---|
4777 | done
|
---|
4778 |
|
---|
4779 | ac_header_dirent=no
|
---|
4780 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
4781 | do
|
---|
4782 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4783 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
4784 | echo "configure:4785: checking for $ac_hdr that defines DIR" >&5
|
---|
4785 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
4786 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4787 | else
|
---|
4788 | cat > conftest.$ac_ext <<EOF
|
---|
4789 | #line 4790 "configure"
|
---|
4790 | #include "confdefs.h"
|
---|
4791 | #include <sys/types.h>
|
---|
4792 | #include <$ac_hdr>
|
---|
4793 | int main() {
|
---|
4794 | DIR *dirp = 0;
|
---|
4795 | ; return 0; }
|
---|
4796 | EOF
|
---|
4797 | if { (eval echo configure:4798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4798 | rm -rf conftest*
|
---|
4799 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
4800 | else
|
---|
4801 | echo "configure: failed program was:" >&5
|
---|
4802 | cat conftest.$ac_ext >&5
|
---|
4803 | rm -rf conftest*
|
---|
4804 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
4805 | fi
|
---|
4806 | rm -f conftest*
|
---|
4807 | fi
|
---|
4808 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
4809 | echo "$ac_t""yes" 1>&6
|
---|
4810 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4811 | cat >> confdefs.h <<EOF
|
---|
4812 | #define $ac_tr_hdr 1
|
---|
4813 | EOF
|
---|
4814 | ac_header_dirent=$ac_hdr; break
|
---|
4815 | else
|
---|
4816 | echo "$ac_t""no" 1>&6
|
---|
4817 | fi
|
---|
4818 | done
|
---|
4819 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4820 | if test $ac_header_dirent = dirent.h; then
|
---|
4821 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
4822 | echo "configure:4823: checking for opendir in -ldir" >&5
|
---|
4823 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4824 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4825 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4826 | else
|
---|
4827 | ac_save_LIBS="$LIBS"
|
---|
4828 | LIBS="-ldir $LIBS"
|
---|
4829 | cat > conftest.$ac_ext <<EOF
|
---|
4830 | #line 4831 "configure"
|
---|
4831 | #include "confdefs.h"
|
---|
4832 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4833 | /* We use char because int might match the return type of a gcc2
|
---|
4834 | builtin and then its argument prototype would still apply. */
|
---|
4835 | char opendir();
|
---|
4836 |
|
---|
4837 | int main() {
|
---|
4838 | opendir()
|
---|
4839 | ; return 0; }
|
---|
4840 | EOF
|
---|
4841 | if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4842 | rm -rf conftest*
|
---|
4843 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4844 | else
|
---|
4845 | echo "configure: failed program was:" >&5
|
---|
4846 | cat conftest.$ac_ext >&5
|
---|
4847 | rm -rf conftest*
|
---|
4848 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4849 | fi
|
---|
4850 | rm -f conftest*
|
---|
4851 | LIBS="$ac_save_LIBS"
|
---|
4852 |
|
---|
4853 | fi
|
---|
4854 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4855 | echo "$ac_t""yes" 1>&6
|
---|
4856 | LIBS="$LIBS -ldir"
|
---|
4857 | else
|
---|
4858 | echo "$ac_t""no" 1>&6
|
---|
4859 | fi
|
---|
4860 |
|
---|
4861 | else
|
---|
4862 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
4863 | echo "configure:4864: checking for opendir in -lx" >&5
|
---|
4864 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4865 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4866 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4867 | else
|
---|
4868 | ac_save_LIBS="$LIBS"
|
---|
4869 | LIBS="-lx $LIBS"
|
---|
4870 | cat > conftest.$ac_ext <<EOF
|
---|
4871 | #line 4872 "configure"
|
---|
4872 | #include "confdefs.h"
|
---|
4873 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4874 | /* We use char because int might match the return type of a gcc2
|
---|
4875 | builtin and then its argument prototype would still apply. */
|
---|
4876 | char opendir();
|
---|
4877 |
|
---|
4878 | int main() {
|
---|
4879 | opendir()
|
---|
4880 | ; return 0; }
|
---|
4881 | EOF
|
---|
4882 | if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4883 | rm -rf conftest*
|
---|
4884 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4885 | else
|
---|
4886 | echo "configure: failed program was:" >&5
|
---|
4887 | cat conftest.$ac_ext >&5
|
---|
4888 | rm -rf conftest*
|
---|
4889 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4890 | fi
|
---|
4891 | rm -f conftest*
|
---|
4892 | LIBS="$ac_save_LIBS"
|
---|
4893 |
|
---|
4894 | fi
|
---|
4895 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4896 | echo "$ac_t""yes" 1>&6
|
---|
4897 | LIBS="$LIBS -lx"
|
---|
4898 | else
|
---|
4899 | echo "$ac_t""no" 1>&6
|
---|
4900 | fi
|
---|
4901 |
|
---|
4902 | fi
|
---|
4903 |
|
---|
4904 |
|
---|
4905 |
|
---|
4906 | case "${host}" in
|
---|
4907 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*)
|
---|
4908 | cat >> confdefs.h <<\EOF
|
---|
4909 | #define USE_BINARY_FOPEN 1
|
---|
4910 | EOF
|
---|
4911 | ;;
|
---|
4912 | esac
|
---|
4913 |
|
---|
4914 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
---|
4915 | echo "configure:4916: checking whether strstr must be declared" >&5
|
---|
4916 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
---|
4917 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4918 | else
|
---|
4919 | cat > conftest.$ac_ext <<EOF
|
---|
4920 | #line 4921 "configure"
|
---|
4921 | #include "confdefs.h"
|
---|
4922 |
|
---|
4923 | #include <stdio.h>
|
---|
4924 | #ifdef HAVE_STRING_H
|
---|
4925 | #include <string.h>
|
---|
4926 | #else
|
---|
4927 | #ifdef HAVE_STRINGS_H
|
---|
4928 | #include <strings.h>
|
---|
4929 | #endif
|
---|
4930 | #endif
|
---|
4931 | #ifdef HAVE_STDLIB_H
|
---|
4932 | #include <stdlib.h>
|
---|
4933 | #endif
|
---|
4934 | #ifdef HAVE_UNISTD_H
|
---|
4935 | #include <unistd.h>
|
---|
4936 | #endif
|
---|
4937 | int main() {
|
---|
4938 | char *(*pfn) = (char *(*)) strstr
|
---|
4939 | ; return 0; }
|
---|
4940 | EOF
|
---|
4941 | if { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4942 | rm -rf conftest*
|
---|
4943 | bfd_cv_decl_needed_strstr=no
|
---|
4944 | else
|
---|
4945 | echo "configure: failed program was:" >&5
|
---|
4946 | cat conftest.$ac_ext >&5
|
---|
4947 | rm -rf conftest*
|
---|
4948 | bfd_cv_decl_needed_strstr=yes
|
---|
4949 | fi
|
---|
4950 | rm -f conftest*
|
---|
4951 | fi
|
---|
4952 |
|
---|
4953 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
---|
4954 | if test $bfd_cv_decl_needed_strstr = yes; then
|
---|
4955 | cat >> confdefs.h <<\EOF
|
---|
4956 | #define NEED_DECLARATION_STRSTR 1
|
---|
4957 | EOF
|
---|
4958 |
|
---|
4959 | fi
|
---|
4960 |
|
---|
4961 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
---|
4962 | echo "configure:4963: checking whether free must be declared" >&5
|
---|
4963 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
---|
4964 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4965 | else
|
---|
4966 | cat > conftest.$ac_ext <<EOF
|
---|
4967 | #line 4968 "configure"
|
---|
4968 | #include "confdefs.h"
|
---|
4969 |
|
---|
4970 | #include <stdio.h>
|
---|
4971 | #ifdef HAVE_STRING_H
|
---|
4972 | #include <string.h>
|
---|
4973 | #else
|
---|
4974 | #ifdef HAVE_STRINGS_H
|
---|
4975 | #include <strings.h>
|
---|
4976 | #endif
|
---|
4977 | #endif
|
---|
4978 | #ifdef HAVE_STDLIB_H
|
---|
4979 | #include <stdlib.h>
|
---|
4980 | #endif
|
---|
4981 | #ifdef HAVE_UNISTD_H
|
---|
4982 | #include <unistd.h>
|
---|
4983 | #endif
|
---|
4984 | int main() {
|
---|
4985 | char *(*pfn) = (char *(*)) free
|
---|
4986 | ; return 0; }
|
---|
4987 | EOF
|
---|
4988 | if { (eval echo configure:4989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4989 | rm -rf conftest*
|
---|
4990 | bfd_cv_decl_needed_free=no
|
---|
4991 | else
|
---|
4992 | echo "configure: failed program was:" >&5
|
---|
4993 | cat conftest.$ac_ext >&5
|
---|
4994 | rm -rf conftest*
|
---|
4995 | bfd_cv_decl_needed_free=yes
|
---|
4996 | fi
|
---|
4997 | rm -f conftest*
|
---|
4998 | fi
|
---|
4999 |
|
---|
5000 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
---|
5001 | if test $bfd_cv_decl_needed_free = yes; then
|
---|
5002 | cat >> confdefs.h <<\EOF
|
---|
5003 | #define NEED_DECLARATION_FREE 1
|
---|
5004 | EOF
|
---|
5005 |
|
---|
5006 | fi
|
---|
5007 |
|
---|
5008 | echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
|
---|
5009 | echo "configure:5010: checking whether sbrk must be declared" >&5
|
---|
5010 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
|
---|
5011 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5012 | else
|
---|
5013 | cat > conftest.$ac_ext <<EOF
|
---|
5014 | #line 5015 "configure"
|
---|
5015 | #include "confdefs.h"
|
---|
5016 |
|
---|
5017 | #include <stdio.h>
|
---|
5018 | #ifdef HAVE_STRING_H
|
---|
5019 | #include <string.h>
|
---|
5020 | #else
|
---|
5021 | #ifdef HAVE_STRINGS_H
|
---|
5022 | #include <strings.h>
|
---|
5023 | #endif
|
---|
5024 | #endif
|
---|
5025 | #ifdef HAVE_STDLIB_H
|
---|
5026 | #include <stdlib.h>
|
---|
5027 | #endif
|
---|
5028 | #ifdef HAVE_UNISTD_H
|
---|
5029 | #include <unistd.h>
|
---|
5030 | #endif
|
---|
5031 | int main() {
|
---|
5032 | char *(*pfn) = (char *(*)) sbrk
|
---|
5033 | ; return 0; }
|
---|
5034 | EOF
|
---|
5035 | if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5036 | rm -rf conftest*
|
---|
5037 | bfd_cv_decl_needed_sbrk=no
|
---|
5038 | else
|
---|
5039 | echo "configure: failed program was:" >&5
|
---|
5040 | cat conftest.$ac_ext >&5
|
---|
5041 | rm -rf conftest*
|
---|
5042 | bfd_cv_decl_needed_sbrk=yes
|
---|
5043 | fi
|
---|
5044 | rm -f conftest*
|
---|
5045 | fi
|
---|
5046 |
|
---|
5047 | echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
|
---|
5048 | if test $bfd_cv_decl_needed_sbrk = yes; then
|
---|
5049 | cat >> confdefs.h <<\EOF
|
---|
5050 | #define NEED_DECLARATION_SBRK 1
|
---|
5051 | EOF
|
---|
5052 |
|
---|
5053 | fi
|
---|
5054 |
|
---|
5055 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
|
---|
5056 | echo "configure:5057: checking whether getenv must be declared" >&5
|
---|
5057 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
|
---|
5058 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5059 | else
|
---|
5060 | cat > conftest.$ac_ext <<EOF
|
---|
5061 | #line 5062 "configure"
|
---|
5062 | #include "confdefs.h"
|
---|
5063 |
|
---|
5064 | #include <stdio.h>
|
---|
5065 | #ifdef HAVE_STRING_H
|
---|
5066 | #include <string.h>
|
---|
5067 | #else
|
---|
5068 | #ifdef HAVE_STRINGS_H
|
---|
5069 | #include <strings.h>
|
---|
5070 | #endif
|
---|
5071 | #endif
|
---|
5072 | #ifdef HAVE_STDLIB_H
|
---|
5073 | #include <stdlib.h>
|
---|
5074 | #endif
|
---|
5075 | #ifdef HAVE_UNISTD_H
|
---|
5076 | #include <unistd.h>
|
---|
5077 | #endif
|
---|
5078 | int main() {
|
---|
5079 | char *(*pfn) = (char *(*)) getenv
|
---|
5080 | ; return 0; }
|
---|
5081 | EOF
|
---|
5082 | if { (eval echo configure:5083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5083 | rm -rf conftest*
|
---|
5084 | bfd_cv_decl_needed_getenv=no
|
---|
5085 | else
|
---|
5086 | echo "configure: failed program was:" >&5
|
---|
5087 | cat conftest.$ac_ext >&5
|
---|
5088 | rm -rf conftest*
|
---|
5089 | bfd_cv_decl_needed_getenv=yes
|
---|
5090 | fi
|
---|
5091 | rm -f conftest*
|
---|
5092 | fi
|
---|
5093 |
|
---|
5094 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
|
---|
5095 | if test $bfd_cv_decl_needed_getenv = yes; then
|
---|
5096 | cat >> confdefs.h <<\EOF
|
---|
5097 | #define NEED_DECLARATION_GETENV 1
|
---|
5098 | EOF
|
---|
5099 |
|
---|
5100 | fi
|
---|
5101 |
|
---|
5102 | echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
|
---|
5103 | echo "configure:5104: checking whether environ must be declared" >&5
|
---|
5104 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
|
---|
5105 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5106 | else
|
---|
5107 | cat > conftest.$ac_ext <<EOF
|
---|
5108 | #line 5109 "configure"
|
---|
5109 | #include "confdefs.h"
|
---|
5110 |
|
---|
5111 | #include <stdio.h>
|
---|
5112 | #ifdef HAVE_STRING_H
|
---|
5113 | #include <string.h>
|
---|
5114 | #else
|
---|
5115 | #ifdef HAVE_STRINGS_H
|
---|
5116 | #include <strings.h>
|
---|
5117 | #endif
|
---|
5118 | #endif
|
---|
5119 | #ifdef HAVE_STDLIB_H
|
---|
5120 | #include <stdlib.h>
|
---|
5121 | #endif
|
---|
5122 | #ifdef HAVE_UNISTD_H
|
---|
5123 | #include <unistd.h>
|
---|
5124 | #endif
|
---|
5125 | int main() {
|
---|
5126 | char *(*pfn) = (char *(*)) environ
|
---|
5127 | ; return 0; }
|
---|
5128 | EOF
|
---|
5129 | if { (eval echo configure:5130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5130 | rm -rf conftest*
|
---|
5131 | bfd_cv_decl_needed_environ=no
|
---|
5132 | else
|
---|
5133 | echo "configure: failed program was:" >&5
|
---|
5134 | cat conftest.$ac_ext >&5
|
---|
5135 | rm -rf conftest*
|
---|
5136 | bfd_cv_decl_needed_environ=yes
|
---|
5137 | fi
|
---|
5138 | rm -f conftest*
|
---|
5139 | fi
|
---|
5140 |
|
---|
5141 | echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
|
---|
5142 | if test $bfd_cv_decl_needed_environ = yes; then
|
---|
5143 | cat >> confdefs.h <<\EOF
|
---|
5144 | #define NEED_DECLARATION_ENVIRON 1
|
---|
5145 | EOF
|
---|
5146 |
|
---|
5147 | fi
|
---|
5148 |
|
---|
5149 |
|
---|
5150 | # When converting linker scripts into strings for use in emulation
|
---|
5151 | # files, use astring.sed if the compiler supports ANSI string
|
---|
5152 | # concatenation, or ostring.sed otherwise. This is to support the
|
---|
5153 | # broken Microsoft MSVC compiler, which limits the length of string
|
---|
5154 | # constants, while still supporting pre-ANSI compilers which do not
|
---|
5155 | # support string concatenation.
|
---|
5156 | echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
|
---|
5157 | echo "configure:5158: checking whether ANSI C string concatenation works" >&5
|
---|
5158 | if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
|
---|
5159 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5160 | else
|
---|
5161 | cat > conftest.$ac_ext <<EOF
|
---|
5162 | #line 5163 "configure"
|
---|
5163 | #include "confdefs.h"
|
---|
5164 |
|
---|
5165 | int main() {
|
---|
5166 | char *a = "a" "a";
|
---|
5167 | ; return 0; }
|
---|
5168 | EOF
|
---|
5169 | if { (eval echo configure:5170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5170 | rm -rf conftest*
|
---|
5171 | ld_cv_string_concatenation=yes
|
---|
5172 | else
|
---|
5173 | echo "configure: failed program was:" >&5
|
---|
5174 | cat conftest.$ac_ext >&5
|
---|
5175 | rm -rf conftest*
|
---|
5176 | ld_cv_string_concatenation=no
|
---|
5177 | fi
|
---|
5178 | rm -f conftest*
|
---|
5179 | fi
|
---|
5180 |
|
---|
5181 | echo "$ac_t""$ld_cv_string_concatenation" 1>&6
|
---|
5182 | if test "$ld_cv_string_concatenation" = "yes"; then
|
---|
5183 | STRINGIFY=astring.sed
|
---|
5184 | else
|
---|
5185 | STRINGIFY=ostring.sed
|
---|
5186 | fi
|
---|
5187 |
|
---|
5188 |
|
---|
5189 | # target-specific stuff:
|
---|
5190 |
|
---|
5191 | all_targets=
|
---|
5192 | EMUL=
|
---|
5193 | all_emuls=
|
---|
5194 | all_emul_extras=
|
---|
5195 | all_libpath=
|
---|
5196 |
|
---|
5197 | rm -f tdirs
|
---|
5198 |
|
---|
5199 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
|
---|
5200 | do
|
---|
5201 | if test "$targ_alias" = "all"; then
|
---|
5202 | all_targets=true
|
---|
5203 | else
|
---|
5204 | # Canonicalize the secondary target names.
|
---|
5205 | result=`$ac_config_sub $targ_alias 2>/dev/null`
|
---|
5206 | if test -n "$result"; then
|
---|
5207 | targ=$result
|
---|
5208 | else
|
---|
5209 | targ=$targ_alias
|
---|
5210 | fi
|
---|
5211 |
|
---|
5212 | . ${srcdir}/configure.tgt
|
---|
5213 |
|
---|
5214 | if test "$targ" = "$target"; then
|
---|
5215 | EMUL=$targ_emul
|
---|
5216 | fi
|
---|
5217 |
|
---|
5218 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
|
---|
5219 | case " $all_emuls " in
|
---|
5220 | *" e${i}.o "*) ;;
|
---|
5221 | *)
|
---|
5222 | all_emuls="$all_emuls e${i}.o"
|
---|
5223 | eval result=\$tdir_$i
|
---|
5224 | test -z "$result" && result=$targ_alias
|
---|
5225 | echo tdir_$i=$result >> tdirs
|
---|
5226 | ;;
|
---|
5227 | esac
|
---|
5228 | done
|
---|
5229 |
|
---|
5230 | for i in $targ_emul $targ_extra_libpath; do
|
---|
5231 | case " $all_libpath " in
|
---|
5232 | *" ${i} "*) ;;
|
---|
5233 | *)
|
---|
5234 | if test -z "$all_libpath"; then
|
---|
5235 | all_libpath=${i}
|
---|
5236 | else
|
---|
5237 | all_libpath="$all_libpath ${i}"
|
---|
5238 | fi
|
---|
5239 | ;;
|
---|
5240 | esac
|
---|
5241 | done
|
---|
5242 |
|
---|
5243 | for i in $targ_extra_ofiles; do
|
---|
5244 | case " $all_emul_extras " in
|
---|
5245 | *" ${i} "*) ;;
|
---|
5246 | *)
|
---|
5247 | all_emul_extras="$all_emul_extras ${i}"
|
---|
5248 | ;;
|
---|
5249 | esac
|
---|
5250 | done
|
---|
5251 | fi
|
---|
5252 | done
|
---|
5253 |
|
---|
5254 |
|
---|
5255 |
|
---|
5256 | TDIRS=tdirs
|
---|
5257 |
|
---|
5258 |
|
---|
5259 | if test x${all_targets} = xtrue; then
|
---|
5260 | if test x${want64} = xtrue; then
|
---|
5261 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
|
---|
5262 | else
|
---|
5263 | EMULATION_OFILES='$(ALL_EMULATIONS)'
|
---|
5264 | fi
|
---|
5265 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
|
---|
5266 | else
|
---|
5267 | EMULATION_OFILES=$all_emuls
|
---|
5268 | EMUL_EXTRA_OFILES=$all_emul_extras
|
---|
5269 | fi
|
---|
5270 |
|
---|
5271 |
|
---|
5272 |
|
---|
5273 |
|
---|
5274 | EMULATION_LIBPATH=$all_libpath
|
---|
5275 |
|
---|
5276 |
|
---|
5277 | if test x${enable_static} = xno; then
|
---|
5278 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
|
---|
5279 | else
|
---|
5280 | TESTBFDLIB="../bfd/.libs/libbfd.a"
|
---|
5281 | fi
|
---|
5282 |
|
---|
5283 |
|
---|
5284 | target_vendor=${target_vendor=$host_vendor}
|
---|
5285 | case "$target_vendor" in
|
---|
5286 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
|
---|
5287 | *) EXTRA_SHLIB_EXTENSION= ;;
|
---|
5288 | esac
|
---|
5289 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then
|
---|
5290 | cat >> confdefs.h <<EOF
|
---|
5291 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
|
---|
5292 | EOF
|
---|
5293 |
|
---|
5294 | fi
|
---|
5295 |
|
---|
5296 | trap '' 1 2 15
|
---|
5297 | cat > confcache <<\EOF
|
---|
5298 | # This file is a shell script that caches the results of configure
|
---|
5299 | # tests run on this system so they can be shared between configure
|
---|
5300 | # scripts and configure runs. It is not useful on other systems.
|
---|
5301 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
5302 | #
|
---|
5303 | # By default, configure uses ./config.cache as the cache file,
|
---|
5304 | # creating it if it does not exist already. You can give configure
|
---|
5305 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
5306 | # what configure does when it calls configure scripts in
|
---|
5307 | # subdirectories, so they share the cache.
|
---|
5308 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
5309 | # config.status only pays attention to the cache file if you give it the
|
---|
5310 | # --recheck option to rerun configure.
|
---|
5311 | #
|
---|
5312 | EOF
|
---|
5313 | # The following way of writing the cache mishandles newlines in values,
|
---|
5314 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
5315 | # So, don't put newlines in cache variables' values.
|
---|
5316 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
5317 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
5318 | (set) 2>&1 |
|
---|
5319 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
5320 | *ac_space=\ *)
|
---|
5321 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
5322 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
5323 | sed -n \
|
---|
5324 | -e "s/'/'\\\\''/g" \
|
---|
5325 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
5326 | ;;
|
---|
5327 | *)
|
---|
5328 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
5329 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
5330 | ;;
|
---|
5331 | esac >> confcache
|
---|
5332 | if cmp -s $cache_file confcache; then
|
---|
5333 | :
|
---|
5334 | else
|
---|
5335 | if test -w $cache_file; then
|
---|
5336 | echo "updating cache $cache_file"
|
---|
5337 | cat confcache > $cache_file
|
---|
5338 | else
|
---|
5339 | echo "not updating unwritable cache $cache_file"
|
---|
5340 | fi
|
---|
5341 | fi
|
---|
5342 | rm -f confcache
|
---|
5343 |
|
---|
5344 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
5345 |
|
---|
5346 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
5347 | # Let make expand exec_prefix.
|
---|
5348 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
5349 |
|
---|
5350 | # Any assignment to VPATH causes Sun make to only execute
|
---|
5351 | # the first set of double-colon rules, so remove it if not needed.
|
---|
5352 | # If there is a colon in the path, we need to keep it.
|
---|
5353 | if test "x$srcdir" = x.; then
|
---|
5354 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
5355 | fi
|
---|
5356 |
|
---|
5357 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
5358 |
|
---|
5359 | DEFS=-DHAVE_CONFIG_H
|
---|
5360 |
|
---|
5361 | # Without the "./", some shells look in PATH for config.status.
|
---|
5362 | : ${CONFIG_STATUS=./config.status}
|
---|
5363 |
|
---|
5364 | echo creating $CONFIG_STATUS
|
---|
5365 | rm -f $CONFIG_STATUS
|
---|
5366 | cat > $CONFIG_STATUS <<EOF
|
---|
5367 | #! /bin/sh
|
---|
5368 | # Generated automatically by configure.
|
---|
5369 | # Run this file to recreate the current configuration.
|
---|
5370 | # This directory was configured as follows,
|
---|
5371 | EOF
|
---|
5372 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
5373 | cat >> $CONFIG_STATUS <<EOF
|
---|
5374 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
5375 | #
|
---|
5376 | # $0 $ac_configure_args
|
---|
5377 | #
|
---|
5378 | # Compiler output produced by configure, useful for debugging
|
---|
5379 | # configure, is in ./config.log if it exists.
|
---|
5380 |
|
---|
5381 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
5382 | for ac_option
|
---|
5383 | do
|
---|
5384 | case "\$ac_option" in
|
---|
5385 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
5386 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
5387 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
5388 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
5389 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
5390 | exit 0 ;;
|
---|
5391 | -help | --help | --hel | --he | --h)
|
---|
5392 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
5393 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
5394 | esac
|
---|
5395 | done
|
---|
5396 |
|
---|
5397 | ac_given_srcdir=$srcdir
|
---|
5398 | ac_given_INSTALL="$INSTALL"
|
---|
5399 | PATHIFS="$PATH_IFS"
|
---|
5400 |
|
---|
5401 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
5402 | EOF
|
---|
5403 | cat >> $CONFIG_STATUS <<EOF
|
---|
5404 |
|
---|
5405 | # Protect against being on the right side of a sed subst in config.status.
|
---|
5406 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
5407 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
5408 | $ac_vpsub
|
---|
5409 | $extrasub
|
---|
5410 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
5411 | s%@SHELL@%$SHELL%g
|
---|
5412 | s%@CFLAGS@%$CFLAGS%g
|
---|
5413 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
5414 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
5415 | s%@FFLAGS@%$FFLAGS%g
|
---|
5416 | s%@DEFS@%$DEFS%g
|
---|
5417 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
5418 | s%@LIBS@%$LIBS%g
|
---|
5419 | s%@exec_prefix@%$exec_prefix%g
|
---|
5420 | s%@prefix@%$prefix%g
|
---|
5421 | s%@program_transform_name@%$program_transform_name%g
|
---|
5422 | s%@bindir@%$bindir%g
|
---|
5423 | s%@sbindir@%$sbindir%g
|
---|
5424 | s%@libexecdir@%$libexecdir%g
|
---|
5425 | s%@datadir@%$datadir%g
|
---|
5426 | s%@sysconfdir@%$sysconfdir%g
|
---|
5427 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
5428 | s%@localstatedir@%$localstatedir%g
|
---|
5429 | s%@libdir@%$libdir%g
|
---|
5430 | s%@includedir@%$includedir%g
|
---|
5431 | s%@oldincludedir@%$oldincludedir%g
|
---|
5432 | s%@infodir@%$infodir%g
|
---|
5433 | s%@mandir@%$mandir%g
|
---|
5434 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
5435 | s%@EXEEXT@%$EXEEXT%g
|
---|
5436 | s%@host@%$host%g
|
---|
5437 | s%@host_alias@%$host_alias%g
|
---|
5438 | s%@host_cpu@%$host_cpu%g
|
---|
5439 | s%@host_vendor@%$host_vendor%g
|
---|
5440 | s%@host_os@%$host_os%g
|
---|
5441 | s%@target@%$target%g
|
---|
5442 | s%@target_alias@%$target_alias%g
|
---|
5443 | s%@target_cpu@%$target_cpu%g
|
---|
5444 | s%@target_vendor@%$target_vendor%g
|
---|
5445 | s%@target_os@%$target_os%g
|
---|
5446 | s%@build@%$build%g
|
---|
5447 | s%@build_alias@%$build_alias%g
|
---|
5448 | s%@build_cpu@%$build_cpu%g
|
---|
5449 | s%@build_vendor@%$build_vendor%g
|
---|
5450 | s%@build_os@%$build_os%g
|
---|
5451 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
5452 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
5453 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
5454 | s%@PACKAGE@%$PACKAGE%g
|
---|
5455 | s%@VERSION@%$VERSION%g
|
---|
5456 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
5457 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
5458 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
5459 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
5460 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
5461 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
5462 | s%@CC@%$CC%g
|
---|
5463 | s%@LN_S@%$LN_S%g
|
---|
5464 | s%@OBJEXT@%$OBJEXT%g
|
---|
5465 | s%@RANLIB@%$RANLIB%g
|
---|
5466 | s%@STRIP@%$STRIP%g
|
---|
5467 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
5468 | s%@use_sysroot@%$use_sysroot%g
|
---|
5469 | s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
|
---|
5470 | s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
|
---|
5471 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
---|
5472 | s%@CPP@%$CPP%g
|
---|
5473 | s%@ALLOCA@%$ALLOCA%g
|
---|
5474 | s%@USE_NLS@%$USE_NLS%g
|
---|
5475 | s%@MSGFMT@%$MSGFMT%g
|
---|
5476 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
5477 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
5478 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
5479 | s%@CATALOGS@%$CATALOGS%g
|
---|
5480 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
5481 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
5482 | s%@GMOFILES@%$GMOFILES%g
|
---|
5483 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
5484 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
5485 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
5486 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
5487 | s%@POFILES@%$POFILES%g
|
---|
5488 | s%@POSUB@%$POSUB%g
|
---|
5489 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
5490 | s%@GT_NO@%$GT_NO%g
|
---|
5491 | s%@GT_YES@%$GT_YES%g
|
---|
5492 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
5493 | s%@l@%$l%g
|
---|
5494 | s%@YACC@%$YACC%g
|
---|
5495 | s%@LEX@%$LEX%g
|
---|
5496 | s%@LEXLIB@%$LEXLIB%g
|
---|
5497 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
|
---|
5498 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
5499 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
5500 | s%@MAINT@%$MAINT%g
|
---|
5501 | s%@HDEFINES@%$HDEFINES%g
|
---|
5502 | s%@HOSTING_CRT0@%$HOSTING_CRT0%g
|
---|
5503 | s%@HOSTING_LIBS@%$HOSTING_LIBS%g
|
---|
5504 | s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
|
---|
5505 | s%@STRINGIFY@%$STRINGIFY%g
|
---|
5506 | s%@EMUL@%$EMUL%g
|
---|
5507 | /@TDIRS@/r $TDIRS
|
---|
5508 | s%@TDIRS@%%g
|
---|
5509 | s%@EMULATION_OFILES@%$EMULATION_OFILES%g
|
---|
5510 | s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
|
---|
5511 | s%@LIB_PATH@%$LIB_PATH%g
|
---|
5512 | s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
|
---|
5513 | s%@TESTBFDLIB@%$TESTBFDLIB%g
|
---|
5514 |
|
---|
5515 | CEOF
|
---|
5516 | EOF
|
---|
5517 |
|
---|
5518 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5519 |
|
---|
5520 | # Split the substitutions into bite-sized pieces for seds with
|
---|
5521 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
5522 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
5523 | ac_file=1 # Number of current file.
|
---|
5524 | ac_beg=1 # First line for current file.
|
---|
5525 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
5526 | ac_more_lines=:
|
---|
5527 | ac_sed_cmds=""
|
---|
5528 | while $ac_more_lines; do
|
---|
5529 | if test $ac_beg -gt 1; then
|
---|
5530 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
5531 | else
|
---|
5532 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
5533 | fi
|
---|
5534 | if test ! -s conftest.s$ac_file; then
|
---|
5535 | ac_more_lines=false
|
---|
5536 | rm -f conftest.s$ac_file
|
---|
5537 | else
|
---|
5538 | if test -z "$ac_sed_cmds"; then
|
---|
5539 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
5540 | else
|
---|
5541 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
5542 | fi
|
---|
5543 | ac_file=`expr $ac_file + 1`
|
---|
5544 | ac_beg=$ac_end
|
---|
5545 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
5546 | fi
|
---|
5547 | done
|
---|
5548 | if test -z "$ac_sed_cmds"; then
|
---|
5549 | ac_sed_cmds=cat
|
---|
5550 | fi
|
---|
5551 | EOF
|
---|
5552 |
|
---|
5553 | cat >> $CONFIG_STATUS <<EOF
|
---|
5554 |
|
---|
5555 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
|
---|
5556 | EOF
|
---|
5557 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5558 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
5559 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5560 | case "$ac_file" in
|
---|
5561 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
5562 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
5563 | *) ac_file_in="${ac_file}.in" ;;
|
---|
5564 | esac
|
---|
5565 |
|
---|
5566 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
5567 |
|
---|
5568 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
5569 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
5570 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
5571 | # The file is in a subdirectory.
|
---|
5572 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
5573 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
5574 | # A "../" for each directory in $ac_dir_suffix.
|
---|
5575 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
5576 | else
|
---|
5577 | ac_dir_suffix= ac_dots=
|
---|
5578 | fi
|
---|
5579 |
|
---|
5580 | case "$ac_given_srcdir" in
|
---|
5581 | .) srcdir=.
|
---|
5582 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
5583 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
5584 | /* | [A-Za-z]:*)
|
---|
5585 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
5586 | *) # Relative path.
|
---|
5587 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
5588 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
5589 | esac
|
---|
5590 |
|
---|
5591 | case "$ac_given_INSTALL" in
|
---|
5592 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
5593 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
5594 | esac
|
---|
5595 |
|
---|
5596 | echo creating "$ac_file"
|
---|
5597 | rm -f "$ac_file"
|
---|
5598 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
5599 | case "$ac_file" in
|
---|
5600 | *Makefile*) ac_comsub="1i\\
|
---|
5601 | # $configure_input" ;;
|
---|
5602 | *) ac_comsub= ;;
|
---|
5603 | esac
|
---|
5604 |
|
---|
5605 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
5606 | sed -e "$ac_comsub
|
---|
5607 | s%@configure_input@%$configure_input%g
|
---|
5608 | s%@srcdir@%$srcdir%g
|
---|
5609 | s%@top_srcdir@%$top_srcdir%g
|
---|
5610 | s%@INSTALL@%$INSTALL%g
|
---|
5611 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
5612 | fi; done
|
---|
5613 | rm -f conftest.s*
|
---|
5614 |
|
---|
5615 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
5616 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
5617 | #
|
---|
5618 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
5619 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
5620 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
5621 | ac_dC='\3'
|
---|
5622 | ac_dD='%g'
|
---|
5623 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
5624 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
5625 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
5626 | ac_uC=' '
|
---|
5627 | ac_uD='\4%g'
|
---|
5628 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
5629 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
5630 | ac_eB='$%\1#\2define\3'
|
---|
5631 | ac_eC=' '
|
---|
5632 | ac_eD='%g'
|
---|
5633 |
|
---|
5634 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
5635 | EOF
|
---|
5636 | cat >> $CONFIG_STATUS <<EOF
|
---|
5637 | CONFIG_HEADERS="config.h:config.in"
|
---|
5638 | EOF
|
---|
5639 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5640 | fi
|
---|
5641 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
5642 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5643 | case "$ac_file" in
|
---|
5644 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
5645 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
5646 | *) ac_file_in="${ac_file}.in" ;;
|
---|
5647 | esac
|
---|
5648 |
|
---|
5649 | echo creating $ac_file
|
---|
5650 |
|
---|
5651 | rm -f conftest.frag conftest.in conftest.out
|
---|
5652 | # kso the other way around might work better with drive letters and such.
|
---|
5653 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
5654 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
5655 | cat $ac_file_inputs > conftest.in
|
---|
5656 |
|
---|
5657 | EOF
|
---|
5658 |
|
---|
5659 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
5660 | # the proper values into config.h.in to produce config.h. And first:
|
---|
5661 | # Protect against being on the right side of a sed subst in config.status.
|
---|
5662 | # Protect against being in an unquoted here document in config.status.
|
---|
5663 | rm -f conftest.vals
|
---|
5664 | cat > conftest.hdr <<\EOF
|
---|
5665 | s/[\\&%]/\\&/g
|
---|
5666 | s%[\\$`]%\\&%g
|
---|
5667 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
5668 | s%ac_d%ac_u%gp
|
---|
5669 | s%ac_u%ac_e%gp
|
---|
5670 | EOF
|
---|
5671 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
5672 | rm -f conftest.hdr
|
---|
5673 |
|
---|
5674 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
5675 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
5676 | # on some systems where configure will not decide to define it.
|
---|
5677 | cat >> conftest.vals <<\EOF
|
---|
5678 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
5679 | EOF
|
---|
5680 |
|
---|
5681 | # Break up conftest.vals because some shells have a limit on
|
---|
5682 | # the size of here documents, and old seds have small limits too.
|
---|
5683 |
|
---|
5684 | rm -f conftest.tail
|
---|
5685 | while :
|
---|
5686 | do
|
---|
5687 | ac_lines=`grep -c . conftest.vals`
|
---|
5688 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
5689 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
5690 | # Write a limited-size here document to conftest.frag.
|
---|
5691 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
5692 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
5693 | echo 'CEOF
|
---|
5694 | sed -f conftest.frag conftest.in > conftest.out
|
---|
5695 | rm -f conftest.in
|
---|
5696 | mv conftest.out conftest.in
|
---|
5697 | ' >> $CONFIG_STATUS
|
---|
5698 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
5699 | rm -f conftest.vals
|
---|
5700 | mv conftest.tail conftest.vals
|
---|
5701 | done
|
---|
5702 | rm -f conftest.vals
|
---|
5703 |
|
---|
5704 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5705 | rm -f conftest.frag conftest.h
|
---|
5706 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
5707 | cat conftest.in >> conftest.h
|
---|
5708 | rm -f conftest.in
|
---|
5709 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
5710 | echo "$ac_file is unchanged"
|
---|
5711 | rm -f conftest.h
|
---|
5712 | else
|
---|
5713 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
5714 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
5715 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
5716 | # The file is in a subdirectory.
|
---|
5717 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
5718 | fi
|
---|
5719 | rm -f $ac_file
|
---|
5720 | mv conftest.h $ac_file
|
---|
5721 | fi
|
---|
5722 | fi; done
|
---|
5723 |
|
---|
5724 | EOF
|
---|
5725 | cat >> $CONFIG_STATUS <<EOF
|
---|
5726 |
|
---|
5727 |
|
---|
5728 | EOF
|
---|
5729 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5730 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
5731 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
---|
5732 | exit 0
|
---|
5733 | EOF
|
---|
5734 | chmod +x $CONFIG_STATUS
|
---|
5735 | rm -fr confdefs* $ac_clean_files
|
---|
5736 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
5737 |
|
---|