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