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 | --disable-nls do not use Native Language Support"
|
---|
16 | ac_help="$ac_help
|
---|
17 | --with-included-gettext use the GNU gettext library included here"
|
---|
18 |
|
---|
19 | # Initialize some variables set by options.
|
---|
20 | # The variables have the same names as the options, with
|
---|
21 | # dashes changed to underlines.
|
---|
22 | build=NONE
|
---|
23 | cache_file=./config.cache
|
---|
24 | exec_prefix=NONE
|
---|
25 | host=NONE
|
---|
26 | no_create=
|
---|
27 | nonopt=NONE
|
---|
28 | no_recursion=
|
---|
29 | prefix=NONE
|
---|
30 | program_prefix=NONE
|
---|
31 | program_suffix=NONE
|
---|
32 | program_transform_name=s,x,x,
|
---|
33 | silent=
|
---|
34 | site=
|
---|
35 | srcdir=
|
---|
36 | target=NONE
|
---|
37 | verbose=
|
---|
38 | x_includes=NONE
|
---|
39 | x_libraries=NONE
|
---|
40 | bindir='${exec_prefix}/bin'
|
---|
41 | sbindir='${exec_prefix}/sbin'
|
---|
42 | libexecdir='${exec_prefix}/libexec'
|
---|
43 | datadir='${prefix}/share'
|
---|
44 | sysconfdir='${prefix}/etc'
|
---|
45 | sharedstatedir='${prefix}/com'
|
---|
46 | localstatedir='${prefix}/var'
|
---|
47 | libdir='${exec_prefix}/lib'
|
---|
48 | includedir='${prefix}/include'
|
---|
49 | oldincludedir='/usr/include'
|
---|
50 | infodir='${prefix}/info'
|
---|
51 | mandir='${prefix}/man'
|
---|
52 |
|
---|
53 | # Initialize some other variables.
|
---|
54 | subdirs=
|
---|
55 | MFLAGS= MAKEFLAGS=
|
---|
56 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
57 | # Maximum number of lines to put in a shell here document.
|
---|
58 | ac_max_here_lines=12
|
---|
59 |
|
---|
60 | ac_prev=
|
---|
61 | for ac_option
|
---|
62 | do
|
---|
63 |
|
---|
64 | # If the previous option needs an argument, assign it.
|
---|
65 | if test -n "$ac_prev"; then
|
---|
66 | eval "$ac_prev=\$ac_option"
|
---|
67 | ac_prev=
|
---|
68 | continue
|
---|
69 | fi
|
---|
70 |
|
---|
71 | case "$ac_option" in
|
---|
72 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
73 | *) ac_optarg= ;;
|
---|
74 | esac
|
---|
75 |
|
---|
76 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
77 |
|
---|
78 | case "$ac_option" in
|
---|
79 |
|
---|
80 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
81 | ac_prev=bindir ;;
|
---|
82 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
83 | bindir="$ac_optarg" ;;
|
---|
84 |
|
---|
85 | -build | --build | --buil | --bui | --bu)
|
---|
86 | ac_prev=build ;;
|
---|
87 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
88 | build="$ac_optarg" ;;
|
---|
89 |
|
---|
90 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
91 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
92 | ac_prev=cache_file ;;
|
---|
93 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
94 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
95 | cache_file="$ac_optarg" ;;
|
---|
96 |
|
---|
97 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
98 | ac_prev=datadir ;;
|
---|
99 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
100 | | --da=*)
|
---|
101 | datadir="$ac_optarg" ;;
|
---|
102 |
|
---|
103 | -disable-* | --disable-*)
|
---|
104 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
105 | # Reject names that are not valid shell variable names.
|
---|
106 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
107 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
108 | fi
|
---|
109 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
110 | eval "enable_${ac_feature}=no" ;;
|
---|
111 |
|
---|
112 | -enable-* | --enable-*)
|
---|
113 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
114 | # Reject names that are not valid shell variable names.
|
---|
115 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
116 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
117 | fi
|
---|
118 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
119 | case "$ac_option" in
|
---|
120 | *=*) ;;
|
---|
121 | *) ac_optarg=yes ;;
|
---|
122 | esac
|
---|
123 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
124 |
|
---|
125 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
126 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
127 | | --exec | --exe | --ex)
|
---|
128 | ac_prev=exec_prefix ;;
|
---|
129 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
130 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
131 | | --exec=* | --exe=* | --ex=*)
|
---|
132 | exec_prefix="$ac_optarg" ;;
|
---|
133 |
|
---|
134 | -gas | --gas | --ga | --g)
|
---|
135 | # Obsolete; use --with-gas.
|
---|
136 | with_gas=yes ;;
|
---|
137 |
|
---|
138 | -help | --help | --hel | --he)
|
---|
139 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
140 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
141 | cat << EOF
|
---|
142 | Usage: configure [options] [host]
|
---|
143 | Options: [defaults in brackets after descriptions]
|
---|
144 | Configuration:
|
---|
145 | --cache-file=FILE cache test results in FILE
|
---|
146 | --help print this message
|
---|
147 | --no-create do not create output files
|
---|
148 | --quiet, --silent do not print \`checking...' messages
|
---|
149 | --version print the version of autoconf that created configure
|
---|
150 | Directory and file names:
|
---|
151 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
152 | [$ac_default_prefix]
|
---|
153 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
154 | [same as prefix]
|
---|
155 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
156 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
157 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
158 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
159 | [PREFIX/share]
|
---|
160 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
161 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
162 | [PREFIX/com]
|
---|
163 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
164 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
165 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
166 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
167 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
168 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
169 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
170 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
171 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
172 | --program-transform-name=PROGRAM
|
---|
173 | run sed PROGRAM on installed program names
|
---|
174 | EOF
|
---|
175 | cat << EOF
|
---|
176 | Host type:
|
---|
177 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
178 | --host=HOST configure for HOST [guessed]
|
---|
179 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
180 | Features and packages:
|
---|
181 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
182 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
183 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
184 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
185 | --x-includes=DIR X include files are in DIR
|
---|
186 | --x-libraries=DIR X library files are in DIR
|
---|
187 | EOF
|
---|
188 | if test -n "$ac_help"; then
|
---|
189 | echo "--enable and --with options recognized:$ac_help"
|
---|
190 | fi
|
---|
191 | exit 0 ;;
|
---|
192 |
|
---|
193 | -host | --host | --hos | --ho)
|
---|
194 | ac_prev=host ;;
|
---|
195 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
196 | host="$ac_optarg" ;;
|
---|
197 |
|
---|
198 | -includedir | --includedir | --includedi | --included | --include \
|
---|
199 | | --includ | --inclu | --incl | --inc)
|
---|
200 | ac_prev=includedir ;;
|
---|
201 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
202 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
203 | includedir="$ac_optarg" ;;
|
---|
204 |
|
---|
205 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
206 | ac_prev=infodir ;;
|
---|
207 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
208 | infodir="$ac_optarg" ;;
|
---|
209 |
|
---|
210 | -libdir | --libdir | --libdi | --libd)
|
---|
211 | ac_prev=libdir ;;
|
---|
212 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
213 | libdir="$ac_optarg" ;;
|
---|
214 |
|
---|
215 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
216 | | --libexe | --libex | --libe)
|
---|
217 | ac_prev=libexecdir ;;
|
---|
218 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
219 | | --libexe=* | --libex=* | --libe=*)
|
---|
220 | libexecdir="$ac_optarg" ;;
|
---|
221 |
|
---|
222 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
223 | | --localstate | --localstat | --localsta | --localst \
|
---|
224 | | --locals | --local | --loca | --loc | --lo)
|
---|
225 | ac_prev=localstatedir ;;
|
---|
226 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
227 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
228 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
229 | localstatedir="$ac_optarg" ;;
|
---|
230 |
|
---|
231 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
232 | ac_prev=mandir ;;
|
---|
233 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
234 | mandir="$ac_optarg" ;;
|
---|
235 |
|
---|
236 | -nfp | --nfp | --nf)
|
---|
237 | # Obsolete; use --without-fp.
|
---|
238 | with_fp=no ;;
|
---|
239 |
|
---|
240 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
241 | | --no-cr | --no-c)
|
---|
242 | no_create=yes ;;
|
---|
243 |
|
---|
244 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
245 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
246 | no_recursion=yes ;;
|
---|
247 |
|
---|
248 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
249 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
250 | | --oldin | --oldi | --old | --ol | --o)
|
---|
251 | ac_prev=oldincludedir ;;
|
---|
252 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
253 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
254 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
255 | oldincludedir="$ac_optarg" ;;
|
---|
256 |
|
---|
257 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
258 | ac_prev=prefix ;;
|
---|
259 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
260 | prefix="$ac_optarg" ;;
|
---|
261 |
|
---|
262 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
263 | | --program-pre | --program-pr | --program-p)
|
---|
264 | ac_prev=program_prefix ;;
|
---|
265 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
266 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
267 | program_prefix="$ac_optarg" ;;
|
---|
268 |
|
---|
269 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
270 | | --program-suf | --program-su | --program-s)
|
---|
271 | ac_prev=program_suffix ;;
|
---|
272 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
273 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
274 | program_suffix="$ac_optarg" ;;
|
---|
275 |
|
---|
276 | -program-transform-name | --program-transform-name \
|
---|
277 | | --program-transform-nam | --program-transform-na \
|
---|
278 | | --program-transform-n | --program-transform- \
|
---|
279 | | --program-transform | --program-transfor \
|
---|
280 | | --program-transfo | --program-transf \
|
---|
281 | | --program-trans | --program-tran \
|
---|
282 | | --progr-tra | --program-tr | --program-t)
|
---|
283 | ac_prev=program_transform_name ;;
|
---|
284 | -program-transform-name=* | --program-transform-name=* \
|
---|
285 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
286 | | --program-transform-n=* | --program-transform-=* \
|
---|
287 | | --program-transform=* | --program-transfor=* \
|
---|
288 | | --program-transfo=* | --program-transf=* \
|
---|
289 | | --program-trans=* | --program-tran=* \
|
---|
290 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
291 | program_transform_name="$ac_optarg" ;;
|
---|
292 |
|
---|
293 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
294 | | -silent | --silent | --silen | --sile | --sil)
|
---|
295 | silent=yes ;;
|
---|
296 |
|
---|
297 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
298 | ac_prev=sbindir ;;
|
---|
299 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
300 | | --sbi=* | --sb=*)
|
---|
301 | sbindir="$ac_optarg" ;;
|
---|
302 |
|
---|
303 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
304 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
305 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
306 | | --sha | --sh)
|
---|
307 | ac_prev=sharedstatedir ;;
|
---|
308 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
309 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
310 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
311 | | --sha=* | --sh=*)
|
---|
312 | sharedstatedir="$ac_optarg" ;;
|
---|
313 |
|
---|
314 | -site | --site | --sit)
|
---|
315 | ac_prev=site ;;
|
---|
316 | -site=* | --site=* | --sit=*)
|
---|
317 | site="$ac_optarg" ;;
|
---|
318 |
|
---|
319 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
320 | ac_prev=srcdir ;;
|
---|
321 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
322 | srcdir="$ac_optarg" ;;
|
---|
323 |
|
---|
324 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
325 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
326 | ac_prev=sysconfdir ;;
|
---|
327 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
328 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
329 | sysconfdir="$ac_optarg" ;;
|
---|
330 |
|
---|
331 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
332 | ac_prev=target ;;
|
---|
333 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
334 | target="$ac_optarg" ;;
|
---|
335 |
|
---|
336 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
337 | verbose=yes ;;
|
---|
338 |
|
---|
339 | -version | --version | --versio | --versi | --vers)
|
---|
340 | echo "configure generated by autoconf version 2.13"
|
---|
341 | exit 0 ;;
|
---|
342 |
|
---|
343 | -with-* | --with-*)
|
---|
344 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
345 | # Reject names that are not valid shell variable names.
|
---|
346 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
347 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
348 | fi
|
---|
349 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
350 | case "$ac_option" in
|
---|
351 | *=*) ;;
|
---|
352 | *) ac_optarg=yes ;;
|
---|
353 | esac
|
---|
354 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
355 |
|
---|
356 | -without-* | --without-*)
|
---|
357 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
358 | # Reject names that are not valid shell variable names.
|
---|
359 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
360 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
361 | fi
|
---|
362 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
363 | eval "with_${ac_package}=no" ;;
|
---|
364 |
|
---|
365 | --x)
|
---|
366 | # Obsolete; use --with-x.
|
---|
367 | with_x=yes ;;
|
---|
368 |
|
---|
369 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
370 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
371 | ac_prev=x_includes ;;
|
---|
372 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
373 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
374 | x_includes="$ac_optarg" ;;
|
---|
375 |
|
---|
376 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
377 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
378 | ac_prev=x_libraries ;;
|
---|
379 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
380 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
381 | x_libraries="$ac_optarg" ;;
|
---|
382 |
|
---|
383 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
384 | ;;
|
---|
385 |
|
---|
386 | *)
|
---|
387 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
388 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
389 | fi
|
---|
390 | if test "x$nonopt" != xNONE; then
|
---|
391 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
392 | fi
|
---|
393 | nonopt="$ac_option"
|
---|
394 | ;;
|
---|
395 |
|
---|
396 | esac
|
---|
397 | done
|
---|
398 |
|
---|
399 | if test -n "$ac_prev"; then
|
---|
400 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
401 | fi
|
---|
402 |
|
---|
403 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
404 |
|
---|
405 | # File descriptor usage:
|
---|
406 | # 0 standard input
|
---|
407 | # 1 file creation
|
---|
408 | # 2 errors and warnings
|
---|
409 | # 3 some systems may open it to /dev/tty
|
---|
410 | # 4 used on the Kubota Titan
|
---|
411 | # 6 checking for... messages and results
|
---|
412 | # 5 compiler messages saved in config.log
|
---|
413 | if test "$silent" = yes; then
|
---|
414 | exec 6>/dev/null
|
---|
415 | else
|
---|
416 | exec 6>&1
|
---|
417 | fi
|
---|
418 | exec 5>./config.log
|
---|
419 |
|
---|
420 | echo "\
|
---|
421 | This file contains any messages produced by compilers while
|
---|
422 | running configure, to aid debugging if configure makes a mistake.
|
---|
423 | " 1>&5
|
---|
424 |
|
---|
425 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
426 | # Also quote any args containing shell metacharacters.
|
---|
427 | ac_configure_args=
|
---|
428 | for ac_arg
|
---|
429 | do
|
---|
430 | case "$ac_arg" in
|
---|
431 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
432 | | --no-cr | --no-c) ;;
|
---|
433 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
434 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
436 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
437 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
438 | esac
|
---|
439 | done
|
---|
440 |
|
---|
441 | # NLS nuisances.
|
---|
442 | # Only set these to C if already set. These must not be set unconditionally
|
---|
443 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
444 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
445 | # Non-C LC_CTYPE values break the ctype check.
|
---|
446 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
447 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
448 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
449 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
450 |
|
---|
451 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
452 | rm -rf conftest* confdefs.h
|
---|
453 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
454 | echo > confdefs.h
|
---|
455 |
|
---|
456 | # A filename unique to this package, relative to the directory that
|
---|
457 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
458 | ac_unique_file=dgettext.c
|
---|
459 |
|
---|
460 | # Find the source files, if location was not specified.
|
---|
461 | if test -z "$srcdir"; then
|
---|
462 | ac_srcdir_defaulted=yes
|
---|
463 | # Try the directory containing this script, then its parent.
|
---|
464 | ac_prog=$0
|
---|
465 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
466 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
467 | srcdir=$ac_confdir
|
---|
468 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
469 | srcdir=..
|
---|
470 | fi
|
---|
471 | else
|
---|
472 | ac_srcdir_defaulted=no
|
---|
473 | fi
|
---|
474 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
475 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
476 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
477 | else
|
---|
478 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
479 | fi
|
---|
480 | fi
|
---|
481 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
482 |
|
---|
483 | # Prefer explicitly selected file to automatically selected ones.
|
---|
484 | if test -z "$CONFIG_SITE"; then
|
---|
485 | if test "x$prefix" != xNONE; then
|
---|
486 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
487 | else
|
---|
488 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
489 | fi
|
---|
490 | fi
|
---|
491 | for ac_site_file in $CONFIG_SITE; do
|
---|
492 | if test -r "$ac_site_file"; then
|
---|
493 | echo "loading site script $ac_site_file"
|
---|
494 | . "$ac_site_file"
|
---|
495 | fi
|
---|
496 | done
|
---|
497 |
|
---|
498 | if test -r "$cache_file"; then
|
---|
499 | echo "loading cache $cache_file"
|
---|
500 | . $cache_file
|
---|
501 | else
|
---|
502 | echo "creating cache $cache_file"
|
---|
503 | > $cache_file
|
---|
504 | fi
|
---|
505 |
|
---|
506 | ac_ext=c
|
---|
507 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
508 | ac_cpp='$CPP $CPPFLAGS'
|
---|
509 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
510 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
511 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
512 |
|
---|
513 | ac_exeext=
|
---|
514 | ac_objext=o
|
---|
515 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
516 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
517 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
518 | ac_n= ac_c='
|
---|
519 | ' ac_t=' '
|
---|
520 | else
|
---|
521 | ac_n=-n ac_c= ac_t=
|
---|
522 | fi
|
---|
523 | else
|
---|
524 | ac_n= ac_c='\c' ac_t=
|
---|
525 | fi
|
---|
526 |
|
---|
527 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
---|
528 | echo "configure:529: checking for path separator" >&5
|
---|
529 | # Filter path to get backslahes into forwardslashes
|
---|
530 | case "`uname -s 2> /dev/null`" in
|
---|
531 | OS/2)
|
---|
532 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
---|
533 | PATH_IFS=';'
|
---|
534 | ;;
|
---|
535 | *)
|
---|
536 | PATH_IFS=':'
|
---|
537 | ;;
|
---|
538 | esac
|
---|
539 | echo "$ac_t""${PATH_IFS}" 1>&6
|
---|
540 |
|
---|
541 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
542 | echo "configure:543: checking for Cygwin environment" >&5
|
---|
543 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
544 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
545 | else
|
---|
546 | cat > conftest.$ac_ext <<EOF
|
---|
547 | #line 548 "configure"
|
---|
548 | #include "confdefs.h"
|
---|
549 |
|
---|
550 | int main() {
|
---|
551 |
|
---|
552 | #ifndef __CYGWIN__
|
---|
553 | #define __CYGWIN__ __CYGWIN32__
|
---|
554 | #endif
|
---|
555 | return __CYGWIN__;
|
---|
556 | ; return 0; }
|
---|
557 | EOF
|
---|
558 | if { (eval echo configure:559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
559 | rm -rf conftest*
|
---|
560 | ac_cv_cygwin=yes
|
---|
561 | else
|
---|
562 | echo "configure: failed program was:" >&5
|
---|
563 | cat conftest.$ac_ext >&5
|
---|
564 | rm -rf conftest*
|
---|
565 | ac_cv_cygwin=no
|
---|
566 | fi
|
---|
567 | rm -f conftest*
|
---|
568 | rm -f conftest*
|
---|
569 | fi
|
---|
570 |
|
---|
571 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
572 | CYGWIN=
|
---|
573 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
574 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
575 | echo "configure:576: checking for mingw32 environment" >&5
|
---|
576 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
577 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
578 | else
|
---|
579 | cat > conftest.$ac_ext <<EOF
|
---|
580 | #line 581 "configure"
|
---|
581 | #include "confdefs.h"
|
---|
582 |
|
---|
583 | int main() {
|
---|
584 | return __MINGW32__;
|
---|
585 | ; return 0; }
|
---|
586 | EOF
|
---|
587 | if { (eval echo configure:588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
588 | rm -rf conftest*
|
---|
589 | ac_cv_mingw32=yes
|
---|
590 | else
|
---|
591 | echo "configure: failed program was:" >&5
|
---|
592 | cat conftest.$ac_ext >&5
|
---|
593 | rm -rf conftest*
|
---|
594 | ac_cv_mingw32=no
|
---|
595 | fi
|
---|
596 | rm -f conftest*
|
---|
597 | rm -f conftest*
|
---|
598 | fi
|
---|
599 |
|
---|
600 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
601 | MINGW32=
|
---|
602 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
603 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
---|
604 | echo "configure:605: checking for EMX/OS2 environment" >&5
|
---|
605 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
---|
606 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
607 | else
|
---|
608 | : ${CC=gcc.exe}
|
---|
609 | cat > conftest.$ac_ext <<EOF
|
---|
610 | #line 611 "configure"
|
---|
611 | #include "confdefs.h"
|
---|
612 |
|
---|
613 | int main() {
|
---|
614 | return __EMX__;
|
---|
615 | ; return 0; }
|
---|
616 | EOF
|
---|
617 | if { (eval echo configure:618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
618 | rm -rf conftest*
|
---|
619 | ac_cv_emxos2=yes
|
---|
620 | else
|
---|
621 | echo "configure: failed program was:" >&5
|
---|
622 | cat conftest.$ac_ext >&5
|
---|
623 | rm -rf conftest*
|
---|
624 | ac_cv_emxos2=no
|
---|
625 | fi
|
---|
626 | rm -f conftest*
|
---|
627 | rm -f conftest*
|
---|
628 | fi
|
---|
629 |
|
---|
630 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
---|
631 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
---|
632 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
633 | else
|
---|
634 | if test "$ac_cv_emxos2" = yes ; then
|
---|
635 | ac_cv_libpre=
|
---|
636 | else
|
---|
637 | ac_cv_libpre=lib
|
---|
638 | fi
|
---|
639 |
|
---|
640 | fi
|
---|
641 |
|
---|
642 | EMXOS2=
|
---|
643 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
---|
644 |
|
---|
645 |
|
---|
646 |
|
---|
647 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
648 | echo "configure:649: checking for executable suffix" >&5
|
---|
649 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
650 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
651 | else
|
---|
652 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
653 | ac_cv_exeext=.exe
|
---|
654 | else
|
---|
655 | rm -f conftest*
|
---|
656 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
657 | ac_cv_exeext=
|
---|
658 | if { (eval echo configure:659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
659 | for file in conftest.*; do
|
---|
660 | case $file in
|
---|
661 | *.c | *.o | *.obj) ;;
|
---|
662 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
663 | esac
|
---|
664 | done
|
---|
665 | else
|
---|
666 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
667 | fi
|
---|
668 | rm -f conftest*
|
---|
669 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
670 | fi
|
---|
671 | fi
|
---|
672 |
|
---|
673 | EXEEXT=""
|
---|
674 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
675 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
676 | ac_exeext=$EXEEXT
|
---|
677 |
|
---|
678 |
|
---|
679 |
|
---|
680 |
|
---|
681 |
|
---|
682 |
|
---|
683 | ac_aux_dir=
|
---|
684 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
685 | if test -f $ac_dir/install-sh; then
|
---|
686 | ac_aux_dir=$ac_dir
|
---|
687 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
688 | break
|
---|
689 | elif test -f $ac_dir/install.sh; then
|
---|
690 | ac_aux_dir=$ac_dir
|
---|
691 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
692 | break
|
---|
693 | fi
|
---|
694 | done
|
---|
695 | if test -z "$ac_aux_dir"; then
|
---|
696 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
697 | fi
|
---|
698 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
699 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
700 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
701 |
|
---|
702 | # Find a good install program. We prefer a C program (faster),
|
---|
703 | # so one script is as good as another. But avoid the broken or
|
---|
704 | # incompatible versions:
|
---|
705 | # SysV /etc/install, /usr/sbin/install
|
---|
706 | # SunOS /usr/etc/install
|
---|
707 | # IRIX /sbin/install
|
---|
708 | # AIX /bin/install
|
---|
709 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
710 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
711 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
712 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
713 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
714 | echo "configure:715: checking for a BSD compatible install" >&5
|
---|
715 | if test -z "$INSTALL"; then
|
---|
716 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
717 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
718 | else
|
---|
719 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
720 | for ac_dir in $PATH; do
|
---|
721 | # Account for people who put trailing slashes in PATH elements.
|
---|
722 | case "$ac_dir/" in
|
---|
723 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
724 | # We reject the install program from OS/2 or W3.1
|
---|
725 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
726 | *)
|
---|
727 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
728 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
729 | # by default.
|
---|
730 | for ac_prog in ginstall scoinst install; do
|
---|
731 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
732 | if test $ac_prog = install &&
|
---|
733 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
734 | # AIX install. It has an incompatible calling convention.
|
---|
735 | :
|
---|
736 | else
|
---|
737 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
738 | break 2
|
---|
739 | fi
|
---|
740 | fi
|
---|
741 | done
|
---|
742 | ;;
|
---|
743 | esac
|
---|
744 | done
|
---|
745 | IFS="$ac_save_IFS"
|
---|
746 |
|
---|
747 | fi
|
---|
748 | if test "${ac_cv_path_install+set}" = set; then
|
---|
749 | INSTALL="$ac_cv_path_install"
|
---|
750 | else
|
---|
751 | # As a last resort, use the slow shell script. We don't cache a
|
---|
752 | # path for INSTALL within a source directory, because that will
|
---|
753 | # break other packages using the cache if that directory is
|
---|
754 | # removed, or if the path is relative.
|
---|
755 | INSTALL="$ac_install_sh"
|
---|
756 | fi
|
---|
757 | fi
|
---|
758 | echo "$ac_t""$INSTALL" 1>&6
|
---|
759 |
|
---|
760 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
761 | # It thinks the first close brace ends the variable substitution.
|
---|
762 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
763 |
|
---|
764 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
765 |
|
---|
766 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
767 |
|
---|
768 |
|
---|
769 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
770 |
|
---|
771 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
772 | echo "configure:773: checking how to run the C preprocessor" >&5
|
---|
773 | # On Suns, sometimes $CPP names a directory.
|
---|
774 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
775 | CPP=
|
---|
776 | fi
|
---|
777 | if test -z "$CPP"; then
|
---|
778 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
779 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
780 | else
|
---|
781 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
782 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
783 | CPP="${CC-cc} -E"
|
---|
784 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
785 | # not just through cpp.
|
---|
786 | cat > conftest.$ac_ext <<EOF
|
---|
787 | #include <sys/types.h>
|
---|
788 | #line 789 "configure"
|
---|
789 | #include "confdefs.h"
|
---|
790 | #include <assert.h>
|
---|
791 | Syntax Error
|
---|
792 | EOF
|
---|
793 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
794 | { (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
795 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
796 | if test -z "$ac_err"; then
|
---|
797 | :
|
---|
798 | else
|
---|
799 | echo "$ac_err" >&5
|
---|
800 | echo "configure: failed program was:" >&5
|
---|
801 | cat conftest.$ac_ext >&5
|
---|
802 | rm -rf conftest*
|
---|
803 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
804 | cat > conftest.$ac_ext <<EOF
|
---|
805 | #include <sys/types.h>
|
---|
806 | #line 807 "configure"
|
---|
807 | #include "confdefs.h"
|
---|
808 | #include <assert.h>
|
---|
809 | Syntax Error
|
---|
810 | EOF
|
---|
811 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
812 | { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
813 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
814 | if test -z "$ac_err"; then
|
---|
815 | :
|
---|
816 | else
|
---|
817 | echo "$ac_err" >&5
|
---|
818 | echo "configure: failed program was:" >&5
|
---|
819 | cat conftest.$ac_ext >&5
|
---|
820 | rm -rf conftest*
|
---|
821 | CPP="${CC-cc} -nologo -E"
|
---|
822 | cat > conftest.$ac_ext <<EOF
|
---|
823 | #include <sys/types.h>
|
---|
824 | #line 825 "configure"
|
---|
825 | #include "confdefs.h"
|
---|
826 | #include <assert.h>
|
---|
827 | Syntax Error
|
---|
828 | EOF
|
---|
829 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
830 | { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
831 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
832 | if test -z "$ac_err"; then
|
---|
833 | :
|
---|
834 | else
|
---|
835 | echo "$ac_err" >&5
|
---|
836 | echo "configure: failed program was:" >&5
|
---|
837 | cat conftest.$ac_ext >&5
|
---|
838 | rm -rf conftest*
|
---|
839 | CPP=/lib/cpp
|
---|
840 | fi
|
---|
841 | rm -f conftest*
|
---|
842 | fi
|
---|
843 | rm -f conftest*
|
---|
844 | fi
|
---|
845 | rm -f conftest*
|
---|
846 | ac_cv_prog_CPP="$CPP"
|
---|
847 | fi
|
---|
848 | CPP="$ac_cv_prog_CPP"
|
---|
849 | else
|
---|
850 | ac_cv_prog_CPP="$CPP"
|
---|
851 | fi
|
---|
852 | echo "$ac_t""$CPP" 1>&6
|
---|
853 |
|
---|
854 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
855 | echo "configure:856: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
856 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
857 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
858 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
859 | else
|
---|
860 | cat > conftestmake <<\EOF
|
---|
861 | all:
|
---|
862 | @echo 'ac_maketemp="${MAKE}"'
|
---|
863 | EOF
|
---|
864 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
865 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
866 | if test -n "$ac_maketemp"; then
|
---|
867 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
868 | else
|
---|
869 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
870 | fi
|
---|
871 | rm -f conftestmake
|
---|
872 | fi
|
---|
873 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
874 | echo "$ac_t""yes" 1>&6
|
---|
875 | SET_MAKE=
|
---|
876 | else
|
---|
877 | echo "$ac_t""no" 1>&6
|
---|
878 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
879 | fi
|
---|
880 |
|
---|
881 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
882 | set dummy gcc; ac_word=$2
|
---|
883 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
884 | echo "configure:885: checking for $ac_word" >&5
|
---|
885 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
886 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
887 | else
|
---|
888 | if test -n "$CC"; then
|
---|
889 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
890 | else
|
---|
891 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
892 | ac_dummy="$PATH"
|
---|
893 | for ac_dir in $ac_dummy; do
|
---|
894 | test -z "$ac_dir" && ac_dir=.
|
---|
895 | if test -f $ac_dir/$ac_word -o \
|
---|
896 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
897 | ac_cv_prog_CC="gcc"
|
---|
898 | break
|
---|
899 | fi
|
---|
900 | done
|
---|
901 | IFS="$ac_save_ifs"
|
---|
902 | fi
|
---|
903 | fi
|
---|
904 | CC="$ac_cv_prog_CC"
|
---|
905 | if test -n "$CC"; then
|
---|
906 | echo "$ac_t""$CC" 1>&6
|
---|
907 | else
|
---|
908 | echo "$ac_t""no" 1>&6
|
---|
909 | fi
|
---|
910 |
|
---|
911 | if test -z "$CC"; then
|
---|
912 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
913 | set dummy cc; ac_word=$2
|
---|
914 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
915 | echo "configure:916: checking for $ac_word" >&5
|
---|
916 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
917 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
918 | else
|
---|
919 | if test -n "$CC"; then
|
---|
920 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
921 | else
|
---|
922 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
923 | ac_prog_rejected=no
|
---|
924 | ac_dummy="$PATH"
|
---|
925 | for ac_dir in $ac_dummy; do
|
---|
926 | test -z "$ac_dir" && ac_dir=.
|
---|
927 | if test -f $ac_dir/$ac_word -o \
|
---|
928 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
929 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
930 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
931 | ac_prog_rejected=yes
|
---|
932 | continue
|
---|
933 | fi
|
---|
934 | ac_cv_prog_CC="cc"
|
---|
935 | break
|
---|
936 | fi
|
---|
937 | done
|
---|
938 | IFS="$ac_save_ifs"
|
---|
939 | if test $ac_prog_rejected = yes; then
|
---|
940 | # We found a bogon in the path, so make sure we never use it.
|
---|
941 | set dummy $ac_cv_prog_CC
|
---|
942 | shift
|
---|
943 | if test $# -gt 0; then
|
---|
944 | # We chose a different compiler from the bogus one.
|
---|
945 | # However, it has the same basename, so the bogon will be chosen
|
---|
946 | # first if we set CC to just the basename; use the full file name.
|
---|
947 | shift
|
---|
948 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
949 | shift
|
---|
950 | ac_cv_prog_CC="$@"
|
---|
951 | fi
|
---|
952 | fi
|
---|
953 | fi
|
---|
954 | fi
|
---|
955 | CC="$ac_cv_prog_CC"
|
---|
956 | if test -n "$CC"; then
|
---|
957 | echo "$ac_t""$CC" 1>&6
|
---|
958 | else
|
---|
959 | echo "$ac_t""no" 1>&6
|
---|
960 | fi
|
---|
961 |
|
---|
962 | if test -z "$CC"; then
|
---|
963 | case "`uname -s`" in
|
---|
964 | *win32* | *WIN32*)
|
---|
965 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
966 | set dummy cl; ac_word=$2
|
---|
967 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
968 | echo "configure:969: checking for $ac_word" >&5
|
---|
969 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
970 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
971 | else
|
---|
972 | if test -n "$CC"; then
|
---|
973 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
974 | else
|
---|
975 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
976 | ac_dummy="$PATH"
|
---|
977 | for ac_dir in $ac_dummy; do
|
---|
978 | test -z "$ac_dir" && ac_dir=.
|
---|
979 | if test -f $ac_dir/$ac_word -o \
|
---|
980 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
981 | ac_cv_prog_CC="cl"
|
---|
982 | break
|
---|
983 | fi
|
---|
984 | done
|
---|
985 | IFS="$ac_save_ifs"
|
---|
986 | fi
|
---|
987 | fi
|
---|
988 | CC="$ac_cv_prog_CC"
|
---|
989 | if test -n "$CC"; then
|
---|
990 | echo "$ac_t""$CC" 1>&6
|
---|
991 | else
|
---|
992 | echo "$ac_t""no" 1>&6
|
---|
993 | fi
|
---|
994 | ;;
|
---|
995 | esac
|
---|
996 | fi
|
---|
997 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
998 | fi
|
---|
999 |
|
---|
1000 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
1001 | echo "configure:1002: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
1002 |
|
---|
1003 | ac_ext=c
|
---|
1004 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1005 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1006 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1007 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1008 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1009 |
|
---|
1010 | cat > conftest.$ac_ext << EOF
|
---|
1011 |
|
---|
1012 | #line 1013 "configure"
|
---|
1013 | #include "confdefs.h"
|
---|
1014 |
|
---|
1015 | main(){return(0);}
|
---|
1016 | EOF
|
---|
1017 | if { (eval echo configure:1018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1018 | ac_cv_prog_cc_works=yes
|
---|
1019 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
1020 | if (./conftest; exit) 2>/dev/null; then
|
---|
1021 | ac_cv_prog_cc_cross=no
|
---|
1022 | else
|
---|
1023 | ac_cv_prog_cc_cross=yes
|
---|
1024 | fi
|
---|
1025 | else
|
---|
1026 | echo "configure: failed program was:" >&5
|
---|
1027 | cat conftest.$ac_ext >&5
|
---|
1028 | ac_cv_prog_cc_works=no
|
---|
1029 | fi
|
---|
1030 | rm -fr conftest*
|
---|
1031 | ac_ext=c
|
---|
1032 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1033 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1034 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1035 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1036 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1037 |
|
---|
1038 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
1039 | if test $ac_cv_prog_cc_works = no; then
|
---|
1040 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
1041 | fi
|
---|
1042 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
1043 | echo "configure:1044: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
1044 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
1045 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1046 |
|
---|
1047 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
1048 | echo "configure:1049: checking whether we are using GNU C" >&5
|
---|
1049 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
1050 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1051 | else
|
---|
1052 | cat > conftest.c <<EOF
|
---|
1053 | #ifdef __GNUC__
|
---|
1054 | yes;
|
---|
1055 | #endif
|
---|
1056 | EOF
|
---|
1057 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1058 | ac_cv_prog_gcc=yes
|
---|
1059 | else
|
---|
1060 | ac_cv_prog_gcc=no
|
---|
1061 | fi
|
---|
1062 | fi
|
---|
1063 |
|
---|
1064 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
1065 |
|
---|
1066 | if test $ac_cv_prog_gcc = yes; then
|
---|
1067 | GCC=yes
|
---|
1068 | else
|
---|
1069 | GCC=
|
---|
1070 | fi
|
---|
1071 |
|
---|
1072 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
1073 | ac_save_CFLAGS="$CFLAGS"
|
---|
1074 | CFLAGS=
|
---|
1075 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1076 | echo "configure:1077: checking whether ${CC-cc} accepts -g" >&5
|
---|
1077 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1078 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1079 | else
|
---|
1080 | echo 'void f(){}' > conftest.c
|
---|
1081 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1082 | ac_cv_prog_cc_g=yes
|
---|
1083 | else
|
---|
1084 | ac_cv_prog_cc_g=no
|
---|
1085 | fi
|
---|
1086 | rm -f conftest*
|
---|
1087 |
|
---|
1088 | fi
|
---|
1089 |
|
---|
1090 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1091 | if test "$ac_test_CFLAGS" = set; then
|
---|
1092 | CFLAGS="$ac_save_CFLAGS"
|
---|
1093 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1094 | if test "$GCC" = yes; then
|
---|
1095 | CFLAGS="-g -O2"
|
---|
1096 | else
|
---|
1097 | CFLAGS="-g"
|
---|
1098 | fi
|
---|
1099 | else
|
---|
1100 | if test "$GCC" = yes; then
|
---|
1101 | CFLAGS="-O2"
|
---|
1102 | else
|
---|
1103 | CFLAGS=
|
---|
1104 | fi
|
---|
1105 | fi
|
---|
1106 |
|
---|
1107 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1108 | set dummy ranlib; ac_word=$2
|
---|
1109 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1110 | echo "configure:1111: checking for $ac_word" >&5
|
---|
1111 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1112 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1113 | else
|
---|
1114 | if test -n "$RANLIB"; then
|
---|
1115 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1116 | else
|
---|
1117 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1118 | ac_dummy="$PATH"
|
---|
1119 | for ac_dir in $ac_dummy; do
|
---|
1120 | test -z "$ac_dir" && ac_dir=.
|
---|
1121 | if test -f $ac_dir/$ac_word -o \
|
---|
1122 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1123 | ac_cv_prog_RANLIB="ranlib"
|
---|
1124 | break
|
---|
1125 | fi
|
---|
1126 | done
|
---|
1127 | IFS="$ac_save_ifs"
|
---|
1128 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1129 | fi
|
---|
1130 | fi
|
---|
1131 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1132 | if test -n "$RANLIB"; then
|
---|
1133 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1134 | else
|
---|
1135 | echo "$ac_t""no" 1>&6
|
---|
1136 | fi
|
---|
1137 |
|
---|
1138 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
1139 | echo "configure:1140: checking for POSIXized ISC" >&5
|
---|
1140 | if test -d /etc/conf/kconfig.d &&
|
---|
1141 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
1142 | then
|
---|
1143 | echo "$ac_t""yes" 1>&6
|
---|
1144 | ISC=yes # If later tests want to check for ISC.
|
---|
1145 | cat >> confdefs.h <<\EOF
|
---|
1146 | #define _POSIX_SOURCE 1
|
---|
1147 | EOF
|
---|
1148 |
|
---|
1149 | if test "$GCC" = yes; then
|
---|
1150 | CC="$CC -posix"
|
---|
1151 | else
|
---|
1152 | CC="$CC -Xp"
|
---|
1153 | fi
|
---|
1154 | else
|
---|
1155 | echo "$ac_t""no" 1>&6
|
---|
1156 | ISC=
|
---|
1157 | fi
|
---|
1158 |
|
---|
1159 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1160 | echo "configure:1161: checking for ANSI C header files" >&5
|
---|
1161 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1162 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1163 | else
|
---|
1164 | cat > conftest.$ac_ext <<EOF
|
---|
1165 | #include <sys/types.h>
|
---|
1166 | #line 1167 "configure"
|
---|
1167 | #include "confdefs.h"
|
---|
1168 | #include <stdlib.h>
|
---|
1169 | #include <stdarg.h>
|
---|
1170 | #include <string.h>
|
---|
1171 | #include <float.h>
|
---|
1172 | EOF
|
---|
1173 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1174 | { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1175 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1176 | if test -z "$ac_err"; then
|
---|
1177 | rm -rf conftest*
|
---|
1178 | ac_cv_header_stdc=yes
|
---|
1179 | else
|
---|
1180 | echo "$ac_err" >&5
|
---|
1181 | echo "configure: failed program was:" >&5
|
---|
1182 | cat conftest.$ac_ext >&5
|
---|
1183 | rm -rf conftest*
|
---|
1184 | ac_cv_header_stdc=no
|
---|
1185 | fi
|
---|
1186 | rm -f conftest*
|
---|
1187 |
|
---|
1188 | if test $ac_cv_header_stdc = yes; then
|
---|
1189 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1190 | cat > conftest.$ac_ext <<EOF
|
---|
1191 | #line 1192 "configure"
|
---|
1192 | #include "confdefs.h"
|
---|
1193 | #include <string.h>
|
---|
1194 | EOF
|
---|
1195 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1196 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1197 | :
|
---|
1198 | else
|
---|
1199 | rm -rf conftest*
|
---|
1200 | ac_cv_header_stdc=no
|
---|
1201 | fi
|
---|
1202 | rm -f conftest*
|
---|
1203 |
|
---|
1204 | fi
|
---|
1205 |
|
---|
1206 | if test $ac_cv_header_stdc = yes; then
|
---|
1207 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1208 | cat > conftest.$ac_ext <<EOF
|
---|
1209 | #line 1210 "configure"
|
---|
1210 | #include "confdefs.h"
|
---|
1211 | #include <stdlib.h>
|
---|
1212 | EOF
|
---|
1213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1214 | egrep "free" >/dev/null 2>&1; then
|
---|
1215 | :
|
---|
1216 | else
|
---|
1217 | rm -rf conftest*
|
---|
1218 | ac_cv_header_stdc=no
|
---|
1219 | fi
|
---|
1220 | rm -f conftest*
|
---|
1221 |
|
---|
1222 | fi
|
---|
1223 |
|
---|
1224 | if test $ac_cv_header_stdc = yes; then
|
---|
1225 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1226 | if test "$cross_compiling" = yes; then
|
---|
1227 | :
|
---|
1228 | else
|
---|
1229 | cat > conftest.$ac_ext <<EOF
|
---|
1230 | #line 1231 "configure"
|
---|
1231 | #include "confdefs.h"
|
---|
1232 | #include <ctype.h>
|
---|
1233 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1234 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1235 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1236 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1237 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1238 | exit (0); }
|
---|
1239 |
|
---|
1240 | EOF
|
---|
1241 | if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1242 | then
|
---|
1243 | :
|
---|
1244 | else
|
---|
1245 | echo "configure: failed program was:" >&5
|
---|
1246 | cat conftest.$ac_ext >&5
|
---|
1247 | rm -fr conftest*
|
---|
1248 | ac_cv_header_stdc=no
|
---|
1249 | fi
|
---|
1250 | rm -fr conftest*
|
---|
1251 | fi
|
---|
1252 |
|
---|
1253 | fi
|
---|
1254 | fi
|
---|
1255 |
|
---|
1256 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1257 | if test $ac_cv_header_stdc = yes; then
|
---|
1258 | cat >> confdefs.h <<\EOF
|
---|
1259 | #define STDC_HEADERS 1
|
---|
1260 | EOF
|
---|
1261 |
|
---|
1262 | fi
|
---|
1263 |
|
---|
1264 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
1265 | echo "configure:1266: checking for working const" >&5
|
---|
1266 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
1267 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1268 | else
|
---|
1269 | cat > conftest.$ac_ext <<EOF
|
---|
1270 | #line 1271 "configure"
|
---|
1271 | #include "confdefs.h"
|
---|
1272 |
|
---|
1273 | int main() {
|
---|
1274 |
|
---|
1275 | /* Ultrix mips cc rejects this. */
|
---|
1276 | typedef int charset[2]; const charset x;
|
---|
1277 | /* SunOS 4.1.1 cc rejects this. */
|
---|
1278 | char const *const *ccp;
|
---|
1279 | char **p;
|
---|
1280 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
1281 | struct point {int x, y;};
|
---|
1282 | static struct point const zero = {0,0};
|
---|
1283 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
1284 | It does not let you subtract one const X* pointer from another in an arm
|
---|
1285 | of an if-expression whose if-part is not a constant expression */
|
---|
1286 | const char *g = "string";
|
---|
1287 | ccp = &g + (g ? g-g : 0);
|
---|
1288 | /* HPUX 7.0 cc rejects these. */
|
---|
1289 | ++ccp;
|
---|
1290 | p = (char**) ccp;
|
---|
1291 | ccp = (char const *const *) p;
|
---|
1292 | { /* SCO 3.2v4 cc rejects this. */
|
---|
1293 | char *t;
|
---|
1294 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
1295 |
|
---|
1296 | *t++ = 0;
|
---|
1297 | }
|
---|
1298 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
1299 | int x[] = {25, 17};
|
---|
1300 | const int *foo = &x[0];
|
---|
1301 | ++foo;
|
---|
1302 | }
|
---|
1303 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
1304 | typedef const int *iptr;
|
---|
1305 | iptr p = 0;
|
---|
1306 | ++p;
|
---|
1307 | }
|
---|
1308 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
1309 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
1310 | struct s { int j; const int *ap[3]; };
|
---|
1311 | struct s *b; b->j = 5;
|
---|
1312 | }
|
---|
1313 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
1314 | const int foo = 10;
|
---|
1315 | }
|
---|
1316 |
|
---|
1317 | ; return 0; }
|
---|
1318 | EOF
|
---|
1319 | if { (eval echo configure:1320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1320 | rm -rf conftest*
|
---|
1321 | ac_cv_c_const=yes
|
---|
1322 | else
|
---|
1323 | echo "configure: failed program was:" >&5
|
---|
1324 | cat conftest.$ac_ext >&5
|
---|
1325 | rm -rf conftest*
|
---|
1326 | ac_cv_c_const=no
|
---|
1327 | fi
|
---|
1328 | rm -f conftest*
|
---|
1329 | fi
|
---|
1330 |
|
---|
1331 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
1332 | if test $ac_cv_c_const = no; then
|
---|
1333 | cat >> confdefs.h <<\EOF
|
---|
1334 | #define const
|
---|
1335 | EOF
|
---|
1336 |
|
---|
1337 | fi
|
---|
1338 |
|
---|
1339 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
1340 | echo "configure:1341: checking for inline" >&5
|
---|
1341 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
1342 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1343 | else
|
---|
1344 | ac_cv_c_inline=no
|
---|
1345 | for ac_kw in inline __inline__ __inline; do
|
---|
1346 | cat > conftest.$ac_ext <<EOF
|
---|
1347 | #line 1348 "configure"
|
---|
1348 | #include "confdefs.h"
|
---|
1349 |
|
---|
1350 | int main() {
|
---|
1351 | } $ac_kw foo() {
|
---|
1352 | ; return 0; }
|
---|
1353 | EOF
|
---|
1354 | if { (eval echo configure:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1355 | rm -rf conftest*
|
---|
1356 | ac_cv_c_inline=$ac_kw; break
|
---|
1357 | else
|
---|
1358 | echo "configure: failed program was:" >&5
|
---|
1359 | cat conftest.$ac_ext >&5
|
---|
1360 | fi
|
---|
1361 | rm -f conftest*
|
---|
1362 | done
|
---|
1363 |
|
---|
1364 | fi
|
---|
1365 |
|
---|
1366 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
1367 | case "$ac_cv_c_inline" in
|
---|
1368 | inline | yes) ;;
|
---|
1369 | no) cat >> confdefs.h <<\EOF
|
---|
1370 | #define inline
|
---|
1371 | EOF
|
---|
1372 | ;;
|
---|
1373 | *) cat >> confdefs.h <<EOF
|
---|
1374 | #define inline $ac_cv_c_inline
|
---|
1375 | EOF
|
---|
1376 | ;;
|
---|
1377 | esac
|
---|
1378 |
|
---|
1379 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
1380 | echo "configure:1381: checking for off_t" >&5
|
---|
1381 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
1382 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1383 | else
|
---|
1384 | cat > conftest.$ac_ext <<EOF
|
---|
1385 | #line 1386 "configure"
|
---|
1386 | #include "confdefs.h"
|
---|
1387 | #include <sys/types.h>
|
---|
1388 | #if STDC_HEADERS
|
---|
1389 | #include <stdlib.h>
|
---|
1390 | #include <stddef.h>
|
---|
1391 | #endif
|
---|
1392 | EOF
|
---|
1393 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1394 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1395 | rm -rf conftest*
|
---|
1396 | ac_cv_type_off_t=yes
|
---|
1397 | else
|
---|
1398 | rm -rf conftest*
|
---|
1399 | ac_cv_type_off_t=no
|
---|
1400 | fi
|
---|
1401 | rm -f conftest*
|
---|
1402 |
|
---|
1403 | fi
|
---|
1404 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
1405 | if test $ac_cv_type_off_t = no; then
|
---|
1406 | cat >> confdefs.h <<\EOF
|
---|
1407 | #define off_t long
|
---|
1408 | EOF
|
---|
1409 |
|
---|
1410 | fi
|
---|
1411 |
|
---|
1412 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
1413 | echo "configure:1414: checking for size_t" >&5
|
---|
1414 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
1415 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1416 | else
|
---|
1417 | cat > conftest.$ac_ext <<EOF
|
---|
1418 | #line 1419 "configure"
|
---|
1419 | #include "confdefs.h"
|
---|
1420 | #include <sys/types.h>
|
---|
1421 | #if STDC_HEADERS
|
---|
1422 | #include <stdlib.h>
|
---|
1423 | #include <stddef.h>
|
---|
1424 | #endif
|
---|
1425 | EOF
|
---|
1426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1427 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1428 | rm -rf conftest*
|
---|
1429 | ac_cv_type_size_t=yes
|
---|
1430 | else
|
---|
1431 | rm -rf conftest*
|
---|
1432 | ac_cv_type_size_t=no
|
---|
1433 | fi
|
---|
1434 | rm -f conftest*
|
---|
1435 |
|
---|
1436 | fi
|
---|
1437 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
1438 | if test $ac_cv_type_size_t = no; then
|
---|
1439 | cat >> confdefs.h <<\EOF
|
---|
1440 | #define size_t unsigned
|
---|
1441 | EOF
|
---|
1442 |
|
---|
1443 | fi
|
---|
1444 |
|
---|
1445 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
1446 | # for constant arguments. Useless!
|
---|
1447 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
1448 | echo "configure:1449: checking for working alloca.h" >&5
|
---|
1449 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
1450 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1451 | else
|
---|
1452 | cat > conftest.$ac_ext <<EOF
|
---|
1453 | #line 1454 "configure"
|
---|
1454 | #include "confdefs.h"
|
---|
1455 | #include <alloca.h>
|
---|
1456 | int main() {
|
---|
1457 | char *p = alloca(2 * sizeof(int));
|
---|
1458 | ; return 0; }
|
---|
1459 | EOF
|
---|
1460 | if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1461 | rm -rf conftest*
|
---|
1462 | ac_cv_header_alloca_h=yes
|
---|
1463 | else
|
---|
1464 | echo "configure: failed program was:" >&5
|
---|
1465 | cat conftest.$ac_ext >&5
|
---|
1466 | rm -rf conftest*
|
---|
1467 | ac_cv_header_alloca_h=no
|
---|
1468 | fi
|
---|
1469 | rm -f conftest*
|
---|
1470 | fi
|
---|
1471 |
|
---|
1472 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
1473 | if test $ac_cv_header_alloca_h = yes; then
|
---|
1474 | cat >> confdefs.h <<\EOF
|
---|
1475 | #define HAVE_ALLOCA_H 1
|
---|
1476 | EOF
|
---|
1477 |
|
---|
1478 | fi
|
---|
1479 |
|
---|
1480 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
1481 | echo "configure:1482: checking for alloca" >&5
|
---|
1482 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
1483 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1484 | else
|
---|
1485 | cat > conftest.$ac_ext <<EOF
|
---|
1486 | #line 1487 "configure"
|
---|
1487 | #include "confdefs.h"
|
---|
1488 |
|
---|
1489 | #ifdef __GNUC__
|
---|
1490 | # define alloca __builtin_alloca
|
---|
1491 | #else
|
---|
1492 | # ifdef _MSC_VER
|
---|
1493 | # include <malloc.h>
|
---|
1494 | # define alloca _alloca
|
---|
1495 | # else
|
---|
1496 | # if HAVE_ALLOCA_H
|
---|
1497 | # include <alloca.h>
|
---|
1498 | # else
|
---|
1499 | # ifdef _AIX
|
---|
1500 | #pragma alloca
|
---|
1501 | # else
|
---|
1502 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
1503 | char *alloca ();
|
---|
1504 | # endif
|
---|
1505 | # endif
|
---|
1506 | # endif
|
---|
1507 | # endif
|
---|
1508 | #endif
|
---|
1509 |
|
---|
1510 | int main() {
|
---|
1511 | char *p = (char *) alloca(1);
|
---|
1512 | ; return 0; }
|
---|
1513 | EOF
|
---|
1514 | if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1515 | rm -rf conftest*
|
---|
1516 | ac_cv_func_alloca_works=yes
|
---|
1517 | else
|
---|
1518 | echo "configure: failed program was:" >&5
|
---|
1519 | cat conftest.$ac_ext >&5
|
---|
1520 | rm -rf conftest*
|
---|
1521 | ac_cv_func_alloca_works=no
|
---|
1522 | fi
|
---|
1523 | rm -f conftest*
|
---|
1524 | fi
|
---|
1525 |
|
---|
1526 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
1527 | if test $ac_cv_func_alloca_works = yes; then
|
---|
1528 | cat >> confdefs.h <<\EOF
|
---|
1529 | #define HAVE_ALLOCA 1
|
---|
1530 | EOF
|
---|
1531 |
|
---|
1532 | fi
|
---|
1533 |
|
---|
1534 | if test $ac_cv_func_alloca_works = no; then
|
---|
1535 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
1536 | # that cause trouble. Some versions do not even contain alloca or
|
---|
1537 | # contain a buggy version. If you still want to use their alloca,
|
---|
1538 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
1539 | ALLOCA=alloca.${ac_objext}
|
---|
1540 | cat >> confdefs.h <<\EOF
|
---|
1541 | #define C_ALLOCA 1
|
---|
1542 | EOF
|
---|
1543 |
|
---|
1544 |
|
---|
1545 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
1546 | echo "configure:1547: checking whether alloca needs Cray hooks" >&5
|
---|
1547 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
1548 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1549 | else
|
---|
1550 | cat > conftest.$ac_ext <<EOF
|
---|
1551 | #line 1552 "configure"
|
---|
1552 | #include "confdefs.h"
|
---|
1553 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
1554 | webecray
|
---|
1555 | #else
|
---|
1556 | wenotbecray
|
---|
1557 | #endif
|
---|
1558 |
|
---|
1559 | EOF
|
---|
1560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1561 | egrep "webecray" >/dev/null 2>&1; then
|
---|
1562 | rm -rf conftest*
|
---|
1563 | ac_cv_os_cray=yes
|
---|
1564 | else
|
---|
1565 | rm -rf conftest*
|
---|
1566 | ac_cv_os_cray=no
|
---|
1567 | fi
|
---|
1568 | rm -f conftest*
|
---|
1569 |
|
---|
1570 | fi
|
---|
1571 |
|
---|
1572 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
1573 | if test $ac_cv_os_cray = yes; then
|
---|
1574 | for ac_func in _getb67 GETB67 getb67; do
|
---|
1575 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
1576 | echo "configure:1577: checking for $ac_func" >&5
|
---|
1577 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
1578 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1579 | else
|
---|
1580 | cat > conftest.$ac_ext <<EOF
|
---|
1581 | #line 1582 "configure"
|
---|
1582 | #include "confdefs.h"
|
---|
1583 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1584 | which can conflict with char $ac_func(); below. */
|
---|
1585 | #include <assert.h>
|
---|
1586 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1587 | /* We use char because int might match the return type of a gcc2
|
---|
1588 | builtin and then its argument prototype would still apply. */
|
---|
1589 | char $ac_func();
|
---|
1590 |
|
---|
1591 | int main() {
|
---|
1592 |
|
---|
1593 | /* The GNU C library defines this for functions which it implements
|
---|
1594 | to always fail with ENOSYS. Some functions are actually named
|
---|
1595 | something starting with __ and the normal name is an alias. */
|
---|
1596 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
1597 | choke me
|
---|
1598 | #else
|
---|
1599 | $ac_func();
|
---|
1600 | #endif
|
---|
1601 |
|
---|
1602 | ; return 0; }
|
---|
1603 | EOF
|
---|
1604 | if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1605 | rm -rf conftest*
|
---|
1606 | eval "ac_cv_func_$ac_func=yes"
|
---|
1607 | else
|
---|
1608 | echo "configure: failed program was:" >&5
|
---|
1609 | cat conftest.$ac_ext >&5
|
---|
1610 | rm -rf conftest*
|
---|
1611 | eval "ac_cv_func_$ac_func=no"
|
---|
1612 | fi
|
---|
1613 | rm -f conftest*
|
---|
1614 | fi
|
---|
1615 |
|
---|
1616 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
1617 | echo "$ac_t""yes" 1>&6
|
---|
1618 | cat >> confdefs.h <<EOF
|
---|
1619 | #define CRAY_STACKSEG_END $ac_func
|
---|
1620 | EOF
|
---|
1621 |
|
---|
1622 | break
|
---|
1623 | else
|
---|
1624 | echo "$ac_t""no" 1>&6
|
---|
1625 | fi
|
---|
1626 |
|
---|
1627 | done
|
---|
1628 | fi
|
---|
1629 |
|
---|
1630 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
1631 | echo "configure:1632: checking stack direction for C alloca" >&5
|
---|
1632 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
1633 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1634 | else
|
---|
1635 | if test "$cross_compiling" = yes; then
|
---|
1636 | ac_cv_c_stack_direction=0
|
---|
1637 | else
|
---|
1638 | cat > conftest.$ac_ext <<EOF
|
---|
1639 | #line 1640 "configure"
|
---|
1640 | #include "confdefs.h"
|
---|
1641 | find_stack_direction ()
|
---|
1642 | {
|
---|
1643 | static char *addr = 0;
|
---|
1644 | auto char dummy;
|
---|
1645 | if (addr == 0)
|
---|
1646 | {
|
---|
1647 | addr = &dummy;
|
---|
1648 | return find_stack_direction ();
|
---|
1649 | }
|
---|
1650 | else
|
---|
1651 | return (&dummy > addr) ? 1 : -1;
|
---|
1652 | }
|
---|
1653 | main ()
|
---|
1654 | {
|
---|
1655 | exit (find_stack_direction() < 0);
|
---|
1656 | }
|
---|
1657 | EOF
|
---|
1658 | if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1659 | then
|
---|
1660 | ac_cv_c_stack_direction=1
|
---|
1661 | else
|
---|
1662 | echo "configure: failed program was:" >&5
|
---|
1663 | cat conftest.$ac_ext >&5
|
---|
1664 | rm -fr conftest*
|
---|
1665 | ac_cv_c_stack_direction=-1
|
---|
1666 | fi
|
---|
1667 | rm -fr conftest*
|
---|
1668 | fi
|
---|
1669 |
|
---|
1670 | fi
|
---|
1671 |
|
---|
1672 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
1673 | cat >> confdefs.h <<EOF
|
---|
1674 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
1675 | EOF
|
---|
1676 |
|
---|
1677 | fi
|
---|
1678 |
|
---|
1679 | for ac_hdr in unistd.h
|
---|
1680 | do
|
---|
1681 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
1682 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
1683 | echo "configure:1684: checking for $ac_hdr" >&5
|
---|
1684 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1685 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1686 | else
|
---|
1687 | cat > conftest.$ac_ext <<EOF
|
---|
1688 | #include <sys/types.h>
|
---|
1689 | #line 1690 "configure"
|
---|
1690 | #include "confdefs.h"
|
---|
1691 | #include <$ac_hdr>
|
---|
1692 | EOF
|
---|
1693 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1694 | { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1695 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1696 | if test -z "$ac_err"; then
|
---|
1697 | rm -rf conftest*
|
---|
1698 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1699 | else
|
---|
1700 | echo "$ac_err" >&5
|
---|
1701 | echo "configure: failed program was:" >&5
|
---|
1702 | cat conftest.$ac_ext >&5
|
---|
1703 | rm -rf conftest*
|
---|
1704 | eval "ac_cv_header_$ac_safe=no"
|
---|
1705 | fi
|
---|
1706 | rm -f conftest*
|
---|
1707 | fi
|
---|
1708 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1709 | echo "$ac_t""yes" 1>&6
|
---|
1710 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
1711 | cat >> confdefs.h <<EOF
|
---|
1712 | #define $ac_tr_hdr 1
|
---|
1713 | EOF
|
---|
1714 |
|
---|
1715 | else
|
---|
1716 | echo "$ac_t""no" 1>&6
|
---|
1717 | fi
|
---|
1718 | done
|
---|
1719 |
|
---|
1720 | for ac_func in getpagesize
|
---|
1721 | do
|
---|
1722 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
1723 | echo "configure:1724: checking for $ac_func" >&5
|
---|
1724 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
1725 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1726 | else
|
---|
1727 | cat > conftest.$ac_ext <<EOF
|
---|
1728 | #line 1729 "configure"
|
---|
1729 | #include "confdefs.h"
|
---|
1730 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1731 | which can conflict with char $ac_func(); below. */
|
---|
1732 | #include <assert.h>
|
---|
1733 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
1734 | /* We use char because int might match the return type of a gcc2
|
---|
1735 | builtin and then its argument prototype would still apply. */
|
---|
1736 | char $ac_func();
|
---|
1737 |
|
---|
1738 | int main() {
|
---|
1739 |
|
---|
1740 | /* The GNU C library defines this for functions which it implements
|
---|
1741 | to always fail with ENOSYS. Some functions are actually named
|
---|
1742 | something starting with __ and the normal name is an alias. */
|
---|
1743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
1744 | choke me
|
---|
1745 | #else
|
---|
1746 | $ac_func();
|
---|
1747 | #endif
|
---|
1748 |
|
---|
1749 | ; return 0; }
|
---|
1750 | EOF
|
---|
1751 | if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1752 | rm -rf conftest*
|
---|
1753 | eval "ac_cv_func_$ac_func=yes"
|
---|
1754 | else
|
---|
1755 | echo "configure: failed program was:" >&5
|
---|
1756 | cat conftest.$ac_ext >&5
|
---|
1757 | rm -rf conftest*
|
---|
1758 | eval "ac_cv_func_$ac_func=no"
|
---|
1759 | fi
|
---|
1760 | rm -f conftest*
|
---|
1761 | fi
|
---|
1762 |
|
---|
1763 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
1764 | echo "$ac_t""yes" 1>&6
|
---|
1765 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
1766 | cat >> confdefs.h <<EOF
|
---|
1767 | #define $ac_tr_func 1
|
---|
1768 | EOF
|
---|
1769 |
|
---|
1770 | else
|
---|
1771 | echo "$ac_t""no" 1>&6
|
---|
1772 | fi
|
---|
1773 | done
|
---|
1774 |
|
---|
1775 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
1776 | echo "configure:1777: checking for working mmap" >&5
|
---|
1777 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
1778 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1779 | else
|
---|
1780 | if test "$cross_compiling" = yes; then
|
---|
1781 | ac_cv_func_mmap_fixed_mapped=no
|
---|
1782 | else
|
---|
1783 | cat > conftest.$ac_ext <<EOF
|
---|
1784 | #line 1785 "configure"
|
---|
1785 | #include "confdefs.h"
|
---|
1786 |
|
---|
1787 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
1788 | Here is a matrix of mmap possibilities:
|
---|
1789 | mmap private not fixed
|
---|
1790 | mmap private fixed at somewhere currently unmapped
|
---|
1791 | mmap private fixed at somewhere already mapped
|
---|
1792 | mmap shared not fixed
|
---|
1793 | mmap shared fixed at somewhere currently unmapped
|
---|
1794 | mmap shared fixed at somewhere already mapped
|
---|
1795 | For private mappings, we should verify that changes cannot be read()
|
---|
1796 | back from the file, nor mmap's back from the file at a different
|
---|
1797 | address. (There have been systems where private was not correctly
|
---|
1798 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
1799 | VM page cache was not coherent with the filesystem buffer cache
|
---|
1800 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
1801 | For shared mappings, we should conversely verify that changes get
|
---|
1802 | propogated back to all the places they're supposed to be.
|
---|
1803 |
|
---|
1804 | Grep wants private fixed already mapped.
|
---|
1805 | The main things grep needs to know about mmap are:
|
---|
1806 | * does it exist and is it safe to write into the mmap'd area
|
---|
1807 | * how to use it (BSD variants) */
|
---|
1808 | #include <sys/types.h>
|
---|
1809 | #include <fcntl.h>
|
---|
1810 | #include <sys/mman.h>
|
---|
1811 |
|
---|
1812 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
1813 | #ifndef HAVE_GETPAGESIZE
|
---|
1814 | # ifdef HAVE_UNISTD_H
|
---|
1815 | # include <unistd.h>
|
---|
1816 | # endif
|
---|
1817 |
|
---|
1818 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
1819 | # ifndef HAVE_SYS_PARAM_H
|
---|
1820 | # define HAVE_SYS_PARAM_H 1
|
---|
1821 | # endif
|
---|
1822 |
|
---|
1823 | # ifdef _SC_PAGESIZE
|
---|
1824 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
1825 | # else /* no _SC_PAGESIZE */
|
---|
1826 | # ifdef HAVE_SYS_PARAM_H
|
---|
1827 | # include <sys/param.h>
|
---|
1828 | # ifdef EXEC_PAGESIZE
|
---|
1829 | # define getpagesize() EXEC_PAGESIZE
|
---|
1830 | # else /* no EXEC_PAGESIZE */
|
---|
1831 | # ifdef NBPG
|
---|
1832 | # define getpagesize() NBPG * CLSIZE
|
---|
1833 | # ifndef CLSIZE
|
---|
1834 | # define CLSIZE 1
|
---|
1835 | # endif /* no CLSIZE */
|
---|
1836 | # else /* no NBPG */
|
---|
1837 | # ifdef NBPC
|
---|
1838 | # define getpagesize() NBPC
|
---|
1839 | # else /* no NBPC */
|
---|
1840 | # ifdef PAGESIZE
|
---|
1841 | # define getpagesize() PAGESIZE
|
---|
1842 | # endif /* PAGESIZE */
|
---|
1843 | # endif /* no NBPC */
|
---|
1844 | # endif /* no NBPG */
|
---|
1845 | # endif /* no EXEC_PAGESIZE */
|
---|
1846 | # else /* no HAVE_SYS_PARAM_H */
|
---|
1847 | # define getpagesize() 8192 /* punt totally */
|
---|
1848 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
1849 | # endif /* no _SC_PAGESIZE */
|
---|
1850 |
|
---|
1851 | #endif /* no HAVE_GETPAGESIZE */
|
---|
1852 |
|
---|
1853 | #ifdef __cplusplus
|
---|
1854 | extern "C" { void *malloc(unsigned); }
|
---|
1855 | #else
|
---|
1856 | char *malloc();
|
---|
1857 | #endif
|
---|
1858 |
|
---|
1859 | int
|
---|
1860 | main()
|
---|
1861 | {
|
---|
1862 | char *data, *data2, *data3;
|
---|
1863 | int i, pagesize;
|
---|
1864 | int fd;
|
---|
1865 |
|
---|
1866 | pagesize = getpagesize();
|
---|
1867 |
|
---|
1868 | /*
|
---|
1869 | * First, make a file with some known garbage in it.
|
---|
1870 | */
|
---|
1871 | data = malloc(pagesize);
|
---|
1872 | if (!data)
|
---|
1873 | exit(1);
|
---|
1874 | for (i = 0; i < pagesize; ++i)
|
---|
1875 | *(data + i) = rand();
|
---|
1876 | umask(0);
|
---|
1877 | fd = creat("conftestmmap", 0600);
|
---|
1878 | if (fd < 0)
|
---|
1879 | exit(1);
|
---|
1880 | if (write(fd, data, pagesize) != pagesize)
|
---|
1881 | exit(1);
|
---|
1882 | close(fd);
|
---|
1883 |
|
---|
1884 | /*
|
---|
1885 | * Next, try to mmap the file at a fixed address which
|
---|
1886 | * already has something else allocated at it. If we can,
|
---|
1887 | * also make sure that we see the same garbage.
|
---|
1888 | */
|
---|
1889 | fd = open("conftestmmap", O_RDWR);
|
---|
1890 | if (fd < 0)
|
---|
1891 | exit(1);
|
---|
1892 | data2 = malloc(2 * pagesize);
|
---|
1893 | if (!data2)
|
---|
1894 | exit(1);
|
---|
1895 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
1896 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
1897 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
1898 | exit(1);
|
---|
1899 | for (i = 0; i < pagesize; ++i)
|
---|
1900 | if (*(data + i) != *(data2 + i))
|
---|
1901 | exit(1);
|
---|
1902 |
|
---|
1903 | /*
|
---|
1904 | * Finally, make sure that changes to the mapped area
|
---|
1905 | * do not percolate back to the file as seen by read().
|
---|
1906 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
1907 | */
|
---|
1908 | for (i = 0; i < pagesize; ++i)
|
---|
1909 | *(data2 + i) = *(data2 + i) + 1;
|
---|
1910 | data3 = malloc(pagesize);
|
---|
1911 | if (!data3)
|
---|
1912 | exit(1);
|
---|
1913 | if (read(fd, data3, pagesize) != pagesize)
|
---|
1914 | exit(1);
|
---|
1915 | for (i = 0; i < pagesize; ++i)
|
---|
1916 | if (*(data + i) != *(data3 + i))
|
---|
1917 | exit(1);
|
---|
1918 | close(fd);
|
---|
1919 | unlink("conftestmmap");
|
---|
1920 | exit(0);
|
---|
1921 | }
|
---|
1922 |
|
---|
1923 | EOF
|
---|
1924 | if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1925 | then
|
---|
1926 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
1927 | else
|
---|
1928 | echo "configure: failed program was:" >&5
|
---|
1929 | cat conftest.$ac_ext >&5
|
---|
1930 | rm -fr conftest*
|
---|
1931 | ac_cv_func_mmap_fixed_mapped=no
|
---|
1932 | fi
|
---|
1933 | rm -fr conftest*
|
---|
1934 | fi
|
---|
1935 |
|
---|
1936 | fi
|
---|
1937 |
|
---|
1938 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
1939 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
1940 | cat >> confdefs.h <<\EOF
|
---|
1941 | #define HAVE_MMAP 1
|
---|
1942 | EOF
|
---|
1943 |
|
---|
1944 | fi
|
---|
1945 |
|
---|
1946 |
|
---|
1947 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
1948 | unistd.h values.h sys/param.h
|
---|
1949 | do
|
---|
1950 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
1951 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
1952 | echo "configure:1953: checking for $ac_hdr" >&5
|
---|
1953 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1954 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1955 | else
|
---|
1956 | cat > conftest.$ac_ext <<EOF
|
---|
1957 | #include <sys/types.h>
|
---|
1958 | #line 1959 "configure"
|
---|
1959 | #include "confdefs.h"
|
---|
1960 | #include <$ac_hdr>
|
---|
1961 | EOF
|
---|
1962 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1963 | { (eval echo configure:1964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1964 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1965 | if test -z "$ac_err"; then
|
---|
1966 | rm -rf conftest*
|
---|
1967 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1968 | else
|
---|
1969 | echo "$ac_err" >&5
|
---|
1970 | echo "configure: failed program was:" >&5
|
---|
1971 | cat conftest.$ac_ext >&5
|
---|
1972 | rm -rf conftest*
|
---|
1973 | eval "ac_cv_header_$ac_safe=no"
|
---|
1974 | fi
|
---|
1975 | rm -f conftest*
|
---|
1976 | fi
|
---|
1977 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1978 | echo "$ac_t""yes" 1>&6
|
---|
1979 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
1980 | cat >> confdefs.h <<EOF
|
---|
1981 | #define $ac_tr_hdr 1
|
---|
1982 | EOF
|
---|
1983 |
|
---|
1984 | else
|
---|
1985 | echo "$ac_t""no" 1>&6
|
---|
1986 | fi
|
---|
1987 | done
|
---|
1988 |
|
---|
1989 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
1990 | __argz_count __argz_stringify __argz_next
|
---|
1991 | do
|
---|
1992 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
1993 | echo "configure:1994: checking for $ac_func" >&5
|
---|
1994 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
1995 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1996 | else
|
---|
1997 | cat > conftest.$ac_ext <<EOF
|
---|
1998 | #line 1999 "configure"
|
---|
1999 | #include "confdefs.h"
|
---|
2000 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2001 | which can conflict with char $ac_func(); below. */
|
---|
2002 | #include <assert.h>
|
---|
2003 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2004 | /* We use char because int might match the return type of a gcc2
|
---|
2005 | builtin and then its argument prototype would still apply. */
|
---|
2006 | char $ac_func();
|
---|
2007 |
|
---|
2008 | int main() {
|
---|
2009 |
|
---|
2010 | /* The GNU C library defines this for functions which it implements
|
---|
2011 | to always fail with ENOSYS. Some functions are actually named
|
---|
2012 | something starting with __ and the normal name is an alias. */
|
---|
2013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2014 | choke me
|
---|
2015 | #else
|
---|
2016 | $ac_func();
|
---|
2017 | #endif
|
---|
2018 |
|
---|
2019 | ; return 0; }
|
---|
2020 | EOF
|
---|
2021 | if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2022 | rm -rf conftest*
|
---|
2023 | eval "ac_cv_func_$ac_func=yes"
|
---|
2024 | else
|
---|
2025 | echo "configure: failed program was:" >&5
|
---|
2026 | cat conftest.$ac_ext >&5
|
---|
2027 | rm -rf conftest*
|
---|
2028 | eval "ac_cv_func_$ac_func=no"
|
---|
2029 | fi
|
---|
2030 | rm -f conftest*
|
---|
2031 | fi
|
---|
2032 |
|
---|
2033 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2034 | echo "$ac_t""yes" 1>&6
|
---|
2035 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2036 | cat >> confdefs.h <<EOF
|
---|
2037 | #define $ac_tr_func 1
|
---|
2038 | EOF
|
---|
2039 |
|
---|
2040 | else
|
---|
2041 | echo "$ac_t""no" 1>&6
|
---|
2042 | fi
|
---|
2043 | done
|
---|
2044 |
|
---|
2045 |
|
---|
2046 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
2047 | for ac_func in stpcpy
|
---|
2048 | do
|
---|
2049 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2050 | echo "configure:2051: checking for $ac_func" >&5
|
---|
2051 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2052 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2053 | else
|
---|
2054 | cat > conftest.$ac_ext <<EOF
|
---|
2055 | #line 2056 "configure"
|
---|
2056 | #include "confdefs.h"
|
---|
2057 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2058 | which can conflict with char $ac_func(); below. */
|
---|
2059 | #include <assert.h>
|
---|
2060 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2061 | /* We use char because int might match the return type of a gcc2
|
---|
2062 | builtin and then its argument prototype would still apply. */
|
---|
2063 | char $ac_func();
|
---|
2064 |
|
---|
2065 | int main() {
|
---|
2066 |
|
---|
2067 | /* The GNU C library defines this for functions which it implements
|
---|
2068 | to always fail with ENOSYS. Some functions are actually named
|
---|
2069 | something starting with __ and the normal name is an alias. */
|
---|
2070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2071 | choke me
|
---|
2072 | #else
|
---|
2073 | $ac_func();
|
---|
2074 | #endif
|
---|
2075 |
|
---|
2076 | ; return 0; }
|
---|
2077 | EOF
|
---|
2078 | if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2079 | rm -rf conftest*
|
---|
2080 | eval "ac_cv_func_$ac_func=yes"
|
---|
2081 | else
|
---|
2082 | echo "configure: failed program was:" >&5
|
---|
2083 | cat conftest.$ac_ext >&5
|
---|
2084 | rm -rf conftest*
|
---|
2085 | eval "ac_cv_func_$ac_func=no"
|
---|
2086 | fi
|
---|
2087 | rm -f conftest*
|
---|
2088 | fi
|
---|
2089 |
|
---|
2090 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2091 | echo "$ac_t""yes" 1>&6
|
---|
2092 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2093 | cat >> confdefs.h <<EOF
|
---|
2094 | #define $ac_tr_func 1
|
---|
2095 | EOF
|
---|
2096 |
|
---|
2097 | else
|
---|
2098 | echo "$ac_t""no" 1>&6
|
---|
2099 | fi
|
---|
2100 | done
|
---|
2101 |
|
---|
2102 | fi
|
---|
2103 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
2104 | cat >> confdefs.h <<\EOF
|
---|
2105 | #define HAVE_STPCPY 1
|
---|
2106 | EOF
|
---|
2107 |
|
---|
2108 | fi
|
---|
2109 |
|
---|
2110 | if test $ac_cv_header_locale_h = yes; then
|
---|
2111 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
2112 | echo "configure:2113: checking for LC_MESSAGES" >&5
|
---|
2113 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
2114 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2115 | else
|
---|
2116 | cat > conftest.$ac_ext <<EOF
|
---|
2117 | #line 2118 "configure"
|
---|
2118 | #include "confdefs.h"
|
---|
2119 | #include <locale.h>
|
---|
2120 | int main() {
|
---|
2121 | return LC_MESSAGES
|
---|
2122 | ; return 0; }
|
---|
2123 | EOF
|
---|
2124 | if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2125 | rm -rf conftest*
|
---|
2126 | am_cv_val_LC_MESSAGES=yes
|
---|
2127 | else
|
---|
2128 | echo "configure: failed program was:" >&5
|
---|
2129 | cat conftest.$ac_ext >&5
|
---|
2130 | rm -rf conftest*
|
---|
2131 | am_cv_val_LC_MESSAGES=no
|
---|
2132 | fi
|
---|
2133 | rm -f conftest*
|
---|
2134 | fi
|
---|
2135 |
|
---|
2136 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
2137 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
2138 | cat >> confdefs.h <<\EOF
|
---|
2139 | #define HAVE_LC_MESSAGES 1
|
---|
2140 | EOF
|
---|
2141 |
|
---|
2142 | fi
|
---|
2143 | fi
|
---|
2144 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
2145 | echo "configure:2146: checking whether NLS is requested" >&5
|
---|
2146 | # Check whether --enable-nls or --disable-nls was given.
|
---|
2147 | if test "${enable_nls+set}" = set; then
|
---|
2148 | enableval="$enable_nls"
|
---|
2149 | USE_NLS=$enableval
|
---|
2150 | else
|
---|
2151 | USE_NLS=yes
|
---|
2152 | fi
|
---|
2153 |
|
---|
2154 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
2155 |
|
---|
2156 |
|
---|
2157 | USE_INCLUDED_LIBINTL=no
|
---|
2158 |
|
---|
2159 | if test "$USE_NLS" = "yes"; then
|
---|
2160 | cat >> confdefs.h <<\EOF
|
---|
2161 | #define ENABLE_NLS 1
|
---|
2162 | EOF
|
---|
2163 |
|
---|
2164 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
2165 | echo "configure:2166: checking whether included gettext is requested" >&5
|
---|
2166 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
2167 | if test "${with_included_gettext+set}" = set; then
|
---|
2168 | withval="$with_included_gettext"
|
---|
2169 | nls_cv_force_use_gnu_gettext=$withval
|
---|
2170 | else
|
---|
2171 | nls_cv_force_use_gnu_gettext=no
|
---|
2172 | fi
|
---|
2173 |
|
---|
2174 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
2175 |
|
---|
2176 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
2177 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
2178 | nls_cv_header_intl=
|
---|
2179 | nls_cv_header_libgt=
|
---|
2180 | CATOBJEXT=NONE
|
---|
2181 |
|
---|
2182 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
2183 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
2184 | echo "configure:2185: checking for libintl.h" >&5
|
---|
2185 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
2186 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2187 | else
|
---|
2188 | cat > conftest.$ac_ext <<EOF
|
---|
2189 | #include <sys/types.h>
|
---|
2190 | #line 2191 "configure"
|
---|
2191 | #include "confdefs.h"
|
---|
2192 | #include <libintl.h>
|
---|
2193 | EOF
|
---|
2194 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2195 | { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2196 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2197 | if test -z "$ac_err"; then
|
---|
2198 | rm -rf conftest*
|
---|
2199 | eval "ac_cv_header_$ac_safe=yes"
|
---|
2200 | else
|
---|
2201 | echo "$ac_err" >&5
|
---|
2202 | echo "configure: failed program was:" >&5
|
---|
2203 | cat conftest.$ac_ext >&5
|
---|
2204 | rm -rf conftest*
|
---|
2205 | eval "ac_cv_header_$ac_safe=no"
|
---|
2206 | fi
|
---|
2207 | rm -f conftest*
|
---|
2208 | fi
|
---|
2209 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
2210 | echo "$ac_t""yes" 1>&6
|
---|
2211 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
2212 | echo "configure:2213: checking for gettext in libc" >&5
|
---|
2213 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
2214 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2215 | else
|
---|
2216 | cat > conftest.$ac_ext <<EOF
|
---|
2217 | #line 2218 "configure"
|
---|
2218 | #include "confdefs.h"
|
---|
2219 | #include <libintl.h>
|
---|
2220 | int main() {
|
---|
2221 | return (int) gettext ("")
|
---|
2222 | ; return 0; }
|
---|
2223 | EOF
|
---|
2224 | if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2225 | rm -rf conftest*
|
---|
2226 | gt_cv_func_gettext_libc=yes
|
---|
2227 | else
|
---|
2228 | echo "configure: failed program was:" >&5
|
---|
2229 | cat conftest.$ac_ext >&5
|
---|
2230 | rm -rf conftest*
|
---|
2231 | gt_cv_func_gettext_libc=no
|
---|
2232 | fi
|
---|
2233 | rm -f conftest*
|
---|
2234 | fi
|
---|
2235 |
|
---|
2236 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
2237 |
|
---|
2238 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
2239 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
2240 | echo "configure:2241: checking for bindtextdomain in -lintl" >&5
|
---|
2241 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
2242 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
2243 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2244 | else
|
---|
2245 | ac_save_LIBS="$LIBS"
|
---|
2246 | LIBS="-lintl $LIBS"
|
---|
2247 | cat > conftest.$ac_ext <<EOF
|
---|
2248 | #line 2249 "configure"
|
---|
2249 | #include "confdefs.h"
|
---|
2250 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2251 | /* We use char because int might match the return type of a gcc2
|
---|
2252 | builtin and then its argument prototype would still apply. */
|
---|
2253 | char bindtextdomain();
|
---|
2254 |
|
---|
2255 | int main() {
|
---|
2256 | bindtextdomain()
|
---|
2257 | ; return 0; }
|
---|
2258 | EOF
|
---|
2259 | if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2260 | rm -rf conftest*
|
---|
2261 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
2262 | else
|
---|
2263 | echo "configure: failed program was:" >&5
|
---|
2264 | cat conftest.$ac_ext >&5
|
---|
2265 | rm -rf conftest*
|
---|
2266 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
2267 | fi
|
---|
2268 | rm -f conftest*
|
---|
2269 | LIBS="$ac_save_LIBS"
|
---|
2270 |
|
---|
2271 | fi
|
---|
2272 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
2273 | echo "$ac_t""yes" 1>&6
|
---|
2274 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
2275 | echo "configure:2276: checking for gettext in libintl" >&5
|
---|
2276 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
2277 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2278 | else
|
---|
2279 | cat > conftest.$ac_ext <<EOF
|
---|
2280 | #line 2281 "configure"
|
---|
2281 | #include "confdefs.h"
|
---|
2282 |
|
---|
2283 | int main() {
|
---|
2284 | return (int) gettext ("")
|
---|
2285 | ; return 0; }
|
---|
2286 | EOF
|
---|
2287 | if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2288 | rm -rf conftest*
|
---|
2289 | gt_cv_func_gettext_libintl=yes
|
---|
2290 | else
|
---|
2291 | echo "configure: failed program was:" >&5
|
---|
2292 | cat conftest.$ac_ext >&5
|
---|
2293 | rm -rf conftest*
|
---|
2294 | gt_cv_func_gettext_libintl=no
|
---|
2295 | fi
|
---|
2296 | rm -f conftest*
|
---|
2297 | fi
|
---|
2298 |
|
---|
2299 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
2300 | else
|
---|
2301 | echo "$ac_t""no" 1>&6
|
---|
2302 | fi
|
---|
2303 |
|
---|
2304 | fi
|
---|
2305 |
|
---|
2306 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
2307 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
2308 | cat >> confdefs.h <<\EOF
|
---|
2309 | #define HAVE_GETTEXT 1
|
---|
2310 | EOF
|
---|
2311 |
|
---|
2312 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
2313 | set dummy msgfmt; ac_word=$2
|
---|
2314 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2315 | echo "configure:2316: checking for $ac_word" >&5
|
---|
2316 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
2317 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2318 | else
|
---|
2319 | case "$MSGFMT" in
|
---|
2320 | /*)
|
---|
2321 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
2322 | ;;
|
---|
2323 | *)
|
---|
2324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
2325 | for ac_dir in $PATH; do
|
---|
2326 | test -z "$ac_dir" && ac_dir=.
|
---|
2327 | if test -f $ac_dir/$ac_word; then
|
---|
2328 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
2329 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
2330 | break
|
---|
2331 | fi
|
---|
2332 | fi
|
---|
2333 | done
|
---|
2334 | IFS="$ac_save_ifs"
|
---|
2335 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
2336 | ;;
|
---|
2337 | esac
|
---|
2338 | fi
|
---|
2339 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
2340 | if test -n "$MSGFMT"; then
|
---|
2341 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
2342 | else
|
---|
2343 | echo "$ac_t""no" 1>&6
|
---|
2344 | fi
|
---|
2345 | if test "$MSGFMT" != "no"; then
|
---|
2346 | for ac_func in dcgettext
|
---|
2347 | do
|
---|
2348 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2349 | echo "configure:2350: checking for $ac_func" >&5
|
---|
2350 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2351 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2352 | else
|
---|
2353 | cat > conftest.$ac_ext <<EOF
|
---|
2354 | #line 2355 "configure"
|
---|
2355 | #include "confdefs.h"
|
---|
2356 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2357 | which can conflict with char $ac_func(); below. */
|
---|
2358 | #include <assert.h>
|
---|
2359 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2360 | /* We use char because int might match the return type of a gcc2
|
---|
2361 | builtin and then its argument prototype would still apply. */
|
---|
2362 | char $ac_func();
|
---|
2363 |
|
---|
2364 | int main() {
|
---|
2365 |
|
---|
2366 | /* The GNU C library defines this for functions which it implements
|
---|
2367 | to always fail with ENOSYS. Some functions are actually named
|
---|
2368 | something starting with __ and the normal name is an alias. */
|
---|
2369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2370 | choke me
|
---|
2371 | #else
|
---|
2372 | $ac_func();
|
---|
2373 | #endif
|
---|
2374 |
|
---|
2375 | ; 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 | rm -rf conftest*
|
---|
2379 | eval "ac_cv_func_$ac_func=yes"
|
---|
2380 | else
|
---|
2381 | echo "configure: failed program was:" >&5
|
---|
2382 | cat conftest.$ac_ext >&5
|
---|
2383 | rm -rf conftest*
|
---|
2384 | eval "ac_cv_func_$ac_func=no"
|
---|
2385 | fi
|
---|
2386 | rm -f conftest*
|
---|
2387 | fi
|
---|
2388 |
|
---|
2389 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2390 | echo "$ac_t""yes" 1>&6
|
---|
2391 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2392 | cat >> confdefs.h <<EOF
|
---|
2393 | #define $ac_tr_func 1
|
---|
2394 | EOF
|
---|
2395 |
|
---|
2396 | else
|
---|
2397 | echo "$ac_t""no" 1>&6
|
---|
2398 | fi
|
---|
2399 | done
|
---|
2400 |
|
---|
2401 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
2402 | set dummy gmsgfmt; ac_word=$2
|
---|
2403 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2404 | echo "configure:2405: checking for $ac_word" >&5
|
---|
2405 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
2406 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2407 | else
|
---|
2408 | case "$GMSGFMT" in
|
---|
2409 | /* | [a-zA-Z]:*)
|
---|
2410 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
2411 | ;;
|
---|
2412 | ?:/*)
|
---|
2413 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
2414 | ;;
|
---|
2415 | *)
|
---|
2416 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2417 | ac_dummy="$PATH"
|
---|
2418 | for ac_dir in $ac_dummy; do
|
---|
2419 | test -z "$ac_dir" && ac_dir=.
|
---|
2420 | if test -f $ac_dir/$ac_word; then
|
---|
2421 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
2422 | break
|
---|
2423 | fi
|
---|
2424 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
2425 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
2426 | break
|
---|
2427 | fi
|
---|
2428 | done
|
---|
2429 | IFS="$ac_save_ifs"
|
---|
2430 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
2431 | ;;
|
---|
2432 | esac
|
---|
2433 | fi
|
---|
2434 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
2435 | if test -n "$GMSGFMT"; then
|
---|
2436 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
2437 | else
|
---|
2438 | echo "$ac_t""no" 1>&6
|
---|
2439 | fi
|
---|
2440 |
|
---|
2441 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
2442 | set dummy xgettext; ac_word=$2
|
---|
2443 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2444 | echo "configure:2445: checking for $ac_word" >&5
|
---|
2445 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
2446 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2447 | else
|
---|
2448 | case "$XGETTEXT" in
|
---|
2449 | /*)
|
---|
2450 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
2451 | ;;
|
---|
2452 | *)
|
---|
2453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
2454 | for ac_dir in $PATH; do
|
---|
2455 | test -z "$ac_dir" && ac_dir=.
|
---|
2456 | if test -f $ac_dir/$ac_word; then
|
---|
2457 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
2458 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
2459 | break
|
---|
2460 | fi
|
---|
2461 | fi
|
---|
2462 | done
|
---|
2463 | IFS="$ac_save_ifs"
|
---|
2464 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
2465 | ;;
|
---|
2466 | esac
|
---|
2467 | fi
|
---|
2468 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
2469 | if test -n "$XGETTEXT"; then
|
---|
2470 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
2471 | else
|
---|
2472 | echo "$ac_t""no" 1>&6
|
---|
2473 | fi
|
---|
2474 |
|
---|
2475 | cat > conftest.$ac_ext <<EOF
|
---|
2476 | #line 2477 "configure"
|
---|
2477 | #include "confdefs.h"
|
---|
2478 |
|
---|
2479 | int main() {
|
---|
2480 | extern int _nl_msg_cat_cntr;
|
---|
2481 | return _nl_msg_cat_cntr
|
---|
2482 | ; return 0; }
|
---|
2483 | EOF
|
---|
2484 | if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2485 | rm -rf conftest*
|
---|
2486 | CATOBJEXT=.gmo
|
---|
2487 | DATADIRNAME=share
|
---|
2488 | else
|
---|
2489 | echo "configure: failed program was:" >&5
|
---|
2490 | cat conftest.$ac_ext >&5
|
---|
2491 | rm -rf conftest*
|
---|
2492 | CATOBJEXT=.mo
|
---|
2493 | DATADIRNAME=lib
|
---|
2494 | fi
|
---|
2495 | rm -f conftest*
|
---|
2496 | INSTOBJEXT=.mo
|
---|
2497 | fi
|
---|
2498 | fi
|
---|
2499 |
|
---|
2500 | else
|
---|
2501 | echo "$ac_t""no" 1>&6
|
---|
2502 | fi
|
---|
2503 |
|
---|
2504 |
|
---|
2505 |
|
---|
2506 | if test "$CATOBJEXT" = "NONE"; then
|
---|
2507 | nls_cv_use_gnu_gettext=yes
|
---|
2508 | fi
|
---|
2509 | fi
|
---|
2510 |
|
---|
2511 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
2512 | INTLOBJS="\$(GETTOBJS)"
|
---|
2513 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
2514 | set dummy msgfmt; ac_word=$2
|
---|
2515 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2516 | echo "configure:2517: checking for $ac_word" >&5
|
---|
2517 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
2518 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2519 | else
|
---|
2520 | case "$MSGFMT" in
|
---|
2521 | /*)
|
---|
2522 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
2523 | ;;
|
---|
2524 | *)
|
---|
2525 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
2526 | for ac_dir in $PATH; do
|
---|
2527 | test -z "$ac_dir" && ac_dir=.
|
---|
2528 | if test -f $ac_dir/$ac_word; then
|
---|
2529 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
2530 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
2531 | break
|
---|
2532 | fi
|
---|
2533 | fi
|
---|
2534 | done
|
---|
2535 | IFS="$ac_save_ifs"
|
---|
2536 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
2537 | ;;
|
---|
2538 | esac
|
---|
2539 | fi
|
---|
2540 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
2541 | if test -n "$MSGFMT"; then
|
---|
2542 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
2543 | else
|
---|
2544 | echo "$ac_t""no" 1>&6
|
---|
2545 | fi
|
---|
2546 |
|
---|
2547 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
2548 | set dummy gmsgfmt; ac_word=$2
|
---|
2549 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2550 | echo "configure:2551: checking for $ac_word" >&5
|
---|
2551 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
2552 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2553 | else
|
---|
2554 | case "$GMSGFMT" in
|
---|
2555 | /* | [a-zA-Z]:*)
|
---|
2556 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
2557 | ;;
|
---|
2558 | ?:/*)
|
---|
2559 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
2560 | ;;
|
---|
2561 | *)
|
---|
2562 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2563 | ac_dummy="$PATH"
|
---|
2564 | for ac_dir in $ac_dummy; do
|
---|
2565 | test -z "$ac_dir" && ac_dir=.
|
---|
2566 | if test -f $ac_dir/$ac_word; then
|
---|
2567 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
2568 | break
|
---|
2569 | fi
|
---|
2570 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
2571 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
2572 | break
|
---|
2573 | fi
|
---|
2574 | done
|
---|
2575 | IFS="$ac_save_ifs"
|
---|
2576 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
2577 | ;;
|
---|
2578 | esac
|
---|
2579 | fi
|
---|
2580 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
2581 | if test -n "$GMSGFMT"; then
|
---|
2582 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
2583 | else
|
---|
2584 | echo "$ac_t""no" 1>&6
|
---|
2585 | fi
|
---|
2586 |
|
---|
2587 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
2588 | set dummy xgettext; ac_word=$2
|
---|
2589 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2590 | echo "configure:2591: checking for $ac_word" >&5
|
---|
2591 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
2592 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2593 | else
|
---|
2594 | case "$XGETTEXT" in
|
---|
2595 | /*)
|
---|
2596 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
2597 | ;;
|
---|
2598 | *)
|
---|
2599 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
2600 | for ac_dir in $PATH; do
|
---|
2601 | test -z "$ac_dir" && ac_dir=.
|
---|
2602 | if test -f $ac_dir/$ac_word; then
|
---|
2603 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
2604 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
2605 | break
|
---|
2606 | fi
|
---|
2607 | fi
|
---|
2608 | done
|
---|
2609 | IFS="$ac_save_ifs"
|
---|
2610 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
2611 | ;;
|
---|
2612 | esac
|
---|
2613 | fi
|
---|
2614 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
2615 | if test -n "$XGETTEXT"; then
|
---|
2616 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
2617 | else
|
---|
2618 | echo "$ac_t""no" 1>&6
|
---|
2619 | fi
|
---|
2620 |
|
---|
2621 |
|
---|
2622 | USE_INCLUDED_LIBINTL=yes
|
---|
2623 | CATOBJEXT=.gmo
|
---|
2624 | INSTOBJEXT=.mo
|
---|
2625 | DATADIRNAME=share
|
---|
2626 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
2627 | INTLLIBS=$INTLDEPS
|
---|
2628 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
2629 | nls_cv_header_intl=libintl.h
|
---|
2630 | nls_cv_header_libgt=libgettext.h
|
---|
2631 | fi
|
---|
2632 |
|
---|
2633 | if test "$XGETTEXT" != ":"; then
|
---|
2634 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
2635 | : ;
|
---|
2636 | else
|
---|
2637 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
2638 | XGETTEXT=":"
|
---|
2639 | fi
|
---|
2640 | fi
|
---|
2641 |
|
---|
2642 | # We need to process the po/ directory.
|
---|
2643 | POSUB=po
|
---|
2644 | else
|
---|
2645 | DATADIRNAME=share
|
---|
2646 | nls_cv_header_intl=libintl.h
|
---|
2647 | nls_cv_header_libgt=libgettext.h
|
---|
2648 | fi
|
---|
2649 |
|
---|
2650 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
2651 | # because some of the sources are only built for this goal.
|
---|
2652 | if test "$PACKAGE" = gettext; then
|
---|
2653 | USE_NLS=yes
|
---|
2654 | USE_INCLUDED_LIBINTL=yes
|
---|
2655 | fi
|
---|
2656 |
|
---|
2657 | for lang in $ALL_LINGUAS; do
|
---|
2658 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
2659 | POFILES="$POFILES $lang.po"
|
---|
2660 | done
|
---|
2661 |
|
---|
2662 |
|
---|
2663 |
|
---|
2664 |
|
---|
2665 |
|
---|
2666 |
|
---|
2667 |
|
---|
2668 |
|
---|
2669 |
|
---|
2670 |
|
---|
2671 |
|
---|
2672 |
|
---|
2673 |
|
---|
2674 |
|
---|
2675 | if test "x$CATOBJEXT" != "x"; then
|
---|
2676 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
2677 | LINGUAS=
|
---|
2678 | else
|
---|
2679 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
2680 | echo "configure:2681: checking for catalogs to be installed" >&5
|
---|
2681 | NEW_LINGUAS=
|
---|
2682 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
2683 | case "$ALL_LINGUAS" in
|
---|
2684 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
2685 | esac
|
---|
2686 | done
|
---|
2687 | LINGUAS=$NEW_LINGUAS
|
---|
2688 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
2689 | fi
|
---|
2690 |
|
---|
2691 | if test -n "$LINGUAS"; then
|
---|
2692 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
2693 | fi
|
---|
2694 | fi
|
---|
2695 |
|
---|
2696 | if test $ac_cv_header_locale_h = yes; then
|
---|
2697 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
2698 | else
|
---|
2699 | INCLUDE_LOCALE_H="\
|
---|
2700 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
2701 | fi
|
---|
2702 |
|
---|
2703 |
|
---|
2704 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
2705 | if test "$CATOBJEXT" = ".cat"; then
|
---|
2706 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
2707 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
2708 | echo "configure:2709: checking for linux/version.h" >&5
|
---|
2709 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
2710 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2711 | else
|
---|
2712 | cat > conftest.$ac_ext <<EOF
|
---|
2713 | #include <sys/types.h>
|
---|
2714 | #line 2715 "configure"
|
---|
2715 | #include "confdefs.h"
|
---|
2716 | #include <linux/version.h>
|
---|
2717 | EOF
|
---|
2718 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2719 | { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2720 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2721 | if test -z "$ac_err"; then
|
---|
2722 | rm -rf conftest*
|
---|
2723 | eval "ac_cv_header_$ac_safe=yes"
|
---|
2724 | else
|
---|
2725 | echo "$ac_err" >&5
|
---|
2726 | echo "configure: failed program was:" >&5
|
---|
2727 | cat conftest.$ac_ext >&5
|
---|
2728 | rm -rf conftest*
|
---|
2729 | eval "ac_cv_header_$ac_safe=no"
|
---|
2730 | fi
|
---|
2731 | rm -f conftest*
|
---|
2732 | fi
|
---|
2733 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
2734 | echo "$ac_t""yes" 1>&6
|
---|
2735 | msgformat=linux
|
---|
2736 | else
|
---|
2737 | echo "$ac_t""no" 1>&6
|
---|
2738 | msgformat=xopen
|
---|
2739 | fi
|
---|
2740 |
|
---|
2741 |
|
---|
2742 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
2743 | fi
|
---|
2744 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
2745 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
2746 | fi
|
---|
2747 |
|
---|
2748 | if test "$PACKAGE" = "gettext"; then
|
---|
2749 | GT_NO="#NO#"
|
---|
2750 | GT_YES=
|
---|
2751 | else
|
---|
2752 | GT_NO=
|
---|
2753 | GT_YES="#YES#"
|
---|
2754 | fi
|
---|
2755 |
|
---|
2756 |
|
---|
2757 |
|
---|
2758 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
2759 |
|
---|
2760 |
|
---|
2761 | l=
|
---|
2762 |
|
---|
2763 |
|
---|
2764 | if test -d $srcdir/po; then
|
---|
2765 | test -d po || mkdir po
|
---|
2766 | if test "x$srcdir" != "x."; then
|
---|
2767 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
---|
2768 | posrcprefix="$srcdir/"
|
---|
2769 | else
|
---|
2770 | posrcprefix="../$srcdir/"
|
---|
2771 | fi
|
---|
2772 | else
|
---|
2773 | posrcprefix="../"
|
---|
2774 | fi
|
---|
2775 | rm -f po/POTFILES
|
---|
2776 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
2777 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
2778 | fi
|
---|
2779 |
|
---|
2780 |
|
---|
2781 |
|
---|
2782 | trap '' 1 2 15
|
---|
2783 | cat > confcache <<\EOF
|
---|
2784 | # This file is a shell script that caches the results of configure
|
---|
2785 | # tests run on this system so they can be shared between configure
|
---|
2786 | # scripts and configure runs. It is not useful on other systems.
|
---|
2787 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2788 | #
|
---|
2789 | # By default, configure uses ./config.cache as the cache file,
|
---|
2790 | # creating it if it does not exist already. You can give configure
|
---|
2791 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2792 | # what configure does when it calls configure scripts in
|
---|
2793 | # subdirectories, so they share the cache.
|
---|
2794 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2795 | # config.status only pays attention to the cache file if you give it the
|
---|
2796 | # --recheck option to rerun configure.
|
---|
2797 | #
|
---|
2798 | EOF
|
---|
2799 | # The following way of writing the cache mishandles newlines in values,
|
---|
2800 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2801 | # So, don't put newlines in cache variables' values.
|
---|
2802 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2803 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2804 | (set) 2>&1 |
|
---|
2805 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2806 | *ac_space=\ *)
|
---|
2807 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2808 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2809 | sed -n \
|
---|
2810 | -e "s/'/'\\\\''/g" \
|
---|
2811 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2812 | ;;
|
---|
2813 | *)
|
---|
2814 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2815 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2816 | ;;
|
---|
2817 | esac >> confcache
|
---|
2818 | if cmp -s $cache_file confcache; then
|
---|
2819 | :
|
---|
2820 | else
|
---|
2821 | if test -w $cache_file; then
|
---|
2822 | echo "updating cache $cache_file"
|
---|
2823 | cat confcache > $cache_file
|
---|
2824 | else
|
---|
2825 | echo "not updating unwritable cache $cache_file"
|
---|
2826 | fi
|
---|
2827 | fi
|
---|
2828 | rm -f confcache
|
---|
2829 |
|
---|
2830 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
2831 |
|
---|
2832 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
2833 | # Let make expand exec_prefix.
|
---|
2834 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
2835 |
|
---|
2836 | # Any assignment to VPATH causes Sun make to only execute
|
---|
2837 | # the first set of double-colon rules, so remove it if not needed.
|
---|
2838 | # If there is a colon in the path, we need to keep it.
|
---|
2839 | if test "x$srcdir" = x.; then
|
---|
2840 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
2841 | fi
|
---|
2842 |
|
---|
2843 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
2844 |
|
---|
2845 | DEFS=-DHAVE_CONFIG_H
|
---|
2846 |
|
---|
2847 | # Without the "./", some shells look in PATH for config.status.
|
---|
2848 | : ${CONFIG_STATUS=./config.status}
|
---|
2849 |
|
---|
2850 | echo creating $CONFIG_STATUS
|
---|
2851 | rm -f $CONFIG_STATUS
|
---|
2852 | cat > $CONFIG_STATUS <<EOF
|
---|
2853 | #! /bin/sh
|
---|
2854 | # Generated automatically by configure.
|
---|
2855 | # Run this file to recreate the current configuration.
|
---|
2856 | # This directory was configured as follows,
|
---|
2857 | EOF
|
---|
2858 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
2859 | cat >> $CONFIG_STATUS <<EOF
|
---|
2860 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
2861 | #
|
---|
2862 | # $0 $ac_configure_args
|
---|
2863 | #
|
---|
2864 | # Compiler output produced by configure, useful for debugging
|
---|
2865 | # configure, is in ./config.log if it exists.
|
---|
2866 |
|
---|
2867 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
2868 | for ac_option
|
---|
2869 | do
|
---|
2870 | case "\$ac_option" in
|
---|
2871 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
2872 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
2873 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
2874 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
2875 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
2876 | exit 0 ;;
|
---|
2877 | -help | --help | --hel | --he | --h)
|
---|
2878 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
2879 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
2880 | esac
|
---|
2881 | done
|
---|
2882 |
|
---|
2883 | ac_given_srcdir=$srcdir
|
---|
2884 | ac_given_INSTALL="$INSTALL"
|
---|
2885 | PATHIFS="$PATH_IFS"
|
---|
2886 |
|
---|
2887 | trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
2888 | EOF
|
---|
2889 | cat >> $CONFIG_STATUS <<EOF
|
---|
2890 |
|
---|
2891 | # Protect against being on the right side of a sed subst in config.status.
|
---|
2892 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
2893 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
2894 | $ac_vpsub
|
---|
2895 | $extrasub
|
---|
2896 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
2897 | s%@SHELL@%$SHELL%g
|
---|
2898 | s%@CFLAGS@%$CFLAGS%g
|
---|
2899 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
2900 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
2901 | s%@FFLAGS@%$FFLAGS%g
|
---|
2902 | s%@DEFS@%$DEFS%g
|
---|
2903 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
2904 | s%@LIBS@%$LIBS%g
|
---|
2905 | s%@exec_prefix@%$exec_prefix%g
|
---|
2906 | s%@prefix@%$prefix%g
|
---|
2907 | s%@program_transform_name@%$program_transform_name%g
|
---|
2908 | s%@bindir@%$bindir%g
|
---|
2909 | s%@sbindir@%$sbindir%g
|
---|
2910 | s%@libexecdir@%$libexecdir%g
|
---|
2911 | s%@datadir@%$datadir%g
|
---|
2912 | s%@sysconfdir@%$sysconfdir%g
|
---|
2913 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
2914 | s%@localstatedir@%$localstatedir%g
|
---|
2915 | s%@libdir@%$libdir%g
|
---|
2916 | s%@includedir@%$includedir%g
|
---|
2917 | s%@oldincludedir@%$oldincludedir%g
|
---|
2918 | s%@infodir@%$infodir%g
|
---|
2919 | s%@mandir@%$mandir%g
|
---|
2920 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
2921 | s%@EXEEXT@%$EXEEXT%g
|
---|
2922 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
2923 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
2924 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
2925 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
2926 | s%@CC@%$CC%g
|
---|
2927 | s%@RANLIB@%$RANLIB%g
|
---|
2928 | s%@CPP@%$CPP%g
|
---|
2929 | s%@ALLOCA@%$ALLOCA%g
|
---|
2930 | s%@USE_NLS@%$USE_NLS%g
|
---|
2931 | s%@MSGFMT@%$MSGFMT%g
|
---|
2932 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
2933 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
2934 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
2935 | s%@CATALOGS@%$CATALOGS%g
|
---|
2936 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
2937 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
2938 | s%@GMOFILES@%$GMOFILES%g
|
---|
2939 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
2940 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
2941 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
2942 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
2943 | s%@POFILES@%$POFILES%g
|
---|
2944 | s%@POSUB@%$POSUB%g
|
---|
2945 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
2946 | s%@GT_NO@%$GT_NO%g
|
---|
2947 | s%@GT_YES@%$GT_YES%g
|
---|
2948 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
2949 | s%@l@%$l%g
|
---|
2950 |
|
---|
2951 | CEOF
|
---|
2952 | EOF
|
---|
2953 |
|
---|
2954 | cat >> $CONFIG_STATUS <<\EOF
|
---|
2955 |
|
---|
2956 | # Split the substitutions into bite-sized pieces for seds with
|
---|
2957 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
2958 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
2959 | ac_file=1 # Number of current file.
|
---|
2960 | ac_beg=1 # First line for current file.
|
---|
2961 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
2962 | ac_more_lines=:
|
---|
2963 | ac_sed_cmds=""
|
---|
2964 | while $ac_more_lines; do
|
---|
2965 | if test $ac_beg -gt 1; then
|
---|
2966 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
2967 | else
|
---|
2968 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
2969 | fi
|
---|
2970 | if test ! -s conftest.s$ac_file; then
|
---|
2971 | ac_more_lines=false
|
---|
2972 | rm -f conftest.s$ac_file
|
---|
2973 | else
|
---|
2974 | if test -z "$ac_sed_cmds"; then
|
---|
2975 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
2976 | else
|
---|
2977 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
2978 | fi
|
---|
2979 | ac_file=`expr $ac_file + 1`
|
---|
2980 | ac_beg=$ac_end
|
---|
2981 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
2982 | fi
|
---|
2983 | done
|
---|
2984 | if test -z "$ac_sed_cmds"; then
|
---|
2985 | ac_sed_cmds=cat
|
---|
2986 | fi
|
---|
2987 | EOF
|
---|
2988 |
|
---|
2989 | cat >> $CONFIG_STATUS <<EOF
|
---|
2990 |
|
---|
2991 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
|
---|
2992 | EOF
|
---|
2993 | cat >> $CONFIG_STATUS <<\EOF
|
---|
2994 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
2995 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
2996 | case "$ac_file" in
|
---|
2997 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
2998 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
2999 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3000 | esac
|
---|
3001 |
|
---|
3002 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
3003 |
|
---|
3004 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3005 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3006 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3007 | # The file is in a subdirectory.
|
---|
3008 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3009 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
3010 | # A "../" for each directory in $ac_dir_suffix.
|
---|
3011 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
3012 | else
|
---|
3013 | ac_dir_suffix= ac_dots=
|
---|
3014 | fi
|
---|
3015 |
|
---|
3016 | case "$ac_given_srcdir" in
|
---|
3017 | .) srcdir=.
|
---|
3018 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
3019 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
3020 | /* | [A-Za-z]:*)
|
---|
3021 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
3022 | *) # Relative path.
|
---|
3023 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
3024 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
3025 | esac
|
---|
3026 |
|
---|
3027 | case "$ac_given_INSTALL" in
|
---|
3028 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
3029 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
3030 | esac
|
---|
3031 |
|
---|
3032 | echo creating "$ac_file"
|
---|
3033 | rm -f "$ac_file"
|
---|
3034 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
3035 | case "$ac_file" in
|
---|
3036 | *Makefile*) ac_comsub="1i\\
|
---|
3037 | # $configure_input" ;;
|
---|
3038 | *) ac_comsub= ;;
|
---|
3039 | esac
|
---|
3040 |
|
---|
3041 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
3042 | sed -e "$ac_comsub
|
---|
3043 | s%@configure_input@%$configure_input%g
|
---|
3044 | s%@srcdir@%$srcdir%g
|
---|
3045 | s%@top_srcdir@%$top_srcdir%g
|
---|
3046 | s%@INSTALL@%$INSTALL%g
|
---|
3047 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
3048 | fi; done
|
---|
3049 | rm -f conftest.s*
|
---|
3050 |
|
---|
3051 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
3052 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
3053 | #
|
---|
3054 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
3055 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
3056 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
3057 | ac_dC='\3'
|
---|
3058 | ac_dD='%g'
|
---|
3059 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
3060 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3061 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
3062 | ac_uC=' '
|
---|
3063 | ac_uD='\4%g'
|
---|
3064 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
3065 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3066 | ac_eB='$%\1#\2define\3'
|
---|
3067 | ac_eC=' '
|
---|
3068 | ac_eD='%g'
|
---|
3069 |
|
---|
3070 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
3071 | EOF
|
---|
3072 | cat >> $CONFIG_STATUS <<EOF
|
---|
3073 | CONFIG_HEADERS="config.h:config.in"
|
---|
3074 | EOF
|
---|
3075 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3076 | fi
|
---|
3077 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
3078 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3079 | case "$ac_file" in
|
---|
3080 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
3081 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
3082 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3083 | esac
|
---|
3084 |
|
---|
3085 | echo creating $ac_file
|
---|
3086 |
|
---|
3087 | rm -f conftest.frag conftest.in conftest.out
|
---|
3088 | # kso the other way around might work better with drive letters and such.
|
---|
3089 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
3090 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
3091 | cat $ac_file_inputs > conftest.in
|
---|
3092 |
|
---|
3093 | EOF
|
---|
3094 |
|
---|
3095 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
3096 | # the proper values into config.h.in to produce config.h. And first:
|
---|
3097 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3098 | # Protect against being in an unquoted here document in config.status.
|
---|
3099 | rm -f conftest.vals
|
---|
3100 | cat > conftest.hdr <<\EOF
|
---|
3101 | s/[\\&%]/\\&/g
|
---|
3102 | s%[\\$`]%\\&%g
|
---|
3103 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
3104 | s%ac_d%ac_u%gp
|
---|
3105 | s%ac_u%ac_e%gp
|
---|
3106 | EOF
|
---|
3107 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
3108 | rm -f conftest.hdr
|
---|
3109 |
|
---|
3110 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
3111 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
3112 | # on some systems where configure will not decide to define it.
|
---|
3113 | cat >> conftest.vals <<\EOF
|
---|
3114 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
3115 | EOF
|
---|
3116 |
|
---|
3117 | # Break up conftest.vals because some shells have a limit on
|
---|
3118 | # the size of here documents, and old seds have small limits too.
|
---|
3119 |
|
---|
3120 | rm -f conftest.tail
|
---|
3121 | while :
|
---|
3122 | do
|
---|
3123 | ac_lines=`grep -c . conftest.vals`
|
---|
3124 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
3125 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
3126 | # Write a limited-size here document to conftest.frag.
|
---|
3127 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
3128 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
3129 | echo 'CEOF
|
---|
3130 | sed -f conftest.frag conftest.in > conftest.out
|
---|
3131 | rm -f conftest.in
|
---|
3132 | mv conftest.out conftest.in
|
---|
3133 | ' >> $CONFIG_STATUS
|
---|
3134 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
3135 | rm -f conftest.vals
|
---|
3136 | mv conftest.tail conftest.vals
|
---|
3137 | done
|
---|
3138 | rm -f conftest.vals
|
---|
3139 |
|
---|
3140 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3141 | rm -f conftest.frag conftest.h
|
---|
3142 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
3143 | cat conftest.in >> conftest.h
|
---|
3144 | rm -f conftest.in
|
---|
3145 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
3146 | echo "$ac_file is unchanged"
|
---|
3147 | rm -f conftest.h
|
---|
3148 | else
|
---|
3149 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3150 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3151 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3152 | # The file is in a subdirectory.
|
---|
3153 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3154 | fi
|
---|
3155 | rm -f $ac_file
|
---|
3156 | mv conftest.h $ac_file
|
---|
3157 | fi
|
---|
3158 | fi; done
|
---|
3159 |
|
---|
3160 | EOF
|
---|
3161 |
|
---|
3162 | cat >> $CONFIG_STATUS <<EOF
|
---|
3163 | ac_sources="$nls_cv_header_libgt"
|
---|
3164 | ac_dests="$nls_cv_header_intl"
|
---|
3165 | EOF
|
---|
3166 |
|
---|
3167 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3168 | srcdir=$ac_given_srcdir
|
---|
3169 | while test -n "$ac_sources"; do
|
---|
3170 | set $ac_dests; ac_dest=$1; shift; ac_dests=$*
|
---|
3171 | set $ac_sources; ac_source=$1; shift; ac_sources=$*
|
---|
3172 |
|
---|
3173 | echo "linking $srcdir/$ac_source to $ac_dest"
|
---|
3174 |
|
---|
3175 | if test ! -r $srcdir/$ac_source; then
|
---|
3176 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
|
---|
3177 | fi
|
---|
3178 | rm -f $ac_dest
|
---|
3179 |
|
---|
3180 | # Make relative symlinks.
|
---|
3181 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3182 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
|
---|
3183 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
|
---|
3184 | # The dest file is in a subdirectory.
|
---|
3185 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
|
---|
3186 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
|
---|
3187 | # A "../" for each directory in $ac_dest_dir_suffix.
|
---|
3188 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
3189 | else
|
---|
3190 | ac_dest_dir_suffix= ac_dots=
|
---|
3191 | fi
|
---|
3192 |
|
---|
3193 | case "$srcdir" in
|
---|
3194 | [/$]* | [A-Za-z]:*) ac_rel_source="$srcdir/$ac_source" ;;
|
---|
3195 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
|
---|
3196 | esac
|
---|
3197 |
|
---|
3198 | # Make a symlink if possible; otherwise try a hard link.
|
---|
3199 | if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
|
---|
3200 | ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
|
---|
3201 | cp $srcdir/$ac_source $ac_dest; then :
|
---|
3202 | else
|
---|
3203 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
|
---|
3204 | fi
|
---|
3205 | done
|
---|
3206 | EOF
|
---|
3207 | cat >> $CONFIG_STATUS <<EOF
|
---|
3208 |
|
---|
3209 |
|
---|
3210 | EOF
|
---|
3211 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3212 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
3213 |
|
---|
3214 | exit 0
|
---|
3215 | EOF
|
---|
3216 | chmod +x $CONFIG_STATUS
|
---|
3217 | rm -fr confdefs* $ac_clean_files
|
---|
3218 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
3219 |
|
---|