blob: 27f6bf56cf71809c04111c51935ade98bfe559d9 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003# Generated by GNU Autoconf 2.65 for breakpad 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
thestig@chromium.org43e6db72010-11-08 19:49:41 +00005# Report bugs to <google-breakpad-dev@googlegroups.com>.
brynercb91a2f2006-08-25 21:14:45 +00006#
jimblandydc4029a2010-02-02 17:39:51 +00007#
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
jimblandydc4029a2010-02-02 17:39:51 +000011#
jimblandy92b1f832009-12-23 22:23:49 +000012#
brynercb91a2f2006-08-25 21:14:45 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000018
mmentovaiaf3c43f2007-05-17 18:34:37 +000019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000022 emulate sh
23 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000027 setopt NO_GLOB_SUBST
28else
jimblandy92b1f832009-12-23 22:23:49 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000034esac
brynercb91a2f2006-08-25 21:14:45 +000035fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000036
37
jimblandy92b1f832009-12-23 22:23:49 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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
brynercb91a2f2006-08-25 21:14:45 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000078 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 }
mmentovai8c2a4de2006-09-20 16:20:15 +000083fi
brynercb91a2f2006-08-25 21:14:45 +000084
mmentovai8c2a4de2006-09-20 16:20:15 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000094case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000103IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000104
mmentovai8c2a4de2006-09-20 16:20:15 +0000105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000115fi
116
jimblandy92b1f832009-12-23 22:23:49 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000134
jimblandy92b1f832009-12-23 22:23:49 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000171test x\$exitcode = x0 || exit 1"
jimblandy92b1f832009-12-23 22:23:49 +0000172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
jimblandy92b1f832009-12-23 22:23:49 +0000224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000234$0: google-breakpad-dev@googlegroups.com about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
jimblandy92b1f832009-12-23 22:23:49 +0000238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +0000323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +0000364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000366# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +0000367as_fn_error ()
368{
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
jimblandy92b1f832009-12-23 22:23:49 +0000373 fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000374 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +0000375 as_fn_exit $as_status
376} # as_fn_error
377
mmentovai8c2a4de2006-09-20 16:20:15 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
jimblandy92b1f832009-12-23 22:23:49 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000396
mmentovai8c2a4de2006-09-20 16:20:15 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000401$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
jimblandy92b1f832009-12-23 22:23:49 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000422
423
jimblandy92b1f832009-12-23 22:23:49 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000433 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000438 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000441 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000442 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000443 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000444 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
brynercb91a2f2006-08-25 21:14:45 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000451 # Exit status is that of the last command.
452 exit
453}
454
mmentovai8c2a4de2006-09-20 16:20:15 +0000455ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000456case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000457-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000458 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000463 esac;;
464*)
465 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000466esac
467
brynercb91a2f2006-08-25 21:14:45 +0000468rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000473 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000474fi
jimblandy92b1f832009-12-23 22:23:49 +0000475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000481 # In both cases, we have to default to `cp -p'.
jimblandy92b1f832009-12-23 22:23:49 +0000482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000483 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +0000484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000487 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +0000488 fi
brynercb91a2f2006-08-25 21:14:45 +0000489else
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000490 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +0000491fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000494
495if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +0000524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
jimblandydc4029a2010-02-02 17:39:51 +0000532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
mmentovai8c2a4de2006-09-20 16:20:15 +0000534
brynercb91a2f2006-08-25 21:14:45 +0000535# Name of the host.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
brynercb91a2f2006-08-25 21:14:45 +0000537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
brynercb91a2f2006-08-25 21:14:45 +0000540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000544ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000545ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000546LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000551
brynercb91a2f2006-08-25 21:14:45 +0000552# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000553PACKAGE_NAME='breakpad'
554PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000555PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000556PACKAGE_STRING='breakpad 0.1'
thestig@chromium.org43e6db72010-11-08 19:49:41 +0000557PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com'
jimblandy92b1f832009-12-23 22:23:49 +0000558PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000559
560ac_unique_file="README"
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#ifdef HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#ifdef HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#ifdef STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# ifdef HAVE_STDLIB_H
575# include <stdlib.h>
576# endif
577#endif
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580# include <memory.h>
581# endif
582# include <string.h>
583#endif
584#ifdef HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#ifdef HAVE_INTTYPES_H
588# include <inttypes.h>
589#endif
590#ifdef HAVE_STDINT_H
591# include <stdint.h>
592#endif
593#ifdef HAVE_UNISTD_H
594# include <unistd.h>
595#endif"
596
jimblandy92b1f832009-12-23 22:23:49 +0000597ac_subst_vars='am__EXEEXT_FALSE
598am__EXEEXT_TRUE
599LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000600LIBOBJS
jimblandy92b1f832009-12-23 22:23:49 +0000601SELFTEST_FALSE
602SELFTEST_TRUE
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000603DISABLE_TOOLS_FALSE
604DISABLE_TOOLS_TRUE
ted.mielczareke574a2a2010-10-05 19:38:22 +0000605DISABLE_PROCESSOR_FALSE
606DISABLE_PROCESSOR_TRUE
digit@chromium.org62d486b2012-08-21 14:34:48 +0000607ANDROID_HOST_FALSE
608ANDROID_HOST_TRUE
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000609LINUX_HOST_FALSE
610LINUX_HOST_TRUE
nealsidde545c02010-03-02 00:39:48 +0000611PTHREAD_CFLAGS
612PTHREAD_LIBS
613PTHREAD_CC
614ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000615EGREP
616GREP
ivan.penkov@gmail.com5f6e1f02012-07-02 22:55:57 +0000617GCC_FALSE
618GCC_TRUE
ted.mielczarekd192a712010-10-05 19:38:51 +0000619RANLIB
jimblandy92b1f832009-12-23 22:23:49 +0000620am__fastdepCXX_FALSE
621am__fastdepCXX_TRUE
622CXXDEPMODE
623ac_ct_CXX
624CXXFLAGS
625CXX
626CPP
digit@chromium.org7e3c5382012-08-31 18:38:29 +0000627am__fastdepCCAS_FALSE
628am__fastdepCCAS_TRUE
629CCASDEPMODE
630CCASFLAGS
631CCAS
jimblandy92b1f832009-12-23 22:23:49 +0000632am__fastdepCC_FALSE
633am__fastdepCC_TRUE
634CCDEPMODE
635AMDEPBACKSLASH
636AMDEP_FALSE
637AMDEP_TRUE
638am__quote
639am__include
640DEPDIR
641OBJEXT
642EXEEXT
643ac_ct_CC
644CPPFLAGS
645LDFLAGS
646CFLAGS
647CC
648am__untar
649am__tar
650AMTAR
651am__leading_dot
652SET_MAKE
653AWK
654mkdir_p
655MKDIR_P
656INSTALL_STRIP_PROGRAM
657STRIP
658install_sh
659MAKEINFO
660AUTOHEADER
661AUTOMAKE
662AUTOCONF
663ACLOCAL
664VERSION
665PACKAGE
666CYGPATH_W
667am__isrc
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
jimblandy92b1f832009-12-23 22:23:49 +0000679target_alias
680host_alias
681build_alias
682LIBS
683ECHO_T
684ECHO_N
685ECHO_C
686DEFS
687mandir
688localedir
689libdir
690psdir
691pdfdir
692dvidir
693htmldir
694infodir
695docdir
696oldincludedir
697includedir
698localstatedir
699sharedstatedir
700sysconfdir
701datadir
702datarootdir
703libexecdir
704sbindir
705bindir
706program_transform_name
707prefix
708exec_prefix
709PACKAGE_URL
710PACKAGE_BUGREPORT
711PACKAGE_STRING
712PACKAGE_VERSION
713PACKAGE_TARNAME
714PACKAGE_NAME
715PATH_SEPARATOR
716SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000717ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000718ac_user_opts='
719enable_option_checking
720enable_dependency_tracking
nealsidde545c02010-03-02 00:39:48 +0000721enable_m32
ted.mielczareke574a2a2010-10-05 19:38:22 +0000722enable_processor
ted.mielczarekdbf409c2011-02-28 14:05:22 +0000723enable_tools
jimblandy92b1f832009-12-23 22:23:49 +0000724enable_selftest
725'
mmentovai8c2a4de2006-09-20 16:20:15 +0000726 ac_precious_vars='build_alias
727host_alias
728target_alias
729CC
730CFLAGS
731LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000732LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000733CPPFLAGS
digit@chromium.org7e3c5382012-08-31 18:38:29 +0000734CCAS
735CCASFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +0000736CPP
737CXX
738CXXFLAGS
ted.mielczarekd192a712010-10-05 19:38:51 +0000739CCC'
mmentovai8c2a4de2006-09-20 16:20:15 +0000740
brynercb91a2f2006-08-25 21:14:45 +0000741
742# Initialize some variables set by options.
743ac_init_help=
744ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000745ac_unrecognized_opts=
746ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000747# The variables have the same names as the options, with
748# dashes changed to underlines.
749cache_file=/dev/null
750exec_prefix=NONE
751no_create=
752no_recursion=
753prefix=NONE
754program_prefix=NONE
755program_suffix=NONE
756program_transform_name=s,x,x,
757silent=
758site=
759srcdir=
760verbose=
761x_includes=NONE
762x_libraries=NONE
763
764# Installation directory options.
765# These are left unexpanded so users can "make install exec_prefix=/foo"
766# and all the variables that are supposed to be based on exec_prefix
767# by default will actually change.
768# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000769# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000770bindir='${exec_prefix}/bin'
771sbindir='${exec_prefix}/sbin'
772libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000773datarootdir='${prefix}/share'
774datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000775sysconfdir='${prefix}/etc'
776sharedstatedir='${prefix}/com'
777localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000778includedir='${prefix}/include'
779oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000780docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
781infodir='${datarootdir}/info'
782htmldir='${docdir}'
783dvidir='${docdir}'
784pdfdir='${docdir}'
785psdir='${docdir}'
786libdir='${exec_prefix}/lib'
787localedir='${datarootdir}/locale'
788mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000789
790ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000791ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000792for ac_option
793do
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000796 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000797 ac_prev=
798 continue
799 fi
800
mmentovai8c2a4de2006-09-20 16:20:15 +0000801 case $ac_option in
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *) ac_optarg=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000804 esac
brynercb91a2f2006-08-25 21:14:45 +0000805
806 # Accept the important Cygnus configure options, so we can diagnose typos.
807
mmentovai8c2a4de2006-09-20 16:20:15 +0000808 case $ac_dashdash$ac_option in
809 --)
810 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000811
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 ac_prev=bindir ;;
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 bindir=$ac_optarg ;;
816
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
821
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
828
829 --config-cache | -C)
830 cache_file=config.cache ;;
831
mmentovai8c2a4de2006-09-20 16:20:15 +0000832 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000833 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000835 datadir=$ac_optarg ;;
836
mmentovai8c2a4de2006-09-20 16:20:15 +0000837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
843
brynercb91a2f2006-08-25 21:14:45 +0000844 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000845 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000846 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000848 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000849 ac_useropt_orig=$ac_useropt
850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
852 *"
853"enable_$ac_useropt"
854"*) ;;
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
857 esac
858 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000859
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
864
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000869
870 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000871 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000872 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
SiyangXie@gmail.combab77002012-10-10 21:41:52 +0000874 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +0000875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
878 *"
879"enable_$ac_useropt"
880"*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000885
886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888 | --exec | --exe | --ex)
889 ac_prev=exec_prefix ;;
890 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892 | --exec=* | --exe=* | --ex=*)
893 exec_prefix=$ac_optarg ;;
894
895 -gas | --gas | --ga | --g)
896 # Obsolete; use --with-gas.
897 with_gas=yes ;;
898
899 -help | --help | --hel | --he | -h)
900 ac_init_help=long ;;
901 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902 ac_init_help=recursive ;;
903 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904 ac_init_help=short ;;
905
906 -host | --host | --hos | --ho)
907 ac_prev=host_alias ;;
908 -host=* | --host=* | --hos=* | --ho=*)
909 host_alias=$ac_optarg ;;
910
mmentovai8c2a4de2006-09-20 16:20:15 +0000911 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912 ac_prev=htmldir ;;
913 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914 | --ht=*)
915 htmldir=$ac_optarg ;;
916
brynercb91a2f2006-08-25 21:14:45 +0000917 -includedir | --includedir | --includedi | --included | --include \
918 | --includ | --inclu | --incl | --inc)
919 ac_prev=includedir ;;
920 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921 | --includ=* | --inclu=* | --incl=* | --inc=*)
922 includedir=$ac_optarg ;;
923
924 -infodir | --infodir | --infodi | --infod | --info | --inf)
925 ac_prev=infodir ;;
926 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927 infodir=$ac_optarg ;;
928
929 -libdir | --libdir | --libdi | --libd)
930 ac_prev=libdir ;;
931 -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 libdir=$ac_optarg ;;
933
934 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935 | --libexe | --libex | --libe)
936 ac_prev=libexecdir ;;
937 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938 | --libexe=* | --libex=* | --libe=*)
939 libexecdir=$ac_optarg ;;
940
mmentovai8c2a4de2006-09-20 16:20:15 +0000941 -localedir | --localedir | --localedi | --localed | --locale)
942 ac_prev=localedir ;;
943 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944 localedir=$ac_optarg ;;
945
brynercb91a2f2006-08-25 21:14:45 +0000946 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +0000947 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +0000948 ac_prev=localstatedir ;;
949 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +0000950 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +0000951 localstatedir=$ac_optarg ;;
952
953 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954 ac_prev=mandir ;;
955 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956 mandir=$ac_optarg ;;
957
958 -nfp | --nfp | --nf)
959 # Obsolete; use --without-fp.
960 with_fp=no ;;
961
962 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963 | --no-cr | --no-c | -n)
964 no_create=yes ;;
965
966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968 no_recursion=yes ;;
969
970 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972 | --oldin | --oldi | --old | --ol | --o)
973 ac_prev=oldincludedir ;;
974 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977 oldincludedir=$ac_optarg ;;
978
979 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980 ac_prev=prefix ;;
981 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 prefix=$ac_optarg ;;
983
984 -program-prefix | --program-prefix | --program-prefi | --program-pref \
985 | --program-pre | --program-pr | --program-p)
986 ac_prev=program_prefix ;;
987 -program-prefix=* | --program-prefix=* | --program-prefi=* \
988 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989 program_prefix=$ac_optarg ;;
990
991 -program-suffix | --program-suffix | --program-suffi | --program-suff \
992 | --program-suf | --program-su | --program-s)
993 ac_prev=program_suffix ;;
994 -program-suffix=* | --program-suffix=* | --program-suffi=* \
995 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996 program_suffix=$ac_optarg ;;
997
998 -program-transform-name | --program-transform-name \
999 | --program-transform-nam | --program-transform-na \
1000 | --program-transform-n | --program-transform- \
1001 | --program-transform | --program-transfor \
1002 | --program-transfo | --program-transf \
1003 | --program-trans | --program-tran \
1004 | --progr-tra | --program-tr | --program-t)
1005 ac_prev=program_transform_name ;;
1006 -program-transform-name=* | --program-transform-name=* \
1007 | --program-transform-nam=* | --program-transform-na=* \
1008 | --program-transform-n=* | --program-transform-=* \
1009 | --program-transform=* | --program-transfor=* \
1010 | --program-transfo=* | --program-transf=* \
1011 | --program-trans=* | --program-tran=* \
1012 | --progr-tra=* | --program-tr=* | --program-t=*)
1013 program_transform_name=$ac_optarg ;;
1014
mmentovai8c2a4de2006-09-20 16:20:15 +00001015 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016 ac_prev=pdfdir ;;
1017 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018 pdfdir=$ac_optarg ;;
1019
1020 -psdir | --psdir | --psdi | --psd | --ps)
1021 ac_prev=psdir ;;
1022 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023 psdir=$ac_optarg ;;
1024
brynercb91a2f2006-08-25 21:14:45 +00001025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026 | -silent | --silent | --silen | --sile | --sil)
1027 silent=yes ;;
1028
1029 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030 ac_prev=sbindir ;;
1031 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032 | --sbi=* | --sb=*)
1033 sbindir=$ac_optarg ;;
1034
1035 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037 | --sharedst | --shareds | --shared | --share | --shar \
1038 | --sha | --sh)
1039 ac_prev=sharedstatedir ;;
1040 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043 | --sha=* | --sh=*)
1044 sharedstatedir=$ac_optarg ;;
1045
1046 -site | --site | --sit)
1047 ac_prev=site ;;
1048 -site=* | --site=* | --sit=*)
1049 site=$ac_optarg ;;
1050
1051 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052 ac_prev=srcdir ;;
1053 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054 srcdir=$ac_optarg ;;
1055
1056 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057 | --syscon | --sysco | --sysc | --sys | --sy)
1058 ac_prev=sysconfdir ;;
1059 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061 sysconfdir=$ac_optarg ;;
1062
1063 -target | --target | --targe | --targ | --tar | --ta | --t)
1064 ac_prev=target_alias ;;
1065 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066 target_alias=$ac_optarg ;;
1067
1068 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069 verbose=yes ;;
1070
1071 -version | --version | --versio | --versi | --vers | -V)
1072 ac_init_version=: ;;
1073
1074 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001075 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001076 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001078 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083"with_$ac_useropt"
1084"*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001089
1090 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001092 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001094 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1098 *"
1099"with_$ac_useropt"
1100"*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001105
1106 --x)
1107 # Obsolete; use --with-x.
1108 with_x=yes ;;
1109
1110 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1111 | --x-incl | --x-inc | --x-in | --x-i)
1112 ac_prev=x_includes ;;
1113 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1114 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1115 x_includes=$ac_optarg ;;
1116
1117 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1118 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1119 ac_prev=x_libraries ;;
1120 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1121 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1122 x_libraries=$ac_optarg ;;
1123
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001124 -*) as_fn_error "unrecognized option: \`$ac_option'
1125Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001126 ;;
1127
1128 *=*)
1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001131 case $ac_envvar in #(
1132 '' | [0-9]* | *[!_$as_cr_alnum]* )
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001133 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001134 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001135 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001136 export $ac_envvar ;;
1137
1138 *)
1139 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001140 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001141 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001142 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001143 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
brynercb91a2f2006-08-25 21:14:45 +00001144 ;;
1145
1146 esac
1147done
1148
1149if test -n "$ac_prev"; then
1150 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001151 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001152fi
1153
jimblandy92b1f832009-12-23 22:23:49 +00001154if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1156 no) ;;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001157 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001158 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1159 esac
1160fi
1161
1162# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001163for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164 datadir sysconfdir sharedstatedir localstatedir includedir \
1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001167do
mmentovai8c2a4de2006-09-20 16:20:15 +00001168 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001169 # Remove trailing slashes.
1170 case $ac_val in
1171 */ )
1172 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173 eval $ac_var=\$ac_val;;
1174 esac
1175 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001176 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001177 [\\/$]* | ?:[\\/]* ) continue;;
1178 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001179 esac
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001180 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001181done
1182
1183# There might be people who depend on the old broken behavior: `$host'
1184# used to hold the argument of --host etc.
1185# FIXME: To remove some day.
1186build=$build_alias
1187host=$host_alias
1188target=$target_alias
1189
1190# FIXME: To remove some day.
1191if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001194 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
brynercb91a2f2006-08-25 21:14:45 +00001196 elif test "x$build_alias" != "x$host_alias"; then
1197 cross_compiling=yes
1198 fi
1199fi
1200
1201ac_tool_prefix=
1202test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
1204test "$silent" = yes && exec 6>/dev/null
1205
1206
mmentovai8c2a4de2006-09-20 16:20:15 +00001207ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208ac_ls_di=`ls -di .` &&
1209ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001210 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001211test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001212 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001213
1214
brynercb91a2f2006-08-25 21:14:45 +00001215# Find the source files, if location was not specified.
1216if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001218 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001219 ac_confdir=`$as_dirname -- "$as_myself" ||
1220$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$as_myself" : 'X\(//\)[^/]' \| \
1222 X"$as_myself" : 'X\(//\)$' \| \
1223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1224$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\/\)[^/].*/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\).*/{
1238 s//\1/
1239 q
1240 }
1241 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001242 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001243 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001244 srcdir=..
1245 fi
1246else
1247 ac_srcdir_defaulted=no
1248fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001249if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001251 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001252fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001253ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254ac_abs_confdir=`(
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001255 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001256 pwd)`
1257# When building in place, set srcdir=.
1258if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1260fi
1261# Remove unnecessary trailing slashes from srcdir.
1262# Double slashes in file names in object file debugging info
1263# mess up M-x gdb in Emacs.
1264case $srcdir in
1265*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266esac
1267for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272done
brynercb91a2f2006-08-25 21:14:45 +00001273
1274#
1275# Report the --help message.
1276#
1277if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1280 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001281\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001282
1283Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286VAR=VALUE. See below for descriptions of some of the useful variables.
1287
1288Defaults for the options are specified in brackets.
1289
1290Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001295 -q, --quiet, --silent do not print \`checking...' messages
brynercb91a2f2006-08-25 21:14:45 +00001296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300
brynercb91a2f2006-08-25 21:14:45 +00001301Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001303 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001305 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001306
1307By default, \`make install' will install all the files in
1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310for instance \`--prefix=\$HOME'.
1311
1312For better control, use the options below.
1313
1314Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001334_ACEOF
1335
1336 cat <<\_ACEOF
1337
1338Program names:
1339 --program-prefix=PREFIX prepend PREFIX to installed program names
1340 --program-suffix=SUFFIX append SUFFIX to installed program names
1341 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1342
1343System types:
1344 --build=BUILD configure for building on BUILD [guessed]
1345 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1346_ACEOF
1347fi
1348
1349if test -n "$ac_init_help"; then
1350 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001351 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001352 esac
1353 cat <<\_ACEOF
1354
1355Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001356 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1359 --disable-dependency-tracking speeds up one-time build
1360 --enable-dependency-tracking do not reject slow dependency extractors
nealsidde545c02010-03-02 00:39:48 +00001361 --enable-m32 Compile/build with -m32 (default is no)
ted.mielczareke574a2a2010-10-05 19:38:22 +00001362 --disable-processor Don't build processor library (default is no)
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001363 --disable-tools Don't build tool binaries (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001364 --enable-selftest Run extra tests with "make check" (may conflict with
1365 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001366
brynercb91a2f2006-08-25 21:14:45 +00001367Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001372 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001373 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001374 you have headers in a nonstandard directory <include dir>
digit@chromium.org7e3c5382012-08-31 18:38:29 +00001375 CCAS assembler compiler command (defaults to CC)
1376 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
brynercb91a2f2006-08-25 21:14:45 +00001377 CPP C preprocessor
1378 CXX C++ compiler command
1379 CXXFLAGS C++ compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001380
1381Use these variables to override the choices made by `configure' or to help
1382it to find libraries and programs with nonstandard names/locations.
1383
thestig@chromium.org43e6db72010-11-08 19:49:41 +00001384Report bugs to <google-breakpad-dev@googlegroups.com>.
brynercb91a2f2006-08-25 21:14:45 +00001385_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001386ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001387fi
1388
1389if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 continue
brynercb91a2f2006-08-25 21:14:45 +00001395 ac_builddir=.
1396
mmentovai8c2a4de2006-09-20 16:20:15 +00001397case "$ac_dir" in
1398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399*)
jimblandy92b1f832009-12-23 22:23:49 +00001400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001401 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407esac
1408ac_abs_top_builddir=$ac_pwd
1409ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410# for backward compatibility:
1411ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001412
1413case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001414 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001415 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001419 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001426esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001428
mmentovai8c2a4de2006-09-20 16:20:15 +00001429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001437 else
jimblandy92b1f832009-12-23 22:23:49 +00001438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001441 done
1442fi
1443
mmentovai8c2a4de2006-09-20 16:20:15 +00001444test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001445if $ac_init_version; then
1446 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001447breakpad configure 0.1
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001448generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001449
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001450Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001451This configure script is free software; the Free Software Foundation
1452gives unlimited permission to copy, distribute and modify it.
1453_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001454 exit
brynercb91a2f2006-08-25 21:14:45 +00001455fi
jimblandy92b1f832009-12-23 22:23:49 +00001456
1457## ------------------------ ##
1458## Autoconf initialization. ##
1459## ------------------------ ##
1460
1461# ac_fn_c_try_compile LINENO
1462# --------------------------
1463# Try to compile conftest.$ac_ext, and return whether this succeeded.
1464ac_fn_c_try_compile ()
1465{
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 rm -f conftest.$ac_objext
1468 if { { ac_try="$ac_compile"
1469case "(($ac_try" in
1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471 *) ac_try_echo=$ac_try;;
1472esac
1473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474$as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_compile") 2>conftest.err
1476 ac_status=$?
1477 if test -s conftest.err; then
1478 grep -v '^ *+' conftest.err >conftest.er1
1479 cat conftest.er1 >&5
1480 mv -f conftest.er1 conftest.err
1481 fi
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && {
1484 test -z "$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1486 } && test -s conftest.$ac_objext; then :
1487 ac_retval=0
1488else
1489 $as_echo "$as_me: failed program was:" >&5
1490sed 's/^/| /' conftest.$ac_ext >&5
1491
1492 ac_retval=1
1493fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001495 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001496
1497} # ac_fn_c_try_compile
1498
1499# ac_fn_c_try_cpp LINENO
1500# ----------------------
1501# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1502ac_fn_c_try_cpp ()
1503{
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 if { { ac_try="$ac_cpp conftest.$ac_ext"
1506case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509esac
1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511$as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001520 test $ac_status = 0; } >/dev/null && {
jimblandy92b1f832009-12-23 22:23:49 +00001521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 }; then :
1524 ac_retval=0
1525else
1526 $as_echo "$as_me: failed program was:" >&5
1527sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001532 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001533
1534} # ac_fn_c_try_cpp
1535
1536# ac_fn_cxx_try_compile LINENO
1537# ----------------------------
1538# Try to compile conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_cxx_try_compile ()
1540{
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547esac
1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549$as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_cxx_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563else
1564 $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001570 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001571
1572} # ac_fn_cxx_try_compile
1573
ted.mielczarekd192a712010-10-05 19:38:51 +00001574# ac_fn_c_try_run LINENO
1575# ----------------------
1576# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1577# that executables *can* be run.
1578ac_fn_c_try_run ()
1579{
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_link"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>&5
1589 ac_status=$?
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1592 { { case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_try") 2>&5
1599 ac_status=$?
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; }; }; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: program exited with status $ac_status" >&5
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=$ac_status
1609fi
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ted.mielczarekd192a712010-10-05 19:38:51 +00001612 as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_run
1615
jimblandy92b1f832009-12-23 22:23:49 +00001616# ac_fn_c_try_link LINENO
1617# -----------------------
1618# Try to link conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_link ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext conftest$ac_exeext
1623 if { { ac_try="$ac_link"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest$ac_exeext && {
1642 test "$cross_compiling" = yes ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001643 $as_test_x conftest$ac_exeext
jimblandy92b1f832009-12-23 22:23:49 +00001644 }; then :
1645 ac_retval=0
1646else
1647 $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651fi
1652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1654 # interfere with the next link command; also delete a directory that is
1655 # left behind by Apple's compiler. We do this before executing the actions.
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001658 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001659
1660} # ac_fn_c_try_link
1661
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001662# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663# -------------------------------------------------------
1664# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665# the include files in INCLUDES and setting the cache variable VAR
1666# accordingly.
1667ac_fn_c_check_header_mongrel ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001673if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001674 $as_echo_n "(cached) " >&6
1675fi
1676eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
1679else
1680 # Is the header compilable?
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682$as_echo_n "checking $2 usability... " >&6; }
1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h. */
1685$4
1686#include <$2>
1687_ACEOF
1688if ac_fn_c_try_compile "$LINENO"; then :
1689 ac_header_compiler=yes
1690else
1691 ac_header_compiler=no
1692fi
1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695$as_echo "$ac_header_compiler" >&6; }
1696
1697# Is the header present?
1698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699$as_echo_n "checking $2 presence... " >&6; }
1700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701/* end confdefs.h. */
1702#include <$2>
1703_ACEOF
1704if ac_fn_c_try_cpp "$LINENO"; then :
1705 ac_header_preproc=yes
1706else
1707 ac_header_preproc=no
1708fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001709rm -f conftest.err conftest.$ac_ext
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711$as_echo "$ac_header_preproc" >&6; }
1712
1713# So? What about this header?
1714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715 yes:no: )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ;;
1721 no:yes:* )
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1725$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1729$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001732( cat <<\_ASBOX
1733## --------------------------------------------------- ##
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001734## Report this to google-breakpad-dev@googlegroups.com ##
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001735## --------------------------------------------------- ##
1736_ASBOX
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001737 ) | sed "s/^/$as_me: WARNING: /" >&2
1738 ;;
1739esac
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001742if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001743 $as_echo_n "(cached) " >&6
1744else
1745 eval "$3=\$ac_header_compiler"
1746fi
1747eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749$as_echo "$ac_res" >&6; }
1750fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001752
1753} # ac_fn_c_check_header_mongrel
1754
1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists and can be compiled using the include files in
1758# INCLUDES, setting the cache variable VAR accordingly.
1759ac_fn_c_check_header_compile ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001764if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001765 $as_echo_n "(cached) " >&6
1766else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774else
1775 eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ted.mielczarekdbf409c2011-02-28 14:05:22 +00001783
1784} # ac_fn_c_check_header_compile
mmentovai8c2a4de2006-09-20 16:20:15 +00001785cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001786This file contains any messages produced by compilers while
1787running configure, to aid debugging if configure makes a mistake.
1788
mmentovaie5dc6082007-02-14 19:51:05 +00001789It was created by breakpad $as_me 0.1, which was
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001790generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001791
1792 $ $0 $@
1793
1794_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001795exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001796{
1797cat <<_ASUNAME
1798## --------- ##
1799## Platform. ##
1800## --------- ##
1801
1802hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807
1808/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1810
1811/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1812/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1813/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001814/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001815/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1816/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1817/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1818
1819_ASUNAME
1820
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00001826 $as_echo "PATH: $as_dir"
1827 done
mmentovai8c2a4de2006-09-20 16:20:15 +00001828IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001829
1830} >&5
1831
1832cat >&5 <<_ACEOF
1833
1834
1835## ----------- ##
1836## Core tests. ##
1837## ----------- ##
1838
1839_ACEOF
1840
1841
1842# Keep a trace of the command line.
1843# Strip out --no-create and --no-recursion so they do not pile up.
1844# Strip out --silent because we don't want to record it for future runs.
1845# Also quote any args containing shell meta-characters.
1846# Make two passes to allow for proper duplicate-argument suppression.
1847ac_configure_args=
1848ac_configure_args0=
1849ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001850ac_must_keep_next=false
1851for ac_pass in 1 2
1852do
1853 for ac_arg
1854 do
1855 case $ac_arg in
1856 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858 | -silent | --silent | --silen | --sile | --sil)
1859 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001860 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00001861 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001862 esac
1863 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00001864 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00001865 2)
jimblandy92b1f832009-12-23 22:23:49 +00001866 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001867 if test $ac_must_keep_next = true; then
1868 ac_must_keep_next=false # Got value, back to normal.
1869 else
1870 case $ac_arg in
1871 *=* | --config-cache | -C | -disable-* | --disable-* \
1872 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874 | -with-* | --with-* | -without-* | --without-* | --x)
1875 case "$ac_configure_args0 " in
1876 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1877 esac
1878 ;;
1879 -* ) ac_must_keep_next=true ;;
1880 esac
1881 fi
jimblandy92b1f832009-12-23 22:23:49 +00001882 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001883 ;;
1884 esac
1885 done
1886done
jimblandy92b1f832009-12-23 22:23:49 +00001887{ ac_configure_args0=; unset ac_configure_args0;}
1888{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00001889
1890# When interrupted or exit'd, cleanup temporary files, and complete
1891# config.log. We remove comments because anyway the quotes in there
1892# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001893# WARNING: Use '\'' to represent an apostrophe within the trap.
1894# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001895trap 'exit_status=$?
1896 # Save into config.log some information that might help in debugging.
1897 {
1898 echo
1899
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001900 cat <<\_ASBOX
1901## ---------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001902## Cache variables. ##
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001903## ---------------- ##
1904_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001905 echo
1906 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001907(
1908 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909 eval ac_val=\$$ac_var
1910 case $ac_val in #(
1911 *${as_nl}*)
1912 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00001913 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1914$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001915 esac
1916 case $ac_var in #(
1917 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00001918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001920 esac ;;
1921 esac
1922 done
brynercb91a2f2006-08-25 21:14:45 +00001923 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001924 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001926 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001927 "s/'\''/'\''\\\\'\'''\''/g;
1928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001930 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001932 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001933 esac |
1934 sort
1935)
brynercb91a2f2006-08-25 21:14:45 +00001936 echo
1937
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001938 cat <<\_ASBOX
1939## ----------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001940## Output variables. ##
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001941## ----------------- ##
1942_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001943 echo
1944 for ac_var in $ac_subst_vars
1945 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001946 eval ac_val=\$$ac_var
1947 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00001948 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001949 esac
jimblandy92b1f832009-12-23 22:23:49 +00001950 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001951 done | sort
1952 echo
1953
1954 if test -n "$ac_subst_files"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001955 cat <<\_ASBOX
1956## ------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00001957## File substitutions. ##
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001958## ------------------- ##
1959_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001960 echo
1961 for ac_var in $ac_subst_files
1962 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001963 eval ac_val=\$$ac_var
1964 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00001965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001966 esac
jimblandy92b1f832009-12-23 22:23:49 +00001967 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001968 done | sort
1969 echo
1970 fi
1971
1972 if test -s confdefs.h; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001973 cat <<\_ASBOX
1974## ----------- ##
brynercb91a2f2006-08-25 21:14:45 +00001975## confdefs.h. ##
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00001976## ----------- ##
1977_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00001978 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00001979 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001980 echo
1981 fi
1982 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00001983 $as_echo "$as_me: caught signal $ac_signal"
1984 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00001985 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00001986 rm -f core *.core core.conftest.* &&
1987 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00001988 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00001989' 0
brynercb91a2f2006-08-25 21:14:45 +00001990for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00001991 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00001992done
1993ac_signal=0
1994
1995# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00001996rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001997
jimblandy92b1f832009-12-23 22:23:49 +00001998$as_echo "/* confdefs.h */" > confdefs.h
1999
brynercb91a2f2006-08-25 21:14:45 +00002000# Predefined preprocessor variables.
2001
2002cat >>confdefs.h <<_ACEOF
2003#define PACKAGE_NAME "$PACKAGE_NAME"
2004_ACEOF
2005
brynercb91a2f2006-08-25 21:14:45 +00002006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008_ACEOF
2009
brynercb91a2f2006-08-25 21:14:45 +00002010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_VERSION "$PACKAGE_VERSION"
2012_ACEOF
2013
brynercb91a2f2006-08-25 21:14:45 +00002014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_STRING "$PACKAGE_STRING"
2016_ACEOF
2017
brynercb91a2f2006-08-25 21:14:45 +00002018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020_ACEOF
2021
jimblandy92b1f832009-12-23 22:23:49 +00002022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_URL "$PACKAGE_URL"
2024_ACEOF
2025
brynercb91a2f2006-08-25 21:14:45 +00002026
2027# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002028# Prefer an explicitly selected file to automatically selected ones.
2029ac_site_file1=NONE
2030ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002031if test -n "$CONFIG_SITE"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002032 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002033elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002034 ac_site_file1=$prefix/share/config.site
2035 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002036else
jimblandy92b1f832009-12-23 22:23:49 +00002037 ac_site_file1=$ac_default_prefix/share/config.site
2038 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002039fi
jimblandy92b1f832009-12-23 22:23:49 +00002040for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002041do
jimblandy92b1f832009-12-23 22:23:49 +00002042 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002043 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002044 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002046 sed 's/^/| /' "$ac_site_file" >&5
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002047 . "$ac_site_file"
brynercb91a2f2006-08-25 21:14:45 +00002048 fi
2049done
2050
2051if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002052 # Some versions of bash will fail to source /dev/null (special files
2053 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2054 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002057 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002058 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002060 esac
2061 fi
2062else
jimblandy92b1f832009-12-23 22:23:49 +00002063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002065 >$cache_file
2066fi
2067
2068# Check that the precious variables saved in the cache have kept the same
2069# value.
2070ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002071for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002072 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002074 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002076 case $ac_old_set,$ac_new_set in
2077 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002080 ac_cache_corrupted=: ;;
2081 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002084 ac_cache_corrupted=: ;;
2085 ,);;
2086 *)
2087 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002088 # differences in whitespace do not lead to failure.
2089 ac_old_val_w=`echo x $ac_old_val`
2090 ac_new_val_w=`echo x $ac_new_val`
2091 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094 ac_cache_corrupted=:
2095 else
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098 eval $ac_var=\$ac_old_val
2099 fi
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2101$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2103$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002104 fi;;
2105 esac
2106 # Pass precious variables to config.status.
2107 if test "$ac_new_set" = set; then
2108 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002109 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002110 *) ac_arg=$ac_var=$ac_new_val ;;
2111 esac
2112 case " $ac_configure_args " in
2113 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002114 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002115 esac
2116 fi
2117done
2118if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002123 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002124fi
jimblandy92b1f832009-12-23 22:23:49 +00002125## -------------------- ##
2126## Main body of script. ##
2127## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002128
brynercb91a2f2006-08-25 21:14:45 +00002129ac_ext=c
2130ac_cpp='$CPP $CPPFLAGS'
2131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
2135
2136
brynercb91a2f2006-08-25 21:14:45 +00002137ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002138for ac_dir in autotools "$srcdir"/autotools; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002139 for ac_t in install-sh install.sh shtool; do
2140 if test -f "$ac_dir/$ac_t"; then
2141 ac_aux_dir=$ac_dir
2142 ac_install_sh="$ac_aux_dir/$ac_t -c"
2143 break 2
2144 fi
2145 done
brynercb91a2f2006-08-25 21:14:45 +00002146done
2147if test -z "$ac_aux_dir"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002148 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002149fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002150
2151# These three variables are undocumented and unsupported,
2152# and are intended to be withdrawn in a future Autoconf release.
2153# They can cause serious problems if a builder's source tree is in a directory
2154# whose full name contains unusual characters.
2155ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2156ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2157ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2158
brynercb91a2f2006-08-25 21:14:45 +00002159
mmentovai425d2562006-08-30 20:05:05 +00002160
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002161# Make sure we can run config.sub.
2162$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002163 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002164
2165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2166$as_echo_n "checking build system type... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002167if test "${ac_cv_build+set}" = set; then :
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002168 $as_echo_n "(cached) " >&6
2169else
2170 ac_build_alias=$build_alias
2171test "x$ac_build_alias" = x &&
2172 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2173test "x$ac_build_alias" = x &&
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002174 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002175ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002176 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002177
2178fi
2179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2180$as_echo "$ac_cv_build" >&6; }
2181case $ac_cv_build in
2182*-*-*) ;;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002183*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002184esac
2185build=$ac_cv_build
2186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_build
2188shift
2189build_cpu=$1
2190build_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194build_os=$*
2195IFS=$ac_save_IFS
2196case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2197
2198
2199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2200$as_echo_n "checking host system type... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002201if test "${ac_cv_host+set}" = set; then :
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002202 $as_echo_n "(cached) " >&6
2203else
2204 if test "x$host_alias" = x; then
2205 ac_cv_host=$ac_cv_build
2206else
2207 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002208 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002209fi
2210
2211fi
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2213$as_echo "$ac_cv_host" >&6; }
2214case $ac_cv_host in
2215*-*-*) ;;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002216*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002217esac
2218host=$ac_cv_host
2219ac_save_IFS=$IFS; IFS='-'
2220set x $ac_cv_host
2221shift
2222host_cpu=$1
2223host_vendor=$2
2224shift; shift
2225# Remember, the first character of IFS is used to create $*,
2226# except with old shells:
2227host_os=$*
2228IFS=$ac_save_IFS
2229case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2230
2231
2232
jimblandy92b1f832009-12-23 22:23:49 +00002233am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002234
brynercb91a2f2006-08-25 21:14:45 +00002235# Find a good install program. We prefer a C program (faster),
2236# so one script is as good as another. But avoid the broken or
2237# incompatible versions:
2238# SysV /etc/install, /usr/sbin/install
2239# SunOS /usr/etc/install
2240# IRIX /sbin/install
2241# AIX /bin/install
2242# AmigaOS /C/install, which installs bootblocks on floppy discs
2243# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246# OS/2's system install, which has a completely different semantic
2247# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002248# Reject install programs that cannot install multiple files.
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002251if test -z "$INSTALL"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002252if test "${ac_cv_path_install+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002253 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002254else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002260 # Account for people who put trailing slashes in PATH elements.
2261case $as_dir/ in #((
2262 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002265 /usr/ucb/* ) ;;
2266 *)
2267 # OSF1 and SCO ODT 3.0 have their own names for install.
2268 # Don't use installbsd from OSF since it installs stuff as root
2269 # by default.
2270 for ac_prog in ginstall scoinst install; do
2271 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002273 if test $ac_prog = install &&
2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # AIX install. It has an incompatible calling convention.
2276 :
2277 elif test $ac_prog = install &&
2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279 # program-specific install script used by HP pwplus--don't use.
2280 :
2281 else
jimblandy92b1f832009-12-23 22:23:49 +00002282 rm -rf conftest.one conftest.two conftest.dir
2283 echo one > conftest.one
2284 echo two > conftest.two
2285 mkdir conftest.dir
2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287 test -s conftest.one && test -s conftest.two &&
2288 test -s conftest.dir/conftest.one &&
2289 test -s conftest.dir/conftest.two
2290 then
2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292 break 3
2293 fi
brynercb91a2f2006-08-25 21:14:45 +00002294 fi
2295 fi
2296 done
2297 done
2298 ;;
2299esac
jimblandy92b1f832009-12-23 22:23:49 +00002300
2301 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002302IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002303
jimblandy92b1f832009-12-23 22:23:49 +00002304rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002305
2306fi
2307 if test "${ac_cv_path_install+set}" = set; then
2308 INSTALL=$ac_cv_path_install
2309 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002310 # As a last resort, use the slow shell script. Don't cache a
2311 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002312 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002313 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002314 INSTALL=$ac_install_sh
2315 fi
2316fi
jimblandy92b1f832009-12-23 22:23:49 +00002317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002319
2320# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321# It thinks the first close brace ends the variable substitution.
2322test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
jimblandy92b1f832009-12-23 22:23:49 +00002328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002330# Just in case
2331sleep 1
2332echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002333# Reject unsafe characters in $srcdir or the absolute working directory
2334# name. Accept space and tab only in the latter.
2335am_lf='
2336'
2337case `pwd` in
2338 *[\\\"\#\$\&\'\`$am_lf]*)
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002339 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002340esac
2341case $srcdir in
2342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002343 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002344esac
2345
brynercb91a2f2006-08-25 21:14:45 +00002346# Do `set' in a subshell so we don't clobber the current shell's
2347# arguments. Must try -L first in case configure is actually a
2348# symlink; some systems play weird games with the mod time of symlinks
2349# (eg FreeBSD returns the mod time of the symlink's containing
2350# directory).
2351if (
jimblandy92b1f832009-12-23 22:23:49 +00002352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002353 if test "$*" = "X"; then
2354 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002355 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002356 fi
2357 rm -f conftest.file
2358 if test "$*" != "X $srcdir/configure conftest.file" \
2359 && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361 # If neither matched, then we have a broken ls. This can happen
2362 # if, for instance, CONFIG_SHELL is bash and it inherits a
2363 # broken ls alias from the environment. This has actually
2364 # happened. Such a system could not be considered "sane".
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002365 as_fn_error "ls -t appears to fail. Make sure there is not a broken
jimblandy92b1f832009-12-23 22:23:49 +00002366alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002367 fi
2368
2369 test "$2" = conftest.file
2370 )
2371then
2372 # Ok.
2373 :
2374else
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002375 as_fn_error "newly created file is older than distributed files!
jimblandy92b1f832009-12-23 22:23:49 +00002376Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002377fi
jimblandy92b1f832009-12-23 22:23:49 +00002378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002380test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002382# Use a double $ so make ignores it.
2383test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002385# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002386# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002387ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002389
2390# expand $ac_aux_dir to an absolute path
2391am_aux_dir=`cd $ac_aux_dir && pwd`
2392
jimblandy92b1f832009-12-23 22:23:49 +00002393if test x"${MISSING+set}" != xset; then
2394 case $am_aux_dir in
2395 *\ * | *\ *)
2396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397 *)
2398 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399 esac
2400fi
brynercb91a2f2006-08-25 21:14:45 +00002401# Use eval to expand $SHELL
2402if eval "$MISSING --run true"; then
2403 am_missing_run="$MISSING --run "
2404else
2405 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002408fi
2409
jimblandy92b1f832009-12-23 22:23:49 +00002410if test x"${install_sh}" != xset; then
2411 case $am_aux_dir in
2412 *\ * | *\ *)
2413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414 *)
2415 install_sh="\${SHELL} $am_aux_dir/install-sh"
2416 esac
2417fi
2418
2419# Installed binaries are usually stripped using `strip' when the user
2420# run `make install-strip'. However `strip' might not be the right
2421# tool to use in cross-compilation environments, therefore Automake
2422# will honor the `STRIP' environment variable to overrule this program.
2423if test "$cross_compiling" != no; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426set dummy ${ac_tool_prefix}strip; ac_word=$2
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002429if test "${ac_cv_prog_STRIP+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002430 $as_echo_n "(cached) " >&6
2431else
2432 if test -n "$STRIP"; then
2433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
jimblandy92b1f832009-12-23 22:23:49 +00002442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446done
2447 done
2448IFS=$as_save_IFS
2449
2450fi
2451fi
2452STRIP=$ac_cv_prog_STRIP
2453if test -n "$STRIP"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455$as_echo "$STRIP" >&6; }
2456else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458$as_echo "no" >&6; }
2459fi
2460
2461
2462fi
2463if test -z "$ac_cv_prog_STRIP"; then
2464 ac_ct_STRIP=$STRIP
2465 # Extract the first word of "strip", so it can be a program name with args.
2466set dummy strip; ac_word=$2
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002469if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002470 $as_echo_n "(cached) " >&6
2471else
2472 if test -n "$ac_ct_STRIP"; then
2473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
jimblandy92b1f832009-12-23 22:23:49 +00002482 ac_cv_prog_ac_ct_STRIP="strip"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486done
2487 done
2488IFS=$as_save_IFS
2489
2490fi
2491fi
2492ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493if test -n "$ac_ct_STRIP"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495$as_echo "$ac_ct_STRIP" >&6; }
2496else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498$as_echo "no" >&6; }
2499fi
2500
2501 if test "x$ac_ct_STRIP" = x; then
2502 STRIP=":"
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505yes:)
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508ac_tool_warned=yes ;;
2509esac
2510 STRIP=$ac_ct_STRIP
2511 fi
2512else
2513 STRIP="$ac_cv_prog_STRIP"
2514fi
2515
2516fi
2517INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002521if test -z "$MKDIR_P"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002522 if test "${ac_cv_path_mkdir+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002523 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002524else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002530 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002531 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
mmentovaiaf3c43f2007-05-17 18:34:37 +00002533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534 'mkdir (GNU coreutils) '* | \
2535 'mkdir (coreutils) '* | \
2536 'mkdir (fileutils) '4.1*)
2537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538 break 3;;
2539 esac
2540 done
2541 done
jimblandy92b1f832009-12-23 22:23:49 +00002542 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002543IFS=$as_save_IFS
2544
2545fi
2546
jimblandydc4029a2010-02-02 17:39:51 +00002547 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002548 if test "${ac_cv_path_mkdir+set}" = set; then
2549 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002550 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for MKDIR_P within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002555 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002556 fi
2557fi
jimblandy92b1f832009-12-23 22:23:49 +00002558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002560
2561mkdir_p="$MKDIR_P"
2562case $mkdir_p in
2563 [\\/$]* | ?:[\\/]*) ;;
2564 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565esac
brynercb91a2f2006-08-25 21:14:45 +00002566
2567for ac_prog in gawk mawk nawk awk
2568do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002573if test "${ac_cv_prog_AWK+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002574 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002575else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002584 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002586 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002588 break 2
2589 fi
2590done
jimblandy92b1f832009-12-23 22:23:49 +00002591 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002592IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002593
2594fi
2595fi
2596AWK=$ac_cv_prog_AWK
2597if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002600else
jimblandy92b1f832009-12-23 22:23:49 +00002601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002603fi
2604
mmentovai8c2a4de2006-09-20 16:20:15 +00002605
brynercb91a2f2006-08-25 21:14:45 +00002606 test -n "$AWK" && break
2607done
2608
jimblandy92b1f832009-12-23 22:23:49 +00002609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611set x ${MAKE-make}
2612ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002613if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
jimblandy92b1f832009-12-23 22:23:49 +00002614 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002615else
2616 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002617SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002618all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002619 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002620_ACEOF
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002621# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002622case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623 *@@@%%%=?*=@@@%%%*)
2624 eval ac_cv_prog_make_${ac_make}_set=yes;;
2625 *)
2626 eval ac_cv_prog_make_${ac_make}_set=no;;
2627esac
brynercb91a2f2006-08-25 21:14:45 +00002628rm -f conftest.make
2629fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002630if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002633 SET_MAKE=
2634else
jimblandy92b1f832009-12-23 22:23:49 +00002635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002637 SET_MAKE="MAKE=${MAKE-make}"
2638fi
2639
2640rm -rf .tst 2>/dev/null
2641mkdir .tst 2>/dev/null
2642if test -d .tst; then
2643 am__leading_dot=.
2644else
2645 am__leading_dot=_
2646fi
2647rmdir .tst 2>/dev/null
2648
mmentovaiaf3c43f2007-05-17 18:34:37 +00002649if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651 # is not polluted with repeated "-I."
2652 am__isrc=' -I$(srcdir)'
2653 # test to see if srcdir already configured
2654 if test -f $srcdir/config.status; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002655 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002656 fi
brynercb91a2f2006-08-25 21:14:45 +00002657fi
2658
2659# test whether we have cygpath
2660if test -z "$CYGPATH_W"; then
2661 if (cygpath --version) >/dev/null 2>/dev/null; then
2662 CYGPATH_W='cygpath -w'
2663 else
2664 CYGPATH_W=echo
2665 fi
2666fi
2667
2668
2669# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002670 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002671 VERSION='0.1'
2672
2673
2674cat >>confdefs.h <<_ACEOF
2675#define PACKAGE "$PACKAGE"
2676_ACEOF
2677
2678
2679cat >>confdefs.h <<_ACEOF
2680#define VERSION "$VERSION"
2681_ACEOF
2682
2683# Some tools Automake needs.
2684
2685ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
brynercb91a2f2006-08-25 21:14:45 +00002699# We need awk for the "check" target. The system "awk" is bad on
2700# some platforms.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002701# Always define AMTAR for backward compatibility.
2702
2703AMTAR=${AMTAR-"${am_missing_run}tar"}
brynercb91a2f2006-08-25 21:14:45 +00002704
mmentovaidb3342a2006-12-05 22:52:28 +00002705
jimblandy92b1f832009-12-23 22:23:49 +00002706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2707$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002708# Loop over all known methods to create a tar archive until one works.
2709_am_tools='gnutar plaintar pax cpio none'
2710_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2711# Do not fold the above two line into one, because Tru64 sh and
2712# Solaris sh will not grok spaces in the rhs of `-'.
2713for _am_tool in $_am_tools
2714do
2715 case $_am_tool in
2716 gnutar)
2717 for _am_tar in tar gnutar gtar;
2718 do
2719 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2720 ($_am_tar --version) >&5 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } && break
2724 done
2725 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2726 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2727 am__untar="$_am_tar -xf -"
2728 ;;
2729 plaintar)
2730 # Must skip GNU tar: if it does not support --format= it doesn't create
2731 # ustar tarball either.
2732 (tar --version) >/dev/null 2>&1 && continue
2733 am__tar='tar chf - "$$tardir"'
2734 am__tar_='tar chf - "$tardir"'
2735 am__untar='tar xf -'
2736 ;;
2737 pax)
2738 am__tar='pax -L -x ustar -w "$$tardir"'
2739 am__tar_='pax -L -x ustar -w "$tardir"'
2740 am__untar='pax -r'
2741 ;;
2742 cpio)
2743 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2744 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2745 am__untar='cpio -i -H ustar -d'
2746 ;;
2747 none)
2748 am__tar=false
2749 am__tar_=false
2750 am__untar=false
2751 ;;
2752 esac
2753
2754 # If the value was cached, stop now. We just wanted to have am__tar
2755 # and am__untar set.
2756 test -n "${am_cv_prog_tar_ustar}" && break
2757
2758 # tar/untar a dummy directory, and stop if the command works
2759 rm -rf conftest.dir
2760 mkdir conftest.dir
2761 echo GrepMe > conftest.dir/file
2762 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2763 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767 rm -rf conftest.dir
2768 if test -s conftest.tar; then
2769 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2770 ($am__untar <conftest.tar) >&5 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2774 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2775 fi
2776done
2777rm -rf conftest.dir
2778
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002779if test "${am_cv_prog_tar_ustar+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002780 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00002781else
2782 am_cv_prog_tar_ustar=$_am_tool
2783fi
2784
jimblandy92b1f832009-12-23 22:23:49 +00002785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2786$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002787
2788
2789
2790
2791
mmentovai8c2a4de2006-09-20 16:20:15 +00002792ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002793
2794
digit@chromium.org7e3c5382012-08-31 18:38:29 +00002795DEPDIR="${am__leading_dot}deps"
2796
2797ac_config_commands="$ac_config_commands depfiles"
2798
2799
2800am_make=${MAKE-make}
2801cat > confinc << 'END'
2802am__doit:
2803 @echo this is the am__doit target
2804.PHONY: am__doit
2805END
2806# If we don't find an include directive, just comment out the code.
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2808$as_echo_n "checking for style of include used by $am_make... " >&6; }
2809am__include="#"
2810am__quote=
2811_am_result=none
2812# First try GNU make style include.
2813echo "include confinc" > confmf
2814# Ignore all kinds of additional output from `make'.
2815case `$am_make -s -f confmf 2> /dev/null` in #(
2816*the\ am__doit\ target*)
2817 am__include=include
2818 am__quote=
2819 _am_result=GNU
2820 ;;
2821esac
2822# Now try BSD make style include.
2823if test "$am__include" = "#"; then
2824 echo '.include "confinc"' > confmf
2825 case `$am_make -s -f confmf 2> /dev/null` in #(
2826 *the\ am__doit\ target*)
2827 am__include=.include
2828 am__quote="\""
2829 _am_result=BSD
2830 ;;
2831 esac
2832fi
2833
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2836$as_echo "$_am_result" >&6; }
2837rm -f confinc confmf
2838
2839# Check whether --enable-dependency-tracking was given.
2840if test "${enable_dependency_tracking+set}" = set; then :
2841 enableval=$enable_dependency_tracking;
2842fi
2843
2844if test "x$enable_dependency_tracking" != xno; then
2845 am_depcomp="$ac_aux_dir/depcomp"
2846 AMDEPBACKSLASH='\'
2847fi
2848 if test "x$enable_dependency_tracking" != xno; then
2849 AMDEP_TRUE=
2850 AMDEP_FALSE='#'
2851else
2852 AMDEP_TRUE='#'
2853 AMDEP_FALSE=
2854fi
2855
2856
brynercb91a2f2006-08-25 21:14:45 +00002857ac_ext=c
2858ac_cpp='$CPP $CPPFLAGS'
2859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2864set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002867if test "${ac_cv_prog_CC+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002868 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002869else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002878 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002882 break 2
2883 fi
2884done
jimblandy92b1f832009-12-23 22:23:49 +00002885 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002886IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002887
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002894else
jimblandy92b1f832009-12-23 22:23:49 +00002895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002897fi
2898
mmentovai8c2a4de2006-09-20 16:20:15 +00002899
brynercb91a2f2006-08-25 21:14:45 +00002900fi
2901if test -z "$ac_cv_prog_CC"; then
2902 ac_ct_CC=$CC
2903 # Extract the first word of "gcc", so it can be a program name with args.
2904set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002907if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002908 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002909else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002918 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002920 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002922 break 2
2923 fi
2924done
jimblandy92b1f832009-12-23 22:23:49 +00002925 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002926IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002927
2928fi
2929fi
2930ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002934else
jimblandy92b1f832009-12-23 22:23:49 +00002935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002937fi
2938
mmentovai8c2a4de2006-09-20 16:20:15 +00002939 if test "x$ac_ct_CC" = x; then
2940 CC=""
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943yes:)
jimblandy92b1f832009-12-23 22:23:49 +00002944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00002946ac_tool_warned=yes ;;
2947esac
2948 CC=$ac_ct_CC
2949 fi
brynercb91a2f2006-08-25 21:14:45 +00002950else
2951 CC="$ac_cv_prog_CC"
2952fi
2953
2954if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002957set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002960if test "${ac_cv_prog_CC+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002961 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002962else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002971 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00002972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002973 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00002974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002975 break 2
2976 fi
2977done
jimblandy92b1f832009-12-23 22:23:49 +00002978 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002979IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002980
2981fi
2982fi
2983CC=$ac_cv_prog_CC
2984if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002987else
jimblandy92b1f832009-12-23 22:23:49 +00002988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002990fi
2991
mmentovai8c2a4de2006-09-20 16:20:15 +00002992
brynercb91a2f2006-08-25 21:14:45 +00002993 fi
brynercb91a2f2006-08-25 21:14:45 +00002994fi
2995if test -z "$CC"; then
2996 # Extract the first word of "cc", so it can be a program name with args.
2997set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003000if test "${ac_cv_prog_CC+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00003001 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003002else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005else
3006 ac_prog_rejected=no
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003012 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3015 ac_prog_rejected=yes
3016 continue
3017 fi
3018 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003020 break 2
3021 fi
3022done
jimblandy92b1f832009-12-23 22:23:49 +00003023 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003024IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003025
3026if test $ac_prog_rejected = yes; then
3027 # We found a bogon in the path, so make sure we never use it.
3028 set dummy $ac_cv_prog_CC
3029 shift
3030 if test $# != 0; then
3031 # We chose a different compiler from the bogus one.
3032 # However, it has the same basename, so the bogon will be chosen
3033 # first if we set CC to just the basename; use the full file name.
3034 shift
3035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3036 fi
3037fi
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003044else
jimblandy92b1f832009-12-23 22:23:49 +00003045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003047fi
3048
mmentovai8c2a4de2006-09-20 16:20:15 +00003049
brynercb91a2f2006-08-25 21:14:45 +00003050fi
3051if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003053 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003054 do
3055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003059if test "${ac_cv_prog_CC+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00003060 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003061else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064else
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003070 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003074 break 2
3075 fi
3076done
jimblandy92b1f832009-12-23 22:23:49 +00003077 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003078IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003079
3080fi
3081fi
3082CC=$ac_cv_prog_CC
3083if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003086else
jimblandy92b1f832009-12-23 22:23:49 +00003087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003089fi
3090
mmentovai8c2a4de2006-09-20 16:20:15 +00003091
brynercb91a2f2006-08-25 21:14:45 +00003092 test -n "$CC" && break
3093 done
3094fi
3095if test -z "$CC"; then
3096 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003097 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003098do
3099 # Extract the first word of "$ac_prog", so it can be a program name with args.
3100set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003103if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00003104 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003105else
3106 if test -n "$ac_ct_CC"; then
3107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003114 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003116 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003118 break 2
3119 fi
3120done
jimblandy92b1f832009-12-23 22:23:49 +00003121 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003122IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003123
3124fi
3125fi
3126ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003130else
jimblandy92b1f832009-12-23 22:23:49 +00003131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003133fi
3134
mmentovai8c2a4de2006-09-20 16:20:15 +00003135
brynercb91a2f2006-08-25 21:14:45 +00003136 test -n "$ac_ct_CC" && break
3137done
3138
mmentovai8c2a4de2006-09-20 16:20:15 +00003139 if test "x$ac_ct_CC" = x; then
3140 CC=""
3141 else
3142 case $cross_compiling:$ac_tool_warned in
3143yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003146ac_tool_warned=yes ;;
3147esac
3148 CC=$ac_ct_CC
3149 fi
brynercb91a2f2006-08-25 21:14:45 +00003150fi
3151
3152fi
3153
3154
jimblandy92b1f832009-12-23 22:23:49 +00003155test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003157as_fn_error "no acceptable C compiler found in \$PATH
3158See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003159
3160# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003161$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3162set X $ac_compile
3163ac_compiler=$2
3164for ac_option in --version -v -V -qversion; do
3165 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
jimblandy92b1f832009-12-23 22:23:49 +00003170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171$as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003173 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003174 if test -s conftest.err; then
3175 sed '10a\
3176... rest of stderr output deleted ...
3177 10q' conftest.err >conftest.er1
3178 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003179 fi
jimblandydc4029a2010-02-02 17:39:51 +00003180 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183done
brynercb91a2f2006-08-25 21:14:45 +00003184
jimblandy92b1f832009-12-23 22:23:49 +00003185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003186/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003187
brynercb91a2f2006-08-25 21:14:45 +00003188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003197ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003198# Try to create an executable without -o first, disregard a.out.
3199# It will help us diagnose broken compilers, and finding out an intuition
3200# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3202$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003203ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3204
3205# The possible output files:
3206ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3207
mmentovai8c2a4de2006-09-20 16:20:15 +00003208ac_rmfiles=
3209for ac_file in $ac_files
3210do
3211 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214 esac
3215done
3216rm -f $ac_rmfiles
3217
jimblandy92b1f832009-12-23 22:23:49 +00003218if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
jimblandy92b1f832009-12-23 22:23:49 +00003223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003225 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003226 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231# in a Makefile. We should not override ac_cv_exeext if it was cached,
3232# so that the user can short-circuit this test for compilers unknown to
3233# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003234for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003235do
3236 test -f "$ac_file" || continue
3237 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003239 ;;
3240 [ab].out )
3241 # We found the default executable, but exeext='' is most
3242 # certainly right.
3243 break;;
3244 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003246 then :; else
3247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248 fi
3249 # We set ac_cv_exeext here because the later test for it is not
3250 # safe: cross compilers may not add the suffix if given an `-o'
3251 # argument, so we may need to know it at that point already.
3252 # Even if this section looks crufty: it has the advantage of
3253 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003254 break;;
3255 * )
3256 break;;
3257 esac
3258done
mmentovai8c2a4de2006-09-20 16:20:15 +00003259test "$ac_cv_exeext" = no && ac_cv_exeext=
3260
brynercb91a2f2006-08-25 21:14:45 +00003261else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003262 ac_file=''
3263fi
jimblandy92b1f832009-12-23 22:23:49 +00003264if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003268sed 's/^/| /' conftest.$ac_ext >&5
3269
jimblandy92b1f832009-12-23 22:23:49 +00003270{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003272{ as_fn_set_status 77
3273as_fn_error "C compiler cannot create executables
3274See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003275else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003278fi
jimblandydc4029a2010-02-02 17:39:51 +00003279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3280$as_echo_n "checking for C compiler default output file name... " >&6; }
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3282$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003283ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003284
jimblandydc4029a2010-02-02 17:39:51 +00003285rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003286ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3288$as_echo_n "checking for suffix of executables... " >&6; }
3289if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003290case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
jimblandy92b1f832009-12-23 22:23:49 +00003294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003296 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003297 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3301# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3302# work properly (i.e., refer to `conftest.exe'), while it won't with
3303# `rm'.
3304for ac_file in conftest.exe conftest conftest.*; do
3305 test -f "$ac_file" || continue
3306 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003309 break;;
3310 * ) break;;
3311 esac
3312done
3313else
jimblandy92b1f832009-12-23 22:23:49 +00003314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003316as_fn_error "cannot compute suffix of executables: cannot compile and link
3317See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003318fi
jimblandydc4029a2010-02-02 17:39:51 +00003319rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3321$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003322
3323rm -f conftest.$ac_ext
3324EXEEXT=$ac_cv_exeext
3325ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h. */
3328#include <stdio.h>
3329int
3330main ()
3331{
3332FILE *f = fopen ("conftest.out", "w");
3333 return ferror (f) || fclose (f) != 0;
3334
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339ac_clean_files="$ac_clean_files conftest.out"
3340# Check that the compiler produces executables we can run. If not, either
3341# the compiler is broken, or we cross compile.
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3343$as_echo_n "checking whether we are cross compiling... " >&6; }
3344if test "$cross_compiling" != yes; then
3345 { { ac_try="$ac_link"
3346case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351$as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_link") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }
3356 if { ac_try='./conftest$ac_cv_exeext'
3357 { { case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_try") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; }; then
3367 cross_compiling=no
3368 else
3369 if test "$cross_compiling" = maybe; then
3370 cross_compiling=yes
3371 else
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003374as_fn_error "cannot run C compiled programs.
jimblandydc4029a2010-02-02 17:39:51 +00003375If you meant to cross compile, use \`--host'.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003376See \`config.log' for more details." "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003377 fi
3378 fi
3379fi
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3381$as_echo "$cross_compiling" >&6; }
3382
3383rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3384ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3386$as_echo_n "checking for suffix of object files... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003387if test "${ac_cv_objext+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00003388 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003389else
jimblandy92b1f832009-12-23 22:23:49 +00003390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003391/* end confdefs.h. */
3392
3393int
3394main ()
3395{
3396
3397 ;
3398 return 0;
3399}
3400_ACEOF
3401rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003402if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
jimblandy92b1f832009-12-23 22:23:49 +00003407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003409 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003410 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003413 for ac_file in conftest.o conftest.obj conftest.*; do
3414 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003415 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003417 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3418 break;;
3419 esac
3420done
3421else
jimblandy92b1f832009-12-23 22:23:49 +00003422 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003423sed 's/^/| /' conftest.$ac_ext >&5
3424
jimblandy92b1f832009-12-23 22:23:49 +00003425{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003427as_fn_error "cannot compute suffix of object files: cannot compile
3428See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003429fi
brynercb91a2f2006-08-25 21:14:45 +00003430rm -f conftest.$ac_cv_objext conftest.$ac_ext
3431fi
jimblandy92b1f832009-12-23 22:23:49 +00003432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3433$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003434OBJEXT=$ac_cv_objext
3435ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3437$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003438if test "${ac_cv_c_compiler_gnu+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00003439 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003440else
jimblandy92b1f832009-12-23 22:23:49 +00003441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003442/* end confdefs.h. */
3443
3444int
3445main ()
3446{
3447#ifndef __GNUC__
3448 choke me
3449#endif
3450
3451 ;
3452 return 0;
3453}
3454_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003455if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003456 ac_compiler_gnu=yes
3457else
jimblandy92b1f832009-12-23 22:23:49 +00003458 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003459fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003461ac_cv_c_compiler_gnu=$ac_compiler_gnu
3462
3463fi
jimblandy92b1f832009-12-23 22:23:49 +00003464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3465$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3466if test $ac_compiler_gnu = yes; then
3467 GCC=yes
3468else
3469 GCC=
3470fi
brynercb91a2f2006-08-25 21:14:45 +00003471ac_test_CFLAGS=${CFLAGS+set}
3472ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3474$as_echo_n "checking whether $CC accepts -g... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003475if test "${ac_cv_prog_cc_g+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00003476 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003477else
mmentovai8c2a4de2006-09-20 16:20:15 +00003478 ac_save_c_werror_flag=$ac_c_werror_flag
3479 ac_c_werror_flag=yes
3480 ac_cv_prog_cc_g=no
3481 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003483/* end confdefs.h. */
3484
3485int
3486main ()
3487{
3488
3489 ;
3490 return 0;
3491}
3492_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003493if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003494 ac_cv_prog_cc_g=yes
3495else
jimblandy92b1f832009-12-23 22:23:49 +00003496 CFLAGS=""
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003498/* end confdefs.h. */
3499
3500int
3501main ()
3502{
3503
3504 ;
3505 return 0;
3506}
3507_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003508if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003509
jimblandy92b1f832009-12-23 22:23:49 +00003510else
3511 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003512 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003514/* end confdefs.h. */
3515
3516int
3517main ()
3518{
3519
3520 ;
3521 return 0;
3522}
3523_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003524if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003525 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003526fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003528fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_c_werror_flag=$ac_save_c_werror_flag
3533fi
jimblandy92b1f832009-12-23 22:23:49 +00003534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3535$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003536if test "$ac_test_CFLAGS" = set; then
3537 CFLAGS=$ac_save_CFLAGS
3538elif test $ac_cv_prog_cc_g = yes; then
3539 if test "$GCC" = yes; then
3540 CFLAGS="-g -O2"
3541 else
3542 CFLAGS="-g"
3543 fi
3544else
3545 if test "$GCC" = yes; then
3546 CFLAGS="-O2"
3547 else
3548 CFLAGS=
3549 fi
3550fi
jimblandy92b1f832009-12-23 22:23:49 +00003551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3552$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003553if test "${ac_cv_prog_cc_c89+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00003554 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003555else
mmentovai8c2a4de2006-09-20 16:20:15 +00003556 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003557ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003559/* end confdefs.h. */
3560#include <stdarg.h>
3561#include <stdio.h>
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003562#include <sys/types.h>
3563#include <sys/stat.h>
brynercb91a2f2006-08-25 21:14:45 +00003564/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3565struct buf { int x; };
3566FILE * (*rcsopen) (struct buf *, struct stat *, int);
3567static char *e (p, i)
3568 char **p;
3569 int i;
3570{
3571 return p[i];
3572}
3573static char *f (char * (*g) (char **, int), char **p, ...)
3574{
3575 char *s;
3576 va_list v;
3577 va_start (v,p);
3578 s = g (p, va_arg (v,int));
3579 va_end (v);
3580 return s;
3581}
3582
3583/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3584 function prototypes and stuff, but not '\xHH' hex character constants.
3585 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003586 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3588 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003589 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003590int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3591
mmentovai8c2a4de2006-09-20 16:20:15 +00003592/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3593 inside strings and character constants. */
3594#define FOO(x) 'x'
3595int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3596
brynercb91a2f2006-08-25 21:14:45 +00003597int test (int i, double x);
3598struct s1 {int (*f) (int a);};
3599struct s2 {int (*f) (double a);};
3600int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3601int argc;
3602char **argv;
3603int
3604main ()
3605{
3606return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3607 ;
3608 return 0;
3609}
3610_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003611for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003613do
3614 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003615 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003616 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003617fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003618rm -f core conftest.err conftest.$ac_objext
3619 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003620done
mmentovai8c2a4de2006-09-20 16:20:15 +00003621rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003622CC=$ac_save_CC
3623
3624fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003625# AC_CACHE_VAL
3626case "x$ac_cv_prog_cc_c89" in
3627 x)
jimblandy92b1f832009-12-23 22:23:49 +00003628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3629$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003630 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3632$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003633 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003634 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3636$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003637esac
jimblandy92b1f832009-12-23 22:23:49 +00003638if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003639
jimblandy92b1f832009-12-23 22:23:49 +00003640fi
brynercb91a2f2006-08-25 21:14:45 +00003641
brynercb91a2f2006-08-25 21:14:45 +00003642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00003647
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003648depcc="$CC" am_compiler_list=
brynercb91a2f2006-08-25 21:14:45 +00003649
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3651$as_echo_n "checking dependency style of $depcc... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003652if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003653 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003654else
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3656 # We make a subdir and do the tests there. Otherwise we can end up
3657 # making bogus files that we don't know about and never remove. For
3658 # instance it was reported that on HP-UX the gcc test will end up
3659 # making a dummy file named `D' -- because `-MD' means `put the output
3660 # in D'.
3661 mkdir conftest.dir
3662 # Copy depcomp to subdir because otherwise we won't find it if we're
3663 # using a relative directory.
3664 cp "$am_depcomp" conftest.dir
3665 cd conftest.dir
3666 # We will build objects and dependencies in a subdirectory because
3667 # it helps to detect inapplicable dependency modes. For instance
3668 # both Tru64's cc and ICC support -MD to output dependencies as a
3669 # side effect of compilation, but ICC will put the dependencies in
3670 # the current directory while Tru64 will put them in the object
3671 # directory.
3672 mkdir sub
3673
3674 am_cv_CC_dependencies_compiler_type=none
3675 if test "$am_compiler_list" = ""; then
3676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3677 fi
3678 am__universal=false
3679 case " $depcc " in #(
3680 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3681 esac
3682
3683 for depmode in $am_compiler_list; do
3684 # Setup a source with many dependencies, because some compilers
3685 # like to wrap large dependency lists on column 80 (with \), and
3686 # we should not choose a depcomp mode which is confused by this.
3687 #
3688 # We need to recreate these files for each test, as the compiler may
3689 # overwrite some of them when testing with obscure command lines.
3690 # This happens at least with the AIX C compiler.
3691 : > sub/conftest.c
3692 for i in 1 2 3 4 5 6; do
3693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3694 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3695 # Solaris 8's {/usr,}/bin/sh.
3696 touch sub/conftst$i.h
3697 done
3698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3699
3700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3701 # mode. It turns out that the SunPro C++ compiler does not properly
3702 # handle `-M -o', and we need to detect this. Also, some Intel
3703 # versions had trouble with output in subdirs
3704 am__obj=sub/conftest.${OBJEXT-o}
3705 am__minus_obj="-o $am__obj"
3706 case $depmode in
3707 gcc)
3708 # This depmode causes a compiler race in universal mode.
3709 test "$am__universal" = false || continue
3710 ;;
3711 nosideeffect)
3712 # after this tag, mechanisms are not by side-effect, so they'll
3713 # only be used when explicitly requested
3714 if test "x$enable_dependency_tracking" = xyes; then
3715 continue
3716 else
3717 break
3718 fi
3719 ;;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003720 msvisualcpp | msvcmsys)
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003721 # This compiler won't grok `-c -o', but also, the minuso test has
3722 # not run yet. These depmodes are late enough in the game, and
3723 # so weak that their functioning should not be impacted.
3724 am__obj=conftest.${OBJEXT-o}
3725 am__minus_obj=
3726 ;;
3727 none) break ;;
3728 esac
3729 if depmode=$depmode \
3730 source=sub/conftest.c object=$am__obj \
3731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3733 >/dev/null 2>conftest.err &&
3734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3738 # icc doesn't choke on unknown options, it will just issue warnings
3739 # or remarks (even with -Werror). So we grep stderr for any message
3740 # that says an option was ignored or not supported.
3741 # When given -MP, icc 7.0 and 7.1 complain thusly:
3742 # icc: Command line warning: ignoring option '-M'; no argument required
3743 # The diagnosis changed in icc 8.0:
3744 # icc: Command line remark: option '-MP' not supported
3745 if (grep 'ignoring option' conftest.err ||
3746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3747 am_cv_CC_dependencies_compiler_type=$depmode
3748 break
3749 fi
3750 fi
3751 done
3752
3753 cd ..
3754 rm -rf conftest.dir
3755else
3756 am_cv_CC_dependencies_compiler_type=none
3757fi
3758
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3761$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3762CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3763
3764 if
3765 test "x$enable_dependency_tracking" != xno \
3766 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3767 am__fastdepCC_TRUE=
3768 am__fastdepCC_FALSE='#'
3769else
3770 am__fastdepCC_TRUE='#'
3771 am__fastdepCC_FALSE=
brynercb91a2f2006-08-25 21:14:45 +00003772fi
3773
3774
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003775# By default we simply use the C compiler to build assembly code.
3776
3777test "${CCAS+set}" = set || CCAS=$CC
3778test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3779
3780
3781
3782depcc="$CCAS" am_compiler_list=
3783
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3785$as_echo_n "checking dependency style of $depcc... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003786if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003787 $as_echo_n "(cached) " >&6
3788else
3789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3790 # We make a subdir and do the tests there. Otherwise we can end up
3791 # making bogus files that we don't know about and never remove. For
3792 # instance it was reported that on HP-UX the gcc test will end up
3793 # making a dummy file named `D' -- because `-MD' means `put the output
3794 # in D'.
3795 mkdir conftest.dir
3796 # Copy depcomp to subdir because otherwise we won't find it if we're
3797 # using a relative directory.
3798 cp "$am_depcomp" conftest.dir
3799 cd conftest.dir
3800 # We will build objects and dependencies in a subdirectory because
3801 # it helps to detect inapplicable dependency modes. For instance
3802 # both Tru64's cc and ICC support -MD to output dependencies as a
3803 # side effect of compilation, but ICC will put the dependencies in
3804 # the current directory while Tru64 will put them in the object
3805 # directory.
3806 mkdir sub
3807
3808 am_cv_CCAS_dependencies_compiler_type=none
3809 if test "$am_compiler_list" = ""; then
3810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3811 fi
3812 am__universal=false
3813
3814
3815 for depmode in $am_compiler_list; do
3816 # Setup a source with many dependencies, because some compilers
3817 # like to wrap large dependency lists on column 80 (with \), and
3818 # we should not choose a depcomp mode which is confused by this.
3819 #
3820 # We need to recreate these files for each test, as the compiler may
3821 # overwrite some of them when testing with obscure command lines.
3822 # This happens at least with the AIX C compiler.
3823 : > sub/conftest.c
3824 for i in 1 2 3 4 5 6; do
3825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827 # Solaris 8's {/usr,}/bin/sh.
3828 touch sub/conftst$i.h
3829 done
3830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833 # mode. It turns out that the SunPro C++ compiler does not properly
3834 # handle `-M -o', and we need to detect this. Also, some Intel
3835 # versions had trouble with output in subdirs
3836 am__obj=sub/conftest.${OBJEXT-o}
3837 am__minus_obj="-o $am__obj"
3838 case $depmode in
3839 gcc)
3840 # This depmode causes a compiler race in universal mode.
3841 test "$am__universal" = false || continue
3842 ;;
3843 nosideeffect)
3844 # after this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested
3846 if test "x$enable_dependency_tracking" = xyes; then
3847 continue
3848 else
3849 break
3850 fi
3851 ;;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003852 msvisualcpp | msvcmsys)
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003853 # This compiler won't grok `-c -o', but also, the minuso test has
3854 # not run yet. These depmodes are late enough in the game, and
3855 # so weak that their functioning should not be impacted.
3856 am__obj=conftest.${OBJEXT-o}
3857 am__minus_obj=
3858 ;;
3859 none) break ;;
3860 esac
3861 if depmode=$depmode \
3862 source=sub/conftest.c object=$am__obj \
3863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865 >/dev/null 2>conftest.err &&
3866 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870 # icc doesn't choke on unknown options, it will just issue warnings
3871 # or remarks (even with -Werror). So we grep stderr for any message
3872 # that says an option was ignored or not supported.
3873 # When given -MP, icc 7.0 and 7.1 complain thusly:
3874 # icc: Command line warning: ignoring option '-M'; no argument required
3875 # The diagnosis changed in icc 8.0:
3876 # icc: Command line remark: option '-MP' not supported
3877 if (grep 'ignoring option' conftest.err ||
3878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879 am_cv_CCAS_dependencies_compiler_type=$depmode
3880 break
3881 fi
3882 fi
3883 done
3884
3885 cd ..
3886 rm -rf conftest.dir
3887else
3888 am_cv_CCAS_dependencies_compiler_type=none
3889fi
3890
3891fi
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3893$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3894CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3895
3896 if
3897 test "x$enable_dependency_tracking" != xno \
3898 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3899 am__fastdepCCAS_TRUE=
3900 am__fastdepCCAS_FALSE='#'
3901else
3902 am__fastdepCCAS_TRUE='#'
3903 am__fastdepCCAS_FALSE=
3904fi
3905
3906
3907ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}gcc; ac_word=$2
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003917if test "${ac_cv_prog_CC+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$CC"; then
3921 ac_cv_prog_CC="$CC" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940CC=$ac_cv_prog_CC
3941if test -n "$CC"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3943$as_echo "$CC" >&6; }
3944else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949
3950fi
3951if test -z "$ac_cv_prog_CC"; then
3952 ac_ct_CC=$CC
3953 # Extract the first word of "gcc", so it can be a program name with args.
3954set dummy gcc; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003957if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00003969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00003970 ac_cv_prog_ac_ct_CC="gcc"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981if test -n "$ac_ct_CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983$as_echo "$ac_ct_CC" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989 if test "x$ac_ct_CC" = x; then
3990 CC=""
3991 else
3992 case $cross_compiling:$ac_tool_warned in
3993yes:)
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 CC=$ac_ct_CC
3999 fi
4000else
4001 CC="$ac_cv_prog_CC"
4002fi
4003
4004if test -z "$CC"; then
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4007set dummy ${ac_tool_prefix}cc; ac_word=$2
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004010if test "${ac_cv_prog_CC+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004023 ac_cv_prog_CC="${ac_tool_prefix}cc"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028 done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033CC=$ac_cv_prog_CC
4034if test -n "$CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036$as_echo "$CC" >&6; }
4037else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
4040fi
4041
4042
4043 fi
4044fi
4045if test -z "$CC"; then
4046 # Extract the first word of "cc", so it can be a program name with args.
4047set dummy cc; ac_word=$2
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004050if test "${ac_cv_prog_CC+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004051 $as_echo_n "(cached) " >&6
4052else
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055else
4056 ac_prog_rejected=no
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4065 ac_prog_rejected=yes
4066 continue
4067 fi
4068 ac_cv_prog_CC="cc"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073 done
4074IFS=$as_save_IFS
4075
4076if test $ac_prog_rejected = yes; then
4077 # We found a bogon in the path, so make sure we never use it.
4078 set dummy $ac_cv_prog_CC
4079 shift
4080 if test $# != 0; then
4081 # We chose a different compiler from the bogus one.
4082 # However, it has the same basename, so the bogon will be chosen
4083 # first if we set CC to just the basename; use the full file name.
4084 shift
4085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4086 fi
4087fi
4088fi
4089fi
4090CC=$ac_cv_prog_CC
4091if test -n "$CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093$as_echo "$CC" >&6; }
4094else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096$as_echo "no" >&6; }
4097fi
4098
4099
4100fi
4101if test -z "$CC"; then
4102 if test -n "$ac_tool_prefix"; then
4103 for ac_prog in cl.exe
4104 do
4105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004109if test "${ac_cv_prog_CC+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004110 $as_echo_n "(cached) " >&6
4111else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114else
4115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126done
4127 done
4128IFS=$as_save_IFS
4129
4130fi
4131fi
4132CC=$ac_cv_prog_CC
4133if test -n "$CC"; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135$as_echo "$CC" >&6; }
4136else
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138$as_echo "no" >&6; }
4139fi
4140
4141
4142 test -n "$CC" && break
4143 done
4144fi
4145if test -z "$CC"; then
4146 ac_ct_CC=$CC
4147 for ac_prog in cl.exe
4148do
4149 # Extract the first word of "$ac_prog", so it can be a program name with args.
4150set dummy $ac_prog; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004153if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004154 $as_echo_n "(cached) " >&6
4155else
4156 if test -n "$ac_ct_CC"; then
4157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004166 ac_cv_prog_ac_ct_CC="$ac_prog"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170done
4171 done
4172IFS=$as_save_IFS
4173
4174fi
4175fi
4176ac_ct_CC=$ac_cv_prog_ac_ct_CC
4177if test -n "$ac_ct_CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4179$as_echo "$ac_ct_CC" >&6; }
4180else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185
4186 test -n "$ac_ct_CC" && break
4187done
4188
4189 if test "x$ac_ct_CC" = x; then
4190 CC=""
4191 else
4192 case $cross_compiling:$ac_tool_warned in
4193yes:)
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4196ac_tool_warned=yes ;;
4197esac
4198 CC=$ac_ct_CC
4199 fi
4200fi
4201
4202fi
4203
4204
4205test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004207as_fn_error "no acceptable C compiler found in \$PATH
4208See \`config.log' for more details." "$LINENO" 5; }
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004209
4210# Provide some information about the compiler.
4211$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4212set X $ac_compile
4213ac_compiler=$2
4214for ac_option in --version -v -V -qversion; do
4215 { { ac_try="$ac_compiler $ac_option >&5"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4221$as_echo "$ac_try_echo"; } >&5
4222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4223 ac_status=$?
4224 if test -s conftest.err; then
4225 sed '10a\
4226... rest of stderr output deleted ...
4227 10q' conftest.err >conftest.er1
4228 cat conftest.er1 >&5
4229 fi
4230 rm -f conftest.er1 conftest.err
4231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }
4233done
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4236$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004237if test "${ac_cv_c_compiler_gnu+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004238 $as_echo_n "(cached) " >&6
4239else
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h. */
4242
4243int
4244main ()
4245{
4246#ifndef __GNUC__
4247 choke me
4248#endif
4249
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254if ac_fn_c_try_compile "$LINENO"; then :
4255 ac_compiler_gnu=yes
4256else
4257 ac_compiler_gnu=no
4258fi
4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260ac_cv_c_compiler_gnu=$ac_compiler_gnu
4261
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4264$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4265if test $ac_compiler_gnu = yes; then
4266 GCC=yes
4267else
4268 GCC=
4269fi
4270ac_test_CFLAGS=${CFLAGS+set}
4271ac_save_CFLAGS=$CFLAGS
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4273$as_echo_n "checking whether $CC accepts -g... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004274if test "${ac_cv_prog_cc_g+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004275 $as_echo_n "(cached) " >&6
4276else
4277 ac_save_c_werror_flag=$ac_c_werror_flag
4278 ac_c_werror_flag=yes
4279 ac_cv_prog_cc_g=no
4280 CFLAGS="-g"
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283
4284int
4285main ()
4286{
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_prog_cc_g=yes
4294else
4295 CFLAGS=""
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h. */
4298
4299int
4300main ()
4301{
4302
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307if ac_fn_c_try_compile "$LINENO"; then :
4308
4309else
4310 ac_c_werror_flag=$ac_save_c_werror_flag
4311 CFLAGS="-g"
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313/* end confdefs.h. */
4314
4315int
4316main ()
4317{
4318
4319 ;
4320 return 0;
4321}
4322_ACEOF
4323if ac_fn_c_try_compile "$LINENO"; then :
4324 ac_cv_prog_cc_g=yes
4325fi
4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327fi
4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329fi
4330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 ac_c_werror_flag=$ac_save_c_werror_flag
4332fi
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4334$as_echo "$ac_cv_prog_cc_g" >&6; }
4335if test "$ac_test_CFLAGS" = set; then
4336 CFLAGS=$ac_save_CFLAGS
4337elif test $ac_cv_prog_cc_g = yes; then
4338 if test "$GCC" = yes; then
4339 CFLAGS="-g -O2"
4340 else
4341 CFLAGS="-g"
4342 fi
4343else
4344 if test "$GCC" = yes; then
4345 CFLAGS="-O2"
4346 else
4347 CFLAGS=
4348 fi
4349fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4351$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004352if test "${ac_cv_prog_cc_c89+set}" = set; then :
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004353 $as_echo_n "(cached) " >&6
4354else
4355 ac_cv_prog_cc_c89=no
4356ac_save_CC=$CC
4357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h. */
4359#include <stdarg.h>
4360#include <stdio.h>
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004361#include <sys/types.h>
4362#include <sys/stat.h>
digit@chromium.org7e3c5382012-08-31 18:38:29 +00004363/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4364struct buf { int x; };
4365FILE * (*rcsopen) (struct buf *, struct stat *, int);
4366static char *e (p, i)
4367 char **p;
4368 int i;
4369{
4370 return p[i];
4371}
4372static char *f (char * (*g) (char **, int), char **p, ...)
4373{
4374 char *s;
4375 va_list v;
4376 va_start (v,p);
4377 s = g (p, va_arg (v,int));
4378 va_end (v);
4379 return s;
4380}
4381
4382/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4383 function prototypes and stuff, but not '\xHH' hex character constants.
4384 These don't provoke an error unfortunately, instead are silently treated
4385 as 'x'. The following induces an error, until -std is added to get
4386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4387 array size at least. It's necessary to write '\x00'==0 to get something
4388 that's true only with -std. */
4389int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4390
4391/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4392 inside strings and character constants. */
4393#define FOO(x) 'x'
4394int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4395
4396int test (int i, double x);
4397struct s1 {int (*f) (int a);};
4398struct s2 {int (*f) (double a);};
4399int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4400int argc;
4401char **argv;
4402int
4403main ()
4404{
4405return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4406 ;
4407 return 0;
4408}
4409_ACEOF
4410for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4412do
4413 CC="$ac_save_CC $ac_arg"
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_prog_cc_c89=$ac_arg
4416fi
4417rm -f core conftest.err conftest.$ac_objext
4418 test "x$ac_cv_prog_cc_c89" != "xno" && break
4419done
4420rm -f conftest.$ac_ext
4421CC=$ac_save_CC
4422
4423fi
4424# AC_CACHE_VAL
4425case "x$ac_cv_prog_cc_c89" in
4426 x)
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4428$as_echo "none needed" >&6; } ;;
4429 xno)
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4431$as_echo "unsupported" >&6; } ;;
4432 *)
4433 CC="$CC $ac_cv_prog_cc_c89"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4435$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4436esac
4437if test "x$ac_cv_prog_cc_c89" != xno; then :
4438
4439fi
4440
4441ac_ext=c
4442ac_cpp='$CPP $CPPFLAGS'
4443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00004446
brynercb91a2f2006-08-25 21:14:45 +00004447depcc="$CC" am_compiler_list=
4448
jimblandy92b1f832009-12-23 22:23:49 +00004449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4450$as_echo_n "checking dependency style of $depcc... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004451if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00004452 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004453else
4454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4455 # We make a subdir and do the tests there. Otherwise we can end up
4456 # making bogus files that we don't know about and never remove. For
4457 # instance it was reported that on HP-UX the gcc test will end up
4458 # making a dummy file named `D' -- because `-MD' means `put the output
4459 # in D'.
4460 mkdir conftest.dir
4461 # Copy depcomp to subdir because otherwise we won't find it if we're
4462 # using a relative directory.
4463 cp "$am_depcomp" conftest.dir
4464 cd conftest.dir
4465 # We will build objects and dependencies in a subdirectory because
4466 # it helps to detect inapplicable dependency modes. For instance
4467 # both Tru64's cc and ICC support -MD to output dependencies as a
4468 # side effect of compilation, but ICC will put the dependencies in
4469 # the current directory while Tru64 will put them in the object
4470 # directory.
4471 mkdir sub
4472
4473 am_cv_CC_dependencies_compiler_type=none
4474 if test "$am_compiler_list" = ""; then
4475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4476 fi
jimblandy92b1f832009-12-23 22:23:49 +00004477 am__universal=false
4478 case " $depcc " in #(
4479 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4480 esac
4481
brynercb91a2f2006-08-25 21:14:45 +00004482 for depmode in $am_compiler_list; do
4483 # Setup a source with many dependencies, because some compilers
4484 # like to wrap large dependency lists on column 80 (with \), and
4485 # we should not choose a depcomp mode which is confused by this.
4486 #
4487 # We need to recreate these files for each test, as the compiler may
4488 # overwrite some of them when testing with obscure command lines.
4489 # This happens at least with the AIX C compiler.
4490 : > sub/conftest.c
4491 for i in 1 2 3 4 5 6; do
4492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4493 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4494 # Solaris 8's {/usr,}/bin/sh.
4495 touch sub/conftst$i.h
4496 done
4497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4498
jimblandy92b1f832009-12-23 22:23:49 +00004499 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4500 # mode. It turns out that the SunPro C++ compiler does not properly
4501 # handle `-M -o', and we need to detect this. Also, some Intel
4502 # versions had trouble with output in subdirs
4503 am__obj=sub/conftest.${OBJEXT-o}
4504 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004505 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004506 gcc)
4507 # This depmode causes a compiler race in universal mode.
4508 test "$am__universal" = false || continue
4509 ;;
brynercb91a2f2006-08-25 21:14:45 +00004510 nosideeffect)
4511 # after this tag, mechanisms are not by side-effect, so they'll
4512 # only be used when explicitly requested
4513 if test "x$enable_dependency_tracking" = xyes; then
4514 continue
4515 else
4516 break
4517 fi
4518 ;;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004519 msvisualcpp | msvcmsys)
jimblandy92b1f832009-12-23 22:23:49 +00004520 # This compiler won't grok `-c -o', but also, the minuso test has
4521 # not run yet. These depmodes are late enough in the game, and
4522 # so weak that their functioning should not be impacted.
4523 am__obj=conftest.${OBJEXT-o}
4524 am__minus_obj=
4525 ;;
brynercb91a2f2006-08-25 21:14:45 +00004526 none) break ;;
4527 esac
brynercb91a2f2006-08-25 21:14:45 +00004528 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004529 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004532 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537 # icc doesn't choke on unknown options, it will just issue warnings
4538 # or remarks (even with -Werror). So we grep stderr for any message
4539 # that says an option was ignored or not supported.
4540 # When given -MP, icc 7.0 and 7.1 complain thusly:
4541 # icc: Command line warning: ignoring option '-M'; no argument required
4542 # The diagnosis changed in icc 8.0:
4543 # icc: Command line remark: option '-MP' not supported
4544 if (grep 'ignoring option' conftest.err ||
4545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546 am_cv_CC_dependencies_compiler_type=$depmode
4547 break
4548 fi
4549 fi
4550 done
4551
4552 cd ..
4553 rm -rf conftest.dir
4554else
4555 am_cv_CC_dependencies_compiler_type=none
4556fi
4557
4558fi
jimblandy92b1f832009-12-23 22:23:49 +00004559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4560$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004561CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4562
mmentovaiaf3c43f2007-05-17 18:34:37 +00004563 if
brynercb91a2f2006-08-25 21:14:45 +00004564 test "x$enable_dependency_tracking" != xno \
4565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4566 am__fastdepCC_TRUE=
4567 am__fastdepCC_FALSE='#'
4568else
4569 am__fastdepCC_TRUE='#'
4570 am__fastdepCC_FALSE=
4571fi
4572
4573
ted.mielczarekd192a712010-10-05 19:38:51 +00004574if test "x$CC" != xcc; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4576$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4577else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4579$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4580fi
4581set dummy $CC; ac_cc=`$as_echo "$2" |
4582 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004583if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekd192a712010-10-05 19:38:51 +00004584 $as_echo_n "(cached) " >&6
4585else
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h. */
4588
4589int
4590main ()
4591{
4592
4593 ;
4594 return 0;
4595}
4596_ACEOF
4597# Make sure it works both with $CC and with simple cc.
4598# We do the test twice because some compilers refuse to overwrite an
4599# existing .o file with -o, though they will create one.
4600ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4601rm -f conftest2.*
4602if { { case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605esac
4606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607$as_echo "$ac_try_echo"; } >&5
4608 (eval "$ac_try") 2>&5
4609 ac_status=$?
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; } &&
4612 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_try") 2>&5
4619 ac_status=$?
4620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4621 test $ac_status = 0; };
4622then
4623 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4624 if test "x$CC" != xcc; then
4625 # Test first that cc exists at all.
4626 if { ac_try='cc -c conftest.$ac_ext >&5'
4627 { { case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630esac
4631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632$as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_try") 2>&5
4634 ac_status=$?
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }; }; then
4637 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4638 rm -f conftest2.*
4639 if { { case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
4643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4644$as_echo "$ac_try_echo"; } >&5
4645 (eval "$ac_try") 2>&5
4646 ac_status=$?
4647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4648 test $ac_status = 0; } &&
4649 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_try") 2>&5
4656 ac_status=$?
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; };
4659 then
4660 # cc works too.
4661 :
4662 else
4663 # cc exists but doesn't like -o.
4664 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4665 fi
4666 fi
4667 fi
4668else
4669 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4670fi
4671rm -f core conftest*
4672
4673fi
4674if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4676$as_echo "yes" >&6; }
4677else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }
4680
4681$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4682
4683fi
4684
4685# FIXME: we rely on the cache variable name because
4686# there is no other way.
4687set dummy $CC
4688am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4689eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4690if test "$am_t" != yes; then
4691 # Losing compiler, so override with the script.
4692 # FIXME: It is wrong to rewrite CC.
4693 # But if we don't then we get into trouble of one sort or another.
4694 # A longer-term fix would be to have automake use am__CC in this case,
4695 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4696 CC="$am_aux_dir/compile $CC"
4697fi
4698
4699
brynercb91a2f2006-08-25 21:14:45 +00004700ac_ext=c
4701ac_cpp='$CPP $CPPFLAGS'
4702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00004705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4706$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004707# On Suns, sometimes $CPP names a directory.
4708if test -n "$CPP" && test -d "$CPP"; then
4709 CPP=
4710fi
4711if test -z "$CPP"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004712 if test "${ac_cv_prog_CPP+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00004713 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004714else
4715 # Double quotes because CPP needs to be expanded
4716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4717 do
4718 ac_preproc_ok=false
4719for ac_c_preproc_warn_flag in '' yes
4720do
4721 # Use a header file that comes with gcc, so configuring glibc
4722 # with a fresh cross-compiler works.
4723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 # <limits.h> exists even on freestanding compilers.
4725 # On the NeXT, cc -E runs the code through the compiler's parser,
4726 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004728/* end confdefs.h. */
4729#ifdef __STDC__
4730# include <limits.h>
4731#else
4732# include <assert.h>
4733#endif
4734 Syntax error
4735_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004736if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004737
jimblandy92b1f832009-12-23 22:23:49 +00004738else
brynercb91a2f2006-08-25 21:14:45 +00004739 # Broken: fails on valid input.
4740continue
4741fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004742rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004743
mmentovai8c2a4de2006-09-20 16:20:15 +00004744 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004745 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004747/* end confdefs.h. */
4748#include <ac_nonexistent.h>
4749_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004750if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004751 # Broken: success on invalid input.
4752continue
4753else
brynercb91a2f2006-08-25 21:14:45 +00004754 # Passes both tests.
4755ac_preproc_ok=:
4756break
4757fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004758rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004759
4760done
4761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004762rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004763if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00004764 break
4765fi
4766
4767 done
4768 ac_cv_prog_CPP=$CPP
4769
4770fi
4771 CPP=$ac_cv_prog_CPP
4772else
4773 ac_cv_prog_CPP=$CPP
4774fi
jimblandy92b1f832009-12-23 22:23:49 +00004775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4776$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004777ac_preproc_ok=false
4778for ac_c_preproc_warn_flag in '' yes
4779do
4780 # Use a header file that comes with gcc, so configuring glibc
4781 # with a fresh cross-compiler works.
4782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783 # <limits.h> exists even on freestanding compilers.
4784 # On the NeXT, cc -E runs the code through the compiler's parser,
4785 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004787/* end confdefs.h. */
4788#ifdef __STDC__
4789# include <limits.h>
4790#else
4791# include <assert.h>
4792#endif
4793 Syntax error
4794_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004795if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004796
jimblandy92b1f832009-12-23 22:23:49 +00004797else
brynercb91a2f2006-08-25 21:14:45 +00004798 # Broken: fails on valid input.
4799continue
4800fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004801rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004802
mmentovai8c2a4de2006-09-20 16:20:15 +00004803 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004804 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004806/* end confdefs.h. */
4807#include <ac_nonexistent.h>
4808_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004809if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004810 # Broken: success on invalid input.
4811continue
4812else
brynercb91a2f2006-08-25 21:14:45 +00004813 # Passes both tests.
4814ac_preproc_ok=:
4815break
4816fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004817rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004818
4819done
4820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004821rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004822if $ac_preproc_ok; then :
4823
brynercb91a2f2006-08-25 21:14:45 +00004824else
jimblandy92b1f832009-12-23 22:23:49 +00004825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004827as_fn_error "C preprocessor \"$CPP\" fails sanity check
4828See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004829fi
4830
4831ac_ext=c
4832ac_cpp='$CPP $CPPFLAGS'
4833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
mmentovai8c2a4de2006-09-20 16:20:15 +00004837ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004838ac_cpp='$CXXCPP $CPPFLAGS'
4839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004842if test -z "$CXX"; then
4843 if test -n "$CCC"; then
4844 CXX=$CCC
4845 else
4846 if test -n "$ac_tool_prefix"; then
4847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004848 do
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004853if test "${ac_cv_prog_CXX+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00004854 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004855else
4856 if test -n "$CXX"; then
4857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004864 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004868 break 2
4869 fi
4870done
jimblandy92b1f832009-12-23 22:23:49 +00004871 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004872IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004873
4874fi
4875fi
4876CXX=$ac_cv_prog_CXX
4877if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4879$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004880else
jimblandy92b1f832009-12-23 22:23:49 +00004881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004883fi
4884
mmentovai8c2a4de2006-09-20 16:20:15 +00004885
brynercb91a2f2006-08-25 21:14:45 +00004886 test -n "$CXX" && break
4887 done
4888fi
4889if test -z "$CXX"; then
4890 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004891 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004892do
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004897if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00004898 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004899else
4900 if test -n "$ac_ct_CXX"; then
4901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4902else
4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004908 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004910 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004912 break 2
4913 fi
4914done
jimblandy92b1f832009-12-23 22:23:49 +00004915 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004916IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004917
4918fi
4919fi
4920ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4921if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4923$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004924else
jimblandy92b1f832009-12-23 22:23:49 +00004925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004927fi
4928
mmentovai8c2a4de2006-09-20 16:20:15 +00004929
brynercb91a2f2006-08-25 21:14:45 +00004930 test -n "$ac_ct_CXX" && break
4931done
brynercb91a2f2006-08-25 21:14:45 +00004932
mmentovai8c2a4de2006-09-20 16:20:15 +00004933 if test "x$ac_ct_CXX" = x; then
4934 CXX="g++"
4935 else
4936 case $cross_compiling:$ac_tool_warned in
4937yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004940ac_tool_warned=yes ;;
4941esac
4942 CXX=$ac_ct_CXX
4943 fi
brynercb91a2f2006-08-25 21:14:45 +00004944fi
4945
mmentovai8c2a4de2006-09-20 16:20:15 +00004946 fi
4947fi
brynercb91a2f2006-08-25 21:14:45 +00004948# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004949$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4950set X $ac_compile
4951ac_compiler=$2
4952for ac_option in --version -v -V -qversion; do
4953 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004954case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957esac
jimblandy92b1f832009-12-23 22:23:49 +00004958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4959$as_echo "$ac_try_echo"; } >&5
4960 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004961 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004962 if test -s conftest.err; then
4963 sed '10a\
4964... rest of stderr output deleted ...
4965 10q' conftest.err >conftest.er1
4966 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004967 fi
jimblandydc4029a2010-02-02 17:39:51 +00004968 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4970 test $ac_status = 0; }
4971done
brynercb91a2f2006-08-25 21:14:45 +00004972
jimblandy92b1f832009-12-23 22:23:49 +00004973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4974$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00004975if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00004976 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004977else
jimblandy92b1f832009-12-23 22:23:49 +00004978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004979/* end confdefs.h. */
4980
4981int
4982main ()
4983{
4984#ifndef __GNUC__
4985 choke me
4986#endif
4987
4988 ;
4989 return 0;
4990}
4991_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004992if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004993 ac_compiler_gnu=yes
4994else
jimblandy92b1f832009-12-23 22:23:49 +00004995 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004996fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004998ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4999
5000fi
jimblandy92b1f832009-12-23 22:23:49 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5002$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5003if test $ac_compiler_gnu = yes; then
5004 GXX=yes
5005else
5006 GXX=
5007fi
brynercb91a2f2006-08-25 21:14:45 +00005008ac_test_CXXFLAGS=${CXXFLAGS+set}
5009ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00005010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5011$as_echo_n "checking whether $CXX accepts -g... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005012if test "${ac_cv_prog_cxx_g+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00005013 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005014else
mmentovai8c2a4de2006-09-20 16:20:15 +00005015 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5016 ac_cxx_werror_flag=yes
5017 ac_cv_prog_cxx_g=no
5018 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00005019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005020/* end confdefs.h. */
5021
5022int
5023main ()
5024{
5025
5026 ;
5027 return 0;
5028}
5029_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005030if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005031 ac_cv_prog_cxx_g=yes
5032else
jimblandy92b1f832009-12-23 22:23:49 +00005033 CXXFLAGS=""
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005035/* end confdefs.h. */
5036
5037int
5038main ()
5039{
5040
5041 ;
5042 return 0;
5043}
5044_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005045if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00005046
jimblandy92b1f832009-12-23 22:23:49 +00005047else
5048 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00005049 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00005050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005051/* end confdefs.h. */
5052
5053int
5054main ()
5055{
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005061if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00005062 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00005063fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005065fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5070fi
jimblandy92b1f832009-12-23 22:23:49 +00005071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5072$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005073if test "$ac_test_CXXFLAGS" = set; then
5074 CXXFLAGS=$ac_save_CXXFLAGS
5075elif test $ac_cv_prog_cxx_g = yes; then
5076 if test "$GXX" = yes; then
5077 CXXFLAGS="-g -O2"
5078 else
5079 CXXFLAGS="-g"
5080 fi
5081else
5082 if test "$GXX" = yes; then
5083 CXXFLAGS="-O2"
5084 else
5085 CXXFLAGS=
5086 fi
5087fi
brynercb91a2f2006-08-25 21:14:45 +00005088ac_ext=c
5089ac_cpp='$CPP $CPPFLAGS'
5090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094depcc="$CXX" am_compiler_list=
5095
jimblandy92b1f832009-12-23 22:23:49 +00005096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5097$as_echo_n "checking dependency style of $depcc... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005098if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00005099 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005100else
5101 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5102 # We make a subdir and do the tests there. Otherwise we can end up
5103 # making bogus files that we don't know about and never remove. For
5104 # instance it was reported that on HP-UX the gcc test will end up
5105 # making a dummy file named `D' -- because `-MD' means `put the output
5106 # in D'.
5107 mkdir conftest.dir
5108 # Copy depcomp to subdir because otherwise we won't find it if we're
5109 # using a relative directory.
5110 cp "$am_depcomp" conftest.dir
5111 cd conftest.dir
5112 # We will build objects and dependencies in a subdirectory because
5113 # it helps to detect inapplicable dependency modes. For instance
5114 # both Tru64's cc and ICC support -MD to output dependencies as a
5115 # side effect of compilation, but ICC will put the dependencies in
5116 # the current directory while Tru64 will put them in the object
5117 # directory.
5118 mkdir sub
5119
5120 am_cv_CXX_dependencies_compiler_type=none
5121 if test "$am_compiler_list" = ""; then
5122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5123 fi
jimblandy92b1f832009-12-23 22:23:49 +00005124 am__universal=false
5125 case " $depcc " in #(
5126 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5127 esac
5128
brynercb91a2f2006-08-25 21:14:45 +00005129 for depmode in $am_compiler_list; do
5130 # Setup a source with many dependencies, because some compilers
5131 # like to wrap large dependency lists on column 80 (with \), and
5132 # we should not choose a depcomp mode which is confused by this.
5133 #
5134 # We need to recreate these files for each test, as the compiler may
5135 # overwrite some of them when testing with obscure command lines.
5136 # This happens at least with the AIX C compiler.
5137 : > sub/conftest.c
5138 for i in 1 2 3 4 5 6; do
5139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5141 # Solaris 8's {/usr,}/bin/sh.
5142 touch sub/conftst$i.h
5143 done
5144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5145
jimblandy92b1f832009-12-23 22:23:49 +00005146 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5147 # mode. It turns out that the SunPro C++ compiler does not properly
5148 # handle `-M -o', and we need to detect this. Also, some Intel
5149 # versions had trouble with output in subdirs
5150 am__obj=sub/conftest.${OBJEXT-o}
5151 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00005152 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00005153 gcc)
5154 # This depmode causes a compiler race in universal mode.
5155 test "$am__universal" = false || continue
5156 ;;
brynercb91a2f2006-08-25 21:14:45 +00005157 nosideeffect)
5158 # after this tag, mechanisms are not by side-effect, so they'll
5159 # only be used when explicitly requested
5160 if test "x$enable_dependency_tracking" = xyes; then
5161 continue
5162 else
5163 break
5164 fi
5165 ;;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005166 msvisualcpp | msvcmsys)
jimblandy92b1f832009-12-23 22:23:49 +00005167 # This compiler won't grok `-c -o', but also, the minuso test has
5168 # not run yet. These depmodes are late enough in the game, and
5169 # so weak that their functioning should not be impacted.
5170 am__obj=conftest.${OBJEXT-o}
5171 am__minus_obj=
5172 ;;
brynercb91a2f2006-08-25 21:14:45 +00005173 none) break ;;
5174 esac
brynercb91a2f2006-08-25 21:14:45 +00005175 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00005176 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00005177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00005178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00005179 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00005180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00005182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00005183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5184 # icc doesn't choke on unknown options, it will just issue warnings
5185 # or remarks (even with -Werror). So we grep stderr for any message
5186 # that says an option was ignored or not supported.
5187 # When given -MP, icc 7.0 and 7.1 complain thusly:
5188 # icc: Command line warning: ignoring option '-M'; no argument required
5189 # The diagnosis changed in icc 8.0:
5190 # icc: Command line remark: option '-MP' not supported
5191 if (grep 'ignoring option' conftest.err ||
5192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5193 am_cv_CXX_dependencies_compiler_type=$depmode
5194 break
5195 fi
5196 fi
5197 done
5198
5199 cd ..
5200 rm -rf conftest.dir
5201else
5202 am_cv_CXX_dependencies_compiler_type=none
5203fi
5204
5205fi
jimblandy92b1f832009-12-23 22:23:49 +00005206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5207$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005208CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5209
mmentovaiaf3c43f2007-05-17 18:34:37 +00005210 if
brynercb91a2f2006-08-25 21:14:45 +00005211 test "x$enable_dependency_tracking" != xno \
5212 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5213 am__fastdepCXX_TRUE=
5214 am__fastdepCXX_FALSE='#'
5215else
5216 am__fastdepCXX_TRUE='#'
5217 am__fastdepCXX_FALSE=
5218fi
5219
5220
ted.mielczarekd192a712010-10-05 19:38:51 +00005221if test -n "$ac_tool_prefix"; then
5222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5223set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005226if test "${ac_cv_prog_RANLIB+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00005227 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005228else
ted.mielczarekd192a712010-10-05 19:38:51 +00005229 if test -n "$RANLIB"; then
5230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00005233for as_dir in $PATH
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
brynercb91a2f2006-08-25 21:14:45 +00005237 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ted.mielczarekd192a712010-10-05 19:38:51 +00005239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243done
brynercb91a2f2006-08-25 21:14:45 +00005244 done
jimblandy92b1f832009-12-23 22:23:49 +00005245IFS=$as_save_IFS
ted.mielczarekd192a712010-10-05 19:38:51 +00005246
5247fi
5248fi
5249RANLIB=$ac_cv_prog_RANLIB
5250if test -n "$RANLIB"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5252$as_echo "$RANLIB" >&6; }
5253else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257
5258
5259fi
5260if test -z "$ac_cv_prog_RANLIB"; then
5261 ac_ct_RANLIB=$RANLIB
5262 # Extract the first word of "ranlib", so it can be a program name with args.
5263set dummy ranlib; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005266if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
ted.mielczarekd192a712010-10-05 19:38:51 +00005267 $as_echo_n "(cached) " >&6
5268else
5269 if test -n "$ac_ct_RANLIB"; then
5270 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ted.mielczarekd192a712010-10-05 19:38:51 +00005279 ac_cv_prog_ac_ct_RANLIB="ranlib"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283done
5284 done
5285IFS=$as_save_IFS
5286
5287fi
5288fi
5289ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5290if test -n "$ac_ct_RANLIB"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5292$as_echo "$ac_ct_RANLIB" >&6; }
5293else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298 if test "x$ac_ct_RANLIB" = x; then
5299 RANLIB=":"
5300 else
5301 case $cross_compiling:$ac_tool_warned in
5302yes:)
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305ac_tool_warned=yes ;;
5306esac
5307 RANLIB=$ac_ct_RANLIB
jimblandy92b1f832009-12-23 22:23:49 +00005308 fi
5309else
ted.mielczarekd192a712010-10-05 19:38:51 +00005310 RANLIB="$ac_cv_prog_RANLIB"
brynercb91a2f2006-08-25 21:14:45 +00005311fi
5312
ivan.penkov@gmail.com5f6e1f02012-07-02 22:55:57 +00005313 if test "$GCC" = yes; then
5314 GCC_TRUE=
5315 GCC_FALSE='#'
5316else
5317 GCC_TRUE='#'
5318 GCC_FALSE=
5319fi
5320 # let the Makefile know if we're gcc
jimblandy92b1f832009-12-23 22:23:49 +00005321
5322
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5325$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005326if test "${ac_cv_path_GREP+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00005327 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005328else
jimblandy92b1f832009-12-23 22:23:49 +00005329 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005330 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00005331 # Loop through the user's path and test for each of PROGNAME-LIST
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00005333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5334do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005337 for ac_prog in grep ggrep; do
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005340 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
jimblandy92b1f832009-12-23 22:23:49 +00005341# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00005342 # Check for GNU $ac_path_GREP
5343case `"$ac_path_GREP" --version 2>&1` in
5344*GNU*)
5345 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5346*)
5347 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00005348 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00005349 while :
5350 do
5351 cat "conftest.in" "conftest.in" >"conftest.tmp"
5352 mv "conftest.tmp" "conftest.in"
5353 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00005354 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00005355 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00005357 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00005358 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5359 # Best one so far, save it but keep looking for a better one
5360 ac_cv_path_GREP="$ac_path_GREP"
5361 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00005362 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005363 # 10*(2^10) chars as input seems more than enough
5364 test $ac_count -gt 10 && break
5365 done
5366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5367esac
5368
jimblandy92b1f832009-12-23 22:23:49 +00005369 $ac_path_GREP_found && break 3
5370 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005371 done
jimblandy92b1f832009-12-23 22:23:49 +00005372 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005373IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00005374 if test -z "$ac_cv_path_GREP"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005375 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00005376 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005377else
5378 ac_cv_path_GREP=$GREP
5379fi
5380
mmentovai8c2a4de2006-09-20 16:20:15 +00005381fi
jimblandy92b1f832009-12-23 22:23:49 +00005382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5383$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00005384 GREP="$ac_cv_path_GREP"
5385
5386
jimblandy92b1f832009-12-23 22:23:49 +00005387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5388$as_echo_n "checking for egrep... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005389if test "${ac_cv_path_EGREP+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00005390 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00005391else
5392 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5393 then ac_cv_path_EGREP="$GREP -E"
5394 else
jimblandy92b1f832009-12-23 22:23:49 +00005395 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005396 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00005397 # Loop through the user's path and test for each of PROGNAME-LIST
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00005399for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00005403 for ac_prog in egrep; do
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005406 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
jimblandy92b1f832009-12-23 22:23:49 +00005407# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00005408 # Check for GNU $ac_path_EGREP
5409case `"$ac_path_EGREP" --version 2>&1` in
5410*GNU*)
5411 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5412*)
5413 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00005414 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00005415 while :
5416 do
5417 cat "conftest.in" "conftest.in" >"conftest.tmp"
5418 mv "conftest.tmp" "conftest.in"
5419 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00005420 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00005421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00005423 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00005424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5425 # Best one so far, save it but keep looking for a better one
5426 ac_cv_path_EGREP="$ac_path_EGREP"
5427 ac_path_EGREP_max=$ac_count
5428 fi
5429 # 10*(2^10) chars as input seems more than enough
5430 test $ac_count -gt 10 && break
5431 done
5432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5433esac
5434
jimblandy92b1f832009-12-23 22:23:49 +00005435 $ac_path_EGREP_found && break 3
5436 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005437 done
jimblandy92b1f832009-12-23 22:23:49 +00005438 done
mmentovai8c2a4de2006-09-20 16:20:15 +00005439IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00005440 if test -z "$ac_cv_path_EGREP"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005441 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00005442 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005443else
5444 ac_cv_path_EGREP=$EGREP
5445fi
5446
jimblandy92b1f832009-12-23 22:23:49 +00005447 fi
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5450$as_echo "$ac_cv_path_EGREP" >&6; }
5451 EGREP="$ac_cv_path_EGREP"
5452
5453
jimblandy92b1f832009-12-23 22:23:49 +00005454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5455$as_echo_n "checking for ANSI C header files... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005456if test "${ac_cv_header_stdc+set}" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00005457 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005458else
jimblandy92b1f832009-12-23 22:23:49 +00005459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005460/* end confdefs.h. */
5461#include <stdlib.h>
5462#include <stdarg.h>
5463#include <string.h>
5464#include <float.h>
5465
5466int
5467main ()
5468{
5469
5470 ;
5471 return 0;
5472}
5473_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005474if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00005475 ac_cv_header_stdc=yes
5476else
jimblandy92b1f832009-12-23 22:23:49 +00005477 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005478fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005480
5481if test $ac_cv_header_stdc = yes; then
5482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00005483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005484/* end confdefs.h. */
5485#include <string.h>
5486
5487_ACEOF
5488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00005489 $EGREP "memchr" >/dev/null 2>&1; then :
5490
brynercb91a2f2006-08-25 21:14:45 +00005491else
5492 ac_cv_header_stdc=no
5493fi
5494rm -f conftest*
5495
5496fi
5497
5498if test $ac_cv_header_stdc = yes; then
5499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +00005500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005501/* end confdefs.h. */
5502#include <stdlib.h>
5503
5504_ACEOF
5505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +00005506 $EGREP "free" >/dev/null 2>&1; then :
5507
brynercb91a2f2006-08-25 21:14:45 +00005508else
5509 ac_cv_header_stdc=no
5510fi
5511rm -f conftest*
5512
5513fi
5514
5515if test $ac_cv_header_stdc = yes; then
5516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +00005517 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +00005518 :
5519else
jimblandy92b1f832009-12-23 22:23:49 +00005520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005521/* end confdefs.h. */
5522#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00005523#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00005524#if ((' ' & 0x0FF) == 0x020)
5525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5527#else
5528# define ISLOWER(c) \
5529 (('a' <= (c) && (c) <= 'i') \
5530 || ('j' <= (c) && (c) <= 'r') \
5531 || ('s' <= (c) && (c) <= 'z'))
5532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5533#endif
5534
5535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5536int
5537main ()
5538{
5539 int i;
5540 for (i = 0; i < 256; i++)
5541 if (XOR (islower (i), ISLOWER (i))
5542 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00005543 return 2;
5544 return 0;
brynercb91a2f2006-08-25 21:14:45 +00005545}
5546_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00005547if ac_fn_c_try_run "$LINENO"; then :
5548
brynercb91a2f2006-08-25 21:14:45 +00005549else
jimblandy92b1f832009-12-23 22:23:49 +00005550 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005551fi
jimblandy92b1f832009-12-23 22:23:49 +00005552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5553 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005554fi
5555
brynercb91a2f2006-08-25 21:14:45 +00005556fi
5557fi
jimblandy92b1f832009-12-23 22:23:49 +00005558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5559$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005560if test $ac_cv_header_stdc = yes; then
5561
jimblandy92b1f832009-12-23 22:23:49 +00005562$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00005563
5564fi
5565
nealsidde545c02010-03-02 00:39:48 +00005566# ===========================================================================
5567# http://www.nongnu.org/autoconf-archive/ax_pthread.html
5568# ===========================================================================
5569#
5570# SYNOPSIS
5571#
5572# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
5573#
5574# DESCRIPTION
5575#
5576# This macro figures out how to build C programs using POSIX threads. It
5577# sets the PTHREAD_LIBS output variable to the threads library and linker
5578# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
5579# flags that are needed. (The user can also force certain compiler
5580# flags/libs to be tested by setting these environment variables.)
5581#
5582# Also sets PTHREAD_CC to any special C compiler that is needed for
5583# multi-threaded programs (defaults to the value of CC otherwise). (This
5584# is necessary on AIX to use the special cc_r compiler alias.)
5585#
5586# NOTE: You are assumed to not only compile your program with these flags,
5587# but also link it with them as well. e.g. you should link with
5588# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
5589#
5590# If you are only building threads programs, you may wish to use these
5591# variables in your default LIBS, CFLAGS, and CC:
5592#
5593# LIBS="$PTHREAD_LIBS $LIBS"
5594# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5595# CC="$PTHREAD_CC"
5596#
5597# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
5598# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
5599# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
5600#
5601# ACTION-IF-FOUND is a list of shell commands to run if a threads library
5602# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
5603# is not found. If ACTION-IF-FOUND is not specified, the default action
5604# will define HAVE_PTHREAD.
5605#
5606# Please let the authors know if this macro fails on any platform, or if
5607# you have any other suggestions or comments. This macro was based on work
5608# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
5609# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
5610# Alejandro Forero Cuervo to the autoconf macro repository. We are also
5611# grateful for the helpful feedback of numerous users.
5612#
5613# LICENSE
5614#
5615# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
5616#
5617# This program is free software: you can redistribute it and/or modify it
5618# under the terms of the GNU General Public License as published by the
5619# Free Software Foundation, either version 3 of the License, or (at your
5620# option) any later version.
5621#
5622# This program is distributed in the hope that it will be useful, but
5623# WITHOUT ANY WARRANTY; without even the implied warranty of
5624# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
5625# Public License for more details.
5626#
5627# You should have received a copy of the GNU General Public License along
5628# with this program. If not, see <http://www.gnu.org/licenses/>.
5629#
5630# As a special exception, the respective Autoconf Macro's copyright owner
5631# gives unlimited permission to copy, distribute and modify the configure
5632# scripts that are the output of Autoconf when processing the Macro. You
5633# need not follow the terms of the GNU General Public License when using
5634# or distributing such scripts, even though portions of the text of the
5635# Macro appear in them. The GNU General Public License (GPL) does govern
5636# all other use of the material that constitutes the Autoconf Macro.
5637#
5638# This special exception to the GPL applies to versions of the Autoconf
5639# Macro released by the Autoconf Archive. When you make and distribute a
5640# modified version of the Autoconf Macro, you may extend this special
5641# exception to the GPL to apply to your modified version as well.
5642
5643#serial 6
5644
5645# This is what autoupdate's m4 run will expand. It fires
5646# the warning (with _au_warn_XXX), outputs it into the
5647# updated configure.ac (with AC_DIAGNOSE), and then outputs
5648# the replacement expansion.
5649
5650
5651# This is an auxiliary macro that is also run when
5652# autoupdate runs m4. It simply calls m4_warning, but
5653# we need a wrapper so that each warning is emitted only
5654# once. We break the quoting in m4_warning's argument in
5655# order to expand this macro's arguments, not AU_DEFUN's.
5656
5657
5658# Finally, this is the expansion that is picked up by
5659# autoconf. It tells the user to run autoupdate, and
5660# then outputs the replacement expansion. We do not care
5661# about autoupdate's warning because that contains
5662# information on what to do *after* running autoupdate.
5663
5664
5665
5666
5667ac_ext=c
5668ac_cpp='$CPP $CPPFLAGS'
5669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672
5673ax_pthread_ok=no
5674
5675# We used to check for pthread.h first, but this fails if pthread.h
5676# requires special compiler flags (e.g. on True64 or Sequent).
5677# It gets checked for in the link test anyway.
5678
5679# First of all, check if the user has set any of the PTHREAD_LIBS,
5680# etcetera environment variables, and if threads linking works using
5681# them:
5682if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5683 save_CFLAGS="$CFLAGS"
5684 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5685 save_LIBS="$LIBS"
5686 LIBS="$PTHREAD_LIBS $LIBS"
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5688$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h. */
5691
5692/* Override any GCC internal prototype to avoid an error.
5693 Use char because int might match the return type of a GCC
5694 builtin and then its argument prototype would still apply. */
5695#ifdef __cplusplus
5696extern "C"
5697#endif
5698char pthread_join ();
5699int
5700main ()
5701{
5702return pthread_join ();
5703 ;
5704 return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_link "$LINENO"; then :
5708 ax_pthread_ok=yes
5709fi
5710rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5713$as_echo "$ax_pthread_ok" >&6; }
5714 if test x"$ax_pthread_ok" = xno; then
5715 PTHREAD_LIBS=""
5716 PTHREAD_CFLAGS=""
5717 fi
5718 LIBS="$save_LIBS"
5719 CFLAGS="$save_CFLAGS"
5720fi
5721
5722# We must check for the threads library under a number of different
5723# names; the ordering is very important because some systems
5724# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5725# libraries is broken (non-POSIX).
5726
5727# Create a list of thread flags to try. Items starting with a "-" are
5728# C compiler flags, and other items are library names, except for "none"
5729# which indicates that we try without any flags at all, and "pthread-config"
5730# which is a program returning the flags for the Pth emulation library.
5731
5732ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5733
5734# The ordering *is* (sometimes) important. Some notes on the
5735# individual items follow:
5736
5737# pthreads: AIX (must check this before -lpthread)
5738# none: in case threads are in libc; should be tried before -Kthread and
5739# other compiler flags to prevent continual compiler warnings
5740# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5741# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5742# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5743# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5744# -pthreads: Solaris/gcc
5745# -mthreads: Mingw32/gcc, Lynx/gcc
5746# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5747# doesn't hurt to check since this sometimes defines pthreads too;
5748# also defines -D_REENTRANT)
5749# ... -mt is also the pthreads flag for HP/aCC
5750# pthread: Linux, etcetera
5751# --thread-safe: KAI C++
5752# pthread-config: use pthread-config program (for GNU Pth library)
5753
5754case "${host_cpu}-${host_os}" in
5755 *solaris*)
5756
5757 # On Solaris (at least, for some versions), libc contains stubbed
5758 # (non-functional) versions of the pthreads routines, so link-based
5759 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
5760 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
5761 # a function called by this macro, so we could check for that, but
5762 # who knows whether they'll stub that too in a future libc.) So,
5763 # we'll just look for -pthreads and -lpthread first:
5764
5765 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
5766 ;;
5767
5768 *-darwin*)
5769 acx_pthread_flags="-pthread $acx_pthread_flags"
5770 ;;
5771esac
5772
5773if test x"$ax_pthread_ok" = xno; then
5774for flag in $ax_pthread_flags; do
5775
5776 case $flag in
5777 none)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5779$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5780 ;;
5781
5782 -*)
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5784$as_echo_n "checking whether pthreads work with $flag... " >&6; }
5785 PTHREAD_CFLAGS="$flag"
5786 ;;
5787
5788 pthread-config)
5789 # Extract the first word of "pthread-config", so it can be a program name with args.
5790set dummy pthread-config; ac_word=$2
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005793if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
nealsidde545c02010-03-02 00:39:48 +00005794 $as_echo_n "(cached) " >&6
5795else
5796 if test -n "$ax_pthread_config"; then
5797 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
nealsidde545c02010-03-02 00:39:48 +00005806 ac_cv_prog_ax_pthread_config="yes"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811 done
5812IFS=$as_save_IFS
5813
5814 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5815fi
5816fi
5817ax_pthread_config=$ac_cv_prog_ax_pthread_config
5818if test -n "$ax_pthread_config"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5820$as_echo "$ax_pthread_config" >&6; }
5821else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826
5827 if test x"$ax_pthread_config" = xno; then continue; fi
5828 PTHREAD_CFLAGS="`pthread-config --cflags`"
5829 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5830 ;;
5831
5832 *)
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5834$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5835 PTHREAD_LIBS="-l$flag"
5836 ;;
5837 esac
5838
5839 save_LIBS="$LIBS"
5840 save_CFLAGS="$CFLAGS"
5841 LIBS="$PTHREAD_LIBS $LIBS"
5842 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5843
5844 # Check for various functions. We must include pthread.h,
5845 # since some functions may be macros. (On the Sequent, we
5846 # need a special flag -Kthread to make this header compile.)
5847 # We check for pthread_join because it is in -lpthread on IRIX
5848 # while pthread_create is in libc. We check for pthread_attr_init
5849 # due to DEC craziness with -lpthreads. We check for
5850 # pthread_cleanup_push because it is one of the few pthread
5851 # functions on Solaris that doesn't have a non-functional libc stub.
5852 # We try pthread_create on general principles.
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h. */
5855#include <pthread.h>
5856 static void routine(void* a) {a=0;}
5857 static void* start_routine(void* a) {return a;}
5858int
5859main ()
5860{
5861pthread_t th; pthread_attr_t attr;
5862 pthread_join(th, 0);
5863 pthread_attr_init(&attr);
5864 pthread_cleanup_push(routine, 0);
5865 pthread_create(&th,0,start_routine,0);
5866 pthread_cleanup_pop(0);
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871if ac_fn_c_try_link "$LINENO"; then :
5872 ax_pthread_ok=yes
5873fi
5874rm -f core conftest.err conftest.$ac_objext \
5875 conftest$ac_exeext conftest.$ac_ext
5876
5877 LIBS="$save_LIBS"
5878 CFLAGS="$save_CFLAGS"
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5881$as_echo "$ax_pthread_ok" >&6; }
5882 if test "x$ax_pthread_ok" = xyes; then
5883 break;
5884 fi
5885
5886 PTHREAD_LIBS=""
5887 PTHREAD_CFLAGS=""
5888done
5889fi
5890
5891# Various other checks:
5892if test "x$ax_pthread_ok" = xyes; then
5893 save_LIBS="$LIBS"
5894 LIBS="$PTHREAD_LIBS $LIBS"
5895 save_CFLAGS="$CFLAGS"
5896 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5897
5898 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
5900$as_echo_n "checking for joinable pthread attribute... " >&6; }
5901 attr_name=unknown
5902 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904/* end confdefs.h. */
5905#include <pthread.h>
5906int
5907main ()
5908{
5909int attr=$attr; return attr;
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_link "$LINENO"; then :
5915 attr_name=$attr; break
5916fi
5917rm -f core conftest.err conftest.$ac_objext \
5918 conftest$ac_exeext conftest.$ac_ext
5919 done
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
5921$as_echo "$attr_name" >&6; }
5922 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
5923
5924cat >>confdefs.h <<_ACEOF
5925#define PTHREAD_CREATE_JOINABLE $attr_name
5926_ACEOF
5927
5928 fi
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
5931$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
5932 flag=no
5933 case "${host_cpu}-${host_os}" in
5934 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
5935 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5936 esac
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
5938$as_echo "${flag}" >&6; }
5939 if test "x$flag" != xno; then
5940 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5941 fi
5942
5943 LIBS="$save_LIBS"
5944 CFLAGS="$save_CFLAGS"
5945
5946 # More AIX lossage: must compile with xlc_r or cc_r
5947 if test x"$GCC" != xyes; then
5948 for ac_prog in xlc_r cc_r
5949do
5950 # Extract the first word of "$ac_prog", so it can be a program name with args.
5951set dummy $ac_prog; ac_word=$2
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953$as_echo_n "checking for $ac_word... " >&6; }
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005954if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
nealsidde545c02010-03-02 00:39:48 +00005955 $as_echo_n "(cached) " >&6
5956else
5957 if test -n "$PTHREAD_CC"; then
5958 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00005966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
nealsidde545c02010-03-02 00:39:48 +00005967 ac_cv_prog_PTHREAD_CC="$ac_prog"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971done
5972 done
5973IFS=$as_save_IFS
5974
5975fi
5976fi
5977PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5978if test -n "$PTHREAD_CC"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
5980$as_echo "$PTHREAD_CC" >&6; }
5981else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
5985
5986
5987 test -n "$PTHREAD_CC" && break
5988done
5989test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
5990
5991 else
5992 PTHREAD_CC=$CC
5993 fi
5994else
5995 PTHREAD_CC="$CC"
5996fi
5997
5998
5999
6000
6001
6002# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6003if test x"$ax_pthread_ok" = xyes; then
6004
6005$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6006
6007 :
6008else
6009 ax_pthread_ok=no
6010
6011fi
6012ac_ext=c
6013ac_cpp='$CPP $CPPFLAGS'
6014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017
6018
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006019# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6021 inttypes.h stdint.h unistd.h
6022do :
6023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6025"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006026eval as_val=\$$as_ac_Header
6027 if test "x$as_val" = x""yes; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006028 cat >>confdefs.h <<_ACEOF
6029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6030_ACEOF
6031
6032fi
6033
6034done
6035
6036
6037for ac_header in a.out.h
6038do :
6039 ac_fn_c_check_header_mongrel "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006040if test "x$ac_cv_header_a_out_h" = x""yes; then :
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006041 cat >>confdefs.h <<_ACEOF
6042#define HAVE_A_OUT_H 1
6043_ACEOF
6044
6045fi
6046
6047done
6048
nealsidde545c02010-03-02 00:39:48 +00006049
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00006050# Only build Linux client libs when compiling for Linux
6051case $host in
digit@chromium.org62d486b2012-08-21 14:34:48 +00006052 *-*-linux* | *-android* )
6053 LINUX_HOST=true
6054 ;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00006055esac
6056 if test x$LINUX_HOST = xtrue; then
6057 LINUX_HOST_TRUE=
6058 LINUX_HOST_FALSE='#'
6059else
6060 LINUX_HOST_TRUE='#'
6061 LINUX_HOST_FALSE=
6062fi
6063
6064
digit@chromium.org62d486b2012-08-21 14:34:48 +00006065# Only use Android support headers when compiling for Android
6066case $host in
6067 *-android*)
6068 ANDROID_HOST=true
6069 ;;
6070esac
6071 if test x$ANDROID_HOST = xtrue; then
6072 ANDROID_HOST_TRUE=
6073 ANDROID_HOST_FALSE='#'
6074else
6075 ANDROID_HOST_TRUE='#'
6076 ANDROID_HOST_FALSE=
6077fi
6078
6079
nealsidde545c02010-03-02 00:39:48 +00006080# Check whether --enable-m32 was given.
6081if test "${enable_m32+set}" = set; then :
6082 enableval=$enable_m32; case "${enableval}" in
6083 yes)
ted.mielczarekefa30c12010-09-17 13:36:11 +00006084 CFLAGS="${CFLAGS} -m32"
6085 CXXFLAGS="${CXXFLAGS} -m32"
nealsidde545c02010-03-02 00:39:48 +00006086 usem32=true
6087 ;;
6088 no)
6089 usem32=false
6090 ;;
6091 *)
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006092 as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5
nealsidde545c02010-03-02 00:39:48 +00006093 ;;
6094 esac
6095else
6096 usem32=false
6097fi
6098
brynercb91a2f2006-08-25 21:14:45 +00006099
ted.mielczareke574a2a2010-10-05 19:38:22 +00006100# Check whether --enable-processor was given.
6101if test "${enable_processor+set}" = set; then :
6102 enableval=$enable_processor; case "${enableval}" in
6103 yes)
6104 disable_processor=false
6105 ;;
6106 no)
6107 disable_processor=true
6108 ;;
6109 *)
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006110 as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5
ted.mielczareke574a2a2010-10-05 19:38:22 +00006111 ;;
6112 esac
6113else
6114 disable_processor=false
6115fi
6116
6117 if test x$disable_processor = xtrue; then
6118 DISABLE_PROCESSOR_TRUE=
6119 DISABLE_PROCESSOR_FALSE='#'
6120else
6121 DISABLE_PROCESSOR_TRUE='#'
6122 DISABLE_PROCESSOR_FALSE=
6123fi
6124
6125
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006126# Check whether --enable-tools was given.
6127if test "${enable_tools+set}" = set; then :
6128 enableval=$enable_tools; case "${enableval}" in
6129 yes)
6130 disable_tools=false
6131 ;;
6132 no)
6133 disable_tools=true
6134 ;;
6135 *)
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006136 as_fn_error "bad value ${enableval} for --disable-tools" "$LINENO" 5
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006137 ;;
6138 esac
6139else
6140 disable_tools=false
6141fi
6142
6143 if test x$disable_tools = xtrue; then
6144 DISABLE_TOOLS_TRUE=
6145 DISABLE_TOOLS_FALSE='#'
6146else
6147 DISABLE_TOOLS_TRUE='#'
6148 DISABLE_TOOLS_FALSE=
6149fi
6150
6151
6152if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006153 as_fn_error "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5
ted.mielczareke574a2a2010-10-05 19:38:22 +00006154fi
6155
mmentovai0dbedc92006-09-25 21:16:15 +00006156# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +00006157if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +00006158 enableval=$enable_selftest; case "${enableval}" in
6159 yes)
6160 selftest=true
6161 ;;
6162 no)
6163 selftest=false
6164 ;;
6165 *)
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006166 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00006167 ;;
6168 esac
6169else
6170 selftest=false
6171fi
6172
mmentovaiaf3c43f2007-05-17 18:34:37 +00006173 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +00006174 SELFTEST_TRUE=
6175 SELFTEST_FALSE='#'
6176else
6177 SELFTEST_TRUE='#'
6178 SELFTEST_FALSE=
6179fi
6180
6181
mmentovai8c2a4de2006-09-20 16:20:15 +00006182ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +00006183
6184cat >confcache <<\_ACEOF
6185# This file is a shell script that caches the results of configure
6186# tests run on this system so they can be shared between configure
6187# scripts and configure runs, see configure's option --config-cache.
6188# It is not useful on other systems. If it contains results you don't
6189# want to keep, you may remove or edit it.
6190#
6191# config.status only pays attention to the cache file if you give it
6192# the --recheck option to rerun configure.
6193#
6194# `ac_cv_env_foo' variables (set or unset) will be overridden when
6195# loading this file, other *unset* `ac_cv_foo' will be assigned the
6196# following values.
6197
6198_ACEOF
6199
6200# The following way of writing the cache mishandles newlines in values,
6201# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +00006202# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +00006203# Ultrix sh set writes to stderr and can't be redirected directly,
6204# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +00006205(
6206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6207 eval ac_val=\$$ac_var
6208 case $ac_val in #(
6209 *${as_nl}*)
6210 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00006211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6212$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006213 esac
6214 case $ac_var in #(
6215 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00006216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6217 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006218 esac ;;
6219 esac
6220 done
6221
brynercb91a2f2006-08-25 21:14:45 +00006222 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00006223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6224 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +00006225 # `set' does not quote correctly, so add quotes: double-quote
6226 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +00006227 sed -n \
6228 "s/'/'\\\\''/g;
6229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +00006230 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00006231 *)
6232 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +00006233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00006234 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006235 esac |
6236 sort
6237) |
brynercb91a2f2006-08-25 21:14:45 +00006238 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +00006239 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +00006240 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +00006241 :clear
brynercb91a2f2006-08-25 21:14:45 +00006242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6243 t end
mmentovai8c2a4de2006-09-20 16:20:15 +00006244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6245 :end' >>confcache
6246if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6247 if test -w "$cache_file"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006248 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +00006249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6250$as_echo "$as_me: updating cache $cache_file" >&6;}
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006251 cat confcache >$cache_file
brynercb91a2f2006-08-25 21:14:45 +00006252 else
jimblandy92b1f832009-12-23 22:23:49 +00006253 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6254$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00006255 fi
6256fi
6257rm -f confcache
6258
6259test "x$prefix" = xNONE && prefix=$ac_default_prefix
6260# Let make expand exec_prefix.
6261test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6262
brynercb91a2f2006-08-25 21:14:45 +00006263DEFS=-DHAVE_CONFIG_H
6264
6265ac_libobjs=
6266ac_ltlibobjs=
6267for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6268 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +00006269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +00006270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +00006271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6272 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +00006273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +00006275done
6276LIBOBJS=$ac_libobjs
6277
6278LTLIBOBJS=$ac_ltlibobjs
6279
6280
jimblandy92b1f832009-12-23 22:23:49 +00006281 if test -n "$EXEEXT"; then
6282 am__EXEEXT_TRUE=
6283 am__EXEEXT_FALSE='#'
6284else
6285 am__EXEEXT_TRUE='#'
6286 am__EXEEXT_FALSE=
6287fi
6288
brynercb91a2f2006-08-25 21:14:45 +00006289if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006290 as_fn_error "conditional \"AMDEP\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00006291Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006292fi
6293if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006294 as_fn_error "conditional \"am__fastdepCC\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00006295Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006296fi
digit@chromium.org7e3c5382012-08-31 18:38:29 +00006297if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006298 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00006299Usually this means the macro was only invoked conditionally." "$LINENO" 5
6300fi
6301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006302 as_fn_error "conditional \"am__fastdepCC\" was never defined.
digit@chromium.org7e3c5382012-08-31 18:38:29 +00006303Usually this means the macro was only invoked conditionally." "$LINENO" 5
6304fi
brynercb91a2f2006-08-25 21:14:45 +00006305if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006306 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00006307Usually this means the macro was only invoked conditionally." "$LINENO" 5
6308fi
ivan.penkov@gmail.com5f6e1f02012-07-02 22:55:57 +00006309if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006310 as_fn_error "conditional \"GCC\" was never defined.
ivan.penkov@gmail.com5f6e1f02012-07-02 22:55:57 +00006311Usually this means the macro was only invoked conditionally." "$LINENO" 5
6312fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00006313if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006314 as_fn_error "conditional \"LINUX_HOST\" was never defined.
ted.mielczareke574a2a2010-10-05 19:38:22 +00006315Usually this means the macro was only invoked conditionally." "$LINENO" 5
6316fi
digit@chromium.org62d486b2012-08-21 14:34:48 +00006317if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006318 as_fn_error "conditional \"ANDROID_HOST\" was never defined.
digit@chromium.org62d486b2012-08-21 14:34:48 +00006319Usually this means the macro was only invoked conditionally." "$LINENO" 5
6320fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00006321if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006322 as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00006323Usually this means the macro was only invoked conditionally." "$LINENO" 5
6324fi
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006325if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006326 as_fn_error "conditional \"DISABLE_TOOLS\" was never defined.
ted.mielczarekdbf409c2011-02-28 14:05:22 +00006327Usually this means the macro was only invoked conditionally." "$LINENO" 5
6328fi
mmentovai0dbedc92006-09-25 21:16:15 +00006329if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006330 as_fn_error "conditional \"SELFTEST\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +00006331Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +00006332fi
brynercb91a2f2006-08-25 21:14:45 +00006333
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006334: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +00006335ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +00006336ac_clean_files_save=$ac_clean_files
6337ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +00006338{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6339$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6340as_write_fail=0
6341cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006342#! $SHELL
6343# Generated by $as_me.
6344# Run this file to recreate the current configuration.
6345# Compiler output produced by configure, useful for debugging
6346# configure, is in config.log if it exists.
6347
6348debug=false
6349ac_cs_recheck=false
6350ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +00006351
jimblandy92b1f832009-12-23 22:23:49 +00006352SHELL=\${CONFIG_SHELL-$SHELL}
6353export SHELL
6354_ASEOF
6355cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6356## -------------------- ##
6357## M4sh Initialization. ##
6358## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00006359
mmentovaiaf3c43f2007-05-17 18:34:37 +00006360# Be more Bourne compatible
6361DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +00006362if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +00006363 emulate sh
6364 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +00006365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +00006366 # is contrary to our usage. Disable this feature.
6367 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +00006368 setopt NO_GLOB_SUBST
6369else
jimblandy92b1f832009-12-23 22:23:49 +00006370 case `(set -o) 2>/dev/null` in #(
6371 *posix*) :
6372 set -o posix ;; #(
6373 *) :
6374 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +00006375esac
brynercb91a2f2006-08-25 21:14:45 +00006376fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00006377
6378
jimblandy92b1f832009-12-23 22:23:49 +00006379as_nl='
6380'
6381export as_nl
6382# Printing a long string crashes Solaris 7 /usr/bin/printf.
6383as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6384as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6385as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6386# Prefer a ksh shell builtin over an external printf program on Solaris,
6387# but without wasting forks for bash or zsh.
6388if test -z "$BASH_VERSION$ZSH_VERSION" \
6389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6390 as_echo='print -r --'
6391 as_echo_n='print -rn --'
6392elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6393 as_echo='printf %s\n'
6394 as_echo_n='printf %s'
6395else
6396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6398 as_echo_n='/usr/ucb/echo -n'
6399 else
6400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6401 as_echo_n_body='eval
6402 arg=$1;
6403 case $arg in #(
6404 *"$as_nl"*)
6405 expr "X$arg" : "X\\(.*\\)$as_nl";
6406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6407 esac;
6408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6409 '
6410 export as_echo_n_body
6411 as_echo_n='sh -c $as_echo_n_body as_echo'
6412 fi
6413 export as_echo_body
6414 as_echo='sh -c $as_echo_body as_echo'
6415fi
brynercb91a2f2006-08-25 21:14:45 +00006416
6417# The user is always right.
6418if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +00006419 PATH_SEPARATOR=:
6420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6422 PATH_SEPARATOR=';'
6423 }
mmentovai8c2a4de2006-09-20 16:20:15 +00006424fi
brynercb91a2f2006-08-25 21:14:45 +00006425
mmentovai8c2a4de2006-09-20 16:20:15 +00006426
6427# IFS
6428# We need space, tab and new line, in precisely that order. Quoting is
6429# there to prevent editors from complaining about space-tab.
6430# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6431# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +00006432IFS=" "" $as_nl"
6433
6434# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +00006435case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +00006436 *[\\/]* ) as_myself=$0 ;;
6437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00006438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00006442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6443 done
mmentovai8c2a4de2006-09-20 16:20:15 +00006444IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006445
mmentovai8c2a4de2006-09-20 16:20:15 +00006446 ;;
6447esac
6448# We did not find ourselves, most probably we were run as `sh COMMAND'
6449# in which case we are not to be found in the path.
6450if test "x$as_myself" = x; then
6451 as_myself=$0
6452fi
6453if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +00006454 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6455 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +00006456fi
6457
jimblandy92b1f832009-12-23 22:23:49 +00006458# Unset variables that we do not need and which cause bugs (e.g. in
6459# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6460# suppresses any "Segmentation fault" message there. '((' could
6461# trigger a bug in pdksh 5.2.14.
6462for as_var in BASH_ENV ENV MAIL MAILPATH
6463do eval test x\${$as_var+set} = xset \
6464 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +00006465done
6466PS1='$ '
6467PS2='> '
6468PS4='+ '
6469
6470# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +00006471LC_ALL=C
6472export LC_ALL
6473LANGUAGE=C
6474export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +00006475
jimblandy92b1f832009-12-23 22:23:49 +00006476# CDPATH.
6477(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6478
6479
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006480# as_fn_error ERROR [LINENO LOG_FD]
6481# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +00006482# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6483# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006484# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +00006485as_fn_error ()
6486{
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006487 as_status=$?; test $as_status -eq 0 && as_status=1
6488 if test "$3"; then
6489 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6490 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
jimblandy92b1f832009-12-23 22:23:49 +00006491 fi
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006492 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +00006493 as_fn_exit $as_status
6494} # as_fn_error
6495
6496
6497# as_fn_set_status STATUS
6498# -----------------------
6499# Set $? to STATUS, without forking.
6500as_fn_set_status ()
6501{
6502 return $1
6503} # as_fn_set_status
6504
6505# as_fn_exit STATUS
6506# -----------------
6507# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6508as_fn_exit ()
6509{
6510 set +e
6511 as_fn_set_status $1
6512 exit $1
6513} # as_fn_exit
6514
6515# as_fn_unset VAR
6516# ---------------
6517# Portably unset VAR.
6518as_fn_unset ()
6519{
6520 { eval $1=; unset $1;}
6521}
6522as_unset=as_fn_unset
6523# as_fn_append VAR VALUE
6524# ----------------------
6525# Append the text in VALUE to the end of the definition contained in VAR. Take
6526# advantage of any shell optimizations that allow amortized linear growth over
6527# repeated appends, instead of the typical quadratic growth present in naive
6528# implementations.
6529if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6530 eval 'as_fn_append ()
6531 {
6532 eval $1+=\$2
6533 }'
6534else
6535 as_fn_append ()
6536 {
6537 eval $1=\$$1\$2
6538 }
6539fi # as_fn_append
6540
6541# as_fn_arith ARG...
6542# ------------------
6543# Perform arithmetic evaluation on the ARGs, and store the result in the
6544# global $as_val. Take advantage of shells that can avoid forks. The arguments
6545# must be portable across $(()) and expr.
6546if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6547 eval 'as_fn_arith ()
6548 {
6549 as_val=$(( $* ))
6550 }'
6551else
6552 as_fn_arith ()
6553 {
6554 as_val=`expr "$@" || test $? -eq 1`
6555 }
6556fi # as_fn_arith
6557
6558
mmentovai8c2a4de2006-09-20 16:20:15 +00006559if expr a : '\(a\)' >/dev/null 2>&1 &&
6560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6561 as_expr=expr
6562else
6563 as_expr=false
6564fi
6565
6566if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6567 as_basename=basename
6568else
6569 as_basename=false
6570fi
6571
jimblandy92b1f832009-12-23 22:23:49 +00006572if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6573 as_dirname=dirname
6574else
6575 as_dirname=false
6576fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006577
mmentovai8c2a4de2006-09-20 16:20:15 +00006578as_me=`$as_basename -- "$0" ||
6579$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6580 X"$0" : 'X\(//\)$' \| \
6581 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00006582$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00006583 sed '/^.*\/\([^/][^/]*\)\/*$/{
6584 s//\1/
6585 q
6586 }
6587 /^X\/\(\/\/\)$/{
6588 s//\1/
6589 q
6590 }
6591 /^X\/\(\/\).*/{
6592 s//\1/
6593 q
6594 }
6595 s/.*/./; q'`
6596
jimblandy92b1f832009-12-23 22:23:49 +00006597# Avoid depending upon Character Ranges.
6598as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6599as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6600as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6601as_cr_digits='0123456789'
6602as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +00006603
6604ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +00006605case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +00006606-n*)
jimblandy92b1f832009-12-23 22:23:49 +00006607 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +00006608 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +00006609 xy) ECHO_C='\c';;
6610 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6611 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +00006612 esac;;
6613*)
6614 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +00006615esac
6616
brynercb91a2f2006-08-25 21:14:45 +00006617rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +00006618if test -d conf$$.dir; then
6619 rm -f conf$$.dir/conf$$.file
6620else
6621 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +00006622 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +00006623fi
jimblandy92b1f832009-12-23 22:23:49 +00006624if (echo >conf$$.file) 2>/dev/null; then
6625 if ln -s conf$$.file conf$$ 2>/dev/null; then
6626 as_ln_s='ln -s'
6627 # ... but there are two gotchas:
6628 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6629 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006630 # In both cases, we have to default to `cp -p'.
jimblandy92b1f832009-12-23 22:23:49 +00006631 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006632 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +00006633 elif ln conf$$.file conf$$ 2>/dev/null; then
6634 as_ln_s=ln
6635 else
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006636 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +00006637 fi
brynercb91a2f2006-08-25 21:14:45 +00006638else
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006639 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +00006640fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006641rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6642rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00006643
jimblandy92b1f832009-12-23 22:23:49 +00006644
6645# as_fn_mkdir_p
6646# -------------
6647# Create "$as_dir" as a directory, including parents if necessary.
6648as_fn_mkdir_p ()
6649{
6650
6651 case $as_dir in #(
6652 -*) as_dir=./$as_dir;;
6653 esac
6654 test -d "$as_dir" || eval $as_mkdir_p || {
6655 as_dirs=
6656 while :; do
6657 case $as_dir in #(
6658 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6659 *) as_qdir=$as_dir;;
6660 esac
6661 as_dirs="'$as_qdir' $as_dirs"
6662 as_dir=`$as_dirname -- "$as_dir" ||
6663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6664 X"$as_dir" : 'X\(//\)[^/]' \| \
6665 X"$as_dir" : 'X\(//\)$' \| \
6666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6667$as_echo X"$as_dir" |
6668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6669 s//\1/
6670 q
6671 }
6672 /^X\(\/\/\)[^/].*/{
6673 s//\1/
6674 q
6675 }
6676 /^X\(\/\/\)$/{
6677 s//\1/
6678 q
6679 }
6680 /^X\(\/\).*/{
6681 s//\1/
6682 q
6683 }
6684 s/.*/./; q'`
6685 test -d "$as_dir" && break
6686 done
6687 test -z "$as_dirs" || eval "mkdir $as_dirs"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006688 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +00006689
6690
6691} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00006692if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +00006693 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +00006694else
6695 test -d ./-p && rmdir ./-p
6696 as_mkdir_p=false
6697fi
6698
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006699if test -x / >/dev/null 2>&1; then
6700 as_test_x='test -x'
6701else
6702 if ls -dL / >/dev/null 2>&1; then
6703 as_ls_L_option=L
6704 else
6705 as_ls_L_option=
6706 fi
6707 as_test_x='
6708 eval sh -c '\''
6709 if test -d "$1"; then
6710 test -d "$1/.";
6711 else
6712 case $1 in #(
6713 -*)set "./$1";;
6714 esac;
6715 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6716 ???[sx]*):;;*)false;;esac;fi
6717 '\'' sh
6718 '
6719fi
6720as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +00006721
6722# Sed expression to map a string onto a valid CPP name.
6723as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6724
6725# Sed expression to map a string onto a valid variable name.
6726as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6727
6728
brynercb91a2f2006-08-25 21:14:45 +00006729exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +00006730## ----------------------------------- ##
6731## Main body of $CONFIG_STATUS script. ##
6732## ----------------------------------- ##
6733_ASEOF
6734test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006735
jimblandy92b1f832009-12-23 22:23:49 +00006736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6737# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +00006738# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +00006739# values after options handling.
6740ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +00006741This file was extended by breakpad $as_me 0.1, which was
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006742generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00006743
6744 CONFIG_FILES = $CONFIG_FILES
6745 CONFIG_HEADERS = $CONFIG_HEADERS
6746 CONFIG_LINKS = $CONFIG_LINKS
6747 CONFIG_COMMANDS = $CONFIG_COMMANDS
6748 $ $0 $@
6749
mmentovai8c2a4de2006-09-20 16:20:15 +00006750on `(hostname || uname -n) 2>/dev/null | sed 1q`
6751"
6752
brynercb91a2f2006-08-25 21:14:45 +00006753_ACEOF
6754
jimblandy92b1f832009-12-23 22:23:49 +00006755case $ac_config_files in *"
6756"*) set x $ac_config_files; shift; ac_config_files=$*;;
6757esac
6758
6759case $ac_config_headers in *"
6760"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6761esac
6762
6763
6764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006765# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +00006766config_files="$ac_config_files"
6767config_headers="$ac_config_headers"
6768config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +00006769
mmentovai8c2a4de2006-09-20 16:20:15 +00006770_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00006771
jimblandy92b1f832009-12-23 22:23:49 +00006772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006773ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +00006774\`$as_me' instantiates files and other configuration actions
6775from templates according to the current configuration. Unless the files
6776and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +00006777
jimblandy92b1f832009-12-23 22:23:49 +00006778Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +00006779
6780 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +00006781 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +00006782 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +00006783 -q, --quiet, --silent
6784 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +00006785 -d, --debug don't remove temporary files
6786 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +00006787 --file=FILE[:TEMPLATE]
6788 instantiate the configuration file FILE
6789 --header=FILE[:TEMPLATE]
6790 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +00006791
6792Configuration files:
6793$config_files
6794
6795Configuration headers:
6796$config_headers
6797
6798Configuration commands:
6799$config_commands
6800
thestig@chromium.org43e6db72010-11-08 19:49:41 +00006801Report bugs to <google-breakpad-dev@googlegroups.com>."
brynercb91a2f2006-08-25 21:14:45 +00006802
mmentovai8c2a4de2006-09-20 16:20:15 +00006803_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +00006805ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +00006806ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +00006807breakpad config.status 0.1
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006808configured by $0, generated by GNU Autoconf 2.65,
jimblandydc4029a2010-02-02 17:39:51 +00006809 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +00006810
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006811Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00006812This config.status script is free software; the Free Software Foundation
6813gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +00006814
6815ac_pwd='$ac_pwd'
6816srcdir='$srcdir'
6817INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +00006818MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +00006819AWK='$AWK'
6820test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +00006821_ACEOF
6822
jimblandy92b1f832009-12-23 22:23:49 +00006823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6824# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +00006825ac_need_defaults=:
6826while test $# != 0
6827do
6828 case $1 in
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006829 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +00006830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00006832 ac_shift=:
6833 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006834 *)
brynercb91a2f2006-08-25 21:14:45 +00006835 ac_option=$1
6836 ac_optarg=$2
6837 ac_shift=shift
6838 ;;
brynercb91a2f2006-08-25 21:14:45 +00006839 esac
6840
6841 case $ac_option in
6842 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +00006843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6844 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +00006846 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +00006847 --config | --confi | --conf | --con | --co | --c )
6848 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006849 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +00006850 debug=: ;;
6851 --file | --fil | --fi | --f )
6852 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00006853 case $ac_optarg in
6854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6855 esac
6856 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00006857 ac_need_defaults=false;;
6858 --header | --heade | --head | --hea )
6859 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +00006860 case $ac_optarg in
6861 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6862 esac
6863 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +00006864 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006865 --he | --h)
6866 # Conflict between --help and --header
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006867 as_fn_error "ambiguous option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00006868Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +00006869 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +00006870 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +00006871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6872 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6873 ac_cs_silent=: ;;
6874
6875 # This is an error.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006876 -*) as_fn_error "unrecognized option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +00006877Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +00006878
jimblandy92b1f832009-12-23 22:23:49 +00006879 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +00006880 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +00006881
6882 esac
6883 shift
6884done
6885
6886ac_configure_extra_args=
6887
6888if $ac_cs_silent; then
6889 exec 6>/dev/null
6890 ac_configure_extra_args="$ac_configure_extra_args --silent"
6891fi
6892
6893_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006895if \$ac_cs_recheck; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006896 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
jimblandy92b1f832009-12-23 22:23:49 +00006897 shift
6898 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6899 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +00006900 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +00006901 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +00006902fi
6903
6904_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006906exec 5>>config.log
6907{
6908 echo
6909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6910## Running $as_me. ##
6911_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +00006912 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +00006913} >&5
brynercb91a2f2006-08-25 21:14:45 +00006914
mmentovai8c2a4de2006-09-20 16:20:15 +00006915_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00006916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00006917#
mmentovai8c2a4de2006-09-20 16:20:15 +00006918# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +00006919#
brynercb91a2f2006-08-25 21:14:45 +00006920AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6921
6922_ACEOF
6923
jimblandy92b1f832009-12-23 22:23:49 +00006924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00006925
6926# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +00006927for ac_config_target in $ac_config_targets
6928do
mmentovai8c2a4de2006-09-20 16:20:15 +00006929 case $ac_config_target in
6930 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
6931 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6932 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6933
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006934 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +00006935 esac
6936done
6937
mmentovai8c2a4de2006-09-20 16:20:15 +00006938
brynercb91a2f2006-08-25 21:14:45 +00006939# If the user did not use the arguments to specify the items to instantiate,
6940# then the envvar interface is used. Set only those that are not.
6941# We use the long form for the default assignment because of an extremely
6942# bizarre bug on SunOS 4.1.3.
6943if $ac_need_defaults; then
6944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6947fi
6948
6949# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +00006950# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +00006951# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +00006952# Hook for its removal unless debugging.
6953# Note that there is a small window in which the directory will not be cleaned:
6954# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +00006955$debug ||
6956{
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006957 tmp=
mmentovai8c2a4de2006-09-20 16:20:15 +00006958 trap 'exit_status=$?
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00006960' 0
jimblandy92b1f832009-12-23 22:23:49 +00006961 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +00006962}
brynercb91a2f2006-08-25 21:14:45 +00006963# Create a (secure) tmp directory for tmp files.
6964
6965{
mmentovai8c2a4de2006-09-20 16:20:15 +00006966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006967 test -n "$tmp" && test -d "$tmp"
brynercb91a2f2006-08-25 21:14:45 +00006968} ||
6969{
mmentovai8c2a4de2006-09-20 16:20:15 +00006970 tmp=./conf$$-$RANDOM
6971 (umask 077 && mkdir "$tmp")
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006972} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00006973
jimblandy92b1f832009-12-23 22:23:49 +00006974# Set up the scripts for CONFIG_FILES section.
6975# No need to generate them if there are no CONFIG_FILES.
6976# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +00006977if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +00006978
jimblandy92b1f832009-12-23 22:23:49 +00006979
6980ac_cr=`echo X | tr X '\015'`
6981# On cygwin, bash can eat \r inside `` if the user requested igncr.
6982# But we know of no other shell where ac_cr would be empty at this
6983# point, so we can use a bashism as a fallback.
6984if test "x$ac_cr" = x; then
6985 eval ac_cr=\$\'\\r\'
6986fi
6987ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6988if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006989 ac_cs_awk_cr='\r'
jimblandy92b1f832009-12-23 22:23:49 +00006990else
6991 ac_cs_awk_cr=$ac_cr
6992fi
6993
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00006994echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +00006995_ACEOF
6996
mmentovai8c2a4de2006-09-20 16:20:15 +00006997
jimblandy92b1f832009-12-23 22:23:49 +00006998{
6999 echo "cat >conf$$subs.awk <<_ACEOF" &&
7000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7001 echo "_ACEOF"
7002} >conf$$subs.sh ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007003 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7004ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +00007005ac_delim='%!_!# '
7006for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +00007007 . ./conf$$subs.sh ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007008 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00007009
jimblandy92b1f832009-12-23 22:23:49 +00007010 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7011 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007012 break
7013 elif $ac_last_try; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007014 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00007015 else
7016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +00007017 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007018done
jimblandy92b1f832009-12-23 22:23:49 +00007019rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +00007020
jimblandy92b1f832009-12-23 22:23:49 +00007021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007022cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +00007023_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00007024sed -n '
7025h
7026s/^/S["/; s/!.*/"]=/
7027p
7028g
7029s/^[^!]*!//
7030:repl
7031t repl
7032s/'"$ac_delim"'$//
7033t delim
7034:nl
7035h
jimblandydc4029a2010-02-02 17:39:51 +00007036s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00007037t more1
7038s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7039p
7040n
7041b repl
7042:more1
7043s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7044p
7045g
7046s/.\{148\}//
7047t nl
7048:delim
7049h
jimblandydc4029a2010-02-02 17:39:51 +00007050s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +00007051t more2
7052s/["\\]/\\&/g; s/^/"/; s/$/"/
7053p
7054b
7055:more2
7056s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7057p
7058g
7059s/.\{148\}//
7060t delim
7061' <conf$$subs.awk | sed '
7062/^[^""]/{
7063 N
7064 s/\n//
7065}
7066' >>$CONFIG_STATUS || ac_write_fail=1
7067rm -f conf$$subs.awk
7068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7069_ACAWK
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007070cat >>"\$tmp/subs1.awk" <<_ACAWK &&
jimblandy92b1f832009-12-23 22:23:49 +00007071 for (key in S) S_is_set[key] = 1
7072 FS = ""
7073
7074}
7075{
7076 line = $ 0
7077 nfields = split(line, field, "@")
7078 substed = 0
7079 len = length(field[1])
7080 for (i = 2; i < nfields; i++) {
7081 key = field[i]
7082 keylen = length(key)
7083 if (S_is_set[key]) {
7084 value = S[key]
7085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7086 len += length(value) + length(field[++i])
7087 substed = 1
7088 } else
7089 len += 1 + keylen
7090 }
7091
7092 print line
7093}
7094
7095_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +00007096_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00007097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7098if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7100else
7101 cat
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007102fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7103 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00007104_ACEOF
7105
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007106# VPATH may cause trouble with some makes, so we remove $(srcdir),
7107# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mmentovai8c2a4de2006-09-20 16:20:15 +00007108# trailing colons and then remove the whole line if VPATH becomes empty
7109# (actually we leave an empty line to preserve line numbers).
7110if test "x$srcdir" = x.; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007111 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7112s/:*\$(srcdir):*/:/
7113s/:*\${srcdir}:*/:/
7114s/:*@srcdir@:*/:/
7115s/^\([^=]*=[ ]*\):*/\1/
mmentovai8c2a4de2006-09-20 16:20:15 +00007116s/:*$//
7117s/^[^=]*=[ ]*$//
7118}'
7119fi
7120
jimblandy92b1f832009-12-23 22:23:49 +00007121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00007122fi # test -n "$CONFIG_FILES"
7123
jimblandy92b1f832009-12-23 22:23:49 +00007124# Set up the scripts for CONFIG_HEADERS section.
7125# No need to generate them if there are no CONFIG_HEADERS.
7126# This happens for instance with `./config.status Makefile'.
7127if test -n "$CONFIG_HEADERS"; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007128cat >"$tmp/defines.awk" <<\_ACAWK ||
jimblandy92b1f832009-12-23 22:23:49 +00007129BEGIN {
7130_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00007131
jimblandy92b1f832009-12-23 22:23:49 +00007132# Transform confdefs.h into an awk script `defines.awk', embedded as
7133# here-document in config.status, that substitutes the proper values into
7134# config.h.in to produce config.h.
7135
7136# Create a delimiter string that does not exist in confdefs.h, to ease
7137# handling of long lines.
7138ac_delim='%!_!# '
7139for ac_last_try in false false :; do
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007140 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7141 if test -z "$ac_t"; then
jimblandy92b1f832009-12-23 22:23:49 +00007142 break
7143 elif $ac_last_try; then
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007144 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00007145 else
7146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7147 fi
7148done
7149
7150# For the awk script, D is an array of macro values keyed by name,
7151# likewise P contains macro parameters if any. Preserve backslash
7152# newline sequences.
7153
7154ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7155sed -n '
7156s/.\{148\}/&'"$ac_delim"'/g
7157t rset
7158:rset
7159s/^[ ]*#[ ]*define[ ][ ]*/ /
7160t def
7161d
7162:def
7163s/\\$//
7164t bsnl
7165s/["\\]/\\&/g
7166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7167D["\1"]=" \3"/p
7168s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7169d
7170:bsnl
7171s/["\\]/\\&/g
7172s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7173D["\1"]=" \3\\\\\\n"\\/p
7174t cont
7175s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7176t cont
7177d
7178:cont
7179n
7180s/.\{148\}/&'"$ac_delim"'/g
7181t clear
7182:clear
7183s/\\$//
7184t bsnlc
7185s/["\\]/\\&/g; s/^/"/; s/$/"/p
7186d
7187:bsnlc
7188s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7189b cont
7190' <confdefs.h | sed '
7191s/'"$ac_delim"'/"\\\
7192"/g' >>$CONFIG_STATUS || ac_write_fail=1
7193
7194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7195 for (key in D) D_is_set[key] = 1
7196 FS = ""
7197}
7198/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7199 line = \$ 0
7200 split(line, arg, " ")
7201 if (arg[1] == "#") {
7202 defundef = arg[2]
7203 mac1 = arg[3]
7204 } else {
7205 defundef = substr(arg[1], 2)
7206 mac1 = arg[2]
7207 }
7208 split(mac1, mac2, "(") #)
7209 macro = mac2[1]
7210 prefix = substr(line, 1, index(line, defundef) - 1)
7211 if (D_is_set[macro]) {
7212 # Preserve the white space surrounding the "#".
7213 print prefix "define", macro P[macro] D[macro]
7214 next
7215 } else {
7216 # Replace #undef with comments. This is necessary, for example,
7217 # in the case of _POSIX_SOURCE, which is predefined and required
7218 # on some systems where configure will not decide to define it.
7219 if (defundef == "undef") {
7220 print "/*", prefix defundef, macro, "*/"
7221 next
7222 }
7223 }
7224}
7225{ print }
7226_ACAWK
7227_ACEOF
7228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007229 as_fn_error "could not setup config headers machinery" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00007230fi # test -n "$CONFIG_HEADERS"
7231
7232
7233eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7234shift
7235for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +00007236do
7237 case $ac_tag in
7238 :[FHLC]) ac_mode=$ac_tag; continue;;
7239 esac
7240 case $ac_mode$ac_tag in
7241 :[FHL]*:*);;
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007242 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007243 :[FH]-) ac_tag=-:-;;
7244 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7245 esac
7246 ac_save_IFS=$IFS
7247 IFS=:
7248 set x $ac_tag
7249 IFS=$ac_save_IFS
7250 shift
7251 ac_file=$1
7252 shift
7253
7254 case $ac_mode in
7255 :L) ac_source=$1;;
7256 :[FH])
7257 ac_file_inputs=
7258 for ac_f
7259 do
7260 case $ac_f in
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007261 -) ac_f="$tmp/stdin";;
mmentovai8c2a4de2006-09-20 16:20:15 +00007262 *) # Look for the file first in the build tree, then in the source tree
7263 # (if the path is not absolute). The absolute path cannot be DOS-style,
7264 # because $ac_f cannot contain `:'.
7265 test -f "$ac_f" ||
7266 case $ac_f in
7267 [\\/$]*) false;;
7268 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7269 esac ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007270 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007271 esac
jimblandy92b1f832009-12-23 22:23:49 +00007272 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7273 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +00007274 done
7275
7276 # Let's still pretend it is `configure' which instantiates (i.e., don't
7277 # use $as_me), people would be surprised to read:
7278 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +00007279 configure_input='Generated from '`
7280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7281 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +00007282 if test x"$ac_file" != x-; then
7283 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +00007284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7285$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00007286 fi
jimblandy92b1f832009-12-23 22:23:49 +00007287 # Neutralize special characters interpreted by sed in replacement strings.
7288 case $configure_input in #(
7289 *\&* | *\|* | *\\* )
7290 ac_sed_conf_input=`$as_echo "$configure_input" |
7291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7292 *) ac_sed_conf_input=$configure_input;;
7293 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00007294
7295 case $ac_tag in
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007296 *:-:* | *:-) cat >"$tmp/stdin" \
7297 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007298 esac
7299 ;;
brynercb91a2f2006-08-25 21:14:45 +00007300 esac
7301
mmentovai8c2a4de2006-09-20 16:20:15 +00007302 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +00007303$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7304 X"$ac_file" : 'X\(//\)[^/]' \| \
7305 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00007306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00007307$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00007308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7309 s//\1/
7310 q
7311 }
7312 /^X\(\/\/\)[^/].*/{
7313 s//\1/
7314 q
7315 }
7316 /^X\(\/\/\)$/{
7317 s//\1/
7318 q
7319 }
7320 /^X\(\/\).*/{
7321 s//\1/
7322 q
7323 }
7324 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00007325 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +00007326 ac_builddir=.
7327
mmentovai8c2a4de2006-09-20 16:20:15 +00007328case "$ac_dir" in
7329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7330*)
jimblandy92b1f832009-12-23 22:23:49 +00007331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00007332 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00007333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00007334 case $ac_top_builddir_sub in
7335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7337 esac ;;
7338esac
7339ac_abs_top_builddir=$ac_pwd
7340ac_abs_builddir=$ac_pwd$ac_dir_suffix
7341# for backward compatibility:
7342ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00007343
7344case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00007345 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00007346 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00007347 ac_top_srcdir=$ac_top_builddir_sub
7348 ac_abs_top_srcdir=$ac_pwd ;;
7349 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00007350 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00007351 ac_top_srcdir=$srcdir
7352 ac_abs_top_srcdir=$srcdir ;;
7353 *) # Relative name.
7354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7355 ac_top_srcdir=$ac_top_build_prefix$srcdir
7356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00007357esac
mmentovai8c2a4de2006-09-20 16:20:15 +00007358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00007359
brynercb91a2f2006-08-25 21:14:45 +00007360
mmentovai8c2a4de2006-09-20 16:20:15 +00007361 case $ac_mode in
7362 :F)
7363 #
7364 # CONFIG_FILE
7365 #
brynercb91a2f2006-08-25 21:14:45 +00007366
7367 case $INSTALL in
7368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +00007370 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +00007371 ac_MKDIR_P=$MKDIR_P
7372 case $MKDIR_P in
7373 [\\/$]* | ?:[\\/]* ) ;;
7374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7375 esac
brynercb91a2f2006-08-25 21:14:45 +00007376_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00007377
jimblandy92b1f832009-12-23 22:23:49 +00007378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00007379# If the template does not know about datarootdir, expand it.
7380# FIXME: This hack should be removed a few years after 2.60.
7381ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +00007382ac_sed_dataroot='
7383/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +00007384 p
7385 q
7386}
7387/@datadir@/p
7388/@docdir@/p
7389/@infodir@/p
7390/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +00007391/@mandir@/p'
7392case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +00007393*datarootdir*) ac_datarootdir_seen=yes;;
7394*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +00007395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7396$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00007397_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00007398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +00007399 ac_datarootdir_hack='
7400 s&@datadir@&$datadir&g
7401 s&@docdir@&$docdir&g
7402 s&@infodir@&$infodir&g
7403 s&@localedir@&$localedir&g
7404 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +00007405 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007406esac
7407_ACEOF
7408
7409# Neutralize VPATH when `$srcdir' = `.'.
7410# Shell code in configure.ac might set extrasub.
7411# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +00007412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7413ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +00007414$extrasub
7415_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00007416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +00007417:t
7418/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +00007419s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00007420s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +00007421s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00007422s&@srcdir@&$ac_srcdir&;t t
7423s&@abs_srcdir@&$ac_abs_srcdir&;t t
7424s&@top_srcdir@&$ac_top_srcdir&;t t
7425s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7426s&@builddir@&$ac_builddir&;t t
7427s&@abs_builddir@&$ac_abs_builddir&;t t
7428s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7429s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +00007430s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +00007431$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +00007432"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007433eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7434 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00007435
mmentovai8c2a4de2006-09-20 16:20:15 +00007436test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +00007439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007440which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +00007441$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007442which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +00007443
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007444 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +00007445 case $ac_file in
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007446 -) cat "$tmp/out" && rm -f "$tmp/out";;
7447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
jimblandy92b1f832009-12-23 22:23:49 +00007448 esac \
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007449 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00007450 ;;
7451 :H)
7452 #
7453 # CONFIG_HEADER
7454 #
brynercb91a2f2006-08-25 21:14:45 +00007455 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +00007456 {
7457 $as_echo "/* $configure_input */" \
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7459 } >"$tmp/config.h" \
7460 || as_fn_error "could not create $ac_file" "$LINENO" 5
7461 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
jimblandy92b1f832009-12-23 22:23:49 +00007462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7463$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00007464 else
jimblandy92b1f832009-12-23 22:23:49 +00007465 rm -f "$ac_file"
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007466 mv "$tmp/config.h" "$ac_file" \
7467 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00007468 fi
7469 else
jimblandy92b1f832009-12-23 22:23:49 +00007470 $as_echo "/* $configure_input */" \
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7472 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00007473 fi
jimblandy92b1f832009-12-23 22:23:49 +00007474# Compute "$ac_file"'s index in $config_headers.
7475_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +00007476_am_stamp_count=1
7477for _am_header in $config_headers :; do
7478 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +00007479 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +00007480 break ;;
7481 * )
7482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7483 esac
7484done
jimblandy92b1f832009-12-23 22:23:49 +00007485echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7486$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7487 X"$_am_arg" : 'X\(//\)[^/]' \| \
7488 X"$_am_arg" : 'X\(//\)$' \| \
7489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7490$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +00007491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7492 s//\1/
7493 q
7494 }
7495 /^X\(\/\/\)[^/].*/{
7496 s//\1/
7497 q
7498 }
7499 /^X\(\/\/\)$/{
7500 s//\1/
7501 q
7502 }
7503 /^X\(\/\).*/{
7504 s//\1/
7505 q
7506 }
7507 s/.*/./; q'`/stamp-h$_am_stamp_count
7508 ;;
brynercb91a2f2006-08-25 21:14:45 +00007509
jimblandy92b1f832009-12-23 22:23:49 +00007510 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7511$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +00007512 ;;
7513 esac
brynercb91a2f2006-08-25 21:14:45 +00007514
7515
mmentovai8c2a4de2006-09-20 16:20:15 +00007516 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +00007517 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7518 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7519 # are listed without --file. Let's play safe and only enable the eval
7520 # if we detect the quoting.
7521 case $CONFIG_FILES in
7522 *\'*) eval set x "$CONFIG_FILES" ;;
7523 *) set x $CONFIG_FILES ;;
7524 esac
7525 shift
7526 for mf
7527 do
7528 # Strip MF so we end up with the name of the file.
7529 mf=`echo "$mf" | sed -e 's/:.*$//'`
7530 # Check whether this is an Automake generated Makefile or not.
7531 # We used to match only the files named `Makefile.in', but
7532 # some people rename them; so instead we look at the file content.
7533 # Grep'ing the first line is not enough: some people post-process
7534 # each Makefile.in and add a new line on top of each file to say so.
7535 # Grep'ing the whole file is not good either: AIX grep has a line
7536 # limit of 2048, but all sed's we know have understand at least 4000.
7537 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7538 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +00007539$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7540 X"$mf" : 'X\(//\)[^/]' \| \
7541 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00007542 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00007543$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +00007544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7545 s//\1/
7546 q
7547 }
7548 /^X\(\/\/\)[^/].*/{
7549 s//\1/
7550 q
7551 }
7552 /^X\(\/\/\)$/{
7553 s//\1/
7554 q
7555 }
7556 /^X\(\/\).*/{
7557 s//\1/
7558 q
7559 }
7560 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00007561 else
7562 continue
7563 fi
7564 # Extract the definition of DEPDIR, am__include, and am__quote
7565 # from the Makefile without running `make'.
7566 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7567 test -z "$DEPDIR" && continue
7568 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7569 test -z "am__include" && continue
7570 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7571 # When using ansi2knr, U may be empty or an underscore; expand it
7572 U=`sed -n 's/^U = //p' < "$mf"`
7573 # Find all dependency output files, they are included files with
7574 # $(DEPDIR) in their names. We invoke sed twice because it is the
7575 # simplest approach to changing $(DEPDIR) to its actual value in the
7576 # expansion.
7577 for file in `sed -n "
7578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7580 # Make sure the directory exists.
7581 test -f "$dirpart/$file" && continue
7582 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +00007583$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7584 X"$file" : 'X\(//\)[^/]' \| \
7585 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00007586 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +00007587$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +00007588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7589 s//\1/
7590 q
7591 }
7592 /^X\(\/\/\)[^/].*/{
7593 s//\1/
7594 q
7595 }
7596 /^X\(\/\/\)$/{
7597 s//\1/
7598 q
7599 }
7600 /^X\(\/\).*/{
7601 s//\1/
7602 q
7603 }
7604 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +00007605 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7606 # echo "creating $dirpart/$file"
7607 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +00007608 done
brynercb91a2f2006-08-25 21:14:45 +00007609 done
jimblandy92b1f832009-12-23 22:23:49 +00007610}
7611 ;;
brynercb91a2f2006-08-25 21:14:45 +00007612
mmentovai8c2a4de2006-09-20 16:20:15 +00007613 esac
7614done # for ac_tag
7615
brynercb91a2f2006-08-25 21:14:45 +00007616
jimblandy92b1f832009-12-23 22:23:49 +00007617as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +00007618_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00007619ac_clean_files=$ac_clean_files_save
7620
jimblandy92b1f832009-12-23 22:23:49 +00007621test $ac_write_fail = 0 ||
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007622 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00007623
brynercb91a2f2006-08-25 21:14:45 +00007624
7625# configure is writing to config.log, and then calls config.status.
7626# config.status does its own redirection, appending to config.log.
7627# Unfortunately, on DOS this fails, as config.log is still kept open
7628# by configure, so config.status won't be able to write to it; its
7629# output is simply discarded. So we exec the FD to /dev/null,
7630# effectively closing config.log, so it can be properly (re)opened and
7631# appended to by config.status. When coming back to configure, we
7632# need to make the FD available again.
7633if test "$no_create" != yes; then
7634 ac_cs_success=:
7635 ac_config_status_args=
7636 test "$silent" = yes &&
7637 ac_config_status_args="$ac_config_status_args --quiet"
7638 exec 5>/dev/null
7639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7640 exec 5>>config.log
7641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7642 # would make configure fail if this is the last instruction.
SiyangXie@gmail.combab77002012-10-10 21:41:52 +00007643 $ac_cs_success || as_fn_exit $?
jimblandy92b1f832009-12-23 22:23:49 +00007644fi
7645if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7647$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00007648fi
7649