|
1 #! /bin/sh |
|
2 # Guess values for system-dependent variables and create Makefiles. |
|
3 # Generated by GNU Autoconf 2.68. |
|
4 # |
|
5 # Copyright (c) 1999-2013, International Business Machines Corporation and others. All Rights Reserved. |
|
6 # |
|
7 # |
|
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
|
10 # Foundation, Inc. |
|
11 # |
|
12 # |
|
13 # This configure script is free software; the Free Software Foundation |
|
14 # gives unlimited permission to copy, distribute and modify it. |
|
15 ## -------------------- ## |
|
16 ## M4sh Initialization. ## |
|
17 ## -------------------- ## |
|
18 |
|
19 # Be more Bourne compatible |
|
20 DUALCASE=1; export DUALCASE # for MKS sh |
|
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
22 emulate sh |
|
23 NULLCMD=: |
|
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
25 # is contrary to our usage. Disable this feature. |
|
26 alias -g '${1+"$@"}'='"$@"' |
|
27 setopt NO_GLOB_SUBST |
|
28 else |
|
29 case `(set -o) 2>/dev/null` in #( |
|
30 *posix*) : |
|
31 set -o posix ;; #( |
|
32 *) : |
|
33 ;; |
|
34 esac |
|
35 fi |
|
36 |
|
37 |
|
38 as_nl=' |
|
39 ' |
|
40 export as_nl |
|
41 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
45 # Prefer a ksh shell builtin over an external printf program on Solaris, |
|
46 # but without wasting forks for bash or zsh. |
|
47 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
49 as_echo='print -r --' |
|
50 as_echo_n='print -rn --' |
|
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
52 as_echo='printf %s\n' |
|
53 as_echo_n='printf %s' |
|
54 else |
|
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
57 as_echo_n='/usr/ucb/echo -n' |
|
58 else |
|
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
60 as_echo_n_body='eval |
|
61 arg=$1; |
|
62 case $arg in #( |
|
63 *"$as_nl"*) |
|
64 expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
66 esac; |
|
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
68 ' |
|
69 export as_echo_n_body |
|
70 as_echo_n='sh -c $as_echo_n_body as_echo' |
|
71 fi |
|
72 export as_echo_body |
|
73 as_echo='sh -c $as_echo_body as_echo' |
|
74 fi |
|
75 |
|
76 # The user is always right. |
|
77 if test "${PATH_SEPARATOR+set}" != set; then |
|
78 PATH_SEPARATOR=: |
|
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
81 PATH_SEPARATOR=';' |
|
82 } |
|
83 fi |
|
84 |
|
85 |
|
86 # IFS |
|
87 # We need space, tab and new line, in precisely that order. Quoting is |
|
88 # there to prevent editors from complaining about space-tab. |
|
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
90 # splitting by setting IFS to empty value.) |
|
91 IFS=" "" $as_nl" |
|
92 |
|
93 # Find who we are. Look in the path if we contain no directory separator. |
|
94 as_myself= |
|
95 case $0 in #(( |
|
96 *[\\/]* ) as_myself=$0 ;; |
|
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
98 for as_dir in $PATH |
|
99 do |
|
100 IFS=$as_save_IFS |
|
101 test -z "$as_dir" && as_dir=. |
|
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
103 done |
|
104 IFS=$as_save_IFS |
|
105 |
|
106 ;; |
|
107 esac |
|
108 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
109 # in which case we are not to be found in the path. |
|
110 if test "x$as_myself" = x; then |
|
111 as_myself=$0 |
|
112 fi |
|
113 if test ! -f "$as_myself"; then |
|
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
115 exit 1 |
|
116 fi |
|
117 |
|
118 # Unset variables that we do not need and which cause bugs (e.g. in |
|
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
120 # suppresses any "Segmentation fault" message there. '((' could |
|
121 # trigger a bug in pdksh 5.2.14. |
|
122 for as_var in BASH_ENV ENV MAIL MAILPATH |
|
123 do eval test x\${$as_var+set} = xset \ |
|
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
125 done |
|
126 PS1='$ ' |
|
127 PS2='> ' |
|
128 PS4='+ ' |
|
129 |
|
130 # NLS nuisances. |
|
131 LC_ALL=C |
|
132 export LC_ALL |
|
133 LANGUAGE=C |
|
134 export LANGUAGE |
|
135 |
|
136 # CDPATH. |
|
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
138 |
|
139 if test "x$CONFIG_SHELL" = x; then |
|
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
|
141 emulate sh |
|
142 NULLCMD=: |
|
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
144 # is contrary to our usage. Disable this feature. |
|
145 alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
146 setopt NO_GLOB_SUBST |
|
147 else |
|
148 case \`(set -o) 2>/dev/null\` in #( |
|
149 *posix*) : |
|
150 set -o posix ;; #( |
|
151 *) : |
|
152 ;; |
|
153 esac |
|
154 fi |
|
155 " |
|
156 as_required="as_fn_return () { (exit \$1); } |
|
157 as_fn_success () { as_fn_return 0; } |
|
158 as_fn_failure () { as_fn_return 1; } |
|
159 as_fn_ret_success () { return 0; } |
|
160 as_fn_ret_failure () { return 1; } |
|
161 |
|
162 exitcode=0 |
|
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
|
168 |
|
169 else |
|
170 exitcode=1; echo positional parameters were not saved. |
|
171 fi |
|
172 test x\$exitcode = x0 || exit 1" |
|
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
177 test \$(( 1 + 1 )) = 2 || exit 1" |
|
178 if (eval "$as_required") 2>/dev/null; then : |
|
179 as_have_required=yes |
|
180 else |
|
181 as_have_required=no |
|
182 fi |
|
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
|
184 |
|
185 else |
|
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
187 as_found=false |
|
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
189 do |
|
190 IFS=$as_save_IFS |
|
191 test -z "$as_dir" && as_dir=. |
|
192 as_found=: |
|
193 case $as_dir in #( |
|
194 /*) |
|
195 for as_base in sh bash ksh sh5; do |
|
196 # Try only shells that exist, to save several forks. |
|
197 as_shell=$as_dir/$as_base |
|
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
200 CONFIG_SHELL=$as_shell as_have_required=yes |
|
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
202 break 2 |
|
203 fi |
|
204 fi |
|
205 done;; |
|
206 esac |
|
207 as_found=false |
|
208 done |
|
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
|
211 CONFIG_SHELL=$SHELL as_have_required=yes |
|
212 fi; } |
|
213 IFS=$as_save_IFS |
|
214 |
|
215 |
|
216 if test "x$CONFIG_SHELL" != x; then : |
|
217 # We cannot yet assume a decent shell, so we have to provide a |
|
218 # neutralization value for shells without unset; and this also |
|
219 # works around shells that cannot unset nonexistent variables. |
|
220 # Preserve -v and -x to the replacement shell. |
|
221 BASH_ENV=/dev/null |
|
222 ENV=/dev/null |
|
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
224 export CONFIG_SHELL |
|
225 case $- in # (((( |
|
226 *v*x* | *x*v* ) as_opts=-vx ;; |
|
227 *v* ) as_opts=-v ;; |
|
228 *x* ) as_opts=-x ;; |
|
229 * ) as_opts= ;; |
|
230 esac |
|
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
|
232 fi |
|
233 |
|
234 if test x$as_have_required = xno; then : |
|
235 $as_echo "$0: This script requires a shell more modern than all" |
|
236 $as_echo "$0: the shells that I found on your system." |
|
237 if test x${ZSH_VERSION+set} = xset ; then |
|
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
|
240 else |
|
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
|
242 $0: including any error possibly output before this |
|
243 $0: message. Then install a modern shell, or manually run |
|
244 $0: the script under such a shell if you do have one." |
|
245 fi |
|
246 exit 1 |
|
247 fi |
|
248 fi |
|
249 fi |
|
250 SHELL=${CONFIG_SHELL-/bin/sh} |
|
251 export SHELL |
|
252 # Unset more variables known to interfere with behavior of common tools. |
|
253 CLICOLOR_FORCE= GREP_OPTIONS= |
|
254 unset CLICOLOR_FORCE GREP_OPTIONS |
|
255 |
|
256 ## --------------------- ## |
|
257 ## M4sh Shell Functions. ## |
|
258 ## --------------------- ## |
|
259 # as_fn_unset VAR |
|
260 # --------------- |
|
261 # Portably unset VAR. |
|
262 as_fn_unset () |
|
263 { |
|
264 { eval $1=; unset $1;} |
|
265 } |
|
266 as_unset=as_fn_unset |
|
267 |
|
268 # as_fn_set_status STATUS |
|
269 # ----------------------- |
|
270 # Set $? to STATUS, without forking. |
|
271 as_fn_set_status () |
|
272 { |
|
273 return $1 |
|
274 } # as_fn_set_status |
|
275 |
|
276 # as_fn_exit STATUS |
|
277 # ----------------- |
|
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
279 as_fn_exit () |
|
280 { |
|
281 set +e |
|
282 as_fn_set_status $1 |
|
283 exit $1 |
|
284 } # as_fn_exit |
|
285 |
|
286 # as_fn_mkdir_p |
|
287 # ------------- |
|
288 # Create "$as_dir" as a directory, including parents if necessary. |
|
289 as_fn_mkdir_p () |
|
290 { |
|
291 |
|
292 case $as_dir in #( |
|
293 -*) as_dir=./$as_dir;; |
|
294 esac |
|
295 test -d "$as_dir" || eval $as_mkdir_p || { |
|
296 as_dirs= |
|
297 while :; do |
|
298 case $as_dir in #( |
|
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
300 *) as_qdir=$as_dir;; |
|
301 esac |
|
302 as_dirs="'$as_qdir' $as_dirs" |
|
303 as_dir=`$as_dirname -- "$as_dir" || |
|
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
305 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
306 X"$as_dir" : 'X\(//\)$' \| \ |
|
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
308 $as_echo X"$as_dir" | |
|
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
310 s//\1/ |
|
311 q |
|
312 } |
|
313 /^X\(\/\/\)[^/].*/{ |
|
314 s//\1/ |
|
315 q |
|
316 } |
|
317 /^X\(\/\/\)$/{ |
|
318 s//\1/ |
|
319 q |
|
320 } |
|
321 /^X\(\/\).*/{ |
|
322 s//\1/ |
|
323 q |
|
324 } |
|
325 s/.*/./; q'` |
|
326 test -d "$as_dir" && break |
|
327 done |
|
328 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
330 |
|
331 |
|
332 } # as_fn_mkdir_p |
|
333 # as_fn_append VAR VALUE |
|
334 # ---------------------- |
|
335 # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
336 # advantage of any shell optimizations that allow amortized linear growth over |
|
337 # repeated appends, instead of the typical quadratic growth present in naive |
|
338 # implementations. |
|
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
340 eval 'as_fn_append () |
|
341 { |
|
342 eval $1+=\$2 |
|
343 }' |
|
344 else |
|
345 as_fn_append () |
|
346 { |
|
347 eval $1=\$$1\$2 |
|
348 } |
|
349 fi # as_fn_append |
|
350 |
|
351 # as_fn_arith ARG... |
|
352 # ------------------ |
|
353 # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
355 # must be portable across $(()) and expr. |
|
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
357 eval 'as_fn_arith () |
|
358 { |
|
359 as_val=$(( $* )) |
|
360 }' |
|
361 else |
|
362 as_fn_arith () |
|
363 { |
|
364 as_val=`expr "$@" || test $? -eq 1` |
|
365 } |
|
366 fi # as_fn_arith |
|
367 |
|
368 |
|
369 # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
370 # ---------------------------------------- |
|
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
373 # script with STATUS, using 1 if that was 0. |
|
374 as_fn_error () |
|
375 { |
|
376 as_status=$1; test $as_status -eq 0 && as_status=1 |
|
377 if test "$4"; then |
|
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
380 fi |
|
381 $as_echo "$as_me: error: $2" >&2 |
|
382 as_fn_exit $as_status |
|
383 } # as_fn_error |
|
384 |
|
385 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
387 as_expr=expr |
|
388 else |
|
389 as_expr=false |
|
390 fi |
|
391 |
|
392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
393 as_basename=basename |
|
394 else |
|
395 as_basename=false |
|
396 fi |
|
397 |
|
398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
399 as_dirname=dirname |
|
400 else |
|
401 as_dirname=false |
|
402 fi |
|
403 |
|
404 as_me=`$as_basename -- "$0" || |
|
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
406 X"$0" : 'X\(//\)$' \| \ |
|
407 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
408 $as_echo X/"$0" | |
|
409 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
410 s//\1/ |
|
411 q |
|
412 } |
|
413 /^X\/\(\/\/\)$/{ |
|
414 s//\1/ |
|
415 q |
|
416 } |
|
417 /^X\/\(\/\).*/{ |
|
418 s//\1/ |
|
419 q |
|
420 } |
|
421 s/.*/./; q'` |
|
422 |
|
423 # Avoid depending upon Character Ranges. |
|
424 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
427 as_cr_digits='0123456789' |
|
428 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
429 |
|
430 |
|
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
|
436 sed -n ' |
|
437 p |
|
438 /[$]LINENO/= |
|
439 ' <$as_myself | |
|
440 sed ' |
|
441 s/[$]LINENO.*/&-/ |
|
442 t lineno |
|
443 b |
|
444 :lineno |
|
445 N |
|
446 :loop |
|
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
448 t loop |
|
449 s/-\n.*// |
|
450 ' >$as_me.lineno && |
|
451 chmod +x "$as_me.lineno" || |
|
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|
453 |
|
454 # Don't try to exec as it changes $[0], causing all sort of problems |
|
455 # (the dirname of $[0] is not the place where we might find the |
|
456 # original and so on. Autoconf is especially sensitive to this). |
|
457 . "./$as_me.lineno" |
|
458 # Exit status is that of the last command. |
|
459 exit |
|
460 } |
|
461 |
|
462 ECHO_C= ECHO_N= ECHO_T= |
|
463 case `echo -n x` in #((((( |
|
464 -n*) |
|
465 case `echo 'xy\c'` in |
|
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
467 xy) ECHO_C='\c';; |
|
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
469 ECHO_T=' ';; |
|
470 esac;; |
|
471 *) |
|
472 ECHO_N='-n';; |
|
473 esac |
|
474 |
|
475 rm -f conf$$ conf$$.exe conf$$.file |
|
476 if test -d conf$$.dir; then |
|
477 rm -f conf$$.dir/conf$$.file |
|
478 else |
|
479 rm -f conf$$.dir |
|
480 mkdir conf$$.dir 2>/dev/null |
|
481 fi |
|
482 if (echo >conf$$.file) 2>/dev/null; then |
|
483 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
484 as_ln_s='ln -s' |
|
485 # ... but there are two gotchas: |
|
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
488 # In both cases, we have to default to `cp -p'. |
|
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
490 as_ln_s='cp -p' |
|
491 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
492 as_ln_s=ln |
|
493 else |
|
494 as_ln_s='cp -p' |
|
495 fi |
|
496 else |
|
497 as_ln_s='cp -p' |
|
498 fi |
|
499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
500 rmdir conf$$.dir 2>/dev/null |
|
501 |
|
502 if mkdir -p . 2>/dev/null; then |
|
503 as_mkdir_p='mkdir -p "$as_dir"' |
|
504 else |
|
505 test -d ./-p && rmdir ./-p |
|
506 as_mkdir_p=false |
|
507 fi |
|
508 |
|
509 if test -x / >/dev/null 2>&1; then |
|
510 as_test_x='test -x' |
|
511 else |
|
512 if ls -dL / >/dev/null 2>&1; then |
|
513 as_ls_L_option=L |
|
514 else |
|
515 as_ls_L_option= |
|
516 fi |
|
517 as_test_x=' |
|
518 eval sh -c '\'' |
|
519 if test -d "$1"; then |
|
520 test -d "$1/."; |
|
521 else |
|
522 case $1 in #( |
|
523 -*)set "./$1";; |
|
524 esac; |
|
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|
526 ???[sx]*):;;*)false;;esac;fi |
|
527 '\'' sh |
|
528 ' |
|
529 fi |
|
530 as_executable_p=$as_test_x |
|
531 |
|
532 # Sed expression to map a string onto a valid CPP name. |
|
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
534 |
|
535 # Sed expression to map a string onto a valid variable name. |
|
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
537 |
|
538 |
|
539 test -n "$DJDIR" || exec 7<&0 </dev/null |
|
540 exec 6>&1 |
|
541 |
|
542 # Name of the host. |
|
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
|
544 # so uname gets run too. |
|
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
546 |
|
547 # |
|
548 # Initializations. |
|
549 # |
|
550 ac_default_prefix=/usr/local |
|
551 ac_clean_files= |
|
552 ac_config_libobj_dir=. |
|
553 LIBOBJS= |
|
554 cross_compiling=no |
|
555 subdirs= |
|
556 MFLAGS= |
|
557 MAKEFLAGS= |
|
558 |
|
559 # Identity of this package. |
|
560 PACKAGE_NAME= |
|
561 PACKAGE_TARNAME= |
|
562 PACKAGE_VERSION= |
|
563 PACKAGE_STRING= |
|
564 PACKAGE_BUGREPORT= |
|
565 PACKAGE_URL= |
|
566 |
|
567 ac_unique_file="ICU" |
|
568 ac_unique_file="common/unicode/utypes.h" |
|
569 # Factoring default headers for most tests. |
|
570 ac_includes_default="\ |
|
571 #include <stdio.h> |
|
572 #ifdef HAVE_SYS_TYPES_H |
|
573 # include <sys/types.h> |
|
574 #endif |
|
575 #ifdef HAVE_SYS_STAT_H |
|
576 # include <sys/stat.h> |
|
577 #endif |
|
578 #ifdef STDC_HEADERS |
|
579 # include <stdlib.h> |
|
580 # include <stddef.h> |
|
581 #else |
|
582 # ifdef HAVE_STDLIB_H |
|
583 # include <stdlib.h> |
|
584 # endif |
|
585 #endif |
|
586 #ifdef HAVE_STRING_H |
|
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
588 # include <memory.h> |
|
589 # endif |
|
590 # include <string.h> |
|
591 #endif |
|
592 #ifdef HAVE_STRINGS_H |
|
593 # include <strings.h> |
|
594 #endif |
|
595 #ifdef HAVE_INTTYPES_H |
|
596 # include <inttypes.h> |
|
597 #endif |
|
598 #ifdef HAVE_STDINT_H |
|
599 # include <stdint.h> |
|
600 #endif |
|
601 #ifdef HAVE_UNISTD_H |
|
602 # include <unistd.h> |
|
603 #endif" |
|
604 |
|
605 ac_subst_vars='UCONFIG_CXXFLAGS |
|
606 UCONFIG_CFLAGS |
|
607 UCONFIG_CPPFLAGS |
|
608 LTLIBOBJS |
|
609 LIBOBJS |
|
610 LIBCXXFLAGS |
|
611 LIBCFLAGS |
|
612 platform_make_fragment |
|
613 platform_make_fragment_name |
|
614 platform |
|
615 ICUDATA_CHAR |
|
616 SAMPLES_TRUE |
|
617 TESTS_TRUE |
|
618 ICULIBSUFFIXCNAME |
|
619 U_HAVE_LIB_SUFFIX |
|
620 ICULIBSUFFIX |
|
621 DATA_PACKAGING_MODE |
|
622 thepkgicudatadir |
|
623 pkgicudatadir |
|
624 TOOLS_TRUE |
|
625 LAYOUT_TRUE |
|
626 ICUIO_TRUE |
|
627 EXTRAS_TRUE |
|
628 U_HAVE_WCSCPY |
|
629 U_HAVE_WCHAR_H |
|
630 U_TIMEZONE |
|
631 U_HAVE_TIMEZONE |
|
632 U_TZNAME |
|
633 U_HAVE_TZNAME |
|
634 U_TZSET |
|
635 U_HAVE_TZSET |
|
636 U_HAVE_POPEN |
|
637 U_HAVE_PLACEMENT_NEW |
|
638 U_OVERRIDE_CXX_ALLOCATION |
|
639 U_NL_LANGINFO_CODESET |
|
640 U_HAVE_NL_LANGINFO_CODESET |
|
641 U_IS_BIG_ENDIAN |
|
642 U_HAVE_DIRENT_H |
|
643 U_HAVE_INTTYPES_H |
|
644 GENCCODE_ASSEMBLY |
|
645 HAVE_MMAP |
|
646 LIB_THREAD |
|
647 U_HAVE_ATOMIC |
|
648 U_HAVE_STD_STRING |
|
649 ENABLE_RPATH |
|
650 U_ENABLE_DYLOAD |
|
651 U_ENABLE_TRACING |
|
652 U_DISABLE_RENAMING |
|
653 AR |
|
654 RANLIB |
|
655 U_DEFAULT_SHOW_DRAFT |
|
656 UCLN_NO_AUTO_CLEANUP |
|
657 ENABLE_STATIC |
|
658 ENABLE_SHARED |
|
659 LIB_M |
|
660 COMPILE_LINK_ENVVAR |
|
661 ARFLAGS |
|
662 EGREP |
|
663 GREP |
|
664 DOXYGEN |
|
665 cross_buildroot |
|
666 U_MAKE |
|
667 cross_compiling |
|
668 INSTALL_DATA |
|
669 INSTALL_SCRIPT |
|
670 INSTALL_PROGRAM |
|
671 CPP |
|
672 ac_ct_CXX |
|
673 CXXFLAGS |
|
674 CXX |
|
675 OBJEXT |
|
676 EXEEXT |
|
677 ac_ct_CC |
|
678 LDFLAGS |
|
679 CFLAGS |
|
680 CC |
|
681 ENABLE_RELEASE |
|
682 ENABLE_DEBUG |
|
683 CPPFLAGS |
|
684 host_os |
|
685 host_vendor |
|
686 host_cpu |
|
687 host |
|
688 build_os |
|
689 build_vendor |
|
690 build_cpu |
|
691 build |
|
692 UNICODE_VERSION |
|
693 LIB_VERSION_MAJOR |
|
694 LIB_VERSION |
|
695 VERSION |
|
696 ICU_ECHO_T |
|
697 ICU_ECHO_C |
|
698 ICU_ECHO_N |
|
699 PACKAGE |
|
700 target_alias |
|
701 host_alias |
|
702 build_alias |
|
703 LIBS |
|
704 ECHO_T |
|
705 ECHO_N |
|
706 ECHO_C |
|
707 DEFS |
|
708 mandir |
|
709 localedir |
|
710 libdir |
|
711 psdir |
|
712 pdfdir |
|
713 dvidir |
|
714 htmldir |
|
715 infodir |
|
716 docdir |
|
717 oldincludedir |
|
718 includedir |
|
719 localstatedir |
|
720 sharedstatedir |
|
721 sysconfdir |
|
722 datadir |
|
723 datarootdir |
|
724 libexecdir |
|
725 sbindir |
|
726 bindir |
|
727 program_transform_name |
|
728 prefix |
|
729 exec_prefix |
|
730 PACKAGE_URL |
|
731 PACKAGE_BUGREPORT |
|
732 PACKAGE_STRING |
|
733 PACKAGE_VERSION |
|
734 PACKAGE_TARNAME |
|
735 PACKAGE_NAME |
|
736 PATH_SEPARATOR |
|
737 SHELL' |
|
738 ac_subst_files='' |
|
739 ac_user_opts=' |
|
740 enable_option_checking |
|
741 enable_debug |
|
742 enable_release |
|
743 with_cross_build |
|
744 enable_strict |
|
745 enable_64bit_libs |
|
746 with_library_bits |
|
747 enable_shared |
|
748 enable_static |
|
749 enable_auto_cleanup |
|
750 enable_draft |
|
751 enable_renaming |
|
752 enable_tracing |
|
753 enable_dyload |
|
754 enable_rpath |
|
755 enable_weak_threads |
|
756 enable_extras |
|
757 enable_icuio |
|
758 enable_layout |
|
759 enable_tools |
|
760 with_data_packaging |
|
761 with_library_suffix |
|
762 enable_tests |
|
763 enable_samples |
|
764 ' |
|
765 ac_precious_vars='build_alias |
|
766 host_alias |
|
767 target_alias |
|
768 CC |
|
769 CFLAGS |
|
770 LDFLAGS |
|
771 LIBS |
|
772 CPPFLAGS |
|
773 CXX |
|
774 CXXFLAGS |
|
775 CCC |
|
776 CPP' |
|
777 |
|
778 |
|
779 # Initialize some variables set by options. |
|
780 ac_init_help= |
|
781 ac_init_version=false |
|
782 ac_unrecognized_opts= |
|
783 ac_unrecognized_sep= |
|
784 # The variables have the same names as the options, with |
|
785 # dashes changed to underlines. |
|
786 cache_file=/dev/null |
|
787 exec_prefix=NONE |
|
788 no_create= |
|
789 no_recursion= |
|
790 prefix=NONE |
|
791 program_prefix=NONE |
|
792 program_suffix=NONE |
|
793 program_transform_name=s,x,x, |
|
794 silent= |
|
795 site= |
|
796 srcdir= |
|
797 verbose= |
|
798 x_includes=NONE |
|
799 x_libraries=NONE |
|
800 |
|
801 # Installation directory options. |
|
802 # These are left unexpanded so users can "make install exec_prefix=/foo" |
|
803 # and all the variables that are supposed to be based on exec_prefix |
|
804 # by default will actually change. |
|
805 # Use braces instead of parens because sh, perl, etc. also accept them. |
|
806 # (The list follows the same order as the GNU Coding Standards.) |
|
807 bindir='${exec_prefix}/bin' |
|
808 sbindir='${exec_prefix}/sbin' |
|
809 libexecdir='${exec_prefix}/libexec' |
|
810 datarootdir='${prefix}/share' |
|
811 datadir='${datarootdir}' |
|
812 sysconfdir='${prefix}/etc' |
|
813 sharedstatedir='${prefix}/com' |
|
814 localstatedir='${prefix}/var' |
|
815 includedir='${prefix}/include' |
|
816 oldincludedir='/usr/include' |
|
817 docdir='${datarootdir}/doc/${PACKAGE}' |
|
818 infodir='${datarootdir}/info' |
|
819 htmldir='${docdir}' |
|
820 dvidir='${docdir}' |
|
821 pdfdir='${docdir}' |
|
822 psdir='${docdir}' |
|
823 libdir='${exec_prefix}/lib' |
|
824 localedir='${datarootdir}/locale' |
|
825 mandir='${datarootdir}/man' |
|
826 |
|
827 ac_prev= |
|
828 ac_dashdash= |
|
829 for ac_option |
|
830 do |
|
831 # If the previous option needs an argument, assign it. |
|
832 if test -n "$ac_prev"; then |
|
833 eval $ac_prev=\$ac_option |
|
834 ac_prev= |
|
835 continue |
|
836 fi |
|
837 |
|
838 case $ac_option in |
|
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
840 *=) ac_optarg= ;; |
|
841 *) ac_optarg=yes ;; |
|
842 esac |
|
843 |
|
844 # Accept the important Cygnus configure options, so we can diagnose typos. |
|
845 |
|
846 case $ac_dashdash$ac_option in |
|
847 --) |
|
848 ac_dashdash=yes ;; |
|
849 |
|
850 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
851 ac_prev=bindir ;; |
|
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
853 bindir=$ac_optarg ;; |
|
854 |
|
855 -build | --build | --buil | --bui | --bu) |
|
856 ac_prev=build_alias ;; |
|
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
858 build_alias=$ac_optarg ;; |
|
859 |
|
860 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
862 ac_prev=cache_file ;; |
|
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
865 cache_file=$ac_optarg ;; |
|
866 |
|
867 --config-cache | -C) |
|
868 cache_file=config.cache ;; |
|
869 |
|
870 -datadir | --datadir | --datadi | --datad) |
|
871 ac_prev=datadir ;; |
|
872 -datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
873 datadir=$ac_optarg ;; |
|
874 |
|
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
876 | --dataroo | --dataro | --datar) |
|
877 ac_prev=datarootdir ;; |
|
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
880 datarootdir=$ac_optarg ;; |
|
881 |
|
882 -disable-* | --disable-*) |
|
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
884 # Reject names that are not valid shell variable names. |
|
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
886 as_fn_error $? "invalid feature name: $ac_useropt" |
|
887 ac_useropt_orig=$ac_useropt |
|
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
889 case $ac_user_opts in |
|
890 *" |
|
891 "enable_$ac_useropt" |
|
892 "*) ;; |
|
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
894 ac_unrecognized_sep=', ';; |
|
895 esac |
|
896 eval enable_$ac_useropt=no ;; |
|
897 |
|
898 -docdir | --docdir | --docdi | --doc | --do) |
|
899 ac_prev=docdir ;; |
|
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
901 docdir=$ac_optarg ;; |
|
902 |
|
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
904 ac_prev=dvidir ;; |
|
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
906 dvidir=$ac_optarg ;; |
|
907 |
|
908 -enable-* | --enable-*) |
|
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
910 # Reject names that are not valid shell variable names. |
|
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
912 as_fn_error $? "invalid feature name: $ac_useropt" |
|
913 ac_useropt_orig=$ac_useropt |
|
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
915 case $ac_user_opts in |
|
916 *" |
|
917 "enable_$ac_useropt" |
|
918 "*) ;; |
|
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
920 ac_unrecognized_sep=', ';; |
|
921 esac |
|
922 eval enable_$ac_useropt=\$ac_optarg ;; |
|
923 |
|
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
926 | --exec | --exe | --ex) |
|
927 ac_prev=exec_prefix ;; |
|
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
930 | --exec=* | --exe=* | --ex=*) |
|
931 exec_prefix=$ac_optarg ;; |
|
932 |
|
933 -gas | --gas | --ga | --g) |
|
934 # Obsolete; use --with-gas. |
|
935 with_gas=yes ;; |
|
936 |
|
937 -help | --help | --hel | --he | -h) |
|
938 ac_init_help=long ;; |
|
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
940 ac_init_help=recursive ;; |
|
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
942 ac_init_help=short ;; |
|
943 |
|
944 -host | --host | --hos | --ho) |
|
945 ac_prev=host_alias ;; |
|
946 -host=* | --host=* | --hos=* | --ho=*) |
|
947 host_alias=$ac_optarg ;; |
|
948 |
|
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
950 ac_prev=htmldir ;; |
|
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
952 | --ht=*) |
|
953 htmldir=$ac_optarg ;; |
|
954 |
|
955 -includedir | --includedir | --includedi | --included | --include \ |
|
956 | --includ | --inclu | --incl | --inc) |
|
957 ac_prev=includedir ;; |
|
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
959 | --includ=* | --inclu=* | --incl=* | --inc=*) |
|
960 includedir=$ac_optarg ;; |
|
961 |
|
962 -infodir | --infodir | --infodi | --infod | --info | --inf) |
|
963 ac_prev=infodir ;; |
|
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
965 infodir=$ac_optarg ;; |
|
966 |
|
967 -libdir | --libdir | --libdi | --libd) |
|
968 ac_prev=libdir ;; |
|
969 -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
970 libdir=$ac_optarg ;; |
|
971 |
|
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
973 | --libexe | --libex | --libe) |
|
974 ac_prev=libexecdir ;; |
|
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
976 | --libexe=* | --libex=* | --libe=*) |
|
977 libexecdir=$ac_optarg ;; |
|
978 |
|
979 -localedir | --localedir | --localedi | --localed | --locale) |
|
980 ac_prev=localedir ;; |
|
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
982 localedir=$ac_optarg ;; |
|
983 |
|
984 -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
985 | --localstate | --localstat | --localsta | --localst | --locals) |
|
986 ac_prev=localstatedir ;; |
|
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
989 localstatedir=$ac_optarg ;; |
|
990 |
|
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
992 ac_prev=mandir ;; |
|
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
994 mandir=$ac_optarg ;; |
|
995 |
|
996 -nfp | --nfp | --nf) |
|
997 # Obsolete; use --without-fp. |
|
998 with_fp=no ;; |
|
999 |
|
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
1001 | --no-cr | --no-c | -n) |
|
1002 no_create=yes ;; |
|
1003 |
|
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
1006 no_recursion=yes ;; |
|
1007 |
|
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1010 | --oldin | --oldi | --old | --ol | --o) |
|
1011 ac_prev=oldincludedir ;; |
|
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1015 oldincludedir=$ac_optarg ;; |
|
1016 |
|
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1018 ac_prev=prefix ;; |
|
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1020 prefix=$ac_optarg ;; |
|
1021 |
|
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1023 | --program-pre | --program-pr | --program-p) |
|
1024 ac_prev=program_prefix ;; |
|
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1027 program_prefix=$ac_optarg ;; |
|
1028 |
|
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1030 | --program-suf | --program-su | --program-s) |
|
1031 ac_prev=program_suffix ;; |
|
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1034 program_suffix=$ac_optarg ;; |
|
1035 |
|
1036 -program-transform-name | --program-transform-name \ |
|
1037 | --program-transform-nam | --program-transform-na \ |
|
1038 | --program-transform-n | --program-transform- \ |
|
1039 | --program-transform | --program-transfor \ |
|
1040 | --program-transfo | --program-transf \ |
|
1041 | --program-trans | --program-tran \ |
|
1042 | --progr-tra | --program-tr | --program-t) |
|
1043 ac_prev=program_transform_name ;; |
|
1044 -program-transform-name=* | --program-transform-name=* \ |
|
1045 | --program-transform-nam=* | --program-transform-na=* \ |
|
1046 | --program-transform-n=* | --program-transform-=* \ |
|
1047 | --program-transform=* | --program-transfor=* \ |
|
1048 | --program-transfo=* | --program-transf=* \ |
|
1049 | --program-trans=* | --program-tran=* \ |
|
1050 | --progr-tra=* | --program-tr=* | --program-t=*) |
|
1051 program_transform_name=$ac_optarg ;; |
|
1052 |
|
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
1054 ac_prev=pdfdir ;; |
|
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1056 pdfdir=$ac_optarg ;; |
|
1057 |
|
1058 -psdir | --psdir | --psdi | --psd | --ps) |
|
1059 ac_prev=psdir ;; |
|
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1061 psdir=$ac_optarg ;; |
|
1062 |
|
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1064 | -silent | --silent | --silen | --sile | --sil) |
|
1065 silent=yes ;; |
|
1066 |
|
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1068 ac_prev=sbindir ;; |
|
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1070 | --sbi=* | --sb=*) |
|
1071 sbindir=$ac_optarg ;; |
|
1072 |
|
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1075 | --sharedst | --shareds | --shared | --share | --shar \ |
|
1076 | --sha | --sh) |
|
1077 ac_prev=sharedstatedir ;; |
|
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1081 | --sha=* | --sh=*) |
|
1082 sharedstatedir=$ac_optarg ;; |
|
1083 |
|
1084 -site | --site | --sit) |
|
1085 ac_prev=site ;; |
|
1086 -site=* | --site=* | --sit=*) |
|
1087 site=$ac_optarg ;; |
|
1088 |
|
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1090 ac_prev=srcdir ;; |
|
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1092 srcdir=$ac_optarg ;; |
|
1093 |
|
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1095 | --syscon | --sysco | --sysc | --sys | --sy) |
|
1096 ac_prev=sysconfdir ;; |
|
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1099 sysconfdir=$ac_optarg ;; |
|
1100 |
|
1101 -target | --target | --targe | --targ | --tar | --ta | --t) |
|
1102 ac_prev=target_alias ;; |
|
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1104 target_alias=$ac_optarg ;; |
|
1105 |
|
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1107 verbose=yes ;; |
|
1108 |
|
1109 -version | --version | --versio | --versi | --vers | -V) |
|
1110 ac_init_version=: ;; |
|
1111 |
|
1112 -with-* | --with-*) |
|
1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1114 # Reject names that are not valid shell variable names. |
|
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1116 as_fn_error $? "invalid package name: $ac_useropt" |
|
1117 ac_useropt_orig=$ac_useropt |
|
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1119 case $ac_user_opts in |
|
1120 *" |
|
1121 "with_$ac_useropt" |
|
1122 "*) ;; |
|
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
1124 ac_unrecognized_sep=', ';; |
|
1125 esac |
|
1126 eval with_$ac_useropt=\$ac_optarg ;; |
|
1127 |
|
1128 -without-* | --without-*) |
|
1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1130 # Reject names that are not valid shell variable names. |
|
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1132 as_fn_error $? "invalid package name: $ac_useropt" |
|
1133 ac_useropt_orig=$ac_useropt |
|
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1135 case $ac_user_opts in |
|
1136 *" |
|
1137 "with_$ac_useropt" |
|
1138 "*) ;; |
|
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
1140 ac_unrecognized_sep=', ';; |
|
1141 esac |
|
1142 eval with_$ac_useropt=no ;; |
|
1143 |
|
1144 --x) |
|
1145 # Obsolete; use --with-x. |
|
1146 with_x=yes ;; |
|
1147 |
|
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1149 | --x-incl | --x-inc | --x-in | --x-i) |
|
1150 ac_prev=x_includes ;; |
|
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1153 x_includes=$ac_optarg ;; |
|
1154 |
|
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1157 ac_prev=x_libraries ;; |
|
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1160 x_libraries=$ac_optarg ;; |
|
1161 |
|
1162 -*) as_fn_error $? "unrecognized option: \`$ac_option' |
|
1163 Try \`$0 --help' for more information" |
|
1164 ;; |
|
1165 |
|
1166 *=*) |
|
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1168 # Reject names that are not valid shell variable names. |
|
1169 case $ac_envvar in #( |
|
1170 '' | [0-9]* | *[!_$as_cr_alnum]* ) |
|
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
|
1172 esac |
|
1173 eval $ac_envvar=\$ac_optarg |
|
1174 export $ac_envvar ;; |
|
1175 |
|
1176 *) |
|
1177 # FIXME: should be removed in autoconf 3.0. |
|
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
|
1182 ;; |
|
1183 |
|
1184 esac |
|
1185 done |
|
1186 |
|
1187 if test -n "$ac_prev"; then |
|
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1189 as_fn_error $? "missing argument to $ac_option" |
|
1190 fi |
|
1191 |
|
1192 if test -n "$ac_unrecognized_opts"; then |
|
1193 case $enable_option_checking in |
|
1194 no) ;; |
|
1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
1197 esac |
|
1198 fi |
|
1199 |
|
1200 # Check all directory arguments for consistency. |
|
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1202 datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1204 libdir localedir mandir |
|
1205 do |
|
1206 eval ac_val=\$$ac_var |
|
1207 # Remove trailing slashes. |
|
1208 case $ac_val in |
|
1209 */ ) |
|
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
1211 eval $ac_var=\$ac_val;; |
|
1212 esac |
|
1213 # Be sure to have absolute directory names. |
|
1214 case $ac_val in |
|
1215 [\\/$]* | ?:[\\/]* ) continue;; |
|
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1217 esac |
|
1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
|
1219 done |
|
1220 |
|
1221 # There might be people who depend on the old broken behavior: `$host' |
|
1222 # used to hold the argument of --host etc. |
|
1223 # FIXME: To remove some day. |
|
1224 build=$build_alias |
|
1225 host=$host_alias |
|
1226 target=$target_alias |
|
1227 |
|
1228 # FIXME: To remove some day. |
|
1229 if test "x$host_alias" != x; then |
|
1230 if test "x$build_alias" = x; then |
|
1231 cross_compiling=maybe |
|
1232 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
|
1233 If a cross compiler is detected then cross compile mode will be used" >&2 |
|
1234 elif test "x$build_alias" != "x$host_alias"; then |
|
1235 cross_compiling=yes |
|
1236 fi |
|
1237 fi |
|
1238 |
|
1239 ac_tool_prefix= |
|
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1241 |
|
1242 test "$silent" = yes && exec 6>/dev/null |
|
1243 |
|
1244 |
|
1245 ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1246 ac_ls_di=`ls -di .` && |
|
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1248 as_fn_error $? "working directory cannot be determined" |
|
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1250 as_fn_error $? "pwd does not report name of working directory" |
|
1251 |
|
1252 |
|
1253 # Find the source files, if location was not specified. |
|
1254 if test -z "$srcdir"; then |
|
1255 ac_srcdir_defaulted=yes |
|
1256 # Try the directory containing this script, then the parent directory. |
|
1257 ac_confdir=`$as_dirname -- "$as_myself" || |
|
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1259 X"$as_myself" : 'X\(//\)[^/]' \| \ |
|
1260 X"$as_myself" : 'X\(//\)$' \| \ |
|
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|
1262 $as_echo X"$as_myself" | |
|
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
1264 s//\1/ |
|
1265 q |
|
1266 } |
|
1267 /^X\(\/\/\)[^/].*/{ |
|
1268 s//\1/ |
|
1269 q |
|
1270 } |
|
1271 /^X\(\/\/\)$/{ |
|
1272 s//\1/ |
|
1273 q |
|
1274 } |
|
1275 /^X\(\/\).*/{ |
|
1276 s//\1/ |
|
1277 q |
|
1278 } |
|
1279 s/.*/./; q'` |
|
1280 srcdir=$ac_confdir |
|
1281 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1282 srcdir=.. |
|
1283 fi |
|
1284 else |
|
1285 ac_srcdir_defaulted=no |
|
1286 fi |
|
1287 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1289 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
|
1290 fi |
|
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1292 ac_abs_confdir=`( |
|
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
|
1294 pwd)` |
|
1295 # When building in place, set srcdir=. |
|
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1297 srcdir=. |
|
1298 fi |
|
1299 # Remove unnecessary trailing slashes from srcdir. |
|
1300 # Double slashes in file names in object file debugging info |
|
1301 # mess up M-x gdb in Emacs. |
|
1302 case $srcdir in |
|
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1304 esac |
|
1305 for ac_var in $ac_precious_vars; do |
|
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1307 eval ac_env_${ac_var}_value=\$${ac_var} |
|
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1310 done |
|
1311 |
|
1312 # |
|
1313 # Report the --help message. |
|
1314 # |
|
1315 if test "$ac_init_help" = "long"; then |
|
1316 # Omit some internal or obsolete options to make the list less imposing. |
|
1317 # This message is too long to be a string in the A/UX 3.1 sh. |
|
1318 cat <<_ACEOF |
|
1319 \`configure' configures this package to adapt to many kinds of systems. |
|
1320 |
|
1321 Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1322 |
|
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1324 VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1325 |
|
1326 Defaults for the options are specified in brackets. |
|
1327 |
|
1328 Configuration: |
|
1329 -h, --help display this help and exit |
|
1330 --help=short display options specific to this package |
|
1331 --help=recursive display the short help of all the included packages |
|
1332 -V, --version display version information and exit |
|
1333 -q, --quiet, --silent do not print \`checking ...' messages |
|
1334 --cache-file=FILE cache test results in FILE [disabled] |
|
1335 -C, --config-cache alias for \`--cache-file=config.cache' |
|
1336 -n, --no-create do not create output files |
|
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1338 |
|
1339 Installation directories: |
|
1340 --prefix=PREFIX install architecture-independent files in PREFIX |
|
1341 [$ac_default_prefix] |
|
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1343 [PREFIX] |
|
1344 |
|
1345 By default, \`make install' will install all the files in |
|
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1348 for instance \`--prefix=\$HOME'. |
|
1349 |
|
1350 For better control, use the options below. |
|
1351 |
|
1352 Fine tuning of the installation directories: |
|
1353 --bindir=DIR user executables [EPREFIX/bin] |
|
1354 --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1355 --libexecdir=DIR program executables [EPREFIX/libexec] |
|
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1359 --libdir=DIR object code libraries [EPREFIX/lib] |
|
1360 --includedir=DIR C header files [PREFIX/include] |
|
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1364 --infodir=DIR info documentation [DATAROOTDIR/info] |
|
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1366 --mandir=DIR man documentation [DATAROOTDIR/man] |
|
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|
1368 --htmldir=DIR html documentation [DOCDIR] |
|
1369 --dvidir=DIR dvi documentation [DOCDIR] |
|
1370 --pdfdir=DIR pdf documentation [DOCDIR] |
|
1371 --psdir=DIR ps documentation [DOCDIR] |
|
1372 _ACEOF |
|
1373 |
|
1374 cat <<\_ACEOF |
|
1375 |
|
1376 System types: |
|
1377 --build=BUILD configure for building on BUILD [guessed] |
|
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1379 _ACEOF |
|
1380 fi |
|
1381 |
|
1382 if test -n "$ac_init_help"; then |
|
1383 |
|
1384 cat <<\_ACEOF |
|
1385 |
|
1386 Optional Features: |
|
1387 --disable-option-checking ignore unrecognized --enable/--with options |
|
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1390 --enable-debug build debug libraries and enable the U_DEBUG define default=no |
|
1391 --enable-release build release libraries default=yes |
|
1392 --enable-strict compile with strict compiler options default=yes |
|
1393 --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default |
|
1394 --enable-shared build shared libraries default=yes |
|
1395 --enable-static build static libraries default=no |
|
1396 --enable-auto-cleanup enable auto cleanup of libraries default=no |
|
1397 --enable-draft enable draft APIs (and internal APIs) default=yes |
|
1398 --enable-renaming add a version suffix to symbols default=yes |
|
1399 --enable-tracing enable function and data tracing default=no |
|
1400 --disable-dyload disable dynamic loading default=no |
|
1401 --enable-rpath use rpath when linking default is only if necessary |
|
1402 --enable-weak-threads weakly reference the threading library default=no |
|
1403 --enable-extras build ICU extras default=yes |
|
1404 --enable-icuio build ICU's icuio library default=yes |
|
1405 --enable-layout build ICU's layout library default=yes |
|
1406 --enable-tools build ICU's tools default=yes |
|
1407 --enable-tests build ICU tests default=yes |
|
1408 --enable-samples build ICU samples default=yes |
|
1409 |
|
1410 Additionally, the variable FORCE_LIBS may be set before calling configure. |
|
1411 If set, it will REPLACE any automatic list of libraries. |
|
1412 |
|
1413 Optional Packages: |
|
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1416 --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir |
|
1417 --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange |
|
1418 --with-data-packaging=type specify how to package ICU data (files, archive, library, static, auto) default=auto |
|
1419 --with-library-suffix=suffix tag a suffix to the library names default= |
|
1420 |
|
1421 Some influential environment variables: |
|
1422 CC C compiler command |
|
1423 CFLAGS C compiler flags |
|
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1425 nonstandard directory <lib dir> |
|
1426 LIBS libraries to pass to the linker, e.g. -l<library> |
|
1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
|
1428 you have headers in a nonstandard directory <include dir> |
|
1429 CXX C++ compiler command |
|
1430 CXXFLAGS C++ compiler flags |
|
1431 CPP C preprocessor |
|
1432 |
|
1433 Use these variables to override the choices made by `configure' or to help |
|
1434 it to find libraries and programs with nonstandard names/locations. |
|
1435 |
|
1436 Report bugs to the package provider. |
|
1437 _ACEOF |
|
1438 ac_status=$? |
|
1439 fi |
|
1440 |
|
1441 if test "$ac_init_help" = "recursive"; then |
|
1442 # If there are subdirs, report their specific --help. |
|
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1444 test -d "$ac_dir" || |
|
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
1446 continue |
|
1447 ac_builddir=. |
|
1448 |
|
1449 case "$ac_dir" in |
|
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1451 *) |
|
1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
1453 # A ".." for each directory in $ac_dir_suffix. |
|
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
1455 case $ac_top_builddir_sub in |
|
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1458 esac ;; |
|
1459 esac |
|
1460 ac_abs_top_builddir=$ac_pwd |
|
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1462 # for backward compatibility: |
|
1463 ac_top_builddir=$ac_top_build_prefix |
|
1464 |
|
1465 case $srcdir in |
|
1466 .) # We are building in place. |
|
1467 ac_srcdir=. |
|
1468 ac_top_srcdir=$ac_top_builddir_sub |
|
1469 ac_abs_top_srcdir=$ac_pwd ;; |
|
1470 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
1471 ac_srcdir=$srcdir$ac_dir_suffix; |
|
1472 ac_top_srcdir=$srcdir |
|
1473 ac_abs_top_srcdir=$srcdir ;; |
|
1474 *) # Relative name. |
|
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1478 esac |
|
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1480 |
|
1481 cd "$ac_dir" || { ac_status=$?; continue; } |
|
1482 # Check for guested configure. |
|
1483 if test -f "$ac_srcdir/configure.gnu"; then |
|
1484 echo && |
|
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1486 elif test -f "$ac_srcdir/configure"; then |
|
1487 echo && |
|
1488 $SHELL "$ac_srcdir/configure" --help=recursive |
|
1489 else |
|
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1491 fi || ac_status=$? |
|
1492 cd "$ac_pwd" || { ac_status=$?; break; } |
|
1493 done |
|
1494 fi |
|
1495 |
|
1496 test -n "$ac_init_help" && exit $ac_status |
|
1497 if $ac_init_version; then |
|
1498 cat <<\_ACEOF |
|
1499 configure |
|
1500 generated by GNU Autoconf 2.68 |
|
1501 |
|
1502 Copyright (C) 2010 Free Software Foundation, Inc. |
|
1503 This configure script is free software; the Free Software Foundation |
|
1504 gives unlimited permission to copy, distribute and modify it. |
|
1505 |
|
1506 Copyright (c) 1999-2013, International Business Machines Corporation and others. All Rights Reserved. |
|
1507 _ACEOF |
|
1508 exit |
|
1509 fi |
|
1510 |
|
1511 ## ------------------------ ## |
|
1512 ## Autoconf initialization. ## |
|
1513 ## ------------------------ ## |
|
1514 |
|
1515 # ac_fn_c_try_compile LINENO |
|
1516 # -------------------------- |
|
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
1518 ac_fn_c_try_compile () |
|
1519 { |
|
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1521 rm -f conftest.$ac_objext |
|
1522 if { { ac_try="$ac_compile" |
|
1523 case "(($ac_try" in |
|
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1525 *) ac_try_echo=$ac_try;; |
|
1526 esac |
|
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1528 $as_echo "$ac_try_echo"; } >&5 |
|
1529 (eval "$ac_compile") 2>conftest.err |
|
1530 ac_status=$? |
|
1531 if test -s conftest.err; then |
|
1532 grep -v '^ *+' conftest.err >conftest.er1 |
|
1533 cat conftest.er1 >&5 |
|
1534 mv -f conftest.er1 conftest.err |
|
1535 fi |
|
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1537 test $ac_status = 0; } && { |
|
1538 test -z "$ac_c_werror_flag" || |
|
1539 test ! -s conftest.err |
|
1540 } && test -s conftest.$ac_objext; then : |
|
1541 ac_retval=0 |
|
1542 else |
|
1543 $as_echo "$as_me: failed program was:" >&5 |
|
1544 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1545 |
|
1546 ac_retval=1 |
|
1547 fi |
|
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1549 as_fn_set_status $ac_retval |
|
1550 |
|
1551 } # ac_fn_c_try_compile |
|
1552 |
|
1553 # ac_fn_cxx_try_compile LINENO |
|
1554 # ---------------------------- |
|
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
1556 ac_fn_cxx_try_compile () |
|
1557 { |
|
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1559 rm -f conftest.$ac_objext |
|
1560 if { { ac_try="$ac_compile" |
|
1561 case "(($ac_try" in |
|
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1563 *) ac_try_echo=$ac_try;; |
|
1564 esac |
|
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1566 $as_echo "$ac_try_echo"; } >&5 |
|
1567 (eval "$ac_compile") 2>conftest.err |
|
1568 ac_status=$? |
|
1569 if test -s conftest.err; then |
|
1570 grep -v '^ *+' conftest.err >conftest.er1 |
|
1571 cat conftest.er1 >&5 |
|
1572 mv -f conftest.er1 conftest.err |
|
1573 fi |
|
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1575 test $ac_status = 0; } && { |
|
1576 test -z "$ac_cxx_werror_flag" || |
|
1577 test ! -s conftest.err |
|
1578 } && test -s conftest.$ac_objext; then : |
|
1579 ac_retval=0 |
|
1580 else |
|
1581 $as_echo "$as_me: failed program was:" >&5 |
|
1582 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1583 |
|
1584 ac_retval=1 |
|
1585 fi |
|
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1587 as_fn_set_status $ac_retval |
|
1588 |
|
1589 } # ac_fn_cxx_try_compile |
|
1590 |
|
1591 # ac_fn_c_try_cpp LINENO |
|
1592 # ---------------------- |
|
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1594 ac_fn_c_try_cpp () |
|
1595 { |
|
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1597 if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1598 case "(($ac_try" in |
|
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1600 *) ac_try_echo=$ac_try;; |
|
1601 esac |
|
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1603 $as_echo "$ac_try_echo"; } >&5 |
|
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1605 ac_status=$? |
|
1606 if test -s conftest.err; then |
|
1607 grep -v '^ *+' conftest.err >conftest.er1 |
|
1608 cat conftest.er1 >&5 |
|
1609 mv -f conftest.er1 conftest.err |
|
1610 fi |
|
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1612 test $ac_status = 0; } > conftest.i && { |
|
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1614 test ! -s conftest.err |
|
1615 }; then : |
|
1616 ac_retval=0 |
|
1617 else |
|
1618 $as_echo "$as_me: failed program was:" >&5 |
|
1619 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1620 |
|
1621 ac_retval=1 |
|
1622 fi |
|
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1624 as_fn_set_status $ac_retval |
|
1625 |
|
1626 } # ac_fn_c_try_cpp |
|
1627 |
|
1628 # ac_fn_cxx_try_link LINENO |
|
1629 # ------------------------- |
|
1630 # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1631 ac_fn_cxx_try_link () |
|
1632 { |
|
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1634 rm -f conftest.$ac_objext conftest$ac_exeext |
|
1635 if { { ac_try="$ac_link" |
|
1636 case "(($ac_try" in |
|
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1638 *) ac_try_echo=$ac_try;; |
|
1639 esac |
|
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1641 $as_echo "$ac_try_echo"; } >&5 |
|
1642 (eval "$ac_link") 2>conftest.err |
|
1643 ac_status=$? |
|
1644 if test -s conftest.err; then |
|
1645 grep -v '^ *+' conftest.err >conftest.er1 |
|
1646 cat conftest.er1 >&5 |
|
1647 mv -f conftest.er1 conftest.err |
|
1648 fi |
|
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1650 test $ac_status = 0; } && { |
|
1651 test -z "$ac_cxx_werror_flag" || |
|
1652 test ! -s conftest.err |
|
1653 } && test -s conftest$ac_exeext && { |
|
1654 test "$cross_compiling" = yes || |
|
1655 $as_test_x conftest$ac_exeext |
|
1656 }; then : |
|
1657 ac_retval=0 |
|
1658 else |
|
1659 $as_echo "$as_me: failed program was:" >&5 |
|
1660 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1661 |
|
1662 ac_retval=1 |
|
1663 fi |
|
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1666 # interfere with the next link command; also delete a directory that is |
|
1667 # left behind by Apple's compiler. We do this before executing the actions. |
|
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1670 as_fn_set_status $ac_retval |
|
1671 |
|
1672 } # ac_fn_cxx_try_link |
|
1673 |
|
1674 # ac_fn_c_try_run LINENO |
|
1675 # ---------------------- |
|
1676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
1677 # that executables *can* be run. |
|
1678 ac_fn_c_try_run () |
|
1679 { |
|
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1681 if { { ac_try="$ac_link" |
|
1682 case "(($ac_try" in |
|
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1684 *) ac_try_echo=$ac_try;; |
|
1685 esac |
|
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1687 $as_echo "$ac_try_echo"; } >&5 |
|
1688 (eval "$ac_link") 2>&5 |
|
1689 ac_status=$? |
|
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
1692 { { case "(($ac_try" in |
|
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1694 *) ac_try_echo=$ac_try;; |
|
1695 esac |
|
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1697 $as_echo "$ac_try_echo"; } >&5 |
|
1698 (eval "$ac_try") 2>&5 |
|
1699 ac_status=$? |
|
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1701 test $ac_status = 0; }; }; then : |
|
1702 ac_retval=0 |
|
1703 else |
|
1704 $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
1705 $as_echo "$as_me: failed program was:" >&5 |
|
1706 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1707 |
|
1708 ac_retval=$ac_status |
|
1709 fi |
|
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1712 as_fn_set_status $ac_retval |
|
1713 |
|
1714 } # ac_fn_c_try_run |
|
1715 |
|
1716 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
|
1717 # -------------------------------------------- |
|
1718 # Tries to find the compile-time value of EXPR in a program that includes |
|
1719 # INCLUDES, setting VAR accordingly. Returns whether the value could be |
|
1720 # computed |
|
1721 ac_fn_c_compute_int () |
|
1722 { |
|
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1724 if test "$cross_compiling" = yes; then |
|
1725 # Depending upon the size, compute the lo and hi bounds. |
|
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1727 /* end confdefs.h. */ |
|
1728 $4 |
|
1729 int |
|
1730 main () |
|
1731 { |
|
1732 static int test_array [1 - 2 * !(($2) >= 0)]; |
|
1733 test_array [0] = 0 |
|
1734 |
|
1735 ; |
|
1736 return 0; |
|
1737 } |
|
1738 _ACEOF |
|
1739 if ac_fn_c_try_compile "$LINENO"; then : |
|
1740 ac_lo=0 ac_mid=0 |
|
1741 while :; do |
|
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1743 /* end confdefs.h. */ |
|
1744 $4 |
|
1745 int |
|
1746 main () |
|
1747 { |
|
1748 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
|
1749 test_array [0] = 0 |
|
1750 |
|
1751 ; |
|
1752 return 0; |
|
1753 } |
|
1754 _ACEOF |
|
1755 if ac_fn_c_try_compile "$LINENO"; then : |
|
1756 ac_hi=$ac_mid; break |
|
1757 else |
|
1758 as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
|
1759 if test $ac_lo -le $ac_mid; then |
|
1760 ac_lo= ac_hi= |
|
1761 break |
|
1762 fi |
|
1763 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
|
1764 fi |
|
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1766 done |
|
1767 else |
|
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1769 /* end confdefs.h. */ |
|
1770 $4 |
|
1771 int |
|
1772 main () |
|
1773 { |
|
1774 static int test_array [1 - 2 * !(($2) < 0)]; |
|
1775 test_array [0] = 0 |
|
1776 |
|
1777 ; |
|
1778 return 0; |
|
1779 } |
|
1780 _ACEOF |
|
1781 if ac_fn_c_try_compile "$LINENO"; then : |
|
1782 ac_hi=-1 ac_mid=-1 |
|
1783 while :; do |
|
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1785 /* end confdefs.h. */ |
|
1786 $4 |
|
1787 int |
|
1788 main () |
|
1789 { |
|
1790 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
|
1791 test_array [0] = 0 |
|
1792 |
|
1793 ; |
|
1794 return 0; |
|
1795 } |
|
1796 _ACEOF |
|
1797 if ac_fn_c_try_compile "$LINENO"; then : |
|
1798 ac_lo=$ac_mid; break |
|
1799 else |
|
1800 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
|
1801 if test $ac_mid -le $ac_hi; then |
|
1802 ac_lo= ac_hi= |
|
1803 break |
|
1804 fi |
|
1805 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
|
1806 fi |
|
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1808 done |
|
1809 else |
|
1810 ac_lo= ac_hi= |
|
1811 fi |
|
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1813 fi |
|
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1815 # Binary search between lo and hi bounds. |
|
1816 while test "x$ac_lo" != "x$ac_hi"; do |
|
1817 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
|
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1819 /* end confdefs.h. */ |
|
1820 $4 |
|
1821 int |
|
1822 main () |
|
1823 { |
|
1824 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
|
1825 test_array [0] = 0 |
|
1826 |
|
1827 ; |
|
1828 return 0; |
|
1829 } |
|
1830 _ACEOF |
|
1831 if ac_fn_c_try_compile "$LINENO"; then : |
|
1832 ac_hi=$ac_mid |
|
1833 else |
|
1834 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
|
1835 fi |
|
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1837 done |
|
1838 case $ac_lo in #(( |
|
1839 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
|
1840 '') ac_retval=1 ;; |
|
1841 esac |
|
1842 else |
|
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1844 /* end confdefs.h. */ |
|
1845 $4 |
|
1846 static long int longval () { return $2; } |
|
1847 static unsigned long int ulongval () { return $2; } |
|
1848 #include <stdio.h> |
|
1849 #include <stdlib.h> |
|
1850 int |
|
1851 main () |
|
1852 { |
|
1853 |
|
1854 FILE *f = fopen ("conftest.val", "w"); |
|
1855 if (! f) |
|
1856 return 1; |
|
1857 if (($2) < 0) |
|
1858 { |
|
1859 long int i = longval (); |
|
1860 if (i != ($2)) |
|
1861 return 1; |
|
1862 fprintf (f, "%ld", i); |
|
1863 } |
|
1864 else |
|
1865 { |
|
1866 unsigned long int i = ulongval (); |
|
1867 if (i != ($2)) |
|
1868 return 1; |
|
1869 fprintf (f, "%lu", i); |
|
1870 } |
|
1871 /* Do not output a trailing newline, as this causes \r\n confusion |
|
1872 on some platforms. */ |
|
1873 return ferror (f) || fclose (f) != 0; |
|
1874 |
|
1875 ; |
|
1876 return 0; |
|
1877 } |
|
1878 _ACEOF |
|
1879 if ac_fn_c_try_run "$LINENO"; then : |
|
1880 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
|
1881 else |
|
1882 ac_retval=1 |
|
1883 fi |
|
1884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
1885 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
1886 rm -f conftest.val |
|
1887 |
|
1888 fi |
|
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1890 as_fn_set_status $ac_retval |
|
1891 |
|
1892 } # ac_fn_c_compute_int |
|
1893 |
|
1894 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
1895 # ------------------------------------------------------- |
|
1896 # Tests whether HEADER exists and can be compiled using the include files in |
|
1897 # INCLUDES, setting the cache variable VAR accordingly. |
|
1898 ac_fn_c_check_header_compile () |
|
1899 { |
|
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1902 $as_echo_n "checking for $2... " >&6; } |
|
1903 if eval \${$3+:} false; then : |
|
1904 $as_echo_n "(cached) " >&6 |
|
1905 else |
|
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1907 /* end confdefs.h. */ |
|
1908 $4 |
|
1909 #include <$2> |
|
1910 _ACEOF |
|
1911 if ac_fn_c_try_compile "$LINENO"; then : |
|
1912 eval "$3=yes" |
|
1913 else |
|
1914 eval "$3=no" |
|
1915 fi |
|
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1917 fi |
|
1918 eval ac_res=\$$3 |
|
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1920 $as_echo "$ac_res" >&6; } |
|
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1922 |
|
1923 } # ac_fn_c_check_header_compile |
|
1924 |
|
1925 # ac_fn_c_try_link LINENO |
|
1926 # ----------------------- |
|
1927 # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1928 ac_fn_c_try_link () |
|
1929 { |
|
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1931 rm -f conftest.$ac_objext conftest$ac_exeext |
|
1932 if { { ac_try="$ac_link" |
|
1933 case "(($ac_try" in |
|
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1935 *) ac_try_echo=$ac_try;; |
|
1936 esac |
|
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1938 $as_echo "$ac_try_echo"; } >&5 |
|
1939 (eval "$ac_link") 2>conftest.err |
|
1940 ac_status=$? |
|
1941 if test -s conftest.err; then |
|
1942 grep -v '^ *+' conftest.err >conftest.er1 |
|
1943 cat conftest.er1 >&5 |
|
1944 mv -f conftest.er1 conftest.err |
|
1945 fi |
|
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1947 test $ac_status = 0; } && { |
|
1948 test -z "$ac_c_werror_flag" || |
|
1949 test ! -s conftest.err |
|
1950 } && test -s conftest$ac_exeext && { |
|
1951 test "$cross_compiling" = yes || |
|
1952 $as_test_x conftest$ac_exeext |
|
1953 }; then : |
|
1954 ac_retval=0 |
|
1955 else |
|
1956 $as_echo "$as_me: failed program was:" >&5 |
|
1957 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1958 |
|
1959 ac_retval=1 |
|
1960 fi |
|
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1963 # interfere with the next link command; also delete a directory that is |
|
1964 # left behind by Apple's compiler. We do this before executing the actions. |
|
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1967 as_fn_set_status $ac_retval |
|
1968 |
|
1969 } # ac_fn_c_try_link |
|
1970 |
|
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
1972 # ------------------------------------------------------- |
|
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
1974 # the include files in INCLUDES and setting the cache variable VAR |
|
1975 # accordingly. |
|
1976 ac_fn_c_check_header_mongrel () |
|
1977 { |
|
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1979 if eval \${$3+:} false; then : |
|
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1981 $as_echo_n "checking for $2... " >&6; } |
|
1982 if eval \${$3+:} false; then : |
|
1983 $as_echo_n "(cached) " >&6 |
|
1984 fi |
|
1985 eval ac_res=\$$3 |
|
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1987 $as_echo "$ac_res" >&6; } |
|
1988 else |
|
1989 # Is the header compilable? |
|
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
1991 $as_echo_n "checking $2 usability... " >&6; } |
|
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1993 /* end confdefs.h. */ |
|
1994 $4 |
|
1995 #include <$2> |
|
1996 _ACEOF |
|
1997 if ac_fn_c_try_compile "$LINENO"; then : |
|
1998 ac_header_compiler=yes |
|
1999 else |
|
2000 ac_header_compiler=no |
|
2001 fi |
|
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
2004 $as_echo "$ac_header_compiler" >&6; } |
|
2005 |
|
2006 # Is the header present? |
|
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
2008 $as_echo_n "checking $2 presence... " >&6; } |
|
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2010 /* end confdefs.h. */ |
|
2011 #include <$2> |
|
2012 _ACEOF |
|
2013 if ac_fn_c_try_cpp "$LINENO"; then : |
|
2014 ac_header_preproc=yes |
|
2015 else |
|
2016 ac_header_preproc=no |
|
2017 fi |
|
2018 rm -f conftest.err conftest.i conftest.$ac_ext |
|
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
2020 $as_echo "$ac_header_preproc" >&6; } |
|
2021 |
|
2022 # So? What about this header? |
|
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
2024 yes:no: ) |
|
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
2029 ;; |
|
2030 no:yes:* ) |
|
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
2041 ;; |
|
2042 esac |
|
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2044 $as_echo_n "checking for $2... " >&6; } |
|
2045 if eval \${$3+:} false; then : |
|
2046 $as_echo_n "(cached) " >&6 |
|
2047 else |
|
2048 eval "$3=\$ac_header_compiler" |
|
2049 fi |
|
2050 eval ac_res=\$$3 |
|
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2052 $as_echo "$ac_res" >&6; } |
|
2053 fi |
|
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
2055 |
|
2056 } # ac_fn_c_check_header_mongrel |
|
2057 |
|
2058 # ac_fn_c_check_func LINENO FUNC VAR |
|
2059 # ---------------------------------- |
|
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
2061 ac_fn_c_check_func () |
|
2062 { |
|
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2065 $as_echo_n "checking for $2... " >&6; } |
|
2066 if eval \${$3+:} false; then : |
|
2067 $as_echo_n "(cached) " >&6 |
|
2068 else |
|
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2070 /* end confdefs.h. */ |
|
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
2073 #define $2 innocuous_$2 |
|
2074 |
|
2075 /* System header to define __stub macros and hopefully few prototypes, |
|
2076 which can conflict with char $2 (); below. |
|
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
2078 <limits.h> exists even on freestanding compilers. */ |
|
2079 |
|
2080 #ifdef __STDC__ |
|
2081 # include <limits.h> |
|
2082 #else |
|
2083 # include <assert.h> |
|
2084 #endif |
|
2085 |
|
2086 #undef $2 |
|
2087 |
|
2088 /* Override any GCC internal prototype to avoid an error. |
|
2089 Use char because int might match the return type of a GCC |
|
2090 builtin and then its argument prototype would still apply. */ |
|
2091 #ifdef __cplusplus |
|
2092 extern "C" |
|
2093 #endif |
|
2094 char $2 (); |
|
2095 /* The GNU C library defines this for functions which it implements |
|
2096 to always fail with ENOSYS. Some functions are actually named |
|
2097 something starting with __ and the normal name is an alias. */ |
|
2098 #if defined __stub_$2 || defined __stub___$2 |
|
2099 choke me |
|
2100 #endif |
|
2101 |
|
2102 int |
|
2103 main () |
|
2104 { |
|
2105 return $2 (); |
|
2106 ; |
|
2107 return 0; |
|
2108 } |
|
2109 _ACEOF |
|
2110 if ac_fn_c_try_link "$LINENO"; then : |
|
2111 eval "$3=yes" |
|
2112 else |
|
2113 eval "$3=no" |
|
2114 fi |
|
2115 rm -f core conftest.err conftest.$ac_objext \ |
|
2116 conftest$ac_exeext conftest.$ac_ext |
|
2117 fi |
|
2118 eval ac_res=\$$3 |
|
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2120 $as_echo "$ac_res" >&6; } |
|
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
2122 |
|
2123 } # ac_fn_c_check_func |
|
2124 |
|
2125 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
|
2126 # ------------------------------------------- |
|
2127 # Tests whether TYPE exists after having included INCLUDES, setting cache |
|
2128 # variable VAR accordingly. |
|
2129 ac_fn_c_check_type () |
|
2130 { |
|
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2133 $as_echo_n "checking for $2... " >&6; } |
|
2134 if eval \${$3+:} false; then : |
|
2135 $as_echo_n "(cached) " >&6 |
|
2136 else |
|
2137 eval "$3=no" |
|
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2139 /* end confdefs.h. */ |
|
2140 $4 |
|
2141 int |
|
2142 main () |
|
2143 { |
|
2144 if (sizeof ($2)) |
|
2145 return 0; |
|
2146 ; |
|
2147 return 0; |
|
2148 } |
|
2149 _ACEOF |
|
2150 if ac_fn_c_try_compile "$LINENO"; then : |
|
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2152 /* end confdefs.h. */ |
|
2153 $4 |
|
2154 int |
|
2155 main () |
|
2156 { |
|
2157 if (sizeof (($2))) |
|
2158 return 0; |
|
2159 ; |
|
2160 return 0; |
|
2161 } |
|
2162 _ACEOF |
|
2163 if ac_fn_c_try_compile "$LINENO"; then : |
|
2164 |
|
2165 else |
|
2166 eval "$3=yes" |
|
2167 fi |
|
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2169 fi |
|
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2171 fi |
|
2172 eval ac_res=\$$3 |
|
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2174 $as_echo "$ac_res" >&6; } |
|
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
2176 |
|
2177 } # ac_fn_c_check_type |
|
2178 cat >config.log <<_ACEOF |
|
2179 This file contains any messages produced by compilers while |
|
2180 running configure, to aid debugging if configure makes a mistake. |
|
2181 |
|
2182 It was created by $as_me, which was |
|
2183 generated by GNU Autoconf 2.68. Invocation command line was |
|
2184 |
|
2185 $ $0 $@ |
|
2186 |
|
2187 _ACEOF |
|
2188 exec 5>>config.log |
|
2189 { |
|
2190 cat <<_ASUNAME |
|
2191 ## --------- ## |
|
2192 ## Platform. ## |
|
2193 ## --------- ## |
|
2194 |
|
2195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
2196 uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
2197 uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
2198 uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
2199 uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
2200 |
|
2201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
2202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
2203 |
|
2204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
2205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
2206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
2207 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
2208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
2209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
2210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
2211 |
|
2212 _ASUNAME |
|
2213 |
|
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2215 for as_dir in $PATH |
|
2216 do |
|
2217 IFS=$as_save_IFS |
|
2218 test -z "$as_dir" && as_dir=. |
|
2219 $as_echo "PATH: $as_dir" |
|
2220 done |
|
2221 IFS=$as_save_IFS |
|
2222 |
|
2223 } >&5 |
|
2224 |
|
2225 cat >&5 <<_ACEOF |
|
2226 |
|
2227 |
|
2228 ## ----------- ## |
|
2229 ## Core tests. ## |
|
2230 ## ----------- ## |
|
2231 |
|
2232 _ACEOF |
|
2233 |
|
2234 |
|
2235 # Keep a trace of the command line. |
|
2236 # Strip out --no-create and --no-recursion so they do not pile up. |
|
2237 # Strip out --silent because we don't want to record it for future runs. |
|
2238 # Also quote any args containing shell meta-characters. |
|
2239 # Make two passes to allow for proper duplicate-argument suppression. |
|
2240 ac_configure_args= |
|
2241 ac_configure_args0= |
|
2242 ac_configure_args1= |
|
2243 ac_must_keep_next=false |
|
2244 for ac_pass in 1 2 |
|
2245 do |
|
2246 for ac_arg |
|
2247 do |
|
2248 case $ac_arg in |
|
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
2251 | -silent | --silent | --silen | --sile | --sil) |
|
2252 continue ;; |
|
2253 *\'*) |
|
2254 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2255 esac |
|
2256 case $ac_pass in |
|
2257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|
2258 2) |
|
2259 as_fn_append ac_configure_args1 " '$ac_arg'" |
|
2260 if test $ac_must_keep_next = true; then |
|
2261 ac_must_keep_next=false # Got value, back to normal. |
|
2262 else |
|
2263 case $ac_arg in |
|
2264 *=* | --config-cache | -C | -disable-* | --disable-* \ |
|
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
2267 | -with-* | --with-* | -without-* | --without-* | --x) |
|
2268 case "$ac_configure_args0 " in |
|
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
2270 esac |
|
2271 ;; |
|
2272 -* ) ac_must_keep_next=true ;; |
|
2273 esac |
|
2274 fi |
|
2275 as_fn_append ac_configure_args " '$ac_arg'" |
|
2276 ;; |
|
2277 esac |
|
2278 done |
|
2279 done |
|
2280 { ac_configure_args0=; unset ac_configure_args0;} |
|
2281 { ac_configure_args1=; unset ac_configure_args1;} |
|
2282 |
|
2283 # When interrupted or exit'd, cleanup temporary files, and complete |
|
2284 # config.log. We remove comments because anyway the quotes in there |
|
2285 # would cause problems or look ugly. |
|
2286 # WARNING: Use '\'' to represent an apostrophe within the trap. |
|
2287 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
2288 trap 'exit_status=$? |
|
2289 # Save into config.log some information that might help in debugging. |
|
2290 { |
|
2291 echo |
|
2292 |
|
2293 $as_echo "## ---------------- ## |
|
2294 ## Cache variables. ## |
|
2295 ## ---------------- ##" |
|
2296 echo |
|
2297 # The following way of writing the cache mishandles newlines in values, |
|
2298 ( |
|
2299 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
2300 eval ac_val=\$$ac_var |
|
2301 case $ac_val in #( |
|
2302 *${as_nl}*) |
|
2303 case $ac_var in #( |
|
2304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
2305 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
2306 esac |
|
2307 case $ac_var in #( |
|
2308 _ | IFS | as_nl) ;; #( |
|
2309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
2310 *) { eval $ac_var=; unset $ac_var;} ;; |
|
2311 esac ;; |
|
2312 esac |
|
2313 done |
|
2314 (set) 2>&1 | |
|
2315 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
2316 *${as_nl}ac_space=\ *) |
|
2317 sed -n \ |
|
2318 "s/'\''/'\''\\\\'\'''\''/g; |
|
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
2320 ;; #( |
|
2321 *) |
|
2322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
2323 ;; |
|
2324 esac | |
|
2325 sort |
|
2326 ) |
|
2327 echo |
|
2328 |
|
2329 $as_echo "## ----------------- ## |
|
2330 ## Output variables. ## |
|
2331 ## ----------------- ##" |
|
2332 echo |
|
2333 for ac_var in $ac_subst_vars |
|
2334 do |
|
2335 eval ac_val=\$$ac_var |
|
2336 case $ac_val in |
|
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2338 esac |
|
2339 $as_echo "$ac_var='\''$ac_val'\''" |
|
2340 done | sort |
|
2341 echo |
|
2342 |
|
2343 if test -n "$ac_subst_files"; then |
|
2344 $as_echo "## ------------------- ## |
|
2345 ## File substitutions. ## |
|
2346 ## ------------------- ##" |
|
2347 echo |
|
2348 for ac_var in $ac_subst_files |
|
2349 do |
|
2350 eval ac_val=\$$ac_var |
|
2351 case $ac_val in |
|
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2353 esac |
|
2354 $as_echo "$ac_var='\''$ac_val'\''" |
|
2355 done | sort |
|
2356 echo |
|
2357 fi |
|
2358 |
|
2359 if test -s confdefs.h; then |
|
2360 $as_echo "## ----------- ## |
|
2361 ## confdefs.h. ## |
|
2362 ## ----------- ##" |
|
2363 echo |
|
2364 cat confdefs.h |
|
2365 echo |
|
2366 fi |
|
2367 test "$ac_signal" != 0 && |
|
2368 $as_echo "$as_me: caught signal $ac_signal" |
|
2369 $as_echo "$as_me: exit $exit_status" |
|
2370 } >&5 |
|
2371 rm -f core *.core core.conftest.* && |
|
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
2373 exit $exit_status |
|
2374 ' 0 |
|
2375 for ac_signal in 1 2 13 15; do |
|
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|
2377 done |
|
2378 ac_signal=0 |
|
2379 |
|
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
2381 rm -f -r conftest* confdefs.h |
|
2382 |
|
2383 $as_echo "/* confdefs.h */" > confdefs.h |
|
2384 |
|
2385 # Predefined preprocessor variables. |
|
2386 |
|
2387 cat >>confdefs.h <<_ACEOF |
|
2388 #define PACKAGE_NAME "$PACKAGE_NAME" |
|
2389 _ACEOF |
|
2390 |
|
2391 cat >>confdefs.h <<_ACEOF |
|
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
2393 _ACEOF |
|
2394 |
|
2395 cat >>confdefs.h <<_ACEOF |
|
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
2397 _ACEOF |
|
2398 |
|
2399 cat >>confdefs.h <<_ACEOF |
|
2400 #define PACKAGE_STRING "$PACKAGE_STRING" |
|
2401 _ACEOF |
|
2402 |
|
2403 cat >>confdefs.h <<_ACEOF |
|
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
2405 _ACEOF |
|
2406 |
|
2407 cat >>confdefs.h <<_ACEOF |
|
2408 #define PACKAGE_URL "$PACKAGE_URL" |
|
2409 _ACEOF |
|
2410 |
|
2411 |
|
2412 # Let the site file select an alternate cache file if it wants to. |
|
2413 # Prefer an explicitly selected file to automatically selected ones. |
|
2414 ac_site_file1=NONE |
|
2415 ac_site_file2=NONE |
|
2416 if test -n "$CONFIG_SITE"; then |
|
2417 # We do not want a PATH search for config.site. |
|
2418 case $CONFIG_SITE in #(( |
|
2419 -*) ac_site_file1=./$CONFIG_SITE;; |
|
2420 */*) ac_site_file1=$CONFIG_SITE;; |
|
2421 *) ac_site_file1=./$CONFIG_SITE;; |
|
2422 esac |
|
2423 elif test "x$prefix" != xNONE; then |
|
2424 ac_site_file1=$prefix/share/config.site |
|
2425 ac_site_file2=$prefix/etc/config.site |
|
2426 else |
|
2427 ac_site_file1=$ac_default_prefix/share/config.site |
|
2428 ac_site_file2=$ac_default_prefix/etc/config.site |
|
2429 fi |
|
2430 for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|
2431 do |
|
2432 test "x$ac_site_file" = xNONE && continue |
|
2433 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
|
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
|
2435 $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|
2436 sed 's/^/| /' "$ac_site_file" >&5 |
|
2437 . "$ac_site_file" \ |
|
2438 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2440 as_fn_error $? "failed to load site script $ac_site_file |
|
2441 See \`config.log' for more details" "$LINENO" 5; } |
|
2442 fi |
|
2443 done |
|
2444 |
|
2445 if test -r "$cache_file"; then |
|
2446 # Some versions of bash will fail to source /dev/null (special files |
|
2447 # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
|
2448 if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
|
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
|
2450 $as_echo "$as_me: loading cache $cache_file" >&6;} |
|
2451 case $cache_file in |
|
2452 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
2453 *) . "./$cache_file";; |
|
2454 esac |
|
2455 fi |
|
2456 else |
|
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|
2458 $as_echo "$as_me: creating cache $cache_file" >&6;} |
|
2459 >$cache_file |
|
2460 fi |
|
2461 |
|
2462 # Check that the precious variables saved in the cache have kept the same |
|
2463 # value. |
|
2464 ac_cache_corrupted=false |
|
2465 for ac_var in $ac_precious_vars; do |
|
2466 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
2467 eval ac_new_set=\$ac_env_${ac_var}_set |
|
2468 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
2469 eval ac_new_val=\$ac_env_${ac_var}_value |
|
2470 case $ac_old_set,$ac_new_set in |
|
2471 set,) |
|
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
2473 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
2474 ac_cache_corrupted=: ;; |
|
2475 ,set) |
|
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|
2477 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
2478 ac_cache_corrupted=: ;; |
|
2479 ,);; |
|
2480 *) |
|
2481 if test "x$ac_old_val" != "x$ac_new_val"; then |
|
2482 # differences in whitespace do not lead to failure. |
|
2483 ac_old_val_w=`echo x $ac_old_val` |
|
2484 ac_new_val_w=`echo x $ac_new_val` |
|
2485 if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|
2487 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
2488 ac_cache_corrupted=: |
|
2489 else |
|
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
2491 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
2492 eval $ac_var=\$ac_old_val |
|
2493 fi |
|
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
2495 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
2497 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|
2498 fi;; |
|
2499 esac |
|
2500 # Pass precious variables to config.status. |
|
2501 if test "$ac_new_set" = set; then |
|
2502 case $ac_new_val in |
|
2503 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2504 *) ac_arg=$ac_var=$ac_new_val ;; |
|
2505 esac |
|
2506 case " $ac_configure_args " in |
|
2507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
2508 *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|
2509 esac |
|
2510 fi |
|
2511 done |
|
2512 if $ac_cache_corrupted; then |
|
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|
2516 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
2517 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
|
2518 fi |
|
2519 ## -------------------- ## |
|
2520 ## Main body of script. ## |
|
2521 ## -------------------- ## |
|
2522 |
|
2523 ac_ext=c |
|
2524 ac_cpp='$CPP $CPPFLAGS' |
|
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2528 |
|
2529 |
|
2530 |
|
2531 #TODO: IcuBug:8502 |
|
2532 #AC_INIT([ICU], |
|
2533 # m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"), |
|
2534 # [http://icu-project.org/bugs], |
|
2535 # [International Components for Unicode], |
|
2536 # [http://icu-project.org]) |
|
2537 |
|
2538 |
|
2539 |
|
2540 PACKAGE="icu" |
|
2541 |
|
2542 |
|
2543 # Use custom echo test for newline option |
|
2544 # Current autoconf (2.65) gives incorrect echo newline option |
|
2545 # for icu-config |
|
2546 # This may be removed later - mow (June 17, 2010) |
|
2547 ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T= |
|
2548 case `/bin/sh -c "echo -n x"` in |
|
2549 -n*) |
|
2550 case `/bin/sh -c "echo 'x\c'"` in |
|
2551 *c*) ICU_ECHO_T=' ';; # ECHO_T is single tab character. |
|
2552 *) ICU_ECHO_C='\c';; |
|
2553 esac;; |
|
2554 *) |
|
2555 ICU_ECHO_N='-n';; |
|
2556 esac |
|
2557 |
|
2558 |
|
2559 |
|
2560 |
|
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5 |
|
2562 $as_echo_n "checking for ICU version numbers... " >&6; } |
|
2563 |
|
2564 # Get the ICU version from uversion.h or other headers |
|
2565 geticuversion() { |
|
2566 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" |
|
2567 } |
|
2568 getuversion() { |
|
2569 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" |
|
2570 } |
|
2571 VERSION=`geticuversion $srcdir/common/unicode/uvernum.h` |
|
2572 if test x"$VERSION" = x; then |
|
2573 as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5 |
|
2574 fi |
|
2575 |
|
2576 #TODO: IcuBug:8502 |
|
2577 #if test "$VERSION" != "$PACKAGE_VERSION"; then |
|
2578 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf]) |
|
2579 #fi |
|
2580 |
|
2581 UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h` |
|
2582 if test x"$UNICODE_VERSION" = x; then |
|
2583 as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5 |
|
2584 fi |
|
2585 # Compute a reasonable library version from the release version. This is |
|
2586 # very bad, but that's wanted... We want to make sure that the LIB_VERSION |
|
2587 # has at least a dot in it, so we'll add a .0 if needed. |
|
2588 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`] |
|
2589 LIB_VERSION=$VERSION |
|
2590 LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` |
|
2591 |
|
2592 |
|
2593 |
|
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5 |
|
2595 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; } |
|
2596 |
|
2597 |
|
2598 |
|
2599 # Determine the host system |
|
2600 ac_aux_dir= |
|
2601 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|
2602 if test -f "$ac_dir/install-sh"; then |
|
2603 ac_aux_dir=$ac_dir |
|
2604 ac_install_sh="$ac_aux_dir/install-sh -c" |
|
2605 break |
|
2606 elif test -f "$ac_dir/install.sh"; then |
|
2607 ac_aux_dir=$ac_dir |
|
2608 ac_install_sh="$ac_aux_dir/install.sh -c" |
|
2609 break |
|
2610 elif test -f "$ac_dir/shtool"; then |
|
2611 ac_aux_dir=$ac_dir |
|
2612 ac_install_sh="$ac_aux_dir/shtool install -c" |
|
2613 break |
|
2614 fi |
|
2615 done |
|
2616 if test -z "$ac_aux_dir"; then |
|
2617 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
|
2618 fi |
|
2619 |
|
2620 # These three variables are undocumented and unsupported, |
|
2621 # and are intended to be withdrawn in a future Autoconf release. |
|
2622 # They can cause serious problems if a builder's source tree is in a directory |
|
2623 # whose full name contains unusual characters. |
|
2624 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
2625 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
2626 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
2627 |
|
2628 |
|
2629 # Make sure we can run config.sub. |
|
2630 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
2631 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
|
2632 |
|
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
|
2634 $as_echo_n "checking build system type... " >&6; } |
|
2635 if ${ac_cv_build+:} false; then : |
|
2636 $as_echo_n "(cached) " >&6 |
|
2637 else |
|
2638 ac_build_alias=$build_alias |
|
2639 test "x$ac_build_alias" = x && |
|
2640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
2641 test "x$ac_build_alias" = x && |
|
2642 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
|
2643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
2644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
|
2645 |
|
2646 fi |
|
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
|
2648 $as_echo "$ac_cv_build" >&6; } |
|
2649 case $ac_cv_build in |
|
2650 *-*-*) ;; |
|
2651 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
|
2652 esac |
|
2653 build=$ac_cv_build |
|
2654 ac_save_IFS=$IFS; IFS='-' |
|
2655 set x $ac_cv_build |
|
2656 shift |
|
2657 build_cpu=$1 |
|
2658 build_vendor=$2 |
|
2659 shift; shift |
|
2660 # Remember, the first character of IFS is used to create $*, |
|
2661 # except with old shells: |
|
2662 build_os=$* |
|
2663 IFS=$ac_save_IFS |
|
2664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
2665 |
|
2666 |
|
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
|
2668 $as_echo_n "checking host system type... " >&6; } |
|
2669 if ${ac_cv_host+:} false; then : |
|
2670 $as_echo_n "(cached) " >&6 |
|
2671 else |
|
2672 if test "x$host_alias" = x; then |
|
2673 ac_cv_host=$ac_cv_build |
|
2674 else |
|
2675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
2676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
|
2677 fi |
|
2678 |
|
2679 fi |
|
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
|
2681 $as_echo "$ac_cv_host" >&6; } |
|
2682 case $ac_cv_host in |
|
2683 *-*-*) ;; |
|
2684 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
|
2685 esac |
|
2686 host=$ac_cv_host |
|
2687 ac_save_IFS=$IFS; IFS='-' |
|
2688 set x $ac_cv_host |
|
2689 shift |
|
2690 host_cpu=$1 |
|
2691 host_vendor=$2 |
|
2692 shift; shift |
|
2693 # Remember, the first character of IFS is used to create $*, |
|
2694 # except with old shells: |
|
2695 host_os=$* |
|
2696 IFS=$ac_save_IFS |
|
2697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
2698 |
|
2699 |
|
2700 |
|
2701 |
|
2702 |
|
2703 # This variable is needed on z/OS because the C++ compiler only recognizes .C |
|
2704 _CXX_CXXSUFFIX=cpp |
|
2705 export _CXX_CXXSUFFIX |
|
2706 |
|
2707 # Accumulate #defines |
|
2708 |
|
2709 # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only. |
|
2710 # They are only needed for building ICU itself. Example: platform stuff |
|
2711 CONFIG_CPPFLAGS="" |
|
2712 # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time, |
|
2713 # and also a notice is output that they need to be set |
|
2714 # for end-users of ICU also. uconfig.h.prepend is generated |
|
2715 # with, for example, "#define U_DISABLE_RENAMING 1" |
|
2716 # Example: ICU configuration stuff |
|
2717 UCONFIG_CPPFLAGS="" |
|
2718 # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users |
|
2719 # such as -std |
|
2720 UCONFIG_CFLAGS="" |
|
2721 |
|
2722 # Check whether to build debug libraries |
|
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5 |
|
2724 $as_echo_n "checking whether to build debug libraries... " >&6; } |
|
2725 enabled=no |
|
2726 ENABLE_DEBUG=0 |
|
2727 # Check whether --enable-debug was given. |
|
2728 if test "${enable_debug+set}" = set; then : |
|
2729 enableval=$enable_debug; case "${enableval}" in |
|
2730 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;; |
|
2731 *) ;; |
|
2732 esac |
|
2733 fi |
|
2734 |
|
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
2736 $as_echo "$enabled" >&6; } |
|
2737 |
|
2738 |
|
2739 # Check whether to build release libraries |
|
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5 |
|
2741 $as_echo_n "checking whether to build release libraries... " >&6; } |
|
2742 enabled=yes |
|
2743 ENABLE_RELEASE=1 |
|
2744 # Check whether --enable-release was given. |
|
2745 if test "${enable_release+set}" = set; then : |
|
2746 enableval=$enable_release; case "${enableval}" in |
|
2747 no) enabled=no; ENABLE_RELEASE=0 ;; |
|
2748 *) ;; |
|
2749 esac |
|
2750 fi |
|
2751 |
|
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
2753 $as_echo "$enabled" >&6; } |
|
2754 |
|
2755 |
|
2756 # Don't use the default C/CXXFLags |
|
2757 : ${CFLAGS=""} |
|
2758 : ${CXXFLAGS=""} |
|
2759 |
|
2760 # Checks for compilers |
|
2761 ac_ext=c |
|
2762 ac_cpp='$CPP $CPPFLAGS' |
|
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2766 if test -n "$ac_tool_prefix"; then |
|
2767 for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
|
2768 do |
|
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2772 $as_echo_n "checking for $ac_word... " >&6; } |
|
2773 if ${ac_cv_prog_CC+:} false; then : |
|
2774 $as_echo_n "(cached) " >&6 |
|
2775 else |
|
2776 if test -n "$CC"; then |
|
2777 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2778 else |
|
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2780 for as_dir in $PATH |
|
2781 do |
|
2782 IFS=$as_save_IFS |
|
2783 test -z "$as_dir" && as_dir=. |
|
2784 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2788 break 2 |
|
2789 fi |
|
2790 done |
|
2791 done |
|
2792 IFS=$as_save_IFS |
|
2793 |
|
2794 fi |
|
2795 fi |
|
2796 CC=$ac_cv_prog_CC |
|
2797 if test -n "$CC"; then |
|
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2799 $as_echo "$CC" >&6; } |
|
2800 else |
|
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2802 $as_echo "no" >&6; } |
|
2803 fi |
|
2804 |
|
2805 |
|
2806 test -n "$CC" && break |
|
2807 done |
|
2808 fi |
|
2809 if test -z "$CC"; then |
|
2810 ac_ct_CC=$CC |
|
2811 for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
|
2812 do |
|
2813 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2814 set dummy $ac_prog; ac_word=$2 |
|
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2816 $as_echo_n "checking for $ac_word... " >&6; } |
|
2817 if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|
2818 $as_echo_n "(cached) " >&6 |
|
2819 else |
|
2820 if test -n "$ac_ct_CC"; then |
|
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2822 else |
|
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2824 for as_dir in $PATH |
|
2825 do |
|
2826 IFS=$as_save_IFS |
|
2827 test -z "$as_dir" && as_dir=. |
|
2828 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2830 ac_cv_prog_ac_ct_CC="$ac_prog" |
|
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2832 break 2 |
|
2833 fi |
|
2834 done |
|
2835 done |
|
2836 IFS=$as_save_IFS |
|
2837 |
|
2838 fi |
|
2839 fi |
|
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2841 if test -n "$ac_ct_CC"; then |
|
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
2843 $as_echo "$ac_ct_CC" >&6; } |
|
2844 else |
|
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2846 $as_echo "no" >&6; } |
|
2847 fi |
|
2848 |
|
2849 |
|
2850 test -n "$ac_ct_CC" && break |
|
2851 done |
|
2852 |
|
2853 if test "x$ac_ct_CC" = x; then |
|
2854 CC="" |
|
2855 else |
|
2856 case $cross_compiling:$ac_tool_warned in |
|
2857 yes:) |
|
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2860 ac_tool_warned=yes ;; |
|
2861 esac |
|
2862 CC=$ac_ct_CC |
|
2863 fi |
|
2864 fi |
|
2865 |
|
2866 |
|
2867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2869 as_fn_error $? "no acceptable C compiler found in \$PATH |
|
2870 See \`config.log' for more details" "$LINENO" 5; } |
|
2871 |
|
2872 # Provide some information about the compiler. |
|
2873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|
2874 set X $ac_compile |
|
2875 ac_compiler=$2 |
|
2876 for ac_option in --version -v -V -qversion; do |
|
2877 { { ac_try="$ac_compiler $ac_option >&5" |
|
2878 case "(($ac_try" in |
|
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2880 *) ac_try_echo=$ac_try;; |
|
2881 esac |
|
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
2883 $as_echo "$ac_try_echo"; } >&5 |
|
2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
2885 ac_status=$? |
|
2886 if test -s conftest.err; then |
|
2887 sed '10a\ |
|
2888 ... rest of stderr output deleted ... |
|
2889 10q' conftest.err >conftest.er1 |
|
2890 cat conftest.er1 >&5 |
|
2891 fi |
|
2892 rm -f conftest.er1 conftest.err |
|
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
2894 test $ac_status = 0; } |
|
2895 done |
|
2896 |
|
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2898 /* end confdefs.h. */ |
|
2899 |
|
2900 int |
|
2901 main () |
|
2902 { |
|
2903 |
|
2904 ; |
|
2905 return 0; |
|
2906 } |
|
2907 _ACEOF |
|
2908 ac_clean_files_save=$ac_clean_files |
|
2909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
2910 # Try to create an executable without -o first, disregard a.out. |
|
2911 # It will help us diagnose broken compilers, and finding out an intuition |
|
2912 # of exeext. |
|
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
2914 $as_echo_n "checking whether the C compiler works... " >&6; } |
|
2915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
2916 |
|
2917 # The possible output files: |
|
2918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
2919 |
|
2920 ac_rmfiles= |
|
2921 for ac_file in $ac_files |
|
2922 do |
|
2923 case $ac_file in |
|
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
2925 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
2926 esac |
|
2927 done |
|
2928 rm -f $ac_rmfiles |
|
2929 |
|
2930 if { { ac_try="$ac_link_default" |
|
2931 case "(($ac_try" in |
|
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2933 *) ac_try_echo=$ac_try;; |
|
2934 esac |
|
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
2936 $as_echo "$ac_try_echo"; } >&5 |
|
2937 (eval "$ac_link_default") 2>&5 |
|
2938 ac_status=$? |
|
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
2940 test $ac_status = 0; }; then : |
|
2941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
2942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
2943 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
2944 # so that the user can short-circuit this test for compilers unknown to |
|
2945 # Autoconf. |
|
2946 for ac_file in $ac_files '' |
|
2947 do |
|
2948 test -f "$ac_file" || continue |
|
2949 case $ac_file in |
|
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
2951 ;; |
|
2952 [ab].out ) |
|
2953 # We found the default executable, but exeext='' is most |
|
2954 # certainly right. |
|
2955 break;; |
|
2956 *.* ) |
|
2957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
2958 then :; else |
|
2959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
2960 fi |
|
2961 # We set ac_cv_exeext here because the later test for it is not |
|
2962 # safe: cross compilers may not add the suffix if given an `-o' |
|
2963 # argument, so we may need to know it at that point already. |
|
2964 # Even if this section looks crufty: it has the advantage of |
|
2965 # actually working. |
|
2966 break;; |
|
2967 * ) |
|
2968 break;; |
|
2969 esac |
|
2970 done |
|
2971 test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
2972 |
|
2973 else |
|
2974 ac_file='' |
|
2975 fi |
|
2976 if test -z "$ac_file"; then : |
|
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2978 $as_echo "no" >&6; } |
|
2979 $as_echo "$as_me: failed program was:" >&5 |
|
2980 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2981 |
|
2982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2984 as_fn_error 77 "C compiler cannot create executables |
|
2985 See \`config.log' for more details" "$LINENO" 5; } |
|
2986 else |
|
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
2988 $as_echo "yes" >&6; } |
|
2989 fi |
|
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
2991 $as_echo_n "checking for C compiler default output file name... " >&6; } |
|
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
2993 $as_echo "$ac_file" >&6; } |
|
2994 ac_exeext=$ac_cv_exeext |
|
2995 |
|
2996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|
2997 ac_clean_files=$ac_clean_files_save |
|
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|
2999 $as_echo_n "checking for suffix of executables... " >&6; } |
|
3000 if { { ac_try="$ac_link" |
|
3001 case "(($ac_try" in |
|
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3003 *) ac_try_echo=$ac_try;; |
|
3004 esac |
|
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3006 $as_echo "$ac_try_echo"; } >&5 |
|
3007 (eval "$ac_link") 2>&5 |
|
3008 ac_status=$? |
|
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3010 test $ac_status = 0; }; then : |
|
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
3012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
3013 # work properly (i.e., refer to `conftest.exe'), while it won't with |
|
3014 # `rm'. |
|
3015 for ac_file in conftest.exe conftest conftest.*; do |
|
3016 test -f "$ac_file" || continue |
|
3017 case $ac_file in |
|
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3020 break;; |
|
3021 * ) break;; |
|
3022 esac |
|
3023 done |
|
3024 else |
|
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3027 as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
|
3028 See \`config.log' for more details" "$LINENO" 5; } |
|
3029 fi |
|
3030 rm -f conftest conftest$ac_cv_exeext |
|
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
|
3032 $as_echo "$ac_cv_exeext" >&6; } |
|
3033 |
|
3034 rm -f conftest.$ac_ext |
|
3035 EXEEXT=$ac_cv_exeext |
|
3036 ac_exeext=$EXEEXT |
|
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3038 /* end confdefs.h. */ |
|
3039 #include <stdio.h> |
|
3040 int |
|
3041 main () |
|
3042 { |
|
3043 FILE *f = fopen ("conftest.out", "w"); |
|
3044 return ferror (f) || fclose (f) != 0; |
|
3045 |
|
3046 ; |
|
3047 return 0; |
|
3048 } |
|
3049 _ACEOF |
|
3050 ac_clean_files="$ac_clean_files conftest.out" |
|
3051 # Check that the compiler produces executables we can run. If not, either |
|
3052 # the compiler is broken, or we cross compile. |
|
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
3054 $as_echo_n "checking whether we are cross compiling... " >&6; } |
|
3055 if test "$cross_compiling" != yes; then |
|
3056 { { ac_try="$ac_link" |
|
3057 case "(($ac_try" in |
|
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3059 *) ac_try_echo=$ac_try;; |
|
3060 esac |
|
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3062 $as_echo "$ac_try_echo"; } >&5 |
|
3063 (eval "$ac_link") 2>&5 |
|
3064 ac_status=$? |
|
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3066 test $ac_status = 0; } |
|
3067 if { ac_try='./conftest$ac_cv_exeext' |
|
3068 { { case "(($ac_try" in |
|
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3070 *) ac_try_echo=$ac_try;; |
|
3071 esac |
|
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3073 $as_echo "$ac_try_echo"; } >&5 |
|
3074 (eval "$ac_try") 2>&5 |
|
3075 ac_status=$? |
|
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3077 test $ac_status = 0; }; }; then |
|
3078 cross_compiling=no |
|
3079 else |
|
3080 if test "$cross_compiling" = maybe; then |
|
3081 cross_compiling=yes |
|
3082 else |
|
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3085 as_fn_error $? "cannot run C compiled programs. |
|
3086 If you meant to cross compile, use \`--host'. |
|
3087 See \`config.log' for more details" "$LINENO" 5; } |
|
3088 fi |
|
3089 fi |
|
3090 fi |
|
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
3092 $as_echo "$cross_compiling" >&6; } |
|
3093 |
|
3094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
3095 ac_clean_files=$ac_clean_files_save |
|
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
3097 $as_echo_n "checking for suffix of object files... " >&6; } |
|
3098 if ${ac_cv_objext+:} false; then : |
|
3099 $as_echo_n "(cached) " >&6 |
|
3100 else |
|
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3102 /* end confdefs.h. */ |
|
3103 |
|
3104 int |
|
3105 main () |
|
3106 { |
|
3107 |
|
3108 ; |
|
3109 return 0; |
|
3110 } |
|
3111 _ACEOF |
|
3112 rm -f conftest.o conftest.obj |
|
3113 if { { ac_try="$ac_compile" |
|
3114 case "(($ac_try" in |
|
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3116 *) ac_try_echo=$ac_try;; |
|
3117 esac |
|
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3119 $as_echo "$ac_try_echo"; } >&5 |
|
3120 (eval "$ac_compile") 2>&5 |
|
3121 ac_status=$? |
|
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3123 test $ac_status = 0; }; then : |
|
3124 for ac_file in conftest.o conftest.obj conftest.*; do |
|
3125 test -f "$ac_file" || continue; |
|
3126 case $ac_file in |
|
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
3129 break;; |
|
3130 esac |
|
3131 done |
|
3132 else |
|
3133 $as_echo "$as_me: failed program was:" >&5 |
|
3134 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3135 |
|
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3138 as_fn_error $? "cannot compute suffix of object files: cannot compile |
|
3139 See \`config.log' for more details" "$LINENO" 5; } |
|
3140 fi |
|
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
3142 fi |
|
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|
3144 $as_echo "$ac_cv_objext" >&6; } |
|
3145 OBJEXT=$ac_cv_objext |
|
3146 ac_objext=$OBJEXT |
|
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|
3148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
3149 if ${ac_cv_c_compiler_gnu+:} false; then : |
|
3150 $as_echo_n "(cached) " >&6 |
|
3151 else |
|
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3153 /* end confdefs.h. */ |
|
3154 |
|
3155 int |
|
3156 main () |
|
3157 { |
|
3158 #ifndef __GNUC__ |
|
3159 choke me |
|
3160 #endif |
|
3161 |
|
3162 ; |
|
3163 return 0; |
|
3164 } |
|
3165 _ACEOF |
|
3166 if ac_fn_c_try_compile "$LINENO"; then : |
|
3167 ac_compiler_gnu=yes |
|
3168 else |
|
3169 ac_compiler_gnu=no |
|
3170 fi |
|
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3172 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3173 |
|
3174 fi |
|
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
3176 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
3177 if test $ac_compiler_gnu = yes; then |
|
3178 GCC=yes |
|
3179 else |
|
3180 GCC= |
|
3181 fi |
|
3182 ac_test_CFLAGS=${CFLAGS+set} |
|
3183 ac_save_CFLAGS=$CFLAGS |
|
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|
3185 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
3186 if ${ac_cv_prog_cc_g+:} false; then : |
|
3187 $as_echo_n "(cached) " >&6 |
|
3188 else |
|
3189 ac_save_c_werror_flag=$ac_c_werror_flag |
|
3190 ac_c_werror_flag=yes |
|
3191 ac_cv_prog_cc_g=no |
|
3192 CFLAGS="-g" |
|
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3194 /* end confdefs.h. */ |
|
3195 |
|
3196 int |
|
3197 main () |
|
3198 { |
|
3199 |
|
3200 ; |
|
3201 return 0; |
|
3202 } |
|
3203 _ACEOF |
|
3204 if ac_fn_c_try_compile "$LINENO"; then : |
|
3205 ac_cv_prog_cc_g=yes |
|
3206 else |
|
3207 CFLAGS="" |
|
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3209 /* end confdefs.h. */ |
|
3210 |
|
3211 int |
|
3212 main () |
|
3213 { |
|
3214 |
|
3215 ; |
|
3216 return 0; |
|
3217 } |
|
3218 _ACEOF |
|
3219 if ac_fn_c_try_compile "$LINENO"; then : |
|
3220 |
|
3221 else |
|
3222 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3223 CFLAGS="-g" |
|
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3225 /* end confdefs.h. */ |
|
3226 |
|
3227 int |
|
3228 main () |
|
3229 { |
|
3230 |
|
3231 ; |
|
3232 return 0; |
|
3233 } |
|
3234 _ACEOF |
|
3235 if ac_fn_c_try_compile "$LINENO"; then : |
|
3236 ac_cv_prog_cc_g=yes |
|
3237 fi |
|
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3239 fi |
|
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3241 fi |
|
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3243 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3244 fi |
|
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|
3246 $as_echo "$ac_cv_prog_cc_g" >&6; } |
|
3247 if test "$ac_test_CFLAGS" = set; then |
|
3248 CFLAGS=$ac_save_CFLAGS |
|
3249 elif test $ac_cv_prog_cc_g = yes; then |
|
3250 if test "$GCC" = yes; then |
|
3251 CFLAGS="-g -O2" |
|
3252 else |
|
3253 CFLAGS="-g" |
|
3254 fi |
|
3255 else |
|
3256 if test "$GCC" = yes; then |
|
3257 CFLAGS="-O2" |
|
3258 else |
|
3259 CFLAGS= |
|
3260 fi |
|
3261 fi |
|
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|
3263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
3264 if ${ac_cv_prog_cc_c89+:} false; then : |
|
3265 $as_echo_n "(cached) " >&6 |
|
3266 else |
|
3267 ac_cv_prog_cc_c89=no |
|
3268 ac_save_CC=$CC |
|
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3270 /* end confdefs.h. */ |
|
3271 #include <stdarg.h> |
|
3272 #include <stdio.h> |
|
3273 #include <sys/types.h> |
|
3274 #include <sys/stat.h> |
|
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3276 struct buf { int x; }; |
|
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3278 static char *e (p, i) |
|
3279 char **p; |
|
3280 int i; |
|
3281 { |
|
3282 return p[i]; |
|
3283 } |
|
3284 static char *f (char * (*g) (char **, int), char **p, ...) |
|
3285 { |
|
3286 char *s; |
|
3287 va_list v; |
|
3288 va_start (v,p); |
|
3289 s = g (p, va_arg (v,int)); |
|
3290 va_end (v); |
|
3291 return s; |
|
3292 } |
|
3293 |
|
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3295 function prototypes and stuff, but not '\xHH' hex character constants. |
|
3296 These don't provoke an error unfortunately, instead are silently treated |
|
3297 as 'x'. The following induces an error, until -std is added to get |
|
3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3299 array size at least. It's necessary to write '\x00'==0 to get something |
|
3300 that's true only with -std. */ |
|
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3302 |
|
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
3304 inside strings and character constants. */ |
|
3305 #define FOO(x) 'x' |
|
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
3307 |
|
3308 int test (int i, double x); |
|
3309 struct s1 {int (*f) (int a);}; |
|
3310 struct s2 {int (*f) (double a);}; |
|
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3312 int argc; |
|
3313 char **argv; |
|
3314 int |
|
3315 main () |
|
3316 { |
|
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3318 ; |
|
3319 return 0; |
|
3320 } |
|
3321 _ACEOF |
|
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3324 do |
|
3325 CC="$ac_save_CC $ac_arg" |
|
3326 if ac_fn_c_try_compile "$LINENO"; then : |
|
3327 ac_cv_prog_cc_c89=$ac_arg |
|
3328 fi |
|
3329 rm -f core conftest.err conftest.$ac_objext |
|
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3331 done |
|
3332 rm -f conftest.$ac_ext |
|
3333 CC=$ac_save_CC |
|
3334 |
|
3335 fi |
|
3336 # AC_CACHE_VAL |
|
3337 case "x$ac_cv_prog_cc_c89" in |
|
3338 x) |
|
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
3340 $as_echo "none needed" >&6; } ;; |
|
3341 xno) |
|
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
3343 $as_echo "unsupported" >&6; } ;; |
|
3344 *) |
|
3345 CC="$CC $ac_cv_prog_cc_c89" |
|
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
3347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
3348 esac |
|
3349 if test "x$ac_cv_prog_cc_c89" != xno; then : |
|
3350 |
|
3351 fi |
|
3352 |
|
3353 ac_ext=c |
|
3354 ac_cpp='$CPP $CPPFLAGS' |
|
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3358 |
|
3359 # Make sure that we try clang++ first, which provides C++11 support. |
|
3360 # The g++ compiler is less likely to support C++11. |
|
3361 ac_ext=cpp |
|
3362 ac_cpp='$CXXCPP $CPPFLAGS' |
|
3363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
3366 if test -z "$CXX"; then |
|
3367 if test -n "$CCC"; then |
|
3368 CXX=$CCC |
|
3369 else |
|
3370 if test -n "$ac_tool_prefix"; then |
|
3371 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
|
3372 do |
|
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3376 $as_echo_n "checking for $ac_word... " >&6; } |
|
3377 if ${ac_cv_prog_CXX+:} false; then : |
|
3378 $as_echo_n "(cached) " >&6 |
|
3379 else |
|
3380 if test -n "$CXX"; then |
|
3381 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
3382 else |
|
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3384 for as_dir in $PATH |
|
3385 do |
|
3386 IFS=$as_save_IFS |
|
3387 test -z "$as_dir" && as_dir=. |
|
3388 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3392 break 2 |
|
3393 fi |
|
3394 done |
|
3395 done |
|
3396 IFS=$as_save_IFS |
|
3397 |
|
3398 fi |
|
3399 fi |
|
3400 CXX=$ac_cv_prog_CXX |
|
3401 if test -n "$CXX"; then |
|
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|
3403 $as_echo "$CXX" >&6; } |
|
3404 else |
|
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3406 $as_echo "no" >&6; } |
|
3407 fi |
|
3408 |
|
3409 |
|
3410 test -n "$CXX" && break |
|
3411 done |
|
3412 fi |
|
3413 if test -z "$CXX"; then |
|
3414 ac_ct_CXX=$CXX |
|
3415 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
|
3416 do |
|
3417 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3418 set dummy $ac_prog; ac_word=$2 |
|
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3420 $as_echo_n "checking for $ac_word... " >&6; } |
|
3421 if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
|
3422 $as_echo_n "(cached) " >&6 |
|
3423 else |
|
3424 if test -n "$ac_ct_CXX"; then |
|
3425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
3426 else |
|
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3428 for as_dir in $PATH |
|
3429 do |
|
3430 IFS=$as_save_IFS |
|
3431 test -z "$as_dir" && as_dir=. |
|
3432 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3434 ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3436 break 2 |
|
3437 fi |
|
3438 done |
|
3439 done |
|
3440 IFS=$as_save_IFS |
|
3441 |
|
3442 fi |
|
3443 fi |
|
3444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
3445 if test -n "$ac_ct_CXX"; then |
|
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
|
3447 $as_echo "$ac_ct_CXX" >&6; } |
|
3448 else |
|
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3450 $as_echo "no" >&6; } |
|
3451 fi |
|
3452 |
|
3453 |
|
3454 test -n "$ac_ct_CXX" && break |
|
3455 done |
|
3456 |
|
3457 if test "x$ac_ct_CXX" = x; then |
|
3458 CXX="g++" |
|
3459 else |
|
3460 case $cross_compiling:$ac_tool_warned in |
|
3461 yes:) |
|
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3464 ac_tool_warned=yes ;; |
|
3465 esac |
|
3466 CXX=$ac_ct_CXX |
|
3467 fi |
|
3468 fi |
|
3469 |
|
3470 fi |
|
3471 fi |
|
3472 # Provide some information about the compiler. |
|
3473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
|
3474 set X $ac_compile |
|
3475 ac_compiler=$2 |
|
3476 for ac_option in --version -v -V -qversion; do |
|
3477 { { ac_try="$ac_compiler $ac_option >&5" |
|
3478 case "(($ac_try" in |
|
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3480 *) ac_try_echo=$ac_try;; |
|
3481 esac |
|
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3483 $as_echo "$ac_try_echo"; } >&5 |
|
3484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
3485 ac_status=$? |
|
3486 if test -s conftest.err; then |
|
3487 sed '10a\ |
|
3488 ... rest of stderr output deleted ... |
|
3489 10q' conftest.err >conftest.er1 |
|
3490 cat conftest.er1 >&5 |
|
3491 fi |
|
3492 rm -f conftest.er1 conftest.err |
|
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3494 test $ac_status = 0; } |
|
3495 done |
|
3496 |
|
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
|
3498 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
|
3499 if ${ac_cv_cxx_compiler_gnu+:} false; then : |
|
3500 $as_echo_n "(cached) " >&6 |
|
3501 else |
|
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3503 /* end confdefs.h. */ |
|
3504 |
|
3505 int |
|
3506 main () |
|
3507 { |
|
3508 #ifndef __GNUC__ |
|
3509 choke me |
|
3510 #endif |
|
3511 |
|
3512 ; |
|
3513 return 0; |
|
3514 } |
|
3515 _ACEOF |
|
3516 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
3517 ac_compiler_gnu=yes |
|
3518 else |
|
3519 ac_compiler_gnu=no |
|
3520 fi |
|
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3522 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
3523 |
|
3524 fi |
|
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
3526 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
|
3527 if test $ac_compiler_gnu = yes; then |
|
3528 GXX=yes |
|
3529 else |
|
3530 GXX= |
|
3531 fi |
|
3532 ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
3533 ac_save_CXXFLAGS=$CXXFLAGS |
|
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
|
3535 $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
|
3536 if ${ac_cv_prog_cxx_g+:} false; then : |
|
3537 $as_echo_n "(cached) " >&6 |
|
3538 else |
|
3539 ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
3540 ac_cxx_werror_flag=yes |
|
3541 ac_cv_prog_cxx_g=no |
|
3542 CXXFLAGS="-g" |
|
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3544 /* end confdefs.h. */ |
|
3545 |
|
3546 int |
|
3547 main () |
|
3548 { |
|
3549 |
|
3550 ; |
|
3551 return 0; |
|
3552 } |
|
3553 _ACEOF |
|
3554 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
3555 ac_cv_prog_cxx_g=yes |
|
3556 else |
|
3557 CXXFLAGS="" |
|
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3559 /* end confdefs.h. */ |
|
3560 |
|
3561 int |
|
3562 main () |
|
3563 { |
|
3564 |
|
3565 ; |
|
3566 return 0; |
|
3567 } |
|
3568 _ACEOF |
|
3569 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
3570 |
|
3571 else |
|
3572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
3573 CXXFLAGS="-g" |
|
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3575 /* end confdefs.h. */ |
|
3576 |
|
3577 int |
|
3578 main () |
|
3579 { |
|
3580 |
|
3581 ; |
|
3582 return 0; |
|
3583 } |
|
3584 _ACEOF |
|
3585 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
3586 ac_cv_prog_cxx_g=yes |
|
3587 fi |
|
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3589 fi |
|
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3591 fi |
|
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
3594 fi |
|
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
|
3596 $as_echo "$ac_cv_prog_cxx_g" >&6; } |
|
3597 if test "$ac_test_CXXFLAGS" = set; then |
|
3598 CXXFLAGS=$ac_save_CXXFLAGS |
|
3599 elif test $ac_cv_prog_cxx_g = yes; then |
|
3600 if test "$GXX" = yes; then |
|
3601 CXXFLAGS="-g -O2" |
|
3602 else |
|
3603 CXXFLAGS="-g" |
|
3604 fi |
|
3605 else |
|
3606 if test "$GXX" = yes; then |
|
3607 CXXFLAGS="-O2" |
|
3608 else |
|
3609 CXXFLAGS= |
|
3610 fi |
|
3611 fi |
|
3612 ac_ext=c |
|
3613 ac_cpp='$CPP $CPPFLAGS' |
|
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3617 |
|
3618 |
|
3619 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option |
|
3620 # The release mode use is the default one for autoconf |
|
3621 if test "$GCC" = yes; then |
|
3622 if test "$CFLAGS" = ""; then |
|
3623 if test "$ENABLE_DEBUG" = 1; then |
|
3624 CFLAGS=-g |
|
3625 fi |
|
3626 if test "$ENABLE_RELEASE" = 1; then |
|
3627 CFLAGS="$CFLAGS -O2" |
|
3628 fi |
|
3629 fi |
|
3630 if test "$CXXFLAGS" = ""; then |
|
3631 if test "$ENABLE_DEBUG" = 1; then |
|
3632 CXXFLAGS=-g |
|
3633 fi |
|
3634 if test "$ENABLE_RELEASE" = 1; then |
|
3635 CXXFLAGS="$CXXFLAGS -O2" |
|
3636 fi |
|
3637 fi |
|
3638 fi |
|
3639 |
|
3640 ac_ext=c |
|
3641 ac_cpp='$CPP $CPPFLAGS' |
|
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
3646 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
3647 # On Suns, sometimes $CPP names a directory. |
|
3648 if test -n "$CPP" && test -d "$CPP"; then |
|
3649 CPP= |
|
3650 fi |
|
3651 if test -z "$CPP"; then |
|
3652 if ${ac_cv_prog_CPP+:} false; then : |
|
3653 $as_echo_n "(cached) " >&6 |
|
3654 else |
|
3655 # Double quotes because CPP needs to be expanded |
|
3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
3657 do |
|
3658 ac_preproc_ok=false |
|
3659 for ac_c_preproc_warn_flag in '' yes |
|
3660 do |
|
3661 # Use a header file that comes with gcc, so configuring glibc |
|
3662 # with a fresh cross-compiler works. |
|
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3664 # <limits.h> exists even on freestanding compilers. |
|
3665 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
3666 # not just through cpp. "Syntax error" is here to catch this case. |
|
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3668 /* end confdefs.h. */ |
|
3669 #ifdef __STDC__ |
|
3670 # include <limits.h> |
|
3671 #else |
|
3672 # include <assert.h> |
|
3673 #endif |
|
3674 Syntax error |
|
3675 _ACEOF |
|
3676 if ac_fn_c_try_cpp "$LINENO"; then : |
|
3677 |
|
3678 else |
|
3679 # Broken: fails on valid input. |
|
3680 continue |
|
3681 fi |
|
3682 rm -f conftest.err conftest.i conftest.$ac_ext |
|
3683 |
|
3684 # OK, works on sane cases. Now check whether nonexistent headers |
|
3685 # can be detected and how. |
|
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3687 /* end confdefs.h. */ |
|
3688 #include <ac_nonexistent.h> |
|
3689 _ACEOF |
|
3690 if ac_fn_c_try_cpp "$LINENO"; then : |
|
3691 # Broken: success on invalid input. |
|
3692 continue |
|
3693 else |
|
3694 # Passes both tests. |
|
3695 ac_preproc_ok=: |
|
3696 break |
|
3697 fi |
|
3698 rm -f conftest.err conftest.i conftest.$ac_ext |
|
3699 |
|
3700 done |
|
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3702 rm -f conftest.i conftest.err conftest.$ac_ext |
|
3703 if $ac_preproc_ok; then : |
|
3704 break |
|
3705 fi |
|
3706 |
|
3707 done |
|
3708 ac_cv_prog_CPP=$CPP |
|
3709 |
|
3710 fi |
|
3711 CPP=$ac_cv_prog_CPP |
|
3712 else |
|
3713 ac_cv_prog_CPP=$CPP |
|
3714 fi |
|
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
3716 $as_echo "$CPP" >&6; } |
|
3717 ac_preproc_ok=false |
|
3718 for ac_c_preproc_warn_flag in '' yes |
|
3719 do |
|
3720 # Use a header file that comes with gcc, so configuring glibc |
|
3721 # with a fresh cross-compiler works. |
|
3722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3723 # <limits.h> exists even on freestanding compilers. |
|
3724 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
3725 # not just through cpp. "Syntax error" is here to catch this case. |
|
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3727 /* end confdefs.h. */ |
|
3728 #ifdef __STDC__ |
|
3729 # include <limits.h> |
|
3730 #else |
|
3731 # include <assert.h> |
|
3732 #endif |
|
3733 Syntax error |
|
3734 _ACEOF |
|
3735 if ac_fn_c_try_cpp "$LINENO"; then : |
|
3736 |
|
3737 else |
|
3738 # Broken: fails on valid input. |
|
3739 continue |
|
3740 fi |
|
3741 rm -f conftest.err conftest.i conftest.$ac_ext |
|
3742 |
|
3743 # OK, works on sane cases. Now check whether nonexistent headers |
|
3744 # can be detected and how. |
|
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3746 /* end confdefs.h. */ |
|
3747 #include <ac_nonexistent.h> |
|
3748 _ACEOF |
|
3749 if ac_fn_c_try_cpp "$LINENO"; then : |
|
3750 # Broken: success on invalid input. |
|
3751 continue |
|
3752 else |
|
3753 # Passes both tests. |
|
3754 ac_preproc_ok=: |
|
3755 break |
|
3756 fi |
|
3757 rm -f conftest.err conftest.i conftest.$ac_ext |
|
3758 |
|
3759 done |
|
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3761 rm -f conftest.i conftest.err conftest.$ac_ext |
|
3762 if $ac_preproc_ok; then : |
|
3763 |
|
3764 else |
|
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3767 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
3768 See \`config.log' for more details" "$LINENO" 5; } |
|
3769 fi |
|
3770 |
|
3771 ac_ext=c |
|
3772 ac_cpp='$CPP $CPPFLAGS' |
|
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3776 |
|
3777 |
|
3778 # Find a good install program. We prefer a C program (faster), |
|
3779 # so one script is as good as another. But avoid the broken or |
|
3780 # incompatible versions: |
|
3781 # SysV /etc/install, /usr/sbin/install |
|
3782 # SunOS /usr/etc/install |
|
3783 # IRIX /sbin/install |
|
3784 # AIX /bin/install |
|
3785 # AmigaOS /C/install, which installs bootblocks on floppy discs |
|
3786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
3787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
3788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
3789 # OS/2's system install, which has a completely different semantic |
|
3790 # ./install, which can be erroneously created by make from ./install.sh. |
|
3791 # Reject install programs that cannot install multiple files. |
|
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
|
3793 $as_echo_n "checking for a BSD-compatible install... " >&6; } |
|
3794 if test -z "$INSTALL"; then |
|
3795 if ${ac_cv_path_install+:} false; then : |
|
3796 $as_echo_n "(cached) " >&6 |
|
3797 else |
|
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3799 for as_dir in $PATH |
|
3800 do |
|
3801 IFS=$as_save_IFS |
|
3802 test -z "$as_dir" && as_dir=. |
|
3803 # Account for people who put trailing slashes in PATH elements. |
|
3804 case $as_dir/ in #(( |
|
3805 ./ | .// | /[cC]/* | \ |
|
3806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
3807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
|
3808 /usr/ucb/* ) ;; |
|
3809 *) |
|
3810 # OSF1 and SCO ODT 3.0 have their own names for install. |
|
3811 # Don't use installbsd from OSF since it installs stuff as root |
|
3812 # by default. |
|
3813 for ac_prog in ginstall scoinst install; do |
|
3814 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3815 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|
3816 if test $ac_prog = install && |
|
3817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
3818 # AIX install. It has an incompatible calling convention. |
|
3819 : |
|
3820 elif test $ac_prog = install && |
|
3821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
3822 # program-specific install script used by HP pwplus--don't use. |
|
3823 : |
|
3824 else |
|
3825 rm -rf conftest.one conftest.two conftest.dir |
|
3826 echo one > conftest.one |
|
3827 echo two > conftest.two |
|
3828 mkdir conftest.dir |
|
3829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
|
3830 test -s conftest.one && test -s conftest.two && |
|
3831 test -s conftest.dir/conftest.one && |
|
3832 test -s conftest.dir/conftest.two |
|
3833 then |
|
3834 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
3835 break 3 |
|
3836 fi |
|
3837 fi |
|
3838 fi |
|
3839 done |
|
3840 done |
|
3841 ;; |
|
3842 esac |
|
3843 |
|
3844 done |
|
3845 IFS=$as_save_IFS |
|
3846 |
|
3847 rm -rf conftest.one conftest.two conftest.dir |
|
3848 |
|
3849 fi |
|
3850 if test "${ac_cv_path_install+set}" = set; then |
|
3851 INSTALL=$ac_cv_path_install |
|
3852 else |
|
3853 # As a last resort, use the slow shell script. Don't cache a |
|
3854 # value for INSTALL within a source directory, because that will |
|
3855 # break other packages using the cache if that directory is |
|
3856 # removed, or if the value is a relative name. |
|
3857 INSTALL=$ac_install_sh |
|
3858 fi |
|
3859 fi |
|
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
|
3861 $as_echo "$INSTALL" >&6; } |
|
3862 |
|
3863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
3864 # It thinks the first close brace ends the variable substitution. |
|
3865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
3866 |
|
3867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
3868 |
|
3869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
3870 |
|
3871 |
|
3872 |
|
3873 |
|
3874 ac_ext=cpp |
|
3875 ac_cpp='$CXXCPP $CPPFLAGS' |
|
3876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
3879 |
|
3880 |
|
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3882 /* end confdefs.h. */ |
|
3883 |
|
3884 int |
|
3885 main () |
|
3886 { |
|
3887 |
|
3888 ; |
|
3889 return 0; |
|
3890 } |
|
3891 _ACEOF |
|
3892 if ac_fn_cxx_try_link "$LINENO"; then : |
|
3893 |
|
3894 fi |
|
3895 rm -f core conftest.err conftest.$ac_objext \ |
|
3896 conftest$ac_exeext conftest.$ac_ext |
|
3897 ac_ext=c |
|
3898 ac_cpp='$CPP $CPPFLAGS' |
|
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3902 |
|
3903 |
|
3904 # make sure install is relative to srcdir - if a script |
|
3905 if test "$srcdir" = "."; then |
|
3906 # If srcdir isn't just ., then (srcdir) is already prepended. |
|
3907 if test "${ac_install_sh}" = "${INSTALL}"; then |
|
3908 INSTALL="\\\$(top_srcdir)/${ac_install_sh}" |
|
3909 fi |
|
3910 fi |
|
3911 |
|
3912 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) |
|
3913 #AC_CHECK_PROG(STRIP, strip, strip, true) |
|
3914 |
|
3915 # Check for the platform make |
|
3916 for ac_prog in gmake gnumake |
|
3917 do |
|
3918 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3919 set dummy $ac_prog; ac_word=$2 |
|
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3921 $as_echo_n "checking for $ac_word... " >&6; } |
|
3922 if ${ac_cv_path_U_MAKE+:} false; then : |
|
3923 $as_echo_n "(cached) " >&6 |
|
3924 else |
|
3925 case $U_MAKE in |
|
3926 [\\/]* | ?:[\\/]*) |
|
3927 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. |
|
3928 ;; |
|
3929 *) |
|
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3931 for as_dir in $PATH |
|
3932 do |
|
3933 IFS=$as_save_IFS |
|
3934 test -z "$as_dir" && as_dir=. |
|
3935 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3937 ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" |
|
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3939 break 2 |
|
3940 fi |
|
3941 done |
|
3942 done |
|
3943 IFS=$as_save_IFS |
|
3944 |
|
3945 ;; |
|
3946 esac |
|
3947 fi |
|
3948 U_MAKE=$ac_cv_path_U_MAKE |
|
3949 if test -n "$U_MAKE"; then |
|
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5 |
|
3951 $as_echo "$U_MAKE" >&6; } |
|
3952 else |
|
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3954 $as_echo "no" >&6; } |
|
3955 fi |
|
3956 |
|
3957 |
|
3958 test -n "$U_MAKE" && break |
|
3959 done |
|
3960 test -n "$U_MAKE" || U_MAKE="make" |
|
3961 |
|
3962 |
|
3963 |
|
3964 |
|
3965 |
|
3966 # Check whether --with-cross-build was given. |
|
3967 if test "${with_cross_build+set}" = set; then : |
|
3968 withval=$with_cross_build; cross_buildroot="${withval}" |
|
3969 else |
|
3970 cross_buildroot="" |
|
3971 fi |
|
3972 |
|
3973 |
|
3974 if test "X$cross_buildroot" = "X"; then |
|
3975 if test "$cross_compiling" = "yes"; then |
|
3976 as_fn_error $? "Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" "$LINENO" 5 |
|
3977 fi |
|
3978 else |
|
3979 if test -f "${cross_buildroot}/config/icucross.mk"; then |
|
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5 |
|
3981 $as_echo "Using cross buildroot: $cross_buildroot" >&6; } |
|
3982 else |
|
3983 if test -d "${cross_buildroot}"; then |
|
3984 as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5 |
|
3985 else |
|
3986 as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5 |
|
3987 fi |
|
3988 fi |
|
3989 fi |
|
3990 |
|
3991 |
|
3992 # Check for doxygen to generate documentation |
|
3993 # Extract the first word of "doxygen", so it can be a program name with args. |
|
3994 set dummy doxygen; ac_word=$2 |
|
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3996 $as_echo_n "checking for $ac_word... " >&6; } |
|
3997 if ${ac_cv_path_DOXYGEN+:} false; then : |
|
3998 $as_echo_n "(cached) " >&6 |
|
3999 else |
|
4000 case $DOXYGEN in |
|
4001 [\\/]* | ?:[\\/]*) |
|
4002 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
|
4003 ;; |
|
4004 *) |
|
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4006 as_dummy="$PATH:/usr/local/bin:/usr/bin" |
|
4007 for as_dir in $as_dummy |
|
4008 do |
|
4009 IFS=$as_save_IFS |
|
4010 test -z "$as_dir" && as_dir=. |
|
4011 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4013 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
|
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4015 break 2 |
|
4016 fi |
|
4017 done |
|
4018 done |
|
4019 IFS=$as_save_IFS |
|
4020 |
|
4021 ;; |
|
4022 esac |
|
4023 fi |
|
4024 DOXYGEN=$ac_cv_path_DOXYGEN |
|
4025 if test -n "$DOXYGEN"; then |
|
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
|
4027 $as_echo "$DOXYGEN" >&6; } |
|
4028 else |
|
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4030 $as_echo "no" >&6; } |
|
4031 fi |
|
4032 |
|
4033 |
|
4034 |
|
4035 # Check that the linker is usable |
|
4036 |
|
4037 case "${host}" in |
|
4038 *-*-cygwin*|*-*-mingw*) |
|
4039 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then |
|
4040 as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect. |
|
4041 Please follow the directions in ICU's readme." "$LINENO" 5 |
|
4042 fi;; |
|
4043 *);; |
|
4044 esac |
|
4045 |
|
4046 # Determine the executable suffix |
|
4047 # We don't use AC_EXEEXT because some compilers output separate debugging |
|
4048 # files, which confuses the AC_EXEEXT macro. |
|
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5 |
|
4050 $as_echo_n "checking checking for executable suffix... " >&6; } |
|
4051 case "${host}" in |
|
4052 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; |
|
4053 *) EXEEXT="" ;; |
|
4054 esac |
|
4055 ac_exeext=$EXEEXT |
|
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
|
4057 $as_echo "$EXEEXT" >&6; } |
|
4058 |
|
4059 |
|
4060 # Determine how strict we want to be when compiling |
|
4061 |
|
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5 |
|
4063 $as_echo_n "checking whether strict compiling is on... " >&6; } |
|
4064 # Check whether --enable-strict was given. |
|
4065 if test "${enable_strict+set}" = set; then : |
|
4066 enableval=$enable_strict; |
|
4067 if test "$enableval" = no |
|
4068 then |
|
4069 ac_use_strict_options=no |
|
4070 else |
|
4071 ac_use_strict_options=yes |
|
4072 fi |
|
4073 |
|
4074 else |
|
4075 ac_use_strict_options=yes |
|
4076 fi |
|
4077 |
|
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5 |
|
4079 $as_echo "$ac_use_strict_options" >&6; } |
|
4080 |
|
4081 if test "$ac_use_strict_options" = yes |
|
4082 then |
|
4083 if test "$GCC" = yes |
|
4084 then |
|
4085 case "${host}" in |
|
4086 *-*-solaris*) |
|
4087 # Don't use -std=c99 option on Solaris/GCC |
|
4088 ;; |
|
4089 *) |
|
4090 # Do not use -ansi. It limits us to C90, and it breaks some platforms. |
|
4091 # We use -std=c99 to disable the gnu99 defaults and its associated warnings |
|
4092 CFLAGS="$CFLAGS -std=c99" |
|
4093 ;; |
|
4094 esac |
|
4095 |
|
4096 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" |
|
4097 else |
|
4098 case "${host}" in |
|
4099 *-*-cygwin) |
|
4100 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" |
|
4101 then |
|
4102 CFLAGS="$CFLAGS /W4" |
|
4103 fi ;; |
|
4104 *-*-mingw32|*-*-mingw64) |
|
4105 CFLAGS="$CFLAGS -W4" ;; |
|
4106 esac |
|
4107 fi |
|
4108 if test "$GXX" = yes |
|
4109 then |
|
4110 CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" |
|
4111 else |
|
4112 case "${host}" in |
|
4113 *-*-cygwin) |
|
4114 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" |
|
4115 then |
|
4116 CXXFLAGS="$CXXFLAGS /W4" |
|
4117 fi ;; |
|
4118 *-*-mingw32|*-*-mingw64) |
|
4119 CFLAGS="$CFLAGS -W4" ;; |
|
4120 esac |
|
4121 fi |
|
4122 fi |
|
4123 |
|
4124 |
|
4125 # Check if we can build and use 64-bit libraries |
|
4126 |
|
4127 |
|
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
4129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
4130 if ${ac_cv_path_GREP+:} false; then : |
|
4131 $as_echo_n "(cached) " >&6 |
|
4132 else |
|
4133 if test -z "$GREP"; then |
|
4134 ac_path_GREP_found=false |
|
4135 # Loop through the user's path and test for each of PROGNAME-LIST |
|
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4138 do |
|
4139 IFS=$as_save_IFS |
|
4140 test -z "$as_dir" && as_dir=. |
|
4141 for ac_prog in grep ggrep; do |
|
4142 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4144 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
4145 # Check for GNU ac_path_GREP and select it if it is found. |
|
4146 # Check for GNU $ac_path_GREP |
|
4147 case `"$ac_path_GREP" --version 2>&1` in |
|
4148 *GNU*) |
|
4149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
4150 *) |
|
4151 ac_count=0 |
|
4152 $as_echo_n 0123456789 >"conftest.in" |
|
4153 while : |
|
4154 do |
|
4155 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4156 mv "conftest.tmp" "conftest.in" |
|
4157 cp "conftest.in" "conftest.nl" |
|
4158 $as_echo 'GREP' >> "conftest.nl" |
|
4159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4162 if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
4163 # Best one so far, save it but keep looking for a better one |
|
4164 ac_cv_path_GREP="$ac_path_GREP" |
|
4165 ac_path_GREP_max=$ac_count |
|
4166 fi |
|
4167 # 10*(2^10) chars as input seems more than enough |
|
4168 test $ac_count -gt 10 && break |
|
4169 done |
|
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4171 esac |
|
4172 |
|
4173 $ac_path_GREP_found && break 3 |
|
4174 done |
|
4175 done |
|
4176 done |
|
4177 IFS=$as_save_IFS |
|
4178 if test -z "$ac_cv_path_GREP"; then |
|
4179 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4180 fi |
|
4181 else |
|
4182 ac_cv_path_GREP=$GREP |
|
4183 fi |
|
4184 |
|
4185 fi |
|
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
4187 $as_echo "$ac_cv_path_GREP" >&6; } |
|
4188 GREP="$ac_cv_path_GREP" |
|
4189 |
|
4190 |
|
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
4192 $as_echo_n "checking for egrep... " >&6; } |
|
4193 if ${ac_cv_path_EGREP+:} false; then : |
|
4194 $as_echo_n "(cached) " >&6 |
|
4195 else |
|
4196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
4197 then ac_cv_path_EGREP="$GREP -E" |
|
4198 else |
|
4199 if test -z "$EGREP"; then |
|
4200 ac_path_EGREP_found=false |
|
4201 # Loop through the user's path and test for each of PROGNAME-LIST |
|
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4204 do |
|
4205 IFS=$as_save_IFS |
|
4206 test -z "$as_dir" && as_dir=. |
|
4207 for ac_prog in egrep; do |
|
4208 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
4211 # Check for GNU ac_path_EGREP and select it if it is found. |
|
4212 # Check for GNU $ac_path_EGREP |
|
4213 case `"$ac_path_EGREP" --version 2>&1` in |
|
4214 *GNU*) |
|
4215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
4216 *) |
|
4217 ac_count=0 |
|
4218 $as_echo_n 0123456789 >"conftest.in" |
|
4219 while : |
|
4220 do |
|
4221 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4222 mv "conftest.tmp" "conftest.in" |
|
4223 cp "conftest.in" "conftest.nl" |
|
4224 $as_echo 'EGREP' >> "conftest.nl" |
|
4225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4227 as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
4229 # Best one so far, save it but keep looking for a better one |
|
4230 ac_cv_path_EGREP="$ac_path_EGREP" |
|
4231 ac_path_EGREP_max=$ac_count |
|
4232 fi |
|
4233 # 10*(2^10) chars as input seems more than enough |
|
4234 test $ac_count -gt 10 && break |
|
4235 done |
|
4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4237 esac |
|
4238 |
|
4239 $ac_path_EGREP_found && break 3 |
|
4240 done |
|
4241 done |
|
4242 done |
|
4243 IFS=$as_save_IFS |
|
4244 if test -z "$ac_cv_path_EGREP"; then |
|
4245 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4246 fi |
|
4247 else |
|
4248 ac_cv_path_EGREP=$EGREP |
|
4249 fi |
|
4250 |
|
4251 fi |
|
4252 fi |
|
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
4254 $as_echo "$ac_cv_path_EGREP" >&6; } |
|
4255 EGREP="$ac_cv_path_EGREP" |
|
4256 |
|
4257 |
|
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
4259 $as_echo_n "checking for ANSI C header files... " >&6; } |
|
4260 if ${ac_cv_header_stdc+:} false; then : |
|
4261 $as_echo_n "(cached) " >&6 |
|
4262 else |
|
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4264 /* end confdefs.h. */ |
|
4265 #include <stdlib.h> |
|
4266 #include <stdarg.h> |
|
4267 #include <string.h> |
|
4268 #include <float.h> |
|
4269 |
|
4270 int |
|
4271 main () |
|
4272 { |
|
4273 |
|
4274 ; |
|
4275 return 0; |
|
4276 } |
|
4277 _ACEOF |
|
4278 if ac_fn_c_try_compile "$LINENO"; then : |
|
4279 ac_cv_header_stdc=yes |
|
4280 else |
|
4281 ac_cv_header_stdc=no |
|
4282 fi |
|
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4284 |
|
4285 if test $ac_cv_header_stdc = yes; then |
|
4286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4288 /* end confdefs.h. */ |
|
4289 #include <string.h> |
|
4290 |
|
4291 _ACEOF |
|
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4293 $EGREP "memchr" >/dev/null 2>&1; then : |
|
4294 |
|
4295 else |
|
4296 ac_cv_header_stdc=no |
|
4297 fi |
|
4298 rm -f conftest* |
|
4299 |
|
4300 fi |
|
4301 |
|
4302 if test $ac_cv_header_stdc = yes; then |
|
4303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4305 /* end confdefs.h. */ |
|
4306 #include <stdlib.h> |
|
4307 |
|
4308 _ACEOF |
|
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4310 $EGREP "free" >/dev/null 2>&1; then : |
|
4311 |
|
4312 else |
|
4313 ac_cv_header_stdc=no |
|
4314 fi |
|
4315 rm -f conftest* |
|
4316 |
|
4317 fi |
|
4318 |
|
4319 if test $ac_cv_header_stdc = yes; then |
|
4320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
4321 if test "$cross_compiling" = yes; then : |
|
4322 : |
|
4323 else |
|
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4325 /* end confdefs.h. */ |
|
4326 #include <ctype.h> |
|
4327 #include <stdlib.h> |
|
4328 #if ((' ' & 0x0FF) == 0x020) |
|
4329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
4330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
4331 #else |
|
4332 # define ISLOWER(c) \ |
|
4333 (('a' <= (c) && (c) <= 'i') \ |
|
4334 || ('j' <= (c) && (c) <= 'r') \ |
|
4335 || ('s' <= (c) && (c) <= 'z')) |
|
4336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
4337 #endif |
|
4338 |
|
4339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
4340 int |
|
4341 main () |
|
4342 { |
|
4343 int i; |
|
4344 for (i = 0; i < 256; i++) |
|
4345 if (XOR (islower (i), ISLOWER (i)) |
|
4346 || toupper (i) != TOUPPER (i)) |
|
4347 return 2; |
|
4348 return 0; |
|
4349 } |
|
4350 _ACEOF |
|
4351 if ac_fn_c_try_run "$LINENO"; then : |
|
4352 |
|
4353 else |
|
4354 ac_cv_header_stdc=no |
|
4355 fi |
|
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4357 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4358 fi |
|
4359 |
|
4360 fi |
|
4361 fi |
|
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
4363 $as_echo "$ac_cv_header_stdc" >&6; } |
|
4364 if test $ac_cv_header_stdc = yes; then |
|
4365 |
|
4366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
4367 |
|
4368 fi |
|
4369 |
|
4370 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
4371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
4372 inttypes.h stdint.h unistd.h |
|
4373 do : |
|
4374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
4375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
4376 " |
|
4377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
4378 cat >>confdefs.h <<_ACEOF |
|
4379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
4380 _ACEOF |
|
4381 |
|
4382 fi |
|
4383 |
|
4384 done |
|
4385 |
|
4386 |
|
4387 |
|
4388 BITS_REQ=nochange |
|
4389 ENABLE_64BIT_LIBS=unknown |
|
4390 ## revisit this for cross-compile. |
|
4391 |
|
4392 # Check whether --enable-64bit-libs was given. |
|
4393 if test "${enable_64bit_libs+set}" = set; then : |
|
4394 enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs" |
|
4395 case "${enableval}" in |
|
4396 no|false|32) with_library_bits=32; ;; |
|
4397 yes|true|64) with_library_bits=64else32 ;; |
|
4398 nochange) with_library_bits=nochange; ;; |
|
4399 *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;; |
|
4400 esac |
|
4401 fi |
|
4402 |
|
4403 |
|
4404 |
|
4405 |
|
4406 # Check whether --with-library-bits was given. |
|
4407 if test "${with_library_bits+set}" = set; then : |
|
4408 withval=$with_library_bits; case "${withval}" in |
|
4409 ""|nochange) BITS_REQ=$withval ;; |
|
4410 32|64|64else32) BITS_REQ=$withval ;; |
|
4411 *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;; |
|
4412 esac |
|
4413 fi |
|
4414 |
|
4415 |
|
4416 # don't use these for cross compiling |
|
4417 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then |
|
4418 as_fn_error $? "Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5 |
|
4419 fi |
|
4420 # The cast to long int works around a bug in the HP C Compiler |
|
4421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
4422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
4423 # This bug is HP SR number 8606223364. |
|
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
|
4425 $as_echo_n "checking size of void *... " >&6; } |
|
4426 if ${ac_cv_sizeof_void_p+:} false; then : |
|
4427 $as_echo_n "(cached) " >&6 |
|
4428 else |
|
4429 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
|
4430 |
|
4431 else |
|
4432 if test "$ac_cv_type_void_p" = yes; then |
|
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4435 as_fn_error 77 "cannot compute sizeof (void *) |
|
4436 See \`config.log' for more details" "$LINENO" 5; } |
|
4437 else |
|
4438 ac_cv_sizeof_void_p=0 |
|
4439 fi |
|
4440 fi |
|
4441 |
|
4442 fi |
|
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
|
4444 $as_echo "$ac_cv_sizeof_void_p" >&6; } |
|
4445 |
|
4446 |
|
4447 |
|
4448 cat >>confdefs.h <<_ACEOF |
|
4449 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
|
4450 _ACEOF |
|
4451 |
|
4452 |
|
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5 |
|
4454 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; } |
|
4455 case $ac_cv_sizeof_void_p in |
|
4456 8) DEFAULT_64BIT=yes ;; |
|
4457 4) DEFAULT_64BIT=no ;; |
|
4458 *) DEFAULT_64BIT=unknown |
|
4459 esac |
|
4460 BITS_GOT=unknown |
|
4461 |
|
4462 # 'OK' here means, we can exit any further checking, everything's copa |
|
4463 BITS_OK=yes |
|
4464 |
|
4465 # do we need to check for buildable/runnable 32 or 64 bit? |
|
4466 BITS_CHECK_32=no |
|
4467 BITS_CHECK_64=no |
|
4468 |
|
4469 # later, can we run the 32/64 bit binaries so made? |
|
4470 BITS_RUN_32=no |
|
4471 BITS_RUN_64=no |
|
4472 |
|
4473 if test "$DEFAULT_64BIT" = "yes"; then |
|
4474 # we get 64 bits by default. |
|
4475 BITS_GOT=64 |
|
4476 case "$BITS_REQ" in |
|
4477 32) |
|
4478 # need to look for 32 bit support. |
|
4479 BITS_CHECK_32=yes |
|
4480 # not copa. |
|
4481 BITS_OK=no;; |
|
4482 # everyone else is happy. |
|
4483 nochange) ;; |
|
4484 *) ;; |
|
4485 esac |
|
4486 elif test "$DEFAULT_64BIT" = "no"; then |
|
4487 # not 64 bit by default. |
|
4488 BITS_GOT=32 |
|
4489 case "$BITS_REQ" in |
|
4490 64|64else32) |
|
4491 BITS_CHECK_64=yes |
|
4492 #BITS_CHECK_32=yes |
|
4493 BITS_OK=no;; |
|
4494 nochange) ;; |
|
4495 *) ;; |
|
4496 esac |
|
4497 elif test "$DEFAULT_64BIT" = "unknown"; then |
|
4498 # cross compiling. |
|
4499 BITS_GOT=unknown |
|
4500 case "$BITS_REQ" in |
|
4501 64|64else32) BITS_OK=no |
|
4502 BITS_CHECK_32=yes |
|
4503 BITS_CHECK_64=yes ;; |
|
4504 32) BITS_OK=no;; |
|
4505 nochange) ;; |
|
4506 *) ;; |
|
4507 esac |
|
4508 fi |
|
4509 |
|
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5 |
|
4511 $as_echo "$DEFAULT_64BIT" >&6; }; |
|
4512 |
|
4513 if test "$BITS_OK" != "yes"; then |
|
4514 # not copa. back these up. |
|
4515 CFLAGS_OLD="${CFLAGS}" |
|
4516 CXXFLAGS_OLD="${CXXFLAGS}" |
|
4517 LDFLAGS_OLD="${LDFLAGS}" |
|
4518 ARFLAGS_OLD="${ARFLAGS}" |
|
4519 |
|
4520 CFLAGS_32="${CFLAGS}" |
|
4521 CXXFLAGS_32="${CXXFLAGS}" |
|
4522 LDFLAGS_32="${LDFLAGS}" |
|
4523 ARFLAGS_32="${ARFLAGS}" |
|
4524 |
|
4525 CFLAGS_64="${CFLAGS}" |
|
4526 CXXFLAGS_64="${CXXFLAGS}" |
|
4527 LDFLAGS_64="${LDFLAGS}" |
|
4528 ARFLAGS_64="${ARFLAGS}" |
|
4529 |
|
4530 CAN_BUILD_64=unknown |
|
4531 CAN_BUILD_32=unknown |
|
4532 # These results can't be cached because is sets compiler flags. |
|
4533 if test "$BITS_CHECK_64" = "yes"; then |
|
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5 |
|
4535 $as_echo_n "checking how to build 64-bit executables... " >&6; } |
|
4536 CAN_BUILD_64=no |
|
4537 #### |
|
4538 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it. |
|
4539 # Note, we don't have to actually check if the options work- we'll try them before using them. |
|
4540 # So, only try actually testing the options, if you are trying to decide between multiple options. |
|
4541 # On exit from the following clauses: |
|
4542 # if CAN_BUILD_64=yes: |
|
4543 # *FLAGS are assumed to contain the right settings for 64bit |
|
4544 # else if CAN_BUILD_64=no: (default) |
|
4545 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD |
|
4546 |
|
4547 if test "$GCC" = yes; then |
|
4548 CFLAGS="${CFLAGS} -m64" |
|
4549 CXXFLAGS="${CXXFLAGS} -m64" |
|
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4551 /* end confdefs.h. */ |
|
4552 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4553 _ACEOF |
|
4554 if ac_fn_c_try_compile "$LINENO"; then : |
|
4555 CAN_BUILD_64=yes |
|
4556 else |
|
4557 CAN_BUILD_64=no |
|
4558 fi |
|
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4560 else |
|
4561 case "${host}" in |
|
4562 sparc*-*-solaris*) |
|
4563 # 1. try -m64 |
|
4564 CFLAGS="${CFLAGS} -m64" |
|
4565 CXXFLAGS="${CXXFLAGS} -m64" |
|
4566 if test "$cross_compiling" = yes; then : |
|
4567 CAN_BUILD_64=unknown |
|
4568 else |
|
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4570 /* end confdefs.h. */ |
|
4571 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4572 _ACEOF |
|
4573 if ac_fn_c_try_run "$LINENO"; then : |
|
4574 CAN_BUILD_64=yes |
|
4575 else |
|
4576 CAN_BUILD_64=no |
|
4577 fi |
|
4578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4579 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4580 fi |
|
4581 |
|
4582 if test "$CAN_BUILD_64" != yes; then |
|
4583 # Nope. back out changes. |
|
4584 CFLAGS="${CFLAGS_OLD}" |
|
4585 CXXFLAGS="${CFLAGS_OLD}" |
|
4586 # 2. try xarch=v9 [deprecated] |
|
4587 ## TODO: cross compile: the following won't work. |
|
4588 SPARCV9=`isainfo -n 2>&1 | grep sparcv9` |
|
4589 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` |
|
4590 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs" |
|
4591 if test -z "$SOL64" && test -n "$SPARCV9"; then |
|
4592 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" |
|
4593 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" |
|
4594 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" |
|
4595 CAN_BUILD_64=yes |
|
4596 fi |
|
4597 fi |
|
4598 ;; |
|
4599 i386-*-solaris*) |
|
4600 # 1. try -m64 |
|
4601 CFLAGS="${CFLAGS} -m64" |
|
4602 CXXFLAGS="${CXXFLAGS} -m64" |
|
4603 if test "$cross_compiling" = yes; then : |
|
4604 CAN_BUILD_64=unknown |
|
4605 else |
|
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4607 /* end confdefs.h. */ |
|
4608 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4609 _ACEOF |
|
4610 if ac_fn_c_try_run "$LINENO"; then : |
|
4611 CAN_BUILD_64=yes |
|
4612 else |
|
4613 CAN_BUILD_64=no |
|
4614 fi |
|
4615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4616 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4617 fi |
|
4618 |
|
4619 if test "$CAN_BUILD_64" != yes; then |
|
4620 # Nope. back out changes. |
|
4621 CFLAGS="${CFLAGS_OLD}" |
|
4622 CXXFLAGS="${CXXFLAGS_OLD}" |
|
4623 # 2. try the older compiler option |
|
4624 ## TODO: cross compile problem |
|
4625 AMD64=`isainfo -n 2>&1 | grep amd64` |
|
4626 SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` |
|
4627 if test -z "$SOL64" && test -n "$AMD64"; then |
|
4628 CFLAGS="${CFLAGS} -xtarget=generic64" |
|
4629 CXXFLAGS="${CXXFLAGS} -xtarget=generic64" |
|
4630 CAN_BUILD_64=yes |
|
4631 fi |
|
4632 fi |
|
4633 ;; |
|
4634 ia64-*-linux*) |
|
4635 # check for ecc/ecpc compiler support |
|
4636 ## TODO: cross compiler problem |
|
4637 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then |
|
4638 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then |
|
4639 CAN_BUILD_64=yes |
|
4640 fi |
|
4641 fi |
|
4642 ;; |
|
4643 *-*-cygwin) |
|
4644 # vcvarsamd64.bat should have been used to enable 64-bit builds. |
|
4645 # We only do this check to display the correct answer. |
|
4646 ## TODO: cross compiler problem |
|
4647 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then |
|
4648 CAN_BUILD_64=yes |
|
4649 fi |
|
4650 ;; |
|
4651 *-*-aix*|powerpc64-*-linux*) |
|
4652 CFLAGS="${CFLAGS} -q64" |
|
4653 CXXFLAGS="${CXXFLAGS} -q64" |
|
4654 LDFLAGS="${LDFLAGS} -q64" |
|
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4656 /* end confdefs.h. */ |
|
4657 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4658 _ACEOF |
|
4659 if ac_fn_c_try_compile "$LINENO"; then : |
|
4660 CAN_BUILD_64=yes |
|
4661 else |
|
4662 CAN_BUILD_64=no |
|
4663 fi |
|
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4665 if test "$CAN_BUILD_64" = yes; then |
|
4666 # worked- set other options. |
|
4667 case "${host}" in |
|
4668 *-*-aix*) |
|
4669 # tell AIX what executable mode to use. |
|
4670 ARFLAGS="${ARFLAGS} -X64" |
|
4671 esac |
|
4672 fi |
|
4673 ;; |
|
4674 *-*-hpux*) |
|
4675 # First we try the newer +DD64, if that doesn't work, |
|
4676 # try other options. |
|
4677 |
|
4678 CFLAGS="${CFLAGS} +DD64" |
|
4679 CXXFLAGS="${CXXFLAGS} +DD64" |
|
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4681 /* end confdefs.h. */ |
|
4682 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4683 _ACEOF |
|
4684 if ac_fn_c_try_compile "$LINENO"; then : |
|
4685 CAN_BUILD_64=yes |
|
4686 else |
|
4687 CAN_BUILD_64=no |
|
4688 fi |
|
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4690 if test "$CAN_BUILD_64" != yes; then |
|
4691 # reset |
|
4692 CFLAGS="${CFLAGS_OLD}" |
|
4693 CXXFLAGS="${CXXFLAGS_OLD}" |
|
4694 # append |
|
4695 CFLAGS="${CFLAGS} +DA2.0W" |
|
4696 CXXFLAGS="${CXXFLAGS} +DA2.0W" |
|
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4698 /* end confdefs.h. */ |
|
4699 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4700 _ACEOF |
|
4701 if ac_fn_c_try_compile "$LINENO"; then : |
|
4702 CAN_BUILD_64=yes |
|
4703 else |
|
4704 CAN_BUILD_64=no |
|
4705 fi |
|
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4707 fi |
|
4708 ;; |
|
4709 *-*ibm-openedition*|*-*-os390*) |
|
4710 CFLAGS="${CFLAGS} -Wc,lp64" |
|
4711 CXXFLAGS="${CXXFLAGS} -Wc,lp64" |
|
4712 LDFLAGS="${LDFLAGS} -Wl,lp64" |
|
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4714 /* end confdefs.h. */ |
|
4715 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4716 _ACEOF |
|
4717 if ac_fn_c_try_compile "$LINENO"; then : |
|
4718 CAN_BUILD_64=yes |
|
4719 else |
|
4720 CAN_BUILD_64=no |
|
4721 fi |
|
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4723 ;; |
|
4724 *) |
|
4725 # unknown platform. |
|
4726 ;; |
|
4727 esac |
|
4728 fi |
|
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5 |
|
4730 $as_echo "$CAN_BUILD_64" >&6; } |
|
4731 if test "$CAN_BUILD_64" = yes; then |
|
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5 |
|
4733 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; } |
|
4734 if test "$cross_compiling" = yes; then : |
|
4735 BITS_RUN_64=unknown |
|
4736 else |
|
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4738 /* end confdefs.h. */ |
|
4739 int main(void) {return (sizeof(void*)*8==64)?0:1;} |
|
4740 _ACEOF |
|
4741 if ac_fn_c_try_run "$LINENO"; then : |
|
4742 BITS_RUN_64=yes |
|
4743 else |
|
4744 BITS_RUN_64=no |
|
4745 fi |
|
4746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4747 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4748 fi |
|
4749 |
|
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5 |
|
4751 $as_echo "$BITS_RUN_64" >&6; }; |
|
4752 |
|
4753 CFLAGS_64="${CFLAGS}" |
|
4754 CXXFLAGS_64="${CXXFLAGS}" |
|
4755 LDFLAGS_64="${LDFLAGS}" |
|
4756 ARFLAGS_64="${ARFLAGS}" |
|
4757 fi |
|
4758 # put it back. |
|
4759 CFLAGS="${CFLAGS_OLD}" |
|
4760 CXXFLAGS="${CXXFLAGS_OLD}" |
|
4761 LDFLAGS="${LDFLAGS_OLD}" |
|
4762 ARFLAGS="${ARFLAGS_OLD}" |
|
4763 fi |
|
4764 if test "$BITS_CHECK_32" = "yes"; then |
|
4765 # see comment under 'if BITS_CHECK_64', above. |
|
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5 |
|
4767 $as_echo_n "checking how to build 32-bit executables... " >&6; } |
|
4768 if test "$GCC" = yes; then |
|
4769 CFLAGS="${CFLAGS} -m32" |
|
4770 CXXFLAGS="${CXXFLAGS} -m32" |
|
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4772 /* end confdefs.h. */ |
|
4773 int main(void) {return (sizeof(void*)*8==32)?0:1;} |
|
4774 _ACEOF |
|
4775 if ac_fn_c_try_compile "$LINENO"; then : |
|
4776 CAN_BUILD_32=yes |
|
4777 else |
|
4778 CAN_BUILD_32=no |
|
4779 fi |
|
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4781 fi |
|
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5 |
|
4783 $as_echo "$CAN_BUILD_32" >&6; } |
|
4784 if test "$CAN_BUILD_32" = yes; then |
|
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5 |
|
4786 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; } |
|
4787 if test "$cross_compiling" = yes; then : |
|
4788 BITS_RUN_32=unknown |
|
4789 else |
|
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4791 /* end confdefs.h. */ |
|
4792 int main(void) {return (sizeof(void*)*8==32)?0:1;} |
|
4793 _ACEOF |
|
4794 if ac_fn_c_try_run "$LINENO"; then : |
|
4795 BITS_RUN_32=yes |
|
4796 else |
|
4797 BITS_RUN_32=no |
|
4798 fi |
|
4799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4800 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4801 fi |
|
4802 |
|
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5 |
|
4804 $as_echo "$BITS_RUN_32" >&6; }; |
|
4805 CFLAGS_32="${CFLAGS}" |
|
4806 CXXFLAGS_32="${CXXFLAGS}" |
|
4807 LDFLAGS_32="${LDFLAGS}" |
|
4808 ARFLAGS_32="${ARFLAGS}" |
|
4809 fi |
|
4810 # put it back. |
|
4811 CFLAGS="${CFLAGS_OLD}" |
|
4812 CXXFLAGS="${CXXFLAGS_OLD}" |
|
4813 LDFLAGS="${LDFLAGS_OLD}" |
|
4814 ARFLAGS="${ARFLAGS_OLD}" |
|
4815 fi |
|
4816 |
|
4817 ## |
|
4818 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do. |
|
4819 # |
|
4820 |
|
4821 # First, implement 64else32 |
|
4822 if test "$BITS_REQ" = "64else32"; then |
|
4823 if test "$BITS_RUN_64" = "yes"; then |
|
4824 BITS_REQ=64 |
|
4825 else |
|
4826 # no changes. |
|
4827 BITS_OK=yes |
|
4828 fi |
|
4829 fi |
|
4830 |
|
4831 # implement. |
|
4832 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then |
|
4833 CFLAGS="${CFLAGS_32}" |
|
4834 CXXFLAGS="${CXXFLAGS_32}" |
|
4835 LDFLAGS="${LDFLAGS_32}" |
|
4836 ARFLAGS="${ARFLAGS_32}" |
|
4837 BITS_OK=yes |
|
4838 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then |
|
4839 CFLAGS="${CFLAGS_64}" |
|
4840 CXXFLAGS="${CXXFLAGS_64}" |
|
4841 LDFLAGS="${LDFLAGS_64}" |
|
4842 ARFLAGS="${ARFLAGS_64}" |
|
4843 BITS_OK=yes |
|
4844 elif test "$BITS_OK" != "yes"; then |
|
4845 as_fn_error $? "Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5 |
|
4846 fi |
|
4847 fi |
|
4848 |
|
4849 |
|
4850 |
|
4851 |
|
4852 # Determine the Makefile fragment |
|
4853 |
|
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5 |
|
4855 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; } |
|
4856 if ${icu_cv_host_frag+:} false; then : |
|
4857 $as_echo_n "(cached) " >&6 |
|
4858 else |
|
4859 |
|
4860 case "${host}" in |
|
4861 *-*-solaris*) |
|
4862 if test "$GCC" = yes; then |
|
4863 icu_cv_host_frag=mh-solaris-gcc |
|
4864 else |
|
4865 icu_cv_host_frag=mh-solaris |
|
4866 fi ;; |
|
4867 alpha*-*-linux-gnu) |
|
4868 if test "$GCC" = yes; then |
|
4869 icu_cv_host_frag=mh-alpha-linux-gcc |
|
4870 else |
|
4871 icu_cv_host_frag=mh-alpha-linux-cc |
|
4872 fi ;; |
|
4873 powerpc*-*-linux*) |
|
4874 if test "$GCC" = yes; then |
|
4875 icu_cv_host_frag=mh-linux |
|
4876 else |
|
4877 icu_cv_host_frag=mh-linux-va |
|
4878 fi ;; |
|
4879 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;; |
|
4880 *-*-cygwin|*-*-mingw32|*-*-mingw64) |
|
4881 if test "$GCC" = yes; then |
|
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4883 /* end confdefs.h. */ |
|
4884 |
|
4885 #ifndef __MINGW32__ |
|
4886 #error This is not MinGW |
|
4887 #endif |
|
4888 int |
|
4889 main () |
|
4890 { |
|
4891 |
|
4892 ; |
|
4893 return 0; |
|
4894 } |
|
4895 _ACEOF |
|
4896 if ac_fn_c_try_compile "$LINENO"; then : |
|
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4898 /* end confdefs.h. */ |
|
4899 |
|
4900 #ifndef __MINGW64__ |
|
4901 #error This is not MinGW64 |
|
4902 #endif |
|
4903 int |
|
4904 main () |
|
4905 { |
|
4906 |
|
4907 ; |
|
4908 return 0; |
|
4909 } |
|
4910 _ACEOF |
|
4911 if ac_fn_c_try_compile "$LINENO"; then : |
|
4912 icu_cv_host_frag=mh-mingw64 |
|
4913 else |
|
4914 icu_cv_host_frag=mh-mingw |
|
4915 fi |
|
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4917 else |
|
4918 icu_cv_host_frag=mh-cygwin |
|
4919 fi |
|
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4921 else |
|
4922 case "${host}" in |
|
4923 *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;; |
|
4924 *-*-mingw32|*-*-mingw64) icu_cv_host_frag=mh-msys-msvc ;; |
|
4925 esac |
|
4926 fi ;; |
|
4927 *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; |
|
4928 *-*-aix*) |
|
4929 if test "$GCC" = yes; then |
|
4930 icu_cv_host_frag=mh-aix-gcc |
|
4931 else |
|
4932 icu_cv_host_frag=mh-aix-va |
|
4933 fi ;; |
|
4934 *-*-hpux*) |
|
4935 if test "$GCC" = yes; then |
|
4936 icu_cv_host_frag=mh-hpux-gcc |
|
4937 else |
|
4938 case "$CXX" in |
|
4939 *aCC) icu_cv_host_frag=mh-hpux-acc ;; |
|
4940 esac |
|
4941 fi ;; |
|
4942 *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; |
|
4943 *-*-os400*) icu_cv_host_frag=mh-os400 ;; |
|
4944 *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; |
|
4945 *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; |
|
4946 *-*-beos) icu_cv_host_frag=mh-beos ;; |
|
4947 *-*-haiku) icu_cv_host_frag=mh-haiku ;; |
|
4948 *-*-irix*) icu_cv_host_frag=mh-irix ;; |
|
4949 *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; |
|
4950 *-*-nto*) icu_cv_host_frag=mh-qnx ;; |
|
4951 *-ncr-*) icu_cv_host_frag=mh-mpras ;; |
|
4952 *) icu_cv_host_frag=mh-unknown ;; |
|
4953 esac |
|
4954 |
|
4955 |
|
4956 fi |
|
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5 |
|
4958 $as_echo "$icu_cv_host_frag" >&6; } |
|
4959 |
|
4960 |
|
4961 # Checks for libraries and other host specific stuff |
|
4962 # On HP/UX, don't link to -lm from a shared lib because it isn't |
|
4963 # PIC (at least on 10.2) |
|
4964 case "${host}" in |
|
4965 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
|
4966 $as_echo_n "checking for floor in -lm... " >&6; } |
|
4967 if ${ac_cv_lib_m_floor+:} false; then : |
|
4968 $as_echo_n "(cached) " >&6 |
|
4969 else |
|
4970 ac_check_lib_save_LIBS=$LIBS |
|
4971 LIBS="-lm $LIBS" |
|
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4973 /* end confdefs.h. */ |
|
4974 |
|
4975 /* Override any GCC internal prototype to avoid an error. |
|
4976 Use char because int might match the return type of a GCC |
|
4977 builtin and then its argument prototype would still apply. */ |
|
4978 #ifdef __cplusplus |
|
4979 extern "C" |
|
4980 #endif |
|
4981 char floor (); |
|
4982 int |
|
4983 main () |
|
4984 { |
|
4985 return floor (); |
|
4986 ; |
|
4987 return 0; |
|
4988 } |
|
4989 _ACEOF |
|
4990 if ac_fn_c_try_link "$LINENO"; then : |
|
4991 ac_cv_lib_m_floor=yes |
|
4992 else |
|
4993 ac_cv_lib_m_floor=no |
|
4994 fi |
|
4995 rm -f core conftest.err conftest.$ac_objext \ |
|
4996 conftest$ac_exeext conftest.$ac_ext |
|
4997 LIBS=$ac_check_lib_save_LIBS |
|
4998 fi |
|
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
|
5000 $as_echo "$ac_cv_lib_m_floor" >&6; } |
|
5001 if test "x$ac_cv_lib_m_floor" = xyes; then : |
|
5002 LIB_M="-lm" |
|
5003 fi |
|
5004 ;; |
|
5005 |
|
5006 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
|
5007 $as_echo_n "checking for floor in -lm... " >&6; } |
|
5008 if ${ac_cv_lib_m_floor+:} false; then : |
|
5009 $as_echo_n "(cached) " >&6 |
|
5010 else |
|
5011 ac_check_lib_save_LIBS=$LIBS |
|
5012 LIBS="-lm $LIBS" |
|
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5014 /* end confdefs.h. */ |
|
5015 |
|
5016 /* Override any GCC internal prototype to avoid an error. |
|
5017 Use char because int might match the return type of a GCC |
|
5018 builtin and then its argument prototype would still apply. */ |
|
5019 #ifdef __cplusplus |
|
5020 extern "C" |
|
5021 #endif |
|
5022 char floor (); |
|
5023 int |
|
5024 main () |
|
5025 { |
|
5026 return floor (); |
|
5027 ; |
|
5028 return 0; |
|
5029 } |
|
5030 _ACEOF |
|
5031 if ac_fn_c_try_link "$LINENO"; then : |
|
5032 ac_cv_lib_m_floor=yes |
|
5033 else |
|
5034 ac_cv_lib_m_floor=no |
|
5035 fi |
|
5036 rm -f core conftest.err conftest.$ac_objext \ |
|
5037 conftest$ac_exeext conftest.$ac_ext |
|
5038 LIBS=$ac_check_lib_save_LIBS |
|
5039 fi |
|
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
|
5041 $as_echo "$ac_cv_lib_m_floor" >&6; } |
|
5042 if test "x$ac_cv_lib_m_floor" = xyes; then : |
|
5043 cat >>confdefs.h <<_ACEOF |
|
5044 #define HAVE_LIBM 1 |
|
5045 _ACEOF |
|
5046 |
|
5047 LIBS="-lm $LIBS" |
|
5048 |
|
5049 fi |
|
5050 |
|
5051 LIB_M="" ;; |
|
5052 esac |
|
5053 |
|
5054 |
|
5055 # Check whether to build shared libraries |
|
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
|
5057 $as_echo_n "checking whether to build shared libraries... " >&6; } |
|
5058 enabled=no |
|
5059 # Check whether --enable-shared was given. |
|
5060 if test "${enable_shared+set}" = set; then : |
|
5061 enableval=$enable_shared; case "${enableval}" in |
|
5062 yes|"") enabled=yes; ENABLE_SHARED=YES ;; |
|
5063 no);; |
|
5064 *) ;; |
|
5065 esac |
|
5066 else |
|
5067 enabled=yes; ENABLE_SHARED=YES |
|
5068 |
|
5069 fi |
|
5070 |
|
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
5072 $as_echo "$enabled" >&6; } |
|
5073 |
|
5074 |
|
5075 # Check whether to build static libraries |
|
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
|
5077 $as_echo_n "checking whether to build static libraries... " >&6; } |
|
5078 enabled=no |
|
5079 # Check whether --enable-static was given. |
|
5080 if test "${enable_static+set}" = set; then : |
|
5081 enableval=$enable_static; case "${enableval}" in |
|
5082 yes|"") enabled=yes; ENABLE_STATIC=YES ;; |
|
5083 no) ;; |
|
5084 *) ;; |
|
5085 esac |
|
5086 fi |
|
5087 |
|
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
5089 $as_echo "$enabled" >&6; } |
|
5090 |
|
5091 |
|
5092 # When building release static library, there might be some optimization flags we can use |
|
5093 if test "$ENABLE_STATIC" = "YES"; then |
|
5094 if test "$ENABLE_SHARED" != "YES"; then |
|
5095 if test "$ENABLE_RELEASE" = 1; then |
|
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5 |
|
5097 $as_echo_n "checking whether we can use static library optimization option... " >&6; } |
|
5098 CHECK_STATIC_OPT_FLAG=no |
|
5099 |
|
5100 OLD_CPPFLAGS="${CPPFLAGS}" |
|
5101 OLD_LDFLAGS="${LDFLAGS}" |
|
5102 |
|
5103 case "${host}" in |
|
5104 *-linux*|i*86-*-*bsd*|i*86-pc-gnu) |
|
5105 if test "$GCC" = yes; then |
|
5106 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections" |
|
5107 LDFLAGS="${LDFLAGS} -Wl,--gc-sections" |
|
5108 fi |
|
5109 ;; |
|
5110 *) |
|
5111 ;; |
|
5112 esac |
|
5113 |
|
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5115 /* end confdefs.h. */ |
|
5116 |
|
5117 int |
|
5118 main () |
|
5119 { |
|
5120 |
|
5121 ; |
|
5122 return 0; |
|
5123 } |
|
5124 _ACEOF |
|
5125 if ac_fn_c_try_link "$LINENO"; then : |
|
5126 CHECK_STATIC_OPT_FLAG=yes |
|
5127 else |
|
5128 CHECK_STATIC_OPT_FLAG=no |
|
5129 fi |
|
5130 rm -f core conftest.err conftest.$ac_objext \ |
|
5131 conftest$ac_exeext conftest.$ac_ext |
|
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5 |
|
5133 $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; } |
|
5134 if test "$CHECK_STATIC_OPT_FLAG" = no; then |
|
5135 CPPFLAGS="${OLD_CPPFLAGS}" |
|
5136 LDFLAGS="${OLD_LDFLAGS}" |
|
5137 fi |
|
5138 fi |
|
5139 fi |
|
5140 fi |
|
5141 |
|
5142 |
|
5143 # Check whether to enable auto cleanup of libraries |
|
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5 |
|
5145 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; } |
|
5146 enabled=no |
|
5147 UCLN_NO_AUTO_CLEANUP=1 |
|
5148 # Check whether --enable-auto-cleanup was given. |
|
5149 if test "${enable_auto_cleanup+set}" = set; then : |
|
5150 enableval=$enable_auto_cleanup; case "${enableval}" in |
|
5151 yes) enabled=yes; |
|
5152 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0"; |
|
5153 UCLN_NO_AUTO_CLEANUP=0 |
|
5154 ;; |
|
5155 *) ;; |
|
5156 esac |
|
5157 fi |
|
5158 |
|
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
5160 $as_echo "$enabled" >&6; } |
|
5161 |
|
5162 |
|
5163 # MSVC floating-point option |
|
5164 MSVC_RELEASE_FLAG="" |
|
5165 if test $enabled = yes |
|
5166 then |
|
5167 if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc |
|
5168 then |
|
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5170 /* end confdefs.h. */ |
|
5171 |
|
5172 #if defined _MSC_VER && _MSC_VER >= 1400 |
|
5173 #else |
|
5174 Microsoft Visual C++ < 2005 |
|
5175 #endif |
|
5176 |
|
5177 int |
|
5178 main () |
|
5179 { |
|
5180 |
|
5181 ; |
|
5182 return 0; |
|
5183 } |
|
5184 _ACEOF |
|
5185 if ac_fn_c_try_compile "$LINENO"; then : |
|
5186 MSVC_RELEASE_FLAG="/fp:precise" |
|
5187 else |
|
5188 MSVC_RELEASE_FLAG="/Op" |
|
5189 fi |
|
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5191 |
|
5192 CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}" |
|
5193 CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}" |
|
5194 fi |
|
5195 fi |
|
5196 |
|
5197 # Check whether to enabled draft APIs |
|
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5 |
|
5199 $as_echo_n "checking whether to enable draft APIs... " >&6; } |
|
5200 enabled=yes |
|
5201 U_DEFAULT_SHOW_DRAFT=1 |
|
5202 # Check whether --enable-draft was given. |
|
5203 if test "${enable_draft+set}" = set; then : |
|
5204 enableval=$enable_draft; case "${enableval}" in |
|
5205 no) enabled=no; U_DEFAULT_SHOW_DRAFT=0; |
|
5206 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0" |
|
5207 ;; |
|
5208 *) ;; |
|
5209 esac |
|
5210 fi |
|
5211 |
|
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
5213 $as_echo "$enabled" >&6; } |
|
5214 # Make sure that we can use draft API in ICU. |
|
5215 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then |
|
5216 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API" |
|
5217 fi |
|
5218 |
|
5219 |
|
5220 if test -n "$ac_tool_prefix"; then |
|
5221 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
5222 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5224 $as_echo_n "checking for $ac_word... " >&6; } |
|
5225 if ${ac_cv_prog_RANLIB+:} false; then : |
|
5226 $as_echo_n "(cached) " >&6 |
|
5227 else |
|
5228 if test -n "$RANLIB"; then |
|
5229 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
5230 else |
|
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5232 for as_dir in $PATH |
|
5233 do |
|
5234 IFS=$as_save_IFS |
|
5235 test -z "$as_dir" && as_dir=. |
|
5236 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5238 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5240 break 2 |
|
5241 fi |
|
5242 done |
|
5243 done |
|
5244 IFS=$as_save_IFS |
|
5245 |
|
5246 fi |
|
5247 fi |
|
5248 RANLIB=$ac_cv_prog_RANLIB |
|
5249 if test -n "$RANLIB"; then |
|
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
|
5251 $as_echo "$RANLIB" >&6; } |
|
5252 else |
|
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5254 $as_echo "no" >&6; } |
|
5255 fi |
|
5256 |
|
5257 |
|
5258 fi |
|
5259 if test -z "$ac_cv_prog_RANLIB"; then |
|
5260 ac_ct_RANLIB=$RANLIB |
|
5261 # Extract the first word of "ranlib", so it can be a program name with args. |
|
5262 set dummy ranlib; ac_word=$2 |
|
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5264 $as_echo_n "checking for $ac_word... " >&6; } |
|
5265 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
|
5266 $as_echo_n "(cached) " >&6 |
|
5267 else |
|
5268 if test -n "$ac_ct_RANLIB"; then |
|
5269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
5270 else |
|
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5272 for as_dir in $PATH |
|
5273 do |
|
5274 IFS=$as_save_IFS |
|
5275 test -z "$as_dir" && as_dir=. |
|
5276 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5278 ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5280 break 2 |
|
5281 fi |
|
5282 done |
|
5283 done |
|
5284 IFS=$as_save_IFS |
|
5285 |
|
5286 fi |
|
5287 fi |
|
5288 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
5289 if test -n "$ac_ct_RANLIB"; then |
|
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
|
5291 $as_echo "$ac_ct_RANLIB" >&6; } |
|
5292 else |
|
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5294 $as_echo "no" >&6; } |
|
5295 fi |
|
5296 |
|
5297 if test "x$ac_ct_RANLIB" = x; then |
|
5298 RANLIB=":" |
|
5299 else |
|
5300 case $cross_compiling:$ac_tool_warned in |
|
5301 yes:) |
|
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5304 ac_tool_warned=yes ;; |
|
5305 esac |
|
5306 RANLIB=$ac_ct_RANLIB |
|
5307 fi |
|
5308 else |
|
5309 RANLIB="$ac_cv_prog_RANLIB" |
|
5310 fi |
|
5311 |
|
5312 |
|
5313 # look for 'ar' the proper way |
|
5314 if test -n "$ac_tool_prefix"; then |
|
5315 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
5316 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5318 $as_echo_n "checking for $ac_word... " >&6; } |
|
5319 if ${ac_cv_prog_AR+:} false; then : |
|
5320 $as_echo_n "(cached) " >&6 |
|
5321 else |
|
5322 if test -n "$AR"; then |
|
5323 ac_cv_prog_AR="$AR" # Let the user override the test. |
|
5324 else |
|
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5326 for as_dir in $PATH |
|
5327 do |
|
5328 IFS=$as_save_IFS |
|
5329 test -z "$as_dir" && as_dir=. |
|
5330 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5332 ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5334 break 2 |
|
5335 fi |
|
5336 done |
|
5337 done |
|
5338 IFS=$as_save_IFS |
|
5339 |
|
5340 fi |
|
5341 fi |
|
5342 AR=$ac_cv_prog_AR |
|
5343 if test -n "$AR"; then |
|
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
|
5345 $as_echo "$AR" >&6; } |
|
5346 else |
|
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5348 $as_echo "no" >&6; } |
|
5349 fi |
|
5350 |
|
5351 |
|
5352 fi |
|
5353 if test -z "$ac_cv_prog_AR"; then |
|
5354 ac_ct_AR=$AR |
|
5355 # Extract the first word of "ar", so it can be a program name with args. |
|
5356 set dummy ar; ac_word=$2 |
|
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5358 $as_echo_n "checking for $ac_word... " >&6; } |
|
5359 if ${ac_cv_prog_ac_ct_AR+:} false; then : |
|
5360 $as_echo_n "(cached) " >&6 |
|
5361 else |
|
5362 if test -n "$ac_ct_AR"; then |
|
5363 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
5364 else |
|
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5366 for as_dir in $PATH |
|
5367 do |
|
5368 IFS=$as_save_IFS |
|
5369 test -z "$as_dir" && as_dir=. |
|
5370 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5372 ac_cv_prog_ac_ct_AR="ar" |
|
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5374 break 2 |
|
5375 fi |
|
5376 done |
|
5377 done |
|
5378 IFS=$as_save_IFS |
|
5379 |
|
5380 fi |
|
5381 fi |
|
5382 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
5383 if test -n "$ac_ct_AR"; then |
|
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
|
5385 $as_echo "$ac_ct_AR" >&6; } |
|
5386 else |
|
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5388 $as_echo "no" >&6; } |
|
5389 fi |
|
5390 |
|
5391 if test "x$ac_ct_AR" = x; then |
|
5392 AR="false" |
|
5393 else |
|
5394 case $cross_compiling:$ac_tool_warned in |
|
5395 yes:) |
|
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5398 ac_tool_warned=yes ;; |
|
5399 esac |
|
5400 AR=$ac_ct_AR |
|
5401 fi |
|
5402 else |
|
5403 AR="$ac_cv_prog_AR" |
|
5404 fi |
|
5405 |
|
5406 |
|
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5 |
|
5408 $as_echo_n "checking whether to enable renaming of symbols... " >&6; } |
|
5409 enabled=yes |
|
5410 U_DISABLE_RENAMING=0 |
|
5411 # Check whether --enable-renaming was given. |
|
5412 if test "${enable_renaming+set}" = set; then : |
|
5413 enableval=$enable_renaming; case "${enableval}" in |
|
5414 yes|"") enabled=yes ;; |
|
5415 no) enabled=no; U_DISABLE_RENAMING=1; |
|
5416 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1" |
|
5417 ;; |
|
5418 *) ;; |
|
5419 esac |
|
5420 fi |
|
5421 |
|
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
5423 $as_echo "$enabled" >&6; } |
|
5424 |
|
5425 |
|
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5 |
|
5427 $as_echo_n "checking whether to enable function and data tracing... " >&6; } |
|
5428 enabled=no |
|
5429 U_ENABLE_TRACING=0 |
|
5430 # Check whether --enable-tracing was given. |
|
5431 if test "${enable_tracing+set}" = set; then : |
|
5432 enableval=$enable_tracing; case "${enableval}" in |
|
5433 yes|"") enabled=yes; |
|
5434 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1"; |
|
5435 U_ENABLE_TRACING=1 ;; |
|
5436 no) enabled=no; U_ENABLE_TRACING=0 ;; |
|
5437 *) ;; |
|
5438 esac |
|
5439 fi |
|
5440 |
|
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
|
5442 $as_echo "$enabled" >&6; } |
|
5443 |
|
5444 |
|
5445 # check if elf.h is present. |
|
5446 for ac_header in elf.h |
|
5447 do : |
|
5448 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" |
|
5449 if test "x$ac_cv_header_elf_h" = xyes; then : |
|
5450 cat >>confdefs.h <<_ACEOF |
|
5451 #define HAVE_ELF_H 1 |
|
5452 _ACEOF |
|
5453 |
|
5454 fi |
|
5455 |
|
5456 done |
|
5457 |
|
5458 if test "x$ac_cv_header_elf_h" = "xyes"; then |
|
5459 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1"; |
|
5460 fi |
|
5461 |
|
5462 U_ENABLE_DYLOAD=1 |
|
5463 enable=yes |
|
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5 |
|
5465 $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; } |
|
5466 # Check whether --enable-dyload was given. |
|
5467 if test "${enable_dyload+set}" = set; then : |
|
5468 enableval=$enable_dyload; case "${enableval}" in |
|
5469 yes|"") |
|
5470 U_ENABLE_DYLOAD=1 |
|
5471 enable=yes |
|
5472 ;; |
|
5473 no) |
|
5474 U_ENABLE_DYLOAD=0; |
|
5475 enable=no; |
|
5476 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0"; |
|
5477 ;; |
|
5478 *) ;; |
|
5479 esac |
|
5480 fi |
|
5481 |
|
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5 |
|
5483 $as_echo "$enable" >&6; } |
|
5484 |
|
5485 |
|
5486 if test "$enable" = "yes"; then |
|
5487 for ac_header in dlfcn.h |
|
5488 do : |
|
5489 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
|
5490 if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
|
5491 cat >>confdefs.h <<_ACEOF |
|
5492 #define HAVE_DLFCN_H 1 |
|
5493 _ACEOF |
|
5494 |
|
5495 fi |
|
5496 |
|
5497 done |
|
5498 |
|
5499 #AC_MSG_RESULT($enabled) |
|
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
|
5501 $as_echo_n "checking for library containing dlopen... " >&6; } |
|
5502 if ${ac_cv_search_dlopen+:} false; then : |
|
5503 $as_echo_n "(cached) " >&6 |
|
5504 else |
|
5505 ac_func_search_save_LIBS=$LIBS |
|
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5507 /* end confdefs.h. */ |
|
5508 |
|
5509 /* Override any GCC internal prototype to avoid an error. |
|
5510 Use char because int might match the return type of a GCC |
|
5511 builtin and then its argument prototype would still apply. */ |
|
5512 #ifdef __cplusplus |
|
5513 extern "C" |
|
5514 #endif |
|
5515 char dlopen (); |
|
5516 int |
|
5517 main () |
|
5518 { |
|
5519 return dlopen (); |
|
5520 ; |
|
5521 return 0; |
|
5522 } |
|
5523 _ACEOF |
|
5524 for ac_lib in '' dl; do |
|
5525 if test -z "$ac_lib"; then |
|
5526 ac_res="none required" |
|
5527 else |
|
5528 ac_res=-l$ac_lib |
|
5529 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
5530 fi |
|
5531 if ac_fn_c_try_link "$LINENO"; then : |
|
5532 ac_cv_search_dlopen=$ac_res |
|
5533 fi |
|
5534 rm -f core conftest.err conftest.$ac_objext \ |
|
5535 conftest$ac_exeext |
|
5536 if ${ac_cv_search_dlopen+:} false; then : |
|
5537 break |
|
5538 fi |
|
5539 done |
|
5540 if ${ac_cv_search_dlopen+:} false; then : |
|
5541 |
|
5542 else |
|
5543 ac_cv_search_dlopen=no |
|
5544 fi |
|
5545 rm conftest.$ac_ext |
|
5546 LIBS=$ac_func_search_save_LIBS |
|
5547 fi |
|
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
|
5549 $as_echo "$ac_cv_search_dlopen" >&6; } |
|
5550 ac_res=$ac_cv_search_dlopen |
|
5551 if test "$ac_res" != no; then : |
|
5552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
5553 |
|
5554 fi |
|
5555 |
|
5556 for ac_func in dlopen |
|
5557 do : |
|
5558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
|
5559 if test "x$ac_cv_func_dlopen" = xyes; then : |
|
5560 cat >>confdefs.h <<_ACEOF |
|
5561 #define HAVE_DLOPEN 1 |
|
5562 _ACEOF |
|
5563 |
|
5564 fi |
|
5565 done |
|
5566 |
|
5567 |
|
5568 if test "x$ac_cv_func_dlopen" != xyes; then |
|
5569 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0" |
|
5570 fi |
|
5571 fi |
|
5572 |
|
5573 # Check for miscellanous functions. |
|
5574 # So, use for putil / tools only. |
|
5575 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY |
|
5576 for ac_func in gettimeofday |
|
5577 do : |
|
5578 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
|
5579 if test "x$ac_cv_func_gettimeofday" = xyes; then : |
|
5580 cat >>confdefs.h <<_ACEOF |
|
5581 #define HAVE_GETTIMEOFDAY 1 |
|
5582 _ACEOF |
|
5583 |
|
5584 fi |
|
5585 done |
|
5586 |
|
5587 |
|
5588 |
|
5589 # Check whether to use the evil rpath or not |
|
5590 # Check whether --enable-rpath was given. |
|
5591 if test "${enable_rpath+set}" = set; then : |
|
5592 enableval=$enable_rpath; case "${enableval}" in |
|
5593 yes|"") ENABLE_RPATH=YES ;; |
|
5594 no) ;; |
|
5595 *) ;; |
|
5596 esac |
|
5597 else |
|
5598 ENABLE_RPATH=NO |
|
5599 |
|
5600 fi |
|
5601 |
|
5602 |
|
5603 |
|
5604 |
|
5605 |
|
5606 ac_ext=cpp |
|
5607 ac_cpp='$CXXCPP $CPPFLAGS' |
|
5608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
5611 |
|
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5 |
|
5613 $as_echo_n "checking if we have a C++ compiler... " >&6; } |
|
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5615 /* end confdefs.h. */ |
|
5616 |
|
5617 int |
|
5618 main () |
|
5619 { |
|
5620 |
|
5621 ; |
|
5622 return 0; |
|
5623 } |
|
5624 _ACEOF |
|
5625 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
5626 cxx_okay=yes |
|
5627 else |
|
5628 cxx_okay=no |
|
5629 fi |
|
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5631 if test $cxx_okay = yes |
|
5632 then |
|
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5 |
|
5634 $as_echo "Good" >&6; } |
|
5635 else |
|
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5637 $as_echo "no" >&6; } |
|
5638 as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5 |
|
5639 fi |
|
5640 |
|
5641 if [ "$GXX" = yes ]; then |
|
5642 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x, |
|
5643 # and check that the compiler still works. |
|
5644 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then |
|
5645 OLD_CXXFLAGS="${CXXFLAGS}" |
|
5646 CXXFLAGS="$CXXFLAGS --std=c++0x" |
|
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5 |
|
5648 $as_echo_n "checking if we have a C++11 compiler... " >&6; } |
|
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5650 /* end confdefs.h. */ |
|
5651 |
|
5652 int |
|
5653 main () |
|
5654 { |
|
5655 |
|
5656 ; |
|
5657 return 0; |
|
5658 } |
|
5659 _ACEOF |
|
5660 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
5661 cxx11_okay=yes |
|
5662 else |
|
5663 cxx11_okay=no |
|
5664 fi |
|
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5 |
|
5667 $as_echo "$cxx11_okay" >&6; } |
|
5668 if [ $cxx11_okay = yes ]; then |
|
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5 |
|
5670 $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;} |
|
5671 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} --std=c++0x" |
|
5672 else |
|
5673 CXXFLAGS="$OLD_CXXFLAGS" |
|
5674 fi |
|
5675 fi |
|
5676 fi |
|
5677 |
|
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5 |
|
5679 $as_echo_n "checking if #include <string> works... " >&6; } |
|
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5681 /* end confdefs.h. */ |
|
5682 #include <string> |
|
5683 int |
|
5684 main () |
|
5685 { |
|
5686 |
|
5687 ; |
|
5688 return 0; |
|
5689 } |
|
5690 _ACEOF |
|
5691 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
5692 ac_cv_header_stdstring=yes |
|
5693 else |
|
5694 ac_cv_header_stdstring=no |
|
5695 fi |
|
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5 |
|
5698 $as_echo "$ac_cv_header_stdstring" >&6; } |
|
5699 if test $ac_cv_header_stdstring = yes |
|
5700 then |
|
5701 U_HAVE_STD_STRING=1 |
|
5702 else |
|
5703 U_HAVE_STD_STRING=0 |
|
5704 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0" |
|
5705 fi |
|
5706 |
|
5707 |
|
5708 |
|
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <atomic> works" >&5 |
|
5710 $as_echo_n "checking if #include <atomic> works... " >&6; } |
|
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5712 /* end confdefs.h. */ |
|
5713 #include <atomic> |
|
5714 int |
|
5715 main () |
|
5716 { |
|
5717 |
|
5718 ; |
|
5719 return 0; |
|
5720 } |
|
5721 _ACEOF |
|
5722 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
5723 ac_cv_header_atomic=yes |
|
5724 else |
|
5725 ac_cv_header_atomic=no |
|
5726 fi |
|
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_atomic" >&5 |
|
5729 $as_echo "$ac_cv_header_atomic" >&6; } |
|
5730 if test $ac_cv_header_atomic = yes |
|
5731 then |
|
5732 U_HAVE_ATOMIC=1 |
|
5733 else |
|
5734 U_HAVE_ATOMIC=0 |
|
5735 fi |
|
5736 # Make this available via CPPFLAGS |
|
5737 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}" |
|
5738 |
|
5739 |
|
5740 ac_ext=c |
|
5741 ac_cpp='$CPP $CPPFLAGS' |
|
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5745 |
|
5746 |
|
5747 # Always build ICU with multi-threading support. |
|
5748 threads=true |
|
5749 ICU_USE_THREADS=1 |
|
5750 OLD_LIBS=${LIBS} |
|
5751 |
|
5752 if test $threads = true; then |
|
5753 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init |
|
5754 # and must do this before seaching for pthread_mutex_destroy, or |
|
5755 # we will pick up libpthreads.so not libpthread.so |
|
5756 # If this fails, then we must test for HPUX specials, before |
|
5757 # moving on to a more generic test |
|
5758 |
|
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5 |
|
5760 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; } |
|
5761 if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then : |
|
5762 $as_echo_n "(cached) " >&6 |
|
5763 else |
|
5764 ac_check_lib_save_LIBS=$LIBS |
|
5765 LIBS="-lpthread $LIBS" |
|
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5767 /* end confdefs.h. */ |
|
5768 |
|
5769 /* Override any GCC internal prototype to avoid an error. |
|
5770 Use char because int might match the return type of a GCC |
|
5771 builtin and then its argument prototype would still apply. */ |
|
5772 #ifdef __cplusplus |
|
5773 extern "C" |
|
5774 #endif |
|
5775 char pthread_attr_init (); |
|
5776 int |
|
5777 main () |
|
5778 { |
|
5779 return pthread_attr_init (); |
|
5780 ; |
|
5781 return 0; |
|
5782 } |
|
5783 _ACEOF |
|
5784 if ac_fn_c_try_link "$LINENO"; then : |
|
5785 ac_cv_lib_pthread_pthread_attr_init=yes |
|
5786 else |
|
5787 ac_cv_lib_pthread_pthread_attr_init=no |
|
5788 fi |
|
5789 rm -f core conftest.err conftest.$ac_objext \ |
|
5790 conftest$ac_exeext conftest.$ac_ext |
|
5791 LIBS=$ac_check_lib_save_LIBS |
|
5792 fi |
|
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 |
|
5794 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; } |
|
5795 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then : |
|
5796 cat >>confdefs.h <<_ACEOF |
|
5797 #define HAVE_LIBPTHREAD 1 |
|
5798 _ACEOF |
|
5799 |
|
5800 LIBS="-lpthread $LIBS" |
|
5801 |
|
5802 fi |
|
5803 |
|
5804 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then |
|
5805 ICU_USE_THREADS=1 |
|
5806 else |
|
5807 # Locate the right library for POSIX threads. We look for the |
|
5808 # symbols in the libraries first, because on Solaris libc provides |
|
5809 # pthread_create but libpthread has the real code :( |
|
5810 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread |
|
5811 # FreeBSD users may need libpthread if they do not have libc_r. |
|
5812 |
|
5813 |
|
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5 |
|
5815 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; } |
|
5816 if ${ac_cv_search_pthread_mutex_destroy+:} false; then : |
|
5817 $as_echo_n "(cached) " >&6 |
|
5818 else |
|
5819 ac_func_search_save_LIBS="$LIBS" |
|
5820 ac_cv_search_pthread_mutex_destroy="no" |
|
5821 for i in pthread pthreads c_r ; do |
|
5822 LIBS="-l$i $ac_func_search_save_LIBS" |
|
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5824 /* end confdefs.h. */ |
|
5825 |
|
5826 /* Override any GCC internal prototype to avoid an error. |
|
5827 Use char because int might match the return type of a GCC |
|
5828 builtin and then its argument prototype would still apply. */ |
|
5829 #ifdef __cplusplus |
|
5830 extern "C" |
|
5831 #endif |
|
5832 char pthread_mutex_destroy (); |
|
5833 int |
|
5834 main () |
|
5835 { |
|
5836 return pthread_mutex_destroy (); |
|
5837 ; |
|
5838 return 0; |
|
5839 } |
|
5840 _ACEOF |
|
5841 if ac_fn_c_try_link "$LINENO"; then : |
|
5842 ac_cv_search_pthread_mutex_destroy="-l$i" |
|
5843 break |
|
5844 fi |
|
5845 rm -f core conftest.err conftest.$ac_objext \ |
|
5846 conftest$ac_exeext conftest.$ac_ext |
|
5847 done |
|
5848 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then |
|
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5850 /* end confdefs.h. */ |
|
5851 |
|
5852 /* Override any GCC internal prototype to avoid an error. |
|
5853 Use char because int might match the return type of a GCC |
|
5854 builtin and then its argument prototype would still apply. */ |
|
5855 #ifdef __cplusplus |
|
5856 extern "C" |
|
5857 #endif |
|
5858 char pthread_mutex_destroy (); |
|
5859 int |
|
5860 main () |
|
5861 { |
|
5862 return pthread_mutex_destroy (); |
|
5863 ; |
|
5864 return 0; |
|
5865 } |
|
5866 _ACEOF |
|
5867 if ac_fn_c_try_link "$LINENO"; then : |
|
5868 ac_cv_search_pthread_mutex_destroy="none required" |
|
5869 fi |
|
5870 rm -f core conftest.err conftest.$ac_objext \ |
|
5871 conftest$ac_exeext conftest.$ac_ext |
|
5872 fi |
|
5873 LIBS="$ac_func_search_save_LIBS" |
|
5874 fi |
|
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5 |
|
5876 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; } |
|
5877 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then |
|
5878 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" |
|
5879 |
|
5880 else : |
|
5881 |
|
5882 fi |
|
5883 |
|
5884 if test "$ac_cv_search_pthread_mutex_destroy" != no; then |
|
5885 ICU_USE_THREADS=1 |
|
5886 else |
|
5887 # For HP 11 |
|
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 |
|
5889 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } |
|
5890 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : |
|
5891 $as_echo_n "(cached) " >&6 |
|
5892 else |
|
5893 ac_check_lib_save_LIBS=$LIBS |
|
5894 LIBS="-lpthread $LIBS" |
|
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5896 /* end confdefs.h. */ |
|
5897 |
|
5898 /* Override any GCC internal prototype to avoid an error. |
|
5899 Use char because int might match the return type of a GCC |
|
5900 builtin and then its argument prototype would still apply. */ |
|
5901 #ifdef __cplusplus |
|
5902 extern "C" |
|
5903 #endif |
|
5904 char pthread_mutex_init (); |
|
5905 int |
|
5906 main () |
|
5907 { |
|
5908 return pthread_mutex_init (); |
|
5909 ; |
|
5910 return 0; |
|
5911 } |
|
5912 _ACEOF |
|
5913 if ac_fn_c_try_link "$LINENO"; then : |
|
5914 ac_cv_lib_pthread_pthread_mutex_init=yes |
|
5915 else |
|
5916 ac_cv_lib_pthread_pthread_mutex_init=no |
|
5917 fi |
|
5918 rm -f core conftest.err conftest.$ac_objext \ |
|
5919 conftest$ac_exeext conftest.$ac_ext |
|
5920 LIBS=$ac_check_lib_save_LIBS |
|
5921 fi |
|
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
|
5923 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
|
5924 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : |
|
5925 cat >>confdefs.h <<_ACEOF |
|
5926 #define HAVE_LIBPTHREAD 1 |
|
5927 _ACEOF |
|
5928 |
|
5929 LIBS="-lpthread $LIBS" |
|
5930 |
|
5931 fi |
|
5932 |
|
5933 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
|
5934 ICU_USE_THREADS=1 |
|
5935 fi |
|
5936 fi |
|
5937 |
|
5938 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" |
|
5939 if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : |
|
5940 |
|
5941 fi |
|
5942 |
|
5943 |
|
5944 if test $ac_cv_func_pthread_mutex_lock = yes; then |
|
5945 ICU_USE_THREADS=1 |
|
5946 fi |
|
5947 fi |
|
5948 # Check to see if we are using CygWin with MSVC |
|
5949 case "${host}" in |
|
5950 *-pc-cygwin*|*-pc-mingw*) |
|
5951 # For gcc, the thread options are set by mh-mingw/mh-cygwin |
|
5952 # For msvc, the thread options are set by runConfigureICU |
|
5953 ICU_USE_THREADS=1 |
|
5954 ;; |
|
5955 *-*-hpux*) |
|
5956 # Add -mt because it does several nice things on newer compilers. |
|
5957 case "${icu_cv_host_frag}" in |
|
5958 mh-hpux-acc) |
|
5959 OLD_CXXFLAGS="${CXXFLAGS}" |
|
5960 CXXFLAGS="${CXXFLAGS} -mt" |
|
5961 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then |
|
5962 CXXFLAGS="${OLD_CXXFLAGS}" |
|
5963 else |
|
5964 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt" |
|
5965 fi |
|
5966 ;; |
|
5967 esac |
|
5968 ;; |
|
5969 *-*-solaris*) |
|
5970 case "${icu_cv_host_frag}" in |
|
5971 mh-solaris) |
|
5972 LIBS="${LIBS} -mt" |
|
5973 ;; |
|
5974 esac |
|
5975 ;; |
|
5976 esac |
|
5977 fi |
|
5978 |
|
5979 # Check whether --enable-weak-threads was given. |
|
5980 if test "${enable_weak_threads+set}" = set; then : |
|
5981 enableval=$enable_weak_threads; case "${enableval}" in |
|
5982 yes) |
|
5983 LIB_THREAD="${LIBS%${OLD_LIBS}}" |
|
5984 LIBS=${OLD_LIBS} |
|
5985 ;; |
|
5986 no) ;; |
|
5987 *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;; |
|
5988 esac |
|
5989 fi |
|
5990 |
|
5991 |
|
5992 |
|
5993 # Check for mmap() |
|
5994 |
|
5995 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. |
|
5996 # Do this check instead. |
|
5997 HAVE_MMAP=0 |
|
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5 |
|
5999 $as_echo_n "checking for mmap... " >&6; } |
|
6000 if ${ac_cv_func_mmap_ok+:} false; then : |
|
6001 $as_echo_n "(cached) " >&6 |
|
6002 else |
|
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6004 /* end confdefs.h. */ |
|
6005 #include <unistd.h> |
|
6006 #include <sys/mman.h> |
|
6007 #include <sys/stat.h> |
|
6008 #include <fcntl.h> |
|
6009 int |
|
6010 main () |
|
6011 { |
|
6012 mmap((void *)0, 0, PROT_READ, 0, 0, 0); |
|
6013 ; |
|
6014 return 0; |
|
6015 } |
|
6016 _ACEOF |
|
6017 if ac_fn_c_try_link "$LINENO"; then : |
|
6018 ac_cv_func_mmap_ok=yes |
|
6019 else |
|
6020 ac_cv_func_mmap_ok=no |
|
6021 fi |
|
6022 rm -f core conftest.err conftest.$ac_objext \ |
|
6023 conftest$ac_exeext conftest.$ac_ext |
|
6024 fi |
|
6025 |
|
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5 |
|
6027 $as_echo "$ac_cv_func_mmap_ok" >&6; } |
|
6028 if test $ac_cv_func_mmap_ok = yes |
|
6029 then |
|
6030 HAVE_MMAP=1 |
|
6031 else |
|
6032 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0" |
|
6033 fi |
|
6034 |
|
6035 |
|
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5 |
|
6037 $as_echo_n "checking for genccode assembly... " >&6; } |
|
6038 |
|
6039 # Check to see if genccode can generate simple assembly. |
|
6040 GENCCODE_ASSEMBLY= |
|
6041 case "${host}" in |
|
6042 *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu) |
|
6043 if test "$GCC" = yes; then |
|
6044 # We're using gcc, and the simple -a gcc command line works for genccode |
|
6045 GENCCODE_ASSEMBLY="-a gcc" |
|
6046 fi ;; |
|
6047 i*86-*-solaris*) |
|
6048 if test "$GCC" = yes; then |
|
6049 # When using gcc, look if we're also using GNU as. |
|
6050 # When using GNU as, the simple -a gcc command line works for genccode. |
|
6051 asv=`"${CC}" -print-prog-name=as 2>/dev/null` |
|
6052 asv=`"${asv}" --version 2>/dev/null` |
|
6053 case "X${asv}" in |
|
6054 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;; |
|
6055 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; |
|
6056 esac |
|
6057 unset asv |
|
6058 else |
|
6059 GENCCODE_ASSEMBLY="-a sun-x86" |
|
6060 fi ;; |
|
6061 sparc-*-solaris*) |
|
6062 GENCCODE_ASSEMBLY="-a sun" |
|
6063 ;; |
|
6064 ia64-*-hpux*) |
|
6065 GENCCODE_ASSEMBLY="-a aCC-ia64" |
|
6066 ;; |
|
6067 esac |
|
6068 |
|
6069 |
|
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5 |
|
6071 $as_echo "$GENCCODE_ASSEMBLY" >&6; } |
|
6072 |
|
6073 # Checks for header files |
|
6074 for ac_header in inttypes.h |
|
6075 do : |
|
6076 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
|
6077 if test "x$ac_cv_header_inttypes_h" = xyes; then : |
|
6078 cat >>confdefs.h <<_ACEOF |
|
6079 #define HAVE_INTTYPES_H 1 |
|
6080 _ACEOF |
|
6081 |
|
6082 fi |
|
6083 |
|
6084 done |
|
6085 |
|
6086 if test $ac_cv_header_inttypes_h = no; then |
|
6087 U_HAVE_INTTYPES_H=0 |
|
6088 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
|
6089 else |
|
6090 U_HAVE_INTTYPES_H=1 |
|
6091 fi |
|
6092 if test "$CC" = ccc; then |
|
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5 |
|
6094 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; } |
|
6095 case "${host}" in |
|
6096 alpha*-*-*) U_HAVE_INTTYPES_H=0; |
|
6097 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
|
6098 esac |
|
6099 fi |
|
6100 |
|
6101 |
|
6102 |
|
6103 for ac_header in dirent.h |
|
6104 do : |
|
6105 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" |
|
6106 if test "x$ac_cv_header_dirent_h" = xyes; then : |
|
6107 cat >>confdefs.h <<_ACEOF |
|
6108 #define HAVE_DIRENT_H 1 |
|
6109 _ACEOF |
|
6110 |
|
6111 fi |
|
6112 |
|
6113 done |
|
6114 |
|
6115 if test $ac_cv_header_dirent_h = no; then |
|
6116 U_HAVE_DIRENT_H=0 |
|
6117 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0" |
|
6118 else |
|
6119 U_HAVE_DIRENT_H=1 |
|
6120 fi |
|
6121 |
|
6122 |
|
6123 |
|
6124 # Check for endianness |
|
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
|
6126 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
|
6127 if ${ac_cv_c_bigendian+:} false; then : |
|
6128 $as_echo_n "(cached) " >&6 |
|
6129 else |
|
6130 ac_cv_c_bigendian=unknown |
|
6131 # See if we're dealing with a universal compiler. |
|
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6133 /* end confdefs.h. */ |
|
6134 #ifndef __APPLE_CC__ |
|
6135 not a universal capable compiler |
|
6136 #endif |
|
6137 typedef int dummy; |
|
6138 |
|
6139 _ACEOF |
|
6140 if ac_fn_c_try_compile "$LINENO"; then : |
|
6141 |
|
6142 # Check for potential -arch flags. It is not universal unless |
|
6143 # there are at least two -arch flags with different values. |
|
6144 ac_arch= |
|
6145 ac_prev= |
|
6146 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
|
6147 if test -n "$ac_prev"; then |
|
6148 case $ac_word in |
|
6149 i?86 | x86_64 | ppc | ppc64) |
|
6150 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
|
6151 ac_arch=$ac_word |
|
6152 else |
|
6153 ac_cv_c_bigendian=universal |
|
6154 break |
|
6155 fi |
|
6156 ;; |
|
6157 esac |
|
6158 ac_prev= |
|
6159 elif test "x$ac_word" = "x-arch"; then |
|
6160 ac_prev=arch |
|
6161 fi |
|
6162 done |
|
6163 fi |
|
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6165 if test $ac_cv_c_bigendian = unknown; then |
|
6166 # See if sys/param.h defines the BYTE_ORDER macro. |
|
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6168 /* end confdefs.h. */ |
|
6169 #include <sys/types.h> |
|
6170 #include <sys/param.h> |
|
6171 |
|
6172 int |
|
6173 main () |
|
6174 { |
|
6175 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
|
6176 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
|
6177 && LITTLE_ENDIAN) |
|
6178 bogus endian macros |
|
6179 #endif |
|
6180 |
|
6181 ; |
|
6182 return 0; |
|
6183 } |
|
6184 _ACEOF |
|
6185 if ac_fn_c_try_compile "$LINENO"; then : |
|
6186 # It does; now see whether it defined to BIG_ENDIAN or not. |
|
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6188 /* end confdefs.h. */ |
|
6189 #include <sys/types.h> |
|
6190 #include <sys/param.h> |
|
6191 |
|
6192 int |
|
6193 main () |
|
6194 { |
|
6195 #if BYTE_ORDER != BIG_ENDIAN |
|
6196 not big endian |
|
6197 #endif |
|
6198 |
|
6199 ; |
|
6200 return 0; |
|
6201 } |
|
6202 _ACEOF |
|
6203 if ac_fn_c_try_compile "$LINENO"; then : |
|
6204 ac_cv_c_bigendian=yes |
|
6205 else |
|
6206 ac_cv_c_bigendian=no |
|
6207 fi |
|
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6209 fi |
|
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6211 fi |
|
6212 if test $ac_cv_c_bigendian = unknown; then |
|
6213 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
|
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6215 /* end confdefs.h. */ |
|
6216 #include <limits.h> |
|
6217 |
|
6218 int |
|
6219 main () |
|
6220 { |
|
6221 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
|
6222 bogus endian macros |
|
6223 #endif |
|
6224 |
|
6225 ; |
|
6226 return 0; |
|
6227 } |
|
6228 _ACEOF |
|
6229 if ac_fn_c_try_compile "$LINENO"; then : |
|
6230 # It does; now see whether it defined to _BIG_ENDIAN or not. |
|
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6232 /* end confdefs.h. */ |
|
6233 #include <limits.h> |
|
6234 |
|
6235 int |
|
6236 main () |
|
6237 { |
|
6238 #ifndef _BIG_ENDIAN |
|
6239 not big endian |
|
6240 #endif |
|
6241 |
|
6242 ; |
|
6243 return 0; |
|
6244 } |
|
6245 _ACEOF |
|
6246 if ac_fn_c_try_compile "$LINENO"; then : |
|
6247 ac_cv_c_bigendian=yes |
|
6248 else |
|
6249 ac_cv_c_bigendian=no |
|
6250 fi |
|
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6252 fi |
|
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6254 fi |
|
6255 if test $ac_cv_c_bigendian = unknown; then |
|
6256 # Compile a test program. |
|
6257 if test "$cross_compiling" = yes; then : |
|
6258 # Try to guess by grepping values from an object file. |
|
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6260 /* end confdefs.h. */ |
|
6261 short int ascii_mm[] = |
|
6262 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
|
6263 short int ascii_ii[] = |
|
6264 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
|
6265 int use_ascii (int i) { |
|
6266 return ascii_mm[i] + ascii_ii[i]; |
|
6267 } |
|
6268 short int ebcdic_ii[] = |
|
6269 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
|
6270 short int ebcdic_mm[] = |
|
6271 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
|
6272 int use_ebcdic (int i) { |
|
6273 return ebcdic_mm[i] + ebcdic_ii[i]; |
|
6274 } |
|
6275 extern int foo; |
|
6276 |
|
6277 int |
|
6278 main () |
|
6279 { |
|
6280 return use_ascii (foo) == use_ebcdic (foo); |
|
6281 ; |
|
6282 return 0; |
|
6283 } |
|
6284 _ACEOF |
|
6285 if ac_fn_c_try_compile "$LINENO"; then : |
|
6286 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
|
6287 ac_cv_c_bigendian=yes |
|
6288 fi |
|
6289 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
|
6290 if test "$ac_cv_c_bigendian" = unknown; then |
|
6291 ac_cv_c_bigendian=no |
|
6292 else |
|
6293 # finding both strings is unlikely to happen, but who knows? |
|
6294 ac_cv_c_bigendian=unknown |
|
6295 fi |
|
6296 fi |
|
6297 fi |
|
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6299 else |
|
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6301 /* end confdefs.h. */ |
|
6302 $ac_includes_default |
|
6303 int |
|
6304 main () |
|
6305 { |
|
6306 |
|
6307 /* Are we little or big endian? From Harbison&Steele. */ |
|
6308 union |
|
6309 { |
|
6310 long int l; |
|
6311 char c[sizeof (long int)]; |
|
6312 } u; |
|
6313 u.l = 1; |
|
6314 return u.c[sizeof (long int) - 1] == 1; |
|
6315 |
|
6316 ; |
|
6317 return 0; |
|
6318 } |
|
6319 _ACEOF |
|
6320 if ac_fn_c_try_run "$LINENO"; then : |
|
6321 ac_cv_c_bigendian=no |
|
6322 else |
|
6323 ac_cv_c_bigendian=yes |
|
6324 fi |
|
6325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
6326 conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
6327 fi |
|
6328 |
|
6329 fi |
|
6330 fi |
|
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
|
6332 $as_echo "$ac_cv_c_bigendian" >&6; } |
|
6333 case $ac_cv_c_bigendian in #( |
|
6334 yes) |
|
6335 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
|
6336 ;; #( |
|
6337 no) |
|
6338 ;; #( |
|
6339 universal) |
|
6340 |
|
6341 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
|
6342 |
|
6343 ;; #( |
|
6344 *) |
|
6345 as_fn_error $? "unknown endianness |
|
6346 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
|
6347 esac |
|
6348 |
|
6349 if test $ac_cv_c_bigendian = no; then |
|
6350 U_IS_BIG_ENDIAN=0 |
|
6351 U_ENDIAN_CHAR="l" |
|
6352 else |
|
6353 U_IS_BIG_ENDIAN=1 |
|
6354 U_ENDIAN_CHAR="b" |
|
6355 fi |
|
6356 |
|
6357 |
|
6358 # Do various POSIX related checks |
|
6359 U_HAVE_NL_LANGINFO_CODESET=0 |
|
6360 U_NL_LANGINFO_CODESET=-1 |
|
6361 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" |
|
6362 if test "x$ac_cv_func_nl_langinfo" = xyes; then : |
|
6363 U_HAVE_NL_LANGINFO=1 |
|
6364 else |
|
6365 U_HAVE_NL_LANGINFO=0 |
|
6366 fi |
|
6367 |
|
6368 if test $U_HAVE_NL_LANGINFO -eq 1; then |
|
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5 |
|
6370 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; } |
|
6371 if ${ac_cv_nl_langinfo_codeset+:} false; then : |
|
6372 $as_echo_n "(cached) " >&6 |
|
6373 else |
|
6374 ac_cv_nl_langinfo_codeset="unknown" |
|
6375 for a in CODESET _NL_CTYPE_CODESET_NAME; do |
|
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6377 /* end confdefs.h. */ |
|
6378 #include <langinfo.h> |
|
6379 int |
|
6380 main () |
|
6381 { |
|
6382 nl_langinfo($a); |
|
6383 ; |
|
6384 return 0; |
|
6385 } |
|
6386 _ACEOF |
|
6387 if ac_fn_c_try_link "$LINENO"; then : |
|
6388 ac_cv_nl_langinfo_codeset="$a"; break |
|
6389 fi |
|
6390 rm -f core conftest.err conftest.$ac_objext \ |
|
6391 conftest$ac_exeext conftest.$ac_ext |
|
6392 done |
|
6393 fi |
|
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5 |
|
6395 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; } |
|
6396 if test x$ac_cv_nl_langinfo_codeset != xunknown |
|
6397 then |
|
6398 U_HAVE_NL_LANGINFO_CODESET=1 |
|
6399 U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset |
|
6400 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET" |
|
6401 then |
|
6402 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}" |
|
6403 fi |
|
6404 else |
|
6405 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0" |
|
6406 fi |
|
6407 fi |
|
6408 |
|
6409 |
|
6410 |
|
6411 # Namespace support checks |
|
6412 ac_ext=cpp |
|
6413 ac_cpp='$CXXCPP $CPPFLAGS' |
|
6414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
6417 |
|
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5 |
|
6419 $as_echo_n "checking for namespace support... " >&6; } |
|
6420 if ${ac_cv_namespace_ok+:} false; then : |
|
6421 $as_echo_n "(cached) " >&6 |
|
6422 else |
|
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6424 /* end confdefs.h. */ |
|
6425 namespace x_version {void f(){}} |
|
6426 namespace x = x_version; |
|
6427 using namespace x_version; |
|
6428 |
|
6429 int |
|
6430 main () |
|
6431 { |
|
6432 f(); |
|
6433 ; |
|
6434 return 0; |
|
6435 } |
|
6436 _ACEOF |
|
6437 if ac_fn_cxx_try_link "$LINENO"; then : |
|
6438 ac_cv_namespace_ok=yes |
|
6439 else |
|
6440 ac_cv_namespace_ok=no |
|
6441 fi |
|
6442 rm -f core conftest.err conftest.$ac_objext \ |
|
6443 conftest$ac_exeext conftest.$ac_ext |
|
6444 fi |
|
6445 |
|
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5 |
|
6447 $as_echo "$ac_cv_namespace_ok" >&6; } |
|
6448 if test $ac_cv_namespace_ok = no |
|
6449 then |
|
6450 as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5 |
|
6451 fi |
|
6452 |
|
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5 |
|
6454 $as_echo_n "checking for properly overriding new and delete... " >&6; } |
|
6455 U_OVERRIDE_CXX_ALLOCATION=0 |
|
6456 U_HAVE_PLACEMENT_NEW=0 |
|
6457 if ${ac_cv_override_cxx_allocation_ok+:} false; then : |
|
6458 $as_echo_n "(cached) " >&6 |
|
6459 else |
|
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6461 /* end confdefs.h. */ |
|
6462 #include <stdlib.h> |
|
6463 class UMemory { |
|
6464 public: |
|
6465 void *operator new(size_t size) {return malloc(size);} |
|
6466 void *operator new[](size_t size) {return malloc(size);} |
|
6467 void operator delete(void *p) {free(p);} |
|
6468 void operator delete[](void *p) {free(p);} |
|
6469 }; |
|
6470 |
|
6471 int |
|
6472 main () |
|
6473 { |
|
6474 |
|
6475 ; |
|
6476 return 0; |
|
6477 } |
|
6478 _ACEOF |
|
6479 if ac_fn_cxx_try_link "$LINENO"; then : |
|
6480 ac_cv_override_cxx_allocation_ok=yes |
|
6481 else |
|
6482 ac_cv_override_cxx_allocation_ok=no |
|
6483 fi |
|
6484 rm -f core conftest.err conftest.$ac_objext \ |
|
6485 conftest$ac_exeext conftest.$ac_ext |
|
6486 fi |
|
6487 |
|
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5 |
|
6489 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; } |
|
6490 if test $ac_cv_override_cxx_allocation_ok = yes |
|
6491 then |
|
6492 U_OVERRIDE_CXX_ALLOCATION=1 |
|
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5 |
|
6494 $as_echo_n "checking for placement new and delete... " >&6; } |
|
6495 if ${ac_cv_override_placement_new_ok+:} false; then : |
|
6496 $as_echo_n "(cached) " >&6 |
|
6497 else |
|
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6499 /* end confdefs.h. */ |
|
6500 #include <stdlib.h> |
|
6501 class UMemory { |
|
6502 public: |
|
6503 void *operator new(size_t size) {return malloc(size);} |
|
6504 void *operator new[](size_t size) {return malloc(size);} |
|
6505 void operator delete(void *p) {free(p);} |
|
6506 void operator delete[](void *p) {free(p);} |
|
6507 void * operator new(size_t, void *ptr) { return ptr; } |
|
6508 void operator delete(void *, void *) {} |
|
6509 }; |
|
6510 |
|
6511 int |
|
6512 main () |
|
6513 { |
|
6514 |
|
6515 ; |
|
6516 return 0; |
|
6517 } |
|
6518 _ACEOF |
|
6519 if ac_fn_cxx_try_link "$LINENO"; then : |
|
6520 ac_cv_override_placement_new_ok=yes |
|
6521 else |
|
6522 ac_cv_override_placement_new_ok=no |
|
6523 fi |
|
6524 rm -f core conftest.err conftest.$ac_objext \ |
|
6525 conftest$ac_exeext conftest.$ac_ext |
|
6526 fi |
|
6527 |
|
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5 |
|
6529 $as_echo "$ac_cv_override_placement_new_ok" >&6; } |
|
6530 if test $ac_cv_override_placement_new_ok = yes |
|
6531 then |
|
6532 U_HAVE_PLACEMENT_NEW=1 |
|
6533 else |
|
6534 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0" |
|
6535 fi |
|
6536 else |
|
6537 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0" |
|
6538 fi |
|
6539 |
|
6540 |
|
6541 |
|
6542 ac_ext=c |
|
6543 ac_cpp='$CPP $CPPFLAGS' |
|
6544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6546 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6547 |
|
6548 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" |
|
6549 if test "x$ac_cv_func_popen" = xyes; then : |
|
6550 |
|
6551 fi |
|
6552 |
|
6553 if test x$ac_cv_func_popen = xyes |
|
6554 then |
|
6555 U_HAVE_POPEN=1 |
|
6556 else |
|
6557 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0" |
|
6558 U_HAVE_POPEN=0 |
|
6559 fi |
|
6560 |
|
6561 |
|
6562 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" |
|
6563 if test "x$ac_cv_func_tzset" = xyes; then : |
|
6564 |
|
6565 fi |
|
6566 |
|
6567 U_HAVE_TZSET=0 |
|
6568 if test x$ac_cv_func_tzset = xyes |
|
6569 then |
|
6570 U_TZSET=tzset |
|
6571 U_HAVE_TZSET=1 |
|
6572 else |
|
6573 ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset" |
|
6574 if test "x$ac_cv_func__tzset" = xyes; then : |
|
6575 |
|
6576 fi |
|
6577 |
|
6578 if test x$ac_cv_func__tzset = xyes |
|
6579 then |
|
6580 U_TZSET=_tzset |
|
6581 U_HAVE_TZSET=1 |
|
6582 else |
|
6583 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0" |
|
6584 fi |
|
6585 fi |
|
6586 |
|
6587 |
|
6588 |
|
6589 U_HAVE_TZNAME=0 |
|
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
|
6591 $as_echo_n "checking for tzname... " >&6; } |
|
6592 if ${ac_cv_var_tzname+:} false; then : |
|
6593 $as_echo_n "(cached) " >&6 |
|
6594 else |
|
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6596 /* end confdefs.h. */ |
|
6597 #ifndef __USE_POSIX |
|
6598 #define __USE_POSIX |
|
6599 #endif |
|
6600 #include <stdlib.h> |
|
6601 #include <time.h> |
|
6602 #ifndef tzname /* For SGI. */ |
|
6603 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
|
6604 #endif |
|
6605 int |
|
6606 main () |
|
6607 { |
|
6608 atoi(*tzname); |
|
6609 ; |
|
6610 return 0; |
|
6611 } |
|
6612 _ACEOF |
|
6613 if ac_fn_c_try_link "$LINENO"; then : |
|
6614 ac_cv_var_tzname=yes |
|
6615 else |
|
6616 ac_cv_var_tzname=no |
|
6617 fi |
|
6618 rm -f core conftest.err conftest.$ac_objext \ |
|
6619 conftest$ac_exeext conftest.$ac_ext |
|
6620 fi |
|
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
|
6622 $as_echo "$ac_cv_var_tzname" >&6; } |
|
6623 if test $ac_cv_var_tzname = yes; then |
|
6624 U_TZNAME=tzname |
|
6625 U_HAVE_TZNAME=1 |
|
6626 else |
|
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5 |
|
6628 $as_echo_n "checking for _tzname... " >&6; } |
|
6629 if ${ac_cv_var__tzname+:} false; then : |
|
6630 $as_echo_n "(cached) " >&6 |
|
6631 else |
|
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6633 /* end confdefs.h. */ |
|
6634 #include <stdlib.h> |
|
6635 #include <time.h> |
|
6636 extern char *_tzname[]; |
|
6637 int |
|
6638 main () |
|
6639 { |
|
6640 atoi(*_tzname); |
|
6641 ; |
|
6642 return 0; |
|
6643 } |
|
6644 _ACEOF |
|
6645 if ac_fn_c_try_link "$LINENO"; then : |
|
6646 ac_cv_var__tzname=yes |
|
6647 else |
|
6648 ac_cv_var__tzname=no |
|
6649 fi |
|
6650 rm -f core conftest.err conftest.$ac_objext \ |
|
6651 conftest$ac_exeext conftest.$ac_ext |
|
6652 fi |
|
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5 |
|
6654 $as_echo "$ac_cv_var__tzname" >&6; } |
|
6655 if test $ac_cv_var__tzname = yes; then |
|
6656 U_TZNAME=_tzname |
|
6657 U_HAVE_TZNAME=1 |
|
6658 else |
|
6659 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0" |
|
6660 fi |
|
6661 fi |
|
6662 |
|
6663 |
|
6664 |
|
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 |
|
6666 $as_echo_n "checking for timezone... " >&6; } |
|
6667 if ${ac_cv_var_timezone+:} false; then : |
|
6668 $as_echo_n "(cached) " >&6 |
|
6669 else |
|
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6671 /* end confdefs.h. */ |
|
6672 #ifndef __USE_POSIX |
|
6673 #define __USE_POSIX |
|
6674 #endif |
|
6675 #ifndef __USE_XOPEN |
|
6676 #define __USE_XOPEN |
|
6677 #endif |
|
6678 #include <time.h> |
|
6679 |
|
6680 int |
|
6681 main () |
|
6682 { |
|
6683 timezone = 1; |
|
6684 ; |
|
6685 return 0; |
|
6686 } |
|
6687 _ACEOF |
|
6688 if ac_fn_c_try_link "$LINENO"; then : |
|
6689 ac_cv_var_timezone=yes |
|
6690 else |
|
6691 ac_cv_var_timezone=no |
|
6692 fi |
|
6693 rm -f core conftest.err conftest.$ac_objext \ |
|
6694 conftest$ac_exeext conftest.$ac_ext |
|
6695 fi |
|
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5 |
|
6697 $as_echo "$ac_cv_var_timezone" >&6; } |
|
6698 U_HAVE_TIMEZONE=0 |
|
6699 if test $ac_cv_var_timezone = yes; then |
|
6700 U_TIMEZONE=timezone |
|
6701 U_HAVE_TIMEZONE=1 |
|
6702 else |
|
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5 |
|
6704 $as_echo_n "checking for __timezone... " >&6; } |
|
6705 if ${ac_cv_var___timezone+:} false; then : |
|
6706 $as_echo_n "(cached) " >&6 |
|
6707 else |
|
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6709 /* end confdefs.h. */ |
|
6710 #include <time.h> |
|
6711 int |
|
6712 main () |
|
6713 { |
|
6714 __timezone = 1; |
|
6715 ; |
|
6716 return 0; |
|
6717 } |
|
6718 _ACEOF |
|
6719 if ac_fn_c_try_link "$LINENO"; then : |
|
6720 ac_cv_var___timezone=yes |
|
6721 else |
|
6722 ac_cv_var___timezone=no |
|
6723 fi |
|
6724 rm -f core conftest.err conftest.$ac_objext \ |
|
6725 conftest$ac_exeext conftest.$ac_ext |
|
6726 fi |
|
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5 |
|
6728 $as_echo "$ac_cv_var___timezone" >&6; } |
|
6729 if test $ac_cv_var___timezone = yes; then |
|
6730 U_TIMEZONE=__timezone |
|
6731 U_HAVE_TIMEZONE=1 |
|
6732 else |
|
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5 |
|
6734 $as_echo_n "checking for _timezone... " >&6; } |
|
6735 if ${ac_cv_var__timezone+:} false; then : |
|
6736 $as_echo_n "(cached) " >&6 |
|
6737 else |
|
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6739 /* end confdefs.h. */ |
|
6740 #include <time.h> |
|
6741 int |
|
6742 main () |
|
6743 { |
|
6744 _timezone = 1; |
|
6745 ; |
|
6746 return 0; |
|
6747 } |
|
6748 _ACEOF |
|
6749 if ac_fn_c_try_link "$LINENO"; then : |
|
6750 ac_cv_var__timezone=yes |
|
6751 else |
|
6752 ac_cv_var__timezone=no |
|
6753 fi |
|
6754 rm -f core conftest.err conftest.$ac_objext \ |
|
6755 conftest$ac_exeext conftest.$ac_ext |
|
6756 fi |
|
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5 |
|
6758 $as_echo "$ac_cv_var__timezone" >&6; } |
|
6759 if test $ac_cv_var__timezone = yes; then |
|
6760 U_TIMEZONE=_timezone |
|
6761 U_HAVE_TIMEZONE=1 |
|
6762 else |
|
6763 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0" |
|
6764 fi |
|
6765 fi |
|
6766 fi |
|
6767 |
|
6768 |
|
6769 |
|
6770 # Checks for typedefs |
|
6771 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
|
6772 if test "x$ac_cv_type_int8_t" = xyes; then : |
|
6773 |
|
6774 else |
|
6775 |
|
6776 cat >>confdefs.h <<_ACEOF |
|
6777 #define int8_t signed char |
|
6778 _ACEOF |
|
6779 |
|
6780 fi |
|
6781 |
|
6782 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
|
6783 if test "x$ac_cv_type_uint8_t" = xyes; then : |
|
6784 |
|
6785 else |
|
6786 |
|
6787 cat >>confdefs.h <<_ACEOF |
|
6788 #define uint8_t unsigned char |
|
6789 _ACEOF |
|
6790 |
|
6791 fi |
|
6792 |
|
6793 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
|
6794 if test "x$ac_cv_type_int16_t" = xyes; then : |
|
6795 |
|
6796 else |
|
6797 |
|
6798 cat >>confdefs.h <<_ACEOF |
|
6799 #define int16_t signed short |
|
6800 _ACEOF |
|
6801 |
|
6802 fi |
|
6803 |
|
6804 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
|
6805 if test "x$ac_cv_type_uint16_t" = xyes; then : |
|
6806 |
|
6807 else |
|
6808 |
|
6809 cat >>confdefs.h <<_ACEOF |
|
6810 #define uint16_t unsigned short |
|
6811 _ACEOF |
|
6812 |
|
6813 fi |
|
6814 |
|
6815 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
|
6816 if test "x$ac_cv_type_int32_t" = xyes; then : |
|
6817 |
|
6818 else |
|
6819 |
|
6820 cat >>confdefs.h <<_ACEOF |
|
6821 #define int32_t signed long |
|
6822 _ACEOF |
|
6823 |
|
6824 fi |
|
6825 |
|
6826 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
|
6827 if test "x$ac_cv_type_uint32_t" = xyes; then : |
|
6828 |
|
6829 else |
|
6830 |
|
6831 cat >>confdefs.h <<_ACEOF |
|
6832 #define uint32_t unsigned long |
|
6833 _ACEOF |
|
6834 |
|
6835 fi |
|
6836 |
|
6837 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
|
6838 if test "x$ac_cv_type_int64_t" = xyes; then : |
|
6839 |
|
6840 else |
|
6841 |
|
6842 cat >>confdefs.h <<_ACEOF |
|
6843 #define int64_t signed long long |
|
6844 _ACEOF |
|
6845 |
|
6846 fi |
|
6847 |
|
6848 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
|
6849 if test "x$ac_cv_type_uint64_t" = xyes; then : |
|
6850 |
|
6851 else |
|
6852 |
|
6853 cat >>confdefs.h <<_ACEOF |
|
6854 #define uint64_t unsigned long long |
|
6855 _ACEOF |
|
6856 |
|
6857 fi |
|
6858 |
|
6859 |
|
6860 if test $ac_cv_type_int8_t = no; then |
|
6861 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0" |
|
6862 fi |
|
6863 |
|
6864 if test $ac_cv_type_uint8_t = no; then |
|
6865 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0" |
|
6866 fi |
|
6867 |
|
6868 if test $ac_cv_type_int16_t = no; then |
|
6869 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0" |
|
6870 fi |
|
6871 |
|
6872 if test $ac_cv_type_uint16_t = no; then |
|
6873 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0" |
|
6874 fi |
|
6875 |
|
6876 if test $ac_cv_type_int32_t = no; then |
|
6877 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0" |
|
6878 fi |
|
6879 |
|
6880 if test $ac_cv_type_uint32_t = no; then |
|
6881 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0" |
|
6882 fi |
|
6883 |
|
6884 if test $ac_cv_type_int64_t = no; then |
|
6885 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0" |
|
6886 fi |
|
6887 |
|
6888 if test $ac_cv_type_uint64_t = no; then |
|
6889 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0" |
|
6890 fi |
|
6891 |
|
6892 # Do various wchar_t related checks |
|
6893 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
|
6894 if test "x$ac_cv_header_wchar_h" = xyes; then : |
|
6895 |
|
6896 fi |
|
6897 |
|
6898 |
|
6899 if test "$ac_cv_header_wchar_h" = no |
|
6900 then |
|
6901 U_HAVE_WCHAR_H=0 |
|
6902 U_HAVE_WCSCPY=0 |
|
6903 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0" |
|
6904 else |
|
6905 |
|
6906 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
|
6907 |
|
6908 U_HAVE_WCHAR_H=1 |
|
6909 # Some broken systems have wchar.h but not some of its functions... |
|
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5 |
|
6911 $as_echo_n "checking for library containing wcscpy... " >&6; } |
|
6912 if ${ac_cv_search_wcscpy+:} false; then : |
|
6913 $as_echo_n "(cached) " >&6 |
|
6914 else |
|
6915 ac_func_search_save_LIBS=$LIBS |
|
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6917 /* end confdefs.h. */ |
|
6918 |
|
6919 /* Override any GCC internal prototype to avoid an error. |
|
6920 Use char because int might match the return type of a GCC |
|
6921 builtin and then its argument prototype would still apply. */ |
|
6922 #ifdef __cplusplus |
|
6923 extern "C" |
|
6924 #endif |
|
6925 char wcscpy (); |
|
6926 int |
|
6927 main () |
|
6928 { |
|
6929 return wcscpy (); |
|
6930 ; |
|
6931 return 0; |
|
6932 } |
|
6933 _ACEOF |
|
6934 for ac_lib in '' wcs w; do |
|
6935 if test -z "$ac_lib"; then |
|
6936 ac_res="none required" |
|
6937 else |
|
6938 ac_res=-l$ac_lib |
|
6939 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
6940 fi |
|
6941 if ac_fn_c_try_link "$LINENO"; then : |
|
6942 ac_cv_search_wcscpy=$ac_res |
|
6943 fi |
|
6944 rm -f core conftest.err conftest.$ac_objext \ |
|
6945 conftest$ac_exeext |
|
6946 if ${ac_cv_search_wcscpy+:} false; then : |
|
6947 break |
|
6948 fi |
|
6949 done |
|
6950 if ${ac_cv_search_wcscpy+:} false; then : |
|
6951 |
|
6952 else |
|
6953 ac_cv_search_wcscpy=no |
|
6954 fi |
|
6955 rm conftest.$ac_ext |
|
6956 LIBS=$ac_func_search_save_LIBS |
|
6957 fi |
|
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5 |
|
6959 $as_echo "$ac_cv_search_wcscpy" >&6; } |
|
6960 ac_res=$ac_cv_search_wcscpy |
|
6961 if test "$ac_res" != no; then : |
|
6962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
6963 |
|
6964 fi |
|
6965 |
|
6966 if test "$ac_cv_search_wcscpy" != no; then |
|
6967 U_HAVE_WCSCPY=1 |
|
6968 else |
|
6969 U_HAVE_WCSCPY=0 |
|
6970 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0" |
|
6971 fi |
|
6972 fi |
|
6973 |
|
6974 |
|
6975 |
|
6976 # The cast to long int works around a bug in the HP C Compiler |
|
6977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
6978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
6979 # This bug is HP SR number 8606223364. |
|
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
|
6981 $as_echo_n "checking size of wchar_t... " >&6; } |
|
6982 if ${ac_cv_sizeof_wchar_t+:} false; then : |
|
6983 $as_echo_n "(cached) " >&6 |
|
6984 else |
|
6985 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" " |
|
6986 #if STDC_HEADERS |
|
6987 #include <stddef.h> |
|
6988 #endif |
|
6989 #include <stdlib.h> |
|
6990 #if HAVE_WCHAR_H |
|
6991 #include <string.h> |
|
6992 #include <wchar.h> |
|
6993 #endif |
|
6994 "; then : |
|
6995 |
|
6996 else |
|
6997 if test "$ac_cv_type_wchar_t" = yes; then |
|
6998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
6999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
7000 as_fn_error 77 "cannot compute sizeof (wchar_t) |
|
7001 See \`config.log' for more details" "$LINENO" 5; } |
|
7002 else |
|
7003 ac_cv_sizeof_wchar_t=0 |
|
7004 fi |
|
7005 fi |
|
7006 |
|
7007 fi |
|
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
|
7009 $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
|
7010 |
|
7011 |
|
7012 |
|
7013 cat >>confdefs.h <<_ACEOF |
|
7014 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
|
7015 _ACEOF |
|
7016 |
|
7017 |
|
7018 U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t |
|
7019 # We do this check to verify that everything is okay. |
|
7020 if test $U_SIZEOF_WCHAR_T = 0; then |
|
7021 if test $U_HAVE_WCHAR_H=1; then |
|
7022 as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5 |
|
7023 fi |
|
7024 fi |
|
7025 |
|
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5 |
|
7027 $as_echo_n "checking for UTF-16 string literal support... " >&6; } |
|
7028 U_CHECK_UTF16_STRING=1 |
|
7029 CHECK_UTF16_STRING_RESULT="unknown" |
|
7030 |
|
7031 case "${host}" in |
|
7032 *-*-aix*|powerpc64-*-linux*) |
|
7033 if test "$GCC" = no; then |
|
7034 OLD_CFLAGS="${CFLAGS}" |
|
7035 OLD_CXXFLAGS="${CXXFLAGS}" |
|
7036 CFLAGS="${CFLAGS} -qutf" |
|
7037 CXXFLAGS="${CXXFLAGS} -qutf" |
|
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7039 /* end confdefs.h. */ |
|
7040 const unsigned short hello[] = u"hello"; |
|
7041 int |
|
7042 main () |
|
7043 { |
|
7044 |
|
7045 ; |
|
7046 return 0; |
|
7047 } |
|
7048 _ACEOF |
|
7049 if ac_fn_c_try_compile "$LINENO"; then : |
|
7050 U_CHECK_UTF16_STRING=1 |
|
7051 else |
|
7052 U_CHECK_UTF16_STRING=0 |
|
7053 fi |
|
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7055 if test "$U_CHECK_UTF16_STRING" = 0; then |
|
7056 CFLAGS="${OLD_CFLAGS}" |
|
7057 CXXFLAGS="${OLD_CXXFLAGS}" |
|
7058 else |
|
7059 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf" |
|
7060 CHECK_UTF16_STRING_RESULT="-qutf" |
|
7061 fi |
|
7062 fi |
|
7063 ;; |
|
7064 *-*-solaris*) |
|
7065 if test "$GCC" = no; then |
|
7066 OLD_CFLAGS="${CFLAGS}" |
|
7067 OLD_CXXFLAGS="${CXXFLAGS}" |
|
7068 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" |
|
7069 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" |
|
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7071 /* end confdefs.h. */ |
|
7072 const unsigned short hello[] = U"hello"; |
|
7073 int |
|
7074 main () |
|
7075 { |
|
7076 |
|
7077 ; |
|
7078 return 0; |
|
7079 } |
|
7080 _ACEOF |
|
7081 if ac_fn_c_try_compile "$LINENO"; then : |
|
7082 U_CHECK_UTF16_STRING=1 |
|
7083 else |
|
7084 U_CHECK_UTF16_STRING=0 |
|
7085 fi |
|
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7087 if test "$U_CHECK_UTF16_STRING" = 0; then |
|
7088 CFLAGS="${OLD_CFLAGS}" |
|
7089 CXXFLAGS="${OLD_CXXFLAGS}" |
|
7090 else |
|
7091 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" |
|
7092 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort" |
|
7093 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort" |
|
7094 # Since we can't detect the availability of this UTF-16 syntax at compile time, |
|
7095 # we depend on configure telling us that we can use it. |
|
7096 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, |
|
7097 # we only use this macro within ICU. |
|
7098 # If an ICU user uses icu-config, this feature will be enabled. |
|
7099 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1" |
|
7100 U_CHECK_UTF16_STRING=0 |
|
7101 fi |
|
7102 fi |
|
7103 ;; |
|
7104 *-*-hpux*) |
|
7105 if test "$GCC" = no; then |
|
7106 # The option will be detected at compile time without additional compiler options. |
|
7107 CHECK_UTF16_STRING_RESULT="available" |
|
7108 fi |
|
7109 ;; |
|
7110 *-*-cygwin) |
|
7111 # wchar_t can be used |
|
7112 CHECK_UTF16_STRING_RESULT="available" |
|
7113 ;; |
|
7114 *) |
|
7115 ;; |
|
7116 esac |
|
7117 |
|
7118 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future. |
|
7119 if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then |
|
7120 if test "$GCC" = yes; then |
|
7121 OLD_CFLAGS="${CFLAGS}" |
|
7122 CFLAGS="${CFLAGS} -std=gnu99" |
|
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7124 /* end confdefs.h. */ |
|
7125 |
|
7126 static const char16_t test[] = u"This is a UTF16 literal string."; |
|
7127 |
|
7128 int |
|
7129 main () |
|
7130 { |
|
7131 |
|
7132 ; |
|
7133 return 0; |
|
7134 } |
|
7135 _ACEOF |
|
7136 if ac_fn_c_try_compile "$LINENO"; then : |
|
7137 CC_UTF16_STRING=1 |
|
7138 else |
|
7139 CC_UTF16_STRING=0 |
|
7140 fi |
|
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7142 if test "$CC_UTF16_STRING" = 1; then |
|
7143 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -std=gnu99" |
|
7144 CHECK_UTF16_STRING_RESULT="C only"; |
|
7145 else |
|
7146 CFLAGS="${OLD_CFLAGS}" |
|
7147 fi |
|
7148 fi |
|
7149 if test "$GXX" = yes; then |
|
7150 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about. |
|
7151 ac_ext=cpp |
|
7152 ac_cpp='$CXXCPP $CPPFLAGS' |
|
7153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
7156 |
|
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7158 /* end confdefs.h. */ |
|
7159 |
|
7160 static const char16_t test[] = u"This is a UTF16 literal string."; |
|
7161 |
|
7162 int |
|
7163 main () |
|
7164 { |
|
7165 |
|
7166 ; |
|
7167 return 0; |
|
7168 } |
|
7169 _ACEOF |
|
7170 if ac_fn_cxx_try_compile "$LINENO"; then : |
|
7171 CXX_UTF16_STRING=1 |
|
7172 else |
|
7173 CXX_UTF16_STRING=0 |
|
7174 fi |
|
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7176 ac_ext=c |
|
7177 ac_cpp='$CPP $CPPFLAGS' |
|
7178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7180 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7181 |
|
7182 if test "$CXX_UTF16_STRING" = 1; then |
|
7183 if test "$CC_UTF16_STRING" = 1; then |
|
7184 CHECK_UTF16_STRING_RESULT="available"; |
|
7185 else |
|
7186 CHECK_UTF16_STRING_RESULT="C++ only"; |
|
7187 fi |
|
7188 fi |
|
7189 fi |
|
7190 fi |
|
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5 |
|
7192 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; } |
|
7193 |
|
7194 # Enable/disable extras |
|
7195 # Check whether --enable-extras was given. |
|
7196 if test "${enable_extras+set}" = set; then : |
|
7197 enableval=$enable_extras; case "${enableval}" in |
|
7198 yes) extras=true ;; |
|
7199 no) extras=false ;; |
|
7200 *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;; |
|
7201 esac |
|
7202 else |
|
7203 extras=true |
|
7204 fi |
|
7205 |
|
7206 |
|
7207 if test "$extras" = true; then |
|
7208 EXTRAS_TRUE= |
|
7209 else |
|
7210 EXTRAS_TRUE='#' |
|
7211 fi |
|
7212 # Check whether --enable-icuio was given. |
|
7213 if test "${enable_icuio+set}" = set; then : |
|
7214 enableval=$enable_icuio; case "${enableval}" in |
|
7215 yes) icuio=true ;; |
|
7216 no) icuio=false ;; |
|
7217 *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;; |
|
7218 esac |
|
7219 else |
|
7220 icuio=true |
|
7221 fi |
|
7222 |
|
7223 |
|
7224 if test "$icuio" = true; then |
|
7225 ICUIO_TRUE= |
|
7226 else |
|
7227 ICUIO_TRUE='#' |
|
7228 fi |
|
7229 |
|
7230 # Enable/disable layout |
|
7231 # Check whether --enable-layout was given. |
|
7232 if test "${enable_layout+set}" = set; then : |
|
7233 enableval=$enable_layout; case "${enableval}" in |
|
7234 yes) layout=true ;; |
|
7235 no) layout=false ;; |
|
7236 *) as_fn_error $? "bad value ${enableval} for --enable-layout" "$LINENO" 5 ;; |
|
7237 esac |
|
7238 else |
|
7239 layout=true |
|
7240 fi |
|
7241 |
|
7242 |
|
7243 if test "$layout" = true; then |
|
7244 LAYOUT_TRUE= |
|
7245 else |
|
7246 LAYOUT_TRUE='#' |
|
7247 fi |
|
7248 |
|
7249 # Enable/disable tools |
|
7250 # Check whether --enable-tools was given. |
|
7251 if test "${enable_tools+set}" = set; then : |
|
7252 enableval=$enable_tools; case "${enableval}" in |
|
7253 yes) tools=true ;; |
|
7254 no) tools=false ;; |
|
7255 *) as_fn_error $? "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;; |
|
7256 esac |
|
7257 else |
|
7258 tools=true |
|
7259 fi |
|
7260 |
|
7261 |
|
7262 if test "$tools" = true; then |
|
7263 TOOLS_TRUE= |
|
7264 else |
|
7265 TOOLS_TRUE='#' |
|
7266 fi |
|
7267 |
|
7268 |
|
7269 # Check whether --with-data-packaging was given. |
|
7270 if test "${with_data_packaging+set}" = set; then : |
|
7271 withval=$with_data_packaging; case "${withval}" in |
|
7272 files|archive|library) datapackaging=$withval ;; |
|
7273 auto) datapackaging=$withval ;; |
|
7274 common) datapackaging=archive ;; |
|
7275 dll) datapackaging=library ;; |
|
7276 static) datapackaging=static ;; |
|
7277 *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;; |
|
7278 esac |
|
7279 else |
|
7280 datapackaging= |
|
7281 fi |
|
7282 |
|
7283 |
|
7284 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc.. |
|
7285 # thesysconfdir=`eval echo $sysconfdir` |
|
7286 thedatadir=`eval echo $datadir` |
|
7287 # Always put raw data files in share/icu/{version}, etc. Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libdir}. |
|
7288 pkgicudatadir=$datadir |
|
7289 thepkgicudatadir=$thedatadir |
|
7290 |
|
7291 |
|
7292 |
|
7293 |
|
7294 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then |
|
7295 # default to library |
|
7296 datapackaging=library |
|
7297 if test "$ENABLE_STATIC" = "YES"; then |
|
7298 if test "$ENABLE_SHARED" != "YES"; then |
|
7299 datapackaging=static |
|
7300 fi |
|
7301 fi |
|
7302 fi |
|
7303 |
|
7304 datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}" |
|
7305 |
|
7306 datapackaging_msg="(No explaination for mode $datapackaging.)" |
|
7307 |
|
7308 datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override." |
|
7309 datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override." |
|
7310 datapackaging_howfound="(unknown)" |
|
7311 |
|
7312 case "$datapackaging" in |
|
7313 files) |
|
7314 DATA_PACKAGING_MODE=files |
|
7315 datapackaging_msg="ICU data will be stored in individual files." |
|
7316 datapackaging_howfound="$datapackaging_msg_path" |
|
7317 ;; |
|
7318 archive) |
|
7319 DATA_PACKAGING_MODE=common |
|
7320 datapackaging_msg="ICU data will be stored in a single .dat file." |
|
7321 datapackaging_howfound="$datapackaging_msg_path" |
|
7322 ;; |
|
7323 library) |
|
7324 DATA_PACKAGING_MODE=dll |
|
7325 datapackaging_msg="ICU data will be linked with ICU." |
|
7326 if test "$ENABLE_STATIC" = "YES"; then |
|
7327 datapackaging_msg="$datapackaging_msg A static data library will be built. " |
|
7328 fi |
|
7329 if test "$ENABLE_SHARED" = "YES"; then |
|
7330 datapackaging_msg="$datapackaging_msg A shared data library will be built. " |
|
7331 fi |
|
7332 datapackaging_howfound="$datapackaging_msg_set" |
|
7333 ;; |
|
7334 static) |
|
7335 DATA_PACKAGING_MODE=static |
|
7336 datapackaging_msg="ICU data will be stored in a static library." |
|
7337 datapackaging_howfound="$datapackaging_msg_set" |
|
7338 ;; |
|
7339 esac |
|
7340 |
|
7341 |
|
7342 # Sets a library suffix |
|
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5 |
|
7344 $as_echo_n "checking for a library suffix to use... " >&6; } |
|
7345 |
|
7346 # Check whether --with-library-suffix was given. |
|
7347 if test "${with_library_suffix+set}" = set; then : |
|
7348 withval=$with_library_suffix; ICULIBSUFFIX="${withval}" |
|
7349 else |
|
7350 ICULIBSUFFIX= |
|
7351 fi |
|
7352 |
|
7353 msg=$ICULIBSUFFIX |
|
7354 if test "$msg" = ""; then |
|
7355 msg=none |
|
7356 fi |
|
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 |
|
7358 $as_echo "$msg" >&6; } |
|
7359 |
|
7360 if test "$ICULIBSUFFIX" != "" |
|
7361 then |
|
7362 U_HAVE_LIB_SUFFIX=1 |
|
7363 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'` |
|
7364 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} " |
|
7365 else |
|
7366 U_HAVE_LIB_SUFFIX=0 |
|
7367 fi |
|
7368 |
|
7369 |
|
7370 |
|
7371 # Enable/disable tests |
|
7372 # Check whether --enable-tests was given. |
|
7373 if test "${enable_tests+set}" = set; then : |
|
7374 enableval=$enable_tests; case "${enableval}" in |
|
7375 yes) tests=true ;; |
|
7376 no) tests=false ;; |
|
7377 *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;; |
|
7378 esac |
|
7379 else |
|
7380 tests=true |
|
7381 fi |
|
7382 |
|
7383 |
|
7384 if test "$tests" = true; then |
|
7385 TESTS_TRUE= |
|
7386 else |
|
7387 TESTS_TRUE='#' |
|
7388 fi |
|
7389 |
|
7390 # Enable/disable samples |
|
7391 # Check whether --enable-samples was given. |
|
7392 if test "${enable_samples+set}" = set; then : |
|
7393 enableval=$enable_samples; case "${enableval}" in |
|
7394 yes) samples=true ;; |
|
7395 no) samples=false ;; |
|
7396 *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;; |
|
7397 esac |
|
7398 else |
|
7399 samples=true |
|
7400 fi |
|
7401 |
|
7402 |
|
7403 if test "$samples" = true; then |
|
7404 SAMPLES_TRUE= |
|
7405 else |
|
7406 SAMPLES_TRUE='#' |
|
7407 fi |
|
7408 |
|
7409 ICUDATA_CHAR=$U_ENDIAN_CHAR |
|
7410 |
|
7411 # Platform-specific Makefile setup |
|
7412 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform. |
|
7413 case "${host}" in |
|
7414 *-*-solaris*) platform=U_SOLARIS ;; |
|
7415 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;; |
|
7416 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; |
|
7417 *-*-aix*) platform=U_AIX ;; |
|
7418 *-*-hpux*) platform=U_HPUX ;; |
|
7419 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; |
|
7420 *-*-cygwin*) platform=U_CYGWIN ;; |
|
7421 *-*-mingw*) platform=U_MINGW ;; |
|
7422 *-*ibm-openedition*|*-*-os390*) platform=OS390 |
|
7423 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
|
7424 ICUDATA_CHAR="e" |
|
7425 fi ;; |
|
7426 *-*-os400*) platform=OS400 |
|
7427 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
|
7428 ICUDATA_CHAR="e" |
|
7429 fi ;; |
|
7430 *-*-nto*) platform=U_QNX ;; |
|
7431 *-dec-osf*) platform=U_OSF ;; |
|
7432 *-*-beos) platform=U_BEOS ;; |
|
7433 *-*-irix*) platform=U_IRIX ;; |
|
7434 *-ncr-*) platform=U_MPRAS ;; |
|
7435 *) platform=U_UNKNOWN_PLATFORM ;; |
|
7436 esac |
|
7437 |
|
7438 |
|
7439 platform_make_fragment_name="$icu_cv_host_frag" |
|
7440 platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" |
|
7441 |
|
7442 |
|
7443 |
|
7444 if test "${FORCE_LIBS}" != ""; then |
|
7445 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 |
|
7446 LIBS=${FORCE_LIBS} |
|
7447 fi |
|
7448 |
|
7449 # Now that we're done using CPPFLAGS etc. for tests, we can change it |
|
7450 # for build. |
|
7451 |
|
7452 if test "${CC}" == "clang"; then |
|
7453 CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality" |
|
7454 else |
|
7455 CLANGCFLAGS="" |
|
7456 fi |
|
7457 |
|
7458 if test "${CXX}" == "clang++"; then |
|
7459 CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality" |
|
7460 else |
|
7461 CLANGCXXFLAGS="" |
|
7462 fi |
|
7463 |
|
7464 CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" |
|
7465 CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS" |
|
7466 CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS" |
|
7467 |
|
7468 |
|
7469 |
|
7470 |
|
7471 # append all config cppflags |
|
7472 CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS" |
|
7473 |
|
7474 echo "CPPFLAGS=$CPPFLAGS" |
|
7475 echo "CFLAGS=$CFLAGS" |
|
7476 echo "CXXFLAGS=$CXXFLAGS" |
|
7477 |
|
7478 |
|
7479 # output the Makefiles |
|
7480 ac_config_files="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/icu.pc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/gendict/Makefile tools/gentest/Makefile tools/gennorm2/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/collperf/Makefile test/perf/dicttrieperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/howExpensiveIs/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile test/perf/leperf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile" |
|
7481 |
|
7482 cat >confcache <<\_ACEOF |
|
7483 # This file is a shell script that caches the results of configure |
|
7484 # tests run on this system so they can be shared between configure |
|
7485 # scripts and configure runs, see configure's option --config-cache. |
|
7486 # It is not useful on other systems. If it contains results you don't |
|
7487 # want to keep, you may remove or edit it. |
|
7488 # |
|
7489 # config.status only pays attention to the cache file if you give it |
|
7490 # the --recheck option to rerun configure. |
|
7491 # |
|
7492 # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
7493 # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
7494 # following values. |
|
7495 |
|
7496 _ACEOF |
|
7497 |
|
7498 # The following way of writing the cache mishandles newlines in values, |
|
7499 # but we know of no workaround that is simple, portable, and efficient. |
|
7500 # So, we kill variables containing newlines. |
|
7501 # Ultrix sh set writes to stderr and can't be redirected directly, |
|
7502 # and sets the high bit in the cache file unless we assign to the vars. |
|
7503 ( |
|
7504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
7505 eval ac_val=\$$ac_var |
|
7506 case $ac_val in #( |
|
7507 *${as_nl}*) |
|
7508 case $ac_var in #( |
|
7509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
7510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
7511 esac |
|
7512 case $ac_var in #( |
|
7513 _ | IFS | as_nl) ;; #( |
|
7514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
7515 *) { eval $ac_var=; unset $ac_var;} ;; |
|
7516 esac ;; |
|
7517 esac |
|
7518 done |
|
7519 |
|
7520 (set) 2>&1 | |
|
7521 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
7522 *${as_nl}ac_space=\ *) |
|
7523 # `set' does not quote correctly, so add quotes: double-quote |
|
7524 # substitution turns \\\\ into \\, and sed turns \\ into \. |
|
7525 sed -n \ |
|
7526 "s/'/'\\\\''/g; |
|
7527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
7528 ;; #( |
|
7529 *) |
|
7530 # `set' quotes correctly as required by POSIX, so do not add quotes. |
|
7531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
7532 ;; |
|
7533 esac | |
|
7534 sort |
|
7535 ) | |
|
7536 sed ' |
|
7537 /^ac_cv_env_/b end |
|
7538 t clear |
|
7539 :clear |
|
7540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
7541 t end |
|
7542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
7543 :end' >>confcache |
|
7544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
7545 if test -w "$cache_file"; then |
|
7546 if test "x$cache_file" != "x/dev/null"; then |
|
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
|
7548 $as_echo "$as_me: updating cache $cache_file" >&6;} |
|
7549 if test ! -f "$cache_file" || test -h "$cache_file"; then |
|
7550 cat confcache >"$cache_file" |
|
7551 else |
|
7552 case $cache_file in #( |
|
7553 */* | ?:*) |
|
7554 mv -f confcache "$cache_file"$$ && |
|
7555 mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
7556 *) |
|
7557 mv -f confcache "$cache_file" ;; |
|
7558 esac |
|
7559 fi |
|
7560 fi |
|
7561 else |
|
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
|
7563 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
7564 fi |
|
7565 fi |
|
7566 rm -f confcache |
|
7567 |
|
7568 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
7569 # Let make expand exec_prefix. |
|
7570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
7571 |
|
7572 # Transform confdefs.h into DEFS. |
|
7573 # Protect against shell expansion while executing Makefile rules. |
|
7574 # Protect against Makefile macro expansion. |
|
7575 # |
|
7576 # If the first sed substitution is executed (which looks for macros that |
|
7577 # take arguments), then branch to the quote section. Otherwise, |
|
7578 # look for a macro that doesn't take arguments. |
|
7579 ac_script=' |
|
7580 :mline |
|
7581 /\\$/{ |
|
7582 N |
|
7583 s,\\\n,, |
|
7584 b mline |
|
7585 } |
|
7586 t clear |
|
7587 :clear |
|
7588 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
|
7589 t quote |
|
7590 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
|
7591 t quote |
|
7592 b any |
|
7593 :quote |
|
7594 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
|
7595 s/\[/\\&/g |
|
7596 s/\]/\\&/g |
|
7597 s/\$/$$/g |
|
7598 H |
|
7599 :any |
|
7600 ${ |
|
7601 g |
|
7602 s/^\n// |
|
7603 s/\n/ /g |
|
7604 p |
|
7605 } |
|
7606 ' |
|
7607 DEFS=`sed -n "$ac_script" confdefs.h` |
|
7608 |
|
7609 |
|
7610 ac_libobjs= |
|
7611 ac_ltlibobjs= |
|
7612 U= |
|
7613 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
7614 # 1. Remove the extension, and $U if already installed. |
|
7615 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
7616 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
|
7617 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
7618 # will be set to the directory where LIBOBJS objects are built. |
|
7619 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
7620 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
|
7621 done |
|
7622 LIBOBJS=$ac_libobjs |
|
7623 |
|
7624 LTLIBOBJS=$ac_ltlibobjs |
|
7625 |
|
7626 |
|
7627 |
|
7628 |
|
7629 : "${CONFIG_STATUS=./config.status}" |
|
7630 ac_write_fail=0 |
|
7631 ac_clean_files_save=$ac_clean_files |
|
7632 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
|
7634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
7635 as_write_fail=0 |
|
7636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
|
7637 #! $SHELL |
|
7638 # Generated by $as_me. |
|
7639 # Run this file to recreate the current configuration. |
|
7640 # Compiler output produced by configure, useful for debugging |
|
7641 # configure, is in config.log if it exists. |
|
7642 |
|
7643 debug=false |
|
7644 ac_cs_recheck=false |
|
7645 ac_cs_silent=false |
|
7646 |
|
7647 SHELL=\${CONFIG_SHELL-$SHELL} |
|
7648 export SHELL |
|
7649 _ASEOF |
|
7650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
|
7651 ## -------------------- ## |
|
7652 ## M4sh Initialization. ## |
|
7653 ## -------------------- ## |
|
7654 |
|
7655 # Be more Bourne compatible |
|
7656 DUALCASE=1; export DUALCASE # for MKS sh |
|
7657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
7658 emulate sh |
|
7659 NULLCMD=: |
|
7660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
7661 # is contrary to our usage. Disable this feature. |
|
7662 alias -g '${1+"$@"}'='"$@"' |
|
7663 setopt NO_GLOB_SUBST |
|
7664 else |
|
7665 case `(set -o) 2>/dev/null` in #( |
|
7666 *posix*) : |
|
7667 set -o posix ;; #( |
|
7668 *) : |
|
7669 ;; |
|
7670 esac |
|
7671 fi |
|
7672 |
|
7673 |
|
7674 as_nl=' |
|
7675 ' |
|
7676 export as_nl |
|
7677 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
7678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
7679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
7680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
7681 # Prefer a ksh shell builtin over an external printf program on Solaris, |
|
7682 # but without wasting forks for bash or zsh. |
|
7683 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
7684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
7685 as_echo='print -r --' |
|
7686 as_echo_n='print -rn --' |
|
7687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
7688 as_echo='printf %s\n' |
|
7689 as_echo_n='printf %s' |
|
7690 else |
|
7691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
7692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
7693 as_echo_n='/usr/ucb/echo -n' |
|
7694 else |
|
7695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
7696 as_echo_n_body='eval |
|
7697 arg=$1; |
|
7698 case $arg in #( |
|
7699 *"$as_nl"*) |
|
7700 expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
7701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
7702 esac; |
|
7703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
7704 ' |
|
7705 export as_echo_n_body |
|
7706 as_echo_n='sh -c $as_echo_n_body as_echo' |
|
7707 fi |
|
7708 export as_echo_body |
|
7709 as_echo='sh -c $as_echo_body as_echo' |
|
7710 fi |
|
7711 |
|
7712 # The user is always right. |
|
7713 if test "${PATH_SEPARATOR+set}" != set; then |
|
7714 PATH_SEPARATOR=: |
|
7715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
7716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
7717 PATH_SEPARATOR=';' |
|
7718 } |
|
7719 fi |
|
7720 |
|
7721 |
|
7722 # IFS |
|
7723 # We need space, tab and new line, in precisely that order. Quoting is |
|
7724 # there to prevent editors from complaining about space-tab. |
|
7725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
7726 # splitting by setting IFS to empty value.) |
|
7727 IFS=" "" $as_nl" |
|
7728 |
|
7729 # Find who we are. Look in the path if we contain no directory separator. |
|
7730 as_myself= |
|
7731 case $0 in #(( |
|
7732 *[\\/]* ) as_myself=$0 ;; |
|
7733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7734 for as_dir in $PATH |
|
7735 do |
|
7736 IFS=$as_save_IFS |
|
7737 test -z "$as_dir" && as_dir=. |
|
7738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
7739 done |
|
7740 IFS=$as_save_IFS |
|
7741 |
|
7742 ;; |
|
7743 esac |
|
7744 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
7745 # in which case we are not to be found in the path. |
|
7746 if test "x$as_myself" = x; then |
|
7747 as_myself=$0 |
|
7748 fi |
|
7749 if test ! -f "$as_myself"; then |
|
7750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
7751 exit 1 |
|
7752 fi |
|
7753 |
|
7754 # Unset variables that we do not need and which cause bugs (e.g. in |
|
7755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
7756 # suppresses any "Segmentation fault" message there. '((' could |
|
7757 # trigger a bug in pdksh 5.2.14. |
|
7758 for as_var in BASH_ENV ENV MAIL MAILPATH |
|
7759 do eval test x\${$as_var+set} = xset \ |
|
7760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
7761 done |
|
7762 PS1='$ ' |
|
7763 PS2='> ' |
|
7764 PS4='+ ' |
|
7765 |
|
7766 # NLS nuisances. |
|
7767 LC_ALL=C |
|
7768 export LC_ALL |
|
7769 LANGUAGE=C |
|
7770 export LANGUAGE |
|
7771 |
|
7772 # CDPATH. |
|
7773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
7774 |
|
7775 |
|
7776 # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
7777 # ---------------------------------------- |
|
7778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
7779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
7780 # script with STATUS, using 1 if that was 0. |
|
7781 as_fn_error () |
|
7782 { |
|
7783 as_status=$1; test $as_status -eq 0 && as_status=1 |
|
7784 if test "$4"; then |
|
7785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
7786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
7787 fi |
|
7788 $as_echo "$as_me: error: $2" >&2 |
|
7789 as_fn_exit $as_status |
|
7790 } # as_fn_error |
|
7791 |
|
7792 |
|
7793 # as_fn_set_status STATUS |
|
7794 # ----------------------- |
|
7795 # Set $? to STATUS, without forking. |
|
7796 as_fn_set_status () |
|
7797 { |
|
7798 return $1 |
|
7799 } # as_fn_set_status |
|
7800 |
|
7801 # as_fn_exit STATUS |
|
7802 # ----------------- |
|
7803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
7804 as_fn_exit () |
|
7805 { |
|
7806 set +e |
|
7807 as_fn_set_status $1 |
|
7808 exit $1 |
|
7809 } # as_fn_exit |
|
7810 |
|
7811 # as_fn_unset VAR |
|
7812 # --------------- |
|
7813 # Portably unset VAR. |
|
7814 as_fn_unset () |
|
7815 { |
|
7816 { eval $1=; unset $1;} |
|
7817 } |
|
7818 as_unset=as_fn_unset |
|
7819 # as_fn_append VAR VALUE |
|
7820 # ---------------------- |
|
7821 # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
7822 # advantage of any shell optimizations that allow amortized linear growth over |
|
7823 # repeated appends, instead of the typical quadratic growth present in naive |
|
7824 # implementations. |
|
7825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
7826 eval 'as_fn_append () |
|
7827 { |
|
7828 eval $1+=\$2 |
|
7829 }' |
|
7830 else |
|
7831 as_fn_append () |
|
7832 { |
|
7833 eval $1=\$$1\$2 |
|
7834 } |
|
7835 fi # as_fn_append |
|
7836 |
|
7837 # as_fn_arith ARG... |
|
7838 # ------------------ |
|
7839 # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
7840 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
7841 # must be portable across $(()) and expr. |
|
7842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
7843 eval 'as_fn_arith () |
|
7844 { |
|
7845 as_val=$(( $* )) |
|
7846 }' |
|
7847 else |
|
7848 as_fn_arith () |
|
7849 { |
|
7850 as_val=`expr "$@" || test $? -eq 1` |
|
7851 } |
|
7852 fi # as_fn_arith |
|
7853 |
|
7854 |
|
7855 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
7856 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
7857 as_expr=expr |
|
7858 else |
|
7859 as_expr=false |
|
7860 fi |
|
7861 |
|
7862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
7863 as_basename=basename |
|
7864 else |
|
7865 as_basename=false |
|
7866 fi |
|
7867 |
|
7868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
7869 as_dirname=dirname |
|
7870 else |
|
7871 as_dirname=false |
|
7872 fi |
|
7873 |
|
7874 as_me=`$as_basename -- "$0" || |
|
7875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
7876 X"$0" : 'X\(//\)$' \| \ |
|
7877 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
7878 $as_echo X/"$0" | |
|
7879 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
7880 s//\1/ |
|
7881 q |
|
7882 } |
|
7883 /^X\/\(\/\/\)$/{ |
|
7884 s//\1/ |
|
7885 q |
|
7886 } |
|
7887 /^X\/\(\/\).*/{ |
|
7888 s//\1/ |
|
7889 q |
|
7890 } |
|
7891 s/.*/./; q'` |
|
7892 |
|
7893 # Avoid depending upon Character Ranges. |
|
7894 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
7895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
7896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
7897 as_cr_digits='0123456789' |
|
7898 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
7899 |
|
7900 ECHO_C= ECHO_N= ECHO_T= |
|
7901 case `echo -n x` in #((((( |
|
7902 -n*) |
|
7903 case `echo 'xy\c'` in |
|
7904 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
7905 xy) ECHO_C='\c';; |
|
7906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
7907 ECHO_T=' ';; |
|
7908 esac;; |
|
7909 *) |
|
7910 ECHO_N='-n';; |
|
7911 esac |
|
7912 |
|
7913 rm -f conf$$ conf$$.exe conf$$.file |
|
7914 if test -d conf$$.dir; then |
|
7915 rm -f conf$$.dir/conf$$.file |
|
7916 else |
|
7917 rm -f conf$$.dir |
|
7918 mkdir conf$$.dir 2>/dev/null |
|
7919 fi |
|
7920 if (echo >conf$$.file) 2>/dev/null; then |
|
7921 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
7922 as_ln_s='ln -s' |
|
7923 # ... but there are two gotchas: |
|
7924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
7925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
7926 # In both cases, we have to default to `cp -p'. |
|
7927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
7928 as_ln_s='cp -p' |
|
7929 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
7930 as_ln_s=ln |
|
7931 else |
|
7932 as_ln_s='cp -p' |
|
7933 fi |
|
7934 else |
|
7935 as_ln_s='cp -p' |
|
7936 fi |
|
7937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
7938 rmdir conf$$.dir 2>/dev/null |
|
7939 |
|
7940 |
|
7941 # as_fn_mkdir_p |
|
7942 # ------------- |
|
7943 # Create "$as_dir" as a directory, including parents if necessary. |
|
7944 as_fn_mkdir_p () |
|
7945 { |
|
7946 |
|
7947 case $as_dir in #( |
|
7948 -*) as_dir=./$as_dir;; |
|
7949 esac |
|
7950 test -d "$as_dir" || eval $as_mkdir_p || { |
|
7951 as_dirs= |
|
7952 while :; do |
|
7953 case $as_dir in #( |
|
7954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
7955 *) as_qdir=$as_dir;; |
|
7956 esac |
|
7957 as_dirs="'$as_qdir' $as_dirs" |
|
7958 as_dir=`$as_dirname -- "$as_dir" || |
|
7959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
7960 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
7961 X"$as_dir" : 'X\(//\)$' \| \ |
|
7962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
7963 $as_echo X"$as_dir" | |
|
7964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
7965 s//\1/ |
|
7966 q |
|
7967 } |
|
7968 /^X\(\/\/\)[^/].*/{ |
|
7969 s//\1/ |
|
7970 q |
|
7971 } |
|
7972 /^X\(\/\/\)$/{ |
|
7973 s//\1/ |
|
7974 q |
|
7975 } |
|
7976 /^X\(\/\).*/{ |
|
7977 s//\1/ |
|
7978 q |
|
7979 } |
|
7980 s/.*/./; q'` |
|
7981 test -d "$as_dir" && break |
|
7982 done |
|
7983 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
7984 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
7985 |
|
7986 |
|
7987 } # as_fn_mkdir_p |
|
7988 if mkdir -p . 2>/dev/null; then |
|
7989 as_mkdir_p='mkdir -p "$as_dir"' |
|
7990 else |
|
7991 test -d ./-p && rmdir ./-p |
|
7992 as_mkdir_p=false |
|
7993 fi |
|
7994 |
|
7995 if test -x / >/dev/null 2>&1; then |
|
7996 as_test_x='test -x' |
|
7997 else |
|
7998 if ls -dL / >/dev/null 2>&1; then |
|
7999 as_ls_L_option=L |
|
8000 else |
|
8001 as_ls_L_option= |
|
8002 fi |
|
8003 as_test_x=' |
|
8004 eval sh -c '\'' |
|
8005 if test -d "$1"; then |
|
8006 test -d "$1/."; |
|
8007 else |
|
8008 case $1 in #( |
|
8009 -*)set "./$1";; |
|
8010 esac; |
|
8011 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|
8012 ???[sx]*):;;*)false;;esac;fi |
|
8013 '\'' sh |
|
8014 ' |
|
8015 fi |
|
8016 as_executable_p=$as_test_x |
|
8017 |
|
8018 # Sed expression to map a string onto a valid CPP name. |
|
8019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
8020 |
|
8021 # Sed expression to map a string onto a valid variable name. |
|
8022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
8023 |
|
8024 |
|
8025 exec 6>&1 |
|
8026 ## ----------------------------------- ## |
|
8027 ## Main body of $CONFIG_STATUS script. ## |
|
8028 ## ----------------------------------- ## |
|
8029 _ASEOF |
|
8030 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
8031 |
|
8032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8033 # Save the log message, to keep $0 and so on meaningful, and to |
|
8034 # report actual input values of CONFIG_FILES etc. instead of their |
|
8035 # values after options handling. |
|
8036 ac_log=" |
|
8037 This file was extended by $as_me, which was |
|
8038 generated by GNU Autoconf 2.68. Invocation command line was |
|
8039 |
|
8040 CONFIG_FILES = $CONFIG_FILES |
|
8041 CONFIG_HEADERS = $CONFIG_HEADERS |
|
8042 CONFIG_LINKS = $CONFIG_LINKS |
|
8043 CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
8044 $ $0 $@ |
|
8045 |
|
8046 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
8047 " |
|
8048 |
|
8049 _ACEOF |
|
8050 |
|
8051 case $ac_config_files in *" |
|
8052 "*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
8053 esac |
|
8054 |
|
8055 |
|
8056 |
|
8057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8058 # Files that config.status was made for. |
|
8059 config_files="$ac_config_files" |
|
8060 |
|
8061 _ACEOF |
|
8062 |
|
8063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8064 ac_cs_usage="\ |
|
8065 \`$as_me' instantiates files and other configuration actions |
|
8066 from templates according to the current configuration. Unless the files |
|
8067 and actions are specified as TAGs, all are instantiated by default. |
|
8068 |
|
8069 Usage: $0 [OPTION]... [TAG]... |
|
8070 |
|
8071 -h, --help print this help, then exit |
|
8072 -V, --version print version number and configuration settings, then exit |
|
8073 --config print configuration, then exit |
|
8074 -q, --quiet, --silent |
|
8075 do not print progress messages |
|
8076 -d, --debug don't remove temporary files |
|
8077 --recheck update $as_me by reconfiguring in the same conditions |
|
8078 --file=FILE[:TEMPLATE] |
|
8079 instantiate the configuration file FILE |
|
8080 |
|
8081 Configuration files: |
|
8082 $config_files |
|
8083 |
|
8084 Report bugs to the package provider." |
|
8085 |
|
8086 _ACEOF |
|
8087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
|
8089 ac_cs_version="\\ |
|
8090 config.status |
|
8091 configured by $0, generated by GNU Autoconf 2.68, |
|
8092 with options \\"\$ac_cs_config\\" |
|
8093 |
|
8094 Copyright (C) 2010 Free Software Foundation, Inc. |
|
8095 This config.status script is free software; the Free Software Foundation |
|
8096 gives unlimited permission to copy, distribute and modify it." |
|
8097 |
|
8098 ac_pwd='$ac_pwd' |
|
8099 srcdir='$srcdir' |
|
8100 INSTALL='$INSTALL' |
|
8101 test -n "\$AWK" || AWK=awk |
|
8102 _ACEOF |
|
8103 |
|
8104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8105 # The default lists apply if the user does not specify any file. |
|
8106 ac_need_defaults=: |
|
8107 while test $# != 0 |
|
8108 do |
|
8109 case $1 in |
|
8110 --*=?*) |
|
8111 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
8112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
8113 ac_shift=: |
|
8114 ;; |
|
8115 --*=) |
|
8116 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
8117 ac_optarg= |
|
8118 ac_shift=: |
|
8119 ;; |
|
8120 *) |
|
8121 ac_option=$1 |
|
8122 ac_optarg=$2 |
|
8123 ac_shift=shift |
|
8124 ;; |
|
8125 esac |
|
8126 |
|
8127 case $ac_option in |
|
8128 # Handling of the options. |
|
8129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
8130 ac_cs_recheck=: ;; |
|
8131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
8132 $as_echo "$ac_cs_version"; exit ;; |
|
8133 --config | --confi | --conf | --con | --co | --c ) |
|
8134 $as_echo "$ac_cs_config"; exit ;; |
|
8135 --debug | --debu | --deb | --de | --d | -d ) |
|
8136 debug=: ;; |
|
8137 --file | --fil | --fi | --f ) |
|
8138 $ac_shift |
|
8139 case $ac_optarg in |
|
8140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
8141 '') as_fn_error $? "missing file argument" ;; |
|
8142 esac |
|
8143 as_fn_append CONFIG_FILES " '$ac_optarg'" |
|
8144 ac_need_defaults=false;; |
|
8145 --he | --h | --help | --hel | -h ) |
|
8146 $as_echo "$ac_cs_usage"; exit ;; |
|
8147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
8148 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
8149 ac_cs_silent=: ;; |
|
8150 |
|
8151 # This is an error. |
|
8152 -*) as_fn_error $? "unrecognized option: \`$1' |
|
8153 Try \`$0 --help' for more information." ;; |
|
8154 |
|
8155 *) as_fn_append ac_config_targets " $1" |
|
8156 ac_need_defaults=false ;; |
|
8157 |
|
8158 esac |
|
8159 shift |
|
8160 done |
|
8161 |
|
8162 ac_configure_extra_args= |
|
8163 |
|
8164 if $ac_cs_silent; then |
|
8165 exec 6>/dev/null |
|
8166 ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
8167 fi |
|
8168 |
|
8169 _ACEOF |
|
8170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8171 if \$ac_cs_recheck; then |
|
8172 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
8173 shift |
|
8174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
8175 CONFIG_SHELL='$SHELL' |
|
8176 export CONFIG_SHELL |
|
8177 exec "\$@" |
|
8178 fi |
|
8179 |
|
8180 _ACEOF |
|
8181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8182 exec 5>>config.log |
|
8183 { |
|
8184 echo |
|
8185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
8186 ## Running $as_me. ## |
|
8187 _ASBOX |
|
8188 $as_echo "$ac_log" |
|
8189 } >&5 |
|
8190 |
|
8191 _ACEOF |
|
8192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8193 _ACEOF |
|
8194 |
|
8195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8196 |
|
8197 # Handling of arguments. |
|
8198 for ac_config_target in $ac_config_targets |
|
8199 do |
|
8200 case $ac_config_target in |
|
8201 "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; |
|
8202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
8203 "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;; |
|
8204 "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; |
|
8205 "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;; |
|
8206 "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;; |
|
8207 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; |
|
8208 "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; |
|
8209 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
|
8210 "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; |
|
8211 "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; |
|
8212 "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; |
|
8213 "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; |
|
8214 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; |
|
8215 "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; |
|
8216 "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;; |
|
8217 "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; |
|
8218 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
|
8219 "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; |
|
8220 "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; |
|
8221 "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; |
|
8222 "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; |
|
8223 "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; |
|
8224 "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; |
|
8225 "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; |
|
8226 "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;; |
|
8227 "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; |
|
8228 "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;; |
|
8229 "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; |
|
8230 "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; |
|
8231 "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;; |
|
8232 "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; |
|
8233 "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; |
|
8234 "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; |
|
8235 "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; |
|
8236 "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;; |
|
8237 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
|
8238 "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; |
|
8239 "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; |
|
8240 "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;; |
|
8241 "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; |
|
8242 "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; |
|
8243 "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; |
|
8244 "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; |
|
8245 "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; |
|
8246 "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;; |
|
8247 "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; |
|
8248 "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;; |
|
8249 "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;; |
|
8250 "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;; |
|
8251 "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;; |
|
8252 "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;; |
|
8253 "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;; |
|
8254 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;; |
|
8255 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;; |
|
8256 "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;; |
|
8257 "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;; |
|
8258 "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;; |
|
8259 "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;; |
|
8260 "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;; |
|
8261 "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;; |
|
8262 "test/perf/leperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/leperf/Makefile" ;; |
|
8263 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
|
8264 "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; |
|
8265 "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; |
|
8266 "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; |
|
8267 |
|
8268 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
8269 esac |
|
8270 done |
|
8271 |
|
8272 |
|
8273 # If the user did not use the arguments to specify the items to instantiate, |
|
8274 # then the envvar interface is used. Set only those that are not. |
|
8275 # We use the long form for the default assignment because of an extremely |
|
8276 # bizarre bug on SunOS 4.1.3. |
|
8277 if $ac_need_defaults; then |
|
8278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
8279 fi |
|
8280 |
|
8281 # Have a temporary directory for convenience. Make it in the build tree |
|
8282 # simply because there is no reason against having it here, and in addition, |
|
8283 # creating and moving files from /tmp can sometimes cause problems. |
|
8284 # Hook for its removal unless debugging. |
|
8285 # Note that there is a small window in which the directory will not be cleaned: |
|
8286 # after its creation but before its name has been assigned to `$tmp'. |
|
8287 $debug || |
|
8288 { |
|
8289 tmp= ac_tmp= |
|
8290 trap 'exit_status=$? |
|
8291 : "${ac_tmp:=$tmp}" |
|
8292 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
|
8293 ' 0 |
|
8294 trap 'as_fn_exit 1' 1 2 13 15 |
|
8295 } |
|
8296 # Create a (secure) tmp directory for tmp files. |
|
8297 |
|
8298 { |
|
8299 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
8300 test -d "$tmp" |
|
8301 } || |
|
8302 { |
|
8303 tmp=./conf$$-$RANDOM |
|
8304 (umask 077 && mkdir "$tmp") |
|
8305 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
8306 ac_tmp=$tmp |
|
8307 |
|
8308 # Set up the scripts for CONFIG_FILES section. |
|
8309 # No need to generate them if there are no CONFIG_FILES. |
|
8310 # This happens for instance with `./config.status config.h'. |
|
8311 if test -n "$CONFIG_FILES"; then |
|
8312 |
|
8313 |
|
8314 ac_cr=`echo X | tr X '\015'` |
|
8315 # On cygwin, bash can eat \r inside `` if the user requested igncr. |
|
8316 # But we know of no other shell where ac_cr would be empty at this |
|
8317 # point, so we can use a bashism as a fallback. |
|
8318 if test "x$ac_cr" = x; then |
|
8319 eval ac_cr=\$\'\\r\' |
|
8320 fi |
|
8321 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
8322 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
8323 ac_cs_awk_cr='\\r' |
|
8324 else |
|
8325 ac_cs_awk_cr=$ac_cr |
|
8326 fi |
|
8327 |
|
8328 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
|
8329 _ACEOF |
|
8330 |
|
8331 |
|
8332 { |
|
8333 echo "cat >conf$$subs.awk <<_ACEOF" && |
|
8334 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
8335 echo "_ACEOF" |
|
8336 } >conf$$subs.sh || |
|
8337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
8338 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
|
8339 ac_delim='%!_!# ' |
|
8340 for ac_last_try in false false false false false :; do |
|
8341 . ./conf$$subs.sh || |
|
8342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
8343 |
|
8344 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
8345 if test $ac_delim_n = $ac_delim_num; then |
|
8346 break |
|
8347 elif $ac_last_try; then |
|
8348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
8349 else |
|
8350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
8351 fi |
|
8352 done |
|
8353 rm -f conf$$subs.sh |
|
8354 |
|
8355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8356 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
|
8357 _ACEOF |
|
8358 sed -n ' |
|
8359 h |
|
8360 s/^/S["/; s/!.*/"]=/ |
|
8361 p |
|
8362 g |
|
8363 s/^[^!]*!// |
|
8364 :repl |
|
8365 t repl |
|
8366 s/'"$ac_delim"'$// |
|
8367 t delim |
|
8368 :nl |
|
8369 h |
|
8370 s/\(.\{148\}\)..*/\1/ |
|
8371 t more1 |
|
8372 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
8373 p |
|
8374 n |
|
8375 b repl |
|
8376 :more1 |
|
8377 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
8378 p |
|
8379 g |
|
8380 s/.\{148\}// |
|
8381 t nl |
|
8382 :delim |
|
8383 h |
|
8384 s/\(.\{148\}\)..*/\1/ |
|
8385 t more2 |
|
8386 s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
8387 p |
|
8388 b |
|
8389 :more2 |
|
8390 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
8391 p |
|
8392 g |
|
8393 s/.\{148\}// |
|
8394 t delim |
|
8395 ' <conf$$subs.awk | sed ' |
|
8396 /^[^""]/{ |
|
8397 N |
|
8398 s/\n// |
|
8399 } |
|
8400 ' >>$CONFIG_STATUS || ac_write_fail=1 |
|
8401 rm -f conf$$subs.awk |
|
8402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8403 _ACAWK |
|
8404 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
|
8405 for (key in S) S_is_set[key] = 1 |
|
8406 FS = "" |
|
8407 |
|
8408 } |
|
8409 { |
|
8410 line = $ 0 |
|
8411 nfields = split(line, field, "@") |
|
8412 substed = 0 |
|
8413 len = length(field[1]) |
|
8414 for (i = 2; i < nfields; i++) { |
|
8415 key = field[i] |
|
8416 keylen = length(key) |
|
8417 if (S_is_set[key]) { |
|
8418 value = S[key] |
|
8419 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
8420 len += length(value) + length(field[++i]) |
|
8421 substed = 1 |
|
8422 } else |
|
8423 len += 1 + keylen |
|
8424 } |
|
8425 |
|
8426 print line |
|
8427 } |
|
8428 |
|
8429 _ACAWK |
|
8430 _ACEOF |
|
8431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8432 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
8433 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
8434 else |
|
8435 cat |
|
8436 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
|
8437 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
|
8438 _ACEOF |
|
8439 |
|
8440 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
|
8441 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
|
8442 # trailing colons and then remove the whole line if VPATH becomes empty |
|
8443 # (actually we leave an empty line to preserve line numbers). |
|
8444 if test "x$srcdir" = x.; then |
|
8445 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|
8446 h |
|
8447 s/// |
|
8448 s/^/:/ |
|
8449 s/[ ]*$/:/ |
|
8450 s/:\$(srcdir):/:/g |
|
8451 s/:\${srcdir}:/:/g |
|
8452 s/:@srcdir@:/:/g |
|
8453 s/^:*// |
|
8454 s/:*$// |
|
8455 x |
|
8456 s/\(=[ ]*\).*/\1/ |
|
8457 G |
|
8458 s/\n// |
|
8459 s/^[^=]*=[ ]*$// |
|
8460 }' |
|
8461 fi |
|
8462 |
|
8463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8464 fi # test -n "$CONFIG_FILES" |
|
8465 |
|
8466 |
|
8467 eval set X " :F $CONFIG_FILES " |
|
8468 shift |
|
8469 for ac_tag |
|
8470 do |
|
8471 case $ac_tag in |
|
8472 :[FHLC]) ac_mode=$ac_tag; continue;; |
|
8473 esac |
|
8474 case $ac_mode$ac_tag in |
|
8475 :[FHL]*:*);; |
|
8476 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
8477 :[FH]-) ac_tag=-:-;; |
|
8478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
8479 esac |
|
8480 ac_save_IFS=$IFS |
|
8481 IFS=: |
|
8482 set x $ac_tag |
|
8483 IFS=$ac_save_IFS |
|
8484 shift |
|
8485 ac_file=$1 |
|
8486 shift |
|
8487 |
|
8488 case $ac_mode in |
|
8489 :L) ac_source=$1;; |
|
8490 :[FH]) |
|
8491 ac_file_inputs= |
|
8492 for ac_f |
|
8493 do |
|
8494 case $ac_f in |
|
8495 -) ac_f="$ac_tmp/stdin";; |
|
8496 *) # Look for the file first in the build tree, then in the source tree |
|
8497 # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
8498 # because $ac_f cannot contain `:'. |
|
8499 test -f "$ac_f" || |
|
8500 case $ac_f in |
|
8501 [\\/$]*) false;; |
|
8502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
8503 esac || |
|
8504 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
8505 esac |
|
8506 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
8507 as_fn_append ac_file_inputs " '$ac_f'" |
|
8508 done |
|
8509 |
|
8510 # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
8511 # use $as_me), people would be surprised to read: |
|
8512 # /* config.h. Generated by config.status. */ |
|
8513 configure_input='Generated from '` |
|
8514 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
8515 `' by configure.' |
|
8516 if test x"$ac_file" != x-; then |
|
8517 configure_input="$ac_file. $configure_input" |
|
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
8519 $as_echo "$as_me: creating $ac_file" >&6;} |
|
8520 fi |
|
8521 # Neutralize special characters interpreted by sed in replacement strings. |
|
8522 case $configure_input in #( |
|
8523 *\&* | *\|* | *\\* ) |
|
8524 ac_sed_conf_input=`$as_echo "$configure_input" | |
|
8525 sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
8526 *) ac_sed_conf_input=$configure_input;; |
|
8527 esac |
|
8528 |
|
8529 case $ac_tag in |
|
8530 *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|
8531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|
8532 esac |
|
8533 ;; |
|
8534 esac |
|
8535 |
|
8536 ac_dir=`$as_dirname -- "$ac_file" || |
|
8537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
8538 X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
8539 X"$ac_file" : 'X\(//\)$' \| \ |
|
8540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
8541 $as_echo X"$ac_file" | |
|
8542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
8543 s//\1/ |
|
8544 q |
|
8545 } |
|
8546 /^X\(\/\/\)[^/].*/{ |
|
8547 s//\1/ |
|
8548 q |
|
8549 } |
|
8550 /^X\(\/\/\)$/{ |
|
8551 s//\1/ |
|
8552 q |
|
8553 } |
|
8554 /^X\(\/\).*/{ |
|
8555 s//\1/ |
|
8556 q |
|
8557 } |
|
8558 s/.*/./; q'` |
|
8559 as_dir="$ac_dir"; as_fn_mkdir_p |
|
8560 ac_builddir=. |
|
8561 |
|
8562 case "$ac_dir" in |
|
8563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
8564 *) |
|
8565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
8566 # A ".." for each directory in $ac_dir_suffix. |
|
8567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
8568 case $ac_top_builddir_sub in |
|
8569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
8570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
8571 esac ;; |
|
8572 esac |
|
8573 ac_abs_top_builddir=$ac_pwd |
|
8574 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
8575 # for backward compatibility: |
|
8576 ac_top_builddir=$ac_top_build_prefix |
|
8577 |
|
8578 case $srcdir in |
|
8579 .) # We are building in place. |
|
8580 ac_srcdir=. |
|
8581 ac_top_srcdir=$ac_top_builddir_sub |
|
8582 ac_abs_top_srcdir=$ac_pwd ;; |
|
8583 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
8584 ac_srcdir=$srcdir$ac_dir_suffix; |
|
8585 ac_top_srcdir=$srcdir |
|
8586 ac_abs_top_srcdir=$srcdir ;; |
|
8587 *) # Relative name. |
|
8588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
8589 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
8590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
8591 esac |
|
8592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
8593 |
|
8594 |
|
8595 case $ac_mode in |
|
8596 :F) |
|
8597 # |
|
8598 # CONFIG_FILE |
|
8599 # |
|
8600 |
|
8601 case $INSTALL in |
|
8602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
8603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
|
8604 esac |
|
8605 _ACEOF |
|
8606 |
|
8607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8608 # If the template does not know about datarootdir, expand it. |
|
8609 # FIXME: This hack should be removed a few years after 2.60. |
|
8610 ac_datarootdir_hack=; ac_datarootdir_seen= |
|
8611 ac_sed_dataroot=' |
|
8612 /datarootdir/ { |
|
8613 p |
|
8614 q |
|
8615 } |
|
8616 /@datadir@/p |
|
8617 /@docdir@/p |
|
8618 /@infodir@/p |
|
8619 /@localedir@/p |
|
8620 /@mandir@/p' |
|
8621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
|
8622 *datarootdir*) ac_datarootdir_seen=yes;; |
|
8623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
8625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
8626 _ACEOF |
|
8627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8628 ac_datarootdir_hack=' |
|
8629 s&@datadir@&$datadir&g |
|
8630 s&@docdir@&$docdir&g |
|
8631 s&@infodir@&$infodir&g |
|
8632 s&@localedir@&$localedir&g |
|
8633 s&@mandir@&$mandir&g |
|
8634 s&\\\${datarootdir}&$datarootdir&g' ;; |
|
8635 esac |
|
8636 _ACEOF |
|
8637 |
|
8638 # Neutralize VPATH when `$srcdir' = `.'. |
|
8639 # Shell code in configure.ac might set extrasub. |
|
8640 # FIXME: do we really want to maintain this feature? |
|
8641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
8642 ac_sed_extra="$ac_vpsub |
|
8643 $extrasub |
|
8644 _ACEOF |
|
8645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
8646 :t |
|
8647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
8648 s|@configure_input@|$ac_sed_conf_input|;t t |
|
8649 s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
8650 s&@top_build_prefix@&$ac_top_build_prefix&;t t |
|
8651 s&@srcdir@&$ac_srcdir&;t t |
|
8652 s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
8653 s&@top_srcdir@&$ac_top_srcdir&;t t |
|
8654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
8655 s&@builddir@&$ac_builddir&;t t |
|
8656 s&@abs_builddir@&$ac_abs_builddir&;t t |
|
8657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
8658 s&@INSTALL@&$ac_INSTALL&;t t |
|
8659 $ac_datarootdir_hack |
|
8660 " |
|
8661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
|
8662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
8663 |
|
8664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
8665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
|
8666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
|
8667 "$ac_tmp/out"`; test -z "$ac_out"; } && |
|
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
8669 which seems to be undefined. Please make sure it is defined" >&5 |
|
8670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
8671 which seems to be undefined. Please make sure it is defined" >&2;} |
|
8672 |
|
8673 rm -f "$ac_tmp/stdin" |
|
8674 case $ac_file in |
|
8675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
|
8676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
|
8677 esac \ |
|
8678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
8679 ;; |
|
8680 |
|
8681 |
|
8682 |
|
8683 esac |
|
8684 |
|
8685 done # for ac_tag |
|
8686 |
|
8687 |
|
8688 as_fn_exit 0 |
|
8689 _ACEOF |
|
8690 ac_clean_files=$ac_clean_files_save |
|
8691 |
|
8692 test $ac_write_fail = 0 || |
|
8693 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
|
8694 |
|
8695 |
|
8696 # configure is writing to config.log, and then calls config.status. |
|
8697 # config.status does its own redirection, appending to config.log. |
|
8698 # Unfortunately, on DOS this fails, as config.log is still kept open |
|
8699 # by configure, so config.status won't be able to write to it; its |
|
8700 # output is simply discarded. So we exec the FD to /dev/null, |
|
8701 # effectively closing config.log, so it can be properly (re)opened and |
|
8702 # appended to by config.status. When coming back to configure, we |
|
8703 # need to make the FD available again. |
|
8704 if test "$no_create" != yes; then |
|
8705 ac_cs_success=: |
|
8706 ac_config_status_args= |
|
8707 test "$silent" = yes && |
|
8708 ac_config_status_args="$ac_config_status_args --quiet" |
|
8709 exec 5>/dev/null |
|
8710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
8711 exec 5>>config.log |
|
8712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
8713 # would make configure fail if this is the last instruction. |
|
8714 $ac_cs_success || as_fn_exit 1 |
|
8715 fi |
|
8716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
8718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
8719 fi |
|
8720 |
|
8721 |
|
8722 echo |
|
8723 echo "ICU for C/C++ $VERSION is ready to be built." |
|
8724 echo "=== Important Notes: ===" |
|
8725 |
|
8726 echo "Data Packaging: $datapackaging" |
|
8727 echo " This means: $datapackaging_msg" |
|
8728 echo " To locate data: $datapackaging_howfound" |
|
8729 |
|
8730 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then |
|
8731 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU." |
|
8732 else |
|
8733 echo "** WARNING: $U_MAKE may not be GNU make." |
|
8734 echo "This may cause ICU to fail to build. Please make sure that GNU make" |
|
8735 echo "is in your PATH so that the configure script can detect its location." |
|
8736 fi |
|
8737 if test "x$AR" = "xfalse"; then |
|
8738 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail." |
|
8739 fi |
|
8740 |
|
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5 |
|
8742 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; } |
|
8743 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then |
|
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
8745 $as_echo "ok" >&6; } |
|
8746 else |
|
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5 |
|
8748 $as_echo "too old or test failed - try upgrading GNU Make" >&6; } |
|
8749 fi |
|
8750 |
|
8751 |
|
8752 if test -n "$UCONFIG_CPPFLAGS"; then |
|
8753 HDRFILE="uconfig.h.prepend" |
|
8754 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:" |
|
8755 echo |
|
8756 echo " ${UCONFIG_CPPFLAGS}" |
|
8757 echo |
|
8758 echo 'The recommended way to do this is to prepend the following lines to source/common/unicode/uconfig.h or #include them near the top of that file.' |
|
8759 echo "Creating the file ${HDRFILE}" |
|
8760 echo |
|
8761 echo '--------------- ' "${HDRFILE}" |
|
8762 echo > "${HDRFILE}" |
|
8763 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}" |
|
8764 echo >> "${HDRFILE}" |
|
8765 for flag in ${UCONFIG_CPPFLAGS}; |
|
8766 do |
|
8767 echo " /* $flag */" >> "${HDRFILE}" |
|
8768 case "${flag}" in |
|
8769 -D*=*) |
|
8770 \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" |
|
8771 \echo >> "${HDRFILE}" |
|
8772 ;; |
|
8773 -D*) |
|
8774 \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" |
|
8775 \echo >> "${HDRFILE}" |
|
8776 ;; |
|
8777 *) |
|
8778 \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}" |
|
8779 \echo >> "${HDRFILE}" |
|
8780 ;; |
|
8781 esac |
|
8782 done |
|
8783 cat "${HDRFILE}" |
|
8784 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}" |
|
8785 echo >> "${HDRFILE}" |
|
8786 echo '--------------- end ' "${HDRFILE}" |
|
8787 fi |
|
8788 |
|
8789 |
|
8790 if test -n "$UCONFIG_CFLAGS"; then |
|
8791 echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}" |
|
8792 fi |
|
8793 |
|
8794 if test -n "$UCONFIG_CXXFLAGS"; then |
|
8795 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}" |
|
8796 fi |
|
8797 |
|
8798 if test "$tools" = false; |
|
8799 then |
|
8800 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests." |
|
8801 echo "## Expect build failures in the 'data', 'test', and other directories." |
|
8802 fi |
|
8803 |
|
8804 $as_unset _CXX_CXXSUFFIX |