The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1 | #! /bin/sh |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.63 for Red Hat elfutils 0.138. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <http://bugzilla.redhat.com/bugzilla/>. |
| 6 | # |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | # |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 12 | # Copyright (C) 1996-2007, 2008 Red Hat, Inc. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20 | emulate sh |
| 21 | NULLCMD=: |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in |
| 28 | *posix*) set -o posix ;; |
| 29 | esac |
| 30 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 31 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | # PATH needs CR |
| 37 | # Avoid depending upon Character Ranges. |
| 38 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 39 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 40 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 41 | as_cr_digits='0123456789' |
| 42 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 43 | |
| 44 | as_nl=' |
| 45 | ' |
| 46 | export as_nl |
| 47 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 48 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 49 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 50 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 51 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| 62 | case $arg in |
| 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
| 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
| 83 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 84 | |
| 85 | # Support unset when possible. |
| 86 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 87 | as_unset=unset |
| 88 | else |
| 89 | as_unset=false |
| 90 | fi |
| 91 | |
| 92 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 93 | # IFS |
| 94 | # We need space, tab and new line, in precisely that order. Quoting is |
| 95 | # there to prevent editors from complaining about space-tab. |
| 96 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 97 | # splitting by setting IFS to empty value.) |
| 98 | IFS=" "" $as_nl" |
| 99 | |
| 100 | # Find who we are. Look in the path if we contain no directory separator. |
| 101 | case $0 in |
| 102 | *[\\/]* ) as_myself=$0 ;; |
| 103 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 104 | for as_dir in $PATH |
| 105 | do |
| 106 | IFS=$as_save_IFS |
| 107 | test -z "$as_dir" && as_dir=. |
| 108 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 109 | done |
| 110 | IFS=$as_save_IFS |
| 111 | |
| 112 | ;; |
| 113 | esac |
| 114 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 115 | # in which case we are not to be found in the path. |
| 116 | if test "x$as_myself" = x; then |
| 117 | as_myself=$0 |
| 118 | fi |
| 119 | if test ! -f "$as_myself"; then |
| 120 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 121 | { (exit 1); exit 1; } |
| 122 | fi |
| 123 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 124 | # Work around bugs in pre-3.0 UWIN ksh. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 125 | for as_var in ENV MAIL MAILPATH |
| 126 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 127 | done |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 128 | PS1='$ ' |
| 129 | PS2='> ' |
| 130 | PS4='+ ' |
| 131 | |
| 132 | # NLS nuisances. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 133 | LC_ALL=C |
| 134 | export LC_ALL |
| 135 | LANGUAGE=C |
| 136 | export LANGUAGE |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 137 | |
| 138 | # Required to use basename. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 139 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 140 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 141 | as_expr=expr |
| 142 | else |
| 143 | as_expr=false |
| 144 | fi |
| 145 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 146 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 147 | as_basename=basename |
| 148 | else |
| 149 | as_basename=false |
| 150 | fi |
| 151 | |
| 152 | |
| 153 | # Name of the executable. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 154 | as_me=`$as_basename -- "$0" || |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 155 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 156 | X"$0" : 'X\(//\)$' \| \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 157 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 158 | $as_echo X/"$0" | |
| 159 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 160 | s//\1/ |
| 161 | q |
| 162 | } |
| 163 | /^X\/\(\/\/\)$/{ |
| 164 | s//\1/ |
| 165 | q |
| 166 | } |
| 167 | /^X\/\(\/\).*/{ |
| 168 | s//\1/ |
| 169 | q |
| 170 | } |
| 171 | s/.*/./; q'` |
| 172 | |
| 173 | # CDPATH. |
| 174 | $as_unset CDPATH |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 175 | |
| 176 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 177 | if test "x$CONFIG_SHELL" = x; then |
| 178 | if (eval ":") 2>/dev/null; then |
| 179 | as_have_required=yes |
| 180 | else |
| 181 | as_have_required=no |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 182 | fi |
| 183 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 184 | if test $as_have_required = yes && (eval ": |
| 185 | (as_func_return () { |
| 186 | (exit \$1) |
| 187 | } |
| 188 | as_func_success () { |
| 189 | as_func_return 0 |
| 190 | } |
| 191 | as_func_failure () { |
| 192 | as_func_return 1 |
| 193 | } |
| 194 | as_func_ret_success () { |
| 195 | return 0 |
| 196 | } |
| 197 | as_func_ret_failure () { |
| 198 | return 1 |
| 199 | } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 200 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 201 | exitcode=0 |
| 202 | if as_func_success; then |
| 203 | : |
| 204 | else |
| 205 | exitcode=1 |
| 206 | echo as_func_success failed. |
| 207 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 208 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 209 | if as_func_failure; then |
| 210 | exitcode=1 |
| 211 | echo as_func_failure succeeded. |
| 212 | fi |
| 213 | |
| 214 | if as_func_ret_success; then |
| 215 | : |
| 216 | else |
| 217 | exitcode=1 |
| 218 | echo as_func_ret_success failed. |
| 219 | fi |
| 220 | |
| 221 | if as_func_ret_failure; then |
| 222 | exitcode=1 |
| 223 | echo as_func_ret_failure succeeded. |
| 224 | fi |
| 225 | |
| 226 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 227 | : |
| 228 | else |
| 229 | exitcode=1 |
| 230 | echo positional parameters were not saved. |
| 231 | fi |
| 232 | |
| 233 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 234 | |
| 235 | ( |
| 236 | as_lineno_1=\$LINENO |
| 237 | as_lineno_2=\$LINENO |
| 238 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 239 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 240 | ") 2> /dev/null; then |
| 241 | : |
| 242 | else |
| 243 | as_candidate_shells= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 245 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 246 | do |
| 247 | IFS=$as_save_IFS |
| 248 | test -z "$as_dir" && as_dir=. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 249 | case $as_dir in |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 250 | /*) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 251 | for as_base in sh bash ksh sh5; do |
| 252 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 253 | done;; |
| 254 | esac |
| 255 | done |
| 256 | IFS=$as_save_IFS |
| 257 | |
| 258 | |
| 259 | for as_shell in $as_candidate_shells $SHELL; do |
| 260 | # Try only shells that exist, to save several forks. |
| 261 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 262 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 264 | emulate sh |
| 265 | NULLCMD=: |
| 266 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 267 | # is contrary to our usage. Disable this feature. |
| 268 | alias -g '${1+"$@"}'='"$@"' |
| 269 | setopt NO_GLOB_SUBST |
| 270 | else |
| 271 | case `(set -o) 2>/dev/null` in |
| 272 | *posix*) set -o posix ;; |
| 273 | esac |
| 274 | |
| 275 | fi |
| 276 | |
| 277 | |
| 278 | : |
| 279 | _ASEOF |
| 280 | }; then |
| 281 | CONFIG_SHELL=$as_shell |
| 282 | as_have_required=yes |
| 283 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 284 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 285 | emulate sh |
| 286 | NULLCMD=: |
| 287 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 288 | # is contrary to our usage. Disable this feature. |
| 289 | alias -g '${1+"$@"}'='"$@"' |
| 290 | setopt NO_GLOB_SUBST |
| 291 | else |
| 292 | case `(set -o) 2>/dev/null` in |
| 293 | *posix*) set -o posix ;; |
| 294 | esac |
| 295 | |
| 296 | fi |
| 297 | |
| 298 | |
| 299 | : |
| 300 | (as_func_return () { |
| 301 | (exit $1) |
| 302 | } |
| 303 | as_func_success () { |
| 304 | as_func_return 0 |
| 305 | } |
| 306 | as_func_failure () { |
| 307 | as_func_return 1 |
| 308 | } |
| 309 | as_func_ret_success () { |
| 310 | return 0 |
| 311 | } |
| 312 | as_func_ret_failure () { |
| 313 | return 1 |
| 314 | } |
| 315 | |
| 316 | exitcode=0 |
| 317 | if as_func_success; then |
| 318 | : |
| 319 | else |
| 320 | exitcode=1 |
| 321 | echo as_func_success failed. |
| 322 | fi |
| 323 | |
| 324 | if as_func_failure; then |
| 325 | exitcode=1 |
| 326 | echo as_func_failure succeeded. |
| 327 | fi |
| 328 | |
| 329 | if as_func_ret_success; then |
| 330 | : |
| 331 | else |
| 332 | exitcode=1 |
| 333 | echo as_func_ret_success failed. |
| 334 | fi |
| 335 | |
| 336 | if as_func_ret_failure; then |
| 337 | exitcode=1 |
| 338 | echo as_func_ret_failure succeeded. |
| 339 | fi |
| 340 | |
| 341 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 342 | : |
| 343 | else |
| 344 | exitcode=1 |
| 345 | echo positional parameters were not saved. |
| 346 | fi |
| 347 | |
| 348 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 349 | |
| 350 | ( |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 351 | as_lineno_1=$LINENO |
| 352 | as_lineno_2=$LINENO |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 353 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 354 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 355 | |
| 356 | _ASEOF |
| 357 | }; then |
| 358 | break |
| 359 | fi |
| 360 | |
| 361 | fi |
| 362 | |
| 363 | done |
| 364 | |
| 365 | if test "x$CONFIG_SHELL" != x; then |
| 366 | for as_var in BASH_ENV ENV |
| 367 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 368 | done |
| 369 | export CONFIG_SHELL |
| 370 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 371 | fi |
| 372 | |
| 373 | |
| 374 | if test $as_have_required = no; then |
| 375 | echo This script requires a shell more modern than all the |
| 376 | echo shells that I found on your system. Please install a |
| 377 | echo modern shell, or manually run the script under such a |
| 378 | echo shell if you do have one. |
| 379 | { (exit 1); exit 1; } |
| 380 | fi |
| 381 | |
| 382 | |
| 383 | fi |
| 384 | |
| 385 | fi |
| 386 | |
| 387 | |
| 388 | |
| 389 | (eval "as_func_return () { |
| 390 | (exit \$1) |
| 391 | } |
| 392 | as_func_success () { |
| 393 | as_func_return 0 |
| 394 | } |
| 395 | as_func_failure () { |
| 396 | as_func_return 1 |
| 397 | } |
| 398 | as_func_ret_success () { |
| 399 | return 0 |
| 400 | } |
| 401 | as_func_ret_failure () { |
| 402 | return 1 |
| 403 | } |
| 404 | |
| 405 | exitcode=0 |
| 406 | if as_func_success; then |
| 407 | : |
| 408 | else |
| 409 | exitcode=1 |
| 410 | echo as_func_success failed. |
| 411 | fi |
| 412 | |
| 413 | if as_func_failure; then |
| 414 | exitcode=1 |
| 415 | echo as_func_failure succeeded. |
| 416 | fi |
| 417 | |
| 418 | if as_func_ret_success; then |
| 419 | : |
| 420 | else |
| 421 | exitcode=1 |
| 422 | echo as_func_ret_success failed. |
| 423 | fi |
| 424 | |
| 425 | if as_func_ret_failure; then |
| 426 | exitcode=1 |
| 427 | echo as_func_ret_failure succeeded. |
| 428 | fi |
| 429 | |
| 430 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 431 | : |
| 432 | else |
| 433 | exitcode=1 |
| 434 | echo positional parameters were not saved. |
| 435 | fi |
| 436 | |
| 437 | test \$exitcode = 0") || { |
| 438 | echo No shell found that supports shell functions. |
| 439 | echo Please tell bug-autoconf@gnu.org about your system, |
| 440 | echo including any error possibly output before this message. |
| 441 | echo This can help us improve future autoconf versions. |
| 442 | echo Configuration will now proceed without shell functions. |
| 443 | } |
| 444 | |
| 445 | |
| 446 | |
| 447 | as_lineno_1=$LINENO |
| 448 | as_lineno_2=$LINENO |
| 449 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 450 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 451 | |
| 452 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 453 | # uniformly replaced by the line number. The first 'sed' inserts a |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 454 | # line-number line after each line using $LINENO; the second 'sed' |
| 455 | # does the real work. The second script uses 'N' to pair each |
| 456 | # line-number line with the line containing $LINENO, and appends |
| 457 | # trailing '-' during substitution so that $LINENO is not a special |
| 458 | # case at line end. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 459 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 460 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 461 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 462 | sed -n ' |
| 463 | p |
| 464 | /[$]LINENO/= |
| 465 | ' <$as_myself | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 466 | sed ' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 467 | s/[$]LINENO.*/&-/ |
| 468 | t lineno |
| 469 | b |
| 470 | :lineno |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 471 | N |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 472 | :loop |
| 473 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 474 | t loop |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 475 | s/-\n.*// |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 476 | ' >$as_me.lineno && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 477 | chmod +x "$as_me.lineno" || |
| 478 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 479 | { (exit 1); exit 1; }; } |
| 480 | |
| 481 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 482 | # (the dirname of $[0] is not the place where we might find the |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 483 | # original and so on. Autoconf is especially sensitive to this). |
| 484 | . "./$as_me.lineno" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 485 | # Exit status is that of the last command. |
| 486 | exit |
| 487 | } |
| 488 | |
| 489 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 490 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 491 | as_dirname=dirname |
| 492 | else |
| 493 | as_dirname=false |
| 494 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 495 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 496 | ECHO_C= ECHO_N= ECHO_T= |
| 497 | case `echo -n x` in |
| 498 | -n*) |
| 499 | case `echo 'x\c'` in |
| 500 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 501 | *) ECHO_C='\c';; |
| 502 | esac;; |
| 503 | *) |
| 504 | ECHO_N='-n';; |
| 505 | esac |
| 506 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 507 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 508 | as_expr=expr |
| 509 | else |
| 510 | as_expr=false |
| 511 | fi |
| 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
| 518 | mkdir conf$$.dir 2>/dev/null |
| 519 | fi |
| 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 522 | as_ln_s='ln -s' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 526 | # In both cases, we have to default to `cp -p'. |
| 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 528 | as_ln_s='cp -p' |
| 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
| 532 | as_ln_s='cp -p' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 533 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 534 | else |
| 535 | as_ln_s='cp -p' |
| 536 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
| 541 | as_mkdir_p=: |
| 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 547 | if test -x / >/dev/null 2>&1; then |
| 548 | as_test_x='test -x' |
| 549 | else |
| 550 | if ls -dL / >/dev/null 2>&1; then |
| 551 | as_ls_L_option=L |
| 552 | else |
| 553 | as_ls_L_option= |
| 554 | fi |
| 555 | as_test_x=' |
| 556 | eval sh -c '\'' |
| 557 | if test -d "$1"; then |
| 558 | test -d "$1/."; |
| 559 | else |
| 560 | case $1 in |
| 561 | -*)set "./$1";; |
| 562 | esac; |
| 563 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 564 | ???[sx]*):;;*)false;;esac;fi |
| 565 | '\'' sh |
| 566 | ' |
| 567 | fi |
| 568 | as_executable_p=$as_test_x |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 569 | |
| 570 | # Sed expression to map a string onto a valid CPP name. |
| 571 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 572 | |
| 573 | # Sed expression to map a string onto a valid variable name. |
| 574 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 575 | |
| 576 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 577 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 578 | exec 7<&0 </dev/null 6>&1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 579 | |
| 580 | # Name of the host. |
| 581 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 582 | # so uname gets run too. |
| 583 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 584 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 585 | # |
| 586 | # Initializations. |
| 587 | # |
| 588 | ac_default_prefix=/usr/local |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 589 | ac_clean_files= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 590 | ac_config_libobj_dir=. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 591 | LIBOBJS= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 592 | cross_compiling=no |
| 593 | subdirs= |
| 594 | MFLAGS= |
| 595 | MAKEFLAGS= |
| 596 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 597 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 598 | # Identity of this package. |
| 599 | PACKAGE_NAME='Red Hat elfutils' |
| 600 | PACKAGE_TARNAME='elfutils' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 601 | PACKAGE_VERSION='0.138' |
| 602 | PACKAGE_STRING='Red Hat elfutils 0.138' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 603 | PACKAGE_BUGREPORT='http://bugzilla.redhat.com/bugzilla/' |
| 604 | |
| 605 | ac_unique_file="libelf/libelf.h" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 606 | ac_subst_vars='LTLIBOBJS |
| 607 | LIBOBJS |
| 608 | eu_version |
| 609 | MSGMERGE |
| 610 | XGETTEXT_015 |
| 611 | XGETTEXT |
| 612 | GMSGFMT_015 |
| 613 | MSGFMT_015 |
| 614 | GMSGFMT |
| 615 | MSGFMT |
| 616 | USE_NLS |
| 617 | STANDALONE_FALSE |
| 618 | STANDALONE_TRUE |
| 619 | HAVE_LIBASM_FALSE |
| 620 | HAVE_LIBASM_TRUE |
| 621 | LIBEBL_SUBDIR |
| 622 | TESTS_RPATH_FALSE |
| 623 | TESTS_RPATH_TRUE |
| 624 | BUILD_STATIC_FALSE |
| 625 | BUILD_STATIC_TRUE |
| 626 | GCOV_FALSE |
| 627 | GCOV_TRUE |
| 628 | GPROF_FALSE |
| 629 | GPROF_TRUE |
| 630 | DEBUGPRED |
| 631 | MUDFLAP_FALSE |
| 632 | MUDFLAP_TRUE |
| 633 | NEVER_FALSE |
| 634 | NEVER_TRUE |
| 635 | base_cpu |
| 636 | NATIVE_LD_FALSE |
| 637 | NATIVE_LD_TRUE |
| 638 | DATADIRNAME |
| 639 | LOCALEDIR |
| 640 | LEXLIB |
| 641 | LEX_OUTPUT_ROOT |
| 642 | LEX |
| 643 | YFLAGS |
| 644 | YACC |
| 645 | RANLIB |
| 646 | am__fastdepCC_FALSE |
| 647 | am__fastdepCC_TRUE |
| 648 | CCDEPMODE |
| 649 | AMDEPBACKSLASH |
| 650 | AMDEP_FALSE |
| 651 | AMDEP_TRUE |
| 652 | am__quote |
| 653 | am__include |
| 654 | DEPDIR |
| 655 | OBJEXT |
| 656 | EXEEXT |
| 657 | ac_ct_CC |
| 658 | CPPFLAGS |
| 659 | LDFLAGS |
| 660 | CFLAGS |
| 661 | CC |
| 662 | USE_TLS_FALSE |
| 663 | USE_TLS_TRUE |
| 664 | host_os |
| 665 | host_vendor |
| 666 | host_cpu |
| 667 | host |
| 668 | build_os |
| 669 | build_vendor |
| 670 | build_cpu |
| 671 | build |
| 672 | MODVERSION |
| 673 | MAINT |
| 674 | MAINTAINER_MODE_FALSE |
| 675 | MAINTAINER_MODE_TRUE |
| 676 | am__untar |
| 677 | am__tar |
| 678 | AMTAR |
| 679 | am__leading_dot |
| 680 | SET_MAKE |
| 681 | AWK |
| 682 | mkdir_p |
| 683 | MKDIR_P |
| 684 | INSTALL_STRIP_PROGRAM |
| 685 | STRIP |
| 686 | install_sh |
| 687 | MAKEINFO |
| 688 | AUTOHEADER |
| 689 | AUTOMAKE |
| 690 | AUTOCONF |
| 691 | ACLOCAL |
| 692 | VERSION |
| 693 | PACKAGE |
| 694 | CYGPATH_W |
| 695 | am__isrc |
| 696 | INSTALL_DATA |
| 697 | INSTALL_SCRIPT |
| 698 | INSTALL_PROGRAM |
| 699 | target_alias |
| 700 | host_alias |
| 701 | build_alias |
| 702 | LIBS |
| 703 | ECHO_T |
| 704 | ECHO_N |
| 705 | ECHO_C |
| 706 | DEFS |
| 707 | mandir |
| 708 | localedir |
| 709 | libdir |
| 710 | psdir |
| 711 | pdfdir |
| 712 | dvidir |
| 713 | htmldir |
| 714 | infodir |
| 715 | docdir |
| 716 | oldincludedir |
| 717 | includedir |
| 718 | localstatedir |
| 719 | sharedstatedir |
| 720 | sysconfdir |
| 721 | datadir |
| 722 | datarootdir |
| 723 | libexecdir |
| 724 | sbindir |
| 725 | bindir |
| 726 | program_transform_name |
| 727 | prefix |
| 728 | exec_prefix |
| 729 | PACKAGE_BUGREPORT |
| 730 | PACKAGE_STRING |
| 731 | PACKAGE_VERSION |
| 732 | PACKAGE_TARNAME |
| 733 | PACKAGE_NAME |
| 734 | PATH_SEPARATOR |
| 735 | SHELL' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 736 | ac_subst_files='' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 737 | ac_user_opts=' |
| 738 | enable_option_checking |
| 739 | enable_maintainer_mode |
| 740 | enable_tls |
| 741 | enable_dependency_tracking |
| 742 | enable_largefile |
| 743 | enable_generic |
| 744 | enable_mudflap |
| 745 | enable_debugpred |
| 746 | enable_gprof |
| 747 | enable_gcov |
| 748 | enable_tests_rpath |
| 749 | enable_libebl_subdir |
| 750 | enable_nls |
| 751 | ' |
| 752 | ac_precious_vars='build_alias |
| 753 | host_alias |
| 754 | target_alias |
| 755 | CC |
| 756 | CFLAGS |
| 757 | LDFLAGS |
| 758 | LIBS |
| 759 | CPPFLAGS |
| 760 | YACC |
| 761 | YFLAGS' |
| 762 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 763 | |
| 764 | # Initialize some variables set by options. |
| 765 | ac_init_help= |
| 766 | ac_init_version=false |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 767 | ac_unrecognized_opts= |
| 768 | ac_unrecognized_sep= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 769 | # The variables have the same names as the options, with |
| 770 | # dashes changed to underlines. |
| 771 | cache_file=/dev/null |
| 772 | exec_prefix=NONE |
| 773 | no_create= |
| 774 | no_recursion= |
| 775 | prefix=NONE |
| 776 | program_prefix=NONE |
| 777 | program_suffix=NONE |
| 778 | program_transform_name=s,x,x, |
| 779 | silent= |
| 780 | site= |
| 781 | srcdir= |
| 782 | verbose= |
| 783 | x_includes=NONE |
| 784 | x_libraries=NONE |
| 785 | |
| 786 | # Installation directory options. |
| 787 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 788 | # and all the variables that are supposed to be based on exec_prefix |
| 789 | # by default will actually change. |
| 790 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 791 | # (The list follows the same order as the GNU Coding Standards.) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 792 | bindir='${exec_prefix}/bin' |
| 793 | sbindir='${exec_prefix}/sbin' |
| 794 | libexecdir='${exec_prefix}/libexec' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 795 | datarootdir='${prefix}/share' |
| 796 | datadir='${datarootdir}' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 797 | sysconfdir='${prefix}/etc' |
| 798 | sharedstatedir='${prefix}/com' |
| 799 | localstatedir='${prefix}/var' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 800 | includedir='${prefix}/include' |
| 801 | oldincludedir='/usr/include' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 802 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 803 | infodir='${datarootdir}/info' |
| 804 | htmldir='${docdir}' |
| 805 | dvidir='${docdir}' |
| 806 | pdfdir='${docdir}' |
| 807 | psdir='${docdir}' |
| 808 | libdir='${exec_prefix}/lib' |
| 809 | localedir='${datarootdir}/locale' |
| 810 | mandir='${datarootdir}/man' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 811 | |
| 812 | ac_prev= |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 813 | ac_dashdash= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 814 | for ac_option |
| 815 | do |
| 816 | # If the previous option needs an argument, assign it. |
| 817 | if test -n "$ac_prev"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 818 | eval $ac_prev=\$ac_option |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 819 | ac_prev= |
| 820 | continue |
| 821 | fi |
| 822 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 823 | case $ac_option in |
| 824 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 825 | *) ac_optarg=yes ;; |
| 826 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 827 | |
| 828 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 829 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 830 | case $ac_dashdash$ac_option in |
| 831 | --) |
| 832 | ac_dashdash=yes ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 833 | |
| 834 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 835 | ac_prev=bindir ;; |
| 836 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 837 | bindir=$ac_optarg ;; |
| 838 | |
| 839 | -build | --build | --buil | --bui | --bu) |
| 840 | ac_prev=build_alias ;; |
| 841 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 842 | build_alias=$ac_optarg ;; |
| 843 | |
| 844 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 845 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 846 | ac_prev=cache_file ;; |
| 847 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 848 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 849 | cache_file=$ac_optarg ;; |
| 850 | |
| 851 | --config-cache | -C) |
| 852 | cache_file=config.cache ;; |
| 853 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 854 | -datadir | --datadir | --datadi | --datad) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 855 | ac_prev=datadir ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 856 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 857 | datadir=$ac_optarg ;; |
| 858 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 859 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 860 | | --dataroo | --dataro | --datar) |
| 861 | ac_prev=datarootdir ;; |
| 862 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 863 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 864 | datarootdir=$ac_optarg ;; |
| 865 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 866 | -disable-* | --disable-*) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 867 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 868 | # Reject names that are not valid shell variable names. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 869 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 870 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 871 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 872 | ac_useropt_orig=$ac_useropt |
| 873 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 874 | case $ac_user_opts in |
| 875 | *" |
| 876 | "enable_$ac_useropt" |
| 877 | "*) ;; |
| 878 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 879 | ac_unrecognized_sep=', ';; |
| 880 | esac |
| 881 | eval enable_$ac_useropt=no ;; |
| 882 | |
| 883 | -docdir | --docdir | --docdi | --doc | --do) |
| 884 | ac_prev=docdir ;; |
| 885 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 886 | docdir=$ac_optarg ;; |
| 887 | |
| 888 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 889 | ac_prev=dvidir ;; |
| 890 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 891 | dvidir=$ac_optarg ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 892 | |
| 893 | -enable-* | --enable-*) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 894 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 895 | # Reject names that are not valid shell variable names. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 896 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 897 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 898 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 899 | ac_useropt_orig=$ac_useropt |
| 900 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 901 | case $ac_user_opts in |
| 902 | *" |
| 903 | "enable_$ac_useropt" |
| 904 | "*) ;; |
| 905 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 906 | ac_unrecognized_sep=', ';; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 907 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 908 | eval enable_$ac_useropt=\$ac_optarg ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 909 | |
| 910 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 911 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 912 | | --exec | --exe | --ex) |
| 913 | ac_prev=exec_prefix ;; |
| 914 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 915 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 916 | | --exec=* | --exe=* | --ex=*) |
| 917 | exec_prefix=$ac_optarg ;; |
| 918 | |
| 919 | -gas | --gas | --ga | --g) |
| 920 | # Obsolete; use --with-gas. |
| 921 | with_gas=yes ;; |
| 922 | |
| 923 | -help | --help | --hel | --he | -h) |
| 924 | ac_init_help=long ;; |
| 925 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 926 | ac_init_help=recursive ;; |
| 927 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 928 | ac_init_help=short ;; |
| 929 | |
| 930 | -host | --host | --hos | --ho) |
| 931 | ac_prev=host_alias ;; |
| 932 | -host=* | --host=* | --hos=* | --ho=*) |
| 933 | host_alias=$ac_optarg ;; |
| 934 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 935 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 936 | ac_prev=htmldir ;; |
| 937 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 938 | | --ht=*) |
| 939 | htmldir=$ac_optarg ;; |
| 940 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 941 | -includedir | --includedir | --includedi | --included | --include \ |
| 942 | | --includ | --inclu | --incl | --inc) |
| 943 | ac_prev=includedir ;; |
| 944 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 945 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 946 | includedir=$ac_optarg ;; |
| 947 | |
| 948 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 949 | ac_prev=infodir ;; |
| 950 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 951 | infodir=$ac_optarg ;; |
| 952 | |
| 953 | -libdir | --libdir | --libdi | --libd) |
| 954 | ac_prev=libdir ;; |
| 955 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 956 | libdir=$ac_optarg ;; |
| 957 | |
| 958 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 959 | | --libexe | --libex | --libe) |
| 960 | ac_prev=libexecdir ;; |
| 961 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 962 | | --libexe=* | --libex=* | --libe=*) |
| 963 | libexecdir=$ac_optarg ;; |
| 964 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 965 | -localedir | --localedir | --localedi | --localed | --locale) |
| 966 | ac_prev=localedir ;; |
| 967 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 968 | localedir=$ac_optarg ;; |
| 969 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 970 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 971 | | --localstate | --localstat | --localsta | --localst | --locals) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 972 | ac_prev=localstatedir ;; |
| 973 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 974 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 975 | localstatedir=$ac_optarg ;; |
| 976 | |
| 977 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 978 | ac_prev=mandir ;; |
| 979 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 980 | mandir=$ac_optarg ;; |
| 981 | |
| 982 | -nfp | --nfp | --nf) |
| 983 | # Obsolete; use --without-fp. |
| 984 | with_fp=no ;; |
| 985 | |
| 986 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 987 | | --no-cr | --no-c | -n) |
| 988 | no_create=yes ;; |
| 989 | |
| 990 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 991 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 992 | no_recursion=yes ;; |
| 993 | |
| 994 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 995 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 996 | | --oldin | --oldi | --old | --ol | --o) |
| 997 | ac_prev=oldincludedir ;; |
| 998 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 999 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1000 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1001 | oldincludedir=$ac_optarg ;; |
| 1002 | |
| 1003 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1004 | ac_prev=prefix ;; |
| 1005 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1006 | prefix=$ac_optarg ;; |
| 1007 | |
| 1008 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1009 | | --program-pre | --program-pr | --program-p) |
| 1010 | ac_prev=program_prefix ;; |
| 1011 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1012 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1013 | program_prefix=$ac_optarg ;; |
| 1014 | |
| 1015 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1016 | | --program-suf | --program-su | --program-s) |
| 1017 | ac_prev=program_suffix ;; |
| 1018 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1019 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1020 | program_suffix=$ac_optarg ;; |
| 1021 | |
| 1022 | -program-transform-name | --program-transform-name \ |
| 1023 | | --program-transform-nam | --program-transform-na \ |
| 1024 | | --program-transform-n | --program-transform- \ |
| 1025 | | --program-transform | --program-transfor \ |
| 1026 | | --program-transfo | --program-transf \ |
| 1027 | | --program-trans | --program-tran \ |
| 1028 | | --progr-tra | --program-tr | --program-t) |
| 1029 | ac_prev=program_transform_name ;; |
| 1030 | -program-transform-name=* | --program-transform-name=* \ |
| 1031 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1032 | | --program-transform-n=* | --program-transform-=* \ |
| 1033 | | --program-transform=* | --program-transfor=* \ |
| 1034 | | --program-transfo=* | --program-transf=* \ |
| 1035 | | --program-trans=* | --program-tran=* \ |
| 1036 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1037 | program_transform_name=$ac_optarg ;; |
| 1038 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1039 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1040 | ac_prev=pdfdir ;; |
| 1041 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1042 | pdfdir=$ac_optarg ;; |
| 1043 | |
| 1044 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1045 | ac_prev=psdir ;; |
| 1046 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1047 | psdir=$ac_optarg ;; |
| 1048 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1049 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1050 | | -silent | --silent | --silen | --sile | --sil) |
| 1051 | silent=yes ;; |
| 1052 | |
| 1053 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1054 | ac_prev=sbindir ;; |
| 1055 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1056 | | --sbi=* | --sb=*) |
| 1057 | sbindir=$ac_optarg ;; |
| 1058 | |
| 1059 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1060 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1061 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1062 | | --sha | --sh) |
| 1063 | ac_prev=sharedstatedir ;; |
| 1064 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1065 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1066 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1067 | | --sha=* | --sh=*) |
| 1068 | sharedstatedir=$ac_optarg ;; |
| 1069 | |
| 1070 | -site | --site | --sit) |
| 1071 | ac_prev=site ;; |
| 1072 | -site=* | --site=* | --sit=*) |
| 1073 | site=$ac_optarg ;; |
| 1074 | |
| 1075 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1076 | ac_prev=srcdir ;; |
| 1077 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1078 | srcdir=$ac_optarg ;; |
| 1079 | |
| 1080 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1081 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1082 | ac_prev=sysconfdir ;; |
| 1083 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1084 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1085 | sysconfdir=$ac_optarg ;; |
| 1086 | |
| 1087 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1088 | ac_prev=target_alias ;; |
| 1089 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1090 | target_alias=$ac_optarg ;; |
| 1091 | |
| 1092 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1093 | verbose=yes ;; |
| 1094 | |
| 1095 | -version | --version | --versio | --versi | --vers | -V) |
| 1096 | ac_init_version=: ;; |
| 1097 | |
| 1098 | -with-* | --with-*) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1099 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1100 | # Reject names that are not valid shell variable names. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1101 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1102 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1103 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1104 | ac_useropt_orig=$ac_useropt |
| 1105 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1106 | case $ac_user_opts in |
| 1107 | *" |
| 1108 | "with_$ac_useropt" |
| 1109 | "*) ;; |
| 1110 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1111 | ac_unrecognized_sep=', ';; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1112 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1113 | eval with_$ac_useropt=\$ac_optarg ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1114 | |
| 1115 | -without-* | --without-*) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1116 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1117 | # Reject names that are not valid shell variable names. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1118 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1119 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1120 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1121 | ac_useropt_orig=$ac_useropt |
| 1122 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1123 | case $ac_user_opts in |
| 1124 | *" |
| 1125 | "with_$ac_useropt" |
| 1126 | "*) ;; |
| 1127 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1128 | ac_unrecognized_sep=', ';; |
| 1129 | esac |
| 1130 | eval with_$ac_useropt=no ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1131 | |
| 1132 | --x) |
| 1133 | # Obsolete; use --with-x. |
| 1134 | with_x=yes ;; |
| 1135 | |
| 1136 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1137 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1138 | ac_prev=x_includes ;; |
| 1139 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1140 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1141 | x_includes=$ac_optarg ;; |
| 1142 | |
| 1143 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1144 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1145 | ac_prev=x_libraries ;; |
| 1146 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1147 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1148 | x_libraries=$ac_optarg ;; |
| 1149 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1150 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1151 | Try \`$0 --help' for more information." >&2 |
| 1152 | { (exit 1); exit 1; }; } |
| 1153 | ;; |
| 1154 | |
| 1155 | *=*) |
| 1156 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1157 | # Reject names that are not valid shell variable names. |
| 1158 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1159 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1160 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1161 | eval $ac_envvar=\$ac_optarg |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1162 | export $ac_envvar ;; |
| 1163 | |
| 1164 | *) |
| 1165 | # FIXME: should be removed in autoconf 3.0. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1166 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1167 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1168 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1169 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1170 | ;; |
| 1171 | |
| 1172 | esac |
| 1173 | done |
| 1174 | |
| 1175 | if test -n "$ac_prev"; then |
| 1176 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1177 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1178 | { (exit 1); exit 1; }; } |
| 1179 | fi |
| 1180 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1181 | if test -n "$ac_unrecognized_opts"; then |
| 1182 | case $enable_option_checking in |
| 1183 | no) ;; |
| 1184 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1185 | { (exit 1); exit 1; }; } ;; |
| 1186 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1187 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1188 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1189 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1190 | # Check all directory arguments for consistency. |
| 1191 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1192 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1193 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1194 | libdir localedir mandir |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1195 | do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1196 | eval ac_val=\$$ac_var |
| 1197 | # Remove trailing slashes. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1198 | case $ac_val in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1199 | */ ) |
| 1200 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1201 | eval $ac_var=\$ac_val;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1202 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1203 | # Be sure to have absolute directory names. |
| 1204 | case $ac_val in |
| 1205 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1206 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1207 | esac |
| 1208 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1209 | { (exit 1); exit 1; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1210 | done |
| 1211 | |
| 1212 | # There might be people who depend on the old broken behavior: `$host' |
| 1213 | # used to hold the argument of --host etc. |
| 1214 | # FIXME: To remove some day. |
| 1215 | build=$build_alias |
| 1216 | host=$host_alias |
| 1217 | target=$target_alias |
| 1218 | |
| 1219 | # FIXME: To remove some day. |
| 1220 | if test "x$host_alias" != x; then |
| 1221 | if test "x$build_alias" = x; then |
| 1222 | cross_compiling=maybe |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1223 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1224 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1225 | elif test "x$build_alias" != "x$host_alias"; then |
| 1226 | cross_compiling=yes |
| 1227 | fi |
| 1228 | fi |
| 1229 | |
| 1230 | ac_tool_prefix= |
| 1231 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1232 | |
| 1233 | test "$silent" = yes && exec 6>/dev/null |
| 1234 | |
| 1235 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1236 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1237 | ac_ls_di=`ls -di .` && |
| 1238 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1239 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
| 1240 | { (exit 1); exit 1; }; } |
| 1241 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1242 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1243 | { (exit 1); exit 1; }; } |
| 1244 | |
| 1245 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1246 | # Find the source files, if location was not specified. |
| 1247 | if test -z "$srcdir"; then |
| 1248 | ac_srcdir_defaulted=yes |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1249 | # Try the directory containing this script, then the parent directory. |
| 1250 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1251 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1252 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1253 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1254 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1255 | $as_echo X"$as_myself" | |
| 1256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1257 | s//\1/ |
| 1258 | q |
| 1259 | } |
| 1260 | /^X\(\/\/\)[^/].*/{ |
| 1261 | s//\1/ |
| 1262 | q |
| 1263 | } |
| 1264 | /^X\(\/\/\)$/{ |
| 1265 | s//\1/ |
| 1266 | q |
| 1267 | } |
| 1268 | /^X\(\/\).*/{ |
| 1269 | s//\1/ |
| 1270 | q |
| 1271 | } |
| 1272 | s/.*/./; q'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1273 | srcdir=$ac_confdir |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1274 | if test ! -r "$srcdir/$ac_unique_file"; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1275 | srcdir=.. |
| 1276 | fi |
| 1277 | else |
| 1278 | ac_srcdir_defaulted=no |
| 1279 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1280 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1281 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1282 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1283 | { (exit 1); exit 1; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1284 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1285 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1286 | ac_abs_confdir=`( |
| 1287 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1288 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1289 | pwd)` |
| 1290 | # When building in place, set srcdir=. |
| 1291 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1292 | srcdir=. |
| 1293 | fi |
| 1294 | # Remove unnecessary trailing slashes from srcdir. |
| 1295 | # Double slashes in file names in object file debugging info |
| 1296 | # mess up M-x gdb in Emacs. |
| 1297 | case $srcdir in |
| 1298 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1299 | esac |
| 1300 | for ac_var in $ac_precious_vars; do |
| 1301 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1302 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1303 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1304 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1305 | done |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1306 | |
| 1307 | # |
| 1308 | # Report the --help message. |
| 1309 | # |
| 1310 | if test "$ac_init_help" = "long"; then |
| 1311 | # Omit some internal or obsolete options to make the list less imposing. |
| 1312 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1313 | cat <<_ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1314 | \`configure' configures Red Hat elfutils 0.138 to adapt to many kinds of systems. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1315 | |
| 1316 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1317 | |
| 1318 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1319 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1320 | |
| 1321 | Defaults for the options are specified in brackets. |
| 1322 | |
| 1323 | Configuration: |
| 1324 | -h, --help display this help and exit |
| 1325 | --help=short display options specific to this package |
| 1326 | --help=recursive display the short help of all the included packages |
| 1327 | -V, --version display version information and exit |
| 1328 | -q, --quiet, --silent do not print \`checking...' messages |
| 1329 | --cache-file=FILE cache test results in FILE [disabled] |
| 1330 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1331 | -n, --no-create do not create output files |
| 1332 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1333 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1334 | Installation directories: |
| 1335 | --prefix=PREFIX install architecture-independent files in PREFIX |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1336 | [$ac_default_prefix] |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1337 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1338 | [PREFIX] |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1339 | |
| 1340 | By default, \`make install' will install all the files in |
| 1341 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1342 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1343 | for instance \`--prefix=\$HOME'. |
| 1344 | |
| 1345 | For better control, use the options below. |
| 1346 | |
| 1347 | Fine tuning of the installation directories: |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1348 | --bindir=DIR user executables [EPREFIX/bin] |
| 1349 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1350 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1351 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1352 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1353 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1354 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1355 | --includedir=DIR C header files [PREFIX/include] |
| 1356 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1357 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1358 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1359 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1360 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1361 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1362 | --docdir=DIR documentation root [DATAROOTDIR/doc/elfutils] |
| 1363 | --htmldir=DIR html documentation [DOCDIR] |
| 1364 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1365 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1366 | --psdir=DIR ps documentation [DOCDIR] |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1367 | _ACEOF |
| 1368 | |
| 1369 | cat <<\_ACEOF |
| 1370 | |
| 1371 | Program names: |
| 1372 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1373 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1374 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1375 | |
| 1376 | System types: |
| 1377 | --build=BUILD configure for building on BUILD [guessed] |
| 1378 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1379 | _ACEOF |
| 1380 | fi |
| 1381 | |
| 1382 | if test -n "$ac_init_help"; then |
| 1383 | case $ac_init_help in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1384 | short | recursive ) echo "Configuration of Red Hat elfutils 0.138:";; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1385 | esac |
| 1386 | cat <<\_ACEOF |
| 1387 | |
| 1388 | Optional Features: |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1389 | --disable-option-checking ignore unrecognized --enable/--with options |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1390 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1391 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1392 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1393 | (and sometimes confusing) to the casual installer |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1394 | --enable-tls enable use of thread local storage |
| 1395 | --disable-dependency-tracking speeds up one-time build |
| 1396 | --enable-dependency-tracking do not reject slow dependency extractors |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1397 | --disable-largefile omit support for large files |
| 1398 | --disable-generic do not build generic linker |
| 1399 | --enable-mudflap build binaries with mudflap instrumentation |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1400 | --enable-debugpred build binaries with support to debug branch |
| 1401 | prediction |
| 1402 | --enable-gprof build binaries with gprof support |
| 1403 | --enable-gcov build binaries with gcov support |
| 1404 | --enable-tests-rpath build $ORIGIN-using rpath into tests |
| 1405 | --enable-libebl-subdir=DIR |
| 1406 | install libebl_CPU modules in $(libdir)/DIR |
| 1407 | --disable-nls do not use Native Language Support |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1408 | |
| 1409 | Some influential environment variables: |
| 1410 | CC C compiler command |
| 1411 | CFLAGS C compiler flags |
| 1412 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1413 | nonstandard directory <lib dir> |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1414 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1415 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1416 | you have headers in a nonstandard directory <include dir> |
| 1417 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1418 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1419 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1420 | This script will default YFLAGS to the empty string to avoid a |
| 1421 | default value of `-d' given by some make applications. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1422 | |
| 1423 | Use these variables to override the choices made by `configure' or to help |
| 1424 | it to find libraries and programs with nonstandard names/locations. |
| 1425 | |
| 1426 | Report bugs to <http://bugzilla.redhat.com/bugzilla/>. |
| 1427 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1428 | ac_status=$? |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1429 | fi |
| 1430 | |
| 1431 | if test "$ac_init_help" = "recursive"; then |
| 1432 | # If there are subdirs, report their specific --help. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1433 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1434 | test -d "$ac_dir" || |
| 1435 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1436 | continue |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1437 | ac_builddir=. |
| 1438 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1439 | case "$ac_dir" in |
| 1440 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1441 | *) |
| 1442 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1443 | # A ".." for each directory in $ac_dir_suffix. |
| 1444 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1445 | case $ac_top_builddir_sub in |
| 1446 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1447 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1448 | esac ;; |
| 1449 | esac |
| 1450 | ac_abs_top_builddir=$ac_pwd |
| 1451 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1452 | # for backward compatibility: |
| 1453 | ac_top_builddir=$ac_top_build_prefix |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1454 | |
| 1455 | case $srcdir in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1456 | .) # We are building in place. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1457 | ac_srcdir=. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1458 | ac_top_srcdir=$ac_top_builddir_sub |
| 1459 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1460 | [\\/]* | ?:[\\/]* ) # Absolute name. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1461 | ac_srcdir=$srcdir$ac_dir_suffix; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1462 | ac_top_srcdir=$srcdir |
| 1463 | ac_abs_top_srcdir=$srcdir ;; |
| 1464 | *) # Relative name. |
| 1465 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1466 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1467 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1468 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1469 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1470 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1471 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1472 | # Check for guested configure. |
| 1473 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1474 | echo && |
| 1475 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1476 | elif test -f "$ac_srcdir/configure"; then |
| 1477 | echo && |
| 1478 | $SHELL "$ac_srcdir/configure" --help=recursive |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1479 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1480 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1481 | fi || ac_status=$? |
| 1482 | cd "$ac_pwd" || { ac_status=$?; break; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1483 | done |
| 1484 | fi |
| 1485 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1486 | test -n "$ac_init_help" && exit $ac_status |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1487 | if $ac_init_version; then |
| 1488 | cat <<\_ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1489 | Red Hat elfutils configure 0.138 |
| 1490 | generated by GNU Autoconf 2.63 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1491 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1492 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1493 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1494 | This configure script is free software; the Free Software Foundation |
| 1495 | gives unlimited permission to copy, distribute and modify it. |
| 1496 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1497 | Copyright (C) 1996-2007, 2008 Red Hat, Inc. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1498 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1499 | exit |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1500 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1501 | cat >config.log <<_ACEOF |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1502 | This file contains any messages produced by compilers while |
| 1503 | running configure, to aid debugging if configure makes a mistake. |
| 1504 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1505 | It was created by Red Hat elfutils $as_me 0.138, which was |
| 1506 | generated by GNU Autoconf 2.63. Invocation command line was |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1507 | |
| 1508 | $ $0 $@ |
| 1509 | |
| 1510 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1511 | exec 5>>config.log |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1512 | { |
| 1513 | cat <<_ASUNAME |
| 1514 | ## --------- ## |
| 1515 | ## Platform. ## |
| 1516 | ## --------- ## |
| 1517 | |
| 1518 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1519 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1520 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1521 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1522 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1523 | |
| 1524 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1525 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1526 | |
| 1527 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1528 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1529 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1530 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1531 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1532 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1533 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1534 | |
| 1535 | _ASUNAME |
| 1536 | |
| 1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1538 | for as_dir in $PATH |
| 1539 | do |
| 1540 | IFS=$as_save_IFS |
| 1541 | test -z "$as_dir" && as_dir=. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1542 | $as_echo "PATH: $as_dir" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1543 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1544 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1545 | |
| 1546 | } >&5 |
| 1547 | |
| 1548 | cat >&5 <<_ACEOF |
| 1549 | |
| 1550 | |
| 1551 | ## ----------- ## |
| 1552 | ## Core tests. ## |
| 1553 | ## ----------- ## |
| 1554 | |
| 1555 | _ACEOF |
| 1556 | |
| 1557 | |
| 1558 | # Keep a trace of the command line. |
| 1559 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1560 | # Strip out --silent because we don't want to record it for future runs. |
| 1561 | # Also quote any args containing shell meta-characters. |
| 1562 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1563 | ac_configure_args= |
| 1564 | ac_configure_args0= |
| 1565 | ac_configure_args1= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1566 | ac_must_keep_next=false |
| 1567 | for ac_pass in 1 2 |
| 1568 | do |
| 1569 | for ac_arg |
| 1570 | do |
| 1571 | case $ac_arg in |
| 1572 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1573 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1574 | | -silent | --silent | --silen | --sile | --sil) |
| 1575 | continue ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1576 | *\'*) |
| 1577 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1578 | esac |
| 1579 | case $ac_pass in |
| 1580 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1581 | 2) |
| 1582 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1583 | if test $ac_must_keep_next = true; then |
| 1584 | ac_must_keep_next=false # Got value, back to normal. |
| 1585 | else |
| 1586 | case $ac_arg in |
| 1587 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1588 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1589 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1590 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1591 | case "$ac_configure_args0 " in |
| 1592 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1593 | esac |
| 1594 | ;; |
| 1595 | -* ) ac_must_keep_next=true ;; |
| 1596 | esac |
| 1597 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1598 | ac_configure_args="$ac_configure_args '$ac_arg'" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1599 | ;; |
| 1600 | esac |
| 1601 | done |
| 1602 | done |
| 1603 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1604 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1605 | |
| 1606 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1607 | # config.log. We remove comments because anyway the quotes in there |
| 1608 | # would cause problems or look ugly. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1609 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1610 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1611 | trap 'exit_status=$? |
| 1612 | # Save into config.log some information that might help in debugging. |
| 1613 | { |
| 1614 | echo |
| 1615 | |
| 1616 | cat <<\_ASBOX |
| 1617 | ## ---------------- ## |
| 1618 | ## Cache variables. ## |
| 1619 | ## ---------------- ## |
| 1620 | _ASBOX |
| 1621 | echo |
| 1622 | # The following way of writing the cache mishandles newlines in values, |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1623 | ( |
| 1624 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1625 | eval ac_val=\$$ac_var |
| 1626 | case $ac_val in #( |
| 1627 | *${as_nl}*) |
| 1628 | case $ac_var in #( |
| 1629 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1630 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1631 | esac |
| 1632 | case $ac_var in #( |
| 1633 | _ | IFS | as_nl) ;; #( |
| 1634 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1635 | *) $as_unset $ac_var ;; |
| 1636 | esac ;; |
| 1637 | esac |
| 1638 | done |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1639 | (set) 2>&1 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1640 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1641 | *${as_nl}ac_space=\ *) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1642 | sed -n \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1643 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1644 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1645 | ;; #( |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1646 | *) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1647 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1648 | ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1649 | esac | |
| 1650 | sort |
| 1651 | ) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1652 | echo |
| 1653 | |
| 1654 | cat <<\_ASBOX |
| 1655 | ## ----------------- ## |
| 1656 | ## Output variables. ## |
| 1657 | ## ----------------- ## |
| 1658 | _ASBOX |
| 1659 | echo |
| 1660 | for ac_var in $ac_subst_vars |
| 1661 | do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1662 | eval ac_val=\$$ac_var |
| 1663 | case $ac_val in |
| 1664 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1665 | esac |
| 1666 | $as_echo "$ac_var='\''$ac_val'\''" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1667 | done | sort |
| 1668 | echo |
| 1669 | |
| 1670 | if test -n "$ac_subst_files"; then |
| 1671 | cat <<\_ASBOX |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1672 | ## ------------------- ## |
| 1673 | ## File substitutions. ## |
| 1674 | ## ------------------- ## |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1675 | _ASBOX |
| 1676 | echo |
| 1677 | for ac_var in $ac_subst_files |
| 1678 | do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1679 | eval ac_val=\$$ac_var |
| 1680 | case $ac_val in |
| 1681 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1682 | esac |
| 1683 | $as_echo "$ac_var='\''$ac_val'\''" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1684 | done | sort |
| 1685 | echo |
| 1686 | fi |
| 1687 | |
| 1688 | if test -s confdefs.h; then |
| 1689 | cat <<\_ASBOX |
| 1690 | ## ----------- ## |
| 1691 | ## confdefs.h. ## |
| 1692 | ## ----------- ## |
| 1693 | _ASBOX |
| 1694 | echo |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1695 | cat confdefs.h |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1696 | echo |
| 1697 | fi |
| 1698 | test "$ac_signal" != 0 && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1699 | $as_echo "$as_me: caught signal $ac_signal" |
| 1700 | $as_echo "$as_me: exit $exit_status" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1701 | } >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1702 | rm -f core *.core core.conftest.* && |
| 1703 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1704 | exit $exit_status |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1705 | ' 0 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1706 | for ac_signal in 1 2 13 15; do |
| 1707 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1708 | done |
| 1709 | ac_signal=0 |
| 1710 | |
| 1711 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1712 | rm -f -r conftest* confdefs.h |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1713 | |
| 1714 | # Predefined preprocessor variables. |
| 1715 | |
| 1716 | cat >>confdefs.h <<_ACEOF |
| 1717 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1718 | _ACEOF |
| 1719 | |
| 1720 | |
| 1721 | cat >>confdefs.h <<_ACEOF |
| 1722 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1723 | _ACEOF |
| 1724 | |
| 1725 | |
| 1726 | cat >>confdefs.h <<_ACEOF |
| 1727 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1728 | _ACEOF |
| 1729 | |
| 1730 | |
| 1731 | cat >>confdefs.h <<_ACEOF |
| 1732 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1733 | _ACEOF |
| 1734 | |
| 1735 | |
| 1736 | cat >>confdefs.h <<_ACEOF |
| 1737 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1738 | _ACEOF |
| 1739 | |
| 1740 | |
| 1741 | # Let the site file select an alternate cache file if it wants to. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1742 | # Prefer an explicitly selected file to automatically selected ones. |
| 1743 | ac_site_file1=NONE |
| 1744 | ac_site_file2=NONE |
| 1745 | if test -n "$CONFIG_SITE"; then |
| 1746 | ac_site_file1=$CONFIG_SITE |
| 1747 | elif test "x$prefix" != xNONE; then |
| 1748 | ac_site_file1=$prefix/share/config.site |
| 1749 | ac_site_file2=$prefix/etc/config.site |
| 1750 | else |
| 1751 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1752 | ac_site_file2=$ac_default_prefix/etc/config.site |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1753 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1754 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1755 | do |
| 1756 | test "x$ac_site_file" = xNONE && continue |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1757 | if test -r "$ac_site_file"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1758 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1759 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1760 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1761 | . "$ac_site_file" |
| 1762 | fi |
| 1763 | done |
| 1764 | |
| 1765 | if test -r "$cache_file"; then |
| 1766 | # Some versions of bash will fail to source /dev/null (special |
| 1767 | # files actually), so we avoid doing that. |
| 1768 | if test -f "$cache_file"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1769 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1770 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1771 | case $cache_file in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1772 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1773 | *) . "./$cache_file";; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1774 | esac |
| 1775 | fi |
| 1776 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1777 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1778 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1779 | >$cache_file |
| 1780 | fi |
| 1781 | |
| 1782 | # Check that the precious variables saved in the cache have kept the same |
| 1783 | # value. |
| 1784 | ac_cache_corrupted=false |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1785 | for ac_var in $ac_precious_vars; do |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1786 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1787 | eval ac_new_set=\$ac_env_${ac_var}_set |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1788 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1789 | eval ac_new_val=\$ac_env_${ac_var}_value |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1790 | case $ac_old_set,$ac_new_set in |
| 1791 | set,) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1792 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1793 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1794 | ac_cache_corrupted=: ;; |
| 1795 | ,set) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1796 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1797 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1798 | ac_cache_corrupted=: ;; |
| 1799 | ,);; |
| 1800 | *) |
| 1801 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1802 | # differences in whitespace do not lead to failure. |
| 1803 | ac_old_val_w=`echo x $ac_old_val` |
| 1804 | ac_new_val_w=`echo x $ac_new_val` |
| 1805 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1806 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1807 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1808 | ac_cache_corrupted=: |
| 1809 | else |
| 1810 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1811 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1812 | eval $ac_var=\$ac_old_val |
| 1813 | fi |
| 1814 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1815 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1816 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1817 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1818 | fi;; |
| 1819 | esac |
| 1820 | # Pass precious variables to config.status. |
| 1821 | if test "$ac_new_set" = set; then |
| 1822 | case $ac_new_val in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1823 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1824 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1825 | esac |
| 1826 | case " $ac_configure_args " in |
| 1827 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1828 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1829 | esac |
| 1830 | fi |
| 1831 | done |
| 1832 | if $ac_cache_corrupted; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1833 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1835 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1836 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1837 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1838 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1839 | { (exit 1); exit 1; }; } |
| 1840 | fi |
| 1841 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1842 | |
| 1843 | |
| 1844 | |
| 1845 | |
| 1846 | |
| 1847 | |
| 1848 | |
| 1849 | |
| 1850 | |
| 1851 | |
| 1852 | |
| 1853 | |
| 1854 | |
| 1855 | |
| 1856 | |
| 1857 | |
| 1858 | |
| 1859 | |
| 1860 | |
| 1861 | |
| 1862 | |
| 1863 | |
| 1864 | |
| 1865 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1866 | ac_ext=c |
| 1867 | ac_cpp='$CPP $CPPFLAGS' |
| 1868 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1869 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1870 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1871 | |
| 1872 | |
| 1873 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1874 | ac_aux_dir= |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1875 | for ac_dir in config "$srcdir"/config; do |
| 1876 | if test -f "$ac_dir/install-sh"; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1877 | ac_aux_dir=$ac_dir |
| 1878 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1879 | break |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1880 | elif test -f "$ac_dir/install.sh"; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1881 | ac_aux_dir=$ac_dir |
| 1882 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1883 | break |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1884 | elif test -f "$ac_dir/shtool"; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1885 | ac_aux_dir=$ac_dir |
| 1886 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1887 | break |
| 1888 | fi |
| 1889 | done |
| 1890 | if test -z "$ac_aux_dir"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1891 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1892 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1893 | { (exit 1); exit 1; }; } |
| 1894 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1895 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1896 | # These three variables are undocumented and unsupported, |
| 1897 | # and are intended to be withdrawn in a future Autoconf release. |
| 1898 | # They can cause serious problems if a builder's source tree is in a directory |
| 1899 | # whose full name contains unusual characters. |
| 1900 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1901 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1902 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1903 | |
| 1904 | |
| 1905 | ac_config_files="$ac_config_files config/Makefile" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1910 | am__api_version='1.10' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1911 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1912 | # Find a good install program. We prefer a C program (faster), |
| 1913 | # so one script is as good as another. But avoid the broken or |
| 1914 | # incompatible versions: |
| 1915 | # SysV /etc/install, /usr/sbin/install |
| 1916 | # SunOS /usr/etc/install |
| 1917 | # IRIX /sbin/install |
| 1918 | # AIX /bin/install |
| 1919 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1920 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1921 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1922 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1923 | # OS/2's system install, which has a completely different semantic |
| 1924 | # ./install, which can be erroneously created by make from ./install.sh. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1925 | # Reject install programs that cannot install multiple files. |
| 1926 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1927 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1928 | if test -z "$INSTALL"; then |
| 1929 | if test "${ac_cv_path_install+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1930 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1931 | else |
| 1932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1933 | for as_dir in $PATH |
| 1934 | do |
| 1935 | IFS=$as_save_IFS |
| 1936 | test -z "$as_dir" && as_dir=. |
| 1937 | # Account for people who put trailing slashes in PATH elements. |
| 1938 | case $as_dir/ in |
| 1939 | ./ | .// | /cC/* | \ |
| 1940 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1941 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1942 | /usr/ucb/* ) ;; |
| 1943 | *) |
| 1944 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1945 | # Don't use installbsd from OSF since it installs stuff as root |
| 1946 | # by default. |
| 1947 | for ac_prog in ginstall scoinst install; do |
| 1948 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1949 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1950 | if test $ac_prog = install && |
| 1951 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1952 | # AIX install. It has an incompatible calling convention. |
| 1953 | : |
| 1954 | elif test $ac_prog = install && |
| 1955 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1956 | # program-specific install script used by HP pwplus--don't use. |
| 1957 | : |
| 1958 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1959 | rm -rf conftest.one conftest.two conftest.dir |
| 1960 | echo one > conftest.one |
| 1961 | echo two > conftest.two |
| 1962 | mkdir conftest.dir |
| 1963 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 1964 | test -s conftest.one && test -s conftest.two && |
| 1965 | test -s conftest.dir/conftest.one && |
| 1966 | test -s conftest.dir/conftest.two |
| 1967 | then |
| 1968 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1969 | break 3 |
| 1970 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1971 | fi |
| 1972 | fi |
| 1973 | done |
| 1974 | done |
| 1975 | ;; |
| 1976 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1977 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1978 | done |
| 1979 | IFS=$as_save_IFS |
| 1980 | |
| 1981 | rm -rf conftest.one conftest.two conftest.dir |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1982 | |
| 1983 | fi |
| 1984 | if test "${ac_cv_path_install+set}" = set; then |
| 1985 | INSTALL=$ac_cv_path_install |
| 1986 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1987 | # As a last resort, use the slow shell script. Don't cache a |
| 1988 | # value for INSTALL within a source directory, because that will |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1989 | # break other packages using the cache if that directory is |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1990 | # removed, or if the value is a relative name. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1991 | INSTALL=$ac_install_sh |
| 1992 | fi |
| 1993 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 1994 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1995 | $as_echo "$INSTALL" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 1996 | |
| 1997 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1998 | # It thinks the first close brace ends the variable substitution. |
| 1999 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2000 | |
| 2001 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2002 | |
| 2003 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2004 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2005 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2006 | $as_echo_n "checking whether build environment is sane... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2007 | # Just in case |
| 2008 | sleep 1 |
| 2009 | echo timestamp > conftest.file |
| 2010 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2011 | # arguments. Must try -L first in case configure is actually a |
| 2012 | # symlink; some systems play weird games with the mod time of symlinks |
| 2013 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2014 | # directory). |
| 2015 | if ( |
| 2016 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2017 | if test "$*" = "X"; then |
| 2018 | # -L didn't work. |
| 2019 | set X `ls -t $srcdir/configure conftest.file` |
| 2020 | fi |
| 2021 | rm -f conftest.file |
| 2022 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2023 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2024 | |
| 2025 | # If neither matched, then we have a broken ls. This can happen |
| 2026 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2027 | # broken ls alias from the environment. This has actually |
| 2028 | # happened. Such a system could not be considered "sane". |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2029 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2030 | alias in your environment" >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2031 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2032 | alias in your environment" >&2;} |
| 2033 | { (exit 1); exit 1; }; } |
| 2034 | fi |
| 2035 | |
| 2036 | test "$2" = conftest.file |
| 2037 | ) |
| 2038 | then |
| 2039 | # Ok. |
| 2040 | : |
| 2041 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2042 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2043 | Check your system clock" >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2044 | $as_echo "$as_me: error: newly created file is older than distributed files! |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2045 | Check your system clock" >&2;} |
| 2046 | { (exit 1); exit 1; }; } |
| 2047 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2048 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2049 | $as_echo "yes" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2050 | test "$program_prefix" != NONE && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2051 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2052 | # Use a double $ so make ignores it. |
| 2053 | test "$program_suffix" != NONE && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2054 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2055 | # Double any \ or $. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2056 | # By default was `s,x,x', remove it if useless. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2057 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2058 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2059 | |
| 2060 | # expand $ac_aux_dir to an absolute path |
| 2061 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2062 | |
| 2063 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2064 | # Use eval to expand $SHELL |
| 2065 | if eval "$MISSING --run true"; then |
| 2066 | am_missing_run="$MISSING --run " |
| 2067 | else |
| 2068 | am_missing_run= |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2069 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2070 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2071 | fi |
| 2072 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2073 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
| 2074 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2075 | if test -z "$MKDIR_P"; then |
| 2076 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2077 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2078 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2080 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2081 | do |
| 2082 | IFS=$as_save_IFS |
| 2083 | test -z "$as_dir" && as_dir=. |
| 2084 | for ac_prog in mkdir gmkdir; do |
| 2085 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2086 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2087 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2088 | 'mkdir (GNU coreutils) '* | \ |
| 2089 | 'mkdir (coreutils) '* | \ |
| 2090 | 'mkdir (fileutils) '4.1*) |
| 2091 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2092 | break 3;; |
| 2093 | esac |
| 2094 | done |
| 2095 | done |
| 2096 | done |
| 2097 | IFS=$as_save_IFS |
| 2098 | |
| 2099 | fi |
| 2100 | |
| 2101 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2102 | MKDIR_P="$ac_cv_path_mkdir -p" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2103 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2104 | # As a last resort, use the slow shell script. Don't cache a |
| 2105 | # value for MKDIR_P within a source directory, because that will |
| 2106 | # break other packages using the cache if that directory is |
| 2107 | # removed, or if the value is a relative name. |
| 2108 | test -d ./--version && rmdir ./--version |
| 2109 | MKDIR_P="$ac_install_sh -d" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2110 | fi |
| 2111 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2112 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
| 2113 | $as_echo "$MKDIR_P" >&6; } |
| 2114 | |
| 2115 | mkdir_p="$MKDIR_P" |
| 2116 | case $mkdir_p in |
| 2117 | [\\/$]* | ?:[\\/]*) ;; |
| 2118 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2119 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2120 | |
| 2121 | for ac_prog in gawk mawk nawk awk |
| 2122 | do |
| 2123 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2124 | set dummy $ac_prog; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2125 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2126 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2127 | if test "${ac_cv_prog_AWK+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2128 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2129 | else |
| 2130 | if test -n "$AWK"; then |
| 2131 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2132 | else |
| 2133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2134 | for as_dir in $PATH |
| 2135 | do |
| 2136 | IFS=$as_save_IFS |
| 2137 | test -z "$as_dir" && as_dir=. |
| 2138 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2140 | ac_cv_prog_AWK="$ac_prog" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2141 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2142 | break 2 |
| 2143 | fi |
| 2144 | done |
| 2145 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2146 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2147 | |
| 2148 | fi |
| 2149 | fi |
| 2150 | AWK=$ac_cv_prog_AWK |
| 2151 | if test -n "$AWK"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2152 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2153 | $as_echo "$AWK" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2154 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2155 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2156 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2157 | fi |
| 2158 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2159 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2160 | test -n "$AWK" && break |
| 2161 | done |
| 2162 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2163 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2164 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2165 | set x ${MAKE-make} |
| 2166 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2167 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 2168 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2169 | else |
| 2170 | cat >conftest.make <<\_ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2171 | SHELL = /bin/sh |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2172 | all: |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2173 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2174 | _ACEOF |
| 2175 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2176 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2177 | *@@@%%%=?*=@@@%%%*) |
| 2178 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2179 | *) |
| 2180 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2181 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2182 | rm -f conftest.make |
| 2183 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2184 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2185 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2186 | $as_echo "yes" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2187 | SET_MAKE= |
| 2188 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2189 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2190 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2191 | SET_MAKE="MAKE=${MAKE-make}" |
| 2192 | fi |
| 2193 | |
| 2194 | rm -rf .tst 2>/dev/null |
| 2195 | mkdir .tst 2>/dev/null |
| 2196 | if test -d .tst; then |
| 2197 | am__leading_dot=. |
| 2198 | else |
| 2199 | am__leading_dot=_ |
| 2200 | fi |
| 2201 | rmdir .tst 2>/dev/null |
| 2202 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2203 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2204 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2205 | # is not polluted with repeated "-I." |
| 2206 | am__isrc=' -I$(srcdir)' |
| 2207 | # test to see if srcdir already configured |
| 2208 | if test -f $srcdir/config.status; then |
| 2209 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2210 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2211 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2212 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2213 | fi |
| 2214 | |
| 2215 | # test whether we have cygpath |
| 2216 | if test -z "$CYGPATH_W"; then |
| 2217 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2218 | CYGPATH_W='cygpath -w' |
| 2219 | else |
| 2220 | CYGPATH_W=echo |
| 2221 | fi |
| 2222 | fi |
| 2223 | |
| 2224 | |
| 2225 | # Define the identity of the package. |
| 2226 | PACKAGE='elfutils' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2227 | VERSION='0.138' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2228 | |
| 2229 | |
| 2230 | cat >>confdefs.h <<_ACEOF |
| 2231 | #define PACKAGE "$PACKAGE" |
| 2232 | _ACEOF |
| 2233 | |
| 2234 | |
| 2235 | cat >>confdefs.h <<_ACEOF |
| 2236 | #define VERSION "$VERSION" |
| 2237 | _ACEOF |
| 2238 | |
| 2239 | # Some tools Automake needs. |
| 2240 | |
| 2241 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2242 | |
| 2243 | |
| 2244 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2245 | |
| 2246 | |
| 2247 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2248 | |
| 2249 | |
| 2250 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2251 | |
| 2252 | |
| 2253 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2254 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2255 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2256 | |
| 2257 | # Installed binaries are usually stripped using `strip' when the user |
| 2258 | # run `make install-strip'. However `strip' might not be the right |
| 2259 | # tool to use in cross-compilation environments, therefore Automake |
| 2260 | # will honor the `STRIP' environment variable to overrule this program. |
| 2261 | if test "$cross_compiling" != no; then |
| 2262 | if test -n "$ac_tool_prefix"; then |
| 2263 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2264 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2265 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2266 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2267 | if test "${ac_cv_prog_STRIP+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2268 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2269 | else |
| 2270 | if test -n "$STRIP"; then |
| 2271 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2272 | else |
| 2273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2274 | for as_dir in $PATH |
| 2275 | do |
| 2276 | IFS=$as_save_IFS |
| 2277 | test -z "$as_dir" && as_dir=. |
| 2278 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2280 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2281 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2282 | break 2 |
| 2283 | fi |
| 2284 | done |
| 2285 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2286 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2287 | |
| 2288 | fi |
| 2289 | fi |
| 2290 | STRIP=$ac_cv_prog_STRIP |
| 2291 | if test -n "$STRIP"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2292 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2293 | $as_echo "$STRIP" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2294 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2295 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2296 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2297 | fi |
| 2298 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2299 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2300 | fi |
| 2301 | if test -z "$ac_cv_prog_STRIP"; then |
| 2302 | ac_ct_STRIP=$STRIP |
| 2303 | # Extract the first word of "strip", so it can be a program name with args. |
| 2304 | set dummy strip; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2305 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2306 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2307 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2308 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2309 | else |
| 2310 | if test -n "$ac_ct_STRIP"; then |
| 2311 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2312 | else |
| 2313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2314 | for as_dir in $PATH |
| 2315 | do |
| 2316 | IFS=$as_save_IFS |
| 2317 | test -z "$as_dir" && as_dir=. |
| 2318 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2320 | ac_cv_prog_ac_ct_STRIP="strip" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2321 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2322 | break 2 |
| 2323 | fi |
| 2324 | done |
| 2325 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2326 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2327 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2328 | fi |
| 2329 | fi |
| 2330 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2331 | if test -n "$ac_ct_STRIP"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2332 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2333 | $as_echo "$ac_ct_STRIP" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2334 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2335 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2336 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2337 | fi |
| 2338 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2339 | if test "x$ac_ct_STRIP" = x; then |
| 2340 | STRIP=":" |
| 2341 | else |
| 2342 | case $cross_compiling:$ac_tool_warned in |
| 2343 | yes:) |
| 2344 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2346 | ac_tool_warned=yes ;; |
| 2347 | esac |
| 2348 | STRIP=$ac_ct_STRIP |
| 2349 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2350 | else |
| 2351 | STRIP="$ac_cv_prog_STRIP" |
| 2352 | fi |
| 2353 | |
| 2354 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2355 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2356 | |
| 2357 | # We need awk for the "check" target. The system "awk" is bad on |
| 2358 | # some platforms. |
| 2359 | # Always define AMTAR for backward compatibility. |
| 2360 | |
| 2361 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2362 | |
| 2363 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2364 | |
| 2365 | |
| 2366 | |
| 2367 | |
| 2368 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2369 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2370 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 2371 | # Check whether --enable-maintainer-mode was given. |
| 2372 | if test "${enable_maintainer_mode+set}" = set; then |
| 2373 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2374 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2375 | USE_MAINTAINER_MODE=no |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2376 | fi |
| 2377 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2378 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 2379 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2380 | if test $USE_MAINTAINER_MODE = yes; then |
| 2381 | MAINTAINER_MODE_TRUE= |
| 2382 | MAINTAINER_MODE_FALSE='#' |
| 2383 | else |
| 2384 | MAINTAINER_MODE_TRUE='#' |
| 2385 | MAINTAINER_MODE_FALSE= |
| 2386 | fi |
| 2387 | |
| 2388 | MAINT=$MAINTAINER_MODE_TRUE |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2389 | |
| 2390 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2391 | |
| 2392 | MODVERSION="Build on $(hostname) $(date +%FT%R:%S%z)" |
| 2393 | |
| 2394 | cat >>confdefs.h <<_ACEOF |
| 2395 | #define MODVERSION "$MODVERSION" |
| 2396 | _ACEOF |
| 2397 | |
| 2398 | |
| 2399 | |
| 2400 | |
| 2401 | |
| 2402 | ac_config_files="$ac_config_files Makefile" |
| 2403 | |
| 2404 | ac_config_headers="$ac_config_headers config.h" |
| 2405 | |
| 2406 | |
| 2407 | |
| 2408 | ac_config_files="$ac_config_files m4/Makefile" |
| 2409 | |
| 2410 | |
| 2411 | ac_config_files="$ac_config_files elfutils.spec:config/elfutils.spec.in" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2412 | |
| 2413 | |
| 2414 | |
| 2415 | # Make sure we can run config.sub. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2416 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2417 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2418 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2419 | { (exit 1); exit 1; }; } |
| 2420 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2421 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
| 2422 | $as_echo_n "checking build system type... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2423 | if test "${ac_cv_build+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2424 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2425 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2426 | ac_build_alias=$build_alias |
| 2427 | test "x$ac_build_alias" = x && |
| 2428 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2429 | test "x$ac_build_alias" = x && |
| 2430 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2431 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2432 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2433 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2434 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2435 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2436 | { (exit 1); exit 1; }; } |
| 2437 | |
| 2438 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2439 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2440 | $as_echo "$ac_cv_build" >&6; } |
| 2441 | case $ac_cv_build in |
| 2442 | *-*-*) ;; |
| 2443 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2444 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2445 | { (exit 1); exit 1; }; };; |
| 2446 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2447 | build=$ac_cv_build |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2448 | ac_save_IFS=$IFS; IFS='-' |
| 2449 | set x $ac_cv_build |
| 2450 | shift |
| 2451 | build_cpu=$1 |
| 2452 | build_vendor=$2 |
| 2453 | shift; shift |
| 2454 | # Remember, the first character of IFS is used to create $*, |
| 2455 | # except with old shells: |
| 2456 | build_os=$* |
| 2457 | IFS=$ac_save_IFS |
| 2458 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2459 | |
| 2460 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2461 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
| 2462 | $as_echo_n "checking host system type... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2463 | if test "${ac_cv_host+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2464 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2465 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2466 | if test "x$host_alias" = x; then |
| 2467 | ac_cv_host=$ac_cv_build |
| 2468 | else |
| 2469 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2470 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2471 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2472 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2473 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2474 | |
| 2475 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2476 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2477 | $as_echo "$ac_cv_host" >&6; } |
| 2478 | case $ac_cv_host in |
| 2479 | *-*-*) ;; |
| 2480 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2481 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2482 | { (exit 1); exit 1; }; };; |
| 2483 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2484 | host=$ac_cv_host |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2485 | ac_save_IFS=$IFS; IFS='-' |
| 2486 | set x $ac_cv_host |
| 2487 | shift |
| 2488 | host_cpu=$1 |
| 2489 | host_vendor=$2 |
| 2490 | shift; shift |
| 2491 | # Remember, the first character of IFS is used to create $*, |
| 2492 | # except with old shells: |
| 2493 | host_os=$* |
| 2494 | IFS=$ac_save_IFS |
| 2495 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2496 | |
| 2497 | |
| 2498 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2499 | # Check whether --enable-tls was given. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2500 | if test "${enable_tls+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2501 | enableval=$enable_tls; use_tls=yes |
| 2502 | else |
| 2503 | use_tls=no |
| 2504 | fi |
| 2505 | |
| 2506 | if test "$use_tls" = yes; then |
| 2507 | USE_TLS_TRUE= |
| 2508 | USE_TLS_FALSE='#' |
| 2509 | else |
| 2510 | USE_TLS_TRUE='#' |
| 2511 | USE_TLS_FALSE= |
| 2512 | fi |
| 2513 | |
| 2514 | if test "$use_tls" = yes; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2515 | cat >>confdefs.h <<\_ACEOF |
| 2516 | #define USE_TLS 1 |
| 2517 | _ACEOF |
| 2518 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2519 | fi |
| 2520 | |
| 2521 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2522 | |
| 2523 | |
| 2524 | |
| 2525 | ALL_LINGUAS= |
| 2526 | |
| 2527 | ac_ext=c |
| 2528 | ac_cpp='$CPP $CPPFLAGS' |
| 2529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2532 | if test -n "$ac_tool_prefix"; then |
| 2533 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2534 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2535 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2536 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2537 | if test "${ac_cv_prog_CC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2538 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2539 | else |
| 2540 | if test -n "$CC"; then |
| 2541 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2542 | else |
| 2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2544 | for as_dir in $PATH |
| 2545 | do |
| 2546 | IFS=$as_save_IFS |
| 2547 | test -z "$as_dir" && as_dir=. |
| 2548 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2550 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2551 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2552 | break 2 |
| 2553 | fi |
| 2554 | done |
| 2555 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2556 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2557 | |
| 2558 | fi |
| 2559 | fi |
| 2560 | CC=$ac_cv_prog_CC |
| 2561 | if test -n "$CC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2562 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2563 | $as_echo "$CC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2564 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2565 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2566 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2567 | fi |
| 2568 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2569 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2570 | fi |
| 2571 | if test -z "$ac_cv_prog_CC"; then |
| 2572 | ac_ct_CC=$CC |
| 2573 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2574 | set dummy gcc; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2575 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2576 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2577 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2578 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2579 | else |
| 2580 | if test -n "$ac_ct_CC"; then |
| 2581 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2582 | else |
| 2583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2584 | for as_dir in $PATH |
| 2585 | do |
| 2586 | IFS=$as_save_IFS |
| 2587 | test -z "$as_dir" && as_dir=. |
| 2588 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2590 | ac_cv_prog_ac_ct_CC="gcc" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2591 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2592 | break 2 |
| 2593 | fi |
| 2594 | done |
| 2595 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2596 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2597 | |
| 2598 | fi |
| 2599 | fi |
| 2600 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2601 | if test -n "$ac_ct_CC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2602 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2603 | $as_echo "$ac_ct_CC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2604 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2605 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2606 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2607 | fi |
| 2608 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2609 | if test "x$ac_ct_CC" = x; then |
| 2610 | CC="" |
| 2611 | else |
| 2612 | case $cross_compiling:$ac_tool_warned in |
| 2613 | yes:) |
| 2614 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2615 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2616 | ac_tool_warned=yes ;; |
| 2617 | esac |
| 2618 | CC=$ac_ct_CC |
| 2619 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2620 | else |
| 2621 | CC="$ac_cv_prog_CC" |
| 2622 | fi |
| 2623 | |
| 2624 | if test -z "$CC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2625 | if test -n "$ac_tool_prefix"; then |
| 2626 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2627 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2628 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2629 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2630 | if test "${ac_cv_prog_CC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2631 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2632 | else |
| 2633 | if test -n "$CC"; then |
| 2634 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2635 | else |
| 2636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2637 | for as_dir in $PATH |
| 2638 | do |
| 2639 | IFS=$as_save_IFS |
| 2640 | test -z "$as_dir" && as_dir=. |
| 2641 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2643 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2644 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2645 | break 2 |
| 2646 | fi |
| 2647 | done |
| 2648 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2649 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2650 | |
| 2651 | fi |
| 2652 | fi |
| 2653 | CC=$ac_cv_prog_CC |
| 2654 | if test -n "$CC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2655 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2656 | $as_echo "$CC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2657 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2658 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2659 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2660 | fi |
| 2661 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2662 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2663 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2664 | fi |
| 2665 | if test -z "$CC"; then |
| 2666 | # Extract the first word of "cc", so it can be a program name with args. |
| 2667 | set dummy cc; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2668 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2669 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2670 | if test "${ac_cv_prog_CC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2671 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2672 | else |
| 2673 | if test -n "$CC"; then |
| 2674 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2675 | else |
| 2676 | ac_prog_rejected=no |
| 2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2678 | for as_dir in $PATH |
| 2679 | do |
| 2680 | IFS=$as_save_IFS |
| 2681 | test -z "$as_dir" && as_dir=. |
| 2682 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2684 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2685 | ac_prog_rejected=yes |
| 2686 | continue |
| 2687 | fi |
| 2688 | ac_cv_prog_CC="cc" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2689 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2690 | break 2 |
| 2691 | fi |
| 2692 | done |
| 2693 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2694 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2695 | |
| 2696 | if test $ac_prog_rejected = yes; then |
| 2697 | # We found a bogon in the path, so make sure we never use it. |
| 2698 | set dummy $ac_cv_prog_CC |
| 2699 | shift |
| 2700 | if test $# != 0; then |
| 2701 | # We chose a different compiler from the bogus one. |
| 2702 | # However, it has the same basename, so the bogon will be chosen |
| 2703 | # first if we set CC to just the basename; use the full file name. |
| 2704 | shift |
| 2705 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2706 | fi |
| 2707 | fi |
| 2708 | fi |
| 2709 | fi |
| 2710 | CC=$ac_cv_prog_CC |
| 2711 | if test -n "$CC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2712 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2713 | $as_echo "$CC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2714 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2715 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2716 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2717 | fi |
| 2718 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2719 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2720 | fi |
| 2721 | if test -z "$CC"; then |
| 2722 | if test -n "$ac_tool_prefix"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2723 | for ac_prog in cl.exe |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2724 | do |
| 2725 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2726 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2727 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2728 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2729 | if test "${ac_cv_prog_CC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2730 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2731 | else |
| 2732 | if test -n "$CC"; then |
| 2733 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2734 | else |
| 2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2736 | for as_dir in $PATH |
| 2737 | do |
| 2738 | IFS=$as_save_IFS |
| 2739 | test -z "$as_dir" && as_dir=. |
| 2740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2742 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2743 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2744 | break 2 |
| 2745 | fi |
| 2746 | done |
| 2747 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2748 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2749 | |
| 2750 | fi |
| 2751 | fi |
| 2752 | CC=$ac_cv_prog_CC |
| 2753 | if test -n "$CC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2754 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 2755 | $as_echo "$CC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2756 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2757 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2758 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2759 | fi |
| 2760 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2761 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2762 | test -n "$CC" && break |
| 2763 | done |
| 2764 | fi |
| 2765 | if test -z "$CC"; then |
| 2766 | ac_ct_CC=$CC |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2767 | for ac_prog in cl.exe |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2768 | do |
| 2769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2770 | set dummy $ac_prog; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2771 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2772 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2773 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2774 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2775 | else |
| 2776 | if test -n "$ac_ct_CC"; then |
| 2777 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2778 | else |
| 2779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2780 | for as_dir in $PATH |
| 2781 | do |
| 2782 | IFS=$as_save_IFS |
| 2783 | test -z "$as_dir" && as_dir=. |
| 2784 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2786 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2787 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2788 | break 2 |
| 2789 | fi |
| 2790 | done |
| 2791 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2792 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2793 | |
| 2794 | fi |
| 2795 | fi |
| 2796 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2797 | if test -n "$ac_ct_CC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2798 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2799 | $as_echo "$ac_ct_CC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2800 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2801 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2802 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2803 | fi |
| 2804 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2805 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2806 | test -n "$ac_ct_CC" && break |
| 2807 | done |
| 2808 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2809 | if test "x$ac_ct_CC" = x; then |
| 2810 | CC="" |
| 2811 | else |
| 2812 | case $cross_compiling:$ac_tool_warned in |
| 2813 | yes:) |
| 2814 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2815 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2816 | ac_tool_warned=yes ;; |
| 2817 | esac |
| 2818 | CC=$ac_ct_CC |
| 2819 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2820 | fi |
| 2821 | |
| 2822 | fi |
| 2823 | |
| 2824 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2825 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2826 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2827 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2828 | See \`config.log' for more details." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2829 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2830 | See \`config.log' for more details." >&2;} |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2831 | { (exit 1); exit 1; }; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2832 | |
| 2833 | # Provide some information about the compiler. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2834 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2835 | set X $ac_compile |
| 2836 | ac_compiler=$2 |
| 2837 | { (ac_try="$ac_compiler --version >&5" |
| 2838 | case "(($ac_try" in |
| 2839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2840 | *) ac_try_echo=$ac_try;; |
| 2841 | esac |
| 2842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2843 | $as_echo "$ac_try_echo") >&5 |
| 2844 | (eval "$ac_compiler --version >&5") 2>&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2845 | ac_status=$? |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2847 | (exit $ac_status); } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2848 | { (ac_try="$ac_compiler -v >&5" |
| 2849 | case "(($ac_try" in |
| 2850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2851 | *) ac_try_echo=$ac_try;; |
| 2852 | esac |
| 2853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2854 | $as_echo "$ac_try_echo") >&5 |
| 2855 | (eval "$ac_compiler -v >&5") 2>&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2856 | ac_status=$? |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2858 | (exit $ac_status); } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2859 | { (ac_try="$ac_compiler -V >&5" |
| 2860 | case "(($ac_try" in |
| 2861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2862 | *) ac_try_echo=$ac_try;; |
| 2863 | esac |
| 2864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2865 | $as_echo "$ac_try_echo") >&5 |
| 2866 | (eval "$ac_compiler -V >&5") 2>&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2867 | ac_status=$? |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2869 | (exit $ac_status); } |
| 2870 | |
| 2871 | cat >conftest.$ac_ext <<_ACEOF |
| 2872 | /* confdefs.h. */ |
| 2873 | _ACEOF |
| 2874 | cat confdefs.h >>conftest.$ac_ext |
| 2875 | cat >>conftest.$ac_ext <<_ACEOF |
| 2876 | /* end confdefs.h. */ |
| 2877 | |
| 2878 | int |
| 2879 | main () |
| 2880 | { |
| 2881 | |
| 2882 | ; |
| 2883 | return 0; |
| 2884 | } |
| 2885 | _ACEOF |
| 2886 | ac_clean_files_save=$ac_clean_files |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2887 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2888 | # Try to create an executable without -o first, disregard a.out. |
| 2889 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2890 | # of exeext. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2891 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2892 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2893 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2894 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2895 | # The possible output files: |
| 2896 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2897 | |
| 2898 | ac_rmfiles= |
| 2899 | for ac_file in $ac_files |
| 2900 | do |
| 2901 | case $ac_file in |
| 2902 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2903 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2904 | esac |
| 2905 | done |
| 2906 | rm -f $ac_rmfiles |
| 2907 | |
| 2908 | if { (ac_try="$ac_link_default" |
| 2909 | case "(($ac_try" in |
| 2910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2911 | *) ac_try_echo=$ac_try;; |
| 2912 | esac |
| 2913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2914 | $as_echo "$ac_try_echo") >&5 |
| 2915 | (eval "$ac_link_default") 2>&5 |
| 2916 | ac_status=$? |
| 2917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2918 | (exit $ac_status); }; then |
| 2919 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2920 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2921 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2922 | # so that the user can short-circuit this test for compilers unknown to |
| 2923 | # Autoconf. |
| 2924 | for ac_file in $ac_files '' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2925 | do |
| 2926 | test -f "$ac_file" || continue |
| 2927 | case $ac_file in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2928 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2929 | ;; |
| 2930 | [ab].out ) |
| 2931 | # We found the default executable, but exeext='' is most |
| 2932 | # certainly right. |
| 2933 | break;; |
| 2934 | *.* ) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2935 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2936 | then :; else |
| 2937 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2938 | fi |
| 2939 | # We set ac_cv_exeext here because the later test for it is not |
| 2940 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2941 | # argument, so we may need to know it at that point already. |
| 2942 | # Even if this section looks crufty: it has the advantage of |
| 2943 | # actually working. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2944 | break;; |
| 2945 | * ) |
| 2946 | break;; |
| 2947 | esac |
| 2948 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2949 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2950 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2951 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2952 | ac_file='' |
| 2953 | fi |
| 2954 | |
| 2955 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2956 | $as_echo "$ac_file" >&6; } |
| 2957 | if test -z "$ac_file"; then |
| 2958 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2960 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2961 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2962 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2963 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2964 | See \`config.log' for more details." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2965 | $as_echo "$as_me: error: C compiler cannot create executables |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2966 | See \`config.log' for more details." >&2;} |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2967 | { (exit 77); exit 77; }; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2968 | fi |
| 2969 | |
| 2970 | ac_exeext=$ac_cv_exeext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2971 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2972 | # Check that the compiler produces executables we can run. If not, either |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2973 | # the compiler is broken, or we cross compile. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2974 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2975 | $as_echo_n "checking whether the C compiler works... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2976 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2977 | # If not cross compiling, check that we can run a simple program. |
| 2978 | if test "$cross_compiling" != yes; then |
| 2979 | if { ac_try='./$ac_file' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2980 | { (case "(($ac_try" in |
| 2981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2982 | *) ac_try_echo=$ac_try;; |
| 2983 | esac |
| 2984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2985 | $as_echo "$ac_try_echo") >&5 |
| 2986 | (eval "$ac_try") 2>&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2987 | ac_status=$? |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2989 | (exit $ac_status); }; }; then |
| 2990 | cross_compiling=no |
| 2991 | else |
| 2992 | if test "$cross_compiling" = maybe; then |
| 2993 | cross_compiling=yes |
| 2994 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 2995 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2996 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2997 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 2998 | If you meant to cross compile, use \`--host'. |
| 2999 | See \`config.log' for more details." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3000 | $as_echo "$as_me: error: cannot run C compiled programs. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3001 | If you meant to cross compile, use \`--host'. |
| 3002 | See \`config.log' for more details." >&2;} |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3003 | { (exit 1); exit 1; }; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3004 | fi |
| 3005 | fi |
| 3006 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3007 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3008 | $as_echo "yes" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3009 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3010 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3011 | ac_clean_files=$ac_clean_files_save |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3012 | # Check that the compiler produces executables we can run. If not, either |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3013 | # the compiler is broken, or we cross compile. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3014 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3015 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3016 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3017 | $as_echo "$cross_compiling" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3018 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3019 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3020 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3021 | if { (ac_try="$ac_link" |
| 3022 | case "(($ac_try" in |
| 3023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3024 | *) ac_try_echo=$ac_try;; |
| 3025 | esac |
| 3026 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3027 | $as_echo "$ac_try_echo") >&5 |
| 3028 | (eval "$ac_link") 2>&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3029 | ac_status=$? |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3031 | (exit $ac_status); }; then |
| 3032 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3033 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3034 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3035 | # `rm'. |
| 3036 | for ac_file in conftest.exe conftest conftest.*; do |
| 3037 | test -f "$ac_file" || continue |
| 3038 | case $ac_file in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3039 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3040 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3041 | break;; |
| 3042 | * ) break;; |
| 3043 | esac |
| 3044 | done |
| 3045 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3046 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3047 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3048 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3049 | See \`config.log' for more details." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3050 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3051 | See \`config.log' for more details." >&2;} |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3052 | { (exit 1); exit 1; }; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3053 | fi |
| 3054 | |
| 3055 | rm -f conftest$ac_cv_exeext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3056 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3057 | $as_echo "$ac_cv_exeext" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3058 | |
| 3059 | rm -f conftest.$ac_ext |
| 3060 | EXEEXT=$ac_cv_exeext |
| 3061 | ac_exeext=$EXEEXT |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3062 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3063 | $as_echo_n "checking for suffix of object files... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3064 | if test "${ac_cv_objext+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3065 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3066 | else |
| 3067 | cat >conftest.$ac_ext <<_ACEOF |
| 3068 | /* confdefs.h. */ |
| 3069 | _ACEOF |
| 3070 | cat confdefs.h >>conftest.$ac_ext |
| 3071 | cat >>conftest.$ac_ext <<_ACEOF |
| 3072 | /* end confdefs.h. */ |
| 3073 | |
| 3074 | int |
| 3075 | main () |
| 3076 | { |
| 3077 | |
| 3078 | ; |
| 3079 | return 0; |
| 3080 | } |
| 3081 | _ACEOF |
| 3082 | rm -f conftest.o conftest.obj |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3083 | if { (ac_try="$ac_compile" |
| 3084 | case "(($ac_try" in |
| 3085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3086 | *) ac_try_echo=$ac_try;; |
| 3087 | esac |
| 3088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3089 | $as_echo "$ac_try_echo") >&5 |
| 3090 | (eval "$ac_compile") 2>&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3091 | ac_status=$? |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3093 | (exit $ac_status); }; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3094 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3095 | test -f "$ac_file" || continue; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3096 | case $ac_file in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3097 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3098 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3099 | break;; |
| 3100 | esac |
| 3101 | done |
| 3102 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3103 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3105 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3106 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3108 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3109 | See \`config.log' for more details." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3110 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3111 | See \`config.log' for more details." >&2;} |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3112 | { (exit 1); exit 1; }; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3113 | fi |
| 3114 | |
| 3115 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3116 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3117 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3118 | $as_echo "$ac_cv_objext" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3119 | OBJEXT=$ac_cv_objext |
| 3120 | ac_objext=$OBJEXT |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3121 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3122 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3123 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3124 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3125 | else |
| 3126 | cat >conftest.$ac_ext <<_ACEOF |
| 3127 | /* confdefs.h. */ |
| 3128 | _ACEOF |
| 3129 | cat confdefs.h >>conftest.$ac_ext |
| 3130 | cat >>conftest.$ac_ext <<_ACEOF |
| 3131 | /* end confdefs.h. */ |
| 3132 | |
| 3133 | int |
| 3134 | main () |
| 3135 | { |
| 3136 | #ifndef __GNUC__ |
| 3137 | choke me |
| 3138 | #endif |
| 3139 | |
| 3140 | ; |
| 3141 | return 0; |
| 3142 | } |
| 3143 | _ACEOF |
| 3144 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3145 | if { (ac_try="$ac_compile" |
| 3146 | case "(($ac_try" in |
| 3147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3148 | *) ac_try_echo=$ac_try;; |
| 3149 | esac |
| 3150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3151 | $as_echo "$ac_try_echo") >&5 |
| 3152 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3153 | ac_status=$? |
| 3154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3155 | rm -f conftest.er1 |
| 3156 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3158 | (exit $ac_status); } && { |
| 3159 | test -z "$ac_c_werror_flag" || |
| 3160 | test ! -s conftest.err |
| 3161 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3162 | ac_compiler_gnu=yes |
| 3163 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3164 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3166 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3167 | ac_compiler_gnu=no |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3168 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3169 | |
| 3170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3171 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3172 | |
| 3173 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3174 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3175 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3176 | if test $ac_compiler_gnu = yes; then |
| 3177 | GCC=yes |
| 3178 | else |
| 3179 | GCC= |
| 3180 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3181 | ac_test_CFLAGS=${CFLAGS+set} |
| 3182 | ac_save_CFLAGS=$CFLAGS |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3183 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3184 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3185 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3186 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3187 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3188 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3189 | ac_c_werror_flag=yes |
| 3190 | ac_cv_prog_cc_g=no |
| 3191 | CFLAGS="-g" |
| 3192 | cat >conftest.$ac_ext <<_ACEOF |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3193 | /* confdefs.h. */ |
| 3194 | _ACEOF |
| 3195 | cat confdefs.h >>conftest.$ac_ext |
| 3196 | cat >>conftest.$ac_ext <<_ACEOF |
| 3197 | /* end confdefs.h. */ |
| 3198 | |
| 3199 | int |
| 3200 | main () |
| 3201 | { |
| 3202 | |
| 3203 | ; |
| 3204 | return 0; |
| 3205 | } |
| 3206 | _ACEOF |
| 3207 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3208 | if { (ac_try="$ac_compile" |
| 3209 | case "(($ac_try" in |
| 3210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3211 | *) ac_try_echo=$ac_try;; |
| 3212 | esac |
| 3213 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3214 | $as_echo "$ac_try_echo") >&5 |
| 3215 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3216 | ac_status=$? |
| 3217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3218 | rm -f conftest.er1 |
| 3219 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3221 | (exit $ac_status); } && { |
| 3222 | test -z "$ac_c_werror_flag" || |
| 3223 | test ! -s conftest.err |
| 3224 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3225 | ac_cv_prog_cc_g=yes |
| 3226 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3227 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3229 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3230 | CFLAGS="" |
| 3231 | cat >conftest.$ac_ext <<_ACEOF |
| 3232 | /* confdefs.h. */ |
| 3233 | _ACEOF |
| 3234 | cat confdefs.h >>conftest.$ac_ext |
| 3235 | cat >>conftest.$ac_ext <<_ACEOF |
| 3236 | /* end confdefs.h. */ |
| 3237 | |
| 3238 | int |
| 3239 | main () |
| 3240 | { |
| 3241 | |
| 3242 | ; |
| 3243 | return 0; |
| 3244 | } |
| 3245 | _ACEOF |
| 3246 | rm -f conftest.$ac_objext |
| 3247 | if { (ac_try="$ac_compile" |
| 3248 | case "(($ac_try" in |
| 3249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3250 | *) ac_try_echo=$ac_try;; |
| 3251 | esac |
| 3252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3253 | $as_echo "$ac_try_echo") >&5 |
| 3254 | (eval "$ac_compile") 2>conftest.er1 |
| 3255 | ac_status=$? |
| 3256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3257 | rm -f conftest.er1 |
| 3258 | cat conftest.err >&5 |
| 3259 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3260 | (exit $ac_status); } && { |
| 3261 | test -z "$ac_c_werror_flag" || |
| 3262 | test ! -s conftest.err |
| 3263 | } && test -s conftest.$ac_objext; then |
| 3264 | : |
| 3265 | else |
| 3266 | $as_echo "$as_me: failed program was:" >&5 |
| 3267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3268 | |
| 3269 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3270 | CFLAGS="-g" |
| 3271 | cat >conftest.$ac_ext <<_ACEOF |
| 3272 | /* confdefs.h. */ |
| 3273 | _ACEOF |
| 3274 | cat confdefs.h >>conftest.$ac_ext |
| 3275 | cat >>conftest.$ac_ext <<_ACEOF |
| 3276 | /* end confdefs.h. */ |
| 3277 | |
| 3278 | int |
| 3279 | main () |
| 3280 | { |
| 3281 | |
| 3282 | ; |
| 3283 | return 0; |
| 3284 | } |
| 3285 | _ACEOF |
| 3286 | rm -f conftest.$ac_objext |
| 3287 | if { (ac_try="$ac_compile" |
| 3288 | case "(($ac_try" in |
| 3289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3290 | *) ac_try_echo=$ac_try;; |
| 3291 | esac |
| 3292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3293 | $as_echo "$ac_try_echo") >&5 |
| 3294 | (eval "$ac_compile") 2>conftest.er1 |
| 3295 | ac_status=$? |
| 3296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3297 | rm -f conftest.er1 |
| 3298 | cat conftest.err >&5 |
| 3299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3300 | (exit $ac_status); } && { |
| 3301 | test -z "$ac_c_werror_flag" || |
| 3302 | test ! -s conftest.err |
| 3303 | } && test -s conftest.$ac_objext; then |
| 3304 | ac_cv_prog_cc_g=yes |
| 3305 | else |
| 3306 | $as_echo "$as_me: failed program was:" >&5 |
| 3307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3308 | |
| 3309 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3310 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3311 | |
| 3312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3313 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3314 | |
| 3315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3316 | fi |
| 3317 | |
| 3318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3319 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3320 | fi |
| 3321 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3322 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3323 | if test "$ac_test_CFLAGS" = set; then |
| 3324 | CFLAGS=$ac_save_CFLAGS |
| 3325 | elif test $ac_cv_prog_cc_g = yes; then |
| 3326 | if test "$GCC" = yes; then |
| 3327 | CFLAGS="-g -O2" |
| 3328 | else |
| 3329 | CFLAGS="-g" |
| 3330 | fi |
| 3331 | else |
| 3332 | if test "$GCC" = yes; then |
| 3333 | CFLAGS="-O2" |
| 3334 | else |
| 3335 | CFLAGS= |
| 3336 | fi |
| 3337 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3338 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3339 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3340 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3341 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3342 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3343 | ac_cv_prog_cc_c89=no |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3344 | ac_save_CC=$CC |
| 3345 | cat >conftest.$ac_ext <<_ACEOF |
| 3346 | /* confdefs.h. */ |
| 3347 | _ACEOF |
| 3348 | cat confdefs.h >>conftest.$ac_ext |
| 3349 | cat >>conftest.$ac_ext <<_ACEOF |
| 3350 | /* end confdefs.h. */ |
| 3351 | #include <stdarg.h> |
| 3352 | #include <stdio.h> |
| 3353 | #include <sys/types.h> |
| 3354 | #include <sys/stat.h> |
| 3355 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3356 | struct buf { int x; }; |
| 3357 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3358 | static char *e (p, i) |
| 3359 | char **p; |
| 3360 | int i; |
| 3361 | { |
| 3362 | return p[i]; |
| 3363 | } |
| 3364 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3365 | { |
| 3366 | char *s; |
| 3367 | va_list v; |
| 3368 | va_start (v,p); |
| 3369 | s = g (p, va_arg (v,int)); |
| 3370 | va_end (v); |
| 3371 | return s; |
| 3372 | } |
| 3373 | |
| 3374 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3375 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3376 | These don't provoke an error unfortunately, instead are silently treated |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3377 | as 'x'. The following induces an error, until -std is added to get |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3378 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3379 | array size at least. It's necessary to write '\x00'==0 to get something |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3380 | that's true only with -std. */ |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3381 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3382 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3383 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3384 | inside strings and character constants. */ |
| 3385 | #define FOO(x) 'x' |
| 3386 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3387 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3388 | int test (int i, double x); |
| 3389 | struct s1 {int (*f) (int a);}; |
| 3390 | struct s2 {int (*f) (double a);}; |
| 3391 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3392 | int argc; |
| 3393 | char **argv; |
| 3394 | int |
| 3395 | main () |
| 3396 | { |
| 3397 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3398 | ; |
| 3399 | return 0; |
| 3400 | } |
| 3401 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3402 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3403 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3404 | do |
| 3405 | CC="$ac_save_CC $ac_arg" |
| 3406 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3407 | if { (ac_try="$ac_compile" |
| 3408 | case "(($ac_try" in |
| 3409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3410 | *) ac_try_echo=$ac_try;; |
| 3411 | esac |
| 3412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3413 | $as_echo "$ac_try_echo") >&5 |
| 3414 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3415 | ac_status=$? |
| 3416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3417 | rm -f conftest.er1 |
| 3418 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3420 | (exit $ac_status); } && { |
| 3421 | test -z "$ac_c_werror_flag" || |
| 3422 | test ! -s conftest.err |
| 3423 | } && test -s conftest.$ac_objext; then |
| 3424 | ac_cv_prog_cc_c89=$ac_arg |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3425 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3426 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3428 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3429 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3430 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3431 | |
| 3432 | rm -f core conftest.err conftest.$ac_objext |
| 3433 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3434 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3435 | rm -f conftest.$ac_ext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3436 | CC=$ac_save_CC |
| 3437 | |
| 3438 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3439 | # AC_CACHE_VAL |
| 3440 | case "x$ac_cv_prog_cc_c89" in |
| 3441 | x) |
| 3442 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 3443 | $as_echo "none needed" >&6; } ;; |
| 3444 | xno) |
| 3445 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3446 | $as_echo "unsupported" >&6; } ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3447 | *) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3448 | CC="$CC $ac_cv_prog_cc_c89" |
| 3449 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3450 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3451 | esac |
| 3452 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3453 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3454 | ac_ext=c |
| 3455 | ac_cpp='$CPP $CPPFLAGS' |
| 3456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3459 | DEPDIR="${am__leading_dot}deps" |
| 3460 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3461 | ac_config_commands="$ac_config_commands depfiles" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3462 | |
| 3463 | |
| 3464 | am_make=${MAKE-make} |
| 3465 | cat > confinc << 'END' |
| 3466 | am__doit: |
| 3467 | @echo done |
| 3468 | .PHONY: am__doit |
| 3469 | END |
| 3470 | # If we don't find an include directive, just comment out the code. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3471 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3472 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3473 | am__include="#" |
| 3474 | am__quote= |
| 3475 | _am_result=none |
| 3476 | # First try GNU make style include. |
| 3477 | echo "include confinc" > confmf |
| 3478 | # We grep out `Entering directory' and `Leaving directory' |
| 3479 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3480 | # In particular we don't look at `^make:' because GNU make might |
| 3481 | # be invoked under some other name (usually "gmake"), in which |
| 3482 | # case it prints its new name instead of `make'. |
| 3483 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3484 | am__include=include |
| 3485 | am__quote= |
| 3486 | _am_result=GNU |
| 3487 | fi |
| 3488 | # Now try BSD make style include. |
| 3489 | if test "$am__include" = "#"; then |
| 3490 | echo '.include "confinc"' > confmf |
| 3491 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3492 | am__include=.include |
| 3493 | am__quote="\"" |
| 3494 | _am_result=BSD |
| 3495 | fi |
| 3496 | fi |
| 3497 | |
| 3498 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3499 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3500 | $as_echo "$_am_result" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3501 | rm -f confinc confmf |
| 3502 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3503 | # Check whether --enable-dependency-tracking was given. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3504 | if test "${enable_dependency_tracking+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3505 | enableval=$enable_dependency_tracking; |
| 3506 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3507 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3508 | if test "x$enable_dependency_tracking" != xno; then |
| 3509 | am_depcomp="$ac_aux_dir/depcomp" |
| 3510 | AMDEPBACKSLASH='\' |
| 3511 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3512 | if test "x$enable_dependency_tracking" != xno; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3513 | AMDEP_TRUE= |
| 3514 | AMDEP_FALSE='#' |
| 3515 | else |
| 3516 | AMDEP_TRUE='#' |
| 3517 | AMDEP_FALSE= |
| 3518 | fi |
| 3519 | |
| 3520 | |
| 3521 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3522 | depcc="$CC" am_compiler_list= |
| 3523 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3524 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3525 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3526 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3527 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3528 | else |
| 3529 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3530 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3531 | # making bogus files that we don't know about and never remove. For |
| 3532 | # instance it was reported that on HP-UX the gcc test will end up |
| 3533 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3534 | # in D'. |
| 3535 | mkdir conftest.dir |
| 3536 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3537 | # using a relative directory. |
| 3538 | cp "$am_depcomp" conftest.dir |
| 3539 | cd conftest.dir |
| 3540 | # We will build objects and dependencies in a subdirectory because |
| 3541 | # it helps to detect inapplicable dependency modes. For instance |
| 3542 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3543 | # side effect of compilation, but ICC will put the dependencies in |
| 3544 | # the current directory while Tru64 will put them in the object |
| 3545 | # directory. |
| 3546 | mkdir sub |
| 3547 | |
| 3548 | am_cv_CC_dependencies_compiler_type=none |
| 3549 | if test "$am_compiler_list" = ""; then |
| 3550 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3551 | fi |
| 3552 | for depmode in $am_compiler_list; do |
| 3553 | # Setup a source with many dependencies, because some compilers |
| 3554 | # like to wrap large dependency lists on column 80 (with \), and |
| 3555 | # we should not choose a depcomp mode which is confused by this. |
| 3556 | # |
| 3557 | # We need to recreate these files for each test, as the compiler may |
| 3558 | # overwrite some of them when testing with obscure command lines. |
| 3559 | # This happens at least with the AIX C compiler. |
| 3560 | : > sub/conftest.c |
| 3561 | for i in 1 2 3 4 5 6; do |
| 3562 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3563 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3564 | # Solaris 8's {/usr,}/bin/sh. |
| 3565 | touch sub/conftst$i.h |
| 3566 | done |
| 3567 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3568 | |
| 3569 | case $depmode in |
| 3570 | nosideeffect) |
| 3571 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3572 | # only be used when explicitly requested |
| 3573 | if test "x$enable_dependency_tracking" = xyes; then |
| 3574 | continue |
| 3575 | else |
| 3576 | break |
| 3577 | fi |
| 3578 | ;; |
| 3579 | none) break ;; |
| 3580 | esac |
| 3581 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3582 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3583 | # handle `-M -o', and we need to detect this. |
| 3584 | if depmode=$depmode \ |
| 3585 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3586 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3587 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3588 | >/dev/null 2>conftest.err && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3589 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3590 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3591 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3592 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3593 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3594 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3595 | # that says an option was ignored or not supported. |
| 3596 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3597 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3598 | # The diagnosis changed in icc 8.0: |
| 3599 | # icc: Command line remark: option '-MP' not supported |
| 3600 | if (grep 'ignoring option' conftest.err || |
| 3601 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3602 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3603 | break |
| 3604 | fi |
| 3605 | fi |
| 3606 | done |
| 3607 | |
| 3608 | cd .. |
| 3609 | rm -rf conftest.dir |
| 3610 | else |
| 3611 | am_cv_CC_dependencies_compiler_type=none |
| 3612 | fi |
| 3613 | |
| 3614 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3615 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3616 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3617 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3618 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3619 | if |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3620 | test "x$enable_dependency_tracking" != xno \ |
| 3621 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3622 | am__fastdepCC_TRUE= |
| 3623 | am__fastdepCC_FALSE='#' |
| 3624 | else |
| 3625 | am__fastdepCC_TRUE='#' |
| 3626 | am__fastdepCC_FALSE= |
| 3627 | fi |
| 3628 | |
| 3629 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3630 | if test -n "$ac_tool_prefix"; then |
| 3631 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3632 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3633 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3634 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3635 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3636 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3637 | else |
| 3638 | if test -n "$RANLIB"; then |
| 3639 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3640 | else |
| 3641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3642 | for as_dir in $PATH |
| 3643 | do |
| 3644 | IFS=$as_save_IFS |
| 3645 | test -z "$as_dir" && as_dir=. |
| 3646 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3648 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3649 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3650 | break 2 |
| 3651 | fi |
| 3652 | done |
| 3653 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3654 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3655 | |
| 3656 | fi |
| 3657 | fi |
| 3658 | RANLIB=$ac_cv_prog_RANLIB |
| 3659 | if test -n "$RANLIB"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3660 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3661 | $as_echo "$RANLIB" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3662 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3663 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3664 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3665 | fi |
| 3666 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3667 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3668 | fi |
| 3669 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3670 | ac_ct_RANLIB=$RANLIB |
| 3671 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3672 | set dummy ranlib; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3673 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3674 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3675 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3676 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3677 | else |
| 3678 | if test -n "$ac_ct_RANLIB"; then |
| 3679 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3680 | else |
| 3681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3682 | for as_dir in $PATH |
| 3683 | do |
| 3684 | IFS=$as_save_IFS |
| 3685 | test -z "$as_dir" && as_dir=. |
| 3686 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3688 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3689 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3690 | break 2 |
| 3691 | fi |
| 3692 | done |
| 3693 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3694 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3695 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3696 | fi |
| 3697 | fi |
| 3698 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3699 | if test -n "$ac_ct_RANLIB"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3700 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3701 | $as_echo "$ac_ct_RANLIB" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3702 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3703 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3704 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3705 | fi |
| 3706 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3707 | if test "x$ac_ct_RANLIB" = x; then |
| 3708 | RANLIB=":" |
| 3709 | else |
| 3710 | case $cross_compiling:$ac_tool_warned in |
| 3711 | yes:) |
| 3712 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3713 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3714 | ac_tool_warned=yes ;; |
| 3715 | esac |
| 3716 | RANLIB=$ac_ct_RANLIB |
| 3717 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3718 | else |
| 3719 | RANLIB="$ac_cv_prog_RANLIB" |
| 3720 | fi |
| 3721 | |
| 3722 | for ac_prog in 'bison -y' byacc |
| 3723 | do |
| 3724 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3725 | set dummy $ac_prog; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3726 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3727 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3728 | if test "${ac_cv_prog_YACC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3729 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3730 | else |
| 3731 | if test -n "$YACC"; then |
| 3732 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3733 | else |
| 3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3735 | for as_dir in $PATH |
| 3736 | do |
| 3737 | IFS=$as_save_IFS |
| 3738 | test -z "$as_dir" && as_dir=. |
| 3739 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3741 | ac_cv_prog_YACC="$ac_prog" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3742 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3743 | break 2 |
| 3744 | fi |
| 3745 | done |
| 3746 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3747 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3748 | |
| 3749 | fi |
| 3750 | fi |
| 3751 | YACC=$ac_cv_prog_YACC |
| 3752 | if test -n "$YACC"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3753 | { $as_echo "$as_me:$LINENO: result: $YACC" >&5 |
| 3754 | $as_echo "$YACC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3755 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3756 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3757 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3758 | fi |
| 3759 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3760 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3761 | test -n "$YACC" && break |
| 3762 | done |
| 3763 | test -n "$YACC" || YACC="yacc" |
| 3764 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3765 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3766 | for ac_prog in flex lex |
| 3767 | do |
| 3768 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3769 | set dummy $ac_prog; ac_word=$2 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3770 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3771 | $as_echo_n "checking for $ac_word... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3772 | if test "${ac_cv_prog_LEX+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3773 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3774 | else |
| 3775 | if test -n "$LEX"; then |
| 3776 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3777 | else |
| 3778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3779 | for as_dir in $PATH |
| 3780 | do |
| 3781 | IFS=$as_save_IFS |
| 3782 | test -z "$as_dir" && as_dir=. |
| 3783 | for ac_exec_ext in '' $ac_executable_extensions; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3785 | ac_cv_prog_LEX="$ac_prog" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3786 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3787 | break 2 |
| 3788 | fi |
| 3789 | done |
| 3790 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3791 | IFS=$as_save_IFS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3792 | |
| 3793 | fi |
| 3794 | fi |
| 3795 | LEX=$ac_cv_prog_LEX |
| 3796 | if test -n "$LEX"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3797 | { $as_echo "$as_me:$LINENO: result: $LEX" >&5 |
| 3798 | $as_echo "$LEX" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3799 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3800 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3801 | $as_echo "no" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3802 | fi |
| 3803 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3804 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3805 | test -n "$LEX" && break |
| 3806 | done |
| 3807 | test -n "$LEX" || LEX=":" |
| 3808 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3809 | if test "x$LEX" != "x:"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3810 | cat >conftest.l <<_ACEOF |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3811 | %% |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3812 | a { ECHO; } |
| 3813 | b { REJECT; } |
| 3814 | c { yymore (); } |
| 3815 | d { yyless (1); } |
| 3816 | e { yyless (input () != 0); } |
| 3817 | f { unput (yytext[0]); } |
| 3818 | . { BEGIN INITIAL; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3819 | %% |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3820 | #ifdef YYTEXT_POINTER |
| 3821 | extern char *yytext; |
| 3822 | #endif |
| 3823 | int |
| 3824 | main (void) |
| 3825 | { |
| 3826 | return ! yylex () + ! yywrap (); |
| 3827 | } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3828 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3829 | { (ac_try="$LEX conftest.l" |
| 3830 | case "(($ac_try" in |
| 3831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3832 | *) ac_try_echo=$ac_try;; |
| 3833 | esac |
| 3834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3835 | $as_echo "$ac_try_echo") >&5 |
| 3836 | (eval "$LEX conftest.l") 2>&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3837 | ac_status=$? |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3839 | (exit $ac_status); } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3840 | { $as_echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 3841 | $as_echo_n "checking lex output file root... " >&6; } |
| 3842 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3843 | $as_echo_n "(cached) " >&6 |
| 3844 | else |
| 3845 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3846 | if test -f lex.yy.c; then |
| 3847 | ac_cv_prog_lex_root=lex.yy |
| 3848 | elif test -f lexyy.c; then |
| 3849 | ac_cv_prog_lex_root=lexyy |
| 3850 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3851 | { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 3852 | $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3853 | { (exit 1); exit 1; }; } |
| 3854 | fi |
| 3855 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3856 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 3857 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3858 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3859 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3860 | if test -z "${LEXLIB+set}"; then |
| 3861 | { $as_echo "$as_me:$LINENO: checking lex library" >&5 |
| 3862 | $as_echo_n "checking lex library... " >&6; } |
| 3863 | if test "${ac_cv_lib_lex+set}" = set; then |
| 3864 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3865 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3866 | |
| 3867 | ac_save_LIBS=$LIBS |
| 3868 | ac_cv_lib_lex='none needed' |
| 3869 | for ac_lib in '' -lfl -ll; do |
| 3870 | LIBS="$ac_lib $ac_save_LIBS" |
| 3871 | cat >conftest.$ac_ext <<_ACEOF |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3872 | `cat $LEX_OUTPUT_ROOT.c` |
| 3873 | _ACEOF |
| 3874 | rm -f conftest.$ac_objext conftest$ac_exeext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3875 | if { (ac_try="$ac_link" |
| 3876 | case "(($ac_try" in |
| 3877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3878 | *) ac_try_echo=$ac_try;; |
| 3879 | esac |
| 3880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3881 | $as_echo "$ac_try_echo") >&5 |
| 3882 | (eval "$ac_link") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3883 | ac_status=$? |
| 3884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3885 | rm -f conftest.er1 |
| 3886 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3888 | (exit $ac_status); } && { |
| 3889 | test -z "$ac_c_werror_flag" || |
| 3890 | test ! -s conftest.err |
| 3891 | } && test -s conftest$ac_exeext && { |
| 3892 | test "$cross_compiling" = yes || |
| 3893 | $as_test_x conftest$ac_exeext |
| 3894 | }; then |
| 3895 | ac_cv_lib_lex=$ac_lib |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3896 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3897 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3899 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3900 | |
| 3901 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3902 | |
| 3903 | rm -rf conftest.dSYM |
| 3904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3905 | conftest$ac_exeext conftest.$ac_ext |
| 3906 | test "$ac_cv_lib_lex" != 'none needed' && break |
| 3907 | done |
| 3908 | LIBS=$ac_save_LIBS |
| 3909 | |
| 3910 | fi |
| 3911 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
| 3912 | $as_echo "$ac_cv_lib_lex" >&6; } |
| 3913 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
| 3914 | fi |
| 3915 | |
| 3916 | |
| 3917 | { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 3918 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
| 3919 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3920 | $as_echo_n "(cached) " >&6 |
| 3921 | else |
| 3922 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3923 | # default is implementation-dependent. Figure out which it is, since |
| 3924 | # not all implementations provide the %pointer and %array declarations. |
| 3925 | ac_cv_prog_lex_yytext_pointer=no |
| 3926 | ac_save_LIBS=$LIBS |
| 3927 | LIBS="$LEXLIB $ac_save_LIBS" |
| 3928 | cat >conftest.$ac_ext <<_ACEOF |
| 3929 | #define YYTEXT_POINTER 1 |
| 3930 | `cat $LEX_OUTPUT_ROOT.c` |
| 3931 | _ACEOF |
| 3932 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3933 | if { (ac_try="$ac_link" |
| 3934 | case "(($ac_try" in |
| 3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3936 | *) ac_try_echo=$ac_try;; |
| 3937 | esac |
| 3938 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3939 | $as_echo "$ac_try_echo") >&5 |
| 3940 | (eval "$ac_link") 2>conftest.er1 |
| 3941 | ac_status=$? |
| 3942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3943 | rm -f conftest.er1 |
| 3944 | cat conftest.err >&5 |
| 3945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); } && { |
| 3947 | test -z "$ac_c_werror_flag" || |
| 3948 | test ! -s conftest.err |
| 3949 | } && test -s conftest$ac_exeext && { |
| 3950 | test "$cross_compiling" = yes || |
| 3951 | $as_test_x conftest$ac_exeext |
| 3952 | }; then |
| 3953 | ac_cv_prog_lex_yytext_pointer=yes |
| 3954 | else |
| 3955 | $as_echo "$as_me: failed program was:" >&5 |
| 3956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3957 | |
| 3958 | |
| 3959 | fi |
| 3960 | |
| 3961 | rm -rf conftest.dSYM |
| 3962 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 3963 | conftest$ac_exeext conftest.$ac_ext |
| 3964 | LIBS=$ac_save_LIBS |
| 3965 | |
| 3966 | fi |
| 3967 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 3968 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3969 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3970 | |
| 3971 | cat >>confdefs.h <<\_ACEOF |
| 3972 | #define YYTEXT_POINTER 1 |
| 3973 | _ACEOF |
| 3974 | |
| 3975 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3976 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3977 | |
| 3978 | fi |
| 3979 | if test "$LEX" = :; then |
| 3980 | LEX=${am_missing_run}flex |
| 3981 | fi |
| 3982 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3983 | { $as_echo "$as_me:$LINENO: checking for gcc with C99 support" >&5 |
| 3984 | $as_echo_n "checking for gcc with C99 support... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3985 | if test "${ac_cv_c99+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3986 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 3987 | else |
| 3988 | old_CFLAGS="$CFLAGS" |
| 3989 | CFLAGS="$CFLAGS -std=gnu99" |
| 3990 | cat >conftest.$ac_ext <<_ACEOF |
| 3991 | int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; } |
| 3992 | _ACEOF |
| 3993 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 3994 | if { (ac_try="$ac_compile" |
| 3995 | case "(($ac_try" in |
| 3996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3997 | *) ac_try_echo=$ac_try;; |
| 3998 | esac |
| 3999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4000 | $as_echo "$ac_try_echo") >&5 |
| 4001 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4002 | ac_status=$? |
| 4003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4004 | rm -f conftest.er1 |
| 4005 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); } && { |
| 4008 | test -z "$ac_c_werror_flag" || |
| 4009 | test ! -s conftest.err |
| 4010 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4011 | ac_cv_c99=yes |
| 4012 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4013 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4015 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4016 | ac_cv_c99=no |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4017 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4018 | |
| 4019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4020 | CFLAGS="$old_CFLAGS" |
| 4021 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c99" >&5 |
| 4023 | $as_echo "$ac_cv_c99" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4024 | if test "x$ac_cv_c99" != xyes; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4025 | { { $as_echo "$as_me:$LINENO: error: gcc with C99 support required" >&5 |
| 4026 | $as_echo "$as_me: error: gcc with C99 support required" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4027 | { (exit 1); exit 1; }; } |
| 4028 | fi |
| 4029 | |
| 4030 | |
| 4031 | LOCALEDIR=$datadir |
| 4032 | |
| 4033 | cat >>confdefs.h <<_ACEOF |
| 4034 | #define LOCALEDIR "$LOCALEDIR" |
| 4035 | _ACEOF |
| 4036 | |
| 4037 | |
| 4038 | |
| 4039 | |
| 4040 | DATADIRNAME=$datadir |
| 4041 | |
| 4042 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4043 | # Check whether --enable-largefile was given. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4044 | if test "${enable_largefile+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4045 | enableval=$enable_largefile; |
| 4046 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4047 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4048 | if test "$enable_largefile" != no; then |
| 4049 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4050 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
| 4051 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4052 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4053 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4054 | else |
| 4055 | ac_cv_sys_largefile_CC=no |
| 4056 | if test "$GCC" != yes; then |
| 4057 | ac_save_CC=$CC |
| 4058 | while :; do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4059 | # IRIX 6.2 and later do not support large files by default, |
| 4060 | # so use the C compiler's -n32 option if that helps. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4061 | cat >conftest.$ac_ext <<_ACEOF |
| 4062 | /* confdefs.h. */ |
| 4063 | _ACEOF |
| 4064 | cat confdefs.h >>conftest.$ac_ext |
| 4065 | cat >>conftest.$ac_ext <<_ACEOF |
| 4066 | /* end confdefs.h. */ |
| 4067 | #include <sys/types.h> |
| 4068 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4069 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4070 | since some C++ compilers masquerading as C compilers |
| 4071 | incorrectly reject 9223372036854775807. */ |
| 4072 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4073 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4074 | && LARGE_OFF_T % 2147483647 == 1) |
| 4075 | ? 1 : -1]; |
| 4076 | int |
| 4077 | main () |
| 4078 | { |
| 4079 | |
| 4080 | ; |
| 4081 | return 0; |
| 4082 | } |
| 4083 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4084 | rm -f conftest.$ac_objext |
| 4085 | if { (ac_try="$ac_compile" |
| 4086 | case "(($ac_try" in |
| 4087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4088 | *) ac_try_echo=$ac_try;; |
| 4089 | esac |
| 4090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4091 | $as_echo "$ac_try_echo") >&5 |
| 4092 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4093 | ac_status=$? |
| 4094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4095 | rm -f conftest.er1 |
| 4096 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4098 | (exit $ac_status); } && { |
| 4099 | test -z "$ac_c_werror_flag" || |
| 4100 | test ! -s conftest.err |
| 4101 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4102 | break |
| 4103 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4104 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4106 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4107 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4108 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4109 | |
| 4110 | rm -f core conftest.err conftest.$ac_objext |
| 4111 | CC="$CC -n32" |
| 4112 | rm -f conftest.$ac_objext |
| 4113 | if { (ac_try="$ac_compile" |
| 4114 | case "(($ac_try" in |
| 4115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4116 | *) ac_try_echo=$ac_try;; |
| 4117 | esac |
| 4118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4119 | $as_echo "$ac_try_echo") >&5 |
| 4120 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4121 | ac_status=$? |
| 4122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4123 | rm -f conftest.er1 |
| 4124 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4126 | (exit $ac_status); } && { |
| 4127 | test -z "$ac_c_werror_flag" || |
| 4128 | test ! -s conftest.err |
| 4129 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4130 | ac_cv_sys_largefile_CC=' -n32'; break |
| 4131 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4132 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4134 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4135 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4136 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4137 | |
| 4138 | rm -f core conftest.err conftest.$ac_objext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4139 | break |
| 4140 | done |
| 4141 | CC=$ac_save_CC |
| 4142 | rm -f conftest.$ac_ext |
| 4143 | fi |
| 4144 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4145 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
| 4146 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4147 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 4148 | CC=$CC$ac_cv_sys_largefile_CC |
| 4149 | fi |
| 4150 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4151 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 4152 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4153 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4154 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4155 | else |
| 4156 | while :; do |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4157 | cat >conftest.$ac_ext <<_ACEOF |
| 4158 | /* confdefs.h. */ |
| 4159 | _ACEOF |
| 4160 | cat confdefs.h >>conftest.$ac_ext |
| 4161 | cat >>conftest.$ac_ext <<_ACEOF |
| 4162 | /* end confdefs.h. */ |
| 4163 | #include <sys/types.h> |
| 4164 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4165 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4166 | since some C++ compilers masquerading as C compilers |
| 4167 | incorrectly reject 9223372036854775807. */ |
| 4168 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4169 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4170 | && LARGE_OFF_T % 2147483647 == 1) |
| 4171 | ? 1 : -1]; |
| 4172 | int |
| 4173 | main () |
| 4174 | { |
| 4175 | |
| 4176 | ; |
| 4177 | return 0; |
| 4178 | } |
| 4179 | _ACEOF |
| 4180 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4181 | if { (ac_try="$ac_compile" |
| 4182 | case "(($ac_try" in |
| 4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4184 | *) ac_try_echo=$ac_try;; |
| 4185 | esac |
| 4186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4187 | $as_echo "$ac_try_echo") >&5 |
| 4188 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4189 | ac_status=$? |
| 4190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4191 | rm -f conftest.er1 |
| 4192 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); } && { |
| 4195 | test -z "$ac_c_werror_flag" || |
| 4196 | test ! -s conftest.err |
| 4197 | } && test -s conftest.$ac_objext; then |
| 4198 | ac_cv_sys_file_offset_bits=no; break |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4199 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4200 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4202 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4203 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4204 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4205 | |
| 4206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4207 | cat >conftest.$ac_ext <<_ACEOF |
| 4208 | /* confdefs.h. */ |
| 4209 | _ACEOF |
| 4210 | cat confdefs.h >>conftest.$ac_ext |
| 4211 | cat >>conftest.$ac_ext <<_ACEOF |
| 4212 | /* end confdefs.h. */ |
| 4213 | #define _FILE_OFFSET_BITS 64 |
| 4214 | #include <sys/types.h> |
| 4215 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4216 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4217 | since some C++ compilers masquerading as C compilers |
| 4218 | incorrectly reject 9223372036854775807. */ |
| 4219 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4220 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4221 | && LARGE_OFF_T % 2147483647 == 1) |
| 4222 | ? 1 : -1]; |
| 4223 | int |
| 4224 | main () |
| 4225 | { |
| 4226 | |
| 4227 | ; |
| 4228 | return 0; |
| 4229 | } |
| 4230 | _ACEOF |
| 4231 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4232 | if { (ac_try="$ac_compile" |
| 4233 | case "(($ac_try" in |
| 4234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4235 | *) ac_try_echo=$ac_try;; |
| 4236 | esac |
| 4237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4238 | $as_echo "$ac_try_echo") >&5 |
| 4239 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4240 | ac_status=$? |
| 4241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4242 | rm -f conftest.er1 |
| 4243 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4245 | (exit $ac_status); } && { |
| 4246 | test -z "$ac_c_werror_flag" || |
| 4247 | test ! -s conftest.err |
| 4248 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4249 | ac_cv_sys_file_offset_bits=64; break |
| 4250 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4251 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4253 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4254 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4255 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4256 | |
| 4257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4258 | ac_cv_sys_file_offset_bits=unknown |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4259 | break |
| 4260 | done |
| 4261 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
| 4263 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 4264 | case $ac_cv_sys_file_offset_bits in #( |
| 4265 | no | unknown) ;; |
| 4266 | *) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4267 | cat >>confdefs.h <<_ACEOF |
| 4268 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 4269 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4270 | ;; |
| 4271 | esac |
| 4272 | rm -rf conftest* |
| 4273 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 4274 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
| 4275 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4276 | if test "${ac_cv_sys_large_files+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4277 | $as_echo_n "(cached) " >&6 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4278 | else |
| 4279 | while :; do |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4280 | cat >conftest.$ac_ext <<_ACEOF |
| 4281 | /* confdefs.h. */ |
| 4282 | _ACEOF |
| 4283 | cat confdefs.h >>conftest.$ac_ext |
| 4284 | cat >>conftest.$ac_ext <<_ACEOF |
| 4285 | /* end confdefs.h. */ |
| 4286 | #include <sys/types.h> |
| 4287 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4288 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4289 | since some C++ compilers masquerading as C compilers |
| 4290 | incorrectly reject 9223372036854775807. */ |
| 4291 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4292 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4293 | && LARGE_OFF_T % 2147483647 == 1) |
| 4294 | ? 1 : -1]; |
| 4295 | int |
| 4296 | main () |
| 4297 | { |
| 4298 | |
| 4299 | ; |
| 4300 | return 0; |
| 4301 | } |
| 4302 | _ACEOF |
| 4303 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4304 | if { (ac_try="$ac_compile" |
| 4305 | case "(($ac_try" in |
| 4306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4307 | *) ac_try_echo=$ac_try;; |
| 4308 | esac |
| 4309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4310 | $as_echo "$ac_try_echo") >&5 |
| 4311 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4312 | ac_status=$? |
| 4313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4314 | rm -f conftest.er1 |
| 4315 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4317 | (exit $ac_status); } && { |
| 4318 | test -z "$ac_c_werror_flag" || |
| 4319 | test ! -s conftest.err |
| 4320 | } && test -s conftest.$ac_objext; then |
| 4321 | ac_cv_sys_large_files=no; break |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4322 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4323 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4325 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4326 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4327 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4328 | |
| 4329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4330 | cat >conftest.$ac_ext <<_ACEOF |
| 4331 | /* confdefs.h. */ |
| 4332 | _ACEOF |
| 4333 | cat confdefs.h >>conftest.$ac_ext |
| 4334 | cat >>conftest.$ac_ext <<_ACEOF |
| 4335 | /* end confdefs.h. */ |
| 4336 | #define _LARGE_FILES 1 |
| 4337 | #include <sys/types.h> |
| 4338 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 4339 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4340 | since some C++ compilers masquerading as C compilers |
| 4341 | incorrectly reject 9223372036854775807. */ |
| 4342 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4343 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4344 | && LARGE_OFF_T % 2147483647 == 1) |
| 4345 | ? 1 : -1]; |
| 4346 | int |
| 4347 | main () |
| 4348 | { |
| 4349 | |
| 4350 | ; |
| 4351 | return 0; |
| 4352 | } |
| 4353 | _ACEOF |
| 4354 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4355 | if { (ac_try="$ac_compile" |
| 4356 | case "(($ac_try" in |
| 4357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4358 | *) ac_try_echo=$ac_try;; |
| 4359 | esac |
| 4360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4361 | $as_echo "$ac_try_echo") >&5 |
| 4362 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4363 | ac_status=$? |
| 4364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4365 | rm -f conftest.er1 |
| 4366 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4368 | (exit $ac_status); } && { |
| 4369 | test -z "$ac_c_werror_flag" || |
| 4370 | test ! -s conftest.err |
| 4371 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4372 | ac_cv_sys_large_files=1; break |
| 4373 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4374 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4376 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4377 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4378 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4379 | |
| 4380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4381 | ac_cv_sys_large_files=unknown |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4382 | break |
| 4383 | done |
| 4384 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4385 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
| 4386 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 4387 | case $ac_cv_sys_large_files in #( |
| 4388 | no | unknown) ;; |
| 4389 | *) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4390 | cat >>confdefs.h <<_ACEOF |
| 4391 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 4392 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4393 | ;; |
| 4394 | esac |
| 4395 | rm -rf conftest* |
| 4396 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4397 | fi |
| 4398 | |
| 4399 | |
| 4400 | native_ld=no |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4401 | # Check whether --enable-generic was given. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4402 | if test "${enable_generic+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4403 | enableval=$enable_generic; if test "$enable_generic" = no; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4404 | case "$host_cpu" in |
| 4405 | i?86) |
| 4406 | cat >>confdefs.h <<\_ACEOF |
| 4407 | #define NATIVE_ELF 32 |
| 4408 | _ACEOF |
| 4409 | |
| 4410 | native_ld=yes |
| 4411 | base_cpu=i386 |
| 4412 | ;; |
| 4413 | *) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4414 | { { $as_echo "$as_me:$LINENO: error: no machine-specific linker for this configuration available" >&5 |
| 4415 | $as_echo "$as_me: error: no machine-specific linker for this configuration available" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4416 | { (exit 1); exit 1; }; } |
| 4417 | ;; |
| 4418 | esac |
| 4419 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4420 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4421 | |
| 4422 | |
| 4423 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4424 | if test "$native_ld" = yes; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4425 | NATIVE_LD_TRUE= |
| 4426 | NATIVE_LD_FALSE='#' |
| 4427 | else |
| 4428 | NATIVE_LD_TRUE='#' |
| 4429 | NATIVE_LD_FALSE= |
| 4430 | fi |
| 4431 | |
| 4432 | if test -z "$base_cpu"; then |
| 4433 | base_cpu=none |
| 4434 | fi |
| 4435 | |
| 4436 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4437 | if false; then |
| 4438 | NEVER_TRUE= |
| 4439 | NEVER_FALSE='#' |
| 4440 | else |
| 4441 | NEVER_TRUE='#' |
| 4442 | NEVER_FALSE= |
| 4443 | fi |
| 4444 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4445 | |
| 4446 | use_mudflap=no |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4447 | # Check whether --enable-mudflap was given. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4448 | if test "${enable_mudflap+set}" = set; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4449 | enableval=$enable_mudflap; if test "x$enable_mudflap" = xyes; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4450 | # Check whether the compiler support -fmudflap. |
| 4451 | old_CFLAGS="$CFLAGS" |
| 4452 | CFLAGS="$CFLAGS -fmudflap" |
| 4453 | cat >conftest.$ac_ext <<_ACEOF |
| 4454 | /* confdefs.h. */ |
| 4455 | _ACEOF |
| 4456 | cat confdefs.h >>conftest.$ac_ext |
| 4457 | cat >>conftest.$ac_ext <<_ACEOF |
| 4458 | /* end confdefs.h. */ |
| 4459 | |
| 4460 | int |
| 4461 | main () |
| 4462 | { |
| 4463 | |
| 4464 | ; |
| 4465 | return 0; |
| 4466 | } |
| 4467 | _ACEOF |
| 4468 | rm -f conftest.$ac_objext |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4469 | if { (ac_try="$ac_compile" |
| 4470 | case "(($ac_try" in |
| 4471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4472 | *) ac_try_echo=$ac_try;; |
| 4473 | esac |
| 4474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4475 | $as_echo "$ac_try_echo") >&5 |
| 4476 | (eval "$ac_compile") 2>conftest.er1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4477 | ac_status=$? |
| 4478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4479 | rm -f conftest.er1 |
| 4480 | cat conftest.err >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4482 | (exit $ac_status); } && { |
| 4483 | test -z "$ac_c_werror_flag" || |
| 4484 | test ! -s conftest.err |
| 4485 | } && test -s conftest.$ac_objext; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4486 | use_mudflap=yes |
| 4487 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4488 | $as_echo "$as_me: failed program was:" >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4490 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4491 | use_mudflap=fail |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4492 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4493 | |
| 4494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4495 | CFLAGS="$old_CFLAGS" |
| 4496 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4497 | fi |
| 4498 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4499 | if test "$use_mudflap" = fail; then |
| 4500 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 4501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4502 | { { $as_echo "$as_me:$LINENO: error: --enable-mudflap requires a compiler which understands this option |
| 4503 | See \`config.log' for more details." >&5 |
| 4504 | $as_echo "$as_me: error: --enable-mudflap requires a compiler which understands this option |
| 4505 | See \`config.log' for more details." >&2;} |
| 4506 | { (exit 1); exit 1; }; }; } |
| 4507 | fi |
| 4508 | if test "$use_mudflap" = yes; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4509 | MUDFLAP_TRUE= |
| 4510 | MUDFLAP_FALSE='#' |
| 4511 | else |
| 4512 | MUDFLAP_TRUE='#' |
| 4513 | MUDFLAP_FALSE= |
| 4514 | fi |
| 4515 | |
| 4516 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4517 | use_debugpred=0 |
| 4518 | # Check whether --enable-debugpred was given. |
| 4519 | if test "${enable_debugpred+set}" = set; then |
| 4520 | enableval=$enable_debugpred; use_debugpred=1 |
| 4521 | else |
| 4522 | use_debugpred=0 |
| 4523 | fi |
| 4524 | |
| 4525 | DEBUGPRED=$use_debugpred |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4526 | |
| 4527 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4528 | # Check whether --enable-gprof was given. |
| 4529 | if test "${enable_gprof+set}" = set; then |
| 4530 | enableval=$enable_gprof; use_gprof=yes |
| 4531 | else |
| 4532 | use_gprof=no |
| 4533 | fi |
| 4534 | |
| 4535 | if test "$use_gprof" = yes; then |
| 4536 | CFLAGS="$CFLAGS -pg" |
| 4537 | LDFLAGS="$LDFLAGS -pg" |
| 4538 | fi |
| 4539 | if test "$use_gprof" = yes; then |
| 4540 | GPROF_TRUE= |
| 4541 | GPROF_FALSE='#' |
| 4542 | else |
| 4543 | GPROF_TRUE='#' |
| 4544 | GPROF_FALSE= |
| 4545 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4546 | |
| 4547 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4548 | # Enable gcov suport. |
| 4549 | # Check whether --enable-gcov was given. |
| 4550 | if test "${enable_gcov+set}" = set; then |
| 4551 | enableval=$enable_gcov; use_gcov=yes |
| 4552 | else |
| 4553 | use_gcov=no |
| 4554 | fi |
| 4555 | |
| 4556 | if test "$use_gcov" = yes; then |
| 4557 | CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" |
| 4558 | LDFLAGS="$LDFLAGS -fprofile-arcs" |
| 4559 | fi |
| 4560 | if test "$use_gcov" = yes; then |
| 4561 | GCOV_TRUE= |
| 4562 | GCOV_FALSE='#' |
| 4563 | else |
| 4564 | GCOV_TRUE='#' |
| 4565 | GCOV_FALSE= |
| 4566 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4567 | |
| 4568 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4569 | if test "$use_mudflap" = yes -o "$use_gprof" = yes -o "$use_gcov" = yes; then |
| 4570 | BUILD_STATIC_TRUE= |
| 4571 | BUILD_STATIC_FALSE='#' |
| 4572 | else |
| 4573 | BUILD_STATIC_TRUE='#' |
| 4574 | BUILD_STATIC_FALSE= |
| 4575 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4576 | |
| 4577 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4578 | # Check whether --enable-tests-rpath was given. |
| 4579 | if test "${enable_tests_rpath+set}" = set; then |
| 4580 | enableval=$enable_tests_rpath; tests_use_rpath=yes |
| 4581 | else |
| 4582 | tests_use_rpath=no |
| 4583 | fi |
| 4584 | |
| 4585 | if test "$tests_use_rpath" = yes; then |
| 4586 | TESTS_RPATH_TRUE= |
| 4587 | TESTS_RPATH_FALSE='#' |
| 4588 | else |
| 4589 | TESTS_RPATH_TRUE='#' |
| 4590 | TESTS_RPATH_FALSE= |
| 4591 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4592 | |
| 4593 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4594 | LIBEBL_SUBDIR="$PACKAGE" |
| 4595 | # Check whether --enable-libebl-subdir was given. |
| 4596 | if test "${enable_libebl_subdir+set}" = set; then |
| 4597 | enableval=$enable_libebl_subdir; LIBEBL_SUBDIR="$enable_libebl_subdir" |
| 4598 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4599 | |
| 4600 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4601 | cat >>confdefs.h <<_ACEOF |
| 4602 | #define LIBEBL_SUBDIR "$LIBEBL_SUBDIR" |
| 4603 | _ACEOF |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4610 | ac_config_files="$ac_config_files lib/Makefile" |
| 4611 | |
| 4612 | |
| 4613 | ac_config_files="$ac_config_files libelf/Makefile" |
| 4614 | |
| 4615 | |
| 4616 | ac_config_files="$ac_config_files libebl/Makefile" |
| 4617 | |
| 4618 | |
| 4619 | ac_config_files="$ac_config_files libdw/Makefile" |
| 4620 | |
| 4621 | |
| 4622 | ac_config_files="$ac_config_files libdwfl/Makefile" |
| 4623 | |
| 4624 | |
| 4625 | ac_config_files="$ac_config_files libcpu/Makefile" |
| 4626 | |
| 4627 | |
| 4628 | if true; then |
| 4629 | HAVE_LIBASM_TRUE= |
| 4630 | HAVE_LIBASM_FALSE='#' |
| 4631 | else |
| 4632 | HAVE_LIBASM_TRUE='#' |
| 4633 | HAVE_LIBASM_FALSE= |
| 4634 | fi |
| 4635 | ac_config_files="$ac_config_files libasm/Makefile" |
| 4636 | |
| 4637 | |
| 4638 | ac_config_files="$ac_config_files backends/Makefile" |
| 4639 | |
| 4640 | |
| 4641 | ac_config_files="$ac_config_files src/Makefile po/Makefile.in" |
| 4642 | |
| 4643 | |
| 4644 | if false; then |
| 4645 | STANDALONE_TRUE= |
| 4646 | STANDALONE_FALSE='#' |
| 4647 | else |
| 4648 | STANDALONE_TRUE='#' |
| 4649 | STANDALONE_FALSE= |
| 4650 | fi |
| 4651 | ac_config_files="$ac_config_files tests/Makefile" |
| 4652 | |
| 4653 | |
| 4654 | # Get the definitions necessary to create the Makefiles in the po |
| 4655 | # subdirectories. This is a small subset of the gettext rules. |
| 4656 | USE_NLS=yes |
| 4657 | |
| 4658 | |
| 4659 | { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4660 | $as_echo_n "checking whether NLS is requested... " >&6; } |
| 4661 | # Check whether --enable-nls was given. |
| 4662 | if test "${enable_nls+set}" = set; then |
| 4663 | enableval=$enable_nls; USE_NLS=$enableval |
| 4664 | else |
| 4665 | USE_NLS=yes |
| 4666 | fi |
| 4667 | |
| 4668 | { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4669 | $as_echo "$USE_NLS" >&6; } |
| 4670 | |
| 4671 | |
| 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
| 4676 | # Prepare PATH_SEPARATOR. |
| 4677 | # The user is always right. |
| 4678 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4679 | echo "#! /bin/sh" >conf$$.sh |
| 4680 | echo "exit 0" >>conf$$.sh |
| 4681 | chmod +x conf$$.sh |
| 4682 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4683 | PATH_SEPARATOR=';' |
| 4684 | else |
| 4685 | PATH_SEPARATOR=: |
| 4686 | fi |
| 4687 | rm -f conf$$.sh |
| 4688 | fi |
| 4689 | |
| 4690 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4691 | # as systems may use methods other than mode bits to determine executability. |
| 4692 | cat >conf$$.file <<_ASEOF |
| 4693 | #! /bin/sh |
| 4694 | exit 0 |
| 4695 | _ASEOF |
| 4696 | chmod +x conf$$.file |
| 4697 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4698 | ac_executable_p="test -x" |
| 4699 | else |
| 4700 | ac_executable_p="test -f" |
| 4701 | fi |
| 4702 | rm -f conf$$.file |
| 4703 | |
| 4704 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4705 | set dummy msgfmt; ac_word=$2 |
| 4706 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4707 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4708 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4709 | $as_echo_n "(cached) " >&6 |
| 4710 | else |
| 4711 | case "$MSGFMT" in |
| 4712 | [\\/]* | ?:[\\/]*) |
| 4713 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4714 | ;; |
| 4715 | *) |
| 4716 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4717 | for ac_dir in $PATH; do |
| 4718 | IFS="$ac_save_IFS" |
| 4719 | test -z "$ac_dir" && ac_dir=. |
| 4720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4721 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4722 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 4723 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
| 4724 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4725 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4726 | break 2 |
| 4727 | fi |
| 4728 | fi |
| 4729 | done |
| 4730 | done |
| 4731 | IFS="$ac_save_IFS" |
| 4732 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4733 | ;; |
| 4734 | esac |
| 4735 | fi |
| 4736 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4737 | if test "$MSGFMT" != ":"; then |
| 4738 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4739 | $as_echo "$MSGFMT" >&6; } |
| 4740 | else |
| 4741 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4742 | $as_echo "no" >&6; } |
| 4743 | fi |
| 4744 | |
| 4745 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4746 | set dummy gmsgfmt; ac_word=$2 |
| 4747 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4748 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4749 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4750 | $as_echo_n "(cached) " >&6 |
| 4751 | else |
| 4752 | case $GMSGFMT in |
| 4753 | [\\/]* | ?:[\\/]*) |
| 4754 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4755 | ;; |
| 4756 | *) |
| 4757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4758 | for as_dir in $PATH |
| 4759 | do |
| 4760 | IFS=$as_save_IFS |
| 4761 | test -z "$as_dir" && as_dir=. |
| 4762 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4764 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4765 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4766 | break 2 |
| 4767 | fi |
| 4768 | done |
| 4769 | done |
| 4770 | IFS=$as_save_IFS |
| 4771 | |
| 4772 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4773 | ;; |
| 4774 | esac |
| 4775 | fi |
| 4776 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 4777 | if test -n "$GMSGFMT"; then |
| 4778 | { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4779 | $as_echo "$GMSGFMT" >&6; } |
| 4780 | else |
| 4781 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4782 | $as_echo "no" >&6; } |
| 4783 | fi |
| 4784 | |
| 4785 | |
| 4786 | |
| 4787 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 4788 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 4789 | *) MSGFMT_015=$MSGFMT ;; |
| 4790 | esac |
| 4791 | |
| 4792 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 4793 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 4794 | *) GMSGFMT_015=$GMSGFMT ;; |
| 4795 | esac |
| 4796 | |
| 4797 | |
| 4798 | |
| 4799 | # Prepare PATH_SEPARATOR. |
| 4800 | # The user is always right. |
| 4801 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4802 | echo "#! /bin/sh" >conf$$.sh |
| 4803 | echo "exit 0" >>conf$$.sh |
| 4804 | chmod +x conf$$.sh |
| 4805 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4806 | PATH_SEPARATOR=';' |
| 4807 | else |
| 4808 | PATH_SEPARATOR=: |
| 4809 | fi |
| 4810 | rm -f conf$$.sh |
| 4811 | fi |
| 4812 | |
| 4813 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4814 | # as systems may use methods other than mode bits to determine executability. |
| 4815 | cat >conf$$.file <<_ASEOF |
| 4816 | #! /bin/sh |
| 4817 | exit 0 |
| 4818 | _ASEOF |
| 4819 | chmod +x conf$$.file |
| 4820 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4821 | ac_executable_p="test -x" |
| 4822 | else |
| 4823 | ac_executable_p="test -f" |
| 4824 | fi |
| 4825 | rm -f conf$$.file |
| 4826 | |
| 4827 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4828 | set dummy xgettext; ac_word=$2 |
| 4829 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4830 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4831 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4832 | $as_echo_n "(cached) " >&6 |
| 4833 | else |
| 4834 | case "$XGETTEXT" in |
| 4835 | [\\/]* | ?:[\\/]*) |
| 4836 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4837 | ;; |
| 4838 | *) |
| 4839 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4840 | for ac_dir in $PATH; do |
| 4841 | IFS="$ac_save_IFS" |
| 4842 | test -z "$ac_dir" && ac_dir=. |
| 4843 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4844 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4845 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 4846 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
| 4847 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4848 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4849 | break 2 |
| 4850 | fi |
| 4851 | fi |
| 4852 | done |
| 4853 | done |
| 4854 | IFS="$ac_save_IFS" |
| 4855 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4856 | ;; |
| 4857 | esac |
| 4858 | fi |
| 4859 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4860 | if test "$XGETTEXT" != ":"; then |
| 4861 | { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4862 | $as_echo "$XGETTEXT" >&6; } |
| 4863 | else |
| 4864 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4865 | $as_echo "no" >&6; } |
| 4866 | fi |
| 4867 | |
| 4868 | rm -f messages.po |
| 4869 | |
| 4870 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 4871 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 4872 | *) XGETTEXT_015=$XGETTEXT ;; |
| 4873 | esac |
| 4874 | |
| 4875 | |
| 4876 | |
| 4877 | # Prepare PATH_SEPARATOR. |
| 4878 | # The user is always right. |
| 4879 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4880 | echo "#! /bin/sh" >conf$$.sh |
| 4881 | echo "exit 0" >>conf$$.sh |
| 4882 | chmod +x conf$$.sh |
| 4883 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4884 | PATH_SEPARATOR=';' |
| 4885 | else |
| 4886 | PATH_SEPARATOR=: |
| 4887 | fi |
| 4888 | rm -f conf$$.sh |
| 4889 | fi |
| 4890 | |
| 4891 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4892 | # as systems may use methods other than mode bits to determine executability. |
| 4893 | cat >conf$$.file <<_ASEOF |
| 4894 | #! /bin/sh |
| 4895 | exit 0 |
| 4896 | _ASEOF |
| 4897 | chmod +x conf$$.file |
| 4898 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4899 | ac_executable_p="test -x" |
| 4900 | else |
| 4901 | ac_executable_p="test -f" |
| 4902 | fi |
| 4903 | rm -f conf$$.file |
| 4904 | |
| 4905 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4906 | set dummy msgmerge; ac_word=$2 |
| 4907 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4908 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4909 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4910 | $as_echo_n "(cached) " >&6 |
| 4911 | else |
| 4912 | case "$MSGMERGE" in |
| 4913 | [\\/]* | ?:[\\/]*) |
| 4914 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4915 | ;; |
| 4916 | *) |
| 4917 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4918 | for ac_dir in $PATH; do |
| 4919 | IFS="$ac_save_IFS" |
| 4920 | test -z "$ac_dir" && ac_dir=. |
| 4921 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4922 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4923 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 4924 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
| 4925 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4926 | break 2 |
| 4927 | fi |
| 4928 | fi |
| 4929 | done |
| 4930 | done |
| 4931 | IFS="$ac_save_IFS" |
| 4932 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4933 | ;; |
| 4934 | esac |
| 4935 | fi |
| 4936 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4937 | if test "$MSGMERGE" != ":"; then |
| 4938 | { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4939 | $as_echo "$MSGMERGE" >&6; } |
| 4940 | else |
| 4941 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 4942 | $as_echo "no" >&6; } |
| 4943 | fi |
| 4944 | |
| 4945 | |
| 4946 | test -n "$localedir" || localedir='${datadir}/locale' |
| 4947 | |
| 4948 | |
| 4949 | ac_config_commands="$ac_config_commands po-directories" |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | |
| 4954 | |
| 4955 | |
| 4956 | ac_config_files="$ac_config_files version.h:config/version.h.in" |
| 4957 | |
| 4958 | |
| 4959 | case $PACKAGE_VERSION in |
| 4960 | 0.???) eu_version=${PACKAGE_VERSION#0.} ;; |
| 4961 | ?.???) eu_version=${PACKAGE_VERSION/./} ;; |
| 4962 | ?.??) eu_version=${PACKAGE_VERSION/./}0 ;; |
| 4963 | ?.?) eu_version=${PACKAGE_VERSION/./}00 ;; |
| 4964 | *) { { $as_echo "$as_me:$LINENO: error: confused by version number '$PACKAGE_VERSION'" >&5 |
| 4965 | $as_echo "$as_me: error: confused by version number '$PACKAGE_VERSION'" >&2;} |
| 4966 | { (exit 1); exit 1; }; } ;; |
| 4967 | esac |
| 4968 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4969 | cat >confcache <<\_ACEOF |
| 4970 | # This file is a shell script that caches the results of configure |
| 4971 | # tests run on this system so they can be shared between configure |
| 4972 | # scripts and configure runs, see configure's option --config-cache. |
| 4973 | # It is not useful on other systems. If it contains results you don't |
| 4974 | # want to keep, you may remove or edit it. |
| 4975 | # |
| 4976 | # config.status only pays attention to the cache file if you give it |
| 4977 | # the --recheck option to rerun configure. |
| 4978 | # |
| 4979 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4980 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4981 | # following values. |
| 4982 | |
| 4983 | _ACEOF |
| 4984 | |
| 4985 | # The following way of writing the cache mishandles newlines in values, |
| 4986 | # but we know of no workaround that is simple, portable, and efficient. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4987 | # So, we kill variables containing newlines. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 4988 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4989 | # and sets the high bit in the cache file unless we assign to the vars. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 4990 | ( |
| 4991 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 4992 | eval ac_val=\$$ac_var |
| 4993 | case $ac_val in #( |
| 4994 | *${as_nl}*) |
| 4995 | case $ac_var in #( |
| 4996 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 4997 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 4998 | esac |
| 4999 | case $ac_var in #( |
| 5000 | _ | IFS | as_nl) ;; #( |
| 5001 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 5002 | *) $as_unset $ac_var ;; |
| 5003 | esac ;; |
| 5004 | esac |
| 5005 | done |
| 5006 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5007 | (set) 2>&1 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5008 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 5009 | *${as_nl}ac_space=\ *) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5010 | # `set' does not quote correctly, so add quotes (double-quote |
| 5011 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 5012 | sed -n \ |
| 5013 | "s/'/'\\\\''/g; |
| 5014 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5015 | ;; #( |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5016 | *) |
| 5017 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5018 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5019 | ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5020 | esac | |
| 5021 | sort |
| 5022 | ) | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5023 | sed ' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5024 | /^ac_cv_env_/b end |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5025 | t clear |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5026 | :clear |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5027 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5028 | t end |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5029 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5030 | :end' >>confcache |
| 5031 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 5032 | if test -w "$cache_file"; then |
| 5033 | test "x$cache_file" != "x/dev/null" && |
| 5034 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 5035 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5036 | cat confcache >$cache_file |
| 5037 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5038 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 5039 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5040 | fi |
| 5041 | fi |
| 5042 | rm -f confcache |
| 5043 | |
| 5044 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5045 | # Let make expand exec_prefix. |
| 5046 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5047 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5048 | DEFS=-DHAVE_CONFIG_H |
| 5049 | |
| 5050 | ac_libobjs= |
| 5051 | ac_ltlibobjs= |
| 5052 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5053 | # 1. Remove the extension, and $U if already installed. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5054 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5055 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 5056 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5057 | # will be set to the directory where LIBOBJS objects are built. |
| 5058 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5059 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5060 | done |
| 5061 | LIBOBJS=$ac_libobjs |
| 5062 | |
| 5063 | LTLIBOBJS=$ac_ltlibobjs |
| 5064 | |
| 5065 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5066 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 5067 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5068 | Usually this means the macro was only invoked conditionally." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5069 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 5070 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5071 | { (exit 1); exit 1; }; } |
| 5072 | fi |
| 5073 | if test -z "${USE_TLS_TRUE}" && test -z "${USE_TLS_FALSE}"; then |
| 5074 | { { $as_echo "$as_me:$LINENO: error: conditional \"USE_TLS\" was never defined. |
| 5075 | Usually this means the macro was only invoked conditionally." >&5 |
| 5076 | $as_echo "$as_me: error: conditional \"USE_TLS\" was never defined. |
| 5077 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5078 | { (exit 1); exit 1; }; } |
| 5079 | fi |
| 5080 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 5081 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 5082 | Usually this means the macro was only invoked conditionally." >&5 |
| 5083 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5084 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5085 | { (exit 1); exit 1; }; } |
| 5086 | fi |
| 5087 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5088 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5089 | Usually this means the macro was only invoked conditionally." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5090 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5091 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5092 | { (exit 1); exit 1; }; } |
| 5093 | fi |
| 5094 | if test -z "${NATIVE_LD_TRUE}" && test -z "${NATIVE_LD_FALSE}"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5095 | { { $as_echo "$as_me:$LINENO: error: conditional \"NATIVE_LD\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5096 | Usually this means the macro was only invoked conditionally." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5097 | $as_echo "$as_me: error: conditional \"NATIVE_LD\" was never defined. |
| 5098 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5099 | { (exit 1); exit 1; }; } |
| 5100 | fi |
| 5101 | if test -z "${NEVER_TRUE}" && test -z "${NEVER_FALSE}"; then |
| 5102 | { { $as_echo "$as_me:$LINENO: error: conditional \"NEVER\" was never defined. |
| 5103 | Usually this means the macro was only invoked conditionally." >&5 |
| 5104 | $as_echo "$as_me: error: conditional \"NEVER\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5105 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5106 | { (exit 1); exit 1; }; } |
| 5107 | fi |
| 5108 | if test -z "${MUDFLAP_TRUE}" && test -z "${MUDFLAP_FALSE}"; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5109 | { { $as_echo "$as_me:$LINENO: error: conditional \"MUDFLAP\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5110 | Usually this means the macro was only invoked conditionally." >&5 |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5111 | $as_echo "$as_me: error: conditional \"MUDFLAP\" was never defined. |
| 5112 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5113 | { (exit 1); exit 1; }; } |
| 5114 | fi |
| 5115 | if test -z "${GPROF_TRUE}" && test -z "${GPROF_FALSE}"; then |
| 5116 | { { $as_echo "$as_me:$LINENO: error: conditional \"GPROF\" was never defined. |
| 5117 | Usually this means the macro was only invoked conditionally." >&5 |
| 5118 | $as_echo "$as_me: error: conditional \"GPROF\" was never defined. |
| 5119 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5120 | { (exit 1); exit 1; }; } |
| 5121 | fi |
| 5122 | if test -z "${GCOV_TRUE}" && test -z "${GCOV_FALSE}"; then |
| 5123 | { { $as_echo "$as_me:$LINENO: error: conditional \"GCOV\" was never defined. |
| 5124 | Usually this means the macro was only invoked conditionally." >&5 |
| 5125 | $as_echo "$as_me: error: conditional \"GCOV\" was never defined. |
| 5126 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5127 | { (exit 1); exit 1; }; } |
| 5128 | fi |
| 5129 | if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then |
| 5130 | { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_STATIC\" was never defined. |
| 5131 | Usually this means the macro was only invoked conditionally." >&5 |
| 5132 | $as_echo "$as_me: error: conditional \"BUILD_STATIC\" was never defined. |
| 5133 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5134 | { (exit 1); exit 1; }; } |
| 5135 | fi |
| 5136 | if test -z "${TESTS_RPATH_TRUE}" && test -z "${TESTS_RPATH_FALSE}"; then |
| 5137 | { { $as_echo "$as_me:$LINENO: error: conditional \"TESTS_RPATH\" was never defined. |
| 5138 | Usually this means the macro was only invoked conditionally." >&5 |
| 5139 | $as_echo "$as_me: error: conditional \"TESTS_RPATH\" was never defined. |
| 5140 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5141 | { (exit 1); exit 1; }; } |
| 5142 | fi |
| 5143 | if test -z "${HAVE_LIBASM_TRUE}" && test -z "${HAVE_LIBASM_FALSE}"; then |
| 5144 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBASM\" was never defined. |
| 5145 | Usually this means the macro was only invoked conditionally." >&5 |
| 5146 | $as_echo "$as_me: error: conditional \"HAVE_LIBASM\" was never defined. |
| 5147 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5148 | { (exit 1); exit 1; }; } |
| 5149 | fi |
| 5150 | if test -z "${STANDALONE_TRUE}" && test -z "${STANDALONE_FALSE}"; then |
| 5151 | { { $as_echo "$as_me:$LINENO: error: conditional \"STANDALONE\" was never defined. |
| 5152 | Usually this means the macro was only invoked conditionally." >&5 |
| 5153 | $as_echo "$as_me: error: conditional \"STANDALONE\" was never defined. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5154 | Usually this means the macro was only invoked conditionally." >&2;} |
| 5155 | { (exit 1); exit 1; }; } |
| 5156 | fi |
| 5157 | |
| 5158 | : ${CONFIG_STATUS=./config.status} |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5159 | ac_write_fail=0 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5160 | ac_clean_files_save=$ac_clean_files |
| 5161 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5162 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 5163 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5164 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5165 | #! $SHELL |
| 5166 | # Generated by $as_me. |
| 5167 | # Run this file to recreate the current configuration. |
| 5168 | # Compiler output produced by configure, useful for debugging |
| 5169 | # configure, is in config.log if it exists. |
| 5170 | |
| 5171 | debug=false |
| 5172 | ac_cs_recheck=false |
| 5173 | ac_cs_silent=false |
| 5174 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5175 | _ACEOF |
| 5176 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5177 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5178 | ## --------------------- ## |
| 5179 | ## M4sh Initialization. ## |
| 5180 | ## --------------------- ## |
| 5181 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5182 | # Be more Bourne compatible |
| 5183 | DUALCASE=1; export DUALCASE # for MKS sh |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5184 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 5185 | emulate sh |
| 5186 | NULLCMD=: |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5187 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5188 | # is contrary to our usage. Disable this feature. |
| 5189 | alias -g '${1+"$@"}'='"$@"' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5190 | setopt NO_GLOB_SUBST |
| 5191 | else |
| 5192 | case `(set -o) 2>/dev/null` in |
| 5193 | *posix*) set -o posix ;; |
| 5194 | esac |
| 5195 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5196 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5197 | |
| 5198 | |
| 5199 | |
| 5200 | |
| 5201 | # PATH needs CR |
| 5202 | # Avoid depending upon Character Ranges. |
| 5203 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5204 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5205 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5206 | as_cr_digits='0123456789' |
| 5207 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5208 | |
| 5209 | as_nl=' |
| 5210 | ' |
| 5211 | export as_nl |
| 5212 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 5213 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 5214 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5215 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 5216 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 5217 | as_echo='printf %s\n' |
| 5218 | as_echo_n='printf %s' |
| 5219 | else |
| 5220 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 5221 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 5222 | as_echo_n='/usr/ucb/echo -n' |
| 5223 | else |
| 5224 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 5225 | as_echo_n_body='eval |
| 5226 | arg=$1; |
| 5227 | case $arg in |
| 5228 | *"$as_nl"*) |
| 5229 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 5230 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 5231 | esac; |
| 5232 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 5233 | ' |
| 5234 | export as_echo_n_body |
| 5235 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 5236 | fi |
| 5237 | export as_echo_body |
| 5238 | as_echo='sh -c $as_echo_body as_echo' |
| 5239 | fi |
| 5240 | |
| 5241 | # The user is always right. |
| 5242 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5243 | PATH_SEPARATOR=: |
| 5244 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5245 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5246 | PATH_SEPARATOR=';' |
| 5247 | } |
| 5248 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5249 | |
| 5250 | # Support unset when possible. |
| 5251 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5252 | as_unset=unset |
| 5253 | else |
| 5254 | as_unset=false |
| 5255 | fi |
| 5256 | |
| 5257 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5258 | # IFS |
| 5259 | # We need space, tab and new line, in precisely that order. Quoting is |
| 5260 | # there to prevent editors from complaining about space-tab. |
| 5261 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 5262 | # splitting by setting IFS to empty value.) |
| 5263 | IFS=" "" $as_nl" |
| 5264 | |
| 5265 | # Find who we are. Look in the path if we contain no directory separator. |
| 5266 | case $0 in |
| 5267 | *[\\/]* ) as_myself=$0 ;; |
| 5268 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5269 | for as_dir in $PATH |
| 5270 | do |
| 5271 | IFS=$as_save_IFS |
| 5272 | test -z "$as_dir" && as_dir=. |
| 5273 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5274 | done |
| 5275 | IFS=$as_save_IFS |
| 5276 | |
| 5277 | ;; |
| 5278 | esac |
| 5279 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5280 | # in which case we are not to be found in the path. |
| 5281 | if test "x$as_myself" = x; then |
| 5282 | as_myself=$0 |
| 5283 | fi |
| 5284 | if test ! -f "$as_myself"; then |
| 5285 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5286 | { (exit 1); exit 1; } |
| 5287 | fi |
| 5288 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5289 | # Work around bugs in pre-3.0 UWIN ksh. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5290 | for as_var in ENV MAIL MAILPATH |
| 5291 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 5292 | done |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5293 | PS1='$ ' |
| 5294 | PS2='> ' |
| 5295 | PS4='+ ' |
| 5296 | |
| 5297 | # NLS nuisances. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5298 | LC_ALL=C |
| 5299 | export LC_ALL |
| 5300 | LANGUAGE=C |
| 5301 | export LANGUAGE |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5302 | |
| 5303 | # Required to use basename. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5304 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5305 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5306 | as_expr=expr |
| 5307 | else |
| 5308 | as_expr=false |
| 5309 | fi |
| 5310 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5311 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5312 | as_basename=basename |
| 5313 | else |
| 5314 | as_basename=false |
| 5315 | fi |
| 5316 | |
| 5317 | |
| 5318 | # Name of the executable. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5319 | as_me=`$as_basename -- "$0" || |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5320 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5321 | X"$0" : 'X\(//\)$' \| \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5322 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5323 | $as_echo X/"$0" | |
| 5324 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5325 | s//\1/ |
| 5326 | q |
| 5327 | } |
| 5328 | /^X\/\(\/\/\)$/{ |
| 5329 | s//\1/ |
| 5330 | q |
| 5331 | } |
| 5332 | /^X\/\(\/\).*/{ |
| 5333 | s//\1/ |
| 5334 | q |
| 5335 | } |
| 5336 | s/.*/./; q'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5337 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5338 | # CDPATH. |
| 5339 | $as_unset CDPATH |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5340 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5341 | |
| 5342 | |
| 5343 | as_lineno_1=$LINENO |
| 5344 | as_lineno_2=$LINENO |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5345 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5346 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5347 | |
| 5348 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 5349 | # uniformly replaced by the line number. The first 'sed' inserts a |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5350 | # line-number line after each line using $LINENO; the second 'sed' |
| 5351 | # does the real work. The second script uses 'N' to pair each |
| 5352 | # line-number line with the line containing $LINENO, and appends |
| 5353 | # trailing '-' during substitution so that $LINENO is not a special |
| 5354 | # case at line end. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5355 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5356 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 5357 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 5358 | sed -n ' |
| 5359 | p |
| 5360 | /[$]LINENO/= |
| 5361 | ' <$as_myself | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5362 | sed ' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5363 | s/[$]LINENO.*/&-/ |
| 5364 | t lineno |
| 5365 | b |
| 5366 | :lineno |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5367 | N |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5368 | :loop |
| 5369 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5370 | t loop |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5371 | s/-\n.*// |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5372 | ' >$as_me.lineno && |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5373 | chmod +x "$as_me.lineno" || |
| 5374 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5375 | { (exit 1); exit 1; }; } |
| 5376 | |
| 5377 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 5378 | # (the dirname of $[0] is not the place where we might find the |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5379 | # original and so on. Autoconf is especially sensitive to this). |
| 5380 | . "./$as_me.lineno" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5381 | # Exit status is that of the last command. |
| 5382 | exit |
| 5383 | } |
| 5384 | |
| 5385 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5387 | as_dirname=dirname |
| 5388 | else |
| 5389 | as_dirname=false |
| 5390 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5391 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5392 | ECHO_C= ECHO_N= ECHO_T= |
| 5393 | case `echo -n x` in |
| 5394 | -n*) |
| 5395 | case `echo 'x\c'` in |
| 5396 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5397 | *) ECHO_C='\c';; |
| 5398 | esac;; |
| 5399 | *) |
| 5400 | ECHO_N='-n';; |
| 5401 | esac |
| 5402 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5403 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5404 | as_expr=expr |
| 5405 | else |
| 5406 | as_expr=false |
| 5407 | fi |
| 5408 | |
| 5409 | rm -f conf$$ conf$$.exe conf$$.file |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5410 | if test -d conf$$.dir; then |
| 5411 | rm -f conf$$.dir/conf$$.file |
| 5412 | else |
| 5413 | rm -f conf$$.dir |
| 5414 | mkdir conf$$.dir 2>/dev/null |
| 5415 | fi |
| 5416 | if (echo >conf$$.file) 2>/dev/null; then |
| 5417 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5418 | as_ln_s='ln -s' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5419 | # ... but there are two gotchas: |
| 5420 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 5421 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 5422 | # In both cases, we have to default to `cp -p'. |
| 5423 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5424 | as_ln_s='cp -p' |
| 5425 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5426 | as_ln_s=ln |
| 5427 | else |
| 5428 | as_ln_s='cp -p' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5429 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5430 | else |
| 5431 | as_ln_s='cp -p' |
| 5432 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5433 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5434 | rmdir conf$$.dir 2>/dev/null |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5435 | |
| 5436 | if mkdir -p . 2>/dev/null; then |
| 5437 | as_mkdir_p=: |
| 5438 | else |
| 5439 | test -d ./-p && rmdir ./-p |
| 5440 | as_mkdir_p=false |
| 5441 | fi |
| 5442 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5443 | if test -x / >/dev/null 2>&1; then |
| 5444 | as_test_x='test -x' |
| 5445 | else |
| 5446 | if ls -dL / >/dev/null 2>&1; then |
| 5447 | as_ls_L_option=L |
| 5448 | else |
| 5449 | as_ls_L_option= |
| 5450 | fi |
| 5451 | as_test_x=' |
| 5452 | eval sh -c '\'' |
| 5453 | if test -d "$1"; then |
| 5454 | test -d "$1/."; |
| 5455 | else |
| 5456 | case $1 in |
| 5457 | -*)set "./$1";; |
| 5458 | esac; |
| 5459 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 5460 | ???[sx]*):;;*)false;;esac;fi |
| 5461 | '\'' sh |
| 5462 | ' |
| 5463 | fi |
| 5464 | as_executable_p=$as_test_x |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5465 | |
| 5466 | # Sed expression to map a string onto a valid CPP name. |
| 5467 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 5468 | |
| 5469 | # Sed expression to map a string onto a valid variable name. |
| 5470 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 5471 | |
| 5472 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5473 | exec 6>&1 |
| 5474 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5475 | # Save the log message, to keep $[0] and so on meaningful, and to |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5476 | # report actual input values of CONFIG_FILES etc. instead of their |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5477 | # values after options handling. |
| 5478 | ac_log=" |
| 5479 | This file was extended by Red Hat elfutils $as_me 0.138, which was |
| 5480 | generated by GNU Autoconf 2.63. Invocation command line was |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5481 | |
| 5482 | CONFIG_FILES = $CONFIG_FILES |
| 5483 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5484 | CONFIG_LINKS = $CONFIG_LINKS |
| 5485 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5486 | $ $0 $@ |
| 5487 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5488 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 5489 | " |
| 5490 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5491 | _ACEOF |
| 5492 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5493 | case $ac_config_files in *" |
| 5494 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 5495 | esac |
| 5496 | |
| 5497 | case $ac_config_headers in *" |
| 5498 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 5499 | esac |
| 5500 | |
| 5501 | |
| 5502 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5503 | # Files that config.status was made for. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5504 | config_files="$ac_config_files" |
| 5505 | config_headers="$ac_config_headers" |
| 5506 | config_commands="$ac_config_commands" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5507 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5508 | _ACEOF |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5509 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5510 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5511 | ac_cs_usage="\ |
| 5512 | \`$as_me' instantiates files from templates according to the |
| 5513 | current configuration. |
| 5514 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5515 | Usage: $0 [OPTION]... [FILE]... |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5516 | |
| 5517 | -h, --help print this help, then exit |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5518 | -V, --version print version number and configuration settings, then exit |
| 5519 | -q, --quiet, --silent |
| 5520 | do not print progress messages |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5521 | -d, --debug don't remove temporary files |
| 5522 | --recheck update $as_me by reconfiguring in the same conditions |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5523 | --file=FILE[:TEMPLATE] |
| 5524 | instantiate the configuration file FILE |
| 5525 | --header=FILE[:TEMPLATE] |
| 5526 | instantiate the configuration header FILE |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5527 | |
| 5528 | Configuration files: |
| 5529 | $config_files |
| 5530 | |
| 5531 | Configuration headers: |
| 5532 | $config_headers |
| 5533 | |
| 5534 | Configuration commands: |
| 5535 | $config_commands |
| 5536 | |
| 5537 | Report bugs to <bug-autoconf@gnu.org>." |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5538 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5539 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5540 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5541 | ac_cs_version="\\ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5542 | Red Hat elfutils config.status 0.138 |
| 5543 | configured by $0, generated by GNU Autoconf 2.63, |
| 5544 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5545 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5546 | Copyright (C) 2008 Free Software Foundation, Inc. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5547 | This config.status script is free software; the Free Software Foundation |
| 5548 | gives unlimited permission to copy, distribute and modify it." |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5549 | |
| 5550 | ac_pwd='$ac_pwd' |
| 5551 | srcdir='$srcdir' |
| 5552 | INSTALL='$INSTALL' |
| 5553 | MKDIR_P='$MKDIR_P' |
| 5554 | AWK='$AWK' |
| 5555 | test -n "\$AWK" || AWK=awk |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5556 | _ACEOF |
| 5557 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5559 | # The default lists apply if the user does not specify any file. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5560 | ac_need_defaults=: |
| 5561 | while test $# != 0 |
| 5562 | do |
| 5563 | case $1 in |
| 5564 | --*=*) |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5565 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 5566 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5567 | ac_shift=: |
| 5568 | ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5569 | *) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5570 | ac_option=$1 |
| 5571 | ac_optarg=$2 |
| 5572 | ac_shift=shift |
| 5573 | ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5574 | esac |
| 5575 | |
| 5576 | case $ac_option in |
| 5577 | # Handling of the options. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5578 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5579 | ac_cs_recheck=: ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5580 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 5581 | $as_echo "$ac_cs_version"; exit ;; |
| 5582 | --debug | --debu | --deb | --de | --d | -d ) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5583 | debug=: ;; |
| 5584 | --file | --fil | --fi | --f ) |
| 5585 | $ac_shift |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5586 | case $ac_optarg in |
| 5587 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5588 | esac |
| 5589 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5590 | ac_need_defaults=false;; |
| 5591 | --header | --heade | --head | --hea ) |
| 5592 | $ac_shift |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5593 | case $ac_optarg in |
| 5594 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 5595 | esac |
| 5596 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5597 | ac_need_defaults=false;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5598 | --he | --h) |
| 5599 | # Conflict between --help and --header |
| 5600 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 5601 | Try \`$0 --help' for more information." >&2 |
| 5602 | { (exit 1); exit 1; }; };; |
| 5603 | --help | --hel | -h ) |
| 5604 | $as_echo "$ac_cs_usage"; exit ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5605 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5606 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5607 | ac_cs_silent=: ;; |
| 5608 | |
| 5609 | # This is an error. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5610 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 5611 | Try \`$0 --help' for more information." >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5612 | { (exit 1); exit 1; }; } ;; |
| 5613 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5614 | *) ac_config_targets="$ac_config_targets $1" |
| 5615 | ac_need_defaults=false ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5616 | |
| 5617 | esac |
| 5618 | shift |
| 5619 | done |
| 5620 | |
| 5621 | ac_configure_extra_args= |
| 5622 | |
| 5623 | if $ac_cs_silent; then |
| 5624 | exec 6>/dev/null |
| 5625 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5626 | fi |
| 5627 | |
| 5628 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5629 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5630 | if \$ac_cs_recheck; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5631 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5632 | shift |
| 5633 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 5634 | CONFIG_SHELL='$SHELL' |
| 5635 | export CONFIG_SHELL |
| 5636 | exec "\$@" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5637 | fi |
| 5638 | |
| 5639 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5640 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5641 | exec 5>>config.log |
| 5642 | { |
| 5643 | echo |
| 5644 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5645 | ## Running $as_me. ## |
| 5646 | _ASBOX |
| 5647 | $as_echo "$ac_log" |
| 5648 | } >&5 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5649 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5650 | _ACEOF |
| 5651 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5652 | # |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5653 | # INIT-COMMANDS |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5654 | # |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5655 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5656 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 5657 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
| 5658 | # from automake < 1.5. |
| 5659 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5660 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 5661 | LINGUAS="${LINGUAS-%UNSET%}" |
| 5662 | |
| 5663 | |
| 5664 | _ACEOF |
| 5665 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5667 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5668 | # Handling of arguments. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5669 | for ac_config_target in $ac_config_targets |
| 5670 | do |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5671 | case $ac_config_target in |
| 5672 | "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; |
| 5673 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5674 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 5675 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
| 5676 | "elfutils.spec") CONFIG_FILES="$CONFIG_FILES elfutils.spec:config/elfutils.spec.in" ;; |
| 5677 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 5678 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 5679 | "libelf/Makefile") CONFIG_FILES="$CONFIG_FILES libelf/Makefile" ;; |
| 5680 | "libebl/Makefile") CONFIG_FILES="$CONFIG_FILES libebl/Makefile" ;; |
| 5681 | "libdw/Makefile") CONFIG_FILES="$CONFIG_FILES libdw/Makefile" ;; |
| 5682 | "libdwfl/Makefile") CONFIG_FILES="$CONFIG_FILES libdwfl/Makefile" ;; |
| 5683 | "libcpu/Makefile") CONFIG_FILES="$CONFIG_FILES libcpu/Makefile" ;; |
| 5684 | "libasm/Makefile") CONFIG_FILES="$CONFIG_FILES libasm/Makefile" ;; |
| 5685 | "backends/Makefile") CONFIG_FILES="$CONFIG_FILES backends/Makefile" ;; |
| 5686 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 5687 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 5688 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 5689 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
| 5690 | "version.h") CONFIG_FILES="$CONFIG_FILES version.h:config/version.h.in" ;; |
| 5691 | |
| 5692 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 5693 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5694 | { (exit 1); exit 1; }; };; |
| 5695 | esac |
| 5696 | done |
| 5697 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5698 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5699 | # If the user did not use the arguments to specify the items to instantiate, |
| 5700 | # then the envvar interface is used. Set only those that are not. |
| 5701 | # We use the long form for the default assignment because of an extremely |
| 5702 | # bizarre bug on SunOS 4.1.3. |
| 5703 | if $ac_need_defaults; then |
| 5704 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5705 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5706 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 5707 | fi |
| 5708 | |
| 5709 | # Have a temporary directory for convenience. Make it in the build tree |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5710 | # simply because there is no reason against having it here, and in addition, |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5711 | # creating and moving files from /tmp can sometimes cause problems. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5712 | # Hook for its removal unless debugging. |
| 5713 | # Note that there is a small window in which the directory will not be cleaned: |
| 5714 | # after its creation but before its name has been assigned to `$tmp'. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5715 | $debug || |
| 5716 | { |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5717 | tmp= |
| 5718 | trap 'exit_status=$? |
| 5719 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 5720 | ' 0 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5721 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 5722 | } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5723 | # Create a (secure) tmp directory for tmp files. |
| 5724 | |
| 5725 | { |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5726 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5727 | test -n "$tmp" && test -d "$tmp" |
| 5728 | } || |
| 5729 | { |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5730 | tmp=./conf$$-$RANDOM |
| 5731 | (umask 077 && mkdir "$tmp") |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5732 | } || |
| 5733 | { |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5734 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5735 | { (exit 1); exit 1; } |
| 5736 | } |
| 5737 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5738 | # Set up the scripts for CONFIG_FILES section. |
| 5739 | # No need to generate them if there are no CONFIG_FILES. |
| 5740 | # This happens for instance with `./config.status config.h'. |
| 5741 | if test -n "$CONFIG_FILES"; then |
| 5742 | |
| 5743 | |
| 5744 | ac_cr='
' |
| 5745 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 5746 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 5747 | ac_cs_awk_cr='\\r' |
| 5748 | else |
| 5749 | ac_cs_awk_cr=$ac_cr |
| 5750 | fi |
| 5751 | |
| 5752 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5753 | _ACEOF |
| 5754 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5755 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5756 | { |
| 5757 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 5758 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 5759 | echo "_ACEOF" |
| 5760 | } >conf$$subs.sh || |
| 5761 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 5762 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 5763 | { (exit 1); exit 1; }; } |
| 5764 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 5765 | ac_delim='%!_!# ' |
| 5766 | for ac_last_try in false false false false false :; do |
| 5767 | . ./conf$$subs.sh || |
| 5768 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 5769 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 5770 | { (exit 1); exit 1; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5771 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5772 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 5773 | if test $ac_delim_n = $ac_delim_num; then |
| 5774 | break |
| 5775 | elif $ac_last_try; then |
| 5776 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 5777 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 5778 | { (exit 1); exit 1; }; } |
| 5779 | else |
| 5780 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5781 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5782 | done |
| 5783 | rm -f conf$$subs.sh |
| 5784 | |
| 5785 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5786 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 5787 | _ACEOF |
| 5788 | sed -n ' |
| 5789 | h |
| 5790 | s/^/S["/; s/!.*/"]=/ |
| 5791 | p |
| 5792 | g |
| 5793 | s/^[^!]*!// |
| 5794 | :repl |
| 5795 | t repl |
| 5796 | s/'"$ac_delim"'$// |
| 5797 | t delim |
| 5798 | :nl |
| 5799 | h |
| 5800 | s/\(.\{148\}\).*/\1/ |
| 5801 | t more1 |
| 5802 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 5803 | p |
| 5804 | n |
| 5805 | b repl |
| 5806 | :more1 |
| 5807 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5808 | p |
| 5809 | g |
| 5810 | s/.\{148\}// |
| 5811 | t nl |
| 5812 | :delim |
| 5813 | h |
| 5814 | s/\(.\{148\}\).*/\1/ |
| 5815 | t more2 |
| 5816 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 5817 | p |
| 5818 | b |
| 5819 | :more2 |
| 5820 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 5821 | p |
| 5822 | g |
| 5823 | s/.\{148\}// |
| 5824 | t delim |
| 5825 | ' <conf$$subs.awk | sed ' |
| 5826 | /^[^""]/{ |
| 5827 | N |
| 5828 | s/\n// |
| 5829 | } |
| 5830 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5831 | rm -f conf$$subs.awk |
| 5832 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5833 | _ACAWK |
| 5834 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 5835 | for (key in S) S_is_set[key] = 1 |
| 5836 | FS = "" |
| 5837 | |
| 5838 | } |
| 5839 | { |
| 5840 | line = $ 0 |
| 5841 | nfields = split(line, field, "@") |
| 5842 | substed = 0 |
| 5843 | len = length(field[1]) |
| 5844 | for (i = 2; i < nfields; i++) { |
| 5845 | key = field[i] |
| 5846 | keylen = length(key) |
| 5847 | if (S_is_set[key]) { |
| 5848 | value = S[key] |
| 5849 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 5850 | len += length(value) + length(field[++i]) |
| 5851 | substed = 1 |
| 5852 | } else |
| 5853 | len += 1 + keylen |
| 5854 | } |
| 5855 | |
| 5856 | print line |
| 5857 | } |
| 5858 | |
| 5859 | _ACAWK |
| 5860 | _ACEOF |
| 5861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5862 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 5863 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 5864 | else |
| 5865 | cat |
| 5866 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 5867 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 5868 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 5869 | { (exit 1); exit 1; }; } |
| 5870 | _ACEOF |
| 5871 | |
| 5872 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 5873 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 5874 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5875 | # (actually we leave an empty line to preserve line numbers). |
| 5876 | if test "x$srcdir" = x.; then |
| 5877 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 5878 | s/:*\$(srcdir):*/:/ |
| 5879 | s/:*\${srcdir}:*/:/ |
| 5880 | s/:*@srcdir@:*/:/ |
| 5881 | s/^\([^=]*=[ ]*\):*/\1/ |
| 5882 | s/:*$// |
| 5883 | s/^[^=]*=[ ]*$// |
| 5884 | }' |
| 5885 | fi |
| 5886 | |
| 5887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5888 | fi # test -n "$CONFIG_FILES" |
| 5889 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5890 | # Set up the scripts for CONFIG_HEADERS section. |
| 5891 | # No need to generate them if there are no CONFIG_HEADERS. |
| 5892 | # This happens for instance with `./config.status Makefile'. |
| 5893 | if test -n "$CONFIG_HEADERS"; then |
| 5894 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 5895 | BEGIN { |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 5896 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 5897 | |
| 5898 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 5899 | # here-document in config.status, that substitutes the proper values into |
| 5900 | # config.h.in to produce config.h. |
| 5901 | |
| 5902 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 5903 | # handling of long lines. |
| 5904 | ac_delim='%!_!# ' |
| 5905 | for ac_last_try in false false :; do |
| 5906 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 5907 | if test -z "$ac_t"; then |
| 5908 | break |
| 5909 | elif $ac_last_try; then |
| 5910 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 5911 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 5912 | { (exit 1); exit 1; }; } |
| 5913 | else |
| 5914 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 5915 | fi |
| 5916 | done |
| 5917 | |
| 5918 | # For the awk script, D is an array of macro values keyed by name, |
| 5919 | # likewise P contains macro parameters if any. Preserve backslash |
| 5920 | # newline sequences. |
| 5921 | |
| 5922 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 5923 | sed -n ' |
| 5924 | s/.\{148\}/&'"$ac_delim"'/g |
| 5925 | t rset |
| 5926 | :rset |
| 5927 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 5928 | t def |
| 5929 | d |
| 5930 | :def |
| 5931 | s/\\$// |
| 5932 | t bsnl |
| 5933 | s/["\\]/\\&/g |
| 5934 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5935 | D["\1"]=" \3"/p |
| 5936 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 5937 | d |
| 5938 | :bsnl |
| 5939 | s/["\\]/\\&/g |
| 5940 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 5941 | D["\1"]=" \3\\\\\\n"\\/p |
| 5942 | t cont |
| 5943 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 5944 | t cont |
| 5945 | d |
| 5946 | :cont |
| 5947 | n |
| 5948 | s/.\{148\}/&'"$ac_delim"'/g |
| 5949 | t clear |
| 5950 | :clear |
| 5951 | s/\\$// |
| 5952 | t bsnlc |
| 5953 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 5954 | d |
| 5955 | :bsnlc |
| 5956 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 5957 | b cont |
| 5958 | ' <confdefs.h | sed ' |
| 5959 | s/'"$ac_delim"'/"\\\ |
| 5960 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 5961 | |
| 5962 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 5963 | for (key in D) D_is_set[key] = 1 |
| 5964 | FS = "" |
| 5965 | } |
| 5966 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 5967 | line = \$ 0 |
| 5968 | split(line, arg, " ") |
| 5969 | if (arg[1] == "#") { |
| 5970 | defundef = arg[2] |
| 5971 | mac1 = arg[3] |
| 5972 | } else { |
| 5973 | defundef = substr(arg[1], 2) |
| 5974 | mac1 = arg[2] |
| 5975 | } |
| 5976 | split(mac1, mac2, "(") #) |
| 5977 | macro = mac2[1] |
| 5978 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 5979 | if (D_is_set[macro]) { |
| 5980 | # Preserve the white space surrounding the "#". |
| 5981 | print prefix "define", macro P[macro] D[macro] |
| 5982 | next |
| 5983 | } else { |
| 5984 | # Replace #undef with comments. This is necessary, for example, |
| 5985 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 5986 | # on some systems where configure will not decide to define it. |
| 5987 | if (defundef == "undef") { |
| 5988 | print "/*", prefix defundef, macro, "*/" |
| 5989 | next |
| 5990 | } |
| 5991 | } |
| 5992 | } |
| 5993 | { print } |
| 5994 | _ACAWK |
| 5995 | _ACEOF |
| 5996 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 5997 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 5998 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 5999 | { (exit 1); exit 1; }; } |
| 6000 | fi # test -n "$CONFIG_HEADERS" |
| 6001 | |
| 6002 | |
| 6003 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 6004 | shift |
| 6005 | for ac_tag |
| 6006 | do |
| 6007 | case $ac_tag in |
| 6008 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 6009 | esac |
| 6010 | case $ac_mode$ac_tag in |
| 6011 | :[FHL]*:*);; |
| 6012 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 6013 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
| 6014 | { (exit 1); exit 1; }; };; |
| 6015 | :[FH]-) ac_tag=-:-;; |
| 6016 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6017 | esac |
| 6018 | ac_save_IFS=$IFS |
| 6019 | IFS=: |
| 6020 | set x $ac_tag |
| 6021 | IFS=$ac_save_IFS |
| 6022 | shift |
| 6023 | ac_file=$1 |
| 6024 | shift |
| 6025 | |
| 6026 | case $ac_mode in |
| 6027 | :L) ac_source=$1;; |
| 6028 | :[FH]) |
| 6029 | ac_file_inputs= |
| 6030 | for ac_f |
| 6031 | do |
| 6032 | case $ac_f in |
| 6033 | -) ac_f="$tmp/stdin";; |
| 6034 | *) # Look for the file first in the build tree, then in the source tree |
| 6035 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6036 | # because $ac_f cannot contain `:'. |
| 6037 | test -f "$ac_f" || |
| 6038 | case $ac_f in |
| 6039 | [\\/$]*) false;; |
| 6040 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6041 | esac || |
| 6042 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 6043 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 6044 | { (exit 1); exit 1; }; };; |
| 6045 | esac |
| 6046 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6047 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 6048 | done |
| 6049 | |
| 6050 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6051 | # use $as_me), people would be surprised to read: |
| 6052 | # /* config.h. Generated by config.status. */ |
| 6053 | configure_input='Generated from '` |
| 6054 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6055 | `' by configure.' |
| 6056 | if test x"$ac_file" != x-; then |
| 6057 | configure_input="$ac_file. $configure_input" |
| 6058 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 6059 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 6060 | fi |
| 6061 | # Neutralize special characters interpreted by sed in replacement strings. |
| 6062 | case $configure_input in #( |
| 6063 | *\&* | *\|* | *\\* ) |
| 6064 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 6065 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6066 | *) ac_sed_conf_input=$configure_input;; |
| 6067 | esac |
| 6068 | |
| 6069 | case $ac_tag in |
| 6070 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 6071 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 6072 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 6073 | { (exit 1); exit 1; }; } ;; |
| 6074 | esac |
| 6075 | ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6076 | esac |
| 6077 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6078 | ac_dir=`$as_dirname -- "$ac_file" || |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6079 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6080 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6081 | X"$ac_file" : 'X\(//\)$' \| \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6082 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6083 | $as_echo X"$ac_file" | |
| 6084 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6085 | s//\1/ |
| 6086 | q |
| 6087 | } |
| 6088 | /^X\(\/\/\)[^/].*/{ |
| 6089 | s//\1/ |
| 6090 | q |
| 6091 | } |
| 6092 | /^X\(\/\/\)$/{ |
| 6093 | s//\1/ |
| 6094 | q |
| 6095 | } |
| 6096 | /^X\(\/\).*/{ |
| 6097 | s//\1/ |
| 6098 | q |
| 6099 | } |
| 6100 | s/.*/./; q'` |
| 6101 | { as_dir="$ac_dir" |
| 6102 | case $as_dir in #( |
| 6103 | -*) as_dir=./$as_dir;; |
| 6104 | esac |
| 6105 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6106 | as_dirs= |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6107 | while :; do |
| 6108 | case $as_dir in #( |
| 6109 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6110 | *) as_qdir=$as_dir;; |
| 6111 | esac |
| 6112 | as_dirs="'$as_qdir' $as_dirs" |
| 6113 | as_dir=`$as_dirname -- "$as_dir" || |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6114 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6115 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6116 | X"$as_dir" : 'X\(//\)$' \| \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6117 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6118 | $as_echo X"$as_dir" | |
| 6119 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6120 | s//\1/ |
| 6121 | q |
| 6122 | } |
| 6123 | /^X\(\/\/\)[^/].*/{ |
| 6124 | s//\1/ |
| 6125 | q |
| 6126 | } |
| 6127 | /^X\(\/\/\)$/{ |
| 6128 | s//\1/ |
| 6129 | q |
| 6130 | } |
| 6131 | /^X\(\/\).*/{ |
| 6132 | s//\1/ |
| 6133 | q |
| 6134 | } |
| 6135 | s/.*/./; q'` |
| 6136 | test -d "$as_dir" && break |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6137 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6138 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6139 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 6140 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6141 | { (exit 1); exit 1; }; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6142 | ac_builddir=. |
| 6143 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6144 | case "$ac_dir" in |
| 6145 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6146 | *) |
| 6147 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6148 | # A ".." for each directory in $ac_dir_suffix. |
| 6149 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6150 | case $ac_top_builddir_sub in |
| 6151 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6152 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6153 | esac ;; |
| 6154 | esac |
| 6155 | ac_abs_top_builddir=$ac_pwd |
| 6156 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6157 | # for backward compatibility: |
| 6158 | ac_top_builddir=$ac_top_build_prefix |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6159 | |
| 6160 | case $srcdir in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6161 | .) # We are building in place. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6162 | ac_srcdir=. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6163 | ac_top_srcdir=$ac_top_builddir_sub |
| 6164 | ac_abs_top_srcdir=$ac_pwd ;; |
| 6165 | [\\/]* | ?:[\\/]* ) # Absolute name. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6166 | ac_srcdir=$srcdir$ac_dir_suffix; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6167 | ac_top_srcdir=$srcdir |
| 6168 | ac_abs_top_srcdir=$srcdir ;; |
| 6169 | *) # Relative name. |
| 6170 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6171 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6172 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6173 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6174 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6175 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6176 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6177 | case $ac_mode in |
| 6178 | :F) |
| 6179 | # |
| 6180 | # CONFIG_FILE |
| 6181 | # |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6182 | |
| 6183 | case $INSTALL in |
| 6184 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6185 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6186 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6187 | ac_MKDIR_P=$MKDIR_P |
| 6188 | case $MKDIR_P in |
| 6189 | [\\/$]* | ?:[\\/]* ) ;; |
| 6190 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 6191 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6192 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6193 | |
| 6194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6195 | # If the template does not know about datarootdir, expand it. |
| 6196 | # FIXME: This hack should be removed a few years after 2.60. |
| 6197 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6198 | |
| 6199 | ac_sed_dataroot=' |
| 6200 | /datarootdir/ { |
| 6201 | p |
| 6202 | q |
| 6203 | } |
| 6204 | /@datadir@/p |
| 6205 | /@docdir@/p |
| 6206 | /@infodir@/p |
| 6207 | /@localedir@/p |
| 6208 | /@mandir@/p |
| 6209 | ' |
| 6210 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6211 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 6212 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6214 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6215 | _ACEOF |
| 6216 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6217 | ac_datarootdir_hack=' |
| 6218 | s&@datadir@&$datadir&g |
| 6219 | s&@docdir@&$docdir&g |
| 6220 | s&@infodir@&$infodir&g |
| 6221 | s&@localedir@&$localedir&g |
| 6222 | s&@mandir@&$mandir&g |
| 6223 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6224 | esac |
| 6225 | _ACEOF |
| 6226 | |
| 6227 | # Neutralize VPATH when `$srcdir' = `.'. |
| 6228 | # Shell code in configure.ac might set extrasub. |
| 6229 | # FIXME: do we really want to maintain this feature? |
| 6230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6231 | ac_sed_extra="$ac_vpsub |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6232 | $extrasub |
| 6233 | _ACEOF |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6234 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6235 | :t |
| 6236 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6237 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 6238 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6239 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6240 | s&@srcdir@&$ac_srcdir&;t t |
| 6241 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6242 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6243 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6244 | s&@builddir@&$ac_builddir&;t t |
| 6245 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6246 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6247 | s&@INSTALL@&$ac_INSTALL&;t t |
| 6248 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 6249 | $ac_datarootdir_hack |
| 6250 | " |
| 6251 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 6252 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 6253 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 6254 | { (exit 1); exit 1; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6255 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6256 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6257 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 6258 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 6259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6260 | which seems to be undefined. Please make sure it is defined." >&5 |
| 6261 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 6262 | which seems to be undefined. Please make sure it is defined." >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6263 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6264 | rm -f "$tmp/stdin" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6265 | case $ac_file in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6266 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 6267 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 6268 | esac \ |
| 6269 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 6270 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6271 | { (exit 1); exit 1; }; } |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6272 | ;; |
| 6273 | :H) |
| 6274 | # |
| 6275 | # CONFIG_HEADER |
| 6276 | # |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6277 | if test x"$ac_file" != x-; then |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6278 | { |
| 6279 | $as_echo "/* $configure_input */" \ |
| 6280 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 6281 | } >"$tmp/config.h" \ |
| 6282 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 6283 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 6284 | { (exit 1); exit 1; }; } |
| 6285 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 6286 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 6287 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6288 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6289 | rm -f "$ac_file" |
| 6290 | mv "$tmp/config.h" "$ac_file" \ |
| 6291 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 6292 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 6293 | { (exit 1); exit 1; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6294 | fi |
| 6295 | else |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6296 | $as_echo "/* $configure_input */" \ |
| 6297 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 6298 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 6299 | $as_echo "$as_me: error: could not create -" >&2;} |
| 6300 | { (exit 1); exit 1; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6301 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6302 | # Compute "$ac_file"'s index in $config_headers. |
| 6303 | _am_arg="$ac_file" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6304 | _am_stamp_count=1 |
| 6305 | for _am_header in $config_headers :; do |
| 6306 | case $_am_header in |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6307 | $_am_arg | $_am_arg:* ) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6308 | break ;; |
| 6309 | * ) |
| 6310 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 6311 | esac |
| 6312 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6313 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 6314 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6315 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 6316 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 6317 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 6318 | $as_echo X"$_am_arg" | |
| 6319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6320 | s//\1/ |
| 6321 | q |
| 6322 | } |
| 6323 | /^X\(\/\/\)[^/].*/{ |
| 6324 | s//\1/ |
| 6325 | q |
| 6326 | } |
| 6327 | /^X\(\/\/\)$/{ |
| 6328 | s//\1/ |
| 6329 | q |
| 6330 | } |
| 6331 | /^X\(\/\).*/{ |
| 6332 | s//\1/ |
| 6333 | q |
| 6334 | } |
| 6335 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 6336 | ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6337 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6338 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 6339 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 6340 | ;; |
| 6341 | esac |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6342 | |
| 6343 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6344 | case $ac_file$ac_mode in |
| 6345 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6346 | # Strip MF so we end up with the name of the file. |
| 6347 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 6348 | # Check whether this is an Automake generated Makefile or not. |
| 6349 | # We used to match only the files named `Makefile.in', but |
| 6350 | # some people rename them; so instead we look at the file content. |
| 6351 | # Grep'ing the first line is not enough: some people post-process |
| 6352 | # each Makefile.in and add a new line on top of each file to say so. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6353 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 6354 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 6355 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 6356 | dirpart=`$as_dirname -- "$mf" || |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6357 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6358 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 6359 | X"$mf" : 'X\(//\)$' \| \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6360 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 6361 | $as_echo X"$mf" | |
| 6362 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6363 | s//\1/ |
| 6364 | q |
| 6365 | } |
| 6366 | /^X\(\/\/\)[^/].*/{ |
| 6367 | s//\1/ |
| 6368 | q |
| 6369 | } |
| 6370 | /^X\(\/\/\)$/{ |
| 6371 | s//\1/ |
| 6372 | q |
| 6373 | } |
| 6374 | /^X\(\/\).*/{ |
| 6375 | s//\1/ |
| 6376 | q |
| 6377 | } |
| 6378 | s/.*/./; q'` |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6379 | else |
| 6380 | continue |
| 6381 | fi |
| 6382 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 6383 | # from the Makefile without running `make'. |
| 6384 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 6385 | test -z "$DEPDIR" && continue |
| 6386 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 6387 | test -z "am__include" && continue |
| 6388 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 6389 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 6390 | U=`sed -n 's/^U = //p' < "$mf"` |
| 6391 | # Find all dependency output files, they are included files with |
| 6392 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 6393 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 6394 | # expansion. |
| 6395 | for file in `sed -n " |
| 6396 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 6397 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 6398 | # Make sure the directory exists. |
| 6399 | test -f "$dirpart/$file" && continue |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6400 | fdir=`$as_dirname -- "$file" || |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6401 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6402 | X"$file" : 'X\(//\)[^/]' \| \ |
| 6403 | X"$file" : 'X\(//\)$' \| \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6404 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 6405 | $as_echo X"$file" | |
| 6406 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6407 | s//\1/ |
| 6408 | q |
| 6409 | } |
| 6410 | /^X\(\/\/\)[^/].*/{ |
| 6411 | s//\1/ |
| 6412 | q |
| 6413 | } |
| 6414 | /^X\(\/\/\)$/{ |
| 6415 | s//\1/ |
| 6416 | q |
| 6417 | } |
| 6418 | /^X\(\/\).*/{ |
| 6419 | s//\1/ |
| 6420 | q |
| 6421 | } |
| 6422 | s/.*/./; q'` |
| 6423 | { as_dir=$dirpart/$fdir |
| 6424 | case $as_dir in #( |
| 6425 | -*) as_dir=./$as_dir;; |
| 6426 | esac |
| 6427 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6428 | as_dirs= |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6429 | while :; do |
| 6430 | case $as_dir in #( |
| 6431 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 6432 | *) as_qdir=$as_dir;; |
| 6433 | esac |
| 6434 | as_dirs="'$as_qdir' $as_dirs" |
| 6435 | as_dir=`$as_dirname -- "$as_dir" || |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6436 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6437 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6438 | X"$as_dir" : 'X\(//\)$' \| \ |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6439 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 6440 | $as_echo X"$as_dir" | |
| 6441 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6442 | s//\1/ |
| 6443 | q |
| 6444 | } |
| 6445 | /^X\(\/\/\)[^/].*/{ |
| 6446 | s//\1/ |
| 6447 | q |
| 6448 | } |
| 6449 | /^X\(\/\/\)$/{ |
| 6450 | s//\1/ |
| 6451 | q |
| 6452 | } |
| 6453 | /^X\(\/\).*/{ |
| 6454 | s//\1/ |
| 6455 | q |
| 6456 | } |
| 6457 | s/.*/./; q'` |
| 6458 | test -d "$as_dir" && break |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6459 | done |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6460 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6461 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 6462 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6463 | { (exit 1); exit 1; }; }; } |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6464 | # echo "creating $dirpart/$file" |
| 6465 | echo '# dummy' > "$dirpart/$file" |
| 6466 | done |
| 6467 | done |
| 6468 | ;; |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6469 | "po-directories":C) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6470 | for ac_file in $CONFIG_FILES; do |
| 6471 | # Support "outfile[:infile[:infile...]]" |
| 6472 | case "$ac_file" in |
| 6473 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6474 | esac |
| 6475 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 6476 | case "$ac_file" in */Makefile.in) |
| 6477 | # Adjust a relative srcdir. |
| 6478 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 6479 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 6480 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 6481 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 6482 | # In autoconf-2.50 it is called $srcdir. |
| 6483 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 6484 | case "$ac_given_srcdir" in |
| 6485 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 6486 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 6487 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6488 | esac |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6489 | # Treat a directory as a PO directory if and only if it has a |
| 6490 | # POTFILES.in file. This allows packages to have multiple PO |
| 6491 | # directories under different names or in different locations. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6492 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 6493 | rm -f "$ac_dir/POTFILES" |
| 6494 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 6495 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6496 | POMAKEFILEDEPS="POTFILES.in" |
| 6497 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6498 | # on $ac_dir but don't depend on user-specified configuration |
| 6499 | # parameters. |
| 6500 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 6501 | # The LINGUAS file contains the set of available languages. |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6502 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6503 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 6504 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6505 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 6506 | # Hide the ALL_LINGUAS assigment from automake < 1.5. |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6507 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6508 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 6509 | else |
| 6510 | # The set of available languages was given in configure.in. |
| 6511 | # Hide the ALL_LINGUAS assigment from automake < 1.5. |
| 6512 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6513 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6514 | # Compute POFILES |
| 6515 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 6516 | # Compute UPDATEPOFILES |
| 6517 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 6518 | # Compute DUMMYPOFILES |
| 6519 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 6520 | # Compute GMOFILES |
| 6521 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6522 | case "$ac_given_srcdir" in |
| 6523 | .) srcdirpre= ;; |
| 6524 | *) srcdirpre='$(srcdir)/' ;; |
| 6525 | esac |
| 6526 | POFILES= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6527 | UPDATEPOFILES= |
| 6528 | DUMMYPOFILES= |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6529 | GMOFILES= |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6530 | for lang in $ALL_LINGUAS; do |
| 6531 | POFILES="$POFILES $srcdirpre$lang.po" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6532 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 6533 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6534 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6535 | done |
| 6536 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 6537 | # environment variable. |
| 6538 | INST_LINGUAS= |
| 6539 | if test -n "$ALL_LINGUAS"; then |
| 6540 | for presentlang in $ALL_LINGUAS; do |
| 6541 | useit=no |
| 6542 | if test "%UNSET%" != "$LINGUAS"; then |
| 6543 | desiredlanguages="$LINGUAS" |
| 6544 | else |
| 6545 | desiredlanguages="$ALL_LINGUAS" |
| 6546 | fi |
| 6547 | for desiredlang in $desiredlanguages; do |
| 6548 | # Use the presentlang catalog if desiredlang is |
| 6549 | # a. equal to presentlang, or |
| 6550 | # b. a variant of presentlang (because in this case, |
| 6551 | # presentlang can be used as a fallback for messages |
| 6552 | # which are not translated in the desiredlang catalog). |
| 6553 | case "$desiredlang" in |
| 6554 | "$presentlang"*) useit=yes;; |
| 6555 | esac |
| 6556 | done |
| 6557 | if test $useit = yes; then |
| 6558 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 6559 | fi |
| 6560 | done |
| 6561 | fi |
| 6562 | CATALOGS= |
| 6563 | if test -n "$INST_LINGUAS"; then |
| 6564 | for lang in $INST_LINGUAS; do |
| 6565 | CATALOGS="$CATALOGS $lang.gmo" |
| 6566 | done |
| 6567 | fi |
| 6568 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6569 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6570 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 6571 | if test -f "$f"; then |
| 6572 | case "$f" in |
| 6573 | *.orig | *.bak | *~) ;; |
| 6574 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 6575 | esac |
| 6576 | fi |
| 6577 | done |
| 6578 | fi |
| 6579 | ;; |
| 6580 | esac |
| 6581 | done ;; |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6582 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6583 | esac |
| 6584 | done # for ac_tag |
| 6585 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6586 | |
| 6587 | { (exit 0); exit 0; } |
| 6588 | _ACEOF |
| 6589 | chmod +x $CONFIG_STATUS |
| 6590 | ac_clean_files=$ac_clean_files_save |
| 6591 | |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6592 | test $ac_write_fail = 0 || |
| 6593 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 6594 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 6595 | { (exit 1); exit 1; }; } |
| 6596 | |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6597 | |
| 6598 | # configure is writing to config.log, and then calls config.status. |
| 6599 | # config.status does its own redirection, appending to config.log. |
| 6600 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6601 | # by configure, so config.status won't be able to write to it; its |
| 6602 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6603 | # effectively closing config.log, so it can be properly (re)opened and |
| 6604 | # appended to by config.status. When coming back to configure, we |
| 6605 | # need to make the FD available again. |
| 6606 | if test "$no_create" != yes; then |
| 6607 | ac_cs_success=: |
| 6608 | ac_config_status_args= |
| 6609 | test "$silent" = yes && |
| 6610 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6611 | exec 5>/dev/null |
| 6612 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6613 | exec 5>>config.log |
| 6614 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6615 | # would make configure fail if this is the last instruction. |
| 6616 | $ac_cs_success || { (exit 1); exit 1; } |
| 6617 | fi |
Ben Cheng | cc6695e | 2012-03-07 23:04:02 -0800 | [diff] [blame] | 6618 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6619 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6620 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 6621 | fi |
The Android Open Source Project | 441f72d | 2009-03-03 19:29:28 -0800 | [diff] [blame] | 6622 | |