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 | # Find a good install program. We prefer a C program (faster),
|
---|
1055 | # so one script is as good as another. But avoid the broken or
|
---|
1056 | # incompatible versions:
|
---|
1057 | # SysV /etc/install, /usr/sbin/install
|
---|
1058 | # SunOS /usr/etc/install
|
---|
1059 | # IRIX /sbin/install
|
---|
1060 | # AIX /bin/install
|
---|
1061 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1062 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1063 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1064 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1065 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1066 | echo "configure:1067: checking for a BSD compatible install" >&5
|
---|
1067 | if test -z "$INSTALL"; then
|
---|
1068 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1069 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1070 | else
|
---|
1071 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
1072 | for ac_dir in $PATH; do
|
---|
1073 | # Account for people who put trailing slashes in PATH elements.
|
---|
1074 | case "$ac_dir/" in
|
---|
1075 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1076 | # We reject the install program from OS/2 or W3.1
|
---|
1077 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
1078 | *)
|
---|
1079 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1080 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1081 | # by default.
|
---|
1082 | for ac_prog in ginstall scoinst install; do
|
---|
1083 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
1084 | if test $ac_prog = install &&
|
---|
1085 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1086 | # AIX install. It has an incompatible calling convention.
|
---|
1087 | :
|
---|
1088 | else
|
---|
1089 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
1090 | break 2
|
---|
1091 | fi
|
---|
1092 | fi
|
---|
1093 | done
|
---|
1094 | ;;
|
---|
1095 | esac
|
---|
1096 | done
|
---|
1097 | IFS="$ac_save_IFS"
|
---|
1098 |
|
---|
1099 | fi
|
---|
1100 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1101 | INSTALL="$ac_cv_path_install"
|
---|
1102 | else
|
---|
1103 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1104 | # path for INSTALL within a source directory, because that will
|
---|
1105 | # break other packages using the cache if that directory is
|
---|
1106 | # removed, or if the path is relative.
|
---|
1107 | INSTALL="$ac_install_sh"
|
---|
1108 | fi
|
---|
1109 | fi
|
---|
1110 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1111 |
|
---|
1112 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1113 | # It thinks the first close brace ends the variable substitution.
|
---|
1114 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1115 |
|
---|
1116 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1117 |
|
---|
1118 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1119 |
|
---|
1120 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
1121 | echo "configure:1122: checking whether build environment is sane" >&5
|
---|
1122 | # Just in case
|
---|
1123 | sleep 1
|
---|
1124 | echo timestamp > conftestfile
|
---|
1125 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1126 | # arguments. Must try -L first in case configure is actually a
|
---|
1127 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1128 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1129 | # directory).
|
---|
1130 | if (
|
---|
1131 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
1132 | if test "$*" = "X"; then
|
---|
1133 | # -L didn't work.
|
---|
1134 | set X `ls -t $srcdir/configure conftestfile`
|
---|
1135 | fi
|
---|
1136 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
1137 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
1138 |
|
---|
1139 | # If neither matched, then we have a broken ls. This can happen
|
---|
1140 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1141 | # broken ls alias from the environment. This has actually
|
---|
1142 | # happened. Such a system could not be considered "sane".
|
---|
1143 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1144 | alias in your environment" 1>&2; exit 1; }
|
---|
1145 | fi
|
---|
1146 |
|
---|
1147 | test "$2" = conftestfile
|
---|
1148 | )
|
---|
1149 | then
|
---|
1150 | # Ok.
|
---|
1151 | :
|
---|
1152 | else
|
---|
1153 | { echo "configure: error: newly created file is older than distributed files!
|
---|
1154 | Check your system clock" 1>&2; exit 1; }
|
---|
1155 | fi
|
---|
1156 | rm -f conftest*
|
---|
1157 | echo "$ac_t""yes" 1>&6
|
---|
1158 | if test "$program_transform_name" = s,x,x,; then
|
---|
1159 | program_transform_name=
|
---|
1160 | else
|
---|
1161 | # Double any \ or $. echo might interpret backslashes.
|
---|
1162 | cat <<\EOF_SED > conftestsed
|
---|
1163 | s,\\,\\\\,g; s,\$,$$,g
|
---|
1164 | EOF_SED
|
---|
1165 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
1166 | rm -f conftestsed
|
---|
1167 | fi
|
---|
1168 | test "$program_prefix" != NONE &&
|
---|
1169 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
1170 | # Use a double $ so make ignores it.
|
---|
1171 | test "$program_suffix" != NONE &&
|
---|
1172 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
1173 |
|
---|
1174 | # sed with no file args requires a program.
|
---|
1175 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
1176 |
|
---|
1177 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1178 | echo "configure:1179: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1179 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1180 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1181 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1182 | else
|
---|
1183 | cat > conftestmake <<\EOF
|
---|
1184 | all:
|
---|
1185 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1186 | EOF
|
---|
1187 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1188 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1189 | if test -n "$ac_maketemp"; then
|
---|
1190 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1191 | else
|
---|
1192 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1193 | fi
|
---|
1194 | rm -f conftestmake
|
---|
1195 | fi
|
---|
1196 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1197 | echo "$ac_t""yes" 1>&6
|
---|
1198 | SET_MAKE=
|
---|
1199 | else
|
---|
1200 | echo "$ac_t""no" 1>&6
|
---|
1201 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1202 | fi
|
---|
1203 |
|
---|
1204 |
|
---|
1205 | PACKAGE=gprof
|
---|
1206 |
|
---|
1207 | VERSION=${BFD_VERSION}
|
---|
1208 |
|
---|
1209 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1210 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1211 | fi
|
---|
1212 | cat >> confdefs.h <<EOF
|
---|
1213 | #define PACKAGE "$PACKAGE"
|
---|
1214 | EOF
|
---|
1215 |
|
---|
1216 | cat >> confdefs.h <<EOF
|
---|
1217 | #define VERSION "$VERSION"
|
---|
1218 | EOF
|
---|
1219 |
|
---|
1220 |
|
---|
1221 |
|
---|
1222 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1223 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
1224 | echo "configure:1225: checking for working aclocal" >&5
|
---|
1225 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1226 | # an executable is not found, even if stderr is redirected.
|
---|
1227 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1228 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
1229 | ACLOCAL=aclocal
|
---|
1230 | echo "$ac_t""found" 1>&6
|
---|
1231 | else
|
---|
1232 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
1233 | echo "$ac_t""missing" 1>&6
|
---|
1234 | fi
|
---|
1235 |
|
---|
1236 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1237 | echo "configure:1238: checking for working autoconf" >&5
|
---|
1238 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1239 | # an executable is not found, even if stderr is redirected.
|
---|
1240 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1241 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1242 | AUTOCONF=autoconf
|
---|
1243 | echo "$ac_t""found" 1>&6
|
---|
1244 | else
|
---|
1245 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1246 | echo "$ac_t""missing" 1>&6
|
---|
1247 | fi
|
---|
1248 |
|
---|
1249 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
1250 | echo "configure:1251: checking for working automake" >&5
|
---|
1251 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1252 | # an executable is not found, even if stderr is redirected.
|
---|
1253 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1254 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
1255 | AUTOMAKE=automake
|
---|
1256 | echo "$ac_t""found" 1>&6
|
---|
1257 | else
|
---|
1258 | AUTOMAKE="$missing_dir/missing automake"
|
---|
1259 | echo "$ac_t""missing" 1>&6
|
---|
1260 | fi
|
---|
1261 |
|
---|
1262 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1263 | echo "configure:1264: checking for working autoheader" >&5
|
---|
1264 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1265 | # an executable is not found, even if stderr is redirected.
|
---|
1266 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1267 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1268 | AUTOHEADER=autoheader
|
---|
1269 | echo "$ac_t""found" 1>&6
|
---|
1270 | else
|
---|
1271 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1272 | echo "$ac_t""missing" 1>&6
|
---|
1273 | fi
|
---|
1274 |
|
---|
1275 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1276 | echo "configure:1277: checking for working makeinfo" >&5
|
---|
1277 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1278 | # an executable is not found, even if stderr is redirected.
|
---|
1279 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1280 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1281 | MAKEINFO=makeinfo
|
---|
1282 | echo "$ac_t""found" 1>&6
|
---|
1283 | else
|
---|
1284 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1285 | echo "$ac_t""missing" 1>&6
|
---|
1286 | fi
|
---|
1287 |
|
---|
1288 |
|
---|
1289 |
|
---|
1290 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1291 | if test "${enable_shared+set}" = set; then
|
---|
1292 | enableval="$enable_shared"
|
---|
1293 | p=${PACKAGE-default}
|
---|
1294 | case $enableval in
|
---|
1295 | yes) enable_shared=yes ;;
|
---|
1296 | no) enable_shared=no ;;
|
---|
1297 | *)
|
---|
1298 | enable_shared=no
|
---|
1299 | # Look at the argument we got. We use all the common list separators.
|
---|
1300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1301 | for pkg in $enableval; do
|
---|
1302 | if test "X$pkg" = "X$p"; then
|
---|
1303 | enable_shared=yes
|
---|
1304 | fi
|
---|
1305 | done
|
---|
1306 | IFS="$ac_save_ifs"
|
---|
1307 | ;;
|
---|
1308 | esac
|
---|
1309 | else
|
---|
1310 | enable_shared=yes
|
---|
1311 | fi
|
---|
1312 |
|
---|
1313 | # Check whether --enable-static or --disable-static was given.
|
---|
1314 | if test "${enable_static+set}" = set; then
|
---|
1315 | enableval="$enable_static"
|
---|
1316 | p=${PACKAGE-default}
|
---|
1317 | case $enableval in
|
---|
1318 | yes) enable_static=yes ;;
|
---|
1319 | no) enable_static=no ;;
|
---|
1320 | *)
|
---|
1321 | enable_static=no
|
---|
1322 | # Look at the argument we got. We use all the common list separators.
|
---|
1323 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1324 | for pkg in $enableval; do
|
---|
1325 | if test "X$pkg" = "X$p"; then
|
---|
1326 | enable_static=yes
|
---|
1327 | fi
|
---|
1328 | done
|
---|
1329 | IFS="$ac_save_ifs"
|
---|
1330 | ;;
|
---|
1331 | esac
|
---|
1332 | else
|
---|
1333 | enable_static=yes
|
---|
1334 | fi
|
---|
1335 |
|
---|
1336 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1337 | if test "${enable_fast_install+set}" = set; then
|
---|
1338 | enableval="$enable_fast_install"
|
---|
1339 | p=${PACKAGE-default}
|
---|
1340 | case $enableval in
|
---|
1341 | yes) enable_fast_install=yes ;;
|
---|
1342 | no) enable_fast_install=no ;;
|
---|
1343 | *)
|
---|
1344 | enable_fast_install=no
|
---|
1345 | # Look at the argument we got. We use all the common list separators.
|
---|
1346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1347 | for pkg in $enableval; do
|
---|
1348 | if test "X$pkg" = "X$p"; then
|
---|
1349 | enable_fast_install=yes
|
---|
1350 | fi
|
---|
1351 | done
|
---|
1352 | IFS="$ac_save_ifs"
|
---|
1353 | ;;
|
---|
1354 | esac
|
---|
1355 | else
|
---|
1356 | enable_fast_install=yes
|
---|
1357 | fi
|
---|
1358 |
|
---|
1359 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1360 | if test "${with_gnu_ld+set}" = set; then
|
---|
1361 | withval="$with_gnu_ld"
|
---|
1362 | test "$withval" = no || with_gnu_ld=yes
|
---|
1363 | else
|
---|
1364 | with_gnu_ld=no
|
---|
1365 | fi
|
---|
1366 |
|
---|
1367 | ac_prog=ld
|
---|
1368 | if test "$GCC" = yes; then
|
---|
1369 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1370 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1371 | echo "configure:1372: checking for ld used by GCC" >&5
|
---|
1372 | case $host in
|
---|
1373 | *-*-mingw*)
|
---|
1374 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1375 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1376 | *)
|
---|
1377 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1378 | esac
|
---|
1379 | case $ac_prog in
|
---|
1380 | # Accept absolute paths.
|
---|
1381 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1382 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1383 | # Canonicalize the path of ld
|
---|
1384 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1385 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1386 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1387 | done
|
---|
1388 | test -z "$LD" && LD="$ac_prog"
|
---|
1389 | ;;
|
---|
1390 | "")
|
---|
1391 | # If it fails, then pretend we aren't using GCC.
|
---|
1392 | ac_prog=ld
|
---|
1393 | ;;
|
---|
1394 | *)
|
---|
1395 | # If it is relative, then search for the first ld in PATH.
|
---|
1396 | with_gnu_ld=unknown
|
---|
1397 | ;;
|
---|
1398 | esac
|
---|
1399 | elif test "$with_gnu_ld" = yes; then
|
---|
1400 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1401 | echo "configure:1402: checking for GNU ld" >&5
|
---|
1402 | else
|
---|
1403 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1404 | echo "configure:1405: checking for non-GNU ld" >&5
|
---|
1405 | fi
|
---|
1406 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
---|
1407 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1408 | else
|
---|
1409 | if test -z "$LD"; then
|
---|
1410 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1411 | for ac_dir in $PATH; do
|
---|
1412 | test -z "$ac_dir" && ac_dir=.
|
---|
1413 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1414 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1415 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1416 | # but apparently some GNU ld's only accept -v.
|
---|
1417 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1418 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1419 | test "$with_gnu_ld" != no && break
|
---|
1420 | else
|
---|
1421 | test "$with_gnu_ld" != yes && break
|
---|
1422 | fi
|
---|
1423 | fi
|
---|
1424 | done
|
---|
1425 | IFS="$ac_save_ifs"
|
---|
1426 | else
|
---|
1427 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1428 | fi
|
---|
1429 | fi
|
---|
1430 |
|
---|
1431 | LD="$lt_cv_path_LD"
|
---|
1432 | if test -n "$LD"; then
|
---|
1433 | echo "$ac_t""$LD" 1>&6
|
---|
1434 | else
|
---|
1435 | echo "$ac_t""no" 1>&6
|
---|
1436 | fi
|
---|
1437 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1438 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1439 | echo "configure:1440: checking if the linker ($LD) is GNU ld" >&5
|
---|
1440 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1441 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1442 | else
|
---|
1443 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1444 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1445 | lt_cv_prog_gnu_ld=yes
|
---|
1446 | else
|
---|
1447 | lt_cv_prog_gnu_ld=no
|
---|
1448 | fi
|
---|
1449 | fi
|
---|
1450 |
|
---|
1451 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
---|
1452 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
1453 |
|
---|
1454 |
|
---|
1455 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1456 | echo "configure:1457: checking for $LD option to reload object files" >&5
|
---|
1457 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1458 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1459 | else
|
---|
1460 | lt_cv_ld_reload_flag='-r'
|
---|
1461 | fi
|
---|
1462 |
|
---|
1463 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1464 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1465 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1466 |
|
---|
1467 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1468 | echo "configure:1469: checking for BSD-compatible nm" >&5
|
---|
1469 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
---|
1470 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1471 | else
|
---|
1472 | if test -n "$NM"; then
|
---|
1473 | # Let the user override the test.
|
---|
1474 | lt_cv_path_NM="$NM"
|
---|
1475 | else
|
---|
1476 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1477 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1478 | test -z "$ac_dir" && ac_dir=.
|
---|
1479 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1480 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1481 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1482 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1483 | # nm: unknown option "B" ignored
|
---|
1484 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1485 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1486 | lt_cv_path_NM="$tmp_nm -B"
|
---|
1487 | break
|
---|
1488 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1489 | lt_cv_path_NM="$tmp_nm -p"
|
---|
1490 | break
|
---|
1491 | else
|
---|
1492 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1493 | continue # so that we can try to find one that supports BSD flags
|
---|
1494 | fi
|
---|
1495 | fi
|
---|
1496 | done
|
---|
1497 | IFS="$ac_save_ifs"
|
---|
1498 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
1499 | fi
|
---|
1500 | fi
|
---|
1501 |
|
---|
1502 | NM="$lt_cv_path_NM"
|
---|
1503 | echo "$ac_t""$NM" 1>&6
|
---|
1504 |
|
---|
1505 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1506 | echo "configure:1507: checking whether ln -s works" >&5
|
---|
1507 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1508 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1509 | else
|
---|
1510 | rm -f conftestdata
|
---|
1511 | if ln -s X conftestdata 2>/dev/null
|
---|
1512 | then
|
---|
1513 | rm -f conftestdata
|
---|
1514 | ac_cv_prog_LN_S="ln -s"
|
---|
1515 | else
|
---|
1516 | echo A > conftestdata;
|
---|
1517 | if ln conftestdata conftestdata2 2>/dev/null; then
|
---|
1518 | ac_cv_prog_LN_S=ln
|
---|
1519 | else
|
---|
1520 | ac_cv_prog_LN_S=cp
|
---|
1521 | fi
|
---|
1522 | fi
|
---|
1523 | rm -f conftestdata*
|
---|
1524 | fi
|
---|
1525 | LN_S="$ac_cv_prog_LN_S"
|
---|
1526 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1527 | echo "$ac_t""yes" 1>&6
|
---|
1528 | else
|
---|
1529 | echo "$ac_t""no" 1>&6
|
---|
1530 | fi
|
---|
1531 |
|
---|
1532 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1533 | echo "configure:1534: checking how to recognise dependant libraries" >&5
|
---|
1534 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1535 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1536 | else
|
---|
1537 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1538 | lt_cv_file_magic_test_file=
|
---|
1539 | lt_cv_deplibs_check_method='unknown'
|
---|
1540 | # Need to set the preceding variable on all platforms that support
|
---|
1541 | # interlibrary dependencies.
|
---|
1542 | # 'none' -- dependencies not supported.
|
---|
1543 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1544 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1545 | # 'test_compile' -- check by making test program.
|
---|
1546 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1547 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1548 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1549 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1550 |
|
---|
1551 | case $host_os in
|
---|
1552 | aix*)
|
---|
1553 | lt_cv_deplibs_check_method=pass_all
|
---|
1554 | ;;
|
---|
1555 |
|
---|
1556 | beos*)
|
---|
1557 | lt_cv_deplibs_check_method=pass_all
|
---|
1558 | ;;
|
---|
1559 |
|
---|
1560 | bsdi4*)
|
---|
1561 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1562 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1563 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1564 | ;;
|
---|
1565 |
|
---|
1566 | cygwin* | mingw* |pw32*)
|
---|
1567 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1568 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1569 | ;;
|
---|
1570 |
|
---|
1571 | darwin* | rhapsody*)
|
---|
1572 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
---|
1573 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1574 | case "$host_os" in
|
---|
1575 | rhapsody* | darwin1.012)
|
---|
1576 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
---|
1577 | ;;
|
---|
1578 | *) # Darwin 1.3 on
|
---|
1579 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
---|
1580 | ;;
|
---|
1581 | esac
|
---|
1582 | ;;
|
---|
1583 |
|
---|
1584 | freebsd* )
|
---|
1585 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1586 | case $host_cpu in
|
---|
1587 | i*86 )
|
---|
1588 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1589 | # Let's accept both of them until this is cleared up.
|
---|
1590 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1591 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1592 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1593 | ;;
|
---|
1594 | esac
|
---|
1595 | else
|
---|
1596 | lt_cv_deplibs_check_method=pass_all
|
---|
1597 | fi
|
---|
1598 | ;;
|
---|
1599 |
|
---|
1600 | gnu*)
|
---|
1601 | lt_cv_deplibs_check_method=pass_all
|
---|
1602 | ;;
|
---|
1603 |
|
---|
1604 | hpux10.20*|hpux11*)
|
---|
1605 | case $host_cpu in
|
---|
1606 | hppa*)
|
---|
1607 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
1608 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1609 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1610 | ;;
|
---|
1611 | ia64*)
|
---|
1612 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
1613 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1614 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
1615 | ;;
|
---|
1616 | esac
|
---|
1617 | ;;
|
---|
1618 |
|
---|
1619 | irix5* | irix6*)
|
---|
1620 | case $host_os in
|
---|
1621 | irix5*)
|
---|
1622 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1623 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1624 | ;;
|
---|
1625 | *)
|
---|
1626 | case $LD in
|
---|
1627 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1628 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1629 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1630 | *) libmagic=never-match;;
|
---|
1631 | esac
|
---|
1632 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1633 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1634 | ;;
|
---|
1635 | esac
|
---|
1636 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1637 | lt_cv_deplibs_check_method=pass_all
|
---|
1638 | ;;
|
---|
1639 |
|
---|
1640 | # This must be Linux ELF.
|
---|
1641 | linux-gnu*)
|
---|
1642 | case $host_cpu in
|
---|
1643 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1644 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1645 | *)
|
---|
1646 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1647 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1648 | esac
|
---|
1649 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1650 | ;;
|
---|
1651 |
|
---|
1652 | netbsd*)
|
---|
1653 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1654 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
---|
1655 | else
|
---|
1656 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
---|
1657 | fi
|
---|
1658 | ;;
|
---|
1659 |
|
---|
1660 | os2*)
|
---|
1661 | lt_cv_deplibs_check_method=pass_all
|
---|
1662 | ;;
|
---|
1663 |
|
---|
1664 | newsos6)
|
---|
1665 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
1666 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1667 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
1668 | ;;
|
---|
1669 |
|
---|
1670 | osf3* | osf4* | osf5*)
|
---|
1671 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1672 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1673 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1674 | lt_cv_deplibs_check_method=pass_all
|
---|
1675 | ;;
|
---|
1676 |
|
---|
1677 | sco3.2v5*)
|
---|
1678 | lt_cv_deplibs_check_method=pass_all
|
---|
1679 | ;;
|
---|
1680 |
|
---|
1681 | solaris*)
|
---|
1682 | lt_cv_deplibs_check_method=pass_all
|
---|
1683 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1684 | ;;
|
---|
1685 |
|
---|
1686 | sysv5uw[78]* | sysv4*uw2*)
|
---|
1687 | lt_cv_deplibs_check_method=pass_all
|
---|
1688 | ;;
|
---|
1689 |
|
---|
1690 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1691 | case $host_vendor in
|
---|
1692 | ncr)
|
---|
1693 | lt_cv_deplibs_check_method=pass_all
|
---|
1694 | ;;
|
---|
1695 | motorola)
|
---|
1696 | 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]'
|
---|
1697 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1698 | ;;
|
---|
1699 | esac
|
---|
1700 | ;;
|
---|
1701 | esac
|
---|
1702 |
|
---|
1703 | fi
|
---|
1704 |
|
---|
1705 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1706 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1707 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1708 |
|
---|
1709 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1710 | echo "configure:1711: checking for object suffix" >&5
|
---|
1711 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1712 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1713 | else
|
---|
1714 | rm -f conftest*
|
---|
1715 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1716 | if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1717 | for ac_file in conftest.*; do
|
---|
1718 | case $ac_file in
|
---|
1719 | *.c) ;;
|
---|
1720 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1721 | esac
|
---|
1722 | done
|
---|
1723 | else
|
---|
1724 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1725 | fi
|
---|
1726 | rm -f conftest*
|
---|
1727 | fi
|
---|
1728 |
|
---|
1729 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1730 | OBJEXT=$ac_cv_objext
|
---|
1731 | ac_objext=$ac_cv_objext
|
---|
1732 |
|
---|
1733 | if test $host != $build; then
|
---|
1734 | ac_tool_prefix=${host_alias}-
|
---|
1735 | else
|
---|
1736 | ac_tool_prefix=
|
---|
1737 | fi
|
---|
1738 |
|
---|
1739 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1740 |
|
---|
1741 | # Only perform the check for file, if the check method requires it
|
---|
1742 | case $deplibs_check_method in
|
---|
1743 | file_magic*)
|
---|
1744 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
1745 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1746 | echo "configure:1747: checking for ${ac_tool_prefix}file" >&5
|
---|
1747 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1748 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1749 | else
|
---|
1750 | case $MAGIC_CMD in
|
---|
1751 | /*)
|
---|
1752 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1753 | ;;
|
---|
1754 | ?:/*)
|
---|
1755 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1756 | ;;
|
---|
1757 | *)
|
---|
1758 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1759 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1760 | ac_dummy="/usr/bin:$PATH"
|
---|
1761 | for ac_dir in $ac_dummy; do
|
---|
1762 | test -z "$ac_dir" && ac_dir=.
|
---|
1763 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1764 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
1765 | if test -n "$file_magic_test_file"; then
|
---|
1766 | case $deplibs_check_method in
|
---|
1767 | "file_magic "*)
|
---|
1768 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1769 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1770 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1771 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1772 | :
|
---|
1773 | else
|
---|
1774 | cat <<EOF 1>&2
|
---|
1775 |
|
---|
1776 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1777 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1778 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1779 | *** as such. This will affect the creation of libtool libraries that
|
---|
1780 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1781 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1782 | *** may want to report the problem to your system manager and/or to
|
---|
1783 | *** bug-libtool@gnu.org
|
---|
1784 |
|
---|
1785 | EOF
|
---|
1786 | fi ;;
|
---|
1787 | esac
|
---|
1788 | fi
|
---|
1789 | break
|
---|
1790 | fi
|
---|
1791 | done
|
---|
1792 | IFS="$ac_save_ifs"
|
---|
1793 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1794 | ;;
|
---|
1795 | esac
|
---|
1796 | fi
|
---|
1797 |
|
---|
1798 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1799 | if test -n "$MAGIC_CMD"; then
|
---|
1800 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1801 | else
|
---|
1802 | echo "$ac_t""no" 1>&6
|
---|
1803 | fi
|
---|
1804 |
|
---|
1805 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
1806 | if test -n "$ac_tool_prefix"; then
|
---|
1807 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1808 | echo "configure:1809: checking for file" >&5
|
---|
1809 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1810 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1811 | else
|
---|
1812 | case $MAGIC_CMD in
|
---|
1813 | /*)
|
---|
1814 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1815 | ;;
|
---|
1816 | ?:/*)
|
---|
1817 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1818 | ;;
|
---|
1819 | *)
|
---|
1820 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1822 | ac_dummy="/usr/bin:$PATH"
|
---|
1823 | for ac_dir in $ac_dummy; do
|
---|
1824 | test -z "$ac_dir" && ac_dir=.
|
---|
1825 | if test -f $ac_dir/file; then
|
---|
1826 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
1827 | if test -n "$file_magic_test_file"; then
|
---|
1828 | case $deplibs_check_method in
|
---|
1829 | "file_magic "*)
|
---|
1830 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1831 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1832 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1833 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1834 | :
|
---|
1835 | else
|
---|
1836 | cat <<EOF 1>&2
|
---|
1837 |
|
---|
1838 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1839 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1840 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1841 | *** as such. This will affect the creation of libtool libraries that
|
---|
1842 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1843 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1844 | *** may want to report the problem to your system manager and/or to
|
---|
1845 | *** bug-libtool@gnu.org
|
---|
1846 |
|
---|
1847 | EOF
|
---|
1848 | fi ;;
|
---|
1849 | esac
|
---|
1850 | fi
|
---|
1851 | break
|
---|
1852 | fi
|
---|
1853 | done
|
---|
1854 | IFS="$ac_save_ifs"
|
---|
1855 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1856 | ;;
|
---|
1857 | esac
|
---|
1858 | fi
|
---|
1859 |
|
---|
1860 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1861 | if test -n "$MAGIC_CMD"; then
|
---|
1862 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1863 | else
|
---|
1864 | echo "$ac_t""no" 1>&6
|
---|
1865 | fi
|
---|
1866 |
|
---|
1867 | else
|
---|
1868 | MAGIC_CMD=:
|
---|
1869 | fi
|
---|
1870 | fi
|
---|
1871 |
|
---|
1872 | fi
|
---|
1873 | ;;
|
---|
1874 | esac
|
---|
1875 |
|
---|
1876 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1877 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1878 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1879 | echo "configure:1880: checking for $ac_word" >&5
|
---|
1880 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1881 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1882 | else
|
---|
1883 | if test -n "$RANLIB"; then
|
---|
1884 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1885 | else
|
---|
1886 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1887 | ac_dummy="$PATH"
|
---|
1888 | for ac_dir in $ac_dummy; do
|
---|
1889 | test -z "$ac_dir" && ac_dir=.
|
---|
1890 | if test -f $ac_dir/$ac_word -o \
|
---|
1891 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1892 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1893 | break
|
---|
1894 | fi
|
---|
1895 | done
|
---|
1896 | IFS="$ac_save_ifs"
|
---|
1897 | fi
|
---|
1898 | fi
|
---|
1899 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1900 | if test -n "$RANLIB"; then
|
---|
1901 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1902 | else
|
---|
1903 | echo "$ac_t""no" 1>&6
|
---|
1904 | fi
|
---|
1905 |
|
---|
1906 |
|
---|
1907 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1908 | if test -n "$ac_tool_prefix"; then
|
---|
1909 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1910 | set dummy ranlib; ac_word=$2
|
---|
1911 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1912 | echo "configure:1913: checking for $ac_word" >&5
|
---|
1913 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1914 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1915 | else
|
---|
1916 | if test -n "$RANLIB"; then
|
---|
1917 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1918 | else
|
---|
1919 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1920 | ac_dummy="$PATH"
|
---|
1921 | for ac_dir in $ac_dummy; do
|
---|
1922 | test -z "$ac_dir" && ac_dir=.
|
---|
1923 | if test -f $ac_dir/$ac_word -o \
|
---|
1924 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1925 | ac_cv_prog_RANLIB="ranlib"
|
---|
1926 | break
|
---|
1927 | fi
|
---|
1928 | done
|
---|
1929 | IFS="$ac_save_ifs"
|
---|
1930 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1931 | fi
|
---|
1932 | fi
|
---|
1933 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1934 | if test -n "$RANLIB"; then
|
---|
1935 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1936 | else
|
---|
1937 | echo "$ac_t""no" 1>&6
|
---|
1938 | fi
|
---|
1939 |
|
---|
1940 | else
|
---|
1941 | RANLIB=":"
|
---|
1942 | fi
|
---|
1943 | fi
|
---|
1944 |
|
---|
1945 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
1946 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
1947 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1948 | echo "configure:1949: checking for $ac_word" >&5
|
---|
1949 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
1950 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1951 | else
|
---|
1952 | if test -n "$STRIP"; then
|
---|
1953 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1954 | else
|
---|
1955 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1956 | ac_dummy="$PATH"
|
---|
1957 | for ac_dir in $ac_dummy; do
|
---|
1958 | test -z "$ac_dir" && ac_dir=.
|
---|
1959 | if test -f $ac_dir/$ac_word -o \
|
---|
1960 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1961 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
1962 | break
|
---|
1963 | fi
|
---|
1964 | done
|
---|
1965 | IFS="$ac_save_ifs"
|
---|
1966 | fi
|
---|
1967 | fi
|
---|
1968 | STRIP="$ac_cv_prog_STRIP"
|
---|
1969 | if test -n "$STRIP"; then
|
---|
1970 | echo "$ac_t""$STRIP" 1>&6
|
---|
1971 | else
|
---|
1972 | echo "$ac_t""no" 1>&6
|
---|
1973 | fi
|
---|
1974 |
|
---|
1975 |
|
---|
1976 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
1977 | if test -n "$ac_tool_prefix"; then
|
---|
1978 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
1979 | set dummy strip; ac_word=$2
|
---|
1980 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1981 | echo "configure:1982: checking for $ac_word" >&5
|
---|
1982 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
1983 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1984 | else
|
---|
1985 | if test -n "$STRIP"; then
|
---|
1986 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1987 | else
|
---|
1988 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1989 | ac_dummy="$PATH"
|
---|
1990 | for ac_dir in $ac_dummy; do
|
---|
1991 | test -z "$ac_dir" && ac_dir=.
|
---|
1992 | if test -f $ac_dir/$ac_word -o \
|
---|
1993 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1994 | ac_cv_prog_STRIP="strip"
|
---|
1995 | break
|
---|
1996 | fi
|
---|
1997 | done
|
---|
1998 | IFS="$ac_save_ifs"
|
---|
1999 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2000 | fi
|
---|
2001 | fi
|
---|
2002 | STRIP="$ac_cv_prog_STRIP"
|
---|
2003 | if test -n "$STRIP"; then
|
---|
2004 | echo "$ac_t""$STRIP" 1>&6
|
---|
2005 | else
|
---|
2006 | echo "$ac_t""no" 1>&6
|
---|
2007 | fi
|
---|
2008 |
|
---|
2009 | else
|
---|
2010 | STRIP=":"
|
---|
2011 | fi
|
---|
2012 | fi
|
---|
2013 |
|
---|
2014 |
|
---|
2015 | # Check for any special flags to pass to ltconfig.
|
---|
2016 | libtool_flags="--cache-file=$cache_file"
|
---|
2017 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2018 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2019 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2020 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2021 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2022 |
|
---|
2023 |
|
---|
2024 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2025 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2026 | enableval="$enable_libtool_lock"
|
---|
2027 | :
|
---|
2028 | fi
|
---|
2029 |
|
---|
2030 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2031 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2032 |
|
---|
2033 | # Check whether --with-pic or --without-pic was given.
|
---|
2034 | if test "${with_pic+set}" = set; then
|
---|
2035 | withval="$with_pic"
|
---|
2036 | pic_mode="$withval"
|
---|
2037 | else
|
---|
2038 | pic_mode=default
|
---|
2039 | fi
|
---|
2040 |
|
---|
2041 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2042 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2043 |
|
---|
2044 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2045 | # libtool support.
|
---|
2046 | case $host in
|
---|
2047 | *-*-irix6*)
|
---|
2048 | # Find out which ABI we are using.
|
---|
2049 | echo '#line 2050 "configure"' > conftest.$ac_ext
|
---|
2050 | if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2051 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
2052 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2053 | *32-bit*)
|
---|
2054 | LD="${LD-ld} -melf32bsmip"
|
---|
2055 | ;;
|
---|
2056 | *N32*)
|
---|
2057 | LD="${LD-ld} -melf32bmipn32"
|
---|
2058 | ;;
|
---|
2059 | *64-bit*)
|
---|
2060 | LD="${LD-ld} -melf64bmip"
|
---|
2061 | ;;
|
---|
2062 | esac
|
---|
2063 | else
|
---|
2064 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2065 | *32-bit*)
|
---|
2066 | LD="${LD-ld} -32"
|
---|
2067 | ;;
|
---|
2068 | *N32*)
|
---|
2069 | LD="${LD-ld} -n32"
|
---|
2070 | ;;
|
---|
2071 | *64-bit*)
|
---|
2072 | LD="${LD-ld} -64"
|
---|
2073 | ;;
|
---|
2074 | esac
|
---|
2075 | fi
|
---|
2076 | fi
|
---|
2077 | rm -rf conftest*
|
---|
2078 | ;;
|
---|
2079 |
|
---|
2080 | ia64-*-hpux*)
|
---|
2081 | # Find out which ABI we are using.
|
---|
2082 | echo 'int i;' > conftest.$ac_ext
|
---|
2083 | if { (eval echo configure:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2084 | case "`/usr/bin/file conftest.o`" in
|
---|
2085 | *ELF-32*)
|
---|
2086 | HPUX_IA64_MODE="32"
|
---|
2087 | ;;
|
---|
2088 | *ELF-64*)
|
---|
2089 | HPUX_IA64_MODE="64"
|
---|
2090 | ;;
|
---|
2091 | esac
|
---|
2092 | fi
|
---|
2093 | rm -rf conftest*
|
---|
2094 | ;;
|
---|
2095 |
|
---|
2096 | *-*-sco3.2v5*)
|
---|
2097 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2098 | SAVE_CFLAGS="$CFLAGS"
|
---|
2099 | CFLAGS="$CFLAGS -belf"
|
---|
2100 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2101 | echo "configure:2102: checking whether the C compiler needs -belf" >&5
|
---|
2102 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2103 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2104 | else
|
---|
2105 |
|
---|
2106 | ac_ext=c
|
---|
2107 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2108 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2109 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2110 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2111 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2112 |
|
---|
2113 | cat > conftest.$ac_ext <<EOF
|
---|
2114 | #line 2115 "configure"
|
---|
2115 | #include "confdefs.h"
|
---|
2116 |
|
---|
2117 | int main() {
|
---|
2118 |
|
---|
2119 | ; return 0; }
|
---|
2120 | EOF
|
---|
2121 | if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2122 | rm -rf conftest*
|
---|
2123 | lt_cv_cc_needs_belf=yes
|
---|
2124 | else
|
---|
2125 | echo "configure: failed program was:" >&5
|
---|
2126 | cat conftest.$ac_ext >&5
|
---|
2127 | rm -rf conftest*
|
---|
2128 | lt_cv_cc_needs_belf=no
|
---|
2129 | fi
|
---|
2130 | rm -f conftest*
|
---|
2131 | ac_ext=c
|
---|
2132 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2133 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2134 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2135 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2136 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2137 |
|
---|
2138 | fi
|
---|
2139 |
|
---|
2140 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2141 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2142 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2143 | CFLAGS="$SAVE_CFLAGS"
|
---|
2144 | fi
|
---|
2145 | ;;
|
---|
2146 |
|
---|
2147 |
|
---|
2148 | esac
|
---|
2149 |
|
---|
2150 |
|
---|
2151 | # Save cache, so that ltconfig can load it
|
---|
2152 | cat > confcache <<\EOF
|
---|
2153 | # This file is a shell script that caches the results of configure
|
---|
2154 | # tests run on this system so they can be shared between configure
|
---|
2155 | # scripts and configure runs. It is not useful on other systems.
|
---|
2156 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2157 | #
|
---|
2158 | # By default, configure uses ./config.cache as the cache file,
|
---|
2159 | # creating it if it does not exist already. You can give configure
|
---|
2160 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2161 | # what configure does when it calls configure scripts in
|
---|
2162 | # subdirectories, so they share the cache.
|
---|
2163 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2164 | # config.status only pays attention to the cache file if you give it the
|
---|
2165 | # --recheck option to rerun configure.
|
---|
2166 | #
|
---|
2167 | EOF
|
---|
2168 | # The following way of writing the cache mishandles newlines in values,
|
---|
2169 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2170 | # So, don't put newlines in cache variables' values.
|
---|
2171 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2172 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2173 | (set) 2>&1 |
|
---|
2174 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2175 | *ac_space=\ *)
|
---|
2176 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2177 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2178 | sed -n \
|
---|
2179 | -e "s/'/'\\\\''/g" \
|
---|
2180 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2181 | ;;
|
---|
2182 | *)
|
---|
2183 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2184 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2185 | ;;
|
---|
2186 | esac >> confcache
|
---|
2187 | if cmp -s $cache_file confcache; then
|
---|
2188 | :
|
---|
2189 | else
|
---|
2190 | if test -w $cache_file; then
|
---|
2191 | echo "updating cache $cache_file"
|
---|
2192 | cat confcache > $cache_file
|
---|
2193 | else
|
---|
2194 | echo "not updating unwritable cache $cache_file"
|
---|
2195 | fi
|
---|
2196 | fi
|
---|
2197 | rm -f confcache
|
---|
2198 |
|
---|
2199 |
|
---|
2200 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2201 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2202 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2203 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2204 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2205 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2206 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2207 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2208 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2209 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2210 |
|
---|
2211 | # Reload cache, that may have been modified by ltconfig
|
---|
2212 | if test -r "$cache_file"; then
|
---|
2213 | echo "loading cache $cache_file"
|
---|
2214 | . $cache_file
|
---|
2215 | else
|
---|
2216 | echo "creating cache $cache_file"
|
---|
2217 | > $cache_file
|
---|
2218 | fi
|
---|
2219 |
|
---|
2220 |
|
---|
2221 | # This can be used to rebuild libtool when needed
|
---|
2222 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2223 |
|
---|
2224 | # Always use our own libtool.
|
---|
2225 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2226 |
|
---|
2227 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2228 | # clobbered by the next message.
|
---|
2229 | exec 5>>./config.log
|
---|
2230 |
|
---|
2231 |
|
---|
2232 |
|
---|
2233 |
|
---|
2234 |
|
---|
2235 |
|
---|
2236 |
|
---|
2237 |
|
---|
2238 |
|
---|
2239 |
|
---|
2240 |
|
---|
2241 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2242 | set dummy gcc; ac_word=$2
|
---|
2243 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2244 | echo "configure:2245: checking for $ac_word" >&5
|
---|
2245 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2246 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2247 | else
|
---|
2248 | if test -n "$CC"; then
|
---|
2249 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2250 | else
|
---|
2251 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2252 | ac_dummy="$PATH"
|
---|
2253 | for ac_dir in $ac_dummy; do
|
---|
2254 | test -z "$ac_dir" && ac_dir=.
|
---|
2255 | if test -f $ac_dir/$ac_word -o \
|
---|
2256 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2257 | ac_cv_prog_CC="gcc"
|
---|
2258 | break
|
---|
2259 | fi
|
---|
2260 | done
|
---|
2261 | IFS="$ac_save_ifs"
|
---|
2262 | fi
|
---|
2263 | fi
|
---|
2264 | CC="$ac_cv_prog_CC"
|
---|
2265 | if test -n "$CC"; then
|
---|
2266 | echo "$ac_t""$CC" 1>&6
|
---|
2267 | else
|
---|
2268 | echo "$ac_t""no" 1>&6
|
---|
2269 | fi
|
---|
2270 |
|
---|
2271 | if test -z "$CC"; then
|
---|
2272 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2273 | set dummy cc; ac_word=$2
|
---|
2274 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2275 | echo "configure:2276: checking for $ac_word" >&5
|
---|
2276 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2277 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2278 | else
|
---|
2279 | if test -n "$CC"; then
|
---|
2280 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2281 | else
|
---|
2282 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2283 | ac_prog_rejected=no
|
---|
2284 | ac_dummy="$PATH"
|
---|
2285 | for ac_dir in $ac_dummy; do
|
---|
2286 | test -z "$ac_dir" && ac_dir=.
|
---|
2287 | if test -f $ac_dir/$ac_word -o \
|
---|
2288 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2289 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
2290 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
2291 | ac_prog_rejected=yes
|
---|
2292 | continue
|
---|
2293 | fi
|
---|
2294 | ac_cv_prog_CC="cc"
|
---|
2295 | break
|
---|
2296 | fi
|
---|
2297 | done
|
---|
2298 | IFS="$ac_save_ifs"
|
---|
2299 | if test $ac_prog_rejected = yes; then
|
---|
2300 | # We found a bogon in the path, so make sure we never use it.
|
---|
2301 | set dummy $ac_cv_prog_CC
|
---|
2302 | shift
|
---|
2303 | if test $# -gt 0; then
|
---|
2304 | # We chose a different compiler from the bogus one.
|
---|
2305 | # However, it has the same basename, so the bogon will be chosen
|
---|
2306 | # first if we set CC to just the basename; use the full file name.
|
---|
2307 | shift
|
---|
2308 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
2309 | shift
|
---|
2310 | ac_cv_prog_CC="$@"
|
---|
2311 | fi
|
---|
2312 | fi
|
---|
2313 | fi
|
---|
2314 | fi
|
---|
2315 | CC="$ac_cv_prog_CC"
|
---|
2316 | if test -n "$CC"; then
|
---|
2317 | echo "$ac_t""$CC" 1>&6
|
---|
2318 | else
|
---|
2319 | echo "$ac_t""no" 1>&6
|
---|
2320 | fi
|
---|
2321 |
|
---|
2322 | if test -z "$CC"; then
|
---|
2323 | case "`uname -s`" in
|
---|
2324 | *win32* | *WIN32*)
|
---|
2325 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
2326 | set dummy cl; ac_word=$2
|
---|
2327 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2328 | echo "configure:2329: checking for $ac_word" >&5
|
---|
2329 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2330 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2331 | else
|
---|
2332 | if test -n "$CC"; then
|
---|
2333 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2334 | else
|
---|
2335 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2336 | ac_dummy="$PATH"
|
---|
2337 | for ac_dir in $ac_dummy; do
|
---|
2338 | test -z "$ac_dir" && ac_dir=.
|
---|
2339 | if test -f $ac_dir/$ac_word -o \
|
---|
2340 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2341 | ac_cv_prog_CC="cl"
|
---|
2342 | break
|
---|
2343 | fi
|
---|
2344 | done
|
---|
2345 | IFS="$ac_save_ifs"
|
---|
2346 | fi
|
---|
2347 | fi
|
---|
2348 | CC="$ac_cv_prog_CC"
|
---|
2349 | if test -n "$CC"; then
|
---|
2350 | echo "$ac_t""$CC" 1>&6
|
---|
2351 | else
|
---|
2352 | echo "$ac_t""no" 1>&6
|
---|
2353 | fi
|
---|
2354 | ;;
|
---|
2355 | esac
|
---|
2356 | fi
|
---|
2357 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
2358 | fi
|
---|
2359 |
|
---|
2360 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
2361 | echo "configure:2362: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
2362 |
|
---|
2363 | ac_ext=c
|
---|
2364 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2365 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2366 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2367 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2368 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2369 |
|
---|
2370 | cat > conftest.$ac_ext << EOF
|
---|
2371 |
|
---|
2372 | #line 2373 "configure"
|
---|
2373 | #include "confdefs.h"
|
---|
2374 |
|
---|
2375 | main(){return(0);}
|
---|
2376 | EOF
|
---|
2377 | if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2378 | ac_cv_prog_cc_works=yes
|
---|
2379 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
2380 | if (./conftest; exit) 2>/dev/null; then
|
---|
2381 | ac_cv_prog_cc_cross=no
|
---|
2382 | else
|
---|
2383 | ac_cv_prog_cc_cross=yes
|
---|
2384 | fi
|
---|
2385 | else
|
---|
2386 | echo "configure: failed program was:" >&5
|
---|
2387 | cat conftest.$ac_ext >&5
|
---|
2388 | ac_cv_prog_cc_works=no
|
---|
2389 | fi
|
---|
2390 | rm -fr conftest*
|
---|
2391 | ac_ext=c
|
---|
2392 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2393 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2394 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2395 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2396 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2397 |
|
---|
2398 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
2399 | if test $ac_cv_prog_cc_works = no; then
|
---|
2400 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
2401 | fi
|
---|
2402 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
2403 | echo "configure:2404: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
2404 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
2405 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2406 |
|
---|
2407 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
2408 | echo "configure:2409: checking whether we are using GNU C" >&5
|
---|
2409 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
2410 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2411 | else
|
---|
2412 | cat > conftest.c <<EOF
|
---|
2413 | #ifdef __GNUC__
|
---|
2414 | yes;
|
---|
2415 | #endif
|
---|
2416 | EOF
|
---|
2417 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
2418 | ac_cv_prog_gcc=yes
|
---|
2419 | else
|
---|
2420 | ac_cv_prog_gcc=no
|
---|
2421 | fi
|
---|
2422 | fi
|
---|
2423 |
|
---|
2424 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
2425 |
|
---|
2426 | if test $ac_cv_prog_gcc = yes; then
|
---|
2427 | GCC=yes
|
---|
2428 | else
|
---|
2429 | GCC=
|
---|
2430 | fi
|
---|
2431 |
|
---|
2432 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
2433 | ac_save_CFLAGS="$CFLAGS"
|
---|
2434 | CFLAGS=
|
---|
2435 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
2436 | echo "configure:2437: checking whether ${CC-cc} accepts -g" >&5
|
---|
2437 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
2438 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2439 | else
|
---|
2440 | echo 'void f(){}' > conftest.c
|
---|
2441 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
2442 | ac_cv_prog_cc_g=yes
|
---|
2443 | else
|
---|
2444 | ac_cv_prog_cc_g=no
|
---|
2445 | fi
|
---|
2446 | rm -f conftest*
|
---|
2447 |
|
---|
2448 | fi
|
---|
2449 |
|
---|
2450 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
2451 | if test "$ac_test_CFLAGS" = set; then
|
---|
2452 | CFLAGS="$ac_save_CFLAGS"
|
---|
2453 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2454 | if test "$GCC" = yes; then
|
---|
2455 | CFLAGS="-g -O2"
|
---|
2456 | else
|
---|
2457 | CFLAGS="-g"
|
---|
2458 | fi
|
---|
2459 | else
|
---|
2460 | if test "$GCC" = yes; then
|
---|
2461 | CFLAGS="-O2"
|
---|
2462 | else
|
---|
2463 | CFLAGS=
|
---|
2464 | fi
|
---|
2465 | fi
|
---|
2466 |
|
---|
2467 | # Find a good install program. We prefer a C program (faster),
|
---|
2468 | # so one script is as good as another. But avoid the broken or
|
---|
2469 | # incompatible versions:
|
---|
2470 | # SysV /etc/install, /usr/sbin/install
|
---|
2471 | # SunOS /usr/etc/install
|
---|
2472 | # IRIX /sbin/install
|
---|
2473 | # AIX /bin/install
|
---|
2474 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2475 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2476 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2477 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2478 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
2479 | echo "configure:2480: checking for a BSD compatible install" >&5
|
---|
2480 | if test -z "$INSTALL"; then
|
---|
2481 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
2482 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2483 | else
|
---|
2484 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
2485 | for ac_dir in $PATH; do
|
---|
2486 | # Account for people who put trailing slashes in PATH elements.
|
---|
2487 | case "$ac_dir/" in
|
---|
2488 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
2489 | # We reject the install program from OS/2 or W3.1
|
---|
2490 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
2491 | *)
|
---|
2492 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2493 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2494 | # by default.
|
---|
2495 | for ac_prog in ginstall scoinst install; do
|
---|
2496 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
2497 | if test $ac_prog = install &&
|
---|
2498 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
2499 | # AIX install. It has an incompatible calling convention.
|
---|
2500 | :
|
---|
2501 | else
|
---|
2502 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
2503 | break 2
|
---|
2504 | fi
|
---|
2505 | fi
|
---|
2506 | done
|
---|
2507 | ;;
|
---|
2508 | esac
|
---|
2509 | done
|
---|
2510 | IFS="$ac_save_IFS"
|
---|
2511 |
|
---|
2512 | fi
|
---|
2513 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2514 | INSTALL="$ac_cv_path_install"
|
---|
2515 | else
|
---|
2516 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2517 | # path for INSTALL within a source directory, because that will
|
---|
2518 | # break other packages using the cache if that directory is
|
---|
2519 | # removed, or if the path is relative.
|
---|
2520 | INSTALL="$ac_install_sh"
|
---|
2521 | fi
|
---|
2522 | fi
|
---|
2523 | echo "$ac_t""$INSTALL" 1>&6
|
---|
2524 |
|
---|
2525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2526 | # It thinks the first close brace ends the variable substitution.
|
---|
2527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2528 |
|
---|
2529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
2530 |
|
---|
2531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2532 |
|
---|
2533 |
|
---|
2534 | for ac_func in setmode
|
---|
2535 | do
|
---|
2536 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2537 | echo "configure:2538: checking for $ac_func" >&5
|
---|
2538 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2539 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2540 | else
|
---|
2541 | cat > conftest.$ac_ext <<EOF
|
---|
2542 | #line 2543 "configure"
|
---|
2543 | #include "confdefs.h"
|
---|
2544 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2545 | which can conflict with char $ac_func(); below. */
|
---|
2546 | #include <assert.h>
|
---|
2547 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2548 | /* We use char because int might match the return type of a gcc2
|
---|
2549 | builtin and then its argument prototype would still apply. */
|
---|
2550 | char $ac_func();
|
---|
2551 |
|
---|
2552 | int main() {
|
---|
2553 |
|
---|
2554 | /* The GNU C library defines this for functions which it implements
|
---|
2555 | to always fail with ENOSYS. Some functions are actually named
|
---|
2556 | something starting with __ and the normal name is an alias. */
|
---|
2557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2558 | choke me
|
---|
2559 | #else
|
---|
2560 | $ac_func();
|
---|
2561 | #endif
|
---|
2562 |
|
---|
2563 | ; return 0; }
|
---|
2564 | EOF
|
---|
2565 | if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2566 | rm -rf conftest*
|
---|
2567 | eval "ac_cv_func_$ac_func=yes"
|
---|
2568 | else
|
---|
2569 | echo "configure: failed program was:" >&5
|
---|
2570 | cat conftest.$ac_ext >&5
|
---|
2571 | rm -rf conftest*
|
---|
2572 | eval "ac_cv_func_$ac_func=no"
|
---|
2573 | fi
|
---|
2574 | rm -f conftest*
|
---|
2575 | fi
|
---|
2576 |
|
---|
2577 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2578 | echo "$ac_t""yes" 1>&6
|
---|
2579 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2580 | cat >> confdefs.h <<EOF
|
---|
2581 | #define $ac_tr_func 1
|
---|
2582 | EOF
|
---|
2583 |
|
---|
2584 | else
|
---|
2585 | echo "$ac_t""no" 1>&6
|
---|
2586 | fi
|
---|
2587 | done
|
---|
2588 |
|
---|
2589 |
|
---|
2590 | ALL_LINGUAS="fr tr sv es id da pt_BR"
|
---|
2591 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2592 | echo "configure:2593: checking how to run the C preprocessor" >&5
|
---|
2593 | # On Suns, sometimes $CPP names a directory.
|
---|
2594 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2595 | CPP=
|
---|
2596 | fi
|
---|
2597 | if test -z "$CPP"; then
|
---|
2598 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2599 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2600 | else
|
---|
2601 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2602 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2603 | CPP="${CC-cc} -E"
|
---|
2604 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2605 | # not just through cpp.
|
---|
2606 | cat > conftest.$ac_ext <<EOF
|
---|
2607 | #include <sys/types.h>
|
---|
2608 | #line 2609 "configure"
|
---|
2609 | #include "confdefs.h"
|
---|
2610 | #include <assert.h>
|
---|
2611 | Syntax Error
|
---|
2612 | EOF
|
---|
2613 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2614 | { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2615 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2616 | if test -z "$ac_err"; then
|
---|
2617 | :
|
---|
2618 | else
|
---|
2619 | echo "$ac_err" >&5
|
---|
2620 | echo "configure: failed program was:" >&5
|
---|
2621 | cat conftest.$ac_ext >&5
|
---|
2622 | rm -rf conftest*
|
---|
2623 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2624 | cat > conftest.$ac_ext <<EOF
|
---|
2625 | #include <sys/types.h>
|
---|
2626 | #line 2627 "configure"
|
---|
2627 | #include "confdefs.h"
|
---|
2628 | #include <assert.h>
|
---|
2629 | Syntax Error
|
---|
2630 | EOF
|
---|
2631 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2632 | { (eval echo configure:2633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2633 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2634 | if test -z "$ac_err"; then
|
---|
2635 | :
|
---|
2636 | else
|
---|
2637 | echo "$ac_err" >&5
|
---|
2638 | echo "configure: failed program was:" >&5
|
---|
2639 | cat conftest.$ac_ext >&5
|
---|
2640 | rm -rf conftest*
|
---|
2641 | CPP="${CC-cc} -nologo -E"
|
---|
2642 | cat > conftest.$ac_ext <<EOF
|
---|
2643 | #include <sys/types.h>
|
---|
2644 | #line 2645 "configure"
|
---|
2645 | #include "confdefs.h"
|
---|
2646 | #include <assert.h>
|
---|
2647 | Syntax Error
|
---|
2648 | EOF
|
---|
2649 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2650 | { (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2651 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2652 | if test -z "$ac_err"; then
|
---|
2653 | :
|
---|
2654 | else
|
---|
2655 | echo "$ac_err" >&5
|
---|
2656 | echo "configure: failed program was:" >&5
|
---|
2657 | cat conftest.$ac_ext >&5
|
---|
2658 | rm -rf conftest*
|
---|
2659 | CPP=/lib/cpp
|
---|
2660 | fi
|
---|
2661 | rm -f conftest*
|
---|
2662 | fi
|
---|
2663 | rm -f conftest*
|
---|
2664 | fi
|
---|
2665 | rm -f conftest*
|
---|
2666 | ac_cv_prog_CPP="$CPP"
|
---|
2667 | fi
|
---|
2668 | CPP="$ac_cv_prog_CPP"
|
---|
2669 | else
|
---|
2670 | ac_cv_prog_CPP="$CPP"
|
---|
2671 | fi
|
---|
2672 | echo "$ac_t""$CPP" 1>&6
|
---|
2673 |
|
---|
2674 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2675 | set dummy ranlib; ac_word=$2
|
---|
2676 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2677 | echo "configure:2678: checking for $ac_word" >&5
|
---|
2678 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2679 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2680 | else
|
---|
2681 | if test -n "$RANLIB"; then
|
---|
2682 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2683 | else
|
---|
2684 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2685 | ac_dummy="$PATH"
|
---|
2686 | for ac_dir in $ac_dummy; do
|
---|
2687 | test -z "$ac_dir" && ac_dir=.
|
---|
2688 | if test -f $ac_dir/$ac_word -o \
|
---|
2689 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2690 | ac_cv_prog_RANLIB="ranlib"
|
---|
2691 | break
|
---|
2692 | fi
|
---|
2693 | done
|
---|
2694 | IFS="$ac_save_ifs"
|
---|
2695 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2696 | fi
|
---|
2697 | fi
|
---|
2698 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2699 | if test -n "$RANLIB"; then
|
---|
2700 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2701 | else
|
---|
2702 | echo "$ac_t""no" 1>&6
|
---|
2703 | fi
|
---|
2704 |
|
---|
2705 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2706 | echo "configure:2707: checking for ANSI C header files" >&5
|
---|
2707 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2708 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2709 | else
|
---|
2710 | cat > conftest.$ac_ext <<EOF
|
---|
2711 | #include <sys/types.h>
|
---|
2712 | #line 2713 "configure"
|
---|
2713 | #include "confdefs.h"
|
---|
2714 | #include <stdlib.h>
|
---|
2715 | #include <stdarg.h>
|
---|
2716 | #include <string.h>
|
---|
2717 | #include <float.h>
|
---|
2718 | EOF
|
---|
2719 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2720 | { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2721 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2722 | if test -z "$ac_err"; then
|
---|
2723 | rm -rf conftest*
|
---|
2724 | ac_cv_header_stdc=yes
|
---|
2725 | else
|
---|
2726 | echo "$ac_err" >&5
|
---|
2727 | echo "configure: failed program was:" >&5
|
---|
2728 | cat conftest.$ac_ext >&5
|
---|
2729 | rm -rf conftest*
|
---|
2730 | ac_cv_header_stdc=no
|
---|
2731 | fi
|
---|
2732 | rm -f conftest*
|
---|
2733 |
|
---|
2734 | if test $ac_cv_header_stdc = yes; then
|
---|
2735 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2736 | cat > conftest.$ac_ext <<EOF
|
---|
2737 | #line 2738 "configure"
|
---|
2738 | #include "confdefs.h"
|
---|
2739 | #include <string.h>
|
---|
2740 | EOF
|
---|
2741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2742 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2743 | :
|
---|
2744 | else
|
---|
2745 | rm -rf conftest*
|
---|
2746 | ac_cv_header_stdc=no
|
---|
2747 | fi
|
---|
2748 | rm -f conftest*
|
---|
2749 |
|
---|
2750 | fi
|
---|
2751 |
|
---|
2752 | if test $ac_cv_header_stdc = yes; then
|
---|
2753 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2754 | cat > conftest.$ac_ext <<EOF
|
---|
2755 | #line 2756 "configure"
|
---|
2756 | #include "confdefs.h"
|
---|
2757 | #include <stdlib.h>
|
---|
2758 | EOF
|
---|
2759 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2760 | egrep "free" >/dev/null 2>&1; then
|
---|
2761 | :
|
---|
2762 | else
|
---|
2763 | rm -rf conftest*
|
---|
2764 | ac_cv_header_stdc=no
|
---|
2765 | fi
|
---|
2766 | rm -f conftest*
|
---|
2767 |
|
---|
2768 | fi
|
---|
2769 |
|
---|
2770 | if test $ac_cv_header_stdc = yes; then
|
---|
2771 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2772 | if test "$cross_compiling" = yes; then
|
---|
2773 | :
|
---|
2774 | else
|
---|
2775 | cat > conftest.$ac_ext <<EOF
|
---|
2776 | #line 2777 "configure"
|
---|
2777 | #include "confdefs.h"
|
---|
2778 | #include <ctype.h>
|
---|
2779 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2780 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2781 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2782 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2783 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2784 | exit (0); }
|
---|
2785 |
|
---|
2786 | EOF
|
---|
2787 | if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2788 | then
|
---|
2789 | :
|
---|
2790 | else
|
---|
2791 | echo "configure: failed program was:" >&5
|
---|
2792 | cat conftest.$ac_ext >&5
|
---|
2793 | rm -fr conftest*
|
---|
2794 | ac_cv_header_stdc=no
|
---|
2795 | fi
|
---|
2796 | rm -fr conftest*
|
---|
2797 | fi
|
---|
2798 |
|
---|
2799 | fi
|
---|
2800 | fi
|
---|
2801 |
|
---|
2802 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2803 | if test $ac_cv_header_stdc = yes; then
|
---|
2804 | cat >> confdefs.h <<\EOF
|
---|
2805 | #define STDC_HEADERS 1
|
---|
2806 | EOF
|
---|
2807 |
|
---|
2808 | fi
|
---|
2809 |
|
---|
2810 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
2811 | echo "configure:2812: checking for working const" >&5
|
---|
2812 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
2813 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2814 | else
|
---|
2815 | cat > conftest.$ac_ext <<EOF
|
---|
2816 | #line 2817 "configure"
|
---|
2817 | #include "confdefs.h"
|
---|
2818 |
|
---|
2819 | int main() {
|
---|
2820 |
|
---|
2821 | /* Ultrix mips cc rejects this. */
|
---|
2822 | typedef int charset[2]; const charset x;
|
---|
2823 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2824 | char const *const *ccp;
|
---|
2825 | char **p;
|
---|
2826 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2827 | struct point {int x, y;};
|
---|
2828 | static struct point const zero = {0,0};
|
---|
2829 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
2830 | It does not let you subtract one const X* pointer from another in an arm
|
---|
2831 | of an if-expression whose if-part is not a constant expression */
|
---|
2832 | const char *g = "string";
|
---|
2833 | ccp = &g + (g ? g-g : 0);
|
---|
2834 | /* HPUX 7.0 cc rejects these. */
|
---|
2835 | ++ccp;
|
---|
2836 | p = (char**) ccp;
|
---|
2837 | ccp = (char const *const *) p;
|
---|
2838 | { /* SCO 3.2v4 cc rejects this. */
|
---|
2839 | char *t;
|
---|
2840 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
2841 |
|
---|
2842 | *t++ = 0;
|
---|
2843 | }
|
---|
2844 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
2845 | int x[] = {25, 17};
|
---|
2846 | const int *foo = &x[0];
|
---|
2847 | ++foo;
|
---|
2848 | }
|
---|
2849 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
2850 | typedef const int *iptr;
|
---|
2851 | iptr p = 0;
|
---|
2852 | ++p;
|
---|
2853 | }
|
---|
2854 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
2855 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
2856 | struct s { int j; const int *ap[3]; };
|
---|
2857 | struct s *b; b->j = 5;
|
---|
2858 | }
|
---|
2859 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
2860 | const int foo = 10;
|
---|
2861 | }
|
---|
2862 |
|
---|
2863 | ; return 0; }
|
---|
2864 | EOF
|
---|
2865 | if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2866 | rm -rf conftest*
|
---|
2867 | ac_cv_c_const=yes
|
---|
2868 | else
|
---|
2869 | echo "configure: failed program was:" >&5
|
---|
2870 | cat conftest.$ac_ext >&5
|
---|
2871 | rm -rf conftest*
|
---|
2872 | ac_cv_c_const=no
|
---|
2873 | fi
|
---|
2874 | rm -f conftest*
|
---|
2875 | fi
|
---|
2876 |
|
---|
2877 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
2878 | if test $ac_cv_c_const = no; then
|
---|
2879 | cat >> confdefs.h <<\EOF
|
---|
2880 | #define const
|
---|
2881 | EOF
|
---|
2882 |
|
---|
2883 | fi
|
---|
2884 |
|
---|
2885 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
2886 | echo "configure:2887: checking for inline" >&5
|
---|
2887 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
2888 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2889 | else
|
---|
2890 | ac_cv_c_inline=no
|
---|
2891 | for ac_kw in inline __inline__ __inline; do
|
---|
2892 | cat > conftest.$ac_ext <<EOF
|
---|
2893 | #line 2894 "configure"
|
---|
2894 | #include "confdefs.h"
|
---|
2895 |
|
---|
2896 | int main() {
|
---|
2897 | } $ac_kw foo() {
|
---|
2898 | ; return 0; }
|
---|
2899 | EOF
|
---|
2900 | if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2901 | rm -rf conftest*
|
---|
2902 | ac_cv_c_inline=$ac_kw; break
|
---|
2903 | else
|
---|
2904 | echo "configure: failed program was:" >&5
|
---|
2905 | cat conftest.$ac_ext >&5
|
---|
2906 | fi
|
---|
2907 | rm -f conftest*
|
---|
2908 | done
|
---|
2909 |
|
---|
2910 | fi
|
---|
2911 |
|
---|
2912 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
2913 | case "$ac_cv_c_inline" in
|
---|
2914 | inline | yes) ;;
|
---|
2915 | no) cat >> confdefs.h <<\EOF
|
---|
2916 | #define inline
|
---|
2917 | EOF
|
---|
2918 | ;;
|
---|
2919 | *) cat >> confdefs.h <<EOF
|
---|
2920 | #define inline $ac_cv_c_inline
|
---|
2921 | EOF
|
---|
2922 | ;;
|
---|
2923 | esac
|
---|
2924 |
|
---|
2925 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
2926 | echo "configure:2927: checking for off_t" >&5
|
---|
2927 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
2928 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2929 | else
|
---|
2930 | cat > conftest.$ac_ext <<EOF
|
---|
2931 | #line 2932 "configure"
|
---|
2932 | #include "confdefs.h"
|
---|
2933 | #include <sys/types.h>
|
---|
2934 | #if STDC_HEADERS
|
---|
2935 | #include <stdlib.h>
|
---|
2936 | #include <stddef.h>
|
---|
2937 | #endif
|
---|
2938 | EOF
|
---|
2939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2940 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
2941 | rm -rf conftest*
|
---|
2942 | ac_cv_type_off_t=yes
|
---|
2943 | else
|
---|
2944 | rm -rf conftest*
|
---|
2945 | ac_cv_type_off_t=no
|
---|
2946 | fi
|
---|
2947 | rm -f conftest*
|
---|
2948 |
|
---|
2949 | fi
|
---|
2950 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
2951 | if test $ac_cv_type_off_t = no; then
|
---|
2952 | cat >> confdefs.h <<\EOF
|
---|
2953 | #define off_t long
|
---|
2954 | EOF
|
---|
2955 |
|
---|
2956 | fi
|
---|
2957 |
|
---|
2958 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
2959 | echo "configure:2960: checking for size_t" >&5
|
---|
2960 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
2961 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2962 | else
|
---|
2963 | cat > conftest.$ac_ext <<EOF
|
---|
2964 | #line 2965 "configure"
|
---|
2965 | #include "confdefs.h"
|
---|
2966 | #include <sys/types.h>
|
---|
2967 | #if STDC_HEADERS
|
---|
2968 | #include <stdlib.h>
|
---|
2969 | #include <stddef.h>
|
---|
2970 | #endif
|
---|
2971 | EOF
|
---|
2972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2973 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
2974 | rm -rf conftest*
|
---|
2975 | ac_cv_type_size_t=yes
|
---|
2976 | else
|
---|
2977 | rm -rf conftest*
|
---|
2978 | ac_cv_type_size_t=no
|
---|
2979 | fi
|
---|
2980 | rm -f conftest*
|
---|
2981 |
|
---|
2982 | fi
|
---|
2983 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
2984 | if test $ac_cv_type_size_t = no; then
|
---|
2985 | cat >> confdefs.h <<\EOF
|
---|
2986 | #define size_t unsigned
|
---|
2987 | EOF
|
---|
2988 |
|
---|
2989 | fi
|
---|
2990 |
|
---|
2991 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
2992 | # for constant arguments. Useless!
|
---|
2993 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
2994 | echo "configure:2995: checking for working alloca.h" >&5
|
---|
2995 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
2996 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2997 | else
|
---|
2998 | cat > conftest.$ac_ext <<EOF
|
---|
2999 | #line 3000 "configure"
|
---|
3000 | #include "confdefs.h"
|
---|
3001 | #include <alloca.h>
|
---|
3002 | int main() {
|
---|
3003 | char *p = alloca(2 * sizeof(int));
|
---|
3004 | ; return 0; }
|
---|
3005 | EOF
|
---|
3006 | if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3007 | rm -rf conftest*
|
---|
3008 | ac_cv_header_alloca_h=yes
|
---|
3009 | else
|
---|
3010 | echo "configure: failed program was:" >&5
|
---|
3011 | cat conftest.$ac_ext >&5
|
---|
3012 | rm -rf conftest*
|
---|
3013 | ac_cv_header_alloca_h=no
|
---|
3014 | fi
|
---|
3015 | rm -f conftest*
|
---|
3016 | fi
|
---|
3017 |
|
---|
3018 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
3019 | if test $ac_cv_header_alloca_h = yes; then
|
---|
3020 | cat >> confdefs.h <<\EOF
|
---|
3021 | #define HAVE_ALLOCA_H 1
|
---|
3022 | EOF
|
---|
3023 |
|
---|
3024 | fi
|
---|
3025 |
|
---|
3026 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
3027 | echo "configure:3028: checking for alloca" >&5
|
---|
3028 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
3029 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3030 | else
|
---|
3031 | cat > conftest.$ac_ext <<EOF
|
---|
3032 | #line 3033 "configure"
|
---|
3033 | #include "confdefs.h"
|
---|
3034 |
|
---|
3035 | #ifdef __GNUC__
|
---|
3036 | # define alloca __builtin_alloca
|
---|
3037 | #else
|
---|
3038 | # ifdef _MSC_VER
|
---|
3039 | # include <malloc.h>
|
---|
3040 | # define alloca _alloca
|
---|
3041 | # else
|
---|
3042 | # if HAVE_ALLOCA_H
|
---|
3043 | # include <alloca.h>
|
---|
3044 | # else
|
---|
3045 | # ifdef _AIX
|
---|
3046 | #pragma alloca
|
---|
3047 | # else
|
---|
3048 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
3049 | char *alloca ();
|
---|
3050 | # endif
|
---|
3051 | # endif
|
---|
3052 | # endif
|
---|
3053 | # endif
|
---|
3054 | #endif
|
---|
3055 |
|
---|
3056 | int main() {
|
---|
3057 | char *p = (char *) alloca(1);
|
---|
3058 | ; return 0; }
|
---|
3059 | EOF
|
---|
3060 | if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3061 | rm -rf conftest*
|
---|
3062 | ac_cv_func_alloca_works=yes
|
---|
3063 | else
|
---|
3064 | echo "configure: failed program was:" >&5
|
---|
3065 | cat conftest.$ac_ext >&5
|
---|
3066 | rm -rf conftest*
|
---|
3067 | ac_cv_func_alloca_works=no
|
---|
3068 | fi
|
---|
3069 | rm -f conftest*
|
---|
3070 | fi
|
---|
3071 |
|
---|
3072 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
3073 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3074 | cat >> confdefs.h <<\EOF
|
---|
3075 | #define HAVE_ALLOCA 1
|
---|
3076 | EOF
|
---|
3077 |
|
---|
3078 | fi
|
---|
3079 |
|
---|
3080 | if test $ac_cv_func_alloca_works = no; then
|
---|
3081 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3082 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3083 | # contain a buggy version. If you still want to use their alloca,
|
---|
3084 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3085 | ALLOCA=alloca.${ac_objext}
|
---|
3086 | cat >> confdefs.h <<\EOF
|
---|
3087 | #define C_ALLOCA 1
|
---|
3088 | EOF
|
---|
3089 |
|
---|
3090 |
|
---|
3091 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
3092 | echo "configure:3093: checking whether alloca needs Cray hooks" >&5
|
---|
3093 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
3094 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3095 | else
|
---|
3096 | cat > conftest.$ac_ext <<EOF
|
---|
3097 | #line 3098 "configure"
|
---|
3098 | #include "confdefs.h"
|
---|
3099 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3100 | webecray
|
---|
3101 | #else
|
---|
3102 | wenotbecray
|
---|
3103 | #endif
|
---|
3104 |
|
---|
3105 | EOF
|
---|
3106 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3107 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3108 | rm -rf conftest*
|
---|
3109 | ac_cv_os_cray=yes
|
---|
3110 | else
|
---|
3111 | rm -rf conftest*
|
---|
3112 | ac_cv_os_cray=no
|
---|
3113 | fi
|
---|
3114 | rm -f conftest*
|
---|
3115 |
|
---|
3116 | fi
|
---|
3117 |
|
---|
3118 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
3119 | if test $ac_cv_os_cray = yes; then
|
---|
3120 | for ac_func in _getb67 GETB67 getb67; do
|
---|
3121 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3122 | echo "configure:3123: checking for $ac_func" >&5
|
---|
3123 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3124 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3125 | else
|
---|
3126 | cat > conftest.$ac_ext <<EOF
|
---|
3127 | #line 3128 "configure"
|
---|
3128 | #include "confdefs.h"
|
---|
3129 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3130 | which can conflict with char $ac_func(); below. */
|
---|
3131 | #include <assert.h>
|
---|
3132 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3133 | /* We use char because int might match the return type of a gcc2
|
---|
3134 | builtin and then its argument prototype would still apply. */
|
---|
3135 | char $ac_func();
|
---|
3136 |
|
---|
3137 | int main() {
|
---|
3138 |
|
---|
3139 | /* The GNU C library defines this for functions which it implements
|
---|
3140 | to always fail with ENOSYS. Some functions are actually named
|
---|
3141 | something starting with __ and the normal name is an alias. */
|
---|
3142 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3143 | choke me
|
---|
3144 | #else
|
---|
3145 | $ac_func();
|
---|
3146 | #endif
|
---|
3147 |
|
---|
3148 | ; return 0; }
|
---|
3149 | EOF
|
---|
3150 | if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3151 | rm -rf conftest*
|
---|
3152 | eval "ac_cv_func_$ac_func=yes"
|
---|
3153 | else
|
---|
3154 | echo "configure: failed program was:" >&5
|
---|
3155 | cat conftest.$ac_ext >&5
|
---|
3156 | rm -rf conftest*
|
---|
3157 | eval "ac_cv_func_$ac_func=no"
|
---|
3158 | fi
|
---|
3159 | rm -f conftest*
|
---|
3160 | fi
|
---|
3161 |
|
---|
3162 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3163 | echo "$ac_t""yes" 1>&6
|
---|
3164 | cat >> confdefs.h <<EOF
|
---|
3165 | #define CRAY_STACKSEG_END $ac_func
|
---|
3166 | EOF
|
---|
3167 |
|
---|
3168 | break
|
---|
3169 | else
|
---|
3170 | echo "$ac_t""no" 1>&6
|
---|
3171 | fi
|
---|
3172 |
|
---|
3173 | done
|
---|
3174 | fi
|
---|
3175 |
|
---|
3176 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
3177 | echo "configure:3178: checking stack direction for C alloca" >&5
|
---|
3178 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
3179 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3180 | else
|
---|
3181 | if test "$cross_compiling" = yes; then
|
---|
3182 | ac_cv_c_stack_direction=0
|
---|
3183 | else
|
---|
3184 | cat > conftest.$ac_ext <<EOF
|
---|
3185 | #line 3186 "configure"
|
---|
3186 | #include "confdefs.h"
|
---|
3187 | find_stack_direction ()
|
---|
3188 | {
|
---|
3189 | static char *addr = 0;
|
---|
3190 | auto char dummy;
|
---|
3191 | if (addr == 0)
|
---|
3192 | {
|
---|
3193 | addr = &dummy;
|
---|
3194 | return find_stack_direction ();
|
---|
3195 | }
|
---|
3196 | else
|
---|
3197 | return (&dummy > addr) ? 1 : -1;
|
---|
3198 | }
|
---|
3199 | main ()
|
---|
3200 | {
|
---|
3201 | exit (find_stack_direction() < 0);
|
---|
3202 | }
|
---|
3203 | EOF
|
---|
3204 | if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3205 | then
|
---|
3206 | ac_cv_c_stack_direction=1
|
---|
3207 | else
|
---|
3208 | echo "configure: failed program was:" >&5
|
---|
3209 | cat conftest.$ac_ext >&5
|
---|
3210 | rm -fr conftest*
|
---|
3211 | ac_cv_c_stack_direction=-1
|
---|
3212 | fi
|
---|
3213 | rm -fr conftest*
|
---|
3214 | fi
|
---|
3215 |
|
---|
3216 | fi
|
---|
3217 |
|
---|
3218 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
3219 | cat >> confdefs.h <<EOF
|
---|
3220 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
3221 | EOF
|
---|
3222 |
|
---|
3223 | fi
|
---|
3224 |
|
---|
3225 | for ac_hdr in unistd.h
|
---|
3226 | do
|
---|
3227 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3228 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3229 | echo "configure:3230: checking for $ac_hdr" >&5
|
---|
3230 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3231 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3232 | else
|
---|
3233 | cat > conftest.$ac_ext <<EOF
|
---|
3234 | #include <sys/types.h>
|
---|
3235 | #line 3236 "configure"
|
---|
3236 | #include "confdefs.h"
|
---|
3237 | #include <$ac_hdr>
|
---|
3238 | EOF
|
---|
3239 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3240 | { (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3241 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3242 | if test -z "$ac_err"; then
|
---|
3243 | rm -rf conftest*
|
---|
3244 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3245 | else
|
---|
3246 | echo "$ac_err" >&5
|
---|
3247 | echo "configure: failed program was:" >&5
|
---|
3248 | cat conftest.$ac_ext >&5
|
---|
3249 | rm -rf conftest*
|
---|
3250 | eval "ac_cv_header_$ac_safe=no"
|
---|
3251 | fi
|
---|
3252 | rm -f conftest*
|
---|
3253 | fi
|
---|
3254 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3255 | echo "$ac_t""yes" 1>&6
|
---|
3256 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3257 | cat >> confdefs.h <<EOF
|
---|
3258 | #define $ac_tr_hdr 1
|
---|
3259 | EOF
|
---|
3260 |
|
---|
3261 | else
|
---|
3262 | echo "$ac_t""no" 1>&6
|
---|
3263 | fi
|
---|
3264 | done
|
---|
3265 |
|
---|
3266 | for ac_func in getpagesize
|
---|
3267 | do
|
---|
3268 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3269 | echo "configure:3270: checking for $ac_func" >&5
|
---|
3270 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3271 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3272 | else
|
---|
3273 | cat > conftest.$ac_ext <<EOF
|
---|
3274 | #line 3275 "configure"
|
---|
3275 | #include "confdefs.h"
|
---|
3276 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3277 | which can conflict with char $ac_func(); below. */
|
---|
3278 | #include <assert.h>
|
---|
3279 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3280 | /* We use char because int might match the return type of a gcc2
|
---|
3281 | builtin and then its argument prototype would still apply. */
|
---|
3282 | char $ac_func();
|
---|
3283 |
|
---|
3284 | int main() {
|
---|
3285 |
|
---|
3286 | /* The GNU C library defines this for functions which it implements
|
---|
3287 | to always fail with ENOSYS. Some functions are actually named
|
---|
3288 | something starting with __ and the normal name is an alias. */
|
---|
3289 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3290 | choke me
|
---|
3291 | #else
|
---|
3292 | $ac_func();
|
---|
3293 | #endif
|
---|
3294 |
|
---|
3295 | ; return 0; }
|
---|
3296 | EOF
|
---|
3297 | if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3298 | rm -rf conftest*
|
---|
3299 | eval "ac_cv_func_$ac_func=yes"
|
---|
3300 | else
|
---|
3301 | echo "configure: failed program was:" >&5
|
---|
3302 | cat conftest.$ac_ext >&5
|
---|
3303 | rm -rf conftest*
|
---|
3304 | eval "ac_cv_func_$ac_func=no"
|
---|
3305 | fi
|
---|
3306 | rm -f conftest*
|
---|
3307 | fi
|
---|
3308 |
|
---|
3309 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3310 | echo "$ac_t""yes" 1>&6
|
---|
3311 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3312 | cat >> confdefs.h <<EOF
|
---|
3313 | #define $ac_tr_func 1
|
---|
3314 | EOF
|
---|
3315 |
|
---|
3316 | else
|
---|
3317 | echo "$ac_t""no" 1>&6
|
---|
3318 | fi
|
---|
3319 | done
|
---|
3320 |
|
---|
3321 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
3322 | echo "configure:3323: checking for working mmap" >&5
|
---|
3323 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
3324 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3325 | else
|
---|
3326 | if test "$cross_compiling" = yes; then
|
---|
3327 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3328 | else
|
---|
3329 | cat > conftest.$ac_ext <<EOF
|
---|
3330 | #line 3331 "configure"
|
---|
3331 | #include "confdefs.h"
|
---|
3332 |
|
---|
3333 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
3334 | Here is a matrix of mmap possibilities:
|
---|
3335 | mmap private not fixed
|
---|
3336 | mmap private fixed at somewhere currently unmapped
|
---|
3337 | mmap private fixed at somewhere already mapped
|
---|
3338 | mmap shared not fixed
|
---|
3339 | mmap shared fixed at somewhere currently unmapped
|
---|
3340 | mmap shared fixed at somewhere already mapped
|
---|
3341 | For private mappings, we should verify that changes cannot be read()
|
---|
3342 | back from the file, nor mmap's back from the file at a different
|
---|
3343 | address. (There have been systems where private was not correctly
|
---|
3344 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
3345 | VM page cache was not coherent with the filesystem buffer cache
|
---|
3346 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
3347 | For shared mappings, we should conversely verify that changes get
|
---|
3348 | propogated back to all the places they're supposed to be.
|
---|
3349 |
|
---|
3350 | Grep wants private fixed already mapped.
|
---|
3351 | The main things grep needs to know about mmap are:
|
---|
3352 | * does it exist and is it safe to write into the mmap'd area
|
---|
3353 | * how to use it (BSD variants) */
|
---|
3354 | #include <sys/types.h>
|
---|
3355 | #include <fcntl.h>
|
---|
3356 | #include <sys/mman.h>
|
---|
3357 |
|
---|
3358 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
3359 | #ifndef HAVE_GETPAGESIZE
|
---|
3360 | # ifdef HAVE_UNISTD_H
|
---|
3361 | # include <unistd.h>
|
---|
3362 | # endif
|
---|
3363 |
|
---|
3364 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
3365 | # ifndef HAVE_SYS_PARAM_H
|
---|
3366 | # define HAVE_SYS_PARAM_H 1
|
---|
3367 | # endif
|
---|
3368 |
|
---|
3369 | # ifdef _SC_PAGESIZE
|
---|
3370 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
3371 | # else /* no _SC_PAGESIZE */
|
---|
3372 | # ifdef HAVE_SYS_PARAM_H
|
---|
3373 | # include <sys/param.h>
|
---|
3374 | # ifdef EXEC_PAGESIZE
|
---|
3375 | # define getpagesize() EXEC_PAGESIZE
|
---|
3376 | # else /* no EXEC_PAGESIZE */
|
---|
3377 | # ifdef NBPG
|
---|
3378 | # define getpagesize() NBPG * CLSIZE
|
---|
3379 | # ifndef CLSIZE
|
---|
3380 | # define CLSIZE 1
|
---|
3381 | # endif /* no CLSIZE */
|
---|
3382 | # else /* no NBPG */
|
---|
3383 | # ifdef NBPC
|
---|
3384 | # define getpagesize() NBPC
|
---|
3385 | # else /* no NBPC */
|
---|
3386 | # ifdef PAGESIZE
|
---|
3387 | # define getpagesize() PAGESIZE
|
---|
3388 | # endif /* PAGESIZE */
|
---|
3389 | # endif /* no NBPC */
|
---|
3390 | # endif /* no NBPG */
|
---|
3391 | # endif /* no EXEC_PAGESIZE */
|
---|
3392 | # else /* no HAVE_SYS_PARAM_H */
|
---|
3393 | # define getpagesize() 8192 /* punt totally */
|
---|
3394 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
3395 | # endif /* no _SC_PAGESIZE */
|
---|
3396 |
|
---|
3397 | #endif /* no HAVE_GETPAGESIZE */
|
---|
3398 |
|
---|
3399 | #ifdef __cplusplus
|
---|
3400 | extern "C" { void *malloc(unsigned); }
|
---|
3401 | #else
|
---|
3402 | char *malloc();
|
---|
3403 | #endif
|
---|
3404 |
|
---|
3405 | int
|
---|
3406 | main()
|
---|
3407 | {
|
---|
3408 | char *data, *data2, *data3;
|
---|
3409 | int i, pagesize;
|
---|
3410 | int fd;
|
---|
3411 |
|
---|
3412 | pagesize = getpagesize();
|
---|
3413 |
|
---|
3414 | /*
|
---|
3415 | * First, make a file with some known garbage in it.
|
---|
3416 | */
|
---|
3417 | data = malloc(pagesize);
|
---|
3418 | if (!data)
|
---|
3419 | exit(1);
|
---|
3420 | for (i = 0; i < pagesize; ++i)
|
---|
3421 | *(data + i) = rand();
|
---|
3422 | umask(0);
|
---|
3423 | fd = creat("conftestmmap", 0600);
|
---|
3424 | if (fd < 0)
|
---|
3425 | exit(1);
|
---|
3426 | if (write(fd, data, pagesize) != pagesize)
|
---|
3427 | exit(1);
|
---|
3428 | close(fd);
|
---|
3429 |
|
---|
3430 | /*
|
---|
3431 | * Next, try to mmap the file at a fixed address which
|
---|
3432 | * already has something else allocated at it. If we can,
|
---|
3433 | * also make sure that we see the same garbage.
|
---|
3434 | */
|
---|
3435 | fd = open("conftestmmap", O_RDWR);
|
---|
3436 | if (fd < 0)
|
---|
3437 | exit(1);
|
---|
3438 | data2 = malloc(2 * pagesize);
|
---|
3439 | if (!data2)
|
---|
3440 | exit(1);
|
---|
3441 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
3442 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
3443 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
3444 | exit(1);
|
---|
3445 | for (i = 0; i < pagesize; ++i)
|
---|
3446 | if (*(data + i) != *(data2 + i))
|
---|
3447 | exit(1);
|
---|
3448 |
|
---|
3449 | /*
|
---|
3450 | * Finally, make sure that changes to the mapped area
|
---|
3451 | * do not percolate back to the file as seen by read().
|
---|
3452 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
3453 | */
|
---|
3454 | for (i = 0; i < pagesize; ++i)
|
---|
3455 | *(data2 + i) = *(data2 + i) + 1;
|
---|
3456 | data3 = malloc(pagesize);
|
---|
3457 | if (!data3)
|
---|
3458 | exit(1);
|
---|
3459 | if (read(fd, data3, pagesize) != pagesize)
|
---|
3460 | exit(1);
|
---|
3461 | for (i = 0; i < pagesize; ++i)
|
---|
3462 | if (*(data + i) != *(data3 + i))
|
---|
3463 | exit(1);
|
---|
3464 | close(fd);
|
---|
3465 | unlink("conftestmmap");
|
---|
3466 | exit(0);
|
---|
3467 | }
|
---|
3468 |
|
---|
3469 | EOF
|
---|
3470 | if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3471 | then
|
---|
3472 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
3473 | else
|
---|
3474 | echo "configure: failed program was:" >&5
|
---|
3475 | cat conftest.$ac_ext >&5
|
---|
3476 | rm -fr conftest*
|
---|
3477 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3478 | fi
|
---|
3479 | rm -fr conftest*
|
---|
3480 | fi
|
---|
3481 |
|
---|
3482 | fi
|
---|
3483 |
|
---|
3484 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
3485 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
3486 | cat >> confdefs.h <<\EOF
|
---|
3487 | #define HAVE_MMAP 1
|
---|
3488 | EOF
|
---|
3489 |
|
---|
3490 | fi
|
---|
3491 |
|
---|
3492 |
|
---|
3493 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
3494 | unistd.h values.h sys/param.h
|
---|
3495 | do
|
---|
3496 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3497 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3498 | echo "configure:3499: checking for $ac_hdr" >&5
|
---|
3499 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3500 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3501 | else
|
---|
3502 | cat > conftest.$ac_ext <<EOF
|
---|
3503 | #include <sys/types.h>
|
---|
3504 | #line 3505 "configure"
|
---|
3505 | #include "confdefs.h"
|
---|
3506 | #include <$ac_hdr>
|
---|
3507 | EOF
|
---|
3508 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3509 | { (eval echo configure:3510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3510 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3511 | if test -z "$ac_err"; then
|
---|
3512 | rm -rf conftest*
|
---|
3513 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3514 | else
|
---|
3515 | echo "$ac_err" >&5
|
---|
3516 | echo "configure: failed program was:" >&5
|
---|
3517 | cat conftest.$ac_ext >&5
|
---|
3518 | rm -rf conftest*
|
---|
3519 | eval "ac_cv_header_$ac_safe=no"
|
---|
3520 | fi
|
---|
3521 | rm -f conftest*
|
---|
3522 | fi
|
---|
3523 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3524 | echo "$ac_t""yes" 1>&6
|
---|
3525 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3526 | cat >> confdefs.h <<EOF
|
---|
3527 | #define $ac_tr_hdr 1
|
---|
3528 | EOF
|
---|
3529 |
|
---|
3530 | else
|
---|
3531 | echo "$ac_t""no" 1>&6
|
---|
3532 | fi
|
---|
3533 | done
|
---|
3534 |
|
---|
3535 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
3536 | __argz_count __argz_stringify __argz_next
|
---|
3537 | do
|
---|
3538 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3539 | echo "configure:3540: checking for $ac_func" >&5
|
---|
3540 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3541 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3542 | else
|
---|
3543 | cat > conftest.$ac_ext <<EOF
|
---|
3544 | #line 3545 "configure"
|
---|
3545 | #include "confdefs.h"
|
---|
3546 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3547 | which can conflict with char $ac_func(); below. */
|
---|
3548 | #include <assert.h>
|
---|
3549 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3550 | /* We use char because int might match the return type of a gcc2
|
---|
3551 | builtin and then its argument prototype would still apply. */
|
---|
3552 | char $ac_func();
|
---|
3553 |
|
---|
3554 | int main() {
|
---|
3555 |
|
---|
3556 | /* The GNU C library defines this for functions which it implements
|
---|
3557 | to always fail with ENOSYS. Some functions are actually named
|
---|
3558 | something starting with __ and the normal name is an alias. */
|
---|
3559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3560 | choke me
|
---|
3561 | #else
|
---|
3562 | $ac_func();
|
---|
3563 | #endif
|
---|
3564 |
|
---|
3565 | ; return 0; }
|
---|
3566 | EOF
|
---|
3567 | if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3568 | rm -rf conftest*
|
---|
3569 | eval "ac_cv_func_$ac_func=yes"
|
---|
3570 | else
|
---|
3571 | echo "configure: failed program was:" >&5
|
---|
3572 | cat conftest.$ac_ext >&5
|
---|
3573 | rm -rf conftest*
|
---|
3574 | eval "ac_cv_func_$ac_func=no"
|
---|
3575 | fi
|
---|
3576 | rm -f conftest*
|
---|
3577 | fi
|
---|
3578 |
|
---|
3579 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3580 | echo "$ac_t""yes" 1>&6
|
---|
3581 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3582 | cat >> confdefs.h <<EOF
|
---|
3583 | #define $ac_tr_func 1
|
---|
3584 | EOF
|
---|
3585 |
|
---|
3586 | else
|
---|
3587 | echo "$ac_t""no" 1>&6
|
---|
3588 | fi
|
---|
3589 | done
|
---|
3590 |
|
---|
3591 |
|
---|
3592 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
3593 | for ac_func in stpcpy
|
---|
3594 | do
|
---|
3595 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3596 | echo "configure:3597: checking for $ac_func" >&5
|
---|
3597 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3598 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3599 | else
|
---|
3600 | cat > conftest.$ac_ext <<EOF
|
---|
3601 | #line 3602 "configure"
|
---|
3602 | #include "confdefs.h"
|
---|
3603 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3604 | which can conflict with char $ac_func(); below. */
|
---|
3605 | #include <assert.h>
|
---|
3606 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3607 | /* We use char because int might match the return type of a gcc2
|
---|
3608 | builtin and then its argument prototype would still apply. */
|
---|
3609 | char $ac_func();
|
---|
3610 |
|
---|
3611 | int main() {
|
---|
3612 |
|
---|
3613 | /* The GNU C library defines this for functions which it implements
|
---|
3614 | to always fail with ENOSYS. Some functions are actually named
|
---|
3615 | something starting with __ and the normal name is an alias. */
|
---|
3616 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3617 | choke me
|
---|
3618 | #else
|
---|
3619 | $ac_func();
|
---|
3620 | #endif
|
---|
3621 |
|
---|
3622 | ; return 0; }
|
---|
3623 | EOF
|
---|
3624 | if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3625 | rm -rf conftest*
|
---|
3626 | eval "ac_cv_func_$ac_func=yes"
|
---|
3627 | else
|
---|
3628 | echo "configure: failed program was:" >&5
|
---|
3629 | cat conftest.$ac_ext >&5
|
---|
3630 | rm -rf conftest*
|
---|
3631 | eval "ac_cv_func_$ac_func=no"
|
---|
3632 | fi
|
---|
3633 | rm -f conftest*
|
---|
3634 | fi
|
---|
3635 |
|
---|
3636 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3637 | echo "$ac_t""yes" 1>&6
|
---|
3638 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3639 | cat >> confdefs.h <<EOF
|
---|
3640 | #define $ac_tr_func 1
|
---|
3641 | EOF
|
---|
3642 |
|
---|
3643 | else
|
---|
3644 | echo "$ac_t""no" 1>&6
|
---|
3645 | fi
|
---|
3646 | done
|
---|
3647 |
|
---|
3648 | fi
|
---|
3649 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
3650 | cat >> confdefs.h <<\EOF
|
---|
3651 | #define HAVE_STPCPY 1
|
---|
3652 | EOF
|
---|
3653 |
|
---|
3654 | fi
|
---|
3655 |
|
---|
3656 | if test $ac_cv_header_locale_h = yes; then
|
---|
3657 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
3658 | echo "configure:3659: checking for LC_MESSAGES" >&5
|
---|
3659 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
3660 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3661 | else
|
---|
3662 | cat > conftest.$ac_ext <<EOF
|
---|
3663 | #line 3664 "configure"
|
---|
3664 | #include "confdefs.h"
|
---|
3665 | #include <locale.h>
|
---|
3666 | int main() {
|
---|
3667 | return LC_MESSAGES
|
---|
3668 | ; return 0; }
|
---|
3669 | EOF
|
---|
3670 | if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3671 | rm -rf conftest*
|
---|
3672 | am_cv_val_LC_MESSAGES=yes
|
---|
3673 | else
|
---|
3674 | echo "configure: failed program was:" >&5
|
---|
3675 | cat conftest.$ac_ext >&5
|
---|
3676 | rm -rf conftest*
|
---|
3677 | am_cv_val_LC_MESSAGES=no
|
---|
3678 | fi
|
---|
3679 | rm -f conftest*
|
---|
3680 | fi
|
---|
3681 |
|
---|
3682 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
3683 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
3684 | cat >> confdefs.h <<\EOF
|
---|
3685 | #define HAVE_LC_MESSAGES 1
|
---|
3686 | EOF
|
---|
3687 |
|
---|
3688 | fi
|
---|
3689 | fi
|
---|
3690 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
3691 | echo "configure:3692: checking whether NLS is requested" >&5
|
---|
3692 | # Check whether --enable-nls or --disable-nls was given.
|
---|
3693 | if test "${enable_nls+set}" = set; then
|
---|
3694 | enableval="$enable_nls"
|
---|
3695 | USE_NLS=$enableval
|
---|
3696 | else
|
---|
3697 | USE_NLS=yes
|
---|
3698 | fi
|
---|
3699 |
|
---|
3700 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
3701 |
|
---|
3702 |
|
---|
3703 | USE_INCLUDED_LIBINTL=no
|
---|
3704 |
|
---|
3705 | if test "$USE_NLS" = "yes"; then
|
---|
3706 | cat >> confdefs.h <<\EOF
|
---|
3707 | #define ENABLE_NLS 1
|
---|
3708 | EOF
|
---|
3709 |
|
---|
3710 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
3711 | echo "configure:3712: checking whether included gettext is requested" >&5
|
---|
3712 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
3713 | if test "${with_included_gettext+set}" = set; then
|
---|
3714 | withval="$with_included_gettext"
|
---|
3715 | nls_cv_force_use_gnu_gettext=$withval
|
---|
3716 | else
|
---|
3717 | nls_cv_force_use_gnu_gettext=no
|
---|
3718 | fi
|
---|
3719 |
|
---|
3720 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
3721 |
|
---|
3722 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
3723 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
3724 | nls_cv_header_intl=
|
---|
3725 | nls_cv_header_libgt=
|
---|
3726 | CATOBJEXT=NONE
|
---|
3727 |
|
---|
3728 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
3729 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
3730 | echo "configure:3731: checking for libintl.h" >&5
|
---|
3731 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3732 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3733 | else
|
---|
3734 | cat > conftest.$ac_ext <<EOF
|
---|
3735 | #include <sys/types.h>
|
---|
3736 | #line 3737 "configure"
|
---|
3737 | #include "confdefs.h"
|
---|
3738 | #include <libintl.h>
|
---|
3739 | EOF
|
---|
3740 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3741 | { (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3742 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3743 | if test -z "$ac_err"; then
|
---|
3744 | rm -rf conftest*
|
---|
3745 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3746 | else
|
---|
3747 | echo "$ac_err" >&5
|
---|
3748 | echo "configure: failed program was:" >&5
|
---|
3749 | cat conftest.$ac_ext >&5
|
---|
3750 | rm -rf conftest*
|
---|
3751 | eval "ac_cv_header_$ac_safe=no"
|
---|
3752 | fi
|
---|
3753 | rm -f conftest*
|
---|
3754 | fi
|
---|
3755 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3756 | echo "$ac_t""yes" 1>&6
|
---|
3757 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
3758 | echo "configure:3759: checking for gettext in libc" >&5
|
---|
3759 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
3760 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3761 | else
|
---|
3762 | cat > conftest.$ac_ext <<EOF
|
---|
3763 | #line 3764 "configure"
|
---|
3764 | #include "confdefs.h"
|
---|
3765 | #include <libintl.h>
|
---|
3766 | int main() {
|
---|
3767 | return (int) gettext ("")
|
---|
3768 | ; return 0; }
|
---|
3769 | EOF
|
---|
3770 | if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3771 | rm -rf conftest*
|
---|
3772 | gt_cv_func_gettext_libc=yes
|
---|
3773 | else
|
---|
3774 | echo "configure: failed program was:" >&5
|
---|
3775 | cat conftest.$ac_ext >&5
|
---|
3776 | rm -rf conftest*
|
---|
3777 | gt_cv_func_gettext_libc=no
|
---|
3778 | fi
|
---|
3779 | rm -f conftest*
|
---|
3780 | fi
|
---|
3781 |
|
---|
3782 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
3783 |
|
---|
3784 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
3785 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
3786 | echo "configure:3787: checking for bindtextdomain in -lintl" >&5
|
---|
3787 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
3788 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3789 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3790 | else
|
---|
3791 | ac_save_LIBS="$LIBS"
|
---|
3792 | LIBS="-lintl $LIBS"
|
---|
3793 | cat > conftest.$ac_ext <<EOF
|
---|
3794 | #line 3795 "configure"
|
---|
3795 | #include "confdefs.h"
|
---|
3796 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3797 | /* We use char because int might match the return type of a gcc2
|
---|
3798 | builtin and then its argument prototype would still apply. */
|
---|
3799 | char bindtextdomain();
|
---|
3800 |
|
---|
3801 | int main() {
|
---|
3802 | bindtextdomain()
|
---|
3803 | ; return 0; }
|
---|
3804 | EOF
|
---|
3805 | if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3806 | rm -rf conftest*
|
---|
3807 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3808 | else
|
---|
3809 | echo "configure: failed program was:" >&5
|
---|
3810 | cat conftest.$ac_ext >&5
|
---|
3811 | rm -rf conftest*
|
---|
3812 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3813 | fi
|
---|
3814 | rm -f conftest*
|
---|
3815 | LIBS="$ac_save_LIBS"
|
---|
3816 |
|
---|
3817 | fi
|
---|
3818 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3819 | echo "$ac_t""yes" 1>&6
|
---|
3820 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
3821 | echo "configure:3822: checking for gettext in libintl" >&5
|
---|
3822 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
3823 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3824 | else
|
---|
3825 | cat > conftest.$ac_ext <<EOF
|
---|
3826 | #line 3827 "configure"
|
---|
3827 | #include "confdefs.h"
|
---|
3828 |
|
---|
3829 | int main() {
|
---|
3830 | return (int) gettext ("")
|
---|
3831 | ; return 0; }
|
---|
3832 | EOF
|
---|
3833 | if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3834 | rm -rf conftest*
|
---|
3835 | gt_cv_func_gettext_libintl=yes
|
---|
3836 | else
|
---|
3837 | echo "configure: failed program was:" >&5
|
---|
3838 | cat conftest.$ac_ext >&5
|
---|
3839 | rm -rf conftest*
|
---|
3840 | gt_cv_func_gettext_libintl=no
|
---|
3841 | fi
|
---|
3842 | rm -f conftest*
|
---|
3843 | fi
|
---|
3844 |
|
---|
3845 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
3846 | else
|
---|
3847 | echo "$ac_t""no" 1>&6
|
---|
3848 | fi
|
---|
3849 |
|
---|
3850 | fi
|
---|
3851 |
|
---|
3852 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
3853 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
3854 | cat >> confdefs.h <<\EOF
|
---|
3855 | #define HAVE_GETTEXT 1
|
---|
3856 | EOF
|
---|
3857 |
|
---|
3858 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3859 | set dummy msgfmt; ac_word=$2
|
---|
3860 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3861 | echo "configure:3862: checking for $ac_word" >&5
|
---|
3862 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
3863 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3864 | else
|
---|
3865 | case "$MSGFMT" in
|
---|
3866 | /*)
|
---|
3867 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
3868 | ;;
|
---|
3869 | *)
|
---|
3870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
3871 | for ac_dir in $PATH; do
|
---|
3872 | test -z "$ac_dir" && ac_dir=.
|
---|
3873 | if test -f $ac_dir/$ac_word; then
|
---|
3874 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
3875 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
3876 | break
|
---|
3877 | fi
|
---|
3878 | fi
|
---|
3879 | done
|
---|
3880 | IFS="$ac_save_ifs"
|
---|
3881 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
3882 | ;;
|
---|
3883 | esac
|
---|
3884 | fi
|
---|
3885 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
3886 | if test -n "$MSGFMT"; then
|
---|
3887 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
3888 | else
|
---|
3889 | echo "$ac_t""no" 1>&6
|
---|
3890 | fi
|
---|
3891 | if test "$MSGFMT" != "no"; then
|
---|
3892 | for ac_func in dcgettext
|
---|
3893 | do
|
---|
3894 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3895 | echo "configure:3896: checking for $ac_func" >&5
|
---|
3896 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3897 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3898 | else
|
---|
3899 | cat > conftest.$ac_ext <<EOF
|
---|
3900 | #line 3901 "configure"
|
---|
3901 | #include "confdefs.h"
|
---|
3902 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3903 | which can conflict with char $ac_func(); below. */
|
---|
3904 | #include <assert.h>
|
---|
3905 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3906 | /* We use char because int might match the return type of a gcc2
|
---|
3907 | builtin and then its argument prototype would still apply. */
|
---|
3908 | char $ac_func();
|
---|
3909 |
|
---|
3910 | int main() {
|
---|
3911 |
|
---|
3912 | /* The GNU C library defines this for functions which it implements
|
---|
3913 | to always fail with ENOSYS. Some functions are actually named
|
---|
3914 | something starting with __ and the normal name is an alias. */
|
---|
3915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3916 | choke me
|
---|
3917 | #else
|
---|
3918 | $ac_func();
|
---|
3919 | #endif
|
---|
3920 |
|
---|
3921 | ; return 0; }
|
---|
3922 | EOF
|
---|
3923 | if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3924 | rm -rf conftest*
|
---|
3925 | eval "ac_cv_func_$ac_func=yes"
|
---|
3926 | else
|
---|
3927 | echo "configure: failed program was:" >&5
|
---|
3928 | cat conftest.$ac_ext >&5
|
---|
3929 | rm -rf conftest*
|
---|
3930 | eval "ac_cv_func_$ac_func=no"
|
---|
3931 | fi
|
---|
3932 | rm -f conftest*
|
---|
3933 | fi
|
---|
3934 |
|
---|
3935 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3936 | echo "$ac_t""yes" 1>&6
|
---|
3937 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3938 | cat >> confdefs.h <<EOF
|
---|
3939 | #define $ac_tr_func 1
|
---|
3940 | EOF
|
---|
3941 |
|
---|
3942 | else
|
---|
3943 | echo "$ac_t""no" 1>&6
|
---|
3944 | fi
|
---|
3945 | done
|
---|
3946 |
|
---|
3947 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
3948 | set dummy gmsgfmt; ac_word=$2
|
---|
3949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3950 | echo "configure:3951: checking for $ac_word" >&5
|
---|
3951 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
3952 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3953 | else
|
---|
3954 | case "$GMSGFMT" in
|
---|
3955 | /* | [a-zA-Z]:*)
|
---|
3956 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
3957 | ;;
|
---|
3958 | ?:/*)
|
---|
3959 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
3960 | ;;
|
---|
3961 | *)
|
---|
3962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
3963 | ac_dummy="$PATH"
|
---|
3964 | for ac_dir in $ac_dummy; do
|
---|
3965 | test -z "$ac_dir" && ac_dir=.
|
---|
3966 | if test -f $ac_dir/$ac_word; then
|
---|
3967 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
3968 | break
|
---|
3969 | fi
|
---|
3970 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
3971 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
3972 | break
|
---|
3973 | fi
|
---|
3974 | done
|
---|
3975 | IFS="$ac_save_ifs"
|
---|
3976 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
3977 | ;;
|
---|
3978 | esac
|
---|
3979 | fi
|
---|
3980 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
3981 | if test -n "$GMSGFMT"; then
|
---|
3982 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
3983 | else
|
---|
3984 | echo "$ac_t""no" 1>&6
|
---|
3985 | fi
|
---|
3986 |
|
---|
3987 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
3988 | set dummy xgettext; ac_word=$2
|
---|
3989 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3990 | echo "configure:3991: checking for $ac_word" >&5
|
---|
3991 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
3992 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3993 | else
|
---|
3994 | case "$XGETTEXT" in
|
---|
3995 | /*)
|
---|
3996 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
3997 | ;;
|
---|
3998 | *)
|
---|
3999 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4000 | for ac_dir in $PATH; do
|
---|
4001 | test -z "$ac_dir" && ac_dir=.
|
---|
4002 | if test -f $ac_dir/$ac_word; then
|
---|
4003 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4004 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4005 | break
|
---|
4006 | fi
|
---|
4007 | fi
|
---|
4008 | done
|
---|
4009 | IFS="$ac_save_ifs"
|
---|
4010 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4011 | ;;
|
---|
4012 | esac
|
---|
4013 | fi
|
---|
4014 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4015 | if test -n "$XGETTEXT"; then
|
---|
4016 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4017 | else
|
---|
4018 | echo "$ac_t""no" 1>&6
|
---|
4019 | fi
|
---|
4020 |
|
---|
4021 | cat > conftest.$ac_ext <<EOF
|
---|
4022 | #line 4023 "configure"
|
---|
4023 | #include "confdefs.h"
|
---|
4024 |
|
---|
4025 | int main() {
|
---|
4026 | extern int _nl_msg_cat_cntr;
|
---|
4027 | return _nl_msg_cat_cntr
|
---|
4028 | ; return 0; }
|
---|
4029 | EOF
|
---|
4030 | if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4031 | rm -rf conftest*
|
---|
4032 | CATOBJEXT=.gmo
|
---|
4033 | DATADIRNAME=share
|
---|
4034 | else
|
---|
4035 | echo "configure: failed program was:" >&5
|
---|
4036 | cat conftest.$ac_ext >&5
|
---|
4037 | rm -rf conftest*
|
---|
4038 | CATOBJEXT=.mo
|
---|
4039 | DATADIRNAME=lib
|
---|
4040 | fi
|
---|
4041 | rm -f conftest*
|
---|
4042 | INSTOBJEXT=.mo
|
---|
4043 | fi
|
---|
4044 | fi
|
---|
4045 |
|
---|
4046 | else
|
---|
4047 | echo "$ac_t""no" 1>&6
|
---|
4048 | fi
|
---|
4049 |
|
---|
4050 |
|
---|
4051 |
|
---|
4052 | if test "$CATOBJEXT" = "NONE"; then
|
---|
4053 | nls_cv_use_gnu_gettext=yes
|
---|
4054 | fi
|
---|
4055 | fi
|
---|
4056 |
|
---|
4057 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
4058 | INTLOBJS="\$(GETTOBJS)"
|
---|
4059 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4060 | set dummy msgfmt; ac_word=$2
|
---|
4061 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4062 | echo "configure:4063: checking for $ac_word" >&5
|
---|
4063 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4064 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4065 | else
|
---|
4066 | case "$MSGFMT" in
|
---|
4067 | /*)
|
---|
4068 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4069 | ;;
|
---|
4070 | *)
|
---|
4071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4072 | for ac_dir in $PATH; do
|
---|
4073 | test -z "$ac_dir" && ac_dir=.
|
---|
4074 | if test -f $ac_dir/$ac_word; then
|
---|
4075 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4076 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4077 | break
|
---|
4078 | fi
|
---|
4079 | fi
|
---|
4080 | done
|
---|
4081 | IFS="$ac_save_ifs"
|
---|
4082 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
4083 | ;;
|
---|
4084 | esac
|
---|
4085 | fi
|
---|
4086 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4087 | if test -n "$MSGFMT"; then
|
---|
4088 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4089 | else
|
---|
4090 | echo "$ac_t""no" 1>&6
|
---|
4091 | fi
|
---|
4092 |
|
---|
4093 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4094 | set dummy gmsgfmt; ac_word=$2
|
---|
4095 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4096 | echo "configure:4097: checking for $ac_word" >&5
|
---|
4097 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4098 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4099 | else
|
---|
4100 | case "$GMSGFMT" in
|
---|
4101 | /* | [a-zA-Z]:*)
|
---|
4102 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4103 | ;;
|
---|
4104 | ?:/*)
|
---|
4105 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4106 | ;;
|
---|
4107 | *)
|
---|
4108 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4109 | ac_dummy="$PATH"
|
---|
4110 | for ac_dir in $ac_dummy; do
|
---|
4111 | test -z "$ac_dir" && ac_dir=.
|
---|
4112 | if test -f $ac_dir/$ac_word; then
|
---|
4113 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4114 | break
|
---|
4115 | fi
|
---|
4116 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4117 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4118 | break
|
---|
4119 | fi
|
---|
4120 | done
|
---|
4121 | IFS="$ac_save_ifs"
|
---|
4122 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4123 | ;;
|
---|
4124 | esac
|
---|
4125 | fi
|
---|
4126 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4127 | if test -n "$GMSGFMT"; then
|
---|
4128 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4129 | else
|
---|
4130 | echo "$ac_t""no" 1>&6
|
---|
4131 | fi
|
---|
4132 |
|
---|
4133 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4134 | set dummy xgettext; ac_word=$2
|
---|
4135 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4136 | echo "configure:4137: checking for $ac_word" >&5
|
---|
4137 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4138 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4139 | else
|
---|
4140 | case "$XGETTEXT" in
|
---|
4141 | /*)
|
---|
4142 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4143 | ;;
|
---|
4144 | *)
|
---|
4145 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4146 | for ac_dir in $PATH; do
|
---|
4147 | test -z "$ac_dir" && ac_dir=.
|
---|
4148 | if test -f $ac_dir/$ac_word; then
|
---|
4149 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4150 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4151 | break
|
---|
4152 | fi
|
---|
4153 | fi
|
---|
4154 | done
|
---|
4155 | IFS="$ac_save_ifs"
|
---|
4156 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4157 | ;;
|
---|
4158 | esac
|
---|
4159 | fi
|
---|
4160 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4161 | if test -n "$XGETTEXT"; then
|
---|
4162 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4163 | else
|
---|
4164 | echo "$ac_t""no" 1>&6
|
---|
4165 | fi
|
---|
4166 |
|
---|
4167 |
|
---|
4168 | USE_INCLUDED_LIBINTL=yes
|
---|
4169 | CATOBJEXT=.gmo
|
---|
4170 | INSTOBJEXT=.mo
|
---|
4171 | DATADIRNAME=share
|
---|
4172 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
4173 | INTLLIBS=$INTLDEPS
|
---|
4174 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
4175 | nls_cv_header_intl=libintl.h
|
---|
4176 | nls_cv_header_libgt=libgettext.h
|
---|
4177 | fi
|
---|
4178 |
|
---|
4179 | if test "$XGETTEXT" != ":"; then
|
---|
4180 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
4181 | : ;
|
---|
4182 | else
|
---|
4183 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
4184 | XGETTEXT=":"
|
---|
4185 | fi
|
---|
4186 | fi
|
---|
4187 |
|
---|
4188 | # We need to process the po/ directory.
|
---|
4189 | POSUB=po
|
---|
4190 | else
|
---|
4191 | DATADIRNAME=share
|
---|
4192 | nls_cv_header_intl=libintl.h
|
---|
4193 | nls_cv_header_libgt=libgettext.h
|
---|
4194 | fi
|
---|
4195 |
|
---|
4196 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
4197 | # because some of the sources are only built for this goal.
|
---|
4198 | if test "$PACKAGE" = gettext; then
|
---|
4199 | USE_NLS=yes
|
---|
4200 | USE_INCLUDED_LIBINTL=yes
|
---|
4201 | fi
|
---|
4202 |
|
---|
4203 | for lang in $ALL_LINGUAS; do
|
---|
4204 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
4205 | POFILES="$POFILES $lang.po"
|
---|
4206 | done
|
---|
4207 |
|
---|
4208 |
|
---|
4209 |
|
---|
4210 |
|
---|
4211 |
|
---|
4212 |
|
---|
4213 |
|
---|
4214 |
|
---|
4215 |
|
---|
4216 |
|
---|
4217 |
|
---|
4218 |
|
---|
4219 |
|
---|
4220 |
|
---|
4221 | if test "x$CATOBJEXT" != "x"; then
|
---|
4222 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
4223 | LINGUAS=
|
---|
4224 | else
|
---|
4225 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
4226 | echo "configure:4227: checking for catalogs to be installed" >&5
|
---|
4227 | NEW_LINGUAS=
|
---|
4228 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
4229 | case "$ALL_LINGUAS" in
|
---|
4230 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
4231 | esac
|
---|
4232 | done
|
---|
4233 | LINGUAS=$NEW_LINGUAS
|
---|
4234 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
4235 | fi
|
---|
4236 |
|
---|
4237 | if test -n "$LINGUAS"; then
|
---|
4238 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
4239 | fi
|
---|
4240 | fi
|
---|
4241 |
|
---|
4242 | if test $ac_cv_header_locale_h = yes; then
|
---|
4243 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
4244 | else
|
---|
4245 | INCLUDE_LOCALE_H="\
|
---|
4246 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
4247 | fi
|
---|
4248 |
|
---|
4249 |
|
---|
4250 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
4251 | if test "$CATOBJEXT" = ".cat"; then
|
---|
4252 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
4253 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
4254 | echo "configure:4255: checking for linux/version.h" >&5
|
---|
4255 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4256 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4257 | else
|
---|
4258 | cat > conftest.$ac_ext <<EOF
|
---|
4259 | #include <sys/types.h>
|
---|
4260 | #line 4261 "configure"
|
---|
4261 | #include "confdefs.h"
|
---|
4262 | #include <linux/version.h>
|
---|
4263 | EOF
|
---|
4264 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4265 | { (eval echo configure:4266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4266 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4267 | if test -z "$ac_err"; then
|
---|
4268 | rm -rf conftest*
|
---|
4269 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4270 | else
|
---|
4271 | echo "$ac_err" >&5
|
---|
4272 | echo "configure: failed program was:" >&5
|
---|
4273 | cat conftest.$ac_ext >&5
|
---|
4274 | rm -rf conftest*
|
---|
4275 | eval "ac_cv_header_$ac_safe=no"
|
---|
4276 | fi
|
---|
4277 | rm -f conftest*
|
---|
4278 | fi
|
---|
4279 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4280 | echo "$ac_t""yes" 1>&6
|
---|
4281 | msgformat=linux
|
---|
4282 | else
|
---|
4283 | echo "$ac_t""no" 1>&6
|
---|
4284 | msgformat=xopen
|
---|
4285 | fi
|
---|
4286 |
|
---|
4287 |
|
---|
4288 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
4289 | fi
|
---|
4290 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
4291 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
4292 | fi
|
---|
4293 |
|
---|
4294 | if test "$PACKAGE" = "gettext"; then
|
---|
4295 | GT_NO="#NO#"
|
---|
4296 | GT_YES=
|
---|
4297 | else
|
---|
4298 | GT_NO=
|
---|
4299 | GT_YES="#YES#"
|
---|
4300 | fi
|
---|
4301 |
|
---|
4302 |
|
---|
4303 |
|
---|
4304 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
4305 |
|
---|
4306 |
|
---|
4307 | l=
|
---|
4308 |
|
---|
4309 |
|
---|
4310 | if test -f $srcdir/po/POTFILES.in; then
|
---|
4311 | test -d po || mkdir po
|
---|
4312 | if test "x$srcdir" != "x."; then
|
---|
4313 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
---|
4314 | posrcprefix="$srcdir/"
|
---|
4315 | else
|
---|
4316 | posrcprefix="../$srcdir/"
|
---|
4317 | fi
|
---|
4318 | else
|
---|
4319 | posrcprefix="../"
|
---|
4320 | fi
|
---|
4321 | rm -f po/POTFILES
|
---|
4322 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
4323 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
4324 | fi
|
---|
4325 |
|
---|
4326 |
|
---|
4327 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
4328 | echo "configure:4329: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
4329 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
4330 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
4331 | enableval="$enable_maintainer_mode"
|
---|
4332 | USE_MAINTAINER_MODE=$enableval
|
---|
4333 | else
|
---|
4334 | USE_MAINTAINER_MODE=no
|
---|
4335 | fi
|
---|
4336 |
|
---|
4337 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
4338 |
|
---|
4339 |
|
---|
4340 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
4341 | MAINTAINER_MODE_TRUE=
|
---|
4342 | MAINTAINER_MODE_FALSE='#'
|
---|
4343 | else
|
---|
4344 | MAINTAINER_MODE_TRUE='#'
|
---|
4345 | MAINTAINER_MODE_FALSE=
|
---|
4346 | fi
|
---|
4347 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
4348 |
|
---|
4349 |
|
---|
4350 |
|
---|
4351 |
|
---|
4352 |
|
---|
4353 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
4354 | echo "configure:4355: checking for executable suffix" >&5
|
---|
4355 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
4356 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4357 | else
|
---|
4358 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
4359 | ac_cv_exeext=.exe
|
---|
4360 | else
|
---|
4361 | rm -f conftest*
|
---|
4362 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
4363 | ac_cv_exeext=
|
---|
4364 | if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
4365 | for file in conftest.*; do
|
---|
4366 | case $file in
|
---|
4367 | *.c | *.o | *.obj) ;;
|
---|
4368 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
4369 | esac
|
---|
4370 | done
|
---|
4371 | else
|
---|
4372 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
4373 | fi
|
---|
4374 | rm -f conftest*
|
---|
4375 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
4376 | fi
|
---|
4377 | fi
|
---|
4378 |
|
---|
4379 | EXEEXT=""
|
---|
4380 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
4381 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
4382 | ac_exeext=$EXEEXT
|
---|
4383 |
|
---|
4384 |
|
---|
4385 | for ac_hdr in sys/gmon_out.h
|
---|
4386 | do
|
---|
4387 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4388 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4389 | echo "configure:4390: checking for $ac_hdr" >&5
|
---|
4390 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4391 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4392 | else
|
---|
4393 | cat > conftest.$ac_ext <<EOF
|
---|
4394 | #include <sys/types.h>
|
---|
4395 | #line 4396 "configure"
|
---|
4396 | #include "confdefs.h"
|
---|
4397 | #include <$ac_hdr>
|
---|
4398 | EOF
|
---|
4399 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4400 | { (eval echo configure:4401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4401 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4402 | if test -z "$ac_err"; then
|
---|
4403 | rm -rf conftest*
|
---|
4404 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4405 | else
|
---|
4406 | echo "$ac_err" >&5
|
---|
4407 | echo "configure: failed program was:" >&5
|
---|
4408 | cat conftest.$ac_ext >&5
|
---|
4409 | rm -rf conftest*
|
---|
4410 | eval "ac_cv_header_$ac_safe=no"
|
---|
4411 | fi
|
---|
4412 | rm -f conftest*
|
---|
4413 | fi
|
---|
4414 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4415 | echo "$ac_t""yes" 1>&6
|
---|
4416 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4417 | cat >> confdefs.h <<EOF
|
---|
4418 | #define $ac_tr_hdr 1
|
---|
4419 | EOF
|
---|
4420 |
|
---|
4421 | else
|
---|
4422 | echo "$ac_t""no" 1>&6
|
---|
4423 | fi
|
---|
4424 | done
|
---|
4425 |
|
---|
4426 |
|
---|
4427 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
---|
4428 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
---|
4429 | if test "${enable_build_warnings+set}" = set; then
|
---|
4430 | enableval="$enable_build_warnings"
|
---|
4431 | case "${enableval}" in
|
---|
4432 | yes) ;;
|
---|
4433 | no) build_warnings="-w";;
|
---|
4434 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
4435 | build_warnings="${build_warnings} ${t}";;
|
---|
4436 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
4437 | build_warnings="${t} ${build_warnings}";;
|
---|
4438 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
---|
4439 | esac
|
---|
4440 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
---|
4441 | echo "Setting warning flags = $build_warnings" 6>&1
|
---|
4442 | fi
|
---|
4443 | fi
|
---|
4444 | WARN_CFLAGS=""
|
---|
4445 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
---|
4446 | WARN_CFLAGS="${build_warnings}"
|
---|
4447 | fi
|
---|
4448 |
|
---|
4449 |
|
---|
4450 | trap '' 1 2 15
|
---|
4451 | cat > confcache <<\EOF
|
---|
4452 | # This file is a shell script that caches the results of configure
|
---|
4453 | # tests run on this system so they can be shared between configure
|
---|
4454 | # scripts and configure runs. It is not useful on other systems.
|
---|
4455 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
4456 | #
|
---|
4457 | # By default, configure uses ./config.cache as the cache file,
|
---|
4458 | # creating it if it does not exist already. You can give configure
|
---|
4459 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
4460 | # what configure does when it calls configure scripts in
|
---|
4461 | # subdirectories, so they share the cache.
|
---|
4462 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
4463 | # config.status only pays attention to the cache file if you give it the
|
---|
4464 | # --recheck option to rerun configure.
|
---|
4465 | #
|
---|
4466 | EOF
|
---|
4467 | # The following way of writing the cache mishandles newlines in values,
|
---|
4468 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
4469 | # So, don't put newlines in cache variables' values.
|
---|
4470 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
4471 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
4472 | (set) 2>&1 |
|
---|
4473 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
4474 | *ac_space=\ *)
|
---|
4475 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
4476 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
4477 | sed -n \
|
---|
4478 | -e "s/'/'\\\\''/g" \
|
---|
4479 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
4480 | ;;
|
---|
4481 | *)
|
---|
4482 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
4483 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
4484 | ;;
|
---|
4485 | esac >> confcache
|
---|
4486 | if cmp -s $cache_file confcache; then
|
---|
4487 | :
|
---|
4488 | else
|
---|
4489 | if test -w $cache_file; then
|
---|
4490 | echo "updating cache $cache_file"
|
---|
4491 | cat confcache > $cache_file
|
---|
4492 | else
|
---|
4493 | echo "not updating unwritable cache $cache_file"
|
---|
4494 | fi
|
---|
4495 | fi
|
---|
4496 | rm -f confcache
|
---|
4497 |
|
---|
4498 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
4499 |
|
---|
4500 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
4501 | # Let make expand exec_prefix.
|
---|
4502 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
4503 |
|
---|
4504 | # Any assignment to VPATH causes Sun make to only execute
|
---|
4505 | # the first set of double-colon rules, so remove it if not needed.
|
---|
4506 | # If there is a colon in the path, we need to keep it.
|
---|
4507 | if test "x$srcdir" = x.; then
|
---|
4508 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
4509 | fi
|
---|
4510 |
|
---|
4511 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
4512 |
|
---|
4513 | DEFS=-DHAVE_CONFIG_H
|
---|
4514 |
|
---|
4515 | # Without the "./", some shells look in PATH for config.status.
|
---|
4516 | : ${CONFIG_STATUS=./config.status}
|
---|
4517 |
|
---|
4518 | echo creating $CONFIG_STATUS
|
---|
4519 | rm -f $CONFIG_STATUS
|
---|
4520 | cat > $CONFIG_STATUS <<EOF
|
---|
4521 | #! /bin/sh
|
---|
4522 | # Generated automatically by configure.
|
---|
4523 | # Run this file to recreate the current configuration.
|
---|
4524 | # This directory was configured as follows,
|
---|
4525 | EOF
|
---|
4526 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
4527 | cat >> $CONFIG_STATUS <<EOF
|
---|
4528 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
4529 | #
|
---|
4530 | # $0 $ac_configure_args
|
---|
4531 | #
|
---|
4532 | # Compiler output produced by configure, useful for debugging
|
---|
4533 | # configure, is in ./config.log if it exists.
|
---|
4534 |
|
---|
4535 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
4536 | for ac_option
|
---|
4537 | do
|
---|
4538 | case "\$ac_option" in
|
---|
4539 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
4540 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
4541 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
4542 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
4543 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
4544 | exit 0 ;;
|
---|
4545 | -help | --help | --hel | --he | --h)
|
---|
4546 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
4547 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
4548 | esac
|
---|
4549 | done
|
---|
4550 |
|
---|
4551 | ac_given_srcdir=$srcdir
|
---|
4552 | ac_given_INSTALL="$INSTALL"
|
---|
4553 | PATHIFS="$PATH_IFS"
|
---|
4554 |
|
---|
4555 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
4556 | EOF
|
---|
4557 | cat >> $CONFIG_STATUS <<EOF
|
---|
4558 |
|
---|
4559 | # Protect against being on the right side of a sed subst in config.status.
|
---|
4560 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
4561 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
4562 | $ac_vpsub
|
---|
4563 | $extrasub
|
---|
4564 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
4565 | s%@SHELL@%$SHELL%g
|
---|
4566 | s%@CFLAGS@%$CFLAGS%g
|
---|
4567 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
4568 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
4569 | s%@FFLAGS@%$FFLAGS%g
|
---|
4570 | s%@DEFS@%$DEFS%g
|
---|
4571 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
4572 | s%@LIBS@%$LIBS%g
|
---|
4573 | s%@exec_prefix@%$exec_prefix%g
|
---|
4574 | s%@prefix@%$prefix%g
|
---|
4575 | s%@program_transform_name@%$program_transform_name%g
|
---|
4576 | s%@bindir@%$bindir%g
|
---|
4577 | s%@sbindir@%$sbindir%g
|
---|
4578 | s%@libexecdir@%$libexecdir%g
|
---|
4579 | s%@datadir@%$datadir%g
|
---|
4580 | s%@sysconfdir@%$sysconfdir%g
|
---|
4581 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
4582 | s%@localstatedir@%$localstatedir%g
|
---|
4583 | s%@libdir@%$libdir%g
|
---|
4584 | s%@includedir@%$includedir%g
|
---|
4585 | s%@oldincludedir@%$oldincludedir%g
|
---|
4586 | s%@infodir@%$infodir%g
|
---|
4587 | s%@mandir@%$mandir%g
|
---|
4588 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
4589 | s%@EXEEXT@%$EXEEXT%g
|
---|
4590 | s%@host@%$host%g
|
---|
4591 | s%@host_alias@%$host_alias%g
|
---|
4592 | s%@host_cpu@%$host_cpu%g
|
---|
4593 | s%@host_vendor@%$host_vendor%g
|
---|
4594 | s%@host_os@%$host_os%g
|
---|
4595 | s%@target@%$target%g
|
---|
4596 | s%@target_alias@%$target_alias%g
|
---|
4597 | s%@target_cpu@%$target_cpu%g
|
---|
4598 | s%@target_vendor@%$target_vendor%g
|
---|
4599 | s%@target_os@%$target_os%g
|
---|
4600 | s%@build@%$build%g
|
---|
4601 | s%@build_alias@%$build_alias%g
|
---|
4602 | s%@build_cpu@%$build_cpu%g
|
---|
4603 | s%@build_vendor@%$build_vendor%g
|
---|
4604 | s%@build_os@%$build_os%g
|
---|
4605 | s%@CC@%$CC%g
|
---|
4606 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
4607 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
4608 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
4609 | s%@PACKAGE@%$PACKAGE%g
|
---|
4610 | s%@VERSION@%$VERSION%g
|
---|
4611 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
4612 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
4613 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
4614 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
4615 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
4616 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
4617 | s%@LN_S@%$LN_S%g
|
---|
4618 | s%@OBJEXT@%$OBJEXT%g
|
---|
4619 | s%@RANLIB@%$RANLIB%g
|
---|
4620 | s%@STRIP@%$STRIP%g
|
---|
4621 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
4622 | s%@CPP@%$CPP%g
|
---|
4623 | s%@ALLOCA@%$ALLOCA%g
|
---|
4624 | s%@USE_NLS@%$USE_NLS%g
|
---|
4625 | s%@MSGFMT@%$MSGFMT%g
|
---|
4626 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
4627 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
4628 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
4629 | s%@CATALOGS@%$CATALOGS%g
|
---|
4630 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
4631 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
4632 | s%@GMOFILES@%$GMOFILES%g
|
---|
4633 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
4634 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
4635 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
4636 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
4637 | s%@POFILES@%$POFILES%g
|
---|
4638 | s%@POSUB@%$POSUB%g
|
---|
4639 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
4640 | s%@GT_NO@%$GT_NO%g
|
---|
4641 | s%@GT_YES@%$GT_YES%g
|
---|
4642 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
4643 | s%@l@%$l%g
|
---|
4644 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
4645 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
4646 | s%@MAINT@%$MAINT%g
|
---|
4647 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
---|
4648 |
|
---|
4649 | CEOF
|
---|
4650 | EOF
|
---|
4651 |
|
---|
4652 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4653 |
|
---|
4654 | # Split the substitutions into bite-sized pieces for seds with
|
---|
4655 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
4656 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
4657 | ac_file=1 # Number of current file.
|
---|
4658 | ac_beg=1 # First line for current file.
|
---|
4659 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
4660 | ac_more_lines=:
|
---|
4661 | ac_sed_cmds=""
|
---|
4662 | while $ac_more_lines; do
|
---|
4663 | if test $ac_beg -gt 1; then
|
---|
4664 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
4665 | else
|
---|
4666 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
4667 | fi
|
---|
4668 | if test ! -s conftest.s$ac_file; then
|
---|
4669 | ac_more_lines=false
|
---|
4670 | rm -f conftest.s$ac_file
|
---|
4671 | else
|
---|
4672 | if test -z "$ac_sed_cmds"; then
|
---|
4673 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
4674 | else
|
---|
4675 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
4676 | fi
|
---|
4677 | ac_file=`expr $ac_file + 1`
|
---|
4678 | ac_beg=$ac_end
|
---|
4679 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
4680 | fi
|
---|
4681 | done
|
---|
4682 | if test -z "$ac_sed_cmds"; then
|
---|
4683 | ac_sed_cmds=cat
|
---|
4684 | fi
|
---|
4685 | EOF
|
---|
4686 |
|
---|
4687 | cat >> $CONFIG_STATUS <<EOF
|
---|
4688 |
|
---|
4689 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
|
---|
4690 | EOF
|
---|
4691 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4692 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
4693 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4694 | case "$ac_file" in
|
---|
4695 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
4696 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
4697 | *) ac_file_in="${ac_file}.in" ;;
|
---|
4698 | esac
|
---|
4699 |
|
---|
4700 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
4701 |
|
---|
4702 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
4703 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
4704 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
4705 | # The file is in a subdirectory.
|
---|
4706 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
4707 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
4708 | # A "../" for each directory in $ac_dir_suffix.
|
---|
4709 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
4710 | else
|
---|
4711 | ac_dir_suffix= ac_dots=
|
---|
4712 | fi
|
---|
4713 |
|
---|
4714 | case "$ac_given_srcdir" in
|
---|
4715 | .) srcdir=.
|
---|
4716 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
4717 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
4718 | /* | [A-Za-z]:*)
|
---|
4719 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
4720 | *) # Relative path.
|
---|
4721 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
4722 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
4723 | esac
|
---|
4724 |
|
---|
4725 | case "$ac_given_INSTALL" in
|
---|
4726 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
4727 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
4728 | esac
|
---|
4729 |
|
---|
4730 | echo creating "$ac_file"
|
---|
4731 | rm -f "$ac_file"
|
---|
4732 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
4733 | case "$ac_file" in
|
---|
4734 | *Makefile*) ac_comsub="1i\\
|
---|
4735 | # $configure_input" ;;
|
---|
4736 | *) ac_comsub= ;;
|
---|
4737 | esac
|
---|
4738 |
|
---|
4739 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
4740 | sed -e "$ac_comsub
|
---|
4741 | s%@configure_input@%$configure_input%g
|
---|
4742 | s%@srcdir@%$srcdir%g
|
---|
4743 | s%@top_srcdir@%$top_srcdir%g
|
---|
4744 | s%@INSTALL@%$INSTALL%g
|
---|
4745 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
4746 | fi; done
|
---|
4747 | rm -f conftest.s*
|
---|
4748 |
|
---|
4749 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
4750 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
4751 | #
|
---|
4752 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
4753 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
4754 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
4755 | ac_dC='\3'
|
---|
4756 | ac_dD='%g'
|
---|
4757 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
4758 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
4759 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
4760 | ac_uC=' '
|
---|
4761 | ac_uD='\4%g'
|
---|
4762 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
4763 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
4764 | ac_eB='$%\1#\2define\3'
|
---|
4765 | ac_eC=' '
|
---|
4766 | ac_eD='%g'
|
---|
4767 |
|
---|
4768 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
4769 | EOF
|
---|
4770 | cat >> $CONFIG_STATUS <<EOF
|
---|
4771 | CONFIG_HEADERS="gconfig.h:gconfig.in"
|
---|
4772 | EOF
|
---|
4773 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4774 | fi
|
---|
4775 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
4776 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4777 | case "$ac_file" in
|
---|
4778 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
4779 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
4780 | *) ac_file_in="${ac_file}.in" ;;
|
---|
4781 | esac
|
---|
4782 |
|
---|
4783 | echo creating $ac_file
|
---|
4784 |
|
---|
4785 | rm -f conftest.frag conftest.in conftest.out
|
---|
4786 | # kso the other way around might work better with drive letters and such.
|
---|
4787 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
4788 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
4789 | cat $ac_file_inputs > conftest.in
|
---|
4790 |
|
---|
4791 | EOF
|
---|
4792 |
|
---|
4793 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
4794 | # the proper values into config.h.in to produce config.h. And first:
|
---|
4795 | # Protect against being on the right side of a sed subst in config.status.
|
---|
4796 | # Protect against being in an unquoted here document in config.status.
|
---|
4797 | rm -f conftest.vals
|
---|
4798 | cat > conftest.hdr <<\EOF
|
---|
4799 | s/[\\&%]/\\&/g
|
---|
4800 | s%[\\$`]%\\&%g
|
---|
4801 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
4802 | s%ac_d%ac_u%gp
|
---|
4803 | s%ac_u%ac_e%gp
|
---|
4804 | EOF
|
---|
4805 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
4806 | rm -f conftest.hdr
|
---|
4807 |
|
---|
4808 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
4809 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
4810 | # on some systems where configure will not decide to define it.
|
---|
4811 | cat >> conftest.vals <<\EOF
|
---|
4812 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
4813 | EOF
|
---|
4814 |
|
---|
4815 | # Break up conftest.vals because some shells have a limit on
|
---|
4816 | # the size of here documents, and old seds have small limits too.
|
---|
4817 |
|
---|
4818 | rm -f conftest.tail
|
---|
4819 | while :
|
---|
4820 | do
|
---|
4821 | ac_lines=`grep -c . conftest.vals`
|
---|
4822 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
4823 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
4824 | # Write a limited-size here document to conftest.frag.
|
---|
4825 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
4826 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
4827 | echo 'CEOF
|
---|
4828 | sed -f conftest.frag conftest.in > conftest.out
|
---|
4829 | rm -f conftest.in
|
---|
4830 | mv conftest.out conftest.in
|
---|
4831 | ' >> $CONFIG_STATUS
|
---|
4832 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
4833 | rm -f conftest.vals
|
---|
4834 | mv conftest.tail conftest.vals
|
---|
4835 | done
|
---|
4836 | rm -f conftest.vals
|
---|
4837 |
|
---|
4838 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4839 | rm -f conftest.frag conftest.h
|
---|
4840 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
4841 | cat conftest.in >> conftest.h
|
---|
4842 | rm -f conftest.in
|
---|
4843 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
4844 | echo "$ac_file is unchanged"
|
---|
4845 | rm -f conftest.h
|
---|
4846 | else
|
---|
4847 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
4848 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
4849 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
4850 | # The file is in a subdirectory.
|
---|
4851 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
4852 | fi
|
---|
4853 | rm -f $ac_file
|
---|
4854 | mv conftest.h $ac_file
|
---|
4855 | fi
|
---|
4856 | fi; done
|
---|
4857 |
|
---|
4858 | EOF
|
---|
4859 | cat >> $CONFIG_STATUS <<EOF
|
---|
4860 |
|
---|
4861 |
|
---|
4862 | EOF
|
---|
4863 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4864 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
4865 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
---|
4866 | exit 0
|
---|
4867 | EOF
|
---|
4868 | chmod +x $CONFIG_STATUS
|
---|
4869 | rm -fr confdefs* $ac_clean_files
|
---|
4870 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
4871 |
|
---|