]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
254 | ac_default_prefix=/usr/local | |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="common/unicode/utypes.h" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION LIB_VERSION LIB_VERSION_MAJOR UNICODE_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPPFLAGS CC CFLAGS LDFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA U_MAKE DOXYGEN ARFLAGS COMPILE_LINK_ENVVAR LIB_M ENABLE_SHARED ENABLE_STATIC ENABLE_DEBUG ENABLE_RELEASE U_DEFAULT_SHOW_DRAFT U_USE_GCC_VISIBILITY_ATTRIBUTE LIBCFLAGS LIBCXXFLAGS RANLIB ac_ct_RANLIB AR U_DISABLE_RENAMING U_ENABLE_TRACING ENABLE_RPATH U_INLINE THREADS_TRUE ICU_USE_THREADS LIB_THREAD HAVE_MMAP GENCCODE_ASSEMBLY CPP EGREP U_HAVE_INTTYPES_H U_IOSTREAM_SOURCE U_IS_BIG_ENDIAN U_HAVE_NL_LANGINFO_CODESET U_NL_LANGINFO_CODESET U_HAVE_NAMESPACE U_OVERRIDE_CXX_ALLOCATION U_HAVE_PLACEMENT_NEW U_HAVE_POPEN U_HAVE_TZSET U_TZSET U_HAVE_TZNAME U_TZNAME U_HAVE_TIMEZONE U_TIMEZONE HAVE_INT8_T HAVE_UINT8_T HAVE_INT16_T HAVE_UINT16_T HAVE_INT32_T HAVE_UINT32_T HAVE_INT64_T HAVE_UINT64_T U_HAVE_WCHAR_H U_HAVE_WCSCPY U_SIZEOF_WCHAR_T U_CHECK_UTF16_STRING EXTRAS_TRUE ICUIO_TRUE LAYOUT_TRUE pkgicudatadir thepkgicudatadir DATA_PACKAGING_MODE ICULIBSUFFIX U_HAVE_LIB_SUFFIX ICULIBSUFFIXCNAME TESTS_TRUE SAMPLES_TRUE ICUDATA_CHAR platform platform_make_fragment_name platform_make_fragment LIBOBJS LTLIBOBJS' | |
313 | ac_subst_files='' | |
314 | ||
315 | # Initialize some variables set by options. | |
316 | ac_init_help= | |
317 | ac_init_version=false | |
318 | # The variables have the same names as the options, with | |
319 | # dashes changed to underlines. | |
320 | cache_file=/dev/null | |
321 | exec_prefix=NONE | |
322 | no_create= | |
323 | no_recursion= | |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
331 | verbose= | |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
334 | ||
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
340 | bindir='${exec_prefix}/bin' | |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datarootdir='${prefix}/share' | |
344 | datadir='${datarootdir}' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
354 | ac_prev= | |
355 | for ac_option | |
356 | do | |
357 | # If the previous option needs an argument, assign it. | |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
365 | ||
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
368 | case $ac_option in | |
369 | ||
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
373 | bindir=$ac_optarg ;; | |
374 | ||
375 | -build | --build | --buil | --bui | --bu) | |
376 | ac_prev=build_alias ;; | |
377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
378 | build_alias=$ac_optarg ;; | |
379 | ||
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
385 | cache_file=$ac_optarg ;; | |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
389 | ||
390 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
391 | | --dataroo | --dataro | --datar) | |
392 | ac_prev=datarootdir ;; | |
393 | -dataroot=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
394 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
395 | datarootdir=$ac_optarg ;; | |
396 | ||
397 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
398 | ac_prev=datadir ;; | |
399 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
400 | | --da=*) | |
401 | datadir=$ac_optarg ;; | |
402 | ||
403 | -disable-* | --disable-*) | |
404 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
405 | # Reject names that are not valid shell variable names. | |
406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
408 | { (exit 1); exit 1; }; } | |
409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
410 | eval "enable_$ac_feature=no" ;; | |
411 | ||
412 | -enable-* | --enable-*) | |
413 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
414 | # Reject names that are not valid shell variable names. | |
415 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
416 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
417 | { (exit 1); exit 1; }; } | |
418 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
419 | case $ac_option in | |
420 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
421 | *) ac_optarg=yes ;; | |
422 | esac | |
423 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
424 | ||
425 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
426 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
427 | | --exec | --exe | --ex) | |
428 | ac_prev=exec_prefix ;; | |
429 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
430 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
431 | | --exec=* | --exe=* | --ex=*) | |
432 | exec_prefix=$ac_optarg ;; | |
433 | ||
434 | -gas | --gas | --ga | --g) | |
435 | # Obsolete; use --with-gas. | |
436 | with_gas=yes ;; | |
437 | ||
438 | -help | --help | --hel | --he | -h) | |
439 | ac_init_help=long ;; | |
440 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
441 | ac_init_help=recursive ;; | |
442 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
443 | ac_init_help=short ;; | |
444 | ||
445 | -host | --host | --hos | --ho) | |
446 | ac_prev=host_alias ;; | |
447 | -host=* | --host=* | --hos=* | --ho=*) | |
448 | host_alias=$ac_optarg ;; | |
449 | ||
450 | -includedir | --includedir | --includedi | --included | --include \ | |
451 | | --includ | --inclu | --incl | --inc) | |
452 | ac_prev=includedir ;; | |
453 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
454 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
455 | includedir=$ac_optarg ;; | |
456 | ||
457 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
458 | ac_prev=infodir ;; | |
459 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
460 | infodir=$ac_optarg ;; | |
461 | ||
462 | -libdir | --libdir | --libdi | --libd) | |
463 | ac_prev=libdir ;; | |
464 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
465 | libdir=$ac_optarg ;; | |
466 | ||
467 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
468 | | --libexe | --libex | --libe) | |
469 | ac_prev=libexecdir ;; | |
470 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
471 | | --libexe=* | --libex=* | --libe=*) | |
472 | libexecdir=$ac_optarg ;; | |
473 | ||
474 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
475 | | --localstate | --localstat | --localsta | --localst \ | |
476 | | --locals | --local | --loca | --loc | --lo) | |
477 | ac_prev=localstatedir ;; | |
478 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
479 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
480 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
481 | localstatedir=$ac_optarg ;; | |
482 | ||
483 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
484 | ac_prev=mandir ;; | |
485 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
486 | mandir=$ac_optarg ;; | |
487 | ||
488 | -nfp | --nfp | --nf) | |
489 | # Obsolete; use --without-fp. | |
490 | with_fp=no ;; | |
491 | ||
492 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
493 | | --no-cr | --no-c | -n) | |
494 | no_create=yes ;; | |
495 | ||
496 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
497 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
498 | no_recursion=yes ;; | |
499 | ||
500 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
501 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
502 | | --oldin | --oldi | --old | --ol | --o) | |
503 | ac_prev=oldincludedir ;; | |
504 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
505 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
506 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
507 | oldincludedir=$ac_optarg ;; | |
508 | ||
509 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
510 | ac_prev=prefix ;; | |
511 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
512 | prefix=$ac_optarg ;; | |
513 | ||
514 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
515 | | --program-pre | --program-pr | --program-p) | |
516 | ac_prev=program_prefix ;; | |
517 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
518 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
519 | program_prefix=$ac_optarg ;; | |
520 | ||
521 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
522 | | --program-suf | --program-su | --program-s) | |
523 | ac_prev=program_suffix ;; | |
524 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
525 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
526 | program_suffix=$ac_optarg ;; | |
527 | ||
528 | -program-transform-name | --program-transform-name \ | |
529 | | --program-transform-nam | --program-transform-na \ | |
530 | | --program-transform-n | --program-transform- \ | |
531 | | --program-transform | --program-transfor \ | |
532 | | --program-transfo | --program-transf \ | |
533 | | --program-trans | --program-tran \ | |
534 | | --progr-tra | --program-tr | --program-t) | |
535 | ac_prev=program_transform_name ;; | |
536 | -program-transform-name=* | --program-transform-name=* \ | |
537 | | --program-transform-nam=* | --program-transform-na=* \ | |
538 | | --program-transform-n=* | --program-transform-=* \ | |
539 | | --program-transform=* | --program-transfor=* \ | |
540 | | --program-transfo=* | --program-transf=* \ | |
541 | | --program-trans=* | --program-tran=* \ | |
542 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
543 | program_transform_name=$ac_optarg ;; | |
544 | ||
545 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
546 | | -silent | --silent | --silen | --sile | --sil) | |
547 | silent=yes ;; | |
548 | ||
549 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
550 | ac_prev=sbindir ;; | |
551 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
552 | | --sbi=* | --sb=*) | |
553 | sbindir=$ac_optarg ;; | |
554 | ||
555 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
556 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
557 | | --sharedst | --shareds | --shared | --share | --shar \ | |
558 | | --sha | --sh) | |
559 | ac_prev=sharedstatedir ;; | |
560 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
561 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
562 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
563 | | --sha=* | --sh=*) | |
564 | sharedstatedir=$ac_optarg ;; | |
565 | ||
566 | -site | --site | --sit) | |
567 | ac_prev=site ;; | |
568 | -site=* | --site=* | --sit=*) | |
569 | site=$ac_optarg ;; | |
570 | ||
571 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
572 | ac_prev=srcdir ;; | |
573 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
574 | srcdir=$ac_optarg ;; | |
575 | ||
576 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
577 | | --syscon | --sysco | --sysc | --sys | --sy) | |
578 | ac_prev=sysconfdir ;; | |
579 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
580 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
581 | sysconfdir=$ac_optarg ;; | |
582 | ||
583 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
584 | ac_prev=target_alias ;; | |
585 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
586 | target_alias=$ac_optarg ;; | |
587 | ||
588 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
589 | verbose=yes ;; | |
590 | ||
591 | -version | --version | --versio | --versi | --vers | -V) | |
592 | ac_init_version=: ;; | |
593 | ||
594 | -with-* | --with-*) | |
595 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
596 | # Reject names that are not valid shell variable names. | |
597 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
598 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
599 | { (exit 1); exit 1; }; } | |
600 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
601 | case $ac_option in | |
602 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
603 | *) ac_optarg=yes ;; | |
604 | esac | |
605 | eval "with_$ac_package='$ac_optarg'" ;; | |
606 | ||
607 | -without-* | --without-*) | |
608 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
609 | # Reject names that are not valid shell variable names. | |
610 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
611 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
612 | { (exit 1); exit 1; }; } | |
613 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
614 | eval "with_$ac_package=no" ;; | |
615 | ||
616 | --x) | |
617 | # Obsolete; use --with-x. | |
618 | with_x=yes ;; | |
619 | ||
620 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
621 | | --x-incl | --x-inc | --x-in | --x-i) | |
622 | ac_prev=x_includes ;; | |
623 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
624 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
625 | x_includes=$ac_optarg ;; | |
626 | ||
627 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
628 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
629 | ac_prev=x_libraries ;; | |
630 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
631 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
632 | x_libraries=$ac_optarg ;; | |
633 | ||
634 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
635 | Try \`$0 --help' for more information." >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ;; | |
638 | ||
639 | *=*) | |
640 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
641 | # Reject names that are not valid shell variable names. | |
642 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
643 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
644 | { (exit 1); exit 1; }; } | |
645 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
646 | eval "$ac_envvar='$ac_optarg'" | |
647 | export $ac_envvar ;; | |
648 | ||
649 | *) | |
650 | # FIXME: should be removed in autoconf 3.0. | |
651 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
652 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
653 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
654 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
655 | ;; | |
656 | ||
657 | esac | |
658 | done | |
659 | ||
660 | if test -n "$ac_prev"; then | |
661 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
662 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
663 | { (exit 1); exit 1; }; } | |
664 | fi | |
665 | ||
666 | # Be sure to have absolute paths. | |
667 | for ac_var in exec_prefix prefix | |
668 | do | |
669 | eval ac_val=$`echo $ac_var` | |
670 | case $ac_val in | |
671 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
672 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
673 | { (exit 1); exit 1; }; };; | |
674 | esac | |
675 | done | |
676 | ||
677 | # Be sure to have absolute paths. | |
678 | for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \ | |
679 | localstatedir libdir includedir oldincludedir infodir mandir | |
680 | do | |
681 | eval ac_val=$`echo $ac_var` | |
682 | case $ac_val in | |
683 | [\\/$]* | ?:[\\/]* ) ;; | |
684 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
685 | { (exit 1); exit 1; }; };; | |
686 | esac | |
687 | done | |
688 | ||
689 | # There might be people who depend on the old broken behavior: `$host' | |
690 | # used to hold the argument of --host etc. | |
691 | # FIXME: To remove some day. | |
692 | build=$build_alias | |
693 | host=$host_alias | |
694 | target=$target_alias | |
695 | ||
696 | # FIXME: To remove some day. | |
697 | if test "x$host_alias" != x; then | |
698 | if test "x$build_alias" = x; then | |
699 | cross_compiling=maybe | |
700 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
701 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
702 | elif test "x$build_alias" != "x$host_alias"; then | |
703 | cross_compiling=yes | |
704 | fi | |
705 | fi | |
706 | ||
707 | ac_tool_prefix= | |
708 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
709 | ||
710 | test "$silent" = yes && exec 6>/dev/null | |
711 | ||
712 | ||
713 | # Find the source files, if location was not specified. | |
714 | if test -z "$srcdir"; then | |
715 | ac_srcdir_defaulted=yes | |
716 | # Try the directory containing this script, then its parent. | |
717 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
718 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
719 | X"$0" : 'X\(//\)[^/]' \| \ | |
720 | X"$0" : 'X\(//\)$' \| \ | |
721 | X"$0" : 'X\(/\)' \| \ | |
722 | . : '\(.\)' 2>/dev/null || | |
723 | echo X"$0" | | |
724 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
725 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
726 | /^X\(\/\/\)$/{ s//\1/; q; } | |
727 | /^X\(\/\).*/{ s//\1/; q; } | |
728 | s/.*/./; q'` | |
729 | srcdir=$ac_confdir | |
730 | if test ! -r $srcdir/$ac_unique_file; then | |
731 | srcdir=.. | |
732 | fi | |
733 | else | |
734 | ac_srcdir_defaulted=no | |
735 | fi | |
736 | if test ! -r $srcdir/$ac_unique_file; then | |
737 | if test "$ac_srcdir_defaulted" = yes; then | |
738 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | else | |
741 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | fi | |
744 | fi | |
745 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
746 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
747 | { (exit 1); exit 1; }; } | |
748 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
749 | ac_env_build_alias_set=${build_alias+set} | |
750 | ac_env_build_alias_value=$build_alias | |
751 | ac_cv_env_build_alias_set=${build_alias+set} | |
752 | ac_cv_env_build_alias_value=$build_alias | |
753 | ac_env_host_alias_set=${host_alias+set} | |
754 | ac_env_host_alias_value=$host_alias | |
755 | ac_cv_env_host_alias_set=${host_alias+set} | |
756 | ac_cv_env_host_alias_value=$host_alias | |
757 | ac_env_target_alias_set=${target_alias+set} | |
758 | ac_env_target_alias_value=$target_alias | |
759 | ac_cv_env_target_alias_set=${target_alias+set} | |
760 | ac_cv_env_target_alias_value=$target_alias | |
761 | ac_env_CC_set=${CC+set} | |
762 | ac_env_CC_value=$CC | |
763 | ac_cv_env_CC_set=${CC+set} | |
764 | ac_cv_env_CC_value=$CC | |
765 | ac_env_CFLAGS_set=${CFLAGS+set} | |
766 | ac_env_CFLAGS_value=$CFLAGS | |
767 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
768 | ac_cv_env_CFLAGS_value=$CFLAGS | |
769 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
770 | ac_env_LDFLAGS_value=$LDFLAGS | |
771 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
772 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
773 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
774 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
775 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
776 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CPP_set=${CPP+set} | |
786 | ac_env_CPP_value=$CPP | |
787 | ac_cv_env_CPP_set=${CPP+set} | |
788 | ac_cv_env_CPP_value=$CPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
797 | \`configure' configures this package to adapt to many kinds of systems. | |
798 | ||
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
822 | [$ac_default_prefix] | |
823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
824 | [PREFIX] | |
825 | ||
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datarootdir=DIR root of the directory tree for read-only architecture-independent data [PREFIX/share] | |
838 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
839 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
840 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
841 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
842 | --libdir=DIR object code libraries [EPREFIX/lib] | |
843 | --includedir=DIR C header files [PREFIX/include] | |
844 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
845 | --infodir=DIR info documentation [PREFIX/info] | |
846 | --mandir=DIR man documentation [PREFIX/man] | |
847 | _ACEOF | |
848 | ||
849 | cat <<\_ACEOF | |
850 | ||
851 | System types: | |
852 | --build=BUILD configure for building on BUILD [guessed] | |
853 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
854 | _ACEOF | |
855 | fi | |
856 | ||
857 | if test -n "$ac_init_help"; then | |
858 | ||
859 | cat <<\_ACEOF | |
860 | ||
861 | Optional Features: | |
862 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
863 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
864 | --enable-strict compile with strict compiler options default=no | |
865 | --enable-64bit-libs build 64-bit libraries default=yes | |
866 | --enable-shared build shared libraries default=yes | |
867 | --enable-static build static libraries default=no | |
868 | --enable-debug build debug libraries default=no | |
869 | --enable-release build release libraries default=yes | |
870 | --enable-draft enable draft APIs default=yes | |
871 | --enable-renaming add a version suffix to symbols default=yes | |
872 | --enable-tracing enable function and data tracing default=no | |
873 | --enable-rpath use rpath when linking default is only if necessary | |
874 | --enable-threads build ICU with thread safety default=yes | |
875 | --enable-weak-threads weakly reference the threading library default=no | |
876 | --enable-extras build ICU extras default=yes | |
877 | --enable-icuio build ICU's icuio library default=yes | |
878 | --enable-layout build ICU's layout library default=yes | |
879 | --enable-tests build ICU tests default=yes | |
880 | --enable-samples build ICU samples default=yes | |
881 | ||
882 | Additionally, the variable FORCE_LIBS may be set before calling configure. | |
883 | If set, it will REPLACE any automatic list of libraries. | |
884 | ||
885 | Optional Packages: | |
886 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
887 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
888 | --with-iostream=version specify the version of iostream to use (none, old, std, auto) default=auto | |
889 | --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) default=auto | |
890 | --with-library-suffix=suffix tag a suffix to the library names default= | |
891 | ||
892 | Some influential environment variables: | |
893 | CC C compiler command | |
894 | CFLAGS C compiler flags | |
895 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
896 | nonstandard directory <lib dir> | |
897 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
898 | headers in a nonstandard directory <include dir> | |
899 | CXX C++ compiler command | |
900 | CXXFLAGS C++ compiler flags | |
901 | CPP C preprocessor | |
902 | ||
903 | Use these variables to override the choices made by `configure' or to help | |
904 | it to find libraries and programs with nonstandard names/locations. | |
905 | ||
906 | _ACEOF | |
907 | fi | |
908 | ||
909 | if test "$ac_init_help" = "recursive"; then | |
910 | # If there are subdirs, report their specific --help. | |
911 | ac_popdir=`pwd` | |
912 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
913 | test -d $ac_dir || continue | |
914 | ac_builddir=. | |
915 | ||
916 | if test "$ac_dir" != .; then | |
917 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
918 | # A "../" for each directory in $ac_dir_suffix. | |
919 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
920 | else | |
921 | ac_dir_suffix= ac_top_builddir= | |
922 | fi | |
923 | ||
924 | case $srcdir in | |
925 | .) # No --srcdir option. We are building in place. | |
926 | ac_srcdir=. | |
927 | if test -z "$ac_top_builddir"; then | |
928 | ac_top_srcdir=. | |
929 | else | |
930 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
931 | fi ;; | |
932 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
933 | ac_srcdir=$srcdir$ac_dir_suffix; | |
934 | ac_top_srcdir=$srcdir ;; | |
935 | *) # Relative path. | |
936 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
937 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
938 | esac | |
939 | ||
940 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
941 | # the directories may not exist. | |
942 | case `pwd` in | |
943 | .) ac_abs_builddir="$ac_dir";; | |
944 | *) | |
945 | case "$ac_dir" in | |
946 | .) ac_abs_builddir=`pwd`;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
948 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
949 | esac;; | |
950 | esac | |
951 | case $ac_abs_builddir in | |
952 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
953 | *) | |
954 | case ${ac_top_builddir}. in | |
955 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
956 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
957 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
958 | esac;; | |
959 | esac | |
960 | case $ac_abs_builddir in | |
961 | .) ac_abs_srcdir=$ac_srcdir;; | |
962 | *) | |
963 | case $ac_srcdir in | |
964 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
965 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
966 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
967 | esac;; | |
968 | esac | |
969 | case $ac_abs_builddir in | |
970 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
971 | *) | |
972 | case $ac_top_srcdir in | |
973 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
974 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
975 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
976 | esac;; | |
977 | esac | |
978 | ||
979 | cd $ac_dir | |
980 | # Check for guested configure; otherwise get Cygnus style configure. | |
981 | if test -f $ac_srcdir/configure.gnu; then | |
982 | echo | |
983 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
984 | elif test -f $ac_srcdir/configure; then | |
985 | echo | |
986 | $SHELL $ac_srcdir/configure --help=recursive | |
987 | elif test -f $ac_srcdir/configure.ac || | |
988 | test -f $ac_srcdir/configure.in; then | |
989 | echo | |
990 | $ac_configure --help | |
991 | else | |
992 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
993 | fi | |
994 | cd $ac_popdir | |
995 | done | |
996 | fi | |
997 | ||
998 | test -n "$ac_init_help" && exit 0 | |
999 | if $ac_init_version; then | |
1000 | cat <<\_ACEOF | |
1001 | ||
1002 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1003 | This configure script is free software; the Free Software Foundation | |
1004 | gives unlimited permission to copy, distribute and modify it. | |
1005 | _ACEOF | |
1006 | exit 0 | |
1007 | fi | |
1008 | exec 5>config.log | |
1009 | cat >&5 <<_ACEOF | |
1010 | This file contains any messages produced by compilers while | |
1011 | running configure, to aid debugging if configure makes a mistake. | |
1012 | ||
1013 | It was created by $as_me, which was | |
1014 | generated by GNU Autoconf 2.59. Invocation command line was | |
1015 | ||
1016 | $ $0 $@ | |
1017 | ||
1018 | _ACEOF | |
1019 | { | |
1020 | cat <<_ASUNAME | |
1021 | ## --------- ## | |
1022 | ## Platform. ## | |
1023 | ## --------- ## | |
1024 | ||
1025 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1026 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1027 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1028 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1029 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1030 | ||
1031 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1032 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1033 | ||
1034 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1035 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1036 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1037 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1038 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1039 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1040 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1041 | ||
1042 | _ASUNAME | |
1043 | ||
1044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1045 | for as_dir in $PATH | |
1046 | do | |
1047 | IFS=$as_save_IFS | |
1048 | test -z "$as_dir" && as_dir=. | |
1049 | echo "PATH: $as_dir" | |
1050 | done | |
1051 | ||
1052 | } >&5 | |
1053 | ||
1054 | cat >&5 <<_ACEOF | |
1055 | ||
1056 | ||
1057 | ## ----------- ## | |
1058 | ## Core tests. ## | |
1059 | ## ----------- ## | |
1060 | ||
1061 | _ACEOF | |
1062 | ||
1063 | ||
1064 | # Keep a trace of the command line. | |
1065 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1066 | # Strip out --silent because we don't want to record it for future runs. | |
1067 | # Also quote any args containing shell meta-characters. | |
1068 | # Make two passes to allow for proper duplicate-argument suppression. | |
1069 | ac_configure_args= | |
1070 | ac_configure_args0= | |
1071 | ac_configure_args1= | |
1072 | ac_sep= | |
1073 | ac_must_keep_next=false | |
1074 | for ac_pass in 1 2 | |
1075 | do | |
1076 | for ac_arg | |
1077 | do | |
1078 | case $ac_arg in | |
1079 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1080 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1081 | | -silent | --silent | --silen | --sile | --sil) | |
1082 | continue ;; | |
1083 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1084 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1085 | esac | |
1086 | case $ac_pass in | |
1087 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1088 | 2) | |
1089 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1090 | if test $ac_must_keep_next = true; then | |
1091 | ac_must_keep_next=false # Got value, back to normal. | |
1092 | else | |
1093 | case $ac_arg in | |
1094 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1095 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1096 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1097 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1098 | case "$ac_configure_args0 " in | |
1099 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1100 | esac | |
1101 | ;; | |
1102 | -* ) ac_must_keep_next=true ;; | |
1103 | esac | |
1104 | fi | |
1105 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1106 | # Get rid of the leading space. | |
1107 | ac_sep=" " | |
1108 | ;; | |
1109 | esac | |
1110 | done | |
1111 | done | |
1112 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1113 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1114 | ||
1115 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1116 | # config.log. We remove comments because anyway the quotes in there | |
1117 | # would cause problems or look ugly. | |
1118 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1119 | # such as our DU 5.0 friend, will then `close' the trap. | |
1120 | trap 'exit_status=$? | |
1121 | # Save into config.log some information that might help in debugging. | |
1122 | { | |
1123 | echo | |
1124 | ||
1125 | cat <<\_ASBOX | |
1126 | ## ---------------- ## | |
1127 | ## Cache variables. ## | |
1128 | ## ---------------- ## | |
1129 | _ASBOX | |
1130 | echo | |
1131 | # The following way of writing the cache mishandles newlines in values, | |
1132 | { | |
1133 | (set) 2>&1 | | |
1134 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1135 | *ac_space=\ *) | |
1136 | sed -n \ | |
1137 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1138 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1139 | ;; | |
1140 | *) | |
1141 | sed -n \ | |
1142 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1143 | ;; | |
1144 | esac; | |
1145 | } | |
1146 | echo | |
1147 | ||
1148 | cat <<\_ASBOX | |
1149 | ## ----------------- ## | |
1150 | ## Output variables. ## | |
1151 | ## ----------------- ## | |
1152 | _ASBOX | |
1153 | echo | |
1154 | for ac_var in $ac_subst_vars | |
1155 | do | |
1156 | eval ac_val=$`echo $ac_var` | |
1157 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1158 | done | sort | |
1159 | echo | |
1160 | ||
1161 | if test -n "$ac_subst_files"; then | |
1162 | cat <<\_ASBOX | |
1163 | ## ------------- ## | |
1164 | ## Output files. ## | |
1165 | ## ------------- ## | |
1166 | _ASBOX | |
1167 | echo | |
1168 | for ac_var in $ac_subst_files | |
1169 | do | |
1170 | eval ac_val=$`echo $ac_var` | |
1171 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1172 | done | sort | |
1173 | echo | |
1174 | fi | |
1175 | ||
1176 | if test -s confdefs.h; then | |
1177 | cat <<\_ASBOX | |
1178 | ## ----------- ## | |
1179 | ## confdefs.h. ## | |
1180 | ## ----------- ## | |
1181 | _ASBOX | |
1182 | echo | |
1183 | sed "/^$/d" confdefs.h | sort | |
1184 | echo | |
1185 | fi | |
1186 | test "$ac_signal" != 0 && | |
1187 | echo "$as_me: caught signal $ac_signal" | |
1188 | echo "$as_me: exit $exit_status" | |
1189 | } >&5 | |
1190 | rm -f core *.core && | |
1191 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1192 | exit $exit_status | |
1193 | ' 0 | |
1194 | for ac_signal in 1 2 13 15; do | |
1195 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1196 | done | |
1197 | ac_signal=0 | |
1198 | ||
1199 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1200 | rm -rf conftest* confdefs.h | |
1201 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1202 | echo >confdefs.h | |
1203 | ||
1204 | # Predefined preprocessor variables. | |
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | cat >>confdefs.h <<_ACEOF | |
1212 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1213 | _ACEOF | |
1214 | ||
1215 | ||
1216 | cat >>confdefs.h <<_ACEOF | |
1217 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1218 | _ACEOF | |
1219 | ||
1220 | ||
1221 | cat >>confdefs.h <<_ACEOF | |
1222 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1223 | _ACEOF | |
1224 | ||
1225 | ||
1226 | cat >>confdefs.h <<_ACEOF | |
1227 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1228 | _ACEOF | |
1229 | ||
1230 | ||
1231 | # Let the site file select an alternate cache file if it wants to. | |
1232 | # Prefer explicitly selected file to automatically selected ones. | |
1233 | if test -z "$CONFIG_SITE"; then | |
1234 | if test "x$prefix" != xNONE; then | |
1235 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1236 | else | |
1237 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1238 | fi | |
1239 | fi | |
1240 | for ac_site_file in $CONFIG_SITE; do | |
1241 | if test -r "$ac_site_file"; then | |
1242 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1243 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1244 | sed 's/^/| /' "$ac_site_file" >&5 | |
1245 | . "$ac_site_file" | |
1246 | fi | |
1247 | done | |
1248 | ||
1249 | if test -r "$cache_file"; then | |
1250 | # Some versions of bash will fail to source /dev/null (special | |
1251 | # files actually), so we avoid doing that. | |
1252 | if test -f "$cache_file"; then | |
1253 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1254 | echo "$as_me: loading cache $cache_file" >&6;} | |
1255 | case $cache_file in | |
1256 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1257 | *) . ./$cache_file;; | |
1258 | esac | |
1259 | fi | |
1260 | else | |
1261 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1262 | echo "$as_me: creating cache $cache_file" >&6;} | |
1263 | >$cache_file | |
1264 | fi | |
1265 | ||
1266 | # Check that the precious variables saved in the cache have kept the same | |
1267 | # value. | |
1268 | ac_cache_corrupted=false | |
1269 | for ac_var in `(set) 2>&1 | | |
1270 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1271 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1272 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1273 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1274 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1275 | case $ac_old_set,$ac_new_set in | |
1276 | set,) | |
1277 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1278 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1279 | ac_cache_corrupted=: ;; | |
1280 | ,set) | |
1281 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1282 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1283 | ac_cache_corrupted=: ;; | |
1284 | ,);; | |
1285 | *) | |
1286 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1287 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1288 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1289 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1290 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1291 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1292 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1293 | ac_cache_corrupted=: | |
1294 | fi;; | |
1295 | esac | |
1296 | # Pass precious variables to config.status. | |
1297 | if test "$ac_new_set" = set; then | |
1298 | case $ac_new_val in | |
1299 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1300 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1301 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1302 | esac | |
1303 | case " $ac_configure_args " in | |
1304 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1305 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1306 | esac | |
1307 | fi | |
1308 | done | |
1309 | if $ac_cache_corrupted; then | |
1310 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1311 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1312 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1313 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1314 | { (exit 1); exit 1; }; } | |
1315 | fi | |
1316 | ||
1317 | ac_ext=c | |
1318 | ac_cpp='$CPP $CPPFLAGS' | |
1319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ac_config_headers="$ac_config_headers common/icucfg.h" | |
1343 | ||
1344 | PACKAGE="icu" | |
1345 | ||
1346 | ||
1347 | echo "$as_me:$LINENO: checking for ICU version numbers" >&5 | |
1348 | echo $ECHO_N "checking for ICU version numbers... $ECHO_C" >&6 | |
1349 | ||
1350 | geticuversion() { | |
1351 | sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" | |
1352 | } | |
1353 | VERSION=`geticuversion $srcdir/common/unicode/uversion.h` | |
1354 | if test x"$VERSION" = x; then | |
1355 | VERSION=`geticuversion $srcdir/common/unicode/*.h` | |
1356 | if test x"$VERSION" = x; then | |
1357 | { { echo "$as_me:$LINENO: error: Cannot determine ICU version number from header files" >&5 | |
1358 | echo "$as_me: error: Cannot determine ICU version number from header files" >&2;} | |
1359 | { (exit 1); exit 1; }; } | |
1360 | fi | |
1361 | fi | |
1362 | LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'` | |
1363 | LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` | |
1364 | ||
1365 | ||
1366 | ||
1367 | echo "$as_me:$LINENO: result: release $VERSION, library $LIB_VERSION" >&5 | |
1368 | echo "${ECHO_T}release $VERSION, library $LIB_VERSION" >&6 | |
1369 | ||
1370 | UNICODE_VERSION="5.1" | |
1371 | ||
1372 | ||
1373 | ac_aux_dir= | |
1374 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1375 | if test -f $ac_dir/install-sh; then | |
1376 | ac_aux_dir=$ac_dir | |
1377 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1378 | break | |
1379 | elif test -f $ac_dir/install.sh; then | |
1380 | ac_aux_dir=$ac_dir | |
1381 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1382 | break | |
1383 | elif test -f $ac_dir/shtool; then | |
1384 | ac_aux_dir=$ac_dir | |
1385 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1386 | break | |
1387 | fi | |
1388 | done | |
1389 | if test -z "$ac_aux_dir"; then | |
1390 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1391 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1392 | { (exit 1); exit 1; }; } | |
1393 | fi | |
1394 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1395 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1396 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1397 | ||
1398 | # Make sure we can run config.sub. | |
1399 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1400 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1401 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1402 | { (exit 1); exit 1; }; } | |
1403 | ||
1404 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1405 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1406 | if test "${ac_cv_build+set}" = set; then | |
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1408 | else | |
1409 | ac_cv_build_alias=$build_alias | |
1410 | test -z "$ac_cv_build_alias" && | |
1411 | ac_cv_build_alias=`$ac_config_guess` | |
1412 | test -z "$ac_cv_build_alias" && | |
1413 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1414 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1415 | { (exit 1); exit 1; }; } | |
1416 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1417 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1418 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1419 | { (exit 1); exit 1; }; } | |
1420 | ||
1421 | fi | |
1422 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1423 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1424 | build=$ac_cv_build | |
1425 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1426 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1427 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1428 | ||
1429 | ||
1430 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1431 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1432 | if test "${ac_cv_host+set}" = set; then | |
1433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1434 | else | |
1435 | ac_cv_host_alias=$host_alias | |
1436 | test -z "$ac_cv_host_alias" && | |
1437 | ac_cv_host_alias=$ac_cv_build_alias | |
1438 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1439 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1440 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1441 | { (exit 1); exit 1; }; } | |
1442 | ||
1443 | fi | |
1444 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1445 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1446 | host=$ac_cv_host | |
1447 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1448 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1449 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1450 | ||
1451 | ||
1452 | ||
1453 | ||
1454 | ||
1455 | _CXX_CXXSUFFIX=cc | |
1456 | export _CXX_CXXSUFFIX | |
1457 | ac_ext=c | |
1458 | ac_cpp='$CPP $CPPFLAGS' | |
1459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1462 | if test -n "$ac_tool_prefix"; then | |
1463 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1464 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1467 | if test "${ac_cv_prog_CC+set}" = set; then | |
1468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1469 | else | |
1470 | if test -n "$CC"; then | |
1471 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1472 | else | |
1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1474 | for as_dir in $PATH | |
1475 | do | |
1476 | IFS=$as_save_IFS | |
1477 | test -z "$as_dir" && as_dir=. | |
1478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1480 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1482 | break 2 | |
1483 | fi | |
1484 | done | |
1485 | done | |
1486 | ||
1487 | fi | |
1488 | fi | |
1489 | CC=$ac_cv_prog_CC | |
1490 | if test -n "$CC"; then | |
1491 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1492 | echo "${ECHO_T}$CC" >&6 | |
1493 | else | |
1494 | echo "$as_me:$LINENO: result: no" >&5 | |
1495 | echo "${ECHO_T}no" >&6 | |
1496 | fi | |
1497 | ||
1498 | fi | |
1499 | if test -z "$ac_cv_prog_CC"; then | |
1500 | ac_ct_CC=$CC | |
1501 | # Extract the first word of "gcc", so it can be a program name with args. | |
1502 | set dummy gcc; ac_word=$2 | |
1503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1505 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1507 | else | |
1508 | if test -n "$ac_ct_CC"; then | |
1509 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1510 | else | |
1511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1512 | for as_dir in $PATH | |
1513 | do | |
1514 | IFS=$as_save_IFS | |
1515 | test -z "$as_dir" && as_dir=. | |
1516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1518 | ac_cv_prog_ac_ct_CC="gcc" | |
1519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1520 | break 2 | |
1521 | fi | |
1522 | done | |
1523 | done | |
1524 | ||
1525 | fi | |
1526 | fi | |
1527 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1528 | if test -n "$ac_ct_CC"; then | |
1529 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1530 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1531 | else | |
1532 | echo "$as_me:$LINENO: result: no" >&5 | |
1533 | echo "${ECHO_T}no" >&6 | |
1534 | fi | |
1535 | ||
1536 | CC=$ac_ct_CC | |
1537 | else | |
1538 | CC="$ac_cv_prog_CC" | |
1539 | fi | |
1540 | ||
1541 | if test -z "$CC"; then | |
1542 | if test -n "$ac_tool_prefix"; then | |
1543 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1544 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1547 | if test "${ac_cv_prog_CC+set}" = set; then | |
1548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1549 | else | |
1550 | if test -n "$CC"; then | |
1551 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1552 | else | |
1553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1554 | for as_dir in $PATH | |
1555 | do | |
1556 | IFS=$as_save_IFS | |
1557 | test -z "$as_dir" && as_dir=. | |
1558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1560 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1562 | break 2 | |
1563 | fi | |
1564 | done | |
1565 | done | |
1566 | ||
1567 | fi | |
1568 | fi | |
1569 | CC=$ac_cv_prog_CC | |
1570 | if test -n "$CC"; then | |
1571 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1572 | echo "${ECHO_T}$CC" >&6 | |
1573 | else | |
1574 | echo "$as_me:$LINENO: result: no" >&5 | |
1575 | echo "${ECHO_T}no" >&6 | |
1576 | fi | |
1577 | ||
1578 | fi | |
1579 | if test -z "$ac_cv_prog_CC"; then | |
1580 | ac_ct_CC=$CC | |
1581 | # Extract the first word of "cc", so it can be a program name with args. | |
1582 | set dummy cc; ac_word=$2 | |
1583 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1585 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1587 | else | |
1588 | if test -n "$ac_ct_CC"; then | |
1589 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1590 | else | |
1591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1592 | for as_dir in $PATH | |
1593 | do | |
1594 | IFS=$as_save_IFS | |
1595 | test -z "$as_dir" && as_dir=. | |
1596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1598 | ac_cv_prog_ac_ct_CC="cc" | |
1599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1600 | break 2 | |
1601 | fi | |
1602 | done | |
1603 | done | |
1604 | ||
1605 | fi | |
1606 | fi | |
1607 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1608 | if test -n "$ac_ct_CC"; then | |
1609 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1610 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1611 | else | |
1612 | echo "$as_me:$LINENO: result: no" >&5 | |
1613 | echo "${ECHO_T}no" >&6 | |
1614 | fi | |
1615 | ||
1616 | CC=$ac_ct_CC | |
1617 | else | |
1618 | CC="$ac_cv_prog_CC" | |
1619 | fi | |
1620 | ||
1621 | fi | |
1622 | if test -z "$CC"; then | |
1623 | # Extract the first word of "cc", so it can be a program name with args. | |
1624 | set dummy cc; ac_word=$2 | |
1625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1627 | if test "${ac_cv_prog_CC+set}" = set; then | |
1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1629 | else | |
1630 | if test -n "$CC"; then | |
1631 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1632 | else | |
1633 | ac_prog_rejected=no | |
1634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1635 | for as_dir in $PATH | |
1636 | do | |
1637 | IFS=$as_save_IFS | |
1638 | test -z "$as_dir" && as_dir=. | |
1639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1641 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1642 | ac_prog_rejected=yes | |
1643 | continue | |
1644 | fi | |
1645 | ac_cv_prog_CC="cc" | |
1646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1647 | break 2 | |
1648 | fi | |
1649 | done | |
1650 | done | |
1651 | ||
1652 | if test $ac_prog_rejected = yes; then | |
1653 | # We found a bogon in the path, so make sure we never use it. | |
1654 | set dummy $ac_cv_prog_CC | |
1655 | shift | |
1656 | if test $# != 0; then | |
1657 | # We chose a different compiler from the bogus one. | |
1658 | # However, it has the same basename, so the bogon will be chosen | |
1659 | # first if we set CC to just the basename; use the full file name. | |
1660 | shift | |
1661 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1662 | fi | |
1663 | fi | |
1664 | fi | |
1665 | fi | |
1666 | CC=$ac_cv_prog_CC | |
1667 | if test -n "$CC"; then | |
1668 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1669 | echo "${ECHO_T}$CC" >&6 | |
1670 | else | |
1671 | echo "$as_me:$LINENO: result: no" >&5 | |
1672 | echo "${ECHO_T}no" >&6 | |
1673 | fi | |
1674 | ||
1675 | fi | |
1676 | if test -z "$CC"; then | |
1677 | if test -n "$ac_tool_prefix"; then | |
1678 | for ac_prog in cl | |
1679 | do | |
1680 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1681 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1684 | if test "${ac_cv_prog_CC+set}" = set; then | |
1685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1686 | else | |
1687 | if test -n "$CC"; then | |
1688 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1689 | else | |
1690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1691 | for as_dir in $PATH | |
1692 | do | |
1693 | IFS=$as_save_IFS | |
1694 | test -z "$as_dir" && as_dir=. | |
1695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1697 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1699 | break 2 | |
1700 | fi | |
1701 | done | |
1702 | done | |
1703 | ||
1704 | fi | |
1705 | fi | |
1706 | CC=$ac_cv_prog_CC | |
1707 | if test -n "$CC"; then | |
1708 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1709 | echo "${ECHO_T}$CC" >&6 | |
1710 | else | |
1711 | echo "$as_me:$LINENO: result: no" >&5 | |
1712 | echo "${ECHO_T}no" >&6 | |
1713 | fi | |
1714 | ||
1715 | test -n "$CC" && break | |
1716 | done | |
1717 | fi | |
1718 | if test -z "$CC"; then | |
1719 | ac_ct_CC=$CC | |
1720 | for ac_prog in cl | |
1721 | do | |
1722 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1723 | set dummy $ac_prog; ac_word=$2 | |
1724 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1726 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1728 | else | |
1729 | if test -n "$ac_ct_CC"; then | |
1730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1731 | else | |
1732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1733 | for as_dir in $PATH | |
1734 | do | |
1735 | IFS=$as_save_IFS | |
1736 | test -z "$as_dir" && as_dir=. | |
1737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1739 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1741 | break 2 | |
1742 | fi | |
1743 | done | |
1744 | done | |
1745 | ||
1746 | fi | |
1747 | fi | |
1748 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1749 | if test -n "$ac_ct_CC"; then | |
1750 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1751 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1752 | else | |
1753 | echo "$as_me:$LINENO: result: no" >&5 | |
1754 | echo "${ECHO_T}no" >&6 | |
1755 | fi | |
1756 | ||
1757 | test -n "$ac_ct_CC" && break | |
1758 | done | |
1759 | ||
1760 | CC=$ac_ct_CC | |
1761 | fi | |
1762 | ||
1763 | fi | |
1764 | ||
1765 | ||
1766 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1767 | See \`config.log' for more details." >&5 | |
1768 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1769 | See \`config.log' for more details." >&2;} | |
1770 | { (exit 1); exit 1; }; } | |
1771 | ||
1772 | # Provide some information about the compiler. | |
1773 | echo "$as_me:$LINENO:" \ | |
1774 | "checking for C compiler version" >&5 | |
1775 | ac_compiler=`set X $ac_compile; echo $2` | |
1776 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1777 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1778 | ac_status=$? | |
1779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1780 | (exit $ac_status); } | |
1781 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1782 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1783 | ac_status=$? | |
1784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1785 | (exit $ac_status); } | |
1786 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1787 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1788 | ac_status=$? | |
1789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1790 | (exit $ac_status); } | |
1791 | ||
1792 | cat >conftest.$ac_ext <<_ACEOF | |
1793 | /* confdefs.h. */ | |
1794 | _ACEOF | |
1795 | cat confdefs.h >>conftest.$ac_ext | |
1796 | cat >>conftest.$ac_ext <<_ACEOF | |
1797 | /* end confdefs.h. */ | |
1798 | ||
1799 | int | |
1800 | main () | |
1801 | { | |
1802 | ||
1803 | ; | |
1804 | return 0; | |
1805 | } | |
1806 | _ACEOF | |
1807 | ac_clean_files_save=$ac_clean_files | |
1808 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1809 | # Try to create an executable without -o first, disregard a.out. | |
1810 | # It will help us diagnose broken compilers, and finding out an intuition | |
1811 | # of exeext. | |
1812 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1813 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1814 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1815 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1816 | (eval $ac_link_default) 2>&5 | |
1817 | ac_status=$? | |
1818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1819 | (exit $ac_status); }; then | |
1820 | # Find the output, starting from the most likely. This scheme is | |
1821 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1822 | # resort. | |
1823 | ||
1824 | # Be careful to initialize this variable, since it used to be cached. | |
1825 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1826 | ac_cv_exeext= | |
1827 | # b.out is created by i960 compilers. | |
1828 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1829 | do | |
1830 | test -f "$ac_file" || continue | |
1831 | case $ac_file in | |
1832 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1833 | ;; | |
1834 | conftest.$ac_ext ) | |
1835 | # This is the source file. | |
1836 | ;; | |
1837 | [ab].out ) | |
1838 | # We found the default executable, but exeext='' is most | |
1839 | # certainly right. | |
1840 | break;; | |
1841 | *.* ) | |
1842 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1843 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1844 | # but it would be cool to find out if it's true. Does anybody | |
1845 | # maintain Libtool? --akim. | |
1846 | export ac_cv_exeext | |
1847 | break;; | |
1848 | * ) | |
1849 | break;; | |
1850 | esac | |
1851 | done | |
1852 | else | |
1853 | echo "$as_me: failed program was:" >&5 | |
1854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1855 | ||
1856 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1857 | See \`config.log' for more details." >&5 | |
1858 | echo "$as_me: error: C compiler cannot create executables | |
1859 | See \`config.log' for more details." >&2;} | |
1860 | { (exit 77); exit 77; }; } | |
1861 | fi | |
1862 | ||
1863 | ac_exeext=$ac_cv_exeext | |
1864 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1865 | echo "${ECHO_T}$ac_file" >&6 | |
1866 | ||
1867 | # Check the compiler produces executables we can run. If not, either | |
1868 | # the compiler is broken, or we cross compile. | |
1869 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1870 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1871 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1872 | # If not cross compiling, check that we can run a simple program. | |
1873 | if test "$cross_compiling" != yes; then | |
1874 | if { ac_try='./$ac_file' | |
1875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1876 | (eval $ac_try) 2>&5 | |
1877 | ac_status=$? | |
1878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1879 | (exit $ac_status); }; }; then | |
1880 | cross_compiling=no | |
1881 | else | |
1882 | if test "$cross_compiling" = maybe; then | |
1883 | cross_compiling=yes | |
1884 | else | |
1885 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1886 | If you meant to cross compile, use \`--host'. | |
1887 | See \`config.log' for more details." >&5 | |
1888 | echo "$as_me: error: cannot run C compiled programs. | |
1889 | If you meant to cross compile, use \`--host'. | |
1890 | See \`config.log' for more details." >&2;} | |
1891 | { (exit 1); exit 1; }; } | |
1892 | fi | |
1893 | fi | |
1894 | fi | |
1895 | echo "$as_me:$LINENO: result: yes" >&5 | |
1896 | echo "${ECHO_T}yes" >&6 | |
1897 | ||
1898 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1899 | ac_clean_files=$ac_clean_files_save | |
1900 | # Check the compiler produces executables we can run. If not, either | |
1901 | # the compiler is broken, or we cross compile. | |
1902 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1903 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1904 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1905 | echo "${ECHO_T}$cross_compiling" >&6 | |
1906 | ||
1907 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1908 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1910 | (eval $ac_link) 2>&5 | |
1911 | ac_status=$? | |
1912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1913 | (exit $ac_status); }; then | |
1914 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1915 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1916 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1917 | # `rm'. | |
1918 | for ac_file in conftest.exe conftest conftest.*; do | |
1919 | test -f "$ac_file" || continue | |
1920 | case $ac_file in | |
1921 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1922 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1923 | export ac_cv_exeext | |
1924 | break;; | |
1925 | * ) break;; | |
1926 | esac | |
1927 | done | |
1928 | else | |
1929 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1930 | See \`config.log' for more details." >&5 | |
1931 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1932 | See \`config.log' for more details." >&2;} | |
1933 | { (exit 1); exit 1; }; } | |
1934 | fi | |
1935 | ||
1936 | rm -f conftest$ac_cv_exeext | |
1937 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1938 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1939 | ||
1940 | rm -f conftest.$ac_ext | |
1941 | EXEEXT=$ac_cv_exeext | |
1942 | ac_exeext=$EXEEXT | |
1943 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1944 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1945 | if test "${ac_cv_objext+set}" = set; then | |
1946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1947 | else | |
1948 | cat >conftest.$ac_ext <<_ACEOF | |
1949 | /* confdefs.h. */ | |
1950 | _ACEOF | |
1951 | cat confdefs.h >>conftest.$ac_ext | |
1952 | cat >>conftest.$ac_ext <<_ACEOF | |
1953 | /* end confdefs.h. */ | |
1954 | ||
1955 | int | |
1956 | main () | |
1957 | { | |
1958 | ||
1959 | ; | |
1960 | return 0; | |
1961 | } | |
1962 | _ACEOF | |
1963 | rm -f conftest.o conftest.obj | |
1964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1965 | (eval $ac_compile) 2>&5 | |
1966 | ac_status=$? | |
1967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1968 | (exit $ac_status); }; then | |
1969 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1970 | case $ac_file in | |
1971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1972 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1973 | break;; | |
1974 | esac | |
1975 | done | |
1976 | else | |
1977 | echo "$as_me: failed program was:" >&5 | |
1978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1979 | ||
1980 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1981 | See \`config.log' for more details." >&5 | |
1982 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1983 | See \`config.log' for more details." >&2;} | |
1984 | { (exit 1); exit 1; }; } | |
1985 | fi | |
1986 | ||
1987 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1988 | fi | |
1989 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1990 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1991 | OBJEXT=$ac_cv_objext | |
1992 | ac_objext=$OBJEXT | |
1993 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1994 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1995 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1997 | else | |
1998 | cat >conftest.$ac_ext <<_ACEOF | |
1999 | /* confdefs.h. */ | |
2000 | _ACEOF | |
2001 | cat confdefs.h >>conftest.$ac_ext | |
2002 | cat >>conftest.$ac_ext <<_ACEOF | |
2003 | /* end confdefs.h. */ | |
2004 | ||
2005 | int | |
2006 | main () | |
2007 | { | |
2008 | #ifndef __GNUC__ | |
2009 | choke me | |
2010 | #endif | |
2011 | ||
2012 | ; | |
2013 | return 0; | |
2014 | } | |
2015 | _ACEOF | |
2016 | rm -f conftest.$ac_objext | |
2017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2018 | (eval $ac_compile) 2>conftest.er1 | |
2019 | ac_status=$? | |
2020 | grep -v '^ *+' conftest.er1 >conftest.err | |
2021 | rm -f conftest.er1 | |
2022 | cat conftest.err >&5 | |
2023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2024 | (exit $ac_status); } && | |
2025 | { ac_try='test -z "$ac_c_werror_flag" | |
2026 | || test ! -s conftest.err' | |
2027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2028 | (eval $ac_try) 2>&5 | |
2029 | ac_status=$? | |
2030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2031 | (exit $ac_status); }; } && | |
2032 | { ac_try='test -s conftest.$ac_objext' | |
2033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2034 | (eval $ac_try) 2>&5 | |
2035 | ac_status=$? | |
2036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2037 | (exit $ac_status); }; }; then | |
2038 | ac_compiler_gnu=yes | |
2039 | else | |
2040 | echo "$as_me: failed program was:" >&5 | |
2041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2042 | ||
2043 | ac_compiler_gnu=no | |
2044 | fi | |
2045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2046 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2047 | ||
2048 | fi | |
2049 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2050 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2051 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2052 | ac_test_CFLAGS=${CFLAGS+set} | |
2053 | ac_save_CFLAGS=$CFLAGS | |
2054 | CFLAGS="-g" | |
2055 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2056 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2057 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2059 | else | |
2060 | cat >conftest.$ac_ext <<_ACEOF | |
2061 | /* confdefs.h. */ | |
2062 | _ACEOF | |
2063 | cat confdefs.h >>conftest.$ac_ext | |
2064 | cat >>conftest.$ac_ext <<_ACEOF | |
2065 | /* end confdefs.h. */ | |
2066 | ||
2067 | int | |
2068 | main () | |
2069 | { | |
2070 | ||
2071 | ; | |
2072 | return 0; | |
2073 | } | |
2074 | _ACEOF | |
2075 | rm -f conftest.$ac_objext | |
2076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2077 | (eval $ac_compile) 2>conftest.er1 | |
2078 | ac_status=$? | |
2079 | grep -v '^ *+' conftest.er1 >conftest.err | |
2080 | rm -f conftest.er1 | |
2081 | cat conftest.err >&5 | |
2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2083 | (exit $ac_status); } && | |
2084 | { ac_try='test -z "$ac_c_werror_flag" | |
2085 | || test ! -s conftest.err' | |
2086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2087 | (eval $ac_try) 2>&5 | |
2088 | ac_status=$? | |
2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2090 | (exit $ac_status); }; } && | |
2091 | { ac_try='test -s conftest.$ac_objext' | |
2092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2093 | (eval $ac_try) 2>&5 | |
2094 | ac_status=$? | |
2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2096 | (exit $ac_status); }; }; then | |
2097 | ac_cv_prog_cc_g=yes | |
2098 | else | |
2099 | echo "$as_me: failed program was:" >&5 | |
2100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2101 | ||
2102 | ac_cv_prog_cc_g=no | |
2103 | fi | |
2104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2105 | fi | |
2106 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2107 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2108 | if test "$ac_test_CFLAGS" = set; then | |
2109 | CFLAGS=$ac_save_CFLAGS | |
2110 | elif test $ac_cv_prog_cc_g = yes; then | |
2111 | if test "$GCC" = yes; then | |
2112 | CFLAGS="-g -O2" | |
2113 | else | |
2114 | CFLAGS="-g" | |
2115 | fi | |
2116 | else | |
2117 | if test "$GCC" = yes; then | |
2118 | CFLAGS="-O2" | |
2119 | else | |
2120 | CFLAGS= | |
2121 | fi | |
2122 | fi | |
2123 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2124 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2125 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2127 | else | |
2128 | ac_cv_prog_cc_stdc=no | |
2129 | ac_save_CC=$CC | |
2130 | cat >conftest.$ac_ext <<_ACEOF | |
2131 | /* confdefs.h. */ | |
2132 | _ACEOF | |
2133 | cat confdefs.h >>conftest.$ac_ext | |
2134 | cat >>conftest.$ac_ext <<_ACEOF | |
2135 | /* end confdefs.h. */ | |
2136 | #include <stdarg.h> | |
2137 | #include <stdio.h> | |
2138 | #include <sys/types.h> | |
2139 | #include <sys/stat.h> | |
2140 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2141 | struct buf { int x; }; | |
2142 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2143 | static char *e (p, i) | |
2144 | char **p; | |
2145 | int i; | |
2146 | { | |
2147 | return p[i]; | |
2148 | } | |
2149 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2150 | { | |
2151 | char *s; | |
2152 | va_list v; | |
2153 | va_start (v,p); | |
2154 | s = g (p, va_arg (v,int)); | |
2155 | va_end (v); | |
2156 | return s; | |
2157 | } | |
2158 | ||
2159 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2160 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2161 | These don't provoke an error unfortunately, instead are silently treated | |
2162 | as 'x'. The following induces an error, until -std1 is added to get | |
2163 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2164 | array size at least. It's necessary to write '\x00'==0 to get something | |
2165 | that's true only with -std1. */ | |
2166 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2167 | ||
2168 | int test (int i, double x); | |
2169 | struct s1 {int (*f) (int a);}; | |
2170 | struct s2 {int (*f) (double a);}; | |
2171 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2172 | int argc; | |
2173 | char **argv; | |
2174 | int | |
2175 | main () | |
2176 | { | |
2177 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2178 | ; | |
2179 | return 0; | |
2180 | } | |
2181 | _ACEOF | |
2182 | # Don't try gcc -ansi; that turns off useful extensions and | |
2183 | # breaks some systems' header files. | |
2184 | # AIX -qlanglvl=ansi | |
2185 | # Ultrix and OSF/1 -std1 | |
2186 | # HP-UX 10.20 and later -Ae | |
2187 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2188 | # SVR4 -Xc -D__EXTENSIONS__ | |
2189 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2190 | do | |
2191 | CC="$ac_save_CC $ac_arg" | |
2192 | rm -f conftest.$ac_objext | |
2193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2194 | (eval $ac_compile) 2>conftest.er1 | |
2195 | ac_status=$? | |
2196 | grep -v '^ *+' conftest.er1 >conftest.err | |
2197 | rm -f conftest.er1 | |
2198 | cat conftest.err >&5 | |
2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2200 | (exit $ac_status); } && | |
2201 | { ac_try='test -z "$ac_c_werror_flag" | |
2202 | || test ! -s conftest.err' | |
2203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2204 | (eval $ac_try) 2>&5 | |
2205 | ac_status=$? | |
2206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2207 | (exit $ac_status); }; } && | |
2208 | { ac_try='test -s conftest.$ac_objext' | |
2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2210 | (eval $ac_try) 2>&5 | |
2211 | ac_status=$? | |
2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2213 | (exit $ac_status); }; }; then | |
2214 | ac_cv_prog_cc_stdc=$ac_arg | |
2215 | break | |
2216 | else | |
2217 | echo "$as_me: failed program was:" >&5 | |
2218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2219 | ||
2220 | fi | |
2221 | rm -f conftest.err conftest.$ac_objext | |
2222 | done | |
2223 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2224 | CC=$ac_save_CC | |
2225 | ||
2226 | fi | |
2227 | ||
2228 | case "x$ac_cv_prog_cc_stdc" in | |
2229 | x|xno) | |
2230 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2231 | echo "${ECHO_T}none needed" >&6 ;; | |
2232 | *) | |
2233 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2234 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2235 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2236 | esac | |
2237 | ||
2238 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2239 | # in C++ we need to declare it. In case someone uses the same compiler | |
2240 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2241 | # the declaration of exit, since it's the most demanding environment. | |
2242 | cat >conftest.$ac_ext <<_ACEOF | |
2243 | #ifndef __cplusplus | |
2244 | choke me | |
2245 | #endif | |
2246 | _ACEOF | |
2247 | rm -f conftest.$ac_objext | |
2248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2249 | (eval $ac_compile) 2>conftest.er1 | |
2250 | ac_status=$? | |
2251 | grep -v '^ *+' conftest.er1 >conftest.err | |
2252 | rm -f conftest.er1 | |
2253 | cat conftest.err >&5 | |
2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2255 | (exit $ac_status); } && | |
2256 | { ac_try='test -z "$ac_c_werror_flag" | |
2257 | || test ! -s conftest.err' | |
2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2259 | (eval $ac_try) 2>&5 | |
2260 | ac_status=$? | |
2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2262 | (exit $ac_status); }; } && | |
2263 | { ac_try='test -s conftest.$ac_objext' | |
2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2265 | (eval $ac_try) 2>&5 | |
2266 | ac_status=$? | |
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2268 | (exit $ac_status); }; }; then | |
2269 | for ac_declaration in \ | |
2270 | '' \ | |
2271 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2272 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2273 | 'extern "C" void exit (int) throw ();' \ | |
2274 | 'extern "C" void exit (int);' \ | |
2275 | 'void exit (int);' | |
2276 | do | |
2277 | cat >conftest.$ac_ext <<_ACEOF | |
2278 | /* confdefs.h. */ | |
2279 | _ACEOF | |
2280 | cat confdefs.h >>conftest.$ac_ext | |
2281 | cat >>conftest.$ac_ext <<_ACEOF | |
2282 | /* end confdefs.h. */ | |
2283 | $ac_declaration | |
2284 | #include <stdlib.h> | |
2285 | int | |
2286 | main () | |
2287 | { | |
2288 | exit (42); | |
2289 | ; | |
2290 | return 0; | |
2291 | } | |
2292 | _ACEOF | |
2293 | rm -f conftest.$ac_objext | |
2294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2295 | (eval $ac_compile) 2>conftest.er1 | |
2296 | ac_status=$? | |
2297 | grep -v '^ *+' conftest.er1 >conftest.err | |
2298 | rm -f conftest.er1 | |
2299 | cat conftest.err >&5 | |
2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2301 | (exit $ac_status); } && | |
2302 | { ac_try='test -z "$ac_c_werror_flag" | |
2303 | || test ! -s conftest.err' | |
2304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2305 | (eval $ac_try) 2>&5 | |
2306 | ac_status=$? | |
2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2308 | (exit $ac_status); }; } && | |
2309 | { ac_try='test -s conftest.$ac_objext' | |
2310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2311 | (eval $ac_try) 2>&5 | |
2312 | ac_status=$? | |
2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2314 | (exit $ac_status); }; }; then | |
2315 | : | |
2316 | else | |
2317 | echo "$as_me: failed program was:" >&5 | |
2318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2319 | ||
2320 | continue | |
2321 | fi | |
2322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2323 | cat >conftest.$ac_ext <<_ACEOF | |
2324 | /* confdefs.h. */ | |
2325 | _ACEOF | |
2326 | cat confdefs.h >>conftest.$ac_ext | |
2327 | cat >>conftest.$ac_ext <<_ACEOF | |
2328 | /* end confdefs.h. */ | |
2329 | $ac_declaration | |
2330 | int | |
2331 | main () | |
2332 | { | |
2333 | exit (42); | |
2334 | ; | |
2335 | return 0; | |
2336 | } | |
2337 | _ACEOF | |
2338 | rm -f conftest.$ac_objext | |
2339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2340 | (eval $ac_compile) 2>conftest.er1 | |
2341 | ac_status=$? | |
2342 | grep -v '^ *+' conftest.er1 >conftest.err | |
2343 | rm -f conftest.er1 | |
2344 | cat conftest.err >&5 | |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); } && | |
2347 | { ac_try='test -z "$ac_c_werror_flag" | |
2348 | || test ! -s conftest.err' | |
2349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2350 | (eval $ac_try) 2>&5 | |
2351 | ac_status=$? | |
2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2353 | (exit $ac_status); }; } && | |
2354 | { ac_try='test -s conftest.$ac_objext' | |
2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2356 | (eval $ac_try) 2>&5 | |
2357 | ac_status=$? | |
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2359 | (exit $ac_status); }; }; then | |
2360 | break | |
2361 | else | |
2362 | echo "$as_me: failed program was:" >&5 | |
2363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2364 | ||
2365 | fi | |
2366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2367 | done | |
2368 | rm -f conftest* | |
2369 | if test -n "$ac_declaration"; then | |
2370 | echo '#ifdef __cplusplus' >>confdefs.h | |
2371 | echo $ac_declaration >>confdefs.h | |
2372 | echo '#endif' >>confdefs.h | |
2373 | fi | |
2374 | ||
2375 | else | |
2376 | echo "$as_me: failed program was:" >&5 | |
2377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2378 | ||
2379 | fi | |
2380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2381 | ac_ext=c | |
2382 | ac_cpp='$CPP $CPPFLAGS' | |
2383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2386 | ||
2387 | ac_ext=cc | |
2388 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2389 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2390 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2391 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2392 | if test -n "$ac_tool_prefix"; then | |
2393 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2394 | do | |
2395 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2396 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2399 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2401 | else | |
2402 | if test -n "$CXX"; then | |
2403 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2404 | else | |
2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2406 | for as_dir in $PATH | |
2407 | do | |
2408 | IFS=$as_save_IFS | |
2409 | test -z "$as_dir" && as_dir=. | |
2410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2412 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2414 | break 2 | |
2415 | fi | |
2416 | done | |
2417 | done | |
2418 | ||
2419 | fi | |
2420 | fi | |
2421 | CXX=$ac_cv_prog_CXX | |
2422 | if test -n "$CXX"; then | |
2423 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2424 | echo "${ECHO_T}$CXX" >&6 | |
2425 | else | |
2426 | echo "$as_me:$LINENO: result: no" >&5 | |
2427 | echo "${ECHO_T}no" >&6 | |
2428 | fi | |
2429 | ||
2430 | test -n "$CXX" && break | |
2431 | done | |
2432 | fi | |
2433 | if test -z "$CXX"; then | |
2434 | ac_ct_CXX=$CXX | |
2435 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2436 | do | |
2437 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2438 | set dummy $ac_prog; ac_word=$2 | |
2439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2441 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2443 | else | |
2444 | if test -n "$ac_ct_CXX"; then | |
2445 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2446 | else | |
2447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2448 | for as_dir in $PATH | |
2449 | do | |
2450 | IFS=$as_save_IFS | |
2451 | test -z "$as_dir" && as_dir=. | |
2452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2454 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
2455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2456 | break 2 | |
2457 | fi | |
2458 | done | |
2459 | done | |
2460 | ||
2461 | fi | |
2462 | fi | |
2463 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2464 | if test -n "$ac_ct_CXX"; then | |
2465 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2466 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2467 | else | |
2468 | echo "$as_me:$LINENO: result: no" >&5 | |
2469 | echo "${ECHO_T}no" >&6 | |
2470 | fi | |
2471 | ||
2472 | test -n "$ac_ct_CXX" && break | |
2473 | done | |
2474 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2475 | ||
2476 | CXX=$ac_ct_CXX | |
2477 | fi | |
2478 | ||
2479 | ||
2480 | # Provide some information about the compiler. | |
2481 | echo "$as_me:$LINENO:" \ | |
2482 | "checking for C++ compiler version" >&5 | |
2483 | ac_compiler=`set X $ac_compile; echo $2` | |
2484 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2485 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2486 | ac_status=$? | |
2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2488 | (exit $ac_status); } | |
2489 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2490 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2491 | ac_status=$? | |
2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2493 | (exit $ac_status); } | |
2494 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2495 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2496 | ac_status=$? | |
2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2498 | (exit $ac_status); } | |
2499 | ||
2500 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2501 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2502 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2504 | else | |
2505 | cat >conftest.$ac_ext <<_ACEOF | |
2506 | /* confdefs.h. */ | |
2507 | _ACEOF | |
2508 | cat confdefs.h >>conftest.$ac_ext | |
2509 | cat >>conftest.$ac_ext <<_ACEOF | |
2510 | /* end confdefs.h. */ | |
2511 | ||
2512 | int | |
2513 | main () | |
2514 | { | |
2515 | #ifndef __GNUC__ | |
2516 | choke me | |
2517 | #endif | |
2518 | ||
2519 | ; | |
2520 | return 0; | |
2521 | } | |
2522 | _ACEOF | |
2523 | rm -f conftest.$ac_objext | |
2524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2525 | (eval $ac_compile) 2>conftest.er1 | |
2526 | ac_status=$? | |
2527 | grep -v '^ *+' conftest.er1 >conftest.err | |
2528 | rm -f conftest.er1 | |
2529 | cat conftest.err >&5 | |
2530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2531 | (exit $ac_status); } && | |
2532 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2533 | || test ! -s conftest.err' | |
2534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2535 | (eval $ac_try) 2>&5 | |
2536 | ac_status=$? | |
2537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2538 | (exit $ac_status); }; } && | |
2539 | { ac_try='test -s conftest.$ac_objext' | |
2540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2541 | (eval $ac_try) 2>&5 | |
2542 | ac_status=$? | |
2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2544 | (exit $ac_status); }; }; then | |
2545 | ac_compiler_gnu=yes | |
2546 | else | |
2547 | echo "$as_me: failed program was:" >&5 | |
2548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2549 | ||
2550 | ac_compiler_gnu=no | |
2551 | fi | |
2552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2553 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2554 | ||
2555 | fi | |
2556 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2557 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2558 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2559 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2560 | ac_save_CXXFLAGS=$CXXFLAGS | |
2561 | CXXFLAGS="-g" | |
2562 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2563 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2564 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2566 | else | |
2567 | cat >conftest.$ac_ext <<_ACEOF | |
2568 | /* confdefs.h. */ | |
2569 | _ACEOF | |
2570 | cat confdefs.h >>conftest.$ac_ext | |
2571 | cat >>conftest.$ac_ext <<_ACEOF | |
2572 | /* end confdefs.h. */ | |
2573 | ||
2574 | int | |
2575 | main () | |
2576 | { | |
2577 | ||
2578 | ; | |
2579 | return 0; | |
2580 | } | |
2581 | _ACEOF | |
2582 | rm -f conftest.$ac_objext | |
2583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2584 | (eval $ac_compile) 2>conftest.er1 | |
2585 | ac_status=$? | |
2586 | grep -v '^ *+' conftest.er1 >conftest.err | |
2587 | rm -f conftest.er1 | |
2588 | cat conftest.err >&5 | |
2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2590 | (exit $ac_status); } && | |
2591 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2592 | || test ! -s conftest.err' | |
2593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2594 | (eval $ac_try) 2>&5 | |
2595 | ac_status=$? | |
2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2597 | (exit $ac_status); }; } && | |
2598 | { ac_try='test -s conftest.$ac_objext' | |
2599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2600 | (eval $ac_try) 2>&5 | |
2601 | ac_status=$? | |
2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2603 | (exit $ac_status); }; }; then | |
2604 | ac_cv_prog_cxx_g=yes | |
2605 | else | |
2606 | echo "$as_me: failed program was:" >&5 | |
2607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2608 | ||
2609 | ac_cv_prog_cxx_g=no | |
2610 | fi | |
2611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2612 | fi | |
2613 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2614 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2615 | if test "$ac_test_CXXFLAGS" = set; then | |
2616 | CXXFLAGS=$ac_save_CXXFLAGS | |
2617 | elif test $ac_cv_prog_cxx_g = yes; then | |
2618 | if test "$GXX" = yes; then | |
2619 | CXXFLAGS="-g -O2" | |
2620 | else | |
2621 | CXXFLAGS="-g" | |
2622 | fi | |
2623 | else | |
2624 | if test "$GXX" = yes; then | |
2625 | CXXFLAGS="-O2" | |
2626 | else | |
2627 | CXXFLAGS= | |
2628 | fi | |
2629 | fi | |
2630 | for ac_declaration in \ | |
2631 | '' \ | |
2632 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2633 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2634 | 'extern "C" void exit (int) throw ();' \ | |
2635 | 'extern "C" void exit (int);' \ | |
2636 | 'void exit (int);' | |
2637 | do | |
2638 | cat >conftest.$ac_ext <<_ACEOF | |
2639 | /* confdefs.h. */ | |
2640 | _ACEOF | |
2641 | cat confdefs.h >>conftest.$ac_ext | |
2642 | cat >>conftest.$ac_ext <<_ACEOF | |
2643 | /* end confdefs.h. */ | |
2644 | $ac_declaration | |
2645 | #include <stdlib.h> | |
2646 | int | |
2647 | main () | |
2648 | { | |
2649 | exit (42); | |
2650 | ; | |
2651 | return 0; | |
2652 | } | |
2653 | _ACEOF | |
2654 | rm -f conftest.$ac_objext | |
2655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2656 | (eval $ac_compile) 2>conftest.er1 | |
2657 | ac_status=$? | |
2658 | grep -v '^ *+' conftest.er1 >conftest.err | |
2659 | rm -f conftest.er1 | |
2660 | cat conftest.err >&5 | |
2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2662 | (exit $ac_status); } && | |
2663 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2664 | || test ! -s conftest.err' | |
2665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2666 | (eval $ac_try) 2>&5 | |
2667 | ac_status=$? | |
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2669 | (exit $ac_status); }; } && | |
2670 | { ac_try='test -s conftest.$ac_objext' | |
2671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2672 | (eval $ac_try) 2>&5 | |
2673 | ac_status=$? | |
2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2675 | (exit $ac_status); }; }; then | |
2676 | : | |
2677 | else | |
2678 | echo "$as_me: failed program was:" >&5 | |
2679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2680 | ||
2681 | continue | |
2682 | fi | |
2683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2684 | cat >conftest.$ac_ext <<_ACEOF | |
2685 | /* confdefs.h. */ | |
2686 | _ACEOF | |
2687 | cat confdefs.h >>conftest.$ac_ext | |
2688 | cat >>conftest.$ac_ext <<_ACEOF | |
2689 | /* end confdefs.h. */ | |
2690 | $ac_declaration | |
2691 | int | |
2692 | main () | |
2693 | { | |
2694 | exit (42); | |
2695 | ; | |
2696 | return 0; | |
2697 | } | |
2698 | _ACEOF | |
2699 | rm -f conftest.$ac_objext | |
2700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2701 | (eval $ac_compile) 2>conftest.er1 | |
2702 | ac_status=$? | |
2703 | grep -v '^ *+' conftest.er1 >conftest.err | |
2704 | rm -f conftest.er1 | |
2705 | cat conftest.err >&5 | |
2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2707 | (exit $ac_status); } && | |
2708 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2709 | || test ! -s conftest.err' | |
2710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2711 | (eval $ac_try) 2>&5 | |
2712 | ac_status=$? | |
2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2714 | (exit $ac_status); }; } && | |
2715 | { ac_try='test -s conftest.$ac_objext' | |
2716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2717 | (eval $ac_try) 2>&5 | |
2718 | ac_status=$? | |
2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2720 | (exit $ac_status); }; }; then | |
2721 | break | |
2722 | else | |
2723 | echo "$as_me: failed program was:" >&5 | |
2724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2725 | ||
2726 | fi | |
2727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2728 | done | |
2729 | rm -f conftest* | |
2730 | if test -n "$ac_declaration"; then | |
2731 | echo '#ifdef __cplusplus' >>confdefs.h | |
2732 | echo $ac_declaration >>confdefs.h | |
2733 | echo '#endif' >>confdefs.h | |
2734 | fi | |
2735 | ||
2736 | ac_ext=c | |
2737 | ac_cpp='$CPP $CPPFLAGS' | |
2738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2741 | ||
2742 | # Find a good install program. We prefer a C program (faster), | |
2743 | # so one script is as good as another. But avoid the broken or | |
2744 | # incompatible versions: | |
2745 | # SysV /etc/install, /usr/sbin/install | |
2746 | # SunOS /usr/etc/install | |
2747 | # IRIX /sbin/install | |
2748 | # AIX /bin/install | |
2749 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2750 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2751 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2752 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2753 | # OS/2's system install, which has a completely different semantic | |
2754 | # ./install, which can be erroneously created by make from ./install.sh. | |
2755 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2756 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2757 | if test -z "$INSTALL"; then | |
2758 | if test "${ac_cv_path_install+set}" = set; then | |
2759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2760 | else | |
2761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2762 | for as_dir in $PATH | |
2763 | do | |
2764 | IFS=$as_save_IFS | |
2765 | test -z "$as_dir" && as_dir=. | |
2766 | # Account for people who put trailing slashes in PATH elements. | |
2767 | case $as_dir/ in | |
2768 | ./ | .// | /cC/* | \ | |
2769 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2770 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2771 | /usr/ucb/* ) ;; | |
2772 | *) | |
2773 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2774 | # Don't use installbsd from OSF since it installs stuff as root | |
2775 | # by default. | |
2776 | for ac_prog in ginstall scoinst install; do | |
2777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2778 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2779 | if test $ac_prog = install && | |
2780 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2781 | # AIX install. It has an incompatible calling convention. | |
2782 | : | |
2783 | elif test $ac_prog = install && | |
2784 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2785 | # program-specific install script used by HP pwplus--don't use. | |
2786 | : | |
2787 | else | |
2788 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2789 | break 3 | |
2790 | fi | |
2791 | fi | |
2792 | done | |
2793 | done | |
2794 | ;; | |
2795 | esac | |
2796 | done | |
2797 | ||
2798 | ||
2799 | fi | |
2800 | if test "${ac_cv_path_install+set}" = set; then | |
2801 | INSTALL=$ac_cv_path_install | |
2802 | else | |
2803 | # As a last resort, use the slow shell script. We don't cache a | |
2804 | # path for INSTALL within a source directory, because that will | |
2805 | # break other packages using the cache if that directory is | |
2806 | # removed, or if the path is relative. | |
2807 | INSTALL=$ac_install_sh | |
2808 | fi | |
2809 | fi | |
2810 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2811 | echo "${ECHO_T}$INSTALL" >&6 | |
2812 | ||
2813 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2814 | # It thinks the first close brace ends the variable substitution. | |
2815 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2816 | ||
2817 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2818 | ||
2819 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2820 | ||
2821 | ||
2822 | # make sure install is relative to srcdir - if a script | |
2823 | if test "$srcdir" = "."; then | |
2824 | # If srcdir isn't just ., then (srcdir) is already prepended. | |
2825 | if test "${ac_install_sh}" = "${INSTALL}"; then | |
2826 | INSTALL="\\\$(top_srcdir)/${ac_install_sh}" | |
2827 | fi | |
2828 | fi | |
2829 | ||
2830 | #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) | |
2831 | #AC_CHECK_PROG(STRIP, strip, strip, true) | |
2832 | ||
2833 | for ac_prog in gmake gnumake | |
2834 | do | |
2835 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2836 | set dummy $ac_prog; ac_word=$2 | |
2837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2839 | if test "${ac_cv_path_U_MAKE+set}" = set; then | |
2840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2841 | else | |
2842 | case $U_MAKE in | |
2843 | [\\/]* | ?:[\\/]*) | |
2844 | ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. | |
2845 | ;; | |
2846 | *) | |
2847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2848 | for as_dir in $PATH | |
2849 | do | |
2850 | IFS=$as_save_IFS | |
2851 | test -z "$as_dir" && as_dir=. | |
2852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2853 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2854 | ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" | |
2855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2856 | break 2 | |
2857 | fi | |
2858 | done | |
2859 | done | |
2860 | ||
2861 | ;; | |
2862 | esac | |
2863 | fi | |
2864 | U_MAKE=$ac_cv_path_U_MAKE | |
2865 | ||
2866 | if test -n "$U_MAKE"; then | |
2867 | echo "$as_me:$LINENO: result: $U_MAKE" >&5 | |
2868 | echo "${ECHO_T}$U_MAKE" >&6 | |
2869 | else | |
2870 | echo "$as_me:$LINENO: result: no" >&5 | |
2871 | echo "${ECHO_T}no" >&6 | |
2872 | fi | |
2873 | ||
2874 | test -n "$U_MAKE" && break | |
2875 | done | |
2876 | test -n "$U_MAKE" || U_MAKE="make" | |
2877 | ||
2878 | ||
2879 | ||
2880 | # Extract the first word of "doxygen", so it can be a program name with args. | |
2881 | set dummy doxygen; ac_word=$2 | |
2882 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2884 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | |
2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2886 | else | |
2887 | case $DOXYGEN in | |
2888 | [\\/]* | ?:[\\/]*) | |
2889 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | |
2890 | ;; | |
2891 | *) | |
2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2893 | as_dummy="$PATH:/usr/local/bin:/usr/bin" | |
2894 | for as_dir in $as_dummy | |
2895 | do | |
2896 | IFS=$as_save_IFS | |
2897 | test -z "$as_dir" && as_dir=. | |
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2900 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | |
2901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2902 | break 2 | |
2903 | fi | |
2904 | done | |
2905 | done | |
2906 | ||
2907 | ;; | |
2908 | esac | |
2909 | fi | |
2910 | DOXYGEN=$ac_cv_path_DOXYGEN | |
2911 | ||
2912 | if test -n "$DOXYGEN"; then | |
2913 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | |
2914 | echo "${ECHO_T}$DOXYGEN" >&6 | |
2915 | else | |
2916 | echo "$as_me:$LINENO: result: no" >&5 | |
2917 | echo "${ECHO_T}no" >&6 | |
2918 | fi | |
2919 | ||
2920 | ||
2921 | ||
2922 | case "${host}" in | |
2923 | *-*-cygwin*|*-*-mingw*) | |
2924 | if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then | |
2925 | { { echo "$as_me:$LINENO: error: link.exe is not a valid linker. Your PATH is incorrect. | |
2926 | Please follow the directions in ICU's readme." >&5 | |
2927 | echo "$as_me: error: link.exe is not a valid linker. Your PATH is incorrect. | |
2928 | Please follow the directions in ICU's readme." >&2;} | |
2929 | { (exit 1); exit 1; }; } | |
2930 | fi;; | |
2931 | *);; | |
2932 | esac | |
2933 | ||
2934 | echo "$as_me:$LINENO: checking checking for executable suffix" >&5 | |
2935 | echo $ECHO_N "checking checking for executable suffix... $ECHO_C" >&6 | |
2936 | case "${host}" in | |
2937 | *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; | |
2938 | *) EXEEXT="" ;; | |
2939 | esac | |
2940 | ac_exeext=$EXEEXT | |
2941 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 | |
2942 | echo "${ECHO_T}$EXEEXT" >&6 | |
2943 | ||
2944 | ||
2945 | ||
2946 | echo "$as_me:$LINENO: checking whether strict compiling is on" >&5 | |
2947 | echo $ECHO_N "checking whether strict compiling is on... $ECHO_C" >&6 | |
2948 | # Check whether --enable-strict or --disable-strict was given. | |
2949 | if test "${enable_strict+set}" = set; then | |
2950 | enableval="$enable_strict" | |
2951 | ||
2952 | if test "$enableval" = no | |
2953 | then | |
2954 | ac_use_strict_options=no | |
2955 | else | |
2956 | ac_use_strict_options=yes | |
2957 | fi | |
2958 | ||
2959 | else | |
2960 | ac_use_strict_options=no | |
2961 | fi; | |
2962 | echo "$as_me:$LINENO: result: $ac_use_strict_options" >&5 | |
2963 | echo "${ECHO_T}$ac_use_strict_options" >&6 | |
2964 | ||
2965 | if test "$ac_use_strict_options" = yes | |
2966 | then | |
2967 | if test "$GCC" = yes | |
2968 | then | |
2969 | CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long" | |
2970 | case "${host}" in | |
2971 | *-*-solaris*) | |
2972 | CFLAGS="$CFLAGS -D__STDC__=0";; | |
2973 | esac | |
2974 | else | |
2975 | case "${host}" in | |
2976 | *-*-cygwin) | |
2977 | if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" | |
2978 | then | |
2979 | CFLAGS="$CFLAGS /W4" | |
2980 | fi | |
2981 | esac | |
2982 | fi | |
2983 | if test "$GXX" = yes | |
2984 | then | |
2985 | CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" | |
2986 | case "${host}" in | |
2987 | *-*-solaris*) | |
2988 | CXXFLAGS="$CXXFLAGS -D__STDC__=0";; | |
2989 | esac | |
2990 | else | |
2991 | case "${host}" in | |
2992 | *-*-cygwin) | |
2993 | if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" | |
2994 | then | |
2995 | CXXFLAGS="$CXXFLAGS /W4" | |
2996 | fi | |
2997 | esac | |
2998 | fi | |
2999 | fi | |
3000 | ||
3001 | ||
3002 | ||
3003 | ||
3004 | # Check whether --enable-64bit-libs or --disable-64bit-libs was given. | |
3005 | if test "${enable_64bit_libs+set}" = set; then | |
3006 | enableval="$enable_64bit_libs" | |
3007 | ENABLE_64BIT_LIBS=${enableval} | |
3008 | else | |
3009 | ENABLE_64BIT_LIBS=yes | |
3010 | ||
3011 | fi; | |
3012 | echo "$as_me:$LINENO: checking for 64-bit executable support" >&5 | |
3013 | echo $ECHO_N "checking for 64-bit executable support... $ECHO_C" >&6 | |
3014 | if test "$ENABLE_64BIT_LIBS" != no; then | |
3015 | if test "$GCC" = yes; then | |
3016 | if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then | |
3017 | ENABLE_64BIT_LIBS=yes | |
3018 | else | |
3019 | OLD_CFLAGS="${CFLAGS}" | |
3020 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3021 | CFLAGS="${CFLAGS} -m64" | |
3022 | CXXFLAGS="${CXXFLAGS} -m64" | |
3023 | if test "$cross_compiling" = yes; then | |
3024 | ENABLE_64BIT_LIBS=no | |
3025 | else | |
3026 | cat >conftest.$ac_ext <<_ACEOF | |
3027 | /* confdefs.h. */ | |
3028 | _ACEOF | |
3029 | cat confdefs.h >>conftest.$ac_ext | |
3030 | cat >>conftest.$ac_ext <<_ACEOF | |
3031 | /* end confdefs.h. */ | |
3032 | int main(void) {return 0;} | |
3033 | _ACEOF | |
3034 | rm -f conftest$ac_exeext | |
3035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3036 | (eval $ac_link) 2>&5 | |
3037 | ac_status=$? | |
3038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3041 | (eval $ac_try) 2>&5 | |
3042 | ac_status=$? | |
3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3044 | (exit $ac_status); }; }; then | |
3045 | ENABLE_64BIT_LIBS=yes | |
3046 | else | |
3047 | echo "$as_me: program exited with status $ac_status" >&5 | |
3048 | echo "$as_me: failed program was:" >&5 | |
3049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3050 | ||
3051 | ( exit $ac_status ) | |
3052 | ENABLE_64BIT_LIBS=no | |
3053 | fi | |
3054 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3055 | fi | |
3056 | if test "$ENABLE_64BIT_LIBS" = no; then | |
3057 | # Nope. We're on a 32-bit machine with a 32-bit compiler. | |
3058 | CFLAGS="${OLD_CFLAGS}" | |
3059 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3060 | fi | |
3061 | fi | |
3062 | else | |
3063 | case "${host}" in | |
3064 | sparc*-*-solaris*) | |
3065 | SPARCV9=`isainfo -n 2>&1 | grep sparcv9` | |
3066 | SOL64=`$CXX -m64 2>&1 && $CC -m64 2>&1 | grep -v usage:` | |
3067 | if test -n "$SOL64"; then | |
3068 | SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` | |
3069 | if test -z "$SOL64" && test -n "$SPARCV9"; then | |
3070 | CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" | |
3071 | CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" | |
3072 | LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" | |
3073 | ENABLE_64BIT_LIBS=yes | |
3074 | else | |
3075 | ENABLE_64BIT_LIBS=no | |
3076 | fi | |
3077 | elif test -z "$SOL64" && test -n "$SPARCV9"; then | |
3078 | CFLAGS="${CFLAGS} -xtarget=ultra -xarch=sparc -m64" | |
3079 | CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=sparc -m64" | |
3080 | LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=sparc -m64" | |
3081 | ENABLE_64BIT_LIBS=yes | |
3082 | else | |
3083 | ENABLE_64BIT_LIBS=no | |
3084 | fi | |
3085 | ;; | |
3086 | i386-*-solaris*) | |
3087 | AMD64=`isainfo -n 2>&1 | grep amd64` | |
3088 | # The new compiler option | |
3089 | SOL64=`$CXX -m64 2>&1 && $CC -m64 2>&1 | grep -v usage:` | |
3090 | if test -z "$SOL64" && test -n "$AMD64"; then | |
3091 | CFLAGS="${CFLAGS} -m64" | |
3092 | CXXFLAGS="${CXXFLAGS} -m64" | |
3093 | ENABLE_64BIT_LIBS=yes | |
3094 | else | |
3095 | # The older compiler option | |
3096 | SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` | |
3097 | if test -z "$SOL64" && test -n "$AMD64"; then | |
3098 | CFLAGS="${CFLAGS} -xtarget=generic64" | |
3099 | CXXFLAGS="${CXXFLAGS} -xtarget=generic64" | |
3100 | ENABLE_64BIT_LIBS=yes | |
3101 | else | |
3102 | ENABLE_64BIT_LIBS=no | |
3103 | fi | |
3104 | fi | |
3105 | ;; | |
3106 | ia64-*-linux*) | |
3107 | # check for ecc/ecpc compiler support | |
3108 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then | |
3109 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then | |
3110 | ENABLE_64BIT_LIBS=yes | |
3111 | else | |
3112 | ENABLE_64BIT_LIBS=no | |
3113 | fi | |
3114 | else | |
3115 | # unknown | |
3116 | ENABLE_64BIT_LIBS=no | |
3117 | fi | |
3118 | ;; | |
3119 | *-*-cygwin) | |
3120 | if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then | |
3121 | ENABLE_64BIT_LIBS=yes | |
3122 | else | |
3123 | # unknown | |
3124 | ENABLE_64BIT_LIBS=no | |
3125 | fi | |
3126 | ;; | |
3127 | *-*-aix*|powerpc64-*-linux*) | |
3128 | OLD_CFLAGS="${CFLAGS}" | |
3129 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3130 | OLD_LDFLAGS="${LDFLAGS}" | |
3131 | CFLAGS="${CFLAGS} -q64" | |
3132 | CXXFLAGS="${CXXFLAGS} -q64" | |
3133 | LDFLAGS="${LDFLAGS} -q64" | |
3134 | if test "$cross_compiling" = yes; then | |
3135 | ENABLE_64BIT_LIBS=no | |
3136 | else | |
3137 | cat >conftest.$ac_ext <<_ACEOF | |
3138 | /* confdefs.h. */ | |
3139 | _ACEOF | |
3140 | cat confdefs.h >>conftest.$ac_ext | |
3141 | cat >>conftest.$ac_ext <<_ACEOF | |
3142 | /* end confdefs.h. */ | |
3143 | int main(void) {return 0;} | |
3144 | _ACEOF | |
3145 | rm -f conftest$ac_exeext | |
3146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3147 | (eval $ac_link) 2>&5 | |
3148 | ac_status=$? | |
3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3152 | (eval $ac_try) 2>&5 | |
3153 | ac_status=$? | |
3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3155 | (exit $ac_status); }; }; then | |
3156 | ENABLE_64BIT_LIBS=yes | |
3157 | else | |
3158 | echo "$as_me: program exited with status $ac_status" >&5 | |
3159 | echo "$as_me: failed program was:" >&5 | |
3160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3161 | ||
3162 | ( exit $ac_status ) | |
3163 | ENABLE_64BIT_LIBS=no | |
3164 | fi | |
3165 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3166 | fi | |
3167 | if test "$ENABLE_64BIT_LIBS" = no; then | |
3168 | CFLAGS="${OLD_CFLAGS}" | |
3169 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3170 | LDFLAGS="${OLD_LDFLAGS}" | |
3171 | else | |
3172 | case "${host}" in | |
3173 | *-*-aix*) | |
3174 | ARFLAGS="${ARFLAGS} -X64" | |
3175 | esac | |
3176 | fi | |
3177 | ;; | |
3178 | *-*-hpux*) | |
3179 | ||
3180 | OLD_CFLAGS="${CFLAGS}" | |
3181 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3182 | CFLAGS="${CFLAGS} +DD64" | |
3183 | CXXFLAGS="${CXXFLAGS} +DD64" | |
3184 | if test "$cross_compiling" = yes; then | |
3185 | ENABLE_64BIT_LIBS=no | |
3186 | else | |
3187 | cat >conftest.$ac_ext <<_ACEOF | |
3188 | /* confdefs.h. */ | |
3189 | _ACEOF | |
3190 | cat confdefs.h >>conftest.$ac_ext | |
3191 | cat >>conftest.$ac_ext <<_ACEOF | |
3192 | /* end confdefs.h. */ | |
3193 | int main(void) {return 0;} | |
3194 | _ACEOF | |
3195 | rm -f conftest$ac_exeext | |
3196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3197 | (eval $ac_link) 2>&5 | |
3198 | ac_status=$? | |
3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3200 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3202 | (eval $ac_try) 2>&5 | |
3203 | ac_status=$? | |
3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3205 | (exit $ac_status); }; }; then | |
3206 | ENABLE_64BIT_LIBS=yes | |
3207 | else | |
3208 | echo "$as_me: program exited with status $ac_status" >&5 | |
3209 | echo "$as_me: failed program was:" >&5 | |
3210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3211 | ||
3212 | ( exit $ac_status ) | |
3213 | ENABLE_64BIT_LIBS=no | |
3214 | fi | |
3215 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3216 | fi | |
3217 | if test "$ENABLE_64BIT_LIBS" = no; then | |
3218 | CFLAGS="${OLD_CFLAGS}" | |
3219 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3220 | CFLAGS="${CFLAGS} +DA2.0W" | |
3221 | CXXFLAGS="${CXXFLAGS} +DA2.0W" | |
3222 | if test "$cross_compiling" = yes; then | |
3223 | ENABLE_64BIT_LIBS=no | |
3224 | else | |
3225 | cat >conftest.$ac_ext <<_ACEOF | |
3226 | /* confdefs.h. */ | |
3227 | _ACEOF | |
3228 | cat confdefs.h >>conftest.$ac_ext | |
3229 | cat >>conftest.$ac_ext <<_ACEOF | |
3230 | /* end confdefs.h. */ | |
3231 | int main(void) {return 0;} | |
3232 | _ACEOF | |
3233 | rm -f conftest$ac_exeext | |
3234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3235 | (eval $ac_link) 2>&5 | |
3236 | ac_status=$? | |
3237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3240 | (eval $ac_try) 2>&5 | |
3241 | ac_status=$? | |
3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3243 | (exit $ac_status); }; }; then | |
3244 | ENABLE_64BIT_LIBS=yes | |
3245 | else | |
3246 | echo "$as_me: program exited with status $ac_status" >&5 | |
3247 | echo "$as_me: failed program was:" >&5 | |
3248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3249 | ||
3250 | ( exit $ac_status ) | |
3251 | ENABLE_64BIT_LIBS=no | |
3252 | fi | |
3253 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3254 | fi | |
3255 | if test "$ENABLE_64BIT_LIBS" = no; then | |
3256 | CFLAGS="${OLD_CFLAGS}" | |
3257 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3258 | fi | |
3259 | fi | |
3260 | ;; | |
3261 | *-*ibm-openedition*|*-*-os390*) | |
3262 | OLD_CFLAGS="${CFLAGS}" | |
3263 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3264 | OLD_LDFLAGS="${LDFLAGS}" | |
3265 | CFLAGS="${CFLAGS} -Wc,lp64" | |
3266 | CXXFLAGS="${CXXFLAGS} -Wc,lp64" | |
3267 | LDFLAGS="${LDFLAGS} -Wl,lp64" | |
3268 | if test "$cross_compiling" = yes; then | |
3269 | ENABLE_64BIT_LIBS=no | |
3270 | else | |
3271 | cat >conftest.$ac_ext <<_ACEOF | |
3272 | /* confdefs.h. */ | |
3273 | _ACEOF | |
3274 | cat confdefs.h >>conftest.$ac_ext | |
3275 | cat >>conftest.$ac_ext <<_ACEOF | |
3276 | /* end confdefs.h. */ | |
3277 | int main(void) {return 0;} | |
3278 | _ACEOF | |
3279 | rm -f conftest$ac_exeext | |
3280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3281 | (eval $ac_link) 2>&5 | |
3282 | ac_status=$? | |
3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3284 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3286 | (eval $ac_try) 2>&5 | |
3287 | ac_status=$? | |
3288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3289 | (exit $ac_status); }; }; then | |
3290 | ENABLE_64BIT_LIBS=yes | |
3291 | else | |
3292 | echo "$as_me: program exited with status $ac_status" >&5 | |
3293 | echo "$as_me: failed program was:" >&5 | |
3294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3295 | ||
3296 | ( exit $ac_status ) | |
3297 | ENABLE_64BIT_LIBS=no | |
3298 | fi | |
3299 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3300 | fi | |
3301 | if test "$ENABLE_64BIT_LIBS" = no; then | |
3302 | CFLAGS="${OLD_CFLAGS}" | |
3303 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3304 | LDFLAGS="${OLD_LDFLAGS}" | |
3305 | fi | |
3306 | ;; | |
3307 | *) | |
3308 | ENABLE_64BIT_LIBS=no | |
3309 | ;; | |
3310 | esac | |
3311 | fi | |
3312 | else | |
3313 | if test "$GCC" = yes; then | |
3314 | OLD_CFLAGS="${CFLAGS}" | |
3315 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3316 | CFLAGS="${CFLAGS} -m32" | |
3317 | CXXFLAGS="${CXXFLAGS} -m32" | |
3318 | if test "$cross_compiling" = yes; then | |
3319 | ENABLE_64BIT_LIBS=yes | |
3320 | else | |
3321 | cat >conftest.$ac_ext <<_ACEOF | |
3322 | /* confdefs.h. */ | |
3323 | _ACEOF | |
3324 | cat confdefs.h >>conftest.$ac_ext | |
3325 | cat >>conftest.$ac_ext <<_ACEOF | |
3326 | /* end confdefs.h. */ | |
3327 | int main(void) {return 0;} | |
3328 | _ACEOF | |
3329 | rm -f conftest$ac_exeext | |
3330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3331 | (eval $ac_link) 2>&5 | |
3332 | ac_status=$? | |
3333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3336 | (eval $ac_try) 2>&5 | |
3337 | ac_status=$? | |
3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3339 | (exit $ac_status); }; }; then | |
3340 | ENABLE_64BIT_LIBS=no | |
3341 | else | |
3342 | echo "$as_me: program exited with status $ac_status" >&5 | |
3343 | echo "$as_me: failed program was:" >&5 | |
3344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3345 | ||
3346 | ( exit $ac_status ) | |
3347 | ENABLE_64BIT_LIBS=yes | |
3348 | fi | |
3349 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3350 | fi | |
3351 | if test "$ENABLE_64BIT_LIBS" = yes; then | |
3352 | CFLAGS="${OLD_CFLAGS}" | |
3353 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3354 | fi | |
3355 | fi | |
3356 | fi | |
3357 | echo "$as_me:$LINENO: result: $ENABLE_64BIT_LIBS" >&5 | |
3358 | echo "${ECHO_T}$ENABLE_64BIT_LIBS" >&6 | |
3359 | ||
3360 | ||
3361 | ||
3362 | ||
3363 | ||
3364 | echo "$as_me:$LINENO: checking which Makefile fragment to use" >&5 | |
3365 | echo $ECHO_N "checking which Makefile fragment to use... $ECHO_C" >&6 | |
3366 | if test "${icu_cv_host_frag+set}" = set; then | |
3367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3368 | else | |
3369 | ||
3370 | case "${host}" in | |
3371 | *-*-solaris*) | |
3372 | if test "$GCC" = yes; then | |
3373 | icu_cv_host_frag=mh-solaris-gcc | |
3374 | else | |
3375 | icu_cv_host_frag=mh-solaris | |
3376 | fi ;; | |
3377 | alpha*-*-linux-gnu) | |
3378 | if test "$GCC" = yes; then | |
3379 | icu_cv_host_frag=mh-alpha-linux-gcc | |
3380 | else | |
3381 | icu_cv_host_frag=mh-alpha-linux-cc | |
3382 | fi ;; | |
3383 | powerpc*-*-linux*) | |
3384 | if test "$GCC" = yes; then | |
3385 | icu_cv_host_frag=mh-linux | |
3386 | else | |
3387 | icu_cv_host_frag=mh-linux-va | |
3388 | fi ;; | |
3389 | *-*-linux*|*-pc-gnu) icu_cv_host_frag=mh-linux ;; | |
3390 | *-*-cygwin|*-*-mingw32) | |
3391 | if test "$GCC" = yes; then | |
3392 | cat >conftest.$ac_ext <<_ACEOF | |
3393 | /* confdefs.h. */ | |
3394 | _ACEOF | |
3395 | cat confdefs.h >>conftest.$ac_ext | |
3396 | cat >>conftest.$ac_ext <<_ACEOF | |
3397 | /* end confdefs.h. */ | |
3398 | ||
3399 | #ifndef __MINGW32__ | |
3400 | #error This is not MinGW | |
3401 | #endif | |
3402 | int | |
3403 | main () | |
3404 | { | |
3405 | ||
3406 | ; | |
3407 | return 0; | |
3408 | } | |
3409 | _ACEOF | |
3410 | rm -f conftest.$ac_objext | |
3411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3412 | (eval $ac_compile) 2>conftest.er1 | |
3413 | ac_status=$? | |
3414 | grep -v '^ *+' conftest.er1 >conftest.err | |
3415 | rm -f conftest.er1 | |
3416 | cat conftest.err >&5 | |
3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3418 | (exit $ac_status); } && | |
3419 | { ac_try='test -z "$ac_c_werror_flag" | |
3420 | || test ! -s conftest.err' | |
3421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3422 | (eval $ac_try) 2>&5 | |
3423 | ac_status=$? | |
3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3425 | (exit $ac_status); }; } && | |
3426 | { ac_try='test -s conftest.$ac_objext' | |
3427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3428 | (eval $ac_try) 2>&5 | |
3429 | ac_status=$? | |
3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3431 | (exit $ac_status); }; }; then | |
3432 | icu_cv_host_frag=mh-mingw | |
3433 | else | |
3434 | echo "$as_me: failed program was:" >&5 | |
3435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3436 | ||
3437 | icu_cv_host_frag=mh-cygwin | |
3438 | fi | |
3439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3440 | else | |
3441 | icu_cv_host_frag=mh-cygwin-msvc | |
3442 | fi ;; | |
3443 | *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; | |
3444 | *-*-aix*) | |
3445 | if test "$GCC" = yes; then | |
3446 | icu_cv_host_frag=mh-aix-gcc | |
3447 | else | |
3448 | icu_cv_host_frag=mh-aix-va | |
3449 | fi ;; | |
3450 | *-*-hpux*) | |
3451 | if test "$GCC" = yes; then | |
3452 | icu_cv_host_frag=mh-hpux-gcc | |
3453 | else | |
3454 | case "$CXX" in | |
3455 | *aCC) icu_cv_host_frag=mh-hpux-acc ;; | |
3456 | esac | |
3457 | fi ;; | |
3458 | *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; | |
3459 | *-*-os400*) icu_cv_host_frag=mh-os400 ;; | |
3460 | *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; | |
3461 | *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; | |
3462 | *-*-beos) icu_cv_host_frag=mh-beos ;; | |
3463 | *-*-irix*) icu_cv_host_frag=mh-irix ;; | |
3464 | *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; | |
3465 | *-*-nto*) icu_cv_host_frag=mh-qnx ;; | |
3466 | *-ncr-*) icu_cv_host_frag=mh-mpras ;; | |
3467 | *) icu_cv_host_frag=mh-unknown ;; | |
3468 | esac | |
3469 | ||
3470 | ||
3471 | fi | |
3472 | echo "$as_me:$LINENO: result: $icu_cv_host_frag" >&5 | |
3473 | echo "${ECHO_T}$icu_cv_host_frag" >&6 | |
3474 | ||
3475 | ||
3476 | case "${host}" in | |
3477 | *-*-hpux*) echo "$as_me:$LINENO: checking for floor in -lm" >&5 | |
3478 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
3479 | if test "${ac_cv_lib_m_floor+set}" = set; then | |
3480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3481 | else | |
3482 | ac_check_lib_save_LIBS=$LIBS | |
3483 | LIBS="-lm $LIBS" | |
3484 | cat >conftest.$ac_ext <<_ACEOF | |
3485 | /* confdefs.h. */ | |
3486 | _ACEOF | |
3487 | cat confdefs.h >>conftest.$ac_ext | |
3488 | cat >>conftest.$ac_ext <<_ACEOF | |
3489 | /* end confdefs.h. */ | |
3490 | ||
3491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3492 | #ifdef __cplusplus | |
3493 | extern "C" | |
3494 | #endif | |
3495 | /* We use char because int might match the return type of a gcc2 | |
3496 | builtin and then its argument prototype would still apply. */ | |
3497 | char floor (); | |
3498 | int | |
3499 | main () | |
3500 | { | |
3501 | floor (); | |
3502 | ; | |
3503 | return 0; | |
3504 | } | |
3505 | _ACEOF | |
3506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3508 | (eval $ac_link) 2>conftest.er1 | |
3509 | ac_status=$? | |
3510 | grep -v '^ *+' conftest.er1 >conftest.err | |
3511 | rm -f conftest.er1 | |
3512 | cat conftest.err >&5 | |
3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3514 | (exit $ac_status); } && | |
3515 | { ac_try='test -z "$ac_c_werror_flag" | |
3516 | || test ! -s conftest.err' | |
3517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3518 | (eval $ac_try) 2>&5 | |
3519 | ac_status=$? | |
3520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3521 | (exit $ac_status); }; } && | |
3522 | { ac_try='test -s conftest$ac_exeext' | |
3523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3524 | (eval $ac_try) 2>&5 | |
3525 | ac_status=$? | |
3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3527 | (exit $ac_status); }; }; then | |
3528 | ac_cv_lib_m_floor=yes | |
3529 | else | |
3530 | echo "$as_me: failed program was:" >&5 | |
3531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3532 | ||
3533 | ac_cv_lib_m_floor=no | |
3534 | fi | |
3535 | rm -f conftest.err conftest.$ac_objext \ | |
3536 | conftest$ac_exeext conftest.$ac_ext | |
3537 | LIBS=$ac_check_lib_save_LIBS | |
3538 | fi | |
3539 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 | |
3540 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
3541 | if test $ac_cv_lib_m_floor = yes; then | |
3542 | LIB_M="-lm" | |
3543 | fi | |
3544 | ;; | |
3545 | ||
3546 | *) | |
3547 | echo "$as_me:$LINENO: checking for floor in -lm" >&5 | |
3548 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
3549 | if test "${ac_cv_lib_m_floor+set}" = set; then | |
3550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3551 | else | |
3552 | ac_check_lib_save_LIBS=$LIBS | |
3553 | LIBS="-lm $LIBS" | |
3554 | cat >conftest.$ac_ext <<_ACEOF | |
3555 | /* confdefs.h. */ | |
3556 | _ACEOF | |
3557 | cat confdefs.h >>conftest.$ac_ext | |
3558 | cat >>conftest.$ac_ext <<_ACEOF | |
3559 | /* end confdefs.h. */ | |
3560 | ||
3561 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3562 | #ifdef __cplusplus | |
3563 | extern "C" | |
3564 | #endif | |
3565 | /* We use char because int might match the return type of a gcc2 | |
3566 | builtin and then its argument prototype would still apply. */ | |
3567 | char floor (); | |
3568 | int | |
3569 | main () | |
3570 | { | |
3571 | floor (); | |
3572 | ; | |
3573 | return 0; | |
3574 | } | |
3575 | _ACEOF | |
3576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3578 | (eval $ac_link) 2>conftest.er1 | |
3579 | ac_status=$? | |
3580 | grep -v '^ *+' conftest.er1 >conftest.err | |
3581 | rm -f conftest.er1 | |
3582 | cat conftest.err >&5 | |
3583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3584 | (exit $ac_status); } && | |
3585 | { ac_try='test -z "$ac_c_werror_flag" | |
3586 | || test ! -s conftest.err' | |
3587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3588 | (eval $ac_try) 2>&5 | |
3589 | ac_status=$? | |
3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3591 | (exit $ac_status); }; } && | |
3592 | { ac_try='test -s conftest$ac_exeext' | |
3593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3594 | (eval $ac_try) 2>&5 | |
3595 | ac_status=$? | |
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3597 | (exit $ac_status); }; }; then | |
3598 | ac_cv_lib_m_floor=yes | |
3599 | else | |
3600 | echo "$as_me: failed program was:" >&5 | |
3601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3602 | ||
3603 | ac_cv_lib_m_floor=no | |
3604 | fi | |
3605 | rm -f conftest.err conftest.$ac_objext \ | |
3606 | conftest$ac_exeext conftest.$ac_ext | |
3607 | LIBS=$ac_check_lib_save_LIBS | |
3608 | fi | |
3609 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 | |
3610 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
3611 | if test $ac_cv_lib_m_floor = yes; then | |
3612 | cat >>confdefs.h <<_ACEOF | |
3613 | #define HAVE_LIBM 1 | |
3614 | _ACEOF | |
3615 | ||
3616 | LIBS="-lm $LIBS" | |
3617 | ||
3618 | fi | |
3619 | ||
3620 | LIB_M="" ;; | |
3621 | esac | |
3622 | ||
3623 | ||
3624 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
3625 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
3626 | enabled=no | |
3627 | # Check whether --enable-shared or --disable-shared was given. | |
3628 | if test "${enable_shared+set}" = set; then | |
3629 | enableval="$enable_shared" | |
3630 | case "${enableval}" in | |
3631 | yes|"") enabled=yes; ENABLE_SHARED=YES ;; | |
3632 | no);; | |
3633 | *) ;; | |
3634 | esac | |
3635 | else | |
3636 | enabled=yes; ENABLE_SHARED=YES | |
3637 | ||
3638 | fi; | |
3639 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3640 | echo "${ECHO_T}$enabled" >&6 | |
3641 | ||
3642 | ||
3643 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
3644 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
3645 | enabled=no | |
3646 | # Check whether --enable-static or --disable-static was given. | |
3647 | if test "${enable_static+set}" = set; then | |
3648 | enableval="$enable_static" | |
3649 | case "${enableval}" in | |
3650 | yes|"") enabled=yes; ENABLE_STATIC=YES ;; | |
3651 | no) ;; | |
3652 | *) ;; | |
3653 | esac | |
3654 | fi; | |
3655 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3656 | echo "${ECHO_T}$enabled" >&6 | |
3657 | ||
3658 | ||
3659 | echo "$as_me:$LINENO: checking whether to build debug libraries" >&5 | |
3660 | echo $ECHO_N "checking whether to build debug libraries... $ECHO_C" >&6 | |
3661 | enabled=no | |
3662 | ENABLE_DEBUG=0 | |
3663 | # Check whether --enable-debug or --disable-debug was given. | |
3664 | if test "${enable_debug+set}" = set; then | |
3665 | enableval="$enable_debug" | |
3666 | case "${enableval}" in | |
3667 | yes|"") enabled=yes; ENABLE_DEBUG=1 ;; | |
3668 | *) ;; | |
3669 | esac | |
3670 | fi; | |
3671 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3672 | echo "${ECHO_T}$enabled" >&6 | |
3673 | ||
3674 | ||
3675 | echo "$as_me:$LINENO: checking whether to build release libraries" >&5 | |
3676 | echo $ECHO_N "checking whether to build release libraries... $ECHO_C" >&6 | |
3677 | enabled=yes | |
3678 | ENABLE_RELEASE=1 | |
3679 | # Check whether --enable-release or --disable-release was given. | |
3680 | if test "${enable_release+set}" = set; then | |
3681 | enableval="$enable_release" | |
3682 | case "${enableval}" in | |
3683 | no) enabled=no; ENABLE_RELEASE=0 ;; | |
3684 | *) ;; | |
3685 | esac | |
3686 | fi; | |
3687 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3688 | echo "${ECHO_T}$enabled" >&6 | |
3689 | ||
3690 | ||
3691 | echo "$as_me:$LINENO: checking whether to enable draft APIs" >&5 | |
3692 | echo $ECHO_N "checking whether to enable draft APIs... $ECHO_C" >&6 | |
3693 | enabled=yes | |
3694 | U_DEFAULT_SHOW_DRAFT=1 | |
3695 | # Check whether --enable-draft or --disable-draft was given. | |
3696 | if test "${enable_draft+set}" = set; then | |
3697 | enableval="$enable_draft" | |
3698 | case "${enableval}" in | |
3699 | no) enabled=no; U_DEFAULT_SHOW_DRAFT=0 ;; | |
3700 | *) ;; | |
3701 | esac | |
3702 | fi; | |
3703 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3704 | echo "${ECHO_T}$enabled" >&6 | |
3705 | if test "$U_DEFAULT_SHOW_DRAFT" = 0; then | |
3706 | CPPFLAGS="$CPPFLAGS -DU_SHOW_DRAFT_API" | |
3707 | fi | |
3708 | ||
3709 | ||
3710 | echo "$as_me:$LINENO: checking for library API export" >&5 | |
3711 | echo $ECHO_N "checking for library API export... $ECHO_C" >&6 | |
3712 | SHAREDLIBEXPORT=no | |
3713 | U_USE_GCC_VISIBILITY_ATTRIBUTE=0 | |
3714 | OLD_CFLAGS="${CFLAGS}" | |
3715 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3716 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
3717 | LIBCFLAGS="-fvisibility=hidden" | |
3718 | LIBCXXFLAGS="-fvisibility=hidden" | |
3719 | CFLAGS="${CFLAGS} ${LIBCFLAGS}" | |
3720 | CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}" | |
3721 | cat >conftest.$ac_ext <<_ACEOF | |
3722 | /* confdefs.h. */ | |
3723 | _ACEOF | |
3724 | cat confdefs.h >>conftest.$ac_ext | |
3725 | cat >>conftest.$ac_ext <<_ACEOF | |
3726 | /* end confdefs.h. */ | |
3727 | __attribute__ ((visibility ("default"))) void f(void); | |
3728 | #include <stdlib.h> | |
3729 | int | |
3730 | main () | |
3731 | { | |
3732 | exit(0); | |
3733 | ; | |
3734 | return 0; | |
3735 | } | |
3736 | _ACEOF | |
3737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3739 | (eval $ac_link) 2>conftest.er1 | |
3740 | ac_status=$? | |
3741 | grep -v '^ *+' conftest.er1 >conftest.err | |
3742 | rm -f conftest.er1 | |
3743 | cat conftest.err >&5 | |
3744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3745 | (exit $ac_status); } && | |
3746 | { ac_try='test -z "$ac_c_werror_flag" | |
3747 | || test ! -s conftest.err' | |
3748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3749 | (eval $ac_try) 2>&5 | |
3750 | ac_status=$? | |
3751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3752 | (exit $ac_status); }; } && | |
3753 | { ac_try='test -s conftest$ac_exeext' | |
3754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3755 | (eval $ac_try) 2>&5 | |
3756 | ac_status=$? | |
3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3758 | (exit $ac_status); }; }; then | |
3759 | SHAREDLIBEXPORT=yes | |
3760 | else | |
3761 | echo "$as_me: failed program was:" >&5 | |
3762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3763 | ||
3764 | SHAREDLIBEXPORT=no | |
3765 | fi | |
3766 | rm -f conftest.err conftest.$ac_objext \ | |
3767 | conftest$ac_exeext conftest.$ac_ext | |
3768 | if test "$SHAREDLIBEXPORT" = no; then | |
3769 | LIBCFLAGS= | |
3770 | LIBCXXFLAGS= | |
3771 | else | |
3772 | U_USE_GCC_VISIBILITY_ATTRIBUTE=1 | |
3773 | fi | |
3774 | else | |
3775 | case "${host}" in | |
3776 | *-*-solaris*) | |
3777 | LIBCFLAGS="-xldscope=hidden" | |
3778 | LIBCXXFLAGS="-xldscope=hidden" | |
3779 | CFLAGS="${CFLAGS} ${LIBCFLAGS}" | |
3780 | CXXFLAGS="${CXXFLAGS} ${LIBCXXFLAGS}" | |
3781 | cat >conftest.$ac_ext <<_ACEOF | |
3782 | /* confdefs.h. */ | |
3783 | _ACEOF | |
3784 | cat confdefs.h >>conftest.$ac_ext | |
3785 | cat >>conftest.$ac_ext <<_ACEOF | |
3786 | /* end confdefs.h. */ | |
3787 | __global void f(void); | |
3788 | #include <stdlib.h> | |
3789 | int | |
3790 | main () | |
3791 | { | |
3792 | exit(0); | |
3793 | ; | |
3794 | return 0; | |
3795 | } | |
3796 | _ACEOF | |
3797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3799 | (eval $ac_link) 2>conftest.er1 | |
3800 | ac_status=$? | |
3801 | grep -v '^ *+' conftest.er1 >conftest.err | |
3802 | rm -f conftest.er1 | |
3803 | cat conftest.err >&5 | |
3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3805 | (exit $ac_status); } && | |
3806 | { ac_try='test -z "$ac_c_werror_flag" | |
3807 | || test ! -s conftest.err' | |
3808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3809 | (eval $ac_try) 2>&5 | |
3810 | ac_status=$? | |
3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3812 | (exit $ac_status); }; } && | |
3813 | { ac_try='test -s conftest$ac_exeext' | |
3814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3815 | (eval $ac_try) 2>&5 | |
3816 | ac_status=$? | |
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); }; }; then | |
3819 | SHAREDLIBEXPORT=yes | |
3820 | else | |
3821 | echo "$as_me: failed program was:" >&5 | |
3822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3823 | ||
3824 | SHAREDLIBEXPORT=no | |
3825 | fi | |
3826 | rm -f conftest.err conftest.$ac_objext \ | |
3827 | conftest$ac_exeext conftest.$ac_ext | |
3828 | if test "$SHAREDLIBEXPORT" = no; then | |
3829 | LIBCFLAGS= | |
3830 | LIBCXXFLAGS= | |
3831 | fi | |
3832 | ;; | |
3833 | *-*-hpux*) | |
3834 | ;; | |
3835 | *) | |
3836 | esac | |
3837 | fi | |
3838 | # Restore to their original state because the Intel compiler chokes | |
3839 | # on this option when checking for the wchar_t size, but the | |
3840 | # option otherwise works. | |
3841 | CFLAGS="${OLD_CFLAGS}" | |
3842 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3843 | echo "$as_me:$LINENO: result: $SHAREDLIBEXPORT" >&5 | |
3844 | echo "${ECHO_T}$SHAREDLIBEXPORT" >&6 | |
3845 | ||
3846 | ||
3847 | ||
3848 | ||
3849 | if test -n "$ac_tool_prefix"; then | |
3850 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3851 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3854 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3856 | else | |
3857 | if test -n "$RANLIB"; then | |
3858 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3859 | else | |
3860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3861 | for as_dir in $PATH | |
3862 | do | |
3863 | IFS=$as_save_IFS | |
3864 | test -z "$as_dir" && as_dir=. | |
3865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3867 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3869 | break 2 | |
3870 | fi | |
3871 | done | |
3872 | done | |
3873 | ||
3874 | fi | |
3875 | fi | |
3876 | RANLIB=$ac_cv_prog_RANLIB | |
3877 | if test -n "$RANLIB"; then | |
3878 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3879 | echo "${ECHO_T}$RANLIB" >&6 | |
3880 | else | |
3881 | echo "$as_me:$LINENO: result: no" >&5 | |
3882 | echo "${ECHO_T}no" >&6 | |
3883 | fi | |
3884 | ||
3885 | fi | |
3886 | if test -z "$ac_cv_prog_RANLIB"; then | |
3887 | ac_ct_RANLIB=$RANLIB | |
3888 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3889 | set dummy ranlib; ac_word=$2 | |
3890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3892 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3894 | else | |
3895 | if test -n "$ac_ct_RANLIB"; then | |
3896 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3897 | else | |
3898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3899 | for as_dir in $PATH | |
3900 | do | |
3901 | IFS=$as_save_IFS | |
3902 | test -z "$as_dir" && as_dir=. | |
3903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3905 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3907 | break 2 | |
3908 | fi | |
3909 | done | |
3910 | done | |
3911 | ||
3912 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3913 | fi | |
3914 | fi | |
3915 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3916 | if test -n "$ac_ct_RANLIB"; then | |
3917 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3918 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3919 | else | |
3920 | echo "$as_me:$LINENO: result: no" >&5 | |
3921 | echo "${ECHO_T}no" >&6 | |
3922 | fi | |
3923 | ||
3924 | RANLIB=$ac_ct_RANLIB | |
3925 | else | |
3926 | RANLIB="$ac_cv_prog_RANLIB" | |
3927 | fi | |
3928 | ||
3929 | # Extract the first word of "ar", so it can be a program name with args. | |
3930 | set dummy ar; ac_word=$2 | |
3931 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3933 | if test "${ac_cv_path_AR+set}" = set; then | |
3934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3935 | else | |
3936 | case $AR in | |
3937 | [\\/]* | ?:[\\/]*) | |
3938 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3939 | ;; | |
3940 | *) | |
3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3942 | as_dummy="$PATH:/bin:/usr/bin:/usr/ccs/bin" | |
3943 | for as_dir in $as_dummy | |
3944 | do | |
3945 | IFS=$as_save_IFS | |
3946 | test -z "$as_dir" && as_dir=. | |
3947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3948 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3949 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
3950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3951 | break 2 | |
3952 | fi | |
3953 | done | |
3954 | done | |
3955 | ||
3956 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="echo archiver ar not found re-run configure ; false" | |
3957 | ;; | |
3958 | esac | |
3959 | fi | |
3960 | AR=$ac_cv_path_AR | |
3961 | ||
3962 | if test -n "$AR"; then | |
3963 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3964 | echo "${ECHO_T}$AR" >&6 | |
3965 | else | |
3966 | echo "$as_me:$LINENO: result: no" >&5 | |
3967 | echo "${ECHO_T}no" >&6 | |
3968 | fi | |
3969 | ||
3970 | ||
3971 | echo "$as_me:$LINENO: checking whether to enable renaming of symbols" >&5 | |
3972 | echo $ECHO_N "checking whether to enable renaming of symbols... $ECHO_C" >&6 | |
3973 | enabled=yes | |
3974 | U_DISABLE_RENAMING=0 | |
3975 | # Check whether --enable-renaming or --disable-renaming was given. | |
3976 | if test "${enable_renaming+set}" = set; then | |
3977 | enableval="$enable_renaming" | |
3978 | case "${enableval}" in | |
3979 | yes|"") enabled=yes ;; | |
3980 | no) enabled=no; U_DISABLE_RENAMING=1 ;; | |
3981 | *) ;; | |
3982 | esac | |
3983 | fi; | |
3984 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3985 | echo "${ECHO_T}$enabled" >&6 | |
3986 | ||
3987 | ||
3988 | echo "$as_me:$LINENO: checking whether to enable function and data tracing" >&5 | |
3989 | echo $ECHO_N "checking whether to enable function and data tracing... $ECHO_C" >&6 | |
3990 | enabled=yes | |
3991 | U_ENABLE_TRACING=0 | |
3992 | # Check whether --enable-tracing or --disable-tracing was given. | |
3993 | if test "${enable_tracing+set}" = set; then | |
3994 | enableval="$enable_tracing" | |
3995 | case "${enableval}" in | |
3996 | yes|"") enabled=yes ;; | |
3997 | no) enabled=no; U_ENABLE_TRACING=0 ;; | |
3998 | *) ;; | |
3999 | esac | |
4000 | fi; | |
4001 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
4002 | echo "${ECHO_T}$enabled" >&6 | |
4003 | ||
4004 | ||
4005 | # Check whether --enable-rpath or --disable-rpath was given. | |
4006 | if test "${enable_rpath+set}" = set; then | |
4007 | enableval="$enable_rpath" | |
4008 | case "${enableval}" in | |
4009 | yes|"") ENABLE_RPATH=YES ;; | |
4010 | no) ;; | |
4011 | *) ;; | |
4012 | esac | |
4013 | else | |
4014 | ENABLE_RPATH=NO | |
4015 | ||
4016 | fi; | |
4017 | ||
4018 | ||
4019 | ||
4020 | echo "$as_me:$LINENO: checking for definition of U_INLINE for C" >&5 | |
4021 | echo $ECHO_N "checking for definition of U_INLINE for C... $ECHO_C" >&6 | |
4022 | if test "${ac_cv_c_inline+set}" = set; then | |
4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4024 | else | |
4025 | ac_cv_c_inline=no | |
4026 | for ac_kw in inline __inline__ __inline; do | |
4027 | cat >conftest.$ac_ext <<_ACEOF | |
4028 | /* confdefs.h. */ | |
4029 | _ACEOF | |
4030 | cat confdefs.h >>conftest.$ac_ext | |
4031 | cat >>conftest.$ac_ext <<_ACEOF | |
4032 | /* end confdefs.h. */ | |
4033 | ||
4034 | int | |
4035 | main () | |
4036 | { | |
4037 | return 0;} $ac_kw int foo() { | |
4038 | ; | |
4039 | return 0; | |
4040 | } | |
4041 | _ACEOF | |
4042 | rm -f conftest.$ac_objext | |
4043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4044 | (eval $ac_compile) 2>conftest.er1 | |
4045 | ac_status=$? | |
4046 | grep -v '^ *+' conftest.er1 >conftest.err | |
4047 | rm -f conftest.er1 | |
4048 | cat conftest.err >&5 | |
4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4050 | (exit $ac_status); } && | |
4051 | { ac_try='test -z "$ac_c_werror_flag" | |
4052 | || test ! -s conftest.err' | |
4053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4054 | (eval $ac_try) 2>&5 | |
4055 | ac_status=$? | |
4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4057 | (exit $ac_status); }; } && | |
4058 | { ac_try='test -s conftest.$ac_objext' | |
4059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4060 | (eval $ac_try) 2>&5 | |
4061 | ac_status=$? | |
4062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4063 | (exit $ac_status); }; }; then | |
4064 | ac_cv_c_inline=$ac_kw; break | |
4065 | else | |
4066 | echo "$as_me: failed program was:" >&5 | |
4067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4068 | ||
4069 | fi | |
4070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4071 | done | |
4072 | ||
4073 | fi | |
4074 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
4075 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
4076 | case "$ac_cv_c_inline" in | |
4077 | yes) U_INLINE= "inline" ;; | |
4078 | no ) U_INLINE= ;; | |
4079 | *) U_INLINE=$ac_cv_c_inline ;; | |
4080 | esac | |
4081 | ||
4082 | ||
4083 | threads=true | |
4084 | ||
4085 | # Check whether --enable-threads or --disable-threads was given. | |
4086 | if test "${enable_threads+set}" = set; then | |
4087 | enableval="$enable_threads" | |
4088 | case "${enableval}" in | |
4089 | yes) threads=true ;; | |
4090 | no) threads=false ;; | |
4091 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-threads" >&5 | |
4092 | echo "$as_me: error: bad value ${enableval} for --enable-threads" >&2;} | |
4093 | { (exit 1); exit 1; }; } ;; | |
4094 | esac | |
4095 | else | |
4096 | threads=true | |
4097 | fi; | |
4098 | ||
4099 | if test "$threads" = true; then | |
4100 | THREADS_TRUE= | |
4101 | else | |
4102 | THREADS_TRUE='#' | |
4103 | fi | |
4104 | ||
4105 | ICU_USE_THREADS=0 | |
4106 | OLD_LIBS=${LIBS} | |
4107 | ||
4108 | if test $threads = true; then | |
4109 | ||
4110 | ||
4111 | echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5 | |
4112 | echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6 | |
4113 | if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then | |
4114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4115 | else | |
4116 | ac_check_lib_save_LIBS=$LIBS | |
4117 | LIBS="-lpthread $LIBS" | |
4118 | cat >conftest.$ac_ext <<_ACEOF | |
4119 | /* confdefs.h. */ | |
4120 | _ACEOF | |
4121 | cat confdefs.h >>conftest.$ac_ext | |
4122 | cat >>conftest.$ac_ext <<_ACEOF | |
4123 | /* end confdefs.h. */ | |
4124 | ||
4125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4126 | #ifdef __cplusplus | |
4127 | extern "C" | |
4128 | #endif | |
4129 | /* We use char because int might match the return type of a gcc2 | |
4130 | builtin and then its argument prototype would still apply. */ | |
4131 | char pthread_attr_init (); | |
4132 | int | |
4133 | main () | |
4134 | { | |
4135 | pthread_attr_init (); | |
4136 | ; | |
4137 | return 0; | |
4138 | } | |
4139 | _ACEOF | |
4140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4142 | (eval $ac_link) 2>conftest.er1 | |
4143 | ac_status=$? | |
4144 | grep -v '^ *+' conftest.er1 >conftest.err | |
4145 | rm -f conftest.er1 | |
4146 | cat conftest.err >&5 | |
4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4148 | (exit $ac_status); } && | |
4149 | { ac_try='test -z "$ac_c_werror_flag" | |
4150 | || test ! -s conftest.err' | |
4151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4152 | (eval $ac_try) 2>&5 | |
4153 | ac_status=$? | |
4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4155 | (exit $ac_status); }; } && | |
4156 | { ac_try='test -s conftest$ac_exeext' | |
4157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4158 | (eval $ac_try) 2>&5 | |
4159 | ac_status=$? | |
4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4161 | (exit $ac_status); }; }; then | |
4162 | ac_cv_lib_pthread_pthread_attr_init=yes | |
4163 | else | |
4164 | echo "$as_me: failed program was:" >&5 | |
4165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4166 | ||
4167 | ac_cv_lib_pthread_pthread_attr_init=no | |
4168 | fi | |
4169 | rm -f conftest.err conftest.$ac_objext \ | |
4170 | conftest$ac_exeext conftest.$ac_ext | |
4171 | LIBS=$ac_check_lib_save_LIBS | |
4172 | fi | |
4173 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 | |
4174 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6 | |
4175 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then | |
4176 | cat >>confdefs.h <<_ACEOF | |
4177 | #define HAVE_LIBPTHREAD 1 | |
4178 | _ACEOF | |
4179 | ||
4180 | LIBS="-lpthread $LIBS" | |
4181 | ||
4182 | fi | |
4183 | ||
4184 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then | |
4185 | ICU_USE_THREADS=1 | |
4186 | else | |
4187 | ||
4188 | ||
4189 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_destroy" >&5 | |
4190 | echo $ECHO_N "checking for library containing pthread_mutex_destroy... $ECHO_C" >&6 | |
4191 | if test "${ac_cv_search_pthread_mutex_destroy+set}" = set; then | |
4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4193 | else | |
4194 | ac_func_search_save_LIBS="$LIBS" | |
4195 | ac_cv_search_pthread_mutex_destroy="no" | |
4196 | for i in pthread pthreads c_r ; do | |
4197 | LIBS="-l$i $ac_func_search_save_LIBS" | |
4198 | cat >conftest.$ac_ext <<_ACEOF | |
4199 | /* confdefs.h. */ | |
4200 | _ACEOF | |
4201 | cat confdefs.h >>conftest.$ac_ext | |
4202 | cat >>conftest.$ac_ext <<_ACEOF | |
4203 | /* end confdefs.h. */ | |
4204 | ||
4205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4206 | #ifdef __cplusplus | |
4207 | extern "C" | |
4208 | #endif | |
4209 | /* We use char because int might match the return type of a gcc2 | |
4210 | builtin and then its argument prototype would still apply. */ | |
4211 | char pthread_mutex_destroy (); | |
4212 | int | |
4213 | main () | |
4214 | { | |
4215 | pthread_mutex_destroy (); | |
4216 | ; | |
4217 | return 0; | |
4218 | } | |
4219 | _ACEOF | |
4220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4222 | (eval $ac_link) 2>conftest.er1 | |
4223 | ac_status=$? | |
4224 | grep -v '^ *+' conftest.er1 >conftest.err | |
4225 | rm -f conftest.er1 | |
4226 | cat conftest.err >&5 | |
4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4228 | (exit $ac_status); } && | |
4229 | { ac_try='test -z "$ac_c_werror_flag" | |
4230 | || test ! -s conftest.err' | |
4231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4232 | (eval $ac_try) 2>&5 | |
4233 | ac_status=$? | |
4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4235 | (exit $ac_status); }; } && | |
4236 | { ac_try='test -s conftest$ac_exeext' | |
4237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4238 | (eval $ac_try) 2>&5 | |
4239 | ac_status=$? | |
4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4241 | (exit $ac_status); }; }; then | |
4242 | ac_cv_search_pthread_mutex_destroy="-l$i" | |
4243 | break | |
4244 | else | |
4245 | echo "$as_me: failed program was:" >&5 | |
4246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4247 | ||
4248 | fi | |
4249 | rm -f conftest.err conftest.$ac_objext \ | |
4250 | conftest$ac_exeext conftest.$ac_ext | |
4251 | done | |
4252 | if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then | |
4253 | cat >conftest.$ac_ext <<_ACEOF | |
4254 | /* confdefs.h. */ | |
4255 | _ACEOF | |
4256 | cat confdefs.h >>conftest.$ac_ext | |
4257 | cat >>conftest.$ac_ext <<_ACEOF | |
4258 | /* end confdefs.h. */ | |
4259 | ||
4260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4261 | #ifdef __cplusplus | |
4262 | extern "C" | |
4263 | #endif | |
4264 | /* We use char because int might match the return type of a gcc2 | |
4265 | builtin and then its argument prototype would still apply. */ | |
4266 | char pthread_mutex_destroy (); | |
4267 | int | |
4268 | main () | |
4269 | { | |
4270 | pthread_mutex_destroy (); | |
4271 | ; | |
4272 | return 0; | |
4273 | } | |
4274 | _ACEOF | |
4275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4277 | (eval $ac_link) 2>conftest.er1 | |
4278 | ac_status=$? | |
4279 | grep -v '^ *+' conftest.er1 >conftest.err | |
4280 | rm -f conftest.er1 | |
4281 | cat conftest.err >&5 | |
4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4283 | (exit $ac_status); } && | |
4284 | { ac_try='test -z "$ac_c_werror_flag" | |
4285 | || test ! -s conftest.err' | |
4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4287 | (eval $ac_try) 2>&5 | |
4288 | ac_status=$? | |
4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4290 | (exit $ac_status); }; } && | |
4291 | { ac_try='test -s conftest$ac_exeext' | |
4292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4293 | (eval $ac_try) 2>&5 | |
4294 | ac_status=$? | |
4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4296 | (exit $ac_status); }; }; then | |
4297 | ac_cv_search_pthread_mutex_destroy="none required" | |
4298 | else | |
4299 | echo "$as_me: failed program was:" >&5 | |
4300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4301 | ||
4302 | fi | |
4303 | rm -f conftest.err conftest.$ac_objext \ | |
4304 | conftest$ac_exeext conftest.$ac_ext | |
4305 | fi | |
4306 | LIBS="$ac_func_search_save_LIBS" | |
4307 | fi | |
4308 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_destroy" >&5 | |
4309 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_destroy" >&6 | |
4310 | if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then | |
4311 | test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" | |
4312 | ||
4313 | else : | |
4314 | ||
4315 | fi | |
4316 | ||
4317 | if test "$ac_cv_search_pthread_mutex_destroy" != no; then | |
4318 | ICU_USE_THREADS=1 | |
4319 | else | |
4320 | ||
4321 | echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 | |
4322 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 | |
4323 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then | |
4324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4325 | else | |
4326 | ac_check_lib_save_LIBS=$LIBS | |
4327 | LIBS="-lpthread $LIBS" | |
4328 | cat >conftest.$ac_ext <<_ACEOF | |
4329 | /* confdefs.h. */ | |
4330 | _ACEOF | |
4331 | cat confdefs.h >>conftest.$ac_ext | |
4332 | cat >>conftest.$ac_ext <<_ACEOF | |
4333 | /* end confdefs.h. */ | |
4334 | ||
4335 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4336 | #ifdef __cplusplus | |
4337 | extern "C" | |
4338 | #endif | |
4339 | /* We use char because int might match the return type of a gcc2 | |
4340 | builtin and then its argument prototype would still apply. */ | |
4341 | char pthread_mutex_init (); | |
4342 | int | |
4343 | main () | |
4344 | { | |
4345 | pthread_mutex_init (); | |
4346 | ; | |
4347 | return 0; | |
4348 | } | |
4349 | _ACEOF | |
4350 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4352 | (eval $ac_link) 2>conftest.er1 | |
4353 | ac_status=$? | |
4354 | grep -v '^ *+' conftest.er1 >conftest.err | |
4355 | rm -f conftest.er1 | |
4356 | cat conftest.err >&5 | |
4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4358 | (exit $ac_status); } && | |
4359 | { ac_try='test -z "$ac_c_werror_flag" | |
4360 | || test ! -s conftest.err' | |
4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4362 | (eval $ac_try) 2>&5 | |
4363 | ac_status=$? | |
4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4365 | (exit $ac_status); }; } && | |
4366 | { ac_try='test -s conftest$ac_exeext' | |
4367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4368 | (eval $ac_try) 2>&5 | |
4369 | ac_status=$? | |
4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4371 | (exit $ac_status); }; }; then | |
4372 | ac_cv_lib_pthread_pthread_mutex_init=yes | |
4373 | else | |
4374 | echo "$as_me: failed program was:" >&5 | |
4375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4376 | ||
4377 | ac_cv_lib_pthread_pthread_mutex_init=no | |
4378 | fi | |
4379 | rm -f conftest.err conftest.$ac_objext \ | |
4380 | conftest$ac_exeext conftest.$ac_ext | |
4381 | LIBS=$ac_check_lib_save_LIBS | |
4382 | fi | |
4383 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | |
4384 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 | |
4385 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | |
4386 | cat >>confdefs.h <<_ACEOF | |
4387 | #define HAVE_LIBPTHREAD 1 | |
4388 | _ACEOF | |
4389 | ||
4390 | LIBS="-lpthread $LIBS" | |
4391 | ||
4392 | fi | |
4393 | ||
4394 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | |
4395 | ICU_USE_THREADS=1 | |
4396 | fi | |
4397 | fi | |
4398 | ||
4399 | echo "$as_me:$LINENO: checking for pthread_mutex_lock" >&5 | |
4400 | echo $ECHO_N "checking for pthread_mutex_lock... $ECHO_C" >&6 | |
4401 | if test "${ac_cv_func_pthread_mutex_lock+set}" = set; then | |
4402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4403 | else | |
4404 | cat >conftest.$ac_ext <<_ACEOF | |
4405 | /* confdefs.h. */ | |
4406 | _ACEOF | |
4407 | cat confdefs.h >>conftest.$ac_ext | |
4408 | cat >>conftest.$ac_ext <<_ACEOF | |
4409 | /* end confdefs.h. */ | |
4410 | /* Define pthread_mutex_lock to an innocuous variant, in case <limits.h> declares pthread_mutex_lock. | |
4411 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4412 | #define pthread_mutex_lock innocuous_pthread_mutex_lock | |
4413 | ||
4414 | /* System header to define __stub macros and hopefully few prototypes, | |
4415 | which can conflict with char pthread_mutex_lock (); below. | |
4416 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4417 | <limits.h> exists even on freestanding compilers. */ | |
4418 | ||
4419 | #ifdef __STDC__ | |
4420 | # include <limits.h> | |
4421 | #else | |
4422 | # include <assert.h> | |
4423 | #endif | |
4424 | ||
4425 | #undef pthread_mutex_lock | |
4426 | ||
4427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4428 | #ifdef __cplusplus | |
4429 | extern "C" | |
4430 | { | |
4431 | #endif | |
4432 | /* We use char because int might match the return type of a gcc2 | |
4433 | builtin and then its argument prototype would still apply. */ | |
4434 | char pthread_mutex_lock (); | |
4435 | /* The GNU C library defines this for functions which it implements | |
4436 | to always fail with ENOSYS. Some functions are actually named | |
4437 | something starting with __ and the normal name is an alias. */ | |
4438 | #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock) | |
4439 | choke me | |
4440 | #else | |
4441 | char (*f) () = pthread_mutex_lock; | |
4442 | #endif | |
4443 | #ifdef __cplusplus | |
4444 | } | |
4445 | #endif | |
4446 | ||
4447 | int | |
4448 | main () | |
4449 | { | |
4450 | return f != pthread_mutex_lock; | |
4451 | ; | |
4452 | return 0; | |
4453 | } | |
4454 | _ACEOF | |
4455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4457 | (eval $ac_link) 2>conftest.er1 | |
4458 | ac_status=$? | |
4459 | grep -v '^ *+' conftest.er1 >conftest.err | |
4460 | rm -f conftest.er1 | |
4461 | cat conftest.err >&5 | |
4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4463 | (exit $ac_status); } && | |
4464 | { ac_try='test -z "$ac_c_werror_flag" | |
4465 | || test ! -s conftest.err' | |
4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4467 | (eval $ac_try) 2>&5 | |
4468 | ac_status=$? | |
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4470 | (exit $ac_status); }; } && | |
4471 | { ac_try='test -s conftest$ac_exeext' | |
4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4473 | (eval $ac_try) 2>&5 | |
4474 | ac_status=$? | |
4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4476 | (exit $ac_status); }; }; then | |
4477 | ac_cv_func_pthread_mutex_lock=yes | |
4478 | else | |
4479 | echo "$as_me: failed program was:" >&5 | |
4480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4481 | ||
4482 | ac_cv_func_pthread_mutex_lock=no | |
4483 | fi | |
4484 | rm -f conftest.err conftest.$ac_objext \ | |
4485 | conftest$ac_exeext conftest.$ac_ext | |
4486 | fi | |
4487 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_lock" >&5 | |
4488 | echo "${ECHO_T}$ac_cv_func_pthread_mutex_lock" >&6 | |
4489 | ||
4490 | ||
4491 | if test $ac_cv_func_pthread_mutex_lock = yes; then | |
4492 | ICU_USE_THREADS=1 | |
4493 | fi | |
4494 | fi | |
4495 | case "${host}" in | |
4496 | *-pc-cygwin*|*-pc-mingw*) | |
4497 | ICU_USE_THREADS=1 | |
4498 | if test "$ac_cv_c_compiler_gnu" = no; then | |
4499 | ICU_USE_THREADS=1 | |
4500 | if test $ENABLE_DEBUG = 1; then | |
4501 | CFLAGS="${CFLAGS} /MDd" | |
4502 | CXXFLAGS="${CXXFLAGS} /MDd" | |
4503 | else | |
4504 | CFLAGS="${CFLAGS} /MD" | |
4505 | CXXFLAGS="${CXXFLAGS} /MD" | |
4506 | fi | |
4507 | fi ;; | |
4508 | *-*-hpux*) | |
4509 | case "${icu_cv_host_frag}" in | |
4510 | mh-hpux-acc) | |
4511 | OLD_CXXFLAGS="${CXXFLAGS}" | |
4512 | CXXFLAGS="${CXXFLAGS} -mt" | |
4513 | if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then | |
4514 | CXXFLAGS="${OLD_CXXFLAGS}" | |
4515 | fi | |
4516 | ;; | |
4517 | esac | |
4518 | ;; | |
4519 | esac | |
4520 | fi | |
4521 | ||
4522 | ||
4523 | ||
4524 | # Check whether --enable-weak-threads or --disable-weak-threads was given. | |
4525 | if test "${enable_weak_threads+set}" = set; then | |
4526 | enableval="$enable_weak_threads" | |
4527 | case "${enableval}" in | |
4528 | yes) | |
4529 | LIB_THREAD="${LIBS%${OLD_LIBS}}" | |
4530 | LIBS=${OLD_LIBS} | |
4531 | ;; | |
4532 | no) ;; | |
4533 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-weak-threads" >&5 | |
4534 | echo "$as_me: error: bad value ${enableval} for --enable-weak-threads" >&2;} | |
4535 | { (exit 1); exit 1; }; } ;; | |
4536 | esac | |
4537 | fi; | |
4538 | ||
4539 | ||
4540 | ||
4541 | # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. | |
4542 | # Do this check instead. | |
4543 | HAVE_MMAP=0 | |
4544 | echo "$as_me:$LINENO: checking for mmap" >&5 | |
4545 | echo $ECHO_N "checking for mmap... $ECHO_C" >&6 | |
4546 | if test "${ac_cv_func_mmap_ok+set}" = set; then | |
4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4548 | else | |
4549 | cat >conftest.$ac_ext <<_ACEOF | |
4550 | /* confdefs.h. */ | |
4551 | _ACEOF | |
4552 | cat confdefs.h >>conftest.$ac_ext | |
4553 | cat >>conftest.$ac_ext <<_ACEOF | |
4554 | /* end confdefs.h. */ | |
4555 | ||
4556 | #include <unistd.h> | |
4557 | #include <sys/mman.h> | |
4558 | #include <sys/stat.h> | |
4559 | #include <fcntl.h> | |
4560 | ||
4561 | int | |
4562 | main () | |
4563 | { | |
4564 | mmap((void *)0, 0, PROT_READ, 0, 0, 0); | |
4565 | ; | |
4566 | return 0; | |
4567 | } | |
4568 | _ACEOF | |
4569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4571 | (eval $ac_link) 2>conftest.er1 | |
4572 | ac_status=$? | |
4573 | grep -v '^ *+' conftest.er1 >conftest.err | |
4574 | rm -f conftest.er1 | |
4575 | cat conftest.err >&5 | |
4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4577 | (exit $ac_status); } && | |
4578 | { ac_try='test -z "$ac_c_werror_flag" | |
4579 | || test ! -s conftest.err' | |
4580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4581 | (eval $ac_try) 2>&5 | |
4582 | ac_status=$? | |
4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4584 | (exit $ac_status); }; } && | |
4585 | { ac_try='test -s conftest$ac_exeext' | |
4586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4587 | (eval $ac_try) 2>&5 | |
4588 | ac_status=$? | |
4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4590 | (exit $ac_status); }; }; then | |
4591 | ac_cv_func_mmap_ok=yes | |
4592 | else | |
4593 | echo "$as_me: failed program was:" >&5 | |
4594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4595 | ||
4596 | ac_cv_func_mmap_ok=no | |
4597 | fi | |
4598 | rm -f conftest.err conftest.$ac_objext \ | |
4599 | conftest$ac_exeext conftest.$ac_ext | |
4600 | fi | |
4601 | ||
4602 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_ok" >&5 | |
4603 | echo "${ECHO_T}$ac_cv_func_mmap_ok" >&6 | |
4604 | if test $ac_cv_func_mmap_ok = yes | |
4605 | then | |
4606 | HAVE_MMAP=1 | |
4607 | fi | |
4608 | ||
4609 | ||
4610 | GENCCODE_ASSEMBLY= | |
4611 | case "${host}" in | |
4612 | i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-pc-gnu) | |
4613 | if test "$GCC" = yes; then | |
4614 | GENCCODE_ASSEMBLY="-a gcc" | |
4615 | fi ;; | |
4616 | i*86-*-solaris*) | |
4617 | if test "$GCC" = yes; then | |
4618 | GENCCODE_ASSEMBLY="-a gcc" | |
4619 | else | |
4620 | GENCCODE_ASSEMBLY="-a sun-x86" | |
4621 | fi ;; | |
4622 | sparc-*-solaris*) | |
4623 | GENCCODE_ASSEMBLY="-a sun" | |
4624 | ;; | |
4625 | ia64-*-hpux*) | |
4626 | GENCCODE_ASSEMBLY="-a aCC-ia64" | |
4627 | ;; | |
4628 | esac | |
4629 | ||
4630 | ||
4631 | ||
4632 | ac_ext=c | |
4633 | ac_cpp='$CPP $CPPFLAGS' | |
4634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4637 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4638 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4639 | # On Suns, sometimes $CPP names a directory. | |
4640 | if test -n "$CPP" && test -d "$CPP"; then | |
4641 | CPP= | |
4642 | fi | |
4643 | if test -z "$CPP"; then | |
4644 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4646 | else | |
4647 | # Double quotes because CPP needs to be expanded | |
4648 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4649 | do | |
4650 | ac_preproc_ok=false | |
4651 | for ac_c_preproc_warn_flag in '' yes | |
4652 | do | |
4653 | # Use a header file that comes with gcc, so configuring glibc | |
4654 | # with a fresh cross-compiler works. | |
4655 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4656 | # <limits.h> exists even on freestanding compilers. | |
4657 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4658 | # not just through cpp. "Syntax error" is here to catch this case. | |
4659 | cat >conftest.$ac_ext <<_ACEOF | |
4660 | /* confdefs.h. */ | |
4661 | _ACEOF | |
4662 | cat confdefs.h >>conftest.$ac_ext | |
4663 | cat >>conftest.$ac_ext <<_ACEOF | |
4664 | /* end confdefs.h. */ | |
4665 | #ifdef __STDC__ | |
4666 | # include <limits.h> | |
4667 | #else | |
4668 | # include <assert.h> | |
4669 | #endif | |
4670 | Syntax error | |
4671 | _ACEOF | |
4672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4674 | ac_status=$? | |
4675 | grep -v '^ *+' conftest.er1 >conftest.err | |
4676 | rm -f conftest.er1 | |
4677 | cat conftest.err >&5 | |
4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4679 | (exit $ac_status); } >/dev/null; then | |
4680 | if test -s conftest.err; then | |
4681 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4683 | else | |
4684 | ac_cpp_err= | |
4685 | fi | |
4686 | else | |
4687 | ac_cpp_err=yes | |
4688 | fi | |
4689 | if test -z "$ac_cpp_err"; then | |
4690 | : | |
4691 | else | |
4692 | echo "$as_me: failed program was:" >&5 | |
4693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4694 | ||
4695 | # Broken: fails on valid input. | |
4696 | continue | |
4697 | fi | |
4698 | rm -f conftest.err conftest.$ac_ext | |
4699 | ||
4700 | # OK, works on sane cases. Now check whether non-existent headers | |
4701 | # can be detected and how. | |
4702 | cat >conftest.$ac_ext <<_ACEOF | |
4703 | /* confdefs.h. */ | |
4704 | _ACEOF | |
4705 | cat confdefs.h >>conftest.$ac_ext | |
4706 | cat >>conftest.$ac_ext <<_ACEOF | |
4707 | /* end confdefs.h. */ | |
4708 | #include <ac_nonexistent.h> | |
4709 | _ACEOF | |
4710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4712 | ac_status=$? | |
4713 | grep -v '^ *+' conftest.er1 >conftest.err | |
4714 | rm -f conftest.er1 | |
4715 | cat conftest.err >&5 | |
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4717 | (exit $ac_status); } >/dev/null; then | |
4718 | if test -s conftest.err; then | |
4719 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4721 | else | |
4722 | ac_cpp_err= | |
4723 | fi | |
4724 | else | |
4725 | ac_cpp_err=yes | |
4726 | fi | |
4727 | if test -z "$ac_cpp_err"; then | |
4728 | # Broken: success on invalid input. | |
4729 | continue | |
4730 | else | |
4731 | echo "$as_me: failed program was:" >&5 | |
4732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4733 | ||
4734 | # Passes both tests. | |
4735 | ac_preproc_ok=: | |
4736 | break | |
4737 | fi | |
4738 | rm -f conftest.err conftest.$ac_ext | |
4739 | ||
4740 | done | |
4741 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4742 | rm -f conftest.err conftest.$ac_ext | |
4743 | if $ac_preproc_ok; then | |
4744 | break | |
4745 | fi | |
4746 | ||
4747 | done | |
4748 | ac_cv_prog_CPP=$CPP | |
4749 | ||
4750 | fi | |
4751 | CPP=$ac_cv_prog_CPP | |
4752 | else | |
4753 | ac_cv_prog_CPP=$CPP | |
4754 | fi | |
4755 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4756 | echo "${ECHO_T}$CPP" >&6 | |
4757 | ac_preproc_ok=false | |
4758 | for ac_c_preproc_warn_flag in '' yes | |
4759 | do | |
4760 | # Use a header file that comes with gcc, so configuring glibc | |
4761 | # with a fresh cross-compiler works. | |
4762 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4763 | # <limits.h> exists even on freestanding compilers. | |
4764 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4765 | # not just through cpp. "Syntax error" is here to catch this case. | |
4766 | cat >conftest.$ac_ext <<_ACEOF | |
4767 | /* confdefs.h. */ | |
4768 | _ACEOF | |
4769 | cat confdefs.h >>conftest.$ac_ext | |
4770 | cat >>conftest.$ac_ext <<_ACEOF | |
4771 | /* end confdefs.h. */ | |
4772 | #ifdef __STDC__ | |
4773 | # include <limits.h> | |
4774 | #else | |
4775 | # include <assert.h> | |
4776 | #endif | |
4777 | Syntax error | |
4778 | _ACEOF | |
4779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4781 | ac_status=$? | |
4782 | grep -v '^ *+' conftest.er1 >conftest.err | |
4783 | rm -f conftest.er1 | |
4784 | cat conftest.err >&5 | |
4785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4786 | (exit $ac_status); } >/dev/null; then | |
4787 | if test -s conftest.err; then | |
4788 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4789 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4790 | else | |
4791 | ac_cpp_err= | |
4792 | fi | |
4793 | else | |
4794 | ac_cpp_err=yes | |
4795 | fi | |
4796 | if test -z "$ac_cpp_err"; then | |
4797 | : | |
4798 | else | |
4799 | echo "$as_me: failed program was:" >&5 | |
4800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4801 | ||
4802 | # Broken: fails on valid input. | |
4803 | continue | |
4804 | fi | |
4805 | rm -f conftest.err conftest.$ac_ext | |
4806 | ||
4807 | # OK, works on sane cases. Now check whether non-existent headers | |
4808 | # can be detected and how. | |
4809 | cat >conftest.$ac_ext <<_ACEOF | |
4810 | /* confdefs.h. */ | |
4811 | _ACEOF | |
4812 | cat confdefs.h >>conftest.$ac_ext | |
4813 | cat >>conftest.$ac_ext <<_ACEOF | |
4814 | /* end confdefs.h. */ | |
4815 | #include <ac_nonexistent.h> | |
4816 | _ACEOF | |
4817 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4819 | ac_status=$? | |
4820 | grep -v '^ *+' conftest.er1 >conftest.err | |
4821 | rm -f conftest.er1 | |
4822 | cat conftest.err >&5 | |
4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4824 | (exit $ac_status); } >/dev/null; then | |
4825 | if test -s conftest.err; then | |
4826 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4827 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4828 | else | |
4829 | ac_cpp_err= | |
4830 | fi | |
4831 | else | |
4832 | ac_cpp_err=yes | |
4833 | fi | |
4834 | if test -z "$ac_cpp_err"; then | |
4835 | # Broken: success on invalid input. | |
4836 | continue | |
4837 | else | |
4838 | echo "$as_me: failed program was:" >&5 | |
4839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4840 | ||
4841 | # Passes both tests. | |
4842 | ac_preproc_ok=: | |
4843 | break | |
4844 | fi | |
4845 | rm -f conftest.err conftest.$ac_ext | |
4846 | ||
4847 | done | |
4848 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4849 | rm -f conftest.err conftest.$ac_ext | |
4850 | if $ac_preproc_ok; then | |
4851 | : | |
4852 | else | |
4853 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4854 | See \`config.log' for more details." >&5 | |
4855 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4856 | See \`config.log' for more details." >&2;} | |
4857 | { (exit 1); exit 1; }; } | |
4858 | fi | |
4859 | ||
4860 | ac_ext=c | |
4861 | ac_cpp='$CPP $CPPFLAGS' | |
4862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4865 | ||
4866 | ||
4867 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4868 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4869 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4871 | else | |
4872 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4873 | then ac_cv_prog_egrep='grep -E' | |
4874 | else ac_cv_prog_egrep='egrep' | |
4875 | fi | |
4876 | fi | |
4877 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4878 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4879 | EGREP=$ac_cv_prog_egrep | |
4880 | ||
4881 | ||
4882 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4883 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4884 | if test "${ac_cv_header_stdc+set}" = set; then | |
4885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4886 | else | |
4887 | cat >conftest.$ac_ext <<_ACEOF | |
4888 | /* confdefs.h. */ | |
4889 | _ACEOF | |
4890 | cat confdefs.h >>conftest.$ac_ext | |
4891 | cat >>conftest.$ac_ext <<_ACEOF | |
4892 | /* end confdefs.h. */ | |
4893 | #include <stdlib.h> | |
4894 | #include <stdarg.h> | |
4895 | #include <string.h> | |
4896 | #include <float.h> | |
4897 | ||
4898 | int | |
4899 | main () | |
4900 | { | |
4901 | ||
4902 | ; | |
4903 | return 0; | |
4904 | } | |
4905 | _ACEOF | |
4906 | rm -f conftest.$ac_objext | |
4907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4908 | (eval $ac_compile) 2>conftest.er1 | |
4909 | ac_status=$? | |
4910 | grep -v '^ *+' conftest.er1 >conftest.err | |
4911 | rm -f conftest.er1 | |
4912 | cat conftest.err >&5 | |
4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4914 | (exit $ac_status); } && | |
4915 | { ac_try='test -z "$ac_c_werror_flag" | |
4916 | || test ! -s conftest.err' | |
4917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4918 | (eval $ac_try) 2>&5 | |
4919 | ac_status=$? | |
4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4921 | (exit $ac_status); }; } && | |
4922 | { ac_try='test -s conftest.$ac_objext' | |
4923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4924 | (eval $ac_try) 2>&5 | |
4925 | ac_status=$? | |
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4927 | (exit $ac_status); }; }; then | |
4928 | ac_cv_header_stdc=yes | |
4929 | else | |
4930 | echo "$as_me: failed program was:" >&5 | |
4931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4932 | ||
4933 | ac_cv_header_stdc=no | |
4934 | fi | |
4935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4936 | ||
4937 | if test $ac_cv_header_stdc = yes; then | |
4938 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4939 | cat >conftest.$ac_ext <<_ACEOF | |
4940 | /* confdefs.h. */ | |
4941 | _ACEOF | |
4942 | cat confdefs.h >>conftest.$ac_ext | |
4943 | cat >>conftest.$ac_ext <<_ACEOF | |
4944 | /* end confdefs.h. */ | |
4945 | #include <string.h> | |
4946 | ||
4947 | _ACEOF | |
4948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4949 | $EGREP "memchr" >/dev/null 2>&1; then | |
4950 | : | |
4951 | else | |
4952 | ac_cv_header_stdc=no | |
4953 | fi | |
4954 | rm -f conftest* | |
4955 | ||
4956 | fi | |
4957 | ||
4958 | if test $ac_cv_header_stdc = yes; then | |
4959 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4960 | cat >conftest.$ac_ext <<_ACEOF | |
4961 | /* confdefs.h. */ | |
4962 | _ACEOF | |
4963 | cat confdefs.h >>conftest.$ac_ext | |
4964 | cat >>conftest.$ac_ext <<_ACEOF | |
4965 | /* end confdefs.h. */ | |
4966 | #include <stdlib.h> | |
4967 | ||
4968 | _ACEOF | |
4969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4970 | $EGREP "free" >/dev/null 2>&1; then | |
4971 | : | |
4972 | else | |
4973 | ac_cv_header_stdc=no | |
4974 | fi | |
4975 | rm -f conftest* | |
4976 | ||
4977 | fi | |
4978 | ||
4979 | if test $ac_cv_header_stdc = yes; then | |
4980 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4981 | if test "$cross_compiling" = yes; then | |
4982 | : | |
4983 | else | |
4984 | cat >conftest.$ac_ext <<_ACEOF | |
4985 | /* confdefs.h. */ | |
4986 | _ACEOF | |
4987 | cat confdefs.h >>conftest.$ac_ext | |
4988 | cat >>conftest.$ac_ext <<_ACEOF | |
4989 | /* end confdefs.h. */ | |
4990 | #include <ctype.h> | |
4991 | #if ((' ' & 0x0FF) == 0x020) | |
4992 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4993 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4994 | #else | |
4995 | # define ISLOWER(c) \ | |
4996 | (('a' <= (c) && (c) <= 'i') \ | |
4997 | || ('j' <= (c) && (c) <= 'r') \ | |
4998 | || ('s' <= (c) && (c) <= 'z')) | |
4999 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5000 | #endif | |
5001 | ||
5002 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5003 | int | |
5004 | main () | |
5005 | { | |
5006 | int i; | |
5007 | for (i = 0; i < 256; i++) | |
5008 | if (XOR (islower (i), ISLOWER (i)) | |
5009 | || toupper (i) != TOUPPER (i)) | |
5010 | exit(2); | |
5011 | exit (0); | |
5012 | } | |
5013 | _ACEOF | |
5014 | rm -f conftest$ac_exeext | |
5015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5016 | (eval $ac_link) 2>&5 | |
5017 | ac_status=$? | |
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5019 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5021 | (eval $ac_try) 2>&5 | |
5022 | ac_status=$? | |
5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5024 | (exit $ac_status); }; }; then | |
5025 | : | |
5026 | else | |
5027 | echo "$as_me: program exited with status $ac_status" >&5 | |
5028 | echo "$as_me: failed program was:" >&5 | |
5029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5030 | ||
5031 | ( exit $ac_status ) | |
5032 | ac_cv_header_stdc=no | |
5033 | fi | |
5034 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5035 | fi | |
5036 | fi | |
5037 | fi | |
5038 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5039 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5040 | if test $ac_cv_header_stdc = yes; then | |
5041 | ||
5042 | cat >>confdefs.h <<\_ACEOF | |
5043 | #define STDC_HEADERS 1 | |
5044 | _ACEOF | |
5045 | ||
5046 | fi | |
5047 | ||
5048 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5049 | ||
5050 | ||
5051 | ||
5052 | ||
5053 | ||
5054 | ||
5055 | ||
5056 | ||
5057 | ||
5058 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5059 | inttypes.h stdint.h unistd.h | |
5060 | do | |
5061 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5062 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5066 | else | |
5067 | cat >conftest.$ac_ext <<_ACEOF | |
5068 | /* confdefs.h. */ | |
5069 | _ACEOF | |
5070 | cat confdefs.h >>conftest.$ac_ext | |
5071 | cat >>conftest.$ac_ext <<_ACEOF | |
5072 | /* end confdefs.h. */ | |
5073 | $ac_includes_default | |
5074 | ||
5075 | #include <$ac_header> | |
5076 | _ACEOF | |
5077 | rm -f conftest.$ac_objext | |
5078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5079 | (eval $ac_compile) 2>conftest.er1 | |
5080 | ac_status=$? | |
5081 | grep -v '^ *+' conftest.er1 >conftest.err | |
5082 | rm -f conftest.er1 | |
5083 | cat conftest.err >&5 | |
5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5085 | (exit $ac_status); } && | |
5086 | { ac_try='test -z "$ac_c_werror_flag" | |
5087 | || test ! -s conftest.err' | |
5088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5089 | (eval $ac_try) 2>&5 | |
5090 | ac_status=$? | |
5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5092 | (exit $ac_status); }; } && | |
5093 | { ac_try='test -s conftest.$ac_objext' | |
5094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5095 | (eval $ac_try) 2>&5 | |
5096 | ac_status=$? | |
5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5098 | (exit $ac_status); }; }; then | |
5099 | eval "$as_ac_Header=yes" | |
5100 | else | |
5101 | echo "$as_me: failed program was:" >&5 | |
5102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5103 | ||
5104 | eval "$as_ac_Header=no" | |
5105 | fi | |
5106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5107 | fi | |
5108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5109 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5110 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5111 | cat >>confdefs.h <<_ACEOF | |
5112 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5113 | _ACEOF | |
5114 | ||
5115 | fi | |
5116 | ||
5117 | done | |
5118 | ||
5119 | ||
5120 | ||
5121 | for ac_header in inttypes.h | |
5122 | do | |
5123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5129 | fi | |
5130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5132 | else | |
5133 | # Is the header compilable? | |
5134 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5136 | cat >conftest.$ac_ext <<_ACEOF | |
5137 | /* confdefs.h. */ | |
5138 | _ACEOF | |
5139 | cat confdefs.h >>conftest.$ac_ext | |
5140 | cat >>conftest.$ac_ext <<_ACEOF | |
5141 | /* end confdefs.h. */ | |
5142 | $ac_includes_default | |
5143 | #include <$ac_header> | |
5144 | _ACEOF | |
5145 | rm -f conftest.$ac_objext | |
5146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5147 | (eval $ac_compile) 2>conftest.er1 | |
5148 | ac_status=$? | |
5149 | grep -v '^ *+' conftest.er1 >conftest.err | |
5150 | rm -f conftest.er1 | |
5151 | cat conftest.err >&5 | |
5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5153 | (exit $ac_status); } && | |
5154 | { ac_try='test -z "$ac_c_werror_flag" | |
5155 | || test ! -s conftest.err' | |
5156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5157 | (eval $ac_try) 2>&5 | |
5158 | ac_status=$? | |
5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5160 | (exit $ac_status); }; } && | |
5161 | { ac_try='test -s conftest.$ac_objext' | |
5162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5163 | (eval $ac_try) 2>&5 | |
5164 | ac_status=$? | |
5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5166 | (exit $ac_status); }; }; then | |
5167 | ac_header_compiler=yes | |
5168 | else | |
5169 | echo "$as_me: failed program was:" >&5 | |
5170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5171 | ||
5172 | ac_header_compiler=no | |
5173 | fi | |
5174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5176 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5177 | ||
5178 | # Is the header present? | |
5179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5181 | cat >conftest.$ac_ext <<_ACEOF | |
5182 | /* confdefs.h. */ | |
5183 | _ACEOF | |
5184 | cat confdefs.h >>conftest.$ac_ext | |
5185 | cat >>conftest.$ac_ext <<_ACEOF | |
5186 | /* end confdefs.h. */ | |
5187 | #include <$ac_header> | |
5188 | _ACEOF | |
5189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5191 | ac_status=$? | |
5192 | grep -v '^ *+' conftest.er1 >conftest.err | |
5193 | rm -f conftest.er1 | |
5194 | cat conftest.err >&5 | |
5195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5196 | (exit $ac_status); } >/dev/null; then | |
5197 | if test -s conftest.err; then | |
5198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5200 | else | |
5201 | ac_cpp_err= | |
5202 | fi | |
5203 | else | |
5204 | ac_cpp_err=yes | |
5205 | fi | |
5206 | if test -z "$ac_cpp_err"; then | |
5207 | ac_header_preproc=yes | |
5208 | else | |
5209 | echo "$as_me: failed program was:" >&5 | |
5210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5211 | ||
5212 | ac_header_preproc=no | |
5213 | fi | |
5214 | rm -f conftest.err conftest.$ac_ext | |
5215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5216 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5217 | ||
5218 | # So? What about this header? | |
5219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5220 | yes:no: ) | |
5221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5225 | ac_header_preproc=yes | |
5226 | ;; | |
5227 | no:yes:* ) | |
5228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5240 | ( | |
5241 | cat <<\_ASBOX | |
5242 | ## ------------------------------------------ ## | |
5243 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5244 | ## ------------------------------------------ ## | |
5245 | _ASBOX | |
5246 | ) | | |
5247 | sed "s/^/$as_me: WARNING: /" >&2 | |
5248 | ;; | |
5249 | esac | |
5250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5254 | else | |
5255 | eval "$as_ac_Header=\$ac_header_preproc" | |
5256 | fi | |
5257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5259 | ||
5260 | fi | |
5261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5262 | cat >>confdefs.h <<_ACEOF | |
5263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5264 | _ACEOF | |
5265 | ||
5266 | fi | |
5267 | ||
5268 | done | |
5269 | ||
5270 | if test $ac_cv_header_inttypes_h = no; then | |
5271 | U_HAVE_INTTYPES_H=0 | |
5272 | else | |
5273 | U_HAVE_INTTYPES_H=1 | |
5274 | fi | |
5275 | if test "$CC" = ccc; then | |
5276 | echo "$as_me:$LINENO: result: \"C compiler set to CCC ${CC}\" " >&5 | |
5277 | echo "${ECHO_T}\"C compiler set to CCC ${CC}\" " >&6 | |
5278 | case "${host}" in | |
5279 | alpha*-*-*) U_HAVE_INTTYPES_H=0; | |
5280 | esac | |
5281 | fi | |
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | # Check whether --with-iostream or --without-iostream was given. | |
5287 | if test "${with_iostream+set}" = set; then | |
5288 | withval="$with_iostream" | |
5289 | case "${withval}" in | |
5290 | none) streams=none ;; | |
5291 | old) streams=198506 ;; | |
5292 | std) streams=199711 ;; | |
5293 | auto) streams= ;; | |
5294 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-iostream" >&5 | |
5295 | echo "$as_me: error: bad value ${withval} for --with-iostream" >&2;} | |
5296 | { (exit 1); exit 1; }; } ;; | |
5297 | esac | |
5298 | else | |
5299 | streams= | |
5300 | fi; | |
5301 | ||
5302 | U_IOSTREAM_SOURCE=0 | |
5303 | if test x$streams != xnone | |
5304 | then | |
5305 | ||
5306 | ||
5307 | ac_ext=cc | |
5308 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5309 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5310 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5311 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5312 | ||
5313 | OLD_CXXFLAGS="${CXXFLAGS}" | |
5314 | case "${icu_cv_host_frag}" in | |
5315 | mh-hpux-acc) | |
5316 | CXXFLAGS="${CXXFLAGS} -AA" | |
5317 | ;; | |
5318 | esac | |
5319 | echo "$as_me:$LINENO: checking for iostream usability" >&5 | |
5320 | echo $ECHO_N "checking for iostream usability... $ECHO_C" >&6 | |
5321 | ||
5322 | cat >conftest.$ac_ext <<_ACEOF | |
5323 | /* confdefs.h. */ | |
5324 | _ACEOF | |
5325 | cat confdefs.h >>conftest.$ac_ext | |
5326 | cat >>conftest.$ac_ext <<_ACEOF | |
5327 | /* end confdefs.h. */ | |
5328 | #include <iostream> | |
5329 | int | |
5330 | main () | |
5331 | { | |
5332 | ||
5333 | ; | |
5334 | return 0; | |
5335 | } | |
5336 | _ACEOF | |
5337 | rm -f conftest.$ac_objext | |
5338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5339 | (eval $ac_compile) 2>conftest.er1 | |
5340 | ac_status=$? | |
5341 | grep -v '^ *+' conftest.er1 >conftest.err | |
5342 | rm -f conftest.er1 | |
5343 | cat conftest.err >&5 | |
5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5345 | (exit $ac_status); } && | |
5346 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5347 | || test ! -s conftest.err' | |
5348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5349 | (eval $ac_try) 2>&5 | |
5350 | ac_status=$? | |
5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5352 | (exit $ac_status); }; } && | |
5353 | { ac_try='test -s conftest.$ac_objext' | |
5354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5355 | (eval $ac_try) 2>&5 | |
5356 | ac_status=$? | |
5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5358 | (exit $ac_status); }; }; then | |
5359 | ac_cv_header_iostream=yes | |
5360 | else | |
5361 | echo "$as_me: failed program was:" >&5 | |
5362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5363 | ||
5364 | ac_cv_header_iostream=no | |
5365 | fi | |
5366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5367 | if test $icu_cv_host_frag = mh-cygwin-msvc | |
5368 | then | |
5369 | ac_cv_header_iostream=yes | |
5370 | fi | |
5371 | echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 | |
5372 | echo "${ECHO_T}$ac_cv_header_iostream" >&6 | |
5373 | if test $ac_cv_header_iostream = yes | |
5374 | then | |
5375 | U_IOSTREAM_SOURCE=199711 | |
5376 | else | |
5377 | CXXFLAGS="${OLD_CXXFLAGS}" | |
5378 | echo "$as_me:$LINENO: checking whether ostream in iostream.h is really defined" >&5 | |
5379 | echo $ECHO_N "checking whether ostream in iostream.h is really defined... $ECHO_C" >&6 | |
5380 | if test "${ac_cv_iostream_ok+set}" = set; then | |
5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5382 | else | |
5383 | cat >conftest.$ac_ext <<_ACEOF | |
5384 | /* confdefs.h. */ | |
5385 | _ACEOF | |
5386 | cat confdefs.h >>conftest.$ac_ext | |
5387 | cat >>conftest.$ac_ext <<_ACEOF | |
5388 | /* end confdefs.h. */ | |
5389 | #include <iostream.h> | |
5390 | int | |
5391 | main () | |
5392 | { | |
5393 | ostream &testout = cout; testout << "test" << endl; | |
5394 | ; | |
5395 | return 0; | |
5396 | } | |
5397 | _ACEOF | |
5398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5400 | (eval $ac_link) 2>conftest.er1 | |
5401 | ac_status=$? | |
5402 | grep -v '^ *+' conftest.er1 >conftest.err | |
5403 | rm -f conftest.er1 | |
5404 | cat conftest.err >&5 | |
5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5406 | (exit $ac_status); } && | |
5407 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5408 | || test ! -s conftest.err' | |
5409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5410 | (eval $ac_try) 2>&5 | |
5411 | ac_status=$? | |
5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5413 | (exit $ac_status); }; } && | |
5414 | { ac_try='test -s conftest$ac_exeext' | |
5415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5416 | (eval $ac_try) 2>&5 | |
5417 | ac_status=$? | |
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5419 | (exit $ac_status); }; }; then | |
5420 | ac_cv_iostream_ok=yes | |
5421 | else | |
5422 | echo "$as_me: failed program was:" >&5 | |
5423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5424 | ||
5425 | ac_cv_iostream_ok=no | |
5426 | fi | |
5427 | rm -f conftest.err conftest.$ac_objext \ | |
5428 | conftest$ac_exeext conftest.$ac_ext | |
5429 | fi | |
5430 | ||
5431 | echo "$as_me:$LINENO: result: $ac_cv_iostream_ok" >&5 | |
5432 | echo "${ECHO_T}$ac_cv_iostream_ok" >&6 | |
5433 | if test $ac_cv_iostream_ok = yes | |
5434 | then | |
5435 | U_IOSTREAM_SOURCE=198506 | |
5436 | fi | |
5437 | fi | |
5438 | if test x$streams != x | |
5439 | then | |
5440 | if test $U_IOSTREAM_SOURCE -ge $streams | |
5441 | then | |
5442 | U_IOSTREAM_SOURCE=$streams | |
5443 | case "${icu_cv_host_frag}" in | |
5444 | mh-hpux-acc) | |
5445 | if test $U_IOSTREAM_SOURCE -lt 199711; then | |
5446 | CXXFLAGS=${OLD_CXXFLAGS} | |
5447 | fi | |
5448 | ;; | |
5449 | esac | |
5450 | else | |
5451 | { { echo "$as_me:$LINENO: error: ${withval} iostream is not available" >&5 | |
5452 | echo "$as_me: error: ${withval} iostream is not available" >&2;} | |
5453 | { (exit 1); exit 1; }; } | |
5454 | fi | |
5455 | fi | |
5456 | fi | |
5457 | ||
5458 | ac_ext=c | |
5459 | ac_cpp='$CPP $CPPFLAGS' | |
5460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5463 | ||
5464 | ||
5465 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
5466 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
5467 | if test "${ac_cv_c_bigendian+set}" = set; then | |
5468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5469 | else | |
5470 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5471 | cat >conftest.$ac_ext <<_ACEOF | |
5472 | /* confdefs.h. */ | |
5473 | _ACEOF | |
5474 | cat confdefs.h >>conftest.$ac_ext | |
5475 | cat >>conftest.$ac_ext <<_ACEOF | |
5476 | /* end confdefs.h. */ | |
5477 | #include <sys/types.h> | |
5478 | #include <sys/param.h> | |
5479 | ||
5480 | int | |
5481 | main () | |
5482 | { | |
5483 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
5484 | bogus endian macros | |
5485 | #endif | |
5486 | ||
5487 | ; | |
5488 | return 0; | |
5489 | } | |
5490 | _ACEOF | |
5491 | rm -f conftest.$ac_objext | |
5492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5493 | (eval $ac_compile) 2>conftest.er1 | |
5494 | ac_status=$? | |
5495 | grep -v '^ *+' conftest.er1 >conftest.err | |
5496 | rm -f conftest.er1 | |
5497 | cat conftest.err >&5 | |
5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5499 | (exit $ac_status); } && | |
5500 | { ac_try='test -z "$ac_c_werror_flag" | |
5501 | || test ! -s conftest.err' | |
5502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5503 | (eval $ac_try) 2>&5 | |
5504 | ac_status=$? | |
5505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5506 | (exit $ac_status); }; } && | |
5507 | { ac_try='test -s conftest.$ac_objext' | |
5508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5509 | (eval $ac_try) 2>&5 | |
5510 | ac_status=$? | |
5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5512 | (exit $ac_status); }; }; then | |
5513 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5514 | cat >conftest.$ac_ext <<_ACEOF | |
5515 | /* confdefs.h. */ | |
5516 | _ACEOF | |
5517 | cat confdefs.h >>conftest.$ac_ext | |
5518 | cat >>conftest.$ac_ext <<_ACEOF | |
5519 | /* end confdefs.h. */ | |
5520 | #include <sys/types.h> | |
5521 | #include <sys/param.h> | |
5522 | ||
5523 | int | |
5524 | main () | |
5525 | { | |
5526 | #if BYTE_ORDER != BIG_ENDIAN | |
5527 | not big endian | |
5528 | #endif | |
5529 | ||
5530 | ; | |
5531 | return 0; | |
5532 | } | |
5533 | _ACEOF | |
5534 | rm -f conftest.$ac_objext | |
5535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5536 | (eval $ac_compile) 2>conftest.er1 | |
5537 | ac_status=$? | |
5538 | grep -v '^ *+' conftest.er1 >conftest.err | |
5539 | rm -f conftest.er1 | |
5540 | cat conftest.err >&5 | |
5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5542 | (exit $ac_status); } && | |
5543 | { ac_try='test -z "$ac_c_werror_flag" | |
5544 | || test ! -s conftest.err' | |
5545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5546 | (eval $ac_try) 2>&5 | |
5547 | ac_status=$? | |
5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5549 | (exit $ac_status); }; } && | |
5550 | { ac_try='test -s conftest.$ac_objext' | |
5551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5552 | (eval $ac_try) 2>&5 | |
5553 | ac_status=$? | |
5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5555 | (exit $ac_status); }; }; then | |
5556 | ac_cv_c_bigendian=yes | |
5557 | else | |
5558 | echo "$as_me: failed program was:" >&5 | |
5559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5560 | ||
5561 | ac_cv_c_bigendian=no | |
5562 | fi | |
5563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5564 | else | |
5565 | echo "$as_me: failed program was:" >&5 | |
5566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5567 | ||
5568 | # It does not; compile a test program. | |
5569 | if test "$cross_compiling" = yes; then | |
5570 | # try to guess the endianness by grepping values into an object file | |
5571 | ac_cv_c_bigendian=unknown | |
5572 | cat >conftest.$ac_ext <<_ACEOF | |
5573 | /* confdefs.h. */ | |
5574 | _ACEOF | |
5575 | cat confdefs.h >>conftest.$ac_ext | |
5576 | cat >>conftest.$ac_ext <<_ACEOF | |
5577 | /* end confdefs.h. */ | |
5578 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5579 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5580 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
5581 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5582 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5583 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
5584 | int | |
5585 | main () | |
5586 | { | |
5587 | _ascii (); _ebcdic (); | |
5588 | ; | |
5589 | return 0; | |
5590 | } | |
5591 | _ACEOF | |
5592 | rm -f conftest.$ac_objext | |
5593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5594 | (eval $ac_compile) 2>conftest.er1 | |
5595 | ac_status=$? | |
5596 | grep -v '^ *+' conftest.er1 >conftest.err | |
5597 | rm -f conftest.er1 | |
5598 | cat conftest.err >&5 | |
5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5600 | (exit $ac_status); } && | |
5601 | { ac_try='test -z "$ac_c_werror_flag" | |
5602 | || test ! -s conftest.err' | |
5603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5604 | (eval $ac_try) 2>&5 | |
5605 | ac_status=$? | |
5606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5607 | (exit $ac_status); }; } && | |
5608 | { ac_try='test -s conftest.$ac_objext' | |
5609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5610 | (eval $ac_try) 2>&5 | |
5611 | ac_status=$? | |
5612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5613 | (exit $ac_status); }; }; then | |
5614 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
5615 | ac_cv_c_bigendian=yes | |
5616 | fi | |
5617 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5618 | if test "$ac_cv_c_bigendian" = unknown; then | |
5619 | ac_cv_c_bigendian=no | |
5620 | else | |
5621 | # finding both strings is unlikely to happen, but who knows? | |
5622 | ac_cv_c_bigendian=unknown | |
5623 | fi | |
5624 | fi | |
5625 | else | |
5626 | echo "$as_me: failed program was:" >&5 | |
5627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5628 | ||
5629 | fi | |
5630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5631 | else | |
5632 | cat >conftest.$ac_ext <<_ACEOF | |
5633 | /* confdefs.h. */ | |
5634 | _ACEOF | |
5635 | cat confdefs.h >>conftest.$ac_ext | |
5636 | cat >>conftest.$ac_ext <<_ACEOF | |
5637 | /* end confdefs.h. */ | |
5638 | int | |
5639 | main () | |
5640 | { | |
5641 | /* Are we little or big endian? From Harbison&Steele. */ | |
5642 | union | |
5643 | { | |
5644 | long l; | |
5645 | char c[sizeof (long)]; | |
5646 | } u; | |
5647 | u.l = 1; | |
5648 | exit (u.c[sizeof (long) - 1] == 1); | |
5649 | } | |
5650 | _ACEOF | |
5651 | rm -f conftest$ac_exeext | |
5652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5653 | (eval $ac_link) 2>&5 | |
5654 | ac_status=$? | |
5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5656 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5658 | (eval $ac_try) 2>&5 | |
5659 | ac_status=$? | |
5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5661 | (exit $ac_status); }; }; then | |
5662 | ac_cv_c_bigendian=no | |
5663 | else | |
5664 | echo "$as_me: program exited with status $ac_status" >&5 | |
5665 | echo "$as_me: failed program was:" >&5 | |
5666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5667 | ||
5668 | ( exit $ac_status ) | |
5669 | ac_cv_c_bigendian=yes | |
5670 | fi | |
5671 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5672 | fi | |
5673 | fi | |
5674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5675 | fi | |
5676 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
5677 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
5678 | case $ac_cv_c_bigendian in | |
5679 | yes) | |
5680 | ||
5681 | cat >>confdefs.h <<\_ACEOF | |
5682 | #define WORDS_BIGENDIAN 1 | |
5683 | _ACEOF | |
5684 | ;; | |
5685 | no) | |
5686 | ;; | |
5687 | *) | |
5688 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5689 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5690 | echo "$as_me: error: unknown endianness | |
5691 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5692 | { (exit 1); exit 1; }; } ;; | |
5693 | esac | |
5694 | ||
5695 | if test $ac_cv_c_bigendian = no; then | |
5696 | U_IS_BIG_ENDIAN=0 | |
5697 | U_ENDIAN_CHAR="l" | |
5698 | else | |
5699 | U_IS_BIG_ENDIAN=1 | |
5700 | U_ENDIAN_CHAR="b" | |
5701 | fi | |
5702 | ||
5703 | ||
5704 | U_HAVE_NL_LANGINFO_CODESET=0 | |
5705 | U_NL_LANGINFO_CODESET=-1 | |
5706 | echo "$as_me:$LINENO: checking for nl_langinfo" >&5 | |
5707 | echo $ECHO_N "checking for nl_langinfo... $ECHO_C" >&6 | |
5708 | if test "${ac_cv_func_nl_langinfo+set}" = set; then | |
5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5710 | else | |
5711 | cat >conftest.$ac_ext <<_ACEOF | |
5712 | /* confdefs.h. */ | |
5713 | _ACEOF | |
5714 | cat confdefs.h >>conftest.$ac_ext | |
5715 | cat >>conftest.$ac_ext <<_ACEOF | |
5716 | /* end confdefs.h. */ | |
5717 | /* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo. | |
5718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5719 | #define nl_langinfo innocuous_nl_langinfo | |
5720 | ||
5721 | /* System header to define __stub macros and hopefully few prototypes, | |
5722 | which can conflict with char nl_langinfo (); below. | |
5723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5724 | <limits.h> exists even on freestanding compilers. */ | |
5725 | ||
5726 | #ifdef __STDC__ | |
5727 | # include <limits.h> | |
5728 | #else | |
5729 | # include <assert.h> | |
5730 | #endif | |
5731 | ||
5732 | #undef nl_langinfo | |
5733 | ||
5734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5735 | #ifdef __cplusplus | |
5736 | extern "C" | |
5737 | { | |
5738 | #endif | |
5739 | /* We use char because int might match the return type of a gcc2 | |
5740 | builtin and then its argument prototype would still apply. */ | |
5741 | char nl_langinfo (); | |
5742 | /* The GNU C library defines this for functions which it implements | |
5743 | to always fail with ENOSYS. Some functions are actually named | |
5744 | something starting with __ and the normal name is an alias. */ | |
5745 | #if defined (__stub_nl_langinfo) || defined (__stub___nl_langinfo) | |
5746 | choke me | |
5747 | #else | |
5748 | char (*f) () = nl_langinfo; | |
5749 | #endif | |
5750 | #ifdef __cplusplus | |
5751 | } | |
5752 | #endif | |
5753 | ||
5754 | int | |
5755 | main () | |
5756 | { | |
5757 | return f != nl_langinfo; | |
5758 | ; | |
5759 | return 0; | |
5760 | } | |
5761 | _ACEOF | |
5762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5764 | (eval $ac_link) 2>conftest.er1 | |
5765 | ac_status=$? | |
5766 | grep -v '^ *+' conftest.er1 >conftest.err | |
5767 | rm -f conftest.er1 | |
5768 | cat conftest.err >&5 | |
5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5770 | (exit $ac_status); } && | |
5771 | { ac_try='test -z "$ac_c_werror_flag" | |
5772 | || test ! -s conftest.err' | |
5773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5774 | (eval $ac_try) 2>&5 | |
5775 | ac_status=$? | |
5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5777 | (exit $ac_status); }; } && | |
5778 | { ac_try='test -s conftest$ac_exeext' | |
5779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5780 | (eval $ac_try) 2>&5 | |
5781 | ac_status=$? | |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5783 | (exit $ac_status); }; }; then | |
5784 | ac_cv_func_nl_langinfo=yes | |
5785 | else | |
5786 | echo "$as_me: failed program was:" >&5 | |
5787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5788 | ||
5789 | ac_cv_func_nl_langinfo=no | |
5790 | fi | |
5791 | rm -f conftest.err conftest.$ac_objext \ | |
5792 | conftest$ac_exeext conftest.$ac_ext | |
5793 | fi | |
5794 | echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5 | |
5795 | echo "${ECHO_T}$ac_cv_func_nl_langinfo" >&6 | |
5796 | if test $ac_cv_func_nl_langinfo = yes; then | |
5797 | U_HAVE_NL_LANGINFO=1 | |
5798 | else | |
5799 | U_HAVE_NL_LANGINFO=0 | |
5800 | fi | |
5801 | ||
5802 | if test $U_HAVE_NL_LANGINFO -eq 1; then | |
5803 | echo "$as_me:$LINENO: checking for nl_langinfo's argument to obtain the codeset" >&5 | |
5804 | echo $ECHO_N "checking for nl_langinfo's argument to obtain the codeset... $ECHO_C" >&6 | |
5805 | if test "${ac_cv_nl_langinfo_codeset+set}" = set; then | |
5806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5807 | else | |
5808 | ac_cv_nl_langinfo_codeset="unknown" | |
5809 | for a in CODESET _NL_CTYPE_CODESET_NAME; do | |
5810 | cat >conftest.$ac_ext <<_ACEOF | |
5811 | /* confdefs.h. */ | |
5812 | _ACEOF | |
5813 | cat confdefs.h >>conftest.$ac_ext | |
5814 | cat >>conftest.$ac_ext <<_ACEOF | |
5815 | /* end confdefs.h. */ | |
5816 | #include <langinfo.h> | |
5817 | int | |
5818 | main () | |
5819 | { | |
5820 | nl_langinfo($a); | |
5821 | ; | |
5822 | return 0; | |
5823 | } | |
5824 | _ACEOF | |
5825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5827 | (eval $ac_link) 2>conftest.er1 | |
5828 | ac_status=$? | |
5829 | grep -v '^ *+' conftest.er1 >conftest.err | |
5830 | rm -f conftest.er1 | |
5831 | cat conftest.err >&5 | |
5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5833 | (exit $ac_status); } && | |
5834 | { ac_try='test -z "$ac_c_werror_flag" | |
5835 | || test ! -s conftest.err' | |
5836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5837 | (eval $ac_try) 2>&5 | |
5838 | ac_status=$? | |
5839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5840 | (exit $ac_status); }; } && | |
5841 | { ac_try='test -s conftest$ac_exeext' | |
5842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5843 | (eval $ac_try) 2>&5 | |
5844 | ac_status=$? | |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5846 | (exit $ac_status); }; }; then | |
5847 | ac_cv_nl_langinfo_codeset="$a"; break | |
5848 | else | |
5849 | echo "$as_me: failed program was:" >&5 | |
5850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5851 | ||
5852 | fi | |
5853 | rm -f conftest.err conftest.$ac_objext \ | |
5854 | conftest$ac_exeext conftest.$ac_ext | |
5855 | done | |
5856 | fi | |
5857 | echo "$as_me:$LINENO: result: $ac_cv_nl_langinfo_codeset" >&5 | |
5858 | echo "${ECHO_T}$ac_cv_nl_langinfo_codeset" >&6 | |
5859 | if test x$ac_cv_nl_langinfo_codeset != xunknown | |
5860 | then | |
5861 | U_HAVE_NL_LANGINFO_CODESET=1 | |
5862 | U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset | |
5863 | fi | |
5864 | fi | |
5865 | ||
5866 | ||
5867 | ||
5868 | ac_ext=cc | |
5869 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5873 | ||
5874 | echo "$as_me:$LINENO: checking for namespace support" >&5 | |
5875 | echo $ECHO_N "checking for namespace support... $ECHO_C" >&6 | |
5876 | if test "${ac_cv_namespace_ok+set}" = set; then | |
5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5878 | else | |
5879 | cat >conftest.$ac_ext <<_ACEOF | |
5880 | /* confdefs.h. */ | |
5881 | _ACEOF | |
5882 | cat confdefs.h >>conftest.$ac_ext | |
5883 | cat >>conftest.$ac_ext <<_ACEOF | |
5884 | /* end confdefs.h. */ | |
5885 | namespace x_version {void f(){}} | |
5886 | namespace x = x_version; | |
5887 | using namespace x_version; | |
5888 | ||
5889 | int | |
5890 | main () | |
5891 | { | |
5892 | f(); | |
5893 | ; | |
5894 | return 0; | |
5895 | } | |
5896 | _ACEOF | |
5897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5899 | (eval $ac_link) 2>conftest.er1 | |
5900 | ac_status=$? | |
5901 | grep -v '^ *+' conftest.er1 >conftest.err | |
5902 | rm -f conftest.er1 | |
5903 | cat conftest.err >&5 | |
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5905 | (exit $ac_status); } && | |
5906 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5907 | || test ! -s conftest.err' | |
5908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5909 | (eval $ac_try) 2>&5 | |
5910 | ac_status=$? | |
5911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5912 | (exit $ac_status); }; } && | |
5913 | { ac_try='test -s conftest$ac_exeext' | |
5914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5915 | (eval $ac_try) 2>&5 | |
5916 | ac_status=$? | |
5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5918 | (exit $ac_status); }; }; then | |
5919 | ac_cv_namespace_ok=yes | |
5920 | else | |
5921 | echo "$as_me: failed program was:" >&5 | |
5922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5923 | ||
5924 | ac_cv_namespace_ok=no | |
5925 | fi | |
5926 | rm -f conftest.err conftest.$ac_objext \ | |
5927 | conftest$ac_exeext conftest.$ac_ext | |
5928 | fi | |
5929 | ||
5930 | echo "$as_me:$LINENO: result: $ac_cv_namespace_ok" >&5 | |
5931 | echo "${ECHO_T}$ac_cv_namespace_ok" >&6 | |
5932 | U_HAVE_NAMESPACE=1 | |
5933 | if test $ac_cv_namespace_ok = no | |
5934 | then | |
5935 | U_HAVE_NAMESPACE=0 | |
5936 | fi | |
5937 | ||
5938 | ||
5939 | echo "$as_me:$LINENO: checking for properly overriding new and delete" >&5 | |
5940 | echo $ECHO_N "checking for properly overriding new and delete... $ECHO_C" >&6 | |
5941 | U_OVERRIDE_CXX_ALLOCATION=0 | |
5942 | U_HAVE_PLACEMENT_NEW=0 | |
5943 | if test "${ac_cv_override_cxx_allocation_ok+set}" = set; then | |
5944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5945 | else | |
5946 | cat >conftest.$ac_ext <<_ACEOF | |
5947 | /* confdefs.h. */ | |
5948 | _ACEOF | |
5949 | cat confdefs.h >>conftest.$ac_ext | |
5950 | cat >>conftest.$ac_ext <<_ACEOF | |
5951 | /* end confdefs.h. */ | |
5952 | #include <stdlib.h> | |
5953 | class UMemory { | |
5954 | public: | |
5955 | void *operator new(size_t size) {return malloc(size);} | |
5956 | void *operator new[](size_t size) {return malloc(size);} | |
5957 | void operator delete(void *p) {free(p);} | |
5958 | void operator delete[](void *p) {free(p);} | |
5959 | }; | |
5960 | ||
5961 | int | |
5962 | main () | |
5963 | { | |
5964 | ||
5965 | ; | |
5966 | return 0; | |
5967 | } | |
5968 | _ACEOF | |
5969 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5971 | (eval $ac_link) 2>conftest.er1 | |
5972 | ac_status=$? | |
5973 | grep -v '^ *+' conftest.er1 >conftest.err | |
5974 | rm -f conftest.er1 | |
5975 | cat conftest.err >&5 | |
5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5977 | (exit $ac_status); } && | |
5978 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5979 | || test ! -s conftest.err' | |
5980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5981 | (eval $ac_try) 2>&5 | |
5982 | ac_status=$? | |
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5984 | (exit $ac_status); }; } && | |
5985 | { ac_try='test -s conftest$ac_exeext' | |
5986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5987 | (eval $ac_try) 2>&5 | |
5988 | ac_status=$? | |
5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5990 | (exit $ac_status); }; }; then | |
5991 | ac_cv_override_cxx_allocation_ok=yes | |
5992 | else | |
5993 | echo "$as_me: failed program was:" >&5 | |
5994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5995 | ||
5996 | ac_cv_override_cxx_allocation_ok=no | |
5997 | fi | |
5998 | rm -f conftest.err conftest.$ac_objext \ | |
5999 | conftest$ac_exeext conftest.$ac_ext | |
6000 | fi | |
6001 | ||
6002 | echo "$as_me:$LINENO: result: $ac_cv_override_cxx_allocation_ok" >&5 | |
6003 | echo "${ECHO_T}$ac_cv_override_cxx_allocation_ok" >&6 | |
6004 | if test $ac_cv_override_cxx_allocation_ok = yes | |
6005 | then | |
6006 | U_OVERRIDE_CXX_ALLOCATION=1 | |
6007 | echo "$as_me:$LINENO: checking for placement new and delete" >&5 | |
6008 | echo $ECHO_N "checking for placement new and delete... $ECHO_C" >&6 | |
6009 | if test "${ac_cv_override_placement_new_ok+set}" = set; then | |
6010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6011 | else | |
6012 | cat >conftest.$ac_ext <<_ACEOF | |
6013 | /* confdefs.h. */ | |
6014 | _ACEOF | |
6015 | cat confdefs.h >>conftest.$ac_ext | |
6016 | cat >>conftest.$ac_ext <<_ACEOF | |
6017 | /* end confdefs.h. */ | |
6018 | #include <stdlib.h> | |
6019 | class UMemory { | |
6020 | public: | |
6021 | void *operator new(size_t size) {return malloc(size);} | |
6022 | void *operator new[](size_t size) {return malloc(size);} | |
6023 | void operator delete(void *p) {free(p);} | |
6024 | void operator delete[](void *p) {free(p);} | |
6025 | void * operator new(size_t, void *ptr) { return ptr; } | |
6026 | void operator delete(void *, void *) {} | |
6027 | }; | |
6028 | ||
6029 | int | |
6030 | main () | |
6031 | { | |
6032 | ||
6033 | ; | |
6034 | return 0; | |
6035 | } | |
6036 | _ACEOF | |
6037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6039 | (eval $ac_link) 2>conftest.er1 | |
6040 | ac_status=$? | |
6041 | grep -v '^ *+' conftest.er1 >conftest.err | |
6042 | rm -f conftest.er1 | |
6043 | cat conftest.err >&5 | |
6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6045 | (exit $ac_status); } && | |
6046 | { ac_try='test -z "$ac_cxx_werror_flag" | |
6047 | || test ! -s conftest.err' | |
6048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6049 | (eval $ac_try) 2>&5 | |
6050 | ac_status=$? | |
6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6052 | (exit $ac_status); }; } && | |
6053 | { ac_try='test -s conftest$ac_exeext' | |
6054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6055 | (eval $ac_try) 2>&5 | |
6056 | ac_status=$? | |
6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6058 | (exit $ac_status); }; }; then | |
6059 | ac_cv_override_placement_new_ok=yes | |
6060 | else | |
6061 | echo "$as_me: failed program was:" >&5 | |
6062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6063 | ||
6064 | ac_cv_override_placement_new_ok=no | |
6065 | fi | |
6066 | rm -f conftest.err conftest.$ac_objext \ | |
6067 | conftest$ac_exeext conftest.$ac_ext | |
6068 | fi | |
6069 | ||
6070 | echo "$as_me:$LINENO: result: $ac_cv_override_placement_new_ok" >&5 | |
6071 | echo "${ECHO_T}$ac_cv_override_placement_new_ok" >&6 | |
6072 | if test $ac_cv_override_placement_new_ok = yes | |
6073 | then | |
6074 | U_HAVE_PLACEMENT_NEW=1 | |
6075 | fi | |
6076 | fi | |
6077 | ||
6078 | ||
6079 | ||
6080 | ac_ext=c | |
6081 | ac_cpp='$CPP $CPPFLAGS' | |
6082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6085 | ||
6086 | echo "$as_me:$LINENO: checking for popen" >&5 | |
6087 | echo $ECHO_N "checking for popen... $ECHO_C" >&6 | |
6088 | if test "${ac_cv_func_popen+set}" = set; then | |
6089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6090 | else | |
6091 | cat >conftest.$ac_ext <<_ACEOF | |
6092 | /* confdefs.h. */ | |
6093 | _ACEOF | |
6094 | cat confdefs.h >>conftest.$ac_ext | |
6095 | cat >>conftest.$ac_ext <<_ACEOF | |
6096 | /* end confdefs.h. */ | |
6097 | /* Define popen to an innocuous variant, in case <limits.h> declares popen. | |
6098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6099 | #define popen innocuous_popen | |
6100 | ||
6101 | /* System header to define __stub macros and hopefully few prototypes, | |
6102 | which can conflict with char popen (); below. | |
6103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6104 | <limits.h> exists even on freestanding compilers. */ | |
6105 | ||
6106 | #ifdef __STDC__ | |
6107 | # include <limits.h> | |
6108 | #else | |
6109 | # include <assert.h> | |
6110 | #endif | |
6111 | ||
6112 | #undef popen | |
6113 | ||
6114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6115 | #ifdef __cplusplus | |
6116 | extern "C" | |
6117 | { | |
6118 | #endif | |
6119 | /* We use char because int might match the return type of a gcc2 | |
6120 | builtin and then its argument prototype would still apply. */ | |
6121 | char popen (); | |
6122 | /* The GNU C library defines this for functions which it implements | |
6123 | to always fail with ENOSYS. Some functions are actually named | |
6124 | something starting with __ and the normal name is an alias. */ | |
6125 | #if defined (__stub_popen) || defined (__stub___popen) | |
6126 | choke me | |
6127 | #else | |
6128 | char (*f) () = popen; | |
6129 | #endif | |
6130 | #ifdef __cplusplus | |
6131 | } | |
6132 | #endif | |
6133 | ||
6134 | int | |
6135 | main () | |
6136 | { | |
6137 | return f != popen; | |
6138 | ; | |
6139 | return 0; | |
6140 | } | |
6141 | _ACEOF | |
6142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6144 | (eval $ac_link) 2>conftest.er1 | |
6145 | ac_status=$? | |
6146 | grep -v '^ *+' conftest.er1 >conftest.err | |
6147 | rm -f conftest.er1 | |
6148 | cat conftest.err >&5 | |
6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6150 | (exit $ac_status); } && | |
6151 | { ac_try='test -z "$ac_c_werror_flag" | |
6152 | || test ! -s conftest.err' | |
6153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6154 | (eval $ac_try) 2>&5 | |
6155 | ac_status=$? | |
6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6157 | (exit $ac_status); }; } && | |
6158 | { ac_try='test -s conftest$ac_exeext' | |
6159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6160 | (eval $ac_try) 2>&5 | |
6161 | ac_status=$? | |
6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6163 | (exit $ac_status); }; }; then | |
6164 | ac_cv_func_popen=yes | |
6165 | else | |
6166 | echo "$as_me: failed program was:" >&5 | |
6167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6168 | ||
6169 | ac_cv_func_popen=no | |
6170 | fi | |
6171 | rm -f conftest.err conftest.$ac_objext \ | |
6172 | conftest$ac_exeext conftest.$ac_ext | |
6173 | fi | |
6174 | echo "$as_me:$LINENO: result: $ac_cv_func_popen" >&5 | |
6175 | echo "${ECHO_T}$ac_cv_func_popen" >&6 | |
6176 | ||
6177 | if test x$ac_cv_func_popen = xyes | |
6178 | then | |
6179 | U_HAVE_POPEN=1 | |
6180 | else | |
6181 | U_HAVE_POPEN=0 | |
6182 | fi | |
6183 | ||
6184 | ||
6185 | echo "$as_me:$LINENO: checking for tzset" >&5 | |
6186 | echo $ECHO_N "checking for tzset... $ECHO_C" >&6 | |
6187 | if test "${ac_cv_func_tzset+set}" = set; then | |
6188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6189 | else | |
6190 | cat >conftest.$ac_ext <<_ACEOF | |
6191 | /* confdefs.h. */ | |
6192 | _ACEOF | |
6193 | cat confdefs.h >>conftest.$ac_ext | |
6194 | cat >>conftest.$ac_ext <<_ACEOF | |
6195 | /* end confdefs.h. */ | |
6196 | /* Define tzset to an innocuous variant, in case <limits.h> declares tzset. | |
6197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6198 | #define tzset innocuous_tzset | |
6199 | ||
6200 | /* System header to define __stub macros and hopefully few prototypes, | |
6201 | which can conflict with char tzset (); below. | |
6202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6203 | <limits.h> exists even on freestanding compilers. */ | |
6204 | ||
6205 | #ifdef __STDC__ | |
6206 | # include <limits.h> | |
6207 | #else | |
6208 | # include <assert.h> | |
6209 | #endif | |
6210 | ||
6211 | #undef tzset | |
6212 | ||
6213 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6214 | #ifdef __cplusplus | |
6215 | extern "C" | |
6216 | { | |
6217 | #endif | |
6218 | /* We use char because int might match the return type of a gcc2 | |
6219 | builtin and then its argument prototype would still apply. */ | |
6220 | char tzset (); | |
6221 | /* The GNU C library defines this for functions which it implements | |
6222 | to always fail with ENOSYS. Some functions are actually named | |
6223 | something starting with __ and the normal name is an alias. */ | |
6224 | #if defined (__stub_tzset) || defined (__stub___tzset) | |
6225 | choke me | |
6226 | #else | |
6227 | char (*f) () = tzset; | |
6228 | #endif | |
6229 | #ifdef __cplusplus | |
6230 | } | |
6231 | #endif | |
6232 | ||
6233 | int | |
6234 | main () | |
6235 | { | |
6236 | return f != tzset; | |
6237 | ; | |
6238 | return 0; | |
6239 | } | |
6240 | _ACEOF | |
6241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6243 | (eval $ac_link) 2>conftest.er1 | |
6244 | ac_status=$? | |
6245 | grep -v '^ *+' conftest.er1 >conftest.err | |
6246 | rm -f conftest.er1 | |
6247 | cat conftest.err >&5 | |
6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6249 | (exit $ac_status); } && | |
6250 | { ac_try='test -z "$ac_c_werror_flag" | |
6251 | || test ! -s conftest.err' | |
6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6253 | (eval $ac_try) 2>&5 | |
6254 | ac_status=$? | |
6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6256 | (exit $ac_status); }; } && | |
6257 | { ac_try='test -s conftest$ac_exeext' | |
6258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6259 | (eval $ac_try) 2>&5 | |
6260 | ac_status=$? | |
6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6262 | (exit $ac_status); }; }; then | |
6263 | ac_cv_func_tzset=yes | |
6264 | else | |
6265 | echo "$as_me: failed program was:" >&5 | |
6266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6267 | ||
6268 | ac_cv_func_tzset=no | |
6269 | fi | |
6270 | rm -f conftest.err conftest.$ac_objext \ | |
6271 | conftest$ac_exeext conftest.$ac_ext | |
6272 | fi | |
6273 | echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5 | |
6274 | echo "${ECHO_T}$ac_cv_func_tzset" >&6 | |
6275 | ||
6276 | U_HAVE_TZSET=0 | |
6277 | if test x$ac_cv_func_tzset = xyes | |
6278 | then | |
6279 | U_TZSET=tzset | |
6280 | U_HAVE_TZSET=1 | |
6281 | else | |
6282 | echo "$as_me:$LINENO: checking for _tzset" >&5 | |
6283 | echo $ECHO_N "checking for _tzset... $ECHO_C" >&6 | |
6284 | if test "${ac_cv_func__tzset+set}" = set; then | |
6285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6286 | else | |
6287 | cat >conftest.$ac_ext <<_ACEOF | |
6288 | /* confdefs.h. */ | |
6289 | _ACEOF | |
6290 | cat confdefs.h >>conftest.$ac_ext | |
6291 | cat >>conftest.$ac_ext <<_ACEOF | |
6292 | /* end confdefs.h. */ | |
6293 | /* Define _tzset to an innocuous variant, in case <limits.h> declares _tzset. | |
6294 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6295 | #define _tzset innocuous__tzset | |
6296 | ||
6297 | /* System header to define __stub macros and hopefully few prototypes, | |
6298 | which can conflict with char _tzset (); below. | |
6299 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6300 | <limits.h> exists even on freestanding compilers. */ | |
6301 | ||
6302 | #ifdef __STDC__ | |
6303 | # include <limits.h> | |
6304 | #else | |
6305 | # include <assert.h> | |
6306 | #endif | |
6307 | ||
6308 | #undef _tzset | |
6309 | ||
6310 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6311 | #ifdef __cplusplus | |
6312 | extern "C" | |
6313 | { | |
6314 | #endif | |
6315 | /* We use char because int might match the return type of a gcc2 | |
6316 | builtin and then its argument prototype would still apply. */ | |
6317 | char _tzset (); | |
6318 | /* The GNU C library defines this for functions which it implements | |
6319 | to always fail with ENOSYS. Some functions are actually named | |
6320 | something starting with __ and the normal name is an alias. */ | |
6321 | #if defined (__stub__tzset) || defined (__stub____tzset) | |
6322 | choke me | |
6323 | #else | |
6324 | char (*f) () = _tzset; | |
6325 | #endif | |
6326 | #ifdef __cplusplus | |
6327 | } | |
6328 | #endif | |
6329 | ||
6330 | int | |
6331 | main () | |
6332 | { | |
6333 | return f != _tzset; | |
6334 | ; | |
6335 | return 0; | |
6336 | } | |
6337 | _ACEOF | |
6338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6340 | (eval $ac_link) 2>conftest.er1 | |
6341 | ac_status=$? | |
6342 | grep -v '^ *+' conftest.er1 >conftest.err | |
6343 | rm -f conftest.er1 | |
6344 | cat conftest.err >&5 | |
6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6346 | (exit $ac_status); } && | |
6347 | { ac_try='test -z "$ac_c_werror_flag" | |
6348 | || test ! -s conftest.err' | |
6349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6350 | (eval $ac_try) 2>&5 | |
6351 | ac_status=$? | |
6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6353 | (exit $ac_status); }; } && | |
6354 | { ac_try='test -s conftest$ac_exeext' | |
6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6356 | (eval $ac_try) 2>&5 | |
6357 | ac_status=$? | |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6359 | (exit $ac_status); }; }; then | |
6360 | ac_cv_func__tzset=yes | |
6361 | else | |
6362 | echo "$as_me: failed program was:" >&5 | |
6363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6364 | ||
6365 | ac_cv_func__tzset=no | |
6366 | fi | |
6367 | rm -f conftest.err conftest.$ac_objext \ | |
6368 | conftest$ac_exeext conftest.$ac_ext | |
6369 | fi | |
6370 | echo "$as_me:$LINENO: result: $ac_cv_func__tzset" >&5 | |
6371 | echo "${ECHO_T}$ac_cv_func__tzset" >&6 | |
6372 | ||
6373 | if test x$ac_cv_func__tzset = xyes | |
6374 | then | |
6375 | U_TZSET=_tzset | |
6376 | U_HAVE_TZSET=1 | |
6377 | fi | |
6378 | fi | |
6379 | ||
6380 | ||
6381 | ||
6382 | U_HAVE_TZNAME=0 | |
6383 | echo "$as_me:$LINENO: checking for tzname" >&5 | |
6384 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
6385 | if test "${ac_cv_var_tzname+set}" = set; then | |
6386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6387 | else | |
6388 | cat >conftest.$ac_ext <<_ACEOF | |
6389 | /* confdefs.h. */ | |
6390 | _ACEOF | |
6391 | cat confdefs.h >>conftest.$ac_ext | |
6392 | cat >>conftest.$ac_ext <<_ACEOF | |
6393 | /* end confdefs.h. */ | |
6394 | #ifndef __USE_POSIX | |
6395 | #define __USE_POSIX | |
6396 | #endif | |
6397 | #include <stdlib.h> | |
6398 | #include <time.h> | |
6399 | #ifndef tzname /* For SGI. */ | |
6400 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6401 | #endif | |
6402 | int | |
6403 | main () | |
6404 | { | |
6405 | atoi(*tzname); | |
6406 | ; | |
6407 | return 0; | |
6408 | } | |
6409 | _ACEOF | |
6410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6412 | (eval $ac_link) 2>conftest.er1 | |
6413 | ac_status=$? | |
6414 | grep -v '^ *+' conftest.er1 >conftest.err | |
6415 | rm -f conftest.er1 | |
6416 | cat conftest.err >&5 | |
6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6418 | (exit $ac_status); } && | |
6419 | { ac_try='test -z "$ac_c_werror_flag" | |
6420 | || test ! -s conftest.err' | |
6421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6422 | (eval $ac_try) 2>&5 | |
6423 | ac_status=$? | |
6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6425 | (exit $ac_status); }; } && | |
6426 | { ac_try='test -s conftest$ac_exeext' | |
6427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6428 | (eval $ac_try) 2>&5 | |
6429 | ac_status=$? | |
6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6431 | (exit $ac_status); }; }; then | |
6432 | ac_cv_var_tzname=yes | |
6433 | else | |
6434 | echo "$as_me: failed program was:" >&5 | |
6435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6436 | ||
6437 | ac_cv_var_tzname=no | |
6438 | fi | |
6439 | rm -f conftest.err conftest.$ac_objext \ | |
6440 | conftest$ac_exeext conftest.$ac_ext | |
6441 | fi | |
6442 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
6443 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
6444 | if test $ac_cv_var_tzname = yes; then | |
6445 | U_TZNAME=tzname | |
6446 | U_HAVE_TZNAME=1 | |
6447 | else | |
6448 | echo "$as_me:$LINENO: checking for _tzname" >&5 | |
6449 | echo $ECHO_N "checking for _tzname... $ECHO_C" >&6 | |
6450 | if test "${ac_cv_var__tzname+set}" = set; then | |
6451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6452 | else | |
6453 | cat >conftest.$ac_ext <<_ACEOF | |
6454 | /* confdefs.h. */ | |
6455 | _ACEOF | |
6456 | cat confdefs.h >>conftest.$ac_ext | |
6457 | cat >>conftest.$ac_ext <<_ACEOF | |
6458 | /* end confdefs.h. */ | |
6459 | #include <stdlib.h> | |
6460 | #include <time.h> | |
6461 | extern char *_tzname[]; | |
6462 | ||
6463 | int | |
6464 | main () | |
6465 | { | |
6466 | atoi(*_tzname); | |
6467 | ; | |
6468 | return 0; | |
6469 | } | |
6470 | _ACEOF | |
6471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6473 | (eval $ac_link) 2>conftest.er1 | |
6474 | ac_status=$? | |
6475 | grep -v '^ *+' conftest.er1 >conftest.err | |
6476 | rm -f conftest.er1 | |
6477 | cat conftest.err >&5 | |
6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6479 | (exit $ac_status); } && | |
6480 | { ac_try='test -z "$ac_c_werror_flag" | |
6481 | || test ! -s conftest.err' | |
6482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6483 | (eval $ac_try) 2>&5 | |
6484 | ac_status=$? | |
6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6486 | (exit $ac_status); }; } && | |
6487 | { ac_try='test -s conftest$ac_exeext' | |
6488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6489 | (eval $ac_try) 2>&5 | |
6490 | ac_status=$? | |
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6492 | (exit $ac_status); }; }; then | |
6493 | ac_cv_var__tzname=yes | |
6494 | else | |
6495 | echo "$as_me: failed program was:" >&5 | |
6496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6497 | ||
6498 | ac_cv_var__tzname=no | |
6499 | fi | |
6500 | rm -f conftest.err conftest.$ac_objext \ | |
6501 | conftest$ac_exeext conftest.$ac_ext | |
6502 | fi | |
6503 | echo "$as_me:$LINENO: result: $ac_cv_var__tzname" >&5 | |
6504 | echo "${ECHO_T}$ac_cv_var__tzname" >&6 | |
6505 | if test $ac_cv_var__tzname = yes; then | |
6506 | U_TZNAME=_tzname | |
6507 | U_HAVE_TZNAME=1 | |
6508 | fi | |
6509 | fi | |
6510 | ||
6511 | ||
6512 | ||
6513 | echo "$as_me:$LINENO: checking for timezone" >&5 | |
6514 | echo $ECHO_N "checking for timezone... $ECHO_C" >&6 | |
6515 | if test "${ac_cv_var_timezone+set}" = set; then | |
6516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6517 | else | |
6518 | cat >conftest.$ac_ext <<_ACEOF | |
6519 | /* confdefs.h. */ | |
6520 | _ACEOF | |
6521 | cat confdefs.h >>conftest.$ac_ext | |
6522 | cat >>conftest.$ac_ext <<_ACEOF | |
6523 | /* end confdefs.h. */ | |
6524 | #ifndef __USE_POSIX | |
6525 | #define __USE_POSIX | |
6526 | #endif | |
6527 | #ifndef __USE_XOPEN | |
6528 | #define __USE_XOPEN | |
6529 | #endif | |
6530 | #include <time.h> | |
6531 | ||
6532 | int | |
6533 | main () | |
6534 | { | |
6535 | timezone = 1; | |
6536 | ; | |
6537 | return 0; | |
6538 | } | |
6539 | _ACEOF | |
6540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6542 | (eval $ac_link) 2>conftest.er1 | |
6543 | ac_status=$? | |
6544 | grep -v '^ *+' conftest.er1 >conftest.err | |
6545 | rm -f conftest.er1 | |
6546 | cat conftest.err >&5 | |
6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6548 | (exit $ac_status); } && | |
6549 | { ac_try='test -z "$ac_c_werror_flag" | |
6550 | || test ! -s conftest.err' | |
6551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6552 | (eval $ac_try) 2>&5 | |
6553 | ac_status=$? | |
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6555 | (exit $ac_status); }; } && | |
6556 | { ac_try='test -s conftest$ac_exeext' | |
6557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6558 | (eval $ac_try) 2>&5 | |
6559 | ac_status=$? | |
6560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6561 | (exit $ac_status); }; }; then | |
6562 | ac_cv_var_timezone=yes | |
6563 | else | |
6564 | echo "$as_me: failed program was:" >&5 | |
6565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6566 | ||
6567 | ac_cv_var_timezone=no | |
6568 | fi | |
6569 | rm -f conftest.err conftest.$ac_objext \ | |
6570 | conftest$ac_exeext conftest.$ac_ext | |
6571 | fi | |
6572 | echo "$as_me:$LINENO: result: $ac_cv_var_timezone" >&5 | |
6573 | echo "${ECHO_T}$ac_cv_var_timezone" >&6 | |
6574 | U_HAVE_TIMEZONE=0 | |
6575 | if test $ac_cv_var_timezone = yes; then | |
6576 | U_TIMEZONE=timezone | |
6577 | U_HAVE_TIMEZONE=1 | |
6578 | else | |
6579 | echo "$as_me:$LINENO: checking for __timezone" >&5 | |
6580 | echo $ECHO_N "checking for __timezone... $ECHO_C" >&6 | |
6581 | if test "${ac_cv_var___timezone+set}" = set; then | |
6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6583 | else | |
6584 | cat >conftest.$ac_ext <<_ACEOF | |
6585 | /* confdefs.h. */ | |
6586 | _ACEOF | |
6587 | cat confdefs.h >>conftest.$ac_ext | |
6588 | cat >>conftest.$ac_ext <<_ACEOF | |
6589 | /* end confdefs.h. */ | |
6590 | #include <time.h> | |
6591 | int | |
6592 | main () | |
6593 | { | |
6594 | __timezone = 1; | |
6595 | ; | |
6596 | return 0; | |
6597 | } | |
6598 | _ACEOF | |
6599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6601 | (eval $ac_link) 2>conftest.er1 | |
6602 | ac_status=$? | |
6603 | grep -v '^ *+' conftest.er1 >conftest.err | |
6604 | rm -f conftest.er1 | |
6605 | cat conftest.err >&5 | |
6606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6607 | (exit $ac_status); } && | |
6608 | { ac_try='test -z "$ac_c_werror_flag" | |
6609 | || test ! -s conftest.err' | |
6610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6611 | (eval $ac_try) 2>&5 | |
6612 | ac_status=$? | |
6613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6614 | (exit $ac_status); }; } && | |
6615 | { ac_try='test -s conftest$ac_exeext' | |
6616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6617 | (eval $ac_try) 2>&5 | |
6618 | ac_status=$? | |
6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6620 | (exit $ac_status); }; }; then | |
6621 | ac_cv_var___timezone=yes | |
6622 | else | |
6623 | echo "$as_me: failed program was:" >&5 | |
6624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6625 | ||
6626 | ac_cv_var___timezone=no | |
6627 | fi | |
6628 | rm -f conftest.err conftest.$ac_objext \ | |
6629 | conftest$ac_exeext conftest.$ac_ext | |
6630 | fi | |
6631 | echo "$as_me:$LINENO: result: $ac_cv_var___timezone" >&5 | |
6632 | echo "${ECHO_T}$ac_cv_var___timezone" >&6 | |
6633 | if test $ac_cv_var___timezone = yes; then | |
6634 | U_TIMEZONE=__timezone | |
6635 | U_HAVE_TIMEZONE=1 | |
6636 | else | |
6637 | echo "$as_me:$LINENO: checking for _timezone" >&5 | |
6638 | echo $ECHO_N "checking for _timezone... $ECHO_C" >&6 | |
6639 | if test "${ac_cv_var__timezone+set}" = set; then | |
6640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6641 | else | |
6642 | cat >conftest.$ac_ext <<_ACEOF | |
6643 | /* confdefs.h. */ | |
6644 | _ACEOF | |
6645 | cat confdefs.h >>conftest.$ac_ext | |
6646 | cat >>conftest.$ac_ext <<_ACEOF | |
6647 | /* end confdefs.h. */ | |
6648 | #include <time.h> | |
6649 | int | |
6650 | main () | |
6651 | { | |
6652 | _timezone = 1; | |
6653 | ; | |
6654 | return 0; | |
6655 | } | |
6656 | _ACEOF | |
6657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6659 | (eval $ac_link) 2>conftest.er1 | |
6660 | ac_status=$? | |
6661 | grep -v '^ *+' conftest.er1 >conftest.err | |
6662 | rm -f conftest.er1 | |
6663 | cat conftest.err >&5 | |
6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6665 | (exit $ac_status); } && | |
6666 | { ac_try='test -z "$ac_c_werror_flag" | |
6667 | || test ! -s conftest.err' | |
6668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6669 | (eval $ac_try) 2>&5 | |
6670 | ac_status=$? | |
6671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6672 | (exit $ac_status); }; } && | |
6673 | { ac_try='test -s conftest$ac_exeext' | |
6674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6675 | (eval $ac_try) 2>&5 | |
6676 | ac_status=$? | |
6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6678 | (exit $ac_status); }; }; then | |
6679 | ac_cv_var__timezone=yes | |
6680 | else | |
6681 | echo "$as_me: failed program was:" >&5 | |
6682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6683 | ||
6684 | ac_cv_var__timezone=no | |
6685 | fi | |
6686 | rm -f conftest.err conftest.$ac_objext \ | |
6687 | conftest$ac_exeext conftest.$ac_ext | |
6688 | fi | |
6689 | echo "$as_me:$LINENO: result: $ac_cv_var__timezone" >&5 | |
6690 | echo "${ECHO_T}$ac_cv_var__timezone" >&6 | |
6691 | if test $ac_cv_var__timezone = yes; then | |
6692 | U_TIMEZONE=_timezone | |
6693 | U_HAVE_TIMEZONE=1 | |
6694 | fi | |
6695 | fi | |
6696 | fi | |
6697 | ||
6698 | ||
6699 | ||
6700 | echo "$as_me:$LINENO: checking for int8_t" >&5 | |
6701 | echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 | |
6702 | if test "${ac_cv_type_int8_t+set}" = set; then | |
6703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6704 | else | |
6705 | cat >conftest.$ac_ext <<_ACEOF | |
6706 | /* confdefs.h. */ | |
6707 | _ACEOF | |
6708 | cat confdefs.h >>conftest.$ac_ext | |
6709 | cat >>conftest.$ac_ext <<_ACEOF | |
6710 | /* end confdefs.h. */ | |
6711 | $ac_includes_default | |
6712 | int | |
6713 | main () | |
6714 | { | |
6715 | if ((int8_t *) 0) | |
6716 | return 0; | |
6717 | if (sizeof (int8_t)) | |
6718 | return 0; | |
6719 | ; | |
6720 | return 0; | |
6721 | } | |
6722 | _ACEOF | |
6723 | rm -f conftest.$ac_objext | |
6724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6725 | (eval $ac_compile) 2>conftest.er1 | |
6726 | ac_status=$? | |
6727 | grep -v '^ *+' conftest.er1 >conftest.err | |
6728 | rm -f conftest.er1 | |
6729 | cat conftest.err >&5 | |
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6731 | (exit $ac_status); } && | |
6732 | { ac_try='test -z "$ac_c_werror_flag" | |
6733 | || test ! -s conftest.err' | |
6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6735 | (eval $ac_try) 2>&5 | |
6736 | ac_status=$? | |
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6738 | (exit $ac_status); }; } && | |
6739 | { ac_try='test -s conftest.$ac_objext' | |
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6741 | (eval $ac_try) 2>&5 | |
6742 | ac_status=$? | |
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6744 | (exit $ac_status); }; }; then | |
6745 | ac_cv_type_int8_t=yes | |
6746 | else | |
6747 | echo "$as_me: failed program was:" >&5 | |
6748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6749 | ||
6750 | ac_cv_type_int8_t=no | |
6751 | fi | |
6752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6753 | fi | |
6754 | echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 | |
6755 | echo "${ECHO_T}$ac_cv_type_int8_t" >&6 | |
6756 | if test $ac_cv_type_int8_t = yes; then | |
6757 | : | |
6758 | else | |
6759 | ||
6760 | cat >>confdefs.h <<_ACEOF | |
6761 | #define int8_t signed char | |
6762 | _ACEOF | |
6763 | ||
6764 | fi | |
6765 | ||
6766 | echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
6767 | echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 | |
6768 | if test "${ac_cv_type_uint8_t+set}" = set; then | |
6769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6770 | else | |
6771 | cat >conftest.$ac_ext <<_ACEOF | |
6772 | /* confdefs.h. */ | |
6773 | _ACEOF | |
6774 | cat confdefs.h >>conftest.$ac_ext | |
6775 | cat >>conftest.$ac_ext <<_ACEOF | |
6776 | /* end confdefs.h. */ | |
6777 | $ac_includes_default | |
6778 | int | |
6779 | main () | |
6780 | { | |
6781 | if ((uint8_t *) 0) | |
6782 | return 0; | |
6783 | if (sizeof (uint8_t)) | |
6784 | return 0; | |
6785 | ; | |
6786 | return 0; | |
6787 | } | |
6788 | _ACEOF | |
6789 | rm -f conftest.$ac_objext | |
6790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6791 | (eval $ac_compile) 2>conftest.er1 | |
6792 | ac_status=$? | |
6793 | grep -v '^ *+' conftest.er1 >conftest.err | |
6794 | rm -f conftest.er1 | |
6795 | cat conftest.err >&5 | |
6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6797 | (exit $ac_status); } && | |
6798 | { ac_try='test -z "$ac_c_werror_flag" | |
6799 | || test ! -s conftest.err' | |
6800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6801 | (eval $ac_try) 2>&5 | |
6802 | ac_status=$? | |
6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6804 | (exit $ac_status); }; } && | |
6805 | { ac_try='test -s conftest.$ac_objext' | |
6806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6807 | (eval $ac_try) 2>&5 | |
6808 | ac_status=$? | |
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6810 | (exit $ac_status); }; }; then | |
6811 | ac_cv_type_uint8_t=yes | |
6812 | else | |
6813 | echo "$as_me: failed program was:" >&5 | |
6814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6815 | ||
6816 | ac_cv_type_uint8_t=no | |
6817 | fi | |
6818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6819 | fi | |
6820 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 | |
6821 | echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 | |
6822 | if test $ac_cv_type_uint8_t = yes; then | |
6823 | : | |
6824 | else | |
6825 | ||
6826 | cat >>confdefs.h <<_ACEOF | |
6827 | #define uint8_t unsigned char | |
6828 | _ACEOF | |
6829 | ||
6830 | fi | |
6831 | ||
6832 | echo "$as_me:$LINENO: checking for int16_t" >&5 | |
6833 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 | |
6834 | if test "${ac_cv_type_int16_t+set}" = set; then | |
6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6836 | else | |
6837 | cat >conftest.$ac_ext <<_ACEOF | |
6838 | /* confdefs.h. */ | |
6839 | _ACEOF | |
6840 | cat confdefs.h >>conftest.$ac_ext | |
6841 | cat >>conftest.$ac_ext <<_ACEOF | |
6842 | /* end confdefs.h. */ | |
6843 | $ac_includes_default | |
6844 | int | |
6845 | main () | |
6846 | { | |
6847 | if ((int16_t *) 0) | |
6848 | return 0; | |
6849 | if (sizeof (int16_t)) | |
6850 | return 0; | |
6851 | ; | |
6852 | return 0; | |
6853 | } | |
6854 | _ACEOF | |
6855 | rm -f conftest.$ac_objext | |
6856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6857 | (eval $ac_compile) 2>conftest.er1 | |
6858 | ac_status=$? | |
6859 | grep -v '^ *+' conftest.er1 >conftest.err | |
6860 | rm -f conftest.er1 | |
6861 | cat conftest.err >&5 | |
6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6863 | (exit $ac_status); } && | |
6864 | { ac_try='test -z "$ac_c_werror_flag" | |
6865 | || test ! -s conftest.err' | |
6866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6867 | (eval $ac_try) 2>&5 | |
6868 | ac_status=$? | |
6869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6870 | (exit $ac_status); }; } && | |
6871 | { ac_try='test -s conftest.$ac_objext' | |
6872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6873 | (eval $ac_try) 2>&5 | |
6874 | ac_status=$? | |
6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6876 | (exit $ac_status); }; }; then | |
6877 | ac_cv_type_int16_t=yes | |
6878 | else | |
6879 | echo "$as_me: failed program was:" >&5 | |
6880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6881 | ||
6882 | ac_cv_type_int16_t=no | |
6883 | fi | |
6884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6885 | fi | |
6886 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 | |
6887 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 | |
6888 | if test $ac_cv_type_int16_t = yes; then | |
6889 | : | |
6890 | else | |
6891 | ||
6892 | cat >>confdefs.h <<_ACEOF | |
6893 | #define int16_t signed short | |
6894 | _ACEOF | |
6895 | ||
6896 | fi | |
6897 | ||
6898 | echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
6899 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 | |
6900 | if test "${ac_cv_type_uint16_t+set}" = set; then | |
6901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6902 | else | |
6903 | cat >conftest.$ac_ext <<_ACEOF | |
6904 | /* confdefs.h. */ | |
6905 | _ACEOF | |
6906 | cat confdefs.h >>conftest.$ac_ext | |
6907 | cat >>conftest.$ac_ext <<_ACEOF | |
6908 | /* end confdefs.h. */ | |
6909 | $ac_includes_default | |
6910 | int | |
6911 | main () | |
6912 | { | |
6913 | if ((uint16_t *) 0) | |
6914 | return 0; | |
6915 | if (sizeof (uint16_t)) | |
6916 | return 0; | |
6917 | ; | |
6918 | return 0; | |
6919 | } | |
6920 | _ACEOF | |
6921 | rm -f conftest.$ac_objext | |
6922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6923 | (eval $ac_compile) 2>conftest.er1 | |
6924 | ac_status=$? | |
6925 | grep -v '^ *+' conftest.er1 >conftest.err | |
6926 | rm -f conftest.er1 | |
6927 | cat conftest.err >&5 | |
6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6929 | (exit $ac_status); } && | |
6930 | { ac_try='test -z "$ac_c_werror_flag" | |
6931 | || test ! -s conftest.err' | |
6932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6933 | (eval $ac_try) 2>&5 | |
6934 | ac_status=$? | |
6935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6936 | (exit $ac_status); }; } && | |
6937 | { ac_try='test -s conftest.$ac_objext' | |
6938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6939 | (eval $ac_try) 2>&5 | |
6940 | ac_status=$? | |
6941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6942 | (exit $ac_status); }; }; then | |
6943 | ac_cv_type_uint16_t=yes | |
6944 | else | |
6945 | echo "$as_me: failed program was:" >&5 | |
6946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6947 | ||
6948 | ac_cv_type_uint16_t=no | |
6949 | fi | |
6950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6951 | fi | |
6952 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 | |
6953 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 | |
6954 | if test $ac_cv_type_uint16_t = yes; then | |
6955 | : | |
6956 | else | |
6957 | ||
6958 | cat >>confdefs.h <<_ACEOF | |
6959 | #define uint16_t unsigned short | |
6960 | _ACEOF | |
6961 | ||
6962 | fi | |
6963 | ||
6964 | echo "$as_me:$LINENO: checking for int32_t" >&5 | |
6965 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 | |
6966 | if test "${ac_cv_type_int32_t+set}" = set; then | |
6967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6968 | else | |
6969 | cat >conftest.$ac_ext <<_ACEOF | |
6970 | /* confdefs.h. */ | |
6971 | _ACEOF | |
6972 | cat confdefs.h >>conftest.$ac_ext | |
6973 | cat >>conftest.$ac_ext <<_ACEOF | |
6974 | /* end confdefs.h. */ | |
6975 | $ac_includes_default | |
6976 | int | |
6977 | main () | |
6978 | { | |
6979 | if ((int32_t *) 0) | |
6980 | return 0; | |
6981 | if (sizeof (int32_t)) | |
6982 | return 0; | |
6983 | ; | |
6984 | return 0; | |
6985 | } | |
6986 | _ACEOF | |
6987 | rm -f conftest.$ac_objext | |
6988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6989 | (eval $ac_compile) 2>conftest.er1 | |
6990 | ac_status=$? | |
6991 | grep -v '^ *+' conftest.er1 >conftest.err | |
6992 | rm -f conftest.er1 | |
6993 | cat conftest.err >&5 | |
6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6995 | (exit $ac_status); } && | |
6996 | { ac_try='test -z "$ac_c_werror_flag" | |
6997 | || test ! -s conftest.err' | |
6998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6999 | (eval $ac_try) 2>&5 | |
7000 | ac_status=$? | |
7001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7002 | (exit $ac_status); }; } && | |
7003 | { ac_try='test -s conftest.$ac_objext' | |
7004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7005 | (eval $ac_try) 2>&5 | |
7006 | ac_status=$? | |
7007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7008 | (exit $ac_status); }; }; then | |
7009 | ac_cv_type_int32_t=yes | |
7010 | else | |
7011 | echo "$as_me: failed program was:" >&5 | |
7012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7013 | ||
7014 | ac_cv_type_int32_t=no | |
7015 | fi | |
7016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7017 | fi | |
7018 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 | |
7019 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 | |
7020 | if test $ac_cv_type_int32_t = yes; then | |
7021 | : | |
7022 | else | |
7023 | ||
7024 | cat >>confdefs.h <<_ACEOF | |
7025 | #define int32_t signed long | |
7026 | _ACEOF | |
7027 | ||
7028 | fi | |
7029 | ||
7030 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
7031 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
7032 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
7033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7034 | else | |
7035 | cat >conftest.$ac_ext <<_ACEOF | |
7036 | /* confdefs.h. */ | |
7037 | _ACEOF | |
7038 | cat confdefs.h >>conftest.$ac_ext | |
7039 | cat >>conftest.$ac_ext <<_ACEOF | |
7040 | /* end confdefs.h. */ | |
7041 | $ac_includes_default | |
7042 | int | |
7043 | main () | |
7044 | { | |
7045 | if ((uint32_t *) 0) | |
7046 | return 0; | |
7047 | if (sizeof (uint32_t)) | |
7048 | return 0; | |
7049 | ; | |
7050 | return 0; | |
7051 | } | |
7052 | _ACEOF | |
7053 | rm -f conftest.$ac_objext | |
7054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7055 | (eval $ac_compile) 2>conftest.er1 | |
7056 | ac_status=$? | |
7057 | grep -v '^ *+' conftest.er1 >conftest.err | |
7058 | rm -f conftest.er1 | |
7059 | cat conftest.err >&5 | |
7060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7061 | (exit $ac_status); } && | |
7062 | { ac_try='test -z "$ac_c_werror_flag" | |
7063 | || test ! -s conftest.err' | |
7064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7065 | (eval $ac_try) 2>&5 | |
7066 | ac_status=$? | |
7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7068 | (exit $ac_status); }; } && | |
7069 | { ac_try='test -s conftest.$ac_objext' | |
7070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7071 | (eval $ac_try) 2>&5 | |
7072 | ac_status=$? | |
7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7074 | (exit $ac_status); }; }; then | |
7075 | ac_cv_type_uint32_t=yes | |
7076 | else | |
7077 | echo "$as_me: failed program was:" >&5 | |
7078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7079 | ||
7080 | ac_cv_type_uint32_t=no | |
7081 | fi | |
7082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7083 | fi | |
7084 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
7085 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
7086 | if test $ac_cv_type_uint32_t = yes; then | |
7087 | : | |
7088 | else | |
7089 | ||
7090 | cat >>confdefs.h <<_ACEOF | |
7091 | #define uint32_t unsigned long | |
7092 | _ACEOF | |
7093 | ||
7094 | fi | |
7095 | ||
7096 | echo "$as_me:$LINENO: checking for int64_t" >&5 | |
7097 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | |
7098 | if test "${ac_cv_type_int64_t+set}" = set; then | |
7099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7100 | else | |
7101 | cat >conftest.$ac_ext <<_ACEOF | |
7102 | /* confdefs.h. */ | |
7103 | _ACEOF | |
7104 | cat confdefs.h >>conftest.$ac_ext | |
7105 | cat >>conftest.$ac_ext <<_ACEOF | |
7106 | /* end confdefs.h. */ | |
7107 | $ac_includes_default | |
7108 | int | |
7109 | main () | |
7110 | { | |
7111 | if ((int64_t *) 0) | |
7112 | return 0; | |
7113 | if (sizeof (int64_t)) | |
7114 | return 0; | |
7115 | ; | |
7116 | return 0; | |
7117 | } | |
7118 | _ACEOF | |
7119 | rm -f conftest.$ac_objext | |
7120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7121 | (eval $ac_compile) 2>conftest.er1 | |
7122 | ac_status=$? | |
7123 | grep -v '^ *+' conftest.er1 >conftest.err | |
7124 | rm -f conftest.er1 | |
7125 | cat conftest.err >&5 | |
7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7127 | (exit $ac_status); } && | |
7128 | { ac_try='test -z "$ac_c_werror_flag" | |
7129 | || test ! -s conftest.err' | |
7130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7131 | (eval $ac_try) 2>&5 | |
7132 | ac_status=$? | |
7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7134 | (exit $ac_status); }; } && | |
7135 | { ac_try='test -s conftest.$ac_objext' | |
7136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7137 | (eval $ac_try) 2>&5 | |
7138 | ac_status=$? | |
7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7140 | (exit $ac_status); }; }; then | |
7141 | ac_cv_type_int64_t=yes | |
7142 | else | |
7143 | echo "$as_me: failed program was:" >&5 | |
7144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7145 | ||
7146 | ac_cv_type_int64_t=no | |
7147 | fi | |
7148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7149 | fi | |
7150 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | |
7151 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | |
7152 | if test $ac_cv_type_int64_t = yes; then | |
7153 | : | |
7154 | else | |
7155 | ||
7156 | cat >>confdefs.h <<_ACEOF | |
7157 | #define int64_t signed long long | |
7158 | _ACEOF | |
7159 | ||
7160 | fi | |
7161 | ||
7162 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7163 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
7164 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
7165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7166 | else | |
7167 | cat >conftest.$ac_ext <<_ACEOF | |
7168 | /* confdefs.h. */ | |
7169 | _ACEOF | |
7170 | cat confdefs.h >>conftest.$ac_ext | |
7171 | cat >>conftest.$ac_ext <<_ACEOF | |
7172 | /* end confdefs.h. */ | |
7173 | $ac_includes_default | |
7174 | int | |
7175 | main () | |
7176 | { | |
7177 | if ((uint64_t *) 0) | |
7178 | return 0; | |
7179 | if (sizeof (uint64_t)) | |
7180 | return 0; | |
7181 | ; | |
7182 | return 0; | |
7183 | } | |
7184 | _ACEOF | |
7185 | rm -f conftest.$ac_objext | |
7186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7187 | (eval $ac_compile) 2>conftest.er1 | |
7188 | ac_status=$? | |
7189 | grep -v '^ *+' conftest.er1 >conftest.err | |
7190 | rm -f conftest.er1 | |
7191 | cat conftest.err >&5 | |
7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7193 | (exit $ac_status); } && | |
7194 | { ac_try='test -z "$ac_c_werror_flag" | |
7195 | || test ! -s conftest.err' | |
7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7197 | (eval $ac_try) 2>&5 | |
7198 | ac_status=$? | |
7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7200 | (exit $ac_status); }; } && | |
7201 | { ac_try='test -s conftest.$ac_objext' | |
7202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7203 | (eval $ac_try) 2>&5 | |
7204 | ac_status=$? | |
7205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7206 | (exit $ac_status); }; }; then | |
7207 | ac_cv_type_uint64_t=yes | |
7208 | else | |
7209 | echo "$as_me: failed program was:" >&5 | |
7210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7211 | ||
7212 | ac_cv_type_uint64_t=no | |
7213 | fi | |
7214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7215 | fi | |
7216 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
7217 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
7218 | if test $ac_cv_type_uint64_t = yes; then | |
7219 | : | |
7220 | else | |
7221 | ||
7222 | cat >>confdefs.h <<_ACEOF | |
7223 | #define uint64_t unsigned long long | |
7224 | _ACEOF | |
7225 | ||
7226 | fi | |
7227 | ||
7228 | ||
7229 | if test $ac_cv_type_int8_t = no; then | |
7230 | HAVE_INT8_T=0 | |
7231 | else | |
7232 | HAVE_INT8_T=1 | |
7233 | fi | |
7234 | ||
7235 | ||
7236 | if test $ac_cv_type_uint8_t = no; then | |
7237 | HAVE_UINT8_T=0 | |
7238 | else | |
7239 | HAVE_UINT8_T=1 | |
7240 | fi | |
7241 | ||
7242 | ||
7243 | if test $ac_cv_type_int16_t = no; then | |
7244 | HAVE_INT16_T=0 | |
7245 | else | |
7246 | HAVE_INT16_T=1 | |
7247 | fi | |
7248 | ||
7249 | ||
7250 | if test $ac_cv_type_uint16_t = no; then | |
7251 | HAVE_UINT16_T=0 | |
7252 | else | |
7253 | HAVE_UINT16_T=1 | |
7254 | fi | |
7255 | ||
7256 | ||
7257 | if test $ac_cv_type_int32_t = no; then | |
7258 | HAVE_INT32_T=0 | |
7259 | else | |
7260 | HAVE_INT32_T=1 | |
7261 | fi | |
7262 | ||
7263 | ||
7264 | if test $ac_cv_type_uint32_t = no; then | |
7265 | HAVE_UINT32_T=0 | |
7266 | else | |
7267 | HAVE_UINT32_T=1 | |
7268 | fi | |
7269 | ||
7270 | ||
7271 | if test $ac_cv_type_int64_t = no; then | |
7272 | HAVE_INT64_T=0 | |
7273 | else | |
7274 | HAVE_INT64_T=1 | |
7275 | fi | |
7276 | ||
7277 | ||
7278 | if test $ac_cv_type_uint64_t = no; then | |
7279 | HAVE_UINT64_T=0 | |
7280 | else | |
7281 | HAVE_UINT64_T=1 | |
7282 | fi | |
7283 | ||
7284 | ||
7285 | if test "${ac_cv_header_wchar_h+set}" = set; then | |
7286 | echo "$as_me:$LINENO: checking for wchar.h" >&5 | |
7287 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 | |
7288 | if test "${ac_cv_header_wchar_h+set}" = set; then | |
7289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7290 | fi | |
7291 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 | |
7292 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 | |
7293 | else | |
7294 | # Is the header compilable? | |
7295 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 | |
7296 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 | |
7297 | cat >conftest.$ac_ext <<_ACEOF | |
7298 | /* confdefs.h. */ | |
7299 | _ACEOF | |
7300 | cat confdefs.h >>conftest.$ac_ext | |
7301 | cat >>conftest.$ac_ext <<_ACEOF | |
7302 | /* end confdefs.h. */ | |
7303 | $ac_includes_default | |
7304 | #include <wchar.h> | |
7305 | _ACEOF | |
7306 | rm -f conftest.$ac_objext | |
7307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7308 | (eval $ac_compile) 2>conftest.er1 | |
7309 | ac_status=$? | |
7310 | grep -v '^ *+' conftest.er1 >conftest.err | |
7311 | rm -f conftest.er1 | |
7312 | cat conftest.err >&5 | |
7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7314 | (exit $ac_status); } && | |
7315 | { ac_try='test -z "$ac_c_werror_flag" | |
7316 | || test ! -s conftest.err' | |
7317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7318 | (eval $ac_try) 2>&5 | |
7319 | ac_status=$? | |
7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7321 | (exit $ac_status); }; } && | |
7322 | { ac_try='test -s conftest.$ac_objext' | |
7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7324 | (eval $ac_try) 2>&5 | |
7325 | ac_status=$? | |
7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7327 | (exit $ac_status); }; }; then | |
7328 | ac_header_compiler=yes | |
7329 | else | |
7330 | echo "$as_me: failed program was:" >&5 | |
7331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7332 | ||
7333 | ac_header_compiler=no | |
7334 | fi | |
7335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7336 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7337 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7338 | ||
7339 | # Is the header present? | |
7340 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 | |
7341 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 | |
7342 | cat >conftest.$ac_ext <<_ACEOF | |
7343 | /* confdefs.h. */ | |
7344 | _ACEOF | |
7345 | cat confdefs.h >>conftest.$ac_ext | |
7346 | cat >>conftest.$ac_ext <<_ACEOF | |
7347 | /* end confdefs.h. */ | |
7348 | #include <wchar.h> | |
7349 | _ACEOF | |
7350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7352 | ac_status=$? | |
7353 | grep -v '^ *+' conftest.er1 >conftest.err | |
7354 | rm -f conftest.er1 | |
7355 | cat conftest.err >&5 | |
7356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357 | (exit $ac_status); } >/dev/null; then | |
7358 | if test -s conftest.err; then | |
7359 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7360 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7361 | else | |
7362 | ac_cpp_err= | |
7363 | fi | |
7364 | else | |
7365 | ac_cpp_err=yes | |
7366 | fi | |
7367 | if test -z "$ac_cpp_err"; then | |
7368 | ac_header_preproc=yes | |
7369 | else | |
7370 | echo "$as_me: failed program was:" >&5 | |
7371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7372 | ||
7373 | ac_header_preproc=no | |
7374 | fi | |
7375 | rm -f conftest.err conftest.$ac_ext | |
7376 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7377 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7378 | ||
7379 | # So? What about this header? | |
7380 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7381 | yes:no: ) | |
7382 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7383 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7384 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 | |
7385 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} | |
7386 | ac_header_preproc=yes | |
7387 | ;; | |
7388 | no:yes:* ) | |
7389 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 | |
7390 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} | |
7391 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 | |
7392 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} | |
7393 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 | |
7394 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} | |
7395 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7396 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7397 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 | |
7398 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} | |
7399 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 | |
7400 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} | |
7401 | ( | |
7402 | cat <<\_ASBOX | |
7403 | ## ------------------------------------------ ## | |
7404 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7405 | ## ------------------------------------------ ## | |
7406 | _ASBOX | |
7407 | ) | | |
7408 | sed "s/^/$as_me: WARNING: /" >&2 | |
7409 | ;; | |
7410 | esac | |
7411 | echo "$as_me:$LINENO: checking for wchar.h" >&5 | |
7412 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 | |
7413 | if test "${ac_cv_header_wchar_h+set}" = set; then | |
7414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7415 | else | |
7416 | ac_cv_header_wchar_h=$ac_header_preproc | |
7417 | fi | |
7418 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 | |
7419 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 | |
7420 | ||
7421 | fi | |
7422 | ||
7423 | ||
7424 | if test "$ac_cv_header_wchar_h" = no | |
7425 | then | |
7426 | U_HAVE_WCHAR_H=0 | |
7427 | U_HAVE_WCSCPY=0 | |
7428 | else | |
7429 | cat >>confdefs.h <<\_ACEOF | |
7430 | #define HAVE_WCHAR_H 1 | |
7431 | _ACEOF | |
7432 | ||
7433 | U_HAVE_WCHAR_H=1 | |
7434 | echo "$as_me:$LINENO: checking for library containing wcscpy" >&5 | |
7435 | echo $ECHO_N "checking for library containing wcscpy... $ECHO_C" >&6 | |
7436 | if test "${ac_cv_search_wcscpy+set}" = set; then | |
7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7438 | else | |
7439 | ac_func_search_save_LIBS=$LIBS | |
7440 | ac_cv_search_wcscpy=no | |
7441 | cat >conftest.$ac_ext <<_ACEOF | |
7442 | /* confdefs.h. */ | |
7443 | _ACEOF | |
7444 | cat confdefs.h >>conftest.$ac_ext | |
7445 | cat >>conftest.$ac_ext <<_ACEOF | |
7446 | /* end confdefs.h. */ | |
7447 | ||
7448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7449 | #ifdef __cplusplus | |
7450 | extern "C" | |
7451 | #endif | |
7452 | /* We use char because int might match the return type of a gcc2 | |
7453 | builtin and then its argument prototype would still apply. */ | |
7454 | char wcscpy (); | |
7455 | int | |
7456 | main () | |
7457 | { | |
7458 | wcscpy (); | |
7459 | ; | |
7460 | return 0; | |
7461 | } | |
7462 | _ACEOF | |
7463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7465 | (eval $ac_link) 2>conftest.er1 | |
7466 | ac_status=$? | |
7467 | grep -v '^ *+' conftest.er1 >conftest.err | |
7468 | rm -f conftest.er1 | |
7469 | cat conftest.err >&5 | |
7470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7471 | (exit $ac_status); } && | |
7472 | { ac_try='test -z "$ac_c_werror_flag" | |
7473 | || test ! -s conftest.err' | |
7474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7475 | (eval $ac_try) 2>&5 | |
7476 | ac_status=$? | |
7477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7478 | (exit $ac_status); }; } && | |
7479 | { ac_try='test -s conftest$ac_exeext' | |
7480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7481 | (eval $ac_try) 2>&5 | |
7482 | ac_status=$? | |
7483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7484 | (exit $ac_status); }; }; then | |
7485 | ac_cv_search_wcscpy="none required" | |
7486 | else | |
7487 | echo "$as_me: failed program was:" >&5 | |
7488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7489 | ||
7490 | fi | |
7491 | rm -f conftest.err conftest.$ac_objext \ | |
7492 | conftest$ac_exeext conftest.$ac_ext | |
7493 | if test "$ac_cv_search_wcscpy" = no; then | |
7494 | for ac_lib in wcs w; do | |
7495 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7496 | cat >conftest.$ac_ext <<_ACEOF | |
7497 | /* confdefs.h. */ | |
7498 | _ACEOF | |
7499 | cat confdefs.h >>conftest.$ac_ext | |
7500 | cat >>conftest.$ac_ext <<_ACEOF | |
7501 | /* end confdefs.h. */ | |
7502 | ||
7503 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7504 | #ifdef __cplusplus | |
7505 | extern "C" | |
7506 | #endif | |
7507 | /* We use char because int might match the return type of a gcc2 | |
7508 | builtin and then its argument prototype would still apply. */ | |
7509 | char wcscpy (); | |
7510 | int | |
7511 | main () | |
7512 | { | |
7513 | wcscpy (); | |
7514 | ; | |
7515 | return 0; | |
7516 | } | |
7517 | _ACEOF | |
7518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7520 | (eval $ac_link) 2>conftest.er1 | |
7521 | ac_status=$? | |
7522 | grep -v '^ *+' conftest.er1 >conftest.err | |
7523 | rm -f conftest.er1 | |
7524 | cat conftest.err >&5 | |
7525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7526 | (exit $ac_status); } && | |
7527 | { ac_try='test -z "$ac_c_werror_flag" | |
7528 | || test ! -s conftest.err' | |
7529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7530 | (eval $ac_try) 2>&5 | |
7531 | ac_status=$? | |
7532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7533 | (exit $ac_status); }; } && | |
7534 | { ac_try='test -s conftest$ac_exeext' | |
7535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7536 | (eval $ac_try) 2>&5 | |
7537 | ac_status=$? | |
7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7539 | (exit $ac_status); }; }; then | |
7540 | ac_cv_search_wcscpy="-l$ac_lib" | |
7541 | break | |
7542 | else | |
7543 | echo "$as_me: failed program was:" >&5 | |
7544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7545 | ||
7546 | fi | |
7547 | rm -f conftest.err conftest.$ac_objext \ | |
7548 | conftest$ac_exeext conftest.$ac_ext | |
7549 | done | |
7550 | fi | |
7551 | LIBS=$ac_func_search_save_LIBS | |
7552 | fi | |
7553 | echo "$as_me:$LINENO: result: $ac_cv_search_wcscpy" >&5 | |
7554 | echo "${ECHO_T}$ac_cv_search_wcscpy" >&6 | |
7555 | if test "$ac_cv_search_wcscpy" != no; then | |
7556 | test "$ac_cv_search_wcscpy" = "none required" || LIBS="$ac_cv_search_wcscpy $LIBS" | |
7557 | ||
7558 | fi | |
7559 | ||
7560 | if test "$ac_cv_search_wcscpy" != no; then | |
7561 | U_HAVE_WCSCPY=1 | |
7562 | else | |
7563 | U_HAVE_WCSCPY=0 | |
7564 | fi | |
7565 | fi | |
7566 | ||
7567 | ||
7568 | ||
7569 | echo "$as_me:$LINENO: checking for wchar_t" >&5 | |
7570 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
7571 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
7572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7573 | else | |
7574 | cat >conftest.$ac_ext <<_ACEOF | |
7575 | /* confdefs.h. */ | |
7576 | _ACEOF | |
7577 | cat confdefs.h >>conftest.$ac_ext | |
7578 | cat >>conftest.$ac_ext <<_ACEOF | |
7579 | /* end confdefs.h. */ | |
7580 | ||
7581 | #if STDC_HEADERS | |
7582 | #include <stddef.h> | |
7583 | #endif | |
7584 | #include <stdlib.h> | |
7585 | #if HAVE_WCHAR_H | |
7586 | #include <string.h> | |
7587 | #include <wchar.h> | |
7588 | #endif | |
7589 | ||
7590 | int | |
7591 | main () | |
7592 | { | |
7593 | if ((wchar_t *) 0) | |
7594 | return 0; | |
7595 | if (sizeof (wchar_t)) | |
7596 | return 0; | |
7597 | ; | |
7598 | return 0; | |
7599 | } | |
7600 | _ACEOF | |
7601 | rm -f conftest.$ac_objext | |
7602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7603 | (eval $ac_compile) 2>conftest.er1 | |
7604 | ac_status=$? | |
7605 | grep -v '^ *+' conftest.er1 >conftest.err | |
7606 | rm -f conftest.er1 | |
7607 | cat conftest.err >&5 | |
7608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7609 | (exit $ac_status); } && | |
7610 | { ac_try='test -z "$ac_c_werror_flag" | |
7611 | || test ! -s conftest.err' | |
7612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7613 | (eval $ac_try) 2>&5 | |
7614 | ac_status=$? | |
7615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7616 | (exit $ac_status); }; } && | |
7617 | { ac_try='test -s conftest.$ac_objext' | |
7618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7619 | (eval $ac_try) 2>&5 | |
7620 | ac_status=$? | |
7621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7622 | (exit $ac_status); }; }; then | |
7623 | ac_cv_type_wchar_t=yes | |
7624 | else | |
7625 | echo "$as_me: failed program was:" >&5 | |
7626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7627 | ||
7628 | ac_cv_type_wchar_t=no | |
7629 | fi | |
7630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7631 | fi | |
7632 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
7633 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
7634 | ||
7635 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
7636 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
7637 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then | |
7638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7639 | else | |
7640 | if test "$ac_cv_type_wchar_t" = yes; then | |
7641 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7642 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7643 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7644 | # This bug is HP SR number 8606223364. | |
7645 | if test "$cross_compiling" = yes; then | |
7646 | # Depending upon the size, compute the lo and hi bounds. | |
7647 | cat >conftest.$ac_ext <<_ACEOF | |
7648 | /* confdefs.h. */ | |
7649 | _ACEOF | |
7650 | cat confdefs.h >>conftest.$ac_ext | |
7651 | cat >>conftest.$ac_ext <<_ACEOF | |
7652 | /* end confdefs.h. */ | |
7653 | ||
7654 | #if STDC_HEADERS | |
7655 | #include <stddef.h> | |
7656 | #endif | |
7657 | #include <stdlib.h> | |
7658 | #if HAVE_WCHAR_H | |
7659 | #include <string.h> | |
7660 | #include <wchar.h> | |
7661 | #endif | |
7662 | ||
7663 | int | |
7664 | main () | |
7665 | { | |
7666 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
7667 | test_array [0] = 0 | |
7668 | ||
7669 | ; | |
7670 | return 0; | |
7671 | } | |
7672 | _ACEOF | |
7673 | rm -f conftest.$ac_objext | |
7674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7675 | (eval $ac_compile) 2>conftest.er1 | |
7676 | ac_status=$? | |
7677 | grep -v '^ *+' conftest.er1 >conftest.err | |
7678 | rm -f conftest.er1 | |
7679 | cat conftest.err >&5 | |
7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7681 | (exit $ac_status); } && | |
7682 | { ac_try='test -z "$ac_c_werror_flag" | |
7683 | || test ! -s conftest.err' | |
7684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7685 | (eval $ac_try) 2>&5 | |
7686 | ac_status=$? | |
7687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7688 | (exit $ac_status); }; } && | |
7689 | { ac_try='test -s conftest.$ac_objext' | |
7690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7691 | (eval $ac_try) 2>&5 | |
7692 | ac_status=$? | |
7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7694 | (exit $ac_status); }; }; then | |
7695 | ac_lo=0 ac_mid=0 | |
7696 | while :; do | |
7697 | cat >conftest.$ac_ext <<_ACEOF | |
7698 | /* confdefs.h. */ | |
7699 | _ACEOF | |
7700 | cat confdefs.h >>conftest.$ac_ext | |
7701 | cat >>conftest.$ac_ext <<_ACEOF | |
7702 | /* end confdefs.h. */ | |
7703 | ||
7704 | #if STDC_HEADERS | |
7705 | #include <stddef.h> | |
7706 | #endif | |
7707 | #include <stdlib.h> | |
7708 | #if HAVE_WCHAR_H | |
7709 | #include <string.h> | |
7710 | #include <wchar.h> | |
7711 | #endif | |
7712 | ||
7713 | int | |
7714 | main () | |
7715 | { | |
7716 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
7717 | test_array [0] = 0 | |
7718 | ||
7719 | ; | |
7720 | return 0; | |
7721 | } | |
7722 | _ACEOF | |
7723 | rm -f conftest.$ac_objext | |
7724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7725 | (eval $ac_compile) 2>conftest.er1 | |
7726 | ac_status=$? | |
7727 | grep -v '^ *+' conftest.er1 >conftest.err | |
7728 | rm -f conftest.er1 | |
7729 | cat conftest.err >&5 | |
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7731 | (exit $ac_status); } && | |
7732 | { ac_try='test -z "$ac_c_werror_flag" | |
7733 | || test ! -s conftest.err' | |
7734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7735 | (eval $ac_try) 2>&5 | |
7736 | ac_status=$? | |
7737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7738 | (exit $ac_status); }; } && | |
7739 | { ac_try='test -s conftest.$ac_objext' | |
7740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7741 | (eval $ac_try) 2>&5 | |
7742 | ac_status=$? | |
7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7744 | (exit $ac_status); }; }; then | |
7745 | ac_hi=$ac_mid; break | |
7746 | else | |
7747 | echo "$as_me: failed program was:" >&5 | |
7748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7749 | ||
7750 | ac_lo=`expr $ac_mid + 1` | |
7751 | if test $ac_lo -le $ac_mid; then | |
7752 | ac_lo= ac_hi= | |
7753 | break | |
7754 | fi | |
7755 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7756 | fi | |
7757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7758 | done | |
7759 | else | |
7760 | echo "$as_me: failed program was:" >&5 | |
7761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7762 | ||
7763 | cat >conftest.$ac_ext <<_ACEOF | |
7764 | /* confdefs.h. */ | |
7765 | _ACEOF | |
7766 | cat confdefs.h >>conftest.$ac_ext | |
7767 | cat >>conftest.$ac_ext <<_ACEOF | |
7768 | /* end confdefs.h. */ | |
7769 | ||
7770 | #if STDC_HEADERS | |
7771 | #include <stddef.h> | |
7772 | #endif | |
7773 | #include <stdlib.h> | |
7774 | #if HAVE_WCHAR_H | |
7775 | #include <string.h> | |
7776 | #include <wchar.h> | |
7777 | #endif | |
7778 | ||
7779 | int | |
7780 | main () | |
7781 | { | |
7782 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
7783 | test_array [0] = 0 | |
7784 | ||
7785 | ; | |
7786 | return 0; | |
7787 | } | |
7788 | _ACEOF | |
7789 | rm -f conftest.$ac_objext | |
7790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7791 | (eval $ac_compile) 2>conftest.er1 | |
7792 | ac_status=$? | |
7793 | grep -v '^ *+' conftest.er1 >conftest.err | |
7794 | rm -f conftest.er1 | |
7795 | cat conftest.err >&5 | |
7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7797 | (exit $ac_status); } && | |
7798 | { ac_try='test -z "$ac_c_werror_flag" | |
7799 | || test ! -s conftest.err' | |
7800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7801 | (eval $ac_try) 2>&5 | |
7802 | ac_status=$? | |
7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7804 | (exit $ac_status); }; } && | |
7805 | { ac_try='test -s conftest.$ac_objext' | |
7806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7807 | (eval $ac_try) 2>&5 | |
7808 | ac_status=$? | |
7809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7810 | (exit $ac_status); }; }; then | |
7811 | ac_hi=-1 ac_mid=-1 | |
7812 | while :; do | |
7813 | cat >conftest.$ac_ext <<_ACEOF | |
7814 | /* confdefs.h. */ | |
7815 | _ACEOF | |
7816 | cat confdefs.h >>conftest.$ac_ext | |
7817 | cat >>conftest.$ac_ext <<_ACEOF | |
7818 | /* end confdefs.h. */ | |
7819 | ||
7820 | #if STDC_HEADERS | |
7821 | #include <stddef.h> | |
7822 | #endif | |
7823 | #include <stdlib.h> | |
7824 | #if HAVE_WCHAR_H | |
7825 | #include <string.h> | |
7826 | #include <wchar.h> | |
7827 | #endif | |
7828 | ||
7829 | int | |
7830 | main () | |
7831 | { | |
7832 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
7833 | test_array [0] = 0 | |
7834 | ||
7835 | ; | |
7836 | return 0; | |
7837 | } | |
7838 | _ACEOF | |
7839 | rm -f conftest.$ac_objext | |
7840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7841 | (eval $ac_compile) 2>conftest.er1 | |
7842 | ac_status=$? | |
7843 | grep -v '^ *+' conftest.er1 >conftest.err | |
7844 | rm -f conftest.er1 | |
7845 | cat conftest.err >&5 | |
7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7847 | (exit $ac_status); } && | |
7848 | { ac_try='test -z "$ac_c_werror_flag" | |
7849 | || test ! -s conftest.err' | |
7850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7851 | (eval $ac_try) 2>&5 | |
7852 | ac_status=$? | |
7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7854 | (exit $ac_status); }; } && | |
7855 | { ac_try='test -s conftest.$ac_objext' | |
7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7857 | (eval $ac_try) 2>&5 | |
7858 | ac_status=$? | |
7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7860 | (exit $ac_status); }; }; then | |
7861 | ac_lo=$ac_mid; break | |
7862 | else | |
7863 | echo "$as_me: failed program was:" >&5 | |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7865 | ||
7866 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7867 | if test $ac_mid -le $ac_hi; then | |
7868 | ac_lo= ac_hi= | |
7869 | break | |
7870 | fi | |
7871 | ac_mid=`expr 2 '*' $ac_mid` | |
7872 | fi | |
7873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7874 | done | |
7875 | else | |
7876 | echo "$as_me: failed program was:" >&5 | |
7877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7878 | ||
7879 | ac_lo= ac_hi= | |
7880 | fi | |
7881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7882 | fi | |
7883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7884 | # Binary search between lo and hi bounds. | |
7885 | while test "x$ac_lo" != "x$ac_hi"; do | |
7886 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7887 | cat >conftest.$ac_ext <<_ACEOF | |
7888 | /* confdefs.h. */ | |
7889 | _ACEOF | |
7890 | cat confdefs.h >>conftest.$ac_ext | |
7891 | cat >>conftest.$ac_ext <<_ACEOF | |
7892 | /* end confdefs.h. */ | |
7893 | ||
7894 | #if STDC_HEADERS | |
7895 | #include <stddef.h> | |
7896 | #endif | |
7897 | #include <stdlib.h> | |
7898 | #if HAVE_WCHAR_H | |
7899 | #include <string.h> | |
7900 | #include <wchar.h> | |
7901 | #endif | |
7902 | ||
7903 | int | |
7904 | main () | |
7905 | { | |
7906 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
7907 | test_array [0] = 0 | |
7908 | ||
7909 | ; | |
7910 | return 0; | |
7911 | } | |
7912 | _ACEOF | |
7913 | rm -f conftest.$ac_objext | |
7914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7915 | (eval $ac_compile) 2>conftest.er1 | |
7916 | ac_status=$? | |
7917 | grep -v '^ *+' conftest.er1 >conftest.err | |
7918 | rm -f conftest.er1 | |
7919 | cat conftest.err >&5 | |
7920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7921 | (exit $ac_status); } && | |
7922 | { ac_try='test -z "$ac_c_werror_flag" | |
7923 | || test ! -s conftest.err' | |
7924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7925 | (eval $ac_try) 2>&5 | |
7926 | ac_status=$? | |
7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7928 | (exit $ac_status); }; } && | |
7929 | { ac_try='test -s conftest.$ac_objext' | |
7930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7931 | (eval $ac_try) 2>&5 | |
7932 | ac_status=$? | |
7933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7934 | (exit $ac_status); }; }; then | |
7935 | ac_hi=$ac_mid | |
7936 | else | |
7937 | echo "$as_me: failed program was:" >&5 | |
7938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7939 | ||
7940 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7941 | fi | |
7942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7943 | done | |
7944 | case $ac_lo in | |
7945 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
7946 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
7947 | See \`config.log' for more details." >&5 | |
7948 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
7949 | See \`config.log' for more details." >&2;} | |
7950 | { (exit 1); exit 1; }; } ;; | |
7951 | esac | |
7952 | else | |
7953 | if test "$cross_compiling" = yes; then | |
7954 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
7955 | See \`config.log' for more details." >&5 | |
7956 | echo "$as_me: error: cannot run test program while cross compiling | |
7957 | See \`config.log' for more details." >&2;} | |
7958 | { (exit 1); exit 1; }; } | |
7959 | else | |
7960 | cat >conftest.$ac_ext <<_ACEOF | |
7961 | /* confdefs.h. */ | |
7962 | _ACEOF | |
7963 | cat confdefs.h >>conftest.$ac_ext | |
7964 | cat >>conftest.$ac_ext <<_ACEOF | |
7965 | /* end confdefs.h. */ | |
7966 | ||
7967 | #if STDC_HEADERS | |
7968 | #include <stddef.h> | |
7969 | #endif | |
7970 | #include <stdlib.h> | |
7971 | #if HAVE_WCHAR_H | |
7972 | #include <string.h> | |
7973 | #include <wchar.h> | |
7974 | #endif | |
7975 | ||
7976 | long longval () { return (long) (sizeof (wchar_t)); } | |
7977 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
7978 | #include <stdio.h> | |
7979 | #include <stdlib.h> | |
7980 | int | |
7981 | main () | |
7982 | { | |
7983 | ||
7984 | FILE *f = fopen ("conftest.val", "w"); | |
7985 | if (! f) | |
7986 | exit (1); | |
7987 | if (((long) (sizeof (wchar_t))) < 0) | |
7988 | { | |
7989 | long i = longval (); | |
7990 | if (i != ((long) (sizeof (wchar_t)))) | |
7991 | exit (1); | |
7992 | fprintf (f, "%ld\n", i); | |
7993 | } | |
7994 | else | |
7995 | { | |
7996 | unsigned long i = ulongval (); | |
7997 | if (i != ((long) (sizeof (wchar_t)))) | |
7998 | exit (1); | |
7999 | fprintf (f, "%lu\n", i); | |
8000 | } | |
8001 | exit (ferror (f) || fclose (f) != 0); | |
8002 | ||
8003 | ; | |
8004 | return 0; | |
8005 | } | |
8006 | _ACEOF | |
8007 | rm -f conftest$ac_exeext | |
8008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8009 | (eval $ac_link) 2>&5 | |
8010 | ac_status=$? | |
8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8014 | (eval $ac_try) 2>&5 | |
8015 | ac_status=$? | |
8016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8017 | (exit $ac_status); }; }; then | |
8018 | ac_cv_sizeof_wchar_t=`cat conftest.val` | |
8019 | else | |
8020 | echo "$as_me: program exited with status $ac_status" >&5 | |
8021 | echo "$as_me: failed program was:" >&5 | |
8022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8023 | ||
8024 | ( exit $ac_status ) | |
8025 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
8026 | See \`config.log' for more details." >&5 | |
8027 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
8028 | See \`config.log' for more details." >&2;} | |
8029 | { (exit 1); exit 1; }; } | |
8030 | fi | |
8031 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8032 | fi | |
8033 | fi | |
8034 | rm -f conftest.val | |
8035 | else | |
8036 | ac_cv_sizeof_wchar_t=0 | |
8037 | fi | |
8038 | fi | |
8039 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
8040 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
8041 | cat >>confdefs.h <<_ACEOF | |
8042 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | |
8043 | _ACEOF | |
8044 | ||
8045 | ||
8046 | U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | |
8047 | # We do this check to verify that everything is okay. | |
8048 | if test $U_SIZEOF_WCHAR_T = 0; then | |
8049 | if test $U_HAVE_WCHAR_H=1; then | |
8050 | { { echo "$as_me:$LINENO: error: There is wchar.h but the size of wchar_t is 0" >&5 | |
8051 | echo "$as_me: error: There is wchar.h but the size of wchar_t is 0" >&2;} | |
8052 | { (exit 1); exit 1; }; } | |
8053 | fi | |
8054 | fi | |
8055 | ||
8056 | ||
8057 | echo "$as_me:$LINENO: checking for UTF-16 string literal support" >&5 | |
8058 | echo $ECHO_N "checking for UTF-16 string literal support... $ECHO_C" >&6 | |
8059 | U_CHECK_UTF16_STRING=1 | |
8060 | CHECK_UTF16_STRING_RESULT="unknown" | |
8061 | case "${host}" in | |
8062 | *-*-aix*|powerpc64-*-linux*) | |
8063 | if test "$ac_cv_c_compiler_gnu" = no; then | |
8064 | OLD_CFLAGS="${CFLAGS}" | |
8065 | OLD_CXXFLAGS="${CXXFLAGS}" | |
8066 | CFLAGS="${CFLAGS} -qutf" | |
8067 | CXXFLAGS="${CXXFLAGS} -qutf" | |
8068 | cat >conftest.$ac_ext <<_ACEOF | |
8069 | /* confdefs.h. */ | |
8070 | _ACEOF | |
8071 | cat confdefs.h >>conftest.$ac_ext | |
8072 | cat >>conftest.$ac_ext <<_ACEOF | |
8073 | /* end confdefs.h. */ | |
8074 | const unsigned short hello[] = u"hello"; | |
8075 | int | |
8076 | main () | |
8077 | { | |
8078 | ||
8079 | ; | |
8080 | return 0; | |
8081 | } | |
8082 | _ACEOF | |
8083 | rm -f conftest.$ac_objext | |
8084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8085 | (eval $ac_compile) 2>conftest.er1 | |
8086 | ac_status=$? | |
8087 | grep -v '^ *+' conftest.er1 >conftest.err | |
8088 | rm -f conftest.er1 | |
8089 | cat conftest.err >&5 | |
8090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8091 | (exit $ac_status); } && | |
8092 | { ac_try='test -z "$ac_c_werror_flag" | |
8093 | || test ! -s conftest.err' | |
8094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8095 | (eval $ac_try) 2>&5 | |
8096 | ac_status=$? | |
8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8098 | (exit $ac_status); }; } && | |
8099 | { ac_try='test -s conftest.$ac_objext' | |
8100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8101 | (eval $ac_try) 2>&5 | |
8102 | ac_status=$? | |
8103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8104 | (exit $ac_status); }; }; then | |
8105 | U_CHECK_UTF16_STRING=1 | |
8106 | else | |
8107 | echo "$as_me: failed program was:" >&5 | |
8108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8109 | ||
8110 | U_CHECK_UTF16_STRING=0 | |
8111 | fi | |
8112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8113 | if test "$U_CHECK_UTF16_STRING" = 0; then | |
8114 | CFLAGS="${OLD_CFLAGS}" | |
8115 | CXXFLAGS="${OLD_CXXFLAGS}" | |
8116 | else | |
8117 | CHECK_UTF16_STRING_RESULT="-qutf" | |
8118 | fi | |
8119 | fi | |
8120 | ;; | |
8121 | *-*-solaris*) | |
8122 | if test "$ac_cv_c_compiler_gnu" = no; then | |
8123 | OLD_CFLAGS="${CFLAGS}" | |
8124 | OLD_CXXFLAGS="${CXXFLAGS}" | |
8125 | CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" | |
8126 | CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" | |
8127 | cat >conftest.$ac_ext <<_ACEOF | |
8128 | /* confdefs.h. */ | |
8129 | _ACEOF | |
8130 | cat confdefs.h >>conftest.$ac_ext | |
8131 | cat >>conftest.$ac_ext <<_ACEOF | |
8132 | /* end confdefs.h. */ | |
8133 | const unsigned short hello[] = U"hello"; | |
8134 | int | |
8135 | main () | |
8136 | { | |
8137 | ||
8138 | ; | |
8139 | return 0; | |
8140 | } | |
8141 | _ACEOF | |
8142 | rm -f conftest.$ac_objext | |
8143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8144 | (eval $ac_compile) 2>conftest.er1 | |
8145 | ac_status=$? | |
8146 | grep -v '^ *+' conftest.er1 >conftest.err | |
8147 | rm -f conftest.er1 | |
8148 | cat conftest.err >&5 | |
8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8150 | (exit $ac_status); } && | |
8151 | { ac_try='test -z "$ac_c_werror_flag" | |
8152 | || test ! -s conftest.err' | |
8153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8154 | (eval $ac_try) 2>&5 | |
8155 | ac_status=$? | |
8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8157 | (exit $ac_status); }; } && | |
8158 | { ac_try='test -s conftest.$ac_objext' | |
8159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8160 | (eval $ac_try) 2>&5 | |
8161 | ac_status=$? | |
8162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8163 | (exit $ac_status); }; }; then | |
8164 | U_CHECK_UTF16_STRING=1 | |
8165 | else | |
8166 | echo "$as_me: failed program was:" >&5 | |
8167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8168 | ||
8169 | U_CHECK_UTF16_STRING=0 | |
8170 | fi | |
8171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8172 | if test "$U_CHECK_UTF16_STRING" = 0; then | |
8173 | CFLAGS="${OLD_CFLAGS}" | |
8174 | CXXFLAGS="${OLD_CXXFLAGS}" | |
8175 | else | |
8176 | CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" | |
8177 | ||
8178 | # Since we can't detect the availability of this UTF-16 syntax at compile time, | |
8179 | # we depend on configure telling us that we can use it. | |
8180 | # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, | |
8181 | # we only use this macro within ICU. | |
8182 | # If an ICU user uses icu-config, this feature will be enabled. | |
8183 | CPPFLAGS="${CPPFLAGS} -DU_CHECK_UTF16_STRING=1" | |
8184 | U_CHECK_UTF16_STRING=0 | |
8185 | fi | |
8186 | fi | |
8187 | ;; | |
8188 | *-*-hpux*) | |
8189 | if test "$ac_cv_c_compiler_gnu" = no; then | |
8190 | CHECK_UTF16_STRING_RESULT="available" | |
8191 | fi | |
8192 | ;; | |
8193 | *-*-cygwin) | |
8194 | CHECK_UTF16_STRING_RESULT="available" | |
8195 | ;; | |
8196 | *) | |
8197 | ;; | |
8198 | esac | |
8199 | echo "$as_me:$LINENO: result: $CHECK_UTF16_STRING_RESULT" >&5 | |
8200 | echo "${ECHO_T}$CHECK_UTF16_STRING_RESULT" >&6 | |
8201 | ||
8202 | ||
8203 | # Check whether --enable-extras or --disable-extras was given. | |
8204 | if test "${enable_extras+set}" = set; then | |
8205 | enableval="$enable_extras" | |
8206 | case "${enableval}" in | |
8207 | yes) extras=true ;; | |
8208 | no) extras=false ;; | |
8209 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-extras" >&5 | |
8210 | echo "$as_me: error: bad value ${enableval} for --enable-extras" >&2;} | |
8211 | { (exit 1); exit 1; }; } ;; | |
8212 | esac | |
8213 | else | |
8214 | extras=true | |
8215 | fi; | |
8216 | ||
8217 | if test "$extras" = true; then | |
8218 | EXTRAS_TRUE= | |
8219 | else | |
8220 | EXTRAS_TRUE='#' | |
8221 | fi | |
8222 | # Check whether --enable-icuio or --disable-icuio was given. | |
8223 | if test "${enable_icuio+set}" = set; then | |
8224 | enableval="$enable_icuio" | |
8225 | case "${enableval}" in | |
8226 | yes) icuio=true ;; | |
8227 | no) icuio=false ;; | |
8228 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-icuio" >&5 | |
8229 | echo "$as_me: error: bad value ${enableval} for --enable-icuio" >&2;} | |
8230 | { (exit 1); exit 1; }; } ;; | |
8231 | esac | |
8232 | else | |
8233 | icuio=true | |
8234 | fi; | |
8235 | ||
8236 | if test "$icuio" = true; then | |
8237 | ICUIO_TRUE= | |
8238 | else | |
8239 | ICUIO_TRUE='#' | |
8240 | fi | |
8241 | ||
8242 | # Check whether --enable-layout or --disable-layout was given. | |
8243 | if test "${enable_layout+set}" = set; then | |
8244 | enableval="$enable_layout" | |
8245 | case "${enableval}" in | |
8246 | yes) layout=true ;; | |
8247 | no) layout=false ;; | |
8248 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-layout" >&5 | |
8249 | echo "$as_me: error: bad value ${enableval} for --enable-layout" >&2;} | |
8250 | { (exit 1); exit 1; }; } ;; | |
8251 | esac | |
8252 | else | |
8253 | layout=true | |
8254 | fi; | |
8255 | ||
8256 | if test "$layout" = true; then | |
8257 | LAYOUT_TRUE= | |
8258 | else | |
8259 | LAYOUT_TRUE='#' | |
8260 | fi | |
8261 | ||
8262 | ||
8263 | # Check whether --with-data-packaging or --without-data-packaging was given. | |
8264 | if test "${with_data_packaging+set}" = set; then | |
8265 | withval="$with_data_packaging" | |
8266 | case "${withval}" in | |
8267 | files|archive|library) datapackaging=$withval ;; | |
8268 | auto) datapackaging=$withval ;; | |
8269 | common) datapackaging=archive ;; | |
8270 | dll) datapackaging=library ;; | |
8271 | static) datapackaging=static ;; | |
8272 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-data-packaging" >&5 | |
8273 | echo "$as_me: error: bad value ${withval} for --with-data-packaging" >&2;} | |
8274 | { (exit 1); exit 1; }; } ;; | |
8275 | esac | |
8276 | else | |
8277 | datapackaging= | |
8278 | fi; | |
8279 | ||
8280 | thedatadir=`eval echo $datadir` | |
8281 | pkgicudatadir=$datadir | |
8282 | thepkgicudatadir=$thedatadir | |
8283 | ||
8284 | ||
8285 | ||
8286 | ||
8287 | if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then | |
8288 | datapackaging=library | |
8289 | fi | |
8290 | ||
8291 | case "$datapackaging" in | |
8292 | files) | |
8293 | DATA_PACKAGING_MODE=files | |
8294 | ;; | |
8295 | archive) | |
8296 | DATA_PACKAGING_MODE=common | |
8297 | ;; | |
8298 | library) | |
8299 | DATA_PACKAGING_MODE=dll | |
8300 | ;; | |
8301 | esac | |
8302 | ||
8303 | ||
8304 | echo "$as_me:$LINENO: checking for a library suffix to use" >&5 | |
8305 | echo $ECHO_N "checking for a library suffix to use... $ECHO_C" >&6 | |
8306 | ||
8307 | # Check whether --with-library-suffix or --without-library-suffix was given. | |
8308 | if test "${with_library_suffix+set}" = set; then | |
8309 | withval="$with_library_suffix" | |
8310 | ICULIBSUFFIX="${withval}" | |
8311 | else | |
8312 | ICULIBSUFFIX= | |
8313 | fi; | |
8314 | msg=$ICULIBSUFFIX | |
8315 | if test "$msg" = ""; then | |
8316 | msg=none | |
8317 | fi | |
8318 | echo "$as_me:$LINENO: result: $msg" >&5 | |
8319 | echo "${ECHO_T}$msg" >&6 | |
8320 | ||
8321 | if test "$ICULIBSUFFIX" != "" | |
8322 | then | |
8323 | U_HAVE_LIB_SUFFIX=1 | |
8324 | ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'` | |
8325 | else | |
8326 | U_HAVE_LIB_SUFFIX=0 | |
8327 | fi | |
8328 | ||
8329 | ||
8330 | ||
8331 | # Check whether --enable-tests or --disable-tests was given. | |
8332 | if test "${enable_tests+set}" = set; then | |
8333 | enableval="$enable_tests" | |
8334 | case "${enableval}" in | |
8335 | yes) tests=true ;; | |
8336 | no) tests=false ;; | |
8337 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5 | |
8338 | echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;} | |
8339 | { (exit 1); exit 1; }; } ;; | |
8340 | esac | |
8341 | else | |
8342 | tests=true | |
8343 | fi; | |
8344 | ||
8345 | if test "$tests" = true; then | |
8346 | TESTS_TRUE= | |
8347 | else | |
8348 | TESTS_TRUE='#' | |
8349 | fi | |
8350 | ||
8351 | # Check whether --enable-samples or --disable-samples was given. | |
8352 | if test "${enable_samples+set}" = set; then | |
8353 | enableval="$enable_samples" | |
8354 | case "${enableval}" in | |
8355 | yes) samples=true ;; | |
8356 | no) samples=false ;; | |
8357 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-samples" >&5 | |
8358 | echo "$as_me: error: bad value ${enableval} for --enable-samples" >&2;} | |
8359 | { (exit 1); exit 1; }; } ;; | |
8360 | esac | |
8361 | else | |
8362 | samples=true | |
8363 | fi; | |
8364 | ||
8365 | if test "$samples" = true; then | |
8366 | SAMPLES_TRUE= | |
8367 | else | |
8368 | SAMPLES_TRUE='#' | |
8369 | fi | |
8370 | ||
8371 | ICUDATA_CHAR=$U_ENDIAN_CHAR | |
8372 | ||
8373 | case "${host}" in | |
8374 | *-*-solaris*) platform=U_SOLARIS ;; | |
8375 | *-*-linux*) platform=U_LINUX ;; | |
8376 | *-pc-gnu) platform=U_HURD ;; | |
8377 | *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; | |
8378 | *-*-aix*) platform=U_AIX ;; | |
8379 | *-*-hpux*) platform=U_HPUX ;; | |
8380 | *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; | |
8381 | *-*-cygwin*|*-*-mingw*) platform=U_CYGWIN ;; | |
8382 | *-*ibm-openedition*|*-*-os390*) platform=OS390 | |
8383 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then | |
8384 | ICUDATA_CHAR="e" | |
8385 | fi ;; | |
8386 | *-*-os400*) platform=OS400 | |
8387 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then | |
8388 | ICUDATA_CHAR="e" | |
8389 | fi ;; | |
8390 | *-*-nto*) platform=U_QNX ;; | |
8391 | *-dec-osf*) platform=U_OSF ;; | |
8392 | *-*-beos) platform=U_BEOS ;; | |
8393 | *-*-irix*) platform=U_IRIX ;; | |
8394 | *-ncr-*) platform=U_MPRAS ;; | |
8395 | *) platform=U_UNKNOWN_PLATFORM ;; | |
8396 | esac | |
8397 | ||
8398 | ||
8399 | platform_make_fragment_name="$icu_cv_host_frag" | |
8400 | platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" | |
8401 | ||
8402 | ||
8403 | ||
8404 | if test "${FORCE_LIBS}" != ""; then | |
8405 | echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 | |
8406 | LIBS=${FORCE_LIBS} | |
8407 | fi | |
8408 | ||
8409 | ||
8410 | ||
8411 | if test $ICU_USE_THREADS -ne 0 | |
8412 | then | |
8413 | CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" | |
8414 | CFLAGS="$CFLAGS \$(THREADSCFLAGS)" | |
8415 | CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)" | |
8416 | fi | |
8417 | ||
8418 | ac_config_files="$ac_config_files icudefs.mk Makefile data/icupkg.inc config/Makefile.inc data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genuca/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/genctd/Makefile tools/gennames/Makefile tools/gentest/Makefile tools/gennorm/Makefile tools/genprops/Makefile tools/gencase/Makefile tools/genbidi/Makefile tools/genpname/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdata.inc test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile common/unicode/platform.h" | |
8419 | cat >confcache <<\_ACEOF | |
8420 | # This file is a shell script that caches the results of configure | |
8421 | # tests run on this system so they can be shared between configure | |
8422 | # scripts and configure runs, see configure's option --config-cache. | |
8423 | # It is not useful on other systems. If it contains results you don't | |
8424 | # want to keep, you may remove or edit it. | |
8425 | # | |
8426 | # config.status only pays attention to the cache file if you give it | |
8427 | # the --recheck option to rerun configure. | |
8428 | # | |
8429 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
8430 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8431 | # following values. | |
8432 | ||
8433 | _ACEOF | |
8434 | ||
8435 | # The following way of writing the cache mishandles newlines in values, | |
8436 | # but we know of no workaround that is simple, portable, and efficient. | |
8437 | # So, don't put newlines in cache variables' values. | |
8438 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8439 | # and sets the high bit in the cache file unless we assign to the vars. | |
8440 | { | |
8441 | (set) 2>&1 | | |
8442 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8443 | *ac_space=\ *) | |
8444 | # `set' does not quote correctly, so add quotes (double-quote | |
8445 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8446 | sed -n \ | |
8447 | "s/'/'\\\\''/g; | |
8448 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8449 | ;; | |
8450 | *) | |
8451 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8452 | sed -n \ | |
8453 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8454 | ;; | |
8455 | esac; | |
8456 | } | | |
8457 | sed ' | |
8458 | t clear | |
8459 | : clear | |
8460 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8461 | t end | |
8462 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8463 | : end' >>confcache | |
8464 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
8465 | if test -w $cache_file; then | |
8466 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
8467 | cat confcache >$cache_file | |
8468 | else | |
8469 | echo "not updating unwritable cache $cache_file" | |
8470 | fi | |
8471 | fi | |
8472 | rm -f confcache | |
8473 | ||
8474 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8475 | # Let make expand exec_prefix. | |
8476 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8477 | ||
8478 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8479 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8480 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8481 | # (actually we leave an empty line to preserve line numbers). | |
8482 | if test "x$srcdir" = x.; then | |
8483 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8484 | s/:*\$(srcdir):*/:/; | |
8485 | s/:*\${srcdir}:*/:/; | |
8486 | s/:*@srcdir@:*/:/; | |
8487 | s/^\([^=]*=[ ]*\):*/\1/; | |
8488 | s/:*$//; | |
8489 | s/^[^=]*=[ ]*$//; | |
8490 | }' | |
8491 | fi | |
8492 | ||
8493 | DEFS=-DHAVE_CONFIG_H | |
8494 | ||
8495 | ac_libobjs= | |
8496 | ac_ltlibobjs= | |
8497 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8498 | # 1. Remove the extension, and $U if already installed. | |
8499 | ac_i=`echo "$ac_i" | | |
8500 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
8501 | # 2. Add them. | |
8502 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
8503 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
8504 | done | |
8505 | LIBOBJS=$ac_libobjs | |
8506 | ||
8507 | LTLIBOBJS=$ac_ltlibobjs | |
8508 | ||
8509 | ||
8510 | ||
8511 | : ${CONFIG_STATUS=./config.status} | |
8512 | ac_clean_files_save=$ac_clean_files | |
8513 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8514 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8515 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8516 | cat >$CONFIG_STATUS <<_ACEOF | |
8517 | #! $SHELL | |
8518 | # Generated by $as_me. | |
8519 | # Run this file to recreate the current configuration. | |
8520 | # Compiler output produced by configure, useful for debugging | |
8521 | # configure, is in config.log if it exists. | |
8522 | ||
8523 | debug=false | |
8524 | ac_cs_recheck=false | |
8525 | ac_cs_silent=false | |
8526 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8527 | _ACEOF | |
8528 | ||
8529 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8530 | ## --------------------- ## | |
8531 | ## M4sh Initialization. ## | |
8532 | ## --------------------- ## | |
8533 | ||
8534 | # Be Bourne compatible | |
8535 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8536 | emulate sh | |
8537 | NULLCMD=: | |
8538 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
8539 | # is contrary to our usage. Disable this feature. | |
8540 | alias -g '${1+"$@"}'='"$@"' | |
8541 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8542 | set -o posix | |
8543 | fi | |
8544 | DUALCASE=1; export DUALCASE # for MKS sh | |
8545 | ||
8546 | # Support unset when possible. | |
8547 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8548 | as_unset=unset | |
8549 | else | |
8550 | as_unset=false | |
8551 | fi | |
8552 | ||
8553 | ||
8554 | # Work around bugs in pre-3.0 UWIN ksh. | |
8555 | $as_unset ENV MAIL MAILPATH | |
8556 | PS1='$ ' | |
8557 | PS2='> ' | |
8558 | PS4='+ ' | |
8559 | ||
8560 | # NLS nuisances. | |
8561 | for as_var in \ | |
8562 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
8563 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
8564 | LC_TELEPHONE LC_TIME | |
8565 | do | |
8566 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
8567 | eval $as_var=C; export $as_var | |
8568 | else | |
8569 | $as_unset $as_var | |
8570 | fi | |
8571 | done | |
8572 | ||
8573 | # Required to use basename. | |
8574 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8575 | as_expr=expr | |
8576 | else | |
8577 | as_expr=false | |
8578 | fi | |
8579 | ||
8580 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
8581 | as_basename=basename | |
8582 | else | |
8583 | as_basename=false | |
8584 | fi | |
8585 | ||
8586 | ||
8587 | # Name of the executable. | |
8588 | as_me=`$as_basename "$0" || | |
8589 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8590 | X"$0" : 'X\(//\)$' \| \ | |
8591 | X"$0" : 'X\(/\)$' \| \ | |
8592 | . : '\(.\)' 2>/dev/null || | |
8593 | echo X/"$0" | | |
8594 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
8595 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
8596 | /^X\/\(\/\).*/{ s//\1/; q; } | |
8597 | s/.*/./; q'` | |
8598 | ||
8599 | ||
8600 | # PATH needs CR, and LINENO needs CR and PATH. | |
8601 | # Avoid depending upon Character Ranges. | |
8602 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8603 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8604 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8605 | as_cr_digits='0123456789' | |
8606 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8607 | ||
8608 | # The user is always right. | |
8609 | if test "${PATH_SEPARATOR+set}" != set; then | |
8610 | echo "#! /bin/sh" >conf$$.sh | |
8611 | echo "exit 0" >>conf$$.sh | |
8612 | chmod +x conf$$.sh | |
8613 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8614 | PATH_SEPARATOR=';' | |
8615 | else | |
8616 | PATH_SEPARATOR=: | |
8617 | fi | |
8618 | rm -f conf$$.sh | |
8619 | fi | |
8620 | ||
8621 | ||
8622 | as_lineno_1=$LINENO | |
8623 | as_lineno_2=$LINENO | |
8624 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8625 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8626 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
8627 | # Find who we are. Look in the path if we contain no path at all | |
8628 | # relative or not. | |
8629 | case $0 in | |
8630 | *[\\/]* ) as_myself=$0 ;; | |
8631 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8632 | for as_dir in $PATH | |
8633 | do | |
8634 | IFS=$as_save_IFS | |
8635 | test -z "$as_dir" && as_dir=. | |
8636 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8637 | done | |
8638 | ||
8639 | ;; | |
8640 | esac | |
8641 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8642 | # in which case we are not to be found in the path. | |
8643 | if test "x$as_myself" = x; then | |
8644 | as_myself=$0 | |
8645 | fi | |
8646 | if test ! -f "$as_myself"; then | |
8647 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
8648 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
8649 | { (exit 1); exit 1; }; } | |
8650 | fi | |
8651 | case $CONFIG_SHELL in | |
8652 | '') | |
8653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8654 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
8655 | do | |
8656 | IFS=$as_save_IFS | |
8657 | test -z "$as_dir" && as_dir=. | |
8658 | for as_base in sh bash ksh sh5; do | |
8659 | case $as_dir in | |
8660 | /*) | |
8661 | if ("$as_dir/$as_base" -c ' | |
8662 | as_lineno_1=$LINENO | |
8663 | as_lineno_2=$LINENO | |
8664 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8665 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8666 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
8667 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
8668 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
8669 | CONFIG_SHELL=$as_dir/$as_base | |
8670 | export CONFIG_SHELL | |
8671 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
8672 | fi;; | |
8673 | esac | |
8674 | done | |
8675 | done | |
8676 | ;; | |
8677 | esac | |
8678 | ||
8679 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8680 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8681 | # line-number line before each line; the second 'sed' does the real | |
8682 | # work. The second script uses 'N' to pair each line-number line | |
8683 | # with the numbered line, and appends trailing '-' during | |
8684 | # substitution so that $LINENO is not a special case at line end. | |
8685 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
8686 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
8687 | sed '=' <$as_myself | | |
8688 | sed ' | |
8689 | N | |
8690 | s,$,-, | |
8691 | : loop | |
8692 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
8693 | t loop | |
8694 | s,-$,, | |
8695 | s,^['$as_cr_digits']*\n,, | |
8696 | ' >$as_me.lineno && | |
8697 | chmod +x $as_me.lineno || | |
8698 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
8699 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
8700 | { (exit 1); exit 1; }; } | |
8701 | ||
8702 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8703 | # (the dirname of $[0] is not the place where we might find the | |
8704 | # original and so on. Autoconf is especially sensible to this). | |
8705 | . ./$as_me.lineno | |
8706 | # Exit status is that of the last command. | |
8707 | exit | |
8708 | } | |
8709 | ||
8710 | ||
8711 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
8712 | *c*,-n*) ECHO_N= ECHO_C=' | |
8713 | ' ECHO_T=' ' ;; | |
8714 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
8715 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
8716 | esac | |
8717 | ||
8718 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8719 | as_expr=expr | |
8720 | else | |
8721 | as_expr=false | |
8722 | fi | |
8723 | ||
8724 | rm -f conf$$ conf$$.exe conf$$.file | |
8725 | echo >conf$$.file | |
8726 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8727 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8728 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8729 | if test -f conf$$.exe; then | |
8730 | # Don't use ln at all; we don't have any links | |
8731 | as_ln_s='cp -p' | |
8732 | else | |
8733 | as_ln_s='ln -s' | |
8734 | fi | |
8735 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8736 | as_ln_s=ln | |
8737 | else | |
8738 | as_ln_s='cp -p' | |
8739 | fi | |
8740 | rm -f conf$$ conf$$.exe conf$$.file | |
8741 | ||
8742 | if mkdir -p . 2>/dev/null; then | |
8743 | as_mkdir_p=: | |
8744 | else | |
8745 | test -d ./-p && rmdir ./-p | |
8746 | as_mkdir_p=false | |
8747 | fi | |
8748 | ||
8749 | as_executable_p="test -f" | |
8750 | ||
8751 | # Sed expression to map a string onto a valid CPP name. | |
8752 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8753 | ||
8754 | # Sed expression to map a string onto a valid variable name. | |
8755 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8756 | ||
8757 | ||
8758 | # IFS | |
8759 | # We need space, tab and new line, in precisely that order. | |
8760 | as_nl=' | |
8761 | ' | |
8762 | IFS=" $as_nl" | |
8763 | ||
8764 | # CDPATH. | |
8765 | $as_unset CDPATH | |
8766 | ||
8767 | exec 6>&1 | |
8768 | ||
8769 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
8770 | # report actual input values of CONFIG_FILES etc. instead of their | |
8771 | # values after options handling. Logging --version etc. is OK. | |
8772 | exec 5>>config.log | |
8773 | { | |
8774 | echo | |
8775 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8776 | ## Running $as_me. ## | |
8777 | _ASBOX | |
8778 | } >&5 | |
8779 | cat >&5 <<_CSEOF | |
8780 | ||
8781 | This file was extended by $as_me, which was | |
8782 | generated by GNU Autoconf 2.59. Invocation command line was | |
8783 | ||
8784 | CONFIG_FILES = $CONFIG_FILES | |
8785 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8786 | CONFIG_LINKS = $CONFIG_LINKS | |
8787 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8788 | $ $0 $@ | |
8789 | ||
8790 | _CSEOF | |
8791 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
8792 | echo >&5 | |
8793 | _ACEOF | |
8794 | ||
8795 | # Files that config.status was made for. | |
8796 | if test -n "$ac_config_files"; then | |
8797 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
8798 | fi | |
8799 | ||
8800 | if test -n "$ac_config_headers"; then | |
8801 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
8802 | fi | |
8803 | ||
8804 | if test -n "$ac_config_links"; then | |
8805 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
8806 | fi | |
8807 | ||
8808 | if test -n "$ac_config_commands"; then | |
8809 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8810 | fi | |
8811 | ||
8812 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8813 | ||
8814 | ac_cs_usage="\ | |
8815 | \`$as_me' instantiates files from templates according to the | |
8816 | current configuration. | |
8817 | ||
8818 | Usage: $0 [OPTIONS] [FILE]... | |
8819 | ||
8820 | -h, --help print this help, then exit | |
8821 | -V, --version print version number, then exit | |
8822 | -q, --quiet do not print progress messages | |
8823 | -d, --debug don't remove temporary files | |
8824 | --recheck update $as_me by reconfiguring in the same conditions | |
8825 | --file=FILE[:TEMPLATE] | |
8826 | instantiate the configuration file FILE | |
8827 | --header=FILE[:TEMPLATE] | |
8828 | instantiate the configuration header FILE | |
8829 | ||
8830 | Configuration files: | |
8831 | $config_files | |
8832 | ||
8833 | Configuration headers: | |
8834 | $config_headers | |
8835 | ||
8836 | Report bugs to <bug-autoconf@gnu.org>." | |
8837 | _ACEOF | |
8838 | ||
8839 | cat >>$CONFIG_STATUS <<_ACEOF | |
8840 | ac_cs_version="\\ | |
8841 | config.status | |
8842 | configured by $0, generated by GNU Autoconf 2.59, | |
8843 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8844 | ||
8845 | Copyright (C) 2003 Free Software Foundation, Inc. | |
8846 | This config.status script is free software; the Free Software Foundation | |
8847 | gives unlimited permission to copy, distribute and modify it." | |
8848 | srcdir=$srcdir | |
8849 | INSTALL="$INSTALL" | |
8850 | _ACEOF | |
8851 | ||
8852 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8853 | # If no file are specified by the user, then we need to provide default | |
8854 | # value. By we need to know if files were specified by the user. | |
8855 | ac_need_defaults=: | |
8856 | while test $# != 0 | |
8857 | do | |
8858 | case $1 in | |
8859 | --*=*) | |
8860 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8861 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8862 | ac_shift=: | |
8863 | ;; | |
8864 | -*) | |
8865 | ac_option=$1 | |
8866 | ac_optarg=$2 | |
8867 | ac_shift=shift | |
8868 | ;; | |
8869 | *) # This is not an option, so the user has probably given explicit | |
8870 | # arguments. | |
8871 | ac_option=$1 | |
8872 | ac_need_defaults=false;; | |
8873 | esac | |
8874 | ||
8875 | case $ac_option in | |
8876 | # Handling of the options. | |
8877 | _ACEOF | |
8878 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8879 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8880 | ac_cs_recheck=: ;; | |
8881 | --version | --vers* | -V ) | |
8882 | echo "$ac_cs_version"; exit 0 ;; | |
8883 | --he | --h) | |
8884 | # Conflict between --help and --header | |
8885 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8886 | Try \`$0 --help' for more information." >&5 | |
8887 | echo "$as_me: error: ambiguous option: $1 | |
8888 | Try \`$0 --help' for more information." >&2;} | |
8889 | { (exit 1); exit 1; }; };; | |
8890 | --help | --hel | -h ) | |
8891 | echo "$ac_cs_usage"; exit 0 ;; | |
8892 | --debug | --d* | -d ) | |
8893 | debug=: ;; | |
8894 | --file | --fil | --fi | --f ) | |
8895 | $ac_shift | |
8896 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8897 | ac_need_defaults=false;; | |
8898 | --header | --heade | --head | --hea ) | |
8899 | $ac_shift | |
8900 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8901 | ac_need_defaults=false;; | |
8902 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8903 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8904 | ac_cs_silent=: ;; | |
8905 | ||
8906 | # This is an error. | |
8907 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8908 | Try \`$0 --help' for more information." >&5 | |
8909 | echo "$as_me: error: unrecognized option: $1 | |
8910 | Try \`$0 --help' for more information." >&2;} | |
8911 | { (exit 1); exit 1; }; } ;; | |
8912 | ||
8913 | *) ac_config_targets="$ac_config_targets $1" ;; | |
8914 | ||
8915 | esac | |
8916 | shift | |
8917 | done | |
8918 | ||
8919 | ac_configure_extra_args= | |
8920 | ||
8921 | if $ac_cs_silent; then | |
8922 | exec 6>/dev/null | |
8923 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8924 | fi | |
8925 | ||
8926 | _ACEOF | |
8927 | cat >>$CONFIG_STATUS <<_ACEOF | |
8928 | if \$ac_cs_recheck; then | |
8929 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
8930 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
8931 | fi | |
8932 | ||
8933 | _ACEOF | |
8934 | ||
8935 | ||
8936 | ||
8937 | ||
8938 | ||
8939 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8940 | for ac_config_target in $ac_config_targets | |
8941 | do | |
8942 | case "$ac_config_target" in | |
8943 | # Handling of arguments. | |
8944 | "icudefs.mk" ) CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; | |
8945 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8946 | "data/icupkg.inc" ) CONFIG_FILES="$CONFIG_FILES data/icupkg.inc" ;; | |
8947 | "config/Makefile.inc" ) CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; | |
8948 | "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; | |
8949 | "stubdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; | |
8950 | "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
8951 | "i18n/Makefile" ) CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; | |
8952 | "layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; | |
8953 | "layoutex/Makefile" ) CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; | |
8954 | "io/Makefile" ) CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; | |
8955 | "extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; | |
8956 | "extra/uconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; | |
8957 | "extra/scrptrun/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; | |
8958 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
8959 | "tools/ctestfw/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; | |
8960 | "tools/toolutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; | |
8961 | "tools/makeconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; | |
8962 | "tools/genrb/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; | |
8963 | "tools/genuca/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genuca/Makefile" ;; | |
8964 | "tools/genccode/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; | |
8965 | "tools/gencmn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; | |
8966 | "tools/gencnval/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; | |
8967 | "tools/genctd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genctd/Makefile" ;; | |
8968 | "tools/gennames/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gennames/Makefile" ;; | |
8969 | "tools/gentest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; | |
8970 | "tools/gennorm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gennorm/Makefile" ;; | |
8971 | "tools/genprops/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genprops/Makefile" ;; | |
8972 | "tools/gencase/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencase/Makefile" ;; | |
8973 | "tools/genbidi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genbidi/Makefile" ;; | |
8974 | "tools/genpname/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genpname/Makefile" ;; | |
8975 | "tools/genbrk/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; | |
8976 | "tools/gensprep/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; | |
8977 | "tools/icupkg/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; | |
8978 | "tools/icuswap/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; | |
8979 | "tools/pkgdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; | |
8980 | "tools/tzcode/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; | |
8981 | "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
8982 | "test/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; | |
8983 | "test/testdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; | |
8984 | "test/testdata/pkgdata.inc" ) CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdata.inc" ;; | |
8985 | "test/hdrtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; | |
8986 | "test/intltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; | |
8987 | "test/cintltst/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; | |
8988 | "test/iotest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; | |
8989 | "test/letest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; | |
8990 | "test/perf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;; | |
8991 | "test/perf/collationperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; | |
8992 | "test/perf/ubrkperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;; | |
8993 | "test/perf/charperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;; | |
8994 | "test/perf/convperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;; | |
8995 | "test/perf/normperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;; | |
8996 | "test/perf/unisetperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;; | |
8997 | "test/perf/usetperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;; | |
8998 | "test/perf/ustrperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;; | |
8999 | "test/perf/utfperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;; | |
9000 | "test/perf/strsrchperf/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; | |
9001 | "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; | |
9002 | "samples/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; | |
9003 | "samples/cal/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; | |
9004 | "samples/layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; | |
9005 | "common/unicode/platform.h" ) CONFIG_FILES="$CONFIG_FILES common/unicode/platform.h" ;; | |
9006 | "common/icucfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS common/icucfg.h" ;; | |
9007 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
9008 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
9009 | { (exit 1); exit 1; }; };; | |
9010 | esac | |
9011 | done | |
9012 | ||
9013 | # If the user did not use the arguments to specify the items to instantiate, | |
9014 | # then the envvar interface is used. Set only those that are not. | |
9015 | # We use the long form for the default assignment because of an extremely | |
9016 | # bizarre bug on SunOS 4.1.3. | |
9017 | if $ac_need_defaults; then | |
9018 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9019 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9020 | fi | |
9021 | ||
9022 | # Have a temporary directory for convenience. Make it in the build tree | |
9023 | # simply because there is no reason to put it here, and in addition, | |
9024 | # creating and moving files from /tmp can sometimes cause problems. | |
9025 | # Create a temporary directory, and hook for its removal unless debugging. | |
9026 | $debug || | |
9027 | { | |
9028 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
9029 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
9030 | } | |
9031 | ||
9032 | # Create a (secure) tmp directory for tmp files. | |
9033 | ||
9034 | { | |
9035 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
9036 | test -n "$tmp" && test -d "$tmp" | |
9037 | } || | |
9038 | { | |
9039 | tmp=./confstat$$-$RANDOM | |
9040 | (umask 077 && mkdir $tmp) | |
9041 | } || | |
9042 | { | |
9043 | echo "$me: cannot create a temporary directory in ." >&2 | |
9044 | { (exit 1); exit 1; } | |
9045 | } | |
9046 | ||
9047 | _ACEOF | |
9048 | ||
9049 | cat >>$CONFIG_STATUS <<_ACEOF | |
9050 | ||
9051 | # | |
9052 | # CONFIG_FILES section. | |
9053 | # | |
9054 | ||
9055 | # No need to generate the scripts if there are no CONFIG_FILES. | |
9056 | # This happens for instance when ./config.status config.h | |
9057 | if test -n "\$CONFIG_FILES"; then | |
9058 | # Protect against being on the right side of a sed subst in config.status. | |
9059 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
9060 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
9061 | s,@SHELL@,$SHELL,;t t | |
9062 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
9063 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
9064 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
9065 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
9066 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
9067 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
9068 | s,@exec_prefix@,$exec_prefix,;t t | |
9069 | s,@prefix@,$prefix,;t t | |
9070 | s,@program_transform_name@,$program_transform_name,;t t | |
9071 | s,@bindir@,$bindir,;t t | |
9072 | s,@sbindir@,$sbindir,;t t | |
9073 | s,@libexecdir@,$libexecdir,;t t | |
9074 | s,@datarootdir@,$datarootdir,;t t | |
9075 | s,@datadir@,$datadir,;t t | |
9076 | s,@sysconfdir@,$sysconfdir,;t t | |
9077 | s,@sharedstatedir@,$sharedstatedir,;t t | |
9078 | s,@localstatedir@,$localstatedir,;t t | |
9079 | s,@libdir@,$libdir,;t t | |
9080 | s,@includedir@,$includedir,;t t | |
9081 | s,@oldincludedir@,$oldincludedir,;t t | |
9082 | s,@infodir@,$infodir,;t t | |
9083 | s,@mandir@,$mandir,;t t | |
9084 | s,@build_alias@,$build_alias,;t t | |
9085 | s,@host_alias@,$host_alias,;t t | |
9086 | s,@target_alias@,$target_alias,;t t | |
9087 | s,@DEFS@,$DEFS,;t t | |
9088 | s,@ECHO_C@,$ECHO_C,;t t | |
9089 | s,@ECHO_N@,$ECHO_N,;t t | |
9090 | s,@ECHO_T@,$ECHO_T,;t t | |
9091 | s,@LIBS@,$LIBS,;t t | |
9092 | s,@PACKAGE@,$PACKAGE,;t t | |
9093 | s,@VERSION@,$VERSION,;t t | |
9094 | s,@LIB_VERSION@,$LIB_VERSION,;t t | |
9095 | s,@LIB_VERSION_MAJOR@,$LIB_VERSION_MAJOR,;t t | |
9096 | s,@UNICODE_VERSION@,$UNICODE_VERSION,;t t | |
9097 | s,@build@,$build,;t t | |
9098 | s,@build_cpu@,$build_cpu,;t t | |
9099 | s,@build_vendor@,$build_vendor,;t t | |
9100 | s,@build_os@,$build_os,;t t | |
9101 | s,@host@,$host,;t t | |
9102 | s,@host_cpu@,$host_cpu,;t t | |
9103 | s,@host_vendor@,$host_vendor,;t t | |
9104 | s,@host_os@,$host_os,;t t | |
9105 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
9106 | s,@CC@,$CC,;t t | |
9107 | s,@CFLAGS@,$CFLAGS,;t t | |
9108 | s,@LDFLAGS@,$LDFLAGS,;t t | |
9109 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
9110 | s,@EXEEXT@,$EXEEXT,;t t | |
9111 | s,@OBJEXT@,$OBJEXT,;t t | |
9112 | s,@CXX@,$CXX,;t t | |
9113 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
9114 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
9115 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
9116 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
9117 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
9118 | s,@U_MAKE@,$U_MAKE,;t t | |
9119 | s,@DOXYGEN@,$DOXYGEN,;t t | |
9120 | s,@ARFLAGS@,$ARFLAGS,;t t | |
9121 | s,@COMPILE_LINK_ENVVAR@,$COMPILE_LINK_ENVVAR,;t t | |
9122 | s,@LIB_M@,$LIB_M,;t t | |
9123 | s,@ENABLE_SHARED@,$ENABLE_SHARED,;t t | |
9124 | s,@ENABLE_STATIC@,$ENABLE_STATIC,;t t | |
9125 | s,@ENABLE_DEBUG@,$ENABLE_DEBUG,;t t | |
9126 | s,@ENABLE_RELEASE@,$ENABLE_RELEASE,;t t | |
9127 | s,@U_DEFAULT_SHOW_DRAFT@,$U_DEFAULT_SHOW_DRAFT,;t t | |
9128 | s,@U_USE_GCC_VISIBILITY_ATTRIBUTE@,$U_USE_GCC_VISIBILITY_ATTRIBUTE,;t t | |
9129 | s,@LIBCFLAGS@,$LIBCFLAGS,;t t | |
9130 | s,@LIBCXXFLAGS@,$LIBCXXFLAGS,;t t | |
9131 | s,@RANLIB@,$RANLIB,;t t | |
9132 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9133 | s,@AR@,$AR,;t t | |
9134 | s,@U_DISABLE_RENAMING@,$U_DISABLE_RENAMING,;t t | |
9135 | s,@U_ENABLE_TRACING@,$U_ENABLE_TRACING,;t t | |
9136 | s,@ENABLE_RPATH@,$ENABLE_RPATH,;t t | |
9137 | s,@U_INLINE@,$U_INLINE,;t t | |
9138 | s,@THREADS_TRUE@,$THREADS_TRUE,;t t | |
9139 | s,@ICU_USE_THREADS@,$ICU_USE_THREADS,;t t | |
9140 | s,@LIB_THREAD@,$LIB_THREAD,;t t | |
9141 | s,@HAVE_MMAP@,$HAVE_MMAP,;t t | |
9142 | s,@GENCCODE_ASSEMBLY@,$GENCCODE_ASSEMBLY,;t t | |
9143 | s,@CPP@,$CPP,;t t | |
9144 | s,@EGREP@,$EGREP,;t t | |
9145 | s,@U_HAVE_INTTYPES_H@,$U_HAVE_INTTYPES_H,;t t | |
9146 | s,@U_IOSTREAM_SOURCE@,$U_IOSTREAM_SOURCE,;t t | |
9147 | s,@U_IS_BIG_ENDIAN@,$U_IS_BIG_ENDIAN,;t t | |
9148 | s,@U_HAVE_NL_LANGINFO_CODESET@,$U_HAVE_NL_LANGINFO_CODESET,;t t | |
9149 | s,@U_NL_LANGINFO_CODESET@,$U_NL_LANGINFO_CODESET,;t t | |
9150 | s,@U_HAVE_NAMESPACE@,$U_HAVE_NAMESPACE,;t t | |
9151 | s,@U_OVERRIDE_CXX_ALLOCATION@,$U_OVERRIDE_CXX_ALLOCATION,;t t | |
9152 | s,@U_HAVE_PLACEMENT_NEW@,$U_HAVE_PLACEMENT_NEW,;t t | |
9153 | s,@U_HAVE_POPEN@,$U_HAVE_POPEN,;t t | |
9154 | s,@U_HAVE_TZSET@,$U_HAVE_TZSET,;t t | |
9155 | s,@U_TZSET@,$U_TZSET,;t t | |
9156 | s,@U_HAVE_TZNAME@,$U_HAVE_TZNAME,;t t | |
9157 | s,@U_TZNAME@,$U_TZNAME,;t t | |
9158 | s,@U_HAVE_TIMEZONE@,$U_HAVE_TIMEZONE,;t t | |
9159 | s,@U_TIMEZONE@,$U_TIMEZONE,;t t | |
9160 | s,@HAVE_INT8_T@,$HAVE_INT8_T,;t t | |
9161 | s,@HAVE_UINT8_T@,$HAVE_UINT8_T,;t t | |
9162 | s,@HAVE_INT16_T@,$HAVE_INT16_T,;t t | |
9163 | s,@HAVE_UINT16_T@,$HAVE_UINT16_T,;t t | |
9164 | s,@HAVE_INT32_T@,$HAVE_INT32_T,;t t | |
9165 | s,@HAVE_UINT32_T@,$HAVE_UINT32_T,;t t | |
9166 | s,@HAVE_INT64_T@,$HAVE_INT64_T,;t t | |
9167 | s,@HAVE_UINT64_T@,$HAVE_UINT64_T,;t t | |
9168 | s,@U_HAVE_WCHAR_H@,$U_HAVE_WCHAR_H,;t t | |
9169 | s,@U_HAVE_WCSCPY@,$U_HAVE_WCSCPY,;t t | |
9170 | s,@U_SIZEOF_WCHAR_T@,$U_SIZEOF_WCHAR_T,;t t | |
9171 | s,@U_CHECK_UTF16_STRING@,$U_CHECK_UTF16_STRING,;t t | |
9172 | s,@EXTRAS_TRUE@,$EXTRAS_TRUE,;t t | |
9173 | s,@ICUIO_TRUE@,$ICUIO_TRUE,;t t | |
9174 | s,@LAYOUT_TRUE@,$LAYOUT_TRUE,;t t | |
9175 | s,@pkgicudatadir@,$pkgicudatadir,;t t | |
9176 | s,@thepkgicudatadir@,$thepkgicudatadir,;t t | |
9177 | s,@DATA_PACKAGING_MODE@,$DATA_PACKAGING_MODE,;t t | |
9178 | s,@ICULIBSUFFIX@,$ICULIBSUFFIX,;t t | |
9179 | s,@U_HAVE_LIB_SUFFIX@,$U_HAVE_LIB_SUFFIX,;t t | |
9180 | s,@ICULIBSUFFIXCNAME@,$ICULIBSUFFIXCNAME,;t t | |
9181 | s,@TESTS_TRUE@,$TESTS_TRUE,;t t | |
9182 | s,@SAMPLES_TRUE@,$SAMPLES_TRUE,;t t | |
9183 | s,@ICUDATA_CHAR@,$ICUDATA_CHAR,;t t | |
9184 | s,@platform@,$platform,;t t | |
9185 | s,@platform_make_fragment_name@,$platform_make_fragment_name,;t t | |
9186 | s,@platform_make_fragment@,$platform_make_fragment,;t t | |
9187 | s,@LIBOBJS@,$LIBOBJS,;t t | |
9188 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9189 | CEOF | |
9190 | ||
9191 | _ACEOF | |
9192 | ||
9193 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9194 | # Split the substitutions into bite-sized pieces for seds with | |
9195 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9196 | ac_max_sed_lines=48 | |
9197 | ac_sed_frag=1 # Number of current file. | |
9198 | ac_beg=1 # First line for current file. | |
9199 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
9200 | ac_more_lines=: | |
9201 | ac_sed_cmds= | |
9202 | while $ac_more_lines; do | |
9203 | if test $ac_beg -gt 1; then | |
9204 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9205 | else | |
9206 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9207 | fi | |
9208 | if test ! -s $tmp/subs.frag; then | |
9209 | ac_more_lines=false | |
9210 | else | |
9211 | # The purpose of the label and of the branching condition is to | |
9212 | # speed up the sed processing (if there are no `@' at all, there | |
9213 | # is no need to browse any of the substitutions). | |
9214 | # These are the two extra sed commands mentioned above. | |
9215 | (echo ':t | |
9216 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
9217 | if test -z "$ac_sed_cmds"; then | |
9218 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
9219 | else | |
9220 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
9221 | fi | |
9222 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
9223 | ac_beg=$ac_end | |
9224 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9225 | fi | |
9226 | done | |
9227 | if test -z "$ac_sed_cmds"; then | |
9228 | ac_sed_cmds=cat | |
9229 | fi | |
9230 | fi # test -n "$CONFIG_FILES" | |
9231 | ||
9232 | _ACEOF | |
9233 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9234 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
9235 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9236 | case $ac_file in | |
9237 | - | *:- | *:-:* ) # input from stdin | |
9238 | cat >$tmp/stdin | |
9239 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9240 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9241 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9242 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9243 | * ) ac_file_in=$ac_file.in ;; | |
9244 | esac | |
9245 | ||
9246 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
9247 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9248 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9249 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9250 | X"$ac_file" : 'X\(//\)$' \| \ | |
9251 | X"$ac_file" : 'X\(/\)' \| \ | |
9252 | . : '\(.\)' 2>/dev/null || | |
9253 | echo X"$ac_file" | | |
9254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9255 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9256 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9257 | /^X\(\/\).*/{ s//\1/; q; } | |
9258 | s/.*/./; q'` | |
9259 | { if $as_mkdir_p; then | |
9260 | mkdir -p "$ac_dir" | |
9261 | else | |
9262 | as_dir="$ac_dir" | |
9263 | as_dirs= | |
9264 | while test ! -d "$as_dir"; do | |
9265 | as_dirs="$as_dir $as_dirs" | |
9266 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9267 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9268 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9269 | X"$as_dir" : 'X\(//\)$' \| \ | |
9270 | X"$as_dir" : 'X\(/\)' \| \ | |
9271 | . : '\(.\)' 2>/dev/null || | |
9272 | echo X"$as_dir" | | |
9273 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9274 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9275 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9276 | /^X\(\/\).*/{ s//\1/; q; } | |
9277 | s/.*/./; q'` | |
9278 | done | |
9279 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9280 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9281 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9282 | { (exit 1); exit 1; }; }; } | |
9283 | ||
9284 | ac_builddir=. | |
9285 | ||
9286 | if test "$ac_dir" != .; then | |
9287 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9288 | # A "../" for each directory in $ac_dir_suffix. | |
9289 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9290 | else | |
9291 | ac_dir_suffix= ac_top_builddir= | |
9292 | fi | |
9293 | ||
9294 | case $srcdir in | |
9295 | .) # No --srcdir option. We are building in place. | |
9296 | ac_srcdir=. | |
9297 | if test -z "$ac_top_builddir"; then | |
9298 | ac_top_srcdir=. | |
9299 | else | |
9300 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9301 | fi ;; | |
9302 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9303 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9304 | ac_top_srcdir=$srcdir ;; | |
9305 | *) # Relative path. | |
9306 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9307 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9308 | esac | |
9309 | ||
9310 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9311 | # the directories may not exist. | |
9312 | case `pwd` in | |
9313 | .) ac_abs_builddir="$ac_dir";; | |
9314 | *) | |
9315 | case "$ac_dir" in | |
9316 | .) ac_abs_builddir=`pwd`;; | |
9317 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9318 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9319 | esac;; | |
9320 | esac | |
9321 | case $ac_abs_builddir in | |
9322 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9323 | *) | |
9324 | case ${ac_top_builddir}. in | |
9325 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9326 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9327 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9328 | esac;; | |
9329 | esac | |
9330 | case $ac_abs_builddir in | |
9331 | .) ac_abs_srcdir=$ac_srcdir;; | |
9332 | *) | |
9333 | case $ac_srcdir in | |
9334 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9335 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9336 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9337 | esac;; | |
9338 | esac | |
9339 | case $ac_abs_builddir in | |
9340 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9341 | *) | |
9342 | case $ac_top_srcdir in | |
9343 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9344 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9345 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9346 | esac;; | |
9347 | esac | |
9348 | ||
9349 | ||
9350 | case $INSTALL in | |
9351 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
9352 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
9353 | esac | |
9354 | ||
9355 | if test x"$ac_file" != x-; then | |
9356 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9357 | echo "$as_me: creating $ac_file" >&6;} | |
9358 | rm -f "$ac_file" | |
9359 | fi | |
9360 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9361 | # use $as_me), people would be surprised to read: | |
9362 | # /* config.h. Generated by config.status. */ | |
9363 | if test x"$ac_file" = x-; then | |
9364 | configure_input= | |
9365 | else | |
9366 | configure_input="$ac_file. " | |
9367 | fi | |
9368 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
9369 | sed 's,.*/,,'` by configure." | |
9370 | ||
9371 | # First look for the input files in the build tree, otherwise in the | |
9372 | # src tree. | |
9373 | ac_file_inputs=`IFS=: | |
9374 | for f in $ac_file_in; do | |
9375 | case $f in | |
9376 | -) echo $tmp/stdin ;; | |
9377 | [\\/$]*) | |
9378 | # Absolute (can't be DOS-style, as IFS=:) | |
9379 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9380 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9381 | { (exit 1); exit 1; }; } | |
9382 | echo "$f";; | |
9383 | *) # Relative | |
9384 | if test -f "$f"; then | |
9385 | # Build tree | |
9386 | echo "$f" | |
9387 | elif test -f "$srcdir/$f"; then | |
9388 | # Source tree | |
9389 | echo "$srcdir/$f" | |
9390 | else | |
9391 | # /dev/null tree | |
9392 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9393 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9394 | { (exit 1); exit 1; }; } | |
9395 | fi;; | |
9396 | esac | |
9397 | done` || { (exit 1); exit 1; } | |
9398 | _ACEOF | |
9399 | cat >>$CONFIG_STATUS <<_ACEOF | |
9400 | sed "$ac_vpsub | |
9401 | $extrasub | |
9402 | _ACEOF | |
9403 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9404 | :t | |
9405 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
9406 | s,@configure_input@,$configure_input,;t t | |
9407 | s,@srcdir@,$ac_srcdir,;t t | |
9408 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
9409 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
9410 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
9411 | s,@builddir@,$ac_builddir,;t t | |
9412 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
9413 | s,@top_builddir@,$ac_top_builddir,;t t | |
9414 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9415 | s,@INSTALL@,$ac_INSTALL,;t t | |
9416 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
9417 | rm -f $tmp/stdin | |
9418 | if test x"$ac_file" != x-; then | |
9419 | mv $tmp/out $ac_file | |
9420 | else | |
9421 | cat $tmp/out | |
9422 | rm -f $tmp/out | |
9423 | fi | |
9424 | ||
9425 | done | |
9426 | _ACEOF | |
9427 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9428 | ||
9429 | # | |
9430 | # CONFIG_HEADER section. | |
9431 | # | |
9432 | ||
9433 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9434 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9435 | # | |
9436 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9437 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9438 | ac_dB='[ ].*$,\1#\2' | |
9439 | ac_dC=' ' | |
9440 | ac_dD=',;t' | |
9441 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9442 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9443 | ac_uB='$,\1#\2define\3' | |
9444 | ac_uC=' ' | |
9445 | ac_uD=',;t' | |
9446 | ||
9447 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
9448 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9449 | case $ac_file in | |
9450 | - | *:- | *:-:* ) # input from stdin | |
9451 | cat >$tmp/stdin | |
9452 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9453 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9454 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9455 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9456 | * ) ac_file_in=$ac_file.in ;; | |
9457 | esac | |
9458 | ||
9459 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9460 | echo "$as_me: creating $ac_file" >&6;} | |
9461 | ||
9462 | # First look for the input files in the build tree, otherwise in the | |
9463 | # src tree. | |
9464 | ac_file_inputs=`IFS=: | |
9465 | for f in $ac_file_in; do | |
9466 | case $f in | |
9467 | -) echo $tmp/stdin ;; | |
9468 | [\\/$]*) | |
9469 | # Absolute (can't be DOS-style, as IFS=:) | |
9470 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9471 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9472 | { (exit 1); exit 1; }; } | |
9473 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
9474 | echo "$f";; | |
9475 | *) # Relative | |
9476 | if test -f "$f"; then | |
9477 | # Build tree | |
9478 | echo "$f" | |
9479 | elif test -f "$srcdir/$f"; then | |
9480 | # Source tree | |
9481 | echo "$srcdir/$f" | |
9482 | else | |
9483 | # /dev/null tree | |
9484 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9485 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9486 | { (exit 1); exit 1; }; } | |
9487 | fi;; | |
9488 | esac | |
9489 | done` || { (exit 1); exit 1; } | |
9490 | # Remove the trailing spaces. | |
9491 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9492 | ||
9493 | _ACEOF | |
9494 | ||
9495 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9496 | # `conftest.undefs', that substitutes the proper values into | |
9497 | # config.h.in to produce config.h. The first handles `#define' | |
9498 | # templates, and the second `#undef' templates. | |
9499 | # And first: Protect against being on the right side of a sed subst in | |
9500 | # config.status. Protect against being in an unquoted here document | |
9501 | # in config.status. | |
9502 | rm -f conftest.defines conftest.undefs | |
9503 | # Using a here document instead of a string reduces the quoting nightmare. | |
9504 | # Putting comments in sed scripts is not portable. | |
9505 | # | |
9506 | # `end' is used to avoid that the second main sed command (meant for | |
9507 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9508 | # See the Autoconf documentation for `clear'. | |
9509 | cat >confdef2sed.sed <<\_ACEOF | |
9510 | s/[\\&,]/\\&/g | |
9511 | s,[\\$`],\\&,g | |
9512 | t clear | |
9513 | : clear | |
9514 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
9515 | t end | |
9516 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9517 | : end | |
9518 | _ACEOF | |
9519 | # If some macros were called several times there might be several times | |
9520 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9521 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9522 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9523 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9524 | rm -f confdef2sed.sed | |
9525 | ||
9526 | # This sed command replaces #undef with comments. This is necessary, for | |
9527 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9528 | # on some systems where configure will not decide to define it. | |
9529 | cat >>conftest.undefs <<\_ACEOF | |
9530 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
9531 | _ACEOF | |
9532 | ||
9533 | # Break up conftest.defines because some shells have a limit on the size | |
9534 | # of here documents, and old seds have small limits too (100 cmds). | |
9535 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9536 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9537 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9538 | echo ' :' >>$CONFIG_STATUS | |
9539 | rm -f conftest.tail | |
9540 | while grep . conftest.defines >/dev/null | |
9541 | do | |
9542 | # Write a limited-size here document to $tmp/defines.sed. | |
9543 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9544 | # Speed up: don't consider the non `#define' lines. | |
9545 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9546 | # Work around the forget-to-reset-the-flag bug. | |
9547 | echo 't clr' >>$CONFIG_STATUS | |
9548 | echo ': clr' >>$CONFIG_STATUS | |
9549 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9550 | echo 'CEOF | |
9551 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9552 | rm -f $tmp/in | |
9553 | mv $tmp/out $tmp/in | |
9554 | ' >>$CONFIG_STATUS | |
9555 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9556 | rm -f conftest.defines | |
9557 | mv conftest.tail conftest.defines | |
9558 | done | |
9559 | rm -f conftest.defines | |
9560 | echo ' fi # grep' >>$CONFIG_STATUS | |
9561 | echo >>$CONFIG_STATUS | |
9562 | ||
9563 | # Break up conftest.undefs because some shells have a limit on the size | |
9564 | # of here documents, and old seds have small limits too (100 cmds). | |
9565 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
9566 | rm -f conftest.tail | |
9567 | while grep . conftest.undefs >/dev/null | |
9568 | do | |
9569 | # Write a limited-size here document to $tmp/undefs.sed. | |
9570 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9571 | # Speed up: don't consider the non `#undef' | |
9572 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9573 | # Work around the forget-to-reset-the-flag bug. | |
9574 | echo 't clr' >>$CONFIG_STATUS | |
9575 | echo ': clr' >>$CONFIG_STATUS | |
9576 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
9577 | echo 'CEOF | |
9578 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
9579 | rm -f $tmp/in | |
9580 | mv $tmp/out $tmp/in | |
9581 | ' >>$CONFIG_STATUS | |
9582 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9583 | rm -f conftest.undefs | |
9584 | mv conftest.tail conftest.undefs | |
9585 | done | |
9586 | rm -f conftest.undefs | |
9587 | ||
9588 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9589 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9590 | # use $as_me), people would be surprised to read: | |
9591 | # /* config.h. Generated by config.status. */ | |
9592 | if test x"$ac_file" = x-; then | |
9593 | echo "/* Generated by configure. */" >$tmp/config.h | |
9594 | else | |
9595 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
9596 | fi | |
9597 | cat $tmp/in >>$tmp/config.h | |
9598 | rm -f $tmp/in | |
9599 | if test x"$ac_file" != x-; then | |
9600 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
9601 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9602 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9603 | else | |
9604 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9605 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9606 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9607 | X"$ac_file" : 'X\(//\)$' \| \ | |
9608 | X"$ac_file" : 'X\(/\)' \| \ | |
9609 | . : '\(.\)' 2>/dev/null || | |
9610 | echo X"$ac_file" | | |
9611 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9612 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9613 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9614 | /^X\(\/\).*/{ s//\1/; q; } | |
9615 | s/.*/./; q'` | |
9616 | { if $as_mkdir_p; then | |
9617 | mkdir -p "$ac_dir" | |
9618 | else | |
9619 | as_dir="$ac_dir" | |
9620 | as_dirs= | |
9621 | while test ! -d "$as_dir"; do | |
9622 | as_dirs="$as_dir $as_dirs" | |
9623 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9624 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9625 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9626 | X"$as_dir" : 'X\(//\)$' \| \ | |
9627 | X"$as_dir" : 'X\(/\)' \| \ | |
9628 | . : '\(.\)' 2>/dev/null || | |
9629 | echo X"$as_dir" | | |
9630 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9631 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9632 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9633 | /^X\(\/\).*/{ s//\1/; q; } | |
9634 | s/.*/./; q'` | |
9635 | done | |
9636 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9637 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9638 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9639 | { (exit 1); exit 1; }; }; } | |
9640 | ||
9641 | rm -f $ac_file | |
9642 | mv $tmp/config.h $ac_file | |
9643 | fi | |
9644 | else | |
9645 | cat $tmp/config.h | |
9646 | rm -f $tmp/config.h | |
9647 | fi | |
9648 | done | |
9649 | _ACEOF | |
9650 | ||
9651 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9652 | ||
9653 | { (exit 0); exit 0; } | |
9654 | _ACEOF | |
9655 | chmod +x $CONFIG_STATUS | |
9656 | ac_clean_files=$ac_clean_files_save | |
9657 | ||
9658 | ||
9659 | # configure is writing to config.log, and then calls config.status. | |
9660 | # config.status does its own redirection, appending to config.log. | |
9661 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9662 | # by configure, so config.status won't be able to write to it; its | |
9663 | # output is simply discarded. So we exec the FD to /dev/null, | |
9664 | # effectively closing config.log, so it can be properly (re)opened and | |
9665 | # appended to by config.status. When coming back to configure, we | |
9666 | # need to make the FD available again. | |
9667 | if test "$no_create" != yes; then | |
9668 | ac_cs_success=: | |
9669 | ac_config_status_args= | |
9670 | test "$silent" = yes && | |
9671 | ac_config_status_args="$ac_config_status_args --quiet" | |
9672 | exec 5>/dev/null | |
9673 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9674 | exec 5>>config.log | |
9675 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9676 | # would make configure fail if this is the last instruction. | |
9677 | $ac_cs_success || { (exit 1); exit 1; } | |
9678 | fi | |
9679 | ||
9680 | ||
9681 | if test $ICU_USE_THREADS = 0; then | |
9682 | 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 | |
9683 | fi | |
9684 | ||
9685 | if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then | |
9686 | echo "You must use $U_MAKE to build ICU." | |
9687 | else | |
9688 | echo "WARNING: $U_MAKE may not be GNU make." | |
9689 | echo "This may cause ICU to fail to build. Please make sure that GNU make" | |
9690 | echo "is in your PATH so that this configure script can detect its location." | |
9691 | fi | |
9692 | ||
9693 | $as_unset _CXX_CXXSUFFIX |