Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for ICU 66.1. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4 | # |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5 | # Report bugs to <http://icu-project.org/bugs>. |
| 6 | # |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7 | # Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8 | # |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9 | # |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 10 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 11 | # |
| 12 | # |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 18 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 34 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 35 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 36 | |
| 37 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 62 | case $arg in #( |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
| 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
| 83 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 84 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 85 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
| 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 94 | as_myself= |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 95 | case $0 in #(( |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 104 | IFS=$as_save_IFS |
| 105 | |
| 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
| 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 115 | exit 1 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 116 | fi |
| 117 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 125 | done |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 135 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 139 | # Use a proper internal environment variable to ensure we don't fall |
| 140 | # into an infinite loop, continuously re-executing ourselves. |
| 141 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 142 | _as_can_reexec=no; export _as_can_reexec; |
| 143 | # We cannot yet assume a decent shell, so we have to provide a |
| 144 | # neutralization value for shells without unset; and this also |
| 145 | # works around shells that cannot unset nonexistent variables. |
| 146 | # Preserve -v and -x to the replacement shell. |
| 147 | BASH_ENV=/dev/null |
| 148 | ENV=/dev/null |
| 149 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 150 | case $- in # (((( |
| 151 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 152 | *v* ) as_opts=-v ;; |
| 153 | *x* ) as_opts=-x ;; |
| 154 | * ) as_opts= ;; |
| 155 | esac |
| 156 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 157 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 158 | # out after a failed `exec'. |
| 159 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 160 | as_fn_exit 255 |
| 161 | fi |
| 162 | # We don't want this to propagate to other subprocesses. |
| 163 | { _as_can_reexec=; unset _as_can_reexec;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 164 | if test "x$CONFIG_SHELL" = x; then |
| 165 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 166 | emulate sh |
| 167 | NULLCMD=: |
| 168 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 169 | # is contrary to our usage. Disable this feature. |
| 170 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 171 | setopt NO_GLOB_SUBST |
| 172 | else |
| 173 | case \`(set -o) 2>/dev/null\` in #( |
| 174 | *posix*) : |
| 175 | set -o posix ;; #( |
| 176 | *) : |
| 177 | ;; |
| 178 | esac |
| 179 | fi |
| 180 | " |
| 181 | as_required="as_fn_return () { (exit \$1); } |
| 182 | as_fn_success () { as_fn_return 0; } |
| 183 | as_fn_failure () { as_fn_return 1; } |
| 184 | as_fn_ret_success () { return 0; } |
| 185 | as_fn_ret_failure () { return 1; } |
| 186 | |
| 187 | exitcode=0 |
| 188 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 189 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 190 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 191 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 192 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 193 | |
| 194 | else |
| 195 | exitcode=1; echo positional parameters were not saved. |
| 196 | fi |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 197 | test x\$exitcode = x0 || exit 1 |
| 198 | test -x / || exit 1" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 199 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 200 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 201 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 202 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 203 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 204 | if (eval "$as_required") 2>/dev/null; then : |
| 205 | as_have_required=yes |
| 206 | else |
| 207 | as_have_required=no |
| 208 | fi |
| 209 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 210 | |
| 211 | else |
| 212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 213 | as_found=false |
| 214 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 215 | do |
| 216 | IFS=$as_save_IFS |
| 217 | test -z "$as_dir" && as_dir=. |
| 218 | as_found=: |
| 219 | case $as_dir in #( |
| 220 | /*) |
| 221 | for as_base in sh bash ksh sh5; do |
| 222 | # Try only shells that exist, to save several forks. |
| 223 | as_shell=$as_dir/$as_base |
| 224 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 225 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 226 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 227 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 228 | break 2 |
| 229 | fi |
| 230 | fi |
| 231 | done;; |
| 232 | esac |
| 233 | as_found=false |
| 234 | done |
| 235 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 236 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 237 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 238 | fi; } |
| 239 | IFS=$as_save_IFS |
| 240 | |
| 241 | |
| 242 | if test "x$CONFIG_SHELL" != x; then : |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 243 | export CONFIG_SHELL |
| 244 | # We cannot yet assume a decent shell, so we have to provide a |
| 245 | # neutralization value for shells without unset; and this also |
| 246 | # works around shells that cannot unset nonexistent variables. |
| 247 | # Preserve -v and -x to the replacement shell. |
| 248 | BASH_ENV=/dev/null |
| 249 | ENV=/dev/null |
| 250 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 251 | case $- in # (((( |
| 252 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 253 | *v* ) as_opts=-v ;; |
| 254 | *x* ) as_opts=-x ;; |
| 255 | * ) as_opts= ;; |
| 256 | esac |
| 257 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 258 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 259 | # out after a failed `exec'. |
| 260 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 261 | exit 255 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 262 | fi |
| 263 | |
| 264 | if test x$as_have_required = xno; then : |
| 265 | $as_echo "$0: This script requires a shell more modern than all" |
| 266 | $as_echo "$0: the shells that I found on your system." |
| 267 | if test x${ZSH_VERSION+set} = xset ; then |
| 268 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 269 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 270 | else |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 271 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 272 | $0: http://icu-project.org/bugs about your system, |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 273 | $0: including any error possibly output before this |
| 274 | $0: message. Then install a modern shell, or manually run |
| 275 | $0: the script under such a shell if you do have one." |
| 276 | fi |
| 277 | exit 1 |
| 278 | fi |
| 279 | fi |
| 280 | fi |
| 281 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 282 | export SHELL |
| 283 | # Unset more variables known to interfere with behavior of common tools. |
| 284 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 285 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 286 | |
| 287 | ## --------------------- ## |
| 288 | ## M4sh Shell Functions. ## |
| 289 | ## --------------------- ## |
| 290 | # as_fn_unset VAR |
| 291 | # --------------- |
| 292 | # Portably unset VAR. |
| 293 | as_fn_unset () |
| 294 | { |
| 295 | { eval $1=; unset $1;} |
| 296 | } |
| 297 | as_unset=as_fn_unset |
| 298 | |
| 299 | # as_fn_set_status STATUS |
| 300 | # ----------------------- |
| 301 | # Set $? to STATUS, without forking. |
| 302 | as_fn_set_status () |
| 303 | { |
| 304 | return $1 |
| 305 | } # as_fn_set_status |
| 306 | |
| 307 | # as_fn_exit STATUS |
| 308 | # ----------------- |
| 309 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 310 | as_fn_exit () |
| 311 | { |
| 312 | set +e |
| 313 | as_fn_set_status $1 |
| 314 | exit $1 |
| 315 | } # as_fn_exit |
| 316 | |
| 317 | # as_fn_mkdir_p |
| 318 | # ------------- |
| 319 | # Create "$as_dir" as a directory, including parents if necessary. |
| 320 | as_fn_mkdir_p () |
| 321 | { |
| 322 | |
| 323 | case $as_dir in #( |
| 324 | -*) as_dir=./$as_dir;; |
| 325 | esac |
| 326 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 327 | as_dirs= |
| 328 | while :; do |
| 329 | case $as_dir in #( |
| 330 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 331 | *) as_qdir=$as_dir;; |
| 332 | esac |
| 333 | as_dirs="'$as_qdir' $as_dirs" |
| 334 | as_dir=`$as_dirname -- "$as_dir" || |
| 335 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 336 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 337 | X"$as_dir" : 'X\(//\)$' \| \ |
| 338 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 339 | $as_echo X"$as_dir" | |
| 340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 341 | s//\1/ |
| 342 | q |
| 343 | } |
| 344 | /^X\(\/\/\)[^/].*/{ |
| 345 | s//\1/ |
| 346 | q |
| 347 | } |
| 348 | /^X\(\/\/\)$/{ |
| 349 | s//\1/ |
| 350 | q |
| 351 | } |
| 352 | /^X\(\/\).*/{ |
| 353 | s//\1/ |
| 354 | q |
| 355 | } |
| 356 | s/.*/./; q'` |
| 357 | test -d "$as_dir" && break |
| 358 | done |
| 359 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 360 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 361 | |
| 362 | |
| 363 | } # as_fn_mkdir_p |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 364 | |
| 365 | # as_fn_executable_p FILE |
| 366 | # ----------------------- |
| 367 | # Test if FILE is an executable regular file. |
| 368 | as_fn_executable_p () |
| 369 | { |
| 370 | test -f "$1" && test -x "$1" |
| 371 | } # as_fn_executable_p |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 372 | # as_fn_append VAR VALUE |
| 373 | # ---------------------- |
| 374 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 375 | # advantage of any shell optimizations that allow amortized linear growth over |
| 376 | # repeated appends, instead of the typical quadratic growth present in naive |
| 377 | # implementations. |
| 378 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 379 | eval 'as_fn_append () |
| 380 | { |
| 381 | eval $1+=\$2 |
| 382 | }' |
| 383 | else |
| 384 | as_fn_append () |
| 385 | { |
| 386 | eval $1=\$$1\$2 |
| 387 | } |
| 388 | fi # as_fn_append |
| 389 | |
| 390 | # as_fn_arith ARG... |
| 391 | # ------------------ |
| 392 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 393 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 394 | # must be portable across $(()) and expr. |
| 395 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 396 | eval 'as_fn_arith () |
| 397 | { |
| 398 | as_val=$(( $* )) |
| 399 | }' |
| 400 | else |
| 401 | as_fn_arith () |
| 402 | { |
| 403 | as_val=`expr "$@" || test $? -eq 1` |
| 404 | } |
| 405 | fi # as_fn_arith |
| 406 | |
| 407 | |
| 408 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 409 | # ---------------------------------------- |
| 410 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 411 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 412 | # script with STATUS, using 1 if that was 0. |
| 413 | as_fn_error () |
| 414 | { |
| 415 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 416 | if test "$4"; then |
| 417 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 418 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 419 | fi |
| 420 | $as_echo "$as_me: error: $2" >&2 |
| 421 | as_fn_exit $as_status |
| 422 | } # as_fn_error |
| 423 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 424 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 425 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 426 | as_expr=expr |
| 427 | else |
| 428 | as_expr=false |
| 429 | fi |
| 430 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 431 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 432 | as_basename=basename |
| 433 | else |
| 434 | as_basename=false |
| 435 | fi |
| 436 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 437 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 438 | as_dirname=dirname |
| 439 | else |
| 440 | as_dirname=false |
| 441 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 442 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 443 | as_me=`$as_basename -- "$0" || |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 444 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 445 | X"$0" : 'X\(//\)$' \| \ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 446 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 447 | $as_echo X/"$0" | |
| 448 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 449 | s//\1/ |
| 450 | q |
| 451 | } |
| 452 | /^X\/\(\/\/\)$/{ |
| 453 | s//\1/ |
| 454 | q |
| 455 | } |
| 456 | /^X\/\(\/\).*/{ |
| 457 | s//\1/ |
| 458 | q |
| 459 | } |
| 460 | s/.*/./; q'` |
| 461 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 462 | # Avoid depending upon Character Ranges. |
| 463 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 464 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 465 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 466 | as_cr_digits='0123456789' |
| 467 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 468 | |
| 469 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 470 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 471 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 472 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 473 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 474 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 475 | sed -n ' |
| 476 | p |
| 477 | /[$]LINENO/= |
| 478 | ' <$as_myself | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 479 | sed ' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 480 | s/[$]LINENO.*/&-/ |
| 481 | t lineno |
| 482 | b |
| 483 | :lineno |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 484 | N |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 485 | :loop |
| 486 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 487 | t loop |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 488 | s/-\n.*// |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 489 | ' >$as_me.lineno && |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 490 | chmod +x "$as_me.lineno" || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 491 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 492 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 493 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 494 | # already done that, so ensure we don't try to do so again and fall |
| 495 | # in an infinite loop. This has already happened in practice. |
| 496 | _as_can_reexec=no; export _as_can_reexec |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 497 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 498 | # (the dirname of $[0] is not the place where we might find the |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 499 | # original and so on. Autoconf is especially sensitive to this). |
| 500 | . "./$as_me.lineno" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 501 | # Exit status is that of the last command. |
| 502 | exit |
| 503 | } |
| 504 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 505 | ECHO_C= ECHO_N= ECHO_T= |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 506 | case `echo -n x` in #((((( |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 507 | -n*) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 508 | case `echo 'xy\c'` in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 509 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 510 | xy) ECHO_C='\c';; |
| 511 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 512 | ECHO_T=' ';; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 513 | esac;; |
| 514 | *) |
| 515 | ECHO_N='-n';; |
| 516 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 517 | |
| 518 | rm -f conf$$ conf$$.exe conf$$.file |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 519 | if test -d conf$$.dir; then |
| 520 | rm -f conf$$.dir/conf$$.file |
| 521 | else |
| 522 | rm -f conf$$.dir |
| 523 | mkdir conf$$.dir 2>/dev/null |
| 524 | fi |
| 525 | if (echo >conf$$.file) 2>/dev/null; then |
| 526 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 527 | as_ln_s='ln -s' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 528 | # ... but there are two gotchas: |
| 529 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 530 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 531 | # In both cases, we have to default to `cp -pR'. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 532 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 533 | as_ln_s='cp -pR' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 534 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 535 | as_ln_s=ln |
| 536 | else |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 537 | as_ln_s='cp -pR' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 538 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 539 | else |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 540 | as_ln_s='cp -pR' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 541 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 542 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 543 | rmdir conf$$.dir 2>/dev/null |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 544 | |
| 545 | if mkdir -p . 2>/dev/null; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 546 | as_mkdir_p='mkdir -p "$as_dir"' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 547 | else |
| 548 | test -d ./-p && rmdir ./-p |
| 549 | as_mkdir_p=false |
| 550 | fi |
| 551 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 552 | as_test_x='test -x' |
| 553 | as_executable_p=as_fn_executable_p |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 554 | |
| 555 | # Sed expression to map a string onto a valid CPP name. |
| 556 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 557 | |
| 558 | # Sed expression to map a string onto a valid variable name. |
| 559 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 560 | |
| 561 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 562 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 563 | exec 6>&1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 564 | |
| 565 | # Name of the host. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 566 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 567 | # so uname gets run too. |
| 568 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 569 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 570 | # |
| 571 | # Initializations. |
| 572 | # |
| 573 | ac_default_prefix=/usr/local |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 574 | ac_clean_files= |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 575 | ac_config_libobj_dir=. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 576 | LIBOBJS= |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 577 | cross_compiling=no |
| 578 | subdirs= |
| 579 | MFLAGS= |
| 580 | MAKEFLAGS= |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 581 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 582 | # Identity of this package. |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 583 | PACKAGE_NAME='ICU' |
| 584 | PACKAGE_TARNAME='International Components for Unicode' |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 585 | PACKAGE_VERSION='66.1' |
| 586 | PACKAGE_STRING='ICU 66.1' |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 587 | PACKAGE_BUGREPORT='http://icu-project.org/bugs' |
| 588 | PACKAGE_URL='http://icu-project.org' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 589 | |
| 590 | ac_unique_file="common/unicode/utypes.h" |
| 591 | # Factoring default headers for most tests. |
| 592 | ac_includes_default="\ |
| 593 | #include <stdio.h> |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 594 | #ifdef HAVE_SYS_TYPES_H |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 595 | # include <sys/types.h> |
| 596 | #endif |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 597 | #ifdef HAVE_SYS_STAT_H |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 598 | # include <sys/stat.h> |
| 599 | #endif |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 600 | #ifdef STDC_HEADERS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 601 | # include <stdlib.h> |
| 602 | # include <stddef.h> |
| 603 | #else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 604 | # ifdef HAVE_STDLIB_H |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 605 | # include <stdlib.h> |
| 606 | # endif |
| 607 | #endif |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 608 | #ifdef HAVE_STRING_H |
| 609 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 610 | # include <memory.h> |
| 611 | # endif |
| 612 | # include <string.h> |
| 613 | #endif |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 614 | #ifdef HAVE_STRINGS_H |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 615 | # include <strings.h> |
| 616 | #endif |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 617 | #ifdef HAVE_INTTYPES_H |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 618 | # include <inttypes.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 619 | #endif |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 620 | #ifdef HAVE_STDINT_H |
| 621 | # include <stdint.h> |
| 622 | #endif |
| 623 | #ifdef HAVE_UNISTD_H |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 624 | # include <unistd.h> |
| 625 | #endif" |
| 626 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 627 | ac_subst_vars='UCONFIG_CXXFLAGS |
| 628 | UCONFIG_CFLAGS |
| 629 | UCONFIG_CPPFLAGS |
| 630 | LTLIBOBJS |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 631 | LIBOBJS |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 632 | LIBCXXFLAGS |
| 633 | LIBCFLAGS |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 634 | platform_make_fragment |
| 635 | platform_make_fragment_name |
| 636 | platform |
| 637 | ICUDATA_CHAR |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 638 | U_HAVE_SAMPLES |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 639 | SAMPLES_TRUE |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 640 | U_HAVE_TESTS |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 641 | TESTS_TRUE |
| 642 | ICULIBSUFFIXCNAME |
| 643 | U_HAVE_LIB_SUFFIX |
| 644 | ICULIBSUFFIX |
| 645 | DATA_PACKAGING_MODE |
| 646 | thepkgicudatadir |
| 647 | pkgicudatadir |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 648 | U_HAVE_FUZZER |
| 649 | FUZZER_TRUE |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 650 | U_HAVE_TOOLS |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 651 | TOOLS_TRUE |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 652 | U_HAVE_LAYOUTEX |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 653 | LAYOUTEX_TRUE |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 654 | U_HAVE_ICUIO |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 655 | ICUIO_TRUE |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 656 | U_HAVE_EXTRAS |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 657 | EXTRAS_TRUE |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 658 | U_HAVE_WCSCPY |
| 659 | U_HAVE_WCHAR_H |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 660 | U_HAVE_STRTOD_L |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 661 | U_TIMEZONE |
| 662 | U_HAVE_TIMEZONE |
| 663 | U_TZNAME |
| 664 | U_HAVE_TZNAME |
| 665 | U_TZSET |
| 666 | U_HAVE_TZSET |
| 667 | U_HAVE_POPEN |
| 668 | U_HAVE_PLACEMENT_NEW |
| 669 | U_OVERRIDE_CXX_ALLOCATION |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 670 | U_NL_LANGINFO_CODESET |
| 671 | U_HAVE_NL_LANGINFO_CODESET |
| 672 | U_IS_BIG_ENDIAN |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 673 | U_HAVE_DIRENT_H |
| 674 | U_HAVE_INTTYPES_H |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 675 | GENCCODE_ASSEMBLY |
| 676 | HAVE_MMAP |
| 677 | LIB_THREAD |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 678 | ENABLE_RPATH |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 679 | U_ENABLE_DYLOAD |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 680 | U_HAVE_PLUGINS |
| 681 | PLUGINS_TRUE |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 682 | U_ENABLE_TRACING |
| 683 | U_DISABLE_RENAMING |
| 684 | AR |
Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 685 | SED |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 686 | RANLIB |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 687 | U_DEFAULT_SHOW_DRAFT |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 688 | UCLN_NO_AUTO_CLEANUP |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 689 | ENABLE_STATIC |
| 690 | ENABLE_SHARED |
| 691 | LIB_M |
| 692 | COMPILE_LINK_ENVVAR |
| 693 | ARFLAGS |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 694 | EGREP |
| 695 | GREP |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 696 | DOXYGEN |
| 697 | cross_buildroot |
| 698 | U_MAKE |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 699 | PYTHON |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 700 | cross_compiling |
| 701 | INSTALL_DATA |
| 702 | INSTALL_SCRIPT |
| 703 | INSTALL_PROGRAM |
| 704 | CPP |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 705 | ICULEHB_LIBS |
| 706 | ICULEHB_CFLAGS |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 707 | PKG_CONFIG_LIBDIR |
| 708 | PKG_CONFIG_PATH |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 709 | PKG_CONFIG |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 710 | ac_ct_CXX |
| 711 | CXXFLAGS |
| 712 | CXX |
| 713 | OBJEXT |
| 714 | EXEEXT |
| 715 | ac_ct_CC |
| 716 | LDFLAGS |
| 717 | CFLAGS |
| 718 | CC |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 719 | ENABLE_RELEASE |
| 720 | ENABLE_DEBUG |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 721 | INSTALL_ICU_CONFIG |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 722 | CPPFLAGS |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 723 | host_os |
| 724 | host_vendor |
| 725 | host_cpu |
| 726 | host |
| 727 | build_os |
| 728 | build_vendor |
| 729 | build_cpu |
| 730 | build |
| 731 | UNICODE_VERSION |
| 732 | LIB_VERSION_MAJOR |
| 733 | LIB_VERSION |
| 734 | VERSION |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 735 | ICU_ECHO_T |
| 736 | ICU_ECHO_C |
| 737 | ICU_ECHO_N |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 738 | PACKAGE |
| 739 | target_alias |
| 740 | host_alias |
| 741 | build_alias |
| 742 | LIBS |
| 743 | ECHO_T |
| 744 | ECHO_N |
| 745 | ECHO_C |
| 746 | DEFS |
| 747 | mandir |
| 748 | localedir |
| 749 | libdir |
| 750 | psdir |
| 751 | pdfdir |
| 752 | dvidir |
| 753 | htmldir |
| 754 | infodir |
| 755 | docdir |
| 756 | oldincludedir |
| 757 | includedir |
| 758 | localstatedir |
| 759 | sharedstatedir |
| 760 | sysconfdir |
| 761 | datadir |
| 762 | datarootdir |
| 763 | libexecdir |
| 764 | sbindir |
| 765 | bindir |
| 766 | program_transform_name |
| 767 | prefix |
| 768 | exec_prefix |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 769 | PACKAGE_URL |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 770 | PACKAGE_BUGREPORT |
| 771 | PACKAGE_STRING |
| 772 | PACKAGE_VERSION |
| 773 | PACKAGE_TARNAME |
| 774 | PACKAGE_NAME |
| 775 | PATH_SEPARATOR |
| 776 | SHELL' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 777 | ac_subst_files='' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 778 | ac_user_opts=' |
| 779 | enable_option_checking |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 780 | enable_icu_config |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 781 | enable_debug |
| 782 | enable_release |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 783 | with_cross_build |
| 784 | enable_strict |
| 785 | enable_64bit_libs |
| 786 | with_library_bits |
| 787 | enable_shared |
| 788 | enable_static |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 789 | enable_auto_cleanup |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 790 | enable_draft |
| 791 | enable_renaming |
| 792 | enable_tracing |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 793 | enable_plugins |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 794 | enable_dyload |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 795 | enable_rpath |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 796 | enable_weak_threads |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 797 | enable_extras |
| 798 | enable_icuio |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 799 | enable_layoutex |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 800 | enable_layout |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 801 | enable_tools |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 802 | enable_fuzzer |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 803 | with_data_packaging |
| 804 | with_library_suffix |
| 805 | enable_tests |
| 806 | enable_samples |
| 807 | ' |
| 808 | ac_precious_vars='build_alias |
| 809 | host_alias |
| 810 | target_alias |
| 811 | CC |
| 812 | CFLAGS |
| 813 | LDFLAGS |
| 814 | LIBS |
| 815 | CPPFLAGS |
| 816 | CXX |
| 817 | CXXFLAGS |
| 818 | CCC |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 819 | PKG_CONFIG |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 820 | PKG_CONFIG_PATH |
| 821 | PKG_CONFIG_LIBDIR |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 822 | ICULEHB_CFLAGS |
| 823 | ICULEHB_LIBS |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 824 | CPP' |
| 825 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 826 | |
| 827 | # Initialize some variables set by options. |
| 828 | ac_init_help= |
| 829 | ac_init_version=false |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 830 | ac_unrecognized_opts= |
| 831 | ac_unrecognized_sep= |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 832 | # The variables have the same names as the options, with |
| 833 | # dashes changed to underlines. |
| 834 | cache_file=/dev/null |
| 835 | exec_prefix=NONE |
| 836 | no_create= |
| 837 | no_recursion= |
| 838 | prefix=NONE |
| 839 | program_prefix=NONE |
| 840 | program_suffix=NONE |
| 841 | program_transform_name=s,x,x, |
| 842 | silent= |
| 843 | site= |
| 844 | srcdir= |
| 845 | verbose= |
| 846 | x_includes=NONE |
| 847 | x_libraries=NONE |
| 848 | |
| 849 | # Installation directory options. |
| 850 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 851 | # and all the variables that are supposed to be based on exec_prefix |
| 852 | # by default will actually change. |
| 853 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 854 | # (The list follows the same order as the GNU Coding Standards.) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 855 | bindir='${exec_prefix}/bin' |
| 856 | sbindir='${exec_prefix}/sbin' |
| 857 | libexecdir='${exec_prefix}/libexec' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 858 | datarootdir='${prefix}/share' |
| 859 | datadir='${datarootdir}' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 860 | sysconfdir='${prefix}/etc' |
| 861 | sharedstatedir='${prefix}/com' |
| 862 | localstatedir='${prefix}/var' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 863 | includedir='${prefix}/include' |
| 864 | oldincludedir='/usr/include' |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 865 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 866 | infodir='${datarootdir}/info' |
| 867 | htmldir='${docdir}' |
| 868 | dvidir='${docdir}' |
| 869 | pdfdir='${docdir}' |
| 870 | psdir='${docdir}' |
| 871 | libdir='${exec_prefix}/lib' |
| 872 | localedir='${datarootdir}/locale' |
| 873 | mandir='${datarootdir}/man' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 874 | |
| 875 | ac_prev= |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 876 | ac_dashdash= |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 877 | for ac_option |
| 878 | do |
| 879 | # If the previous option needs an argument, assign it. |
| 880 | if test -n "$ac_prev"; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 881 | eval $ac_prev=\$ac_option |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 882 | ac_prev= |
| 883 | continue |
| 884 | fi |
| 885 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 886 | case $ac_option in |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 887 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 888 | *=) ac_optarg= ;; |
| 889 | *) ac_optarg=yes ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 890 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 891 | |
| 892 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 893 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 894 | case $ac_dashdash$ac_option in |
| 895 | --) |
| 896 | ac_dashdash=yes ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 897 | |
| 898 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 899 | ac_prev=bindir ;; |
| 900 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 901 | bindir=$ac_optarg ;; |
| 902 | |
| 903 | -build | --build | --buil | --bui | --bu) |
| 904 | ac_prev=build_alias ;; |
| 905 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 906 | build_alias=$ac_optarg ;; |
| 907 | |
| 908 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 909 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 910 | ac_prev=cache_file ;; |
| 911 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 912 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 913 | cache_file=$ac_optarg ;; |
| 914 | |
| 915 | --config-cache | -C) |
| 916 | cache_file=config.cache ;; |
| 917 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 918 | -datadir | --datadir | --datadi | --datad) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 919 | ac_prev=datadir ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 920 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 921 | datadir=$ac_optarg ;; |
| 922 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 923 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 924 | | --dataroo | --dataro | --datar) |
| 925 | ac_prev=datarootdir ;; |
| 926 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 927 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 928 | datarootdir=$ac_optarg ;; |
| 929 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 930 | -disable-* | --disable-*) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 931 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 932 | # Reject names that are not valid shell variable names. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 933 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 934 | as_fn_error $? "invalid feature name: $ac_useropt" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 935 | ac_useropt_orig=$ac_useropt |
| 936 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 937 | case $ac_user_opts in |
| 938 | *" |
| 939 | "enable_$ac_useropt" |
| 940 | "*) ;; |
| 941 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 942 | ac_unrecognized_sep=', ';; |
| 943 | esac |
| 944 | eval enable_$ac_useropt=no ;; |
| 945 | |
| 946 | -docdir | --docdir | --docdi | --doc | --do) |
| 947 | ac_prev=docdir ;; |
| 948 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 949 | docdir=$ac_optarg ;; |
| 950 | |
| 951 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 952 | ac_prev=dvidir ;; |
| 953 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 954 | dvidir=$ac_optarg ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 955 | |
| 956 | -enable-* | --enable-*) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 957 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 958 | # Reject names that are not valid shell variable names. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 959 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 960 | as_fn_error $? "invalid feature name: $ac_useropt" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 961 | ac_useropt_orig=$ac_useropt |
| 962 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 963 | case $ac_user_opts in |
| 964 | *" |
| 965 | "enable_$ac_useropt" |
| 966 | "*) ;; |
| 967 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 968 | ac_unrecognized_sep=', ';; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 969 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 970 | eval enable_$ac_useropt=\$ac_optarg ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 971 | |
| 972 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 973 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 974 | | --exec | --exe | --ex) |
| 975 | ac_prev=exec_prefix ;; |
| 976 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 977 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 978 | | --exec=* | --exe=* | --ex=*) |
| 979 | exec_prefix=$ac_optarg ;; |
| 980 | |
| 981 | -gas | --gas | --ga | --g) |
| 982 | # Obsolete; use --with-gas. |
| 983 | with_gas=yes ;; |
| 984 | |
| 985 | -help | --help | --hel | --he | -h) |
| 986 | ac_init_help=long ;; |
| 987 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 988 | ac_init_help=recursive ;; |
| 989 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 990 | ac_init_help=short ;; |
| 991 | |
| 992 | -host | --host | --hos | --ho) |
| 993 | ac_prev=host_alias ;; |
| 994 | -host=* | --host=* | --hos=* | --ho=*) |
| 995 | host_alias=$ac_optarg ;; |
| 996 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 997 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 998 | ac_prev=htmldir ;; |
| 999 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1000 | | --ht=*) |
| 1001 | htmldir=$ac_optarg ;; |
| 1002 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1003 | -includedir | --includedir | --includedi | --included | --include \ |
| 1004 | | --includ | --inclu | --incl | --inc) |
| 1005 | ac_prev=includedir ;; |
| 1006 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1007 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1008 | includedir=$ac_optarg ;; |
| 1009 | |
| 1010 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1011 | ac_prev=infodir ;; |
| 1012 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1013 | infodir=$ac_optarg ;; |
| 1014 | |
| 1015 | -libdir | --libdir | --libdi | --libd) |
| 1016 | ac_prev=libdir ;; |
| 1017 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1018 | libdir=$ac_optarg ;; |
| 1019 | |
| 1020 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1021 | | --libexe | --libex | --libe) |
| 1022 | ac_prev=libexecdir ;; |
| 1023 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1024 | | --libexe=* | --libex=* | --libe=*) |
| 1025 | libexecdir=$ac_optarg ;; |
| 1026 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1027 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1028 | ac_prev=localedir ;; |
| 1029 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1030 | localedir=$ac_optarg ;; |
| 1031 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1032 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1033 | | --localstate | --localstat | --localsta | --localst | --locals) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1034 | ac_prev=localstatedir ;; |
| 1035 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1036 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1037 | localstatedir=$ac_optarg ;; |
| 1038 | |
| 1039 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1040 | ac_prev=mandir ;; |
| 1041 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1042 | mandir=$ac_optarg ;; |
| 1043 | |
| 1044 | -nfp | --nfp | --nf) |
| 1045 | # Obsolete; use --without-fp. |
| 1046 | with_fp=no ;; |
| 1047 | |
| 1048 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1049 | | --no-cr | --no-c | -n) |
| 1050 | no_create=yes ;; |
| 1051 | |
| 1052 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1053 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1054 | no_recursion=yes ;; |
| 1055 | |
| 1056 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1057 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1058 | | --oldin | --oldi | --old | --ol | --o) |
| 1059 | ac_prev=oldincludedir ;; |
| 1060 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1061 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1062 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1063 | oldincludedir=$ac_optarg ;; |
| 1064 | |
| 1065 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1066 | ac_prev=prefix ;; |
| 1067 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1068 | prefix=$ac_optarg ;; |
| 1069 | |
| 1070 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1071 | | --program-pre | --program-pr | --program-p) |
| 1072 | ac_prev=program_prefix ;; |
| 1073 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1074 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1075 | program_prefix=$ac_optarg ;; |
| 1076 | |
| 1077 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1078 | | --program-suf | --program-su | --program-s) |
| 1079 | ac_prev=program_suffix ;; |
| 1080 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1081 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1082 | program_suffix=$ac_optarg ;; |
| 1083 | |
| 1084 | -program-transform-name | --program-transform-name \ |
| 1085 | | --program-transform-nam | --program-transform-na \ |
| 1086 | | --program-transform-n | --program-transform- \ |
| 1087 | | --program-transform | --program-transfor \ |
| 1088 | | --program-transfo | --program-transf \ |
| 1089 | | --program-trans | --program-tran \ |
| 1090 | | --progr-tra | --program-tr | --program-t) |
| 1091 | ac_prev=program_transform_name ;; |
| 1092 | -program-transform-name=* | --program-transform-name=* \ |
| 1093 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1094 | | --program-transform-n=* | --program-transform-=* \ |
| 1095 | | --program-transform=* | --program-transfor=* \ |
| 1096 | | --program-transfo=* | --program-transf=* \ |
| 1097 | | --program-trans=* | --program-tran=* \ |
| 1098 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1099 | program_transform_name=$ac_optarg ;; |
| 1100 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1101 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1102 | ac_prev=pdfdir ;; |
| 1103 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1104 | pdfdir=$ac_optarg ;; |
| 1105 | |
| 1106 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1107 | ac_prev=psdir ;; |
| 1108 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1109 | psdir=$ac_optarg ;; |
| 1110 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1111 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1112 | | -silent | --silent | --silen | --sile | --sil) |
| 1113 | silent=yes ;; |
| 1114 | |
| 1115 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1116 | ac_prev=sbindir ;; |
| 1117 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1118 | | --sbi=* | --sb=*) |
| 1119 | sbindir=$ac_optarg ;; |
| 1120 | |
| 1121 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1122 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1123 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1124 | | --sha | --sh) |
| 1125 | ac_prev=sharedstatedir ;; |
| 1126 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1127 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1128 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1129 | | --sha=* | --sh=*) |
| 1130 | sharedstatedir=$ac_optarg ;; |
| 1131 | |
| 1132 | -site | --site | --sit) |
| 1133 | ac_prev=site ;; |
| 1134 | -site=* | --site=* | --sit=*) |
| 1135 | site=$ac_optarg ;; |
| 1136 | |
| 1137 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1138 | ac_prev=srcdir ;; |
| 1139 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1140 | srcdir=$ac_optarg ;; |
| 1141 | |
| 1142 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1143 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1144 | ac_prev=sysconfdir ;; |
| 1145 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1146 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1147 | sysconfdir=$ac_optarg ;; |
| 1148 | |
| 1149 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1150 | ac_prev=target_alias ;; |
| 1151 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1152 | target_alias=$ac_optarg ;; |
| 1153 | |
| 1154 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1155 | verbose=yes ;; |
| 1156 | |
| 1157 | -version | --version | --versio | --versi | --vers | -V) |
| 1158 | ac_init_version=: ;; |
| 1159 | |
| 1160 | -with-* | --with-*) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1161 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1162 | # Reject names that are not valid shell variable names. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1163 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1164 | as_fn_error $? "invalid package name: $ac_useropt" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1165 | ac_useropt_orig=$ac_useropt |
| 1166 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1167 | case $ac_user_opts in |
| 1168 | *" |
| 1169 | "with_$ac_useropt" |
| 1170 | "*) ;; |
| 1171 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1172 | ac_unrecognized_sep=', ';; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1173 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1174 | eval with_$ac_useropt=\$ac_optarg ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1175 | |
| 1176 | -without-* | --without-*) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1177 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1178 | # Reject names that are not valid shell variable names. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1179 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1180 | as_fn_error $? "invalid package name: $ac_useropt" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1181 | ac_useropt_orig=$ac_useropt |
| 1182 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1183 | case $ac_user_opts in |
| 1184 | *" |
| 1185 | "with_$ac_useropt" |
| 1186 | "*) ;; |
| 1187 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1188 | ac_unrecognized_sep=', ';; |
| 1189 | esac |
| 1190 | eval with_$ac_useropt=no ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1191 | |
| 1192 | --x) |
| 1193 | # Obsolete; use --with-x. |
| 1194 | with_x=yes ;; |
| 1195 | |
| 1196 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1197 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1198 | ac_prev=x_includes ;; |
| 1199 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1200 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1201 | x_includes=$ac_optarg ;; |
| 1202 | |
| 1203 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1204 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1205 | ac_prev=x_libraries ;; |
| 1206 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1207 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1208 | x_libraries=$ac_optarg ;; |
| 1209 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1210 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1211 | Try \`$0 --help' for more information" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1212 | ;; |
| 1213 | |
| 1214 | *=*) |
| 1215 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1216 | # Reject names that are not valid shell variable names. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1217 | case $ac_envvar in #( |
| 1218 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1219 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1220 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1221 | eval $ac_envvar=\$ac_optarg |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1222 | export $ac_envvar ;; |
| 1223 | |
| 1224 | *) |
| 1225 | # FIXME: should be removed in autoconf 3.0. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1226 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1227 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1228 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1229 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1230 | ;; |
| 1231 | |
| 1232 | esac |
| 1233 | done |
| 1234 | |
| 1235 | if test -n "$ac_prev"; then |
| 1236 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1237 | as_fn_error $? "missing argument to $ac_option" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1238 | fi |
| 1239 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1240 | if test -n "$ac_unrecognized_opts"; then |
| 1241 | case $enable_option_checking in |
| 1242 | no) ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1243 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1244 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1245 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1246 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1247 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1248 | # Check all directory arguments for consistency. |
| 1249 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1250 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1251 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 1252 | libdir localedir mandir |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1253 | do |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1254 | eval ac_val=\$$ac_var |
| 1255 | # Remove trailing slashes. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1256 | case $ac_val in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1257 | */ ) |
| 1258 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1259 | eval $ac_var=\$ac_val;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1260 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1261 | # Be sure to have absolute directory names. |
| 1262 | case $ac_val in |
| 1263 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1264 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1265 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1266 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1267 | done |
| 1268 | |
| 1269 | # There might be people who depend on the old broken behavior: `$host' |
| 1270 | # used to hold the argument of --host etc. |
| 1271 | # FIXME: To remove some day. |
| 1272 | build=$build_alias |
| 1273 | host=$host_alias |
| 1274 | target=$target_alias |
| 1275 | |
| 1276 | # FIXME: To remove some day. |
| 1277 | if test "x$host_alias" != x; then |
| 1278 | if test "x$build_alias" = x; then |
| 1279 | cross_compiling=maybe |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1280 | elif test "x$build_alias" != "x$host_alias"; then |
| 1281 | cross_compiling=yes |
| 1282 | fi |
| 1283 | fi |
| 1284 | |
| 1285 | ac_tool_prefix= |
| 1286 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1287 | |
| 1288 | test "$silent" = yes && exec 6>/dev/null |
| 1289 | |
| 1290 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1291 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1292 | ac_ls_di=`ls -di .` && |
| 1293 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1294 | as_fn_error $? "working directory cannot be determined" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1295 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1296 | as_fn_error $? "pwd does not report name of working directory" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1297 | |
| 1298 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1299 | # Find the source files, if location was not specified. |
| 1300 | if test -z "$srcdir"; then |
| 1301 | ac_srcdir_defaulted=yes |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1302 | # Try the directory containing this script, then the parent directory. |
| 1303 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1304 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1305 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1306 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1307 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1308 | $as_echo X"$as_myself" | |
| 1309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1310 | s//\1/ |
| 1311 | q |
| 1312 | } |
| 1313 | /^X\(\/\/\)[^/].*/{ |
| 1314 | s//\1/ |
| 1315 | q |
| 1316 | } |
| 1317 | /^X\(\/\/\)$/{ |
| 1318 | s//\1/ |
| 1319 | q |
| 1320 | } |
| 1321 | /^X\(\/\).*/{ |
| 1322 | s//\1/ |
| 1323 | q |
| 1324 | } |
| 1325 | s/.*/./; q'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1326 | srcdir=$ac_confdir |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1327 | if test ! -r "$srcdir/$ac_unique_file"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1328 | srcdir=.. |
| 1329 | fi |
| 1330 | else |
| 1331 | ac_srcdir_defaulted=no |
| 1332 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1333 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1334 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1335 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1336 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1337 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1338 | ac_abs_confdir=`( |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1339 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1340 | pwd)` |
| 1341 | # When building in place, set srcdir=. |
| 1342 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1343 | srcdir=. |
| 1344 | fi |
| 1345 | # Remove unnecessary trailing slashes from srcdir. |
| 1346 | # Double slashes in file names in object file debugging info |
| 1347 | # mess up M-x gdb in Emacs. |
| 1348 | case $srcdir in |
| 1349 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1350 | esac |
| 1351 | for ac_var in $ac_precious_vars; do |
| 1352 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1353 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1354 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1355 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1356 | done |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1357 | |
| 1358 | # |
| 1359 | # Report the --help message. |
| 1360 | # |
| 1361 | if test "$ac_init_help" = "long"; then |
| 1362 | # Omit some internal or obsolete options to make the list less imposing. |
| 1363 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1364 | cat <<_ACEOF |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 1365 | \`configure' configures ICU 66.1 to adapt to many kinds of systems. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1366 | |
| 1367 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1368 | |
| 1369 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1370 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1371 | |
| 1372 | Defaults for the options are specified in brackets. |
| 1373 | |
| 1374 | Configuration: |
| 1375 | -h, --help display this help and exit |
| 1376 | --help=short display options specific to this package |
| 1377 | --help=recursive display the short help of all the included packages |
| 1378 | -V, --version display version information and exit |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1379 | -q, --quiet, --silent do not print \`checking ...' messages |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1380 | --cache-file=FILE cache test results in FILE [disabled] |
| 1381 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1382 | -n, --no-create do not create output files |
| 1383 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1384 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1385 | Installation directories: |
| 1386 | --prefix=PREFIX install architecture-independent files in PREFIX |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1387 | [$ac_default_prefix] |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1388 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1389 | [PREFIX] |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1390 | |
| 1391 | By default, \`make install' will install all the files in |
| 1392 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1393 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1394 | for instance \`--prefix=\$HOME'. |
| 1395 | |
| 1396 | For better control, use the options below. |
| 1397 | |
| 1398 | Fine tuning of the installation directories: |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1399 | --bindir=DIR user executables [EPREFIX/bin] |
| 1400 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1401 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1402 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1403 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1404 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1405 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1406 | --includedir=DIR C header files [PREFIX/include] |
| 1407 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1408 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1409 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1410 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1411 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1412 | --mandir=DIR man documentation [DATAROOTDIR/man] |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1413 | --docdir=DIR documentation root [DATAROOTDIR/doc/International |
| 1414 | Components for Unicode] |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1415 | --htmldir=DIR html documentation [DOCDIR] |
| 1416 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1417 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1418 | --psdir=DIR ps documentation [DOCDIR] |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1419 | _ACEOF |
| 1420 | |
| 1421 | cat <<\_ACEOF |
| 1422 | |
| 1423 | System types: |
| 1424 | --build=BUILD configure for building on BUILD [guessed] |
| 1425 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1426 | _ACEOF |
| 1427 | fi |
| 1428 | |
| 1429 | if test -n "$ac_init_help"; then |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1430 | case $ac_init_help in |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 1431 | short | recursive ) echo "Configuration of ICU 66.1:";; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1432 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1433 | cat <<\_ACEOF |
| 1434 | |
| 1435 | Optional Features: |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1436 | --disable-option-checking ignore unrecognized --enable/--with options |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1437 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1438 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 1439 | --enable-icu-config install icu-config |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1440 | --enable-debug build debug libraries and enable the U_DEBUG define default=no |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1441 | --enable-release build release libraries default=yes |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1442 | --enable-strict compile with strict compiler options default=yes |
| 1443 | --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1444 | --enable-shared build shared libraries default=yes |
| 1445 | --enable-static build static libraries default=no |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 1446 | --enable-auto-cleanup enable auto cleanup of libraries default=no |
| 1447 | --enable-draft enable draft APIs (and internal APIs) default=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1448 | --enable-renaming add a version suffix to symbols default=yes |
| 1449 | --enable-tracing enable function and data tracing default=no |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 1450 | --enable-plugins enable plugins default=no |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 1451 | --disable-dyload disable dynamic loading default=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1452 | --enable-rpath use rpath when linking default is only if necessary |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1453 | --enable-weak-threads weakly reference the threading library default=no |
| 1454 | --enable-extras build ICU extras default=yes |
| 1455 | --enable-icuio build ICU's icuio library default=yes |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 1456 | --enable-layoutex build ICU's Paragraph Layout library default=yes. |
| 1457 | icu-le-hb must be installed via pkg-config. See http://harfbuzz.org |
| 1458 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 1459 | --enable-tools build ICU's tools default=yes |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 1460 | --enable-fuzzer build ICU's fuzzer test targets default=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1461 | --enable-tests build ICU tests default=yes |
| 1462 | --enable-samples build ICU samples default=yes |
| 1463 | |
| 1464 | Additionally, the variable FORCE_LIBS may be set before calling configure. |
| 1465 | If set, it will REPLACE any automatic list of libraries. |
| 1466 | |
| 1467 | Optional Packages: |
| 1468 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1469 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1470 | --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir |
| 1471 | --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1472 | --with-data-packaging specify how to package ICU data. Possible values: |
| 1473 | files raw files (.res, etc) |
| 1474 | archive build a single icudtXX.dat file |
| 1475 | library shared library (.dll/.so/etc.) |
| 1476 | static static library (.a/.lib/etc.) |
| 1477 | auto build shared if possible (default) |
| 1478 | See http://userguide.icu-project.org/icudata for more info. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1479 | --with-library-suffix=suffix tag a suffix to the library names default= |
| 1480 | |
| 1481 | Some influential environment variables: |
| 1482 | CC C compiler command |
| 1483 | CFLAGS C compiler flags |
| 1484 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1485 | nonstandard directory <lib dir> |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1486 | LIBS libraries to pass to the linker, e.g. -l<library> |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1487 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1488 | you have headers in a nonstandard directory <include dir> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1489 | CXX C++ compiler command |
| 1490 | CXXFLAGS C++ compiler flags |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1491 | PKG_CONFIG path to pkg-config utility |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 1492 | PKG_CONFIG_PATH |
| 1493 | directories to add to pkg-config's search path |
| 1494 | PKG_CONFIG_LIBDIR |
| 1495 | path overriding pkg-config's built-in search path |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1496 | ICULEHB_CFLAGS |
| 1497 | C compiler flags for ICULEHB, overriding pkg-config |
| 1498 | ICULEHB_LIBS |
| 1499 | linker flags for ICULEHB, overriding pkg-config |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1500 | CPP C preprocessor |
| 1501 | |
| 1502 | Use these variables to override the choices made by `configure' or to help |
| 1503 | it to find libraries and programs with nonstandard names/locations. |
| 1504 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1505 | Report bugs to <http://icu-project.org/bugs>. |
| 1506 | ICU home page: <http://icu-project.org>. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1507 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1508 | ac_status=$? |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1509 | fi |
| 1510 | |
| 1511 | if test "$ac_init_help" = "recursive"; then |
| 1512 | # If there are subdirs, report their specific --help. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1513 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1514 | test -d "$ac_dir" || |
| 1515 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1516 | continue |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1517 | ac_builddir=. |
| 1518 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1519 | case "$ac_dir" in |
| 1520 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1521 | *) |
| 1522 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1523 | # A ".." for each directory in $ac_dir_suffix. |
| 1524 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1525 | case $ac_top_builddir_sub in |
| 1526 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1527 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1528 | esac ;; |
| 1529 | esac |
| 1530 | ac_abs_top_builddir=$ac_pwd |
| 1531 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1532 | # for backward compatibility: |
| 1533 | ac_top_builddir=$ac_top_build_prefix |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1534 | |
| 1535 | case $srcdir in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1536 | .) # We are building in place. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1537 | ac_srcdir=. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1538 | ac_top_srcdir=$ac_top_builddir_sub |
| 1539 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1540 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1541 | ac_srcdir=$srcdir$ac_dir_suffix; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1542 | ac_top_srcdir=$srcdir |
| 1543 | ac_abs_top_srcdir=$srcdir ;; |
| 1544 | *) # Relative name. |
| 1545 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1546 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1547 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1548 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1549 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1550 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1551 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1552 | # Check for guested configure. |
| 1553 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1554 | echo && |
| 1555 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1556 | elif test -f "$ac_srcdir/configure"; then |
| 1557 | echo && |
| 1558 | $SHELL "$ac_srcdir/configure" --help=recursive |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1559 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1560 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1561 | fi || ac_status=$? |
| 1562 | cd "$ac_pwd" || { ac_status=$?; break; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1563 | done |
| 1564 | fi |
| 1565 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1566 | test -n "$ac_init_help" && exit $ac_status |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1567 | if $ac_init_version; then |
| 1568 | cat <<\_ACEOF |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 1569 | ICU configure 66.1 |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1570 | generated by GNU Autoconf 2.69 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1571 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1572 | Copyright (C) 2012 Free Software Foundation, Inc. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1573 | This configure script is free software; the Free Software Foundation |
| 1574 | gives unlimited permission to copy, distribute and modify it. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1575 | |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 1576 | Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1577 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 1578 | exit |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 1579 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1580 | |
| 1581 | ## ------------------------ ## |
| 1582 | ## Autoconf initialization. ## |
| 1583 | ## ------------------------ ## |
| 1584 | |
| 1585 | # ac_fn_c_try_compile LINENO |
| 1586 | # -------------------------- |
| 1587 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1588 | ac_fn_c_try_compile () |
| 1589 | { |
| 1590 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1591 | rm -f conftest.$ac_objext |
| 1592 | if { { ac_try="$ac_compile" |
| 1593 | case "(($ac_try" in |
| 1594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1595 | *) ac_try_echo=$ac_try;; |
| 1596 | esac |
| 1597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1598 | $as_echo "$ac_try_echo"; } >&5 |
| 1599 | (eval "$ac_compile") 2>conftest.err |
| 1600 | ac_status=$? |
| 1601 | if test -s conftest.err; then |
| 1602 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1603 | cat conftest.er1 >&5 |
| 1604 | mv -f conftest.er1 conftest.err |
| 1605 | fi |
| 1606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1607 | test $ac_status = 0; } && { |
| 1608 | test -z "$ac_c_werror_flag" || |
| 1609 | test ! -s conftest.err |
| 1610 | } && test -s conftest.$ac_objext; then : |
| 1611 | ac_retval=0 |
| 1612 | else |
| 1613 | $as_echo "$as_me: failed program was:" >&5 |
| 1614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1615 | |
| 1616 | ac_retval=1 |
| 1617 | fi |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1618 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1619 | as_fn_set_status $ac_retval |
| 1620 | |
| 1621 | } # ac_fn_c_try_compile |
| 1622 | |
| 1623 | # ac_fn_cxx_try_compile LINENO |
| 1624 | # ---------------------------- |
| 1625 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1626 | ac_fn_cxx_try_compile () |
| 1627 | { |
| 1628 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1629 | rm -f conftest.$ac_objext |
| 1630 | if { { ac_try="$ac_compile" |
| 1631 | case "(($ac_try" in |
| 1632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1633 | *) ac_try_echo=$ac_try;; |
| 1634 | esac |
| 1635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1636 | $as_echo "$ac_try_echo"; } >&5 |
| 1637 | (eval "$ac_compile") 2>conftest.err |
| 1638 | ac_status=$? |
| 1639 | if test -s conftest.err; then |
| 1640 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1641 | cat conftest.er1 >&5 |
| 1642 | mv -f conftest.er1 conftest.err |
| 1643 | fi |
| 1644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1645 | test $ac_status = 0; } && { |
| 1646 | test -z "$ac_cxx_werror_flag" || |
| 1647 | test ! -s conftest.err |
| 1648 | } && test -s conftest.$ac_objext; then : |
| 1649 | ac_retval=0 |
| 1650 | else |
| 1651 | $as_echo "$as_me: failed program was:" >&5 |
| 1652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1653 | |
| 1654 | ac_retval=1 |
| 1655 | fi |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1656 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1657 | as_fn_set_status $ac_retval |
| 1658 | |
| 1659 | } # ac_fn_cxx_try_compile |
| 1660 | |
| 1661 | # ac_fn_c_try_cpp LINENO |
| 1662 | # ---------------------- |
| 1663 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1664 | ac_fn_c_try_cpp () |
| 1665 | { |
| 1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1667 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1668 | case "(($ac_try" in |
| 1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1670 | *) ac_try_echo=$ac_try;; |
| 1671 | esac |
| 1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1673 | $as_echo "$ac_try_echo"; } >&5 |
| 1674 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1675 | ac_status=$? |
| 1676 | if test -s conftest.err; then |
| 1677 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1678 | cat conftest.er1 >&5 |
| 1679 | mv -f conftest.er1 conftest.err |
| 1680 | fi |
| 1681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1682 | test $ac_status = 0; } > conftest.i && { |
| 1683 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1684 | test ! -s conftest.err |
| 1685 | }; then : |
| 1686 | ac_retval=0 |
| 1687 | else |
| 1688 | $as_echo "$as_me: failed program was:" >&5 |
| 1689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1690 | |
| 1691 | ac_retval=1 |
| 1692 | fi |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1694 | as_fn_set_status $ac_retval |
| 1695 | |
| 1696 | } # ac_fn_c_try_cpp |
| 1697 | |
| 1698 | # ac_fn_cxx_try_link LINENO |
| 1699 | # ------------------------- |
| 1700 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1701 | ac_fn_cxx_try_link () |
| 1702 | { |
| 1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1705 | if { { ac_try="$ac_link" |
| 1706 | case "(($ac_try" in |
| 1707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1708 | *) ac_try_echo=$ac_try;; |
| 1709 | esac |
| 1710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1711 | $as_echo "$ac_try_echo"; } >&5 |
| 1712 | (eval "$ac_link") 2>conftest.err |
| 1713 | ac_status=$? |
| 1714 | if test -s conftest.err; then |
| 1715 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1716 | cat conftest.er1 >&5 |
| 1717 | mv -f conftest.er1 conftest.err |
| 1718 | fi |
| 1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1720 | test $ac_status = 0; } && { |
| 1721 | test -z "$ac_cxx_werror_flag" || |
| 1722 | test ! -s conftest.err |
| 1723 | } && test -s conftest$ac_exeext && { |
| 1724 | test "$cross_compiling" = yes || |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1725 | test -x conftest$ac_exeext |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1726 | }; then : |
| 1727 | ac_retval=0 |
| 1728 | else |
| 1729 | $as_echo "$as_me: failed program was:" >&5 |
| 1730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1731 | |
| 1732 | ac_retval=1 |
| 1733 | fi |
| 1734 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1735 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1736 | # interfere with the next link command; also delete a directory that is |
| 1737 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1738 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1740 | as_fn_set_status $ac_retval |
| 1741 | |
| 1742 | } # ac_fn_cxx_try_link |
| 1743 | |
| 1744 | # ac_fn_c_try_run LINENO |
| 1745 | # ---------------------- |
| 1746 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1747 | # that executables *can* be run. |
| 1748 | ac_fn_c_try_run () |
| 1749 | { |
| 1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1751 | if { { ac_try="$ac_link" |
| 1752 | case "(($ac_try" in |
| 1753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1754 | *) ac_try_echo=$ac_try;; |
| 1755 | esac |
| 1756 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1757 | $as_echo "$ac_try_echo"; } >&5 |
| 1758 | (eval "$ac_link") 2>&5 |
| 1759 | ac_status=$? |
| 1760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1761 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1762 | { { case "(($ac_try" in |
| 1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1764 | *) ac_try_echo=$ac_try;; |
| 1765 | esac |
| 1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1767 | $as_echo "$ac_try_echo"; } >&5 |
| 1768 | (eval "$ac_try") 2>&5 |
| 1769 | ac_status=$? |
| 1770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1771 | test $ac_status = 0; }; }; then : |
| 1772 | ac_retval=0 |
| 1773 | else |
| 1774 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1775 | $as_echo "$as_me: failed program was:" >&5 |
| 1776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1777 | |
| 1778 | ac_retval=$ac_status |
| 1779 | fi |
| 1780 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1782 | as_fn_set_status $ac_retval |
| 1783 | |
| 1784 | } # ac_fn_c_try_run |
| 1785 | |
| 1786 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1787 | # -------------------------------------------- |
| 1788 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1789 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1790 | # computed |
| 1791 | ac_fn_c_compute_int () |
| 1792 | { |
| 1793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1794 | if test "$cross_compiling" = yes; then |
| 1795 | # Depending upon the size, compute the lo and hi bounds. |
| 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1797 | /* end confdefs.h. */ |
| 1798 | $4 |
| 1799 | int |
| 1800 | main () |
| 1801 | { |
| 1802 | static int test_array [1 - 2 * !(($2) >= 0)]; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1803 | test_array [0] = 0; |
| 1804 | return test_array [0]; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1805 | |
| 1806 | ; |
| 1807 | return 0; |
| 1808 | } |
| 1809 | _ACEOF |
| 1810 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1811 | ac_lo=0 ac_mid=0 |
| 1812 | while :; do |
| 1813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1814 | /* end confdefs.h. */ |
| 1815 | $4 |
| 1816 | int |
| 1817 | main () |
| 1818 | { |
| 1819 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1820 | test_array [0] = 0; |
| 1821 | return test_array [0]; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1822 | |
| 1823 | ; |
| 1824 | return 0; |
| 1825 | } |
| 1826 | _ACEOF |
| 1827 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1828 | ac_hi=$ac_mid; break |
| 1829 | else |
| 1830 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 1831 | if test $ac_lo -le $ac_mid; then |
| 1832 | ac_lo= ac_hi= |
| 1833 | break |
| 1834 | fi |
| 1835 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 1836 | fi |
| 1837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1838 | done |
| 1839 | else |
| 1840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1841 | /* end confdefs.h. */ |
| 1842 | $4 |
| 1843 | int |
| 1844 | main () |
| 1845 | { |
| 1846 | static int test_array [1 - 2 * !(($2) < 0)]; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1847 | test_array [0] = 0; |
| 1848 | return test_array [0]; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1849 | |
| 1850 | ; |
| 1851 | return 0; |
| 1852 | } |
| 1853 | _ACEOF |
| 1854 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1855 | ac_hi=-1 ac_mid=-1 |
| 1856 | while :; do |
| 1857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1858 | /* end confdefs.h. */ |
| 1859 | $4 |
| 1860 | int |
| 1861 | main () |
| 1862 | { |
| 1863 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1864 | test_array [0] = 0; |
| 1865 | return test_array [0]; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1866 | |
| 1867 | ; |
| 1868 | return 0; |
| 1869 | } |
| 1870 | _ACEOF |
| 1871 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1872 | ac_lo=$ac_mid; break |
| 1873 | else |
| 1874 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 1875 | if test $ac_mid -le $ac_hi; then |
| 1876 | ac_lo= ac_hi= |
| 1877 | break |
| 1878 | fi |
| 1879 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 1880 | fi |
| 1881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1882 | done |
| 1883 | else |
| 1884 | ac_lo= ac_hi= |
| 1885 | fi |
| 1886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1887 | fi |
| 1888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1889 | # Binary search between lo and hi bounds. |
| 1890 | while test "x$ac_lo" != "x$ac_hi"; do |
| 1891 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 1892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1893 | /* end confdefs.h. */ |
| 1894 | $4 |
| 1895 | int |
| 1896 | main () |
| 1897 | { |
| 1898 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 1899 | test_array [0] = 0; |
| 1900 | return test_array [0]; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1901 | |
| 1902 | ; |
| 1903 | return 0; |
| 1904 | } |
| 1905 | _ACEOF |
| 1906 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1907 | ac_hi=$ac_mid |
| 1908 | else |
| 1909 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 1910 | fi |
| 1911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1912 | done |
| 1913 | case $ac_lo in #(( |
| 1914 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 1915 | '') ac_retval=1 ;; |
| 1916 | esac |
| 1917 | else |
| 1918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1919 | /* end confdefs.h. */ |
| 1920 | $4 |
| 1921 | static long int longval () { return $2; } |
| 1922 | static unsigned long int ulongval () { return $2; } |
| 1923 | #include <stdio.h> |
| 1924 | #include <stdlib.h> |
| 1925 | int |
| 1926 | main () |
| 1927 | { |
| 1928 | |
| 1929 | FILE *f = fopen ("conftest.val", "w"); |
| 1930 | if (! f) |
| 1931 | return 1; |
| 1932 | if (($2) < 0) |
| 1933 | { |
| 1934 | long int i = longval (); |
| 1935 | if (i != ($2)) |
| 1936 | return 1; |
| 1937 | fprintf (f, "%ld", i); |
| 1938 | } |
| 1939 | else |
| 1940 | { |
| 1941 | unsigned long int i = ulongval (); |
| 1942 | if (i != ($2)) |
| 1943 | return 1; |
| 1944 | fprintf (f, "%lu", i); |
| 1945 | } |
| 1946 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 1947 | on some platforms. */ |
| 1948 | return ferror (f) || fclose (f) != 0; |
| 1949 | |
| 1950 | ; |
| 1951 | return 0; |
| 1952 | } |
| 1953 | _ACEOF |
| 1954 | if ac_fn_c_try_run "$LINENO"; then : |
| 1955 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 1956 | else |
| 1957 | ac_retval=1 |
| 1958 | fi |
| 1959 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 1960 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1961 | rm -f conftest.val |
| 1962 | |
| 1963 | fi |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1964 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1965 | as_fn_set_status $ac_retval |
| 1966 | |
| 1967 | } # ac_fn_c_compute_int |
| 1968 | |
| 1969 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1970 | # ------------------------------------------------------- |
| 1971 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1972 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1973 | ac_fn_c_check_header_compile () |
| 1974 | { |
| 1975 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1977 | $as_echo_n "checking for $2... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1978 | if eval \${$3+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1979 | $as_echo_n "(cached) " >&6 |
| 1980 | else |
| 1981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1982 | /* end confdefs.h. */ |
| 1983 | $4 |
| 1984 | #include <$2> |
| 1985 | _ACEOF |
| 1986 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1987 | eval "$3=yes" |
| 1988 | else |
| 1989 | eval "$3=no" |
| 1990 | fi |
| 1991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1992 | fi |
| 1993 | eval ac_res=\$$3 |
| 1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1995 | $as_echo "$ac_res" >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 1996 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 1997 | |
| 1998 | } # ac_fn_c_check_header_compile |
| 1999 | |
| 2000 | # ac_fn_c_try_link LINENO |
| 2001 | # ----------------------- |
| 2002 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2003 | ac_fn_c_try_link () |
| 2004 | { |
| 2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2006 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2007 | if { { ac_try="$ac_link" |
| 2008 | case "(($ac_try" in |
| 2009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2010 | *) ac_try_echo=$ac_try;; |
| 2011 | esac |
| 2012 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2013 | $as_echo "$ac_try_echo"; } >&5 |
| 2014 | (eval "$ac_link") 2>conftest.err |
| 2015 | ac_status=$? |
| 2016 | if test -s conftest.err; then |
| 2017 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2018 | cat conftest.er1 >&5 |
| 2019 | mv -f conftest.er1 conftest.err |
| 2020 | fi |
| 2021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2022 | test $ac_status = 0; } && { |
| 2023 | test -z "$ac_c_werror_flag" || |
| 2024 | test ! -s conftest.err |
| 2025 | } && test -s conftest$ac_exeext && { |
| 2026 | test "$cross_compiling" = yes || |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 2027 | test -x conftest$ac_exeext |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2028 | }; then : |
| 2029 | ac_retval=0 |
| 2030 | else |
| 2031 | $as_echo "$as_me: failed program was:" >&5 |
| 2032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2033 | |
| 2034 | ac_retval=1 |
| 2035 | fi |
| 2036 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2037 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2038 | # interfere with the next link command; also delete a directory that is |
| 2039 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2040 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2041 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2042 | as_fn_set_status $ac_retval |
| 2043 | |
| 2044 | } # ac_fn_c_try_link |
| 2045 | |
| 2046 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2047 | # ------------------------------------------------------- |
| 2048 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2049 | # the include files in INCLUDES and setting the cache variable VAR |
| 2050 | # accordingly. |
| 2051 | ac_fn_c_check_header_mongrel () |
| 2052 | { |
| 2053 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2054 | if eval \${$3+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2056 | $as_echo_n "checking for $2... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2057 | if eval \${$3+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2058 | $as_echo_n "(cached) " >&6 |
| 2059 | fi |
| 2060 | eval ac_res=\$$3 |
| 2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2062 | $as_echo "$ac_res" >&6; } |
| 2063 | else |
| 2064 | # Is the header compilable? |
| 2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2066 | $as_echo_n "checking $2 usability... " >&6; } |
| 2067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2068 | /* end confdefs.h. */ |
| 2069 | $4 |
| 2070 | #include <$2> |
| 2071 | _ACEOF |
| 2072 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2073 | ac_header_compiler=yes |
| 2074 | else |
| 2075 | ac_header_compiler=no |
| 2076 | fi |
| 2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2079 | $as_echo "$ac_header_compiler" >&6; } |
| 2080 | |
| 2081 | # Is the header present? |
| 2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2083 | $as_echo_n "checking $2 presence... " >&6; } |
| 2084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2085 | /* end confdefs.h. */ |
| 2086 | #include <$2> |
| 2087 | _ACEOF |
| 2088 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2089 | ac_header_preproc=yes |
| 2090 | else |
| 2091 | ac_header_preproc=no |
| 2092 | fi |
| 2093 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2095 | $as_echo "$ac_header_preproc" >&6; } |
| 2096 | |
| 2097 | # So? What about this header? |
| 2098 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2099 | yes:no: ) |
| 2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2101 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2103 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2104 | ;; |
| 2105 | no:yes:* ) |
| 2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2107 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2109 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2111 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2113 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2115 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 2116 | ( $as_echo "## ------------------------------------------ ## |
| 2117 | ## Report this to http://icu-project.org/bugs ## |
| 2118 | ## ------------------------------------------ ##" |
| 2119 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2120 | ;; |
| 2121 | esac |
| 2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2123 | $as_echo_n "checking for $2... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2124 | if eval \${$3+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2125 | $as_echo_n "(cached) " >&6 |
| 2126 | else |
| 2127 | eval "$3=\$ac_header_compiler" |
| 2128 | fi |
| 2129 | eval ac_res=\$$3 |
| 2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2131 | $as_echo "$ac_res" >&6; } |
| 2132 | fi |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2133 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2134 | |
| 2135 | } # ac_fn_c_check_header_mongrel |
| 2136 | |
| 2137 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2138 | # ---------------------------------- |
| 2139 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2140 | ac_fn_c_check_func () |
| 2141 | { |
| 2142 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2144 | $as_echo_n "checking for $2... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2145 | if eval \${$3+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2146 | $as_echo_n "(cached) " >&6 |
| 2147 | else |
| 2148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2149 | /* end confdefs.h. */ |
| 2150 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2152 | #define $2 innocuous_$2 |
| 2153 | |
| 2154 | /* System header to define __stub macros and hopefully few prototypes, |
| 2155 | which can conflict with char $2 (); below. |
| 2156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2157 | <limits.h> exists even on freestanding compilers. */ |
| 2158 | |
| 2159 | #ifdef __STDC__ |
| 2160 | # include <limits.h> |
| 2161 | #else |
| 2162 | # include <assert.h> |
| 2163 | #endif |
| 2164 | |
| 2165 | #undef $2 |
| 2166 | |
| 2167 | /* Override any GCC internal prototype to avoid an error. |
| 2168 | Use char because int might match the return type of a GCC |
| 2169 | builtin and then its argument prototype would still apply. */ |
| 2170 | #ifdef __cplusplus |
| 2171 | extern "C" |
| 2172 | #endif |
| 2173 | char $2 (); |
| 2174 | /* The GNU C library defines this for functions which it implements |
| 2175 | to always fail with ENOSYS. Some functions are actually named |
| 2176 | something starting with __ and the normal name is an alias. */ |
| 2177 | #if defined __stub_$2 || defined __stub___$2 |
| 2178 | choke me |
| 2179 | #endif |
| 2180 | |
| 2181 | int |
| 2182 | main () |
| 2183 | { |
| 2184 | return $2 (); |
| 2185 | ; |
| 2186 | return 0; |
| 2187 | } |
| 2188 | _ACEOF |
| 2189 | if ac_fn_c_try_link "$LINENO"; then : |
| 2190 | eval "$3=yes" |
| 2191 | else |
| 2192 | eval "$3=no" |
| 2193 | fi |
| 2194 | rm -f core conftest.err conftest.$ac_objext \ |
| 2195 | conftest$ac_exeext conftest.$ac_ext |
| 2196 | fi |
| 2197 | eval ac_res=\$$3 |
| 2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2199 | $as_echo "$ac_res" >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2200 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2201 | |
| 2202 | } # ac_fn_c_check_func |
| 2203 | |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 2204 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
| 2205 | # --------------------------------------------- |
| 2206 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2207 | # variable VAR accordingly. |
| 2208 | ac_fn_cxx_check_type () |
| 2209 | { |
| 2210 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2212 | $as_echo_n "checking for $2... " >&6; } |
| 2213 | if eval \${$3+:} false; then : |
| 2214 | $as_echo_n "(cached) " >&6 |
| 2215 | else |
| 2216 | eval "$3=no" |
| 2217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2218 | /* end confdefs.h. */ |
| 2219 | $4 |
| 2220 | int |
| 2221 | main () |
| 2222 | { |
| 2223 | if (sizeof ($2)) |
| 2224 | return 0; |
| 2225 | ; |
| 2226 | return 0; |
| 2227 | } |
| 2228 | _ACEOF |
| 2229 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2231 | /* end confdefs.h. */ |
| 2232 | $4 |
| 2233 | int |
| 2234 | main () |
| 2235 | { |
| 2236 | if (sizeof (($2))) |
| 2237 | return 0; |
| 2238 | ; |
| 2239 | return 0; |
| 2240 | } |
| 2241 | _ACEOF |
| 2242 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2243 | |
| 2244 | else |
| 2245 | eval "$3=yes" |
| 2246 | fi |
| 2247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2248 | fi |
| 2249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2250 | fi |
| 2251 | eval ac_res=\$$3 |
| 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2253 | $as_echo "$ac_res" >&6; } |
| 2254 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2255 | |
| 2256 | } # ac_fn_cxx_check_type |
| 2257 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2258 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2259 | # ------------------------------------------- |
| 2260 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2261 | # variable VAR accordingly. |
| 2262 | ac_fn_c_check_type () |
| 2263 | { |
| 2264 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2266 | $as_echo_n "checking for $2... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2267 | if eval \${$3+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2268 | $as_echo_n "(cached) " >&6 |
| 2269 | else |
| 2270 | eval "$3=no" |
| 2271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2272 | /* end confdefs.h. */ |
| 2273 | $4 |
| 2274 | int |
| 2275 | main () |
| 2276 | { |
| 2277 | if (sizeof ($2)) |
| 2278 | return 0; |
| 2279 | ; |
| 2280 | return 0; |
| 2281 | } |
| 2282 | _ACEOF |
| 2283 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2285 | /* end confdefs.h. */ |
| 2286 | $4 |
| 2287 | int |
| 2288 | main () |
| 2289 | { |
| 2290 | if (sizeof (($2))) |
| 2291 | return 0; |
| 2292 | ; |
| 2293 | return 0; |
| 2294 | } |
| 2295 | _ACEOF |
| 2296 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2297 | |
| 2298 | else |
| 2299 | eval "$3=yes" |
| 2300 | fi |
| 2301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2302 | fi |
| 2303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2304 | fi |
| 2305 | eval ac_res=\$$3 |
| 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2307 | $as_echo "$ac_res" >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2308 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2309 | |
| 2310 | } # ac_fn_c_check_type |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2311 | cat >config.log <<_ACEOF |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2312 | This file contains any messages produced by compilers while |
| 2313 | running configure, to aid debugging if configure makes a mistake. |
| 2314 | |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 2315 | It was created by ICU $as_me 66.1, which was |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 2316 | generated by GNU Autoconf 2.69. Invocation command line was |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2317 | |
| 2318 | $ $0 $@ |
| 2319 | |
| 2320 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2321 | exec 5>>config.log |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2322 | { |
| 2323 | cat <<_ASUNAME |
| 2324 | ## --------- ## |
| 2325 | ## Platform. ## |
| 2326 | ## --------- ## |
| 2327 | |
| 2328 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2329 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2330 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2331 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2332 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2333 | |
| 2334 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2335 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2336 | |
| 2337 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2338 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2339 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2340 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2341 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2342 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2343 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2344 | |
| 2345 | _ASUNAME |
| 2346 | |
| 2347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2348 | for as_dir in $PATH |
| 2349 | do |
| 2350 | IFS=$as_save_IFS |
| 2351 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2352 | $as_echo "PATH: $as_dir" |
| 2353 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2354 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2355 | |
| 2356 | } >&5 |
| 2357 | |
| 2358 | cat >&5 <<_ACEOF |
| 2359 | |
| 2360 | |
| 2361 | ## ----------- ## |
| 2362 | ## Core tests. ## |
| 2363 | ## ----------- ## |
| 2364 | |
| 2365 | _ACEOF |
| 2366 | |
| 2367 | |
| 2368 | # Keep a trace of the command line. |
| 2369 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2370 | # Strip out --silent because we don't want to record it for future runs. |
| 2371 | # Also quote any args containing shell meta-characters. |
| 2372 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2373 | ac_configure_args= |
| 2374 | ac_configure_args0= |
| 2375 | ac_configure_args1= |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2376 | ac_must_keep_next=false |
| 2377 | for ac_pass in 1 2 |
| 2378 | do |
| 2379 | for ac_arg |
| 2380 | do |
| 2381 | case $ac_arg in |
| 2382 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2383 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2384 | | -silent | --silent | --silen | --sile | --sil) |
| 2385 | continue ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2386 | *\'*) |
| 2387 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2388 | esac |
| 2389 | case $ac_pass in |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2390 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2391 | 2) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2392 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2393 | if test $ac_must_keep_next = true; then |
| 2394 | ac_must_keep_next=false # Got value, back to normal. |
| 2395 | else |
| 2396 | case $ac_arg in |
| 2397 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2398 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2399 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2400 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2401 | case "$ac_configure_args0 " in |
| 2402 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2403 | esac |
| 2404 | ;; |
| 2405 | -* ) ac_must_keep_next=true ;; |
| 2406 | esac |
| 2407 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2408 | as_fn_append ac_configure_args " '$ac_arg'" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2409 | ;; |
| 2410 | esac |
| 2411 | done |
| 2412 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2413 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2414 | { ac_configure_args1=; unset ac_configure_args1;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2415 | |
| 2416 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2417 | # config.log. We remove comments because anyway the quotes in there |
| 2418 | # would cause problems or look ugly. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2419 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2420 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2421 | trap 'exit_status=$? |
| 2422 | # Save into config.log some information that might help in debugging. |
| 2423 | { |
| 2424 | echo |
| 2425 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2426 | $as_echo "## ---------------- ## |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2427 | ## Cache variables. ## |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2428 | ## ---------------- ##" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2429 | echo |
| 2430 | # The following way of writing the cache mishandles newlines in values, |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2431 | ( |
| 2432 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2433 | eval ac_val=\$$ac_var |
| 2434 | case $ac_val in #( |
| 2435 | *${as_nl}*) |
| 2436 | case $ac_var in #( |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2437 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2438 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2439 | esac |
| 2440 | case $ac_var in #( |
| 2441 | _ | IFS | as_nl) ;; #( |
| 2442 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2443 | *) { eval $ac_var=; unset $ac_var;} ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2444 | esac ;; |
| 2445 | esac |
| 2446 | done |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2447 | (set) 2>&1 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2448 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2449 | *${as_nl}ac_space=\ *) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2450 | sed -n \ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2451 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2452 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2453 | ;; #( |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2454 | *) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2455 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2456 | ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2457 | esac | |
| 2458 | sort |
| 2459 | ) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2460 | echo |
| 2461 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2462 | $as_echo "## ----------------- ## |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2463 | ## Output variables. ## |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2464 | ## ----------------- ##" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2465 | echo |
| 2466 | for ac_var in $ac_subst_vars |
| 2467 | do |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2468 | eval ac_val=\$$ac_var |
| 2469 | case $ac_val in |
| 2470 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2471 | esac |
| 2472 | $as_echo "$ac_var='\''$ac_val'\''" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2473 | done | sort |
| 2474 | echo |
| 2475 | |
| 2476 | if test -n "$ac_subst_files"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2477 | $as_echo "## ------------------- ## |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2478 | ## File substitutions. ## |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2479 | ## ------------------- ##" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2480 | echo |
| 2481 | for ac_var in $ac_subst_files |
| 2482 | do |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2483 | eval ac_val=\$$ac_var |
| 2484 | case $ac_val in |
| 2485 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2486 | esac |
| 2487 | $as_echo "$ac_var='\''$ac_val'\''" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2488 | done | sort |
| 2489 | echo |
| 2490 | fi |
| 2491 | |
| 2492 | if test -s confdefs.h; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2493 | $as_echo "## ----------- ## |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2494 | ## confdefs.h. ## |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2495 | ## ----------- ##" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2496 | echo |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2497 | cat confdefs.h |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2498 | echo |
| 2499 | fi |
| 2500 | test "$ac_signal" != 0 && |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2501 | $as_echo "$as_me: caught signal $ac_signal" |
| 2502 | $as_echo "$as_me: exit $exit_status" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2503 | } >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2504 | rm -f core *.core core.conftest.* && |
| 2505 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2506 | exit $exit_status |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2507 | ' 0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2508 | for ac_signal in 1 2 13 15; do |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2509 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2510 | done |
| 2511 | ac_signal=0 |
| 2512 | |
| 2513 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2514 | rm -f -r conftest* confdefs.h |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2515 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2516 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2517 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2518 | # Predefined preprocessor variables. |
| 2519 | |
| 2520 | cat >>confdefs.h <<_ACEOF |
| 2521 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2522 | _ACEOF |
| 2523 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2524 | cat >>confdefs.h <<_ACEOF |
| 2525 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2526 | _ACEOF |
| 2527 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2528 | cat >>confdefs.h <<_ACEOF |
| 2529 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2530 | _ACEOF |
| 2531 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2532 | cat >>confdefs.h <<_ACEOF |
| 2533 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2534 | _ACEOF |
| 2535 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2536 | cat >>confdefs.h <<_ACEOF |
| 2537 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2538 | _ACEOF |
| 2539 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2540 | cat >>confdefs.h <<_ACEOF |
| 2541 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2542 | _ACEOF |
| 2543 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2544 | |
| 2545 | # Let the site file select an alternate cache file if it wants to. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2546 | # Prefer an explicitly selected file to automatically selected ones. |
| 2547 | ac_site_file1=NONE |
| 2548 | ac_site_file2=NONE |
| 2549 | if test -n "$CONFIG_SITE"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2550 | # We do not want a PATH search for config.site. |
| 2551 | case $CONFIG_SITE in #(( |
| 2552 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2553 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2554 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2555 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2556 | elif test "x$prefix" != xNONE; then |
| 2557 | ac_site_file1=$prefix/share/config.site |
| 2558 | ac_site_file2=$prefix/etc/config.site |
| 2559 | else |
| 2560 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2561 | ac_site_file2=$ac_default_prefix/etc/config.site |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2562 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2563 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2564 | do |
| 2565 | test "x$ac_site_file" = xNONE && continue |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2566 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2568 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2569 | sed 's/^/| /' "$ac_site_file" >&5 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2570 | . "$ac_site_file" \ |
| 2571 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2572 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2573 | as_fn_error $? "failed to load site script $ac_site_file |
| 2574 | See \`config.log' for more details" "$LINENO" 5; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2575 | fi |
| 2576 | done |
| 2577 | |
| 2578 | if test -r "$cache_file"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2579 | # Some versions of bash will fail to source /dev/null (special files |
| 2580 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2581 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2583 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2584 | case $cache_file in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2585 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2586 | *) . "./$cache_file";; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2587 | esac |
| 2588 | fi |
| 2589 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2591 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2592 | >$cache_file |
| 2593 | fi |
| 2594 | |
| 2595 | # Check that the precious variables saved in the cache have kept the same |
| 2596 | # value. |
| 2597 | ac_cache_corrupted=false |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2598 | for ac_var in $ac_precious_vars; do |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2599 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2600 | eval ac_new_set=\$ac_env_${ac_var}_set |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2601 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2602 | eval ac_new_val=\$ac_env_${ac_var}_value |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2603 | case $ac_old_set,$ac_new_set in |
| 2604 | set,) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2606 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2607 | ac_cache_corrupted=: ;; |
| 2608 | ,set) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2610 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2611 | ac_cache_corrupted=: ;; |
| 2612 | ,);; |
| 2613 | *) |
| 2614 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2615 | # differences in whitespace do not lead to failure. |
| 2616 | ac_old_val_w=`echo x $ac_old_val` |
| 2617 | ac_new_val_w=`echo x $ac_new_val` |
| 2618 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2620 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2621 | ac_cache_corrupted=: |
| 2622 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2624 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2625 | eval $ac_var=\$ac_old_val |
| 2626 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2628 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2630 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2631 | fi;; |
| 2632 | esac |
| 2633 | # Pass precious variables to config.status. |
| 2634 | if test "$ac_new_set" = set; then |
| 2635 | case $ac_new_val in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2636 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2637 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2638 | esac |
| 2639 | case " $ac_configure_args " in |
| 2640 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2641 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2642 | esac |
| 2643 | fi |
| 2644 | done |
| 2645 | if $ac_cache_corrupted; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2649 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2650 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2651 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2652 | ## -------------------- ## |
| 2653 | ## Main body of script. ## |
| 2654 | ## -------------------- ## |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2655 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2656 | ac_ext=c |
| 2657 | ac_cpp='$CPP $CPPFLAGS' |
| 2658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2661 | |
| 2662 | |
| 2663 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 2664 | # Instruct Python to never write any byte code to the ICU source tree. |
| 2665 | PYTHONDONTWRITEBYTECODE=1 |
| 2666 | export PYTHONDONTWRITEBYTECODE |
| 2667 | |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 2668 | |
| 2669 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2670 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2671 | PACKAGE="icu" |
| 2672 | |
| 2673 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2674 | # Use custom echo test for newline option |
| 2675 | # Current autoconf (2.65) gives incorrect echo newline option |
| 2676 | # for icu-config |
| 2677 | # This may be removed later - mow (June 17, 2010) |
| 2678 | ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T= |
| 2679 | case `/bin/sh -c "echo -n x"` in |
| 2680 | -n*) |
| 2681 | case `/bin/sh -c "echo 'x\c'"` in |
| 2682 | *c*) ICU_ECHO_T=' ';; # ECHO_T is single tab character. |
| 2683 | *) ICU_ECHO_C='\c';; |
| 2684 | esac;; |
| 2685 | *) |
| 2686 | ICU_ECHO_N='-n';; |
| 2687 | esac |
| 2688 | |
| 2689 | |
| 2690 | |
| 2691 | |
| 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2693 | $as_echo_n "checking for ICU version numbers... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2694 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2695 | # Get the ICU version from uversion.h or other headers |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2696 | geticuversion() { |
| 2697 | sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" |
| 2698 | } |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 2699 | getuversion() { |
| 2700 | sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" |
| 2701 | } |
| 2702 | VERSION=`geticuversion $srcdir/common/unicode/uvernum.h` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2703 | if test x"$VERSION" = x; then |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 2704 | as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 2705 | fi |
| 2706 | |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 2707 | #TODO: IcuBug:8502 |
| 2708 | #if test "$VERSION" != "$PACKAGE_VERSION"; then |
| 2709 | # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf]) |
| 2710 | #fi |
| 2711 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 2712 | UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h` |
| 2713 | if test x"$UNICODE_VERSION" = x; then |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 2714 | as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2715 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2716 | # Compute a reasonable library version from the release version. This is |
| 2717 | # very bad, but that's wanted... We want to make sure that the LIB_VERSION |
| 2718 | # has at least a dot in it, so we'll add a .0 if needed. |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2719 | #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`] |
| 2720 | LIB_VERSION=$VERSION |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2721 | LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` |
| 2722 | |
| 2723 | |
| 2724 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 2726 | $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2727 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2728 | |
| 2729 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2730 | # Determine the host system |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2731 | ac_aux_dir= |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2732 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2733 | if test -f "$ac_dir/install-sh"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2734 | ac_aux_dir=$ac_dir |
| 2735 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2736 | break |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2737 | elif test -f "$ac_dir/install.sh"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2738 | ac_aux_dir=$ac_dir |
| 2739 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2740 | break |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2741 | elif test -f "$ac_dir/shtool"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2742 | ac_aux_dir=$ac_dir |
| 2743 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2744 | break |
| 2745 | fi |
| 2746 | done |
| 2747 | if test -z "$ac_aux_dir"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2748 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2749 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2750 | |
| 2751 | # These three variables are undocumented and unsupported, |
| 2752 | # and are intended to be withdrawn in a future Autoconf release. |
| 2753 | # They can cause serious problems if a builder's source tree is in a directory |
| 2754 | # whose full name contains unusual characters. |
| 2755 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2756 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2757 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2758 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2759 | |
| 2760 | # Make sure we can run config.sub. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2761 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2762 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2763 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2765 | $as_echo_n "checking build system type... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2766 | if ${ac_cv_build+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2767 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2768 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2769 | ac_build_alias=$build_alias |
| 2770 | test "x$ac_build_alias" = x && |
| 2771 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2772 | test "x$ac_build_alias" = x && |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2773 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2774 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2775 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2776 | |
| 2777 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2779 | $as_echo "$ac_cv_build" >&6; } |
| 2780 | case $ac_cv_build in |
| 2781 | *-*-*) ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2782 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2783 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2784 | build=$ac_cv_build |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2785 | ac_save_IFS=$IFS; IFS='-' |
| 2786 | set x $ac_cv_build |
| 2787 | shift |
| 2788 | build_cpu=$1 |
| 2789 | build_vendor=$2 |
| 2790 | shift; shift |
| 2791 | # Remember, the first character of IFS is used to create $*, |
| 2792 | # except with old shells: |
| 2793 | build_os=$* |
| 2794 | IFS=$ac_save_IFS |
| 2795 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2796 | |
| 2797 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2799 | $as_echo_n "checking host system type... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2800 | if ${ac_cv_host+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2801 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2802 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2803 | if test "x$host_alias" = x; then |
| 2804 | ac_cv_host=$ac_cv_build |
| 2805 | else |
| 2806 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2807 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2808 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2809 | |
| 2810 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2812 | $as_echo "$ac_cv_host" >&6; } |
| 2813 | case $ac_cv_host in |
| 2814 | *-*-*) ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2815 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2816 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2817 | host=$ac_cv_host |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2818 | ac_save_IFS=$IFS; IFS='-' |
| 2819 | set x $ac_cv_host |
| 2820 | shift |
| 2821 | host_cpu=$1 |
| 2822 | host_vendor=$2 |
| 2823 | shift; shift |
| 2824 | # Remember, the first character of IFS is used to create $*, |
| 2825 | # except with old shells: |
| 2826 | host_os=$* |
| 2827 | IFS=$ac_save_IFS |
| 2828 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2829 | |
| 2830 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2831 | |
| 2832 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2833 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2834 | # This variable is needed on z/OS because the C++ compiler only recognizes .C |
| 2835 | _CXX_CXXSUFFIX=cpp |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2836 | export _CXX_CXXSUFFIX |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2837 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2838 | # Accumulate #defines |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 2839 | |
| 2840 | # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only. |
| 2841 | # They are only needed for building ICU itself. Example: platform stuff |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2842 | CONFIG_CPPFLAGS="" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 2843 | # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time, |
| 2844 | # and also a notice is output that they need to be set |
| 2845 | # for end-users of ICU also. uconfig.h.prepend is generated |
| 2846 | # with, for example, "#define U_DISABLE_RENAMING 1" |
| 2847 | # Example: ICU configuration stuff |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2848 | UCONFIG_CPPFLAGS="" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 2849 | # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users |
| 2850 | # such as -std |
| 2851 | UCONFIG_CFLAGS="" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2852 | |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 2853 | # Check whether to install icu-config |
| 2854 | # Check whether --enable-icu-config was given. |
| 2855 | if test "${enable_icu_config+set}" = set; then : |
| 2856 | enableval=$enable_icu_config; case "${enableval}" in |
| 2857 | yes) enable_icu_config=true ;; |
| 2858 | no) enable_icu_config=false ;; |
| 2859 | *) as_fn_error $? "bad value '${enableval}' for --enable-icu-config" "$LINENO" 5 ;; |
| 2860 | esac |
| 2861 | else |
| 2862 | enable_icu_config=true |
| 2863 | fi |
| 2864 | |
| 2865 | INSTALL_ICU_CONFIG=$enable_icu_config |
| 2866 | |
| 2867 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2868 | # Check whether to build debug libraries |
| 2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5 |
| 2870 | $as_echo_n "checking whether to build debug libraries... " >&6; } |
| 2871 | enabled=no |
| 2872 | ENABLE_DEBUG=0 |
| 2873 | # Check whether --enable-debug was given. |
| 2874 | if test "${enable_debug+set}" = set; then : |
| 2875 | enableval=$enable_debug; case "${enableval}" in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2876 | yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2877 | *) ;; |
| 2878 | esac |
| 2879 | fi |
| 2880 | |
| 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
| 2882 | $as_echo "$enabled" >&6; } |
| 2883 | |
| 2884 | |
| 2885 | # Check whether to build release libraries |
| 2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5 |
| 2887 | $as_echo_n "checking whether to build release libraries... " >&6; } |
| 2888 | enabled=yes |
| 2889 | ENABLE_RELEASE=1 |
| 2890 | # Check whether --enable-release was given. |
| 2891 | if test "${enable_release+set}" = set; then : |
| 2892 | enableval=$enable_release; case "${enableval}" in |
| 2893 | no) enabled=no; ENABLE_RELEASE=0 ;; |
| 2894 | *) ;; |
| 2895 | esac |
| 2896 | fi |
| 2897 | |
| 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
| 2899 | $as_echo "$enabled" >&6; } |
| 2900 | |
| 2901 | |
| 2902 | # Don't use the default C/CXXFLags |
| 2903 | : ${CFLAGS=""} |
| 2904 | : ${CXXFLAGS=""} |
| 2905 | |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 2906 | # Checks for compilers |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2907 | ac_ext=c |
| 2908 | ac_cpp='$CPP $CPPFLAGS' |
| 2909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2912 | if test -n "$ac_tool_prefix"; then |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 2913 | for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2914 | do |
| 2915 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2916 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2918 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2919 | if ${ac_cv_prog_CC+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2920 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2921 | else |
| 2922 | if test -n "$CC"; then |
| 2923 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2924 | else |
| 2925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2926 | for as_dir in $PATH |
| 2927 | do |
| 2928 | IFS=$as_save_IFS |
| 2929 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2930 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 2931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2932 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2934 | break 2 |
| 2935 | fi |
| 2936 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2937 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2938 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2939 | |
| 2940 | fi |
| 2941 | fi |
| 2942 | CC=$ac_cv_prog_CC |
| 2943 | if test -n "$CC"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2945 | $as_echo "$CC" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2946 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2948 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2949 | fi |
| 2950 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2951 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2952 | test -n "$CC" && break |
| 2953 | done |
| 2954 | fi |
| 2955 | if test -z "$CC"; then |
| 2956 | ac_ct_CC=$CC |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 2957 | for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2958 | do |
| 2959 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2960 | set dummy $ac_prog; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2962 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 2963 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2964 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2965 | else |
| 2966 | if test -n "$ac_ct_CC"; then |
| 2967 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2968 | else |
| 2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2970 | for as_dir in $PATH |
| 2971 | do |
| 2972 | IFS=$as_save_IFS |
| 2973 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2974 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 2975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2976 | ac_cv_prog_ac_ct_CC="$ac_prog" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2978 | break 2 |
| 2979 | fi |
| 2980 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2981 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2982 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2983 | |
| 2984 | fi |
| 2985 | fi |
| 2986 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2987 | if test -n "$ac_ct_CC"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2989 | $as_echo "$ac_ct_CC" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2990 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2992 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2993 | fi |
| 2994 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2995 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 2996 | test -n "$ac_ct_CC" && break |
| 2997 | done |
| 2998 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 2999 | if test "x$ac_ct_CC" = x; then |
| 3000 | CC="" |
| 3001 | else |
| 3002 | case $cross_compiling:$ac_tool_warned in |
| 3003 | yes:) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3005 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3006 | ac_tool_warned=yes ;; |
| 3007 | esac |
| 3008 | CC=$ac_ct_CC |
| 3009 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3010 | fi |
| 3011 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3012 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3013 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3014 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3015 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3016 | See \`config.log' for more details" "$LINENO" 5; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3017 | |
| 3018 | # Provide some information about the compiler. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3019 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3020 | set X $ac_compile |
| 3021 | ac_compiler=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3022 | for ac_option in --version -v -V -qversion; do |
| 3023 | { { ac_try="$ac_compiler $ac_option >&5" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3024 | case "(($ac_try" in |
| 3025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3026 | *) ac_try_echo=$ac_try;; |
| 3027 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3028 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3029 | $as_echo "$ac_try_echo"; } >&5 |
| 3030 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3031 | ac_status=$? |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3032 | if test -s conftest.err; then |
| 3033 | sed '10a\ |
| 3034 | ... rest of stderr output deleted ... |
| 3035 | 10q' conftest.err >conftest.er1 |
| 3036 | cat conftest.er1 >&5 |
| 3037 | fi |
| 3038 | rm -f conftest.er1 conftest.err |
| 3039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3040 | test $ac_status = 0; } |
| 3041 | done |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3042 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3044 | /* end confdefs.h. */ |
| 3045 | |
| 3046 | int |
| 3047 | main () |
| 3048 | { |
| 3049 | |
| 3050 | ; |
| 3051 | return 0; |
| 3052 | } |
| 3053 | _ACEOF |
| 3054 | ac_clean_files_save=$ac_clean_files |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3055 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3056 | # Try to create an executable without -o first, disregard a.out. |
| 3057 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3058 | # of exeext. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3060 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3061 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3062 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3063 | # The possible output files: |
| 3064 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3065 | |
| 3066 | ac_rmfiles= |
| 3067 | for ac_file in $ac_files |
| 3068 | do |
| 3069 | case $ac_file in |
| 3070 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3071 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3072 | esac |
| 3073 | done |
| 3074 | rm -f $ac_rmfiles |
| 3075 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3076 | if { { ac_try="$ac_link_default" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3077 | case "(($ac_try" in |
| 3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3079 | *) ac_try_echo=$ac_try;; |
| 3080 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3081 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3082 | $as_echo "$ac_try_echo"; } >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3083 | (eval "$ac_link_default") 2>&5 |
| 3084 | ac_status=$? |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3085 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3086 | test $ac_status = 0; }; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3087 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3088 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3089 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3090 | # so that the user can short-circuit this test for compilers unknown to |
| 3091 | # Autoconf. |
| 3092 | for ac_file in $ac_files '' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3093 | do |
| 3094 | test -f "$ac_file" || continue |
| 3095 | case $ac_file in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3096 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3097 | ;; |
| 3098 | [ab].out ) |
| 3099 | # We found the default executable, but exeext='' is most |
| 3100 | # certainly right. |
| 3101 | break;; |
| 3102 | *.* ) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3103 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3104 | then :; else |
| 3105 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3106 | fi |
| 3107 | # We set ac_cv_exeext here because the later test for it is not |
| 3108 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3109 | # argument, so we may need to know it at that point already. |
| 3110 | # Even if this section looks crufty: it has the advantage of |
| 3111 | # actually working. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3112 | break;; |
| 3113 | * ) |
| 3114 | break;; |
| 3115 | esac |
| 3116 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3117 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3118 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3119 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3120 | ac_file='' |
| 3121 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3122 | if test -z "$ac_file"; then : |
| 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3124 | $as_echo "no" >&6; } |
| 3125 | $as_echo "$as_me: failed program was:" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3127 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3130 | as_fn_error 77 "C compiler cannot create executables |
| 3131 | See \`config.log' for more details" "$LINENO" 5; } |
| 3132 | else |
| 3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3134 | $as_echo "yes" >&6; } |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3135 | fi |
| 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3137 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3139 | $as_echo "$ac_file" >&6; } |
| 3140 | ac_exeext=$ac_cv_exeext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3141 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3142 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3143 | ac_clean_files=$ac_clean_files_save |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3145 | $as_echo_n "checking for suffix of executables... " >&6; } |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3146 | if { { ac_try="$ac_link" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3147 | case "(($ac_try" in |
| 3148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3149 | *) ac_try_echo=$ac_try;; |
| 3150 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3151 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3152 | $as_echo "$ac_try_echo"; } >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3153 | (eval "$ac_link") 2>&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3154 | ac_status=$? |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3156 | test $ac_status = 0; }; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3157 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3158 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3159 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3160 | # `rm'. |
| 3161 | for ac_file in conftest.exe conftest conftest.*; do |
| 3162 | test -f "$ac_file" || continue |
| 3163 | case $ac_file in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3164 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3165 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3166 | break;; |
| 3167 | * ) break;; |
| 3168 | esac |
| 3169 | done |
| 3170 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3171 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3172 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3173 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3174 | See \`config.log' for more details" "$LINENO" 5; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3175 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3176 | rm -f conftest conftest$ac_cv_exeext |
| 3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3178 | $as_echo "$ac_cv_exeext" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3179 | |
| 3180 | rm -f conftest.$ac_ext |
| 3181 | EXEEXT=$ac_cv_exeext |
| 3182 | ac_exeext=$EXEEXT |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3184 | /* end confdefs.h. */ |
| 3185 | #include <stdio.h> |
| 3186 | int |
| 3187 | main () |
| 3188 | { |
| 3189 | FILE *f = fopen ("conftest.out", "w"); |
| 3190 | return ferror (f) || fclose (f) != 0; |
| 3191 | |
| 3192 | ; |
| 3193 | return 0; |
| 3194 | } |
| 3195 | _ACEOF |
| 3196 | ac_clean_files="$ac_clean_files conftest.out" |
| 3197 | # Check that the compiler produces executables we can run. If not, either |
| 3198 | # the compiler is broken, or we cross compile. |
| 3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3200 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3201 | if test "$cross_compiling" != yes; then |
| 3202 | { { ac_try="$ac_link" |
| 3203 | case "(($ac_try" in |
| 3204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3205 | *) ac_try_echo=$ac_try;; |
| 3206 | esac |
| 3207 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3208 | $as_echo "$ac_try_echo"; } >&5 |
| 3209 | (eval "$ac_link") 2>&5 |
| 3210 | ac_status=$? |
| 3211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3212 | test $ac_status = 0; } |
| 3213 | if { ac_try='./conftest$ac_cv_exeext' |
| 3214 | { { case "(($ac_try" in |
| 3215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3216 | *) ac_try_echo=$ac_try;; |
| 3217 | esac |
| 3218 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3219 | $as_echo "$ac_try_echo"; } >&5 |
| 3220 | (eval "$ac_try") 2>&5 |
| 3221 | ac_status=$? |
| 3222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3223 | test $ac_status = 0; }; }; then |
| 3224 | cross_compiling=no |
| 3225 | else |
| 3226 | if test "$cross_compiling" = maybe; then |
| 3227 | cross_compiling=yes |
| 3228 | else |
| 3229 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3230 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3231 | as_fn_error $? "cannot run C compiled programs. |
| 3232 | If you meant to cross compile, use \`--host'. |
| 3233 | See \`config.log' for more details" "$LINENO" 5; } |
| 3234 | fi |
| 3235 | fi |
| 3236 | fi |
| 3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3238 | $as_echo "$cross_compiling" >&6; } |
| 3239 | |
| 3240 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3241 | ac_clean_files=$ac_clean_files_save |
| 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3243 | $as_echo_n "checking for suffix of object files... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3244 | if ${ac_cv_objext+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3245 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3246 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3248 | /* end confdefs.h. */ |
| 3249 | |
| 3250 | int |
| 3251 | main () |
| 3252 | { |
| 3253 | |
| 3254 | ; |
| 3255 | return 0; |
| 3256 | } |
| 3257 | _ACEOF |
| 3258 | rm -f conftest.o conftest.obj |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3259 | if { { ac_try="$ac_compile" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3260 | case "(($ac_try" in |
| 3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3262 | *) ac_try_echo=$ac_try;; |
| 3263 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3264 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3265 | $as_echo "$ac_try_echo"; } >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3266 | (eval "$ac_compile") 2>&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3267 | ac_status=$? |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3269 | test $ac_status = 0; }; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3270 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3271 | test -f "$ac_file" || continue; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3272 | case $ac_file in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3273 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3274 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3275 | break;; |
| 3276 | esac |
| 3277 | done |
| 3278 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3279 | $as_echo "$as_me: failed program was:" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3281 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3283 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3284 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3285 | See \`config.log' for more details" "$LINENO" 5; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3286 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3287 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3288 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3290 | $as_echo "$ac_cv_objext" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3291 | OBJEXT=$ac_cv_objext |
| 3292 | ac_objext=$OBJEXT |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3294 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3295 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3296 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3297 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3299 | /* end confdefs.h. */ |
| 3300 | |
| 3301 | int |
| 3302 | main () |
| 3303 | { |
| 3304 | #ifndef __GNUC__ |
| 3305 | choke me |
| 3306 | #endif |
| 3307 | |
| 3308 | ; |
| 3309 | return 0; |
| 3310 | } |
| 3311 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3312 | if ac_fn_c_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3313 | ac_compiler_gnu=yes |
| 3314 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3315 | ac_compiler_gnu=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3316 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3318 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3319 | |
| 3320 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3322 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3323 | if test $ac_compiler_gnu = yes; then |
| 3324 | GCC=yes |
| 3325 | else |
| 3326 | GCC= |
| 3327 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3328 | ac_test_CFLAGS=${CFLAGS+set} |
| 3329 | ac_save_CFLAGS=$CFLAGS |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3331 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3332 | if ${ac_cv_prog_cc_g+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3333 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3334 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3335 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3336 | ac_c_werror_flag=yes |
| 3337 | ac_cv_prog_cc_g=no |
| 3338 | CFLAGS="-g" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3340 | /* end confdefs.h. */ |
| 3341 | |
| 3342 | int |
| 3343 | main () |
| 3344 | { |
| 3345 | |
| 3346 | ; |
| 3347 | return 0; |
| 3348 | } |
| 3349 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3350 | if ac_fn_c_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3351 | ac_cv_prog_cc_g=yes |
| 3352 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3353 | CFLAGS="" |
| 3354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3355 | /* end confdefs.h. */ |
| 3356 | |
| 3357 | int |
| 3358 | main () |
| 3359 | { |
| 3360 | |
| 3361 | ; |
| 3362 | return 0; |
| 3363 | } |
| 3364 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3365 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3366 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3367 | else |
| 3368 | ac_c_werror_flag=$ac_save_c_werror_flag |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3369 | CFLAGS="-g" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3371 | /* end confdefs.h. */ |
| 3372 | |
| 3373 | int |
| 3374 | main () |
| 3375 | { |
| 3376 | |
| 3377 | ; |
| 3378 | return 0; |
| 3379 | } |
| 3380 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3381 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3382 | ac_cv_prog_cc_g=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3383 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3385 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3387 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3389 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3390 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3392 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3393 | if test "$ac_test_CFLAGS" = set; then |
| 3394 | CFLAGS=$ac_save_CFLAGS |
| 3395 | elif test $ac_cv_prog_cc_g = yes; then |
| 3396 | if test "$GCC" = yes; then |
| 3397 | CFLAGS="-g -O2" |
| 3398 | else |
| 3399 | CFLAGS="-g" |
| 3400 | fi |
| 3401 | else |
| 3402 | if test "$GCC" = yes; then |
| 3403 | CFLAGS="-O2" |
| 3404 | else |
| 3405 | CFLAGS= |
| 3406 | fi |
| 3407 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3409 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3410 | if ${ac_cv_prog_cc_c89+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3411 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3412 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3413 | ac_cv_prog_cc_c89=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3414 | ac_save_CC=$CC |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3416 | /* end confdefs.h. */ |
| 3417 | #include <stdarg.h> |
| 3418 | #include <stdio.h> |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3419 | struct stat; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3420 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3421 | struct buf { int x; }; |
| 3422 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3423 | static char *e (p, i) |
| 3424 | char **p; |
| 3425 | int i; |
| 3426 | { |
| 3427 | return p[i]; |
| 3428 | } |
| 3429 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3430 | { |
| 3431 | char *s; |
| 3432 | va_list v; |
| 3433 | va_start (v,p); |
| 3434 | s = g (p, va_arg (v,int)); |
| 3435 | va_end (v); |
| 3436 | return s; |
| 3437 | } |
| 3438 | |
| 3439 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3440 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3441 | These don't provoke an error unfortunately, instead are silently treated |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3442 | as 'x'. The following induces an error, until -std is added to get |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3443 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3444 | array size at least. It's necessary to write '\x00'==0 to get something |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3445 | that's true only with -std. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3446 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3447 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3448 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3449 | inside strings and character constants. */ |
| 3450 | #define FOO(x) 'x' |
| 3451 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3452 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3453 | int test (int i, double x); |
| 3454 | struct s1 {int (*f) (int a);}; |
| 3455 | struct s2 {int (*f) (double a);}; |
| 3456 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3457 | int argc; |
| 3458 | char **argv; |
| 3459 | int |
| 3460 | main () |
| 3461 | { |
| 3462 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3463 | ; |
| 3464 | return 0; |
| 3465 | } |
| 3466 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3467 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3468 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3469 | do |
| 3470 | CC="$ac_save_CC $ac_arg" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3471 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3472 | ac_cv_prog_cc_c89=$ac_arg |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3473 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3474 | rm -f core conftest.err conftest.$ac_objext |
| 3475 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3476 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3477 | rm -f conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3478 | CC=$ac_save_CC |
| 3479 | |
| 3480 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3481 | # AC_CACHE_VAL |
| 3482 | case "x$ac_cv_prog_cc_c89" in |
| 3483 | x) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3485 | $as_echo "none needed" >&6; } ;; |
| 3486 | xno) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3488 | $as_echo "unsupported" >&6; } ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3489 | *) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3490 | CC="$CC $ac_cv_prog_cc_c89" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3492 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3493 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3494 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3495 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3496 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3497 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3498 | ac_ext=c |
| 3499 | ac_cpp='$CPP $CPPFLAGS' |
| 3500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3503 | |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 3504 | # Make sure that we try clang++ first, which provides C++11 support. |
| 3505 | # The g++ compiler is less likely to support C++11. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3506 | ac_ext=cpp |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3507 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3508 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3509 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3510 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3511 | if test -z "$CXX"; then |
| 3512 | if test -n "$CCC"; then |
| 3513 | CXX=$CCC |
| 3514 | else |
| 3515 | if test -n "$ac_tool_prefix"; then |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 3516 | for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3517 | do |
| 3518 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3519 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3521 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3522 | if ${ac_cv_prog_CXX+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3523 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3524 | else |
| 3525 | if test -n "$CXX"; then |
| 3526 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3527 | else |
| 3528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3529 | for as_dir in $PATH |
| 3530 | do |
| 3531 | IFS=$as_save_IFS |
| 3532 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3533 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3534 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3535 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3537 | break 2 |
| 3538 | fi |
| 3539 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3540 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3541 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3542 | |
| 3543 | fi |
| 3544 | fi |
| 3545 | CXX=$ac_cv_prog_CXX |
| 3546 | if test -n "$CXX"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3548 | $as_echo "$CXX" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3549 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3551 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3552 | fi |
| 3553 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3554 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3555 | test -n "$CXX" && break |
| 3556 | done |
| 3557 | fi |
| 3558 | if test -z "$CXX"; then |
| 3559 | ac_ct_CXX=$CXX |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 3560 | for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3561 | do |
| 3562 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3563 | set dummy $ac_prog; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3565 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3566 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3567 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3568 | else |
| 3569 | if test -n "$ac_ct_CXX"; then |
| 3570 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3571 | else |
| 3572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3573 | for as_dir in $PATH |
| 3574 | do |
| 3575 | IFS=$as_save_IFS |
| 3576 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3577 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3579 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3581 | break 2 |
| 3582 | fi |
| 3583 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3584 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3585 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3586 | |
| 3587 | fi |
| 3588 | fi |
| 3589 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3590 | if test -n "$ac_ct_CXX"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3592 | $as_echo "$ac_ct_CXX" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3593 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3595 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3596 | fi |
| 3597 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3598 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3599 | test -n "$ac_ct_CXX" && break |
| 3600 | done |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3601 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3602 | if test "x$ac_ct_CXX" = x; then |
| 3603 | CXX="g++" |
| 3604 | else |
| 3605 | case $cross_compiling:$ac_tool_warned in |
| 3606 | yes:) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3608 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3609 | ac_tool_warned=yes ;; |
| 3610 | esac |
| 3611 | CXX=$ac_ct_CXX |
| 3612 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3613 | fi |
| 3614 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3615 | fi |
| 3616 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3617 | # Provide some information about the compiler. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3618 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3619 | set X $ac_compile |
| 3620 | ac_compiler=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3621 | for ac_option in --version -v -V -qversion; do |
| 3622 | { { ac_try="$ac_compiler $ac_option >&5" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3623 | case "(($ac_try" in |
| 3624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3625 | *) ac_try_echo=$ac_try;; |
| 3626 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3628 | $as_echo "$ac_try_echo"; } >&5 |
| 3629 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3630 | ac_status=$? |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3631 | if test -s conftest.err; then |
| 3632 | sed '10a\ |
| 3633 | ... rest of stderr output deleted ... |
| 3634 | 10q' conftest.err >conftest.er1 |
| 3635 | cat conftest.er1 >&5 |
| 3636 | fi |
| 3637 | rm -f conftest.er1 conftest.err |
| 3638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3639 | test $ac_status = 0; } |
| 3640 | done |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3641 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3643 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3644 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3645 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3646 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3648 | /* end confdefs.h. */ |
| 3649 | |
| 3650 | int |
| 3651 | main () |
| 3652 | { |
| 3653 | #ifndef __GNUC__ |
| 3654 | choke me |
| 3655 | #endif |
| 3656 | |
| 3657 | ; |
| 3658 | return 0; |
| 3659 | } |
| 3660 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3661 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3662 | ac_compiler_gnu=yes |
| 3663 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3664 | ac_compiler_gnu=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3665 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3667 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3668 | |
| 3669 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3671 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3672 | if test $ac_compiler_gnu = yes; then |
| 3673 | GXX=yes |
| 3674 | else |
| 3675 | GXX= |
| 3676 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3677 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3678 | ac_save_CXXFLAGS=$CXXFLAGS |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3680 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3681 | if ${ac_cv_prog_cxx_g+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3682 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3683 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3684 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3685 | ac_cxx_werror_flag=yes |
| 3686 | ac_cv_prog_cxx_g=no |
| 3687 | CXXFLAGS="-g" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3689 | /* end confdefs.h. */ |
| 3690 | |
| 3691 | int |
| 3692 | main () |
| 3693 | { |
| 3694 | |
| 3695 | ; |
| 3696 | return 0; |
| 3697 | } |
| 3698 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3699 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3700 | ac_cv_prog_cxx_g=yes |
| 3701 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3702 | CXXFLAGS="" |
| 3703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3704 | /* end confdefs.h. */ |
| 3705 | |
| 3706 | int |
| 3707 | main () |
| 3708 | { |
| 3709 | |
| 3710 | ; |
| 3711 | return 0; |
| 3712 | } |
| 3713 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3714 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3715 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3716 | else |
| 3717 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3718 | CXXFLAGS="-g" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3720 | /* end confdefs.h. */ |
| 3721 | |
| 3722 | int |
| 3723 | main () |
| 3724 | { |
| 3725 | |
| 3726 | ; |
| 3727 | return 0; |
| 3728 | } |
| 3729 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3730 | if ac_fn_cxx_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3731 | ac_cv_prog_cxx_g=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3732 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3734 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3736 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3738 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3739 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3741 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3742 | if test "$ac_test_CXXFLAGS" = set; then |
| 3743 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3744 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3745 | if test "$GXX" = yes; then |
| 3746 | CXXFLAGS="-g -O2" |
| 3747 | else |
| 3748 | CXXFLAGS="-g" |
| 3749 | fi |
| 3750 | else |
| 3751 | if test "$GXX" = yes; then |
| 3752 | CXXFLAGS="-O2" |
| 3753 | else |
| 3754 | CXXFLAGS= |
| 3755 | fi |
| 3756 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3757 | ac_ext=c |
| 3758 | ac_cpp='$CPP $CPPFLAGS' |
| 3759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3762 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3763 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3764 | # pkg-config is needed for harfbuzz support |
| 3765 | |
| 3766 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3767 | |
| 3768 | |
| 3769 | |
| 3770 | |
| 3771 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3772 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 3773 | if test -n "$ac_tool_prefix"; then |
| 3774 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 3775 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3777 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3778 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 3779 | $as_echo_n "(cached) " >&6 |
| 3780 | else |
| 3781 | case $PKG_CONFIG in |
| 3782 | [\\/]* | ?:[\\/]*) |
| 3783 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 3784 | ;; |
| 3785 | *) |
| 3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3787 | for as_dir in $PATH |
| 3788 | do |
| 3789 | IFS=$as_save_IFS |
| 3790 | test -z "$as_dir" && as_dir=. |
| 3791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3793 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 3794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3795 | break 2 |
| 3796 | fi |
| 3797 | done |
| 3798 | done |
| 3799 | IFS=$as_save_IFS |
| 3800 | |
| 3801 | ;; |
| 3802 | esac |
| 3803 | fi |
| 3804 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 3805 | if test -n "$PKG_CONFIG"; then |
| 3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 3807 | $as_echo "$PKG_CONFIG" >&6; } |
| 3808 | else |
| 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3810 | $as_echo "no" >&6; } |
| 3811 | fi |
| 3812 | |
| 3813 | |
| 3814 | fi |
| 3815 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 3816 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 3817 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 3818 | set dummy pkg-config; ac_word=$2 |
| 3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3820 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3821 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 3822 | $as_echo_n "(cached) " >&6 |
| 3823 | else |
| 3824 | case $ac_pt_PKG_CONFIG in |
| 3825 | [\\/]* | ?:[\\/]*) |
| 3826 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 3827 | ;; |
| 3828 | *) |
| 3829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3830 | for as_dir in $PATH |
| 3831 | do |
| 3832 | IFS=$as_save_IFS |
| 3833 | test -z "$as_dir" && as_dir=. |
| 3834 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3836 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 3837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3838 | break 2 |
| 3839 | fi |
| 3840 | done |
| 3841 | done |
| 3842 | IFS=$as_save_IFS |
| 3843 | |
| 3844 | ;; |
| 3845 | esac |
| 3846 | fi |
| 3847 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 3848 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 3850 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 3851 | else |
| 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3853 | $as_echo "no" >&6; } |
| 3854 | fi |
| 3855 | |
| 3856 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 3857 | PKG_CONFIG="" |
| 3858 | else |
| 3859 | case $cross_compiling:$ac_tool_warned in |
| 3860 | yes:) |
| 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3862 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3863 | ac_tool_warned=yes ;; |
| 3864 | esac |
| 3865 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 3866 | fi |
| 3867 | else |
| 3868 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 3869 | fi |
| 3870 | |
| 3871 | fi |
| 3872 | if test -n "$PKG_CONFIG"; then |
| 3873 | _pkg_min_version=0.20 |
| 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 3875 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 3876 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3878 | $as_echo "yes" >&6; } |
| 3879 | else |
| 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3881 | $as_echo "no" >&6; } |
| 3882 | PKG_CONFIG="" |
| 3883 | fi |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3884 | fi |
| 3885 | |
| 3886 | pkg_failed=no |
| 3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICULEHB" >&5 |
| 3888 | $as_echo_n "checking for ICULEHB... " >&6; } |
| 3889 | |
| 3890 | if test -n "$ICULEHB_CFLAGS"; then |
| 3891 | pkg_cv_ICULEHB_CFLAGS="$ICULEHB_CFLAGS" |
| 3892 | elif test -n "$PKG_CONFIG"; then |
| 3893 | if test -n "$PKG_CONFIG" && \ |
| 3894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5 |
| 3895 | ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5 |
| 3896 | ac_status=$? |
| 3897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3898 | test $ac_status = 0; }; then |
| 3899 | pkg_cv_ICULEHB_CFLAGS=`$PKG_CONFIG --cflags "icu-le-hb" 2>/dev/null` |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3900 | test "x$?" != "x0" && pkg_failed=yes |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3901 | else |
| 3902 | pkg_failed=yes |
| 3903 | fi |
| 3904 | else |
| 3905 | pkg_failed=untried |
| 3906 | fi |
| 3907 | if test -n "$ICULEHB_LIBS"; then |
| 3908 | pkg_cv_ICULEHB_LIBS="$ICULEHB_LIBS" |
| 3909 | elif test -n "$PKG_CONFIG"; then |
| 3910 | if test -n "$PKG_CONFIG" && \ |
| 3911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5 |
| 3912 | ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5 |
| 3913 | ac_status=$? |
| 3914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3915 | test $ac_status = 0; }; then |
| 3916 | pkg_cv_ICULEHB_LIBS=`$PKG_CONFIG --libs "icu-le-hb" 2>/dev/null` |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3917 | test "x$?" != "x0" && pkg_failed=yes |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3918 | else |
| 3919 | pkg_failed=yes |
| 3920 | fi |
| 3921 | else |
| 3922 | pkg_failed=untried |
| 3923 | fi |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | if test $pkg_failed = yes; then |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3929 | $as_echo "no" >&6; } |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3930 | |
| 3931 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 3932 | _pkg_short_errors_supported=yes |
| 3933 | else |
| 3934 | _pkg_short_errors_supported=no |
| 3935 | fi |
| 3936 | if test $_pkg_short_errors_supported = yes; then |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3937 | ICULEHB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-le-hb" 2>&1` |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3938 | else |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3939 | ICULEHB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-le-hb" 2>&1` |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3940 | fi |
| 3941 | # Put the nasty error message in config.log where it belongs |
| 3942 | echo "$ICULEHB_PKG_ERRORS" >&5 |
| 3943 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3944 | : |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3945 | elif test $pkg_failed = untried; then |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3947 | $as_echo "no" >&6; } |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 3948 | : |
| 3949 | else |
| 3950 | ICULEHB_CFLAGS=$pkg_cv_ICULEHB_CFLAGS |
| 3951 | ICULEHB_LIBS=$pkg_cv_ICULEHB_LIBS |
| 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3953 | $as_echo "yes" >&6; } |
| 3954 | have_icu_le_hb=true |
| 3955 | fi |
| 3956 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3957 | # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option |
| 3958 | # The release mode use is the default one for autoconf |
| 3959 | if test "$GCC" = yes; then |
| 3960 | if test "$CFLAGS" = ""; then |
| 3961 | if test "$ENABLE_DEBUG" = 1; then |
| 3962 | CFLAGS=-g |
| 3963 | fi |
| 3964 | if test "$ENABLE_RELEASE" = 1; then |
| 3965 | CFLAGS="$CFLAGS -O2" |
| 3966 | fi |
| 3967 | fi |
| 3968 | if test "$CXXFLAGS" = ""; then |
| 3969 | if test "$ENABLE_DEBUG" = 1; then |
| 3970 | CXXFLAGS=-g |
| 3971 | fi |
| 3972 | if test "$ENABLE_RELEASE" = 1; then |
| 3973 | CXXFLAGS="$CXXFLAGS -O2" |
| 3974 | fi |
| 3975 | fi |
| 3976 | fi |
| 3977 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3978 | ac_ext=c |
| 3979 | ac_cpp='$CPP $CPPFLAGS' |
| 3980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3984 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3985 | # On Suns, sometimes $CPP names a directory. |
| 3986 | if test -n "$CPP" && test -d "$CPP"; then |
| 3987 | CPP= |
| 3988 | fi |
| 3989 | if test -z "$CPP"; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 3990 | if ${ac_cv_prog_CPP+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3991 | $as_echo_n "(cached) " >&6 |
| 3992 | else |
| 3993 | # Double quotes because CPP needs to be expanded |
| 3994 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3995 | do |
| 3996 | ac_preproc_ok=false |
| 3997 | for ac_c_preproc_warn_flag in '' yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 3998 | do |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 3999 | # Use a header file that comes with gcc, so configuring glibc |
| 4000 | # with a fresh cross-compiler works. |
| 4001 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4002 | # <limits.h> exists even on freestanding compilers. |
| 4003 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4004 | # not just through cpp. "Syntax error" is here to catch this case. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4006 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4007 | #ifdef __STDC__ |
| 4008 | # include <limits.h> |
| 4009 | #else |
| 4010 | # include <assert.h> |
| 4011 | #endif |
| 4012 | Syntax error |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4013 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4014 | if ac_fn_c_try_cpp "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4015 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4016 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4017 | # Broken: fails on valid input. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4018 | continue |
| 4019 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4020 | rm -f conftest.err conftest.i conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4021 | |
| 4022 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4023 | # can be detected and how. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4025 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4026 | #include <ac_nonexistent.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4027 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4028 | if ac_fn_c_try_cpp "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4029 | # Broken: success on invalid input. |
| 4030 | continue |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4031 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4032 | # Passes both tests. |
| 4033 | ac_preproc_ok=: |
| 4034 | break |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4035 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4036 | rm -f conftest.err conftest.i conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4037 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4038 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4039 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4040 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4041 | if $ac_preproc_ok; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4042 | break |
| 4043 | fi |
| 4044 | |
| 4045 | done |
| 4046 | ac_cv_prog_CPP=$CPP |
| 4047 | |
| 4048 | fi |
| 4049 | CPP=$ac_cv_prog_CPP |
| 4050 | else |
| 4051 | ac_cv_prog_CPP=$CPP |
| 4052 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4054 | $as_echo "$CPP" >&6; } |
| 4055 | ac_preproc_ok=false |
| 4056 | for ac_c_preproc_warn_flag in '' yes |
| 4057 | do |
| 4058 | # Use a header file that comes with gcc, so configuring glibc |
| 4059 | # with a fresh cross-compiler works. |
| 4060 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4061 | # <limits.h> exists even on freestanding compilers. |
| 4062 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4063 | # not just through cpp. "Syntax error" is here to catch this case. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4065 | /* end confdefs.h. */ |
| 4066 | #ifdef __STDC__ |
| 4067 | # include <limits.h> |
| 4068 | #else |
| 4069 | # include <assert.h> |
| 4070 | #endif |
| 4071 | Syntax error |
| 4072 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4073 | if ac_fn_c_try_cpp "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4074 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4075 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4076 | # Broken: fails on valid input. |
| 4077 | continue |
| 4078 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4079 | rm -f conftest.err conftest.i conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4080 | |
| 4081 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4082 | # can be detected and how. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4084 | /* end confdefs.h. */ |
| 4085 | #include <ac_nonexistent.h> |
| 4086 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4087 | if ac_fn_c_try_cpp "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4088 | # Broken: success on invalid input. |
| 4089 | continue |
| 4090 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4091 | # Passes both tests. |
| 4092 | ac_preproc_ok=: |
| 4093 | break |
| 4094 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4095 | rm -f conftest.err conftest.i conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4096 | |
| 4097 | done |
| 4098 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4099 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4100 | if $ac_preproc_ok; then : |
| 4101 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4102 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4103 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4104 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4105 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4106 | See \`config.log' for more details" "$LINENO" 5; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4107 | fi |
| 4108 | |
| 4109 | ac_ext=c |
| 4110 | ac_cpp='$CPP $CPPFLAGS' |
| 4111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4114 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4115 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4116 | # Find a good install program. We prefer a C program (faster), |
| 4117 | # so one script is as good as another. But avoid the broken or |
| 4118 | # incompatible versions: |
| 4119 | # SysV /etc/install, /usr/sbin/install |
| 4120 | # SunOS /usr/etc/install |
| 4121 | # IRIX /sbin/install |
| 4122 | # AIX /bin/install |
| 4123 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4124 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4125 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4126 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4127 | # OS/2's system install, which has a completely different semantic |
| 4128 | # ./install, which can be erroneously created by make from ./install.sh. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4129 | # Reject install programs that cannot install multiple files. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4131 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4132 | if test -z "$INSTALL"; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 4133 | if ${ac_cv_path_install+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4134 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4135 | else |
| 4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4137 | for as_dir in $PATH |
| 4138 | do |
| 4139 | IFS=$as_save_IFS |
| 4140 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4141 | # Account for people who put trailing slashes in PATH elements. |
| 4142 | case $as_dir/ in #(( |
| 4143 | ./ | .// | /[cC]/* | \ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4144 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4145 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4146 | /usr/ucb/* ) ;; |
| 4147 | *) |
| 4148 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4149 | # Don't use installbsd from OSF since it installs stuff as root |
| 4150 | # by default. |
| 4151 | for ac_prog in ginstall scoinst install; do |
| 4152 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4153 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4154 | if test $ac_prog = install && |
| 4155 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4156 | # AIX install. It has an incompatible calling convention. |
| 4157 | : |
| 4158 | elif test $ac_prog = install && |
| 4159 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4160 | # program-specific install script used by HP pwplus--don't use. |
| 4161 | : |
| 4162 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4163 | rm -rf conftest.one conftest.two conftest.dir |
| 4164 | echo one > conftest.one |
| 4165 | echo two > conftest.two |
| 4166 | mkdir conftest.dir |
| 4167 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4168 | test -s conftest.one && test -s conftest.two && |
| 4169 | test -s conftest.dir/conftest.one && |
| 4170 | test -s conftest.dir/conftest.two |
| 4171 | then |
| 4172 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4173 | break 3 |
| 4174 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4175 | fi |
| 4176 | fi |
| 4177 | done |
| 4178 | done |
| 4179 | ;; |
| 4180 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4181 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4182 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4183 | IFS=$as_save_IFS |
| 4184 | |
| 4185 | rm -rf conftest.one conftest.two conftest.dir |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4186 | |
| 4187 | fi |
| 4188 | if test "${ac_cv_path_install+set}" = set; then |
| 4189 | INSTALL=$ac_cv_path_install |
| 4190 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4191 | # As a last resort, use the slow shell script. Don't cache a |
| 4192 | # value for INSTALL within a source directory, because that will |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4193 | # break other packages using the cache if that directory is |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4194 | # removed, or if the value is a relative name. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4195 | INSTALL=$ac_install_sh |
| 4196 | fi |
| 4197 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4199 | $as_echo "$INSTALL" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4200 | |
| 4201 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4202 | # It thinks the first close brace ends the variable substitution. |
| 4203 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4204 | |
| 4205 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4206 | |
| 4207 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4208 | |
| 4209 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4210 | |
| 4211 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4212 | ac_ext=cpp |
| 4213 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4214 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4215 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4216 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4217 | |
| 4218 | |
| 4219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4220 | /* end confdefs.h. */ |
| 4221 | |
| 4222 | int |
| 4223 | main () |
| 4224 | { |
| 4225 | |
| 4226 | ; |
| 4227 | return 0; |
| 4228 | } |
| 4229 | _ACEOF |
| 4230 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 4231 | |
| 4232 | fi |
| 4233 | rm -f core conftest.err conftest.$ac_objext \ |
| 4234 | conftest$ac_exeext conftest.$ac_ext |
| 4235 | ac_ext=c |
| 4236 | ac_cpp='$CPP $CPPFLAGS' |
| 4237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4240 | |
| 4241 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4242 | # make sure install is relative to srcdir - if a script |
| 4243 | if test "$srcdir" = "."; then |
| 4244 | # If srcdir isn't just ., then (srcdir) is already prepended. |
| 4245 | if test "${ac_install_sh}" = "${INSTALL}"; then |
| 4246 | INSTALL="\\\$(top_srcdir)/${ac_install_sh}" |
| 4247 | fi |
| 4248 | fi |
| 4249 | |
| 4250 | #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) |
| 4251 | #AC_CHECK_PROG(STRIP, strip, strip, true) |
| 4252 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 4253 | # TODO(ICU-20301): Remove fallback to Python 2. |
| 4254 | for ac_prog in python3 "py -3" python "py" |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 4255 | do |
| 4256 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4257 | set dummy $ac_prog; ac_word=$2 |
| 4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4259 | $as_echo_n "checking for $ac_word... " >&6; } |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 4260 | if ${ac_cv_prog_PYTHON+:} false; then : |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 4261 | $as_echo_n "(cached) " >&6 |
| 4262 | else |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 4263 | if test -n "$PYTHON"; then |
| 4264 | ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 4265 | else |
| 4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4267 | for as_dir in $PATH |
| 4268 | do |
| 4269 | IFS=$as_save_IFS |
| 4270 | test -z "$as_dir" && as_dir=. |
| 4271 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 4273 | ac_cv_prog_PYTHON="$ac_prog" |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 4274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4275 | break 2 |
| 4276 | fi |
| 4277 | done |
| 4278 | done |
| 4279 | IFS=$as_save_IFS |
| 4280 | |
| 4281 | fi |
| 4282 | fi |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 4283 | PYTHON=$ac_cv_prog_PYTHON |
| 4284 | if test -n "$PYTHON"; then |
| 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 4286 | $as_echo "$PYTHON" >&6; } |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 4287 | else |
| 4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4289 | $as_echo "no" >&6; } |
| 4290 | fi |
| 4291 | |
| 4292 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 4293 | test -n "$PYTHON" && break |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 4294 | done |
| 4295 | |
| 4296 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 4297 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4298 | # Check for the platform make |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4299 | for ac_prog in gmake gnumake |
| 4300 | do |
| 4301 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4302 | set dummy $ac_prog; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4304 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 4305 | if ${ac_cv_path_U_MAKE+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4306 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4307 | else |
| 4308 | case $U_MAKE in |
| 4309 | [\\/]* | ?:[\\/]*) |
| 4310 | ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. |
| 4311 | ;; |
| 4312 | *) |
| 4313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4314 | for as_dir in $PATH |
| 4315 | do |
| 4316 | IFS=$as_save_IFS |
| 4317 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4318 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4320 | ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4322 | break 2 |
| 4323 | fi |
| 4324 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4325 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4326 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4327 | |
| 4328 | ;; |
| 4329 | esac |
| 4330 | fi |
| 4331 | U_MAKE=$ac_cv_path_U_MAKE |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4332 | if test -n "$U_MAKE"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4334 | $as_echo "$U_MAKE" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4335 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4337 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4338 | fi |
| 4339 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4340 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4341 | test -n "$U_MAKE" && break |
| 4342 | done |
| 4343 | test -n "$U_MAKE" || U_MAKE="make" |
| 4344 | |
| 4345 | |
| 4346 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4347 | |
| 4348 | |
| 4349 | # Check whether --with-cross-build was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4350 | if test "${with_cross_build+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4351 | withval=$with_cross_build; cross_buildroot="${withval}" |
| 4352 | else |
| 4353 | cross_buildroot="" |
| 4354 | fi |
| 4355 | |
| 4356 | |
| 4357 | if test "X$cross_buildroot" = "X"; then |
| 4358 | if test "$cross_compiling" = "yes"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4359 | 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 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4360 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4361 | else |
| 4362 | if test -f "${cross_buildroot}/config/icucross.mk"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4364 | $as_echo "Using cross buildroot: $cross_buildroot" >&6; } |
| 4365 | else |
| 4366 | if test -d "${cross_buildroot}"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4367 | as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4368 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4369 | as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4370 | fi |
| 4371 | fi |
| 4372 | fi |
| 4373 | |
| 4374 | |
| 4375 | # Check for doxygen to generate documentation |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4376 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 4377 | set dummy doxygen; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4379 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 4380 | if ${ac_cv_path_DOXYGEN+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4381 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4382 | else |
| 4383 | case $DOXYGEN in |
| 4384 | [\\/]* | ?:[\\/]*) |
| 4385 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 4386 | ;; |
| 4387 | *) |
| 4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4389 | as_dummy="$PATH:/usr/local/bin:/usr/bin" |
| 4390 | for as_dir in $as_dummy |
| 4391 | do |
| 4392 | IFS=$as_save_IFS |
| 4393 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4394 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4395 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4396 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4398 | break 2 |
| 4399 | fi |
| 4400 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4401 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4402 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4403 | |
| 4404 | ;; |
| 4405 | esac |
| 4406 | fi |
| 4407 | DOXYGEN=$ac_cv_path_DOXYGEN |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4408 | if test -n "$DOXYGEN"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4410 | $as_echo "$DOXYGEN" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4411 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4413 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4414 | fi |
| 4415 | |
| 4416 | |
| 4417 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4418 | # Check that the linker is usable |
| 4419 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4420 | case "${host}" in |
| 4421 | *-*-cygwin*|*-*-mingw*) |
| 4422 | if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4423 | as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect. |
| 4424 | Please follow the directions in ICU's readme." "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4425 | fi;; |
| 4426 | *);; |
| 4427 | esac |
| 4428 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4429 | # Determine the executable suffix |
| 4430 | # We don't use AC_EXEEXT because some compilers output separate debugging |
| 4431 | # files, which confuses the AC_EXEEXT macro. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4433 | $as_echo_n "checking checking for executable suffix... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4434 | case "${host}" in |
| 4435 | *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; |
| 4436 | *) EXEEXT="" ;; |
| 4437 | esac |
| 4438 | ac_exeext=$EXEEXT |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4440 | $as_echo "$EXEEXT" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4441 | |
| 4442 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4443 | # Determine how strict we want to be when compiling |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4444 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4446 | $as_echo_n "checking whether strict compiling is on... " >&6; } |
| 4447 | # Check whether --enable-strict was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4448 | if test "${enable_strict+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4449 | enableval=$enable_strict; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4450 | if test "$enableval" = no |
| 4451 | then |
| 4452 | ac_use_strict_options=no |
| 4453 | else |
| 4454 | ac_use_strict_options=yes |
| 4455 | fi |
| 4456 | |
| 4457 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4458 | ac_use_strict_options=yes |
| 4459 | fi |
| 4460 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4462 | $as_echo "$ac_use_strict_options" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4463 | |
| 4464 | if test "$ac_use_strict_options" = yes |
| 4465 | then |
| 4466 | if test "$GCC" = yes |
| 4467 | then |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 4468 | case "${host}" in |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 4469 | *-*-solaris*) |
Fredrik Roubert | 57b72de | 2018-06-21 14:29:02 +0200 | [diff] [blame] | 4470 | # Don't use -std=c11 on Solaris because of timezone check fails |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 4471 | ;; |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 4472 | *) |
| 4473 | # Do not use -ansi. It limits us to C90, and it breaks some platforms. |
Fredrik Roubert | 57b72de | 2018-06-21 14:29:02 +0200 | [diff] [blame] | 4474 | # We use -std=c11 to disable the gnu99 defaults and its associated warnings |
| 4475 | CFLAGS="$CFLAGS -std=c11" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 4476 | ;; |
| 4477 | esac |
| 4478 | |
| 4479 | CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4480 | else |
| 4481 | case "${host}" in |
| 4482 | *-*-cygwin) |
| 4483 | if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" |
| 4484 | then |
| 4485 | CFLAGS="$CFLAGS /W4" |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4486 | fi ;; |
| 4487 | *-*-mingw*) |
| 4488 | CFLAGS="$CFLAGS -W4" ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4489 | esac |
| 4490 | fi |
| 4491 | if test "$GXX" = yes |
| 4492 | then |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 4493 | CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4494 | else |
| 4495 | case "${host}" in |
| 4496 | *-*-cygwin) |
| 4497 | if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" |
| 4498 | then |
| 4499 | CXXFLAGS="$CXXFLAGS /W4" |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4500 | fi ;; |
| 4501 | *-*-mingw*) |
| 4502 | CFLAGS="$CFLAGS -W4" ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4503 | esac |
| 4504 | fi |
| 4505 | fi |
| 4506 | |
| 4507 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4508 | # Check if we can build and use 64-bit libraries |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4509 | |
| 4510 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4512 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 4513 | if ${ac_cv_path_GREP+:} false; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4514 | $as_echo_n "(cached) " >&6 |
| 4515 | else |
| 4516 | if test -z "$GREP"; then |
| 4517 | ac_path_GREP_found=false |
| 4518 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4520 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4521 | do |
| 4522 | IFS=$as_save_IFS |
| 4523 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4524 | for ac_prog in grep ggrep; do |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4526 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4527 | as_fn_executable_p "$ac_path_GREP" || continue |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4528 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4529 | # Check for GNU $ac_path_GREP |
| 4530 | case `"$ac_path_GREP" --version 2>&1` in |
| 4531 | *GNU*) |
| 4532 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4533 | *) |
| 4534 | ac_count=0 |
| 4535 | $as_echo_n 0123456789 >"conftest.in" |
| 4536 | while : |
| 4537 | do |
| 4538 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4539 | mv "conftest.tmp" "conftest.in" |
| 4540 | cp "conftest.in" "conftest.nl" |
| 4541 | $as_echo 'GREP' >> "conftest.nl" |
| 4542 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4543 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4544 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4545 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4546 | # Best one so far, save it but keep looking for a better one |
| 4547 | ac_cv_path_GREP="$ac_path_GREP" |
| 4548 | ac_path_GREP_max=$ac_count |
| 4549 | fi |
| 4550 | # 10*(2^10) chars as input seems more than enough |
| 4551 | test $ac_count -gt 10 && break |
| 4552 | done |
| 4553 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4554 | esac |
| 4555 | |
| 4556 | $ac_path_GREP_found && break 3 |
| 4557 | done |
| 4558 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4559 | done |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4560 | IFS=$as_save_IFS |
| 4561 | if test -z "$ac_cv_path_GREP"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4562 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4563 | fi |
| 4564 | else |
| 4565 | ac_cv_path_GREP=$GREP |
| 4566 | fi |
| 4567 | |
| 4568 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4570 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4571 | GREP="$ac_cv_path_GREP" |
| 4572 | |
| 4573 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4575 | $as_echo_n "checking for egrep... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 4576 | if ${ac_cv_path_EGREP+:} false; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4577 | $as_echo_n "(cached) " >&6 |
| 4578 | else |
| 4579 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4580 | then ac_cv_path_EGREP="$GREP -E" |
| 4581 | else |
| 4582 | if test -z "$EGREP"; then |
| 4583 | ac_path_EGREP_found=false |
| 4584 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4586 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4587 | do |
| 4588 | IFS=$as_save_IFS |
| 4589 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4590 | for ac_prog in egrep; do |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4591 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4592 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4593 | as_fn_executable_p "$ac_path_EGREP" || continue |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4594 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4595 | # Check for GNU $ac_path_EGREP |
| 4596 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4597 | *GNU*) |
| 4598 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4599 | *) |
| 4600 | ac_count=0 |
| 4601 | $as_echo_n 0123456789 >"conftest.in" |
| 4602 | while : |
| 4603 | do |
| 4604 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4605 | mv "conftest.tmp" "conftest.in" |
| 4606 | cp "conftest.in" "conftest.nl" |
| 4607 | $as_echo 'EGREP' >> "conftest.nl" |
| 4608 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4609 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4610 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4611 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4612 | # Best one so far, save it but keep looking for a better one |
| 4613 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4614 | ac_path_EGREP_max=$ac_count |
| 4615 | fi |
| 4616 | # 10*(2^10) chars as input seems more than enough |
| 4617 | test $ac_count -gt 10 && break |
| 4618 | done |
| 4619 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4620 | esac |
| 4621 | |
| 4622 | $ac_path_EGREP_found && break 3 |
| 4623 | done |
| 4624 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4625 | done |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4626 | IFS=$as_save_IFS |
| 4627 | if test -z "$ac_cv_path_EGREP"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4628 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4629 | fi |
| 4630 | else |
| 4631 | ac_cv_path_EGREP=$EGREP |
| 4632 | fi |
| 4633 | |
| 4634 | fi |
| 4635 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4637 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4638 | EGREP="$ac_cv_path_EGREP" |
| 4639 | |
| 4640 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4642 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 4643 | if ${ac_cv_header_stdc+:} false; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4644 | $as_echo_n "(cached) " >&6 |
| 4645 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4647 | /* end confdefs.h. */ |
| 4648 | #include <stdlib.h> |
| 4649 | #include <stdarg.h> |
| 4650 | #include <string.h> |
| 4651 | #include <float.h> |
| 4652 | |
| 4653 | int |
| 4654 | main () |
| 4655 | { |
| 4656 | |
| 4657 | ; |
| 4658 | return 0; |
| 4659 | } |
| 4660 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4661 | if ac_fn_c_try_compile "$LINENO"; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4662 | ac_cv_header_stdc=yes |
| 4663 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4664 | ac_cv_header_stdc=no |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4665 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4667 | |
| 4668 | if test $ac_cv_header_stdc = yes; then |
| 4669 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4671 | /* end confdefs.h. */ |
| 4672 | #include <string.h> |
| 4673 | |
| 4674 | _ACEOF |
| 4675 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4676 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4677 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4678 | else |
| 4679 | ac_cv_header_stdc=no |
| 4680 | fi |
| 4681 | rm -f conftest* |
| 4682 | |
| 4683 | fi |
| 4684 | |
| 4685 | if test $ac_cv_header_stdc = yes; then |
| 4686 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4688 | /* end confdefs.h. */ |
| 4689 | #include <stdlib.h> |
| 4690 | |
| 4691 | _ACEOF |
| 4692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4693 | $EGREP "free" >/dev/null 2>&1; then : |
| 4694 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4695 | else |
| 4696 | ac_cv_header_stdc=no |
| 4697 | fi |
| 4698 | rm -f conftest* |
| 4699 | |
| 4700 | fi |
| 4701 | |
| 4702 | if test $ac_cv_header_stdc = yes; then |
| 4703 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4704 | if test "$cross_compiling" = yes; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4705 | : |
| 4706 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4708 | /* end confdefs.h. */ |
| 4709 | #include <ctype.h> |
| 4710 | #include <stdlib.h> |
| 4711 | #if ((' ' & 0x0FF) == 0x020) |
| 4712 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4713 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4714 | #else |
| 4715 | # define ISLOWER(c) \ |
| 4716 | (('a' <= (c) && (c) <= 'i') \ |
| 4717 | || ('j' <= (c) && (c) <= 'r') \ |
| 4718 | || ('s' <= (c) && (c) <= 'z')) |
| 4719 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4720 | #endif |
| 4721 | |
| 4722 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4723 | int |
| 4724 | main () |
| 4725 | { |
| 4726 | int i; |
| 4727 | for (i = 0; i < 256; i++) |
| 4728 | if (XOR (islower (i), ISLOWER (i)) |
| 4729 | || toupper (i) != TOUPPER (i)) |
| 4730 | return 2; |
| 4731 | return 0; |
| 4732 | } |
| 4733 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4734 | if ac_fn_c_try_run "$LINENO"; then : |
| 4735 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4736 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4737 | ac_cv_header_stdc=no |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4738 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4739 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4740 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4741 | fi |
| 4742 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4743 | fi |
| 4744 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4746 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4747 | if test $ac_cv_header_stdc = yes; then |
| 4748 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4749 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4750 | |
| 4751 | fi |
| 4752 | |
| 4753 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4754 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4755 | inttypes.h stdint.h unistd.h |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4756 | do : |
| 4757 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4758 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4759 | " |
| 4760 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4761 | cat >>confdefs.h <<_ACEOF |
| 4762 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4763 | _ACEOF |
| 4764 | |
| 4765 | fi |
| 4766 | |
| 4767 | done |
| 4768 | |
| 4769 | |
| 4770 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4771 | BITS_REQ=nochange |
| 4772 | ENABLE_64BIT_LIBS=unknown |
| 4773 | ## revisit this for cross-compile. |
| 4774 | |
| 4775 | # Check whether --enable-64bit-libs was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4776 | if test "${enable_64bit_libs+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4777 | enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs" |
| 4778 | case "${enableval}" in |
| 4779 | no|false|32) with_library_bits=32; ;; |
| 4780 | yes|true|64) with_library_bits=64else32 ;; |
| 4781 | nochange) with_library_bits=nochange; ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4782 | *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4783 | esac |
| 4784 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4785 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4786 | |
| 4787 | |
| 4788 | |
| 4789 | # Check whether --with-library-bits was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4790 | if test "${with_library_bits+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4791 | withval=$with_library_bits; case "${withval}" in |
| 4792 | ""|nochange) BITS_REQ=$withval ;; |
| 4793 | 32|64|64else32) BITS_REQ=$withval ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4794 | *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4795 | esac |
| 4796 | fi |
| 4797 | |
| 4798 | |
| 4799 | # don't use these for cross compiling |
| 4800 | if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4801 | 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 Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4802 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4803 | # The cast to long int works around a bug in the HP C Compiler |
| 4804 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4805 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4806 | # This bug is HP SR number 8606223364. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4808 | $as_echo_n "checking size of void *... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 4809 | if ${ac_cv_sizeof_void_p+:} false; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4810 | $as_echo_n "(cached) " >&6 |
| 4811 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4812 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4813 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4814 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4815 | if test "$ac_cv_type_void_p" = yes; then |
| 4816 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4817 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4818 | as_fn_error 77 "cannot compute sizeof (void *) |
| 4819 | See \`config.log' for more details" "$LINENO" 5; } |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4820 | else |
| 4821 | ac_cv_sizeof_void_p=0 |
| 4822 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4823 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4824 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4825 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4827 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4828 | |
| 4829 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4830 | |
| 4831 | cat >>confdefs.h <<_ACEOF |
| 4832 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 4833 | _ACEOF |
| 4834 | |
| 4835 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4837 | $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; } |
| 4838 | case $ac_cv_sizeof_void_p in |
| 4839 | 8) DEFAULT_64BIT=yes ;; |
| 4840 | 4) DEFAULT_64BIT=no ;; |
| 4841 | *) DEFAULT_64BIT=unknown |
| 4842 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4843 | BITS_GOT=unknown |
| 4844 | |
| 4845 | # 'OK' here means, we can exit any further checking, everything's copa |
| 4846 | BITS_OK=yes |
| 4847 | |
| 4848 | # do we need to check for buildable/runnable 32 or 64 bit? |
| 4849 | BITS_CHECK_32=no |
| 4850 | BITS_CHECK_64=no |
| 4851 | |
| 4852 | # later, can we run the 32/64 bit binaries so made? |
| 4853 | BITS_RUN_32=no |
| 4854 | BITS_RUN_64=no |
| 4855 | |
| 4856 | if test "$DEFAULT_64BIT" = "yes"; then |
| 4857 | # we get 64 bits by default. |
| 4858 | BITS_GOT=64 |
| 4859 | case "$BITS_REQ" in |
| 4860 | 32) |
| 4861 | # need to look for 32 bit support. |
| 4862 | BITS_CHECK_32=yes |
| 4863 | # not copa. |
| 4864 | BITS_OK=no;; |
| 4865 | # everyone else is happy. |
| 4866 | nochange) ;; |
| 4867 | *) ;; |
| 4868 | esac |
| 4869 | elif test "$DEFAULT_64BIT" = "no"; then |
| 4870 | # not 64 bit by default. |
| 4871 | BITS_GOT=32 |
| 4872 | case "$BITS_REQ" in |
| 4873 | 64|64else32) |
| 4874 | BITS_CHECK_64=yes |
| 4875 | #BITS_CHECK_32=yes |
| 4876 | BITS_OK=no;; |
| 4877 | nochange) ;; |
| 4878 | *) ;; |
| 4879 | esac |
| 4880 | elif test "$DEFAULT_64BIT" = "unknown"; then |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 4881 | # cross compiling. |
| 4882 | BITS_GOT=unknown |
| 4883 | case "$BITS_REQ" in |
| 4884 | 64|64else32) BITS_OK=no |
| 4885 | BITS_CHECK_32=yes |
| 4886 | BITS_CHECK_64=yes ;; |
| 4887 | 32) BITS_OK=no;; |
| 4888 | nochange) ;; |
| 4889 | *) ;; |
| 4890 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4891 | fi |
| 4892 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4894 | $as_echo "$DEFAULT_64BIT" >&6; }; |
| 4895 | |
| 4896 | if test "$BITS_OK" != "yes"; then |
| 4897 | # not copa. back these up. |
| 4898 | CFLAGS_OLD="${CFLAGS}" |
| 4899 | CXXFLAGS_OLD="${CXXFLAGS}" |
| 4900 | LDFLAGS_OLD="${LDFLAGS}" |
| 4901 | ARFLAGS_OLD="${ARFLAGS}" |
| 4902 | |
| 4903 | CFLAGS_32="${CFLAGS}" |
| 4904 | CXXFLAGS_32="${CXXFLAGS}" |
| 4905 | LDFLAGS_32="${LDFLAGS}" |
| 4906 | ARFLAGS_32="${ARFLAGS}" |
| 4907 | |
| 4908 | CFLAGS_64="${CFLAGS}" |
| 4909 | CXXFLAGS_64="${CXXFLAGS}" |
| 4910 | LDFLAGS_64="${LDFLAGS}" |
| 4911 | ARFLAGS_64="${ARFLAGS}" |
| 4912 | |
| 4913 | CAN_BUILD_64=unknown |
| 4914 | CAN_BUILD_32=unknown |
| 4915 | # These results can't be cached because is sets compiler flags. |
| 4916 | if test "$BITS_CHECK_64" = "yes"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4918 | $as_echo_n "checking how to build 64-bit executables... " >&6; } |
| 4919 | CAN_BUILD_64=no |
| 4920 | #### |
| 4921 | # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it. |
| 4922 | # Note, we don't have to actually check if the options work- we'll try them before using them. |
| 4923 | # So, only try actually testing the options, if you are trying to decide between multiple options. |
| 4924 | # On exit from the following clauses: |
| 4925 | # if CAN_BUILD_64=yes: |
| 4926 | # *FLAGS are assumed to contain the right settings for 64bit |
| 4927 | # else if CAN_BUILD_64=no: (default) |
| 4928 | # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD |
| 4929 | |
| 4930 | if test "$GCC" = yes; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4931 | CFLAGS="${CFLAGS} -m64" |
| 4932 | CXXFLAGS="${CXXFLAGS} -m64" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4934 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4935 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4936 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4937 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4938 | CAN_BUILD_64=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4939 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4940 | CAN_BUILD_64=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4941 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4943 | else |
| 4944 | case "${host}" in |
| 4945 | sparc*-*-solaris*) |
| 4946 | # 1. try -m64 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4947 | CFLAGS="${CFLAGS} -m64" |
| 4948 | CXXFLAGS="${CXXFLAGS} -m64" |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 4949 | if test "$cross_compiling" = yes; then : |
| 4950 | CAN_BUILD_64=unknown |
| 4951 | else |
| 4952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4953 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4954 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
| 4955 | _ACEOF |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 4956 | if ac_fn_c_try_run "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4957 | CAN_BUILD_64=yes |
| 4958 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4959 | CAN_BUILD_64=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4960 | fi |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 4961 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4962 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4963 | fi |
| 4964 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4965 | if test "$CAN_BUILD_64" != yes; then |
| 4966 | # Nope. back out changes. |
| 4967 | CFLAGS="${CFLAGS_OLD}" |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 4968 | CXXFLAGS="${CXXFLAGS_OLD}" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4969 | # 2. try xarch=v9 [deprecated] |
| 4970 | ## TODO: cross compile: the following won't work. |
| 4971 | SPARCV9=`isainfo -n 2>&1 | grep sparcv9` |
| 4972 | SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` |
| 4973 | # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs" |
| 4974 | if test -z "$SOL64" && test -n "$SPARCV9"; then |
| 4975 | CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" |
| 4976 | CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" |
| 4977 | LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" |
| 4978 | CAN_BUILD_64=yes |
| 4979 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 4980 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4981 | ;; |
| 4982 | i386-*-solaris*) |
| 4983 | # 1. try -m64 |
| 4984 | CFLAGS="${CFLAGS} -m64" |
| 4985 | CXXFLAGS="${CXXFLAGS} -m64" |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 4986 | if test "$cross_compiling" = yes; then : |
| 4987 | CAN_BUILD_64=unknown |
| 4988 | else |
| 4989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4990 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4991 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
| 4992 | _ACEOF |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 4993 | if ac_fn_c_try_run "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4994 | CAN_BUILD_64=yes |
| 4995 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 4996 | CAN_BUILD_64=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 4997 | fi |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 4998 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4999 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5000 | fi |
| 5001 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5002 | if test "$CAN_BUILD_64" != yes; then |
| 5003 | # Nope. back out changes. |
| 5004 | CFLAGS="${CFLAGS_OLD}" |
| 5005 | CXXFLAGS="${CXXFLAGS_OLD}" |
| 5006 | # 2. try the older compiler option |
| 5007 | ## TODO: cross compile problem |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 5008 | AMD64=`isainfo -n 2>&1 | grep amd64` |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5009 | SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` |
| 5010 | if test -z "$SOL64" && test -n "$AMD64"; then |
| 5011 | CFLAGS="${CFLAGS} -xtarget=generic64" |
| 5012 | CXXFLAGS="${CXXFLAGS} -xtarget=generic64" |
| 5013 | CAN_BUILD_64=yes |
| 5014 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5015 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5016 | ;; |
| 5017 | ia64-*-linux*) |
| 5018 | # check for ecc/ecpc compiler support |
| 5019 | ## TODO: cross compiler problem |
| 5020 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then |
| 5021 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then |
| 5022 | CAN_BUILD_64=yes |
| 5023 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5024 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5025 | ;; |
| 5026 | *-*-cygwin) |
| 5027 | # vcvarsamd64.bat should have been used to enable 64-bit builds. |
| 5028 | # We only do this check to display the correct answer. |
| 5029 | ## TODO: cross compiler problem |
| 5030 | if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then |
| 5031 | CAN_BUILD_64=yes |
| 5032 | fi |
| 5033 | ;; |
| 5034 | *-*-aix*|powerpc64-*-linux*) |
| 5035 | CFLAGS="${CFLAGS} -q64" |
| 5036 | CXXFLAGS="${CXXFLAGS} -q64" |
| 5037 | LDFLAGS="${LDFLAGS} -q64" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5039 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5040 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
| 5041 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5042 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5043 | CAN_BUILD_64=yes |
| 5044 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5045 | CAN_BUILD_64=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5046 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5048 | if test "$CAN_BUILD_64" = yes; then |
| 5049 | # worked- set other options. |
| 5050 | case "${host}" in |
| 5051 | *-*-aix*) |
| 5052 | # tell AIX what executable mode to use. |
| 5053 | ARFLAGS="${ARFLAGS} -X64" |
| 5054 | esac |
| 5055 | fi |
| 5056 | ;; |
| 5057 | *-*-hpux*) |
| 5058 | # First we try the newer +DD64, if that doesn't work, |
| 5059 | # try other options. |
| 5060 | |
| 5061 | CFLAGS="${CFLAGS} +DD64" |
| 5062 | CXXFLAGS="${CXXFLAGS} +DD64" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5064 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5065 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
| 5066 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5067 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5068 | CAN_BUILD_64=yes |
| 5069 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5070 | CAN_BUILD_64=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5071 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5073 | if test "$CAN_BUILD_64" != yes; then |
| 5074 | # reset |
| 5075 | CFLAGS="${CFLAGS_OLD}" |
| 5076 | CXXFLAGS="${CXXFLAGS_OLD}" |
| 5077 | # append |
| 5078 | CFLAGS="${CFLAGS} +DA2.0W" |
| 5079 | CXXFLAGS="${CXXFLAGS} +DA2.0W" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5081 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5082 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
| 5083 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5084 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5085 | CAN_BUILD_64=yes |
| 5086 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5087 | CAN_BUILD_64=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5088 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5090 | fi |
| 5091 | ;; |
| 5092 | *-*ibm-openedition*|*-*-os390*) |
| 5093 | CFLAGS="${CFLAGS} -Wc,lp64" |
| 5094 | CXXFLAGS="${CXXFLAGS} -Wc,lp64" |
| 5095 | LDFLAGS="${LDFLAGS} -Wl,lp64" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5097 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5098 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
| 5099 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5100 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5101 | CAN_BUILD_64=yes |
| 5102 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5103 | CAN_BUILD_64=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5104 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5106 | ;; |
| 5107 | *) |
| 5108 | # unknown platform. |
| 5109 | ;; |
| 5110 | esac |
| 5111 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5113 | $as_echo "$CAN_BUILD_64" >&6; } |
| 5114 | if test "$CAN_BUILD_64" = yes; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5116 | $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; } |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5117 | if test "$cross_compiling" = yes; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5118 | BITS_RUN_64=unknown |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5119 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5121 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5122 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5123 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5124 | if ac_fn_c_try_run "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5125 | BITS_RUN_64=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5126 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5127 | BITS_RUN_64=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5128 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5129 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5130 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5131 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5132 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5134 | $as_echo "$BITS_RUN_64" >&6; }; |
| 5135 | |
| 5136 | CFLAGS_64="${CFLAGS}" |
| 5137 | CXXFLAGS_64="${CXXFLAGS}" |
| 5138 | LDFLAGS_64="${LDFLAGS}" |
| 5139 | ARFLAGS_64="${ARFLAGS}" |
| 5140 | fi |
| 5141 | # put it back. |
| 5142 | CFLAGS="${CFLAGS_OLD}" |
| 5143 | CXXFLAGS="${CXXFLAGS_OLD}" |
| 5144 | LDFLAGS="${LDFLAGS_OLD}" |
| 5145 | ARFLAGS="${ARFLAGS_OLD}" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5146 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5147 | if test "$BITS_CHECK_32" = "yes"; then |
| 5148 | # see comment under 'if BITS_CHECK_64', above. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5150 | $as_echo_n "checking how to build 32-bit executables... " >&6; } |
| 5151 | if test "$GCC" = yes; then |
| 5152 | CFLAGS="${CFLAGS} -m32" |
| 5153 | CXXFLAGS="${CXXFLAGS} -m32" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5155 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5156 | int main(void) {return (sizeof(void*)*8==32)?0:1;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5157 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5158 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5159 | CAN_BUILD_32=yes |
| 5160 | else |
| 5161 | CAN_BUILD_32=no |
| 5162 | fi |
| 5163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5164 | fi |
| 5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5 |
| 5166 | $as_echo "$CAN_BUILD_32" >&6; } |
| 5167 | if test "$CAN_BUILD_32" = yes; then |
| 5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5 |
| 5169 | $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; } |
| 5170 | if test "$cross_compiling" = yes; then : |
| 5171 | BITS_RUN_32=unknown |
| 5172 | else |
| 5173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5174 | /* end confdefs.h. */ |
| 5175 | int main(void) {return (sizeof(void*)*8==32)?0:1;} |
| 5176 | _ACEOF |
| 5177 | if ac_fn_c_try_run "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5178 | BITS_RUN_32=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5179 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5180 | BITS_RUN_32=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5181 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5182 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5183 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5184 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5185 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5187 | $as_echo "$BITS_RUN_32" >&6; }; |
| 5188 | CFLAGS_32="${CFLAGS}" |
| 5189 | CXXFLAGS_32="${CXXFLAGS}" |
| 5190 | LDFLAGS_32="${LDFLAGS}" |
| 5191 | ARFLAGS_32="${ARFLAGS}" |
| 5192 | fi |
| 5193 | # put it back. |
| 5194 | CFLAGS="${CFLAGS_OLD}" |
| 5195 | CXXFLAGS="${CXXFLAGS_OLD}" |
| 5196 | LDFLAGS="${LDFLAGS_OLD}" |
| 5197 | ARFLAGS="${ARFLAGS_OLD}" |
| 5198 | fi |
| 5199 | |
| 5200 | ## |
| 5201 | # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do. |
| 5202 | # |
| 5203 | |
| 5204 | # First, implement 64else32 |
| 5205 | if test "$BITS_REQ" = "64else32"; then |
| 5206 | if test "$BITS_RUN_64" = "yes"; then |
| 5207 | BITS_REQ=64 |
| 5208 | else |
| 5209 | # no changes. |
| 5210 | BITS_OK=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5211 | fi |
| 5212 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5213 | |
| 5214 | # implement. |
| 5215 | if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then |
| 5216 | CFLAGS="${CFLAGS_32}" |
| 5217 | CXXFLAGS="${CXXFLAGS_32}" |
| 5218 | LDFLAGS="${LDFLAGS_32}" |
| 5219 | ARFLAGS="${ARFLAGS_32}" |
| 5220 | BITS_OK=yes |
| 5221 | elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then |
| 5222 | CFLAGS="${CFLAGS_64}" |
| 5223 | CXXFLAGS="${CXXFLAGS_64}" |
| 5224 | LDFLAGS="${LDFLAGS_64}" |
| 5225 | ARFLAGS="${ARFLAGS_64}" |
| 5226 | BITS_OK=yes |
| 5227 | elif test "$BITS_OK" != "yes"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5228 | 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 Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5229 | fi |
| 5230 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5231 | |
| 5232 | |
| 5233 | |
| 5234 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5235 | # Determine the Makefile fragment |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5236 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5238 | $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5239 | if ${icu_cv_host_frag+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5240 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5241 | else |
| 5242 | |
| 5243 | case "${host}" in |
| 5244 | *-*-solaris*) |
| 5245 | if test "$GCC" = yes; then |
| 5246 | icu_cv_host_frag=mh-solaris-gcc |
| 5247 | else |
| 5248 | icu_cv_host_frag=mh-solaris |
| 5249 | fi ;; |
| 5250 | alpha*-*-linux-gnu) |
| 5251 | if test "$GCC" = yes; then |
| 5252 | icu_cv_host_frag=mh-alpha-linux-gcc |
| 5253 | else |
| 5254 | icu_cv_host_frag=mh-alpha-linux-cc |
| 5255 | fi ;; |
| 5256 | powerpc*-*-linux*) |
| 5257 | if test "$GCC" = yes; then |
| 5258 | icu_cv_host_frag=mh-linux |
| 5259 | else |
| 5260 | icu_cv_host_frag=mh-linux-va |
| 5261 | fi ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5262 | *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5263 | i[34567]86-*-cygwin) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5264 | if test "$GCC" = yes; then |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5265 | icu_cv_host_frag=mh-cygwin |
| 5266 | else |
| 5267 | icu_cv_host_frag=mh-cygwin-msvc |
| 5268 | fi ;; |
| 5269 | x86_64-*-cygwin) |
| 5270 | if test "$GCC" = yes; then |
| 5271 | icu_cv_host_frag=mh-cygwin64 |
| 5272 | else |
| 5273 | icu_cv_host_frag=mh-cygwin-msvc |
| 5274 | fi ;; |
| 5275 | *-*-mingw*) |
| 5276 | if test "$GCC" = yes; then |
| 5277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Craig Cornelius | 8393335 | 2013-06-14 14:20:29 -0700 | [diff] [blame] | 5278 | /* end confdefs.h. */ |
| 5279 | |
| 5280 | #ifndef __MINGW64__ |
| 5281 | #error This is not MinGW64 |
| 5282 | #endif |
| 5283 | int |
| 5284 | main () |
| 5285 | { |
| 5286 | |
| 5287 | ; |
| 5288 | return 0; |
| 5289 | } |
| 5290 | _ACEOF |
| 5291 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5292 | icu_cv_host_frag=mh-mingw64 |
| 5293 | else |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5294 | icu_cv_host_frag=mh-mingw |
Craig Cornelius | 8393335 | 2013-06-14 14:20:29 -0700 | [diff] [blame] | 5295 | fi |
| 5296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5297 | else |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5298 | case "${host}" in |
| 5299 | *-*-mingw*) icu_cv_host_frag=mh-msys-msvc ;; |
| 5300 | *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;; |
| 5301 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5302 | fi ;; |
| 5303 | *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; |
| 5304 | *-*-aix*) |
| 5305 | if test "$GCC" = yes; then |
| 5306 | icu_cv_host_frag=mh-aix-gcc |
| 5307 | else |
| 5308 | icu_cv_host_frag=mh-aix-va |
| 5309 | fi ;; |
| 5310 | *-*-hpux*) |
| 5311 | if test "$GCC" = yes; then |
| 5312 | icu_cv_host_frag=mh-hpux-gcc |
| 5313 | else |
| 5314 | case "$CXX" in |
| 5315 | *aCC) icu_cv_host_frag=mh-hpux-acc ;; |
| 5316 | esac |
| 5317 | fi ;; |
| 5318 | *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; |
| 5319 | *-*-os400*) icu_cv_host_frag=mh-os400 ;; |
| 5320 | *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; |
| 5321 | *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5322 | *-*-beos) icu_cv_host_frag=mh-beos ;; |
| 5323 | *-*-haiku) icu_cv_host_frag=mh-haiku ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5324 | *-*-irix*) icu_cv_host_frag=mh-irix ;; |
| 5325 | *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; |
| 5326 | *-*-nto*) icu_cv_host_frag=mh-qnx ;; |
| 5327 | *-ncr-*) icu_cv_host_frag=mh-mpras ;; |
| 5328 | *) icu_cv_host_frag=mh-unknown ;; |
| 5329 | esac |
| 5330 | |
| 5331 | |
| 5332 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5334 | $as_echo "$icu_cv_host_frag" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5335 | |
| 5336 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5337 | # Checks for libraries and other host specific stuff |
| 5338 | # On HP/UX, don't link to -lm from a shared lib because it isn't |
| 5339 | # PIC (at least on 10.2) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5340 | case "${host}" in |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5341 | *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5342 | $as_echo_n "checking for floor in -lm... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5343 | if ${ac_cv_lib_m_floor+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5344 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5345 | else |
| 5346 | ac_check_lib_save_LIBS=$LIBS |
| 5347 | LIBS="-lm $LIBS" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5349 | /* end confdefs.h. */ |
| 5350 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5351 | /* Override any GCC internal prototype to avoid an error. |
| 5352 | Use char because int might match the return type of a GCC |
| 5353 | builtin and then its argument prototype would still apply. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5354 | #ifdef __cplusplus |
| 5355 | extern "C" |
| 5356 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5357 | char floor (); |
| 5358 | int |
| 5359 | main () |
| 5360 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5361 | return floor (); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5362 | ; |
| 5363 | return 0; |
| 5364 | } |
| 5365 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5366 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5367 | ac_cv_lib_m_floor=yes |
| 5368 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5369 | ac_cv_lib_m_floor=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5370 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5371 | rm -f core conftest.err conftest.$ac_objext \ |
| 5372 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5373 | LIBS=$ac_check_lib_save_LIBS |
| 5374 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5376 | $as_echo "$ac_cv_lib_m_floor" >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5377 | if test "x$ac_cv_lib_m_floor" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5378 | LIB_M="-lm" |
| 5379 | fi |
| 5380 | ;; |
| 5381 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5382 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5383 | $as_echo_n "checking for floor in -lm... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5384 | if ${ac_cv_lib_m_floor+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5385 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5386 | else |
| 5387 | ac_check_lib_save_LIBS=$LIBS |
| 5388 | LIBS="-lm $LIBS" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5390 | /* end confdefs.h. */ |
| 5391 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5392 | /* Override any GCC internal prototype to avoid an error. |
| 5393 | Use char because int might match the return type of a GCC |
| 5394 | builtin and then its argument prototype would still apply. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5395 | #ifdef __cplusplus |
| 5396 | extern "C" |
| 5397 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5398 | char floor (); |
| 5399 | int |
| 5400 | main () |
| 5401 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5402 | return floor (); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5403 | ; |
| 5404 | return 0; |
| 5405 | } |
| 5406 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5407 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5408 | ac_cv_lib_m_floor=yes |
| 5409 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5410 | ac_cv_lib_m_floor=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5411 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5412 | rm -f core conftest.err conftest.$ac_objext \ |
| 5413 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5414 | LIBS=$ac_check_lib_save_LIBS |
| 5415 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5417 | $as_echo "$ac_cv_lib_m_floor" >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5418 | if test "x$ac_cv_lib_m_floor" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5419 | cat >>confdefs.h <<_ACEOF |
| 5420 | #define HAVE_LIBM 1 |
| 5421 | _ACEOF |
| 5422 | |
| 5423 | LIBS="-lm $LIBS" |
| 5424 | |
| 5425 | fi |
| 5426 | |
| 5427 | LIB_M="" ;; |
| 5428 | esac |
| 5429 | |
| 5430 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5431 | # Check whether to build shared libraries |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5433 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5434 | enabled=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5435 | # Check whether --enable-shared was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5436 | if test "${enable_shared+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5437 | enableval=$enable_shared; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5438 | yes|"") enabled=yes; ENABLE_SHARED=YES ;; |
| 5439 | no);; |
| 5440 | *) ;; |
| 5441 | esac |
| 5442 | else |
| 5443 | enabled=yes; ENABLE_SHARED=YES |
| 5444 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5445 | fi |
| 5446 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5448 | $as_echo "$enabled" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5449 | |
| 5450 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5451 | # Check whether to build static libraries |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5453 | $as_echo_n "checking whether to build static libraries... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5454 | enabled=no |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5455 | # Check whether --enable-static was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5456 | if test "${enable_static+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5457 | enableval=$enable_static; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5458 | yes|"") enabled=yes; ENABLE_STATIC=YES ;; |
| 5459 | no) ;; |
| 5460 | *) ;; |
| 5461 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5462 | fi |
| 5463 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5465 | $as_echo "$enabled" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5466 | |
| 5467 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5468 | # When building release static library, there might be some optimization flags we can use |
| 5469 | if test "$ENABLE_STATIC" = "YES"; then |
| 5470 | if test "$ENABLE_SHARED" != "YES"; then |
| 5471 | if test "$ENABLE_RELEASE" = 1; then |
| 5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5 |
| 5473 | $as_echo_n "checking whether we can use static library optimization option... " >&6; } |
| 5474 | CHECK_STATIC_OPT_FLAG=no |
| 5475 | |
| 5476 | OLD_CPPFLAGS="${CPPFLAGS}" |
| 5477 | OLD_LDFLAGS="${LDFLAGS}" |
| 5478 | |
| 5479 | case "${host}" in |
| 5480 | *-linux*|i*86-*-*bsd*|i*86-pc-gnu) |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 5481 | if test "$GCC" = yes; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5482 | CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections" |
| 5483 | LDFLAGS="${LDFLAGS} -Wl,--gc-sections" |
| 5484 | fi |
| 5485 | ;; |
| 5486 | *) |
| 5487 | ;; |
| 5488 | esac |
| 5489 | |
| 5490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5491 | /* end confdefs.h. */ |
| 5492 | |
| 5493 | int |
| 5494 | main () |
| 5495 | { |
| 5496 | |
| 5497 | ; |
| 5498 | return 0; |
| 5499 | } |
| 5500 | _ACEOF |
| 5501 | if ac_fn_c_try_link "$LINENO"; then : |
| 5502 | CHECK_STATIC_OPT_FLAG=yes |
| 5503 | else |
| 5504 | CHECK_STATIC_OPT_FLAG=no |
| 5505 | fi |
| 5506 | rm -f core conftest.err conftest.$ac_objext \ |
| 5507 | conftest$ac_exeext conftest.$ac_ext |
| 5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5 |
| 5509 | $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; } |
| 5510 | if test "$CHECK_STATIC_OPT_FLAG" = no; then |
| 5511 | CPPFLAGS="${OLD_CPPFLAGS}" |
| 5512 | LDFLAGS="${OLD_LDFLAGS}" |
| 5513 | fi |
| 5514 | fi |
| 5515 | fi |
| 5516 | fi |
| 5517 | |
| 5518 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5519 | # Check whether to enable auto cleanup of libraries |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5521 | $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; } |
| 5522 | enabled=no |
| 5523 | UCLN_NO_AUTO_CLEANUP=1 |
| 5524 | # Check whether --enable-auto-cleanup was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5525 | if test "${enable_auto_cleanup+set}" = set; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5526 | enableval=$enable_auto_cleanup; case "${enableval}" in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5527 | yes) enabled=yes; |
| 5528 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0"; |
| 5529 | UCLN_NO_AUTO_CLEANUP=0 |
| 5530 | ;; |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5531 | *) ;; |
| 5532 | esac |
| 5533 | fi |
| 5534 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5536 | $as_echo "$enabled" >&6; } |
| 5537 | |
| 5538 | |
| 5539 | # MSVC floating-point option |
| 5540 | MSVC_RELEASE_FLAG="" |
| 5541 | if test $enabled = yes |
| 5542 | then |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5543 | if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5544 | then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5546 | /* end confdefs.h. */ |
| 5547 | |
| 5548 | #if defined _MSC_VER && _MSC_VER >= 1400 |
| 5549 | #else |
| 5550 | Microsoft Visual C++ < 2005 |
| 5551 | #endif |
| 5552 | |
| 5553 | int |
| 5554 | main () |
| 5555 | { |
| 5556 | |
| 5557 | ; |
| 5558 | return 0; |
| 5559 | } |
| 5560 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5561 | if ac_fn_c_try_compile "$LINENO"; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5562 | MSVC_RELEASE_FLAG="/fp:precise" |
| 5563 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5564 | MSVC_RELEASE_FLAG="/Op" |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5565 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5567 | |
| 5568 | CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}" |
| 5569 | CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}" |
| 5570 | fi |
| 5571 | fi |
| 5572 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5573 | # Check whether to enabled draft APIs |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5575 | $as_echo_n "checking whether to enable draft APIs... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5576 | enabled=yes |
| 5577 | U_DEFAULT_SHOW_DRAFT=1 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5578 | # Check whether --enable-draft was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5579 | if test "${enable_draft+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5580 | enableval=$enable_draft; case "${enableval}" in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5581 | no) enabled=no; U_DEFAULT_SHOW_DRAFT=0; |
| 5582 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0" |
| 5583 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5584 | *) ;; |
| 5585 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5586 | fi |
| 5587 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5589 | $as_echo "$enabled" >&6; } |
| 5590 | # Make sure that we can use draft API in ICU. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5591 | if test "$U_DEFAULT_SHOW_DRAFT" = 0; then |
Fredrik Roubert | ffdc27e | 2017-11-27 19:42:42 +0100 | [diff] [blame] | 5592 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5593 | fi |
| 5594 | |
| 5595 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5596 | if test -n "$ac_tool_prefix"; then |
| 5597 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5598 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5600 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5601 | if ${ac_cv_prog_RANLIB+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5602 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5603 | else |
| 5604 | if test -n "$RANLIB"; then |
| 5605 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5606 | else |
| 5607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5608 | for as_dir in $PATH |
| 5609 | do |
| 5610 | IFS=$as_save_IFS |
| 5611 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5612 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5614 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5616 | break 2 |
| 5617 | fi |
| 5618 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5619 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5620 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5621 | |
| 5622 | fi |
| 5623 | fi |
| 5624 | RANLIB=$ac_cv_prog_RANLIB |
| 5625 | if test -n "$RANLIB"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5627 | $as_echo "$RANLIB" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5628 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5630 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5631 | fi |
| 5632 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5633 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5634 | fi |
| 5635 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5636 | ac_ct_RANLIB=$RANLIB |
| 5637 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5638 | set dummy ranlib; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5640 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5641 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5642 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5643 | else |
| 5644 | if test -n "$ac_ct_RANLIB"; then |
| 5645 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5646 | else |
| 5647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5648 | for as_dir in $PATH |
| 5649 | do |
| 5650 | IFS=$as_save_IFS |
| 5651 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5652 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5654 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5656 | break 2 |
| 5657 | fi |
| 5658 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5659 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5660 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5661 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5662 | fi |
| 5663 | fi |
| 5664 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5665 | if test -n "$ac_ct_RANLIB"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5667 | $as_echo "$ac_ct_RANLIB" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5668 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5670 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5671 | fi |
| 5672 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5673 | if test "x$ac_ct_RANLIB" = x; then |
| 5674 | RANLIB=":" |
| 5675 | else |
| 5676 | case $cross_compiling:$ac_tool_warned in |
| 5677 | yes:) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5679 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5680 | ac_tool_warned=yes ;; |
| 5681 | esac |
| 5682 | RANLIB=$ac_ct_RANLIB |
| 5683 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5684 | else |
| 5685 | RANLIB="$ac_cv_prog_RANLIB" |
| 5686 | fi |
| 5687 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5688 | |
Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 5689 | # need sed |
| 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 5691 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 5692 | if ${ac_cv_path_SED+:} false; then : |
| 5693 | $as_echo_n "(cached) " >&6 |
| 5694 | else |
| 5695 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5696 | for ac_i in 1 2 3 4 5 6 7; do |
| 5697 | ac_script="$ac_script$as_nl$ac_script" |
| 5698 | done |
| 5699 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5700 | { ac_script=; unset ac_script;} |
| 5701 | if test -z "$SED"; then |
| 5702 | ac_path_SED_found=false |
| 5703 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5705 | for as_dir in $PATH |
| 5706 | do |
| 5707 | IFS=$as_save_IFS |
| 5708 | test -z "$as_dir" && as_dir=. |
| 5709 | for ac_prog in sed gsed; do |
| 5710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5711 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 5712 | as_fn_executable_p "$ac_path_SED" || continue |
| 5713 | # Check for GNU ac_path_SED and select it if it is found. |
| 5714 | # Check for GNU $ac_path_SED |
| 5715 | case `"$ac_path_SED" --version 2>&1` in |
| 5716 | *GNU*) |
| 5717 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5718 | *) |
| 5719 | ac_count=0 |
| 5720 | $as_echo_n 0123456789 >"conftest.in" |
| 5721 | while : |
| 5722 | do |
| 5723 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5724 | mv "conftest.tmp" "conftest.in" |
| 5725 | cp "conftest.in" "conftest.nl" |
| 5726 | $as_echo '' >> "conftest.nl" |
| 5727 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5728 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5729 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5730 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5731 | # Best one so far, save it but keep looking for a better one |
| 5732 | ac_cv_path_SED="$ac_path_SED" |
| 5733 | ac_path_SED_max=$ac_count |
| 5734 | fi |
| 5735 | # 10*(2^10) chars as input seems more than enough |
| 5736 | test $ac_count -gt 10 && break |
| 5737 | done |
| 5738 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5739 | esac |
| 5740 | |
| 5741 | $ac_path_SED_found && break 3 |
| 5742 | done |
| 5743 | done |
| 5744 | done |
| 5745 | IFS=$as_save_IFS |
| 5746 | if test -z "$ac_cv_path_SED"; then |
| 5747 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5748 | fi |
| 5749 | else |
| 5750 | ac_cv_path_SED=$SED |
| 5751 | fi |
| 5752 | |
| 5753 | fi |
| 5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5755 | $as_echo "$ac_cv_path_SED" >&6; } |
| 5756 | SED="$ac_cv_path_SED" |
| 5757 | rm -f conftest.sed |
| 5758 | |
| 5759 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5760 | # look for 'ar' the proper way |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5761 | if test -n "$ac_tool_prefix"; then |
| 5762 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5763 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5765 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5766 | if ${ac_cv_prog_AR+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5767 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5768 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5769 | if test -n "$AR"; then |
| 5770 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5771 | else |
| 5772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5773 | for as_dir in $PATH |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5774 | do |
| 5775 | IFS=$as_save_IFS |
| 5776 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5777 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5779 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5781 | break 2 |
| 5782 | fi |
| 5783 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5784 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5785 | IFS=$as_save_IFS |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5786 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5787 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5788 | fi |
| 5789 | AR=$ac_cv_prog_AR |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5790 | if test -n "$AR"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5792 | $as_echo "$AR" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5793 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5795 | $as_echo "no" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5796 | fi |
| 5797 | |
| 5798 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5799 | fi |
| 5800 | if test -z "$ac_cv_prog_AR"; then |
| 5801 | ac_ct_AR=$AR |
| 5802 | # Extract the first word of "ar", so it can be a program name with args. |
| 5803 | set dummy ar; ac_word=$2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5805 | $as_echo_n "checking for $ac_word... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5806 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5807 | $as_echo_n "(cached) " >&6 |
| 5808 | else |
| 5809 | if test -n "$ac_ct_AR"; then |
| 5810 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5811 | else |
| 5812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5813 | for as_dir in $PATH |
| 5814 | do |
| 5815 | IFS=$as_save_IFS |
| 5816 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5817 | for ac_exec_ext in '' $ac_executable_extensions; do |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 5818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5819 | ac_cv_prog_ac_ct_AR="ar" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5821 | break 2 |
| 5822 | fi |
| 5823 | done |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5824 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5825 | IFS=$as_save_IFS |
| 5826 | |
| 5827 | fi |
| 5828 | fi |
| 5829 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5830 | if test -n "$ac_ct_AR"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5832 | $as_echo "$ac_ct_AR" >&6; } |
| 5833 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5835 | $as_echo "no" >&6; } |
| 5836 | fi |
| 5837 | |
| 5838 | if test "x$ac_ct_AR" = x; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5839 | AR="false" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5840 | else |
| 5841 | case $cross_compiling:$ac_tool_warned in |
| 5842 | yes:) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5844 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5845 | ac_tool_warned=yes ;; |
| 5846 | esac |
| 5847 | AR=$ac_ct_AR |
| 5848 | fi |
| 5849 | else |
| 5850 | AR="$ac_cv_prog_AR" |
| 5851 | fi |
| 5852 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5853 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5855 | $as_echo_n "checking whether to enable renaming of symbols... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5856 | enabled=yes |
| 5857 | U_DISABLE_RENAMING=0 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5858 | # Check whether --enable-renaming was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5859 | if test "${enable_renaming+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5860 | enableval=$enable_renaming; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5861 | yes|"") enabled=yes ;; |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5862 | no) enabled=no; U_DISABLE_RENAMING=1; |
| 5863 | UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1" |
| 5864 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5865 | *) ;; |
| 5866 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5867 | fi |
| 5868 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5870 | $as_echo "$enabled" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5871 | |
| 5872 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5874 | $as_echo_n "checking whether to enable function and data tracing... " >&6; } |
| 5875 | enabled=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5876 | U_ENABLE_TRACING=0 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5877 | # Check whether --enable-tracing was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5878 | if test "${enable_tracing+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5879 | enableval=$enable_tracing; case "${enableval}" in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5880 | yes|"") enabled=yes; |
| 5881 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1"; |
| 5882 | U_ENABLE_TRACING=1 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5883 | no) enabled=no; U_ENABLE_TRACING=0 ;; |
| 5884 | *) ;; |
| 5885 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5886 | fi |
| 5887 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 5889 | $as_echo "$enabled" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 5890 | |
| 5891 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 5892 | # check if elf.h is present. |
| 5893 | for ac_header in elf.h |
| 5894 | do : |
| 5895 | ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" |
| 5896 | if test "x$ac_cv_header_elf_h" = xyes; then : |
| 5897 | cat >>confdefs.h <<_ACEOF |
| 5898 | #define HAVE_ELF_H 1 |
| 5899 | _ACEOF |
| 5900 | |
| 5901 | fi |
| 5902 | |
| 5903 | done |
| 5904 | |
| 5905 | if test "x$ac_cv_header_elf_h" = "xyes"; then |
| 5906 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1"; |
| 5907 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5908 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 5909 | # Enable/disable plugins |
| 5910 | # Check whether --enable-plugins was given. |
| 5911 | if test "${enable_plugins+set}" = set; then : |
| 5912 | enableval=$enable_plugins; case "${enableval}" in |
| 5913 | yes) plugins=true ;; |
| 5914 | no) plugins=false ;; |
| 5915 | *) as_fn_error $? "bad value ${enableval} for --enable-plugins" "$LINENO" 5 ;; |
| 5916 | esac |
| 5917 | else |
| 5918 | plugins=false |
| 5919 | fi |
| 5920 | |
| 5921 | |
| 5922 | |
| 5923 | if test "$plugins" = true; then |
| 5924 | PLUGINS_TRUE= |
| 5925 | U_HAVE_PLUGINS=1 |
| 5926 | else |
| 5927 | PLUGINS_TRUE='#' |
| 5928 | U_HAVE_PLUGINS=0 |
| 5929 | fi |
| 5930 | |
| 5931 | if test "x$plugins" = "xtrue"; then |
| 5932 | UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1" |
| 5933 | fi |
| 5934 | |
| 5935 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5936 | U_ENABLE_DYLOAD=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5937 | enable=yes |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins. Ignored if plugins disabled." >&5 |
| 5939 | $as_echo_n "checking whether to enable dynamic loading of plugins. Ignored if plugins disabled.... " >&6; } |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5940 | # Check whether --enable-dyload was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5941 | if test "${enable_dyload+set}" = set; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5942 | enableval=$enable_dyload; case "${enableval}" in |
| 5943 | yes|"") |
| 5944 | U_ENABLE_DYLOAD=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5945 | enable=yes |
| 5946 | ;; |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5947 | no) |
| 5948 | U_ENABLE_DYLOAD=0; |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5949 | enable=no; |
| 5950 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0"; |
| 5951 | ;; |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5952 | *) ;; |
| 5953 | esac |
| 5954 | fi |
| 5955 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5 |
| 5957 | $as_echo "$enable" >&6; } |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5958 | |
| 5959 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5960 | if test "$enable" = "yes"; then |
| 5961 | for ac_header in dlfcn.h |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5962 | do : |
| 5963 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5964 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5965 | cat >>confdefs.h <<_ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5966 | #define HAVE_DLFCN_H 1 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5967 | _ACEOF |
| 5968 | |
| 5969 | fi |
| 5970 | |
| 5971 | done |
| 5972 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5973 | #AC_MSG_RESULT($enabled) |
| 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5975 | $as_echo_n "checking for library containing dlopen... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 5976 | if ${ac_cv_search_dlopen+:} false; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5977 | $as_echo_n "(cached) " >&6 |
| 5978 | else |
| 5979 | ac_func_search_save_LIBS=$LIBS |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 5980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 5981 | /* end confdefs.h. */ |
| 5982 | |
| 5983 | /* Override any GCC internal prototype to avoid an error. |
| 5984 | Use char because int might match the return type of a GCC |
| 5985 | builtin and then its argument prototype would still apply. */ |
| 5986 | #ifdef __cplusplus |
| 5987 | extern "C" |
| 5988 | #endif |
| 5989 | char dlopen (); |
| 5990 | int |
| 5991 | main () |
| 5992 | { |
| 5993 | return dlopen (); |
| 5994 | ; |
| 5995 | return 0; |
| 5996 | } |
| 5997 | _ACEOF |
| 5998 | for ac_lib in '' dl; do |
| 5999 | if test -z "$ac_lib"; then |
| 6000 | ac_res="none required" |
| 6001 | else |
| 6002 | ac_res=-l$ac_lib |
| 6003 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6004 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6005 | if ac_fn_c_try_link "$LINENO"; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6006 | ac_cv_search_dlopen=$ac_res |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6007 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6008 | rm -f core conftest.err conftest.$ac_objext \ |
| 6009 | conftest$ac_exeext |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6010 | if ${ac_cv_search_dlopen+:} false; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6011 | break |
| 6012 | fi |
| 6013 | done |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6014 | if ${ac_cv_search_dlopen+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6015 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6016 | else |
| 6017 | ac_cv_search_dlopen=no |
| 6018 | fi |
| 6019 | rm conftest.$ac_ext |
| 6020 | LIBS=$ac_func_search_save_LIBS |
| 6021 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6023 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 6024 | ac_res=$ac_cv_search_dlopen |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6025 | if test "$ac_res" != no; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6026 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 6027 | |
| 6028 | fi |
| 6029 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6030 | for ac_func in dlopen |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6031 | do : |
| 6032 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6033 | if test "x$ac_cv_func_dlopen" = xyes; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6034 | cat >>confdefs.h <<_ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6035 | #define HAVE_DLOPEN 1 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6036 | _ACEOF |
| 6037 | |
| 6038 | fi |
| 6039 | done |
| 6040 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6041 | |
| 6042 | if test "x$ac_cv_func_dlopen" != xyes; then |
| 6043 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0" |
| 6044 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6045 | fi |
| 6046 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6047 | # Check for miscellanous functions. |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6048 | # So, use for putil / tools only. |
| 6049 | # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6050 | for ac_func in gettimeofday |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6051 | do : |
| 6052 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6053 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6054 | cat >>confdefs.h <<_ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6055 | #define HAVE_GETTIMEOFDAY 1 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6056 | _ACEOF |
| 6057 | |
| 6058 | fi |
| 6059 | done |
| 6060 | |
| 6061 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6062 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6063 | # Check whether to use the evil rpath or not |
| 6064 | # Check whether --enable-rpath was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6065 | if test "${enable_rpath+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6066 | enableval=$enable_rpath; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6067 | yes|"") ENABLE_RPATH=YES ;; |
| 6068 | no) ;; |
| 6069 | *) ;; |
| 6070 | esac |
| 6071 | else |
| 6072 | ENABLE_RPATH=NO |
| 6073 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6074 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6075 | |
| 6076 | |
| 6077 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6078 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6079 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6080 | ac_ext=cpp |
| 6081 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6082 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6083 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6084 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6085 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6087 | $as_echo_n "checking if we have a C++ compiler... " >&6; } |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6089 | /* end confdefs.h. */ |
| 6090 | |
| 6091 | int |
| 6092 | main () |
| 6093 | { |
| 6094 | |
| 6095 | ; |
| 6096 | return 0; |
| 6097 | } |
| 6098 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6099 | if ac_fn_cxx_try_compile "$LINENO"; then : |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6100 | cxx_okay=yes |
| 6101 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6102 | cxx_okay=no |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6103 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6105 | if test $cxx_okay = yes |
| 6106 | then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5 |
| 6108 | $as_echo "Good" >&6; } |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6109 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6111 | $as_echo "no" >&6; } |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6112 | as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6113 | fi |
| 6114 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 6115 | if [ "$GXX" = yes ]; then |
Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 6116 | # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++11, |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 6117 | # and check that the compiler still works. |
| 6118 | if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then |
| 6119 | OLD_CXXFLAGS="${CXXFLAGS}" |
Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 6120 | CXXFLAGS="$CXXFLAGS -std=c++11" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5 |
| 6122 | $as_echo_n "checking if we have a C++11 compiler... " >&6; } |
| 6123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6124 | /* end confdefs.h. */ |
| 6125 | |
| 6126 | int |
| 6127 | main () |
| 6128 | { |
| 6129 | |
| 6130 | ; |
| 6131 | return 0; |
| 6132 | } |
| 6133 | _ACEOF |
| 6134 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6135 | cxx11_okay=yes |
| 6136 | else |
| 6137 | cxx11_okay=no |
| 6138 | fi |
| 6139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5 |
| 6141 | $as_echo "$cxx11_okay" >&6; } |
| 6142 | if [ $cxx11_okay = yes ]; then |
Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option -std=c++11" >&5 |
| 6144 | $as_echo "$as_me: Adding CXXFLAGS option -std=c++11" >&6;} |
| 6145 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -std=c++11" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 6146 | else |
| 6147 | CXXFLAGS="$OLD_CXXFLAGS" |
| 6148 | fi |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 6149 | case "${host}" in |
| 6150 | *-*-solaris*) |
| 6151 | CXXFLAGS="$OLD_CXXFLAGS" |
| 6152 | ;; |
| 6153 | esac |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 6154 | fi |
| 6155 | fi |
| 6156 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6157 | ac_ext=c |
| 6158 | ac_cpp='$CPP $CPPFLAGS' |
| 6159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6162 | |
| 6163 | |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 6164 | # Always build ICU with multi-threading support. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6165 | OLD_LIBS=${LIBS} |
| 6166 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6167 | # For Compaq Tru64 (OSF1), we must look for pthread_attr_init |
| 6168 | # and must do this before seaching for pthread_mutex_destroy, or |
| 6169 | # we will pick up libpthreads.so not libpthread.so |
| 6170 | # If this fails, then we must test for HPUX specials, before |
| 6171 | # moving on to a more generic test |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6172 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6174 | $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6175 | if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6176 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6177 | else |
| 6178 | ac_check_lib_save_LIBS=$LIBS |
| 6179 | LIBS="-lpthread $LIBS" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6181 | /* end confdefs.h. */ |
| 6182 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6183 | /* Override any GCC internal prototype to avoid an error. |
| 6184 | Use char because int might match the return type of a GCC |
| 6185 | builtin and then its argument prototype would still apply. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6186 | #ifdef __cplusplus |
| 6187 | extern "C" |
| 6188 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6189 | char pthread_attr_init (); |
| 6190 | int |
| 6191 | main () |
| 6192 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6193 | return pthread_attr_init (); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6194 | ; |
| 6195 | return 0; |
| 6196 | } |
| 6197 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6198 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6199 | ac_cv_lib_pthread_pthread_attr_init=yes |
| 6200 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6201 | ac_cv_lib_pthread_pthread_attr_init=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6202 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6203 | rm -f core conftest.err conftest.$ac_objext \ |
| 6204 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6205 | LIBS=$ac_check_lib_save_LIBS |
| 6206 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6208 | $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6209 | if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6210 | cat >>confdefs.h <<_ACEOF |
| 6211 | #define HAVE_LIBPTHREAD 1 |
| 6212 | _ACEOF |
| 6213 | |
| 6214 | LIBS="-lpthread $LIBS" |
| 6215 | |
| 6216 | fi |
| 6217 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6218 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then |
| 6219 | : |
| 6220 | else |
| 6221 | # Locate the right library for POSIX threads. We look for the |
| 6222 | # symbols in the libraries first, because on Solaris libc provides |
| 6223 | # pthread_create but libpthread has the real code :( |
| 6224 | # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread |
| 6225 | # FreeBSD users may need libpthread if they do not have libc_r. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6226 | |
| 6227 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6229 | $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6230 | if ${ac_cv_search_pthread_mutex_destroy+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6231 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6232 | else |
| 6233 | ac_func_search_save_LIBS="$LIBS" |
| 6234 | ac_cv_search_pthread_mutex_destroy="no" |
| 6235 | for i in pthread pthreads c_r ; do |
| 6236 | LIBS="-l$i $ac_func_search_save_LIBS" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6238 | /* end confdefs.h. */ |
| 6239 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6240 | /* Override any GCC internal prototype to avoid an error. |
| 6241 | Use char because int might match the return type of a GCC |
| 6242 | builtin and then its argument prototype would still apply. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6243 | #ifdef __cplusplus |
| 6244 | extern "C" |
| 6245 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6246 | char pthread_mutex_destroy (); |
| 6247 | int |
| 6248 | main () |
| 6249 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6250 | return pthread_mutex_destroy (); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6251 | ; |
| 6252 | return 0; |
| 6253 | } |
| 6254 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6255 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6256 | ac_cv_search_pthread_mutex_destroy="-l$i" |
| 6257 | break |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6258 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6259 | rm -f core conftest.err conftest.$ac_objext \ |
| 6260 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6261 | done |
| 6262 | if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6264 | /* end confdefs.h. */ |
| 6265 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6266 | /* Override any GCC internal prototype to avoid an error. |
| 6267 | Use char because int might match the return type of a GCC |
| 6268 | builtin and then its argument prototype would still apply. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6269 | #ifdef __cplusplus |
| 6270 | extern "C" |
| 6271 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6272 | char pthread_mutex_destroy (); |
| 6273 | int |
| 6274 | main () |
| 6275 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6276 | return pthread_mutex_destroy (); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6277 | ; |
| 6278 | return 0; |
| 6279 | } |
| 6280 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6281 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6282 | ac_cv_search_pthread_mutex_destroy="none required" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6283 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6284 | rm -f core conftest.err conftest.$ac_objext \ |
| 6285 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6286 | fi |
| 6287 | LIBS="$ac_func_search_save_LIBS" |
| 6288 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6290 | $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6291 | if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then |
| 6292 | test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" |
| 6293 | |
| 6294 | else : |
| 6295 | |
| 6296 | fi |
| 6297 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6298 | if test "$ac_cv_search_pthread_mutex_destroy" != no; then |
| 6299 | : |
| 6300 | else |
| 6301 | # For HP 11 |
| 6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6303 | $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6304 | if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6305 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6306 | else |
| 6307 | ac_check_lib_save_LIBS=$LIBS |
| 6308 | LIBS="-lpthread $LIBS" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6310 | /* end confdefs.h. */ |
| 6311 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6312 | /* Override any GCC internal prototype to avoid an error. |
| 6313 | Use char because int might match the return type of a GCC |
| 6314 | builtin and then its argument prototype would still apply. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6315 | #ifdef __cplusplus |
| 6316 | extern "C" |
| 6317 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6318 | char pthread_mutex_init (); |
| 6319 | int |
| 6320 | main () |
| 6321 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6322 | return pthread_mutex_init (); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6323 | ; |
| 6324 | return 0; |
| 6325 | } |
| 6326 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6327 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6328 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 6329 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6330 | ac_cv_lib_pthread_pthread_mutex_init=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6331 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6332 | rm -f core conftest.err conftest.$ac_objext \ |
| 6333 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6334 | LIBS=$ac_check_lib_save_LIBS |
| 6335 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6337 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6338 | if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6339 | cat >>confdefs.h <<_ACEOF |
| 6340 | #define HAVE_LIBPTHREAD 1 |
| 6341 | _ACEOF |
| 6342 | |
| 6343 | LIBS="-lpthread $LIBS" |
| 6344 | |
| 6345 | fi |
| 6346 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6347 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 6348 | : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6349 | fi |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6350 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6351 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6352 | ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6353 | if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6354 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6355 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6356 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6357 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6358 | if test $ac_cv_func_pthread_mutex_lock = yes; then |
| 6359 | : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6360 | fi |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6361 | fi |
| 6362 | # Check to see if we are using CygWin with MSVC |
| 6363 | case "${host}" in |
| 6364 | *-pc-cygwin*|*-pc-mingw*) |
| 6365 | # For gcc, the thread options are set by mh-mingw/mh-cygwin |
| 6366 | # For msvc, the thread options are set by runConfigureICU |
| 6367 | : |
| 6368 | ;; |
| 6369 | *-*-hpux*) |
| 6370 | # Add -mt because it does several nice things on newer compilers. |
| 6371 | case "${icu_cv_host_frag}" in |
| 6372 | mh-hpux-acc) |
| 6373 | OLD_CXXFLAGS="${CXXFLAGS}" |
| 6374 | CXXFLAGS="${CXXFLAGS} -mt" |
| 6375 | if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then |
| 6376 | CXXFLAGS="${OLD_CXXFLAGS}" |
| 6377 | else |
| 6378 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt" |
| 6379 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6380 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6381 | esac |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6382 | ;; |
| 6383 | *-*-solaris*) |
| 6384 | case "${icu_cv_host_frag}" in |
| 6385 | mh-solaris) |
| 6386 | LIBS="${LIBS} -mt" |
| 6387 | ;; |
| 6388 | esac |
| 6389 | ;; |
| 6390 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6391 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6392 | # Check whether --enable-weak-threads was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6393 | if test "${enable_weak_threads+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6394 | enableval=$enable_weak_threads; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6395 | yes) |
| 6396 | LIB_THREAD="${LIBS%${OLD_LIBS}}" |
| 6397 | LIBS=${OLD_LIBS} |
| 6398 | ;; |
| 6399 | no) ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6400 | *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6401 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6402 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6403 | |
| 6404 | |
| 6405 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6406 | # Check for mmap() |
| 6407 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6408 | # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. |
| 6409 | # Do this check instead. |
| 6410 | HAVE_MMAP=0 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6412 | $as_echo_n "checking for mmap... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6413 | if ${ac_cv_func_mmap_ok+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6414 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6415 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6417 | /* end confdefs.h. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6418 | #include <unistd.h> |
| 6419 | #include <sys/mman.h> |
| 6420 | #include <sys/stat.h> |
| 6421 | #include <fcntl.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6422 | int |
| 6423 | main () |
| 6424 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6425 | mmap((void *)0, 0, PROT_READ, 0, 0, 0); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6426 | ; |
| 6427 | return 0; |
| 6428 | } |
| 6429 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6430 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6431 | ac_cv_func_mmap_ok=yes |
| 6432 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6433 | ac_cv_func_mmap_ok=no |
| 6434 | fi |
| 6435 | rm -f core conftest.err conftest.$ac_objext \ |
| 6436 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6437 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6438 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6440 | $as_echo "$ac_cv_func_mmap_ok" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6441 | if test $ac_cv_func_mmap_ok = yes |
| 6442 | then |
| 6443 | HAVE_MMAP=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6444 | else |
| 6445 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6446 | fi |
| 6447 | |
| 6448 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6450 | $as_echo_n "checking for genccode assembly... " >&6; } |
| 6451 | |
| 6452 | # Check to see if genccode can generate simple assembly. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6453 | GENCCODE_ASSEMBLY= |
| 6454 | case "${host}" in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6455 | *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6456 | if test "$GCC" = yes; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6457 | # We're using gcc, and the simple -a gcc command line works for genccode |
| 6458 | GENCCODE_ASSEMBLY="-a gcc" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6459 | fi ;; |
| 6460 | i*86-*-solaris*) |
| 6461 | if test "$GCC" = yes; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6462 | # When using gcc, look if we're also using GNU as. |
| 6463 | # When using GNU as, the simple -a gcc command line works for genccode. |
| 6464 | asv=`"${CC}" -print-prog-name=as 2>/dev/null` |
| 6465 | asv=`"${asv}" --version 2>/dev/null` |
| 6466 | case "X${asv}" in |
| 6467 | X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;; |
| 6468 | X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; |
| 6469 | esac |
| 6470 | unset asv |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6471 | else |
| 6472 | GENCCODE_ASSEMBLY="-a sun-x86" |
| 6473 | fi ;; |
| 6474 | sparc-*-solaris*) |
| 6475 | GENCCODE_ASSEMBLY="-a sun" |
| 6476 | ;; |
| 6477 | ia64-*-hpux*) |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 6478 | # There has been some issues with building ICU data on HPUX ia64 aCC |
| 6479 | # when using the assemble code setting below. For now, build without |
| 6480 | # assemble code for this platform. This will increase the build time. |
| 6481 | # GENCCODE_ASSEMBLY="-a aCC-ia64" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6482 | ;; |
| 6483 | esac |
| 6484 | |
| 6485 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6487 | $as_echo "$GENCCODE_ASSEMBLY" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6488 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6489 | # Checks for header files |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6490 | for ac_header in inttypes.h |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6491 | do : |
| 6492 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6493 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6494 | cat >>confdefs.h <<_ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6495 | #define HAVE_INTTYPES_H 1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6496 | _ACEOF |
| 6497 | |
| 6498 | fi |
| 6499 | |
| 6500 | done |
| 6501 | |
| 6502 | if test $ac_cv_header_inttypes_h = no; then |
| 6503 | U_HAVE_INTTYPES_H=0 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6504 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6505 | else |
| 6506 | U_HAVE_INTTYPES_H=1 |
| 6507 | fi |
| 6508 | if test "$CC" = ccc; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6510 | $as_echo "\"C compiler set to CCC ${CC}\" " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6511 | case "${host}" in |
| 6512 | alpha*-*-*) U_HAVE_INTTYPES_H=0; |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6513 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6514 | esac |
| 6515 | fi |
| 6516 | |
| 6517 | |
| 6518 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6519 | for ac_header in dirent.h |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6520 | do : |
| 6521 | ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6522 | if test "x$ac_cv_header_dirent_h" = xyes; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6523 | cat >>confdefs.h <<_ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6524 | #define HAVE_DIRENT_H 1 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6525 | _ACEOF |
| 6526 | |
| 6527 | fi |
| 6528 | |
| 6529 | done |
| 6530 | |
| 6531 | if test $ac_cv_header_dirent_h = no; then |
| 6532 | U_HAVE_DIRENT_H=0 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6533 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6534 | else |
| 6535 | U_HAVE_DIRENT_H=1 |
| 6536 | fi |
| 6537 | |
| 6538 | |
| 6539 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6540 | # Check for endianness |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6542 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6543 | if ${ac_cv_c_bigendian+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6544 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6545 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6546 | ac_cv_c_bigendian=unknown |
| 6547 | # See if we're dealing with a universal compiler. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6549 | /* end confdefs.h. */ |
| 6550 | #ifndef __APPLE_CC__ |
| 6551 | not a universal capable compiler |
| 6552 | #endif |
| 6553 | typedef int dummy; |
| 6554 | |
| 6555 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6556 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6557 | |
| 6558 | # Check for potential -arch flags. It is not universal unless |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6559 | # there are at least two -arch flags with different values. |
| 6560 | ac_arch= |
| 6561 | ac_prev= |
| 6562 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 6563 | if test -n "$ac_prev"; then |
| 6564 | case $ac_word in |
| 6565 | i?86 | x86_64 | ppc | ppc64) |
| 6566 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 6567 | ac_arch=$ac_word |
| 6568 | else |
| 6569 | ac_cv_c_bigendian=universal |
| 6570 | break |
| 6571 | fi |
| 6572 | ;; |
| 6573 | esac |
| 6574 | ac_prev= |
| 6575 | elif test "x$ac_word" = "x-arch"; then |
| 6576 | ac_prev=arch |
| 6577 | fi |
| 6578 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6579 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6581 | if test $ac_cv_c_bigendian = unknown; then |
| 6582 | # See if sys/param.h defines the BYTE_ORDER macro. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6584 | /* end confdefs.h. */ |
| 6585 | #include <sys/types.h> |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6586 | #include <sys/param.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6587 | |
| 6588 | int |
| 6589 | main () |
| 6590 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6591 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 6592 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 6593 | && LITTLE_ENDIAN) |
| 6594 | bogus endian macros |
| 6595 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6596 | |
| 6597 | ; |
| 6598 | return 0; |
| 6599 | } |
| 6600 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6601 | if ac_fn_c_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6602 | # It does; now see whether it defined to BIG_ENDIAN or not. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6604 | /* end confdefs.h. */ |
| 6605 | #include <sys/types.h> |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6606 | #include <sys/param.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6607 | |
| 6608 | int |
| 6609 | main () |
| 6610 | { |
| 6611 | #if BYTE_ORDER != BIG_ENDIAN |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6612 | not big endian |
| 6613 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6614 | |
| 6615 | ; |
| 6616 | return 0; |
| 6617 | } |
| 6618 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6619 | if ac_fn_c_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6620 | ac_cv_c_bigendian=yes |
| 6621 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6622 | ac_cv_c_bigendian=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6623 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6625 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6627 | fi |
| 6628 | if test $ac_cv_c_bigendian = unknown; then |
| 6629 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6631 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6632 | #include <limits.h> |
| 6633 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6634 | int |
| 6635 | main () |
| 6636 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6637 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 6638 | bogus endian macros |
| 6639 | #endif |
| 6640 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6641 | ; |
| 6642 | return 0; |
| 6643 | } |
| 6644 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6645 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6646 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6648 | /* end confdefs.h. */ |
| 6649 | #include <limits.h> |
| 6650 | |
| 6651 | int |
| 6652 | main () |
| 6653 | { |
| 6654 | #ifndef _BIG_ENDIAN |
| 6655 | not big endian |
| 6656 | #endif |
| 6657 | |
| 6658 | ; |
| 6659 | return 0; |
| 6660 | } |
| 6661 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6662 | if ac_fn_c_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6663 | ac_cv_c_bigendian=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6664 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6665 | ac_cv_c_bigendian=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6666 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6668 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6670 | fi |
| 6671 | if test $ac_cv_c_bigendian = unknown; then |
| 6672 | # Compile a test program. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6673 | if test "$cross_compiling" = yes; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6674 | # Try to guess by grepping values from an object file. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6676 | /* end confdefs.h. */ |
| 6677 | short int ascii_mm[] = |
| 6678 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 6679 | short int ascii_ii[] = |
| 6680 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 6681 | int use_ascii (int i) { |
| 6682 | return ascii_mm[i] + ascii_ii[i]; |
| 6683 | } |
| 6684 | short int ebcdic_ii[] = |
| 6685 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 6686 | short int ebcdic_mm[] = |
| 6687 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 6688 | int use_ebcdic (int i) { |
| 6689 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 6690 | } |
| 6691 | extern int foo; |
| 6692 | |
| 6693 | int |
| 6694 | main () |
| 6695 | { |
| 6696 | return use_ascii (foo) == use_ebcdic (foo); |
| 6697 | ; |
| 6698 | return 0; |
| 6699 | } |
| 6700 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6701 | if ac_fn_c_try_compile "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6702 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 6703 | ac_cv_c_bigendian=yes |
| 6704 | fi |
| 6705 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 6706 | if test "$ac_cv_c_bigendian" = unknown; then |
| 6707 | ac_cv_c_bigendian=no |
| 6708 | else |
| 6709 | # finding both strings is unlikely to happen, but who knows? |
| 6710 | ac_cv_c_bigendian=unknown |
| 6711 | fi |
| 6712 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6713 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6715 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6717 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6718 | $ac_includes_default |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6719 | int |
| 6720 | main () |
| 6721 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6722 | |
| 6723 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6724 | union |
| 6725 | { |
| 6726 | long int l; |
| 6727 | char c[sizeof (long int)]; |
| 6728 | } u; |
| 6729 | u.l = 1; |
| 6730 | return u.c[sizeof (long int) - 1] == 1; |
| 6731 | |
| 6732 | ; |
| 6733 | return 0; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6734 | } |
| 6735 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6736 | if ac_fn_c_try_run "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6737 | ac_cv_c_bigendian=no |
| 6738 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6739 | ac_cv_c_bigendian=yes |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6740 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6741 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6742 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6743 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6744 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6745 | fi |
| 6746 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6748 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 6749 | case $ac_cv_c_bigendian in #( |
| 6750 | yes) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6751 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6752 | ;; #( |
| 6753 | no) |
| 6754 | ;; #( |
| 6755 | universal) |
| 6756 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6757 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6758 | |
| 6759 | ;; #( |
| 6760 | *) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6761 | as_fn_error $? "unknown endianness |
| 6762 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6763 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6764 | |
| 6765 | if test $ac_cv_c_bigendian = no; then |
| 6766 | U_IS_BIG_ENDIAN=0 |
| 6767 | U_ENDIAN_CHAR="l" |
| 6768 | else |
| 6769 | U_IS_BIG_ENDIAN=1 |
| 6770 | U_ENDIAN_CHAR="b" |
| 6771 | fi |
| 6772 | |
| 6773 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6774 | # Do various POSIX related checks |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6775 | U_HAVE_NL_LANGINFO_CODESET=0 |
| 6776 | U_NL_LANGINFO_CODESET=-1 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6777 | ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6778 | if test "x$ac_cv_func_nl_langinfo" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6779 | U_HAVE_NL_LANGINFO=1 |
| 6780 | else |
| 6781 | U_HAVE_NL_LANGINFO=0 |
| 6782 | fi |
| 6783 | |
| 6784 | if test $U_HAVE_NL_LANGINFO -eq 1; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6786 | $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6787 | if ${ac_cv_nl_langinfo_codeset+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6788 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6789 | else |
| 6790 | ac_cv_nl_langinfo_codeset="unknown" |
| 6791 | for a in CODESET _NL_CTYPE_CODESET_NAME; do |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6793 | /* end confdefs.h. */ |
| 6794 | #include <langinfo.h> |
| 6795 | int |
| 6796 | main () |
| 6797 | { |
| 6798 | nl_langinfo($a); |
| 6799 | ; |
| 6800 | return 0; |
| 6801 | } |
| 6802 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6803 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6804 | ac_cv_nl_langinfo_codeset="$a"; break |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6805 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6806 | rm -f core conftest.err conftest.$ac_objext \ |
| 6807 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6808 | done |
| 6809 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6811 | $as_echo "$ac_cv_nl_langinfo_codeset" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6812 | if test x$ac_cv_nl_langinfo_codeset != xunknown |
| 6813 | then |
| 6814 | U_HAVE_NL_LANGINFO_CODESET=1 |
| 6815 | U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6816 | if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET" |
| 6817 | then |
| 6818 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}" |
| 6819 | fi |
| 6820 | else |
| 6821 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6822 | fi |
| 6823 | fi |
| 6824 | |
| 6825 | |
| 6826 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6827 | # Namespace support checks |
| 6828 | ac_ext=cpp |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6829 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6833 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6835 | $as_echo_n "checking for namespace support... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6836 | if ${ac_cv_namespace_ok+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6837 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6838 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6840 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6841 | namespace x_version {void f(){}} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6842 | namespace x = x_version; |
| 6843 | using namespace x_version; |
| 6844 | |
| 6845 | int |
| 6846 | main () |
| 6847 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6848 | f(); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6849 | ; |
| 6850 | return 0; |
| 6851 | } |
| 6852 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6853 | if ac_fn_cxx_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6854 | ac_cv_namespace_ok=yes |
| 6855 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6856 | ac_cv_namespace_ok=no |
| 6857 | fi |
| 6858 | rm -f core conftest.err conftest.$ac_objext \ |
| 6859 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6860 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6861 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6863 | $as_echo "$ac_cv_namespace_ok" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6864 | if test $ac_cv_namespace_ok = no |
| 6865 | then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6866 | as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6867 | fi |
| 6868 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6870 | $as_echo_n "checking for properly overriding new and delete... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6871 | U_OVERRIDE_CXX_ALLOCATION=0 |
| 6872 | U_HAVE_PLACEMENT_NEW=0 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6873 | if ${ac_cv_override_cxx_allocation_ok+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6874 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6875 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6877 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6878 | #include <stdlib.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6879 | class UMemory { |
| 6880 | public: |
| 6881 | void *operator new(size_t size) {return malloc(size);} |
| 6882 | void *operator new[](size_t size) {return malloc(size);} |
| 6883 | void operator delete(void *p) {free(p);} |
| 6884 | void operator delete[](void *p) {free(p);} |
| 6885 | }; |
| 6886 | |
| 6887 | int |
| 6888 | main () |
| 6889 | { |
| 6890 | |
| 6891 | ; |
| 6892 | return 0; |
| 6893 | } |
| 6894 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6895 | if ac_fn_cxx_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6896 | ac_cv_override_cxx_allocation_ok=yes |
| 6897 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6898 | ac_cv_override_cxx_allocation_ok=no |
| 6899 | fi |
| 6900 | rm -f core conftest.err conftest.$ac_objext \ |
| 6901 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6902 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6903 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6905 | $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6906 | if test $ac_cv_override_cxx_allocation_ok = yes |
| 6907 | then |
| 6908 | U_OVERRIDE_CXX_ALLOCATION=1 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6910 | $as_echo_n "checking for placement new and delete... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6911 | if ${ac_cv_override_placement_new_ok+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6912 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6913 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6915 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6916 | #include <stdlib.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6917 | class UMemory { |
| 6918 | public: |
| 6919 | void *operator new(size_t size) {return malloc(size);} |
| 6920 | void *operator new[](size_t size) {return malloc(size);} |
| 6921 | void operator delete(void *p) {free(p);} |
| 6922 | void operator delete[](void *p) {free(p);} |
| 6923 | void * operator new(size_t, void *ptr) { return ptr; } |
| 6924 | void operator delete(void *, void *) {} |
| 6925 | }; |
| 6926 | |
| 6927 | int |
| 6928 | main () |
| 6929 | { |
| 6930 | |
| 6931 | ; |
| 6932 | return 0; |
| 6933 | } |
| 6934 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6935 | if ac_fn_cxx_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6936 | ac_cv_override_placement_new_ok=yes |
| 6937 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6938 | ac_cv_override_placement_new_ok=no |
| 6939 | fi |
| 6940 | rm -f core conftest.err conftest.$ac_objext \ |
| 6941 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6942 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6943 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6945 | $as_echo "$ac_cv_override_placement_new_ok" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6946 | if test $ac_cv_override_placement_new_ok = yes |
| 6947 | then |
| 6948 | U_HAVE_PLACEMENT_NEW=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6949 | else |
| 6950 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6951 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6952 | else |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6953 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0" |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6954 | fi |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6955 | |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 6956 | |
| 6957 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6958 | ac_ext=c |
| 6959 | ac_cpp='$CPP $CPPFLAGS' |
| 6960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6963 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6964 | ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6965 | if test "x$ac_cv_func_popen" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6966 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6967 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6968 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6969 | if test x$ac_cv_func_popen = xyes |
| 6970 | then |
| 6971 | U_HAVE_POPEN=1 |
| 6972 | else |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6973 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6974 | U_HAVE_POPEN=0 |
| 6975 | fi |
| 6976 | |
| 6977 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6978 | ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6979 | if test "x$ac_cv_func_tzset" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6980 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6981 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6982 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6983 | U_HAVE_TZSET=0 |
| 6984 | if test x$ac_cv_func_tzset = xyes |
| 6985 | then |
| 6986 | U_TZSET=tzset |
| 6987 | U_HAVE_TZSET=1 |
| 6988 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 6989 | ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6990 | if test "x$ac_cv_func__tzset" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6991 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6992 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 6993 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 6994 | if test x$ac_cv_func__tzset = xyes |
| 6995 | then |
| 6996 | U_TZSET=_tzset |
| 6997 | U_HAVE_TZSET=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 6998 | else |
| 6999 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7000 | fi |
| 7001 | fi |
| 7002 | |
| 7003 | |
| 7004 | |
| 7005 | U_HAVE_TZNAME=0 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7007 | $as_echo_n "checking for tzname... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7008 | if ${ac_cv_var_tzname+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7009 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7010 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7012 | /* end confdefs.h. */ |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7013 | #ifndef _XOPEN_SOURCE |
| 7014 | #define _XOPEN_SOURCE |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7015 | #endif |
| 7016 | #include <stdlib.h> |
| 7017 | #include <time.h> |
| 7018 | #ifndef tzname /* For SGI. */ |
| 7019 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 7020 | #endif |
| 7021 | int |
| 7022 | main () |
| 7023 | { |
| 7024 | atoi(*tzname); |
| 7025 | ; |
| 7026 | return 0; |
| 7027 | } |
| 7028 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7029 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7030 | ac_cv_var_tzname=yes |
| 7031 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7032 | ac_cv_var_tzname=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7033 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7034 | rm -f core conftest.err conftest.$ac_objext \ |
| 7035 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7036 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7038 | $as_echo "$ac_cv_var_tzname" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7039 | if test $ac_cv_var_tzname = yes; then |
| 7040 | U_TZNAME=tzname |
| 7041 | U_HAVE_TZNAME=1 |
| 7042 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7044 | $as_echo_n "checking for _tzname... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7045 | if ${ac_cv_var__tzname+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7046 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7047 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7049 | /* end confdefs.h. */ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7050 | #include <stdlib.h> |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7051 | #include <time.h> |
| 7052 | extern char *_tzname[]; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7053 | int |
| 7054 | main () |
| 7055 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7056 | atoi(*_tzname); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7057 | ; |
| 7058 | return 0; |
| 7059 | } |
| 7060 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7061 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7062 | ac_cv_var__tzname=yes |
| 7063 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7064 | ac_cv_var__tzname=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7065 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7066 | rm -f core conftest.err conftest.$ac_objext \ |
| 7067 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7068 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7070 | $as_echo "$ac_cv_var__tzname" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7071 | if test $ac_cv_var__tzname = yes; then |
| 7072 | U_TZNAME=_tzname |
| 7073 | U_HAVE_TZNAME=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7074 | else |
| 7075 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7076 | fi |
| 7077 | fi |
| 7078 | |
| 7079 | |
| 7080 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7082 | $as_echo_n "checking for timezone... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7083 | if ${ac_cv_var_timezone+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7084 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7085 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7087 | /* end confdefs.h. */ |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7088 | #ifndef _XOPEN_SOURCE |
| 7089 | #define _XOPEN_SOURCE |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7090 | #endif |
| 7091 | #include <time.h> |
| 7092 | |
| 7093 | int |
| 7094 | main () |
| 7095 | { |
| 7096 | timezone = 1; |
| 7097 | ; |
| 7098 | return 0; |
| 7099 | } |
| 7100 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7101 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7102 | ac_cv_var_timezone=yes |
| 7103 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7104 | ac_cv_var_timezone=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7105 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7106 | rm -f core conftest.err conftest.$ac_objext \ |
| 7107 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7108 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7110 | $as_echo "$ac_cv_var_timezone" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7111 | U_HAVE_TIMEZONE=0 |
| 7112 | if test $ac_cv_var_timezone = yes; then |
| 7113 | U_TIMEZONE=timezone |
| 7114 | U_HAVE_TIMEZONE=1 |
| 7115 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7117 | $as_echo_n "checking for __timezone... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7118 | if ${ac_cv_var___timezone+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7119 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7120 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7122 | /* end confdefs.h. */ |
| 7123 | #include <time.h> |
| 7124 | int |
| 7125 | main () |
| 7126 | { |
| 7127 | __timezone = 1; |
| 7128 | ; |
| 7129 | return 0; |
| 7130 | } |
| 7131 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7132 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7133 | ac_cv_var___timezone=yes |
| 7134 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7135 | ac_cv_var___timezone=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7136 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7137 | rm -f core conftest.err conftest.$ac_objext \ |
| 7138 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7139 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7141 | $as_echo "$ac_cv_var___timezone" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7142 | if test $ac_cv_var___timezone = yes; then |
| 7143 | U_TIMEZONE=__timezone |
| 7144 | U_HAVE_TIMEZONE=1 |
| 7145 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7147 | $as_echo_n "checking for _timezone... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7148 | if ${ac_cv_var__timezone+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7149 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7150 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7152 | /* end confdefs.h. */ |
| 7153 | #include <time.h> |
| 7154 | int |
| 7155 | main () |
| 7156 | { |
| 7157 | _timezone = 1; |
| 7158 | ; |
| 7159 | return 0; |
| 7160 | } |
| 7161 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7162 | if ac_fn_c_try_link "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7163 | ac_cv_var__timezone=yes |
| 7164 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7165 | ac_cv_var__timezone=no |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7166 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7167 | rm -f core conftest.err conftest.$ac_objext \ |
| 7168 | conftest$ac_exeext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7169 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7171 | $as_echo "$ac_cv_var__timezone" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7172 | if test $ac_cv_var__timezone = yes; then |
| 7173 | U_TIMEZONE=_timezone |
| 7174 | U_HAVE_TIMEZONE=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7175 | else |
| 7176 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7177 | fi |
| 7178 | fi |
| 7179 | fi |
| 7180 | |
| 7181 | |
| 7182 | |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7183 | ac_fn_c_check_func "$LINENO" "strtod_l" "ac_cv_func_strtod_l" |
| 7184 | if test "x$ac_cv_func_strtod_l" = xyes; then : |
| 7185 | |
| 7186 | fi |
| 7187 | |
| 7188 | if test x$ac_cv_func_strtod_l = xyes |
| 7189 | then |
Fredrik Roubert | ffdc27e | 2017-11-27 19:42:42 +0100 | [diff] [blame] | 7190 | U_HAVE_STRTOD_L=1 |
| 7191 | ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default" |
| 7192 | if test "x$ac_cv_header_xlocale_h" = xyes; then : |
| 7193 | |
| 7194 | fi |
| 7195 | |
| 7196 | |
| 7197 | if test "$ac_cv_header_xlocale_h" = yes; then |
| 7198 | U_HAVE_XLOCALE_H=1 |
| 7199 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1" |
| 7200 | else |
| 7201 | U_HAVE_XLOCALE_H=0 |
| 7202 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0" |
| 7203 | fi |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7204 | else |
Fredrik Roubert | ffdc27e | 2017-11-27 19:42:42 +0100 | [diff] [blame] | 7205 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0" |
| 7206 | U_HAVE_STRTOD_L=0 |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7207 | fi |
| 7208 | |
| 7209 | |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 7210 | # Check if C++17 std::string_view is available. |
| 7211 | ac_ext=cpp |
| 7212 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7213 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7214 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7215 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7216 | |
| 7217 | ac_fn_cxx_check_type "$LINENO" "std::string_view" "ac_cv_type_std__string_view" "#include <string_view> |
| 7218 | " |
| 7219 | if test "x$ac_cv_type_std__string_view" = xyes; then : |
| 7220 | |
| 7221 | fi |
| 7222 | |
| 7223 | if test "x$ac_cv_type_std__string_view" = xyes; then : |
| 7224 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRING_VIEW=1" |
| 7225 | fi |
| 7226 | ac_ext=c |
| 7227 | ac_cpp='$CPP $CPPFLAGS' |
| 7228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7231 | |
| 7232 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7233 | # Checks for typedefs |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7234 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7235 | if test "x$ac_cv_type_int8_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7236 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7237 | else |
| 7238 | |
| 7239 | cat >>confdefs.h <<_ACEOF |
| 7240 | #define int8_t signed char |
| 7241 | _ACEOF |
| 7242 | |
| 7243 | fi |
| 7244 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7245 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7246 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7247 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7248 | else |
| 7249 | |
| 7250 | cat >>confdefs.h <<_ACEOF |
| 7251 | #define uint8_t unsigned char |
| 7252 | _ACEOF |
| 7253 | |
| 7254 | fi |
| 7255 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7256 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7257 | if test "x$ac_cv_type_int16_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7258 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7259 | else |
| 7260 | |
| 7261 | cat >>confdefs.h <<_ACEOF |
| 7262 | #define int16_t signed short |
| 7263 | _ACEOF |
| 7264 | |
| 7265 | fi |
| 7266 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7267 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7268 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7269 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7270 | else |
| 7271 | |
| 7272 | cat >>confdefs.h <<_ACEOF |
| 7273 | #define uint16_t unsigned short |
| 7274 | _ACEOF |
| 7275 | |
| 7276 | fi |
| 7277 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7278 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7279 | if test "x$ac_cv_type_int32_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7280 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7281 | else |
| 7282 | |
| 7283 | cat >>confdefs.h <<_ACEOF |
| 7284 | #define int32_t signed long |
| 7285 | _ACEOF |
| 7286 | |
| 7287 | fi |
| 7288 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7289 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7290 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7291 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7292 | else |
| 7293 | |
| 7294 | cat >>confdefs.h <<_ACEOF |
| 7295 | #define uint32_t unsigned long |
| 7296 | _ACEOF |
| 7297 | |
| 7298 | fi |
| 7299 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7300 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7301 | if test "x$ac_cv_type_int64_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7302 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7303 | else |
| 7304 | |
| 7305 | cat >>confdefs.h <<_ACEOF |
| 7306 | #define int64_t signed long long |
| 7307 | _ACEOF |
| 7308 | |
| 7309 | fi |
| 7310 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7311 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7312 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7313 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7314 | else |
| 7315 | |
| 7316 | cat >>confdefs.h <<_ACEOF |
| 7317 | #define uint64_t unsigned long long |
| 7318 | _ACEOF |
| 7319 | |
| 7320 | fi |
| 7321 | |
| 7322 | |
| 7323 | if test $ac_cv_type_int8_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7324 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7325 | fi |
| 7326 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7327 | if test $ac_cv_type_uint8_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7328 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7329 | fi |
| 7330 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7331 | if test $ac_cv_type_int16_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7332 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7333 | fi |
| 7334 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7335 | if test $ac_cv_type_uint16_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7336 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7337 | fi |
| 7338 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7339 | if test $ac_cv_type_int32_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7340 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7341 | fi |
| 7342 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7343 | if test $ac_cv_type_uint32_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7344 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7345 | fi |
| 7346 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7347 | if test $ac_cv_type_int64_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7348 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7349 | fi |
| 7350 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7351 | if test $ac_cv_type_uint64_t = no; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7352 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7353 | fi |
| 7354 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7355 | # Do various wchar_t related checks |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7356 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7357 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7358 | |
| 7359 | fi |
| 7360 | |
| 7361 | |
| 7362 | if test "$ac_cv_header_wchar_h" = no |
| 7363 | then |
| 7364 | U_HAVE_WCHAR_H=0 |
| 7365 | U_HAVE_WCSCPY=0 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7366 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7367 | else |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7368 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7369 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7370 | |
| 7371 | U_HAVE_WCHAR_H=1 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7372 | # Some broken systems have wchar.h but not some of its functions... |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7374 | $as_echo_n "checking for library containing wcscpy... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7375 | if ${ac_cv_search_wcscpy+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7376 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7377 | else |
| 7378 | ac_func_search_save_LIBS=$LIBS |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7380 | /* end confdefs.h. */ |
| 7381 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7382 | /* Override any GCC internal prototype to avoid an error. |
| 7383 | Use char because int might match the return type of a GCC |
| 7384 | builtin and then its argument prototype would still apply. */ |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7385 | #ifdef __cplusplus |
| 7386 | extern "C" |
| 7387 | #endif |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7388 | char wcscpy (); |
| 7389 | int |
| 7390 | main () |
| 7391 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7392 | return wcscpy (); |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7393 | ; |
| 7394 | return 0; |
| 7395 | } |
| 7396 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7397 | for ac_lib in '' wcs w; do |
| 7398 | if test -z "$ac_lib"; then |
| 7399 | ac_res="none required" |
| 7400 | else |
| 7401 | ac_res=-l$ac_lib |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7402 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7403 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7404 | if ac_fn_c_try_link "$LINENO"; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7405 | ac_cv_search_wcscpy=$ac_res |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7406 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7407 | rm -f core conftest.err conftest.$ac_objext \ |
| 7408 | conftest$ac_exeext |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7409 | if ${ac_cv_search_wcscpy+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7410 | break |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7411 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7412 | done |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7413 | if ${ac_cv_search_wcscpy+:} false; then : |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7414 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7415 | else |
| 7416 | ac_cv_search_wcscpy=no |
| 7417 | fi |
| 7418 | rm conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7419 | LIBS=$ac_func_search_save_LIBS |
| 7420 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7422 | $as_echo "$ac_cv_search_wcscpy" >&6; } |
| 7423 | ac_res=$ac_cv_search_wcscpy |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7424 | if test "$ac_res" != no; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7425 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7426 | |
| 7427 | fi |
| 7428 | |
| 7429 | if test "$ac_cv_search_wcscpy" != no; then |
| 7430 | U_HAVE_WCSCPY=1 |
| 7431 | else |
| 7432 | U_HAVE_WCSCPY=0 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7433 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7434 | fi |
| 7435 | fi |
| 7436 | |
| 7437 | |
| 7438 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7439 | # The cast to long int works around a bug in the HP C Compiler |
| 7440 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7441 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7442 | # This bug is HP SR number 8606223364. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7444 | $as_echo_n "checking size of wchar_t... " >&6; } |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7445 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7446 | $as_echo_n "(cached) " >&6 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7447 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7448 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" " |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7449 | #if STDC_HEADERS |
| 7450 | #include <stddef.h> |
| 7451 | #endif |
| 7452 | #include <stdlib.h> |
| 7453 | #if HAVE_WCHAR_H |
| 7454 | #include <string.h> |
| 7455 | #include <wchar.h> |
| 7456 | #endif |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7457 | "; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7458 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7459 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7460 | if test "$ac_cv_type_wchar_t" = yes; then |
| 7461 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7462 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7463 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
| 7464 | See \`config.log' for more details" "$LINENO" 5; } |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7465 | else |
| 7466 | ac_cv_sizeof_wchar_t=0 |
| 7467 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7468 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7469 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7470 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7472 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
| 7473 | |
| 7474 | |
| 7475 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7476 | cat >>confdefs.h <<_ACEOF |
| 7477 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
| 7478 | _ACEOF |
| 7479 | |
| 7480 | |
| 7481 | U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t |
| 7482 | # We do this check to verify that everything is okay. |
| 7483 | if test $U_SIZEOF_WCHAR_T = 0; then |
| 7484 | if test $U_HAVE_WCHAR_H=1; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7485 | as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7486 | fi |
| 7487 | fi |
| 7488 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7490 | $as_echo_n "checking for UTF-16 string literal support... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7491 | U_CHECK_UTF16_STRING=1 |
| 7492 | CHECK_UTF16_STRING_RESULT="unknown" |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7493 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7494 | case "${host}" in |
| 7495 | *-*-aix*|powerpc64-*-linux*) |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7496 | if test "$GCC" = no; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7497 | OLD_CFLAGS="${CFLAGS}" |
| 7498 | OLD_CXXFLAGS="${CXXFLAGS}" |
| 7499 | CFLAGS="${CFLAGS} -qutf" |
| 7500 | CXXFLAGS="${CXXFLAGS} -qutf" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7502 | /* end confdefs.h. */ |
| 7503 | const unsigned short hello[] = u"hello"; |
| 7504 | int |
| 7505 | main () |
| 7506 | { |
| 7507 | |
| 7508 | ; |
| 7509 | return 0; |
| 7510 | } |
| 7511 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7512 | if ac_fn_c_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7513 | U_CHECK_UTF16_STRING=1 |
| 7514 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7515 | U_CHECK_UTF16_STRING=0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7516 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7518 | if test "$U_CHECK_UTF16_STRING" = 0; then |
| 7519 | CFLAGS="${OLD_CFLAGS}" |
| 7520 | CXXFLAGS="${OLD_CXXFLAGS}" |
| 7521 | else |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7522 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7523 | CHECK_UTF16_STRING_RESULT="-qutf" |
| 7524 | fi |
| 7525 | fi |
| 7526 | ;; |
| 7527 | *-*-solaris*) |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7528 | if test "$GCC" = no; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7529 | OLD_CFLAGS="${CFLAGS}" |
| 7530 | OLD_CXXFLAGS="${CXXFLAGS}" |
| 7531 | CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" |
| 7532 | CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7534 | /* end confdefs.h. */ |
| 7535 | const unsigned short hello[] = U"hello"; |
| 7536 | int |
| 7537 | main () |
| 7538 | { |
| 7539 | |
| 7540 | ; |
| 7541 | return 0; |
| 7542 | } |
| 7543 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7544 | if ac_fn_c_try_compile "$LINENO"; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7545 | U_CHECK_UTF16_STRING=1 |
| 7546 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7547 | U_CHECK_UTF16_STRING=0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7548 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7550 | if test "$U_CHECK_UTF16_STRING" = 0; then |
| 7551 | CFLAGS="${OLD_CFLAGS}" |
| 7552 | CXXFLAGS="${OLD_CXXFLAGS}" |
| 7553 | else |
| 7554 | CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7555 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort" |
| 7556 | UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7557 | # Since we can't detect the availability of this UTF-16 syntax at compile time, |
| 7558 | # we depend on configure telling us that we can use it. |
| 7559 | # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, |
| 7560 | # we only use this macro within ICU. |
| 7561 | # If an ICU user uses icu-config, this feature will be enabled. |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7562 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7563 | U_CHECK_UTF16_STRING=0 |
| 7564 | fi |
| 7565 | fi |
| 7566 | ;; |
| 7567 | *-*-hpux*) |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7568 | if test "$GCC" = no; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7569 | # The option will be detected at compile time without additional compiler options. |
| 7570 | CHECK_UTF16_STRING_RESULT="available" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7571 | fi |
| 7572 | ;; |
| 7573 | *-*-cygwin) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7574 | # wchar_t can be used |
| 7575 | CHECK_UTF16_STRING_RESULT="available" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7576 | ;; |
| 7577 | *) |
| 7578 | ;; |
| 7579 | esac |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7580 | |
Fredrik Roubert | 57b72de | 2018-06-21 14:29:02 +0200 | [diff] [blame] | 7581 | # GCC >= 4.4 supports UTF16 string literals. As of ICU 62, both C and C++ files require them. |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7582 | if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then |
| 7583 | if test "$GCC" = yes; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7585 | /* end confdefs.h. */ |
| 7586 | |
Fredrik Roubert | 57b72de | 2018-06-21 14:29:02 +0200 | [diff] [blame] | 7587 | static const unsigned short test[] = u"This is a UTF16 literal string."; |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7588 | |
| 7589 | int |
| 7590 | main () |
| 7591 | { |
| 7592 | |
| 7593 | ; |
| 7594 | return 0; |
| 7595 | } |
| 7596 | _ACEOF |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7597 | if ac_fn_c_try_compile "$LINENO"; then : |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7598 | CC_UTF16_STRING=1 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7599 | else |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7600 | CC_UTF16_STRING=0 |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7601 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7603 | if test "$CC_UTF16_STRING" = 1; then |
| 7604 | CHECK_UTF16_STRING_RESULT="C only"; |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7605 | fi |
| 7606 | fi |
| 7607 | if test "$GXX" = yes; then |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7608 | # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about. |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7609 | ac_ext=cpp |
| 7610 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7611 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7612 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7613 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7614 | |
| 7615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7616 | /* end confdefs.h. */ |
| 7617 | |
| 7618 | static const char16_t test[] = u"This is a UTF16 literal string."; |
| 7619 | |
| 7620 | int |
| 7621 | main () |
| 7622 | { |
| 7623 | |
| 7624 | ; |
| 7625 | return 0; |
| 7626 | } |
| 7627 | _ACEOF |
| 7628 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7629 | CXX_UTF16_STRING=1 |
| 7630 | else |
| 7631 | CXX_UTF16_STRING=0 |
| 7632 | fi |
| 7633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7634 | ac_ext=c |
| 7635 | ac_cpp='$CPP $CPPFLAGS' |
| 7636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7639 | |
| 7640 | if test "$CXX_UTF16_STRING" = 1; then |
| 7641 | if test "$CC_UTF16_STRING" = 1; then |
| 7642 | CHECK_UTF16_STRING_RESULT="available"; |
| 7643 | else |
| 7644 | CHECK_UTF16_STRING_RESULT="C++ only"; |
| 7645 | fi |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7646 | fi |
| 7647 | fi |
| 7648 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7650 | $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7651 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7652 | # Enable/disable extras |
| 7653 | # Check whether --enable-extras was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7654 | if test "${enable_extras+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7655 | enableval=$enable_extras; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7656 | yes) extras=true ;; |
| 7657 | no) extras=false ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7658 | *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7659 | esac |
| 7660 | else |
| 7661 | extras=true |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7662 | fi |
| 7663 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7664 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7665 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7666 | if test "$extras" = true; then |
| 7667 | EXTRAS_TRUE= |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7668 | U_HAVE_EXTRAS=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7669 | else |
| 7670 | EXTRAS_TRUE='#' |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7671 | U_HAVE_EXTRAS=0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7672 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7673 | # Check whether --enable-icuio was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7674 | if test "${enable_icuio+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7675 | enableval=$enable_icuio; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7676 | yes) icuio=true ;; |
| 7677 | no) icuio=false ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7678 | *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7679 | esac |
| 7680 | else |
| 7681 | icuio=true |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7682 | fi |
| 7683 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7684 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7685 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7686 | if test "$icuio" = true; then |
| 7687 | ICUIO_TRUE= |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7688 | U_HAVE_ICUIO=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7689 | else |
| 7690 | ICUIO_TRUE='#' |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7691 | U_HAVE_ICUIO=0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7692 | fi |
| 7693 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 7694 | # Enable/disable layoutex |
| 7695 | # Check whether --enable-layoutex was given. |
| 7696 | if test "${enable_layoutex+set}" = set; then : |
| 7697 | enableval=$enable_layoutex; case "${enableval}" in |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7698 | yes) layoutex=$have_icu_le_hb ;; |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 7699 | no) layoutex=false ;; |
| 7700 | *) as_fn_error $? "bad value ${enableval} for --enable-layoutex" "$LINENO" 5 ;; |
| 7701 | esac |
| 7702 | else |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7703 | layoutex=$have_icu_le_hb |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 7704 | fi |
| 7705 | |
| 7706 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7707 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 7708 | if test "$layoutex" = true; then |
| 7709 | LAYOUTEX_TRUE= |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7710 | U_HAVE_LAYOUTEX=1 |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 7711 | else |
| 7712 | LAYOUTEX_TRUE='#' |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7713 | U_HAVE_LAYOUTEX=0 |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 7714 | fi |
| 7715 | |
Fredrik Roubert | 64339d3 | 2016-10-21 19:43:16 +0200 | [diff] [blame] | 7716 | # Enable/disable layout |
| 7717 | # Check whether --enable-layout was given. |
| 7718 | if test "${enable_layout+set}" = set; then : |
| 7719 | enableval=$enable_layout; case "${enableval}" in |
| 7720 | yes) as_fn_error $? "The ICU Layout Engine has been removed." "$LINENO" 5 ;; |
| 7721 | no) ;; |
| 7722 | *) ;; |
| 7723 | esac |
| 7724 | fi |
| 7725 | |
| 7726 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7727 | # Enable/disable tools |
| 7728 | # Check whether --enable-tools was given. |
| 7729 | if test "${enable_tools+set}" = set; then : |
| 7730 | enableval=$enable_tools; case "${enableval}" in |
| 7731 | yes) tools=true ;; |
| 7732 | no) tools=false ;; |
| 7733 | *) as_fn_error $? "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;; |
| 7734 | esac |
| 7735 | else |
| 7736 | tools=true |
| 7737 | fi |
| 7738 | |
| 7739 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7740 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7741 | if test "$tools" = true; then |
| 7742 | TOOLS_TRUE= |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7743 | U_HAVE_TOOLS=1 |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7744 | else |
| 7745 | TOOLS_TRUE='#' |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7746 | U_HAVE_TOOLS=0 |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7747 | fi |
| 7748 | |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 7749 | # Enable/disable fuzzer target tests. |
| 7750 | # Check whether --enable-fuzzer was given. |
| 7751 | if test "${enable_fuzzer+set}" = set; then : |
| 7752 | enableval=$enable_fuzzer; case "${enableval}" in |
| 7753 | yes) fuzzer=true ;; |
| 7754 | no) fuzzer=false ;; |
| 7755 | *) as_fn_error $? "bad value ${enableval} for --enable-fuzzer" "$LINENO" 5 ;; |
| 7756 | esac |
| 7757 | else |
| 7758 | fuzzer=false |
| 7759 | fi |
| 7760 | |
| 7761 | |
| 7762 | |
| 7763 | if test "$fuzzer" = true; then |
| 7764 | FUZZER_TRUE= |
| 7765 | U_HAVE_FUZZER=1 |
| 7766 | else |
| 7767 | FUZZER_TRUE='#' |
| 7768 | U_HAVE_FUZZER=0 |
| 7769 | fi |
| 7770 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7771 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7772 | # Check whether --with-data-packaging was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7773 | if test "${with_data_packaging+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7774 | withval=$with_data_packaging; case "${withval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7775 | files|archive|library) datapackaging=$withval ;; |
| 7776 | auto) datapackaging=$withval ;; |
| 7777 | common) datapackaging=archive ;; |
| 7778 | dll) datapackaging=library ;; |
| 7779 | static) datapackaging=static ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7780 | *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7781 | esac |
| 7782 | else |
| 7783 | datapackaging= |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7784 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7785 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7786 | |
| 7787 | # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc.. |
| 7788 | # thesysconfdir=`eval echo $sysconfdir` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7789 | thedatadir=`eval echo $datadir` |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7790 | # 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 Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7791 | pkgicudatadir=$datadir |
| 7792 | thepkgicudatadir=$thedatadir |
| 7793 | |
| 7794 | |
| 7795 | |
| 7796 | |
| 7797 | if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7798 | # default to library |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7799 | datapackaging=library |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7800 | if test "$ENABLE_STATIC" = "YES"; then |
| 7801 | if test "$ENABLE_SHARED" != "YES"; then |
| 7802 | datapackaging=static |
| 7803 | fi |
| 7804 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7805 | fi |
| 7806 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7807 | datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}" |
| 7808 | |
| 7809 | datapackaging_msg="(No explaination for mode $datapackaging.)" |
| 7810 | |
| 7811 | datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override." |
| 7812 | datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override." |
| 7813 | datapackaging_howfound="(unknown)" |
| 7814 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7815 | case "$datapackaging" in |
| 7816 | files) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7817 | DATA_PACKAGING_MODE=files |
| 7818 | datapackaging_msg="ICU data will be stored in individual files." |
| 7819 | datapackaging_howfound="$datapackaging_msg_path" |
| 7820 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7821 | archive) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7822 | DATA_PACKAGING_MODE=common |
| 7823 | datapackaging_msg="ICU data will be stored in a single .dat file." |
| 7824 | datapackaging_howfound="$datapackaging_msg_path" |
| 7825 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7826 | library) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7827 | DATA_PACKAGING_MODE=dll |
| 7828 | datapackaging_msg="ICU data will be linked with ICU." |
| 7829 | if test "$ENABLE_STATIC" = "YES"; then |
| 7830 | datapackaging_msg="$datapackaging_msg A static data library will be built. " |
| 7831 | fi |
| 7832 | if test "$ENABLE_SHARED" = "YES"; then |
| 7833 | datapackaging_msg="$datapackaging_msg A shared data library will be built. " |
| 7834 | fi |
| 7835 | datapackaging_howfound="$datapackaging_msg_set" |
| 7836 | ;; |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 7837 | static) |
| 7838 | DATA_PACKAGING_MODE=static |
| 7839 | datapackaging_msg="ICU data will be stored in a static library." |
| 7840 | datapackaging_howfound="$datapackaging_msg_set" |
| 7841 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7842 | esac |
| 7843 | |
| 7844 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7845 | # Sets a library suffix |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7847 | $as_echo_n "checking for a library suffix to use... " >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7848 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7849 | # Check whether --with-library-suffix was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7850 | if test "${with_library_suffix+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7851 | withval=$with_library_suffix; ICULIBSUFFIX="${withval}" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7852 | else |
| 7853 | ICULIBSUFFIX= |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7854 | fi |
| 7855 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7856 | msg=$ICULIBSUFFIX |
| 7857 | if test "$msg" = ""; then |
| 7858 | msg=none |
| 7859 | fi |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7861 | $as_echo "$msg" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7862 | |
| 7863 | if test "$ICULIBSUFFIX" != "" |
| 7864 | then |
| 7865 | U_HAVE_LIB_SUFFIX=1 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7866 | ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'` |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7867 | UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} " |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7868 | else |
| 7869 | U_HAVE_LIB_SUFFIX=0 |
| 7870 | fi |
| 7871 | |
| 7872 | |
| 7873 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7874 | # Enable/disable tests |
| 7875 | # Check whether --enable-tests was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7876 | if test "${enable_tests+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7877 | enableval=$enable_tests; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7878 | yes) tests=true ;; |
| 7879 | no) tests=false ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7880 | *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7881 | esac |
| 7882 | else |
| 7883 | tests=true |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7884 | fi |
| 7885 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7886 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7887 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7888 | if test "$tests" = true; then |
| 7889 | TESTS_TRUE= |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7890 | U_HAVE_TESTS=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7891 | else |
| 7892 | TESTS_TRUE='#' |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7893 | U_HAVE_TESTS=0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7894 | fi |
| 7895 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7896 | # Enable/disable samples |
| 7897 | # Check whether --enable-samples was given. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7898 | if test "${enable_samples+set}" = set; then : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7899 | enableval=$enable_samples; case "${enableval}" in |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7900 | yes) samples=true ;; |
| 7901 | no) samples=false ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7902 | *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7903 | esac |
| 7904 | else |
| 7905 | samples=true |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7906 | fi |
| 7907 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7908 | |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7909 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7910 | if test "$samples" = true; then |
| 7911 | SAMPLES_TRUE= |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7912 | U_HAVE_SAMPLES=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7913 | else |
| 7914 | SAMPLES_TRUE='#' |
Fredrik Roubert | c14898b | 2015-09-28 19:31:03 +0200 | [diff] [blame] | 7915 | U_HAVE_SAMPLES=0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7916 | fi |
| 7917 | |
| 7918 | ICUDATA_CHAR=$U_ENDIAN_CHAR |
| 7919 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7920 | # Platform-specific Makefile setup |
| 7921 | # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7922 | case "${host}" in |
| 7923 | *-*-solaris*) platform=U_SOLARIS ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 7924 | *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7925 | *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; |
| 7926 | *-*-aix*) platform=U_AIX ;; |
| 7927 | *-*-hpux*) platform=U_HPUX ;; |
| 7928 | *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 7929 | *-*-cygwin*) platform=U_CYGWIN ;; |
| 7930 | *-*-mingw*) platform=U_MINGW ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7931 | *-*ibm-openedition*|*-*-os390*) platform=OS390 |
| 7932 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
| 7933 | ICUDATA_CHAR="e" |
| 7934 | fi ;; |
| 7935 | *-*-os400*) platform=OS400 |
| 7936 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
| 7937 | ICUDATA_CHAR="e" |
| 7938 | fi ;; |
| 7939 | *-*-nto*) platform=U_QNX ;; |
| 7940 | *-dec-osf*) platform=U_OSF ;; |
| 7941 | *-*-beos) platform=U_BEOS ;; |
| 7942 | *-*-irix*) platform=U_IRIX ;; |
| 7943 | *-ncr-*) platform=U_MPRAS ;; |
| 7944 | *) platform=U_UNKNOWN_PLATFORM ;; |
| 7945 | esac |
| 7946 | |
| 7947 | |
| 7948 | platform_make_fragment_name="$icu_cv_host_frag" |
| 7949 | platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" |
| 7950 | |
| 7951 | |
| 7952 | |
| 7953 | if test "${FORCE_LIBS}" != ""; then |
| 7954 | echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 |
| 7955 | LIBS=${FORCE_LIBS} |
| 7956 | fi |
| 7957 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7958 | # Now that we're done using CPPFLAGS etc. for tests, we can change it |
| 7959 | # for build. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7960 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 7961 | if test "${CC}" = "clang"; then |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7962 | CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality" |
| 7963 | else |
| 7964 | CLANGCFLAGS="" |
| 7965 | fi |
| 7966 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 7967 | if test "${CXX}" = "clang++"; then |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7968 | CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality" |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 7969 | LIBCXXFLAGS="$LIBCXXFLAGS -Wglobal-constructors" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7970 | else |
| 7971 | CLANGCXXFLAGS="" |
| 7972 | fi |
| 7973 | |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 7974 | CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 7975 | CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS" |
| 7976 | CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7977 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 7978 | |
| 7979 | |
| 7980 | |
| 7981 | # append all config cppflags |
| 7982 | CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS" |
| 7983 | |
| 7984 | echo "CPPFLAGS=$CPPFLAGS" |
| 7985 | echo "CFLAGS=$CFLAGS" |
| 7986 | echo "CXXFLAGS=$CXXFLAGS" |
| 7987 | |
| 7988 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7989 | # output the Makefiles |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 7990 | ac_config_files="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/icu.pc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/gendict/Makefile tools/gentest/Makefile tools/gennorm2/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile tools/escapesrc/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/collperf/Makefile test/perf/collperf2/Makefile test/perf/dicttrieperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/howExpensiveIs/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile test/perf/leperf/Makefile test/fuzzer/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 7991 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 7992 | cat >confcache <<\_ACEOF |
| 7993 | # This file is a shell script that caches the results of configure |
| 7994 | # tests run on this system so they can be shared between configure |
| 7995 | # scripts and configure runs, see configure's option --config-cache. |
| 7996 | # It is not useful on other systems. If it contains results you don't |
| 7997 | # want to keep, you may remove or edit it. |
| 7998 | # |
| 7999 | # config.status only pays attention to the cache file if you give it |
| 8000 | # the --recheck option to rerun configure. |
| 8001 | # |
| 8002 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 8003 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 8004 | # following values. |
| 8005 | |
| 8006 | _ACEOF |
| 8007 | |
| 8008 | # The following way of writing the cache mishandles newlines in values, |
| 8009 | # but we know of no workaround that is simple, portable, and efficient. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8010 | # So, we kill variables containing newlines. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8011 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 8012 | # and sets the high bit in the cache file unless we assign to the vars. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8013 | ( |
| 8014 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 8015 | eval ac_val=\$$ac_var |
| 8016 | case $ac_val in #( |
| 8017 | *${as_nl}*) |
| 8018 | case $ac_var in #( |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8019 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8020 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 8021 | esac |
| 8022 | case $ac_var in #( |
| 8023 | _ | IFS | as_nl) ;; #( |
| 8024 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8025 | *) { eval $ac_var=; unset $ac_var;} ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8026 | esac ;; |
| 8027 | esac |
| 8028 | done |
| 8029 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8030 | (set) 2>&1 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8031 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 8032 | *${as_nl}ac_space=\ *) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8033 | # `set' does not quote correctly, so add quotes: double-quote |
| 8034 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8035 | sed -n \ |
| 8036 | "s/'/'\\\\''/g; |
| 8037 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8038 | ;; #( |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8039 | *) |
| 8040 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8041 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8042 | ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8043 | esac | |
| 8044 | sort |
| 8045 | ) | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8046 | sed ' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8047 | /^ac_cv_env_/b end |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8048 | t clear |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8049 | :clear |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8050 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 8051 | t end |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8052 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 8053 | :end' >>confcache |
| 8054 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 8055 | if test -w "$cache_file"; then |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8056 | if test "x$cache_file" != "x/dev/null"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8058 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8059 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 8060 | cat confcache >"$cache_file" |
| 8061 | else |
| 8062 | case $cache_file in #( |
| 8063 | */* | ?:*) |
| 8064 | mv -f confcache "$cache_file"$$ && |
| 8065 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 8066 | *) |
| 8067 | mv -f confcache "$cache_file" ;; |
| 8068 | esac |
| 8069 | fi |
| 8070 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8071 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8073 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8074 | fi |
| 8075 | fi |
| 8076 | rm -f confcache |
| 8077 | |
| 8078 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8079 | # Let make expand exec_prefix. |
| 8080 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8081 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8082 | # Transform confdefs.h into DEFS. |
| 8083 | # Protect against shell expansion while executing Makefile rules. |
| 8084 | # Protect against Makefile macro expansion. |
| 8085 | # |
| 8086 | # If the first sed substitution is executed (which looks for macros that |
| 8087 | # take arguments), then branch to the quote section. Otherwise, |
| 8088 | # look for a macro that doesn't take arguments. |
| 8089 | ac_script=' |
| 8090 | :mline |
| 8091 | /\\$/{ |
| 8092 | N |
| 8093 | s,\\\n,, |
| 8094 | b mline |
| 8095 | } |
| 8096 | t clear |
| 8097 | :clear |
| 8098 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 8099 | t quote |
| 8100 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 8101 | t quote |
| 8102 | b any |
| 8103 | :quote |
| 8104 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 8105 | s/\[/\\&/g |
| 8106 | s/\]/\\&/g |
| 8107 | s/\$/$$/g |
| 8108 | H |
| 8109 | :any |
| 8110 | ${ |
| 8111 | g |
| 8112 | s/^\n// |
| 8113 | s/\n/ /g |
| 8114 | p |
| 8115 | } |
| 8116 | ' |
| 8117 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 8118 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8119 | |
| 8120 | ac_libobjs= |
| 8121 | ac_ltlibobjs= |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8122 | U= |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8123 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 8124 | # 1. Remove the extension, and $U if already installed. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8125 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 8126 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 8127 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 8128 | # will be set to the directory where LIBOBJS objects are built. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8129 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 8130 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8131 | done |
| 8132 | LIBOBJS=$ac_libobjs |
| 8133 | |
| 8134 | LTLIBOBJS=$ac_ltlibobjs |
| 8135 | |
| 8136 | |
| 8137 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8138 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8139 | : "${CONFIG_STATUS=./config.status}" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8140 | ac_write_fail=0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8141 | ac_clean_files_save=$ac_clean_files |
| 8142 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8144 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8145 | as_write_fail=0 |
| 8146 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8147 | #! $SHELL |
| 8148 | # Generated by $as_me. |
| 8149 | # Run this file to recreate the current configuration. |
| 8150 | # Compiler output produced by configure, useful for debugging |
| 8151 | # configure, is in config.log if it exists. |
| 8152 | |
| 8153 | debug=false |
| 8154 | ac_cs_recheck=false |
| 8155 | ac_cs_silent=false |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8156 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8157 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 8158 | export SHELL |
| 8159 | _ASEOF |
| 8160 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 8161 | ## -------------------- ## |
| 8162 | ## M4sh Initialization. ## |
| 8163 | ## -------------------- ## |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8164 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8165 | # Be more Bourne compatible |
| 8166 | DUALCASE=1; export DUALCASE # for MKS sh |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8167 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8168 | emulate sh |
| 8169 | NULLCMD=: |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8170 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8171 | # is contrary to our usage. Disable this feature. |
| 8172 | alias -g '${1+"$@"}'='"$@"' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8173 | setopt NO_GLOB_SUBST |
| 8174 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8175 | case `(set -o) 2>/dev/null` in #( |
| 8176 | *posix*) : |
| 8177 | set -o posix ;; #( |
| 8178 | *) : |
| 8179 | ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8180 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8181 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8182 | |
| 8183 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8184 | as_nl=' |
| 8185 | ' |
| 8186 | export as_nl |
| 8187 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 8188 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 8189 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 8190 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8191 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 8192 | # but without wasting forks for bash or zsh. |
| 8193 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 8194 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 8195 | as_echo='print -r --' |
| 8196 | as_echo_n='print -rn --' |
| 8197 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8198 | as_echo='printf %s\n' |
| 8199 | as_echo_n='printf %s' |
| 8200 | else |
| 8201 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 8202 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 8203 | as_echo_n='/usr/ucb/echo -n' |
| 8204 | else |
| 8205 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 8206 | as_echo_n_body='eval |
| 8207 | arg=$1; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8208 | case $arg in #( |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8209 | *"$as_nl"*) |
| 8210 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 8211 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 8212 | esac; |
| 8213 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 8214 | ' |
| 8215 | export as_echo_n_body |
| 8216 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 8217 | fi |
| 8218 | export as_echo_body |
| 8219 | as_echo='sh -c $as_echo_body as_echo' |
| 8220 | fi |
| 8221 | |
| 8222 | # The user is always right. |
| 8223 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8224 | PATH_SEPARATOR=: |
| 8225 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 8226 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 8227 | PATH_SEPARATOR=';' |
| 8228 | } |
| 8229 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8230 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8231 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8232 | # IFS |
| 8233 | # We need space, tab and new line, in precisely that order. Quoting is |
| 8234 | # there to prevent editors from complaining about space-tab. |
| 8235 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 8236 | # splitting by setting IFS to empty value.) |
| 8237 | IFS=" "" $as_nl" |
| 8238 | |
| 8239 | # Find who we are. Look in the path if we contain no directory separator. |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8240 | as_myself= |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8241 | case $0 in #(( |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8242 | *[\\/]* ) as_myself=$0 ;; |
| 8243 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8244 | for as_dir in $PATH |
| 8245 | do |
| 8246 | IFS=$as_save_IFS |
| 8247 | test -z "$as_dir" && as_dir=. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8248 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 8249 | done |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8250 | IFS=$as_save_IFS |
| 8251 | |
| 8252 | ;; |
| 8253 | esac |
| 8254 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 8255 | # in which case we are not to be found in the path. |
| 8256 | if test "x$as_myself" = x; then |
| 8257 | as_myself=$0 |
| 8258 | fi |
| 8259 | if test ! -f "$as_myself"; then |
| 8260 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8261 | exit 1 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8262 | fi |
| 8263 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8264 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 8265 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 8266 | # suppresses any "Segmentation fault" message there. '((' could |
| 8267 | # trigger a bug in pdksh 5.2.14. |
| 8268 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 8269 | do eval test x\${$as_var+set} = xset \ |
| 8270 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8271 | done |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8272 | PS1='$ ' |
| 8273 | PS2='> ' |
| 8274 | PS4='+ ' |
| 8275 | |
| 8276 | # NLS nuisances. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8277 | LC_ALL=C |
| 8278 | export LC_ALL |
| 8279 | LANGUAGE=C |
| 8280 | export LANGUAGE |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8281 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8282 | # CDPATH. |
| 8283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 8284 | |
| 8285 | |
| 8286 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 8287 | # ---------------------------------------- |
| 8288 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 8289 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 8290 | # script with STATUS, using 1 if that was 0. |
| 8291 | as_fn_error () |
| 8292 | { |
| 8293 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 8294 | if test "$4"; then |
| 8295 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 8296 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 8297 | fi |
| 8298 | $as_echo "$as_me: error: $2" >&2 |
| 8299 | as_fn_exit $as_status |
| 8300 | } # as_fn_error |
| 8301 | |
| 8302 | |
| 8303 | # as_fn_set_status STATUS |
| 8304 | # ----------------------- |
| 8305 | # Set $? to STATUS, without forking. |
| 8306 | as_fn_set_status () |
| 8307 | { |
| 8308 | return $1 |
| 8309 | } # as_fn_set_status |
| 8310 | |
| 8311 | # as_fn_exit STATUS |
| 8312 | # ----------------- |
| 8313 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 8314 | as_fn_exit () |
| 8315 | { |
| 8316 | set +e |
| 8317 | as_fn_set_status $1 |
| 8318 | exit $1 |
| 8319 | } # as_fn_exit |
| 8320 | |
| 8321 | # as_fn_unset VAR |
| 8322 | # --------------- |
| 8323 | # Portably unset VAR. |
| 8324 | as_fn_unset () |
| 8325 | { |
| 8326 | { eval $1=; unset $1;} |
| 8327 | } |
| 8328 | as_unset=as_fn_unset |
| 8329 | # as_fn_append VAR VALUE |
| 8330 | # ---------------------- |
| 8331 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 8332 | # advantage of any shell optimizations that allow amortized linear growth over |
| 8333 | # repeated appends, instead of the typical quadratic growth present in naive |
| 8334 | # implementations. |
| 8335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 8336 | eval 'as_fn_append () |
| 8337 | { |
| 8338 | eval $1+=\$2 |
| 8339 | }' |
| 8340 | else |
| 8341 | as_fn_append () |
| 8342 | { |
| 8343 | eval $1=\$$1\$2 |
| 8344 | } |
| 8345 | fi # as_fn_append |
| 8346 | |
| 8347 | # as_fn_arith ARG... |
| 8348 | # ------------------ |
| 8349 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 8350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 8351 | # must be portable across $(()) and expr. |
| 8352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 8353 | eval 'as_fn_arith () |
| 8354 | { |
| 8355 | as_val=$(( $* )) |
| 8356 | }' |
| 8357 | else |
| 8358 | as_fn_arith () |
| 8359 | { |
| 8360 | as_val=`expr "$@" || test $? -eq 1` |
| 8361 | } |
| 8362 | fi # as_fn_arith |
| 8363 | |
| 8364 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8365 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 8366 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8367 | as_expr=expr |
| 8368 | else |
| 8369 | as_expr=false |
| 8370 | fi |
| 8371 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8372 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8373 | as_basename=basename |
| 8374 | else |
| 8375 | as_basename=false |
| 8376 | fi |
| 8377 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8378 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 8379 | as_dirname=dirname |
| 8380 | else |
| 8381 | as_dirname=false |
| 8382 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8383 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8384 | as_me=`$as_basename -- "$0" || |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8385 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8386 | X"$0" : 'X\(//\)$' \| \ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8387 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 8388 | $as_echo X/"$0" | |
| 8389 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 8390 | s//\1/ |
| 8391 | q |
| 8392 | } |
| 8393 | /^X\/\(\/\/\)$/{ |
| 8394 | s//\1/ |
| 8395 | q |
| 8396 | } |
| 8397 | /^X\/\(\/\).*/{ |
| 8398 | s//\1/ |
| 8399 | q |
| 8400 | } |
| 8401 | s/.*/./; q'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8402 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8403 | # Avoid depending upon Character Ranges. |
| 8404 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 8405 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 8406 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 8407 | as_cr_digits='0123456789' |
| 8408 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8409 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8410 | ECHO_C= ECHO_N= ECHO_T= |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8411 | case `echo -n x` in #((((( |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8412 | -n*) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8413 | case `echo 'xy\c'` in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8414 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8415 | xy) ECHO_C='\c';; |
| 8416 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 8417 | ECHO_T=' ';; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8418 | esac;; |
| 8419 | *) |
| 8420 | ECHO_N='-n';; |
| 8421 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8422 | |
| 8423 | rm -f conf$$ conf$$.exe conf$$.file |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8424 | if test -d conf$$.dir; then |
| 8425 | rm -f conf$$.dir/conf$$.file |
| 8426 | else |
| 8427 | rm -f conf$$.dir |
| 8428 | mkdir conf$$.dir 2>/dev/null |
| 8429 | fi |
| 8430 | if (echo >conf$$.file) 2>/dev/null; then |
| 8431 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8432 | as_ln_s='ln -s' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8433 | # ... but there are two gotchas: |
| 8434 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 8435 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8436 | # In both cases, we have to default to `cp -pR'. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8437 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8438 | as_ln_s='cp -pR' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8439 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 8440 | as_ln_s=ln |
| 8441 | else |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8442 | as_ln_s='cp -pR' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8443 | fi |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8444 | else |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8445 | as_ln_s='cp -pR' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8446 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8447 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 8448 | rmdir conf$$.dir 2>/dev/null |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8449 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8450 | |
| 8451 | # as_fn_mkdir_p |
| 8452 | # ------------- |
| 8453 | # Create "$as_dir" as a directory, including parents if necessary. |
| 8454 | as_fn_mkdir_p () |
| 8455 | { |
| 8456 | |
| 8457 | case $as_dir in #( |
| 8458 | -*) as_dir=./$as_dir;; |
| 8459 | esac |
| 8460 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 8461 | as_dirs= |
| 8462 | while :; do |
| 8463 | case $as_dir in #( |
| 8464 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 8465 | *) as_qdir=$as_dir;; |
| 8466 | esac |
| 8467 | as_dirs="'$as_qdir' $as_dirs" |
| 8468 | as_dir=`$as_dirname -- "$as_dir" || |
| 8469 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8470 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 8471 | X"$as_dir" : 'X\(//\)$' \| \ |
| 8472 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 8473 | $as_echo X"$as_dir" | |
| 8474 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8475 | s//\1/ |
| 8476 | q |
| 8477 | } |
| 8478 | /^X\(\/\/\)[^/].*/{ |
| 8479 | s//\1/ |
| 8480 | q |
| 8481 | } |
| 8482 | /^X\(\/\/\)$/{ |
| 8483 | s//\1/ |
| 8484 | q |
| 8485 | } |
| 8486 | /^X\(\/\).*/{ |
| 8487 | s//\1/ |
| 8488 | q |
| 8489 | } |
| 8490 | s/.*/./; q'` |
| 8491 | test -d "$as_dir" && break |
| 8492 | done |
| 8493 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 8494 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 8495 | |
| 8496 | |
| 8497 | } # as_fn_mkdir_p |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8498 | if mkdir -p . 2>/dev/null; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8499 | as_mkdir_p='mkdir -p "$as_dir"' |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8500 | else |
| 8501 | test -d ./-p && rmdir ./-p |
| 8502 | as_mkdir_p=false |
| 8503 | fi |
| 8504 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8505 | |
| 8506 | # as_fn_executable_p FILE |
| 8507 | # ----------------------- |
| 8508 | # Test if FILE is an executable regular file. |
| 8509 | as_fn_executable_p () |
| 8510 | { |
| 8511 | test -f "$1" && test -x "$1" |
| 8512 | } # as_fn_executable_p |
| 8513 | as_test_x='test -x' |
| 8514 | as_executable_p=as_fn_executable_p |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8515 | |
| 8516 | # Sed expression to map a string onto a valid CPP name. |
| 8517 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 8518 | |
| 8519 | # Sed expression to map a string onto a valid variable name. |
| 8520 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 8521 | |
| 8522 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8523 | exec 6>&1 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8524 | ## ----------------------------------- ## |
| 8525 | ## Main body of $CONFIG_STATUS script. ## |
| 8526 | ## ----------------------------------- ## |
| 8527 | _ASEOF |
| 8528 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8529 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8530 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8531 | # Save the log message, to keep $0 and so on meaningful, and to |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8532 | # report actual input values of CONFIG_FILES etc. instead of their |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8533 | # values after options handling. |
| 8534 | ac_log=" |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 8535 | This file was extended by ICU $as_me 66.1, which was |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8536 | generated by GNU Autoconf 2.69. Invocation command line was |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8537 | |
| 8538 | CONFIG_FILES = $CONFIG_FILES |
| 8539 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 8540 | CONFIG_LINKS = $CONFIG_LINKS |
| 8541 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 8542 | $ $0 $@ |
| 8543 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8544 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 8545 | " |
| 8546 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8547 | _ACEOF |
| 8548 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8549 | case $ac_config_files in *" |
| 8550 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 8551 | esac |
| 8552 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8553 | |
| 8554 | |
| 8555 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8556 | # Files that config.status was made for. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8557 | config_files="$ac_config_files" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8558 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8559 | _ACEOF |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8560 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8561 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8562 | ac_cs_usage="\ |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8563 | \`$as_me' instantiates files and other configuration actions |
| 8564 | from templates according to the current configuration. Unless the files |
| 8565 | and actions are specified as TAGs, all are instantiated by default. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8566 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8567 | Usage: $0 [OPTION]... [TAG]... |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8568 | |
| 8569 | -h, --help print this help, then exit |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8570 | -V, --version print version number and configuration settings, then exit |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8571 | --config print configuration, then exit |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8572 | -q, --quiet, --silent |
| 8573 | do not print progress messages |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8574 | -d, --debug don't remove temporary files |
| 8575 | --recheck update $as_me by reconfiguring in the same conditions |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8576 | --file=FILE[:TEMPLATE] |
| 8577 | instantiate the configuration file FILE |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8578 | |
| 8579 | Configuration files: |
| 8580 | $config_files |
| 8581 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8582 | Report bugs to <http://icu-project.org/bugs>. |
| 8583 | ICU home page: <http://icu-project.org>." |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8584 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8585 | _ACEOF |
| 8586 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8587 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8588 | ac_cs_version="\\ |
Nikita Iashchenko | 0b25a79 | 2020-03-04 15:29:02 +0000 | [diff] [blame] | 8589 | ICU config.status 66.1 |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8590 | configured by $0, generated by GNU Autoconf 2.69, |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8591 | with options \\"\$ac_cs_config\\" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8592 | |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8593 | Copyright (C) 2012 Free Software Foundation, Inc. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8594 | This config.status script is free software; the Free Software Foundation |
| 8595 | gives unlimited permission to copy, distribute and modify it." |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8596 | |
| 8597 | ac_pwd='$ac_pwd' |
| 8598 | srcdir='$srcdir' |
| 8599 | INSTALL='$INSTALL' |
| 8600 | test -n "\$AWK" || AWK=awk |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8601 | _ACEOF |
| 8602 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8604 | # The default lists apply if the user does not specify any file. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8605 | ac_need_defaults=: |
| 8606 | while test $# != 0 |
| 8607 | do |
| 8608 | case $1 in |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8609 | --*=?*) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8610 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8611 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8612 | ac_shift=: |
| 8613 | ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8614 | --*=) |
| 8615 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 8616 | ac_optarg= |
| 8617 | ac_shift=: |
| 8618 | ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8619 | *) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8620 | ac_option=$1 |
| 8621 | ac_optarg=$2 |
| 8622 | ac_shift=shift |
| 8623 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8624 | esac |
| 8625 | |
| 8626 | case $ac_option in |
| 8627 | # Handling of the options. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8628 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 8629 | ac_cs_recheck=: ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8630 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 8631 | $as_echo "$ac_cs_version"; exit ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8632 | --config | --confi | --conf | --con | --co | --c ) |
| 8633 | $as_echo "$ac_cs_config"; exit ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8634 | --debug | --debu | --deb | --de | --d | -d ) |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8635 | debug=: ;; |
| 8636 | --file | --fil | --fi | --f ) |
| 8637 | $ac_shift |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8638 | case $ac_optarg in |
| 8639 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8640 | '') as_fn_error $? "missing file argument" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8641 | esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8642 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8643 | ac_need_defaults=false;; |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8644 | --he | --h | --help | --hel | -h ) |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8645 | $as_echo "$ac_cs_usage"; exit ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8646 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 8647 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 8648 | ac_cs_silent=: ;; |
| 8649 | |
| 8650 | # This is an error. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8651 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 8652 | Try \`$0 --help' for more information." ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8653 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8654 | *) as_fn_append ac_config_targets " $1" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8655 | ac_need_defaults=false ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8656 | |
| 8657 | esac |
| 8658 | shift |
| 8659 | done |
| 8660 | |
| 8661 | ac_configure_extra_args= |
| 8662 | |
| 8663 | if $ac_cs_silent; then |
| 8664 | exec 6>/dev/null |
| 8665 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 8666 | fi |
| 8667 | |
| 8668 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8669 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8670 | if \$ac_cs_recheck; then |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 8671 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8672 | shift |
| 8673 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 8674 | CONFIG_SHELL='$SHELL' |
| 8675 | export CONFIG_SHELL |
| 8676 | exec "\$@" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8677 | fi |
| 8678 | |
| 8679 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8680 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8681 | exec 5>>config.log |
| 8682 | { |
| 8683 | echo |
| 8684 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8685 | ## Running $as_me. ## |
| 8686 | _ASBOX |
| 8687 | $as_echo "$ac_log" |
| 8688 | } >&5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8689 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8690 | _ACEOF |
| 8691 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8692 | _ACEOF |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8693 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8695 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8696 | # Handling of arguments. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8697 | for ac_config_target in $ac_config_targets |
| 8698 | do |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8699 | case $ac_config_target in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8700 | "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; |
| 8701 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 8702 | "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;; |
| 8703 | "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8704 | "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8705 | "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;; |
| 8706 | "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; |
| 8707 | "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; |
| 8708 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
| 8709 | "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8710 | "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; |
| 8711 | "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; |
| 8712 | "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; |
| 8713 | "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; |
| 8714 | "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;; |
| 8715 | "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; |
| 8716 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 8717 | "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; |
| 8718 | "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; |
| 8719 | "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; |
| 8720 | "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8721 | "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; |
| 8722 | "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; |
| 8723 | "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 8724 | "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8725 | "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 8726 | "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8727 | "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; |
| 8728 | "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 8729 | "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8730 | "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; |
| 8731 | "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; |
| 8732 | "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; |
| 8733 | "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; |
| 8734 | "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;; |
Fredrik Roubert | 0596fae | 2017-04-18 21:34:02 +0200 | [diff] [blame] | 8735 | "tools/escapesrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/escapesrc/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8736 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
| 8737 | "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; |
| 8738 | "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; |
| 8739 | "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;; |
| 8740 | "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; |
| 8741 | "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; |
| 8742 | "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; |
| 8743 | "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; |
| 8744 | "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; |
| 8745 | "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;; |
| 8746 | "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 8747 | "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;; |
ccornelius | fceb398 | 2014-04-16 12:27:14 -0700 | [diff] [blame] | 8748 | "test/perf/collperf2/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf2/Makefile" ;; |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 8749 | "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8750 | "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;; |
| 8751 | "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;; |
| 8752 | "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;; |
| 8753 | "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8754 | "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;; |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8755 | "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8756 | "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;; |
| 8757 | "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;; |
| 8758 | "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;; |
| 8759 | "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;; |
| 8760 | "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;; |
| 8761 | "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;; |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 8762 | "test/perf/leperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/leperf/Makefile" ;; |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 8763 | "test/fuzzer/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzer/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8764 | "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
| 8765 | "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; |
| 8766 | "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; |
| 8767 | "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8768 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8769 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8770 | esac |
| 8771 | done |
| 8772 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8773 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8774 | # If the user did not use the arguments to specify the items to instantiate, |
| 8775 | # then the envvar interface is used. Set only those that are not. |
| 8776 | # We use the long form for the default assignment because of an extremely |
| 8777 | # bizarre bug on SunOS 4.1.3. |
| 8778 | if $ac_need_defaults; then |
| 8779 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8780 | fi |
| 8781 | |
| 8782 | # Have a temporary directory for convenience. Make it in the build tree |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8783 | # simply because there is no reason against having it here, and in addition, |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8784 | # creating and moving files from /tmp can sometimes cause problems. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8785 | # Hook for its removal unless debugging. |
| 8786 | # Note that there is a small window in which the directory will not be cleaned: |
| 8787 | # after its creation but before its name has been assigned to `$tmp'. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8788 | $debug || |
| 8789 | { |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8790 | tmp= ac_tmp= |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8791 | trap 'exit_status=$? |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8792 | : "${ac_tmp:=$tmp}" |
| 8793 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8794 | ' 0 |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8795 | trap 'as_fn_exit 1' 1 2 13 15 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8796 | } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8797 | # Create a (secure) tmp directory for tmp files. |
| 8798 | |
| 8799 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8800 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8801 | test -d "$tmp" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8802 | } || |
| 8803 | { |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8804 | tmp=./conf$$-$RANDOM |
| 8805 | (umask 077 && mkdir "$tmp") |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8806 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8807 | ac_tmp=$tmp |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8808 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8809 | # Set up the scripts for CONFIG_FILES section. |
| 8810 | # No need to generate them if there are no CONFIG_FILES. |
| 8811 | # This happens for instance with `./config.status config.h'. |
| 8812 | if test -n "$CONFIG_FILES"; then |
| 8813 | |
| 8814 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8815 | ac_cr=`echo X | tr X '\015'` |
| 8816 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 8817 | # But we know of no other shell where ac_cr would be empty at this |
| 8818 | # point, so we can use a bashism as a fallback. |
| 8819 | if test "x$ac_cr" = x; then |
| 8820 | eval ac_cr=\$\'\\r\' |
| 8821 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8822 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 8823 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 8824 | ac_cs_awk_cr='\\r' |
| 8825 | else |
| 8826 | ac_cs_awk_cr=$ac_cr |
| 8827 | fi |
| 8828 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8829 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8830 | _ACEOF |
| 8831 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8832 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8833 | { |
| 8834 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 8835 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 8836 | echo "_ACEOF" |
| 8837 | } >conf$$subs.sh || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8838 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8839 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8840 | ac_delim='%!_!# ' |
| 8841 | for ac_last_try in false false false false false :; do |
| 8842 | . ./conf$$subs.sh || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8843 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8844 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8845 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 8846 | if test $ac_delim_n = $ac_delim_num; then |
| 8847 | break |
| 8848 | elif $ac_last_try; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8849 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8850 | else |
| 8851 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8852 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8853 | done |
| 8854 | rm -f conf$$subs.sh |
| 8855 | |
| 8856 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8857 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8858 | _ACEOF |
| 8859 | sed -n ' |
| 8860 | h |
| 8861 | s/^/S["/; s/!.*/"]=/ |
| 8862 | p |
| 8863 | g |
| 8864 | s/^[^!]*!// |
| 8865 | :repl |
| 8866 | t repl |
| 8867 | s/'"$ac_delim"'$// |
| 8868 | t delim |
| 8869 | :nl |
| 8870 | h |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8871 | s/\(.\{148\}\)..*/\1/ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8872 | t more1 |
| 8873 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 8874 | p |
| 8875 | n |
| 8876 | b repl |
| 8877 | :more1 |
| 8878 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8879 | p |
| 8880 | g |
| 8881 | s/.\{148\}// |
| 8882 | t nl |
| 8883 | :delim |
| 8884 | h |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8885 | s/\(.\{148\}\)..*/\1/ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8886 | t more2 |
| 8887 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 8888 | p |
| 8889 | b |
| 8890 | :more2 |
| 8891 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8892 | p |
| 8893 | g |
| 8894 | s/.\{148\}// |
| 8895 | t delim |
| 8896 | ' <conf$$subs.awk | sed ' |
| 8897 | /^[^""]/{ |
| 8898 | N |
| 8899 | s/\n// |
| 8900 | } |
| 8901 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8902 | rm -f conf$$subs.awk |
| 8903 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8904 | _ACAWK |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8905 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8906 | for (key in S) S_is_set[key] = 1 |
| 8907 | FS = "" |
| 8908 | |
| 8909 | } |
| 8910 | { |
| 8911 | line = $ 0 |
| 8912 | nfields = split(line, field, "@") |
| 8913 | substed = 0 |
| 8914 | len = length(field[1]) |
| 8915 | for (i = 2; i < nfields; i++) { |
| 8916 | key = field[i] |
| 8917 | keylen = length(key) |
| 8918 | if (S_is_set[key]) { |
| 8919 | value = S[key] |
| 8920 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 8921 | len += length(value) + length(field[++i]) |
| 8922 | substed = 1 |
| 8923 | } else |
| 8924 | len += 1 + keylen |
| 8925 | } |
| 8926 | |
| 8927 | print line |
| 8928 | } |
| 8929 | |
| 8930 | _ACAWK |
| 8931 | _ACEOF |
| 8932 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8933 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 8934 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 8935 | else |
| 8936 | cat |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8937 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8938 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8939 | _ACEOF |
| 8940 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8941 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 8942 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8943 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 8944 | # (actually we leave an empty line to preserve line numbers). |
| 8945 | if test "x$srcdir" = x.; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8946 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 8947 | h |
| 8948 | s/// |
| 8949 | s/^/:/ |
| 8950 | s/[ ]*$/:/ |
| 8951 | s/:\$(srcdir):/:/g |
| 8952 | s/:\${srcdir}:/:/g |
| 8953 | s/:@srcdir@:/:/g |
| 8954 | s/^:*// |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8955 | s/:*$// |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8956 | x |
| 8957 | s/\(=[ ]*\).*/\1/ |
| 8958 | G |
| 8959 | s/\n// |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8960 | s/^[^=]*=[ ]*$// |
| 8961 | }' |
| 8962 | fi |
| 8963 | |
| 8964 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 8965 | fi # test -n "$CONFIG_FILES" |
| 8966 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8967 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8968 | eval set X " :F $CONFIG_FILES " |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8969 | shift |
| 8970 | for ac_tag |
| 8971 | do |
| 8972 | case $ac_tag in |
| 8973 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 8974 | esac |
| 8975 | case $ac_mode$ac_tag in |
| 8976 | :[FHL]*:*);; |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 8977 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8978 | :[FH]-) ac_tag=-:-;; |
| 8979 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8980 | esac |
| 8981 | ac_save_IFS=$IFS |
| 8982 | IFS=: |
| 8983 | set x $ac_tag |
| 8984 | IFS=$ac_save_IFS |
| 8985 | shift |
| 8986 | ac_file=$1 |
| 8987 | shift |
| 8988 | |
| 8989 | case $ac_mode in |
| 8990 | :L) ac_source=$1;; |
| 8991 | :[FH]) |
| 8992 | ac_file_inputs= |
| 8993 | for ac_f |
| 8994 | do |
| 8995 | case $ac_f in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 8996 | -) ac_f="$ac_tmp/stdin";; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 8997 | *) # Look for the file first in the build tree, then in the source tree |
| 8998 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8999 | # because $ac_f cannot contain `:'. |
| 9000 | test -f "$ac_f" || |
| 9001 | case $ac_f in |
| 9002 | [\\/$]*) false;; |
| 9003 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 9004 | esac || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9005 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9006 | esac |
| 9007 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9008 | as_fn_append ac_file_inputs " '$ac_f'" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9009 | done |
| 9010 | |
| 9011 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9012 | # use $as_me), people would be surprised to read: |
| 9013 | # /* config.h. Generated by config.status. */ |
| 9014 | configure_input='Generated from '` |
| 9015 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 9016 | `' by configure.' |
| 9017 | if test x"$ac_file" != x-; then |
| 9018 | configure_input="$ac_file. $configure_input" |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9020 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 9021 | fi |
| 9022 | # Neutralize special characters interpreted by sed in replacement strings. |
| 9023 | case $configure_input in #( |
| 9024 | *\&* | *\|* | *\\* ) |
| 9025 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 9026 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 9027 | *) ac_sed_conf_input=$configure_input;; |
| 9028 | esac |
| 9029 | |
| 9030 | case $ac_tag in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9031 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9032 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9033 | esac |
| 9034 | ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9035 | esac |
| 9036 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9037 | ac_dir=`$as_dirname -- "$ac_file" || |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9038 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9039 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9040 | X"$ac_file" : 'X\(//\)$' \| \ |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9041 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 9042 | $as_echo X"$ac_file" | |
| 9043 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 9044 | s//\1/ |
| 9045 | q |
| 9046 | } |
| 9047 | /^X\(\/\/\)[^/].*/{ |
| 9048 | s//\1/ |
| 9049 | q |
| 9050 | } |
| 9051 | /^X\(\/\/\)$/{ |
| 9052 | s//\1/ |
| 9053 | q |
| 9054 | } |
| 9055 | /^X\(\/\).*/{ |
| 9056 | s//\1/ |
| 9057 | q |
| 9058 | } |
| 9059 | s/.*/./; q'` |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9060 | as_dir="$ac_dir"; as_fn_mkdir_p |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9061 | ac_builddir=. |
| 9062 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9063 | case "$ac_dir" in |
| 9064 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 9065 | *) |
| 9066 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 9067 | # A ".." for each directory in $ac_dir_suffix. |
| 9068 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 9069 | case $ac_top_builddir_sub in |
| 9070 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 9071 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 9072 | esac ;; |
| 9073 | esac |
| 9074 | ac_abs_top_builddir=$ac_pwd |
| 9075 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 9076 | # for backward compatibility: |
| 9077 | ac_top_builddir=$ac_top_build_prefix |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9078 | |
| 9079 | case $srcdir in |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9080 | .) # We are building in place. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9081 | ac_srcdir=. |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9082 | ac_top_srcdir=$ac_top_builddir_sub |
| 9083 | ac_abs_top_srcdir=$ac_pwd ;; |
| 9084 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9085 | ac_srcdir=$srcdir$ac_dir_suffix; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9086 | ac_top_srcdir=$srcdir |
| 9087 | ac_abs_top_srcdir=$srcdir ;; |
| 9088 | *) # Relative name. |
| 9089 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 9090 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 9091 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9092 | esac |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9093 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9094 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9095 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9096 | case $ac_mode in |
| 9097 | :F) |
| 9098 | # |
| 9099 | # CONFIG_FILE |
| 9100 | # |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9101 | |
| 9102 | case $INSTALL in |
| 9103 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9104 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9105 | esac |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9106 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9107 | |
| 9108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 9109 | # If the template does not know about datarootdir, expand it. |
| 9110 | # FIXME: This hack should be removed a few years after 2.60. |
| 9111 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9112 | ac_sed_dataroot=' |
| 9113 | /datarootdir/ { |
| 9114 | p |
| 9115 | q |
| 9116 | } |
| 9117 | /@datadir@/p |
| 9118 | /@docdir@/p |
| 9119 | /@infodir@/p |
| 9120 | /@localedir@/p |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9121 | /@mandir@/p' |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9122 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 9123 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 9124 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9126 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 9127 | _ACEOF |
| 9128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9129 | ac_datarootdir_hack=' |
| 9130 | s&@datadir@&$datadir&g |
| 9131 | s&@docdir@&$docdir&g |
| 9132 | s&@infodir@&$infodir&g |
| 9133 | s&@localedir@&$localedir&g |
| 9134 | s&@mandir@&$mandir&g |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9135 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9136 | esac |
| 9137 | _ACEOF |
| 9138 | |
| 9139 | # Neutralize VPATH when `$srcdir' = `.'. |
| 9140 | # Shell code in configure.ac might set extrasub. |
| 9141 | # FIXME: do we really want to maintain this feature? |
| 9142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 9143 | ac_sed_extra="$ac_vpsub |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9144 | $extrasub |
| 9145 | _ACEOF |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9146 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9147 | :t |
| 9148 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9149 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 9150 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 9151 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 9152 | s&@srcdir@&$ac_srcdir&;t t |
| 9153 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 9154 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 9155 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 9156 | s&@builddir@&$ac_builddir&;t t |
| 9157 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 9158 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 9159 | s&@INSTALL@&$ac_INSTALL&;t t |
| 9160 | $ac_datarootdir_hack |
| 9161 | " |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9162 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 9163 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9164 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9165 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9166 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 9167 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 9168 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 9170 | which seems to be undefined. Please make sure it is defined" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9171 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9172 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9173 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9174 | rm -f "$ac_tmp/stdin" |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9175 | case $ac_file in |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9176 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 9177 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9178 | esac \ |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9179 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9180 | ;; |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9181 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9182 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9183 | |
| 9184 | esac |
| 9185 | |
| 9186 | done # for ac_tag |
| 9187 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9188 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9189 | as_fn_exit 0 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9190 | _ACEOF |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9191 | ac_clean_files=$ac_clean_files_save |
| 9192 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9193 | test $ac_write_fail = 0 || |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9194 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9195 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9196 | |
| 9197 | # configure is writing to config.log, and then calls config.status. |
| 9198 | # config.status does its own redirection, appending to config.log. |
| 9199 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 9200 | # by configure, so config.status won't be able to write to it; its |
| 9201 | # output is simply discarded. So we exec the FD to /dev/null, |
| 9202 | # effectively closing config.log, so it can be properly (re)opened and |
| 9203 | # appended to by config.status. When coming back to configure, we |
| 9204 | # need to make the FD available again. |
| 9205 | if test "$no_create" != yes; then |
| 9206 | ac_cs_success=: |
| 9207 | ac_config_status_args= |
| 9208 | test "$silent" = yes && |
| 9209 | ac_config_status_args="$ac_config_status_args --quiet" |
| 9210 | exec 5>/dev/null |
| 9211 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 9212 | exec 5>>config.log |
| 9213 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 9214 | # would make configure fail if this is the last instruction. |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9215 | $ac_cs_success || as_fn_exit 1 |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9216 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9217 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9219 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9220 | fi |
| 9221 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9222 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 9223 | if test -z "$PYTHON"; |
| 9224 | then |
| 9225 | echo "" > data/rules.mk |
| 9226 | echo "" > test/testdata/rules.mk |
| 9227 | else |
| 9228 | if test -f "$srcdir/data/locales/root.txt"; |
| 9229 | then |
| 9230 | echo "Spawning Python to generate data/rules.mk..." |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 9231 | PYTHONPATH="$srcdir/python" \ |
| 9232 | $PYTHON -m icutools.databuilder \ |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 9233 | --mode gnumake \ |
| 9234 | --seqmode parallel \ |
| 9235 | --src_dir "$srcdir/data" \ |
| 9236 | --filter_file "$ICU_DATA_FILTER_FILE" \ |
| 9237 | $ICU_DATA_BUILDTOOL_OPTS \ |
| 9238 | > data/rules.mk |
| 9239 | if test "$?" != "0"; then |
| 9240 | as_fn_error $? "Python failed to run; see above error." "$LINENO" 5 |
| 9241 | fi |
| 9242 | else |
| 9243 | echo "Not rebuilding data/rules.mk, assuming prebuilt data in data/in" |
| 9244 | touch data/rules.mk |
| 9245 | fi |
| 9246 | echo "Spawning Python to generate test/testdata/rules.mk..." |
Nikita Iashchenko | 4c0e286 | 2019-11-05 16:38:00 +0000 | [diff] [blame] | 9247 | PYTHONPATH="$srcdir/python" \ |
| 9248 | $PYTHON -m icutools.databuilder \ |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 9249 | --mode gnumake \ |
| 9250 | --seqmode parallel \ |
| 9251 | --src_dir "$srcdir/test/testdata" \ |
| 9252 | > test/testdata/rules.mk |
| 9253 | if test "$?" != "0"; then |
| 9254 | as_fn_error $? "Python failed to run; see above error." "$LINENO" 5 |
| 9255 | fi |
| 9256 | fi |
| 9257 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9258 | echo |
| 9259 | echo "ICU for C/C++ $VERSION is ready to be built." |
| 9260 | echo "=== Important Notes: ===" |
| 9261 | |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9262 | echo "Data Packaging: $datapackaging" |
| 9263 | echo " This means: $datapackaging_msg" |
| 9264 | echo " To locate data: $datapackaging_howfound" |
| 9265 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9266 | if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9267 | echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU." |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9268 | else |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9269 | echo "** WARNING: $U_MAKE may not be GNU make." |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9270 | echo "This may cause ICU to fail to build. Please make sure that GNU make" |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9271 | echo "is in your PATH so that the configure script can detect its location." |
| 9272 | fi |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9273 | if test "x$AR" = "xfalse"; then |
| 9274 | echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail." |
| 9275 | fi |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9276 | |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9278 | $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; } |
claireho | 50294ea | 2010-05-03 15:44:48 -0700 | [diff] [blame] | 9279 | if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9281 | $as_echo "ok" >&6; } |
| 9282 | else |
claireho | 27f6547 | 2011-06-09 11:11:49 -0700 | [diff] [blame] | 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5 |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 9284 | $as_echo "too old or test failed - try upgrading GNU Make" >&6; } |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9285 | fi |
| 9286 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 9287 | |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 9288 | if test -n "$UCONFIG_CPPFLAGS"; then |
| 9289 | HDRFILE="uconfig.h.prepend" |
| 9290 | echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:" |
| 9291 | echo |
| 9292 | echo " ${UCONFIG_CPPFLAGS}" |
| 9293 | echo |
| 9294 | 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.' |
| 9295 | echo "Creating the file ${HDRFILE}" |
| 9296 | echo |
| 9297 | echo '--------------- ' "${HDRFILE}" |
| 9298 | echo > "${HDRFILE}" |
| 9299 | echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}" |
| 9300 | echo >> "${HDRFILE}" |
| 9301 | for flag in ${UCONFIG_CPPFLAGS}; |
| 9302 | do |
| 9303 | echo " /* $flag */" >> "${HDRFILE}" |
| 9304 | case "${flag}" in |
| 9305 | -D*=*) |
| 9306 | \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" |
| 9307 | \echo >> "${HDRFILE}" |
| 9308 | ;; |
| 9309 | -D*) |
| 9310 | \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" |
| 9311 | \echo >> "${HDRFILE}" |
| 9312 | ;; |
| 9313 | *) |
| 9314 | \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}" |
| 9315 | \echo >> "${HDRFILE}" |
| 9316 | ;; |
| 9317 | esac |
| 9318 | done |
| 9319 | cat "${HDRFILE}" |
| 9320 | \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}" |
| 9321 | echo >> "${HDRFILE}" |
| 9322 | echo '--------------- end ' "${HDRFILE}" |
| 9323 | fi |
| 9324 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 9325 | |
| 9326 | if test -n "$UCONFIG_CFLAGS"; then |
| 9327 | echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}" |
| 9328 | fi |
| 9329 | |
| 9330 | if test -n "$UCONFIG_CXXFLAGS"; then |
| 9331 | echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}" |
| 9332 | fi |
| 9333 | |
| 9334 | if test "$tools" = false; |
| 9335 | then |
| 9336 | echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests." |
| 9337 | echo "## Expect build failures in the 'data', 'test', and other directories." |
| 9338 | fi |
| 9339 | |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 9340 | if test -z "$PYTHON"; |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 9341 | then |
Nikita Iashchenko | da0990f | 2019-06-13 19:36:45 +0100 | [diff] [blame] | 9342 | echo "** Note: Python not found. You will not be able to build data from source or run tests." |
Victor Chang | 4578a1c | 2018-10-22 04:26:58 +0100 | [diff] [blame] | 9343 | fi |
| 9344 | |
Jean-Baptiste Queru | ac04d0b | 2009-07-17 17:11:19 -0700 | [diff] [blame] | 9345 | $as_unset _CXX_CXXSUFFIX |