]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | #! /bin/sh |
b75a7d8f | 2 | # Guess values for system-dependent variables and create Makefiles. |
73c04bcf | 3 | # Generated by GNU Autoconf 2.59. |
b75a7d8f | 4 | # |
73c04bcf | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
b75a7d8f A |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
73c04bcf A |
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` | |
b75a7d8f | 248 | |
73c04bcf A |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
b75a7d8f | 254 | ac_default_prefix=/usr/local |
73c04bcf A |
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 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 RANLIB ac_ct_RANLIB AR U_DISABLE_RENAMING U_ENABLE_TRACING ENABLE_RPATH U_INLINE THREADS_TRUE ICU_USE_THREADS HAVE_MMAP GENCCODE_ASSEMBLY CPP EGREP U_HAVE_INTTYPES_H U_IOSTREAM_SOURCE U_IS_BIG_ENDIAN U_HAVE_NL_LANGINFO 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 EXTRAS_TRUE ICUIO_TRUE LAYOUT_TRUE thedatadir 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 ld_rpath_suf AIX_SHLIB LIBOBJS LTLIBOBJS' | |
313 | ac_subst_files='' | |
b75a7d8f A |
314 | |
315 | # Initialize some variables set by options. | |
73c04bcf A |
316 | ac_init_help= |
317 | ac_init_version=false | |
b75a7d8f A |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
73c04bcf | 320 | cache_file=/dev/null |
b75a7d8f | 321 | exec_prefix=NONE |
b75a7d8f | 322 | no_create= |
b75a7d8f A |
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= | |
b75a7d8f A |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
73c04bcf A |
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. | |
b75a7d8f A |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
b75a7d8f A |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
b75a7d8f A |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
73c04bcf | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
b75a7d8f A |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
73c04bcf | 367 | case $ac_option in |
b75a7d8f A |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
73c04bcf | 372 | bindir=$ac_optarg ;; |
b75a7d8f A |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
73c04bcf | 375 | ac_prev=build_alias ;; |
b75a7d8f | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
73c04bcf | 377 | build_alias=$ac_optarg ;; |
b75a7d8f A |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
73c04bcf A |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
b75a7d8f A |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
73c04bcf | 393 | datadir=$ac_optarg ;; |
b75a7d8f A |
394 | |
395 | -disable-* | --disable-*) | |
73c04bcf | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b75a7d8f | 397 | # Reject names that are not valid shell variable names. |
73c04bcf A |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
b75a7d8f A |
403 | |
404 | -enable-* | --enable-*) | |
73c04bcf | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b75a7d8f | 406 | # Reject names that are not valid shell variable names. |
73c04bcf A |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
b75a7d8f A |
413 | *) ac_optarg=yes ;; |
414 | esac | |
73c04bcf | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
b75a7d8f A |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
73c04bcf | 424 | exec_prefix=$ac_optarg ;; |
b75a7d8f A |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
73c04bcf A |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
b75a7d8f A |
436 | |
437 | -host | --host | --hos | --ho) | |
73c04bcf | 438 | ac_prev=host_alias ;; |
b75a7d8f | 439 | -host=* | --host=* | --hos=* | --ho=*) |
73c04bcf | 440 | host_alias=$ac_optarg ;; |
b75a7d8f A |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
73c04bcf | 447 | includedir=$ac_optarg ;; |
b75a7d8f A |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
73c04bcf | 452 | infodir=$ac_optarg ;; |
b75a7d8f A |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
73c04bcf | 457 | libdir=$ac_optarg ;; |
b75a7d8f A |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
73c04bcf | 464 | libexecdir=$ac_optarg ;; |
b75a7d8f A |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
73c04bcf | 473 | localstatedir=$ac_optarg ;; |
b75a7d8f A |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
73c04bcf | 478 | mandir=$ac_optarg ;; |
b75a7d8f A |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
73c04bcf | 485 | | --no-cr | --no-c | -n) |
b75a7d8f A |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
73c04bcf | 499 | oldincludedir=$ac_optarg ;; |
b75a7d8f A |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
73c04bcf | 504 | prefix=$ac_optarg ;; |
b75a7d8f A |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
73c04bcf | 511 | program_prefix=$ac_optarg ;; |
b75a7d8f A |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
73c04bcf | 518 | program_suffix=$ac_optarg ;; |
b75a7d8f A |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
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=*) | |
73c04bcf | 535 | program_transform_name=$ac_optarg ;; |
b75a7d8f A |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
73c04bcf | 545 | sbindir=$ac_optarg ;; |
b75a7d8f A |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
73c04bcf | 556 | sharedstatedir=$ac_optarg ;; |
b75a7d8f A |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
73c04bcf | 561 | site=$ac_optarg ;; |
b75a7d8f A |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
73c04bcf | 566 | srcdir=$ac_optarg ;; |
b75a7d8f A |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
73c04bcf | 573 | sysconfdir=$ac_optarg ;; |
b75a7d8f A |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
73c04bcf | 576 | ac_prev=target_alias ;; |
b75a7d8f | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
73c04bcf | 578 | target_alias=$ac_optarg ;; |
b75a7d8f A |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
73c04bcf A |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
b75a7d8f A |
585 | |
586 | -with-* | --with-*) | |
73c04bcf | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b75a7d8f | 588 | # Reject names that are not valid shell variable names. |
73c04bcf A |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
b75a7d8f | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
73c04bcf A |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
b75a7d8f A |
595 | *) ac_optarg=yes ;; |
596 | esac | |
73c04bcf | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
b75a7d8f A |
598 | |
599 | -without-* | --without-*) | |
73c04bcf | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b75a7d8f | 601 | # Reject names that are not valid shell variable names. |
73c04bcf A |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
b75a7d8f A |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
73c04bcf | 617 | x_includes=$ac_optarg ;; |
b75a7d8f A |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
73c04bcf | 624 | x_libraries=$ac_optarg ;; |
b75a7d8f | 625 | |
73c04bcf A |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
629 | ;; |
630 | ||
73c04bcf A |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
b75a7d8f | 641 | *) |
73c04bcf A |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
b75a7d8f A |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
73c04bcf A |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
b75a7d8f | 656 | fi |
b75a7d8f | 657 | |
73c04bcf A |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
b75a7d8f | 668 | |
73c04bcf A |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
b75a7d8f | 672 | do |
73c04bcf A |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
b75a7d8f A |
678 | esac |
679 | done | |
680 | ||
73c04bcf A |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
b75a7d8f | 698 | |
73c04bcf A |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
b75a7d8f | 703 | |
b75a7d8f A |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
73c04bcf A |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
b75a7d8f A |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
73c04bcf A |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
b75a7d8f | 732 | else |
73c04bcf A |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
735 | fi |
736 | fi | |
73c04bcf A |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CXX_set=${CXX+set} | |
770 | ac_env_CXX_value=$CXX | |
771 | ac_cv_env_CXX_set=${CXX+set} | |
772 | ac_cv_env_CXX_value=$CXX | |
773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
774 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
777 | ac_env_CPP_set=${CPP+set} | |
778 | ac_env_CPP_value=$CPP | |
779 | ac_cv_env_CPP_set=${CPP+set} | |
780 | ac_cv_env_CPP_value=$CPP | |
b75a7d8f | 781 | |
73c04bcf A |
782 | # |
783 | # Report the --help message. | |
784 | # | |
785 | if test "$ac_init_help" = "long"; then | |
786 | # Omit some internal or obsolete options to make the list less imposing. | |
787 | # This message is too long to be a string in the A/UX 3.1 sh. | |
788 | cat <<_ACEOF | |
789 | \`configure' configures this package to adapt to many kinds of systems. | |
790 | ||
791 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
792 | ||
793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
794 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
795 | ||
796 | Defaults for the options are specified in brackets. | |
797 | ||
798 | Configuration: | |
799 | -h, --help display this help and exit | |
800 | --help=short display options specific to this package | |
801 | --help=recursive display the short help of all the included packages | |
802 | -V, --version display version information and exit | |
803 | -q, --quiet, --silent do not print \`checking...' messages | |
804 | --cache-file=FILE cache test results in FILE [disabled] | |
805 | -C, --config-cache alias for \`--cache-file=config.cache' | |
806 | -n, --no-create do not create output files | |
807 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
808 | ||
809 | _ACEOF | |
810 | ||
811 | cat <<_ACEOF | |
812 | Installation directories: | |
813 | --prefix=PREFIX install architecture-independent files in PREFIX | |
814 | [$ac_default_prefix] | |
815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
816 | [PREFIX] | |
817 | ||
818 | By default, \`make install' will install all the files in | |
819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
821 | for instance \`--prefix=\$HOME'. | |
822 | ||
823 | For better control, use the options below. | |
824 | ||
825 | Fine tuning of the installation directories: | |
826 | --bindir=DIR user executables [EPREFIX/bin] | |
827 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
828 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
829 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
833 | --libdir=DIR object code libraries [EPREFIX/lib] | |
834 | --includedir=DIR C header files [PREFIX/include] | |
835 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
836 | --infodir=DIR info documentation [PREFIX/info] | |
837 | --mandir=DIR man documentation [PREFIX/man] | |
838 | _ACEOF | |
839 | ||
840 | cat <<\_ACEOF | |
841 | ||
842 | System types: | |
843 | --build=BUILD configure for building on BUILD [guessed] | |
844 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
845 | _ACEOF | |
846 | fi | |
847 | ||
848 | if test -n "$ac_init_help"; then | |
849 | ||
850 | cat <<\_ACEOF | |
851 | ||
852 | Optional Features: | |
853 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
854 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
855 | --enable-strict compile with strict compiler options default=no | |
856 | --enable-64bit-libs build 64-bit libraries default=yes | |
857 | --enable-shared build shared libraries default=yes | |
858 | --enable-static build static libraries default=no | |
859 | --enable-debug build debug libraries default=no | |
860 | --enable-release build release libraries default=yes | |
861 | --enable-draft enable draft APIs default=yes | |
862 | --enable-renaming add a version suffix to symbols default=yes | |
863 | --enable-tracing enable function and data tracing default=yes | |
864 | --enable-rpath use rpath when linking default is only if necessary | |
865 | --enable-threads build ICU with thread safety default=yes | |
866 | --enable-extras build ICU extras default=yes | |
867 | --enable-icuio build ICU's icuio library default=yes | |
868 | --enable-layout build ICU's layout library default=yes | |
869 | --enable-tests build ICU tests default=yes | |
870 | --enable-samples build ICU samples default=yes | |
871 | Additionally, the variable FORCE_LIBS may be set before calling configure. If set, it will REPLACE any automatic list of libraries. | |
872 | ||
873 | Optional Packages: | |
874 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
875 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
876 | --with-iostream=version specify the version of iostream to use (none, old, std, auto) default=auto | |
877 | --with-data-packaging=type specify how to package ICU data (files, archive, library, auto) default=auto | |
878 | --with-library-suffix=suffix tag a suffix to the library names default= | |
879 | ||
880 | Some influential environment variables: | |
881 | CC C compiler command | |
882 | CFLAGS C compiler flags | |
883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
884 | nonstandard directory <lib dir> | |
885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
886 | headers in a nonstandard directory <include dir> | |
887 | CXX C++ compiler command | |
888 | CXXFLAGS C++ compiler flags | |
889 | CPP C preprocessor | |
890 | ||
891 | Use these variables to override the choices made by `configure' or to help | |
892 | it to find libraries and programs with nonstandard names/locations. | |
893 | ||
894 | _ACEOF | |
895 | fi | |
896 | ||
897 | if test "$ac_init_help" = "recursive"; then | |
898 | # If there are subdirs, report their specific --help. | |
899 | ac_popdir=`pwd` | |
900 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
901 | test -d $ac_dir || continue | |
902 | ac_builddir=. | |
903 | ||
904 | if test "$ac_dir" != .; then | |
905 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
906 | # A "../" for each directory in $ac_dir_suffix. | |
907 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
908 | else | |
909 | ac_dir_suffix= ac_top_builddir= | |
910 | fi | |
911 | ||
912 | case $srcdir in | |
913 | .) # No --srcdir option. We are building in place. | |
914 | ac_srcdir=. | |
915 | if test -z "$ac_top_builddir"; then | |
916 | ac_top_srcdir=. | |
917 | else | |
918 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
919 | fi ;; | |
920 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
921 | ac_srcdir=$srcdir$ac_dir_suffix; | |
922 | ac_top_srcdir=$srcdir ;; | |
923 | *) # Relative path. | |
924 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
925 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
926 | esac | |
927 | ||
928 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
929 | # the directories may not exist. | |
930 | case `pwd` in | |
931 | .) ac_abs_builddir="$ac_dir";; | |
932 | *) | |
933 | case "$ac_dir" in | |
934 | .) ac_abs_builddir=`pwd`;; | |
935 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
936 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
937 | esac;; | |
938 | esac | |
939 | case $ac_abs_builddir in | |
940 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
941 | *) | |
942 | case ${ac_top_builddir}. in | |
943 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
944 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
945 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
946 | esac;; | |
947 | esac | |
948 | case $ac_abs_builddir in | |
949 | .) ac_abs_srcdir=$ac_srcdir;; | |
950 | *) | |
951 | case $ac_srcdir in | |
952 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
953 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
954 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
955 | esac;; | |
956 | esac | |
957 | case $ac_abs_builddir in | |
958 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
959 | *) | |
960 | case $ac_top_srcdir in | |
961 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
962 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
963 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
964 | esac;; | |
965 | esac | |
966 | ||
967 | cd $ac_dir | |
968 | # Check for guested configure; otherwise get Cygnus style configure. | |
969 | if test -f $ac_srcdir/configure.gnu; then | |
970 | echo | |
971 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
972 | elif test -f $ac_srcdir/configure; then | |
973 | echo | |
974 | $SHELL $ac_srcdir/configure --help=recursive | |
975 | elif test -f $ac_srcdir/configure.ac || | |
976 | test -f $ac_srcdir/configure.in; then | |
977 | echo | |
978 | $ac_configure --help | |
979 | else | |
980 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
981 | fi | |
982 | cd $ac_popdir | |
983 | done | |
984 | fi | |
985 | ||
986 | test -n "$ac_init_help" && exit 0 | |
987 | if $ac_init_version; then | |
988 | cat <<\_ACEOF | |
989 | ||
990 | Copyright (C) 2003 Free Software Foundation, Inc. | |
991 | This configure script is free software; the Free Software Foundation | |
992 | gives unlimited permission to copy, distribute and modify it. | |
993 | _ACEOF | |
994 | exit 0 | |
995 | fi | |
996 | exec 5>config.log | |
997 | cat >&5 <<_ACEOF | |
998 | This file contains any messages produced by compilers while | |
999 | running configure, to aid debugging if configure makes a mistake. | |
1000 | ||
1001 | It was created by $as_me, which was | |
1002 | generated by GNU Autoconf 2.59. Invocation command line was | |
1003 | ||
1004 | $ $0 $@ | |
1005 | ||
1006 | _ACEOF | |
1007 | { | |
1008 | cat <<_ASUNAME | |
1009 | ## --------- ## | |
1010 | ## Platform. ## | |
1011 | ## --------- ## | |
1012 | ||
1013 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1014 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1015 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1016 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1017 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1018 | ||
1019 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1020 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1023 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1024 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1025 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1026 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1027 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1028 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1029 | ||
1030 | _ASUNAME | |
1031 | ||
1032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1033 | for as_dir in $PATH | |
1034 | do | |
1035 | IFS=$as_save_IFS | |
1036 | test -z "$as_dir" && as_dir=. | |
1037 | echo "PATH: $as_dir" | |
1038 | done | |
1039 | ||
1040 | } >&5 | |
1041 | ||
1042 | cat >&5 <<_ACEOF | |
1043 | ||
1044 | ||
1045 | ## ----------- ## | |
1046 | ## Core tests. ## | |
1047 | ## ----------- ## | |
1048 | ||
1049 | _ACEOF | |
1050 | ||
1051 | ||
1052 | # Keep a trace of the command line. | |
1053 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1054 | # Strip out --silent because we don't want to record it for future runs. | |
1055 | # Also quote any args containing shell meta-characters. | |
1056 | # Make two passes to allow for proper duplicate-argument suppression. | |
1057 | ac_configure_args= | |
1058 | ac_configure_args0= | |
1059 | ac_configure_args1= | |
1060 | ac_sep= | |
1061 | ac_must_keep_next=false | |
1062 | for ac_pass in 1 2 | |
1063 | do | |
1064 | for ac_arg | |
1065 | do | |
1066 | case $ac_arg in | |
1067 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1069 | | -silent | --silent | --silen | --sile | --sil) | |
1070 | continue ;; | |
1071 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1072 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1073 | esac | |
1074 | case $ac_pass in | |
1075 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1076 | 2) | |
1077 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1078 | if test $ac_must_keep_next = true; then | |
1079 | ac_must_keep_next=false # Got value, back to normal. | |
1080 | else | |
1081 | case $ac_arg in | |
1082 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1083 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1084 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1085 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1086 | case "$ac_configure_args0 " in | |
1087 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1088 | esac | |
1089 | ;; | |
1090 | -* ) ac_must_keep_next=true ;; | |
1091 | esac | |
1092 | fi | |
1093 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1094 | # Get rid of the leading space. | |
1095 | ac_sep=" " | |
1096 | ;; | |
1097 | esac | |
1098 | done | |
1099 | done | |
1100 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1101 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1102 | ||
1103 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1104 | # config.log. We remove comments because anyway the quotes in there | |
1105 | # would cause problems or look ugly. | |
1106 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1107 | # such as our DU 5.0 friend, will then `close' the trap. | |
1108 | trap 'exit_status=$? | |
1109 | # Save into config.log some information that might help in debugging. | |
1110 | { | |
1111 | echo | |
1112 | ||
1113 | cat <<\_ASBOX | |
1114 | ## ---------------- ## | |
1115 | ## Cache variables. ## | |
1116 | ## ---------------- ## | |
1117 | _ASBOX | |
1118 | echo | |
1119 | # The following way of writing the cache mishandles newlines in values, | |
1120 | { | |
1121 | (set) 2>&1 | | |
1122 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1123 | *ac_space=\ *) | |
1124 | sed -n \ | |
1125 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1127 | ;; | |
1128 | *) | |
1129 | sed -n \ | |
1130 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1131 | ;; | |
1132 | esac; | |
1133 | } | |
1134 | echo | |
1135 | ||
1136 | cat <<\_ASBOX | |
1137 | ## ----------------- ## | |
1138 | ## Output variables. ## | |
1139 | ## ----------------- ## | |
1140 | _ASBOX | |
1141 | echo | |
1142 | for ac_var in $ac_subst_vars | |
1143 | do | |
1144 | eval ac_val=$`echo $ac_var` | |
1145 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1146 | done | sort | |
1147 | echo | |
1148 | ||
1149 | if test -n "$ac_subst_files"; then | |
1150 | cat <<\_ASBOX | |
1151 | ## ------------- ## | |
1152 | ## Output files. ## | |
1153 | ## ------------- ## | |
1154 | _ASBOX | |
1155 | echo | |
1156 | for ac_var in $ac_subst_files | |
1157 | do | |
1158 | eval ac_val=$`echo $ac_var` | |
1159 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1160 | done | sort | |
1161 | echo | |
1162 | fi | |
1163 | ||
1164 | if test -s confdefs.h; then | |
1165 | cat <<\_ASBOX | |
1166 | ## ----------- ## | |
1167 | ## confdefs.h. ## | |
1168 | ## ----------- ## | |
1169 | _ASBOX | |
1170 | echo | |
1171 | sed "/^$/d" confdefs.h | sort | |
1172 | echo | |
1173 | fi | |
1174 | test "$ac_signal" != 0 && | |
1175 | echo "$as_me: caught signal $ac_signal" | |
1176 | echo "$as_me: exit $exit_status" | |
1177 | } >&5 | |
1178 | rm -f core *.core && | |
1179 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1180 | exit $exit_status | |
1181 | ' 0 | |
1182 | for ac_signal in 1 2 13 15; do | |
1183 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1184 | done | |
1185 | ac_signal=0 | |
1186 | ||
1187 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1188 | rm -rf conftest* confdefs.h | |
1189 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1190 | echo >confdefs.h | |
1191 | ||
1192 | # Predefined preprocessor variables. | |
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | # Let the site file select an alternate cache file if it wants to. | |
b75a7d8f A |
1220 | # Prefer explicitly selected file to automatically selected ones. |
1221 | if test -z "$CONFIG_SITE"; then | |
1222 | if test "x$prefix" != xNONE; then | |
1223 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1224 | else | |
1225 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1226 | fi | |
1227 | fi | |
1228 | for ac_site_file in $CONFIG_SITE; do | |
1229 | if test -r "$ac_site_file"; then | |
73c04bcf A |
1230 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1231 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1232 | sed 's/^/| /' "$ac_site_file" >&5 | |
b75a7d8f A |
1233 | . "$ac_site_file" |
1234 | fi | |
1235 | done | |
1236 | ||
1237 | if test -r "$cache_file"; then | |
73c04bcf A |
1238 | # Some versions of bash will fail to source /dev/null (special |
1239 | # files actually), so we avoid doing that. | |
1240 | if test -f "$cache_file"; then | |
1241 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1242 | echo "$as_me: loading cache $cache_file" >&6;} | |
1243 | case $cache_file in | |
1244 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1245 | *) . ./$cache_file;; | |
1246 | esac | |
1247 | fi | |
b75a7d8f | 1248 | else |
73c04bcf A |
1249 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1250 | echo "$as_me: creating cache $cache_file" >&6;} | |
1251 | >$cache_file | |
1252 | fi | |
1253 | ||
1254 | # Check that the precious variables saved in the cache have kept the same | |
1255 | # value. | |
1256 | ac_cache_corrupted=false | |
1257 | for ac_var in `(set) 2>&1 | | |
1258 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1259 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1260 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1261 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1262 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1263 | case $ac_old_set,$ac_new_set in | |
1264 | set,) | |
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1266 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1267 | ac_cache_corrupted=: ;; | |
1268 | ,set) | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1271 | ac_cache_corrupted=: ;; | |
1272 | ,);; | |
1273 | *) | |
1274 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1275 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1276 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1277 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1278 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1279 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1280 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1281 | ac_cache_corrupted=: | |
1282 | fi;; | |
1283 | esac | |
1284 | # Pass precious variables to config.status. | |
1285 | if test "$ac_new_set" = set; then | |
1286 | case $ac_new_val in | |
1287 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1288 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1289 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1290 | esac | |
1291 | case " $ac_configure_args " in | |
1292 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1293 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1294 | esac | |
1295 | fi | |
1296 | done | |
1297 | if $ac_cache_corrupted; then | |
1298 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1299 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1300 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1301 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1302 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
1303 | fi |
1304 | ||
1305 | ac_ext=c | |
b75a7d8f | 1306 | ac_cpp='$CPP $CPPFLAGS' |
73c04bcf A |
1307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
b75a7d8f A |
1319 | |
1320 | ||
1321 | ||
1322 | ||
73c04bcf A |
1323 | |
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ac_config_headers="$ac_config_headers common/icucfg.h" | |
1331 | ||
b75a7d8f A |
1332 | PACKAGE="icu" |
1333 | ||
1334 | ||
73c04bcf A |
1335 | echo "$as_me:$LINENO: checking for ICU version numbers" >&5 |
1336 | echo $ECHO_N "checking for ICU version numbers... $ECHO_C" >&6 | |
b75a7d8f A |
1337 | |
1338 | geticuversion() { | |
1339 | sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" | |
1340 | } | |
1341 | VERSION=`geticuversion $srcdir/common/unicode/uversion.h` | |
1342 | if test x"$VERSION" = x; then | |
1343 | VERSION=`geticuversion $srcdir/common/unicode/*.h` | |
1344 | if test x"$VERSION" = x; then | |
73c04bcf A |
1345 | { { echo "$as_me:$LINENO: error: Cannot determine ICU version number from header files" >&5 |
1346 | echo "$as_me: error: Cannot determine ICU version number from header files" >&2;} | |
1347 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
1348 | fi |
1349 | fi | |
1350 | LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'` | |
1351 | LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` | |
1352 | ||
1353 | ||
1354 | ||
73c04bcf A |
1355 | echo "$as_me:$LINENO: result: release $VERSION, library $LIB_VERSION" >&5 |
1356 | echo "${ECHO_T}release $VERSION, library $LIB_VERSION" >&6 | |
b75a7d8f | 1357 | |
73c04bcf | 1358 | UNICODE_VERSION="5.0" |
b75a7d8f A |
1359 | |
1360 | ||
73c04bcf A |
1361 | ac_aux_dir= |
1362 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1363 | if test -f $ac_dir/install-sh; then | |
1364 | ac_aux_dir=$ac_dir | |
1365 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1366 | break | |
1367 | elif test -f $ac_dir/install.sh; then | |
1368 | ac_aux_dir=$ac_dir | |
1369 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1370 | break | |
1371 | elif test -f $ac_dir/shtool; then | |
1372 | ac_aux_dir=$ac_dir | |
1373 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1374 | break | |
1375 | fi | |
1376 | done | |
1377 | if test -z "$ac_aux_dir"; then | |
1378 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1379 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1380 | { (exit 1); exit 1; }; } | |
b75a7d8f | 1381 | fi |
73c04bcf A |
1382 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1383 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1384 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1385 | ||
1386 | # Make sure we can run config.sub. | |
1387 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1388 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1389 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1390 | { (exit 1); exit 1; }; } | |
1391 | ||
1392 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1393 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1394 | if test "${ac_cv_build+set}" = set; then | |
1395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1396 | else | |
1397 | ac_cv_build_alias=$build_alias | |
1398 | test -z "$ac_cv_build_alias" && | |
1399 | ac_cv_build_alias=`$ac_config_guess` | |
1400 | test -z "$ac_cv_build_alias" && | |
1401 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1402 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1403 | { (exit 1); exit 1; }; } | |
1404 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1405 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1406 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1407 | { (exit 1); exit 1; }; } | |
1408 | ||
b75a7d8f | 1409 | fi |
73c04bcf A |
1410 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1411 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1412 | build=$ac_cv_build | |
1413 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1414 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1415 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1416 | ||
1417 | ||
1418 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1419 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1420 | if test "${ac_cv_host+set}" = set; then | |
1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1422 | else | |
1423 | ac_cv_host_alias=$host_alias | |
1424 | test -z "$ac_cv_host_alias" && | |
1425 | ac_cv_host_alias=$ac_cv_build_alias | |
1426 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1427 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1428 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1429 | { (exit 1); exit 1; }; } | |
1430 | ||
1431 | fi | |
1432 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1433 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1434 | host=$ac_cv_host | |
1435 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1436 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1437 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1438 | ||
1439 | ||
1440 | ||
1441 | ||
1442 | ||
1443 | _CXX_CXXSUFFIX=cc | |
1444 | export _CXX_CXXSUFFIX | |
1445 | ac_ext=c | |
1446 | ac_cpp='$CPP $CPPFLAGS' | |
1447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1450 | if test -n "$ac_tool_prefix"; then | |
1451 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1452 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1455 | if test "${ac_cv_prog_CC+set}" = set; then | |
1456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1457 | else | |
1458 | if test -n "$CC"; then | |
1459 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1460 | else | |
1461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1462 | for as_dir in $PATH | |
1463 | do | |
1464 | IFS=$as_save_IFS | |
1465 | test -z "$as_dir" && as_dir=. | |
1466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1468 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1470 | break 2 | |
1471 | fi | |
1472 | done | |
1473 | done | |
1474 | ||
1475 | fi | |
1476 | fi | |
1477 | CC=$ac_cv_prog_CC | |
b75a7d8f | 1478 | if test -n "$CC"; then |
73c04bcf A |
1479 | echo "$as_me:$LINENO: result: $CC" >&5 |
1480 | echo "${ECHO_T}$CC" >&6 | |
b75a7d8f | 1481 | else |
73c04bcf A |
1482 | echo "$as_me:$LINENO: result: no" >&5 |
1483 | echo "${ECHO_T}no" >&6 | |
b75a7d8f A |
1484 | fi |
1485 | ||
73c04bcf A |
1486 | fi |
1487 | if test -z "$ac_cv_prog_CC"; then | |
1488 | ac_ct_CC=$CC | |
1489 | # Extract the first word of "gcc", so it can be a program name with args. | |
1490 | set dummy gcc; ac_word=$2 | |
1491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1493 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1495 | else | |
1496 | if test -n "$ac_ct_CC"; then | |
1497 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1498 | else | |
1499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1500 | for as_dir in $PATH | |
1501 | do | |
1502 | IFS=$as_save_IFS | |
1503 | test -z "$as_dir" && as_dir=. | |
1504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1506 | ac_cv_prog_ac_ct_CC="gcc" | |
1507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1508 | break 2 | |
1509 | fi | |
1510 | done | |
1511 | done | |
1512 | ||
1513 | fi | |
1514 | fi | |
1515 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1516 | if test -n "$ac_ct_CC"; then | |
1517 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1518 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1519 | else | |
1520 | echo "$as_me:$LINENO: result: no" >&5 | |
1521 | echo "${ECHO_T}no" >&6 | |
1522 | fi | |
1523 | ||
1524 | CC=$ac_ct_CC | |
1525 | else | |
1526 | CC="$ac_cv_prog_CC" | |
1527 | fi | |
1528 | ||
1529 | if test -z "$CC"; then | |
1530 | if test -n "$ac_tool_prefix"; then | |
1531 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1532 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1535 | if test "${ac_cv_prog_CC+set}" = set; then | |
1536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1537 | else | |
1538 | if test -n "$CC"; then | |
1539 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1540 | else | |
1541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1542 | for as_dir in $PATH | |
1543 | do | |
1544 | IFS=$as_save_IFS | |
1545 | test -z "$as_dir" && as_dir=. | |
1546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1548 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1550 | break 2 | |
1551 | fi | |
1552 | done | |
1553 | done | |
1554 | ||
1555 | fi | |
1556 | fi | |
1557 | CC=$ac_cv_prog_CC | |
1558 | if test -n "$CC"; then | |
1559 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1560 | echo "${ECHO_T}$CC" >&6 | |
1561 | else | |
1562 | echo "$as_me:$LINENO: result: no" >&5 | |
1563 | echo "${ECHO_T}no" >&6 | |
1564 | fi | |
1565 | ||
1566 | fi | |
1567 | if test -z "$ac_cv_prog_CC"; then | |
1568 | ac_ct_CC=$CC | |
1569 | # Extract the first word of "cc", so it can be a program name with args. | |
1570 | set dummy cc; ac_word=$2 | |
1571 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | if test -n "$ac_ct_CC"; then | |
1577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1578 | else | |
1579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1580 | for as_dir in $PATH | |
1581 | do | |
1582 | IFS=$as_save_IFS | |
1583 | test -z "$as_dir" && as_dir=. | |
1584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1586 | ac_cv_prog_ac_ct_CC="cc" | |
1587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1588 | break 2 | |
1589 | fi | |
1590 | done | |
1591 | done | |
1592 | ||
1593 | fi | |
1594 | fi | |
1595 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1596 | if test -n "$ac_ct_CC"; then | |
1597 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1598 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1599 | else | |
1600 | echo "$as_me:$LINENO: result: no" >&5 | |
1601 | echo "${ECHO_T}no" >&6 | |
1602 | fi | |
1603 | ||
1604 | CC=$ac_ct_CC | |
1605 | else | |
1606 | CC="$ac_cv_prog_CC" | |
1607 | fi | |
1608 | ||
1609 | fi | |
b75a7d8f A |
1610 | if test -z "$CC"; then |
1611 | # Extract the first word of "cc", so it can be a program name with args. | |
1612 | set dummy cc; ac_word=$2 | |
73c04bcf A |
1613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1615 | if test "${ac_cv_prog_CC+set}" = set; then | |
1616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f A |
1617 | else |
1618 | if test -n "$CC"; then | |
1619 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1620 | else | |
b75a7d8f | 1621 | ac_prog_rejected=no |
73c04bcf A |
1622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1623 | for as_dir in $PATH | |
1624 | do | |
1625 | IFS=$as_save_IFS | |
1626 | test -z "$as_dir" && as_dir=. | |
1627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1628 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1629 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1630 | ac_prog_rejected=yes | |
1631 | continue | |
1632 | fi | |
1633 | ac_cv_prog_CC="cc" | |
1634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1635 | break 2 | |
1636 | fi | |
1637 | done | |
1638 | done | |
1639 | ||
b75a7d8f A |
1640 | if test $ac_prog_rejected = yes; then |
1641 | # We found a bogon in the path, so make sure we never use it. | |
1642 | set dummy $ac_cv_prog_CC | |
1643 | shift | |
73c04bcf | 1644 | if test $# != 0; then |
b75a7d8f A |
1645 | # We chose a different compiler from the bogus one. |
1646 | # However, it has the same basename, so the bogon will be chosen | |
1647 | # first if we set CC to just the basename; use the full file name. | |
1648 | shift | |
73c04bcf | 1649 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
b75a7d8f A |
1650 | fi |
1651 | fi | |
1652 | fi | |
1653 | fi | |
73c04bcf | 1654 | CC=$ac_cv_prog_CC |
b75a7d8f | 1655 | if test -n "$CC"; then |
73c04bcf A |
1656 | echo "$as_me:$LINENO: result: $CC" >&5 |
1657 | echo "${ECHO_T}$CC" >&6 | |
b75a7d8f | 1658 | else |
73c04bcf A |
1659 | echo "$as_me:$LINENO: result: no" >&5 |
1660 | echo "${ECHO_T}no" >&6 | |
b75a7d8f A |
1661 | fi |
1662 | ||
73c04bcf A |
1663 | fi |
1664 | if test -z "$CC"; then | |
1665 | if test -n "$ac_tool_prefix"; then | |
1666 | for ac_prog in cl | |
1667 | do | |
1668 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1669 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1672 | if test "${ac_cv_prog_CC+set}" = set; then | |
1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f A |
1674 | else |
1675 | if test -n "$CC"; then | |
1676 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1677 | else | |
73c04bcf A |
1678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1679 | for as_dir in $PATH | |
1680 | do | |
1681 | IFS=$as_save_IFS | |
1682 | test -z "$as_dir" && as_dir=. | |
1683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1685 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1687 | break 2 | |
1688 | fi | |
1689 | done | |
1690 | done | |
1691 | ||
b75a7d8f A |
1692 | fi |
1693 | fi | |
73c04bcf | 1694 | CC=$ac_cv_prog_CC |
b75a7d8f | 1695 | if test -n "$CC"; then |
73c04bcf A |
1696 | echo "$as_me:$LINENO: result: $CC" >&5 |
1697 | echo "${ECHO_T}$CC" >&6 | |
b75a7d8f | 1698 | else |
73c04bcf A |
1699 | echo "$as_me:$LINENO: result: no" >&5 |
1700 | echo "${ECHO_T}no" >&6 | |
b75a7d8f | 1701 | fi |
73c04bcf A |
1702 | |
1703 | test -n "$CC" && break | |
1704 | done | |
1705 | fi | |
1706 | if test -z "$CC"; then | |
1707 | ac_ct_CC=$CC | |
1708 | for ac_prog in cl | |
1709 | do | |
1710 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1711 | set dummy $ac_prog; ac_word=$2 | |
1712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1714 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1716 | else | |
1717 | if test -n "$ac_ct_CC"; then | |
1718 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1719 | else | |
1720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1721 | for as_dir in $PATH | |
1722 | do | |
1723 | IFS=$as_save_IFS | |
1724 | test -z "$as_dir" && as_dir=. | |
1725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1727 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1729 | break 2 | |
b75a7d8f | 1730 | fi |
73c04bcf A |
1731 | done |
1732 | done | |
1733 | ||
1734 | fi | |
b75a7d8f | 1735 | fi |
73c04bcf A |
1736 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1737 | if test -n "$ac_ct_CC"; then | |
1738 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1739 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1740 | else | |
1741 | echo "$as_me:$LINENO: result: no" >&5 | |
1742 | echo "${ECHO_T}no" >&6 | |
1743 | fi | |
1744 | ||
1745 | test -n "$ac_ct_CC" && break | |
1746 | done | |
b75a7d8f | 1747 | |
73c04bcf A |
1748 | CC=$ac_ct_CC |
1749 | fi | |
1750 | ||
1751 | fi | |
1752 | ||
1753 | ||
1754 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1755 | See \`config.log' for more details." >&5 | |
1756 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1757 | See \`config.log' for more details." >&2;} | |
1758 | { (exit 1); exit 1; }; } | |
1759 | ||
1760 | # Provide some information about the compiler. | |
1761 | echo "$as_me:$LINENO:" \ | |
1762 | "checking for C compiler version" >&5 | |
1763 | ac_compiler=`set X $ac_compile; echo $2` | |
1764 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1765 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1766 | ac_status=$? | |
1767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1768 | (exit $ac_status); } | |
1769 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1770 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1771 | ac_status=$? | |
1772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1773 | (exit $ac_status); } | |
1774 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1775 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1776 | ac_status=$? | |
1777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1778 | (exit $ac_status); } | |
1779 | ||
1780 | cat >conftest.$ac_ext <<_ACEOF | |
1781 | /* confdefs.h. */ | |
1782 | _ACEOF | |
1783 | cat confdefs.h >>conftest.$ac_ext | |
1784 | cat >>conftest.$ac_ext <<_ACEOF | |
1785 | /* end confdefs.h. */ | |
1786 | ||
1787 | int | |
1788 | main () | |
1789 | { | |
b75a7d8f | 1790 | |
73c04bcf A |
1791 | ; |
1792 | return 0; | |
1793 | } | |
1794 | _ACEOF | |
1795 | ac_clean_files_save=$ac_clean_files | |
1796 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1797 | # Try to create an executable without -o first, disregard a.out. | |
1798 | # It will help us diagnose broken compilers, and finding out an intuition | |
1799 | # of exeext. | |
1800 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1801 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1802 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1803 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1804 | (eval $ac_link_default) 2>&5 | |
1805 | ac_status=$? | |
1806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1807 | (exit $ac_status); }; then | |
1808 | # Find the output, starting from the most likely. This scheme is | |
1809 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1810 | # resort. | |
1811 | ||
1812 | # Be careful to initialize this variable, since it used to be cached. | |
1813 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1814 | ac_cv_exeext= | |
1815 | # b.out is created by i960 compilers. | |
1816 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1817 | do | |
1818 | test -f "$ac_file" || continue | |
1819 | case $ac_file in | |
1820 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1821 | ;; | |
1822 | conftest.$ac_ext ) | |
1823 | # This is the source file. | |
1824 | ;; | |
1825 | [ab].out ) | |
1826 | # We found the default executable, but exeext='' is most | |
1827 | # certainly right. | |
1828 | break;; | |
1829 | *.* ) | |
1830 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1831 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1832 | # but it would be cool to find out if it's true. Does anybody | |
1833 | # maintain Libtool? --akim. | |
1834 | export ac_cv_exeext | |
1835 | break;; | |
1836 | * ) | |
1837 | break;; | |
1838 | esac | |
1839 | done | |
1840 | else | |
1841 | echo "$as_me: failed program was:" >&5 | |
1842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1843 | ||
1844 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1845 | See \`config.log' for more details." >&5 | |
1846 | echo "$as_me: error: C compiler cannot create executables | |
1847 | See \`config.log' for more details." >&2;} | |
1848 | { (exit 77); exit 77; }; } | |
1849 | fi | |
1850 | ||
1851 | ac_exeext=$ac_cv_exeext | |
1852 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1853 | echo "${ECHO_T}$ac_file" >&6 | |
1854 | ||
1855 | # Check the compiler produces executables we can run. If not, either | |
1856 | # the compiler is broken, or we cross compile. | |
1857 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1858 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1859 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1860 | # If not cross compiling, check that we can run a simple program. | |
1861 | if test "$cross_compiling" != yes; then | |
1862 | if { ac_try='./$ac_file' | |
1863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1864 | (eval $ac_try) 2>&5 | |
1865 | ac_status=$? | |
1866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1867 | (exit $ac_status); }; }; then | |
1868 | cross_compiling=no | |
b75a7d8f | 1869 | else |
73c04bcf A |
1870 | if test "$cross_compiling" = maybe; then |
1871 | cross_compiling=yes | |
1872 | else | |
1873 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1874 | If you meant to cross compile, use \`--host'. | |
1875 | See \`config.log' for more details." >&5 | |
1876 | echo "$as_me: error: cannot run C compiled programs. | |
1877 | If you meant to cross compile, use \`--host'. | |
1878 | See \`config.log' for more details." >&2;} | |
1879 | { (exit 1); exit 1; }; } | |
1880 | fi | |
b75a7d8f | 1881 | fi |
b75a7d8f | 1882 | fi |
73c04bcf A |
1883 | echo "$as_me:$LINENO: result: yes" >&5 |
1884 | echo "${ECHO_T}yes" >&6 | |
1885 | ||
1886 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1887 | ac_clean_files=$ac_clean_files_save | |
1888 | # Check the compiler produces executables we can run. If not, either | |
1889 | # the compiler is broken, or we cross compile. | |
1890 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1891 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1892 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1893 | echo "${ECHO_T}$cross_compiling" >&6 | |
1894 | ||
1895 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1896 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1898 | (eval $ac_link) 2>&5 | |
1899 | ac_status=$? | |
1900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1901 | (exit $ac_status); }; then | |
1902 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1903 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1904 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1905 | # `rm'. | |
1906 | for ac_file in conftest.exe conftest conftest.*; do | |
1907 | test -f "$ac_file" || continue | |
1908 | case $ac_file in | |
1909 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1910 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1911 | export ac_cv_exeext | |
1912 | break;; | |
1913 | * ) break;; | |
1914 | esac | |
1915 | done | |
b75a7d8f | 1916 | else |
73c04bcf A |
1917 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1918 | See \`config.log' for more details." >&5 | |
1919 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1920 | See \`config.log' for more details." >&2;} | |
1921 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
1922 | fi |
1923 | ||
73c04bcf A |
1924 | rm -f conftest$ac_cv_exeext |
1925 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1926 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1927 | ||
1928 | rm -f conftest.$ac_ext | |
1929 | EXEEXT=$ac_cv_exeext | |
1930 | ac_exeext=$EXEEXT | |
1931 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1932 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1933 | if test "${ac_cv_objext+set}" = set; then | |
1934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1935 | else | |
1936 | cat >conftest.$ac_ext <<_ACEOF | |
1937 | /* confdefs.h. */ | |
1938 | _ACEOF | |
1939 | cat confdefs.h >>conftest.$ac_ext | |
1940 | cat >>conftest.$ac_ext <<_ACEOF | |
1941 | /* end confdefs.h. */ | |
1942 | ||
1943 | int | |
1944 | main () | |
1945 | { | |
b75a7d8f | 1946 | |
73c04bcf A |
1947 | ; |
1948 | return 0; | |
1949 | } | |
1950 | _ACEOF | |
1951 | rm -f conftest.o conftest.obj | |
1952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1953 | (eval $ac_compile) 2>&5 | |
1954 | ac_status=$? | |
1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1956 | (exit $ac_status); }; then | |
1957 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1958 | case $ac_file in | |
1959 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1960 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1961 | break;; | |
1962 | esac | |
1963 | done | |
b75a7d8f | 1964 | else |
73c04bcf A |
1965 | echo "$as_me: failed program was:" >&5 |
1966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1967 | ||
1968 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1969 | See \`config.log' for more details." >&5 | |
1970 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1971 | See \`config.log' for more details." >&2;} | |
1972 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
1973 | fi |
1974 | ||
73c04bcf A |
1975 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1976 | fi | |
1977 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1978 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1979 | OBJEXT=$ac_cv_objext | |
1980 | ac_objext=$OBJEXT | |
1981 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1982 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1983 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 1985 | else |
73c04bcf A |
1986 | cat >conftest.$ac_ext <<_ACEOF |
1987 | /* confdefs.h. */ | |
1988 | _ACEOF | |
1989 | cat confdefs.h >>conftest.$ac_ext | |
1990 | cat >>conftest.$ac_ext <<_ACEOF | |
1991 | /* end confdefs.h. */ | |
1992 | ||
1993 | int | |
1994 | main () | |
1995 | { | |
1996 | #ifndef __GNUC__ | |
1997 | choke me | |
1998 | #endif | |
1999 | ||
2000 | ; | |
2001 | return 0; | |
2002 | } | |
2003 | _ACEOF | |
2004 | rm -f conftest.$ac_objext | |
2005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2006 | (eval $ac_compile) 2>conftest.er1 | |
2007 | ac_status=$? | |
2008 | grep -v '^ *+' conftest.er1 >conftest.err | |
2009 | rm -f conftest.er1 | |
2010 | cat conftest.err >&5 | |
2011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2012 | (exit $ac_status); } && | |
2013 | { ac_try='test -z "$ac_c_werror_flag" | |
2014 | || test ! -s conftest.err' | |
2015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2016 | (eval $ac_try) 2>&5 | |
2017 | ac_status=$? | |
2018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2019 | (exit $ac_status); }; } && | |
2020 | { ac_try='test -s conftest.$ac_objext' | |
2021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2022 | (eval $ac_try) 2>&5 | |
2023 | ac_status=$? | |
2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2025 | (exit $ac_status); }; }; then | |
2026 | ac_compiler_gnu=yes | |
2027 | else | |
2028 | echo "$as_me: failed program was:" >&5 | |
2029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2030 | ||
2031 | ac_compiler_gnu=no | |
2032 | fi | |
2033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2034 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2035 | ||
2036 | fi | |
2037 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2038 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2039 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2040 | ac_test_CFLAGS=${CFLAGS+set} | |
2041 | ac_save_CFLAGS=$CFLAGS | |
2042 | CFLAGS="-g" | |
2043 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2044 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2045 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2047 | else | |
2048 | cat >conftest.$ac_ext <<_ACEOF | |
2049 | /* confdefs.h. */ | |
2050 | _ACEOF | |
2051 | cat confdefs.h >>conftest.$ac_ext | |
2052 | cat >>conftest.$ac_ext <<_ACEOF | |
2053 | /* end confdefs.h. */ | |
2054 | ||
2055 | int | |
2056 | main () | |
2057 | { | |
2058 | ||
2059 | ; | |
2060 | return 0; | |
2061 | } | |
2062 | _ACEOF | |
2063 | rm -f conftest.$ac_objext | |
2064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2065 | (eval $ac_compile) 2>conftest.er1 | |
2066 | ac_status=$? | |
2067 | grep -v '^ *+' conftest.er1 >conftest.err | |
2068 | rm -f conftest.er1 | |
2069 | cat conftest.err >&5 | |
2070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2071 | (exit $ac_status); } && | |
2072 | { ac_try='test -z "$ac_c_werror_flag" | |
2073 | || test ! -s conftest.err' | |
2074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2075 | (eval $ac_try) 2>&5 | |
2076 | ac_status=$? | |
2077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2078 | (exit $ac_status); }; } && | |
2079 | { ac_try='test -s conftest.$ac_objext' | |
2080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2081 | (eval $ac_try) 2>&5 | |
2082 | ac_status=$? | |
2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2084 | (exit $ac_status); }; }; then | |
b75a7d8f A |
2085 | ac_cv_prog_cc_g=yes |
2086 | else | |
73c04bcf A |
2087 | echo "$as_me: failed program was:" >&5 |
2088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 2089 | |
73c04bcf | 2090 | ac_cv_prog_cc_g=no |
b75a7d8f | 2091 | fi |
73c04bcf A |
2092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2093 | fi | |
2094 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2095 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
b75a7d8f | 2096 | if test "$ac_test_CFLAGS" = set; then |
73c04bcf | 2097 | CFLAGS=$ac_save_CFLAGS |
b75a7d8f A |
2098 | elif test $ac_cv_prog_cc_g = yes; then |
2099 | if test "$GCC" = yes; then | |
2100 | CFLAGS="-g -O2" | |
2101 | else | |
2102 | CFLAGS="-g" | |
2103 | fi | |
2104 | else | |
2105 | if test "$GCC" = yes; then | |
2106 | CFLAGS="-O2" | |
2107 | else | |
2108 | CFLAGS= | |
2109 | fi | |
2110 | fi | |
73c04bcf A |
2111 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2112 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2113 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2115 | else | |
2116 | ac_cv_prog_cc_stdc=no | |
2117 | ac_save_CC=$CC | |
2118 | cat >conftest.$ac_ext <<_ACEOF | |
2119 | /* confdefs.h. */ | |
2120 | _ACEOF | |
2121 | cat confdefs.h >>conftest.$ac_ext | |
2122 | cat >>conftest.$ac_ext <<_ACEOF | |
2123 | /* end confdefs.h. */ | |
2124 | #include <stdarg.h> | |
2125 | #include <stdio.h> | |
2126 | #include <sys/types.h> | |
2127 | #include <sys/stat.h> | |
2128 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2129 | struct buf { int x; }; | |
2130 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2131 | static char *e (p, i) | |
2132 | char **p; | |
2133 | int i; | |
2134 | { | |
2135 | return p[i]; | |
2136 | } | |
2137 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2138 | { | |
2139 | char *s; | |
2140 | va_list v; | |
2141 | va_start (v,p); | |
2142 | s = g (p, va_arg (v,int)); | |
2143 | va_end (v); | |
2144 | return s; | |
2145 | } | |
b75a7d8f | 2146 | |
73c04bcf A |
2147 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2148 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2149 | These don't provoke an error unfortunately, instead are silently treated | |
2150 | as 'x'. The following induces an error, until -std1 is added to get | |
2151 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2152 | array size at least. It's necessary to write '\x00'==0 to get something | |
2153 | that's true only with -std1. */ | |
2154 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2155 | ||
2156 | int test (int i, double x); | |
2157 | struct s1 {int (*f) (int a);}; | |
2158 | struct s2 {int (*f) (double a);}; | |
2159 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2160 | int argc; | |
2161 | char **argv; | |
2162 | int | |
2163 | main () | |
2164 | { | |
2165 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2166 | ; | |
2167 | return 0; | |
2168 | } | |
2169 | _ACEOF | |
2170 | # Don't try gcc -ansi; that turns off useful extensions and | |
2171 | # breaks some systems' header files. | |
2172 | # AIX -qlanglvl=ansi | |
2173 | # Ultrix and OSF/1 -std1 | |
2174 | # HP-UX 10.20 and later -Ae | |
2175 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2176 | # SVR4 -Xc -D__EXTENSIONS__ | |
2177 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b75a7d8f | 2178 | do |
73c04bcf A |
2179 | CC="$ac_save_CC $ac_arg" |
2180 | rm -f conftest.$ac_objext | |
2181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2182 | (eval $ac_compile) 2>conftest.er1 | |
2183 | ac_status=$? | |
2184 | grep -v '^ *+' conftest.er1 >conftest.err | |
2185 | rm -f conftest.er1 | |
2186 | cat conftest.err >&5 | |
2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2188 | (exit $ac_status); } && | |
2189 | { ac_try='test -z "$ac_c_werror_flag" | |
2190 | || test ! -s conftest.err' | |
2191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2192 | (eval $ac_try) 2>&5 | |
2193 | ac_status=$? | |
2194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2195 | (exit $ac_status); }; } && | |
2196 | { ac_try='test -s conftest.$ac_objext' | |
2197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2198 | (eval $ac_try) 2>&5 | |
2199 | ac_status=$? | |
2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2201 | (exit $ac_status); }; }; then | |
2202 | ac_cv_prog_cc_stdc=$ac_arg | |
2203 | break | |
b75a7d8f | 2204 | else |
73c04bcf A |
2205 | echo "$as_me: failed program was:" >&5 |
2206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 2207 | |
73c04bcf A |
2208 | fi |
2209 | rm -f conftest.err conftest.$ac_objext | |
b75a7d8f | 2210 | done |
73c04bcf A |
2211 | rm -f conftest.$ac_ext conftest.$ac_objext |
2212 | CC=$ac_save_CC | |
b75a7d8f | 2213 | |
73c04bcf | 2214 | fi |
b75a7d8f | 2215 | |
73c04bcf A |
2216 | case "x$ac_cv_prog_cc_stdc" in |
2217 | x|xno) | |
2218 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2219 | echo "${ECHO_T}none needed" >&6 ;; | |
2220 | *) | |
2221 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2222 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2223 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2224 | esac | |
b75a7d8f | 2225 | |
73c04bcf A |
2226 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2227 | # in C++ we need to declare it. In case someone uses the same compiler | |
2228 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2229 | # the declaration of exit, since it's the most demanding environment. | |
2230 | cat >conftest.$ac_ext <<_ACEOF | |
2231 | #ifndef __cplusplus | |
2232 | choke me | |
2233 | #endif | |
2234 | _ACEOF | |
2235 | rm -f conftest.$ac_objext | |
2236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2237 | (eval $ac_compile) 2>conftest.er1 | |
2238 | ac_status=$? | |
2239 | grep -v '^ *+' conftest.er1 >conftest.err | |
2240 | rm -f conftest.er1 | |
2241 | cat conftest.err >&5 | |
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2243 | (exit $ac_status); } && | |
2244 | { ac_try='test -z "$ac_c_werror_flag" | |
2245 | || test ! -s conftest.err' | |
2246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2247 | (eval $ac_try) 2>&5 | |
2248 | ac_status=$? | |
2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2250 | (exit $ac_status); }; } && | |
2251 | { ac_try='test -s conftest.$ac_objext' | |
2252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2253 | (eval $ac_try) 2>&5 | |
2254 | ac_status=$? | |
2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2256 | (exit $ac_status); }; }; then | |
2257 | for ac_declaration in \ | |
2258 | '' \ | |
2259 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2260 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2261 | 'extern "C" void exit (int) throw ();' \ | |
2262 | 'extern "C" void exit (int);' \ | |
2263 | 'void exit (int);' | |
2264 | do | |
2265 | cat >conftest.$ac_ext <<_ACEOF | |
2266 | /* confdefs.h. */ | |
2267 | _ACEOF | |
2268 | cat confdefs.h >>conftest.$ac_ext | |
2269 | cat >>conftest.$ac_ext <<_ACEOF | |
2270 | /* end confdefs.h. */ | |
2271 | $ac_declaration | |
2272 | #include <stdlib.h> | |
2273 | int | |
2274 | main () | |
2275 | { | |
2276 | exit (42); | |
2277 | ; | |
2278 | return 0; | |
2279 | } | |
2280 | _ACEOF | |
2281 | rm -f conftest.$ac_objext | |
2282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2283 | (eval $ac_compile) 2>conftest.er1 | |
2284 | ac_status=$? | |
2285 | grep -v '^ *+' conftest.er1 >conftest.err | |
2286 | rm -f conftest.er1 | |
2287 | cat conftest.err >&5 | |
2288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2289 | (exit $ac_status); } && | |
2290 | { ac_try='test -z "$ac_c_werror_flag" | |
2291 | || test ! -s conftest.err' | |
2292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2293 | (eval $ac_try) 2>&5 | |
2294 | ac_status=$? | |
2295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2296 | (exit $ac_status); }; } && | |
2297 | { ac_try='test -s conftest.$ac_objext' | |
2298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2299 | (eval $ac_try) 2>&5 | |
2300 | ac_status=$? | |
2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2302 | (exit $ac_status); }; }; then | |
2303 | : | |
b75a7d8f | 2304 | else |
73c04bcf A |
2305 | echo "$as_me: failed program was:" >&5 |
2306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2307 | ||
2308 | continue | |
2309 | fi | |
2310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2311 | cat >conftest.$ac_ext <<_ACEOF | |
2312 | /* confdefs.h. */ | |
2313 | _ACEOF | |
2314 | cat confdefs.h >>conftest.$ac_ext | |
2315 | cat >>conftest.$ac_ext <<_ACEOF | |
2316 | /* end confdefs.h. */ | |
2317 | $ac_declaration | |
2318 | int | |
2319 | main () | |
2320 | { | |
2321 | exit (42); | |
2322 | ; | |
2323 | return 0; | |
2324 | } | |
2325 | _ACEOF | |
2326 | rm -f conftest.$ac_objext | |
2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2328 | (eval $ac_compile) 2>conftest.er1 | |
2329 | ac_status=$? | |
2330 | grep -v '^ *+' conftest.er1 >conftest.err | |
2331 | rm -f conftest.er1 | |
2332 | cat conftest.err >&5 | |
2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2334 | (exit $ac_status); } && | |
2335 | { ac_try='test -z "$ac_c_werror_flag" | |
2336 | || test ! -s conftest.err' | |
2337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2338 | (eval $ac_try) 2>&5 | |
2339 | ac_status=$? | |
2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2341 | (exit $ac_status); }; } && | |
2342 | { ac_try='test -s conftest.$ac_objext' | |
2343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2344 | (eval $ac_try) 2>&5 | |
2345 | ac_status=$? | |
2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2347 | (exit $ac_status); }; }; then | |
2348 | break | |
2349 | else | |
2350 | echo "$as_me: failed program was:" >&5 | |
2351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2352 | ||
2353 | fi | |
2354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2355 | done | |
2356 | rm -f conftest* | |
2357 | if test -n "$ac_declaration"; then | |
2358 | echo '#ifdef __cplusplus' >>confdefs.h | |
2359 | echo $ac_declaration >>confdefs.h | |
2360 | echo '#endif' >>confdefs.h | |
b75a7d8f | 2361 | fi |
73c04bcf A |
2362 | |
2363 | else | |
2364 | echo "$as_me: failed program was:" >&5 | |
2365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2366 | ||
2367 | fi | |
2368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b75a7d8f | 2369 | ac_ext=c |
b75a7d8f | 2370 | ac_cpp='$CPP $CPPFLAGS' |
73c04bcf A |
2371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2374 | ||
2375 | ac_ext=cc | |
2376 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2377 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2378 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2379 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2380 | if test -n "$ac_tool_prefix"; then | |
2381 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2382 | do | |
2383 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2384 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2387 | if test "${ac_cv_prog_CXX+set}" = set; then | |
2388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 2389 | else |
73c04bcf A |
2390 | if test -n "$CXX"; then |
2391 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2392 | else | |
2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2394 | for as_dir in $PATH | |
2395 | do | |
2396 | IFS=$as_save_IFS | |
2397 | test -z "$as_dir" && as_dir=. | |
2398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2400 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2402 | break 2 | |
2403 | fi | |
2404 | done | |
2405 | done | |
2406 | ||
2407 | fi | |
b75a7d8f | 2408 | fi |
73c04bcf A |
2409 | CXX=$ac_cv_prog_CXX |
2410 | if test -n "$CXX"; then | |
2411 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2412 | echo "${ECHO_T}$CXX" >&6 | |
2413 | else | |
2414 | echo "$as_me:$LINENO: result: no" >&5 | |
2415 | echo "${ECHO_T}no" >&6 | |
b75a7d8f A |
2416 | fi |
2417 | ||
73c04bcf A |
2418 | test -n "$CXX" && break |
2419 | done | |
2420 | fi | |
2421 | if test -z "$CXX"; then | |
2422 | ac_ct_CXX=$CXX | |
2423 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2424 | do | |
2425 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2426 | set dummy $ac_prog; ac_word=$2 | |
2427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2429 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2431 | else | |
2432 | if test -n "$ac_ct_CXX"; then | |
2433 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2434 | else | |
2435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2436 | for as_dir in $PATH | |
2437 | do | |
2438 | IFS=$as_save_IFS | |
2439 | test -z "$as_dir" && as_dir=. | |
2440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2442 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
2443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2444 | break 2 | |
2445 | fi | |
2446 | done | |
2447 | done | |
b75a7d8f | 2448 | |
73c04bcf A |
2449 | fi |
2450 | fi | |
2451 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2452 | if test -n "$ac_ct_CXX"; then | |
2453 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2454 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
b75a7d8f | 2455 | else |
73c04bcf A |
2456 | echo "$as_me:$LINENO: result: no" >&5 |
2457 | echo "${ECHO_T}no" >&6 | |
b75a7d8f A |
2458 | fi |
2459 | ||
73c04bcf A |
2460 | test -n "$ac_ct_CXX" && break |
2461 | done | |
2462 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2463 | ||
2464 | CXX=$ac_ct_CXX | |
2465 | fi | |
2466 | ||
2467 | ||
2468 | # Provide some information about the compiler. | |
2469 | echo "$as_me:$LINENO:" \ | |
2470 | "checking for C++ compiler version" >&5 | |
2471 | ac_compiler=`set X $ac_compile; echo $2` | |
2472 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2473 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2474 | ac_status=$? | |
2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2476 | (exit $ac_status); } | |
2477 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2478 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2479 | ac_status=$? | |
2480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2481 | (exit $ac_status); } | |
2482 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2483 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2484 | ac_status=$? | |
2485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2486 | (exit $ac_status); } | |
2487 | ||
2488 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2489 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2490 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2492 | else | |
2493 | cat >conftest.$ac_ext <<_ACEOF | |
2494 | /* confdefs.h. */ | |
2495 | _ACEOF | |
2496 | cat confdefs.h >>conftest.$ac_ext | |
2497 | cat >>conftest.$ac_ext <<_ACEOF | |
2498 | /* end confdefs.h. */ | |
2499 | ||
2500 | int | |
2501 | main () | |
2502 | { | |
2503 | #ifndef __GNUC__ | |
2504 | choke me | |
2505 | #endif | |
2506 | ||
2507 | ; | |
2508 | return 0; | |
2509 | } | |
2510 | _ACEOF | |
2511 | rm -f conftest.$ac_objext | |
2512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2513 | (eval $ac_compile) 2>conftest.er1 | |
2514 | ac_status=$? | |
2515 | grep -v '^ *+' conftest.er1 >conftest.err | |
2516 | rm -f conftest.er1 | |
2517 | cat conftest.err >&5 | |
2518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2519 | (exit $ac_status); } && | |
2520 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2521 | || test ! -s conftest.err' | |
2522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2523 | (eval $ac_try) 2>&5 | |
2524 | ac_status=$? | |
2525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2526 | (exit $ac_status); }; } && | |
2527 | { ac_try='test -s conftest.$ac_objext' | |
2528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2529 | (eval $ac_try) 2>&5 | |
2530 | ac_status=$? | |
2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2532 | (exit $ac_status); }; }; then | |
2533 | ac_compiler_gnu=yes | |
2534 | else | |
2535 | echo "$as_me: failed program was:" >&5 | |
2536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2537 | ||
2538 | ac_compiler_gnu=no | |
2539 | fi | |
2540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2541 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2542 | ||
2543 | fi | |
2544 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2545 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2546 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2547 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2548 | ac_save_CXXFLAGS=$CXXFLAGS | |
2549 | CXXFLAGS="-g" | |
2550 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2551 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2552 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2554 | else | |
2555 | cat >conftest.$ac_ext <<_ACEOF | |
2556 | /* confdefs.h. */ | |
2557 | _ACEOF | |
2558 | cat confdefs.h >>conftest.$ac_ext | |
2559 | cat >>conftest.$ac_ext <<_ACEOF | |
2560 | /* end confdefs.h. */ | |
2561 | ||
2562 | int | |
2563 | main () | |
2564 | { | |
2565 | ||
2566 | ; | |
2567 | return 0; | |
2568 | } | |
2569 | _ACEOF | |
2570 | rm -f conftest.$ac_objext | |
2571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2572 | (eval $ac_compile) 2>conftest.er1 | |
2573 | ac_status=$? | |
2574 | grep -v '^ *+' conftest.er1 >conftest.err | |
2575 | rm -f conftest.er1 | |
2576 | cat conftest.err >&5 | |
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2578 | (exit $ac_status); } && | |
2579 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2580 | || test ! -s conftest.err' | |
2581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2582 | (eval $ac_try) 2>&5 | |
2583 | ac_status=$? | |
2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2585 | (exit $ac_status); }; } && | |
2586 | { ac_try='test -s conftest.$ac_objext' | |
2587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2588 | (eval $ac_try) 2>&5 | |
2589 | ac_status=$? | |
2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2591 | (exit $ac_status); }; }; then | |
b75a7d8f A |
2592 | ac_cv_prog_cxx_g=yes |
2593 | else | |
73c04bcf A |
2594 | echo "$as_me: failed program was:" >&5 |
2595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 2596 | |
73c04bcf | 2597 | ac_cv_prog_cxx_g=no |
b75a7d8f | 2598 | fi |
73c04bcf A |
2599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2600 | fi | |
2601 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2602 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
b75a7d8f | 2603 | if test "$ac_test_CXXFLAGS" = set; then |
73c04bcf | 2604 | CXXFLAGS=$ac_save_CXXFLAGS |
b75a7d8f A |
2605 | elif test $ac_cv_prog_cxx_g = yes; then |
2606 | if test "$GXX" = yes; then | |
2607 | CXXFLAGS="-g -O2" | |
2608 | else | |
2609 | CXXFLAGS="-g" | |
2610 | fi | |
2611 | else | |
2612 | if test "$GXX" = yes; then | |
2613 | CXXFLAGS="-O2" | |
2614 | else | |
2615 | CXXFLAGS= | |
2616 | fi | |
2617 | fi | |
73c04bcf A |
2618 | for ac_declaration in \ |
2619 | '' \ | |
2620 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2621 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2622 | 'extern "C" void exit (int) throw ();' \ | |
2623 | 'extern "C" void exit (int);' \ | |
2624 | 'void exit (int);' | |
2625 | do | |
2626 | cat >conftest.$ac_ext <<_ACEOF | |
2627 | /* confdefs.h. */ | |
2628 | _ACEOF | |
2629 | cat confdefs.h >>conftest.$ac_ext | |
2630 | cat >>conftest.$ac_ext <<_ACEOF | |
2631 | /* end confdefs.h. */ | |
2632 | $ac_declaration | |
2633 | #include <stdlib.h> | |
2634 | int | |
2635 | main () | |
2636 | { | |
2637 | exit (42); | |
2638 | ; | |
2639 | return 0; | |
2640 | } | |
2641 | _ACEOF | |
2642 | rm -f conftest.$ac_objext | |
2643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2644 | (eval $ac_compile) 2>conftest.er1 | |
2645 | ac_status=$? | |
2646 | grep -v '^ *+' conftest.er1 >conftest.err | |
2647 | rm -f conftest.er1 | |
2648 | cat conftest.err >&5 | |
2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2650 | (exit $ac_status); } && | |
2651 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2652 | || test ! -s conftest.err' | |
2653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2654 | (eval $ac_try) 2>&5 | |
2655 | ac_status=$? | |
2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2657 | (exit $ac_status); }; } && | |
2658 | { ac_try='test -s conftest.$ac_objext' | |
2659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2660 | (eval $ac_try) 2>&5 | |
2661 | ac_status=$? | |
2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2663 | (exit $ac_status); }; }; then | |
2664 | : | |
2665 | else | |
2666 | echo "$as_me: failed program was:" >&5 | |
2667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2668 | ||
2669 | continue | |
2670 | fi | |
2671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2672 | cat >conftest.$ac_ext <<_ACEOF | |
2673 | /* confdefs.h. */ | |
2674 | _ACEOF | |
2675 | cat confdefs.h >>conftest.$ac_ext | |
2676 | cat >>conftest.$ac_ext <<_ACEOF | |
2677 | /* end confdefs.h. */ | |
2678 | $ac_declaration | |
2679 | int | |
2680 | main () | |
2681 | { | |
2682 | exit (42); | |
2683 | ; | |
2684 | return 0; | |
2685 | } | |
2686 | _ACEOF | |
2687 | rm -f conftest.$ac_objext | |
2688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2689 | (eval $ac_compile) 2>conftest.er1 | |
2690 | ac_status=$? | |
2691 | grep -v '^ *+' conftest.er1 >conftest.err | |
2692 | rm -f conftest.er1 | |
2693 | cat conftest.err >&5 | |
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2695 | (exit $ac_status); } && | |
2696 | { ac_try='test -z "$ac_cxx_werror_flag" | |
2697 | || test ! -s conftest.err' | |
2698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2699 | (eval $ac_try) 2>&5 | |
2700 | ac_status=$? | |
2701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2702 | (exit $ac_status); }; } && | |
2703 | { ac_try='test -s conftest.$ac_objext' | |
2704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2705 | (eval $ac_try) 2>&5 | |
2706 | ac_status=$? | |
2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2708 | (exit $ac_status); }; }; then | |
2709 | break | |
2710 | else | |
2711 | echo "$as_me: failed program was:" >&5 | |
2712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2713 | ||
2714 | fi | |
2715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b75a7d8f | 2716 | done |
73c04bcf A |
2717 | rm -f conftest* |
2718 | if test -n "$ac_declaration"; then | |
2719 | echo '#ifdef __cplusplus' >>confdefs.h | |
2720 | echo $ac_declaration >>confdefs.h | |
2721 | echo '#endif' >>confdefs.h | |
b75a7d8f | 2722 | fi |
73c04bcf A |
2723 | |
2724 | ac_ext=c | |
2725 | ac_cpp='$CPP $CPPFLAGS' | |
2726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b75a7d8f A |
2729 | |
2730 | # Find a good install program. We prefer a C program (faster), | |
2731 | # so one script is as good as another. But avoid the broken or | |
2732 | # incompatible versions: | |
2733 | # SysV /etc/install, /usr/sbin/install | |
2734 | # SunOS /usr/etc/install | |
2735 | # IRIX /sbin/install | |
2736 | # AIX /bin/install | |
73c04bcf | 2737 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
b75a7d8f A |
2738 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2739 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2740 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
73c04bcf | 2741 | # OS/2's system install, which has a completely different semantic |
b75a7d8f | 2742 | # ./install, which can be erroneously created by make from ./install.sh. |
73c04bcf A |
2743 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2744 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
b75a7d8f | 2745 | if test -z "$INSTALL"; then |
73c04bcf A |
2746 | if test "${ac_cv_path_install+set}" = set; then |
2747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2748 | else | |
2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2750 | for as_dir in $PATH | |
2751 | do | |
2752 | IFS=$as_save_IFS | |
2753 | test -z "$as_dir" && as_dir=. | |
2754 | # Account for people who put trailing slashes in PATH elements. | |
2755 | case $as_dir/ in | |
2756 | ./ | .// | /cC/* | \ | |
2757 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2758 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2759 | /usr/ucb/* ) ;; | |
2760 | *) | |
2761 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2762 | # Don't use installbsd from OSF since it installs stuff as root | |
2763 | # by default. | |
2764 | for ac_prog in ginstall scoinst install; do | |
2765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2766 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
b75a7d8f | 2767 | if test $ac_prog = install && |
73c04bcf | 2768 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
b75a7d8f A |
2769 | # AIX install. It has an incompatible calling convention. |
2770 | : | |
73c04bcf A |
2771 | elif test $ac_prog = install && |
2772 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2773 | # program-specific install script used by HP pwplus--don't use. | |
2774 | : | |
b75a7d8f | 2775 | else |
73c04bcf A |
2776 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2777 | break 3 | |
b75a7d8f A |
2778 | fi |
2779 | fi | |
2780 | done | |
73c04bcf A |
2781 | done |
2782 | ;; | |
2783 | esac | |
2784 | done | |
2785 | ||
b75a7d8f A |
2786 | |
2787 | fi | |
2788 | if test "${ac_cv_path_install+set}" = set; then | |
73c04bcf | 2789 | INSTALL=$ac_cv_path_install |
b75a7d8f A |
2790 | else |
2791 | # As a last resort, use the slow shell script. We don't cache a | |
2792 | # path for INSTALL within a source directory, because that will | |
2793 | # break other packages using the cache if that directory is | |
2794 | # removed, or if the path is relative. | |
73c04bcf | 2795 | INSTALL=$ac_install_sh |
b75a7d8f A |
2796 | fi |
2797 | fi | |
73c04bcf A |
2798 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2799 | echo "${ECHO_T}$INSTALL" >&6 | |
b75a7d8f A |
2800 | |
2801 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2802 | # It thinks the first close brace ends the variable substitution. | |
2803 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2804 | ||
73c04bcf | 2805 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
b75a7d8f A |
2806 | |
2807 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2808 | ||
2809 | ||
2810 | # make sure install is relative to srcdir - if a script | |
2811 | if test "$srcdir" = "."; then | |
2812 | # If srcdir isn't just ., then (srcdir) is already prepended. | |
2813 | if test "${ac_install_sh}" = "${INSTALL}"; then | |
2814 | INSTALL="\\\$(top_srcdir)/${ac_install_sh}" | |
2815 | fi | |
2816 | fi | |
2817 | ||
374ca955 | 2818 | #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) |
73c04bcf | 2819 | #AC_CHECK_PROG(STRIP, strip, strip, true) |
b75a7d8f A |
2820 | |
2821 | for ac_prog in gmake gnumake | |
2822 | do | |
73c04bcf | 2823 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
b75a7d8f | 2824 | set dummy $ac_prog; ac_word=$2 |
73c04bcf A |
2825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2827 | if test "${ac_cv_path_U_MAKE+set}" = set; then | |
2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 2829 | else |
73c04bcf A |
2830 | case $U_MAKE in |
2831 | [\\/]* | ?:[\\/]*) | |
b75a7d8f A |
2832 | ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. |
2833 | ;; | |
b75a7d8f | 2834 | *) |
73c04bcf A |
2835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2836 | for as_dir in $PATH | |
2837 | do | |
2838 | IFS=$as_save_IFS | |
2839 | test -z "$as_dir" && as_dir=. | |
2840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2842 | ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" | |
2843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2844 | break 2 | |
2845 | fi | |
2846 | done | |
2847 | done | |
2848 | ||
b75a7d8f A |
2849 | ;; |
2850 | esac | |
2851 | fi | |
73c04bcf A |
2852 | U_MAKE=$ac_cv_path_U_MAKE |
2853 | ||
b75a7d8f | 2854 | if test -n "$U_MAKE"; then |
73c04bcf A |
2855 | echo "$as_me:$LINENO: result: $U_MAKE" >&5 |
2856 | echo "${ECHO_T}$U_MAKE" >&6 | |
b75a7d8f | 2857 | else |
73c04bcf A |
2858 | echo "$as_me:$LINENO: result: no" >&5 |
2859 | echo "${ECHO_T}no" >&6 | |
b75a7d8f A |
2860 | fi |
2861 | ||
73c04bcf | 2862 | test -n "$U_MAKE" && break |
b75a7d8f A |
2863 | done |
2864 | test -n "$U_MAKE" || U_MAKE="make" | |
2865 | ||
2866 | ||
2867 | ||
2868 | # Extract the first word of "doxygen", so it can be a program name with args. | |
2869 | set dummy doxygen; ac_word=$2 | |
73c04bcf A |
2870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2872 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | |
2873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 2874 | else |
73c04bcf A |
2875 | case $DOXYGEN in |
2876 | [\\/]* | ?:[\\/]*) | |
b75a7d8f A |
2877 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
2878 | ;; | |
b75a7d8f | 2879 | *) |
73c04bcf A |
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2881 | as_dummy="$PATH:/usr/local/bin:/usr/bin" | |
2882 | for as_dir in $as_dummy | |
2883 | do | |
2884 | IFS=$as_save_IFS | |
2885 | test -z "$as_dir" && as_dir=. | |
2886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2888 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | |
2889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2890 | break 2 | |
2891 | fi | |
2892 | done | |
2893 | done | |
2894 | ||
b75a7d8f A |
2895 | ;; |
2896 | esac | |
2897 | fi | |
73c04bcf A |
2898 | DOXYGEN=$ac_cv_path_DOXYGEN |
2899 | ||
b75a7d8f | 2900 | if test -n "$DOXYGEN"; then |
73c04bcf A |
2901 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
2902 | echo "${ECHO_T}$DOXYGEN" >&6 | |
b75a7d8f | 2903 | else |
73c04bcf A |
2904 | echo "$as_me:$LINENO: result: no" >&5 |
2905 | echo "${ECHO_T}no" >&6 | |
b75a7d8f A |
2906 | fi |
2907 | ||
2908 | ||
2909 | ||
73c04bcf A |
2910 | case "${host}" in |
2911 | *-*-cygwin*|*-*-mingw*) | |
2912 | if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then | |
2913 | { { echo "$as_me:$LINENO: error: link.exe is not a valid linker. Your PATH is incorrect. | |
2914 | Please follow the directions in ICU's readme." >&5 | |
2915 | echo "$as_me: error: link.exe is not a valid linker. Your PATH is incorrect. | |
2916 | Please follow the directions in ICU's readme." >&2;} | |
2917 | { (exit 1); exit 1; }; } | |
2918 | fi;; | |
2919 | *);; | |
b75a7d8f A |
2920 | esac |
2921 | ||
73c04bcf A |
2922 | echo "$as_me:$LINENO: checking checking for executable suffix" >&5 |
2923 | echo $ECHO_N "checking checking for executable suffix... $ECHO_C" >&6 | |
2924 | case "${host}" in | |
2925 | *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; | |
2926 | *) EXEEXT="" ;; | |
2927 | esac | |
b75a7d8f | 2928 | ac_exeext=$EXEEXT |
73c04bcf A |
2929 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
2930 | echo "${ECHO_T}$EXEEXT" >&6 | |
b75a7d8f A |
2931 | |
2932 | ||
2933 | ||
73c04bcf A |
2934 | echo "$as_me:$LINENO: checking whether strict compiling is on" >&5 |
2935 | echo $ECHO_N "checking whether strict compiling is on... $ECHO_C" >&6 | |
b75a7d8f A |
2936 | # Check whether --enable-strict or --disable-strict was given. |
2937 | if test "${enable_strict+set}" = set; then | |
2938 | enableval="$enable_strict" | |
73c04bcf | 2939 | |
374ca955 A |
2940 | if test "$enableval" = no |
2941 | then | |
2942 | ac_use_strict_options=no | |
b75a7d8f | 2943 | else |
374ca955 | 2944 | ac_use_strict_options=yes |
b75a7d8f | 2945 | fi |
73c04bcf | 2946 | |
b75a7d8f A |
2947 | else |
2948 | ac_use_strict_options=no | |
73c04bcf A |
2949 | fi; |
2950 | echo "$as_me:$LINENO: result: $ac_use_strict_options" >&5 | |
2951 | echo "${ECHO_T}$ac_use_strict_options" >&6 | |
b75a7d8f A |
2952 | |
2953 | if test "$ac_use_strict_options" = yes | |
2954 | then | |
2955 | if test "$GCC" = yes | |
2956 | then | |
73c04bcf | 2957 | CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long" |
b75a7d8f A |
2958 | case "${host}" in |
2959 | *-*-solaris*) | |
2960 | CFLAGS="$CFLAGS -D__STDC__=0";; | |
2961 | esac | |
374ca955 A |
2962 | else |
2963 | case "${host}" in | |
2964 | *-*-cygwin) | |
2965 | if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" | |
2966 | then | |
2967 | CFLAGS="$CFLAGS /W4" | |
2968 | fi | |
2969 | esac | |
b75a7d8f A |
2970 | fi |
2971 | if test "$GXX" = yes | |
2972 | then | |
73c04bcf | 2973 | CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" |
b75a7d8f A |
2974 | case "${host}" in |
2975 | *-*-solaris*) | |
2976 | CXXFLAGS="$CXXFLAGS -D__STDC__=0";; | |
2977 | esac | |
374ca955 A |
2978 | else |
2979 | case "${host}" in | |
2980 | *-*-cygwin) | |
2981 | if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" | |
2982 | then | |
2983 | CXXFLAGS="$CXXFLAGS /W4" | |
2984 | fi | |
2985 | esac | |
b75a7d8f A |
2986 | fi |
2987 | fi | |
2988 | ||
2989 | ||
2990 | ||
73c04bcf | 2991 | |
b75a7d8f A |
2992 | # Check whether --enable-64bit-libs or --disable-64bit-libs was given. |
2993 | if test "${enable_64bit_libs+set}" = set; then | |
2994 | enableval="$enable_64bit_libs" | |
2995 | ENABLE_64BIT_LIBS=${enableval} | |
2996 | else | |
2997 | ENABLE_64BIT_LIBS=yes | |
b75a7d8f | 2998 | |
73c04bcf A |
2999 | fi; |
3000 | echo "$as_me:$LINENO: checking for 64-bit executable support" >&5 | |
3001 | echo $ECHO_N "checking for 64-bit executable support... $ECHO_C" >&6 | |
374ca955 | 3002 | if test "$ENABLE_64BIT_LIBS" != no; then |
b75a7d8f A |
3003 | case "${host}" in |
3004 | *-*-solaris*) | |
374ca955 A |
3005 | SPARCV9=`isainfo -n 2>&1 | grep sparcv9` |
3006 | if test "$GCC" = yes; then | |
3007 | # We could add a check for -m64 depending on the gcc version. | |
3008 | ENABLE_64BIT_LIBS=no | |
3009 | else | |
b75a7d8f | 3010 | SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` |
b75a7d8f A |
3011 | if test -z "$SOL64" && test -n "$SPARCV9"; then |
3012 | CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" | |
3013 | CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" | |
3014 | LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" | |
3015 | ENABLE_64BIT_LIBS=yes | |
3016 | else | |
3017 | ENABLE_64BIT_LIBS=no | |
3018 | fi | |
374ca955 A |
3019 | fi |
3020 | ;; | |
3021 | ia64-*-linux*) | |
3022 | if test "$GCC" = yes; then | |
3023 | # gcc compiler support | |
3024 | if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then | |
3025 | ENABLE_64BIT_LIBS=yes | |
3026 | else | |
3027 | ENABLE_64BIT_LIBS=no | |
3028 | fi | |
3029 | else | |
3030 | # check for ecc/ecpc compiler support | |
3031 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then | |
3032 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then | |
3033 | ENABLE_64BIT_LIBS=yes | |
3034 | else | |
3035 | ENABLE_64BIT_LIBS=no | |
3036 | fi | |
3037 | else | |
3038 | # unknown | |
3039 | ENABLE_64BIT_LIBS=no | |
3040 | fi | |
3041 | fi | |
3042 | ;; | |
3043 | x86_64-*-linux*) | |
3044 | if test "$GCC" = yes; then | |
3045 | if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then | |
3046 | ENABLE_64BIT_LIBS=yes | |
3047 | else | |
3048 | ENABLE_64BIT_LIBS=no | |
3049 | fi | |
b75a7d8f | 3050 | else |
374ca955 | 3051 | # unknown |
b75a7d8f A |
3052 | ENABLE_64BIT_LIBS=no |
3053 | fi | |
3054 | ;; | |
73c04bcf A |
3055 | x86_64-*-cygwin) |
3056 | if test "$GCC" = yes; then | |
3057 | if test -n "`$CXX -dumpspecs 2>&1 && $CC -dumpspecs 2>&1 | grep -v __LP64__`"; then | |
3058 | ENABLE_64BIT_LIBS=yes | |
3059 | else | |
3060 | ENABLE_64BIT_LIBS=no | |
3061 | fi | |
3062 | else | |
3063 | ENABLE_64BIT_LIBS=no | |
3064 | OLD_CPPFLAGS="${CPPFLAGS}" | |
3065 | OLD_LDFLAGS="${LDFLAGS}" | |
3066 | CPPFLAGS="${CPPFLAGS} /DWIN64" | |
3067 | LDFLAGS="${LDFLAGS} /MACHINE:AMD64" | |
3068 | if test "$cross_compiling" = yes; then | |
3069 | ENABLE_64BIT_LIBS=no | |
3070 | else | |
3071 | cat >conftest.$ac_ext <<_ACEOF | |
3072 | /* confdefs.h. */ | |
3073 | _ACEOF | |
3074 | cat confdefs.h >>conftest.$ac_ext | |
3075 | cat >>conftest.$ac_ext <<_ACEOF | |
3076 | /* end confdefs.h. */ | |
3077 | int main(void) {return 0;} | |
3078 | _ACEOF | |
3079 | rm -f conftest$ac_exeext | |
3080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3081 | (eval $ac_link) 2>&5 | |
3082 | ac_status=$? | |
3083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3084 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3086 | (eval $ac_try) 2>&5 | |
3087 | ac_status=$? | |
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3089 | (exit $ac_status); }; }; then | |
3090 | ENABLE_64BIT_LIBS=yes | |
3091 | else | |
3092 | echo "$as_me: program exited with status $ac_status" >&5 | |
3093 | echo "$as_me: failed program was:" >&5 | |
3094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3095 | ||
3096 | ( exit $ac_status ) | |
3097 | ENABLE_64BIT_LIBS=no | |
3098 | fi | |
3099 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3100 | fi | |
3101 | if test "$ENABLE_64BIT_LIBS" = no; then | |
3102 | CPPFLAGS="${OLD_CPPFLAGS}" | |
3103 | LDFLAGS="${OLD_LDFLAGS}" | |
3104 | fi | |
3105 | fi | |
3106 | ;; | |
374ca955 | 3107 | *-*-aix*|powerpc64-*-linux*) |
73c04bcf | 3108 | if test "$ac_cv_c_compiler_gnu" = no; then |
374ca955 A |
3109 | # Note: Have not tested 64-bitness with gcc. |
3110 | # Maybe the flag "-maix64" could be used with gcc? | |
3111 | OLD_CFLAGS="${CFLAGS}" | |
3112 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3113 | OLD_LDFLAGS="${LDFLAGS}" | |
3114 | CFLAGS="${CFLAGS} -q64" | |
3115 | CXXFLAGS="${CXXFLAGS} -q64" | |
3116 | LDFLAGS="${LDFLAGS} -q64" | |
3117 | if test "$cross_compiling" = yes; then | |
b75a7d8f A |
3118 | ENABLE_64BIT_LIBS=no |
3119 | else | |
73c04bcf A |
3120 | cat >conftest.$ac_ext <<_ACEOF |
3121 | /* confdefs.h. */ | |
3122 | _ACEOF | |
3123 | cat confdefs.h >>conftest.$ac_ext | |
3124 | cat >>conftest.$ac_ext <<_ACEOF | |
3125 | /* end confdefs.h. */ | |
b75a7d8f | 3126 | int main(void) {return 0;} |
73c04bcf A |
3127 | _ACEOF |
3128 | rm -f conftest$ac_exeext | |
3129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3130 | (eval $ac_link) 2>&5 | |
3131 | ac_status=$? | |
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3135 | (eval $ac_try) 2>&5 | |
3136 | ac_status=$? | |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3138 | (exit $ac_status); }; }; then | |
b75a7d8f A |
3139 | ENABLE_64BIT_LIBS=yes |
3140 | else | |
73c04bcf A |
3141 | echo "$as_me: program exited with status $ac_status" >&5 |
3142 | echo "$as_me: failed program was:" >&5 | |
3143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3144 | ||
3145 | ( exit $ac_status ) | |
3146 | ENABLE_64BIT_LIBS=no | |
b75a7d8f | 3147 | fi |
73c04bcf | 3148 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 3149 | fi |
374ca955 A |
3150 | if test "$ENABLE_64BIT_LIBS" = no; then |
3151 | CFLAGS="${OLD_CFLAGS}" | |
3152 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3153 | LDFLAGS="${OLD_LDFLAGS}" | |
3154 | else | |
3155 | case "${host}" in | |
3156 | *-*-aix*) | |
3157 | ARFLAGS="${ARFLAGS} -X64" | |
3158 | esac | |
3159 | fi | |
b75a7d8f A |
3160 | fi |
3161 | ;; | |
3162 | *-*-hpux*) | |
73c04bcf | 3163 | |
b75a7d8f A |
3164 | OLD_CFLAGS="${CFLAGS}" |
3165 | OLD_CXXFLAGS="${CXXFLAGS}" | |
374ca955 A |
3166 | CFLAGS="${CFLAGS} +DD64" |
3167 | CXXFLAGS="${CXXFLAGS} +DD64" | |
b75a7d8f A |
3168 | if test "$cross_compiling" = yes; then |
3169 | ENABLE_64BIT_LIBS=no | |
3170 | else | |
73c04bcf A |
3171 | cat >conftest.$ac_ext <<_ACEOF |
3172 | /* confdefs.h. */ | |
3173 | _ACEOF | |
3174 | cat confdefs.h >>conftest.$ac_ext | |
3175 | cat >>conftest.$ac_ext <<_ACEOF | |
3176 | /* end confdefs.h. */ | |
b75a7d8f | 3177 | int main(void) {return 0;} |
73c04bcf A |
3178 | _ACEOF |
3179 | rm -f conftest$ac_exeext | |
3180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3181 | (eval $ac_link) 2>&5 | |
3182 | ac_status=$? | |
3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3186 | (eval $ac_try) 2>&5 | |
3187 | ac_status=$? | |
3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3189 | (exit $ac_status); }; }; then | |
b75a7d8f A |
3190 | ENABLE_64BIT_LIBS=yes |
3191 | else | |
73c04bcf A |
3192 | echo "$as_me: program exited with status $ac_status" >&5 |
3193 | echo "$as_me: failed program was:" >&5 | |
3194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3195 | ||
3196 | ( exit $ac_status ) | |
3197 | ENABLE_64BIT_LIBS=no | |
b75a7d8f | 3198 | fi |
73c04bcf | 3199 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 3200 | fi |
b75a7d8f A |
3201 | if test "$ENABLE_64BIT_LIBS" = no; then |
3202 | CFLAGS="${OLD_CFLAGS}" | |
3203 | CXXFLAGS="${OLD_CXXFLAGS}" | |
374ca955 A |
3204 | CFLAGS="${CFLAGS} +DA2.0W" |
3205 | CXXFLAGS="${CXXFLAGS} +DA2.0W" | |
3206 | if test "$cross_compiling" = yes; then | |
3207 | ENABLE_64BIT_LIBS=no | |
3208 | else | |
73c04bcf A |
3209 | cat >conftest.$ac_ext <<_ACEOF |
3210 | /* confdefs.h. */ | |
3211 | _ACEOF | |
3212 | cat confdefs.h >>conftest.$ac_ext | |
3213 | cat >>conftest.$ac_ext <<_ACEOF | |
3214 | /* end confdefs.h. */ | |
374ca955 | 3215 | int main(void) {return 0;} |
73c04bcf A |
3216 | _ACEOF |
3217 | rm -f conftest$ac_exeext | |
3218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3219 | (eval $ac_link) 2>&5 | |
3220 | ac_status=$? | |
3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3224 | (eval $ac_try) 2>&5 | |
3225 | ac_status=$? | |
3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3227 | (exit $ac_status); }; }; then | |
374ca955 A |
3228 | ENABLE_64BIT_LIBS=yes |
3229 | else | |
73c04bcf A |
3230 | echo "$as_me: program exited with status $ac_status" >&5 |
3231 | echo "$as_me: failed program was:" >&5 | |
3232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3233 | ||
3234 | ( exit $ac_status ) | |
3235 | ENABLE_64BIT_LIBS=no | |
374ca955 | 3236 | fi |
73c04bcf | 3237 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
374ca955 | 3238 | fi |
374ca955 A |
3239 | if test "$ENABLE_64BIT_LIBS" = no; then |
3240 | CFLAGS="${OLD_CFLAGS}" | |
3241 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3242 | fi | |
b75a7d8f A |
3243 | fi |
3244 | ;; | |
73c04bcf A |
3245 | *-*ibm-openedition*|*-*-os390*) |
3246 | OLD_CFLAGS="${CFLAGS}" | |
3247 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3248 | OLD_LDFLAGS="${LDFLAGS}" | |
3249 | CFLAGS="${CFLAGS} -Wc,lp64" | |
3250 | CXXFLAGS="${CXXFLAGS} -Wc,lp64" | |
3251 | LDFLAGS="${LDFLAGS} -Wl,lp64" | |
3252 | if test "$cross_compiling" = yes; then | |
3253 | ENABLE_64BIT_LIBS=no | |
3254 | else | |
3255 | cat >conftest.$ac_ext <<_ACEOF | |
3256 | /* confdefs.h. */ | |
3257 | _ACEOF | |
3258 | cat confdefs.h >>conftest.$ac_ext | |
3259 | cat >>conftest.$ac_ext <<_ACEOF | |
3260 | /* end confdefs.h. */ | |
3261 | int main(void) {return 0;} | |
3262 | _ACEOF | |
3263 | rm -f conftest$ac_exeext | |
3264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3265 | (eval $ac_link) 2>&5 | |
3266 | ac_status=$? | |
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3268 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3270 | (eval $ac_try) 2>&5 | |
3271 | ac_status=$? | |
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3273 | (exit $ac_status); }; }; then | |
3274 | ENABLE_64BIT_LIBS=yes | |
3275 | else | |
3276 | echo "$as_me: program exited with status $ac_status" >&5 | |
3277 | echo "$as_me: failed program was:" >&5 | |
3278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3279 | ||
3280 | ( exit $ac_status ) | |
3281 | ENABLE_64BIT_LIBS=no | |
3282 | fi | |
3283 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3284 | fi | |
3285 | if test "$ENABLE_64BIT_LIBS" = no; then | |
3286 | CFLAGS="${OLD_CFLAGS}" | |
3287 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3288 | LDFLAGS="${OLD_LDFLAGS}" | |
3289 | fi | |
3290 | ;; | |
b75a7d8f A |
3291 | *) |
3292 | ENABLE_64BIT_LIBS=no | |
3293 | ;; | |
3294 | esac | |
73c04bcf A |
3295 | else |
3296 | if test "$GCC" = yes; then | |
3297 | OLD_CFLAGS="${CFLAGS}" | |
3298 | OLD_CXXFLAGS="${CXXFLAGS}" | |
3299 | CFLAGS="${CFLAGS} -m32" | |
3300 | CXXFLAGS="${CXXFLAGS} -m32" | |
3301 | if test "$cross_compiling" = yes; then | |
3302 | ENABLE_64BIT_LIBS=yes | |
3303 | else | |
3304 | cat >conftest.$ac_ext <<_ACEOF | |
3305 | /* confdefs.h. */ | |
3306 | _ACEOF | |
3307 | cat confdefs.h >>conftest.$ac_ext | |
3308 | cat >>conftest.$ac_ext <<_ACEOF | |
3309 | /* end confdefs.h. */ | |
3310 | int main(void) {return 0;} | |
3311 | _ACEOF | |
3312 | rm -f conftest$ac_exeext | |
3313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3314 | (eval $ac_link) 2>&5 | |
3315 | ac_status=$? | |
3316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3317 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3319 | (eval $ac_try) 2>&5 | |
3320 | ac_status=$? | |
3321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3322 | (exit $ac_status); }; }; then | |
3323 | ENABLE_64BIT_LIBS=no | |
3324 | else | |
3325 | echo "$as_me: program exited with status $ac_status" >&5 | |
3326 | echo "$as_me: failed program was:" >&5 | |
3327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3328 | ||
3329 | ( exit $ac_status ) | |
3330 | ENABLE_64BIT_LIBS=yes | |
3331 | fi | |
3332 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3333 | fi | |
3334 | if test "$ENABLE_64BIT_LIBS" = yes; then | |
3335 | CFLAGS="${OLD_CFLAGS}" | |
3336 | CXXFLAGS="${OLD_CXXFLAGS}" | |
3337 | fi | |
3338 | fi | |
b75a7d8f | 3339 | fi |
73c04bcf A |
3340 | echo "$as_me:$LINENO: result: $ENABLE_64BIT_LIBS" >&5 |
3341 | echo "${ECHO_T}$ENABLE_64BIT_LIBS" >&6 | |
b75a7d8f A |
3342 | |
3343 | ||
3344 | ||
3345 | ||
3346 | ||
73c04bcf A |
3347 | echo "$as_me:$LINENO: checking which Makefile fragment to use" >&5 |
3348 | echo $ECHO_N "checking which Makefile fragment to use... $ECHO_C" >&6 | |
3349 | if test "${icu_cv_host_frag+set}" = set; then | |
3350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 3351 | else |
73c04bcf | 3352 | |
b75a7d8f A |
3353 | case "${host}" in |
3354 | *-*-solaris*) | |
73c04bcf A |
3355 | if test "$GCC" = yes; then |
3356 | icu_cv_host_frag=mh-solaris-gcc | |
b75a7d8f A |
3357 | else |
3358 | icu_cv_host_frag=mh-solaris | |
3359 | fi ;; | |
3360 | alpha*-*-linux-gnu) | |
374ca955 | 3361 | if test "$GCC" = yes; then |
b75a7d8f | 3362 | icu_cv_host_frag=mh-alpha-linux-gcc |
73c04bcf | 3363 | else |
b75a7d8f A |
3364 | icu_cv_host_frag=mh-alpha-linux-cc |
3365 | fi ;; | |
374ca955 A |
3366 | powerpc*-*-linux*) |
3367 | if test "$GCC" = yes; then | |
3368 | icu_cv_host_frag=mh-linux | |
3369 | else | |
3370 | icu_cv_host_frag=mh-linux-va | |
3371 | fi ;; | |
b75a7d8f A |
3372 | *-*-linux*) icu_cv_host_frag=mh-linux ;; |
3373 | *-*-cygwin) | |
374ca955 | 3374 | if test "$GCC" = yes; then |
b75a7d8f A |
3375 | icu_cv_host_frag=mh-cygwin |
3376 | else | |
3377 | icu_cv_host_frag=mh-cygwin-msvc | |
3378 | fi ;; | |
374ca955 A |
3379 | *-*-mingw32) |
3380 | if test "$GCC" = yes; then | |
3381 | icu_cv_host_frag=mh-mingw | |
3382 | else | |
3383 | icu_cv_host_frag=mh-cygwin-msvc | |
3384 | fi ;; | |
73c04bcf | 3385 | *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; |
b75a7d8f | 3386 | *-*-aix*) |
374ca955 A |
3387 | if test "$GCC" = yes; then |
3388 | icu_cv_host_frag=mh-aix-gcc | |
b75a7d8f | 3389 | else |
374ca955 A |
3390 | if test -n "`$CXX --help 2>&1 | grep 'IBM C and C++ Compilers$'`"; then |
3391 | icu_cv_host_frag=mh-aix | |
3392 | else | |
3393 | icu_cv_host_frag=mh-aix-va | |
3394 | fi | |
b75a7d8f A |
3395 | fi ;; |
3396 | *-*-hpux*) | |
374ca955 | 3397 | if test "$GCC" = yes; then |
b75a7d8f A |
3398 | icu_cv_host_frag=mh-hpux-gcc |
3399 | else | |
3400 | case "$CXX" in | |
3401 | *aCC) icu_cv_host_frag=mh-hpux-acc ;; | |
3402 | *CC) icu_cv_host_frag=mh-hpux-cc ;; | |
3403 | esac | |
3404 | fi ;; | |
3405 | *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; | |
3406 | *-*-os400*) icu_cv_host_frag=mh-os400 ;; | |
3407 | *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; | |
3408 | *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; | |
374ca955 | 3409 | *-*-beos) icu_cv_host_frag=mh-beos ;; |
b75a7d8f A |
3410 | *-*-irix*) icu_cv_host_frag=mh-irix ;; |
3411 | *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; | |
3412 | *-*-nto*) icu_cv_host_frag=mh-qnx ;; | |
374ca955 | 3413 | *-ncr-*) icu_cv_host_frag=mh-mpras ;; |
b75a7d8f A |
3414 | *) icu_cv_host_frag=mh-unknown ;; |
3415 | esac | |
b75a7d8f | 3416 | |
73c04bcf A |
3417 | |
3418 | fi | |
3419 | echo "$as_me:$LINENO: result: $icu_cv_host_frag" >&5 | |
3420 | echo "${ECHO_T}$icu_cv_host_frag" >&6 | |
b75a7d8f A |
3421 | |
3422 | ||
b75a7d8f | 3423 | case "${host}" in |
73c04bcf A |
3424 | *-*-hpux*) echo "$as_me:$LINENO: checking for floor in -lm" >&5 |
3425 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
3426 | if test "${ac_cv_lib_m_floor+set}" = set; then | |
3427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 3428 | else |
73c04bcf | 3429 | ac_check_lib_save_LIBS=$LIBS |
b75a7d8f | 3430 | LIBS="-lm $LIBS" |
73c04bcf A |
3431 | cat >conftest.$ac_ext <<_ACEOF |
3432 | /* confdefs.h. */ | |
3433 | _ACEOF | |
3434 | cat confdefs.h >>conftest.$ac_ext | |
3435 | cat >>conftest.$ac_ext <<_ACEOF | |
3436 | /* end confdefs.h. */ | |
3437 | ||
b75a7d8f | 3438 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
3439 | #ifdef __cplusplus |
3440 | extern "C" | |
3441 | #endif | |
b75a7d8f | 3442 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
3443 | builtin and then its argument prototype would still apply. */ |
3444 | char floor (); | |
3445 | int | |
3446 | main () | |
3447 | { | |
3448 | floor (); | |
3449 | ; | |
3450 | return 0; | |
3451 | } | |
3452 | _ACEOF | |
3453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3455 | (eval $ac_link) 2>conftest.er1 | |
3456 | ac_status=$? | |
3457 | grep -v '^ *+' conftest.er1 >conftest.err | |
3458 | rm -f conftest.er1 | |
3459 | cat conftest.err >&5 | |
3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3461 | (exit $ac_status); } && | |
3462 | { ac_try='test -z "$ac_c_werror_flag" | |
3463 | || test ! -s conftest.err' | |
3464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3465 | (eval $ac_try) 2>&5 | |
3466 | ac_status=$? | |
3467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3468 | (exit $ac_status); }; } && | |
3469 | { ac_try='test -s conftest$ac_exeext' | |
3470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3471 | (eval $ac_try) 2>&5 | |
3472 | ac_status=$? | |
3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3474 | (exit $ac_status); }; }; then | |
3475 | ac_cv_lib_m_floor=yes | |
3476 | else | |
3477 | echo "$as_me: failed program was:" >&5 | |
3478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3479 | ||
3480 | ac_cv_lib_m_floor=no | |
3481 | fi | |
3482 | rm -f conftest.err conftest.$ac_objext \ | |
3483 | conftest$ac_exeext conftest.$ac_ext | |
3484 | LIBS=$ac_check_lib_save_LIBS | |
3485 | fi | |
3486 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 | |
3487 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
3488 | if test $ac_cv_lib_m_floor = yes; then | |
b75a7d8f | 3489 | LIB_M="-lm" |
b75a7d8f A |
3490 | fi |
3491 | ;; | |
73c04bcf A |
3492 | |
3493 | *) | |
3494 | echo "$as_me:$LINENO: checking for floor in -lm" >&5 | |
3495 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
3496 | if test "${ac_cv_lib_m_floor+set}" = set; then | |
3497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3498 | else | |
3499 | ac_check_lib_save_LIBS=$LIBS | |
b75a7d8f | 3500 | LIBS="-lm $LIBS" |
73c04bcf A |
3501 | cat >conftest.$ac_ext <<_ACEOF |
3502 | /* confdefs.h. */ | |
3503 | _ACEOF | |
3504 | cat confdefs.h >>conftest.$ac_ext | |
3505 | cat >>conftest.$ac_ext <<_ACEOF | |
3506 | /* end confdefs.h. */ | |
3507 | ||
b75a7d8f | 3508 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
3509 | #ifdef __cplusplus |
3510 | extern "C" | |
3511 | #endif | |
b75a7d8f | 3512 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
3513 | builtin and then its argument prototype would still apply. */ |
3514 | char floor (); | |
3515 | int | |
3516 | main () | |
3517 | { | |
3518 | floor (); | |
3519 | ; | |
3520 | return 0; | |
3521 | } | |
3522 | _ACEOF | |
3523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3525 | (eval $ac_link) 2>conftest.er1 | |
3526 | ac_status=$? | |
3527 | grep -v '^ *+' conftest.er1 >conftest.err | |
3528 | rm -f conftest.er1 | |
3529 | cat conftest.err >&5 | |
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3531 | (exit $ac_status); } && | |
3532 | { ac_try='test -z "$ac_c_werror_flag" | |
3533 | || test ! -s conftest.err' | |
3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3535 | (eval $ac_try) 2>&5 | |
3536 | ac_status=$? | |
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3538 | (exit $ac_status); }; } && | |
3539 | { ac_try='test -s conftest$ac_exeext' | |
3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3541 | (eval $ac_try) 2>&5 | |
3542 | ac_status=$? | |
3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3544 | (exit $ac_status); }; }; then | |
3545 | ac_cv_lib_m_floor=yes | |
3546 | else | |
3547 | echo "$as_me: failed program was:" >&5 | |
3548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3549 | ||
3550 | ac_cv_lib_m_floor=no | |
3551 | fi | |
3552 | rm -f conftest.err conftest.$ac_objext \ | |
3553 | conftest$ac_exeext conftest.$ac_ext | |
3554 | LIBS=$ac_check_lib_save_LIBS | |
3555 | fi | |
3556 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 | |
3557 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
3558 | if test $ac_cv_lib_m_floor = yes; then | |
3559 | cat >>confdefs.h <<_ACEOF | |
3560 | #define HAVE_LIBM 1 | |
3561 | _ACEOF | |
b75a7d8f A |
3562 | |
3563 | LIBS="-lm $LIBS" | |
3564 | ||
b75a7d8f | 3565 | fi |
73c04bcf | 3566 | |
b75a7d8f A |
3567 | LIB_M="" ;; |
3568 | esac | |
3569 | ||
3570 | ||
73c04bcf A |
3571 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
3572 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
b75a7d8f A |
3573 | enabled=no |
3574 | # Check whether --enable-shared or --disable-shared was given. | |
3575 | if test "${enable_shared+set}" = set; then | |
3576 | enableval="$enable_shared" | |
3577 | case "${enableval}" in | |
3578 | yes|"") enabled=yes; ENABLE_SHARED=YES ;; | |
3579 | no);; | |
3580 | *) ;; | |
3581 | esac | |
3582 | else | |
3583 | enabled=yes; ENABLE_SHARED=YES | |
3584 | ||
73c04bcf A |
3585 | fi; |
3586 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3587 | echo "${ECHO_T}$enabled" >&6 | |
b75a7d8f A |
3588 | |
3589 | ||
73c04bcf A |
3590 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
3591 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
b75a7d8f A |
3592 | enabled=no |
3593 | # Check whether --enable-static or --disable-static was given. | |
3594 | if test "${enable_static+set}" = set; then | |
3595 | enableval="$enable_static" | |
3596 | case "${enableval}" in | |
3597 | yes|"") enabled=yes; ENABLE_STATIC=YES ;; | |
3598 | no) ;; | |
3599 | *) ;; | |
3600 | esac | |
73c04bcf A |
3601 | fi; |
3602 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3603 | echo "${ECHO_T}$enabled" >&6 | |
b75a7d8f A |
3604 | |
3605 | ||
73c04bcf A |
3606 | echo "$as_me:$LINENO: checking whether to build debug libraries" >&5 |
3607 | echo $ECHO_N "checking whether to build debug libraries... $ECHO_C" >&6 | |
374ca955 A |
3608 | enabled=no |
3609 | ENABLE_DEBUG=0 | |
3610 | # Check whether --enable-debug or --disable-debug was given. | |
3611 | if test "${enable_debug+set}" = set; then | |
3612 | enableval="$enable_debug" | |
3613 | case "${enableval}" in | |
3614 | yes|"") enabled=yes; ENABLE_DEBUG=1 ;; | |
3615 | *) ;; | |
3616 | esac | |
73c04bcf A |
3617 | fi; |
3618 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3619 | echo "${ECHO_T}$enabled" >&6 | |
374ca955 | 3620 | |
374ca955 | 3621 | |
73c04bcf A |
3622 | echo "$as_me:$LINENO: checking whether to build release libraries" >&5 |
3623 | echo $ECHO_N "checking whether to build release libraries... $ECHO_C" >&6 | |
374ca955 A |
3624 | enabled=yes |
3625 | ENABLE_RELEASE=1 | |
3626 | # Check whether --enable-release or --disable-release was given. | |
3627 | if test "${enable_release+set}" = set; then | |
3628 | enableval="$enable_release" | |
3629 | case "${enableval}" in | |
73c04bcf A |
3630 | no) enabled=no; ENABLE_RELEASE=0 ;; |
3631 | *) ;; | |
3632 | esac | |
3633 | fi; | |
3634 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3635 | echo "${ECHO_T}$enabled" >&6 | |
3636 | ||
3637 | ||
3638 | echo "$as_me:$LINENO: checking whether to enable draft APIs" >&5 | |
3639 | echo $ECHO_N "checking whether to enable draft APIs... $ECHO_C" >&6 | |
3640 | enabled=yes | |
3641 | U_DEFAULT_SHOW_DRAFT=1 | |
3642 | # Check whether --enable-draft or --disable-draft was given. | |
3643 | if test "${enable_draft+set}" = set; then | |
3644 | enableval="$enable_draft" | |
3645 | case "${enableval}" in | |
3646 | no) enabled=no; U_DEFAULT_SHOW_DRAFT=0 ;; | |
374ca955 A |
3647 | *) ;; |
3648 | esac | |
73c04bcf A |
3649 | fi; |
3650 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3651 | echo "${ECHO_T}$enabled" >&6 | |
3652 | if test "$U_DEFAULT_SHOW_DRAFT" = 0; then | |
3653 | CPPFLAGS="$CPPFLAGS -DU_SHOW_DRAFT_API" | |
374ca955 A |
3654 | fi |
3655 | ||
374ca955 | 3656 | |
73c04bcf A |
3657 | if test -n "$ac_tool_prefix"; then |
3658 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3659 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3662 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f A |
3664 | else |
3665 | if test -n "$RANLIB"; then | |
3666 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3667 | else | |
73c04bcf A |
3668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3669 | for as_dir in $PATH | |
3670 | do | |
3671 | IFS=$as_save_IFS | |
3672 | test -z "$as_dir" && as_dir=. | |
3673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3675 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3677 | break 2 | |
3678 | fi | |
3679 | done | |
3680 | done | |
3681 | ||
b75a7d8f A |
3682 | fi |
3683 | fi | |
73c04bcf | 3684 | RANLIB=$ac_cv_prog_RANLIB |
b75a7d8f | 3685 | if test -n "$RANLIB"; then |
73c04bcf A |
3686 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3687 | echo "${ECHO_T}$RANLIB" >&6 | |
3688 | else | |
3689 | echo "$as_me:$LINENO: result: no" >&5 | |
3690 | echo "${ECHO_T}no" >&6 | |
3691 | fi | |
3692 | ||
3693 | fi | |
3694 | if test -z "$ac_cv_prog_RANLIB"; then | |
3695 | ac_ct_RANLIB=$RANLIB | |
3696 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3697 | set dummy ranlib; ac_word=$2 | |
3698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3700 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 3702 | else |
73c04bcf A |
3703 | if test -n "$ac_ct_RANLIB"; then |
3704 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3705 | else | |
3706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3707 | for as_dir in $PATH | |
3708 | do | |
3709 | IFS=$as_save_IFS | |
3710 | test -z "$as_dir" && as_dir=. | |
3711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3713 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3715 | break 2 | |
3716 | fi | |
3717 | done | |
3718 | done | |
3719 | ||
3720 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3721 | fi | |
3722 | fi | |
3723 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3724 | if test -n "$ac_ct_RANLIB"; then | |
3725 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3726 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3727 | else | |
3728 | echo "$as_me:$LINENO: result: no" >&5 | |
3729 | echo "${ECHO_T}no" >&6 | |
3730 | fi | |
3731 | ||
3732 | RANLIB=$ac_ct_RANLIB | |
3733 | else | |
3734 | RANLIB="$ac_cv_prog_RANLIB" | |
b75a7d8f A |
3735 | fi |
3736 | ||
3737 | # Extract the first word of "ar", so it can be a program name with args. | |
3738 | set dummy ar; ac_word=$2 | |
73c04bcf A |
3739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3741 | if test "${ac_cv_path_AR+set}" = set; then | |
3742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 3743 | else |
73c04bcf A |
3744 | case $AR in |
3745 | [\\/]* | ?:[\\/]*) | |
b75a7d8f A |
3746 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
3747 | ;; | |
b75a7d8f | 3748 | *) |
73c04bcf A |
3749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3750 | as_dummy="$PATH:/bin:/usr/bin:/usr/ccs/bin" | |
3751 | for as_dir in $as_dummy | |
3752 | do | |
3753 | IFS=$as_save_IFS | |
3754 | test -z "$as_dir" && as_dir=. | |
3755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3757 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
3758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3759 | break 2 | |
3760 | fi | |
3761 | done | |
3762 | done | |
3763 | ||
b75a7d8f A |
3764 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="echo archiver ar not found re-run configure ; false" |
3765 | ;; | |
3766 | esac | |
3767 | fi | |
73c04bcf A |
3768 | AR=$ac_cv_path_AR |
3769 | ||
b75a7d8f | 3770 | if test -n "$AR"; then |
73c04bcf A |
3771 | echo "$as_me:$LINENO: result: $AR" >&5 |
3772 | echo "${ECHO_T}$AR" >&6 | |
b75a7d8f | 3773 | else |
73c04bcf A |
3774 | echo "$as_me:$LINENO: result: no" >&5 |
3775 | echo "${ECHO_T}no" >&6 | |
b75a7d8f A |
3776 | fi |
3777 | ||
3778 | ||
73c04bcf A |
3779 | echo "$as_me:$LINENO: checking whether to enable renaming of symbols" >&5 |
3780 | echo $ECHO_N "checking whether to enable renaming of symbols... $ECHO_C" >&6 | |
b75a7d8f A |
3781 | enabled=yes |
3782 | U_DISABLE_RENAMING=0 | |
3783 | # Check whether --enable-renaming or --disable-renaming was given. | |
3784 | if test "${enable_renaming+set}" = set; then | |
3785 | enableval="$enable_renaming" | |
3786 | case "${enableval}" in | |
3787 | yes|"") enabled=yes ;; | |
3788 | no) enabled=no; U_DISABLE_RENAMING=1 ;; | |
3789 | *) ;; | |
3790 | esac | |
73c04bcf A |
3791 | fi; |
3792 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3793 | echo "${ECHO_T}$enabled" >&6 | |
b75a7d8f | 3794 | |
b75a7d8f | 3795 | |
73c04bcf A |
3796 | echo "$as_me:$LINENO: checking whether to enable function and data tracing" >&5 |
3797 | echo $ECHO_N "checking whether to enable function and data tracing... $ECHO_C" >&6 | |
374ca955 A |
3798 | enabled=yes |
3799 | U_ENABLE_TRACING=1 | |
3800 | # Check whether --enable-tracing or --disable-tracing was given. | |
3801 | if test "${enable_tracing+set}" = set; then | |
3802 | enableval="$enable_tracing" | |
3803 | case "${enableval}" in | |
3804 | yes|"") enabled=yes ;; | |
3805 | no) enabled=no; U_ENABLE_TRACING=0 ;; | |
3806 | *) ;; | |
3807 | esac | |
73c04bcf A |
3808 | fi; |
3809 | echo "$as_me:$LINENO: result: $enabled" >&5 | |
3810 | echo "${ECHO_T}$enabled" >&6 | |
374ca955 A |
3811 | |
3812 | ||
b75a7d8f A |
3813 | # Check whether --enable-rpath or --disable-rpath was given. |
3814 | if test "${enable_rpath+set}" = set; then | |
3815 | enableval="$enable_rpath" | |
3816 | case "${enableval}" in | |
3817 | yes|"") ENABLE_RPATH=YES ;; | |
3818 | no) ;; | |
3819 | *) ;; | |
3820 | esac | |
3821 | else | |
3822 | ENABLE_RPATH=NO | |
3823 | ||
73c04bcf | 3824 | fi; |
b75a7d8f A |
3825 | |
3826 | ||
3827 | ||
73c04bcf A |
3828 | echo "$as_me:$LINENO: checking for definition of U_INLINE for C" >&5 |
3829 | echo $ECHO_N "checking for definition of U_INLINE for C... $ECHO_C" >&6 | |
3830 | if test "${ac_cv_c_inline+set}" = set; then | |
3831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f A |
3832 | else |
3833 | ac_cv_c_inline=no | |
3834 | for ac_kw in inline __inline__ __inline; do | |
73c04bcf A |
3835 | cat >conftest.$ac_ext <<_ACEOF |
3836 | /* confdefs.h. */ | |
3837 | _ACEOF | |
3838 | cat confdefs.h >>conftest.$ac_ext | |
3839 | cat >>conftest.$ac_ext <<_ACEOF | |
3840 | /* end confdefs.h. */ | |
3841 | ||
3842 | int | |
3843 | main () | |
3844 | { | |
374ca955 | 3845 | return 0;} $ac_kw int foo() { |
73c04bcf A |
3846 | ; |
3847 | return 0; | |
3848 | } | |
3849 | _ACEOF | |
3850 | rm -f conftest.$ac_objext | |
3851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3852 | (eval $ac_compile) 2>conftest.er1 | |
3853 | ac_status=$? | |
3854 | grep -v '^ *+' conftest.er1 >conftest.err | |
3855 | rm -f conftest.er1 | |
3856 | cat conftest.err >&5 | |
3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3858 | (exit $ac_status); } && | |
3859 | { ac_try='test -z "$ac_c_werror_flag" | |
3860 | || test ! -s conftest.err' | |
3861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3862 | (eval $ac_try) 2>&5 | |
3863 | ac_status=$? | |
3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3865 | (exit $ac_status); }; } && | |
3866 | { ac_try='test -s conftest.$ac_objext' | |
3867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3868 | (eval $ac_try) 2>&5 | |
3869 | ac_status=$? | |
3870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3871 | (exit $ac_status); }; }; then | |
b75a7d8f A |
3872 | ac_cv_c_inline=$ac_kw; break |
3873 | else | |
73c04bcf A |
3874 | echo "$as_me: failed program was:" >&5 |
3875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3876 | ||
b75a7d8f | 3877 | fi |
73c04bcf | 3878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 3879 | done |
b75a7d8f | 3880 | |
73c04bcf A |
3881 | fi |
3882 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3883 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
b75a7d8f A |
3884 | case "$ac_cv_c_inline" in |
3885 | yes) U_INLINE= "inline" ;; | |
3886 | no ) U_INLINE= ;; | |
3887 | *) U_INLINE=$ac_cv_c_inline ;; | |
3888 | esac | |
3889 | ||
3890 | ||
3891 | threads=true | |
3892 | ||
3893 | # Check whether --enable-threads or --disable-threads was given. | |
3894 | if test "${enable_threads+set}" = set; then | |
3895 | enableval="$enable_threads" | |
3896 | case "${enableval}" in | |
3897 | yes) threads=true ;; | |
3898 | no) threads=false ;; | |
73c04bcf A |
3899 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-threads" >&5 |
3900 | echo "$as_me: error: bad value ${enableval} for --enable-threads" >&2;} | |
3901 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
3902 | esac |
3903 | else | |
3904 | threads=true | |
73c04bcf | 3905 | fi; |
b75a7d8f | 3906 | |
b75a7d8f A |
3907 | if test "$threads" = true; then |
3908 | THREADS_TRUE= | |
b75a7d8f A |
3909 | else |
3910 | THREADS_TRUE='#' | |
b75a7d8f A |
3911 | fi |
3912 | ||
3913 | ICU_USE_THREADS=0 | |
3914 | ||
3915 | if test $threads = true; then | |
73c04bcf A |
3916 | |
3917 | ||
3918 | echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5 | |
3919 | echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6 | |
3920 | if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then | |
3921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3922 | else | |
3923 | ac_check_lib_save_LIBS=$LIBS | |
b75a7d8f | 3924 | LIBS="-lpthread $LIBS" |
73c04bcf A |
3925 | cat >conftest.$ac_ext <<_ACEOF |
3926 | /* confdefs.h. */ | |
3927 | _ACEOF | |
3928 | cat confdefs.h >>conftest.$ac_ext | |
3929 | cat >>conftest.$ac_ext <<_ACEOF | |
3930 | /* end confdefs.h. */ | |
3931 | ||
b75a7d8f | 3932 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
3933 | #ifdef __cplusplus |
3934 | extern "C" | |
3935 | #endif | |
b75a7d8f | 3936 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
3937 | builtin and then its argument prototype would still apply. */ |
3938 | char pthread_attr_init (); | |
3939 | int | |
3940 | main () | |
3941 | { | |
3942 | pthread_attr_init (); | |
3943 | ; | |
3944 | return 0; | |
3945 | } | |
3946 | _ACEOF | |
3947 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3949 | (eval $ac_link) 2>conftest.er1 | |
3950 | ac_status=$? | |
3951 | grep -v '^ *+' conftest.er1 >conftest.err | |
3952 | rm -f conftest.er1 | |
3953 | cat conftest.err >&5 | |
3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3955 | (exit $ac_status); } && | |
3956 | { ac_try='test -z "$ac_c_werror_flag" | |
3957 | || test ! -s conftest.err' | |
3958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3959 | (eval $ac_try) 2>&5 | |
3960 | ac_status=$? | |
3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3962 | (exit $ac_status); }; } && | |
3963 | { ac_try='test -s conftest$ac_exeext' | |
3964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3965 | (eval $ac_try) 2>&5 | |
3966 | ac_status=$? | |
3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3968 | (exit $ac_status); }; }; then | |
3969 | ac_cv_lib_pthread_pthread_attr_init=yes | |
3970 | else | |
3971 | echo "$as_me: failed program was:" >&5 | |
3972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3973 | ||
3974 | ac_cv_lib_pthread_pthread_attr_init=no | |
3975 | fi | |
3976 | rm -f conftest.err conftest.$ac_objext \ | |
3977 | conftest$ac_exeext conftest.$ac_ext | |
3978 | LIBS=$ac_check_lib_save_LIBS | |
3979 | fi | |
3980 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 | |
3981 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6 | |
3982 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then | |
3983 | cat >>confdefs.h <<_ACEOF | |
3984 | #define HAVE_LIBPTHREAD 1 | |
3985 | _ACEOF | |
b75a7d8f A |
3986 | |
3987 | LIBS="-lpthread $LIBS" | |
3988 | ||
b75a7d8f A |
3989 | fi |
3990 | ||
3991 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then | |
73c04bcf | 3992 | ICU_USE_THREADS=1 |
b75a7d8f | 3993 | else |
73c04bcf A |
3994 | |
3995 | ||
3996 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_destroy" >&5 | |
3997 | echo $ECHO_N "checking for library containing pthread_mutex_destroy... $ECHO_C" >&6 | |
3998 | if test "${ac_cv_search_pthread_mutex_destroy+set}" = set; then | |
3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f A |
4000 | else |
4001 | ac_func_search_save_LIBS="$LIBS" | |
4002 | ac_cv_search_pthread_mutex_destroy="no" | |
374ca955 | 4003 | for i in pthread pthreads c_r ; do |
b75a7d8f | 4004 | LIBS="-l$i $ac_func_search_save_LIBS" |
73c04bcf A |
4005 | cat >conftest.$ac_ext <<_ACEOF |
4006 | /* confdefs.h. */ | |
4007 | _ACEOF | |
4008 | cat confdefs.h >>conftest.$ac_ext | |
4009 | cat >>conftest.$ac_ext <<_ACEOF | |
4010 | /* end confdefs.h. */ | |
4011 | ||
b75a7d8f | 4012 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
4013 | #ifdef __cplusplus |
4014 | extern "C" | |
4015 | #endif | |
b75a7d8f | 4016 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
4017 | builtin and then its argument prototype would still apply. */ |
4018 | char pthread_mutex_destroy (); | |
4019 | int | |
4020 | main () | |
4021 | { | |
4022 | pthread_mutex_destroy (); | |
4023 | ; | |
4024 | return 0; | |
4025 | } | |
4026 | _ACEOF | |
4027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4029 | (eval $ac_link) 2>conftest.er1 | |
4030 | ac_status=$? | |
4031 | grep -v '^ *+' conftest.er1 >conftest.err | |
4032 | rm -f conftest.er1 | |
4033 | cat conftest.err >&5 | |
4034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4035 | (exit $ac_status); } && | |
4036 | { ac_try='test -z "$ac_c_werror_flag" | |
4037 | || test ! -s conftest.err' | |
4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4039 | (eval $ac_try) 2>&5 | |
4040 | ac_status=$? | |
4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4042 | (exit $ac_status); }; } && | |
4043 | { ac_try='test -s conftest$ac_exeext' | |
4044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4045 | (eval $ac_try) 2>&5 | |
4046 | ac_status=$? | |
4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4048 | (exit $ac_status); }; }; then | |
b75a7d8f A |
4049 | ac_cv_search_pthread_mutex_destroy="-l$i" |
4050 | break | |
4051 | else | |
73c04bcf A |
4052 | echo "$as_me: failed program was:" >&5 |
4053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4054 | ||
b75a7d8f | 4055 | fi |
73c04bcf A |
4056 | rm -f conftest.err conftest.$ac_objext \ |
4057 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
4058 | done |
4059 | if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then | |
73c04bcf A |
4060 | cat >conftest.$ac_ext <<_ACEOF |
4061 | /* confdefs.h. */ | |
4062 | _ACEOF | |
4063 | cat confdefs.h >>conftest.$ac_ext | |
4064 | cat >>conftest.$ac_ext <<_ACEOF | |
4065 | /* end confdefs.h. */ | |
4066 | ||
b75a7d8f | 4067 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
4068 | #ifdef __cplusplus |
4069 | extern "C" | |
4070 | #endif | |
b75a7d8f | 4071 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
4072 | builtin and then its argument prototype would still apply. */ |
4073 | char pthread_mutex_destroy (); | |
4074 | int | |
4075 | main () | |
4076 | { | |
4077 | pthread_mutex_destroy (); | |
4078 | ; | |
4079 | return 0; | |
4080 | } | |
4081 | _ACEOF | |
4082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4084 | (eval $ac_link) 2>conftest.er1 | |
4085 | ac_status=$? | |
4086 | grep -v '^ *+' conftest.er1 >conftest.err | |
4087 | rm -f conftest.er1 | |
4088 | cat conftest.err >&5 | |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4090 | (exit $ac_status); } && | |
4091 | { ac_try='test -z "$ac_c_werror_flag" | |
4092 | || test ! -s conftest.err' | |
4093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4094 | (eval $ac_try) 2>&5 | |
4095 | ac_status=$? | |
4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4097 | (exit $ac_status); }; } && | |
4098 | { ac_try='test -s conftest$ac_exeext' | |
4099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4100 | (eval $ac_try) 2>&5 | |
4101 | ac_status=$? | |
4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4103 | (exit $ac_status); }; }; then | |
b75a7d8f A |
4104 | ac_cv_search_pthread_mutex_destroy="none required" |
4105 | else | |
73c04bcf A |
4106 | echo "$as_me: failed program was:" >&5 |
4107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4108 | ||
b75a7d8f | 4109 | fi |
73c04bcf A |
4110 | rm -f conftest.err conftest.$ac_objext \ |
4111 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
4112 | fi |
4113 | LIBS="$ac_func_search_save_LIBS" | |
4114 | fi | |
73c04bcf A |
4115 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_destroy" >&5 |
4116 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_destroy" >&6 | |
b75a7d8f A |
4117 | if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then |
4118 | test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" | |
73c04bcf | 4119 | |
b75a7d8f | 4120 | else : |
73c04bcf | 4121 | |
b75a7d8f A |
4122 | fi |
4123 | ||
73c04bcf A |
4124 | if test "$ac_cv_search_pthread_mutex_destroy" != no; then |
4125 | ICU_USE_THREADS=1 | |
4126 | else | |
4127 | ||
4128 | echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 | |
4129 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 | |
4130 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then | |
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4132 | else | |
4133 | ac_check_lib_save_LIBS=$LIBS | |
b75a7d8f | 4134 | LIBS="-lpthread $LIBS" |
73c04bcf A |
4135 | cat >conftest.$ac_ext <<_ACEOF |
4136 | /* confdefs.h. */ | |
4137 | _ACEOF | |
4138 | cat confdefs.h >>conftest.$ac_ext | |
4139 | cat >>conftest.$ac_ext <<_ACEOF | |
4140 | /* end confdefs.h. */ | |
4141 | ||
4142 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4143 | #ifdef __cplusplus | |
4144 | extern "C" | |
4145 | #endif | |
4146 | /* We use char because int might match the return type of a gcc2 | |
4147 | builtin and then its argument prototype would still apply. */ | |
4148 | char pthread_mutex_init (); | |
4149 | int | |
4150 | main () | |
4151 | { | |
4152 | pthread_mutex_init (); | |
4153 | ; | |
4154 | return 0; | |
4155 | } | |
4156 | _ACEOF | |
4157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4159 | (eval $ac_link) 2>conftest.er1 | |
4160 | ac_status=$? | |
4161 | grep -v '^ *+' conftest.er1 >conftest.err | |
4162 | rm -f conftest.er1 | |
4163 | cat conftest.err >&5 | |
4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4165 | (exit $ac_status); } && | |
4166 | { ac_try='test -z "$ac_c_werror_flag" | |
4167 | || test ! -s conftest.err' | |
4168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4169 | (eval $ac_try) 2>&5 | |
4170 | ac_status=$? | |
4171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4172 | (exit $ac_status); }; } && | |
4173 | { ac_try='test -s conftest$ac_exeext' | |
4174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4175 | (eval $ac_try) 2>&5 | |
4176 | ac_status=$? | |
4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4178 | (exit $ac_status); }; }; then | |
4179 | ac_cv_lib_pthread_pthread_mutex_init=yes | |
4180 | else | |
4181 | echo "$as_me: failed program was:" >&5 | |
4182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4183 | ||
4184 | ac_cv_lib_pthread_pthread_mutex_init=no | |
4185 | fi | |
4186 | rm -f conftest.err conftest.$ac_objext \ | |
4187 | conftest$ac_exeext conftest.$ac_ext | |
4188 | LIBS=$ac_check_lib_save_LIBS | |
4189 | fi | |
4190 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | |
4191 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 | |
4192 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | |
4193 | cat >>confdefs.h <<_ACEOF | |
4194 | #define HAVE_LIBPTHREAD 1 | |
4195 | _ACEOF | |
4196 | ||
4197 | LIBS="-lpthread $LIBS" | |
4198 | ||
4199 | fi | |
4200 | ||
4201 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | |
4202 | ICU_USE_THREADS=1 | |
4203 | fi | |
4204 | fi | |
4205 | ||
4206 | echo "$as_me:$LINENO: checking for pthread_mutex_lock" >&5 | |
4207 | echo $ECHO_N "checking for pthread_mutex_lock... $ECHO_C" >&6 | |
4208 | if test "${ac_cv_func_pthread_mutex_lock+set}" = set; then | |
4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4210 | else | |
4211 | cat >conftest.$ac_ext <<_ACEOF | |
4212 | /* confdefs.h. */ | |
4213 | _ACEOF | |
4214 | cat confdefs.h >>conftest.$ac_ext | |
4215 | cat >>conftest.$ac_ext <<_ACEOF | |
4216 | /* end confdefs.h. */ | |
4217 | /* Define pthread_mutex_lock to an innocuous variant, in case <limits.h> declares pthread_mutex_lock. | |
4218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4219 | #define pthread_mutex_lock innocuous_pthread_mutex_lock | |
4220 | ||
4221 | /* System header to define __stub macros and hopefully few prototypes, | |
4222 | which can conflict with char pthread_mutex_lock (); below. | |
4223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4224 | <limits.h> exists even on freestanding compilers. */ | |
4225 | ||
4226 | #ifdef __STDC__ | |
4227 | # include <limits.h> | |
4228 | #else | |
4229 | # include <assert.h> | |
4230 | #endif | |
4231 | ||
4232 | #undef pthread_mutex_lock | |
4233 | ||
b75a7d8f | 4234 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
4235 | #ifdef __cplusplus |
4236 | extern "C" | |
4237 | { | |
4238 | #endif | |
b75a7d8f | 4239 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
4240 | builtin and then its argument prototype would still apply. */ |
4241 | char pthread_mutex_lock (); | |
4242 | /* The GNU C library defines this for functions which it implements | |
4243 | to always fail with ENOSYS. Some functions are actually named | |
4244 | something starting with __ and the normal name is an alias. */ | |
4245 | #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock) | |
4246 | choke me | |
4247 | #else | |
4248 | char (*f) () = pthread_mutex_lock; | |
4249 | #endif | |
4250 | #ifdef __cplusplus | |
4251 | } | |
4252 | #endif | |
4253 | ||
4254 | int | |
4255 | main () | |
4256 | { | |
4257 | return f != pthread_mutex_lock; | |
4258 | ; | |
4259 | return 0; | |
4260 | } | |
4261 | _ACEOF | |
4262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4264 | (eval $ac_link) 2>conftest.er1 | |
4265 | ac_status=$? | |
4266 | grep -v '^ *+' conftest.er1 >conftest.err | |
4267 | rm -f conftest.er1 | |
4268 | cat conftest.err >&5 | |
4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4270 | (exit $ac_status); } && | |
4271 | { ac_try='test -z "$ac_c_werror_flag" | |
4272 | || test ! -s conftest.err' | |
4273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4274 | (eval $ac_try) 2>&5 | |
4275 | ac_status=$? | |
4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4277 | (exit $ac_status); }; } && | |
4278 | { ac_try='test -s conftest$ac_exeext' | |
4279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4280 | (eval $ac_try) 2>&5 | |
4281 | ac_status=$? | |
4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4283 | (exit $ac_status); }; }; then | |
4284 | ac_cv_func_pthread_mutex_lock=yes | |
4285 | else | |
4286 | echo "$as_me: failed program was:" >&5 | |
4287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4288 | ||
4289 | ac_cv_func_pthread_mutex_lock=no | |
4290 | fi | |
4291 | rm -f conftest.err conftest.$ac_objext \ | |
4292 | conftest$ac_exeext conftest.$ac_ext | |
4293 | fi | |
4294 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_lock" >&5 | |
4295 | echo "${ECHO_T}$ac_cv_func_pthread_mutex_lock" >&6 | |
4296 | ||
4297 | ||
4298 | if test $ac_cv_func_pthread_mutex_lock = yes; then | |
4299 | ICU_USE_THREADS=1 | |
4300 | fi | |
4301 | fi | |
4302 | case "${host}" in | |
4303 | *-pc-cygwin*|*-pc-mingw*) | |
4304 | ICU_USE_THREADS=1 | |
4305 | if test "$ac_cv_c_compiler_gnu" = no; then | |
4306 | ICU_USE_THREADS=1 | |
4307 | if test $ENABLE_DEBUG = 1; then | |
4308 | CFLAGS="${CFLAGS} /MDd" | |
4309 | CXXFLAGS="${CXXFLAGS} /MDd" | |
4310 | else | |
4311 | CFLAGS="${CFLAGS} /MD" | |
4312 | CXXFLAGS="${CXXFLAGS} /MD" | |
4313 | fi | |
4314 | fi ;; | |
4315 | *-*-hpux*) | |
4316 | case "${icu_cv_host_frag}" in | |
4317 | mh-hpux-acc) | |
4318 | OLD_CXXFLAGS="${CXXFLAGS}" | |
4319 | CXXFLAGS="${CXXFLAGS} -mt" | |
4320 | if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then | |
4321 | CXXFLAGS="${OLD_CXXFLAGS}" | |
4322 | fi | |
4323 | ;; | |
4324 | esac | |
4325 | ;; | |
4326 | esac | |
4327 | fi | |
4328 | ||
4329 | ||
4330 | ||
4331 | ||
4332 | # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. | |
4333 | # Do this check instead. | |
4334 | HAVE_MMAP=0 | |
4335 | echo "$as_me:$LINENO: checking for mmap" >&5 | |
4336 | echo $ECHO_N "checking for mmap... $ECHO_C" >&6 | |
4337 | if test "${ac_cv_func_mmap_ok+set}" = set; then | |
4338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4339 | else | |
4340 | cat >conftest.$ac_ext <<_ACEOF | |
4341 | /* confdefs.h. */ | |
4342 | _ACEOF | |
4343 | cat confdefs.h >>conftest.$ac_ext | |
4344 | cat >>conftest.$ac_ext <<_ACEOF | |
4345 | /* end confdefs.h. */ | |
4346 | ||
4347 | #include <unistd.h> | |
4348 | #include <sys/mman.h> | |
4349 | #include <sys/stat.h> | |
4350 | #include <fcntl.h> | |
4351 | ||
4352 | int | |
4353 | main () | |
4354 | { | |
4355 | mmap((void *)0, 0, PROT_READ, 0, 0, 0); | |
4356 | ; | |
4357 | return 0; | |
4358 | } | |
4359 | _ACEOF | |
4360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4362 | (eval $ac_link) 2>conftest.er1 | |
4363 | ac_status=$? | |
4364 | grep -v '^ *+' conftest.er1 >conftest.err | |
4365 | rm -f conftest.er1 | |
4366 | cat conftest.err >&5 | |
4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4368 | (exit $ac_status); } && | |
4369 | { ac_try='test -z "$ac_c_werror_flag" | |
4370 | || test ! -s conftest.err' | |
4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4372 | (eval $ac_try) 2>&5 | |
4373 | ac_status=$? | |
4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4375 | (exit $ac_status); }; } && | |
4376 | { ac_try='test -s conftest$ac_exeext' | |
4377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4378 | (eval $ac_try) 2>&5 | |
4379 | ac_status=$? | |
4380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4381 | (exit $ac_status); }; }; then | |
4382 | ac_cv_func_mmap_ok=yes | |
4383 | else | |
4384 | echo "$as_me: failed program was:" >&5 | |
4385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4386 | ||
4387 | ac_cv_func_mmap_ok=no | |
4388 | fi | |
4389 | rm -f conftest.err conftest.$ac_objext \ | |
4390 | conftest$ac_exeext conftest.$ac_ext | |
4391 | fi | |
4392 | ||
4393 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_ok" >&5 | |
4394 | echo "${ECHO_T}$ac_cv_func_mmap_ok" >&6 | |
4395 | if test $ac_cv_func_mmap_ok = yes | |
4396 | then | |
4397 | HAVE_MMAP=1 | |
4398 | fi | |
4399 | ||
4400 | ||
4401 | GENCCODE_ASSEMBLY= | |
4402 | case "${host}" in | |
4403 | i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-*-solaris*) | |
4404 | if test "$GCC" = yes; then | |
4405 | GENCCODE_ASSEMBLY="-a gcc" | |
4406 | fi ;; | |
4407 | sparc-*-solaris*) | |
4408 | GENCCODE_ASSEMBLY="-a sun" | |
4409 | ;; | |
4410 | esac | |
4411 | ||
4412 | ||
4413 | ||
4414 | ac_ext=c | |
4415 | ac_cpp='$CPP $CPPFLAGS' | |
4416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4419 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4420 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4421 | # On Suns, sometimes $CPP names a directory. | |
4422 | if test -n "$CPP" && test -d "$CPP"; then | |
4423 | CPP= | |
4424 | fi | |
4425 | if test -z "$CPP"; then | |
4426 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4428 | else | |
4429 | # Double quotes because CPP needs to be expanded | |
4430 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4431 | do | |
4432 | ac_preproc_ok=false | |
4433 | for ac_c_preproc_warn_flag in '' yes | |
4434 | do | |
4435 | # Use a header file that comes with gcc, so configuring glibc | |
4436 | # with a fresh cross-compiler works. | |
4437 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4438 | # <limits.h> exists even on freestanding compilers. | |
4439 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4440 | # not just through cpp. "Syntax error" is here to catch this case. | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
4442 | /* confdefs.h. */ | |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
4447 | #ifdef __STDC__ | |
4448 | # include <limits.h> | |
4449 | #else | |
4450 | # include <assert.h> | |
4451 | #endif | |
4452 | Syntax error | |
4453 | _ACEOF | |
4454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4456 | ac_status=$? | |
4457 | grep -v '^ *+' conftest.er1 >conftest.err | |
4458 | rm -f conftest.er1 | |
4459 | cat conftest.err >&5 | |
4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4461 | (exit $ac_status); } >/dev/null; then | |
4462 | if test -s conftest.err; then | |
4463 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4464 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4465 | else | |
4466 | ac_cpp_err= | |
4467 | fi | |
4468 | else | |
4469 | ac_cpp_err=yes | |
4470 | fi | |
4471 | if test -z "$ac_cpp_err"; then | |
4472 | : | |
4473 | else | |
4474 | echo "$as_me: failed program was:" >&5 | |
4475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4476 | ||
4477 | # Broken: fails on valid input. | |
4478 | continue | |
4479 | fi | |
4480 | rm -f conftest.err conftest.$ac_ext | |
4481 | ||
4482 | # OK, works on sane cases. Now check whether non-existent headers | |
4483 | # can be detected and how. | |
4484 | cat >conftest.$ac_ext <<_ACEOF | |
4485 | /* confdefs.h. */ | |
4486 | _ACEOF | |
4487 | cat confdefs.h >>conftest.$ac_ext | |
4488 | cat >>conftest.$ac_ext <<_ACEOF | |
4489 | /* end confdefs.h. */ | |
4490 | #include <ac_nonexistent.h> | |
4491 | _ACEOF | |
4492 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4493 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4494 | ac_status=$? | |
4495 | grep -v '^ *+' conftest.er1 >conftest.err | |
4496 | rm -f conftest.er1 | |
4497 | cat conftest.err >&5 | |
4498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4499 | (exit $ac_status); } >/dev/null; then | |
4500 | if test -s conftest.err; then | |
4501 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4502 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4503 | else | |
4504 | ac_cpp_err= | |
4505 | fi | |
4506 | else | |
4507 | ac_cpp_err=yes | |
4508 | fi | |
4509 | if test -z "$ac_cpp_err"; then | |
4510 | # Broken: success on invalid input. | |
4511 | continue | |
4512 | else | |
4513 | echo "$as_me: failed program was:" >&5 | |
4514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4515 | ||
4516 | # Passes both tests. | |
4517 | ac_preproc_ok=: | |
4518 | break | |
4519 | fi | |
4520 | rm -f conftest.err conftest.$ac_ext | |
4521 | ||
4522 | done | |
4523 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4524 | rm -f conftest.err conftest.$ac_ext | |
4525 | if $ac_preproc_ok; then | |
4526 | break | |
4527 | fi | |
4528 | ||
4529 | done | |
4530 | ac_cv_prog_CPP=$CPP | |
4531 | ||
4532 | fi | |
4533 | CPP=$ac_cv_prog_CPP | |
4534 | else | |
4535 | ac_cv_prog_CPP=$CPP | |
4536 | fi | |
4537 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4538 | echo "${ECHO_T}$CPP" >&6 | |
4539 | ac_preproc_ok=false | |
4540 | for ac_c_preproc_warn_flag in '' yes | |
4541 | do | |
4542 | # Use a header file that comes with gcc, so configuring glibc | |
4543 | # with a fresh cross-compiler works. | |
4544 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4545 | # <limits.h> exists even on freestanding compilers. | |
4546 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4547 | # not just through cpp. "Syntax error" is here to catch this case. | |
4548 | cat >conftest.$ac_ext <<_ACEOF | |
4549 | /* confdefs.h. */ | |
4550 | _ACEOF | |
4551 | cat confdefs.h >>conftest.$ac_ext | |
4552 | cat >>conftest.$ac_ext <<_ACEOF | |
4553 | /* end confdefs.h. */ | |
4554 | #ifdef __STDC__ | |
4555 | # include <limits.h> | |
4556 | #else | |
4557 | # include <assert.h> | |
4558 | #endif | |
4559 | Syntax error | |
4560 | _ACEOF | |
4561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4563 | ac_status=$? | |
4564 | grep -v '^ *+' conftest.er1 >conftest.err | |
4565 | rm -f conftest.er1 | |
4566 | cat conftest.err >&5 | |
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4568 | (exit $ac_status); } >/dev/null; then | |
4569 | if test -s conftest.err; then | |
4570 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4572 | else | |
4573 | ac_cpp_err= | |
4574 | fi | |
4575 | else | |
4576 | ac_cpp_err=yes | |
4577 | fi | |
4578 | if test -z "$ac_cpp_err"; then | |
4579 | : | |
4580 | else | |
4581 | echo "$as_me: failed program was:" >&5 | |
4582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4583 | ||
4584 | # Broken: fails on valid input. | |
4585 | continue | |
4586 | fi | |
4587 | rm -f conftest.err conftest.$ac_ext | |
4588 | ||
4589 | # OK, works on sane cases. Now check whether non-existent headers | |
4590 | # can be detected and how. | |
4591 | cat >conftest.$ac_ext <<_ACEOF | |
4592 | /* confdefs.h. */ | |
4593 | _ACEOF | |
4594 | cat confdefs.h >>conftest.$ac_ext | |
4595 | cat >>conftest.$ac_ext <<_ACEOF | |
4596 | /* end confdefs.h. */ | |
4597 | #include <ac_nonexistent.h> | |
4598 | _ACEOF | |
4599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4600 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4601 | ac_status=$? | |
4602 | grep -v '^ *+' conftest.er1 >conftest.err | |
4603 | rm -f conftest.er1 | |
4604 | cat conftest.err >&5 | |
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4606 | (exit $ac_status); } >/dev/null; then | |
4607 | if test -s conftest.err; then | |
4608 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4609 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4610 | else | |
4611 | ac_cpp_err= | |
4612 | fi | |
4613 | else | |
4614 | ac_cpp_err=yes | |
4615 | fi | |
4616 | if test -z "$ac_cpp_err"; then | |
4617 | # Broken: success on invalid input. | |
4618 | continue | |
4619 | else | |
4620 | echo "$as_me: failed program was:" >&5 | |
4621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4622 | ||
4623 | # Passes both tests. | |
4624 | ac_preproc_ok=: | |
4625 | break | |
4626 | fi | |
4627 | rm -f conftest.err conftest.$ac_ext | |
4628 | ||
4629 | done | |
4630 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4631 | rm -f conftest.err conftest.$ac_ext | |
4632 | if $ac_preproc_ok; then | |
4633 | : | |
4634 | else | |
4635 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4636 | See \`config.log' for more details." >&5 | |
4637 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4638 | See \`config.log' for more details." >&2;} | |
4639 | { (exit 1); exit 1; }; } | |
4640 | fi | |
4641 | ||
4642 | ac_ext=c | |
4643 | ac_cpp='$CPP $CPPFLAGS' | |
4644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4647 | ||
4648 | ||
4649 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4650 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4651 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4653 | else | |
4654 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4655 | then ac_cv_prog_egrep='grep -E' | |
4656 | else ac_cv_prog_egrep='egrep' | |
4657 | fi | |
4658 | fi | |
4659 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4660 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4661 | EGREP=$ac_cv_prog_egrep | |
4662 | ||
4663 | ||
4664 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4665 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4666 | if test "${ac_cv_header_stdc+set}" = set; then | |
4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4668 | else | |
4669 | cat >conftest.$ac_ext <<_ACEOF | |
4670 | /* confdefs.h. */ | |
4671 | _ACEOF | |
4672 | cat confdefs.h >>conftest.$ac_ext | |
4673 | cat >>conftest.$ac_ext <<_ACEOF | |
4674 | /* end confdefs.h. */ | |
4675 | #include <stdlib.h> | |
4676 | #include <stdarg.h> | |
4677 | #include <string.h> | |
4678 | #include <float.h> | |
4679 | ||
4680 | int | |
4681 | main () | |
4682 | { | |
4683 | ||
4684 | ; | |
4685 | return 0; | |
4686 | } | |
4687 | _ACEOF | |
4688 | rm -f conftest.$ac_objext | |
4689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4690 | (eval $ac_compile) 2>conftest.er1 | |
4691 | ac_status=$? | |
4692 | grep -v '^ *+' conftest.er1 >conftest.err | |
4693 | rm -f conftest.er1 | |
4694 | cat conftest.err >&5 | |
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4696 | (exit $ac_status); } && | |
4697 | { ac_try='test -z "$ac_c_werror_flag" | |
4698 | || test ! -s conftest.err' | |
4699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4700 | (eval $ac_try) 2>&5 | |
4701 | ac_status=$? | |
4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4703 | (exit $ac_status); }; } && | |
4704 | { ac_try='test -s conftest.$ac_objext' | |
4705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4706 | (eval $ac_try) 2>&5 | |
4707 | ac_status=$? | |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4709 | (exit $ac_status); }; }; then | |
4710 | ac_cv_header_stdc=yes | |
4711 | else | |
4712 | echo "$as_me: failed program was:" >&5 | |
4713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4714 | ||
4715 | ac_cv_header_stdc=no | |
4716 | fi | |
4717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4718 | ||
4719 | if test $ac_cv_header_stdc = yes; then | |
4720 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4721 | cat >conftest.$ac_ext <<_ACEOF | |
4722 | /* confdefs.h. */ | |
4723 | _ACEOF | |
4724 | cat confdefs.h >>conftest.$ac_ext | |
4725 | cat >>conftest.$ac_ext <<_ACEOF | |
4726 | /* end confdefs.h. */ | |
4727 | #include <string.h> | |
4728 | ||
4729 | _ACEOF | |
4730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4731 | $EGREP "memchr" >/dev/null 2>&1; then | |
4732 | : | |
4733 | else | |
4734 | ac_cv_header_stdc=no | |
b75a7d8f A |
4735 | fi |
4736 | rm -f conftest* | |
b75a7d8f A |
4737 | |
4738 | fi | |
b75a7d8f | 4739 | |
73c04bcf A |
4740 | if test $ac_cv_header_stdc = yes; then |
4741 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4742 | cat >conftest.$ac_ext <<_ACEOF | |
4743 | /* confdefs.h. */ | |
4744 | _ACEOF | |
4745 | cat confdefs.h >>conftest.$ac_ext | |
4746 | cat >>conftest.$ac_ext <<_ACEOF | |
4747 | /* end confdefs.h. */ | |
4748 | #include <stdlib.h> | |
b75a7d8f | 4749 | |
73c04bcf A |
4750 | _ACEOF |
4751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4752 | $EGREP "free" >/dev/null 2>&1; then | |
4753 | : | |
b75a7d8f | 4754 | else |
73c04bcf | 4755 | ac_cv_header_stdc=no |
b75a7d8f | 4756 | fi |
73c04bcf | 4757 | rm -f conftest* |
b75a7d8f | 4758 | |
73c04bcf | 4759 | fi |
b75a7d8f | 4760 | |
73c04bcf A |
4761 | if test $ac_cv_header_stdc = yes; then |
4762 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4763 | if test "$cross_compiling" = yes; then | |
4764 | : | |
b75a7d8f | 4765 | else |
73c04bcf A |
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 | #include <ctype.h> | |
4773 | #if ((' ' & 0x0FF) == 0x020) | |
4774 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4775 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
b75a7d8f | 4776 | #else |
73c04bcf A |
4777 | # define ISLOWER(c) \ |
4778 | (('a' <= (c) && (c) <= 'i') \ | |
4779 | || ('j' <= (c) && (c) <= 'r') \ | |
4780 | || ('s' <= (c) && (c) <= 'z')) | |
4781 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
b75a7d8f A |
4782 | #endif |
4783 | ||
73c04bcf A |
4784 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4785 | int | |
4786 | main () | |
4787 | { | |
4788 | int i; | |
4789 | for (i = 0; i < 256; i++) | |
4790 | if (XOR (islower (i), ISLOWER (i)) | |
4791 | || toupper (i) != TOUPPER (i)) | |
4792 | exit(2); | |
4793 | exit (0); | |
4794 | } | |
4795 | _ACEOF | |
4796 | rm -f conftest$ac_exeext | |
4797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4798 | (eval $ac_link) 2>&5 | |
4799 | ac_status=$? | |
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4803 | (eval $ac_try) 2>&5 | |
4804 | ac_status=$? | |
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4806 | (exit $ac_status); }; }; then | |
4807 | : | |
b75a7d8f | 4808 | else |
73c04bcf A |
4809 | echo "$as_me: program exited with status $ac_status" >&5 |
4810 | echo "$as_me: failed program was:" >&5 | |
4811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4812 | ||
4813 | ( exit $ac_status ) | |
4814 | ac_cv_header_stdc=no | |
4815 | fi | |
4816 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
b75a7d8f | 4817 | fi |
b75a7d8f | 4818 | fi |
b75a7d8f | 4819 | fi |
73c04bcf A |
4820 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4821 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4822 | if test $ac_cv_header_stdc = yes; then | |
b75a7d8f | 4823 | |
73c04bcf A |
4824 | cat >>confdefs.h <<\_ACEOF |
4825 | #define STDC_HEADERS 1 | |
4826 | _ACEOF | |
b75a7d8f | 4827 | |
b75a7d8f A |
4828 | fi |
4829 | ||
73c04bcf | 4830 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b75a7d8f A |
4831 | |
4832 | ||
4833 | ||
b75a7d8f | 4834 | |
b75a7d8f A |
4835 | |
4836 | ||
374ca955 A |
4837 | |
4838 | ||
4839 | ||
73c04bcf A |
4840 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4841 | inttypes.h stdint.h unistd.h | |
4842 | do | |
4843 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4848 | else | |
4849 | cat >conftest.$ac_ext <<_ACEOF | |
4850 | /* confdefs.h. */ | |
4851 | _ACEOF | |
4852 | cat confdefs.h >>conftest.$ac_ext | |
4853 | cat >>conftest.$ac_ext <<_ACEOF | |
4854 | /* end confdefs.h. */ | |
4855 | $ac_includes_default | |
4856 | ||
4857 | #include <$ac_header> | |
4858 | _ACEOF | |
4859 | rm -f conftest.$ac_objext | |
4860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4861 | (eval $ac_compile) 2>conftest.er1 | |
4862 | ac_status=$? | |
4863 | grep -v '^ *+' conftest.er1 >conftest.err | |
4864 | rm -f conftest.er1 | |
4865 | cat conftest.err >&5 | |
4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4867 | (exit $ac_status); } && | |
4868 | { ac_try='test -z "$ac_c_werror_flag" | |
4869 | || test ! -s conftest.err' | |
4870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4871 | (eval $ac_try) 2>&5 | |
4872 | ac_status=$? | |
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4874 | (exit $ac_status); }; } && | |
4875 | { ac_try='test -s conftest.$ac_objext' | |
4876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4877 | (eval $ac_try) 2>&5 | |
4878 | ac_status=$? | |
4879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4880 | (exit $ac_status); }; }; then | |
4881 | eval "$as_ac_Header=yes" | |
4882 | else | |
4883 | echo "$as_me: failed program was:" >&5 | |
4884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4885 | ||
4886 | eval "$as_ac_Header=no" | |
4887 | fi | |
4888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4889 | fi | |
4890 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4891 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4892 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4893 | cat >>confdefs.h <<_ACEOF | |
4894 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4895 | _ACEOF | |
4896 | ||
b75a7d8f | 4897 | fi |
73c04bcf A |
4898 | |
4899 | done | |
4900 | ||
4901 | ||
4902 | ||
4903 | for ac_header in inttypes.h | |
4904 | do | |
4905 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4911 | fi | |
4912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4913 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4914 | else | |
4915 | # Is the header compilable? | |
4916 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4917 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4918 | cat >conftest.$ac_ext <<_ACEOF | |
4919 | /* confdefs.h. */ | |
4920 | _ACEOF | |
4921 | cat confdefs.h >>conftest.$ac_ext | |
4922 | cat >>conftest.$ac_ext <<_ACEOF | |
4923 | /* end confdefs.h. */ | |
4924 | $ac_includes_default | |
4925 | #include <$ac_header> | |
4926 | _ACEOF | |
4927 | rm -f conftest.$ac_objext | |
4928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4929 | (eval $ac_compile) 2>conftest.er1 | |
4930 | ac_status=$? | |
4931 | grep -v '^ *+' conftest.er1 >conftest.err | |
4932 | rm -f conftest.er1 | |
4933 | cat conftest.err >&5 | |
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4935 | (exit $ac_status); } && | |
4936 | { ac_try='test -z "$ac_c_werror_flag" | |
4937 | || test ! -s conftest.err' | |
4938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4939 | (eval $ac_try) 2>&5 | |
4940 | ac_status=$? | |
4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4942 | (exit $ac_status); }; } && | |
4943 | { ac_try='test -s conftest.$ac_objext' | |
4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4945 | (eval $ac_try) 2>&5 | |
4946 | ac_status=$? | |
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); }; }; then | |
4949 | ac_header_compiler=yes | |
4950 | else | |
4951 | echo "$as_me: failed program was:" >&5 | |
4952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4953 | ||
4954 | ac_header_compiler=no | |
4955 | fi | |
4956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4957 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4958 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4959 | ||
4960 | # Is the header present? | |
4961 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4962 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4963 | cat >conftest.$ac_ext <<_ACEOF | |
4964 | /* confdefs.h. */ | |
4965 | _ACEOF | |
4966 | cat confdefs.h >>conftest.$ac_ext | |
4967 | cat >>conftest.$ac_ext <<_ACEOF | |
4968 | /* end confdefs.h. */ | |
4969 | #include <$ac_header> | |
4970 | _ACEOF | |
4971 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4972 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4973 | ac_status=$? | |
4974 | grep -v '^ *+' conftest.er1 >conftest.err | |
4975 | rm -f conftest.er1 | |
4976 | cat conftest.err >&5 | |
4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4978 | (exit $ac_status); } >/dev/null; then | |
4979 | if test -s conftest.err; then | |
4980 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4981 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4982 | else | |
4983 | ac_cpp_err= | |
4984 | fi | |
b75a7d8f | 4985 | else |
73c04bcf | 4986 | ac_cpp_err=yes |
b75a7d8f | 4987 | fi |
73c04bcf A |
4988 | if test -z "$ac_cpp_err"; then |
4989 | ac_header_preproc=yes | |
b75a7d8f | 4990 | else |
73c04bcf A |
4991 | echo "$as_me: failed program was:" >&5 |
4992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4993 | ||
4994 | ac_header_preproc=no | |
b75a7d8f | 4995 | fi |
73c04bcf A |
4996 | rm -f conftest.err conftest.$ac_ext |
4997 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4998 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
b75a7d8f | 4999 | |
73c04bcf A |
5000 | # So? What about this header? |
5001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5002 | yes:no: ) | |
5003 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5004 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5005 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5006 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5007 | ac_header_preproc=yes | |
5008 | ;; | |
5009 | no:yes:* ) | |
5010 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5011 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5012 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5013 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5014 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5015 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5016 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5017 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5019 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5020 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5021 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5022 | ( | |
5023 | cat <<\_ASBOX | |
5024 | ## ------------------------------------------ ## | |
5025 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5026 | ## ------------------------------------------ ## | |
5027 | _ASBOX | |
5028 | ) | | |
5029 | sed "s/^/$as_me: WARNING: /" >&2 | |
5030 | ;; | |
5031 | esac | |
5032 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5033 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5036 | else | |
5037 | eval "$as_ac_Header=\$ac_header_preproc" | |
b75a7d8f | 5038 | fi |
73c04bcf A |
5039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5041 | ||
b75a7d8f | 5042 | fi |
73c04bcf A |
5043 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5044 | cat >>confdefs.h <<_ACEOF | |
5045 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5046 | _ACEOF | |
5047 | ||
b75a7d8f | 5048 | fi |
73c04bcf | 5049 | |
b75a7d8f A |
5050 | done |
5051 | ||
5052 | if test $ac_cv_header_inttypes_h = no; then | |
5053 | U_HAVE_INTTYPES_H=0 | |
5054 | else | |
5055 | U_HAVE_INTTYPES_H=1 | |
5056 | fi | |
5057 | if test "$CC" = ccc; then | |
73c04bcf A |
5058 | echo "$as_me:$LINENO: result: \"C compiler set to CCC ${CC}\" " >&5 |
5059 | echo "${ECHO_T}\"C compiler set to CCC ${CC}\" " >&6 | |
b75a7d8f A |
5060 | case "${host}" in |
5061 | alpha*-*-*) U_HAVE_INTTYPES_H=0; | |
5062 | esac | |
5063 | fi | |
5064 | ||
5065 | ||
5066 | ||
73c04bcf | 5067 | |
b75a7d8f A |
5068 | # Check whether --with-iostream or --without-iostream was given. |
5069 | if test "${with_iostream+set}" = set; then | |
5070 | withval="$with_iostream" | |
5071 | case "${withval}" in | |
5072 | none) streams=none ;; | |
5073 | old) streams=198506 ;; | |
5074 | std) streams=199711 ;; | |
5075 | auto) streams= ;; | |
73c04bcf A |
5076 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-iostream" >&5 |
5077 | echo "$as_me: error: bad value ${withval} for --with-iostream" >&2;} | |
5078 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
5079 | esac |
5080 | else | |
5081 | streams= | |
73c04bcf | 5082 | fi; |
b75a7d8f A |
5083 | |
5084 | U_IOSTREAM_SOURCE=0 | |
5085 | if test x$streams != xnone | |
5086 | then | |
73c04bcf A |
5087 | |
5088 | ||
5089 | ac_ext=cc | |
b75a7d8f | 5090 | ac_cpp='$CXXCPP $CPPFLAGS' |
73c04bcf A |
5091 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5092 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5093 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
b75a7d8f | 5094 | |
374ca955 A |
5095 | OLD_CXXFLAGS="${CXXFLAGS}" |
5096 | case "${icu_cv_host_frag}" in | |
5097 | mh-hpux-acc) | |
5098 | CXXFLAGS="${CXXFLAGS} -AA" | |
5099 | ;; | |
5100 | esac | |
73c04bcf A |
5101 | echo "$as_me:$LINENO: checking for iostream usability" >&5 |
5102 | echo $ECHO_N "checking for iostream usability... $ECHO_C" >&6 | |
5103 | ||
5104 | cat >conftest.$ac_ext <<_ACEOF | |
5105 | /* confdefs.h. */ | |
5106 | _ACEOF | |
5107 | cat confdefs.h >>conftest.$ac_ext | |
5108 | cat >>conftest.$ac_ext <<_ACEOF | |
5109 | /* end confdefs.h. */ | |
b75a7d8f | 5110 | #include <iostream> |
73c04bcf A |
5111 | int |
5112 | main () | |
5113 | { | |
b75a7d8f | 5114 | |
73c04bcf A |
5115 | ; |
5116 | return 0; | |
5117 | } | |
5118 | _ACEOF | |
5119 | rm -f conftest.$ac_objext | |
5120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5121 | (eval $ac_compile) 2>conftest.er1 | |
5122 | ac_status=$? | |
5123 | grep -v '^ *+' conftest.er1 >conftest.err | |
5124 | rm -f conftest.er1 | |
5125 | cat conftest.err >&5 | |
5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5127 | (exit $ac_status); } && | |
5128 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5129 | || test ! -s conftest.err' | |
5130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5131 | (eval $ac_try) 2>&5 | |
5132 | ac_status=$? | |
5133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5134 | (exit $ac_status); }; } && | |
5135 | { ac_try='test -s conftest.$ac_objext' | |
5136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5137 | (eval $ac_try) 2>&5 | |
5138 | ac_status=$? | |
5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5140 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5141 | ac_cv_header_iostream=yes |
5142 | else | |
73c04bcf A |
5143 | echo "$as_me: failed program was:" >&5 |
5144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5145 | ||
5146 | ac_cv_header_iostream=no | |
b75a7d8f | 5147 | fi |
73c04bcf | 5148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
374ca955 A |
5149 | if test $icu_cv_host_frag = mh-cygwin-msvc |
5150 | then | |
5151 | ac_cv_header_iostream=yes | |
5152 | fi | |
73c04bcf A |
5153 | echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
5154 | echo "${ECHO_T}$ac_cv_header_iostream" >&6 | |
b75a7d8f A |
5155 | if test $ac_cv_header_iostream = yes |
5156 | then | |
5157 | U_IOSTREAM_SOURCE=199711 | |
5158 | else | |
374ca955 | 5159 | CXXFLAGS="${OLD_CXXFLAGS}" |
73c04bcf A |
5160 | echo "$as_me:$LINENO: checking whether ostream in iostream.h is really defined" >&5 |
5161 | echo $ECHO_N "checking whether ostream in iostream.h is really defined... $ECHO_C" >&6 | |
5162 | if test "${ac_cv_iostream_ok+set}" = set; then | |
5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5164 | else | |
5165 | cat >conftest.$ac_ext <<_ACEOF | |
5166 | /* confdefs.h. */ | |
5167 | _ACEOF | |
5168 | cat confdefs.h >>conftest.$ac_ext | |
5169 | cat >>conftest.$ac_ext <<_ACEOF | |
5170 | /* end confdefs.h. */ | |
b75a7d8f | 5171 | #include <iostream.h> |
73c04bcf A |
5172 | int |
5173 | main () | |
5174 | { | |
b75a7d8f | 5175 | ostream &testout = cout; testout << "test" << endl; |
73c04bcf A |
5176 | ; |
5177 | return 0; | |
5178 | } | |
5179 | _ACEOF | |
5180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5182 | (eval $ac_link) 2>conftest.er1 | |
5183 | ac_status=$? | |
5184 | grep -v '^ *+' conftest.er1 >conftest.err | |
5185 | rm -f conftest.er1 | |
5186 | cat conftest.err >&5 | |
5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5188 | (exit $ac_status); } && | |
5189 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5190 | || test ! -s conftest.err' | |
5191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5192 | (eval $ac_try) 2>&5 | |
5193 | ac_status=$? | |
5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5195 | (exit $ac_status); }; } && | |
5196 | { ac_try='test -s conftest$ac_exeext' | |
5197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5198 | (eval $ac_try) 2>&5 | |
5199 | ac_status=$? | |
5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5201 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5202 | ac_cv_iostream_ok=yes |
5203 | else | |
73c04bcf A |
5204 | echo "$as_me: failed program was:" >&5 |
5205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5206 | ||
5207 | ac_cv_iostream_ok=no | |
b75a7d8f | 5208 | fi |
73c04bcf A |
5209 | rm -f conftest.err conftest.$ac_objext \ |
5210 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
5211 | fi |
5212 | ||
73c04bcf A |
5213 | echo "$as_me:$LINENO: result: $ac_cv_iostream_ok" >&5 |
5214 | echo "${ECHO_T}$ac_cv_iostream_ok" >&6 | |
5215 | if test $ac_cv_iostream_ok = yes | |
5216 | then | |
5217 | U_IOSTREAM_SOURCE=198506 | |
b75a7d8f A |
5218 | fi |
5219 | fi | |
5220 | if test x$streams != x | |
5221 | then | |
5222 | if test $U_IOSTREAM_SOURCE -ge $streams | |
5223 | then | |
5224 | U_IOSTREAM_SOURCE=$streams | |
374ca955 A |
5225 | case "${icu_cv_host_frag}" in |
5226 | mh-hpux-acc) | |
5227 | if test $U_IOSTREAM_SOURCE -lt 199711; then | |
5228 | CXXFLAGS=${OLD_CXXFLAGS} | |
5229 | fi | |
5230 | ;; | |
5231 | esac | |
b75a7d8f | 5232 | else |
73c04bcf A |
5233 | { { echo "$as_me:$LINENO: error: ${withval} iostream is not available" >&5 |
5234 | echo "$as_me: error: ${withval} iostream is not available" >&2;} | |
5235 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
5236 | fi |
5237 | fi | |
5238 | fi | |
5239 | ||
5240 | ac_ext=c | |
b75a7d8f | 5241 | ac_cpp='$CPP $CPPFLAGS' |
73c04bcf A |
5242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5245 | ||
5246 | ||
5247 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
5248 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
5249 | if test "${ac_cv_c_bigendian+set}" = set; then | |
5250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5251 | else | |
5252 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5253 | cat >conftest.$ac_ext <<_ACEOF | |
5254 | /* confdefs.h. */ | |
5255 | _ACEOF | |
5256 | cat confdefs.h >>conftest.$ac_ext | |
5257 | cat >>conftest.$ac_ext <<_ACEOF | |
5258 | /* end confdefs.h. */ | |
b75a7d8f A |
5259 | #include <sys/types.h> |
5260 | #include <sys/param.h> | |
b75a7d8f | 5261 | |
73c04bcf A |
5262 | int |
5263 | main () | |
5264 | { | |
b75a7d8f A |
5265 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
5266 | bogus endian macros | |
5267 | #endif | |
73c04bcf A |
5268 | |
5269 | ; | |
5270 | return 0; | |
5271 | } | |
5272 | _ACEOF | |
5273 | rm -f conftest.$ac_objext | |
5274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5275 | (eval $ac_compile) 2>conftest.er1 | |
5276 | ac_status=$? | |
5277 | grep -v '^ *+' conftest.er1 >conftest.err | |
5278 | rm -f conftest.er1 | |
5279 | cat conftest.err >&5 | |
5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5281 | (exit $ac_status); } && | |
5282 | { ac_try='test -z "$ac_c_werror_flag" | |
5283 | || test ! -s conftest.err' | |
5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5285 | (eval $ac_try) 2>&5 | |
5286 | ac_status=$? | |
5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5288 | (exit $ac_status); }; } && | |
5289 | { ac_try='test -s conftest.$ac_objext' | |
5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5291 | (eval $ac_try) 2>&5 | |
5292 | ac_status=$? | |
5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5294 | (exit $ac_status); }; }; then | |
b75a7d8f | 5295 | # It does; now see whether it defined to BIG_ENDIAN or not. |
73c04bcf A |
5296 | cat >conftest.$ac_ext <<_ACEOF |
5297 | /* confdefs.h. */ | |
5298 | _ACEOF | |
5299 | cat confdefs.h >>conftest.$ac_ext | |
5300 | cat >>conftest.$ac_ext <<_ACEOF | |
5301 | /* end confdefs.h. */ | |
b75a7d8f A |
5302 | #include <sys/types.h> |
5303 | #include <sys/param.h> | |
b75a7d8f | 5304 | |
73c04bcf A |
5305 | int |
5306 | main () | |
5307 | { | |
b75a7d8f A |
5308 | #if BYTE_ORDER != BIG_ENDIAN |
5309 | not big endian | |
5310 | #endif | |
73c04bcf A |
5311 | |
5312 | ; | |
5313 | return 0; | |
5314 | } | |
5315 | _ACEOF | |
5316 | rm -f conftest.$ac_objext | |
5317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5318 | (eval $ac_compile) 2>conftest.er1 | |
5319 | ac_status=$? | |
5320 | grep -v '^ *+' conftest.er1 >conftest.err | |
5321 | rm -f conftest.er1 | |
5322 | cat conftest.err >&5 | |
5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5324 | (exit $ac_status); } && | |
5325 | { ac_try='test -z "$ac_c_werror_flag" | |
5326 | || test ! -s conftest.err' | |
5327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5328 | (eval $ac_try) 2>&5 | |
5329 | ac_status=$? | |
5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5331 | (exit $ac_status); }; } && | |
5332 | { ac_try='test -s conftest.$ac_objext' | |
5333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5334 | (eval $ac_try) 2>&5 | |
5335 | ac_status=$? | |
5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5337 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5338 | ac_cv_c_bigendian=yes |
5339 | else | |
73c04bcf A |
5340 | echo "$as_me: failed program was:" >&5 |
5341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5342 | ||
5343 | ac_cv_c_bigendian=no | |
b75a7d8f | 5344 | fi |
73c04bcf | 5345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 5346 | else |
73c04bcf A |
5347 | echo "$as_me: failed program was:" >&5 |
5348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5349 | ||
5350 | # It does not; compile a test program. | |
b75a7d8f | 5351 | if test "$cross_compiling" = yes; then |
73c04bcf A |
5352 | # try to guess the endianness by grepping values into an object file |
5353 | ac_cv_c_bigendian=unknown | |
5354 | cat >conftest.$ac_ext <<_ACEOF | |
5355 | /* confdefs.h. */ | |
5356 | _ACEOF | |
5357 | cat confdefs.h >>conftest.$ac_ext | |
5358 | cat >>conftest.$ac_ext <<_ACEOF | |
5359 | /* end confdefs.h. */ | |
5360 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5361 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5362 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
5363 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5364 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5365 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
5366 | int | |
5367 | main () | |
5368 | { | |
5369 | _ascii (); _ebcdic (); | |
5370 | ; | |
5371 | return 0; | |
5372 | } | |
5373 | _ACEOF | |
5374 | rm -f conftest.$ac_objext | |
5375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5376 | (eval $ac_compile) 2>conftest.er1 | |
5377 | ac_status=$? | |
5378 | grep -v '^ *+' conftest.er1 >conftest.err | |
5379 | rm -f conftest.er1 | |
5380 | cat conftest.err >&5 | |
5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5382 | (exit $ac_status); } && | |
5383 | { ac_try='test -z "$ac_c_werror_flag" | |
5384 | || test ! -s conftest.err' | |
5385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5386 | (eval $ac_try) 2>&5 | |
5387 | ac_status=$? | |
5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5389 | (exit $ac_status); }; } && | |
5390 | { ac_try='test -s conftest.$ac_objext' | |
5391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5392 | (eval $ac_try) 2>&5 | |
5393 | ac_status=$? | |
5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5395 | (exit $ac_status); }; }; then | |
5396 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
5397 | ac_cv_c_bigendian=yes | |
5398 | fi | |
5399 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5400 | if test "$ac_cv_c_bigendian" = unknown; then | |
5401 | ac_cv_c_bigendian=no | |
5402 | else | |
5403 | # finding both strings is unlikely to happen, but who knows? | |
5404 | ac_cv_c_bigendian=unknown | |
5405 | fi | |
5406 | fi | |
5407 | else | |
5408 | echo "$as_me: failed program was:" >&5 | |
5409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5410 | ||
5411 | fi | |
5412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b75a7d8f | 5413 | else |
73c04bcf A |
5414 | cat >conftest.$ac_ext <<_ACEOF |
5415 | /* confdefs.h. */ | |
5416 | _ACEOF | |
5417 | cat confdefs.h >>conftest.$ac_ext | |
5418 | cat >>conftest.$ac_ext <<_ACEOF | |
5419 | /* end confdefs.h. */ | |
5420 | int | |
5421 | main () | |
5422 | { | |
b75a7d8f A |
5423 | /* Are we little or big endian? From Harbison&Steele. */ |
5424 | union | |
5425 | { | |
5426 | long l; | |
5427 | char c[sizeof (long)]; | |
5428 | } u; | |
5429 | u.l = 1; | |
5430 | exit (u.c[sizeof (long) - 1] == 1); | |
5431 | } | |
73c04bcf A |
5432 | _ACEOF |
5433 | rm -f conftest$ac_exeext | |
5434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5435 | (eval $ac_link) 2>&5 | |
5436 | ac_status=$? | |
5437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5440 | (eval $ac_try) 2>&5 | |
5441 | ac_status=$? | |
5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5443 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5444 | ac_cv_c_bigendian=no |
5445 | else | |
73c04bcf A |
5446 | echo "$as_me: program exited with status $ac_status" >&5 |
5447 | echo "$as_me: failed program was:" >&5 | |
5448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5449 | ||
5450 | ( exit $ac_status ) | |
5451 | ac_cv_c_bigendian=yes | |
b75a7d8f | 5452 | fi |
73c04bcf | 5453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 5454 | fi |
b75a7d8f | 5455 | fi |
73c04bcf | 5456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 5457 | fi |
73c04bcf A |
5458 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5459 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
5460 | case $ac_cv_c_bigendian in | |
5461 | yes) | |
b75a7d8f | 5462 | |
73c04bcf | 5463 | cat >>confdefs.h <<\_ACEOF |
b75a7d8f | 5464 | #define WORDS_BIGENDIAN 1 |
73c04bcf A |
5465 | _ACEOF |
5466 | ;; | |
5467 | no) | |
5468 | ;; | |
5469 | *) | |
5470 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5471 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5472 | echo "$as_me: error: unknown endianness | |
5473 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5474 | { (exit 1); exit 1; }; } ;; | |
5475 | esac | |
b75a7d8f A |
5476 | |
5477 | if test $ac_cv_c_bigendian = no; then | |
5478 | U_IS_BIG_ENDIAN=0 | |
5479 | U_ENDIAN_CHAR="l" | |
5480 | else | |
5481 | U_IS_BIG_ENDIAN=1 | |
5482 | U_ENDIAN_CHAR="b" | |
5483 | fi | |
5484 | ||
5485 | ||
5486 | U_HAVE_NL_LANGINFO_CODESET=0 | |
5487 | U_NL_LANGINFO_CODESET=-1 | |
73c04bcf A |
5488 | echo "$as_me:$LINENO: checking for nl_langinfo" >&5 |
5489 | echo $ECHO_N "checking for nl_langinfo... $ECHO_C" >&6 | |
5490 | if test "${ac_cv_func_nl_langinfo+set}" = set; then | |
5491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5492 | else | |
5493 | cat >conftest.$ac_ext <<_ACEOF | |
5494 | /* confdefs.h. */ | |
5495 | _ACEOF | |
5496 | cat confdefs.h >>conftest.$ac_ext | |
5497 | cat >>conftest.$ac_ext <<_ACEOF | |
5498 | /* end confdefs.h. */ | |
5499 | /* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo. | |
5500 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5501 | #define nl_langinfo innocuous_nl_langinfo | |
5502 | ||
b75a7d8f | 5503 | /* System header to define __stub macros and hopefully few prototypes, |
73c04bcf A |
5504 | which can conflict with char nl_langinfo (); below. |
5505 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5506 | <limits.h> exists even on freestanding compilers. */ | |
5507 | ||
5508 | #ifdef __STDC__ | |
5509 | # include <limits.h> | |
5510 | #else | |
5511 | # include <assert.h> | |
5512 | #endif | |
b75a7d8f | 5513 | |
73c04bcf | 5514 | #undef nl_langinfo |
b75a7d8f | 5515 | |
73c04bcf A |
5516 | /* Override any gcc2 internal prototype to avoid an error. */ |
5517 | #ifdef __cplusplus | |
5518 | extern "C" | |
5519 | { | |
5520 | #endif | |
5521 | /* We use char because int might match the return type of a gcc2 | |
5522 | builtin and then its argument prototype would still apply. */ | |
5523 | char nl_langinfo (); | |
b75a7d8f A |
5524 | /* The GNU C library defines this for functions which it implements |
5525 | to always fail with ENOSYS. Some functions are actually named | |
5526 | something starting with __ and the normal name is an alias. */ | |
5527 | #if defined (__stub_nl_langinfo) || defined (__stub___nl_langinfo) | |
5528 | choke me | |
5529 | #else | |
73c04bcf A |
5530 | char (*f) () = nl_langinfo; |
5531 | #endif | |
5532 | #ifdef __cplusplus | |
5533 | } | |
b75a7d8f A |
5534 | #endif |
5535 | ||
73c04bcf A |
5536 | int |
5537 | main () | |
5538 | { | |
5539 | return f != nl_langinfo; | |
5540 | ; | |
5541 | return 0; | |
5542 | } | |
5543 | _ACEOF | |
5544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5546 | (eval $ac_link) 2>conftest.er1 | |
5547 | ac_status=$? | |
5548 | grep -v '^ *+' conftest.er1 >conftest.err | |
5549 | rm -f conftest.er1 | |
5550 | cat conftest.err >&5 | |
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5552 | (exit $ac_status); } && | |
5553 | { ac_try='test -z "$ac_c_werror_flag" | |
5554 | || test ! -s conftest.err' | |
5555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5556 | (eval $ac_try) 2>&5 | |
5557 | ac_status=$? | |
5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5559 | (exit $ac_status); }; } && | |
5560 | { ac_try='test -s conftest$ac_exeext' | |
5561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5562 | (eval $ac_try) 2>&5 | |
5563 | ac_status=$? | |
5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5565 | (exit $ac_status); }; }; then | |
5566 | ac_cv_func_nl_langinfo=yes | |
5567 | else | |
5568 | echo "$as_me: failed program was:" >&5 | |
5569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5570 | ||
5571 | ac_cv_func_nl_langinfo=no | |
5572 | fi | |
5573 | rm -f conftest.err conftest.$ac_objext \ | |
5574 | conftest$ac_exeext conftest.$ac_ext | |
5575 | fi | |
5576 | echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5 | |
5577 | echo "${ECHO_T}$ac_cv_func_nl_langinfo" >&6 | |
5578 | if test $ac_cv_func_nl_langinfo = yes; then | |
b75a7d8f A |
5579 | U_HAVE_NL_LANGINFO=1 |
5580 | else | |
73c04bcf | 5581 | U_HAVE_NL_LANGINFO=0 |
b75a7d8f A |
5582 | fi |
5583 | ||
5584 | ||
5585 | if test $U_HAVE_NL_LANGINFO -eq 1; then | |
73c04bcf A |
5586 | echo "$as_me:$LINENO: checking for nl_langinfo's argument to obtain the codeset" >&5 |
5587 | echo $ECHO_N "checking for nl_langinfo's argument to obtain the codeset... $ECHO_C" >&6 | |
5588 | if test "${ac_cv_nl_langinfo_codeset+set}" = set; then | |
5589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f A |
5590 | else |
5591 | ac_cv_nl_langinfo_codeset="unknown" | |
5592 | for a in CODESET _NL_CTYPE_CODESET_NAME; do | |
73c04bcf A |
5593 | cat >conftest.$ac_ext <<_ACEOF |
5594 | /* confdefs.h. */ | |
5595 | _ACEOF | |
5596 | cat confdefs.h >>conftest.$ac_ext | |
5597 | cat >>conftest.$ac_ext <<_ACEOF | |
5598 | /* end confdefs.h. */ | |
b75a7d8f | 5599 | #include <langinfo.h> |
73c04bcf A |
5600 | int |
5601 | main () | |
5602 | { | |
b75a7d8f | 5603 | nl_langinfo($a); |
73c04bcf A |
5604 | ; |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
5608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5610 | (eval $ac_link) 2>conftest.er1 | |
5611 | ac_status=$? | |
5612 | grep -v '^ *+' conftest.er1 >conftest.err | |
5613 | rm -f conftest.er1 | |
5614 | cat conftest.err >&5 | |
5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5616 | (exit $ac_status); } && | |
5617 | { ac_try='test -z "$ac_c_werror_flag" | |
5618 | || test ! -s conftest.err' | |
5619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5620 | (eval $ac_try) 2>&5 | |
5621 | ac_status=$? | |
5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5623 | (exit $ac_status); }; } && | |
5624 | { ac_try='test -s conftest$ac_exeext' | |
5625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5626 | (eval $ac_try) 2>&5 | |
5627 | ac_status=$? | |
5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5629 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5630 | ac_cv_nl_langinfo_codeset="$a"; break |
5631 | else | |
73c04bcf A |
5632 | echo "$as_me: failed program was:" >&5 |
5633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5634 | ||
b75a7d8f | 5635 | fi |
73c04bcf A |
5636 | rm -f conftest.err conftest.$ac_objext \ |
5637 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
5638 | done |
5639 | fi | |
73c04bcf A |
5640 | echo "$as_me:$LINENO: result: $ac_cv_nl_langinfo_codeset" >&5 |
5641 | echo "${ECHO_T}$ac_cv_nl_langinfo_codeset" >&6 | |
b75a7d8f A |
5642 | if test x$ac_cv_nl_langinfo_codeset != xunknown |
5643 | then | |
5644 | U_HAVE_NL_LANGINFO_CODESET=1 | |
5645 | U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset | |
5646 | fi | |
5647 | fi | |
5648 | ||
5649 | ||
5650 | ||
73c04bcf | 5651 | ac_ext=cc |
b75a7d8f | 5652 | ac_cpp='$CXXCPP $CPPFLAGS' |
73c04bcf A |
5653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5656 | ||
5657 | echo "$as_me:$LINENO: checking for namespace support" >&5 | |
5658 | echo $ECHO_N "checking for namespace support... $ECHO_C" >&6 | |
5659 | if test "${ac_cv_namespace_ok+set}" = set; then | |
5660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5661 | else | |
5662 | cat >conftest.$ac_ext <<_ACEOF | |
5663 | /* confdefs.h. */ | |
5664 | _ACEOF | |
5665 | cat confdefs.h >>conftest.$ac_ext | |
5666 | cat >>conftest.$ac_ext <<_ACEOF | |
5667 | /* end confdefs.h. */ | |
5668 | namespace x_version {void f(){}} | |
b75a7d8f A |
5669 | namespace x = x_version; |
5670 | using namespace x_version; | |
73c04bcf A |
5671 | |
5672 | int | |
5673 | main () | |
5674 | { | |
b75a7d8f | 5675 | f(); |
73c04bcf A |
5676 | ; |
5677 | return 0; | |
5678 | } | |
5679 | _ACEOF | |
5680 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5682 | (eval $ac_link) 2>conftest.er1 | |
5683 | ac_status=$? | |
5684 | grep -v '^ *+' conftest.er1 >conftest.err | |
5685 | rm -f conftest.er1 | |
5686 | cat conftest.err >&5 | |
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5688 | (exit $ac_status); } && | |
5689 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5690 | || test ! -s conftest.err' | |
5691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5692 | (eval $ac_try) 2>&5 | |
5693 | ac_status=$? | |
5694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5695 | (exit $ac_status); }; } && | |
5696 | { ac_try='test -s conftest$ac_exeext' | |
5697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5698 | (eval $ac_try) 2>&5 | |
5699 | ac_status=$? | |
5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5701 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5702 | ac_cv_namespace_ok=yes |
5703 | else | |
73c04bcf A |
5704 | echo "$as_me: failed program was:" >&5 |
5705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5706 | ||
5707 | ac_cv_namespace_ok=no | |
b75a7d8f | 5708 | fi |
73c04bcf A |
5709 | rm -f conftest.err conftest.$ac_objext \ |
5710 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
5711 | fi |
5712 | ||
73c04bcf A |
5713 | echo "$as_me:$LINENO: result: $ac_cv_namespace_ok" >&5 |
5714 | echo "${ECHO_T}$ac_cv_namespace_ok" >&6 | |
b75a7d8f A |
5715 | U_HAVE_NAMESPACE=1 |
5716 | if test $ac_cv_namespace_ok = no | |
5717 | then | |
5718 | U_HAVE_NAMESPACE=0 | |
5719 | fi | |
5720 | ||
5721 | ||
73c04bcf A |
5722 | echo "$as_me:$LINENO: checking for properly overriding new and delete" >&5 |
5723 | echo $ECHO_N "checking for properly overriding new and delete... $ECHO_C" >&6 | |
b75a7d8f A |
5724 | U_OVERRIDE_CXX_ALLOCATION=0 |
5725 | U_HAVE_PLACEMENT_NEW=0 | |
73c04bcf A |
5726 | if test "${ac_cv_override_cxx_allocation_ok+set}" = set; then |
5727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5728 | else | |
5729 | cat >conftest.$ac_ext <<_ACEOF | |
5730 | /* confdefs.h. */ | |
5731 | _ACEOF | |
5732 | cat confdefs.h >>conftest.$ac_ext | |
5733 | cat >>conftest.$ac_ext <<_ACEOF | |
5734 | /* end confdefs.h. */ | |
b75a7d8f | 5735 | #include <stdlib.h> |
374ca955 A |
5736 | class UMemory { |
5737 | public: | |
b75a7d8f A |
5738 | void *operator new(size_t size) {return malloc(size);} |
5739 | void *operator new[](size_t size) {return malloc(size);} | |
5740 | void operator delete(void *p) {free(p);} | |
5741 | void operator delete[](void *p) {free(p);} | |
5742 | }; | |
73c04bcf A |
5743 | |
5744 | int | |
5745 | main () | |
5746 | { | |
5747 | ||
5748 | ; | |
5749 | return 0; | |
5750 | } | |
5751 | _ACEOF | |
5752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5754 | (eval $ac_link) 2>conftest.er1 | |
5755 | ac_status=$? | |
5756 | grep -v '^ *+' conftest.er1 >conftest.err | |
5757 | rm -f conftest.er1 | |
5758 | cat conftest.err >&5 | |
5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5760 | (exit $ac_status); } && | |
5761 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5762 | || test ! -s conftest.err' | |
5763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5764 | (eval $ac_try) 2>&5 | |
5765 | ac_status=$? | |
5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5767 | (exit $ac_status); }; } && | |
5768 | { ac_try='test -s conftest$ac_exeext' | |
5769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5770 | (eval $ac_try) 2>&5 | |
5771 | ac_status=$? | |
5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5773 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5774 | ac_cv_override_cxx_allocation_ok=yes |
5775 | else | |
73c04bcf A |
5776 | echo "$as_me: failed program was:" >&5 |
5777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5778 | ||
5779 | ac_cv_override_cxx_allocation_ok=no | |
b75a7d8f | 5780 | fi |
73c04bcf A |
5781 | rm -f conftest.err conftest.$ac_objext \ |
5782 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
5783 | fi |
5784 | ||
73c04bcf A |
5785 | echo "$as_me:$LINENO: result: $ac_cv_override_cxx_allocation_ok" >&5 |
5786 | echo "${ECHO_T}$ac_cv_override_cxx_allocation_ok" >&6 | |
b75a7d8f A |
5787 | if test $ac_cv_override_cxx_allocation_ok = yes |
5788 | then | |
5789 | U_OVERRIDE_CXX_ALLOCATION=1 | |
73c04bcf A |
5790 | echo "$as_me:$LINENO: checking for placement new and delete" >&5 |
5791 | echo $ECHO_N "checking for placement new and delete... $ECHO_C" >&6 | |
5792 | if test "${ac_cv_override_placement_new_ok+set}" = set; then | |
5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5794 | else | |
5795 | cat >conftest.$ac_ext <<_ACEOF | |
5796 | /* confdefs.h. */ | |
5797 | _ACEOF | |
5798 | cat confdefs.h >>conftest.$ac_ext | |
5799 | cat >>conftest.$ac_ext <<_ACEOF | |
5800 | /* end confdefs.h. */ | |
b75a7d8f | 5801 | #include <stdlib.h> |
374ca955 A |
5802 | class UMemory { |
5803 | public: | |
b75a7d8f A |
5804 | void *operator new(size_t size) {return malloc(size);} |
5805 | void *operator new[](size_t size) {return malloc(size);} | |
5806 | void operator delete(void *p) {free(p);} | |
5807 | void operator delete[](void *p) {free(p);} | |
5808 | void * operator new(size_t, void *ptr) { return ptr; } | |
5809 | void operator delete(void *, void *) {} | |
5810 | }; | |
73c04bcf A |
5811 | |
5812 | int | |
5813 | main () | |
5814 | { | |
5815 | ||
5816 | ; | |
5817 | return 0; | |
5818 | } | |
5819 | _ACEOF | |
5820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5822 | (eval $ac_link) 2>conftest.er1 | |
5823 | ac_status=$? | |
5824 | grep -v '^ *+' conftest.er1 >conftest.err | |
5825 | rm -f conftest.er1 | |
5826 | cat conftest.err >&5 | |
5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5828 | (exit $ac_status); } && | |
5829 | { ac_try='test -z "$ac_cxx_werror_flag" | |
5830 | || test ! -s conftest.err' | |
5831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5832 | (eval $ac_try) 2>&5 | |
5833 | ac_status=$? | |
5834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5835 | (exit $ac_status); }; } && | |
5836 | { ac_try='test -s conftest$ac_exeext' | |
5837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5838 | (eval $ac_try) 2>&5 | |
5839 | ac_status=$? | |
5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5841 | (exit $ac_status); }; }; then | |
b75a7d8f A |
5842 | ac_cv_override_placement_new_ok=yes |
5843 | else | |
73c04bcf A |
5844 | echo "$as_me: failed program was:" >&5 |
5845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5846 | ||
5847 | ac_cv_override_placement_new_ok=no | |
b75a7d8f | 5848 | fi |
73c04bcf A |
5849 | rm -f conftest.err conftest.$ac_objext \ |
5850 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f A |
5851 | fi |
5852 | ||
73c04bcf A |
5853 | echo "$as_me:$LINENO: result: $ac_cv_override_placement_new_ok" >&5 |
5854 | echo "${ECHO_T}$ac_cv_override_placement_new_ok" >&6 | |
b75a7d8f A |
5855 | if test $ac_cv_override_placement_new_ok = yes |
5856 | then | |
5857 | U_HAVE_PLACEMENT_NEW=1 | |
5858 | fi | |
5859 | fi | |
5860 | ||
5861 | ||
5862 | ||
5863 | ac_ext=c | |
b75a7d8f | 5864 | ac_cpp='$CPP $CPPFLAGS' |
73c04bcf A |
5865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5868 | ||
5869 | echo "$as_me:$LINENO: checking for popen" >&5 | |
5870 | echo $ECHO_N "checking for popen... $ECHO_C" >&6 | |
5871 | if test "${ac_cv_func_popen+set}" = set; then | |
5872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5873 | else | |
5874 | cat >conftest.$ac_ext <<_ACEOF | |
5875 | /* confdefs.h. */ | |
5876 | _ACEOF | |
5877 | cat confdefs.h >>conftest.$ac_ext | |
5878 | cat >>conftest.$ac_ext <<_ACEOF | |
5879 | /* end confdefs.h. */ | |
5880 | /* Define popen to an innocuous variant, in case <limits.h> declares popen. | |
5881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5882 | #define popen innocuous_popen | |
5883 | ||
b75a7d8f | 5884 | /* System header to define __stub macros and hopefully few prototypes, |
73c04bcf A |
5885 | which can conflict with char popen (); below. |
5886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5887 | <limits.h> exists even on freestanding compilers. */ | |
5888 | ||
5889 | #ifdef __STDC__ | |
5890 | # include <limits.h> | |
5891 | #else | |
5892 | # include <assert.h> | |
5893 | #endif | |
b75a7d8f | 5894 | |
73c04bcf | 5895 | #undef popen |
b75a7d8f | 5896 | |
73c04bcf A |
5897 | /* Override any gcc2 internal prototype to avoid an error. */ |
5898 | #ifdef __cplusplus | |
5899 | extern "C" | |
5900 | { | |
5901 | #endif | |
5902 | /* We use char because int might match the return type of a gcc2 | |
5903 | builtin and then its argument prototype would still apply. */ | |
5904 | char popen (); | |
b75a7d8f A |
5905 | /* The GNU C library defines this for functions which it implements |
5906 | to always fail with ENOSYS. Some functions are actually named | |
5907 | something starting with __ and the normal name is an alias. */ | |
5908 | #if defined (__stub_popen) || defined (__stub___popen) | |
5909 | choke me | |
5910 | #else | |
73c04bcf A |
5911 | char (*f) () = popen; |
5912 | #endif | |
5913 | #ifdef __cplusplus | |
5914 | } | |
b75a7d8f A |
5915 | #endif |
5916 | ||
73c04bcf A |
5917 | int |
5918 | main () | |
5919 | { | |
5920 | return f != popen; | |
5921 | ; | |
5922 | return 0; | |
5923 | } | |
5924 | _ACEOF | |
5925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5927 | (eval $ac_link) 2>conftest.er1 | |
5928 | ac_status=$? | |
5929 | grep -v '^ *+' conftest.er1 >conftest.err | |
5930 | rm -f conftest.er1 | |
5931 | cat conftest.err >&5 | |
5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5933 | (exit $ac_status); } && | |
5934 | { ac_try='test -z "$ac_c_werror_flag" | |
5935 | || test ! -s conftest.err' | |
5936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5937 | (eval $ac_try) 2>&5 | |
5938 | ac_status=$? | |
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5940 | (exit $ac_status); }; } && | |
5941 | { ac_try='test -s conftest$ac_exeext' | |
5942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5943 | (eval $ac_try) 2>&5 | |
5944 | ac_status=$? | |
5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5946 | (exit $ac_status); }; }; then | |
5947 | ac_cv_func_popen=yes | |
5948 | else | |
5949 | echo "$as_me: failed program was:" >&5 | |
5950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5951 | ||
5952 | ac_cv_func_popen=no | |
5953 | fi | |
5954 | rm -f conftest.err conftest.$ac_objext \ | |
5955 | conftest$ac_exeext conftest.$ac_ext | |
5956 | fi | |
5957 | echo "$as_me:$LINENO: result: $ac_cv_func_popen" >&5 | |
5958 | echo "${ECHO_T}$ac_cv_func_popen" >&6 | |
b75a7d8f A |
5959 | |
5960 | if test x$ac_cv_func_popen = xyes | |
5961 | then | |
5962 | U_HAVE_POPEN=1 | |
5963 | else | |
5964 | U_HAVE_POPEN=0 | |
5965 | fi | |
5966 | ||
5967 | ||
73c04bcf A |
5968 | echo "$as_me:$LINENO: checking for tzset" >&5 |
5969 | echo $ECHO_N "checking for tzset... $ECHO_C" >&6 | |
5970 | if test "${ac_cv_func_tzset+set}" = set; then | |
5971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 5972 | else |
73c04bcf A |
5973 | cat >conftest.$ac_ext <<_ACEOF |
5974 | /* confdefs.h. */ | |
5975 | _ACEOF | |
5976 | cat confdefs.h >>conftest.$ac_ext | |
5977 | cat >>conftest.$ac_ext <<_ACEOF | |
5978 | /* end confdefs.h. */ | |
5979 | /* Define tzset to an innocuous variant, in case <limits.h> declares tzset. | |
5980 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5981 | #define tzset innocuous_tzset | |
5982 | ||
b75a7d8f | 5983 | /* System header to define __stub macros and hopefully few prototypes, |
73c04bcf A |
5984 | which can conflict with char tzset (); below. |
5985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5986 | <limits.h> exists even on freestanding compilers. */ | |
5987 | ||
5988 | #ifdef __STDC__ | |
5989 | # include <limits.h> | |
5990 | #else | |
5991 | # include <assert.h> | |
5992 | #endif | |
b75a7d8f | 5993 | |
73c04bcf | 5994 | #undef tzset |
b75a7d8f | 5995 | |
73c04bcf A |
5996 | /* Override any gcc2 internal prototype to avoid an error. */ |
5997 | #ifdef __cplusplus | |
5998 | extern "C" | |
5999 | { | |
6000 | #endif | |
6001 | /* We use char because int might match the return type of a gcc2 | |
6002 | builtin and then its argument prototype would still apply. */ | |
6003 | char tzset (); | |
b75a7d8f A |
6004 | /* The GNU C library defines this for functions which it implements |
6005 | to always fail with ENOSYS. Some functions are actually named | |
6006 | something starting with __ and the normal name is an alias. */ | |
6007 | #if defined (__stub_tzset) || defined (__stub___tzset) | |
6008 | choke me | |
6009 | #else | |
73c04bcf A |
6010 | char (*f) () = tzset; |
6011 | #endif | |
6012 | #ifdef __cplusplus | |
6013 | } | |
b75a7d8f A |
6014 | #endif |
6015 | ||
73c04bcf A |
6016 | int |
6017 | main () | |
6018 | { | |
6019 | return f != tzset; | |
6020 | ; | |
6021 | return 0; | |
6022 | } | |
6023 | _ACEOF | |
6024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6026 | (eval $ac_link) 2>conftest.er1 | |
6027 | ac_status=$? | |
6028 | grep -v '^ *+' conftest.er1 >conftest.err | |
6029 | rm -f conftest.er1 | |
6030 | cat conftest.err >&5 | |
6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6032 | (exit $ac_status); } && | |
6033 | { ac_try='test -z "$ac_c_werror_flag" | |
6034 | || test ! -s conftest.err' | |
6035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6036 | (eval $ac_try) 2>&5 | |
6037 | ac_status=$? | |
6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6039 | (exit $ac_status); }; } && | |
6040 | { ac_try='test -s conftest$ac_exeext' | |
6041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6042 | (eval $ac_try) 2>&5 | |
6043 | ac_status=$? | |
6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6045 | (exit $ac_status); }; }; then | |
6046 | ac_cv_func_tzset=yes | |
6047 | else | |
6048 | echo "$as_me: failed program was:" >&5 | |
6049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6050 | ||
6051 | ac_cv_func_tzset=no | |
6052 | fi | |
6053 | rm -f conftest.err conftest.$ac_objext \ | |
6054 | conftest$ac_exeext conftest.$ac_ext | |
6055 | fi | |
6056 | echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5 | |
6057 | echo "${ECHO_T}$ac_cv_func_tzset" >&6 | |
b75a7d8f | 6058 | |
374ca955 | 6059 | U_HAVE_TZSET=0 |
b75a7d8f A |
6060 | if test x$ac_cv_func_tzset = xyes |
6061 | then | |
6062 | U_TZSET=tzset | |
374ca955 | 6063 | U_HAVE_TZSET=1 |
b75a7d8f | 6064 | else |
73c04bcf A |
6065 | echo "$as_me:$LINENO: checking for _tzset" >&5 |
6066 | echo $ECHO_N "checking for _tzset... $ECHO_C" >&6 | |
6067 | if test "${ac_cv_func__tzset+set}" = set; then | |
6068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6069 | else | |
6070 | cat >conftest.$ac_ext <<_ACEOF | |
6071 | /* confdefs.h. */ | |
6072 | _ACEOF | |
6073 | cat confdefs.h >>conftest.$ac_ext | |
6074 | cat >>conftest.$ac_ext <<_ACEOF | |
6075 | /* end confdefs.h. */ | |
6076 | /* Define _tzset to an innocuous variant, in case <limits.h> declares _tzset. | |
6077 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6078 | #define _tzset innocuous__tzset | |
6079 | ||
b75a7d8f | 6080 | /* System header to define __stub macros and hopefully few prototypes, |
73c04bcf A |
6081 | which can conflict with char _tzset (); below. |
6082 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6083 | <limits.h> exists even on freestanding compilers. */ | |
6084 | ||
6085 | #ifdef __STDC__ | |
6086 | # include <limits.h> | |
6087 | #else | |
6088 | # include <assert.h> | |
6089 | #endif | |
b75a7d8f | 6090 | |
73c04bcf | 6091 | #undef _tzset |
b75a7d8f | 6092 | |
73c04bcf A |
6093 | /* Override any gcc2 internal prototype to avoid an error. */ |
6094 | #ifdef __cplusplus | |
6095 | extern "C" | |
6096 | { | |
6097 | #endif | |
6098 | /* We use char because int might match the return type of a gcc2 | |
6099 | builtin and then its argument prototype would still apply. */ | |
6100 | char _tzset (); | |
b75a7d8f A |
6101 | /* The GNU C library defines this for functions which it implements |
6102 | to always fail with ENOSYS. Some functions are actually named | |
6103 | something starting with __ and the normal name is an alias. */ | |
6104 | #if defined (__stub__tzset) || defined (__stub____tzset) | |
6105 | choke me | |
6106 | #else | |
73c04bcf A |
6107 | char (*f) () = _tzset; |
6108 | #endif | |
6109 | #ifdef __cplusplus | |
6110 | } | |
b75a7d8f A |
6111 | #endif |
6112 | ||
73c04bcf A |
6113 | int |
6114 | main () | |
6115 | { | |
6116 | return f != _tzset; | |
6117 | ; | |
6118 | return 0; | |
6119 | } | |
6120 | _ACEOF | |
6121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6123 | (eval $ac_link) 2>conftest.er1 | |
6124 | ac_status=$? | |
6125 | grep -v '^ *+' conftest.er1 >conftest.err | |
6126 | rm -f conftest.er1 | |
6127 | cat conftest.err >&5 | |
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6129 | (exit $ac_status); } && | |
6130 | { ac_try='test -z "$ac_c_werror_flag" | |
6131 | || test ! -s conftest.err' | |
6132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6133 | (eval $ac_try) 2>&5 | |
6134 | ac_status=$? | |
6135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6136 | (exit $ac_status); }; } && | |
6137 | { ac_try='test -s conftest$ac_exeext' | |
6138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6139 | (eval $ac_try) 2>&5 | |
6140 | ac_status=$? | |
6141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6142 | (exit $ac_status); }; }; then | |
6143 | ac_cv_func__tzset=yes | |
6144 | else | |
6145 | echo "$as_me: failed program was:" >&5 | |
6146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6147 | ||
6148 | ac_cv_func__tzset=no | |
6149 | fi | |
6150 | rm -f conftest.err conftest.$ac_objext \ | |
6151 | conftest$ac_exeext conftest.$ac_ext | |
6152 | fi | |
6153 | echo "$as_me:$LINENO: result: $ac_cv_func__tzset" >&5 | |
6154 | echo "${ECHO_T}$ac_cv_func__tzset" >&6 | |
b75a7d8f A |
6155 | |
6156 | if test x$ac_cv_func__tzset = xyes | |
6157 | then | |
374ca955 A |
6158 | U_TZSET=_tzset |
6159 | U_HAVE_TZSET=1 | |
b75a7d8f A |
6160 | fi |
6161 | fi | |
6162 | ||
374ca955 A |
6163 | |
6164 | ||
6165 | U_HAVE_TZNAME=0 | |
73c04bcf A |
6166 | echo "$as_me:$LINENO: checking for tzname" >&5 |
6167 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
6168 | if test "${ac_cv_var_tzname+set}" = set; then | |
6169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6170 | else | |
6171 | cat >conftest.$ac_ext <<_ACEOF | |
6172 | /* confdefs.h. */ | |
6173 | _ACEOF | |
6174 | cat confdefs.h >>conftest.$ac_ext | |
6175 | cat >>conftest.$ac_ext <<_ACEOF | |
6176 | /* end confdefs.h. */ | |
b75a7d8f A |
6177 | #ifndef __USE_POSIX |
6178 | #define __USE_POSIX | |
6179 | #endif | |
374ca955 | 6180 | #include <stdlib.h> |
b75a7d8f A |
6181 | #include <time.h> |
6182 | #ifndef tzname /* For SGI. */ | |
6183 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
6184 | #endif | |
73c04bcf A |
6185 | int |
6186 | main () | |
6187 | { | |
b75a7d8f | 6188 | atoi(*tzname); |
73c04bcf A |
6189 | ; |
6190 | return 0; | |
6191 | } | |
6192 | _ACEOF | |
6193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6195 | (eval $ac_link) 2>conftest.er1 | |
6196 | ac_status=$? | |
6197 | grep -v '^ *+' conftest.er1 >conftest.err | |
6198 | rm -f conftest.er1 | |
6199 | cat conftest.err >&5 | |
6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6201 | (exit $ac_status); } && | |
6202 | { ac_try='test -z "$ac_c_werror_flag" | |
6203 | || test ! -s conftest.err' | |
6204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6205 | (eval $ac_try) 2>&5 | |
6206 | ac_status=$? | |
6207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6208 | (exit $ac_status); }; } && | |
6209 | { ac_try='test -s conftest$ac_exeext' | |
6210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6211 | (eval $ac_try) 2>&5 | |
6212 | ac_status=$? | |
6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6214 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6215 | ac_cv_var_tzname=yes |
6216 | else | |
73c04bcf A |
6217 | echo "$as_me: failed program was:" >&5 |
6218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6219 | ||
6220 | ac_cv_var_tzname=no | |
b75a7d8f | 6221 | fi |
73c04bcf A |
6222 | rm -f conftest.err conftest.$ac_objext \ |
6223 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f | 6224 | fi |
73c04bcf A |
6225 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
6226 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
b75a7d8f A |
6227 | if test $ac_cv_var_tzname = yes; then |
6228 | U_TZNAME=tzname | |
374ca955 | 6229 | U_HAVE_TZNAME=1 |
b75a7d8f | 6230 | else |
73c04bcf A |
6231 | echo "$as_me:$LINENO: checking for _tzname" >&5 |
6232 | echo $ECHO_N "checking for _tzname... $ECHO_C" >&6 | |
6233 | if test "${ac_cv_var__tzname+set}" = set; then | |
6234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6235 | else | |
6236 | cat >conftest.$ac_ext <<_ACEOF | |
6237 | /* confdefs.h. */ | |
6238 | _ACEOF | |
6239 | cat confdefs.h >>conftest.$ac_ext | |
6240 | cat >>conftest.$ac_ext <<_ACEOF | |
6241 | /* end confdefs.h. */ | |
374ca955 | 6242 | #include <stdlib.h> |
b75a7d8f A |
6243 | #include <time.h> |
6244 | extern char *_tzname[]; | |
73c04bcf A |
6245 | |
6246 | int | |
6247 | main () | |
6248 | { | |
b75a7d8f | 6249 | atoi(*_tzname); |
73c04bcf A |
6250 | ; |
6251 | return 0; | |
6252 | } | |
6253 | _ACEOF | |
6254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6256 | (eval $ac_link) 2>conftest.er1 | |
6257 | ac_status=$? | |
6258 | grep -v '^ *+' conftest.er1 >conftest.err | |
6259 | rm -f conftest.er1 | |
6260 | cat conftest.err >&5 | |
6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6262 | (exit $ac_status); } && | |
6263 | { ac_try='test -z "$ac_c_werror_flag" | |
6264 | || test ! -s conftest.err' | |
6265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6266 | (eval $ac_try) 2>&5 | |
6267 | ac_status=$? | |
6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6269 | (exit $ac_status); }; } && | |
6270 | { ac_try='test -s conftest$ac_exeext' | |
6271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6272 | (eval $ac_try) 2>&5 | |
6273 | ac_status=$? | |
6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6275 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6276 | ac_cv_var__tzname=yes |
6277 | else | |
73c04bcf A |
6278 | echo "$as_me: failed program was:" >&5 |
6279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6280 | ||
6281 | ac_cv_var__tzname=no | |
b75a7d8f | 6282 | fi |
73c04bcf A |
6283 | rm -f conftest.err conftest.$ac_objext \ |
6284 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f | 6285 | fi |
73c04bcf A |
6286 | echo "$as_me:$LINENO: result: $ac_cv_var__tzname" >&5 |
6287 | echo "${ECHO_T}$ac_cv_var__tzname" >&6 | |
b75a7d8f A |
6288 | if test $ac_cv_var__tzname = yes; then |
6289 | U_TZNAME=_tzname | |
374ca955 | 6290 | U_HAVE_TZNAME=1 |
b75a7d8f A |
6291 | fi |
6292 | fi | |
6293 | ||
6294 | ||
374ca955 | 6295 | |
73c04bcf A |
6296 | echo "$as_me:$LINENO: checking for timezone" >&5 |
6297 | echo $ECHO_N "checking for timezone... $ECHO_C" >&6 | |
6298 | if test "${ac_cv_var_timezone+set}" = set; then | |
6299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6300 | else |
73c04bcf A |
6301 | cat >conftest.$ac_ext <<_ACEOF |
6302 | /* confdefs.h. */ | |
6303 | _ACEOF | |
6304 | cat confdefs.h >>conftest.$ac_ext | |
6305 | cat >>conftest.$ac_ext <<_ACEOF | |
6306 | /* end confdefs.h. */ | |
b75a7d8f A |
6307 | #ifndef __USE_POSIX |
6308 | #define __USE_POSIX | |
6309 | #endif | |
6310 | #ifndef __USE_XOPEN | |
6311 | #define __USE_XOPEN | |
6312 | #endif | |
6313 | #include <time.h> | |
6314 | ||
73c04bcf A |
6315 | int |
6316 | main () | |
6317 | { | |
b75a7d8f | 6318 | timezone = 1; |
73c04bcf A |
6319 | ; |
6320 | return 0; | |
6321 | } | |
6322 | _ACEOF | |
6323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6325 | (eval $ac_link) 2>conftest.er1 | |
6326 | ac_status=$? | |
6327 | grep -v '^ *+' conftest.er1 >conftest.err | |
6328 | rm -f conftest.er1 | |
6329 | cat conftest.err >&5 | |
6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6331 | (exit $ac_status); } && | |
6332 | { ac_try='test -z "$ac_c_werror_flag" | |
6333 | || test ! -s conftest.err' | |
6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6335 | (eval $ac_try) 2>&5 | |
6336 | ac_status=$? | |
6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6338 | (exit $ac_status); }; } && | |
6339 | { ac_try='test -s conftest$ac_exeext' | |
6340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6341 | (eval $ac_try) 2>&5 | |
6342 | ac_status=$? | |
6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6344 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6345 | ac_cv_var_timezone=yes |
6346 | else | |
73c04bcf A |
6347 | echo "$as_me: failed program was:" >&5 |
6348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6349 | ||
6350 | ac_cv_var_timezone=no | |
b75a7d8f | 6351 | fi |
73c04bcf A |
6352 | rm -f conftest.err conftest.$ac_objext \ |
6353 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f | 6354 | fi |
73c04bcf A |
6355 | echo "$as_me:$LINENO: result: $ac_cv_var_timezone" >&5 |
6356 | echo "${ECHO_T}$ac_cv_var_timezone" >&6 | |
b75a7d8f A |
6357 | U_HAVE_TIMEZONE=0 |
6358 | if test $ac_cv_var_timezone = yes; then | |
6359 | U_TIMEZONE=timezone | |
6360 | U_HAVE_TIMEZONE=1 | |
6361 | else | |
73c04bcf A |
6362 | echo "$as_me:$LINENO: checking for __timezone" >&5 |
6363 | echo $ECHO_N "checking for __timezone... $ECHO_C" >&6 | |
6364 | if test "${ac_cv_var___timezone+set}" = set; then | |
6365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6366 | else | |
6367 | cat >conftest.$ac_ext <<_ACEOF | |
6368 | /* confdefs.h. */ | |
6369 | _ACEOF | |
6370 | cat confdefs.h >>conftest.$ac_ext | |
6371 | cat >>conftest.$ac_ext <<_ACEOF | |
6372 | /* end confdefs.h. */ | |
b75a7d8f | 6373 | #include <time.h> |
73c04bcf A |
6374 | |
6375 | int | |
6376 | main () | |
6377 | { | |
b75a7d8f | 6378 | __timezone = 1; |
73c04bcf A |
6379 | ; |
6380 | return 0; | |
6381 | } | |
6382 | _ACEOF | |
6383 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6385 | (eval $ac_link) 2>conftest.er1 | |
6386 | ac_status=$? | |
6387 | grep -v '^ *+' conftest.er1 >conftest.err | |
6388 | rm -f conftest.er1 | |
6389 | cat conftest.err >&5 | |
6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6391 | (exit $ac_status); } && | |
6392 | { ac_try='test -z "$ac_c_werror_flag" | |
6393 | || test ! -s conftest.err' | |
6394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6395 | (eval $ac_try) 2>&5 | |
6396 | ac_status=$? | |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); }; } && | |
6399 | { ac_try='test -s conftest$ac_exeext' | |
6400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6401 | (eval $ac_try) 2>&5 | |
6402 | ac_status=$? | |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6405 | ac_cv_var___timezone=yes |
6406 | else | |
73c04bcf A |
6407 | echo "$as_me: failed program was:" >&5 |
6408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6409 | ||
6410 | ac_cv_var___timezone=no | |
b75a7d8f | 6411 | fi |
73c04bcf A |
6412 | rm -f conftest.err conftest.$ac_objext \ |
6413 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f | 6414 | fi |
73c04bcf A |
6415 | echo "$as_me:$LINENO: result: $ac_cv_var___timezone" >&5 |
6416 | echo "${ECHO_T}$ac_cv_var___timezone" >&6 | |
b75a7d8f A |
6417 | if test $ac_cv_var___timezone = yes; then |
6418 | U_TIMEZONE=__timezone | |
6419 | U_HAVE_TIMEZONE=1 | |
6420 | else | |
73c04bcf A |
6421 | echo "$as_me:$LINENO: checking for _timezone" >&5 |
6422 | echo $ECHO_N "checking for _timezone... $ECHO_C" >&6 | |
6423 | if test "${ac_cv_var__timezone+set}" = set; then | |
6424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6425 | else | |
6426 | cat >conftest.$ac_ext <<_ACEOF | |
6427 | /* confdefs.h. */ | |
6428 | _ACEOF | |
6429 | cat confdefs.h >>conftest.$ac_ext | |
6430 | cat >>conftest.$ac_ext <<_ACEOF | |
6431 | /* end confdefs.h. */ | |
b75a7d8f | 6432 | #include <time.h> |
73c04bcf A |
6433 | |
6434 | int | |
6435 | main () | |
6436 | { | |
b75a7d8f | 6437 | _timezone = 1; |
73c04bcf A |
6438 | ; |
6439 | return 0; | |
6440 | } | |
6441 | _ACEOF | |
6442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6444 | (eval $ac_link) 2>conftest.er1 | |
6445 | ac_status=$? | |
6446 | grep -v '^ *+' conftest.er1 >conftest.err | |
6447 | rm -f conftest.er1 | |
6448 | cat conftest.err >&5 | |
6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6450 | (exit $ac_status); } && | |
6451 | { ac_try='test -z "$ac_c_werror_flag" | |
6452 | || test ! -s conftest.err' | |
6453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6454 | (eval $ac_try) 2>&5 | |
6455 | ac_status=$? | |
6456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6457 | (exit $ac_status); }; } && | |
6458 | { ac_try='test -s conftest$ac_exeext' | |
6459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6460 | (eval $ac_try) 2>&5 | |
6461 | ac_status=$? | |
6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6463 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6464 | ac_cv_var__timezone=yes |
6465 | else | |
73c04bcf A |
6466 | echo "$as_me: failed program was:" >&5 |
6467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6468 | ||
6469 | ac_cv_var__timezone=no | |
b75a7d8f | 6470 | fi |
73c04bcf A |
6471 | rm -f conftest.err conftest.$ac_objext \ |
6472 | conftest$ac_exeext conftest.$ac_ext | |
b75a7d8f | 6473 | fi |
73c04bcf A |
6474 | echo "$as_me:$LINENO: result: $ac_cv_var__timezone" >&5 |
6475 | echo "${ECHO_T}$ac_cv_var__timezone" >&6 | |
b75a7d8f A |
6476 | if test $ac_cv_var__timezone = yes; then |
6477 | U_TIMEZONE=_timezone | |
6478 | U_HAVE_TIMEZONE=1 | |
6479 | fi | |
6480 | fi | |
6481 | fi | |
6482 | ||
6483 | ||
6484 | ||
73c04bcf A |
6485 | echo "$as_me:$LINENO: checking for int8_t" >&5 |
6486 | echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 | |
6487 | if test "${ac_cv_type_int8_t+set}" = set; then | |
6488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6489 | else |
73c04bcf A |
6490 | cat >conftest.$ac_ext <<_ACEOF |
6491 | /* confdefs.h. */ | |
6492 | _ACEOF | |
6493 | cat confdefs.h >>conftest.$ac_ext | |
6494 | cat >>conftest.$ac_ext <<_ACEOF | |
6495 | /* end confdefs.h. */ | |
6496 | $ac_includes_default | |
6497 | int | |
6498 | main () | |
6499 | { | |
6500 | if ((int8_t *) 0) | |
6501 | return 0; | |
6502 | if (sizeof (int8_t)) | |
6503 | return 0; | |
6504 | ; | |
6505 | return 0; | |
6506 | } | |
6507 | _ACEOF | |
6508 | rm -f conftest.$ac_objext | |
6509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6510 | (eval $ac_compile) 2>conftest.er1 | |
6511 | ac_status=$? | |
6512 | grep -v '^ *+' conftest.er1 >conftest.err | |
6513 | rm -f conftest.er1 | |
6514 | cat conftest.err >&5 | |
6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6516 | (exit $ac_status); } && | |
6517 | { ac_try='test -z "$ac_c_werror_flag" | |
6518 | || test ! -s conftest.err' | |
6519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6520 | (eval $ac_try) 2>&5 | |
6521 | ac_status=$? | |
6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6523 | (exit $ac_status); }; } && | |
6524 | { ac_try='test -s conftest.$ac_objext' | |
6525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6526 | (eval $ac_try) 2>&5 | |
6527 | ac_status=$? | |
6528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6529 | (exit $ac_status); }; }; then | |
6530 | ac_cv_type_int8_t=yes | |
b75a7d8f | 6531 | else |
73c04bcf A |
6532 | echo "$as_me: failed program was:" >&5 |
6533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6534 | |
73c04bcf | 6535 | ac_cv_type_int8_t=no |
b75a7d8f | 6536 | fi |
73c04bcf | 6537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 6538 | fi |
73c04bcf A |
6539 | echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 |
6540 | echo "${ECHO_T}$ac_cv_type_int8_t" >&6 | |
6541 | if test $ac_cv_type_int8_t = yes; then | |
b75a7d8f A |
6542 | : |
6543 | else | |
b75a7d8f | 6544 | |
73c04bcf A |
6545 | cat >>confdefs.h <<_ACEOF |
6546 | #define int8_t signed char | |
6547 | _ACEOF | |
b75a7d8f A |
6548 | |
6549 | fi | |
6550 | ||
73c04bcf A |
6551 | echo "$as_me:$LINENO: checking for uint8_t" >&5 |
6552 | echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 | |
6553 | if test "${ac_cv_type_uint8_t+set}" = set; then | |
6554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6555 | else |
73c04bcf A |
6556 | cat >conftest.$ac_ext <<_ACEOF |
6557 | /* confdefs.h. */ | |
6558 | _ACEOF | |
6559 | cat confdefs.h >>conftest.$ac_ext | |
6560 | cat >>conftest.$ac_ext <<_ACEOF | |
6561 | /* end confdefs.h. */ | |
6562 | $ac_includes_default | |
6563 | int | |
6564 | main () | |
6565 | { | |
6566 | if ((uint8_t *) 0) | |
6567 | return 0; | |
6568 | if (sizeof (uint8_t)) | |
6569 | return 0; | |
6570 | ; | |
6571 | return 0; | |
6572 | } | |
6573 | _ACEOF | |
6574 | rm -f conftest.$ac_objext | |
6575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6576 | (eval $ac_compile) 2>conftest.er1 | |
6577 | ac_status=$? | |
6578 | grep -v '^ *+' conftest.er1 >conftest.err | |
6579 | rm -f conftest.er1 | |
6580 | cat conftest.err >&5 | |
6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6582 | (exit $ac_status); } && | |
6583 | { ac_try='test -z "$ac_c_werror_flag" | |
6584 | || test ! -s conftest.err' | |
6585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6586 | (eval $ac_try) 2>&5 | |
6587 | ac_status=$? | |
6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6589 | (exit $ac_status); }; } && | |
6590 | { ac_try='test -s conftest.$ac_objext' | |
6591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6592 | (eval $ac_try) 2>&5 | |
6593 | ac_status=$? | |
6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6595 | (exit $ac_status); }; }; then | |
6596 | ac_cv_type_uint8_t=yes | |
b75a7d8f | 6597 | else |
73c04bcf A |
6598 | echo "$as_me: failed program was:" >&5 |
6599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6600 | |
73c04bcf | 6601 | ac_cv_type_uint8_t=no |
b75a7d8f | 6602 | fi |
73c04bcf | 6603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 6604 | fi |
73c04bcf A |
6605 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 |
6606 | echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 | |
6607 | if test $ac_cv_type_uint8_t = yes; then | |
6608 | : | |
b75a7d8f | 6609 | else |
b75a7d8f | 6610 | |
73c04bcf | 6611 | cat >>confdefs.h <<_ACEOF |
b75a7d8f | 6612 | #define uint8_t unsigned char |
73c04bcf | 6613 | _ACEOF |
b75a7d8f A |
6614 | |
6615 | fi | |
6616 | ||
73c04bcf A |
6617 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
6618 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 | |
6619 | if test "${ac_cv_type_int16_t+set}" = set; then | |
6620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6621 | else |
73c04bcf A |
6622 | cat >conftest.$ac_ext <<_ACEOF |
6623 | /* confdefs.h. */ | |
6624 | _ACEOF | |
6625 | cat confdefs.h >>conftest.$ac_ext | |
6626 | cat >>conftest.$ac_ext <<_ACEOF | |
6627 | /* end confdefs.h. */ | |
6628 | $ac_includes_default | |
6629 | int | |
6630 | main () | |
6631 | { | |
6632 | if ((int16_t *) 0) | |
6633 | return 0; | |
6634 | if (sizeof (int16_t)) | |
6635 | return 0; | |
6636 | ; | |
6637 | return 0; | |
6638 | } | |
6639 | _ACEOF | |
6640 | rm -f conftest.$ac_objext | |
6641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6642 | (eval $ac_compile) 2>conftest.er1 | |
6643 | ac_status=$? | |
6644 | grep -v '^ *+' conftest.er1 >conftest.err | |
6645 | rm -f conftest.er1 | |
6646 | cat conftest.err >&5 | |
6647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6648 | (exit $ac_status); } && | |
6649 | { ac_try='test -z "$ac_c_werror_flag" | |
6650 | || test ! -s conftest.err' | |
6651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6652 | (eval $ac_try) 2>&5 | |
6653 | ac_status=$? | |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6655 | (exit $ac_status); }; } && | |
6656 | { ac_try='test -s conftest.$ac_objext' | |
6657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6658 | (eval $ac_try) 2>&5 | |
6659 | ac_status=$? | |
6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6661 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6662 | ac_cv_type_int16_t=yes |
6663 | else | |
73c04bcf A |
6664 | echo "$as_me: failed program was:" >&5 |
6665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6666 | |
73c04bcf | 6667 | ac_cv_type_int16_t=no |
b75a7d8f | 6668 | fi |
73c04bcf A |
6669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6670 | fi | |
6671 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 | |
6672 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 | |
6673 | if test $ac_cv_type_int16_t = yes; then | |
6674 | : | |
6675 | else | |
6676 | ||
6677 | cat >>confdefs.h <<_ACEOF | |
b75a7d8f | 6678 | #define int16_t signed short |
73c04bcf | 6679 | _ACEOF |
b75a7d8f A |
6680 | |
6681 | fi | |
6682 | ||
73c04bcf A |
6683 | echo "$as_me:$LINENO: checking for uint16_t" >&5 |
6684 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 | |
6685 | if test "${ac_cv_type_uint16_t+set}" = set; then | |
6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6687 | else |
73c04bcf A |
6688 | cat >conftest.$ac_ext <<_ACEOF |
6689 | /* confdefs.h. */ | |
6690 | _ACEOF | |
6691 | cat confdefs.h >>conftest.$ac_ext | |
6692 | cat >>conftest.$ac_ext <<_ACEOF | |
6693 | /* end confdefs.h. */ | |
6694 | $ac_includes_default | |
6695 | int | |
6696 | main () | |
6697 | { | |
6698 | if ((uint16_t *) 0) | |
6699 | return 0; | |
6700 | if (sizeof (uint16_t)) | |
6701 | return 0; | |
6702 | ; | |
6703 | return 0; | |
6704 | } | |
6705 | _ACEOF | |
6706 | rm -f conftest.$ac_objext | |
6707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6708 | (eval $ac_compile) 2>conftest.er1 | |
6709 | ac_status=$? | |
6710 | grep -v '^ *+' conftest.er1 >conftest.err | |
6711 | rm -f conftest.er1 | |
6712 | cat conftest.err >&5 | |
6713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6714 | (exit $ac_status); } && | |
6715 | { ac_try='test -z "$ac_c_werror_flag" | |
6716 | || test ! -s conftest.err' | |
6717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6718 | (eval $ac_try) 2>&5 | |
6719 | ac_status=$? | |
6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6721 | (exit $ac_status); }; } && | |
6722 | { ac_try='test -s conftest.$ac_objext' | |
6723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6724 | (eval $ac_try) 2>&5 | |
6725 | ac_status=$? | |
6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6727 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6728 | ac_cv_type_uint16_t=yes |
6729 | else | |
73c04bcf A |
6730 | echo "$as_me: failed program was:" >&5 |
6731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6732 | |
73c04bcf | 6733 | ac_cv_type_uint16_t=no |
b75a7d8f | 6734 | fi |
73c04bcf A |
6735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6736 | fi | |
6737 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 | |
6738 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 | |
6739 | if test $ac_cv_type_uint16_t = yes; then | |
6740 | : | |
6741 | else | |
6742 | ||
6743 | cat >>confdefs.h <<_ACEOF | |
b75a7d8f | 6744 | #define uint16_t unsigned short |
73c04bcf | 6745 | _ACEOF |
b75a7d8f A |
6746 | |
6747 | fi | |
6748 | ||
73c04bcf A |
6749 | echo "$as_me:$LINENO: checking for int32_t" >&5 |
6750 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 | |
6751 | if test "${ac_cv_type_int32_t+set}" = set; then | |
6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6753 | else |
73c04bcf A |
6754 | cat >conftest.$ac_ext <<_ACEOF |
6755 | /* confdefs.h. */ | |
6756 | _ACEOF | |
6757 | cat confdefs.h >>conftest.$ac_ext | |
6758 | cat >>conftest.$ac_ext <<_ACEOF | |
6759 | /* end confdefs.h. */ | |
6760 | $ac_includes_default | |
6761 | int | |
6762 | main () | |
6763 | { | |
6764 | if ((int32_t *) 0) | |
6765 | return 0; | |
6766 | if (sizeof (int32_t)) | |
6767 | return 0; | |
6768 | ; | |
6769 | return 0; | |
6770 | } | |
6771 | _ACEOF | |
6772 | rm -f conftest.$ac_objext | |
6773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6774 | (eval $ac_compile) 2>conftest.er1 | |
6775 | ac_status=$? | |
6776 | grep -v '^ *+' conftest.er1 >conftest.err | |
6777 | rm -f conftest.er1 | |
6778 | cat conftest.err >&5 | |
6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6780 | (exit $ac_status); } && | |
6781 | { ac_try='test -z "$ac_c_werror_flag" | |
6782 | || test ! -s conftest.err' | |
6783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6784 | (eval $ac_try) 2>&5 | |
6785 | ac_status=$? | |
6786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6787 | (exit $ac_status); }; } && | |
6788 | { ac_try='test -s conftest.$ac_objext' | |
6789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6790 | (eval $ac_try) 2>&5 | |
6791 | ac_status=$? | |
6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6793 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6794 | ac_cv_type_int32_t=yes |
6795 | else | |
73c04bcf A |
6796 | echo "$as_me: failed program was:" >&5 |
6797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6798 | |
73c04bcf | 6799 | ac_cv_type_int32_t=no |
b75a7d8f | 6800 | fi |
73c04bcf A |
6801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6802 | fi | |
6803 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 | |
6804 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 | |
6805 | if test $ac_cv_type_int32_t = yes; then | |
6806 | : | |
6807 | else | |
6808 | ||
6809 | cat >>confdefs.h <<_ACEOF | |
b75a7d8f | 6810 | #define int32_t signed long |
73c04bcf | 6811 | _ACEOF |
b75a7d8f A |
6812 | |
6813 | fi | |
6814 | ||
73c04bcf A |
6815 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
6816 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
6817 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6819 | else |
73c04bcf A |
6820 | cat >conftest.$ac_ext <<_ACEOF |
6821 | /* confdefs.h. */ | |
6822 | _ACEOF | |
6823 | cat confdefs.h >>conftest.$ac_ext | |
6824 | cat >>conftest.$ac_ext <<_ACEOF | |
6825 | /* end confdefs.h. */ | |
6826 | $ac_includes_default | |
6827 | int | |
6828 | main () | |
6829 | { | |
6830 | if ((uint32_t *) 0) | |
6831 | return 0; | |
6832 | if (sizeof (uint32_t)) | |
6833 | return 0; | |
6834 | ; | |
6835 | return 0; | |
6836 | } | |
6837 | _ACEOF | |
6838 | rm -f conftest.$ac_objext | |
6839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6840 | (eval $ac_compile) 2>conftest.er1 | |
6841 | ac_status=$? | |
6842 | grep -v '^ *+' conftest.er1 >conftest.err | |
6843 | rm -f conftest.er1 | |
6844 | cat conftest.err >&5 | |
6845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6846 | (exit $ac_status); } && | |
6847 | { ac_try='test -z "$ac_c_werror_flag" | |
6848 | || test ! -s conftest.err' | |
6849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6850 | (eval $ac_try) 2>&5 | |
6851 | ac_status=$? | |
6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6853 | (exit $ac_status); }; } && | |
6854 | { ac_try='test -s conftest.$ac_objext' | |
6855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6856 | (eval $ac_try) 2>&5 | |
6857 | ac_status=$? | |
6858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6859 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6860 | ac_cv_type_uint32_t=yes |
6861 | else | |
73c04bcf A |
6862 | echo "$as_me: failed program was:" >&5 |
6863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6864 | |
73c04bcf | 6865 | ac_cv_type_uint32_t=no |
b75a7d8f | 6866 | fi |
73c04bcf A |
6867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6868 | fi | |
6869 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
6870 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
6871 | if test $ac_cv_type_uint32_t = yes; then | |
6872 | : | |
6873 | else | |
6874 | ||
6875 | cat >>confdefs.h <<_ACEOF | |
b75a7d8f | 6876 | #define uint32_t unsigned long |
73c04bcf | 6877 | _ACEOF |
b75a7d8f A |
6878 | |
6879 | fi | |
6880 | ||
73c04bcf A |
6881 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
6882 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | |
6883 | if test "${ac_cv_type_int64_t+set}" = set; then | |
6884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6885 | else |
73c04bcf A |
6886 | cat >conftest.$ac_ext <<_ACEOF |
6887 | /* confdefs.h. */ | |
6888 | _ACEOF | |
6889 | cat confdefs.h >>conftest.$ac_ext | |
6890 | cat >>conftest.$ac_ext <<_ACEOF | |
6891 | /* end confdefs.h. */ | |
6892 | $ac_includes_default | |
6893 | int | |
6894 | main () | |
6895 | { | |
6896 | if ((int64_t *) 0) | |
6897 | return 0; | |
6898 | if (sizeof (int64_t)) | |
6899 | return 0; | |
6900 | ; | |
6901 | return 0; | |
6902 | } | |
6903 | _ACEOF | |
6904 | rm -f conftest.$ac_objext | |
6905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6906 | (eval $ac_compile) 2>conftest.er1 | |
6907 | ac_status=$? | |
6908 | grep -v '^ *+' conftest.er1 >conftest.err | |
6909 | rm -f conftest.er1 | |
6910 | cat conftest.err >&5 | |
6911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6912 | (exit $ac_status); } && | |
6913 | { ac_try='test -z "$ac_c_werror_flag" | |
6914 | || test ! -s conftest.err' | |
6915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6916 | (eval $ac_try) 2>&5 | |
6917 | ac_status=$? | |
6918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6919 | (exit $ac_status); }; } && | |
6920 | { ac_try='test -s conftest.$ac_objext' | |
6921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6922 | (eval $ac_try) 2>&5 | |
6923 | ac_status=$? | |
6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6925 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6926 | ac_cv_type_int64_t=yes |
6927 | else | |
73c04bcf A |
6928 | echo "$as_me: failed program was:" >&5 |
6929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6930 | |
73c04bcf | 6931 | ac_cv_type_int64_t=no |
b75a7d8f | 6932 | fi |
73c04bcf A |
6933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6934 | fi | |
6935 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | |
6936 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | |
6937 | if test $ac_cv_type_int64_t = yes; then | |
6938 | : | |
6939 | else | |
6940 | ||
6941 | cat >>confdefs.h <<_ACEOF | |
b75a7d8f | 6942 | #define int64_t signed long long |
73c04bcf | 6943 | _ACEOF |
b75a7d8f A |
6944 | |
6945 | fi | |
6946 | ||
73c04bcf A |
6947 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
6948 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
6949 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 6951 | else |
73c04bcf A |
6952 | cat >conftest.$ac_ext <<_ACEOF |
6953 | /* confdefs.h. */ | |
6954 | _ACEOF | |
6955 | cat confdefs.h >>conftest.$ac_ext | |
6956 | cat >>conftest.$ac_ext <<_ACEOF | |
6957 | /* end confdefs.h. */ | |
6958 | $ac_includes_default | |
6959 | int | |
6960 | main () | |
6961 | { | |
6962 | if ((uint64_t *) 0) | |
6963 | return 0; | |
6964 | if (sizeof (uint64_t)) | |
6965 | return 0; | |
6966 | ; | |
6967 | return 0; | |
6968 | } | |
6969 | _ACEOF | |
6970 | rm -f conftest.$ac_objext | |
6971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6972 | (eval $ac_compile) 2>conftest.er1 | |
6973 | ac_status=$? | |
6974 | grep -v '^ *+' conftest.er1 >conftest.err | |
6975 | rm -f conftest.er1 | |
6976 | cat conftest.err >&5 | |
6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6978 | (exit $ac_status); } && | |
6979 | { ac_try='test -z "$ac_c_werror_flag" | |
6980 | || test ! -s conftest.err' | |
6981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6982 | (eval $ac_try) 2>&5 | |
6983 | ac_status=$? | |
6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6985 | (exit $ac_status); }; } && | |
6986 | { ac_try='test -s conftest.$ac_objext' | |
6987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6988 | (eval $ac_try) 2>&5 | |
6989 | ac_status=$? | |
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6991 | (exit $ac_status); }; }; then | |
b75a7d8f A |
6992 | ac_cv_type_uint64_t=yes |
6993 | else | |
73c04bcf A |
6994 | echo "$as_me: failed program was:" >&5 |
6995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b75a7d8f | 6996 | |
73c04bcf | 6997 | ac_cv_type_uint64_t=no |
b75a7d8f | 6998 | fi |
73c04bcf A |
6999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7000 | fi | |
7001 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
7002 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
7003 | if test $ac_cv_type_uint64_t = yes; then | |
7004 | : | |
7005 | else | |
7006 | ||
7007 | cat >>confdefs.h <<_ACEOF | |
b75a7d8f | 7008 | #define uint64_t unsigned long long |
73c04bcf | 7009 | _ACEOF |
b75a7d8f A |
7010 | |
7011 | fi | |
7012 | ||
7013 | ||
7014 | if test $ac_cv_type_int8_t = no; then | |
7015 | HAVE_INT8_T=0 | |
7016 | else | |
7017 | HAVE_INT8_T=1 | |
7018 | fi | |
7019 | ||
7020 | ||
7021 | if test $ac_cv_type_uint8_t = no; then | |
7022 | HAVE_UINT8_T=0 | |
7023 | else | |
7024 | HAVE_UINT8_T=1 | |
7025 | fi | |
7026 | ||
7027 | ||
7028 | if test $ac_cv_type_int16_t = no; then | |
7029 | HAVE_INT16_T=0 | |
7030 | else | |
7031 | HAVE_INT16_T=1 | |
7032 | fi | |
7033 | ||
7034 | ||
7035 | if test $ac_cv_type_uint16_t = no; then | |
7036 | HAVE_UINT16_T=0 | |
7037 | else | |
7038 | HAVE_UINT16_T=1 | |
7039 | fi | |
7040 | ||
7041 | ||
7042 | if test $ac_cv_type_int32_t = no; then | |
7043 | HAVE_INT32_T=0 | |
7044 | else | |
7045 | HAVE_INT32_T=1 | |
7046 | fi | |
7047 | ||
7048 | ||
7049 | if test $ac_cv_type_uint32_t = no; then | |
7050 | HAVE_UINT32_T=0 | |
7051 | else | |
7052 | HAVE_UINT32_T=1 | |
7053 | fi | |
7054 | ||
7055 | ||
7056 | if test $ac_cv_type_int64_t = no; then | |
7057 | HAVE_INT64_T=0 | |
7058 | else | |
7059 | HAVE_INT64_T=1 | |
7060 | fi | |
7061 | ||
7062 | ||
7063 | if test $ac_cv_type_uint64_t = no; then | |
7064 | HAVE_UINT64_T=0 | |
7065 | else | |
7066 | HAVE_UINT64_T=1 | |
7067 | fi | |
7068 | ||
7069 | ||
73c04bcf A |
7070 | if test "${ac_cv_header_wchar_h+set}" = set; then |
7071 | echo "$as_me:$LINENO: checking for wchar.h" >&5 | |
7072 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 | |
7073 | if test "${ac_cv_header_wchar_h+set}" = set; then | |
7074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7075 | fi | |
7076 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 | |
7077 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 | |
b75a7d8f | 7078 | else |
73c04bcf A |
7079 | # Is the header compilable? |
7080 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 | |
7081 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 | |
7082 | cat >conftest.$ac_ext <<_ACEOF | |
7083 | /* confdefs.h. */ | |
7084 | _ACEOF | |
7085 | cat confdefs.h >>conftest.$ac_ext | |
7086 | cat >>conftest.$ac_ext <<_ACEOF | |
7087 | /* end confdefs.h. */ | |
7088 | $ac_includes_default | |
b75a7d8f | 7089 | #include <wchar.h> |
73c04bcf A |
7090 | _ACEOF |
7091 | rm -f conftest.$ac_objext | |
7092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7093 | (eval $ac_compile) 2>conftest.er1 | |
7094 | ac_status=$? | |
7095 | grep -v '^ *+' conftest.er1 >conftest.err | |
7096 | rm -f conftest.er1 | |
7097 | cat conftest.err >&5 | |
7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7099 | (exit $ac_status); } && | |
7100 | { ac_try='test -z "$ac_c_werror_flag" | |
7101 | || test ! -s conftest.err' | |
7102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7103 | (eval $ac_try) 2>&5 | |
7104 | ac_status=$? | |
7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7106 | (exit $ac_status); }; } && | |
7107 | { ac_try='test -s conftest.$ac_objext' | |
7108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7109 | (eval $ac_try) 2>&5 | |
7110 | ac_status=$? | |
7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7112 | (exit $ac_status); }; }; then | |
7113 | ac_header_compiler=yes | |
7114 | else | |
7115 | echo "$as_me: failed program was:" >&5 | |
7116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7117 | ||
7118 | ac_header_compiler=no | |
7119 | fi | |
7120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7122 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7123 | ||
7124 | # Is the header present? | |
7125 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 | |
7126 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 | |
7127 | cat >conftest.$ac_ext <<_ACEOF | |
7128 | /* confdefs.h. */ | |
7129 | _ACEOF | |
7130 | cat confdefs.h >>conftest.$ac_ext | |
7131 | cat >>conftest.$ac_ext <<_ACEOF | |
7132 | /* end confdefs.h. */ | |
7133 | #include <wchar.h> | |
7134 | _ACEOF | |
7135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7137 | ac_status=$? | |
7138 | grep -v '^ *+' conftest.er1 >conftest.err | |
7139 | rm -f conftest.er1 | |
7140 | cat conftest.err >&5 | |
7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7142 | (exit $ac_status); } >/dev/null; then | |
7143 | if test -s conftest.err; then | |
7144 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7146 | else | |
7147 | ac_cpp_err= | |
7148 | fi | |
7149 | else | |
7150 | ac_cpp_err=yes | |
b75a7d8f | 7151 | fi |
73c04bcf A |
7152 | if test -z "$ac_cpp_err"; then |
7153 | ac_header_preproc=yes | |
7154 | else | |
7155 | echo "$as_me: failed program was:" >&5 | |
7156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7157 | ||
7158 | ac_header_preproc=no | |
b75a7d8f | 7159 | fi |
73c04bcf A |
7160 | rm -f conftest.err conftest.$ac_ext |
7161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7162 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7163 | ||
7164 | # So? What about this header? | |
7165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7166 | yes:no: ) | |
7167 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7168 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7169 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 | |
7170 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} | |
7171 | ac_header_preproc=yes | |
7172 | ;; | |
7173 | no:yes:* ) | |
7174 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 | |
7175 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} | |
7176 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 | |
7177 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} | |
7178 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 | |
7179 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} | |
7180 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7181 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7182 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 | |
7183 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} | |
7184 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 | |
7185 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} | |
7186 | ( | |
7187 | cat <<\_ASBOX | |
7188 | ## ------------------------------------------ ## | |
7189 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7190 | ## ------------------------------------------ ## | |
7191 | _ASBOX | |
7192 | ) | | |
7193 | sed "s/^/$as_me: WARNING: /" >&2 | |
7194 | ;; | |
7195 | esac | |
7196 | echo "$as_me:$LINENO: checking for wchar.h" >&5 | |
7197 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 | |
7198 | if test "${ac_cv_header_wchar_h+set}" = set; then | |
7199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f | 7200 | else |
73c04bcf A |
7201 | ac_cv_header_wchar_h=$ac_header_preproc |
7202 | fi | |
7203 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 | |
7204 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 | |
7205 | ||
b75a7d8f A |
7206 | fi |
7207 | ||
73c04bcf | 7208 | |
b75a7d8f A |
7209 | if test "$ac_cv_header_wchar_h" = no |
7210 | then | |
7211 | U_HAVE_WCHAR_H=0 | |
7212 | U_HAVE_WCSCPY=0 | |
7213 | else | |
73c04bcf | 7214 | cat >>confdefs.h <<\_ACEOF |
b75a7d8f | 7215 | #define HAVE_WCHAR_H 1 |
73c04bcf | 7216 | _ACEOF |
b75a7d8f A |
7217 | |
7218 | U_HAVE_WCHAR_H=1 | |
73c04bcf A |
7219 | echo "$as_me:$LINENO: checking for library containing wcscpy" >&5 |
7220 | echo $ECHO_N "checking for library containing wcscpy... $ECHO_C" >&6 | |
7221 | if test "${ac_cv_search_wcscpy+set}" = set; then | |
7222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7223 | else | |
7224 | ac_func_search_save_LIBS=$LIBS | |
7225 | ac_cv_search_wcscpy=no | |
7226 | cat >conftest.$ac_ext <<_ACEOF | |
7227 | /* confdefs.h. */ | |
7228 | _ACEOF | |
7229 | cat confdefs.h >>conftest.$ac_ext | |
7230 | cat >>conftest.$ac_ext <<_ACEOF | |
7231 | /* end confdefs.h. */ | |
7232 | ||
b75a7d8f | 7233 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
7234 | #ifdef __cplusplus |
7235 | extern "C" | |
7236 | #endif | |
b75a7d8f | 7237 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
7238 | builtin and then its argument prototype would still apply. */ |
7239 | char wcscpy (); | |
7240 | int | |
7241 | main () | |
7242 | { | |
7243 | wcscpy (); | |
7244 | ; | |
7245 | return 0; | |
7246 | } | |
7247 | _ACEOF | |
7248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7250 | (eval $ac_link) 2>conftest.er1 | |
7251 | ac_status=$? | |
7252 | grep -v '^ *+' conftest.er1 >conftest.err | |
7253 | rm -f conftest.er1 | |
7254 | cat conftest.err >&5 | |
7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7256 | (exit $ac_status); } && | |
7257 | { ac_try='test -z "$ac_c_werror_flag" | |
7258 | || test ! -s conftest.err' | |
7259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7260 | (eval $ac_try) 2>&5 | |
7261 | ac_status=$? | |
7262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7263 | (exit $ac_status); }; } && | |
7264 | { ac_try='test -s conftest$ac_exeext' | |
7265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7266 | (eval $ac_try) 2>&5 | |
7267 | ac_status=$? | |
7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7269 | (exit $ac_status); }; }; then | |
b75a7d8f A |
7270 | ac_cv_search_wcscpy="none required" |
7271 | else | |
73c04bcf A |
7272 | echo "$as_me: failed program was:" >&5 |
7273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7274 | ||
b75a7d8f | 7275 | fi |
73c04bcf A |
7276 | rm -f conftest.err conftest.$ac_objext \ |
7277 | conftest$ac_exeext conftest.$ac_ext | |
7278 | if test "$ac_cv_search_wcscpy" = no; then | |
7279 | for ac_lib in wcs w; do | |
7280 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7281 | cat >conftest.$ac_ext <<_ACEOF | |
7282 | /* confdefs.h. */ | |
7283 | _ACEOF | |
7284 | cat confdefs.h >>conftest.$ac_ext | |
7285 | cat >>conftest.$ac_ext <<_ACEOF | |
7286 | /* end confdefs.h. */ | |
7287 | ||
b75a7d8f | 7288 | /* Override any gcc2 internal prototype to avoid an error. */ |
73c04bcf A |
7289 | #ifdef __cplusplus |
7290 | extern "C" | |
7291 | #endif | |
b75a7d8f | 7292 | /* We use char because int might match the return type of a gcc2 |
73c04bcf A |
7293 | builtin and then its argument prototype would still apply. */ |
7294 | char wcscpy (); | |
7295 | int | |
7296 | main () | |
7297 | { | |
7298 | wcscpy (); | |
7299 | ; | |
7300 | return 0; | |
7301 | } | |
7302 | _ACEOF | |
7303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7305 | (eval $ac_link) 2>conftest.er1 | |
7306 | ac_status=$? | |
7307 | grep -v '^ *+' conftest.er1 >conftest.err | |
7308 | rm -f conftest.er1 | |
7309 | cat conftest.err >&5 | |
7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7311 | (exit $ac_status); } && | |
7312 | { ac_try='test -z "$ac_c_werror_flag" | |
7313 | || test ! -s conftest.err' | |
7314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7315 | (eval $ac_try) 2>&5 | |
7316 | ac_status=$? | |
7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7318 | (exit $ac_status); }; } && | |
7319 | { ac_try='test -s conftest$ac_exeext' | |
7320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7321 | (eval $ac_try) 2>&5 | |
7322 | ac_status=$? | |
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7324 | (exit $ac_status); }; }; then | |
7325 | ac_cv_search_wcscpy="-l$ac_lib" | |
b75a7d8f A |
7326 | break |
7327 | else | |
73c04bcf A |
7328 | echo "$as_me: failed program was:" >&5 |
7329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7330 | ||
b75a7d8f | 7331 | fi |
73c04bcf A |
7332 | rm -f conftest.err conftest.$ac_objext \ |
7333 | conftest$ac_exeext conftest.$ac_ext | |
7334 | done | |
b75a7d8f | 7335 | fi |
73c04bcf A |
7336 | LIBS=$ac_func_search_save_LIBS |
7337 | fi | |
7338 | echo "$as_me:$LINENO: result: $ac_cv_search_wcscpy" >&5 | |
7339 | echo "${ECHO_T}$ac_cv_search_wcscpy" >&6 | |
7340 | if test "$ac_cv_search_wcscpy" != no; then | |
b75a7d8f | 7341 | test "$ac_cv_search_wcscpy" = "none required" || LIBS="$ac_cv_search_wcscpy $LIBS" |
73c04bcf | 7342 | |
b75a7d8f | 7343 | fi |
73c04bcf | 7344 | |
b75a7d8f A |
7345 | if test "$ac_cv_search_wcscpy" != no; then |
7346 | U_HAVE_WCSCPY=1 | |
7347 | else | |
7348 | U_HAVE_WCSCPY=0 | |
7349 | fi | |
7350 | fi | |
7351 | ||
7352 | ||
7353 | ||
7354 | ac_default_sizeof_wchar_t=4 | |
73c04bcf A |
7355 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
7356 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
7357 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then | |
7358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b75a7d8f A |
7359 | else |
7360 | if test "$cross_compiling" = yes; then | |
7361 | ac_cv_sizeof_wchar_t=$ac_default_sizeof_wchar_t | |
7362 | else | |
73c04bcf A |
7363 | cat >conftest.$ac_ext <<_ACEOF |
7364 | /* confdefs.h. */ | |
7365 | _ACEOF | |
7366 | cat confdefs.h >>conftest.$ac_ext | |
7367 | cat >>conftest.$ac_ext <<_ACEOF | |
7368 | /* end confdefs.h. */ | |
b75a7d8f A |
7369 | #if STDC_HEADERS |
7370 | #include <stddef.h> | |
7371 | #endif | |
73c04bcf | 7372 | #include <stdlib.h> |
b75a7d8f A |
7373 | #if HAVE_WCHAR_H |
7374 | #include <string.h> | |
7375 | #include <wchar.h> | |
7376 | #endif | |
7377 | #include <stdio.h> | |
7378 | main() | |
7379 | { | |
7380 | FILE *f=fopen("conftestval", "w"); | |
7381 | if (!f) exit(1); | |
7382 | fprintf(f, "%d\n", sizeof(wchar_t)); | |
7383 | exit(0); | |
7384 | } | |
73c04bcf A |
7385 | _ACEOF |
7386 | rm -f conftest$ac_exeext | |
7387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7388 | (eval $ac_link) 2>&5 | |
7389 | ac_status=$? | |
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7391 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7393 | (eval $ac_try) 2>&5 | |
7394 | ac_status=$? | |
7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7396 | (exit $ac_status); }; }; then | |
b75a7d8f A |
7397 | ac_cv_sizeof_wchar_t=`cat conftestval` |
7398 | else | |
73c04bcf A |
7399 | echo "$as_me: program exited with status $ac_status" >&5 |
7400 | echo "$as_me: failed program was:" >&5 | |
7401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7402 | ||
7403 | ( exit $ac_status ) | |
7404 | ac_cv_sizeof_wchar_t=0 | |
b75a7d8f | 7405 | fi |
73c04bcf | 7406 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b75a7d8f | 7407 | fi |
b75a7d8f | 7408 | fi |
73c04bcf A |
7409 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
7410 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
7411 | cat >>confdefs.h <<_ACEOF | |
b75a7d8f | 7412 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
73c04bcf | 7413 | _ACEOF |
b75a7d8f A |
7414 | |
7415 | ||
7416 | U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | |
7417 | if test $U_SIZEOF_WCHAR_T = 0; then | |
7418 | if test $U_HAVE_WCHAR_H=1; then | |
73c04bcf A |
7419 | { { echo "$as_me:$LINENO: error: There is wchar.h but the size of wchar_t is 0" >&5 |
7420 | echo "$as_me: error: There is wchar.h but the size of wchar_t is 0" >&2;} | |
7421 | { (exit 1); exit 1; }; } | |
b75a7d8f A |
7422 | fi |
7423 | fi | |
7424 | ||
7425 | ||
374ca955 A |
7426 | #dnl Echo |
7427 | #ECHO_N=$ac_n | |
7428 | #ECHO_C=$ac_c | |
7429 | #AC_SUBST(ECHO_N) | |
7430 | #AC_SUBST(ECHO_C) | |
b75a7d8f A |
7431 | |
7432 | # Check whether --enable-extras or --disable-extras was given. | |
7433 | if test "${enable_extras+set}" = set; then | |
7434 | enableval="$enable_extras" | |
7435 | case "${enableval}" in | |
7436 | yes) extras=true ;; | |
7437 | no) extras=false ;; | |
73c04bcf A |
7438 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-extras" >&5 |
7439 | echo "$as_me: error: bad value ${enableval} for --enable-extras" >&2;} | |
7440 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
7441 | esac |
7442 | else | |
7443 | extras=true | |
73c04bcf | 7444 | fi; |
b75a7d8f | 7445 | |
b75a7d8f A |
7446 | if test "$extras" = true; then |
7447 | EXTRAS_TRUE= | |
b75a7d8f A |
7448 | else |
7449 | EXTRAS_TRUE='#' | |
b75a7d8f | 7450 | fi |
73c04bcf A |
7451 | # Check whether --enable-icuio or --disable-icuio was given. |
7452 | if test "${enable_icuio+set}" = set; then | |
7453 | enableval="$enable_icuio" | |
b75a7d8f | 7454 | case "${enableval}" in |
374ca955 A |
7455 | yes) icuio=true ;; |
7456 | no) icuio=false ;; | |
73c04bcf A |
7457 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-icuio" >&5 |
7458 | echo "$as_me: error: bad value ${enableval} for --enable-icuio" >&2;} | |
7459 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
7460 | esac |
7461 | else | |
374ca955 | 7462 | icuio=true |
73c04bcf | 7463 | fi; |
b75a7d8f | 7464 | |
374ca955 A |
7465 | if test "$icuio" = true; then |
7466 | ICUIO_TRUE= | |
b75a7d8f | 7467 | else |
374ca955 | 7468 | ICUIO_TRUE='#' |
b75a7d8f A |
7469 | fi |
7470 | ||
7471 | # Check whether --enable-layout or --disable-layout was given. | |
7472 | if test "${enable_layout+set}" = set; then | |
7473 | enableval="$enable_layout" | |
7474 | case "${enableval}" in | |
7475 | yes) layout=true ;; | |
7476 | no) layout=false ;; | |
73c04bcf A |
7477 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-layout" >&5 |
7478 | echo "$as_me: error: bad value ${enableval} for --enable-layout" >&2;} | |
7479 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
7480 | esac |
7481 | else | |
7482 | layout=true | |
73c04bcf | 7483 | fi; |
b75a7d8f | 7484 | |
b75a7d8f A |
7485 | if test "$layout" = true; then |
7486 | LAYOUT_TRUE= | |
b75a7d8f A |
7487 | else |
7488 | LAYOUT_TRUE='#' | |
b75a7d8f A |
7489 | fi |
7490 | ||
73c04bcf | 7491 | |
b75a7d8f A |
7492 | # Check whether --with-data-packaging or --without-data-packaging was given. |
7493 | if test "${with_data_packaging+set}" = set; then | |
7494 | withval="$with_data_packaging" | |
7495 | case "${withval}" in | |
7496 | files|archive|library) datapackaging=$withval ;; | |
7497 | auto) datapackaging=$withval ;; | |
7498 | common) datapackaging=archive ;; | |
7499 | dll) datapackaging=library ;; | |
374ca955 | 7500 | static) datapackaging=static ;; |
73c04bcf A |
7501 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-data-packaging" >&5 |
7502 | echo "$as_me: error: bad value ${withval} for --with-data-packaging" >&2;} | |
7503 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
7504 | esac |
7505 | else | |
7506 | datapackaging= | |
73c04bcf | 7507 | fi; |
b75a7d8f | 7508 | |
73c04bcf A |
7509 | #thesysconfdir=`eval echo $sysconfdir` |
7510 | #AC_SUBST(thesysconfdir) | |
7511 | #thelibdir=`test "x$exec_prefix" = xNONE && exec_prefix="$prefix"; eval echo $libdir` | |
7512 | #AC_SUBST(thelibdir) | |
b75a7d8f A |
7513 | thedatadir=`eval echo $datadir` |
7514 | ||
374ca955 A |
7515 | pkgicudatadir=$datadir |
7516 | thepkgicudatadir=$thedatadir | |
b75a7d8f A |
7517 | |
7518 | ||
7519 | ||
7520 | ||
b75a7d8f A |
7521 | if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then |
7522 | datapackaging=library | |
7523 | fi | |
7524 | ||
7525 | case "$datapackaging" in | |
7526 | files) | |
b75a7d8f A |
7527 | DATA_PACKAGING_MODE=files |
7528 | ;; | |
7529 | archive) | |
b75a7d8f A |
7530 | DATA_PACKAGING_MODE=common |
7531 | ;; | |
7532 | library) | |
b75a7d8f A |
7533 | DATA_PACKAGING_MODE=dll |
7534 | ;; | |
7535 | esac | |
7536 | ||
7537 | ||
73c04bcf A |
7538 | echo "$as_me:$LINENO: checking for a library suffix to use" >&5 |
7539 | echo $ECHO_N "checking for a library suffix to use... $ECHO_C" >&6 | |
b75a7d8f | 7540 | |
b75a7d8f A |
7541 | # Check whether --with-library-suffix or --without-library-suffix was given. |
7542 | if test "${with_library_suffix+set}" = set; then | |
7543 | withval="$with_library_suffix" | |
7544 | ICULIBSUFFIX="${withval}" | |
7545 | else | |
7546 | ICULIBSUFFIX= | |
73c04bcf | 7547 | fi; |
b75a7d8f A |
7548 | msg=$ICULIBSUFFIX |
7549 | if test "$msg" = ""; then | |
7550 | msg=none | |
7551 | fi | |
73c04bcf A |
7552 | echo "$as_me:$LINENO: result: $msg" >&5 |
7553 | echo "${ECHO_T}$msg" >&6 | |
b75a7d8f A |
7554 | |
7555 | if test "$ICULIBSUFFIX" != "" | |
7556 | then | |
7557 | U_HAVE_LIB_SUFFIX=1 | |
7558 | ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'` | |
7559 | else | |
7560 | U_HAVE_LIB_SUFFIX=0 | |
7561 | fi | |
7562 | ||
7563 | ||
7564 | ||
7565 | # Check whether --enable-tests or --disable-tests was given. | |
7566 | if test "${enable_tests+set}" = set; then | |
7567 | enableval="$enable_tests" | |
7568 | case "${enableval}" in | |
7569 | yes) tests=true ;; | |
7570 | no) tests=false ;; | |
73c04bcf A |
7571 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tests" >&5 |
7572 | echo "$as_me: error: bad value ${enableval} for --enable-tests" >&2;} | |
7573 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
7574 | esac |
7575 | else | |
7576 | tests=true | |
73c04bcf | 7577 | fi; |
b75a7d8f | 7578 | |
b75a7d8f A |
7579 | if test "$tests" = true; then |
7580 | TESTS_TRUE= | |
b75a7d8f A |
7581 | else |
7582 | TESTS_TRUE='#' | |
b75a7d8f A |
7583 | fi |
7584 | ||
7585 | # Check whether --enable-samples or --disable-samples was given. | |
7586 | if test "${enable_samples+set}" = set; then | |
7587 | enableval="$enable_samples" | |
7588 | case "${enableval}" in | |
7589 | yes) samples=true ;; | |
7590 | no) samples=false ;; | |
73c04bcf A |
7591 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-samples" >&5 |
7592 | echo "$as_me: error: bad value ${enableval} for --enable-samples" >&2;} | |
7593 | { (exit 1); exit 1; }; } ;; | |
b75a7d8f A |
7594 | esac |
7595 | else | |
7596 | samples=true | |
73c04bcf | 7597 | fi; |
b75a7d8f | 7598 | |
b75a7d8f A |
7599 | if test "$samples" = true; then |
7600 | SAMPLES_TRUE= | |
b75a7d8f A |
7601 | else |
7602 | SAMPLES_TRUE='#' | |
b75a7d8f A |
7603 | fi |
7604 | ||
7605 | ICUDATA_CHAR=$U_ENDIAN_CHAR | |
7606 | ||
7607 | case "${host}" in | |
7608 | *-*-solaris*) platform=U_SOLARIS ;; | |
7609 | *-*-linux*) platform=U_LINUX ;; | |
73c04bcf | 7610 | *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; |
374ca955 A |
7611 | *-*-aix*) platform=U_AIX ;; |
7612 | *-*-hpux*) platform=U_HPUX ;; | |
b75a7d8f A |
7613 | *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; |
7614 | *-*-cygwin*|*-*-mingw*) platform=U_CYGWIN ;; | |
7615 | *-*ibm-openedition*|*-*-os390*) platform=OS390 | |
73c04bcf A |
7616 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
7617 | ICUDATA_CHAR="e" | |
7618 | fi ;; | |
b75a7d8f | 7619 | *-*-os400*) platform=OS400 |
73c04bcf A |
7620 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
7621 | ICUDATA_CHAR="e" | |
7622 | fi ;; | |
b75a7d8f A |
7623 | *-*-nto*) platform=U_QNX ;; |
7624 | *-dec-osf*) platform=U_OSF ;; | |
374ca955 A |
7625 | *-*-beos) platform=U_BEOS ;; |
7626 | *-*-irix*) platform=U_IRIX ;; | |
7627 | *-ncr-*) platform=U_MPRAS ;; | |
b75a7d8f A |
7628 | *) platform=U_UNKNOWN_PLATFORM ;; |
7629 | esac | |
7630 | ||
7631 | ||
7632 | platform_make_fragment_name="$icu_cv_host_frag" | |
7633 | platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" | |
7634 | ||
7635 | ||
7636 | ||
7637 | case "${host}" in | |
7638 | *-*-solaris*) ld_rpath_suf=":" ;; | |
7639 | *-*-linux*) ld_rpath_suf=" " ;; | |
73c04bcf | 7640 | *-*-*bsd*|*-*-dragonfly*) ld_rpath_suf=" " ;; |
b75a7d8f A |
7641 | *-*-aix*) ld_rpath_suf="" ;; |
7642 | *-*-hpux*) ld_rpath_suf=":" ;; | |
7643 | *-*ibm-openedition*|*-*-os390*) ld_rpath_suf="" ;; | |
7644 | *-*-os400*) ld_rpath_suf=" " ;; | |
b75a7d8f A |
7645 | *-*-irix*) ld_rpath_suf=" " ;; |
7646 | *) ld_rpath_suf="" ;; | |
7647 | esac | |
7648 | ||
7649 | ||
7650 | case "${host}" in | |
73c04bcf | 7651 | *-*-hpux*) |
374ca955 | 7652 | if test "${icu_cv_host_frag}" = "mh-hpux-cc"; then |
b75a7d8f A |
7653 | for file in samples/date/date \ |
7654 | samples/cal/cal test/cintltst/cintltst \ | |
7655 | tools/makeconv/makeconv tools/genrb/genrb \ | |
7656 | tools/genrb/derb tools/genccode/genccode \ | |
7657 | tools/gencmn/gencmn tools/gencmn/decmn \ | |
7658 | tools/gencnval/gencnval tools/gennorm/gennorm \ | |
7659 | tools/gennames/gennames tools/gentest/gentest \ | |
7660 | tools/pkgdata/pkgdata tools/genprops/genprops \ | |
374ca955 | 7661 | tools/gencase/gencase \ |
73c04bcf | 7662 | tools/genbidi/genbidi \ |
374ca955 | 7663 | tools/gensprep/gensprep |
b75a7d8f A |
7664 | do |
7665 | if test -f $file.c; then | |
7666 | mv $file.c $file.cpp | |
7667 | else | |
7668 | echo "# $file.c does not exist or is already renamed [warning]" | |
7669 | fi | |
7670 | done | |
7671 | fi | |
7672 | ;; | |
7673 | esac | |
7674 | ||
7675 | if test "${FORCE_LIBS}" != ""; then | |
7676 | echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 | |
7677 | LIBS=${FORCE_LIBS} | |
7678 | fi | |
7679 | ||
7680 | ||
7681 | if test "${AIX_SHLIB}" != ""; then | |
7682 | echo " *** setting AIX_SHLIB (AIX only) to ${AIX_SHLIB}]" 1>&6 | |
7683 | else | |
7684 | AIX_SHLIB=makeC++SharedLib_r | |
7685 | fi | |
7686 | ||
7687 | ||
7688 | ||
7689 | ||
b75a7d8f A |
7690 | |
7691 | if test $ICU_USE_THREADS -ne 0 | |
7692 | then | |
7693 | CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" | |
7694 | CFLAGS="$CFLAGS \$(THREADSCFLAGS)" | |
7695 | CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)" | |
7696 | fi | |
7697 | ||
73c04bcf A |
7698 | 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/dumpce/Makefile tools/tzcode/Makefile test/Makefile test/testdata/Makefile test/testdata/pkgdata.inc test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/thaitest/Makefile test/testmap/Makefile test/letest/Makefile test/threadtest/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/csdet/Makefile samples/layout/Makefile common/unicode/platform.h" |
7699 | cat >confcache <<\_ACEOF | |
b75a7d8f A |
7700 | # This file is a shell script that caches the results of configure |
7701 | # tests run on this system so they can be shared between configure | |
73c04bcf A |
7702 | # scripts and configure runs, see configure's option --config-cache. |
7703 | # It is not useful on other systems. If it contains results you don't | |
7704 | # want to keep, you may remove or edit it. | |
b75a7d8f | 7705 | # |
73c04bcf A |
7706 | # config.status only pays attention to the cache file if you give it |
7707 | # the --recheck option to rerun configure. | |
b75a7d8f | 7708 | # |
73c04bcf A |
7709 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
7710 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7711 | # following values. | |
7712 | ||
7713 | _ACEOF | |
7714 | ||
b75a7d8f A |
7715 | # The following way of writing the cache mishandles newlines in values, |
7716 | # but we know of no workaround that is simple, portable, and efficient. | |
7717 | # So, don't put newlines in cache variables' values. | |
7718 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7719 | # and sets the high bit in the cache file unless we assign to the vars. | |
73c04bcf A |
7720 | { |
7721 | (set) 2>&1 | | |
7722 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7723 | *ac_space=\ *) | |
7724 | # `set' does not quote correctly, so add quotes (double-quote | |
7725 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7726 | sed -n \ | |
7727 | "s/'/'\\\\''/g; | |
7728 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7729 | ;; | |
7730 | *) | |
7731 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7732 | sed -n \ | |
7733 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7734 | ;; | |
7735 | esac; | |
7736 | } | | |
7737 | sed ' | |
7738 | t clear | |
7739 | : clear | |
7740 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7741 | t end | |
7742 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7743 | : end' >>confcache | |
7744 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b75a7d8f | 7745 | if test -w $cache_file; then |
73c04bcf A |
7746 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7747 | cat confcache >$cache_file | |
b75a7d8f A |
7748 | else |
7749 | echo "not updating unwritable cache $cache_file" | |
7750 | fi | |
7751 | fi | |
7752 | rm -f confcache | |
7753 | ||
b75a7d8f A |
7754 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7755 | # Let make expand exec_prefix. | |
7756 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7757 | ||
73c04bcf A |
7758 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7759 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7760 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7761 | # (actually we leave an empty line to preserve line numbers). | |
b75a7d8f | 7762 | if test "x$srcdir" = x.; then |
73c04bcf A |
7763 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7764 | s/:*\$(srcdir):*/:/; | |
7765 | s/:*\${srcdir}:*/:/; | |
7766 | s/:*@srcdir@:*/:/; | |
7767 | s/^\([^=]*=[ ]*\):*/\1/; | |
7768 | s/:*$//; | |
7769 | s/^[^=]*=[ ]*$//; | |
7770 | }' | |
b75a7d8f A |
7771 | fi |
7772 | ||
b75a7d8f A |
7773 | DEFS=-DHAVE_CONFIG_H |
7774 | ||
73c04bcf A |
7775 | ac_libobjs= |
7776 | ac_ltlibobjs= | |
7777 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7778 | # 1. Remove the extension, and $U if already installed. | |
7779 | ac_i=`echo "$ac_i" | | |
7780 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7781 | # 2. Add them. | |
7782 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7783 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7784 | done | |
7785 | LIBOBJS=$ac_libobjs | |
b75a7d8f | 7786 | |
73c04bcf A |
7787 | LTLIBOBJS=$ac_ltlibobjs |
7788 | ||
7789 | ||
7790 | ||
7791 | : ${CONFIG_STATUS=./config.status} | |
7792 | ac_clean_files_save=$ac_clean_files | |
7793 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7794 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7795 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7796 | cat >$CONFIG_STATUS <<_ACEOF | |
7797 | #! $SHELL | |
7798 | # Generated by $as_me. | |
b75a7d8f | 7799 | # Run this file to recreate the current configuration. |
b75a7d8f | 7800 | # Compiler output produced by configure, useful for debugging |
73c04bcf | 7801 | # configure, is in config.log if it exists. |
b75a7d8f | 7802 | |
73c04bcf A |
7803 | debug=false |
7804 | ac_cs_recheck=false | |
7805 | ac_cs_silent=false | |
7806 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7807 | _ACEOF | |
7808 | ||
7809 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7810 | ## --------------------- ## | |
7811 | ## M4sh Initialization. ## | |
7812 | ## --------------------- ## | |
7813 | ||
7814 | # Be Bourne compatible | |
7815 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7816 | emulate sh | |
7817 | NULLCMD=: | |
7818 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7819 | # is contrary to our usage. Disable this feature. | |
7820 | alias -g '${1+"$@"}'='"$@"' | |
7821 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7822 | set -o posix | |
7823 | fi | |
7824 | DUALCASE=1; export DUALCASE # for MKS sh | |
7825 | ||
7826 | # Support unset when possible. | |
7827 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7828 | as_unset=unset | |
7829 | else | |
7830 | as_unset=false | |
7831 | fi | |
7832 | ||
7833 | ||
7834 | # Work around bugs in pre-3.0 UWIN ksh. | |
7835 | $as_unset ENV MAIL MAILPATH | |
7836 | PS1='$ ' | |
7837 | PS2='> ' | |
7838 | PS4='+ ' | |
7839 | ||
7840 | # NLS nuisances. | |
7841 | for as_var in \ | |
7842 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7843 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7844 | LC_TELEPHONE LC_TIME | |
b75a7d8f | 7845 | do |
73c04bcf A |
7846 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
7847 | eval $as_var=C; export $as_var | |
7848 | else | |
7849 | $as_unset $as_var | |
7850 | fi | |
b75a7d8f A |
7851 | done |
7852 | ||
73c04bcf A |
7853 | # Required to use basename. |
7854 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7855 | as_expr=expr | |
7856 | else | |
7857 | as_expr=false | |
7858 | fi | |
b75a7d8f | 7859 | |
73c04bcf A |
7860 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
7861 | as_basename=basename | |
7862 | else | |
7863 | as_basename=false | |
7864 | fi | |
7865 | ||
7866 | ||
7867 | # Name of the executable. | |
7868 | as_me=`$as_basename "$0" || | |
7869 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7870 | X"$0" : 'X\(//\)$' \| \ | |
7871 | X"$0" : 'X\(/\)$' \| \ | |
7872 | . : '\(.\)' 2>/dev/null || | |
7873 | echo X/"$0" | | |
7874 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7875 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7876 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7877 | s/.*/./; q'` | |
7878 | ||
7879 | ||
7880 | # PATH needs CR, and LINENO needs CR and PATH. | |
7881 | # Avoid depending upon Character Ranges. | |
7882 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7883 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7884 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7885 | as_cr_digits='0123456789' | |
7886 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7887 | ||
7888 | # The user is always right. | |
7889 | if test "${PATH_SEPARATOR+set}" != set; then | |
7890 | echo "#! /bin/sh" >conf$$.sh | |
7891 | echo "exit 0" >>conf$$.sh | |
7892 | chmod +x conf$$.sh | |
7893 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7894 | PATH_SEPARATOR=';' | |
b75a7d8f | 7895 | else |
73c04bcf | 7896 | PATH_SEPARATOR=: |
b75a7d8f | 7897 | fi |
73c04bcf A |
7898 | rm -f conf$$.sh |
7899 | fi | |
7900 | ||
7901 | ||
7902 | as_lineno_1=$LINENO | |
7903 | as_lineno_2=$LINENO | |
7904 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7905 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7906 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7907 | # Find who we are. Look in the path if we contain no path at all | |
7908 | # relative or not. | |
7909 | case $0 in | |
7910 | *[\\/]* ) as_myself=$0 ;; | |
7911 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7912 | for as_dir in $PATH | |
7913 | do | |
7914 | IFS=$as_save_IFS | |
7915 | test -z "$as_dir" && as_dir=. | |
7916 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7917 | done | |
7918 | ||
7919 | ;; | |
7920 | esac | |
7921 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7922 | # in which case we are not to be found in the path. | |
7923 | if test "x$as_myself" = x; then | |
7924 | as_myself=$0 | |
7925 | fi | |
7926 | if test ! -f "$as_myself"; then | |
7927 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7928 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7929 | { (exit 1); exit 1; }; } | |
b75a7d8f | 7930 | fi |
73c04bcf A |
7931 | case $CONFIG_SHELL in |
7932 | '') | |
7933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7934 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7935 | do | |
7936 | IFS=$as_save_IFS | |
7937 | test -z "$as_dir" && as_dir=. | |
7938 | for as_base in sh bash ksh sh5; do | |
7939 | case $as_dir in | |
7940 | /*) | |
7941 | if ("$as_dir/$as_base" -c ' | |
7942 | as_lineno_1=$LINENO | |
7943 | as_lineno_2=$LINENO | |
7944 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7945 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7946 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7947 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7948 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7949 | CONFIG_SHELL=$as_dir/$as_base | |
7950 | export CONFIG_SHELL | |
7951 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7952 | fi;; | |
7953 | esac | |
7954 | done | |
b75a7d8f | 7955 | done |
73c04bcf | 7956 | ;; |
b75a7d8f A |
7957 | esac |
7958 | ||
73c04bcf A |
7959 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
7960 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7961 | # line-number line before each line; the second 'sed' does the real | |
7962 | # work. The second script uses 'N' to pair each line-number line | |
7963 | # with the numbered line, and appends trailing '-' during | |
7964 | # substitution so that $LINENO is not a special case at line end. | |
7965 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7966 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7967 | sed '=' <$as_myself | | |
7968 | sed ' | |
7969 | N | |
7970 | s,$,-, | |
7971 | : loop | |
7972 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7973 | t loop | |
7974 | s,-$,, | |
7975 | s,^['$as_cr_digits']*\n,, | |
7976 | ' >$as_me.lineno && | |
7977 | chmod +x $as_me.lineno || | |
7978 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7979 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7980 | { (exit 1); exit 1; }; } | |
7981 | ||
7982 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7983 | # (the dirname of $[0] is not the place where we might find the | |
7984 | # original and so on. Autoconf is especially sensible to this). | |
7985 | . ./$as_me.lineno | |
7986 | # Exit status is that of the last command. | |
7987 | exit | |
7988 | } | |
7989 | ||
b75a7d8f | 7990 | |
73c04bcf A |
7991 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
7992 | *c*,-n*) ECHO_N= ECHO_C=' | |
7993 | ' ECHO_T=' ' ;; | |
7994 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7995 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7996 | esac | |
7997 | ||
7998 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7999 | as_expr=expr | |
8000 | else | |
8001 | as_expr=false | |
8002 | fi | |
8003 | ||
8004 | rm -f conf$$ conf$$.exe conf$$.file | |
8005 | echo >conf$$.file | |
8006 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8007 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8008 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8009 | if test -f conf$$.exe; then | |
8010 | # Don't use ln at all; we don't have any links | |
8011 | as_ln_s='cp -p' | |
b75a7d8f | 8012 | else |
73c04bcf | 8013 | as_ln_s='ln -s' |
b75a7d8f | 8014 | fi |
73c04bcf A |
8015 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8016 | as_ln_s=ln | |
8017 | else | |
8018 | as_ln_s='cp -p' | |
8019 | fi | |
8020 | rm -f conf$$ conf$$.exe conf$$.file | |
b75a7d8f | 8021 | |
73c04bcf A |
8022 | if mkdir -p . 2>/dev/null; then |
8023 | as_mkdir_p=: | |
8024 | else | |
8025 | test -d ./-p && rmdir ./-p | |
8026 | as_mkdir_p=false | |
8027 | fi | |
8028 | ||
8029 | as_executable_p="test -f" | |
8030 | ||
8031 | # Sed expression to map a string onto a valid CPP name. | |
8032 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8033 | ||
8034 | # Sed expression to map a string onto a valid variable name. | |
8035 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8036 | ||
8037 | ||
8038 | # IFS | |
8039 | # We need space, tab and new line, in precisely that order. | |
8040 | as_nl=' | |
8041 | ' | |
8042 | IFS=" $as_nl" | |
8043 | ||
8044 | # CDPATH. | |
8045 | $as_unset CDPATH | |
8046 | ||
8047 | exec 6>&1 | |
8048 | ||
8049 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
8050 | # report actual input values of CONFIG_FILES etc. instead of their | |
8051 | # values after options handling. Logging --version etc. is OK. | |
8052 | exec 5>>config.log | |
8053 | { | |
8054 | echo | |
8055 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8056 | ## Running $as_me. ## | |
8057 | _ASBOX | |
8058 | } >&5 | |
8059 | cat >&5 <<_CSEOF | |
8060 | ||
8061 | This file was extended by $as_me, which was | |
8062 | generated by GNU Autoconf 2.59. Invocation command line was | |
8063 | ||
8064 | CONFIG_FILES = $CONFIG_FILES | |
8065 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8066 | CONFIG_LINKS = $CONFIG_LINKS | |
8067 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8068 | $ $0 $@ | |
8069 | ||
8070 | _CSEOF | |
8071 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
8072 | echo >&5 | |
8073 | _ACEOF | |
8074 | ||
8075 | # Files that config.status was made for. | |
8076 | if test -n "$ac_config_files"; then | |
8077 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
8078 | fi | |
8079 | ||
8080 | if test -n "$ac_config_headers"; then | |
8081 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
8082 | fi | |
8083 | ||
8084 | if test -n "$ac_config_links"; then | |
8085 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
8086 | fi | |
8087 | ||
8088 | if test -n "$ac_config_commands"; then | |
8089 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8090 | fi | |
8091 | ||
8092 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8093 | ||
8094 | ac_cs_usage="\ | |
8095 | \`$as_me' instantiates files from templates according to the | |
8096 | current configuration. | |
8097 | ||
8098 | Usage: $0 [OPTIONS] [FILE]... | |
8099 | ||
8100 | -h, --help print this help, then exit | |
8101 | -V, --version print version number, then exit | |
8102 | -q, --quiet do not print progress messages | |
8103 | -d, --debug don't remove temporary files | |
8104 | --recheck update $as_me by reconfiguring in the same conditions | |
8105 | --file=FILE[:TEMPLATE] | |
8106 | instantiate the configuration file FILE | |
8107 | --header=FILE[:TEMPLATE] | |
8108 | instantiate the configuration header FILE | |
8109 | ||
8110 | Configuration files: | |
8111 | $config_files | |
8112 | ||
8113 | Configuration headers: | |
8114 | $config_headers | |
8115 | ||
8116 | Report bugs to <bug-autoconf@gnu.org>." | |
8117 | _ACEOF | |
8118 | ||
8119 | cat >>$CONFIG_STATUS <<_ACEOF | |
8120 | ac_cs_version="\\ | |
8121 | config.status | |
8122 | configured by $0, generated by GNU Autoconf 2.59, | |
8123 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8124 | ||
8125 | Copyright (C) 2003 Free Software Foundation, Inc. | |
8126 | This config.status script is free software; the Free Software Foundation | |
8127 | gives unlimited permission to copy, distribute and modify it." | |
8128 | srcdir=$srcdir | |
8129 | INSTALL="$INSTALL" | |
8130 | _ACEOF | |
8131 | ||
8132 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8133 | # If no file are specified by the user, then we need to provide default | |
8134 | # value. By we need to know if files were specified by the user. | |
8135 | ac_need_defaults=: | |
8136 | while test $# != 0 | |
8137 | do | |
8138 | case $1 in | |
8139 | --*=*) | |
8140 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8141 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8142 | ac_shift=: | |
8143 | ;; | |
8144 | -*) | |
8145 | ac_option=$1 | |
8146 | ac_optarg=$2 | |
8147 | ac_shift=shift | |
8148 | ;; | |
8149 | *) # This is not an option, so the user has probably given explicit | |
8150 | # arguments. | |
8151 | ac_option=$1 | |
8152 | ac_need_defaults=false;; | |
8153 | esac | |
8154 | ||
8155 | case $ac_option in | |
8156 | # Handling of the options. | |
8157 | _ACEOF | |
8158 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8159 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8160 | ac_cs_recheck=: ;; | |
8161 | --version | --vers* | -V ) | |
8162 | echo "$ac_cs_version"; exit 0 ;; | |
8163 | --he | --h) | |
8164 | # Conflict between --help and --header | |
8165 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8166 | Try \`$0 --help' for more information." >&5 | |
8167 | echo "$as_me: error: ambiguous option: $1 | |
8168 | Try \`$0 --help' for more information." >&2;} | |
8169 | { (exit 1); exit 1; }; };; | |
8170 | --help | --hel | -h ) | |
8171 | echo "$ac_cs_usage"; exit 0 ;; | |
8172 | --debug | --d* | -d ) | |
8173 | debug=: ;; | |
8174 | --file | --fil | --fi | --f ) | |
8175 | $ac_shift | |
8176 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8177 | ac_need_defaults=false;; | |
8178 | --header | --heade | --head | --hea ) | |
8179 | $ac_shift | |
8180 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8181 | ac_need_defaults=false;; | |
8182 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8183 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8184 | ac_cs_silent=: ;; | |
8185 | ||
8186 | # This is an error. | |
8187 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8188 | Try \`$0 --help' for more information." >&5 | |
8189 | echo "$as_me: error: unrecognized option: $1 | |
8190 | Try \`$0 --help' for more information." >&2;} | |
8191 | { (exit 1); exit 1; }; } ;; | |
8192 | ||
8193 | *) ac_config_targets="$ac_config_targets $1" ;; | |
8194 | ||
8195 | esac | |
8196 | shift | |
8197 | done | |
8198 | ||
8199 | ac_configure_extra_args= | |
8200 | ||
8201 | if $ac_cs_silent; then | |
8202 | exec 6>/dev/null | |
8203 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8204 | fi | |
8205 | ||
8206 | _ACEOF | |
8207 | cat >>$CONFIG_STATUS <<_ACEOF | |
8208 | if \$ac_cs_recheck; then | |
8209 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
8210 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
8211 | fi | |
8212 | ||
8213 | _ACEOF | |
8214 | ||
8215 | ||
8216 | ||
8217 | ||
8218 | ||
8219 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8220 | for ac_config_target in $ac_config_targets | |
8221 | do | |
8222 | case "$ac_config_target" in | |
8223 | # Handling of arguments. | |
8224 | "icudefs.mk" ) CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; | |
8225 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8226 | "data/icupkg.inc" ) CONFIG_FILES="$CONFIG_FILES data/icupkg.inc" ;; | |
8227 | "config/Makefile.inc" ) CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; | |
8228 | "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; | |
8229 | "stubdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; | |
8230 | "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
8231 | "i18n/Makefile" ) CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; | |
8232 | "layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; | |
8233 | "layoutex/Makefile" ) CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; | |
8234 | "io/Makefile" ) CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; | |
8235 | "extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; | |
8236 | "extra/uconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; | |
8237 | "extra/scrptrun/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; | |
8238 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
8239 | "tools/ctestfw/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; | |
8240 | "tools/toolutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; | |
8241 | "tools/makeconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; | |
8242 | "tools/genrb/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; | |
8243 | "tools/genuca/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genuca/Makefile" ;; | |
8244 | "tools/genccode/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; | |
8245 | "tools/gencmn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; | |
8246 | "tools/gencnval/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; | |
8247 | "tools/genctd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genctd/Makefile" ;; | |
8248 | "tools/gennames/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gennames/Makefile" ;; | |
8249 | "tools/gentest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; | |
8250 | "tools/gennorm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gennorm/Makefile" ;; | |
8251 | "tools/genprops/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genprops/Makefile" ;; | |
8252 | "tools/gencase/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gencase/Makefile" ;; | |
8253 | "tools/genbidi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genbidi/Makefile" ;; | |
8254 | "tools/genpname/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genpname/Makefile" ;; | |
8255 | "tools/genbrk/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; | |
8256 | "tools/gensprep/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; | |
8257 | "tools/icupkg/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; | |
8258 | "tools/icuswap/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; | |
8259 | "tools/pkgdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; | |
8260 | "tools/dumpce/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/dumpce/Makefile" ;; | |
8261 | "tools/tzcode/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; | |
8262 | "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
8263 | "test/testdata/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; | |
8264 | "test/testdata/pkgdata.inc" ) CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdata.inc" ;; | |
8265 | "test/hdrtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; | |
8266 | "test/intltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; | |
8267 | "test/cintltst/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; | |
8268 | "test/iotest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; | |
8269 | "test/thaitest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/thaitest/Makefile" ;; | |
8270 | "test/testmap/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/testmap/Makefile" ;; | |
8271 | "test/letest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; | |
8272 | "test/threadtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/threadtest/Makefile" ;; | |
8273 | "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; | |
8274 | "samples/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; | |
8275 | "samples/cal/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; | |
8276 | "samples/csdet/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/csdet/Makefile" ;; | |
8277 | "samples/layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; | |
8278 | "common/unicode/platform.h" ) CONFIG_FILES="$CONFIG_FILES common/unicode/platform.h" ;; | |
8279 | "common/icucfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS common/icucfg.h" ;; | |
8280 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
8281 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8282 | { (exit 1); exit 1; }; };; | |
b75a7d8f | 8283 | esac |
73c04bcf A |
8284 | done |
8285 | ||
8286 | # If the user did not use the arguments to specify the items to instantiate, | |
8287 | # then the envvar interface is used. Set only those that are not. | |
8288 | # We use the long form for the default assignment because of an extremely | |
8289 | # bizarre bug on SunOS 4.1.3. | |
8290 | if $ac_need_defaults; then | |
8291 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8292 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8293 | fi | |
8294 | ||
8295 | # Have a temporary directory for convenience. Make it in the build tree | |
8296 | # simply because there is no reason to put it here, and in addition, | |
8297 | # creating and moving files from /tmp can sometimes cause problems. | |
8298 | # Create a temporary directory, and hook for its removal unless debugging. | |
8299 | $debug || | |
8300 | { | |
8301 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8302 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
8303 | } | |
8304 | ||
8305 | # Create a (secure) tmp directory for tmp files. | |
8306 | ||
8307 | { | |
8308 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
8309 | test -n "$tmp" && test -d "$tmp" | |
8310 | } || | |
8311 | { | |
8312 | tmp=./confstat$$-$RANDOM | |
8313 | (umask 077 && mkdir $tmp) | |
8314 | } || | |
8315 | { | |
8316 | echo "$me: cannot create a temporary directory in ." >&2 | |
8317 | { (exit 1); exit 1; } | |
8318 | } | |
8319 | ||
8320 | _ACEOF | |
8321 | ||
8322 | cat >>$CONFIG_STATUS <<_ACEOF | |
b75a7d8f | 8323 | |
73c04bcf A |
8324 | # |
8325 | # CONFIG_FILES section. | |
8326 | # | |
8327 | ||
8328 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8329 | # This happens for instance when ./config.status config.h | |
8330 | if test -n "\$CONFIG_FILES"; then | |
8331 | # Protect against being on the right side of a sed subst in config.status. | |
8332 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8333 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8334 | s,@SHELL@,$SHELL,;t t | |
8335 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8336 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8337 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8338 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8339 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8340 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8341 | s,@exec_prefix@,$exec_prefix,;t t | |
8342 | s,@prefix@,$prefix,;t t | |
8343 | s,@program_transform_name@,$program_transform_name,;t t | |
8344 | s,@bindir@,$bindir,;t t | |
8345 | s,@sbindir@,$sbindir,;t t | |
8346 | s,@libexecdir@,$libexecdir,;t t | |
8347 | s,@datadir@,$datadir,;t t | |
8348 | s,@sysconfdir@,$sysconfdir,;t t | |
8349 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8350 | s,@localstatedir@,$localstatedir,;t t | |
8351 | s,@libdir@,$libdir,;t t | |
8352 | s,@includedir@,$includedir,;t t | |
8353 | s,@oldincludedir@,$oldincludedir,;t t | |
8354 | s,@infodir@,$infodir,;t t | |
8355 | s,@mandir@,$mandir,;t t | |
8356 | s,@build_alias@,$build_alias,;t t | |
8357 | s,@host_alias@,$host_alias,;t t | |
8358 | s,@target_alias@,$target_alias,;t t | |
8359 | s,@DEFS@,$DEFS,;t t | |
8360 | s,@ECHO_C@,$ECHO_C,;t t | |
8361 | s,@ECHO_N@,$ECHO_N,;t t | |
8362 | s,@ECHO_T@,$ECHO_T,;t t | |
8363 | s,@LIBS@,$LIBS,;t t | |
8364 | s,@PACKAGE@,$PACKAGE,;t t | |
8365 | s,@VERSION@,$VERSION,;t t | |
8366 | s,@LIB_VERSION@,$LIB_VERSION,;t t | |
8367 | s,@LIB_VERSION_MAJOR@,$LIB_VERSION_MAJOR,;t t | |
8368 | s,@UNICODE_VERSION@,$UNICODE_VERSION,;t t | |
8369 | s,@build@,$build,;t t | |
8370 | s,@build_cpu@,$build_cpu,;t t | |
8371 | s,@build_vendor@,$build_vendor,;t t | |
8372 | s,@build_os@,$build_os,;t t | |
8373 | s,@host@,$host,;t t | |
8374 | s,@host_cpu@,$host_cpu,;t t | |
8375 | s,@host_vendor@,$host_vendor,;t t | |
8376 | s,@host_os@,$host_os,;t t | |
8377 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
8378 | s,@CC@,$CC,;t t | |
8379 | s,@CFLAGS@,$CFLAGS,;t t | |
8380 | s,@LDFLAGS@,$LDFLAGS,;t t | |
8381 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
8382 | s,@EXEEXT@,$EXEEXT,;t t | |
8383 | s,@OBJEXT@,$OBJEXT,;t t | |
8384 | s,@CXX@,$CXX,;t t | |
8385 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
8386 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
8387 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8388 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8389 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
8390 | s,@U_MAKE@,$U_MAKE,;t t | |
8391 | s,@DOXYGEN@,$DOXYGEN,;t t | |
8392 | s,@ARFLAGS@,$ARFLAGS,;t t | |
8393 | s,@COMPILE_LINK_ENVVAR@,$COMPILE_LINK_ENVVAR,;t t | |
8394 | s,@LIB_M@,$LIB_M,;t t | |
8395 | s,@ENABLE_SHARED@,$ENABLE_SHARED,;t t | |
8396 | s,@ENABLE_STATIC@,$ENABLE_STATIC,;t t | |
8397 | s,@ENABLE_DEBUG@,$ENABLE_DEBUG,;t t | |
8398 | s,@ENABLE_RELEASE@,$ENABLE_RELEASE,;t t | |
8399 | s,@U_DEFAULT_SHOW_DRAFT@,$U_DEFAULT_SHOW_DRAFT,;t t | |
8400 | s,@RANLIB@,$RANLIB,;t t | |
8401 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8402 | s,@AR@,$AR,;t t | |
8403 | s,@U_DISABLE_RENAMING@,$U_DISABLE_RENAMING,;t t | |
8404 | s,@U_ENABLE_TRACING@,$U_ENABLE_TRACING,;t t | |
8405 | s,@ENABLE_RPATH@,$ENABLE_RPATH,;t t | |
8406 | s,@U_INLINE@,$U_INLINE,;t t | |
8407 | s,@THREADS_TRUE@,$THREADS_TRUE,;t t | |
8408 | s,@ICU_USE_THREADS@,$ICU_USE_THREADS,;t t | |
8409 | s,@HAVE_MMAP@,$HAVE_MMAP,;t t | |
8410 | s,@GENCCODE_ASSEMBLY@,$GENCCODE_ASSEMBLY,;t t | |
8411 | s,@CPP@,$CPP,;t t | |
8412 | s,@EGREP@,$EGREP,;t t | |
8413 | s,@U_HAVE_INTTYPES_H@,$U_HAVE_INTTYPES_H,;t t | |
8414 | s,@U_IOSTREAM_SOURCE@,$U_IOSTREAM_SOURCE,;t t | |
8415 | s,@U_IS_BIG_ENDIAN@,$U_IS_BIG_ENDIAN,;t t | |
8416 | s,@U_HAVE_NL_LANGINFO@,$U_HAVE_NL_LANGINFO,;t t | |
8417 | s,@U_HAVE_NL_LANGINFO_CODESET@,$U_HAVE_NL_LANGINFO_CODESET,;t t | |
8418 | s,@U_NL_LANGINFO_CODESET@,$U_NL_LANGINFO_CODESET,;t t | |
8419 | s,@U_HAVE_NAMESPACE@,$U_HAVE_NAMESPACE,;t t | |
8420 | s,@U_OVERRIDE_CXX_ALLOCATION@,$U_OVERRIDE_CXX_ALLOCATION,;t t | |
8421 | s,@U_HAVE_PLACEMENT_NEW@,$U_HAVE_PLACEMENT_NEW,;t t | |
8422 | s,@U_HAVE_POPEN@,$U_HAVE_POPEN,;t t | |
8423 | s,@U_HAVE_TZSET@,$U_HAVE_TZSET,;t t | |
8424 | s,@U_TZSET@,$U_TZSET,;t t | |
8425 | s,@U_HAVE_TZNAME@,$U_HAVE_TZNAME,;t t | |
8426 | s,@U_TZNAME@,$U_TZNAME,;t t | |
8427 | s,@U_HAVE_TIMEZONE@,$U_HAVE_TIMEZONE,;t t | |
8428 | s,@U_TIMEZONE@,$U_TIMEZONE,;t t | |
8429 | s,@HAVE_INT8_T@,$HAVE_INT8_T,;t t | |
8430 | s,@HAVE_UINT8_T@,$HAVE_UINT8_T,;t t | |
8431 | s,@HAVE_INT16_T@,$HAVE_INT16_T,;t t | |
8432 | s,@HAVE_UINT16_T@,$HAVE_UINT16_T,;t t | |
8433 | s,@HAVE_INT32_T@,$HAVE_INT32_T,;t t | |
8434 | s,@HAVE_UINT32_T@,$HAVE_UINT32_T,;t t | |
8435 | s,@HAVE_INT64_T@,$HAVE_INT64_T,;t t | |
8436 | s,@HAVE_UINT64_T@,$HAVE_UINT64_T,;t t | |
8437 | s,@U_HAVE_WCHAR_H@,$U_HAVE_WCHAR_H,;t t | |
8438 | s,@U_HAVE_WCSCPY@,$U_HAVE_WCSCPY,;t t | |
8439 | s,@U_SIZEOF_WCHAR_T@,$U_SIZEOF_WCHAR_T,;t t | |
8440 | s,@EXTRAS_TRUE@,$EXTRAS_TRUE,;t t | |
8441 | s,@ICUIO_TRUE@,$ICUIO_TRUE,;t t | |
8442 | s,@LAYOUT_TRUE@,$LAYOUT_TRUE,;t t | |
8443 | s,@thedatadir@,$thedatadir,;t t | |
8444 | s,@pkgicudatadir@,$pkgicudatadir,;t t | |
8445 | s,@thepkgicudatadir@,$thepkgicudatadir,;t t | |
8446 | s,@DATA_PACKAGING_MODE@,$DATA_PACKAGING_MODE,;t t | |
8447 | s,@ICULIBSUFFIX@,$ICULIBSUFFIX,;t t | |
8448 | s,@U_HAVE_LIB_SUFFIX@,$U_HAVE_LIB_SUFFIX,;t t | |
8449 | s,@ICULIBSUFFIXCNAME@,$ICULIBSUFFIXCNAME,;t t | |
8450 | s,@TESTS_TRUE@,$TESTS_TRUE,;t t | |
8451 | s,@SAMPLES_TRUE@,$SAMPLES_TRUE,;t t | |
8452 | s,@ICUDATA_CHAR@,$ICUDATA_CHAR,;t t | |
8453 | s,@platform@,$platform,;t t | |
8454 | s,@platform_make_fragment_name@,$platform_make_fragment_name,;t t | |
8455 | s,@platform_make_fragment@,$platform_make_fragment,;t t | |
8456 | s,@ld_rpath_suf@,$ld_rpath_suf,;t t | |
8457 | s,@AIX_SHLIB@,$AIX_SHLIB,;t t | |
8458 | s,@LIBOBJS@,$LIBOBJS,;t t | |
8459 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
8460 | CEOF | |
8461 | ||
8462 | _ACEOF | |
8463 | ||
8464 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8465 | # Split the substitutions into bite-sized pieces for seds with | |
8466 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8467 | ac_max_sed_lines=48 | |
8468 | ac_sed_frag=1 # Number of current file. | |
8469 | ac_beg=1 # First line for current file. | |
8470 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8471 | ac_more_lines=: | |
8472 | ac_sed_cmds= | |
8473 | while $ac_more_lines; do | |
8474 | if test $ac_beg -gt 1; then | |
8475 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8476 | else | |
8477 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8478 | fi | |
8479 | if test ! -s $tmp/subs.frag; then | |
8480 | ac_more_lines=false | |
8481 | else | |
8482 | # The purpose of the label and of the branching condition is to | |
8483 | # speed up the sed processing (if there are no `@' at all, there | |
8484 | # is no need to browse any of the substitutions). | |
8485 | # These are the two extra sed commands mentioned above. | |
8486 | (echo ':t | |
8487 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8488 | if test -z "$ac_sed_cmds"; then | |
8489 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8490 | else | |
8491 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8492 | fi | |
8493 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8494 | ac_beg=$ac_end | |
8495 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
8496 | fi | |
8497 | done | |
8498 | if test -z "$ac_sed_cmds"; then | |
8499 | ac_sed_cmds=cat | |
8500 | fi | |
8501 | fi # test -n "$CONFIG_FILES" | |
8502 | ||
8503 | _ACEOF | |
8504 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8505 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
8506 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8507 | case $ac_file in | |
8508 | - | *:- | *:-:* ) # input from stdin | |
8509 | cat >$tmp/stdin | |
8510 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8511 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8512 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8513 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8514 | * ) ac_file_in=$ac_file.in ;; | |
b75a7d8f A |
8515 | esac |
8516 | ||
73c04bcf A |
8517 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8518 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8519 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8520 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8521 | X"$ac_file" : 'X\(//\)$' \| \ | |
8522 | X"$ac_file" : 'X\(/\)' \| \ | |
8523 | . : '\(.\)' 2>/dev/null || | |
8524 | echo X"$ac_file" | | |
8525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8526 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8527 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8528 | /^X\(\/\).*/{ s//\1/; q; } | |
8529 | s/.*/./; q'` | |
8530 | { if $as_mkdir_p; then | |
8531 | mkdir -p "$ac_dir" | |
8532 | else | |
8533 | as_dir="$ac_dir" | |
8534 | as_dirs= | |
8535 | while test ! -d "$as_dir"; do | |
8536 | as_dirs="$as_dir $as_dirs" | |
8537 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8538 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8539 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8540 | X"$as_dir" : 'X\(//\)$' \| \ | |
8541 | X"$as_dir" : 'X\(/\)' \| \ | |
8542 | . : '\(.\)' 2>/dev/null || | |
8543 | echo X"$as_dir" | | |
8544 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8545 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8546 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8547 | /^X\(\/\).*/{ s//\1/; q; } | |
8548 | s/.*/./; q'` | |
8549 | done | |
8550 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8551 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8552 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8553 | { (exit 1); exit 1; }; }; } | |
8554 | ||
8555 | ac_builddir=. | |
8556 | ||
8557 | if test "$ac_dir" != .; then | |
8558 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8559 | # A "../" for each directory in $ac_dir_suffix. | |
8560 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8561 | else | |
8562 | ac_dir_suffix= ac_top_builddir= | |
8563 | fi | |
8564 | ||
8565 | case $srcdir in | |
8566 | .) # No --srcdir option. We are building in place. | |
8567 | ac_srcdir=. | |
8568 | if test -z "$ac_top_builddir"; then | |
8569 | ac_top_srcdir=. | |
8570 | else | |
8571 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8572 | fi ;; | |
8573 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8574 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8575 | ac_top_srcdir=$srcdir ;; | |
8576 | *) # Relative path. | |
8577 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8578 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8579 | esac | |
8580 | ||
8581 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8582 | # the directories may not exist. | |
8583 | case `pwd` in | |
8584 | .) ac_abs_builddir="$ac_dir";; | |
8585 | *) | |
8586 | case "$ac_dir" in | |
8587 | .) ac_abs_builddir=`pwd`;; | |
8588 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8589 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8590 | esac;; | |
8591 | esac | |
8592 | case $ac_abs_builddir in | |
8593 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8594 | *) | |
8595 | case ${ac_top_builddir}. in | |
8596 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8597 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8598 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8599 | esac;; | |
8600 | esac | |
8601 | case $ac_abs_builddir in | |
8602 | .) ac_abs_srcdir=$ac_srcdir;; | |
8603 | *) | |
8604 | case $ac_srcdir in | |
8605 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8606 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8607 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8608 | esac;; | |
8609 | esac | |
8610 | case $ac_abs_builddir in | |
8611 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8612 | *) | |
8613 | case $ac_top_srcdir in | |
8614 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8615 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8616 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8617 | esac;; | |
8618 | esac | |
8619 | ||
8620 | ||
8621 | case $INSTALL in | |
8622 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8623 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
b75a7d8f A |
8624 | esac |
8625 | ||
73c04bcf A |
8626 | if test x"$ac_file" != x-; then |
8627 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8628 | echo "$as_me: creating $ac_file" >&6;} | |
8629 | rm -f "$ac_file" | |
8630 | fi | |
8631 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8632 | # use $as_me), people would be surprised to read: | |
8633 | # /* config.h. Generated by config.status. */ | |
8634 | if test x"$ac_file" = x-; then | |
8635 | configure_input= | |
8636 | else | |
8637 | configure_input="$ac_file. " | |
8638 | fi | |
8639 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8640 | sed 's,.*/,,'` by configure." | |
8641 | ||
8642 | # First look for the input files in the build tree, otherwise in the | |
8643 | # src tree. | |
8644 | ac_file_inputs=`IFS=: | |
8645 | for f in $ac_file_in; do | |
8646 | case $f in | |
8647 | -) echo $tmp/stdin ;; | |
8648 | [\\/$]*) | |
8649 | # Absolute (can't be DOS-style, as IFS=:) | |
8650 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8651 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8652 | { (exit 1); exit 1; }; } | |
8653 | echo "$f";; | |
8654 | *) # Relative | |
8655 | if test -f "$f"; then | |
8656 | # Build tree | |
8657 | echo "$f" | |
8658 | elif test -f "$srcdir/$f"; then | |
8659 | # Source tree | |
8660 | echo "$srcdir/$f" | |
8661 | else | |
8662 | # /dev/null tree | |
8663 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8664 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8665 | { (exit 1); exit 1; }; } | |
8666 | fi;; | |
8667 | esac | |
8668 | done` || { (exit 1); exit 1; } | |
8669 | _ACEOF | |
8670 | cat >>$CONFIG_STATUS <<_ACEOF | |
8671 | sed "$ac_vpsub | |
8672 | $extrasub | |
8673 | _ACEOF | |
8674 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8675 | :t | |
8676 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8677 | s,@configure_input@,$configure_input,;t t | |
8678 | s,@srcdir@,$ac_srcdir,;t t | |
8679 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8680 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8681 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8682 | s,@builddir@,$ac_builddir,;t t | |
8683 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8684 | s,@top_builddir@,$ac_top_builddir,;t t | |
8685 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8686 | s,@INSTALL@,$ac_INSTALL,;t t | |
8687 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8688 | rm -f $tmp/stdin | |
8689 | if test x"$ac_file" != x-; then | |
8690 | mv $tmp/out $ac_file | |
8691 | else | |
8692 | cat $tmp/out | |
8693 | rm -f $tmp/out | |
8694 | fi | |
8695 | ||
8696 | done | |
8697 | _ACEOF | |
8698 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8699 | ||
8700 | # | |
8701 | # CONFIG_HEADER section. | |
8702 | # | |
b75a7d8f A |
8703 | |
8704 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8705 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8706 | # | |
8707 | # ac_d sets the value in "#define NAME VALUE" lines. | |
73c04bcf A |
8708 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8709 | ac_dB='[ ].*$,\1#\2' | |
8710 | ac_dC=' ' | |
8711 | ac_dD=',;t' | |
8712 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8713 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8714 | ac_uB='$,\1#\2define\3' | |
b75a7d8f | 8715 | ac_uC=' ' |
73c04bcf A |
8716 | ac_uD=',;t' |
8717 | ||
8718 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
b75a7d8f | 8719 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
73c04bcf A |
8720 | case $ac_file in |
8721 | - | *:- | *:-:* ) # input from stdin | |
8722 | cat >$tmp/stdin | |
8723 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8724 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8725 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8726 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8727 | * ) ac_file_in=$ac_file.in ;; | |
b75a7d8f A |
8728 | esac |
8729 | ||
73c04bcf A |
8730 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
8731 | echo "$as_me: creating $ac_file" >&6;} | |
8732 | ||
8733 | # First look for the input files in the build tree, otherwise in the | |
8734 | # src tree. | |
8735 | ac_file_inputs=`IFS=: | |
8736 | for f in $ac_file_in; do | |
8737 | case $f in | |
8738 | -) echo $tmp/stdin ;; | |
8739 | [\\/$]*) | |
8740 | # Absolute (can't be DOS-style, as IFS=:) | |
8741 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8742 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8743 | { (exit 1); exit 1; }; } | |
8744 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
8745 | echo "$f";; | |
8746 | *) # Relative | |
8747 | if test -f "$f"; then | |
8748 | # Build tree | |
8749 | echo "$f" | |
8750 | elif test -f "$srcdir/$f"; then | |
8751 | # Source tree | |
8752 | echo "$srcdir/$f" | |
8753 | else | |
8754 | # /dev/null tree | |
8755 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8756 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8757 | { (exit 1); exit 1; }; } | |
8758 | fi;; | |
8759 | esac | |
8760 | done` || { (exit 1); exit 1; } | |
8761 | # Remove the trailing spaces. | |
8762 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
8763 | ||
8764 | _ACEOF | |
8765 | ||
8766 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8767 | # `conftest.undefs', that substitutes the proper values into | |
8768 | # config.h.in to produce config.h. The first handles `#define' | |
8769 | # templates, and the second `#undef' templates. | |
8770 | # And first: Protect against being on the right side of a sed subst in | |
8771 | # config.status. Protect against being in an unquoted here document | |
8772 | # in config.status. | |
8773 | rm -f conftest.defines conftest.undefs | |
8774 | # Using a here document instead of a string reduces the quoting nightmare. | |
8775 | # Putting comments in sed scripts is not portable. | |
8776 | # | |
8777 | # `end' is used to avoid that the second main sed command (meant for | |
8778 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8779 | # See the Autoconf documentation for `clear'. | |
8780 | cat >confdef2sed.sed <<\_ACEOF | |
8781 | s/[\\&,]/\\&/g | |
8782 | s,[\\$`],\\&,g | |
8783 | t clear | |
8784 | : clear | |
8785 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
8786 | t end | |
8787 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
8788 | : end | |
8789 | _ACEOF | |
8790 | # If some macros were called several times there might be several times | |
8791 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8792 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8793 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8794 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8795 | rm -f confdef2sed.sed | |
b75a7d8f A |
8796 | |
8797 | # This sed command replaces #undef with comments. This is necessary, for | |
8798 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8799 | # on some systems where configure will not decide to define it. | |
73c04bcf A |
8800 | cat >>conftest.undefs <<\_ACEOF |
8801 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
8802 | _ACEOF | |
8803 | ||
8804 | # Break up conftest.defines because some shells have a limit on the size | |
8805 | # of here documents, and old seds have small limits too (100 cmds). | |
8806 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8807 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
8808 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
8809 | echo ' :' >>$CONFIG_STATUS | |
8810 | rm -f conftest.tail | |
8811 | while grep . conftest.defines >/dev/null | |
8812 | do | |
8813 | # Write a limited-size here document to $tmp/defines.sed. | |
8814 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8815 | # Speed up: don't consider the non `#define' lines. | |
8816 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
8817 | # Work around the forget-to-reset-the-flag bug. | |
8818 | echo 't clr' >>$CONFIG_STATUS | |
8819 | echo ': clr' >>$CONFIG_STATUS | |
8820 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8821 | echo 'CEOF | |
8822 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8823 | rm -f $tmp/in | |
8824 | mv $tmp/out $tmp/in | |
8825 | ' >>$CONFIG_STATUS | |
8826 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8827 | rm -f conftest.defines | |
8828 | mv conftest.tail conftest.defines | |
8829 | done | |
8830 | rm -f conftest.defines | |
8831 | echo ' fi # grep' >>$CONFIG_STATUS | |
8832 | echo >>$CONFIG_STATUS | |
b75a7d8f | 8833 | |
73c04bcf A |
8834 | # Break up conftest.undefs because some shells have a limit on the size |
8835 | # of here documents, and old seds have small limits too (100 cmds). | |
8836 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
b75a7d8f | 8837 | rm -f conftest.tail |
73c04bcf | 8838 | while grep . conftest.undefs >/dev/null |
b75a7d8f | 8839 | do |
73c04bcf A |
8840 | # Write a limited-size here document to $tmp/undefs.sed. |
8841 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8842 | # Speed up: don't consider the non `#undef' | |
8843 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
8844 | # Work around the forget-to-reset-the-flag bug. | |
8845 | echo 't clr' >>$CONFIG_STATUS | |
8846 | echo ': clr' >>$CONFIG_STATUS | |
8847 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
b75a7d8f | 8848 | echo 'CEOF |
73c04bcf A |
8849 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8850 | rm -f $tmp/in | |
8851 | mv $tmp/out $tmp/in | |
8852 | ' >>$CONFIG_STATUS | |
8853 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8854 | rm -f conftest.undefs | |
8855 | mv conftest.tail conftest.undefs | |
b75a7d8f | 8856 | done |
73c04bcf A |
8857 | rm -f conftest.undefs |
8858 | ||
8859 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8860 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8861 | # use $as_me), people would be surprised to read: | |
8862 | # /* config.h. Generated by config.status. */ | |
8863 | if test x"$ac_file" = x-; then | |
8864 | echo "/* Generated by configure. */" >$tmp/config.h | |
b75a7d8f | 8865 | else |
73c04bcf | 8866 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
b75a7d8f | 8867 | fi |
73c04bcf A |
8868 | cat $tmp/in >>$tmp/config.h |
8869 | rm -f $tmp/in | |
8870 | if test x"$ac_file" != x-; then | |
8871 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
8872 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
8873 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8874 | else | |
8875 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8876 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8877 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8878 | X"$ac_file" : 'X\(//\)$' \| \ | |
8879 | X"$ac_file" : 'X\(/\)' \| \ | |
8880 | . : '\(.\)' 2>/dev/null || | |
8881 | echo X"$ac_file" | | |
8882 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8883 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8884 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8885 | /^X\(\/\).*/{ s//\1/; q; } | |
8886 | s/.*/./; q'` | |
8887 | { if $as_mkdir_p; then | |
8888 | mkdir -p "$ac_dir" | |
8889 | else | |
8890 | as_dir="$ac_dir" | |
8891 | as_dirs= | |
8892 | while test ! -d "$as_dir"; do | |
8893 | as_dirs="$as_dir $as_dirs" | |
8894 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8895 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8896 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8897 | X"$as_dir" : 'X\(//\)$' \| \ | |
8898 | X"$as_dir" : 'X\(/\)' \| \ | |
8899 | . : '\(.\)' 2>/dev/null || | |
8900 | echo X"$as_dir" | | |
8901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8902 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8903 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8904 | /^X\(\/\).*/{ s//\1/; q; } | |
8905 | s/.*/./; q'` | |
8906 | done | |
8907 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8908 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8909 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8910 | { (exit 1); exit 1; }; }; } | |
b75a7d8f | 8911 | |
73c04bcf A |
8912 | rm -f $ac_file |
8913 | mv $tmp/config.h $ac_file | |
8914 | fi | |
8915 | else | |
8916 | cat $tmp/config.h | |
8917 | rm -f $tmp/config.h | |
8918 | fi | |
8919 | done | |
8920 | _ACEOF | |
b75a7d8f | 8921 | |
73c04bcf | 8922 | cat >>$CONFIG_STATUS <<\_ACEOF |
b75a7d8f | 8923 | |
73c04bcf A |
8924 | { (exit 0); exit 0; } |
8925 | _ACEOF | |
b75a7d8f | 8926 | chmod +x $CONFIG_STATUS |
73c04bcf A |
8927 | ac_clean_files=$ac_clean_files_save |
8928 | ||
8929 | ||
8930 | # configure is writing to config.log, and then calls config.status. | |
8931 | # config.status does its own redirection, appending to config.log. | |
8932 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8933 | # by configure, so config.status won't be able to write to it; its | |
8934 | # output is simply discarded. So we exec the FD to /dev/null, | |
8935 | # effectively closing config.log, so it can be properly (re)opened and | |
8936 | # appended to by config.status. When coming back to configure, we | |
8937 | # need to make the FD available again. | |
8938 | if test "$no_create" != yes; then | |
8939 | ac_cs_success=: | |
8940 | ac_config_status_args= | |
8941 | test "$silent" = yes && | |
8942 | ac_config_status_args="$ac_config_status_args --quiet" | |
8943 | exec 5>/dev/null | |
8944 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8945 | exec 5>>config.log | |
8946 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8947 | # would make configure fail if this is the last instruction. | |
8948 | $ac_cs_success || { (exit 1); exit 1; } | |
8949 | fi | |
b75a7d8f A |
8950 | |
8951 | ||
8952 | if test $ICU_USE_THREADS = 0; then | |
8953 | 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 | |
8954 | fi | |
8955 | ||
73c04bcf | 8956 | if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then |
b75a7d8f | 8957 | echo "You must use $U_MAKE to build ICU." |
73c04bcf A |
8958 | else |
8959 | echo "WARNING: $U_MAKE may not be GNU make." | |
8960 | echo "This may cause ICU to fail to build. Please make sure that GNU make" | |
8961 | echo "is in your PATH so that this configure script can detect its location." | |
8962 | fi | |
8963 | ||
8964 | $as_unset _CXX_CXXSUFFIX |