blob: 41050e2cb76c5f7efbbad922ff4c6a2a9d43ddc8 [file] [log] [blame]
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001#! /bin/sh
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002# Guess values for system-dependent variables and create Makefiles.
Ben Chengcc6695e2012-03-07 23:04:02 -08003# Generated by GNU Autoconf 2.63 for Red Hat elfutils 0.138.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004#
5# Report bugs to <http://bugzilla.redhat.com/bugzilla/>.
6#
Ben Chengcc6695e2012-03-07 23:04:02 -08007# 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 Project441f72d2009-03-03 19:29:28 -08009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
Ben Chengcc6695e2012-03-07 23:04:02 -080012# Copyright (C) 1996-2007, 2008 Red Hat, Inc.
The Android Open Source Project441f72d2009-03-03 19:29:28 -080013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Ben Chengcc6695e2012-03-07 23:04:02 -080017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
The Android Open Source Project441f72d2009-03-03 19:29:28 -080019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
Ben Chengcc6695e2012-03-07 23:04:02 -080022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
The Android Open Source Project441f72d2009-03-03 19:29:28 -080023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Ben Chengcc6695e2012-03-07 23:04:02 -080025 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
The Android Open Source Project441f72d2009-03-03 19:29:28 -080031fi
Ben Chengcc6695e2012-03-07 23:04:02 -080032
33
34
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44as_nl='
45'
46export as_nl
47# Printing a long string crashes Solaris 7 /usr/bin/printf.
48as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51if (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'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
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'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -080084
85# Support unset when possible.
86if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87 as_unset=unset
88else
89 as_unset=false
90fi
91
92
Ben Chengcc6695e2012-03-07 23:04:02 -080093# 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.)
98IFS=" "" $as_nl"
99
100# Find who we are. Look in the path if we contain no directory separator.
101case $0 in
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104for as_dir in $PATH
105do
106 IFS=$as_save_IFS
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109done
110IFS=$as_save_IFS
111
112 ;;
113esac
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.
116if test "x$as_myself" = x; then
117 as_myself=$0
118fi
119if 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; }
122fi
123
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800124# Work around bugs in pre-3.0 UWIN ksh.
Ben Chengcc6695e2012-03-07 23:04:02 -0800125for as_var in ENV MAIL MAILPATH
126do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127done
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800128PS1='$ '
129PS2='> '
130PS4='+ '
131
132# NLS nuisances.
Ben Chengcc6695e2012-03-07 23:04:02 -0800133LC_ALL=C
134export LC_ALL
135LANGUAGE=C
136export LANGUAGE
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800137
138# Required to use basename.
Ben Chengcc6695e2012-03-07 23:04:02 -0800139if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800141 as_expr=expr
142else
143 as_expr=false
144fi
145
Ben Chengcc6695e2012-03-07 23:04:02 -0800146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800147 as_basename=basename
148else
149 as_basename=false
150fi
151
152
153# Name of the executable.
Ben Chengcc6695e2012-03-07 23:04:02 -0800154as_me=`$as_basename -- "$0" ||
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
Ben Chengcc6695e2012-03-07 23:04:02 -0800157 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 Project441f72d2009-03-03 19:29:28 -0800175
176
Ben Chengcc6695e2012-03-07 23:04:02 -0800177if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
179 as_have_required=yes
180else
181 as_have_required=no
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800182fi
183
Ben Chengcc6695e2012-03-07 23:04:02 -0800184 if test $as_have_required = yes && (eval ":
185(as_func_return () {
186 (exit \$1)
187}
188as_func_success () {
189 as_func_return 0
190}
191as_func_failure () {
192 as_func_return 1
193}
194as_func_ret_success () {
195 return 0
196}
197as_func_ret_failure () {
198 return 1
199}
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800200
Ben Chengcc6695e2012-03-07 23:04:02 -0800201exitcode=0
202if as_func_success; then
203 :
204else
205 exitcode=1
206 echo as_func_success failed.
207fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800208
Ben Chengcc6695e2012-03-07 23:04:02 -0800209if as_func_failure; then
210 exitcode=1
211 echo as_func_failure succeeded.
212fi
213
214if as_func_ret_success; then
215 :
216else
217 exitcode=1
218 echo as_func_ret_success failed.
219fi
220
221if as_func_ret_failure; then
222 exitcode=1
223 echo as_func_ret_failure succeeded.
224fi
225
226if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 :
228else
229 exitcode=1
230 echo positional parameters were not saved.
231fi
232
233test \$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 :
242else
243 as_candidate_shells=
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246do
247 IFS=$as_save_IFS
248 test -z "$as_dir" && as_dir=.
Ben Chengcc6695e2012-03-07 23:04:02 -0800249 case $as_dir in
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800250 /*)
Ben Chengcc6695e2012-03-07 23:04:02 -0800251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253 done;;
254 esac
255done
256IFS=$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
263if 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
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
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
284if 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
291else
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
294esac
295
296fi
297
298
299:
300(as_func_return () {
301 (exit $1)
302}
303as_func_success () {
304 as_func_return 0
305}
306as_func_failure () {
307 as_func_return 1
308}
309as_func_ret_success () {
310 return 0
311}
312as_func_ret_failure () {
313 return 1
314}
315
316exitcode=0
317if as_func_success; then
318 :
319else
320 exitcode=1
321 echo as_func_success failed.
322fi
323
324if as_func_failure; then
325 exitcode=1
326 echo as_func_failure succeeded.
327fi
328
329if as_func_ret_success; then
330 :
331else
332 exitcode=1
333 echo as_func_ret_success failed.
334fi
335
336if as_func_ret_failure; then
337 exitcode=1
338 echo as_func_ret_failure succeeded.
339fi
340
341if ( set x; as_func_ret_success y && test x = "$1" ); then
342 :
343else
344 exitcode=1
345 echo positional parameters were not saved.
346fi
347
348test $exitcode = 0) || { (exit 1); exit 1; }
349
350(
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800351 as_lineno_1=$LINENO
352 as_lineno_2=$LINENO
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800353 test "x$as_lineno_1" != "x$as_lineno_2" &&
Ben Chengcc6695e2012-03-07 23:04:02 -0800354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356_ASEOF
357}; then
358 break
359fi
360
361fi
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+"$@"}
371fi
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; }
380fi
381
382
383fi
384
385fi
386
387
388
389(eval "as_func_return () {
390 (exit \$1)
391}
392as_func_success () {
393 as_func_return 0
394}
395as_func_failure () {
396 as_func_return 1
397}
398as_func_ret_success () {
399 return 0
400}
401as_func_ret_failure () {
402 return 1
403}
404
405exitcode=0
406if as_func_success; then
407 :
408else
409 exitcode=1
410 echo as_func_success failed.
411fi
412
413if as_func_failure; then
414 exitcode=1
415 echo as_func_failure succeeded.
416fi
417
418if as_func_ret_success; then
419 :
420else
421 exitcode=1
422 echo as_func_ret_success failed.
423fi
424
425if as_func_ret_failure; then
426 exitcode=1
427 echo as_func_ret_failure succeeded.
428fi
429
430if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 :
432else
433 exitcode=1
434 echo positional parameters were not saved.
435fi
436
437test \$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 Project441f72d2009-03-03 19:29:28 -0800451
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 Chengcc6695e2012-03-07 23:04:02 -0800454 # 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 Project441f72d2009-03-03 19:29:28 -0800459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Ben Chengcc6695e2012-03-07 23:04:02 -0800460 # 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 Project441f72d2009-03-03 19:29:28 -0800466 sed '
Ben Chengcc6695e2012-03-07 23:04:02 -0800467 s/[$]LINENO.*/&-/
468 t lineno
469 b
470 :lineno
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800471 N
Ben Chengcc6695e2012-03-07 23:04:02 -0800472 :loop
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800474 t loop
Ben Chengcc6695e2012-03-07 23:04:02 -0800475 s/-\n.*//
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800476 ' >$as_me.lineno &&
Ben Chengcc6695e2012-03-07 23:04:02 -0800477 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 Project441f72d2009-03-03 19:29:28 -0800479 { (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 Chengcc6695e2012-03-07 23:04:02 -0800483 # original and so on. Autoconf is especially sensitive to this).
484 . "./$as_me.lineno"
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800485 # Exit status is that of the last command.
486 exit
487}
488
489
Ben Chengcc6695e2012-03-07 23:04:02 -0800490if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491 as_dirname=dirname
492else
493 as_dirname=false
494fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800495
Ben Chengcc6695e2012-03-07 23:04:02 -0800496ECHO_C= ECHO_N= ECHO_T=
497case `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';;
505esac
506if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800508 as_expr=expr
509else
510 as_expr=false
511fi
512
513rm -f conf$$ conf$$.exe conf$$.file
Ben Chengcc6695e2012-03-07 23:04:02 -0800514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800522 as_ln_s='ln -s'
Ben Chengcc6695e2012-03-07 23:04:02 -0800523 # ... 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 Project441f72d2009-03-03 19:29:28 -0800533 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800534else
535 as_ln_s='cp -p'
536fi
Ben Chengcc6695e2012-03-07 23:04:02 -0800537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p=:
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Ben Chengcc6695e2012-03-07 23:04:02 -0800547if test -x / >/dev/null 2>&1; then
548 as_test_x='test -x'
549else
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 '
567fi
568as_executable_p=$as_test_x
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800569
570# Sed expression to map a string onto a valid CPP name.
571as_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.
574as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800577
Ben Chengcc6695e2012-03-07 23:04:02 -0800578exec 7<&0 </dev/null 6>&1
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800579
580# Name of the host.
581# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582# so uname gets run too.
583ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800585#
586# Initializations.
587#
588ac_default_prefix=/usr/local
Ben Chengcc6695e2012-03-07 23:04:02 -0800589ac_clean_files=
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800590ac_config_libobj_dir=.
Ben Chengcc6695e2012-03-07 23:04:02 -0800591LIBOBJS=
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800592cross_compiling=no
593subdirs=
594MFLAGS=
595MAKEFLAGS=
596SHELL=${CONFIG_SHELL-/bin/sh}
597
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800598# Identity of this package.
599PACKAGE_NAME='Red Hat elfutils'
600PACKAGE_TARNAME='elfutils'
Ben Chengcc6695e2012-03-07 23:04:02 -0800601PACKAGE_VERSION='0.138'
602PACKAGE_STRING='Red Hat elfutils 0.138'
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800603PACKAGE_BUGREPORT='http://bugzilla.redhat.com/bugzilla/'
604
605ac_unique_file="libelf/libelf.h"
Ben Chengcc6695e2012-03-07 23:04:02 -0800606ac_subst_vars='LTLIBOBJS
607LIBOBJS
608eu_version
609MSGMERGE
610XGETTEXT_015
611XGETTEXT
612GMSGFMT_015
613MSGFMT_015
614GMSGFMT
615MSGFMT
616USE_NLS
617STANDALONE_FALSE
618STANDALONE_TRUE
619HAVE_LIBASM_FALSE
620HAVE_LIBASM_TRUE
621LIBEBL_SUBDIR
622TESTS_RPATH_FALSE
623TESTS_RPATH_TRUE
624BUILD_STATIC_FALSE
625BUILD_STATIC_TRUE
626GCOV_FALSE
627GCOV_TRUE
628GPROF_FALSE
629GPROF_TRUE
630DEBUGPRED
631MUDFLAP_FALSE
632MUDFLAP_TRUE
633NEVER_FALSE
634NEVER_TRUE
635base_cpu
636NATIVE_LD_FALSE
637NATIVE_LD_TRUE
638DATADIRNAME
639LOCALEDIR
640LEXLIB
641LEX_OUTPUT_ROOT
642LEX
643YFLAGS
644YACC
645RANLIB
646am__fastdepCC_FALSE
647am__fastdepCC_TRUE
648CCDEPMODE
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662USE_TLS_FALSE
663USE_TLS_TRUE
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672MODVERSION
673MAINT
674MAINTAINER_MODE_FALSE
675MAINTAINER_MODE_TRUE
676am__untar
677am__tar
678AMTAR
679am__leading_dot
680SET_MAKE
681AWK
682mkdir_p
683MKDIR_P
684INSTALL_STRIP_PROGRAM
685STRIP
686install_sh
687MAKEINFO
688AUTOHEADER
689AUTOMAKE
690AUTOCONF
691ACLOCAL
692VERSION
693PACKAGE
694CYGPATH_W
695am__isrc
696INSTALL_DATA
697INSTALL_SCRIPT
698INSTALL_PROGRAM
699target_alias
700host_alias
701build_alias
702LIBS
703ECHO_T
704ECHO_N
705ECHO_C
706DEFS
707mandir
708localedir
709libdir
710psdir
711pdfdir
712dvidir
713htmldir
714infodir
715docdir
716oldincludedir
717includedir
718localstatedir
719sharedstatedir
720sysconfdir
721datadir
722datarootdir
723libexecdir
724sbindir
725bindir
726program_transform_name
727prefix
728exec_prefix
729PACKAGE_BUGREPORT
730PACKAGE_STRING
731PACKAGE_VERSION
732PACKAGE_TARNAME
733PACKAGE_NAME
734PATH_SEPARATOR
735SHELL'
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800736ac_subst_files=''
Ben Chengcc6695e2012-03-07 23:04:02 -0800737ac_user_opts='
738enable_option_checking
739enable_maintainer_mode
740enable_tls
741enable_dependency_tracking
742enable_largefile
743enable_generic
744enable_mudflap
745enable_debugpred
746enable_gprof
747enable_gcov
748enable_tests_rpath
749enable_libebl_subdir
750enable_nls
751'
752 ac_precious_vars='build_alias
753host_alias
754target_alias
755CC
756CFLAGS
757LDFLAGS
758LIBS
759CPPFLAGS
760YACC
761YFLAGS'
762
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800763
764# Initialize some variables set by options.
765ac_init_help=
766ac_init_version=false
Ben Chengcc6695e2012-03-07 23:04:02 -0800767ac_unrecognized_opts=
768ac_unrecognized_sep=
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800769# The variables have the same names as the options, with
770# dashes changed to underlines.
771cache_file=/dev/null
772exec_prefix=NONE
773no_create=
774no_recursion=
775prefix=NONE
776program_prefix=NONE
777program_suffix=NONE
778program_transform_name=s,x,x,
779silent=
780site=
781srcdir=
782verbose=
783x_includes=NONE
784x_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 Chengcc6695e2012-03-07 23:04:02 -0800791# (The list follows the same order as the GNU Coding Standards.)
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800792bindir='${exec_prefix}/bin'
793sbindir='${exec_prefix}/sbin'
794libexecdir='${exec_prefix}/libexec'
Ben Chengcc6695e2012-03-07 23:04:02 -0800795datarootdir='${prefix}/share'
796datadir='${datarootdir}'
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800797sysconfdir='${prefix}/etc'
798sharedstatedir='${prefix}/com'
799localstatedir='${prefix}/var'
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800800includedir='${prefix}/include'
801oldincludedir='/usr/include'
Ben Chengcc6695e2012-03-07 23:04:02 -0800802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803infodir='${datarootdir}/info'
804htmldir='${docdir}'
805dvidir='${docdir}'
806pdfdir='${docdir}'
807psdir='${docdir}'
808libdir='${exec_prefix}/lib'
809localedir='${datarootdir}/locale'
810mandir='${datarootdir}/man'
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800811
812ac_prev=
Ben Chengcc6695e2012-03-07 23:04:02 -0800813ac_dashdash=
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800814for ac_option
815do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
Ben Chengcc6695e2012-03-07 23:04:02 -0800818 eval $ac_prev=\$ac_option
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800819 ac_prev=
820 continue
821 fi
822
Ben Chengcc6695e2012-03-07 23:04:02 -0800823 case $ac_option in
824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *) ac_optarg=yes ;;
826 esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800827
828 # Accept the important Cygnus configure options, so we can diagnose typos.
829
Ben Chengcc6695e2012-03-07 23:04:02 -0800830 case $ac_dashdash$ac_option in
831 --)
832 ac_dashdash=yes ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800833
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 Chengcc6695e2012-03-07 23:04:02 -0800854 -datadir | --datadir | --datadi | --datad)
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800855 ac_prev=datadir ;;
Ben Chengcc6695e2012-03-07 23:04:02 -0800856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800857 datadir=$ac_optarg ;;
858
Ben Chengcc6695e2012-03-07 23:04:02 -0800859 -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 Project441f72d2009-03-03 19:29:28 -0800866 -disable-* | --disable-*)
Ben Chengcc6695e2012-03-07 23:04:02 -0800867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800868 # Reject names that are not valid shell variable names.
Ben Chengcc6695e2012-03-07 23:04:02 -0800869 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 Project441f72d2009-03-03 19:29:28 -0800871 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -0800872 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 Project441f72d2009-03-03 19:29:28 -0800892
893 -enable-* | --enable-*)
Ben Chengcc6695e2012-03-07 23:04:02 -0800894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800895 # Reject names that are not valid shell variable names.
Ben Chengcc6695e2012-03-07 23:04:02 -0800896 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 Project441f72d2009-03-03 19:29:28 -0800898 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -0800899 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 Project441f72d2009-03-03 19:29:28 -0800907 esac
Ben Chengcc6695e2012-03-07 23:04:02 -0800908 eval enable_$ac_useropt=\$ac_optarg ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800909
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 Chengcc6695e2012-03-07 23:04:02 -0800935 -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 Project441f72d2009-03-03 19:29:28 -0800941 -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 Chengcc6695e2012-03-07 23:04:02 -0800965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800970 -localstatedir | --localstatedir | --localstatedi | --localstated \
Ben Chengcc6695e2012-03-07 23:04:02 -0800971 | --localstate | --localstat | --localsta | --localst | --locals)
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Ben Chengcc6695e2012-03-07 23:04:02 -0800974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
The Android Open Source Project441f72d2009-03-03 19:29:28 -0800975 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 Chengcc6695e2012-03-07 23:04:02 -08001039 -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 Project441f72d2009-03-03 19:29:28 -08001049 -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 Chengcc6695e2012-03-07 23:04:02 -08001099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001100 # Reject names that are not valid shell variable names.
Ben Chengcc6695e2012-03-07 23:04:02 -08001101 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 Project441f72d2009-03-03 19:29:28 -08001103 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08001104 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 Project441f72d2009-03-03 19:29:28 -08001112 esac
Ben Chengcc6695e2012-03-07 23:04:02 -08001113 eval with_$ac_useropt=\$ac_optarg ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001114
1115 -without-* | --without-*)
Ben Chengcc6695e2012-03-07 23:04:02 -08001116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001117 # Reject names that are not valid shell variable names.
Ben Chengcc6695e2012-03-07 23:04:02 -08001118 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 Project441f72d2009-03-03 19:29:28 -08001120 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08001121 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 Project441f72d2009-03-03 19:29:28 -08001131
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 Chengcc6695e2012-03-07 23:04:02 -08001150 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001151Try \`$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 Chengcc6695e2012-03-07 23:04:02 -08001159 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001160 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08001161 eval $ac_envvar=\$ac_optarg
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001162 export $ac_envvar ;;
1163
1164 *)
1165 # FIXME: should be removed in autoconf 3.0.
Ben Chengcc6695e2012-03-07 23:04:02 -08001166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Ben Chengcc6695e2012-03-07 23:04:02 -08001168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170 ;;
1171
1172 esac
1173done
1174
1175if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Ben Chengcc6695e2012-03-07 23:04:02 -08001177 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001178 { (exit 1); exit 1; }; }
1179fi
1180
Ben Chengcc6695e2012-03-07 23:04:02 -08001181if 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 Project441f72d2009-03-03 19:29:28 -08001187 esac
Ben Chengcc6695e2012-03-07 23:04:02 -08001188fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001189
Ben Chengcc6695e2012-03-07 23:04:02 -08001190# Check all directory arguments for consistency.
1191for 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 Project441f72d2009-03-03 19:29:28 -08001195do
Ben Chengcc6695e2012-03-07 23:04:02 -08001196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001198 case $ac_val in
Ben Chengcc6695e2012-03-07 23:04:02 -08001199 */ )
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001202 esac
Ben Chengcc6695e2012-03-07 23:04:02 -08001203 # 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 Project441f72d2009-03-03 19:29:28 -08001210done
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.
1215build=$build_alias
1216host=$host_alias
1217target=$target_alias
1218
1219# FIXME: To remove some day.
1220if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
Ben Chengcc6695e2012-03-07 23:04:02 -08001223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001224 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
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
Ben Chengcc6695e2012-03-07 23:04:02 -08001236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_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; }; }
1241test "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 Project441f72d2009-03-03 19:29:28 -08001246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
Ben Chengcc6695e2012-03-07 23:04:02 -08001249 # 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 Project441f72d2009-03-03 19:29:28 -08001273 srcdir=$ac_confdir
Ben Chengcc6695e2012-03-07 23:04:02 -08001274 if test ! -r "$srcdir/$ac_unique_file"; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001275 srcdir=..
1276 fi
1277else
1278 ac_srcdir_defaulted=no
1279fi
Ben Chengcc6695e2012-03-07 23:04:02 -08001280if 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 Project441f72d2009-03-03 19:29:28 -08001283 { (exit 1); exit 1; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001284fi
Ben Chengcc6695e2012-03-07 23:04:02 -08001285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001288 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08001289 pwd)`
1290# When building in place, set srcdir=.
1291if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 srcdir=.
1293fi
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.
1297case $srcdir in
1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299esac
1300for 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}
1305done
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001306
1307#
1308# Report the --help message.
1309#
1310if 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 Chengcc6695e2012-03-07 23:04:02 -08001314\`configure' configures Red Hat elfutils 0.138 to adapt to many kinds of systems.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001315
1316Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319VAR=VALUE. See below for descriptions of some of the useful variables.
1320
1321Defaults for the options are specified in brackets.
1322
1323Configuration:
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 Project441f72d2009-03-03 19:29:28 -08001334Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
Ben Chengcc6695e2012-03-07 23:04:02 -08001336 [$ac_default_prefix]
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Ben Chengcc6695e2012-03-07 23:04:02 -08001338 [PREFIX]
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001339
1340By default, \`make install' will install all the files in
1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343for instance \`--prefix=\$HOME'.
1344
1345For better control, use the options below.
1346
1347Fine tuning of the installation directories:
Ben Chengcc6695e2012-03-07 23:04:02 -08001348 --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 Project441f72d2009-03-03 19:29:28 -08001367_ACEOF
1368
1369 cat <<\_ACEOF
1370
1371Program 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
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Ben Chengcc6695e2012-03-07 23:04:02 -08001384 short | recursive ) echo "Configuration of Red Hat elfutils 0.138:";;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
Ben Chengcc6695e2012-03-07 23:04:02 -08001389 --disable-option-checking ignore unrecognized --enable/--with options
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Ben Chengcc6695e2012-03-07 23:04:02 -08001392 --enable-maintainer-mode enable make rules and dependencies not useful
1393 (and sometimes confusing) to the casual installer
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001394 --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 Project441f72d2009-03-03 19:29:28 -08001397 --disable-largefile omit support for large files
1398 --disable-generic do not build generic linker
1399 --enable-mudflap build binaries with mudflap instrumentation
Ben Chengcc6695e2012-03-07 23:04:02 -08001400 --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 Project441f72d2009-03-03 19:29:28 -08001408
1409Some 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 Chengcc6695e2012-03-07 23:04:02 -08001414 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 Project441f72d2009-03-03 19:29:28 -08001422
1423Use these variables to override the choices made by `configure' or to help
1424it to find libraries and programs with nonstandard names/locations.
1425
1426Report bugs to <http://bugzilla.redhat.com/bugzilla/>.
1427_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08001428ac_status=$?
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001429fi
1430
1431if test "$ac_init_help" = "recursive"; then
1432 # If there are subdirs, report their specific --help.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Ben Chengcc6695e2012-03-07 23:04:02 -08001434 test -d "$ac_dir" ||
1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436 continue
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001437 ac_builddir=.
1438
Ben Chengcc6695e2012-03-07 23:04:02 -08001439case "$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 ;;
1449esac
1450ac_abs_top_builddir=$ac_pwd
1451ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452# for backward compatibility:
1453ac_top_builddir=$ac_top_build_prefix
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001454
1455case $srcdir in
Ben Chengcc6695e2012-03-07 23:04:02 -08001456 .) # We are building in place.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001457 ac_srcdir=.
Ben Chengcc6695e2012-03-07 23:04:02 -08001458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001461 ac_srcdir=$srcdir$ac_dir_suffix;
Ben Chengcc6695e2012-03-07 23:04:02 -08001462 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 Project441f72d2009-03-03 19:29:28 -08001468esac
Ben Chengcc6695e2012-03-07 23:04:02 -08001469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001470
Ben Chengcc6695e2012-03-07 23:04:02 -08001471 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 Project441f72d2009-03-03 19:29:28 -08001479 else
Ben Chengcc6695e2012-03-07 23:04:02 -08001480 $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 Project441f72d2009-03-03 19:29:28 -08001483 done
1484fi
1485
Ben Chengcc6695e2012-03-07 23:04:02 -08001486test -n "$ac_init_help" && exit $ac_status
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001487if $ac_init_version; then
1488 cat <<\_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08001489Red Hat elfutils configure 0.138
1490generated by GNU Autoconf 2.63
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001491
Ben Chengcc6695e2012-03-07 23:04:02 -08001492Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14932002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001494This configure script is free software; the Free Software Foundation
1495gives unlimited permission to copy, distribute and modify it.
1496
Ben Chengcc6695e2012-03-07 23:04:02 -08001497Copyright (C) 1996-2007, 2008 Red Hat, Inc.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001498_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08001499 exit
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001500fi
Ben Chengcc6695e2012-03-07 23:04:02 -08001501cat >config.log <<_ACEOF
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001502This file contains any messages produced by compilers while
1503running configure, to aid debugging if configure makes a mistake.
1504
Ben Chengcc6695e2012-03-07 23:04:02 -08001505It was created by Red Hat elfutils $as_me 0.138, which was
1506generated by GNU Autoconf 2.63. Invocation command line was
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001507
1508 $ $0 $@
1509
1510_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08001511exec 5>>config.log
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001512{
1513cat <<_ASUNAME
1514## --------- ##
1515## Platform. ##
1516## --------- ##
1517
1518hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1519uname -m = `(uname -m) 2>/dev/null || echo unknown`
1520uname -r = `(uname -r) 2>/dev/null || echo unknown`
1521uname -s = `(uname -s) 2>/dev/null || echo unknown`
1522uname -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 Chengcc6695e2012-03-07 23:04:02 -08001530/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001531/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
1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538for as_dir in $PATH
1539do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
Ben Chengcc6695e2012-03-07 23:04:02 -08001542 $as_echo "PATH: $as_dir"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001543done
Ben Chengcc6695e2012-03-07 23:04:02 -08001544IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001545
1546} >&5
1547
1548cat >&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.
1563ac_configure_args=
1564ac_configure_args0=
1565ac_configure_args1=
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001566ac_must_keep_next=false
1567for ac_pass in 1 2
1568do
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 Chengcc6695e2012-03-07 23:04:02 -08001576 *\'*)
1577 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001578 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 Chengcc6695e2012-03-07 23:04:02 -08001598 ac_configure_args="$ac_configure_args '$ac_arg'"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001599 ;;
1600 esac
1601 done
1602done
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 Chengcc6695e2012-03-07 23:04:02 -08001609# 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 Project441f72d2009-03-03 19:29:28 -08001611trap '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 Chengcc6695e2012-03-07 23:04:02 -08001623(
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 Project441f72d2009-03-03 19:29:28 -08001639 (set) 2>&1 |
Ben Chengcc6695e2012-03-07 23:04:02 -08001640 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1641 *${as_nl}ac_space=\ *)
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001642 sed -n \
Ben Chengcc6695e2012-03-07 23:04:02 -08001643 "s/'\''/'\''\\\\'\'''\''/g;
1644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1645 ;; #(
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001646 *)
Ben Chengcc6695e2012-03-07 23:04:02 -08001647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001648 ;;
Ben Chengcc6695e2012-03-07 23:04:02 -08001649 esac |
1650 sort
1651)
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001652 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 Chengcc6695e2012-03-07 23:04:02 -08001662 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 Project441f72d2009-03-03 19:29:28 -08001667 done | sort
1668 echo
1669
1670 if test -n "$ac_subst_files"; then
1671 cat <<\_ASBOX
Ben Chengcc6695e2012-03-07 23:04:02 -08001672## ------------------- ##
1673## File substitutions. ##
1674## ------------------- ##
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001675_ASBOX
1676 echo
1677 for ac_var in $ac_subst_files
1678 do
Ben Chengcc6695e2012-03-07 23:04:02 -08001679 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 Project441f72d2009-03-03 19:29:28 -08001684 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 Chengcc6695e2012-03-07 23:04:02 -08001695 cat confdefs.h
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001696 echo
1697 fi
1698 test "$ac_signal" != 0 &&
Ben Chengcc6695e2012-03-07 23:04:02 -08001699 $as_echo "$as_me: caught signal $ac_signal"
1700 $as_echo "$as_me: exit $exit_status"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001701 } >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08001702 rm -f core *.core core.conftest.* &&
1703 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001704 exit $exit_status
Ben Chengcc6695e2012-03-07 23:04:02 -08001705' 0
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001706for ac_signal in 1 2 13 15; do
1707 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1708done
1709ac_signal=0
1710
1711# confdefs.h avoids OS command line length limits that DEFS can exceed.
Ben Chengcc6695e2012-03-07 23:04:02 -08001712rm -f -r conftest* confdefs.h
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001713
1714# Predefined preprocessor variables.
1715
1716cat >>confdefs.h <<_ACEOF
1717#define PACKAGE_NAME "$PACKAGE_NAME"
1718_ACEOF
1719
1720
1721cat >>confdefs.h <<_ACEOF
1722#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1723_ACEOF
1724
1725
1726cat >>confdefs.h <<_ACEOF
1727#define PACKAGE_VERSION "$PACKAGE_VERSION"
1728_ACEOF
1729
1730
1731cat >>confdefs.h <<_ACEOF
1732#define PACKAGE_STRING "$PACKAGE_STRING"
1733_ACEOF
1734
1735
1736cat >>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 Chengcc6695e2012-03-07 23:04:02 -08001742# Prefer an explicitly selected file to automatically selected ones.
1743ac_site_file1=NONE
1744ac_site_file2=NONE
1745if test -n "$CONFIG_SITE"; then
1746 ac_site_file1=$CONFIG_SITE
1747elif test "x$prefix" != xNONE; then
1748 ac_site_file1=$prefix/share/config.site
1749 ac_site_file2=$prefix/etc/config.site
1750else
1751 ac_site_file1=$ac_default_prefix/share/config.site
1752 ac_site_file2=$ac_default_prefix/etc/config.site
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001753fi
Ben Chengcc6695e2012-03-07 23:04:02 -08001754for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1755do
1756 test "x$ac_site_file" = xNONE && continue
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001757 if test -r "$ac_site_file"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08001758 { $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 Project441f72d2009-03-03 19:29:28 -08001760 sed 's/^/| /' "$ac_site_file" >&5
1761 . "$ac_site_file"
1762 fi
1763done
1764
1765if 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 Chengcc6695e2012-03-07 23:04:02 -08001769 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1770$as_echo "$as_me: loading cache $cache_file" >&6;}
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001771 case $cache_file in
Ben Chengcc6695e2012-03-07 23:04:02 -08001772 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1773 *) . "./$cache_file";;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001774 esac
1775 fi
1776else
Ben Chengcc6695e2012-03-07 23:04:02 -08001777 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1778$as_echo "$as_me: creating cache $cache_file" >&6;}
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001779 >$cache_file
1780fi
1781
1782# Check that the precious variables saved in the cache have kept the same
1783# value.
1784ac_cache_corrupted=false
Ben Chengcc6695e2012-03-07 23:04:02 -08001785for ac_var in $ac_precious_vars; do
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001786 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1787 eval ac_new_set=\$ac_env_${ac_var}_set
Ben Chengcc6695e2012-03-07 23:04:02 -08001788 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1789 eval ac_new_val=\$ac_env_${ac_var}_value
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001790 case $ac_old_set,$ac_new_set in
1791 set,)
Ben Chengcc6695e2012-03-07 23:04:02 -08001792 { $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 Project441f72d2009-03-03 19:29:28 -08001794 ac_cache_corrupted=: ;;
1795 ,set)
Ben Chengcc6695e2012-03-07 23:04:02 -08001796 { $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 Project441f72d2009-03-03 19:29:28 -08001798 ac_cache_corrupted=: ;;
1799 ,);;
1800 *)
1801 if test "x$ac_old_val" != "x$ac_new_val"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08001802 # 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 Project441f72d2009-03-03 19:29:28 -08001818 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 Chengcc6695e2012-03-07 23:04:02 -08001823 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001824 *) 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
1831done
1832if $ac_cache_corrupted; then
Ben Chengcc6695e2012-03-07 23:04:02 -08001833 { $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 Project441f72d2009-03-03 19:29:28 -08001839 { (exit 1); exit 1; }; }
1840fi
1841
Ben Chengcc6695e2012-03-07 23:04:02 -08001842
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 Project441f72d2009-03-03 19:29:28 -08001866ac_ext=c
1867ac_cpp='$CPP $CPPFLAGS'
1868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871
1872
1873
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001874ac_aux_dir=
Ben Chengcc6695e2012-03-07 23:04:02 -08001875for ac_dir in config "$srcdir"/config; do
1876 if test -f "$ac_dir/install-sh"; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001877 ac_aux_dir=$ac_dir
1878 ac_install_sh="$ac_aux_dir/install-sh -c"
1879 break
Ben Chengcc6695e2012-03-07 23:04:02 -08001880 elif test -f "$ac_dir/install.sh"; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001881 ac_aux_dir=$ac_dir
1882 ac_install_sh="$ac_aux_dir/install.sh -c"
1883 break
Ben Chengcc6695e2012-03-07 23:04:02 -08001884 elif test -f "$ac_dir/shtool"; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001885 ac_aux_dir=$ac_dir
1886 ac_install_sh="$ac_aux_dir/shtool install -c"
1887 break
1888 fi
1889done
1890if test -z "$ac_aux_dir"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08001891 { { $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 Project441f72d2009-03-03 19:29:28 -08001893 { (exit 1); exit 1; }; }
1894fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001895
Ben Chengcc6695e2012-03-07 23:04:02 -08001896# 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.
1900ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1901ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1902ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1903
1904
1905ac_config_files="$ac_config_files config/Makefile"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001906
1907
1908
1909
Ben Chengcc6695e2012-03-07 23:04:02 -08001910am__api_version='1.10'
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001911
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001912# 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 Chengcc6695e2012-03-07 23:04:02 -08001925# 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 Project441f72d2009-03-03 19:29:28 -08001928if test -z "$INSTALL"; then
1929if test "${ac_cv_path_install+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08001930 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001931else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 # Account for people who put trailing slashes in PATH elements.
1938case $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 Chengcc6695e2012-03-07 23:04:02 -08001949 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 Project441f72d2009-03-03 19:29:28 -08001950 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 Chengcc6695e2012-03-07 23:04:02 -08001959 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 Project441f72d2009-03-03 19:29:28 -08001971 fi
1972 fi
1973 done
1974 done
1975 ;;
1976esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001977
Ben Chengcc6695e2012-03-07 23:04:02 -08001978done
1979IFS=$as_save_IFS
1980
1981rm -rf conftest.one conftest.two conftest.dir
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001982
1983fi
1984 if test "${ac_cv_path_install+set}" = set; then
1985 INSTALL=$ac_cv_path_install
1986 else
Ben Chengcc6695e2012-03-07 23:04:02 -08001987 # 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 Project441f72d2009-03-03 19:29:28 -08001989 # break other packages using the cache if that directory is
Ben Chengcc6695e2012-03-07 23:04:02 -08001990 # removed, or if the value is a relative name.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001991 INSTALL=$ac_install_sh
1992 fi
1993fi
Ben Chengcc6695e2012-03-07 23:04:02 -08001994{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1995$as_echo "$INSTALL" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08001996
1997# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1998# It thinks the first close brace ends the variable substitution.
1999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2000
2001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2002
2003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2004
Ben Chengcc6695e2012-03-07 23:04:02 -08002005{ $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 Project441f72d2009-03-03 19:29:28 -08002007# Just in case
2008sleep 1
2009echo 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).
2015if (
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 Chengcc6695e2012-03-07 23:04:02 -08002029 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002030alias in your environment" >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08002031$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002032alias in your environment" >&2;}
2033 { (exit 1); exit 1; }; }
2034 fi
2035
2036 test "$2" = conftest.file
2037 )
2038then
2039 # Ok.
2040 :
2041else
Ben Chengcc6695e2012-03-07 23:04:02 -08002042 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002043Check your system clock" >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08002044$as_echo "$as_me: error: newly created file is older than distributed files!
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002045Check your system clock" >&2;}
2046 { (exit 1); exit 1; }; }
2047fi
Ben Chengcc6695e2012-03-07 23:04:02 -08002048{ $as_echo "$as_me:$LINENO: result: yes" >&5
2049$as_echo "yes" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002050test "$program_prefix" != NONE &&
Ben Chengcc6695e2012-03-07 23:04:02 -08002051 program_transform_name="s&^&$program_prefix&;$program_transform_name"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002052# Use a double $ so make ignores it.
2053test "$program_suffix" != NONE &&
Ben Chengcc6695e2012-03-07 23:04:02 -08002054 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2055# Double any \ or $.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002056# By default was `s,x,x', remove it if useless.
Ben Chengcc6695e2012-03-07 23:04:02 -08002057ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2058program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002059
2060# expand $ac_aux_dir to an absolute path
2061am_aux_dir=`cd $ac_aux_dir && pwd`
2062
2063test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2064# Use eval to expand $SHELL
2065if eval "$MISSING --run true"; then
2066 am_missing_run="$MISSING --run "
2067else
2068 am_missing_run=
Ben Chengcc6695e2012-03-07 23:04:02 -08002069 { $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 Project441f72d2009-03-03 19:29:28 -08002071fi
2072
Ben Chengcc6695e2012-03-07 23:04:02 -08002073{ $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; }
2075if 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 Project441f72d2009-03-03 19:29:28 -08002078else
Ben Chengcc6695e2012-03-07 23:04:02 -08002079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2081do
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
2096done
2097IFS=$as_save_IFS
2098
2099fi
2100
2101 if test "${ac_cv_path_mkdir+set}" = set; then
2102 MKDIR_P="$ac_cv_path_mkdir -p"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002103 else
Ben Chengcc6695e2012-03-07 23:04:02 -08002104 # 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 Project441f72d2009-03-03 19:29:28 -08002110 fi
2111fi
Ben Chengcc6695e2012-03-07 23:04:02 -08002112{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2113$as_echo "$MKDIR_P" >&6; }
2114
2115mkdir_p="$MKDIR_P"
2116case $mkdir_p in
2117 [\\/$]* | ?:[\\/]*) ;;
2118 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2119esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002120
2121for ac_prog in gawk mawk nawk awk
2122do
2123 # Extract the first word of "$ac_prog", so it can be a program name with args.
2124set dummy $ac_prog; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002125{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2126$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002127if test "${ac_cv_prog_AWK+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002128 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002129else
2130 if test -n "$AWK"; then
2131 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2132else
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002139 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 Project441f72d2009-03-03 19:29:28 -08002140 ac_cv_prog_AWK="$ac_prog"
Ben Chengcc6695e2012-03-07 23:04:02 -08002141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002142 break 2
2143 fi
2144done
2145done
Ben Chengcc6695e2012-03-07 23:04:02 -08002146IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002147
2148fi
2149fi
2150AWK=$ac_cv_prog_AWK
2151if test -n "$AWK"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002152 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2153$as_echo "$AWK" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002154else
Ben Chengcc6695e2012-03-07 23:04:02 -08002155 { $as_echo "$as_me:$LINENO: result: no" >&5
2156$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002157fi
2158
Ben Chengcc6695e2012-03-07 23:04:02 -08002159
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002160 test -n "$AWK" && break
2161done
2162
Ben Chengcc6695e2012-03-07 23:04:02 -08002163{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2164$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2165set x ${MAKE-make}
2166ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2167if { 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 Project441f72d2009-03-03 19:29:28 -08002169else
2170 cat >conftest.make <<\_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08002171SHELL = /bin/sh
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002172all:
Ben Chengcc6695e2012-03-07 23:04:02 -08002173 @echo '@@@%%%=$(MAKE)=@@@%%%'
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002174_ACEOF
2175# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Ben Chengcc6695e2012-03-07 23:04:02 -08002176case `${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;;
2181esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002182rm -f conftest.make
2183fi
Ben Chengcc6695e2012-03-07 23:04:02 -08002184if 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 Project441f72d2009-03-03 19:29:28 -08002187 SET_MAKE=
2188else
Ben Chengcc6695e2012-03-07 23:04:02 -08002189 { $as_echo "$as_me:$LINENO: result: no" >&5
2190$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002191 SET_MAKE="MAKE=${MAKE-make}"
2192fi
2193
2194rm -rf .tst 2>/dev/null
2195mkdir .tst 2>/dev/null
2196if test -d .tst; then
2197 am__leading_dot=.
2198else
2199 am__leading_dot=_
2200fi
2201rmdir .tst 2>/dev/null
2202
Ben Chengcc6695e2012-03-07 23:04:02 -08002203if 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 Project441f72d2009-03-03 19:29:28 -08002211 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08002212 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002213fi
2214
2215# test whether we have cygpath
2216if 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
2222fi
2223
2224
2225# Define the identity of the package.
2226 PACKAGE='elfutils'
Ben Chengcc6695e2012-03-07 23:04:02 -08002227 VERSION='0.138'
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002228
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE "$PACKAGE"
2232_ACEOF
2233
2234
2235cat >>confdefs.h <<_ACEOF
2236#define VERSION "$VERSION"
2237_ACEOF
2238
2239# Some tools Automake needs.
2240
2241ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2242
2243
2244AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2245
2246
2247AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2248
2249
2250AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2251
2252
2253MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2254
Ben Chengcc6695e2012-03-07 23:04:02 -08002255install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002256
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.
2261if 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.
2264set dummy ${ac_tool_prefix}strip; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2266$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002267if test "${ac_cv_prog_STRIP+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002268 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002269else
2270 if test -n "$STRIP"; then
2271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2272else
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002279 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 Project441f72d2009-03-03 19:29:28 -08002280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Ben Chengcc6695e2012-03-07 23:04:02 -08002281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002282 break 2
2283 fi
2284done
2285done
Ben Chengcc6695e2012-03-07 23:04:02 -08002286IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002287
2288fi
2289fi
2290STRIP=$ac_cv_prog_STRIP
2291if test -n "$STRIP"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002292 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2293$as_echo "$STRIP" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002294else
Ben Chengcc6695e2012-03-07 23:04:02 -08002295 { $as_echo "$as_me:$LINENO: result: no" >&5
2296$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002297fi
2298
Ben Chengcc6695e2012-03-07 23:04:02 -08002299
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002300fi
2301if 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.
2304set dummy strip; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2306$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002307if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002308 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002309else
2310 if test -n "$ac_ct_STRIP"; then
2311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002319 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 Project441f72d2009-03-03 19:29:28 -08002320 ac_cv_prog_ac_ct_STRIP="strip"
Ben Chengcc6695e2012-03-07 23:04:02 -08002321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002322 break 2
2323 fi
2324done
2325done
Ben Chengcc6695e2012-03-07 23:04:02 -08002326IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002327
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002328fi
2329fi
2330ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2331if test -n "$ac_ct_STRIP"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002332 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2333$as_echo "$ac_ct_STRIP" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002334else
Ben Chengcc6695e2012-03-07 23:04:02 -08002335 { $as_echo "$as_me:$LINENO: result: no" >&5
2336$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002337fi
2338
Ben Chengcc6695e2012-03-07 23:04:02 -08002339 if test "x$ac_ct_STRIP" = x; then
2340 STRIP=":"
2341 else
2342 case $cross_compiling:$ac_tool_warned in
2343yes:)
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;}
2346ac_tool_warned=yes ;;
2347esac
2348 STRIP=$ac_ct_STRIP
2349 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002350else
2351 STRIP="$ac_cv_prog_STRIP"
2352fi
2353
2354fi
Ben Chengcc6695e2012-03-07 23:04:02 -08002355INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002356
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
2361AMTAR=${AMTAR-"${am_missing_run}tar"}
2362
2363am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2364
2365
2366
2367
2368
Ben Chengcc6695e2012-03-07 23:04:02 -08002369{ $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.
2372if test "${enable_maintainer_mode+set}" = set; then
2373 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002374else
Ben Chengcc6695e2012-03-07 23:04:02 -08002375 USE_MAINTAINER_MODE=no
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002376fi
2377
Ben Chengcc6695e2012-03-07 23:04:02 -08002378 { $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='#'
2383else
2384 MAINTAINER_MODE_TRUE='#'
2385 MAINTAINER_MODE_FALSE=
2386fi
2387
2388 MAINT=$MAINTAINER_MODE_TRUE
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002389
2390
Ben Chengcc6695e2012-03-07 23:04:02 -08002391
2392MODVERSION="Build on $(hostname) $(date +%FT%R:%S%z)"
2393
2394cat >>confdefs.h <<_ACEOF
2395#define MODVERSION "$MODVERSION"
2396_ACEOF
2397
2398
2399
2400
2401
2402ac_config_files="$ac_config_files Makefile"
2403
2404ac_config_headers="$ac_config_headers config.h"
2405
2406
2407
2408ac_config_files="$ac_config_files m4/Makefile"
2409
2410
2411ac_config_files="$ac_config_files elfutils.spec:config/elfutils.spec.in"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002412
2413
2414
2415# Make sure we can run config.sub.
Ben Chengcc6695e2012-03-07 23:04:02 -08002416$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 Project441f72d2009-03-03 19:29:28 -08002419 { (exit 1); exit 1; }; }
2420
Ben Chengcc6695e2012-03-07 23:04:02 -08002421{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2422$as_echo_n "checking build system type... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002423if test "${ac_cv_build+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002424 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002425else
Ben Chengcc6695e2012-03-07 23:04:02 -08002426 ac_build_alias=$build_alias
2427test "x$ac_build_alias" = x &&
2428 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2429test "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 Project441f72d2009-03-03 19:29:28 -08002432 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08002433ac_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 Project441f72d2009-03-03 19:29:28 -08002436 { (exit 1); exit 1; }; }
2437
2438fi
Ben Chengcc6695e2012-03-07 23:04:02 -08002439{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2440$as_echo "$ac_cv_build" >&6; }
2441case $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; }; };;
2446esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002447build=$ac_cv_build
Ben Chengcc6695e2012-03-07 23:04:02 -08002448ac_save_IFS=$IFS; IFS='-'
2449set x $ac_cv_build
2450shift
2451build_cpu=$1
2452build_vendor=$2
2453shift; shift
2454# Remember, the first character of IFS is used to create $*,
2455# except with old shells:
2456build_os=$*
2457IFS=$ac_save_IFS
2458case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002459
2460
Ben Chengcc6695e2012-03-07 23:04:02 -08002461{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2462$as_echo_n "checking host system type... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002463if test "${ac_cv_host+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002464 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002465else
Ben Chengcc6695e2012-03-07 23:04:02 -08002466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468else
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 Project441f72d2009-03-03 19:29:28 -08002472 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08002473fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002474
2475fi
Ben Chengcc6695e2012-03-07 23:04:02 -08002476{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2477$as_echo "$ac_cv_host" >&6; }
2478case $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; }; };;
2483esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002484host=$ac_cv_host
Ben Chengcc6695e2012-03-07 23:04:02 -08002485ac_save_IFS=$IFS; IFS='-'
2486set x $ac_cv_host
2487shift
2488host_cpu=$1
2489host_vendor=$2
2490shift; shift
2491# Remember, the first character of IFS is used to create $*,
2492# except with old shells:
2493host_os=$*
2494IFS=$ac_save_IFS
2495case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002496
2497
2498
Ben Chengcc6695e2012-03-07 23:04:02 -08002499# Check whether --enable-tls was given.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002500if test "${enable_tls+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002501 enableval=$enable_tls; use_tls=yes
2502else
2503 use_tls=no
2504fi
2505
2506 if test "$use_tls" = yes; then
2507 USE_TLS_TRUE=
2508 USE_TLS_FALSE='#'
2509else
2510 USE_TLS_TRUE='#'
2511 USE_TLS_FALSE=
2512fi
2513
2514if test "$use_tls" = yes; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002515 cat >>confdefs.h <<\_ACEOF
2516#define USE_TLS 1
2517_ACEOF
2518
Ben Chengcc6695e2012-03-07 23:04:02 -08002519fi
2520
2521
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002522
2523
2524
2525ALL_LINGUAS=
2526
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532if 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.
2534set dummy ${ac_tool_prefix}gcc; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002535{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002537if test "${ac_cv_prog_CC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002538 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002539else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002549 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 Project441f72d2009-03-03 19:29:28 -08002550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Ben Chengcc6695e2012-03-07 23:04:02 -08002551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002552 break 2
2553 fi
2554done
2555done
Ben Chengcc6695e2012-03-07 23:04:02 -08002556IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002557
2558fi
2559fi
2560CC=$ac_cv_prog_CC
2561if test -n "$CC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002562 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2563$as_echo "$CC" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002564else
Ben Chengcc6695e2012-03-07 23:04:02 -08002565 { $as_echo "$as_me:$LINENO: result: no" >&5
2566$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002567fi
2568
Ben Chengcc6695e2012-03-07 23:04:02 -08002569
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002570fi
2571if 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.
2574set dummy gcc; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002578 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002579else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002589 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 Project441f72d2009-03-03 19:29:28 -08002590 ac_cv_prog_ac_ct_CC="gcc"
Ben Chengcc6695e2012-03-07 23:04:02 -08002591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002592 break 2
2593 fi
2594done
2595done
Ben Chengcc6695e2012-03-07 23:04:02 -08002596IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002597
2598fi
2599fi
2600ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601if test -n "$ac_ct_CC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002602 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603$as_echo "$ac_ct_CC" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002604else
Ben Chengcc6695e2012-03-07 23:04:02 -08002605 { $as_echo "$as_me:$LINENO: result: no" >&5
2606$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002607fi
2608
Ben Chengcc6695e2012-03-07 23:04:02 -08002609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613yes:)
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;}
2616ac_tool_warned=yes ;;
2617esac
2618 CC=$ac_ct_CC
2619 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002620else
2621 CC="$ac_cv_prog_CC"
2622fi
2623
2624if test -z "$CC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002625 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 Project441f72d2009-03-03 19:29:28 -08002627set dummy ${ac_tool_prefix}cc; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002630if test "${ac_cv_prog_CC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002631 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002632else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002642 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 Project441f72d2009-03-03 19:29:28 -08002643 ac_cv_prog_CC="${ac_tool_prefix}cc"
Ben Chengcc6695e2012-03-07 23:04:02 -08002644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002645 break 2
2646 fi
2647done
2648done
Ben Chengcc6695e2012-03-07 23:04:02 -08002649IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002650
2651fi
2652fi
2653CC=$ac_cv_prog_CC
2654if test -n "$CC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002655 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2656$as_echo "$CC" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002657else
Ben Chengcc6695e2012-03-07 23:04:02 -08002658 { $as_echo "$as_me:$LINENO: result: no" >&5
2659$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002660fi
2661
Ben Chengcc6695e2012-03-07 23:04:02 -08002662
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002663 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002664fi
2665if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667set dummy cc; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002668{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002670if test "${ac_cv_prog_CC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002671 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002672else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
2676 ac_prog_rejected=no
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002683 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 Project441f72d2009-03-03 19:29:28 -08002684 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 Chengcc6695e2012-03-07 23:04:02 -08002689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002690 break 2
2691 fi
2692done
2693done
Ben Chengcc6695e2012-03-07 23:04:02 -08002694IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002695
2696if 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
2707fi
2708fi
2709fi
2710CC=$ac_cv_prog_CC
2711if test -n "$CC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002712 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2713$as_echo "$CC" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002714else
Ben Chengcc6695e2012-03-07 23:04:02 -08002715 { $as_echo "$as_me:$LINENO: result: no" >&5
2716$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002717fi
2718
Ben Chengcc6695e2012-03-07 23:04:02 -08002719
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002720fi
2721if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002723 for ac_prog in cl.exe
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002724 do
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002729if test "${ac_cv_prog_CC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002730 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002731else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002741 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 Project441f72d2009-03-03 19:29:28 -08002742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Ben Chengcc6695e2012-03-07 23:04:02 -08002743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002744 break 2
2745 fi
2746done
2747done
Ben Chengcc6695e2012-03-07 23:04:02 -08002748IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002749
2750fi
2751fi
2752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002754 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2755$as_echo "$CC" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002756else
Ben Chengcc6695e2012-03-07 23:04:02 -08002757 { $as_echo "$as_me:$LINENO: result: no" >&5
2758$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002759fi
2760
Ben Chengcc6695e2012-03-07 23:04:02 -08002761
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002762 test -n "$CC" && break
2763 done
2764fi
2765if test -z "$CC"; then
2766 ac_ct_CC=$CC
Ben Chengcc6695e2012-03-07 23:04:02 -08002767 for ac_prog in cl.exe
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002768do
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770set dummy $ac_prog; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08002771{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002773if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002774 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002775else
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08002785 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 Project441f72d2009-03-03 19:29:28 -08002786 ac_cv_prog_ac_ct_CC="$ac_prog"
Ben Chengcc6695e2012-03-07 23:04:02 -08002787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002788 break 2
2789 fi
2790done
2791done
Ben Chengcc6695e2012-03-07 23:04:02 -08002792IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002793
2794fi
2795fi
2796ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797if test -n "$ac_ct_CC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08002798 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799$as_echo "$ac_ct_CC" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002800else
Ben Chengcc6695e2012-03-07 23:04:02 -08002801 { $as_echo "$as_me:$LINENO: result: no" >&5
2802$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002803fi
2804
Ben Chengcc6695e2012-03-07 23:04:02 -08002805
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002806 test -n "$ac_ct_CC" && break
2807done
2808
Ben Chengcc6695e2012-03-07 23:04:02 -08002809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813yes:)
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;}
2816ac_tool_warned=yes ;;
2817esac
2818 CC=$ac_ct_CC
2819 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002820fi
2821
2822fi
2823
2824
Ben Chengcc6695e2012-03-07 23:04:02 -08002825test -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 Project441f72d2009-03-03 19:29:28 -08002828See \`config.log' for more details." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08002829$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002830See \`config.log' for more details." >&2;}
Ben Chengcc6695e2012-03-07 23:04:02 -08002831 { (exit 1); exit 1; }; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002832
2833# Provide some information about the compiler.
Ben Chengcc6695e2012-03-07 23:04:02 -08002834$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2835set X $ac_compile
2836ac_compiler=$2
2837{ (ac_try="$ac_compiler --version >&5"
2838case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841esac
2842eval 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 Project441f72d2009-03-03 19:29:28 -08002845 ac_status=$?
Ben Chengcc6695e2012-03-07 23:04:02 -08002846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002847 (exit $ac_status); }
Ben Chengcc6695e2012-03-07 23:04:02 -08002848{ (ac_try="$ac_compiler -v >&5"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval 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 Project441f72d2009-03-03 19:29:28 -08002856 ac_status=$?
Ben Chengcc6695e2012-03-07 23:04:02 -08002857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002858 (exit $ac_status); }
Ben Chengcc6695e2012-03-07 23:04:02 -08002859{ (ac_try="$ac_compiler -V >&5"
2860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval 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 Project441f72d2009-03-03 19:29:28 -08002867 ac_status=$?
Ben Chengcc6695e2012-03-07 23:04:02 -08002868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002869 (exit $ac_status); }
2870
2871cat >conftest.$ac_ext <<_ACEOF
2872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
2877
2878int
2879main ()
2880{
2881
2882 ;
2883 return 0;
2884}
2885_ACEOF
2886ac_clean_files_save=$ac_clean_files
Ben Chengcc6695e2012-03-07 23:04:02 -08002887ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002888# 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 Chengcc6695e2012-03-07 23:04:02 -08002891{ $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; }
2893ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002894
Ben Chengcc6695e2012-03-07 23:04:02 -08002895# The possible output files:
2896ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2897
2898ac_rmfiles=
2899for ac_file in $ac_files
2900do
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
2905done
2906rm -f $ac_rmfiles
2907
2908if { (ac_try="$ac_link_default"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval 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.
2924for ac_file in $ac_files ''
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002925do
2926 test -f "$ac_file" || continue
2927 case $ac_file in
Ben Chengcc6695e2012-03-07 23:04:02 -08002928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002929 ;;
2930 [ab].out )
2931 # We found the default executable, but exeext='' is most
2932 # certainly right.
2933 break;;
2934 *.* )
Ben Chengcc6695e2012-03-07 23:04:02 -08002935 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 Project441f72d2009-03-03 19:29:28 -08002944 break;;
2945 * )
2946 break;;
2947 esac
2948done
Ben Chengcc6695e2012-03-07 23:04:02 -08002949test "$ac_cv_exeext" = no && ac_cv_exeext=
2950
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002951else
Ben Chengcc6695e2012-03-07 23:04:02 -08002952 ac_file=''
2953fi
2954
2955{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2956$as_echo "$ac_file" >&6; }
2957if test -z "$ac_file"; then
2958 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002959sed 's/^/| /' conftest.$ac_ext >&5
2960
Ben Chengcc6695e2012-03-07 23:04:02 -08002961{ { $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 Project441f72d2009-03-03 19:29:28 -08002964See \`config.log' for more details." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08002965$as_echo "$as_me: error: C compiler cannot create executables
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002966See \`config.log' for more details." >&2;}
Ben Chengcc6695e2012-03-07 23:04:02 -08002967 { (exit 77); exit 77; }; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002968fi
2969
2970ac_exeext=$ac_cv_exeext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002971
Ben Chengcc6695e2012-03-07 23:04:02 -08002972# Check that the compiler produces executables we can run. If not, either
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002973# the compiler is broken, or we cross compile.
Ben Chengcc6695e2012-03-07 23:04:02 -08002974{ $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 Project441f72d2009-03-03 19:29:28 -08002976# 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.
2978if test "$cross_compiling" != yes; then
2979 if { ac_try='./$ac_file'
Ben Chengcc6695e2012-03-07 23:04:02 -08002980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval 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 Project441f72d2009-03-03 19:29:28 -08002987 ac_status=$?
Ben Chengcc6695e2012-03-07 23:04:02 -08002988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08002989 (exit $ac_status); }; }; then
2990 cross_compiling=no
2991 else
2992 if test "$cross_compiling" = maybe; then
2993 cross_compiling=yes
2994 else
Ben Chengcc6695e2012-03-07 23:04:02 -08002995 { { $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 Project441f72d2009-03-03 19:29:28 -08002998If you meant to cross compile, use \`--host'.
2999See \`config.log' for more details." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08003000$as_echo "$as_me: error: cannot run C compiled programs.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003001If you meant to cross compile, use \`--host'.
3002See \`config.log' for more details." >&2;}
Ben Chengcc6695e2012-03-07 23:04:02 -08003003 { (exit 1); exit 1; }; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003004 fi
3005 fi
3006fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003007{ $as_echo "$as_me:$LINENO: result: yes" >&5
3008$as_echo "yes" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003009
Ben Chengcc6695e2012-03-07 23:04:02 -08003010rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003011ac_clean_files=$ac_clean_files_save
Ben Chengcc6695e2012-03-07 23:04:02 -08003012# Check that the compiler produces executables we can run. If not, either
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003013# the compiler is broken, or we cross compile.
Ben Chengcc6695e2012-03-07 23:04:02 -08003014{ $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 Project441f72d2009-03-03 19:29:28 -08003018
Ben Chengcc6695e2012-03-07 23:04:02 -08003019{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3020$as_echo_n "checking for suffix of executables... " >&6; }
3021if { (ac_try="$ac_link"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval 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 Project441f72d2009-03-03 19:29:28 -08003029 ac_status=$?
Ben Chengcc6695e2012-03-07 23:04:02 -08003030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003031 (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'.
3036for ac_file in conftest.exe conftest conftest.*; do
3037 test -f "$ac_file" || continue
3038 case $ac_file in
Ben Chengcc6695e2012-03-07 23:04:02 -08003039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003041 break;;
3042 * ) break;;
3043 esac
3044done
3045else
Ben Chengcc6695e2012-03-07 23:04:02 -08003046 { { $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 Project441f72d2009-03-03 19:29:28 -08003049See \`config.log' for more details." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08003050$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003051See \`config.log' for more details." >&2;}
Ben Chengcc6695e2012-03-07 23:04:02 -08003052 { (exit 1); exit 1; }; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003053fi
3054
3055rm -f conftest$ac_cv_exeext
Ben Chengcc6695e2012-03-07 23:04:02 -08003056{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3057$as_echo "$ac_cv_exeext" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003058
3059rm -f conftest.$ac_ext
3060EXEEXT=$ac_cv_exeext
3061ac_exeext=$EXEEXT
Ben Chengcc6695e2012-03-07 23:04:02 -08003062{ $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 Project441f72d2009-03-03 19:29:28 -08003064if test "${ac_cv_objext+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003065 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003066else
3067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082rm -f conftest.o conftest.obj
Ben Chengcc6695e2012-03-07 23:04:02 -08003083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval 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 Project441f72d2009-03-03 19:29:28 -08003091 ac_status=$?
Ben Chengcc6695e2012-03-07 23:04:02 -08003092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003093 (exit $ac_status); }; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003094 for ac_file in conftest.o conftest.obj conftest.*; do
3095 test -f "$ac_file" || continue;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003096 case $ac_file in
Ben Chengcc6695e2012-03-07 23:04:02 -08003097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099 break;;
3100 esac
3101done
3102else
Ben Chengcc6695e2012-03-07 23:04:02 -08003103 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003104sed 's/^/| /' conftest.$ac_ext >&5
3105
Ben Chengcc6695e2012-03-07 23:04:02 -08003106{ { $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 Project441f72d2009-03-03 19:29:28 -08003109See \`config.log' for more details." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08003110$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003111See \`config.log' for more details." >&2;}
Ben Chengcc6695e2012-03-07 23:04:02 -08003112 { (exit 1); exit 1; }; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003113fi
3114
3115rm -f conftest.$ac_cv_objext conftest.$ac_ext
3116fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003117{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3118$as_echo "$ac_cv_objext" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003119OBJEXT=$ac_cv_objext
3120ac_objext=$OBJEXT
Ben Chengcc6695e2012-03-07 23:04:02 -08003121{ $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 Project441f72d2009-03-03 19:29:28 -08003123if test "${ac_cv_c_compiler_gnu+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003124 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003125else
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136#ifndef __GNUC__
3137 choke me
3138#endif
3139
3140 ;
3141 return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08003145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval 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 Project441f72d2009-03-03 19:29:28 -08003153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08003157 $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 Project441f72d2009-03-03 19:29:28 -08003162 ac_compiler_gnu=yes
3163else
Ben Chengcc6695e2012-03-07 23:04:02 -08003164 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003165sed 's/^/| /' conftest.$ac_ext >&5
3166
Ben Chengcc6695e2012-03-07 23:04:02 -08003167 ac_compiler_gnu=no
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003168fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003171ac_cv_c_compiler_gnu=$ac_compiler_gnu
3172
3173fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003174{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3175$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3176if test $ac_compiler_gnu = yes; then
3177 GCC=yes
3178else
3179 GCC=
3180fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003181ac_test_CFLAGS=${CFLAGS+set}
3182ac_save_CFLAGS=$CFLAGS
Ben Chengcc6695e2012-03-07 23:04:02 -08003183{ $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 Project441f72d2009-03-03 19:29:28 -08003185if test "${ac_cv_prog_cc_g+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003186 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003187else
Ben Chengcc6695e2012-03-07 23:04:02 -08003188 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 Project441f72d2009-03-03 19:29:28 -08003193/* confdefs.h. */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h. */
3198
3199int
3200main ()
3201{
3202
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08003208if { (ac_try="$ac_compile"
3209case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval 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 Project441f72d2009-03-03 19:29:28 -08003216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08003220 $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 Project441f72d2009-03-03 19:29:28 -08003225 ac_cv_prog_cc_g=yes
3226else
Ben Chengcc6695e2012-03-07 23:04:02 -08003227 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003228sed 's/^/| /' conftest.$ac_ext >&5
3229
Ben Chengcc6695e2012-03-07 23:04:02 -08003230 CFLAGS=""
3231 cat >conftest.$ac_ext <<_ACEOF
3232/* confdefs.h. */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h. */
3237
3238int
3239main ()
3240{
3241
3242 ;
3243 return 0;
3244}
3245_ACEOF
3246rm -f conftest.$ac_objext
3247if { (ac_try="$ac_compile"
3248case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
3252eval 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 :
3265else
3266 $as_echo "$as_me: failed program was:" >&5
3267sed '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
3274cat confdefs.h >>conftest.$ac_ext
3275cat >>conftest.$ac_ext <<_ACEOF
3276/* end confdefs.h. */
3277
3278int
3279main ()
3280{
3281
3282 ;
3283 return 0;
3284}
3285_ACEOF
3286rm -f conftest.$ac_objext
3287if { (ac_try="$ac_compile"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval 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
3305else
3306 $as_echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003310fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003311
3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003313fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003314
3315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316fi
3317
3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3320fi
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 Project441f72d2009-03-03 19:29:28 -08003323if test "$ac_test_CFLAGS" = set; then
3324 CFLAGS=$ac_save_CFLAGS
3325elif 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
3331else
3332 if test "$GCC" = yes; then
3333 CFLAGS="-O2"
3334 else
3335 CFLAGS=
3336 fi
3337fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003338{ $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; }
3340if test "${ac_cv_prog_cc_c89+set}" = set; then
3341 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003342else
Ben Chengcc6695e2012-03-07 23:04:02 -08003343 ac_cv_prog_cc_c89=no
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003344ac_save_CC=$CC
3345cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>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. */
3356struct buf { int x; };
3357FILE * (*rcsopen) (struct buf *, struct stat *, int);
3358static char *e (p, i)
3359 char **p;
3360 int i;
3361{
3362 return p[i];
3363}
3364static 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 Chengcc6695e2012-03-07 23:04:02 -08003377 as 'x'. The following induces an error, until -std is added to get
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003378 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 Chengcc6695e2012-03-07 23:04:02 -08003380 that's true only with -std. */
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003381int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3382
Ben Chengcc6695e2012-03-07 23:04:02 -08003383/* 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'
3386int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3387
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003388int test (int i, double x);
3389struct s1 {int (*f) (int a);};
3390struct s2 {int (*f) (double a);};
3391int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3392int argc;
3393char **argv;
3394int
3395main ()
3396{
3397return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3398 ;
3399 return 0;
3400}
3401_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08003402for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003404do
3405 CC="$ac_save_CC $ac_arg"
3406 rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08003407if { (ac_try="$ac_compile"
3408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
3412eval 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 Project441f72d2009-03-03 19:29:28 -08003415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08003419 $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 Project441f72d2009-03-03 19:29:28 -08003425else
Ben Chengcc6695e2012-03-07 23:04:02 -08003426 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003427sed 's/^/| /' conftest.$ac_ext >&5
3428
Ben Chengcc6695e2012-03-07 23:04:02 -08003429
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003430fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003431
3432rm -f core conftest.err conftest.$ac_objext
3433 test "x$ac_cv_prog_cc_c89" != "xno" && break
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003434done
Ben Chengcc6695e2012-03-07 23:04:02 -08003435rm -f conftest.$ac_ext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003436CC=$ac_save_CC
3437
3438fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003439# AC_CACHE_VAL
3440case "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 Project441f72d2009-03-03 19:29:28 -08003447 *)
Ben Chengcc6695e2012-03-07 23:04:02 -08003448 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 Project441f72d2009-03-03 19:29:28 -08003451esac
3452
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003453
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459DEPDIR="${am__leading_dot}deps"
3460
Ben Chengcc6695e2012-03-07 23:04:02 -08003461ac_config_commands="$ac_config_commands depfiles"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003462
3463
3464am_make=${MAKE-make}
3465cat > confinc << 'END'
3466am__doit:
3467 @echo done
3468.PHONY: am__doit
3469END
3470# If we don't find an include directive, just comment out the code.
Ben Chengcc6695e2012-03-07 23:04:02 -08003471{ $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 Project441f72d2009-03-03 19:29:28 -08003473am__include="#"
3474am__quote=
3475_am_result=none
3476# First try GNU make style include.
3477echo "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'.
3483if 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
3487fi
3488# Now try BSD make style include.
3489if 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
3496fi
3497
3498
Ben Chengcc6695e2012-03-07 23:04:02 -08003499{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3500$as_echo "$_am_result" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003501rm -f confinc confmf
3502
Ben Chengcc6695e2012-03-07 23:04:02 -08003503# Check whether --enable-dependency-tracking was given.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003504if test "${enable_dependency_tracking+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003505 enableval=$enable_dependency_tracking;
3506fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003507
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003508if test "x$enable_dependency_tracking" != xno; then
3509 am_depcomp="$ac_aux_dir/depcomp"
3510 AMDEPBACKSLASH='\'
3511fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003512 if test "x$enable_dependency_tracking" != xno; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003513 AMDEP_TRUE=
3514 AMDEP_FALSE='#'
3515else
3516 AMDEP_TRUE='#'
3517 AMDEP_FALSE=
3518fi
3519
3520
3521
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003522depcc="$CC" am_compiler_list=
3523
Ben Chengcc6695e2012-03-07 23:04:02 -08003524{ $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 Project441f72d2009-03-03 19:29:28 -08003526if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003527 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003528else
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 Chengcc6695e2012-03-07 23:04:02 -08003589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003590 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
3610else
3611 am_cv_CC_dependencies_compiler_type=none
3612fi
3613
3614fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003615{ $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 Project441f72d2009-03-03 19:29:28 -08003617CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3618
Ben Chengcc6695e2012-03-07 23:04:02 -08003619 if
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003620 test "x$enable_dependency_tracking" != xno \
3621 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3622 am__fastdepCC_TRUE=
3623 am__fastdepCC_FALSE='#'
3624else
3625 am__fastdepCC_TRUE='#'
3626 am__fastdepCC_FALSE=
3627fi
3628
3629
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003630if 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.
3632set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08003633{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3634$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003635if test "${ac_cv_prog_RANLIB+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003636 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003637else
3638 if test -n "$RANLIB"; then
3639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08003647 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 Project441f72d2009-03-03 19:29:28 -08003648 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Ben Chengcc6695e2012-03-07 23:04:02 -08003649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003650 break 2
3651 fi
3652done
3653done
Ben Chengcc6695e2012-03-07 23:04:02 -08003654IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003655
3656fi
3657fi
3658RANLIB=$ac_cv_prog_RANLIB
3659if test -n "$RANLIB"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003660 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3661$as_echo "$RANLIB" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003662else
Ben Chengcc6695e2012-03-07 23:04:02 -08003663 { $as_echo "$as_me:$LINENO: result: no" >&5
3664$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003665fi
3666
Ben Chengcc6695e2012-03-07 23:04:02 -08003667
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003668fi
3669if 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.
3672set dummy ranlib; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08003673{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003675if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003676 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003677else
3678 if test -n "$ac_ct_RANLIB"; then
3679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3680else
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08003687 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 Project441f72d2009-03-03 19:29:28 -08003688 ac_cv_prog_ac_ct_RANLIB="ranlib"
Ben Chengcc6695e2012-03-07 23:04:02 -08003689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003690 break 2
3691 fi
3692done
3693done
Ben Chengcc6695e2012-03-07 23:04:02 -08003694IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003695
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003696fi
3697fi
3698ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3699if test -n "$ac_ct_RANLIB"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003700 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3701$as_echo "$ac_ct_RANLIB" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003702else
Ben Chengcc6695e2012-03-07 23:04:02 -08003703 { $as_echo "$as_me:$LINENO: result: no" >&5
3704$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003705fi
3706
Ben Chengcc6695e2012-03-07 23:04:02 -08003707 if test "x$ac_ct_RANLIB" = x; then
3708 RANLIB=":"
3709 else
3710 case $cross_compiling:$ac_tool_warned in
3711yes:)
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;}
3714ac_tool_warned=yes ;;
3715esac
3716 RANLIB=$ac_ct_RANLIB
3717 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003718else
3719 RANLIB="$ac_cv_prog_RANLIB"
3720fi
3721
3722for ac_prog in 'bison -y' byacc
3723do
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725set dummy $ac_prog; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08003726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3727$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003728if test "${ac_cv_prog_YACC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003729 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003730else
3731 if test -n "$YACC"; then
3732 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08003740 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 Project441f72d2009-03-03 19:29:28 -08003741 ac_cv_prog_YACC="$ac_prog"
Ben Chengcc6695e2012-03-07 23:04:02 -08003742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003743 break 2
3744 fi
3745done
3746done
Ben Chengcc6695e2012-03-07 23:04:02 -08003747IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003748
3749fi
3750fi
3751YACC=$ac_cv_prog_YACC
3752if test -n "$YACC"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003753 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
3754$as_echo "$YACC" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003755else
Ben Chengcc6695e2012-03-07 23:04:02 -08003756 { $as_echo "$as_me:$LINENO: result: no" >&5
3757$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003758fi
3759
Ben Chengcc6695e2012-03-07 23:04:02 -08003760
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003761 test -n "$YACC" && break
3762done
3763test -n "$YACC" || YACC="yacc"
3764
Ben Chengcc6695e2012-03-07 23:04:02 -08003765
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003766for ac_prog in flex lex
3767do
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769set dummy $ac_prog; ac_word=$2
Ben Chengcc6695e2012-03-07 23:04:02 -08003770{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3771$as_echo_n "checking for $ac_word... " >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003772if test "${ac_cv_prog_LEX+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003773 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003774else
3775 if test -n "$LEX"; then
3776 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
Ben Chengcc6695e2012-03-07 23:04:02 -08003784 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 Project441f72d2009-03-03 19:29:28 -08003785 ac_cv_prog_LEX="$ac_prog"
Ben Chengcc6695e2012-03-07 23:04:02 -08003786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003787 break 2
3788 fi
3789done
3790done
Ben Chengcc6695e2012-03-07 23:04:02 -08003791IFS=$as_save_IFS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003792
3793fi
3794fi
3795LEX=$ac_cv_prog_LEX
3796if test -n "$LEX"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003797 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3798$as_echo "$LEX" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003799else
Ben Chengcc6695e2012-03-07 23:04:02 -08003800 { $as_echo "$as_me:$LINENO: result: no" >&5
3801$as_echo "no" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003802fi
3803
Ben Chengcc6695e2012-03-07 23:04:02 -08003804
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003805 test -n "$LEX" && break
3806done
3807test -n "$LEX" || LEX=":"
3808
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003809if test "x$LEX" != "x:"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003810 cat >conftest.l <<_ACEOF
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003811%%
Ben Chengcc6695e2012-03-07 23:04:02 -08003812a { ECHO; }
3813b { REJECT; }
3814c { yymore (); }
3815d { yyless (1); }
3816e { yyless (input () != 0); }
3817f { unput (yytext[0]); }
3818. { BEGIN INITIAL; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003819%%
Ben Chengcc6695e2012-03-07 23:04:02 -08003820#ifdef YYTEXT_POINTER
3821extern char *yytext;
3822#endif
3823int
3824main (void)
3825{
3826 return ! yylex () + ! yywrap ();
3827}
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003828_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08003829{ (ac_try="$LEX conftest.l"
3830case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833esac
3834eval 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 Project441f72d2009-03-03 19:29:28 -08003837 ac_status=$?
Ben Chengcc6695e2012-03-07 23:04:02 -08003838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003839 (exit $ac_status); }
Ben Chengcc6695e2012-03-07 23:04:02 -08003840{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
3841$as_echo_n "checking lex output file root... " >&6; }
3842if test "${ac_cv_prog_lex_root+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3844else
3845
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003846if test -f lex.yy.c; then
3847 ac_cv_prog_lex_root=lex.yy
3848elif test -f lexyy.c; then
3849 ac_cv_prog_lex_root=lexyy
3850else
Ben Chengcc6695e2012-03-07 23:04:02 -08003851 { { $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 Project441f72d2009-03-03 19:29:28 -08003853 { (exit 1); exit 1; }; }
3854fi
3855fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003856{ $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 Project441f72d2009-03-03 19:29:28 -08003858LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3859
Ben Chengcc6695e2012-03-07 23:04:02 -08003860if test -z "${LEXLIB+set}"; then
3861 { $as_echo "$as_me:$LINENO: checking lex library" >&5
3862$as_echo_n "checking lex library... " >&6; }
3863if test "${ac_cv_lib_lex+set}" = set; then
3864 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003865else
Ben Chengcc6695e2012-03-07 23:04:02 -08003866
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 Project441f72d2009-03-03 19:29:28 -08003872`cat $LEX_OUTPUT_ROOT.c`
3873_ACEOF
3874rm -f conftest.$ac_objext conftest$ac_exeext
Ben Chengcc6695e2012-03-07 23:04:02 -08003875if { (ac_try="$ac_link"
3876case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879esac
3880eval 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 Project441f72d2009-03-03 19:29:28 -08003883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08003887 $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 Project441f72d2009-03-03 19:29:28 -08003896else
Ben Chengcc6695e2012-03-07 23:04:02 -08003897 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003898sed 's/^/| /' conftest.$ac_ext >&5
3899
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003900
3901fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003902
3903rm -rf conftest.dSYM
3904rm -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
3910fi
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
3914fi
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; }
3919if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3920 $as_echo_n "(cached) " >&6
3921else
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.
3925ac_cv_prog_lex_yytext_pointer=no
3926ac_save_LIBS=$LIBS
3927LIBS="$LEXLIB $ac_save_LIBS"
3928cat >conftest.$ac_ext <<_ACEOF
3929#define YYTEXT_POINTER 1
3930`cat $LEX_OUTPUT_ROOT.c`
3931_ACEOF
3932rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (ac_try="$ac_link"
3934case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937esac
3938eval 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
3954else
3955 $as_echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
3958
3959fi
3960
3961rm -rf conftest.dSYM
3962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3963 conftest$ac_exeext conftest.$ac_ext
3964LIBS=$ac_save_LIBS
3965
3966fi
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 Project441f72d2009-03-03 19:29:28 -08003969if test $ac_cv_prog_lex_yytext_pointer = yes; then
3970
3971cat >>confdefs.h <<\_ACEOF
3972#define YYTEXT_POINTER 1
3973_ACEOF
3974
3975fi
Ben Chengcc6695e2012-03-07 23:04:02 -08003976rm -f conftest.l $LEX_OUTPUT_ROOT.c
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003977
3978fi
3979if test "$LEX" = :; then
3980 LEX=${am_missing_run}flex
3981fi
3982
Ben Chengcc6695e2012-03-07 23:04:02 -08003983{ $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 Project441f72d2009-03-03 19:29:28 -08003985if test "${ac_cv_c99+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08003986 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08003987else
3988 old_CFLAGS="$CFLAGS"
3989CFLAGS="$CFLAGS -std=gnu99"
3990cat >conftest.$ac_ext <<_ACEOF
3991int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; }
3992_ACEOF
3993rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08003994if { (ac_try="$ac_compile"
3995case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval 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 Project441f72d2009-03-03 19:29:28 -08004002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004006 $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 Project441f72d2009-03-03 19:29:28 -08004011 ac_cv_c99=yes
4012else
Ben Chengcc6695e2012-03-07 23:04:02 -08004013 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004014sed 's/^/| /' conftest.$ac_ext >&5
4015
Ben Chengcc6695e2012-03-07 23:04:02 -08004016 ac_cv_c99=no
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004017fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004018
4019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004020CFLAGS="$old_CFLAGS"
4021fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004022{ $as_echo "$as_me:$LINENO: result: $ac_cv_c99" >&5
4023$as_echo "$ac_cv_c99" >&6; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004024if test "x$ac_cv_c99" != xyes; then
Ben Chengcc6695e2012-03-07 23:04:02 -08004025 { { $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 Project441f72d2009-03-03 19:29:28 -08004027 { (exit 1); exit 1; }; }
4028fi
4029
4030
4031LOCALEDIR=$datadir
4032
4033cat >>confdefs.h <<_ACEOF
4034#define LOCALEDIR "$LOCALEDIR"
4035_ACEOF
4036
4037
4038
4039
4040DATADIRNAME=$datadir
4041
4042
Ben Chengcc6695e2012-03-07 23:04:02 -08004043# Check whether --enable-largefile was given.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004044if test "${enable_largefile+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08004045 enableval=$enable_largefile;
4046fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004047
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004048if test "$enable_largefile" != no; then
4049
Ben Chengcc6695e2012-03-07 23:04:02 -08004050 { $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 Project441f72d2009-03-03 19:29:28 -08004052if test "${ac_cv_sys_largefile_CC+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08004053 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004054else
4055 ac_cv_sys_largefile_CC=no
4056 if test "$GCC" != yes; then
4057 ac_save_CC=$CC
4058 while :; do
Ben Chengcc6695e2012-03-07 23:04:02 -08004059 # 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 Project441f72d2009-03-03 19:29:28 -08004061 cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>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];
4076int
4077main ()
4078{
4079
4080 ;
4081 return 0;
4082}
4083_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08004084 rm -f conftest.$ac_objext
4085if { (ac_try="$ac_compile"
4086case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089esac
4090eval 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 Project441f72d2009-03-03 19:29:28 -08004093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004097 $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 Project441f72d2009-03-03 19:29:28 -08004102 break
4103else
Ben Chengcc6695e2012-03-07 23:04:02 -08004104 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004105sed 's/^/| /' conftest.$ac_ext >&5
4106
Ben Chengcc6695e2012-03-07 23:04:02 -08004107
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004108fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004109
4110rm -f core conftest.err conftest.$ac_objext
4111 CC="$CC -n32"
4112 rm -f conftest.$ac_objext
4113if { (ac_try="$ac_compile"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval 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 Project441f72d2009-03-03 19:29:28 -08004121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004125 $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 Project441f72d2009-03-03 19:29:28 -08004130 ac_cv_sys_largefile_CC=' -n32'; break
4131else
Ben Chengcc6695e2012-03-07 23:04:02 -08004132 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004133sed 's/^/| /' conftest.$ac_ext >&5
4134
Ben Chengcc6695e2012-03-07 23:04:02 -08004135
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004136fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004137
4138rm -f core conftest.err conftest.$ac_objext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004139 break
4140 done
4141 CC=$ac_save_CC
4142 rm -f conftest.$ac_ext
4143 fi
4144fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004145{ $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 Project441f72d2009-03-03 19:29:28 -08004147 if test "$ac_cv_sys_largefile_CC" != no; then
4148 CC=$CC$ac_cv_sys_largefile_CC
4149 fi
4150
Ben Chengcc6695e2012-03-07 23:04:02 -08004151 { $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 Project441f72d2009-03-03 19:29:28 -08004153if test "${ac_cv_sys_file_offset_bits+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08004154 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004155else
4156 while :; do
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004157 cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h. */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>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];
4172int
4173main ()
4174{
4175
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08004181if { (ac_try="$ac_compile"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval 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 Project441f72d2009-03-03 19:29:28 -08004189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004193 $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 Project441f72d2009-03-03 19:29:28 -08004199else
Ben Chengcc6695e2012-03-07 23:04:02 -08004200 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004201sed 's/^/| /' conftest.$ac_ext >&5
4202
Ben Chengcc6695e2012-03-07 23:04:02 -08004203
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004204fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004205
4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004207 cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>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];
4223int
4224main ()
4225{
4226
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08004232if { (ac_try="$ac_compile"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval 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 Project441f72d2009-03-03 19:29:28 -08004240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004244 $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 Project441f72d2009-03-03 19:29:28 -08004249 ac_cv_sys_file_offset_bits=64; break
4250else
Ben Chengcc6695e2012-03-07 23:04:02 -08004251 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004252sed 's/^/| /' conftest.$ac_ext >&5
4253
Ben Chengcc6695e2012-03-07 23:04:02 -08004254
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004255fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004256
4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 ac_cv_sys_file_offset_bits=unknown
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004259 break
4260done
4261fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004262{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4263$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4264case $ac_cv_sys_file_offset_bits in #(
4265 no | unknown) ;;
4266 *)
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004267cat >>confdefs.h <<_ACEOF
4268#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4269_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08004270;;
4271esac
4272rm -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 Project441f72d2009-03-03 19:29:28 -08004276if test "${ac_cv_sys_large_files+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08004277 $as_echo_n "(cached) " >&6
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004278else
4279 while :; do
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004280 cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h. */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>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];
4295int
4296main ()
4297{
4298
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08004304if { (ac_try="$ac_compile"
4305case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval 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 Project441f72d2009-03-03 19:29:28 -08004312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004316 $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 Project441f72d2009-03-03 19:29:28 -08004322else
Ben Chengcc6695e2012-03-07 23:04:02 -08004323 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004324sed 's/^/| /' conftest.$ac_ext >&5
4325
Ben Chengcc6695e2012-03-07 23:04:02 -08004326
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004327fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004328
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>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];
4346int
4347main ()
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08004355if { (ac_try="$ac_compile"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval 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 Project441f72d2009-03-03 19:29:28 -08004363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004367 $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 Project441f72d2009-03-03 19:29:28 -08004372 ac_cv_sys_large_files=1; break
4373else
Ben Chengcc6695e2012-03-07 23:04:02 -08004374 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004375sed 's/^/| /' conftest.$ac_ext >&5
4376
Ben Chengcc6695e2012-03-07 23:04:02 -08004377
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004378fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004379
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 ac_cv_sys_large_files=unknown
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004382 break
4383done
4384fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004385{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4386$as_echo "$ac_cv_sys_large_files" >&6; }
4387case $ac_cv_sys_large_files in #(
4388 no | unknown) ;;
4389 *)
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004390cat >>confdefs.h <<_ACEOF
4391#define _LARGE_FILES $ac_cv_sys_large_files
4392_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08004393;;
4394esac
4395rm -rf conftest*
4396 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004397fi
4398
4399
4400native_ld=no
Ben Chengcc6695e2012-03-07 23:04:02 -08004401# Check whether --enable-generic was given.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004402if test "${enable_generic+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08004403 enableval=$enable_generic; if test "$enable_generic" = no; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004404 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 Chengcc6695e2012-03-07 23:04:02 -08004414 { { $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 Project441f72d2009-03-03 19:29:28 -08004416 { (exit 1); exit 1; }; }
4417 ;;
4418 esac
4419fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004420fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004421
4422
4423
Ben Chengcc6695e2012-03-07 23:04:02 -08004424 if test "$native_ld" = yes; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004425 NATIVE_LD_TRUE=
4426 NATIVE_LD_FALSE='#'
4427else
4428 NATIVE_LD_TRUE='#'
4429 NATIVE_LD_FALSE=
4430fi
4431
4432if test -z "$base_cpu"; then
4433 base_cpu=none
4434fi
4435
4436
Ben Chengcc6695e2012-03-07 23:04:02 -08004437 if false; then
4438 NEVER_TRUE=
4439 NEVER_FALSE='#'
4440else
4441 NEVER_TRUE='#'
4442 NEVER_FALSE=
4443fi
4444
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004445
4446use_mudflap=no
Ben Chengcc6695e2012-03-07 23:04:02 -08004447# Check whether --enable-mudflap was given.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004448if test "${enable_mudflap+set}" = set; then
Ben Chengcc6695e2012-03-07 23:04:02 -08004449 enableval=$enable_mudflap; if test "x$enable_mudflap" = xyes; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004450 # 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
4456cat confdefs.h >>conftest.$ac_ext
4457cat >>conftest.$ac_ext <<_ACEOF
4458/* end confdefs.h. */
4459
4460int
4461main ()
4462{
4463
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext
Ben Chengcc6695e2012-03-07 23:04:02 -08004469if { (ac_try="$ac_compile"
4470case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval 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 Project441f72d2009-03-03 19:29:28 -08004477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08004481 $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 Project441f72d2009-03-03 19:29:28 -08004486 use_mudflap=yes
4487else
Ben Chengcc6695e2012-03-07 23:04:02 -08004488 $as_echo "$as_me: failed program was:" >&5
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004489sed 's/^/| /' conftest.$ac_ext >&5
4490
Ben Chengcc6695e2012-03-07 23:04:02 -08004491 use_mudflap=fail
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004492fi
Ben Chengcc6695e2012-03-07 23:04:02 -08004493
4494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004495 CFLAGS="$old_CFLAGS"
4496fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004497fi
4498
Ben Chengcc6695e2012-03-07 23:04:02 -08004499if 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
4503See \`config.log' for more details." >&5
4504$as_echo "$as_me: error: --enable-mudflap requires a compiler which understands this option
4505See \`config.log' for more details." >&2;}
4506 { (exit 1); exit 1; }; }; }
4507fi
4508 if test "$use_mudflap" = yes; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004509 MUDFLAP_TRUE=
4510 MUDFLAP_FALSE='#'
4511else
4512 MUDFLAP_TRUE='#'
4513 MUDFLAP_FALSE=
4514fi
4515
4516
Ben Chengcc6695e2012-03-07 23:04:02 -08004517use_debugpred=0
4518# Check whether --enable-debugpred was given.
4519if test "${enable_debugpred+set}" = set; then
4520 enableval=$enable_debugpred; use_debugpred=1
4521else
4522 use_debugpred=0
4523fi
4524
4525DEBUGPRED=$use_debugpred
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004526
4527
Ben Chengcc6695e2012-03-07 23:04:02 -08004528# Check whether --enable-gprof was given.
4529if test "${enable_gprof+set}" = set; then
4530 enableval=$enable_gprof; use_gprof=yes
4531else
4532 use_gprof=no
4533fi
4534
4535if test "$use_gprof" = yes; then
4536 CFLAGS="$CFLAGS -pg"
4537 LDFLAGS="$LDFLAGS -pg"
4538fi
4539 if test "$use_gprof" = yes; then
4540 GPROF_TRUE=
4541 GPROF_FALSE='#'
4542else
4543 GPROF_TRUE='#'
4544 GPROF_FALSE=
4545fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004546
4547
Ben Chengcc6695e2012-03-07 23:04:02 -08004548# Enable gcov suport.
4549# Check whether --enable-gcov was given.
4550if test "${enable_gcov+set}" = set; then
4551 enableval=$enable_gcov; use_gcov=yes
4552else
4553 use_gcov=no
4554fi
4555
4556if test "$use_gcov" = yes; then
4557 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4558 LDFLAGS="$LDFLAGS -fprofile-arcs"
4559fi
4560 if test "$use_gcov" = yes; then
4561 GCOV_TRUE=
4562 GCOV_FALSE='#'
4563else
4564 GCOV_TRUE='#'
4565 GCOV_FALSE=
4566fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004567
4568
Ben Chengcc6695e2012-03-07 23:04:02 -08004569 if test "$use_mudflap" = yes -o "$use_gprof" = yes -o "$use_gcov" = yes; then
4570 BUILD_STATIC_TRUE=
4571 BUILD_STATIC_FALSE='#'
4572else
4573 BUILD_STATIC_TRUE='#'
4574 BUILD_STATIC_FALSE=
4575fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004576
4577
Ben Chengcc6695e2012-03-07 23:04:02 -08004578# Check whether --enable-tests-rpath was given.
4579if test "${enable_tests_rpath+set}" = set; then
4580 enableval=$enable_tests_rpath; tests_use_rpath=yes
4581else
4582 tests_use_rpath=no
4583fi
4584
4585 if test "$tests_use_rpath" = yes; then
4586 TESTS_RPATH_TRUE=
4587 TESTS_RPATH_FALSE='#'
4588else
4589 TESTS_RPATH_TRUE='#'
4590 TESTS_RPATH_FALSE=
4591fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004592
4593
Ben Chengcc6695e2012-03-07 23:04:02 -08004594LIBEBL_SUBDIR="$PACKAGE"
4595# Check whether --enable-libebl-subdir was given.
4596if test "${enable_libebl_subdir+set}" = set; then
4597 enableval=$enable_libebl_subdir; LIBEBL_SUBDIR="$enable_libebl_subdir"
4598fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004599
4600
Ben Chengcc6695e2012-03-07 23:04:02 -08004601cat >>confdefs.h <<_ACEOF
4602#define LIBEBL_SUBDIR "$LIBEBL_SUBDIR"
4603_ACEOF
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004604
4605
4606
4607
4608
4609
Ben Chengcc6695e2012-03-07 23:04:02 -08004610ac_config_files="$ac_config_files lib/Makefile"
4611
4612
4613ac_config_files="$ac_config_files libelf/Makefile"
4614
4615
4616ac_config_files="$ac_config_files libebl/Makefile"
4617
4618
4619ac_config_files="$ac_config_files libdw/Makefile"
4620
4621
4622ac_config_files="$ac_config_files libdwfl/Makefile"
4623
4624
4625ac_config_files="$ac_config_files libcpu/Makefile"
4626
4627
4628 if true; then
4629 HAVE_LIBASM_TRUE=
4630 HAVE_LIBASM_FALSE='#'
4631else
4632 HAVE_LIBASM_TRUE='#'
4633 HAVE_LIBASM_FALSE=
4634fi
4635ac_config_files="$ac_config_files libasm/Makefile"
4636
4637
4638ac_config_files="$ac_config_files backends/Makefile"
4639
4640
4641ac_config_files="$ac_config_files src/Makefile po/Makefile.in"
4642
4643
4644 if false; then
4645 STANDALONE_TRUE=
4646 STANDALONE_FALSE='#'
4647else
4648 STANDALONE_TRUE='#'
4649 STANDALONE_FALSE=
4650fi
4651ac_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.
4656USE_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.
4662if test "${enable_nls+set}" = set; then
4663 enableval=$enable_nls; USE_NLS=$enableval
4664else
4665 USE_NLS=yes
4666fi
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.
4678if 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
4688fi
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.
4692cat >conf$$.file <<_ASEOF
4693#! /bin/sh
4694exit 0
4695_ASEOF
4696chmod +x conf$$.file
4697if test -x conf$$.file >/dev/null 2>&1; then
4698 ac_executable_p="test -x"
4699else
4700 ac_executable_p="test -f"
4701fi
4702rm -f conf$$.file
4703
4704# Extract the first word of "msgfmt", so it can be a program name with args.
4705set 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; }
4708if test "${ac_cv_path_MSGFMT+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4710else
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 ;;
4734esac
4735fi
4736MSGFMT="$ac_cv_path_MSGFMT"
4737if test "$MSGFMT" != ":"; then
4738 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
4739$as_echo "$MSGFMT" >&6; }
4740else
4741 { $as_echo "$as_me:$LINENO: result: no" >&5
4742$as_echo "no" >&6; }
4743fi
4744
4745 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4746set 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; }
4749if test "${ac_cv_path_GMSGFMT+set}" = set; then
4750 $as_echo_n "(cached) " >&6
4751else
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
4758for as_dir in $PATH
4759do
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
4768done
4769done
4770IFS=$as_save_IFS
4771
4772 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4773 ;;
4774esac
4775fi
4776GMSGFMT=$ac_cv_path_GMSGFMT
4777if test -n "$GMSGFMT"; then
4778 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4779$as_echo "$GMSGFMT" >&6; }
4780else
4781 { $as_echo "$as_me:$LINENO: result: no" >&5
4782$as_echo "no" >&6; }
4783fi
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.
4801if 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
4811fi
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.
4815cat >conf$$.file <<_ASEOF
4816#! /bin/sh
4817exit 0
4818_ASEOF
4819chmod +x conf$$.file
4820if test -x conf$$.file >/dev/null 2>&1; then
4821 ac_executable_p="test -x"
4822else
4823 ac_executable_p="test -f"
4824fi
4825rm -f conf$$.file
4826
4827# Extract the first word of "xgettext", so it can be a program name with args.
4828set 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; }
4831if test "${ac_cv_path_XGETTEXT+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4833else
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 ;;
4857esac
4858fi
4859XGETTEXT="$ac_cv_path_XGETTEXT"
4860if test "$XGETTEXT" != ":"; then
4861 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4862$as_echo "$XGETTEXT" >&6; }
4863else
4864 { $as_echo "$as_me:$LINENO: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
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.
4879if 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
4889fi
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.
4893cat >conf$$.file <<_ASEOF
4894#! /bin/sh
4895exit 0
4896_ASEOF
4897chmod +x conf$$.file
4898if test -x conf$$.file >/dev/null 2>&1; then
4899 ac_executable_p="test -x"
4900else
4901 ac_executable_p="test -f"
4902fi
4903rm -f conf$$.file
4904
4905# Extract the first word of "msgmerge", so it can be a program name with args.
4906set 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; }
4909if test "${ac_cv_path_MSGMERGE+set}" = set; then
4910 $as_echo_n "(cached) " >&6
4911else
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 ;;
4934esac
4935fi
4936MSGMERGE="$ac_cv_path_MSGMERGE"
4937if test "$MSGMERGE" != ":"; then
4938 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4939$as_echo "$MSGMERGE" >&6; }
4940else
4941 { $as_echo "$as_me:$LINENO: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
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
4956ac_config_files="$ac_config_files version.h:config/version.h.in"
4957
4958
4959case $PACKAGE_VERSION in
49600.???) 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; }; } ;;
4967esac
4968
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004969cat >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 Chengcc6695e2012-03-07 23:04:02 -08004987# So, we kill variables containing newlines.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08004988# 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 Chengcc6695e2012-03-07 23:04:02 -08004990(
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 Project441f72d2009-03-03 19:29:28 -08005007 (set) 2>&1 |
Ben Chengcc6695e2012-03-07 23:04:02 -08005008 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5009 *${as_nl}ac_space=\ *)
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005010 # `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 Chengcc6695e2012-03-07 23:04:02 -08005015 ;; #(
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005016 *)
5017 # `set' quotes correctly as required by POSIX, so do not add quotes.
Ben Chengcc6695e2012-03-07 23:04:02 -08005018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005019 ;;
Ben Chengcc6695e2012-03-07 23:04:02 -08005020 esac |
5021 sort
5022) |
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005023 sed '
Ben Chengcc6695e2012-03-07 23:04:02 -08005024 /^ac_cv_env_/b end
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005025 t clear
Ben Chengcc6695e2012-03-07 23:04:02 -08005026 :clear
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5028 t end
Ben Chengcc6695e2012-03-07 23:04:02 -08005029 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5030 :end' >>confcache
5031if 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 Project441f72d2009-03-03 19:29:28 -08005036 cat confcache >$cache_file
5037 else
Ben Chengcc6695e2012-03-07 23:04:02 -08005038 { $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 Project441f72d2009-03-03 19:29:28 -08005040 fi
5041fi
5042rm -f confcache
5043
5044test "x$prefix" = xNONE && prefix=$ac_default_prefix
5045# Let make expand exec_prefix.
5046test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5047
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005048DEFS=-DHAVE_CONFIG_H
5049
5050ac_libobjs=
5051ac_ltlibobjs=
5052for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5053 # 1. Remove the extension, and $U if already installed.
Ben Chengcc6695e2012-03-07 23:04:02 -08005054 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 Project441f72d2009-03-03 19:29:28 -08005060done
5061LIBOBJS=$ac_libobjs
5062
5063LTLIBOBJS=$ac_ltlibobjs
5064
5065
Ben Chengcc6695e2012-03-07 23:04:02 -08005066if 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 Project441f72d2009-03-03 19:29:28 -08005068Usually this means the macro was only invoked conditionally." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08005069$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5070Usually this means the macro was only invoked conditionally." >&2;}
5071 { (exit 1); exit 1; }; }
5072fi
5073if test -z "${USE_TLS_TRUE}" && test -z "${USE_TLS_FALSE}"; then
5074 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_TLS\" was never defined.
5075Usually this means the macro was only invoked conditionally." >&5
5076$as_echo "$as_me: error: conditional \"USE_TLS\" was never defined.
5077Usually this means the macro was only invoked conditionally." >&2;}
5078 { (exit 1); exit 1; }; }
5079fi
5080if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5081 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5082Usually this means the macro was only invoked conditionally." >&5
5083$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005084Usually this means the macro was only invoked conditionally." >&2;}
5085 { (exit 1); exit 1; }; }
5086fi
5087if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08005088 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005089Usually this means the macro was only invoked conditionally." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08005090$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005091Usually this means the macro was only invoked conditionally." >&2;}
5092 { (exit 1); exit 1; }; }
5093fi
5094if test -z "${NATIVE_LD_TRUE}" && test -z "${NATIVE_LD_FALSE}"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08005095 { { $as_echo "$as_me:$LINENO: error: conditional \"NATIVE_LD\" was never defined.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005096Usually this means the macro was only invoked conditionally." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08005097$as_echo "$as_me: error: conditional \"NATIVE_LD\" was never defined.
5098Usually this means the macro was only invoked conditionally." >&2;}
5099 { (exit 1); exit 1; }; }
5100fi
5101if test -z "${NEVER_TRUE}" && test -z "${NEVER_FALSE}"; then
5102 { { $as_echo "$as_me:$LINENO: error: conditional \"NEVER\" was never defined.
5103Usually this means the macro was only invoked conditionally." >&5
5104$as_echo "$as_me: error: conditional \"NEVER\" was never defined.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005105Usually this means the macro was only invoked conditionally." >&2;}
5106 { (exit 1); exit 1; }; }
5107fi
5108if test -z "${MUDFLAP_TRUE}" && test -z "${MUDFLAP_FALSE}"; then
Ben Chengcc6695e2012-03-07 23:04:02 -08005109 { { $as_echo "$as_me:$LINENO: error: conditional \"MUDFLAP\" was never defined.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005110Usually this means the macro was only invoked conditionally." >&5
Ben Chengcc6695e2012-03-07 23:04:02 -08005111$as_echo "$as_me: error: conditional \"MUDFLAP\" was never defined.
5112Usually this means the macro was only invoked conditionally." >&2;}
5113 { (exit 1); exit 1; }; }
5114fi
5115if test -z "${GPROF_TRUE}" && test -z "${GPROF_FALSE}"; then
5116 { { $as_echo "$as_me:$LINENO: error: conditional \"GPROF\" was never defined.
5117Usually this means the macro was only invoked conditionally." >&5
5118$as_echo "$as_me: error: conditional \"GPROF\" was never defined.
5119Usually this means the macro was only invoked conditionally." >&2;}
5120 { (exit 1); exit 1; }; }
5121fi
5122if test -z "${GCOV_TRUE}" && test -z "${GCOV_FALSE}"; then
5123 { { $as_echo "$as_me:$LINENO: error: conditional \"GCOV\" was never defined.
5124Usually this means the macro was only invoked conditionally." >&5
5125$as_echo "$as_me: error: conditional \"GCOV\" was never defined.
5126Usually this means the macro was only invoked conditionally." >&2;}
5127 { (exit 1); exit 1; }; }
5128fi
5129if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
5130 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_STATIC\" was never defined.
5131Usually this means the macro was only invoked conditionally." >&5
5132$as_echo "$as_me: error: conditional \"BUILD_STATIC\" was never defined.
5133Usually this means the macro was only invoked conditionally." >&2;}
5134 { (exit 1); exit 1; }; }
5135fi
5136if test -z "${TESTS_RPATH_TRUE}" && test -z "${TESTS_RPATH_FALSE}"; then
5137 { { $as_echo "$as_me:$LINENO: error: conditional \"TESTS_RPATH\" was never defined.
5138Usually this means the macro was only invoked conditionally." >&5
5139$as_echo "$as_me: error: conditional \"TESTS_RPATH\" was never defined.
5140Usually this means the macro was only invoked conditionally." >&2;}
5141 { (exit 1); exit 1; }; }
5142fi
5143if test -z "${HAVE_LIBASM_TRUE}" && test -z "${HAVE_LIBASM_FALSE}"; then
5144 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBASM\" was never defined.
5145Usually this means the macro was only invoked conditionally." >&5
5146$as_echo "$as_me: error: conditional \"HAVE_LIBASM\" was never defined.
5147Usually this means the macro was only invoked conditionally." >&2;}
5148 { (exit 1); exit 1; }; }
5149fi
5150if test -z "${STANDALONE_TRUE}" && test -z "${STANDALONE_FALSE}"; then
5151 { { $as_echo "$as_me:$LINENO: error: conditional \"STANDALONE\" was never defined.
5152Usually this means the macro was only invoked conditionally." >&5
5153$as_echo "$as_me: error: conditional \"STANDALONE\" was never defined.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005154Usually this means the macro was only invoked conditionally." >&2;}
5155 { (exit 1); exit 1; }; }
5156fi
5157
5158: ${CONFIG_STATUS=./config.status}
Ben Chengcc6695e2012-03-07 23:04:02 -08005159ac_write_fail=0
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005160ac_clean_files_save=$ac_clean_files
5161ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Ben Chengcc6695e2012-03-07 23:04:02 -08005162{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5163$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5164cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005165#! $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
5171debug=false
5172ac_cs_recheck=false
5173ac_cs_silent=false
5174SHELL=\${CONFIG_SHELL-$SHELL}
5175_ACEOF
5176
Ben Chengcc6695e2012-03-07 23:04:02 -08005177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005178## --------------------- ##
5179## M4sh Initialization. ##
5180## --------------------- ##
5181
Ben Chengcc6695e2012-03-07 23:04:02 -08005182# Be more Bourne compatible
5183DUALCASE=1; export DUALCASE # for MKS sh
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5185 emulate sh
5186 NULLCMD=:
Ben Chengcc6695e2012-03-07 23:04:02 -08005187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005188 # is contrary to our usage. Disable this feature.
5189 alias -g '${1+"$@"}'='"$@"'
Ben Chengcc6695e2012-03-07 23:04:02 -08005190 setopt NO_GLOB_SUBST
5191else
5192 case `(set -o) 2>/dev/null` in
5193 *posix*) set -o posix ;;
5194esac
5195
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005196fi
Ben Chengcc6695e2012-03-07 23:04:02 -08005197
5198
5199
5200
5201# PATH needs CR
5202# Avoid depending upon Character Ranges.
5203as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5204as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5205as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5206as_cr_digits='0123456789'
5207as_cr_alnum=$as_cr_Letters$as_cr_digits
5208
5209as_nl='
5210'
5211export as_nl
5212# Printing a long string crashes Solaris 7 /usr/bin/printf.
5213as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5214as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5215as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5216if (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'
5219else
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'
5239fi
5240
5241# The user is always right.
5242if 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 }
5248fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005249
5250# Support unset when possible.
5251if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5252 as_unset=unset
5253else
5254 as_unset=false
5255fi
5256
5257
Ben Chengcc6695e2012-03-07 23:04:02 -08005258# 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.)
5263IFS=" "" $as_nl"
5264
5265# Find who we are. Look in the path if we contain no directory separator.
5266case $0 in
5267 *[\\/]* ) as_myself=$0 ;;
5268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5274done
5275IFS=$as_save_IFS
5276
5277 ;;
5278esac
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.
5281if test "x$as_myself" = x; then
5282 as_myself=$0
5283fi
5284if 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; }
5287fi
5288
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005289# Work around bugs in pre-3.0 UWIN ksh.
Ben Chengcc6695e2012-03-07 23:04:02 -08005290for as_var in ENV MAIL MAILPATH
5291do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5292done
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005293PS1='$ '
5294PS2='> '
5295PS4='+ '
5296
5297# NLS nuisances.
Ben Chengcc6695e2012-03-07 23:04:02 -08005298LC_ALL=C
5299export LC_ALL
5300LANGUAGE=C
5301export LANGUAGE
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005302
5303# Required to use basename.
Ben Chengcc6695e2012-03-07 23:04:02 -08005304if expr a : '\(a\)' >/dev/null 2>&1 &&
5305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005306 as_expr=expr
5307else
5308 as_expr=false
5309fi
5310
Ben Chengcc6695e2012-03-07 23:04:02 -08005311if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005312 as_basename=basename
5313else
5314 as_basename=false
5315fi
5316
5317
5318# Name of the executable.
Ben Chengcc6695e2012-03-07 23:04:02 -08005319as_me=`$as_basename -- "$0" ||
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005320$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5321 X"$0" : 'X\(//\)$' \| \
Ben Chengcc6695e2012-03-07 23:04:02 -08005322 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 Project441f72d2009-03-03 19:29:28 -08005337
Ben Chengcc6695e2012-03-07 23:04:02 -08005338# CDPATH.
5339$as_unset CDPATH
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005340
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005341
5342
5343 as_lineno_1=$LINENO
5344 as_lineno_2=$LINENO
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005345 test "x$as_lineno_1" != "x$as_lineno_2" &&
Ben Chengcc6695e2012-03-07 23:04:02 -08005346 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005347
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 Chengcc6695e2012-03-07 23:04:02 -08005350 # 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 Project441f72d2009-03-03 19:29:28 -08005355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Ben Chengcc6695e2012-03-07 23:04:02 -08005356 # 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 Project441f72d2009-03-03 19:29:28 -08005362 sed '
Ben Chengcc6695e2012-03-07 23:04:02 -08005363 s/[$]LINENO.*/&-/
5364 t lineno
5365 b
5366 :lineno
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005367 N
Ben Chengcc6695e2012-03-07 23:04:02 -08005368 :loop
5369 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005370 t loop
Ben Chengcc6695e2012-03-07 23:04:02 -08005371 s/-\n.*//
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005372 ' >$as_me.lineno &&
Ben Chengcc6695e2012-03-07 23:04:02 -08005373 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 Project441f72d2009-03-03 19:29:28 -08005375 { (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 Chengcc6695e2012-03-07 23:04:02 -08005379 # original and so on. Autoconf is especially sensitive to this).
5380 . "./$as_me.lineno"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005381 # Exit status is that of the last command.
5382 exit
5383}
5384
5385
Ben Chengcc6695e2012-03-07 23:04:02 -08005386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5387 as_dirname=dirname
5388else
5389 as_dirname=false
5390fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005391
Ben Chengcc6695e2012-03-07 23:04:02 -08005392ECHO_C= ECHO_N= ECHO_T=
5393case `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';;
5401esac
5402if expr a : '\(a\)' >/dev/null 2>&1 &&
5403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005404 as_expr=expr
5405else
5406 as_expr=false
5407fi
5408
5409rm -f conf$$ conf$$.exe conf$$.file
Ben Chengcc6695e2012-03-07 23:04:02 -08005410if test -d conf$$.dir; then
5411 rm -f conf$$.dir/conf$$.file
5412else
5413 rm -f conf$$.dir
5414 mkdir conf$$.dir 2>/dev/null
5415fi
5416if (echo >conf$$.file) 2>/dev/null; then
5417 if ln -s conf$$.file conf$$ 2>/dev/null; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005418 as_ln_s='ln -s'
Ben Chengcc6695e2012-03-07 23:04:02 -08005419 # ... 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 Project441f72d2009-03-03 19:29:28 -08005429 fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005430else
5431 as_ln_s='cp -p'
5432fi
Ben Chengcc6695e2012-03-07 23:04:02 -08005433rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5434rmdir conf$$.dir 2>/dev/null
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005435
5436if mkdir -p . 2>/dev/null; then
5437 as_mkdir_p=:
5438else
5439 test -d ./-p && rmdir ./-p
5440 as_mkdir_p=false
5441fi
5442
Ben Chengcc6695e2012-03-07 23:04:02 -08005443if test -x / >/dev/null 2>&1; then
5444 as_test_x='test -x'
5445else
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 '
5463fi
5464as_executable_p=$as_test_x
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005465
5466# Sed expression to map a string onto a valid CPP name.
5467as_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.
5470as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5471
5472
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005473exec 6>&1
5474
Ben Chengcc6695e2012-03-07 23:04:02 -08005475# Save the log message, to keep $[0] and so on meaningful, and to
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005476# report actual input values of CONFIG_FILES etc. instead of their
Ben Chengcc6695e2012-03-07 23:04:02 -08005477# values after options handling.
5478ac_log="
5479This file was extended by Red Hat elfutils $as_me 0.138, which was
5480generated by GNU Autoconf 2.63. Invocation command line was
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005481
5482 CONFIG_FILES = $CONFIG_FILES
5483 CONFIG_HEADERS = $CONFIG_HEADERS
5484 CONFIG_LINKS = $CONFIG_LINKS
5485 CONFIG_COMMANDS = $CONFIG_COMMANDS
5486 $ $0 $@
5487
Ben Chengcc6695e2012-03-07 23:04:02 -08005488on `(hostname || uname -n) 2>/dev/null | sed 1q`
5489"
5490
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005491_ACEOF
5492
Ben Chengcc6695e2012-03-07 23:04:02 -08005493case $ac_config_files in *"
5494"*) set x $ac_config_files; shift; ac_config_files=$*;;
5495esac
5496
5497case $ac_config_headers in *"
5498"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5499esac
5500
5501
5502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005503# Files that config.status was made for.
Ben Chengcc6695e2012-03-07 23:04:02 -08005504config_files="$ac_config_files"
5505config_headers="$ac_config_headers"
5506config_commands="$ac_config_commands"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005507
Ben Chengcc6695e2012-03-07 23:04:02 -08005508_ACEOF
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005509
Ben Chengcc6695e2012-03-07 23:04:02 -08005510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005511ac_cs_usage="\
5512\`$as_me' instantiates files from templates according to the
5513current configuration.
5514
Ben Chengcc6695e2012-03-07 23:04:02 -08005515Usage: $0 [OPTION]... [FILE]...
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005516
5517 -h, --help print this help, then exit
Ben Chengcc6695e2012-03-07 23:04:02 -08005518 -V, --version print version number and configuration settings, then exit
5519 -q, --quiet, --silent
5520 do not print progress messages
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005521 -d, --debug don't remove temporary files
5522 --recheck update $as_me by reconfiguring in the same conditions
Ben Chengcc6695e2012-03-07 23:04:02 -08005523 --file=FILE[:TEMPLATE]
5524 instantiate the configuration file FILE
5525 --header=FILE[:TEMPLATE]
5526 instantiate the configuration header FILE
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005527
5528Configuration files:
5529$config_files
5530
5531Configuration headers:
5532$config_headers
5533
5534Configuration commands:
5535$config_commands
5536
5537Report bugs to <bug-autoconf@gnu.org>."
Ben Chengcc6695e2012-03-07 23:04:02 -08005538
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005539_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08005540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005541ac_cs_version="\\
Ben Chengcc6695e2012-03-07 23:04:02 -08005542Red Hat elfutils config.status 0.138
5543configured by $0, generated by GNU Autoconf 2.63,
5544 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005545
Ben Chengcc6695e2012-03-07 23:04:02 -08005546Copyright (C) 2008 Free Software Foundation, Inc.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005547This config.status script is free software; the Free Software Foundation
5548gives unlimited permission to copy, distribute and modify it."
Ben Chengcc6695e2012-03-07 23:04:02 -08005549
5550ac_pwd='$ac_pwd'
5551srcdir='$srcdir'
5552INSTALL='$INSTALL'
5553MKDIR_P='$MKDIR_P'
5554AWK='$AWK'
5555test -n "\$AWK" || AWK=awk
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005556_ACEOF
5557
Ben Chengcc6695e2012-03-07 23:04:02 -08005558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5559# The default lists apply if the user does not specify any file.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005560ac_need_defaults=:
5561while test $# != 0
5562do
5563 case $1 in
5564 --*=*)
Ben Chengcc6695e2012-03-07 23:04:02 -08005565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005567 ac_shift=:
5568 ;;
Ben Chengcc6695e2012-03-07 23:04:02 -08005569 *)
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005570 ac_option=$1
5571 ac_optarg=$2
5572 ac_shift=shift
5573 ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005574 esac
5575
5576 case $ac_option in
5577 # Handling of the options.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5579 ac_cs_recheck=: ;;
Ben Chengcc6695e2012-03-07 23:04:02 -08005580 --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 Project441f72d2009-03-03 19:29:28 -08005583 debug=: ;;
5584 --file | --fil | --fi | --f )
5585 $ac_shift
Ben Chengcc6695e2012-03-07 23:04:02 -08005586 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 Project441f72d2009-03-03 19:29:28 -08005590 ac_need_defaults=false;;
5591 --header | --heade | --head | --hea )
5592 $ac_shift
Ben Chengcc6695e2012-03-07 23:04:02 -08005593 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 Project441f72d2009-03-03 19:29:28 -08005597 ac_need_defaults=false;;
Ben Chengcc6695e2012-03-07 23:04:02 -08005598 --he | --h)
5599 # Conflict between --help and --header
5600 { $as_echo "$as_me: error: ambiguous option: $1
5601Try \`$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 Project441f72d2009-03-03 19:29:28 -08005605 -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 Chengcc6695e2012-03-07 23:04:02 -08005610 -*) { $as_echo "$as_me: error: unrecognized option: $1
5611Try \`$0 --help' for more information." >&2
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005612 { (exit 1); exit 1; }; } ;;
5613
Ben Chengcc6695e2012-03-07 23:04:02 -08005614 *) ac_config_targets="$ac_config_targets $1"
5615 ac_need_defaults=false ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005616
5617 esac
5618 shift
5619done
5620
5621ac_configure_extra_args=
5622
5623if $ac_cs_silent; then
5624 exec 6>/dev/null
5625 ac_configure_extra_args="$ac_configure_extra_args --silent"
5626fi
5627
5628_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08005629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005630if \$ac_cs_recheck; then
Ben Chengcc6695e2012-03-07 23:04:02 -08005631 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 Project441f72d2009-03-03 19:29:28 -08005637fi
5638
5639_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08005640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5641exec 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 Project441f72d2009-03-03 19:29:28 -08005649
Ben Chengcc6695e2012-03-07 23:04:02 -08005650_ACEOF
5651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005652#
Ben Chengcc6695e2012-03-07 23:04:02 -08005653# INIT-COMMANDS
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005654#
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005655AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Ben Chengcc6695e2012-03-07 23:04:02 -08005656# 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 Project441f72d2009-03-03 19:29:28 -08005660 # Capture the value of LINGUAS because we need it to compute CATALOGS.
5661 LINGUAS="${LINGUAS-%UNSET%}"
5662
5663
5664_ACEOF
5665
Ben Chengcc6695e2012-03-07 23:04:02 -08005666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005667
Ben Chengcc6695e2012-03-07 23:04:02 -08005668# Handling of arguments.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005669for ac_config_target in $ac_config_targets
5670do
Ben Chengcc6695e2012-03-07 23:04:02 -08005671 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 Project441f72d2009-03-03 19:29:28 -08005694 { (exit 1); exit 1; }; };;
5695 esac
5696done
5697
Ben Chengcc6695e2012-03-07 23:04:02 -08005698
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005699# 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.
5703if $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
5707fi
5708
5709# Have a temporary directory for convenience. Make it in the build tree
Ben Chengcc6695e2012-03-07 23:04:02 -08005710# simply because there is no reason against having it here, and in addition,
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005711# creating and moving files from /tmp can sometimes cause problems.
Ben Chengcc6695e2012-03-07 23:04:02 -08005712# 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 Project441f72d2009-03-03 19:29:28 -08005715$debug ||
5716{
Ben Chengcc6695e2012-03-07 23:04:02 -08005717 tmp=
5718 trap 'exit_status=$?
5719 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5720' 0
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005721 trap '{ (exit 1); exit 1; }' 1 2 13 15
5722}
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005723# Create a (secure) tmp directory for tmp files.
5724
5725{
Ben Chengcc6695e2012-03-07 23:04:02 -08005726 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005727 test -n "$tmp" && test -d "$tmp"
5728} ||
5729{
Ben Chengcc6695e2012-03-07 23:04:02 -08005730 tmp=./conf$$-$RANDOM
5731 (umask 077 && mkdir "$tmp")
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005732} ||
5733{
Ben Chengcc6695e2012-03-07 23:04:02 -08005734 $as_echo "$as_me: cannot create a temporary directory in ." >&2
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005735 { (exit 1); exit 1; }
5736}
5737
Ben Chengcc6695e2012-03-07 23:04:02 -08005738# 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'.
5741if test -n "$CONFIG_FILES"; then
5742
5743
5744ac_cr=' '
5745ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5746if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5747 ac_cs_awk_cr='\\r'
5748else
5749 ac_cs_awk_cr=$ac_cr
5750fi
5751
5752echo 'BEGIN {' >"$tmp/subs1.awk" &&
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005753_ACEOF
5754
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005755
Ben Chengcc6695e2012-03-07 23:04:02 -08005756{
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; }; }
5764ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5765ac_delim='%!_!# '
5766for 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 Project441f72d2009-03-03 19:29:28 -08005771
Ben Chengcc6695e2012-03-07 23:04:02 -08005772 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 Project441f72d2009-03-03 19:29:28 -08005781 fi
Ben Chengcc6695e2012-03-07 23:04:02 -08005782done
5783rm -f conf$$subs.sh
5784
5785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5786cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5787_ACEOF
5788sed -n '
5789h
5790s/^/S["/; s/!.*/"]=/
5791p
5792g
5793s/^[^!]*!//
5794:repl
5795t repl
5796s/'"$ac_delim"'$//
5797t delim
5798:nl
5799h
5800s/\(.\{148\}\).*/\1/
5801t more1
5802s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5803p
5804n
5805b repl
5806:more1
5807s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5808p
5809g
5810s/.\{148\}//
5811t nl
5812:delim
5813h
5814s/\(.\{148\}\).*/\1/
5815t more2
5816s/["\\]/\\&/g; s/^/"/; s/$/"/
5817p
5818b
5819:more2
5820s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5821p
5822g
5823s/.\{148\}//
5824t delim
5825' <conf$$subs.awk | sed '
5826/^[^""]/{
5827 N
5828 s/\n//
5829}
5830' >>$CONFIG_STATUS || ac_write_fail=1
5831rm -f conf$$subs.awk
5832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5833_ACAWK
5834cat >>"\$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
5861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5862if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5863 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5864else
5865 cat
5866fi < "$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).
5876if test "x$srcdir" = x.; then
5877 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5878s/:*\$(srcdir):*/:/
5879s/:*\${srcdir}:*/:/
5880s/:*@srcdir@:*/:/
5881s/^\([^=]*=[ ]*\):*/\1/
5882s/:*$//
5883s/^[^=]*=[ ]*$//
5884}'
5885fi
5886
5887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005888fi # test -n "$CONFIG_FILES"
5889
Ben Chengcc6695e2012-03-07 23:04:02 -08005890# 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'.
5893if test -n "$CONFIG_HEADERS"; then
5894cat >"$tmp/defines.awk" <<\_ACAWK ||
5895BEGIN {
The Android Open Source Project441f72d2009-03-03 19:29:28 -08005896_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08005897
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.
5904ac_delim='%!_!# '
5905for 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
5916done
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
5922ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5923sed -n '
5924s/.\{148\}/&'"$ac_delim"'/g
5925t rset
5926:rset
5927s/^[ ]*#[ ]*define[ ][ ]*/ /
5928t def
5929d
5930:def
5931s/\\$//
5932t bsnl
5933s/["\\]/\\&/g
5934s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5935D["\1"]=" \3"/p
5936s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5937d
5938:bsnl
5939s/["\\]/\\&/g
5940s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5941D["\1"]=" \3\\\\\\n"\\/p
5942t cont
5943s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5944t cont
5945d
5946:cont
5947n
5948s/.\{148\}/&'"$ac_delim"'/g
5949t clear
5950:clear
5951s/\\$//
5952t bsnlc
5953s/["\\]/\\&/g; s/^/"/; s/$/"/p
5954d
5955:bsnlc
5956s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5957b cont
5958' <confdefs.h | sed '
5959s/'"$ac_delim"'/"\\\
5960"/g' >>$CONFIG_STATUS || ac_write_fail=1
5961
5962cat >>$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
5996cat >>$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; }; }
6000fi # test -n "$CONFIG_HEADERS"
6001
6002
6003eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6004shift
6005for ac_tag
6006do
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 Project441f72d2009-03-03 19:29:28 -08006076 esac
6077
Ben Chengcc6695e2012-03-07 23:04:02 -08006078 ac_dir=`$as_dirname -- "$ac_file" ||
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006079$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6080 X"$ac_file" : 'X\(//\)[^/]' \| \
6081 X"$ac_file" : 'X\(//\)$' \| \
Ben Chengcc6695e2012-03-07 23:04:02 -08006082 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 Project441f72d2009-03-03 19:29:28 -08006106 as_dirs=
Ben Chengcc6695e2012-03-07 23:04:02 -08006107 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 Project441f72d2009-03-03 19:29:28 -08006114$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6115 X"$as_dir" : 'X\(//\)[^/]' \| \
6116 X"$as_dir" : 'X\(//\)$' \| \
Ben Chengcc6695e2012-03-07 23:04:02 -08006117 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 Project441f72d2009-03-03 19:29:28 -08006137 done
Ben Chengcc6695e2012-03-07 23:04:02 -08006138 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 Project441f72d2009-03-03 19:29:28 -08006141 { (exit 1); exit 1; }; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006142 ac_builddir=.
6143
Ben Chengcc6695e2012-03-07 23:04:02 -08006144case "$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 ;;
6154esac
6155ac_abs_top_builddir=$ac_pwd
6156ac_abs_builddir=$ac_pwd$ac_dir_suffix
6157# for backward compatibility:
6158ac_top_builddir=$ac_top_build_prefix
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006159
6160case $srcdir in
Ben Chengcc6695e2012-03-07 23:04:02 -08006161 .) # We are building in place.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006162 ac_srcdir=.
Ben Chengcc6695e2012-03-07 23:04:02 -08006163 ac_top_srcdir=$ac_top_builddir_sub
6164 ac_abs_top_srcdir=$ac_pwd ;;
6165 [\\/]* | ?:[\\/]* ) # Absolute name.
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006166 ac_srcdir=$srcdir$ac_dir_suffix;
Ben Chengcc6695e2012-03-07 23:04:02 -08006167 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 Project441f72d2009-03-03 19:29:28 -08006173esac
Ben Chengcc6695e2012-03-07 23:04:02 -08006174ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006175
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006176
Ben Chengcc6695e2012-03-07 23:04:02 -08006177 case $ac_mode in
6178 :F)
6179 #
6180 # CONFIG_FILE
6181 #
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006182
6183 case $INSTALL in
6184 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Ben Chengcc6695e2012-03-07 23:04:02 -08006185 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006186 esac
Ben Chengcc6695e2012-03-07 23:04:02 -08006187 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 Project441f72d2009-03-03 19:29:28 -08006192_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08006193
6194cat >>$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.
6197ac_datarootdir_hack=; ac_datarootdir_seen=
6198
6199ac_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'
6210case `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
6216cat >>$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' ;;
6224esac
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?
6230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6231ac_sed_extra="$ac_vpsub
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006232$extrasub
6233_ACEOF
Ben Chengcc6695e2012-03-07 23:04:02 -08006234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006235:t
6236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Ben Chengcc6695e2012-03-07 23:04:02 -08006237s|@configure_input@|$ac_sed_conf_input|;t t
6238s&@top_builddir@&$ac_top_builddir_sub&;t t
6239s&@top_build_prefix@&$ac_top_build_prefix&;t t
6240s&@srcdir@&$ac_srcdir&;t t
6241s&@abs_srcdir@&$ac_abs_srcdir&;t t
6242s&@top_srcdir@&$ac_top_srcdir&;t t
6243s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6244s&@builddir@&$ac_builddir&;t t
6245s&@abs_builddir@&$ac_abs_builddir&;t t
6246s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6247s&@INSTALL@&$ac_INSTALL&;t t
6248s&@MKDIR_P@&$ac_MKDIR_P&;t t
6249$ac_datarootdir_hack
6250"
6251eval 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 Project441f72d2009-03-03 19:29:28 -08006255
Ben Chengcc6695e2012-03-07 23:04:02 -08006256test -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'
6260which 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'
6262which seems to be undefined. Please make sure it is defined." >&2;}
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006263
Ben Chengcc6695e2012-03-07 23:04:02 -08006264 rm -f "$tmp/stdin"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006265 case $ac_file in
Ben Chengcc6695e2012-03-07 23:04:02 -08006266 -) 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 Project441f72d2009-03-03 19:29:28 -08006271 { (exit 1); exit 1; }; }
Ben Chengcc6695e2012-03-07 23:04:02 -08006272 ;;
6273 :H)
6274 #
6275 # CONFIG_HEADER
6276 #
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006277 if test x"$ac_file" != x-; then
Ben Chengcc6695e2012-03-07 23:04:02 -08006278 {
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 Project441f72d2009-03-03 19:29:28 -08006288 else
Ben Chengcc6695e2012-03-07 23:04:02 -08006289 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 Project441f72d2009-03-03 19:29:28 -08006294 fi
6295 else
Ben Chengcc6695e2012-03-07 23:04:02 -08006296 $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 Project441f72d2009-03-03 19:29:28 -08006301 fi
Ben Chengcc6695e2012-03-07 23:04:02 -08006302# Compute "$ac_file"'s index in $config_headers.
6303_am_arg="$ac_file"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006304_am_stamp_count=1
6305for _am_header in $config_headers :; do
6306 case $_am_header in
Ben Chengcc6695e2012-03-07 23:04:02 -08006307 $_am_arg | $_am_arg:* )
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006308 break ;;
6309 * )
6310 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6311 esac
6312done
Ben Chengcc6695e2012-03-07 23:04:02 -08006313echo "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 Project441f72d2009-03-03 19:29:28 -08006337
Ben Chengcc6695e2012-03-07 23:04:02 -08006338 :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 Project441f72d2009-03-03 19:29:28 -08006342
6343
Ben Chengcc6695e2012-03-07 23:04:02 -08006344 case $ac_file$ac_mode in
6345 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006346 # 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 Chengcc6695e2012-03-07 23:04:02 -08006353 # 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 Project441f72d2009-03-03 19:29:28 -08006357$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6358 X"$mf" : 'X\(//\)[^/]' \| \
6359 X"$mf" : 'X\(//\)$' \| \
Ben Chengcc6695e2012-03-07 23:04:02 -08006360 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 Project441f72d2009-03-03 19:29:28 -08006379 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 Chengcc6695e2012-03-07 23:04:02 -08006400 fdir=`$as_dirname -- "$file" ||
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006401$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6402 X"$file" : 'X\(//\)[^/]' \| \
6403 X"$file" : 'X\(//\)$' \| \
Ben Chengcc6695e2012-03-07 23:04:02 -08006404 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 Project441f72d2009-03-03 19:29:28 -08006428 as_dirs=
Ben Chengcc6695e2012-03-07 23:04:02 -08006429 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 Project441f72d2009-03-03 19:29:28 -08006436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6437 X"$as_dir" : 'X\(//\)[^/]' \| \
6438 X"$as_dir" : 'X\(//\)$' \| \
Ben Chengcc6695e2012-03-07 23:04:02 -08006439 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 Project441f72d2009-03-03 19:29:28 -08006459 done
Ben Chengcc6695e2012-03-07 23:04:02 -08006460 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 Project441f72d2009-03-03 19:29:28 -08006463 { (exit 1); exit 1; }; }; }
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006464 # echo "creating $dirpart/$file"
6465 echo '# dummy' > "$dirpart/$file"
6466 done
6467done
6468 ;;
Ben Chengcc6695e2012-03-07 23:04:02 -08006469 "po-directories":C)
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006470 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 Chengcc6695e2012-03-07 23:04:02 -08006489 # 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 Project441f72d2009-03-03 19:29:28 -08006492 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 Chengcc6695e2012-03-07 23:04:02 -08006496 POMAKEFILEDEPS="POTFILES.in"
6497 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006498 # 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 Chengcc6695e2012-03-07 23:04:02 -08006502 if test -n "$OBSOLETE_ALL_LINGUAS"; then
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006503 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 Chengcc6695e2012-03-07 23:04:02 -08006505 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 Project441f72d2009-03-03 19:29:28 -08006507 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Ben Chengcc6695e2012-03-07 23:04:02 -08006508 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 Project441f72d2009-03-03 19:29:28 -08006513 fi
Ben Chengcc6695e2012-03-07 23:04:02 -08006514 # 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 Project441f72d2009-03-03 19:29:28 -08006522 case "$ac_given_srcdir" in
6523 .) srcdirpre= ;;
6524 *) srcdirpre='$(srcdir)/' ;;
6525 esac
6526 POFILES=
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006527 UPDATEPOFILES=
6528 DUMMYPOFILES=
Ben Chengcc6695e2012-03-07 23:04:02 -08006529 GMOFILES=
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006530 for lang in $ALL_LINGUAS; do
6531 POFILES="$POFILES $srcdirpre$lang.po"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006532 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6533 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Ben Chengcc6695e2012-03-07 23:04:02 -08006534 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006535 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 Chengcc6695e2012-03-07 23:04:02 -08006569 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 Project441f72d2009-03-03 19:29:28 -08006570 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 Project441f72d2009-03-03 19:29:28 -08006582
Ben Chengcc6695e2012-03-07 23:04:02 -08006583 esac
6584done # for ac_tag
6585
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006586
6587{ (exit 0); exit 0; }
6588_ACEOF
6589chmod +x $CONFIG_STATUS
6590ac_clean_files=$ac_clean_files_save
6591
Ben Chengcc6695e2012-03-07 23:04:02 -08006592test $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 Project441f72d2009-03-03 19:29:28 -08006597
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.
6606if 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; }
6617fi
Ben Chengcc6695e2012-03-07 23:04:02 -08006618if 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;}
6621fi
The Android Open Source Project441f72d2009-03-03 19:29:28 -08006622