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