blob: 20cd9ec570505547b8eccce6fd1a2755c5d6b372 [file] [log] [blame]
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003# Generated by GNU Autoconf 2.68.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004#
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005# Copyright (c) 1999-2012, International Business Machines Corporation and others. All Rights Reserved.
Claire Ho85bf2e22009-11-24 14:23:02 -08006#
claireho27f65472011-06-09 11:11:49 -07007#
Claire Ho85bf2e22009-11-24 14:23:02 -08008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
claireho27f65472011-06-09 11:11:49 -07009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -070013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
claireho27f65472011-06-09 11:11:49 -070015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -070018
Claire Ho85bf2e22009-11-24 14:23:02 -080019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
claireho27f65472011-06-09 11:11:49 -070021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -070022 emulate sh
23 NULLCMD=:
Claire Ho85bf2e22009-11-24 14:23:02 -080024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -070025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
Claire Ho85bf2e22009-11-24 14:23:02 -080027 setopt NO_GLOB_SUBST
28else
claireho27f65472011-06-09 11:11:49 -070029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -080034esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -070035fi
Claire Ho85bf2e22009-11-24 14:23:02 -080036
37
Claire Ho85bf2e22009-11-24 14:23:02 -080038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
claireho27f65472011-06-09 11:11:49 -070045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if 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 --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Claire Ho85bf2e22009-11-24 14:23:02 -080052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
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;
claireho27f65472011-06-09 11:11:49 -070062 case $arg in #(
Claire Ho85bf2e22009-11-24 14:23:02 -080063 *"$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'
74fi
75
76# The user is always right.
77if 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 }
83fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -070084
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -070085
Claire Ho85bf2e22009-11-24 14:23:02 -080086# 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.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Craig Cornelius103e9ff2012-10-09 17:03:29 -070094as_myself=
claireho27f65472011-06-09 11:11:49 -070095case $0 in #((
Claire Ho85bf2e22009-11-24 14:23:02 -080096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -0700102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
Claire Ho85bf2e22009-11-24 14:23:02 -0800104IFS=$as_save_IFS
105
106 ;;
107esac
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.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
claireho27f65472011-06-09 11:11:49 -0700115 exit 1
Claire Ho85bf2e22009-11-24 14:23:02 -0800116fi
117
claireho27f65472011-06-09 11:11:49 -0700118# 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.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Claire Ho85bf2e22009-11-24 14:23:02 -0800125done
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Claire Ho85bf2e22009-11-24 14:23:02 -0800131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700135
claireho27f65472011-06-09 11:11:49 -0700136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if 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
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test 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
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
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
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
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
212fi; }
213IFS=$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.
Craig Cornelius103e9ff2012-10-09 17:03:29 -0700220 # Preserve -v and -x to the replacement shell.
claireho27f65472011-06-09 11:11:49 -0700221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
Craig Cornelius103e9ff2012-10-09 17:03:29 -0700225 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+"$@"}
claireho27f65472011-06-09 11:11:49 -0700232fi
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
247fi
248fi
249fi
250SHELL=${CONFIG_SHELL-/bin/sh}
251export SHELL
252# Unset more variables known to interfere with behavior of common tools.
253CLICOLOR_FORCE= GREP_OPTIONS=
254unset CLICOLOR_FORCE GREP_OPTIONS
255
256## --------------------- ##
257## M4sh Shell Functions. ##
258## --------------------- ##
259# as_fn_unset VAR
260# ---------------
261# Portably unset VAR.
262as_fn_unset ()
263{
264 { eval $1=; unset $1;}
265}
266as_unset=as_fn_unset
267
268# as_fn_set_status STATUS
269# -----------------------
270# Set $? to STATUS, without forking.
271as_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.
279as_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.
289as_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.
339if (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 }'
344else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349fi # 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.
356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366fi # 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.
374as_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
Claire Ho85bf2e22009-11-24 14:23:02 -0800385if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700387 as_expr=expr
388else
389 as_expr=false
390fi
391
Claire Ho85bf2e22009-11-24 14:23:02 -0800392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700393 as_basename=basename
394else
395 as_basename=false
396fi
397
claireho27f65472011-06-09 11:11:49 -0700398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400else
401 as_dirname=false
402fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700403
Claire Ho85bf2e22009-11-24 14:23:02 -0800404as_me=`$as_basename -- "$0" ||
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
Claire Ho85bf2e22009-11-24 14:23:02 -0800407 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
claireho27f65472011-06-09 11:11:49 -0700423# Avoid depending upon Character Ranges.
424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427as_cr_digits='0123456789'
428as_cr_alnum=$as_cr_Letters$as_cr_digits
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700429
430
claireho27f65472011-06-09 11:11:49 -0700431 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. :-)
Claire Ho85bf2e22009-11-24 14:23:02 -0800436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700440 sed '
Claire Ho85bf2e22009-11-24 14:23:02 -0800441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700445 N
Claire Ho85bf2e22009-11-24 14:23:02 -0800446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700448 t loop
Claire Ho85bf2e22009-11-24 14:23:02 -0800449 s/-\n.*//
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700450 ' >$as_me.lineno &&
Claire Ho85bf2e22009-11-24 14:23:02 -0800451 chmod +x "$as_me.lineno" ||
claireho27f65472011-06-09 11:11:49 -0700452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700453
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
Claire Ho85bf2e22009-11-24 14:23:02 -0800456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700458 # Exit status is that of the last command.
459 exit
460}
461
Claire Ho85bf2e22009-11-24 14:23:02 -0800462ECHO_C= ECHO_N= ECHO_T=
claireho27f65472011-06-09 11:11:49 -0700463case `echo -n x` in #(((((
Claire Ho85bf2e22009-11-24 14:23:02 -0800464-n*)
claireho27f65472011-06-09 11:11:49 -0700465 case `echo 'xy\c'` in
Claire Ho85bf2e22009-11-24 14:23:02 -0800466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
claireho27f65472011-06-09 11:11:49 -0700467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
Claire Ho85bf2e22009-11-24 14:23:02 -0800470 esac;;
471*)
472 ECHO_N='-n';;
473esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700474
475rm -f conf$$ conf$$.exe conf$$.file
Claire Ho85bf2e22009-11-24 14:23:02 -0800476if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481fi
482if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700484 as_ln_s='ln -s'
Claire Ho85bf2e22009-11-24 14:23:02 -0800485 # ... 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'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700495 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700496else
497 as_ln_s='cp -p'
498fi
Claire Ho85bf2e22009-11-24 14:23:02 -0800499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500rmdir conf$$.dir 2>/dev/null
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700501
502if mkdir -p . 2>/dev/null; then
claireho27f65472011-06-09 11:11:49 -0700503 as_mkdir_p='mkdir -p "$as_dir"'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700504else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
507fi
508
Claire Ho85bf2e22009-11-24 14:23:02 -0800509if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
511else
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
claireho27f65472011-06-09 11:11:49 -0700522 case $1 in #(
Claire Ho85bf2e22009-11-24 14:23:02 -0800523 -*)set "./$1";;
524 esac;
claireho27f65472011-06-09 11:11:49 -0700525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Claire Ho85bf2e22009-11-24 14:23:02 -0800526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
529fi
530as_executable_p=$as_test_x
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700531
532# Sed expression to map a string onto a valid CPP name.
533as_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.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
claireho27f65472011-06-09 11:11:49 -0700539test -n "$DJDIR" || exec 7<&0 </dev/null
540exec 6>&1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700541
542# Name of the host.
claireho27f65472011-06-09 11:11:49 -0700543# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
Claire Ho85bf2e22009-11-24 14:23:02 -0800551ac_clean_files=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700552ac_config_libobj_dir=.
Claire Ho85bf2e22009-11-24 14:23:02 -0800553LIBOBJS=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700558
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700559# Identity of this package.
560PACKAGE_NAME=
561PACKAGE_TARNAME=
562PACKAGE_VERSION=
563PACKAGE_STRING=
564PACKAGE_BUGREPORT=
claireho27f65472011-06-09 11:11:49 -0700565PACKAGE_URL=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700566
clairehob26ce3a2012-01-10 17:54:41 -0800567ac_unique_file="ICU"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700568ac_unique_file="common/unicode/utypes.h"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Claire Ho85bf2e22009-11-24 14:23:02 -0800572#ifdef HAVE_SYS_TYPES_H
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700573# include <sys/types.h>
574#endif
Claire Ho85bf2e22009-11-24 14:23:02 -0800575#ifdef HAVE_SYS_STAT_H
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700576# include <sys/stat.h>
577#endif
Claire Ho85bf2e22009-11-24 14:23:02 -0800578#ifdef STDC_HEADERS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700579# include <stdlib.h>
580# include <stddef.h>
581#else
Claire Ho85bf2e22009-11-24 14:23:02 -0800582# ifdef HAVE_STDLIB_H
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700583# include <stdlib.h>
584# endif
585#endif
Claire Ho85bf2e22009-11-24 14:23:02 -0800586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Claire Ho85bf2e22009-11-24 14:23:02 -0800592#ifdef HAVE_STRINGS_H
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700593# include <strings.h>
594#endif
Claire Ho85bf2e22009-11-24 14:23:02 -0800595#ifdef HAVE_INTTYPES_H
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700596# include <inttypes.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700597#endif
Claire Ho85bf2e22009-11-24 14:23:02 -0800598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700602# include <unistd.h>
603#endif"
604
Claire Ho85bf2e22009-11-24 14:23:02 -0800605ac_subst_vars='LTLIBOBJS
606LIBOBJS
Craig Cornelius103e9ff2012-10-09 17:03:29 -0700607LIBCXXFLAGS
608LIBCFLAGS
Claire Ho85bf2e22009-11-24 14:23:02 -0800609platform_make_fragment
610platform_make_fragment_name
611platform
612ICUDATA_CHAR
613SAMPLES_TRUE
614TESTS_TRUE
615ICULIBSUFFIXCNAME
616U_HAVE_LIB_SUFFIX
617ICULIBSUFFIX
618DATA_PACKAGING_MODE
619thepkgicudatadir
620pkgicudatadir
621LAYOUT_TRUE
622ICUIO_TRUE
623EXTRAS_TRUE
624U_CHECK_UTF16_STRING
claireho50294ea2010-05-03 15:44:48 -0700625U_CHECK_GNUC_UTF16_STRING
Claire Ho85bf2e22009-11-24 14:23:02 -0800626U_HAVE_WCSCPY
627U_HAVE_WCHAR_H
Claire Ho85bf2e22009-11-24 14:23:02 -0800628U_TIMEZONE
629U_HAVE_TIMEZONE
630U_TZNAME
631U_HAVE_TZNAME
632U_TZSET
633U_HAVE_TZSET
634U_HAVE_POPEN
635U_HAVE_PLACEMENT_NEW
636U_OVERRIDE_CXX_ALLOCATION
637U_HAVE_NAMESPACE
638U_NL_LANGINFO_CODESET
639U_HAVE_NL_LANGINFO_CODESET
640U_IS_BIG_ENDIAN
Claire Ho85bf2e22009-11-24 14:23:02 -0800641U_HAVE_DIRENT_H
642U_HAVE_INTTYPES_H
Claire Ho85bf2e22009-11-24 14:23:02 -0800643GENCCODE_ASSEMBLY
644HAVE_MMAP
645LIB_THREAD
646ICU_USE_THREADS
647THREADS_TRUE
648U_HAVE_STD_STRING
Claire Ho85bf2e22009-11-24 14:23:02 -0800649ENABLE_RPATH
claireho50294ea2010-05-03 15:44:48 -0700650U_ENABLE_DYLOAD
Claire Ho85bf2e22009-11-24 14:23:02 -0800651U_ENABLE_TRACING
652U_DISABLE_RENAMING
653AR
654RANLIB
Claire Ho85bf2e22009-11-24 14:23:02 -0800655U_DEFAULT_SHOW_DRAFT
claireho50294ea2010-05-03 15:44:48 -0700656UCLN_NO_AUTO_CLEANUP
Claire Ho85bf2e22009-11-24 14:23:02 -0800657ENABLE_STATIC
658ENABLE_SHARED
659LIB_M
660COMPILE_LINK_ENVVAR
661ARFLAGS
claireho50294ea2010-05-03 15:44:48 -0700662EGREP
663GREP
Claire Ho85bf2e22009-11-24 14:23:02 -0800664DOXYGEN
665cross_buildroot
666U_MAKE
667cross_compiling
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
671CPP
672ac_ct_CXX
673CXXFLAGS
674CXX
675OBJEXT
676EXEEXT
677ac_ct_CC
678LDFLAGS
679CFLAGS
680CC
claireho27f65472011-06-09 11:11:49 -0700681ENABLE_RELEASE
682ENABLE_DEBUG
Claire Ho85bf2e22009-11-24 14:23:02 -0800683CPPFLAGS
Claire Ho85bf2e22009-11-24 14:23:02 -0800684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692UNICODE_VERSION
693LIB_VERSION_MAJOR
694LIB_VERSION
695VERSION
claireho27f65472011-06-09 11:11:49 -0700696ICU_ECHO_T
697ICU_ECHO_C
698ICU_ECHO_N
Claire Ho85bf2e22009-11-24 14:23:02 -0800699PACKAGE
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
claireho27f65472011-06-09 11:11:49 -0700730PACKAGE_URL
Claire Ho85bf2e22009-11-24 14:23:02 -0800731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700738ac_subst_files=''
Claire Ho85bf2e22009-11-24 14:23:02 -0800739ac_user_opts='
740enable_option_checking
claireho27f65472011-06-09 11:11:49 -0700741enable_debug
742enable_release
Claire Ho85bf2e22009-11-24 14:23:02 -0800743with_cross_build
744enable_strict
745enable_64bit_libs
746with_library_bits
747enable_shared
748enable_static
claireho50294ea2010-05-03 15:44:48 -0700749enable_auto_cleanup
Claire Ho85bf2e22009-11-24 14:23:02 -0800750enable_draft
751enable_renaming
752enable_tracing
claireho50294ea2010-05-03 15:44:48 -0700753enable_dyload
Claire Ho85bf2e22009-11-24 14:23:02 -0800754enable_rpath
755enable_threads
756enable_weak_threads
Claire Ho85bf2e22009-11-24 14:23:02 -0800757enable_extras
758enable_icuio
759enable_layout
760with_data_packaging
761with_library_suffix
762enable_tests
763enable_samples
764'
765 ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CXX
774CXXFLAGS
775CCC
776CPP'
777
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
Claire Ho85bf2e22009-11-24 14:23:02 -0800782ac_unrecognized_opts=
783ac_unrecognized_sep=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_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.
Claire Ho85bf2e22009-11-24 14:23:02 -0800806# (The list follows the same order as the GNU Coding Standards.)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
Claire Ho85bf2e22009-11-24 14:23:02 -0800810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700815includedir='${prefix}/include'
816oldincludedir='/usr/include'
Claire Ho85bf2e22009-11-24 14:23:02 -0800817docdir='${datarootdir}/doc/${PACKAGE}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700826
827ac_prev=
Claire Ho85bf2e22009-11-24 14:23:02 -0800828ac_dashdash=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700829for ac_option
830do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
Claire Ho85bf2e22009-11-24 14:23:02 -0800833 eval $ac_prev=\$ac_option
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700834 ac_prev=
835 continue
836 fi
837
Claire Ho85bf2e22009-11-24 14:23:02 -0800838 case $ac_option in
claireho27f65472011-06-09 11:11:49 -0700839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
Claire Ho85bf2e22009-11-24 14:23:02 -0800842 esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
Claire Ho85bf2e22009-11-24 14:23:02 -0800846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700849
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
Claire Ho85bf2e22009-11-24 14:23:02 -0800870 -datadir | --datadir | --datadi | --datad)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700871 ac_prev=datadir ;;
Claire Ho85bf2e22009-11-24 14:23:02 -0800872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700873 datadir=$ac_optarg ;;
874
Claire Ho85bf2e22009-11-24 14:23:02 -0800875 -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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700882 -disable-* | --disable-*)
Claire Ho85bf2e22009-11-24 14:23:02 -0800883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700884 # Reject names that are not valid shell variable names.
Claire Ho85bf2e22009-11-24 14:23:02 -0800885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
claireho27f65472011-06-09 11:11:49 -0700886 as_fn_error $? "invalid feature name: $ac_useropt"
Claire Ho85bf2e22009-11-24 14:23:02 -0800887 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 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700907
908 -enable-* | --enable-*)
Claire Ho85bf2e22009-11-24 14:23:02 -0800909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700910 # Reject names that are not valid shell variable names.
Claire Ho85bf2e22009-11-24 14:23:02 -0800911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
claireho27f65472011-06-09 11:11:49 -0700912 as_fn_error $? "invalid feature name: $ac_useropt"
Claire Ho85bf2e22009-11-24 14:23:02 -0800913 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=', ';;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700921 esac
Claire Ho85bf2e22009-11-24 14:23:02 -0800922 eval enable_$ac_useropt=\$ac_optarg ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700923
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
Claire Ho85bf2e22009-11-24 14:23:02 -0800949 -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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700955 -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
Claire Ho85bf2e22009-11-24 14:23:02 -0800979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700984 -localstatedir | --localstatedir | --localstatedi | --localstated \
Claire Ho85bf2e22009-11-24 14:23:02 -0800985 | --localstate | --localstat | --localsta | --localst | --locals)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Claire Ho85bf2e22009-11-24 14:23:02 -0800988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -0700989 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
Claire Ho85bf2e22009-11-24 14:23:02 -08001053 -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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001063 -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-*)
Claire Ho85bf2e22009-11-24 14:23:02 -08001113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001114 # Reject names that are not valid shell variable names.
Claire Ho85bf2e22009-11-24 14:23:02 -08001115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
claireho27f65472011-06-09 11:11:49 -07001116 as_fn_error $? "invalid package name: $ac_useropt"
Claire Ho85bf2e22009-11-24 14:23:02 -08001117 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=', ';;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001125 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08001126 eval with_$ac_useropt=\$ac_optarg ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001127
1128 -without-* | --without-*)
Claire Ho85bf2e22009-11-24 14:23:02 -08001129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001130 # Reject names that are not valid shell variable names.
Claire Ho85bf2e22009-11-24 14:23:02 -08001131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
claireho27f65472011-06-09 11:11:49 -07001132 as_fn_error $? "invalid package name: $ac_useropt"
Claire Ho85bf2e22009-11-24 14:23:02 -08001133 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 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001143
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
claireho27f65472011-06-09 11:11:49 -07001162 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001164 ;;
1165
1166 *=*)
1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
claireho27f65472011-06-09 11:11:49 -07001169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08001173 eval $ac_envvar=\$ac_optarg
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001174 export $ac_envvar ;;
1175
1176 *)
1177 # FIXME: should be removed in autoconf 3.0.
Claire Ho85bf2e22009-11-24 14:23:02 -08001178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Claire Ho85bf2e22009-11-24 14:23:02 -08001180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001182 ;;
1183
1184 esac
1185done
1186
1187if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
claireho27f65472011-06-09 11:11:49 -07001189 as_fn_error $? "missing argument to $ac_option"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001190fi
1191
Claire Ho85bf2e22009-11-24 14:23:02 -08001192if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1194 no) ;;
claireho27f65472011-06-09 11:11:49 -07001195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08001196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001197 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08001198fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001199
Claire Ho85bf2e22009-11-24 14:23:02 -08001200# Check all directory arguments for consistency.
1201for 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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001205do
Claire Ho85bf2e22009-11-24 14:23:02 -08001206 eval ac_val=\$$ac_var
1207 # Remove trailing slashes.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001208 case $ac_val in
Claire Ho85bf2e22009-11-24 14:23:02 -08001209 */ )
1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\$ac_val;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001212 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08001213 # 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
claireho27f65472011-06-09 11:11:49 -07001218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001219done
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.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
claireho27f65472011-06-09 11:11:49 -07001232 $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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
Claire Ho85bf2e22009-11-24 14:23:02 -08001245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
claireho27f65472011-06-09 11:11:49 -07001248 as_fn_error $? "working directory cannot be determined"
Claire Ho85bf2e22009-11-24 14:23:02 -08001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
claireho27f65472011-06-09 11:11:49 -07001250 as_fn_error $? "pwd does not report name of working directory"
Claire Ho85bf2e22009-11-24 14:23:02 -08001251
1252
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Claire Ho85bf2e22009-11-24 14:23:02 -08001256 # 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'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001280 srcdir=$ac_confdir
Claire Ho85bf2e22009-11-24 14:23:02 -08001281 if test ! -r "$srcdir/$ac_unique_file"; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Claire Ho85bf2e22009-11-24 14:23:02 -08001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
claireho27f65472011-06-09 11:11:49 -07001289 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001290fi
Claire Ho85bf2e22009-11-24 14:23:02 -08001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
claireho27f65472011-06-09 11:11:49 -07001293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Claire Ho85bf2e22009-11-24 14:23:02 -08001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
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.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for 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}
1310done
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001311
1312#
1313# Report the --help message.
1314#
1315if 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
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
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
claireho27f65472011-06-09 11:11:49 -07001333 -q, --quiet, --silent do not print \`checking ...' messages
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001334 --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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Claire Ho85bf2e22009-11-24 14:23:02 -08001341 [$ac_default_prefix]
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Claire Ho85bf2e22009-11-24 14:23:02 -08001343 [PREFIX]
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Claire Ho85bf2e22009-11-24 14:23:02 -08001353 --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]
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System 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
1380fi
1381
1382if test -n "$ac_init_help"; then
1383
1384 cat <<\_ACEOF
1385
1386Optional Features:
Claire Ho85bf2e22009-11-24 14:23:02 -08001387 --disable-option-checking ignore unrecognized --enable/--with options
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001390 --enable-debug build debug libraries and enable the U_DEBUG define default=no
claireho27f65472011-06-09 11:11:49 -07001391 --enable-release build release libraries default=yes
Claire Ho85bf2e22009-11-24 14:23:02 -08001392 --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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001394 --enable-shared build shared libraries default=yes
1395 --enable-static build static libraries default=no
claireho50294ea2010-05-03 15:44:48 -07001396 --enable-auto-cleanup enable auto cleanup of libraries default=no
1397 --enable-draft enable draft APIs (and internal APIs) default=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001398 --enable-renaming add a version suffix to symbols default=yes
1399 --enable-tracing enable function and data tracing default=no
claireho50294ea2010-05-03 15:44:48 -07001400 --disable-dyload disable dynamic loading default=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001401 --enable-rpath use rpath when linking default is only if necessary
1402 --enable-threads build ICU with thread safety default=yes
1403 --enable-weak-threads weakly reference the threading library default=no
1404 --enable-extras build ICU extras default=yes
1405 --enable-icuio build ICU's icuio library default=yes
1406 --enable-layout build ICU's layout library default=yes
1407 --enable-tests build ICU tests default=yes
1408 --enable-samples build ICU samples default=yes
1409
1410Additionally, the variable FORCE_LIBS may be set before calling configure.
1411If set, it will REPLACE any automatic list of libraries.
1412
1413Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Claire Ho85bf2e22009-11-24 14:23:02 -08001416 --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
claireho50294ea2010-05-03 15:44:48 -07001418 --with-data-packaging=type specify how to package ICU data (files, archive, library, static, auto) default=auto
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001419 --with-library-suffix=suffix tag a suffix to the library names default=
1420
1421Some 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>
Claire Ho85bf2e22009-11-24 14:23:02 -08001426 LIBS libraries to pass to the linker, e.g. -l<library>
claireho27f65472011-06-09 11:11:49 -07001427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Claire Ho85bf2e22009-11-24 14:23:02 -08001428 you have headers in a nonstandard directory <include dir>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001429 CXX C++ compiler command
1430 CXXFLAGS C++ compiler flags
1431 CPP C preprocessor
1432
1433Use these variables to override the choices made by `configure' or to help
1434it to find libraries and programs with nonstandard names/locations.
1435
claireho27f65472011-06-09 11:11:49 -07001436Report bugs to the package provider.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001437_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08001438ac_status=$?
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001439fi
1440
1441if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Claire Ho85bf2e22009-11-24 14:23:02 -08001444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 continue
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001447 ac_builddir=.
1448
Claire Ho85bf2e22009-11-24 14:23:02 -08001449case "$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 ;;
1459esac
1460ac_abs_top_builddir=$ac_pwd
1461ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462# for backward compatibility:
1463ac_top_builddir=$ac_top_build_prefix
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001464
1465case $srcdir in
Claire Ho85bf2e22009-11-24 14:23:02 -08001466 .) # We are building in place.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001467 ac_srcdir=.
Claire Ho85bf2e22009-11-24 14:23:02 -08001468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001471 ac_srcdir=$srcdir$ac_dir_suffix;
Claire Ho85bf2e22009-11-24 14:23:02 -08001472 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 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001478esac
Claire Ho85bf2e22009-11-24 14:23:02 -08001479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001480
Claire Ho85bf2e22009-11-24 14:23:02 -08001481 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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001489 else
Claire Ho85bf2e22009-11-24 14:23:02 -08001490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001493 done
1494fi
1495
Claire Ho85bf2e22009-11-24 14:23:02 -08001496test -n "$ac_init_help" && exit $ac_status
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001497if $ac_init_version; then
1498 cat <<\_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08001499configure
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001500generated by GNU Autoconf 2.68
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001501
claireho27f65472011-06-09 11:11:49 -07001502Copyright (C) 2010 Free Software Foundation, Inc.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001503This configure script is free software; the Free Software Foundation
1504gives unlimited permission to copy, distribute and modify it.
Claire Ho85bf2e22009-11-24 14:23:02 -08001505
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001506 Copyright (c) 1999-2012, International Business Machines Corporation and others. All Rights Reserved.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001507_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08001508 exit
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07001509fi
claireho27f65472011-06-09 11:11:49 -07001510
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.
1518ac_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"
1523case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526esac
1527eval 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
1542else
1543 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547fi
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001549 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.
1556ac_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"
1561case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564esac
1565eval 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
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585fi
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001587 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.
1594ac_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"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval 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
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001624 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.
1631ac_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"
1636case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639esac
1640eval 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
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
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
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001670 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.
1678ac_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"
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval 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;;
1695esac
1696eval 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
1703else
1704 $as_echo "$as_me: program exited with status $ac_status" >&5
1705 $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=$ac_status
1709fi
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001712 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
1721ac_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.
1726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h. */
1728$4
1729int
1730main ()
1731{
1732static int test_array [1 - 2 * !(($2) >= 0)];
1733test_array [0] = 0
1734
1735 ;
1736 return 0;
1737}
1738_ACEOF
1739if 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
1745int
1746main ()
1747{
1748static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1749test_array [0] = 0
1750
1751 ;
1752 return 0;
1753}
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_hi=$ac_mid; break
1757else
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
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 done
1767else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h. */
1770$4
1771int
1772main ()
1773{
1774static int test_array [1 - 2 * !(($2) < 0)];
1775test_array [0] = 0
1776
1777 ;
1778 return 0;
1779}
1780_ACEOF
1781if 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
1787int
1788main ()
1789{
1790static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1791test_array [0] = 0
1792
1793 ;
1794 return 0;
1795}
1796_ACEOF
1797if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_lo=$ac_mid; break
1799else
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
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 done
1809else
1810 ac_lo= ac_hi=
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815# Binary search between lo and hi bounds.
1816while 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
1821int
1822main ()
1823{
1824static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1825test_array [0] = 0
1826
1827 ;
1828 return 0;
1829}
1830_ACEOF
1831if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_hi=$ac_mid
1833else
1834 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1835fi
1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837done
1838case $ac_lo in #((
1839?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1840'') ac_retval=1 ;;
1841esac
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845$4
1846static long int longval () { return $2; }
1847static unsigned long int ulongval () { return $2; }
1848#include <stdio.h>
1849#include <stdlib.h>
1850int
1851main ()
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
1879if ac_fn_c_try_run "$LINENO"; then :
1880 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1881else
1882 ac_retval=1
1883fi
1884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1885 conftest.$ac_objext conftest.beam conftest.$ac_ext
1886rm -f conftest.val
1887
1888 fi
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001890 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.
1898ac_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; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001903if eval \${$3+:} false; then :
claireho27f65472011-06-09 11:11:49 -07001904 $as_echo_n "(cached) " >&6
1905else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h. */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912 eval "$3=yes"
1913else
1914 eval "$3=no"
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001922
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.
1928ac_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"
1933case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936esac
1937eval 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
1955else
1956 $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=1
1960fi
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
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07001967 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.
1976ac_fn_c_check_header_mongrel ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001979 if eval \${$3+:} false; then :
claireho27f65472011-06-09 11:11:49 -07001980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07001982if eval \${$3+:} false; then :
claireho27f65472011-06-09 11:11:49 -07001983 $as_echo_n "(cached) " >&6
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988else
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; }
1992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$4
1995#include <$2>
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
1999else
2000 ac_header_compiler=no
2001fi
2002rm -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; }
2009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h. */
2011#include <$2>
2012_ACEOF
2013if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2015else
2016 ac_header_preproc=no
2017fi
2018rm -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?
2023case $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 ;;
2042esac
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044$as_echo_n "checking for $2... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002045if eval \${$3+:} false; then :
claireho27f65472011-06-09 11:11:49 -07002046 $as_echo_n "(cached) " >&6
2047else
2048 eval "$3=\$ac_header_compiler"
2049fi
2050eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
2053fi
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07002055
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
2061ac_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; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002066if eval \${$3+:} false; then :
claireho27f65472011-06-09 11:11:49 -07002067 $as_echo_n "(cached) " >&6
2068else
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
2092extern "C"
2093#endif
2094char $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
2099choke me
2100#endif
2101
2102int
2103main ()
2104{
2105return $2 ();
2106 ;
2107 return 0;
2108}
2109_ACEOF
2110if ac_fn_c_try_link "$LINENO"; then :
2111 eval "$3=yes"
2112else
2113 eval "$3=no"
2114fi
2115rm -f core conftest.err conftest.$ac_objext \
2116 conftest$ac_exeext conftest.$ac_ext
2117fi
2118eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07002122
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.
2129ac_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; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002134if eval \${$3+:} false; then :
claireho27f65472011-06-09 11:11:49 -07002135 $as_echo_n "(cached) " >&6
2136else
2137 eval "$3=no"
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h. */
2140$4
2141int
2142main ()
2143{
2144if (sizeof ($2))
2145 return 0;
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h. */
2153$4
2154int
2155main ()
2156{
2157if (sizeof (($2)))
2158 return 0;
2159 ;
2160 return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164
2165else
2166 eval "$3=yes"
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
claireho27f65472011-06-09 11:11:49 -07002176
2177} # ac_fn_c_check_type
Claire Ho85bf2e22009-11-24 14:23:02 -08002178cat >config.log <<_ACEOF
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002179This file contains any messages produced by compilers while
2180running configure, to aid debugging if configure makes a mistake.
2181
2182It was created by $as_me, which was
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002183generated by GNU Autoconf 2.68. Invocation command line was
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002184
2185 $ $0 $@
2186
2187_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08002188exec 5>>config.log
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002189{
2190cat <<_ASUNAME
2191## --------- ##
2192## Platform. ##
2193## --------- ##
2194
2195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199uname -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`
Claire Ho85bf2e22009-11-24 14:23:02 -08002207/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002208/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
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07002219 $as_echo "PATH: $as_dir"
2220 done
Claire Ho85bf2e22009-11-24 14:23:02 -08002221IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002222
2223} >&5
2224
2225cat >&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.
2240ac_configure_args=
2241ac_configure_args0=
2242ac_configure_args1=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002243ac_must_keep_next=false
2244for ac_pass in 1 2
2245do
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 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08002253 *\'*)
2254 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002255 esac
2256 case $ac_pass in
claireho27f65472011-06-09 11:11:49 -07002257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002258 2)
claireho27f65472011-06-09 11:11:49 -07002259 as_fn_append ac_configure_args1 " '$ac_arg'"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002260 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
claireho27f65472011-06-09 11:11:49 -07002275 as_fn_append ac_configure_args " '$ac_arg'"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002276 ;;
2277 esac
2278 done
2279done
claireho27f65472011-06-09 11:11:49 -07002280{ ac_configure_args0=; unset ac_configure_args0;}
2281{ ac_configure_args1=; unset ac_configure_args1;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002282
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.
Claire Ho85bf2e22009-11-24 14:23:02 -08002286# 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.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002288trap 'exit_status=$?
2289 # Save into config.log some information that might help in debugging.
2290 {
2291 echo
2292
claireho27f65472011-06-09 11:11:49 -07002293 $as_echo "## ---------------- ##
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002294## Cache variables. ##
claireho27f65472011-06-09 11:11:49 -07002295## ---------------- ##"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002296 echo
2297 # The following way of writing the cache mishandles newlines in values,
Claire Ho85bf2e22009-11-24 14:23:02 -08002298(
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 #(
claireho27f65472011-06-09 11:11:49 -07002304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002305$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= ;; #(
claireho27f65472011-06-09 11:11:49 -07002310 *) { eval $ac_var=; unset $ac_var;} ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08002311 esac ;;
2312 esac
2313 done
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002314 (set) 2>&1 |
Claire Ho85bf2e22009-11-24 14:23:02 -08002315 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316 *${as_nl}ac_space=\ *)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002317 sed -n \
Claire Ho85bf2e22009-11-24 14:23:02 -08002318 "s/'\''/'\''\\\\'\'''\''/g;
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320 ;; #(
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002321 *)
Claire Ho85bf2e22009-11-24 14:23:02 -08002322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002323 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08002324 esac |
2325 sort
2326)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002327 echo
2328
claireho27f65472011-06-09 11:11:49 -07002329 $as_echo "## ----------------- ##
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002330## Output variables. ##
claireho27f65472011-06-09 11:11:49 -07002331## ----------------- ##"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002332 echo
2333 for ac_var in $ac_subst_vars
2334 do
Claire Ho85bf2e22009-11-24 14:23:02 -08002335 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'\''"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002340 done | sort
2341 echo
2342
2343 if test -n "$ac_subst_files"; then
claireho27f65472011-06-09 11:11:49 -07002344 $as_echo "## ------------------- ##
Claire Ho85bf2e22009-11-24 14:23:02 -08002345## File substitutions. ##
claireho27f65472011-06-09 11:11:49 -07002346## ------------------- ##"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002347 echo
2348 for ac_var in $ac_subst_files
2349 do
Claire Ho85bf2e22009-11-24 14:23:02 -08002350 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'\''"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002355 done | sort
2356 echo
2357 fi
2358
2359 if test -s confdefs.h; then
claireho27f65472011-06-09 11:11:49 -07002360 $as_echo "## ----------- ##
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002361## confdefs.h. ##
claireho27f65472011-06-09 11:11:49 -07002362## ----------- ##"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002363 echo
Claire Ho85bf2e22009-11-24 14:23:02 -08002364 cat confdefs.h
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002365 echo
2366 fi
2367 test "$ac_signal" != 0 &&
Claire Ho85bf2e22009-11-24 14:23:02 -08002368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002370 } >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002373 exit $exit_status
Claire Ho85bf2e22009-11-24 14:23:02 -08002374' 0
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002375for ac_signal in 1 2 13 15; do
claireho27f65472011-06-09 11:11:49 -07002376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002377done
2378ac_signal=0
2379
2380# confdefs.h avoids OS command line length limits that DEFS can exceed.
Claire Ho85bf2e22009-11-24 14:23:02 -08002381rm -f -r conftest* confdefs.h
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002382
claireho27f65472011-06-09 11:11:49 -07002383$as_echo "/* confdefs.h */" > confdefs.h
2384
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002385# Predefined preprocessor variables.
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_NAME "$PACKAGE_NAME"
2389_ACEOF
2390
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393_ACEOF
2394
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_VERSION "$PACKAGE_VERSION"
2397_ACEOF
2398
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_STRING "$PACKAGE_STRING"
2401_ACEOF
2402
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405_ACEOF
2406
claireho27f65472011-06-09 11:11:49 -07002407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_URL "$PACKAGE_URL"
2409_ACEOF
2410
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002411
2412# Let the site file select an alternate cache file if it wants to.
Claire Ho85bf2e22009-11-24 14:23:02 -08002413# Prefer an explicitly selected file to automatically selected ones.
2414ac_site_file1=NONE
2415ac_site_file2=NONE
2416if test -n "$CONFIG_SITE"; then
claireho27f65472011-06-09 11:11:49 -07002417 # 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
Claire Ho85bf2e22009-11-24 14:23:02 -08002423elif test "x$prefix" != xNONE; then
2424 ac_site_file1=$prefix/share/config.site
2425 ac_site_file2=$prefix/etc/config.site
2426else
2427 ac_site_file1=$ac_default_prefix/share/config.site
2428 ac_site_file2=$ac_default_prefix/etc/config.site
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002429fi
Claire Ho85bf2e22009-11-24 14:23:02 -08002430for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2431do
2432 test "x$ac_site_file" = xNONE && continue
claireho27f65472011-06-09 11:11:49 -07002433 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
Claire Ho85bf2e22009-11-24 14:23:02 -08002435$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002436 sed 's/^/| /' "$ac_site_file" >&5
claireho27f65472011-06-09 11:11:49 -07002437 . "$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;}
2440as_fn_error $? "failed to load site script $ac_site_file
2441See \`config.log' for more details" "$LINENO" 5; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002442 fi
2443done
2444
2445if test -r "$cache_file"; then
claireho27f65472011-06-09 11:11:49 -07002446 # 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
Claire Ho85bf2e22009-11-24 14:23:02 -08002450$as_echo "$as_me: loading cache $cache_file" >&6;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002451 case $cache_file in
Claire Ho85bf2e22009-11-24 14:23:02 -08002452 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453 *) . "./$cache_file";;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002454 esac
2455 fi
2456else
claireho27f65472011-06-09 11:11:49 -07002457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002458$as_echo "$as_me: creating cache $cache_file" >&6;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002459 >$cache_file
2460fi
2461
2462# Check that the precious variables saved in the cache have kept the same
2463# value.
2464ac_cache_corrupted=false
Claire Ho85bf2e22009-11-24 14:23:02 -08002465for ac_var in $ac_precious_vars; do
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467 eval ac_new_set=\$ac_env_${ac_var}_set
Claire Ho85bf2e22009-11-24 14:23:02 -08002468 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469 eval ac_new_val=\$ac_env_${ac_var}_value
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002470 case $ac_old_set,$ac_new_set in
2471 set,)
claireho27f65472011-06-09 11:11:49 -07002472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002473$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002474 ac_cache_corrupted=: ;;
2475 ,set)
claireho27f65472011-06-09 11:11:49 -07002476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002477$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002478 ac_cache_corrupted=: ;;
2479 ,);;
2480 *)
2481 if test "x$ac_old_val" != "x$ac_new_val"; then
Claire Ho85bf2e22009-11-24 14:23:02 -08002482 # 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
claireho27f65472011-06-09 11:11:49 -07002486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002487$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488 ac_cache_corrupted=:
2489 else
claireho27f65472011-06-09 11:11:49 -07002490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002491$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
claireho27f65472011-06-09 11:11:49 -07002494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002495$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
claireho27f65472011-06-09 11:11:49 -07002496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002497$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002498 fi;;
2499 esac
2500 # Pass precious variables to config.status.
2501 if test "$ac_new_set" = set; then
2502 case $ac_new_val in
Claire Ho85bf2e22009-11-24 14:23:02 -08002503 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002504 *) 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.
claireho27f65472011-06-09 11:11:49 -07002508 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002509 esac
2510 fi
2511done
2512if $ac_cache_corrupted; then
claireho27f65472011-06-09 11:11:49 -07002513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07002515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002516$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
claireho27f65472011-06-09 11:11:49 -07002517 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002518fi
claireho27f65472011-06-09 11:11:49 -07002519## -------------------- ##
2520## Main body of script. ##
2521## -------------------- ##
Claire Ho85bf2e22009-11-24 14:23:02 -08002522
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002523ac_ext=c
2524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530
clairehob26ce3a2012-01-10 17:54:41 -08002531#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
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002539
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002540PACKAGE="icu"
2541
2542
claireho27f65472011-06-09 11:11:49 -07002543# 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)
2547ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T=
2548case `/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';;
2556esac
2557
2558
2559
2560
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002562$as_echo_n "checking for ICU version numbers... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002563
Claire Ho85bf2e22009-11-24 14:23:02 -08002564# Get the ICU version from uversion.h or other headers
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002565geticuversion() {
2566 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2567}
claireho50294ea2010-05-03 15:44:48 -07002568getuversion() {
2569 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2570}
2571VERSION=`geticuversion $srcdir/common/unicode/uvernum.h`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002572if test x"$VERSION" = x; then
clairehob26ce3a2012-01-10 17:54:41 -08002573 as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
claireho50294ea2010-05-03 15:44:48 -07002574fi
2575
clairehob26ce3a2012-01-10 17:54:41 -08002576#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
claireho50294ea2010-05-03 15:44:48 -07002581UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h`
2582if test x"$UNICODE_VERSION" = x; then
clairehob26ce3a2012-01-10 17:54:41 -08002583 as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002584fi
Claire Ho85bf2e22009-11-24 14:23:02 -08002585# 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.
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002588#[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
2589LIB_VERSION=$VERSION
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002590LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
2591
2592
2593
claireho27f65472011-06-09 11:11:49 -07002594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
claireho50294ea2010-05-03 15:44:48 -07002595$as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002596
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002597
2598
Claire Ho85bf2e22009-11-24 14:23:02 -08002599# Determine the host system
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002600ac_aux_dir=
Claire Ho85bf2e22009-11-24 14:23:02 -08002601for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2602 if test -f "$ac_dir/install-sh"; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/install-sh -c"
2605 break
Claire Ho85bf2e22009-11-24 14:23:02 -08002606 elif test -f "$ac_dir/install.sh"; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002607 ac_aux_dir=$ac_dir
2608 ac_install_sh="$ac_aux_dir/install.sh -c"
2609 break
Claire Ho85bf2e22009-11-24 14:23:02 -08002610 elif test -f "$ac_dir/shtool"; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/shtool install -c"
2613 break
2614 fi
2615done
2616if test -z "$ac_aux_dir"; then
claireho27f65472011-06-09 11:11:49 -07002617 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002618fi
Claire Ho85bf2e22009-11-24 14:23:02 -08002619
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.
2624ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2625ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2626ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2627
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002628
2629# Make sure we can run config.sub.
Claire Ho85bf2e22009-11-24 14:23:02 -08002630$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
claireho27f65472011-06-09 11:11:49 -07002631 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002632
claireho27f65472011-06-09 11:11:49 -07002633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002634$as_echo_n "checking build system type... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002635if ${ac_cv_build+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002636 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002637else
Claire Ho85bf2e22009-11-24 14:23:02 -08002638 ac_build_alias=$build_alias
2639test "x$ac_build_alias" = x &&
2640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2641test "x$ac_build_alias" = x &&
claireho27f65472011-06-09 11:11:49 -07002642 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08002643ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
claireho27f65472011-06-09 11:11:49 -07002644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002645
2646fi
claireho27f65472011-06-09 11:11:49 -07002647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002648$as_echo "$ac_cv_build" >&6; }
2649case $ac_cv_build in
2650*-*-*) ;;
claireho27f65472011-06-09 11:11:49 -07002651*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Claire Ho85bf2e22009-11-24 14:23:02 -08002652esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002653build=$ac_cv_build
Claire Ho85bf2e22009-11-24 14:23:02 -08002654ac_save_IFS=$IFS; IFS='-'
2655set x $ac_cv_build
2656shift
2657build_cpu=$1
2658build_vendor=$2
2659shift; shift
2660# Remember, the first character of IFS is used to create $*,
2661# except with old shells:
2662build_os=$*
2663IFS=$ac_save_IFS
2664case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002665
2666
claireho27f65472011-06-09 11:11:49 -07002667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002668$as_echo_n "checking host system type... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002669if ${ac_cv_host+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002670 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002671else
Claire Ho85bf2e22009-11-24 14:23:02 -08002672 if test "x$host_alias" = x; then
2673 ac_cv_host=$ac_cv_build
2674else
2675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
claireho27f65472011-06-09 11:11:49 -07002676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08002677fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002678
2679fi
claireho27f65472011-06-09 11:11:49 -07002680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002681$as_echo "$ac_cv_host" >&6; }
2682case $ac_cv_host in
2683*-*-*) ;;
claireho27f65472011-06-09 11:11:49 -07002684*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Claire Ho85bf2e22009-11-24 14:23:02 -08002685esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002686host=$ac_cv_host
Claire Ho85bf2e22009-11-24 14:23:02 -08002687ac_save_IFS=$IFS; IFS='-'
2688set x $ac_cv_host
2689shift
2690host_cpu=$1
2691host_vendor=$2
2692shift; shift
2693# Remember, the first character of IFS is used to create $*,
2694# except with old shells:
2695host_os=$*
2696IFS=$ac_save_IFS
2697case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2698
2699
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002700
2701
claireho27f65472011-06-09 11:11:49 -07002702
Claire Ho85bf2e22009-11-24 14:23:02 -08002703# This variable is needed on z/OS because the C++ compiler only recognizes .C
2704_CXX_CXXSUFFIX=cpp
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002705export _CXX_CXXSUFFIX
claireho27f65472011-06-09 11:11:49 -07002706
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002707# Accumulate #defines
2708CONFIG_CPPFLAGS=""
2709UCONFIG_CPPFLAGS=""
2710
claireho27f65472011-06-09 11:11:49 -07002711# Check whether to build debug libraries
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
2713$as_echo_n "checking whether to build debug libraries... " >&6; }
2714enabled=no
2715ENABLE_DEBUG=0
2716# Check whether --enable-debug was given.
2717if test "${enable_debug+set}" = set; then :
2718 enableval=$enable_debug; case "${enableval}" in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002719 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
claireho27f65472011-06-09 11:11:49 -07002720 *) ;;
2721 esac
2722fi
2723
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2725$as_echo "$enabled" >&6; }
2726
2727
2728# Check whether to build release libraries
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
2730$as_echo_n "checking whether to build release libraries... " >&6; }
2731enabled=yes
2732ENABLE_RELEASE=1
2733# Check whether --enable-release was given.
2734if test "${enable_release+set}" = set; then :
2735 enableval=$enable_release; case "${enableval}" in
2736 no) enabled=no; ENABLE_RELEASE=0 ;;
2737 *) ;;
2738 esac
2739fi
2740
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2742$as_echo "$enabled" >&6; }
2743
2744
2745# Don't use the default C/CXXFLags
2746: ${CFLAGS=""}
2747: ${CXXFLAGS=""}
2748
Claire Ho85bf2e22009-11-24 14:23:02 -08002749# Checks for programs
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002750ac_ext=c
2751ac_cpp='$CPP $CPPFLAGS'
2752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2757set dummy ${ac_tool_prefix}gcc; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07002758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002759$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002760if ${ac_cv_prog_CC+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002761 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002762else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07002771 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08002772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002773 ac_cv_prog_CC="${ac_tool_prefix}gcc"
claireho27f65472011-06-09 11:11:49 -07002774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002775 break 2
2776 fi
2777done
claireho27f65472011-06-09 11:11:49 -07002778 done
Claire Ho85bf2e22009-11-24 14:23:02 -08002779IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002780
2781fi
2782fi
2783CC=$ac_cv_prog_CC
2784if test -n "$CC"; then
claireho27f65472011-06-09 11:11:49 -07002785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002786$as_echo "$CC" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002787else
claireho27f65472011-06-09 11:11:49 -07002788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002789$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002790fi
2791
Claire Ho85bf2e22009-11-24 14:23:02 -08002792
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002793fi
2794if test -z "$ac_cv_prog_CC"; then
2795 ac_ct_CC=$CC
2796 # Extract the first word of "gcc", so it can be a program name with args.
2797set dummy gcc; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07002798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002799$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002800if ${ac_cv_prog_ac_ct_CC+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002801 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002802else
2803 if test -n "$ac_ct_CC"; then
2804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07002811 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08002812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002813 ac_cv_prog_ac_ct_CC="gcc"
claireho27f65472011-06-09 11:11:49 -07002814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002815 break 2
2816 fi
2817done
claireho27f65472011-06-09 11:11:49 -07002818 done
Claire Ho85bf2e22009-11-24 14:23:02 -08002819IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
claireho27f65472011-06-09 11:11:49 -07002825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002826$as_echo "$ac_ct_CC" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002827else
claireho27f65472011-06-09 11:11:49 -07002828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002829$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002830fi
2831
Claire Ho85bf2e22009-11-24 14:23:02 -08002832 if test "x$ac_ct_CC" = x; then
2833 CC=""
2834 else
2835 case $cross_compiling:$ac_tool_warned in
2836yes:)
claireho27f65472011-06-09 11:11:49 -07002837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839ac_tool_warned=yes ;;
2840esac
2841 CC=$ac_ct_CC
2842 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002843else
2844 CC="$ac_cv_prog_CC"
2845fi
2846
2847if test -z "$CC"; then
Claire Ho85bf2e22009-11-24 14:23:02 -08002848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002850set dummy ${ac_tool_prefix}cc; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07002851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002852$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002853if ${ac_cv_prog_CC+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002854 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002855else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07002864 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08002865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002866 ac_cv_prog_CC="${ac_tool_prefix}cc"
claireho27f65472011-06-09 11:11:49 -07002867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002868 break 2
2869 fi
2870done
claireho27f65472011-06-09 11:11:49 -07002871 done
Claire Ho85bf2e22009-11-24 14:23:02 -08002872IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002873
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
claireho27f65472011-06-09 11:11:49 -07002878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002879$as_echo "$CC" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002880else
claireho27f65472011-06-09 11:11:49 -07002881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002882$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002883fi
2884
Claire Ho85bf2e22009-11-24 14:23:02 -08002885
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002886 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002887fi
2888if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890set dummy cc; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07002891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002892$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002893if ${ac_cv_prog_CC+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002894 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002895else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898else
2899 ac_prog_rejected=no
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07002905 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08002906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected=yes
2909 continue
2910 fi
2911 ac_cv_prog_CC="cc"
claireho27f65472011-06-09 11:11:49 -07002912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002913 break 2
2914 fi
2915done
claireho27f65472011-06-09 11:11:49 -07002916 done
Claire Ho85bf2e22009-11-24 14:23:02 -08002917IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002918
2919if test $ac_prog_rejected = yes; then
2920 # We found a bogon in the path, so make sure we never use it.
2921 set dummy $ac_cv_prog_CC
2922 shift
2923 if test $# != 0; then
2924 # We chose a different compiler from the bogus one.
2925 # However, it has the same basename, so the bogon will be chosen
2926 # first if we set CC to just the basename; use the full file name.
2927 shift
2928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2929 fi
2930fi
2931fi
2932fi
2933CC=$ac_cv_prog_CC
2934if test -n "$CC"; then
claireho27f65472011-06-09 11:11:49 -07002935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002936$as_echo "$CC" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002937else
claireho27f65472011-06-09 11:11:49 -07002938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002939$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002940fi
2941
Claire Ho85bf2e22009-11-24 14:23:02 -08002942
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002943fi
2944if test -z "$CC"; then
2945 if test -n "$ac_tool_prefix"; then
Claire Ho85bf2e22009-11-24 14:23:02 -08002946 for ac_prog in cl.exe
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002947 do
2948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2949set dummy $ac_tool_prefix$ac_prog; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07002950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002951$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002952if ${ac_cv_prog_CC+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002953 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002954else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07002963 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08002964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
claireho27f65472011-06-09 11:11:49 -07002966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002967 break 2
2968 fi
2969done
claireho27f65472011-06-09 11:11:49 -07002970 done
Claire Ho85bf2e22009-11-24 14:23:02 -08002971IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002972
2973fi
2974fi
2975CC=$ac_cv_prog_CC
2976if test -n "$CC"; then
claireho27f65472011-06-09 11:11:49 -07002977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002978$as_echo "$CC" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002979else
claireho27f65472011-06-09 11:11:49 -07002980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002981$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002982fi
2983
Claire Ho85bf2e22009-11-24 14:23:02 -08002984
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002985 test -n "$CC" && break
2986 done
2987fi
2988if test -z "$CC"; then
2989 ac_ct_CC=$CC
Claire Ho85bf2e22009-11-24 14:23:02 -08002990 for ac_prog in cl.exe
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002991do
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993set dummy $ac_prog; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07002994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08002995$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07002996if ${ac_cv_prog_ac_ct_CC+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08002997 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07002998else
2999 if test -n "$ac_ct_CC"; then
3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07003007 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08003008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003009 ac_cv_prog_ac_ct_CC="$ac_prog"
claireho27f65472011-06-09 11:11:49 -07003010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003011 break 2
3012 fi
3013done
claireho27f65472011-06-09 11:11:49 -07003014 done
Claire Ho85bf2e22009-11-24 14:23:02 -08003015IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003016
3017fi
3018fi
3019ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020if test -n "$ac_ct_CC"; then
claireho27f65472011-06-09 11:11:49 -07003021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003022$as_echo "$ac_ct_CC" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003023else
claireho27f65472011-06-09 11:11:49 -07003024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003025$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003026fi
3027
Claire Ho85bf2e22009-11-24 14:23:02 -08003028
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003029 test -n "$ac_ct_CC" && break
3030done
3031
Claire Ho85bf2e22009-11-24 14:23:02 -08003032 if test "x$ac_ct_CC" = x; then
3033 CC=""
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036yes:)
claireho27f65472011-06-09 11:11:49 -07003037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039ac_tool_warned=yes ;;
3040esac
3041 CC=$ac_ct_CC
3042 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003043fi
3044
3045fi
3046
3047
claireho27f65472011-06-09 11:11:49 -07003048test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07003050as_fn_error $? "no acceptable C compiler found in \$PATH
3051See \`config.log' for more details" "$LINENO" 5; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003052
3053# Provide some information about the compiler.
claireho27f65472011-06-09 11:11:49 -07003054$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003055set X $ac_compile
3056ac_compiler=$2
claireho27f65472011-06-09 11:11:49 -07003057for ac_option in --version -v -V -qversion; do
3058 { { ac_try="$ac_compiler $ac_option >&5"
Claire Ho85bf2e22009-11-24 14:23:02 -08003059case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
claireho27f65472011-06-09 11:11:49 -07003063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064$as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003066 ac_status=$?
claireho27f65472011-06-09 11:11:49 -07003067 if test -s conftest.err; then
3068 sed '10a\
3069... rest of stderr output deleted ...
3070 10q' conftest.err >conftest.er1
3071 cat conftest.er1 >&5
3072 fi
3073 rm -f conftest.er1 conftest.err
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }
3076done
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003077
claireho27f65472011-06-09 11:11:49 -07003078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003079/* end confdefs.h. */
3080
3081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089ac_clean_files_save=$ac_clean_files
Claire Ho85bf2e22009-11-24 14:23:02 -08003090ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003091# Try to create an executable without -o first, disregard a.out.
3092# It will help us diagnose broken compilers, and finding out an intuition
3093# of exeext.
claireho27f65472011-06-09 11:11:49 -07003094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3095$as_echo_n "checking whether the C compiler works... " >&6; }
Claire Ho85bf2e22009-11-24 14:23:02 -08003096ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003097
Claire Ho85bf2e22009-11-24 14:23:02 -08003098# The possible output files:
3099ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3100
3101ac_rmfiles=
3102for ac_file in $ac_files
3103do
3104 case $ac_file in
3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3106 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3107 esac
3108done
3109rm -f $ac_rmfiles
3110
claireho27f65472011-06-09 11:11:49 -07003111if { { ac_try="$ac_link_default"
Claire Ho85bf2e22009-11-24 14:23:02 -08003112case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
claireho27f65472011-06-09 11:11:49 -07003116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003118 (eval "$ac_link_default") 2>&5
3119 ac_status=$?
claireho27f65472011-06-09 11:11:49 -07003120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003122 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3123# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3124# in a Makefile. We should not override ac_cv_exeext if it was cached,
3125# so that the user can short-circuit this test for compilers unknown to
3126# Autoconf.
3127for ac_file in $ac_files ''
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003128do
3129 test -f "$ac_file" || continue
3130 case $ac_file in
Claire Ho85bf2e22009-11-24 14:23:02 -08003131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003132 ;;
3133 [ab].out )
3134 # We found the default executable, but exeext='' is most
3135 # certainly right.
3136 break;;
3137 *.* )
claireho27f65472011-06-09 11:11:49 -07003138 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Claire Ho85bf2e22009-11-24 14:23:02 -08003139 then :; else
3140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 fi
3142 # We set ac_cv_exeext here because the later test for it is not
3143 # safe: cross compilers may not add the suffix if given an `-o'
3144 # argument, so we may need to know it at that point already.
3145 # Even if this section looks crufty: it has the advantage of
3146 # actually working.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003147 break;;
3148 * )
3149 break;;
3150 esac
3151done
Claire Ho85bf2e22009-11-24 14:23:02 -08003152test "$ac_cv_exeext" = no && ac_cv_exeext=
3153
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003154else
Claire Ho85bf2e22009-11-24 14:23:02 -08003155 ac_file=''
3156fi
claireho27f65472011-06-09 11:11:49 -07003157if test -z "$ac_file"; then :
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160$as_echo "$as_me: failed program was:" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003161sed 's/^/| /' conftest.$ac_ext >&5
3162
claireho27f65472011-06-09 11:11:49 -07003163{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07003165as_fn_error 77 "C compiler cannot create executables
3166See \`config.log' for more details" "$LINENO" 5; }
3167else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003169$as_echo "yes" >&6; }
claireho27f65472011-06-09 11:11:49 -07003170fi
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3172$as_echo_n "checking for C compiler default output file name... " >&6; }
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3174$as_echo "$ac_file" >&6; }
3175ac_exeext=$ac_cv_exeext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003176
Claire Ho85bf2e22009-11-24 14:23:02 -08003177rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003178ac_clean_files=$ac_clean_files_save
claireho27f65472011-06-09 11:11:49 -07003179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003180$as_echo_n "checking for suffix of executables... " >&6; }
claireho27f65472011-06-09 11:11:49 -07003181if { { ac_try="$ac_link"
Claire Ho85bf2e22009-11-24 14:23:02 -08003182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
claireho27f65472011-06-09 11:11:49 -07003186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003188 (eval "$ac_link") 2>&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003189 ac_status=$?
claireho27f65472011-06-09 11:11:49 -07003190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3193# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3194# work properly (i.e., refer to `conftest.exe'), while it won't with
3195# `rm'.
3196for ac_file in conftest.exe conftest conftest.*; do
3197 test -f "$ac_file" || continue
3198 case $ac_file in
Claire Ho85bf2e22009-11-24 14:23:02 -08003199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003201 break;;
3202 * ) break;;
3203 esac
3204done
3205else
claireho27f65472011-06-09 11:11:49 -07003206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07003208as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3209See \`config.log' for more details" "$LINENO" 5; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003210fi
claireho27f65472011-06-09 11:11:49 -07003211rm -f conftest conftest$ac_cv_exeext
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003213$as_echo "$ac_cv_exeext" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003214
3215rm -f conftest.$ac_ext
3216EXEEXT=$ac_cv_exeext
3217ac_exeext=$EXEEXT
claireho27f65472011-06-09 11:11:49 -07003218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219/* end confdefs.h. */
3220#include <stdio.h>
3221int
3222main ()
3223{
3224FILE *f = fopen ("conftest.out", "w");
3225 return ferror (f) || fclose (f) != 0;
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
3231ac_clean_files="$ac_clean_files conftest.out"
3232# Check that the compiler produces executables we can run. If not, either
3233# the compiler is broken, or we cross compile.
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235$as_echo_n "checking whether we are cross compiling... " >&6; }
3236if test "$cross_compiling" != yes; then
3237 { { ac_try="$ac_link"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }
3248 if { ac_try='./conftest$ac_cv_exeext'
3249 { { case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254$as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_try") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; }; then
3259 cross_compiling=no
3260 else
3261 if test "$cross_compiling" = maybe; then
3262 cross_compiling=yes
3263 else
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266as_fn_error $? "cannot run C compiled programs.
3267If you meant to cross compile, use \`--host'.
3268See \`config.log' for more details" "$LINENO" 5; }
3269 fi
3270 fi
3271fi
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3273$as_echo "$cross_compiling" >&6; }
3274
3275rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3276ac_clean_files=$ac_clean_files_save
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003278$as_echo_n "checking for suffix of object files... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003279if ${ac_cv_objext+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003280 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003281else
claireho27f65472011-06-09 11:11:49 -07003282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003283/* end confdefs.h. */
3284
3285int
3286main ()
3287{
3288
3289 ;
3290 return 0;
3291}
3292_ACEOF
3293rm -f conftest.o conftest.obj
claireho27f65472011-06-09 11:11:49 -07003294if { { ac_try="$ac_compile"
Claire Ho85bf2e22009-11-24 14:23:02 -08003295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
claireho27f65472011-06-09 11:11:49 -07003299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003301 (eval "$ac_compile") 2>&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003302 ac_status=$?
claireho27f65472011-06-09 11:11:49 -07003303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003305 for ac_file in conftest.o conftest.obj conftest.*; do
3306 test -f "$ac_file" || continue;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003307 case $ac_file in
Claire Ho85bf2e22009-11-24 14:23:02 -08003308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3310 break;;
3311 esac
3312done
3313else
Claire Ho85bf2e22009-11-24 14:23:02 -08003314 $as_echo "$as_me: failed program was:" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003315sed 's/^/| /' conftest.$ac_ext >&5
3316
claireho27f65472011-06-09 11:11:49 -07003317{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07003319as_fn_error $? "cannot compute suffix of object files: cannot compile
3320See \`config.log' for more details" "$LINENO" 5; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003321fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003322rm -f conftest.$ac_cv_objext conftest.$ac_ext
3323fi
claireho27f65472011-06-09 11:11:49 -07003324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003325$as_echo "$ac_cv_objext" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003326OBJEXT=$ac_cv_objext
3327ac_objext=$OBJEXT
claireho27f65472011-06-09 11:11:49 -07003328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003329$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003330if ${ac_cv_c_compiler_gnu+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003331 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003332else
claireho27f65472011-06-09 11:11:49 -07003333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003334/* end confdefs.h. */
3335
3336int
3337main ()
3338{
3339#ifndef __GNUC__
3340 choke me
3341#endif
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
claireho27f65472011-06-09 11:11:49 -07003347if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003348 ac_compiler_gnu=yes
3349else
claireho27f65472011-06-09 11:11:49 -07003350 ac_compiler_gnu=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003351fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003353ac_cv_c_compiler_gnu=$ac_compiler_gnu
3354
3355fi
claireho27f65472011-06-09 11:11:49 -07003356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003357$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3358if test $ac_compiler_gnu = yes; then
3359 GCC=yes
3360else
3361 GCC=
3362fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003363ac_test_CFLAGS=${CFLAGS+set}
3364ac_save_CFLAGS=$CFLAGS
claireho27f65472011-06-09 11:11:49 -07003365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003366$as_echo_n "checking whether $CC accepts -g... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003367if ${ac_cv_prog_cc_g+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003368 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003369else
Claire Ho85bf2e22009-11-24 14:23:02 -08003370 ac_save_c_werror_flag=$ac_c_werror_flag
3371 ac_c_werror_flag=yes
3372 ac_cv_prog_cc_g=no
3373 CFLAGS="-g"
claireho27f65472011-06-09 11:11:49 -07003374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003375/* end confdefs.h. */
3376
3377int
3378main ()
3379{
3380
3381 ;
3382 return 0;
3383}
3384_ACEOF
claireho27f65472011-06-09 11:11:49 -07003385if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003386 ac_cv_prog_cc_g=yes
3387else
claireho27f65472011-06-09 11:11:49 -07003388 CFLAGS=""
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003390/* end confdefs.h. */
3391
3392int
3393main ()
3394{
3395
3396 ;
3397 return 0;
3398}
3399_ACEOF
claireho27f65472011-06-09 11:11:49 -07003400if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003401
claireho27f65472011-06-09 11:11:49 -07003402else
3403 ac_c_werror_flag=$ac_save_c_werror_flag
Claire Ho85bf2e22009-11-24 14:23:02 -08003404 CFLAGS="-g"
claireho27f65472011-06-09 11:11:49 -07003405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003406/* end confdefs.h. */
3407
3408int
3409main ()
3410{
3411
3412 ;
3413 return 0;
3414}
3415_ACEOF
claireho27f65472011-06-09 11:11:49 -07003416if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003417 ac_cv_prog_cc_g=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003418fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003420fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3425fi
claireho27f65472011-06-09 11:11:49 -07003426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003427$as_echo "$ac_cv_prog_cc_g" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003428if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS=$ac_save_CFLAGS
3430elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3432 CFLAGS="-g -O2"
3433 else
3434 CFLAGS="-g"
3435 fi
3436else
3437 if test "$GCC" = yes; then
3438 CFLAGS="-O2"
3439 else
3440 CFLAGS=
3441 fi
3442fi
claireho27f65472011-06-09 11:11:49 -07003443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003444$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003445if ${ac_cv_prog_cc_c89+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003446 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003447else
Claire Ho85bf2e22009-11-24 14:23:02 -08003448 ac_cv_prog_cc_c89=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003449ac_save_CC=$CC
claireho27f65472011-06-09 11:11:49 -07003450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003451/* end confdefs.h. */
3452#include <stdarg.h>
3453#include <stdio.h>
3454#include <sys/types.h>
3455#include <sys/stat.h>
3456/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3457struct buf { int x; };
3458FILE * (*rcsopen) (struct buf *, struct stat *, int);
3459static char *e (p, i)
3460 char **p;
3461 int i;
3462{
3463 return p[i];
3464}
3465static char *f (char * (*g) (char **, int), char **p, ...)
3466{
3467 char *s;
3468 va_list v;
3469 va_start (v,p);
3470 s = g (p, va_arg (v,int));
3471 va_end (v);
3472 return s;
3473}
3474
3475/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3476 function prototypes and stuff, but not '\xHH' hex character constants.
3477 These don't provoke an error unfortunately, instead are silently treated
Claire Ho85bf2e22009-11-24 14:23:02 -08003478 as 'x'. The following induces an error, until -std is added to get
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3480 array size at least. It's necessary to write '\x00'==0 to get something
Claire Ho85bf2e22009-11-24 14:23:02 -08003481 that's true only with -std. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003482int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483
Claire Ho85bf2e22009-11-24 14:23:02 -08003484/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3485 inside strings and character constants. */
3486#define FOO(x) 'x'
3487int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3488
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003489int test (int i, double x);
3490struct s1 {int (*f) (int a);};
3491struct s2 {int (*f) (double a);};
3492int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3493int argc;
3494char **argv;
3495int
3496main ()
3497{
3498return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3499 ;
3500 return 0;
3501}
3502_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08003503for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003505do
3506 CC="$ac_save_CC $ac_arg"
claireho27f65472011-06-09 11:11:49 -07003507 if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003508 ac_cv_prog_cc_c89=$ac_arg
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003509fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003510rm -f core conftest.err conftest.$ac_objext
3511 test "x$ac_cv_prog_cc_c89" != "xno" && break
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003512done
Claire Ho85bf2e22009-11-24 14:23:02 -08003513rm -f conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003514CC=$ac_save_CC
3515
3516fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003517# AC_CACHE_VAL
3518case "x$ac_cv_prog_cc_c89" in
3519 x)
claireho27f65472011-06-09 11:11:49 -07003520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003521$as_echo "none needed" >&6; } ;;
3522 xno)
claireho27f65472011-06-09 11:11:49 -07003523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003524$as_echo "unsupported" >&6; } ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003525 *)
Claire Ho85bf2e22009-11-24 14:23:02 -08003526 CC="$CC $ac_cv_prog_cc_c89"
claireho27f65472011-06-09 11:11:49 -07003527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003528$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003529esac
claireho27f65472011-06-09 11:11:49 -07003530if test "x$ac_cv_prog_cc_c89" != xno; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003531
claireho27f65472011-06-09 11:11:49 -07003532fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003533
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
Claire Ho85bf2e22009-11-24 14:23:02 -08003540ac_ext=cpp
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003541ac_cpp='$CXXCPP $CPPFLAGS'
3542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Claire Ho85bf2e22009-11-24 14:23:02 -08003545if test -z "$CXX"; then
3546 if test -n "$CCC"; then
3547 CXX=$CCC
3548 else
3549 if test -n "$ac_tool_prefix"; then
3550 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003551 do
3552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3553set dummy $ac_tool_prefix$ac_prog; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07003554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003555$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003556if ${ac_cv_prog_CXX+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003557 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003558else
3559 if test -n "$CXX"; then
3560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3561else
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07003567 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08003568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003569 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
claireho27f65472011-06-09 11:11:49 -07003570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003571 break 2
3572 fi
3573done
claireho27f65472011-06-09 11:11:49 -07003574 done
Claire Ho85bf2e22009-11-24 14:23:02 -08003575IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003576
3577fi
3578fi
3579CXX=$ac_cv_prog_CXX
3580if test -n "$CXX"; then
claireho27f65472011-06-09 11:11:49 -07003581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003582$as_echo "$CXX" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003583else
claireho27f65472011-06-09 11:11:49 -07003584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003585$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003586fi
3587
Claire Ho85bf2e22009-11-24 14:23:02 -08003588
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003589 test -n "$CXX" && break
3590 done
3591fi
3592if test -z "$CXX"; then
3593 ac_ct_CXX=$CXX
Claire Ho85bf2e22009-11-24 14:23:02 -08003594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003595do
3596 # Extract the first word of "$ac_prog", so it can be a program name with args.
3597set dummy $ac_prog; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07003598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003599$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003600if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003601 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003602else
3603 if test -n "$ac_ct_CXX"; then
3604 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3605else
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07003611 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08003612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003613 ac_cv_prog_ac_ct_CXX="$ac_prog"
claireho27f65472011-06-09 11:11:49 -07003614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003615 break 2
3616 fi
3617done
claireho27f65472011-06-09 11:11:49 -07003618 done
Claire Ho85bf2e22009-11-24 14:23:02 -08003619IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003620
3621fi
3622fi
3623ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3624if test -n "$ac_ct_CXX"; then
claireho27f65472011-06-09 11:11:49 -07003625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003626$as_echo "$ac_ct_CXX" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003627else
claireho27f65472011-06-09 11:11:49 -07003628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003629$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003630fi
3631
Claire Ho85bf2e22009-11-24 14:23:02 -08003632
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003633 test -n "$ac_ct_CXX" && break
3634done
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003635
Claire Ho85bf2e22009-11-24 14:23:02 -08003636 if test "x$ac_ct_CXX" = x; then
3637 CXX="g++"
3638 else
3639 case $cross_compiling:$ac_tool_warned in
3640yes:)
claireho27f65472011-06-09 11:11:49 -07003641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3643ac_tool_warned=yes ;;
3644esac
3645 CXX=$ac_ct_CXX
3646 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003647fi
3648
Claire Ho85bf2e22009-11-24 14:23:02 -08003649 fi
3650fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003651# Provide some information about the compiler.
claireho27f65472011-06-09 11:11:49 -07003652$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003653set X $ac_compile
3654ac_compiler=$2
claireho27f65472011-06-09 11:11:49 -07003655for ac_option in --version -v -V -qversion; do
3656 { { ac_try="$ac_compiler $ac_option >&5"
Claire Ho85bf2e22009-11-24 14:23:02 -08003657case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660esac
claireho27f65472011-06-09 11:11:49 -07003661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662$as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003664 ac_status=$?
claireho27f65472011-06-09 11:11:49 -07003665 if test -s conftest.err; then
3666 sed '10a\
3667... rest of stderr output deleted ...
3668 10q' conftest.err >conftest.er1
3669 cat conftest.er1 >&5
3670 fi
3671 rm -f conftest.er1 conftest.err
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }
3674done
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003675
claireho27f65472011-06-09 11:11:49 -07003676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003677$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003678if ${ac_cv_cxx_compiler_gnu+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003679 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003680else
claireho27f65472011-06-09 11:11:49 -07003681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687#ifndef __GNUC__
3688 choke me
3689#endif
3690
3691 ;
3692 return 0;
3693}
3694_ACEOF
claireho27f65472011-06-09 11:11:49 -07003695if ac_fn_cxx_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003696 ac_compiler_gnu=yes
3697else
claireho27f65472011-06-09 11:11:49 -07003698 ac_compiler_gnu=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003699fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003701ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3702
3703fi
claireho27f65472011-06-09 11:11:49 -07003704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003705$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3706if test $ac_compiler_gnu = yes; then
3707 GXX=yes
3708else
3709 GXX=
3710fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003711ac_test_CXXFLAGS=${CXXFLAGS+set}
3712ac_save_CXXFLAGS=$CXXFLAGS
claireho27f65472011-06-09 11:11:49 -07003713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003714$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003715if ${ac_cv_prog_cxx_g+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003716 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003717else
Claire Ho85bf2e22009-11-24 14:23:02 -08003718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3719 ac_cxx_werror_flag=yes
3720 ac_cv_prog_cxx_g=no
3721 CXXFLAGS="-g"
claireho27f65472011-06-09 11:11:49 -07003722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003723/* end confdefs.h. */
3724
3725int
3726main ()
3727{
3728
3729 ;
3730 return 0;
3731}
3732_ACEOF
claireho27f65472011-06-09 11:11:49 -07003733if ac_fn_cxx_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003734 ac_cv_prog_cxx_g=yes
3735else
claireho27f65472011-06-09 11:11:49 -07003736 CXXFLAGS=""
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003738/* end confdefs.h. */
3739
3740int
3741main ()
3742{
3743
3744 ;
3745 return 0;
3746}
3747_ACEOF
claireho27f65472011-06-09 11:11:49 -07003748if ac_fn_cxx_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003749
claireho27f65472011-06-09 11:11:49 -07003750else
3751 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Claire Ho85bf2e22009-11-24 14:23:02 -08003752 CXXFLAGS="-g"
claireho27f65472011-06-09 11:11:49 -07003753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003754/* end confdefs.h. */
3755
3756int
3757main ()
3758{
3759
3760 ;
3761 return 0;
3762}
3763_ACEOF
claireho27f65472011-06-09 11:11:49 -07003764if ac_fn_cxx_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003765 ac_cv_prog_cxx_g=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003766fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003768fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3773fi
claireho27f65472011-06-09 11:11:49 -07003774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003775$as_echo "$ac_cv_prog_cxx_g" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003776if test "$ac_test_CXXFLAGS" = set; then
3777 CXXFLAGS=$ac_save_CXXFLAGS
3778elif test $ac_cv_prog_cxx_g = yes; then
3779 if test "$GXX" = yes; then
3780 CXXFLAGS="-g -O2"
3781 else
3782 CXXFLAGS="-g"
3783 fi
3784else
3785 if test "$GXX" = yes; then
3786 CXXFLAGS="-O2"
3787 else
3788 CXXFLAGS=
3789 fi
3790fi
Claire Ho85bf2e22009-11-24 14:23:02 -08003791ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
claireho27f65472011-06-09 11:11:49 -07003797
3798# Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
3799# The release mode use is the default one for autoconf
3800if test "$GCC" = yes; then
3801 if test "$CFLAGS" = ""; then
3802 if test "$ENABLE_DEBUG" = 1; then
3803 CFLAGS=-g
3804 fi
3805 if test "$ENABLE_RELEASE" = 1; then
3806 CFLAGS="$CFLAGS -O2"
3807 fi
3808 fi
3809 if test "$CXXFLAGS" = ""; then
3810 if test "$ENABLE_DEBUG" = 1; then
3811 CXXFLAGS=-g
3812 fi
3813 if test "$ENABLE_RELEASE" = 1; then
3814 CXXFLAGS="$CXXFLAGS -O2"
3815 fi
3816 fi
3817fi
3818
Claire Ho85bf2e22009-11-24 14:23:02 -08003819ac_ext=c
3820ac_cpp='$CPP $CPPFLAGS'
3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823ac_compiler_gnu=$ac_cv_c_compiler_gnu
claireho27f65472011-06-09 11:11:49 -07003824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003825$as_echo_n "checking how to run the C preprocessor... " >&6; }
3826# On Suns, sometimes $CPP names a directory.
3827if test -n "$CPP" && test -d "$CPP"; then
3828 CPP=
3829fi
3830if test -z "$CPP"; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003831 if ${ac_cv_prog_CPP+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003832 $as_echo_n "(cached) " >&6
3833else
3834 # Double quotes because CPP needs to be expanded
3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3836 do
3837 ac_preproc_ok=false
3838for ac_c_preproc_warn_flag in '' yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003839do
Claire Ho85bf2e22009-11-24 14:23:02 -08003840 # Use a header file that comes with gcc, so configuring glibc
3841 # with a fresh cross-compiler works.
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843 # <limits.h> exists even on freestanding compilers.
3844 # On the NeXT, cc -E runs the code through the compiler's parser,
3845 # not just through cpp. "Syntax error" is here to catch this case.
claireho27f65472011-06-09 11:11:49 -07003846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003847/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08003848#ifdef __STDC__
3849# include <limits.h>
3850#else
3851# include <assert.h>
3852#endif
3853 Syntax error
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003854_ACEOF
claireho27f65472011-06-09 11:11:49 -07003855if ac_fn_c_try_cpp "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003856
claireho27f65472011-06-09 11:11:49 -07003857else
Claire Ho85bf2e22009-11-24 14:23:02 -08003858 # Broken: fails on valid input.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003859continue
3860fi
claireho27f65472011-06-09 11:11:49 -07003861rm -f conftest.err conftest.i conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003862
3863 # OK, works on sane cases. Now check whether nonexistent headers
3864 # can be detected and how.
claireho27f65472011-06-09 11:11:49 -07003865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003866/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08003867#include <ac_nonexistent.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003868_ACEOF
claireho27f65472011-06-09 11:11:49 -07003869if ac_fn_c_try_cpp "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003870 # Broken: success on invalid input.
3871continue
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003872else
Claire Ho85bf2e22009-11-24 14:23:02 -08003873 # Passes both tests.
3874ac_preproc_ok=:
3875break
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003876fi
claireho27f65472011-06-09 11:11:49 -07003877rm -f conftest.err conftest.i conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003878
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003879done
Claire Ho85bf2e22009-11-24 14:23:02 -08003880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
claireho27f65472011-06-09 11:11:49 -07003881rm -f conftest.i conftest.err conftest.$ac_ext
3882if $ac_preproc_ok; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003883 break
3884fi
3885
3886 done
3887 ac_cv_prog_CPP=$CPP
3888
3889fi
3890 CPP=$ac_cv_prog_CPP
3891else
3892 ac_cv_prog_CPP=$CPP
3893fi
claireho27f65472011-06-09 11:11:49 -07003894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003895$as_echo "$CPP" >&6; }
3896ac_preproc_ok=false
3897for ac_c_preproc_warn_flag in '' yes
3898do
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
claireho27f65472011-06-09 11:11:49 -07003905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003906/* end confdefs.h. */
3907#ifdef __STDC__
3908# include <limits.h>
3909#else
3910# include <assert.h>
3911#endif
3912 Syntax error
3913_ACEOF
claireho27f65472011-06-09 11:11:49 -07003914if ac_fn_c_try_cpp "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003915
claireho27f65472011-06-09 11:11:49 -07003916else
Claire Ho85bf2e22009-11-24 14:23:02 -08003917 # Broken: fails on valid input.
3918continue
3919fi
claireho27f65472011-06-09 11:11:49 -07003920rm -f conftest.err conftest.i conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003921
3922 # OK, works on sane cases. Now check whether nonexistent headers
3923 # can be detected and how.
claireho27f65472011-06-09 11:11:49 -07003924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003925/* end confdefs.h. */
3926#include <ac_nonexistent.h>
3927_ACEOF
claireho27f65472011-06-09 11:11:49 -07003928if ac_fn_c_try_cpp "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003929 # Broken: success on invalid input.
3930continue
3931else
Claire Ho85bf2e22009-11-24 14:23:02 -08003932 # Passes both tests.
3933ac_preproc_ok=:
3934break
3935fi
claireho27f65472011-06-09 11:11:49 -07003936rm -f conftest.err conftest.i conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08003937
3938done
3939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
claireho27f65472011-06-09 11:11:49 -07003940rm -f conftest.i conftest.err conftest.$ac_ext
3941if $ac_preproc_ok; then :
3942
Claire Ho85bf2e22009-11-24 14:23:02 -08003943else
claireho27f65472011-06-09 11:11:49 -07003944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07003946as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3947See \`config.log' for more details" "$LINENO" 5; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003948fi
3949
3950ac_ext=c
3951ac_cpp='$CPP $CPPFLAGS'
3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
claireho50294ea2010-05-03 15:44:48 -07003956
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003957# Find a good install program. We prefer a C program (faster),
3958# so one script is as good as another. But avoid the broken or
3959# incompatible versions:
3960# SysV /etc/install, /usr/sbin/install
3961# SunOS /usr/etc/install
3962# IRIX /sbin/install
3963# AIX /bin/install
3964# AmigaOS /C/install, which installs bootblocks on floppy discs
3965# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3966# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3967# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3968# OS/2's system install, which has a completely different semantic
3969# ./install, which can be erroneously created by make from ./install.sh.
Claire Ho85bf2e22009-11-24 14:23:02 -08003970# Reject install programs that cannot install multiple files.
claireho27f65472011-06-09 11:11:49 -07003971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08003972$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003973if test -z "$INSTALL"; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07003974if ${ac_cv_path_install+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08003975 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003976else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07003982 # Account for people who put trailing slashes in PATH elements.
3983case $as_dir/ in #((
3984 ./ | .// | /[cC]/* | \
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003985 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
claireho27f65472011-06-09 11:11:49 -07003986 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003987 /usr/ucb/* ) ;;
3988 *)
3989 # OSF1 and SCO ODT 3.0 have their own names for install.
3990 # Don't use installbsd from OSF since it installs stuff as root
3991 # by default.
3992 for ac_prog in ginstall scoinst install; do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08003994 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003995 if test $ac_prog = install &&
3996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3997 # AIX install. It has an incompatible calling convention.
3998 :
3999 elif test $ac_prog = install &&
4000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4001 # program-specific install script used by HP pwplus--don't use.
4002 :
4003 else
Claire Ho85bf2e22009-11-24 14:23:02 -08004004 rm -rf conftest.one conftest.two conftest.dir
4005 echo one > conftest.one
4006 echo two > conftest.two
4007 mkdir conftest.dir
4008 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4009 test -s conftest.one && test -s conftest.two &&
4010 test -s conftest.dir/conftest.one &&
4011 test -s conftest.dir/conftest.two
4012 then
4013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4014 break 3
4015 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004016 fi
4017 fi
4018 done
4019 done
4020 ;;
4021esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004022
claireho27f65472011-06-09 11:11:49 -07004023 done
Claire Ho85bf2e22009-11-24 14:23:02 -08004024IFS=$as_save_IFS
4025
4026rm -rf conftest.one conftest.two conftest.dir
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004027
4028fi
4029 if test "${ac_cv_path_install+set}" = set; then
4030 INSTALL=$ac_cv_path_install
4031 else
Claire Ho85bf2e22009-11-24 14:23:02 -08004032 # As a last resort, use the slow shell script. Don't cache a
4033 # value for INSTALL within a source directory, because that will
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004034 # break other packages using the cache if that directory is
Claire Ho85bf2e22009-11-24 14:23:02 -08004035 # removed, or if the value is a relative name.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004036 INSTALL=$ac_install_sh
4037 fi
4038fi
claireho27f65472011-06-09 11:11:49 -07004039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004040$as_echo "$INSTALL" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004041
4042# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4043# It thinks the first close brace ends the variable substitution.
4044test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4045
4046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4047
4048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4049
4050
Claire Ho85bf2e22009-11-24 14:23:02 -08004051
4052
claireho27f65472011-06-09 11:11:49 -07004053ac_ext=cpp
4054ac_cpp='$CXXCPP $CPPFLAGS'
4055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4058
4059
4060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h. */
4062
4063int
4064main ()
4065{
4066
4067 ;
4068 return 0;
4069}
4070_ACEOF
4071if ac_fn_cxx_try_link "$LINENO"; then :
4072
4073fi
4074rm -f core conftest.err conftest.$ac_objext \
4075 conftest$ac_exeext conftest.$ac_ext
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081
4082
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004083# make sure install is relative to srcdir - if a script
4084if test "$srcdir" = "."; then
4085 # If srcdir isn't just ., then (srcdir) is already prepended.
4086 if test "${ac_install_sh}" = "${INSTALL}"; then
4087 INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
4088 fi
4089fi
4090
4091#AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
4092#AC_CHECK_PROG(STRIP, strip, strip, true)
4093
Claire Ho85bf2e22009-11-24 14:23:02 -08004094# Check for the platform make
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004095for ac_prog in gmake gnumake
4096do
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098set dummy $ac_prog; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07004099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004100$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07004101if ${ac_cv_path_U_MAKE+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004102 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004103else
4104 case $U_MAKE in
4105 [\\/]* | ?:[\\/]*)
4106 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path.
4107 ;;
4108 *)
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07004114 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08004115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004116 ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext"
claireho27f65472011-06-09 11:11:49 -07004117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004118 break 2
4119 fi
4120done
claireho27f65472011-06-09 11:11:49 -07004121 done
Claire Ho85bf2e22009-11-24 14:23:02 -08004122IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004123
4124 ;;
4125esac
4126fi
4127U_MAKE=$ac_cv_path_U_MAKE
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004128if test -n "$U_MAKE"; then
claireho27f65472011-06-09 11:11:49 -07004129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004130$as_echo "$U_MAKE" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004131else
claireho27f65472011-06-09 11:11:49 -07004132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004133$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004134fi
4135
Claire Ho85bf2e22009-11-24 14:23:02 -08004136
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004137 test -n "$U_MAKE" && break
4138done
4139test -n "$U_MAKE" || U_MAKE="make"
4140
4141
4142
Claire Ho85bf2e22009-11-24 14:23:02 -08004143
4144
4145# Check whether --with-cross-build was given.
claireho27f65472011-06-09 11:11:49 -07004146if test "${with_cross_build+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004147 withval=$with_cross_build; cross_buildroot="${withval}"
4148else
4149 cross_buildroot=""
4150fi
4151
4152
4153if test "X$cross_buildroot" = "X"; then
4154 if test "$cross_compiling" = "yes"; then
claireho27f65472011-06-09 11:11:49 -07004155 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
claireho50294ea2010-05-03 15:44:48 -07004156 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004157else
4158 if test -f "${cross_buildroot}/config/icucross.mk"; then
claireho27f65472011-06-09 11:11:49 -07004159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004160$as_echo "Using cross buildroot: $cross_buildroot" >&6; }
4161 else
4162 if test -d "${cross_buildroot}"; then
claireho27f65472011-06-09 11:11:49 -07004163 as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08004164 else
claireho27f65472011-06-09 11:11:49 -07004165 as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08004166 fi
4167 fi
4168fi
4169
4170
4171# Check for doxygen to generate documentation
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004172# Extract the first word of "doxygen", so it can be a program name with args.
4173set dummy doxygen; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07004174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004175$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07004176if ${ac_cv_path_DOXYGEN+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004177 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004178else
4179 case $DOXYGEN in
4180 [\\/]* | ?:[\\/]*)
4181 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4182 ;;
4183 *)
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185as_dummy="$PATH:/usr/local/bin:/usr/bin"
4186for as_dir in $as_dummy
4187do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07004190 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08004191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004192 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
claireho27f65472011-06-09 11:11:49 -07004193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004194 break 2
4195 fi
4196done
claireho27f65472011-06-09 11:11:49 -07004197 done
Claire Ho85bf2e22009-11-24 14:23:02 -08004198IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004199
4200 ;;
4201esac
4202fi
4203DOXYGEN=$ac_cv_path_DOXYGEN
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004204if test -n "$DOXYGEN"; then
claireho27f65472011-06-09 11:11:49 -07004205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004206$as_echo "$DOXYGEN" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004207else
claireho27f65472011-06-09 11:11:49 -07004208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004209$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004210fi
4211
4212
4213
Claire Ho85bf2e22009-11-24 14:23:02 -08004214# Check that the linker is usable
4215
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004216case "${host}" in
4217 *-*-cygwin*|*-*-mingw*)
4218 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
claireho27f65472011-06-09 11:11:49 -07004219 as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect.
4220 Please follow the directions in ICU's readme." "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004221 fi;;
4222 *);;
4223esac
4224
Claire Ho85bf2e22009-11-24 14:23:02 -08004225# Determine the executable suffix
4226# We don't use AC_EXEEXT because some compilers output separate debugging
4227# files, which confuses the AC_EXEEXT macro.
claireho27f65472011-06-09 11:11:49 -07004228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004229$as_echo_n "checking checking for executable suffix... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004230case "${host}" in
4231 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;;
4232 *) EXEEXT="" ;;
4233esac
4234ac_exeext=$EXEEXT
claireho27f65472011-06-09 11:11:49 -07004235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004236$as_echo "$EXEEXT" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004237
4238
Claire Ho85bf2e22009-11-24 14:23:02 -08004239# Determine how strict we want to be when compiling
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004240
claireho27f65472011-06-09 11:11:49 -07004241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004242$as_echo_n "checking whether strict compiling is on... " >&6; }
4243 # Check whether --enable-strict was given.
claireho27f65472011-06-09 11:11:49 -07004244if test "${enable_strict+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004245 enableval=$enable_strict;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004246 if test "$enableval" = no
4247 then
4248 ac_use_strict_options=no
4249 else
4250 ac_use_strict_options=yes
4251 fi
4252
4253else
Claire Ho85bf2e22009-11-24 14:23:02 -08004254 ac_use_strict_options=yes
4255fi
4256
claireho27f65472011-06-09 11:11:49 -07004257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004258$as_echo "$ac_use_strict_options" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004259
4260 if test "$ac_use_strict_options" = yes
4261 then
4262 if test "$GCC" = yes
4263 then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004264 case "${host}" in
4265 *-*-solaris*)
clairehob26ce3a2012-01-10 17:54:41 -08004266 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004267 CFLAGS="$CFLAGS -D__STDC__=0";;
clairehob26ce3a2012-01-10 17:54:41 -08004268 *-*-hpux*)
4269 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
4270 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
4271 *)
4272 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004273 esac
4274 else
4275 case "${host}" in
4276 *-*-cygwin)
4277 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
4278 then
4279 CFLAGS="$CFLAGS /W4"
4280 fi
4281 esac
4282 fi
4283 if test "$GXX" = yes
4284 then
4285 CXXFLAGS="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
4286 case "${host}" in
4287 *-*-solaris*)
4288 CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
4289 esac
4290 else
4291 case "${host}" in
4292 *-*-cygwin)
4293 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
4294 then
4295 CXXFLAGS="$CXXFLAGS /W4"
4296 fi
4297 esac
4298 fi
4299 fi
4300
4301
Claire Ho85bf2e22009-11-24 14:23:02 -08004302# Check if we can build and use 64-bit libraries
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004303
4304
claireho27f65472011-06-09 11:11:49 -07004305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
claireho50294ea2010-05-03 15:44:48 -07004306$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07004307if ${ac_cv_path_GREP+:} false; then :
claireho50294ea2010-05-03 15:44:48 -07004308 $as_echo_n "(cached) " >&6
4309else
4310 if test -z "$GREP"; then
4311 ac_path_GREP_found=false
4312 # Loop through the user's path and test for each of PROGNAME-LIST
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07004318 for ac_prog in grep ggrep; do
claireho50294ea2010-05-03 15:44:48 -07004319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4321 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4322# Check for GNU ac_path_GREP and select it if it is found.
4323 # Check for GNU $ac_path_GREP
4324case `"$ac_path_GREP" --version 2>&1` in
4325*GNU*)
4326 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4327*)
4328 ac_count=0
4329 $as_echo_n 0123456789 >"conftest.in"
4330 while :
4331 do
4332 cat "conftest.in" "conftest.in" >"conftest.tmp"
4333 mv "conftest.tmp" "conftest.in"
4334 cp "conftest.in" "conftest.nl"
4335 $as_echo 'GREP' >> "conftest.nl"
4336 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
claireho27f65472011-06-09 11:11:49 -07004338 as_fn_arith $ac_count + 1 && ac_count=$as_val
claireho50294ea2010-05-03 15:44:48 -07004339 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4340 # Best one so far, save it but keep looking for a better one
4341 ac_cv_path_GREP="$ac_path_GREP"
4342 ac_path_GREP_max=$ac_count
4343 fi
4344 # 10*(2^10) chars as input seems more than enough
4345 test $ac_count -gt 10 && break
4346 done
4347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348esac
4349
4350 $ac_path_GREP_found && break 3
4351 done
4352 done
claireho27f65472011-06-09 11:11:49 -07004353 done
claireho50294ea2010-05-03 15:44:48 -07004354IFS=$as_save_IFS
4355 if test -z "$ac_cv_path_GREP"; then
claireho27f65472011-06-09 11:11:49 -07004356 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
claireho50294ea2010-05-03 15:44:48 -07004357 fi
4358else
4359 ac_cv_path_GREP=$GREP
4360fi
4361
4362fi
claireho27f65472011-06-09 11:11:49 -07004363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
claireho50294ea2010-05-03 15:44:48 -07004364$as_echo "$ac_cv_path_GREP" >&6; }
4365 GREP="$ac_cv_path_GREP"
4366
4367
claireho27f65472011-06-09 11:11:49 -07004368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
claireho50294ea2010-05-03 15:44:48 -07004369$as_echo_n "checking for egrep... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07004370if ${ac_cv_path_EGREP+:} false; then :
claireho50294ea2010-05-03 15:44:48 -07004371 $as_echo_n "(cached) " >&6
4372else
4373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4374 then ac_cv_path_EGREP="$GREP -E"
4375 else
4376 if test -z "$EGREP"; then
4377 ac_path_EGREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07004384 for ac_prog in egrep; do
claireho50294ea2010-05-03 15:44:48 -07004385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4388# Check for GNU ac_path_EGREP and select it if it is found.
4389 # Check for GNU $ac_path_EGREP
4390case `"$ac_path_EGREP" --version 2>&1` in
4391*GNU*)
4392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4393*)
4394 ac_count=0
4395 $as_echo_n 0123456789 >"conftest.in"
4396 while :
4397 do
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'EGREP' >> "conftest.nl"
4402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
claireho27f65472011-06-09 11:11:49 -07004404 as_fn_arith $ac_count + 1 && ac_count=$as_val
claireho50294ea2010-05-03 15:44:48 -07004405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_EGREP="$ac_path_EGREP"
4408 ac_path_EGREP_max=$ac_count
4409 fi
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414esac
4415
4416 $ac_path_EGREP_found && break 3
4417 done
4418 done
claireho27f65472011-06-09 11:11:49 -07004419 done
claireho50294ea2010-05-03 15:44:48 -07004420IFS=$as_save_IFS
4421 if test -z "$ac_cv_path_EGREP"; then
claireho27f65472011-06-09 11:11:49 -07004422 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
claireho50294ea2010-05-03 15:44:48 -07004423 fi
4424else
4425 ac_cv_path_EGREP=$EGREP
4426fi
4427
4428 fi
4429fi
claireho27f65472011-06-09 11:11:49 -07004430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
claireho50294ea2010-05-03 15:44:48 -07004431$as_echo "$ac_cv_path_EGREP" >&6; }
4432 EGREP="$ac_cv_path_EGREP"
4433
4434
claireho27f65472011-06-09 11:11:49 -07004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
claireho50294ea2010-05-03 15:44:48 -07004436$as_echo_n "checking for ANSI C header files... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07004437if ${ac_cv_header_stdc+:} false; then :
claireho50294ea2010-05-03 15:44:48 -07004438 $as_echo_n "(cached) " >&6
4439else
claireho27f65472011-06-09 11:11:49 -07004440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07004441/* end confdefs.h. */
4442#include <stdlib.h>
4443#include <stdarg.h>
4444#include <string.h>
4445#include <float.h>
4446
4447int
4448main ()
4449{
4450
4451 ;
4452 return 0;
4453}
4454_ACEOF
claireho27f65472011-06-09 11:11:49 -07004455if ac_fn_c_try_compile "$LINENO"; then :
claireho50294ea2010-05-03 15:44:48 -07004456 ac_cv_header_stdc=yes
4457else
claireho27f65472011-06-09 11:11:49 -07004458 ac_cv_header_stdc=no
claireho50294ea2010-05-03 15:44:48 -07004459fi
claireho50294ea2010-05-03 15:44:48 -07004460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461
4462if test $ac_cv_header_stdc = yes; then
4463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
claireho27f65472011-06-09 11:11:49 -07004464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07004465/* end confdefs.h. */
4466#include <string.h>
4467
4468_ACEOF
4469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
claireho27f65472011-06-09 11:11:49 -07004470 $EGREP "memchr" >/dev/null 2>&1; then :
4471
claireho50294ea2010-05-03 15:44:48 -07004472else
4473 ac_cv_header_stdc=no
4474fi
4475rm -f conftest*
4476
4477fi
4478
4479if test $ac_cv_header_stdc = yes; then
4480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
claireho27f65472011-06-09 11:11:49 -07004481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07004482/* end confdefs.h. */
4483#include <stdlib.h>
4484
4485_ACEOF
4486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
claireho27f65472011-06-09 11:11:49 -07004487 $EGREP "free" >/dev/null 2>&1; then :
4488
claireho50294ea2010-05-03 15:44:48 -07004489else
4490 ac_cv_header_stdc=no
4491fi
4492rm -f conftest*
4493
4494fi
4495
4496if test $ac_cv_header_stdc = yes; then
4497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
claireho27f65472011-06-09 11:11:49 -07004498 if test "$cross_compiling" = yes; then :
claireho50294ea2010-05-03 15:44:48 -07004499 :
4500else
claireho27f65472011-06-09 11:11:49 -07004501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07004502/* end confdefs.h. */
4503#include <ctype.h>
4504#include <stdlib.h>
4505#if ((' ' & 0x0FF) == 0x020)
4506# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4507# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4508#else
4509# define ISLOWER(c) \
4510 (('a' <= (c) && (c) <= 'i') \
4511 || ('j' <= (c) && (c) <= 'r') \
4512 || ('s' <= (c) && (c) <= 'z'))
4513# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4514#endif
4515
4516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4517int
4518main ()
4519{
4520 int i;
4521 for (i = 0; i < 256; i++)
4522 if (XOR (islower (i), ISLOWER (i))
4523 || toupper (i) != TOUPPER (i))
4524 return 2;
4525 return 0;
4526}
4527_ACEOF
claireho27f65472011-06-09 11:11:49 -07004528if ac_fn_c_try_run "$LINENO"; then :
4529
claireho50294ea2010-05-03 15:44:48 -07004530else
claireho27f65472011-06-09 11:11:49 -07004531 ac_cv_header_stdc=no
claireho50294ea2010-05-03 15:44:48 -07004532fi
claireho27f65472011-06-09 11:11:49 -07004533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4534 conftest.$ac_objext conftest.beam conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07004535fi
4536
claireho50294ea2010-05-03 15:44:48 -07004537fi
4538fi
claireho27f65472011-06-09 11:11:49 -07004539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
claireho50294ea2010-05-03 15:44:48 -07004540$as_echo "$ac_cv_header_stdc" >&6; }
4541if test $ac_cv_header_stdc = yes; then
4542
claireho27f65472011-06-09 11:11:49 -07004543$as_echo "#define STDC_HEADERS 1" >>confdefs.h
claireho50294ea2010-05-03 15:44:48 -07004544
4545fi
4546
4547# On IRIX 5.3, sys/types and inttypes.h are conflicting.
claireho50294ea2010-05-03 15:44:48 -07004548for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4549 inttypes.h stdint.h unistd.h
claireho27f65472011-06-09 11:11:49 -07004550do :
4551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4552ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4553"
4554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
claireho50294ea2010-05-03 15:44:48 -07004555 cat >>confdefs.h <<_ACEOF
4556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4557_ACEOF
4558
4559fi
4560
4561done
4562
4563
4564
Claire Ho85bf2e22009-11-24 14:23:02 -08004565 BITS_REQ=nochange
4566 ENABLE_64BIT_LIBS=unknown
4567 ## revisit this for cross-compile.
4568
4569 # Check whether --enable-64bit-libs was given.
claireho27f65472011-06-09 11:11:49 -07004570if test "${enable_64bit_libs+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004571 enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
4572 case "${enableval}" in
4573 no|false|32) with_library_bits=32; ;;
4574 yes|true|64) with_library_bits=64else32 ;;
4575 nochange) with_library_bits=nochange; ;;
claireho27f65472011-06-09 11:11:49 -07004576 *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08004577 esac
4578fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004579
Claire Ho85bf2e22009-11-24 14:23:02 -08004580
4581
4582
4583# Check whether --with-library-bits was given.
claireho27f65472011-06-09 11:11:49 -07004584if test "${with_library_bits+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004585 withval=$with_library_bits; case "${withval}" in
4586 ""|nochange) BITS_REQ=$withval ;;
4587 32|64|64else32) BITS_REQ=$withval ;;
claireho27f65472011-06-09 11:11:49 -07004588 *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08004589 esac
4590fi
4591
4592
4593 # don't use these for cross compiling
4594 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
claireho27f65472011-06-09 11:11:49 -07004595 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
Claire Ho85bf2e22009-11-24 14:23:02 -08004596 fi
claireho50294ea2010-05-03 15:44:48 -07004597 # The cast to long int works around a bug in the HP C Compiler
4598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4600# This bug is HP SR number 8606223364.
claireho27f65472011-06-09 11:11:49 -07004601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
claireho50294ea2010-05-03 15:44:48 -07004602$as_echo_n "checking size of void *... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07004603if ${ac_cv_sizeof_void_p+:} false; then :
claireho50294ea2010-05-03 15:44:48 -07004604 $as_echo_n "(cached) " >&6
4605else
claireho27f65472011-06-09 11:11:49 -07004606 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
claireho50294ea2010-05-03 15:44:48 -07004607
claireho50294ea2010-05-03 15:44:48 -07004608else
claireho27f65472011-06-09 11:11:49 -07004609 if test "$ac_cv_type_void_p" = yes; then
4610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
claireho50294ea2010-05-03 15:44:48 -07004611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07004612as_fn_error 77 "cannot compute sizeof (void *)
4613See \`config.log' for more details" "$LINENO" 5; }
claireho50294ea2010-05-03 15:44:48 -07004614 else
4615 ac_cv_sizeof_void_p=0
4616 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004617fi
claireho27f65472011-06-09 11:11:49 -07004618
Claire Ho85bf2e22009-11-24 14:23:02 -08004619fi
claireho27f65472011-06-09 11:11:49 -07004620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
claireho50294ea2010-05-03 15:44:48 -07004621$as_echo "$ac_cv_sizeof_void_p" >&6; }
Claire Ho85bf2e22009-11-24 14:23:02 -08004622
4623
claireho50294ea2010-05-03 15:44:48 -07004624
4625cat >>confdefs.h <<_ACEOF
4626#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4627_ACEOF
4628
4629
claireho27f65472011-06-09 11:11:49 -07004630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
claireho50294ea2010-05-03 15:44:48 -07004631$as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4632 case $ac_cv_sizeof_void_p in
4633 8) DEFAULT_64BIT=yes ;;
4634 4) DEFAULT_64BIT=no ;;
4635 *) DEFAULT_64BIT=unknown
4636 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08004637 BITS_GOT=unknown
4638
4639 # 'OK' here means, we can exit any further checking, everything's copa
4640 BITS_OK=yes
4641
4642 # do we need to check for buildable/runnable 32 or 64 bit?
4643 BITS_CHECK_32=no
4644 BITS_CHECK_64=no
4645
4646 # later, can we run the 32/64 bit binaries so made?
4647 BITS_RUN_32=no
4648 BITS_RUN_64=no
4649
4650 if test "$DEFAULT_64BIT" = "yes"; then
4651 # we get 64 bits by default.
4652 BITS_GOT=64
4653 case "$BITS_REQ" in
4654 32)
4655 # need to look for 32 bit support.
4656 BITS_CHECK_32=yes
4657 # not copa.
4658 BITS_OK=no;;
4659 # everyone else is happy.
4660 nochange) ;;
4661 *) ;;
4662 esac
4663 elif test "$DEFAULT_64BIT" = "no"; then
4664 # not 64 bit by default.
4665 BITS_GOT=32
4666 case "$BITS_REQ" in
4667 64|64else32)
4668 BITS_CHECK_64=yes
4669 #BITS_CHECK_32=yes
4670 BITS_OK=no;;
4671 nochange) ;;
4672 *) ;;
4673 esac
4674 elif test "$DEFAULT_64BIT" = "unknown"; then
claireho50294ea2010-05-03 15:44:48 -07004675 # cross compiling.
4676 BITS_GOT=unknown
4677 case "$BITS_REQ" in
4678 64|64else32) BITS_OK=no
4679 BITS_CHECK_32=yes
4680 BITS_CHECK_64=yes ;;
4681 32) BITS_OK=no;;
4682 nochange) ;;
4683 *) ;;
4684 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08004685 fi
4686
claireho27f65472011-06-09 11:11:49 -07004687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004688$as_echo "$DEFAULT_64BIT" >&6; };
4689
4690 if test "$BITS_OK" != "yes"; then
4691 # not copa. back these up.
4692 CFLAGS_OLD="${CFLAGS}"
4693 CXXFLAGS_OLD="${CXXFLAGS}"
4694 LDFLAGS_OLD="${LDFLAGS}"
4695 ARFLAGS_OLD="${ARFLAGS}"
4696
4697 CFLAGS_32="${CFLAGS}"
4698 CXXFLAGS_32="${CXXFLAGS}"
4699 LDFLAGS_32="${LDFLAGS}"
4700 ARFLAGS_32="${ARFLAGS}"
4701
4702 CFLAGS_64="${CFLAGS}"
4703 CXXFLAGS_64="${CXXFLAGS}"
4704 LDFLAGS_64="${LDFLAGS}"
4705 ARFLAGS_64="${ARFLAGS}"
4706
4707 CAN_BUILD_64=unknown
4708 CAN_BUILD_32=unknown
4709 # These results can't be cached because is sets compiler flags.
4710 if test "$BITS_CHECK_64" = "yes"; then
claireho27f65472011-06-09 11:11:49 -07004711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004712$as_echo_n "checking how to build 64-bit executables... " >&6; }
4713 CAN_BUILD_64=no
4714 ####
4715 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4716 # Note, we don't have to actually check if the options work- we'll try them before using them.
4717 # So, only try actually testing the options, if you are trying to decide between multiple options.
4718 # On exit from the following clauses:
4719 # if CAN_BUILD_64=yes:
4720 # *FLAGS are assumed to contain the right settings for 64bit
4721 # else if CAN_BUILD_64=no: (default)
4722 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4723
4724 if test "$GCC" = yes; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004725 CFLAGS="${CFLAGS} -m64"
4726 CXXFLAGS="${CXXFLAGS} -m64"
claireho27f65472011-06-09 11:11:49 -07004727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004729int main(void) {return (sizeof(void*)*8==64)?0:1;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004730_ACEOF
claireho27f65472011-06-09 11:11:49 -07004731if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004732 CAN_BUILD_64=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004733else
claireho27f65472011-06-09 11:11:49 -07004734 CAN_BUILD_64=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004735fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 else
4738 case "${host}" in
4739 sparc*-*-solaris*)
4740 # 1. try -m64
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004741 CFLAGS="${CFLAGS} -m64"
4742 CXXFLAGS="${CXXFLAGS} -m64"
clairehob26ce3a2012-01-10 17:54:41 -08004743 if test "$cross_compiling" = yes; then :
4744 CAN_BUILD_64=unknown
4745else
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho27f65472011-06-09 11:11:49 -07004747/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004748int main(void) {return (sizeof(void*)*8==64)?0:1;}
4749_ACEOF
clairehob26ce3a2012-01-10 17:54:41 -08004750if ac_fn_c_try_run "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004751 CAN_BUILD_64=yes
4752else
claireho27f65472011-06-09 11:11:49 -07004753 CAN_BUILD_64=no
Claire Ho85bf2e22009-11-24 14:23:02 -08004754fi
clairehob26ce3a2012-01-10 17:54:41 -08004755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4756 conftest.$ac_objext conftest.beam conftest.$ac_ext
4757fi
4758
Claire Ho85bf2e22009-11-24 14:23:02 -08004759 if test "$CAN_BUILD_64" != yes; then
4760 # Nope. back out changes.
4761 CFLAGS="${CFLAGS_OLD}"
4762 CXXFLAGS="${CFLAGS_OLD}"
4763 # 2. try xarch=v9 [deprecated]
4764 ## TODO: cross compile: the following won't work.
4765 SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
4766 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4767 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4768 if test -z "$SOL64" && test -n "$SPARCV9"; then
4769 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
4770 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4771 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
4772 CAN_BUILD_64=yes
4773 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004774 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004775 ;;
4776 i386-*-solaris*)
4777 # 1. try -m64
4778 CFLAGS="${CFLAGS} -m64"
4779 CXXFLAGS="${CXXFLAGS} -m64"
clairehob26ce3a2012-01-10 17:54:41 -08004780 if test "$cross_compiling" = yes; then :
4781 CAN_BUILD_64=unknown
4782else
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho27f65472011-06-09 11:11:49 -07004784/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004785int main(void) {return (sizeof(void*)*8==64)?0:1;}
4786_ACEOF
clairehob26ce3a2012-01-10 17:54:41 -08004787if ac_fn_c_try_run "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004788 CAN_BUILD_64=yes
4789else
claireho27f65472011-06-09 11:11:49 -07004790 CAN_BUILD_64=no
Claire Ho85bf2e22009-11-24 14:23:02 -08004791fi
clairehob26ce3a2012-01-10 17:54:41 -08004792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4793 conftest.$ac_objext conftest.beam conftest.$ac_ext
4794fi
4795
Claire Ho85bf2e22009-11-24 14:23:02 -08004796 if test "$CAN_BUILD_64" != yes; then
4797 # Nope. back out changes.
4798 CFLAGS="${CFLAGS_OLD}"
4799 CXXFLAGS="${CXXFLAGS_OLD}"
4800 # 2. try the older compiler option
4801 ## TODO: cross compile problem
clairehob26ce3a2012-01-10 17:54:41 -08004802 AMD64=`isainfo -n 2>&1 | grep amd64`
Claire Ho85bf2e22009-11-24 14:23:02 -08004803 SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
4804 if test -z "$SOL64" && test -n "$AMD64"; then
4805 CFLAGS="${CFLAGS} -xtarget=generic64"
4806 CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
4807 CAN_BUILD_64=yes
4808 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004809 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004810 ;;
4811 ia64-*-linux*)
4812 # check for ecc/ecpc compiler support
4813 ## TODO: cross compiler problem
4814 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
4815 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
4816 CAN_BUILD_64=yes
4817 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004818 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004819 ;;
4820 *-*-cygwin)
4821 # vcvarsamd64.bat should have been used to enable 64-bit builds.
4822 # We only do this check to display the correct answer.
4823 ## TODO: cross compiler problem
4824 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
4825 CAN_BUILD_64=yes
4826 fi
4827 ;;
4828 *-*-aix*|powerpc64-*-linux*)
4829 CFLAGS="${CFLAGS} -q64"
4830 CXXFLAGS="${CXXFLAGS} -q64"
4831 LDFLAGS="${LDFLAGS} -q64"
claireho27f65472011-06-09 11:11:49 -07004832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004834int main(void) {return (sizeof(void*)*8==64)?0:1;}
4835_ACEOF
claireho27f65472011-06-09 11:11:49 -07004836if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004837 CAN_BUILD_64=yes
4838else
claireho27f65472011-06-09 11:11:49 -07004839 CAN_BUILD_64=no
Claire Ho85bf2e22009-11-24 14:23:02 -08004840fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 if test "$CAN_BUILD_64" = yes; then
4843 # worked- set other options.
4844 case "${host}" in
4845 *-*-aix*)
4846 # tell AIX what executable mode to use.
4847 ARFLAGS="${ARFLAGS} -X64"
4848 esac
4849 fi
4850 ;;
4851 *-*-hpux*)
4852 # First we try the newer +DD64, if that doesn't work,
4853 # try other options.
4854
4855 CFLAGS="${CFLAGS} +DD64"
4856 CXXFLAGS="${CXXFLAGS} +DD64"
claireho27f65472011-06-09 11:11:49 -07004857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004859int main(void) {return (sizeof(void*)*8==64)?0:1;}
4860_ACEOF
claireho27f65472011-06-09 11:11:49 -07004861if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004862 CAN_BUILD_64=yes
4863else
claireho27f65472011-06-09 11:11:49 -07004864 CAN_BUILD_64=no
Claire Ho85bf2e22009-11-24 14:23:02 -08004865fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 if test "$CAN_BUILD_64" != yes; then
4868 # reset
4869 CFLAGS="${CFLAGS_OLD}"
4870 CXXFLAGS="${CXXFLAGS_OLD}"
4871 # append
4872 CFLAGS="${CFLAGS} +DA2.0W"
4873 CXXFLAGS="${CXXFLAGS} +DA2.0W"
claireho27f65472011-06-09 11:11:49 -07004874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004876int main(void) {return (sizeof(void*)*8==64)?0:1;}
4877_ACEOF
claireho27f65472011-06-09 11:11:49 -07004878if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004879 CAN_BUILD_64=yes
4880else
claireho27f65472011-06-09 11:11:49 -07004881 CAN_BUILD_64=no
Claire Ho85bf2e22009-11-24 14:23:02 -08004882fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 fi
4885 ;;
4886 *-*ibm-openedition*|*-*-os390*)
4887 CFLAGS="${CFLAGS} -Wc,lp64"
4888 CXXFLAGS="${CXXFLAGS} -Wc,lp64"
4889 LDFLAGS="${LDFLAGS} -Wl,lp64"
claireho27f65472011-06-09 11:11:49 -07004890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004892int main(void) {return (sizeof(void*)*8==64)?0:1;}
4893_ACEOF
claireho27f65472011-06-09 11:11:49 -07004894if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004895 CAN_BUILD_64=yes
4896else
claireho27f65472011-06-09 11:11:49 -07004897 CAN_BUILD_64=no
Claire Ho85bf2e22009-11-24 14:23:02 -08004898fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 ;;
4901 *)
4902 # unknown platform.
4903 ;;
4904 esac
4905 fi
claireho27f65472011-06-09 11:11:49 -07004906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004907$as_echo "$CAN_BUILD_64" >&6; }
4908 if test "$CAN_BUILD_64" = yes; then
claireho27f65472011-06-09 11:11:49 -07004909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004910$as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
claireho27f65472011-06-09 11:11:49 -07004911 if test "$cross_compiling" = yes; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004912 BITS_RUN_64=unknown
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004913else
claireho27f65472011-06-09 11:11:49 -07004914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004915/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004916int main(void) {return (sizeof(void*)*8==64)?0:1;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004917_ACEOF
claireho27f65472011-06-09 11:11:49 -07004918if ac_fn_c_try_run "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004919 BITS_RUN_64=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004920else
claireho27f65472011-06-09 11:11:49 -07004921 BITS_RUN_64=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004922fi
claireho27f65472011-06-09 11:11:49 -07004923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4924 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004925fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004926
claireho27f65472011-06-09 11:11:49 -07004927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004928$as_echo "$BITS_RUN_64" >&6; };
4929
4930 CFLAGS_64="${CFLAGS}"
4931 CXXFLAGS_64="${CXXFLAGS}"
4932 LDFLAGS_64="${LDFLAGS}"
4933 ARFLAGS_64="${ARFLAGS}"
4934 fi
4935 # put it back.
4936 CFLAGS="${CFLAGS_OLD}"
4937 CXXFLAGS="${CXXFLAGS_OLD}"
4938 LDFLAGS="${LDFLAGS_OLD}"
4939 ARFLAGS="${ARFLAGS_OLD}"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004940 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004941 if test "$BITS_CHECK_32" = "yes"; then
4942 # see comment under 'if BITS_CHECK_64', above.
claireho27f65472011-06-09 11:11:49 -07004943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004944$as_echo_n "checking how to build 32-bit executables... " >&6; }
4945 if test "$GCC" = yes; then
4946 CFLAGS="${CFLAGS} -m32"
4947 CXXFLAGS="${CXXFLAGS} -m32"
claireho27f65472011-06-09 11:11:49 -07004948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004949/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08004950int main(void) {return (sizeof(void*)*8==32)?0:1;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004951_ACEOF
claireho27f65472011-06-09 11:11:49 -07004952if ac_fn_c_try_compile "$LINENO"; then :
4953 CAN_BUILD_32=yes
4954else
4955 CAN_BUILD_32=no
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
4960$as_echo "$CAN_BUILD_32" >&6; }
4961 if test "$CAN_BUILD_32" = yes; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
4963$as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
4964 if test "$cross_compiling" = yes; then :
4965 BITS_RUN_32=unknown
4966else
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969int main(void) {return (sizeof(void*)*8==32)?0:1;}
4970_ACEOF
4971if ac_fn_c_try_run "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08004972 BITS_RUN_32=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004973else
claireho27f65472011-06-09 11:11:49 -07004974 BITS_RUN_32=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004975fi
claireho27f65472011-06-09 11:11:49 -07004976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4977 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07004978fi
Claire Ho85bf2e22009-11-24 14:23:02 -08004979
claireho27f65472011-06-09 11:11:49 -07004980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08004981$as_echo "$BITS_RUN_32" >&6; };
4982 CFLAGS_32="${CFLAGS}"
4983 CXXFLAGS_32="${CXXFLAGS}"
4984 LDFLAGS_32="${LDFLAGS}"
4985 ARFLAGS_32="${ARFLAGS}"
4986 fi
4987 # put it back.
4988 CFLAGS="${CFLAGS_OLD}"
4989 CXXFLAGS="${CXXFLAGS_OLD}"
4990 LDFLAGS="${LDFLAGS_OLD}"
4991 ARFLAGS="${ARFLAGS_OLD}"
4992 fi
4993
4994 ##
4995 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
4996 #
4997
4998 # First, implement 64else32
4999 if test "$BITS_REQ" = "64else32"; then
5000 if test "$BITS_RUN_64" = "yes"; then
5001 BITS_REQ=64
5002 else
5003 # no changes.
5004 BITS_OK=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005005 fi
5006 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08005007
5008 # implement.
5009 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
5010 CFLAGS="${CFLAGS_32}"
5011 CXXFLAGS="${CXXFLAGS_32}"
5012 LDFLAGS="${LDFLAGS_32}"
5013 ARFLAGS="${ARFLAGS_32}"
5014 BITS_OK=yes
5015 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
5016 CFLAGS="${CFLAGS_64}"
5017 CXXFLAGS="${CXXFLAGS_64}"
5018 LDFLAGS="${LDFLAGS_64}"
5019 ARFLAGS="${ARFLAGS_64}"
5020 BITS_OK=yes
5021 elif test "$BITS_OK" != "yes"; then
claireho27f65472011-06-09 11:11:49 -07005022 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
Claire Ho85bf2e22009-11-24 14:23:02 -08005023 fi
5024 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005025
5026
5027
5028
Claire Ho85bf2e22009-11-24 14:23:02 -08005029# Determine the Makefile fragment
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005030
claireho27f65472011-06-09 11:11:49 -07005031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005032$as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005033if ${icu_cv_host_frag+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005034 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005035else
5036
5037case "${host}" in
5038*-*-solaris*)
5039 if test "$GCC" = yes; then
5040 icu_cv_host_frag=mh-solaris-gcc
5041 else
5042 icu_cv_host_frag=mh-solaris
5043 fi ;;
5044alpha*-*-linux-gnu)
5045 if test "$GCC" = yes; then
5046 icu_cv_host_frag=mh-alpha-linux-gcc
5047 else
5048 icu_cv_host_frag=mh-alpha-linux-cc
5049 fi ;;
5050powerpc*-*-linux*)
5051 if test "$GCC" = yes; then
5052 icu_cv_host_frag=mh-linux
5053 else
5054 icu_cv_host_frag=mh-linux-va
5055 fi ;;
claireho27f65472011-06-09 11:11:49 -07005056*-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005057*-*-cygwin|*-*-mingw32)
5058 if test "$GCC" = yes; then
claireho27f65472011-06-09 11:11:49 -07005059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005060/* end confdefs.h. */
5061
5062#ifndef __MINGW32__
5063#error This is not MinGW
5064#endif
5065int
5066main ()
5067{
5068
5069 ;
5070 return 0;
5071}
5072_ACEOF
claireho27f65472011-06-09 11:11:49 -07005073if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005074 icu_cv_host_frag=mh-mingw
5075else
claireho27f65472011-06-09 11:11:49 -07005076 icu_cv_host_frag=mh-cygwin
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005077fi
Claire Ho85bf2e22009-11-24 14:23:02 -08005078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005079 else
5080 icu_cv_host_frag=mh-cygwin-msvc
5081 fi ;;
5082*-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;;
5083*-*-aix*)
5084 if test "$GCC" = yes; then
5085 icu_cv_host_frag=mh-aix-gcc
5086 else
5087 icu_cv_host_frag=mh-aix-va
5088 fi ;;
5089*-*-hpux*)
5090 if test "$GCC" = yes; then
5091 icu_cv_host_frag=mh-hpux-gcc
5092 else
5093 case "$CXX" in
5094 *aCC) icu_cv_host_frag=mh-hpux-acc ;;
5095 esac
5096 fi ;;
5097*-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;;
5098*-*-os400*) icu_cv_host_frag=mh-os400 ;;
5099*-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
5100*-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
claireho27f65472011-06-09 11:11:49 -07005101*-*-beos) icu_cv_host_frag=mh-beos ;;
5102*-*-haiku) icu_cv_host_frag=mh-haiku ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005103*-*-irix*) icu_cv_host_frag=mh-irix ;;
5104*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
5105*-*-nto*) icu_cv_host_frag=mh-qnx ;;
5106*-ncr-*) icu_cv_host_frag=mh-mpras ;;
5107*) icu_cv_host_frag=mh-unknown ;;
5108esac
5109
5110
5111fi
claireho27f65472011-06-09 11:11:49 -07005112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005113$as_echo "$icu_cv_host_frag" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005114
5115
Claire Ho85bf2e22009-11-24 14:23:02 -08005116# Checks for libraries and other host specific stuff
5117# On HP/UX, don't link to -lm from a shared lib because it isn't
5118# PIC (at least on 10.2)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005119case "${host}" in
claireho27f65472011-06-09 11:11:49 -07005120 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005121$as_echo_n "checking for floor in -lm... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005122if ${ac_cv_lib_m_floor+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005123 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005124else
5125 ac_check_lib_save_LIBS=$LIBS
5126LIBS="-lm $LIBS"
claireho27f65472011-06-09 11:11:49 -07005127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005128/* end confdefs.h. */
5129
Claire Ho85bf2e22009-11-24 14:23:02 -08005130/* Override any GCC internal prototype to avoid an error.
5131 Use char because int might match the return type of a GCC
5132 builtin and then its argument prototype would still apply. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005133#ifdef __cplusplus
5134extern "C"
5135#endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005136char floor ();
5137int
5138main ()
5139{
Claire Ho85bf2e22009-11-24 14:23:02 -08005140return floor ();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005141 ;
5142 return 0;
5143}
5144_ACEOF
claireho27f65472011-06-09 11:11:49 -07005145if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005146 ac_cv_lib_m_floor=yes
5147else
claireho27f65472011-06-09 11:11:49 -07005148 ac_cv_lib_m_floor=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005149fi
claireho27f65472011-06-09 11:11:49 -07005150rm -f core conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005152LIBS=$ac_check_lib_save_LIBS
5153fi
claireho27f65472011-06-09 11:11:49 -07005154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005155$as_echo "$ac_cv_lib_m_floor" >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005156if test "x$ac_cv_lib_m_floor" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005157 LIB_M="-lm"
5158fi
5159 ;;
5160
claireho27f65472011-06-09 11:11:49 -07005161 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005162$as_echo_n "checking for floor in -lm... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005163if ${ac_cv_lib_m_floor+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005164 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005165else
5166 ac_check_lib_save_LIBS=$LIBS
5167LIBS="-lm $LIBS"
claireho27f65472011-06-09 11:11:49 -07005168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005169/* end confdefs.h. */
5170
Claire Ho85bf2e22009-11-24 14:23:02 -08005171/* Override any GCC internal prototype to avoid an error.
5172 Use char because int might match the return type of a GCC
5173 builtin and then its argument prototype would still apply. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005174#ifdef __cplusplus
5175extern "C"
5176#endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005177char floor ();
5178int
5179main ()
5180{
Claire Ho85bf2e22009-11-24 14:23:02 -08005181return floor ();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005182 ;
5183 return 0;
5184}
5185_ACEOF
claireho27f65472011-06-09 11:11:49 -07005186if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005187 ac_cv_lib_m_floor=yes
5188else
claireho27f65472011-06-09 11:11:49 -07005189 ac_cv_lib_m_floor=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005190fi
claireho27f65472011-06-09 11:11:49 -07005191rm -f core conftest.err conftest.$ac_objext \
5192 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005193LIBS=$ac_check_lib_save_LIBS
5194fi
claireho27f65472011-06-09 11:11:49 -07005195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005196$as_echo "$ac_cv_lib_m_floor" >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005197if test "x$ac_cv_lib_m_floor" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005198 cat >>confdefs.h <<_ACEOF
5199#define HAVE_LIBM 1
5200_ACEOF
5201
5202 LIBS="-lm $LIBS"
5203
5204fi
5205
5206 LIB_M="" ;;
5207esac
5208
5209
Claire Ho85bf2e22009-11-24 14:23:02 -08005210# Check whether to build shared libraries
claireho27f65472011-06-09 11:11:49 -07005211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005212$as_echo_n "checking whether to build shared libraries... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005213enabled=no
Claire Ho85bf2e22009-11-24 14:23:02 -08005214# Check whether --enable-shared was given.
claireho27f65472011-06-09 11:11:49 -07005215if test "${enable_shared+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005216 enableval=$enable_shared; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005217 yes|"") enabled=yes; ENABLE_SHARED=YES ;;
5218 no);;
5219 *) ;;
5220 esac
5221else
5222 enabled=yes; ENABLE_SHARED=YES
5223
Claire Ho85bf2e22009-11-24 14:23:02 -08005224fi
5225
claireho27f65472011-06-09 11:11:49 -07005226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005227$as_echo "$enabled" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005228
5229
Claire Ho85bf2e22009-11-24 14:23:02 -08005230# Check whether to build static libraries
claireho27f65472011-06-09 11:11:49 -07005231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005232$as_echo_n "checking whether to build static libraries... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005233enabled=no
Claire Ho85bf2e22009-11-24 14:23:02 -08005234# Check whether --enable-static was given.
claireho27f65472011-06-09 11:11:49 -07005235if test "${enable_static+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005236 enableval=$enable_static; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005237 yes|"") enabled=yes; ENABLE_STATIC=YES ;;
5238 no) ;;
5239 *) ;;
5240 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08005241fi
5242
claireho27f65472011-06-09 11:11:49 -07005243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005244$as_echo "$enabled" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005245
5246
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005247# When building release static library, there might be some optimization flags we can use
5248if test "$ENABLE_STATIC" = "YES"; then
5249 if test "$ENABLE_SHARED" != "YES"; then
5250 if test "$ENABLE_RELEASE" = 1; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5252$as_echo_n "checking whether we can use static library optimization option... " >&6; }
5253 CHECK_STATIC_OPT_FLAG=no
5254
5255 OLD_CPPFLAGS="${CPPFLAGS}"
5256 OLD_LDFLAGS="${LDFLAGS}"
5257
5258 case "${host}" in
5259 *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
5260 if test "$ac_cv_c_compiler_gnu" = yes; then
5261 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
5262 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
5263 fi
5264 ;;
5265 *)
5266 ;;
5267 esac
5268
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h. */
5271
5272int
5273main ()
5274{
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280if ac_fn_c_try_link "$LINENO"; then :
5281 CHECK_STATIC_OPT_FLAG=yes
5282else
5283 CHECK_STATIC_OPT_FLAG=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext conftest.$ac_ext
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5288$as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5289 if test "$CHECK_STATIC_OPT_FLAG" = no; then
5290 CPPFLAGS="${OLD_CPPFLAGS}"
5291 LDFLAGS="${OLD_LDFLAGS}"
5292 fi
5293 fi
5294 fi
5295fi
5296
5297
claireho50294ea2010-05-03 15:44:48 -07005298# Check whether to enable auto cleanup of libraries
claireho27f65472011-06-09 11:11:49 -07005299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
claireho50294ea2010-05-03 15:44:48 -07005300$as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5301enabled=no
5302UCLN_NO_AUTO_CLEANUP=1
5303# Check whether --enable-auto-cleanup was given.
claireho27f65472011-06-09 11:11:49 -07005304if test "${enable_auto_cleanup+set}" = set; then :
claireho50294ea2010-05-03 15:44:48 -07005305 enableval=$enable_auto_cleanup; case "${enableval}" in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005306 yes) enabled=yes;
5307 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5308 UCLN_NO_AUTO_CLEANUP=0
5309 ;;
claireho50294ea2010-05-03 15:44:48 -07005310 *) ;;
5311 esac
5312fi
5313
claireho27f65472011-06-09 11:11:49 -07005314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
claireho50294ea2010-05-03 15:44:48 -07005315$as_echo "$enabled" >&6; }
5316
5317
5318# MSVC floating-point option
5319MSVC_RELEASE_FLAG=""
5320if test $enabled = yes
5321then
5322 if test $icu_cv_host_frag = mh-cygwin-msvc
5323 then
claireho27f65472011-06-09 11:11:49 -07005324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07005325/* end confdefs.h. */
5326
5327 #if defined _MSC_VER && _MSC_VER >= 1400
5328 #else
5329 Microsoft Visual C++ < 2005
5330 #endif
5331
5332int
5333main ()
5334{
5335
5336 ;
5337 return 0;
5338}
5339_ACEOF
claireho27f65472011-06-09 11:11:49 -07005340if ac_fn_c_try_compile "$LINENO"; then :
claireho50294ea2010-05-03 15:44:48 -07005341 MSVC_RELEASE_FLAG="/fp:precise"
5342else
claireho27f65472011-06-09 11:11:49 -07005343 MSVC_RELEASE_FLAG="/Op"
claireho50294ea2010-05-03 15:44:48 -07005344fi
claireho50294ea2010-05-03 15:44:48 -07005345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347 CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5348 CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5349 fi
5350fi
5351
Claire Ho85bf2e22009-11-24 14:23:02 -08005352# Check whether to enabled draft APIs
claireho27f65472011-06-09 11:11:49 -07005353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005354$as_echo_n "checking whether to enable draft APIs... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005355enabled=yes
5356U_DEFAULT_SHOW_DRAFT=1
Claire Ho85bf2e22009-11-24 14:23:02 -08005357# Check whether --enable-draft was given.
claireho27f65472011-06-09 11:11:49 -07005358if test "${enable_draft+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005359 enableval=$enable_draft; case "${enableval}" in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005360 no) enabled=no; U_DEFAULT_SHOW_DRAFT=0;
5361 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5362 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005363 *) ;;
5364 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08005365fi
5366
claireho27f65472011-06-09 11:11:49 -07005367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005368$as_echo "$enabled" >&6; }
5369# Make sure that we can use draft API in ICU.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005370if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005371 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005372fi
5373
5374
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005375if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5377set dummy ${ac_tool_prefix}ranlib; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07005378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005379$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005380if ${ac_cv_prog_RANLIB+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005381 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005382else
5383 if test -n "$RANLIB"; then
5384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07005391 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08005392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
claireho27f65472011-06-09 11:11:49 -07005394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005395 break 2
5396 fi
5397done
claireho27f65472011-06-09 11:11:49 -07005398 done
Claire Ho85bf2e22009-11-24 14:23:02 -08005399IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005400
5401fi
5402fi
5403RANLIB=$ac_cv_prog_RANLIB
5404if test -n "$RANLIB"; then
claireho27f65472011-06-09 11:11:49 -07005405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005406$as_echo "$RANLIB" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005407else
claireho27f65472011-06-09 11:11:49 -07005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005409$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005410fi
5411
Claire Ho85bf2e22009-11-24 14:23:02 -08005412
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005413fi
5414if test -z "$ac_cv_prog_RANLIB"; then
5415 ac_ct_RANLIB=$RANLIB
5416 # Extract the first word of "ranlib", so it can be a program name with args.
5417set dummy ranlib; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07005418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005419$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005420if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005421 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005422else
5423 if test -n "$ac_ct_RANLIB"; then
5424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07005431 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08005432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005433 ac_cv_prog_ac_ct_RANLIB="ranlib"
claireho27f65472011-06-09 11:11:49 -07005434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005435 break 2
5436 fi
5437done
claireho27f65472011-06-09 11:11:49 -07005438 done
Claire Ho85bf2e22009-11-24 14:23:02 -08005439IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005440
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005441fi
5442fi
5443ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5444if test -n "$ac_ct_RANLIB"; then
claireho27f65472011-06-09 11:11:49 -07005445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005446$as_echo "$ac_ct_RANLIB" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005447else
claireho27f65472011-06-09 11:11:49 -07005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005449$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005450fi
5451
Claire Ho85bf2e22009-11-24 14:23:02 -08005452 if test "x$ac_ct_RANLIB" = x; then
5453 RANLIB=":"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456yes:)
claireho27f65472011-06-09 11:11:49 -07005457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459ac_tool_warned=yes ;;
5460esac
5461 RANLIB=$ac_ct_RANLIB
5462 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005463else
5464 RANLIB="$ac_cv_prog_RANLIB"
5465fi
5466
Claire Ho85bf2e22009-11-24 14:23:02 -08005467
5468# look for 'ar' the proper way
Claire Ho85bf2e22009-11-24 14:23:02 -08005469if test -n "$ac_tool_prefix"; then
5470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5471set dummy ${ac_tool_prefix}ar; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07005472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005473$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005474if ${ac_cv_prog_AR+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005475 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005476else
Claire Ho85bf2e22009-11-24 14:23:02 -08005477 if test -n "$AR"; then
5478 ac_cv_prog_AR="$AR" # Let the user override the test.
5479else
5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481for as_dir in $PATH
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005482do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07005485 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08005486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_prog_AR="${ac_tool_prefix}ar"
claireho27f65472011-06-09 11:11:49 -07005488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005489 break 2
5490 fi
5491done
claireho27f65472011-06-09 11:11:49 -07005492 done
Claire Ho85bf2e22009-11-24 14:23:02 -08005493IFS=$as_save_IFS
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005494
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005495fi
Claire Ho85bf2e22009-11-24 14:23:02 -08005496fi
5497AR=$ac_cv_prog_AR
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005498if test -n "$AR"; then
claireho27f65472011-06-09 11:11:49 -07005499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005500$as_echo "$AR" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005501else
claireho27f65472011-06-09 11:11:49 -07005502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005503$as_echo "no" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005504fi
5505
5506
Claire Ho85bf2e22009-11-24 14:23:02 -08005507fi
5508if test -z "$ac_cv_prog_AR"; then
5509 ac_ct_AR=$AR
5510 # Extract the first word of "ar", so it can be a program name with args.
5511set dummy ar; ac_word=$2
claireho27f65472011-06-09 11:11:49 -07005512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005513$as_echo_n "checking for $ac_word... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005514if ${ac_cv_prog_ac_ct_AR+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005515 $as_echo_n "(cached) " >&6
5516else
5517 if test -n "$ac_ct_AR"; then
5518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07005525 for ac_exec_ext in '' $ac_executable_extensions; do
Claire Ho85bf2e22009-11-24 14:23:02 -08005526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_ac_ct_AR="ar"
claireho27f65472011-06-09 11:11:49 -07005528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005529 break 2
5530 fi
5531done
claireho27f65472011-06-09 11:11:49 -07005532 done
Claire Ho85bf2e22009-11-24 14:23:02 -08005533IFS=$as_save_IFS
5534
5535fi
5536fi
5537ac_ct_AR=$ac_cv_prog_ac_ct_AR
5538if test -n "$ac_ct_AR"; then
claireho27f65472011-06-09 11:11:49 -07005539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005540$as_echo "$ac_ct_AR" >&6; }
5541else
claireho27f65472011-06-09 11:11:49 -07005542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005543$as_echo "no" >&6; }
5544fi
5545
5546 if test "x$ac_ct_AR" = x; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005547 AR="false"
Claire Ho85bf2e22009-11-24 14:23:02 -08005548 else
5549 case $cross_compiling:$ac_tool_warned in
5550yes:)
claireho27f65472011-06-09 11:11:49 -07005551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553ac_tool_warned=yes ;;
5554esac
5555 AR=$ac_ct_AR
5556 fi
5557else
5558 AR="$ac_cv_prog_AR"
5559fi
5560
Claire Ho85bf2e22009-11-24 14:23:02 -08005561
claireho27f65472011-06-09 11:11:49 -07005562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005563$as_echo_n "checking whether to enable renaming of symbols... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005564enabled=yes
5565U_DISABLE_RENAMING=0
Claire Ho85bf2e22009-11-24 14:23:02 -08005566# Check whether --enable-renaming was given.
claireho27f65472011-06-09 11:11:49 -07005567if test "${enable_renaming+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005568 enableval=$enable_renaming; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005569 yes|"") enabled=yes ;;
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005570 no) enabled=no; U_DISABLE_RENAMING=1;
5571 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5572 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005573 *) ;;
5574 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08005575fi
5576
claireho27f65472011-06-09 11:11:49 -07005577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005578$as_echo "$enabled" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005579
5580
claireho27f65472011-06-09 11:11:49 -07005581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005582$as_echo_n "checking whether to enable function and data tracing... " >&6; }
5583enabled=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005584U_ENABLE_TRACING=0
Claire Ho85bf2e22009-11-24 14:23:02 -08005585# Check whether --enable-tracing was given.
claireho27f65472011-06-09 11:11:49 -07005586if test "${enable_tracing+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005587 enableval=$enable_tracing; case "${enableval}" in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005588 yes|"") enabled=yes;
5589 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5590 U_ENABLE_TRACING=1 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005591 no) enabled=no; U_ENABLE_TRACING=0 ;;
5592 *) ;;
5593 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08005594fi
5595
claireho27f65472011-06-09 11:11:49 -07005596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005597$as_echo "$enabled" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005598
5599
claireho50294ea2010-05-03 15:44:48 -07005600
5601U_ENABLE_DYLOAD=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005602enable=yes
claireho27f65472011-06-09 11:11:49 -07005603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
claireho50294ea2010-05-03 15:44:48 -07005604$as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; }
claireho50294ea2010-05-03 15:44:48 -07005605# Check whether --enable-dyload was given.
claireho27f65472011-06-09 11:11:49 -07005606if test "${enable_dyload+set}" = set; then :
claireho50294ea2010-05-03 15:44:48 -07005607 enableval=$enable_dyload; case "${enableval}" in
5608 yes|"")
5609 U_ENABLE_DYLOAD=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005610 enable=yes
5611 ;;
claireho50294ea2010-05-03 15:44:48 -07005612 no)
5613 U_ENABLE_DYLOAD=0;
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005614 enable=no;
5615 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5616 ;;
claireho50294ea2010-05-03 15:44:48 -07005617 *) ;;
5618 esac
5619fi
5620
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5622$as_echo "$enable" >&6; }
claireho50294ea2010-05-03 15:44:48 -07005623
5624
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005625if test "$enable" = "yes"; then
5626 for ac_header in dlfcn.h
claireho27f65472011-06-09 11:11:49 -07005627do :
5628 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005629if test "x$ac_cv_header_dlfcn_h" = xyes; then :
claireho50294ea2010-05-03 15:44:48 -07005630 cat >>confdefs.h <<_ACEOF
claireho27f65472011-06-09 11:11:49 -07005631#define HAVE_DLFCN_H 1
claireho50294ea2010-05-03 15:44:48 -07005632_ACEOF
5633
5634fi
5635
5636done
5637
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005638 #AC_MSG_RESULT($enabled)
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
claireho50294ea2010-05-03 15:44:48 -07005640$as_echo_n "checking for library containing dlopen... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005641if ${ac_cv_search_dlopen+:} false; then :
claireho50294ea2010-05-03 15:44:48 -07005642 $as_echo_n "(cached) " >&6
5643else
5644 ac_func_search_save_LIBS=$LIBS
claireho27f65472011-06-09 11:11:49 -07005645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07005646/* end confdefs.h. */
5647
5648/* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5651#ifdef __cplusplus
5652extern "C"
5653#endif
5654char dlopen ();
5655int
5656main ()
5657{
5658return dlopen ();
5659 ;
5660 return 0;
5661}
5662_ACEOF
5663for ac_lib in '' dl; do
5664 if test -z "$ac_lib"; then
5665 ac_res="none required"
5666 else
5667 ac_res=-l$ac_lib
5668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5669 fi
claireho27f65472011-06-09 11:11:49 -07005670 if ac_fn_c_try_link "$LINENO"; then :
claireho50294ea2010-05-03 15:44:48 -07005671 ac_cv_search_dlopen=$ac_res
claireho50294ea2010-05-03 15:44:48 -07005672fi
claireho27f65472011-06-09 11:11:49 -07005673rm -f core conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005675 if ${ac_cv_search_dlopen+:} false; then :
claireho50294ea2010-05-03 15:44:48 -07005676 break
5677fi
5678done
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005679if ${ac_cv_search_dlopen+:} false; then :
claireho27f65472011-06-09 11:11:49 -07005680
claireho50294ea2010-05-03 15:44:48 -07005681else
5682 ac_cv_search_dlopen=no
5683fi
5684rm conftest.$ac_ext
5685LIBS=$ac_func_search_save_LIBS
5686fi
claireho27f65472011-06-09 11:11:49 -07005687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
claireho50294ea2010-05-03 15:44:48 -07005688$as_echo "$ac_cv_search_dlopen" >&6; }
5689ac_res=$ac_cv_search_dlopen
claireho27f65472011-06-09 11:11:49 -07005690if test "$ac_res" != no; then :
claireho50294ea2010-05-03 15:44:48 -07005691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5692
5693fi
5694
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005695 for ac_func in dlopen
claireho27f65472011-06-09 11:11:49 -07005696do :
5697 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005698if test "x$ac_cv_func_dlopen" = xyes; then :
claireho50294ea2010-05-03 15:44:48 -07005699 cat >>confdefs.h <<_ACEOF
claireho27f65472011-06-09 11:11:49 -07005700#define HAVE_DLOPEN 1
claireho50294ea2010-05-03 15:44:48 -07005701_ACEOF
5702
5703fi
5704done
5705
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005706
5707 if test "x$ac_cv_func_dlopen" != xyes; then
5708 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5709 fi
claireho50294ea2010-05-03 15:44:48 -07005710fi
5711
claireho50294ea2010-05-03 15:44:48 -07005712# Check for miscellanous functions.
claireho50294ea2010-05-03 15:44:48 -07005713# So, use for putil / tools only.
5714# Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
claireho50294ea2010-05-03 15:44:48 -07005715for ac_func in gettimeofday
claireho27f65472011-06-09 11:11:49 -07005716do :
5717 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005718if test "x$ac_cv_func_gettimeofday" = xyes; then :
claireho50294ea2010-05-03 15:44:48 -07005719 cat >>confdefs.h <<_ACEOF
claireho27f65472011-06-09 11:11:49 -07005720#define HAVE_GETTIMEOFDAY 1
claireho50294ea2010-05-03 15:44:48 -07005721_ACEOF
5722
5723fi
5724done
5725
5726
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005727
Claire Ho85bf2e22009-11-24 14:23:02 -08005728# Check whether to use the evil rpath or not
5729# Check whether --enable-rpath was given.
claireho27f65472011-06-09 11:11:49 -07005730if test "${enable_rpath+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005731 enableval=$enable_rpath; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005732 yes|"") ENABLE_RPATH=YES ;;
5733 no) ;;
5734 *) ;;
5735 esac
5736else
5737 ENABLE_RPATH=NO
5738
Claire Ho85bf2e22009-11-24 14:23:02 -08005739fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005740
5741
5742
Claire Ho85bf2e22009-11-24 14:23:02 -08005743
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005744
Claire Ho85bf2e22009-11-24 14:23:02 -08005745ac_ext=cpp
5746ac_cpp='$CXXCPP $CPPFLAGS'
5747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5750
claireho27f65472011-06-09 11:11:49 -07005751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
claireho50294ea2010-05-03 15:44:48 -07005752$as_echo_n "checking if we have a C++ compiler... " >&6; }
claireho27f65472011-06-09 11:11:49 -07005753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07005754/* end confdefs.h. */
5755
5756int
5757main ()
5758{
5759
5760 ;
5761 return 0;
5762}
5763_ACEOF
claireho27f65472011-06-09 11:11:49 -07005764if ac_fn_cxx_try_compile "$LINENO"; then :
claireho50294ea2010-05-03 15:44:48 -07005765 cxx_okay=yes
5766else
claireho27f65472011-06-09 11:11:49 -07005767 cxx_okay=no
claireho50294ea2010-05-03 15:44:48 -07005768fi
claireho50294ea2010-05-03 15:44:48 -07005769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770if test $cxx_okay = yes
5771then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
5773$as_echo "Good" >&6; }
claireho50294ea2010-05-03 15:44:48 -07005774else
claireho27f65472011-06-09 11:11:49 -07005775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
claireho50294ea2010-05-03 15:44:48 -07005776$as_echo "no" >&6; }
claireho27f65472011-06-09 11:11:49 -07005777 as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
claireho50294ea2010-05-03 15:44:48 -07005778fi
5779
claireho27f65472011-06-09 11:11:49 -07005780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005781$as_echo_n "checking if #include <string> works... " >&6; }
claireho27f65472011-06-09 11:11:49 -07005782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08005783/* end confdefs.h. */
5784#include <string>
5785int
5786main ()
5787{
5788
5789 ;
5790 return 0;
5791}
5792_ACEOF
claireho27f65472011-06-09 11:11:49 -07005793if ac_fn_cxx_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005794 ac_cv_header_stdstring=yes
5795else
claireho27f65472011-06-09 11:11:49 -07005796 ac_cv_header_stdstring=no
Claire Ho85bf2e22009-11-24 14:23:02 -08005797fi
Claire Ho85bf2e22009-11-24 14:23:02 -08005798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
claireho27f65472011-06-09 11:11:49 -07005799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005800$as_echo "$ac_cv_header_stdstring" >&6; }
5801if test $ac_cv_header_stdstring = yes
5802then
5803 U_HAVE_STD_STRING=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005804else
5805 U_HAVE_STD_STRING=0
5806 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0"
Claire Ho85bf2e22009-11-24 14:23:02 -08005807fi
5808
5809ac_ext=c
5810ac_cpp='$CPP $CPPFLAGS'
5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814
5815
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005816threads=true
5817
Claire Ho85bf2e22009-11-24 14:23:02 -08005818# Enable/disable threads
5819# Check whether --enable-threads was given.
claireho27f65472011-06-09 11:11:49 -07005820if test "${enable_threads+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005821 enableval=$enable_threads; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005822 yes) threads=true ;;
5823 no) threads=false ;;
claireho27f65472011-06-09 11:11:49 -07005824 *) as_fn_error $? "bad value ${enableval} for --enable-threads" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005825 esac
5826else
5827 threads=true
Claire Ho85bf2e22009-11-24 14:23:02 -08005828fi
5829
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005830
5831if test "$threads" = true; then
5832 THREADS_TRUE=
5833else
5834 THREADS_TRUE='#'
5835fi
5836
5837ICU_USE_THREADS=0
5838OLD_LIBS=${LIBS}
5839
5840if test $threads = true; then
Claire Ho85bf2e22009-11-24 14:23:02 -08005841 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
5842 # and must do this before seaching for pthread_mutex_destroy, or
5843 # we will pick up libpthreads.so not libpthread.so
5844 # If this fails, then we must test for HPUX specials, before
5845 # moving on to a more generic test
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005846
claireho27f65472011-06-09 11:11:49 -07005847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005848$as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005849if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005850 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005851else
5852 ac_check_lib_save_LIBS=$LIBS
5853LIBS="-lpthread $LIBS"
claireho27f65472011-06-09 11:11:49 -07005854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005855/* end confdefs.h. */
5856
Claire Ho85bf2e22009-11-24 14:23:02 -08005857/* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005860#ifdef __cplusplus
5861extern "C"
5862#endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005863char pthread_attr_init ();
5864int
5865main ()
5866{
Claire Ho85bf2e22009-11-24 14:23:02 -08005867return pthread_attr_init ();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005868 ;
5869 return 0;
5870}
5871_ACEOF
claireho27f65472011-06-09 11:11:49 -07005872if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005873 ac_cv_lib_pthread_pthread_attr_init=yes
5874else
claireho27f65472011-06-09 11:11:49 -07005875 ac_cv_lib_pthread_pthread_attr_init=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005876fi
claireho27f65472011-06-09 11:11:49 -07005877rm -f core conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005879LIBS=$ac_check_lib_save_LIBS
5880fi
claireho27f65472011-06-09 11:11:49 -07005881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005882$as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005883if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005884 cat >>confdefs.h <<_ACEOF
5885#define HAVE_LIBPTHREAD 1
5886_ACEOF
5887
5888 LIBS="-lpthread $LIBS"
5889
5890fi
5891
5892 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
5893 ICU_USE_THREADS=1
5894 else
Claire Ho85bf2e22009-11-24 14:23:02 -08005895 # Locate the right library for POSIX threads. We look for the
5896 # symbols in the libraries first, because on Solaris libc provides
5897 # pthread_create but libpthread has the real code :(
5898 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
5899 # FreeBSD users may need libpthread if they do not have libc_r.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005900
5901
claireho27f65472011-06-09 11:11:49 -07005902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005903$as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005904if ${ac_cv_search_pthread_mutex_destroy+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005905 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005906else
5907 ac_func_search_save_LIBS="$LIBS"
5908ac_cv_search_pthread_mutex_destroy="no"
5909for i in pthread pthreads c_r ; do
5910LIBS="-l$i $ac_func_search_save_LIBS"
claireho27f65472011-06-09 11:11:49 -07005911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005912/* end confdefs.h. */
5913
Claire Ho85bf2e22009-11-24 14:23:02 -08005914/* Override any GCC internal prototype to avoid an error.
5915 Use char because int might match the return type of a GCC
5916 builtin and then its argument prototype would still apply. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005917#ifdef __cplusplus
5918extern "C"
5919#endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005920char pthread_mutex_destroy ();
5921int
5922main ()
5923{
Claire Ho85bf2e22009-11-24 14:23:02 -08005924return pthread_mutex_destroy ();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005925 ;
5926 return 0;
5927}
5928_ACEOF
claireho27f65472011-06-09 11:11:49 -07005929if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005930 ac_cv_search_pthread_mutex_destroy="-l$i"
5931break
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005932fi
claireho27f65472011-06-09 11:11:49 -07005933rm -f core conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005935done
5936if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
claireho27f65472011-06-09 11:11:49 -07005937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005938/* end confdefs.h. */
5939
Claire Ho85bf2e22009-11-24 14:23:02 -08005940/* Override any GCC internal prototype to avoid an error.
5941 Use char because int might match the return type of a GCC
5942 builtin and then its argument prototype would still apply. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005943#ifdef __cplusplus
5944extern "C"
5945#endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005946char pthread_mutex_destroy ();
5947int
5948main ()
5949{
Claire Ho85bf2e22009-11-24 14:23:02 -08005950return pthread_mutex_destroy ();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005951 ;
5952 return 0;
5953}
5954_ACEOF
claireho27f65472011-06-09 11:11:49 -07005955if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005956 ac_cv_search_pthread_mutex_destroy="none required"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005957fi
claireho27f65472011-06-09 11:11:49 -07005958rm -f core conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005960fi
5961LIBS="$ac_func_search_save_LIBS"
5962fi
claireho27f65472011-06-09 11:11:49 -07005963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005964$as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005965if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
5966 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
5967
5968else :
5969
5970fi
5971
5972 if test "$ac_cv_search_pthread_mutex_destroy" != no; then
5973 ICU_USE_THREADS=1
5974 else
Claire Ho85bf2e22009-11-24 14:23:02 -08005975 # For HP 11
claireho27f65472011-06-09 11:11:49 -07005976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08005977$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07005978if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08005979 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005980else
5981 ac_check_lib_save_LIBS=$LIBS
5982LIBS="-lpthread $LIBS"
claireho27f65472011-06-09 11:11:49 -07005983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005984/* end confdefs.h. */
5985
Claire Ho85bf2e22009-11-24 14:23:02 -08005986/* Override any GCC internal prototype to avoid an error.
5987 Use char because int might match the return type of a GCC
5988 builtin and then its argument prototype would still apply. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005989#ifdef __cplusplus
5990extern "C"
5991#endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005992char pthread_mutex_init ();
5993int
5994main ()
5995{
Claire Ho85bf2e22009-11-24 14:23:02 -08005996return pthread_mutex_init ();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07005997 ;
5998 return 0;
5999}
6000_ACEOF
claireho27f65472011-06-09 11:11:49 -07006001if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006002 ac_cv_lib_pthread_pthread_mutex_init=yes
6003else
claireho27f65472011-06-09 11:11:49 -07006004 ac_cv_lib_pthread_pthread_mutex_init=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006005fi
claireho27f65472011-06-09 11:11:49 -07006006rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006008LIBS=$ac_check_lib_save_LIBS
6009fi
claireho27f65472011-06-09 11:11:49 -07006010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006011$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006012if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006013 cat >>confdefs.h <<_ACEOF
6014#define HAVE_LIBPTHREAD 1
6015_ACEOF
6016
6017 LIBS="-lpthread $LIBS"
6018
6019fi
6020
6021 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6022 ICU_USE_THREADS=1
6023 fi
6024 fi
6025
claireho27f65472011-06-09 11:11:49 -07006026 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006027if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006028
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006029fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006030
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006031
6032 if test $ac_cv_func_pthread_mutex_lock = yes; then
6033 ICU_USE_THREADS=1
6034 fi
6035 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006036 # Check to see if we are using CygWin with MSVC
6037 case "${host}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006038 *-pc-cygwin*|*-pc-mingw*)
Claire Ho85bf2e22009-11-24 14:23:02 -08006039 # For gcc, the thread options are set by mh-mingw/mh-cygwin
claireho50294ea2010-05-03 15:44:48 -07006040 # For msvc, the thread options are set by runConfigureICU
Claire Ho85bf2e22009-11-24 14:23:02 -08006041 ICU_USE_THREADS=1
claireho50294ea2010-05-03 15:44:48 -07006042 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006043 *-*-hpux*)
Claire Ho85bf2e22009-11-24 14:23:02 -08006044 # Add -mt because it does several nice things on newer compilers.
6045 case "${icu_cv_host_frag}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006046 mh-hpux-acc)
6047 OLD_CXXFLAGS="${CXXFLAGS}"
6048 CXXFLAGS="${CXXFLAGS} -mt"
6049 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
6050 CXXFLAGS="${OLD_CXXFLAGS}"
6051 fi
6052 ;;
6053 esac
6054 ;;
claireho50294ea2010-05-03 15:44:48 -07006055 *-*-solaris*)
6056 case "${icu_cv_host_frag}" in
6057 mh-solaris)
6058 LIBS="${LIBS} -mt"
6059 ;;
6060 esac
6061 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006062 esac
6063fi
6064
6065
6066
Claire Ho85bf2e22009-11-24 14:23:02 -08006067# Check whether --enable-weak-threads was given.
claireho27f65472011-06-09 11:11:49 -07006068if test "${enable_weak_threads+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006069 enableval=$enable_weak_threads; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006070 yes)
6071 LIB_THREAD="${LIBS%${OLD_LIBS}}"
6072 LIBS=${OLD_LIBS}
6073 ;;
6074 no) ;;
claireho27f65472011-06-09 11:11:49 -07006075 *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006076 esac
Claire Ho85bf2e22009-11-24 14:23:02 -08006077fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006078
6079
6080
Claire Ho85bf2e22009-11-24 14:23:02 -08006081# Check for mmap()
6082
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006083# The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
6084# Do this check instead.
6085HAVE_MMAP=0
claireho27f65472011-06-09 11:11:49 -07006086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006087$as_echo_n "checking for mmap... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006088if ${ac_cv_func_mmap_ok+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006089 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006090else
claireho27f65472011-06-09 11:11:49 -07006091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006092/* end confdefs.h. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006093#include <unistd.h>
6094#include <sys/mman.h>
6095#include <sys/stat.h>
6096#include <fcntl.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006097int
6098main ()
6099{
Claire Ho85bf2e22009-11-24 14:23:02 -08006100mmap((void *)0, 0, PROT_READ, 0, 0, 0);
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006101 ;
6102 return 0;
6103}
6104_ACEOF
claireho27f65472011-06-09 11:11:49 -07006105if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006106 ac_cv_func_mmap_ok=yes
6107else
claireho27f65472011-06-09 11:11:49 -07006108 ac_cv_func_mmap_ok=no
6109fi
6110rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006112fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006113
claireho27f65472011-06-09 11:11:49 -07006114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006115$as_echo "$ac_cv_func_mmap_ok" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006116if test $ac_cv_func_mmap_ok = yes
6117then
6118 HAVE_MMAP=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006119else
6120 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006121fi
6122
6123
claireho27f65472011-06-09 11:11:49 -07006124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006125$as_echo_n "checking for genccode assembly... " >&6; }
6126
6127# Check to see if genccode can generate simple assembly.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006128GENCCODE_ASSEMBLY=
6129case "${host}" in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006130*-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006131 if test "$GCC" = yes; then
Claire Ho85bf2e22009-11-24 14:23:02 -08006132 # We're using gcc, and the simple -a gcc command line works for genccode
6133 GENCCODE_ASSEMBLY="-a gcc"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006134 fi ;;
6135i*86-*-solaris*)
6136 if test "$GCC" = yes; then
Claire Ho85bf2e22009-11-24 14:23:02 -08006137 # When using gcc, look if we're also using GNU as.
6138 # When using GNU as, the simple -a gcc command line works for genccode.
6139 asv=`"${CC}" -print-prog-name=as 2>/dev/null`
6140 asv=`"${asv}" --version 2>/dev/null`
6141 case "X${asv}" in
6142 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
6143 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
6144 esac
6145 unset asv
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006146 else
6147 GENCCODE_ASSEMBLY="-a sun-x86"
6148 fi ;;
6149sparc-*-solaris*)
6150 GENCCODE_ASSEMBLY="-a sun"
6151 ;;
6152ia64-*-hpux*)
6153 GENCCODE_ASSEMBLY="-a aCC-ia64"
6154 ;;
6155esac
6156
6157
claireho27f65472011-06-09 11:11:49 -07006158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006159$as_echo "$GENCCODE_ASSEMBLY" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006160
Claire Ho85bf2e22009-11-24 14:23:02 -08006161# Checks for header files
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006162for ac_header in inttypes.h
claireho27f65472011-06-09 11:11:49 -07006163do :
6164 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006165if test "x$ac_cv_header_inttypes_h" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006166 cat >>confdefs.h <<_ACEOF
claireho27f65472011-06-09 11:11:49 -07006167#define HAVE_INTTYPES_H 1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006168_ACEOF
6169
6170fi
6171
6172done
6173
6174if test $ac_cv_header_inttypes_h = no; then
6175 U_HAVE_INTTYPES_H=0
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006176 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006177else
6178 U_HAVE_INTTYPES_H=1
6179fi
6180if test "$CC" = ccc; then
claireho27f65472011-06-09 11:11:49 -07006181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006182$as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006183 case "${host}" in
6184 alpha*-*-*) U_HAVE_INTTYPES_H=0;
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006185 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006186 esac
6187fi
6188
6189
6190
Claire Ho85bf2e22009-11-24 14:23:02 -08006191for ac_header in dirent.h
claireho27f65472011-06-09 11:11:49 -07006192do :
6193 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006194if test "x$ac_cv_header_dirent_h" = xyes; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006195 cat >>confdefs.h <<_ACEOF
claireho27f65472011-06-09 11:11:49 -07006196#define HAVE_DIRENT_H 1
Claire Ho85bf2e22009-11-24 14:23:02 -08006197_ACEOF
6198
6199fi
6200
6201done
6202
6203if test $ac_cv_header_dirent_h = no; then
6204 U_HAVE_DIRENT_H=0
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006205 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
Claire Ho85bf2e22009-11-24 14:23:02 -08006206else
6207 U_HAVE_DIRENT_H=1
6208fi
6209
6210
6211
Claire Ho85bf2e22009-11-24 14:23:02 -08006212# Check for endianness
claireho27f65472011-06-09 11:11:49 -07006213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006214$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006215if ${ac_cv_c_bigendian+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006216 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006217else
Claire Ho85bf2e22009-11-24 14:23:02 -08006218 ac_cv_c_bigendian=unknown
6219 # See if we're dealing with a universal compiler.
claireho27f65472011-06-09 11:11:49 -07006220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08006221/* end confdefs.h. */
6222#ifndef __APPLE_CC__
6223 not a universal capable compiler
6224 #endif
6225 typedef int dummy;
6226
6227_ACEOF
claireho27f65472011-06-09 11:11:49 -07006228if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006229
6230 # Check for potential -arch flags. It is not universal unless
claireho27f65472011-06-09 11:11:49 -07006231 # there are at least two -arch flags with different values.
6232 ac_arch=
6233 ac_prev=
6234 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6235 if test -n "$ac_prev"; then
6236 case $ac_word in
6237 i?86 | x86_64 | ppc | ppc64)
6238 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6239 ac_arch=$ac_word
6240 else
6241 ac_cv_c_bigendian=universal
6242 break
6243 fi
6244 ;;
6245 esac
6246 ac_prev=
6247 elif test "x$ac_word" = "x-arch"; then
6248 ac_prev=arch
6249 fi
6250 done
Claire Ho85bf2e22009-11-24 14:23:02 -08006251fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 if test $ac_cv_c_bigendian = unknown; then
6254 # See if sys/param.h defines the BYTE_ORDER macro.
claireho27f65472011-06-09 11:11:49 -07006255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006256/* end confdefs.h. */
6257#include <sys/types.h>
Claire Ho85bf2e22009-11-24 14:23:02 -08006258 #include <sys/param.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006259
6260int
6261main ()
6262{
Claire Ho85bf2e22009-11-24 14:23:02 -08006263#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6264 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6265 && LITTLE_ENDIAN)
6266 bogus endian macros
6267 #endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006268
6269 ;
6270 return 0;
6271}
6272_ACEOF
claireho27f65472011-06-09 11:11:49 -07006273if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006274 # It does; now see whether it defined to BIG_ENDIAN or not.
claireho27f65472011-06-09 11:11:49 -07006275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006276/* end confdefs.h. */
6277#include <sys/types.h>
Claire Ho85bf2e22009-11-24 14:23:02 -08006278 #include <sys/param.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006279
6280int
6281main ()
6282{
6283#if BYTE_ORDER != BIG_ENDIAN
Claire Ho85bf2e22009-11-24 14:23:02 -08006284 not big endian
6285 #endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006286
6287 ;
6288 return 0;
6289}
6290_ACEOF
claireho27f65472011-06-09 11:11:49 -07006291if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006292 ac_cv_c_bigendian=yes
6293else
claireho27f65472011-06-09 11:11:49 -07006294 ac_cv_c_bigendian=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006295fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08006297fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 fi
6300 if test $ac_cv_c_bigendian = unknown; then
6301 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
claireho27f65472011-06-09 11:11:49 -07006302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006303/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08006304#include <limits.h>
6305
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006306int
6307main ()
6308{
Claire Ho85bf2e22009-11-24 14:23:02 -08006309#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6310 bogus endian macros
6311 #endif
6312
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006313 ;
6314 return 0;
6315}
6316_ACEOF
claireho27f65472011-06-09 11:11:49 -07006317if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006318 # It does; now see whether it defined to _BIG_ENDIAN or not.
claireho27f65472011-06-09 11:11:49 -07006319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08006320/* end confdefs.h. */
6321#include <limits.h>
6322
6323int
6324main ()
6325{
6326#ifndef _BIG_ENDIAN
6327 not big endian
6328 #endif
6329
6330 ;
6331 return 0;
6332}
6333_ACEOF
claireho27f65472011-06-09 11:11:49 -07006334if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006335 ac_cv_c_bigendian=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006336else
claireho27f65472011-06-09 11:11:49 -07006337 ac_cv_c_bigendian=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006338fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08006340fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 fi
6343 if test $ac_cv_c_bigendian = unknown; then
6344 # Compile a test program.
claireho27f65472011-06-09 11:11:49 -07006345 if test "$cross_compiling" = yes; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006346 # Try to guess by grepping values from an object file.
claireho27f65472011-06-09 11:11:49 -07006347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Claire Ho85bf2e22009-11-24 14:23:02 -08006348/* end confdefs.h. */
6349short int ascii_mm[] =
6350 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6351 short int ascii_ii[] =
6352 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6353 int use_ascii (int i) {
6354 return ascii_mm[i] + ascii_ii[i];
6355 }
6356 short int ebcdic_ii[] =
6357 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6358 short int ebcdic_mm[] =
6359 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6360 int use_ebcdic (int i) {
6361 return ebcdic_mm[i] + ebcdic_ii[i];
6362 }
6363 extern int foo;
6364
6365int
6366main ()
6367{
6368return use_ascii (foo) == use_ebcdic (foo);
6369 ;
6370 return 0;
6371}
6372_ACEOF
claireho27f65472011-06-09 11:11:49 -07006373if ac_fn_c_try_compile "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006374 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6375 ac_cv_c_bigendian=yes
6376 fi
6377 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6378 if test "$ac_cv_c_bigendian" = unknown; then
6379 ac_cv_c_bigendian=no
6380 else
6381 # finding both strings is unlikely to happen, but who knows?
6382 ac_cv_c_bigendian=unknown
6383 fi
6384 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006385fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006387else
claireho27f65472011-06-09 11:11:49 -07006388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006389/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08006390$ac_includes_default
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006391int
6392main ()
6393{
Claire Ho85bf2e22009-11-24 14:23:02 -08006394
6395 /* Are we little or big endian? From Harbison&Steele. */
6396 union
6397 {
6398 long int l;
6399 char c[sizeof (long int)];
6400 } u;
6401 u.l = 1;
6402 return u.c[sizeof (long int) - 1] == 1;
6403
6404 ;
6405 return 0;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006406}
6407_ACEOF
claireho27f65472011-06-09 11:11:49 -07006408if ac_fn_c_try_run "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006409 ac_cv_c_bigendian=no
6410else
claireho27f65472011-06-09 11:11:49 -07006411 ac_cv_c_bigendian=yes
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006412fi
claireho27f65472011-06-09 11:11:49 -07006413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6414 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006415fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006416
Claire Ho85bf2e22009-11-24 14:23:02 -08006417 fi
6418fi
claireho27f65472011-06-09 11:11:49 -07006419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006420$as_echo "$ac_cv_c_bigendian" >&6; }
6421 case $ac_cv_c_bigendian in #(
6422 yes)
claireho27f65472011-06-09 11:11:49 -07006423 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Claire Ho85bf2e22009-11-24 14:23:02 -08006424;; #(
6425 no)
6426 ;; #(
6427 universal)
6428
claireho27f65472011-06-09 11:11:49 -07006429$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Claire Ho85bf2e22009-11-24 14:23:02 -08006430
6431 ;; #(
6432 *)
claireho27f65472011-06-09 11:11:49 -07006433 as_fn_error $? "unknown endianness
6434 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08006435 esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006436
6437if test $ac_cv_c_bigendian = no; then
6438U_IS_BIG_ENDIAN=0
6439U_ENDIAN_CHAR="l"
6440else
6441U_IS_BIG_ENDIAN=1
6442U_ENDIAN_CHAR="b"
6443fi
6444
6445
Claire Ho85bf2e22009-11-24 14:23:02 -08006446# Do various POSIX related checks
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006447U_HAVE_NL_LANGINFO_CODESET=0
6448U_NL_LANGINFO_CODESET=-1
claireho27f65472011-06-09 11:11:49 -07006449ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006450if test "x$ac_cv_func_nl_langinfo" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006451 U_HAVE_NL_LANGINFO=1
6452else
6453 U_HAVE_NL_LANGINFO=0
6454fi
6455
6456if test $U_HAVE_NL_LANGINFO -eq 1; then
claireho27f65472011-06-09 11:11:49 -07006457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006458$as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006459if ${ac_cv_nl_langinfo_codeset+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006460 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006461else
6462 ac_cv_nl_langinfo_codeset="unknown"
6463 for a in CODESET _NL_CTYPE_CODESET_NAME; do
claireho27f65472011-06-09 11:11:49 -07006464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006465/* end confdefs.h. */
6466#include <langinfo.h>
6467int
6468main ()
6469{
6470nl_langinfo($a);
6471 ;
6472 return 0;
6473}
6474_ACEOF
claireho27f65472011-06-09 11:11:49 -07006475if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006476 ac_cv_nl_langinfo_codeset="$a"; break
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006477fi
claireho27f65472011-06-09 11:11:49 -07006478rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006480 done
6481fi
claireho27f65472011-06-09 11:11:49 -07006482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006483$as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006484 if test x$ac_cv_nl_langinfo_codeset != xunknown
6485 then
6486 U_HAVE_NL_LANGINFO_CODESET=1
6487 U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006488 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6489 then
6490 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6491 fi
6492 else
6493 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006494 fi
6495fi
6496
6497
6498
Claire Ho85bf2e22009-11-24 14:23:02 -08006499# Namespace support checks
6500ac_ext=cpp
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006501ac_cpp='$CXXCPP $CPPFLAGS'
6502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6505
claireho27f65472011-06-09 11:11:49 -07006506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006507$as_echo_n "checking for namespace support... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006508if ${ac_cv_namespace_ok+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006509 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006510else
claireho27f65472011-06-09 11:11:49 -07006511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006512/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08006513namespace x_version {void f(){}}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006514 namespace x = x_version;
6515 using namespace x_version;
6516
6517int
6518main ()
6519{
Claire Ho85bf2e22009-11-24 14:23:02 -08006520f();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006521 ;
6522 return 0;
6523}
6524_ACEOF
claireho27f65472011-06-09 11:11:49 -07006525if ac_fn_cxx_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006526 ac_cv_namespace_ok=yes
6527else
claireho27f65472011-06-09 11:11:49 -07006528 ac_cv_namespace_ok=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext \
6531 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006532fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006533
claireho27f65472011-06-09 11:11:49 -07006534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006535$as_echo "$ac_cv_namespace_ok" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006536U_HAVE_NAMESPACE=1
6537if test $ac_cv_namespace_ok = no
6538then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006539 as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006540 U_HAVE_NAMESPACE=0
6541fi
6542
6543
claireho27f65472011-06-09 11:11:49 -07006544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006545$as_echo_n "checking for properly overriding new and delete... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006546U_OVERRIDE_CXX_ALLOCATION=0
6547U_HAVE_PLACEMENT_NEW=0
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006548if ${ac_cv_override_cxx_allocation_ok+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006549 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006550else
claireho27f65472011-06-09 11:11:49 -07006551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006552/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08006553#include <stdlib.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006554 class UMemory {
6555 public:
6556 void *operator new(size_t size) {return malloc(size);}
6557 void *operator new[](size_t size) {return malloc(size);}
6558 void operator delete(void *p) {free(p);}
6559 void operator delete[](void *p) {free(p);}
6560 };
6561
6562int
6563main ()
6564{
6565
6566 ;
6567 return 0;
6568}
6569_ACEOF
claireho27f65472011-06-09 11:11:49 -07006570if ac_fn_cxx_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006571 ac_cv_override_cxx_allocation_ok=yes
6572else
claireho27f65472011-06-09 11:11:49 -07006573 ac_cv_override_cxx_allocation_ok=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006577fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006578
claireho27f65472011-06-09 11:11:49 -07006579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006580$as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006581if test $ac_cv_override_cxx_allocation_ok = yes
6582then
6583 U_OVERRIDE_CXX_ALLOCATION=1
claireho27f65472011-06-09 11:11:49 -07006584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006585$as_echo_n "checking for placement new and delete... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006586 if ${ac_cv_override_placement_new_ok+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006587 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006588else
claireho27f65472011-06-09 11:11:49 -07006589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006590/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08006591#include <stdlib.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006592 class UMemory {
6593 public:
6594 void *operator new(size_t size) {return malloc(size);}
6595 void *operator new[](size_t size) {return malloc(size);}
6596 void operator delete(void *p) {free(p);}
6597 void operator delete[](void *p) {free(p);}
6598 void * operator new(size_t, void *ptr) { return ptr; }
6599 void operator delete(void *, void *) {}
6600 };
6601
6602int
6603main ()
6604{
6605
6606 ;
6607 return 0;
6608}
6609_ACEOF
claireho27f65472011-06-09 11:11:49 -07006610if ac_fn_cxx_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006611 ac_cv_override_placement_new_ok=yes
6612else
claireho27f65472011-06-09 11:11:49 -07006613 ac_cv_override_placement_new_ok=no
6614fi
6615rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006617fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006618
claireho27f65472011-06-09 11:11:49 -07006619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006620$as_echo "$ac_cv_override_placement_new_ok" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006621 if test $ac_cv_override_placement_new_ok = yes
6622 then
6623 U_HAVE_PLACEMENT_NEW=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006624 else
6625 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006626 fi
claireho50294ea2010-05-03 15:44:48 -07006627else
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006628 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
claireho50294ea2010-05-03 15:44:48 -07006629fi
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006630
claireho50294ea2010-05-03 15:44:48 -07006631
6632
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006633ac_ext=c
6634ac_cpp='$CPP $CPPFLAGS'
6635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638
claireho27f65472011-06-09 11:11:49 -07006639ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006640if test "x$ac_cv_func_popen" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006641
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006642fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006643
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006644if test x$ac_cv_func_popen = xyes
6645then
6646 U_HAVE_POPEN=1
6647else
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006648 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006649 U_HAVE_POPEN=0
6650fi
6651
6652
claireho27f65472011-06-09 11:11:49 -07006653ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006654if test "x$ac_cv_func_tzset" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006655
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006656fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006657
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006658U_HAVE_TZSET=0
6659if test x$ac_cv_func_tzset = xyes
6660then
6661 U_TZSET=tzset
6662 U_HAVE_TZSET=1
6663else
claireho27f65472011-06-09 11:11:49 -07006664 ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006665if test "x$ac_cv_func__tzset" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006666
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006667fi
Claire Ho85bf2e22009-11-24 14:23:02 -08006668
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006669 if test x$ac_cv_func__tzset = xyes
6670 then
6671 U_TZSET=_tzset
6672 U_HAVE_TZSET=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006673 else
6674 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006675 fi
6676fi
6677
6678
6679
6680U_HAVE_TZNAME=0
claireho27f65472011-06-09 11:11:49 -07006681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006682$as_echo_n "checking for tzname... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006683if ${ac_cv_var_tzname+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006684 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006685else
claireho27f65472011-06-09 11:11:49 -07006686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006687/* end confdefs.h. */
6688#ifndef __USE_POSIX
6689#define __USE_POSIX
6690#endif
6691#include <stdlib.h>
6692#include <time.h>
6693#ifndef tzname /* For SGI. */
6694extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6695#endif
6696int
6697main ()
6698{
6699atoi(*tzname);
6700 ;
6701 return 0;
6702}
6703_ACEOF
claireho27f65472011-06-09 11:11:49 -07006704if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006705 ac_cv_var_tzname=yes
6706else
claireho27f65472011-06-09 11:11:49 -07006707 ac_cv_var_tzname=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006708fi
claireho27f65472011-06-09 11:11:49 -07006709rm -f core conftest.err conftest.$ac_objext \
6710 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006711fi
claireho27f65472011-06-09 11:11:49 -07006712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006713$as_echo "$ac_cv_var_tzname" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006714if test $ac_cv_var_tzname = yes; then
6715 U_TZNAME=tzname
6716 U_HAVE_TZNAME=1
6717else
claireho27f65472011-06-09 11:11:49 -07006718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006719$as_echo_n "checking for _tzname... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006720if ${ac_cv_var__tzname+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006721 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006722else
claireho27f65472011-06-09 11:11:49 -07006723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006724/* end confdefs.h. */
Claire Ho85bf2e22009-11-24 14:23:02 -08006725#include <stdlib.h>
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006726 #include <time.h>
6727 extern char *_tzname[];
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006728int
6729main ()
6730{
Claire Ho85bf2e22009-11-24 14:23:02 -08006731atoi(*_tzname);
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006732 ;
6733 return 0;
6734}
6735_ACEOF
claireho27f65472011-06-09 11:11:49 -07006736if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006737 ac_cv_var__tzname=yes
6738else
claireho27f65472011-06-09 11:11:49 -07006739 ac_cv_var__tzname=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006740fi
claireho27f65472011-06-09 11:11:49 -07006741rm -f core conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006743fi
claireho27f65472011-06-09 11:11:49 -07006744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006745$as_echo "$ac_cv_var__tzname" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006746 if test $ac_cv_var__tzname = yes; then
6747 U_TZNAME=_tzname
6748 U_HAVE_TZNAME=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006749 else
6750 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006751 fi
6752fi
6753
6754
6755
claireho27f65472011-06-09 11:11:49 -07006756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006757$as_echo_n "checking for timezone... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006758if ${ac_cv_var_timezone+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006759 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006760else
claireho27f65472011-06-09 11:11:49 -07006761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006762/* end confdefs.h. */
6763#ifndef __USE_POSIX
6764#define __USE_POSIX
6765#endif
6766#ifndef __USE_XOPEN
6767#define __USE_XOPEN
6768#endif
6769#include <time.h>
6770
6771int
6772main ()
6773{
6774timezone = 1;
6775 ;
6776 return 0;
6777}
6778_ACEOF
claireho27f65472011-06-09 11:11:49 -07006779if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006780 ac_cv_var_timezone=yes
6781else
claireho27f65472011-06-09 11:11:49 -07006782 ac_cv_var_timezone=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006783fi
claireho27f65472011-06-09 11:11:49 -07006784rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006786fi
claireho27f65472011-06-09 11:11:49 -07006787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006788$as_echo "$ac_cv_var_timezone" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006789U_HAVE_TIMEZONE=0
6790if test $ac_cv_var_timezone = yes; then
6791 U_TIMEZONE=timezone
6792 U_HAVE_TIMEZONE=1
6793else
claireho27f65472011-06-09 11:11:49 -07006794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006795$as_echo_n "checking for __timezone... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006796if ${ac_cv_var___timezone+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006797 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006798else
claireho27f65472011-06-09 11:11:49 -07006799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006800/* end confdefs.h. */
6801#include <time.h>
6802int
6803main ()
6804{
6805__timezone = 1;
6806 ;
6807 return 0;
6808}
6809_ACEOF
claireho27f65472011-06-09 11:11:49 -07006810if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006811 ac_cv_var___timezone=yes
6812else
claireho27f65472011-06-09 11:11:49 -07006813 ac_cv_var___timezone=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006814fi
claireho27f65472011-06-09 11:11:49 -07006815rm -f core conftest.err conftest.$ac_objext \
6816 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006817fi
claireho27f65472011-06-09 11:11:49 -07006818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006819$as_echo "$ac_cv_var___timezone" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006820 if test $ac_cv_var___timezone = yes; then
6821 U_TIMEZONE=__timezone
6822 U_HAVE_TIMEZONE=1
6823 else
claireho27f65472011-06-09 11:11:49 -07006824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006825$as_echo_n "checking for _timezone... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006826if ${ac_cv_var__timezone+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08006827 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006828else
claireho27f65472011-06-09 11:11:49 -07006829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006830/* end confdefs.h. */
6831#include <time.h>
6832int
6833main ()
6834{
6835_timezone = 1;
6836 ;
6837 return 0;
6838}
6839_ACEOF
claireho27f65472011-06-09 11:11:49 -07006840if ac_fn_c_try_link "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006841 ac_cv_var__timezone=yes
6842else
claireho27f65472011-06-09 11:11:49 -07006843 ac_cv_var__timezone=no
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006844fi
claireho27f65472011-06-09 11:11:49 -07006845rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006847fi
claireho27f65472011-06-09 11:11:49 -07006848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08006849$as_echo "$ac_cv_var__timezone" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006850 if test $ac_cv_var__timezone = yes; then
6851 U_TIMEZONE=_timezone
6852 U_HAVE_TIMEZONE=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006853 else
6854 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006855 fi
6856 fi
6857fi
6858
6859
6860
Claire Ho85bf2e22009-11-24 14:23:02 -08006861# Checks for typedefs
claireho27f65472011-06-09 11:11:49 -07006862ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006863if test "x$ac_cv_type_int8_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006864
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006865else
6866
6867cat >>confdefs.h <<_ACEOF
6868#define int8_t signed char
6869_ACEOF
6870
6871fi
6872
claireho27f65472011-06-09 11:11:49 -07006873ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006874if test "x$ac_cv_type_uint8_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006875
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006876else
6877
6878cat >>confdefs.h <<_ACEOF
6879#define uint8_t unsigned char
6880_ACEOF
6881
6882fi
6883
claireho27f65472011-06-09 11:11:49 -07006884ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006885if test "x$ac_cv_type_int16_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006886
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006887else
6888
6889cat >>confdefs.h <<_ACEOF
6890#define int16_t signed short
6891_ACEOF
6892
6893fi
6894
claireho27f65472011-06-09 11:11:49 -07006895ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006896if test "x$ac_cv_type_uint16_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006897
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006898else
6899
6900cat >>confdefs.h <<_ACEOF
6901#define uint16_t unsigned short
6902_ACEOF
6903
6904fi
6905
claireho27f65472011-06-09 11:11:49 -07006906ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006907if test "x$ac_cv_type_int32_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006908
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006909else
6910
6911cat >>confdefs.h <<_ACEOF
6912#define int32_t signed long
6913_ACEOF
6914
6915fi
6916
claireho27f65472011-06-09 11:11:49 -07006917ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006918if test "x$ac_cv_type_uint32_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006919
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006920else
6921
6922cat >>confdefs.h <<_ACEOF
6923#define uint32_t unsigned long
6924_ACEOF
6925
6926fi
6927
claireho27f65472011-06-09 11:11:49 -07006928ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006929if test "x$ac_cv_type_int64_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006930
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006931else
6932
6933cat >>confdefs.h <<_ACEOF
6934#define int64_t signed long long
6935_ACEOF
6936
6937fi
6938
claireho27f65472011-06-09 11:11:49 -07006939ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006940if test "x$ac_cv_type_uint64_t" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006941
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006942else
6943
6944cat >>confdefs.h <<_ACEOF
6945#define uint64_t unsigned long long
6946_ACEOF
6947
6948fi
6949
6950
6951if test $ac_cv_type_int8_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006952CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006953fi
6954
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006955if test $ac_cv_type_uint8_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006956CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006957fi
6958
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006959if test $ac_cv_type_int16_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006960CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006961fi
6962
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006963if test $ac_cv_type_uint16_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006964CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006965fi
6966
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006967if test $ac_cv_type_int32_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006968CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006969fi
6970
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006971if test $ac_cv_type_uint32_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006972CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006973fi
6974
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006975if test $ac_cv_type_int64_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006976CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006977fi
6978
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006979if test $ac_cv_type_uint64_t = no; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006980CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006981fi
6982
Claire Ho85bf2e22009-11-24 14:23:02 -08006983# Do various wchar_t related checks
claireho27f65472011-06-09 11:11:49 -07006984ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006985if test "x$ac_cv_header_wchar_h" = xyes; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006986
6987fi
6988
6989
6990if test "$ac_cv_header_wchar_h" = no
6991then
6992 U_HAVE_WCHAR_H=0
6993 U_HAVE_WCSCPY=0
Craig Cornelius103e9ff2012-10-09 17:03:29 -07006994 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006995else
claireho50294ea2010-05-03 15:44:48 -07006996
claireho27f65472011-06-09 11:11:49 -07006997$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07006998
6999 U_HAVE_WCHAR_H=1
Claire Ho85bf2e22009-11-24 14:23:02 -08007000 # Some broken systems have wchar.h but not some of its functions...
claireho27f65472011-06-09 11:11:49 -07007001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007002$as_echo_n "checking for library containing wcscpy... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007003if ${ac_cv_search_wcscpy+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007004 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007005else
7006 ac_func_search_save_LIBS=$LIBS
claireho27f65472011-06-09 11:11:49 -07007007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007008/* end confdefs.h. */
7009
Claire Ho85bf2e22009-11-24 14:23:02 -08007010/* Override any GCC internal prototype to avoid an error.
7011 Use char because int might match the return type of a GCC
7012 builtin and then its argument prototype would still apply. */
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007013#ifdef __cplusplus
7014extern "C"
7015#endif
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007016char wcscpy ();
7017int
7018main ()
7019{
Claire Ho85bf2e22009-11-24 14:23:02 -08007020return wcscpy ();
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007021 ;
7022 return 0;
7023}
7024_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08007025for ac_lib in '' wcs w; do
7026 if test -z "$ac_lib"; then
7027 ac_res="none required"
7028 else
7029 ac_res=-l$ac_lib
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Claire Ho85bf2e22009-11-24 14:23:02 -08007031 fi
claireho27f65472011-06-09 11:11:49 -07007032 if ac_fn_c_try_link "$LINENO"; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007033 ac_cv_search_wcscpy=$ac_res
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007034fi
claireho27f65472011-06-09 11:11:49 -07007035rm -f core conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007037 if ${ac_cv_search_wcscpy+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007038 break
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007039fi
Claire Ho85bf2e22009-11-24 14:23:02 -08007040done
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007041if ${ac_cv_search_wcscpy+:} false; then :
claireho27f65472011-06-09 11:11:49 -07007042
Claire Ho85bf2e22009-11-24 14:23:02 -08007043else
7044 ac_cv_search_wcscpy=no
7045fi
7046rm conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007047LIBS=$ac_func_search_save_LIBS
7048fi
claireho27f65472011-06-09 11:11:49 -07007049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007050$as_echo "$ac_cv_search_wcscpy" >&6; }
7051ac_res=$ac_cv_search_wcscpy
claireho27f65472011-06-09 11:11:49 -07007052if test "$ac_res" != no; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007054
7055fi
7056
7057 if test "$ac_cv_search_wcscpy" != no; then
7058 U_HAVE_WCSCPY=1
7059 else
7060 U_HAVE_WCSCPY=0
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007061 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007062 fi
7063fi
7064
7065
7066
Claire Ho85bf2e22009-11-24 14:23:02 -08007067# The cast to long int works around a bug in the HP C Compiler
7068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7070# This bug is HP SR number 8606223364.
claireho27f65472011-06-09 11:11:49 -07007071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007072$as_echo_n "checking size of wchar_t... " >&6; }
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007073if ${ac_cv_sizeof_wchar_t+:} false; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007074 $as_echo_n "(cached) " >&6
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007075else
claireho27f65472011-06-09 11:11:49 -07007076 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007077#if STDC_HEADERS
7078#include <stddef.h>
7079#endif
7080#include <stdlib.h>
7081#if HAVE_WCHAR_H
7082#include <string.h>
7083#include <wchar.h>
7084#endif
claireho27f65472011-06-09 11:11:49 -07007085"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007086
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007087else
claireho27f65472011-06-09 11:11:49 -07007088 if test "$ac_cv_type_wchar_t" = yes; then
7089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
claireho27f65472011-06-09 11:11:49 -07007091as_fn_error 77 "cannot compute sizeof (wchar_t)
7092See \`config.log' for more details" "$LINENO" 5; }
Claire Ho85bf2e22009-11-24 14:23:02 -08007093 else
7094 ac_cv_sizeof_wchar_t=0
7095 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007096fi
claireho27f65472011-06-09 11:11:49 -07007097
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007098fi
claireho27f65472011-06-09 11:11:49 -07007099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007100$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
7101
7102
7103
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007104cat >>confdefs.h <<_ACEOF
7105#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7106_ACEOF
7107
7108
7109U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
7110# We do this check to verify that everything is okay.
7111if test $U_SIZEOF_WCHAR_T = 0; then
7112 if test $U_HAVE_WCHAR_H=1; then
claireho27f65472011-06-09 11:11:49 -07007113 as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007114 fi
7115fi
7116
claireho27f65472011-06-09 11:11:49 -07007117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007118$as_echo_n "checking for UTF-16 string literal support... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007119U_CHECK_UTF16_STRING=1
7120CHECK_UTF16_STRING_RESULT="unknown"
claireho50294ea2010-05-03 15:44:48 -07007121
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007122case "${host}" in
7123*-*-aix*|powerpc64-*-linux*)
7124 if test "$ac_cv_c_compiler_gnu" = no; then
7125 OLD_CFLAGS="${CFLAGS}"
7126 OLD_CXXFLAGS="${CXXFLAGS}"
7127 CFLAGS="${CFLAGS} -qutf"
7128 CXXFLAGS="${CXXFLAGS} -qutf"
claireho27f65472011-06-09 11:11:49 -07007129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007130/* end confdefs.h. */
7131const unsigned short hello[] = u"hello";
7132int
7133main ()
7134{
7135
7136 ;
7137 return 0;
7138}
7139_ACEOF
claireho27f65472011-06-09 11:11:49 -07007140if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007141 U_CHECK_UTF16_STRING=1
7142else
claireho27f65472011-06-09 11:11:49 -07007143 U_CHECK_UTF16_STRING=0
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007144fi
Claire Ho85bf2e22009-11-24 14:23:02 -08007145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007146 if test "$U_CHECK_UTF16_STRING" = 0; then
7147 CFLAGS="${OLD_CFLAGS}"
7148 CXXFLAGS="${OLD_CXXFLAGS}"
7149 else
7150 CHECK_UTF16_STRING_RESULT="-qutf"
7151 fi
7152 fi
7153 ;;
7154*-*-solaris*)
7155 if test "$ac_cv_c_compiler_gnu" = no; then
7156 OLD_CFLAGS="${CFLAGS}"
7157 OLD_CXXFLAGS="${CXXFLAGS}"
7158 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
7159 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
claireho27f65472011-06-09 11:11:49 -07007160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007161/* end confdefs.h. */
7162const unsigned short hello[] = U"hello";
7163int
7164main ()
7165{
7166
7167 ;
7168 return 0;
7169}
7170_ACEOF
claireho27f65472011-06-09 11:11:49 -07007171if ac_fn_c_try_compile "$LINENO"; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007172 U_CHECK_UTF16_STRING=1
7173else
claireho27f65472011-06-09 11:11:49 -07007174 U_CHECK_UTF16_STRING=0
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007175fi
Claire Ho85bf2e22009-11-24 14:23:02 -08007176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007177 if test "$U_CHECK_UTF16_STRING" = 0; then
7178 CFLAGS="${OLD_CFLAGS}"
7179 CXXFLAGS="${OLD_CXXFLAGS}"
7180 else
7181 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
7182
7183 # Since we can't detect the availability of this UTF-16 syntax at compile time,
7184 # we depend on configure telling us that we can use it.
7185 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
7186 # we only use this macro within ICU.
7187 # If an ICU user uses icu-config, this feature will be enabled.
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007188 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007189 U_CHECK_UTF16_STRING=0
7190 fi
7191 fi
7192 ;;
7193*-*-hpux*)
7194 if test "$ac_cv_c_compiler_gnu" = no; then
Claire Ho85bf2e22009-11-24 14:23:02 -08007195 # The option will be detected at compile time without additional compiler options.
7196 CHECK_UTF16_STRING_RESULT="available"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007197 fi
7198 ;;
7199*-*-cygwin)
Claire Ho85bf2e22009-11-24 14:23:02 -08007200 # wchar_t can be used
7201 CHECK_UTF16_STRING_RESULT="available"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007202 ;;
7203*)
7204 ;;
7205esac
claireho50294ea2010-05-03 15:44:48 -07007206
7207# GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
7208# Since we have to use a different standard, if strict is enable, don't enable UTF16 string literals.
7209U_CHECK_GNUC_UTF16_STRING=0
7210if test "$ac_use_strict_options" = no && test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
7211 if test "$ac_cv_c_compiler_gnu" = yes; then
7212 OLD_CFLAGS="${CFLAGS}"
7213 OLD_CXXFLAGS="${CXXFLAGS}"
7214 CFLAGS="${CFLAGS} -std=gnu99 -D_GCC_"
7215 CXXFLAGS="${CXXFLAGS} -std=c++0x"
claireho27f65472011-06-09 11:11:49 -07007216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
claireho50294ea2010-05-03 15:44:48 -07007217/* end confdefs.h. */
7218
7219#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
7220#ifdef _GCC_
7221typedef __CHAR16_TYPE__ char16_t;
7222#endif
7223char16_t test[] = u"This is a UTF16 literal string.";
7224#else
7225GCC IS TOO OLD!
7226#endif
7227
7228int
7229main ()
7230{
7231
7232 ;
7233 return 0;
7234}
7235_ACEOF
claireho27f65472011-06-09 11:11:49 -07007236if ac_fn_c_try_compile "$LINENO"; then :
claireho50294ea2010-05-03 15:44:48 -07007237 U_CHECK_UTF16_STRING=1
7238else
claireho27f65472011-06-09 11:11:49 -07007239 U_CHECK_UTF16_STRING=0
claireho50294ea2010-05-03 15:44:48 -07007240fi
claireho50294ea2010-05-03 15:44:48 -07007241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 if test "$U_CHECK_UTF16_STRING" = 1; then
7243 CHECK_UTF16_STRING_RESULT="available";
7244 U_CHECK_GNUC_UTF16_STRING=1
7245 else
7246 CFLAGS="${OLD_CFLAGS}"
7247 CXXFLAGS="${OLD_CXXFLAGS}"
7248 fi
7249 fi
7250fi
7251
7252
claireho27f65472011-06-09 11:11:49 -07007253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007254$as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007255
7256
Claire Ho85bf2e22009-11-24 14:23:02 -08007257# Enable/disable extras
7258# Check whether --enable-extras was given.
claireho27f65472011-06-09 11:11:49 -07007259if test "${enable_extras+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007260 enableval=$enable_extras; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007261 yes) extras=true ;;
7262 no) extras=false ;;
claireho27f65472011-06-09 11:11:49 -07007263 *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007264 esac
7265else
7266 extras=true
Claire Ho85bf2e22009-11-24 14:23:02 -08007267fi
7268
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007269
7270if test "$extras" = true; then
7271 EXTRAS_TRUE=
7272else
7273 EXTRAS_TRUE='#'
7274fi
Claire Ho85bf2e22009-11-24 14:23:02 -08007275# Check whether --enable-icuio was given.
claireho27f65472011-06-09 11:11:49 -07007276if test "${enable_icuio+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007277 enableval=$enable_icuio; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007278 yes) icuio=true ;;
7279 no) icuio=false ;;
claireho27f65472011-06-09 11:11:49 -07007280 *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007281 esac
7282else
7283 icuio=true
Claire Ho85bf2e22009-11-24 14:23:02 -08007284fi
7285
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007286
7287if test "$icuio" = true; then
7288 ICUIO_TRUE=
7289else
7290 ICUIO_TRUE='#'
7291fi
7292
Claire Ho85bf2e22009-11-24 14:23:02 -08007293# Enable/disable layout
7294# Check whether --enable-layout was given.
claireho27f65472011-06-09 11:11:49 -07007295if test "${enable_layout+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007296 enableval=$enable_layout; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007297 yes) layout=true ;;
7298 no) layout=false ;;
claireho27f65472011-06-09 11:11:49 -07007299 *) as_fn_error $? "bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007300 esac
7301else
7302 layout=true
Claire Ho85bf2e22009-11-24 14:23:02 -08007303fi
7304
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007305
7306if test "$layout" = true; then
7307 LAYOUT_TRUE=
7308else
7309 LAYOUT_TRUE='#'
7310fi
7311
7312
Claire Ho85bf2e22009-11-24 14:23:02 -08007313# Check whether --with-data-packaging was given.
claireho27f65472011-06-09 11:11:49 -07007314if test "${with_data_packaging+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007315 withval=$with_data_packaging; case "${withval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007316 files|archive|library) datapackaging=$withval ;;
7317 auto) datapackaging=$withval ;;
7318 common) datapackaging=archive ;;
7319 dll) datapackaging=library ;;
7320 static) datapackaging=static ;;
claireho27f65472011-06-09 11:11:49 -07007321 *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007322 esac
7323else
7324 datapackaging=
Claire Ho85bf2e22009-11-24 14:23:02 -08007325fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007326
Claire Ho85bf2e22009-11-24 14:23:02 -08007327
7328# Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7329# thesysconfdir=`eval echo $sysconfdir`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007330thedatadir=`eval echo $datadir`
Claire Ho85bf2e22009-11-24 14:23:02 -08007331# 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}.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007332pkgicudatadir=$datadir
7333thepkgicudatadir=$thedatadir
7334
7335
7336
7337
7338if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
claireho50294ea2010-05-03 15:44:48 -07007339 # default to library
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007340 datapackaging=library
claireho50294ea2010-05-03 15:44:48 -07007341 if test "$ENABLE_STATIC" = "YES"; then
7342 if test "$ENABLE_SHARED" != "YES"; then
7343 datapackaging=static
7344 fi
7345 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007346fi
7347
Claire Ho85bf2e22009-11-24 14:23:02 -08007348datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
7349
7350datapackaging_msg="(No explaination for mode $datapackaging.)"
7351
7352datapackaging_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."
7353datapackaging_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."
7354datapackaging_howfound="(unknown)"
7355
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007356case "$datapackaging" in
7357 files)
Claire Ho85bf2e22009-11-24 14:23:02 -08007358 DATA_PACKAGING_MODE=files
7359 datapackaging_msg="ICU data will be stored in individual files."
7360 datapackaging_howfound="$datapackaging_msg_path"
7361 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007362 archive)
Claire Ho85bf2e22009-11-24 14:23:02 -08007363 DATA_PACKAGING_MODE=common
7364 datapackaging_msg="ICU data will be stored in a single .dat file."
7365 datapackaging_howfound="$datapackaging_msg_path"
7366 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007367 library)
Claire Ho85bf2e22009-11-24 14:23:02 -08007368 DATA_PACKAGING_MODE=dll
7369 datapackaging_msg="ICU data will be linked with ICU."
7370 if test "$ENABLE_STATIC" = "YES"; then
7371 datapackaging_msg="$datapackaging_msg A static data library will be built. "
7372 fi
7373 if test "$ENABLE_SHARED" = "YES"; then
7374 datapackaging_msg="$datapackaging_msg A shared data library will be built. "
7375 fi
7376 datapackaging_howfound="$datapackaging_msg_set"
7377 ;;
claireho50294ea2010-05-03 15:44:48 -07007378 static)
7379 DATA_PACKAGING_MODE=static
7380 datapackaging_msg="ICU data will be stored in a static library."
7381 datapackaging_howfound="$datapackaging_msg_set"
7382 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007383esac
7384
7385
Claire Ho85bf2e22009-11-24 14:23:02 -08007386# Sets a library suffix
claireho27f65472011-06-09 11:11:49 -07007387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007388$as_echo_n "checking for a library suffix to use... " >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007389
Claire Ho85bf2e22009-11-24 14:23:02 -08007390# Check whether --with-library-suffix was given.
claireho27f65472011-06-09 11:11:49 -07007391if test "${with_library_suffix+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007392 withval=$with_library_suffix; ICULIBSUFFIX="${withval}"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007393else
7394 ICULIBSUFFIX=
Claire Ho85bf2e22009-11-24 14:23:02 -08007395fi
7396
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007397msg=$ICULIBSUFFIX
7398if test "$msg" = ""; then
7399 msg=none
7400fi
claireho27f65472011-06-09 11:11:49 -07007401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007402$as_echo "$msg" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007403
7404if test "$ICULIBSUFFIX" != ""
7405then
7406 U_HAVE_LIB_SUFFIX=1
Claire Ho85bf2e22009-11-24 14:23:02 -08007407 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007408 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007409else
7410 U_HAVE_LIB_SUFFIX=0
7411fi
7412
7413
7414
Claire Ho85bf2e22009-11-24 14:23:02 -08007415# Enable/disable tests
7416# Check whether --enable-tests was given.
claireho27f65472011-06-09 11:11:49 -07007417if test "${enable_tests+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007418 enableval=$enable_tests; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007419 yes) tests=true ;;
7420 no) tests=false ;;
claireho27f65472011-06-09 11:11:49 -07007421 *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007422 esac
7423else
7424 tests=true
Claire Ho85bf2e22009-11-24 14:23:02 -08007425fi
7426
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007427
7428if test "$tests" = true; then
7429 TESTS_TRUE=
7430else
7431 TESTS_TRUE='#'
7432fi
7433
Claire Ho85bf2e22009-11-24 14:23:02 -08007434# Enable/disable samples
7435# Check whether --enable-samples was given.
claireho27f65472011-06-09 11:11:49 -07007436if test "${enable_samples+set}" = set; then :
Claire Ho85bf2e22009-11-24 14:23:02 -08007437 enableval=$enable_samples; case "${enableval}" in
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007438 yes) samples=true ;;
7439 no) samples=false ;;
claireho27f65472011-06-09 11:11:49 -07007440 *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007441 esac
7442else
7443 samples=true
Claire Ho85bf2e22009-11-24 14:23:02 -08007444fi
7445
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007446
7447if test "$samples" = true; then
7448 SAMPLES_TRUE=
7449else
7450 SAMPLES_TRUE='#'
7451fi
7452
7453ICUDATA_CHAR=$U_ENDIAN_CHAR
7454
Claire Ho85bf2e22009-11-24 14:23:02 -08007455# Platform-specific Makefile setup
7456# set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007457case "${host}" in
7458 *-*-solaris*) platform=U_SOLARIS ;;
claireho27f65472011-06-09 11:11:49 -07007459 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007460 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
7461 *-*-aix*) platform=U_AIX ;;
7462 *-*-hpux*) platform=U_HPUX ;;
7463 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
clairehob26ce3a2012-01-10 17:54:41 -08007464 *-*-cygwin*) platform=U_CYGWIN ;;
7465 *-*-mingw*) platform=U_MINGW ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007466 *-*ibm-openedition*|*-*-os390*) platform=OS390
7467 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7468 ICUDATA_CHAR="e"
7469 fi ;;
7470 *-*-os400*) platform=OS400
7471 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7472 ICUDATA_CHAR="e"
7473 fi ;;
7474 *-*-nto*) platform=U_QNX ;;
7475 *-dec-osf*) platform=U_OSF ;;
7476 *-*-beos) platform=U_BEOS ;;
7477 *-*-irix*) platform=U_IRIX ;;
7478 *-ncr-*) platform=U_MPRAS ;;
7479 *) platform=U_UNKNOWN_PLATFORM ;;
7480esac
7481
7482
7483platform_make_fragment_name="$icu_cv_host_frag"
7484platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
7485
7486
7487
7488if test "${FORCE_LIBS}" != ""; then
7489 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
7490 LIBS=${FORCE_LIBS}
7491fi
7492
Claire Ho85bf2e22009-11-24 14:23:02 -08007493# Now that we're done using CPPFLAGS etc. for tests, we can change it
7494# for build.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007495
7496if test $ICU_USE_THREADS -ne 0
7497then
7498 CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
7499 CFLAGS="$CFLAGS \$(THREADSCFLAGS)"
7500 CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007501else
7502 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DICU_USE_THREADS=0"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007503fi
7504
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007505
7506
7507
7508# append all config cppflags
7509CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7510
7511echo "CPPFLAGS=$CPPFLAGS"
7512echo "CFLAGS=$CFLAGS"
7513echo "CXXFLAGS=$CXXFLAGS"
7514
7515
Claire Ho85bf2e22009-11-24 14:23:02 -08007516# output the Makefiles
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007517ac_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/genctd/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/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 samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile"
Claire Ho85bf2e22009-11-24 14:23:02 -08007518
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007519cat >confcache <<\_ACEOF
7520# This file is a shell script that caches the results of configure
7521# tests run on this system so they can be shared between configure
7522# scripts and configure runs, see configure's option --config-cache.
7523# It is not useful on other systems. If it contains results you don't
7524# want to keep, you may remove or edit it.
7525#
7526# config.status only pays attention to the cache file if you give it
7527# the --recheck option to rerun configure.
7528#
7529# `ac_cv_env_foo' variables (set or unset) will be overridden when
7530# loading this file, other *unset* `ac_cv_foo' will be assigned the
7531# following values.
7532
7533_ACEOF
7534
7535# The following way of writing the cache mishandles newlines in values,
7536# but we know of no workaround that is simple, portable, and efficient.
Claire Ho85bf2e22009-11-24 14:23:02 -08007537# So, we kill variables containing newlines.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007538# Ultrix sh set writes to stderr and can't be redirected directly,
7539# and sets the high bit in the cache file unless we assign to the vars.
Claire Ho85bf2e22009-11-24 14:23:02 -08007540(
7541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7542 eval ac_val=\$$ac_var
7543 case $ac_val in #(
7544 *${as_nl}*)
7545 case $ac_var in #(
claireho27f65472011-06-09 11:11:49 -07007546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007547$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7548 esac
7549 case $ac_var in #(
7550 _ | IFS | as_nl) ;; #(
7551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
claireho27f65472011-06-09 11:11:49 -07007552 *) { eval $ac_var=; unset $ac_var;} ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08007553 esac ;;
7554 esac
7555 done
7556
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007557 (set) 2>&1 |
Claire Ho85bf2e22009-11-24 14:23:02 -08007558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7559 *${as_nl}ac_space=\ *)
claireho27f65472011-06-09 11:11:49 -07007560 # `set' does not quote correctly, so add quotes: double-quote
7561 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007562 sed -n \
7563 "s/'/'\\\\''/g;
7564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Claire Ho85bf2e22009-11-24 14:23:02 -08007565 ;; #(
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007566 *)
7567 # `set' quotes correctly as required by POSIX, so do not add quotes.
Claire Ho85bf2e22009-11-24 14:23:02 -08007568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007569 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08007570 esac |
7571 sort
7572) |
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007573 sed '
Claire Ho85bf2e22009-11-24 14:23:02 -08007574 /^ac_cv_env_/b end
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007575 t clear
Claire Ho85bf2e22009-11-24 14:23:02 -08007576 :clear
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7578 t end
Claire Ho85bf2e22009-11-24 14:23:02 -08007579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7580 :end' >>confcache
7581if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7582 if test -w "$cache_file"; then
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007583 if test "x$cache_file" != "x/dev/null"; then
claireho27f65472011-06-09 11:11:49 -07007584 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007585$as_echo "$as_me: updating cache $cache_file" >&6;}
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007586 if test ! -f "$cache_file" || test -h "$cache_file"; then
7587 cat confcache >"$cache_file"
7588 else
7589 case $cache_file in #(
7590 */* | ?:*)
7591 mv -f confcache "$cache_file"$$ &&
7592 mv -f "$cache_file"$$ "$cache_file" ;; #(
7593 *)
7594 mv -f confcache "$cache_file" ;;
7595 esac
7596 fi
7597 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007598 else
claireho27f65472011-06-09 11:11:49 -07007599 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007600$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007601 fi
7602fi
7603rm -f confcache
7604
7605test "x$prefix" = xNONE && prefix=$ac_default_prefix
7606# Let make expand exec_prefix.
7607test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7608
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007609# Transform confdefs.h into DEFS.
7610# Protect against shell expansion while executing Makefile rules.
7611# Protect against Makefile macro expansion.
7612#
7613# If the first sed substitution is executed (which looks for macros that
7614# take arguments), then branch to the quote section. Otherwise,
7615# look for a macro that doesn't take arguments.
7616ac_script='
7617:mline
7618/\\$/{
7619 N
7620 s,\\\n,,
7621 b mline
7622}
7623t clear
7624:clear
7625s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7626t quote
7627s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7628t quote
7629b any
7630:quote
7631s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7632s/\[/\\&/g
7633s/\]/\\&/g
7634s/\$/$$/g
7635H
7636:any
7637${
7638 g
7639 s/^\n//
7640 s/\n/ /g
7641 p
7642}
7643'
7644DEFS=`sed -n "$ac_script" confdefs.h`
7645
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007646
7647ac_libobjs=
7648ac_ltlibobjs=
claireho27f65472011-06-09 11:11:49 -07007649U=
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7651 # 1. Remove the extension, and $U if already installed.
Claire Ho85bf2e22009-11-24 14:23:02 -08007652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7655 # will be set to the directory where LIBOBJS objects are built.
claireho27f65472011-06-09 11:11:49 -07007656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007658done
7659LIBOBJS=$ac_libobjs
7660
7661LTLIBOBJS=$ac_ltlibobjs
7662
7663
7664
Claire Ho85bf2e22009-11-24 14:23:02 -08007665
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007666: "${CONFIG_STATUS=./config.status}"
Claire Ho85bf2e22009-11-24 14:23:02 -08007667ac_write_fail=0
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007668ac_clean_files_save=$ac_clean_files
7669ac_clean_files="$ac_clean_files $CONFIG_STATUS"
claireho27f65472011-06-09 11:11:49 -07007670{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08007671$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
claireho27f65472011-06-09 11:11:49 -07007672as_write_fail=0
7673cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007674#! $SHELL
7675# Generated by $as_me.
7676# Run this file to recreate the current configuration.
7677# Compiler output produced by configure, useful for debugging
7678# configure, is in config.log if it exists.
7679
7680debug=false
7681ac_cs_recheck=false
7682ac_cs_silent=false
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007683
claireho27f65472011-06-09 11:11:49 -07007684SHELL=\${CONFIG_SHELL-$SHELL}
7685export SHELL
7686_ASEOF
7687cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7688## -------------------- ##
7689## M4sh Initialization. ##
7690## -------------------- ##
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007691
Claire Ho85bf2e22009-11-24 14:23:02 -08007692# Be more Bourne compatible
7693DUALCASE=1; export DUALCASE # for MKS sh
claireho27f65472011-06-09 11:11:49 -07007694if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007695 emulate sh
7696 NULLCMD=:
Claire Ho85bf2e22009-11-24 14:23:02 -08007697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007698 # is contrary to our usage. Disable this feature.
7699 alias -g '${1+"$@"}'='"$@"'
Claire Ho85bf2e22009-11-24 14:23:02 -08007700 setopt NO_GLOB_SUBST
7701else
claireho27f65472011-06-09 11:11:49 -07007702 case `(set -o) 2>/dev/null` in #(
7703 *posix*) :
7704 set -o posix ;; #(
7705 *) :
7706 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08007707esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007708fi
Claire Ho85bf2e22009-11-24 14:23:02 -08007709
7710
Claire Ho85bf2e22009-11-24 14:23:02 -08007711as_nl='
7712'
7713export as_nl
7714# Printing a long string crashes Solaris 7 /usr/bin/printf.
7715as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7716as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7717as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
claireho27f65472011-06-09 11:11:49 -07007718# Prefer a ksh shell builtin over an external printf program on Solaris,
7719# but without wasting forks for bash or zsh.
7720if test -z "$BASH_VERSION$ZSH_VERSION" \
7721 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7722 as_echo='print -r --'
7723 as_echo_n='print -rn --'
7724elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Claire Ho85bf2e22009-11-24 14:23:02 -08007725 as_echo='printf %s\n'
7726 as_echo_n='printf %s'
7727else
7728 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7729 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7730 as_echo_n='/usr/ucb/echo -n'
7731 else
7732 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7733 as_echo_n_body='eval
7734 arg=$1;
claireho27f65472011-06-09 11:11:49 -07007735 case $arg in #(
Claire Ho85bf2e22009-11-24 14:23:02 -08007736 *"$as_nl"*)
7737 expr "X$arg" : "X\\(.*\\)$as_nl";
7738 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7739 esac;
7740 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7741 '
7742 export as_echo_n_body
7743 as_echo_n='sh -c $as_echo_n_body as_echo'
7744 fi
7745 export as_echo_body
7746 as_echo='sh -c $as_echo_body as_echo'
7747fi
7748
7749# The user is always right.
7750if test "${PATH_SEPARATOR+set}" != set; then
7751 PATH_SEPARATOR=:
7752 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7753 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7754 PATH_SEPARATOR=';'
7755 }
7756fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007757
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007758
Claire Ho85bf2e22009-11-24 14:23:02 -08007759# IFS
7760# We need space, tab and new line, in precisely that order. Quoting is
7761# there to prevent editors from complaining about space-tab.
7762# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7763# splitting by setting IFS to empty value.)
7764IFS=" "" $as_nl"
7765
7766# Find who we are. Look in the path if we contain no directory separator.
Craig Cornelius103e9ff2012-10-09 17:03:29 -07007767as_myself=
claireho27f65472011-06-09 11:11:49 -07007768case $0 in #((
Claire Ho85bf2e22009-11-24 14:23:02 -08007769 *[\\/]* ) as_myself=$0 ;;
7770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
claireho27f65472011-06-09 11:11:49 -07007775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7776 done
Claire Ho85bf2e22009-11-24 14:23:02 -08007777IFS=$as_save_IFS
7778
7779 ;;
7780esac
7781# We did not find ourselves, most probably we were run as `sh COMMAND'
7782# in which case we are not to be found in the path.
7783if test "x$as_myself" = x; then
7784 as_myself=$0
7785fi
7786if test ! -f "$as_myself"; then
7787 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
claireho27f65472011-06-09 11:11:49 -07007788 exit 1
Claire Ho85bf2e22009-11-24 14:23:02 -08007789fi
7790
claireho27f65472011-06-09 11:11:49 -07007791# Unset variables that we do not need and which cause bugs (e.g. in
7792# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7793# suppresses any "Segmentation fault" message there. '((' could
7794# trigger a bug in pdksh 5.2.14.
7795for as_var in BASH_ENV ENV MAIL MAILPATH
7796do eval test x\${$as_var+set} = xset \
7797 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Claire Ho85bf2e22009-11-24 14:23:02 -08007798done
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007799PS1='$ '
7800PS2='> '
7801PS4='+ '
7802
7803# NLS nuisances.
Claire Ho85bf2e22009-11-24 14:23:02 -08007804LC_ALL=C
7805export LC_ALL
7806LANGUAGE=C
7807export LANGUAGE
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007808
claireho27f65472011-06-09 11:11:49 -07007809# CDPATH.
7810(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7811
7812
7813# as_fn_error STATUS ERROR [LINENO LOG_FD]
7814# ----------------------------------------
7815# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7816# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7817# script with STATUS, using 1 if that was 0.
7818as_fn_error ()
7819{
7820 as_status=$1; test $as_status -eq 0 && as_status=1
7821 if test "$4"; then
7822 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7823 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7824 fi
7825 $as_echo "$as_me: error: $2" >&2
7826 as_fn_exit $as_status
7827} # as_fn_error
7828
7829
7830# as_fn_set_status STATUS
7831# -----------------------
7832# Set $? to STATUS, without forking.
7833as_fn_set_status ()
7834{
7835 return $1
7836} # as_fn_set_status
7837
7838# as_fn_exit STATUS
7839# -----------------
7840# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7841as_fn_exit ()
7842{
7843 set +e
7844 as_fn_set_status $1
7845 exit $1
7846} # as_fn_exit
7847
7848# as_fn_unset VAR
7849# ---------------
7850# Portably unset VAR.
7851as_fn_unset ()
7852{
7853 { eval $1=; unset $1;}
7854}
7855as_unset=as_fn_unset
7856# as_fn_append VAR VALUE
7857# ----------------------
7858# Append the text in VALUE to the end of the definition contained in VAR. Take
7859# advantage of any shell optimizations that allow amortized linear growth over
7860# repeated appends, instead of the typical quadratic growth present in naive
7861# implementations.
7862if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7863 eval 'as_fn_append ()
7864 {
7865 eval $1+=\$2
7866 }'
7867else
7868 as_fn_append ()
7869 {
7870 eval $1=\$$1\$2
7871 }
7872fi # as_fn_append
7873
7874# as_fn_arith ARG...
7875# ------------------
7876# Perform arithmetic evaluation on the ARGs, and store the result in the
7877# global $as_val. Take advantage of shells that can avoid forks. The arguments
7878# must be portable across $(()) and expr.
7879if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7880 eval 'as_fn_arith ()
7881 {
7882 as_val=$(( $* ))
7883 }'
7884else
7885 as_fn_arith ()
7886 {
7887 as_val=`expr "$@" || test $? -eq 1`
7888 }
7889fi # as_fn_arith
7890
7891
Claire Ho85bf2e22009-11-24 14:23:02 -08007892if expr a : '\(a\)' >/dev/null 2>&1 &&
7893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007894 as_expr=expr
7895else
7896 as_expr=false
7897fi
7898
Claire Ho85bf2e22009-11-24 14:23:02 -08007899if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007900 as_basename=basename
7901else
7902 as_basename=false
7903fi
7904
claireho27f65472011-06-09 11:11:49 -07007905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7906 as_dirname=dirname
7907else
7908 as_dirname=false
7909fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007910
Claire Ho85bf2e22009-11-24 14:23:02 -08007911as_me=`$as_basename -- "$0" ||
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7913 X"$0" : 'X\(//\)$' \| \
Claire Ho85bf2e22009-11-24 14:23:02 -08007914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7915$as_echo X/"$0" |
7916 sed '/^.*\/\([^/][^/]*\)\/*$/{
7917 s//\1/
7918 q
7919 }
7920 /^X\/\(\/\/\)$/{
7921 s//\1/
7922 q
7923 }
7924 /^X\/\(\/\).*/{
7925 s//\1/
7926 q
7927 }
7928 s/.*/./; q'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007929
claireho27f65472011-06-09 11:11:49 -07007930# Avoid depending upon Character Ranges.
7931as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7932as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7933as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7934as_cr_digits='0123456789'
7935as_cr_alnum=$as_cr_Letters$as_cr_digits
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007936
Claire Ho85bf2e22009-11-24 14:23:02 -08007937ECHO_C= ECHO_N= ECHO_T=
claireho27f65472011-06-09 11:11:49 -07007938case `echo -n x` in #(((((
Claire Ho85bf2e22009-11-24 14:23:02 -08007939-n*)
claireho27f65472011-06-09 11:11:49 -07007940 case `echo 'xy\c'` in
Claire Ho85bf2e22009-11-24 14:23:02 -08007941 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
claireho27f65472011-06-09 11:11:49 -07007942 xy) ECHO_C='\c';;
7943 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7944 ECHO_T=' ';;
Claire Ho85bf2e22009-11-24 14:23:02 -08007945 esac;;
7946*)
7947 ECHO_N='-n';;
7948esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007949
7950rm -f conf$$ conf$$.exe conf$$.file
Claire Ho85bf2e22009-11-24 14:23:02 -08007951if test -d conf$$.dir; then
7952 rm -f conf$$.dir/conf$$.file
7953else
7954 rm -f conf$$.dir
7955 mkdir conf$$.dir 2>/dev/null
7956fi
7957if (echo >conf$$.file) 2>/dev/null; then
7958 if ln -s conf$$.file conf$$ 2>/dev/null; then
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007959 as_ln_s='ln -s'
Claire Ho85bf2e22009-11-24 14:23:02 -08007960 # ... but there are two gotchas:
7961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7963 # In both cases, we have to default to `cp -p'.
7964 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7965 as_ln_s='cp -p'
7966 elif ln conf$$.file conf$$ 2>/dev/null; then
7967 as_ln_s=ln
7968 else
7969 as_ln_s='cp -p'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007970 fi
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007971else
7972 as_ln_s='cp -p'
7973fi
Claire Ho85bf2e22009-11-24 14:23:02 -08007974rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7975rmdir conf$$.dir 2>/dev/null
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07007976
claireho27f65472011-06-09 11:11:49 -07007977
7978# as_fn_mkdir_p
7979# -------------
7980# Create "$as_dir" as a directory, including parents if necessary.
7981as_fn_mkdir_p ()
7982{
7983
7984 case $as_dir in #(
7985 -*) as_dir=./$as_dir;;
7986 esac
7987 test -d "$as_dir" || eval $as_mkdir_p || {
7988 as_dirs=
7989 while :; do
7990 case $as_dir in #(
7991 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7992 *) as_qdir=$as_dir;;
7993 esac
7994 as_dirs="'$as_qdir' $as_dirs"
7995 as_dir=`$as_dirname -- "$as_dir" ||
7996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7997 X"$as_dir" : 'X\(//\)[^/]' \| \
7998 X"$as_dir" : 'X\(//\)$' \| \
7999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8000$as_echo X"$as_dir" |
8001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8002 s//\1/
8003 q
8004 }
8005 /^X\(\/\/\)[^/].*/{
8006 s//\1/
8007 q
8008 }
8009 /^X\(\/\/\)$/{
8010 s//\1/
8011 q
8012 }
8013 /^X\(\/\).*/{
8014 s//\1/
8015 q
8016 }
8017 s/.*/./; q'`
8018 test -d "$as_dir" && break
8019 done
8020 test -z "$as_dirs" || eval "mkdir $as_dirs"
8021 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8022
8023
8024} # as_fn_mkdir_p
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008025if mkdir -p . 2>/dev/null; then
claireho27f65472011-06-09 11:11:49 -07008026 as_mkdir_p='mkdir -p "$as_dir"'
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008027else
8028 test -d ./-p && rmdir ./-p
8029 as_mkdir_p=false
8030fi
8031
Claire Ho85bf2e22009-11-24 14:23:02 -08008032if test -x / >/dev/null 2>&1; then
8033 as_test_x='test -x'
8034else
8035 if ls -dL / >/dev/null 2>&1; then
8036 as_ls_L_option=L
8037 else
8038 as_ls_L_option=
8039 fi
8040 as_test_x='
8041 eval sh -c '\''
8042 if test -d "$1"; then
8043 test -d "$1/.";
8044 else
claireho27f65472011-06-09 11:11:49 -07008045 case $1 in #(
Claire Ho85bf2e22009-11-24 14:23:02 -08008046 -*)set "./$1";;
8047 esac;
claireho27f65472011-06-09 11:11:49 -07008048 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Claire Ho85bf2e22009-11-24 14:23:02 -08008049 ???[sx]*):;;*)false;;esac;fi
8050 '\'' sh
8051 '
8052fi
8053as_executable_p=$as_test_x
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008054
8055# Sed expression to map a string onto a valid CPP name.
8056as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8057
8058# Sed expression to map a string onto a valid variable name.
8059as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8060
8061
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008062exec 6>&1
claireho27f65472011-06-09 11:11:49 -07008063## ----------------------------------- ##
8064## Main body of $CONFIG_STATUS script. ##
8065## ----------------------------------- ##
8066_ASEOF
8067test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008068
claireho27f65472011-06-09 11:11:49 -07008069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8070# Save the log message, to keep $0 and so on meaningful, and to
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008071# report actual input values of CONFIG_FILES etc. instead of their
Claire Ho85bf2e22009-11-24 14:23:02 -08008072# values after options handling.
8073ac_log="
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008074This file was extended by $as_me, which was
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008075generated by GNU Autoconf 2.68. Invocation command line was
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008076
8077 CONFIG_FILES = $CONFIG_FILES
8078 CONFIG_HEADERS = $CONFIG_HEADERS
8079 CONFIG_LINKS = $CONFIG_LINKS
8080 CONFIG_COMMANDS = $CONFIG_COMMANDS
8081 $ $0 $@
8082
Claire Ho85bf2e22009-11-24 14:23:02 -08008083on `(hostname || uname -n) 2>/dev/null | sed 1q`
8084"
8085
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008086_ACEOF
8087
Claire Ho85bf2e22009-11-24 14:23:02 -08008088case $ac_config_files in *"
8089"*) set x $ac_config_files; shift; ac_config_files=$*;;
8090esac
8091
Claire Ho85bf2e22009-11-24 14:23:02 -08008092
8093
8094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008095# Files that config.status was made for.
Claire Ho85bf2e22009-11-24 14:23:02 -08008096config_files="$ac_config_files"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008097
Claire Ho85bf2e22009-11-24 14:23:02 -08008098_ACEOF
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008099
Claire Ho85bf2e22009-11-24 14:23:02 -08008100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008101ac_cs_usage="\
claireho27f65472011-06-09 11:11:49 -07008102\`$as_me' instantiates files and other configuration actions
8103from templates according to the current configuration. Unless the files
8104and actions are specified as TAGs, all are instantiated by default.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008105
claireho27f65472011-06-09 11:11:49 -07008106Usage: $0 [OPTION]... [TAG]...
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008107
8108 -h, --help print this help, then exit
Claire Ho85bf2e22009-11-24 14:23:02 -08008109 -V, --version print version number and configuration settings, then exit
claireho27f65472011-06-09 11:11:49 -07008110 --config print configuration, then exit
Claire Ho85bf2e22009-11-24 14:23:02 -08008111 -q, --quiet, --silent
8112 do not print progress messages
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008113 -d, --debug don't remove temporary files
8114 --recheck update $as_me by reconfiguring in the same conditions
Claire Ho85bf2e22009-11-24 14:23:02 -08008115 --file=FILE[:TEMPLATE]
8116 instantiate the configuration file FILE
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008117
8118Configuration files:
8119$config_files
8120
claireho27f65472011-06-09 11:11:49 -07008121Report bugs to the package provider."
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008122
Claire Ho85bf2e22009-11-24 14:23:02 -08008123_ACEOF
8124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
claireho27f65472011-06-09 11:11:49 -07008125ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008126ac_cs_version="\\
8127config.status
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008128configured by $0, generated by GNU Autoconf 2.68,
claireho27f65472011-06-09 11:11:49 -07008129 with options \\"\$ac_cs_config\\"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008130
claireho27f65472011-06-09 11:11:49 -07008131Copyright (C) 2010 Free Software Foundation, Inc.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008132This config.status script is free software; the Free Software Foundation
8133gives unlimited permission to copy, distribute and modify it."
Claire Ho85bf2e22009-11-24 14:23:02 -08008134
8135ac_pwd='$ac_pwd'
8136srcdir='$srcdir'
8137INSTALL='$INSTALL'
8138test -n "\$AWK" || AWK=awk
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008139_ACEOF
8140
Claire Ho85bf2e22009-11-24 14:23:02 -08008141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8142# The default lists apply if the user does not specify any file.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008143ac_need_defaults=:
8144while test $# != 0
8145do
8146 case $1 in
claireho27f65472011-06-09 11:11:49 -07008147 --*=?*)
Claire Ho85bf2e22009-11-24 14:23:02 -08008148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008150 ac_shift=:
8151 ;;
claireho27f65472011-06-09 11:11:49 -07008152 --*=)
8153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8154 ac_optarg=
8155 ac_shift=:
8156 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008157 *)
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008158 ac_option=$1
8159 ac_optarg=$2
8160 ac_shift=shift
8161 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008162 esac
8163
8164 case $ac_option in
8165 # Handling of the options.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8167 ac_cs_recheck=: ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8169 $as_echo "$ac_cs_version"; exit ;;
claireho27f65472011-06-09 11:11:49 -07008170 --config | --confi | --conf | --con | --co | --c )
8171 $as_echo "$ac_cs_config"; exit ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008172 --debug | --debu | --deb | --de | --d | -d )
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008173 debug=: ;;
8174 --file | --fil | --fi | --f )
8175 $ac_shift
Claire Ho85bf2e22009-11-24 14:23:02 -08008176 case $ac_optarg in
8177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
claireho27f65472011-06-09 11:11:49 -07008178 '') as_fn_error $? "missing file argument" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008179 esac
claireho27f65472011-06-09 11:11:49 -07008180 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008181 ac_need_defaults=false;;
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008182 --he | --h | --help | --hel | -h )
Claire Ho85bf2e22009-11-24 14:23:02 -08008183 $as_echo "$ac_cs_usage"; exit ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8186 ac_cs_silent=: ;;
8187
8188 # This is an error.
claireho27f65472011-06-09 11:11:49 -07008189 -*) as_fn_error $? "unrecognized option: \`$1'
8190Try \`$0 --help' for more information." ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008191
claireho27f65472011-06-09 11:11:49 -07008192 *) as_fn_append ac_config_targets " $1"
Claire Ho85bf2e22009-11-24 14:23:02 -08008193 ac_need_defaults=false ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008194
8195 esac
8196 shift
8197done
8198
8199ac_configure_extra_args=
8200
8201if $ac_cs_silent; then
8202 exec 6>/dev/null
8203 ac_configure_extra_args="$ac_configure_extra_args --silent"
8204fi
8205
8206_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08008207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008208if \$ac_cs_recheck; then
Claire Ho85bf2e22009-11-24 14:23:02 -08008209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8210 shift
8211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8212 CONFIG_SHELL='$SHELL'
8213 export CONFIG_SHELL
8214 exec "\$@"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008215fi
8216
8217_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08008218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8219exec 5>>config.log
8220{
8221 echo
8222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8223## Running $as_me. ##
8224_ASBOX
8225 $as_echo "$ac_log"
8226} >&5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008227
Claire Ho85bf2e22009-11-24 14:23:02 -08008228_ACEOF
8229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8230_ACEOF
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008231
Claire Ho85bf2e22009-11-24 14:23:02 -08008232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008233
Claire Ho85bf2e22009-11-24 14:23:02 -08008234# Handling of arguments.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008235for ac_config_target in $ac_config_targets
8236do
Claire Ho85bf2e22009-11-24 14:23:02 -08008237 case $ac_config_target in
Claire Ho85bf2e22009-11-24 14:23:02 -08008238 "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;;
8239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8240 "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;;
8241 "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;;
claireho27f65472011-06-09 11:11:49 -07008242 "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008243 "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;;
8244 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
8245 "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;;
8246 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
8247 "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
8248 "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;;
8249 "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;;
8250 "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
8251 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
8252 "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;;
8253 "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8254 "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8255 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8256 "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8257 "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;;
8258 "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;;
8259 "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008260 "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;;
8261 "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;;
8262 "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;;
8263 "tools/genctd/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genctd/Makefile" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008264 "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;;
claireho50294ea2010-05-03 15:44:48 -07008265 "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008266 "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;;
8267 "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;;
claireho50294ea2010-05-03 15:44:48 -07008268 "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008269 "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;;
8270 "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;;
8271 "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8272 "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;;
8273 "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;;
8274 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
8275 "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;;
8276 "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;;
8277 "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8278 "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;;
8279 "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;;
8280 "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;;
8281 "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;;
8282 "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;;
8283 "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;;
8284 "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
clairehob26ce3a2012-01-10 17:54:41 -08008285 "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008286 "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8287 "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8288 "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8289 "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;;
claireho27f65472011-06-09 11:11:49 -07008290 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008291 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008292 "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8293 "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8294 "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8295 "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8296 "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8297 "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8298 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
8299 "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;;
8300 "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;;
8301 "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008302
claireho27f65472011-06-09 11:11:49 -07008303 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008304 esac
8305done
8306
Claire Ho85bf2e22009-11-24 14:23:02 -08008307
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008308# If the user did not use the arguments to specify the items to instantiate,
8309# then the envvar interface is used. Set only those that are not.
8310# We use the long form for the default assignment because of an extremely
8311# bizarre bug on SunOS 4.1.3.
8312if $ac_need_defaults; then
8313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008314fi
8315
8316# Have a temporary directory for convenience. Make it in the build tree
Claire Ho85bf2e22009-11-24 14:23:02 -08008317# simply because there is no reason against having it here, and in addition,
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008318# creating and moving files from /tmp can sometimes cause problems.
Claire Ho85bf2e22009-11-24 14:23:02 -08008319# Hook for its removal unless debugging.
8320# Note that there is a small window in which the directory will not be cleaned:
8321# after its creation but before its name has been assigned to `$tmp'.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008322$debug ||
8323{
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008324 tmp= ac_tmp=
Claire Ho85bf2e22009-11-24 14:23:02 -08008325 trap 'exit_status=$?
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008326 : "${ac_tmp:=$tmp}"
8327 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Claire Ho85bf2e22009-11-24 14:23:02 -08008328' 0
claireho27f65472011-06-09 11:11:49 -07008329 trap 'as_fn_exit 1' 1 2 13 15
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008330}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008331# Create a (secure) tmp directory for tmp files.
8332
8333{
Claire Ho85bf2e22009-11-24 14:23:02 -08008334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008335 test -d "$tmp"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008336} ||
8337{
Claire Ho85bf2e22009-11-24 14:23:02 -08008338 tmp=./conf$$-$RANDOM
8339 (umask 077 && mkdir "$tmp")
claireho27f65472011-06-09 11:11:49 -07008340} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008341ac_tmp=$tmp
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008342
Claire Ho85bf2e22009-11-24 14:23:02 -08008343# Set up the scripts for CONFIG_FILES section.
8344# No need to generate them if there are no CONFIG_FILES.
8345# This happens for instance with `./config.status config.h'.
8346if test -n "$CONFIG_FILES"; then
8347
8348
claireho27f65472011-06-09 11:11:49 -07008349ac_cr=`echo X | tr X '\015'`
8350# On cygwin, bash can eat \r inside `` if the user requested igncr.
8351# But we know of no other shell where ac_cr would be empty at this
8352# point, so we can use a bashism as a fallback.
8353if test "x$ac_cr" = x; then
8354 eval ac_cr=\$\'\\r\'
8355fi
Claire Ho85bf2e22009-11-24 14:23:02 -08008356ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8357if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8358 ac_cs_awk_cr='\\r'
8359else
8360 ac_cs_awk_cr=$ac_cr
8361fi
8362
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008363echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008364_ACEOF
8365
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008366
Claire Ho85bf2e22009-11-24 14:23:02 -08008367{
8368 echo "cat >conf$$subs.awk <<_ACEOF" &&
8369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8370 echo "_ACEOF"
8371} >conf$$subs.sh ||
claireho27f65472011-06-09 11:11:49 -07008372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8373ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Claire Ho85bf2e22009-11-24 14:23:02 -08008374ac_delim='%!_!# '
8375for ac_last_try in false false false false false :; do
8376 . ./conf$$subs.sh ||
claireho27f65472011-06-09 11:11:49 -07008377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008378
Claire Ho85bf2e22009-11-24 14:23:02 -08008379 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8380 if test $ac_delim_n = $ac_delim_num; then
8381 break
8382 elif $ac_last_try; then
claireho27f65472011-06-09 11:11:49 -07008383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08008384 else
8385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008386 fi
Claire Ho85bf2e22009-11-24 14:23:02 -08008387done
8388rm -f conf$$subs.sh
8389
8390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008391cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Claire Ho85bf2e22009-11-24 14:23:02 -08008392_ACEOF
8393sed -n '
8394h
8395s/^/S["/; s/!.*/"]=/
8396p
8397g
8398s/^[^!]*!//
8399:repl
8400t repl
8401s/'"$ac_delim"'$//
8402t delim
8403:nl
8404h
claireho27f65472011-06-09 11:11:49 -07008405s/\(.\{148\}\)..*/\1/
Claire Ho85bf2e22009-11-24 14:23:02 -08008406t more1
8407s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8408p
8409n
8410b repl
8411:more1
8412s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8413p
8414g
8415s/.\{148\}//
8416t nl
8417:delim
8418h
claireho27f65472011-06-09 11:11:49 -07008419s/\(.\{148\}\)..*/\1/
Claire Ho85bf2e22009-11-24 14:23:02 -08008420t more2
8421s/["\\]/\\&/g; s/^/"/; s/$/"/
8422p
8423b
8424:more2
8425s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8426p
8427g
8428s/.\{148\}//
8429t delim
8430' <conf$$subs.awk | sed '
8431/^[^""]/{
8432 N
8433 s/\n//
8434}
8435' >>$CONFIG_STATUS || ac_write_fail=1
8436rm -f conf$$subs.awk
8437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8438_ACAWK
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008439cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Claire Ho85bf2e22009-11-24 14:23:02 -08008440 for (key in S) S_is_set[key] = 1
8441 FS = ""
8442
8443}
8444{
8445 line = $ 0
8446 nfields = split(line, field, "@")
8447 substed = 0
8448 len = length(field[1])
8449 for (i = 2; i < nfields; i++) {
8450 key = field[i]
8451 keylen = length(key)
8452 if (S_is_set[key]) {
8453 value = S[key]
8454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8455 len += length(value) + length(field[++i])
8456 substed = 1
8457 } else
8458 len += 1 + keylen
8459 }
8460
8461 print line
8462}
8463
8464_ACAWK
8465_ACEOF
8466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8467if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8468 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8469else
8470 cat
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008471fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
claireho27f65472011-06-09 11:11:49 -07008472 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08008473_ACEOF
8474
claireho27f65472011-06-09 11:11:49 -07008475# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8476# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Claire Ho85bf2e22009-11-24 14:23:02 -08008477# trailing colons and then remove the whole line if VPATH becomes empty
8478# (actually we leave an empty line to preserve line numbers).
8479if test "x$srcdir" = x.; then
claireho27f65472011-06-09 11:11:49 -07008480 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8481h
8482s///
8483s/^/:/
8484s/[ ]*$/:/
8485s/:\$(srcdir):/:/g
8486s/:\${srcdir}:/:/g
8487s/:@srcdir@:/:/g
8488s/^:*//
Claire Ho85bf2e22009-11-24 14:23:02 -08008489s/:*$//
claireho27f65472011-06-09 11:11:49 -07008490x
8491s/\(=[ ]*\).*/\1/
8492G
8493s/\n//
Claire Ho85bf2e22009-11-24 14:23:02 -08008494s/^[^=]*=[ ]*$//
8495}'
8496fi
8497
8498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008499fi # test -n "$CONFIG_FILES"
8500
Claire Ho85bf2e22009-11-24 14:23:02 -08008501
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008502eval set X " :F $CONFIG_FILES "
Claire Ho85bf2e22009-11-24 14:23:02 -08008503shift
8504for ac_tag
8505do
8506 case $ac_tag in
8507 :[FHLC]) ac_mode=$ac_tag; continue;;
8508 esac
8509 case $ac_mode$ac_tag in
8510 :[FHL]*:*);;
claireho27f65472011-06-09 11:11:49 -07008511 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008512 :[FH]-) ac_tag=-:-;;
8513 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8514 esac
8515 ac_save_IFS=$IFS
8516 IFS=:
8517 set x $ac_tag
8518 IFS=$ac_save_IFS
8519 shift
8520 ac_file=$1
8521 shift
8522
8523 case $ac_mode in
8524 :L) ac_source=$1;;
8525 :[FH])
8526 ac_file_inputs=
8527 for ac_f
8528 do
8529 case $ac_f in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008530 -) ac_f="$ac_tmp/stdin";;
Claire Ho85bf2e22009-11-24 14:23:02 -08008531 *) # Look for the file first in the build tree, then in the source tree
8532 # (if the path is not absolute). The absolute path cannot be DOS-style,
8533 # because $ac_f cannot contain `:'.
8534 test -f "$ac_f" ||
8535 case $ac_f in
8536 [\\/$]*) false;;
8537 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8538 esac ||
claireho27f65472011-06-09 11:11:49 -07008539 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008540 esac
8541 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
claireho27f65472011-06-09 11:11:49 -07008542 as_fn_append ac_file_inputs " '$ac_f'"
Claire Ho85bf2e22009-11-24 14:23:02 -08008543 done
8544
8545 # Let's still pretend it is `configure' which instantiates (i.e., don't
8546 # use $as_me), people would be surprised to read:
8547 # /* config.h. Generated by config.status. */
8548 configure_input='Generated from '`
8549 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8550 `' by configure.'
8551 if test x"$ac_file" != x-; then
8552 configure_input="$ac_file. $configure_input"
claireho27f65472011-06-09 11:11:49 -07008553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08008554$as_echo "$as_me: creating $ac_file" >&6;}
8555 fi
8556 # Neutralize special characters interpreted by sed in replacement strings.
8557 case $configure_input in #(
8558 *\&* | *\|* | *\\* )
8559 ac_sed_conf_input=`$as_echo "$configure_input" |
8560 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8561 *) ac_sed_conf_input=$configure_input;;
8562 esac
8563
8564 case $ac_tag in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008565 *:-:* | *:-) cat >"$ac_tmp/stdin" \
claireho27f65472011-06-09 11:11:49 -07008566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008567 esac
8568 ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008569 esac
8570
Claire Ho85bf2e22009-11-24 14:23:02 -08008571 ac_dir=`$as_dirname -- "$ac_file" ||
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008572$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8573 X"$ac_file" : 'X\(//\)[^/]' \| \
8574 X"$ac_file" : 'X\(//\)$' \| \
Claire Ho85bf2e22009-11-24 14:23:02 -08008575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8576$as_echo X"$ac_file" |
8577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8578 s//\1/
8579 q
8580 }
8581 /^X\(\/\/\)[^/].*/{
8582 s//\1/
8583 q
8584 }
8585 /^X\(\/\/\)$/{
8586 s//\1/
8587 q
8588 }
8589 /^X\(\/\).*/{
8590 s//\1/
8591 q
8592 }
8593 s/.*/./; q'`
claireho27f65472011-06-09 11:11:49 -07008594 as_dir="$ac_dir"; as_fn_mkdir_p
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008595 ac_builddir=.
8596
Claire Ho85bf2e22009-11-24 14:23:02 -08008597case "$ac_dir" in
8598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8599*)
8600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8601 # A ".." for each directory in $ac_dir_suffix.
8602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8603 case $ac_top_builddir_sub in
8604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8606 esac ;;
8607esac
8608ac_abs_top_builddir=$ac_pwd
8609ac_abs_builddir=$ac_pwd$ac_dir_suffix
8610# for backward compatibility:
8611ac_top_builddir=$ac_top_build_prefix
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008612
8613case $srcdir in
Claire Ho85bf2e22009-11-24 14:23:02 -08008614 .) # We are building in place.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008615 ac_srcdir=.
Claire Ho85bf2e22009-11-24 14:23:02 -08008616 ac_top_srcdir=$ac_top_builddir_sub
8617 ac_abs_top_srcdir=$ac_pwd ;;
8618 [\\/]* | ?:[\\/]* ) # Absolute name.
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008619 ac_srcdir=$srcdir$ac_dir_suffix;
Claire Ho85bf2e22009-11-24 14:23:02 -08008620 ac_top_srcdir=$srcdir
8621 ac_abs_top_srcdir=$srcdir ;;
8622 *) # Relative name.
8623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8624 ac_top_srcdir=$ac_top_build_prefix$srcdir
8625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008626esac
Claire Ho85bf2e22009-11-24 14:23:02 -08008627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008628
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008629
Claire Ho85bf2e22009-11-24 14:23:02 -08008630 case $ac_mode in
8631 :F)
8632 #
8633 # CONFIG_FILE
8634 #
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008635
8636 case $INSTALL in
8637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008638 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008639 esac
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008640_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08008641
8642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8643# If the template does not know about datarootdir, expand it.
8644# FIXME: This hack should be removed a few years after 2.60.
8645ac_datarootdir_hack=; ac_datarootdir_seen=
Claire Ho85bf2e22009-11-24 14:23:02 -08008646ac_sed_dataroot='
8647/datarootdir/ {
8648 p
8649 q
8650}
8651/@datadir@/p
8652/@docdir@/p
8653/@infodir@/p
8654/@localedir@/p
claireho27f65472011-06-09 11:11:49 -07008655/@mandir@/p'
Claire Ho85bf2e22009-11-24 14:23:02 -08008656case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8657*datarootdir*) ac_datarootdir_seen=yes;;
8658*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
claireho27f65472011-06-09 11:11:49 -07008659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08008660$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8661_ACEOF
8662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8663 ac_datarootdir_hack='
8664 s&@datadir@&$datadir&g
8665 s&@docdir@&$docdir&g
8666 s&@infodir@&$infodir&g
8667 s&@localedir@&$localedir&g
8668 s&@mandir@&$mandir&g
claireho27f65472011-06-09 11:11:49 -07008669 s&\\\${datarootdir}&$datarootdir&g' ;;
Claire Ho85bf2e22009-11-24 14:23:02 -08008670esac
8671_ACEOF
8672
8673# Neutralize VPATH when `$srcdir' = `.'.
8674# Shell code in configure.ac might set extrasub.
8675# FIXME: do we really want to maintain this feature?
8676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8677ac_sed_extra="$ac_vpsub
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008678$extrasub
8679_ACEOF
Claire Ho85bf2e22009-11-24 14:23:02 -08008680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008681:t
8682/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Claire Ho85bf2e22009-11-24 14:23:02 -08008683s|@configure_input@|$ac_sed_conf_input|;t t
8684s&@top_builddir@&$ac_top_builddir_sub&;t t
8685s&@top_build_prefix@&$ac_top_build_prefix&;t t
8686s&@srcdir@&$ac_srcdir&;t t
8687s&@abs_srcdir@&$ac_abs_srcdir&;t t
8688s&@top_srcdir@&$ac_top_srcdir&;t t
8689s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8690s&@builddir@&$ac_builddir&;t t
8691s&@abs_builddir@&$ac_abs_builddir&;t t
8692s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8693s&@INSTALL@&$ac_INSTALL&;t t
8694$ac_datarootdir_hack
8695"
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008696eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8697 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008698
Claire Ho85bf2e22009-11-24 14:23:02 -08008699test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8702 "$ac_tmp/out"`; test -z "$ac_out"; } &&
claireho27f65472011-06-09 11:11:49 -07008703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8704which seems to be undefined. Please make sure it is defined" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08008705$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
claireho27f65472011-06-09 11:11:49 -07008706which seems to be undefined. Please make sure it is defined" >&2;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008707
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008708 rm -f "$ac_tmp/stdin"
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008709 case $ac_file in
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Claire Ho85bf2e22009-11-24 14:23:02 -08008712 esac \
claireho27f65472011-06-09 11:11:49 -07008713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08008714 ;;
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008715
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008716
Claire Ho85bf2e22009-11-24 14:23:02 -08008717
8718 esac
8719
8720done # for ac_tag
8721
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008722
claireho27f65472011-06-09 11:11:49 -07008723as_fn_exit 0
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008724_ACEOF
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008725ac_clean_files=$ac_clean_files_save
8726
Claire Ho85bf2e22009-11-24 14:23:02 -08008727test $ac_write_fail = 0 ||
claireho27f65472011-06-09 11:11:49 -07008728 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Claire Ho85bf2e22009-11-24 14:23:02 -08008729
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008730
8731# configure is writing to config.log, and then calls config.status.
8732# config.status does its own redirection, appending to config.log.
8733# Unfortunately, on DOS this fails, as config.log is still kept open
8734# by configure, so config.status won't be able to write to it; its
8735# output is simply discarded. So we exec the FD to /dev/null,
8736# effectively closing config.log, so it can be properly (re)opened and
8737# appended to by config.status. When coming back to configure, we
8738# need to make the FD available again.
8739if test "$no_create" != yes; then
8740 ac_cs_success=:
8741 ac_config_status_args=
8742 test "$silent" = yes &&
8743 ac_config_status_args="$ac_config_status_args --quiet"
8744 exec 5>/dev/null
8745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8746 exec 5>>config.log
8747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8748 # would make configure fail if this is the last instruction.
claireho27f65472011-06-09 11:11:49 -07008749 $ac_cs_success || as_fn_exit 1
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008750fi
Claire Ho85bf2e22009-11-24 14:23:02 -08008751if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
claireho27f65472011-06-09 11:11:49 -07008752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08008753$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008754fi
8755
Claire Ho85bf2e22009-11-24 14:23:02 -08008756
8757echo
8758echo "ICU for C/C++ $VERSION is ready to be built."
8759echo "=== Important Notes: ==="
8760
8761if test $ICU_USE_THREADS = 0; then
8762 echo
8763 echo "** ICU was configured without mutex or thread support. Multithread-safe operation will not be tested. If this is unexpected, then run configure with --enable-threads=yes or check the messages above to see why thread support was not found." 1>&6
8764 echo
8765fi
8766
8767echo "Data Packaging: $datapackaging"
8768echo " This means: $datapackaging_msg"
8769echo " To locate data: $datapackaging_howfound"
8770
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008771if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
Claire Ho85bf2e22009-11-24 14:23:02 -08008772echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008773else
Claire Ho85bf2e22009-11-24 14:23:02 -08008774echo "** WARNING: $U_MAKE may not be GNU make."
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008775echo "This may cause ICU to fail to build. Please make sure that GNU make"
Claire Ho85bf2e22009-11-24 14:23:02 -08008776echo "is in your PATH so that the configure script can detect its location."
8777fi
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008778if test "x$AR" = "xfalse"; then
8779 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
8780fi
Claire Ho85bf2e22009-11-24 14:23:02 -08008781
claireho27f65472011-06-09 11:11:49 -07008782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08008783$as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
claireho50294ea2010-05-03 15:44:48 -07008784if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
claireho27f65472011-06-09 11:11:49 -07008785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08008786$as_echo "ok" >&6; }
8787else
claireho27f65472011-06-09 11:11:49 -07008788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
Claire Ho85bf2e22009-11-24 14:23:02 -08008789$as_echo "too old or test failed - try upgrading GNU Make" >&6; }
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008790fi
8791
Craig Cornelius103e9ff2012-10-09 17:03:29 -07008792if test -n "$UCONFIG_CPPFLAGS"; then
8793 HDRFILE="uconfig.h.prepend"
8794 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
8795 echo
8796 echo " ${UCONFIG_CPPFLAGS}"
8797 echo
8798 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.'
8799 echo "Creating the file ${HDRFILE}"
8800 echo
8801 echo '--------------- ' "${HDRFILE}"
8802 echo > "${HDRFILE}"
8803 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
8804 echo >> "${HDRFILE}"
8805 for flag in ${UCONFIG_CPPFLAGS};
8806 do
8807 echo " /* $flag */" >> "${HDRFILE}"
8808 case "${flag}" in
8809 -D*=*)
8810 \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
8811 \echo >> "${HDRFILE}"
8812 ;;
8813 -D*)
8814 \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
8815 \echo >> "${HDRFILE}"
8816 ;;
8817 *)
8818 \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
8819 \echo >> "${HDRFILE}"
8820 ;;
8821 esac
8822 done
8823 cat "${HDRFILE}"
8824 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
8825 echo >> "${HDRFILE}"
8826 echo '--------------- end ' "${HDRFILE}"
8827fi
8828
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07008829$as_unset _CXX_CXXSUFFIX